@botpress/adk-cli
Version:
Command-line interface for the Botpress Agent Development Kit (ADK)
30,942 lines • 1.89 MB
JavaScript
// @bun
import {
CodeFormattingError
} from "./chunk-nn2jb0x0.js";
import {
escapeString,
getMultilineComment,
toPropertyKey
} from "./chunk-na956zz3.js";
import {
exports_exports
} from "./chunk-54qt5g7m.js";
// ../../node_modules/.bun/lru-cache@11.0.2/node_modules/lru-cache/dist/esm/index.js
var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
var warned = new Set;
var PROCESS = typeof process === "object" && !!process ? process : {};
var emitWarning = (msg, type, code, fn) => {
typeof PROCESS.emitWarning === "function" ? PROCESS.emitWarning(msg, type, code, fn) : console.error(`[${code}] ${type}: ${msg}`);
};
var AC = globalThis.AbortController;
var AS = globalThis.AbortSignal;
if (typeof AC === "undefined") {
AS = class AbortSignal {
onabort;
_onabort = [];
reason;
aborted = false;
addEventListener(_, fn) {
this._onabort.push(fn);
}
};
AC = class AbortController {
constructor() {
warnACPolyfill();
}
signal = new AS;
abort(reason) {
if (this.signal.aborted)
return;
this.signal.reason = reason;
this.signal.aborted = true;
for (const fn of this.signal._onabort) {
fn(reason);
}
this.signal.onabort?.(reason);
}
};
let printACPolyfillWarning = PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1";
const warnACPolyfill = () => {
if (!printACPolyfillWarning)
return;
printACPolyfillWarning = false;
emitWarning("AbortController is not defined. If using lru-cache in " + "node 14, load an AbortController polyfill from the " + "`node-abort-controller` package. A minimal polyfill is " + "provided for use by LRUCache.fetch(), but it should not be " + "relied upon in other contexts (eg, passing it to other APIs that " + "use AbortController/AbortSignal might have undesirable effects). " + "You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", warnACPolyfill);
};
}
var shouldWarn = (code) => !warned.has(code);
var TYPE = Symbol("type");
var isPosInt = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
var getUintArray = (max) => !isPosInt(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
class ZeroArray extends Array {
constructor(size) {
super(size);
this.fill(0);
}
}
class Stack {
heap;
length;
static #constructing = false;
static create(max) {
const HeapCls = getUintArray(max);
if (!HeapCls)
return [];
Stack.#constructing = true;
const s = new Stack(max, HeapCls);
Stack.#constructing = false;
return s;
}
constructor(max, HeapCls) {
if (!Stack.#constructing) {
throw new TypeError("instantiate Stack using Stack.create(n)");
}
this.heap = new HeapCls(max);
this.length = 0;
}
push(n) {
this.heap[this.length++] = n;
}
pop() {
return this.heap[--this.length];
}
}
class LRUCache {
#max;
#maxSize;
#dispose;
#disposeAfter;
#fetchMethod;
#memoMethod;
ttl;
ttlResolution;
ttlAutopurge;
updateAgeOnGet;
updateAgeOnHas;
allowStale;
noDisposeOnSet;
noUpdateTTL;
maxEntrySize;
sizeCalculation;
noDeleteOnFetchRejection;
noDeleteOnStaleGet;
allowStaleOnFetchAbort;
allowStaleOnFetchRejection;
ignoreFetchAbort;
#size;
#calculatedSize;
#keyMap;
#keyList;
#valList;
#next;
#prev;
#head;
#tail;
#free;
#disposed;
#sizes;
#starts;
#ttls;
#hasDispose;
#hasFetchMethod;
#hasDisposeAfter;
static unsafeExposeInternals(c) {
return {
starts: c.#starts,
ttls: c.#ttls,
sizes: c.#sizes,
keyMap: c.#keyMap,
keyList: c.#keyList,
valList: c.#valList,
next: c.#next,
prev: c.#prev,
get head() {
return c.#head;
},
get tail() {
return c.#tail;
},
free: c.#free,
isBackgroundFetch: (p) => c.#isBackgroundFetch(p),
backgroundFetch: (k, index, options, context) => c.#backgroundFetch(k, index, options, context),
moveToTail: (index) => c.#moveToTail(index),
indexes: (options) => c.#indexes(options),
rindexes: (options) => c.#rindexes(options),
isStale: (index) => c.#isStale(index)
};
}
get max() {
return this.#max;
}
get maxSize() {
return this.#maxSize;
}
get calculatedSize() {
return this.#calculatedSize;
}
get size() {
return this.#size;
}
get fetchMethod() {
return this.#fetchMethod;
}
get memoMethod() {
return this.#memoMethod;
}
get dispose() {
return this.#dispose;
}
get disposeAfter() {
return this.#disposeAfter;
}
constructor(options) {
const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
if (max !== 0 && !isPosInt(max)) {
throw new TypeError("max option must be a nonnegative integer");
}
const UintArray = max ? getUintArray(max) : Array;
if (!UintArray) {
throw new Error("invalid max value: " + max);
}
this.#max = max;
this.#maxSize = maxSize;
this.maxEntrySize = maxEntrySize || this.#maxSize;
this.sizeCalculation = sizeCalculation;
if (this.sizeCalculation) {
if (!this.#maxSize && !this.maxEntrySize) {
throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
}
if (typeof this.sizeCalculation !== "function") {
throw new TypeError("sizeCalculation set to non-function");
}
}
if (memoMethod !== undefined && typeof memoMethod !== "function") {
throw new TypeError("memoMethod must be a function if defined");
}
this.#memoMethod = memoMethod;
if (fetchMethod !== undefined && typeof fetchMethod !== "function") {
throw new TypeError("fetchMethod must be a function if specified");
}
this.#fetchMethod = fetchMethod;
this.#hasFetchMethod = !!fetchMethod;
this.#keyMap = new Map;
this.#keyList = new Array(max).fill(undefined);
this.#valList = new Array(max).fill(undefined);
this.#next = new UintArray(max);
this.#prev = new UintArray(max);
this.#head = 0;
this.#tail = 0;
this.#free = Stack.create(max);
this.#size = 0;
this.#calculatedSize = 0;
if (typeof dispose === "function") {
this.#dispose = dispose;
}
if (typeof disposeAfter === "function") {
this.#disposeAfter = disposeAfter;
this.#disposed = [];
} else {
this.#disposeAfter = undefined;
this.#disposed = undefined;
}
this.#hasDispose = !!this.#dispose;
this.#hasDisposeAfter = !!this.#disposeAfter;
this.noDisposeOnSet = !!noDisposeOnSet;
this.noUpdateTTL = !!noUpdateTTL;
this.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection;
this.allowStaleOnFetchRejection = !!allowStaleOnFetchRejection;
this.allowStaleOnFetchAbort = !!allowStaleOnFetchAbort;
this.ignoreFetchAbort = !!ignoreFetchAbort;
if (this.maxEntrySize !== 0) {
if (this.#maxSize !== 0) {
if (!isPosInt(this.#maxSize)) {
throw new TypeError("maxSize must be a positive integer if specified");
}
}
if (!isPosInt(this.maxEntrySize)) {
throw new TypeError("maxEntrySize must be a positive integer if specified");
}
this.#initializeSizeTracking();
}
this.allowStale = !!allowStale;
this.noDeleteOnStaleGet = !!noDeleteOnStaleGet;
this.updateAgeOnGet = !!updateAgeOnGet;
this.updateAgeOnHas = !!updateAgeOnHas;
this.ttlResolution = isPosInt(ttlResolution) || ttlResolution === 0 ? ttlResolution : 1;
this.ttlAutopurge = !!ttlAutopurge;
this.ttl = ttl || 0;
if (this.ttl) {
if (!isPosInt(this.ttl)) {
throw new TypeError("ttl must be a positive integer if specified");
}
this.#initializeTTLTracking();
}
if (this.#max === 0 && this.ttl === 0 && this.#maxSize === 0) {
throw new TypeError("At least one of max, maxSize, or ttl is required");
}
if (!this.ttlAutopurge && !this.#max && !this.#maxSize) {
const code = "LRU_CACHE_UNBOUNDED";
if (shouldWarn(code)) {
warned.add(code);
const msg = "TTL caching without ttlAutopurge, max, or maxSize can " + "result in unbounded memory consumption.";
emitWarning(msg, "UnboundedCacheWarning", code, LRUCache);
}
}
}
getRemainingTTL(key) {
return this.#keyMap.has(key) ? Infinity : 0;
}
#initializeTTLTracking() {
const ttls = new ZeroArray(this.#max);
const starts = new ZeroArray(this.#max);
this.#ttls = ttls;
this.#starts = starts;
this.#setItemTTL = (index, ttl, start = perf.now()) => {
starts[index] = ttl !== 0 ? start : 0;
ttls[index] = ttl;
if (ttl !== 0 && this.ttlAutopurge) {
const t = setTimeout(() => {
if (this.#isStale(index)) {
this.#delete(this.#keyList[index], "expire");
}
}, ttl + 1);
if (t.unref) {
t.unref();
}
}
};
this.#updateItemAge = (index) => {
starts[index] = ttls[index] !== 0 ? perf.now() : 0;
};
this.#statusTTL = (status, index) => {
if (ttls[index]) {
const ttl = ttls[index];
const start = starts[index];
if (!ttl || !start)
return;
status.ttl = ttl;
status.start = start;
status.now = cachedNow || getNow();
const age = status.now - start;
status.remainingTTL = ttl - age;
}
};
let cachedNow = 0;
const getNow = () => {
const n = perf.now();
if (this.ttlResolution > 0) {
cachedNow = n;
const t = setTimeout(() => cachedNow = 0, this.ttlResolution);
if (t.unref) {
t.unref();
}
}
return n;
};
this.getRemainingTTL = (key) => {
const index = this.#keyMap.get(key);
if (index === undefined) {
return 0;
}
const ttl = ttls[index];
const start = starts[index];
if (!ttl || !start) {
return Infinity;
}
const age = (cachedNow || getNow()) - start;
return ttl - age;
};
this.#isStale = (index) => {
const s = starts[index];
const t = ttls[index];
return !!t && !!s && (cachedNow || getNow()) - s > t;
};
}
#updateItemAge = () => {};
#statusTTL = () => {};
#setItemTTL = () => {};
#isStale = () => false;
#initializeSizeTracking() {
const sizes = new ZeroArray(this.#max);
this.#calculatedSize = 0;
this.#sizes = sizes;
this.#removeItemSize = (index) => {
this.#calculatedSize -= sizes[index];
sizes[index] = 0;
};
this.#requireSize = (k, v, size, sizeCalculation) => {
if (this.#isBackgroundFetch(v)) {
return 0;
}
if (!isPosInt(size)) {
if (sizeCalculation) {
if (typeof sizeCalculation !== "function") {
throw new TypeError("sizeCalculation must be a function");
}
size = sizeCalculation(v, k);
if (!isPosInt(size)) {
throw new TypeError("sizeCalculation return invalid (expect positive integer)");
}
} else {
throw new TypeError("invalid size value (must be positive integer). " + "When maxSize or maxEntrySize is used, sizeCalculation " + "or size must be set.");
}
}
return size;
};
this.#addItemSize = (index, size, status) => {
sizes[index] = size;
if (this.#maxSize) {
const maxSize = this.#maxSize - sizes[index];
while (this.#calculatedSize > maxSize) {
this.#evict(true);
}
}
this.#calculatedSize += sizes[index];
if (status) {
status.entrySize = size;
status.totalCalculatedSize = this.#calculatedSize;
}
};
}
#removeItemSize = (_i) => {};
#addItemSize = (_i, _s, _st) => {};
#requireSize = (_k, _v, size, sizeCalculation) => {
if (size || sizeCalculation) {
throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
}
return 0;
};
*#indexes({ allowStale = this.allowStale } = {}) {
if (this.#size) {
for (let i = this.#tail;; ) {
if (!this.#isValidIndex(i)) {
break;
}
if (allowStale || !this.#isStale(i)) {
yield i;
}
if (i === this.#head) {
break;
} else {
i = this.#prev[i];
}
}
}
}
*#rindexes({ allowStale = this.allowStale } = {}) {
if (this.#size) {
for (let i = this.#head;; ) {
if (!this.#isValidIndex(i)) {
break;
}
if (allowStale || !this.#isStale(i)) {
yield i;
}
if (i === this.#tail) {
break;
} else {
i = this.#next[i];
}
}
}
}
#isValidIndex(index) {
return index !== undefined && this.#keyMap.get(this.#keyList[index]) === index;
}
*entries() {
for (const i of this.#indexes()) {
if (this.#valList[i] !== undefined && this.#keyList[i] !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
yield [this.#keyList[i], this.#valList[i]];
}
}
}
*rentries() {
for (const i of this.#rindexes()) {
if (this.#valList[i] !== undefined && this.#keyList[i] !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
yield [this.#keyList[i], this.#valList[i]];
}
}
}
*keys() {
for (const i of this.#indexes()) {
const k = this.#keyList[i];
if (k !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
yield k;
}
}
}
*rkeys() {
for (const i of this.#rindexes()) {
const k = this.#keyList[i];
if (k !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
yield k;
}
}
}
*values() {
for (const i of this.#indexes()) {
const v = this.#valList[i];
if (v !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
yield this.#valList[i];
}
}
}
*rvalues() {
for (const i of this.#rindexes()) {
const v = this.#valList[i];
if (v !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {
yield this.#valList[i];
}
}
}
[Symbol.iterator]() {
return this.entries();
}
[Symbol.toStringTag] = "LRUCache";
find(fn, getOptions = {}) {
for (const i of this.#indexes()) {
const v = this.#valList[i];
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
if (value === undefined)
continue;
if (fn(value, this.#keyList[i], this)) {
return this.get(this.#keyList[i], getOptions);
}
}
}
forEach(fn, thisp = this) {
for (const i of this.#indexes()) {
const v = this.#valList[i];
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
if (value === undefined)
continue;
fn.call(thisp, value, this.#keyList[i], this);
}
}
rforEach(fn, thisp = this) {
for (const i of this.#rindexes()) {
const v = this.#valList[i];
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
if (value === undefined)
continue;
fn.call(thisp, value, this.#keyList[i], this);
}
}
purgeStale() {
let deleted = false;
for (const i of this.#rindexes({ allowStale: true })) {
if (this.#isStale(i)) {
this.#delete(this.#keyList[i], "expire");
deleted = true;
}
}
return deleted;
}
info(key) {
const i = this.#keyMap.get(key);
if (i === undefined)
return;
const v = this.#valList[i];
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
if (value === undefined)
return;
const entry = { value };
if (this.#ttls && this.#starts) {
const ttl = this.#ttls[i];
const start = this.#starts[i];
if (ttl && start) {
const remain = ttl - (perf.now() - start);
entry.ttl = remain;
entry.start = Date.now();
}
}
if (this.#sizes) {
entry.size = this.#sizes[i];
}
return entry;
}
dump() {
const arr = [];
for (const i of this.#indexes({ allowStale: true })) {
const key = this.#keyList[i];
const v = this.#valList[i];
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
if (value === undefined || key === undefined)
continue;
const entry = { value };
if (this.#ttls && this.#starts) {
entry.ttl = this.#ttls[i];
const age = perf.now() - this.#starts[i];
entry.start = Math.floor(Date.now() - age);
}
if (this.#sizes) {
entry.size = this.#sizes[i];
}
arr.unshift([key, entry]);
}
return arr;
}
load(arr) {
this.clear();
for (const [key, entry] of arr) {
if (entry.start) {
const age = Date.now() - entry.start;
entry.start = perf.now() - age;
}
this.set(key, entry.value, entry);
}
}
set(k, v, setOptions = {}) {
if (v === undefined) {
this.delete(k);
return this;
}
const { ttl = this.ttl, start, noDisposeOnSet = this.noDisposeOnSet, sizeCalculation = this.sizeCalculation, status } = setOptions;
let { noUpdateTTL = this.noUpdateTTL } = setOptions;
const size = this.#requireSize(k, v, setOptions.size || 0, sizeCalculation);
if (this.maxEntrySize && size > this.maxEntrySize) {
if (status) {
status.set = "miss";
status.maxEntrySizeExceeded = true;
}
this.#delete(k, "set");
return this;
}
let index = this.#size === 0 ? undefined : this.#keyMap.get(k);
if (index === undefined) {
index = this.#size === 0 ? this.#tail : this.#free.length !== 0 ? this.#free.pop() : this.#size === this.#max ? this.#evict(false) : this.#size;
this.#keyList[index] = k;
this.#valList[index] = v;
this.#keyMap.set(k, index);
this.#next[this.#tail] = index;
this.#prev[index] = this.#tail;
this.#tail = index;
this.#size++;
this.#addItemSize(index, size, status);
if (status)
status.set = "add";
noUpdateTTL = false;
} else {
this.#moveToTail(index);
const oldVal = this.#valList[index];
if (v !== oldVal) {
if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {
oldVal.__abortController.abort(new Error("replaced"));
const { __staleWhileFetching: s } = oldVal;
if (s !== undefined && !noDisposeOnSet) {
if (this.#hasDispose) {
this.#dispose?.(s, k, "set");
}
if (this.#hasDisposeAfter) {
this.#disposed?.push([s, k, "set"]);
}
}
} else if (!noDisposeOnSet) {
if (this.#hasDispose) {
this.#dispose?.(oldVal, k, "set");
}
if (this.#hasDisposeAfter) {
this.#disposed?.push([oldVal, k, "set"]);
}
}
this.#removeItemSize(index);
this.#addItemSize(index, size, status);
this.#valList[index] = v;
if (status) {
status.set = "replace";
const oldValue = oldVal && this.#isBackgroundFetch(oldVal) ? oldVal.__staleWhileFetching : oldVal;
if (oldValue !== undefined)
status.oldValue = oldValue;
}
} else if (status) {
status.set = "update";
}
}
if (ttl !== 0 && !this.#ttls) {
this.#initializeTTLTracking();
}
if (this.#ttls) {
if (!noUpdateTTL) {
this.#setItemTTL(index, ttl, start);
}
if (status)
this.#statusTTL(status, index);
}
if (!noDisposeOnSet && this.#hasDisposeAfter && this.#disposed) {
const dt = this.#disposed;
let task;
while (task = dt?.shift()) {
this.#disposeAfter?.(...task);
}
}
return this;
}
pop() {
try {
while (this.#size) {
const val = this.#valList[this.#head];
this.#evict(true);
if (this.#isBackgroundFetch(val)) {
if (val.__staleWhileFetching) {
return val.__staleWhileFetching;
}
} else if (val !== undefined) {
return val;
}
}
} finally {
if (this.#hasDisposeAfter && this.#disposed) {
const dt = this.#disposed;
let task;
while (task = dt?.shift()) {
this.#disposeAfter?.(...task);
}
}
}
}
#evict(free) {
const head = this.#head;
const k = this.#keyList[head];
const v = this.#valList[head];
if (this.#hasFetchMethod && this.#isBackgroundFetch(v)) {
v.__abortController.abort(new Error("evicted"));
} else if (this.#hasDispose || this.#hasDisposeAfter) {
if (this.#hasDispose) {
this.#dispose?.(v, k, "evict");
}
if (this.#hasDisposeAfter) {
this.#disposed?.push([v, k, "evict"]);
}
}
this.#removeItemSize(head);
if (free) {
this.#keyList[head] = undefined;
this.#valList[head] = undefined;
this.#free.push(head);
}
if (this.#size === 1) {
this.#head = this.#tail = 0;
this.#free.length = 0;
} else {
this.#head = this.#next[head];
}
this.#keyMap.delete(k);
this.#size--;
return head;
}
has(k, hasOptions = {}) {
const { updateAgeOnHas = this.updateAgeOnHas, status } = hasOptions;
const index = this.#keyMap.get(k);
if (index !== undefined) {
const v = this.#valList[index];
if (this.#isBackgroundFetch(v) && v.__staleWhileFetching === undefined) {
return false;
}
if (!this.#isStale(index)) {
if (updateAgeOnHas) {
this.#updateItemAge(index);
}
if (status) {
status.has = "hit";
this.#statusTTL(status, index);
}
return true;
} else if (status) {
status.has = "stale";
this.#statusTTL(status, index);
}
} else if (status) {
status.has = "miss";
}
return false;
}
peek(k, peekOptions = {}) {
const { allowStale = this.allowStale } = peekOptions;
const index = this.#keyMap.get(k);
if (index === undefined || !allowStale && this.#isStale(index)) {
return;
}
const v = this.#valList[index];
return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
}
#backgroundFetch(k, index, options, context) {
const v = index === undefined ? undefined : this.#valList[index];
if (this.#isBackgroundFetch(v)) {
return v;
}
const ac = new AC;
const { signal } = options;
signal?.addEventListener("abort", () => ac.abort(signal.reason), {
signal: ac.signal
});
const fetchOpts = {
signal: ac.signal,
options,
context
};
const cb = (v2, updateCache = false) => {
const { aborted } = ac.signal;
const ignoreAbort = options.ignoreFetchAbort && v2 !== undefined;
if (options.status) {
if (aborted && !updateCache) {
options.status.fetchAborted = true;
options.status.fetchError = ac.signal.reason;
if (ignoreAbort)
options.status.fetchAbortIgnored = true;
} else {
options.status.fetchResolved = true;
}
}
if (aborted && !ignoreAbort && !updateCache) {
return fetchFail(ac.signal.reason);
}
const bf2 = p;
if (this.#valList[index] === p) {
if (v2 === undefined) {
if (bf2.__staleWhileFetching) {
this.#valList[index] = bf2.__staleWhileFetching;
} else {
this.#delete(k, "fetch");
}
} else {
if (options.status)
options.status.fetchUpdated = true;
this.set(k, v2, fetchOpts.options);
}
}
return v2;
};
const eb = (er) => {
if (options.status) {
options.status.fetchRejected = true;
options.status.fetchError = er;
}
return fetchFail(er);
};
const fetchFail = (er) => {
const { aborted } = ac.signal;
const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;
const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
const noDelete = allowStale || options.noDeleteOnFetchRejection;
const bf2 = p;
if (this.#valList[index] === p) {
const del = !noDelete || bf2.__staleWhileFetching === undefined;
if (del) {
this.#delete(k, "fetch");
} else if (!allowStaleAborted) {
this.#valList[index] = bf2.__staleWhileFetching;
}
}
if (allowStale) {
if (options.status && bf2.__staleWhileFetching !== undefined) {
options.status.returnedStale = true;
}
return bf2.__staleWhileFetching;
} else if (bf2.__returned === bf2) {
throw er;
}
};
const pcall = (res, rej) => {
const fmp = this.#fetchMethod?.(k, v, fetchOpts);
if (fmp && fmp instanceof Promise) {
fmp.then((v2) => res(v2 === undefined ? undefined : v2), rej);
}
ac.signal.addEventListener("abort", () => {
if (!options.ignoreFetchAbort || options.allowStaleOnFetchAbort) {
res(undefined);
if (options.allowStaleOnFetchAbort) {
res = (v2) => cb(v2, true);
}
}
});
};
if (options.status)
options.status.fetchDispatched = true;
const p = new Promise(pcall).then(cb, eb);
const bf = Object.assign(p, {
__abortController: ac,
__staleWhileFetching: v,
__returned: undefined
});
if (index === undefined) {
this.set(k, bf, { ...fetchOpts.options, status: undefined });
index = this.#keyMap.get(k);
} else {
this.#valList[index] = bf;
}
return bf;
}
#isBackgroundFetch(p) {
if (!this.#hasFetchMethod)
return false;
const b = p;
return !!b && b instanceof Promise && b.hasOwnProperty("__staleWhileFetching") && b.__abortController instanceof AC;
}
async fetch(k, fetchOptions = {}) {
const {
allowStale = this.allowStale,
updateAgeOnGet = this.updateAgeOnGet,
noDeleteOnStaleGet = this.noDeleteOnStaleGet,
ttl = this.ttl,
noDisposeOnSet = this.noDisposeOnSet,
size = 0,
sizeCalculation = this.sizeCalculation,
noUpdateTTL = this.noUpdateTTL,
noDeleteOnFetchRejection = this.noDeleteOnFetchRejection,
allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
ignoreFetchAbort = this.ignoreFetchAbort,
allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
context,
forceRefresh = false,
status,
signal
} = fetchOptions;
if (!this.#hasFetchMethod) {
if (status)
status.fetch = "get";
return this.get(k, {
allowStale,
updateAgeOnGet,
noDeleteOnStaleGet,
status
});
}
const options = {
allowStale,
updateAgeOnGet,
noDeleteOnStaleGet,
ttl,
noDisposeOnSet,
size,
sizeCalculation,
noUpdateTTL,
noDeleteOnFetchRejection,
allowStaleOnFetchRejection,
allowStaleOnFetchAbort,
ignoreFetchAbort,
status,
signal
};
let index = this.#keyMap.get(k);
if (index === undefined) {
if (status)
status.fetch = "miss";
const p = this.#backgroundFetch(k, index, options, context);
return p.__returned = p;
} else {
const v = this.#valList[index];
if (this.#isBackgroundFetch(v)) {
const stale = allowStale && v.__staleWhileFetching !== undefined;
if (status) {
status.fetch = "inflight";
if (stale)
status.returnedStale = true;
}
return stale ? v.__staleWhileFetching : v.__returned = v;
}
const isStale = this.#isStale(index);
if (!forceRefresh && !isStale) {
if (status)
status.fetch = "hit";
this.#moveToTail(index);
if (updateAgeOnGet) {
this.#updateItemAge(index);
}
if (status)
this.#statusTTL(status, index);
return v;
}
const p = this.#backgroundFetch(k, index, options, context);
const hasStale = p.__staleWhileFetching !== undefined;
const staleVal = hasStale && allowStale;
if (status) {
status.fetch = isStale ? "stale" : "refresh";
if (staleVal && isStale)
status.returnedStale = true;
}
return staleVal ? p.__staleWhileFetching : p.__returned = p;
}
}
async forceFetch(k, fetchOptions = {}) {
const v = await this.fetch(k, fetchOptions);
if (v === undefined)
throw new Error("fetch() returned undefined");
return v;
}
memo(k, memoOptions = {}) {
const memoMethod = this.#memoMethod;
if (!memoMethod) {
throw new Error("no memoMethod provided to constructor");
}
const { context, forceRefresh, ...options } = memoOptions;
const v = this.get(k, options);
if (!forceRefresh && v !== undefined)
return v;
const vv = memoMethod(k, v, {
options,
context
});
this.set(k, vv, options);
return vv;
}
get(k, getOptions = {}) {
const { allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet, status } = getOptions;
const index = this.#keyMap.get(k);
if (index !== undefined) {
const value = this.#valList[index];
const fetching = this.#isBackgroundFetch(value);
if (status)
this.#statusTTL(status, index);
if (this.#isStale(index)) {
if (status)
status.get = "stale";
if (!fetching) {
if (!noDeleteOnStaleGet) {
this.#delete(k, "expire");
}
if (status && allowStale)
status.returnedStale = true;
return allowStale ? value : undefined;
} else {
if (status && allowStale && value.__staleWhileFetching !== undefined) {
status.returnedStale = true;
}
return allowStale ? value.__staleWhileFetching : undefined;
}
} else {
if (status)
status.get = "hit";
if (fetching) {
return value.__staleWhileFetching;
}
this.#moveToTail(index);
if (updateAgeOnGet) {
this.#updateItemAge(index);
}
return value;
}
} else if (status) {
status.get = "miss";
}
}
#connect(p, n) {
this.#prev[n] = p;
this.#next[p] = n;
}
#moveToTail(index) {
if (index !== this.#tail) {
if (index === this.#head) {
this.#head = this.#next[index];
} else {
this.#connect(this.#prev[index], this.#next[index]);
}
this.#connect(this.#tail, index);
this.#tail = index;
}
}
delete(k) {
return this.#delete(k, "delete");
}
#delete(k, reason) {
let deleted = false;
if (this.#size !== 0) {
const index = this.#keyMap.get(k);
if (index !== undefined) {
deleted = true;
if (this.#size === 1) {
this.#clear(reason);
} else {
this.#removeItemSize(index);
const v = this.#valList[index];
if (this.#isBackgroundFetch(v)) {
v.__abortController.abort(new Error("deleted"));
} else if (this.#hasDispose || this.#hasDisposeAfter) {
if (this.#hasDispose) {
this.#dispose?.(v, k, reason);
}
if (this.#hasDisposeAfter) {
this.#disposed?.push([v, k, reason]);
}
}
this.#keyMap.delete(k);
this.#keyList[index] = undefined;
this.#valList[index] = undefined;
if (index === this.#tail) {
this.#tail = this.#prev[index];
} else if (index === this.#head) {
this.#head = this.#next[index];
} else {
const pi = this.#prev[index];
this.#next[pi] = this.#next[index];
const ni = this.#next[index];
this.#prev[ni] = this.#prev[index];
}
this.#size--;
this.#free.push(index);
}
}
}
if (this.#hasDisposeAfter && this.#disposed?.length) {
const dt = this.#disposed;
let task;
while (task = dt?.shift()) {
this.#disposeAfter?.(...task);
}
}
return deleted;
}
clear() {
return this.#clear("delete");
}
#clear(reason) {
for (const index of this.#rindexes({ allowStale: true })) {
const v = this.#valList[index];
if (this.#isBackgroundFetch(v)) {
v.__abortController.abort(new Error("deleted"));
} else {
const k = this.#keyList[index];
if (this.#hasDispose) {
this.#dispose?.(v, k, reason);
}
if (this.#hasDisposeAfter) {
this.#disposed?.push([v, k, reason]);
}
}
}
this.#keyMap.clear();
this.#valList.fill(undefined);
this.#keyList.fill(undefined);
if (this.#ttls && this.#starts) {
this.#ttls.fill(0);
this.#starts.fill(0);
}
if (this.#sizes) {
this.#sizes.fill(0);
}
this.#head = 0;
this.#tail = 0;
this.#free.length = 0;
this.#calculatedSize = 0;
this.#size = 0;
if (this.#hasDisposeAfter && this.#disposed) {
const dt = this.#disposed;
let task;
while (task = dt?.shift()) {
this.#disposeAfter?.(...task);
}
}
}
}
// ../../node_modules/.bun/prettier@3.8.3/node_modules/prettier/plugins/babel.mjs
var Hs = Object.defineProperty;
var Re = (a, t) => {
for (var e in t)
Hs(a, e, { get: t[e], enumerable: true });
};
var Ks = {};
Re(Ks, { parsers: () => ra });
var kt = {};
Re(kt, { __babel_estree: () => Yr, __js_expression: () => Gr, __ts_expression: () => Xr, __vue_event_binding: () => Wr, __vue_expression: () => Gr, __vue_ts_event_binding: () => Jr, __vue_ts_expression: () => Xr, babel: () => Wr, "babel-flow": () => qs, "babel-ts": () => Jr });
function Ws(a, t) {
if (a == null)
return {};
var e = {};
for (var s in a)
if ({}.hasOwnProperty.call(a, s)) {
if (t.indexOf(s) !== -1)
continue;
e[s] = a[s];
}
return e;
}
var R = class {
line;
column;
index;
constructor(t, e, s) {
this.line = t, this.column = e, this.index = s;
}
};
var Q = class {
start;
end;
filename;
identifierName;
constructor(t, e) {
this.start = t, this.end = e;
}
};
function D(a, t) {
let { line: e, column: s, index: i } = a;
return new R(e, s + t, i + t);
}
var Dt = "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";
var Js = { ImportMetaOutsideModule: { message: `import.meta may appear only with 'sourceType: "module"'`, code: Dt }, ImportOutsideModule: { message: `'import' and 'export' may appear only with 'sourceType: "module"'`, code: Dt } };
var Mt = { ArrayPattern: "array destructuring pattern", AssignmentExpression: "assignment expression", AssignmentPattern: "assignment expression", ArrowFunctionExpression: "arrow function expression", ConditionalExpression: "conditional expression", CatchClause: "catch clause", ForOfStatement: "for-of statement", ForInStatement: "for-in statement", ForStatement: "for-loop", FormalParameters: "function parameter list", Identifier: "identifier", ImportSpecifier: "import specifier", ImportDefaultSpecifier: "import default specifier", ImportNamespaceSpecifier: "import namespace specifier", ObjectPattern: "object destructuring pattern", ParenthesizedExpression: "parenthesized expression", RestElement: "rest element", UpdateExpression: { true: "prefix operation", false: "postfix operation" }, VariableDeclarator: "variable declaration", YieldExpression: "yield expression" };
var be = (a) => a.type === "UpdateExpression" ? Mt.UpdateExpression[`${a.prefix}`] : Mt[a.type];
var Gs = { AccessorIsGenerator: ({ kind: a }) => `A ${a}ter cannot be a generator.`, ArgumentsInClass: "'arguments' is only allowed in functions and class methods.", AsyncFunctionInSingleStatementContext: "Async functions can only be declared at the top level or inside a block.", AwaitBindingIdentifier: "Can not use 'await' as identifier inside an async function.", AwaitBindingIdentifierInStaticBlock: "Can not use 'await' as identifier inside a static block.", AwaitExpressionFormalParameter: "'await' is not allowed in async function parameters.", AwaitUsingNotInAsyncContext: "'await using' is only allowed within async functions and at the top levels of modules.", AwaitNotInAsyncContext: "'await' is only allowed within async functions and at the top levels of modules.", BadGetterArity: "A 'get' accessor must not have any formal parameters.", BadSetterArity: "A 'set' accessor must have exactly one formal parameter.", BadSetterRestParameter: "A 'set' accessor function argument must not be a rest parameter.", ConstructorClassField: "Classes may not have a field named 'constructor'.", ConstructorClassPrivateField: "Classes may not have a private field named '#constructor'.", ConstructorIsAccessor: "Class constructor may not be an accessor.", ConstructorIsAsync: "Constructor can't be an async function.", ConstructorIsGenerator: "Constructor can't be a generator.", DeclarationMissingInitializer: ({ kind: a }) => `Missing initializer in ${a} declaration.`, DecoratorArgumentsOutsideParentheses: "Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.", DecoratorBeforeExport: "Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.", DecoratorsBeforeAfterExport: "Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.", DecoratorConstructor: "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?", DecoratorExportClass: "Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.", DecoratorSemicolon: "Decorators must not be followed by a semicolon.", DecoratorStaticBlock: "Decorators can't be used with a static block.", DeferImportRequiresNamespace: 'Only `import defer * as x from "./module"` is valid.', DeletePrivateField: "Deleting a private field is not allowed.", DestructureNamedImport: "ES2015 named imports do not destructure. Use another statement for destructuring after the import.", DuplicateConstructor: "Duplicate constructor in the same class.", DuplicateDefaultExport: "Only one default export allowed per module.", DuplicateExport: ({ exportName: a }) => `\`${a}\` has already been exported. Exported identifiers must be unique.`, DuplicateProto: "Redefinition of __proto__ property.", DuplicateRegExpFlags: "Duplicate regular expression flag.", ElementAfterRest: "Rest element must be last element.", EscapedCharNotAnIdentifier: "Invalid Unicode escape.", ExportBindingIsString: ({ localName: a, exportName: t }) => `A string literal cannot be used as an exported binding without \`from\`.
- Did you mean \`export { '${a}' as '${t}' } from 'some-module'\`?`, ExportDefaultFromAsIdentifier: "'from' is not allowed as an identifier after 'export default'.", ForInOfLoopInitializer: ({ type: a }) => `'${a === "ForInStatement" ? "for-in" : "for-of"}' loop variable declaration may not have an initializer.`, ForInUsing: "For-in loop may not start with 'using' declaration.", ForOfAsync: "The left-hand side of a for-of loop may not be 'async'.", ForOfLet: "The left-hand side of a for-of loop may not start with 'let'.", GeneratorInSingleStatementContext: "Generators can only be declared at the top level or inside a block.", IllegalBreakContinue: ({ type: a }) => `Unsyntactic ${a === "BreakStatement" ? "break" : "continue"}.`, IllegalLanguageModeDirective: "Illegal 'use strict' directive in function with non-simple parameter list.", IllegalReturn: "'return' outside of function.", ImportAttributesUseAssert: "The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.", ImportBindingIsString: ({ importName: a }) => `A string literal cannot be used as an imported binding.
- Did you mean \`import { "${a}" as foo }\`?`, ImportCallArity: "`import()` requires exactly one or two arguments.", ImportCallNotNewExpression: "Cannot use new with import(...).", ImportCallSpreadArgument: "`...` is not allowed in `import()`.", ImportJSONBindingNotDefault: "A JSON module can only be imported with `default`.", ImportReflectionHasAssertion: "`import module x` cannot have assertions.", ImportReflectionNotBinding: 'Only `import module x from "./module"` is valid.', IncompatibleRegExpUVFlags: "The 'u' and 'v' regular expression flags cannot be enabled at the same time.", InvalidBigIntLiteral: "Invalid BigIntLiteral.", InvalidCodePoint: "Code point out of bounds.", InvalidCoverDiscardElement: "'void' must be followed by an expression when not used in a binding position.", InvalidCoverInitializedName: "Invalid shorthand property initializer.", InvalidDecimal: "Invalid decimal.", InvalidDigit: ({ radix: a }) => `Expected number in radix ${a}.`, InvalidEscapeSequence: "Bad character escape sequence.", InvalidEscapeSequenceTemplate: "Invalid escape sequence in template.", InvalidEscapedReservedWord: ({ reservedWord: a }) => `Escape sequence in keyword ${a}.`, InvalidIdentifier: ({ identifierName: a }) => `Invalid identifier ${a}.`, InvalidLhs: ({ ancestor: a }) => `Invalid left-hand side in ${be(a)}.`, InvalidLhsBinding: ({ ancestor: a }) => `Binding invalid left-hand side in ${be(a)}.`, InvalidLhsOptionalChaining: ({ ancestor: a }) => `Invalid optional chaining in the left-hand side of ${be(a)}.`, InvalidNumber: "Invalid number.", InvalidOrMissingExponent: "Floating-point numbers require a valid exponent after the 'e'.", InvalidOrUnexpectedToken: ({ unexpected: a }) => `Unexpected character '${a}'.`, InvalidParenthesizedAssignment: "Invalid parenthesized assignment pattern.", InvalidPrivateFieldResolution: ({ identifierName: a }) => `Private name #${a} is not defined.`, InvalidPropertyBindingPattern: "Binding member expression.", InvalidRecordProperty: "Only properties and spread elements are allowed in record definitions.", InvalidRestAssignmentPattern: "Invalid rest operator's argument.", LabelRedeclaration: ({ labelName: a }) => `Label '${a}' is already declared.`, LetInLexicalBinding: "'let' is disallowed as a lexically bound name.", LineTerminatorBeforeArrow: "No line break is allowed before '=>'.", MalformedRegExpFlags: "Invalid regular expression flag.", MissingClassName: "A class name is required.", MissingEqInAssignment: "Only '=' operator can be used for specifying default value.", MissingSemicolon: "Missing semicolon.", MissingPlugin: ({ missingPlugin: a }) => `This experimental syntax requires enabling the parser plugin: ${a.map((t) => JSON.stringify(t)).join(", ")}.`, MissingOneOfPlugins: ({ missingPlugin: a }) => `This experimental syntax requires enabling one of the following parser plugin(s): ${a.map((t) => JSON.stringify(t)).join(", ")}.`, MissingUnicodeEscape: "Expecting Unicode escape sequence \\uXXXX.", MixingCoalesceWithLogical: "Nullish coalescing operator(??) requires parens when mixing with logical operators.", ModuleAttributeDifferentFromType: "The only accepted module attribute is `type`.", ModuleAttributeInvalidValue: "Only string literals are allowed as module attribute values.", ModuleAttributesWithDuplicateKeys: ({ key: a }) => `Duplicate key "${a}" is not allowed in module attributes.`, ModuleExportNameHasLoneSurrogate: ({ surrogateCharCode: a }) => `An export name cannot include a lone surrogate, found '\\u${a.toString(16)}'.`, ModuleExportUndefined: ({ localName: a }) => `Export '${a}' is not defined.`, MultipleDefaultsInSwitch: "Multiple default clauses.", NewlineAfterThrow: "Illegal newline after throw.", NoCatchOrFinally: "Missing catch or finally clause.", NumberIdentifier: "Identifier directly after number.", NumericSeparatorInEscapeSequence: "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.", ObsoleteAwaitStar: "'await*' has been removed from the async functions proposal. Use Promise.all() instead.", OptionalChainingNoNew: "Constructors in/after an Optional Chain are not allowed.", OptionalChainingNoTemplate: "Tagged Template Literals are not allowed in optionalChain.", OverrideOnConstructor: "'override' modifier cannot appear on a constructor declaration.", ParamDupe: "Argument name clash.", PatternHasAccessor: "Object pattern can't contain getter or setter.", PatternHasMethod: "Object pattern can't contain methods.", PrivateInExpectedIn: ({ identifierName: a }) => `Private names are only allowed in property accesses (\`obj.#${a}\`) or in \`in\` expressions (\`#${a} in obj\`).`, PrivateNameRedeclaration: ({ identifierName: a }) => `Duplicate private name #${a}.`, RecordExpressionBarIncorrectEndSyntaxType: "Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", RecordExpressionBarIncorrectStartSyntaxType: "Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", RecordExpressionHashIncorrectStartSyntaxType: "Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.", RecordNoProto: "'__proto__' is not allowed in Record expressions.", RestTrailingComma: "Unexpected trailing comma after rest element.", SloppyFunction: "In non-strict mode code, functions can only be declared at top level or inside a block.", SloppyFunctionAnnexB: "In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.", SourcePhaseImportRequiresDefault: 'Only `import source x from "./module"` is valid.', StaticPrototype: "Classes may not have static property named prototype.", SuperNotAllowed: "`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?", SuperPrivateField: "Private fields can't be accessed on super.", TrailingDecorator: "Decorators must be attached to a class element.", TupleExpressionBarIncorrectEndSyntaxType: "Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", TupleExpressionBarIncorrectStartSyntaxType: "Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.", TupleExpressionHashIncorrectStartSyntaxType: "Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.", UnexpectedArgumentPlaceholder: "Unexpected argument placeholder.", UnexpectedAwaitAfterPipelineBody: 'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.', UnexpectedDigitAfterHash: "Unexpected digit after hash token.", UnexpectedImportExport: "'import' and 'export' may only appear at the top level.", UnexpectedKeyword: ({ keyword: a }) => `Unexpected keyword '${a}'.`, UnexpectedLeadingDecorator: "Leading decorators must be attached to a class declaration.", UnexpectedLexicalDeclaration: "Lexical declaration cannot appear in a single-statement context.", UnexpectedNewTarget: "`new.target` can only be used in functions or class properties.", UnexpectedNumericSeparator: "A numeric separator is only allowed between two digits.", UnexpectedPrivateField: "Unexpected private name.", UnexpectedReservedWord: ({ reservedWord: a }) => `Unexpected reserved word '${a}'.`, UnexpectedSuper: "'super' is only allowed in object methods and classes.", UnexpectedToken: ({ expected: a, unexpected: t }) => `Unexpected token${t ? ` '${t}'.` : ""}${a ? `, expected "${a}"` : ""}`, UnexpectedTokenUnaryExponentiation: "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.", UnexpectedUsingDeclaration: "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.", UnexpectedVoidPattern: "Unexpected void binding.", UnsupportedBind: "Binding should be performed on object property.", UnsupportedDecoratorExport: "A decorated export must export a class declaration.", UnsupportedDefaultExport: "Only expressions, functions or classes are allowed as the `default` export.", UnsupportedImport: "`import` can only be used in `import()` or `import.meta`.", UnsupportedMetaProperty: ({ target: a, onlyValidPropertyName: t }) => `The only valid meta property for ${a} is ${a}.${t}.`, UnsupportedParameterDecorator: "Decorators cannot be used to decorate parameters.", UnsupportedPropertyDecorator: "Decorators cannot be used to decorate object literal properties.", UnsupportedSuper: "'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).", UnterminatedComment: "Unterminated comment.", UnterminatedRegExp: "Unterminated regular expression.", UnterminatedString: "Unterminated string constant.", UnterminatedTemplate: "Unterminated template.", UsingDeclarationExport: "Using declaration cannot be exported.", UsingDeclarationHasBindingPattern: "Using declaration cannot have destructuring patterns.", VarRedeclaration: ({ identifierName: a }) => `Identifier '${a}' has already been declared.`, VoidPatternCatchClauseParam: "A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.", VoidPatternInitializer: "A void binding may not have an initializer.", YieldBindingIdentifier: "Can not use 'yield' as identifier inside a generator.", YieldInParameter: "Yield expression is not allowed in formal parameters.", YieldNotInGeneratorFunction: "'yield' is only allowed within generator functions.", ZeroDigitNumericSeparator: "Numeric separator can not be used after leading 0." };
var Xs = { StrictDelete: "Deleting local variable in strict mode.", StrictEvalArguments: ({ referenceName: a }) => `Assigning to '${a}' in strict mode.`, StrictEvalArgumentsBinding: ({ bindingName: a }) => `Binding '${a}' in strict mode.`, StrictFunction: "In strict mode code, functions can only be declared at top level or inside a block.", StrictNumericEscape: "The only valid numeric escape in strict mode is '\\0'.", StrictOctalLiteral: "Legacy octal literals are not allowed in strict mode.", StrictWith: "'with' in strict mode." };
var Ys = { ParseExpressionEmptyInput: "Unexpected parseExpression() input: The input is empty or contains only comments.", ParseExpressionExpectsEOF: ({ unexpected: a }) => `Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(a)}\`.` };
var Qs = new Set(["ArrowFunctionExpression", "AssignmentExpression", "ConditionalExpression", "YieldExpression"]);
var Zs = Object.assign({ PipeBodyIsTighter: "Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.", PipeTopicRequiresHackPipes: 'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.', PipeTopicUnbound: "Topic reference is unbound; it must be inside a pipe body.", PipeTopicUnconfiguredToken: ({ token: a }) => `Invalid topic token ${a}. In order to use ${a} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${a}" }.`, PipeTopicUnused: "Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.", PipeUnparenthesizedBody: ({ type: a }) => `Hack-style pipe body cannot be an unparenthesized ${be({ type: a })}; please wrap it in parentheses.` }, {});
var ei = ["message"];
function Ot(a, t, e) {
Object.defineProperty(a, t, { enumerable: false, configurable: true, value: e });
}
function ti({ toMessage: a, code: t, reasonCode: e, syntaxPlugin: s }) {
let i = e === "MissingPlugin" || e === "MissingOneOfPlugins";
return function r(n, o) {
let h = new SyntaxError;
return h.code = t, h.reasonCode = e, h.loc = n, h.pos = n.index, h.syntaxPlugin = s, i && (h.missingPlugin = o.missingPlugin), Ot(h, "clone", function(u = {}) {
let { line: f, column: d, index: x } = u.loc ?? n;
return r(new R(f, d, x), Object.assign({}, o, u.details));
}), Ot(h, "details", o), Object.defineProperty(h, "message", { configurable: true, get() {
let l = `${a(o)} (${n.line}:${n.column})`;
return this.message = l, l;
}, set(l) {
Object.defineProperty(this, "message", { value: l, writable: true });
} }), h;
};
}
function F(a, t) {
if (Array.isArray(a))
return (s) => F(s, a[0]);
let e = {};
for (let s of Object.keys(a)) {
let i = a[s], r = typeof i == "string" ? { message: () => i } : typeof i == "function" ? { message: i } : i, { message: n } = r, o = Ws(r, ei), h = typeof n == "string" ? () => n : n;
e[s] = ti(Object.assign({ code: "BABEL_PARSER_SYNTAX_ERROR", reasonCode: s, toMessage: h }, t ? { syntaxPlugin: t } : {}, o));
}
return e;
}
var p = Object.assign({}, F(Js), F(Gs), F(Xs), F(Ys), F`pipelineOperator`(Zs));
function si() {
return { sourceType: "script", sourceFilename: undefined, startIndex: 0, startColumn: 0, startLine: 1, allowAwaitOutsideFunction: false, allowReturnOutsideFunction: false, allowNewTargetOutsideFunction: false, allowImportExportEverywhere: false, allowSuperOutsideMethod: false, allowUndeclaredExports: false, allowYieldOutsideFunction: false, plugins: [], strictMode: undefined, ranges: false, tokens: false, createImportExpressions: true, createParenthesizedExpressions: false, errorRecovery: false, attachComment: true, annexB: true };
}
function ii(a) {
let t = si();
if (a == null)
return t;
if (a.annexB != null && a.annexB !== false)
throw new Error("The `annexB` option can only be set to `false`.");
for (let e of Object.keys(t))
a[e] != null && (t[e] = a[e]);
if (t.startLine === 1)
a.startIndex == null && t.startColumn > 0 ? t.startIndex = t.startColumn : a.startColumn == null && t.startIndex > 0 && (t.startColumn = t.startIndex);
else if (a.startColumn == null || a.startIndex == null)
throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");
if (t.sourceType === "commonjs") {
if (a.allowAwaitOutsideFunction != null)
throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");
if (a.allowReturnOutsideFunction != null)
throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");
if (a.allowNewTargetOutsideFunction != null)
throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.");
}
return t;
}
var { defineProperty: ri } = Object;
var Ft = (a, t) => {
a && ri(a, t, { enumerable: false, value: a[t] });
};
function ne(a) {
return Ft(a.loc.start, "index"), Ft(a.loc.end, "index"), a;
}
var ai = (a) => class extends a {
parse() {
let e = ne(super.parse());
return this.optionFlags & 256 && (e.tokens = e.tokens.map(ne)), e;
}
parseRegExpLiteral({ pattern: e, flags: s }) {
let i = null;
try {
i = new RegExp(e, s);
} catch {}
let r = this.estreeParseLiteral(i);
return r.regex = { pattern: e, flags: s }, r;
}
parseBigIntLiteral(e) {
let s;
try {
s = BigInt(e);
} catch {
s = null;
}
let i = this.estreeParseLiteral(s);
return i.bigint = String(i.value || e), i;
}
parseDecimalLiteral(e) {
let i = this.estreeParseLiteral(null);
return i.decimal = String(i.value || e), i;
}
estreeParseLiteral(e) {
return this.parseLiteral(e, "Literal");
}
parseStringLiteral(e) {
return this.estreeParseLiteral(e);
}
parseNumericLiteral(e) {
return this.estreeParseLiteral(e);
}
parseNullLiteral() {
return this.estreeParseLiteral(null);
}
parseBooleanLiteral(e) {
return this.estreeParseLiteral(e);
}
estreeParseChainExpression(e, s) {
let i = this.startNodeAtNode(e);
return i.expression = e, this.finishNodeAt(i, "ChainExpression", s);
}
directiveToStmt(e) {
let s = e.value;
delete e.value, this.castNodeTo(s, "Literal"), s.raw = s.extra.raw, s.value = s.extra.expressionValue;
let i = this.castNodeTo(e, "ExpressionStatement");
return i.expression = s, i.directive = s.extra.rawValue, delete s.extra, i;
}
fillOptionalPropertiesForTSESLint(e) {}
cloneEstreeStringLiteral(e) {
let { start: s, end: i, loc: r, range: n, raw: o, value: h } = e, l = Object.create(e.constructor.prototype);
return l.type = "Literal", l.start = s, l.end = i, l.loc = r, l.range = n, l.raw = o, l.value = h, l;
}
initFunction(e, s) {
super.initFunction(e, s), e.expression = false;
}
checkDeclaration(e) {
e != null && this.isObjectProperty(e) ? this.checkDeclaration(e.value) : super.checkDeclaration(e);
}
getObjectOrClassMethodParams(e) {
return e.value.params;
}
isValidDirective(e) {
return e.type === "ExpressionStatement" && e.expression.type === "Literal" && typeof e.expression.value == "string" && !e.expression.extra?.parenthesized;
}
parseBlockBody(e, s, i, r, n) {
super.parseBlockBody(e, s, i, r, n);
let o = e.directives.map((h) => this.directiveToStmt(h));
e.body = o.concat(e.body), delete e.directives;
}
parsePrivateName() {
let e = super.parsePrivateName();
return this.convertPrivateNameToPrivateIdentifier(e);
}
convertPrivateNameToPrivateIdentifier(e) {
let s = super.getPrivateNameSV(e);
return delete e.id, e.name = s, this.castNodeTo(e, "PrivateIdentifier");
}
isPrivateName(e) {
return e.type === "PrivateIdentifier";
}
getPrivateNameSV(e) {
return e.name;
}
parseLiteral(e, s) {
let i = super.parseLiteral(e, s);
return i.raw = i.extra.raw, delete i.extra, i;
}
parseFunctionBody(e, s, i = false) {
super.parseFunctionBody(e, s, i), e.expression = e.body.type !== "BlockStatement";
}
parseMethod(e, s, i, r, n, o, h = false) {
let l = this.startNode();
l.kind = e.kind, l = super.parseMethod(l, s, i, r, n, o, h), delete l.kind;
let { typeParameters: u } = e;
u && (delete e.typeParameters, l.typeParameters = u, this.resetStartLocationFromNode(l, u));
let f = this.castNodeTo(l, this.hasPlugin("typescript") && !l.body ? "TSEmptyBodyFunctionExpression" : "FunctionExpression");
return e.value = f, o === "ClassPrivateMethod" && (e.computed = false), this.hasPlugin("typescript") && e.abstract ? (delete e.abstract, this.finishNode(e, "TSAbstractMethodDefinition")) : o === "ObjectMethod" ? (e.kind === "method" && (e.kind = "init"), e.shorthand = false, this.finishNode(e, "Property")) : this.finishNode(e, "MethodDefinition");
}
nameIsConstructor(e) {
return e.type === "Literal" ? e.value === "constructor" : super.nameIsConstructor(e);
}
parseClassProperty(...e) {
let s = super.parseClassProperty(...e);
return s.abstract && this.hasPlugin("typescript") ? (delete s.abstract, this.castNodeTo(s, "TSAbstractPropertyDefinition")) : this.castNodeTo(s, "PropertyDefinition"), s;
}
parseClassPrivateProperty(...e) {
let s = super.parseClassPrivateProperty(...e);
return s.abstract && this.hasPlugin("typescript") ? this.castNodeTo(s, "TSAbstractPropertyDefinition") : this.castNodeTo(s, "PropertyDefinition"), s.computed = false, s;
}
parseClassAccessorProperty(e) {
let s = super.parseClassAccessorProperty(e);
return s.abstract && this.hasPlugin("typescript") ? (delete s.abstract, this.castNodeTo(s, "TSAbstractAccessorProperty")) : this.castNodeTo(s, "AccessorProperty"), s;
}
parseObjectProperty(e, s, i, r) {
let n = super.parseObjectProperty(e, s, i, r);
return n && (n.kind = "init", this.castNodeTo(n, "Property")), n;
}
finishObjectProperty(e) {
return e.kind = "init", this.finishNode(e, "Property");
}
isValidLVal(e, s, i, r) {
return e === "Property" ? "value" : super.isValidLVal(e, s, i, r);
}
isAssignable(e, s) {
return e != null && this.isObjectProperty(e) ? this.isAssignable(e.value, s) : super.isAssignable(e, s);
}
toAssignable(e, s = false) {
if (e != null && this.isObjectProperty(e)) {
let { key: i, value: r } = e;
this.isPrivateName(i) && this.classScope.usePrivateName(this.getPrivateNameSV(i), i.loc.start), this.toAssignable(r, s);
} else
super.toAssignable(e, s);
}
toAssignableObjectExpressionProp(e, s, i) {
e.type === "Property" && (e.kind === "get" || e.kind === "set") ? this.raise(p.PatternHasAccessor, e.key) : e.type === "Property" && e.method ? this.raise(p.PatternHasMethod, e.key) : super.toAssignableObjectExpressionProp(e, s, i);
}
finishCallExpression(e, s) {
let i = super.finishCallExpression(e, s);
return i.callee.type === "Import" ? (this.castNodeTo(i, "ImportExpression"), i.source = i.arguments[0], i.options = i.arguments[1] ?? null, delete i.arguments, delete i.callee) : i.type === "OptionalCallExpression" ? this.castNodeTo(i, "CallExpression") : i.optional = false, i;
}
toReferencedArguments(e) {
e.type !== "ImportExpression" && super.toReferencedArguments(e);
}
parseExport(e, s) {
let i = this.state.lastTokStartLoc, r = super.parseExport(e, s);
switch (r.type) {
case "ExportAllDeclaration":
r.exported = null;
break;
case "ExportNamedDeclaration":
r.specifiers.length === 1 && r.specifiers[0].type === "ExportNamespaceSpecifier" && (this.castNodeTo(r, "ExportAllDeclaration"), r.exported = r.specifiers[0].exported, delete r.specifiers);
case "ExportDefaultDeclaration":
{
let { declaration: n } = r;
n?.type === "ClassDeclaration" && n.decorators?.length > 0 && n.start === r.start && this.resetStartLocation(r, i);
}
break;
}
return r;
}
stopParseSubscript(e, s) {
let i = super.stopParseSubscript(e, s);
return s.optionalChainMember ? this.estreeParseChainExpression(i, e.loc.end) : i;
}
parseMember(e, s, i, r, n) {
let o = super.parseMember(e, s, i, r, n);
return o.type === "OptionalMemberExpression" ? this.castNodeTo(o, "MemberExpression") : o.optional = false, o;
}
isOptionalMemberExpression(e) {
return e.type === "ChainExpression" ? e.expression.type === "MemberExpression" : super.isOptionalMemberExpression(e);
}
hasPropertyAsPrivateName(e) {
return e.type === "ChainExpression" && (e = e.expression), super.hasPropertyAsPrivateName(e);
}
isObjectProperty(e) {
return e.type === "Property" && e.kind === "init" && !e.method;
}
isObjectMethod(e) {
return e.type === "Property" && (e.method || e.kind === "get" || e.kind === "set");
}
castNodeTo(e, s) {
let i = super.castNodeTo(e, s);
return this.fillOptionalPropertiesForTSESLint(i), i;
}
cloneIdentifier(e) {
let s = super.cloneIdentifier(e);
return this.fillOptionalPropertiesForTSESLint(s), s;
}
cloneStringLiteral(e) {
return e.type === "Literal" ? this.cloneEstreeStringLiteral(e) : super.cloneStringLiteral(e);
}
finishNodeAt(e, s, i) {
return ne(super.finishNodeAt(e, s, i));
}
finishNode(e, s) {
let i = super.finishNode(e, s);
return this.fillOptionalPropertiesForTSESLint(i), i;
}
resetStartLocation(e, s) {
super.resetStartLocation(e, s), ne(e);
}
resetEndLocation(e, s = this.state.lastTokEndLoc) {
super.resetEndLocation(e, s), ne(e);
}
};
var W = class {
constructor(t, e) {
this.token = t, this.preserveSpace = !!e;
}
token;
preserveSpace;
};
var E = { brace: new W("{"), j_oTag: new W("<tag"), j_cTag: new W("</tag"), j_expr: new W("<tag>...</tag>", true) };
var T = true;
var m = true;
var Ue = true;
var oe = true;
var j = true;
var ni = true;
var we = class {
label;
keyword;
beforeExpr;
startsExpr;
rightAssociative;
isLoop;
isAssign;
prefix;
postfix;
binop;
constructor(t, e = {}) {
this.label = t, this.keyword = e.keyword, this.beforeExpr = !!e.beforeExpr, this.startsExpr = !!e.startsExpr, this.rightAssociative = !!e.rightAssociative, this.isLoop = !!e.isLoop, this.isAssign = !!e.isAssign, this.prefix = !!e.prefix, this.postfix = !!e.postfix, this.binop = e.binop != null ? e.binop : null;
}
};
var ft = new Map;
function S(a, t = {}) {
t.keyword = a;
let e = P(a, t);
return ft.set(a, e), e;
}
function v(a, t) {
return P(a, { beforeExpr: T, binop: t });
}
var pe = -1;
var dt = [];
var mt = [];
var yt = [];
var xt = [];
var Pt = [];
var gt = [];
function P(a, t = {}) {
return ++pe, mt.push(a), yt.push(t.binop ?? -1), xt.push(t.beforeExpr ?? false), Pt.push(t.startsExpr ?? false), gt.push(t.prefix ?? false), dt.push(new we(a, t)), pe;
}
function b(a, t = {}) {
return ++pe, ft.set(a, pe), mt.push(a), yt.push(t.binop ?? -1), xt.push(t.beforeExpr ?? false), Pt.push(t.startsExpr ?? false), gt.push(t.prefix ?? false), dt.push(new we("name", t)), pe;
}
var oi = { bracketL: P("[", { beforeExpr: T, startsExpr: m }), bracketHashL: P("#[", { beforeExpr: T, startsExpr: m }), bracketBarL: P("[|", { beforeExpr: T, startsExpr: m }), bracketR: P("]"), bracketBarR: P("|]"), braceL: P("{", { beforeExpr: T, startsExpr: m }), braceBarL: P("{|", { beforeExpr: T, startsExpr: m }), braceHashL: P("#{", { beforeExpr: T, startsExpr: m }), braceR: P("}"), braceBarR: P("|}"), parenL: P("(", { beforeExpr: T, startsExpr: m }), parenR: P(")"), comma: P(",", { beforeExpr: T }), semi: P(";", { beforeExpr: T }), colon: P(":", { beforeExpr: T }), doubleColon: P("::", { beforeExpr: T }), dot: P("."), question: P("?", { beforeExpr: T }), questionDot: P("?."), arrow: P("=>", { beforeExpr: T }), template: P("template"), ellipsis: P("...", { beforeExpr: T }), backQuote: P("`", { startsExpr: m }), dollarBraceL: P("${", { beforeExpr: T, startsExpr: m }), templateTail: P("...`", { startsExpr: m }), templateNonTail: P("...${", { beforeExpr: T, startsExpr: m }), at: P("@"), hash: P("#", { startsExpr: m }), interpreterDirective: P("#!..."), eq: P("=", { beforeExpr: T, isAssign: oe }), assign: P("_=", { beforeExpr: T, isAssign: oe }), slashAssign: P("_=", { beforeExpr: T, isAssign: oe }), xorAssign: P("_=", { beforeExpr: T, isAssign: oe }), moduloAssign: P("_=", { beforeExpr: T, isAssign: oe }), incDec: P("++/--", { prefix: j, postfix: ni, startsExpr: m }), bang: P("!", { beforeExpr: T, prefix: j, startsExpr: m }), tilde: P("~", { beforeExpr: T, prefix: j, startsExpr: m }), doubleCaret: P("^^", { startsExpr: m }), doubleAt: P("@@", { startsExpr: m }), pipeline: v("|>", 0), nullishCoalescing: v("??", 1), logicalOR: v("||", 1), logicalAND: v("&&", 2), bitwiseOR: v("|", 3), bitwiseXOR: v("^", 4), bitwiseAND: v("&", 5), equality: v("==/!=/===/!==", 6), lt: v("</>/<=/>=", 7), gt: v("</>/<=/>=", 7), relational: v("</>/<=/>=", 7), bitShift: v("<</>>/>>>", 8), bitShiftL: v("<</>>/>>>", 8), bitShiftR: v("<</>>/>>>", 8), plusMin: P("+/-", { beforeExpr: T, binop: 9, prefix: j, startsExpr: m }), modulo: P("%", { binop: 10, startsExpr: m }), star: P("*", { binop: 10 }), slash: v("/", 10), exponent: P("**", { beforeExpr: T, binop: 11, rightAssociative: true }), _in: S("in", { beforeExpr: T, binop: 7 }), _instanceof: S("instanceof", { beforeExpr: T, binop: 7 }), _break: S("break"), _case: S("case", { beforeExpr: T }), _catch: S("catch"), _continue: S("continue"), _debugger: S("debugger"), _default: S("default", { beforeExpr: T }), _else: S("else", { beforeExpr: T }), _finally: S("finally"), _function: S("function", { startsExpr: m }), _if: S("if"), _return: S("return", { beforeExpr: T }), _switch: S("switch"), _throw: S("throw", { beforeExpr: T, prefix: j, startsExpr: m }), _try: S("try"), _var: S("var"), _const: S("const"), _with: S("with"), _new: S("new", { beforeExpr: T, startsExpr: m }), _this: S("this", { startsExpr: m }), _super: S("super", { startsExpr: m }), _class: S("class", { startsExpr: m }), _extends: S("extends", { beforeExpr: T }), _export: S("export"), _import: S("import", { startsExpr: m }), _null: S("null", { startsExpr: m }), _true: S("true", { startsExpr: m }), _false: S("false", { startsExpr: m }), _typeof: S("typeof", { beforeExpr: T, prefix: j, startsExpr: m }), _void: S("void", { beforeExpr: T, prefix: j, startsExpr: m }), _delete: S("delete", { beforeExpr: T, prefix: j, startsExpr: m }), _do: S("do", { isLoop: Ue, beforeExpr: T }), _for: S("for", { isLoop: Ue }), _while: S("while", { isLoop: Ue }), _as: b("as", { startsExpr: m }), _assert: b("assert", { startsExpr: m }), _async: b("async", { startsExpr: m }), _await: b("await", { startsExpr: m }), _defer: b("defer", { startsExpr: m }), _from: b("from", { startsExpr: m }), _get: b("get", { startsExpr: m }), _let: b("let", { startsExpr: m }), _meta: b("meta", { startsExpr: m }), _of: b("of", { startsExpr: m }), _sent: b("sent", { startsExpr: m }), _set: b("set", { startsExpr: m }), _source: b("source", { startsExpr: m }), _static: b("static", { startsExpr: m }), _using: b("using", { startsExpr: m }), _yield: b("yield", { startsExpr: m }), _asserts: b("asserts", { startsExpr: m }), _checks: b("checks", { startsExpr: m }), _exports: b("exports", { startsExpr: m }), _global: b("global", { startsExpr: m }), _implements: b("implements", { startsExpr: m }), _intrinsic: b("intrinsic", { startsExpr: m }), _infer: b("infer", { startsExpr: m }), _is: b("is", { startsExpr: m }), _mixins: b("mixins", { startsExpr: m }), _proto: b("proto", { startsExpr: m }), _require: b("require", { startsExpr: m }), _satisfies: b("satisfies", { startsExpr: m }), _keyof: b("keyof", { startsExpr: m }), _readonly: b("readonly", { startsExpr: m }), _unique: b("unique", { startsExpr: m }), _abstract: b("abstract", { startsExpr: m }), _declare: b("declare", { startsExpr: m }), _enum: b("enum", { startsExpr: m }), _module: b("module", { startsExpr: m }), _namespace: b("namespace", { startsExpr: m }), _interface: b("interface", { startsExpr: m }), _type: b("type", { startsExpr: m }), _opaque: b("opaque", { startsExpr: m }), name: P("name", { startsExpr: m }), placeholder: P("%%", { startsExpr: m }), string: P("string", { startsExpr: m }), num: P("num", { startsExpr: m }), bigint: P("bigint", { startsExpr: m }), decimal: P("decimal", { startsExpr: m }), regexp: P("regexp", { startsExpr: m }), privateName: P("#name", { startsExpr: m }), eof: P("eof"), jsxName: P("jsxName"), jsxText: P("jsxText", { beforeExpr: T }), jsxTagStart: P("jsxTagStart", { startsExpr: m }), jsxTagEnd: P("jsxTagEnd") };
function w(a) {
return a >= 93 && a <= 133;
}
function hi(a) {
return a <= 92;
}
function O(a) {
return a >= 58 && a <= 133;
}
function Jt(a) {
return a >= 58 && a <= 137;
}
function ci(a) {
return xt[a];
}
function ce(a) {
return Pt[a];
}
function li(a) {
return a >= 29 && a <= 33;
}
function Bt(a) {
return a >= 129 && a <= 131;
}
function pi(a) {
return a >= 90 && a <= 92;
}
function Tt(a) {
return a >= 58 && a <= 92;
}
function ui(a) {
return a >= 39 && a <= 59;
}
function fi(a) {
return a === 34;
}
function di(a) {
return gt[a];
}
function mi(a) {
return a >= 121 && a <= 123;
}
function yi(a) {
return a >= 124 && a <= 130;
}
function z(a) {
return mt[a];
}
function Ae(a) {
return yt[a];
}
function xi(a) {
return a === 57;
}
function $e(a) {
return a >= 24 && a <= 25;
}
function Gt(a) {
return dt[a];
}
var bt = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
var Xt = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
var Pi = new RegExp("[" + bt + "]");
var gi = new RegExp("[" + bt + Xt + "]");
bt = Xt = null;
var Yt = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489];
var Ti = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
function Ke(a, t) {
let e = 65536;
for (let s = 0, i = t.length;s < i; s += 2) {
if (e += t[s], e > a)
return false;
if (e += t[s + 1], e >= a)
return true;
}
return false;
}
function B(a) {
return a < 65 ? a === 36 : a <= 90 ? true : a < 97 ? a === 95 : a <= 122 ? true : a <= 65535 ? a >= 170 && Pi.test(String.fromCharCode(a)) : Ke(a, Yt);
}
function K(a) {
return a < 48 ? a === 36 : a < 58 ? true : a < 65 ? false : a <= 90 ? true : a < 97 ? a === 95 : a <= 122 ? true : a <= 65535 ? a >= 170 && gi.test(String.fromCharCode(a)) : Ke(a, Yt) || Ke(a, Ti);
}
var At = { keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], strictBind: ["eval", "arguments"] };
var bi = new Set(At.keyword);
var Ai = new Set(At.strict);
var Si = new Set(At.strictBind);
function Qt(a, t) {
return t && a === "await" || a === "enum";
}
function Zt(a, t) {
return Qt(a, t) || Ai.has(a);
}
function es(a) {
return Si.has(a);
}
function ts(a, t) {
return Zt(a, t) || es(a);
}
function wi(a) {
return bi.has(a);
}
function Ci(a, t, e) {
return a === 64 && t === 64 && B(e);
}
var Ei = new Set(["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete", "implements", "interface", "let", "package", "private", "protected", "public", "static", "yield", "eval", "arguments", "enum", "await"]);
function Ii(a) {
return Ei.has(a);
}
var ue = class {
flags = 0;
names = new Map;
firstLexicalName = "";
constructor(t) {
this.flags = t;
}
};
var fe = class {
parser;
scopeStack = [];
inModule;
undefinedExports = new Map;
constructor(t, e) {
this.parser = t, this.inModule = e;
}
get inTopLevel() {
return (this.currentScope().flags & 1) > 0;
}
get inFunction() {
return (this.currentVarScopeFlags() & 2) > 0;
}
get allowSuper() {
return (this.currentThisScopeFlags() & 16) > 0;
}
get allowDirectSuper() {
return (this.currentThisScopeFlags() & 32) > 0;
}
get allowNewTarget() {
return (this.currentThisScopeFlags() & 512) > 0;
}
get inClass() {
return (this.currentThisScopeFlags() & 64) > 0;
}
get inClassAndNotInNonArrowFunction() {
let t = this.currentThisScopeFlags();
return (t & 64) > 0 && (t & 2) === 0;
}
get inStaticBlock() {
for (let t = this.scopeStack.length - 1;; t--) {
let { flags: e } = this.scopeStack[t];
if (e & 128)
return true;
if (e & 1731)
return false;
}
}
get inNonArrowFunction() {
return (this.currentThisScopeFlags() & 2) > 0;
}
get inBareCaseStatement() {
return (this.currentScope().flags & 256) > 0;
}
get treatFunctionsAsVar() {
return this.treatFunctionsAsVarInScope(this.currentScope());
}
createScope(t) {
return new ue(t);
}
enter(t) {
this.scopeStack.push(this.createScope(t));
}
exit() {
return this.scopeStack.pop().flags;
}
treatFunctionsAsVarInScope(t) {
return !!(t.flags & 130 || !this.parser.inModule && t.flags & 1);
}
declareName(t, e, s) {
let i = this.currentScope();
if (e & 8 || e & 16) {
this.checkRedeclarationInScope(i, t, e, s);
let r = i.names.get(t) || 0;
e & 16 ? r = r | 4 : (i.firstLexicalName || (i.firstLexicalName = t), r = r | 2), i.names.set(t, r), e & 8 && this.maybeExportDefined(i, t);
} else if (e & 4)
for (let r = this.scopeStack.length - 1;r >= 0 && (i = this.scopeStack[r], this.checkRedeclarationInScope(i, t, e, s), i.names.set(t, (i.names.get(t) || 0) | 1), this.maybeExportDefined(i, t), !(i.flags & 1667)); --r)
;
this.parser.inModule && i.flags & 1 && this.undefinedExports.delete(t);
}
maybeExportDefined(t, e) {
this.parser.inModule && t.flags & 1 && this.undefinedExports.delete(e);
}
checkRedeclarationInScope(t, e, s, i) {
this.isRedeclaredInScope(t, e, s) && this.parser.raise(p.VarRedeclaration, i, { identifierName: e });
}
isRedeclaredInScope(t, e, s) {
if (!(s & 1))
return false;
if (s & 8)
return t.names.has(e);
let i = t.names.get(e) || 0;
return s & 16 ? (i & 2) > 0 || !this.treatFunctionsAsVarInScope(t) && (i & 1) > 0 : (i & 2) > 0 && !(t.flags & 8 && t.firstLexicalName === e) || !this.treatFunctionsAsVarInScope(t) && (i & 4) > 0;
}
checkLocalExport(t) {
let { name: e } = t;
this.scopeStack[0].names.has(e) || this.undefinedExports.set(e, t.loc.start);
}
currentScope() {
return this.scopeStack[this.scopeStack.length - 1];
}
currentVarScopeFlags() {
for (let t = this.scopeStack.length - 1;; t--) {
let { flags: e } = this.scopeStack[t];
if (e & 1667)
return e;
}
}
currentThisScopeFlags() {
for (let t = this.scopeStack.length - 1;; t--) {
let { flags: e } = this.scopeStack[t];
if (e & 1731 && !(e & 4))
return e;
}
}
};
var He = class extends ue {
declareFunctions = new Set;
};
var We = class extends fe {
createScope(t) {
return new He(t);
}
declareName(t, e, s) {
let i = this.currentScope();
if (e & 2048) {
this.checkRedeclarationInScope(i, t, e, s), this.maybeExportDefined(i, t), i.declareFunctions.add(t);
return;
}
super.declareName(t, e, s);
}
isRedeclaredInScope(t, e, s) {
if (super.isRedeclaredInScope(t, e, s))
return true;
if (s & 2048 && !t.declareFunctions.has(e)) {
let i = t.names.get(e);
return (i & 4) > 0 || (i & 2) > 0;
}
return false;
}
checkLocalExport(t) {
this.scopeStack[0].declareFunctions.has(t.name) || super.checkLocalExport(t);
}
};
var Ni = new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "static", "string", "true", "typeof", "void"]);
var g = F`flow`({ AmbiguousConditionalArrow: "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.", AmbiguousDeclareModuleKind: "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.", AssignReservedType: ({ reservedType: a }) => `Cannot overwrite reserved type ${a}.`, DeclareClassElement: "The `declare` modifier can only appear on class fields.", DeclareClassFieldInitializer: "Initializers are not allowed in fields with the `declare` modifier.", DuplicateDeclareModuleExports: "Duplicate `declare module.exports` statement.", EnumBooleanMemberNotInitialized: ({ memberName: a, enumName: t }) => `Boolean enum members need to be initialized. Use either \`${a} = true,\` or \`${a} = false,\` in enum \`${t}\`.`, EnumDuplicateMemberName: ({ memberName: a, enumName: t }) => `Enum member names need to be unique, but the name \`${a}\` has already been used before in enum \`${t}\`.`, EnumInconsistentMemberValues: ({ enumName: a }) => `Enum \`${a}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`, EnumInvalidExplicitType: ({ invalidEnumType: a, enumName: t }) => `Enum type \`${a}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`, EnumInvalidExplicitTypeUnknownSupplied: ({ enumName: a }) => `Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${a}\`.`, EnumInvalidMemberInitializerPrimaryType: ({ enumName: a, memberName: t, explicitType: e }) => `Enum \`${a}\` has type \`${e}\`, so the initializer of \`${t}\` needs to be a ${e} literal.`, EnumInvalidMemberInitializerSymbolType: ({ enumName: a, memberName: t }) => `Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${a}\`.`, EnumInvalidMemberInitializerUnknownType: ({ enumName: a, memberName: t }) => `The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${a}\`.`, EnumInvalidMemberName: ({ enumName: a, memberName: t, suggestion: e }) => `Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${e}\`, in enum \`${a}\`.`, EnumNumberMemberNotInitialized: ({ enumName: a, memberName: t }) => `Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${a}\`.`, EnumStringMemberInconsistentlyInitialized: ({ enumName: a }) => `String enum members need to consistently either all use initializers, or use no initializers, in enum \`${a}\`.`, GetterMayNotHaveThisParam: "A getter cannot have a `this` parameter.", ImportReflectionHasImportType: "An `import module` declaration can not use `type` or `typeof` keyword.", ImportTypeShorthandOnlyInPureImport: "The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.", InexactInsideExact: "Explicit inexact syntax cannot appear inside an explicit exact object type.", InexactInsideNonObject: "Explicit inexact syntax cannot appear in class or interface definitions.", InexactVariance: "Explicit inexact syntax cannot have variance.", InvalidNonTypeImportInDeclareModule: "Imports within a `declare module` body must always be `import type` or `import typeof`.", MissingTypeParamDefault: "Type parameter declaration needs a default, since a preceding type parameter declaration has a default.", NestedDeclareModule: "`declare module` cannot be used inside another `declare module`.", NestedFlowComment: "Cannot have a flow comment inside another flow comment.", PatternIsOptional: Object.assign({ message: "A binding pattern parameter cannot be optional in an implementation signature." }, {}), SetterMayNotHaveThisParam: "A setter cannot have a `this` parameter.", SpreadVariance: "Spread properties cannot have variance.", ThisParamAnnotationRequired: "A type annotation is required for the `this` parameter.", ThisParamBannedInConstructor: "Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.", ThisParamMayNotBeOptional: "The `this` parameter cannot be optional.", ThisParamMustBeFirst: "The `this` parameter must be the first function parameter.", ThisParamNoDefault: "The `this` parameter may not have a default value.", TypeBeforeInitializer: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", TypeCastInPattern: "The type cast expression is expected to be wrapped with parenthesis.", UnexpectedExplicitInexactInObject: "Explicit inexact syntax must appear at the end of an inexact object.", UnexpectedReservedType: ({ reservedType: a }) => `Unexpected reserved type ${a}.`, UnexpectedReservedUnderscore: "`_` is only allowed as a type argument to call or new.", UnexpectedSpaceBetweenModuloChecks: "Spaces between `%` and `checks` are not allowed here.", UnexpectedSpreadType: "Spread operator cannot appear in class or interface definitions.", UnexpectedSubtractionOperand: 'Unexpected token, expected "number" or "bigint".', UnexpectedTokenAfterTypeParameter: "Expected an arrow function after this type parameter declaration.", UnexpectedTypeParameterBeforeAsyncArrowFunction: "Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.", UnsupportedDeclareExportKind: ({ unsupportedExportKind: a, suggestion: t }) => `\`declare export ${a}\` is not supported. Use \`${t}\` instead.`, UnsupportedStatementInDeclareModule: "Only declares and type imports are allowed inside declare module.", UnterminatedFlowComment: "Unterminated flow-comment." });
function ki(a) {
return a.type === "DeclareExportAllDeclaration" || a.type === "DeclareExportDeclaration" && (!a.declaration || a.declaration.type !== "TypeAlias" && a.declaration.type !== "InterfaceDeclaration");
}
function Rt(a) {
return a.importKind === "type" || a.importKind === "typeof";
}
var vi = { const: "declare export var", let: "declare export var", type: "export type", interface: "export interface" };
function Li(a, t) {
let e = [], s = [];
for (let i = 0;i < a.length; i++)
(t(a[i], i, a) ? e : s).push(a[i]);
return [e, s];
}
var Di = /\*?\s*@((?:no)?flow)\b/;
var Mi = (a) => class extends a {
flowPragma = undefined;
getScopeHandler() {
return We;
}
shouldParseTypes() {
return this.getPluginOption("flow", "all") || this.flowPragma === "flow";
}
finishToken(e, s) {
e !== 134 && e !== 13 && e !== 28 && this.flowPragma === undefined && (this.flowPragma = null), super.finishToken(e, s);
}
addComment(e) {
if (this.flowPragma === undefined) {
let s = Di.exec(e.value);
if (s)
if (s[1] === "flow")
this.flowPragma = "flow";
else if (s[1] === "noflow")
this.flowPragma = "noflow";
else
throw new Error("Unexpected flow pragma");
}
super.addComment(e);
}
flowParseTypeInitialiser(e) {
let s = this.state.inType;
this.state.inType = true, this.expect(e || 14);
let i = this.flowParseType();
return this.state.inType = s, i;
}
flowParsePredicate() {
let e = this.startNode(), s = this.state.startLoc;
return this.next(), this.expectContextual(110), this.state.lastTokStartLoc.index > s.index + 1 && this.raise(g.UnexpectedSpaceBetweenModuloChecks, s), this.eat(10) ? (e.value = super.parseExpression(), this.expect(11), this.finishNode(e, "DeclaredPredicate")) : this.finishNode(e, "InferredPredicate");
}
flowParseTypeAndPredicateInitialiser() {
let e = this.state.inType;
this.state.inType = true, this.expect(14);
let s = null, i = null;
return this.match(54) ? (this.state.inType = e, i = this.flowParsePredicate()) : (s = this.flowParseType(), this.state.inType = e, this.match(54) && (i = this.flowParsePredicate())), [s, i];
}
flowParseDeclareClass(e) {
return this.next(), this.flowParseInterfaceish(e, true), this.finishNode(e, "DeclareClass");
}
flowParseDeclareFunction(e) {
this.next();
let s = e.id = this.parseIdentifier(), i = this.startNode(), r = this.startNode();
this.match(47) ? i.typeParameters = this.flowParseTypeParameterDeclaration() : i.typeParameters = null, this.expect(10);
let n = this.flowParseFunctionTypeParams();
return i.params = n.params, i.rest = n.rest, i.this = n._this, this.expect(11), [i.returnType, e.predicate] = this.flowParseTypeAndPredicateInitialiser(), r.typeAnnotation = this.finishNode(i, "FunctionTypeAnnotation"), s.typeAnnotation = this.finishNode(r, "TypeAnnotation"), this.resetEndLocation(s), this.semicolon(), this.scope.declareName(e.id.name, 2048, e.id.loc.start), this.finishNode(e, "DeclareFunction");
}
flowParseDeclare(e, s) {
if (this.match(80))
return this.flowParseDeclareClass(e);
if (this.match(68))
return this.flowParseDeclareFunction(e);
if (this.match(74))
return this.flowParseDeclareVariable(e);
if (this.eatContextual(127))
return this.match(16) ? this.flowParseDeclareModuleExports(e) : (s && this.raise(g.NestedDeclareModule, this.state.lastTokStartLoc), this.flowParseDeclareModule(e));
if (this.isContextual(130))
return this.flowParseDeclareTypeAlias(e);
if (this.isContextual(131))
return this.flowParseDeclareOpaqueType(e);
if (this.isContextual(129))
return this.flowParseDeclareInterface(e);
if (this.match(82))
return this.flowParseDeclareExportDeclaration(e, s);
throw this.unexpected();
}
flowParseDeclareVariable(e) {
return this.next(), e.id = this.flowParseTypeAnnotatableIdentifier(true), this.scope.declareName(e.id.name, 5, e.id.loc.start), this.semicolon(), this.finishNode(e, "DeclareVariable");
}
flowParseDeclareModule(e) {
this.scope.enter(0), this.match(134) ? e.id = super.parseExprAtom() : e.id = this.parseIdentifier();
let s = e.body = this.startNode(), i = s.body = [];
for (this.expect(5);!this.match(8); ) {
let o = this.startNode();
this.match(83) ? (this.next(), !this.isContextual(130) && !this.match(87) && this.raise(g.InvalidNonTypeImportInDeclareModule, this.state.lastTokStartLoc), i.push(super.parseImport(o))) : (this.expectContextual(125, g.UnsupportedStatementInDeclareModule), i.push(this.flowParseDeclare(o, true)));
}
this.scope.exit(), this.expect(8), this.finishNode(s, "BlockStatement");
let r = null, n = false;
return i.forEach((o) => {
ki(o) ? (r === "CommonJS" && this.raise(g.AmbiguousDeclareModuleKind, o), r = "ES") : o.type === "DeclareModuleExports" && (n && this.raise(g.DuplicateDeclareModuleExports, o), r === "ES" && this.raise(g.AmbiguousDeclareModuleKind, o), r = "CommonJS", n = true);
}), e.kind = r || "CommonJS", this.finishNode(e, "DeclareModule");
}
flowParseDeclareExportDeclaration(e, s) {
if (this.expect(82), this.eat(65))
return this.match(68) || this.match(80) ? e.declaration = this.flowParseDeclare(this.startNode()) : (e.declaration = this.flowParseType(), this.semicolon()), e.default = true, this.finishNode(e, "DeclareExportDeclaration");
if (this.match(75) || this.isLet() || (this.isContextual(130) || this.isContextual(129)) && !s) {
let i = this.state.value;
throw this.raise(g.UnsupportedDeclareExportKind, this.state.startLoc, { unsupportedExportKind: i, suggestion: vi[i] });
}
if (this.match(74) || this.match(68) || this.match(80) || this.isContextual(131))
return e.declaration = this.flowParseDeclare(this.startNode()), e.default = false, this.finishNode(e, "DeclareExportDeclaration");
if (this.match(55) || this.match(5) || this.isContextual(129) || this.isContextual(130) || this.isContextual(131))
return e = this.parseExport(e, null), e.type === "ExportNamedDeclaration" ? (e.default = false, delete e.exportKind, this.castNodeTo(e, "DeclareExportDeclaration")) : this.castNodeTo(e, "DeclareExportAllDeclaration");
throw this.unexpected();
}
flowParseDeclareModuleExports(e) {
return this.next(), this.expectContextual(111), e.typeAnnotation = this.flowParseTypeAnnotation(), this.semicolon(), this.finishNode(e, "DeclareModuleExports");
}
flowParseDeclareTypeAlias(e) {
this.next();
let s = this.flowParseTypeAlias(e);
return this.castNodeTo(s, "DeclareTypeAlias"), s;
}
flowParseDeclareOpaqueType(e) {
this.next();
let s = this.flowParseOpaqueType(e, true);
return this.castNodeTo(s, "DeclareOpaqueType"), s;
}
flowParseDeclareInterface(e) {
return this.next(), this.flowParseInterfaceish(e, false), this.finishNode(e, "DeclareInterface");
}
flowParseInterfaceish(e, s) {
if (e.id = this.flowParseRestrictedIdentifier(!s, true), this.scope.declareName(e.id.name, s ? 17 : 8201, e.id.loc.start), this.match(47) ? e.typeParameters = this.flowParseTypeParameterDeclaration() : e.typeParameters = null, e.extends = [], this.eat(81))
do
e.extends.push(this.flowParseInterfaceExtends());
while (!s && this.eat(12));
if (s) {
if (e.implements = [], e.mixins = [], this.eatContextual(117))
do
e.mixins.push(this.flowParseInterfaceExtends());
while (this.eat(12));
if (this.eatContextual(113))
do
e.implements.push(this.flowParseInterfaceExtends());
while (this.eat(12));
}
e.body = this.flowParseObjectType({ allowStatic: s, allowExact: false, allowSpread: false, allowProto: s, allowInexact: false });
}
flowParseInterfaceExtends() {
let e = this.startNode();
return e.id = this.flowParseQualifiedTypeIdentifier(), this.match(47) ? e.typeParameters = this.flowParseTypeParameterInstantiation() : e.typeParameters = null, this.finishNode(e, "InterfaceExtends");
}
flowParseInterface(e) {
return this.flowParseInterfaceish(e, false), this.finishNode(e, "InterfaceDeclaration");
}
checkNotUnderscore(e) {
e === "_" && this.raise(g.UnexpectedReservedUnderscore, this.state.startLoc);
}
checkReservedType(e, s, i) {
Ni.has(e) && this.raise(i ? g.AssignReservedType : g.UnexpectedReservedType, s, { reservedType: e });
}
flowParseRestrictedIdentifier(e, s) {
return this.checkReservedType(this.state.value, this.state.startLoc, s), this.parseIdentifier(e);
}
flowParseTypeAlias(e) {
return e.id = this.flowParseRestrictedIdentifier(false, true), this.scope.declareName(e.id.name, 8201, e.id.loc.start), this.match(47) ? e.typeParameters = this.flowParseTypeParameterDeclaration() : e.typeParameters = null, e.right = this.flowParseTypeInitialiser(29), this.semicolon(), this.finishNode(e, "TypeAlias");
}
flowParseOpaqueType(e, s) {
return this.expectContextual(130), e.id = this.flowParseRestrictedIdentifier(true, true), this.scope.declareName(e.id.name, 8201, e.id.loc.start), this.match(47) ? e.typeParameters = this.flowParseTypeParameterDeclaration() : e.typeParameters = null, e.supertype = null, this.match(14) && (e.supertype = this.flowParseTypeInitialiser(14)), e.impltype = null, s || (e.impltype = this.flowParseTypeInitialiser(29)), this.semicolon(), this.finishNode(e, "OpaqueType");
}
flowParseTypeParameter(e = false) {
let s = this.state.startLoc, i = this.startNode(), r = this.flowParseVariance(), n = this.flowParseTypeAnnotatableIdentifier();
return i.name = n.name, i.variance = r, i.bound = n.typeAnnotation, this.match(29) ? (this.eat(29), i.default = this.flowParseType()) : e && this.raise(g.MissingTypeParamDefault, s), this.finishNode(i, "TypeParameter");
}
flowParseTypeParameterDeclaration() {
let e = this.state.inType, s = this.startNode();
s.params = [], this.state.inType = true, this.match(47) || this.match(143) ? this.next() : this.unexpected();
let i = false;
do {
let r = this.flowParseTypeParameter(i);
s.params.push(r), r.default && (i = true), this.match(48) || this.expect(12);
} while (!this.match(48));
return this.expect(48), this.state.inType = e, this.finishNode(s, "TypeParameterDeclaration");
}
flowInTopLevelContext(e) {
if (this.curContext() !== E.brace) {
let s = this.state.context;
this.state.context = [s[0]];
try {
return e();
} finally {
this.state.context = s;
}
} else
return e();
}
flowParseTypeParameterInstantiationInExpression() {
if (this.reScan_lt() === 47)
return this.flowParseTypeParameterInstantiation();
}
flowParseTypeParameterInstantiation() {
let e = this.startNode(), s = this.state.inType;
return this.state.inType = true, e.params = [], this.flowInTopLevelContext(() => {
this.expect(47);
let i = this.state.noAnonFunctionType;
for (this.state.noAnonFunctionType = false;!this.match(48); )
e.params.push(this.flowParseType()), this.match(48) || this.expect(12);
this.state.noAnonFunctionType = i;
}), this.state.inType = s, !this.state.inType && this.curContext() === E.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(e, "TypeParameterInstantiation");
}
flowParseTypeParameterInstantiationCallOrNew() {
if (this.reScan_lt() !== 47)
return null;
let e = this.startNode(), s = this.state.inType;
for (e.params = [], this.state.inType = true, this.expect(47);!this.match(48); )
e.params.push(this.flowParseTypeOrImplicitInstantiation()), this.match(48) || this.expect(12);
return this.expect(48), this.state.inType = s, this.finishNode(e, "TypeParameterInstantiation");
}
flowParseInterfaceType() {
let e = this.startNode();
if (this.expectContextual(129), e.extends = [], this.eat(81))
do
e.extends.push(this.flowParseInterfaceExtends());
while (this.eat(12));
return e.body = this.flowParseObjectType({ allowStatic: false, allowExact: false, allowSpread: false, allowProto: false, allowInexact: false }), this.finishNode(e, "InterfaceTypeAnnotation");
}
flowParseObjectPropertyKey() {
return this.match(135) || this.match(134) ? super.parseExprAtom() : this.parseIdentifier(true);
}
flowParseObjectTypeIndexer(e, s, i) {
return e.static = s, this.lookahead().type === 14 ? (e.id = this.flowParseObjectPropertyKey(), e.key = this.flowParseTypeInitialiser()) : (e.id = null, e.key = this.flowParseType()), this.expect(3), e.value = this.flowParseTypeInitialiser(), e.variance = i, this.finishNode(e, "ObjectTypeIndexer");
}
flowParseObjectTypeInternalSlot(e, s) {
return e.static = s, e.id = this.flowParseObjectPropertyKey(), this.expect(3), this.expect(3), this.match(47) || this.match(10) ? (e.method = true, e.optional = false, e.value = this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))) : (e.method = false, this.eat(17) && (e.optional = true), e.value = this.flowParseTypeInitialiser()), this.finishNode(e, "ObjectTypeInternalSlot");
}
flowParseObjectTypeMethodish(e) {
for (e.params = [], e.rest = null, e.typeParameters = null, e.this = null, this.match(47) && (e.typeParameters = this.flowParseTypeParameterDeclaration()), this.expect(10), this.match(78) && (e.this = this.flowParseFunctionTypeParam(true), e.this.name = null, this.match(11) || this.expect(12));!this.match(11) && !this.match(21); )
e.params.push(this.flowParseFunctionTypeParam(false)), this.match(11) || this.expect(12);
return this.eat(21) && (e.rest = this.flowParseFunctionTypeParam(false)), this.expect(11), e.returnType = this.flowParseTypeInitialiser(), this.finishNode(e, "FunctionTypeAnnotation");
}
flowParseObjectTypeCallProperty(e, s) {
let i = this.startNode();
return e.static = s, e.value = this.flowParseObjectTypeMethodish(i), this.finishNode(e, "ObjectTypeCallProperty");
}
flowParseObjectType({ allowStatic: e, allowExact: s, allowSpread: i, allowProto: r, allowInexact: n }) {
let o = this.state.inType;
this.state.inType = true;
let h = this.startNode();
h.callProperties = [], h.properties = [], h.indexers = [], h.internalSlots = [];
let l, u, f = false;
for (s && this.match(6) ? (this.expect(6), l = 9, u = true) : (this.expect(5), l = 8, u = false), h.exact = u;!this.match(l); ) {
let x = false, A = null, k = null, N = this.startNode();
if (r && this.isContextual(118)) {
let I = this.lookahead();
I.type !== 14 && I.type !== 17 && (this.next(), A = this.state.startLoc, e = false);
}
if (e && this.isContextual(106)) {
let I = this.lookahead();
I.type !== 14 && I.type !== 17 && (this.next(), x = true);
}
let C = this.flowParseVariance();
if (this.eat(0))
A != null && this.unexpected(A), this.eat(0) ? (C && this.unexpected(C.loc.start), h.internalSlots.push(this.flowParseObjectTypeInternalSlot(N, x))) : h.indexers.push(this.flowParseObjectTypeIndexer(N, x, C));
else if (this.match(10) || this.match(47))
A != null && this.unexpected(A), C && this.unexpected(C.loc.start), h.callProperties.push(this.flowParseObjectTypeCallProperty(N, x));
else {
let I = "init";
if (this.isContextual(99) || this.isContextual(104)) {
let ae = this.lookahead();
Jt(ae.type) && (I = this.state.value, this.next());
}
let Pe = this.flowParseObjectTypeProperty(N, x, A, C, I, i, n ?? !u);
Pe === null ? (f = true, k = this.state.lastTokStartLoc) : h.properties.push(Pe);
}
this.flowObjectTypeSemicolon(), k && !this.match(8) && !this.match(9) && this.raise(g.UnexpectedExplicitInexactInObject, k);
}
this.expect(l), i && (h.inexact = f);
let d = this.finishNode(h, "ObjectTypeAnnotation");
return this.state.inType = o, d;
}
flowParseObjectTypeProperty(e, s, i, r, n, o, h) {
if (this.eat(21))
return this.match(12) || this.match(13) || this.match(8) || this.match(9) ? (o ? h || this.raise(g.InexactInsideExact, this.state.lastTokStartLoc) : this.raise(g.InexactInsideNonObject, this.state.lastTokStartLoc), r && this.raise(g.InexactVariance, r), null) : (o || this.raise(g.UnexpectedSpreadType, this.state.lastTokStartLoc), i != null && this.unexpected(i), r && this.raise(g.SpreadVariance, r), e.argument = this.flowParseType(), this.finishNode(e, "ObjectTypeSpreadProperty"));
{
e.key = this.flowParseObjectPropertyKey(), e.static = s, e.proto = i != null, e.kind = n;
let l = false;
return this.match(47) || this.match(10) ? (e.method = true, i != null && this.unexpected(i), r && this.unexpected(r.loc.start), e.value = this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)), (n === "get" || n === "set") && this.flowCheckGetterSetterParams(e), !o && e.key.name === "constructor" && e.value.this && this.raise(g.ThisParamBannedInConstructor, e.value.this)) : (n !== "init" && this.unexpected(), e.method = false, this.eat(17) && (l = true), e.value = this.flowParseTypeInitialiser(), e.variance = r), e.optional = l, this.finishNode(e, "ObjectTypeProperty");
}
}
flowCheckGetterSetterParams(e) {
let s = e.kind === "get" ? 0 : 1, i = e.value.params.length + (e.value.rest ? 1 : 0);
e.value.this && this.raise(e.kind === "get" ? g.GetterMayNotHaveThisParam : g.SetterMayNotHaveThisParam, e.value.this), i !== s && this.raise(e.kind === "get" ? p.BadGetterArity : p.BadSetterArity, e), e.kind === "set" && e.value.rest && this.raise(p.BadSetterRestParameter, e);
}
flowObjectTypeSemicolon() {
!this.eat(13) && !this.eat(12) && !this.match(8) && !this.match(9) && this.unexpected();
}
flowParseQualifiedTypeIdentifier(e, s) {
e ?? (e = this.state.startLoc);
let i = s || this.flowParseRestrictedIdentifier(true);
for (;this.eat(16); ) {
let r = this.startNodeAt(e);
r.qualification = i, r.id = this.flowParseRestrictedIdentifier(true), i = this.finishNode(r, "QualifiedTypeIdentifier");
}
return i;
}
flowParseGenericType(e, s) {
let i = this.startNodeAt(e);
return i.typeParameters = null, i.id = this.flowParseQualifiedTypeIdentifier(e, s), this.match(47) && (i.typeParameters = this.flowParseTypeParameterInstantiation()), this.finishNode(i, "GenericTypeAnnotation");
}
flowParseTypeofType() {
let e = this.startNode();
return this.expect(87), e.argument = this.flowParsePrimaryType(), this.finishNode(e, "TypeofTypeAnnotation");
}
flowParseTupleType() {
let e = this.startNode();
for (e.types = [], this.expect(0);this.state.pos < this.length && !this.match(3) && (e.types.push(this.flowParseType()), !this.match(3)); )
this.expect(12);
return this.expect(3), this.finishNode(e, "TupleTypeAnnotation");
}
flowParseFunctionTypeParam(e) {
let s = null, i = false, r = null, n = this.startNode(), o = this.lookahead(), h = this.state.type === 78;
return o.type === 14 || o.type === 17 ? (h && !e && this.raise(g.ThisParamMustBeFirst, n), s = this.parseIdentifier(h), this.eat(17) && (i = true, h && this.raise(g.ThisParamMayNotBeOptional, n)), r = this.flowParseTypeInitialiser()) : r = this.flowParseType(), n.name = s, n.optional = i, n.typeAnnotation = r, this.finishNode(n, "FunctionTypeParam");
}
reinterpretTypeAsFunctionTypeParam(e) {
let s = this.startNodeAt(e.loc.start);
return s.name = null, s.optional = false, s.typeAnnotation = e, this.finishNode(s, "FunctionTypeParam");
}
flowParseFunctionTypeParams(e = []) {
let s = null, i = null;
for (this.match(78) && (i = this.flowParseFunctionTypeParam(true), i.name = null, this.match(11) || this.expect(12));!this.match(11) && !this.match(21); )
e.push(this.flowParseFunctionTypeParam(false)), this.match(11) || this.expect(12);
return this.eat(21) && (s = this.flowParseFunctionTypeParam(false)), { params: e, rest: s, _this: i };
}
flowIdentToTypeAnnotation(e, s, i) {
switch (i.name) {
case "any":
return this.finishNode(s, "AnyTypeAnnotation");
case "bool":
case "boolean":
return this.finishNode(s, "BooleanTypeAnnotation");
case "mixed":
return this.finishNode(s, "MixedTypeAnnotation");
case "empty":
return this.finishNode(s, "EmptyTypeAnnotation");
case "number":
return this.finishNode(s, "NumberTypeAnnotation");
case "string":
return this.finishNode(s, "StringTypeAnnotation");
case "symbol":
return this.finishNode(s, "SymbolTypeAnnotation");
default:
return this.checkNotUnderscore(i.name), this.flowParseGenericType(e, i);
}
}
flowParsePrimaryType() {
let e = this.state.startLoc, s = this.startNode(), i, r, n = false, o = this.state.noAnonFunctionType;
switch (this.state.type) {
case 5:
return this.flowParseObjectType({ allowStatic: false, allowExact: false, allowSpread: true, allowProto: false, allowInexact: true });
case 6:
return this.flowParseObjectType({ allowStatic: false, allowExact: true, allowSpread: true, allowProto: false, allowInexact: false });
case 0:
return this.state.noAnonFunctionType = false, r = this.flowParseTupleType(), this.state.noAnonFunctionType = o, r;
case 47: {
let h = this.startNode();
return h.typeParameters = this.flowParseTypeParameterDeclaration(), this.expect(10), i = this.flowParseFunctionTypeParams(), h.params = i.params, h.rest = i.rest, h.this = i._this, this.expect(11), this.expect(19), h.returnType = this.flowParseType(), this.finishNode(h, "FunctionTypeAnnotation");
}
case 10: {
let h = this.startNode();
if (this.next(), !this.match(11) && !this.match(21))
if (w(this.state.type) || this.match(78)) {
let l = this.lookahead().type;
n = l !== 17 && l !== 14;
} else
n = true;
if (n) {
if (this.state.noAnonFunctionType = false, r = this.flowParseType(), this.state.noAnonFunctionType = o, this.state.noAnonFunctionType || !(this.match(12) || this.match(11) && this.lookahead().type === 19))
return this.expect(11), r;
this.eat(12);
}
return r ? i = this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]) : i = this.flowParseFunctionTypeParams(), h.params = i.params, h.rest = i.rest, h.this = i._this, this.expect(11), this.expect(19), h.returnType = this.flowParseType(), h.typeParameters = null, this.finishNode(h, "FunctionTypeAnnotation");
}
case 134:
return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation");
case 85:
case 86:
return s.value = this.match(85), this.next(), this.finishNode(s, "BooleanLiteralTypeAnnotation");
case 53:
if (this.state.value === "-") {
if (this.next(), this.match(135))
return this.parseLiteralAtNode(-this.state.value, "NumberLiteralTypeAnnotation", s);
if (this.match(136))
return this.parseLiteralAtNode(-this.state.value, "BigIntLiteralTypeAnnotation", s);
throw this.raise(g.UnexpectedSubtractionOperand, this.state.startLoc);
}
throw this.unexpected();
case 135:
return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation");
case 136:
return this.parseLiteral(this.state.value, "BigIntLiteralTypeAnnotation");
case 88:
return this.next(), this.finishNode(s, "VoidTypeAnnotation");
case 84:
return this.next(), this.finishNode(s, "NullLiteralTypeAnnotation");
case 78:
return this.next(), this.finishNode(s, "ThisTypeAnnotation");
case 55:
return this.next(), this.finishNode(s, "ExistsTypeAnnotation");
case 87:
return this.flowParseTypeofType();
default:
if (Tt(this.state.type)) {
let h = z(this.state.type);
return this.next(), super.createIdentifier(s, h);
} else if (w(this.state.type))
return this.isContextual(129) ? this.flowParseInterfaceType() : this.flowIdentToTypeAnnotation(e, s, this.parseIdentifier());
}
throw this.unexpected();
}
flowParsePostfixType() {
let e = this.state.startLoc, s = this.flowParsePrimaryType(), i = false;
for (;(this.match(0) || this.match(18)) && !this.canInsertSemicolon(); ) {
let r = this.startNodeAt(e), n = this.eat(18);
i = i || n, this.expect(0), !n && this.match(3) ? (r.elementType = s, this.next(), s = this.finishNode(r, "ArrayTypeAnnotation")) : (r.objectType = s, r.indexType = this.flowParseType(), this.expect(3), i ? (r.optional = n, s = this.finishNode(r, "OptionalIndexedAccessType")) : s = this.finishNode(r, "IndexedAccessType"));
}
return s;
}
flowParsePrefixType() {
let e = this.startNode();
return this.eat(17) ? (e.typeAnnotation = this.flowParsePrefixType(), this.finishNode(e, "NullableTypeAnnotation")) : this.flowParsePostfixType();
}
flowParseAnonFunctionWithoutParens() {
let e = this.flowParsePrefixType();
if (!this.state.noAnonFunctionType && this.eat(19)) {
let s = this.startNodeAt(e.loc.start);
return s.params = [this.reinterpretTypeAsFunctionTypeParam(e)], s.rest = null, s.this = null, s.returnType = this.flowParseType(), s.typeParameters = null, this.finishNode(s, "FunctionTypeAnnotation");
}
return e;
}
flowParseIntersectionType() {
let e = this.startNode();
this.eat(45);
let s = this.flowParseAnonFunctionWithoutParens();
for (e.types = [s];this.eat(45); )
e.types.push(this.flowParseAnonFunctionWithoutParens());
return e.types.length === 1 ? s : this.finishNode(e, "IntersectionTypeAnnotation");
}
flowParseUnionType() {
let e = this.startNode();
this.eat(43);
let s = this.flowParseIntersectionType();
for (e.types = [s];this.eat(43); )
e.types.push(this.flowParseIntersectionType());
return e.types.length === 1 ? s : this.finishNode(e, "UnionTypeAnnotation");
}
flowParseType() {
let e = this.state.inType;
this.state.inType = true;
let s = this.flowParseUnionType();
return this.state.inType = e, s;
}
flowParseTypeOrImplicitInstantiation() {
if (this.state.type === 132 && this.state.value === "_") {
let e = this.state.startLoc, s = this.parseIdentifier();
return this.flowParseGenericType(e, s);
} else
return this.flowParseType();
}
flowParseTypeAnnotation() {
let e = this.startNode();
return e.typeAnnotation = this.flowParseTypeInitialiser(), this.finishNode(e, "TypeAnnotation");
}
flowParseTypeAnnotatableIdentifier(e) {
let s = e ? this.parseIdentifier() : this.flowParseRestrictedIdentifier();
return this.match(14) && (s.typeAnnotation = this.flowParseTypeAnnotation(), this.resetEndLocation(s)), s;
}
typeCastToParameter(e) {
return e.expression.typeAnnotation = e.typeAnnotation, this.resetEndLocation(e.expression, e.typeAnnotation.loc.end), e.expression;
}
flowParseVariance() {
let e = null;
return this.match(53) ? (e = this.startNode(), this.state.value === "+" ? e.kind = "plus" : e.kind = "minus", this.next(), this.finishNode(e, "Variance")) : e;
}
parseFunctionBody(e, s, i = false) {
if (s) {
this.forwardNoArrowParamsConversionAt(e, () => super.parseFunctionBody(e, true, i));
return;
}
super.parseFunctionBody(e, false, i);
}
parseFunctionBodyAndFinish(e, s, i = false) {
if (this.match(14)) {
let r = this.startNode();
[r.typeAnnotation, e.predicate] = this.flowParseTypeAndPredicateInitialiser(), e.returnType = r.typeAnnotation ? this.finishNode(r, "TypeAnnotation") : null;
}
return super.parseFunctionBodyAndFinish(e, s, i);
}
parseStatementLike(e) {
if (this.state.strict && this.isContextual(129)) {
let i = this.lookahead();
if (O(i.type)) {
let r = this.startNode();
return this.next(), this.flowParseInterface(r);
}
} else if (this.isContextual(126)) {
let i = this.startNode();
return this.next(), this.flowParseEnumDeclaration(i);
}
let s = super.parseStatementLike(e);
return this.flowPragma === undefined && !this.isValidDirective(s) && (this.flowPragma = null), s;
}
parseExpressionStatement(e, s, i) {
if (s.type === "Identifier") {
if (s.name === "declare") {
if (this.match(80) || w(this.state.type) || this.match(68) || this.match(74) || this.match(82))
return this.flowParseDeclare(e);
} else if (w(this.state.type)) {
if (s.name === "interface")
return this.flowParseInterface(e);
if (s.name === "type")
return this.flowParseTypeAlias(e);
if (s.name === "opaque")
return this.flowParseOpaqueType(e, false);
}
}
return super.parseExpressionStatement(e, s, i);
}
shouldParseExportDeclaration() {
let { type: e } = this.state;
return e === 126 || Bt(e) ? !this.state.containsEsc : super.shouldParseExportDeclaration();
}
isExportDefaultSpecifier() {
let { type: e } = this.state;
return e === 126 || Bt(e) ? this.state.containsEsc : super.isExportDefaultSpecifier();
}
parseExportDefaultExpression() {
if (this.isContextual(126)) {
let e = this.startNode();
return this.next(), this.flowParseEnumDeclaration(e);
}
return super.parseExportDefaultExpression();
}
parseConditional(e, s, i) {
if (!this.match(17))
return e;
if (this.state.maybeInArrowParameters) {
let d = this.lookaheadCharCode();
if (d === 44 || d === 61 || d === 58 || d === 41)
return this.setOptionalParametersError(i), e;
}
this.expect(17);
let r = this.state.clone(), n = this.state.noArrowAt, o = this.startNodeAt(s), { consequent: h, failed: l } = this.tryParseConditionalConsequent(), [u, f] = this.getArrowLikeExpressions(h);
if (l || f.length > 0) {
let d = [...n];
if (f.length > 0) {
this.state = r, this.state.noArrowAt = d;
for (let x = 0;x < f.length; x++)
d.push(f[x].start);
({ consequent: h, failed: l } = this.tryParseConditionalConsequent()), [u, f] = this.getArrowLikeExpressions(h);
}
l && u.length > 1 && this.raise(g.AmbiguousConditionalArrow, r.startLoc), l && u.length === 1 && (this.state = r, d.push(u[0].start), this.state.noArrowAt = d, { consequent: h, failed: l } = this.tryParseConditionalConsequent());
}
return this.getArrowLikeExpressions(h, true), this.state.noArrowAt = n, this.expect(14), o.test = e, o.consequent = h, o.alternate = this.forwardNoArrowParamsConversionAt(o, () => this.parseMaybeAssign(undefined, undefined)), this.finishNode(o, "ConditionalExpression");
}
tryParseConditionalConsequent() {
this.state.noArrowParamsConversionAt.push(this.state.start);
let e = this.parseMaybeAssignAllowIn(), s = !this.match(14);
return this.state.noArrowParamsConversionAt.pop(), { consequent: e, failed: s };
}
getArrowLikeExpressions(e, s) {
let i = [e], r = [];
for (;i.length !== 0; ) {
let n = i.pop();
n.type === "ArrowFunctionExpression" && n.body.type !== "BlockStatement" ? (n.typeParameters || !n.returnType ? this.finishArrowValidation(n) : r.push(n), i.push(n.body)) : n.type === "ConditionalExpression" && (i.push(n.consequent), i.push(n.alternate));
}
return s ? (r.forEach((n) => this.finishArrowValidation(n)), [r, []]) : Li(r, (n) => n.params.every((o) => this.isAssignable(o, true)));
}
finishArrowValidation(e) {
this.toAssignableList(e.params, e.extra?.trailingCommaLoc, false), this.scope.enter(518), super.checkParams(e, false, true), this.scope.exit();
}
forwardNoArrowParamsConversionAt(e, s) {
let i;
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)) ? (this.state.noArrowParamsConversionAt.push(this.state.start), i = s(), this.state.noArrowParamsConversionAt.pop()) : i = s(), i;
}
parseParenItem(e, s) {
let i = super.parseParenItem(e, s);
if (this.eat(17) && (i.optional = true, this.resetEndLocation(e)), this.match(14)) {
let r = this.startNodeAt(s);
return r.expression = i, r.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(r, "TypeCastExpression");
}
return i;
}
assertModuleNodeAllowed(e) {
e.type === "ImportDeclaration" && (e.importKind === "type" || e.importKind === "typeof") || e.type === "ExportNamedDeclaration" && e.exportKind === "type" || e.type === "ExportAllDeclaration" && e.exportKind === "type" || super.assertModuleNodeAllowed(e);
}
parseExportDeclaration(e) {
if (this.isContextual(130)) {
e.exportKind = "type";
let s = this.startNode();
return this.next(), this.match(5) ? (e.specifiers = this.parseExportSpecifiers(true), super.parseExportFrom(e), null) : this.flowParseTypeAlias(s);
} else if (this.isContextual(131)) {
e.exportKind = "type";
let s = this.startNode();
return this.next(), this.flowParseOpaqueType(s, false);
} else if (this.isContextual(129)) {
e.exportKind = "type";
let s = this.startNode();
return this.next(), this.flowParseInterface(s);
} else if (this.isContextual(126)) {
e.exportKind = "value";
let s = this.startNode();
return this.next(), this.flowParseEnumDeclaration(s);
} else
return super.parseExportDeclaration(e);
}
eatExportStar(e) {
return super.eatExportStar(e) ? true : this.isContextual(130) && this.lookahead().type === 55 ? (e.exportKind = "type", this.next(), this.next(), true) : false;
}
maybeParseExportNamespaceSpecifier(e) {
let { startLoc: s } = this.state, i = super.maybeParseExportNamespaceSpecifier(e);
return i && e.exportKind === "type" && this.unexpected(s), i;
}
parseClassId(e, s, i) {
super.parseClassId(e, s, i), this.match(47) && (e.typeParameters = this.flowParseTypeParameterDeclaration());
}
parseClassMember(e, s, i) {
let { startLoc: r } = this.state;
if (this.isContextual(125)) {
if (super.parseClassMemberFromModifier(e, s))
return;
s.declare = true;
}
super.parseClassMember(e, s, i), s.declare && (s.type !== "ClassProperty" && s.type !== "ClassPrivateProperty" && s.type !== "PropertyDefinition" ? this.raise(g.DeclareClassElement, r) : s.value && this.raise(g.DeclareClassFieldInitializer, s.value));
}
isIterator(e) {
return e === "iterator" || e === "asyncIterator";
}
readIterator() {
let e = super.readWord1(), s = "@@" + e;
(!this.isIterator(e) || !this.state.inType) && this.raise(p.InvalidIdentifier, this.state.curPosition(), { identifierName: s }), this.finishToken(132, s);
}
getTokenFromCode(e) {
let s = this.input.charCodeAt(this.state.pos + 1);
e === 123 && s === 124 ? this.finishOp(6, 2) : this.state.inType && (e === 62 || e === 60) ? this.finishOp(e === 62 ? 48 : 47, 1) : this.state.inType && e === 63 ? s === 46 ? this.finishOp(18, 2) : this.finishOp(17, 1) : Ci(e, s, this.input.charCodeAt(this.state.pos + 2)) ? (this.state.pos += 2, this.readIterator()) : super.getTokenFromCode(e);
}
isAssignable(e, s) {
return e.type === "TypeCastExpression" ? this.isAssignable(e.expression, s) : super.isAssignable(e, s);
}
toAssignable(e, s = false) {
!s && e.type === "AssignmentExpression" && e.left.type === "TypeCastExpression" && (e.left = this.typeCastToParameter(e.left)), super.toAssignable(e, s);
}
toAssignableList(e, s, i) {
for (let r = 0;r < e.length; r++) {
let n = e[r];
n?.type === "TypeCastExpression" && (e[r] = this.typeCastToParameter(n));
}
super.toAssignableList(e, s, i);
}
toReferencedList(e, s) {
for (let i = 0;i < e.length; i++) {
let r = e[i];
r && r.type === "TypeCastExpression" && !r.extra?.parenthesized && (e.length > 1 || !s) && this.raise(g.TypeCastInPattern, r.typeAnnotation);
}
return e;
}
parseArrayLike(e, s, i) {
let r = super.parseArrayLike(e, s, i);
return i != null && !this.state.maybeInArrowParameters && this.toReferencedList(r.elements), r;
}
isValidLVal(e, s, i, r) {
return e === "TypeCastExpression" || super.isValidLVal(e, s, i, r);
}
parseClassProperty(e) {
return this.match(14) && (e.typeAnnotation = this.flowParseTypeAnnotation()), super.parseClassProperty(e);
}
parseClassPrivateProperty(e) {
return this.match(14) && (e.typeAnnotation = this.flowParseTypeAnnotation()), super.parseClassPrivateProperty(e);
}
isClassMethod() {
return this.match(47) || super.isClassMethod();
}
isClassProperty() {
return this.match(14) || super.isClassProperty();
}
isNonstaticConstructor(e) {
return !this.match(14) && super.isNonstaticConstructor(e);
}
pushClassMethod(e, s, i, r, n, o) {
if (s.variance && this.unexpected(s.variance.loc.start), delete s.variance, this.match(47) && (s.typeParameters = this.flowParseTypeParameterDeclaration()), super.pushClassMethod(e, s, i, r, n, o), s.params && n) {
let h = s.params;
h.length > 0 && this.isThisParam(h[0]) && this.raise(g.ThisParamBannedInConstructor, s);
} else if (s.type === "MethodDefinition" && n && s.value.params) {
let h = s.value.params;
h.length > 0 && this.isThisParam(h[0]) && this.raise(g.ThisParamBannedInConstructor, s);
}
}
pushClassPrivateMethod(e, s, i, r) {
s.variance && this.unexpected(s.variance.loc.start), delete s.variance, this.match(47) && (s.typeParameters = this.flowParseTypeParameterDeclaration()), super.pushClassPrivateMethod(e, s, i, r);
}
parseClassSuper(e) {
if (super.parseClassSuper(e), e.superClass && (this.match(47) || this.match(51)) && (e.superTypeArguments = this.flowParseTypeParameterInstantiationInExpression()), this.isContextual(113)) {
this.next();
let s = e.implements = [];
do {
let i = this.startNode();
i.id = this.flowParseRestrictedIdentifier(true), this.match(47) ? i.typeParameters = this.flowParseTypeParameterInstantiation() : i.typeParameters = null, s.push(this.finishNode(i, "ClassImplements"));
} while (this.eat(12));
}
}
checkGetterSetterParams(e) {
super.checkGetterSetterParams(e);
let s = this.getObjectOrClassMethodParams(e);
if (s.length > 0) {
let i = s[0];
this.isThisParam(i) && e.kind === "get" ? this.raise(g.GetterMayNotHaveThisParam, i) : this.isThisParam(i) && this.raise(g.SetterMayNotHaveThisParam, i);
}
}
parsePropertyNamePrefixOperator(e) {
e.variance = this.flowParseVariance();
}
parseObjPropValue(e, s, i, r, n, o, h) {
e.variance && this.unexpected(e.variance.loc.start), delete e.variance;
let l;
this.match(47) && !o && (l = this.flowParseTypeParameterDeclaration(), this.match(10) || this.unexpected());
let u = super.parseObjPropValue(e, s, i, r, n, o, h);
return l && ((u.value || u).typeParameters = l), u;
}
parseFunctionParamType(e) {
return this.eat(17) && (e.type !== "Identifier" && this.raise(g.PatternIsOptional, e), this.isThisParam(e) && this.raise(g.ThisParamMayNotBeOptional, e), e.optional = true), this.match(14) ? e.typeAnnotation = this.flowParseTypeAnnotation() : this.isThisParam(e) && this.raise(g.ThisParamAnnotationRequired, e), this.match(29) && this.isThisParam(e) && this.raise(g.ThisParamNoDefault, e), this.resetEndLocation(e), e;
}
parseMaybeDefault(e, s) {
let i = super.parseMaybeDefault(e, s);
return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(g.TypeBeforeInitializer, i.typeAnnotation), i;
}
checkImportReflection(e) {
super.checkImportReflection(e), e.module && e.importKind !== "value" && this.raise(g.ImportReflectionHasImportType, e.specifiers[0].loc.start);
}
parseImportSpecifierLocal(e, s, i) {
s.local = Rt(e) ? this.flowParseRestrictedIdentifier(true, true) : this.parseIdentifier(), e.specifiers.push(this.finishImportSpecifier(s, i));
}
isPotentialImportPhase(e) {
if (super.isPotentialImportPhase(e))
return true;
if (this.isContextual(130)) {
if (!e)
return true;
let s = this.lookaheadCharCode();
return s === 123 || s === 42;
}
return !e && this.isContextual(87);
}
applyImportPhase(e, s, i, r) {
if (super.applyImportPhase(e, s, i, r), s) {
if (!i && this.match(65))
return;
e.exportKind = i === "type" ? i : "value";
} else
i === "type" && this.match(55) && this.unexpected(), e.importKind = i === "type" || i === "typeof" ? i : "value";
}
parseImportSpecifier(e, s, i, r, n) {
let o = e.imported, h = null;
o.type === "Identifier" && (o.name === "type" ? h = "type" : o.name === "typeof" && (h = "typeof"));
let l = false;
if (this.isContextual(93) && !this.isLookaheadContextual("as")) {
let f = this.parseIdentifier(true);
h !== null && !O(this.state.type) ? (e.imported = f, e.importKind = h, e.local = this.cloneIdentifier(f)) : (e.imported = o, e.importKind = null, e.local = this.parseIdentifier());
} else {
if (h !== null && O(this.state.type))
e.imported = this.parseIdentifier(true), e.importKind = h;
else {
if (s)
throw this.raise(p.ImportBindingIsString, e, { importName: o.value });
e.imported = o, e.importKind = null;
}
this.eatContextual(93) ? e.local = this.parseIdentifier() : (l = true, e.local = this.cloneIdentifier(e.imported));
}
let u = Rt(e);
return i && u && this.raise(g.ImportTypeShorthandOnlyInPureImport, e), (i || u) && this.checkReservedType(e.local.name, e.local.loc.start, true), l && !i && !u && this.checkReservedWord(e.local.name, e.loc.start, true, true), this.finishImportSpecifier(e, "ImportSpecifier");
}
parseBindingAtom() {
switch (this.state.type) {
case 78:
return this.parseIdentifier(true);
default:
return super.parseBindingAtom();
}
}
parseFunctionParams(e, s) {
let i = e.kind;
i !== "get" && i !== "set" && this.match(47) && (e.typeParameters = this.flowParseTypeParameterDeclaration()), super.parseFunctionParams(e, s);
}
parseVarId(e, s) {
super.parseVarId(e, s), this.match(14) && (e.id.typeAnnotation = this.flowParseTypeAnnotation(), this.resetEndLocation(e.id));
}
parseAsyncArrowFromCallExpression(e, s) {
if (this.match(14)) {
let i = this.state.noAnonFunctionType;
this.state.noAnonFunctionType = true, e.returnType = this.flowParseTypeAnnotation(), this.state.noAnonFunctionType = i;
}
return super.parseAsyncArrowFromCallExpression(e, s);
}
shouldParseAsyncArrow() {
return this.match(14) || super.shouldParseAsyncArrow();
}
parseMaybeAssign(e, s) {
let i = null, r;
if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
if (i = this.state.clone(), r = this.tryParse(() => super.parseMaybeAssign(e, s), i), !r.error)
return r.node;
let { context: n } = this.state, o = n[n.length - 1];
(o === E.j_oTag || o === E.j_expr) && n.pop();
}
if (r?.error || this.match(47)) {
i = i || this.state.clone();
let n, o = this.tryParse((l) => {
n = this.flowParseTypeParameterDeclaration();
let u = this.forwardNoArrowParamsConversionAt(n, () => {
let d = super.parseMaybeAssign(e, s);
return this.resetStartLocationFromNode(d, n), d;
});
u.extra?.parenthesized && l();
let f = this.maybeUnwrapTypeCastExpression(u);
return f.type !== "ArrowFunctionExpression" && l(), f.typeParameters = n, this.resetStartLocationFromNode(f, n), u;
}, i), h = null;
if (o.node && this.maybeUnwrapTypeCastExpression(o.node).type === "ArrowFunctionExpression") {
if (!o.error && !o.aborted)
return o.node.async && this.raise(g.UnexpectedTypeParameterBeforeAsyncArrowFunction, n), o.node;
h = o.node;
}
if (r?.node)
return this.state = r.failState, r.node;
if (h)
return this.state = o.failState, h;
throw r?.thrown ? r.error : o.thrown ? o.error : this.raise(g.UnexpectedTokenAfterTypeParameter, n);
}
return super.parseMaybeAssign(e, s);
}
parseArrow(e) {
if (this.match(14)) {
let s = this.tryParse(() => {
let i = this.state.noAnonFunctionType;
this.state.noAnonFunctionType = true;
let r = this.startNode();
return [r.typeAnnotation, e.predicate] = this.flowParseTypeAndPredicateInitialiser(), this.state.noAnonFunctionType = i, this.canInsertSemicolon() && this.unexpected(), this.match(19) || this.unexpected(), r;
});
if (s.thrown)
return null;
s.error && (this.state = s.failState), e.returnType = s.node.typeAnnotation ? this.finishNode(s.node, "TypeAnnotation") : null;
}
return super.parseArrow(e);
}
shouldParseArrow(e) {
return this.match(14) || super.shouldParseArrow(e);
}
setArrowFunctionParameters(e, s) {
this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)) ? e.params = s : super.setArrowFunctionParameters(e, s);
}
checkParams(e, s, i, r = true) {
if (!(i && this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))) {
for (let n = 0;n < e.params.length; n++)
this.isThisParam(e.params[n]) && n > 0 && this.raise(g.ThisParamMustBeFirst, e.params[n]);
super.checkParams(e, s, i, r);
}
}
parseParenAndDistinguishExpression(e) {
return super.parseParenAndDistinguishExpression(e && !this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)));
}
parseSubscripts(e, s, i) {
if (e.type === "Identifier" && e.name === "async" && this.state.noArrowAt.includes(s.index)) {
this.next();
let r = this.startNodeAt(s);
r.callee = e, r.arguments = super.parseCallExpressionArguments(), e = this.finishNode(r, "CallExpression");
} else if (e.type === "Identifier" && e.name === "async" && this.match(47)) {
let r = this.state.clone(), n = this.tryParse((h) => this.parseAsyncArrowWithTypeParameters(s) || h(), r);
if (!n.error && !n.aborted)
return n.node;
let o = this.tryParse(() => super.parseSubscripts(e, s, i), r);
if (o.node && !o.error)
return o.node;
if (n.node)
return this.state = n.failState, n.node;
if (o.node)
return this.state = o.failState, o.node;
throw n.error || o.error;
}
return super.parseSubscripts(e, s, i);
}
parseSubscript(e, s, i, r) {
if (this.match(18) && this.isLookaheadToken_lt()) {
if (r.optionalChainMember = true, i)
return r.stop = true, e;
this.next();
let n = this.startNodeAt(s);
return n.callee = e, n.typeArguments = this.flowParseTypeParameterInstantiationInExpression(), this.expect(10), n.arguments = this.parseCallExpressionArguments(), n.optional = true, this.finishCallExpression(n, true);
} else if (!i && this.shouldParseTypes() && (this.match(47) || this.match(51))) {
let n = this.startNodeAt(s);
n.callee = e;
let o = this.tryParse(() => (n.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew(), this.expect(10), n.arguments = super.parseCallExpressionArguments(), r.optionalChainMember && (n.optional = false), this.finishCallExpression(n, r.optionalChainMember)));
if (o.node)
return o.error && (this.state = o.failState), o.node;
}
return super.parseSubscript(e, s, i, r);
}
parseNewCallee(e) {
super.parseNewCallee(e);
let s = null;
this.shouldParseTypes() && this.match(47) && (s = this.tryParse(() => this.flowParseTypeParameterInstantiationCallOrNew()).node), e.typeArguments = s;
}
parseAsyncArrowWithTypeParameters(e) {
let s = this.startNodeAt(e);
if (this.parseFunctionParams(s, false), !!this.parseArrow(s))
return super.parseArrowExpression(s, undefined, true);
}
readToken_mult_modulo(e) {
let s = this.input.charCodeAt(this.state.pos + 1);
if (e === 42 && s === 47 && this.state.hasFlowComment) {
this.state.hasFlowComment = false, this.state.pos += 2, this.nextToken();
return;
}
super.readToken_mult_modulo(e);
}
readToken_pipe_amp(e) {
let s = this.input.charCodeAt(this.state.pos + 1);
if (e === 124 && s === 125) {
this.finishOp(9, 2);
return;
}
super.readToken_pipe_amp(e);
}
parseTopLevel(e, s) {
let i = super.parseTopLevel(e, s);
return this.state.hasFlowComment && this.raise(g.UnterminatedFlowComment, this.state.curPosition()), i;
}
skipBlockComment() {
if (this.hasPlugin("flowComments") && this.skipFlowComment()) {
if (this.state.hasFlowComment)
throw this.raise(g.NestedFlowComment, this.state.startLoc);
this.hasFlowCommentCompletion();
let e = this.skipFlowComment();
e && (this.state.pos += e, this.state.hasFlowComment = true);
return;
}
return super.skipBlockComment(this.state.hasFlowComment ? "*-/" : "*/");
}
skipFlowComment() {
let { pos: e } = this.state, s = 2;
for (;[32, 9].includes(this.input.charCodeAt(e + s)); )
s++;
let i = this.input.charCodeAt(s + e), r = this.input.charCodeAt(s + e + 1);
return i === 58 && r === 58 ? s + 2 : this.input.slice(s + e, s + e + 12) === "flow-include" ? s + 12 : i === 58 && r !== 58 ? s : false;
}
hasFlowCommentCompletion() {
if (this.input.indexOf("*/", this.state.pos) === -1)
throw this.raise(p.UnterminatedComment, this.state.curPosition());
}
flowEnumErrorBooleanMemberNotInitialized(e, { enumName: s, memberName: i }) {
this.raise(g.EnumBooleanMemberNotInitialized, e, { memberName: i, enumName: s });
}
flowEnumErrorInvalidMemberInitializer(e, s) {
return this.raise(s.explicitType ? s.explicitType === "symbol" ? g.EnumInvalidMemberInitializerSymbolType : g.EnumInvalidMemberInitializerPrimaryType : g.EnumInvalidMemberInitializerUnknownType, e, s);
}
flowEnumErrorNumberMemberNotInitialized(e, s) {
this.raise(g.EnumNumberMemberNotInitialized, e, s);
}
flowEnumErrorStringMemberInconsistentlyInitialized(e, s) {
this.raise(g.EnumStringMemberInconsistentlyInitialized, e, s);
}
flowEnumMemberInit() {
let e = this.state.startLoc, s = () => this.match(12) || this.match(8);
switch (this.state.type) {
case 135: {
let i = this.parseNumericLiteral(this.state.value);
return s() ? { type: "number", loc: i.loc.start, value: i } : { type: "invalid", loc: e };
}
case 134: {
let i = this.parseStringLiteral(this.state.value);
return s() ? { type: "string", loc: i.loc.start, value: i } : { type: "invalid", loc: e };
}
case 85:
case 86: {
let i = this.parseBooleanLiteral(this.match(85));
return s() ? { type: "boolean", loc: i.loc.start, value: i } : { type: "invalid", loc: e };
}
default:
return { type: "invalid", loc: e };
}
}
flowEnumMemberRaw() {
let e = this.state.startLoc, s = this.parseIdentifier(true), i = this.eat(29) ? this.flowEnumMemberInit() : { type: "none", loc: e };
return { id: s, init: i };
}
flowEnumCheckExplicitTypeMismatch(e, s, i) {
let { explicitType: r } = s;
r !== null && r !== i && this.flowEnumErrorInvalidMemberInitializer(e, s);
}
flowEnumMembers({ enumName: e, explicitType: s }) {
let i = new Set, r = { booleanMembers: [], numberMembers: [], stringMembers: [], defaultedMembers: [] }, n = false;
for (;!this.match(8); ) {
if (this.eat(21)) {
n = true;
break;
}
let o = this.startNode(), { id: h, init: l } = this.flowEnumMemberRaw(), u = h.name;
if (u === "")
continue;
/^[a-z]/.test(u) && this.raise(g.EnumInvalidMemberName, h, { memberName: u, suggestion: u[0].toUpperCase() + u.slice(1), enumName: e }), i.has(u) && this.raise(g.EnumDuplicateMemberName, h, { memberName: u, enumName: e }), i.add(u);
let f = { enumName: e, explicitType: s, memberName: u };
switch (o.id = h, l.type) {
case "boolean": {
this.flowEnumCheckExplicitTypeMismatch(l.loc, f, "boolean"), o.init = l.value, r.booleanMembers.push(this.finishNode(o, "EnumBooleanMember"));
break;
}
case "number": {
this.flowEnumCheckExplicitTypeMismatch(l.loc, f, "number"), o.init = l.value, r.numberMembers.push(this.finishNode(o, "EnumNumberMember"));
break;
}
case "string": {
this.flowEnumCheckExplicitTypeMismatch(l.loc, f, "string"), o.init = l.value, r.stringMembers.push(this.finishNode(o, "EnumStringMember"));
break;
}
case "invalid":
throw this.flowEnumErrorInvalidMemberInitializer(l.loc, f);
case "none":
switch (s) {
case "boolean":
this.flowEnumErrorBooleanMemberNotInitialized(l.loc, f);
break;
case "number":
this.flowEnumErrorNumberMemberNotInitialized(l.loc, f);
break;
default:
r.defaultedMembers.push(this.finishNode(o, "EnumDefaultedMember"));
}
}
this.match(8) || this.expect(12);
}
return { members: r, hasUnknownMembers: n };
}
flowEnumStringMembers(e, s, { enumName: i }) {
if (e.length === 0)
return s;
if (s.length === 0)
return e;
if (s.length > e.length) {
for (let r of e)
this.flowEnumErrorStringMemberInconsistentlyInitialized(r, { enumName: i });
return s;
} else {
for (let r of s)
this.flowEnumErrorStringMemberInconsistentlyInitialized(r, { enumName: i });
return e;
}
}
flowEnumParseExplicitType({ enumName: e }) {
if (!this.eatContextual(102))
return null;
if (!w(this.state.type))
throw this.raise(g.EnumInvalidExplicitTypeUnknownSupplied, this.state.startLoc, { enumName: e });
let { value: s } = this.state;
return this.next(), s !== "boolean" && s !== "number" && s !== "string" && s !== "symbol" && this.raise(g.EnumInvalidExplicitType, this.state.startLoc, { enumName: e, invalidEnumType: s }), s;
}
flowEnumBody(e, s) {
let i = s.name, r = s.loc.start, n = this.flowEnumParseExplicitType({ enumName: i });
this.expect(5);
let { members: o, hasUnknownMembers: h } = this.flowEnumMembers({ enumName: i, explicitType: n });
switch (e.hasUnknownMembers = h, n) {
case "boolean":
return e.explicitType = true, e.members = o.booleanMembers, this.expect(8), this.finishNode(e, "EnumBooleanBody");
case "number":
return e.explicitType = true, e.members = o.numberMembers, this.expect(8), this.finishNode(e, "EnumNumberBody");
case "string":
return e.explicitType = true, e.members = this.flowEnumStringMembers(o.stringMembers, o.defaultedMembers, { enumName: i }), this.expect(8), this.finishNode(e, "EnumStringBody");
case "symbol":
return e.members = o.defaultedMembers, this.expect(8), this.finishNode(e, "EnumSymbolBody");
default: {
let l = () => (e.members = [], this.expect(8), this.finishNode(e, "EnumStringBody"));
e.explicitType = false;
let u = o.booleanMembers.length, f = o.numberMembers.length, d = o.stringMembers.length, x = o.defaultedMembers.length;
if (!u && !f && !d && !x)
return l();
if (!u && !f)
return e.members = this.flowEnumStringMembers(o.stringMembers, o.defaultedMembers, { enumName: i }), this.expect(8), this.finishNode(e, "EnumStringBody");
if (!f && !d && u >= x) {
for (let A of o.defaultedMembers)
this.flowEnumErrorBooleanMemberNotInitialized(A.loc.start, { enumName: i, memberName: A.id.name });
return e.members = o.booleanMembers, this.expect(8), this.finishNode(e, "EnumBooleanBody");
} else if (!u && !d && f >= x) {
for (let A of o.defaultedMembers)
this.flowEnumErrorNumberMemberNotInitialized(A.loc.start, { enumName: i, memberName: A.id.name });
return e.members = o.numberMembers, this.expect(8), this.finishNode(e, "EnumNumberBody");
} else
return this.raise(g.EnumInconsistentMemberValues, r, { enumName: i }), l();
}
}
}
flowParseEnumDeclaration(e) {
let s = this.parseIdentifier();
return e.id = s, e.body = this.flowEnumBody(this.startNode(), s), this.finishNode(e, "EnumDeclaration");
}
jsxParseOpeningElementAfterName(e) {
return this.shouldParseTypes() && (this.match(47) || this.match(51)) && (e.typeArguments = this.flowParseTypeParameterInstantiationInExpression()), super.jsxParseOpeningElementAfterName(e);
}
isLookaheadToken_lt() {
let e = this.nextTokenStart();
if (this.input.charCodeAt(e) === 60) {
let s = this.input.charCodeAt(e + 1);
return s !== 60 && s !== 61;
}
return false;
}
reScan_lt_gt() {
let { type: e } = this.state;
e === 47 ? (this.state.pos -= 1, this.readToken_lt()) : e === 48 && (this.state.pos -= 1, this.readToken_gt());
}
reScan_lt() {
let { type: e } = this.state;
return e === 51 ? (this.state.pos -= 2, this.finishOp(47, 1), 47) : e;
}
maybeUnwrapTypeCastExpression(e) {
return e.type === "TypeCastExpression" ? e.expression : e;
}
};
var Oi = /\r\n|[\r\n\u2028\u2029]/;
var ge = new RegExp(Oi.source, "g");
function G(a) {
switch (a) {
case 10:
case 13:
case 8232:
case 8233:
return true;
default:
return false;
}
}
function Ut(a, t, e) {
for (let s = t;s < e; s++)
if (G(a.charCodeAt(s)))
return true;
return false;
}
var _e = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
var je = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;
function Fi(a) {
switch (a) {
case 9:
case 11:
case 12:
case 32:
case 160:
case 5760:
case 8192:
case 8193:
case 8194:
case 8195:
case 8196:
case 8197:
case 8198:
case 8199:
case 8200:
case 8201:
case 8202:
case 8239:
case 8287:
case 12288:
case 65279:
return true;
default:
return false;
}
}
var U = F`jsx`({ AttributeIsEmpty: "JSX attributes must only be assigned a non-empty expression.", MissingClosingTagElement: ({ openingTagName: a }) => `Expected corresponding JSX closing tag for <${a}>.`, MissingClosingTagFragment: "Expected corresponding JSX closing tag for <>.", UnexpectedSequenceExpression: "Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?", UnexpectedToken: ({ unexpected: a, HTMLEntity: t }) => `Unexpected token \`${a}\`. Did you mean \`${t}\` or \`{'${a}'}\`?`, UnsupportedJsxValue: "JSX value should be either an expression or a quoted JSX text.", UnterminatedJsxContent: "Unterminated JSX contents.", UnwrappedAdjacentJSXElements: "Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?" });
function V(a) {
return a ? a.type === "JSXOpeningFragment" || a.type === "JSXClosingFragment" : false;
}
function J(a) {
if (a.type === "JSXIdentifier")
return a.name;
if (a.type === "JSXNamespacedName")
return a.namespace.name + ":" + a.name.name;
if (a.type === "JSXMemberExpression")
return J(a.object) + "." + J(a.property);
throw new Error("Node had unexpected type: " + a.type);
}
var Bi = (a) => class extends a {
jsxReadToken() {
let e = "", s = this.state.pos;
for (;; ) {
if (this.state.pos >= this.length)
throw this.raise(U.UnterminatedJsxContent, this.state.startLoc);
let i = this.input.charCodeAt(this.state.pos);
switch (i) {
case 60:
case 123:
if (this.state.pos === this.state.start) {
i === 60 && this.state.canStartJSXElement ? (++this.state.pos, this.finishToken(143)) : super.getTokenFromCode(i);
return;
}
e += this.input.slice(s, this.state.pos), this.finishToken(142, e);
return;
case 38:
e += this.input.slice(s, this.state.pos), e += this.jsxReadEntity(), s = this.state.pos;
break;
case 62:
case 125:
this.raise(U.UnexpectedToken, this.state.curPosition(), { unexpected: this.input[this.state.pos], HTMLEntity: i === 125 ? "}" : ">" });
default:
G(i) ? (e += this.input.slice(s, this.state.pos), e += this.jsxReadNewLine(true), s = this.state.pos) : ++this.state.pos;
}
}
}
jsxReadNewLine(e) {
let s = this.input.charCodeAt(this.state.pos), i;
return ++this.state.pos, s === 13 && this.input.charCodeAt(this.state.pos) === 10 ? (++this.state.pos, i = e ? `
` : `\r
`) : i = String.fromCharCode(s), ++this.state.curLine, this.state.lineStart = this.state.pos, i;
}
jsxReadString(e) {
let s = "", i = ++this.state.pos;
for (;; ) {
if (this.state.pos >= this.length)
throw this.raise(p.UnterminatedString, this.state.startLoc);
let r = this.input.charCodeAt(this.state.pos);
if (r === e)
break;
r === 38 ? (s += this.input.slice(i, this.state.pos), s += this.jsxReadEntity(), i = this.state.pos) : G(r) ? (s += this.input.slice(i, this.state.pos), s += this.jsxReadNewLine(false), i = this.state.pos) : ++this.state.pos;
}
s += this.input.slice(i, this.state.pos++), this.finishToken(134, s);
}
jsxReadEntity() {
let e = ++this.state.pos;
if (this.codePointAtPos(this.state.pos) === 35) {
++this.state.pos;
let s = 10;
this.codePointAtPos(this.state.pos) === 120 && (s = 16, ++this.state.pos);
let i = this.readInt(s, undefined, false, "bail");
if (i !== null && this.codePointAtPos(this.state.pos) === 59)
return ++this.state.pos, String.fromCodePoint(i);
} else {
let s = 0, i = false;
for (;s++ < 10 && this.state.pos < this.length && !(i = this.codePointAtPos(this.state.pos) === 59); )
++this.state.pos;
if (i) {
let r = this.input.slice(e, this.state.pos), n = undefined;
if (++this.state.pos, n)
return n;
}
}
return this.state.pos = e, "&";
}
jsxReadWord() {
let e, s = this.state.pos;
do
e = this.input.charCodeAt(++this.state.pos);
while (K(e) || e === 45);
this.finishToken(141, this.input.slice(s, this.state.pos));
}
jsxParseIdentifier() {
let e = this.startNode();
return this.match(141) ? e.name = this.state.value : Tt(this.state.type) ? e.name = z(this.state.type) : this.unexpected(), this.next(), this.finishNode(e, "JSXIdentifier");
}
jsxParseNamespacedName() {
let e = this.state.startLoc, s = this.jsxParseIdentifier();
if (!this.eat(14))
return s;
let i = this.startNodeAt(e);
return i.namespace = s, i.name = this.jsxParseIdentifier(), this.finishNode(i, "JSXNamespacedName");
}
jsxParseElementName() {
let e = this.state.startLoc, s = this.jsxParseNamespacedName();
if (s.type === "JSXNamespacedName")
return s;
for (;this.eat(16); ) {
let i = this.startNodeAt(e);
i.object = s, i.property = this.jsxParseIdentifier(), s = this.finishNode(i, "JSXMemberExpression");
}
return s;
}
jsxParseAttributeValue() {
let e;
switch (this.state.type) {
case 5:
return e = this.startNode(), this.setContext(E.brace), this.next(), e = this.jsxParseExpressionContainer(e, E.j_oTag), e.expression.type === "JSXEmptyExpression" && this.raise(U.AttributeIsEmpty, e), e;
case 143:
case 134:
return this.parseExprAtom();
default:
throw this.raise(U.UnsupportedJsxValue, this.state.startLoc);
}
}
jsxParseEmptyExpression() {
let e = this.startNodeAt(this.state.lastTokEndLoc);
return this.finishNodeAt(e, "JSXEmptyExpression", this.state.startLoc);
}
jsxParseSpreadChild(e) {
return this.next(), e.expression = this.parseExpression(), this.setContext(E.j_expr), this.state.canStartJSXElement = true, this.expect(8), this.finishNode(e, "JSXSpreadChild");
}
jsxParseExpressionContainer(e, s) {
if (this.match(8))
e.expression = this.jsxParseEmptyExpression();
else {
let i = this.parseExpression();
i.type === "SequenceExpression" && !i.extra?.parenthesized && this.raise(U.UnexpectedSequenceExpression, i.expressions[1]), e.expression = i;
}
return this.setContext(s), this.state.canStartJSXElement = true, this.expect(8), this.finishNode(e, "JSXExpressionContainer");
}
jsxParseAttribute() {
let e = this.startNode();
return this.match(5) ? (this.setContext(E.brace), this.next(), this.expect(21), e.argument = this.parseMaybeAssignAllowIn(), this.setContext(E.j_oTag), this.state.canStartJSXElement = true, this.expect(8), this.finishNode(e, "JSXSpreadAttribute")) : (e.name = this.jsxParseNamespacedName(), e.value = this.eat(29) ? this.jsxParseAttributeValue() : null, this.finishNode(e, "JSXAttribute"));
}
jsxParseOpeningElementAt(e) {
let s = this.startNodeAt(e);
return this.eat(144) ? this.finishNode(s, "JSXOpeningFragment") : (s.name = this.jsxParseElementName(), this.jsxParseOpeningElementAfterName(s));
}
jsxParseOpeningElementAfterName(e) {
let s = [];
for (;!this.match(56) && !this.match(144); )
s.push(this.jsxParseAttribute());
return e.attributes = s, e.selfClosing = this.eat(56), this.expect(144), this.finishNode(e, "JSXOpeningElement");
}
jsxParseClosingElementAt(e) {
let s = this.startNodeAt(e);
return this.eat(144) ? this.finishNode(s, "JSXClosingFragment") : (s.name = this.jsxParseElementName(), this.expect(144), this.finishNode(s, "JSXClosingElement"));
}
jsxParseElementAt(e) {
let s = this.startNodeAt(e), i = [], r = this.jsxParseOpeningElementAt(e), n = null;
if (!r.selfClosing) {
e:
for (;; )
switch (this.state.type) {
case 143:
if (e = this.state.startLoc, this.next(), this.eat(56)) {
n = this.jsxParseClosingElementAt(e);
break e;
}
i.push(this.jsxParseElementAt(e));
break;
case 142:
i.push(this.parseLiteral(this.state.value, "JSXText"));
break;
case 5: {
let o = this.startNode();
this.setContext(E.brace), this.next(), this.match(21) ? i.push(this.jsxParseSpreadChild(o)) : i.push(this.jsxParseExpressionContainer(o, E.j_expr));
break;
}
default:
this.unexpected();
}
V(r) && !V(n) && n !== null ? this.raise(U.MissingClosingTagFragment, n) : !V(r) && V(n) ? this.raise(U.MissingClosingTagElement, n, { openingTagName: J(r.name) }) : !V(r) && !V(n) && J(n.name) !== J(r.name) && this.raise(U.MissingClosingTagElement, n, { openingTagName: J(r.name) });
}
if (V(r) ? (s.openingFragment = r, s.closingFragment = n) : (s.openingElement = r, s.closingElement = n), s.children = i, this.match(47))
throw this.raise(U.UnwrappedAdjacentJSXElements, this.state.startLoc);
return V(r) ? this.finishNode(s, "JSXFragment") : this.finishNode(s, "JSXElement");
}
jsxParseElement() {
let e = this.state.startLoc;
return this.next(), this.jsxParseElementAt(e);
}
setContext(e) {
let { context: s } = this.state;
s[s.length - 1] = e;
}
parseExprAtom(e) {
return this.match(143) ? this.jsxParseElement() : this.match(47) && this.input.charCodeAt(this.state.pos) !== 33 ? (this.replaceToken(143), this.jsxParseElement()) : super.parseExprAtom(e);
}
skipSpace() {
this.curContext().preserveSpace || super.skipSpace();
}
getTokenFromCode(e) {
let s = this.curContext();
if (s === E.j_expr) {
this.jsxReadToken();
return;
}
if (s === E.j_oTag || s === E.j_cTag) {
if (B(e)) {
this.jsxReadWord();
return;
}
if (e === 62) {
++this.state.pos, this.finishToken(144);
return;
}
if ((e === 34 || e === 39) && s === E.j_oTag) {
this.jsxReadString(e);
return;
}
}
if (e === 60 && this.state.canStartJSXElement && this.input.charCodeAt(this.state.pos + 1) !== 33) {
++this.state.pos, this.finishToken(143);
return;
}
super.getTokenFromCode(e);
}
updateContext(e) {
let { context: s, type: i } = this.state;
if (i === 56 && e === 143)
s.splice(-2, 2, E.j_cTag), this.state.canStartJSXElement = false;
else if (i === 143)
s.push(E.j_oTag);
else if (i === 144) {
let r = s[s.length - 1];
r === E.j_oTag && e === 56 || r === E.j_cTag ? (s.pop(), this.state.canStartJSXElement = s[s.length - 1] === E.j_expr) : (this.setContext(E.j_expr), this.state.canStartJSXElement = true);
} else
this.state.canStartJSXElement = ci(i);
}
};
var Je = class extends ue {
tsNames = new Map;
};
var Ge = class extends fe {
importsStack = [];
createScope(t) {
return this.importsStack.push(new Set), new Je(t);
}
enter(t) {
t === 1024 && this.importsStack.push(new Set), super.enter(t);
}
exit() {
let t = super.exit();
return t === 1024 && this.importsStack.pop(), t;
}
hasImport(t, e) {
let s = this.importsStack.length;
if (this.importsStack[s - 1].has(t))
return true;
if (!e && s > 1) {
for (let i = 0;i < s - 1; i++)
if (this.importsStack[i].has(t))
return true;
}
return false;
}
declareName(t, e, s) {
if (e & 4096) {
this.hasImport(t, true) && this.parser.raise(p.VarRedeclaration, s, { identifierName: t }), this.importsStack[this.importsStack.length - 1].add(t);
return;
}
let i = this.currentScope(), r = i.tsNames.get(t) || 0;
if (e & 1024) {
this.maybeExportDefined(i, t), i.tsNames.set(t, r | 16);
return;
}
super.declareName(t, e, s), e & 2 && (e & 1 || (this.checkRedeclarationInScope(i, t, e, s), this.maybeExportDefined(i, t)), r = r | 1), e & 256 && (r = r | 2), e & 512 && (r = r | 4), e & 128 && (r = r | 8), r && i.tsNames.set(t, r);
}
isRedeclaredInScope(t, e, s) {
let i = t.tsNames.get(e);
if ((i & 2) > 0) {
if (s & 256) {
let r = !!(s & 512), n = (i & 4) > 0;
return r !== n;
}
return true;
}
return s & 128 && (i & 8) > 0 ? t.names.get(e) & 2 ? !!(s & 1) : false : s & 2 && (i & 1) > 0 ? true : super.isRedeclaredInScope(t, e, s);
}
checkLocalExport(t) {
let { name: e } = t;
if (this.hasImport(e))
return;
let s = this.scopeStack.length;
for (let i = s - 1;i >= 0; i--) {
let n = this.scopeStack[i].tsNames.get(e);
if ((n & 1) > 0 || (n & 16) > 0)
return;
}
super.checkLocalExport(t);
}
};
var Xe = class {
stacks = [];
enter(t) {
this.stacks.push(t);
}
exit() {
this.stacks.pop();
}
currentFlags() {
return this.stacks[this.stacks.length - 1];
}
get hasAwait() {
return (this.currentFlags() & 2) > 0;
}
get hasYield() {
return (this.currentFlags() & 1) > 0;
}
get hasReturn() {
return (this.currentFlags() & 4) > 0;
}
get hasIn() {
return (this.currentFlags() & 8) > 0;
}
};
function Se(a, t) {
return (a ? 2 : 0) | (t ? 1 : 0);
}
var Ye = class {
sawUnambiguousESM = false;
ambiguousScriptDifferentAst = false;
sourceToOffsetPos(t) {
return t + this.startIndex;
}
offsetToSourcePos(t) {
return t - this.startIndex;
}
hasPlugin(t) {
if (typeof t == "string")
return this.plugins.has(t);
{
let [e, s] = t;
if (!this.hasPlugin(e))
return false;
let i = this.plugins.get(e);
for (let r of Object.keys(s))
if (i?.[r] !== s[r])
return false;
return true;
}
}
getPluginOption(t, e) {
return this.plugins.get(t)?.[e];
}
};
function ss(a, t) {
a.trailingComments === undefined ? a.trailingComments = t : a.trailingComments.unshift(...t);
}
function Ri(a, t) {
a.leadingComments === undefined ? a.leadingComments = t : a.leadingComments.unshift(...t);
}
function X(a, t) {
a.innerComments === undefined ? a.innerComments = t : a.innerComments.unshift(...t);
}
function $(a, t, e) {
let s = null, i = t.length;
for (;s === null && i > 0; )
s = t[--i];
s === null || s.start > e.start ? X(a, e.comments) : ss(s, e.comments);
}
var Qe = class extends Ye {
addComment(t) {
this.filename && (t.loc.filename = this.filename);
let { commentsLen: e } = this.state;
this.comments.length !== e && (this.comments.length = e), this.comments.push(t), this.state.commentsLen++;
}
processComment(t) {
let { commentStack: e } = this.state, s = e.length;
if (s === 0)
return;
let i = s - 1, r = e[i];
r.start === t.end && (r.leadingNode = t, i--);
let { start: n } = t;
for (;i >= 0; i--) {
let o = e[i], h = o.end;
if (h > n)
o.containingNode = t, this.finalizeComment(o), e.splice(i, 1);
else {
h === n && (o.trailingNode = t);
break;
}
}
}
finalizeComment(t) {
let { comments: e } = t;
if (t.leadingNode !== null || t.trailingNode !== null)
t.leadingNode !== null && ss(t.leadingNode, e), t.trailingNode !== null && Ri(t.trailingNode, e);
else {
let { containingNode: s, start: i } = t;
if (this.input.charCodeAt(this.offsetToSourcePos(i) - 1) === 44)
switch (s.type) {
case "ObjectExpression":
case "ObjectPattern":
case "RecordExpression":
$(s, s.properties, t);
break;
case "CallExpression":
case "OptionalCallExpression":
$(s, s.arguments, t);
break;
case "ImportExpression":
$(s, [s.source, s.options ?? null], t);
break;
case "FunctionDeclaration":
case "FunctionExpression":
case "ArrowFunctionExpression":
case "ObjectMethod":
case "ClassMethod":
case "ClassPrivateMethod":
$(s, s.params, t);
break;
case "ArrayExpression":
case "ArrayPattern":
case "TupleExpression":
$(s, s.elements, t);
break;
case "ExportNamedDeclaration":
case "ImportDeclaration":
$(s, s.specifiers, t);
break;
case "TSEnumDeclaration":
X(s, e);
break;
case "TSEnumBody":
$(s, s.members, t);
break;
default:
X(s, e);
}
else
X(s, e);
}
}
finalizeRemainingComments() {
let { commentStack: t } = this.state;
for (let e = t.length - 1;e >= 0; e--)
this.finalizeComment(t[e]);
this.state.commentStack = [];
}
resetPreviousNodeTrailingComments(t) {
let { commentStack: e } = this.state, { length: s } = e;
if (s === 0)
return;
let i = e[s - 1];
i.leadingNode === t && (i.leadingNode = null);
}
takeSurroundingComments(t, e, s) {
let { commentStack: i } = this.state, r = i.length;
if (r === 0)
return;
let n = r - 1;
for (;n >= 0; n--) {
let o = i[n], h = o.end;
if (o.start === s)
o.leadingNode = t;
else if (h === e)
o.trailingNode = t;
else if (h < e)
break;
}
}
};
var Ze = class a {
flags = 1024;
get strict() {
return (this.flags & 1) > 0;
}
set strict(t) {
t ? this.flags |= 1 : this.flags &= -2;
}
startIndex;
curLine;
lineStart;
startLoc;
endLoc;
init({ strictMode: t, sourceType: e, startIndex: s, startLine: i, startColumn: r }) {
this.strict = t === false ? false : t === true ? true : e === "module", this.startIndex = s, this.curLine = i, this.lineStart = -r, this.startLoc = this.endLoc = new R(i, r, s);
}
errors = [];
potentialArrowAt = -1;
noArrowAt = [];
noArrowParamsConversionAt = [];
get maybeInArrowParameters() {
return (this.flags & 2) > 0;
}
set maybeInArrowParameters(t) {
t ? this.flags |= 2 : this.flags &= -3;
}
get inType() {
return (this.flags & 4) > 0;
}
set inType(t) {
t ? this.flags |= 4 : this.flags &= -5;
}
get noAnonFunctionType() {
return (this.flags & 8) > 0;
}
set noAnonFunctionType(t) {
t ? this.flags |= 8 : this.flags &= -9;
}
get hasFlowComment() {
return (this.flags & 16) > 0;
}
set hasFlowComment(t) {
t ? this.flags |= 16 : this.flags &= -17;
}
get isAmbientContext() {
return (this.flags & 32) > 0;
}
set isAmbientContext(t) {
t ? this.flags |= 32 : this.flags &= -33;
}
get inAbstractClass() {
return (this.flags & 64) > 0;
}
set inAbstractClass(t) {
t ? this.flags |= 64 : this.flags &= -65;
}
get inDisallowConditionalTypesContext() {
return (this.flags & 128) > 0;
}
set inDisallowConditionalTypesContext(t) {
t ? this.flags |= 128 : this.flags &= -129;
}
topicContext = { maxNumOfResolvableTopics: 0, maxTopicIndex: null };
get soloAwait() {
return (this.flags & 256) > 0;
}
set soloAwait(t) {
t ? this.flags |= 256 : this.flags &= -257;
}
get inFSharpPipelineDirectBody() {
return (this.flags & 512) > 0;
}
set inFSharpPipelineDirectBody(t) {
t ? this.flags |= 512 : this.flags &= -513;
}
labels = [];
commentsLen = 0;
commentStack = [];
pos = 0;
type = 140;
value = null;
start = 0;
end = 0;
lastTokEndLoc = null;
lastTokStartLoc = null;
context = [E.brace];
get canStartJSXElement() {
return (this.flags & 1024) > 0;
}
set canStartJSXElement(t) {
t ? this.flags |= 1024 : this.flags &= -1025;
}
get containsEsc() {
return (this.flags & 2048) > 0;
}
set containsEsc(t) {
t ? this.flags |= 2048 : this.flags &= -2049;
}
firstInvalidTemplateEscapePos = null;
get hasTopLevelAwait() {
return (this.flags & 4096) > 0;
}
set hasTopLevelAwait(t) {
t ? this.flags |= 4096 : this.flags &= -4097;
}
strictErrors = new Map;
tokensLength = 0;
curPosition() {
return new R(this.curLine, this.pos - this.lineStart, this.pos + this.startIndex);
}
clone() {
let t = new a;
return t.flags = this.flags, t.startIndex = this.startIndex, t.curLine = this.curLine, t.lineStart = this.lineStart, t.startLoc = this.startLoc, t.endLoc = this.endLoc, t.errors = this.errors.slice(), t.potentialArrowAt = this.potentialArrowAt, t.noArrowAt = this.noArrowAt.slice(), t.noArrowParamsConversionAt = this.noArrowParamsConversionAt.slice(), t.topicContext = this.topicContext, t.labels = this.labels.slice(), t.commentsLen = this.commentsLen, t.commentStack = this.commentStack.slice(), t.pos = this.pos, t.type = this.type, t.value = this.value, t.start = this.start, t.end = this.end, t.lastTokEndLoc = this.lastTokEndLoc, t.lastTokStartLoc = this.lastTokStartLoc, t.context = this.context.slice(), t.firstInvalidTemplateEscapePos = this.firstInvalidTemplateEscapePos, t.strictErrors = this.strictErrors, t.tokensLength = this.tokensLength, t;
}
};
var Ui = function(t) {
return t >= 48 && t <= 57;
};
var _t = { decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]), hex: new Set([46, 88, 95, 120]) };
var Te = { bin: (a2) => a2 === 48 || a2 === 49, oct: (a2) => a2 >= 48 && a2 <= 55, dec: (a2) => a2 >= 48 && a2 <= 57, hex: (a2) => a2 >= 48 && a2 <= 57 || a2 >= 65 && a2 <= 70 || a2 >= 97 && a2 <= 102 };
function jt(a2, t, e, s, i, r) {
let n = e, o = s, h = i, l = "", u = null, f = e, { length: d } = t;
for (;; ) {
if (e >= d) {
r.unterminated(n, o, h), l += t.slice(f, e);
break;
}
let x = t.charCodeAt(e);
if (_i(a2, x, t, e)) {
l += t.slice(f, e);
break;
}
if (x === 92) {
l += t.slice(f, e);
let A = ji(t, e, s, i, a2 === "template", r);
A.ch === null && !u ? u = { pos: e, lineStart: s, curLine: i } : l += A.ch, { pos: e, lineStart: s, curLine: i } = A, f = e;
} else
x === 8232 || x === 8233 ? (++e, ++i, s = e) : x === 10 || x === 13 ? a2 === "template" ? (l += t.slice(f, e) + `
`, ++e, x === 13 && t.charCodeAt(e) === 10 && ++e, ++i, f = s = e) : r.unterminated(n, o, h) : ++e;
}
return { pos: e, str: l, firstInvalidLoc: u, lineStart: s, curLine: i };
}
function _i(a2, t, e, s) {
return a2 === "template" ? t === 96 || t === 36 && e.charCodeAt(s + 1) === 123 : t === (a2 === "double" ? 34 : 39);
}
function ji(a2, t, e, s, i, r) {
let n = !i;
t++;
let o = (l) => ({ pos: t, ch: l, lineStart: e, curLine: s }), h = a2.charCodeAt(t++);
switch (h) {
case 110:
return o(`
`);
case 114:
return o("\r");
case 120: {
let l;
return { code: l, pos: t } = et(a2, t, e, s, 2, false, n, r), o(l === null ? null : String.fromCharCode(l));
}
case 117: {
let l;
return { code: l, pos: t } = rs(a2, t, e, s, n, r), o(l === null ? null : String.fromCodePoint(l));
}
case 116:
return o("\t");
case 98:
return o("\b");
case 118:
return o("\v");
case 102:
return o("\f");
case 13:
a2.charCodeAt(t) === 10 && ++t;
case 10:
e = t, ++s;
case 8232:
case 8233:
return o("");
case 56:
case 57:
if (i)
return o(null);
r.strictNumericEscape(t - 1, e, s);
default:
if (h >= 48 && h <= 55) {
let l = t - 1, f = /^[0-7]+/.exec(a2.slice(l, t + 2))[0], d = parseInt(f, 8);
d > 255 && (f = f.slice(0, -1), d = parseInt(f, 8)), t += f.length - 1;
let x = a2.charCodeAt(t);
if (f !== "0" || x === 56 || x === 57) {
if (i)
return o(null);
r.strictNumericEscape(l, e, s);
}
return o(String.fromCharCode(d));
}
return o(String.fromCharCode(h));
}
}
function et(a2, t, e, s, i, r, n, o) {
let h = t, l;
return { n: l, pos: t } = is(a2, t, e, s, 16, i, r, false, o, !n), l === null && (n ? o.invalidEscapeSequence(h, e, s) : t = h - 1), { code: l, pos: t };
}
function is(a2, t, e, s, i, r, n, o, h, l) {
let u = t, f = i === 16 ? _t.hex : _t.decBinOct, d = i === 16 ? Te.hex : i === 10 ? Te.dec : i === 8 ? Te.oct : Te.bin, x = false, A = 0;
for (let k = 0, N = r ?? 1 / 0;k < N; ++k) {
let C = a2.charCodeAt(t), I;
if (C === 95 && o !== "bail") {
let Pe = a2.charCodeAt(t - 1), ae = a2.charCodeAt(t + 1);
if (o) {
if (Number.isNaN(ae) || !d(ae) || f.has(Pe) || f.has(ae)) {
if (l)
return { n: null, pos: t };
h.unexpectedNumericSeparator(t, e, s);
}
} else {
if (l)
return { n: null, pos: t };
h.numericSeparatorInEscapeSequence(t, e, s);
}
++t;
continue;
}
if (C >= 97 ? I = C - 97 + 10 : C >= 65 ? I = C - 65 + 10 : Ui(C) ? I = C - 48 : I = 1 / 0, I >= i) {
if (I <= 9 && l)
return { n: null, pos: t };
if (I <= 9 && h.invalidDigit(t, e, s, i))
I = 0;
else if (n)
I = 0, x = true;
else
break;
}
++t, A = A * i + I;
}
return t === u || r != null && t - u !== r || x ? { n: null, pos: t } : { n: A, pos: t };
}
function rs(a2, t, e, s, i, r) {
let n = a2.charCodeAt(t), o;
if (n === 123) {
if (++t, { code: o, pos: t } = et(a2, t, e, s, a2.indexOf("}", t) - t, true, i, r), ++t, o !== null && o > 1114111)
if (i)
r.invalidCodePoint(t, e, s);
else
return { code: null, pos: t };
} else
({ code: o, pos: t } = et(a2, t, e, s, 4, false, i, r));
return { code: o, pos: t };
}
function he(a2, t, e) {
return new R(e, a2 - t, a2);
}
var Vi = new Set([103, 109, 115, 105, 121, 117, 100, 118]);
var tt = class {
constructor(t) {
let e = t.startIndex || 0;
this.type = t.type, this.value = t.value, this.start = e + t.start, this.end = e + t.end, this.loc = new Q(t.startLoc, t.endLoc);
}
};
var st = class extends Qe {
isLookahead;
tokens = [];
constructor(t, e) {
super(), this.state = new Ze, this.state.init(t), this.input = e, this.length = e.length, this.comments = [], this.isLookahead = false;
}
pushToken(t) {
this.tokens.length = this.state.tokensLength, this.tokens.push(t), ++this.state.tokensLength;
}
next() {
this.checkKeywordEscapes(), this.optionFlags & 256 && this.pushToken(new tt(this.state)), this.state.lastTokEndLoc = this.state.endLoc, this.state.lastTokStartLoc = this.state.startLoc, this.nextToken();
}
eat(t) {
return this.match(t) ? (this.next(), true) : false;
}
match(t) {
return this.state.type === t;
}
createLookaheadState(t) {
return { pos: t.pos, value: null, type: t.type, start: t.start, end: t.end, context: [this.curContext()], inType: t.inType, startLoc: t.startLoc, lastTokEndLoc: t.lastTokEndLoc, curLine: t.curLine, lineStart: t.lineStart, curPosition: t.curPosition };
}
lookahead() {
let t = this.state;
this.state = this.createLookaheadState(t), this.isLookahead = true, this.nextToken(), this.isLookahead = false;
let e = this.state;
return this.state = t, e;
}
nextTokenStart() {
return this.nextTokenStartSince(this.state.pos);
}
nextTokenStartSince(t) {
return _e.lastIndex = t, _e.test(this.input) ? _e.lastIndex : t;
}
lookaheadCharCode() {
return this.lookaheadCharCodeSince(this.state.pos);
}
lookaheadCharCodeSince(t) {
return this.input.charCodeAt(this.nextTokenStartSince(t));
}
nextTokenInLineStart() {
return this.nextTokenInLineStartSince(this.state.pos);
}
nextTokenInLineStartSince(t) {
return je.lastIndex = t, je.test(this.input) ? je.lastIndex : t;
}
lookaheadInLineCharCode() {
return this.input.charCodeAt(this.nextTokenInLineStart());
}
codePointAtPos(t) {
let e = this.input.charCodeAt(t);
if ((e & 64512) === 55296 && ++t < this.input.length) {
let s = this.input.charCodeAt(t);
(s & 64512) === 56320 && (e = 65536 + ((e & 1023) << 10) + (s & 1023));
}
return e;
}
setStrict(t) {
this.state.strict = t, t && (this.state.strictErrors.forEach(([e, s]) => this.raise(e, s)), this.state.strictErrors.clear());
}
curContext() {
return this.state.context[this.state.context.length - 1];
}
nextToken() {
if (this.skipSpace(), this.state.start = this.state.pos, this.isLookahead || (this.state.startLoc = this.state.curPosition()), this.state.pos >= this.length) {
this.finishToken(140);
return;
}
this.getTokenFromCode(this.codePointAtPos(this.state.pos));
}
skipBlockComment(t) {
let e;
this.isLookahead || (e = this.state.curPosition());
let s = this.state.pos, i = this.input.indexOf(t, s + 2);
if (i === -1)
throw this.raise(p.UnterminatedComment, this.state.curPosition());
for (this.state.pos = i + t.length, ge.lastIndex = s + 2;ge.test(this.input) && ge.lastIndex <= i; )
++this.state.curLine, this.state.lineStart = ge.lastIndex;
if (this.isLookahead)
return;
let r = { type: "CommentBlock", value: this.input.slice(s + 2, i), start: this.sourceToOffsetPos(s), end: this.sourceToOffsetPos(i + t.length), loc: new Q(e, this.state.curPosition()) };
return this.optionFlags & 256 && this.pushToken(r), r;
}
skipLineComment(t) {
let e = this.state.pos, s;
this.isLookahead || (s = this.state.curPosition());
let i = this.input.charCodeAt(this.state.pos += t);
if (this.state.pos < this.length)
for (;!G(i) && ++this.state.pos < this.length; )
i = this.input.charCodeAt(this.state.pos);
if (this.isLookahead)
return;
let r = this.state.pos, o = { type: "CommentLine", value: this.input.slice(e + t, r), start: this.sourceToOffsetPos(e), end: this.sourceToOffsetPos(r), loc: new Q(s, this.state.curPosition()) };
return this.optionFlags & 256 && this.pushToken(o), o;
}
skipSpace() {
let t = this.state.pos, e = this.optionFlags & 4096 ? [] : null;
e:
for (;this.state.pos < this.length; ) {
let s = this.input.charCodeAt(this.state.pos);
switch (s) {
case 32:
case 160:
case 9:
++this.state.pos;
break;
case 13:
this.input.charCodeAt(this.state.pos + 1) === 10 && ++this.state.pos;
case 10:
case 8232:
case 8233:
++this.state.pos, ++this.state.curLine, this.state.lineStart = this.state.pos;
break;
case 47:
switch (this.input.charCodeAt(this.state.pos + 1)) {
case 42: {
let i = this.skipBlockComment("*/");
i !== undefined && (this.addComment(i), e?.push(i));
break;
}
case 47: {
let i = this.skipLineComment(2);
i !== undefined && (this.addComment(i), e?.push(i));
break;
}
default:
break e;
}
break;
default:
if (Fi(s))
++this.state.pos;
else if (s === 45 && !this.inModule && this.optionFlags & 8192) {
let i = this.state.pos;
if (this.input.charCodeAt(i + 1) === 45 && this.input.charCodeAt(i + 2) === 62 && (t === 0 || this.state.lineStart > t)) {
let r = this.skipLineComment(3);
r !== undefined && (this.addComment(r), e?.push(r));
} else
break e;
} else if (s === 60 && !this.inModule && this.optionFlags & 8192) {
let i = this.state.pos;
if (this.input.charCodeAt(i + 1) === 33 && this.input.charCodeAt(i + 2) === 45 && this.input.charCodeAt(i + 3) === 45) {
let r = this.skipLineComment(4);
r !== undefined && (this.addComment(r), e?.push(r));
} else
break e;
} else
break e;
}
}
if (e?.length > 0) {
let s = this.state.pos, i = { start: this.sourceToOffsetPos(t), end: this.sourceToOffsetPos(s), comments: e, leadingNode: null, trailingNode: null, containingNode: null };
this.state.commentStack.push(i);
}
}
finishToken(t, e) {
this.state.end = this.state.pos, this.state.endLoc = this.state.curPosition();
let s = this.state.type;
this.state.type = t, this.state.value = e, this.isLookahead || this.updateContext(s);
}
replaceToken(t) {
this.state.type = t, this.updateContext();
}
readToken_numberSign() {
if (this.state.pos === 0 && this.readToken_interpreter())
return;
let t = this.state.pos + 1, e = this.codePointAtPos(t);
if (e >= 48 && e <= 57)
throw this.raise(p.UnexpectedDigitAfterHash, this.state.curPosition());
B(e) ? (++this.state.pos, this.finishToken(139, this.readWord1(e))) : e === 92 ? (++this.state.pos, this.finishToken(139, this.readWord1())) : this.finishOp(27, 1);
}
readToken_dot() {
let t = this.input.charCodeAt(this.state.pos + 1);
if (t >= 48 && t <= 57) {
this.readNumber(true);
return;
}
t === 46 && this.input.charCodeAt(this.state.pos + 2) === 46 ? (this.state.pos += 3, this.finishToken(21)) : (++this.state.pos, this.finishToken(16));
}
readToken_slash() {
this.input.charCodeAt(this.state.pos + 1) === 61 ? this.finishOp(31, 2) : this.finishOp(56, 1);
}
readToken_interpreter() {
if (this.state.pos !== 0 || this.length < 2)
return false;
let t = this.input.charCodeAt(this.state.pos + 1);
if (t !== 33)
return false;
let e = this.state.pos;
for (this.state.pos += 1;!G(t) && ++this.state.pos < this.length; )
t = this.input.charCodeAt(this.state.pos);
let s = this.input.slice(e + 2, this.state.pos);
return this.finishToken(28, s), true;
}
readToken_mult_modulo(t) {
let e = t === 42 ? 55 : 54, s = 1, i = this.input.charCodeAt(this.state.pos + 1);
t === 42 && i === 42 && (s++, i = this.input.charCodeAt(this.state.pos + 2), e = 57), i === 61 && !this.state.inType && (s++, e = t === 37 ? 33 : 30), this.finishOp(e, s);
}
readToken_pipe_amp(t) {
let e = this.input.charCodeAt(this.state.pos + 1);
if (e === t) {
this.input.charCodeAt(this.state.pos + 2) === 61 ? this.finishOp(30, 3) : this.finishOp(t === 124 ? 41 : 42, 2);
return;
}
if (t === 124 && e === 62) {
this.finishOp(39, 2);
return;
}
if (e === 61) {
this.finishOp(30, 2);
return;
}
this.finishOp(t === 124 ? 43 : 45, 1);
}
readToken_caret() {
let t = this.input.charCodeAt(this.state.pos + 1);
t === 61 && !this.state.inType ? this.finishOp(32, 2) : t === 94 && this.hasPlugin(["pipelineOperator", { proposal: "hack", topicToken: "^^" }]) ? (this.finishOp(37, 2), this.input.codePointAt(this.state.pos) === 94 && this.unexpected()) : this.finishOp(44, 1);
}
readToken_atSign() {
this.input.charCodeAt(this.state.pos + 1) === 64 && this.hasPlugin(["pipelineOperator", { proposal: "hack", topicToken: "@@" }]) ? this.finishOp(38, 2) : this.finishOp(26, 1);
}
readToken_plus_min(t) {
let e = this.input.charCodeAt(this.state.pos + 1);
if (e === t) {
this.finishOp(34, 2);
return;
}
e === 61 ? this.finishOp(30, 2) : this.finishOp(53, 1);
}
readToken_lt() {
let { pos: t } = this.state, e = this.input.charCodeAt(t + 1);
if (e === 60) {
if (this.input.charCodeAt(t + 2) === 61) {
this.finishOp(30, 3);
return;
}
this.finishOp(51, 2);
return;
}
if (e === 61) {
this.finishOp(49, 2);
return;
}
this.finishOp(47, 1);
}
readToken_gt() {
let { pos: t } = this.state, e = this.input.charCodeAt(t + 1);
if (e === 62) {
let s = this.input.charCodeAt(t + 2) === 62 ? 3 : 2;
if (this.input.charCodeAt(t + s) === 61) {
this.finishOp(30, s + 1);
return;
}
this.finishOp(52, s);
return;
}
if (e === 61) {
this.finishOp(49, 2);
return;
}
this.finishOp(48, 1);
}
readToken_eq_excl(t) {
let e = this.input.charCodeAt(this.state.pos + 1);
if (e === 61) {
this.finishOp(46, this.input.charCodeAt(this.state.pos + 2) === 61 ? 3 : 2);
return;
}
if (t === 61 && e === 62) {
this.state.pos += 2, this.finishToken(19);
return;
}
this.finishOp(t === 61 ? 29 : 35, 1);
}
readToken_question() {
let t = this.input.charCodeAt(this.state.pos + 1), e = this.input.charCodeAt(this.state.pos + 2);
t === 63 ? e === 61 ? this.finishOp(30, 3) : this.finishOp(40, 2) : t === 46 && !(e >= 48 && e <= 57) ? (this.state.pos += 2, this.finishToken(18)) : (++this.state.pos, this.finishToken(17));
}
getTokenFromCode(t) {
switch (t) {
case 46:
this.readToken_dot();
return;
case 40:
++this.state.pos, this.finishToken(10);
return;
case 41:
++this.state.pos, this.finishToken(11);
return;
case 59:
++this.state.pos, this.finishToken(13);
return;
case 44:
++this.state.pos, this.finishToken(12);
return;
case 91:
++this.state.pos, this.finishToken(0);
return;
case 93:
++this.state.pos, this.finishToken(3);
return;
case 123:
++this.state.pos, this.finishToken(5);
return;
case 125:
++this.state.pos, this.finishToken(8);
return;
case 58:
this.hasPlugin("functionBind") && this.input.charCodeAt(this.state.pos + 1) === 58 ? this.finishOp(15, 2) : (++this.state.pos, this.finishToken(14));
return;
case 63:
this.readToken_question();
return;
case 96:
this.readTemplateToken();
return;
case 48: {
let e = this.input.charCodeAt(this.state.pos + 1);
if (e === 120 || e === 88) {
this.readRadixNumber(16);
return;
}
if (e === 111 || e === 79) {
this.readRadixNumber(8);
return;
}
if (e === 98 || e === 66) {
this.readRadixNumber(2);
return;
}
}
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
this.readNumber(false);
return;
case 34:
case 39:
this.readString(t);
return;
case 47:
this.readToken_slash();
return;
case 37:
case 42:
this.readToken_mult_modulo(t);
return;
case 124:
case 38:
this.readToken_pipe_amp(t);
return;
case 94:
this.readToken_caret();
return;
case 43:
case 45:
this.readToken_plus_min(t);
return;
case 60:
this.readToken_lt();
return;
case 62:
this.readToken_gt();
return;
case 61:
case 33:
this.readToken_eq_excl(t);
return;
case 126:
this.finishOp(36, 1);
return;
case 64:
this.readToken_atSign();
return;
case 35:
this.readToken_numberSign();
return;
case 92:
this.readWord();
return;
default:
if (B(t)) {
this.readWord(t);
return;
}
}
throw this.raise(p.InvalidOrUnexpectedToken, this.state.curPosition(), { unexpected: String.fromCodePoint(t) });
}
finishOp(t, e) {
let s = this.input.slice(this.state.pos, this.state.pos + e);
this.state.pos += e, this.finishToken(t, s);
}
readRegexp() {
let t = this.state.startLoc, e = this.state.start + 1, s, i, { pos: r } = this.state;
for (;; ++r) {
if (r >= this.length)
throw this.raise(p.UnterminatedRegExp, D(t, 1));
let l = this.input.charCodeAt(r);
if (G(l))
throw this.raise(p.UnterminatedRegExp, D(t, 1));
if (s)
s = false;
else {
if (l === 91)
i = true;
else if (l === 93 && i)
i = false;
else if (l === 47 && !i)
break;
s = l === 92;
}
}
let n = this.input.slice(e, r);
++r;
let o = "", h = () => D(t, r + 2 - e);
for (;r < this.length; ) {
let l = this.codePointAtPos(r), u = String.fromCharCode(l);
if (Vi.has(l))
l === 118 ? o.includes("u") && this.raise(p.IncompatibleRegExpUVFlags, h()) : l === 117 && o.includes("v") && this.raise(p.IncompatibleRegExpUVFlags, h()), o.includes(u) && this.raise(p.DuplicateRegExpFlags, h());
else if (K(l) || l === 92)
this.raise(p.MalformedRegExpFlags, h());
else
break;
++r, o += u;
}
this.state.pos = r, this.finishToken(138, { pattern: n, flags: o });
}
readInt(t, e, s = false, i = true) {
let { n: r, pos: n } = is(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, e, s, i, this.errorHandlers_readInt, false);
return this.state.pos = n, r;
}
readRadixNumber(t) {
let e = this.state.pos, s = this.state.curPosition(), i = false;
this.state.pos += 2;
let r = this.readInt(t);
r == null && this.raise(p.InvalidDigit, D(s, 2), { radix: t });
let n = this.input.charCodeAt(this.state.pos);
if (n === 110)
++this.state.pos, i = true;
else if (n === 109)
throw this.raise(p.InvalidDecimal, s);
if (B(this.codePointAtPos(this.state.pos)))
throw this.raise(p.NumberIdentifier, this.state.curPosition());
if (i) {
let o = this.input.slice(e, this.state.pos).replace(/[_n]/g, "");
this.finishToken(136, o);
return;
}
this.finishToken(135, r);
}
readNumber(t) {
let e = this.state.pos, s = this.state.curPosition(), i = false, r = false, n = false;
!t && this.readInt(10) === null && this.raise(p.InvalidNumber, this.state.curPosition());
let o = this.state.pos - e >= 2 && this.input.charCodeAt(e) === 48;
if (o) {
let f = this.input.slice(e, this.state.pos);
if (this.recordStrictModeErrors(p.StrictOctalLiteral, s), !this.state.strict) {
let d = f.indexOf("_");
d > 0 && this.raise(p.ZeroDigitNumericSeparator, D(s, d));
}
n = o && !/[89]/.test(f);
}
let h = this.input.charCodeAt(this.state.pos);
if (h === 46 && !n && (++this.state.pos, this.readInt(10), i = true, h = this.input.charCodeAt(this.state.pos)), (h === 69 || h === 101) && !n && (h = this.input.charCodeAt(++this.state.pos), (h === 43 || h === 45) && ++this.state.pos, this.readInt(10) === null && this.raise(p.InvalidOrMissingExponent, s), i = true, h = this.input.charCodeAt(this.state.pos)), h === 110 && ((i || o) && this.raise(p.InvalidBigIntLiteral, s), ++this.state.pos, r = true), B(this.codePointAtPos(this.state.pos)))
throw this.raise(p.NumberIdentifier, this.state.curPosition());
let l = this.input.slice(e, this.state.pos).replace(/[_mn]/g, "");
if (r) {
this.finishToken(136, l);
return;
}
let u = n ? parseInt(l, 8) : parseFloat(l);
this.finishToken(135, u);
}
readCodePoint(t) {
let { code: e, pos: s } = rs(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, this.errorHandlers_readCodePoint);
return this.state.pos = s, e;
}
readString(t) {
let { str: e, pos: s, curLine: i, lineStart: r } = jt(t === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string);
this.state.pos = s + 1, this.state.lineStart = r, this.state.curLine = i, this.finishToken(134, e);
}
readTemplateContinuation() {
this.match(8) || this.unexpected(null, 8), this.state.pos--, this.readTemplateToken();
}
readTemplateToken() {
let t = this.input[this.state.pos], { str: e, firstInvalidLoc: s, pos: i, curLine: r, lineStart: n } = jt("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template);
this.state.pos = i + 1, this.state.lineStart = n, this.state.curLine = r, s && (this.state.firstInvalidTemplateEscapePos = new R(s.curLine, s.pos - s.lineStart, this.sourceToOffsetPos(s.pos))), this.input.codePointAt(i) === 96 ? this.finishToken(24, s ? null : t + e + "`") : (this.state.pos++, this.finishToken(25, s ? null : t + e + "${"));
}
recordStrictModeErrors(t, e) {
let s = e.index;
this.state.strict && !this.state.strictErrors.has(s) ? this.raise(t, e) : this.state.strictErrors.set(s, [t, e]);
}
readWord1(t) {
this.state.containsEsc = false;
let e = "", s = this.state.pos, i = this.state.pos;
for (t !== undefined && (this.state.pos += t <= 65535 ? 1 : 2);this.state.pos < this.length; ) {
let r = this.codePointAtPos(this.state.pos);
if (K(r))
this.state.pos += r <= 65535 ? 1 : 2;
else if (r === 92) {
this.state.containsEsc = true, e += this.input.slice(i, this.state.pos);
let n = this.state.curPosition(), o = this.state.pos === s ? B : K;
if (this.input.charCodeAt(++this.state.pos) !== 117) {
this.raise(p.MissingUnicodeEscape, this.state.curPosition()), i = this.state.pos - 1;
continue;
}
++this.state.pos;
let h = this.readCodePoint(true);
h !== null && (o(h) || this.raise(p.EscapedCharNotAnIdentifier, n), e += String.fromCodePoint(h)), i = this.state.pos;
} else
break;
}
return e + this.input.slice(i, this.state.pos);
}
readWord(t) {
let e = this.readWord1(t), s = ft.get(e);
s !== undefined ? this.finishToken(s, z(s)) : this.finishToken(132, e);
}
checkKeywordEscapes() {
let { type: t } = this.state;
Tt(t) && this.state.containsEsc && this.raise(p.InvalidEscapedReservedWord, this.state.startLoc, { reservedWord: z(t) });
}
raise(t, e, s = {}) {
let i = e instanceof R ? e : e.loc.start, r = t(i, s);
if (!(this.optionFlags & 2048))
throw r;
return this.isLookahead || this.state.errors.push(r), r;
}
raiseOverwrite(t, e, s = {}) {
let i = e instanceof R ? e : e.loc.start, r = i.index, n = this.state.errors;
for (let o = n.length - 1;o >= 0; o--) {
let h = n[o];
if (h.loc.index === r)
return n[o] = t(i, s);
if (h.loc.index < r)
break;
}
return this.raise(t, e, s);
}
updateContext(t) {}
unexpected(t, e) {
throw this.raise(p.UnexpectedToken, t ?? this.state.startLoc, { expected: e ? z(e) : null });
}
expectPlugin(t, e) {
if (this.hasPlugin(t))
return true;
throw this.raise(p.MissingPlugin, e ?? this.state.startLoc, { missingPlugin: [t] });
}
expectOnePlugin(t) {
if (!t.some((e) => this.hasPlugin(e)))
throw this.raise(p.MissingOneOfPlugins, this.state.startLoc, { missingPlugin: t });
}
errorBuilder(t) {
return (e, s, i) => {
this.raise(t, he(e, s, i));
};
}
errorHandlers_readInt = { invalidDigit: (t, e, s, i) => this.optionFlags & 2048 ? (this.raise(p.InvalidDigit, he(t, e, s), { radix: i }), true) : false, numericSeparatorInEscapeSequence: this.errorBuilder(p.NumericSeparatorInEscapeSequence), unexpectedNumericSeparator: this.errorBuilder(p.UnexpectedNumericSeparator) };
errorHandlers_readCodePoint = Object.assign({}, this.errorHandlers_readInt, { invalidEscapeSequence: this.errorBuilder(p.InvalidEscapeSequence), invalidCodePoint: this.errorBuilder(p.InvalidCodePoint) });
errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, { strictNumericEscape: (t, e, s) => {
this.recordStrictModeErrors(p.StrictNumericEscape, he(t, e, s));
}, unterminated: (t, e, s) => {
throw this.raise(p.UnterminatedString, he(t - 1, e, s));
} });
errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, { strictNumericEscape: this.errorBuilder(p.StrictNumericEscape), unterminated: (t, e, s) => {
throw this.raise(p.UnterminatedTemplate, he(t, e, s));
} });
};
var it = class {
privateNames = new Set;
loneAccessors = new Map;
undefinedPrivateNames = new Map;
};
var rt = class {
parser;
stack = [];
undefinedPrivateNames = new Map;
constructor(t) {
this.parser = t;
}
current() {
return this.stack[this.stack.length - 1];
}
enter() {
this.stack.push(new it);
}
exit() {
let t = this.stack.pop(), e = this.current();
for (let [s, i] of Array.from(t.undefinedPrivateNames))
e ? e.undefinedPrivateNames.has(s) || e.undefinedPrivateNames.set(s, i) : this.parser.raise(p.InvalidPrivateFieldResolution, i, { identifierName: s });
}
declarePrivateName(t, e, s) {
let { privateNames: i, loneAccessors: r, undefinedPrivateNames: n } = this.current(), o = i.has(t);
if (e & 3) {
let h = o && r.get(t);
if (h) {
let l = h & 4, u = e & 4, f = h & 3, d = e & 3;
o = f === d || l !== u, o || r.delete(t);
} else
o || r.set(t, e);
}
o && this.parser.raise(p.PrivateNameRedeclaration, s, { identifierName: t }), i.add(t), n.delete(t);
}
usePrivateName(t, e) {
let s;
for (s of this.stack)
if (s.privateNames.has(t))
return;
s ? s.undefinedPrivateNames.set(t, e) : this.parser.raise(p.InvalidPrivateFieldResolution, e, { identifierName: t });
}
};
var Z = class {
constructor(t = 0) {
this.type = t;
}
canBeArrowParameterDeclaration() {
return this.type === 2 || this.type === 1;
}
isCertainlyParameterDeclaration() {
return this.type === 3;
}
};
var Ce = class extends Z {
declarationErrors = new Map;
constructor(t) {
super(t);
}
recordDeclarationError(t, e) {
let s = e.index;
this.declarationErrors.set(s, [t, e]);
}
clearDeclarationError(t) {
this.declarationErrors.delete(t);
}
iterateErrors(t) {
this.declarationErrors.forEach(t);
}
};
var at = class {
parser;
stack = [new Z];
constructor(t) {
this.parser = t;
}
enter(t) {
this.stack.push(t);
}
exit() {
this.stack.pop();
}
recordParameterInitializerError(t, e) {
let s = e.loc.start, { stack: i } = this, r = i.length - 1, n = i[r];
for (;!n.isCertainlyParameterDeclaration(); ) {
if (n.canBeArrowParameterDeclaration())
n.recordDeclarationError(t, s);
else
return;
n = i[--r];
}
this.parser.raise(t, s);
}
recordArrowParameterBindingError(t, e) {
let { stack: s } = this, i = s[s.length - 1], r = e.loc.start;
if (i.isCertainlyParameterDeclaration())
this.parser.raise(t, r);
else if (i.canBeArrowParameterDeclaration())
i.recordDeclarationError(t, r);
else
return;
}
recordAsyncArrowParametersError(t) {
let { stack: e } = this, s = e.length - 1, i = e[s];
for (;i.canBeArrowParameterDeclaration(); )
i.type === 2 && i.recordDeclarationError(p.AwaitBindingIdentifier, t), i = e[--s];
}
validateAsPattern() {
let { stack: t } = this, e = t[t.length - 1];
e.canBeArrowParameterDeclaration() && e.iterateErrors(([s, i]) => {
this.parser.raise(s, i);
let r = t.length - 2, n = t[r];
for (;n.canBeArrowParameterDeclaration(); )
n.clearDeclarationError(i.index), n = t[--r];
});
}
};
function zi() {
return new Z(3);
}
function qi() {
return new Ce(1);
}
function $i() {
return new Ce(2);
}
function as() {
return new Z;
}
var nt = class extends st {
addExtra(t, e, s, i = true) {
if (!t)
return;
let { extra: r } = t;
r == null && (r = {}, t.extra = r), i ? r[e] = s : Object.defineProperty(r, e, { enumerable: i, value: s });
}
isContextual(t) {
return this.state.type === t && !this.state.containsEsc;
}
isUnparsedContextual(t, e) {
if (this.input.startsWith(e, t)) {
let s = this.input.charCodeAt(t + e.length);
return !(K(s) || (s & 64512) === 55296);
}
return false;
}
isLookaheadContextual(t) {
let e = this.nextTokenStart();
return this.isUnparsedContextual(e, t);
}
eatContextual(t) {
return this.isContextual(t) ? (this.next(), true) : false;
}
expectContextual(t, e) {
if (!this.eatContextual(t)) {
if (e != null)
throw this.raise(e, this.state.startLoc);
this.unexpected(null, t);
}
}
canInsertSemicolon() {
return this.match(140) || this.match(8) || this.hasPrecedingLineBreak();
}
hasPrecedingLineBreak() {
return Ut(this.input, this.offsetToSourcePos(this.state.lastTokEndLoc.index), this.state.start);
}
hasFollowingLineBreak() {
return Ut(this.input, this.state.end, this.nextTokenStart());
}
isLineTerminator() {
return this.eat(13) || this.canInsertSemicolon();
}
semicolon(t = true) {
(t ? this.isLineTerminator() : this.eat(13)) || this.raise(p.MissingSemicolon, this.state.lastTokEndLoc);
}
expect(t, e) {
this.eat(t) || this.unexpected(e, t);
}
tryParse(t, e = this.state.clone()) {
let s = { node: null };
try {
let i = t((r = null) => {
throw s.node = r, s;
});
if (this.state.errors.length > e.errors.length) {
let r = this.state;
return this.state = e, this.state.tokensLength = r.tokensLength, { node: i, error: r.errors[e.errors.length], thrown: false, aborted: false, failState: r };
}
return { node: i, error: null, thrown: false, aborted: false, failState: null };
} catch (i) {
let r = this.state;
if (this.state = e, i instanceof SyntaxError)
return { node: null, error: i, thrown: true, aborted: false, failState: r };
if (i === s)
return { node: s.node, error: null, thrown: false, aborted: true, failState: r };
throw i;
}
}
checkExpressionErrors(t, e) {
if (!t)
return false;
let { shorthandAssignLoc: s, doubleProtoLoc: i, privateKeyLoc: r, optionalParametersLoc: n, voidPatternLoc: o } = t, h = !!s || !!i || !!n || !!r || !!o;
if (!e)
return h;
s != null && this.raise(p.InvalidCoverInitializedName, s), i != null && this.raise(p.DuplicateProto, i), r != null && this.raise(p.UnexpectedPrivateField, r), n != null && this.unexpected(n), o != null && this.raise(p.InvalidCoverDiscardElement, o);
}
isLiteralPropertyName() {
return Jt(this.state.type);
}
isPrivateName(t) {
return t.type === "PrivateName";
}
getPrivateNameSV(t) {
return t.id.name;
}
hasPropertyAsPrivateName(t) {
return (t.type === "MemberExpression" || t.type === "OptionalMemberExpression") && this.isPrivateName(t.property);
}
isObjectProperty(t) {
return t.type === "ObjectProperty";
}
isObjectMethod(t) {
return t.type === "ObjectMethod";
}
initializeScopes(t = this.options.sourceType === "module") {
let e = this.state.labels;
this.state.labels = [];
let s = this.exportedIdentifiers;
this.exportedIdentifiers = new Set;
let i = this.inModule;
this.inModule = t;
let r = this.scope, n = this.getScopeHandler();
this.scope = new n(this, t);
let o = this.prodParam;
this.prodParam = new Xe;
let h = this.classScope;
this.classScope = new rt(this);
let l = this.expressionScope;
return this.expressionScope = new at(this), () => {
this.state.labels = e, this.exportedIdentifiers = s, this.inModule = i, this.scope = r, this.prodParam = o, this.classScope = h, this.expressionScope = l;
};
}
enterInitialScopes() {
let t = 0;
(this.inModule || this.optionFlags & 1) && (t |= 2), this.optionFlags & 32 && (t |= 1);
let e = !this.inModule && this.options.sourceType === "commonjs";
(e || this.optionFlags & 2) && (t |= 4), this.prodParam.enter(t);
let s = e ? 514 : 1;
this.optionFlags & 4 && (s |= 512), this.optionFlags & 16 && (s |= 48), this.scope.enter(s);
}
checkDestructuringPrivate(t) {
let { privateKeyLoc: e } = t;
e !== null && this.expectPlugin("destructuringPrivate", e);
}
};
var Y = class {
shorthandAssignLoc = null;
doubleProtoLoc = null;
privateKeyLoc = null;
optionalParametersLoc = null;
voidPatternLoc = null;
};
var de = class {
constructor(t, e, s) {
this.start = e, this.end = 0, this.loc = new Q(s), t?.optionFlags & 128 && (this.range = [e, 0]), t?.filename && (this.loc.filename = t.filename);
}
type = "";
};
var Vt = de.prototype;
var ot = class extends nt {
startNode() {
let t = this.state.startLoc;
return new de(this, t.index, t);
}
startNodeAt(t) {
return new de(this, t.index, t);
}
startNodeAtNode(t) {
return this.startNodeAt(t.loc.start);
}
finishNode(t, e) {
return this.finishNodeAt(t, e, this.state.lastTokEndLoc);
}
finishNodeAt(t, e, s) {
return t.type = e, t.end = s.index, t.loc.end = s, this.optionFlags & 128 && (t.range[1] = s.index), this.optionFlags & 4096 && this.processComment(t), t;
}
resetStartLocation(t, e) {
t.start = e.index, t.loc.start = e, this.optionFlags & 128 && (t.range[0] = e.index);
}
resetEndLocation(t, e = this.state.lastTokEndLoc) {
t.end = e.index, t.loc.end = e, this.optionFlags & 128 && (t.range[1] = e.index);
}
resetStartLocationFromNode(t, e) {
this.resetStartLocation(t, e.loc.start);
}
castNodeTo(t, e) {
return t.type = e, t;
}
cloneIdentifier(t) {
let { type: e, start: s, end: i, loc: r, range: n, name: o } = t, h = Object.create(Vt);
return h.type = e, h.start = s, h.end = i, h.loc = r, h.range = n, h.name = o, t.extra && (h.extra = t.extra), h;
}
cloneStringLiteral(t) {
let { type: e, start: s, end: i, loc: r, range: n, extra: o } = t, h = Object.create(Vt);
return h.type = e, h.start = s, h.end = i, h.loc = r, h.range = n, h.extra = o, h.value = t.value, h;
}
};
var ht = (a2) => a2.type === "ParenthesizedExpression" ? ht(a2.expression) : a2;
var ct = class extends ot {
toAssignable(t, e = false) {
let s;
switch ((t.type === "ParenthesizedExpression" || t.extra?.parenthesized) && (s = ht(t), e ? s.type === "Identifier" ? this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment, t) : s.type !== "CallExpression" && s.type !== "MemberExpression" && !this.isOptionalMemberExpression(s) && this.raise(p.InvalidParenthesizedAssignment, t) : this.raise(p.InvalidParenthesizedAssignment, t)), t.type) {
case "Identifier":
case "ObjectPattern":
case "ArrayPattern":
case "AssignmentPattern":
case "RestElement":
case "VoidPattern":
break;
case "ObjectExpression":
this.castNodeTo(t, "ObjectPattern");
for (let i = 0, r = t.properties.length, n = r - 1;i < r; i++) {
let o = t.properties[i], h = i === n;
this.toAssignableObjectExpressionProp(o, h, e), h && o.type === "RestElement" && t.extra?.trailingCommaLoc && this.raise(p.RestTrailingComma, t.extra.trailingCommaLoc);
}
break;
case "ObjectProperty": {
let { key: i, value: r } = t;
this.isPrivateName(i) && this.classScope.usePrivateName(this.getPrivateNameSV(i), i.loc.start), this.toAssignable(r, e);
break;
}
case "SpreadElement":
throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");
case "ArrayExpression":
this.castNodeTo(t, "ArrayPattern"), this.toAssignableList(t.elements, t.extra?.trailingCommaLoc, e);
break;
case "AssignmentExpression":
t.operator !== "=" && this.raise(p.MissingEqInAssignment, t.left.loc.end), this.castNodeTo(t, "AssignmentPattern"), delete t.operator, t.left.type === "VoidPattern" && this.raise(p.VoidPatternInitializer, t.left), this.toAssignable(t.left, e);
break;
case "ParenthesizedExpression":
this.toAssignable(s, e);
break;
}
}
toAssignableObjectExpressionProp(t, e, s) {
if (t.type === "ObjectMethod")
this.raise(t.kind === "get" || t.kind === "set" ? p.PatternHasAccessor : p.PatternHasMethod, t.key);
else if (t.type === "SpreadElement") {
this.castNodeTo(t, "RestElement");
let i = t.argument;
this.checkToRestConversion(i, false), this.toAssignable(i, s), e || this.raise(p.RestTrailingComma, t);
} else
this.toAssignable(t, s);
}
toAssignableList(t, e, s) {
let i = t.length - 1;
for (let r = 0;r <= i; r++) {
let n = t[r];
n && (this.toAssignableListItem(t, r, s), n.type === "RestElement" && (r < i ? this.raise(p.RestTrailingComma, n) : e && this.raise(p.RestTrailingComma, e)));
}
}
toAssignableListItem(t, e, s) {
let i = t[e];
if (i.type === "SpreadElement") {
this.castNodeTo(i, "RestElement");
let r = i.argument;
this.checkToRestConversion(r, true), this.toAssignable(r, s);
} else
this.toAssignable(i, s);
}
isAssignable(t, e) {
switch (t.type) {
case "Identifier":
case "ObjectPattern":
case "ArrayPattern":
case "AssignmentPattern":
case "RestElement":
case "VoidPattern":
return true;
case "ObjectExpression": {
let s = t.properties.length - 1;
return t.properties.every((i, r) => i.type !== "ObjectMethod" && (r === s || i.type !== "SpreadElement") && this.isAssignable(i));
}
case "ObjectProperty":
return this.isAssignable(t.value);
case "SpreadElement":
return this.isAssignable(t.argument);
case "ArrayExpression":
return t.elements.every((s) => s === null || this.isAssignable(s));
case "AssignmentExpression":
return t.operator === "=";
case "ParenthesizedExpression":
return this.isAssignable(t.expression);
case "MemberExpression":
case "OptionalMemberExpression":
return !e;
default:
return false;
}
}
toReferencedList(t, e) {
return t;
}
toReferencedListDeep(t, e) {
this.toReferencedList(t, e);
for (let s of t)
s?.type === "ArrayExpression" && this.toReferencedListDeep(s.elements);
}
parseSpread(t) {
let e = this.startNode();
return this.next(), e.argument = this.parseMaybeAssignAllowIn(t, undefined), this.finishNode(e, "SpreadElement");
}
parseRestBinding() {
let t = this.startNode();
this.next();
let e = this.parseBindingAtom();
return e.type === "VoidPattern" && this.raise(p.UnexpectedVoidPattern, e), t.argument = e, this.finishNode(t, "RestElement");
}
parseBindingAtom() {
switch (this.state.type) {
case 0: {
let t = this.startNode();
return this.next(), t.elements = this.parseBindingList(3, 93, 1), this.finishNode(t, "ArrayPattern");
}
case 5:
return this.parseObjectLike(8, true);
case 88:
return this.parseVoidPattern(null);
}
return this.parseIdentifier();
}
parseBindingList(t, e, s) {
let i = s & 1, r = [], n = true;
for (;!this.eat(t); )
if (n ? n = false : this.expect(12), i && this.match(12))
r.push(null);
else {
if (this.eat(t))
break;
if (this.match(21)) {
let o = this.parseRestBinding();
if (s & 2 && (o = this.parseFunctionParamType(o)), r.push(o), !this.checkCommaAfterRest(e)) {
this.expect(t);
break;
}
} else {
let o = [];
if (s & 2)
for (this.match(26) && this.hasPlugin("decorators") && this.raise(p.UnsupportedParameterDecorator, this.state.startLoc);this.match(26); )
o.push(this.parseDecorator());
r.push(this.parseBindingElement(s, o));
}
}
return r;
}
parseBindingRestProperty(t) {
return this.next(), this.hasPlugin("discardBinding") && this.match(88) ? (t.argument = this.parseVoidPattern(null), this.raise(p.UnexpectedVoidPattern, t.argument)) : t.argument = this.parseIdentifier(), this.checkCommaAfterRest(125), this.finishNode(t, "RestElement");
}
parseBindingProperty() {
let { type: t, startLoc: e } = this.state;
if (t === 21)
return this.parseBindingRestProperty(this.startNode());
let s = this.startNode();
return t === 139 ? (this.expectPlugin("destructuringPrivate", e), this.classScope.usePrivateName(this.state.value, e), s.key = this.parsePrivateName()) : this.parsePropertyName(s), s.method = false, this.parseObjPropValue(s, e, false, false, true, false);
}
parseBindingElement(t, e) {
let s = this.parseMaybeDefault();
return t & 2 && this.parseFunctionParamType(s), e.length && (s.decorators = e, this.resetStartLocationFromNode(s, e[0])), this.parseMaybeDefault(s.loc.start, s);
}
parseFunctionParamType(t) {
return t;
}
parseMaybeDefault(t, e) {
if (t ?? (t = this.state.startLoc), e = e ?? this.parseBindingAtom(), !this.eat(29))
return e;
let s = this.startNodeAt(t);
return e.type === "VoidPattern" && this.raise(p.VoidPatternInitializer, e), s.left = e, s.right = this.parseMaybeAssignAllowIn(), this.finishNode(s, "AssignmentPattern");
}
isValidLVal(t, e, s, i) {
switch (t) {
case "AssignmentPattern":
return "left";
case "RestElement":
return "argument";
case "ObjectProperty":
return "value";
case "ParenthesizedExpression":
return "expression";
case "ArrayPattern":
return "elements";
case "ObjectPattern":
return "properties";
case "VoidPattern":
return true;
case "CallExpression":
if (!e && !this.state.strict && this.optionFlags & 8192)
return true;
}
return false;
}
isOptionalMemberExpression(t) {
return t.type === "OptionalMemberExpression";
}
checkLVal(t, e, s = 64, i = false, r = false, n = false, o = false) {
let h = t.type;
if (this.isObjectMethod(t))
return;
let l = this.isOptionalMemberExpression(t);
if (l || h === "MemberExpression") {
l && (this.expectPlugin("optionalChainingAssign", t.loc.start), e.type !== "AssignmentExpression" && this.raise(p.InvalidLhsOptionalChaining, t, { ancestor: e })), s !== 64 && this.raise(p.InvalidPropertyBindingPattern, t);
return;
}
if (h === "Identifier") {
this.checkIdentifier(t, s, r);
let { name: N } = t;
i && (i.has(N) ? this.raise(p.ParamDupe, t) : i.add(N));
return;
} else
h === "VoidPattern" && e.type === "CatchClause" && this.raise(p.VoidPatternCatchClauseParam, t);
let u = ht(t);
o || (o = u.type === "CallExpression" && (u.callee.type === "Import" || u.callee.type === "Super"));
let f = this.isValidLVal(h, o, !(n || t.extra?.parenthesized) && e.type === "AssignmentExpression", s);
if (f === true)
return;
if (f === false) {
let N = s === 64 ? p.InvalidLhs : p.InvalidLhsBinding;
this.raise(N, t, { ancestor: e });
return;
}
let d, x;
typeof f == "string" ? (d = f, x = h === "ParenthesizedExpression") : [d, x] = f;
let A = h === "ArrayPattern" || h === "ObjectPattern" ? { type: h } : e, k = t[d];
if (Array.isArray(k))
for (let N of k)
N && this.checkLVal(N, A, s, i, r, x, true);
else
k && this.checkLVal(k, A, s, i, r, x, o);
}
checkIdentifier(t, e, s = false) {
this.state.strict && (s ? ts(t.name, this.inModule) : es(t.name)) && (e === 64 ? this.raise(p.StrictEvalArguments, t, { referenceName: t.name }) : this.raise(p.StrictEvalArgumentsBinding, t, { bindingName: t.name })), e & 8192 && t.name === "let" && this.raise(p.LetInLexicalBinding, t), e & 64 || this.declareNameFromIdentifier(t, e);
}
declareNameFromIdentifier(t, e) {
this.scope.declareName(t.name, e, t.loc.start);
}
checkToRestConversion(t, e) {
switch (t.type) {
case "ParenthesizedExpression":
this.checkToRestConversion(t.expression, e);
break;
case "Identifier":
case "MemberExpression":
break;
case "ArrayExpression":
case "ObjectExpression":
if (e)
break;
default:
this.raise(p.InvalidRestAssignmentPattern, t);
}
}
checkCommaAfterRest(t) {
return this.match(12) ? (this.raise(this.lookaheadCharCode() === t ? p.RestTrailingComma : p.ElementAfterRest, this.state.startLoc), true) : false;
}
};
var Ve = /in(?:stanceof)?|as|satisfies/y;
function Ki(a2) {
if (a2 == null)
throw new Error(`Unexpected ${a2} value.`);
return a2;
}
function zt(a2) {
if (!a2)
throw new Error("Assert fail");
}
var y = F`typescript`({ AbstractMethodHasImplementation: ({ methodName: a2 }) => `Method '${a2}' cannot have an implementation because it is marked abstract.`, AbstractPropertyHasInitializer: ({ propertyName: a2 }) => `Property '${a2}' cannot have an initializer because it is marked abstract.`, AccessorCannotBeOptional: "An 'accessor' property cannot be declared optional.", AccessorCannotDeclareThisParameter: "'get' and 'set' accessors cannot declare 'this' parameters.", AccessorCannotHaveTypeParameters: "An accessor cannot have type parameters.", ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier.", ClassMethodHasReadonly: "Class methods cannot have the 'readonly' modifier.", ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.", ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.", DeclareAccessor: ({ kind: a2 }) => `'declare' is not allowed in ${a2}ters.`, DeclareClassFieldHasInitializer: "Initializers are not allowed in ambient contexts.", DeclareFunctionHasImplementation: "An implementation cannot be declared in ambient contexts.", DuplicateAccessibilityModifier: ({ modifier: a2 }) => `Accessibility modifier already seen: '${a2}'.`, DuplicateModifier: ({ modifier: a2 }) => `Duplicate modifier: '${a2}'.`, EmptyHeritageClauseType: ({ token: a2 }) => `'${a2}' list cannot be empty.`, EmptyTypeArguments: "Type argument list cannot be empty.", EmptyTypeParameters: "Type parameter list cannot be empty.", ExpectedAmbientAfterExportDeclare: "'export declare' must be followed by an ambient declaration.", ImportAliasHasImportType: "An import alias can not use 'import type'.", ImportReflectionHasImportType: "An `import module` declaration can not use `type` modifier", IncompatibleModifiers: ({ modifiers: a2 }) => `'${a2[0]}' modifier cannot be used with '${a2[1]}' modifier.`, IndexSignatureHasAbstract: "Index signatures cannot have the 'abstract' modifier.", IndexSignatureHasAccessibility: ({ modifier: a2 }) => `Index signatures cannot have an accessibility modifier ('${a2}').`, IndexSignatureHasDeclare: "Index signatures cannot have the 'declare' modifier.", IndexSignatureHasOverride: "'override' modifier cannot appear on an index signature.", IndexSignatureHasStatic: "Index signatures cannot have the 'static' modifier.", InitializerNotAllowedInAmbientContext: "Initializers are not allowed in ambient contexts.", InvalidHeritageClauseType: ({ token: a2 }) => `'${a2}' list can only include identifiers or qualified-names with optional type arguments.`, InvalidModifierOnAwaitUsingDeclaration: (a2) => `'${a2}' modifier cannot appear on an await using declaration.`, InvalidModifierOnTypeMember: ({ modifier: a2 }) => `'${a2}' modifier cannot appear on a type member.`, InvalidModifierOnTypeParameter: ({ modifier: a2 }) => `'${a2}' modifier cannot appear on a type parameter.`, InvalidModifierOnTypeParameterPositions: ({ modifier: a2 }) => `'${a2}' modifier can only appear on a type parameter of a class, interface or type alias.`, InvalidModifierOnUsingDeclaration: (a2) => `'${a2}' modifier cannot appear on a using declaration.`, InvalidModifiersOrder: ({ orderedModifiers: a2 }) => `'${a2[0]}' modifier must precede '${a2[1]}' modifier.`, InvalidPropertyAccessAfterInstantiationExpression: "Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.", InvalidTupleMemberLabel: "Tuple members must be labeled with a simple identifier.", MissingInterfaceName: "'interface' declarations must be followed by an identifier.", NonAbstractClassHasAbstractMethod: "Abstract methods can only appear within an abstract class.", NonClassMethodPropertyHasAbstractModifier: "'abstract' modifier can only appear on a class, method, or property declaration.", OptionalTypeBeforeRequired: "A required element cannot follow an optional element.", OverrideNotInSubClass: "This member cannot have an 'override' modifier because its containing class does not extend another class.", PatternIsOptional: "A binding pattern parameter cannot be optional in an implementation signature.", PrivateElementHasAbstract: "Private elements cannot have the 'abstract' modifier.", PrivateElementHasAccessibility: ({ modifier: a2 }) => `Private elements cannot have an accessibility modifier ('${a2}').`, ReadonlyForMethodSignature: "'readonly' modifier can only appear on a property declaration or index signature.", ReservedArrowTypeParam: "This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.", ReservedTypeAssertion: "This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.", SetAccessorCannotHaveOptionalParameter: "A 'set' accessor cannot have an optional parameter.", SetAccessorCannotHaveRestParameter: "A 'set' accessor cannot have rest parameter.", SetAccessorCannotHaveReturnType: "A 'set' accessor cannot have a return type annotation.", SingleTypeParameterWithoutTrailingComma: ({ typeParameterName: a2 }) => `Single type parameter ${a2} should have a trailing comma. Example usage: <${a2},>.`, StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.", TupleOptionalAfterType: "A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).", TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.", TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.", TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.", UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.", UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.", UnexpectedTypeAnnotation: "Did not expect a type annotation here.", UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.", UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.", UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.", UnsupportedSignatureParameterKind: ({ type: a2 }) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${a2}.`, UsingDeclarationInAmbientContext: (a2) => `'${a2}' declarations are not allowed in ambient contexts.` });
function Hi(a2) {
switch (a2) {
case "any":
return "TSAnyKeyword";
case "boolean":
return "TSBooleanKeyword";
case "bigint":
return "TSBigIntKeyword";
case "never":
return "TSNeverKeyword";
case "number":
return "TSNumberKeyword";
case "object":
return "TSObjectKeyword";
case "string":
return "TSStringKeyword";
case "symbol":
return "TSSymbolKeyword";
case "undefined":
return "TSUndefinedKeyword";
case "unknown":
return "TSUnknownKeyword";
default:
return;
}
}
function qt(a2) {
return a2 === "private" || a2 === "public" || a2 === "protected";
}
function Wi(a2) {
return a2 === "in" || a2 === "out";
}
function lt(a2) {
if (a2.extra?.parenthesized)
return false;
switch (a2.type) {
case "Identifier":
return true;
case "MemberExpression":
return !a2.computed && lt(a2.object);
case "TSInstantiationExpression":
return lt(a2.expression);
default:
return false;
}
}
var Ji = (a2) => class extends a2 {
getScopeHandler() {
return Ge;
}
tsIsIdentifier() {
return w(this.state.type);
}
tsTokenCanFollowModifier() {
return this.match(0) || this.match(5) || this.match(55) || this.match(21) || this.match(139) || this.isLiteralPropertyName();
}
tsNextTokenOnSameLineAndCanFollowModifier() {
return this.next(), this.hasPrecedingLineBreak() ? false : this.tsTokenCanFollowModifier();
}
tsNextTokenCanFollowModifier() {
return this.match(106) ? (this.next(), this.tsTokenCanFollowModifier()) : this.tsNextTokenOnSameLineAndCanFollowModifier();
}
tsParseModifier(e, s, i) {
if (!w(this.state.type) && this.state.type !== 58 && this.state.type !== 75)
return;
let r = this.state.value;
if (e.includes(r)) {
if (i && this.match(106) || s && this.tsIsStartOfStaticBlocks())
return;
if (this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))
return r;
}
}
tsParseModifiers({ allowedModifiers: e, disallowedModifiers: s, stopOnStartOfClassStaticBlock: i, errorTemplate: r = y.InvalidModifierOnTypeMember }, n) {
let o = (l, u, f, d) => {
u === f && n[d] && this.raise(y.InvalidModifiersOrder, l, { orderedModifiers: [f, d] });
}, h = (l, u, f, d) => {
(n[f] && u === d || n[d] && u === f) && this.raise(y.IncompatibleModifiers, l, { modifiers: [f, d] });
};
for (;; ) {
let { startLoc: l } = this.state, u = this.tsParseModifier(e.concat(s ?? []), i, n.static);
if (!u)
break;
qt(u) ? n.accessibility ? this.raise(y.DuplicateAccessibilityModifier, l, { modifier: u }) : (o(l, u, u, "override"), o(l, u, u, "static"), o(l, u, u, "readonly"), n.accessibility = u) : Wi(u) ? (n[u] && this.raise(y.DuplicateModifier, l, { modifier: u }), n[u] = true, o(l, u, "in", "out")) : (Object.prototype.hasOwnProperty.call(n, u) ? this.raise(y.DuplicateModifier, l, { modifier: u }) : (o(l, u, "static", "readonly"), o(l, u, "static", "override"), o(l, u, "override", "readonly"), o(l, u, "abstract", "override"), h(l, u, "declare", "override"), h(l, u, "static", "abstract")), n[u] = true), s?.includes(u) && this.raise(r, l, { modifier: u });
}
}
tsIsListTerminator(e) {
switch (e) {
case "EnumMembers":
case "TypeMembers":
return this.match(8);
case "HeritageClauseElement":
return this.match(5);
case "TupleElementTypes":
return this.match(3);
case "TypeParametersOrArguments":
return this.match(48);
}
}
tsParseList(e, s) {
let i = [];
for (;!this.tsIsListTerminator(e); )
i.push(s());
return i;
}
tsParseDelimitedList(e, s, i) {
return Ki(this.tsParseDelimitedListWorker(e, s, true, i));
}
tsParseDelimitedListWorker(e, s, i, r) {
let n = [], o = -1;
for (;!this.tsIsListTerminator(e); ) {
o = -1;
let h = s();
if (h == null)
return;
if (n.push(h), this.eat(12)) {
o = this.state.lastTokStartLoc.index;
continue;
}
if (this.tsIsListTerminator(e))
break;
i && this.expect(12);
return;
}
return r && (r.value = o), n;
}
tsParseBracketedList(e, s, i, r, n) {
r || (i ? this.expect(0) : this.expect(47));
let o = this.tsParseDelimitedList(e, s, n);
return i ? this.expect(3) : this.expect(48), o;
}
tsParseImportType() {
let e = this.startNode();
return this.expect(83), this.expect(10), this.match(134) ? e.argument = this.tsParseLiteralTypeNode() : (this.raise(y.UnsupportedImportTypeArgument, this.state.startLoc), e.argument = this.tsParseNonConditionalType()), this.eat(12) ? e.options = this.tsParseImportTypeOptions() : e.options = null, this.expect(11), this.eat(16) && (e.qualifier = this.tsParseEntityName(3)), this.match(47) && (e.typeArguments = this.tsParseTypeArguments()), this.finishNode(e, "TSImportType");
}
tsParseImportTypeOptions() {
let e = this.startNode();
this.expect(5);
let s = this.startNode();
return this.isContextual(76) ? (s.method = false, s.key = this.parseIdentifier(true), s.computed = false, s.shorthand = false) : this.unexpected(null, 76), this.expect(14), s.value = this.tsParseImportTypeWithPropertyValue(), e.properties = [this.finishObjectProperty(s)], this.eat(12), this.expect(8), this.finishNode(e, "ObjectExpression");
}
tsParseImportTypeWithPropertyValue() {
let e = this.startNode(), s = [];
for (this.expect(5);!this.match(8); ) {
let i = this.state.type;
w(i) || i === 134 ? s.push(super.parsePropertyDefinition(null)) : this.unexpected(), this.eat(12);
}
return e.properties = s, this.next(), this.finishNode(e, "ObjectExpression");
}
tsParseEntityName(e) {
let s;
if (e & 1 && this.match(78))
if (e & 2)
s = this.parseIdentifier(true);
else {
let i = this.startNode();
this.next(), s = this.finishNode(i, "ThisExpression");
}
else
s = this.parseIdentifier(!!(e & 1));
for (;this.eat(16); ) {
let i = this.startNodeAtNode(s);
i.left = s, i.right = this.parseIdentifier(!!(e & 1)), s = this.finishNode(i, "TSQualifiedName");
}
return s;
}
tsParseTypeReference() {
let e = this.startNode();
return e.typeName = this.tsParseEntityName(1), !this.hasPrecedingLineBreak() && this.match(47) && (e.typeArguments = this.tsParseTypeArguments()), this.finishNode(e, "TSTypeReference");
}
tsParseThisTypePredicate(e) {
this.next();
let s = this.startNodeAtNode(e);
return s.parameterName = e, s.typeAnnotation = this.tsParseTypeAnnotation(false), s.asserts = false, this.finishNode(s, "TSTypePredicate");
}
tsParseThisTypeNode() {
let e = this.startNode();
return this.next(), this.finishNode(e, "TSThisType");
}
tsParseTypeQuery() {
let e = this.startNode();
return this.expect(87), this.match(83) ? e.exprName = this.tsParseImportType() : e.exprName = this.tsParseEntityName(1), !this.hasPrecedingLineBreak() && this.match(47) && (e.typeArguments = this.tsParseTypeArguments()), this.finishNode(e, "TSTypeQuery");
}
tsParseInOutModifiers = this.tsParseModifiers.bind(this, { allowedModifiers: ["in", "out"], disallowedModifiers: ["const", "public", "private", "protected", "readonly", "declare", "abstract", "override"], errorTemplate: y.InvalidModifierOnTypeParameter });
tsParseConstModifier = this.tsParseModifiers.bind(this, { allowedModifiers: ["const"], disallowedModifiers: ["in", "out"], errorTemplate: y.InvalidModifierOnTypeParameterPositions });
tsParseInOutConstModifiers = this.tsParseModifiers.bind(this, { allowedModifiers: ["in", "out", "const"], disallowedModifiers: ["public", "private", "protected", "readonly", "declare", "abstract", "override"], errorTemplate: y.InvalidModifierOnTypeParameter });
tsParseTypeParameter(e) {
let s = this.startNode();
return e(s), s.name = this.tsParseTypeParameterName(), s.constraint = this.tsEatThenParseType(81), s.default = this.tsEatThenParseType(29), this.finishNode(s, "TSTypeParameter");
}
tsTryParseTypeParameters(e) {
if (this.match(47))
return this.tsParseTypeParameters(e);
}
tsParseTypeParameters(e) {
let s = this.startNode();
this.match(47) || this.match(143) ? this.next() : this.unexpected();
let i = { value: -1 };
return s.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, e), false, true, i), s.params.length === 0 && this.raise(y.EmptyTypeParameters, s), i.value !== -1 && this.addExtra(s, "trailingComma", i.value), this.finishNode(s, "TSTypeParameterDeclaration");
}
tsFillSignature(e, s) {
let i = e === 19, r = "params", n = "returnType";
s.typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier), this.expect(10), s[r] = this.tsParseBindingListForSignature(), i ? s[n] = this.tsParseTypeOrTypePredicateAnnotation(e) : this.match(e) && (s[n] = this.tsParseTypeOrTypePredicateAnnotation(e));
}
tsParseBindingListForSignature() {
let e = super.parseBindingList(11, 41, 2);
for (let s of e) {
let { type: i } = s;
(i === "AssignmentPattern" || i === "TSParameterProperty") && this.raise(y.UnsupportedSignatureParameterKind, s, { type: i });
}
return e;
}
tsParseTypeMemberSemicolon() {
!this.eat(12) && !this.isLineTerminator() && this.expect(13);
}
tsParseSignatureMember(e, s) {
return this.tsFillSignature(14, s), this.tsParseTypeMemberSemicolon(), this.finishNode(s, e);
}
tsIsUnambiguouslyIndexSignature() {
return this.next(), w(this.state.type) ? (this.next(), this.match(14)) : false;
}
tsTryParseIndexSignature(e) {
if (!(this.match(0) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))
return;
this.expect(0);
let s = this.parseIdentifier();
s.typeAnnotation = this.tsParseTypeAnnotation(), this.resetEndLocation(s), this.expect(3), e.parameters = [s];
let i = this.tsTryParseTypeAnnotation();
return i && (e.typeAnnotation = i), this.tsParseTypeMemberSemicolon(), this.finishNode(e, "TSIndexSignature");
}
tsParsePropertyOrMethodSignature(e, s) {
if (this.eat(17) && (e.optional = true), this.match(10) || this.match(47)) {
s && this.raise(y.ReadonlyForMethodSignature, e);
let i = e;
i.kind && this.match(47) && this.raise(y.AccessorCannotHaveTypeParameters, this.state.curPosition()), this.tsFillSignature(14, i), this.tsParseTypeMemberSemicolon();
let r = "params", n = "returnType";
if (i.kind === "get")
i[r].length > 0 && (this.raise(p.BadGetterArity, this.state.curPosition()), this.isThisParam(i[r][0]) && this.raise(y.AccessorCannotDeclareThisParameter, this.state.curPosition()));
else if (i.kind === "set") {
if (i[r].length !== 1)
this.raise(p.BadSetterArity, this.state.curPosition());
else {
let o = i[r][0];
this.isThisParam(o) && this.raise(y.AccessorCannotDeclareThisParameter, this.state.curPosition()), o.type === "Identifier" && o.optional && this.raise(y.SetAccessorCannotHaveOptionalParameter, this.state.curPosition()), o.type === "RestElement" && this.raise(y.SetAccessorCannotHaveRestParameter, this.state.curPosition());
}
i[n] && this.raise(y.SetAccessorCannotHaveReturnType, i[n]);
} else
i.kind = "method";
return this.finishNode(i, "TSMethodSignature");
} else {
let i = e;
s && (i.readonly = true);
let r = this.tsTryParseTypeAnnotation();
return r && (i.typeAnnotation = r), this.tsParseTypeMemberSemicolon(), this.finishNode(i, "TSPropertySignature");
}
}
tsParseTypeMember() {
let e = this.startNode();
if (this.match(10) || this.match(47))
return this.tsParseSignatureMember("TSCallSignatureDeclaration", e);
if (this.match(77)) {
let i = this.startNode();
return this.next(), this.match(10) || this.match(47) ? this.tsParseSignatureMember("TSConstructSignatureDeclaration", e) : (e.key = this.createIdentifier(i, "new"), this.tsParsePropertyOrMethodSignature(e, false));
}
this.tsParseModifiers({ allowedModifiers: ["readonly"], disallowedModifiers: ["declare", "abstract", "private", "protected", "public", "static", "override"] }, e);
let s = this.tsTryParseIndexSignature(e);
return s || (super.parsePropertyName(e), !e.computed && e.key.type === "Identifier" && (e.key.name === "get" || e.key.name === "set") && this.tsTokenCanFollowModifier() && (e.kind = e.key.name, super.parsePropertyName(e), !this.match(10) && !this.match(47) && this.unexpected(null, 10)), this.tsParsePropertyOrMethodSignature(e, !!e.readonly));
}
tsParseTypeLiteral() {
let e = this.startNode();
return e.members = this.tsParseObjectTypeMembers(), this.finishNode(e, "TSTypeLiteral");
}
tsParseObjectTypeMembers() {
this.expect(5);
let e = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this));
return this.expect(8), e;
}
tsIsStartOfMappedType() {
return this.next(), this.eat(53) ? this.isContextual(122) : (this.isContextual(122) && this.next(), !this.match(0) || (this.next(), !this.tsIsIdentifier()) ? false : (this.next(), this.match(58)));
}
tsParseMappedType() {
let e = this.startNode();
return this.expect(5), this.match(53) ? (e.readonly = this.state.value, this.next(), this.expectContextual(122)) : this.eatContextual(122) && (e.readonly = true), this.expect(0), e.key = this.tsParseTypeParameterName(), e.constraint = this.tsExpectThenParseType(58), e.nameType = this.eatContextual(93) ? this.tsParseType() : null, this.expect(3), this.match(53) ? (e.optional = this.state.value, this.next(), this.expect(17)) : this.eat(17) && (e.optional = true), e.typeAnnotation = this.tsTryParseType(), this.semicolon(), this.expect(8), this.finishNode(e, "TSMappedType");
}
tsParseTupleType() {
let e = this.startNode();
e.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseTupleElementType.bind(this), true, false);
let s = false;
return e.elementTypes.forEach((i) => {
let { type: r } = i;
s && r !== "TSRestType" && r !== "TSOptionalType" && !(r === "TSNamedTupleMember" && i.optional) && this.raise(y.OptionalTypeBeforeRequired, i), s || (s = r === "TSNamedTupleMember" && i.optional || r === "TSOptionalType");
}), this.finishNode(e, "TSTupleType");
}
tsParseTupleElementType() {
let e = this.state.startLoc, s = this.eat(21), { startLoc: i } = this.state, r, n, o, h, u = O(this.state.type) ? this.lookaheadCharCode() : null;
if (u === 58)
r = true, o = false, n = this.parseIdentifier(true), this.expect(14), h = this.tsParseType();
else if (u === 63) {
o = true;
let f = this.state.value, d = this.tsParseNonArrayType();
this.lookaheadCharCode() === 58 ? (r = true, n = this.createIdentifier(this.startNodeAt(i), f), this.expect(17), this.expect(14), h = this.tsParseType()) : (r = false, h = d, this.expect(17));
} else
h = this.tsParseType(), o = this.eat(17), r = this.eat(14);
if (r) {
let f;
n ? (f = this.startNodeAt(i), f.optional = o, f.label = n, f.elementType = h, this.eat(17) && (f.optional = true, this.raise(y.TupleOptionalAfterType, this.state.lastTokStartLoc))) : (f = this.startNodeAt(i), f.optional = o, this.raise(y.InvalidTupleMemberLabel, h), f.label = h, f.elementType = this.tsParseType()), h = this.finishNode(f, "TSNamedTupleMember");
} else if (o) {
let f = this.startNodeAt(i);
f.typeAnnotation = h, h = this.finishNode(f, "TSOptionalType");
}
if (s) {
let f = this.startNodeAt(e);
f.typeAnnotation = h, h = this.finishNode(f, "TSRestType");
}
return h;
}
tsParseParenthesizedType() {
let e = this.startNode();
return this.expect(10), e.typeAnnotation = this.tsParseType(), this.expect(11), this.finishNode(e, "TSParenthesizedType");
}
tsParseFunctionOrConstructorType(e, s) {
let i = this.startNode();
return e === "TSConstructorType" && (i.abstract = !!s, s && this.next(), this.next()), this.tsInAllowConditionalTypesContext(() => this.tsFillSignature(19, i)), this.finishNode(i, e);
}
tsParseLiteralTypeNode() {
let e = this.startNode();
switch (this.state.type) {
case 135:
case 136:
case 134:
case 85:
case 86:
e.literal = super.parseExprAtom();
break;
default:
this.unexpected();
}
return this.finishNode(e, "TSLiteralType");
}
tsParseTemplateLiteralType() {
{
let e = this.state.startLoc, s = this.parseTemplateElement(false), i = [s];
if (s.tail) {
let r = this.startNodeAt(e), n = this.startNodeAt(e);
return n.expressions = [], n.quasis = i, r.literal = this.finishNode(n, "TemplateLiteral"), this.finishNode(r, "TSLiteralType");
} else {
let r = [];
for (;!s.tail; )
r.push(this.tsParseType()), this.readTemplateContinuation(), i.push(s = this.parseTemplateElement(false));
let n = this.startNodeAt(e);
return n.types = r, n.quasis = i, this.finishNode(n, "TSTemplateLiteralType");
}
}
}
parseTemplateSubstitution() {
return this.state.inType ? this.tsParseType() : super.parseTemplateSubstitution();
}
tsParseThisTypeOrThisTypePredicate() {
let e = this.tsParseThisTypeNode();
return this.isContextual(116) && !this.hasPrecedingLineBreak() ? this.tsParseThisTypePredicate(e) : e;
}
tsParseNonArrayType() {
switch (this.state.type) {
case 134:
case 135:
case 136:
case 85:
case 86:
return this.tsParseLiteralTypeNode();
case 53:
if (this.state.value === "-") {
let e = this.startNode(), s = this.lookahead();
return s.type !== 135 && s.type !== 136 && this.unexpected(), e.literal = this.parseMaybeUnary(), this.finishNode(e, "TSLiteralType");
}
break;
case 78:
return this.tsParseThisTypeOrThisTypePredicate();
case 87:
return this.tsParseTypeQuery();
case 83:
return this.tsParseImportType();
case 5:
return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this)) ? this.tsParseMappedType() : this.tsParseTypeLiteral();
case 0:
return this.tsParseTupleType();
case 10:
if (!(this.optionFlags & 1024)) {
let e = this.state.startLoc;
this.next();
let s = this.tsParseType();
return this.expect(11), this.addExtra(s, "parenthesized", true), this.addExtra(s, "parenStart", e.index), s;
}
return this.tsParseParenthesizedType();
case 25:
case 24:
return this.tsParseTemplateLiteralType();
default: {
let { type: e } = this.state;
if (w(e) || e === 88 || e === 84) {
let s = e === 88 ? "TSVoidKeyword" : e === 84 ? "TSNullKeyword" : Hi(this.state.value);
if (s !== undefined && this.lookaheadCharCode() !== 46) {
let i = this.startNode();
return this.next(), this.finishNode(i, s);
}
return this.tsParseTypeReference();
}
}
}
throw this.unexpected();
}
tsParseArrayTypeOrHigher() {
let { startLoc: e } = this.state, s = this.tsParseNonArrayType();
for (;!this.hasPrecedingLineBreak() && this.eat(0); )
if (this.match(3)) {
let i = this.startNodeAt(e);
i.elementType = s, this.expect(3), s = this.finishNode(i, "TSArrayType");
} else {
let i = this.startNodeAt(e);
i.objectType = s, i.indexType = this.tsParseType(), this.expect(3), s = this.finishNode(i, "TSIndexedAccessType");
}
return s;
}
tsParseTypeOperator() {
let e = this.startNode(), s = this.state.value;
return this.next(), e.operator = s, e.typeAnnotation = this.tsParseTypeOperatorOrHigher(), s === "readonly" && this.tsCheckTypeAnnotationForReadOnly(e), this.finishNode(e, "TSTypeOperator");
}
tsCheckTypeAnnotationForReadOnly(e) {
switch (e.typeAnnotation.type) {
case "TSTupleType":
case "TSArrayType":
return;
default:
this.raise(y.UnexpectedReadonly, e);
}
}
tsParseInferType() {
let e = this.startNode();
this.expectContextual(115);
let s = this.startNode();
return s.name = this.tsParseTypeParameterName(), s.constraint = this.tsTryParse(() => this.tsParseConstraintForInferType()), e.typeParameter = this.finishNode(s, "TSTypeParameter"), this.finishNode(e, "TSInferType");
}
tsParseConstraintForInferType() {
if (this.eat(81)) {
let e = this.tsInDisallowConditionalTypesContext(() => this.tsParseType());
if (this.state.inDisallowConditionalTypesContext || !this.match(17))
return e;
}
}
tsParseTypeOperatorOrHigher() {
return mi(this.state.type) && !this.state.containsEsc ? this.tsParseTypeOperator() : this.isContextual(115) ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher());
}
tsParseUnionOrIntersectionType(e, s, i) {
let r = this.startNode(), n = this.eat(i), o = [];
do
o.push(s());
while (this.eat(i));
return o.length === 1 && !n ? o[0] : (r.types = o, this.finishNode(r, e));
}
tsParseIntersectionTypeOrHigher() {
return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), 45);
}
tsParseUnionTypeOrHigher() {
return this.tsParseUnionOrIntersectionType("TSUnionType", this.tsParseIntersectionTypeOrHigher.bind(this), 43);
}
tsIsStartOfFunctionType() {
return this.match(47) ? true : this.match(10) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this));
}
tsSkipParameterStart() {
if (w(this.state.type) || this.match(78))
return this.next(), true;
if (this.match(5)) {
let { errors: e } = this.state, s = e.length;
try {
return this.parseObjectLike(8, true), e.length === s;
} catch {
return false;
}
}
if (this.match(0)) {
this.next();
let { errors: e } = this.state, s = e.length;
try {
return super.parseBindingList(3, 93, 1), e.length === s;
} catch {
return false;
}
}
return false;
}
tsIsUnambiguouslyStartOfFunctionType() {
return this.next(), !!(this.match(11) || this.match(21) || this.tsSkipParameterStart() && (this.match(14) || this.match(12) || this.match(17) || this.match(29) || this.match(11) && (this.next(), this.match(19))));
}
tsParseTypeOrTypePredicateAnnotation(e) {
return this.tsInType(() => {
let s = this.startNode();
this.expect(e);
let i = this.startNode(), r = !!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));
if (r && this.match(78)) {
let h = this.tsParseThisTypeOrThisTypePredicate();
return h.type === "TSThisType" ? (i.parameterName = h, i.asserts = true, i.typeAnnotation = null, h = this.finishNode(i, "TSTypePredicate")) : (this.resetStartLocationFromNode(h, i), h.asserts = true), s.typeAnnotation = h, this.finishNode(s, "TSTypeAnnotation");
}
let n = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));
if (!n)
return r ? (i.parameterName = this.parseIdentifier(), i.asserts = r, i.typeAnnotation = null, s.typeAnnotation = this.finishNode(i, "TSTypePredicate"), this.finishNode(s, "TSTypeAnnotation")) : this.tsParseTypeAnnotation(false, s);
let o = this.tsParseTypeAnnotation(false);
return i.parameterName = n, i.typeAnnotation = o, i.asserts = r, s.typeAnnotation = this.finishNode(i, "TSTypePredicate"), this.finishNode(s, "TSTypeAnnotation");
});
}
tsTryParseTypeOrTypePredicateAnnotation() {
if (this.match(14))
return this.tsParseTypeOrTypePredicateAnnotation(14);
}
tsTryParseTypeAnnotation() {
if (this.match(14))
return this.tsParseTypeAnnotation();
}
tsTryParseType() {
return this.tsEatThenParseType(14);
}
tsParseTypePredicatePrefix() {
let e = this.parseIdentifier();
if (this.isContextual(116) && !this.hasPrecedingLineBreak())
return this.next(), e;
}
tsParseTypePredicateAsserts() {
if (this.state.type !== 109)
return false;
let e = this.state.containsEsc;
return this.next(), !w(this.state.type) && !this.match(78) ? false : (e && this.raise(p.InvalidEscapedReservedWord, this.state.lastTokStartLoc, { reservedWord: "asserts" }), true);
}
tsParseTypeAnnotation(e = true, s = this.startNode()) {
return this.tsInType(() => {
e && this.expect(14), s.typeAnnotation = this.tsParseType();
}), this.finishNode(s, "TSTypeAnnotation");
}
tsParseType() {
zt(this.state.inType);
let e = this.tsParseNonConditionalType();
if (this.state.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(81))
return e;
let s = this.startNodeAtNode(e);
return s.checkType = e, s.extendsType = this.tsInDisallowConditionalTypesContext(() => this.tsParseNonConditionalType()), this.expect(17), s.trueType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()), this.expect(14), s.falseType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()), this.finishNode(s, "TSConditionalType");
}
isAbstractConstructorSignature() {
return this.isContextual(124) && this.isLookaheadContextual("new");
}
tsParseNonConditionalType() {
return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(77) ? this.tsParseFunctionOrConstructorType("TSConstructorType") : this.isAbstractConstructorSignature() ? this.tsParseFunctionOrConstructorType("TSConstructorType", true) : this.tsParseUnionTypeOrHigher();
}
tsParseTypeAssertion() {
this.getPluginOption("typescript", "disallowAmbiguousJSXLike") && this.raise(y.ReservedTypeAssertion, this.state.startLoc);
let e = this.startNode();
return e.typeAnnotation = this.tsInType(() => (this.next(), this.match(75) ? this.tsParseTypeReference() : this.tsParseType())), this.expect(48), e.expression = this.parseMaybeUnary(), this.finishNode(e, "TSTypeAssertion");
}
tsParseHeritageClause(e) {
let s = this.state.startLoc, i = this.tsParseDelimitedList("HeritageClauseElement", () => {
{
let r = super.parseExprSubscripts();
lt(r) || this.raise(y.InvalidHeritageClauseType, r.loc.start, { token: e });
let n = e === "extends" ? "TSInterfaceHeritage" : "TSClassImplements";
if (r.type === "TSInstantiationExpression")
return r.type = n, r;
let o = this.startNodeAtNode(r);
return o.expression = r, (this.match(47) || this.match(51)) && (o.typeArguments = this.tsParseTypeArgumentsInExpression()), this.finishNode(o, n);
}
});
return i.length || this.raise(y.EmptyHeritageClauseType, s, { token: e }), i;
}
tsParseInterfaceDeclaration(e, s = {}) {
if (this.hasFollowingLineBreak())
return null;
this.expectContextual(129), s.declare && (e.declare = true), w(this.state.type) ? (e.id = this.parseIdentifier(), this.checkIdentifier(e.id, 130)) : (e.id = null, this.raise(y.MissingInterfaceName, this.state.startLoc)), e.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers), this.eat(81) && (e.extends = this.tsParseHeritageClause("extends"));
let i = this.startNode();
return i.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), e.body = this.finishNode(i, "TSInterfaceBody"), this.finishNode(e, "TSInterfaceDeclaration");
}
tsParseTypeAliasDeclaration(e) {
return e.id = this.parseIdentifier(), this.checkIdentifier(e.id, 2), e.typeAnnotation = this.tsInType(() => {
if (e.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers), this.expect(29), this.isContextual(114) && this.lookaheadCharCode() !== 46) {
let s = this.startNode();
return this.next(), this.finishNode(s, "TSIntrinsicKeyword");
}
return this.tsParseType();
}), this.semicolon(), this.finishNode(e, "TSTypeAliasDeclaration");
}
tsInTopLevelContext(e) {
if (this.curContext() !== E.brace) {
let s = this.state.context;
this.state.context = [s[0]];
try {
return e();
} finally {
this.state.context = s;
}
} else
return e();
}
tsInType(e) {
let s = this.state.inType;
this.state.inType = true;
try {
return e();
} finally {
this.state.inType = s;
}
}
tsInDisallowConditionalTypesContext(e) {
let s = this.state.inDisallowConditionalTypesContext;
this.state.inDisallowConditionalTypesContext = true;
try {
return e();
} finally {
this.state.inDisallowConditionalTypesContext = s;
}
}
tsInAllowConditionalTypesContext(e) {
let s = this.state.inDisallowConditionalTypesContext;
this.state.inDisallowConditionalTypesContext = false;
try {
return e();
} finally {
this.state.inDisallowConditionalTypesContext = s;
}
}
tsEatThenParseType(e) {
if (this.match(e))
return this.tsNextThenParseType();
}
tsExpectThenParseType(e) {
return this.tsInType(() => (this.expect(e), this.tsParseType()));
}
tsNextThenParseType() {
return this.tsInType(() => (this.next(), this.tsParseType()));
}
tsParseEnumMember() {
let e = this.startNode();
return e.id = this.match(134) ? super.parseStringLiteral(this.state.value) : this.parseIdentifier(true), this.eat(29) && (e.initializer = super.parseMaybeAssignAllowIn()), this.finishNode(e, "TSEnumMember");
}
tsParseEnumDeclaration(e, s = {}) {
return s.const && (e.const = true), s.declare && (e.declare = true), this.expectContextual(126), e.id = this.parseIdentifier(), this.checkIdentifier(e.id, e.const ? 8971 : 8459), e.body = this.tsParseEnumBody(), this.finishNode(e, "TSEnumDeclaration");
}
tsParseEnumBody() {
let e = this.startNode();
return this.expect(5), e.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)), this.expect(8), this.finishNode(e, "TSEnumBody");
}
tsParseModuleBlock() {
let e = this.startNode();
return this.scope.enter(0), this.expect(5), super.parseBlockOrModuleBlockBody(e.body = [], undefined, true, 8), this.scope.exit(), this.finishNode(e, "TSModuleBlock");
}
tsParseModuleOrNamespaceDeclaration(e, s = false) {
return e.id = this.tsParseEntityName(1), e.id.type === "Identifier" && this.checkIdentifier(e.id, 1024), this.scope.enter(1024), this.prodParam.enter(0), e.body = this.tsParseModuleBlock(), this.prodParam.exit(), this.scope.exit(), this.finishNode(e, "TSModuleDeclaration");
}
tsParseAmbientExternalModuleDeclaration(e) {
return this.isContextual(112) ? (e.kind = "global", e.id = this.parseIdentifier()) : this.match(134) ? (e.kind = "module", e.id = super.parseStringLiteral(this.state.value)) : this.unexpected(), this.match(5) ? (this.scope.enter(1024), this.prodParam.enter(0), e.body = this.tsParseModuleBlock(), this.prodParam.exit(), this.scope.exit()) : this.semicolon(), this.finishNode(e, "TSModuleDeclaration");
}
tsParseImportEqualsDeclaration(e, s, i) {
e.id = s || this.parseIdentifier(), this.checkIdentifier(e.id, 4096), this.expect(29);
let r = this.tsParseModuleReference();
return e.importKind === "type" && r.type !== "TSExternalModuleReference" && this.raise(y.ImportAliasHasImportType, r), e.moduleReference = r, this.semicolon(), this.finishNode(e, "TSImportEqualsDeclaration");
}
tsIsExternalModuleReference() {
return this.isContextual(119) && this.lookaheadCharCode() === 40;
}
tsParseModuleReference() {
return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(0);
}
tsParseExternalModuleReference() {
let e = this.startNode();
return this.expectContextual(119), this.expect(10), this.match(134) || this.unexpected(), e.expression = super.parseExprAtom(), this.expect(11), this.sawUnambiguousESM = true, this.finishNode(e, "TSExternalModuleReference");
}
tsLookAhead(e) {
let s = this.state.clone(), i = e();
return this.state = s, i;
}
tsTryParseAndCatch(e) {
let s = this.tryParse((i) => e() || i());
if (!(s.aborted || !s.node))
return s.error && (this.state = s.failState), s.node;
}
tsTryParse(e) {
let s = this.state.clone(), i = e();
if (i !== undefined && i !== false)
return i;
this.state = s;
}
tsTryParseDeclare(e) {
if (this.isLineTerminator())
return;
let s = this.state.type;
return this.tsInAmbientContext(() => {
switch (s) {
case 68:
return e.declare = true, super.parseFunctionStatement(e, false, false);
case 80:
return e.declare = true, this.parseClass(e, true, false);
case 126:
return this.tsParseEnumDeclaration(e, { declare: true });
case 112:
return this.tsParseAmbientExternalModuleDeclaration(e);
case 100:
if (this.state.containsEsc)
return;
case 75:
case 74:
return !this.match(75) || !this.isLookaheadContextual("enum") ? (e.declare = true, this.parseVarStatement(e, this.state.value, true)) : (this.expect(75), this.tsParseEnumDeclaration(e, { const: true, declare: true }));
case 107:
if (this.isUsing())
return this.raise(y.InvalidModifierOnUsingDeclaration, this.state.startLoc, "declare"), e.declare = true, this.parseVarStatement(e, "using", true);
break;
case 96:
if (this.isAwaitUsing())
return this.raise(y.InvalidModifierOnAwaitUsingDeclaration, this.state.startLoc, "declare"), e.declare = true, this.next(), this.parseVarStatement(e, "await using", true);
break;
case 129: {
let i = this.tsParseInterfaceDeclaration(e, { declare: true });
if (i)
return i;
}
default:
if (w(s))
return this.tsParseDeclaration(e, this.state.type, true, null);
}
});
}
tsTryParseExportDeclaration() {
return this.tsParseDeclaration(this.startNode(), this.state.type, true, null);
}
tsParseDeclaration(e, s, i, r) {
switch (s) {
case 124:
if (this.tsCheckLineTerminator(i) && (this.match(80) || w(this.state.type)))
return this.tsParseAbstractDeclaration(e, r);
break;
case 127:
if (this.tsCheckLineTerminator(i)) {
if (this.match(134))
return this.tsParseAmbientExternalModuleDeclaration(e);
if (w(this.state.type))
return e.kind = "module", this.tsParseModuleOrNamespaceDeclaration(e);
}
break;
case 128:
if (this.tsCheckLineTerminator(i) && w(this.state.type))
return e.kind = "namespace", this.tsParseModuleOrNamespaceDeclaration(e);
break;
case 130:
if (this.tsCheckLineTerminator(i) && w(this.state.type))
return this.tsParseTypeAliasDeclaration(e);
break;
}
}
tsCheckLineTerminator(e) {
return e ? this.hasFollowingLineBreak() ? false : (this.next(), true) : !this.isLineTerminator();
}
tsTryParseGenericAsyncArrowFunction(e) {
if (!this.match(47))
return;
let s = this.state.maybeInArrowParameters;
this.state.maybeInArrowParameters = true;
let i = this.tsTryParseAndCatch(() => {
let r = this.startNodeAt(e);
return r.typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier), super.parseFunctionParams(r), r.returnType = this.tsTryParseTypeOrTypePredicateAnnotation(), this.expect(19), r;
});
if (this.state.maybeInArrowParameters = s, !!i)
return super.parseArrowExpression(i, null, true);
}
tsParseTypeArgumentsInExpression() {
if (this.reScan_lt() === 47)
return this.tsParseTypeArguments();
}
tsParseTypeArguments() {
let e = this.startNode();
return e.params = this.tsInType(() => this.tsInTopLevelContext(() => (this.expect(47), this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this))))), e.params.length === 0 ? this.raise(y.EmptyTypeArguments, e) : !this.state.inType && this.curContext() === E.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(e, "TSTypeParameterInstantiation");
}
tsIsDeclarationStart() {
return yi(this.state.type);
}
isExportDefaultSpecifier() {
return this.tsIsDeclarationStart() ? false : super.isExportDefaultSpecifier();
}
parseBindingElement(e, s) {
let i = s.length ? s[0].loc.start : this.state.startLoc, r = {};
this.tsParseModifiers({ allowedModifiers: ["public", "private", "protected", "override", "readonly"] }, r);
let { accessibility: n, override: o, readonly: h } = r;
!(e & 4) && (n || h || o) && this.raise(y.UnexpectedParameterModifier, i);
let l = this.parseMaybeDefault();
e & 2 && this.parseFunctionParamType(l);
let u = this.parseMaybeDefault(l.loc.start, l);
if (n || h || o) {
let f = this.startNodeAt(i);
return s.length && (f.decorators = s), n && (f.accessibility = n), h && (f.readonly = h), o && (f.override = o), u.type !== "Identifier" && u.type !== "AssignmentPattern" && this.raise(y.UnsupportedParameterPropertyKind, f), f.parameter = u, this.finishNode(f, "TSParameterProperty");
}
return s.length && (l.decorators = s), u;
}
isSimpleParameter(e) {
return e.type === "TSParameterProperty" && super.isSimpleParameter(e.parameter) || super.isSimpleParameter(e);
}
tsDisallowOptionalPattern(e) {
for (let s of e.params)
s.type !== "Identifier" && s.optional && !this.state.isAmbientContext && this.raise(y.PatternIsOptional, s);
}
setArrowFunctionParameters(e, s, i) {
super.setArrowFunctionParameters(e, s, i), this.tsDisallowOptionalPattern(e);
}
parseFunctionBodyAndFinish(e, s, i = false) {
this.match(14) && (e.returnType = this.tsParseTypeOrTypePredicateAnnotation(14));
let r = s === "FunctionDeclaration" ? "TSDeclareFunction" : s === "ClassMethod" || s === "ClassPrivateMethod" ? "TSDeclareMethod" : undefined;
return r && !this.match(5) && this.isLineTerminator() ? this.finishNode(e, r) : r === "TSDeclareFunction" && this.state.isAmbientContext && (this.raise(y.DeclareFunctionHasImplementation, e), e.declare) ? super.parseFunctionBodyAndFinish(e, r, i) : (this.tsDisallowOptionalPattern(e), super.parseFunctionBodyAndFinish(e, s, i));
}
registerFunctionStatementId(e) {
!e.body && e.id ? this.checkIdentifier(e.id, 1024) : super.registerFunctionStatementId(e);
}
tsCheckForInvalidTypeCasts(e) {
e.forEach((s) => {
s?.type === "TSTypeCastExpression" && this.raise(y.UnexpectedTypeAnnotation, s.typeAnnotation);
});
}
toReferencedList(e, s) {
return this.tsCheckForInvalidTypeCasts(e), e;
}
parseArrayLike(e, s, i) {
let r = super.parseArrayLike(e, s, i);
return r.type === "ArrayExpression" && this.tsCheckForInvalidTypeCasts(r.elements), r;
}
parseSubscript(e, s, i, r) {
if (!this.hasPrecedingLineBreak() && this.match(35)) {
this.state.canStartJSXElement = false, this.next();
let o = this.startNodeAt(s);
return o.expression = e, this.finishNode(o, "TSNonNullExpression");
}
let n = false;
if (this.match(18) && this.lookaheadCharCode() === 60) {
if (i)
return r.stop = true, e;
r.optionalChainMember = n = true, this.next();
}
if (this.match(47) || this.match(51)) {
let o, h = this.tsTryParseAndCatch(() => {
if (!i && this.atPossibleAsyncArrow(e)) {
let d = this.tsTryParseGenericAsyncArrowFunction(s);
if (d)
return r.stop = true, d;
}
let l = this.tsParseTypeArgumentsInExpression();
if (!l)
return;
if (n && !this.match(10)) {
o = this.state.curPosition();
return;
}
if ($e(this.state.type)) {
let d = super.parseTaggedTemplateExpression(e, s, r);
return d.typeArguments = l, d;
}
if (!i && this.eat(10)) {
let d = this.startNodeAt(s);
return d.callee = e, d.arguments = this.parseCallExpressionArguments(), this.tsCheckForInvalidTypeCasts(d.arguments), d.typeArguments = l, r.optionalChainMember && (d.optional = n), this.finishCallExpression(d, r.optionalChainMember);
}
let u = this.state.type;
if (u === 48 || u === 52 || u !== 10 && ce(u) && !this.hasPrecedingLineBreak())
return;
let f = this.startNodeAt(s);
return f.expression = e, f.typeArguments = l, this.finishNode(f, "TSInstantiationExpression");
});
if (o && this.unexpected(o, 10), h)
return h.type === "TSInstantiationExpression" && ((this.match(16) || this.match(18) && this.lookaheadCharCode() !== 40) && this.raise(y.InvalidPropertyAccessAfterInstantiationExpression, this.state.startLoc), !this.match(16) && !this.match(18) && (h.expression = super.stopParseSubscript(e, r))), h;
}
return super.parseSubscript(e, s, i, r);
}
parseNewCallee(e) {
super.parseNewCallee(e);
let { callee: s } = e;
s.type === "TSInstantiationExpression" && !s.extra?.parenthesized && (e.typeArguments = s.typeArguments, e.callee = s.expression);
}
parseExprOp(e, s, i) {
let r;
if (Ae(58) > i && !this.hasPrecedingLineBreak() && (this.isContextual(93) || (r = this.isContextual(120)))) {
let n = this.startNodeAt(s);
return n.expression = e, n.typeAnnotation = this.tsInType(() => (this.next(), this.match(75) ? (r && this.raise(p.UnexpectedKeyword, this.state.startLoc, { keyword: "const" }), this.tsParseTypeReference()) : this.tsParseType())), this.finishNode(n, r ? "TSSatisfiesExpression" : "TSAsExpression"), this.reScan_lt_gt(), this.parseExprOp(n, s, i);
}
return super.parseExprOp(e, s, i);
}
checkReservedWord(e, s, i, r) {
this.state.isAmbientContext || super.checkReservedWord(e, s, i, r);
}
checkImportReflection(e) {
super.checkImportReflection(e), e.module && e.importKind !== "value" && this.raise(y.ImportReflectionHasImportType, e.specifiers[0].loc.start);
}
checkDuplicateExports() {}
isPotentialImportPhase(e) {
if (super.isPotentialImportPhase(e))
return true;
if (this.isContextual(130)) {
let s = this.lookaheadCharCode();
return e ? s === 123 || s === 42 : s !== 61;
}
return !e && this.isContextual(87);
}
applyImportPhase(e, s, i, r) {
super.applyImportPhase(e, s, i, r), s ? e.exportKind = i === "type" ? "type" : "value" : e.importKind = i === "type" || i === "typeof" ? i : "value";
}
parseImport(e) {
if (this.match(134))
return e.importKind = "value", super.parseImport(e);
let s;
if (w(this.state.type) && this.lookaheadCharCode() === 61)
return e.importKind = "value", this.tsParseImportEqualsDeclaration(e);
if (this.isContextual(130)) {
let i = this.parseMaybeImportPhase(e, false);
if (this.lookaheadCharCode() === 61)
return this.tsParseImportEqualsDeclaration(e, i);
s = super.parseImportSpecifiersAndAfter(e, i);
} else
s = super.parseImport(e);
return s.importKind === "type" && s.specifiers.length > 1 && s.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(y.TypeImportCannotSpecifyDefaultAndNamed, s), s;
}
parseExport(e, s) {
if (this.match(83)) {
let i = this.startNode();
this.next();
let r = null;
this.isContextual(130) && this.isPotentialImportPhase(false) ? r = this.parseMaybeImportPhase(i, false) : i.importKind = "value";
let n = this.tsParseImportEqualsDeclaration(i, r, true);
return e.attributes = [], e.declaration = n, e.exportKind = "value", e.source = null, e.specifiers = [], this.finishNode(e, "ExportNamedDeclaration");
} else if (this.eat(29)) {
let i = e;
return i.expression = super.parseExpression(), this.semicolon(), this.sawUnambiguousESM = true, this.finishNode(i, "TSExportAssignment");
} else if (this.eatContextual(93)) {
let i = e;
return this.expectContextual(128), i.id = this.parseIdentifier(), this.semicolon(), this.finishNode(i, "TSNamespaceExportDeclaration");
} else
return super.parseExport(e, s);
}
isAbstractClass() {
return this.isContextual(124) && this.isLookaheadContextual("class");
}
parseExportDefaultExpression() {
if (this.isAbstractClass()) {
let e = this.startNode();
return this.next(), e.abstract = true, this.parseClass(e, true, true);
}
if (this.match(129)) {
let e = this.tsParseInterfaceDeclaration(this.startNode());
if (e)
return e;
}
return super.parseExportDefaultExpression();
}
parseVarStatement(e, s, i = false) {
let { isAmbientContext: r } = this.state, n = super.parseVarStatement(e, s, i || r);
if (!r)
return n;
if (!e.declare && (s === "using" || s === "await using"))
return this.raiseOverwrite(y.UsingDeclarationInAmbientContext, e, s), n;
for (let { id: o, init: h } of n.declarations)
h && (s === "var" || s === "let" || o.typeAnnotation ? this.raise(y.InitializerNotAllowedInAmbientContext, h) : Xi(h, this.hasPlugin("estree")) || this.raise(y.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, h));
return n;
}
parseStatementContent(e, s) {
if (!this.state.containsEsc)
switch (this.state.type) {
case 75: {
if (this.isLookaheadContextual("enum")) {
let i = this.startNode();
return this.expect(75), this.tsParseEnumDeclaration(i, { const: true });
}
break;
}
case 124:
case 125: {
if (this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()) {
let i = this.state.type, r = this.startNode();
this.next();
let n = i === 125 ? this.tsTryParseDeclare(r) : this.tsParseAbstractDeclaration(r, s);
return n ? (i === 125 && (n.declare = true), n) : (r.expression = this.createIdentifier(this.startNodeAt(r.loc.start), i === 125 ? "declare" : "abstract"), this.semicolon(false), this.finishNode(r, "ExpressionStatement"));
}
break;
}
case 126:
return this.tsParseEnumDeclaration(this.startNode());
case 112: {
if (this.lookaheadCharCode() === 123) {
let r = this.startNode();
return this.tsParseAmbientExternalModuleDeclaration(r);
}
break;
}
case 129: {
let i = this.tsParseInterfaceDeclaration(this.startNode());
if (i)
return i;
break;
}
case 127: {
if (this.nextTokenIsIdentifierOrStringLiteralOnSameLine()) {
let i = this.startNode();
return this.next(), this.tsParseDeclaration(i, 127, false, s);
}
break;
}
case 128: {
if (this.nextTokenIsIdentifierOnSameLine()) {
let i = this.startNode();
return this.next(), this.tsParseDeclaration(i, 128, false, s);
}
break;
}
case 130: {
if (this.nextTokenIsIdentifierOnSameLine()) {
let i = this.startNode();
return this.next(), this.tsParseTypeAliasDeclaration(i);
}
break;
}
}
return super.parseStatementContent(e, s);
}
parseAccessModifier() {
return this.tsParseModifier(["public", "protected", "private"]);
}
tsHasSomeModifiers(e, s) {
return s.some((i) => qt(i) ? e.accessibility === i : !!e[i]);
}
tsIsStartOfStaticBlocks() {
return this.isContextual(106) && this.lookaheadCharCode() === 123;
}
parseClassMember(e, s, i) {
let r = ["declare", "private", "public", "protected", "override", "abstract", "readonly", "static"];
this.tsParseModifiers({ allowedModifiers: r, disallowedModifiers: ["in", "out"], stopOnStartOfClassStaticBlock: true, errorTemplate: y.InvalidModifierOnTypeParameterPositions }, s);
let n = () => {
this.tsIsStartOfStaticBlocks() ? (this.next(), this.next(), this.tsHasSomeModifiers(s, r) && this.raise(y.StaticBlockCannotHaveModifier, this.state.curPosition()), super.parseClassStaticBlock(e, s)) : this.parseClassMemberWithIsStatic(e, s, i, !!s.static);
};
s.declare ? this.tsInAmbientContext(n) : n();
}
parseClassMemberWithIsStatic(e, s, i, r) {
let n = this.tsTryParseIndexSignature(s);
if (n) {
e.body.push(n), s.abstract && this.raise(y.IndexSignatureHasAbstract, s), s.accessibility && this.raise(y.IndexSignatureHasAccessibility, s, { modifier: s.accessibility }), s.declare && this.raise(y.IndexSignatureHasDeclare, s), s.override && this.raise(y.IndexSignatureHasOverride, s);
return;
}
!this.state.inAbstractClass && s.abstract && this.raise(y.NonAbstractClassHasAbstractMethod, s), s.override && (i.hadSuperClass || this.raise(y.OverrideNotInSubClass, s)), super.parseClassMemberWithIsStatic(e, s, i, r);
}
parsePostMemberNameModifiers(e) {
this.eat(17) && (e.optional = true), e.readonly && this.match(10) && this.raise(y.ClassMethodHasReadonly, e), e.declare && this.match(10) && this.raise(y.ClassMethodHasDeclare, e);
}
shouldParseExportDeclaration() {
return this.tsIsDeclarationStart() ? true : super.shouldParseExportDeclaration();
}
parseConditional(e, s, i) {
if (!this.match(17))
return e;
if (this.state.maybeInArrowParameters) {
let r = this.lookaheadCharCode();
if (r === 44 || r === 61 || r === 58 || r === 41)
return this.setOptionalParametersError(i), e;
}
return super.parseConditional(e, s, i);
}
parseParenItem(e, s) {
let i = super.parseParenItem(e, s);
if (this.eat(17) && (i.optional = true, this.resetEndLocation(e)), this.match(14)) {
let r = this.startNodeAt(s);
return r.expression = e, r.typeAnnotation = this.tsParseTypeAnnotation(), this.finishNode(r, "TSTypeCastExpression");
}
return e;
}
parseExportDeclaration(e) {
if (!this.state.isAmbientContext && this.isContextual(125))
return this.tsInAmbientContext(() => this.parseExportDeclaration(e));
let s = this.state.startLoc, i = this.eatContextual(125);
if (i && (this.isContextual(125) || !this.shouldParseExportDeclaration()))
throw this.raise(y.ExpectedAmbientAfterExportDeclare, this.state.startLoc);
let n = w(this.state.type) && this.tsTryParseExportDeclaration() || super.parseExportDeclaration(e);
return n ? ((n.type === "TSInterfaceDeclaration" || n.type === "TSTypeAliasDeclaration" || i) && (e.exportKind = "type"), i && n.type !== "TSImportEqualsDeclaration" && (this.resetStartLocation(n, s), n.declare = true), n) : null;
}
parseClassId(e, s, i, r) {
if ((!s || i) && this.isContextual(113))
return;
super.parseClassId(e, s, i, e.declare ? 1024 : 8331);
let n = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);
n && (e.typeParameters = n);
}
parseClassPropertyAnnotation(e) {
e.optional || (this.eat(35) ? e.definite = true : this.eat(17) && (e.optional = true));
let s = this.tsTryParseTypeAnnotation();
s && (e.typeAnnotation = s);
}
parseClassProperty(e) {
if (this.parseClassPropertyAnnotation(e), this.state.isAmbientContext && !(e.readonly && !e.typeAnnotation) && this.match(29) && this.raise(y.DeclareClassFieldHasInitializer, this.state.startLoc), e.abstract && this.match(29)) {
let { key: s } = e;
this.raise(y.AbstractPropertyHasInitializer, this.state.startLoc, { propertyName: s.type === "Identifier" && !e.computed ? s.name : `[${this.input.slice(this.offsetToSourcePos(s.start), this.offsetToSourcePos(s.end))}]` });
}
return super.parseClassProperty(e);
}
parseClassPrivateProperty(e) {
return e.abstract && this.raise(y.PrivateElementHasAbstract, e), e.accessibility && this.raise(y.PrivateElementHasAccessibility, e, { modifier: e.accessibility }), this.parseClassPropertyAnnotation(e), super.parseClassPrivateProperty(e);
}
parseClassAccessorProperty(e) {
return this.parseClassPropertyAnnotation(e), e.optional && this.raise(y.AccessorCannotBeOptional, e), super.parseClassAccessorProperty(e);
}
pushClassMethod(e, s, i, r, n, o) {
let h = this.tsTryParseTypeParameters(this.tsParseConstModifier);
h && n && this.raise(y.ConstructorHasTypeParameters, h);
let { declare: l = false, kind: u } = s;
l && (u === "get" || u === "set") && this.raise(y.DeclareAccessor, s, { kind: u }), h && (s.typeParameters = h), super.pushClassMethod(e, s, i, r, n, o);
}
pushClassPrivateMethod(e, s, i, r) {
let n = this.tsTryParseTypeParameters(this.tsParseConstModifier);
n && (s.typeParameters = n), super.pushClassPrivateMethod(e, s, i, r);
}
declareClassPrivateMethodInScope(e, s) {
e.type !== "TSDeclareMethod" && (e.type === "MethodDefinition" && e.value.body == null || super.declareClassPrivateMethodInScope(e, s));
}
parseClassSuper(e) {
super.parseClassSuper(e), e.superClass && (this.match(47) || this.match(51)) && (e.superTypeArguments = this.tsParseTypeArgumentsInExpression()), this.eatContextual(113) && (e.implements = this.tsParseHeritageClause("implements"));
}
parseObjPropValue(e, s, i, r, n, o, h) {
let l = this.tsTryParseTypeParameters(this.tsParseConstModifier);
return l && (e.typeParameters = l), super.parseObjPropValue(e, s, i, r, n, o, h);
}
parseFunctionParams(e, s) {
let i = this.tsTryParseTypeParameters(this.tsParseConstModifier);
i && (e.typeParameters = i), super.parseFunctionParams(e, s);
}
parseVarId(e, s) {
super.parseVarId(e, s), e.id.type === "Identifier" && !this.hasPrecedingLineBreak() && this.eat(35) && (e.definite = true);
let i = this.tsTryParseTypeAnnotation();
i && (e.id.typeAnnotation = i, this.resetEndLocation(e.id));
}
parseAsyncArrowFromCallExpression(e, s) {
return this.match(14) && (e.returnType = this.tsParseTypeAnnotation()), super.parseAsyncArrowFromCallExpression(e, s);
}
parseMaybeAssign(e, s) {
let i, r, n;
if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
if (i = this.state.clone(), r = this.tryParse(() => super.parseMaybeAssign(e, s), i), !r.error)
return r.node;
let { context: l } = this.state, u = l[l.length - 1];
(u === E.j_oTag || u === E.j_expr) && l.pop();
}
if (!r?.error && !this.match(47))
return super.parseMaybeAssign(e, s);
(!i || i === this.state) && (i = this.state.clone());
let o, h = this.tryParse((l) => {
o = this.tsParseTypeParameters(this.tsParseConstModifier);
let u = super.parseMaybeAssign(e, s);
if ((u.type !== "ArrowFunctionExpression" || u.extra?.parenthesized) && l(), o?.params.length !== 0 && this.resetStartLocationFromNode(u, o), u.typeParameters = o, this.hasPlugin("jsx") && u.typeParameters.params.length === 1 && !u.typeParameters.extra?.trailingComma) {
let f = u.typeParameters.params[0];
f.constraint || this.raise(y.SingleTypeParameterWithoutTrailingComma, D(f.loc.end, 1), { typeParameterName: f.name.name });
}
return u;
}, i);
if (!h.error && !h.aborted)
return o && this.reportReservedArrowTypeParam(o), h.node;
if (!r && (zt(!this.hasPlugin("jsx")), n = this.tryParse(() => super.parseMaybeAssign(e, s), i), !n.error))
return n.node;
if (r?.node)
return this.state = r.failState, r.node;
if (h.node)
return this.state = h.failState, o && this.reportReservedArrowTypeParam(o), h.node;
if (n?.node)
return this.state = n.failState, n.node;
throw r?.error || h.error || n?.error;
}
reportReservedArrowTypeParam(e) {
e.params.length === 1 && !e.params[0].constraint && !e.extra?.trailingComma && this.getPluginOption("typescript", "disallowAmbiguousJSXLike") && this.raise(y.ReservedArrowTypeParam, e);
}
parseMaybeUnary(e, s) {
return !this.hasPlugin("jsx") && this.match(47) ? this.tsParseTypeAssertion() : super.parseMaybeUnary(e, s);
}
parseArrow(e) {
if (this.match(14)) {
let s = this.tryParse((i) => {
let r = this.tsParseTypeOrTypePredicateAnnotation(14);
return (this.canInsertSemicolon() || !this.match(19)) && i(), r;
});
if (s.aborted)
return;
s.thrown || (s.error && (this.state = s.failState), e.returnType = s.node);
}
return super.parseArrow(e);
}
parseFunctionParamType(e) {
this.eat(17) && (e.optional = true);
let s = this.tsTryParseTypeAnnotation();
return s && (e.typeAnnotation = s), this.resetEndLocation(e), e;
}
isAssignable(e, s) {
switch (e.type) {
case "TSTypeCastExpression":
return this.isAssignable(e.expression, s);
case "TSParameterProperty":
return true;
default:
return super.isAssignable(e, s);
}
}
toAssignable(e, s = false) {
switch (e.type) {
case "ParenthesizedExpression":
this.toAssignableParenthesizedExpression(e, s);
break;
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSNonNullExpression":
case "TSTypeAssertion":
s ? this.expressionScope.recordArrowParameterBindingError(y.UnexpectedTypeCastInParameter, e) : this.raise(y.UnexpectedTypeCastInParameter, e), this.toAssignable(e.expression, s);
break;
case "AssignmentExpression":
!s && e.left.type === "TSTypeCastExpression" && (e.left = this.typeCastToParameter(e.left));
default:
super.toAssignable(e, s);
}
}
toAssignableParenthesizedExpression(e, s) {
switch (e.expression.type) {
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSNonNullExpression":
case "TSTypeAssertion":
case "ParenthesizedExpression":
this.toAssignable(e.expression, s);
break;
default:
super.toAssignable(e, s);
}
}
checkToRestConversion(e, s) {
switch (e.type) {
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSTypeAssertion":
case "TSNonNullExpression":
this.checkToRestConversion(e.expression, false);
break;
default:
super.checkToRestConversion(e, s);
}
}
isValidLVal(e, s, i, r) {
switch (e) {
case "TSTypeCastExpression":
return true;
case "TSParameterProperty":
return "parameter";
case "TSNonNullExpression":
return "expression";
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSTypeAssertion":
return (r !== 64 || !i) && ["expression", true];
default:
return super.isValidLVal(e, s, i, r);
}
}
parseBindingAtom() {
return this.state.type === 78 ? this.parseIdentifier(true) : super.parseBindingAtom();
}
parseMaybeDecoratorArguments(e, s) {
if (this.match(47) || this.match(51)) {
let i = this.tsParseTypeArgumentsInExpression();
if (this.match(10)) {
let r = super.parseMaybeDecoratorArguments(e, s);
return r.typeArguments = i, r;
}
this.unexpected(null, 10);
}
return super.parseMaybeDecoratorArguments(e, s);
}
checkCommaAfterRest(e) {
return this.state.isAmbientContext && this.match(12) && this.lookaheadCharCode() === e ? (this.next(), false) : super.checkCommaAfterRest(e);
}
isClassMethod() {
return this.match(47) || super.isClassMethod();
}
isClassProperty() {
return this.match(35) || this.match(14) || super.isClassProperty();
}
parseMaybeDefault(e, s) {
let i = super.parseMaybeDefault(e, s);
return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(y.TypeAnnotationAfterAssign, i.typeAnnotation), i;
}
getTokenFromCode(e) {
if (this.state.inType) {
if (e === 62) {
this.finishOp(48, 1);
return;
}
if (e === 60) {
this.finishOp(47, 1);
return;
}
}
super.getTokenFromCode(e);
}
reScan_lt_gt() {
let { type: e } = this.state;
e === 47 ? (this.state.pos -= 1, this.readToken_lt()) : e === 48 && (this.state.pos -= 1, this.readToken_gt());
}
reScan_lt() {
let { type: e } = this.state;
return e === 51 ? (this.state.pos -= 2, this.finishOp(47, 1), 47) : e;
}
toAssignableListItem(e, s, i) {
let r = e[s];
r.type === "TSTypeCastExpression" && (e[s] = this.typeCastToParameter(r)), super.toAssignableListItem(e, s, i);
}
typeCastToParameter(e) {
return e.expression.typeAnnotation = e.typeAnnotation, this.resetEndLocation(e.expression, e.typeAnnotation.loc.end), e.expression;
}
shouldParseArrow(e) {
return this.match(14) ? e.every((s) => this.isAssignable(s, true)) : super.shouldParseArrow(e);
}
shouldParseAsyncArrow() {
return this.match(14) || super.shouldParseAsyncArrow();
}
canHaveLeadingDecorator() {
return super.canHaveLeadingDecorator() || this.isAbstractClass();
}
jsxParseOpeningElementAfterName(e) {
if (this.match(47) || this.match(51)) {
let s = this.tsTryParseAndCatch(() => this.tsParseTypeArgumentsInExpression());
s && (e.typeArguments = s);
}
return super.jsxParseOpeningElementAfterName(e);
}
getGetterSetterExpectedParamCount(e) {
let s = super.getGetterSetterExpectedParamCount(e), r = this.getObjectOrClassMethodParams(e)[0];
return r && this.isThisParam(r) ? s + 1 : s;
}
parseCatchClauseParam() {
let e = super.parseCatchClauseParam(), s = this.tsTryParseTypeAnnotation();
return s && (e.typeAnnotation = s, this.resetEndLocation(e)), e;
}
tsInAmbientContext(e) {
let { isAmbientContext: s, strict: i } = this.state;
this.state.isAmbientContext = true, this.state.strict = false;
try {
return e();
} finally {
this.state.isAmbientContext = s, this.state.strict = i;
}
}
parseClass(e, s, i) {
let r = this.state.inAbstractClass;
this.state.inAbstractClass = !!e.abstract;
try {
return super.parseClass(e, s, i);
} finally {
this.state.inAbstractClass = r;
}
}
tsParseAbstractDeclaration(e, s) {
if (this.match(80))
return e.abstract = true, this.maybeTakeDecorators(s, this.parseClass(e, true, false));
if (this.isContextual(129))
return this.hasFollowingLineBreak() ? null : (e.abstract = true, this.raise(y.NonClassMethodPropertyHasAbstractModifier, e), this.tsParseInterfaceDeclaration(e));
throw this.unexpected(null, 80);
}
parseMethod(e, s, i, r, n, o, h) {
let l = super.parseMethod(e, s, i, r, n, o, h);
if ((l.abstract || l.type === "TSAbstractMethodDefinition") && (this.hasPlugin("estree") ? l.value : l).body) {
let { key: d } = l;
this.raise(y.AbstractMethodHasImplementation, l, { methodName: d.type === "Identifier" && !l.computed ? d.name : `[${this.input.slice(this.offsetToSourcePos(d.start), this.offsetToSourcePos(d.end))}]` });
}
return l;
}
tsParseTypeParameterName() {
return this.parseIdentifier();
}
shouldParseAsAmbientContext() {
return !!this.getPluginOption("typescript", "dts");
}
parse() {
return this.shouldParseAsAmbientContext() && (this.state.isAmbientContext = true), super.parse();
}
getExpression() {
return this.shouldParseAsAmbientContext() && (this.state.isAmbientContext = true), super.getExpression();
}
parseExportSpecifier(e, s, i, r) {
return !s && r ? (this.parseTypeOnlyImportExportSpecifier(e, false, i), this.finishNode(e, "ExportSpecifier")) : (e.exportKind = "value", super.parseExportSpecifier(e, s, i, r));
}
parseImportSpecifier(e, s, i, r, n) {
return !s && r ? (this.parseTypeOnlyImportExportSpecifier(e, true, i), this.finishNode(e, "ImportSpecifier")) : (e.importKind = "value", super.parseImportSpecifier(e, s, i, r, i ? 4098 : 4096));
}
parseTypeOnlyImportExportSpecifier(e, s, i) {
let r = s ? "imported" : "local", n = s ? "local" : "exported", o = e[r], h, l = false, u = true, f = o.loc.start;
if (this.isContextual(93)) {
let x = this.parseIdentifier();
if (this.isContextual(93)) {
let A = this.parseIdentifier();
O(this.state.type) ? (l = true, o = x, h = s ? this.parseIdentifier() : this.parseModuleExportName(), u = false) : (h = A, u = false);
} else
O(this.state.type) ? (u = false, h = s ? this.parseIdentifier() : this.parseModuleExportName()) : (l = true, o = x);
} else
O(this.state.type) && (l = true, s ? (o = this.parseIdentifier(true), this.isContextual(93) || this.checkReservedWord(o.name, o.loc.start, true, true)) : o = this.parseModuleExportName());
l && i && this.raise(s ? y.TypeModifierIsUsedInTypeImports : y.TypeModifierIsUsedInTypeExports, f), e[r] = o, e[n] = h;
let d = s ? "importKind" : "exportKind";
e[d] = l ? "type" : "value", u && this.eatContextual(93) && (e[n] = s ? this.parseIdentifier() : this.parseModuleExportName()), e[n] || (e[n] = this.cloneIdentifier(e[r])), s && this.checkIdentifier(e[n], l ? 4098 : 4096);
}
fillOptionalPropertiesForTSESLint(e) {
switch (e.type) {
case "ExpressionStatement":
e.directive ?? (e.directive = undefined);
return;
case "RestElement":
e.value = undefined;
case "Identifier":
case "ArrayPattern":
case "AssignmentPattern":
case "ObjectPattern":
e.decorators ?? (e.decorators = []), e.optional ?? (e.optional = false), e.typeAnnotation ?? (e.typeAnnotation = undefined);
return;
case "TSParameterProperty":
e.accessibility ?? (e.accessibility = undefined), e.decorators ?? (e.decorators = []), e.override ?? (e.override = false), e.readonly ?? (e.readonly = false), e.static ?? (e.static = false);
return;
case "TSEmptyBodyFunctionExpression":
e.body = null;
case "TSDeclareFunction":
case "FunctionDeclaration":
case "FunctionExpression":
case "ClassMethod":
case "ClassPrivateMethod":
e.declare ?? (e.declare = false), e.returnType ?? (e.returnType = undefined), e.typeParameters ?? (e.typeParameters = undefined);
return;
case "Property":
e.optional ?? (e.optional = false);
return;
case "TSMethodSignature":
case "TSPropertySignature":
e.optional ?? (e.optional = false);
case "TSIndexSignature":
e.accessibility ?? (e.accessibility = undefined), e.readonly ?? (e.readonly = false), e.static ?? (e.static = false);
return;
case "TSAbstractPropertyDefinition":
case "PropertyDefinition":
case "TSAbstractAccessorProperty":
case "AccessorProperty":
e.declare ?? (e.declare = false), e.definite ?? (e.definite = false), e.readonly ?? (e.readonly = false), e.typeAnnotation ?? (e.typeAnnotation = undefined);
case "TSAbstractMethodDefinition":
case "MethodDefinition":
e.accessibility ?? (e.accessibility = undefined), e.decorators ?? (e.decorators = []), e.override ?? (e.override = false), e.optional ?? (e.optional = false);
return;
case "ClassExpression":
e.id ?? (e.id = null);
case "ClassDeclaration":
e.abstract ?? (e.abstract = false), e.declare ?? (e.declare = false), e.decorators ?? (e.decorators = []), e.implements ?? (e.implements = []), e.superTypeArguments ?? (e.superTypeArguments = undefined), e.typeParameters ?? (e.typeParameters = undefined);
return;
case "TSTypeAliasDeclaration":
case "VariableDeclaration":
e.declare ?? (e.declare = false);
return;
case "VariableDeclarator":
e.definite ?? (e.definite = false);
return;
case "TSEnumDeclaration":
e.const ?? (e.const = false), e.declare ?? (e.declare = false);
return;
case "TSEnumMember":
e.computed ?? (e.computed = false);
return;
case "TSImportType":
e.qualifier ?? (e.qualifier = null), e.options ?? (e.options = null), e.typeArguments ?? (e.typeArguments = null);
return;
case "TSInterfaceDeclaration":
e.declare ?? (e.declare = false), e.extends ?? (e.extends = []);
return;
case "TSMappedType":
e.optional ?? (e.optional = false), e.readonly ?? (e.readonly = undefined);
return;
case "TSModuleDeclaration":
e.declare ?? (e.declare = false), e.global ?? (e.global = e.kind === "global");
return;
case "TSTypeParameter":
e.const ?? (e.const = false), e.in ?? (e.in = false), e.out ?? (e.out = false);
return;
}
}
chStartsBindingIdentifierAndNotRelationalOperator(e, s) {
if (B(e)) {
if (Ve.lastIndex = s, Ve.test(this.input)) {
let i = this.codePointAtPos(Ve.lastIndex);
if (!K(i) && i !== 92)
return false;
}
return true;
} else
return e === 92;
}
nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine() {
let e = this.nextTokenInLineStart(), s = this.codePointAtPos(e);
return this.chStartsBindingIdentifierAndNotRelationalOperator(s, e);
}
nextTokenIsIdentifierOrStringLiteralOnSameLine() {
let e = this.nextTokenInLineStart(), s = this.codePointAtPos(e);
return this.chStartsBindingIdentifier(s, e) || s === 34 || s === 39;
}
};
function Gi(a2) {
if (a2.type !== "MemberExpression")
return false;
let { computed: t, property: e } = a2;
return t && e.type !== "StringLiteral" && (e.type !== "TemplateLiteral" || e.expressions.length > 0) ? false : os(a2.object);
}
function Xi(a2, t) {
let { type: e } = a2;
if (a2.extra?.parenthesized)
return false;
if (t) {
if (e === "Literal") {
let { value: s } = a2;
if (typeof s == "string" || typeof s == "boolean")
return true;
}
} else if (e === "StringLiteral" || e === "BooleanLiteral")
return true;
return !!(ns(a2, t) || Yi(a2, t) || e === "TemplateLiteral" && a2.expressions.length === 0 || Gi(a2));
}
function ns(a2, t) {
return t ? a2.type === "Literal" && (typeof a2.value == "number" || ("bigint" in a2)) : a2.type === "NumericLiteral" || a2.type === "BigIntLiteral";
}
function Yi(a2, t) {
if (a2.type === "UnaryExpression") {
let { operator: e, argument: s } = a2;
if (e === "-" && ns(s, t))
return true;
}
return false;
}
function os(a2) {
return a2.type === "Identifier" ? true : a2.type !== "MemberExpression" || a2.computed ? false : os(a2.object);
}
var $t = F`placeholders`({ ClassNameIsRequired: "A class name is required.", UnexpectedSpace: "Unexpected space in placeholder." });
var Qi = (a2) => class extends a2 {
parsePlaceholder(e) {
if (this.match(133)) {
let s = this.startNode();
return this.next(), this.assertNoSpace(), s.name = super.parseIdentifier(true), this.assertNoSpace(), this.expect(133), this.finishPlaceholder(s, e);
}
}
finishPlaceholder(e, s) {
let i = e;
return (!i.expectedNode || !i.type) && (i = this.finishNode(i, "Placeholder")), i.expectedNode = s, i;
}
getTokenFromCode(e) {
e === 37 && this.input.charCodeAt(this.state.pos + 1) === 37 ? this.finishOp(133, 2) : super.getTokenFromCode(e);
}
parseExprAtom(e) {
return this.parsePlaceholder("Expression") || super.parseExprAtom(e);
}
parseIdentifier(e) {
return this.parsePlaceholder("Identifier") || super.parseIdentifier(e);
}
checkReservedWord(e, s, i, r) {
e !== undefined && super.checkReservedWord(e, s, i, r);
}
cloneIdentifier(e) {
let s = super.cloneIdentifier(e);
return s.type === "Placeholder" && (s.expectedNode = e.expectedNode), s;
}
cloneStringLiteral(e) {
return e.type === "Placeholder" ? this.cloneIdentifier(e) : super.cloneStringLiteral(e);
}
parseBindingAtom() {
return this.parsePlaceholder("Pattern") || super.parseBindingAtom();
}
isValidLVal(e, s, i, r) {
return e === "Placeholder" || super.isValidLVal(e, s, i, r);
}
toAssignable(e, s) {
e && e.type === "Placeholder" && e.expectedNode === "Expression" ? e.expectedNode = "Pattern" : super.toAssignable(e, s);
}
chStartsBindingIdentifier(e, s) {
if (super.chStartsBindingIdentifier(e, s))
return true;
let i = this.nextTokenStart();
return this.input.charCodeAt(i) === 37 && this.input.charCodeAt(i + 1) === 37;
}
verifyBreakContinue(e, s) {
e.label && e.label.type === "Placeholder" || super.verifyBreakContinue(e, s);
}
parseExpressionStatement(e, s) {
if (s.type !== "Placeholder" || s.extra?.parenthesized)
return super.parseExpressionStatement(e, s);
if (this.match(14)) {
let r = e;
return r.label = this.finishPlaceholder(s, "Identifier"), this.next(), r.body = super.parseStatementOrSloppyAnnexBFunctionDeclaration(), this.finishNode(r, "LabeledStatement");
}
this.semicolon();
let i = e;
return i.name = s.name, this.finishPlaceholder(i, "Statement");
}
parseBlock(e, s, i) {
return this.parsePlaceholder("BlockStatement") || super.parseBlock(e, s, i);
}
parseFunctionId(e) {
return this.parsePlaceholder("Identifier") || super.parseFunctionId(e);
}
parseClass(e, s, i) {
let r = s ? "ClassDeclaration" : "ClassExpression";
this.next();
let n = this.state.strict, o = this.parsePlaceholder("Identifier");
if (o)
if (this.match(81) || this.match(133) || this.match(5))
e.id = o;
else {
if (i || !s)
return e.id = null, e.body = this.finishPlaceholder(o, "ClassBody"), this.finishNode(e, r);
throw this.raise($t.ClassNameIsRequired, this.state.startLoc);
}
else
this.parseClassId(e, s, i);
return super.parseClassSuper(e), e.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!e.superClass, n), this.finishNode(e, r);
}
parseExport(e, s) {
let i = this.parsePlaceholder("Identifier");
if (!i)
return super.parseExport(e, s);
let r = e;
if (!this.isContextual(98) && !this.match(12))
return r.specifiers = [], r.source = null, r.declaration = this.finishPlaceholder(i, "Declaration"), this.finishNode(r, "ExportNamedDeclaration");
this.expectPlugin("exportDefaultFrom");
let n = this.startNode();
return n.exported = i, r.specifiers = [this.finishNode(n, "ExportDefaultSpecifier")], super.parseExport(r, s);
}
isExportDefaultSpecifier() {
if (this.match(65)) {
let e = this.nextTokenStart();
if (this.isUnparsedContextual(e, "from") && this.input.startsWith(z(133), this.nextTokenStartSince(e + 4)))
return true;
}
return super.isExportDefaultSpecifier();
}
maybeParseExportDefaultSpecifier(e, s) {
return e.specifiers?.length ? true : super.maybeParseExportDefaultSpecifier(e, s);
}
checkExport(e) {
let { specifiers: s } = e;
s?.length && (e.specifiers = s.filter((i) => i.exported.type === "Placeholder")), super.checkExport(e), e.specifiers = s;
}
parseImport(e) {
let s = this.parsePlaceholder("Identifier");
if (!s)
return super.parseImport(e);
if (e.specifiers = [], !this.isContextual(98) && !this.match(12))
return e.source = this.finishPlaceholder(s, "StringLiteral"), this.semicolon(), this.finishNode(e, "ImportDeclaration");
let i = this.startNodeAtNode(s);
return i.local = s, e.specifiers.push(this.finishNode(i, "ImportDefaultSpecifier")), this.eat(12) && (this.maybeParseStarImportSpecifier(e) || this.parseNamedImportSpecifiers(e)), this.expectContextual(98), e.source = this.parseImportSource(), this.semicolon(), this.finishNode(e, "ImportDeclaration");
}
parseImportSource() {
return this.parsePlaceholder("StringLiteral") || super.parseImportSource();
}
assertNoSpace() {
this.state.start > this.offsetToSourcePos(this.state.lastTokEndLoc.index) && this.raise($t.UnexpectedSpace, this.state.lastTokEndLoc);
}
};
var Zi = (a2) => class extends a2 {
parseV8Intrinsic() {
if (this.match(54)) {
let e = this.state.startLoc, s = this.startNode();
if (this.next(), w(this.state.type)) {
let i = this.parseIdentifierName(), r = this.createIdentifier(s, i);
if (this.castNodeTo(r, "V8IntrinsicIdentifier"), this.match(10))
return r;
}
this.unexpected(e);
}
}
parseExprAtom(e) {
return this.parseV8Intrinsic() || super.parseExprAtom(e);
}
};
var Kt = ["fsharp", "hack"];
var Ht = ["^^", "@@", "^", "%", "#"];
function er(a2) {
if (a2.has("decorators")) {
if (a2.has("decorators-legacy"))
throw new Error("Cannot use the decorators and decorators-legacy plugin together");
let t = a2.get("decorators").decoratorsBeforeExport;
if (t != null && typeof t != "boolean")
throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");
let e = a2.get("decorators").allowCallParenthesized;
if (e != null && typeof e != "boolean")
throw new Error("'allowCallParenthesized' must be a boolean.");
}
if (a2.has("flow") && a2.has("typescript"))
throw new Error("Cannot combine flow and typescript plugins.");
if (a2.has("placeholders") && a2.has("v8intrinsic"))
throw new Error("Cannot combine placeholders and v8intrinsic plugins.");
if (a2.has("pipelineOperator")) {
let t = a2.get("pipelineOperator").proposal;
if (!Kt.includes(t)) {
let e = Kt.map((s) => `"${s}"`).join(", ");
throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`);
}
if (t === "hack") {
if (a2.has("placeholders"))
throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");
if (a2.has("v8intrinsic"))
throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");
let e = a2.get("pipelineOperator").topicToken;
if (!Ht.includes(e)) {
let s = Ht.map((i) => `"${i}"`).join(", ");
throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`);
}
}
}
if (a2.has("moduleAttributes"))
throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");
if (a2.has("importAssertions"))
throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");
if (!a2.has("deprecatedImportAssert") && a2.has("importAttributes") && a2.get("importAttributes").deprecatedAssertSyntax)
throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");
if (a2.has("recordAndTuple"))
throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");
if (a2.has("asyncDoExpressions") && !a2.has("doExpressions")) {
let t = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");
throw t.missingPlugins = "doExpressions", t;
}
if (a2.has("optionalChainingAssign") && a2.get("optionalChainingAssign").version !== "2023-07")
throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");
if (a2.has("discardBinding") && a2.get("discardBinding").syntaxType !== "void")
throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");
{
if (a2.has("decimal"))
throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");
if (a2.has("importReflection"))
throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.");
}
}
var hs = { estree: ai, jsx: Bi, flow: Mi, typescript: Ji, v8intrinsic: Zi, placeholders: Qi };
var tr = Object.keys(hs);
var pt = class extends ct {
checkProto(t, e, s, i) {
if (t.type === "SpreadElement" || this.isObjectMethod(t) || t.computed || t.shorthand)
return s;
let r = t.key;
return (r.type === "Identifier" ? r.name : r.value) === "__proto__" ? e ? (this.raise(p.RecordNoProto, r), true) : (s && (i ? i.doubleProtoLoc === null && (i.doubleProtoLoc = r.loc.start) : this.raise(p.DuplicateProto, r)), true) : s;
}
shouldExitDescending(t, e) {
return t.type === "ArrowFunctionExpression" && this.offsetToSourcePos(t.start) === e;
}
getExpression() {
if (this.enterInitialScopes(), this.nextToken(), this.match(140))
throw this.raise(p.ParseExpressionEmptyInput, this.state.startLoc);
let t = this.parseExpression();
if (!this.match(140))
throw this.raise(p.ParseExpressionExpectsEOF, this.state.startLoc, { unexpected: this.input.codePointAt(this.state.start) });
return this.finalizeRemainingComments(), t.comments = this.comments, t.errors = this.state.errors, this.optionFlags & 256 && (t.tokens = this.tokens), t;
}
parseExpression(t, e) {
return t ? this.disallowInAnd(() => this.parseExpressionBase(e)) : this.allowInAnd(() => this.parseExpressionBase(e));
}
parseExpressionBase(t) {
let e = this.state.startLoc, s = this.parseMaybeAssign(t);
if (this.match(12)) {
let i = this.startNodeAt(e);
for (i.expressions = [s];this.eat(12); )
i.expressions.push(this.parseMaybeAssign(t));
return this.toReferencedList(i.expressions), this.finishNode(i, "SequenceExpression");
}
return s;
}
parseMaybeAssignDisallowIn(t, e) {
return this.disallowInAnd(() => this.parseMaybeAssign(t, e));
}
parseMaybeAssignAllowIn(t, e) {
return this.allowInAnd(() => this.parseMaybeAssign(t, e));
}
setOptionalParametersError(t) {
t.optionalParametersLoc = this.state.startLoc;
}
parseMaybeAssign(t, e) {
let s = this.state.startLoc, i = this.isContextual(108);
if (i && this.prodParam.hasYield) {
this.next();
let h = this.parseYield(s);
return e && (h = e.call(this, h, s)), h;
}
let r;
t ? r = false : (t = new Y, r = true);
let { type: n } = this.state;
(n === 10 || w(n)) && (this.state.potentialArrowAt = this.state.start);
let o = this.parseMaybeConditional(t);
if (e && (o = e.call(this, o, s)), li(this.state.type)) {
let h = this.startNodeAt(s), l = this.state.value;
if (h.operator = l, this.match(29)) {
this.toAssignable(o, true), h.left = o;
let u = s.index;
t.doubleProtoLoc != null && t.doubleProtoLoc.index >= u && (t.doubleProtoLoc = null), t.shorthandAssignLoc != null && t.shorthandAssignLoc.index >= u && (t.shorthandAssignLoc = null), t.privateKeyLoc != null && t.privateKeyLoc.index >= u && (this.checkDestructuringPrivate(t), t.privateKeyLoc = null), t.voidPatternLoc != null && t.voidPatternLoc.index >= u && (t.voidPatternLoc = null);
} else
h.left = o;
return this.next(), h.right = this.parseMaybeAssign(), this.checkLVal(o, this.finishNode(h, "AssignmentExpression"), undefined, undefined, undefined, undefined, l === "||=" || l === "&&=" || l === "??="), h;
} else
r && this.checkExpressionErrors(t, true);
if (i) {
let { type: h } = this.state;
if ((this.hasPlugin("v8intrinsic") ? ce(h) : ce(h) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
return this.raiseOverwrite(p.YieldNotInGeneratorFunction, s), this.parseYield(s);
}
return o;
}
parseMaybeConditional(t) {
let e = this.state.startLoc, s = this.state.potentialArrowAt, i = this.parseExprOps(t);
return this.shouldExitDescending(i, s) ? i : this.parseConditional(i, e, t);
}
parseConditional(t, e, s) {
if (this.eat(17)) {
let i = this.startNodeAt(e);
return i.test = t, i.consequent = this.parseMaybeAssignAllowIn(), this.expect(14), i.alternate = this.parseMaybeAssign(), this.finishNode(i, "ConditionalExpression");
}
return t;
}
parseMaybeUnaryOrPrivate(t) {
return this.match(139) ? this.parsePrivateName() : this.parseMaybeUnary(t);
}
parseExprOps(t) {
let e = this.state.startLoc, s = this.state.potentialArrowAt, i = this.parseMaybeUnaryOrPrivate(t);
return this.shouldExitDescending(i, s) ? i : this.parseExprOp(i, e, -1);
}
parseExprOp(t, e, s) {
if (this.isPrivateName(t)) {
let r = this.getPrivateNameSV(t);
(s >= Ae(58) || !this.prodParam.hasIn || !this.match(58)) && this.raise(p.PrivateInExpectedIn, t, { identifierName: r }), this.classScope.usePrivateName(r, t.loc.start);
}
let i = this.state.type;
if (ui(i) && (this.prodParam.hasIn || !this.match(58))) {
let r = Ae(i);
if (r > s) {
if (i === 39) {
if (this.expectPlugin("pipelineOperator"), this.state.inFSharpPipelineDirectBody)
return t;
this.checkPipelineAtInfixOperator(t, e);
}
let n = this.startNodeAt(e);
n.left = t, n.operator = this.state.value;
let o = i === 41 || i === 42, h = i === 40;
h && (r = Ae(42)), this.next(), n.right = this.parseExprOpRightExpr(i, r);
let l = this.finishNode(n, o || h ? "LogicalExpression" : "BinaryExpression"), u = this.state.type;
if (h && (u === 41 || u === 42) || o && u === 40)
throw this.raise(p.MixingCoalesceWithLogical, this.state.startLoc);
return this.parseExprOp(l, e, s);
}
}
return t;
}
parseExprOpRightExpr(t, e) {
switch (this.state.startLoc, t) {
case 39:
switch (this.getPluginOption("pipelineOperator", "proposal")) {
case "hack":
return this.withTopicBindingContext(() => this.parseHackPipeBody());
case "fsharp":
return this.withSoloAwaitPermittingContext(() => this.parseFSharpPipelineBody(e));
}
default:
return this.parseExprOpBaseRightExpr(t, e);
}
}
parseExprOpBaseRightExpr(t, e) {
let s = this.state.startLoc;
return this.parseExprOp(this.parseMaybeUnaryOrPrivate(), s, xi(t) ? e - 1 : e);
}
parseHackPipeBody() {
let { startLoc: t } = this.state, e = this.parseMaybeAssign();
return Qs.has(e.type) && !e.extra?.parenthesized && this.raise(p.PipeUnparenthesizedBody, t, { type: e.type }), this.topicReferenceWasUsedInCurrentContext() || this.raise(p.PipeTopicUnused, t), e;
}
checkExponentialAfterUnary(t) {
this.match(57) && this.raise(p.UnexpectedTokenUnaryExponentiation, t.argument);
}
parseMaybeUnary(t, e) {
let s = this.state.startLoc, i = this.isContextual(96);
if (i && this.recordAwaitIfAllowed()) {
this.next();
let h = this.parseAwait(s);
return e || this.checkExponentialAfterUnary(h), h;
}
let r = this.match(34), n = this.startNode();
if (di(this.state.type)) {
n.operator = this.state.value, n.prefix = true, this.match(72) && this.expectPlugin("throwExpressions");
let h = this.match(89);
if (this.next(), n.argument = this.parseMaybeUnary(null, true), this.checkExpressionErrors(t, true), this.state.strict && h) {
let l = n.argument;
l.type === "Identifier" ? this.raise(p.StrictDelete, n) : this.hasPropertyAsPrivateName(l) && this.raise(p.DeletePrivateField, n);
}
if (!r)
return e || this.checkExponentialAfterUnary(n), this.finishNode(n, "UnaryExpression");
}
let o = this.parseUpdate(n, r, t);
if (i) {
let { type: h } = this.state;
if ((this.hasPlugin("v8intrinsic") ? ce(h) : ce(h) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
return this.raiseOverwrite(p.AwaitNotInAsyncContext, s), this.parseAwait(s);
}
return o;
}
parseUpdate(t, e, s) {
if (e) {
let n = t;
return this.checkLVal(n.argument, this.finishNode(n, "UpdateExpression")), t;
}
let i = this.state.startLoc, r = this.parseExprSubscripts(s);
if (this.checkExpressionErrors(s, false))
return r;
for (;fi(this.state.type) && !this.canInsertSemicolon(); ) {
let n = this.startNodeAt(i);
n.operator = this.state.value, n.prefix = false, n.argument = r, this.next(), this.checkLVal(r, r = this.finishNode(n, "UpdateExpression"));
}
return r;
}
parseExprSubscripts(t) {
let e = this.state.startLoc, s = this.state.potentialArrowAt, i = this.parseExprAtom(t);
return this.shouldExitDescending(i, s) ? i : this.parseSubscripts(i, e);
}
parseSubscripts(t, e, s) {
let i = { optionalChainMember: false, maybeAsyncArrow: this.atPossibleAsyncArrow(t), stop: false };
do
t = this.parseSubscript(t, e, s, i), i.maybeAsyncArrow = false;
while (!i.stop);
return t;
}
parseSubscript(t, e, s, i) {
let { type: r } = this.state;
if (!s && r === 15)
return this.parseBind(t, e, s, i);
if ($e(r))
return this.parseTaggedTemplateExpression(t, e, i);
let n = false;
if (r === 18) {
if (s && (this.raise(p.OptionalChainingNoNew, this.state.startLoc), this.lookaheadCharCode() === 40))
return this.stopParseSubscript(t, i);
i.optionalChainMember = n = true, this.next();
}
if (!s && this.match(10))
return this.parseCoverCallAndAsyncArrowHead(t, e, i, n);
{
let o = this.eat(0);
return o || n || this.eat(16) ? this.parseMember(t, e, i, o, n) : this.stopParseSubscript(t, i);
}
}
stopParseSubscript(t, e) {
return e.stop = true, t;
}
parseMember(t, e, s, i, r) {
let n = this.startNodeAt(e);
return n.object = t, n.computed = i, i ? (n.property = this.parseExpression(), this.expect(3)) : this.match(139) ? (t.type === "Super" && this.raise(p.SuperPrivateField, e), this.classScope.usePrivateName(this.state.value, this.state.startLoc), n.property = this.parsePrivateName()) : n.property = this.parseIdentifier(true), s.optionalChainMember ? (n.optional = r, this.finishNode(n, "OptionalMemberExpression")) : this.finishNode(n, "MemberExpression");
}
parseBind(t, e, s, i) {
let r = this.startNodeAt(e);
return r.object = t, this.next(), r.callee = this.parseNoCallExpr(), i.stop = true, this.parseSubscripts(this.finishNode(r, "BindExpression"), e, s);
}
parseCoverCallAndAsyncArrowHead(t, e, s, i) {
let r = this.state.maybeInArrowParameters, n = null;
this.state.maybeInArrowParameters = true, this.next();
let o = this.startNodeAt(e);
o.callee = t;
let { maybeAsyncArrow: h, optionalChainMember: l } = s;
h && (this.expressionScope.enter($i()), n = new Y), l && (o.optional = i), i ? o.arguments = this.parseCallExpressionArguments() : o.arguments = this.parseCallExpressionArguments(t.type !== "Super", o, n);
let u = this.finishCallExpression(o, l);
return h && this.shouldParseAsyncArrow() && !i ? (s.stop = true, this.checkDestructuringPrivate(n), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), u = this.parseAsyncArrowFromCallExpression(this.startNodeAt(e), u)) : (h && (this.checkExpressionErrors(n, true), this.expressionScope.exit()), this.toReferencedArguments(u)), this.state.maybeInArrowParameters = r, u;
}
toReferencedArguments(t, e) {
this.toReferencedListDeep(t.arguments, e);
}
parseTaggedTemplateExpression(t, e, s) {
let i = this.startNodeAt(e);
return i.tag = t, i.quasi = this.parseTemplate(true), s.optionalChainMember && this.raise(p.OptionalChainingNoTemplate, e), this.finishNode(i, "TaggedTemplateExpression");
}
atPossibleAsyncArrow(t) {
return t.type === "Identifier" && t.name === "async" && this.state.lastTokEndLoc.index === t.end && !this.canInsertSemicolon() && t.end - t.start === 5 && this.offsetToSourcePos(t.start) === this.state.potentialArrowAt;
}
finishCallExpression(t, e) {
if (t.callee.type === "Import")
if (t.arguments.length === 0 || t.arguments.length > 2)
this.raise(p.ImportCallArity, t);
else
for (let s of t.arguments)
s.type === "SpreadElement" && this.raise(p.ImportCallSpreadArgument, s);
return this.finishNode(t, e ? "OptionalCallExpression" : "CallExpression");
}
parseCallExpressionArguments(t, e, s) {
let i = [], r = true, n = this.state.inFSharpPipelineDirectBody;
for (this.state.inFSharpPipelineDirectBody = false;!this.eat(11); ) {
if (r)
r = false;
else if (this.expect(12), this.match(11)) {
e && this.addTrailingCommaExtraToNode(e), this.next();
break;
}
i.push(this.parseExprListItem(11, false, s, t));
}
return this.state.inFSharpPipelineDirectBody = n, i;
}
shouldParseAsyncArrow() {
return this.match(19) && !this.canInsertSemicolon();
}
parseAsyncArrowFromCallExpression(t, e) {
return this.resetPreviousNodeTrailingComments(e), this.expect(19), this.parseArrowExpression(t, e.arguments, true, e.extra?.trailingCommaLoc), e.innerComments && X(t, e.innerComments), e.callee.trailingComments && X(t, e.callee.trailingComments), t;
}
parseNoCallExpr() {
let t = this.state.startLoc;
return this.parseSubscripts(this.parseExprAtom(), t, true);
}
parseExprAtom(t) {
let e, s = null, { type: i } = this.state;
switch (i) {
case 79:
return this.parseSuper();
case 83:
return e = this.startNode(), this.next(), this.match(16) ? this.parseImportMetaPropertyOrPhaseCall(e) : this.match(10) ? this.optionFlags & 512 ? this.parseImportCall(e) : this.finishNode(e, "Import") : (this.raise(p.UnsupportedImport, this.state.lastTokStartLoc), this.finishNode(e, "Import"));
case 78:
return e = this.startNode(), this.next(), this.finishNode(e, "ThisExpression");
case 90:
return this.parseDo(this.startNode(), false);
case 56:
case 31:
return this.readRegexp(), this.parseRegExpLiteral(this.state.value);
case 135:
return this.parseNumericLiteral(this.state.value);
case 136:
return this.parseBigIntLiteral(this.state.value);
case 134:
return this.parseStringLiteral(this.state.value);
case 84:
return this.parseNullLiteral();
case 85:
return this.parseBooleanLiteral(true);
case 86:
return this.parseBooleanLiteral(false);
case 10: {
let r = this.state.potentialArrowAt === this.state.start;
return this.parseParenAndDistinguishExpression(r);
}
case 0:
return this.parseArrayLike(3, false, t);
case 5:
return this.parseObjectLike(8, false, false, t);
case 68:
return this.parseFunctionOrFunctionSent();
case 26:
s = this.parseDecorators();
case 80:
return this.parseClass(this.maybeTakeDecorators(s, this.startNode()), false);
case 77:
return this.parseNewOrNewTarget();
case 25:
case 24:
return this.parseTemplate(false);
case 15: {
e = this.startNode(), this.next(), e.object = null;
let r = e.callee = this.parseNoCallExpr();
if (r.type === "MemberExpression")
return this.finishNode(e, "BindExpression");
throw this.raise(p.UnsupportedBind, r);
}
case 139:
return this.raise(p.PrivateInExpectedIn, this.state.startLoc, { identifierName: this.state.value }), this.parsePrivateName();
case 33:
return this.parseTopicReferenceThenEqualsSign(54, "%");
case 32:
return this.parseTopicReferenceThenEqualsSign(44, "^");
case 37:
case 38:
return this.parseTopicReference("hack");
case 44:
case 54:
case 27: {
let r = this.getPluginOption("pipelineOperator", "proposal");
if (r)
return this.parseTopicReference(r);
throw this.unexpected();
}
case 47: {
let r = this.input.codePointAt(this.nextTokenStart());
throw B(r) || r === 62 ? this.expectOnePlugin(["jsx", "flow", "typescript"]) : this.unexpected();
}
default:
if (w(i)) {
if (this.isContextual(127) && this.lookaheadInLineCharCode() === 123)
return this.parseModuleExpression();
let r = this.state.potentialArrowAt === this.state.start, n = this.state.containsEsc, o = this.parseIdentifier();
if (!n && o.name === "async" && !this.canInsertSemicolon()) {
let { type: h } = this.state;
if (h === 68)
return this.resetPreviousNodeTrailingComments(o), this.next(), this.parseAsyncFunctionExpression(this.startNodeAtNode(o));
if (w(h))
return this.lookaheadCharCode() === 61 ? this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)) : o;
if (h === 90)
return this.resetPreviousNodeTrailingComments(o), this.parseDo(this.startNodeAtNode(o), true);
}
return r && this.match(19) && !this.canInsertSemicolon() ? (this.next(), this.parseArrowExpression(this.startNodeAtNode(o), [o], false)) : o;
} else
throw this.unexpected();
}
}
parseTopicReferenceThenEqualsSign(t, e) {
let s = this.getPluginOption("pipelineOperator", "proposal");
if (s)
return this.state.type = t, this.state.value = e, this.state.pos--, this.state.end--, this.state.endLoc = D(this.state.endLoc, -1), this.parseTopicReference(s);
throw this.unexpected();
}
parseTopicReference(t) {
let e = this.startNode(), s = this.state.startLoc, i = this.state.type;
return this.next(), this.finishTopicReference(e, s, t, i);
}
finishTopicReference(t, e, s, i) {
if (this.testTopicReferenceConfiguration(s, e, i))
return this.topicReferenceIsAllowedInCurrentContext() || this.raise(p.PipeTopicUnbound, e), this.registerTopicReference(), this.finishNode(t, "TopicReference");
throw this.raise(p.PipeTopicUnconfiguredToken, e, { token: z(i) });
}
testTopicReferenceConfiguration(t, e, s) {
switch (t) {
case "hack":
return this.hasPlugin(["pipelineOperator", { topicToken: z(s) }]);
case "smart":
return s === 27;
default:
throw this.raise(p.PipeTopicRequiresHackPipes, e);
}
}
parseAsyncArrowUnaryFunction(t) {
this.prodParam.enter(Se(true, this.prodParam.hasYield));
let e = [this.parseIdentifier()];
return this.prodParam.exit(), this.hasPrecedingLineBreak() && this.raise(p.LineTerminatorBeforeArrow, this.state.curPosition()), this.expect(19), this.parseArrowExpression(t, e, true);
}
parseDo(t, e) {
this.expectPlugin("doExpressions"), e && this.expectPlugin("asyncDoExpressions"), t.async = e, this.next();
let s = this.state.labels;
return this.state.labels = [], e ? (this.prodParam.enter(2), t.body = this.parseBlock(), this.prodParam.exit()) : t.body = this.parseBlock(), this.state.labels = s, this.finishNode(t, "DoExpression");
}
parseSuper() {
let t = this.startNode();
return this.next(), this.match(10) && !this.scope.allowDirectSuper ? this.raise(p.SuperNotAllowed, t) : this.scope.allowSuper || this.raise(p.UnexpectedSuper, t), !this.match(10) && !this.match(0) && !this.match(16) && this.raise(p.UnsupportedSuper, t), this.finishNode(t, "Super");
}
parsePrivateName() {
let t = this.startNode(), e = this.startNodeAt(D(this.state.startLoc, 1)), s = this.state.value;
return this.next(), t.id = this.createIdentifier(e, s), this.finishNode(t, "PrivateName");
}
parseFunctionOrFunctionSent() {
let t = this.startNode();
if (this.next(), this.prodParam.hasYield && this.match(16)) {
let e = this.createIdentifier(this.startNodeAtNode(t), "function");
return this.next(), this.match(103) ? this.expectPlugin("functionSent") : this.hasPlugin("functionSent") || this.unexpected(), this.parseMetaProperty(t, e, "sent");
}
return this.parseFunction(t);
}
parseMetaProperty(t, e, s) {
t.meta = e;
let i = this.state.containsEsc;
return t.property = this.parseIdentifier(true), (t.property.name !== s || i) && this.raise(p.UnsupportedMetaProperty, t.property, { target: e.name, onlyValidPropertyName: s }), this.finishNode(t, "MetaProperty");
}
parseImportMetaPropertyOrPhaseCall(t) {
if (this.next(), this.isContextual(105) || this.isContextual(97)) {
let e = this.isContextual(105);
return this.expectPlugin(e ? "sourcePhaseImports" : "deferredImportEvaluation"), this.next(), t.phase = e ? "source" : "defer", this.parseImportCall(t);
} else {
let e = this.createIdentifierAt(this.startNodeAtNode(t), "import", this.state.lastTokStartLoc);
return this.isContextual(101) && (this.inModule || this.raise(p.ImportMetaOutsideModule, e), this.sawUnambiguousESM = true), this.parseMetaProperty(t, e, "meta");
}
}
parseLiteralAtNode(t, e, s) {
return this.addExtra(s, "rawValue", t), this.addExtra(s, "raw", this.input.slice(this.offsetToSourcePos(s.start), this.state.end)), s.value = t, this.next(), this.finishNode(s, e);
}
parseLiteral(t, e) {
let s = this.startNode();
return this.parseLiteralAtNode(t, e, s);
}
parseStringLiteral(t) {
return this.parseLiteral(t, "StringLiteral");
}
parseNumericLiteral(t) {
return this.parseLiteral(t, "NumericLiteral");
}
parseBigIntLiteral(t) {
{
let e;
try {
e = BigInt(t);
} catch {
e = null;
}
return this.parseLiteral(e, "BigIntLiteral");
}
}
parseDecimalLiteral(t) {
return this.parseLiteral(t, "DecimalLiteral");
}
parseRegExpLiteral(t) {
let e = this.startNode();
return this.addExtra(e, "raw", this.input.slice(this.offsetToSourcePos(e.start), this.state.end)), e.pattern = t.pattern, e.flags = t.flags, this.next(), this.finishNode(e, "RegExpLiteral");
}
parseBooleanLiteral(t) {
let e = this.startNode();
return e.value = t, this.next(), this.finishNode(e, "BooleanLiteral");
}
parseNullLiteral() {
let t = this.startNode();
return this.next(), this.finishNode(t, "NullLiteral");
}
parseParenAndDistinguishExpression(t) {
let e = this.state.startLoc, s;
this.next(), this.expressionScope.enter(qi());
let i = this.state.maybeInArrowParameters, r = this.state.inFSharpPipelineDirectBody;
this.state.maybeInArrowParameters = true, this.state.inFSharpPipelineDirectBody = false;
let n = this.state.startLoc, o = [], h = new Y, l = true, u, f;
for (;!this.match(11); ) {
if (l)
l = false;
else if (this.expect(12, h.optionalParametersLoc === null ? null : h.optionalParametersLoc), this.match(11)) {
f = this.state.startLoc;
break;
}
if (this.match(21)) {
let A = this.state.startLoc;
if (u = this.state.startLoc, o.push(this.parseParenItem(this.parseRestBinding(), A)), !this.checkCommaAfterRest(41))
break;
} else
o.push(this.parseMaybeAssignAllowInOrVoidPattern(11, h, this.parseParenItem));
}
let d = this.state.lastTokEndLoc;
this.expect(11), this.state.maybeInArrowParameters = i, this.state.inFSharpPipelineDirectBody = r;
let x = this.startNodeAt(e);
return t && this.shouldParseArrow(o) && (x = this.parseArrow(x)) ? (this.checkDestructuringPrivate(h), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), this.parseArrowExpression(x, o, false), x) : (this.expressionScope.exit(), o.length || this.unexpected(this.state.lastTokStartLoc), f && this.unexpected(f), u && this.unexpected(u), this.checkExpressionErrors(h, true), this.toReferencedListDeep(o, true), o.length > 1 ? (s = this.startNodeAt(n), s.expressions = o, this.finishNode(s, "SequenceExpression"), this.resetEndLocation(s, d)) : s = o[0], this.wrapParenthesis(e, s));
}
wrapParenthesis(t, e) {
if (!(this.optionFlags & 1024))
return this.addExtra(e, "parenthesized", true), this.addExtra(e, "parenStart", t.index), this.takeSurroundingComments(e, t.index, this.state.lastTokEndLoc.index), e;
let s = this.startNodeAt(t);
return s.expression = e, this.finishNode(s, "ParenthesizedExpression");
}
shouldParseArrow(t) {
return !this.canInsertSemicolon();
}
parseArrow(t) {
if (this.eat(19))
return t;
}
parseParenItem(t, e) {
return t;
}
parseNewOrNewTarget() {
let t = this.startNode();
if (this.next(), this.match(16)) {
let e = this.createIdentifier(this.startNodeAtNode(t), "new");
this.next();
let s = this.parseMetaProperty(t, e, "target");
return this.scope.allowNewTarget || this.raise(p.UnexpectedNewTarget, s), s;
}
return this.parseNew(t);
}
parseNew(t) {
if (this.parseNewCallee(t), this.eat(10)) {
let e = this.parseExprList(11);
this.toReferencedList(e), t.arguments = e;
} else
t.arguments = [];
return this.finishNode(t, "NewExpression");
}
parseNewCallee(t) {
let e = this.match(83), s = this.parseNoCallExpr();
t.callee = s, e && (s.type === "Import" || s.type === "ImportExpression") && this.raise(p.ImportCallNotNewExpression, s);
}
parseTemplateElement(t) {
let { start: e, startLoc: s, end: i, value: r } = this.state, n = e + 1, o = this.startNodeAt(D(s, 1));
r === null && (t || this.raise(p.InvalidEscapeSequenceTemplate, D(this.state.firstInvalidTemplateEscapePos, 1)));
let h = this.match(24), l = h ? -1 : -2, u = i + l;
o.value = { raw: this.input.slice(n, u).replace(/\r\n?/g, `
`), cooked: r === null ? null : r.slice(1, l) }, o.tail = h, this.next();
let f = this.finishNode(o, "TemplateElement");
return this.resetEndLocation(f, D(this.state.lastTokEndLoc, l)), f;
}
parseTemplate(t) {
let e = this.startNode(), s = this.parseTemplateElement(t), i = [s], r = [];
for (;!s.tail; )
r.push(this.parseTemplateSubstitution()), this.readTemplateContinuation(), i.push(s = this.parseTemplateElement(t));
return e.expressions = r, e.quasis = i, this.finishNode(e, "TemplateLiteral");
}
parseTemplateSubstitution() {
return this.parseExpression();
}
parseObjectLike(t, e, s, i) {
s && this.expectPlugin("recordAndTuple");
let r = this.state.inFSharpPipelineDirectBody;
this.state.inFSharpPipelineDirectBody = false;
let n = false, o = true, h = this.startNode();
for (h.properties = [], this.next();!this.match(t); ) {
if (o)
o = false;
else if (this.expect(12), this.match(t)) {
this.addTrailingCommaExtraToNode(h);
break;
}
let u;
e ? u = this.parseBindingProperty() : (u = this.parsePropertyDefinition(i), n = this.checkProto(u, s, n, i)), s && !this.isObjectProperty(u) && u.type !== "SpreadElement" && this.raise(p.InvalidRecordProperty, u), h.properties.push(u);
}
this.next(), this.state.inFSharpPipelineDirectBody = r;
let l = "ObjectExpression";
return e ? l = "ObjectPattern" : s && (l = "RecordExpression"), this.finishNode(h, l);
}
addTrailingCommaExtraToNode(t) {
this.addExtra(t, "trailingComma", this.state.lastTokStartLoc.index), this.addExtra(t, "trailingCommaLoc", this.state.lastTokStartLoc, false);
}
maybeAsyncOrAccessorProp(t) {
return !t.computed && t.key.type === "Identifier" && (this.isLiteralPropertyName() || this.match(0) || this.match(55));
}
parsePropertyDefinition(t) {
let e = [];
if (this.match(26))
for (this.hasPlugin("decorators") && this.raise(p.UnsupportedPropertyDecorator, this.state.startLoc);this.match(26); )
e.push(this.parseDecorator());
let s = this.startNode(), i = false, r = false, n;
if (this.match(21))
return e.length && this.unexpected(), this.parseSpread();
e.length && (s.decorators = e, e = []), s.method = false, t && (n = this.state.startLoc);
let o = this.eat(55);
this.parsePropertyNamePrefixOperator(s);
let h = this.state.containsEsc;
if (this.parsePropertyName(s, t), !o && !h && this.maybeAsyncOrAccessorProp(s)) {
let { key: l } = s, u = l.name;
u === "async" && !this.hasPrecedingLineBreak() && (i = true, this.resetPreviousNodeTrailingComments(l), o = this.eat(55), this.parsePropertyName(s)), (u === "get" || u === "set") && (r = true, this.resetPreviousNodeTrailingComments(l), s.kind = u, this.match(55) && (o = true, this.raise(p.AccessorIsGenerator, this.state.curPosition(), { kind: u }), this.next()), this.parsePropertyName(s));
}
return this.parseObjPropValue(s, n, o, i, false, r, t);
}
getGetterSetterExpectedParamCount(t) {
return t.kind === "get" ? 0 : 1;
}
getObjectOrClassMethodParams(t) {
return t.params;
}
checkGetterSetterParams(t) {
let e = this.getGetterSetterExpectedParamCount(t), s = this.getObjectOrClassMethodParams(t);
s.length !== e && this.raise(t.kind === "get" ? p.BadGetterArity : p.BadSetterArity, t), t.kind === "set" && s[s.length - 1]?.type === "RestElement" && this.raise(p.BadSetterRestParameter, t);
}
parseObjectMethod(t, e, s, i, r) {
if (r) {
let n = this.parseMethod(t, e, false, false, false, "ObjectMethod");
return this.checkGetterSetterParams(n), n;
}
if (s || e || this.match(10))
return i && this.unexpected(), t.kind = "method", t.method = true, this.parseMethod(t, e, s, false, false, "ObjectMethod");
}
parseObjectProperty(t, e, s, i) {
if (t.shorthand = false, this.eat(14))
return t.value = s ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowInOrVoidPattern(8, i), this.finishObjectProperty(t);
if (!t.computed && t.key.type === "Identifier") {
if (this.checkReservedWord(t.key.name, t.key.loc.start, true, false), s)
t.value = this.parseMaybeDefault(e, this.cloneIdentifier(t.key));
else if (this.match(29)) {
let r = this.state.startLoc;
i != null ? i.shorthandAssignLoc === null && (i.shorthandAssignLoc = r) : this.raise(p.InvalidCoverInitializedName, r), t.value = this.parseMaybeDefault(e, this.cloneIdentifier(t.key));
} else
t.value = this.cloneIdentifier(t.key);
return t.shorthand = true, this.finishObjectProperty(t);
}
}
finishObjectProperty(t) {
return this.finishNode(t, "ObjectProperty");
}
parseObjPropValue(t, e, s, i, r, n, o) {
let h = this.parseObjectMethod(t, s, i, r, n) || this.parseObjectProperty(t, e, r, o);
return h || this.unexpected(), h;
}
parsePropertyName(t, e) {
if (this.eat(0))
t.computed = true, t.key = this.parseMaybeAssignAllowIn(), this.expect(3);
else {
let { type: s, value: i } = this.state, r;
if (O(s))
r = this.parseIdentifier(true);
else
switch (s) {
case 135:
r = this.parseNumericLiteral(i);
break;
case 134:
r = this.parseStringLiteral(i);
break;
case 136:
r = this.parseBigIntLiteral(i);
break;
case 139: {
let n = this.state.startLoc;
e != null ? e.privateKeyLoc === null && (e.privateKeyLoc = n) : this.raise(p.UnexpectedPrivateField, n), r = this.parsePrivateName();
break;
}
default:
this.unexpected();
}
t.key = r, s !== 139 && (t.computed = false);
}
}
initFunction(t, e) {
t.id = null, t.generator = false, t.async = e;
}
parseMethod(t, e, s, i, r, n, o = false) {
this.initFunction(t, s), t.generator = e, this.scope.enter(530 | (o ? 576 : 0) | (r ? 32 : 0)), this.prodParam.enter(Se(s, t.generator)), this.parseFunctionParams(t, i);
let h = this.parseFunctionBodyAndFinish(t, n, true);
return this.prodParam.exit(), this.scope.exit(), h;
}
parseArrayLike(t, e, s) {
e && this.expectPlugin("recordAndTuple");
let i = this.state.inFSharpPipelineDirectBody;
this.state.inFSharpPipelineDirectBody = false;
let r = this.startNode();
return this.next(), r.elements = this.parseExprList(t, !e, s, r), this.state.inFSharpPipelineDirectBody = i, this.finishNode(r, e ? "TupleExpression" : "ArrayExpression");
}
parseArrowExpression(t, e, s, i) {
this.scope.enter(518);
let r = Se(s, false);
!this.match(5) && this.prodParam.hasIn && (r |= 8), this.prodParam.enter(r), this.initFunction(t, s);
let n = this.state.maybeInArrowParameters;
return e && (this.state.maybeInArrowParameters = true, this.setArrowFunctionParameters(t, e, i)), this.state.maybeInArrowParameters = false, this.parseFunctionBody(t, true), this.prodParam.exit(), this.scope.exit(), this.state.maybeInArrowParameters = n, this.finishNode(t, "ArrowFunctionExpression");
}
setArrowFunctionParameters(t, e, s) {
this.toAssignableList(e, s, false), t.params = e;
}
parseFunctionBodyAndFinish(t, e, s = false) {
return this.parseFunctionBody(t, false, s), this.finishNode(t, e);
}
parseFunctionBody(t, e, s = false) {
let i = e && !this.match(5);
if (this.expressionScope.enter(as()), i)
t.body = this.parseMaybeAssign(), this.checkParams(t, false, e, false);
else {
let r = this.state.strict, n = this.state.labels;
this.state.labels = [], this.prodParam.enter(this.prodParam.currentFlags() | 4), t.body = this.parseBlock(true, false, (o) => {
let h = !this.isSimpleParamList(t.params);
o && h && this.raise(p.IllegalLanguageModeDirective, (t.kind === "method" || t.kind === "constructor") && t.key ? t.key.loc.end : t);
let l = !r && this.state.strict;
this.checkParams(t, !this.state.strict && !e && !s && !h, e, l), this.state.strict && t.id && this.checkIdentifier(t.id, 65, l);
}), this.prodParam.exit(), this.state.labels = n;
}
this.expressionScope.exit();
}
isSimpleParameter(t) {
return t.type === "Identifier";
}
isSimpleParamList(t) {
for (let e = 0, s = t.length;e < s; e++)
if (!this.isSimpleParameter(t[e]))
return false;
return true;
}
checkParams(t, e, s, i = true) {
let r = !e && new Set, n = { type: "FormalParameters" };
for (let o of t.params)
this.checkLVal(o, n, 5, r, i);
}
parseExprList(t, e, s, i) {
let r = [], n = true;
for (;!this.eat(t); ) {
if (n)
n = false;
else if (this.expect(12), this.match(t)) {
i && this.addTrailingCommaExtraToNode(i), this.next();
break;
}
r.push(this.parseExprListItem(t, e, s));
}
return r;
}
parseExprListItem(t, e, s, i) {
let r;
if (this.match(12))
e || this.raise(p.UnexpectedToken, this.state.curPosition(), { unexpected: "," }), r = null;
else if (this.match(21)) {
let n = this.state.startLoc;
r = this.parseParenItem(this.parseSpread(s), n);
} else if (this.match(17)) {
this.expectPlugin("partialApplication"), i || this.raise(p.UnexpectedArgumentPlaceholder, this.state.startLoc);
let n = this.startNode();
this.next(), r = this.finishNode(n, "ArgumentPlaceholder");
} else
r = this.parseMaybeAssignAllowInOrVoidPattern(t, s, this.parseParenItem);
return r;
}
parseIdentifier(t) {
let e = this.startNode(), s = this.parseIdentifierName(t);
return this.createIdentifier(e, s);
}
createIdentifier(t, e) {
return t.name = e, t.loc.identifierName = e, this.finishNode(t, "Identifier");
}
createIdentifierAt(t, e, s) {
return t.name = e, t.loc.identifierName = e, this.finishNodeAt(t, "Identifier", s);
}
parseIdentifierName(t) {
let e, { startLoc: s, type: i } = this.state;
O(i) ? e = this.state.value : this.unexpected();
let r = hi(i);
return t ? r && this.replaceToken(132) : this.checkReservedWord(e, s, r, false), this.next(), e;
}
checkReservedWord(t, e, s, i) {
if (t.length > 10 || !Ii(t))
return;
if (s && wi(t)) {
this.raise(p.UnexpectedKeyword, e, { keyword: t });
return;
}
if ((this.state.strict ? i ? ts : Zt : Qt)(t, this.inModule)) {
this.raise(p.UnexpectedReservedWord, e, { reservedWord: t });
return;
} else if (t === "yield") {
if (this.prodParam.hasYield) {
this.raise(p.YieldBindingIdentifier, e);
return;
}
} else if (t === "await") {
if (this.prodParam.hasAwait) {
this.raise(p.AwaitBindingIdentifier, e);
return;
}
if (this.scope.inStaticBlock) {
this.raise(p.AwaitBindingIdentifierInStaticBlock, e);
return;
}
this.expressionScope.recordAsyncArrowParametersError(e);
} else if (t === "arguments" && this.scope.inClassAndNotInNonArrowFunction) {
this.raise(p.ArgumentsInClass, e);
return;
}
}
recordAwaitIfAllowed() {
let t = this.prodParam.hasAwait;
return t && !this.scope.inFunction && (this.state.hasTopLevelAwait = true), t;
}
parseAwait(t) {
let e = this.startNodeAt(t);
return this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter, e), this.eat(55) && this.raise(p.ObsoleteAwaitStar, e), !this.scope.inFunction && !(this.optionFlags & 1) && (this.isAmbiguousPrefixOrIdentifier() ? this.ambiguousScriptDifferentAst = true : this.sawUnambiguousESM = true), this.state.soloAwait || (e.argument = this.parseMaybeUnary(null, true)), this.finishNode(e, "AwaitExpression");
}
isAmbiguousPrefixOrIdentifier() {
if (this.hasPrecedingLineBreak())
return true;
let { type: t } = this.state;
return t === 53 || t === 10 || t === 0 || $e(t) || t === 102 && !this.state.containsEsc || t === 138 || t === 56 || this.hasPlugin("v8intrinsic") && t === 54;
}
parseYield(t) {
let e = this.startNodeAt(t);
this.expressionScope.recordParameterInitializerError(p.YieldInParameter, e);
let s = false, i = null;
if (!this.hasPrecedingLineBreak())
switch (s = this.eat(55), this.state.type) {
case 13:
case 140:
case 8:
case 11:
case 3:
case 9:
case 14:
case 12:
if (!s)
break;
default:
i = this.parseMaybeAssign();
}
return e.delegate = s, e.argument = i, this.finishNode(e, "YieldExpression");
}
parseImportCall(t) {
if (this.next(), t.source = this.parseMaybeAssignAllowIn(), t.options = null, this.eat(12)) {
if (this.match(11))
this.addTrailingCommaExtraToNode(t.source);
else if (t.options = this.parseMaybeAssignAllowIn(), this.eat(12) && (this.addTrailingCommaExtraToNode(t.options), !this.match(11))) {
do
this.parseMaybeAssignAllowIn();
while (this.eat(12) && !this.match(11));
this.raise(p.ImportCallArity, t);
}
}
return this.expect(11), this.finishNode(t, "ImportExpression");
}
checkPipelineAtInfixOperator(t, e) {
this.hasPlugin(["pipelineOperator", { proposal: "smart" }]) && t.type === "SequenceExpression" && this.raise(p.PipelineHeadSequenceExpression, e);
}
parseSmartPipelineBodyInStyle(t, e) {
if (this.isSimpleReference(t)) {
let s = this.startNodeAt(e);
return s.callee = t, this.finishNode(s, "PipelineBareFunction");
} else {
let s = this.startNodeAt(e);
return this.checkSmartPipeTopicBodyEarlyErrors(e), s.expression = t, this.finishNode(s, "PipelineTopicExpression");
}
}
isSimpleReference(t) {
switch (t.type) {
case "MemberExpression":
return !t.computed && this.isSimpleReference(t.object);
case "Identifier":
return true;
default:
return false;
}
}
checkSmartPipeTopicBodyEarlyErrors(t) {
if (this.match(19))
throw this.raise(p.PipelineBodyNoArrow, this.state.startLoc);
this.topicReferenceWasUsedInCurrentContext() || this.raise(p.PipelineTopicUnused, t);
}
withTopicBindingContext(t) {
let e = this.state.topicContext;
this.state.topicContext = { maxNumOfResolvableTopics: 1, maxTopicIndex: null };
try {
return t();
} finally {
this.state.topicContext = e;
}
}
withSmartMixTopicForbiddingContext(t) {
return t();
}
withSoloAwaitPermittingContext(t) {
let e = this.state.soloAwait;
this.state.soloAwait = true;
try {
return t();
} finally {
this.state.soloAwait = e;
}
}
allowInAnd(t) {
let e = this.prodParam.currentFlags();
if (8 & ~e) {
this.prodParam.enter(e | 8);
try {
return t();
} finally {
this.prodParam.exit();
}
}
return t();
}
disallowInAnd(t) {
let e = this.prodParam.currentFlags();
if (8 & e) {
this.prodParam.enter(e & -9);
try {
return t();
} finally {
this.prodParam.exit();
}
}
return t();
}
registerTopicReference() {
this.state.topicContext.maxTopicIndex = 0;
}
topicReferenceIsAllowedInCurrentContext() {
return this.state.topicContext.maxNumOfResolvableTopics >= 1;
}
topicReferenceWasUsedInCurrentContext() {
return this.state.topicContext.maxTopicIndex != null && this.state.topicContext.maxTopicIndex >= 0;
}
parseFSharpPipelineBody(t) {
let e = this.state.startLoc;
this.state.potentialArrowAt = this.state.start;
let s = this.state.inFSharpPipelineDirectBody;
this.state.inFSharpPipelineDirectBody = true;
let i = this.parseExprOp(this.parseMaybeUnaryOrPrivate(), e, t);
return this.state.inFSharpPipelineDirectBody = s, i;
}
parseModuleExpression() {
this.expectPlugin("moduleBlocks");
let t = this.startNode();
this.next(), this.match(5) || this.unexpected(null, 5);
let e = this.startNodeAt(this.state.endLoc);
this.next();
let s = this.initializeScopes(true);
this.enterInitialScopes();
try {
t.body = this.parseProgram(e, 8, "module");
} finally {
s();
}
return this.finishNode(t, "ModuleExpression");
}
parseVoidPattern(t) {
this.expectPlugin("discardBinding");
let e = this.startNode();
return t != null && (t.voidPatternLoc = this.state.startLoc), this.next(), this.finishNode(e, "VoidPattern");
}
parseMaybeAssignAllowInOrVoidPattern(t, e, s) {
if (e != null && this.match(88)) {
let i = this.lookaheadCharCode();
if (i === 44 || i === (t === 3 ? 93 : t === 8 ? 125 : 41) || i === 61)
return this.parseMaybeDefault(this.state.startLoc, this.parseVoidPattern(e));
}
return this.parseMaybeAssignAllowIn(e, s);
}
parsePropertyNamePrefixOperator(t) {}
};
var ze = { kind: 1 };
var sr = { kind: 2 };
var ir = /[\uD800-\uDFFF]/u;
var qe = /in(?:stanceof)?/y;
function rr(a2, t, e) {
for (let s = 0;s < a2.length; s++) {
let i = a2[s], { type: r } = i;
typeof r == "number" && (i.type = Gt(r));
}
return a2;
}
var ut = class extends pt {
parseTopLevel(t, e) {
return t.program = this.parseProgram(e, 140, this.options.sourceType === "module" ? "module" : "script"), t.comments = this.comments, this.optionFlags & 256 && (t.tokens = rr(this.tokens, this.input, this.startIndex)), this.finishNode(t, "File");
}
parseProgram(t, e, s) {
if (t.sourceType = s, t.interpreter = this.parseInterpreterDirective(), this.parseBlockBody(t, true, true, e), this.inModule) {
if (!(this.optionFlags & 64) && this.scope.undefinedExports.size > 0)
for (let [r, n] of Array.from(this.scope.undefinedExports))
this.raise(p.ModuleExportUndefined, n, { localName: r });
this.addExtra(t, "topLevelAwait", this.state.hasTopLevelAwait);
}
let i;
return e === 140 ? i = this.finishNode(t, "Program") : i = this.finishNodeAt(t, "Program", D(this.state.startLoc, -1)), i;
}
stmtToDirective(t) {
let e = this.castNodeTo(t, "Directive"), s = this.castNodeTo(t.expression, "DirectiveLiteral"), i = s.value, r = this.input.slice(this.offsetToSourcePos(s.start), this.offsetToSourcePos(s.end)), n = s.value = r.slice(1, -1);
return this.addExtra(s, "raw", r), this.addExtra(s, "rawValue", n), this.addExtra(s, "expressionValue", i), e.value = s, delete t.expression, e;
}
parseInterpreterDirective() {
if (!this.match(28))
return null;
let t = this.startNode();
return t.value = this.state.value, this.next(), this.finishNode(t, "InterpreterDirective");
}
isLet() {
return this.isContextual(100) ? this.hasFollowingBindingAtom() : false;
}
isUsing() {
return this.isContextual(107) ? this.nextTokenIsIdentifierOnSameLine() : false;
}
isForUsing() {
if (!this.isContextual(107))
return false;
let t = this.nextTokenInLineStart(), e = this.codePointAtPos(t);
if (this.isUnparsedContextual(t, "of")) {
let s = this.lookaheadCharCodeSince(t + 2);
if (s !== 61 && s !== 58 && s !== 59)
return false;
}
return !!(this.chStartsBindingIdentifier(e, t) || this.isUnparsedContextual(t, "void"));
}
nextTokenIsIdentifierOnSameLine() {
let t = this.nextTokenInLineStart(), e = this.codePointAtPos(t);
return this.chStartsBindingIdentifier(e, t);
}
isAwaitUsing() {
if (!this.isContextual(96))
return false;
let t = this.nextTokenInLineStart();
if (this.isUnparsedContextual(t, "using")) {
t = this.nextTokenInLineStartSince(t + 5);
let e = this.codePointAtPos(t);
if (this.chStartsBindingIdentifier(e, t))
return true;
}
return false;
}
chStartsBindingIdentifier(t, e) {
if (B(t)) {
if (qe.lastIndex = e, qe.test(this.input)) {
let s = this.codePointAtPos(qe.lastIndex);
if (!K(s) && s !== 92)
return false;
}
return true;
} else
return t === 92;
}
chStartsBindingPattern(t) {
return t === 91 || t === 123;
}
hasFollowingBindingAtom() {
let t = this.nextTokenStart(), e = this.codePointAtPos(t);
return this.chStartsBindingPattern(e) || this.chStartsBindingIdentifier(e, t);
}
hasInLineFollowingBindingIdentifierOrBrace() {
let t = this.nextTokenInLineStart(), e = this.codePointAtPos(t);
return e === 123 || this.chStartsBindingIdentifier(e, t);
}
allowsUsing() {
return (this.scope.inModule || !this.scope.inTopLevel) && !this.scope.inBareCaseStatement;
}
parseModuleItem() {
return this.parseStatementLike(15);
}
parseStatementListItem() {
return this.parseStatementLike(6 | (!this.options.annexB || this.state.strict ? 0 : 8));
}
parseStatementOrSloppyAnnexBFunctionDeclaration(t = false) {
let e = 0;
return this.options.annexB && !this.state.strict && (e |= 4, t && (e |= 8)), this.parseStatementLike(e);
}
parseStatement() {
return this.parseStatementLike(0);
}
parseStatementLike(t) {
let e = null;
return this.match(26) && (e = this.parseDecorators(true)), this.parseStatementContent(t, e);
}
parseStatementContent(t, e) {
let s = this.state.type, i = this.startNode(), r = !!(t & 2), n = !!(t & 4), o = t & 1;
switch (s) {
case 60:
return this.parseBreakContinueStatement(i, true);
case 63:
return this.parseBreakContinueStatement(i, false);
case 64:
return this.parseDebuggerStatement(i);
case 90:
return this.parseDoWhileStatement(i);
case 91:
return this.parseForStatement(i);
case 68:
if (this.lookaheadCharCode() === 46)
break;
return n || this.raise(this.state.strict ? p.StrictFunction : this.options.annexB ? p.SloppyFunctionAnnexB : p.SloppyFunction, this.state.startLoc), this.parseFunctionStatement(i, false, !r && n);
case 80:
return r || this.unexpected(), this.parseClass(this.maybeTakeDecorators(e, i), true);
case 69:
return this.parseIfStatement(i);
case 70:
return this.parseReturnStatement(i);
case 71:
return this.parseSwitchStatement(i);
case 72:
return this.parseThrowStatement(i);
case 73:
return this.parseTryStatement(i);
case 96:
if (this.isAwaitUsing())
return this.allowsUsing() ? r ? this.recordAwaitIfAllowed() || this.raise(p.AwaitUsingNotInAsyncContext, i) : this.raise(p.UnexpectedLexicalDeclaration, i) : this.raise(p.UnexpectedUsingDeclaration, i), this.next(), this.parseVarStatement(i, "await using");
break;
case 107:
if (this.state.containsEsc || !this.hasInLineFollowingBindingIdentifierOrBrace())
break;
return this.allowsUsing() ? r || this.raise(p.UnexpectedLexicalDeclaration, this.state.startLoc) : this.raise(p.UnexpectedUsingDeclaration, this.state.startLoc), this.parseVarStatement(i, "using");
case 100: {
if (this.state.containsEsc)
break;
let u = this.nextTokenStart(), f = this.codePointAtPos(u);
if (f !== 91 && (!r && this.hasFollowingLineBreak() || !this.chStartsBindingIdentifier(f, u) && f !== 123))
break;
}
case 75:
r || this.raise(p.UnexpectedLexicalDeclaration, this.state.startLoc);
case 74: {
let u = this.state.value;
return this.parseVarStatement(i, u);
}
case 92:
return this.parseWhileStatement(i);
case 76:
return this.parseWithStatement(i);
case 5:
return this.parseBlock();
case 13:
return this.parseEmptyStatement(i);
case 83: {
let u = this.lookaheadCharCode();
if (u === 40 || u === 46)
break;
}
case 82: {
!(this.optionFlags & 8) && !o && this.raise(p.UnexpectedImportExport, this.state.startLoc), this.next();
let u;
return s === 83 ? u = this.parseImport(i) : u = this.parseExport(i, e), this.assertModuleNodeAllowed(u), u;
}
default:
if (this.isAsyncFunction())
return r || this.raise(p.AsyncFunctionInSingleStatementContext, this.state.startLoc), this.next(), this.parseFunctionStatement(i, true, !r && n);
}
let h = this.state.value, l = this.parseExpression();
return w(s) && l.type === "Identifier" && this.eat(14) ? this.parseLabeledStatement(i, h, l, t) : this.parseExpressionStatement(i, l, e);
}
assertModuleNodeAllowed(t) {
!(this.optionFlags & 8) && !this.inModule && this.raise(p.ImportOutsideModule, t);
}
decoratorsEnabledBeforeExport() {
return this.hasPlugin("decorators-legacy") ? true : this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") !== false;
}
maybeTakeDecorators(t, e, s) {
return t && (e.decorators?.length ? (typeof this.getPluginOption("decorators", "decoratorsBeforeExport") != "boolean" && this.raise(p.DecoratorsBeforeAfterExport, e.decorators[0]), e.decorators.unshift(...t)) : e.decorators = t, this.resetStartLocationFromNode(e, t[0]), s && this.resetStartLocationFromNode(s, e)), e;
}
canHaveLeadingDecorator() {
return this.match(80);
}
parseDecorators(t) {
let e = [];
do
e.push(this.parseDecorator());
while (this.match(26));
if (this.match(82))
t || this.unexpected(), this.decoratorsEnabledBeforeExport() || this.raise(p.DecoratorExportClass, this.state.startLoc);
else if (!this.canHaveLeadingDecorator())
throw this.raise(p.UnexpectedLeadingDecorator, this.state.startLoc);
return e;
}
parseDecorator() {
this.expectOnePlugin(["decorators", "decorators-legacy"]);
let t = this.startNode();
if (this.next(), this.hasPlugin("decorators")) {
let e = this.state.startLoc, s;
if (this.match(10)) {
let i = this.state.startLoc;
this.next(), s = this.parseExpression(), this.expect(11), s = this.wrapParenthesis(i, s);
let r = this.state.startLoc;
t.expression = this.parseMaybeDecoratorArguments(s, i), this.getPluginOption("decorators", "allowCallParenthesized") === false && t.expression !== s && this.raise(p.DecoratorArgumentsOutsideParentheses, r);
} else {
for (s = this.parseIdentifier(false);this.eat(16); ) {
let i = this.startNodeAt(e);
i.object = s, this.match(139) ? (this.classScope.usePrivateName(this.state.value, this.state.startLoc), i.property = this.parsePrivateName()) : i.property = this.parseIdentifier(true), i.computed = false, s = this.finishNode(i, "MemberExpression");
}
t.expression = this.parseMaybeDecoratorArguments(s, e);
}
} else
t.expression = this.parseExprSubscripts();
return this.finishNode(t, "Decorator");
}
parseMaybeDecoratorArguments(t, e) {
if (this.eat(10)) {
let s = this.startNodeAt(e);
return s.callee = t, s.arguments = this.parseCallExpressionArguments(), this.toReferencedList(s.arguments), this.finishNode(s, "CallExpression");
}
return t;
}
parseBreakContinueStatement(t, e) {
return this.next(), this.isLineTerminator() ? t.label = null : (t.label = this.parseIdentifier(), this.semicolon()), this.verifyBreakContinue(t, e), this.finishNode(t, e ? "BreakStatement" : "ContinueStatement");
}
verifyBreakContinue(t, e) {
let s;
for (s = 0;s < this.state.labels.length; ++s) {
let i = this.state.labels[s];
if ((t.label == null || i.name === t.label.name) && (i.kind != null && (e || i.kind === 1) || t.label && e))
break;
}
if (s === this.state.labels.length) {
let i = e ? "BreakStatement" : "ContinueStatement";
this.raise(p.IllegalBreakContinue, t, { type: i });
}
}
parseDebuggerStatement(t) {
return this.next(), this.semicolon(), this.finishNode(t, "DebuggerStatement");
}
parseHeaderExpression() {
this.expect(10);
let t = this.parseExpression();
return this.expect(11), t;
}
parseDoWhileStatement(t) {
return this.next(), this.state.labels.push(ze), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.state.labels.pop(), this.expect(92), t.test = this.parseHeaderExpression(), this.eat(13), this.finishNode(t, "DoWhileStatement");
}
parseForStatement(t) {
this.next(), this.state.labels.push(ze);
let e = null;
if (this.isContextual(96) && this.recordAwaitIfAllowed() && (e = this.state.startLoc, this.next()), this.scope.enter(0), this.expect(10), this.match(13))
return e !== null && this.unexpected(e), this.parseFor(t, null);
let s = this.isContextual(100);
{
let h = this.isAwaitUsing(), l = h || this.isForUsing(), u = s && this.hasFollowingBindingAtom() || l;
if (this.match(74) || this.match(75) || u) {
let f = this.startNode(), d;
h ? (d = "await using", this.recordAwaitIfAllowed() || this.raise(p.AwaitUsingNotInAsyncContext, this.state.startLoc), this.next()) : d = this.state.value, this.next(), this.parseVar(f, true, d);
let x = this.finishNode(f, "VariableDeclaration"), A = this.match(58);
return A && l && this.raise(p.ForInUsing, x), (A || this.isContextual(102)) && x.declarations.length === 1 ? this.parseForIn(t, x, e) : (e !== null && this.unexpected(e), this.parseFor(t, x));
}
}
let i = this.isContextual(95), r = new Y, n = this.parseExpression(true, r), o = this.isContextual(102);
if (o && (s && this.raise(p.ForOfLet, n), e === null && i && n.type === "Identifier" && this.raise(p.ForOfAsync, n)), o || this.match(58)) {
this.checkDestructuringPrivate(r), this.toAssignable(n, true);
let h = o ? "ForOfStatement" : "ForInStatement";
return this.checkLVal(n, { type: h }), this.parseForIn(t, n, e);
} else
this.checkExpressionErrors(r, true);
return e !== null && this.unexpected(e), this.parseFor(t, n);
}
parseFunctionStatement(t, e, s) {
return this.next(), this.parseFunction(t, 1 | (s ? 2 : 0) | (e ? 8 : 0));
}
parseIfStatement(t) {
return this.next(), t.test = this.parseHeaderExpression(), t.consequent = this.parseStatementOrSloppyAnnexBFunctionDeclaration(), t.alternate = this.eat(66) ? this.parseStatementOrSloppyAnnexBFunctionDeclaration() : null, this.finishNode(t, "IfStatement");
}
parseReturnStatement(t) {
return this.prodParam.hasReturn || this.raise(p.IllegalReturn, this.state.startLoc), this.next(), this.isLineTerminator() ? t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "ReturnStatement");
}
parseSwitchStatement(t) {
this.next(), t.discriminant = this.parseHeaderExpression();
let e = t.cases = [];
this.expect(5), this.state.labels.push(sr), this.scope.enter(256);
let s;
for (let i;!this.match(8); )
if (this.match(61) || this.match(65)) {
let r = this.match(61);
s && this.finishNode(s, "SwitchCase"), e.push(s = this.startNode()), s.consequent = [], this.next(), r ? s.test = this.parseExpression() : (i && this.raise(p.MultipleDefaultsInSwitch, this.state.lastTokStartLoc), i = true, s.test = null), this.expect(14);
} else
s ? s.consequent.push(this.parseStatementListItem()) : this.unexpected();
return this.scope.exit(), s && this.finishNode(s, "SwitchCase"), this.next(), this.state.labels.pop(), this.finishNode(t, "SwitchStatement");
}
parseThrowStatement(t) {
return this.next(), this.hasPrecedingLineBreak() && this.raise(p.NewlineAfterThrow, this.state.lastTokEndLoc), t.argument = this.parseExpression(), this.semicolon(), this.finishNode(t, "ThrowStatement");
}
parseCatchClauseParam() {
let t = this.parseBindingAtom();
return this.scope.enter(this.options.annexB && t.type === "Identifier" ? 8 : 0), this.checkLVal(t, { type: "CatchClause" }, 9), t;
}
parseTryStatement(t) {
if (this.next(), t.block = this.parseBlock(), t.handler = null, this.match(62)) {
let e = this.startNode();
this.next(), this.match(10) ? (this.expect(10), e.param = this.parseCatchClauseParam(), this.expect(11)) : (e.param = null, this.scope.enter(0)), e.body = this.withSmartMixTopicForbiddingContext(() => this.parseBlock(false, false)), this.scope.exit(), t.handler = this.finishNode(e, "CatchClause");
}
return t.finalizer = this.eat(67) ? this.parseBlock() : null, !t.handler && !t.finalizer && this.raise(p.NoCatchOrFinally, t), this.finishNode(t, "TryStatement");
}
parseVarStatement(t, e, s = false) {
return this.next(), this.parseVar(t, false, e, s), this.semicolon(), this.finishNode(t, "VariableDeclaration");
}
parseWhileStatement(t) {
return this.next(), t.test = this.parseHeaderExpression(), this.state.labels.push(ze), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.state.labels.pop(), this.finishNode(t, "WhileStatement");
}
parseWithStatement(t) {
return this.state.strict && this.raise(p.StrictWith, this.state.startLoc), this.next(), t.object = this.parseHeaderExpression(), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.finishNode(t, "WithStatement");
}
parseEmptyStatement(t) {
return this.next(), this.finishNode(t, "EmptyStatement");
}
parseLabeledStatement(t, e, s, i) {
for (let n of this.state.labels)
n.name === e && this.raise(p.LabelRedeclaration, s, { labelName: e });
let r = pi(this.state.type) ? 1 : this.match(71) ? 2 : null;
for (let n = this.state.labels.length - 1;n >= 0; n--) {
let o = this.state.labels[n];
if (o.statementStart === t.start)
o.statementStart = this.sourceToOffsetPos(this.state.start), o.kind = r;
else
break;
}
return this.state.labels.push({ name: e, kind: r, statementStart: this.sourceToOffsetPos(this.state.start) }), t.body = i & 8 ? this.parseStatementOrSloppyAnnexBFunctionDeclaration(true) : this.parseStatement(), this.state.labels.pop(), t.label = s, this.finishNode(t, "LabeledStatement");
}
parseExpressionStatement(t, e, s) {
return t.expression = e, this.semicolon(), this.finishNode(t, "ExpressionStatement");
}
parseBlock(t = false, e = true, s) {
let i = this.startNode();
return t && this.state.strictErrors.clear(), this.expect(5), e && this.scope.enter(0), this.parseBlockBody(i, t, false, 8, s), e && this.scope.exit(), this.finishNode(i, "BlockStatement");
}
isValidDirective(t) {
return t.type === "ExpressionStatement" && t.expression.type === "StringLiteral" && !t.expression.extra.parenthesized;
}
parseBlockBody(t, e, s, i, r) {
let n = t.body = [], o = t.directives = [];
this.parseBlockOrModuleBlockBody(n, e ? o : undefined, s, i, r);
}
parseBlockOrModuleBlockBody(t, e, s, i, r) {
let n = this.state.strict, o = false, h = false;
for (;!this.match(i); ) {
let l = s ? this.parseModuleItem() : this.parseStatementListItem();
if (e && !h) {
if (this.isValidDirective(l)) {
let u = this.stmtToDirective(l);
e.push(u), !o && u.value.value === "use strict" && (o = true, this.setStrict(true));
continue;
}
h = true, this.state.strictErrors.clear();
}
t.push(l);
}
r?.call(this, o), n || this.setStrict(false), this.next();
}
parseFor(t, e) {
return t.init = e, this.semicolon(false), t.test = this.match(13) ? null : this.parseExpression(), this.semicolon(false), t.update = this.match(11) ? null : this.parseExpression(), this.expect(11), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.scope.exit(), this.state.labels.pop(), this.finishNode(t, "ForStatement");
}
parseForIn(t, e, s) {
let i = this.match(58);
return this.next(), i ? s !== null && this.unexpected(s) : t.await = s !== null, e.type === "VariableDeclaration" && e.declarations[0].init != null && (!i || !this.options.annexB || this.state.strict || e.kind !== "var" || e.declarations[0].id.type !== "Identifier") && this.raise(p.ForInOfLoopInitializer, e, { type: i ? "ForInStatement" : "ForOfStatement" }), e.type === "AssignmentPattern" && this.raise(p.InvalidLhs, e, { ancestor: { type: "ForStatement" } }), t.left = e, t.right = i ? this.parseExpression() : this.parseMaybeAssignAllowIn(), this.expect(11), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.scope.exit(), this.state.labels.pop(), this.finishNode(t, i ? "ForInStatement" : "ForOfStatement");
}
parseVar(t, e, s, i = false) {
let r = t.declarations = [];
for (t.kind = s;; ) {
let n = this.startNode();
if (this.parseVarId(n, s), n.init = this.eat(29) ? e ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn() : null, n.init === null && !i && (n.id.type !== "Identifier" && !(e && (this.match(58) || this.isContextual(102))) ? this.raise(p.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: "destructuring" }) : (s === "const" || s === "using" || s === "await using") && !(this.match(58) || this.isContextual(102)) && this.raise(p.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: s })), r.push(this.finishNode(n, "VariableDeclarator")), !this.eat(12))
break;
}
return t;
}
parseVarId(t, e) {
let s = this.parseBindingAtom();
e === "using" || e === "await using" ? (s.type === "ArrayPattern" || s.type === "ObjectPattern") && this.raise(p.UsingDeclarationHasBindingPattern, s.loc.start) : s.type === "VoidPattern" && this.raise(p.UnexpectedVoidPattern, s.loc.start), this.checkLVal(s, { type: "VariableDeclarator" }, e === "var" ? 5 : 8201), t.id = s;
}
parseAsyncFunctionExpression(t) {
return this.parseFunction(t, 8);
}
parseFunction(t, e = 0) {
let s = e & 2, i = !!(e & 1), r = i && !(e & 4), n = !!(e & 8);
this.initFunction(t, n), this.match(55) && (s && this.raise(p.GeneratorInSingleStatementContext, this.state.startLoc), this.next(), t.generator = true), i && (t.id = this.parseFunctionId(r));
let o = this.state.maybeInArrowParameters;
return this.state.maybeInArrowParameters = false, this.scope.enter(514), this.prodParam.enter(Se(n, t.generator)), i || (t.id = this.parseFunctionId()), this.parseFunctionParams(t, false), this.withSmartMixTopicForbiddingContext(() => {
this.parseFunctionBodyAndFinish(t, i ? "FunctionDeclaration" : "FunctionExpression");
}), this.prodParam.exit(), this.scope.exit(), i && !s && this.registerFunctionStatementId(t), this.state.maybeInArrowParameters = o, t;
}
parseFunctionId(t) {
return t || w(this.state.type) ? this.parseIdentifier() : null;
}
parseFunctionParams(t, e) {
this.expect(10), this.expressionScope.enter(zi()), t.params = this.parseBindingList(11, 41, 2 | (e ? 4 : 0)), this.expressionScope.exit();
}
registerFunctionStatementId(t) {
t.id && this.scope.declareName(t.id.name, !this.options.annexB || this.state.strict || t.generator || t.async ? this.scope.treatFunctionsAsVar ? 5 : 8201 : 17, t.id.loc.start);
}
parseClass(t, e, s) {
this.next();
let i = this.state.strict;
return this.state.strict = true, this.parseClassId(t, e, s), this.parseClassSuper(t), t.body = this.parseClassBody(!!t.superClass, i), this.finishNode(t, e ? "ClassDeclaration" : "ClassExpression");
}
isClassProperty() {
return this.match(29) || this.match(13) || this.match(8);
}
isClassMethod() {
return this.match(10);
}
nameIsConstructor(t) {
return t.type === "Identifier" && t.name === "constructor" || t.type === "StringLiteral" && t.value === "constructor";
}
isNonstaticConstructor(t) {
return !t.computed && !t.static && this.nameIsConstructor(t.key);
}
parseClassBody(t, e) {
this.classScope.enter();
let s = { hadConstructor: false, hadSuperClass: t }, i = [], r = this.startNode();
if (r.body = [], this.expect(5), this.withSmartMixTopicForbiddingContext(() => {
for (;!this.match(8); ) {
if (this.eat(13)) {
if (i.length > 0)
throw this.raise(p.DecoratorSemicolon, this.state.lastTokEndLoc);
continue;
}
if (this.match(26)) {
i.push(this.parseDecorator());
continue;
}
let n = this.startNode();
i.length && (n.decorators = i, this.resetStartLocationFromNode(n, i[0]), i = []), this.parseClassMember(r, n, s), n.kind === "constructor" && n.decorators && n.decorators.length > 0 && this.raise(p.DecoratorConstructor, n);
}
}), this.state.strict = e, this.next(), i.length)
throw this.raise(p.TrailingDecorator, this.state.startLoc);
return this.classScope.exit(), this.finishNode(r, "ClassBody");
}
parseClassMemberFromModifier(t, e) {
let s = this.parseIdentifier(true);
if (this.isClassMethod()) {
let i = e;
return i.kind = "method", i.computed = false, i.key = s, i.static = false, this.pushClassMethod(t, i, false, false, false, false), true;
} else if (this.isClassProperty()) {
let i = e;
return i.computed = false, i.key = s, i.static = false, t.body.push(this.parseClassProperty(i)), true;
}
return this.resetPreviousNodeTrailingComments(s), false;
}
parseClassMember(t, e, s) {
let i = this.isContextual(106);
if (i) {
if (this.parseClassMemberFromModifier(t, e))
return;
if (this.eat(5)) {
this.parseClassStaticBlock(t, e);
return;
}
}
this.parseClassMemberWithIsStatic(t, e, s, i);
}
parseClassMemberWithIsStatic(t, e, s, i) {
let r = e, n = e, o = e, h = e, l = e, u = r, f = r;
if (e.static = i, this.parsePropertyNamePrefixOperator(e), this.eat(55)) {
u.kind = "method";
let C = this.match(139);
if (this.parseClassElementName(u), this.parsePostMemberNameModifiers(u), C) {
this.pushClassPrivateMethod(t, n, true, false);
return;
}
this.isNonstaticConstructor(r) && this.raise(p.ConstructorIsGenerator, r.key), this.pushClassMethod(t, r, true, false, false, false);
return;
}
let d = !this.state.containsEsc && w(this.state.type), x = this.parseClassElementName(e), A = d ? x.name : null, k = this.isPrivateName(x), N = this.state.startLoc;
if (this.parsePostMemberNameModifiers(f), this.isClassMethod()) {
if (u.kind = "method", k) {
this.pushClassPrivateMethod(t, n, false, false);
return;
}
let C = this.isNonstaticConstructor(r), I = false;
C && (r.kind = "constructor", s.hadConstructor && !this.hasPlugin("typescript") && this.raise(p.DuplicateConstructor, x), C && this.hasPlugin("typescript") && e.override && this.raise(p.OverrideOnConstructor, x), s.hadConstructor = true, I = s.hadSuperClass), this.pushClassMethod(t, r, false, false, C, I);
} else if (this.isClassProperty())
k ? this.pushClassPrivateProperty(t, h) : this.pushClassProperty(t, o);
else if (A === "async" && !this.isLineTerminator()) {
this.resetPreviousNodeTrailingComments(x);
let C = this.eat(55);
f.optional && this.unexpected(N), u.kind = "method";
let I = this.match(139);
this.parseClassElementName(u), this.parsePostMemberNameModifiers(f), I ? this.pushClassPrivateMethod(t, n, C, true) : (this.isNonstaticConstructor(r) && this.raise(p.ConstructorIsAsync, r.key), this.pushClassMethod(t, r, C, true, false, false));
} else if ((A === "get" || A === "set") && !(this.match(55) && this.isLineTerminator())) {
this.resetPreviousNodeTrailingComments(x), u.kind = A;
let C = this.match(139);
this.parseClassElementName(r), C ? this.pushClassPrivateMethod(t, n, false, false) : (this.isNonstaticConstructor(r) && this.raise(p.ConstructorIsAccessor, r.key), this.pushClassMethod(t, r, false, false, false, false)), this.checkGetterSetterParams(r);
} else if (A === "accessor" && !this.isLineTerminator()) {
this.expectPlugin("decoratorAutoAccessors"), this.resetPreviousNodeTrailingComments(x);
let C = this.match(139);
this.parseClassElementName(o), this.pushClassAccessorProperty(t, l, C);
} else
this.isLineTerminator() ? k ? this.pushClassPrivateProperty(t, h) : this.pushClassProperty(t, o) : this.unexpected();
}
parseClassElementName(t) {
let { type: e, value: s } = this.state;
if ((e === 132 || e === 134) && t.static && s === "prototype" && this.raise(p.StaticPrototype, this.state.startLoc), e === 139) {
s === "constructor" && this.raise(p.ConstructorClassPrivateField, this.state.startLoc);
let i = this.parsePrivateName();
return t.key = i, i;
}
return this.parsePropertyName(t), t.key;
}
parseClassStaticBlock(t, e) {
this.scope.enter(720);
let s = this.state.labels;
this.state.labels = [], this.prodParam.enter(0);
let i = e.body = [];
this.parseBlockOrModuleBlockBody(i, undefined, false, 8), this.prodParam.exit(), this.scope.exit(), this.state.labels = s, t.body.push(this.finishNode(e, "StaticBlock")), e.decorators?.length && this.raise(p.DecoratorStaticBlock, e);
}
pushClassProperty(t, e) {
!e.computed && this.nameIsConstructor(e.key) && this.raise(p.ConstructorClassField, e.key), t.body.push(this.parseClassProperty(e));
}
pushClassPrivateProperty(t, e) {
let s = this.parseClassPrivateProperty(e);
t.body.push(s), this.classScope.declarePrivateName(this.getPrivateNameSV(s.key), 0, s.key.loc.start);
}
pushClassAccessorProperty(t, e, s) {
!s && !e.computed && this.nameIsConstructor(e.key) && this.raise(p.ConstructorClassField, e.key);
let i = this.parseClassAccessorProperty(e);
t.body.push(i), s && this.classScope.declarePrivateName(this.getPrivateNameSV(i.key), 0, i.key.loc.start);
}
pushClassMethod(t, e, s, i, r, n) {
t.body.push(this.parseMethod(e, s, i, r, n, "ClassMethod", true));
}
pushClassPrivateMethod(t, e, s, i) {
let r = this.parseMethod(e, s, i, false, false, "ClassPrivateMethod", true);
t.body.push(r);
let n = r.kind === "get" ? r.static ? 6 : 2 : r.kind === "set" ? r.static ? 5 : 1 : 0;
this.declareClassPrivateMethodInScope(r, n);
}
declareClassPrivateMethodInScope(t, e) {
this.classScope.declarePrivateName(this.getPrivateNameSV(t.key), e, t.key.loc.start);
}
parsePostMemberNameModifiers(t) {}
parseClassPrivateProperty(t) {
return this.parseInitializer(t), this.semicolon(), this.finishNode(t, "ClassPrivateProperty");
}
parseClassProperty(t) {
return this.parseInitializer(t), this.semicolon(), this.finishNode(t, "ClassProperty");
}
parseClassAccessorProperty(t) {
return this.parseInitializer(t), this.semicolon(), this.finishNode(t, "ClassAccessorProperty");
}
parseInitializer(t) {
this.scope.enter(592), this.expressionScope.enter(as()), this.prodParam.enter(0), t.value = this.eat(29) ? this.parseMaybeAssignAllowIn() : null, this.expressionScope.exit(), this.prodParam.exit(), this.scope.exit();
}
parseClassId(t, e, s, i = 8331) {
if (w(this.state.type))
t.id = this.parseIdentifier(), e && this.declareNameFromIdentifier(t.id, i);
else if (s || !e)
t.id = null;
else
throw this.raise(p.MissingClassName, this.state.startLoc);
}
parseClassSuper(t) {
t.superClass = this.eat(81) ? this.parseExprSubscripts() : null;
}
parseExport(t, e) {
let s = this.parseMaybeImportPhase(t, true), i = this.maybeParseExportDefaultSpecifier(t, s), r = !i || this.eat(12), n = r && this.eatExportStar(t), o = n && this.maybeParseExportNamespaceSpecifier(t), h = r && (!o || this.eat(12)), l = i || n;
if (n && !o) {
if (i && this.unexpected(), e)
throw this.raise(p.UnsupportedDecoratorExport, t);
return this.parseExportFrom(t, true), this.sawUnambiguousESM = true, this.finishNode(t, "ExportAllDeclaration");
}
let u = this.maybeParseExportNamedSpecifiers(t);
i && r && !n && !u && this.unexpected(null, 5), o && h && this.unexpected(null, 98);
let f;
if (l || u) {
if (f = false, e)
throw this.raise(p.UnsupportedDecoratorExport, t);
this.parseExportFrom(t, l);
} else
f = this.maybeParseExportDeclaration(t);
if (l || u || f) {
let d = t;
if (this.checkExport(d, true, false, !!d.source), d.declaration?.type === "ClassDeclaration")
this.maybeTakeDecorators(e, d.declaration, d);
else if (e)
throw this.raise(p.UnsupportedDecoratorExport, t);
return this.sawUnambiguousESM = true, this.finishNode(d, "ExportNamedDeclaration");
}
if (this.eat(65)) {
let d = t, x = this.parseExportDefaultExpression();
if (d.declaration = x, x.type === "ClassDeclaration")
this.maybeTakeDecorators(e, x, d);
else if (e)
throw this.raise(p.UnsupportedDecoratorExport, t);
return this.checkExport(d, true, true), this.sawUnambiguousESM = true, this.finishNode(d, "ExportDefaultDeclaration");
}
throw this.unexpected(null, 5);
}
eatExportStar(t) {
return this.eat(55);
}
maybeParseExportDefaultSpecifier(t, e) {
if (e || this.isExportDefaultSpecifier()) {
this.expectPlugin("exportDefaultFrom", e?.loc.start);
let s = e || this.parseIdentifier(true), i = this.startNodeAtNode(s);
return i.exported = s, t.specifiers = [this.finishNode(i, "ExportDefaultSpecifier")], true;
}
return false;
}
maybeParseExportNamespaceSpecifier(t) {
if (this.isContextual(93)) {
t.specifiers ?? (t.specifiers = []);
let e = this.startNodeAt(this.state.lastTokStartLoc);
return this.next(), e.exported = this.parseModuleExportName(), t.specifiers.push(this.finishNode(e, "ExportNamespaceSpecifier")), true;
}
return false;
}
maybeParseExportNamedSpecifiers(t) {
if (this.match(5)) {
let e = t;
e.specifiers || (e.specifiers = []);
let s = e.exportKind === "type";
return e.specifiers.push(...this.parseExportSpecifiers(s)), e.source = null, e.attributes = [], e.declaration = null, true;
}
return false;
}
maybeParseExportDeclaration(t) {
return this.shouldParseExportDeclaration() ? (t.specifiers = [], t.source = null, t.attributes = [], t.declaration = this.parseExportDeclaration(t), true) : false;
}
isAsyncFunction() {
if (!this.isContextual(95))
return false;
let t = this.nextTokenInLineStart();
return this.isUnparsedContextual(t, "function");
}
parseExportDefaultExpression() {
let t = this.startNode();
if (this.match(68))
return this.next(), this.parseFunction(t, 5);
if (this.isAsyncFunction())
return this.next(), this.next(), this.parseFunction(t, 13);
if (this.match(80))
return this.parseClass(t, true, true);
if (this.match(26))
return this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") === true && this.raise(p.DecoratorBeforeExport, this.state.startLoc), this.parseClass(this.maybeTakeDecorators(this.parseDecorators(false), this.startNode()), true, true);
if (this.match(75) || this.match(74) || this.isLet() || this.isUsing() || this.isAwaitUsing())
throw this.raise(p.UnsupportedDefaultExport, this.state.startLoc);
let e = this.parseMaybeAssignAllowIn();
return this.semicolon(), e;
}
parseExportDeclaration(t) {
return this.match(80) ? this.parseClass(this.startNode(), true, false) : this.parseStatementListItem();
}
isExportDefaultSpecifier() {
let { type: t } = this.state;
if (w(t)) {
if (t === 95 && !this.state.containsEsc || t === 100)
return false;
if ((t === 130 || t === 129) && !this.state.containsEsc) {
let i = this.nextTokenStart(), r = this.input.charCodeAt(i);
if (r === 123 || this.chStartsBindingIdentifier(r, i) && !this.input.startsWith("from", i))
return this.expectOnePlugin(["flow", "typescript"]), false;
}
} else if (!this.match(65))
return false;
let e = this.nextTokenStart(), s = this.isUnparsedContextual(e, "from");
if (this.input.charCodeAt(e) === 44 || w(this.state.type) && s)
return true;
if (this.match(65) && s) {
let i = this.input.charCodeAt(this.nextTokenStartSince(e + 4));
return i === 34 || i === 39;
}
return false;
}
parseExportFrom(t, e) {
this.eatContextual(98) ? (t.source = this.parseImportSource(), this.checkExport(t), this.maybeParseImportAttributes(t), this.checkJSONModuleImport(t)) : e && this.unexpected(), this.semicolon();
}
shouldParseExportDeclaration() {
let { type: t } = this.state;
return t === 26 && (this.expectOnePlugin(["decorators", "decorators-legacy"]), this.hasPlugin("decorators")) ? (this.getPluginOption("decorators", "decoratorsBeforeExport") === true && this.raise(p.DecoratorBeforeExport, this.state.startLoc), true) : this.isUsing() ? (this.raise(p.UsingDeclarationExport, this.state.startLoc), true) : this.isAwaitUsing() ? (this.raise(p.UsingDeclarationExport, this.state.startLoc), true) : t === 74 || t === 75 || t === 68 || t === 80 || this.isLet() || this.isAsyncFunction();
}
checkExport(t, e, s, i) {
if (e) {
if (s) {
if (this.checkDuplicateExports(t, "default"), this.hasPlugin("exportDefaultFrom")) {
let r = t.declaration;
r.type === "Identifier" && r.name === "from" && r.end - r.start === 4 && !r.extra?.parenthesized && this.raise(p.ExportDefaultFromAsIdentifier, r);
}
} else if (t.specifiers?.length)
for (let r of t.specifiers) {
let { exported: n } = r, o = n.type === "Identifier" ? n.name : n.value;
if (this.checkDuplicateExports(r, o), !i && r.local) {
let { local: h } = r;
h.type !== "Identifier" ? this.raise(p.ExportBindingIsString, r, { localName: h.value, exportName: o }) : (this.checkReservedWord(h.name, h.loc.start, true, false), this.scope.checkLocalExport(h));
}
}
else if (t.declaration) {
let r = t.declaration;
if (r.type === "FunctionDeclaration" || r.type === "ClassDeclaration") {
let { id: n } = r;
if (!n)
throw new Error("Assertion failure");
this.checkDuplicateExports(t, n.name);
} else if (r.type === "VariableDeclaration")
for (let n of r.declarations)
this.checkDeclaration(n.id);
}
}
}
checkDeclaration(t) {
if (t.type === "Identifier")
this.checkDuplicateExports(t, t.name);
else if (t.type === "ObjectPattern")
for (let e of t.properties)
this.checkDeclaration(e);
else if (t.type === "ArrayPattern")
for (let e of t.elements)
e && this.checkDeclaration(e);
else
t.type === "ObjectProperty" ? this.checkDeclaration(t.value) : t.type === "RestElement" ? this.checkDeclaration(t.argument) : t.type === "AssignmentPattern" && this.checkDeclaration(t.left);
}
checkDuplicateExports(t, e) {
this.exportedIdentifiers.has(e) && (e === "default" ? this.raise(p.DuplicateDefaultExport, t) : this.raise(p.DuplicateExport, t, { exportName: e })), this.exportedIdentifiers.add(e);
}
parseExportSpecifiers(t) {
let e = [], s = true;
for (this.expect(5);!this.eat(8); ) {
if (s)
s = false;
else if (this.expect(12), this.eat(8))
break;
let i = this.isContextual(130), r = this.match(134), n = this.startNode();
n.local = this.parseModuleExportName(), e.push(this.parseExportSpecifier(n, r, t, i));
}
return e;
}
parseExportSpecifier(t, e, s, i) {
return this.eatContextual(93) ? t.exported = this.parseModuleExportName() : e ? t.exported = this.cloneStringLiteral(t.local) : t.exported || (t.exported = this.cloneIdentifier(t.local)), this.finishNode(t, "ExportSpecifier");
}
parseModuleExportName() {
if (this.match(134)) {
let t = this.parseStringLiteral(this.state.value), e = ir.exec(t.value);
return e && this.raise(p.ModuleExportNameHasLoneSurrogate, t, { surrogateCharCode: e[0].charCodeAt(0) }), t;
}
return this.parseIdentifier(true);
}
isJSONModuleImport(t) {
return t.assertions != null ? t.assertions.some(({ key: e, value: s }) => s.value === "json" && (e.type === "Identifier" ? e.name === "type" : e.value === "type")) : false;
}
checkImportReflection(t) {
let { specifiers: e } = t, s = e.length === 1 ? e[0].type : null;
t.phase === "source" ? s !== "ImportDefaultSpecifier" && this.raise(p.SourcePhaseImportRequiresDefault, e[0].loc.start) : t.phase === "defer" ? s !== "ImportNamespaceSpecifier" && this.raise(p.DeferImportRequiresNamespace, e[0].loc.start) : t.module && (s !== "ImportDefaultSpecifier" && this.raise(p.ImportReflectionNotBinding, e[0].loc.start), t.assertions?.length > 0 && this.raise(p.ImportReflectionHasAssertion, e[0].loc.start));
}
checkJSONModuleImport(t) {
if (this.isJSONModuleImport(t) && t.type !== "ExportAllDeclaration") {
let { specifiers: e } = t;
if (e != null) {
let s = e.find((i) => {
let r;
if (i.type === "ExportSpecifier" ? r = i.local : i.type === "ImportSpecifier" && (r = i.imported), r !== undefined)
return r.type === "Identifier" ? r.name !== "default" : r.value !== "default";
});
s !== undefined && this.raise(p.ImportJSONBindingNotDefault, s.loc.start);
}
}
}
isPotentialImportPhase(t) {
return t ? false : this.isContextual(105) || this.isContextual(97);
}
applyImportPhase(t, e, s, i) {
e || (this.hasPlugin("importReflection") && (t.module = false), s === "source" ? (this.expectPlugin("sourcePhaseImports", i), t.phase = "source") : s === "defer" ? (this.expectPlugin("deferredImportEvaluation", i), t.phase = "defer") : this.hasPlugin("sourcePhaseImports") && (t.phase = null));
}
parseMaybeImportPhase(t, e) {
if (!this.isPotentialImportPhase(e))
return this.applyImportPhase(t, e, null), null;
let s = this.startNode(), i = this.parseIdentifierName(true), { type: r } = this.state;
return (O(r) ? r !== 98 || this.lookaheadCharCode() === 102 : r !== 12) ? (this.applyImportPhase(t, e, i, s.loc.start), null) : (this.applyImportPhase(t, e, null), this.createIdentifier(s, i));
}
isPrecedingIdImportPhase(t) {
let { type: e } = this.state;
return w(e) ? e !== 98 || this.lookaheadCharCode() === 102 : e !== 12;
}
parseImport(t) {
return this.match(134) ? this.parseImportSourceAndAttributes(t) : this.parseImportSpecifiersAndAfter(t, this.parseMaybeImportPhase(t, false));
}
parseImportSpecifiersAndAfter(t, e) {
t.specifiers = [];
let i = !this.maybeParseDefaultImportSpecifier(t, e) || this.eat(12), r = i && this.maybeParseStarImportSpecifier(t);
return i && !r && this.parseNamedImportSpecifiers(t), this.expectContextual(98), this.parseImportSourceAndAttributes(t);
}
parseImportSourceAndAttributes(t) {
return t.specifiers ?? (t.specifiers = []), t.source = this.parseImportSource(), this.maybeParseImportAttributes(t), this.checkImportReflection(t), this.checkJSONModuleImport(t), this.semicolon(), this.sawUnambiguousESM = true, this.finishNode(t, "ImportDeclaration");
}
parseImportSource() {
return this.match(134) || this.unexpected(), this.parseExprAtom();
}
parseImportSpecifierLocal(t, e, s) {
e.local = this.parseIdentifier(), t.specifiers.push(this.finishImportSpecifier(e, s));
}
finishImportSpecifier(t, e, s = 8201) {
return this.checkLVal(t.local, { type: e }, s), this.finishNode(t, e);
}
parseImportAttributes() {
this.expect(5);
let t = [], e = new Set;
do {
if (this.match(8))
break;
let s = this.startNode(), i = this.state.value;
if (e.has(i) && this.raise(p.ModuleAttributesWithDuplicateKeys, this.state.startLoc, { key: i }), e.add(i), this.match(134) ? s.key = this.parseStringLiteral(i) : s.key = this.parseIdentifier(true), this.expect(14), !this.match(134))
throw this.raise(p.ModuleAttributeInvalidValue, this.state.startLoc);
s.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(s, "ImportAttribute"));
} while (this.eat(12));
return this.expect(8), t;
}
parseModuleAttributes() {
let t = [], e = new Set;
do {
let s = this.startNode();
if (s.key = this.parseIdentifier(true), s.key.name !== "type" && this.raise(p.ModuleAttributeDifferentFromType, s.key), e.has(s.key.name) && this.raise(p.ModuleAttributesWithDuplicateKeys, s.key, { key: s.key.name }), e.add(s.key.name), this.expect(14), !this.match(134))
throw this.raise(p.ModuleAttributeInvalidValue, this.state.startLoc);
s.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(s, "ImportAttribute"));
} while (this.eat(12));
return t;
}
maybeParseImportAttributes(t) {
let e;
if (this.match(76)) {
if (this.hasPrecedingLineBreak() && this.lookaheadCharCode() === 40)
return;
this.next(), e = this.parseImportAttributes();
} else
this.isContextual(94) && !this.hasPrecedingLineBreak() ? (this.hasPlugin("deprecatedImportAssert") || this.raise(p.ImportAttributesUseAssert, this.state.startLoc), this.addExtra(t, "deprecatedAssertSyntax", true), this.next(), e = this.parseImportAttributes()) : e = [];
t.attributes = e;
}
maybeParseDefaultImportSpecifier(t, e) {
if (e) {
let s = this.startNodeAtNode(e);
return s.local = e, t.specifiers.push(this.finishImportSpecifier(s, "ImportDefaultSpecifier")), true;
} else if (O(this.state.type))
return this.parseImportSpecifierLocal(t, this.startNode(), "ImportDefaultSpecifier"), true;
return false;
}
maybeParseStarImportSpecifier(t) {
if (this.match(55)) {
let e = this.startNode();
return this.next(), this.expectContextual(93), this.parseImportSpecifierLocal(t, e, "ImportNamespaceSpecifier"), true;
}
return false;
}
parseNamedImportSpecifiers(t) {
let e = true;
for (this.expect(5);!this.eat(8); ) {
if (e)
e = false;
else {
if (this.eat(14))
throw this.raise(p.DestructureNamedImport, this.state.startLoc);
if (this.expect(12), this.eat(8))
break;
}
let s = this.startNode(), i = this.match(134), r = this.isContextual(130);
s.imported = this.parseModuleExportName();
let n = this.parseImportSpecifier(s, i, t.importKind === "type" || t.importKind === "typeof", r, undefined);
t.specifiers.push(n);
}
}
parseImportSpecifier(t, e, s, i, r) {
if (this.eatContextual(93))
t.local = this.parseIdentifier();
else {
let { imported: n } = t;
if (e)
throw this.raise(p.ImportBindingIsString, t, { importName: n.value });
this.checkReservedWord(n.name, t.loc.start, true, true), t.local || (t.local = this.cloneIdentifier(n));
}
return this.finishImportSpecifier(t, "ImportSpecifier", r);
}
isThisParam(t) {
return t.type === "Identifier" && t.name === "this";
}
};
var Ee = class extends ut {
constructor(t, e, s) {
let i = ii(t);
super(i, e), this.options = i, this.initializeScopes(), this.plugins = s, this.filename = i.sourceFilename, this.startIndex = i.startIndex;
let r = 0;
i.allowAwaitOutsideFunction && (r |= 1), i.allowReturnOutsideFunction && (r |= 2), i.allowImportExportEverywhere && (r |= 8), i.allowSuperOutsideMethod && (r |= 16), i.allowUndeclaredExports && (r |= 64), i.allowNewTargetOutsideFunction && (r |= 4), i.allowYieldOutsideFunction && (r |= 32), i.ranges && (r |= 128), i.tokens && (r |= 256), i.createImportExpressions && (r |= 512), i.createParenthesizedExpressions && (r |= 1024), i.errorRecovery && (r |= 2048), i.attachComment && (r |= 4096), i.annexB && (r |= 8192), this.optionFlags = r;
}
getScopeHandler() {
return fe;
}
parse() {
this.enterInitialScopes();
let t = this.startNode(), e = this.startNode();
this.nextToken(), t.errors = null;
let s = this.parseTopLevel(t, e);
return s.errors = this.state.errors, s.comments.length = this.state.commentsLen, s;
}
};
function Ie(a2, t) {
if (t?.sourceType === "unambiguous") {
t = Object.assign({}, t);
try {
t.sourceType = "module";
let e = le(t, a2), s = e.parse();
if (e.sawUnambiguousESM)
return s;
if (e.ambiguousScriptDifferentAst)
try {
return t.sourceType = "script", le(t, a2).parse();
} catch {}
else
s.program.sourceType = "script";
return s;
} catch (e) {
try {
return t.sourceType = "script", le(t, a2).parse();
} catch {}
throw e;
}
} else
return le(t, a2).parse();
}
function Ne(a2, t) {
let e = le(t, a2);
return e.options.strictMode && (e.state.strict = true), e.getExpression();
}
function ar(a2) {
let t = {};
for (let e of Object.keys(a2))
t[e] = Gt(a2[e]);
return t;
}
var ua = ar(oi);
function le(a2, t) {
let e = Ee, s = new Map;
if (a2?.plugins) {
for (let i of a2.plugins) {
let r, n;
typeof i == "string" ? r = i : [r, n] = i, s.has(r) || s.set(r, n || {});
}
er(s), e = nr(s);
}
return new e(a2, t, s);
}
var Wt = new Map;
function nr(a2) {
let t = [];
for (let i of tr)
a2.has(i) && t.push(i);
let e = t.join("|"), s = Wt.get(e);
if (!s) {
s = Ee;
for (let i of t)
s = hs[i](s);
Wt.set(e, s);
}
return s;
}
function ke(a2) {
return (t, e, s) => {
let i = !!s?.backwards;
if (e === false)
return false;
let { length: r } = t, n = e;
for (;n >= 0 && n < r; ) {
let o = t.charAt(n);
if (a2 instanceof RegExp) {
if (!a2.test(o))
return n;
} else if (!a2.includes(o))
return n;
i ? n-- : n++;
}
return n === -1 || n === r ? n : false;
};
}
var da = ke(/\s/u);
var cs = ke(" \t");
var ma = ke(",; \t");
var ls = ke(/[^\n\r]/u);
function or(a2, t) {
if (t === false)
return false;
if (a2.charAt(t) === "/" && a2.charAt(t + 1) === "*") {
for (let e = t + 2;e < a2.length; ++e)
if (a2.charAt(e) === "*" && a2.charAt(e + 1) === "/")
return e + 2;
}
return t;
}
var ps = or;
var us = (a2) => a2 === `
` || a2 === "\r" || a2 === "\u2028" || a2 === "\u2029";
function hr(a2, t, e) {
let s = !!e?.backwards;
if (t === false)
return false;
let i = a2.charAt(t);
if (s) {
if (a2.charAt(t - 1) === "\r" && i === `
`)
return t - 2;
if (us(i))
return t - 1;
} else {
if (i === "\r" && a2.charAt(t + 1) === `
`)
return t + 2;
if (us(i))
return t + 1;
}
return t;
}
var fs = hr;
function cr(a2, t) {
return t === false ? false : a2.charAt(t) === "/" && a2.charAt(t + 1) === "/" ? ls(a2, t) : t;
}
var ds = cr;
function lr(a2, t) {
let e = null, s = t;
for (;s !== e; )
e = s, s = cs(a2, s), s = ps(a2, s), s = ds(a2, s), s = fs(a2, s);
return s;
}
var ms = lr;
function ys(a2) {
let t = [];
for (let e of a2)
try {
return e();
} catch (s) {
t.push(s);
}
throw Object.assign(new Error("All combinations failed"), { errors: t });
}
function pr(a2) {
if (!a2.startsWith("#!"))
return "";
let t = a2.indexOf(`
`);
return t === -1 ? a2 : a2.slice(0, t);
}
var ve = pr;
var ee = (a2, t) => (e, s, ...i) => e | 1 && s == null ? undefined : (t.call(s) ?? s[a2]).apply(s, i);
var ur = Array.prototype.findLast ?? function(a2) {
for (let t = this.length - 1;t >= 0; t--) {
let e = this[t];
if (a2(e, t, this))
return e;
}
};
var fr = ee("findLast", function() {
if (Array.isArray(this))
return ur;
});
var xs = fr;
function dr(a2) {
return this[a2 < 0 ? this.length + a2 : a2];
}
var mr = ee("at", function() {
if (Array.isArray(this) || typeof this == "string")
return dr;
});
var Ps = mr;
function M(a2) {
let t = a2.range?.[0] ?? a2.start, e = (a2.declaration?.decorators ?? a2.decorators)?.[0];
return e ? Math.min(M(e), t) : t;
}
function L(a2) {
return a2.range?.[1] ?? a2.end;
}
function yr(a2) {
let t = new Set(a2);
return (e) => t.has(e?.type);
}
var te = yr;
var xr = te(["Block", "CommentBlock", "MultiLine"]);
var se = xr;
var Pr = te(["Line", "CommentLine", "SingleLine", "HashbangComment", "HTMLOpen", "HTMLClose", "Hashbang", "InterpreterDirective"]);
var gs = Pr;
var St = new WeakMap;
function gr(a2) {
return St.has(a2) || St.set(a2, se(a2) && a2.value[0] === "*" && /@(?:type|satisfies)\b/u.test(a2.value)), St.get(a2);
}
var Ts = gr;
function Tr(a2) {
if (!se(a2))
return false;
let t = `*${a2.value}*`.split(`
`);
return t.length > 1 && t.every((e) => e.trimStart()[0] === "*");
}
var wt = new WeakMap;
function br(a2) {
return wt.has(a2) || wt.set(a2, Tr(a2)), wt.get(a2);
}
var Ct = br;
function Ar(a2) {
if (a2.length < 2)
return;
let t;
for (let e = a2.length - 1;e >= 0; e--) {
let s = a2[e];
if (t && L(s) === M(t) && Ct(s) && Ct(t) && (a2.splice(e + 1, 1), s.value += "*//*" + t.value, s.range = [M(s), L(t)]), !gs(s) && !se(s))
throw new TypeError(`Unknown comment type: "${s.type}".`);
t = s;
}
}
var bs = Ar;
function Sr(a2) {
return a2 !== null && typeof a2 == "object";
}
var As = Sr;
var me = null;
function ye(a2) {
if (me !== null && typeof me.property) {
let t = me;
return me = ye.prototype = null, t;
}
return me = ye.prototype = a2 ?? Object.create(null), new ye;
}
var wr = 10;
for (let a2 = 0;a2 <= wr; a2++)
ye();
function Et(a2) {
return ye(a2);
}
function Cr(a2, t = "type") {
Et(a2);
function e(s) {
let i = s[t], r = a2[i];
if (!Array.isArray(r))
throw Object.assign(new Error(`Missing visitor keys for '${i}'.`), { node: s });
return r;
}
return e;
}
var Ss = Cr;
var c = [["decorators", "key", "typeAnnotation", "value"], [], ["elementType"], ["expression"], ["expression", "typeAnnotation"], ["left", "right"], ["argument"], ["directives", "body"], ["label"], ["callee", "typeArguments", "arguments"], ["body"], ["decorators", "id", "typeParameters", "superClass", "superTypeArguments", "mixins", "implements", "body", "superTypeParameters"], ["id", "typeParameters"], ["decorators", "key", "typeParameters", "params", "returnType", "body"], ["decorators", "variance", "key", "typeAnnotation", "value"], ["name", "typeAnnotation"], ["test", "consequent", "alternate"], ["checkType", "extendsType", "trueType", "falseType"], ["value"], ["id", "body"], ["declaration", "specifiers", "source", "attributes"], ["id"], ["id", "typeParameters", "extends", "body"], ["typeAnnotation"], ["id", "typeParameters", "right"], ["body", "test"], ["members"], ["id", "init"], ["exported"], ["left", "right", "body"], ["id", "typeParameters", "params", "predicate", "returnType", "body"], ["id", "params", "body", "typeParameters", "returnType"], ["key", "value"], ["local"], ["objectType", "indexType"], ["typeParameter"], ["types"], ["node"], ["object", "property"], ["argument", "cases"], ["pattern", "body", "guard"], ["literal"], ["decorators", "key", "value"], ["expressions"], ["qualification", "id"], ["decorators", "key", "typeAnnotation"], ["typeParameters", "params", "returnType"], ["expression", "typeArguments"], ["params"], ["parameterName", "typeAnnotation"]];
var ws = { AccessorProperty: c[0], AnyTypeAnnotation: c[1], ArgumentPlaceholder: c[1], ArrayExpression: ["elements"], ArrayPattern: ["elements", "typeAnnotation", "decorators"], ArrayTypeAnnotation: c[2], ArrowFunctionExpression: ["typeParameters", "params", "predicate", "returnType", "body"], AsConstExpression: c[3], AsExpression: c[4], AssignmentExpression: c[5], AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"], AwaitExpression: c[6], BigIntLiteral: c[1], BigIntLiteralTypeAnnotation: c[1], BigIntTypeAnnotation: c[1], BinaryExpression: c[5], BindExpression: ["object", "callee"], BlockStatement: c[7], BooleanLiteral: c[1], BooleanLiteralTypeAnnotation: c[1], BooleanTypeAnnotation: c[1], BreakStatement: c[8], CallExpression: c[9], CatchClause: ["param", "body"], ChainExpression: c[3], ClassAccessorProperty: c[0], ClassBody: c[10], ClassDeclaration: c[11], ClassExpression: c[11], ClassImplements: c[12], ClassMethod: c[13], ClassPrivateMethod: c[13], ClassPrivateProperty: c[14], ClassProperty: c[14], ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"], ComponentParameter: ["name", "local"], ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"], ComponentTypeParameter: c[15], ConditionalExpression: c[16], ConditionalTypeAnnotation: c[17], ContinueStatement: c[8], DebuggerStatement: c[1], DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"], DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"], DeclaredPredicate: c[18], DeclareEnum: c[19], DeclareExportAllDeclaration: ["source", "attributes"], DeclareExportDeclaration: c[20], DeclareFunction: ["id", "predicate"], DeclareHook: c[21], DeclareInterface: c[22], DeclareModule: c[19], DeclareModuleExports: c[23], DeclareNamespace: c[19], DeclareOpaqueType: ["id", "typeParameters", "supertype", "lowerBound", "upperBound"], DeclareTypeAlias: c[24], DeclareVariable: c[21], Decorator: c[3], Directive: c[18], DirectiveLiteral: c[1], DoExpression: c[10], DoWhileStatement: c[25], EmptyStatement: c[1], EmptyTypeAnnotation: c[1], EnumBigIntBody: c[26], EnumBigIntMember: c[27], EnumBooleanBody: c[26], EnumBooleanMember: c[27], EnumDeclaration: c[19], EnumDefaultedMember: c[21], EnumNumberBody: c[26], EnumNumberMember: c[27], EnumStringBody: c[26], EnumStringMember: c[27], EnumSymbolBody: c[26], ExistsTypeAnnotation: c[1], ExperimentalRestProperty: c[6], ExperimentalSpreadProperty: c[6], ExportAllDeclaration: ["source", "attributes", "exported"], ExportDefaultDeclaration: ["declaration"], ExportDefaultSpecifier: c[28], ExportNamedDeclaration: c[20], ExportNamespaceSpecifier: c[28], ExportSpecifier: ["local", "exported"], ExpressionStatement: c[3], File: ["program"], ForInStatement: c[29], ForOfStatement: c[29], ForStatement: ["init", "test", "update", "body"], FunctionDeclaration: c[30], FunctionExpression: c[30], FunctionTypeAnnotation: ["typeParameters", "this", "params", "rest", "returnType"], FunctionTypeParam: c[15], GenericTypeAnnotation: c[12], HookDeclaration: c[31], HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"], Identifier: ["typeAnnotation", "decorators"], IfStatement: c[16], ImportAttribute: c[32], ImportDeclaration: ["specifiers", "source", "attributes"], ImportDefaultSpecifier: c[33], ImportExpression: ["source", "options"], ImportNamespaceSpecifier: c[33], ImportSpecifier: ["imported", "local"], IndexedAccessType: c[34], InferredPredicate: c[1], InferTypeAnnotation: c[35], InterfaceDeclaration: c[22], InterfaceExtends: c[12], InterfaceTypeAnnotation: ["extends", "body"], InterpreterDirective: c[1], IntersectionTypeAnnotation: c[36], JsExpressionRoot: c[37], JsonRoot: c[37], JSXAttribute: ["name", "value"], JSXClosingElement: ["name"], JSXClosingFragment: c[1], JSXElement: ["openingElement", "children", "closingElement"], JSXEmptyExpression: c[1], JSXExpressionContainer: c[3], JSXFragment: ["openingFragment", "children", "closingFragment"], JSXIdentifier: c[1], JSXMemberExpression: c[38], JSXNamespacedName: ["namespace", "name"], JSXOpeningElement: ["name", "typeArguments", "attributes"], JSXOpeningFragment: c[1], JSXSpreadAttribute: c[6], JSXSpreadChild: c[3], JSXText: c[1], KeyofTypeAnnotation: c[6], LabeledStatement: ["label", "body"], Literal: c[1], LogicalExpression: c[5], MatchArrayPattern: ["elements", "rest"], MatchAsPattern: ["pattern", "target"], MatchBindingPattern: c[21], MatchExpression: c[39], MatchExpressionCase: c[40], MatchIdentifierPattern: c[21], MatchLiteralPattern: c[41], MatchMemberPattern: ["base", "property"], MatchObjectPattern: ["properties", "rest"], MatchObjectPatternProperty: ["key", "pattern"], MatchOrPattern: ["patterns"], MatchRestPattern: c[6], MatchStatement: c[39], MatchStatementCase: c[40], MatchUnaryPattern: c[6], MatchWildcardPattern: c[1], MemberExpression: c[38], MetaProperty: ["meta", "property"], MethodDefinition: c[42], MixedTypeAnnotation: c[1], ModuleExpression: c[10], NeverTypeAnnotation: c[1], NewExpression: c[9], NGChainedExpression: c[43], NGEmptyExpression: c[1], NGMicrosyntax: c[10], NGMicrosyntaxAs: ["key", "alias"], NGMicrosyntaxExpression: ["expression", "alias"], NGMicrosyntaxKey: c[1], NGMicrosyntaxKeyedExpression: ["key", "expression"], NGMicrosyntaxLet: c[32], NGPipeExpression: ["left", "right", "arguments"], NGRoot: c[37], NullableTypeAnnotation: c[23], NullLiteral: c[1], NullLiteralTypeAnnotation: c[1], NumberLiteralTypeAnnotation: c[1], NumberTypeAnnotation: c[1], NumericLiteral: c[1], ObjectExpression: ["properties"], ObjectMethod: c[13], ObjectPattern: ["decorators", "properties", "typeAnnotation"], ObjectProperty: c[42], ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"], ObjectTypeCallProperty: c[18], ObjectTypeIndexer: ["variance", "id", "key", "value"], ObjectTypeInternalSlot: ["id", "value"], ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"], ObjectTypeProperty: ["key", "value", "variance"], ObjectTypeSpreadProperty: c[6], OpaqueType: ["id", "typeParameters", "supertype", "impltype", "lowerBound", "upperBound"], OptionalCallExpression: c[9], OptionalIndexedAccessType: c[34], OptionalMemberExpression: c[38], ParenthesizedExpression: c[3], PipelineBareFunction: ["callee"], PipelinePrimaryTopicReference: c[1], PipelineTopicExpression: c[3], Placeholder: c[1], PrivateIdentifier: c[1], PrivateName: c[21], Program: c[7], Property: c[32], PropertyDefinition: c[14], QualifiedTypeIdentifier: c[44], QualifiedTypeofIdentifier: c[44], RegExpLiteral: c[1], RestElement: ["argument", "typeAnnotation", "decorators"], ReturnStatement: c[6], SatisfiesExpression: c[4], SequenceExpression: c[43], SpreadElement: c[6], StaticBlock: c[10], StringLiteral: c[1], StringLiteralTypeAnnotation: c[1], StringTypeAnnotation: c[1], Super: c[1], SwitchCase: ["test", "consequent"], SwitchStatement: ["discriminant", "cases"], SymbolTypeAnnotation: c[1], TaggedTemplateExpression: ["tag", "typeArguments", "quasi"], TemplateElement: c[1], TemplateLiteral: ["quasis", "expressions"], ThisExpression: c[1], ThisTypeAnnotation: c[1], ThrowStatement: c[6], TopicReference: c[1], TryStatement: ["block", "handler", "finalizer"], TSAbstractAccessorProperty: c[45], TSAbstractKeyword: c[1], TSAbstractMethodDefinition: c[32], TSAbstractPropertyDefinition: c[45], TSAnyKeyword: c[1], TSArrayType: c[2], TSAsExpression: c[4], TSAsyncKeyword: c[1], TSBigIntKeyword: c[1], TSBooleanKeyword: c[1], TSCallSignatureDeclaration: c[46], TSClassImplements: c[47], TSConditionalType: c[17], TSConstructorType: c[46], TSConstructSignatureDeclaration: c[46], TSDeclareFunction: c[31], TSDeclareKeyword: c[1], TSDeclareMethod: ["decorators", "key", "typeParameters", "params", "returnType"], TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"], TSEnumBody: c[26], TSEnumDeclaration: c[19], TSEnumMember: ["id", "initializer"], TSExportAssignment: c[3], TSExportKeyword: c[1], TSExternalModuleReference: c[3], TSFunctionType: c[46], TSImportEqualsDeclaration: ["id", "moduleReference"], TSImportType: ["options", "qualifier", "typeArguments", "source"], TSIndexedAccessType: c[34], TSIndexSignature: ["parameters", "typeAnnotation"], TSInferType: c[35], TSInstantiationExpression: c[47], TSInterfaceBody: c[10], TSInterfaceDeclaration: c[22], TSInterfaceHeritage: c[47], TSIntersectionType: c[36], TSIntrinsicKeyword: c[1], TSJSDocAllType: c[1], TSJSDocNonNullableType: c[23], TSJSDocNullableType: c[23], TSJSDocUnknownType: c[1], TSLiteralType: c[41], TSMappedType: ["key", "constraint", "nameType", "typeAnnotation"], TSMethodSignature: ["key", "typeParameters", "params", "returnType"], TSModuleBlock: c[10], TSModuleDeclaration: c[19], TSNamedTupleMember: ["label", "elementType"], TSNamespaceExportDeclaration: c[21], TSNeverKeyword: c[1], TSNonNullExpression: c[3], TSNullKeyword: c[1], TSNumberKeyword: c[1], TSObjectKeyword: c[1], TSOptionalType: c[23], TSParameterProperty: ["parameter", "decorators"], TSParenthesizedType: c[23], TSPrivateKeyword: c[1], TSPropertySignature: ["key", "typeAnnotation"], TSProtectedKeyword: c[1], TSPublicKeyword: c[1], TSQualifiedName: c[5], TSReadonlyKeyword: c[1], TSRestType: c[23], TSSatisfiesExpression: c[4], TSStaticKeyword: c[1], TSStringKeyword: c[1], TSSymbolKeyword: c[1], TSTemplateLiteralType: ["quasis", "types"], TSThisType: c[1], TSTupleType: ["elementTypes"], TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"], TSTypeAnnotation: c[23], TSTypeAssertion: c[4], TSTypeLiteral: c[26], TSTypeOperator: c[23], TSTypeParameter: ["name", "constraint", "default"], TSTypeParameterDeclaration: c[48], TSTypeParameterInstantiation: c[48], TSTypePredicate: c[49], TSTypeQuery: ["exprName", "typeArguments"], TSTypeReference: ["typeName", "typeArguments"], TSUndefinedKeyword: c[1], TSUnionType: c[36], TSUnknownKeyword: c[1], TSVoidKeyword: c[1], TupleTypeAnnotation: ["types", "elementTypes"], TupleTypeLabeledElement: ["label", "elementType", "variance"], TupleTypeSpreadElement: ["label", "typeAnnotation"], TypeAlias: c[24], TypeAnnotation: c[23], TypeCastExpression: c[4], TypeofTypeAnnotation: ["argument", "typeArguments"], TypeOperator: c[23], TypeParameter: ["bound", "default", "variance"], TypeParameterDeclaration: c[48], TypeParameterInstantiation: c[48], TypePredicate: c[49], UnaryExpression: c[6], UndefinedTypeAnnotation: c[1], UnionTypeAnnotation: c[36], UnknownTypeAnnotation: c[1], UpdateExpression: c[6], V8IntrinsicIdentifier: c[1], VariableDeclaration: ["declarations"], VariableDeclarator: c[27], Variance: c[1], VoidPattern: c[1], VoidTypeAnnotation: c[1], WhileStatement: c[25], WithStatement: ["object", "body"], YieldExpression: c[6] };
var Er = Ss(ws);
var Cs = Er;
function Le(a2, t) {
if (!As(a2))
return a2;
if (Array.isArray(a2)) {
for (let s = 0;s < a2.length; s++)
a2[s] = Le(a2[s], t);
return a2;
}
if (t.onEnter) {
let s = t.onEnter(a2) ?? a2;
if (s !== a2)
return Le(s, t);
a2 = s;
}
let e = Cs(a2);
for (let s = 0;s < e.length; s++)
a2[e[s]] = Le(a2[e[s]], t);
return t.onLeave && (a2 = t.onLeave(a2) || a2), a2;
}
var Es = Le;
var fn = te(["RegExpLiteral", "BigIntLiteral", "NumericLiteral", "StringLiteral", "DirectiveLiteral", "Literal", "JSXText", "TemplateElement", "StringLiteralTypeAnnotation", "NumberLiteralTypeAnnotation", "BigIntLiteralTypeAnnotation"]);
function Ir(a2, t) {
let { parser: e, text: s } = t, { comments: i } = a2, r = e === "oxc" && t.oxcAstType === "ts";
bs(i);
let n = a2.type === "File" ? a2.program : a2;
n.interpreter && (i.unshift(n.interpreter), delete n.interpreter), r && a2.hashbang && (i.unshift(a2.hashbang), delete a2.hashbang), a2.type === "Program" && (a2.range = [0, s.length]);
let o;
return a2 = Es(a2, { onEnter(h) {
switch (h.type) {
case "ParenthesizedExpression": {
let { expression: l } = h, u = M(h);
if (l.type === "TypeCastExpression")
return l.range = [u, L(h)], l;
let f = false;
if (!r) {
if (!o) {
o = [];
for (let x of i)
Ts(x) && o.push(L(x));
}
let d = xs(0, o, (x) => x <= u);
f = d && s.slice(d, u).trim().length === 0;
}
return f ? undefined : (l.extra = { ...l.extra, parenthesized: true }, l);
}
case "TemplateLiteral":
if (h.expressions.length !== h.quasis.length - 1)
throw new Error("Malformed template literal.");
break;
case "TemplateElement":
if (e === "flow" || e === "hermes" || e === "espree" || e === "typescript" || r) {
let l = M(h) + 1, u = L(h) - (h.tail ? 1 : 2);
h.range = [l, u];
}
break;
case "VariableDeclaration": {
let l = Ps(0, h.declarations, -1);
l?.init && s[L(l)] !== ";" && (h.range = [M(h), L(l)]);
break;
}
case "TSParenthesizedType":
return h.typeAnnotation;
case "TopicReference":
a2.extra = { ...a2.extra, __isUsingHackPipeline: true };
break;
case "TSUnionType":
case "TSIntersectionType":
if (h.types.length === 1)
return h.types[0];
break;
case "ImportExpression":
e === "hermes" && h.attributes && !h.options && (h.options = h.attributes);
break;
}
}, onLeave(h) {
switch (h.type) {
case "LogicalExpression":
if (Is(h))
return It(h);
break;
case "TSImportType":
!h.source && h.argument.type === "TSLiteralType" && (h.source = h.argument.literal, delete h.argument);
break;
}
} }), a2;
}
function Is(a2) {
return a2.type === "LogicalExpression" && a2.right.type === "LogicalExpression" && a2.operator === a2.right.operator;
}
function It(a2) {
return Is(a2) ? It({ type: "LogicalExpression", operator: a2.operator, left: It({ type: "LogicalExpression", operator: a2.operator, left: a2.left, right: a2.right.left, range: [M(a2.left), L(a2.right.left)] }), right: a2.right.right, range: [M(a2), L(a2)] }) : a2;
}
var Ns = Ir;
function Nr(a2, t) {
let e = new SyntaxError(a2 + " (" + t.loc.start.line + ":" + t.loc.start.column + ")");
return Object.assign(e, t);
}
var De = Nr;
var ks = "Unexpected parseExpression() input: ";
function kr(a2) {
let { message: t, loc: e, reasonCode: s } = a2;
if (!e)
return a2;
let { line: i, column: r } = e, n = a2;
(s === "MissingPlugin" || s === "MissingOneOfPlugins") && (t = "Unexpected token.", n = undefined);
let o = ` (${i}:${r})`;
return t.endsWith(o) && (t = t.slice(0, -o.length)), t.startsWith(ks) && (t = t.slice(ks.length)), De(t, { loc: { start: { line: i, column: r + 1 } }, cause: n });
}
var Me = kr;
var vr = String.prototype.replaceAll ?? function(a2, t) {
return a2.global ? this.replace(a2, t) : this.split(a2).join(t);
};
var Lr = ee("replaceAll", function() {
if (typeof this == "string")
return vr;
});
var xe = Lr;
var Dr = /\*\/$/;
var Mr = /^\/\*\*?/;
var Or = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/;
var Fr = /(^|\s+)\/\/([^\n\r]*)/g;
var vs = /^(\r?\n)+/;
var Br = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g;
var Ls = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g;
var Rr = /(\r?\n|^) *\* ?/g;
var Ur = [];
function Ds(a2) {
let t = a2.match(Or);
return t ? t[0].trimStart() : "";
}
function Ms(a2) {
a2 = xe(0, a2.replace(Mr, "").replace(Dr, ""), Rr, "$1");
let e = "";
for (;e !== a2; )
e = a2, a2 = xe(0, a2, Br, `
$1 $2
`);
a2 = a2.replace(vs, "").trimEnd();
let s = Object.create(null), i = xe(0, a2, Ls, "").replace(vs, "").trimEnd(), r;
for (;r = Ls.exec(a2); ) {
let n = xe(0, r[2], Fr, "");
if (typeof s[r[1]] == "string" || Array.isArray(s[r[1]])) {
let o = s[r[1]];
s[r[1]] = [...Ur, ...Array.isArray(o) ? o : [o], n];
} else
s[r[1]] = n;
}
return { comments: i, pragmas: s };
}
var Os = ["noformat", "noprettier"];
var Fs = ["format", "prettier"];
function Bs(a2) {
let t = ve(a2);
t && (a2 = a2.slice(t.length + 1));
let e = Ds(a2), { pragmas: s, comments: i } = Ms(e);
return { shebang: t, text: a2, pragmas: s, comments: i };
}
function Rs(a2) {
let { pragmas: t } = Bs(a2);
return Fs.some((e) => Object.prototype.hasOwnProperty.call(t, e));
}
function Us(a2) {
let { pragmas: t } = Bs(a2);
return Os.some((e) => Object.prototype.hasOwnProperty.call(t, e));
}
function _r(a2) {
return a2 = typeof a2 == "function" ? { parse: a2 } : a2, { astFormat: "estree", hasPragma: Rs, hasIgnorePragma: Us, locStart: M, locEnd: L, ...a2 };
}
var H = _r;
var Oe = "module";
var Nt = "commonjs";
function _s(a2) {
if (typeof a2 == "string") {
if (a2 = a2.toLowerCase(), /\.(?:mjs|mts)$/iu.test(a2))
return Oe;
if (/\.(?:cjs|cts)$/iu.test(a2))
return Nt;
}
}
function jr(a2, t) {
let { type: e = "JsExpressionRoot", rootMarker: s, text: i } = t, { tokens: r, comments: n } = a2;
return delete a2.tokens, delete a2.comments, { tokens: r, comments: n, type: e, node: a2, range: [0, i.length], rootMarker: s };
}
var Fe = jr;
var ie = (a2) => H(Kr(a2));
var Vr = { sourceType: Oe, allowImportExportEverywhere: true, allowReturnOutsideFunction: true, allowNewTargetOutsideFunction: true, allowSuperOutsideMethod: true, allowUndeclaredExports: true, errorRecovery: true, createParenthesizedExpressions: true, attachComment: false, plugins: ["doExpressions", "exportDefaultFrom", "functionBind", "functionSent", "throwExpressions", "partialApplication", "decorators", "moduleBlocks", "asyncDoExpressions", "destructuringPrivate", "decoratorAutoAccessors", "sourcePhaseImports", "deferredImportEvaluation", ["optionalChainingAssign", { version: "2023-07" }], ["discardBinding", { syntaxType: "void" }]], tokens: false, ranges: false };
var js = "v8intrinsic";
var Vs = [["pipelineOperator", { proposal: "hack", topicToken: "%" }], ["pipelineOperator", { proposal: "fsharp" }]];
var _ = (a2, t = Vr) => ({ ...t, plugins: [...t.plugins, ...a2] });
var zr = /@(?:no)?flow\b/u;
function qr(a2, t) {
if (t?.endsWith(".js.flow"))
return true;
let e = ve(a2);
e && (a2 = a2.slice(e.length));
let s = ms(a2, 0);
return s !== false && (a2 = a2.slice(0, s)), zr.test(a2);
}
function $r(a2, t, e) {
let s = a2(t, e), i = s.errors.find((r) => !Hr.has(r.reasonCode));
if (i)
throw i;
return s;
}
function Kr({ isExpression: a2 = false, optionsCombinations: t }) {
return (e, s = {}) => {
let { filepath: i } = s;
if (typeof i != "string" && (i = undefined), (s.parser === "babel" || s.parser === "__babel_estree") && qr(e, i))
return s.parser = "babel-flow", qs.parse(e, s);
let r = t, n = s.__babelSourceType ?? _s(i);
n && n !== Oe && (r = r.map((u) => ({ ...u, sourceType: n, ...n === Nt ? { allowReturnOutsideFunction: undefined, allowNewTargetOutsideFunction: undefined } : undefined })));
let o = /%[A-Z]/u.test(e);
e.includes("|>") ? r = (o ? [...Vs, js] : Vs).flatMap((f) => r.map((d) => _([f], d))) : o && (r = r.map((u) => _([js], u)));
let h = a2 ? Ne : Ie, l;
try {
l = ys(r.map((u) => () => $r(h, e, u)));
} catch ({ errors: [u] }) {
throw Me(u);
}
return a2 && (l = Fe(l, { text: e, rootMarker: s.rootMarker })), Ns(l, { text: e });
};
}
var Hr = new Set(["StrictNumericEscape", "StrictWith", "StrictOctalLiteral", "StrictDelete", "StrictEvalArguments", "StrictEvalArgumentsBinding", "StrictFunction", "ForInOfLoopInitializer", "ConstructorHasTypeParameters", "UnsupportedParameterPropertyKind", "DecoratorExportClass", "ParamDupe", "InvalidDecimal", "RestTrailingComma", "UnsupportedParameterDecorator", "UnterminatedJsxContent", "UnexpectedReservedWord", "ModuleAttributesWithDuplicateKeys", "InvalidEscapeSequenceTemplate", "NonAbstractClassHasAbstractMethod", "OptionalTypeBeforeRequired", "PatternIsOptional", "DeclareClassFieldHasInitializer", "TypeImportCannotSpecifyDefaultAndNamed", "VarRedeclaration", "InvalidPrivateFieldResolution", "DuplicateExport", "ImportAttributesUseAssert", "DeclarationMissingInitializer"]);
var zs = [_(["jsx"])];
var Wr = ie({ optionsCombinations: zs });
var Jr = ie({ optionsCombinations: [_(["jsx", "typescript"]), _(["typescript"])] });
var Gr = ie({ isExpression: true, optionsCombinations: [_(["jsx"])] });
var Xr = ie({ isExpression: true, optionsCombinations: [_(["typescript"])] });
var qs = ie({ optionsCombinations: [_(["jsx", ["flow", { all: true }], "flowComments"])] });
var Yr = ie({ optionsCombinations: zs.map((a2) => _(["estree"], a2)) });
var Lt = {};
Re(Lt, { json: () => ea, "json-stringify": () => ia, json5: () => ta, jsonc: () => sa });
function Qr(a2) {
return Array.isArray(a2) && a2.length > 0;
}
var vt = Qr;
var $s = { tokens: false, ranges: false, attachComment: false, createParenthesizedExpressions: true };
function Zr(a2) {
let t = Ie(a2, $s), { program: e } = t;
if (e.body.length === 0 && e.directives.length === 0 && !e.interpreter)
return t;
}
function Be(a2, t = {}) {
let { allowComments: e = true, allowEmpty: s = false } = t, i;
try {
i = Ne(a2, $s);
} catch (r) {
if (s && r.code === "BABEL_PARSER_SYNTAX_ERROR" && r.reasonCode === "ParseExpressionEmptyInput")
try {
i = Zr(a2);
} catch {}
if (!i)
throw Me(r);
}
if (!e && vt(i.comments))
throw q(i.comments[0], "Comment");
return i = Fe(i, { type: "JsonRoot", text: a2 }), i.node.type === "File" ? delete i.node : re(i.node), i;
}
function q(a2, t) {
let [e, s] = [a2.loc.start, a2.loc.end].map(({ line: i, column: r }) => ({ line: i, column: r + 1 }));
return De(`${t} is not allowed in JSON.`, { loc: { start: e, end: s } });
}
function re(a2) {
switch (a2.type) {
case "ArrayExpression":
for (let t of a2.elements)
t !== null && re(t);
return;
case "ObjectExpression":
for (let t of a2.properties)
re(t);
return;
case "ObjectProperty":
if (a2.computed)
throw q(a2.key, "Computed key");
if (a2.shorthand)
throw q(a2.key, "Shorthand property");
a2.key.type !== "Identifier" && re(a2.key), re(a2.value);
return;
case "UnaryExpression": {
let { operator: t, argument: e } = a2;
if (t !== "+" && t !== "-")
throw q(a2, `Operator '${a2.operator}'`);
if (e.type === "NumericLiteral" || e.type === "Identifier" && (e.name === "Infinity" || e.name === "NaN"))
return;
throw q(e, `Operator '${t}' before '${e.type}'`);
}
case "Identifier":
if (a2.name !== "Infinity" && a2.name !== "NaN" && a2.name !== "undefined")
throw q(a2, `Identifier '${a2.name}'`);
return;
case "TemplateLiteral":
if (vt(a2.expressions))
throw q(a2.expressions[0], "'TemplateLiteral' with expression");
for (let t of a2.quasis)
re(t);
return;
case "NullLiteral":
case "BooleanLiteral":
case "NumericLiteral":
case "StringLiteral":
case "TemplateElement":
return;
default:
throw q(a2, `'${a2.type}'`);
}
}
var ea = H({ parse: (a2) => Be(a2), hasPragma: () => true, hasIgnorePragma: () => false });
var ta = H((a2) => Be(a2));
var sa = H((a2) => Be(a2, { allowEmpty: true }));
var ia = H({ parse: (a2) => Be(a2, { allowComments: false }), astFormat: "estree-json" });
var ra = { ...kt, ...Lt };
// ../../node_modules/.bun/prettier@3.8.3/node_modules/prettier/plugins/estree.mjs
var Ba = Object.defineProperty;
var jn = (e, t) => {
for (var r in t)
Ba(e, r, { get: t[r], enumerable: true });
};
var Ta = {};
jn(Ta, { languages: () => CD, options: () => Aa, printers: () => dD });
var Qs2 = [{ name: "JavaScript", type: "programming", aceMode: "javascript", extensions: [".js", "._js", ".bones", ".cjs", ".es", ".es6", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib", ".start.frag", ".end.frag", ".wxs"], filenames: ["Jakefile", "start.frag", "end.frag"], tmScope: "source.js", aliases: ["js", "node"], codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", interpreters: ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell", "zx"], parsers: ["babel", "acorn", "espree", "meriyah", "babel-flow", "babel-ts", "flow", "typescript"], vscodeLanguageIds: ["javascript", "mongo"], linguistLanguageId: 183 }, { name: "Flow", type: "programming", aceMode: "javascript", extensions: [".js.flow"], filenames: [], tmScope: "source.js", aliases: [], codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", interpreters: ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell"], parsers: ["flow", "babel-flow"], vscodeLanguageIds: ["javascript"], linguistLanguageId: 183 }, { name: "JSX", type: "programming", aceMode: "javascript", extensions: [".jsx"], filenames: undefined, tmScope: "source.js.jsx", aliases: undefined, codemirrorMode: "jsx", codemirrorMimeType: "text/jsx", interpreters: undefined, parsers: ["babel", "babel-flow", "babel-ts", "flow", "typescript", "espree", "meriyah"], vscodeLanguageIds: ["javascriptreact"], group: "JavaScript", linguistLanguageId: 183 }, { name: "TypeScript", type: "programming", aceMode: "typescript", extensions: [".ts", ".cts", ".mts"], tmScope: "source.ts", aliases: ["ts"], codemirrorMode: "javascript", codemirrorMimeType: "application/typescript", interpreters: ["bun", "deno", "ts-node", "tsx"], parsers: ["typescript", "babel-ts"], vscodeLanguageIds: ["typescript"], linguistLanguageId: 378 }, { name: "TSX", type: "programming", aceMode: "tsx", extensions: [".tsx"], tmScope: "source.tsx", codemirrorMode: "jsx", codemirrorMimeType: "text/typescript-jsx", group: "TypeScript", parsers: ["typescript", "babel-ts"], vscodeLanguageIds: ["typescriptreact"], linguistLanguageId: 94901924 }];
var Hs2 = {};
jn(Hs2, { canAttachComment: () => Pi2, embed: () => Co, features: () => DD, getVisitorKeys: () => Mr2, handleComments: () => Ji2, hasPrettierIgnore: () => nr2, insertPragma: () => Lo, isBlockComment: () => ce2, isGap: () => Gi2, massageAstNode: () => Bi2, print: () => Ys2, printComment: () => wo, printPrettierIgnored: () => Ys2, willPrintOwnComments: () => Wi2 });
var Wt2 = (e, t) => (r, n, ...s) => r | 1 && n == null ? undefined : (t.call(n) ?? n[e]).apply(n, s);
var ba = String.prototype.replaceAll ?? function(e, t) {
return e.global ? this.replace(e, t) : this.split(e).join(t);
};
var Pa = Wt2("replaceAll", function() {
if (typeof this == "string")
return ba;
});
var W2 = Pa;
function ka(e) {
return this[e < 0 ? this.length + e : e];
}
var Ia = Wt2("at", function() {
if (Array.isArray(this) || typeof this == "string")
return ka;
});
var N = Ia;
function La(e) {
return e !== null && typeof e == "object";
}
var Lr2 = La;
function* Oa(e, t) {
let { getVisitorKeys: r, filter: n = () => true } = t, s = (i) => Lr2(i) && n(i);
for (let i of r(e)) {
let o = e[i];
if (Array.isArray(o))
for (let u of o)
s(u) && (yield u);
else
s(o) && (yield o);
}
}
function* wa(e, t) {
let r = [e];
for (let n = 0;n < r.length; n++) {
let s = r[n];
for (let i of Oa(s, t))
yield i, r.push(i);
}
}
function zs2(e, { getVisitorKeys: t, predicate: r }) {
for (let n of wa(e, { getVisitorKeys: t }))
if (r(n))
return true;
return false;
}
var Zs2 = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
function vn(e) {
return e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510;
}
function Rn(e) {
return e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9776 && e <= 9783 || e >= 9800 && e <= 9811 || e === 9855 || e >= 9866 && e <= 9871 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12773 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e >= 94192 && e <= 94198 || e >= 94208 && e <= 101589 || e >= 101631 && e <= 101662 || e >= 101760 && e <= 101874 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e >= 119552 && e <= 119638 || e >= 119648 && e <= 119670 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128728 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129674 || e >= 129678 && e <= 129734 || e === 129736 || e >= 129741 && e <= 129756 || e >= 129759 && e <= 129770 || e >= 129775 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141;
}
var ei2 = "\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07";
var _a = /[^\x20-\x7F]/u;
var Ma = new Set(ei2);
function Na(e) {
if (!e)
return 0;
if (!_a.test(e))
return e.length;
e = e.replace(Zs2(), (r) => Ma.has(r) ? " " : " ");
let t = 0;
for (let r of e) {
let n = r.codePointAt(0);
n <= 31 || n >= 127 && n <= 159 || n >= 768 && n <= 879 || n >= 65024 && n <= 65039 || (t += vn(n) || Rn(n) ? 2 : 1);
}
return t;
}
var ot2 = Na;
function Or2(e) {
return (t, r, n) => {
let s = !!n?.backwards;
if (r === false)
return false;
let { length: i } = t, o = r;
for (;o >= 0 && o < i; ) {
let u = t.charAt(o);
if (e instanceof RegExp) {
if (!e.test(u))
return o;
} else if (!e.includes(u))
return o;
s ? o-- : o++;
}
return o === -1 || o === i ? o : false;
};
}
var JD = Or2(/\s/u);
var ze2 = Or2(" \t");
var ti2 = Or2(",; \t");
var ri2 = Or2(/[^\n\r]/u);
var ni2 = (e) => e === `
` || e === "\r" || e === "\u2028" || e === "\u2029";
function ja(e, t, r) {
let n = !!r?.backwards;
if (t === false)
return false;
let s = e.charAt(t);
if (n) {
if (e.charAt(t - 1) === "\r" && s === `
`)
return t - 2;
if (ni2(s))
return t - 1;
} else {
if (s === "\r" && e.charAt(t + 1) === `
`)
return t + 2;
if (ni2(s))
return t + 1;
}
return t;
}
var Ze2 = ja;
function va(e, t, r = {}) {
let n = ze2(e, r.backwards ? t - 1 : t, r), s = Ze2(e, n, r);
return n !== s;
}
var Z2 = va;
function Ra(e, t) {
if (t === false)
return false;
if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
for (let r = t + 2;r < e.length; ++r)
if (e.charAt(r) === "*" && e.charAt(r + 1) === "/")
return r + 2;
}
return t;
}
var qt2 = Ra;
function Ja(e, t) {
return t === false ? false : e.charAt(t) === "/" && e.charAt(t + 1) === "/" ? ri2(e, t) : t;
}
var Ut2 = Ja;
function Ga(e, t) {
let r = null, n = t;
for (;n !== r; )
r = n, n = ti2(e, n), n = qt2(e, n), n = ze2(e, n);
return n = Ut2(e, n), n = Ze2(e, n), n !== false && Z2(e, n);
}
var Yt2 = Ga;
function Wa(e) {
return Array.isArray(e) && e.length > 0;
}
var R2 = Wa;
var qa = () => {};
var Le2 = qa;
var si2 = Object.freeze({ character: "'", codePoint: 39 });
var ii2 = Object.freeze({ character: '"', codePoint: 34 });
var Ua = Object.freeze({ preferred: si2, alternate: ii2 });
var Ya = Object.freeze({ preferred: ii2, alternate: si2 });
function Ha(e, t) {
let { preferred: r, alternate: n } = t === true || t === "'" ? Ua : Ya, { length: s } = e, i = 0, o = 0;
for (let u = 0;u < s; u++) {
let p2 = e.charCodeAt(u);
p2 === r.codePoint ? i++ : p2 === n.codePoint && o++;
}
return (i > o ? n : r).character;
}
var wr2 = Ha;
var Xa = /\\(["'\\])|(["'])/gu;
function Va(e, t) {
let r = t === '"' ? "'" : '"', n = W2(0, e, Xa, (s, i, o) => i ? i === r ? r : s : o === t ? "\\" + o : o);
return t + n + t;
}
var oi2 = Va;
function $a(e, t) {
Le2(/^(?<quote>["']).*\k<quote>$/su.test(e));
let r = e.slice(1, -1), n = t.parser === "json" || t.parser === "jsonc" || t.parser === "json5" && t.quoteProps === "preserve" && !t.singleQuote ? '"' : t.__isInHtmlAttribute ? "'" : wr2(r, t.singleQuote);
return e.charAt(0) === n ? e : oi2(r, n);
}
var ut2 = $a;
var ui2 = (e) => Number.isInteger(e) && e >= 0;
function w2(e) {
let t = e.range?.[0] ?? e.start, r = (e.declaration?.decorators ?? e.decorators)?.[0];
return r ? Math.min(w2(r), t) : t;
}
function I(e) {
return e.range?.[1] ?? e.end;
}
function bt2(e, t) {
let r = w2(e);
return ui2(r) && r === w2(t);
}
function Ka(e, t) {
let r = I(e);
return ui2(r) && r === I(t);
}
function ai2(e, t) {
return bt2(e, t) && Ka(e, t);
}
var Dr2 = null;
function fr2(e) {
if (Dr2 !== null && typeof Dr2.property) {
let t = Dr2;
return Dr2 = fr2.prototype = null, t;
}
return Dr2 = fr2.prototype = e ?? Object.create(null), new fr2;
}
var Qa = 10;
for (let e = 0;e <= Qa; e++)
fr2();
function Gn(e) {
return fr2(e);
}
function za(e, t = "type") {
Gn(e);
function r(n) {
let s = n[t], i = e[s];
if (!Array.isArray(i))
throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), { node: n });
return i;
}
return r;
}
var _r2 = za;
var a2 = [["decorators", "key", "typeAnnotation", "value"], [], ["elementType"], ["expression"], ["expression", "typeAnnotation"], ["left", "right"], ["argument"], ["directives", "body"], ["label"], ["callee", "typeArguments", "arguments"], ["body"], ["decorators", "id", "typeParameters", "superClass", "superTypeArguments", "mixins", "implements", "body", "superTypeParameters"], ["id", "typeParameters"], ["decorators", "key", "typeParameters", "params", "returnType", "body"], ["decorators", "variance", "key", "typeAnnotation", "value"], ["name", "typeAnnotation"], ["test", "consequent", "alternate"], ["checkType", "extendsType", "trueType", "falseType"], ["value"], ["id", "body"], ["declaration", "specifiers", "source", "attributes"], ["id"], ["id", "typeParameters", "extends", "body"], ["typeAnnotation"], ["id", "typeParameters", "right"], ["body", "test"], ["members"], ["id", "init"], ["exported"], ["left", "right", "body"], ["id", "typeParameters", "params", "predicate", "returnType", "body"], ["id", "params", "body", "typeParameters", "returnType"], ["key", "value"], ["local"], ["objectType", "indexType"], ["typeParameter"], ["types"], ["node"], ["object", "property"], ["argument", "cases"], ["pattern", "body", "guard"], ["literal"], ["decorators", "key", "value"], ["expressions"], ["qualification", "id"], ["decorators", "key", "typeAnnotation"], ["typeParameters", "params", "returnType"], ["expression", "typeArguments"], ["params"], ["parameterName", "typeAnnotation"]];
var pi2 = { AccessorProperty: a2[0], AnyTypeAnnotation: a2[1], ArgumentPlaceholder: a2[1], ArrayExpression: ["elements"], ArrayPattern: ["elements", "typeAnnotation", "decorators"], ArrayTypeAnnotation: a2[2], ArrowFunctionExpression: ["typeParameters", "params", "predicate", "returnType", "body"], AsConstExpression: a2[3], AsExpression: a2[4], AssignmentExpression: a2[5], AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"], AwaitExpression: a2[6], BigIntLiteral: a2[1], BigIntLiteralTypeAnnotation: a2[1], BigIntTypeAnnotation: a2[1], BinaryExpression: a2[5], BindExpression: ["object", "callee"], BlockStatement: a2[7], BooleanLiteral: a2[1], BooleanLiteralTypeAnnotation: a2[1], BooleanTypeAnnotation: a2[1], BreakStatement: a2[8], CallExpression: a2[9], CatchClause: ["param", "body"], ChainExpression: a2[3], ClassAccessorProperty: a2[0], ClassBody: a2[10], ClassDeclaration: a2[11], ClassExpression: a2[11], ClassImplements: a2[12], ClassMethod: a2[13], ClassPrivateMethod: a2[13], ClassPrivateProperty: a2[14], ClassProperty: a2[14], ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"], ComponentParameter: ["name", "local"], ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"], ComponentTypeParameter: a2[15], ConditionalExpression: a2[16], ConditionalTypeAnnotation: a2[17], ContinueStatement: a2[8], DebuggerStatement: a2[1], DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"], DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"], DeclaredPredicate: a2[18], DeclareEnum: a2[19], DeclareExportAllDeclaration: ["source", "attributes"], DeclareExportDeclaration: a2[20], DeclareFunction: ["id", "predicate"], DeclareHook: a2[21], DeclareInterface: a2[22], DeclareModule: a2[19], DeclareModuleExports: a2[23], DeclareNamespace: a2[19], DeclareOpaqueType: ["id", "typeParameters", "supertype", "lowerBound", "upperBound"], DeclareTypeAlias: a2[24], DeclareVariable: a2[21], Decorator: a2[3], Directive: a2[18], DirectiveLiteral: a2[1], DoExpression: a2[10], DoWhileStatement: a2[25], EmptyStatement: a2[1], EmptyTypeAnnotation: a2[1], EnumBigIntBody: a2[26], EnumBigIntMember: a2[27], EnumBooleanBody: a2[26], EnumBooleanMember: a2[27], EnumDeclaration: a2[19], EnumDefaultedMember: a2[21], EnumNumberBody: a2[26], EnumNumberMember: a2[27], EnumStringBody: a2[26], EnumStringMember: a2[27], EnumSymbolBody: a2[26], ExistsTypeAnnotation: a2[1], ExperimentalRestProperty: a2[6], ExperimentalSpreadProperty: a2[6], ExportAllDeclaration: ["source", "attributes", "exported"], ExportDefaultDeclaration: ["declaration"], ExportDefaultSpecifier: a2[28], ExportNamedDeclaration: a2[20], ExportNamespaceSpecifier: a2[28], ExportSpecifier: ["local", "exported"], ExpressionStatement: a2[3], File: ["program"], ForInStatement: a2[29], ForOfStatement: a2[29], ForStatement: ["init", "test", "update", "body"], FunctionDeclaration: a2[30], FunctionExpression: a2[30], FunctionTypeAnnotation: ["typeParameters", "this", "params", "rest", "returnType"], FunctionTypeParam: a2[15], GenericTypeAnnotation: a2[12], HookDeclaration: a2[31], HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"], Identifier: ["typeAnnotation", "decorators"], IfStatement: a2[16], ImportAttribute: a2[32], ImportDeclaration: ["specifiers", "source", "attributes"], ImportDefaultSpecifier: a2[33], ImportExpression: ["source", "options"], ImportNamespaceSpecifier: a2[33], ImportSpecifier: ["imported", "local"], IndexedAccessType: a2[34], InferredPredicate: a2[1], InferTypeAnnotation: a2[35], InterfaceDeclaration: a2[22], InterfaceExtends: a2[12], InterfaceTypeAnnotation: ["extends", "body"], InterpreterDirective: a2[1], IntersectionTypeAnnotation: a2[36], JsExpressionRoot: a2[37], JsonRoot: a2[37], JSXAttribute: ["name", "value"], JSXClosingElement: ["name"], JSXClosingFragment: a2[1], JSXElement: ["openingElement", "children", "closingElement"], JSXEmptyExpression: a2[1], JSXExpressionContainer: a2[3], JSXFragment: ["openingFragment", "children", "closingFragment"], JSXIdentifier: a2[1], JSXMemberExpression: a2[38], JSXNamespacedName: ["namespace", "name"], JSXOpeningElement: ["name", "typeArguments", "attributes"], JSXOpeningFragment: a2[1], JSXSpreadAttribute: a2[6], JSXSpreadChild: a2[3], JSXText: a2[1], KeyofTypeAnnotation: a2[6], LabeledStatement: ["label", "body"], Literal: a2[1], LogicalExpression: a2[5], MatchArrayPattern: ["elements", "rest"], MatchAsPattern: ["pattern", "target"], MatchBindingPattern: a2[21], MatchExpression: a2[39], MatchExpressionCase: a2[40], MatchIdentifierPattern: a2[21], MatchLiteralPattern: a2[41], MatchMemberPattern: ["base", "property"], MatchObjectPattern: ["properties", "rest"], MatchObjectPatternProperty: ["key", "pattern"], MatchOrPattern: ["patterns"], MatchRestPattern: a2[6], MatchStatement: a2[39], MatchStatementCase: a2[40], MatchUnaryPattern: a2[6], MatchWildcardPattern: a2[1], MemberExpression: a2[38], MetaProperty: ["meta", "property"], MethodDefinition: a2[42], MixedTypeAnnotation: a2[1], ModuleExpression: a2[10], NeverTypeAnnotation: a2[1], NewExpression: a2[9], NGChainedExpression: a2[43], NGEmptyExpression: a2[1], NGMicrosyntax: a2[10], NGMicrosyntaxAs: ["key", "alias"], NGMicrosyntaxExpression: ["expression", "alias"], NGMicrosyntaxKey: a2[1], NGMicrosyntaxKeyedExpression: ["key", "expression"], NGMicrosyntaxLet: a2[32], NGPipeExpression: ["left", "right", "arguments"], NGRoot: a2[37], NullableTypeAnnotation: a2[23], NullLiteral: a2[1], NullLiteralTypeAnnotation: a2[1], NumberLiteralTypeAnnotation: a2[1], NumberTypeAnnotation: a2[1], NumericLiteral: a2[1], ObjectExpression: ["properties"], ObjectMethod: a2[13], ObjectPattern: ["decorators", "properties", "typeAnnotation"], ObjectProperty: a2[42], ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"], ObjectTypeCallProperty: a2[18], ObjectTypeIndexer: ["variance", "id", "key", "value"], ObjectTypeInternalSlot: ["id", "value"], ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"], ObjectTypeProperty: ["key", "value", "variance"], ObjectTypeSpreadProperty: a2[6], OpaqueType: ["id", "typeParameters", "supertype", "impltype", "lowerBound", "upperBound"], OptionalCallExpression: a2[9], OptionalIndexedAccessType: a2[34], OptionalMemberExpression: a2[38], ParenthesizedExpression: a2[3], PipelineBareFunction: ["callee"], PipelinePrimaryTopicReference: a2[1], PipelineTopicExpression: a2[3], Placeholder: a2[1], PrivateIdentifier: a2[1], PrivateName: a2[21], Program: a2[7], Property: a2[32], PropertyDefinition: a2[14], QualifiedTypeIdentifier: a2[44], QualifiedTypeofIdentifier: a2[44], RegExpLiteral: a2[1], RestElement: ["argument", "typeAnnotation", "decorators"], ReturnStatement: a2[6], SatisfiesExpression: a2[4], SequenceExpression: a2[43], SpreadElement: a2[6], StaticBlock: a2[10], StringLiteral: a2[1], StringLiteralTypeAnnotation: a2[1], StringTypeAnnotation: a2[1], Super: a2[1], SwitchCase: ["test", "consequent"], SwitchStatement: ["discriminant", "cases"], SymbolTypeAnnotation: a2[1], TaggedTemplateExpression: ["tag", "typeArguments", "quasi"], TemplateElement: a2[1], TemplateLiteral: ["quasis", "expressions"], ThisExpression: a2[1], ThisTypeAnnotation: a2[1], ThrowStatement: a2[6], TopicReference: a2[1], TryStatement: ["block", "handler", "finalizer"], TSAbstractAccessorProperty: a2[45], TSAbstractKeyword: a2[1], TSAbstractMethodDefinition: a2[32], TSAbstractPropertyDefinition: a2[45], TSAnyKeyword: a2[1], TSArrayType: a2[2], TSAsExpression: a2[4], TSAsyncKeyword: a2[1], TSBigIntKeyword: a2[1], TSBooleanKeyword: a2[1], TSCallSignatureDeclaration: a2[46], TSClassImplements: a2[47], TSConditionalType: a2[17], TSConstructorType: a2[46], TSConstructSignatureDeclaration: a2[46], TSDeclareFunction: a2[31], TSDeclareKeyword: a2[1], TSDeclareMethod: ["decorators", "key", "typeParameters", "params", "returnType"], TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"], TSEnumBody: a2[26], TSEnumDeclaration: a2[19], TSEnumMember: ["id", "initializer"], TSExportAssignment: a2[3], TSExportKeyword: a2[1], TSExternalModuleReference: a2[3], TSFunctionType: a2[46], TSImportEqualsDeclaration: ["id", "moduleReference"], TSImportType: ["options", "qualifier", "typeArguments", "source"], TSIndexedAccessType: a2[34], TSIndexSignature: ["parameters", "typeAnnotation"], TSInferType: a2[35], TSInstantiationExpression: a2[47], TSInterfaceBody: a2[10], TSInterfaceDeclaration: a2[22], TSInterfaceHeritage: a2[47], TSIntersectionType: a2[36], TSIntrinsicKeyword: a2[1], TSJSDocAllType: a2[1], TSJSDocNonNullableType: a2[23], TSJSDocNullableType: a2[23], TSJSDocUnknownType: a2[1], TSLiteralType: a2[41], TSMappedType: ["key", "constraint", "nameType", "typeAnnotation"], TSMethodSignature: ["key", "typeParameters", "params", "returnType"], TSModuleBlock: a2[10], TSModuleDeclaration: a2[19], TSNamedTupleMember: ["label", "elementType"], TSNamespaceExportDeclaration: a2[21], TSNeverKeyword: a2[1], TSNonNullExpression: a2[3], TSNullKeyword: a2[1], TSNumberKeyword: a2[1], TSObjectKeyword: a2[1], TSOptionalType: a2[23], TSParameterProperty: ["parameter", "decorators"], TSParenthesizedType: a2[23], TSPrivateKeyword: a2[1], TSPropertySignature: ["key", "typeAnnotation"], TSProtectedKeyword: a2[1], TSPublicKeyword: a2[1], TSQualifiedName: a2[5], TSReadonlyKeyword: a2[1], TSRestType: a2[23], TSSatisfiesExpression: a2[4], TSStaticKeyword: a2[1], TSStringKeyword: a2[1], TSSymbolKeyword: a2[1], TSTemplateLiteralType: ["quasis", "types"], TSThisType: a2[1], TSTupleType: ["elementTypes"], TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"], TSTypeAnnotation: a2[23], TSTypeAssertion: a2[4], TSTypeLiteral: a2[26], TSTypeOperator: a2[23], TSTypeParameter: ["name", "constraint", "default"], TSTypeParameterDeclaration: a2[48], TSTypeParameterInstantiation: a2[48], TSTypePredicate: a2[49], TSTypeQuery: ["exprName", "typeArguments"], TSTypeReference: ["typeName", "typeArguments"], TSUndefinedKeyword: a2[1], TSUnionType: a2[36], TSUnknownKeyword: a2[1], TSVoidKeyword: a2[1], TupleTypeAnnotation: ["types", "elementTypes"], TupleTypeLabeledElement: ["label", "elementType", "variance"], TupleTypeSpreadElement: ["label", "typeAnnotation"], TypeAlias: a2[24], TypeAnnotation: a2[23], TypeCastExpression: a2[4], TypeofTypeAnnotation: ["argument", "typeArguments"], TypeOperator: a2[23], TypeParameter: ["bound", "default", "variance"], TypeParameterDeclaration: a2[48], TypeParameterInstantiation: a2[48], TypePredicate: a2[49], UnaryExpression: a2[6], UndefinedTypeAnnotation: a2[1], UnionTypeAnnotation: a2[36], UnknownTypeAnnotation: a2[1], UpdateExpression: a2[6], V8IntrinsicIdentifier: a2[1], VariableDeclaration: ["declarations"], VariableDeclarator: a2[27], Variance: a2[1], VoidPattern: a2[1], VoidTypeAnnotation: a2[1], WhileStatement: a2[25], WithStatement: ["object", "body"], YieldExpression: a2[6] };
var Za = _r2(pi2);
var Mr2 = Za;
function ep(e) {
let t = new Set(e);
return (r) => t.has(r?.type);
}
var k = ep;
function tp(e) {
return e.extra?.raw ?? e.raw;
}
var pe2 = tp;
var rp = k(["Block", "CommentBlock", "MultiLine"]);
var ce2 = rp;
var np = k(["AnyTypeAnnotation", "ThisTypeAnnotation", "NumberTypeAnnotation", "VoidTypeAnnotation", "BooleanTypeAnnotation", "BigIntTypeAnnotation", "SymbolTypeAnnotation", "StringTypeAnnotation", "NeverTypeAnnotation", "UndefinedTypeAnnotation", "UnknownTypeAnnotation", "EmptyTypeAnnotation", "MixedTypeAnnotation"]);
var Nr2 = np;
var sp = k(["Line", "CommentLine", "SingleLine", "HashbangComment", "HTMLOpen", "HTMLClose", "Hashbang", "InterpreterDirective"]);
var At2 = sp;
function ip(e, t) {
let r = t.split(".");
for (let n = r.length - 1;n >= 0; n--) {
let s = r[n];
if (n === 0)
return e.type === "Identifier" && e.name === s;
if (n === 1 && e.type === "MetaProperty" && e.property.type === "Identifier" && e.property.name === s) {
e = e.meta;
continue;
}
if (e.type === "MemberExpression" && !e.optional && !e.computed && e.property.type === "Identifier" && e.property.name === s) {
e = e.object;
continue;
}
return false;
}
}
function op(e, t) {
return t.some((r) => ip(e, r));
}
var Pt2 = op;
function up({ type: e }) {
return e.startsWith("TS") && e.endsWith("Keyword");
}
var jr2 = up;
function ap({ node: e, parent: t }) {
return e?.type !== "EmptyStatement" ? false : t.type === "IfStatement" ? t.consequent === e || t.alternate === e : t.type === "DoWhileStatement" || t.type === "ForInStatement" || t.type === "ForOfStatement" || t.type === "ForStatement" || t.type === "LabeledStatement" || t.type === "WithStatement" || t.type === "WhileStatement" ? t.body === e : false;
}
var kt2 = ap;
function Er2(e, t) {
return t(e) || zs2(e, { getVisitorKeys: Mr2, predicate: t });
}
function Xt2(e) {
return e.type === "AssignmentExpression" || e.type === "BinaryExpression" || e.type === "LogicalExpression" || e.type === "NGPipeExpression" || e.type === "ConditionalExpression" || M2(e) || J2(e) || e.type === "SequenceExpression" || e.type === "TaggedTemplateExpression" || e.type === "BindExpression" || e.type === "UpdateExpression" && !e.prefix || Ae2(e) || e.type === "TSNonNullExpression" || e.type === "ChainExpression";
}
function mi2(e) {
return e.expressions ? e.expressions[0] : e.left ?? e.test ?? e.callee ?? e.object ?? e.tag ?? e.argument ?? e.expression;
}
function Rr2(e) {
if (e.expressions)
return ["expressions", 0];
if (e.left)
return ["left"];
if (e.test)
return ["test"];
if (e.object)
return ["object"];
if (e.callee)
return ["callee"];
if (e.tag)
return ["tag"];
if (e.argument)
return ["argument"];
if (e.expression)
return ["expression"];
throw new Error("Unexpected node has no left side.");
}
var Di2 = k(["ExportDefaultDeclaration", "DeclareExportDeclaration", "ExportNamedDeclaration", "ExportAllDeclaration", "DeclareExportAllDeclaration"]);
var q2 = k(["ArrayExpression"]);
var se2 = k(["ObjectExpression"]);
function fi2(e) {
return e.type === "LogicalExpression" && e.operator === "??";
}
function Ce2(e) {
return e.type === "NumericLiteral" || e.type === "Literal" && typeof e.value == "number";
}
function yi2(e) {
return e.type === "BooleanLiteral" || e.type === "Literal" && typeof e.value == "boolean";
}
function Hn(e) {
return e.type === "UnaryExpression" && (e.operator === "+" || e.operator === "-") && Ce2(e.argument);
}
function V2(e) {
return !!(e && (e.type === "StringLiteral" || e.type === "Literal" && typeof e.value == "string"));
}
function Xn(e) {
return e.type === "RegExpLiteral" || e.type === "Literal" && !!e.regex;
}
var Jr2 = k(["Literal", "BooleanLiteral", "BigIntLiteral", "DirectiveLiteral", "NullLiteral", "NumericLiteral", "RegExpLiteral", "StringLiteral"]);
var pp = k(["Identifier", "ThisExpression", "Super", "PrivateName", "PrivateIdentifier"]);
var Je2 = k(["ObjectTypeAnnotation", "TSTypeLiteral", "TSMappedType"]);
var Ht2 = k(["FunctionExpression", "ArrowFunctionExpression"]);
function cp(e) {
return e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && e.body.type === "BlockStatement";
}
function Wn(e) {
return M2(e) && e.callee.type === "Identifier" && ["async", "inject", "fakeAsync", "waitForAsync"].includes(e.callee.name);
}
var H2 = k(["JSXElement", "JSXFragment"]);
function mt2(e) {
return e.method && e.kind === "init" || e.kind === "get" || e.kind === "set";
}
function Gr2(e) {
return (e.type === "ObjectTypeProperty" || e.type === "ObjectTypeInternalSlot") && !e.static && !e.method && e.kind !== "get" && e.kind !== "set" && e.value.type === "FunctionTypeAnnotation";
}
function Ei2(e) {
return (e.type === "TypeAnnotation" || e.type === "TSTypeAnnotation") && e.typeAnnotation.type === "FunctionTypeAnnotation" && !e.static && !bt2(e, e.typeAnnotation);
}
var Te2 = k(["BinaryExpression", "LogicalExpression", "NGPipeExpression"]);
function Tt2(e) {
return J2(e) || e.type === "BindExpression" && !!e.object;
}
var lp = k(["TSThisType", "NullLiteralTypeAnnotation", "BooleanLiteralTypeAnnotation", "StringLiteralTypeAnnotation", "BigIntLiteralTypeAnnotation", "NumberLiteralTypeAnnotation", "TSLiteralType", "TSTemplateLiteralType"]);
function Vt2(e) {
return jr2(e) || Nr2(e) || lp(e) || e.type === "GenericTypeAnnotation" && !e.typeParameters || e.type === "TSTypeReference" && !e.typeArguments;
}
function mp(e) {
return e.type === "Identifier" && (e.name === "beforeEach" || e.name === "beforeAll" || e.name === "afterEach" || e.name === "afterAll");
}
var Dp = ["it", "it.only", "it.skip", "describe", "describe.only", "describe.skip", "test", "test.only", "test.skip", "test.fixme", "test.step", "test.describe", "test.describe.only", "test.describe.skip", "test.describe.fixme", "test.describe.parallel", "test.describe.parallel.only", "test.describe.serial", "test.describe.serial.only", "skip", "xit", "xdescribe", "xtest", "fit", "fdescribe", "ftest"];
function fp(e) {
return Pt2(e, Dp);
}
function It2(e, t) {
if (e?.type !== "CallExpression" || e.optional)
return false;
let r = le2(e);
if (r.length === 1) {
if (Wn(e) && It2(t))
return Ht2(r[0]);
if (mp(e.callee))
return Wn(r[0]);
} else if ((r.length === 2 || r.length === 3) && (r[0].type === "TemplateLiteral" || V2(r[0])) && fp(e.callee))
return r[2] && !Ce2(r[2]) ? false : (r.length === 2 ? Ht2(r[1]) : cp(r[1]) && K2(r[1]).length <= 1) || Wn(r[1]);
return false;
}
var Fi2 = (e) => (t) => (t?.type === "ChainExpression" && (t = t.expression), e(t));
var M2 = Fi2(k(["CallExpression", "OptionalCallExpression"]));
var J2 = Fi2(k(["MemberExpression", "OptionalMemberExpression"]));
function Vn(e, t = 5) {
return di2(e, t) <= t;
}
function di2(e, t) {
let r = 0;
for (let n in e) {
let s = e[n];
if (Lr2(s) && typeof s.type == "string" && (r++, r += di2(s, t - r)), r > t)
return r;
}
return r;
}
var yp = 0.25;
function Fr2(e, t) {
let { printWidth: r } = t;
if (T2(e))
return false;
let n = r * yp;
if (e.type === "ThisExpression" || e.type === "Identifier" && e.name.length <= n || Hn(e) && !T2(e.argument))
return true;
let s = e.type === "Literal" && "regex" in e && e.regex.pattern || e.type === "RegExpLiteral" && e.pattern;
return s ? s.length <= n : V2(e) ? ut2(pe2(e), t).length <= n : e.type === "TemplateLiteral" ? e.expressions.length === 0 && e.quasis[0].value.raw.length <= n && !e.quasis[0].value.raw.includes(`
`) : e.type === "UnaryExpression" ? Fr2(e.argument, { printWidth: r }) : e.type === "CallExpression" && e.arguments.length === 0 && e.callee.type === "Identifier" ? e.callee.name.length <= n - 2 : Jr2(e);
}
function Ee2(e, t) {
return H2(t) ? Ot2(t) : T2(t, x.Leading, (r) => Z2(e, I(r)));
}
function ci2(e) {
return e.quasis.some((t) => t.value.raw.includes(`
`));
}
function Wr2(e, t) {
return (e.type === "TemplateLiteral" && ci2(e) || e.type === "TaggedTemplateExpression" && ci2(e.quasi)) && !Z2(t, w2(e), { backwards: true });
}
function qr2(e) {
if (!T2(e))
return false;
let t = N(0, et2(e, x.Dangling), -1);
return t && !ce2(t);
}
function Ci2(e) {
if (e.length <= 1)
return false;
let t = 0;
for (let r of e)
if (Ht2(r)) {
if (t += 1, t > 1)
return true;
} else if (M2(r)) {
for (let n of le2(r))
if (Ht2(n))
return true;
}
return false;
}
function Ur2(e) {
let { node: t, parent: r, key: n } = e;
return n === "callee" && M2(t) && M2(r) && r.arguments.length > 0 && t.arguments.length > r.arguments.length;
}
var Ep = new Set(["!", "-", "+", "~"]);
function Re2(e, t = 2) {
if (t <= 0)
return false;
if (e.type === "ChainExpression" || e.type === "TSNonNullExpression")
return Re2(e.expression, t);
let r = (n) => Re2(n, t - 1);
if (Xn(e))
return ot2(e.pattern ?? e.regex.pattern) <= 5;
if (Jr2(e) || pp(e) || e.type === "ArgumentPlaceholder")
return true;
if (e.type === "TemplateLiteral")
return e.quasis.every((n) => !n.value.raw.includes(`
`)) && e.expressions.every(r);
if (se2(e))
return e.properties.every((n) => !n.computed && (n.shorthand || n.value && r(n.value)));
if (q2(e))
return e.elements.every((n) => n === null || r(n));
if (Dt2(e)) {
if (e.type === "ImportExpression" || Re2(e.callee, t)) {
let n = le2(e);
return n.length <= t && n.every(r);
}
return false;
}
return J2(e) ? Re2(e.object, t) && Re2(e.property, t) : e.type === "UnaryExpression" && Ep.has(e.operator) || e.type === "UpdateExpression" ? Re2(e.argument, t) : false;
}
function ie2(e, t = "es5") {
return e.trailingComma === "es5" && t === "es5" || e.trailingComma === "all" && (t === "all" || t === "es5");
}
function ye2(e, t) {
switch (e.type) {
case "BinaryExpression":
case "LogicalExpression":
case "AssignmentExpression":
case "NGPipeExpression":
return ye2(e.left, t);
case "MemberExpression":
case "OptionalMemberExpression":
return ye2(e.object, t);
case "TaggedTemplateExpression":
return e.tag.type === "FunctionExpression" ? false : ye2(e.tag, t);
case "CallExpression":
case "OptionalCallExpression":
return e.callee.type === "FunctionExpression" ? false : ye2(e.callee, t);
case "ConditionalExpression":
return ye2(e.test, t);
case "UpdateExpression":
return !e.prefix && ye2(e.argument, t);
case "BindExpression":
return e.object && ye2(e.object, t);
case "SequenceExpression":
return ye2(e.expressions[0], t);
case "ChainExpression":
case "TSSatisfiesExpression":
case "TSAsExpression":
case "TSNonNullExpression":
case "AsExpression":
case "AsConstExpression":
case "SatisfiesExpression":
return ye2(e.expression, t);
default:
return t(e);
}
}
var li2 = { "==": true, "!=": true, "===": true, "!==": true };
var vr2 = { "*": true, "/": true, "%": true };
var Yn = { ">>": true, ">>>": true, "<<": true };
function dr2(e, t) {
return !(yr2(t) !== yr2(e) || e === "**" || li2[e] && li2[t] || t === "%" && vr2[e] || e === "%" && vr2[t] || t !== e && vr2[t] && vr2[e] || Yn[e] && Yn[t]);
}
var Fp = new Map([["|>"], ["??"], ["||"], ["&&"], ["|"], ["^"], ["&"], ["==", "===", "!=", "!=="], ["<", ">", "<=", ">=", "in", "instanceof"], [">>", "<<", ">>>"], ["+", "-"], ["*", "/", "%"], ["**"]].flatMap((e, t) => e.map((r) => [r, t])));
function yr2(e) {
return Fp.get(e);
}
function Ai2(e) {
return !!Yn[e] || e === "|" || e === "^" || e === "&";
}
function Ti2(e) {
if (e.rest)
return true;
let t = K2(e);
return N(0, t, -1)?.type === "RestElement";
}
var qn = new WeakMap;
function K2(e) {
if (qn.has(e))
return qn.get(e);
let t = [];
return e.this && t.push(e.this), t.push(...e.params), e.rest && t.push(e.rest), qn.set(e, t), t;
}
function xi2(e, t) {
let { node: r } = e, n = 0, s = () => t(e, n++);
r.this && e.call(s, "this"), e.each(s, "params"), r.rest && e.call(s, "rest");
}
var Un = new WeakMap;
function le2(e) {
if (Un.has(e))
return Un.get(e);
if (e.type === "ChainExpression")
return le2(e.expression);
let t;
return e.type === "ImportExpression" || e.type === "TSImportType" ? (t = [e.source], e.options && t.push(e.options)) : e.type === "TSExternalModuleReference" ? t = [e.expression] : t = e.arguments, Un.set(e, t), t;
}
function $t2(e, t) {
let { node: r } = e;
if (r.type === "ChainExpression")
return e.call(() => $t2(e, t), "expression");
r.type === "ImportExpression" || r.type === "TSImportType" ? (e.call(() => t(e, 0), "source"), r.options && e.call(() => t(e, 1), "options")) : r.type === "TSExternalModuleReference" ? e.call(() => t(e, 0), "expression") : e.each(t, "arguments");
}
function $n(e, t) {
let r = [];
if (e.type === "ChainExpression" && (e = e.expression, r.push("expression")), e.type === "ImportExpression" || e.type === "TSImportType") {
if (t === 0 || t === (e.options ? -2 : -1))
return [...r, "source"];
if (e.options && (t === 1 || t === -1))
return [...r, "options"];
throw new RangeError("Invalid argument index");
} else if (e.type === "TSExternalModuleReference") {
if (t === 0 || t === -1)
return [...r, "expression"];
} else if (t < 0 && (t = e.arguments.length + t), t >= 0 && t < e.arguments.length)
return [...r, "arguments", t];
throw new RangeError("Invalid argument index");
}
function Lt2(e) {
return e.value.trim() === "prettier-ignore" && !e.unignore;
}
function Ot2(e) {
return e?.prettierIgnore || T2(e, x.PrettierIgnore);
}
var x = { Leading: 2, Trailing: 4, Dangling: 8, Block: 16, Line: 32, PrettierIgnore: 64, First: 128, Last: 256 };
var gi2 = (e, t) => {
if (typeof e == "function" && (t = e, e = 0), e || t)
return (r, n, s) => !(e & x.Leading && !r.leading || e & x.Trailing && !r.trailing || e & x.Dangling && (r.leading || r.trailing) || e & x.Block && !ce2(r) || e & x.Line && !At2(r) || e & x.First && n !== 0 || e & x.Last && n !== s.length - 1 || e & x.PrettierIgnore && !Lt2(r) || t && !t(r));
};
function T2(e, t, r) {
if (!R2(e?.comments))
return false;
let n = gi2(t, r);
return n ? e.comments.some(n) : true;
}
function et2(e, t, r) {
if (!Array.isArray(e?.comments))
return [];
let n = gi2(t, r);
return n ? e.comments.filter(n) : e.comments;
}
var oe2 = (e, { originalText: t }) => Yt2(t, I(e));
function Dt2(e) {
return M2(e) || e.type === "NewExpression" || e.type === "ImportExpression";
}
function Oe2(e) {
return e && (e.type === "ObjectProperty" || e.type === "Property" && !mt2(e));
}
var Ae2 = k(["TSAsExpression", "TSSatisfiesExpression", "AsExpression", "AsConstExpression", "SatisfiesExpression"]);
var Se2 = k(["TSUnionType", "UnionTypeAnnotation"]);
var xt2 = k(["TSIntersectionType", "IntersectionTypeAnnotation"]);
var Ue2 = k(["TSConditionalType", "ConditionalTypeAnnotation"]);
var hi2 = (e) => e?.type === "TSAsExpression" && e.typeAnnotation.type === "TSTypeReference" && e.typeAnnotation.typeName.type === "Identifier" && e.typeAnnotation.typeName.name === "const";
var Cr2 = k(["TSTypeAliasDeclaration", "TypeAlias"]);
function Yr2({ key: e, parent: t }) {
return !(e === "types" && Se2(t) || e === "types" && xt2(t));
}
var dp = new Set(["range", "raw", "comments", "leadingComments", "trailingComments", "innerComments", "extra", "start", "end", "loc", "flags", "errors", "tokens"]);
var Kt2 = (e) => {
for (let t of e.quasis)
delete t.value;
};
function Si2(e, t, r) {
if (e.type === "Program" && delete t.sourceType, (e.type === "BigIntLiteral" || e.type === "Literal") && e.bigint && (t.bigint = e.bigint.toLowerCase()), e.type === "EmptyStatement" && !kt2({ node: e, parent: r }) || e.type === "JSXText" || e.type === "JSXExpressionContainer" && (e.expression.type === "Literal" || e.expression.type === "StringLiteral") && e.expression.value === " ")
return null;
if ((e.type === "Property" || e.type === "ObjectProperty" || e.type === "MethodDefinition" || e.type === "ClassProperty" || e.type === "ClassMethod" || e.type === "PropertyDefinition" || e.type === "TSDeclareMethod" || e.type === "TSPropertySignature" || e.type === "ObjectTypeProperty" || e.type === "ImportAttribute") && e.key && !e.computed) {
let { key: s } = e;
V2(s) || Ce2(s) ? t.key = String(s.value) : s.type === "Identifier" && (t.key = s.name);
}
if (e.type === "JSXElement" && e.openingElement.name.name === "style" && e.openingElement.attributes.some((s) => s.type === "JSXAttribute" && s.name.name === "jsx"))
for (let { type: s, expression: i } of t.children)
s === "JSXExpressionContainer" && i.type === "TemplateLiteral" && Kt2(i);
e.type === "JSXAttribute" && e.name.name === "css" && e.value.type === "JSXExpressionContainer" && e.value.expression.type === "TemplateLiteral" && Kt2(t.value.expression), e.type === "JSXAttribute" && e.value?.type === "Literal" && /["']|"|'/u.test(e.value.value) && (t.value.value = W2(0, e.value.value, /["']|"|'/gu, '"'));
let n = e.expression || e.callee;
if (e.type === "Decorator" && n.type === "CallExpression" && n.callee.name === "Component" && n.arguments.length === 1) {
let s = e.expression.arguments[0].properties;
for (let [i, o] of t.expression.arguments[0].properties.entries())
switch (s[i].key.name) {
case "styles":
q2(o.value) && Kt2(o.value.elements[0]);
break;
case "template":
o.value.type === "TemplateLiteral" && Kt2(o.value);
break;
}
}
e.type === "TaggedTemplateExpression" && (e.tag.type === "MemberExpression" || e.tag.type === "Identifier" && (e.tag.name === "gql" || e.tag.name === "graphql" || e.tag.name === "css" || e.tag.name === "md" || e.tag.name === "markdown" || e.tag.name === "html") || e.tag.type === "CallExpression") && Kt2(t.quasi), e.type === "TemplateLiteral" && Kt2(t), e.type === "ChainExpression" && e.expression.type === "TSNonNullExpression" && (t.type = "TSNonNullExpression", t.expression.type = "ChainExpression");
}
Si2.ignoredProperties = dp;
var Bi2 = Si2;
var Cp = k(["File", "TemplateElement", "TSEmptyBodyFunctionExpression", "ChainExpression"]);
var Ap = (e, [t]) => t?.type === "ComponentParameter" && t.shorthand && t.name === e && t.local !== t.name || t?.type === "MatchObjectPatternProperty" && t.shorthand && t.key === e && t.value !== t.key || t?.type === "ObjectProperty" && t.shorthand && t.key === e && t.value !== t.key || t?.type === "Property" && t.shorthand && t.key === e && !mt2(t) && t.value !== t.key;
var Tp = (e, [t]) => !!(e.type === "FunctionExpression" && t.type === "MethodDefinition" && t.value === e && K2(e).length === 0 && !e.returnType && !R2(e.typeParameters) && e.body);
var bi2 = (e, [t]) => t?.typeAnnotation === e && hi2(t);
var xp = (e, [t, ...r]) => bi2(e, [t]) || t?.typeName === e && bi2(t, r);
function gp(e, t) {
return Cp(e) || Ap(e, t) || Tp(e, t) ? false : e.type === "EmptyStatement" ? kt2({ node: e, parent: t[0] }) : !(xp(e, t) || e.type === "TSTypeAnnotation" && t[0].type === "TSPropertySignature");
}
var Pi2 = gp;
function hp(e) {
let t = e.type || e.kind || "(unknown type)", r = String(e.name || e.id && (typeof e.id == "object" ? e.id.name : e.id) || e.key && (typeof e.key == "object" ? e.key.name : e.key) || e.value && (typeof e.value == "object" ? "" : String(e.value)) || e.operator || "");
return r.length > 20 && (r = r.slice(0, 19) + "\u2026"), t + (r ? " " + r : "");
}
function Kn(e, t) {
(e.comments ?? (e.comments = [])).push(t), t.printed = false, t.nodeDescription = hp(e);
}
function te2(e, t) {
t.leading = true, t.trailing = false, Kn(e, t);
}
function we2(e, t, r) {
t.leading = false, t.trailing = false, r && (t.marker = r), Kn(e, t);
}
function $2(e, t) {
t.leading = false, t.trailing = true, Kn(e, t);
}
function Sp(e, t) {
let r = null, n = t;
for (;n !== r; )
r = n, n = ze2(e, n), n = qt2(e, n), n = Ut2(e, n), n = Ze2(e, n);
return n;
}
var at2 = Sp;
function Bp(e, t) {
let r = at2(e, t);
return r === false ? "" : e.charAt(r);
}
var _e2 = Bp;
function bp(e, t, r) {
for (let n = t;n < r; ++n)
if (e.charAt(n) === `
`)
return true;
return false;
}
var ue2 = bp;
var Qn = new WeakMap;
function Pp(e) {
return Qn.has(e) || Qn.set(e, ce2(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/u.test(e.value)), Qn.get(e);
}
var Hr2 = Pp;
var Zn = (e, t) => At2(e) || !ue2(t, w2(e), I(e));
function kp(e) {
return [ji2, Ii2, _i2, Jp, wp, es2, ts2, ki2, Li2, Yp, Wp, qp, ns2, Ni2, Hp, Oi2, Mi2, rs2, _p, Zp, vi2, ss2].some((t) => t(e));
}
function Ip(e) {
return [Op, _i2, Ii2, Ni2, es2, ts2, ki2, Li2, Mi2, Gp, Up, ns2, $p, rs2, Qp, zp, ec, vi2, rc, tc, ss2].some((t) => t(e));
}
function Lp(e) {
return [ji2, es2, ts2, Rp, Oi2, ns2, vp, jp, rs2, Kp, ss2].some((t) => t(e));
}
function wt2(e, t) {
let r = (e.body || e.properties).find(({ type: n }) => n !== "EmptyStatement");
r ? te2(r, t) : we2(e, t);
}
function zn(e, t) {
e.type === "BlockStatement" ? wt2(e, t) : te2(e, t);
}
function Op({ comment: e, followingNode: t }) {
return t && Hr2(e) ? (te2(t, e), true) : false;
}
function es2({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
if (r?.type !== "IfStatement" || !n)
return false;
if (_e2(s, I(e)) === ")")
return $2(t, e), true;
if (n.type === "BlockStatement" && n === r.consequent && w2(e) >= I(t) && I(e) <= w2(n))
return te2(n, e), true;
if (t === r.consequent && n === r.alternate) {
let o = at2(s, I(r.consequent));
if (n.type === "BlockStatement" && w2(e) >= o && I(e) <= w2(n))
return te2(n, e), true;
if (w2(e) < o || r.alternate.type === "BlockStatement")
return t.type === "BlockStatement" ? ($2(t, e), true) : Zn(e, s) && !ue2(s, w2(t), w2(e)) ? ($2(t, e), true) : (we2(r, e), true);
}
return n.type === "BlockStatement" ? (wt2(n, e), true) : n.type === "IfStatement" ? (zn(n.consequent, e), true) : r.consequent === n ? (te2(n, e), true) : false;
}
function ts2({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
return r?.type !== "WhileStatement" || !n ? false : _e2(s, I(e)) === ")" ? ($2(t, e), true) : n.type === "BlockStatement" ? (wt2(n, e), true) : r.body === n ? (te2(n, e), true) : false;
}
function ki2({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
return r?.type !== "TryStatement" && r?.type !== "CatchClause" || !n ? false : r.type === "CatchClause" && t ? ($2(t, e), true) : n.type === "BlockStatement" ? (wt2(n, e), true) : n.type === "TryStatement" ? (zn(n.finalizer, e), true) : n.type === "CatchClause" ? (zn(n.body, e), true) : false;
}
function wp({ comment: e, enclosingNode: t, followingNode: r }) {
return J2(t) && r?.type === "Identifier" ? (te2(t, e), true) : false;
}
function _p({ comment: e, enclosingNode: t, followingNode: r, options: n }) {
return !n.experimentalTernaries || !(t?.type === "ConditionalExpression" || Ue2(t)) ? false : r?.type === "ConditionalExpression" || Ue2(r) ? (we2(t, e), true) : false;
}
function Ii2({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s, options: i }) {
let o = t && !ue2(s, I(t), w2(e));
return (!t || !o) && (r?.type === "ConditionalExpression" || Ue2(r)) && n ? i.experimentalTernaries && r.alternate === n && !(ce2(e) && !ue2(i.originalText, w2(e), I(e))) ? (we2(r, e), true) : (te2(n, e), true) : false;
}
var Mp = k(["ClassDeclaration", "ClassExpression", "DeclareClass", "DeclareInterface", "InterfaceDeclaration", "TSInterfaceDeclaration"]);
function Li2({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
if (Mp(r)) {
if (R2(r.decorators) && n?.type !== "Decorator")
return $2(N(0, r.decorators, -1), e), true;
if (r.body && n === r.body)
return wt2(r.body, e), true;
if (n) {
if (r.superClass && n === r.superClass && t && (t === r.id || t === r.typeParameters))
return $2(t, e), true;
for (let s of ["implements", "extends", "mixins"])
if (r[s] && n === r[s][0])
return t && (t === r.id || t === r.typeParameters || t === r.superClass) ? $2(t, e) : we2(r, e, s), true;
}
}
return false;
}
var Np = k(["ClassMethod", "ClassProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod", "MethodDefinition", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty", "TSParameterProperty"]);
function Oi2({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
return r && t && _e2(n, I(e)) === "(" && (r.type === "Property" || r.type === "TSDeclareMethod" || r.type === "TSAbstractMethodDefinition") && t.type === "Identifier" && r.key === t && _e2(n, I(t)) !== ":" ? ($2(t, e), true) : t?.type === "Decorator" && Np(r) && (At2(e) || e.placement === "ownLine") ? ($2(t, e), true) : false;
}
var wi2 = k(["FunctionDeclaration", "FunctionExpression", "ClassMethod", "MethodDefinition", "ObjectMethod"]);
function jp({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
return _e2(n, I(e)) !== "(" ? false : t && wi2(r) ? ($2(t, e), true) : false;
}
function vp({ comment: e, enclosingNode: t, text: r }) {
if (t?.type !== "ArrowFunctionExpression")
return false;
let n = at2(r, I(e));
return n !== false && r.slice(n, n + 2) === "=>" ? (we2(t, e), true) : false;
}
function Rp({ comment: e, enclosingNode: t, text: r }) {
return _e2(r, I(e)) !== ")" ? false : t && (Ri2(t) && K2(t).length === 0 || Dt2(t) && le2(t).length === 0) ? (we2(t, e), true) : (t?.type === "MethodDefinition" || t?.type === "TSAbstractMethodDefinition") && K2(t.value).length === 0 ? (we2(t.value, e), true) : false;
}
function Jp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
return t?.type === "ComponentTypeParameter" && (r?.type === "DeclareComponent" || r?.type === "ComponentTypeAnnotation") && n?.type !== "ComponentTypeParameter" ? ($2(t, e), true) : (t?.type === "ComponentParameter" || t?.type === "RestElement") && r?.type === "ComponentDeclaration" && _e2(s, I(e)) === ")" ? ($2(t, e), true) : false;
}
function _i2({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
return t?.type === "FunctionTypeParam" && r?.type === "FunctionTypeAnnotation" && n?.type !== "FunctionTypeParam" ? ($2(t, e), true) : (t?.type === "Identifier" || t?.type === "AssignmentPattern" || t?.type === "ObjectPattern" || t?.type === "ArrayPattern" || t?.type === "RestElement" || t?.type === "TSParameterProperty") && Ri2(r) && _e2(s, I(e)) === ")" ? ($2(t, e), true) : !ce2(e) && n?.type === "BlockStatement" && wi2(r) && (r.type === "MethodDefinition" ? r.value.body : r.body) === n && at2(s, I(e)) === w2(n) ? (wt2(n, e), true) : false;
}
function Mi2({ comment: e, enclosingNode: t }) {
return t?.type === "LabeledStatement" ? (te2(t, e), true) : false;
}
function rs2({ comment: e, enclosingNode: t }) {
return (t?.type === "ContinueStatement" || t?.type === "BreakStatement") && !t.label ? ($2(t, e), true) : false;
}
function Gp({ comment: e, precedingNode: t, enclosingNode: r }) {
return M2(r) && t && r.callee === t && r.arguments.length > 0 ? (te2(r.arguments[0], e), true) : false;
}
function Wp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
return Se2(r) ? (Lt2(e) && (n.prettierIgnore = true, e.unignore = true), t ? ($2(t, e), true) : false) : (Se2(n) && Lt2(e) && (n.types[0].prettierIgnore = true, e.unignore = true), false);
}
function qp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
return r && r.type === "MatchOrPattern" ? (Lt2(e) && (n.prettierIgnore = true, e.unignore = true), t ? ($2(t, e), true) : false) : (n && n.type === "MatchOrPattern" && Lt2(e) && (n.types[0].prettierIgnore = true, e.unignore = true), false);
}
function Up({ comment: e, enclosingNode: t }) {
return Oe2(t) ? (te2(t, e), true) : false;
}
function ns2({ comment: e, enclosingNode: t, ast: r, isLastComment: n }) {
return r?.body?.length === 0 ? (n ? we2(r, e) : te2(r, e), true) : t?.type === "Program" && t.body.length === 0 && !R2(t.directives) ? (n ? we2(t, e) : te2(t, e), true) : false;
}
function Yp({ comment: e, enclosingNode: t, followingNode: r }) {
return (t?.type === "ForInStatement" || t?.type === "ForOfStatement") && r !== t.body ? (te2(t, e), true) : false;
}
function Ni2({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
if (r?.type === "ImportSpecifier" || r?.type === "ExportSpecifier")
return te2(r, e), true;
let s = t?.type === "ImportSpecifier" && r?.type === "ImportDeclaration", i = t?.type === "ExportSpecifier" && r?.type === "ExportNamedDeclaration";
return (s || i) && Z2(n, I(e)) ? ($2(t, e), true) : false;
}
function Hp({ comment: e, enclosingNode: t }) {
return t?.type === "AssignmentPattern" ? (te2(t, e), true) : false;
}
var Xp = k(["VariableDeclarator", "AssignmentExpression", "TypeAlias", "TSTypeAliasDeclaration"]);
var Vp = k(["ObjectExpression", "ArrayExpression", "TemplateLiteral", "TaggedTemplateExpression", "ObjectTypeAnnotation", "TSTypeLiteral"]);
function $p({ comment: e, enclosingNode: t, followingNode: r }) {
return Xp(t) && r && (Vp(r) || ce2(e)) ? (te2(r, e), true) : false;
}
function Kp({ comment: e, enclosingNode: t, precedingNode: r, followingNode: n, text: s }) {
return !n && (t?.type === "TSMethodSignature" || t?.type === "TSDeclareFunction" || t?.type === "TSAbstractMethodDefinition") && (!r || r !== t.returnType) && _e2(s, I(e)) === ";" ? ($2(t, e), true) : false;
}
function ji2({ comment: e, enclosingNode: t, followingNode: r }) {
if (Lt2(e) && t?.type === "TSMappedType" && r === t.key)
return t.prettierIgnore = true, e.unignore = true, true;
}
function vi2({ comment: e, precedingNode: t, enclosingNode: r }) {
if (r?.type === "TSMappedType" && !t)
return we2(r, e), true;
}
function Qp({ comment: e, enclosingNode: t, followingNode: r }) {
return !t || t.type !== "SwitchCase" || t.test || !r || r !== t.consequent[0] ? false : (r.type === "BlockStatement" && At2(e) ? wt2(r, e) : we2(t, e), true);
}
function zp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
return Se2(t) && ((r.type === "TSArrayType" || r.type === "ArrayTypeAnnotation") && !n || xt2(r)) ? ($2(N(0, t.types, -1), e), true) : false;
}
function Zp({ comment: e, enclosingNode: t, precedingNode: r, followingNode: n }) {
if ((t?.type === "ObjectPattern" || t?.type === "ArrayPattern") && n?.type === "TSTypeAnnotation")
return r ? $2(r, e) : we2(t, e), true;
}
function ec({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
return !n && r?.type === "UnaryExpression" && (t?.type === "LogicalExpression" || t?.type === "BinaryExpression") && ue2(s, w2(r.argument), w2(t.right)) && Zn(e, s) && !ue2(s, w2(t.right), w2(e)) ? ($2(t.right, e), true) : false;
}
function tc({ enclosingNode: e, followingNode: t, comment: r }) {
if (e && (e.type === "TSPropertySignature" || e.type === "ObjectTypeProperty") && (Se2(t) || xt2(t)))
return te2(t, r), true;
}
function ss2({ enclosingNode: e, precedingNode: t, followingNode: r, comment: n, text: s }) {
if (Ae2(e) && t === e.expression && !Zn(n, s))
return r ? te2(r, n) : $2(e, n), true;
}
function rc({ comment: e, enclosingNode: t, followingNode: r, precedingNode: n }) {
return t && r && n && t.type === "ArrowFunctionExpression" && t.returnType === n && (n.type === "TSTypeAnnotation" || n.type === "TypeAnnotation") ? (te2(r, e), true) : false;
}
var Ri2 = k(["ArrowFunctionExpression", "FunctionExpression", "FunctionDeclaration", "ObjectMethod", "ClassMethod", "TSDeclareFunction", "TSCallSignatureDeclaration", "TSConstructSignatureDeclaration", "TSMethodSignature", "TSConstructorType", "TSFunctionType", "TSDeclareMethod"]);
var nc = { endOfLine: Ip, ownLine: kp, remaining: Lp };
var Ji2 = nc;
function sc(e, { parser: t }) {
if (t === "flow" || t === "hermes" || t === "babel-flow")
return e = W2(0, e, /[\s(]/gu, ""), e === "" || e === "/*" || e === "/*::";
}
var Gi2 = sc;
var ic = k(["ClassDeclaration", "ClassExpression", "DeclareClass", "DeclareInterface", "InterfaceDeclaration", "TSInterfaceDeclaration"]);
function oc(e) {
let { key: t, parent: r } = e;
if (t === "types" && Se2(r) || t === "argument" && r.type === "JSXSpreadAttribute" || t === "expression" && r.type === "JSXSpreadChild" || t === "superClass" && (r.type === "ClassDeclaration" || r.type === "ClassExpression") || (t === "id" || t === "typeParameters") && ic(r) || t === "patterns" && r.type === "MatchOrPattern")
return true;
let { node: n } = e;
return Ot2(n) ? false : Se2(n) ? Yr2(e) : !!H2(n);
}
var Wi2 = oc;
var Ye2 = "string";
var Be2 = "array";
var tt2 = "cursor";
var He2 = "indent";
var Xe2 = "align";
var rt2 = "trim";
var Fe2 = "group";
var Me2 = "fill";
var be2 = "if-break";
var Ve2 = "indent-if-break";
var $e2 = "line-suffix";
var Ge2 = "line-suffix-boundary";
var me2 = "line";
var Pe = "label";
var Ne2 = "break-parent";
var Xr2 = new Set([tt2, He2, Xe2, rt2, Fe2, Me2, be2, Ve2, $e2, Ge2, me2, Pe, Ne2]);
function uc(e) {
if (typeof e == "string")
return Ye2;
if (Array.isArray(e))
return Be2;
if (!e)
return;
let { type: t } = e;
if (Xr2.has(t))
return t;
}
var We2 = uc;
var ac = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
function pc(e) {
let t = e === null ? "null" : typeof e;
if (t !== "string" && t !== "object")
return `Unexpected doc '${t}',
Expected it to be 'string' or 'object'.`;
if (We2(e))
throw new Error("doc is valid.");
let r = Object.prototype.toString.call(e);
if (r !== "[object Object]")
return `Unexpected doc '${r}'.`;
let n = ac([...Xr2].map((s) => `'${s}'`));
return `Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`;
}
var is2 = class extends Error {
name = "InvalidDocError";
constructor(t) {
super(pc(t)), this.doc = t;
}
};
var gt2 = is2;
var qi2 = {};
function cc(e, t, r, n) {
let s = [e];
for (;s.length > 0; ) {
let i = s.pop();
if (i === qi2) {
r(s.pop());
continue;
}
r && s.push(i, qi2);
let o = We2(i);
if (!o)
throw new gt2(i);
if (t?.(i) !== false)
switch (o) {
case Be2:
case Me2: {
let u = o === Be2 ? i : i.parts;
for (let p2 = u.length, c2 = p2 - 1;c2 >= 0; --c2)
s.push(u[c2]);
break;
}
case be2:
s.push(i.flatContents, i.breakContents);
break;
case Fe2:
if (n && i.expandedStates)
for (let u = i.expandedStates.length, p2 = u - 1;p2 >= 0; --p2)
s.push(i.expandedStates[p2]);
else
s.push(i.contents);
break;
case Xe2:
case He2:
case Ve2:
case Pe:
case $e2:
s.push(i.contents);
break;
case Ye2:
case tt2:
case rt2:
case Ge2:
case me2:
case Ne2:
break;
default:
throw new gt2(i);
}
}
}
var Vr2 = cc;
function ft2(e, t) {
if (typeof e == "string")
return t(e);
let r = new Map;
return n(e);
function n(i) {
if (r.has(i))
return r.get(i);
let o = s(i);
return r.set(i, o), o;
}
function s(i) {
switch (We2(i)) {
case Be2:
return t(i.map(n));
case Me2:
return t({ ...i, parts: i.parts.map(n) });
case be2:
return t({ ...i, breakContents: n(i.breakContents), flatContents: n(i.flatContents) });
case Fe2: {
let { expandedStates: o, contents: u } = i;
return o ? (o = o.map(n), u = o[0]) : u = n(u), t({ ...i, contents: u, expandedStates: o });
}
case Xe2:
case He2:
case Ve2:
case Pe:
case $e2:
return t({ ...i, contents: n(i.contents) });
case Ye2:
case tt2:
case rt2:
case Ge2:
case me2:
case Ne2:
return t(i);
default:
throw new gt2(i);
}
}
}
function Yi2(e, t, r) {
let n = r, s = false;
function i(o) {
if (s)
return false;
let u = t(o);
u !== undefined && (s = true, n = u);
}
return Vr2(e, i), n;
}
function lc(e) {
if (e.type === Fe2 && e.break || e.type === me2 && e.hard || e.type === Ne2)
return true;
}
function ne2(e) {
return Yi2(e, lc, false);
}
function Ui2(e) {
if (e.length > 0) {
let t = N(0, e, -1);
!t.expandedStates && !t.break && (t.break = "propagated");
}
return null;
}
function Hi2(e) {
let t = new Set, r = [];
function n(i) {
if (i.type === Ne2 && Ui2(r), i.type === Fe2) {
if (r.push(i), t.has(i))
return false;
t.add(i);
}
}
function s(i) {
i.type === Fe2 && r.pop().break && Ui2(r);
}
Vr2(e, n, s, true);
}
function mc(e) {
return e.type === me2 && !e.hard ? e.soft ? "" : " " : e.type === be2 ? e.flatContents : e;
}
function _t2(e) {
return ft2(e, mc);
}
function Dc(e) {
switch (We2(e)) {
case Me2:
if (e.parts.every((t) => t === ""))
return "";
break;
case Fe2:
if (!e.contents && !e.id && !e.break && !e.expandedStates)
return "";
if (e.contents.type === Fe2 && e.contents.id === e.id && e.contents.break === e.break && e.contents.expandedStates === e.expandedStates)
return e.contents;
break;
case Xe2:
case He2:
case Ve2:
case $e2:
if (!e.contents)
return "";
break;
case be2:
if (!e.flatContents && !e.breakContents)
return "";
break;
case Be2: {
let t = [];
for (let r of e) {
if (!r)
continue;
let [n, ...s] = Array.isArray(r) ? r : [r];
typeof n == "string" && typeof N(0, t, -1) == "string" ? t[t.length - 1] += n : t.push(n), t.push(...s);
}
return t.length === 0 ? "" : t.length === 1 ? t[0] : t;
}
case Ye2:
case tt2:
case rt2:
case Ge2:
case me2:
case Pe:
case Ne2:
break;
default:
throw new gt2(e);
}
return e;
}
function Qt2(e) {
return ft2(e, (t) => Dc(t));
}
function qe2(e, t = $r2) {
return ft2(e, (r) => typeof r == "string" ? L2(t, r.split(`
`)) : r);
}
function fc(e) {
if (e.type === me2)
return true;
}
function Xi2(e) {
return Yi2(e, fc, false);
}
function Ar2(e, t) {
return e.type === Pe ? { ...e, contents: t(e.contents) } : t(e);
}
function Vi2(e) {
let t = true;
return Vr2(e, (r) => {
switch (We2(r)) {
case Ye2:
if (r === "")
break;
case rt2:
case Ge2:
case me2:
case Ne2:
return t = false, false;
}
}), t;
}
var de2 = Le2;
var Kr2 = Le2;
var $i2 = Le2;
var Ki2 = Le2;
function m2(e) {
return de2(e), { type: He2, contents: e };
}
function xe2(e, t) {
return Ki2(e), de2(t), { type: Xe2, contents: t, n: e };
}
function Qi2(e) {
return xe2(Number.NEGATIVE_INFINITY, e);
}
function Qr2(e) {
return xe2(-1, e);
}
function zi2(e, t, r) {
de2(e);
let n = e;
if (t > 0) {
for (let s = 0;s < Math.floor(t / r); ++s)
n = m2(n);
n = xe2(t % r, n), n = xe2(Number.NEGATIVE_INFINITY, n);
}
return n;
}
var ke2 = { type: Ne2 };
var Tr2 = { type: tt2 };
function zr2(e) {
return $i2(e), { type: Me2, parts: e };
}
function l(e, t = {}) {
return de2(e), Kr2(t.expandedStates, true), { type: Fe2, id: t.id, contents: e, break: !!t.shouldBreak, expandedStates: t.expandedStates };
}
function nt2(e, t) {
return l(e[0], { ...t, expandedStates: e });
}
function P2(e, t = "", r = {}) {
return de2(e), t !== "" && de2(t), { type: be2, breakContents: e, flatContents: t, groupId: r.groupId };
}
function yt2(e, t) {
return de2(e), { type: Ve2, contents: e, groupId: t.groupId, negate: t.negate };
}
function L2(e, t) {
de2(e), Kr2(t);
let r = [];
for (let n = 0;n < t.length; n++)
n !== 0 && r.push(e), r.push(t[n]);
return r;
}
function pt2(e, t) {
return de2(t), e ? { type: Pe, label: e, contents: t } : t;
}
var A = { type: me2 };
var f = { type: me2, soft: true };
var os2 = { type: me2, hard: true };
var E2 = [os2, ke2];
var yc = { type: me2, hard: true, literal: true };
var $r2 = [yc, ke2];
function us2(e) {
return de2(e), { type: $e2, contents: e };
}
var je2 = { type: Ge2 };
var Ec = "cr";
var Fc = "crlf";
var dc = "\r";
var Cc = `\r
`;
var Ac = `
`;
var Tc = Ac;
function Zi2(e) {
return e === Ec ? dc : e === Fc ? Cc : Tc;
}
var xc = { type: 0 };
var gc = { type: 1 };
var as2 = { value: "", length: 0, queue: [], get root() {
return as2;
} };
function eo(e, t, r) {
let n = t.type === 1 ? e.queue.slice(0, -1) : [...e.queue, t], s = "", i = 0, o = 0, u = 0;
for (let d of n)
switch (d.type) {
case 0:
y2(), r.useTabs ? p2(1) : c2(r.tabWidth);
break;
case 3: {
let { string: b2 } = d;
y2(), s += b2, i += b2.length;
break;
}
case 2: {
let { width: b2 } = d;
o += 1, u += b2;
break;
}
default:
throw new Error(`Unexpected indent comment '${d.type}'.`);
}
return F2(), { ...e, value: s, length: i, queue: n };
function p2(d) {
s += "\t".repeat(d), i += r.tabWidth * d;
}
function c2(d) {
s += " ".repeat(d), i += d;
}
function y2() {
r.useTabs ? D2() : F2();
}
function D2() {
o > 0 && p2(o), C();
}
function F2() {
u > 0 && c2(u), C();
}
function C() {
o = 0, u = 0;
}
}
function to(e, t, r) {
if (!t)
return e;
if (t.type === "root")
return { ...e, root: e };
if (t === Number.NEGATIVE_INFINITY)
return e.root;
let n;
return typeof t == "number" ? t < 0 ? n = gc : n = { type: 2, width: t } : n = { type: 3, string: t }, eo(e, n, r);
}
function ro(e, t) {
return eo(e, xc, t);
}
function hc(e) {
let t = 0;
for (let r = e.length - 1;r >= 0; r--) {
let n = e[r];
if (n === " " || n === "\t")
t++;
else
break;
}
return t;
}
function ps2(e) {
let t = hc(e);
return { text: t === 0 ? e : e.slice(0, e.length - t), count: t };
}
var ve2 = Symbol("MODE_BREAK");
var ct2 = Symbol("MODE_FLAT");
var cs2 = Symbol("DOC_FILL_PRINTED_LENGTH");
function Zr2(e, t, r, n, s, i) {
if (r === Number.POSITIVE_INFINITY)
return true;
let o = t.length, u = false, p2 = [e], c2 = "";
for (;r >= 0; ) {
if (p2.length === 0) {
if (o === 0)
return true;
p2.push(t[--o]);
continue;
}
let { mode: y2, doc: D2 } = p2.pop(), F2 = We2(D2);
switch (F2) {
case Ye2:
D2 && (u && (c2 += " ", r -= 1, u = false), c2 += D2, r -= ot2(D2));
break;
case Be2:
case Me2: {
let C = F2 === Be2 ? D2 : D2.parts, d = D2[cs2] ?? 0;
for (let b2 = C.length - 1;b2 >= d; b2--)
p2.push({ mode: y2, doc: C[b2] });
break;
}
case He2:
case Xe2:
case Ve2:
case Pe:
p2.push({ mode: y2, doc: D2.contents });
break;
case rt2: {
let { text: C, count: d } = ps2(c2);
c2 = C, r += d;
break;
}
case Fe2: {
if (i && D2.break)
return false;
let C = D2.break ? ve2 : y2, d = D2.expandedStates && C === ve2 ? N(0, D2.expandedStates, -1) : D2.contents;
p2.push({ mode: C, doc: d });
break;
}
case be2: {
let d = (D2.groupId ? s[D2.groupId] || ct2 : y2) === ve2 ? D2.breakContents : D2.flatContents;
d && p2.push({ mode: y2, doc: d });
break;
}
case me2:
if (y2 === ve2 || D2.hard)
return true;
D2.soft || (u = true);
break;
case $e2:
n = true;
break;
case Ge2:
if (n)
return false;
break;
}
}
return false;
}
function ls2(e, t) {
let r = Object.create(null), n = t.printWidth, s = Zi2(t.endOfLine), i = 0, o = [{ indent: as2, mode: ve2, doc: e }], u = "", p2 = false, c2 = [], y2 = [], D2 = [], F2 = [], C = 0;
for (Hi2(e);o.length > 0; ) {
let { indent: h, mode: g2, doc: S2 } = o.pop();
switch (We2(S2)) {
case Ye2: {
let j2 = s !== `
` ? W2(0, S2, `
`, s) : S2;
j2 && (u += j2, o.length > 0 && (i += ot2(j2)));
break;
}
case Be2:
for (let j2 = S2.length - 1;j2 >= 0; j2--)
o.push({ indent: h, mode: g2, doc: S2[j2] });
break;
case tt2:
if (y2.length >= 2)
throw new Error("There are too many 'cursor' in doc.");
y2.push(C + u.length);
break;
case He2:
o.push({ indent: ro(h, t), mode: g2, doc: S2.contents });
break;
case Xe2:
o.push({ indent: to(h, S2.n, t), mode: g2, doc: S2.contents });
break;
case rt2:
O2();
break;
case Fe2:
switch (g2) {
case ct2:
if (!p2) {
o.push({ indent: h, mode: S2.break ? ve2 : ct2, doc: S2.contents });
break;
}
case ve2: {
p2 = false;
let j2 = { indent: h, mode: ct2, doc: S2.contents }, U2 = n - i, fe2 = c2.length > 0;
if (!S2.break && Zr2(j2, o, U2, fe2, r))
o.push(j2);
else if (S2.expandedStates) {
let Y2 = N(0, S2.expandedStates, -1);
if (S2.break) {
o.push({ indent: h, mode: ve2, doc: Y2 });
break;
} else
for (let z2 = 1;z2 < S2.expandedStates.length + 1; z2++)
if (z2 >= S2.expandedStates.length) {
o.push({ indent: h, mode: ve2, doc: Y2 });
break;
} else {
let ee2 = S2.expandedStates[z2], Ie2 = { indent: h, mode: ct2, doc: ee2 };
if (Zr2(Ie2, o, U2, fe2, r)) {
o.push(Ie2);
break;
}
}
} else
o.push({ indent: h, mode: ve2, doc: S2.contents });
break;
}
}
S2.id && (r[S2.id] = N(0, o, -1).mode);
break;
case Me2: {
let j2 = n - i, U2 = S2[cs2] ?? 0, { parts: fe2 } = S2, Y2 = fe2.length - U2;
if (Y2 === 0)
break;
let z2 = fe2[U2 + 0], ee2 = fe2[U2 + 1], Ie2 = { indent: h, mode: ct2, doc: z2 }, st2 = { indent: h, mode: ve2, doc: z2 }, _2 = Zr2(Ie2, [], j2, c2.length > 0, r, true);
if (Y2 === 1) {
_2 ? o.push(Ie2) : o.push(st2);
break;
}
let re2 = { indent: h, mode: ct2, doc: ee2 }, ae = { indent: h, mode: ve2, doc: ee2 };
if (Y2 === 2) {
_2 ? o.push(re2, Ie2) : o.push(ae, st2);
break;
}
let it2 = fe2[U2 + 2], Bt2 = { indent: h, mode: g2, doc: { ...S2, [cs2]: U2 + 2 } }, Pr2 = Zr2({ indent: h, mode: ct2, doc: [z2, ee2, it2] }, [], j2, c2.length > 0, r, true);
o.push(Bt2), Pr2 ? o.push(re2, Ie2) : _2 ? o.push(ae, Ie2) : o.push(ae, st2);
break;
}
case be2:
case Ve2: {
let j2 = S2.groupId ? r[S2.groupId] : g2;
if (j2 === ve2) {
let U2 = S2.type === be2 ? S2.breakContents : S2.negate ? S2.contents : m2(S2.contents);
U2 && o.push({ indent: h, mode: g2, doc: U2 });
}
if (j2 === ct2) {
let U2 = S2.type === be2 ? S2.flatContents : S2.negate ? m2(S2.contents) : S2.contents;
U2 && o.push({ indent: h, mode: g2, doc: U2 });
}
break;
}
case $e2:
c2.push({ indent: h, mode: g2, doc: S2.contents });
break;
case Ge2:
c2.length > 0 && o.push({ indent: h, mode: g2, doc: os2 });
break;
case me2:
switch (g2) {
case ct2:
if (S2.hard)
p2 = true;
else {
S2.soft || (u += " ", i += 1);
break;
}
case ve2:
if (c2.length > 0) {
o.push({ indent: h, mode: g2, doc: S2 }, ...c2.reverse()), c2.length = 0;
break;
}
S2.literal ? (u += s, i = 0, h.root && (h.root.value && (u += h.root.value), i = h.root.length)) : (O2(), u += s + h.value, i = h.length);
break;
}
break;
case Pe:
o.push({ indent: h, mode: g2, doc: S2.contents });
break;
case Ne2:
break;
default:
throw new gt2(S2);
}
o.length === 0 && c2.length > 0 && (o.push(...c2.reverse()), c2.length = 0);
}
let d = D2.join("") + u, b2 = [...F2, ...y2];
if (b2.length !== 2)
return { formatted: d };
let B2 = b2[0];
return { formatted: d, cursorNodeStart: B2, cursorNodeText: d.slice(B2, N(0, b2, -1)) };
function O2() {
let { text: h, count: g2 } = ps2(u);
h && (D2.push(h), C += h.length), u = "", i -= g2, y2.length > 0 && (F2.push(...y2.map((S2) => Math.min(S2, C))), y2.length = 0);
}
}
function Sc(e, t, r = 0) {
let n = 0;
for (let s = r;s < e.length; ++s)
e[s] === "\t" ? n = n + t - n % t : n++;
return n;
}
var no = Sc;
function Bc(e, t) {
let r = e.lastIndexOf(`
`);
return r === -1 ? 0 : no(e.slice(r + 1).match(/^[\t ]*/u)[0], t);
}
var so = Bc;
function en(e, t, r) {
let { node: n } = e;
if (n.type === "TemplateLiteral" && kc(e)) {
let c2 = bc(e, t, r);
if (c2)
return c2;
}
let i = "expressions";
n.type === "TSTemplateLiteralType" && (i = "types");
let o = [], u = e.map(r, i);
o.push(je2, "`");
let p2 = 0;
return e.each(({ index: c2, node: y2 }) => {
if (o.push(r()), y2.tail)
return;
let { tabWidth: D2 } = t, F2 = y2.value.raw, C = F2.includes(`
`) ? so(F2, D2) : p2;
p2 = C;
let d = u[c2], b2 = n[i][c2], B2 = ue2(t.originalText, I(y2), w2(n.quasis[c2 + 1]));
if (!B2) {
let h = ls2(d, { ...t, printWidth: Number.POSITIVE_INFINITY }).formatted;
h.includes(`
`) ? B2 = true : d = h;
}
B2 && (T2(b2) || b2.type === "Identifier" || J2(b2) || b2.type === "ConditionalExpression" || b2.type === "SequenceExpression" || Ae2(b2) || Te2(b2)) && (d = [m2([f, d]), f]);
let O2 = C === 0 && F2.endsWith(`
`) ? xe2(Number.NEGATIVE_INFINITY, d) : zi2(d, C, D2);
o.push(l(["${", O2, je2, "}"]));
}, "quasis"), o.push("`"), o;
}
function io(e, t, r) {
let n = r("quasi"), { node: s } = e, i = "", o = et2(s.quasi, x.Leading)[0];
return o && (ue2(t.originalText, I(s.typeArguments ?? s.tag), w2(o)) ? i = f : i = " "), pt2(n.label && { tagged: true, ...n.label }, [r("tag"), r("typeArguments"), i, je2, n]);
}
function bc(e, t, r) {
let { node: n } = e, s = n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);
if (s.length > 1 || s.some((i) => i.length > 0)) {
t.__inJestEach = true;
let i = e.map(r, "expressions");
t.__inJestEach = false;
let o = i.map((D2) => "${" + ls2(D2, { ...t, printWidth: Number.POSITIVE_INFINITY, endOfLine: "lf" }).formatted + "}"), u = [{ hasLineBreak: false, cells: [] }];
for (let D2 = 1;D2 < n.quasis.length; D2++) {
let F2 = N(0, u, -1), C = o[D2 - 1];
F2.cells.push(C), C.includes(`
`) && (F2.hasLineBreak = true), n.quasis[D2].value.raw.includes(`
`) && u.push({ hasLineBreak: false, cells: [] });
}
let p2 = Math.max(s.length, ...u.map((D2) => D2.cells.length)), c2 = Array.from({ length: p2 }).fill(0), y2 = [{ cells: s }, ...u.filter((D2) => D2.cells.length > 0)];
for (let { cells: D2 } of y2.filter((F2) => !F2.hasLineBreak))
for (let [F2, C] of D2.entries())
c2[F2] = Math.max(c2[F2], ot2(C));
return [je2, "`", m2([E2, L2(E2, y2.map((D2) => L2(" | ", D2.cells.map((F2, C) => D2.hasLineBreak ? F2 : F2 + " ".repeat(c2[C] - ot2(F2))))))]), E2, "`"];
}
}
function Pc(e, t) {
let { node: r } = e, n = t();
return T2(r) && (n = l([m2([f, n]), f])), ["${", n, je2, "}"];
}
function zt2(e, t) {
return e.map(() => Pc(e, t), "expressions");
}
function tn(e, t) {
return ft2(e, (r) => typeof r == "string" ? t ? W2(0, r, /(\\*)`/gu, "$1$1\\`") : ms2(r) : r);
}
function ms2(e) {
return W2(0, e, /([\\`]|\$\{)/gu, "\\$1");
}
function kc({ node: e, parent: t }) {
let r = /^[fx]?(?:describe|it|test)$/u;
return t.type === "TaggedTemplateExpression" && t.quasi === e && t.tag.type === "MemberExpression" && t.tag.property.type === "Identifier" && t.tag.property.name === "each" && (t.tag.object.type === "Identifier" && r.test(t.tag.object.name) || t.tag.object.type === "MemberExpression" && t.tag.object.property.type === "Identifier" && (t.tag.object.property.name === "only" || t.tag.object.property.name === "skip") && t.tag.object.object.type === "Identifier" && r.test(t.tag.object.object.name));
}
var fs2 = [(e, t) => e.type === "ObjectExpression" && t === "properties", (e, t) => e.type === "CallExpression" && e.callee.type === "Identifier" && e.callee.name === "Component" && t === "arguments", (e, t) => e.type === "Decorator" && t === "expression"];
function oo(e) {
let t = (n) => n.type === "TemplateLiteral", r = (n, s) => Oe2(n) && !n.computed && n.key.type === "Identifier" && n.key.name === "styles" && s === "value";
return e.match(t, (n, s) => q2(n) && s === "elements", r, ...fs2) || e.match(t, r, ...fs2);
}
function ys2(e) {
return e.match((t) => t.type === "TemplateLiteral", (t, r) => Oe2(t) && !t.computed && t.key.type === "Identifier" && t.key.name === "template" && r === "value", ...fs2);
}
function Ds2(e, t) {
return T2(e, x.Block | x.Leading, ({ value: r }) => r === ` ${t} `);
}
function rn({ node: e, parent: t }, r) {
return Ds2(e, r) || Ic(t) && Ds2(t, r) || t.type === "ExpressionStatement" && Ds2(t, r);
}
function Ic(e) {
return e.type === "AsConstExpression" || e.type === "TSAsExpression" && e.typeAnnotation.type === "TSTypeReference" && e.typeAnnotation.typeName.type === "Identifier" && e.typeAnnotation.typeName.name === "const";
}
async function ao(e, t, r) {
let { node: n } = r, s = "";
for (let [p2, c2] of n.quasis.entries()) {
let { raw: y2 } = c2.value;
p2 > 0 && (s += "@prettier-placeholder-" + (p2 - 1) + "-id"), s += y2;
}
let i = await e(s, { parser: "scss" }), o = zt2(r, t), u = Lc(i, o);
if (!u)
throw new Error("Couldn't insert all the expressions");
return ["`", m2([E2, u]), f, "`"];
}
function Lc(e, t) {
if (!R2(t))
return e;
let r = 0, n = ft2(Qt2(e), (s) => typeof s != "string" || !s.includes("@prettier-placeholder") ? s : s.split(/@prettier-placeholder-(\d+)-id/u).map((i, o) => o % 2 === 0 ? qe2(i) : (r++, t[i])));
return t.length === r ? n : null;
}
function Oc(e) {
return e.match(undefined, (t, r) => r === "quasi" && t.type === "TaggedTemplateExpression" && Pt2(t.tag, ["css", "css.global", "css.resolve"])) || e.match(undefined, (t, r) => r === "expression" && t.type === "JSXExpressionContainer", (t, r) => r === "children" && t.type === "JSXElement" && t.openingElement.name.type === "JSXIdentifier" && t.openingElement.name.name === "style" && t.openingElement.attributes.some((n) => n.type === "JSXAttribute" && n.name.type === "JSXIdentifier" && n.name.name === "jsx"));
}
function nn(e) {
return e.type === "Identifier" && e.name === "styled";
}
function uo(e) {
return /^[A-Z]/u.test(e.object.name) && e.property.name === "extend";
}
function wc({ parent: e }) {
if (!e || e.type !== "TaggedTemplateExpression")
return false;
let t = e.tag.type === "ParenthesizedExpression" ? e.tag.expression : e.tag;
switch (t.type) {
case "MemberExpression":
return nn(t.object) || uo(t);
case "CallExpression":
return nn(t.callee) || t.callee.type === "MemberExpression" && (t.callee.object.type === "MemberExpression" && (nn(t.callee.object.object) || uo(t.callee.object)) || t.callee.object.type === "CallExpression" && nn(t.callee.object.callee));
case "Identifier":
return t.name === "css";
default:
return false;
}
}
function _c({ parent: e, grandparent: t }) {
return t?.type === "JSXAttribute" && e.type === "JSXExpressionContainer" && t.name.type === "JSXIdentifier" && t.name.name === "css";
}
var po = (e) => Oc(e) || wc(e) || _c(e) || oo(e);
async function co(e, t, r) {
let { node: n } = r, s = n.quasis.length, i = zt2(r, t), o = [];
for (let u = 0;u < s; u++) {
let p2 = n.quasis[u], c2 = u === 0, y2 = u === s - 1, D2 = p2.value.cooked, F2 = D2.split(`
`), C = F2.length, d = i[u], b2 = C > 2 && F2[0].trim() === "" && F2[1].trim() === "", B2 = C > 2 && F2[C - 1].trim() === "" && F2[C - 2].trim() === "", O2 = F2.every((g2) => /^\s*(?:#[^\n\r]*)?$/u.test(g2));
if (!y2 && /#[^\n\r]*$/u.test(F2[C - 1]))
return null;
let h = null;
O2 ? h = Mc(F2) : h = await e(D2, { parser: "graphql" }), h ? (h = tn(h, false), !c2 && b2 && o.push(""), o.push(h), !y2 && B2 && o.push("")) : !c2 && !y2 && b2 && o.push(""), d && o.push(d);
}
return ["`", m2([E2, L2(E2, o)]), E2, "`"];
}
function Mc(e) {
let t = [], r = false, n = e.map((s) => s.trim());
for (let [s, i] of n.entries())
i !== "" && (n[s - 1] === "" && r ? t.push([E2, i]) : t.push(i), r = true);
return t.length === 0 ? null : L2(E2, t);
}
function lo({ node: e, parent: t }) {
return rn({ node: e, parent: t }, "GraphQL") || t && (t.type === "TaggedTemplateExpression" && (t.tag.type === "MemberExpression" && t.tag.object.name === "graphql" && t.tag.property.name === "experimental" || t.tag.type === "Identifier" && (t.tag.name === "gql" || t.tag.name === "graphql")) || t.type === "CallExpression" && t.callee.type === "Identifier" && t.callee.name === "graphql");
}
var Es2 = 0;
async function mo(e, t, r, n, s) {
let { node: i } = n, o = Es2;
Es2 = Es2 + 1 >>> 0;
let u = (O2) => `PRETTIER_HTML_PLACEHOLDER_${O2}_${o}_IN_JS`, p2 = i.quasis.map((O2, h, g2) => h === g2.length - 1 ? O2.value.cooked : O2.value.cooked + u(h)).join(""), c2 = zt2(n, r), y2 = new RegExp(u("(\\d+)"), "gu"), D2 = 0, F2 = await t(p2, { parser: e, __onHtmlRoot(O2) {
D2 = O2.children.length;
} }), C = ft2(F2, (O2) => {
if (typeof O2 != "string")
return O2;
let h = [], g2 = O2.split(y2);
for (let S2 = 0;S2 < g2.length; S2++) {
let j2 = g2[S2];
if (S2 % 2 === 0) {
j2 && (j2 = ms2(j2), s.__embeddedInHtml && (j2 = W2(0, j2, /<\/(?=script\b)/giu, "<\\/")), h.push(j2));
continue;
}
let U2 = Number(j2);
h.push(c2[U2]);
}
return h;
}), d = /^\s/u.test(p2) ? " " : "", b2 = /\s$/u.test(p2) ? " " : "", B2 = s.htmlWhitespaceSensitivity === "ignore" ? E2 : d && b2 ? A : null;
return B2 ? l(["`", m2([B2, l(C)]), B2, "`"]) : pt2({ hug: false }, l(["`", d, D2 > 1 ? m2(l(C)) : l(C), b2, "`"]));
}
function Do(e) {
return rn(e, "HTML") || e.match((t) => t.type === "TemplateLiteral", (t, r) => t.type === "TaggedTemplateExpression" && t.tag.type === "Identifier" && t.tag.name === "html" && r === "quasi");
}
var fo = mo.bind(undefined, "html");
var yo = mo.bind(undefined, "angular");
async function Eo(e, t, r) {
let { node: n } = r, s = W2(0, n.quasis[0].value.raw, /((?:\\\\)*)\\`/gu, (p2, c2) => "\\".repeat(c2.length / 2) + "`"), i = Nc(s), o = i !== "";
o && (s = W2(0, s, new RegExp(`^${i}`, "gmu"), ""));
let u = tn(await e(s, { parser: "markdown", __inJsTemplate: true }), true);
return ["`", o ? m2([f, u]) : [$r2, Qi2(u)], f, "`"];
}
function Nc(e) {
let t = e.match(/^([^\S\n]*)\S/mu);
return t === null ? "" : t[1];
}
function Fo({ node: e, parent: t }) {
return t?.type === "TaggedTemplateExpression" && e.quasis.length === 1 && t.tag.type === "Identifier" && (t.tag.name === "md" || t.tag.name === "markdown");
}
var jc = [{ test: po, print: ao }, { test: lo, print: co }, { test: Do, print: fo }, { test: ys2, print: yo }, { test: Fo, print: Eo }].map(({ test: e, print: t }) => ({ test: e, print: Rc(t) }));
function vc(e) {
let { node: t } = e;
if (t.type !== "TemplateLiteral" || Jc(t))
return;
let r = jc.find(({ test: n }) => n(e));
if (r)
return t.quasis.length === 1 && t.quasis[0].value.raw.trim() === "" ? "``" : r.print;
}
function Rc(e) {
return async (...t) => {
let r = await e(...t);
return r && pt2({ embed: true, ...r.label }, r);
};
}
function Jc({ quasis: e }) {
return e.some(({ value: { cooked: t } }) => t === null);
}
var Co = vc;
var Gc = /\*\/$/;
var Wc = /^\/\*\*?/;
var go = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/;
var qc = /(^|\s+)\/\/([^\n\r]*)/g;
var Ao = /^(\r?\n)+/;
var Uc = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g;
var To = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g;
var Yc = /(\r?\n|^) *\* ?/g;
var ho = [];
function So(e) {
let t = e.match(go);
return t ? t[0].trimStart() : "";
}
function Bo(e) {
let r = e.match(go)?.[0];
return r == null ? e : e.slice(r.length);
}
function bo(e) {
e = W2(0, e.replace(Wc, "").replace(Gc, ""), Yc, "$1");
let r = "";
for (;r !== e; )
r = e, e = W2(0, e, Uc, `
$1 $2
`);
e = e.replace(Ao, "").trimEnd();
let n = Object.create(null), s = W2(0, e, To, "").replace(Ao, "").trimEnd(), i;
for (;i = To.exec(e); ) {
let o = W2(0, i[2], qc, "");
if (typeof n[i[1]] == "string" || Array.isArray(n[i[1]])) {
let u = n[i[1]];
n[i[1]] = [...ho, ...Array.isArray(u) ? u : [u], o];
} else
n[i[1]] = o;
}
return { comments: s, pragmas: n };
}
function Po({ comments: e = "", pragmas: t = {} }) {
let o = Object.keys(t), u = o.flatMap((c2) => xo(c2, t[c2])).map((c2) => ` * ${c2}
`).join("");
if (!e) {
if (o.length === 0)
return "";
if (o.length === 1 && !Array.isArray(t[o[0]])) {
let c2 = t[o[0]];
return `/** ${xo(o[0], c2)[0]} */`;
}
}
let p2 = e.split(`
`).map((c2) => ` * ${c2}`).join(`
`) + `
`;
return `/**
` + (e ? p2 : "") + (e && o.length > 0 ? ` *
` : "") + u + " */";
}
function xo(e, t) {
return [...ho, ...Array.isArray(t) ? t : [t]].map((r) => `@${e} ${r}`.trim());
}
var ko = "format";
function Hc(e) {
if (!e.startsWith("#!"))
return "";
let t = e.indexOf(`
`);
return t === -1 ? e : e.slice(0, t);
}
var Io = Hc;
function Xc(e) {
let t = Io(e);
t && (e = e.slice(t.length + 1));
let r = So(e), { pragmas: n, comments: s } = bo(r);
return { shebang: t, text: e, pragmas: n, comments: s };
}
function Lo(e) {
let { shebang: t, text: r, pragmas: n, comments: s } = Xc(e), i = Bo(r), o = Po({ pragmas: { [ko]: "", ...n }, comments: s.trimStart() });
return (t ? `${t}
` : "") + o + (i.startsWith(`
`) ? `
` : `
`) + i;
}
function Vc(e) {
if (!ce2(e))
return false;
let t = `*${e.value}*`.split(`
`);
return t.length > 1 && t.every((r) => r.trimStart()[0] === "*");
}
var Fs2 = new WeakMap;
function $c(e) {
return Fs2.has(e) || Fs2.set(e, Vc(e)), Fs2.get(e);
}
var Oo = $c;
function wo(e, t) {
let r = e.node;
if (At2(r))
return t.originalText.slice(w2(r), I(r)).trimEnd();
if (Oo(r))
return Kc(r);
if (ce2(r))
return ["/*", qe2(r.value), "*/"];
throw new Error("Not a comment: " + JSON.stringify(r));
}
function Kc(e) {
let t = e.value.split(`
`);
return ["/*", L2(E2, t.map((r, n) => n === 0 ? r.trimEnd() : " " + (n < t.length - 1 ? r.trim() : r.trimStart()))), "*/"];
}
function ds2(e, t) {
if (e.isRoot)
return false;
let { node: r, key: n, parent: s } = e;
if (t.__isInHtmlInterpolation && !t.bracketSpacing && el(r) && xr2(e))
return true;
if (Qc(r))
return false;
if (r.type === "Identifier") {
if (r.extra?.parenthesized && /^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name) || n === "left" && (r.name === "async" && !s.await || r.name === "let") && s.type === "ForOfStatement")
return true;
if (r.name === "let") {
let i = e.findAncestor((o) => o.type === "ForOfStatement")?.left;
if (i && ye2(i, (o) => o === r))
return true;
}
if (n === "object" && r.name === "let" && s.type === "MemberExpression" && s.computed && !s.optional) {
let i = e.findAncestor((u) => u.type === "ExpressionStatement" || u.type === "ForStatement" || u.type === "ForInStatement"), o = i ? i.type === "ExpressionStatement" ? i.expression : i.type === "ForStatement" ? i.init : i.left : undefined;
if (o && ye2(o, (u) => u === r))
return true;
}
if (n === "expression")
switch (r.name) {
case "await":
case "interface":
case "module":
case "using":
case "yield":
case "let":
case "component":
case "hook":
case "type": {
let i = e.findAncestor((o) => !Ae2(o));
if (i !== s && i.type === "ExpressionStatement")
return true;
}
}
return false;
}
if (r.type === "ObjectExpression" || r.type === "FunctionExpression" || r.type === "ClassExpression" || r.type === "DoExpression") {
let i = e.findAncestor((o) => o.type === "ExpressionStatement")?.expression;
if (i && ye2(i, (o) => o === r))
return true;
}
if (r.type === "ObjectExpression") {
let i = e.findAncestor((o) => o.type === "ArrowFunctionExpression")?.body;
if (i && i.type !== "SequenceExpression" && i.type !== "AssignmentExpression" && ye2(i, (o) => o === r))
return true;
}
switch (s.type) {
case "ParenthesizedExpression":
return false;
case "ClassDeclaration":
case "ClassExpression":
if (n === "superClass" && (r.type === "ArrowFunctionExpression" || r.type === "AssignmentExpression" || r.type === "AwaitExpression" || r.type === "BinaryExpression" || r.type === "ConditionalExpression" || r.type === "LogicalExpression" || r.type === "NewExpression" || r.type === "ObjectExpression" || r.type === "SequenceExpression" || r.type === "TaggedTemplateExpression" || r.type === "UnaryExpression" || r.type === "UpdateExpression" || r.type === "YieldExpression" || r.type === "TSNonNullExpression" || r.type === "ClassExpression" && R2(r.decorators)))
return true;
break;
case "ExportDefaultDeclaration":
return _o(e, t) || r.type === "SequenceExpression";
case "Decorator":
if (n === "expression" && !rl(r))
return true;
break;
case "TypeAnnotation":
if (e.match(undefined, undefined, (i, o) => o === "returnType" && i.type === "ArrowFunctionExpression") && Zc(r))
return true;
break;
case "BinaryExpression":
if (n === "left" && (s.operator === "in" || s.operator === "instanceof") && r.type === "UnaryExpression")
return true;
break;
case "VariableDeclarator":
if (n === "init" && e.match(undefined, undefined, (i, o) => o === "declarations" && i.type === "VariableDeclaration", (i, o) => o === "left" && i.type === "ForInStatement"))
return true;
break;
}
switch (r.type) {
case "UpdateExpression":
if (s.type === "UnaryExpression")
return r.prefix && (r.operator === "++" && s.operator === "+" || r.operator === "--" && s.operator === "-");
case "UnaryExpression":
switch (s.type) {
case "UnaryExpression":
return r.operator === s.operator && (r.operator === "+" || r.operator === "-");
case "BindExpression":
return true;
case "MemberExpression":
case "OptionalMemberExpression":
return n === "object";
case "TaggedTemplateExpression":
return true;
case "NewExpression":
case "CallExpression":
case "OptionalCallExpression":
return n === "callee";
case "BinaryExpression":
return n === "left" && s.operator === "**";
case "TSNonNullExpression":
return true;
default:
return false;
}
case "BinaryExpression":
if (s.type === "UpdateExpression" || r.operator === "in" && zc(e))
return true;
if (r.operator === "|>" && r.extra?.parenthesized) {
let i = e.grandparent;
if (i.type === "BinaryExpression" && i.operator === "|>")
return true;
}
case "TSTypeAssertion":
case "TSAsExpression":
case "TSSatisfiesExpression":
case "AsExpression":
case "AsConstExpression":
case "SatisfiesExpression":
case "LogicalExpression":
switch (s.type) {
case "TSAsExpression":
case "TSSatisfiesExpression":
case "AsExpression":
case "AsConstExpression":
case "SatisfiesExpression":
return !Ae2(r);
case "ConditionalExpression":
return Ae2(r) || fi2(r);
case "CallExpression":
case "NewExpression":
case "OptionalCallExpression":
return n === "callee";
case "ClassExpression":
case "ClassDeclaration":
return n === "superClass";
case "TSTypeAssertion":
case "TaggedTemplateExpression":
case "UnaryExpression":
case "JSXSpreadAttribute":
case "SpreadElement":
case "BindExpression":
case "AwaitExpression":
case "TSNonNullExpression":
case "UpdateExpression":
return true;
case "MemberExpression":
case "OptionalMemberExpression":
return n === "object";
case "AssignmentExpression":
case "AssignmentPattern":
return n === "left" && (r.type === "TSTypeAssertion" || Ae2(r));
case "LogicalExpression":
if (r.type === "LogicalExpression")
return s.operator !== r.operator;
case "BinaryExpression": {
let { operator: i, type: o } = r;
if (!i && o !== "TSTypeAssertion")
return true;
let u = yr2(i), p2 = s.operator, c2 = yr2(p2);
return !!(c2 > u || n === "right" && c2 === u || c2 === u && !dr2(p2, i) || c2 < u && i === "%" && (p2 === "+" || p2 === "-") || Ai2(p2));
}
default:
return false;
}
case "SequenceExpression":
return s.type !== "ForStatement";
case "YieldExpression":
if (s.type === "AwaitExpression" || s.type === "TSTypeAssertion")
return true;
case "AwaitExpression":
switch (s.type) {
case "TaggedTemplateExpression":
case "UnaryExpression":
case "LogicalExpression":
case "SpreadElement":
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSNonNullExpression":
case "AsExpression":
case "AsConstExpression":
case "SatisfiesExpression":
case "BindExpression":
return true;
case "MemberExpression":
case "OptionalMemberExpression":
return n === "object";
case "NewExpression":
case "CallExpression":
case "OptionalCallExpression":
return n === "callee";
case "ConditionalExpression":
return n === "test";
case "BinaryExpression":
return !(!r.argument && s.operator === "|>");
default:
return false;
}
case "TSFunctionType":
if (e.match((i) => i.type === "TSFunctionType", (i, o) => o === "typeAnnotation" && i.type === "TSTypeAnnotation", (i, o) => o === "returnType" && i.type === "ArrowFunctionExpression"))
return true;
case "TSConditionalType":
case "TSConstructorType":
case "ConditionalTypeAnnotation":
if (n === "extendsType" && Ue2(r) && s.type === r.type || n === "checkType" && Ue2(s))
return true;
if (n === "extendsType" && s.type === "TSConditionalType") {
let { typeAnnotation: i } = r.returnType || r.typeAnnotation;
if (i.type === "TSTypePredicate" && i.typeAnnotation && (i = i.typeAnnotation.typeAnnotation), i.type === "TSInferType" && i.typeParameter.constraint)
return true;
}
case "TSUnionType":
case "TSIntersectionType":
if (Se2(s) || xt2(s))
return true;
case "TSInferType":
if (r.type === "TSInferType") {
if (s.type === "TSRestType")
return false;
if (n === "types" && (s.type === "TSUnionType" || s.type === "TSIntersectionType") && r.typeParameter.type === "TSTypeParameter" && r.typeParameter.constraint)
return true;
}
case "TSTypeOperator":
return s.type === "TSArrayType" || s.type === "TSOptionalType" || s.type === "TSRestType" || n === "objectType" && s.type === "TSIndexedAccessType" || s.type === "TSTypeOperator" || s.type === "TSTypeAnnotation" && e.grandparent.type.startsWith("TSJSDoc");
case "TSTypeQuery":
return n === "objectType" && s.type === "TSIndexedAccessType" || n === "elementType" && s.type === "TSArrayType";
case "TypeOperator":
return s.type === "ArrayTypeAnnotation" || s.type === "NullableTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType") || s.type === "TypeOperator";
case "TypeofTypeAnnotation":
return n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType") || n === "elementType" && s.type === "ArrayTypeAnnotation";
case "ArrayTypeAnnotation":
return s.type === "NullableTypeAnnotation";
case "IntersectionTypeAnnotation":
case "UnionTypeAnnotation":
return s.type === "TypeOperator" || s.type === "KeyofTypeAnnotation" || s.type === "ArrayTypeAnnotation" || s.type === "NullableTypeAnnotation" || s.type === "IntersectionTypeAnnotation" || s.type === "UnionTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType");
case "InferTypeAnnotation":
case "NullableTypeAnnotation":
return s.type === "ArrayTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType");
case "ComponentTypeAnnotation":
case "FunctionTypeAnnotation": {
if (r.type === "ComponentTypeAnnotation" && (r.rendersType === null || r.rendersType === undefined))
return false;
if (e.match(undefined, (o, u) => u === "typeAnnotation" && o.type === "TypeAnnotation", (o, u) => u === "returnType" && o.type === "ArrowFunctionExpression") || e.match(undefined, (o, u) => u === "typeAnnotation" && o.type === "TypePredicate", (o, u) => u === "typeAnnotation" && o.type === "TypeAnnotation", (o, u) => u === "returnType" && o.type === "ArrowFunctionExpression"))
return true;
let i = s.type === "NullableTypeAnnotation" ? e.grandparent : s;
return i.type === "UnionTypeAnnotation" || i.type === "IntersectionTypeAnnotation" || i.type === "ArrayTypeAnnotation" || n === "objectType" && (i.type === "IndexedAccessType" || i.type === "OptionalIndexedAccessType") || n === "checkType" && s.type === "ConditionalTypeAnnotation" || n === "extendsType" && s.type === "ConditionalTypeAnnotation" && r.returnType?.type === "InferTypeAnnotation" && r.returnType?.typeParameter.bound || i.type === "NullableTypeAnnotation" || s.type === "FunctionTypeParam" && s.name === null && K2(r).some((o) => o.typeAnnotation?.type === "NullableTypeAnnotation");
}
case "OptionalIndexedAccessType":
return n === "objectType" && s.type === "IndexedAccessType";
case "StringLiteral":
case "NumericLiteral":
case "Literal":
if (typeof r.value == "string" && s.type === "ExpressionStatement" && typeof s.directive != "string") {
let i = e.grandparent;
return i.type === "Program" || i.type === "BlockStatement";
}
return n === "object" && J2(s) && Ce2(r);
case "AssignmentExpression":
return !((n === "init" || n === "update") && s.type === "ForStatement" || n === "expression" && r.left.type !== "ObjectPattern" && s.type === "ExpressionStatement" || n === "key" && s.type === "TSPropertySignature" || s.type === "AssignmentExpression" || n === "expressions" && s.type === "SequenceExpression" && e.match(undefined, undefined, (i, o) => (o === "init" || o === "update") && i.type === "ForStatement") || n === "value" && s.type === "Property" && e.match(undefined, undefined, (i, o) => o === "properties" && i.type === "ObjectPattern") || s.type === "NGChainedExpression" || n === "node" && s.type === "JsExpressionRoot");
case "ConditionalExpression":
switch (s.type) {
case "TaggedTemplateExpression":
case "UnaryExpression":
case "SpreadElement":
case "BinaryExpression":
case "LogicalExpression":
case "NGPipeExpression":
case "ExportDefaultDeclaration":
case "AwaitExpression":
case "JSXSpreadAttribute":
case "TSTypeAssertion":
case "TypeCastExpression":
case "TSAsExpression":
case "TSSatisfiesExpression":
case "AsExpression":
case "AsConstExpression":
case "SatisfiesExpression":
case "TSNonNullExpression":
return true;
case "NewExpression":
case "CallExpression":
case "OptionalCallExpression":
return n === "callee";
case "ConditionalExpression":
return t.experimentalTernaries ? false : n === "test";
case "MemberExpression":
case "OptionalMemberExpression":
return n === "object";
default:
return false;
}
case "FunctionExpression":
switch (s.type) {
case "NewExpression":
case "CallExpression":
case "OptionalCallExpression":
return n === "callee";
case "TaggedTemplateExpression":
return true;
default:
return false;
}
case "ArrowFunctionExpression":
switch (s.type) {
case "BinaryExpression":
return s.operator !== "|>" || r.extra?.parenthesized;
case "NewExpression":
case "CallExpression":
case "OptionalCallExpression":
return n === "callee";
case "MemberExpression":
case "OptionalMemberExpression":
return n === "object";
case "TSAsExpression":
case "TSSatisfiesExpression":
case "AsExpression":
case "AsConstExpression":
case "SatisfiesExpression":
case "TSNonNullExpression":
case "BindExpression":
case "TaggedTemplateExpression":
case "UnaryExpression":
case "LogicalExpression":
case "AwaitExpression":
case "TSTypeAssertion":
case "MatchExpressionCase":
return true;
case "TSInstantiationExpression":
return n === "expression";
case "ConditionalExpression":
return n === "test";
default:
return false;
}
case "ClassExpression":
switch (s.type) {
case "NewExpression":
return n === "callee";
default:
return false;
}
case "OptionalMemberExpression":
case "OptionalCallExpression":
case "CallExpression":
case "MemberExpression":
if (tl(e))
return true;
case "TaggedTemplateExpression":
case "TSNonNullExpression":
if (n === "callee" && (s.type === "BindExpression" || s.type === "NewExpression")) {
let i = r;
for (;i; )
switch (i.type) {
case "CallExpression":
case "OptionalCallExpression":
return true;
case "MemberExpression":
case "OptionalMemberExpression":
case "BindExpression":
i = i.object;
break;
case "TaggedTemplateExpression":
i = i.tag;
break;
case "TSNonNullExpression":
i = i.expression;
break;
default:
return false;
}
}
return false;
case "BindExpression":
return n === "callee" && (s.type === "BindExpression" || s.type === "NewExpression") || n === "object" && J2(s);
case "NGPipeExpression":
return !(s.type === "NGRoot" || s.type === "NGMicrosyntaxExpression" || s.type === "ObjectProperty" && !r.extra?.parenthesized || q2(s) || n === "arguments" && M2(s) || n === "right" && s.type === "NGPipeExpression" || n === "property" && s.type === "MemberExpression" || s.type === "AssignmentExpression");
case "JSXFragment":
case "JSXElement":
return n === "callee" || n === "left" && s.type === "BinaryExpression" && s.operator === "<" || !q2(s) && s.type !== "ArrowFunctionExpression" && s.type !== "AssignmentExpression" && s.type !== "AssignmentPattern" && s.type !== "BinaryExpression" && s.type !== "NewExpression" && s.type !== "ConditionalExpression" && s.type !== "ExpressionStatement" && s.type !== "JsExpressionRoot" && s.type !== "JSXAttribute" && s.type !== "JSXElement" && s.type !== "JSXExpressionContainer" && s.type !== "JSXFragment" && s.type !== "LogicalExpression" && !M2(s) && !Oe2(s) && s.type !== "ReturnStatement" && s.type !== "ThrowStatement" && s.type !== "TypeCastExpression" && s.type !== "VariableDeclarator" && s.type !== "YieldExpression" && s.type !== "MatchExpressionCase";
case "TSInstantiationExpression":
return n === "object" && J2(s);
case "MatchOrPattern":
return s.type === "MatchAsPattern";
}
return false;
}
var Qc = k(["BlockStatement", "BreakStatement", "ComponentDeclaration", "ClassBody", "ClassDeclaration", "ClassMethod", "ClassProperty", "PropertyDefinition", "ClassPrivateProperty", "ContinueStatement", "DebuggerStatement", "DeclareComponent", "DeclareClass", "DeclareExportAllDeclaration", "DeclareExportDeclaration", "DeclareFunction", "DeclareHook", "DeclareInterface", "DeclareModule", "DeclareModuleExports", "DeclareNamespace", "DeclareVariable", "DeclareEnum", "DoWhileStatement", "EnumDeclaration", "ExportAllDeclaration", "ExportDefaultDeclaration", "ExportNamedDeclaration", "ExpressionStatement", "ForInStatement", "ForOfStatement", "ForStatement", "FunctionDeclaration", "HookDeclaration", "IfStatement", "ImportDeclaration", "InterfaceDeclaration", "LabeledStatement", "MethodDefinition", "ReturnStatement", "SwitchStatement", "ThrowStatement", "TryStatement", "TSDeclareFunction", "TSEnumDeclaration", "TSImportEqualsDeclaration", "TSInterfaceDeclaration", "TSModuleDeclaration", "TSNamespaceExportDeclaration", "TypeAlias", "VariableDeclaration", "WhileStatement", "WithStatement"]);
function zc(e) {
let t = 0, { node: r } = e;
for (;r; ) {
let n = e.getParentNode(t++);
if (n?.type === "ForStatement" && n.init === r)
return true;
r = n;
}
return false;
}
function Zc(e) {
return Er2(e, (t) => t.type === "ObjectTypeAnnotation" && Er2(t, (r) => r.type === "FunctionTypeAnnotation"));
}
function el(e) {
return se2(e);
}
function xr2(e) {
let { parent: t, key: r } = e;
switch (t.type) {
case "NGPipeExpression":
if (r === "arguments" && e.isLast)
return e.callParent(xr2);
break;
case "ObjectProperty":
if (r === "value")
return e.callParent(() => e.key === "properties" && e.isLast);
break;
case "BinaryExpression":
case "LogicalExpression":
if (r === "right")
return e.callParent(xr2);
break;
case "ConditionalExpression":
if (r === "alternate")
return e.callParent(xr2);
break;
case "UnaryExpression":
if (t.prefix)
return e.callParent(xr2);
break;
}
return false;
}
function _o(e, t) {
let { node: r, parent: n } = e;
return r.type === "FunctionExpression" || r.type === "ClassExpression" ? n.type === "ExportDefaultDeclaration" || !ds2(e, t) : !Xt2(r) || n.type !== "ExportDefaultDeclaration" && ds2(e, t) ? false : e.call(() => _o(e, t), ...Rr2(r));
}
function tl(e) {
return !!(e.match(undefined, (t, r) => r === "expression" && t.type === "ChainExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match((t) => t.type === "OptionalCallExpression" || t.type === "OptionalMemberExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match((t) => t.type === "OptionalCallExpression" || t.type === "OptionalMemberExpression", (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match(undefined, (t, r) => r === "expression" && t.type === "ChainExpression", (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match(undefined, (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "expression" && t.type === "ChainExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match((t) => t.type === "OptionalMemberExpression" || t.type === "OptionalCallExpression", (t, r) => r === "object" && t.type === "MemberExpression" || r === "callee" && (t.type === "CallExpression" || t.type === "NewExpression")) || e.match((t) => t.type === "OptionalMemberExpression" || t.type === "OptionalCallExpression", (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "object" && t.type === "MemberExpression" || r === "callee" && t.type === "CallExpression") || e.match((t) => t.type === "CallExpression" || t.type === "MemberExpression", (t, r) => r === "expression" && t.type === "ChainExpression") && (e.match(undefined, undefined, (t, r) => r === "callee" && (t.type === "CallExpression" && !t.optional || t.type === "NewExpression") || r === "object" && t.type === "MemberExpression" && !t.optional) || e.match(undefined, undefined, (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "object" && t.type === "MemberExpression" || r === "callee" && t.type === "CallExpression")) || e.match((t) => t.type === "CallExpression" || t.type === "MemberExpression", (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "expression" && t.type === "ChainExpression", (t, r) => r === "object" && t.type === "MemberExpression" || r === "callee" && t.type === "CallExpression"));
}
function Cs2(e) {
return e.type === "Identifier" ? true : J2(e) ? !e.computed && !e.optional && e.property.type === "Identifier" && Cs2(e.object) : false;
}
function rl(e) {
return e.type === "ChainExpression" && (e = e.expression), Cs2(e) || M2(e) && !e.optional && Cs2(e.callee);
}
var ge2 = ds2;
function nl(e, t) {
let r = t - 1;
r = ze2(e, r, { backwards: true }), r = Ze2(e, r, { backwards: true }), r = ze2(e, r, { backwards: true });
let n = Ze2(e, r, { backwards: true });
return r !== n;
}
var Mo = nl;
var sl = () => true;
function As2(e, t) {
let r = e.node;
return r.printed = true, t.printer.printComment(e, t);
}
function il(e, t) {
let r = e.node, n = [As2(e, t)], { printer: s, originalText: i, locStart: o, locEnd: u } = t;
if (s.isBlockComment?.(r)) {
let y2 = Z2(i, u(r)) ? Z2(i, o(r), { backwards: true }) ? E2 : A : " ";
n.push(y2);
} else
n.push(E2);
let c2 = Ze2(i, ze2(i, u(r)));
return c2 !== false && Z2(i, c2) && n.push(E2), n;
}
function ol(e, t, r) {
let n = e.node, s = As2(e, t), { printer: i, originalText: o, locStart: u } = t, p2 = i.isBlockComment?.(n);
if (r?.hasLineSuffix && !r?.isBlock || Z2(o, u(n), { backwards: true })) {
let c2 = Mo(o, u(n));
return { doc: us2([E2, c2 ? E2 : "", s]), isBlock: p2, hasLineSuffix: true };
}
return !p2 || r?.hasLineSuffix ? { doc: [us2([" ", s]), ke2], isBlock: p2, hasLineSuffix: true } : { doc: [" ", s], isBlock: p2, hasLineSuffix: false };
}
function v2(e, t, r = {}) {
let { node: n } = e;
if (!R2(n?.comments))
return "";
let { indent: s = false, marker: i, filter: o = sl } = r, u = [];
if (e.each(({ node: c2 }) => {
c2.leading || c2.trailing || c2.marker !== i || !o(c2) || u.push(As2(e, t));
}, "comments"), u.length === 0)
return "";
let p2 = L2(E2, u);
return s ? m2([E2, p2]) : p2;
}
function Mt2(e, t) {
let r = e.node;
if (!r)
return {};
let n = t[Symbol.for("printedComments")];
if ((r.comments || []).filter((p2) => !n.has(p2)).length === 0)
return { leading: "", trailing: "" };
let i = [], o = [], u;
return e.each(() => {
let p2 = e.node;
if (n?.has(p2))
return;
let { leading: c2, trailing: y2 } = p2;
c2 ? i.push(il(e, t)) : y2 && (u = ol(e, t, u), o.push(u.doc));
}, "comments"), { leading: i, trailing: o };
}
function De2(e, t, r) {
let { leading: n, trailing: s } = Mt2(e, r);
return !n && !s ? t : Ar2(t, (i) => [n, i, s]);
}
var Et2 = class extends Error {
name = "ArgExpansionBailout";
};
function Ke2(e, t, r, n, s) {
let i = e.node, o = K2(i), u = s && i.typeParameters ? r("typeParameters") : "";
if (o.length === 0)
return [u, "(", v2(e, t, { filter: (d) => _e2(t.originalText, I(d)) === ")" }), ")"];
let { parent: p2 } = e, c2 = It2(p2), y2 = No(i), D2 = [];
if (xi2(e, (d, b2) => {
let B2 = b2 === o.length - 1;
B2 && i.rest && D2.push("..."), D2.push(r()), !B2 && (D2.push(","), c2 || y2 ? D2.push(" ") : oe2(o[b2], t) ? D2.push(E2, E2) : D2.push(A));
}), n && !al(e)) {
if (ne2(u) || ne2(D2))
throw new Et2;
return l([_t2(u), "(", _t2(D2), ")"]);
}
let F2 = o.every((d) => !R2(d.decorators));
return y2 && F2 ? [u, "(", ...D2, ")"] : c2 ? [u, "(", ...D2, ")"] : (Gr2(p2) || Ei2(p2) || p2.type === "TypeAlias" || p2.type === "UnionTypeAnnotation" || p2.type === "IntersectionTypeAnnotation" || p2.type === "FunctionTypeAnnotation" && p2.returnType === i) && o.length === 1 && o[0].name === null && i.this !== o[0] && o[0].typeAnnotation && i.typeParameters === null && Vt2(o[0].typeAnnotation) && !i.rest ? t.arrowParens === "always" || i.type === "HookTypeAnnotation" ? ["(", ...D2, ")"] : D2 : [u, "(", m2([f, ...D2]), P2(!Ti2(i) && ie2(t, "all") && e.root.type !== "NGRoot" ? "," : ""), f, ")"];
}
function No(e) {
if (!e)
return false;
let t = K2(e);
if (t.length !== 1)
return false;
let [r] = t;
return !T2(r) && (r.type === "ObjectPattern" || r.type === "ArrayPattern" || r.type === "Identifier" && r.typeAnnotation && (r.typeAnnotation.type === "TypeAnnotation" || r.typeAnnotation.type === "TSTypeAnnotation") && Je2(r.typeAnnotation.typeAnnotation) || r.type === "FunctionTypeParam" && Je2(r.typeAnnotation) && r !== e.rest || r.type === "AssignmentPattern" && (r.left.type === "ObjectPattern" || r.left.type === "ArrayPattern") && (r.right.type === "Identifier" || se2(r.right) && r.right.properties.length === 0 || q2(r.right) && r.right.elements.length === 0));
}
function ul(e) {
let t;
return e.returnType ? (t = e.returnType, t.typeAnnotation && (t = t.typeAnnotation)) : e.typeAnnotation && (t = e.typeAnnotation), t;
}
function lt2(e, t) {
let r = ul(e);
if (!r)
return false;
let n = e.typeParameters?.params;
if (n) {
if (n.length > 1)
return false;
if (n.length === 1) {
let s = n[0];
if (s.constraint || s.default)
return false;
}
}
return K2(e).length === 1 && (Je2(r) || ne2(t));
}
function al(e) {
return e.match((t) => t.type === "ArrowFunctionExpression" && t.body.type === "BlockStatement", (t, r) => {
if (t.type === "CallExpression" && r === "arguments" && t.arguments.length === 1 && t.callee.type === "CallExpression") {
let n = t.callee.callee;
return n.type === "Identifier" || n.type === "MemberExpression" && !n.computed && n.object.type === "Identifier" && n.property.type === "Identifier";
}
return false;
}, (t, r) => t.type === "VariableDeclarator" && r === "init" || t.type === "ExportDefaultDeclaration" && r === "declaration" || t.type === "TSExportAssignment" && r === "expression" || t.type === "AssignmentExpression" && r === "right" && t.left.type === "MemberExpression" && t.left.object.type === "Identifier" && t.left.object.name === "module" && t.left.property.type === "Identifier" && t.left.property.name === "exports", (t) => t.type !== "VariableDeclaration" || t.kind === "const" && t.declarations.length === 1);
}
function jo(e) {
let t = K2(e);
return t.length > 1 && t.some((r) => r.type === "TSParameterProperty");
}
function Nt2(e, t) {
return (t === "params" || t === "this" || t === "rest") && No(e);
}
function X2(e) {
let { node: t } = e;
return !t.optional || t.type === "Identifier" && t === e.parent.key ? "" : M2(t) || J2(t) && t.computed || t.type === "OptionalIndexedAccessType" ? "?." : "?";
}
function sn(e) {
return e.node.definite || e.match(undefined, (t, r) => r === "id" && t.type === "VariableDeclarator" && t.definite) ? "!" : "";
}
var pl = k(["DeclareClass", "DeclareComponent", "DeclareFunction", "DeclareHook", "DeclareVariable", "DeclareExportDeclaration", "DeclareExportAllDeclaration", "DeclareOpaqueType", "DeclareTypeAlias", "DeclareEnum", "DeclareInterface"]);
function Q2(e) {
let { node: t } = e;
return t.declare || pl(t) && e.parent.type !== "DeclareExportDeclaration" ? "declare " : "";
}
var cl = k(["TSAbstractMethodDefinition", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]);
function Zt2({ node: e }) {
return e.abstract || cl(e) ? "abstract " : "";
}
function Ft2(e, t, r) {
return e.type === "EmptyStatement" ? T2(e, x.Leading) ? [" ", t] : t : e.type === "BlockStatement" || r ? [" ", t] : m2([A, t]);
}
function jt2(e) {
return e.accessibility ? e.accessibility + " " : "";
}
var ll = /^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/;
var ml = (e) => ll.test(e);
var vo = ml;
function Dl(e) {
return e.length === 1 ? e : e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u, "$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u, "$1").replace(/^([+-])?\./u, "$10.").replace(/(\.\d+?)0+(?=e|$)/u, "$1").replace(/\.(?=e|$)/u, "");
}
var dt2 = Dl;
var fl = 0;
function on(e, t, r) {
let { node: n, parent: s, grandparent: i, key: o } = e, u = o !== "body" && (s.type === "IfStatement" || s.type === "WhileStatement" || s.type === "SwitchStatement" || s.type === "DoWhileStatement"), p2 = n.operator === "|>" && e.root.extra?.__isUsingHackPipeline, c2 = Ts2(e, t, r, false, u);
if (u)
return c2;
if (p2)
return l(c2);
if (o === "callee" && (M2(s) || s.type === "NewExpression") || s.type === "UnaryExpression" || J2(s) && !s.computed)
return l([m2([f, ...c2]), f]);
let y2 = s.type === "ReturnStatement" || s.type === "ThrowStatement" || s.type === "JSXExpressionContainer" && i.type === "JSXAttribute" || n.operator !== "|" && s.type === "JsExpressionRoot" || n.type !== "NGPipeExpression" && (s.type === "NGRoot" && t.parser === "__ng_binding" || s.type === "NGMicrosyntaxExpression" && i.type === "NGMicrosyntax" && i.body.length === 1) || n === s.body && s.type === "ArrowFunctionExpression" || n !== s.body && s.type === "ForStatement" || s.type === "ConditionalExpression" && i.type !== "ReturnStatement" && i.type !== "ThrowStatement" && !M2(i) && i.type !== "NewExpression" || s.type === "TemplateLiteral" || El(e), D2 = s.type === "AssignmentExpression" || s.type === "VariableDeclarator" || s.type === "ClassProperty" || s.type === "PropertyDefinition" || s.type === "TSAbstractPropertyDefinition" || s.type === "ClassPrivateProperty" || Oe2(s), F2 = Te2(n.left) && dr2(n.operator, n.left.operator);
if (y2 || er2(n) && !F2 || !er2(n) && D2)
return l(c2);
if (c2.length === 0)
return "";
let C = H2(n.right), d = c2.findIndex((S2) => typeof S2 != "string" && !Array.isArray(S2) && S2.type === Fe2), b2 = c2.slice(0, d === -1 ? 1 : d + 1), B2 = c2.slice(b2.length, C ? -1 : undefined), O2 = Symbol("logicalChain-" + ++fl), h = l([...b2, m2(B2)], { id: O2 });
if (!C)
return h;
let g2 = N(0, c2, -1);
return l([h, yt2(g2, { groupId: O2 })]);
}
function Ts2(e, t, r, n, s) {
let { node: i } = e;
if (!Te2(i))
return [l(r())];
let o = [];
dr2(i.operator, i.left.operator) ? o = e.call(() => Ts2(e, t, r, true, s), "left") : o.push(l(r("left")));
let u = er2(i), p2 = i.right.type === "ChainExpression" ? i.right.expression : i.right, c2 = (i.operator === "|>" || i.type === "NGPipeExpression" || yl(e, t)) && !Ee2(t.originalText, p2), D2 = !T2(p2, x.Leading, Hr2) && Ee2(t.originalText, p2), F2 = i.type === "NGPipeExpression" ? "|" : i.operator, C = i.type === "NGPipeExpression" && i.arguments.length > 0 ? l(m2([f, ": ", L2([A, ": "], e.map(() => xe2(2, l(r())), "arguments"))])) : "", d;
if (u)
d = [F2, Ee2(t.originalText, p2) ? m2([A, r("right"), C]) : [" ", r("right"), C]];
else {
let g2 = F2 === "|>" && e.root.extra?.__isUsingHackPipeline ? e.call(() => Ts2(e, t, r, true, s), "right") : r("right");
if (t.experimentalOperatorPosition === "start") {
let S2 = "";
if (D2)
switch (We2(g2)) {
case Be2:
S2 = g2.splice(0, 1)[0];
break;
case Pe:
S2 = g2.contents.splice(0, 1)[0];
break;
}
d = [A, S2, F2, " ", g2, C];
} else
d = [c2 ? A : "", F2, c2 ? " " : A, g2, C];
}
let { parent: b2 } = e, B2 = T2(i.left, x.Trailing | x.Line);
if ((B2 || !(s && i.type === "LogicalExpression") && b2.type !== i.type && i.left.type !== i.type && i.right.type !== i.type) && (d = l(d, { shouldBreak: B2 })), t.experimentalOperatorPosition === "start" ? o.push(u || D2 ? " " : "", d) : o.push(c2 ? "" : " ", d), n && T2(i)) {
let h = Qt2(De2(e, o, t));
return h.type === Me2 ? h.parts : Array.isArray(h) ? h : [h];
}
return o;
}
function er2(e) {
return e.type !== "LogicalExpression" ? false : !!(se2(e.right) && e.right.properties.length > 0 || q2(e.right) && e.right.elements.length > 0 || H2(e.right));
}
var Ro = (e) => e.type === "BinaryExpression" && e.operator === "|";
function yl(e, t) {
return (t.parser === "__vue_expression" || t.parser === "__vue_ts_expression") && Ro(e.node) && !e.hasAncestor((r) => !Ro(r) && r.type !== "JsExpressionRoot");
}
function El(e) {
if (e.key !== "arguments")
return false;
let { parent: t } = e;
if (!(M2(t) && !t.optional && t.arguments.length === 1))
return false;
let { callee: r } = t;
return r.type === "Identifier" && r.name === "Boolean";
}
function un(e, t, r) {
let { node: n } = e, { parent: s } = e, i = s.type !== "TypeParameterInstantiation" && (!Ue2(s) || !t.experimentalTernaries) && s.type !== "TSTypeParameterInstantiation" && s.type !== "GenericTypeAnnotation" && s.type !== "TSTypeReference" && s.type !== "TSTypeAssertion" && s.type !== "TupleTypeAnnotation" && s.type !== "TSTupleType" && !(s.type === "FunctionTypeParam" && !s.name && e.grandparent.this !== s) && !((Cr2(s) || s.type === "VariableDeclarator") && Ee2(t.originalText, n)) && !(Cr2(s) && T2(s.id, x.Trailing | x.Line)), o = xs2(n), u = e.map(() => {
let C = r();
return o || (C = xe2(2, C)), De2(e, C, t);
}, "types"), p2 = "", c2 = "";
if (Yr2(e) && ({ leading: p2, trailing: c2 } = Mt2(e, t)), o)
return [p2, L2(" | ", u), c2];
let y2 = i && !Ee2(t.originalText, n), D2 = [P2([y2 ? A : "", "| "]), L2([A, "| "], u)];
if (ge2(e, t))
return [p2, l([m2(D2), f]), c2];
let F2 = [p2, l(D2)];
return (s.type === "TupleTypeAnnotation" || s.type === "TSTupleType") && s[s.type === "TupleTypeAnnotation" && s.types ? "types" : "elementTypes"].length > 1 ? [l([m2([P2(["(", f]), F2]), f, P2(")")]), c2] : [l(i ? m2(F2) : F2), c2];
}
var Fl = k(["VoidTypeAnnotation", "TSVoidKeyword", "NullLiteralTypeAnnotation", "TSNullKeyword"]);
var dl = k(["ObjectTypeAnnotation", "TSTypeLiteral", "GenericTypeAnnotation", "TSTypeReference"]);
function xs2(e) {
let { types: t } = e;
if (t.some((n) => T2(n)))
return false;
let r = t.find((n) => dl(n));
return r ? t.every((n) => n === r || Fl(n)) : false;
}
function Jo(e) {
return Vt2(e) || Je2(e) ? true : Se2(e) ? xs2(e) : false;
}
var Cl = new WeakSet;
function G2(e, t, r = "typeAnnotation") {
let { node: { [r]: n } } = e;
if (!n)
return "";
let s = false;
if (n.type === "TSTypeAnnotation" || n.type === "TypeAnnotation") {
let i = e.call(Go, r);
(i === "=>" || i === ":" && T2(n, x.Leading)) && (s = true), Cl.add(n);
}
return s ? [" ", t(r)] : t(r);
}
var Go = (e) => e.match((t) => t.type === "TSTypeAnnotation", (t, r) => (r === "returnType" || r === "typeAnnotation") && (t.type === "TSFunctionType" || t.type === "TSConstructorType")) ? "=>" : e.match((t) => t.type === "TSTypeAnnotation", (t, r) => r === "typeAnnotation" && (t.type === "TSJSDocNullableType" || t.type === "TSJSDocNonNullableType" || t.type === "TSTypePredicate")) || e.match((t) => t.type === "TypeAnnotation", (t, r) => r === "typeAnnotation" && t.type === "Identifier", (t, r) => r === "id" && t.type === "DeclareFunction") || e.match((t) => t.type === "TypeAnnotation", (t, r) => r === "typeAnnotation" && t.type === "Identifier", (t, r) => r === "id" && t.type === "DeclareHook") || e.match((t) => t.type === "TypeAnnotation", (t, r) => r === "bound" && t.type === "TypeParameter" && t.usesExtendsBound) ? "" : ":";
function an(e, t, r) {
let n = Go(e);
return n ? [n, " ", r("typeAnnotation")] : r("typeAnnotation");
}
function Al(e, t, r, n) {
let { node: s } = e, i = s.inexact ? "..." : "";
return T2(s, x.Dangling) ? l([r, i, v2(e, t, { indent: true }), f, n]) : [r, i, n];
}
function tr2(e, t, r) {
let { node: n } = e, s = [], i = "[", o = "]", u = n.type === "TupleTypeAnnotation" && n.types ? "types" : n.type === "TSTupleType" || n.type === "TupleTypeAnnotation" ? "elementTypes" : "elements", p2 = n[u];
if (p2.length === 0)
s.push(Al(e, t, i, o));
else {
let c2 = N(0, p2, -1), y2 = c2?.type !== "RestElement" && !n.inexact, D2 = c2 === null, F2 = Symbol("array"), C = !t.__inJestEach && p2.length > 1 && p2.every((B2, O2, h) => {
let g2 = B2?.type;
if (!q2(B2) && !se2(B2))
return false;
let S2 = h[O2 + 1];
if (S2 && g2 !== S2.type)
return false;
let j2 = q2(B2) ? "elements" : "properties";
return B2[j2] && B2[j2].length > 1;
}), d = gs2(n, t), b2 = y2 ? D2 ? "," : ie2(t) ? d ? P2(",", "", { groupId: F2 }) : P2(",") : "" : "";
s.push(l([i, m2([f, d ? xl(e, t, r, b2) : [Tl(e, t, r, u, n.inexact), b2], v2(e, t)]), f, o], { shouldBreak: C, id: F2 }));
}
return s.push(X2(e), G2(e, r)), s;
}
function gs2(e, t) {
return q2(e) && e.elements.length > 0 && e.elements.every((r) => r && (Ce2(r) || Hn(r) && !T2(r.argument)) && !T2(r, x.Trailing | x.Line, (n) => !Z2(t.originalText, w2(n), { backwards: true })));
}
function Wo({ node: e }, { originalText: t }) {
let r = I(e);
if (r === w2(e))
return false;
let { length: n } = t;
for (;r < n && t[r] !== ","; )
r = qt2(t, Ut2(t, r + 1));
return Yt2(t, r);
}
function Tl(e, t, r, n, s) {
let i = [];
return e.each(({ node: o, isLast: u }) => {
i.push(o ? l(r()) : ""), (!u || s) && i.push([",", A, o && Wo(e, t) ? f : ""]);
}, n), s && i.push("..."), i;
}
function xl(e, t, r, n) {
let s = [];
return e.each(({ isLast: i, next: o }) => {
s.push([r(), i ? n : ","]), i || s.push(Wo(e, t) ? [E2, E2] : T2(o, x.Leading | x.Line) ? E2 : A);
}, "elements"), zr2(s);
}
function gl(e, t, r) {
let { node: n } = e, s = le2(n);
if (s.length === 0)
return ["(", v2(e, t), ")"];
let i = s.length - 1;
if (Bl(s)) {
let D2 = ["("];
return $t2(e, (F2, C) => {
D2.push(r()), C !== i && D2.push(", ");
}), D2.push(")"), D2;
}
let o = false, u = [];
$t2(e, ({ node: D2 }, F2) => {
let C = r();
F2 === i || (oe2(D2, t) ? (o = true, C = [C, ",", E2, E2]) : C = [C, ",", A]), u.push(C);
});
let p2 = !t.parser.startsWith("__ng_") && n.type !== "ImportExpression" && n.type !== "TSImportType" && n.type !== "TSExternalModuleReference" && ie2(t, "all") ? "," : "";
function c2() {
return l(["(", m2([A, ...u]), p2, A, ")"], { shouldBreak: true });
}
if (o || e.parent.type !== "Decorator" && Ci2(s))
return c2();
if (Sl(s)) {
let D2 = u.slice(1);
if (D2.some(ne2))
return c2();
let F2;
try {
F2 = r($n(n, 0), { expandFirstArg: true });
} catch (C) {
if (C instanceof Et2)
return c2();
throw C;
}
return ne2(F2) ? [ke2, nt2([["(", l(F2, { shouldBreak: true }), ", ", ...D2, ")"], c2()])] : nt2([["(", F2, ", ", ...D2, ")"], ["(", l(F2, { shouldBreak: true }), ", ", ...D2, ")"], c2()]);
}
if (hl(s, u, t)) {
let D2 = u.slice(0, -1);
if (D2.some(ne2))
return c2();
let F2;
try {
F2 = r($n(n, -1), { expandLastArg: true });
} catch (C) {
if (C instanceof Et2)
return c2();
throw C;
}
return ne2(F2) ? [ke2, nt2([["(", ...D2, l(F2, { shouldBreak: true }), ")"], c2()])] : nt2([["(", ...D2, F2, ")"], ["(", ...D2, l(F2, { shouldBreak: true }), ")"], c2()]);
}
let y2 = ["(", m2([f, ...u]), P2(p2), f, ")"];
return Ur2(e) ? y2 : l(y2, { shouldBreak: u.some(ne2) || o });
}
function gr2(e, t = false) {
return se2(e) && (e.properties.length > 0 || T2(e)) || q2(e) && (e.elements.length > 0 || T2(e)) || e.type === "TSTypeAssertion" && gr2(e.expression) || Ae2(e) && gr2(e.expression) || e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && (!e.returnType || !e.returnType.typeAnnotation || e.returnType.typeAnnotation.type !== "TSTypeReference" || bl(e.body)) && (e.body.type === "BlockStatement" || e.body.type === "ArrowFunctionExpression" && gr2(e.body, true) || se2(e.body) || q2(e.body) || !t && (M2(e.body) || e.body.type === "ConditionalExpression") || H2(e.body)) || e.type === "DoExpression" || e.type === "ModuleExpression";
}
function hl(e, t, r) {
let n = N(0, e, -1);
if (e.length === 1) {
let i = N(0, t, -1);
if (i.label?.embed && i.label?.hug !== false)
return true;
}
let s = N(0, e, -2);
return !T2(n, x.Leading) && !T2(n, x.Trailing) && gr2(n) && (!s || s.type !== n.type) && (e.length !== 2 || s.type !== "ArrowFunctionExpression" || !q2(n)) && !(e.length > 1 && gs2(n, r));
}
function Sl(e) {
if (e.length !== 2)
return false;
let [t, r] = e;
return t.type === "ModuleExpression" && Pl(r) ? true : !T2(t) && (t.type === "FunctionExpression" || t.type === "ArrowFunctionExpression" && t.body.type === "BlockStatement") && r.type !== "FunctionExpression" && r.type !== "ArrowFunctionExpression" && r.type !== "ConditionalExpression" && Uo(r) && !gr2(r);
}
function Uo(e) {
if (e.type === "ParenthesizedExpression")
return Uo(e.expression);
if (Ae2(e) || e.type === "TypeCastExpression") {
let { typeAnnotation: t } = e;
if (t.type === "TypeAnnotation" && (t = t.typeAnnotation), t.type === "TSArrayType" && (t = t.elementType, t.type === "TSArrayType" && (t = t.elementType)), t.type === "GenericTypeAnnotation" || t.type === "TSTypeReference") {
let r = t.type === "GenericTypeAnnotation" ? t.typeParameters : t.typeArguments;
r?.params.length === 1 && (t = r.params[0]);
}
return Vt2(t) && Re2(e.expression, 1);
}
return Dt2(e) && le2(e).length > 1 ? false : Te2(e) ? Re2(e.left, 1) && Re2(e.right, 1) : Xn(e) || Re2(e);
}
function Bl(e) {
return e.length === 2 ? qo(e, 0) : e.length === 3 ? e[0].type === "Identifier" && qo(e, 1) : false;
}
function qo(e, t) {
let r = e[t], n = e[t + 1];
return r.type === "ArrowFunctionExpression" && K2(r).length === 0 && r.body.type === "BlockStatement" && n.type === "ArrayExpression" && !e.some((s) => T2(s));
}
function bl(e) {
return e.type === "BlockStatement" && (e.body.some((t) => t.type !== "EmptyStatement") || T2(e, x.Dangling));
}
function Pl(e) {
if (!(e.type === "ObjectExpression" && e.properties.length === 1))
return false;
let [t] = e.properties;
return Oe2(t) ? !t.computed && (t.key.type === "Identifier" && t.key.name === "type" || V2(t.key) && t.key.value === "type") && V2(t.value) && t.value.value === "module" : false;
}
var hr2 = gl;
function Yo(e, t, r) {
return [r("object"), l(m2([f, hs2(e, t, r)]))];
}
function hs2(e, t, r) {
return ["::", r("callee")];
}
var kl = (e) => ((e.type === "ChainExpression" || e.type === "TSNonNullExpression") && (e = e.expression), M2(e) && le2(e).length > 0);
function Il(e) {
let { node: t, ancestors: r } = e;
for (let n of r) {
if (!(J2(n) && n.object === t || n.type === "TSNonNullExpression" && n.expression === t))
return n.type === "NewExpression" && n.callee === t;
t = n;
}
return false;
}
function Ho(e, t, r) {
let n = r("object"), s = Ss2(e, t, r), { node: i } = e, o = e.findAncestor((c2) => !(J2(c2) || c2.type === "TSNonNullExpression")), u = e.findAncestor((c2) => !(c2.type === "ChainExpression" || c2.type === "TSNonNullExpression")), p2 = o.type === "BindExpression" || o.type === "AssignmentExpression" && o.left.type !== "Identifier" || Il(e) || i.computed || i.object.type === "Identifier" && i.property.type === "Identifier" && !J2(u) || (u.type === "AssignmentExpression" || u.type === "VariableDeclarator") && (kl(i.object) || n.label?.memberChain);
return pt2(n.label, [n, p2 ? s : l(m2([f, s]))]);
}
function Ss2(e, t, r) {
let n = r("property"), { node: s } = e, i = X2(e);
return s.computed ? !s.property || Ce2(s.property) ? [i, "[", n, "]"] : l([i, "[", m2([f, n]), f, "]"]) : [i, ".", n];
}
function Xo(e, t, r) {
if (e.node.type === "ChainExpression")
return e.call(() => Xo(e, t, r), "expression");
let n = (e.parent.type === "ChainExpression" ? e.grandparent : e.parent).type === "ExpressionStatement", s = [];
function i(_2) {
let { originalText: re2 } = t, ae = at2(re2, I(_2));
return re2.charAt(ae) === ")" ? ae !== false && Yt2(re2, ae + 1) : oe2(_2, t);
}
function o() {
let { node: _2 } = e;
if (_2.type === "ChainExpression")
return e.call(o, "expression");
if (M2(_2) && (Tt2(_2.callee) || M2(_2.callee))) {
let re2 = i(_2);
s.unshift({ node: _2, hasTrailingEmptyLine: re2, printed: [De2(e, [X2(e), r("typeArguments"), hr2(e, t, r)], t), re2 ? E2 : ""] }), e.call(o, "callee");
} else
Tt2(_2) ? (s.unshift({ node: _2, needsParens: ge2(e, t), printed: De2(e, J2(_2) ? Ss2(e, t, r) : hs2(e, t, r), t) }), e.call(o, "object")) : _2.type === "TSNonNullExpression" ? (s.unshift({ node: _2, printed: De2(e, "!", t) }), e.call(o, "expression")) : s.unshift({ node: _2, printed: r() });
}
let { node: u } = e;
s.unshift({ node: u, printed: [X2(e), r("typeArguments"), hr2(e, t, r)] }), u.callee && e.call(o, "callee");
let p2 = [], c2 = [s[0]], y2 = 1;
for (;y2 < s.length && (s[y2].node.type === "TSNonNullExpression" || M2(s[y2].node) || J2(s[y2].node) && s[y2].node.computed && Ce2(s[y2].node.property)); ++y2)
c2.push(s[y2]);
if (!M2(s[0].node))
for (;y2 + 1 < s.length && (Tt2(s[y2].node) && Tt2(s[y2 + 1].node)); ++y2)
c2.push(s[y2]);
p2.push(c2), c2 = [];
let D2 = false;
for (;y2 < s.length; ++y2) {
if (D2 && Tt2(s[y2].node)) {
if (s[y2].node.computed && Ce2(s[y2].node.property)) {
c2.push(s[y2]);
continue;
}
p2.push(c2), c2 = [], D2 = false;
}
(M2(s[y2].node) || s[y2].node.type === "ImportExpression") && (D2 = true), c2.push(s[y2]), T2(s[y2].node, x.Trailing) && (p2.push(c2), c2 = [], D2 = false);
}
c2.length > 0 && p2.push(c2);
function F2(_2) {
return /^[A-Z]|^[$_]+$/u.test(_2);
}
function C(_2) {
return _2.length <= t.tabWidth;
}
function d(_2) {
let re2 = _2[1][0]?.node.computed;
if (_2[0].length === 1) {
let it2 = _2[0][0].node;
return it2.type === "ThisExpression" || it2.type === "Identifier" && (F2(it2.name) || n && C(it2.name) || re2);
}
let ae = N(0, _2[0], -1).node;
return J2(ae) && ae.property.type === "Identifier" && (F2(ae.property.name) || re2);
}
let b2 = p2.length >= 2 && !T2(p2[1][0].node) && d(p2);
function B2(_2) {
let re2 = _2.map((ae) => ae.printed);
return _2.length > 0 && N(0, _2, -1).needsParens ? ["(", ...re2, ")"] : re2;
}
function O2(_2) {
return _2.length === 0 ? "" : m2([E2, L2(E2, _2.map(B2))]);
}
let h = p2.map(B2), g2 = h, S2 = b2 ? 3 : 2, j2 = p2.flat(), U2 = j2.slice(1, -1).some((_2) => T2(_2.node, x.Leading)) || j2.slice(0, -1).some((_2) => T2(_2.node, x.Trailing)) || p2[S2] && T2(p2[S2][0].node, x.Leading);
if (p2.length <= S2 && !U2 && !p2.some((_2) => N(0, _2, -1).hasTrailingEmptyLine))
return Ur2(e) ? g2 : l(g2);
let fe2 = N(0, p2[b2 ? 1 : 0], -1).node, Y2 = !M2(fe2) && i(fe2), z2 = [B2(p2[0]), b2 ? p2.slice(1, 2).map(B2) : "", Y2 ? E2 : "", O2(p2.slice(b2 ? 2 : 1))], ee2 = s.map(({ node: _2 }) => _2).filter(M2);
function Ie2() {
let _2 = N(0, N(0, p2, -1), -1).node, re2 = N(0, h, -1);
return M2(_2) && ne2(re2) && ee2.slice(0, -1).some((ae) => ae.arguments.some(Ht2));
}
let st2;
return U2 || ee2.length > 2 && ee2.some((_2) => !_2.arguments.every((re2) => Re2(re2))) || h.slice(0, -1).some(ne2) || Ie2() ? st2 = l(z2) : st2 = [ne2(g2) || Y2 ? ke2 : "", nt2([g2, z2])], pt2({ memberChain: true }, st2);
}
var Vo = Xo;
function vt2(e, t, r) {
let { node: n } = e, s = n.type === "NewExpression", i = X2(e), o = le2(n), u = n.type !== "TSImportType" && n.typeArguments ? r("typeArguments") : "", p2 = o.length === 1 && Wr2(o[0], t.originalText);
if (p2 || Ol(e) || wl(e) || It2(n, e.parent)) {
let D2 = [];
if ($t2(e, () => {
D2.push(r());
}), !(p2 && D2[0].label?.embed))
return [s ? "new " : "", $o(e, r), i, u, "(", L2(", ", D2), ")"];
}
let c2 = n.type === "ImportExpression" || n.type === "TSImportType" || n.type === "TSExternalModuleReference";
if (!c2 && !s && Tt2(n.callee) && !e.call(() => ge2(e, t), "callee", ...n.callee.type === "ChainExpression" ? ["expression"] : []))
return Vo(e, t, r);
let y2 = [s ? "new " : "", $o(e, r), i, u, hr2(e, t, r)];
return c2 || M2(n.callee) ? l(y2) : y2;
}
function $o(e, t) {
let { node: r } = e;
return r.type === "ImportExpression" ? `import${r.phase ? `.${r.phase}` : ""}` : r.type === "TSImportType" ? "import" : r.type === "TSExternalModuleReference" ? "require" : t("callee");
}
var Ll = ["require", "require.resolve", "require.resolve.paths", "import.meta.resolve"];
function Ol(e) {
let { node: t } = e;
if (!(t.type === "ImportExpression" || t.type === "TSImportType" || t.type === "TSExternalModuleReference" || t.type === "CallExpression" && !t.optional && Pt2(t.callee, Ll)))
return false;
let r = le2(t);
return r.length === 1 && V2(r[0]) && !T2(r[0]);
}
function wl(e) {
let { node: t } = e;
if (t.type !== "CallExpression" || t.optional || t.callee.type !== "Identifier")
return false;
let r = le2(t);
return t.callee.name === "require" ? (r.length === 1 && V2(r[0]) || r.length > 1) && !T2(r[0]) : t.callee.name === "define" && e.parent.type === "ExpressionStatement" ? r.length === 1 || r.length === 2 && r[0].type === "ArrayExpression" || r.length === 3 && V2(r[0]) && r[1].type === "ArrayExpression" : false;
}
function ht2(e, t, r, n, s, i) {
let o = _l(e, t, r, n, i), u = i ? r(i, { assignmentLayout: o }) : "";
switch (o) {
case "break-after-operator":
return l([l(n), s, l(m2([A, u]))]);
case "never-break-after-operator":
return l([l(n), s, " ", u]);
case "fluid": {
let p2 = Symbol("assignment");
return l([l(n), s, l(m2(A), { id: p2 }), je2, yt2(u, { groupId: p2 })]);
}
case "break-lhs":
return l([n, s, " ", l(u)]);
case "chain":
return [l(n), s, A, u];
case "chain-tail":
return [l(n), s, m2([A, u])];
case "chain-tail-arrow-chain":
return [l(n), s, u];
case "only-left":
return n;
}
}
function zo(e, t, r) {
let { node: n } = e;
return ht2(e, t, r, r("left"), [" ", n.operator], "right");
}
function Zo(e, t, r) {
return ht2(e, t, r, r("id"), " =", "init");
}
function _l(e, t, r, n, s) {
let { node: i } = e, o = i[s];
if (!o)
return "only-left";
let u = !pn(o);
if (e.match(pn, eu, (F2) => !u || F2.type !== "ExpressionStatement" && F2.type !== "VariableDeclaration"))
return u ? o.type === "ArrowFunctionExpression" && o.body.type === "ArrowFunctionExpression" ? "chain-tail-arrow-chain" : "chain-tail" : "chain";
if (!u && pn(o.right) || Ee2(t.originalText, o))
return "break-after-operator";
if (i.type === "ImportAttribute" || o.type === "CallExpression" && o.callee.name === "require" || t.parser === "json5" || t.parser === "jsonc" || t.parser === "json")
return "never-break-after-operator";
let y2 = Xi2(n);
if (Nl(i) || Rl(i) || Bs2(i) && y2)
return "break-lhs";
let D2 = Jl(i, n, t);
return e.call(() => Ml(e, t, r, D2), s) ? "break-after-operator" : jl(i) ? "break-lhs" : !y2 && (D2 || o.type === "TemplateLiteral" || o.type === "TaggedTemplateExpression" || yi2(o) || Ce2(o) || o.type === "ClassExpression") ? "never-break-after-operator" : "fluid";
}
function Ml(e, t, r, n) {
let s = e.node;
if (Te2(s) && !er2(s))
return true;
switch (s.type) {
case "StringLiteralTypeAnnotation":
case "SequenceExpression":
return true;
case "TSConditionalType":
case "ConditionalTypeAnnotation":
if (!t.experimentalTernaries && !ql(s))
break;
return true;
case "ConditionalExpression": {
if (!t.experimentalTernaries) {
let { test: c2 } = s;
return Te2(c2) && !er2(c2);
}
let { consequent: u, alternate: p2 } = s;
return u.type === "ConditionalExpression" || p2.type === "ConditionalExpression";
}
case "ClassExpression":
return R2(s.decorators);
}
if (n)
return false;
let i = s, o = [];
for (;; )
if (i.type === "UnaryExpression" || i.type === "AwaitExpression" || i.type === "YieldExpression" && i.argument !== null)
i = i.argument, o.push("argument");
else if (i.type === "TSNonNullExpression")
i = i.expression, o.push("expression");
else
break;
return !!(V2(i) || e.call(() => tu(e, t, r), ...o));
}
function Nl(e) {
if (eu(e)) {
let t = e.left || e.id;
return t.type === "ObjectPattern" && t.properties.length > 2 && t.properties.some((r) => Oe2(r) && (!r.shorthand || r.value?.type === "AssignmentPattern"));
}
return false;
}
function pn(e) {
return e.type === "AssignmentExpression";
}
function eu(e) {
return pn(e) || e.type === "VariableDeclarator";
}
function jl(e) {
let t = vl(e);
if (R2(t)) {
let r = e.type === "TSTypeAliasDeclaration" ? "constraint" : "bound";
if (t.length > 1 && t.some((n) => n[r] || n.default))
return true;
}
return false;
}
function vl(e) {
if (Cr2(e))
return e.typeParameters?.params;
}
function Rl(e) {
if (e.type !== "VariableDeclarator")
return false;
let { typeAnnotation: t } = e.id;
if (!t || !t.typeAnnotation)
return false;
let r = Ko(t.typeAnnotation);
return R2(r) && r.length > 1 && r.some((n) => R2(Ko(n)) || n.type === "TSConditionalType");
}
function Bs2(e) {
return e.type === "VariableDeclarator" && e.init?.type === "ArrowFunctionExpression";
}
function Ko(e) {
let t;
switch (e.type) {
case "GenericTypeAnnotation":
t = e.typeParameters;
break;
case "TSTypeReference":
t = e.typeArguments;
break;
}
return t?.params;
}
function tu(e, t, r, n = false) {
let { node: s } = e, i = () => tu(e, t, r, true);
if (s.type === "ChainExpression" || s.type === "TSNonNullExpression")
return e.call(i, "expression");
if (M2(s)) {
if (vt2(e, t, r).label?.memberChain)
return false;
let u = le2(s);
return !(u.length === 0 || u.length === 1 && Fr2(u[0], t)) || Gl(s, r) ? false : e.call(i, "callee");
}
return J2(s) ? e.call(i, "object") : n && (s.type === "Identifier" || s.type === "ThisExpression");
}
function Jl(e, t, r) {
return Oe2(e) ? (t = Qt2(t), typeof t == "string" && ot2(t) < r.tabWidth + 3) : false;
}
function Gl(e, t) {
let r = Wl(e);
if (R2(r)) {
if (r.length > 1)
return true;
if (r.length === 1) {
let s = r[0];
if (Se2(s) || xt2(s) || s.type === "TSTypeLiteral" || s.type === "ObjectTypeAnnotation")
return true;
}
let n = e.typeParameters ? "typeParameters" : "typeArguments";
if (ne2(t(n)))
return true;
}
return false;
}
function Wl(e) {
return (e.typeParameters ?? e.typeArguments)?.params;
}
function Qo(e) {
switch (e.type) {
case "FunctionTypeAnnotation":
case "GenericTypeAnnotation":
case "TSFunctionType":
return !!e.typeParameters;
case "TSTypeReference":
return !!e.typeArguments;
default:
return false;
}
}
function ql(e) {
return Qo(e.checkType) || Qo(e.extendsType);
}
var cn = new WeakMap;
function nu(e) {
return /^(?:\d+|\d+\.\d+)$/u.test(e);
}
function ru(e, t) {
return t.parser === "json" || t.parser === "jsonc" || !V2(e.key) || ut2(pe2(e.key), t).slice(1, -1) !== e.key.value ? false : !!(vo(e.key.value) && !(t.parser === "babel-ts" && e.type === "ClassProperty" || (t.parser === "typescript" || t.parser === "oxc-ts") && e.type === "PropertyDefinition") || nu(e.key.value) && String(Number(e.key.value)) === e.key.value && e.type !== "ImportAttribute" && (t.parser === "babel" || t.parser === "acorn" || t.parser === "oxc" || t.parser === "espree" || t.parser === "meriyah" || t.parser === "__babel_estree"));
}
function Ul(e, t) {
let { key: r } = e.node;
return (r.type === "Identifier" || Ce2(r) && nu(dt2(pe2(r))) && String(r.value) === dt2(pe2(r)) && !(t.parser === "typescript" || t.parser === "babel-ts" || t.parser === "oxc-ts")) && (t.parser === "json" || t.parser === "jsonc" || t.quoteProps === "consistent" && cn.get(e.parent));
}
function Ct2(e, t, r) {
let { node: n } = e;
if (n.computed)
return ["[", r("key"), "]"];
let { parent: s } = e, { key: i } = n;
if (t.quoteProps === "consistent" && !cn.has(s)) {
let o = e.siblings.some((u) => !u.computed && V2(u.key) && !ru(u, t));
cn.set(s, o);
}
if (Ul(e, t)) {
let o = ut2(JSON.stringify(i.type === "Identifier" ? i.name : i.value.toString()), t);
return e.call(() => De2(e, o, t), "key");
}
return ru(n, t) && (t.quoteProps === "as-needed" || t.quoteProps === "consistent" && !cn.get(s)) ? e.call(() => De2(e, /^\d/u.test(i.value) ? dt2(i.value) : i.value, t), "key") : r("key");
}
function ln(e, t, r) {
let { node: n } = e;
return n.shorthand ? r("value") : ht2(e, t, r, Ct2(e, t, r), ":", "value");
}
var Yl = ({ node: e, key: t, parent: r }) => t === "value" && e.type === "FunctionExpression" && (r.type === "ObjectMethod" || r.type === "ClassMethod" || r.type === "ClassPrivateMethod" || r.type === "MethodDefinition" || r.type === "TSAbstractMethodDefinition" || r.type === "TSDeclareMethod" || r.type === "Property" && mt2(r));
function mn(e, t, r, n) {
if (Yl(e))
return Dn(e, t, r);
let { node: s } = e, i = false;
if ((s.type === "FunctionDeclaration" || s.type === "FunctionExpression") && n?.expandLastArg) {
let { parent: y2 } = e;
M2(y2) && (le2(y2).length > 1 || K2(s).every((D2) => D2.type === "Identifier" && !D2.typeAnnotation)) && (i = true);
}
let o = [Q2(e), s.async ? "async " : "", `function${s.generator ? "*" : ""} `, s.id ? r("id") : ""], u = Ke2(e, t, r, i), p2 = rr2(e, r), c2 = lt2(s, p2);
return o.push(r("typeParameters"), l([c2 ? l(u) : u, p2]), s.body ? " " : "", r("body")), t.semi && (s.declare || !s.body) && o.push(";"), o;
}
function Sr2(e, t, r) {
let { node: n } = e, { kind: s } = n, i = n.value || n, o = [];
return !s || s === "init" || s === "method" || s === "constructor" ? i.async && o.push("async ") : (Le2(s === "get" || s === "set"), o.push(s, " ")), i.generator && o.push("*"), o.push(Ct2(e, t, r), n.optional ? "?" : "", n === i ? Dn(e, t, r) : r("value")), o;
}
function Dn(e, t, r) {
let { node: n } = e, s = Ke2(e, t, r), i = rr2(e, r), o = jo(n), u = lt2(n, i), p2 = [r("typeParameters"), l([o ? l(s, { shouldBreak: true }) : u ? l(s) : s, i])];
return n.body ? p2.push(" ", r("body")) : p2.push(t.semi ? ";" : ""), p2;
}
function Hl(e) {
let t = K2(e);
return t.length === 1 && !e.typeParameters && !T2(e, x.Dangling) && t[0].type === "Identifier" && !t[0].typeAnnotation && !T2(t[0]) && !t[0].optional && !e.predicate && !e.returnType;
}
function fn2(e, t) {
if (t.arrowParens === "always")
return false;
if (t.arrowParens === "avoid") {
let { node: r } = e;
return Hl(r);
}
return false;
}
function rr2(e, t) {
let { node: r } = e, s = [G2(e, t, "returnType")];
return r.predicate && s.push(t("predicate")), s;
}
function su(e, t, r) {
let { node: n } = e, s = [];
if (n.argument) {
let u = r("argument");
Xl(t, n.argument) ? u = ["(", m2([E2, u]), E2, ")"] : (Te2(n.argument) || t.experimentalTernaries && n.argument.type === "ConditionalExpression" && (n.argument.consequent.type === "ConditionalExpression" || n.argument.alternate.type === "ConditionalExpression")) && (u = l([P2("("), m2([f, u]), f, P2(")")])), s.push(" ", u);
}
let i = T2(n, x.Dangling), o = t.semi && i && T2(n, x.Last | x.Line);
return o && s.push(";"), i && s.push(" ", v2(e, t)), !o && t.semi && s.push(";"), s;
}
function iu(e, t, r) {
return ["return", su(e, t, r)];
}
function ou(e, t, r) {
return ["throw", su(e, t, r)];
}
function Xl(e, t) {
if (Ee2(e.originalText, t) || T2(t, x.Leading, (r) => ue2(e.originalText, w2(r), I(r))) && !H2(t))
return true;
if (Xt2(t)) {
let r = t, n;
for (;n = mi2(r); )
if (r = n, Ee2(e.originalText, r))
return true;
}
return false;
}
function uu(e, t) {
if (t.semi || Ps2(e, t) || Is2(e, t) || ks2(e, t))
return false;
let { node: r, key: n, parent: s } = e;
return !!(r.type === "ExpressionStatement" && (n === "body" && (s.type === "Program" || s.type === "BlockStatement" || s.type === "StaticBlock" || s.type === "TSModuleBlock") || n === "consequent" && s.type === "SwitchCase") && e.call(() => au(e, t), "expression"));
}
function au(e, t) {
let { node: r } = e;
switch (r.type) {
case "ParenthesizedExpression":
case "TypeCastExpression":
case "ArrayExpression":
case "ArrayPattern":
case "TemplateLiteral":
case "TemplateElement":
case "RegExpLiteral":
return true;
case "ArrowFunctionExpression":
if (!fn2(e, t))
return true;
break;
case "UnaryExpression": {
let { prefix: n, operator: s } = r;
if (n && (s === "+" || s === "-"))
return true;
break;
}
case "BindExpression":
if (!r.object)
return true;
break;
case "Literal":
if (r.regex)
return true;
break;
default:
if (H2(r))
return true;
}
return ge2(e, t) ? true : Xt2(r) ? e.call(() => au(e, t), ...Rr2(r)) : false;
}
var bs2 = ({ node: e, parent: t }) => e.type === "ExpressionStatement" && t.type === "Program" && t.body.length === 1 && (Array.isArray(t.directives) && t.directives.length === 0 || !t.directives);
function Ps2(e, t) {
return (t.parentParser === "markdown" || t.parentParser === "mdx") && bs2(e) && H2(e.node.expression);
}
function ks2(e, t) {
return t.__isHtmlInlineEventHandler && bs2(e);
}
function Is2(e, t) {
return (t.parser === "__vue_event_binding" || t.parser === "__vue_ts_event_binding") && bs2(e);
}
var Ls2 = class extends Error {
name = "UnexpectedNodeError";
constructor(t, r, n = "type") {
super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`), this.node = t;
}
};
var Qe2 = Ls2;
function Os2(e) {
if (typeof e != "string")
throw new TypeError("Expected a string");
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
}
var ws2 = class {
#e;
constructor(t) {
this.#e = new Set(t);
}
getLeadingWhitespaceCount(t) {
let r = this.#e, n = 0;
for (let s = 0;s < t.length && r.has(t.charAt(s)); s++)
n++;
return n;
}
getTrailingWhitespaceCount(t) {
let r = this.#e, n = 0;
for (let s = t.length - 1;s >= 0 && r.has(t.charAt(s)); s--)
n++;
return n;
}
getLeadingWhitespace(t) {
let r = this.getLeadingWhitespaceCount(t);
return t.slice(0, r);
}
getTrailingWhitespace(t) {
let r = this.getTrailingWhitespaceCount(t);
return t.slice(t.length - r);
}
hasLeadingWhitespace(t) {
return this.#e.has(t.charAt(0));
}
hasTrailingWhitespace(t) {
return this.#e.has(N(0, t, -1));
}
trimStart(t) {
let r = this.getLeadingWhitespaceCount(t);
return t.slice(r);
}
trimEnd(t) {
let r = this.getTrailingWhitespaceCount(t);
return t.slice(0, t.length - r);
}
trim(t) {
return this.trimEnd(this.trimStart(t));
}
split(t, r = false) {
let n = `[${Os2([...this.#e].join(""))}]+`, s = new RegExp(r ? `(${n})` : n, "u");
return t.split(s);
}
hasWhitespaceCharacter(t) {
let r = this.#e;
return Array.prototype.some.call(t, (n) => r.has(n));
}
hasNonWhitespaceCharacter(t) {
let r = this.#e;
return Array.prototype.some.call(t, (n) => !r.has(n));
}
isWhitespaceOnly(t) {
let r = this.#e;
return Array.prototype.every.call(t, (n) => r.has(n));
}
#t(t) {
let r = Number.POSITIVE_INFINITY;
for (let n of t.split(`
`)) {
if (n.length === 0)
continue;
let s = this.getLeadingWhitespaceCount(n);
if (s === 0)
return 0;
n.length !== s && s < r && (r = s);
}
return r === Number.POSITIVE_INFINITY ? 0 : r;
}
dedentString(t) {
let r = this.#t(t);
return r === 0 ? t : t.split(`
`).map((n) => n.slice(r)).join(`
`);
}
};
var pu = ws2;
var yn = new pu(`
\r `);
var _s2 = (e) => e === "" || e === A || e === E2 || e === f;
function Vl(e, t, r) {
let { node: n } = e;
if (n.type === "JSXElement" && pm(n))
return [r("openingElement"), r("closingElement")];
let s = n.type === "JSXElement" ? r("openingElement") : r("openingFragment"), i = n.type === "JSXElement" ? r("closingElement") : r("closingFragment");
if (n.children.length === 1 && n.children[0].type === "JSXExpressionContainer" && (n.children[0].expression.type === "TemplateLiteral" || n.children[0].expression.type === "TaggedTemplateExpression"))
return [s, ...e.map(r, "children"), i];
n.children = n.children.map((g2) => cm(g2) ? { type: "JSXText", value: " ", raw: " " } : g2);
let o = n.children.some(H2), u = n.children.filter((g2) => g2.type === "JSXExpressionContainer").length > 1, p2 = n.type === "JSXElement" && n.openingElement.attributes.length > 1, c2 = ne2(s) || o || p2 || u, y2 = e.parent.rootMarker === "mdx", D2 = t.singleQuote ? "{' '}" : '{" "}', F2 = y2 ? A : P2([D2, f], " "), C = n.openingElement?.name?.name === "fbt", d = $l(e, t, r, F2, C), b2 = n.children.some((g2) => Br2(g2));
for (let g2 = d.length - 2;g2 >= 0; g2--) {
let S2 = d[g2] === "" && d[g2 + 1] === "", j2 = d[g2] === E2 && d[g2 + 1] === "" && d[g2 + 2] === E2, U2 = (d[g2] === f || d[g2] === E2) && d[g2 + 1] === "" && d[g2 + 2] === F2, fe2 = d[g2] === F2 && d[g2 + 1] === "" && (d[g2 + 2] === f || d[g2 + 2] === E2), Y2 = d[g2] === F2 && d[g2 + 1] === "" && d[g2 + 2] === F2, z2 = d[g2] === f && d[g2 + 1] === "" && d[g2 + 2] === E2 || d[g2] === E2 && d[g2 + 1] === "" && d[g2 + 2] === f;
j2 && b2 || S2 || U2 || Y2 || z2 ? d.splice(g2, 2) : fe2 && d.splice(g2 + 1, 2);
}
for (;d.length > 0 && _s2(N(0, d, -1)); )
d.pop();
for (;d.length > 1 && _s2(d[0]) && _s2(d[1]); )
d.shift(), d.shift();
let B2 = [""];
for (let [g2, S2] of d.entries()) {
if (S2 === F2) {
if (g2 === 1 && Vi2(d[g2 - 1])) {
if (d.length === 2) {
B2.push([B2.pop(), D2]);
continue;
}
B2.push([D2, E2], "");
continue;
} else if (g2 === d.length - 1) {
B2.push([B2.pop(), D2]);
continue;
} else if (d[g2 - 1] === "" && d[g2 - 2] === E2) {
B2.push([B2.pop(), D2]);
continue;
}
}
g2 % 2 === 0 ? B2.push([B2.pop(), S2]) : B2.push(S2, ""), ne2(S2) && (c2 = true);
}
let O2 = b2 ? zr2(B2) : l(B2, { shouldBreak: true });
if (t.cursorNode?.type === "JSXText" && n.children.includes(t.cursorNode) ? O2 = [Tr2, O2, Tr2] : t.nodeBeforeCursor?.type === "JSXText" && n.children.includes(t.nodeBeforeCursor) ? O2 = [Tr2, O2] : t.nodeAfterCursor?.type === "JSXText" && n.children.includes(t.nodeAfterCursor) && (O2 = [O2, Tr2]), y2)
return O2;
let h = l([s, m2([E2, O2]), E2, i]);
return c2 ? h : nt2([l([s, ...d, i]), h]);
}
function $l(e, t, r, n, s) {
let i = "", o = [i];
function u(c2) {
i = c2, o.push([o.pop(), c2]);
}
function p2(c2) {
c2 !== "" && (i = c2, o.push(c2, ""));
}
return e.each(({ node: c2, next: y2 }) => {
if (c2.type === "JSXText") {
let D2 = pe2(c2);
if (Br2(c2)) {
let F2 = yn.split(D2, true);
F2[0] === "" && (F2.shift(), /\n/u.test(F2[0]) ? p2(lu(s, F2[1], c2, y2)) : p2(n), F2.shift());
let C;
if (N(0, F2, -1) === "" && (F2.pop(), C = F2.pop()), F2.length === 0)
return;
for (let [d, b2] of F2.entries())
d % 2 === 1 ? p2(A) : u(b2);
C !== undefined ? /\n/u.test(C) ? p2(lu(s, i, c2, y2)) : p2(n) : p2(cu(s, i, c2, y2));
} else
/\n/u.test(D2) ? D2.match(/\n/gu).length > 1 && p2(E2) : p2(n);
} else {
let D2 = r();
if (u(D2), y2 && Br2(y2)) {
let C = yn.trim(pe2(y2)), [d] = yn.split(C);
p2(cu(s, d, c2, y2));
} else
p2(E2);
}
}, "children"), o;
}
function cu(e, t, r, n) {
return e ? "" : r.type === "JSXElement" && !r.closingElement || n?.type === "JSXElement" && !n.closingElement ? t.length === 1 ? f : E2 : f;
}
function lu(e, t, r, n) {
return e ? E2 : t.length === 1 ? r.type === "JSXElement" && !r.closingElement || n?.type === "JSXElement" && !n.closingElement ? E2 : f : E2;
}
var Kl = k(["ArrayExpression", "JSXAttribute", "JSXElement", "JSXExpressionContainer", "JSXFragment", "ExpressionStatement", "NewExpression", "CallExpression", "OptionalCallExpression", "ConditionalExpression", "JsExpressionRoot", "MatchExpressionCase"]);
function Ql(e, t, r) {
let { parent: n } = e;
if (Kl(n))
return t;
let s = zl(e), i = ge2(e, r);
return l([i ? "" : P2("("), m2([f, t]), f, i ? "" : P2(")")], { shouldBreak: s });
}
function zl(e) {
return e.match(undefined, (t, r) => r === "body" && t.type === "ArrowFunctionExpression", (t, r) => r === "arguments" && M2(t)) && (e.match(undefined, undefined, undefined, (t, r) => r === "expression" && t.type === "JSXExpressionContainer") || e.match(undefined, undefined, undefined, (t, r) => r === "expression" && t.type === "ChainExpression", (t, r) => r === "expression" && t.type === "JSXExpressionContainer"));
}
function Zl(e, t, r) {
let { node: n } = e, s = [r("name")];
if (n.value) {
let i;
if (V2(n.value)) {
let o = pe2(n.value), u = W2(0, W2(0, o.slice(1, -1), "'", "'"), """, '"'), p2 = wr2(u, t.jsxSingleQuote);
u = p2 === '"' ? W2(0, u, '"', """) : W2(0, u, "'", "'"), i = e.call(() => De2(e, qe2(p2 + u + p2), t), "value");
} else
i = r("value");
s.push("=", i);
}
return s;
}
function em(e, t, r) {
let { node: n } = e, s = (i, o) => i.type === "JSXEmptyExpression" || !T2(i) && (q2(i) || se2(i) || i.type === "ArrowFunctionExpression" || i.type === "AwaitExpression" && (s(i.argument, i) || i.argument.type === "JSXElement") || M2(i) || i.type === "ChainExpression" && M2(i.expression) || i.type === "FunctionExpression" || i.type === "TemplateLiteral" || i.type === "TaggedTemplateExpression" || i.type === "DoExpression" || H2(o) && (i.type === "ConditionalExpression" || Te2(i)));
return s(n.expression, e.parent) ? l(["{", r("expression"), je2, "}"]) : l(["{", m2([f, r("expression")]), f, je2, "}"]);
}
function tm(e, t, r) {
let { node: n } = e, s = T2(n.name) || T2(n.typeArguments);
if (n.selfClosing && n.attributes.length === 0 && !s)
return ["<", r("name"), r("typeArguments"), " />"];
if (n.attributes?.length === 1 && V2(n.attributes[0].value) && !n.attributes[0].value.value.includes(`
`) && !s && !T2(n.attributes[0]))
return l(["<", r("name"), r("typeArguments"), " ", ...e.map(r, "attributes"), n.selfClosing ? " />" : ">"]);
let i = n.attributes?.some((u) => V2(u.value) && u.value.value.includes(`
`)), o = t.singleAttributePerLine && n.attributes.length > 1 ? E2 : A;
return l(["<", r("name"), r("typeArguments"), m2(e.map(() => [o, r()], "attributes")), ...rm(n, t, s)], { shouldBreak: i });
}
function rm(e, t, r) {
return e.selfClosing ? [A, "/>"] : nm(e, t, r) ? [">"] : [f, ">"];
}
function nm(e, t, r) {
let n = e.attributes.length > 0 && T2(N(0, e.attributes, -1), x.Trailing);
return e.attributes.length === 0 && !r || (t.bracketSameLine || t.jsxBracketSameLine) && (!r || e.attributes.length > 0) && !n;
}
function sm(e, t, r) {
let { node: n } = e, s = ["</"], i = r("name");
return T2(n.name, x.Leading | x.Line) ? s.push(m2([E2, i]), E2) : T2(n.name, x.Leading | x.Block) ? s.push(" ", i) : s.push(i), s.push(">"), s;
}
function im(e, t) {
let { node: r } = e, n = T2(r), s = T2(r, x.Line), i = r.type === "JSXOpeningFragment";
return [i ? "<" : "</", m2([s ? E2 : n && !i ? " " : "", v2(e, t)]), s ? E2 : "", ">"];
}
function om(e, t, r) {
let n = De2(e, Vl(e, t, r), t);
return Ql(e, n, t);
}
function um(e, t) {
let { node: r } = e, n = T2(r, x.Line);
return [v2(e, t, { indent: n }), n ? E2 : ""];
}
function am(e, t, r) {
let { node: n } = e;
return ["{", e.call(({ node: s }) => {
let i = ["...", r()];
return T2(s) ? [m2([f, De2(e, i, t)]), f] : i;
}, n.type === "JSXSpreadAttribute" ? "argument" : "expression"), "}"];
}
function mu(e, t, r) {
let { node: n } = e;
if (n.type.startsWith("JSX"))
switch (n.type) {
case "JSXAttribute":
return Zl(e, t, r);
case "JSXIdentifier":
return n.name;
case "JSXNamespacedName":
return L2(":", [r("namespace"), r("name")]);
case "JSXMemberExpression":
return L2(".", [r("object"), r("property")]);
case "JSXSpreadAttribute":
case "JSXSpreadChild":
return am(e, t, r);
case "JSXExpressionContainer":
return em(e, t, r);
case "JSXFragment":
case "JSXElement":
return om(e, t, r);
case "JSXOpeningElement":
return tm(e, t, r);
case "JSXClosingElement":
return sm(e, t, r);
case "JSXOpeningFragment":
case "JSXClosingFragment":
return im(e, t);
case "JSXEmptyExpression":
return um(e, t);
case "JSXText":
throw new Error("JSXText should be handled by JSXElement");
default:
throw new Qe2(n, "JSX");
}
}
function pm(e) {
if (e.children.length === 0)
return true;
if (e.children.length > 1)
return false;
let t = e.children[0];
return t.type === "JSXText" && !Br2(t);
}
function Br2(e) {
return e.type === "JSXText" && (yn.hasNonWhitespaceCharacter(pe2(e)) || !/\n/u.test(pe2(e)));
}
function cm(e) {
return e.type === "JSXExpressionContainer" && V2(e.expression) && e.expression.value === " " && !T2(e.expression);
}
function Du(e) {
let { node: t, parent: r } = e;
if (!H2(t) || !H2(r))
return false;
let { index: n, siblings: s } = e, i;
for (let o = n;o > 0; o--) {
let u = s[o - 1];
if (!(u.type === "JSXText" && !Br2(u))) {
i = u;
break;
}
}
return i?.type === "JSXExpressionContainer" && i.expression.type === "JSXEmptyExpression" && Ot2(i.expression);
}
function lm(e) {
return Ot2(e.node) || Du(e);
}
var nr2 = lm;
function yu(e, t, r) {
let { node: n } = e;
if (n.type.startsWith("NG"))
switch (n.type) {
case "NGRoot":
return r("node");
case "NGPipeExpression":
return on(e, t, r);
case "NGChainedExpression":
return l(L2([";", A], e.map(() => fm(e) ? r() : ["(", r(), ")"], "expressions")));
case "NGEmptyExpression":
return "";
case "NGMicrosyntax":
return e.map(() => [e.isFirst ? "" : fu(e) ? " " : [";", A], r()], "body");
case "NGMicrosyntaxKey":
return /^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name) ? n.name : JSON.stringify(n.name);
case "NGMicrosyntaxExpression":
return [r("expression"), n.alias === null ? "" : [" as ", r("alias")]];
case "NGMicrosyntaxKeyedExpression": {
let { index: s, parent: i } = e, o = fu(e) || mm(e) || (s === 1 && (n.key.name === "then" || n.key.name === "else" || n.key.name === "as") || s === 2 && (n.key.name === "else" && i.body[s - 1].type === "NGMicrosyntaxKeyedExpression" && i.body[s - 1].key.name === "then" || n.key.name === "track")) && i.body[0].type === "NGMicrosyntaxExpression";
return [r("key"), o ? " " : ": ", r("expression")];
}
case "NGMicrosyntaxLet":
return ["let ", r("key"), n.value === null ? "" : [" = ", r("value")]];
case "NGMicrosyntaxAs":
return [r("key"), " as ", r("alias")];
default:
throw new Qe2(n, "Angular");
}
}
function fu({ node: e, index: t }) {
return e.type === "NGMicrosyntaxKeyedExpression" && e.key.name === "of" && t === 1;
}
function mm(e) {
let { node: t } = e;
return e.parent.body[1].key.name === "of" && t.type === "NGMicrosyntaxKeyedExpression" && t.key.name === "track" && t.key.type === "NGMicrosyntaxKey";
}
var Dm = k(["CallExpression", "OptionalCallExpression", "AssignmentExpression"]);
function fm({ node: e }) {
return Er2(e, Dm);
}
function Ms2(e, t, r) {
let { node: n } = e;
return l([L2(A, e.map(r, "decorators")), du(n, t) ? E2 : A]);
}
function Eu(e, t, r) {
return Cu(e.node) ? [L2(E2, e.map(r, "declaration", "decorators")), E2] : "";
}
function Fu(e, t, r) {
let { node: n, parent: s } = e, { decorators: i } = n;
if (!R2(i) || Cu(s) || nr2(e))
return "";
let o = n.type === "ClassExpression" || n.type === "ClassDeclaration" || du(n, t);
return [e.key === "declaration" && Di2(s) ? E2 : o ? ke2 : "", L2(A, e.map(r, "decorators")), A];
}
function du(e, t) {
return e.decorators.some((r) => Z2(t.originalText, I(r)));
}
function Cu(e) {
if (e.type !== "ExportDefaultDeclaration" && e.type !== "ExportNamedDeclaration" && e.type !== "DeclareExportDeclaration")
return false;
let t = e.declaration?.decorators;
return R2(t) && bt2(e, t[0]);
}
var Ns2 = new WeakMap;
function Au(e) {
return Ns2.has(e) || Ns2.set(e, e.type === "ConditionalExpression" && !ye2(e, (t) => t.type === "ObjectExpression")), Ns2.get(e);
}
var ym = (e) => e.type === "SequenceExpression";
function Tu(e, t, r, n = {}) {
let s = [], i, o = [], u = false, p2 = !n.expandLastArg && e.node.body.type === "ArrowFunctionExpression", c2;
(function O2() {
let { node: h } = e, g2 = Em(e, t, r, n);
if (s.length === 0)
s.push(g2);
else {
let { leading: S2, trailing: j2 } = Mt2(e, t);
s.push([S2, g2]), o.unshift(j2);
}
p2 && (u || (u = h.returnType && K2(h).length > 0 || h.typeParameters || K2(h).some((S2) => S2.type !== "Identifier"))), !p2 || h.body.type !== "ArrowFunctionExpression" ? (i = r("body", n), c2 = h.body) : e.call(O2, "body");
})();
let y2 = !Ee2(t.originalText, c2) && (ym(c2) || Fm(c2, i, t) || !u && Au(c2)), D2 = e.key === "callee" && Dt2(e.parent), F2 = Symbol("arrow-chain"), C = dm(e, n, { signatureDocs: s, shouldBreak: u }), d = false, b2 = false, B2 = false;
return p2 && (D2 || n.assignmentLayout) && (b2 = true, B2 = !T2(e.node, x.Leading & x.Line), d = n.assignmentLayout === "chain-tail-arrow-chain" || D2 && !y2), i = Cm(e, t, n, { bodyDoc: i, bodyComments: o, functionBody: c2, shouldPutBodyOnSameLine: y2 }), l([l(b2 ? m2([B2 ? f : "", C]) : C, { shouldBreak: d, id: F2 }), " =>", p2 ? yt2(i, { groupId: F2 }) : l(i), p2 && D2 ? P2(f, "", { groupId: F2 }) : ""]);
}
function Em(e, t, r, n) {
let { node: s } = e, i = [];
if (s.async && i.push("async "), fn2(e, t))
i.push(r(["params", 0]));
else {
let u = n.expandLastArg || n.expandFirstArg, p2 = rr2(e, r);
if (u) {
if (ne2(p2))
throw new Et2;
p2 = l(_t2(p2));
}
i.push(l([Ke2(e, t, r, u, true), p2]));
}
let o = v2(e, t, { filter(u) {
let p2 = at2(t.originalText, I(u));
return p2 !== false && t.originalText.slice(p2, p2 + 2) === "=>";
} });
return o && i.push(" ", o), i;
}
function Fm(e, t, r) {
return q2(e) || se2(e) || e.type === "ArrowFunctionExpression" || e.type === "DoExpression" || e.type === "BlockStatement" || H2(e) || t.label?.hug !== false && (t.label?.embed || Wr2(e, r.originalText));
}
function dm(e, t, { signatureDocs: r, shouldBreak: n }) {
if (r.length === 1)
return r[0];
let { parent: s, key: i } = e;
return i !== "callee" && Dt2(s) || Te2(s) ? l([r[0], " =>", m2([A, L2([" =>", A], r.slice(1))])], { shouldBreak: n }) : i === "callee" && Dt2(s) || t.assignmentLayout ? l(L2([" =>", A], r), { shouldBreak: n }) : l(m2(L2([" =>", A], r)), { shouldBreak: n });
}
function Cm(e, t, r, { bodyDoc: n, bodyComments: s, functionBody: i, shouldPutBodyOnSameLine: o }) {
let { node: u, parent: p2 } = e, c2 = r.expandLastArg && ie2(t, "all") ? P2(",") : "", y2 = (r.expandLastArg || p2.type === "JSXExpressionContainer") && !T2(u) ? f : "";
return o && Au(i) ? [" ", l([P2("", "("), m2([f, n]), P2("", ")"), c2, y2]), s] : o ? [" ", n, s] : [m2([A, n, s]), c2, y2];
}
var Am = Array.prototype.findLast ?? function(e) {
for (let t = this.length - 1;t >= 0; t--) {
let r = this[t];
if (e(r, t, this))
return r;
}
};
var Tm = Wt2("findLast", function() {
if (Array.isArray(this))
return Am;
});
var xu = Tm;
function br2(e, t, r, n) {
let { node: s } = e, i = [], o = xu(0, s[n], (u) => u.type !== "EmptyStatement");
return e.each(({ node: u }) => {
u.type !== "EmptyStatement" && (i.push(r()), u !== o && (i.push(E2), oe2(u, t) && i.push(E2)));
}, n), i;
}
function En(e, t, r) {
let n = xm(e, t, r), { node: s, parent: i } = e;
if (s.type === "Program" && i?.type !== "ModuleExpression")
return n ? [n, E2] : "";
let o = [];
if (s.type === "StaticBlock" && o.push("static "), o.push("{"), n)
o.push(m2([E2, n]), E2);
else {
let u = e.grandparent;
i.type === "ArrowFunctionExpression" || i.type === "FunctionExpression" || i.type === "FunctionDeclaration" || i.type === "ComponentDeclaration" || i.type === "HookDeclaration" || i.type === "ObjectMethod" || i.type === "ClassMethod" || i.type === "ClassPrivateMethod" || i.type === "ForStatement" || i.type === "WhileStatement" || i.type === "DoWhileStatement" || i.type === "DoExpression" || i.type === "ModuleExpression" || i.type === "CatchClause" && !u.finalizer || i.type === "TSModuleDeclaration" || i.type === "MatchStatementCase" || s.type === "StaticBlock" || o.push(E2);
}
return o.push("}"), o;
}
function xm(e, t, r) {
let { node: n } = e, s = R2(n.directives), i = n.body.some((p2) => p2.type !== "EmptyStatement"), o = T2(n, x.Dangling);
if (!s && !i && !o)
return "";
let u = [];
return s && (u.push(br2(e, t, r, "directives")), (i || o) && (u.push(E2), oe2(N(0, n.directives, -1), t) && u.push(E2))), i && u.push(br2(e, t, r, "body")), o && u.push(v2(e, t)), u;
}
function gm(e) {
let t = new WeakMap;
return function(r) {
return t.has(r) || t.set(r, Symbol(e)), t.get(r);
};
}
var gu = gm;
function Rt2(e, t, r) {
let { node: n } = e, s = [], i = n.type === "ObjectTypeAnnotation", o = !Su(e), u = o ? A : E2, p2 = T2(n, x.Dangling), [c2, y2] = i && n.exact ? ["{|", "|}"] : "{}", D2;
if (hm(e, ({ node: F2, next: C, isLast: d }) => {
if (D2 ?? (D2 = F2), s.push(r()), o && i) {
let { parent: b2 } = e;
b2.inexact || !d ? s.push(",") : ie2(t) && s.push(P2(","));
}
!o && (Sm({ node: F2, next: C }, t) || bu({ node: F2, next: C }, t)) && s.push(";"), d || (s.push(u), oe2(F2, t) && s.push(E2));
}), p2 && s.push(v2(e, t)), n.type === "ObjectTypeAnnotation" && n.inexact) {
let F2;
T2(n, x.Dangling) ? F2 = [T2(n, x.Line) || Z2(t.originalText, I(N(0, et2(n), -1))) ? E2 : A, "..."] : F2 = [D2 ? A : "", "..."], s.push(F2);
}
if (o) {
let F2 = p2 || t.objectWrap === "preserve" && D2 && ue2(t.originalText, w2(n), w2(D2)), C;
if (s.length === 0)
C = c2 + y2;
else {
let d = t.bracketSpacing ? A : f;
C = [c2, m2([d, ...s]), d, y2];
}
return e.match(undefined, (d, b2) => b2 === "typeAnnotation", (d, b2) => b2 === "typeAnnotation", Nt2) || e.match(undefined, (d, b2) => d.type === "FunctionTypeParam" && b2 === "typeAnnotation", Nt2) ? C : l(C, { shouldBreak: F2 });
}
return [c2, s.length > 0 ? [m2([E2, s]), E2] : "", y2];
}
function Su(e) {
let { node: t } = e;
if (t.type === "ObjectTypeAnnotation") {
let { key: r, parent: n } = e;
return r === "body" && (n.type === "InterfaceDeclaration" || n.type === "DeclareInterface" || n.type === "DeclareClass");
}
return t.type === "ClassBody" || t.type === "TSInterfaceBody";
}
function hm(e, t) {
let { node: r } = e;
if (r.type === "ClassBody" || r.type === "TSInterfaceBody") {
e.each(t, "body");
return;
}
if (r.type === "TSTypeLiteral") {
e.each(t, "members");
return;
}
if (r.type === "ObjectTypeAnnotation") {
let n = ["properties", "indexers", "callProperties", "internalSlots"].flatMap((s) => e.map(({ node: i, index: o }) => ({ node: i, loc: w2(i), selector: [s, o] }), s)).sort((s, i) => s.loc - i.loc);
for (let [s, { node: i, selector: o }] of n.entries())
e.call(() => t({ node: i, next: n[s + 1]?.node, isLast: s === n.length - 1 }), ...o);
}
}
function he2(e, t) {
let { parent: r } = e;
return e.callParent(Su) ? t.semi || r.type === "ObjectTypeAnnotation" ? ";" : "" : r.type === "TSTypeLiteral" ? e.isLast ? t.semi ? P2(";") : "" : t.semi || bu({ node: e.node, next: e.next }, t) ? ";" : P2("", ";") : "";
}
var hu = k(["ClassProperty", "PropertyDefinition", "ClassPrivateProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]);
var Bu = (e) => {
if (e.computed || e.typeAnnotation)
return false;
let { type: t, name: r } = e.key;
return t === "Identifier" && (r === "static" || r === "get" || r === "set");
};
function Sm({ node: e, next: t }, r) {
if (r.semi || !hu(e))
return false;
if (!e.value && Bu(e))
return true;
if (!t || t.static || t.accessibility || t.readonly)
return false;
if (!t.computed) {
let n = t.key?.name;
if (n === "in" || n === "instanceof")
return true;
}
if (hu(t) && t.variance && !t.static && !t.declare)
return true;
switch (t.type) {
case "ClassProperty":
case "PropertyDefinition":
case "TSAbstractPropertyDefinition":
return t.computed;
case "MethodDefinition":
case "TSAbstractMethodDefinition":
case "ClassMethod":
case "ClassPrivateMethod": {
if ((t.value ? t.value.async : t.async) || t.kind === "get" || t.kind === "set")
return false;
let s = t.value ? t.value.generator : t.generator;
return !!(t.computed || s);
}
case "TSIndexSignature":
return true;
}
return false;
}
var Bm = k(["TSPropertySignature"]);
function bu({ node: e, next: t }, r) {
if (r.semi || !Bm(e))
return false;
if (Bu(e))
return true;
if (!t)
return false;
switch (t.type) {
case "TSCallSignatureDeclaration":
return true;
}
return false;
}
var bm = gu("heritageGroup");
var Pm = k(["TSInterfaceDeclaration", "DeclareInterface", "InterfaceDeclaration", "InterfaceTypeAnnotation"]);
function sr2(e, t, r) {
let { node: n } = e, s = Pm(n), i = [Q2(e), Zt2(e), s ? "interface" : "class"], o = ku(e), u = [], p2 = [];
if (n.type !== "InterfaceTypeAnnotation") {
n.id && u.push(" ");
for (let y2 of ["id", "typeParameters"])
if (n[y2]) {
let { leading: D2, trailing: F2 } = e.call(() => Mt2(e, t), y2);
u.push(D2, r(y2), m2(F2));
}
}
if (n.superClass) {
let y2 = [Lm(e, t, r), r(n.superTypeArguments ? "superTypeArguments" : "superTypeParameters")], D2 = e.call(() => ["extends ", De2(e, y2, t)], "superClass");
o ? p2.push(A, l(D2)) : p2.push(" ", D2);
} else
p2.push(vs2(e, t, r, "extends"));
p2.push(vs2(e, t, r, "mixins"), vs2(e, t, r, "implements"));
let c2;
return o ? (c2 = bm(n), i.push(l([...u, m2(p2)], { id: c2 }))) : i.push(...u, ...p2), !s && o && km(n.body) ? i.push(P2(E2, " ", { groupId: c2 })) : i.push(" "), i.push(r("body")), i;
}
function km(e) {
return e.type === "ObjectTypeAnnotation" ? ["properties", "indexers", "callProperties", "internalSlots"].some((t) => R2(e[t])) : R2(e.body);
}
function Pu(e) {
let t = e.superClass ? 1 : 0;
for (let r of ["extends", "mixins", "implements"])
if (Array.isArray(e[r]) && (t += e[r].length), t > 1)
return true;
return t > 1;
}
function Im(e) {
let { node: t } = e;
if (T2(t.id, x.Trailing) || T2(t.typeParameters, x.Trailing) || T2(t.superClass) || Pu(t))
return true;
if (t.superClass)
return e.parent.type === "AssignmentExpression" ? false : !(t.superTypeArguments ?? t.superTypeParameters) && J2(t.superClass);
let r = t.extends?.[0] ?? t.mixins?.[0] ?? t.implements?.[0];
return r ? r.type === "InterfaceExtends" && r.id.type === "QualifiedTypeIdentifier" && !r.typeParameters || (r.type === "TSClassImplements" || r.type === "TSInterfaceHeritage") && J2(r.expression) && !r.typeArguments : false;
}
var js2 = new WeakMap;
function ku(e) {
let { node: t } = e;
return js2.has(t) || js2.set(t, Im(e)), js2.get(t);
}
function vs2(e, t, r, n) {
let { node: s } = e;
if (!R2(s[n]))
return "";
let i = v2(e, t, { marker: n }), o = L2([",", A], e.map(r, n));
if (!Pu(s)) {
let u = [`${n} `, i, o];
return ku(e) ? [A, l(u)] : [" ", u];
}
return [A, i, i && E2, n, l(m2([A, o]))];
}
function Lm(e, t, r) {
let n = r("superClass"), { parent: s } = e;
return s.type === "AssignmentExpression" ? l(P2(["(", m2([f, n]), f, ")"], n)) : n;
}
function Fn(e, t, r) {
let { node: n } = e, s = [];
return R2(n.decorators) && s.push(Ms2(e, t, r)), s.push(jt2(n)), n.static && s.push("static "), s.push(Zt2(e)), n.override && s.push("override "), s.push(Sr2(e, t, r)), s;
}
function dn(e, t, r) {
let { node: n } = e, s = [];
R2(n.decorators) && s.push(Ms2(e, t, r)), s.push(Q2(e), jt2(n)), n.static && s.push("static "), s.push(Zt2(e)), n.override && s.push("override "), n.readonly && s.push("readonly "), n.variance && s.push(r("variance")), (n.type === "ClassAccessorProperty" || n.type === "AccessorProperty" || n.type === "TSAbstractAccessorProperty") && s.push("accessor "), s.push(Ct2(e, t, r), X2(e), sn(e), G2(e, r));
let i = n.type === "TSAbstractPropertyDefinition" || n.type === "TSAbstractAccessorProperty";
return [ht2(e, t, r, s, " =", i ? undefined : "value"), t.semi ? ";" : ""];
}
var Om = k(["TSAsExpression", "TSTypeAssertion", "TSNonNullExpression", "TSInstantiationExpression", "TSSatisfiesExpression"]);
function Rs2(e) {
return Om(e) ? Rs2(e.expression) : e;
}
var Iu = k(["FunctionExpression", "ArrowFunctionExpression"]);
function Lu(e) {
return e.type === "MemberExpression" || e.type === "OptionalMemberExpression" || e.type === "Identifier" && e.name !== "undefined";
}
function wm(e, t) {
if (Is2(e, t)) {
let r = Rs2(e.node.expression);
return Iu(r) || Lu(r);
}
return !(!t.semi || Ps2(e, t) || ks2(e, t));
}
function Ou(e, t, r) {
return [r("expression"), wm(e, t) ? ";" : ""];
}
function wu(e, t, r) {
if (t.__isVueBindings || t.__isVueForBindingLeft) {
let n = e.map(r, "program", "body", 0, "params");
if (n.length === 1)
return n[0];
let s = L2([",", A], n);
return t.__isVueForBindingLeft ? ["(", m2([f, l(s)]), f, ")"] : s;
}
if (t.__isEmbeddedTypescriptGenericParameters) {
let n = e.map(r, "program", "body", 0, "typeParameters", "params");
return L2([",", A], n);
}
}
function Nu(e, t) {
let { node: r } = e;
switch (r.type) {
case "RegExpLiteral":
return _u(r);
case "BigIntLiteral":
return Cn(r.extra.raw);
case "NumericLiteral":
return dt2(r.extra.raw);
case "StringLiteral":
return qe2(ut2(r.extra.raw, t));
case "NullLiteral":
return "null";
case "BooleanLiteral":
return String(r.value);
case "DirectiveLiteral":
return Mu(r.extra.raw, t);
case "Literal": {
if (r.regex)
return _u(r.regex);
if (r.bigint)
return Cn(r.raw);
let { value: n } = r;
return typeof n == "number" ? dt2(r.raw) : typeof n == "string" ? _m(e) ? Mu(r.raw, t) : qe2(ut2(r.raw, t)) : String(n);
}
}
}
function _m(e) {
if (e.key !== "expression")
return;
let { parent: t } = e;
return t.type === "ExpressionStatement" && typeof t.directive == "string";
}
function Cn(e) {
return e.toLowerCase();
}
function _u({ pattern: e, flags: t }) {
return t = [...t].sort().join(""), `/${e}/${t}`;
}
var Mm = "use strict";
function Mu(e, t) {
let r = e.slice(1, -1);
if (r === Mm || !(r.includes('"') || r.includes("'"))) {
let n = t.singleQuote ? "'" : '"';
return n + r + n;
}
return e;
}
function Nm(e, t, r) {
let n = e.originalText.slice(t, r);
for (let s of e[Symbol.for("comments")]) {
let i = w2(s);
if (i > r)
break;
let o = I(s);
if (o < t)
continue;
let u = i - t, p2 = o - t;
n = n.slice(0, u) + W2(0, n.slice(u, p2), /[^\n]/gu, " ") + n.slice(p2);
}
return n;
}
var Jt2 = Nm;
var ju = k(["ImportDeclaration", "ExportDefaultDeclaration", "ExportNamedDeclaration", "ExportAllDeclaration", "DeclareExportDeclaration", "DeclareExportAllDeclaration"]);
var jm = k(["EnumBooleanBody", "EnumNumberBody", "EnumBigIntBody", "EnumStringBody", "EnumSymbolBody"]);
function ir2(e, t, r) {
let { node: n, parent: s } = e, i = jm(n), o = n.type === "TSEnumBody" || i, u = ju(n), p2 = i && n.hasUnknownMembers, c2 = o ? "members" : u ? "attributes" : "properties", y2 = n[c2], D2 = o || n.type === "ObjectPattern" && s.type !== "FunctionDeclaration" && s.type !== "FunctionExpression" && s.type !== "ArrowFunctionExpression" && s.type !== "ObjectMethod" && s.type !== "ClassMethod" && s.type !== "ClassPrivateMethod" && s.type !== "AssignmentPattern" && s.type !== "CatchClause" && n.properties.some((B2) => B2.value && (B2.value.type === "ObjectPattern" || B2.value.type === "ArrayPattern")) || n.type !== "ObjectPattern" && t.objectWrap === "preserve" && y2.length > 0 && vm(n, y2[0], t), F2 = [], C = e.map(({ node: B2 }) => {
let O2 = [...F2, l(r())];
return F2 = [",", A], oe2(B2, t) && F2.push(E2), O2;
}, c2);
if (p2) {
let B2;
if (T2(n, x.Dangling)) {
let O2 = T2(n, x.Line);
B2 = [v2(e, t), O2 || Z2(t.originalText, I(N(0, et2(n), -1))) ? E2 : A, "..."];
} else
B2 = ["..."];
C.push([...F2, ...B2]);
}
let d = !(p2 || N(0, y2, -1)?.type === "RestElement"), b2;
if (C.length === 0) {
if (!T2(n, x.Dangling))
return ["{}", G2(e, r)];
b2 = l(["{", v2(e, t, { indent: true }), f, "}", X2(e), G2(e, r)]);
} else {
let B2 = t.bracketSpacing ? A : f;
b2 = ["{", m2([B2, ...C]), P2(d && ie2(t) ? "," : ""), B2, "}", X2(e), G2(e, r)];
}
return e.match((B2) => B2.type === "ObjectPattern" && !R2(B2.decorators), Nt2) || Je2(n) && (e.match(undefined, (B2, O2) => O2 === "typeAnnotation", (B2, O2) => O2 === "typeAnnotation", Nt2) || e.match(undefined, (B2, O2) => B2.type === "FunctionTypeParam" && O2 === "typeAnnotation", Nt2)) || !D2 && e.match((B2) => B2.type === "ObjectPattern", (B2) => B2.type === "AssignmentExpression" || B2.type === "VariableDeclarator") ? b2 : l(b2, { shouldBreak: D2 });
}
function vm(e, t, r) {
let n = r.originalText, s = w2(e), i = w2(t);
if (ju(e)) {
let o = w2(e), u = Jt2(r, o, i);
s = o + u.lastIndexOf("{");
}
return ue2(n, s, i);
}
function vu(e, t, r) {
let { node: n } = e;
return ["import", n.phase ? ` ${n.phase}` : "", Gs2(n), Gu(e, t, r), Ju(e, t, r), qu(e, t, r), t.semi ? ";" : ""];
}
var Ru = (e) => e.type === "ExportDefaultDeclaration" || e.type === "DeclareExportDeclaration" && e.default;
function An(e, t, r) {
let { node: n } = e, s = [Eu(e, t, r), Q2(e), "export", Ru(n) ? " default" : ""], { declaration: i, exported: o } = n;
return T2(n, x.Dangling) && (s.push(" ", v2(e, t)), qr2(n) && s.push(E2)), i ? s.push(" ", r("declaration")) : (s.push(Gm(n)), n.type === "ExportAllDeclaration" || n.type === "DeclareExportAllDeclaration" ? (s.push(" *"), o && s.push(" as ", r("exported"))) : s.push(Gu(e, t, r)), s.push(Ju(e, t, r), qu(e, t, r))), s.push(Jm(n, t)), s;
}
var Rm = k(["ClassDeclaration", "ComponentDeclaration", "FunctionDeclaration", "TSInterfaceDeclaration", "DeclareClass", "DeclareComponent", "DeclareFunction", "DeclareHook", "HookDeclaration", "TSDeclareFunction", "EnumDeclaration"]);
function Jm(e, t) {
return t.semi && (!e.declaration || Ru(e) && !Rm(e.declaration)) ? ";" : "";
}
function Js2(e, t = true) {
return e && e !== "value" ? `${t ? " " : ""}${e}${t ? "" : " "}` : "";
}
function Gs2(e, t) {
return Js2(e.importKind, t);
}
function Gm(e) {
return Js2(e.exportKind);
}
function Ju(e, t, r) {
let { node: n } = e;
return n.source ? [Wu(n, t) ? " from" : "", " ", r("source")] : "";
}
function Gu(e, t, r) {
let { node: n } = e;
if (!Wu(n, t))
return "";
let s = [" "];
if (R2(n.specifiers)) {
let i = [], o = [];
e.each(() => {
let u = e.node.type;
if (u === "ExportNamespaceSpecifier" || u === "ExportDefaultSpecifier" || u === "ImportNamespaceSpecifier" || u === "ImportDefaultSpecifier")
i.push(r());
else if (u === "ExportSpecifier" || u === "ImportSpecifier")
o.push(r());
else
throw new Qe2(n, "specifier");
}, "specifiers"), s.push(L2(", ", i)), o.length > 0 && (i.length > 0 && s.push(", "), o.length > 1 || i.length > 0 || n.specifiers.some((p2) => T2(p2)) ? s.push(l(["{", m2([t.bracketSpacing ? A : f, L2([",", A], o)]), P2(ie2(t) ? "," : ""), t.bracketSpacing ? A : f, "}"])) : s.push(["{", t.bracketSpacing ? " " : "", ...o, t.bracketSpacing ? " " : "", "}"]));
} else
s.push("{}");
return s;
}
function Wu(e, t) {
return e.type !== "ImportDeclaration" || R2(e.specifiers) || e.importKind === "type" ? true : Jt2(t, w2(e), w2(e.source)).trimEnd().endsWith("from");
}
function Wm(e, t) {
if (e.extra?.deprecatedAssertSyntax)
return "assert";
let r = Jt2(t, I(e.source), e.attributes?.[0] ? w2(e.attributes[0]) : I(e)).trimStart();
return r.startsWith("assert") ? "assert" : r.startsWith("with") || R2(e.attributes) ? "with" : undefined;
}
var qm = (e) => {
let { attributes: t } = e;
if (t.length !== 1)
return false;
let [r] = t, { type: n, key: s, value: i } = r;
return n === "ImportAttribute" && (s.type === "Identifier" && s.name === "type" || V2(s) && s.value === "type") && V2(i) && !T2(r) && !T2(s) && !T2(i);
};
function qu(e, t, r) {
let { node: n } = e;
if (!n.source)
return "";
let s = Wm(n, t);
if (!s)
return "";
let i = ir2(e, t, r);
return qm(n) && (i = _t2(i)), [` ${s} `, i];
}
function Uu(e, t, r) {
let { node: n } = e, { type: s } = n, i = s.startsWith("Import"), o = i ? "imported" : "local", u = i ? "local" : "exported", p2 = n[o], c2 = n[u], y2 = "", D2 = "";
return s === "ExportNamespaceSpecifier" || s === "ImportNamespaceSpecifier" ? y2 = "*" : p2 && (y2 = r(o)), c2 && !Um(n) && (D2 = r(u)), [Js2(s === "ImportSpecifier" ? n.importKind : n.exportKind, false), y2, y2 && D2 ? " as " : "", D2];
}
function Um(e) {
if (e.type !== "ImportSpecifier" && e.type !== "ExportSpecifier")
return false;
let { local: t, [e.type === "ImportSpecifier" ? "imported" : "exported"]: r } = e;
if (t.type !== r.type || !ai2(t, r))
return false;
if (V2(t))
return t.value === r.value && pe2(t) === pe2(r);
switch (t.type) {
case "Identifier":
return t.name === r.name;
default:
return false;
}
}
function or2(e, t) {
return ["...", t("argument"), G2(e, t)];
}
function Ym(e) {
let t = [e];
for (let r = 0;r < t.length; r++) {
let n = t[r];
for (let s of ["test", "consequent", "alternate"]) {
let i = n[s];
if (H2(i))
return true;
i.type === "ConditionalExpression" && t.push(i);
}
}
return false;
}
function Hm(e, t, r) {
let { node: n } = e, s = n.type === "ConditionalExpression", i = s ? "alternate" : "falseType", { parent: o } = e, u = s ? r("test") : [r("checkType"), " ", "extends", " ", r("extendsType")];
return o.type === n.type && o[i] === n ? xe2(2, u) : u;
}
var Xm = new Map([["AssignmentExpression", "right"], ["VariableDeclarator", "init"], ["ReturnStatement", "argument"], ["ThrowStatement", "argument"], ["UnaryExpression", "argument"], ["YieldExpression", "argument"], ["AwaitExpression", "argument"]]);
function Vm(e) {
let { node: t } = e;
if (t.type !== "ConditionalExpression")
return false;
let r, n = t;
for (let s = 0;!r; s++) {
let i = e.getParentNode(s);
if (i.type === "ChainExpression" && i.expression === n || M2(i) && i.callee === n || J2(i) && i.object === n || i.type === "TSNonNullExpression" && i.expression === n) {
n = i;
continue;
}
i.type === "NewExpression" && i.callee === n || Ae2(i) && i.expression === n ? (r = e.getParentNode(s + 1), n = i) : r = i;
}
return n === t ? false : r[Xm.get(r.type)] === n;
}
function Yu(e, t, r) {
let { node: n } = e, s = n.type === "ConditionalExpression", i = s ? "consequent" : "trueType", o = s ? "alternate" : "falseType", u = s ? ["test"] : ["checkType", "extendsType"], p2 = n[i], c2 = n[o], y2 = [], D2 = false, { parent: F2 } = e, C = F2.type === n.type && u.some((Y2) => F2[Y2] === n), d = F2.type === n.type && !C, b2, B2, O2 = 0;
do
B2 = b2 || n, b2 = e.getParentNode(O2), O2++;
while (b2 && b2.type === n.type && u.every((Y2) => b2[Y2] !== B2));
let h = b2 || F2, g2 = B2;
if (s && (H2(n[u[0]]) || H2(p2) || H2(c2) || Ym(g2))) {
D2 = true, d = true;
let Y2 = (ee2) => [P2("("), m2([f, ee2]), f, P2(")")], z2 = (ee2) => ee2.type === "NullLiteral" || ee2.type === "Literal" && ee2.value === null || ee2.type === "Identifier" && ee2.name === "undefined";
y2.push(" ? ", z2(p2) ? r(i) : Y2(r(i)), " : ", c2.type === n.type || z2(c2) ? r(o) : Y2(r(o)));
} else {
let Y2 = (ee2) => t.useTabs ? m2(r(ee2)) : xe2(2, r(ee2)), z2 = [A, "? ", p2.type === n.type ? P2("", "(") : "", Y2(i), p2.type === n.type ? P2("", ")") : "", A, ": ", Y2(o)];
y2.push(F2.type !== n.type || F2[o] === n || C ? z2 : t.useTabs ? Qr2(m2(z2)) : xe2(Math.max(0, t.tabWidth - 2), z2));
}
let S2 = (Y2) => F2 === h ? l(Y2) : Y2, j2 = !D2 && (J2(F2) || F2.type === "NGPipeExpression" && F2.left === n) && !F2.computed, U2 = Vm(e), fe2 = S2([Hm(e, t, r), d ? y2 : m2(y2), s && j2 && !U2 ? f : ""]);
return C || U2 ? l([m2([f, fe2]), f]) : fe2;
}
function $m(e, t) {
return (J2(t) || t.type === "NGPipeExpression" && t.left === e) && !t.computed;
}
function Km(e, t, r, n) {
return [...e.map((i) => et2(i)), et2(t), et2(r)].flat().some((i) => ce2(i) && ue2(n.originalText, w2(i), I(i)));
}
var Qm = new Map([["AssignmentExpression", "right"], ["VariableDeclarator", "init"], ["ReturnStatement", "argument"], ["ThrowStatement", "argument"], ["UnaryExpression", "argument"], ["YieldExpression", "argument"], ["AwaitExpression", "argument"]]);
function zm(e) {
let { node: t } = e;
if (t.type !== "ConditionalExpression")
return false;
let r, n = t;
for (let s = 0;!r; s++) {
let i = e.getParentNode(s);
if (i.type === "ChainExpression" && i.expression === n || M2(i) && i.callee === n || J2(i) && i.object === n || i.type === "TSNonNullExpression" && i.expression === n) {
n = i;
continue;
}
i.type === "NewExpression" && i.callee === n || Ae2(i) && i.expression === n ? (r = e.getParentNode(s + 1), n = i) : r = i;
}
return n === t ? false : r[Qm.get(r.type)] === n;
}
var Ws2 = (e) => [P2("("), m2([f, e]), f, P2(")")];
function ur2(e, t, r, n) {
if (!t.experimentalTernaries)
return Yu(e, t, r);
let { node: s } = e, i = s.type === "ConditionalExpression", o = Ue2(s), u = i ? "consequent" : "trueType", p2 = i ? "alternate" : "falseType", c2 = i ? ["test"] : ["checkType", "extendsType"], y2 = s[u], D2 = s[p2], F2 = c2.map((mr2) => s[mr2]), { parent: C } = e, d = C.type === s.type, b2 = d && c2.some((mr2) => C[mr2] === s), B2 = d && C[p2] === s, O2 = y2.type === s.type, h = D2.type === s.type, g2 = h || B2, S2 = t.tabWidth > 2 || t.useTabs, j2, U2, fe2 = 0;
do
U2 = j2 || s, j2 = e.getParentNode(fe2), fe2++;
while (j2 && j2.type === s.type && c2.every((mr2) => j2[mr2] !== U2));
let Y2 = j2 || C, z2 = n && n.assignmentLayout && n.assignmentLayout !== "break-after-operator" && (C.type === "AssignmentExpression" || C.type === "VariableDeclarator" || C.type === "ClassProperty" || C.type === "PropertyDefinition" || C.type === "ClassPrivateProperty" || C.type === "ObjectProperty" || C.type === "Property"), ee2 = (C.type === "ReturnStatement" || C.type === "ThrowStatement") && !(O2 || h), Ie2 = i && Y2.type === "JSXExpressionContainer" && e.grandparent.type !== "JSXAttribute", st2 = zm(e), _2 = $m(s, C), re2 = o && ge2(e, t), ae = S2 ? t.useTabs ? "\t" : " ".repeat(t.tabWidth - 1) : "", it2 = Km(F2, y2, D2, t) || O2 || h, Bt2 = !g2 && !d && !o && (Ie2 ? y2.type === "NullLiteral" || y2.type === "Literal" && y2.value === null : Fr2(y2, t) && Vn(s.test, 3)), Mn = g2 || B2 || o && !d || d && i && Vn(s.test, 1) || Bt2, Pr2 = [];
!O2 && T2(y2, x.Dangling) && e.call(() => {
Pr2.push(v2(e, t), E2);
}, "consequent");
let cr2 = [];
T2(s.test, x.Dangling) && e.call(() => {
cr2.push(v2(e, t));
}, "test"), !h && T2(D2, x.Dangling) && e.call(() => {
cr2.push(v2(e, t));
}, "alternate"), T2(s, x.Dangling) && cr2.push(v2(e, t));
let Vs2 = Symbol("test"), xa = Symbol("consequent"), kr2 = Symbol("test-and-consequent"), ga = i ? [Ws2(r("test")), s.test.type === "ConditionalExpression" ? ke2 : ""] : [r("checkType"), " ", "extends", " ", Ue2(s.extendsType) || s.extendsType.type === "TSMappedType" ? r("extendsType") : l(Ws2(r("extendsType")))], $s2 = l([ga, " ?"], { id: Vs2 }), ha = r(u), Ir2 = m2([O2 || Ie2 && (H2(y2) || d || g2) ? E2 : A, Pr2, ha]), Sa = Mn ? l([$s2, g2 ? Ir2 : P2(Ir2, l(Ir2, { id: xa }), { groupId: Vs2 })], { id: kr2 }) : [$s2, Ir2], Nn = r(p2), Ks2 = Bt2 ? P2(Nn, Qr2(Ws2(Nn)), { groupId: kr2 }) : Nn, lr2 = [Sa, cr2.length > 0 ? [m2([E2, cr2]), E2] : h ? E2 : Bt2 ? P2(A, " ", { groupId: kr2 }) : A, ":", h ? " " : S2 ? Mn ? P2(ae, P2(g2 || Bt2 ? " " : ae, " "), { groupId: kr2 }) : P2(ae, " ") : " ", h ? Ks2 : l([m2(Ks2), Ie2 && !Bt2 ? f : ""]), _2 && !st2 ? f : "", it2 ? ke2 : ""];
return z2 && !it2 ? l(m2([f, l(lr2)])) : z2 || ee2 ? l(m2(lr2)) : st2 || o && b2 ? l([m2([f, lr2]), re2 ? f : ""]) : C === Y2 ? l(lr2) : lr2;
}
function Hu(e, t, r, n) {
let { node: s } = e;
if (Jr2(s))
return Nu(e, t);
switch (s.type) {
case "JsExpressionRoot":
return r("node");
case "JsonRoot":
return [v2(e, t), r("node"), E2];
case "File":
return wu(e, t, r) ?? r("program");
case "ExpressionStatement":
return Ou(e, t, r);
case "ChainExpression":
return r("expression");
case "ParenthesizedExpression":
return !T2(s.expression) && (se2(s.expression) || q2(s.expression)) ? ["(", r("expression"), ")"] : l(["(", m2([f, r("expression")]), f, ")"]);
case "AssignmentExpression":
return zo(e, t, r);
case "VariableDeclarator":
return Zo(e, t, r);
case "BinaryExpression":
case "LogicalExpression":
return on(e, t, r);
case "AssignmentPattern":
return [r("left"), " = ", r("right")];
case "OptionalMemberExpression":
case "MemberExpression":
return Ho(e, t, r);
case "MetaProperty":
return [r("meta"), ".", r("property")];
case "BindExpression":
return Yo(e, t, r);
case "Identifier":
return [s.name, X2(e), sn(e), G2(e, r)];
case "V8IntrinsicIdentifier":
return ["%", s.name];
case "SpreadElement":
return or2(e, r);
case "RestElement":
return or2(e, r);
case "FunctionDeclaration":
case "FunctionExpression":
return mn(e, t, r, n);
case "ArrowFunctionExpression":
return Tu(e, t, r, n);
case "YieldExpression":
return [`yield${s.delegate ? "*" : ""}`, s.argument ? [" ", r("argument")] : ""];
case "AwaitExpression": {
let i = ["await"];
if (s.argument) {
i.push(" ", r("argument"));
let { parent: o } = e;
if (M2(o) && o.callee === s || J2(o) && o.object === s) {
i = [m2([f, ...i]), f];
let u = e.findAncestor((p2) => p2.type === "AwaitExpression" || p2.type === "BlockStatement");
if (u?.type !== "AwaitExpression" || !ye2(u.argument, (p2) => p2 === s))
return l(i);
}
}
return i;
}
case "ExportDefaultDeclaration":
case "ExportNamedDeclaration":
case "ExportAllDeclaration":
return An(e, t, r);
case "ImportDeclaration":
return vu(e, t, r);
case "ImportSpecifier":
case "ExportSpecifier":
case "ImportNamespaceSpecifier":
case "ExportNamespaceSpecifier":
case "ImportDefaultSpecifier":
case "ExportDefaultSpecifier":
return Uu(e, t, r);
case "ImportAttribute":
return ln(e, t, r);
case "Program":
case "BlockStatement":
case "StaticBlock":
return En(e, t, r);
case "ClassBody":
return Rt2(e, t, r);
case "ThrowStatement":
return ou(e, t, r);
case "ReturnStatement":
return iu(e, t, r);
case "NewExpression":
case "ImportExpression":
case "OptionalCallExpression":
case "CallExpression":
return vt2(e, t, r);
case "ObjectExpression":
case "ObjectPattern":
return ir2(e, t, r);
case "Property":
return mt2(s) ? Sr2(e, t, r) : ln(e, t, r);
case "ObjectProperty":
return ln(e, t, r);
case "ObjectMethod":
return Sr2(e, t, r);
case "Decorator":
return ["@", r("expression")];
case "ArrayExpression":
case "ArrayPattern":
return tr2(e, t, r);
case "SequenceExpression": {
let { parent: i } = e;
if (i.type === "ExpressionStatement" || i.type === "ForStatement") {
let u = [];
return e.each(({ isFirst: p2 }) => {
p2 ? u.push(r()) : u.push(",", m2([A, r()]));
}, "expressions"), l(u);
}
let o = L2([",", A], e.map(r, "expressions"));
return (i.type === "ReturnStatement" || i.type === "ThrowStatement") && e.key === "argument" || i.type === "ArrowFunctionExpression" && e.key === "body" ? l(P2([m2([f, o]), f], o)) : l(o);
}
case "ThisExpression":
return "this";
case "Super":
return "super";
case "Directive":
return [r("value"), t.semi ? ";" : ""];
case "UnaryExpression": {
let i = [s.operator];
return /[a-z]$/u.test(s.operator) && i.push(" "), T2(s.argument) ? i.push(l(["(", m2([f, r("argument")]), f, ")"])) : i.push(r("argument")), i;
}
case "UpdateExpression":
return [s.prefix ? s.operator : "", r("argument"), s.prefix ? "" : s.operator];
case "ConditionalExpression":
return ur2(e, t, r, n);
case "VariableDeclaration": {
let i = e.map(r, "declarations"), o = e.parent, u = o.type === "ForStatement" || o.type === "ForInStatement" || o.type === "ForOfStatement", p2 = s.declarations.some((y2) => y2.init), c2;
return i.length === 1 && !T2(s.declarations[0]) ? c2 = i[0] : i.length > 0 && (c2 = m2(i[0])), l([Q2(e), s.kind, c2 ? [" ", c2] : "", m2(i.slice(1).map((y2) => [",", p2 && !u ? E2 : A, y2])), t.semi && !(u && o.body !== s) ? ";" : ""]);
}
case "WithStatement":
return l(["with (", r("object"), ")", Ft2(s.body, r("body"))]);
case "IfStatement": {
let i = Ft2(s.consequent, r("consequent")), u = [l(["if (", l([m2([f, r("test")]), f]), ")", i])];
if (s.alternate) {
let p2 = T2(s.consequent, x.Trailing | x.Line) || qr2(s), c2 = s.consequent.type === "BlockStatement" && !p2;
u.push(c2 ? " " : E2), T2(s, x.Dangling) && u.push(v2(e, t), p2 ? E2 : " "), u.push("else", l(Ft2(s.alternate, r("alternate"), s.alternate.type === "IfStatement")));
}
return u;
}
case "ForStatement": {
let i = Ft2(s.body, r("body")), o = v2(e, t), u = o ? [o, f] : "";
return !s.init && !s.test && !s.update ? [u, l(["for (;;)", i])] : [u, l(["for (", l([m2([f, r("init"), ";", A, r("test"), ";", s.update ? [A, r("update")] : P2("", A)]), f]), ")", i])];
}
case "WhileStatement":
return l(["while (", l([m2([f, r("test")]), f]), ")", Ft2(s.body, r("body"))]);
case "ForInStatement":
return l(["for (", r("left"), " in ", r("right"), ")", Ft2(s.body, r("body"))]);
case "ForOfStatement":
return l(["for", s.await ? " await" : "", " (", r("left"), " of ", r("right"), ")", Ft2(s.body, r("body"))]);
case "DoWhileStatement": {
let i = Ft2(s.body, r("body"));
return [l(["do", i]), s.body.type === "BlockStatement" ? " " : E2, "while (", l([m2([f, r("test")]), f]), ")", t.semi ? ";" : ""];
}
case "DoExpression":
return [s.async ? "async " : "", "do ", r("body")];
case "BreakStatement":
case "ContinueStatement":
return [s.type === "BreakStatement" ? "break" : "continue", s.label ? [" ", r("label")] : "", t.semi ? ";" : ""];
case "LabeledStatement":
return [r("label"), `:${s.body.type === "EmptyStatement" && !T2(s.body, x.Leading) ? "" : " "}`, r("body")];
case "TryStatement":
return ["try ", r("block"), s.handler ? [" ", r("handler")] : "", s.finalizer ? [" finally ", r("finalizer")] : ""];
case "CatchClause":
if (s.param) {
let i = T2(s.param, (u) => !ce2(u) || u.leading && Z2(t.originalText, I(u)) || u.trailing && Z2(t.originalText, w2(u), { backwards: true })), o = r("param");
return ["catch ", i ? ["(", m2([f, o]), f, ") "] : ["(", o, ") "], r("body")];
}
return ["catch ", r("body")];
case "SwitchStatement":
return [l(["switch (", m2([f, r("discriminant")]), f, ")"]), " {", s.cases.length > 0 ? m2([E2, L2(E2, e.map(({ node: i, isLast: o }) => [r(), !o && oe2(i, t) ? E2 : ""], "cases"))]) : "", E2, "}"];
case "SwitchCase": {
let i = [];
s.test ? i.push("case ", r("test"), ":") : i.push("default:"), T2(s, x.Dangling) && i.push(" ", v2(e, t));
let o = s.consequent.filter((u) => u.type !== "EmptyStatement");
if (o.length > 0) {
let u = br2(e, t, r, "consequent");
i.push(o.length === 1 && o[0].type === "BlockStatement" ? [" ", u] : m2([E2, u]));
}
return i;
}
case "DebuggerStatement":
return ["debugger", t.semi ? ";" : ""];
case "ClassDeclaration":
case "ClassExpression":
return sr2(e, t, r);
case "ClassMethod":
case "ClassPrivateMethod":
case "MethodDefinition":
return Fn(e, t, r);
case "ClassProperty":
case "PropertyDefinition":
case "ClassPrivateProperty":
case "ClassAccessorProperty":
case "AccessorProperty":
return dn(e, t, r);
case "TemplateElement":
return qe2(s.value.raw);
case "TemplateLiteral":
return en(e, t, r);
case "TaggedTemplateExpression":
return io(e, t, r);
case "PrivateIdentifier":
return ["#", s.name];
case "PrivateName":
return ["#", r("id")];
case "TopicReference":
return "%";
case "ArgumentPlaceholder":
return "?";
case "ModuleExpression":
return ["module ", r("body")];
case "VoidPattern":
return "void";
case "EmptyStatement":
if (kt2(e))
return ";";
case "InterpreterDirective":
default:
throw new Qe2(s, "ESTree");
}
}
function Tn(e) {
return [e("elementType"), "[]"];
}
var Zm = k(["SatisfiesExpression", "TSSatisfiesExpression"]);
function xn(e, t, r) {
let { parent: n, node: s, key: i } = e, u = s.type === "AsConstExpression" ? "const" : r("typeAnnotation"), p2 = [r("expression"), " ", Zm(s) ? "satisfies" : "as", " ", u];
return i === "callee" && M2(n) || i === "object" && J2(n) ? l([m2([f, ...p2]), f]) : p2;
}
function Xu(e, t, r) {
let { node: n } = e, s = [Q2(e), "component"];
n.id && s.push(" ", r("id")), s.push(r("typeParameters"));
let i = eD(e, t, r);
return n.rendersType ? s.push(l([i, " ", r("rendersType")])) : s.push(l([i])), n.body && s.push(" ", r("body")), t.semi && n.type === "DeclareComponent" && s.push(";"), s;
}
function eD(e, t, r) {
let { node: n } = e, s = n.params;
if (n.rest && (s = [...s, n.rest]), s.length === 0)
return ["(", v2(e, t, { filter: (o) => _e2(t.originalText, I(o)) === ")" }), ")"];
let i = [];
return rD(e, (o, u) => {
let p2 = u === s.length - 1;
p2 && n.rest && i.push("..."), i.push(r()), !p2 && (i.push(","), oe2(s[u], t) ? i.push(E2, E2) : i.push(A));
}), ["(", m2([f, ...i]), P2(ie2(t, "all") && !tD(n, s) ? "," : ""), f, ")"];
}
function tD(e, t) {
return e.rest || N(0, t, -1)?.type === "RestElement";
}
function rD(e, t) {
let { node: r } = e, n = 0, s = (i) => t(i, n++);
e.each(s, "params"), r.rest && e.call(s, "rest");
}
function Vu(e, t, r) {
let { node: n } = e;
return n.shorthand ? r("local") : [r("name"), " as ", r("local")];
}
function $u(e, t, r) {
let { node: n } = e, s = [];
return n.name && s.push(r("name"), n.optional ? "?: " : ": "), s.push(r("typeAnnotation")), s;
}
function qs2(e, t, r) {
return ir2(e, t, r);
}
function Ku(e, t, r) {
let { node: n } = e;
return [n.type === "EnumSymbolBody" || n.explicitType ? `of ${n.type.slice(4, -4).toLowerCase()} ` : "", qs2(e, t, r)];
}
function gn(e, t) {
let { node: r } = e, n = t("id");
r.computed && (n = ["[", n, "]"]);
let s = "";
return r.initializer && (s = t("initializer")), r.init && (s = t("init")), s ? [n, " = ", s] : n;
}
function hn(e, t) {
let { node: r } = e;
return [Q2(e), r.const ? "const " : "", "enum ", t("id"), " ", t("body")];
}
function Sn(e, t, r) {
let { node: n } = e, s = [Zt2(e)];
(n.type === "TSConstructorType" || n.type === "TSConstructSignatureDeclaration") && s.push("new ");
let i = Ke2(e, t, r, false, true), o = [];
return n.type === "FunctionTypeAnnotation" ? o.push(nD(e) ? " => " : ": ", r("returnType")) : o.push(G2(e, r, "returnType")), lt2(n, o) && (i = l(i)), s.push(i, o), [l(s), n.type === "TSConstructSignatureDeclaration" || n.type === "TSCallSignatureDeclaration" ? he2(e, t) : ""];
}
function nD(e) {
let { node: t, parent: r } = e;
return t.type === "FunctionTypeAnnotation" && (Gr2(r) || !((r.type === "ObjectTypeProperty" || r.type === "ObjectTypeInternalSlot") && !r.variance && !r.optional && bt2(r, t) || r.type === "ObjectTypeCallProperty" || e.getParentNode(2)?.type === "DeclareFunction"));
}
function zu(e, t, r) {
let { node: n } = e, s = ["hook"];
n.id && s.push(" ", r("id"));
let i = Ke2(e, t, r, false, true), o = rr2(e, r), u = lt2(n, o);
return s.push(l([u ? l(i) : i, o]), n.body ? " " : "", r("body")), s;
}
function Zu(e, t, r) {
let { node: n } = e, s = [Q2(e), "hook"];
return n.id && s.push(" ", r("id")), t.semi && s.push(";"), s;
}
function Qu(e) {
let { node: t } = e;
return t.type === "HookTypeAnnotation" && e.getParentNode(2)?.type === "DeclareHook";
}
function ea2(e, t, r) {
let { node: n } = e, s = Ke2(e, t, r, false, true), i = [Qu(e) ? ": " : " => ", r("returnType")];
return l([Qu(e) ? "" : "hook ", lt2(n, i) ? l(s) : s, i]);
}
function Bn(e, t, r) {
return [r("objectType"), X2(e), "[", r("indexType"), "]"];
}
function bn(e, t, r) {
return ["infer ", r("typeParameter")];
}
function Pn(e, t, r) {
let n = false;
return l(e.map(({ isFirst: s, previous: i, node: o, index: u }) => {
let p2 = r();
if (s)
return p2;
let c2 = Je2(o), y2 = Je2(i);
return y2 && c2 ? [" & ", n ? m2(p2) : p2] : !y2 && !c2 || Ee2(t.originalText, o) ? t.experimentalOperatorPosition === "start" ? m2([A, "& ", p2]) : m2([" &", A, p2]) : (u > 1 && (n = true), [" & ", u > 1 ? m2(p2) : p2]);
}, "types"));
}
function sD(e) {
switch (e) {
case null:
return "";
case "PlusOptional":
return "+?";
case "MinusOptional":
return "-?";
case "Optional":
return "?";
}
}
function ra2(e, t, r) {
let { node: n } = e;
return [l([n.variance ? r("variance") : "", "[", m2([r("keyTparam"), " in ", r("sourceType")]), "]", sD(n.optional), ": ", r("propType")]), he2(e, t)];
}
function ta2(e, t) {
return e === "+" || e === "-" ? e + t : t;
}
function na(e, t, r) {
let { node: n } = e, s = false;
if (t.objectWrap === "preserve") {
let i = w2(n), o = Jt2(t, i + 1, w2(n.key)), u = i + 1 + o.search(/\S/u);
ue2(t.originalText, i, u) && (s = true);
}
return l(["{", m2([t.bracketSpacing ? A : f, T2(n, x.Dangling) ? l([v2(e, t), E2]) : "", l([n.readonly ? [ta2(n.readonly, "readonly"), " "] : "", "[", r("key"), " in ", r("constraint"), n.nameType ? [" as ", r("nameType")] : "", "]", n.optional ? ta2(n.optional, "?") : "", n.typeAnnotation ? ": " : "", r("typeAnnotation")]), t.semi ? P2(";") : ""]), t.bracketSpacing ? A : f, "}"], { shouldBreak: s });
}
function sa2(e, t, r) {
let { node: n } = e;
return [l(["match (", m2([f, r("argument")]), f, ")"]), " {", n.cases.length > 0 ? m2([E2, L2(E2, e.map(({ node: s, isLast: i }) => [r(), !i && oe2(s, t) ? E2 : ""], "cases"))]) : "", E2, "}"];
}
function ia2(e, t, r) {
let { node: n } = e, s = T2(n, x.Dangling) ? [" ", v2(e, t)] : [], i = n.type === "MatchStatementCase" ? [" ", r("body")] : m2([A, r("body"), ","]);
return [r("pattern"), n.guard ? l([m2([A, "if (", r("guard"), ")"])]) : "", l([" =>", s, i])];
}
function oa(e, t, r) {
let { node: n } = e;
switch (n.type) {
case "MatchOrPattern":
return uD(e, t, r);
case "MatchAsPattern":
return [r("pattern"), " as ", r("target")];
case "MatchWildcardPattern":
return ["_"];
case "MatchLiteralPattern":
return r("literal");
case "MatchUnaryPattern":
return [n.operator, r("argument")];
case "MatchIdentifierPattern":
return r("id");
case "MatchMemberPattern": {
let s = n.property.type === "Identifier" ? [".", r("property")] : ["[", m2([f, r("property")]), f, "]"];
return l([r("base"), s]);
}
case "MatchBindingPattern":
return [n.kind, " ", r("id")];
case "MatchObjectPattern": {
let s = e.map(r, "properties");
return n.rest && s.push(r("rest")), l(["{", m2([f, L2([",", A], s)]), n.rest ? "" : P2(","), f, "}"]);
}
case "MatchArrayPattern": {
let s = e.map(r, "elements");
return n.rest && s.push(r("rest")), l(["[", m2([f, L2([",", A], s)]), n.rest ? "" : P2(","), f, "]"]);
}
case "MatchObjectPatternProperty":
return n.shorthand ? r("pattern") : l([r("key"), ":", m2([A, r("pattern")])]);
case "MatchRestPattern": {
let s = ["..."];
return n.argument && s.push(r("argument")), s;
}
}
}
var ua2 = k(["MatchWildcardPattern", "MatchLiteralPattern", "MatchUnaryPattern", "MatchIdentifierPattern"]);
function iD(e) {
let { patterns: t } = e;
if (t.some((n) => T2(n)))
return false;
let r = t.find((n) => n.type === "MatchObjectPattern");
return r ? t.every((n) => n === r || ua2(n)) : false;
}
function oD(e) {
return ua2(e) || e.type === "MatchObjectPattern" ? true : e.type === "MatchOrPattern" ? iD(e) : false;
}
function uD(e, t, r) {
let { node: n } = e, { parent: s } = e, i = s.type !== "MatchStatementCase" && s.type !== "MatchExpressionCase" && s.type !== "MatchArrayPattern" && s.type !== "MatchObjectPatternProperty" && !Ee2(t.originalText, n), o = oD(n), u = e.map(() => {
let c2 = r();
return o || (c2 = xe2(2, c2)), De2(e, c2, t);
}, "patterns");
if (o)
return L2(" | ", u);
let p2 = [P2(["| "]), L2([A, "| "], u)];
return ge2(e, t) ? l([m2([P2([f]), p2]), f]) : s.type === "MatchArrayPattern" && s.elements.length > 1 ? l([m2([P2(["(", f]), p2]), f, P2(")")]) : l(i ? m2(p2) : p2);
}
function aa(e, t, r) {
let { node: n } = e, s = [Q2(e), "opaque type ", r("id"), r("typeParameters")];
if (n.supertype && s.push(": ", r("supertype")), n.lowerBound || n.upperBound) {
let i = [];
n.lowerBound && i.push(m2([A, "super ", r("lowerBound")])), n.upperBound && i.push(m2([A, "extends ", r("upperBound")])), s.push(l(i));
}
return n.impltype && s.push(" = ", r("impltype")), s.push(t.semi ? ";" : ""), s;
}
function kn(e, t, r) {
let { node: n } = e;
return ["...", ...n.type === "TupleTypeSpreadElement" && n.label ? [r("label"), ": "] : [], r("typeAnnotation")];
}
function In(e, t, r) {
let { node: n } = e;
return [n.variance ? r("variance") : "", r("label"), n.optional ? "?" : "", ": ", r("elementType")];
}
function Ln(e, t, r) {
let { node: n } = e, s = [Q2(e), "type ", r("id"), r("typeParameters")], i = n.type === "TSTypeAliasDeclaration" ? "typeAnnotation" : "right";
return [ht2(e, t, r, s, " =", i), t.semi ? ";" : ""];
}
function aD(e, t, r) {
let { node: n } = e;
return K2(n).length === 1 && n.type.startsWith("TS") && !n[r][0].constraint && e.parent.type === "ArrowFunctionExpression" && !(t.filepath && /\.ts$/u.test(t.filepath));
}
function Gt2(e, t, r, n) {
let { node: s } = e;
if (!s[n])
return "";
if (!Array.isArray(s[n]))
return r(n);
let i = It2(e.grandparent), o = e.match((c2) => !(c2[n].length === 1 && Je2(c2[n][0])), undefined, (c2, y2) => y2 === "typeAnnotation", (c2) => c2.type === "Identifier", Bs2);
if (s[n].length === 0 || !o && (i || s[n].length === 1 && (s[n][0].type === "NullableTypeAnnotation" || Jo(s[n][0]))))
return ["<", L2(", ", e.map(r, n)), pD(e, t), ">"];
let p2 = s.type === "TSTypeParameterInstantiation" ? "" : aD(e, t, n) ? "," : ie2(t) ? P2(",") : "";
return l(["<", m2([f, L2([",", A], e.map(r, n))]), p2, f, ">"]);
}
function pD(e, t) {
let { node: r } = e;
if (!T2(r, x.Dangling))
return "";
let n = !T2(r, x.Line), s = v2(e, t, { indent: !n });
return n ? s : [s, E2];
}
function On(e, t, r) {
let { node: n } = e, s = [n.const ? "const " : ""], i = n.type === "TSTypeParameter" ? r("name") : n.name;
if (n.variance && s.push(r("variance")), n.in && s.push("in "), n.out && s.push("out "), s.push(i), n.bound && (n.usesExtendsBound && s.push(" extends "), s.push(G2(e, r, "bound"))), n.constraint) {
let o = Symbol("constraint");
s.push(" extends", l(m2(A), { id: o }), je2, yt2(r("constraint"), { groupId: o }));
}
if (n.default) {
let o = Symbol("default");
s.push(" =", l(m2(A), { id: o }), je2, yt2(r("default"), { groupId: o }));
}
return l(s);
}
function wn(e, t) {
let { node: r } = e;
return [r.type === "TSTypePredicate" && r.asserts ? "asserts " : r.type === "TypePredicate" && r.kind ? `${r.kind} ` : "", t("parameterName"), r.typeAnnotation ? [" is ", G2(e, t)] : ""];
}
function _n({ node: e }, t) {
let r = e.type === "TSTypeQuery" ? "exprName" : "argument";
return ["typeof ", t(r), t("typeArguments")];
}
function pa(e, t, r) {
let { node: n } = e;
if (Nr2(n))
return n.type.slice(0, -14).toLowerCase();
switch (n.type) {
case "ComponentDeclaration":
case "DeclareComponent":
case "ComponentTypeAnnotation":
return Xu(e, t, r);
case "ComponentParameter":
return Vu(e, t, r);
case "ComponentTypeParameter":
return $u(e, t, r);
case "HookDeclaration":
return zu(e, t, r);
case "DeclareHook":
return Zu(e, t, r);
case "HookTypeAnnotation":
return ea2(e, t, r);
case "DeclareFunction":
return [Q2(e), "function ", r("id"), r("predicate"), t.semi ? ";" : ""];
case "DeclareModule":
return ["declare module ", r("id"), " ", r("body")];
case "DeclareModuleExports":
return ["declare module.exports", G2(e, r), t.semi ? ";" : ""];
case "DeclareNamespace":
return ["declare namespace ", r("id"), " ", r("body")];
case "DeclareVariable":
return [Q2(e), n.kind ?? "var", " ", r("id"), t.semi ? ";" : ""];
case "DeclareExportDeclaration":
case "DeclareExportAllDeclaration":
return An(e, t, r);
case "DeclareOpaqueType":
case "OpaqueType":
return aa(e, t, r);
case "DeclareTypeAlias":
case "TypeAlias":
return Ln(e, t, r);
case "IntersectionTypeAnnotation":
return Pn(e, t, r);
case "UnionTypeAnnotation":
return un(e, t, r);
case "ConditionalTypeAnnotation":
return ur2(e, t, r);
case "InferTypeAnnotation":
return bn(e, t, r);
case "FunctionTypeAnnotation":
return Sn(e, t, r);
case "TupleTypeAnnotation":
return tr2(e, t, r);
case "TupleTypeLabeledElement":
return In(e, t, r);
case "TupleTypeSpreadElement":
return kn(e, t, r);
case "GenericTypeAnnotation":
return [r("id"), Gt2(e, t, r, "typeParameters")];
case "IndexedAccessType":
case "OptionalIndexedAccessType":
return Bn(e, t, r);
case "TypeAnnotation":
return an(e, t, r);
case "TypeParameter":
return On(e, t, r);
case "TypeofTypeAnnotation":
return _n(e, r);
case "ExistsTypeAnnotation":
return "*";
case "ArrayTypeAnnotation":
return Tn(r);
case "DeclareEnum":
case "EnumDeclaration":
return hn(e, r);
case "EnumBooleanBody":
case "EnumNumberBody":
case "EnumBigIntBody":
case "EnumStringBody":
case "EnumSymbolBody":
return Ku(e, t, r);
case "EnumBooleanMember":
case "EnumNumberMember":
case "EnumBigIntMember":
case "EnumStringMember":
case "EnumDefaultedMember":
return gn(e, r);
case "FunctionTypeParam": {
let s = n.name ? r("name") : e.parent.this === n ? "this" : "";
return [s, X2(e), s ? ": " : "", r("typeAnnotation")];
}
case "DeclareClass":
case "DeclareInterface":
case "InterfaceDeclaration":
case "InterfaceTypeAnnotation":
return sr2(e, t, r);
case "ObjectTypeAnnotation":
return Rt2(e, t, r);
case "ClassImplements":
case "InterfaceExtends":
return [r("id"), r("typeParameters")];
case "NullableTypeAnnotation":
return ["?", r("typeAnnotation")];
case "Variance": {
let { kind: s } = n;
return Le2(s === "plus" || s === "minus"), s === "plus" ? "+" : "-";
}
case "KeyofTypeAnnotation":
return ["keyof ", r("argument")];
case "ObjectTypeCallProperty":
return [n.static ? "static " : "", r("value"), he2(e, t)];
case "ObjectTypeMappedTypeProperty":
return ra2(e, t, r);
case "ObjectTypeIndexer":
return [n.static ? "static " : "", n.variance ? r("variance") : "", "[", r("id"), n.id ? ": " : "", r("key"), "]: ", r("value"), he2(e, t)];
case "ObjectTypeProperty": {
let s = "";
return n.proto ? s = "proto " : n.static && (s = "static "), [s, n.kind !== "init" ? n.kind + " " : "", n.variance ? r("variance") : "", Ct2(e, t, r), X2(e), mt2(n) ? "" : ": ", r("value"), he2(e, t)];
}
case "ObjectTypeInternalSlot":
return [n.static ? "static " : "", "[[", r("id"), "]]", X2(e), n.method ? "" : ": ", r("value"), he2(e, t)];
case "ObjectTypeSpreadProperty":
return or2(e, r);
case "QualifiedTypeofIdentifier":
case "QualifiedTypeIdentifier":
return [r("qualification"), ".", r("id")];
case "NullLiteralTypeAnnotation":
return "null";
case "BooleanLiteralTypeAnnotation":
return String(n.value);
case "StringLiteralTypeAnnotation":
return qe2(ut2(pe2(n), t));
case "NumberLiteralTypeAnnotation":
return dt2(pe2(n));
case "BigIntLiteralTypeAnnotation":
return Cn(pe2(n));
case "TypeCastExpression":
return ["(", r("expression"), G2(e, r), ")"];
case "TypePredicate":
return wn(e, r);
case "TypeOperator":
return [n.operator, " ", r("typeAnnotation")];
case "TypeParameterDeclaration":
case "TypeParameterInstantiation":
return Gt2(e, t, r, "params");
case "InferredPredicate":
case "DeclaredPredicate":
return [e.key === "predicate" && e.parent.type !== "DeclareFunction" && !e.parent.returnType ? ": " : " ", "%checks", ...n.type === "DeclaredPredicate" ? ["(", r("value"), ")"] : []];
case "AsExpression":
case "AsConstExpression":
case "SatisfiesExpression":
return xn(e, t, r);
case "MatchExpression":
case "MatchStatement":
return sa2(e, t, r);
case "MatchExpressionCase":
case "MatchStatementCase":
return ia2(e, t, r);
case "MatchOrPattern":
case "MatchAsPattern":
case "MatchWildcardPattern":
case "MatchLiteralPattern":
case "MatchUnaryPattern":
case "MatchIdentifierPattern":
case "MatchMemberPattern":
case "MatchBindingPattern":
case "MatchObjectPattern":
case "MatchObjectPatternProperty":
case "MatchRestPattern":
case "MatchArrayPattern":
return oa(e, t, r);
}
}
function ca(e, t, r) {
let { node: n } = e, s = n.parameters.length > 1 ? P2(ie2(t) ? "," : "") : "", i = l([m2([f, L2([", ", f], e.map(r, "parameters"))]), s, f]);
return [e.key === "body" && e.parent.type === "ClassBody" && n.static ? "static " : "", n.readonly ? "readonly " : "", "[", n.parameters ? i : "", "]", G2(e, r), he2(e, t)];
}
function Us2(e, t, r) {
let { node: n } = e;
return [n.postfix ? "" : r, G2(e, t), n.postfix ? r : ""];
}
function la(e, t, r) {
let { node: n } = e, s = [], i = n.kind && n.kind !== "method" ? `${n.kind} ` : "";
s.push(jt2(n), i, n.computed ? "[" : "", r("key"), n.computed ? "]" : "", X2(e));
let o = Ke2(e, t, r, false, true), u = G2(e, r, "returnType"), p2 = lt2(n, u);
return s.push(p2 ? l(o) : o), n.returnType && s.push(l(u)), [l(s), he2(e, t)];
}
function ma2(e, t, r) {
let { node: n } = e;
return [Q2(e), n.kind === "global" ? "" : `${n.kind} `, r("id"), n.body ? [" ", l(r("body"))] : t.semi ? ";" : ""];
}
function Da(e, t, r) {
let { node: n } = e, s = !(q2(n.expression) || se2(n.expression)), i = l(["<", m2([f, r("typeAnnotation")]), f, ">"]), o = [P2("("), m2([f, r("expression")]), f, P2(")")];
return s ? nt2([[i, r("expression")], [i, l(o, { shouldBreak: true })], [i, r("expression")]]) : l([i, r("expression")]);
}
function fa(e, t, r) {
let { node: n } = e;
if (n.type.startsWith("TS")) {
if (jr2(n))
return n.type.slice(2, -7).toLowerCase();
switch (n.type) {
case "TSThisType":
return "this";
case "TSTypeAssertion":
return Da(e, t, r);
case "TSDeclareFunction":
return mn(e, t, r);
case "TSExportAssignment":
return ["export = ", r("expression"), t.semi ? ";" : ""];
case "TSModuleBlock":
return En(e, t, r);
case "TSInterfaceBody":
case "TSTypeLiteral":
return Rt2(e, t, r);
case "TSTypeAliasDeclaration":
return Ln(e, t, r);
case "TSQualifiedName":
return [r("left"), ".", r("right")];
case "TSAbstractMethodDefinition":
case "TSDeclareMethod":
return Fn(e, t, r);
case "TSAbstractAccessorProperty":
case "TSAbstractPropertyDefinition":
return dn(e, t, r);
case "TSInterfaceHeritage":
case "TSClassImplements":
case "TSInstantiationExpression":
return [r("expression"), r("typeArguments")];
case "TSTemplateLiteralType":
return en(e, t, r);
case "TSNamedTupleMember":
return In(e, t, r);
case "TSRestType":
return kn(e, t, r);
case "TSOptionalType":
return [r("typeAnnotation"), "?"];
case "TSInterfaceDeclaration":
return sr2(e, t, r);
case "TSTypeParameterDeclaration":
case "TSTypeParameterInstantiation":
return Gt2(e, t, r, "params");
case "TSTypeParameter":
return On(e, t, r);
case "TSAsExpression":
case "TSSatisfiesExpression":
return xn(e, t, r);
case "TSArrayType":
return Tn(r);
case "TSPropertySignature":
return [n.readonly ? "readonly " : "", Ct2(e, t, r), X2(e), G2(e, r), he2(e, t)];
case "TSParameterProperty":
return [jt2(n), n.static ? "static " : "", n.override ? "override " : "", n.readonly ? "readonly " : "", r("parameter")];
case "TSTypeQuery":
return _n(e, r);
case "TSIndexSignature":
return ca(e, t, r);
case "TSTypePredicate":
return wn(e, r);
case "TSNonNullExpression":
return [r("expression"), "!"];
case "TSImportType":
return [vt2(e, t, r), n.qualifier ? [".", r("qualifier")] : "", Gt2(e, t, r, "typeArguments")];
case "TSLiteralType":
return r("literal");
case "TSIndexedAccessType":
return Bn(e, t, r);
case "TSTypeOperator":
return [n.operator, " ", r("typeAnnotation")];
case "TSMappedType":
return na(e, t, r);
case "TSMethodSignature":
return la(e, t, r);
case "TSNamespaceExportDeclaration":
return ["export as namespace ", r("id"), t.semi ? ";" : ""];
case "TSEnumDeclaration":
return hn(e, r);
case "TSEnumBody":
return qs2(e, t, r);
case "TSEnumMember":
return gn(e, r);
case "TSImportEqualsDeclaration":
return ["import ", Gs2(n, false), r("id"), " = ", r("moduleReference"), t.semi ? ";" : ""];
case "TSExternalModuleReference":
return vt2(e, t, r);
case "TSModuleDeclaration":
return ma2(e, t, r);
case "TSConditionalType":
return ur2(e, t, r);
case "TSInferType":
return bn(e, t, r);
case "TSIntersectionType":
return Pn(e, t, r);
case "TSUnionType":
return un(e, t, r);
case "TSFunctionType":
case "TSCallSignatureDeclaration":
case "TSConstructorType":
case "TSConstructSignatureDeclaration":
return Sn(e, t, r);
case "TSTupleType":
return tr2(e, t, r);
case "TSTypeReference":
return [r("typeName"), Gt2(e, t, r, "typeArguments")];
case "TSTypeAnnotation":
return an(e, t, r);
case "TSEmptyBodyFunctionExpression":
return Dn(e, t, r);
case "TSJSDocAllType":
return "*";
case "TSJSDocUnknownType":
return "?";
case "TSJSDocNullableType":
return Us2(e, r, "?");
case "TSJSDocNonNullableType":
return Us2(e, r, "!");
case "TSParenthesizedType":
default:
throw new Qe2(n, "TypeScript");
}
}
}
function cD(e, t, r, n) {
for (let s of [yu, mu, pa, fa, Hu]) {
let i = s(e, t, r, n);
if (i !== undefined)
return i;
}
}
var lD = k(["ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "ClassPrivateProperty", "MethodDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod"]);
function mD(e, t, r, n) {
e.isRoot && t.__onHtmlBindingRoot?.(e.node, t);
let { node: s } = e, i = nr2(e) ? t.originalText.slice(w2(s), I(s)) : cD(e, t, r, n);
if (!i)
return "";
if (lD(s))
return i;
let o = R2(s.decorators), u = Fu(e, t, r), p2 = s.type === "ClassExpression";
if (o && !p2)
return Ar2(i, (D2) => l([u, D2]));
let c2 = ge2(e, t), y2 = uu(e, t);
return !u && !c2 && !y2 ? i : Ar2(i, (D2) => [y2 ? ";" : "", c2 ? "(" : "", c2 && p2 && o ? [m2([A, u, D2]), A] : [u, D2], c2 ? ")" : ""]);
}
var Ys2 = mD;
var DD = { experimental_avoidAstMutation: true };
var ya = [{ name: "JSON.stringify", type: "data", aceMode: "json", extensions: [".importmap"], filenames: ["package.json", "package-lock.json", "composer.json"], tmScope: "source.json", aliases: ["geojson", "jsonl", "sarif", "topojson"], codemirrorMode: "javascript", codemirrorMimeType: "application/json", parsers: ["json-stringify"], vscodeLanguageIds: ["json"], linguistLanguageId: 174 }, { name: "JSON", type: "data", aceMode: "json", extensions: [".json", ".4DForm", ".4DProject", ".avsc", ".geojson", ".gltf", ".har", ".ice", ".JSON-tmLanguage", ".json.example", ".mcmeta", ".sarif", ".tact", ".tfstate", ".tfstate.backup", ".topojson", ".webapp", ".webmanifest", ".yy", ".yyp"], filenames: [".all-contributorsrc", ".arcconfig", ".auto-changelog", ".c8rc", ".htmlhintrc", ".imgbotconfig", ".nycrc", ".tern-config", ".tern-project", ".watchmanconfig", ".babelrc", ".jscsrc", ".jshintrc", ".jslintrc", ".swcrc"], tmScope: "source.json", aliases: ["geojson", "jsonl", "sarif", "topojson"], codemirrorMode: "javascript", codemirrorMimeType: "application/json", parsers: ["json"], vscodeLanguageIds: ["json"], linguistLanguageId: 174 }, { name: "JSON with Comments", type: "data", aceMode: "javascript", extensions: [".jsonc", ".code-snippets", ".code-workspace", ".sublime-build", ".sublime-color-scheme", ".sublime-commands", ".sublime-completions", ".sublime-keymap", ".sublime-macro", ".sublime-menu", ".sublime-mousemap", ".sublime-project", ".sublime-settings", ".sublime-theme", ".sublime-workspace", ".sublime_metrics", ".sublime_session"], filenames: [], tmScope: "source.json.comments", aliases: ["jsonc"], codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", group: "JSON", parsers: ["jsonc"], vscodeLanguageIds: ["jsonc"], linguistLanguageId: 423 }, { name: "JSON5", type: "data", aceMode: "json5", extensions: [".json5"], tmScope: "source.js", codemirrorMode: "javascript", codemirrorMimeType: "application/json", parsers: ["json5"], vscodeLanguageIds: ["json5"], linguistLanguageId: 175 }];
var Xs2 = {};
jn(Xs2, { getVisitorKeys: () => Fa, massageAstNode: () => Ca, print: () => yD });
var ar2 = [[]];
var Ea = { JsonRoot: ["node"], ArrayExpression: ["elements"], ObjectExpression: ["properties"], ObjectProperty: ["key", "value"], UnaryExpression: ["argument"], NullLiteral: ar2[0], BooleanLiteral: ar2[0], StringLiteral: ar2[0], NumericLiteral: ar2[0], Identifier: ar2[0], TemplateLiteral: ["quasis"], TemplateElement: ar2[0] };
var fD = _r2(Ea);
var Fa = fD;
function yD(e, t, r) {
let { node: n } = e;
switch (n.type) {
case "JsonRoot":
return [r("node"), E2];
case "ArrayExpression": {
if (n.elements.length === 0)
return "[]";
let s = e.map(() => e.node === null ? "null" : r(), "elements");
return ["[", m2([E2, L2([",", E2], s)]), E2, "]"];
}
case "ObjectExpression":
return n.properties.length === 0 ? "{}" : ["{", m2([E2, L2([",", E2], e.map(r, "properties"))]), E2, "}"];
case "ObjectProperty":
return [r("key"), ": ", r("value")];
case "UnaryExpression":
return [n.operator === "+" ? "" : n.operator, r("argument")];
case "NullLiteral":
return "null";
case "BooleanLiteral":
return n.value ? "true" : "false";
case "StringLiteral":
return JSON.stringify(n.value);
case "NumericLiteral":
return da2(e) ? JSON.stringify(String(n.value)) : JSON.stringify(n.value);
case "Identifier":
return da2(e) ? JSON.stringify(n.name) : n.name;
case "TemplateLiteral":
return r(["quasis", 0]);
case "TemplateElement":
return JSON.stringify(n.value.cooked);
default:
throw new Qe2(n, "JSON");
}
}
function da2(e) {
return e.key === "key" && e.parent.type === "ObjectProperty";
}
var ED = new Set(["start", "end", "extra", "loc", "comments", "leadingComments", "trailingComments", "innerComments", "errors", "range", "tokens"]);
function Ca(e, t) {
let { type: r } = e;
if (r === "ObjectProperty") {
let { key: n } = e;
n.type === "Identifier" ? t.key = { type: "StringLiteral", value: n.name } : n.type === "NumericLiteral" && (t.key = { type: "StringLiteral", value: String(n.value) });
return;
}
if (r === "UnaryExpression" && e.operator === "+")
return t.argument;
if (r === "ArrayExpression") {
for (let [n, s] of e.elements.entries())
s === null && t.elements.splice(n, 0, { type: "NullLiteral" });
return;
}
if (r === "TemplateLiteral")
return { type: "StringLiteral", value: e.quasis[0].value.cooked };
}
Ca.ignoredProperties = ED;
var pr2 = { bracketSpacing: { category: "Common", type: "boolean", default: true, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, objectWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap object literals.", choices: [{ value: "preserve", description: "Keep as multi-line, if there is a newline between the opening brace and first property." }, { value: "collapse", description: "Fit to a single line when possible." }] }, singleQuote: { category: "Common", type: "boolean", default: false, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: false, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: false, description: "Enforce single attribute per line in HTML, Vue and JSX." } };
var St2 = "JavaScript";
var FD = { arrowParens: { category: St2, type: "choice", default: "always", description: "Include parentheses around a sole arrow function parameter.", choices: [{ value: "always", description: "Always include parens. Example: `(x) => x`" }, { value: "avoid", description: "Omit parens when possible. Example: `x => x`" }] }, bracketSameLine: pr2.bracketSameLine, objectWrap: pr2.objectWrap, bracketSpacing: pr2.bracketSpacing, jsxBracketSameLine: { category: St2, type: "boolean", description: "Put > on the last line instead of at a new line.", deprecated: "2.4.0" }, semi: { category: St2, type: "boolean", default: true, description: "Print semicolons.", oppositeDescription: "Do not print semicolons, except at the beginning of lines which may need them." }, experimentalOperatorPosition: { category: St2, type: "choice", default: "end", description: "Where to print operators when binary expressions wrap lines.", choices: [{ value: "start", description: "Print operators at the start of new lines." }, { value: "end", description: "Print operators at the end of previous lines." }] }, experimentalTernaries: { category: St2, type: "boolean", default: false, description: "Use curious ternaries, with the question mark after the condition.", oppositeDescription: "Default behavior of ternaries; keep question marks on the same line as the consequent." }, singleQuote: pr2.singleQuote, jsxSingleQuote: { category: St2, type: "boolean", default: false, description: "Use single quotes in JSX." }, quoteProps: { category: St2, type: "choice", default: "as-needed", description: "Change when properties in objects are quoted.", choices: [{ value: "as-needed", description: "Only add quotes around object properties where required." }, { value: "consistent", description: "If at least one property in an object requires quotes, quote all properties." }, { value: "preserve", description: "Respect the input use of quotes in object properties." }] }, trailingComma: { category: St2, type: "choice", default: "all", description: "Print trailing commas wherever possible when multi-line.", choices: [{ value: "all", description: "Trailing commas wherever possible (including function arguments)." }, { value: "es5", description: "Trailing commas where valid in ES5 (objects, arrays, etc.)" }, { value: "none", description: "No trailing commas." }] }, singleAttributePerLine: pr2.singleAttributePerLine };
var Aa = FD;
var dD = { estree: Hs2, "estree-json": Xs2 };
var CD = [...Qs2, ...ya];
// ../../node_modules/.bun/prettier@3.8.3/node_modules/prettier/plugins/typescript.mjs
var ty = Object.defineProperty;
var hd = (e, t) => {
for (var a3 in t)
ty(e, a3, { get: t[a3], enumerable: true });
};
var I0 = {};
hd(I0, { parsers: () => ld });
var ld = {};
hd(ld, { typescript: () => Y4 });
var ny = () => () => {};
var Na2 = ny;
var Ia2 = (e, t) => (a3, _2, ...f2) => a3 | 1 && _2 == null ? undefined : (t.call(_2) ?? _2[e]).apply(_2, f2);
var ry = String.prototype.replaceAll ?? function(e, t) {
return e.global ? this.replace(e, t) : this.split(e).join(t);
};
var iy = Ia2("replaceAll", function() {
if (typeof this == "string")
return ry;
});
var Wr3 = iy;
var gm2 = "5.9";
var vt3 = [];
var ay = new Map;
function e_(e) {
return e !== undefined ? e.length : 0;
}
function jn2(e, t) {
if (e !== undefined)
for (let a3 = 0;a3 < e.length; a3++) {
let _2 = t(e[a3], a3);
if (_2)
return _2;
}
}
function sy(e, t) {
if (e !== undefined)
for (let a3 = 0;a3 < e.length; a3++) {
let _2 = t(e[a3], a3);
if (_2 !== undefined)
return _2;
}
}
function yd(e, t, a3) {
let _2 = [];
q3.assertEqual(e.length, t.length);
for (let f2 = 0;f2 < e.length; f2++)
_2.push(a3(e[f2], t[f2], f2));
return _2;
}
function Gp2(e, t) {
if (e !== undefined) {
for (let a3 = 0;a3 < e.length; a3++)
if (!t(e[a3], a3))
return false;
}
return true;
}
function bm2(e, t, a3) {
if (e !== undefined)
for (let _2 = a3 ?? 0;_2 < e.length; _2++) {
let f2 = e[_2];
if (t(f2, _2))
return f2;
}
}
function gp2(e, t, a3) {
if (e === undefined)
return -1;
for (let _2 = a3 ?? 0;_2 < e.length; _2++)
if (t(e[_2], _2))
return _2;
return -1;
}
function _y(e, t, a3 = Xp2) {
if (e !== undefined) {
for (let _2 = 0;_2 < e.length; _2++)
if (a3(e[_2], t))
return true;
}
return false;
}
function Hr3(e, t) {
if (e !== undefined) {
let a3 = e.length, _2 = 0;
for (;_2 < a3 && t(e[_2]); )
_2++;
if (_2 < a3) {
let f2 = e.slice(0, _2);
for (_2++;_2 < a3; ) {
let h = e[_2];
t(h) && f2.push(h), _2++;
}
return f2;
}
}
return e;
}
function Pp2(e, t) {
let a3;
if (e !== undefined) {
a3 = [];
for (let _2 = 0;_2 < e.length; _2++)
a3.push(t(e[_2], _2));
}
return a3;
}
function vm2(e) {
let t = [];
for (let a3 = 0;a3 < e.length; a3++) {
let _2 = e[a3];
_2 && ($r3(_2) ? En2(t, _2) : t.push(_2));
}
return t;
}
function Tm2(e, t) {
let a3;
if (e !== undefined)
for (let _2 = 0;_2 < e.length; _2++) {
let f2 = t(e[_2], _2);
f2 && ($r3(f2) ? a3 = En2(a3, f2) : a3 = wn2(a3, f2));
}
return a3 ?? vt3;
}
function oy(e, t) {
let a3;
if (e !== undefined)
for (let _2 = 0;_2 < e.length; _2++) {
let f2 = e[_2], h = t(f2, _2);
(a3 || f2 !== h || $r3(h)) && (a3 || (a3 = e.slice(0, _2)), $r3(h) ? En2(a3, h) : a3.push(h));
}
return a3 ?? e;
}
function cy(e, t) {
let a3 = [];
if (e !== undefined)
for (let _2 = 0;_2 < e.length; _2++) {
let f2 = t(e[_2], _2);
f2 !== undefined && a3.push(f2);
}
return a3;
}
function Zt3(e, t) {
if (e !== undefined)
if (t !== undefined) {
for (let a3 = 0;a3 < e.length; a3++)
if (t(e[a3]))
return true;
} else
return e.length > 0;
return false;
}
function Yp2(e, t) {
return t === undefined || t.length === 0 ? e : e === undefined || e.length === 0 ? t : [...e, ...t];
}
function ly(e, t, a3 = Xp2) {
if (e === undefined || t === undefined)
return e === t;
if (e.length !== t.length)
return false;
for (let _2 = 0;_2 < e.length; _2++)
if (!a3(e[_2], t[_2], _2))
return false;
return true;
}
function wn2(e, t) {
return t === undefined ? e : e === undefined ? [t] : (e.push(t), e);
}
function Np2(e, t) {
return t < 0 ? e.length + t : t;
}
function En2(e, t, a3, _2) {
if (t === undefined || t.length === 0)
return e;
if (e === undefined)
return t.slice(a3, _2);
a3 = a3 === undefined ? 0 : Np2(t, a3), _2 = _2 === undefined ? t.length : Np2(t, _2);
for (let f2 = a3;f2 < _2 && f2 < t.length; f2++)
t[f2] !== undefined && e.push(t[f2]);
return e;
}
function uy(e, t, a3) {
return _y(e, t, a3) ? false : (e.push(t), true);
}
function py(e, t, a3) {
return e !== undefined ? (uy(e, t, a3), e) : [t];
}
function fy(e, t) {
return e.length === 0 ? vt3 : e.slice().sort(t);
}
var Z4 = Array.prototype.at ? (e, t) => e?.at(t) : (e, t) => {
if (e !== undefined && (t = Np2(e, t), t < e.length))
return e[t];
};
function Hp2(e) {
return e === undefined || e.length === 0 ? undefined : e[0];
}
function Ba2(e) {
return e === undefined || e.length === 0 ? undefined : e[e.length - 1];
}
function dy(e) {
return q3.assert(e.length !== 0), e[e.length - 1];
}
function my(e) {
return e !== undefined && e.length === 1 ? e[0] : undefined;
}
function hy(e, t, a3, _2, f2) {
return yy(e, a3(t), a3, _2, f2);
}
function yy(e, t, a3, _2, f2) {
if (!Zt3(e))
return -1;
let h = f2 ?? 0, T3 = e.length - 1;
for (;h <= T3; ) {
let k2 = h + (T3 - h >> 1), c2 = a3(e[k2], k2);
switch (_2(c2, t)) {
case -1:
h = k2 + 1;
break;
case 0:
return k2;
case 1:
T3 = k2 - 1;
break;
}
}
return ~h;
}
function gy(e, t, a3, _2, f2) {
if (e && e.length > 0) {
let h = e.length;
if (h > 0) {
let T3 = _2 === undefined || _2 < 0 ? 0 : _2, k2 = f2 === undefined || T3 + f2 > h - 1 ? h - 1 : T3 + f2, c2;
for (arguments.length <= 2 ? (c2 = e[T3], T3++) : c2 = a3;T3 <= k2; )
c2 = t(c2, e[T3], T3), T3++;
return c2;
}
}
return a3;
}
var xm2 = Object.prototype.hasOwnProperty;
function Dr3(e, t) {
return xm2.call(e, t);
}
function by(e) {
let t = [];
for (let a3 in e)
xm2.call(e, a3) && t.push(a3);
return t;
}
function vy() {
let e = new Map;
return e.add = Ty, e.remove = xy, e;
}
function Ty(e, t) {
let a3 = this.get(e);
return a3 !== undefined ? a3.push(t) : this.set(e, a3 = [t]), a3;
}
function xy(e, t) {
let a3 = this.get(e);
a3 !== undefined && (Ny(a3, t), a3.length || this.delete(e));
}
function $r3(e) {
return Array.isArray(e);
}
function bp2(e) {
return $r3(e) ? e : [e];
}
function Sy(e, t) {
return e !== undefined && t(e) ? e : undefined;
}
function Er3(e, t) {
return e !== undefined && t(e) ? e : q3.fail(`Invalid cast. The supplied value ${e} did not pass the test '${q3.getFunctionName(t)}'.`);
}
function Va2(e) {}
function wy() {
return true;
}
function bt3(e) {
return e;
}
function gd(e) {
let t;
return () => (e && (t = e(), e = undefined), t);
}
function Kn2(e) {
let t = new Map;
return (a3) => {
let _2 = `${typeof a3}:${a3}`, f2 = t.get(_2);
return f2 === undefined && !t.has(_2) && (f2 = e(a3), t.set(_2, f2)), f2;
};
}
function Xp2(e, t) {
return e === t;
}
function $p2(e, t) {
return e === t || e !== undefined && t !== undefined && e.toUpperCase() === t.toUpperCase();
}
function ky(e, t) {
return Xp2(e, t);
}
function Ey(e, t) {
return e === t ? 0 : e === undefined ? -1 : t === undefined ? 1 : e < t ? -1 : 1;
}
function Sm2(e, t) {
return Ey(e, t);
}
function Ay(e, t, a3) {
for (let _2 = 0;_2 < e.length; _2++)
t = Math.max(t, a3(e[_2]));
return t;
}
function t_(e, t, a3) {
let _2 = Math.max(2, Math.floor(e.length * 0.34)), f2 = Math.floor(e.length * 0.4) + 1, h;
for (let T3 of t) {
let k2 = a3(T3);
if (k2 !== undefined && Math.abs(k2.length - e.length) <= _2) {
if (k2 === e || k2.length < 3 && k2.toLowerCase() !== e.toLowerCase())
continue;
let c2 = Cy(e, k2, f2 - 0.1);
if (c2 === undefined)
continue;
q3.assert(c2 < f2), f2 = c2, h = T3;
}
}
return h;
}
function Cy(e, t, a3) {
let _2 = new Array(t.length + 1), f2 = new Array(t.length + 1), h = a3 + 0.01;
for (let k2 = 0;k2 <= t.length; k2++)
_2[k2] = k2;
for (let k2 = 1;k2 <= e.length; k2++) {
let c2 = e.charCodeAt(k2 - 1), W3 = Math.ceil(k2 > a3 ? k2 - a3 : 1), y2 = Math.floor(t.length > a3 + k2 ? a3 + k2 : t.length);
f2[0] = k2;
let G3 = k2;
for (let D2 = 1;D2 < W3; D2++)
f2[D2] = h;
for (let D2 = W3;D2 <= y2; D2++) {
let R3 = e[k2 - 1].toLowerCase() === t[D2 - 1].toLowerCase() ? _2[D2 - 1] + 0.1 : _2[D2 - 1] + 2, ue3 = c2 === t.charCodeAt(D2 - 1) ? _2[D2 - 1] : Math.min(_2[D2] + 1, f2[D2 - 1] + 1, R3);
f2[D2] = ue3, G3 = Math.min(G3, ue3);
}
for (let D2 = y2 + 1;D2 <= t.length; D2++)
f2[D2] = h;
if (G3 > a3)
return;
let E3 = _2;
_2 = f2, f2 = E3;
}
let T3 = _2[t.length];
return T3 > a3 ? undefined : T3;
}
function Dy(e, t, a3) {
let _2 = e.length - t.length;
return _2 >= 0 && (a3 ? $p2(e.slice(_2), t) : e.indexOf(t, _2) === _2);
}
function Py(e, t) {
e[t] = e[e.length - 1], e.pop();
}
function Ny(e, t) {
return Iy(e, (a3) => a3 === t);
}
function Iy(e, t) {
for (let a3 = 0;a3 < e.length; a3++)
if (t(e[a3]))
return Py(e, a3), true;
return false;
}
function ml2(e, t, a3) {
return a3 ? $p2(e.slice(0, t.length), t) : e.lastIndexOf(t, 0) === 0;
}
function Ip2(e) {
return e === undefined ? undefined : [e];
}
var q3;
((e) => {
let t = 0;
e.currentLogLevel = 2, e.isDebugging = false;
function a3(L3) {
return e.currentLogLevel <= L3;
}
e.shouldLog = a3;
function _2(L3, se3) {
e.loggingHost && a3(L3) && e.loggingHost.log(L3, se3);
}
function f2(L3) {
_2(3, L3);
}
e.log = f2, ((L3) => {
function se3(Qe3) {
_2(1, Qe3);
}
L3.error = se3;
function fe2(Qe3) {
_2(2, Qe3);
}
L3.warn = fe2;
function Te3(Qe3) {
_2(3, Qe3);
}
L3.log = Te3;
function He3(Qe3) {
_2(4, Qe3);
}
L3.trace = He3;
})(f2 = e.log || (e.log = {}));
let h = {};
function T3() {
return t;
}
e.getAssertionLevel = T3;
function k2(L3) {
let se3 = t;
if (t = L3, L3 > se3)
for (let fe2 of by(h)) {
let Te3 = h[fe2];
Te3 !== undefined && e[fe2] !== Te3.assertion && L3 >= Te3.level && (e[fe2] = Te3, h[fe2] = undefined);
}
}
e.setAssertionLevel = k2;
function c2(L3) {
return t >= L3;
}
e.shouldAssert = c2;
function W3(L3, se3) {
return c2(L3) ? true : (h[se3] = { level: L3, assertion: e[se3] }, e[se3] = Va2, false);
}
function y2(L3, se3) {
debugger;
let fe2 = new Error(L3 ? `Debug Failure. ${L3}` : "Debug Failure.");
throw Error.captureStackTrace && Error.captureStackTrace(fe2, se3 || y2), fe2;
}
e.fail = y2;
function G3(L3, se3, fe2) {
return y2(`${se3 || "Unexpected node."}\r
Node ${Ot3(L3.kind)} was unexpected.`, fe2 || G3);
}
e.failBadSyntaxKind = G3;
function E3(L3, se3, fe2, Te3) {
L3 || (se3 = se3 ? `False expression: ${se3}` : "False expression.", fe2 && (se3 += `\r
Verbose Debug Information: ` + (typeof fe2 == "string" ? fe2 : fe2())), y2(se3, Te3 || E3));
}
e.assert = E3;
function D2(L3, se3, fe2, Te3, He3) {
if (L3 !== se3) {
let Qe3 = fe2 ? Te3 ? `${fe2} ${Te3}` : fe2 : "";
y2(`Expected ${L3} === ${se3}. ${Qe3}`, He3 || D2);
}
}
e.assertEqual = D2;
function R3(L3, se3, fe2, Te3) {
L3 >= se3 && y2(`Expected ${L3} < ${se3}. ${fe2 || ""}`, Te3 || R3);
}
e.assertLessThan = R3;
function ue3(L3, se3, fe2) {
L3 > se3 && y2(`Expected ${L3} <= ${se3}`, fe2 || ue3);
}
e.assertLessThanOrEqual = ue3;
function be3(L3, se3, fe2) {
L3 < se3 && y2(`Expected ${L3} >= ${se3}`, fe2 || be3);
}
e.assertGreaterThanOrEqual = be3;
function he3(L3, se3, fe2) {
L3 == null && y2(se3, fe2 || he3);
}
e.assertIsDefined = he3;
function de3(L3, se3, fe2) {
return he3(L3, se3, fe2 || de3), L3;
}
e.checkDefined = de3;
function O2(L3, se3, fe2) {
for (let Te3 of L3)
he3(Te3, se3, fe2 || O2);
}
e.assertEachIsDefined = O2;
function ae(L3, se3, fe2) {
return O2(L3, se3, fe2 || ae), L3;
}
e.checkEachDefined = ae;
function Oe3(L3, se3 = "Illegal value:", fe2) {
let Te3 = typeof L3 == "object" && Dr3(L3, "kind") && Dr3(L3, "pos") ? "SyntaxKind: " + Ot3(L3.kind) : JSON.stringify(L3);
return y2(`${se3} ${Te3}`, fe2 || Oe3);
}
e.assertNever = Oe3;
function V3(L3, se3, fe2, Te3) {
W3(1, "assertEachNode") && E3(se3 === undefined || Gp2(L3, se3), fe2 || "Unexpected node.", () => `Node array did not pass test '${hn2(se3)}'.`, Te3 || V3);
}
e.assertEachNode = V3;
function oe3(L3, se3, fe2, Te3) {
W3(1, "assertNode") && E3(L3 !== undefined && (se3 === undefined || se3(L3)), fe2 || "Unexpected node.", () => `Node ${Ot3(L3?.kind)} did not pass test '${hn2(se3)}'.`, Te3 || oe3);
}
e.assertNode = oe3;
function Y2(L3, se3, fe2, Te3) {
W3(1, "assertNotNode") && E3(L3 === undefined || se3 === undefined || !se3(L3), fe2 || "Unexpected node.", () => `Node ${Ot3(L3.kind)} should not have passed test '${hn2(se3)}'.`, Te3 || Y2);
}
e.assertNotNode = Y2;
function ft3(L3, se3, fe2, Te3) {
W3(1, "assertOptionalNode") && E3(se3 === undefined || L3 === undefined || se3(L3), fe2 || "Unexpected node.", () => `Node ${Ot3(L3?.kind)} did not pass test '${hn2(se3)}'.`, Te3 || ft3);
}
e.assertOptionalNode = ft3;
function nr3(L3, se3, fe2, Te3) {
W3(1, "assertOptionalToken") && E3(se3 === undefined || L3 === undefined || L3.kind === se3, fe2 || "Unexpected node.", () => `Node ${Ot3(L3?.kind)} was not a '${Ot3(se3)}' token.`, Te3 || nr3);
}
e.assertOptionalToken = nr3;
function mn2(L3, se3, fe2) {
W3(1, "assertMissingNode") && E3(L3 === undefined, se3 || "Unexpected node.", () => `Node ${Ot3(L3.kind)} was unexpected'.`, fe2 || mn2);
}
e.assertMissingNode = mn2;
function rr3(L3) {}
e.type = rr3;
function hn2(L3) {
if (typeof L3 != "function")
return "";
if (Dr3(L3, "name"))
return L3.name;
{
let se3 = Function.prototype.toString.call(L3), fe2 = /^function\s+([\w$]+)\s*\(/.exec(se3);
return fe2 ? fe2[1] : "";
}
}
e.getFunctionName = hn2;
function Dn2(L3) {
return `{ name: ${l_(L3.escapedName)}; flags: ${ot3(L3.flags)}; declarations: ${Pp2(L3.declarations, (se3) => Ot3(se3.kind))} }`;
}
e.formatSymbol = Dn2;
function We3(L3 = 0, se3, fe2) {
let Te3 = Ir2(se3);
if (L3 === 0)
return Te3.length > 0 && Te3[0][0] === 0 ? Te3[0][1] : "0";
if (fe2) {
let He3 = [], Qe3 = L3;
for (let [st2, Ct3] of Te3) {
if (st2 > L3)
break;
st2 !== 0 && st2 & L3 && (He3.push(Ct3), Qe3 &= ~st2);
}
if (Qe3 === 0)
return He3.join("|");
} else
for (let [He3, Qe3] of Te3)
if (He3 === L3)
return Qe3;
return L3.toString();
}
e.formatEnum = We3;
let ir3 = new Map;
function Ir2(L3) {
let se3 = ir3.get(L3);
if (se3)
return se3;
let fe2 = [];
for (let He3 in L3) {
let Qe3 = L3[He3];
typeof Qe3 == "number" && fe2.push([Qe3, He3]);
}
let Te3 = fy(fe2, (He3, Qe3) => Sm2(He3[0], Qe3[0]));
return ir3.set(L3, Te3), Te3;
}
function Ot3(L3) {
return We3(L3, Ae3, false);
}
e.formatSyntaxKind = Ot3;
function Bn2(L3) {
return We3(L3, Cm2, false);
}
e.formatSnippetKind = Bn2;
function Pn2(L3) {
return We3(L3, Pr2, false);
}
e.formatScriptKind = Pn2;
function Mt3(L3) {
return We3(L3, sn2, true);
}
e.formatNodeFlags = Mt3;
function ht3(L3) {
return We3(L3, km2, true);
}
e.formatNodeCheckFlags = ht3;
function $e3(L3) {
return We3(L3, Qp2, true);
}
e.formatModifierFlags = $e3;
function qn2(L3) {
return We3(L3, Am2, true);
}
e.formatTransformFlags = qn2;
function $t3(L3) {
return We3(L3, Dm2, true);
}
e.formatEmitFlags = $t3;
function ot3(L3) {
return We3(L3, Kp2, true);
}
e.formatSymbolFlags = ot3;
function at3(L3) {
return We3(L3, en2, true);
}
e.formatTypeFlags = at3;
function Bt2(L3) {
return We3(L3, Em2, true);
}
e.formatSignatureFlags = Bt2;
function Lt3(L3) {
return We3(L3, Zp2, true);
}
e.formatObjectFlags = Lt3;
function ct3(L3) {
return We3(L3, Op2, true);
}
e.formatFlowFlags = ct3;
function ar3(L3) {
return We3(L3, wm2, true);
}
e.formatRelationComparisonResult = ar3;
function dt3(L3) {
return We3(L3, CheckMode, true);
}
e.formatCheckMode = dt3;
function yn2(L3) {
return We3(L3, SignatureCheckMode, true);
}
e.formatSignatureCheckMode = yn2;
function yt3(L3) {
return We3(L3, TypeFacts, true);
}
e.formatTypeFacts = yt3;
let _n2 = false, tt3;
function qt3(L3) {
"__debugFlowFlags" in L3 || Object.defineProperties(L3, { __tsDebuggerDisplay: { value() {
let se3 = 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", fe2 = this.flags & -2048;
return `${se3}${fe2 ? ` (${ct3(fe2)})` : ""}`;
} }, __debugFlowFlags: { get() {
return We3(this.flags, Op2, true);
} }, __debugToString: { value() {
return yr3(this);
} } });
}
function tn2(L3) {
return _n2 && (typeof Object.setPrototypeOf == "function" ? (tt3 || (tt3 = Object.create(Object.prototype), qt3(tt3)), Object.setPrototypeOf(L3, tt3)) : qt3(L3)), L3;
}
e.attachFlowNodeDebugInfo = tn2;
let sr3;
function mr2(L3) {
"__tsDebuggerDisplay" in L3 || Object.defineProperties(L3, { __tsDebuggerDisplay: { value(se3) {
return se3 = String(se3).replace(/(?:,[\s\w]+:[^,]+)+\]$/, "]"), `NodeArray ${se3}`;
} } });
}
function hr3(L3) {
_n2 && (typeof Object.setPrototypeOf == "function" ? (sr3 || (sr3 = Object.create(Array.prototype), mr2(sr3)), Object.setPrototypeOf(L3, sr3)) : mr2(L3));
}
e.attachNodeArrayDebugInfo = hr3;
function Fn2() {
if (_n2)
return;
let L3 = new WeakMap, se3 = new WeakMap;
Object.defineProperties(Et3.getSymbolConstructor().prototype, { __tsDebuggerDisplay: { value() {
let Te3 = this.flags & 33554432 ? "TransientSymbol" : "Symbol", He3 = this.flags & -33554433;
return `${Te3} '${Jp2(this)}'${He3 ? ` (${ot3(He3)})` : ""}`;
} }, __debugFlags: { get() {
return ot3(this.flags);
} } }), Object.defineProperties(Et3.getTypeConstructor().prototype, { __tsDebuggerDisplay: { value() {
let Te3 = 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", He3 = this.flags & 524288 ? this.objectFlags & -1344 : 0;
return `${Te3}${this.symbol ? ` '${Jp2(this.symbol)}'` : ""}${He3 ? ` (${Lt3(He3)})` : ""}`;
} }, __debugFlags: { get() {
return at3(this.flags);
} }, __debugObjectFlags: { get() {
return this.flags & 524288 ? Lt3(this.objectFlags) : "";
} }, __debugTypeToString: { value() {
let Te3 = L3.get(this);
return Te3 === undefined && (Te3 = this.checker.typeToString(this), L3.set(this, Te3)), Te3;
} } }), Object.defineProperties(Et3.getSignatureConstructor().prototype, { __debugFlags: { get() {
return Bt2(this.flags);
} }, __debugSignatureToString: { value() {
var Te3;
return (Te3 = this.checker) == null ? undefined : Te3.signatureToString(this);
} } });
let fe2 = [Et3.getNodeConstructor(), Et3.getIdentifierConstructor(), Et3.getTokenConstructor(), Et3.getSourceFileConstructor()];
for (let Te3 of fe2)
Dr3(Te3.prototype, "__debugKind") || Object.defineProperties(Te3.prototype, { __tsDebuggerDisplay: { value() {
return `${Ua2(this) ? "GeneratedIdentifier" : Ke3(this) ? `Identifier '${An2(this)}'` : gi3(this) ? `PrivateIdentifier '${An2(this)}'` : vi3(this) ? `StringLiteral ${JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...")}` : aa2(this) ? `NumericLiteral ${this.text}` : k1(this) ? `BigIntLiteral ${this.text}n` : Ef(this) ? "TypeParameterDeclaration" : m_(this) ? "ParameterDeclaration" : Af(this) ? "ConstructorDeclaration" : Tl2(this) ? "GetAccessorDeclaration" : y_(this) ? "SetAccessorDeclaration" : P1(this) ? "CallSignatureDeclaration" : N1(this) ? "ConstructSignatureDeclaration" : Cf(this) ? "IndexSignatureDeclaration" : I1(this) ? "TypePredicateNode" : Df(this) ? "TypeReferenceNode" : Pf(this) ? "FunctionTypeNode" : Nf(this) ? "ConstructorTypeNode" : qb(this) ? "TypeQueryNode" : O1(this) ? "TypeLiteralNode" : Fb(this) ? "ArrayTypeNode" : zb(this) ? "TupleTypeNode" : Vb(this) ? "OptionalTypeNode" : Wb(this) ? "RestTypeNode" : L1(this) ? "UnionTypeNode" : J1(this) ? "IntersectionTypeNode" : Gb(this) ? "ConditionalTypeNode" : Yb(this) ? "InferTypeNode" : j1(this) ? "ParenthesizedTypeNode" : Hb(this) ? "ThisTypeNode" : R1(this) ? "TypeOperatorNode" : Xb(this) ? "IndexedAccessTypeNode" : U1(this) ? "MappedTypeNode" : $b(this) ? "LiteralTypeNode" : M1(this) ? "NamedTupleMember" : Qb(this) ? "ImportTypeNode" : Ot3(this.kind)}${this.flags ? ` (${Mt3(this.flags)})` : ""}`;
} }, __debugKind: { get() {
return Ot3(this.kind);
} }, __debugNodeFlags: { get() {
return Mt3(this.flags);
} }, __debugModifierFlags: { get() {
return $e3(H22(this));
} }, __debugTransformFlags: { get() {
return qn2(this.transformFlags);
} }, __debugIsParseTreeNode: { get() {
return gl2(this);
} }, __debugEmitFlags: { get() {
return $t3(za2(this));
} }, __debugGetText: { value(He3) {
if (Ja2(this))
return "";
let Qe3 = se3.get(this);
if (Qe3 === undefined) {
let st2 = mg(this), Ct3 = st2 && hi3(st2);
Qe3 = Ct3 ? Od(Ct3, st2, He3) : "", se3.set(this, Qe3);
}
return Qe3;
} } });
_n2 = true;
}
e.enableDebugInfo = Fn2;
function zn2(L3) {
let se3 = L3 & 7, fe2 = se3 === 0 ? "in out" : se3 === 3 ? "[bivariant]" : se3 === 2 ? "in" : se3 === 1 ? "out" : se3 === 4 ? "[independent]" : "";
return L3 & 8 ? fe2 += " (unmeasurable)" : L3 & 16 && (fe2 += " (unreliable)"), fe2;
}
e.formatVariance = zn2;
class Or3 {
__debugToString() {
var se3;
switch (this.kind) {
case 3:
return ((se3 = this.debugInfo) == null ? undefined : se3.call(this)) || "(function mapper)";
case 0:
return `${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;
case 1:
return yd(this.sources, this.targets || Pp2(this.sources, () => "any"), (fe2, Te3) => `${fe2.__debugTypeToString()} -> ${typeof Te3 == "string" ? Te3 : Te3.__debugTypeToString()}`).join(", ");
case 2:
return yd(this.sources, this.targets, (fe2, Te3) => `${fe2.__debugTypeToString()} -> ${Te3().__debugTypeToString()}`).join(", ");
case 5:
case 4:
return `m1: ${this.mapper1.__debugToString().split(`
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;
default:
return Oe3(this);
}
}
}
e.DebugTypeMapper = Or3;
function Vn2(L3) {
return e.isDebugging ? Object.setPrototypeOf(L3, Or3.prototype) : L3;
}
e.attachDebugPrototypeIfDebug = Vn2;
function Ce3(L3) {
return console.log(yr3(L3));
}
e.printControlFlowGraph = Ce3;
function yr3(L3) {
let se3 = -1;
function fe2(u) {
return u.id || (u.id = se3, se3--), u.id;
}
let Te3;
((u) => {
u.lr = "\u2500", u.ud = "\u2502", u.dr = "\u256D", u.dl = "\u256E", u.ul = "\u256F", u.ur = "\u2570", u.udr = "\u251C", u.udl = "\u2524", u.dlr = "\u252C", u.ulr = "\u2534", u.udlr = "\u256B";
})(Te3 || (Te3 = {}));
let He3;
((u) => {
u[u.None = 0] = "None", u[u.Up = 1] = "Up", u[u.Down = 2] = "Down", u[u.Left = 4] = "Left", u[u.Right = 8] = "Right", u[u.UpDown = 3] = "UpDown", u[u.LeftRight = 12] = "LeftRight", u[u.UpLeft = 5] = "UpLeft", u[u.UpRight = 9] = "UpRight", u[u.DownLeft = 6] = "DownLeft", u[u.DownRight = 10] = "DownRight", u[u.UpDownLeft = 7] = "UpDownLeft", u[u.UpDownRight = 11] = "UpDownRight", u[u.UpLeftRight = 13] = "UpLeftRight", u[u.DownLeftRight = 14] = "DownLeftRight", u[u.UpDownLeftRight = 15] = "UpDownLeftRight", u[u.NoChildren = 16] = "NoChildren";
})(He3 || (He3 = {}));
let Qe3 = 2032, st2 = 882, Ct3 = Object.create(null), Tt3 = [], lt3 = [], Mr3 = Se3(L3, new Set);
for (let u of Tt3)
u.text = rt3(u.flowNode, u.circular), me3(u);
let gr3 = Ve3(Mr3), Nn = Ze3(gr3);
return Ye3(Mr3, 0), on2();
function Wn2(u) {
return !!(u.flags & 128);
}
function wi3(u) {
return !!(u.flags & 12) && !!u.antecedent;
}
function U2(u) {
return !!(u.flags & Qe3);
}
function K3(u) {
return !!(u.flags & st2);
}
function Z3(u) {
let Ie2 = [];
for (let Me3 of u.edges)
Me3.source === u && Ie2.push(Me3.target);
return Ie2;
}
function xe3(u) {
let Ie2 = [];
for (let Me3 of u.edges)
Me3.target === u && Ie2.push(Me3.source);
return Ie2;
}
function Se3(u, Ie2) {
let Me3 = fe2(u), B2 = Ct3[Me3];
if (B2 && Ie2.has(u))
return B2.circular = true, B2 = { id: -1, flowNode: u, edges: [], text: "", lane: -1, endLane: -1, level: -1, circular: "circularity" }, Tt3.push(B2), B2;
if (Ie2.add(u), !B2)
if (Ct3[Me3] = B2 = { id: Me3, flowNode: u, edges: [], text: "", lane: -1, endLane: -1, level: -1, circular: false }, Tt3.push(B2), wi3(u))
for (let Be3 of u.antecedent)
we3(B2, Be3, Ie2);
else
U2(u) && we3(B2, u.antecedent, Ie2);
return Ie2.delete(u), B2;
}
function we3(u, Ie2, Me3) {
let B2 = Se3(Ie2, Me3), Be3 = { source: u, target: B2 };
lt3.push(Be3), u.edges.push(Be3), B2.edges.push(Be3);
}
function me3(u) {
if (u.level !== -1)
return u.level;
let Ie2 = 0;
for (let Me3 of xe3(u))
Ie2 = Math.max(Ie2, me3(Me3) + 1);
return u.level = Ie2;
}
function Ve3(u) {
let Ie2 = 0;
for (let Me3 of Z3(u))
Ie2 = Math.max(Ie2, Ve3(Me3));
return Ie2 + 1;
}
function Ze3(u) {
let Ie2 = M3(Array(u), 0);
for (let Me3 of Tt3)
Ie2[Me3.level] = Math.max(Ie2[Me3.level], Me3.text.length);
return Ie2;
}
function Ye3(u, Ie2) {
if (u.lane === -1) {
u.lane = Ie2, u.endLane = Ie2;
let Me3 = Z3(u);
for (let B2 = 0;B2 < Me3.length; B2++) {
B2 > 0 && Ie2++;
let Be3 = Me3[B2];
Ye3(Be3, Ie2), Be3.endLane > u.endLane && (Ie2 = Be3.endLane);
}
u.endLane = Ie2;
}
}
function Ee3(u) {
if (u & 2)
return "Start";
if (u & 4)
return "Branch";
if (u & 8)
return "Loop";
if (u & 16)
return "Assignment";
if (u & 32)
return "True";
if (u & 64)
return "False";
if (u & 128)
return "SwitchClause";
if (u & 256)
return "ArrayMutation";
if (u & 512)
return "Call";
if (u & 1024)
return "ReduceLabel";
if (u & 1)
return "Unreachable";
throw new Error;
}
function gn2(u) {
let Ie2 = hi3(u);
return Od(Ie2, u, false);
}
function rt3(u, Ie2) {
let Me3 = Ee3(u.flags);
if (Ie2 && (Me3 = `${Me3}#${fe2(u)}`), Wn2(u)) {
let B2 = [], { switchStatement: Be3, clauseStart: nn2, clauseEnd: ze3 } = u.node;
for (let Xe3 = nn2;Xe3 < ze3; Xe3++) {
let Dt3 = Be3.caseBlock.clauses[Xe3];
r6(Dt3) ? B2.push("default") : B2.push(gn2(Dt3.expression));
}
Me3 += ` (${B2.join(", ")})`;
} else
K3(u) && u.node && (Me3 += ` (${gn2(u.node)})`);
return Ie2 === "circularity" ? `Circular(${Me3})` : Me3;
}
function on2() {
let u = Nn.length, Ie2 = Ay(Tt3, 0, (ze3) => ze3.lane) + 1, Me3 = M3(Array(Ie2), ""), B2 = Nn.map(() => Array(Ie2)), Be3 = Nn.map(() => M3(Array(Ie2), 0));
for (let ze3 of Tt3) {
B2[ze3.level][ze3.lane] = ze3;
let Xe3 = Z3(ze3);
for (let wt3 = 0;wt3 < Xe3.length; wt3++) {
let Pt3 = Xe3[wt3], Ft3 = 8;
Pt3.lane === ze3.lane && (Ft3 |= 4), wt3 > 0 && (Ft3 |= 1), wt3 < Xe3.length - 1 && (Ft3 |= 2), Be3[ze3.level][Pt3.lane] |= Ft3;
}
Xe3.length === 0 && (Be3[ze3.level][ze3.lane] |= 16);
let Dt3 = xe3(ze3);
for (let wt3 = 0;wt3 < Dt3.length; wt3++) {
let Pt3 = Dt3[wt3], Ft3 = 4;
wt3 > 0 && (Ft3 |= 1), wt3 < Dt3.length - 1 && (Ft3 |= 2), Be3[ze3.level - 1][Pt3.lane] |= Ft3;
}
}
for (let ze3 = 0;ze3 < u; ze3++)
for (let Xe3 = 0;Xe3 < Ie2; Xe3++) {
let Dt3 = ze3 > 0 ? Be3[ze3 - 1][Xe3] : 0, wt3 = Xe3 > 0 ? Be3[ze3][Xe3 - 1] : 0, Pt3 = Be3[ze3][Xe3];
Pt3 || (Dt3 & 8 && (Pt3 |= 12), wt3 & 2 && (Pt3 |= 3), Be3[ze3][Xe3] = Pt3);
}
for (let ze3 = 0;ze3 < u; ze3++)
for (let Xe3 = 0;Xe3 < Me3.length; Xe3++) {
let Dt3 = Be3[ze3][Xe3], wt3 = Dt3 & 4 ? "\u2500" : " ", Pt3 = B2[ze3][Xe3];
Pt3 ? (nn2(Xe3, Pt3.text), ze3 < u - 1 && (nn2(Xe3, " "), nn2(Xe3, Ue3(wt3, Nn[ze3] - Pt3.text.length)))) : ze3 < u - 1 && nn2(Xe3, Ue3(wt3, Nn[ze3] + 1)), nn2(Xe3, Zr3(Dt3)), nn2(Xe3, Dt3 & 8 && ze3 < u - 1 && !B2[ze3 + 1][Xe3] ? "\u2500" : " ");
}
return `
${Me3.join(`
`)}
`;
function nn2(ze3, Xe3) {
Me3[ze3] += Xe3;
}
}
function Zr3(u) {
switch (u) {
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 M3(u, Ie2) {
if (u.fill)
u.fill(Ie2);
else
for (let Me3 = 0;Me3 < u.length; Me3++)
u[Me3] = Ie2;
return u;
}
function Ue3(u, Ie2) {
if (u.repeat)
return Ie2 > 0 ? u.repeat(Ie2) : "";
let Me3 = "";
for (;Me3.length < Ie2; )
Me3 += u;
return Me3;
}
}
e.formatControlFlowGraph = yr3;
})(q3 || (q3 = {}));
var e3 = Date.now;
var bd = () => {};
var Oy = () => {};
var ll2;
var Ae3 = ((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.DeferKeyword = 166] = "DeferKeyword", e[e.QualifiedName = 167] = "QualifiedName", e[e.ComputedPropertyName = 168] = "ComputedPropertyName", e[e.TypeParameter = 169] = "TypeParameter", e[e.Parameter = 170] = "Parameter", e[e.Decorator = 171] = "Decorator", e[e.PropertySignature = 172] = "PropertySignature", e[e.PropertyDeclaration = 173] = "PropertyDeclaration", e[e.MethodSignature = 174] = "MethodSignature", e[e.MethodDeclaration = 175] = "MethodDeclaration", e[e.ClassStaticBlockDeclaration = 176] = "ClassStaticBlockDeclaration", e[e.Constructor = 177] = "Constructor", e[e.GetAccessor = 178] = "GetAccessor", e[e.SetAccessor = 179] = "SetAccessor", e[e.CallSignature = 180] = "CallSignature", e[e.ConstructSignature = 181] = "ConstructSignature", e[e.IndexSignature = 182] = "IndexSignature", e[e.TypePredicate = 183] = "TypePredicate", e[e.TypeReference = 184] = "TypeReference", e[e.FunctionType = 185] = "FunctionType", e[e.ConstructorType = 186] = "ConstructorType", e[e.TypeQuery = 187] = "TypeQuery", e[e.TypeLiteral = 188] = "TypeLiteral", e[e.ArrayType = 189] = "ArrayType", e[e.TupleType = 190] = "TupleType", e[e.OptionalType = 191] = "OptionalType", e[e.RestType = 192] = "RestType", e[e.UnionType = 193] = "UnionType", e[e.IntersectionType = 194] = "IntersectionType", e[e.ConditionalType = 195] = "ConditionalType", e[e.InferType = 196] = "InferType", e[e.ParenthesizedType = 197] = "ParenthesizedType", e[e.ThisType = 198] = "ThisType", e[e.TypeOperator = 199] = "TypeOperator", e[e.IndexedAccessType = 200] = "IndexedAccessType", e[e.MappedType = 201] = "MappedType", e[e.LiteralType = 202] = "LiteralType", e[e.NamedTupleMember = 203] = "NamedTupleMember", e[e.TemplateLiteralType = 204] = "TemplateLiteralType", e[e.TemplateLiteralTypeSpan = 205] = "TemplateLiteralTypeSpan", e[e.ImportType = 206] = "ImportType", e[e.ObjectBindingPattern = 207] = "ObjectBindingPattern", e[e.ArrayBindingPattern = 208] = "ArrayBindingPattern", e[e.BindingElement = 209] = "BindingElement", e[e.ArrayLiteralExpression = 210] = "ArrayLiteralExpression", e[e.ObjectLiteralExpression = 211] = "ObjectLiteralExpression", e[e.PropertyAccessExpression = 212] = "PropertyAccessExpression", e[e.ElementAccessExpression = 213] = "ElementAccessExpression", e[e.CallExpression = 214] = "CallExpression", e[e.NewExpression = 215] = "NewExpression", e[e.TaggedTemplateExpression = 216] = "TaggedTemplateExpression", e[e.TypeAssertionExpression = 217] = "TypeAssertionExpression", e[e.ParenthesizedExpression = 218] = "ParenthesizedExpression", e[e.FunctionExpression = 219] = "FunctionExpression", e[e.ArrowFunction = 220] = "ArrowFunction", e[e.DeleteExpression = 221] = "DeleteExpression", e[e.TypeOfExpression = 222] = "TypeOfExpression", e[e.VoidExpression = 223] = "VoidExpression", e[e.AwaitExpression = 224] = "AwaitExpression", e[e.PrefixUnaryExpression = 225] = "PrefixUnaryExpression", e[e.PostfixUnaryExpression = 226] = "PostfixUnaryExpression", e[e.BinaryExpression = 227] = "BinaryExpression", e[e.ConditionalExpression = 228] = "ConditionalExpression", e[e.TemplateExpression = 229] = "TemplateExpression", e[e.YieldExpression = 230] = "YieldExpression", e[e.SpreadElement = 231] = "SpreadElement", e[e.ClassExpression = 232] = "ClassExpression", e[e.OmittedExpression = 233] = "OmittedExpression", e[e.ExpressionWithTypeArguments = 234] = "ExpressionWithTypeArguments", e[e.AsExpression = 235] = "AsExpression", e[e.NonNullExpression = 236] = "NonNullExpression", e[e.MetaProperty = 237] = "MetaProperty", e[e.SyntheticExpression = 238] = "SyntheticExpression", e[e.SatisfiesExpression = 239] = "SatisfiesExpression", e[e.TemplateSpan = 240] = "TemplateSpan", e[e.SemicolonClassElement = 241] = "SemicolonClassElement", e[e.Block = 242] = "Block", e[e.EmptyStatement = 243] = "EmptyStatement", e[e.VariableStatement = 244] = "VariableStatement", e[e.ExpressionStatement = 245] = "ExpressionStatement", e[e.IfStatement = 246] = "IfStatement", e[e.DoStatement = 247] = "DoStatement", e[e.WhileStatement = 248] = "WhileStatement", e[e.ForStatement = 249] = "ForStatement", e[e.ForInStatement = 250] = "ForInStatement", e[e.ForOfStatement = 251] = "ForOfStatement", e[e.ContinueStatement = 252] = "ContinueStatement", e[e.BreakStatement = 253] = "BreakStatement", e[e.ReturnStatement = 254] = "ReturnStatement", e[e.WithStatement = 255] = "WithStatement", e[e.SwitchStatement = 256] = "SwitchStatement", e[e.LabeledStatement = 257] = "LabeledStatement", e[e.ThrowStatement = 258] = "ThrowStatement", e[e.TryStatement = 259] = "TryStatement", e[e.DebuggerStatement = 260] = "DebuggerStatement", e[e.VariableDeclaration = 261] = "VariableDeclaration", e[e.VariableDeclarationList = 262] = "VariableDeclarationList", e[e.FunctionDeclaration = 263] = "FunctionDeclaration", e[e.ClassDeclaration = 264] = "ClassDeclaration", e[e.InterfaceDeclaration = 265] = "InterfaceDeclaration", e[e.TypeAliasDeclaration = 266] = "TypeAliasDeclaration", e[e.EnumDeclaration = 267] = "EnumDeclaration", e[e.ModuleDeclaration = 268] = "ModuleDeclaration", e[e.ModuleBlock = 269] = "ModuleBlock", e[e.CaseBlock = 270] = "CaseBlock", e[e.NamespaceExportDeclaration = 271] = "NamespaceExportDeclaration", e[e.ImportEqualsDeclaration = 272] = "ImportEqualsDeclaration", e[e.ImportDeclaration = 273] = "ImportDeclaration", e[e.ImportClause = 274] = "ImportClause", e[e.NamespaceImport = 275] = "NamespaceImport", e[e.NamedImports = 276] = "NamedImports", e[e.ImportSpecifier = 277] = "ImportSpecifier", e[e.ExportAssignment = 278] = "ExportAssignment", e[e.ExportDeclaration = 279] = "ExportDeclaration", e[e.NamedExports = 280] = "NamedExports", e[e.NamespaceExport = 281] = "NamespaceExport", e[e.ExportSpecifier = 282] = "ExportSpecifier", e[e.MissingDeclaration = 283] = "MissingDeclaration", e[e.ExternalModuleReference = 284] = "ExternalModuleReference", e[e.JsxElement = 285] = "JsxElement", e[e.JsxSelfClosingElement = 286] = "JsxSelfClosingElement", e[e.JsxOpeningElement = 287] = "JsxOpeningElement", e[e.JsxClosingElement = 288] = "JsxClosingElement", e[e.JsxFragment = 289] = "JsxFragment", e[e.JsxOpeningFragment = 290] = "JsxOpeningFragment", e[e.JsxClosingFragment = 291] = "JsxClosingFragment", e[e.JsxAttribute = 292] = "JsxAttribute", e[e.JsxAttributes = 293] = "JsxAttributes", e[e.JsxSpreadAttribute = 294] = "JsxSpreadAttribute", e[e.JsxExpression = 295] = "JsxExpression", e[e.JsxNamespacedName = 296] = "JsxNamespacedName", e[e.CaseClause = 297] = "CaseClause", e[e.DefaultClause = 298] = "DefaultClause", e[e.HeritageClause = 299] = "HeritageClause", e[e.CatchClause = 300] = "CatchClause", e[e.ImportAttributes = 301] = "ImportAttributes", e[e.ImportAttribute = 302] = "ImportAttribute", e[e.AssertClause = 301] = "AssertClause", e[e.AssertEntry = 302] = "AssertEntry", e[e.ImportTypeAssertionContainer = 303] = "ImportTypeAssertionContainer", e[e.PropertyAssignment = 304] = "PropertyAssignment", e[e.ShorthandPropertyAssignment = 305] = "ShorthandPropertyAssignment", e[e.SpreadAssignment = 306] = "SpreadAssignment", e[e.EnumMember = 307] = "EnumMember", e[e.SourceFile = 308] = "SourceFile", e[e.Bundle = 309] = "Bundle", e[e.JSDocTypeExpression = 310] = "JSDocTypeExpression", e[e.JSDocNameReference = 311] = "JSDocNameReference", e[e.JSDocMemberName = 312] = "JSDocMemberName", e[e.JSDocAllType = 313] = "JSDocAllType", e[e.JSDocUnknownType = 314] = "JSDocUnknownType", e[e.JSDocNullableType = 315] = "JSDocNullableType", e[e.JSDocNonNullableType = 316] = "JSDocNonNullableType", e[e.JSDocOptionalType = 317] = "JSDocOptionalType", e[e.JSDocFunctionType = 318] = "JSDocFunctionType", e[e.JSDocVariadicType = 319] = "JSDocVariadicType", e[e.JSDocNamepathType = 320] = "JSDocNamepathType", e[e.JSDoc = 321] = "JSDoc", e[e.JSDocComment = 321] = "JSDocComment", e[e.JSDocText = 322] = "JSDocText", e[e.JSDocTypeLiteral = 323] = "JSDocTypeLiteral", e[e.JSDocSignature = 324] = "JSDocSignature", e[e.JSDocLink = 325] = "JSDocLink", e[e.JSDocLinkCode = 326] = "JSDocLinkCode", e[e.JSDocLinkPlain = 327] = "JSDocLinkPlain", e[e.JSDocTag = 328] = "JSDocTag", e[e.JSDocAugmentsTag = 329] = "JSDocAugmentsTag", e[e.JSDocImplementsTag = 330] = "JSDocImplementsTag", e[e.JSDocAuthorTag = 331] = "JSDocAuthorTag", e[e.JSDocDeprecatedTag = 332] = "JSDocDeprecatedTag", e[e.JSDocClassTag = 333] = "JSDocClassTag", e[e.JSDocPublicTag = 334] = "JSDocPublicTag", e[e.JSDocPrivateTag = 335] = "JSDocPrivateTag", e[e.JSDocProtectedTag = 336] = "JSDocProtectedTag", e[e.JSDocReadonlyTag = 337] = "JSDocReadonlyTag", e[e.JSDocOverrideTag = 338] = "JSDocOverrideTag", e[e.JSDocCallbackTag = 339] = "JSDocCallbackTag", e[e.JSDocOverloadTag = 340] = "JSDocOverloadTag", e[e.JSDocEnumTag = 341] = "JSDocEnumTag", e[e.JSDocParameterTag = 342] = "JSDocParameterTag", e[e.JSDocReturnTag = 343] = "JSDocReturnTag", e[e.JSDocThisTag = 344] = "JSDocThisTag", e[e.JSDocTypeTag = 345] = "JSDocTypeTag", e[e.JSDocTemplateTag = 346] = "JSDocTemplateTag", e[e.JSDocTypedefTag = 347] = "JSDocTypedefTag", e[e.JSDocSeeTag = 348] = "JSDocSeeTag", e[e.JSDocPropertyTag = 349] = "JSDocPropertyTag", e[e.JSDocThrowsTag = 350] = "JSDocThrowsTag", e[e.JSDocSatisfiesTag = 351] = "JSDocSatisfiesTag", e[e.JSDocImportTag = 352] = "JSDocImportTag", e[e.SyntaxList = 353] = "SyntaxList", e[e.NotEmittedStatement = 354] = "NotEmittedStatement", e[e.NotEmittedTypeElement = 355] = "NotEmittedTypeElement", e[e.PartiallyEmittedExpression = 356] = "PartiallyEmittedExpression", e[e.CommaListExpression = 357] = "CommaListExpression", e[e.SyntheticReferenceExpression = 358] = "SyntheticReferenceExpression", e[e.Count = 359] = "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 = 166] = "LastKeyword", e[e.FirstFutureReservedWord = 119] = "FirstFutureReservedWord", e[e.LastFutureReservedWord = 127] = "LastFutureReservedWord", e[e.FirstTypeNode = 183] = "FirstTypeNode", e[e.LastTypeNode = 206] = "LastTypeNode", e[e.FirstPunctuation = 19] = "FirstPunctuation", e[e.LastPunctuation = 79] = "LastPunctuation", e[e.FirstToken = 0] = "FirstToken", e[e.LastToken = 166] = "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 = 244] = "FirstStatement", e[e.LastStatement = 260] = "LastStatement", e[e.FirstNode = 167] = "FirstNode", e[e.FirstJSDocNode = 310] = "FirstJSDocNode", e[e.LastJSDocNode = 352] = "LastJSDocNode", e[e.FirstJSDocTagNode = 328] = "FirstJSDocTagNode", e[e.LastJSDocTagNode = 352] = "LastJSDocTagNode", e[e.FirstContextualKeyword = 128] = "FirstContextualKeyword", e[e.LastContextualKeyword = 166] = "LastContextualKeyword", e))(Ae3 || {});
var sn2 = ((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))(sn2 || {});
var Qp2 = ((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))(Qp2 || {});
var wm2 = ((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))(wm2 || {});
var Op2 = ((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))(Op2 || {});
var Kp2 = ((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))(Kp2 || {});
var km2 = ((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))(km2 || {});
var en2 = ((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))(en2 || {});
var Zp2 = ((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.SingleSignatureType = 134217728] = "SingleSignatureType", 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.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))(Zp2 || {});
var Em2 = ((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))(Em2 || {});
var Pr2 = ((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))(Pr2 || {});
var g_ = ((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))(g_ || {});
var wl2 = ((e) => (e[e.Standard = 0] = "Standard", e[e.JSX = 1] = "JSX", e))(wl2 || {});
var Cn2 = ((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))(Cn2 || {});
var Am2 = ((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))(Am2 || {});
var Cm2 = ((e) => (e[e.TabStop = 0] = "TabStop", e[e.Placeholder = 1] = "Placeholder", e[e.Choice = 2] = "Choice", e[e.Variable = 3] = "Variable", e))(Cm2 || {});
var Dm2 = ((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))(Dm2 || {});
var $s2 = { 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 };
var Pm2 = { reference: { args: [{ name: "types", optional: true, captureSpan: true }, { name: "lib", optional: true, captureSpan: true }, { name: "path", optional: true, captureSpan: true }, { name: "no-default-lib", optional: true }, { name: "resolution-mode", optional: true }, { name: "preserve", optional: true }], kind: 1 }, "amd-dependency": { args: [{ name: "path" }, { name: "name", optional: true }], 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 } };
var Ya2 = ((e) => (e[e.ParseAll = 0] = "ParseAll", e[e.ParseNone = 1] = "ParseNone", e[e.ParseForTypeErrors = 2] = "ParseForTypeErrors", e[e.ParseForTypeInfo = 3] = "ParseForTypeInfo", e))(Ya2 || {});
var Xr3 = "/";
var My = "\\";
var vd = "://";
var Ly = /\\/g;
function Jy(e) {
return e === 47 || e === 92;
}
function jy(e, t) {
return e.length > t.length && Dy(e, t);
}
function ef(e) {
return e.length > 0 && Jy(e.charCodeAt(e.length - 1));
}
function Td(e) {
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
}
function Ry(e, t) {
let a3 = e.charCodeAt(t);
if (a3 === 58)
return t + 1;
if (a3 === 37 && e.charCodeAt(t + 1) === 51) {
let _2 = e.charCodeAt(t + 2);
if (_2 === 97 || _2 === 65)
return t + 3;
}
return -1;
}
function Uy(e) {
if (!e)
return 0;
let t = e.charCodeAt(0);
if (t === 47 || t === 92) {
if (e.charCodeAt(1) !== t)
return 1;
let _2 = e.indexOf(t === 47 ? Xr3 : My, 2);
return _2 < 0 ? e.length : _2 + 1;
}
if (Td(t) && e.charCodeAt(1) === 58) {
let _2 = e.charCodeAt(2);
if (_2 === 47 || _2 === 92)
return 3;
if (e.length === 2)
return 2;
}
let a3 = e.indexOf(vd);
if (a3 !== -1) {
let _2 = a3 + vd.length, f2 = e.indexOf(Xr3, _2);
if (f2 !== -1) {
let h = e.slice(0, a3), T3 = e.slice(_2, f2);
if (h === "file" && (T3 === "" || T3 === "localhost") && Td(e.charCodeAt(f2 + 1))) {
let k2 = Ry(e, f2 + 2);
if (k2 !== -1) {
if (e.charCodeAt(k2) === 47)
return ~(k2 + 1);
if (k2 === e.length)
return ~k2;
}
}
return ~(f2 + 1);
}
return ~e.length;
}
return 0;
}
function o_(e) {
let t = Uy(e);
return t < 0 ? ~t : t;
}
function Nm2(e, t, a3) {
if (e = c_(e), o_(e) === e.length)
return "";
e = hl2(e);
let f2 = e.slice(Math.max(o_(e), e.lastIndexOf(Xr3) + 1)), h = t !== undefined && a3 !== undefined ? Im2(f2, t, a3) : undefined;
return h ? f2.slice(0, f2.length - h.length) : f2;
}
function xd(e, t, a3) {
if (ml2(t, ".") || (t = "." + t), e.length >= t.length && e.charCodeAt(e.length - t.length) === 46) {
let _2 = e.slice(e.length - t.length);
if (a3(_2, t))
return _2;
}
}
function By(e, t, a3) {
if (typeof t == "string")
return xd(e, t, a3) || "";
for (let _2 of t) {
let f2 = xd(e, _2, a3);
if (f2)
return f2;
}
return "";
}
function Im2(e, t, a3) {
if (t)
return By(hl2(e), t, a3 ? $p2 : ky);
let _2 = Nm2(e), f2 = _2.lastIndexOf(".");
return f2 >= 0 ? _2.substring(f2) : "";
}
function c_(e) {
return e.includes("\\") ? e.replace(Ly, Xr3) : e;
}
function qy(e, ...t) {
e && (e = c_(e));
for (let a3 of t)
a3 && (a3 = c_(a3), !e || o_(a3) !== 0 ? e = a3 : e = Mm2(e) + a3);
return e;
}
function Fy(e, t) {
let a3 = o_(e);
a3 === 0 && t ? (e = qy(t, e), a3 = o_(e)) : e = c_(e);
let _2 = Om2(e);
if (_2 !== undefined)
return _2.length > a3 ? hl2(_2) : _2;
let f2 = e.length, h = e.substring(0, a3), T3, k2 = a3, c2 = k2, W3 = k2, y2 = a3 !== 0;
for (;k2 < f2; ) {
c2 = k2;
let G3 = e.charCodeAt(k2);
for (;G3 === 47 && k2 + 1 < f2; )
k2++, G3 = e.charCodeAt(k2);
k2 > c2 && (T3 ?? (T3 = e.substring(0, c2 - 1)), c2 = k2);
let E3 = e.indexOf(Xr3, k2 + 1);
E3 === -1 && (E3 = f2);
let D2 = E3 - c2;
if (D2 === 1 && e.charCodeAt(k2) === 46)
T3 ?? (T3 = e.substring(0, W3));
else if (D2 === 2 && e.charCodeAt(k2) === 46 && e.charCodeAt(k2 + 1) === 46)
if (!y2)
T3 !== undefined ? T3 += T3.length === a3 ? ".." : "/.." : W3 = k2 + 2;
else if (T3 === undefined)
W3 - 2 >= 0 ? T3 = e.substring(0, Math.max(a3, e.lastIndexOf(Xr3, W3 - 2))) : T3 = e.substring(0, W3);
else {
let R3 = T3.lastIndexOf(Xr3);
R3 !== -1 ? T3 = T3.substring(0, Math.max(a3, R3)) : T3 = h, T3.length === a3 && (y2 = a3 !== 0);
}
else
T3 !== undefined ? (T3.length !== a3 && (T3 += Xr3), y2 = true, T3 += e.substring(c2, E3)) : (y2 = true, W3 = E3);
k2 = E3 + 1;
}
return T3 ?? (f2 > a3 ? hl2(e) : e);
}
function zy(e) {
e = c_(e);
let t = Om2(e);
return t !== undefined ? t : (t = Fy(e, ""), t && ef(e) ? Mm2(t) : t);
}
function Om2(e) {
if (!Sd.test(e))
return e;
let t = e.replace(/\/\.\//g, "/");
if (t.startsWith("./") && (t = t.slice(2)), t !== e && (e = t, !Sd.test(e)))
return e;
}
function hl2(e) {
return ef(e) ? e.substr(0, e.length - 1) : e;
}
function Mm2(e) {
return ef(e) ? e : e + Xr3;
}
var Sd = /\/\/|(?:^|\/)\.\.?(?:$|\/)/;
function r(e, t, a3, _2, f2, h, T3) {
return { code: e, category: t, key: a3, message: _2, reportsUnnecessary: f2, elidedInCompatabilityPyramid: h, reportsDeprecated: T3 };
}
var A2 = { Unterminated_string_literal: r(1002, 1, "Unterminated_string_literal_1002", "Unterminated string literal."), Identifier_expected: r(1003, 1, "Identifier_expected_1003", "Identifier expected."), _0_expected: r(1005, 1, "_0_expected_1005", "'{0}' expected."), A_file_cannot_have_a_reference_to_itself: r(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: r(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: r(1009, 1, "Trailing_comma_not_allowed_1009", "Trailing comma not allowed."), Asterisk_Slash_expected: r(1010, 1, "Asterisk_Slash_expected_1010", "'*/' expected."), An_element_access_expression_should_take_an_argument: r(1011, 1, "An_element_access_expression_should_take_an_argument_1011", "An element access expression should take an argument."), Unexpected_token: r(1012, 1, "Unexpected_token_1012", "Unexpected token."), A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(1025, 1, "An_index_signature_cannot_have_a_trailing_comma_1025", "An index signature cannot have a trailing comma."), Accessibility_modifier_already_seen: r(1028, 1, "Accessibility_modifier_already_seen_1028", "Accessibility modifier already seen."), _0_modifier_must_precede_1_modifier: r(1029, 1, "_0_modifier_must_precede_1_modifier_1029", "'{0}' modifier must precede '{1}' modifier."), _0_modifier_already_seen: r(1030, 1, "_0_modifier_already_seen_1030", "'{0}' modifier already seen."), _0_modifier_cannot_appear_on_class_elements_of_this_kind: r(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: r(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: r(1035, 1, "Only_ambient_modules_can_use_quoted_names_1035", "Only ambient modules can use quoted names."), Statements_are_not_allowed_in_ambient_contexts: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(1047, 1, "A_rest_parameter_cannot_be_optional_1047", "A rest parameter cannot be optional."), A_rest_parameter_cannot_have_an_initializer: r(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: r(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: r(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: r(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: r(1053, 1, "A_set_accessor_cannot_have_rest_parameter_1053", "A 'set' accessor cannot have rest parameter."), A_get_accessor_cannot_have_parameters: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(1084, 1, "Invalid_reference_directive_syntax_1084", "Invalid 'reference' directive syntax."), _0_modifier_cannot_appear_on_a_constructor_declaration: r(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: r(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: r(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: r(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: r(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: r(1094, 1, "An_accessor_cannot_have_type_parameters_1094", "An accessor cannot have type parameters."), A_set_accessor_cannot_have_a_return_type_annotation: r(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: r(1096, 1, "An_index_signature_must_have_exactly_one_parameter_1096", "An index signature must have exactly one parameter."), _0_list_cannot_be_empty: r(1097, 1, "_0_list_cannot_be_empty_1097", "'{0}' list cannot be empty."), Type_parameter_list_cannot_be_empty: r(1098, 1, "Type_parameter_list_cannot_be_empty_1098", "Type parameter list cannot be empty."), Type_argument_list_cannot_be_empty: r(1099, 1, "Type_argument_list_cannot_be_empty_1099", "Type argument list cannot be empty."), Invalid_use_of_0_in_strict_mode: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(1109, 1, "Expression_expected_1109", "Expression expected."), Type_expected: r(1110, 1, "Type_expected_1110", "Type expected."), Private_field_0_must_be_declared_in_an_enclosing_class: r(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: r(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: r(1114, 1, "Duplicate_label_0_1114", "Duplicate label '{0}'."), A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: r(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: r(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: r(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: r(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: r(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: r(1120, 1, "An_export_assignment_cannot_have_modifiers_1120", "An export assignment cannot have modifiers."), Octal_literals_are_not_allowed_Use_the_syntax_0: r(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: r(1123, 1, "Variable_declaration_list_cannot_be_empty_1123", "Variable declaration list cannot be empty."), Digit_expected: r(1124, 1, "Digit_expected_1124", "Digit expected."), Hexadecimal_digit_expected: r(1125, 1, "Hexadecimal_digit_expected_1125", "Hexadecimal digit expected."), Unexpected_end_of_text: r(1126, 1, "Unexpected_end_of_text_1126", "Unexpected end of text."), Invalid_character: r(1127, 1, "Invalid_character_1127", "Invalid character."), Declaration_or_statement_expected: r(1128, 1, "Declaration_or_statement_expected_1128", "Declaration or statement expected."), Statement_expected: r(1129, 1, "Statement_expected_1129", "Statement expected."), case_or_default_expected: r(1130, 1, "case_or_default_expected_1130", "'case' or 'default' expected."), Property_or_signature_expected: r(1131, 1, "Property_or_signature_expected_1131", "Property or signature expected."), Enum_member_expected: r(1132, 1, "Enum_member_expected_1132", "Enum member expected."), Variable_declaration_expected: r(1134, 1, "Variable_declaration_expected_1134", "Variable declaration expected."), Argument_expression_expected: r(1135, 1, "Argument_expression_expected_1135", "Argument expression expected."), Property_assignment_expected: r(1136, 1, "Property_assignment_expected_1136", "Property assignment expected."), Expression_or_comma_expected: r(1137, 1, "Expression_or_comma_expected_1137", "Expression or comma expected."), Parameter_declaration_expected: r(1138, 1, "Parameter_declaration_expected_1138", "Parameter declaration expected."), Type_parameter_declaration_expected: r(1139, 1, "Type_parameter_declaration_expected_1139", "Type parameter declaration expected."), Type_argument_expected: r(1140, 1, "Type_argument_expected_1140", "Type argument expected."), String_literal_expected: r(1141, 1, "String_literal_expected_1141", "String literal expected."), Line_break_not_permitted_here: r(1142, 1, "Line_break_not_permitted_here_1142", "Line break not permitted here."), or_expected: r(1144, 1, "or_expected_1144", "'{' or ';' expected."), or_JSX_element_expected: r(1145, 1, "or_JSX_element_expected_1145", "'{' or JSX element expected."), Declaration_expected: r(1146, 1, "Declaration_expected_1146", "Declaration expected."), Import_declarations_in_a_namespace_cannot_reference_a_module: r(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: r(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: r(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: r(1155, 1, "_0_declarations_must_be_initialized_1155", "'{0}' declarations must be initialized."), _0_declarations_can_only_be_declared_inside_a_block: r(1156, 1, "_0_declarations_can_only_be_declared_inside_a_block_1156", "'{0}' declarations can only be declared inside a block."), Unterminated_template_literal: r(1160, 1, "Unterminated_template_literal_1160", "Unterminated template literal."), Unterminated_regular_expression_literal: r(1161, 1, "Unterminated_regular_expression_literal_1161", "Unterminated regular expression literal."), An_object_member_cannot_be_declared_optional: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(1172, 1, "extends_clause_already_seen_1172", "'extends' clause already seen."), extends_clause_must_precede_implements_clause: r(1173, 1, "extends_clause_must_precede_implements_clause_1173", "'extends' clause must precede 'implements' clause."), Classes_can_only_extend_a_single_class: r(1174, 1, "Classes_can_only_extend_a_single_class_1174", "Classes can only extend a single class."), implements_clause_already_seen: r(1175, 1, "implements_clause_already_seen_1175", "'implements' clause already seen."), Interface_declaration_cannot_have_implements_clause: r(1176, 1, "Interface_declaration_cannot_have_implements_clause_1176", "Interface declaration cannot have 'implements' clause."), Binary_digit_expected: r(1177, 1, "Binary_digit_expected_1177", "Binary digit expected."), Octal_digit_expected: r(1178, 1, "Octal_digit_expected_1178", "Octal digit expected."), Unexpected_token_expected: r(1179, 1, "Unexpected_token_expected_1179", "Unexpected token. '{' expected."), Property_destructuring_pattern_expected: r(1180, 1, "Property_destructuring_pattern_expected_1180", "Property destructuring pattern expected."), Array_element_destructuring_pattern_expected: r(1181, 1, "Array_element_destructuring_pattern_expected_1181", "Array element destructuring pattern expected."), A_destructuring_declaration_must_have_an_initializer: r(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: r(1183, 1, "An_implementation_cannot_be_declared_in_ambient_contexts_1183", "An implementation cannot be declared in ambient contexts."), Modifiers_cannot_appear_here: r(1184, 1, "Modifiers_cannot_appear_here_1184", "Modifiers cannot appear here."), Merge_conflict_marker_encountered: r(1185, 1, "Merge_conflict_marker_encountered_1185", "Merge conflict marker encountered."), A_rest_element_cannot_have_an_initializer: r(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: r(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: r(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: r(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: r(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: r(1191, 1, "An_import_declaration_cannot_have_modifiers_1191", "An import declaration cannot have modifiers."), Module_0_has_no_default_export: r(1192, 1, "Module_0_has_no_default_export_1192", "Module '{0}' has no default export."), An_export_declaration_cannot_have_modifiers: r(1193, 1, "An_export_declaration_cannot_have_modifiers_1193", "An export declaration cannot have modifiers."), Export_declarations_are_not_permitted_in_a_namespace: r(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: r(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: r(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: r(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: r(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: r(1199, 1, "Unterminated_Unicode_escape_sequence_1199", "Unterminated Unicode escape sequence."), Line_terminator_not_permitted_before_arrow: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(1223, 1, "_0_tag_already_specified_1223", "'{0}' tag already specified."), Signature_0_must_be_a_type_predicate: r(1224, 1, "Signature_0_must_be_a_type_predicate_1224", "Signature '{0}' must be a type predicate."), Cannot_find_parameter_0: r(1225, 1, "Cannot_find_parameter_0_1225", "Cannot find parameter '{0}'."), Type_predicate_0_is_not_assignable_to_1: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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."), ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax: r(1286, 1, "ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286", "ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."), A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled: r(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: r(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: r(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: r(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: r(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: r(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 }'."), ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve: r(1293, 1, "ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293", "ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."), This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled: r(1294, 1, "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294", "This syntax is not allowed when 'erasableSyntaxOnly' is enabled."), ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript: r(1295, 1, "ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295", "ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."), with_statements_are_not_allowed_in_an_async_function_block: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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_node20_or_nodenext: r(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', 'node20', or 'nodenext'."), Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve: r(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', 'node20', 'nodenext', or 'preserve'."), Argument_of_dynamic_import_cannot_be_spread_element: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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_node20_or_nodenext: r(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', 'node20', or 'nodenext'."), A_label_is_not_allowed_here: r(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: r(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: r(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: r(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: r(1348, 1, "Non_simple_parameter_declared_here_1348", "Non-simple parameter declared here."), use_strict_directive_used_here: r(1349, 1, "use_strict_directive_used_here_1349", "'use strict' directive used here."), Print_the_final_configuration_instead_of_building: r(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: r(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: r(1352, 1, "A_bigint_literal_cannot_use_exponential_notation_1352", "A bigint literal cannot use exponential notation."), A_bigint_literal_must_be_an_integer: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(1364, 3, "Convert_to_type_only_export_1364", "Convert to type-only export"), Convert_all_re_exported_types_to_type_only_exports: r(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: r(1366, 3, "Split_into_two_separate_import_declarations_1366", "Split into two separate import declarations"), Split_all_invalid_type_only_imports: r(1367, 3, "Split_all_invalid_type_only_imports_1367", "Split all invalid type-only imports"), Class_constructor_may_not_be_a_generator: r(1368, 1, "Class_constructor_may_not_be_a_generator_1368", "Class constructor may not be a generator."), Did_you_mean_0: r(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: r(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: r(1376, 3, "_0_was_imported_here_1376", "'{0}' was imported here."), _0_was_exported_here: r(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_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: r(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', 'node20', '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: r(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: r(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: r(1381, 1, "Unexpected_token_Did_you_mean_or_rbrace_1381", "Unexpected token. Did you mean `{'}'}` or `}`?"), Unexpected_token_Did_you_mean_or_gt: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(1392, 1, "An_import_alias_cannot_use_import_type_1392", "An import alias cannot use 'import type'"), Imported_via_0_from_file_1: r(1393, 3, "Imported_via_0_from_file_1_1393", "Imported via {0} from file '{1}'"), Imported_via_0_from_file_1_with_packageId_2: r(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: r(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: r(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: r(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: r(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: r(1399, 3, "File_is_included_via_import_here_1399", "File is included via import here."), Referenced_via_0_from_file_1: r(1400, 3, "Referenced_via_0_from_file_1_1400", "Referenced via '{0}' from file '{1}'"), File_is_included_via_reference_here: r(1401, 3, "File_is_included_via_reference_here_1401", "File is included via reference here."), Type_library_referenced_via_0_from_file_1: r(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: r(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: r(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: r(1405, 3, "Library_referenced_via_0_from_file_1_1405", "Library referenced via '{0}' from file '{1}'"), File_is_included_via_library_reference_here: r(1406, 3, "File_is_included_via_library_reference_here_1406", "File is included via library reference here."), Matched_by_include_pattern_0_in_1: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(1422, 3, "Library_0_specified_in_compilerOptions_1422", "Library '{0}' specified in compilerOptions"), File_is_library_specified_here: r(1423, 3, "File_is_library_specified_here_1423", "File is library specified here."), Default_library: r(1424, 3, "Default_library_1424", "Default library"), Default_library_for_target_0: r(1425, 3, "Default_library_for_target_0_1425", "Default library for target '{0}'"), File_is_default_library_for_target_specified_here: r(1426, 3, "File_is_default_library_for_target_specified_here_1426", "File is default library for target specified here."), Root_file_specified_for_compilation: r(1427, 3, "Root_file_specified_for_compilation_1427", "Root file specified for compilation"), File_is_output_of_project_reference_source_0: r(1428, 3, "File_is_output_of_project_reference_source_0_1428", "File is output of project reference source '{0}'"), File_redirects_to_file_0: r(1429, 3, "File_redirects_to_file_0_1429", "File redirects to file '{0}'"), The_file_is_in_the_program_because_Colon: r(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: r(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_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: r(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', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."), Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters: r(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: r(1434, 1, "Unexpected_keyword_or_identifier_1434", "Unexpected keyword or identifier."), Unknown_keyword_or_identifier_Did_you_mean_0: r(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: r(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: r(1437, 1, "Namespace_must_be_given_a_name_1437", "Namespace must be given a name."), Interface_must_be_given_a_name: r(1438, 1, "Interface_must_be_given_a_name_1438", "Interface must be given a name."), Type_alias_must_be_given_a_name: r(1439, 1, "Type_alias_must_be_given_a_name_1439", "Type alias must be given a name."), Variable_declaration_not_allowed_at_this_location: r(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: r(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: r(1442, 1, "Expected_for_property_initializer_1442", "Expected '=' for property initializer."), Module_declaration_names_may_only_use_or_quoted_strings: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(1486, 1, "Decorator_used_before_export_here_1486", "Decorator used before 'export' here."), Octal_escape_sequences_are_not_allowed_Use_the_syntax_0: r(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: r(1488, 1, "Escape_sequence_0_is_not_allowed_1488", "Escape sequence '{0}' is not allowed."), Decimals_with_leading_zeros_are_not_allowed: r(1489, 1, "Decimals_with_leading_zeros_are_not_allowed_1489", "Decimals with leading zeros are not allowed."), File_appears_to_be_binary: r(1490, 1, "File_appears_to_be_binary_1490", "File appears to be binary."), _0_modifier_cannot_appear_on_a_using_declaration: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(1498, 1, "Invalid_syntax_in_decorator_1498", "Invalid syntax in decorator."), Unknown_regular_expression_flag: r(1499, 1, "Unknown_regular_expression_flag_1499", "Unknown regular expression flag."), Duplicate_regular_expression_flag: r(1500, 1, "Duplicate_regular_expression_flag_1500", "Duplicate regular expression flag."), This_regular_expression_flag_is_only_available_when_targeting_0_or_later: r(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: r(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: r(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: r(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: r(1505, 1, "Incomplete_quantifier_Digit_expected_1505", "Incomplete quantifier. Digit expected."), Numbers_out_of_order_in_quantifier: r(1506, 1, "Numbers_out_of_order_in_quantifier_1506", "Numbers out of order in quantifier."), There_is_nothing_available_for_repetition: r(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: r(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: r(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: r(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: r(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: r(1512, 1, "c_must_be_followed_by_an_ASCII_letter_1512", "'\\c' must be followed by an ASCII letter."), Undetermined_character_escape: r(1513, 1, "Undetermined_character_escape_1513", "Undetermined character escape."), Expected_a_capturing_group_name: r(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: r(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: r(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: r(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: r(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: r(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: r(1520, 1, "Expected_a_class_set_operand_1520", "Expected a class set operand."), q_must_be_followed_by_string_alternatives_enclosed_in_braces: r(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: r(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: r(1523, 1, "Expected_a_Unicode_property_name_1523", "Expected a Unicode property name."), Unknown_Unicode_property_name: r(1524, 1, "Unknown_Unicode_property_name_1524", "Unknown Unicode property name."), Expected_a_Unicode_property_value: r(1525, 1, "Expected_a_Unicode_property_value_1525", "Expected a Unicode property value."), Unknown_Unicode_property_value: r(1526, 1, "Unknown_Unicode_property_value_1526", "Unknown Unicode property value."), Expected_a_Unicode_property_name_or_value: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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.", undefined, undefined, true), Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute: r(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: r(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: r(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: r(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}'."), using_declarations_are_not_allowed_in_ambient_contexts: r(1545, 1, "using_declarations_are_not_allowed_in_ambient_contexts_1545", "'using' declarations are not allowed in ambient contexts."), await_using_declarations_are_not_allowed_in_ambient_contexts: r(1546, 1, "await_using_declarations_are_not_allowed_in_ambient_contexts_1546", "'await using' declarations are not allowed in ambient contexts."), The_types_of_0_are_incompatible_between_these_types: r(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: r(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: r(2202, 1, "Call_signature_return_types_0_and_1_are_incompatible_2202", "Call signature return types '{0}' and '{1}' are incompatible.", undefined, true), Construct_signature_return_types_0_and_1_are_incompatible: r(2203, 1, "Construct_signature_return_types_0_and_1_are_incompatible_2203", "Construct signature return types '{0}' and '{1}' are incompatible.", undefined, true), Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1: r(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}'.", undefined, true), Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1: r(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}'.", undefined, true), The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement: r(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: r(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: r(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: r(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: r(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: r(2211, 3, "Add_extends_constraint_2211", "Add `extends` constraint."), Add_extends_constraint_to_all_type_parameters: r(2212, 3, "Add_extends_constraint_to_all_type_parameters_2212", "Add `extends` constraint to all type parameters"), Duplicate_identifier_0: r(2300, 1, "Duplicate_identifier_0_2300", "Duplicate identifier '{0}'."), Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: r(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: r(2302, 1, "Static_members_cannot_reference_class_type_parameters_2302", "Static members cannot reference class type parameters."), Circular_definition_of_import_alias_0: r(2303, 1, "Circular_definition_of_import_alias_0_2303", "Circular definition of import alias '{0}'."), Cannot_find_name_0: r(2304, 1, "Cannot_find_name_0_2304", "Cannot find name '{0}'."), Module_0_has_no_exported_member_1: r(2305, 1, "Module_0_has_no_exported_member_1_2305", "Module '{0}' has no exported member '{1}'."), File_0_is_not_a_module: r(2306, 1, "File_0_is_not_a_module_2306", "File '{0}' is not a module."), Cannot_find_module_0_or_its_corresponding_type_declarations: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2314, 1, "Generic_type_0_requires_1_type_argument_s_2314", "Generic type '{0}' requires {1} type argument(s)."), Type_0_is_not_generic: r(2315, 1, "Type_0_is_not_generic_2315", "Type '{0}' is not generic."), Global_type_0_must_be_a_class_or_interface_type: r(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: r(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: r(2318, 1, "Cannot_find_global_type_0_2318", "Cannot find global type '{0}'."), Named_property_0_of_types_1_and_2_are_not_identical: r(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: r(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: r(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: r(2322, 1, "Type_0_is_not_assignable_to_type_1_2322", "Type '{0}' is not assignable to type '{1}'."), Cannot_redeclare_exported_variable_0: r(2323, 1, "Cannot_redeclare_exported_variable_0_2323", "Cannot redeclare exported variable '{0}'."), Property_0_is_missing_in_type_1: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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}'."), Call_target_does_not_contain_any_signatures: r(2346, 1, "Call_target_does_not_contain_any_signatures_2346", "Call target does not contain any signatures."), Untyped_function_calls_may_not_accept_type_arguments: r(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: r(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: r(2349, 1, "This_expression_is_not_callable_2349", "This expression is not callable."), Only_a_void_function_can_be_called_with_the_new_keyword: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2372, 1, "Parameter_0_cannot_reference_itself_2372", "Parameter '{0}' cannot reference itself."), Parameter_0_cannot_reference_identifier_1_declared_after_it: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2386, 1, "Overload_signatures_must_all_be_optional_or_required_2386", "Overload signatures must all be optional or required."), Function_overload_must_be_static: r(2387, 1, "Function_overload_must_be_static_2387", "Function overload must be static."), Function_overload_must_not_be_static: r(2388, 1, "Function_overload_must_not_be_static_2388", "Function overload must not be static."), Function_implementation_name_must_be_0: r(2389, 1, "Function_implementation_name_must_be_0_2389", "Function implementation name must be '{0}'."), Constructor_implementation_is_missing: r(2390, 1, "Constructor_implementation_is_missing_2390", "Constructor implementation is missing."), Function_implementation_is_missing_or_not_immediately_following_the_declaration: r(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: r(2392, 1, "Multiple_constructor_implementations_are_not_allowed_2392", "Multiple constructor implementations are not allowed."), Duplicate_function_implementation: r(2393, 1, "Duplicate_function_implementation_2393", "Duplicate function implementation."), This_overload_signature_is_not_compatible_with_its_implementation_signature: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2414, 1, "Class_name_cannot_be_0_2414", "Class name cannot be '{0}'."), Class_0_incorrectly_extends_base_class_1: r(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: r(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: r(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: r(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: r(2419, 1, "Types_of_construct_signatures_are_incompatible_2419", "Types of construct signatures are incompatible."), Class_0_incorrectly_implements_interface_1: r(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: r(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: r(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: r(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: r(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: r(2427, 1, "Interface_name_cannot_be_0_2427", "Interface name cannot be '{0}'."), All_declarations_of_0_must_have_identical_type_parameters: r(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: r(2430, 1, "Interface_0_incorrectly_extends_interface_1_2430", "Interface '{0}' incorrectly extends interface '{1}'."), Enum_name_cannot_be_0: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2449, 1, "Class_0_used_before_its_declaration_2449", "Class '{0}' used before its declaration."), Enum_0_used_before_its_declaration: r(2450, 1, "Enum_0_used_before_its_declaration_2450", "Enum '{0}' used before its declaration."), Cannot_redeclare_block_scoped_variable_0: r(2451, 1, "Cannot_redeclare_block_scoped_variable_0_2451", "Cannot redeclare block-scoped variable '{0}'."), An_enum_member_cannot_have_a_numeric_name: r(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: r(2454, 1, "Variable_0_is_used_before_being_assigned_2454", "Variable '{0}' is used before being assigned."), Type_alias_0_circularly_references_itself: r(2456, 1, "Type_alias_0_circularly_references_itself_2456", "Type alias '{0}' circularly references itself."), Type_alias_name_cannot_be_0: r(2457, 1, "Type_alias_name_cannot_be_0_2457", "Type alias name cannot be '{0}'."), An_AMD_module_cannot_have_multiple_name_assignments: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2468, 1, "Cannot_find_global_value_0_2468", "Cannot find global value '{0}'."), The_0_operator_cannot_be_applied_to_type_symbol: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2503, 1, "Cannot_find_namespace_0_2503", "Cannot find namespace '{0}'."), Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2530, 1, "Property_0_is_incompatible_with_index_signature_2530", "Property '{0}' is incompatible with index signature."), Object_is_possibly_null: r(2531, 1, "Object_is_possibly_null_2531", "Object is possibly 'null'."), Object_is_possibly_undefined: r(2532, 1, "Object_is_possibly_undefined_2532", "Object is possibly 'undefined'."), Object_is_possibly_null_or_undefined: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2554, 1, "Expected_0_arguments_but_got_1_2554", "Expected {0} arguments, but got {1}."), Expected_at_least_0_arguments_but_got_1: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2571, 1, "Object_is_of_type_unknown_2571", "Object is of type 'unknown'."), A_rest_element_type_must_be_an_array_type: r(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: r(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: r(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: r(2577, 1, "Return_type_annotation_circularly_references_itself_2577", "Return type annotation circularly references itself."), Unused_ts_expect_error_directive: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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.", true), The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2708, 1, "Cannot_use_namespace_0_as_a_value_2708", "Cannot use namespace '{0}' as a value."), Cannot_use_namespace_0_as_a_type: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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_and_above_with_module_0: r(2725, 1, "Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725", "Class name cannot be 'Object' when targeting ES5 and above with module {0}."), Cannot_find_lib_definition_for_0: r(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: r(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: r(2728, 3, "_0_is_declared_here_2728", "'{0}' is declared here."), Property_0_is_used_before_its_initialization: r(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: r(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: r(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: r(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: r(2733, 1, "Property_0_was_also_declared_here_2733", "Property '{0}' was also declared here."), Are_you_missing_a_semicolon: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2750, 1, "The_implementation_signature_is_declared_here_2750", "The implementation signature is declared here."), Circularity_originates_in_type_at_this_location: r(2751, 1, "Circularity_originates_in_type_at_this_location_2751", "Circularity originates in type at this location."), The_first_export_default_is_here: r(2752, 1, "The_first_export_default_is_here_2752", "The first export default is here."), Another_export_default_is_here: r(2753, 1, "Another_export_default_is_here_2753", "Another export default is here."), super_may_not_use_type_arguments: r(2754, 1, "super_may_not_use_type_arguments_2754", "'super' may not use type arguments."), No_constituent_of_type_0_is_callable: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2769, 1, "No_overload_matches_this_call_2769", "No overload matches this call."), The_last_overload_gave_the_following_error: r(2770, 1, "The_last_overload_gave_the_following_error_2770", "The last overload gave the following error."), The_last_overload_is_declared_here: r(2771, 1, "The_last_overload_is_declared_here_2771", "The last overload is declared here."), Overload_0_of_1_2_gave_the_following_error: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2785, 1, "This_spread_always_overwrites_this_property_2785", "This spread always overwrites this property."), _0_cannot_be_used_as_a_JSX_component: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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_or_class_static_initialization_blocks: r(2815, 1, "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815", "'arguments' cannot be referenced in property initializers or class static initialization blocks."), Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class: r(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: r(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: r(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: r(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: r(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_node20_nodenext_or_preserve: r(2821, 1, "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821", "Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."), Import_assertions_cannot_be_used_with_type_only_imports_or_exports: r(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_node20_nodenext_or_preserve: r(2823, 1, "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823", "Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."), Cannot_find_namespace_0_Did_you_mean_1: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: r(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', 'node20', '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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(2871, 1, "This_expression_is_always_nullish_2871", "This expression is always nullish."), This_kind_of_expression_is_always_truthy: r(2872, 1, "This_kind_of_expression_is_always_truthy_2872", "This kind of expression is always truthy."), This_kind_of_expression_is_always_falsy: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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'."), This_expression_is_never_nullish: r(2881, 1, "This_expression_is_never_nullish_2881", "This expression is never nullish."), Import_declaration_0_is_using_private_name_1: r(4000, 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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(4109, 1, "Type_arguments_for_0_circularly_reference_themselves_4109", "Type arguments for '{0}' circularly reference themselves."), Tuple_type_arguments_circularly_reference_themselves: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(5012, 1, "Cannot_read_file_0_Colon_1_5012", "Cannot read file '{0}': {1}."), Unknown_compiler_option_0: r(5023, 1, "Unknown_compiler_option_0_5023", "Unknown compiler option '{0}'."), Compiler_option_0_requires_a_value_of_type_1: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(5072, 1, "Unknown_build_option_0_5072", "Unknown build option '{0}'."), Build_option_0_requires_a_value_of_type_1: r(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: r(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: r(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: r(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: r(5077, 1, "Unknown_build_option_0_Did_you_mean_1_5077", "Unknown build option '{0}'. Did you mean '{1}'?"), Unknown_watch_option_0: r(5078, 1, "Unknown_watch_option_0_5078", "Unknown watch option '{0}'."), Unknown_watch_option_0_Did_you_mean_1: r(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: r(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: r(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: r(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: r(5083, 1, "Cannot_read_file_0_5083", "Cannot read file '{0}'."), A_tuple_member_cannot_be_both_optional_and_rest: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(5103, 1, "Invalid_value_for_ignoreDeprecations_5103", "Invalid value for '--ignoreDeprecations'."), Option_0_is_redundant_and_cannot_be_specified_with_option_1: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6000, 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: r(6001, 3, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."), Generates_corresponding_d_ts_file: r(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: r(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: r(6005, 3, "Watch_input_files_6005", "Watch input files."), Redirect_output_structure_to_the_directory: r(6006, 3, "Redirect_output_structure_to_the_directory_6006", "Redirect output structure to the directory."), Do_not_erase_const_enum_declarations_in_generated_code: r(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: r(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: r(6009, 3, "Do_not_emit_comments_to_output_6009", "Do not emit comments to output."), Do_not_emit_outputs: r(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: r(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: r(6012, 3, "Skip_type_checking_of_declaration_files_6012", "Skip type checking of declaration files."), Do_not_resolve_the_real_path_of_symlinks: r(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: r(6014, 3, "Only_emit_d_ts_declaration_files_6014", "Only emit '.d.ts' declaration files."), Specify_ECMAScript_target_version: r(6015, 3, "Specify_ECMAScript_target_version_6015", "Specify ECMAScript target version."), Specify_module_code_generation: r(6016, 3, "Specify_module_code_generation_6016", "Specify module code generation."), Print_this_message: r(6017, 3, "Print_this_message_6017", "Print this message."), Print_the_compiler_s_version: r(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: r(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: r(6023, 3, "Syntax_Colon_0_6023", "Syntax: {0}"), options: r(6024, 3, "options_6024", "options"), file: r(6025, 3, "file_6025", "file"), Examples_Colon_0: r(6026, 3, "Examples_Colon_0_6026", "Examples: {0}"), Options_Colon: r(6027, 3, "Options_Colon_6027", "Options:"), Version_0: r(6029, 3, "Version_0_6029", "Version {0}"), Insert_command_line_options_and_files_from_a_file: r(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: r(6031, 3, "Starting_compilation_in_watch_mode_6031", "Starting compilation in watch mode..."), File_change_detected_Starting_incremental_compilation: r(6032, 3, "File_change_detected_Starting_incremental_compilation_6032", "File change detected. Starting incremental compilation..."), KIND: r(6034, 3, "KIND_6034", "KIND"), FILE: r(6035, 3, "FILE_6035", "FILE"), VERSION: r(6036, 3, "VERSION_6036", "VERSION"), LOCATION: r(6037, 3, "LOCATION_6037", "LOCATION"), DIRECTORY: r(6038, 3, "DIRECTORY_6038", "DIRECTORY"), STRATEGY: r(6039, 3, "STRATEGY_6039", "STRATEGY"), FILE_OR_DIRECTORY: r(6040, 3, "FILE_OR_DIRECTORY_6040", "FILE OR DIRECTORY"), Errors_Files: r(6041, 3, "Errors_Files_6041", "Errors Files"), Generates_corresponding_map_file: r(6043, 3, "Generates_corresponding_map_file_6043", "Generates corresponding '.map' file."), Compiler_option_0_expects_an_argument: r(6044, 1, "Compiler_option_0_expects_an_argument_6044", "Compiler option '{0}' expects an argument."), Unterminated_quoted_string_in_response_file_0: r(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: r(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: r(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: r(6050, 1, "Unable_to_open_file_0_6050", "Unable to open file '{0}'."), Corrupted_locale_file_0: r(6051, 1, "Corrupted_locale_file_0_6051", "Corrupted locale file {0}."), Raise_error_on_expressions_and_declarations_with_an_implied_any_type: r(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: r(6053, 1, "File_0_not_found_6053", "File '{0}' not found."), File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1: r(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: r(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: r(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: r(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: r(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: r(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: r(6061, 3, "NEWLINE_6061", "NEWLINE"), Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line: r(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: r(6065, 3, "Enables_experimental_support_for_ES7_decorators_6065", "Enables experimental support for ES7 decorators."), Enables_experimental_support_for_emitting_type_metadata_for_decorators: r(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: r(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: r(6071, 3, "Successfully_created_a_tsconfig_json_file_6071", "Successfully created a tsconfig.json file."), Suppress_excess_property_checks_for_object_literals: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6080, 3, "Specify_JSX_code_generation_6080", "Specify JSX code generation."), Only_amd_and_system_modules_are_supported_alongside_0: r(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: r(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: r(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: r(6085, 3, "Enable_tracing_of_the_name_resolution_process_6085", "Enable tracing of the name resolution process."), Resolving_module_0_from_1: r(6086, 3, "Resolving_module_0_from_1_6086", "======== Resolving module '{0}' from '{1}'. ========"), Explicitly_specified_module_resolution_kind_Colon_0: r(6087, 3, "Explicitly_specified_module_resolution_kind_Colon_0_6087", "Explicitly specified module resolution kind: '{0}'."), Module_resolution_kind_is_not_specified_using_0: r(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: r(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: r(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: r(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: r(6092, 3, "Module_name_0_matched_pattern_1_6092", "Module name '{0}', matched pattern '{1}'."), Trying_substitution_0_candidate_module_location_Colon_1: r(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: r(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: r(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: r(6096, 3, "File_0_does_not_exist_6096", "File '{0}' does not exist."), File_0_exists_use_it_as_a_name_resolution_result: r(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: r(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: r(6099, 3, "Found_package_json_at_0_6099", "Found 'package.json' at '{0}'."), package_json_does_not_have_a_0_field: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6110, 3, "Trying_other_entries_in_rootDirs_6110", "Trying other entries in 'rootDirs'."), Module_resolution_using_rootDirs_has_failed: r(6111, 3, "Module_resolution_using_rootDirs_has_failed_6111", "Module resolution using 'rootDirs' has failed."), Do_not_emit_use_strict_directives_in_module_output: r(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: r(6113, 3, "Enable_strict_null_checks_6113", "Enable strict null checks."), Unknown_option_excludes_Did_you_mean_exclude: r(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: r(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: r(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: r(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: r(6120, 3, "Type_reference_directive_0_was_not_resolved_6120", "======== Type reference directive '{0}' was not resolved. ========"), Resolving_with_primary_search_path_0: r(6121, 3, "Resolving_with_primary_search_path_0_6121", "Resolving with primary search path '{0}'."), Root_directory_cannot_be_determined_skipping_primary_search_paths: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6133, 1, "_0_is_declared_but_its_value_is_never_read_6133", "'{0}' is declared but its value is never read.", true), Report_errors_on_unused_locals: r(6134, 3, "Report_errors_on_unused_locals_6134", "Report errors on unused locals."), Report_errors_on_unused_parameters: r(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: r(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: r(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: r(6138, 1, "Property_0_is_declared_but_its_value_is_never_read_6138", "Property '{0}' is declared but its value is never read.", true), Import_emit_helpers_from_tslib: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6149, 3, "Show_diagnostic_information_6149", "Show diagnostic information."), Show_verbose_diagnostic_information: r(6150, 3, "Show_verbose_diagnostic_information_6150", "Show verbose diagnostic information."), Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6162, 3, "Disable_size_limitations_on_JavaScript_projects_6162", "Disable size limitations on JavaScript projects."), The_character_set_of_the_input_files: r(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: r(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: r(6165, 3, "Do_not_truncate_error_messages_6165", "Do not truncate error messages."), Output_directory_for_generated_declaration_files: r(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: r(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: r(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: r(6169, 3, "Show_all_compiler_options_6169", "Show all compiler options."), Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file: r(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: r(6171, 3, "Command_line_Options_6171", "Command-line Options"), Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5: r(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: r(6180, 3, "Enable_all_strict_type_checking_options_6180", "Enable all strict type-checking options."), Scoped_package_detected_looking_in_0: r(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: r(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: r(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: r(6186, 3, "Enable_strict_checking_of_function_types_6186", "Enable strict checking of function types."), Enable_strict_checking_of_property_initialization_in_classes: r(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: r(6188, 1, "Numeric_separators_are_not_allowed_here_6188", "Numeric separators are not allowed here."), Multiple_consecutive_numeric_separators_are_not_permitted: r(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: r(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: r(6192, 1, "All_imports_in_import_declaration_are_unused_6192", "All imports in import declaration are unused.", true), Found_1_error_Watching_for_file_changes: r(6193, 3, "Found_1_error_Watching_for_file_changes_6193", "Found 1 error. Watching for file changes."), Found_0_errors_Watching_for_file_changes: r(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: r(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: r(6196, 1, "_0_is_declared_but_never_used_6196", "'{0}' is declared but never used.", true), Include_modules_imported_with_json_extension: r(6197, 3, "Include_modules_imported_with_json_extension_6197", "Include modules imported with '.json' extension"), All_destructured_elements_are_unused: r(6198, 1, "All_destructured_elements_are_unused_6198", "All destructured elements are unused.", true), All_variables_are_unused: r(6199, 1, "All_variables_are_unused_6199", "All variables are unused.", true), Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0: r(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: r(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: r(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: r(6203, 3, "_0_was_also_declared_here_6203", "'{0}' was also declared here."), and_here: r(6204, 3, "and_here_6204", "and here."), All_type_parameters_are_unused: r(6205, 1, "All_type_parameters_are_unused_6205", "All type parameters are unused."), package_json_has_a_typesVersions_field_with_version_specific_path_mappings: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6215, 3, "Using_compiler_options_of_project_reference_redirect_0_6215", "Using compiler options of project reference redirect '{0}'."), Found_1_error: r(6216, 3, "Found_1_error_6216", "Found 1 error."), Found_0_errors: r(6217, 3, "Found_0_errors_6217", "Found {0} errors."), Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2: r(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: r(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: r(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: r(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: r(6222, 3, "Emit_class_fields_with_Define_instead_of_Set_6222", "Emit class fields with Define instead of Set."), Generates_a_CPU_profile: r(6223, 3, "Generates_a_CPU_profile_6223", "Generates a CPU profile."), Disable_solution_searching_for_this_project: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6235, 3, "Disable_loading_referenced_projects_6235", "Disable loading referenced projects."), Arguments_for_the_rest_parameter_0_were_not_provided: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6243, 3, "Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243", "Interpret optional property types as written, rather than adding 'undefined'."), Modules: r(6244, 3, "Modules_6244", "Modules"), File_Management: r(6245, 3, "File_Management_6245", "File Management"), Emit: r(6246, 3, "Emit_6246", "Emit"), JavaScript_Support: r(6247, 3, "JavaScript_Support_6247", "JavaScript Support"), Type_Checking: r(6248, 3, "Type_Checking_6248", "Type Checking"), Editor_Support: r(6249, 3, "Editor_Support_6249", "Editor Support"), Watch_and_Build_Modes: r(6250, 3, "Watch_and_Build_Modes_6250", "Watch and Build Modes"), Compiler_Diagnostics: r(6251, 3, "Compiler_Diagnostics_6251", "Compiler Diagnostics"), Interop_Constraints: r(6252, 3, "Interop_Constraints_6252", "Interop Constraints"), Backwards_Compatibility: r(6253, 3, "Backwards_Compatibility_6253", "Backwards Compatibility"), Language_and_Environment: r(6254, 3, "Language_and_Environment_6254", "Language and Environment"), Projects: r(6255, 3, "Projects_6255", "Projects"), Output_Formatting: r(6256, 3, "Output_Formatting_6256", "Output Formatting"), Completeness: r(6257, 3, "Completeness_6257", "Completeness"), _0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file: r(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: r(6259, 3, "Found_1_error_in_0_6259", "Found 1 error in {0}"), Found_0_errors_in_the_same_file_starting_at_Colon_1: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6281, 3, "package_json_has_a_peerDependencies_field_6281", "'package.json' has a 'peerDependencies' field."), Found_peerDependency_0_with_1_version: r(6282, 3, "Found_peerDependency_0_with_1_version_6282", "Found peerDependency '{0}' with '{1}' version."), Failed_to_find_peerDependency_0: r(6283, 3, "Failed_to_find_peerDependency_0_6283", "Failed to find peerDependency '{0}'."), File_Layout: r(6284, 3, "File_Layout_6284", "File Layout"), Environment_Settings: r(6285, 3, "Environment_Settings_6285", "Environment Settings"), See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule: r(6286, 3, "See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286", "See also https://aka.ms/tsconfig/module"), For_nodejs_Colon: r(6287, 3, "For_nodejs_Colon_6287", "For nodejs:"), and_npm_install_D_types_Slashnode: r(6290, 3, "and_npm_install_D_types_Slashnode_6290", "and npm install -D @types/node"), Other_Outputs: r(6291, 3, "Other_Outputs_6291", "Other Outputs"), Stricter_Typechecking_Options: r(6292, 3, "Stricter_Typechecking_Options_6292", "Stricter Typechecking Options"), Style_Options: r(6293, 3, "Style_Options_6293", "Style Options"), Recommended_Options: r(6294, 3, "Recommended_Options_6294", "Recommended Options"), Enable_project_compilation: r(6302, 3, "Enable_project_compilation_6302", "Enable project compilation"), Composite_projects_may_not_disable_declaration_emit: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6357, 3, "A_non_dry_build_would_build_project_0_6357", "A non-dry build would build project '{0}'"), Building_project_0: r(6358, 3, "Building_project_0_6358", "Building project '{0}'..."), Updating_output_timestamps_of_project_0: r(6359, 3, "Updating_output_timestamps_of_project_0_6359", "Updating output timestamps of project '{0}'..."), Project_0_is_up_to_date: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6370, 1, "Options_0_and_1_cannot_be_combined_6370", "Options '{0}' and '{1}' cannot be combined."), Updating_unchanged_output_timestamps_of_project_0: r(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: r(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: r(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: r(6379, 1, "Composite_projects_may_not_disable_incremental_compilation_6379", "Composite projects may not disable incremental compilation."), Specify_file_to_store_incremental_compilation_information: r(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: r(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: r(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: r(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: r(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: r(6385, 2, "_0_is_deprecated_6385", "'{0}' is deprecated.", undefined, undefined, true), Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found: r(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: r(6387, 2, "The_signature_0_of_1_is_deprecated_6387", "The signature '{0}' of '{1}' is deprecated.", undefined, undefined, true), Project_0_is_being_forcibly_rebuilt: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6402, 3, "Resolving_in_0_mode_with_conditions_1_6402", "Resolving in {0} mode with conditions {1}."), Matched_0_condition_1: r(6403, 3, "Matched_0_condition_1_6403", "Matched '{0}' condition '{1}'."), Using_0_subpath_1_with_target_2: r(6404, 3, "Using_0_subpath_1_with_target_2_6404", "Using '{0}' subpath '{1}' with target '{2}'."), Saw_non_matching_condition_0: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6413, 3, "Entering_conditional_exports_6413", "Entering conditional exports."), Resolved_under_condition_0: r(6414, 3, "Resolved_under_condition_0_6414", "Resolved under condition '{0}'."), Failed_to_resolve_under_condition_0: r(6415, 3, "Failed_to_resolve_under_condition_0_6415", "Failed to resolve under condition '{0}'."), Exiting_conditional_exports: r(6416, 3, "Exiting_conditional_exports_6416", "Exiting conditional exports."), Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6602, 3, "Allow_accessing_UMD_globals_from_modules_6602", "Allow accessing UMD globals from modules."), Disable_error_reporting_for_unreachable_code: r(6603, 3, "Disable_error_reporting_for_unreachable_code_6603", "Disable error reporting for unreachable code."), Disable_error_reporting_for_unused_labels: r(6604, 3, "Disable_error_reporting_for_unused_labels_6604", "Disable error reporting for unused labels."), Ensure_use_strict_is_always_emitted: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6614, 3, "Create_sourcemaps_for_d_ts_files_6614", "Create sourcemaps for d.ts files."), Output_compiler_performance_information_after_building: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6627, 3, "Filters_results_from_the_include_option_6627", "Filters results from the `include` option."), Remove_a_list_of_directories_from_the_watch_process: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6659, 3, "Set_the_newline_character_for_emitting_files_6659", "Set the newline character for emitting files."), Disable_emitting_files_from_a_compilation: r(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: r(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: r(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: r(6663, 3, "Disable_truncating_types_in_error_messages_6663", "Disable truncating types in error messages."), Enable_error_reporting_for_fallthrough_cases_in_switch_statements: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6677, 3, "Deprecated_setting_Use_outFile_instead_6677", "Deprecated setting. Use 'outFile' instead."), Specify_an_output_folder_for_all_emitted_files: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6688, 3, "Disable_emitting_comments_6688", "Disable emitting comments."), Enable_importing_json_files: r(6689, 3, "Enable_importing_json_files_6689", "Enable importing .json files."), Specify_the_root_folder_within_your_source_files: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6712, 3, "Emit_ECMAScript_standard_compliant_class_fields_6712", "Emit ECMAScript-standard-compliant class fields."), Enable_verbose_logging: r(6713, 3, "Enable_verbose_logging_6713", "Enable verbose logging."), Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(6806, 3, "Check_side_effect_imports_6806", "Check side effect imports."), This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2: r(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: r(6808, 3, "Enable_lib_replacement_6808", "Enable lib replacement."), one_of_Colon: r(6900, 3, "one_of_Colon_6900", "one of:"), one_or_more_Colon: r(6901, 3, "one_or_more_Colon_6901", "one or more:"), type_Colon: r(6902, 3, "type_Colon_6902", "type:"), default_Colon: r(6903, 3, "default_Colon_6903", "default:"), module_system_or_esModuleInterop: r(6904, 3, "module_system_or_esModuleInterop_6904", 'module === "system" or esModuleInterop'), false_unless_strict_is_set: r(6905, 3, "false_unless_strict_is_set_6905", "`false`, unless `strict` is set"), false_unless_composite_is_set: r(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: r(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: r(6908, 3, "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908", '`[]` if `files` is specified, otherwise `["**/*"]`'), true_if_composite_false_otherwise: r(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: r(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: r(6911, 3, "Computed_from_the_list_of_input_files_6911", "Computed from the list of input files"), Platform_specific: r(6912, 3, "Platform_specific_6912", "Platform specific"), You_can_learn_about_all_of_the_compiler_options_at_0: r(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: r(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: r(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: r(6916, 3, "COMMON_COMMANDS_6916", "COMMON COMMANDS"), ALL_COMPILER_OPTIONS: r(6917, 3, "ALL_COMPILER_OPTIONS_6917", "ALL COMPILER OPTIONS"), WATCH_OPTIONS: r(6918, 3, "WATCH_OPTIONS_6918", "WATCH OPTIONS"), BUILD_OPTIONS: r(6919, 3, "BUILD_OPTIONS_6919", "BUILD OPTIONS"), COMMON_COMPILER_OPTIONS: r(6920, 3, "COMMON_COMPILER_OPTIONS_6920", "COMMON COMPILER OPTIONS"), COMMAND_LINE_FLAGS: r(6921, 3, "COMMAND_LINE_FLAGS_6921", "COMMAND LINE FLAGS"), tsc_Colon_The_TypeScript_Compiler: r(6922, 3, "tsc_Colon_The_TypeScript_Compiler_6922", "tsc: The TypeScript Compiler"), Compiles_the_current_project_tsconfig_json_in_the_working_directory: r(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: r(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: r(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: r(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: r(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: r(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: r(6929, 3, "Compiles_the_current_project_with_additional_settings_6929", "Compiles the current project, with additional settings."), true_for_ES2022_and_above_including_ESNext: r(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: r(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: r(7005, 1, "Variable_0_implicitly_has_an_1_type_7005", "Variable '{0}' implicitly has an '{1}' type."), Parameter_0_implicitly_has_an_1_type: r(7006, 1, "Parameter_0_implicitly_has_an_1_type_7006", "Parameter '{0}' implicitly has an '{1}' type."), Member_0_implicitly_has_an_1_type: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(7027, 1, "Unreachable_code_detected_7027", "Unreachable code detected.", true), Unused_label: r(7028, 1, "Unused_label_7028", "Unused label.", true), Fallthrough_case_in_switch: r(7029, 1, "Fallthrough_case_in_switch_7029", "Fallthrough case in switch."), Not_all_code_paths_return_a_value: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(8000, 1, "You_cannot_rename_this_element_8000", "You cannot rename this element."), You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(8019, 3, "Report_errors_in_js_files_8019", "Report errors in .js files."), JSDoc_types_can_only_be_used_inside_documentation_comments: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(17000, 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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(17014, 1, "JSX_fragment_has_no_corresponding_closing_tag_17014", "JSX fragment has no corresponding closing tag."), Expected_corresponding_closing_tag_for_JSX_fragment: r(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: r(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: r(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: r(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: r(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: r(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: r(17021, 1, "Unicode_escape_sequence_cannot_appear_here_17021", "Unicode escape sequence cannot appear here."), Circularity_detected_while_resolving_configuration_Colon_0: r(18000, 1, "Circularity_detected_while_resolving_configuration_Colon_0_18000", "Circularity detected while resolving configuration: {0}"), The_files_list_in_config_file_0_is_empty: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(80010, 2, "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010", "JSDoc typedefs may be converted to TypeScript types."), Add_missing_super_call: r(90001, 3, "Add_missing_super_call_90001", "Add missing 'super()' call"), Make_super_call_the_first_statement_in_the_constructor: r(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: r(90003, 3, "Change_extends_to_implements_90003", "Change 'extends' to 'implements'"), Remove_unused_declaration_for_Colon_0: r(90004, 3, "Remove_unused_declaration_for_Colon_0_90004", "Remove unused declaration for: '{0}'"), Remove_import_from_0: r(90005, 3, "Remove_import_from_0_90005", "Remove import from '{0}'"), Implement_interface_0: r(90006, 3, "Implement_interface_0_90006", "Implement interface '{0}'"), Implement_inherited_abstract_class: r(90007, 3, "Implement_inherited_abstract_class_90007", "Implement inherited abstract class"), Add_0_to_unresolved_variable: r(90008, 3, "Add_0_to_unresolved_variable_90008", "Add '{0}.' to unresolved variable"), Remove_variable_statement: r(90010, 3, "Remove_variable_statement_90010", "Remove variable statement"), Remove_template_tag: r(90011, 3, "Remove_template_tag_90011", "Remove template tag"), Remove_type_parameters: r(90012, 3, "Remove_type_parameters_90012", "Remove type parameters"), Import_0_from_1: r(90013, 3, "Import_0_from_1_90013", `Import '{0}' from "{1}"`), Change_0_to_1: r(90014, 3, "Change_0_to_1_90014", "Change '{0}' to '{1}'"), Declare_property_0: r(90016, 3, "Declare_property_0_90016", "Declare property '{0}'"), Add_index_signature_for_property_0: r(90017, 3, "Add_index_signature_for_property_0_90017", "Add index signature for property '{0}'"), Disable_checking_for_this_file: r(90018, 3, "Disable_checking_for_this_file_90018", "Disable checking for this file"), Ignore_this_error_message: r(90019, 3, "Ignore_this_error_message_90019", "Ignore this error message"), Initialize_property_0_in_the_constructor: r(90020, 3, "Initialize_property_0_in_the_constructor_90020", "Initialize property '{0}' in the constructor"), Initialize_static_property_0: r(90021, 3, "Initialize_static_property_0_90021", "Initialize static property '{0}'"), Change_spelling_to_0: r(90022, 3, "Change_spelling_to_0_90022", "Change spelling to '{0}'"), Declare_method_0: r(90023, 3, "Declare_method_0_90023", "Declare method '{0}'"), Declare_static_method_0: r(90024, 3, "Declare_static_method_0_90024", "Declare static method '{0}'"), Prefix_0_with_an_underscore: r(90025, 3, "Prefix_0_with_an_underscore_90025", "Prefix '{0}' with an underscore"), Rewrite_as_the_indexed_access_type_0: r(90026, 3, "Rewrite_as_the_indexed_access_type_0_90026", "Rewrite as the indexed access type '{0}'"), Declare_static_property_0: r(90027, 3, "Declare_static_property_0_90027", "Declare static property '{0}'"), Call_decorator_expression: r(90028, 3, "Call_decorator_expression_90028", "Call decorator expression"), Add_async_modifier_to_containing_function: r(90029, 3, "Add_async_modifier_to_containing_function_90029", "Add async modifier to containing function"), Replace_infer_0_with_unknown: r(90030, 3, "Replace_infer_0_with_unknown_90030", "Replace 'infer {0}' with 'unknown'"), Replace_all_unused_infer_with_unknown: r(90031, 3, "Replace_all_unused_infer_with_unknown_90031", "Replace all unused 'infer' with 'unknown'"), Add_parameter_name: r(90034, 3, "Add_parameter_name_90034", "Add parameter name"), Declare_private_property_0: r(90035, 3, "Declare_private_property_0_90035", "Declare private property '{0}'"), Replace_0_with_Promise_1: r(90036, 3, "Replace_0_with_Promise_1_90036", "Replace '{0}' with 'Promise<{1}>'"), Fix_all_incorrect_return_type_of_an_async_functions: r(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: r(90038, 3, "Declare_private_method_0_90038", "Declare private method '{0}'"), Remove_unused_destructuring_declaration: r(90039, 3, "Remove_unused_destructuring_declaration_90039", "Remove unused destructuring declaration"), Remove_unused_declarations_for_Colon_0: r(90041, 3, "Remove_unused_declarations_for_Colon_0_90041", "Remove unused declarations for: '{0}'"), Declare_a_private_field_named_0: r(90053, 3, "Declare_a_private_field_named_0_90053", "Declare a private field named '{0}'."), Includes_imports_of_types_referenced_by_0: r(90054, 3, "Includes_imports_of_types_referenced_by_0_90054", "Includes imports of types referenced by '{0}'"), Remove_type_from_import_declaration_from_0: r(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: r(90056, 3, "Remove_type_from_import_of_0_from_1_90056", `Remove 'type' from import of '{0}' from "{1}"`), Add_import_from_0: r(90057, 3, "Add_import_from_0_90057", 'Add import from "{0}"'), Update_import_from_0: r(90058, 3, "Update_import_from_0_90058", 'Update import from "{0}"'), Export_0_from_module_1: r(90059, 3, "Export_0_from_module_1_90059", "Export '{0}' from module '{1}'"), Export_all_referenced_locals: r(90060, 3, "Export_all_referenced_locals_90060", "Export all referenced locals"), Update_modifiers_of_0: r(90061, 3, "Update_modifiers_of_0_90061", "Update modifiers of '{0}'"), Add_annotation_of_type_0: r(90062, 3, "Add_annotation_of_type_0_90062", "Add annotation of type '{0}'"), Add_return_type_0: r(90063, 3, "Add_return_type_0_90063", "Add return type '{0}'"), Extract_base_class_to_variable: r(90064, 3, "Extract_base_class_to_variable_90064", "Extract base class to variable"), Extract_default_export_to_variable: r(90065, 3, "Extract_default_export_to_variable_90065", "Extract default export to variable"), Extract_binding_expressions_to_variable: r(90066, 3, "Extract_binding_expressions_to_variable_90066", "Extract binding expressions to variable"), Add_all_missing_type_annotations: r(90067, 3, "Add_all_missing_type_annotations_90067", "Add all missing type annotations"), Add_satisfies_and_an_inline_type_assertion_with_0: r(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: r(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: r(90070, 3, "Mark_array_literal_as_const_90070", "Mark array literal as const"), Annotate_types_of_properties_expando_function_in_a_namespace: r(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: r(95001, 3, "Convert_function_to_an_ES2015_class_95001", "Convert function to an ES2015 class"), Convert_0_to_1_in_0: r(95003, 3, "Convert_0_to_1_in_0_95003", "Convert '{0}' to '{1} in {0}'"), Extract_to_0_in_1: r(95004, 3, "Extract_to_0_in_1_95004", "Extract to {0} in {1}"), Extract_function: r(95005, 3, "Extract_function_95005", "Extract function"), Extract_constant: r(95006, 3, "Extract_constant_95006", "Extract constant"), Extract_to_0_in_enclosing_scope: r(95007, 3, "Extract_to_0_in_enclosing_scope_95007", "Extract to {0} in enclosing scope"), Extract_to_0_in_1_scope: r(95008, 3, "Extract_to_0_in_1_scope_95008", "Extract to {0} in {1} scope"), Annotate_with_type_from_JSDoc: r(95009, 3, "Annotate_with_type_from_JSDoc_95009", "Annotate with type from JSDoc"), Infer_type_of_0_from_usage: r(95011, 3, "Infer_type_of_0_from_usage_95011", "Infer type of '{0}' from usage"), Infer_parameter_types_from_usage: r(95012, 3, "Infer_parameter_types_from_usage_95012", "Infer parameter types from usage"), Convert_to_default_import: r(95013, 3, "Convert_to_default_import_95013", "Convert to default import"), Install_0: r(95014, 3, "Install_0_95014", "Install '{0}'"), Replace_import_with_0: r(95015, 3, "Replace_import_with_0_95015", "Replace import with '{0}'."), Use_synthetic_default_member: r(95016, 3, "Use_synthetic_default_member_95016", "Use synthetic 'default' member."), Convert_to_ES_module: r(95017, 3, "Convert_to_ES_module_95017", "Convert to ES module"), Add_undefined_type_to_property_0: r(95018, 3, "Add_undefined_type_to_property_0_95018", "Add 'undefined' type to property '{0}'"), Add_initializer_to_property_0: r(95019, 3, "Add_initializer_to_property_0_95019", "Add initializer to property '{0}'"), Add_definite_assignment_assertion_to_property_0: r(95020, 3, "Add_definite_assignment_assertion_to_property_0_95020", "Add definite assignment assertion to property '{0}'"), Convert_all_type_literals_to_mapped_type: r(95021, 3, "Convert_all_type_literals_to_mapped_type_95021", "Convert all type literals to mapped type"), Add_all_missing_members: r(95022, 3, "Add_all_missing_members_95022", "Add all missing members"), Infer_all_types_from_usage: r(95023, 3, "Infer_all_types_from_usage_95023", "Infer all types from usage"), Delete_all_unused_declarations: r(95024, 3, "Delete_all_unused_declarations_95024", "Delete all unused declarations"), Prefix_all_unused_declarations_with_where_possible: r(95025, 3, "Prefix_all_unused_declarations_with_where_possible_95025", "Prefix all unused declarations with '_' where possible"), Fix_all_detected_spelling_errors: r(95026, 3, "Fix_all_detected_spelling_errors_95026", "Fix all detected spelling errors"), Add_initializers_to_all_uninitialized_properties: r(95027, 3, "Add_initializers_to_all_uninitialized_properties_95027", "Add initializers to all uninitialized properties"), Add_definite_assignment_assertions_to_all_uninitialized_properties: r(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: r(95029, 3, "Add_undefined_type_to_all_uninitialized_properties_95029", "Add undefined type to all uninitialized properties"), Change_all_jsdoc_style_types_to_TypeScript: r(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: r(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: r(95032, 3, "Implement_all_unimplemented_interfaces_95032", "Implement all unimplemented interfaces"), Install_all_missing_types_packages: r(95033, 3, "Install_all_missing_types_packages_95033", "Install all missing types packages"), Rewrite_all_as_indexed_access_types: r(95034, 3, "Rewrite_all_as_indexed_access_types_95034", "Rewrite all as indexed access types"), Convert_all_to_default_imports: r(95035, 3, "Convert_all_to_default_imports_95035", "Convert all to default imports"), Make_all_super_calls_the_first_statement_in_their_constructor: r(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: r(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: r(95038, 3, "Change_all_extended_interfaces_to_implements_95038", "Change all extended interfaces to 'implements'"), Add_all_missing_super_calls: r(95039, 3, "Add_all_missing_super_calls_95039", "Add all missing super calls"), Implement_all_inherited_abstract_classes: r(95040, 3, "Implement_all_inherited_abstract_classes_95040", "Implement all inherited abstract classes"), Add_all_missing_async_modifiers: r(95041, 3, "Add_all_missing_async_modifiers_95041", "Add all missing 'async' modifiers"), Add_ts_ignore_to_all_error_messages: r(95042, 3, "Add_ts_ignore_to_all_error_messages_95042", "Add '@ts-ignore' to all error messages"), Annotate_everything_with_types_from_JSDoc: r(95043, 3, "Annotate_everything_with_types_from_JSDoc_95043", "Annotate everything with types from JSDoc"), Add_to_all_uncalled_decorators: r(95044, 3, "Add_to_all_uncalled_decorators_95044", "Add '()' to all uncalled decorators"), Convert_all_constructor_functions_to_classes: r(95045, 3, "Convert_all_constructor_functions_to_classes_95045", "Convert all constructor functions to classes"), Generate_get_and_set_accessors: r(95046, 3, "Generate_get_and_set_accessors_95046", "Generate 'get' and 'set' accessors"), Convert_require_to_import: r(95047, 3, "Convert_require_to_import_95047", "Convert 'require' to 'import'"), Convert_all_require_to_import: r(95048, 3, "Convert_all_require_to_import_95048", "Convert all 'require' to 'import'"), Move_to_a_new_file: r(95049, 3, "Move_to_a_new_file_95049", "Move to a new file"), Remove_unreachable_code: r(95050, 3, "Remove_unreachable_code_95050", "Remove unreachable code"), Remove_all_unreachable_code: r(95051, 3, "Remove_all_unreachable_code_95051", "Remove all unreachable code"), Add_missing_typeof: r(95052, 3, "Add_missing_typeof_95052", "Add missing 'typeof'"), Remove_unused_label: r(95053, 3, "Remove_unused_label_95053", "Remove unused label"), Remove_all_unused_labels: r(95054, 3, "Remove_all_unused_labels_95054", "Remove all unused labels"), Convert_0_to_mapped_object_type: r(95055, 3, "Convert_0_to_mapped_object_type_95055", "Convert '{0}' to mapped object type"), Convert_namespace_import_to_named_imports: r(95056, 3, "Convert_namespace_import_to_named_imports_95056", "Convert namespace import to named imports"), Convert_named_imports_to_namespace_import: r(95057, 3, "Convert_named_imports_to_namespace_import_95057", "Convert named imports to namespace import"), Add_or_remove_braces_in_an_arrow_function: r(95058, 3, "Add_or_remove_braces_in_an_arrow_function_95058", "Add or remove braces in an arrow function"), Add_braces_to_arrow_function: r(95059, 3, "Add_braces_to_arrow_function_95059", "Add braces to arrow function"), Remove_braces_from_arrow_function: r(95060, 3, "Remove_braces_from_arrow_function_95060", "Remove braces from arrow function"), Convert_default_export_to_named_export: r(95061, 3, "Convert_default_export_to_named_export_95061", "Convert default export to named export"), Convert_named_export_to_default_export: r(95062, 3, "Convert_named_export_to_default_export_95062", "Convert named export to default export"), Add_missing_enum_member_0: r(95063, 3, "Add_missing_enum_member_0_95063", "Add missing enum member '{0}'"), Add_all_missing_imports: r(95064, 3, "Add_all_missing_imports_95064", "Add all missing imports"), Convert_to_async_function: r(95065, 3, "Convert_to_async_function_95065", "Convert to async function"), Convert_all_to_async_functions: r(95066, 3, "Convert_all_to_async_functions_95066", "Convert all to async functions"), Add_missing_call_parentheses: r(95067, 3, "Add_missing_call_parentheses_95067", "Add missing call parentheses"), Add_all_missing_call_parentheses: r(95068, 3, "Add_all_missing_call_parentheses_95068", "Add all missing call parentheses"), Add_unknown_conversion_for_non_overlapping_types: r(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: r(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: r(95071, 3, "Add_missing_new_operator_to_call_95071", "Add missing 'new' operator to call"), Add_missing_new_operator_to_all_calls: r(95072, 3, "Add_missing_new_operator_to_all_calls_95072", "Add missing 'new' operator to all calls"), Add_names_to_all_parameters_without_names: r(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: r(95074, 3, "Enable_the_experimentalDecorators_option_in_your_configuration_file_95074", "Enable the 'experimentalDecorators' option in your configuration file"), Convert_parameters_to_destructured_object: r(95075, 3, "Convert_parameters_to_destructured_object_95075", "Convert parameters to destructured object"), Extract_type: r(95077, 3, "Extract_type_95077", "Extract type"), Extract_to_type_alias: r(95078, 3, "Extract_to_type_alias_95078", "Extract to type alias"), Extract_to_typedef: r(95079, 3, "Extract_to_typedef_95079", "Extract to typedef"), Infer_this_type_of_0_from_usage: r(95080, 3, "Infer_this_type_of_0_from_usage_95080", "Infer 'this' type of '{0}' from usage"), Add_const_to_unresolved_variable: r(95081, 3, "Add_const_to_unresolved_variable_95081", "Add 'const' to unresolved variable"), Add_const_to_all_unresolved_variables: r(95082, 3, "Add_const_to_all_unresolved_variables_95082", "Add 'const' to all unresolved variables"), Add_await: r(95083, 3, "Add_await_95083", "Add 'await'"), Add_await_to_initializer_for_0: r(95084, 3, "Add_await_to_initializer_for_0_95084", "Add 'await' to initializer for '{0}'"), Fix_all_expressions_possibly_missing_await: r(95085, 3, "Fix_all_expressions_possibly_missing_await_95085", "Fix all expressions possibly missing 'await'"), Remove_unnecessary_await: r(95086, 3, "Remove_unnecessary_await_95086", "Remove unnecessary 'await'"), Remove_all_unnecessary_uses_of_await: r(95087, 3, "Remove_all_unnecessary_uses_of_await_95087", "Remove all unnecessary uses of 'await'"), Enable_the_jsx_flag_in_your_configuration_file: r(95088, 3, "Enable_the_jsx_flag_in_your_configuration_file_95088", "Enable the '--jsx' flag in your configuration file"), Add_await_to_initializers: r(95089, 3, "Add_await_to_initializers_95089", "Add 'await' to initializers"), Extract_to_interface: r(95090, 3, "Extract_to_interface_95090", "Extract to interface"), Convert_to_a_bigint_numeric_literal: r(95091, 3, "Convert_to_a_bigint_numeric_literal_95091", "Convert to a bigint numeric literal"), Convert_all_to_bigint_numeric_literals: r(95092, 3, "Convert_all_to_bigint_numeric_literals_95092", "Convert all to bigint numeric literals"), Convert_const_to_let: r(95093, 3, "Convert_const_to_let_95093", "Convert 'const' to 'let'"), Prefix_with_declare: r(95094, 3, "Prefix_with_declare_95094", "Prefix with 'declare'"), Prefix_all_incorrect_property_declarations_with_declare: r(95095, 3, "Prefix_all_incorrect_property_declarations_with_declare_95095", "Prefix all incorrect property declarations with 'declare'"), Convert_to_template_string: r(95096, 3, "Convert_to_template_string_95096", "Convert to template string"), Add_export_to_make_this_file_into_a_module: r(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: r(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: r(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: r(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: r(95101, 3, "Convert_all_invalid_characters_to_HTML_entity_code_95101", "Convert all invalid characters to HTML entity code"), Convert_all_const_to_let: r(95102, 3, "Convert_all_const_to_let_95102", "Convert all 'const' to 'let'"), Convert_function_expression_0_to_arrow_function: r(95105, 3, "Convert_function_expression_0_to_arrow_function_95105", "Convert function expression '{0}' to arrow function"), Convert_function_declaration_0_to_arrow_function: r(95106, 3, "Convert_function_declaration_0_to_arrow_function_95106", "Convert function declaration '{0}' to arrow function"), Fix_all_implicit_this_errors: r(95107, 3, "Fix_all_implicit_this_errors_95107", "Fix all implicit-'this' errors"), Wrap_invalid_character_in_an_expression_container: r(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: r(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: r(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: r(95111, 3, "Add_a_return_statement_95111", "Add a return statement"), Remove_braces_from_arrow_function_body: r(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: r(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: r(95114, 3, "Add_all_missing_return_statement_95114", "Add all missing return statement"), Remove_braces_from_all_arrow_function_bodies_with_relevant_issues: r(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: r(95116, 3, "Wrap_all_object_literal_with_parentheses_95116", "Wrap all object literal with parentheses"), Move_labeled_tuple_element_modifiers_to_labels: r(95117, 3, "Move_labeled_tuple_element_modifiers_to_labels_95117", "Move labeled tuple element modifiers to labels"), Convert_overload_list_to_single_signature: r(95118, 3, "Convert_overload_list_to_single_signature_95118", "Convert overload list to single signature"), Generate_get_and_set_accessors_for_all_overriding_properties: r(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: r(95120, 3, "Wrap_in_JSX_fragment_95120", "Wrap in JSX fragment"), Wrap_all_unparented_JSX_in_JSX_fragment: r(95121, 3, "Wrap_all_unparented_JSX_in_JSX_fragment_95121", "Wrap all unparented JSX in JSX fragment"), Convert_arrow_function_or_function_expression: r(95122, 3, "Convert_arrow_function_or_function_expression_95122", "Convert arrow function or function expression"), Convert_to_anonymous_function: r(95123, 3, "Convert_to_anonymous_function_95123", "Convert to anonymous function"), Convert_to_named_function: r(95124, 3, "Convert_to_named_function_95124", "Convert to named function"), Convert_to_arrow_function: r(95125, 3, "Convert_to_arrow_function_95125", "Convert to arrow function"), Remove_parentheses: r(95126, 3, "Remove_parentheses_95126", "Remove parentheses"), Could_not_find_a_containing_arrow_function: r(95127, 3, "Could_not_find_a_containing_arrow_function_95127", "Could not find a containing arrow function"), Containing_function_is_not_an_arrow_function: r(95128, 3, "Containing_function_is_not_an_arrow_function_95128", "Containing function is not an arrow function"), Could_not_find_export_statement: r(95129, 3, "Could_not_find_export_statement_95129", "Could not find export statement"), This_file_already_has_a_default_export: r(95130, 3, "This_file_already_has_a_default_export_95130", "This file already has a default export"), Could_not_find_import_clause: r(95131, 3, "Could_not_find_import_clause_95131", "Could not find import clause"), Could_not_find_namespace_import_or_named_imports: r(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: r(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: r(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: r(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: r(95136, 3, "Name_is_not_valid_95136", "Name is not valid"), Can_only_convert_property_with_modifier: r(95137, 3, "Can_only_convert_property_with_modifier_95137", "Can only convert property with modifier"), Switch_each_misused_0_to_1: r(95138, 3, "Switch_each_misused_0_to_1_95138", "Switch each misused '{0}' to '{1}'"), Convert_to_optional_chain_expression: r(95139, 3, "Convert_to_optional_chain_expression_95139", "Convert to optional chain expression"), Could_not_find_convertible_access_expression: r(95140, 3, "Could_not_find_convertible_access_expression_95140", "Could not find convertible access expression"), Could_not_find_matching_access_expressions: r(95141, 3, "Could_not_find_matching_access_expressions_95141", "Could not find matching access expressions"), Can_only_convert_logical_AND_access_chains: r(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: r(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: r(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: r(95145, 3, "Use_element_access_for_0_95145", "Use element access for '{0}'"), Use_element_access_for_all_undeclared_properties: r(95146, 3, "Use_element_access_for_all_undeclared_properties_95146", "Use element access for all undeclared properties."), Delete_all_unused_imports: r(95147, 3, "Delete_all_unused_imports_95147", "Delete all unused imports"), Infer_function_return_type: r(95148, 3, "Infer_function_return_type_95148", "Infer function return type"), Return_type_must_be_inferred_from_a_function: r(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: r(95150, 3, "Could_not_determine_function_return_type_95150", "Could not determine function return type"), Could_not_convert_to_arrow_function: r(95151, 3, "Could_not_convert_to_arrow_function_95151", "Could not convert to arrow function"), Could_not_convert_to_named_function: r(95152, 3, "Could_not_convert_to_named_function_95152", "Could not convert to named function"), Could_not_convert_to_anonymous_function: r(95153, 3, "Could_not_convert_to_anonymous_function_95153", "Could not convert to anonymous function"), Can_only_convert_string_concatenations_and_string_literals: r(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: r(95155, 3, "Selection_is_not_a_valid_statement_or_statements_95155", "Selection is not a valid statement or statements"), Add_missing_function_declaration_0: r(95156, 3, "Add_missing_function_declaration_0_95156", "Add missing function declaration '{0}'"), Add_all_missing_function_declarations: r(95157, 3, "Add_all_missing_function_declarations_95157", "Add all missing function declarations"), Method_not_implemented: r(95158, 3, "Method_not_implemented_95158", "Method not implemented."), Function_not_implemented: r(95159, 3, "Function_not_implemented_95159", "Function not implemented."), Add_override_modifier: r(95160, 3, "Add_override_modifier_95160", "Add 'override' modifier"), Remove_override_modifier: r(95161, 3, "Remove_override_modifier_95161", "Remove 'override' modifier"), Add_all_missing_override_modifiers: r(95162, 3, "Add_all_missing_override_modifiers_95162", "Add all missing 'override' modifiers"), Remove_all_unnecessary_override_modifiers: r(95163, 3, "Remove_all_unnecessary_override_modifiers_95163", "Remove all unnecessary 'override' modifiers"), Can_only_convert_named_export: r(95164, 3, "Can_only_convert_named_export_95164", "Can only convert named export"), Add_missing_properties: r(95165, 3, "Add_missing_properties_95165", "Add missing properties"), Add_all_missing_properties: r(95166, 3, "Add_all_missing_properties_95166", "Add all missing properties"), Add_missing_attributes: r(95167, 3, "Add_missing_attributes_95167", "Add missing attributes"), Add_all_missing_attributes: r(95168, 3, "Add_all_missing_attributes_95168", "Add all missing attributes"), Add_undefined_to_optional_property_type: r(95169, 3, "Add_undefined_to_optional_property_type_95169", "Add 'undefined' to optional property type"), Convert_named_imports_to_default_import: r(95170, 3, "Convert_named_imports_to_default_import_95170", "Convert named imports to default import"), Delete_unused_param_tag_0: r(95171, 3, "Delete_unused_param_tag_0_95171", "Delete unused '@param' tag '{0}'"), Delete_all_unused_param_tags: r(95172, 3, "Delete_all_unused_param_tags_95172", "Delete all unused '@param' tags"), Rename_param_tag_name_0_to_1: r(95173, 3, "Rename_param_tag_name_0_to_1_95173", "Rename '@param' tag name '{0}' to '{1}'"), Use_0: r(95174, 3, "Use_0_95174", "Use `{0}`."), Use_Number_isNaN_in_all_conditions: r(95175, 3, "Use_Number_isNaN_in_all_conditions_95175", "Use `Number.isNaN` in all conditions."), Convert_typedef_to_TypeScript_type: r(95176, 3, "Convert_typedef_to_TypeScript_type_95176", "Convert typedef to TypeScript type."), Convert_all_typedef_to_TypeScript_types: r(95177, 3, "Convert_all_typedef_to_TypeScript_types_95177", "Convert all typedef to TypeScript types."), Move_to_file: r(95178, 3, "Move_to_file_95178", "Move to file"), Cannot_move_to_file_selected_file_is_invalid: r(95179, 3, "Cannot_move_to_file_selected_file_is_invalid_95179", "Cannot move to file, selected file is invalid"), Use_import_type: r(95180, 3, "Use_import_type_95180", "Use 'import type'"), Use_type_0: r(95181, 3, "Use_type_0_95181", "Use 'type {0}'"), Fix_all_with_type_only_imports: r(95182, 3, "Fix_all_with_type_only_imports_95182", "Fix all with type-only imports"), Cannot_move_statements_to_the_selected_file: r(95183, 3, "Cannot_move_statements_to_the_selected_file_95183", "Cannot move statements to the selected file"), Inline_variable: r(95184, 3, "Inline_variable_95184", "Inline variable"), Could_not_find_variable_to_inline: r(95185, 3, "Could_not_find_variable_to_inline_95185", "Could not find variable to inline."), Variables_with_multiple_declarations_cannot_be_inlined: r(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: r(95187, 3, "Add_missing_comma_for_object_member_completion_0_95187", "Add missing comma for object member completion '{0}'."), Add_missing_parameter_to_0: r(95188, 3, "Add_missing_parameter_to_0_95188", "Add missing parameter to '{0}'"), Add_missing_parameters_to_0: r(95189, 3, "Add_missing_parameters_to_0_95189", "Add missing parameters to '{0}'"), Add_all_missing_parameters: r(95190, 3, "Add_all_missing_parameters_95190", "Add all missing parameters"), Add_optional_parameter_to_0: r(95191, 3, "Add_optional_parameter_to_0_95191", "Add optional parameter to '{0}'"), Add_optional_parameters_to_0: r(95192, 3, "Add_optional_parameters_to_0_95192", "Add optional parameters to '{0}'"), Add_all_optional_parameters: r(95193, 3, "Add_all_optional_parameters_95193", "Add all optional parameters"), Wrap_in_parentheses: r(95194, 3, "Wrap_in_parentheses_95194", "Wrap in parentheses"), Wrap_all_invalid_decorator_expressions_in_parentheses: r(95195, 3, "Wrap_all_invalid_decorator_expressions_in_parentheses_95195", "Wrap all invalid decorator expressions in parentheses"), Add_resolution_mode_import_attribute: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(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: r(18046, 1, "_0_is_of_type_unknown_18046", "'{0}' is of type 'unknown'."), _0_is_possibly_null: r(18047, 1, "_0_is_possibly_null_18047", "'{0}' is possibly 'null'."), _0_is_possibly_undefined: r(18048, 1, "_0_is_possibly_undefined_18048", "'{0}' is possibly 'undefined'."), _0_is_possibly_null_or_undefined: r(18049, 1, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."), The_value_0_cannot_be_used_here: r(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: r(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: r(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: r(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: r(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: r(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: r(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'."), Default_imports_are_not_allowed_in_a_deferred_import: r(18058, 1, "Default_imports_are_not_allowed_in_a_deferred_import_18058", "Default imports are not allowed in a deferred import."), Named_imports_are_not_allowed_in_a_deferred_import: r(18059, 1, "Named_imports_are_not_allowed_in_a_deferred_import_18059", "Named imports are not allowed in a deferred import."), Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve: r(18060, 1, "Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060", "Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."), _0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer: r(18061, 1, "_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061", "'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?") };
function St3(e) {
return e >= 80;
}
function Vy(e) {
return e === 32 || St3(e);
}
var tf = { 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, defer: 166, 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 };
var Wy = new Map(Object.entries(tf));
var Lm2 = new Map(Object.entries({ ...tf, "{": 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 }));
var Jm2 = new Map([[100, 1], [103, 2], [105, 4], [109, 8], [115, 16], [117, 32], [118, 64], [121, 128]]);
var Gy = new Map([[1, $s2.RegularExpressionFlagsHasIndices], [16, $s2.RegularExpressionFlagsDotAll], [32, $s2.RegularExpressionFlagsUnicode], [64, $s2.RegularExpressionFlagsUnicodeSets], [128, $s2.RegularExpressionFlagsSticky]]);
var Yy = [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, 6000, 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, 43000, 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];
var Hy = [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, 6000, 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, 43000, 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];
var Xy = [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, 6000, 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];
var $y = [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, 6000, 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];
var Qy = /^\/\/\/?\s*@(ts-expect-error|ts-ignore)/;
var Ky = /^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;
var Zy = /@(?:see|link)/i;
function yl2(e, t) {
if (e < t[0])
return false;
let a3 = 0, _2 = t.length, f2;
for (;a3 + 1 < _2; ) {
if (f2 = a3 + (_2 - a3) / 2, f2 -= f2 % 2, t[f2] <= e && e <= t[f2 + 1])
return true;
e < t[f2] ? _2 = f2 : a3 = f2 + 2;
}
return false;
}
function eg(e, t) {
return t >= 2 ? yl2(e, Xy) : yl2(e, Yy);
}
function tg(e, t) {
return t >= 2 ? yl2(e, $y) : yl2(e, Hy);
}
function jm2(e) {
let t = [];
return e.forEach((a3, _2) => {
t[a3] = _2;
}), t;
}
var ng = jm2(Lm2);
function nt3(e) {
return ng[e];
}
function Rm2(e) {
return Lm2.get(e);
}
var t3 = jm2(Jm2);
function wd(e) {
return Jm2.get(e);
}
function Um2(e) {
let t = [], a3 = 0, _2 = 0;
for (;a3 < e.length; ) {
let f2 = e.charCodeAt(a3);
switch (a3++, f2) {
case 13:
e.charCodeAt(a3) === 10 && a3++;
case 10:
t.push(_2), _2 = a3;
break;
default:
f2 > 127 && kn2(f2) && (t.push(_2), _2 = a3);
break;
}
}
return t.push(_2), t;
}
function rg(e, t, a3, _2, f2) {
(t < 0 || t >= e.length) && (f2 ? t = t < 0 ? 0 : t >= e.length ? e.length - 1 : t : q3.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${_2 !== undefined ? ly(e, Um2(_2)) : "unknown"}`));
let h = e[t] + a3;
return f2 ? h > e[t + 1] ? e[t + 1] : typeof _2 == "string" && h > _2.length ? _2.length : h : (t < e.length - 1 ? q3.assert(h < e[t + 1]) : _2 !== undefined && q3.assert(h <= _2.length), h);
}
function Mp2(e) {
return e.lineMap || (e.lineMap = Um2(e.text));
}
function ig(e, t) {
let a3 = ag(e, t);
return { line: a3, character: t - e[a3] };
}
function ag(e, t, a3) {
let _2 = hy(e, t, bt3, Sm2, a3);
return _2 < 0 && (_2 = ~_2 - 1, q3.assert(_2 !== -1, "position cannot precede the beginning of the file")), _2;
}
function Bm2(e, t) {
return ig(Mp2(e), t);
}
function qa2(e) {
return n_(e) || kn2(e);
}
function n_(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 kn2(e) {
return e === 10 || e === 13 || e === 8232 || e === 8233;
}
function fi3(e) {
return e >= 48 && e <= 57;
}
function vp2(e) {
return fi3(e) || e >= 65 && e <= 70 || e >= 97 && e <= 102;
}
function nf(e) {
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
}
function qm2(e) {
return nf(e) || fi3(e) || e === 95;
}
function Tp2(e) {
return e >= 48 && e <= 55;
}
function Cr3(e, t, a3, _2, f2) {
if (d_(t))
return t;
let h = false;
for (;; ) {
let T3 = e.charCodeAt(t);
switch (T3) {
case 13:
e.charCodeAt(t + 1) === 10 && t++;
case 10:
if (t++, a3)
return t;
h = !!f2;
continue;
case 9:
case 11:
case 12:
case 32:
t++;
continue;
case 47:
if (_2)
break;
if (e.charCodeAt(t + 1) === 47) {
for (t += 2;t < e.length && !kn2(e.charCodeAt(t)); )
t++;
h = false;
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++;
}
h = false;
continue;
}
break;
case 60:
case 124:
case 61:
case 62:
if ($i3(e, t)) {
t = Ma2(e, t), h = false;
continue;
}
break;
case 35:
if (t === 0 && Fm2(e, t)) {
t = zm2(e, t), h = false;
continue;
}
break;
case 42:
if (h) {
t++, h = false;
continue;
}
break;
default:
if (T3 > 127 && qa2(T3)) {
t++;
continue;
}
break;
}
return t;
}
}
var ul2 = 7;
function $i3(e, t) {
if (q3.assert(t >= 0), t === 0 || kn2(e.charCodeAt(t - 1))) {
let a3 = e.charCodeAt(t);
if (t + ul2 < e.length) {
for (let _2 = 0;_2 < ul2; _2++)
if (e.charCodeAt(t + _2) !== a3)
return false;
return a3 === 61 || e.charCodeAt(t + ul2) === 32;
}
}
return false;
}
function Ma2(e, t, a3) {
a3 && a3(A2.Merge_conflict_marker_encountered, t, ul2);
let _2 = e.charCodeAt(t), f2 = e.length;
if (_2 === 60 || _2 === 62)
for (;t < f2 && !kn2(e.charCodeAt(t)); )
t++;
else
for (q3.assert(_2 === 124 || _2 === 61);t < f2; ) {
let h = e.charCodeAt(t);
if ((h === 61 || h === 62) && h !== _2 && $i3(e, t))
break;
t++;
}
return t;
}
var rf = /^#!.*/;
function Fm2(e, t) {
return q3.assert(t === 0), rf.test(e);
}
function zm2(e, t) {
let a3 = rf.exec(e)[0];
return t = t + a3.length, t;
}
function kl2(e, t, a3, _2, f2, h, T3) {
let k2, c2, W3, y2, G3 = false, E3 = _2, D2 = T3;
if (a3 === 0) {
E3 = true;
let R3 = af(t);
R3 && (a3 = R3.length);
}
e:
for (;a3 >= 0 && a3 < t.length; ) {
let R3 = t.charCodeAt(a3);
switch (R3) {
case 13:
t.charCodeAt(a3 + 1) === 10 && a3++;
case 10:
if (a3++, _2)
break e;
E3 = true, G3 && (y2 = true);
continue;
case 9:
case 11:
case 12:
case 32:
a3++;
continue;
case 47:
let ue3 = t.charCodeAt(a3 + 1), be3 = false;
if (ue3 === 47 || ue3 === 42) {
let he3 = ue3 === 47 ? 2 : 3, de3 = a3;
if (a3 += 2, ue3 === 47)
for (;a3 < t.length; ) {
if (kn2(t.charCodeAt(a3))) {
be3 = true;
break;
}
a3++;
}
else
for (;a3 < t.length; ) {
if (t.charCodeAt(a3) === 42 && t.charCodeAt(a3 + 1) === 47) {
a3 += 2;
break;
}
a3++;
}
if (E3) {
if (G3 && (D2 = f2(k2, c2, W3, y2, h, D2), !e && D2))
return D2;
k2 = de3, c2 = a3, W3 = he3, y2 = be3, G3 = true;
}
continue;
}
break e;
default:
if (R3 > 127 && qa2(R3)) {
G3 && kn2(R3) && (y2 = true), a3++;
continue;
}
break e;
}
}
return G3 && (D2 = f2(k2, c2, W3, y2, h, D2)), D2;
}
function Vm2(e, t, a3, _2) {
return kl2(false, e, t, false, a3, _2);
}
function Wm2(e, t, a3, _2) {
return kl2(false, e, t, true, a3, _2);
}
function sg(e, t, a3, _2, f2) {
return kl2(true, e, t, false, a3, _2, f2);
}
function _g(e, t, a3, _2, f2) {
return kl2(true, e, t, true, a3, _2, f2);
}
function Gm2(e, t, a3, _2, f2, h = []) {
return h.push({ kind: a3, pos: e, end: t, hasTrailingNewLine: _2 }), h;
}
function Lp2(e, t) {
return sg(e, t, Gm2, undefined, undefined);
}
function og(e, t) {
return _g(e, t, Gm2, undefined, undefined);
}
function af(e) {
let t = rf.exec(e);
if (t)
return t[0];
}
function Zn2(e, t) {
return nf(e) || e === 36 || e === 95 || e > 127 && eg(e, t);
}
function Ar3(e, t, a3) {
return qm2(e) || e === 36 || (a3 === 1 ? e === 45 || e === 58 : false) || e > 127 && tg(e, t);
}
function cg(e, t, a3) {
let _2 = Qi3(e, 0);
if (!Zn2(_2, t))
return false;
for (let f2 = Vt3(_2);f2 < e.length; f2 += Vt3(_2))
if (!Ar3(_2 = Qi3(e, f2), t, a3))
return false;
return true;
}
function sf(e, t, a3 = 0, _2, f2, h, T3) {
var k2 = _2, c2, W3, y2, G3, E3, D2, R3, ue3, be3 = 0, he3 = 0, de3 = 0;
Ct3(k2, h, T3);
var O2 = { getTokenFullStart: () => y2, getStartPos: () => y2, getTokenEnd: () => c2, getTextPos: () => c2, getToken: () => E3, getTokenStart: () => G3, getTokenPos: () => G3, getTokenText: () => k2.substring(G3, c2), getTokenValue: () => D2, hasUnicodeEscape: () => (R3 & 1024) !== 0, hasExtendedUnicodeEscape: () => (R3 & 8) !== 0, hasPrecedingLineBreak: () => (R3 & 1) !== 0, hasPrecedingJSDocComment: () => (R3 & 2) !== 0, hasPrecedingJSDocLeadingAsterisks: () => (R3 & 32768) !== 0, isIdentifier: () => E3 === 80 || E3 > 118, isReservedWord: () => E3 >= 83 && E3 <= 118, isUnterminated: () => (R3 & 4) !== 0, getCommentDirectives: () => ue3, getNumericLiteralFlags: () => R3 & 25584, getTokenFlags: () => R3, reScanGreaterToken: ct3, reScanAsteriskEqualsToken: ar3, reScanSlashToken: dt3, reScanTemplateToken: qt3, reScanTemplateHeadOrNoSubstitutionTemplate: tn2, scanJsxIdentifier: Or3, scanJsxAttributeValue: Vn2, reScanJsxAttributeValue: Ce3, reScanJsxToken: sr3, reScanLessThanToken: mr2, reScanHashToken: hr3, reScanQuestionToken: Fn2, reScanInvalidIdentifier: Bt2, scanJsxToken: zn2, scanJsDocToken: L3, scanJSDocCommentTextToken: yr3, scan: ot3, getText: Qe3, clearCommentDirectives: st2, setText: Ct3, setScriptTarget: lt3, setLanguageVariant: Mr3, setScriptKind: gr3, setJSDocParsingMode: Nn, setOnError: Tt3, resetTokenState: Wn2, setTextPos: Wn2, setSkipJsDocLeadingAsterisks: wi3, tryScan: He3, lookAhead: Te3, scanRange: fe2 };
return q3.isDebugging && Object.defineProperty(O2, "__debugShowCurrentPositionInText", { get: () => {
let U2 = O2.getText();
return U2.slice(0, O2.getTokenFullStart()) + "\u2551" + U2.slice(O2.getTokenFullStart());
} }), O2;
function ae(U2) {
return Qi3(k2, U2);
}
function Oe3(U2) {
return U2 >= 0 && U2 < W3 ? ae(U2) : -1;
}
function V3(U2) {
return k2.charCodeAt(U2);
}
function oe3(U2) {
return U2 >= 0 && U2 < W3 ? V3(U2) : -1;
}
function Y2(U2, K3 = c2, Z3, xe3) {
if (f2) {
let Se3 = c2;
c2 = K3, f2(U2, Z3 || 0, xe3), c2 = Se3;
}
}
function ft3() {
let U2 = c2, K3 = false, Z3 = false, xe3 = "";
for (;; ) {
let Se3 = V3(c2);
if (Se3 === 95) {
R3 |= 512, K3 ? (K3 = false, Z3 = true, xe3 += k2.substring(U2, c2)) : (R3 |= 16384, Y2(Z3 ? A2.Multiple_consecutive_numeric_separators_are_not_permitted : A2.Numeric_separators_are_not_allowed_here, c2, 1)), c2++, U2 = c2;
continue;
}
if (fi3(Se3)) {
K3 = true, Z3 = false, c2++;
continue;
}
break;
}
return V3(c2 - 1) === 95 && (R3 |= 16384, Y2(A2.Numeric_separators_are_not_allowed_here, c2 - 1, 1)), xe3 + k2.substring(U2, c2);
}
function nr3() {
let U2 = c2, K3;
if (V3(c2) === 48)
if (c2++, V3(c2) === 95)
R3 |= 16896, Y2(A2.Numeric_separators_are_not_allowed_here, c2, 1), c2--, K3 = ft3();
else if (!rr3())
R3 |= 8192, K3 = "" + +D2;
else if (!D2)
K3 = "0";
else {
D2 = "" + parseInt(D2, 8), R3 |= 32;
let me3 = E3 === 41, Ve3 = (me3 ? "-" : "") + "0o" + (+D2).toString(8);
return me3 && U2--, Y2(A2.Octal_literals_are_not_allowed_Use_the_syntax_0, U2, c2 - U2, Ve3), 9;
}
else
K3 = ft3();
let Z3, xe3;
V3(c2) === 46 && (c2++, Z3 = ft3());
let Se3 = c2;
if (V3(c2) === 69 || V3(c2) === 101) {
c2++, R3 |= 16, (V3(c2) === 43 || V3(c2) === 45) && c2++;
let me3 = c2, Ve3 = ft3();
Ve3 ? (xe3 = k2.substring(Se3, me3) + Ve3, Se3 = c2) : Y2(A2.Digit_expected);
}
let we3;
if (R3 & 512 ? (we3 = K3, Z3 && (we3 += "." + Z3), xe3 && (we3 += xe3)) : we3 = k2.substring(U2, Se3), R3 & 8192)
return Y2(A2.Decimals_with_leading_zeros_are_not_allowed, U2, Se3 - U2), D2 = "" + +we3, 9;
if (Z3 !== undefined || R3 & 16)
return mn2(U2, Z3 === undefined && !!(R3 & 16)), D2 = "" + +we3, 9;
{
D2 = we3;
let me3 = $t3();
return mn2(U2), me3;
}
}
function mn2(U2, K3) {
if (!Zn2(ae(c2), e))
return;
let Z3 = c2, { length: xe3 } = ht3();
xe3 === 1 && k2[Z3] === "n" ? Y2(K3 ? A2.A_bigint_literal_cannot_use_exponential_notation : A2.A_bigint_literal_must_be_an_integer, U2, Z3 - U2 + 1) : (Y2(A2.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal, Z3, xe3), c2 = Z3);
}
function rr3() {
let U2 = c2, K3 = true;
for (;fi3(oe3(c2)); )
Tp2(V3(c2)) || (K3 = false), c2++;
return D2 = k2.substring(U2, c2), K3;
}
function hn2(U2, K3) {
let Z3 = We3(U2, false, K3);
return Z3 ? parseInt(Z3, 16) : -1;
}
function Dn2(U2, K3) {
return We3(U2, true, K3);
}
function We3(U2, K3, Z3) {
let xe3 = [], Se3 = false, we3 = false;
for (;xe3.length < U2 || K3; ) {
let me3 = V3(c2);
if (Z3 && me3 === 95) {
R3 |= 512, Se3 ? (Se3 = false, we3 = true) : Y2(we3 ? A2.Multiple_consecutive_numeric_separators_are_not_permitted : A2.Numeric_separators_are_not_allowed_here, c2, 1), c2++;
continue;
}
if (Se3 = Z3, me3 >= 65 && me3 <= 70)
me3 += 32;
else if (!(me3 >= 48 && me3 <= 57 || me3 >= 97 && me3 <= 102))
break;
xe3.push(me3), c2++, we3 = false;
}
return xe3.length < U2 && (xe3 = []), V3(c2 - 1) === 95 && Y2(A2.Numeric_separators_are_not_allowed_here, c2 - 1, 1), String.fromCharCode(...xe3);
}
function ir3(U2 = false) {
let K3 = V3(c2);
c2++;
let Z3 = "", xe3 = c2;
for (;; ) {
if (c2 >= W3) {
Z3 += k2.substring(xe3, c2), R3 |= 4, Y2(A2.Unterminated_string_literal);
break;
}
let Se3 = V3(c2);
if (Se3 === K3) {
Z3 += k2.substring(xe3, c2), c2++;
break;
}
if (Se3 === 92 && !U2) {
Z3 += k2.substring(xe3, c2), Z3 += Ot3(3), xe3 = c2;
continue;
}
if ((Se3 === 10 || Se3 === 13) && !U2) {
Z3 += k2.substring(xe3, c2), R3 |= 4, Y2(A2.Unterminated_string_literal);
break;
}
c2++;
}
return Z3;
}
function Ir2(U2) {
let K3 = V3(c2) === 96;
c2++;
let Z3 = c2, xe3 = "", Se3;
for (;; ) {
if (c2 >= W3) {
xe3 += k2.substring(Z3, c2), R3 |= 4, Y2(A2.Unterminated_template_literal), Se3 = K3 ? 15 : 18;
break;
}
let we3 = V3(c2);
if (we3 === 96) {
xe3 += k2.substring(Z3, c2), c2++, Se3 = K3 ? 15 : 18;
break;
}
if (we3 === 36 && c2 + 1 < W3 && V3(c2 + 1) === 123) {
xe3 += k2.substring(Z3, c2), c2 += 2, Se3 = K3 ? 16 : 17;
break;
}
if (we3 === 92) {
xe3 += k2.substring(Z3, c2), xe3 += Ot3(1 | (U2 ? 2 : 0)), Z3 = c2;
continue;
}
if (we3 === 13) {
xe3 += k2.substring(Z3, c2), c2++, c2 < W3 && V3(c2) === 10 && c2++, xe3 += `
`, Z3 = c2;
continue;
}
c2++;
}
return q3.assert(Se3 !== undefined), D2 = xe3, Se3;
}
function Ot3(U2) {
let K3 = c2;
if (c2++, c2 >= W3)
return Y2(A2.Unexpected_end_of_text), "";
let Z3 = V3(c2);
switch (c2++, Z3) {
case 48:
if (c2 >= W3 || !fi3(V3(c2)))
return "\x00";
case 49:
case 50:
case 51:
c2 < W3 && Tp2(V3(c2)) && c2++;
case 52:
case 53:
case 54:
case 55:
if (c2 < W3 && Tp2(V3(c2)) && c2++, R3 |= 2048, U2 & 6) {
let we3 = parseInt(k2.substring(K3 + 1, c2), 8);
return U2 & 4 && !(U2 & 32) && Z3 !== 48 ? Y2(A2.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, K3, c2 - K3, "\\x" + we3.toString(16).padStart(2, "0")) : Y2(A2.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, K3, c2 - K3, "\\x" + we3.toString(16).padStart(2, "0")), String.fromCharCode(we3);
}
return k2.substring(K3, c2);
case 56:
case 57:
return R3 |= 2048, U2 & 6 ? (U2 & 4 && !(U2 & 32) ? Y2(A2.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class, K3, c2 - K3) : Y2(A2.Escape_sequence_0_is_not_allowed, K3, c2 - K3, k2.substring(K3, c2)), String.fromCharCode(Z3)) : k2.substring(K3, c2);
case 98:
return "\b";
case 116:
return "\t";
case 110:
return `
`;
case 118:
return "\v";
case 102:
return "\f";
case 114:
return "\r";
case 39:
return "'";
case 34:
return '"';
case 117:
if (c2 < W3 && V3(c2) === 123) {
c2 -= 2;
let we3 = Bn2(!!(U2 & 6));
return U2 & 17 || (R3 |= 2048, U2 & 6 && Y2(A2.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set, K3, c2 - K3)), we3;
}
for (;c2 < K3 + 6; c2++)
if (!(c2 < W3 && vp2(V3(c2))))
return R3 |= 2048, U2 & 6 && Y2(A2.Hexadecimal_digit_expected), k2.substring(K3, c2);
R3 |= 1024;
let xe3 = parseInt(k2.substring(K3 + 2, c2), 16), Se3 = String.fromCharCode(xe3);
if (U2 & 16 && xe3 >= 55296 && xe3 <= 56319 && c2 + 6 < W3 && k2.substring(c2, c2 + 2) === "\\u" && V3(c2 + 2) !== 123) {
let we3 = c2, me3 = c2 + 2;
for (;me3 < we3 + 6; me3++)
if (!vp2(V3(me3)))
return Se3;
let Ve3 = parseInt(k2.substring(we3 + 2, me3), 16);
if (Ve3 >= 56320 && Ve3 <= 57343)
return c2 = me3, Se3 + String.fromCharCode(Ve3);
}
return Se3;
case 120:
for (;c2 < K3 + 4; c2++)
if (!(c2 < W3 && vp2(V3(c2))))
return R3 |= 2048, U2 & 6 && Y2(A2.Hexadecimal_digit_expected), k2.substring(K3, c2);
return R3 |= 4096, String.fromCharCode(parseInt(k2.substring(K3 + 2, c2), 16));
case 13:
c2 < W3 && V3(c2) === 10 && c2++;
case 10:
case 8232:
case 8233:
return "";
default:
return (U2 & 16 || U2 & 4 && !(U2 & 8) && Ar3(Z3, e)) && Y2(A2.This_character_cannot_be_escaped_in_a_regular_expression, c2 - 2, 2), String.fromCharCode(Z3);
}
}
function Bn2(U2) {
let K3 = c2;
c2 += 3;
let Z3 = c2, xe3 = Dn2(1, false), Se3 = xe3 ? parseInt(xe3, 16) : -1, we3 = false;
return Se3 < 0 ? (U2 && Y2(A2.Hexadecimal_digit_expected), we3 = true) : Se3 > 1114111 && (U2 && Y2(A2.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive, Z3, c2 - Z3), we3 = true), c2 >= W3 ? (U2 && Y2(A2.Unexpected_end_of_text), we3 = true) : V3(c2) === 125 ? c2++ : (U2 && Y2(A2.Unterminated_Unicode_escape_sequence), we3 = true), we3 ? (R3 |= 2048, k2.substring(K3, c2)) : (R3 |= 8, kd(Se3));
}
function Pn2() {
if (c2 + 5 < W3 && V3(c2 + 1) === 117) {
let U2 = c2;
c2 += 2;
let K3 = hn2(4, false);
return c2 = U2, K3;
}
return -1;
}
function Mt3() {
if (ae(c2 + 1) === 117 && ae(c2 + 2) === 123) {
let U2 = c2;
c2 += 3;
let K3 = Dn2(1, false), Z3 = K3 ? parseInt(K3, 16) : -1;
return c2 = U2, Z3;
}
return -1;
}
function ht3() {
let U2 = "", K3 = c2;
for (;c2 < W3; ) {
let Z3 = ae(c2);
if (Ar3(Z3, e))
c2 += Vt3(Z3);
else if (Z3 === 92) {
if (Z3 = Mt3(), Z3 >= 0 && Ar3(Z3, e)) {
U2 += Bn2(true), K3 = c2;
continue;
}
if (Z3 = Pn2(), !(Z3 >= 0 && Ar3(Z3, e)))
break;
R3 |= 1024, U2 += k2.substring(K3, c2), U2 += kd(Z3), c2 += 6, K3 = c2;
} else
break;
}
return U2 += k2.substring(K3, c2), U2;
}
function $e3() {
let U2 = D2.length;
if (U2 >= 2 && U2 <= 12) {
let K3 = D2.charCodeAt(0);
if (K3 >= 97 && K3 <= 122) {
let Z3 = Wy.get(D2);
if (Z3 !== undefined)
return E3 = Z3;
}
}
return E3 = 80;
}
function qn2(U2) {
let K3 = "", Z3 = false, xe3 = false;
for (;; ) {
let Se3 = V3(c2);
if (Se3 === 95) {
R3 |= 512, Z3 ? (Z3 = false, xe3 = true) : Y2(xe3 ? A2.Multiple_consecutive_numeric_separators_are_not_permitted : A2.Numeric_separators_are_not_allowed_here, c2, 1), c2++;
continue;
}
if (Z3 = true, !fi3(Se3) || Se3 - 48 >= U2)
break;
K3 += k2[c2], c2++, xe3 = false;
}
return V3(c2 - 1) === 95 && Y2(A2.Numeric_separators_are_not_allowed_here, c2 - 1, 1), K3;
}
function $t3() {
return V3(c2) === 110 ? (D2 += "n", R3 & 384 && (D2 = vb(D2) + "n"), c2++, 10) : (D2 = "" + (R3 & 128 ? parseInt(D2.slice(2), 2) : R3 & 256 ? parseInt(D2.slice(2), 8) : +D2), 9);
}
function ot3() {
for (y2 = c2, R3 = 0;; ) {
if (G3 = c2, c2 >= W3)
return E3 = 1;
let U2 = ae(c2);
if (c2 === 0 && U2 === 35 && Fm2(k2, c2)) {
if (c2 = zm2(k2, c2), t)
continue;
return E3 = 6;
}
switch (U2) {
case 10:
case 13:
if (R3 |= 1, t) {
c2++;
continue;
} else
return U2 === 13 && c2 + 1 < W3 && V3(c2 + 1) === 10 ? c2 += 2 : c2++, E3 = 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) {
c2++;
continue;
} else {
for (;c2 < W3 && n_(V3(c2)); )
c2++;
return E3 = 5;
}
case 33:
return V3(c2 + 1) === 61 ? V3(c2 + 2) === 61 ? (c2 += 3, E3 = 38) : (c2 += 2, E3 = 36) : (c2++, E3 = 54);
case 34:
case 39:
return D2 = ir3(), E3 = 11;
case 96:
return E3 = Ir2(false);
case 37:
return V3(c2 + 1) === 61 ? (c2 += 2, E3 = 70) : (c2++, E3 = 45);
case 38:
return V3(c2 + 1) === 38 ? V3(c2 + 2) === 61 ? (c2 += 3, E3 = 77) : (c2 += 2, E3 = 56) : V3(c2 + 1) === 61 ? (c2 += 2, E3 = 74) : (c2++, E3 = 51);
case 40:
return c2++, E3 = 21;
case 41:
return c2++, E3 = 22;
case 42:
if (V3(c2 + 1) === 61)
return c2 += 2, E3 = 67;
if (V3(c2 + 1) === 42)
return V3(c2 + 2) === 61 ? (c2 += 3, E3 = 68) : (c2 += 2, E3 = 43);
if (c2++, be3 && (R3 & 32768) === 0 && R3 & 1) {
R3 |= 32768;
continue;
}
return E3 = 42;
case 43:
return V3(c2 + 1) === 43 ? (c2 += 2, E3 = 46) : V3(c2 + 1) === 61 ? (c2 += 2, E3 = 65) : (c2++, E3 = 40);
case 44:
return c2++, E3 = 28;
case 45:
return V3(c2 + 1) === 45 ? (c2 += 2, E3 = 47) : V3(c2 + 1) === 61 ? (c2 += 2, E3 = 66) : (c2++, E3 = 41);
case 46:
return fi3(V3(c2 + 1)) ? (nr3(), E3 = 9) : V3(c2 + 1) === 46 && V3(c2 + 2) === 46 ? (c2 += 3, E3 = 26) : (c2++, E3 = 25);
case 47:
if (V3(c2 + 1) === 47) {
for (c2 += 2;c2 < W3 && !kn2(V3(c2)); )
c2++;
if (ue3 = _n2(ue3, k2.slice(G3, c2), Qy, G3), t)
continue;
return E3 = 2;
}
if (V3(c2 + 1) === 42) {
c2 += 2;
let me3 = V3(c2) === 42 && V3(c2 + 1) !== 47, Ve3 = false, Ze3 = G3;
for (;c2 < W3; ) {
let Ye3 = V3(c2);
if (Ye3 === 42 && V3(c2 + 1) === 47) {
c2 += 2, Ve3 = true;
break;
}
c2++, kn2(Ye3) && (Ze3 = c2, R3 |= 1);
}
if (me3 && at3() && (R3 |= 2), ue3 = _n2(ue3, k2.slice(Ze3, c2), Ky, Ze3), Ve3 || Y2(A2.Asterisk_Slash_expected), t)
continue;
return Ve3 || (R3 |= 4), E3 = 3;
}
return V3(c2 + 1) === 61 ? (c2 += 2, E3 = 69) : (c2++, E3 = 44);
case 48:
if (c2 + 2 < W3 && (V3(c2 + 1) === 88 || V3(c2 + 1) === 120))
return c2 += 2, D2 = Dn2(1, true), D2 || (Y2(A2.Hexadecimal_digit_expected), D2 = "0"), D2 = "0x" + D2, R3 |= 64, E3 = $t3();
if (c2 + 2 < W3 && (V3(c2 + 1) === 66 || V3(c2 + 1) === 98))
return c2 += 2, D2 = qn2(2), D2 || (Y2(A2.Binary_digit_expected), D2 = "0"), D2 = "0b" + D2, R3 |= 128, E3 = $t3();
if (c2 + 2 < W3 && (V3(c2 + 1) === 79 || V3(c2 + 1) === 111))
return c2 += 2, D2 = qn2(8), D2 || (Y2(A2.Octal_digit_expected), D2 = "0"), D2 = "0o" + D2, R3 |= 256, E3 = $t3();
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
return E3 = nr3();
case 58:
return c2++, E3 = 59;
case 59:
return c2++, E3 = 27;
case 60:
if ($i3(k2, c2)) {
if (c2 = Ma2(k2, c2, Y2), t)
continue;
return E3 = 7;
}
return V3(c2 + 1) === 60 ? V3(c2 + 2) === 61 ? (c2 += 3, E3 = 71) : (c2 += 2, E3 = 48) : V3(c2 + 1) === 61 ? (c2 += 2, E3 = 33) : a3 === 1 && V3(c2 + 1) === 47 && V3(c2 + 2) !== 42 ? (c2 += 2, E3 = 31) : (c2++, E3 = 30);
case 61:
if ($i3(k2, c2)) {
if (c2 = Ma2(k2, c2, Y2), t)
continue;
return E3 = 7;
}
return V3(c2 + 1) === 61 ? V3(c2 + 2) === 61 ? (c2 += 3, E3 = 37) : (c2 += 2, E3 = 35) : V3(c2 + 1) === 62 ? (c2 += 2, E3 = 39) : (c2++, E3 = 64);
case 62:
if ($i3(k2, c2)) {
if (c2 = Ma2(k2, c2, Y2), t)
continue;
return E3 = 7;
}
return c2++, E3 = 32;
case 63:
return V3(c2 + 1) === 46 && !fi3(V3(c2 + 2)) ? (c2 += 2, E3 = 29) : V3(c2 + 1) === 63 ? V3(c2 + 2) === 61 ? (c2 += 3, E3 = 78) : (c2 += 2, E3 = 61) : (c2++, E3 = 58);
case 91:
return c2++, E3 = 23;
case 93:
return c2++, E3 = 24;
case 94:
return V3(c2 + 1) === 61 ? (c2 += 2, E3 = 79) : (c2++, E3 = 53);
case 123:
return c2++, E3 = 19;
case 124:
if ($i3(k2, c2)) {
if (c2 = Ma2(k2, c2, Y2), t)
continue;
return E3 = 7;
}
return V3(c2 + 1) === 124 ? V3(c2 + 2) === 61 ? (c2 += 3, E3 = 76) : (c2 += 2, E3 = 57) : V3(c2 + 1) === 61 ? (c2 += 2, E3 = 75) : (c2++, E3 = 52);
case 125:
return c2++, E3 = 20;
case 126:
return c2++, E3 = 55;
case 64:
return c2++, E3 = 60;
case 92:
let K3 = Mt3();
if (K3 >= 0 && Zn2(K3, e))
return D2 = Bn2(true) + ht3(), E3 = $e3();
let Z3 = Pn2();
return Z3 >= 0 && Zn2(Z3, e) ? (c2 += 6, R3 |= 1024, D2 = String.fromCharCode(Z3) + ht3(), E3 = $e3()) : (Y2(A2.Invalid_character), c2++, E3 = 0);
case 35:
if (c2 !== 0 && k2[c2 + 1] === "!")
return Y2(A2.can_only_be_used_at_the_start_of_a_file, c2, 2), c2++, E3 = 0;
let xe3 = ae(c2 + 1);
if (xe3 === 92) {
c2++;
let me3 = Mt3();
if (me3 >= 0 && Zn2(me3, e))
return D2 = "#" + Bn2(true) + ht3(), E3 = 81;
let Ve3 = Pn2();
if (Ve3 >= 0 && Zn2(Ve3, e))
return c2 += 6, R3 |= 1024, D2 = "#" + String.fromCharCode(Ve3) + ht3(), E3 = 81;
c2--;
}
return Zn2(xe3, e) ? (c2++, Lt3(xe3, e)) : (D2 = "#", Y2(A2.Invalid_character, c2++, Vt3(U2))), E3 = 81;
case 65533:
return Y2(A2.File_appears_to_be_binary, 0, 0), c2 = W3, E3 = 8;
default:
let Se3 = Lt3(U2, e);
if (Se3)
return E3 = Se3;
if (n_(U2)) {
c2 += Vt3(U2);
continue;
} else if (kn2(U2)) {
R3 |= 1, c2 += Vt3(U2);
continue;
}
let we3 = Vt3(U2);
return Y2(A2.Invalid_character, c2, we3), c2 += we3, E3 = 0;
}
}
}
function at3() {
switch (de3) {
case 0:
return true;
case 1:
return false;
}
return he3 !== 3 && he3 !== 4 ? true : de3 === 3 ? false : Zy.test(k2.slice(y2, c2));
}
function Bt2() {
q3.assert(E3 === 0, "'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."), c2 = G3 = y2, R3 = 0;
let U2 = ae(c2), K3 = Lt3(U2, 99);
return K3 ? E3 = K3 : (c2 += Vt3(U2), E3);
}
function Lt3(U2, K3) {
let Z3 = U2;
if (Zn2(Z3, K3)) {
for (c2 += Vt3(Z3);c2 < W3 && Ar3(Z3 = ae(c2), K3); )
c2 += Vt3(Z3);
return D2 = k2.substring(G3, c2), Z3 === 92 && (D2 += ht3()), $e3();
}
}
function ct3() {
if (E3 === 32) {
if (V3(c2) === 62)
return V3(c2 + 1) === 62 ? V3(c2 + 2) === 61 ? (c2 += 3, E3 = 73) : (c2 += 2, E3 = 50) : V3(c2 + 1) === 61 ? (c2 += 2, E3 = 72) : (c2++, E3 = 49);
if (V3(c2) === 61)
return c2++, E3 = 34;
}
return E3;
}
function ar3() {
return q3.assert(E3 === 67, "'reScanAsteriskEqualsToken' should only be called on a '*='"), c2 = G3 + 1, E3 = 64;
}
function dt3(U2) {
if (E3 === 44 || E3 === 69) {
let K3 = G3 + 1;
c2 = K3;
let Z3 = false, xe3 = false, Se3 = false;
for (;; ) {
let me3 = oe3(c2);
if (me3 === -1 || kn2(me3)) {
R3 |= 4;
break;
}
if (Z3)
Z3 = false;
else {
if (me3 === 47 && !Se3)
break;
me3 === 91 ? Se3 = true : me3 === 92 ? Z3 = true : me3 === 93 ? Se3 = false : !Se3 && me3 === 40 && oe3(c2 + 1) === 63 && oe3(c2 + 2) === 60 && oe3(c2 + 3) !== 61 && oe3(c2 + 3) !== 33 && (xe3 = true);
}
c2++;
}
let we3 = c2;
if (R3 & 4) {
c2 = K3, Z3 = false;
let me3 = 0, Ve3 = false, Ze3 = 0;
for (;c2 < we3; ) {
let Ye3 = V3(c2);
if (Z3)
Z3 = false;
else if (Ye3 === 92)
Z3 = true;
else if (Ye3 === 91)
me3++;
else if (Ye3 === 93 && me3)
me3--;
else if (!me3) {
if (Ye3 === 123)
Ve3 = true;
else if (Ye3 === 125 && Ve3)
Ve3 = false;
else if (!Ve3) {
if (Ye3 === 40)
Ze3++;
else if (Ye3 === 41 && Ze3)
Ze3--;
else if (Ye3 === 41 || Ye3 === 93 || Ye3 === 125)
break;
}
}
c2++;
}
for (;qa2(oe3(c2 - 1)) || oe3(c2 - 1) === 59; )
c2--;
Y2(A2.Unterminated_regular_expression_literal, G3, c2 - G3);
} else {
c2++;
let me3 = 0;
for (;; ) {
let Ve3 = Oe3(c2);
if (Ve3 === -1 || !Ar3(Ve3, e))
break;
let Ze3 = Vt3(Ve3);
if (U2) {
let Ye3 = wd(Ve3);
Ye3 === undefined ? Y2(A2.Unknown_regular_expression_flag, c2, Ze3) : me3 & Ye3 ? Y2(A2.Duplicate_regular_expression_flag, c2, Ze3) : ((me3 | Ye3) & 96) === 96 ? Y2(A2.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously, c2, Ze3) : (me3 |= Ye3, yt3(Ye3, Ze3));
}
c2 += Ze3;
}
U2 && fe2(K3, we3 - K3, () => {
yn2(me3, true, xe3);
});
}
D2 = k2.substring(G3, c2), E3 = 14;
}
return E3;
}
function yn2(U2, K3, Z3) {
var xe3 = !!(U2 & 64), Se3 = !!(U2 & 96), we3 = Se3 || !K3, me3 = false, Ve3 = 0, Ze3, Ye3, Ee3, gn2 = [], rt3;
function on2(H3) {
for (;; ) {
if (gn2.push(rt3), rt3 = undefined, Zr3(H3), rt3 = gn2.pop(), oe3(c2) !== 124)
return;
c2++;
}
}
function Zr3(H3) {
let le3 = false;
for (;; ) {
let qe3 = c2, ve3 = oe3(c2);
switch (ve3) {
case -1:
return;
case 94:
case 36:
c2++, le3 = false;
break;
case 92:
switch (c2++, oe3(c2)) {
case 98:
case 66:
c2++, le3 = false;
break;
default:
Ue3(), le3 = true;
break;
}
break;
case 40:
if (c2++, oe3(c2) === 63)
switch (c2++, oe3(c2)) {
case 61:
case 33:
c2++, le3 = !we3;
break;
case 60:
let xt3 = c2;
switch (c2++, oe3(c2)) {
case 61:
case 33:
c2++, le3 = false;
break;
default:
Me3(false), cn2(62), e < 5 && Y2(A2.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later, xt3, c2 - xt3), Ve3++, le3 = true;
break;
}
break;
default:
let Jt3 = c2, ln2 = M3(0);
oe3(c2) === 45 && (c2++, M3(ln2), c2 === Jt3 + 1 && Y2(A2.Subpattern_flags_must_be_present_when_there_is_a_minus_sign, Jt3, c2 - Jt3)), cn2(58), le3 = true;
break;
}
else
Ve3++, le3 = true;
on2(true), cn2(41);
break;
case 123:
c2++;
let J3 = c2;
rr3();
let mt3 = D2;
if (!we3 && !mt3) {
le3 = true;
break;
}
if (oe3(c2) === 44) {
c2++, rr3();
let xt3 = D2;
if (mt3)
xt3 && Number.parseInt(mt3) > Number.parseInt(xt3) && (we3 || oe3(c2) === 125) && Y2(A2.Numbers_out_of_order_in_quantifier, J3, c2 - J3);
else if (xt3 || oe3(c2) === 125)
Y2(A2.Incomplete_quantifier_Digit_expected, J3, 0);
else {
Y2(A2.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, qe3, 1, String.fromCharCode(ve3)), le3 = true;
break;
}
} else if (!mt3) {
we3 && Y2(A2.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, qe3, 1, String.fromCharCode(ve3)), le3 = true;
break;
}
if (oe3(c2) !== 125)
if (we3)
Y2(A2._0_expected, c2, 0, "}"), c2--;
else {
le3 = true;
break;
}
case 42:
case 43:
case 63:
c2++, oe3(c2) === 63 && c2++, le3 || Y2(A2.There_is_nothing_available_for_repetition, qe3, c2 - qe3), le3 = false;
break;
case 46:
c2++, le3 = true;
break;
case 91:
c2++, xe3 ? nn2() : Be3(), cn2(93), le3 = true;
break;
case 41:
if (H3)
return;
case 93:
case 125:
(we3 || ve3 === 41) && Y2(A2.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, c2, 1, String.fromCharCode(ve3)), c2++, le3 = true;
break;
case 47:
case 124:
return;
default:
ki3(), le3 = true;
break;
}
}
}
function M3(H3) {
for (;; ) {
let le3 = Oe3(c2);
if (le3 === -1 || !Ar3(le3, e))
break;
let qe3 = Vt3(le3), ve3 = wd(le3);
ve3 === undefined ? Y2(A2.Unknown_regular_expression_flag, c2, qe3) : H3 & ve3 ? Y2(A2.Duplicate_regular_expression_flag, c2, qe3) : ve3 & 28 ? (H3 |= ve3, yt3(ve3, qe3)) : Y2(A2.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern, c2, qe3), c2 += qe3;
}
return H3;
}
function Ue3() {
switch (q3.assertEqual(V3(c2 - 1), 92), oe3(c2)) {
case 107:
c2++, oe3(c2) === 60 ? (c2++, Me3(true), cn2(62)) : (we3 || Z3) && Y2(A2.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets, c2 - 2, 2);
break;
case 113:
if (xe3) {
c2++, Y2(A2.q_is_only_available_inside_character_class, c2 - 2, 2);
break;
}
default:
q3.assert(Ft3() || u() || Ie2(true));
break;
}
}
function u() {
q3.assertEqual(V3(c2 - 1), 92);
let H3 = oe3(c2);
if (H3 >= 49 && H3 <= 57) {
let le3 = c2;
return rr3(), Ee3 = wn2(Ee3, { pos: le3, end: c2, value: +D2 }), true;
}
return false;
}
function Ie2(H3) {
q3.assertEqual(V3(c2 - 1), 92);
let le3 = oe3(c2);
switch (le3) {
case -1:
return Y2(A2.Undetermined_character_escape, c2 - 1, 1), "\\";
case 99:
if (c2++, le3 = oe3(c2), nf(le3))
return c2++, String.fromCharCode(le3 & 31);
if (we3)
Y2(A2.c_must_be_followed_by_an_ASCII_letter, c2 - 2, 2);
else if (H3)
return c2--, "\\";
return String.fromCharCode(le3);
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 c2++, String.fromCharCode(le3);
default:
return c2--, Ot3(4 | (K3 ? 8 : 0) | (Se3 ? 16 : 0) | (H3 ? 32 : 0));
}
}
function Me3(H3) {
q3.assertEqual(V3(c2 - 1), 60), G3 = c2, Lt3(Oe3(c2), e), c2 === G3 ? Y2(A2.Expected_a_capturing_group_name) : H3 ? Ye3 = wn2(Ye3, { pos: G3, end: c2, name: D2 }) : rt3?.has(D2) || gn2.some((le3) => le3?.has(D2)) ? Y2(A2.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other, G3, c2 - G3) : (rt3 ?? (rt3 = new Set), rt3.add(D2), Ze3 ?? (Ze3 = new Set), Ze3.add(D2));
}
function B2(H3) {
return H3 === 93 || H3 === -1 || c2 >= W3;
}
function Be3() {
for (q3.assertEqual(V3(c2 - 1), 91), oe3(c2) === 94 && c2++;; ) {
let H3 = oe3(c2);
if (B2(H3))
return;
let le3 = c2, qe3 = Pt3();
if (oe3(c2) === 45) {
c2++;
let ve3 = oe3(c2);
if (B2(ve3))
return;
!qe3 && we3 && Y2(A2.A_character_class_range_must_not_be_bounded_by_another_character_class, le3, c2 - 1 - le3);
let J3 = c2, mt3 = Pt3();
if (!mt3 && we3) {
Y2(A2.A_character_class_range_must_not_be_bounded_by_another_character_class, J3, c2 - J3);
continue;
}
if (!qe3)
continue;
let xt3 = Qi3(qe3, 0), Jt3 = Qi3(mt3, 0);
qe3.length === Vt3(xt3) && mt3.length === Vt3(Jt3) && xt3 > Jt3 && Y2(A2.Range_out_of_order_in_character_class, le3, c2 - le3);
}
}
}
function nn2() {
q3.assertEqual(V3(c2 - 1), 91);
let H3 = false;
oe3(c2) === 94 && (c2++, H3 = true);
let le3 = false, qe3 = oe3(c2);
if (B2(qe3))
return;
let ve3 = c2, J3;
switch (k2.slice(c2, c2 + 2)) {
case "--":
case "&&":
Y2(A2.Expected_a_class_set_operand), me3 = false;
break;
default:
J3 = Xe3();
break;
}
switch (oe3(c2)) {
case 45:
if (oe3(c2 + 1) === 45) {
H3 && me3 && Y2(A2.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, ve3, c2 - ve3), le3 = me3, ze3(3), me3 = !H3 && le3;
return;
}
break;
case 38:
if (oe3(c2 + 1) === 38) {
ze3(2), H3 && me3 && Y2(A2.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, ve3, c2 - ve3), le3 = me3, me3 = !H3 && le3;
return;
} else
Y2(A2.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, c2, 1, String.fromCharCode(qe3));
break;
default:
H3 && me3 && Y2(A2.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, ve3, c2 - ve3), le3 = me3;
break;
}
for (;qe3 = oe3(c2), qe3 !== -1; ) {
switch (qe3) {
case 45:
if (c2++, qe3 = oe3(c2), B2(qe3)) {
me3 = !H3 && le3;
return;
}
if (qe3 === 45) {
c2++, Y2(A2.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, c2 - 2, 2), ve3 = c2 - 2, J3 = k2.slice(ve3, c2);
continue;
} else {
J3 || Y2(A2.A_character_class_range_must_not_be_bounded_by_another_character_class, ve3, c2 - 1 - ve3);
let mt3 = c2, xt3 = Xe3();
if (H3 && me3 && Y2(A2.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, mt3, c2 - mt3), le3 || (le3 = me3), !xt3) {
Y2(A2.A_character_class_range_must_not_be_bounded_by_another_character_class, mt3, c2 - mt3);
break;
}
if (!J3)
break;
let Jt3 = Qi3(J3, 0), ln2 = Qi3(xt3, 0);
J3.length === Vt3(Jt3) && xt3.length === Vt3(ln2) && Jt3 > ln2 && Y2(A2.Range_out_of_order_in_character_class, ve3, c2 - ve3);
}
break;
case 38:
ve3 = c2, c2++, oe3(c2) === 38 ? (c2++, Y2(A2.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, c2 - 2, 2), oe3(c2) === 38 && (Y2(A2.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, c2, 1, String.fromCharCode(qe3)), c2++)) : Y2(A2.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, c2 - 1, 1, String.fromCharCode(qe3)), J3 = k2.slice(ve3, c2);
continue;
}
if (B2(oe3(c2)))
break;
switch (ve3 = c2, k2.slice(c2, c2 + 2)) {
case "--":
case "&&":
Y2(A2.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, c2, 2), c2 += 2, J3 = k2.slice(ve3, c2);
break;
default:
J3 = Xe3();
break;
}
}
me3 = !H3 && le3;
}
function ze3(H3) {
let le3 = me3;
for (;; ) {
let qe3 = oe3(c2);
if (B2(qe3))
break;
switch (qe3) {
case 45:
c2++, oe3(c2) === 45 ? (c2++, H3 !== 3 && Y2(A2.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, c2 - 2, 2)) : Y2(A2.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, c2 - 1, 1);
break;
case 38:
c2++, oe3(c2) === 38 ? (c2++, H3 !== 2 && Y2(A2.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, c2 - 2, 2), oe3(c2) === 38 && (Y2(A2.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, c2, 1, String.fromCharCode(qe3)), c2++)) : Y2(A2.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, c2 - 1, 1, String.fromCharCode(qe3));
break;
default:
switch (H3) {
case 3:
Y2(A2._0_expected, c2, 0, "--");
break;
case 2:
Y2(A2._0_expected, c2, 0, "&&");
break;
default:
break;
}
break;
}
if (qe3 = oe3(c2), B2(qe3)) {
Y2(A2.Expected_a_class_set_operand);
break;
}
Xe3(), le3 && (le3 = me3);
}
me3 = le3;
}
function Xe3() {
switch (me3 = false, oe3(c2)) {
case -1:
return "";
case 91:
return c2++, nn2(), cn2(93), "";
case 92:
if (c2++, Ft3())
return "";
if (oe3(c2) === 113)
return c2++, oe3(c2) === 123 ? (c2++, Dt3(), cn2(125), "") : (Y2(A2.q_must_be_followed_by_string_alternatives_enclosed_in_braces, c2 - 2, 2), "q");
c2--;
default:
return wt3();
}
}
function Dt3() {
q3.assertEqual(V3(c2 - 1), 123);
let H3 = 0;
for (;; )
switch (oe3(c2)) {
case -1:
return;
case 125:
H3 !== 1 && (me3 = true);
return;
case 124:
H3 !== 1 && (me3 = true), c2++, h = c2, H3 = 0;
break;
default:
wt3(), H3++;
break;
}
}
function wt3() {
let H3 = oe3(c2);
if (H3 === -1)
return "";
if (H3 === 92) {
c2++;
let le3 = oe3(c2);
switch (le3) {
case 98:
return c2++, "\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 c2++, String.fromCharCode(le3);
default:
return Ie2(false);
}
} else if (H3 === oe3(c2 + 1))
switch (H3) {
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 Y2(A2.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash, c2, 2), c2 += 2, k2.substring(c2 - 2, c2);
}
switch (H3) {
case 47:
case 40:
case 41:
case 91:
case 93:
case 123:
case 125:
case 45:
case 124:
return Y2(A2.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, c2, 1, String.fromCharCode(H3)), c2++, String.fromCharCode(H3);
}
return ki3();
}
function Pt3() {
if (oe3(c2) === 92) {
c2++;
let H3 = oe3(c2);
switch (H3) {
case 98:
return c2++, "\b";
case 45:
return c2++, String.fromCharCode(H3);
default:
return Ft3() ? "" : Ie2(false);
}
} else
return ki3();
}
function Ft3() {
q3.assertEqual(V3(c2 - 1), 92);
let H3 = false, le3 = c2 - 1, qe3 = oe3(c2);
switch (qe3) {
case 100:
case 68:
case 115:
case 83:
case 119:
case 87:
return c2++, true;
case 80:
H3 = true;
case 112:
if (c2++, oe3(c2) === 123) {
c2++;
let ve3 = c2, J3 = Gn2();
if (oe3(c2) === 61) {
let mt3 = Ed.get(J3);
if (c2 === ve3)
Y2(A2.Expected_a_Unicode_property_name);
else if (mt3 === undefined) {
Y2(A2.Unknown_Unicode_property_name, ve3, c2 - ve3);
let ln2 = t_(J3, Ed.keys(), bt3);
ln2 && Y2(A2.Did_you_mean_0, ve3, c2 - ve3, ln2);
}
c2++;
let xt3 = c2, Jt3 = Gn2();
if (c2 === xt3)
Y2(A2.Expected_a_Unicode_property_value);
else if (mt3 !== undefined && !Ra2[mt3].has(Jt3)) {
Y2(A2.Unknown_Unicode_property_value, xt3, c2 - xt3);
let ln2 = t_(Jt3, Ra2[mt3], bt3);
ln2 && Y2(A2.Did_you_mean_0, xt3, c2 - xt3, ln2);
}
} else if (c2 === ve3)
Y2(A2.Expected_a_Unicode_property_name_or_value);
else if (Cd.has(J3))
xe3 ? H3 ? Y2(A2.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, ve3, c2 - ve3) : me3 = true : Y2(A2.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set, ve3, c2 - ve3);
else if (!Ra2.General_Category.has(J3) && !Ad.has(J3)) {
Y2(A2.Unknown_Unicode_property_name_or_value, ve3, c2 - ve3);
let mt3 = t_(J3, [...Ra2.General_Category, ...Ad, ...Cd], bt3);
mt3 && Y2(A2.Did_you_mean_0, ve3, c2 - ve3, mt3);
}
cn2(125), Se3 || Y2(A2.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set, le3, c2 - le3);
} else if (we3)
Y2(A2._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces, c2 - 2, 2, String.fromCharCode(qe3));
else
return c2--, false;
return true;
}
return false;
}
function Gn2() {
let H3 = "";
for (;; ) {
let le3 = oe3(c2);
if (le3 === -1 || !qm2(le3))
break;
H3 += String.fromCharCode(le3), c2++;
}
return H3;
}
function ki3() {
let H3 = Se3 ? Vt3(Oe3(c2)) : 1;
return c2 += H3, H3 > 0 ? k2.substring(c2 - H3, c2) : "";
}
function cn2(H3) {
oe3(c2) === H3 ? c2++ : Y2(A2._0_expected, c2, 0, String.fromCharCode(H3));
}
on2(false), jn2(Ye3, (H3) => {
if (!Ze3?.has(H3.name) && (Y2(A2.There_is_no_capturing_group_named_0_in_this_regular_expression, H3.pos, H3.end - H3.pos, H3.name), Ze3)) {
let le3 = t_(H3.name, Ze3, bt3);
le3 && Y2(A2.Did_you_mean_0, H3.pos, H3.end - H3.pos, le3);
}
}), jn2(Ee3, (H3) => {
H3.value > Ve3 && (Ve3 ? Y2(A2.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression, H3.pos, H3.end - H3.pos, Ve3) : Y2(A2.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression, H3.pos, H3.end - H3.pos));
});
}
function yt3(U2, K3) {
let Z3 = Gy.get(U2);
Z3 && e < Z3 && Y2(A2.This_regular_expression_flag_is_only_available_when_targeting_0_or_later, c2, K3, ub(Z3));
}
function _n2(U2, K3, Z3, xe3) {
let Se3 = tt3(K3.trimStart(), Z3);
return Se3 === undefined ? U2 : wn2(U2, { range: { pos: xe3, end: c2 }, type: Se3 });
}
function tt3(U2, K3) {
let Z3 = K3.exec(U2);
if (Z3)
switch (Z3[1]) {
case "ts-expect-error":
return 0;
case "ts-ignore":
return 1;
}
}
function qt3(U2) {
return c2 = G3, E3 = Ir2(!U2);
}
function tn2() {
return c2 = G3, E3 = Ir2(true);
}
function sr3(U2 = true) {
return c2 = G3 = y2, E3 = zn2(U2);
}
function mr2() {
return E3 === 48 ? (c2 = G3 + 1, E3 = 30) : E3;
}
function hr3() {
return E3 === 81 ? (c2 = G3 + 1, E3 = 63) : E3;
}
function Fn2() {
return q3.assert(E3 === 61, "'reScanQuestionToken' should only be called on a '??'"), c2 = G3 + 1, E3 = 58;
}
function zn2(U2 = true) {
if (y2 = G3 = c2, c2 >= W3)
return E3 = 1;
let K3 = V3(c2);
if (K3 === 60)
return V3(c2 + 1) === 47 ? (c2 += 2, E3 = 31) : (c2++, E3 = 30);
if (K3 === 123)
return c2++, E3 = 19;
let Z3 = 0;
for (;c2 < W3 && (K3 = V3(c2), K3 !== 123); ) {
if (K3 === 60) {
if ($i3(k2, c2))
return c2 = Ma2(k2, c2, Y2), E3 = 7;
break;
}
if (K3 === 62 && Y2(A2.Unexpected_token_Did_you_mean_or_gt, c2, 1), K3 === 125 && Y2(A2.Unexpected_token_Did_you_mean_or_rbrace, c2, 1), kn2(K3) && Z3 === 0)
Z3 = -1;
else {
if (!U2 && kn2(K3) && Z3 > 0)
break;
qa2(K3) || (Z3 = c2);
}
c2++;
}
return D2 = k2.substring(y2, c2), Z3 === -1 ? 13 : 12;
}
function Or3() {
if (St3(E3)) {
for (;c2 < W3; ) {
if (V3(c2) === 45) {
D2 += "-", c2++;
continue;
}
let K3 = c2;
if (D2 += ht3(), c2 === K3)
break;
}
return $e3();
}
return E3;
}
function Vn2() {
switch (y2 = c2, V3(c2)) {
case 34:
case 39:
return D2 = ir3(true), E3 = 11;
default:
return ot3();
}
}
function Ce3() {
return c2 = G3 = y2, Vn2();
}
function yr3(U2) {
if (y2 = G3 = c2, R3 = 0, c2 >= W3)
return E3 = 1;
for (let K3 = V3(c2);c2 < W3 && !kn2(K3) && K3 !== 96; K3 = ae(++c2))
if (!U2) {
if (K3 === 123)
break;
if (K3 === 64 && c2 - 1 >= 0 && n_(V3(c2 - 1)) && !(c2 + 1 < W3 && qa2(V3(c2 + 1))))
break;
}
return c2 === G3 ? L3() : (D2 = k2.substring(G3, c2), E3 = 82);
}
function L3() {
if (y2 = G3 = c2, R3 = 0, c2 >= W3)
return E3 = 1;
let U2 = ae(c2);
switch (c2 += Vt3(U2), U2) {
case 9:
case 11:
case 12:
case 32:
for (;c2 < W3 && n_(V3(c2)); )
c2++;
return E3 = 5;
case 64:
return E3 = 60;
case 13:
V3(c2) === 10 && c2++;
case 10:
return R3 |= 1, E3 = 4;
case 42:
return E3 = 42;
case 123:
return E3 = 19;
case 125:
return E3 = 20;
case 91:
return E3 = 23;
case 93:
return E3 = 24;
case 40:
return E3 = 21;
case 41:
return E3 = 22;
case 60:
return E3 = 30;
case 62:
return E3 = 32;
case 61:
return E3 = 64;
case 44:
return E3 = 28;
case 46:
return E3 = 25;
case 96:
return E3 = 62;
case 35:
return E3 = 63;
case 92:
c2--;
let K3 = Mt3();
if (K3 >= 0 && Zn2(K3, e))
return D2 = Bn2(true) + ht3(), E3 = $e3();
let Z3 = Pn2();
return Z3 >= 0 && Zn2(Z3, e) ? (c2 += 6, R3 |= 1024, D2 = String.fromCharCode(Z3) + ht3(), E3 = $e3()) : (c2++, E3 = 0);
}
if (Zn2(U2, e)) {
let K3 = U2;
for (;c2 < W3 && Ar3(K3 = ae(c2), e) || K3 === 45; )
c2 += Vt3(K3);
return D2 = k2.substring(G3, c2), K3 === 92 && (D2 += ht3()), E3 = $e3();
} else
return E3 = 0;
}
function se3(U2, K3) {
let Z3 = c2, xe3 = y2, Se3 = G3, we3 = E3, me3 = D2, Ve3 = R3, Ze3 = U2();
return (!Ze3 || K3) && (c2 = Z3, y2 = xe3, G3 = Se3, E3 = we3, D2 = me3, R3 = Ve3), Ze3;
}
function fe2(U2, K3, Z3) {
let xe3 = W3, Se3 = c2, we3 = y2, me3 = G3, Ve3 = E3, Ze3 = D2, Ye3 = R3, Ee3 = ue3;
Ct3(k2, U2, K3);
let gn2 = Z3();
return W3 = xe3, c2 = Se3, y2 = we3, G3 = me3, E3 = Ve3, D2 = Ze3, R3 = Ye3, ue3 = Ee3, gn2;
}
function Te3(U2) {
return se3(U2, true);
}
function He3(U2) {
return se3(U2, false);
}
function Qe3() {
return k2;
}
function st2() {
ue3 = undefined;
}
function Ct3(U2, K3, Z3) {
k2 = U2 || "", W3 = Z3 === undefined ? k2.length : K3 + Z3, Wn2(K3 || 0);
}
function Tt3(U2) {
f2 = U2;
}
function lt3(U2) {
e = U2;
}
function Mr3(U2) {
a3 = U2;
}
function gr3(U2) {
he3 = U2;
}
function Nn(U2) {
de3 = U2;
}
function Wn2(U2) {
q3.assert(U2 >= 0), c2 = U2, y2 = U2, G3 = U2, E3 = 0, D2 = undefined, R3 = 0;
}
function wi3(U2) {
be3 += U2 ? 1 : -1;
}
}
function Qi3(e, t) {
return e.codePointAt(t);
}
function Vt3(e) {
return e >= 65536 ? 2 : e === -1 ? 0 : 1;
}
function lg(e) {
if (q3.assert(0 <= e && e <= 1114111), e <= 65535)
return String.fromCharCode(e);
let t = Math.floor((e - 65536) / 1024) + 55296, a3 = (e - 65536) % 1024 + 56320;
return String.fromCharCode(t, a3);
}
var ug = String.fromCodePoint ? (e) => String.fromCodePoint(e) : lg;
function kd(e) {
return ug(e);
}
var Ed = new Map(Object.entries({ General_Category: "General_Category", gc: "General_Category", Script: "Script", sc: "Script", Script_Extensions: "Script_Extensions", scx: "Script_Extensions" }));
var Ad = 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"]);
var Cd = 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"]);
var Ra2 = { 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: undefined };
Ra2.Script_Extensions = Ra2.Script;
function kr2(e) {
return e.start + e.length;
}
function pg(e) {
return e.length === 0;
}
function _f(e, t) {
if (e < 0)
throw new Error("start < 0");
if (t < 0)
throw new Error("length < 0");
return { start: e, length: t };
}
function fg(e, t) {
return _f(e, t - e);
}
function Qs3(e) {
return _f(e.span.start, e.newLength);
}
function dg(e) {
return pg(e.span) && e.newLength === 0;
}
function Ym2(e, t) {
if (t < 0)
throw new Error("newLength < 0");
return { span: e, newLength: t };
}
var n3 = Ym2(_f(0, 0), 0);
function of(e, t) {
for (;e; ) {
let a3 = t(e);
if (a3 === "quit")
return;
if (a3)
return e;
e = e.parent;
}
}
function gl2(e) {
return (e.flags & 16) === 0;
}
function mg(e, t) {
if (e === undefined || gl2(e))
return e;
for (e = e.original;e; ) {
if (gl2(e))
return !t || t(e) ? e : undefined;
e = e.original;
}
}
function La2(e) {
return e.length >= 2 && e.charCodeAt(0) === 95 && e.charCodeAt(1) === 95 ? "_" + e : e;
}
function l_(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 An2(e) {
return l_(e.escapedText);
}
function cf(e) {
let t = Rm2(e.escapedText);
return t ? Sy(t, di3) : undefined;
}
function Jp2(e) {
return e.valueDeclaration && jg(e.valueDeclaration) ? An2(e.valueDeclaration.name) : l_(e.escapedName);
}
function Hm2(e) {
let t = e.parent.parent;
if (t) {
if (Nd(t))
return rl2(t);
switch (t.kind) {
case 244:
if (t.declarationList && t.declarationList.declarations[0])
return rl2(t.declarationList.declarations[0]);
break;
case 245:
let a3 = t.expression;
switch (a3.kind === 227 && a3.operatorToken.kind === 64 && (a3 = a3.left), a3.kind) {
case 212:
return a3.name;
case 213:
let _2 = a3.argumentExpression;
if (Ke3(_2))
return _2;
}
break;
case 218:
return rl2(t.expression);
case 257: {
if (Nd(t.statement) || _1(t.statement))
return rl2(t.statement);
break;
}
}
}
}
function rl2(e) {
let t = Xm2(e);
return t && Ke3(t) ? t : undefined;
}
function hg(e) {
return e.name || Hm2(e);
}
function yg(e) {
return !!e.name;
}
function lf(e) {
switch (e.kind) {
case 80:
return e;
case 349:
case 342: {
let { name: a3 } = e;
if (a3.kind === 167)
return a3.right;
break;
}
case 214:
case 227: {
let a3 = e;
switch (yf(a3)) {
case 1:
case 4:
case 5:
case 3:
return gf(a3.left);
case 7:
case 8:
case 9:
return a3.arguments[1];
default:
return;
}
}
case 347:
return hg(e);
case 341:
return Hm2(e);
case 278: {
let { expression: a3 } = e;
return Ke3(a3) ? a3 : undefined;
}
case 213:
let t = e;
if (d1(t))
return t.argumentExpression;
}
return e.name;
}
function Xm2(e) {
if (e !== undefined)
return lf(e) || (Mf(e) || Lf(e) || xl2(e) ? gg(e) : undefined);
}
function gg(e) {
if (e.parent) {
if (K1(e.parent) || B1(e.parent))
return e.parent.name;
if (na2(e.parent) && e === e.parent.right) {
if (Ke3(e.parent.left))
return e.parent.left;
if (v1(e.parent.left))
return gf(e.parent.left);
} else if (Jf(e.parent) && Ke3(e.parent.name))
return e.parent.name;
} else
return;
}
function uf(e) {
if (F2(e))
return Hr3(e.modifiers, Cl2);
}
function $m2(e) {
if (v_(e, 98303))
return Hr3(e.modifiers, Bg);
}
function Qm2(e, t) {
if (e.name)
if (Ke3(e.name)) {
let a3 = e.name.escapedText;
return u_(e.parent, t).filter((_2) => zp2(_2) && Ke3(_2.name) && _2.name.escapedText === a3);
} else {
let a3 = e.parent.parameters.indexOf(e);
q3.assert(a3 > -1, "Parameters should always be in their parents' parameter list");
let _2 = u_(e.parent, t).filter(zp2);
if (a3 < _2.length)
return [_2[a3]];
}
return vt3;
}
function bg(e) {
return Qm2(e, false);
}
function vg(e) {
return Qm2(e, true);
}
function Km2(e, t) {
let a3 = e.name.escapedText;
return u_(e.parent, t).filter((_2) => ih(_2) && _2.typeParameters.some((f2) => f2.name.escapedText === a3));
}
function Tg(e) {
return Km2(e, false);
}
function xg(e) {
return Km2(e, true);
}
function Sg(e) {
return bi3(e, a6);
}
function wg(e) {
return Ig(e, d6);
}
function kg(e) {
return bi3(e, s6, true);
}
function Eg(e) {
return bi3(e, _6, true);
}
function Ag(e) {
return bi3(e, o6, true);
}
function Cg(e) {
return bi3(e, c6, true);
}
function Dg(e) {
return bi3(e, l6, true);
}
function Pg(e) {
return bi3(e, p6, true);
}
function Ng(e) {
let t = bi3(e, zf);
if (t && t.typeExpression && t.typeExpression.type)
return t;
}
function u_(e, t) {
var a3;
if (!bf(e))
return vt3;
let _2 = (a3 = e.jsDoc) == null ? undefined : a3.jsDocCache;
if (_2 === undefined || t) {
let f2 = E22(e, t);
q3.assert(f2.length < 2 || f2[0] !== f2[1]), _2 = Tm2(f2, (h) => rh(h) ? h.tags : h), t || (e.jsDoc ?? (e.jsDoc = []), e.jsDoc.jsDocCache = _2);
}
return _2;
}
function Zm2(e) {
return u_(e, false);
}
function bi3(e, t, a3) {
return bm2(u_(e, a3), t);
}
function Ig(e, t) {
return Zm2(e).filter(t);
}
function jp2(e) {
return e.kind === 80 || e.kind === 81;
}
function Og(e) {
return dr3(e) && !!(e.flags & 64);
}
function Mg(e) {
return Ha2(e) && !!(e.flags & 64);
}
function Dd(e) {
return Of(e) && !!(e.flags & 64);
}
function e1(e) {
let t = e.kind;
return !!(e.flags & 64) && (t === 212 || t === 213 || t === 214 || t === 236);
}
function pf(e) {
return Vf(e, 8);
}
function Lg(e) {
return fl2(e) && !!(e.flags & 64);
}
function ff(e) {
return e >= 167;
}
function df(e) {
return e >= 0 && e <= 166;
}
function t1(e) {
return df(e.kind);
}
function mi3(e) {
return Dr3(e, "pos") && Dr3(e, "end");
}
function Jg(e) {
return 9 <= e && e <= 15;
}
function Pd(e) {
return 15 <= e && e <= 18;
}
function Ua2(e) {
var t;
return Ke3(e) && ((t = e.emitNode) == null ? undefined : t.autoGenerate) !== undefined;
}
function n1(e) {
var t;
return gi3(e) && ((t = e.emitNode) == null ? undefined : t.autoGenerate) !== undefined;
}
function jg(e) {
return (Wa2(e) || zg(e)) && gi3(e.name);
}
function Yr3(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 true;
}
return false;
}
function Rg(e) {
return !!(g1(e) & 31);
}
function Ug(e) {
return Rg(e) || e === 126 || e === 164 || e === 129;
}
function Bg(e) {
return Yr3(e.kind);
}
function r1(e) {
let t = e.kind;
return t === 80 || t === 81 || t === 11 || t === 9 || t === 168;
}
function mf(e) {
return !!e && Fg(e.kind);
}
function qg(e) {
switch (e) {
case 263:
case 175:
case 177:
case 178:
case 179:
case 219:
case 220:
return true;
default:
return false;
}
}
function Fg(e) {
switch (e) {
case 174:
case 180:
case 324:
case 181:
case 182:
case 185:
case 318:
case 186:
return true;
default:
return qg(e);
}
}
function ra3(e) {
return e && (e.kind === 264 || e.kind === 232);
}
function zg(e) {
switch (e.kind) {
case 175:
case 178:
case 179:
return true;
default:
return false;
}
}
function Vg(e) {
let t = e.kind;
return t === 304 || t === 305 || t === 306 || t === 175 || t === 178 || t === 179;
}
function i1(e) {
return Z22(e.kind);
}
function Wg(e) {
if (e) {
let t = e.kind;
return t === 208 || t === 207;
}
return false;
}
function Gg(e) {
let t = e.kind;
return t === 210 || t === 211;
}
function Yg(e) {
switch (e.kind) {
case 261:
case 170:
case 209:
return true;
}
return false;
}
function Fa2(e) {
return a1(pf(e).kind);
}
function a1(e) {
switch (e) {
case 212:
case 213:
case 215:
case 214:
case 285:
case 286:
case 289:
case 216:
case 210:
case 218:
case 211:
case 232:
case 219:
case 80:
case 81:
case 14:
case 9:
case 10:
case 11:
case 15:
case 229:
case 97:
case 106:
case 110:
case 112:
case 108:
case 236:
case 234:
case 237:
case 102:
case 283:
return true;
default:
return false;
}
}
function Hg(e) {
return s1(pf(e).kind);
}
function s1(e) {
switch (e) {
case 225:
case 226:
case 221:
case 222:
case 223:
case 224:
case 217:
return true;
default:
return a1(e);
}
}
function _1(e) {
return Xg(pf(e).kind);
}
function Xg(e) {
switch (e) {
case 228:
case 230:
case 220:
case 227:
case 231:
case 235:
case 233:
case 357:
case 356:
case 239:
return true;
default:
return s1(e);
}
}
function $g(e) {
return e === 220 || e === 209 || e === 264 || e === 232 || e === 176 || e === 177 || e === 267 || e === 307 || e === 282 || e === 263 || e === 219 || e === 178 || e === 274 || e === 272 || e === 277 || e === 265 || e === 292 || e === 175 || e === 174 || e === 268 || e === 271 || e === 275 || e === 281 || e === 170 || e === 304 || e === 173 || e === 172 || e === 179 || e === 305 || e === 266 || e === 169 || e === 261 || e === 347 || e === 339 || e === 349 || e === 203;
}
function o1(e) {
return e === 263 || e === 283 || e === 264 || e === 265 || e === 266 || e === 267 || e === 268 || e === 273 || e === 272 || e === 279 || e === 278 || e === 271;
}
function c1(e) {
return e === 253 || e === 252 || e === 260 || e === 247 || e === 245 || e === 243 || e === 250 || e === 251 || e === 249 || e === 246 || e === 257 || e === 254 || e === 256 || e === 258 || e === 259 || e === 244 || e === 248 || e === 255 || e === 354;
}
function Nd(e) {
return e.kind === 169 ? e.parent && e.parent.kind !== 346 || ia3(e) : $g(e.kind);
}
function Qg(e) {
let t = e.kind;
return c1(t) || o1(t) || Kg(e);
}
function Kg(e) {
return e.kind !== 242 || e.parent !== undefined && (e.parent.kind === 259 || e.parent.kind === 300) ? false : !f2(e);
}
function Zg(e) {
let t = e.kind;
return c1(t) || o1(t) || t === 242;
}
function l1(e) {
return e.kind >= 310 && e.kind <= 352;
}
function e2(e) {
return e.kind === 321 || e.kind === 320 || e.kind === 322 || r2(e) || t2(e) || i6(e) || Il2(e);
}
function t2(e) {
return e.kind >= 328 && e.kind <= 352;
}
function il2(e) {
return e.kind === 179;
}
function al2(e) {
return e.kind === 178;
}
function Ki3(e) {
if (!bf(e))
return false;
let { jsDoc: t } = e;
return !!t && t.length > 0;
}
function n2(e) {
return !!e.initializer;
}
function El2(e) {
return e.kind === 11 || e.kind === 15;
}
function r2(e) {
return e.kind === 325 || e.kind === 326 || e.kind === 327;
}
function Id(e) {
return (e.flags & 33554432) !== 0;
}
var r3 = i2();
function i2() {
var e = "";
let t = (a3) => e += a3;
return { getText: () => e, write: t, rawWrite: t, writeKeyword: t, writeOperator: t, writePunctuation: t, writeSpace: t, writeStringLiteral: t, writeLiteral: t, writeParameter: t, writeProperty: t, writeSymbol: (a3, _2) => t(a3), writeTrailingSemicolon: t, writeComment: t, getTextPos: () => e.length, getLine: () => 0, getColumn: () => 0, getIndent: () => 0, isAtStartOfLine: () => false, hasTrailingComment: () => false, hasTrailingWhitespace: () => !!e.length && qa2(e.charCodeAt(e.length - 1)), writeLine: () => e += " ", increaseIndent: Va2, decreaseIndent: Va2, clear: () => e = "" };
}
function a22(e, t) {
let a3 = e.entries();
for (let [_2, f2] of a3) {
let h = t(f2, _2);
if (h)
return h;
}
}
function s2(e) {
return e.end - e.pos;
}
function u1(e) {
return _2(e), (e.flags & 1048576) !== 0;
}
function _2(e) {
e.flags & 2097152 || (((e.flags & 262144) !== 0 || Xt3(e, u1)) && (e.flags |= 1048576), e.flags |= 2097152);
}
function hi3(e) {
for (;e && e.kind !== 308; )
e = e.parent;
return e;
}
function Zi3(e) {
return e === undefined ? true : e.pos === e.end && e.pos >= 0 && e.kind !== 1;
}
function Rp2(e) {
return !Zi3(e);
}
function bl2(e, t, a3) {
if (Zi3(e))
return e.pos;
if (l1(e) || e.kind === 12)
return Cr3((t ?? hi3(e)).text, e.pos, false, true);
if (a3 && Ki3(e))
return bl2(e.jsDoc[0], t);
if (e.kind === 353) {
t ?? (t = hi3(e));
let _3 = Hp2(ah(e, t));
if (_3)
return bl2(_3, t, a3);
}
return Cr3((t ?? hi3(e)).text, e.pos, false, false, d2(e));
}
function Od(e, t, a3 = false) {
return r_(e.text, t, a3);
}
function o2(e) {
return !!of(e, eh);
}
function r_(e, t, a3 = false) {
if (Zi3(t))
return "";
let _3 = e.substring(a3 ? t.pos : Cr3(e, t.pos), t.end);
return o2(t) && (_3 = _3.split(/\r\n|\n|\r/).map((f2) => f2.replace(/^\s*\*/, "").trimStart()).join(`
`)), _3;
}
function za2(e) {
let t = e.emitNode;
return t && t.flags || 0;
}
function c2(e, t, a3) {
q3.assertGreaterThanOrEqual(t, 0), q3.assertGreaterThanOrEqual(a3, 0), q3.assertLessThanOrEqual(t, e.length), q3.assertLessThanOrEqual(t + a3, e.length);
}
function pl2(e) {
return e.kind === 245 && e.expression.kind === 11;
}
function hf(e) {
return !!(za2(e) & 2097152);
}
function Md(e) {
return hf(e) && jf(e);
}
function l2(e) {
return Ke3(e.name) && !e.initializer;
}
function Ld(e) {
return hf(e) && Xa2(e) && Gp2(e.declarationList.declarations, l2);
}
function u2(e, t) {
let a3 = e.kind === 170 || e.kind === 169 || e.kind === 219 || e.kind === 220 || e.kind === 218 || e.kind === 261 || e.kind === 282 ? Yp2(og(t, e.pos), Lp2(t, e.pos)) : Lp2(t, e.pos);
return Hr3(a3, (_3) => _3.end <= e.end && t.charCodeAt(_3.pos + 1) === 42 && t.charCodeAt(_3.pos + 2) === 42 && t.charCodeAt(_3.pos + 3) !== 47);
}
function p2(e) {
if (e)
switch (e.kind) {
case 209:
case 307:
case 170:
case 304:
case 173:
case 172:
case 305:
case 261:
return true;
}
return false;
}
function f2(e) {
return e && e.kind === 242 && mf(e.parent);
}
function Jd(e) {
let t = e.kind;
return (t === 212 || t === 213) && e.expression.kind === 108;
}
function ia3(e) {
return !!e && !!(e.flags & 524288);
}
function d2(e) {
return !!e && !!(e.flags & 16777216);
}
function m22(e) {
for (;vl2(e, true); )
e = e.right;
return e;
}
function h2(e) {
return Ke3(e) && e.escapedText === "exports";
}
function y2(e) {
return Ke3(e) && e.escapedText === "module";
}
function p1(e) {
return (dr3(e) || f1(e)) && y2(e.expression) && f_(e) === "exports";
}
function yf(e) {
let t = b2(e);
return t === 5 || ia3(e) ? t : 0;
}
function g2(e) {
return e_(e.arguments) === 3 && dr3(e.expression) && Ke3(e.expression.expression) && An2(e.expression.expression) === "Object" && An2(e.expression.name) === "defineProperty" && Al2(e.arguments[1]) && p_(e.arguments[0], true);
}
function f1(e) {
return Ha2(e) && Al2(e.argumentExpression);
}
function b_(e, t) {
return dr3(e) && (!t && e.expression.kind === 110 || Ke3(e.name) && p_(e.expression, true)) || d1(e, t);
}
function d1(e, t) {
return f1(e) && (!t && e.expression.kind === 110 || xf(e.expression) || b_(e.expression, true));
}
function p_(e, t) {
return xf(e) || b_(e, t);
}
function b2(e) {
if (Of(e)) {
if (!g2(e))
return 0;
let t = e.arguments[0];
return h2(t) || p1(t) ? 8 : b_(t) && f_(t) === "prototype" ? 9 : 7;
}
return e.operatorToken.kind !== 64 || !v1(e.left) || v22(m22(e)) ? 0 : p_(e.left.expression, true) && f_(e.left) === "prototype" && If(x2(e)) ? 6 : T22(e.left);
}
function v22(e) {
return Kb(e) && aa2(e.expression) && e.expression.text === "0";
}
function gf(e) {
if (dr3(e))
return e.name;
let t = vf(e.argumentExpression);
return aa2(t) || El2(t) ? t : e;
}
function f_(e) {
let t = gf(e);
if (t) {
if (Ke3(t))
return t.escapedText;
if (El2(t) || aa2(t))
return La2(t.text);
}
}
function T22(e) {
if (e.expression.kind === 110)
return 4;
if (p1(e))
return 2;
if (p_(e.expression, true)) {
if (Q22(e.expression))
return 3;
let t = e;
for (;!Ke3(t.expression); )
t = t.expression;
let a3 = t.expression;
if ((a3.escapedText === "exports" || a3.escapedText === "module" && f_(t) === "exports") && b_(e))
return 1;
if (p_(e, true) || Ha2(e) && J22(e))
return 5;
}
return 0;
}
function x2(e) {
for (;na2(e.right); )
e = e.right;
return e.right;
}
function S2(e) {
return Pl2(e) && na2(e.expression) && yf(e.expression) !== 0 && na2(e.expression.right) && (e.expression.right.operatorToken.kind === 57 || e.expression.right.operatorToken.kind === 61) ? e.expression.right.right : undefined;
}
function w22(e) {
switch (e.kind) {
case 244:
let t = Up2(e);
return t && t.initializer;
case 173:
return e.initializer;
case 304:
return e.initializer;
}
}
function Up2(e) {
return Xa2(e) ? Hp2(e.declarationList.declarations) : undefined;
}
function k2(e) {
return Ti3(e) && e.body && e.body.kind === 268 ? e.body : undefined;
}
function bf(e) {
switch (e.kind) {
case 220:
case 227:
case 242:
case 253:
case 180:
case 297:
case 264:
case 232:
case 176:
case 177:
case 186:
case 181:
case 252:
case 260:
case 247:
case 213:
case 243:
case 1:
case 267:
case 307:
case 278:
case 279:
case 282:
case 245:
case 250:
case 251:
case 249:
case 263:
case 219:
case 185:
case 178:
case 80:
case 246:
case 273:
case 272:
case 182:
case 265:
case 318:
case 324:
case 257:
case 175:
case 174:
case 268:
case 203:
case 271:
case 211:
case 170:
case 218:
case 212:
case 304:
case 173:
case 172:
case 254:
case 241:
case 179:
case 305:
case 306:
case 256:
case 258:
case 259:
case 266:
case 169:
case 261:
case 244:
case 248:
case 255:
return true;
default:
return false;
}
}
function E22(e, t) {
let a3;
p2(e) && n2(e) && Ki3(e.initializer) && (a3 = En2(a3, jd(e, e.initializer.jsDoc)));
let _3 = e;
for (;_3 && _3.parent; ) {
if (Ki3(_3) && (a3 = En2(a3, jd(e, _3.jsDoc))), _3.kind === 170) {
a3 = En2(a3, (t ? vg : bg)(_3));
break;
}
if (_3.kind === 169) {
a3 = En2(a3, (t ? xg : Tg)(_3));
break;
}
_3 = C2(_3);
}
return a3 || vt3;
}
function jd(e, t) {
let a3 = dy(t);
return Tm2(t, (_3) => {
if (_3 === a3) {
let f3 = Hr3(_3.tags, (h) => A22(e, h));
return _3.tags === f3 ? [_3] : f3;
} else
return Hr3(_3.tags, u6);
});
}
function A22(e, t) {
return !(zf(t) || m6(t)) || !t.parent || !rh(t.parent) || !Dl2(t.parent.parent) || t.parent.parent === e;
}
function C2(e) {
let t = e.parent;
if (t.kind === 304 || t.kind === 278 || t.kind === 173 || t.kind === 245 && e.kind === 212 || t.kind === 254 || k2(t) || vl2(e))
return t;
if (t.parent && (Up2(t.parent) === e || vl2(t)))
return t.parent;
if (t.parent && t.parent.parent && (Up2(t.parent.parent) || w22(t.parent.parent) === e || S2(t.parent.parent)))
return t.parent.parent;
}
function vf(e, t) {
return Vf(e, t ? -2147483647 : 1);
}
function D2(e) {
let t = P22(e);
if (t && ia3(e)) {
let a3 = Sg(e);
if (a3)
return a3.class;
}
return t;
}
function P22(e) {
let t = Tf(e.heritageClauses, 96);
return t && t.types.length > 0 ? t.types[0] : undefined;
}
function N2(e) {
if (ia3(e))
return wg(e).map((t) => t.class);
{
let t = Tf(e.heritageClauses, 119);
return t?.types;
}
}
function I2(e) {
return T_(e) ? O2(e) || vt3 : ra3(e) && Yp2(Ip2(D2(e)), N2(e)) || vt3;
}
function O2(e) {
let t = Tf(e.heritageClauses, 96);
return t ? t.types : undefined;
}
function Tf(e, t) {
if (e) {
for (let a3 of e)
if (a3.token === t)
return a3;
}
}
function di3(e) {
return 83 <= e && e <= 166;
}
function M22(e) {
return 19 <= e && e <= 79;
}
function xp2(e) {
return di3(e) || M22(e);
}
function Al2(e) {
return El2(e) || aa2(e);
}
function L22(e) {
return z1(e) && (e.operator === 40 || e.operator === 41) && aa2(e.operand);
}
function J22(e) {
if (!(e.kind === 168 || e.kind === 213))
return false;
let t = Ha2(e) ? vf(e.argumentExpression) : e.expression;
return !Al2(t) && !L22(t);
}
function j2(e) {
return jp2(e) ? An2(e) : Q1(e) ? Eb(e) : e.text;
}
function Ja2(e) {
return d_(e.pos) || d_(e.end);
}
function Sp2(e) {
switch (e) {
case 61:
return 5;
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 wp2(e) {
return !!((e.templateFlags || 0) & 2048);
}
function R22(e) {
return e && !!(E1(e) ? wp2(e) : wp2(e.head) || Zt3(e.templateSpans, (t) => wp2(t.literal)));
}
var i3 = new Map(Object.entries({ "\t": "\\t", "\v": "\\v", "\f": "\\f", "\b": "\\b", "\r": "\\r", "\n": "\\n", "\\": "\\\\", '"': "\\\"", "'": "\\'", "`": "\\`", "\u2028": "\\u2028", "\u2029": "\\u2029", "\x85": "\\u0085", "\r\n": "\\r\\n" }));
var a3 = new Map(Object.entries({ '"': """, "'": "'" }));
function U2(e) {
return !!e && e.kind === 80 && B2(e);
}
function B2(e) {
return e.escapedText === "this";
}
function v_(e, t) {
return !!z2(e, t);
}
function q22(e) {
return v_(e, 256);
}
function F2(e) {
return v_(e, 32768);
}
function z2(e, t) {
return W22(e) & t;
}
function V22(e, t, a4) {
return e.kind >= 0 && e.kind <= 166 ? 0 : (e.modifierFlagsCache & 536870912 || (e.modifierFlagsCache = y1(e) | 536870912), a4 || t && ia3(e) ? (!(e.modifierFlagsCache & 268435456) && e.parent && (e.modifierFlagsCache |= m1(e) | 268435456), h1(e.modifierFlagsCache)) : G22(e.modifierFlagsCache));
}
function W22(e) {
return V22(e, false);
}
function m1(e) {
let t = 0;
return e.parent && !m_(e) && (ia3(e) && (kg(e) && (t |= 8388608), Eg(e) && (t |= 16777216), Ag(e) && (t |= 33554432), Cg(e) && (t |= 67108864), Dg(e) && (t |= 134217728)), Pg(e) && (t |= 65536)), t;
}
function G22(e) {
return e & 65535;
}
function h1(e) {
return e & 131071 | (e & 260046848) >>> 23;
}
function Y2(e) {
return h1(m1(e));
}
function H22(e) {
return y1(e) | Y2(e);
}
function y1(e) {
let t = Ol2(e) ? Jn(e.modifiers) : 0;
return (e.flags & 8 || e.kind === 80 && e.flags & 4096) && (t |= 32), t;
}
function Jn(e) {
let t = 0;
if (e)
for (let a4 of e)
t |= g1(a4.kind);
return t;
}
function g1(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 171:
return 32768;
}
return 0;
}
function X22(e) {
return e === 76 || e === 77 || e === 78;
}
function b1(e) {
return e >= 64 && e <= 79;
}
function vl2(e, t) {
return na2(e) && (t ? e.operatorToken.kind === 64 : b1(e.operatorToken.kind)) && Fa2(e.left);
}
function xf(e) {
return e.kind === 80 || $22(e);
}
function $22(e) {
return dr3(e) && Ke3(e.name) && xf(e.expression);
}
function Q22(e) {
return b_(e) && f_(e) === "prototype";
}
function kp2(e) {
return e.flags & 3899393 ? e.objectFlags : 0;
}
function K22(e) {
let t;
return Xt3(e, (a4) => {
Rp2(a4) && (t = a4);
}, (a4) => {
for (let _3 = a4.length - 1;_3 >= 0; _3--)
if (Rp2(a4[_3])) {
t = a4[_3];
break;
}
}), t;
}
function Z22(e) {
return e >= 183 && e <= 206 || 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 === 234 || e === 313 || e === 314 || e === 315 || e === 316 || e === 317 || e === 318 || e === 319;
}
function v1(e) {
return e.kind === 212 || e.kind === 213;
}
function eb(e, t) {
this.flags = e, this.escapedName = t, this.declarations = undefined, this.valueDeclaration = undefined, this.id = 0, this.mergeId = 0, this.parent = undefined, this.members = undefined, this.exports = undefined, this.exportSymbol = undefined, this.constEnumOnlyModule = undefined, this.isReferenced = undefined, this.lastAssignmentPos = undefined, this.links = undefined;
}
function tb(e, t) {
this.flags = t, (q3.isDebugging || ll2) && (this.checker = e);
}
function nb(e, t) {
this.flags = t, q3.isDebugging && (this.checker = e);
}
function Ep2(e, t, a4) {
this.pos = t, this.end = a4, this.kind = e, this.id = 0, this.flags = 0, this.modifierFlagsCache = 0, this.transformFlags = 0, this.parent = undefined, this.original = undefined, this.emitNode = undefined;
}
function rb(e, t, a4) {
this.pos = t, this.end = a4, this.kind = e, this.id = 0, this.flags = 0, this.transformFlags = 0, this.parent = undefined, this.emitNode = undefined;
}
function ib(e, t, a4) {
this.pos = t, this.end = a4, this.kind = e, this.id = 0, this.flags = 0, this.transformFlags = 0, this.parent = undefined, this.original = undefined, this.emitNode = undefined;
}
function ab(e, t, a4) {
this.fileName = e, this.text = t, this.skipTrivia = a4 || ((_3) => _3);
}
var Et3 = { getNodeConstructor: () => Ep2, getTokenConstructor: () => rb, getIdentifierConstructor: () => ib, getPrivateIdentifierConstructor: () => Ep2, getSourceFileConstructor: () => Ep2, getSymbolConstructor: () => eb, getTypeConstructor: () => tb, getSignatureConstructor: () => nb, getSourceMapSourceConstructor: () => ab };
var sb = [];
function _b(e) {
Object.assign(Et3, e), jn2(sb, (t) => t(Et3));
}
function ob(e, t) {
return e.replace(/\{(\d+)\}/g, (a4, _3) => "" + q3.checkDefined(t[+_3]));
}
var Rd;
function cb(e) {
return Rd && Rd[e.key] || e.message;
}
function Oa2(e, t, a4, _3, f3, ...h) {
a4 + _3 > t.length && (_3 = t.length - a4), c2(t, a4, _3);
let T3 = cb(f3);
return Zt3(h) && (T3 = ob(T3, h)), { file: undefined, start: a4, length: _3, messageText: T3, category: f3.category, code: f3.code, reportsUnnecessary: f3.reportsUnnecessary, fileName: e };
}
function lb(e) {
return e.file === undefined && e.start !== undefined && e.length !== undefined && typeof e.fileName == "string";
}
function T1(e, t) {
let a4 = t.fileName || "", _3 = t.text.length;
q3.assertEqual(e.fileName, a4), q3.assertLessThanOrEqual(e.start, _3), q3.assertLessThanOrEqual(e.start + e.length, _3);
let f3 = { file: t, start: e.start, length: e.length, messageText: e.messageText, category: e.category, code: e.code, reportsUnnecessary: e.reportsUnnecessary };
if (e.relatedInformation) {
f3.relatedInformation = [];
for (let h of e.relatedInformation)
lb(h) && h.fileName === a4 ? (q3.assertLessThanOrEqual(h.start, _3), q3.assertLessThanOrEqual(h.start + h.length, _3), f3.relatedInformation.push(T1(h, t))) : f3.relatedInformation.push(h);
}
return f3;
}
function Yi3(e, t) {
let a4 = [];
for (let _3 of e)
a4.push(T1(_3, t));
return a4;
}
function Ud(e) {
return e === 4 || e === 2 || e === 1 || e === 6 ? 1 : 0;
}
var it2 = { allowImportingTsExtensions: { dependencies: ["rewriteRelativeImportExtensions"], computeValue: (e) => !!(e.allowImportingTsExtensions || e.rewriteRelativeImportExtensions) }, target: { dependencies: ["module"], computeValue: (e) => (e.target === 0 ? undefined : e.target) ?? (e.module === 100 && 9 || e.module === 101 && 9 || e.module === 102 && 10 || e.module === 199 && 99 || 1) }, module: { dependencies: ["target"], computeValue: (e) => typeof e.module == "number" ? e.module : it2.target.computeValue(e) >= 2 ? 5 : 1 }, moduleResolution: { dependencies: ["module", "target"], computeValue: (e) => {
let t = e.moduleResolution;
if (t === undefined)
switch (it2.module.computeValue(e)) {
case 1:
t = 2;
break;
case 100:
case 101:
case 102:
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 !== undefined)
return e.moduleDetection;
let t = it2.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 !== undefined)
return e.esModuleInterop;
switch (it2.module.computeValue(e)) {
case 100:
case 101:
case 102:
case 199:
case 200:
return true;
}
return false;
} }, allowSyntheticDefaultImports: { dependencies: ["module", "target", "moduleResolution"], computeValue: (e) => e.allowSyntheticDefaultImports !== undefined ? e.allowSyntheticDefaultImports : it2.esModuleInterop.computeValue(e) || it2.module.computeValue(e) === 4 || it2.moduleResolution.computeValue(e) === 100 }, resolvePackageJsonExports: { dependencies: ["moduleResolution"], computeValue: (e) => {
let t = it2.moduleResolution.computeValue(e);
if (!Bd(t))
return false;
if (e.resolvePackageJsonExports !== undefined)
return e.resolvePackageJsonExports;
switch (t) {
case 3:
case 99:
case 100:
return true;
}
return false;
} }, resolvePackageJsonImports: { dependencies: ["moduleResolution", "resolvePackageJsonExports"], computeValue: (e) => {
let t = it2.moduleResolution.computeValue(e);
if (!Bd(t))
return false;
if (e.resolvePackageJsonImports !== undefined)
return e.resolvePackageJsonImports;
switch (t) {
case 3:
case 99:
case 100:
return true;
}
return false;
} }, resolveJsonModule: { dependencies: ["moduleResolution", "module", "target"], computeValue: (e) => {
if (e.resolveJsonModule !== undefined)
return e.resolveJsonModule;
switch (it2.module.computeValue(e)) {
case 102:
case 199:
return true;
}
return it2.moduleResolution.computeValue(e) === 100;
} }, declaration: { dependencies: ["composite"], computeValue: (e) => !!(e.declaration || e.composite) }, preserveConstEnums: { dependencies: ["isolatedModules", "verbatimModuleSyntax"], computeValue: (e) => !!(e.preserveConstEnums || it2.isolatedModules.computeValue(e)) }, incremental: { dependencies: ["composite"], computeValue: (e) => !!(e.incremental || e.composite) }, declarationMap: { dependencies: ["declaration", "composite"], computeValue: (e) => !!(e.declarationMap && it2.declaration.computeValue(e)) }, allowJs: { dependencies: ["checkJs"], computeValue: (e) => e.allowJs === undefined ? !!e.checkJs : e.allowJs }, useDefineForClassFields: { dependencies: ["target", "module"], computeValue: (e) => e.useDefineForClassFields === undefined ? it2.target.computeValue(e) >= 9 : e.useDefineForClassFields }, noImplicitAny: { dependencies: ["strict"], computeValue: (e) => Gr3(e, "noImplicitAny") }, noImplicitThis: { dependencies: ["strict"], computeValue: (e) => Gr3(e, "noImplicitThis") }, strictNullChecks: { dependencies: ["strict"], computeValue: (e) => Gr3(e, "strictNullChecks") }, strictFunctionTypes: { dependencies: ["strict"], computeValue: (e) => Gr3(e, "strictFunctionTypes") }, strictBindCallApply: { dependencies: ["strict"], computeValue: (e) => Gr3(e, "strictBindCallApply") }, strictPropertyInitialization: { dependencies: ["strict"], computeValue: (e) => Gr3(e, "strictPropertyInitialization") }, strictBuiltinIteratorReturn: { dependencies: ["strict"], computeValue: (e) => Gr3(e, "strictBuiltinIteratorReturn") }, alwaysStrict: { dependencies: ["strict"], computeValue: (e) => Gr3(e, "alwaysStrict") }, useUnknownInCatchVariables: { dependencies: ["strict"], computeValue: (e) => Gr3(e, "useUnknownInCatchVariables") } };
var s3 = it2.allowImportingTsExtensions.computeValue;
var _3 = it2.target.computeValue;
var o3 = it2.module.computeValue;
var c3 = it2.moduleResolution.computeValue;
var l3 = it2.moduleDetection.computeValue;
var u3 = it2.isolatedModules.computeValue;
var p3 = it2.esModuleInterop.computeValue;
var f3 = it2.allowSyntheticDefaultImports.computeValue;
var d3 = it2.resolvePackageJsonExports.computeValue;
var m3 = it2.resolvePackageJsonImports.computeValue;
var h3 = it2.resolveJsonModule.computeValue;
var y3 = it2.declaration.computeValue;
var g3 = it2.preserveConstEnums.computeValue;
var b3 = it2.incremental.computeValue;
var v3 = it2.declarationMap.computeValue;
var T3 = it2.allowJs.computeValue;
var x3 = it2.useDefineForClassFields.computeValue;
function Bd(e) {
return e >= 3 && e <= 99 || e === 100;
}
function Gr3(e, t) {
return e[t] === undefined ? !!e.strict : !!e[t];
}
function ub(e) {
return a22(targetOptionDeclaration.type, (t, a4) => t === e ? a4 : undefined);
}
var pb = ["node_modules", "bower_components", "jspm_packages"];
var x1 = `(?!(?:${pb.join("|")})(?:/|$))`;
var fb = { singleAsteriskRegexFragment: "(?:[^./]|(?:\\.(?!min\\.js$))?)*", doubleAsteriskRegexFragment: `(?:/${x1}[^/.][^/]*)*?`, replaceWildcardCharacter: (e) => S1(e, fb.singleAsteriskRegexFragment) };
var db = { singleAsteriskRegexFragment: "[^/]*", doubleAsteriskRegexFragment: `(?:/${x1}[^/.][^/]*)*?`, replaceWildcardCharacter: (e) => S1(e, db.singleAsteriskRegexFragment) };
function S1(e, t) {
return e === "*" ? t : e === "?" ? "[^/]" : "\\" + e;
}
function mb(e, t) {
return t || hb(e) || 3;
}
function hb(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 w1 = [[".ts", ".tsx", ".d.ts"], [".cts", ".d.cts"], [".mts", ".d.mts"]];
var S3 = vm2(w1);
var w3 = [...w1, [".json"]];
var yb = [[".js", ".jsx"], [".mjs"], [".cjs"]];
var k3 = vm2(yb);
var gb = [[".ts", ".tsx", ".d.ts", ".js", ".jsx"], [".cts", ".d.cts", ".cjs"], [".mts", ".d.mts", ".mjs"]];
var E3 = [...gb, [".json"]];
var bb = [".d.ts", ".d.cts", ".d.mts"];
function d_(e) {
return !(e >= 0);
}
function sl2(e, ...t) {
return t.length && (e.relatedInformation || (e.relatedInformation = []), q3.assert(e.relatedInformation !== vt3, "Diagnostic had empty array singleton for related info, but is still being constructed!"), e.relatedInformation.push(...t)), e;
}
function vb(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 W3 = e.length - 1, y4 = 0;
for (;e.charCodeAt(y4) === 48; )
y4++;
return e.slice(y4, W3) || "0";
}
let a4 = 2, _4 = e.length - 1, f4 = (_4 - a4) * t, h = new Uint16Array((f4 >>> 4) + (f4 & 15 ? 1 : 0));
for (let W3 = _4 - 1, y4 = 0;W3 >= a4; W3--, y4 += t) {
let G3 = y4 >>> 4, E4 = e.charCodeAt(W3), R3 = (E4 <= 57 ? E4 - 48 : 10 + E4 - (E4 <= 70 ? 65 : 97)) << (y4 & 15);
h[G3] |= R3;
let ue3 = R3 >>> 16;
ue3 && (h[G3 + 1] |= ue3);
}
let T4 = "", k4 = h.length - 1, c4 = true;
for (;c4; ) {
let W3 = 0;
c4 = false;
for (let y4 = k4;y4 >= 0; y4--) {
let G3 = W3 << 16 | h[y4], E4 = G3 / 10 | 0;
h[y4] = E4, W3 = G3 - E4 * 10, E4 && !c4 && (k4 = y4, c4 = true);
}
T4 = W3 + T4;
}
return T4;
}
function Tb({ negative: e, base10Value: t }) {
return (e && t !== "0" ? "-" : "") + t;
}
function Bp2(e, t) {
return e.pos = t, e;
}
function xb(e, t) {
return e.end = t, e;
}
function yi3(e, t, a4) {
return xb(Bp2(e, t), a4);
}
function qd(e, t, a4) {
return yi3(e, t, t + a4);
}
function Sf(e, t) {
return e && t && (e.parent = t), e;
}
function Sb(e, t) {
if (!e)
return e;
return dm2(e, l1(e) ? a4 : f4), e;
function a4(h, T4) {
if (t && h.parent === T4)
return "skip";
Sf(h, T4);
}
function _4(h) {
if (Ki3(h))
for (let T4 of h.jsDoc)
a4(T4, h), dm2(T4, a4);
}
function f4(h, T4) {
return a4(h, T4) || _4(h);
}
}
function wb(e) {
return !!(e.flags & 262144 && e.isThisType);
}
function kb(e) {
var t;
return ((t = getSnippetElement(e)) == null ? undefined : t.kind) === 0;
}
function Eb(e) {
return `${An2(e.namespace)}:${An2(e.name)}`;
}
var A3 = String.prototype.replace;
var qp2 = ["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"];
var C3 = new Set(qp2);
var Ab = new Set(["node:sea", "node:sqlite", "node:test", "node:test/reporters"]);
var D3 = new Set([...qp2, ...qp2.map((e) => `node:${e}`), ...Ab]);
function Cb() {
let e, t, a4, _4, f4;
return { createBaseSourceFileNode: h, createBaseIdentifierNode: T4, createBasePrivateIdentifierNode: k4, createBaseTokenNode: c4, createBaseNode: W3 };
function h(y4) {
return new (f4 || (f4 = Et3.getSourceFileConstructor()))(y4, -1, -1);
}
function T4(y4) {
return new (a4 || (a4 = Et3.getIdentifierConstructor()))(y4, -1, -1);
}
function k4(y4) {
return new (_4 || (_4 = Et3.getPrivateIdentifierConstructor()))(y4, -1, -1);
}
function c4(y4) {
return new (t || (t = Et3.getTokenConstructor()))(y4, -1, -1);
}
function W3(y4) {
return new (e || (e = Et3.getNodeConstructor()))(y4, -1, -1);
}
}
var Db = { getParenthesizeLeftSideOfBinaryForOperator: (e) => bt3, getParenthesizeRightSideOfBinaryForOperator: (e) => bt3, parenthesizeLeftSideOfBinary: (e, t) => t, parenthesizeRightSideOfBinary: (e, t, a4) => a4, parenthesizeExpressionOfComputedPropertyName: bt3, parenthesizeConditionOfConditionalExpression: bt3, parenthesizeBranchOfConditionalExpression: bt3, parenthesizeExpressionOfExportDefault: bt3, parenthesizeExpressionOfNew: (e) => Er3(e, Fa2), parenthesizeLeftSideOfAccess: (e) => Er3(e, Fa2), parenthesizeOperandOfPostfixUnary: (e) => Er3(e, Fa2), parenthesizeOperandOfPrefixUnary: (e) => Er3(e, Hg), parenthesizeExpressionsOfCommaDelimitedList: (e) => Er3(e, mi3), parenthesizeExpressionForDisallowedComma: bt3, parenthesizeExpressionOfExpressionStatement: bt3, parenthesizeConciseBodyOfArrowFunction: bt3, parenthesizeCheckTypeOfConditionalType: bt3, parenthesizeExtendsTypeOfConditionalType: bt3, parenthesizeConstituentTypesOfUnionType: (e) => Er3(e, mi3), parenthesizeConstituentTypeOfUnionType: bt3, parenthesizeConstituentTypesOfIntersectionType: (e) => Er3(e, mi3), parenthesizeConstituentTypeOfIntersectionType: bt3, parenthesizeOperandOfTypeOperator: bt3, parenthesizeOperandOfReadonlyTypeOperator: bt3, parenthesizeNonArrayTypeOfPostfixType: bt3, parenthesizeElementTypesOfTupleType: (e) => Er3(e, mi3), parenthesizeElementTypeOfTupleType: bt3, parenthesizeTypeOfOptionalType: bt3, parenthesizeTypeArguments: (e) => e && Er3(e, mi3), parenthesizeLeadingTypeArgument: bt3 };
var _l2 = 0;
var Pb = [];
function wf(e, t) {
let a4 = e & 8 ? bt3 : Lb, _4 = gd(() => e & 1 ? Db : createParenthesizerRules(he3)), f4 = gd(() => e & 2 ? nullNodeConverters : createNodeConverters(he3)), h = Kn2((n) => (i, s) => da3(i, n, s)), T4 = Kn2((n) => (i) => Ur3(n, i)), k4 = Kn2((n) => (i) => ni3(i, n)), c4 = Kn2((n) => () => Qo2(n)), W3 = Kn2((n) => (i) => Cs3(n, i)), y4 = Kn2((n) => (i, s) => wu2(n, i, s)), G3 = Kn2((n) => (i, s) => Ko2(n, i, s)), E4 = Kn2((n) => (i, s) => Su2(n, i, s)), D4 = Kn2((n) => (i, s) => hc2(n, i, s)), R3 = Kn2((n) => (i, s, l4) => Lu2(n, i, s, l4)), ue3 = Kn2((n) => (i, s, l4) => yc2(n, i, s, l4)), be3 = Kn2((n) => (i, s, l4, d) => Ju2(n, i, s, l4, d)), he3 = { get parenthesizer() {
return _4();
}, get converters() {
return f4();
}, baseFactory: t, flags: e, createNodeArray: de3, createNumericLiteral: V3, createBigIntLiteral: oe3, createStringLiteral: ft3, createStringLiteralFromNode: nr3, createRegularExpressionLiteral: mn2, createLiteralLikeNode: rr3, createIdentifier: We3, createTempVariable: ir3, createLoopVariable: Ir2, createUniqueName: Ot3, getGeneratedNameForNode: Bn2, createPrivateIdentifier: Mt3, createUniquePrivateName: $e3, getGeneratedPrivateNameForNode: qn2, createToken: ot3, createSuper: at3, createThis: Bt2, createNull: Lt3, createTrue: ct3, createFalse: ar3, createModifier: dt3, createModifiersFromModifierFlags: yn2, createQualifiedName: yt3, updateQualifiedName: _n2, createComputedPropertyName: tt3, updateComputedPropertyName: qt3, createTypeParameterDeclaration: tn2, updateTypeParameterDeclaration: sr3, createParameterDeclaration: mr2, updateParameterDeclaration: hr3, createDecorator: Fn2, updateDecorator: zn2, createPropertySignature: Or3, updatePropertySignature: Vn2, createPropertyDeclaration: yr3, updatePropertyDeclaration: L3, createMethodSignature: se3, updateMethodSignature: fe2, createMethodDeclaration: Te3, updateMethodDeclaration: He3, createConstructorDeclaration: lt3, updateConstructorDeclaration: Mr3, createGetAccessorDeclaration: Nn, updateGetAccessorDeclaration: Wn2, createSetAccessorDeclaration: U3, updateSetAccessorDeclaration: K3, createCallSignature: xe3, updateCallSignature: Se3, createConstructSignature: we3, updateConstructSignature: me3, createIndexSignature: Ve3, updateIndexSignature: Ze3, createClassStaticBlockDeclaration: st2, updateClassStaticBlockDeclaration: Ct3, createTemplateLiteralTypeSpan: Ye3, updateTemplateLiteralTypeSpan: Ee3, createKeywordTypeNode: gn2, createTypePredicateNode: rt3, updateTypePredicateNode: on2, createTypeReferenceNode: Zr3, updateTypeReferenceNode: M3, createFunctionTypeNode: Ue3, updateFunctionTypeNode: u, createConstructorTypeNode: Me3, updateConstructorTypeNode: nn2, createTypeQueryNode: Dt3, updateTypeQueryNode: wt3, createTypeLiteralNode: Pt3, updateTypeLiteralNode: Ft3, createArrayTypeNode: Gn2, updateArrayTypeNode: ki3, createTupleTypeNode: cn2, updateTupleTypeNode: H3, createNamedTupleMember: le3, updateNamedTupleMember: qe3, createOptionalTypeNode: ve3, updateOptionalTypeNode: J3, createRestTypeNode: mt3, updateRestTypeNode: xt3, createUnionTypeNode: ql2, updateUnionTypeNode: C_, createIntersectionTypeNode: Lr3, updateIntersectionTypeNode: Le3, createConditionalTypeNode: pt3, updateConditionalTypeNode: Fl2, createInferTypeNode: Yn2, updateInferTypeNode: zl2, createImportTypeNode: _r3, updateImportTypeNode: oa2, createParenthesizedType: Qt3, updateParenthesizedType: At3, createThisTypeNode: P3, createTypeOperatorNode: Gt3, updateTypeOperatorNode: Jr3, createIndexedAccessTypeNode: or3, updateIndexedAccessTypeNode: Ka2, createMappedTypeNode: gt3, updateMappedTypeNode: jt3, createLiteralTypeNode: ei3, updateLiteralTypeNode: br3, createTemplateLiteralType: Wt3, updateTemplateLiteralType: Vl2, createObjectBindingPattern: D_, updateObjectBindingPattern: Wl2, createArrayBindingPattern: jr3, updateArrayBindingPattern: Gl2, createBindingElement: ca2, updateBindingElement: ti3, createArrayLiteralExpression: Za2, updateArrayLiteralExpression: P_, createObjectLiteralExpression: Ei3, updateObjectLiteralExpression: Yl2, createPropertyAccessExpression: e & 4 ? (n, i) => setEmitFlags(cr2(n, i), 262144) : cr2, updatePropertyAccessExpression: Hl2, createPropertyAccessChain: e & 4 ? (n, i, s) => setEmitFlags(Ai3(n, i, s), 262144) : Ai3, updatePropertyAccessChain: la2, createElementAccessExpression: Ci3, updateElementAccessExpression: Xl2, createElementAccessChain: O_, updateElementAccessChain: es3, createCallExpression: Di3, updateCallExpression: ua3, createCallChain: ts3, updateCallChain: L_, createNewExpression: bn2, updateNewExpression: ns3, createTaggedTemplateExpression: pa2, updateTaggedTemplateExpression: J_, createTypeAssertion: j_, updateTypeAssertion: R_, createParenthesizedExpression: rs3, updateParenthesizedExpression: U_, createFunctionExpression: is3, updateFunctionExpression: B_, createArrowFunction: as3, updateArrowFunction: q_, createDeleteExpression: F_, updateDeleteExpression: z_, createTypeOfExpression: fa2, updateTypeOfExpression: un2, createVoidExpression: ss3, updateVoidExpression: lr2, createAwaitExpression: V_, updateAwaitExpression: Rr3, createPrefixUnaryExpression: Ur3, updatePrefixUnaryExpression: $l2, createPostfixUnaryExpression: ni3, updatePostfixUnaryExpression: Ql2, createBinaryExpression: da3, updateBinaryExpression: Kl2, createConditionalExpression: G_, updateConditionalExpression: Y_, createTemplateExpression: H_, updateTemplateExpression: Hn2, createTemplateHead: $_, createTemplateMiddle: ma3, createTemplateTail: _s3, createNoSubstitutionTemplateLiteral: eu2, createTemplateLiteralLikeNode: ii3, createYieldExpression: os3, updateYieldExpression: tu2, createSpreadElement: Q_, updateSpreadElement: nu2, createClassExpression: K_, updateClassExpression: cs3, createOmittedExpression: ls3, createExpressionWithTypeArguments: Z_, updateExpressionWithTypeArguments: eo2, createAsExpression: pn2, updateAsExpression: ha, createNonNullExpression: to2, updateNonNullExpression: no2, createSatisfiesExpression: us3, updateSatisfiesExpression: ro2, createNonNullChain: ps3, updateNonNullChain: In2, createMetaProperty: io2, updateMetaProperty: fs3, createTemplateSpan: Xn2, updateTemplateSpan: ya2, createSemicolonClassElement: ao2, createBlock: Br3, updateBlock: ru2, createVariableStatement: ds3, updateVariableStatement: so2, createEmptyStatement: _o2, createExpressionStatement: Ni3, updateExpressionStatement: oo2, createIfStatement: co2, updateIfStatement: lo2, createDoStatement: uo2, updateDoStatement: po2, createWhileStatement: fo2, updateWhileStatement: iu2, createForStatement: mo2, updateForStatement: ho2, createForInStatement: ms3, updateForInStatement: au2, createForOfStatement: yo2, updateForOfStatement: su2, createContinueStatement: go2, updateContinueStatement: _u2, createBreakStatement: hs3, updateBreakStatement: bo2, createReturnStatement: ys3, updateReturnStatement: ou2, createWithStatement: gs3, updateWithStatement: vo2, createSwitchStatement: bs3, updateSwitchStatement: ai3, createLabeledStatement: To2, updateLabeledStatement: xo2, createThrowStatement: So2, updateThrowStatement: cu2, createTryStatement: wo2, updateTryStatement: lu2, createDebuggerStatement: ko2, createVariableDeclaration: ga, updateVariableDeclaration: Eo2, createVariableDeclarationList: vs3, updateVariableDeclarationList: uu2, createFunctionDeclaration: Ao2, updateFunctionDeclaration: Ts3, createClassDeclaration: Co2, updateClassDeclaration: ba2, createInterfaceDeclaration: Do2, updateInterfaceDeclaration: Po2, createTypeAliasDeclaration: _t3, updateTypeAliasDeclaration: vr3, createEnumDeclaration: xs3, updateEnumDeclaration: Tr3, createModuleDeclaration: No2, updateModuleDeclaration: kt3, createModuleBlock: xr3, updateModuleBlock: zt3, createCaseBlock: Io2, updateCaseBlock: fu2, createNamespaceExportDeclaration: Oo2, updateNamespaceExportDeclaration: Mo2, createImportEqualsDeclaration: Lo2, updateImportEqualsDeclaration: Jo2, createImportDeclaration: jo2, updateImportDeclaration: Ro2, createImportClause: Uo2, updateImportClause: Bo2, createAssertClause: Ss3, updateAssertClause: mu2, createAssertEntry: Ii3, updateAssertEntry: qo2, createImportTypeAssertionContainer: ws3, updateImportTypeAssertionContainer: Fo2, createImportAttributes: zo2, updateImportAttributes: ks3, createImportAttribute: Vo2, updateImportAttribute: Wo2, createNamespaceImport: Go2, updateNamespaceImport: hu2, createNamespaceExport: Yo2, updateNamespaceExport: yu2, createNamedImports: Ho2, updateNamedImports: Xo2, createImportSpecifier: Sr3, updateImportSpecifier: gu2, createExportAssignment: va2, updateExportAssignment: Oi3, createExportDeclaration: Ta2, updateExportDeclaration: $o2, createNamedExports: Es3, updateNamedExports: bu2, createExportSpecifier: xa, updateExportSpecifier: vu2, createMissingDeclaration: Tu2, createExternalModuleReference: As3, updateExternalModuleReference: xu2, get createJSDocAllType() {
return c4(313);
}, get createJSDocUnknownType() {
return c4(314);
}, get createJSDocNonNullableType() {
return G3(316);
}, get updateJSDocNonNullableType() {
return E4(316);
}, get createJSDocNullableType() {
return G3(315);
}, get updateJSDocNullableType() {
return E4(315);
}, get createJSDocOptionalType() {
return W3(317);
}, get updateJSDocOptionalType() {
return y4(317);
}, get createJSDocVariadicType() {
return W3(319);
}, get updateJSDocVariadicType() {
return y4(319);
}, get createJSDocNamepathType() {
return W3(320);
}, get updateJSDocNamepathType() {
return y4(320);
}, createJSDocFunctionType: Zo2, updateJSDocFunctionType: ku2, createJSDocTypeLiteral: ec2, updateJSDocTypeLiteral: Eu2, createJSDocTypeExpression: tc2, updateJSDocTypeExpression: Ds3, createJSDocSignature: nc2, updateJSDocSignature: Au2, createJSDocTemplateTag: Ps3, updateJSDocTemplateTag: rc2, createJSDocTypedefTag: Sa, updateJSDocTypedefTag: Cu2, createJSDocParameterTag: Ns3, updateJSDocParameterTag: Du2, createJSDocPropertyTag: ic2, updateJSDocPropertyTag: ac2, createJSDocCallbackTag: sc2, updateJSDocCallbackTag: _c2, createJSDocOverloadTag: oc2, updateJSDocOverloadTag: Is3, createJSDocAugmentsTag: Os3, updateJSDocAugmentsTag: Li3, createJSDocImplementsTag: cc2, updateJSDocImplementsTag: Mu2, createJSDocSeeTag: Fr3, updateJSDocSeeTag: wa2, createJSDocImportTag: vc2, updateJSDocImportTag: Tc2, createJSDocNameReference: lc2, updateJSDocNameReference: Pu2, createJSDocMemberName: uc2, updateJSDocMemberName: Nu2, createJSDocLink: pc2, updateJSDocLink: fc2, createJSDocLinkCode: dc2, updateJSDocLinkCode: Iu2, createJSDocLinkPlain: mc2, updateJSDocLinkPlain: Ou2, get createJSDocTypeTag() {
return ue3(345);
}, get updateJSDocTypeTag() {
return be3(345);
}, get createJSDocReturnTag() {
return ue3(343);
}, get updateJSDocReturnTag() {
return be3(343);
}, get createJSDocThisTag() {
return ue3(344);
}, get updateJSDocThisTag() {
return be3(344);
}, get createJSDocAuthorTag() {
return D4(331);
}, get updateJSDocAuthorTag() {
return R3(331);
}, get createJSDocClassTag() {
return D4(333);
}, get updateJSDocClassTag() {
return R3(333);
}, get createJSDocPublicTag() {
return D4(334);
}, get updateJSDocPublicTag() {
return R3(334);
}, get createJSDocPrivateTag() {
return D4(335);
}, get updateJSDocPrivateTag() {
return R3(335);
}, get createJSDocProtectedTag() {
return D4(336);
}, get updateJSDocProtectedTag() {
return R3(336);
}, get createJSDocReadonlyTag() {
return D4(337);
}, get updateJSDocReadonlyTag() {
return R3(337);
}, get createJSDocOverrideTag() {
return D4(338);
}, get updateJSDocOverrideTag() {
return R3(338);
}, get createJSDocDeprecatedTag() {
return D4(332);
}, get updateJSDocDeprecatedTag() {
return R3(332);
}, get createJSDocThrowsTag() {
return ue3(350);
}, get updateJSDocThrowsTag() {
return be3(350);
}, get createJSDocSatisfiesTag() {
return ue3(351);
}, get updateJSDocSatisfiesTag() {
return be3(351);
}, createJSDocEnumTag: bc2, updateJSDocEnumTag: Ms3, createJSDocUnknownTag: gc2, updateJSDocUnknownTag: ju2, createJSDocText: Ls3, updateJSDocText: Ru2, createJSDocComment: Ji3, updateJSDocComment: xc2, createJsxElement: Sc2, updateJsxElement: Uu2, createJsxSelfClosingElement: wc2, updateJsxSelfClosingElement: Bu2, createJsxOpeningElement: ka2, updateJsxOpeningElement: kc2, createJsxClosingElement: Js3, updateJsxClosingElement: js3, createJsxFragment: Yt3, createJsxText: ji3, updateJsxText: qu2, createJsxOpeningFragment: Ac2, createJsxJsxClosingFragment: Cc2, updateJsxFragment: Ec2, createJsxAttribute: Dc2, updateJsxAttribute: Fu2, createJsxAttributes: Ri3, updateJsxAttributes: zu2, createJsxSpreadAttribute: Pc2, updateJsxSpreadAttribute: Vu2, createJsxExpression: Nc2, updateJsxExpression: Rs3, createJsxNamespacedName: si3, updateJsxNamespacedName: Wu2, createCaseClause: Ea2, updateCaseClause: Ic2, createDefaultClause: Oc2, updateDefaultClause: Ui3, createHeritageClause: Us3, updateHeritageClause: Gu2, createCatchClause: Mc2, updateCatchClause: Lc2, createPropertyAssignment: Aa2, updatePropertyAssignment: Bs3, createShorthandPropertyAssignment: Jc2, updateShorthandPropertyAssignment: Yu2, createSpreadAssignment: jc2, updateSpreadAssignment: Rc2, createEnumMember: qs3, updateEnumMember: On2, createSourceFile: Uc2, updateSourceFile: Qu2, createRedirectedSourceFile: Bc2, createBundle: qc2, updateBundle: Fc2, createSyntheticExpression: Ku2, createSyntaxList: Zu2, createNotEmittedStatement: Ca2, createNotEmittedTypeElement: ep2, createPartiallyEmittedExpression: Vs2, updatePartiallyEmittedExpression: zc2, createCommaListExpression: Ws3, updateCommaListExpression: np2, createSyntheticReferenceExpression: Gs3, updateSyntheticReferenceExpression: Vc2, cloneNode: Da2, get createComma() {
return h(28);
}, get createAssignment() {
return h(64);
}, get createLogicalOr() {
return h(57);
}, get createLogicalAnd() {
return h(56);
}, get createBitwiseOr() {
return h(52);
}, get createBitwiseXor() {
return h(53);
}, get createBitwiseAnd() {
return h(51);
}, get createStrictEquality() {
return h(37);
}, get createStrictInequality() {
return h(38);
}, get createEquality() {
return h(35);
}, get createInequality() {
return h(36);
}, get createLessThan() {
return h(30);
}, get createLessThanEquals() {
return h(33);
}, get createGreaterThan() {
return h(32);
}, get createGreaterThanEquals() {
return h(34);
}, get createLeftShift() {
return h(48);
}, get createRightShift() {
return h(49);
}, get createUnsignedRightShift() {
return h(50);
}, get createAdd() {
return h(40);
}, get createSubtract() {
return h(41);
}, get createMultiply() {
return h(42);
}, get createDivide() {
return h(44);
}, get createModulo() {
return h(45);
}, get createExponent() {
return h(43);
}, get createPrefixPlus() {
return T4(40);
}, get createPrefixMinus() {
return T4(41);
}, get createPrefixIncrement() {
return T4(46);
}, get createPrefixDecrement() {
return T4(47);
}, get createBitwiseNot() {
return T4(55);
}, get createLogicalNot() {
return T4(54);
}, get createPostfixIncrement() {
return k4(46);
}, get createPostfixDecrement() {
return k4(47);
}, createImmediatelyInvokedFunctionExpression: ap2, createImmediatelyInvokedArrowFunction: sp2, createVoidZero: Bi3, createExportDefault: Yc2, createExternalModuleExport: Hc2, createTypeCheck: _p2, createIsNotTypeCheck: Ys3, createMethodCall: zr3, createGlobalMethodCall: qi3, createFunctionBindCall: op2, createFunctionCallCall: cp2, createFunctionApplyCall: lp2, createArraySliceCall: up2, createArrayConcatCall: Fi3, createObjectDefinePropertyCall: pp2, createObjectGetOwnPropertyDescriptorCall: Hs3, createReflectGetCall: oi3, createReflectSetCall: Xc2, createPropertyDescriptor: fp2, createCallBinding: Zc2, createAssignmentTargetWrapper: el2, inlineExpressions: o, getInternalName: m4, getLocalName: g4, getExportName: b4, getDeclarationName: N3, getNamespaceMemberName: Q3, getExternalModuleOrNamespaceExportName: _e3, restoreOuterExpressions: Qc2, restoreEnclosingLabel: Kc2, createUseStrictPrologue: ce3, copyPrologue: ee2, copyStandardPrologue: je3, copyCustomPrologue: Je3, ensureUseStrict: De3, liftToBlock: Ht3, mergeLexicalEnvironment: ur3, replaceModifiers: pr3, replaceDecoratorsAndModifiers: Mn, replacePropertyName: Vr3 };
return jn2(Pb, (n) => n(he3)), he3;
function de3(n, i) {
if (n === undefined || n === vt3)
n = [];
else if (mi3(n)) {
if (i === undefined || n.hasTrailingComma === i)
return n.transformFlags === undefined && zd(n), q3.attachNodeArrayDebugInfo(n), n;
let d = n.slice();
return d.pos = n.pos, d.end = n.end, d.hasTrailingComma = i, d.transformFlags = n.transformFlags, q3.attachNodeArrayDebugInfo(d), d;
}
let s = n.length, l4 = s >= 1 && s <= 4 ? n.slice() : n;
return l4.pos = -1, l4.end = -1, l4.hasTrailingComma = !!i, l4.transformFlags = 0, zd(l4), q3.attachNodeArrayDebugInfo(l4), l4;
}
function O3(n) {
return t.createBaseNode(n);
}
function ae(n) {
let i = O3(n);
return i.symbol = undefined, i.localSymbol = undefined, i;
}
function Oe3(n, i) {
return n !== i && (n.typeArguments = i.typeArguments), j3(n, i);
}
function V3(n, i = 0) {
let s = typeof n == "number" ? n + "" : n;
q3.assert(s.charCodeAt(0) !== 45, "Negative numbers should be created in combination with createPrefixUnaryExpression");
let l4 = ae(9);
return l4.text = s, l4.numericLiteralFlags = i, i & 384 && (l4.transformFlags |= 1024), l4;
}
function oe3(n) {
let i = $t3(10);
return i.text = typeof n == "string" ? n : Tb(n) + "n", i.transformFlags |= 32, i;
}
function Y3(n, i) {
let s = ae(11);
return s.text = n, s.singleQuote = i, s;
}
function ft3(n, i, s) {
let l4 = Y3(n, i);
return l4.hasExtendedUnicodeEscape = s, s && (l4.transformFlags |= 1024), l4;
}
function nr3(n) {
let i = Y3(j2(n), undefined);
return i.textSourceNode = n, i;
}
function mn2(n) {
let i = $t3(14);
return i.text = n, i;
}
function rr3(n, i) {
switch (n) {
case 9:
return V3(i, 0);
case 10:
return oe3(i);
case 11:
return ft3(i, undefined);
case 12:
return ji3(i, false);
case 13:
return ji3(i, true);
case 14:
return mn2(i);
case 15:
return ii3(n, i, undefined, 0);
}
}
function hn2(n) {
let i = t.createBaseIdentifierNode(80);
return i.escapedText = n, i.jsDoc = undefined, i.flowNode = undefined, i.symbol = undefined, i;
}
function Dn2(n, i, s, l4) {
let d = hn2(La2(n));
return setIdentifierAutoGenerate(d, { flags: i, id: _l2, prefix: s, suffix: l4 }), _l2++, d;
}
function We3(n, i, s) {
i === undefined && n && (i = Rm2(n)), i === 80 && (i = undefined);
let l4 = hn2(La2(n));
return s && (l4.flags |= 256), l4.escapedText === "await" && (l4.transformFlags |= 67108864), l4.flags & 256 && (l4.transformFlags |= 1024), l4;
}
function ir3(n, i, s, l4) {
let d = 1;
i && (d |= 8);
let v4 = Dn2("", d, s, l4);
return n && n(v4), v4;
}
function Ir2(n) {
let i = 2;
return n && (i |= 8), Dn2("", i, undefined, undefined);
}
function Ot3(n, i = 0, s, l4) {
return q3.assert(!(i & 7), "Argument out of range: flags"), q3.assert((i & 48) !== 32, "GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"), Dn2(n, 3 | i, s, l4);
}
function Bn2(n, i = 0, s, l4) {
q3.assert(!(i & 7), "Argument out of range: flags");
let d = n ? jp2(n) ? Vp2(false, s, n, l4, An2) : `generated@${getNodeId(n)}` : "";
(s || l4) && (i |= 16);
let v4 = Dn2(d, 4 | i, s, l4);
return v4.original = n, v4;
}
function Pn2(n) {
let i = t.createBasePrivateIdentifierNode(81);
return i.escapedText = n, i.transformFlags |= 16777216, i;
}
function Mt3(n) {
return ml2(n, "#") || q3.fail("First character of private identifier must be #: " + n), Pn2(La2(n));
}
function ht3(n, i, s, l4) {
let d = Pn2(La2(n));
return setIdentifierAutoGenerate(d, { flags: i, id: _l2, prefix: s, suffix: l4 }), _l2++, d;
}
function $e3(n, i, s) {
n && !ml2(n, "#") && q3.fail("First character of private identifier must be #: " + n);
let l4 = 8 | (n ? 3 : 1);
return ht3(n ?? "", l4, i, s);
}
function qn2(n, i, s) {
let l4 = jp2(n) ? Vp2(true, i, n, s, An2) : `#generated@${getNodeId(n)}`, v4 = ht3(l4, 4 | (i || s ? 16 : 0), i, s);
return v4.original = n, v4;
}
function $t3(n) {
return t.createBaseTokenNode(n);
}
function ot3(n) {
q3.assert(n >= 0 && n <= 166, "Invalid token"), q3.assert(n <= 15 || n >= 18, "Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."), q3.assert(n <= 9 || n >= 15, "Invalid token. Use 'createLiteralLikeNode' to create literals."), q3.assert(n !== 80, "Invalid token. Use 'createIdentifier' to create identifiers");
let i = $t3(n), s = 0;
switch (n) {
case 134:
s = 384;
break;
case 160:
s = 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:
s = 1;
break;
case 108:
s = 134218752, i.flowNode = undefined;
break;
case 126:
s = 1024;
break;
case 129:
s = 16777216;
break;
case 110:
s = 16384, i.flowNode = undefined;
break;
}
return s && (i.transformFlags |= s), i;
}
function at3() {
return ot3(108);
}
function Bt2() {
return ot3(110);
}
function Lt3() {
return ot3(106);
}
function ct3() {
return ot3(112);
}
function ar3() {
return ot3(97);
}
function dt3(n) {
return ot3(n);
}
function yn2(n) {
let i = [];
return n & 32 && i.push(dt3(95)), n & 128 && i.push(dt3(138)), n & 2048 && i.push(dt3(90)), n & 4096 && i.push(dt3(87)), n & 1 && i.push(dt3(125)), n & 2 && i.push(dt3(123)), n & 4 && i.push(dt3(124)), n & 64 && i.push(dt3(128)), n & 256 && i.push(dt3(126)), n & 16 && i.push(dt3(164)), n & 8 && i.push(dt3(148)), n & 512 && i.push(dt3(129)), n & 1024 && i.push(dt3(134)), n & 8192 && i.push(dt3(103)), n & 16384 && i.push(dt3(147)), i.length ? i : undefined;
}
function yt3(n, i) {
let s = O3(167);
return s.left = n, s.right = et3(i), s.transformFlags |= z3(s.left) | ja2(s.right), s.flowNode = undefined, s;
}
function _n2(n, i, s) {
return n.left !== i || n.right !== s ? j3(yt3(i, s), n) : n;
}
function tt3(n) {
let i = O3(168);
return i.expression = _4().parenthesizeExpressionOfComputedPropertyName(n), i.transformFlags |= z3(i.expression) | 1024 | 131072, i;
}
function qt3(n, i) {
return n.expression !== i ? j3(tt3(i), n) : n;
}
function tn2(n, i, s, l4) {
let d = ae(169);
return d.modifiers = Pe2(n), d.name = et3(i), d.constraint = s, d.default = l4, d.transformFlags = 1, d.expression = undefined, d.jsDoc = undefined, d;
}
function sr3(n, i, s, l4, d) {
return n.modifiers !== i || n.name !== s || n.constraint !== l4 || n.default !== d ? j3(tn2(i, s, l4, d), n) : n;
}
function mr2(n, i, s, l4, d, v4) {
let F3 = ae(170);
return F3.modifiers = Pe2(n), F3.dotDotDotToken = i, F3.name = et3(s), F3.questionToken = l4, F3.type = d, F3.initializer = zi3(v4), U2(F3.name) ? F3.transformFlags = 1 : F3.transformFlags = ke3(F3.modifiers) | z3(F3.dotDotDotToken) | Ln2(F3.name) | z3(F3.questionToken) | z3(F3.initializer) | (F3.questionToken ?? F3.type ? 1 : 0) | (F3.dotDotDotToken ?? F3.initializer ? 1024 : 0) | (Jn(F3.modifiers) & 31 ? 8192 : 0), F3.jsDoc = undefined, F3;
}
function hr3(n, i, s, l4, d, v4, F3) {
return n.modifiers !== i || n.dotDotDotToken !== s || n.name !== l4 || n.questionToken !== d || n.type !== v4 || n.initializer !== F3 ? j3(mr2(i, s, l4, d, v4, F3), n) : n;
}
function Fn2(n) {
let i = O3(171);
return i.expression = _4().parenthesizeLeftSideOfAccess(n, false), i.transformFlags |= z3(i.expression) | 1 | 8192 | 33554432, i;
}
function zn2(n, i) {
return n.expression !== i ? j3(Fn2(i), n) : n;
}
function Or3(n, i, s, l4) {
let d = ae(172);
return d.modifiers = Pe2(n), d.name = et3(i), d.type = l4, d.questionToken = s, d.transformFlags = 1, d.initializer = undefined, d.jsDoc = undefined, d;
}
function Vn2(n, i, s, l4, d) {
return n.modifiers !== i || n.name !== s || n.questionToken !== l4 || n.type !== d ? Ce3(Or3(i, s, l4, d), n) : n;
}
function Ce3(n, i) {
return n !== i && (n.initializer = i.initializer), j3(n, i);
}
function yr3(n, i, s, l4, d) {
let v4 = ae(173);
v4.modifiers = Pe2(n), v4.name = et3(i), v4.questionToken = s && Wd(s) ? s : undefined, v4.exclamationToken = s && Vd(s) ? s : undefined, v4.type = l4, v4.initializer = zi3(d);
let F3 = v4.flags & 33554432 || Jn(v4.modifiers) & 128;
return v4.transformFlags = ke3(v4.modifiers) | Ln2(v4.name) | z3(v4.initializer) | (F3 || v4.questionToken || v4.exclamationToken || v4.type ? 1 : 0) | (kf(v4.name) || Jn(v4.modifiers) & 256 && v4.initializer ? 8192 : 0) | 16777216, v4.jsDoc = undefined, v4;
}
function L3(n, i, s, l4, d, v4) {
return n.modifiers !== i || n.name !== s || n.questionToken !== (l4 !== undefined && Wd(l4) ? l4 : undefined) || n.exclamationToken !== (l4 !== undefined && Vd(l4) ? l4 : undefined) || n.type !== d || n.initializer !== v4 ? j3(yr3(i, s, l4, d, v4), n) : n;
}
function se3(n, i, s, l4, d, v4) {
let F3 = ae(174);
return F3.modifiers = Pe2(n), F3.name = et3(i), F3.questionToken = s, F3.typeParameters = Pe2(l4), F3.parameters = Pe2(d), F3.type = v4, F3.transformFlags = 1, F3.jsDoc = undefined, F3.locals = undefined, F3.nextContainer = undefined, F3.typeArguments = undefined, F3;
}
function fe2(n, i, s, l4, d, v4, F3) {
return n.modifiers !== i || n.name !== s || n.questionToken !== l4 || n.typeParameters !== d || n.parameters !== v4 || n.type !== F3 ? Oe3(se3(i, s, l4, d, v4, F3), n) : n;
}
function Te3(n, i, s, l4, d, v4, F3, pe3) {
let Fe3 = ae(175);
if (Fe3.modifiers = Pe2(n), Fe3.asteriskToken = i, Fe3.name = et3(s), Fe3.questionToken = l4, Fe3.exclamationToken = undefined, Fe3.typeParameters = Pe2(d), Fe3.parameters = de3(v4), Fe3.type = F3, Fe3.body = pe3, !Fe3.body)
Fe3.transformFlags = 1;
else {
let It3 = Jn(Fe3.modifiers) & 1024, fr3 = !!Fe3.asteriskToken, xn2 = It3 && fr3;
Fe3.transformFlags = ke3(Fe3.modifiers) | z3(Fe3.asteriskToken) | Ln2(Fe3.name) | z3(Fe3.questionToken) | ke3(Fe3.typeParameters) | ke3(Fe3.parameters) | z3(Fe3.type) | z3(Fe3.body) & -67108865 | (xn2 ? 128 : It3 ? 256 : fr3 ? 2048 : 0) | (Fe3.questionToken || Fe3.typeParameters || Fe3.type ? 1 : 0) | 1024;
}
return Fe3.typeArguments = undefined, Fe3.jsDoc = undefined, Fe3.locals = undefined, Fe3.nextContainer = undefined, Fe3.flowNode = undefined, Fe3.endFlowNode = undefined, Fe3.returnFlowNode = undefined, Fe3;
}
function He3(n, i, s, l4, d, v4, F3, pe3, Fe3) {
return n.modifiers !== i || n.asteriskToken !== s || n.name !== l4 || n.questionToken !== d || n.typeParameters !== v4 || n.parameters !== F3 || n.type !== pe3 || n.body !== Fe3 ? Qe3(Te3(i, s, l4, d, v4, F3, pe3, Fe3), n) : n;
}
function Qe3(n, i) {
return n !== i && (n.exclamationToken = i.exclamationToken), j3(n, i);
}
function st2(n) {
let i = ae(176);
return i.body = n, i.transformFlags = z3(n) | 16777216, i.modifiers = undefined, i.jsDoc = undefined, i.locals = undefined, i.nextContainer = undefined, i.endFlowNode = undefined, i.returnFlowNode = undefined, i;
}
function Ct3(n, i) {
return n.body !== i ? Tt3(st2(i), n) : n;
}
function Tt3(n, i) {
return n !== i && (n.modifiers = i.modifiers), j3(n, i);
}
function lt3(n, i, s) {
let l4 = ae(177);
return l4.modifiers = Pe2(n), l4.parameters = de3(i), l4.body = s, l4.body ? l4.transformFlags = ke3(l4.modifiers) | ke3(l4.parameters) | z3(l4.body) & -67108865 | 1024 : l4.transformFlags = 1, l4.typeParameters = undefined, l4.type = undefined, l4.typeArguments = undefined, l4.jsDoc = undefined, l4.locals = undefined, l4.nextContainer = undefined, l4.endFlowNode = undefined, l4.returnFlowNode = undefined, l4;
}
function Mr3(n, i, s, l4) {
return n.modifiers !== i || n.parameters !== s || n.body !== l4 ? gr3(lt3(i, s, l4), n) : n;
}
function gr3(n, i) {
return n !== i && (n.typeParameters = i.typeParameters, n.type = i.type), Oe3(n, i);
}
function Nn(n, i, s, l4, d) {
let v4 = ae(178);
return v4.modifiers = Pe2(n), v4.name = et3(i), v4.parameters = de3(s), v4.type = l4, v4.body = d, v4.body ? v4.transformFlags = ke3(v4.modifiers) | Ln2(v4.name) | ke3(v4.parameters) | z3(v4.type) | z3(v4.body) & -67108865 | (v4.type ? 1 : 0) : v4.transformFlags = 1, v4.typeArguments = undefined, v4.typeParameters = undefined, v4.jsDoc = undefined, v4.locals = undefined, v4.nextContainer = undefined, v4.flowNode = undefined, v4.endFlowNode = undefined, v4.returnFlowNode = undefined, v4;
}
function Wn2(n, i, s, l4, d, v4) {
return n.modifiers !== i || n.name !== s || n.parameters !== l4 || n.type !== d || n.body !== v4 ? wi3(Nn(i, s, l4, d, v4), n) : n;
}
function wi3(n, i) {
return n !== i && (n.typeParameters = i.typeParameters), Oe3(n, i);
}
function U3(n, i, s, l4) {
let d = ae(179);
return d.modifiers = Pe2(n), d.name = et3(i), d.parameters = de3(s), d.body = l4, d.body ? d.transformFlags = ke3(d.modifiers) | Ln2(d.name) | ke3(d.parameters) | z3(d.body) & -67108865 | (d.type ? 1 : 0) : d.transformFlags = 1, d.typeArguments = undefined, d.typeParameters = undefined, d.type = undefined, d.jsDoc = undefined, d.locals = undefined, d.nextContainer = undefined, d.flowNode = undefined, d.endFlowNode = undefined, d.returnFlowNode = undefined, d;
}
function K3(n, i, s, l4, d) {
return n.modifiers !== i || n.name !== s || n.parameters !== l4 || n.body !== d ? Z3(U3(i, s, l4, d), n) : n;
}
function Z3(n, i) {
return n !== i && (n.typeParameters = i.typeParameters, n.type = i.type), Oe3(n, i);
}
function xe3(n, i, s) {
let l4 = ae(180);
return l4.typeParameters = Pe2(n), l4.parameters = Pe2(i), l4.type = s, l4.transformFlags = 1, l4.jsDoc = undefined, l4.locals = undefined, l4.nextContainer = undefined, l4.typeArguments = undefined, l4;
}
function Se3(n, i, s, l4) {
return n.typeParameters !== i || n.parameters !== s || n.type !== l4 ? Oe3(xe3(i, s, l4), n) : n;
}
function we3(n, i, s) {
let l4 = ae(181);
return l4.typeParameters = Pe2(n), l4.parameters = Pe2(i), l4.type = s, l4.transformFlags = 1, l4.jsDoc = undefined, l4.locals = undefined, l4.nextContainer = undefined, l4.typeArguments = undefined, l4;
}
function me3(n, i, s, l4) {
return n.typeParameters !== i || n.parameters !== s || n.type !== l4 ? Oe3(we3(i, s, l4), n) : n;
}
function Ve3(n, i, s) {
let l4 = ae(182);
return l4.modifiers = Pe2(n), l4.parameters = Pe2(i), l4.type = s, l4.transformFlags = 1, l4.jsDoc = undefined, l4.locals = undefined, l4.nextContainer = undefined, l4.typeArguments = undefined, l4;
}
function Ze3(n, i, s, l4) {
return n.parameters !== s || n.type !== l4 || n.modifiers !== i ? Oe3(Ve3(i, s, l4), n) : n;
}
function Ye3(n, i) {
let s = O3(205);
return s.type = n, s.literal = i, s.transformFlags = 1, s;
}
function Ee3(n, i, s) {
return n.type !== i || n.literal !== s ? j3(Ye3(i, s), n) : n;
}
function gn2(n) {
return ot3(n);
}
function rt3(n, i, s) {
let l4 = O3(183);
return l4.assertsModifier = n, l4.parameterName = et3(i), l4.type = s, l4.transformFlags = 1, l4;
}
function on2(n, i, s, l4) {
return n.assertsModifier !== i || n.parameterName !== s || n.type !== l4 ? j3(rt3(i, s, l4), n) : n;
}
function Zr3(n, i) {
let s = O3(184);
return s.typeName = et3(n), s.typeArguments = i && _4().parenthesizeTypeArguments(de3(i)), s.transformFlags = 1, s;
}
function M3(n, i, s) {
return n.typeName !== i || n.typeArguments !== s ? j3(Zr3(i, s), n) : n;
}
function Ue3(n, i, s) {
let l4 = ae(185);
return l4.typeParameters = Pe2(n), l4.parameters = Pe2(i), l4.type = s, l4.transformFlags = 1, l4.modifiers = undefined, l4.jsDoc = undefined, l4.locals = undefined, l4.nextContainer = undefined, l4.typeArguments = undefined, l4;
}
function u(n, i, s, l4) {
return n.typeParameters !== i || n.parameters !== s || n.type !== l4 ? Ie2(Ue3(i, s, l4), n) : n;
}
function Ie2(n, i) {
return n !== i && (n.modifiers = i.modifiers), Oe3(n, i);
}
function Me3(...n) {
return n.length === 4 ? B3(...n) : n.length === 3 ? Be3(...n) : q3.fail("Incorrect number of arguments specified.");
}
function B3(n, i, s, l4) {
let d = ae(186);
return d.modifiers = Pe2(n), d.typeParameters = Pe2(i), d.parameters = Pe2(s), d.type = l4, d.transformFlags = 1, d.jsDoc = undefined, d.locals = undefined, d.nextContainer = undefined, d.typeArguments = undefined, d;
}
function Be3(n, i, s) {
return B3(undefined, n, i, s);
}
function nn2(...n) {
return n.length === 5 ? ze3(...n) : n.length === 4 ? Xe3(...n) : q3.fail("Incorrect number of arguments specified.");
}
function ze3(n, i, s, l4, d) {
return n.modifiers !== i || n.typeParameters !== s || n.parameters !== l4 || n.type !== d ? Oe3(Me3(i, s, l4, d), n) : n;
}
function Xe3(n, i, s, l4) {
return ze3(n, n.modifiers, i, s, l4);
}
function Dt3(n, i) {
let s = O3(187);
return s.exprName = n, s.typeArguments = i && _4().parenthesizeTypeArguments(i), s.transformFlags = 1, s;
}
function wt3(n, i, s) {
return n.exprName !== i || n.typeArguments !== s ? j3(Dt3(i, s), n) : n;
}
function Pt3(n) {
let i = ae(188);
return i.members = de3(n), i.transformFlags = 1, i;
}
function Ft3(n, i) {
return n.members !== i ? j3(Pt3(i), n) : n;
}
function Gn2(n) {
let i = O3(189);
return i.elementType = _4().parenthesizeNonArrayTypeOfPostfixType(n), i.transformFlags = 1, i;
}
function ki3(n, i) {
return n.elementType !== i ? j3(Gn2(i), n) : n;
}
function cn2(n) {
let i = O3(190);
return i.elements = de3(_4().parenthesizeElementTypesOfTupleType(n)), i.transformFlags = 1, i;
}
function H3(n, i) {
return n.elements !== i ? j3(cn2(i), n) : n;
}
function le3(n, i, s, l4) {
let d = ae(203);
return d.dotDotDotToken = n, d.name = i, d.questionToken = s, d.type = l4, d.transformFlags = 1, d.jsDoc = undefined, d;
}
function qe3(n, i, s, l4, d) {
return n.dotDotDotToken !== i || n.name !== s || n.questionToken !== l4 || n.type !== d ? j3(le3(i, s, l4, d), n) : n;
}
function ve3(n) {
let i = O3(191);
return i.type = _4().parenthesizeTypeOfOptionalType(n), i.transformFlags = 1, i;
}
function J3(n, i) {
return n.type !== i ? j3(ve3(i), n) : n;
}
function mt3(n) {
let i = O3(192);
return i.type = n, i.transformFlags = 1, i;
}
function xt3(n, i) {
return n.type !== i ? j3(mt3(i), n) : n;
}
function Jt3(n, i, s) {
let l4 = O3(n);
return l4.types = he3.createNodeArray(s(i)), l4.transformFlags = 1, l4;
}
function ln2(n, i, s) {
return n.types !== i ? j3(Jt3(n.kind, i, s), n) : n;
}
function ql2(n) {
return Jt3(193, n, _4().parenthesizeConstituentTypesOfUnionType);
}
function C_(n, i) {
return ln2(n, i, _4().parenthesizeConstituentTypesOfUnionType);
}
function Lr3(n) {
return Jt3(194, n, _4().parenthesizeConstituentTypesOfIntersectionType);
}
function Le3(n, i) {
return ln2(n, i, _4().parenthesizeConstituentTypesOfIntersectionType);
}
function pt3(n, i, s, l4) {
let d = O3(195);
return d.checkType = _4().parenthesizeCheckTypeOfConditionalType(n), d.extendsType = _4().parenthesizeExtendsTypeOfConditionalType(i), d.trueType = s, d.falseType = l4, d.transformFlags = 1, d.locals = undefined, d.nextContainer = undefined, d;
}
function Fl2(n, i, s, l4, d) {
return n.checkType !== i || n.extendsType !== s || n.trueType !== l4 || n.falseType !== d ? j3(pt3(i, s, l4, d), n) : n;
}
function Yn2(n) {
let i = O3(196);
return i.typeParameter = n, i.transformFlags = 1, i;
}
function zl2(n, i) {
return n.typeParameter !== i ? j3(Yn2(i), n) : n;
}
function Wt3(n, i) {
let s = O3(204);
return s.head = n, s.templateSpans = de3(i), s.transformFlags = 1, s;
}
function Vl2(n, i, s) {
return n.head !== i || n.templateSpans !== s ? j3(Wt3(i, s), n) : n;
}
function _r3(n, i, s, l4, d = false) {
let v4 = O3(206);
return v4.argument = n, v4.attributes = i, v4.assertions && v4.assertions.assertClause && v4.attributes && (v4.assertions.assertClause = v4.attributes), v4.qualifier = s, v4.typeArguments = l4 && _4().parenthesizeTypeArguments(l4), v4.isTypeOf = d, v4.transformFlags = 1, v4;
}
function oa2(n, i, s, l4, d, v4 = n.isTypeOf) {
return n.argument !== i || n.attributes !== s || n.qualifier !== l4 || n.typeArguments !== d || n.isTypeOf !== v4 ? j3(_r3(i, s, l4, d, v4), n) : n;
}
function Qt3(n) {
let i = O3(197);
return i.type = n, i.transformFlags = 1, i;
}
function At3(n, i) {
return n.type !== i ? j3(Qt3(i), n) : n;
}
function P3() {
let n = O3(198);
return n.transformFlags = 1, n;
}
function Gt3(n, i) {
let s = O3(199);
return s.operator = n, s.type = n === 148 ? _4().parenthesizeOperandOfReadonlyTypeOperator(i) : _4().parenthesizeOperandOfTypeOperator(i), s.transformFlags = 1, s;
}
function Jr3(n, i) {
return n.type !== i ? j3(Gt3(n.operator, i), n) : n;
}
function or3(n, i) {
let s = O3(200);
return s.objectType = _4().parenthesizeNonArrayTypeOfPostfixType(n), s.indexType = i, s.transformFlags = 1, s;
}
function Ka2(n, i, s) {
return n.objectType !== i || n.indexType !== s ? j3(or3(i, s), n) : n;
}
function gt3(n, i, s, l4, d, v4) {
let F3 = ae(201);
return F3.readonlyToken = n, F3.typeParameter = i, F3.nameType = s, F3.questionToken = l4, F3.type = d, F3.members = v4 && de3(v4), F3.transformFlags = 1, F3.locals = undefined, F3.nextContainer = undefined, F3;
}
function jt3(n, i, s, l4, d, v4, F3) {
return n.readonlyToken !== i || n.typeParameter !== s || n.nameType !== l4 || n.questionToken !== d || n.type !== v4 || n.members !== F3 ? j3(gt3(i, s, l4, d, v4, F3), n) : n;
}
function ei3(n) {
let i = O3(202);
return i.literal = n, i.transformFlags = 1, i;
}
function br3(n, i) {
return n.literal !== i ? j3(ei3(i), n) : n;
}
function D_(n) {
let i = O3(207);
return i.elements = de3(n), i.transformFlags |= ke3(i.elements) | 1024 | 524288, i.transformFlags & 32768 && (i.transformFlags |= 65664), i;
}
function Wl2(n, i) {
return n.elements !== i ? j3(D_(i), n) : n;
}
function jr3(n) {
let i = O3(208);
return i.elements = de3(n), i.transformFlags |= ke3(i.elements) | 1024 | 524288, i;
}
function Gl2(n, i) {
return n.elements !== i ? j3(jr3(i), n) : n;
}
function ca2(n, i, s, l4) {
let d = ae(209);
return d.dotDotDotToken = n, d.propertyName = et3(i), d.name = et3(s), d.initializer = zi3(l4), d.transformFlags |= z3(d.dotDotDotToken) | Ln2(d.propertyName) | Ln2(d.name) | z3(d.initializer) | (d.dotDotDotToken ? 32768 : 0) | 1024, d.flowNode = undefined, d;
}
function ti3(n, i, s, l4, d) {
return n.propertyName !== s || n.dotDotDotToken !== i || n.name !== l4 || n.initializer !== d ? j3(ca2(i, s, l4, d), n) : n;
}
function Za2(n, i) {
let s = O3(210), l4 = n && Ba2(n), d = de3(n, l4 && W1(l4) ? true : undefined);
return s.elements = _4().parenthesizeExpressionsOfCommaDelimitedList(d), s.multiLine = i, s.transformFlags |= ke3(s.elements), s;
}
function P_(n, i) {
return n.elements !== i ? j3(Za2(i, n.multiLine), n) : n;
}
function Ei3(n, i) {
let s = ae(211);
return s.properties = de3(n), s.multiLine = i, s.transformFlags |= ke3(s.properties), s.jsDoc = undefined, s;
}
function Yl2(n, i) {
return n.properties !== i ? j3(Ei3(i, n.multiLine), n) : n;
}
function N_(n, i, s) {
let l4 = ae(212);
return l4.expression = n, l4.questionDotToken = i, l4.name = s, l4.transformFlags = z3(l4.expression) | z3(l4.questionDotToken) | (Ke3(l4.name) ? ja2(l4.name) : z3(l4.name) | 536870912), l4.jsDoc = undefined, l4.flowNode = undefined, l4;
}
function cr2(n, i) {
let s = N_(_4().parenthesizeLeftSideOfAccess(n, false), undefined, et3(i));
return Ap2(n) && (s.transformFlags |= 384), s;
}
function Hl2(n, i, s) {
return Og(n) ? la2(n, i, n.questionDotToken, Er3(s, Ke3)) : n.expression !== i || n.name !== s ? j3(cr2(i, s), n) : n;
}
function Ai3(n, i, s) {
let l4 = N_(_4().parenthesizeLeftSideOfAccess(n, true), i, et3(s));
return l4.flags |= 64, l4.transformFlags |= 32, l4;
}
function la2(n, i, s, l4) {
return q3.assert(!!(n.flags & 64), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."), n.expression !== i || n.questionDotToken !== s || n.name !== l4 ? j3(Ai3(i, s, l4), n) : n;
}
function I_(n, i, s) {
let l4 = ae(213);
return l4.expression = n, l4.questionDotToken = i, l4.argumentExpression = s, l4.transformFlags |= z3(l4.expression) | z3(l4.questionDotToken) | z3(l4.argumentExpression), l4.jsDoc = undefined, l4.flowNode = undefined, l4;
}
function Ci3(n, i) {
let s = I_(_4().parenthesizeLeftSideOfAccess(n, false), undefined, wr3(i));
return Ap2(n) && (s.transformFlags |= 384), s;
}
function Xl2(n, i, s) {
return Mg(n) ? es3(n, i, n.questionDotToken, s) : n.expression !== i || n.argumentExpression !== s ? j3(Ci3(i, s), n) : n;
}
function O_(n, i, s) {
let l4 = I_(_4().parenthesizeLeftSideOfAccess(n, true), i, wr3(s));
return l4.flags |= 64, l4.transformFlags |= 32, l4;
}
function es3(n, i, s, l4) {
return q3.assert(!!(n.flags & 64), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."), n.expression !== i || n.questionDotToken !== s || n.argumentExpression !== l4 ? j3(O_(i, s, l4), n) : n;
}
function M_(n, i, s, l4) {
let d = ae(214);
return d.expression = n, d.questionDotToken = i, d.typeArguments = s, d.arguments = l4, d.transformFlags |= z3(d.expression) | z3(d.questionDotToken) | ke3(d.typeArguments) | ke3(d.arguments), d.typeArguments && (d.transformFlags |= 1), Jd(d.expression) && (d.transformFlags |= 16384), d;
}
function Di3(n, i, s) {
let l4 = M_(_4().parenthesizeLeftSideOfAccess(n, false), undefined, Pe2(i), _4().parenthesizeExpressionsOfCommaDelimitedList(de3(s)));
return Bb(l4.expression) && (l4.transformFlags |= 8388608), l4;
}
function ua3(n, i, s, l4) {
return Dd(n) ? L_(n, i, n.questionDotToken, s, l4) : n.expression !== i || n.typeArguments !== s || n.arguments !== l4 ? j3(Di3(i, s, l4), n) : n;
}
function ts3(n, i, s, l4) {
let d = M_(_4().parenthesizeLeftSideOfAccess(n, true), i, Pe2(s), _4().parenthesizeExpressionsOfCommaDelimitedList(de3(l4)));
return d.flags |= 64, d.transformFlags |= 32, d;
}
function L_(n, i, s, l4, d) {
return q3.assert(!!(n.flags & 64), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."), n.expression !== i || n.questionDotToken !== s || n.typeArguments !== l4 || n.arguments !== d ? j3(ts3(i, s, l4, d), n) : n;
}
function bn2(n, i, s) {
let l4 = ae(215);
return l4.expression = _4().parenthesizeExpressionOfNew(n), l4.typeArguments = Pe2(i), l4.arguments = s ? _4().parenthesizeExpressionsOfCommaDelimitedList(s) : undefined, l4.transformFlags |= z3(l4.expression) | ke3(l4.typeArguments) | ke3(l4.arguments) | 32, l4.typeArguments && (l4.transformFlags |= 1), l4;
}
function ns3(n, i, s, l4) {
return n.expression !== i || n.typeArguments !== s || n.arguments !== l4 ? j3(bn2(i, s, l4), n) : n;
}
function pa2(n, i, s) {
let l4 = O3(216);
return l4.tag = _4().parenthesizeLeftSideOfAccess(n, false), l4.typeArguments = Pe2(i), l4.template = s, l4.transformFlags |= z3(l4.tag) | ke3(l4.typeArguments) | z3(l4.template) | 1024, l4.typeArguments && (l4.transformFlags |= 1), R22(l4.template) && (l4.transformFlags |= 128), l4;
}
function J_(n, i, s, l4) {
return n.tag !== i || n.typeArguments !== s || n.template !== l4 ? j3(pa2(i, s, l4), n) : n;
}
function j_(n, i) {
let s = O3(217);
return s.expression = _4().parenthesizeOperandOfPrefixUnary(i), s.type = n, s.transformFlags |= z3(s.expression) | z3(s.type) | 1, s;
}
function R_(n, i, s) {
return n.type !== i || n.expression !== s ? j3(j_(i, s), n) : n;
}
function rs3(n) {
let i = O3(218);
return i.expression = n, i.transformFlags = z3(i.expression), i.jsDoc = undefined, i;
}
function U_(n, i) {
return n.expression !== i ? j3(rs3(i), n) : n;
}
function is3(n, i, s, l4, d, v4, F3) {
let pe3 = ae(219);
pe3.modifiers = Pe2(n), pe3.asteriskToken = i, pe3.name = et3(s), pe3.typeParameters = Pe2(l4), pe3.parameters = de3(d), pe3.type = v4, pe3.body = F3;
let Fe3 = Jn(pe3.modifiers) & 1024, It3 = !!pe3.asteriskToken, fr3 = Fe3 && It3;
return pe3.transformFlags = ke3(pe3.modifiers) | z3(pe3.asteriskToken) | Ln2(pe3.name) | ke3(pe3.typeParameters) | ke3(pe3.parameters) | z3(pe3.type) | z3(pe3.body) & -67108865 | (fr3 ? 128 : Fe3 ? 256 : It3 ? 2048 : 0) | (pe3.typeParameters || pe3.type ? 1 : 0) | 4194304, pe3.typeArguments = undefined, pe3.jsDoc = undefined, pe3.locals = undefined, pe3.nextContainer = undefined, pe3.flowNode = undefined, pe3.endFlowNode = undefined, pe3.returnFlowNode = undefined, pe3;
}
function B_(n, i, s, l4, d, v4, F3, pe3) {
return n.name !== l4 || n.modifiers !== i || n.asteriskToken !== s || n.typeParameters !== d || n.parameters !== v4 || n.type !== F3 || n.body !== pe3 ? Oe3(is3(i, s, l4, d, v4, F3, pe3), n) : n;
}
function as3(n, i, s, l4, d, v4) {
let F3 = ae(220);
F3.modifiers = Pe2(n), F3.typeParameters = Pe2(i), F3.parameters = de3(s), F3.type = l4, F3.equalsGreaterThanToken = d ?? ot3(39), F3.body = _4().parenthesizeConciseBodyOfArrowFunction(v4);
let pe3 = Jn(F3.modifiers) & 1024;
return F3.transformFlags = ke3(F3.modifiers) | ke3(F3.typeParameters) | ke3(F3.parameters) | z3(F3.type) | z3(F3.equalsGreaterThanToken) | z3(F3.body) & -67108865 | (F3.typeParameters || F3.type ? 1 : 0) | (pe3 ? 16640 : 0) | 1024, F3.typeArguments = undefined, F3.jsDoc = undefined, F3.locals = undefined, F3.nextContainer = undefined, F3.flowNode = undefined, F3.endFlowNode = undefined, F3.returnFlowNode = undefined, F3;
}
function q_(n, i, s, l4, d, v4, F3) {
return n.modifiers !== i || n.typeParameters !== s || n.parameters !== l4 || n.type !== d || n.equalsGreaterThanToken !== v4 || n.body !== F3 ? Oe3(as3(i, s, l4, d, v4, F3), n) : n;
}
function F_(n) {
let i = O3(221);
return i.expression = _4().parenthesizeOperandOfPrefixUnary(n), i.transformFlags |= z3(i.expression), i;
}
function z_(n, i) {
return n.expression !== i ? j3(F_(i), n) : n;
}
function fa2(n) {
let i = O3(222);
return i.expression = _4().parenthesizeOperandOfPrefixUnary(n), i.transformFlags |= z3(i.expression), i;
}
function un2(n, i) {
return n.expression !== i ? j3(fa2(i), n) : n;
}
function ss3(n) {
let i = O3(223);
return i.expression = _4().parenthesizeOperandOfPrefixUnary(n), i.transformFlags |= z3(i.expression), i;
}
function lr2(n, i) {
return n.expression !== i ? j3(ss3(i), n) : n;
}
function V_(n) {
let i = O3(224);
return i.expression = _4().parenthesizeOperandOfPrefixUnary(n), i.transformFlags |= z3(i.expression) | 256 | 128 | 2097152, i;
}
function Rr3(n, i) {
return n.expression !== i ? j3(V_(i), n) : n;
}
function Ur3(n, i) {
let s = O3(225);
return s.operator = n, s.operand = _4().parenthesizeOperandOfPrefixUnary(i), s.transformFlags |= z3(s.operand), (n === 46 || n === 47) && Ke3(s.operand) && !Ua2(s.operand) && !Yd(s.operand) && (s.transformFlags |= 268435456), s;
}
function $l2(n, i) {
return n.operand !== i ? j3(Ur3(n.operator, i), n) : n;
}
function ni3(n, i) {
let s = O3(226);
return s.operator = i, s.operand = _4().parenthesizeOperandOfPostfixUnary(n), s.transformFlags |= z3(s.operand), Ke3(s.operand) && !Ua2(s.operand) && !Yd(s.operand) && (s.transformFlags |= 268435456), s;
}
function Ql2(n, i) {
return n.operand !== i ? j3(ni3(i, n.operator), n) : n;
}
function da3(n, i, s) {
let l4 = ae(227), d = mp2(i), v4 = d.kind;
return l4.left = _4().parenthesizeLeftSideOfBinary(v4, n), l4.operatorToken = d, l4.right = _4().parenthesizeRightSideOfBinary(v4, l4.left, s), l4.transformFlags |= z3(l4.left) | z3(l4.operatorToken) | z3(l4.right), v4 === 61 ? l4.transformFlags |= 32 : v4 === 64 ? If(l4.left) ? l4.transformFlags |= 5248 | W_(l4.left) : q1(l4.left) && (l4.transformFlags |= 5120 | W_(l4.left)) : v4 === 43 || v4 === 68 ? l4.transformFlags |= 512 : X22(v4) && (l4.transformFlags |= 16), v4 === 103 && gi3(l4.left) && (l4.transformFlags |= 536870912), l4.jsDoc = undefined, l4;
}
function W_(n) {
return _h(n) ? 65536 : 0;
}
function Kl2(n, i, s, l4) {
return n.left !== i || n.operatorToken !== s || n.right !== l4 ? j3(da3(i, s, l4), n) : n;
}
function G_(n, i, s, l4, d) {
let v4 = O3(228);
return v4.condition = _4().parenthesizeConditionOfConditionalExpression(n), v4.questionToken = i ?? ot3(58), v4.whenTrue = _4().parenthesizeBranchOfConditionalExpression(s), v4.colonToken = l4 ?? ot3(59), v4.whenFalse = _4().parenthesizeBranchOfConditionalExpression(d), v4.transformFlags |= z3(v4.condition) | z3(v4.questionToken) | z3(v4.whenTrue) | z3(v4.colonToken) | z3(v4.whenFalse), v4.flowNodeWhenFalse = undefined, v4.flowNodeWhenTrue = undefined, v4;
}
function Y_(n, i, s, l4, d, v4) {
return n.condition !== i || n.questionToken !== s || n.whenTrue !== l4 || n.colonToken !== d || n.whenFalse !== v4 ? j3(G_(i, s, l4, d, v4), n) : n;
}
function H_(n, i) {
let s = O3(229);
return s.head = n, s.templateSpans = de3(i), s.transformFlags |= z3(s.head) | ke3(s.templateSpans) | 1024, s;
}
function Hn2(n, i, s) {
return n.head !== i || n.templateSpans !== s ? j3(H_(i, s), n) : n;
}
function Pi3(n, i, s, l4 = 0) {
q3.assert(!(l4 & -7177), "Unsupported template flags.");
let d;
if (s !== undefined && s !== i && (d = Nb(n, s), typeof d == "object"))
return q3.fail("Invalid raw text");
if (i === undefined) {
if (d === undefined)
return q3.fail("Arguments 'text' and 'rawText' may not both be undefined.");
i = d;
} else
d !== undefined && q3.assert(i === d, "Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");
return i;
}
function X_(n) {
let i = 1024;
return n && (i |= 128), i;
}
function Zl2(n, i, s, l4) {
let d = $t3(n);
return d.text = i, d.rawText = s, d.templateFlags = l4 & 7176, d.transformFlags = X_(d.templateFlags), d;
}
function ri3(n, i, s, l4) {
let d = ae(n);
return d.text = i, d.rawText = s, d.templateFlags = l4 & 7176, d.transformFlags = X_(d.templateFlags), d;
}
function ii3(n, i, s, l4) {
return n === 15 ? ri3(n, i, s, l4) : Zl2(n, i, s, l4);
}
function $_(n, i, s) {
return n = Pi3(16, n, i, s), ii3(16, n, i, s);
}
function ma3(n, i, s) {
return n = Pi3(16, n, i, s), ii3(17, n, i, s);
}
function _s3(n, i, s) {
return n = Pi3(16, n, i, s), ii3(18, n, i, s);
}
function eu2(n, i, s) {
return n = Pi3(16, n, i, s), ri3(15, n, i, s);
}
function os3(n, i) {
q3.assert(!n || !!i, "A `YieldExpression` with an asteriskToken must have an expression.");
let s = O3(230);
return s.expression = i && _4().parenthesizeExpressionForDisallowedComma(i), s.asteriskToken = n, s.transformFlags |= z3(s.expression) | z3(s.asteriskToken) | 1024 | 128 | 1048576, s;
}
function tu2(n, i, s) {
return n.expression !== s || n.asteriskToken !== i ? j3(os3(i, s), n) : n;
}
function Q_(n) {
let i = O3(231);
return i.expression = _4().parenthesizeExpressionForDisallowedComma(n), i.transformFlags |= z3(i.expression) | 1024 | 32768, i;
}
function nu2(n, i) {
return n.expression !== i ? j3(Q_(i), n) : n;
}
function K_(n, i, s, l4, d) {
let v4 = ae(232);
return v4.modifiers = Pe2(n), v4.name = et3(i), v4.typeParameters = Pe2(s), v4.heritageClauses = Pe2(l4), v4.members = de3(d), v4.transformFlags |= ke3(v4.modifiers) | Ln2(v4.name) | ke3(v4.typeParameters) | ke3(v4.heritageClauses) | ke3(v4.members) | (v4.typeParameters ? 1 : 0) | 1024, v4.jsDoc = undefined, v4;
}
function cs3(n, i, s, l4, d, v4) {
return n.modifiers !== i || n.name !== s || n.typeParameters !== l4 || n.heritageClauses !== d || n.members !== v4 ? j3(K_(i, s, l4, d, v4), n) : n;
}
function ls3() {
return O3(233);
}
function Z_(n, i) {
let s = O3(234);
return s.expression = _4().parenthesizeLeftSideOfAccess(n, false), s.typeArguments = i && _4().parenthesizeTypeArguments(i), s.transformFlags |= z3(s.expression) | ke3(s.typeArguments) | 1024, s;
}
function eo2(n, i, s) {
return n.expression !== i || n.typeArguments !== s ? j3(Z_(i, s), n) : n;
}
function pn2(n, i) {
let s = O3(235);
return s.expression = n, s.type = i, s.transformFlags |= z3(s.expression) | z3(s.type) | 1, s;
}
function ha(n, i, s) {
return n.expression !== i || n.type !== s ? j3(pn2(i, s), n) : n;
}
function to2(n) {
let i = O3(236);
return i.expression = _4().parenthesizeLeftSideOfAccess(n, false), i.transformFlags |= z3(i.expression) | 1, i;
}
function no2(n, i) {
return Lg(n) ? In2(n, i) : n.expression !== i ? j3(to2(i), n) : n;
}
function us3(n, i) {
let s = O3(239);
return s.expression = n, s.type = i, s.transformFlags |= z3(s.expression) | z3(s.type) | 1, s;
}
function ro2(n, i, s) {
return n.expression !== i || n.type !== s ? j3(us3(i, s), n) : n;
}
function ps3(n) {
let i = O3(236);
return i.flags |= 64, i.expression = _4().parenthesizeLeftSideOfAccess(n, true), i.transformFlags |= z3(i.expression) | 1, i;
}
function In2(n, i) {
return q3.assert(!!(n.flags & 64), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."), n.expression !== i ? j3(ps3(i), n) : n;
}
function io2(n, i) {
let s = O3(237);
switch (s.keywordToken = n, s.name = i, s.transformFlags |= z3(s.name), n) {
case 105:
s.transformFlags |= 1024;
break;
case 102:
s.transformFlags |= 32;
break;
default:
return q3.assertNever(n);
}
return s.flowNode = undefined, s;
}
function fs3(n, i) {
return n.name !== i ? j3(io2(n.keywordToken, i), n) : n;
}
function Xn2(n, i) {
let s = O3(240);
return s.expression = n, s.literal = i, s.transformFlags |= z3(s.expression) | z3(s.literal) | 1024, s;
}
function ya2(n, i, s) {
return n.expression !== i || n.literal !== s ? j3(Xn2(i, s), n) : n;
}
function ao2() {
let n = O3(241);
return n.transformFlags |= 1024, n;
}
function Br3(n, i) {
let s = O3(242);
return s.statements = de3(n), s.multiLine = i, s.transformFlags |= ke3(s.statements), s.jsDoc = undefined, s.locals = undefined, s.nextContainer = undefined, s;
}
function ru2(n, i) {
return n.statements !== i ? j3(Br3(i, n.multiLine), n) : n;
}
function ds3(n, i) {
let s = O3(244);
return s.modifiers = Pe2(n), s.declarationList = $r3(i) ? vs3(i) : i, s.transformFlags |= ke3(s.modifiers) | z3(s.declarationList), Jn(s.modifiers) & 128 && (s.transformFlags = 1), s.jsDoc = undefined, s.flowNode = undefined, s;
}
function so2(n, i, s) {
return n.modifiers !== i || n.declarationList !== s ? j3(ds3(i, s), n) : n;
}
function _o2() {
let n = O3(243);
return n.jsDoc = undefined, n;
}
function Ni3(n) {
let i = O3(245);
return i.expression = _4().parenthesizeExpressionOfExpressionStatement(n), i.transformFlags |= z3(i.expression), i.jsDoc = undefined, i.flowNode = undefined, i;
}
function oo2(n, i) {
return n.expression !== i ? j3(Ni3(i), n) : n;
}
function co2(n, i, s) {
let l4 = O3(246);
return l4.expression = n, l4.thenStatement = $n2(i), l4.elseStatement = $n2(s), l4.transformFlags |= z3(l4.expression) | z3(l4.thenStatement) | z3(l4.elseStatement), l4.jsDoc = undefined, l4.flowNode = undefined, l4;
}
function lo2(n, i, s, l4) {
return n.expression !== i || n.thenStatement !== s || n.elseStatement !== l4 ? j3(co2(i, s, l4), n) : n;
}
function uo2(n, i) {
let s = O3(247);
return s.statement = $n2(n), s.expression = i, s.transformFlags |= z3(s.statement) | z3(s.expression), s.jsDoc = undefined, s.flowNode = undefined, s;
}
function po2(n, i, s) {
return n.statement !== i || n.expression !== s ? j3(uo2(i, s), n) : n;
}
function fo2(n, i) {
let s = O3(248);
return s.expression = n, s.statement = $n2(i), s.transformFlags |= z3(s.expression) | z3(s.statement), s.jsDoc = undefined, s.flowNode = undefined, s;
}
function iu2(n, i, s) {
return n.expression !== i || n.statement !== s ? j3(fo2(i, s), n) : n;
}
function mo2(n, i, s, l4) {
let d = O3(249);
return d.initializer = n, d.condition = i, d.incrementor = s, d.statement = $n2(l4), d.transformFlags |= z3(d.initializer) | z3(d.condition) | z3(d.incrementor) | z3(d.statement), d.jsDoc = undefined, d.locals = undefined, d.nextContainer = undefined, d.flowNode = undefined, d;
}
function ho2(n, i, s, l4, d) {
return n.initializer !== i || n.condition !== s || n.incrementor !== l4 || n.statement !== d ? j3(mo2(i, s, l4, d), n) : n;
}
function ms3(n, i, s) {
let l4 = O3(250);
return l4.initializer = n, l4.expression = i, l4.statement = $n2(s), l4.transformFlags |= z3(l4.initializer) | z3(l4.expression) | z3(l4.statement), l4.jsDoc = undefined, l4.locals = undefined, l4.nextContainer = undefined, l4.flowNode = undefined, l4;
}
function au2(n, i, s, l4) {
return n.initializer !== i || n.expression !== s || n.statement !== l4 ? j3(ms3(i, s, l4), n) : n;
}
function yo2(n, i, s, l4) {
let d = O3(251);
return d.awaitModifier = n, d.initializer = i, d.expression = _4().parenthesizeExpressionForDisallowedComma(s), d.statement = $n2(l4), d.transformFlags |= z3(d.awaitModifier) | z3(d.initializer) | z3(d.expression) | z3(d.statement) | 1024, n && (d.transformFlags |= 128), d.jsDoc = undefined, d.locals = undefined, d.nextContainer = undefined, d.flowNode = undefined, d;
}
function su2(n, i, s, l4, d) {
return n.awaitModifier !== i || n.initializer !== s || n.expression !== l4 || n.statement !== d ? j3(yo2(i, s, l4, d), n) : n;
}
function go2(n) {
let i = O3(252);
return i.label = et3(n), i.transformFlags |= z3(i.label) | 4194304, i.jsDoc = undefined, i.flowNode = undefined, i;
}
function _u2(n, i) {
return n.label !== i ? j3(go2(i), n) : n;
}
function hs3(n) {
let i = O3(253);
return i.label = et3(n), i.transformFlags |= z3(i.label) | 4194304, i.jsDoc = undefined, i.flowNode = undefined, i;
}
function bo2(n, i) {
return n.label !== i ? j3(hs3(i), n) : n;
}
function ys3(n) {
let i = O3(254);
return i.expression = n, i.transformFlags |= z3(i.expression) | 128 | 4194304, i.jsDoc = undefined, i.flowNode = undefined, i;
}
function ou2(n, i) {
return n.expression !== i ? j3(ys3(i), n) : n;
}
function gs3(n, i) {
let s = O3(255);
return s.expression = n, s.statement = $n2(i), s.transformFlags |= z3(s.expression) | z3(s.statement), s.jsDoc = undefined, s.flowNode = undefined, s;
}
function vo2(n, i, s) {
return n.expression !== i || n.statement !== s ? j3(gs3(i, s), n) : n;
}
function bs3(n, i) {
let s = O3(256);
return s.expression = _4().parenthesizeExpressionForDisallowedComma(n), s.caseBlock = i, s.transformFlags |= z3(s.expression) | z3(s.caseBlock), s.jsDoc = undefined, s.flowNode = undefined, s.possiblyExhaustive = false, s;
}
function ai3(n, i, s) {
return n.expression !== i || n.caseBlock !== s ? j3(bs3(i, s), n) : n;
}
function To2(n, i) {
let s = O3(257);
return s.label = et3(n), s.statement = $n2(i), s.transformFlags |= z3(s.label) | z3(s.statement), s.jsDoc = undefined, s.flowNode = undefined, s;
}
function xo2(n, i, s) {
return n.label !== i || n.statement !== s ? j3(To2(i, s), n) : n;
}
function So2(n) {
let i = O3(258);
return i.expression = n, i.transformFlags |= z3(i.expression), i.jsDoc = undefined, i.flowNode = undefined, i;
}
function cu2(n, i) {
return n.expression !== i ? j3(So2(i), n) : n;
}
function wo2(n, i, s) {
let l4 = O3(259);
return l4.tryBlock = n, l4.catchClause = i, l4.finallyBlock = s, l4.transformFlags |= z3(l4.tryBlock) | z3(l4.catchClause) | z3(l4.finallyBlock), l4.jsDoc = undefined, l4.flowNode = undefined, l4;
}
function lu2(n, i, s, l4) {
return n.tryBlock !== i || n.catchClause !== s || n.finallyBlock !== l4 ? j3(wo2(i, s, l4), n) : n;
}
function ko2() {
let n = O3(260);
return n.jsDoc = undefined, n.flowNode = undefined, n;
}
function ga(n, i, s, l4) {
let d = ae(261);
return d.name = et3(n), d.exclamationToken = i, d.type = s, d.initializer = zi3(l4), d.transformFlags |= Ln2(d.name) | z3(d.initializer) | (d.exclamationToken ?? d.type ? 1 : 0), d.jsDoc = undefined, d;
}
function Eo2(n, i, s, l4, d) {
return n.name !== i || n.type !== l4 || n.exclamationToken !== s || n.initializer !== d ? j3(ga(i, s, l4, d), n) : n;
}
function vs3(n, i = 0) {
let s = O3(262);
return s.flags |= i & 7, s.declarations = de3(n), s.transformFlags |= ke3(s.declarations) | 4194304, i & 7 && (s.transformFlags |= 263168), i & 4 && (s.transformFlags |= 4), s;
}
function uu2(n, i) {
return n.declarations !== i ? j3(vs3(i, n.flags), n) : n;
}
function Ao2(n, i, s, l4, d, v4, F3) {
let pe3 = ae(263);
if (pe3.modifiers = Pe2(n), pe3.asteriskToken = i, pe3.name = et3(s), pe3.typeParameters = Pe2(l4), pe3.parameters = de3(d), pe3.type = v4, pe3.body = F3, !pe3.body || Jn(pe3.modifiers) & 128)
pe3.transformFlags = 1;
else {
let Fe3 = Jn(pe3.modifiers) & 1024, It3 = !!pe3.asteriskToken, fr3 = Fe3 && It3;
pe3.transformFlags = ke3(pe3.modifiers) | z3(pe3.asteriskToken) | Ln2(pe3.name) | ke3(pe3.typeParameters) | ke3(pe3.parameters) | z3(pe3.type) | z3(pe3.body) & -67108865 | (fr3 ? 128 : Fe3 ? 256 : It3 ? 2048 : 0) | (pe3.typeParameters || pe3.type ? 1 : 0) | 4194304;
}
return pe3.typeArguments = undefined, pe3.jsDoc = undefined, pe3.locals = undefined, pe3.nextContainer = undefined, pe3.endFlowNode = undefined, pe3.returnFlowNode = undefined, pe3;
}
function Ts3(n, i, s, l4, d, v4, F3, pe3) {
return n.modifiers !== i || n.asteriskToken !== s || n.name !== l4 || n.typeParameters !== d || n.parameters !== v4 || n.type !== F3 || n.body !== pe3 ? pu2(Ao2(i, s, l4, d, v4, F3, pe3), n) : n;
}
function pu2(n, i) {
return n !== i && n.modifiers === i.modifiers && (n.modifiers = i.modifiers), Oe3(n, i);
}
function Co2(n, i, s, l4, d) {
let v4 = ae(264);
return v4.modifiers = Pe2(n), v4.name = et3(i), v4.typeParameters = Pe2(s), v4.heritageClauses = Pe2(l4), v4.members = de3(d), Jn(v4.modifiers) & 128 ? v4.transformFlags = 1 : (v4.transformFlags |= ke3(v4.modifiers) | Ln2(v4.name) | ke3(v4.typeParameters) | ke3(v4.heritageClauses) | ke3(v4.members) | (v4.typeParameters ? 1 : 0) | 1024, v4.transformFlags & 8192 && (v4.transformFlags |= 1)), v4.jsDoc = undefined, v4;
}
function ba2(n, i, s, l4, d, v4) {
return n.modifiers !== i || n.name !== s || n.typeParameters !== l4 || n.heritageClauses !== d || n.members !== v4 ? j3(Co2(i, s, l4, d, v4), n) : n;
}
function Do2(n, i, s, l4, d) {
let v4 = ae(265);
return v4.modifiers = Pe2(n), v4.name = et3(i), v4.typeParameters = Pe2(s), v4.heritageClauses = Pe2(l4), v4.members = de3(d), v4.transformFlags = 1, v4.jsDoc = undefined, v4;
}
function Po2(n, i, s, l4, d, v4) {
return n.modifiers !== i || n.name !== s || n.typeParameters !== l4 || n.heritageClauses !== d || n.members !== v4 ? j3(Do2(i, s, l4, d, v4), n) : n;
}
function _t3(n, i, s, l4) {
let d = ae(266);
return d.modifiers = Pe2(n), d.name = et3(i), d.typeParameters = Pe2(s), d.type = l4, d.transformFlags = 1, d.jsDoc = undefined, d.locals = undefined, d.nextContainer = undefined, d;
}
function vr3(n, i, s, l4, d) {
return n.modifiers !== i || n.name !== s || n.typeParameters !== l4 || n.type !== d ? j3(_t3(i, s, l4, d), n) : n;
}
function xs3(n, i, s) {
let l4 = ae(267);
return l4.modifiers = Pe2(n), l4.name = et3(i), l4.members = de3(s), l4.transformFlags |= ke3(l4.modifiers) | z3(l4.name) | ke3(l4.members) | 1, l4.transformFlags &= -67108865, l4.jsDoc = undefined, l4;
}
function Tr3(n, i, s, l4) {
return n.modifiers !== i || n.name !== s || n.members !== l4 ? j3(xs3(i, s, l4), n) : n;
}
function No2(n, i, s, l4 = 0) {
let d = ae(268);
return d.modifiers = Pe2(n), d.flags |= l4 & 2088, d.name = i, d.body = s, Jn(d.modifiers) & 128 ? d.transformFlags = 1 : d.transformFlags |= ke3(d.modifiers) | z3(d.name) | z3(d.body) | 1, d.transformFlags &= -67108865, d.jsDoc = undefined, d.locals = undefined, d.nextContainer = undefined, d;
}
function kt3(n, i, s, l4) {
return n.modifiers !== i || n.name !== s || n.body !== l4 ? j3(No2(i, s, l4, n.flags), n) : n;
}
function xr3(n) {
let i = O3(269);
return i.statements = de3(n), i.transformFlags |= ke3(i.statements), i.jsDoc = undefined, i;
}
function zt3(n, i) {
return n.statements !== i ? j3(xr3(i), n) : n;
}
function Io2(n) {
let i = O3(270);
return i.clauses = de3(n), i.transformFlags |= ke3(i.clauses), i.locals = undefined, i.nextContainer = undefined, i;
}
function fu2(n, i) {
return n.clauses !== i ? j3(Io2(i), n) : n;
}
function Oo2(n) {
let i = ae(271);
return i.name = et3(n), i.transformFlags |= ja2(i.name) | 1, i.modifiers = undefined, i.jsDoc = undefined, i;
}
function Mo2(n, i) {
return n.name !== i ? du2(Oo2(i), n) : n;
}
function du2(n, i) {
return n !== i && (n.modifiers = i.modifiers), j3(n, i);
}
function Lo2(n, i, s, l4) {
let d = ae(272);
return d.modifiers = Pe2(n), d.name = et3(s), d.isTypeOnly = i, d.moduleReference = l4, d.transformFlags |= ke3(d.modifiers) | ja2(d.name) | z3(d.moduleReference), Ff(d.moduleReference) || (d.transformFlags |= 1), d.transformFlags &= -67108865, d.jsDoc = undefined, d;
}
function Jo2(n, i, s, l4, d) {
return n.modifiers !== i || n.isTypeOnly !== s || n.name !== l4 || n.moduleReference !== d ? j3(Lo2(i, s, l4, d), n) : n;
}
function jo2(n, i, s, l4) {
let d = O3(273);
return d.modifiers = Pe2(n), d.importClause = i, d.moduleSpecifier = s, d.attributes = d.assertClause = l4, d.transformFlags |= z3(d.importClause) | z3(d.moduleSpecifier), d.transformFlags &= -67108865, d.jsDoc = undefined, d;
}
function Ro2(n, i, s, l4, d) {
return n.modifiers !== i || n.importClause !== s || n.moduleSpecifier !== l4 || n.attributes !== d ? j3(jo2(i, s, l4, d), n) : n;
}
function Uo2(n, i, s) {
let l4 = ae(274);
return typeof n == "boolean" && (n = n ? 156 : undefined), l4.isTypeOnly = n === 156, l4.phaseModifier = n, l4.name = i, l4.namedBindings = s, l4.transformFlags |= z3(l4.name) | z3(l4.namedBindings), n === 156 && (l4.transformFlags |= 1), l4.transformFlags &= -67108865, l4;
}
function Bo2(n, i, s, l4) {
return typeof i == "boolean" && (i = i ? 156 : undefined), n.phaseModifier !== i || n.name !== s || n.namedBindings !== l4 ? j3(Uo2(i, s, l4), n) : n;
}
function Ss3(n, i) {
let s = O3(301);
return s.elements = de3(n), s.multiLine = i, s.token = 132, s.transformFlags |= 4, s;
}
function mu2(n, i, s) {
return n.elements !== i || n.multiLine !== s ? j3(Ss3(i, s), n) : n;
}
function Ii3(n, i) {
let s = O3(302);
return s.name = n, s.value = i, s.transformFlags |= 4, s;
}
function qo2(n, i, s) {
return n.name !== i || n.value !== s ? j3(Ii3(i, s), n) : n;
}
function ws3(n, i) {
let s = O3(303);
return s.assertClause = n, s.multiLine = i, s;
}
function Fo2(n, i, s) {
return n.assertClause !== i || n.multiLine !== s ? j3(ws3(i, s), n) : n;
}
function zo2(n, i, s) {
let l4 = O3(301);
return l4.token = s ?? 118, l4.elements = de3(n), l4.multiLine = i, l4.transformFlags |= 4, l4;
}
function ks3(n, i, s) {
return n.elements !== i || n.multiLine !== s ? j3(zo2(i, s, n.token), n) : n;
}
function Vo2(n, i) {
let s = O3(302);
return s.name = n, s.value = i, s.transformFlags |= 4, s;
}
function Wo2(n, i, s) {
return n.name !== i || n.value !== s ? j3(Vo2(i, s), n) : n;
}
function Go2(n) {
let i = ae(275);
return i.name = n, i.transformFlags |= z3(i.name), i.transformFlags &= -67108865, i;
}
function hu2(n, i) {
return n.name !== i ? j3(Go2(i), n) : n;
}
function Yo2(n) {
let i = ae(281);
return i.name = n, i.transformFlags |= z3(i.name) | 32, i.transformFlags &= -67108865, i;
}
function yu2(n, i) {
return n.name !== i ? j3(Yo2(i), n) : n;
}
function Ho2(n) {
let i = O3(276);
return i.elements = de3(n), i.transformFlags |= ke3(i.elements), i.transformFlags &= -67108865, i;
}
function Xo2(n, i) {
return n.elements !== i ? j3(Ho2(i), n) : n;
}
function Sr3(n, i, s) {
let l4 = ae(277);
return l4.isTypeOnly = n, l4.propertyName = i, l4.name = s, l4.transformFlags |= z3(l4.propertyName) | z3(l4.name), l4.transformFlags &= -67108865, l4;
}
function gu2(n, i, s, l4) {
return n.isTypeOnly !== i || n.propertyName !== s || n.name !== l4 ? j3(Sr3(i, s, l4), n) : n;
}
function va2(n, i, s) {
let l4 = ae(278);
return l4.modifiers = Pe2(n), l4.isExportEquals = i, l4.expression = i ? _4().parenthesizeRightSideOfBinary(64, undefined, s) : _4().parenthesizeExpressionOfExportDefault(s), l4.transformFlags |= ke3(l4.modifiers) | z3(l4.expression), l4.transformFlags &= -67108865, l4.jsDoc = undefined, l4;
}
function Oi3(n, i, s) {
return n.modifiers !== i || n.expression !== s ? j3(va2(i, n.isExportEquals, s), n) : n;
}
function Ta2(n, i, s, l4, d) {
let v4 = ae(279);
return v4.modifiers = Pe2(n), v4.isTypeOnly = i, v4.exportClause = s, v4.moduleSpecifier = l4, v4.attributes = v4.assertClause = d, v4.transformFlags |= ke3(v4.modifiers) | z3(v4.exportClause) | z3(v4.moduleSpecifier), v4.transformFlags &= -67108865, v4.jsDoc = undefined, v4;
}
function $o2(n, i, s, l4, d, v4) {
return n.modifiers !== i || n.isTypeOnly !== s || n.exportClause !== l4 || n.moduleSpecifier !== d || n.attributes !== v4 ? Mi3(Ta2(i, s, l4, d, v4), n) : n;
}
function Mi3(n, i) {
return n !== i && n.modifiers === i.modifiers && (n.modifiers = i.modifiers), j3(n, i);
}
function Es3(n) {
let i = O3(280);
return i.elements = de3(n), i.transformFlags |= ke3(i.elements), i.transformFlags &= -67108865, i;
}
function bu2(n, i) {
return n.elements !== i ? j3(Es3(i), n) : n;
}
function xa(n, i, s) {
let l4 = O3(282);
return l4.isTypeOnly = n, l4.propertyName = et3(i), l4.name = et3(s), l4.transformFlags |= z3(l4.propertyName) | z3(l4.name), l4.transformFlags &= -67108865, l4.jsDoc = undefined, l4;
}
function vu2(n, i, s, l4) {
return n.isTypeOnly !== i || n.propertyName !== s || n.name !== l4 ? j3(xa(i, s, l4), n) : n;
}
function Tu2() {
let n = ae(283);
return n.jsDoc = undefined, n;
}
function As3(n) {
let i = O3(284);
return i.expression = n, i.transformFlags |= z3(i.expression), i.transformFlags &= -67108865, i;
}
function xu2(n, i) {
return n.expression !== i ? j3(As3(i), n) : n;
}
function Qo2(n) {
return O3(n);
}
function Ko2(n, i, s = false) {
let l4 = Cs3(n, s ? i && _4().parenthesizeNonArrayTypeOfPostfixType(i) : i);
return l4.postfix = s, l4;
}
function Cs3(n, i) {
let s = O3(n);
return s.type = i, s;
}
function Su2(n, i, s) {
return i.type !== s ? j3(Ko2(n, s, i.postfix), i) : i;
}
function wu2(n, i, s) {
return i.type !== s ? j3(Cs3(n, s), i) : i;
}
function Zo2(n, i) {
let s = ae(318);
return s.parameters = Pe2(n), s.type = i, s.transformFlags = ke3(s.parameters) | (s.type ? 1 : 0), s.jsDoc = undefined, s.locals = undefined, s.nextContainer = undefined, s.typeArguments = undefined, s;
}
function ku2(n, i, s) {
return n.parameters !== i || n.type !== s ? j3(Zo2(i, s), n) : n;
}
function ec2(n, i = false) {
let s = ae(323);
return s.jsDocPropertyTags = Pe2(n), s.isArrayType = i, s;
}
function Eu2(n, i, s) {
return n.jsDocPropertyTags !== i || n.isArrayType !== s ? j3(ec2(i, s), n) : n;
}
function tc2(n) {
let i = O3(310);
return i.type = n, i;
}
function Ds3(n, i) {
return n.type !== i ? j3(tc2(i), n) : n;
}
function nc2(n, i, s) {
let l4 = ae(324);
return l4.typeParameters = Pe2(n), l4.parameters = de3(i), l4.type = s, l4.jsDoc = undefined, l4.locals = undefined, l4.nextContainer = undefined, l4;
}
function Au2(n, i, s, l4) {
return n.typeParameters !== i || n.parameters !== s || n.type !== l4 ? j3(nc2(i, s, l4), n) : n;
}
function rn2(n) {
let i = ol2(n.kind);
return n.tagName.escapedText === La2(i) ? n.tagName : We3(i);
}
function vn2(n, i, s) {
let l4 = O3(n);
return l4.tagName = i, l4.comment = s, l4;
}
function qr3(n, i, s) {
let l4 = ae(n);
return l4.tagName = i, l4.comment = s, l4;
}
function Ps3(n, i, s, l4) {
let d = vn2(346, n ?? We3("template"), l4);
return d.constraint = i, d.typeParameters = de3(s), d;
}
function rc2(n, i = rn2(n), s, l4, d) {
return n.tagName !== i || n.constraint !== s || n.typeParameters !== l4 || n.comment !== d ? j3(Ps3(i, s, l4, d), n) : n;
}
function Sa(n, i, s, l4) {
let d = qr3(347, n ?? We3("typedef"), l4);
return d.typeExpression = i, d.fullName = s, d.name = Hd(s), d.locals = undefined, d.nextContainer = undefined, d;
}
function Cu2(n, i = rn2(n), s, l4, d) {
return n.tagName !== i || n.typeExpression !== s || n.fullName !== l4 || n.comment !== d ? j3(Sa(i, s, l4, d), n) : n;
}
function Ns3(n, i, s, l4, d, v4) {
let F3 = qr3(342, n ?? We3("param"), v4);
return F3.typeExpression = l4, F3.name = i, F3.isNameFirst = !!d, F3.isBracketed = s, F3;
}
function Du2(n, i = rn2(n), s, l4, d, v4, F3) {
return n.tagName !== i || n.name !== s || n.isBracketed !== l4 || n.typeExpression !== d || n.isNameFirst !== v4 || n.comment !== F3 ? j3(Ns3(i, s, l4, d, v4, F3), n) : n;
}
function ic2(n, i, s, l4, d, v4) {
let F3 = qr3(349, n ?? We3("prop"), v4);
return F3.typeExpression = l4, F3.name = i, F3.isNameFirst = !!d, F3.isBracketed = s, F3;
}
function ac2(n, i = rn2(n), s, l4, d, v4, F3) {
return n.tagName !== i || n.name !== s || n.isBracketed !== l4 || n.typeExpression !== d || n.isNameFirst !== v4 || n.comment !== F3 ? j3(ic2(i, s, l4, d, v4, F3), n) : n;
}
function sc2(n, i, s, l4) {
let d = qr3(339, n ?? We3("callback"), l4);
return d.typeExpression = i, d.fullName = s, d.name = Hd(s), d.locals = undefined, d.nextContainer = undefined, d;
}
function _c2(n, i = rn2(n), s, l4, d) {
return n.tagName !== i || n.typeExpression !== s || n.fullName !== l4 || n.comment !== d ? j3(sc2(i, s, l4, d), n) : n;
}
function oc2(n, i, s) {
let l4 = vn2(340, n ?? We3("overload"), s);
return l4.typeExpression = i, l4;
}
function Is3(n, i = rn2(n), s, l4) {
return n.tagName !== i || n.typeExpression !== s || n.comment !== l4 ? j3(oc2(i, s, l4), n) : n;
}
function Os3(n, i, s) {
let l4 = vn2(329, n ?? We3("augments"), s);
return l4.class = i, l4;
}
function Li3(n, i = rn2(n), s, l4) {
return n.tagName !== i || n.class !== s || n.comment !== l4 ? j3(Os3(i, s, l4), n) : n;
}
function cc2(n, i, s) {
let l4 = vn2(330, n ?? We3("implements"), s);
return l4.class = i, l4;
}
function Fr3(n, i, s) {
let l4 = vn2(348, n ?? We3("see"), s);
return l4.name = i, l4;
}
function wa2(n, i, s, l4) {
return n.tagName !== i || n.name !== s || n.comment !== l4 ? j3(Fr3(i, s, l4), n) : n;
}
function lc2(n) {
let i = O3(311);
return i.name = n, i;
}
function Pu2(n, i) {
return n.name !== i ? j3(lc2(i), n) : n;
}
function uc2(n, i) {
let s = O3(312);
return s.left = n, s.right = i, s.transformFlags |= z3(s.left) | z3(s.right), s;
}
function Nu2(n, i, s) {
return n.left !== i || n.right !== s ? j3(uc2(i, s), n) : n;
}
function pc2(n, i) {
let s = O3(325);
return s.name = n, s.text = i, s;
}
function fc2(n, i, s) {
return n.name !== i ? j3(pc2(i, s), n) : n;
}
function dc2(n, i) {
let s = O3(326);
return s.name = n, s.text = i, s;
}
function Iu2(n, i, s) {
return n.name !== i ? j3(dc2(i, s), n) : n;
}
function mc2(n, i) {
let s = O3(327);
return s.name = n, s.text = i, s;
}
function Ou2(n, i, s) {
return n.name !== i ? j3(mc2(i, s), n) : n;
}
function Mu2(n, i = rn2(n), s, l4) {
return n.tagName !== i || n.class !== s || n.comment !== l4 ? j3(cc2(i, s, l4), n) : n;
}
function hc2(n, i, s) {
return vn2(n, i ?? We3(ol2(n)), s);
}
function Lu2(n, i, s = rn2(i), l4) {
return i.tagName !== s || i.comment !== l4 ? j3(hc2(n, s, l4), i) : i;
}
function yc2(n, i, s, l4) {
let d = vn2(n, i ?? We3(ol2(n)), l4);
return d.typeExpression = s, d;
}
function Ju2(n, i, s = rn2(i), l4, d) {
return i.tagName !== s || i.typeExpression !== l4 || i.comment !== d ? j3(yc2(n, s, l4, d), i) : i;
}
function gc2(n, i) {
return vn2(328, n, i);
}
function ju2(n, i, s) {
return n.tagName !== i || n.comment !== s ? j3(gc2(i, s), n) : n;
}
function bc2(n, i, s) {
let l4 = qr3(341, n ?? We3(ol2(341)), s);
return l4.typeExpression = i, l4.locals = undefined, l4.nextContainer = undefined, l4;
}
function Ms3(n, i = rn2(n), s, l4) {
return n.tagName !== i || n.typeExpression !== s || n.comment !== l4 ? j3(bc2(i, s, l4), n) : n;
}
function vc2(n, i, s, l4, d) {
let v4 = vn2(352, n ?? We3("import"), d);
return v4.importClause = i, v4.moduleSpecifier = s, v4.attributes = l4, v4.comment = d, v4;
}
function Tc2(n, i, s, l4, d, v4) {
return n.tagName !== i || n.comment !== v4 || n.importClause !== s || n.moduleSpecifier !== l4 || n.attributes !== d ? j3(vc2(i, s, l4, d, v4), n) : n;
}
function Ls3(n) {
let i = O3(322);
return i.text = n, i;
}
function Ru2(n, i) {
return n.text !== i ? j3(Ls3(i), n) : n;
}
function Ji3(n, i) {
let s = O3(321);
return s.comment = n, s.tags = Pe2(i), s;
}
function xc2(n, i, s) {
return n.comment !== i || n.tags !== s ? j3(Ji3(i, s), n) : n;
}
function Sc2(n, i, s) {
let l4 = O3(285);
return l4.openingElement = n, l4.children = de3(i), l4.closingElement = s, l4.transformFlags |= z3(l4.openingElement) | ke3(l4.children) | z3(l4.closingElement) | 2, l4;
}
function Uu2(n, i, s, l4) {
return n.openingElement !== i || n.children !== s || n.closingElement !== l4 ? j3(Sc2(i, s, l4), n) : n;
}
function wc2(n, i, s) {
let l4 = O3(286);
return l4.tagName = n, l4.typeArguments = Pe2(i), l4.attributes = s, l4.transformFlags |= z3(l4.tagName) | ke3(l4.typeArguments) | z3(l4.attributes) | 2, l4.typeArguments && (l4.transformFlags |= 1), l4;
}
function Bu2(n, i, s, l4) {
return n.tagName !== i || n.typeArguments !== s || n.attributes !== l4 ? j3(wc2(i, s, l4), n) : n;
}
function ka2(n, i, s) {
let l4 = O3(287);
return l4.tagName = n, l4.typeArguments = Pe2(i), l4.attributes = s, l4.transformFlags |= z3(l4.tagName) | ke3(l4.typeArguments) | z3(l4.attributes) | 2, i && (l4.transformFlags |= 1), l4;
}
function kc2(n, i, s, l4) {
return n.tagName !== i || n.typeArguments !== s || n.attributes !== l4 ? j3(ka2(i, s, l4), n) : n;
}
function Js3(n) {
let i = O3(288);
return i.tagName = n, i.transformFlags |= z3(i.tagName) | 2, i;
}
function js3(n, i) {
return n.tagName !== i ? j3(Js3(i), n) : n;
}
function Yt3(n, i, s) {
let l4 = O3(289);
return l4.openingFragment = n, l4.children = de3(i), l4.closingFragment = s, l4.transformFlags |= z3(l4.openingFragment) | ke3(l4.children) | z3(l4.closingFragment) | 2, l4;
}
function Ec2(n, i, s, l4) {
return n.openingFragment !== i || n.children !== s || n.closingFragment !== l4 ? j3(Yt3(i, s, l4), n) : n;
}
function ji3(n, i) {
let s = O3(12);
return s.text = n, s.containsOnlyTriviaWhiteSpaces = !!i, s.transformFlags |= 2, s;
}
function qu2(n, i, s) {
return n.text !== i || n.containsOnlyTriviaWhiteSpaces !== s ? j3(ji3(i, s), n) : n;
}
function Ac2() {
let n = O3(290);
return n.transformFlags |= 2, n;
}
function Cc2() {
let n = O3(291);
return n.transformFlags |= 2, n;
}
function Dc2(n, i) {
let s = ae(292);
return s.name = n, s.initializer = i, s.transformFlags |= z3(s.name) | z3(s.initializer) | 2, s;
}
function Fu2(n, i, s) {
return n.name !== i || n.initializer !== s ? j3(Dc2(i, s), n) : n;
}
function Ri3(n) {
let i = ae(293);
return i.properties = de3(n), i.transformFlags |= ke3(i.properties) | 2, i;
}
function zu2(n, i) {
return n.properties !== i ? j3(Ri3(i), n) : n;
}
function Pc2(n) {
let i = O3(294);
return i.expression = n, i.transformFlags |= z3(i.expression) | 2, i;
}
function Vu2(n, i) {
return n.expression !== i ? j3(Pc2(i), n) : n;
}
function Nc2(n, i) {
let s = O3(295);
return s.dotDotDotToken = n, s.expression = i, s.transformFlags |= z3(s.dotDotDotToken) | z3(s.expression) | 2, s;
}
function Rs3(n, i) {
return n.expression !== i ? j3(Nc2(n.dotDotDotToken, i), n) : n;
}
function si3(n, i) {
let s = O3(296);
return s.namespace = n, s.name = i, s.transformFlags |= z3(s.namespace) | z3(s.name) | 2, s;
}
function Wu2(n, i, s) {
return n.namespace !== i || n.name !== s ? j3(si3(i, s), n) : n;
}
function Ea2(n, i) {
let s = O3(297);
return s.expression = _4().parenthesizeExpressionForDisallowedComma(n), s.statements = de3(i), s.transformFlags |= z3(s.expression) | ke3(s.statements), s.jsDoc = undefined, s;
}
function Ic2(n, i, s) {
return n.expression !== i || n.statements !== s ? j3(Ea2(i, s), n) : n;
}
function Oc2(n) {
let i = O3(298);
return i.statements = de3(n), i.transformFlags = ke3(i.statements), i;
}
function Ui3(n, i) {
return n.statements !== i ? j3(Oc2(i), n) : n;
}
function Us3(n, i) {
let s = O3(299);
switch (s.token = n, s.types = de3(i), s.transformFlags |= ke3(s.types), n) {
case 96:
s.transformFlags |= 1024;
break;
case 119:
s.transformFlags |= 1;
break;
default:
return q3.assertNever(n);
}
return s;
}
function Gu2(n, i) {
return n.types !== i ? j3(Us3(n.token, i), n) : n;
}
function Mc2(n, i) {
let s = O3(300);
return s.variableDeclaration = Tn2(n), s.block = i, s.transformFlags |= z3(s.variableDeclaration) | z3(s.block) | (n ? 0 : 64), s.locals = undefined, s.nextContainer = undefined, s;
}
function Lc2(n, i, s) {
return n.variableDeclaration !== i || n.block !== s ? j3(Mc2(i, s), n) : n;
}
function Aa2(n, i) {
let s = ae(304);
return s.name = et3(n), s.initializer = _4().parenthesizeExpressionForDisallowedComma(i), s.transformFlags |= Ln2(s.name) | z3(s.initializer), s.modifiers = undefined, s.questionToken = undefined, s.exclamationToken = undefined, s.jsDoc = undefined, s;
}
function Bs3(n, i, s) {
return n.name !== i || n.initializer !== s ? _i3(Aa2(i, s), n) : n;
}
function _i3(n, i) {
return n !== i && (n.modifiers = i.modifiers, n.questionToken = i.questionToken, n.exclamationToken = i.exclamationToken), j3(n, i);
}
function Jc2(n, i) {
let s = ae(305);
return s.name = et3(n), s.objectAssignmentInitializer = i && _4().parenthesizeExpressionForDisallowedComma(i), s.transformFlags |= ja2(s.name) | z3(s.objectAssignmentInitializer) | 1024, s.equalsToken = undefined, s.modifiers = undefined, s.questionToken = undefined, s.exclamationToken = undefined, s.jsDoc = undefined, s;
}
function Yu2(n, i, s) {
return n.name !== i || n.objectAssignmentInitializer !== s ? Hu2(Jc2(i, s), n) : n;
}
function Hu2(n, i) {
return n !== i && (n.modifiers = i.modifiers, n.questionToken = i.questionToken, n.exclamationToken = i.exclamationToken, n.equalsToken = i.equalsToken), j3(n, i);
}
function jc2(n) {
let i = ae(306);
return i.expression = _4().parenthesizeExpressionForDisallowedComma(n), i.transformFlags |= z3(i.expression) | 128 | 65536, i.jsDoc = undefined, i;
}
function Rc2(n, i) {
return n.expression !== i ? j3(jc2(i), n) : n;
}
function qs3(n, i) {
let s = ae(307);
return s.name = et3(n), s.initializer = i && _4().parenthesizeExpressionForDisallowedComma(i), s.transformFlags |= z3(s.name) | z3(s.initializer) | 1, s.jsDoc = undefined, s;
}
function On2(n, i, s) {
return n.name !== i || n.initializer !== s ? j3(qs3(i, s), n) : n;
}
function Uc2(n, i, s) {
let l4 = t.createBaseSourceFileNode(308);
return l4.statements = de3(n), l4.endOfFileToken = i, l4.flags |= s, l4.text = "", l4.fileName = "", l4.path = "", l4.resolvedPath = "", l4.originalFileName = "", l4.languageVersion = 1, l4.languageVariant = 0, l4.scriptKind = 0, l4.isDeclarationFile = false, l4.hasNoDefaultLib = false, l4.transformFlags |= ke3(l4.statements) | z3(l4.endOfFileToken), l4.locals = undefined, l4.nextContainer = undefined, l4.endFlowNode = undefined, l4.nodeCount = 0, l4.identifierCount = 0, l4.symbolCount = 0, l4.parseDiagnostics = undefined, l4.bindDiagnostics = undefined, l4.bindSuggestionDiagnostics = undefined, l4.lineMap = undefined, l4.externalModuleIndicator = undefined, l4.setExternalModuleIndicator = undefined, l4.pragmas = undefined, l4.checkJsDirective = undefined, l4.referencedFiles = undefined, l4.typeReferenceDirectives = undefined, l4.libReferenceDirectives = undefined, l4.amdDependencies = undefined, l4.commentDirectives = undefined, l4.identifiers = undefined, l4.packageJsonLocations = undefined, l4.packageJsonScope = undefined, l4.imports = undefined, l4.moduleAugmentations = undefined, l4.ambientModuleNames = undefined, l4.classifiableNames = undefined, l4.impliedNodeFormat = undefined, l4;
}
function Bc2(n) {
let i = Object.create(n.redirectTarget);
return Object.defineProperties(i, { id: { get() {
return this.redirectInfo.redirectTarget.id;
}, set(s) {
this.redirectInfo.redirectTarget.id = s;
} }, symbol: { get() {
return this.redirectInfo.redirectTarget.symbol;
}, set(s) {
this.redirectInfo.redirectTarget.symbol = s;
} } }), i.redirectInfo = n, i;
}
function Xu2(n) {
let i = Bc2(n.redirectInfo);
return i.flags |= n.flags & -17, i.fileName = n.fileName, i.path = n.path, i.resolvedPath = n.resolvedPath, i.originalFileName = n.originalFileName, i.packageJsonLocations = n.packageJsonLocations, i.packageJsonScope = n.packageJsonScope, i.emitNode = undefined, i;
}
function $u2(n) {
let i = t.createBaseSourceFileNode(308);
i.flags |= n.flags & -17;
for (let s in n)
if (!(Dr3(i, s) || !Dr3(n, s))) {
if (s === "emitNode") {
i.emitNode = undefined;
continue;
}
i[s] = n[s];
}
return i;
}
function Fs3(n) {
let i = n.redirectInfo ? Xu2(n) : $u2(n);
return a4(i, n), i;
}
function zs3(n, i, s, l4, d, v4, F3) {
let pe3 = Fs3(n);
return pe3.statements = de3(i), pe3.isDeclarationFile = s, pe3.referencedFiles = l4, pe3.typeReferenceDirectives = d, pe3.hasNoDefaultLib = v4, pe3.libReferenceDirectives = F3, pe3.transformFlags = ke3(pe3.statements) | z3(pe3.endOfFileToken), pe3;
}
function Qu2(n, i, s = n.isDeclarationFile, l4 = n.referencedFiles, d = n.typeReferenceDirectives, v4 = n.hasNoDefaultLib, F3 = n.libReferenceDirectives) {
return n.statements !== i || n.isDeclarationFile !== s || n.referencedFiles !== l4 || n.typeReferenceDirectives !== d || n.hasNoDefaultLib !== v4 || n.libReferenceDirectives !== F3 ? j3(zs3(n, i, s, l4, d, v4, F3), n) : n;
}
function qc2(n) {
let i = O3(309);
return i.sourceFiles = n, i.syntheticFileReferences = undefined, i.syntheticTypeReferences = undefined, i.syntheticLibReferences = undefined, i.hasNoDefaultLib = undefined, i;
}
function Fc2(n, i) {
return n.sourceFiles !== i ? j3(qc2(i), n) : n;
}
function Ku2(n, i = false, s) {
let l4 = O3(238);
return l4.type = n, l4.isSpread = i, l4.tupleNameSource = s, l4;
}
function Zu2(n) {
let i = O3(353);
return i._children = n, i;
}
function Ca2(n) {
let i = O3(354);
return i.original = n, dn2(i, n), i;
}
function Vs2(n, i) {
let s = O3(356);
return s.expression = n, s.original = i, s.transformFlags |= z3(s.expression) | 1, dn2(s, i), s;
}
function zc2(n, i) {
return n.expression !== i ? j3(Vs2(i, n.original), n) : n;
}
function ep2() {
return O3(355);
}
function tp2(n) {
if (Ja2(n) && !gl2(n) && !n.original && !n.emitNode && !n.id) {
if (e6(n))
return n.elements;
if (na2(n) && Rb(n.operatorToken))
return [n.left, n.right];
}
return n;
}
function Ws3(n) {
let i = O3(357);
return i.elements = de3(oy(n, tp2)), i.transformFlags |= ke3(i.elements), i;
}
function np2(n, i) {
return n.elements !== i ? j3(Ws3(i), n) : n;
}
function Gs3(n, i) {
let s = O3(358);
return s.expression = n, s.thisArg = i, s.transformFlags |= z3(s.expression) | z3(s.thisArg), s;
}
function Vc2(n, i, s) {
return n.expression !== i || n.thisArg !== s ? j3(Gs3(i, s), n) : n;
}
function Wc2(n) {
let i = hn2(n.escapedText);
return i.flags |= n.flags & -17, i.transformFlags = n.transformFlags, a4(i, n), setIdentifierAutoGenerate(i, { ...n.emitNode.autoGenerate }), i;
}
function rp2(n) {
let i = hn2(n.escapedText);
i.flags |= n.flags & -17, i.jsDoc = n.jsDoc, i.flowNode = n.flowNode, i.symbol = n.symbol, i.transformFlags = n.transformFlags, a4(i, n);
let s = getIdentifierTypeArguments(n);
return s && setIdentifierTypeArguments(i, s), i;
}
function ip2(n) {
let i = Pn2(n.escapedText);
return i.flags |= n.flags & -17, i.transformFlags = n.transformFlags, a4(i, n), setIdentifierAutoGenerate(i, { ...n.emitNode.autoGenerate }), i;
}
function Gc2(n) {
let i = Pn2(n.escapedText);
return i.flags |= n.flags & -17, i.transformFlags = n.transformFlags, a4(i, n), i;
}
function Da2(n) {
if (n === undefined)
return n;
if (Z1(n))
return Fs3(n);
if (Ua2(n))
return Wc2(n);
if (Ke3(n))
return rp2(n);
if (n1(n))
return ip2(n);
if (gi3(n))
return Gc2(n);
let i = ff(n.kind) ? t.createBaseNode(n.kind) : t.createBaseTokenNode(n.kind);
i.flags |= n.flags & -17, i.transformFlags = n.transformFlags, a4(i, n);
for (let s in n)
Dr3(i, s) || !Dr3(n, s) || (i[s] = n[s]);
return i;
}
function ap2(n, i, s) {
return Di3(is3(undefined, undefined, undefined, undefined, i ? [i] : [], undefined, Br3(n, true)), undefined, s ? [s] : []);
}
function sp2(n, i, s) {
return Di3(as3(undefined, undefined, i ? [i] : [], undefined, undefined, Br3(n, true)), undefined, s ? [s] : []);
}
function Bi3() {
return ss3(V3("0"));
}
function Yc2(n) {
return va2(undefined, false, n);
}
function Hc2(n) {
return Ta2(undefined, false, Es3([xa(false, undefined, n)]));
}
function _p2(n, i) {
return i === "null" ? he3.createStrictEquality(n, Lt3()) : i === "undefined" ? he3.createStrictEquality(n, Bi3()) : he3.createStrictEquality(fa2(n), ft3(i));
}
function Ys3(n, i) {
return i === "null" ? he3.createStrictInequality(n, Lt3()) : i === "undefined" ? he3.createStrictInequality(n, Bi3()) : he3.createStrictInequality(fa2(n), ft3(i));
}
function zr3(n, i, s) {
return Dd(n) ? ts3(Ai3(n, undefined, i), undefined, undefined, s) : Di3(cr2(n, i), undefined, s);
}
function op2(n, i, s) {
return zr3(n, "bind", [i, ...s]);
}
function cp2(n, i, s) {
return zr3(n, "call", [i, ...s]);
}
function lp2(n, i, s) {
return zr3(n, "apply", [i, s]);
}
function qi3(n, i, s) {
return zr3(We3(n), i, s);
}
function up2(n, i) {
return zr3(n, "slice", i === undefined ? [] : [wr3(i)]);
}
function Fi3(n, i) {
return zr3(n, "concat", i);
}
function pp2(n, i, s) {
return qi3("Object", "defineProperty", [n, wr3(i), s]);
}
function Hs3(n, i) {
return qi3("Object", "getOwnPropertyDescriptor", [n, wr3(i)]);
}
function oi3(n, i, s) {
return qi3("Reflect", "get", s ? [n, i, s] : [n, i]);
}
function Xc2(n, i, s, l4) {
return qi3("Reflect", "set", l4 ? [n, i, s, l4] : [n, i, s]);
}
function ci3(n, i, s) {
return s ? (n.push(Aa2(i, s)), true) : false;
}
function fp2(n, i) {
let s = [];
ci3(s, "enumerable", wr3(n.enumerable)), ci3(s, "configurable", wr3(n.configurable));
let l4 = ci3(s, "writable", wr3(n.writable));
l4 = ci3(s, "value", n.value) || l4;
let d = ci3(s, "get", n.get);
return d = ci3(s, "set", n.set) || d, q3.assert(!(l4 && d), "A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."), Ei3(s, !i);
}
function $c2(n, i) {
switch (n.kind) {
case 218:
return U_(n, i);
case 217:
return R_(n, n.type, i);
case 235:
return ha(n, i, n.type);
case 239:
return ro2(n, i, n.type);
case 236:
return no2(n, i);
case 234:
return eo2(n, i, n.typeArguments);
case 356:
return zc2(n, i);
}
}
function dp2(n) {
return Dl2(n) && Ja2(n) && Ja2(getSourceMapRange(n)) && Ja2(getCommentRange(n)) && !Zt3(getSyntheticLeadingComments(n)) && !Zt3(getSyntheticTrailingComments(n));
}
function Qc2(n, i, s = 63) {
return n && sh(n, s) && !dp2(n) ? $c2(n, Qc2(n.expression, i)) : i;
}
function Kc2(n, i, s) {
if (!i)
return n;
let l4 = xo2(i, i.label, Y1(i.statement) ? Kc2(n, i.statement) : n);
return s && s(i), l4;
}
function Xs3(n, i) {
let s = vf(n);
switch (s.kind) {
case 80:
return i;
case 110:
case 9:
case 10:
case 11:
return false;
case 210:
return s.elements.length !== 0;
case 211:
return s.properties.length > 0;
default:
return true;
}
}
function Zc2(n, i, s, l4 = false) {
let d = Vf(n, 63), v4, F3;
return Jd(d) ? (v4 = Bt2(), F3 = d) : Ap2(d) ? (v4 = Bt2(), F3 = s !== undefined && s < 2 ? dn2(We3("_super"), d) : d) : za2(d) & 8192 ? (v4 = Bi3(), F3 = _4().parenthesizeLeftSideOfAccess(d, false)) : dr3(d) ? Xs3(d.expression, l4) ? (v4 = ir3(i), F3 = cr2(dn2(he3.createAssignment(v4, d.expression), d.expression), d.name), dn2(F3, d)) : (v4 = d.expression, F3 = d) : Ha2(d) ? Xs3(d.expression, l4) ? (v4 = ir3(i), F3 = Ci3(dn2(he3.createAssignment(v4, d.expression), d.expression), d.argumentExpression), dn2(F3, d)) : (v4 = d.expression, F3 = d) : (v4 = Bi3(), F3 = _4().parenthesizeLeftSideOfAccess(n, false)), { target: F3, thisArg: v4 };
}
function el2(n, i) {
return cr2(rs3(Ei3([U3(undefined, "value", [mr2(undefined, undefined, n, undefined, undefined, undefined)], Br3([Ni3(i)]))])), "value");
}
function o(n) {
return n.length > 10 ? Ws3(n) : gy(n, he3.createComma);
}
function p4(n, i, s, l4 = 0, d) {
let v4 = d ? n && lf(n) : Xm2(n);
if (v4 && Ke3(v4) && !Ua2(v4)) {
let F3 = Sf(dn2(Da2(v4), v4), v4.parent);
return l4 |= za2(v4), s || (l4 |= 96), i || (l4 |= 3072), l4 && setEmitFlags(F3, l4), F3;
}
return Bn2(n);
}
function m4(n, i, s) {
return p4(n, i, s, 98304);
}
function g4(n, i, s, l4) {
return p4(n, i, s, 32768, l4);
}
function b4(n, i, s) {
return p4(n, i, s, 16384);
}
function N3(n, i, s) {
return p4(n, i, s);
}
function Q3(n, i, s, l4) {
let d = cr2(n, Ja2(i) ? i : Da2(i));
dn2(d, i);
let v4 = 0;
return l4 || (v4 |= 96), s || (v4 |= 3072), v4 && setEmitFlags(d, v4), d;
}
function _e3(n, i, s, l4) {
return n && v_(i, 32) ? Q3(n, p4(i), s, l4) : b4(i, s, l4);
}
function ee2(n, i, s, l4) {
let d = je3(n, i, 0, s);
return Je3(n, i, d, l4);
}
function te3(n) {
return vi3(n.expression) && n.expression.text === "use strict";
}
function ce3() {
return T6(Ni3(ft3("use strict")));
}
function je3(n, i, s = 0, l4) {
q3.assert(i.length === 0, "Prologue directives should be at the first statement in the target statements array");
let d = false, v4 = n.length;
for (;s < v4; ) {
let F3 = n[s];
if (pl2(F3))
te3(F3) && (d = true), i.push(F3);
else
break;
s++;
}
return l4 && !d && i.push(ce3()), s;
}
function Je3(n, i, s, l4, d = wy) {
let v4 = n.length;
for (;s !== undefined && s < v4; ) {
let F3 = n[s];
if (za2(F3) & 2097152 && d(F3))
wn2(i, l4 ? visitNode(F3, l4, Qg) : F3);
else
break;
s++;
}
return s;
}
function De3(n) {
return b6(n) ? n : dn2(de3([ce3(), ...n]), n);
}
function Ht3(n) {
return q3.assert(Gp2(n, Zg), "Cannot lift nodes to a Block."), my(n) || Br3(n);
}
function Nt3(n, i, s) {
let l4 = s;
for (;l4 < n.length && i(n[l4]); )
l4++;
return l4;
}
function ur3(n, i) {
if (!Zt3(i))
return n;
let s = Nt3(n, pl2, 0), l4 = Nt3(n, Md, s), d = Nt3(n, Ld, l4), v4 = Nt3(i, pl2, 0), F3 = Nt3(i, Md, v4), pe3 = Nt3(i, Ld, F3), Fe3 = Nt3(i, hf, pe3);
q3.assert(Fe3 === i.length, "Expected declarations to be valid standard or custom prologues");
let It3 = mi3(n) ? n.slice() : n;
if (Fe3 > pe3 && It3.splice(d, 0, ...i.slice(pe3, Fe3)), pe3 > F3 && It3.splice(l4, 0, ...i.slice(F3, pe3)), F3 > v4 && It3.splice(s, 0, ...i.slice(v4, F3)), v4 > 0)
if (s === 0)
It3.splice(0, 0, ...i.slice(0, v4));
else {
let fr3 = new Map;
for (let xn2 = 0;xn2 < s; xn2++) {
let Vi3 = n[xn2];
fr3.set(Vi3.expression.text, true);
}
for (let xn2 = v4 - 1;xn2 >= 0; xn2--) {
let Vi3 = i[xn2];
fr3.has(Vi3.expression.text) || It3.unshift(Vi3);
}
}
return mi3(n) ? dn2(de3(It3, n.hasTrailingComma), n) : n;
}
function pr3(n, i) {
let s;
return typeof i == "number" ? s = yn2(i) : s = i, Ef(n) ? sr3(n, s, n.name, n.constraint, n.default) : m_(n) ? hr3(n, s, n.dotDotDotToken, n.name, n.questionToken, n.type, n.initializer) : Nf(n) ? ze3(n, s, n.typeParameters, n.parameters, n.type) : C1(n) ? Vn2(n, s, n.name, n.questionToken, n.type) : Wa2(n) ? L3(n, s, n.name, n.questionToken ?? n.exclamationToken, n.type, n.initializer) : D1(n) ? fe2(n, s, n.name, n.questionToken, n.typeParameters, n.parameters, n.type) : h_(n) ? He3(n, s, n.asteriskToken, n.name, n.questionToken, n.typeParameters, n.parameters, n.type, n.body) : Af(n) ? Mr3(n, s, n.parameters, n.body) : Tl2(n) ? Wn2(n, s, n.name, n.parameters, n.type, n.body) : y_(n) ? K3(n, s, n.name, n.parameters, n.body) : Cf(n) ? Ze3(n, s, n.parameters, n.type) : Mf(n) ? B_(n, s, n.asteriskToken, n.name, n.typeParameters, n.parameters, n.type, n.body) : Lf(n) ? q_(n, s, n.typeParameters, n.parameters, n.type, n.equalsGreaterThanToken, n.body) : xl2(n) ? cs3(n, s, n.name, n.typeParameters, n.heritageClauses, n.members) : Xa2(n) ? so2(n, s, n.declarationList) : jf(n) ? Ts3(n, s, n.asteriskToken, n.name, n.typeParameters, n.parameters, n.type, n.body) : Ga2(n) ? ba2(n, s, n.name, n.typeParameters, n.heritageClauses, n.members) : T_(n) ? Po2(n, s, n.name, n.typeParameters, n.heritageClauses, n.members) : Nl2(n) ? vr3(n, s, n.name, n.typeParameters, n.type) : X1(n) ? Tr3(n, s, n.name, n.members) : Ti3(n) ? kt3(n, s, n.name, n.body) : Rf(n) ? Jo2(n, s, n.isTypeOnly, n.name, n.moduleReference) : Uf(n) ? Ro2(n, s, n.importClause, n.moduleSpecifier, n.attributes) : Bf(n) ? Oi3(n, s, n.expression) : qf(n) ? $o2(n, s, n.isTypeOnly, n.exportClause, n.moduleSpecifier, n.attributes) : q3.assertNever(n);
}
function Mn(n, i) {
return m_(n) ? hr3(n, i, n.dotDotDotToken, n.name, n.questionToken, n.type, n.initializer) : Wa2(n) ? L3(n, i, n.name, n.questionToken ?? n.exclamationToken, n.type, n.initializer) : h_(n) ? He3(n, i, n.asteriskToken, n.name, n.questionToken, n.typeParameters, n.parameters, n.type, n.body) : Tl2(n) ? Wn2(n, i, n.name, n.parameters, n.type, n.body) : y_(n) ? K3(n, i, n.name, n.parameters, n.body) : xl2(n) ? cs3(n, i, n.name, n.typeParameters, n.heritageClauses, n.members) : Ga2(n) ? ba2(n, i, n.name, n.typeParameters, n.heritageClauses, n.members) : q3.assertNever(n);
}
function Vr3(n, i) {
switch (n.kind) {
case 178:
return Wn2(n, n.modifiers, i, n.parameters, n.type, n.body);
case 179:
return K3(n, n.modifiers, i, n.parameters, n.body);
case 175:
return He3(n, n.modifiers, n.asteriskToken, i, n.questionToken, n.typeParameters, n.parameters, n.type, n.body);
case 174:
return fe2(n, n.modifiers, i, n.questionToken, n.typeParameters, n.parameters, n.type);
case 173:
return L3(n, n.modifiers, i, n.questionToken ?? n.exclamationToken, n.type, n.initializer);
case 172:
return Vn2(n, n.modifiers, i, n.questionToken, n.type);
case 304:
return Bs3(n, i, n.initializer);
}
}
function Pe2(n) {
return n ? de3(n) : undefined;
}
function et3(n) {
return typeof n == "string" ? We3(n) : n;
}
function wr3(n) {
return typeof n == "string" ? ft3(n) : typeof n == "number" ? V3(n) : typeof n == "boolean" ? n ? ct3() : ar3() : n;
}
function zi3(n) {
return n && _4().parenthesizeExpressionForDisallowedComma(n);
}
function mp2(n) {
return typeof n == "number" ? ot3(n) : n;
}
function $n2(n) {
return n && t6(n) ? dn2(a4(_o2(), n), n) : n;
}
function Tn2(n) {
return typeof n == "string" || n && !Jf(n) ? ga(n, undefined, undefined, undefined) : n;
}
function j3(n, i) {
return n !== i && (a4(n, i), dn2(n, i)), n;
}
}
function ol2(e) {
switch (e) {
case 345:
return "type";
case 343:
return "returns";
case 344:
return "this";
case 341:
return "enum";
case 331:
return "author";
case 333:
return "class";
case 334:
return "public";
case 335:
return "private";
case 336:
return "protected";
case 337:
return "readonly";
case 338:
return "override";
case 346:
return "template";
case 347:
return "typedef";
case 342:
return "param";
case 349:
return "prop";
case 339:
return "callback";
case 340:
return "overload";
case 329:
return "augments";
case 330:
return "implements";
case 352:
return "import";
default:
return q3.fail(`Unsupported kind: ${q3.formatSyntaxKind(e)}`);
}
}
var Sn2;
var Fd = {};
function Nb(e, t) {
switch (Sn2 || (Sn2 = sf(99, false, 0)), e) {
case 15:
Sn2.setText("`" + t + "`");
break;
case 16:
Sn2.setText("`" + t + "${");
break;
case 17:
Sn2.setText("}" + t + "${");
break;
case 18:
Sn2.setText("}" + t + "`");
break;
}
let a4 = Sn2.scan();
if (a4 === 20 && (a4 = Sn2.reScanTemplateToken(false)), Sn2.isUnterminated())
return Sn2.setText(undefined), Fd;
let _4;
switch (a4) {
case 15:
case 16:
case 17:
case 18:
_4 = Sn2.getTokenValue();
break;
}
return _4 === undefined || Sn2.scan() !== 1 ? (Sn2.setText(undefined), Fd) : (Sn2.setText(undefined), _4);
}
function Ln2(e) {
return e && Ke3(e) ? ja2(e) : z3(e);
}
function ja2(e) {
return z3(e) & -67108865;
}
function Ib(e, t) {
return t | e.transformFlags & 134234112;
}
function z3(e) {
if (!e)
return 0;
let t = e.transformFlags & ~Ob(e.kind);
return yg(e) && r1(e.name) ? Ib(e.name, t) : t;
}
function ke3(e) {
return e ? e.transformFlags : 0;
}
function zd(e) {
let t = 0;
for (let a4 of e)
t |= z3(a4);
e.transformFlags = t;
}
function Ob(e) {
if (e >= 183 && e <= 206)
return -2;
switch (e) {
case 214:
case 215:
case 210:
return -2147450880;
case 268:
return -1941676032;
case 170:
return -2147483648;
case 220:
return -2072174592;
case 219:
case 263:
return -1937940480;
case 262:
return -2146893824;
case 264:
case 232:
return -2147344384;
case 177:
return -1937948672;
case 173:
return -2013249536;
case 175:
case 178:
case 179:
return -2005057536;
case 133:
case 150:
case 163:
case 146:
case 154:
case 151:
case 136:
case 155:
case 116:
case 169:
case 172:
case 174:
case 180:
case 181:
case 182:
case 265:
case 266:
return -2;
case 211:
return -2147278848;
case 300:
return -2147418112;
case 207:
case 208:
return -2147450880;
case 217:
case 239:
case 235:
case 356:
case 218:
case 108:
return -2147483648;
case 212:
case 213:
return -2147483648;
default:
return -2147483648;
}
}
var Ks2 = Cb();
function Zs3(e) {
return e.flags |= 16, e;
}
var Mb = { createBaseSourceFileNode: (e) => Zs3(Ks2.createBaseSourceFileNode(e)), createBaseIdentifierNode: (e) => Zs3(Ks2.createBaseIdentifierNode(e)), createBasePrivateIdentifierNode: (e) => Zs3(Ks2.createBasePrivateIdentifierNode(e)), createBaseTokenNode: (e) => Zs3(Ks2.createBaseTokenNode(e)), createBaseNode: (e) => Zs3(Ks2.createBaseNode(e)) };
var P3 = wf(4, Mb);
function Lb(e, t) {
if (e.original !== t && (e.original = t, t)) {
let a4 = t.emitNode;
a4 && (e.emitNode = Jb(a4, e.emitNode));
}
return e;
}
function Jb(e, t) {
let { flags: a4, internalFlags: _4, leadingComments: f4, trailingComments: h, commentRange: T4, sourceMapRange: k4, tokenSourceMapRanges: c4, constantValue: W3, helpers: y4, startsOnNewLine: G3, snippetElement: E4, classThis: D4, assignedName: R3 } = e;
if (t || (t = {}), a4 && (t.flags = a4), _4 && (t.internalFlags = _4 & -9), f4 && (t.leadingComments = En2(f4.slice(), t.leadingComments)), h && (t.trailingComments = En2(h.slice(), t.trailingComments)), T4 && (t.commentRange = T4), k4 && (t.sourceMapRange = k4), c4 && (t.tokenSourceMapRanges = jb(c4, t.tokenSourceMapRanges)), W3 !== undefined && (t.constantValue = W3), y4)
for (let ue3 of y4)
t.helpers = py(t.helpers, ue3);
return G3 !== undefined && (t.startsOnNewLine = G3), E4 !== undefined && (t.snippetElement = E4), D4 && (t.classThis = D4), R3 && (t.assignedName = R3), t;
}
function jb(e, t) {
t || (t = []);
for (let a4 in e)
t[a4] = e[a4];
return t;
}
function aa2(e) {
return e.kind === 9;
}
function k1(e) {
return e.kind === 10;
}
function vi3(e) {
return e.kind === 11;
}
function E1(e) {
return e.kind === 15;
}
function Rb(e) {
return e.kind === 28;
}
function Vd(e) {
return e.kind === 54;
}
function Wd(e) {
return e.kind === 58;
}
function Ke3(e) {
return e.kind === 80;
}
function gi3(e) {
return e.kind === 81;
}
function Ub(e) {
return e.kind === 95;
}
function cl2(e) {
return e.kind === 134;
}
function Ap2(e) {
return e.kind === 108;
}
function Bb(e) {
return e.kind === 102;
}
function A1(e) {
return e.kind === 167;
}
function kf(e) {
return e.kind === 168;
}
function Ef(e) {
return e.kind === 169;
}
function m_(e) {
return e.kind === 170;
}
function Cl2(e) {
return e.kind === 171;
}
function C1(e) {
return e.kind === 172;
}
function Wa2(e) {
return e.kind === 173;
}
function D1(e) {
return e.kind === 174;
}
function h_(e) {
return e.kind === 175;
}
function Af(e) {
return e.kind === 177;
}
function Tl2(e) {
return e.kind === 178;
}
function y_(e) {
return e.kind === 179;
}
function P1(e) {
return e.kind === 180;
}
function N1(e) {
return e.kind === 181;
}
function Cf(e) {
return e.kind === 182;
}
function I1(e) {
return e.kind === 183;
}
function Df(e) {
return e.kind === 184;
}
function Pf(e) {
return e.kind === 185;
}
function Nf(e) {
return e.kind === 186;
}
function qb(e) {
return e.kind === 187;
}
function O1(e) {
return e.kind === 188;
}
function Fb(e) {
return e.kind === 189;
}
function zb(e) {
return e.kind === 190;
}
function M1(e) {
return e.kind === 203;
}
function Vb(e) {
return e.kind === 191;
}
function Wb(e) {
return e.kind === 192;
}
function L1(e) {
return e.kind === 193;
}
function J1(e) {
return e.kind === 194;
}
function Gb(e) {
return e.kind === 195;
}
function Yb(e) {
return e.kind === 196;
}
function j1(e) {
return e.kind === 197;
}
function Hb(e) {
return e.kind === 198;
}
function R1(e) {
return e.kind === 199;
}
function Xb(e) {
return e.kind === 200;
}
function U1(e) {
return e.kind === 201;
}
function $b(e) {
return e.kind === 202;
}
function Qb(e) {
return e.kind === 206;
}
function B1(e) {
return e.kind === 209;
}
function q1(e) {
return e.kind === 210;
}
function If(e) {
return e.kind === 211;
}
function dr3(e) {
return e.kind === 212;
}
function Ha2(e) {
return e.kind === 213;
}
function Of(e) {
return e.kind === 214;
}
function F1(e) {
return e.kind === 216;
}
function Dl2(e) {
return e.kind === 218;
}
function Mf(e) {
return e.kind === 219;
}
function Lf(e) {
return e.kind === 220;
}
function Kb(e) {
return e.kind === 223;
}
function z1(e) {
return e.kind === 225;
}
function na2(e) {
return e.kind === 227;
}
function V1(e) {
return e.kind === 231;
}
function xl2(e) {
return e.kind === 232;
}
function W1(e) {
return e.kind === 233;
}
function G1(e) {
return e.kind === 234;
}
function fl2(e) {
return e.kind === 236;
}
function Zb(e) {
return e.kind === 237;
}
function e6(e) {
return e.kind === 357;
}
function Xa2(e) {
return e.kind === 244;
}
function Pl2(e) {
return e.kind === 245;
}
function Y1(e) {
return e.kind === 257;
}
function Jf(e) {
return e.kind === 261;
}
function H1(e) {
return e.kind === 262;
}
function jf(e) {
return e.kind === 263;
}
function Ga2(e) {
return e.kind === 264;
}
function T_(e) {
return e.kind === 265;
}
function Nl2(e) {
return e.kind === 266;
}
function X1(e) {
return e.kind === 267;
}
function Ti3(e) {
return e.kind === 268;
}
function Rf(e) {
return e.kind === 272;
}
function Uf(e) {
return e.kind === 273;
}
function Bf(e) {
return e.kind === 278;
}
function qf(e) {
return e.kind === 279;
}
function $1(e) {
return e.kind === 280;
}
function t6(e) {
return e.kind === 354;
}
function Ff(e) {
return e.kind === 284;
}
function Fp2(e) {
return e.kind === 287;
}
function n6(e) {
return e.kind === 290;
}
function Q1(e) {
return e.kind === 296;
}
function r6(e) {
return e.kind === 298;
}
function K1(e) {
return e.kind === 304;
}
function Z1(e) {
return e.kind === 308;
}
function eh(e) {
return e.kind === 310;
}
function th(e) {
return e.kind === 315;
}
function nh(e) {
return e.kind === 318;
}
function rh(e) {
return e.kind === 321;
}
function i6(e) {
return e.kind === 323;
}
function Il2(e) {
return e.kind === 324;
}
function a6(e) {
return e.kind === 329;
}
function s6(e) {
return e.kind === 334;
}
function _6(e) {
return e.kind === 335;
}
function o6(e) {
return e.kind === 336;
}
function c6(e) {
return e.kind === 337;
}
function l6(e) {
return e.kind === 338;
}
function u6(e) {
return e.kind === 340;
}
function p6(e) {
return e.kind === 332;
}
function zp2(e) {
return e.kind === 342;
}
function f6(e) {
return e.kind === 343;
}
function zf(e) {
return e.kind === 345;
}
function ih(e) {
return e.kind === 346;
}
function d6(e) {
return e.kind === 330;
}
function m6(e) {
return e.kind === 351;
}
var ea3 = new WeakMap;
function ah(e, t) {
var a4;
let _4 = e.kind;
return ff(_4) ? _4 === 353 ? e._children : (a4 = ea3.get(t)) == null ? undefined : a4.get(e) : vt3;
}
function h6(e, t, a4) {
e.kind === 353 && q3.fail("Should not need to re-set the children of a SyntaxList.");
let _4 = ea3.get(t);
return _4 === undefined && (_4 = new WeakMap, ea3.set(t, _4)), _4.set(e, a4), a4;
}
function Gd(e, t) {
var a4;
e.kind === 353 && q3.fail("Did not expect to unset the children of a SyntaxList."), (a4 = ea3.get(t)) == null || a4.delete(e);
}
function y6(e, t) {
let a4 = ea3.get(e);
a4 !== undefined && (ea3.delete(e), ea3.set(t, a4));
}
function Yd(e) {
return (za2(e) & 32768) !== 0;
}
function g6(e) {
return vi3(e.expression) && e.expression.text === "use strict";
}
function b6(e) {
for (let t of e)
if (pl2(t)) {
if (g6(t))
return t;
} else
break;
}
function v6(e) {
return Dl2(e) && ia3(e) && !!Ng(e);
}
function sh(e, t = 63) {
switch (e.kind) {
case 218:
return t & -2147483648 && v6(e) ? false : (t & 1) !== 0;
case 217:
case 235:
return (t & 2) !== 0;
case 239:
return (t & 34) !== 0;
case 234:
return (t & 16) !== 0;
case 236:
return (t & 4) !== 0;
case 356:
return (t & 8) !== 0;
}
return false;
}
function Vf(e, t = 63) {
for (;sh(e, t); )
e = e.expression;
return e;
}
function T6(e) {
return setStartsOnNewLine(e, true);
}
function i_(e) {
if (Yg(e))
return e.name;
if (Vg(e)) {
switch (e.kind) {
case 304:
return i_(e.initializer);
case 305:
return e.name;
case 306:
return i_(e.expression);
}
return;
}
return vl2(e, true) ? i_(e.left) : V1(e) ? i_(e.expression) : e;
}
function x6(e) {
switch (e.kind) {
case 207:
case 208:
case 210:
return e.elements;
case 211:
return e.properties;
}
}
function Hd(e) {
if (e) {
let t = e;
for (;; ) {
if (Ke3(t) || !t.body)
return Ke3(t) ? t : t.name;
t = t.body;
}
}
}
var Xd;
((e) => {
function t(y4, G3, E4, D4, R3, ue3, be3) {
let he3 = G3 > 0 ? R3[G3 - 1] : undefined;
return q3.assertEqual(E4[G3], t), R3[G3] = y4.onEnter(D4[G3], he3, be3), E4[G3] = k4(y4, t), G3;
}
e.enter = t;
function a4(y4, G3, E4, D4, R3, ue3, be3) {
q3.assertEqual(E4[G3], a4), q3.assertIsDefined(y4.onLeft), E4[G3] = k4(y4, a4);
let he3 = y4.onLeft(D4[G3].left, R3[G3], D4[G3]);
return he3 ? (W3(G3, D4, he3), c4(G3, E4, D4, R3, he3)) : G3;
}
e.left = a4;
function _4(y4, G3, E4, D4, R3, ue3, be3) {
return q3.assertEqual(E4[G3], _4), q3.assertIsDefined(y4.onOperator), E4[G3] = k4(y4, _4), y4.onOperator(D4[G3].operatorToken, R3[G3], D4[G3]), G3;
}
e.operator = _4;
function f4(y4, G3, E4, D4, R3, ue3, be3) {
q3.assertEqual(E4[G3], f4), q3.assertIsDefined(y4.onRight), E4[G3] = k4(y4, f4);
let he3 = y4.onRight(D4[G3].right, R3[G3], D4[G3]);
return he3 ? (W3(G3, D4, he3), c4(G3, E4, D4, R3, he3)) : G3;
}
e.right = f4;
function h(y4, G3, E4, D4, R3, ue3, be3) {
q3.assertEqual(E4[G3], h), E4[G3] = k4(y4, h);
let he3 = y4.onExit(D4[G3], R3[G3]);
if (G3 > 0) {
if (G3--, y4.foldState) {
let de3 = E4[G3] === h ? "right" : "left";
R3[G3] = y4.foldState(R3[G3], he3, de3);
}
} else
ue3.value = he3;
return G3;
}
e.exit = h;
function T4(y4, G3, E4, D4, R3, ue3, be3) {
return q3.assertEqual(E4[G3], T4), G3;
}
e.done = T4;
function k4(y4, G3) {
switch (G3) {
case t:
if (y4.onLeft)
return a4;
case a4:
if (y4.onOperator)
return _4;
case _4:
if (y4.onRight)
return f4;
case f4:
return h;
case h:
return T4;
case T4:
return T4;
default:
q3.fail("Invalid state");
}
}
e.nextState = k4;
function c4(y4, G3, E4, D4, R3) {
return y4++, G3[y4] = t, E4[y4] = R3, D4[y4] = undefined, y4;
}
function W3(y4, G3, E4) {
if (q3.shouldAssert(2))
for (;y4 >= 0; )
q3.assert(G3[y4] !== E4, "Circular traversal detected."), y4--;
}
})(Xd || (Xd = {}));
function $d(e, t) {
return typeof e == "object" ? Vp2(false, e.prefix, e.node, e.suffix, t) : typeof e == "string" ? e.length > 0 && e.charCodeAt(0) === 35 ? e.slice(1) : e : "";
}
function S6(e, t) {
return typeof e == "string" ? e : w6(e, q3.checkDefined(t));
}
function w6(e, t) {
return n1(e) ? t(e).slice(1) : Ua2(e) ? t(e) : gi3(e) ? e.escapedText.slice(1) : An2(e);
}
function Vp2(e, t, a4, _4, f4) {
return t = $d(t, f4), _4 = $d(_4, f4), a4 = S6(a4, f4), `${e ? "#" : ""}${t}${a4}${_4}`;
}
function _h(e) {
if (e.transformFlags & 65536)
return true;
if (e.transformFlags & 128)
for (let t of x6(e)) {
let a4 = i_(t);
if (a4 && Gg(a4) && (a4.transformFlags & 65536 || a4.transformFlags & 128 && _h(a4)))
return true;
}
return false;
}
function dn2(e, t) {
return t ? yi3(e, t.pos, t.end) : e;
}
function Ol2(e) {
let t = e.kind;
return t === 169 || t === 170 || t === 172 || t === 173 || t === 174 || t === 175 || t === 177 || t === 178 || t === 179 || t === 182 || t === 186 || t === 219 || t === 220 || t === 232 || t === 244 || t === 263 || t === 264 || t === 265 || t === 266 || t === 267 || t === 268 || t === 272 || t === 273 || t === 278 || t === 279;
}
function Wf(e) {
let t = e.kind;
return t === 170 || t === 173 || t === 175 || t === 178 || t === 179 || t === 232 || t === 264;
}
var Qd;
var Kd;
var Zd;
var em2;
var tm2;
var k6 = { createBaseSourceFileNode: (e) => new (tm2 || (tm2 = Et3.getSourceFileConstructor()))(e, -1, -1), createBaseIdentifierNode: (e) => new (Zd || (Zd = Et3.getIdentifierConstructor()))(e, -1, -1), createBasePrivateIdentifierNode: (e) => new (em2 || (em2 = Et3.getPrivateIdentifierConstructor()))(e, -1, -1), createBaseTokenNode: (e) => new (Kd || (Kd = Et3.getTokenConstructor()))(e, -1, -1), createBaseNode: (e) => new (Qd || (Qd = Et3.getNodeConstructor()))(e, -1, -1) };
var N3 = wf(1, k6);
function S4(e, t) {
return t && e(t);
}
function ie3(e, t, a4) {
if (a4) {
if (t)
return t(a4);
for (let _4 of a4) {
let f4 = e(_4);
if (f4)
return f4;
}
}
}
function E6(e, t) {
return e.charCodeAt(t + 1) === 42 && e.charCodeAt(t + 2) === 42 && e.charCodeAt(t + 3) !== 47;
}
function A6(e) {
return jn2(e.statements, C6) || D6(e);
}
function C6(e) {
return Ol2(e) && P6(e, 95) || Rf(e) && Ff(e.moduleReference) || Uf(e) || Bf(e) || qf(e) ? e : undefined;
}
function D6(e) {
return e.flags & 8388608 ? oh(e) : undefined;
}
function oh(e) {
return N6(e) ? e : Xt3(e, oh);
}
function P6(e, t) {
return Zt3(e.modifiers, (a4) => a4.kind === t);
}
function N6(e) {
return Zb(e) && e.keywordToken === 102 && e.name.escapedText === "meta";
}
var I6 = { 167: function(t, a4, _4) {
return S4(a4, t.left) || S4(a4, t.right);
}, 169: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || S4(a4, t.constraint) || S4(a4, t.default) || S4(a4, t.expression);
}, 305: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || S4(a4, t.questionToken) || S4(a4, t.exclamationToken) || S4(a4, t.equalsToken) || S4(a4, t.objectAssignmentInitializer);
}, 306: function(t, a4, _4) {
return S4(a4, t.expression);
}, 170: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.dotDotDotToken) || S4(a4, t.name) || S4(a4, t.questionToken) || S4(a4, t.type) || S4(a4, t.initializer);
}, 173: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || S4(a4, t.questionToken) || S4(a4, t.exclamationToken) || S4(a4, t.type) || S4(a4, t.initializer);
}, 172: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || S4(a4, t.questionToken) || S4(a4, t.type) || S4(a4, t.initializer);
}, 304: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || S4(a4, t.questionToken) || S4(a4, t.exclamationToken) || S4(a4, t.initializer);
}, 261: function(t, a4, _4) {
return S4(a4, t.name) || S4(a4, t.exclamationToken) || S4(a4, t.type) || S4(a4, t.initializer);
}, 209: function(t, a4, _4) {
return S4(a4, t.dotDotDotToken) || S4(a4, t.propertyName) || S4(a4, t.name) || S4(a4, t.initializer);
}, 182: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || ie3(a4, _4, t.typeParameters) || ie3(a4, _4, t.parameters) || S4(a4, t.type);
}, 186: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || ie3(a4, _4, t.typeParameters) || ie3(a4, _4, t.parameters) || S4(a4, t.type);
}, 185: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || ie3(a4, _4, t.typeParameters) || ie3(a4, _4, t.parameters) || S4(a4, t.type);
}, 180: nm2, 181: nm2, 175: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.asteriskToken) || S4(a4, t.name) || S4(a4, t.questionToken) || S4(a4, t.exclamationToken) || ie3(a4, _4, t.typeParameters) || ie3(a4, _4, t.parameters) || S4(a4, t.type) || S4(a4, t.body);
}, 174: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || S4(a4, t.questionToken) || ie3(a4, _4, t.typeParameters) || ie3(a4, _4, t.parameters) || S4(a4, t.type);
}, 177: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || ie3(a4, _4, t.typeParameters) || ie3(a4, _4, t.parameters) || S4(a4, t.type) || S4(a4, t.body);
}, 178: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || ie3(a4, _4, t.typeParameters) || ie3(a4, _4, t.parameters) || S4(a4, t.type) || S4(a4, t.body);
}, 179: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || ie3(a4, _4, t.typeParameters) || ie3(a4, _4, t.parameters) || S4(a4, t.type) || S4(a4, t.body);
}, 263: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.asteriskToken) || S4(a4, t.name) || ie3(a4, _4, t.typeParameters) || ie3(a4, _4, t.parameters) || S4(a4, t.type) || S4(a4, t.body);
}, 219: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.asteriskToken) || S4(a4, t.name) || ie3(a4, _4, t.typeParameters) || ie3(a4, _4, t.parameters) || S4(a4, t.type) || S4(a4, t.body);
}, 220: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || ie3(a4, _4, t.typeParameters) || ie3(a4, _4, t.parameters) || S4(a4, t.type) || S4(a4, t.equalsGreaterThanToken) || S4(a4, t.body);
}, 176: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.body);
}, 184: function(t, a4, _4) {
return S4(a4, t.typeName) || ie3(a4, _4, t.typeArguments);
}, 183: function(t, a4, _4) {
return S4(a4, t.assertsModifier) || S4(a4, t.parameterName) || S4(a4, t.type);
}, 187: function(t, a4, _4) {
return S4(a4, t.exprName) || ie3(a4, _4, t.typeArguments);
}, 188: function(t, a4, _4) {
return ie3(a4, _4, t.members);
}, 189: function(t, a4, _4) {
return S4(a4, t.elementType);
}, 190: function(t, a4, _4) {
return ie3(a4, _4, t.elements);
}, 193: rm2, 194: rm2, 195: function(t, a4, _4) {
return S4(a4, t.checkType) || S4(a4, t.extendsType) || S4(a4, t.trueType) || S4(a4, t.falseType);
}, 196: function(t, a4, _4) {
return S4(a4, t.typeParameter);
}, 206: function(t, a4, _4) {
return S4(a4, t.argument) || S4(a4, t.attributes) || S4(a4, t.qualifier) || ie3(a4, _4, t.typeArguments);
}, 303: function(t, a4, _4) {
return S4(a4, t.assertClause);
}, 197: im2, 199: im2, 200: function(t, a4, _4) {
return S4(a4, t.objectType) || S4(a4, t.indexType);
}, 201: function(t, a4, _4) {
return S4(a4, t.readonlyToken) || S4(a4, t.typeParameter) || S4(a4, t.nameType) || S4(a4, t.questionToken) || S4(a4, t.type) || ie3(a4, _4, t.members);
}, 202: function(t, a4, _4) {
return S4(a4, t.literal);
}, 203: function(t, a4, _4) {
return S4(a4, t.dotDotDotToken) || S4(a4, t.name) || S4(a4, t.questionToken) || S4(a4, t.type);
}, 207: am2, 208: am2, 210: function(t, a4, _4) {
return ie3(a4, _4, t.elements);
}, 211: function(t, a4, _4) {
return ie3(a4, _4, t.properties);
}, 212: function(t, a4, _4) {
return S4(a4, t.expression) || S4(a4, t.questionDotToken) || S4(a4, t.name);
}, 213: function(t, a4, _4) {
return S4(a4, t.expression) || S4(a4, t.questionDotToken) || S4(a4, t.argumentExpression);
}, 214: sm2, 215: sm2, 216: function(t, a4, _4) {
return S4(a4, t.tag) || S4(a4, t.questionDotToken) || ie3(a4, _4, t.typeArguments) || S4(a4, t.template);
}, 217: function(t, a4, _4) {
return S4(a4, t.type) || S4(a4, t.expression);
}, 218: function(t, a4, _4) {
return S4(a4, t.expression);
}, 221: function(t, a4, _4) {
return S4(a4, t.expression);
}, 222: function(t, a4, _4) {
return S4(a4, t.expression);
}, 223: function(t, a4, _4) {
return S4(a4, t.expression);
}, 225: function(t, a4, _4) {
return S4(a4, t.operand);
}, 230: function(t, a4, _4) {
return S4(a4, t.asteriskToken) || S4(a4, t.expression);
}, 224: function(t, a4, _4) {
return S4(a4, t.expression);
}, 226: function(t, a4, _4) {
return S4(a4, t.operand);
}, 227: function(t, a4, _4) {
return S4(a4, t.left) || S4(a4, t.operatorToken) || S4(a4, t.right);
}, 235: function(t, a4, _4) {
return S4(a4, t.expression) || S4(a4, t.type);
}, 236: function(t, a4, _4) {
return S4(a4, t.expression);
}, 239: function(t, a4, _4) {
return S4(a4, t.expression) || S4(a4, t.type);
}, 237: function(t, a4, _4) {
return S4(a4, t.name);
}, 228: function(t, a4, _4) {
return S4(a4, t.condition) || S4(a4, t.questionToken) || S4(a4, t.whenTrue) || S4(a4, t.colonToken) || S4(a4, t.whenFalse);
}, 231: function(t, a4, _4) {
return S4(a4, t.expression);
}, 242: _m2, 269: _m2, 308: function(t, a4, _4) {
return ie3(a4, _4, t.statements) || S4(a4, t.endOfFileToken);
}, 244: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.declarationList);
}, 262: function(t, a4, _4) {
return ie3(a4, _4, t.declarations);
}, 245: function(t, a4, _4) {
return S4(a4, t.expression);
}, 246: function(t, a4, _4) {
return S4(a4, t.expression) || S4(a4, t.thenStatement) || S4(a4, t.elseStatement);
}, 247: function(t, a4, _4) {
return S4(a4, t.statement) || S4(a4, t.expression);
}, 248: function(t, a4, _4) {
return S4(a4, t.expression) || S4(a4, t.statement);
}, 249: function(t, a4, _4) {
return S4(a4, t.initializer) || S4(a4, t.condition) || S4(a4, t.incrementor) || S4(a4, t.statement);
}, 250: function(t, a4, _4) {
return S4(a4, t.initializer) || S4(a4, t.expression) || S4(a4, t.statement);
}, 251: function(t, a4, _4) {
return S4(a4, t.awaitModifier) || S4(a4, t.initializer) || S4(a4, t.expression) || S4(a4, t.statement);
}, 252: om2, 253: om2, 254: function(t, a4, _4) {
return S4(a4, t.expression);
}, 255: function(t, a4, _4) {
return S4(a4, t.expression) || S4(a4, t.statement);
}, 256: function(t, a4, _4) {
return S4(a4, t.expression) || S4(a4, t.caseBlock);
}, 270: function(t, a4, _4) {
return ie3(a4, _4, t.clauses);
}, 297: function(t, a4, _4) {
return S4(a4, t.expression) || ie3(a4, _4, t.statements);
}, 298: function(t, a4, _4) {
return ie3(a4, _4, t.statements);
}, 257: function(t, a4, _4) {
return S4(a4, t.label) || S4(a4, t.statement);
}, 258: function(t, a4, _4) {
return S4(a4, t.expression);
}, 259: function(t, a4, _4) {
return S4(a4, t.tryBlock) || S4(a4, t.catchClause) || S4(a4, t.finallyBlock);
}, 300: function(t, a4, _4) {
return S4(a4, t.variableDeclaration) || S4(a4, t.block);
}, 171: function(t, a4, _4) {
return S4(a4, t.expression);
}, 264: cm2, 232: cm2, 265: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || ie3(a4, _4, t.typeParameters) || ie3(a4, _4, t.heritageClauses) || ie3(a4, _4, t.members);
}, 266: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || ie3(a4, _4, t.typeParameters) || S4(a4, t.type);
}, 267: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || ie3(a4, _4, t.members);
}, 307: function(t, a4, _4) {
return S4(a4, t.name) || S4(a4, t.initializer);
}, 268: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || S4(a4, t.body);
}, 272: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name) || S4(a4, t.moduleReference);
}, 273: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.importClause) || S4(a4, t.moduleSpecifier) || S4(a4, t.attributes);
}, 274: function(t, a4, _4) {
return S4(a4, t.name) || S4(a4, t.namedBindings);
}, 301: function(t, a4, _4) {
return ie3(a4, _4, t.elements);
}, 302: function(t, a4, _4) {
return S4(a4, t.name) || S4(a4, t.value);
}, 271: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.name);
}, 275: function(t, a4, _4) {
return S4(a4, t.name);
}, 281: function(t, a4, _4) {
return S4(a4, t.name);
}, 276: lm2, 280: lm2, 279: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.exportClause) || S4(a4, t.moduleSpecifier) || S4(a4, t.attributes);
}, 277: um2, 282: um2, 278: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers) || S4(a4, t.expression);
}, 229: function(t, a4, _4) {
return S4(a4, t.head) || ie3(a4, _4, t.templateSpans);
}, 240: function(t, a4, _4) {
return S4(a4, t.expression) || S4(a4, t.literal);
}, 204: function(t, a4, _4) {
return S4(a4, t.head) || ie3(a4, _4, t.templateSpans);
}, 205: function(t, a4, _4) {
return S4(a4, t.type) || S4(a4, t.literal);
}, 168: function(t, a4, _4) {
return S4(a4, t.expression);
}, 299: function(t, a4, _4) {
return ie3(a4, _4, t.types);
}, 234: function(t, a4, _4) {
return S4(a4, t.expression) || ie3(a4, _4, t.typeArguments);
}, 284: function(t, a4, _4) {
return S4(a4, t.expression);
}, 283: function(t, a4, _4) {
return ie3(a4, _4, t.modifiers);
}, 357: function(t, a4, _4) {
return ie3(a4, _4, t.elements);
}, 285: function(t, a4, _4) {
return S4(a4, t.openingElement) || ie3(a4, _4, t.children) || S4(a4, t.closingElement);
}, 289: function(t, a4, _4) {
return S4(a4, t.openingFragment) || ie3(a4, _4, t.children) || S4(a4, t.closingFragment);
}, 286: pm2, 287: pm2, 293: function(t, a4, _4) {
return ie3(a4, _4, t.properties);
}, 292: function(t, a4, _4) {
return S4(a4, t.name) || S4(a4, t.initializer);
}, 294: function(t, a4, _4) {
return S4(a4, t.expression);
}, 295: function(t, a4, _4) {
return S4(a4, t.dotDotDotToken) || S4(a4, t.expression);
}, 288: function(t, a4, _4) {
return S4(a4, t.tagName);
}, 296: function(t, a4, _4) {
return S4(a4, t.namespace) || S4(a4, t.name);
}, 191: Hi3, 192: Hi3, 310: Hi3, 316: Hi3, 315: Hi3, 317: Hi3, 319: Hi3, 318: function(t, a4, _4) {
return ie3(a4, _4, t.parameters) || S4(a4, t.type);
}, 321: function(t, a4, _4) {
return (typeof t.comment == "string" ? undefined : ie3(a4, _4, t.comment)) || ie3(a4, _4, t.tags);
}, 348: function(t, a4, _4) {
return S4(a4, t.tagName) || S4(a4, t.name) || (typeof t.comment == "string" ? undefined : ie3(a4, _4, t.comment));
}, 311: function(t, a4, _4) {
return S4(a4, t.name);
}, 312: function(t, a4, _4) {
return S4(a4, t.left) || S4(a4, t.right);
}, 342: fm2, 349: fm2, 331: function(t, a4, _4) {
return S4(a4, t.tagName) || (typeof t.comment == "string" ? undefined : ie3(a4, _4, t.comment));
}, 330: function(t, a4, _4) {
return S4(a4, t.tagName) || S4(a4, t.class) || (typeof t.comment == "string" ? undefined : ie3(a4, _4, t.comment));
}, 329: function(t, a4, _4) {
return S4(a4, t.tagName) || S4(a4, t.class) || (typeof t.comment == "string" ? undefined : ie3(a4, _4, t.comment));
}, 346: function(t, a4, _4) {
return S4(a4, t.tagName) || S4(a4, t.constraint) || ie3(a4, _4, t.typeParameters) || (typeof t.comment == "string" ? undefined : ie3(a4, _4, t.comment));
}, 347: function(t, a4, _4) {
return S4(a4, t.tagName) || (t.typeExpression && t.typeExpression.kind === 310 ? S4(a4, t.typeExpression) || S4(a4, t.fullName) || (typeof t.comment == "string" ? undefined : ie3(a4, _4, t.comment)) : S4(a4, t.fullName) || S4(a4, t.typeExpression) || (typeof t.comment == "string" ? undefined : ie3(a4, _4, t.comment)));
}, 339: function(t, a4, _4) {
return S4(a4, t.tagName) || S4(a4, t.fullName) || S4(a4, t.typeExpression) || (typeof t.comment == "string" ? undefined : ie3(a4, _4, t.comment));
}, 343: Xi3, 345: Xi3, 344: Xi3, 341: Xi3, 351: Xi3, 350: Xi3, 340: Xi3, 324: function(t, a4, _4) {
return jn2(t.typeParameters, a4) || jn2(t.parameters, a4) || S4(a4, t.type);
}, 325: Cp2, 326: Cp2, 327: Cp2, 323: function(t, a4, _4) {
return jn2(t.jsDocPropertyTags, a4);
}, 328: ui3, 333: ui3, 334: ui3, 335: ui3, 336: ui3, 337: ui3, 332: ui3, 338: ui3, 352: O6, 356: M6 };
function nm2(e, t, a4) {
return ie3(t, a4, e.typeParameters) || ie3(t, a4, e.parameters) || S4(t, e.type);
}
function rm2(e, t, a4) {
return ie3(t, a4, e.types);
}
function im2(e, t, a4) {
return S4(t, e.type);
}
function am2(e, t, a4) {
return ie3(t, a4, e.elements);
}
function sm2(e, t, a4) {
return S4(t, e.expression) || S4(t, e.questionDotToken) || ie3(t, a4, e.typeArguments) || ie3(t, a4, e.arguments);
}
function _m2(e, t, a4) {
return ie3(t, a4, e.statements);
}
function om2(e, t, a4) {
return S4(t, e.label);
}
function cm2(e, t, a4) {
return ie3(t, a4, e.modifiers) || S4(t, e.name) || ie3(t, a4, e.typeParameters) || ie3(t, a4, e.heritageClauses) || ie3(t, a4, e.members);
}
function lm2(e, t, a4) {
return ie3(t, a4, e.elements);
}
function um2(e, t, a4) {
return S4(t, e.propertyName) || S4(t, e.name);
}
function pm2(e, t, a4) {
return S4(t, e.tagName) || ie3(t, a4, e.typeArguments) || S4(t, e.attributes);
}
function Hi3(e, t, a4) {
return S4(t, e.type);
}
function fm2(e, t, a4) {
return S4(t, e.tagName) || (e.isNameFirst ? S4(t, e.name) || S4(t, e.typeExpression) : S4(t, e.typeExpression) || S4(t, e.name)) || (typeof e.comment == "string" ? undefined : ie3(t, a4, e.comment));
}
function Xi3(e, t, a4) {
return S4(t, e.tagName) || S4(t, e.typeExpression) || (typeof e.comment == "string" ? undefined : ie3(t, a4, e.comment));
}
function Cp2(e, t, a4) {
return S4(t, e.name);
}
function ui3(e, t, a4) {
return S4(t, e.tagName) || (typeof e.comment == "string" ? undefined : ie3(t, a4, e.comment));
}
function O6(e, t, a4) {
return S4(t, e.tagName) || S4(t, e.importClause) || S4(t, e.moduleSpecifier) || S4(t, e.attributes) || (typeof e.comment == "string" ? undefined : ie3(t, a4, e.comment));
}
function M6(e, t, a4) {
return S4(t, e.expression);
}
function Xt3(e, t, a4) {
if (e === undefined || e.kind <= 166)
return;
let _4 = I6[e.kind];
return _4 === undefined ? undefined : _4(e, t, a4);
}
function dm2(e, t, a4) {
let _4 = mm2(e), f4 = [];
for (;f4.length < _4.length; )
f4.push(e);
for (;_4.length !== 0; ) {
let h = _4.pop(), T4 = f4.pop();
if ($r3(h)) {
if (a4) {
let k4 = a4(h, T4);
if (k4) {
if (k4 === "skip")
continue;
return k4;
}
}
for (let k4 = h.length - 1;k4 >= 0; --k4)
_4.push(h[k4]), f4.push(T4);
} else {
let k4 = t(h, T4);
if (k4) {
if (k4 === "skip")
continue;
return k4;
}
if (h.kind >= 167)
for (let c4 of mm2(h))
_4.push(c4), f4.push(h);
}
}
}
function mm2(e) {
let t = [];
return Xt3(e, a4, a4), t;
function a4(_4) {
t.unshift(_4);
}
}
function ch(e) {
e.externalModuleIndicator = A6(e);
}
function lh(e, t, a4, _4 = false, f4) {
var h, T4;
(h = ll2) == null || h.push(ll2.Phase.Parse, "createSourceFile", { path: e }, true), bd("beforeParse");
let k4, { languageVersion: c4, setExternalModuleIndicator: W3, impliedNodeFormat: y4, jsDocParsingMode: G3 } = typeof a4 == "object" ? a4 : { languageVersion: a4 };
if (c4 === 100)
k4 = ta3.parseSourceFile(e, t, c4, undefined, _4, 6, Va2, G3);
else {
let E4 = y4 === undefined ? W3 : (D4) => (D4.impliedNodeFormat = y4, (W3 || ch)(D4));
k4 = ta3.parseSourceFile(e, t, c4, undefined, _4, f4, E4, G3);
}
return bd("afterParse"), Oy("Parse", "beforeParse", "afterParse"), (T4 = ll2) == null || T4.pop(), k4;
}
function uh(e) {
return e.externalModuleIndicator !== undefined;
}
function L6(e, t, a4, _4 = false) {
let f4 = Sl2.updateSourceFile(e, t, a4, _4);
return f4.flags |= e.flags & 12582912, f4;
}
var ta3;
((e) => {
var t = sf(99, true), a4 = 40960, _4, f4, h, T4, k4;
function c4(o) {
return ar3++, o;
}
var W3 = { createBaseSourceFileNode: (o) => c4(new k4(o, 0, 0)), createBaseIdentifierNode: (o) => c4(new h(o, 0, 0)), createBasePrivateIdentifierNode: (o) => c4(new T4(o, 0, 0)), createBaseTokenNode: (o) => c4(new f4(o, 0, 0)), createBaseNode: (o) => c4(new _4(o, 0, 0)) }, y4 = wf(11, W3), { createNodeArray: G3, createNumericLiteral: E4, createStringLiteral: D4, createLiteralLikeNode: R3, createIdentifier: ue3, createPrivateIdentifier: be3, createToken: he3, createArrayLiteralExpression: de3, createObjectLiteralExpression: O3, createPropertyAccessExpression: ae, createPropertyAccessChain: Oe3, createElementAccessExpression: V3, createElementAccessChain: oe3, createCallExpression: Y3, createCallChain: ft3, createNewExpression: nr3, createParenthesizedExpression: mn2, createBlock: rr3, createVariableStatement: hn2, createExpressionStatement: Dn2, createIfStatement: We3, createWhileStatement: ir3, createForStatement: Ir2, createForOfStatement: Ot3, createVariableDeclaration: Bn2, createVariableDeclarationList: Pn2 } = y4, Mt3, ht3, $e3, qn2, $t3, ot3, at3, Bt2, Lt3, ct3, ar3, dt3, yn2, yt3, _n2, tt3, qt3 = true, tn2 = false;
function sr3(o, p4, m4, g4, b4 = false, N4, Q3, _e3 = 0) {
var ee2;
if (N4 = mb(o, N4), N4 === 6) {
let ce3 = hr3(o, p4, m4, g4, b4);
return convertToJson(ce3, (ee2 = ce3.statements[0]) == null ? undefined : ee2.expression, ce3.parseDiagnostics, false, undefined), ce3.referencedFiles = vt3, ce3.typeReferenceDirectives = vt3, ce3.libReferenceDirectives = vt3, ce3.amdDependencies = vt3, ce3.hasNoDefaultLib = false, ce3.pragmas = ay, ce3;
}
Fn2(o, p4, m4, g4, N4, _e3);
let te3 = Or3(m4, b4, N4, Q3 || ch, _e3);
return zn2(), te3;
}
e.parseSourceFile = sr3;
function mr2(o, p4) {
Fn2("", o, p4, undefined, 1, 0), B3();
let m4 = Ur3(true), g4 = u() === 1 && !at3.length;
return zn2(), g4 ? m4 : undefined;
}
e.parseIsolatedEntityName = mr2;
function hr3(o, p4, m4 = 2, g4, b4 = false) {
Fn2(o, p4, m4, g4, 6, 0), ht3 = tt3, B3();
let N4 = M3(), Q3, _e3;
if (u() === 1)
Q3 = At3([], N4, N4), _e3 = Wt3();
else {
let ce3;
for (;u() !== 1; ) {
let De3;
switch (u()) {
case 23:
De3 = _c2();
break;
case 112:
case 97:
case 106:
De3 = Wt3();
break;
case 41:
H3(() => B3() === 9 && B3() !== 59) ? De3 = Wo2() : De3 = Is3();
break;
case 9:
case 11:
if (H3(() => B3() !== 59)) {
De3 = Hn2();
break;
}
default:
De3 = Is3();
break;
}
ce3 && $r3(ce3) ? ce3.push(De3) : ce3 ? ce3 = [ce3, De3] : (ce3 = De3, u() !== 1 && Ee3(A2.Unexpected_token));
}
let je3 = $r3(ce3) ? P4(de3(ce3), N4) : q3.checkDefined(ce3), Je3 = Dn2(je3);
P4(Je3, N4), Q3 = At3([Je3], N4), _e3 = Yn2(1, A2.Unexpected_token);
}
let ee2 = se3(o, 2, 6, false, Q3, _e3, ht3, Va2);
b4 && L3(ee2), ee2.nodeCount = ar3, ee2.identifierCount = yn2, ee2.identifiers = dt3, ee2.parseDiagnostics = Yi3(at3, ee2), Bt2 && (ee2.jsDocDiagnostics = Yi3(Bt2, ee2));
let te3 = ee2;
return zn2(), te3;
}
e.parseJsonText = hr3;
function Fn2(o, p4, m4, g4, b4, N4) {
switch (_4 = Et3.getNodeConstructor(), f4 = Et3.getTokenConstructor(), h = Et3.getIdentifierConstructor(), T4 = Et3.getPrivateIdentifierConstructor(), k4 = Et3.getSourceFileConstructor(), Mt3 = zy(o), $e3 = p4, qn2 = m4, Lt3 = g4, $t3 = b4, ot3 = Ud(b4), at3 = [], yt3 = 0, dt3 = new Map, yn2 = 0, ar3 = 0, ht3 = 0, qt3 = true, $t3) {
case 1:
case 2:
tt3 = 524288;
break;
case 6:
tt3 = 134742016;
break;
default:
tt3 = 0;
break;
}
tn2 = false, t.setText($e3), t.setOnError(Zr3), t.setScriptTarget(qn2), t.setLanguageVariant(ot3), t.setScriptKind($t3), t.setJSDocParsingMode(N4);
}
function zn2() {
t.clearCommentDirectives(), t.setText(""), t.setOnError(undefined), t.setScriptKind(0), t.setJSDocParsingMode(0), $e3 = undefined, qn2 = undefined, Lt3 = undefined, $t3 = undefined, ot3 = undefined, ht3 = 0, at3 = undefined, Bt2 = undefined, yt3 = 0, dt3 = undefined, _n2 = undefined, qt3 = true;
}
function Or3(o, p4, m4, g4, b4) {
let N4 = R6(Mt3);
N4 && (tt3 |= 33554432), ht3 = tt3, B3();
let Q3 = bn2(0, Yt3);
q3.assert(u() === 1);
let _e3 = Ue3(), ee2 = Ce3(Wt3(), _e3), te3 = se3(Mt3, o, m4, N4, Q3, ee2, ht3, g4);
return q6(te3, $e3), F6(te3, ce3), te3.commentDirectives = t.getCommentDirectives(), te3.nodeCount = ar3, te3.identifierCount = yn2, te3.identifiers = dt3, te3.parseDiagnostics = Yi3(at3, te3), te3.jsDocParsingMode = b4, Bt2 && (te3.jsDocDiagnostics = Yi3(Bt2, te3)), p4 && L3(te3), te3;
function ce3(je3, Je3, De3) {
at3.push(Oa2(Mt3, $e3, je3, Je3, De3));
}
}
let Vn2 = false;
function Ce3(o, p4) {
if (!p4)
return o;
q3.assert(!o.jsDoc);
let m4 = cy(u2(o, $e3), (g4) => el2.parseJSDocComment(o, g4.pos, g4.end - g4.pos));
return m4.length && (o.jsDoc = m4), Vn2 && (Vn2 = false, o.flags |= 536870912), o;
}
function yr3(o) {
let p4 = Lt3, m4 = Sl2.createSyntaxCursor(o);
Lt3 = { currentNode: ce3 };
let g4 = [], b4 = at3;
at3 = [];
let N4 = 0, Q3 = ee2(o.statements, 0);
for (;Q3 !== -1; ) {
let je3 = o.statements[N4], Je3 = o.statements[Q3];
En2(g4, o.statements, N4, Q3), N4 = te3(o.statements, Q3);
let De3 = gp2(b4, (Nt3) => Nt3.start >= je3.pos), Ht3 = De3 >= 0 ? gp2(b4, (Nt3) => Nt3.start >= Je3.pos, De3) : -1;
De3 >= 0 && En2(at3, b4, De3, Ht3 >= 0 ? Ht3 : undefined), cn2(() => {
let Nt3 = tt3;
for (tt3 |= 65536, t.resetTokenState(Je3.pos), B3();u() !== 1; ) {
let ur3 = t.getTokenFullStart(), pr3 = ns3(0, Yt3);
if (g4.push(pr3), ur3 === t.getTokenFullStart() && B3(), N4 >= 0) {
let Mn = o.statements[N4];
if (pr3.end === Mn.pos)
break;
pr3.end > Mn.pos && (N4 = te3(o.statements, N4 + 1));
}
}
tt3 = Nt3;
}, 2), Q3 = N4 >= 0 ? ee2(o.statements, N4) : -1;
}
if (N4 >= 0) {
let je3 = o.statements[N4];
En2(g4, o.statements, N4);
let Je3 = gp2(b4, (De3) => De3.start >= je3.pos);
Je3 >= 0 && En2(at3, b4, Je3);
}
return Lt3 = p4, y4.updateSourceFile(o, dn2(G3(g4), o.statements));
function _e3(je3) {
return !(je3.flags & 65536) && !!(je3.transformFlags & 67108864);
}
function ee2(je3, Je3) {
for (let De3 = Je3;De3 < je3.length; De3++)
if (_e3(je3[De3]))
return De3;
return -1;
}
function te3(je3, Je3) {
for (let De3 = Je3;De3 < je3.length; De3++)
if (!_e3(je3[De3]))
return De3;
return -1;
}
function ce3(je3) {
let Je3 = m4.currentNode(je3);
return qt3 && Je3 && _e3(Je3) && Wp2(Je3), Je3;
}
}
function L3(o) {
Sb(o, true);
}
e.fixupParentReferences = L3;
function se3(o, p4, m4, g4, b4, N4, Q3, _e3) {
let ee2 = y4.createSourceFile(b4, N4, Q3);
if (qd(ee2, 0, $e3.length), te3(ee2), !g4 && uh(ee2) && ee2.transformFlags & 67108864) {
let ce3 = ee2;
ee2 = yr3(ee2), ce3 !== ee2 && te3(ee2);
}
return ee2;
function te3(ce3) {
ce3.text = $e3, ce3.bindDiagnostics = [], ce3.bindSuggestionDiagnostics = undefined, ce3.languageVersion = p4, ce3.fileName = o, ce3.languageVariant = Ud(m4), ce3.isDeclarationFile = g4, ce3.scriptKind = m4, _e3(ce3), ce3.setExternalModuleIndicator = _e3;
}
}
function fe2(o, p4) {
o ? tt3 |= p4 : tt3 &= ~p4;
}
function Te3(o) {
fe2(o, 8192);
}
function He3(o) {
fe2(o, 16384);
}
function Qe3(o) {
fe2(o, 32768);
}
function st2(o) {
fe2(o, 65536);
}
function Ct3(o, p4) {
let m4 = o & tt3;
if (m4) {
fe2(false, m4);
let g4 = p4();
return fe2(true, m4), g4;
}
return p4();
}
function Tt3(o, p4) {
let m4 = o & ~tt3;
if (m4) {
fe2(true, m4);
let g4 = p4();
return fe2(false, m4), g4;
}
return p4();
}
function lt3(o) {
return Ct3(8192, o);
}
function Mr3(o) {
return Tt3(8192, o);
}
function gr3(o) {
return Ct3(131072, o);
}
function Nn(o) {
return Tt3(131072, o);
}
function Wn2(o) {
return Tt3(16384, o);
}
function wi3(o) {
return Tt3(32768, o);
}
function U3(o) {
return Tt3(65536, o);
}
function K3(o) {
return Ct3(65536, o);
}
function Z3(o) {
return Tt3(81920, o);
}
function xe3(o) {
return Ct3(81920, o);
}
function Se3(o) {
return (tt3 & o) !== 0;
}
function we3() {
return Se3(16384);
}
function me3() {
return Se3(8192);
}
function Ve3() {
return Se3(131072);
}
function Ze3() {
return Se3(32768);
}
function Ye3() {
return Se3(65536);
}
function Ee3(o, ...p4) {
return rt3(t.getTokenStart(), t.getTokenEnd(), o, ...p4);
}
function gn2(o, p4, m4, ...g4) {
let b4 = Ba2(at3), N4;
return (!b4 || o !== b4.start) && (N4 = Oa2(Mt3, $e3, o, p4, m4, ...g4), at3.push(N4)), tn2 = true, N4;
}
function rt3(o, p4, m4, ...g4) {
return gn2(o, p4 - o, m4, ...g4);
}
function on2(o, p4, ...m4) {
rt3(o.pos, o.end, p4, ...m4);
}
function Zr3(o, p4, m4) {
gn2(t.getTokenEnd(), p4, o, m4);
}
function M3() {
return t.getTokenFullStart();
}
function Ue3() {
return t.hasPrecedingJSDocComment();
}
function u() {
return ct3;
}
function Ie2() {
return ct3 = t.scan();
}
function Me3(o) {
return B3(), o();
}
function B3() {
return di3(ct3) && (t.hasUnicodeEscape() || t.hasExtendedUnicodeEscape()) && rt3(t.getTokenStart(), t.getTokenEnd(), A2.Keywords_cannot_contain_escape_characters), Ie2();
}
function Be3() {
return ct3 = t.scanJsDocToken();
}
function nn2(o) {
return ct3 = t.scanJSDocCommentTextToken(o);
}
function ze3() {
return ct3 = t.reScanGreaterToken();
}
function Xe3() {
return ct3 = t.reScanSlashToken();
}
function Dt3(o) {
return ct3 = t.reScanTemplateToken(o);
}
function wt3() {
return ct3 = t.reScanLessThanToken();
}
function Pt3() {
return ct3 = t.reScanHashToken();
}
function Ft3() {
return ct3 = t.scanJsxIdentifier();
}
function Gn2() {
return ct3 = t.scanJsxToken();
}
function ki3() {
return ct3 = t.scanJsxAttributeValue();
}
function cn2(o, p4) {
let m4 = ct3, g4 = at3.length, b4 = tn2, N4 = tt3, Q3 = p4 !== 0 ? t.lookAhead(o) : t.tryScan(o);
return q3.assert(N4 === tt3), (!Q3 || p4 !== 0) && (ct3 = m4, p4 !== 2 && (at3.length = g4), tn2 = b4), Q3;
}
function H3(o) {
return cn2(o, 1);
}
function le3(o) {
return cn2(o, 0);
}
function qe3() {
return u() === 80 ? true : u() > 118;
}
function ve3() {
return u() === 80 ? true : u() === 127 && we3() || u() === 135 && Ye3() ? false : u() > 118;
}
function J3(o, p4, m4 = true) {
return u() === o ? (m4 && B3(), true) : (p4 ? Ee3(p4) : Ee3(A2._0_expected, nt3(o)), false);
}
let mt3 = Object.keys(tf).filter((o) => o.length > 2);
function xt3(o) {
if (F1(o)) {
rt3(Cr3($e3, o.template.pos), o.template.end, A2.Module_declaration_names_may_only_use_or_quoted_strings);
return;
}
let p4 = Ke3(o) ? An2(o) : undefined;
if (!p4 || !cg(p4, qn2)) {
Ee3(A2._0_expected, nt3(27));
return;
}
let m4 = Cr3($e3, o.pos);
switch (p4) {
case "const":
case "let":
case "var":
rt3(m4, o.end, A2.Variable_declaration_not_allowed_at_this_location);
return;
case "declare":
return;
case "interface":
Jt3(A2.Interface_name_cannot_be_0, A2.Interface_must_be_given_a_name, 19);
return;
case "is":
rt3(m4, t.getTokenStart(), A2.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);
return;
case "module":
case "namespace":
Jt3(A2.Namespace_name_cannot_be_0, A2.Namespace_must_be_given_a_name, 19);
return;
case "type":
Jt3(A2.Type_alias_name_cannot_be_0, A2.Type_alias_must_be_given_a_name, 64);
return;
}
let g4 = t_(p4, mt3, bt3) ?? ln2(p4);
if (g4) {
rt3(m4, o.end, A2.Unknown_keyword_or_identifier_Did_you_mean_0, g4);
return;
}
u() !== 0 && rt3(m4, o.end, A2.Unexpected_keyword_or_identifier);
}
function Jt3(o, p4, m4) {
u() === m4 ? Ee3(p4) : Ee3(o, t.getTokenValue());
}
function ln2(o) {
for (let p4 of mt3)
if (o.length > p4.length + 2 && ml2(o, p4))
return `${p4} ${o.slice(p4.length)}`;
}
function ql2(o, p4, m4) {
if (u() === 60 && !t.hasPrecedingLineBreak()) {
Ee3(A2.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);
return;
}
if (u() === 21) {
Ee3(A2.Cannot_start_a_function_call_in_a_type_annotation), B3();
return;
}
if (p4 && !_r3()) {
m4 ? Ee3(A2._0_expected, nt3(27)) : Ee3(A2.Expected_for_property_initializer);
return;
}
if (!oa2()) {
if (m4) {
Ee3(A2._0_expected, nt3(27));
return;
}
xt3(o);
}
}
function C_(o) {
return u() === o ? (Be3(), true) : (q3.assert(xp2(o)), Ee3(A2._0_expected, nt3(o)), false);
}
function Lr3(o, p4, m4, g4) {
if (u() === p4) {
B3();
return;
}
let b4 = Ee3(A2._0_expected, nt3(p4));
m4 && b4 && sl2(b4, Oa2(Mt3, $e3, g4, 1, A2.The_parser_expected_to_find_a_1_to_match_the_0_token_here, nt3(o), nt3(p4)));
}
function Le3(o) {
return u() === o ? (B3(), true) : false;
}
function pt3(o) {
if (u() === o)
return Wt3();
}
function Fl2(o) {
if (u() === o)
return Vl2();
}
function Yn2(o, p4, m4) {
return pt3(o) || Gt3(o, false, p4 || A2._0_expected, m4 || nt3(o));
}
function zl2(o) {
let p4 = Fl2(o);
return p4 || (q3.assert(xp2(o)), Gt3(o, false, A2._0_expected, nt3(o)));
}
function Wt3() {
let o = M3(), p4 = u();
return B3(), P4(he3(p4), o);
}
function Vl2() {
let o = M3(), p4 = u();
return Be3(), P4(he3(p4), o);
}
function _r3() {
return u() === 27 ? true : u() === 20 || u() === 1 || t.hasPrecedingLineBreak();
}
function oa2() {
return _r3() ? (u() === 27 && B3(), true) : false;
}
function Qt3() {
return oa2() || J3(27);
}
function At3(o, p4, m4, g4) {
let b4 = G3(o, g4);
return yi3(b4, p4, m4 ?? t.getTokenFullStart()), b4;
}
function P4(o, p4, m4) {
return yi3(o, p4, m4 ?? t.getTokenFullStart()), tt3 && (o.flags |= tt3), tn2 && (tn2 = false, o.flags |= 262144), o;
}
function Gt3(o, p4, m4, ...g4) {
p4 ? gn2(t.getTokenFullStart(), 0, m4, ...g4) : m4 && Ee3(m4, ...g4);
let b4 = M3(), N4 = o === 80 ? ue3("", undefined) : Pd(o) ? y4.createTemplateLiteralLikeNode(o, "", "", undefined) : o === 9 ? E4("", undefined) : o === 11 ? D4("", undefined) : o === 283 ? y4.createMissingDeclaration() : he3(o);
return P4(N4, b4);
}
function Jr3(o) {
let p4 = dt3.get(o);
return p4 === undefined && dt3.set(o, p4 = o), p4;
}
function or3(o, p4, m4) {
if (o) {
yn2++;
let _e3 = t.hasPrecedingJSDocLeadingAsterisks() ? t.getTokenStart() : M3(), ee2 = u(), te3 = Jr3(t.getTokenValue()), ce3 = t.hasExtendedUnicodeEscape();
return Ie2(), P4(ue3(te3, ee2, ce3), _e3);
}
if (u() === 81)
return Ee3(m4 || A2.Private_identifiers_are_not_allowed_outside_class_bodies), or3(true);
if (u() === 0 && t.tryScan(() => t.reScanInvalidIdentifier() === 80))
return or3(true);
yn2++;
let g4 = u() === 1, b4 = t.isReservedWord(), N4 = t.getTokenText(), Q3 = b4 ? A2.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here : A2.Identifier_expected;
return Gt3(80, g4, p4 || Q3, N4);
}
function Ka2(o) {
return or3(qe3(), undefined, o);
}
function gt3(o, p4) {
return or3(ve3(), o, p4);
}
function jt3(o) {
return or3(St3(u()), o);
}
function ei3() {
return (t.hasUnicodeEscape() || t.hasExtendedUnicodeEscape()) && Ee3(A2.Unicode_escape_sequence_cannot_appear_here), or3(St3(u()));
}
function br3() {
return St3(u()) || u() === 11 || u() === 9 || u() === 10;
}
function D_() {
return St3(u()) || u() === 11;
}
function Wl2(o) {
if (u() === 11 || u() === 9 || u() === 10) {
let p4 = Hn2();
return p4.text = Jr3(p4.text), p4;
}
return o && u() === 23 ? Gl2() : u() === 81 ? ca2() : jt3();
}
function jr3() {
return Wl2(true);
}
function Gl2() {
let o = M3();
J3(23);
let p4 = lt3(kt3);
return J3(24), P4(y4.createComputedPropertyName(p4), o);
}
function ca2() {
let o = M3(), p4 = be3(Jr3(t.getTokenValue()));
return B3(), P4(p4, o);
}
function ti3(o) {
return u() === o && le3(P_);
}
function Za2() {
return B3(), t.hasPrecedingLineBreak() ? false : cr2();
}
function P_() {
switch (u()) {
case 87:
return B3() === 94;
case 95:
return B3(), u() === 90 ? H3(Ai3) : u() === 156 ? H3(Yl2) : Ei3();
case 90:
return Ai3();
case 126:
return B3(), cr2();
case 139:
case 153:
return B3(), Hl2();
default:
return Za2();
}
}
function Ei3() {
return u() === 60 || u() !== 42 && u() !== 130 && u() !== 19 && cr2();
}
function Yl2() {
return B3(), Ei3();
}
function N_() {
return Yr3(u()) && le3(P_);
}
function cr2() {
return u() === 23 || u() === 19 || u() === 42 || u() === 26 || br3();
}
function Hl2() {
return u() === 23 || br3();
}
function Ai3() {
return B3(), u() === 86 || u() === 100 || u() === 120 || u() === 60 || u() === 128 && H3(vc2) || u() === 134 && H3(Tc2);
}
function la2(o, p4) {
if (pa2(o))
return true;
switch (o) {
case 0:
case 1:
case 3:
return !(u() === 27 && p4) && xc2();
case 2:
return u() === 84 || u() === 90;
case 4:
return H3(_o2);
case 5:
return H3(Jc2) || u() === 27 && !p4;
case 6:
return u() === 23 || br3();
case 12:
switch (u()) {
case 23:
case 42:
case 26:
case 25:
return true;
default:
return br3();
}
case 18:
return br3();
case 9:
return u() === 23 || u() === 26 || br3();
case 24:
return D_();
case 7:
return u() === 19 ? H3(I_) : p4 ? ve3() && !es3() : xs3() && !es3();
case 8:
return Rs3();
case 10:
return u() === 28 || u() === 26 || Rs3();
case 19:
return u() === 103 || u() === 87 || ve3();
case 15:
switch (u()) {
case 28:
case 25:
return true;
}
case 11:
return u() === 26 || Tr3();
case 16:
return ha(false);
case 17:
return ha(true);
case 20:
case 21:
return u() === 28 || ai3();
case 22:
return Vs2();
case 23:
return u() === 161 && H3(Cc2) ? false : u() === 11 ? true : St3(u());
case 13:
return St3(u()) || u() === 19;
case 14:
return true;
case 25:
return true;
case 26:
return q3.fail("ParsingContext.Count used as a context");
default:
q3.assertNever(o, "Non-exhaustive case in 'isListElement'.");
}
}
function I_() {
if (q3.assert(u() === 19), B3() === 20) {
let o = B3();
return o === 28 || o === 19 || o === 96 || o === 119;
}
return true;
}
function Ci3() {
return B3(), ve3();
}
function Xl2() {
return B3(), St3(u());
}
function O_() {
return B3(), Vy(u());
}
function es3() {
return u() === 119 || u() === 96 ? H3(M_) : false;
}
function M_() {
return B3(), Tr3();
}
function Di3() {
return B3(), ai3();
}
function ua3(o) {
if (u() === 1)
return true;
switch (o) {
case 1:
case 2:
case 4:
case 5:
case 6:
case 12:
case 9:
case 23:
case 24:
return u() === 20;
case 3:
return u() === 20 || u() === 84 || u() === 90;
case 7:
return u() === 19 || u() === 96 || u() === 119;
case 8:
return ts3();
case 19:
return u() === 32 || u() === 21 || u() === 19 || u() === 96 || u() === 119;
case 11:
return u() === 22 || u() === 27;
case 15:
case 21:
case 10:
return u() === 24;
case 17:
case 16:
case 18:
return u() === 22 || u() === 24;
case 20:
return u() !== 28;
case 22:
return u() === 19 || u() === 20;
case 13:
return u() === 32 || u() === 44;
case 14:
return u() === 30 && H3(ap2);
default:
return false;
}
}
function ts3() {
return !!(_r3() || qo2(u()) || u() === 39);
}
function L_() {
q3.assert(yt3, "Missing parsing context");
for (let o = 0;o < 26; o++)
if (yt3 & 1 << o && (la2(o, true) || ua3(o)))
return true;
return false;
}
function bn2(o, p4) {
let m4 = yt3;
yt3 |= 1 << o;
let g4 = [], b4 = M3();
for (;!ua3(o); ) {
if (la2(o, false)) {
g4.push(ns3(o, p4));
continue;
}
if (z_(o))
break;
}
return yt3 = m4, At3(g4, b4);
}
function ns3(o, p4) {
let m4 = pa2(o);
return m4 ? J_(m4) : p4();
}
function pa2(o, p4) {
var m4;
if (!Lt3 || !j_(o) || tn2)
return;
let g4 = Lt3.currentNode(p4 ?? t.getTokenFullStart());
if (!(Zi3(g4) || j6(g4) || u1(g4) || (g4.flags & 101441536) !== tt3) && R_(g4, o))
return bf(g4) && ((m4 = g4.jsDoc) != null && m4.jsDocCache) && (g4.jsDoc.jsDocCache = undefined), g4;
}
function J_(o) {
return t.resetTokenState(o.end), B3(), o;
}
function j_(o) {
switch (o) {
case 5:
case 2:
case 0:
case 1:
case 3:
case 6:
case 4:
case 8:
case 17:
case 16:
return true;
}
return false;
}
function R_(o, p4) {
switch (p4) {
case 5:
return rs3(o);
case 2:
return U_(o);
case 0:
case 1:
case 3:
return is3(o);
case 6:
return B_(o);
case 4:
return as3(o);
case 8:
return q_(o);
case 17:
case 16:
return F_(o);
}
return false;
}
function rs3(o) {
if (o)
switch (o.kind) {
case 177:
case 182:
case 178:
case 179:
case 173:
case 241:
return true;
case 175:
let p4 = o;
return !(p4.name.kind === 80 && p4.name.escapedText === "constructor");
}
return false;
}
function U_(o) {
if (o)
switch (o.kind) {
case 297:
case 298:
return true;
}
return false;
}
function is3(o) {
if (o)
switch (o.kind) {
case 263:
case 244:
case 242:
case 246:
case 245:
case 258:
case 254:
case 256:
case 253:
case 252:
case 250:
case 251:
case 249:
case 248:
case 255:
case 243:
case 259:
case 257:
case 247:
case 260:
case 273:
case 272:
case 279:
case 278:
case 268:
case 264:
case 265:
case 267:
case 266:
return true;
}
return false;
}
function B_(o) {
return o.kind === 307;
}
function as3(o) {
if (o)
switch (o.kind) {
case 181:
case 174:
case 182:
case 172:
case 180:
return true;
}
return false;
}
function q_(o) {
return o.kind !== 261 ? false : o.initializer === undefined;
}
function F_(o) {
return o.kind !== 170 ? false : o.initializer === undefined;
}
function z_(o) {
return fa2(o), L_() ? true : (B3(), false);
}
function fa2(o) {
switch (o) {
case 0:
return u() === 90 ? Ee3(A2._0_expected, nt3(95)) : Ee3(A2.Declaration_or_statement_expected);
case 1:
return Ee3(A2.Declaration_or_statement_expected);
case 2:
return Ee3(A2.case_or_default_expected);
case 3:
return Ee3(A2.Statement_expected);
case 18:
case 4:
return Ee3(A2.Property_or_signature_expected);
case 5:
return Ee3(A2.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);
case 6:
return Ee3(A2.Enum_member_expected);
case 7:
return Ee3(A2.Expression_expected);
case 8:
return di3(u()) ? Ee3(A2._0_is_not_allowed_as_a_variable_declaration_name, nt3(u())) : Ee3(A2.Variable_declaration_expected);
case 9:
return Ee3(A2.Property_destructuring_pattern_expected);
case 10:
return Ee3(A2.Array_element_destructuring_pattern_expected);
case 11:
return Ee3(A2.Argument_expression_expected);
case 12:
return Ee3(A2.Property_assignment_expected);
case 15:
return Ee3(A2.Expression_or_comma_expected);
case 17:
return Ee3(A2.Parameter_declaration_expected);
case 16:
return di3(u()) ? Ee3(A2._0_is_not_allowed_as_a_parameter_name, nt3(u())) : Ee3(A2.Parameter_declaration_expected);
case 19:
return Ee3(A2.Type_parameter_declaration_expected);
case 20:
return Ee3(A2.Type_argument_expected);
case 21:
return Ee3(A2.Type_expected);
case 22:
return Ee3(A2.Unexpected_token_expected);
case 23:
return u() === 161 ? Ee3(A2._0_expected, "}") : Ee3(A2.Identifier_expected);
case 13:
return Ee3(A2.Identifier_expected);
case 14:
return Ee3(A2.Identifier_expected);
case 24:
return Ee3(A2.Identifier_or_string_literal_expected);
case 25:
return Ee3(A2.Identifier_expected);
case 26:
return q3.fail("ParsingContext.Count used as a context");
default:
q3.assertNever(o);
}
}
function un2(o, p4, m4) {
let g4 = yt3;
yt3 |= 1 << o;
let b4 = [], N4 = M3(), Q3 = -1;
for (;; ) {
if (la2(o, false)) {
let _e3 = t.getTokenFullStart(), ee2 = ns3(o, p4);
if (!ee2) {
yt3 = g4;
return;
}
if (b4.push(ee2), Q3 = t.getTokenStart(), Le3(28))
continue;
if (Q3 = -1, ua3(o))
break;
J3(28, ss3(o)), m4 && u() === 27 && !t.hasPrecedingLineBreak() && B3(), _e3 === t.getTokenFullStart() && B3();
continue;
}
if (ua3(o) || z_(o))
break;
}
return yt3 = g4, At3(b4, N4, undefined, Q3 >= 0);
}
function ss3(o) {
return o === 6 ? A2.An_enum_member_name_must_be_followed_by_a_or : undefined;
}
function lr2() {
let o = At3([], M3());
return o.isMissingList = true, o;
}
function V_(o) {
return !!o.isMissingList;
}
function Rr3(o, p4, m4, g4) {
if (J3(m4)) {
let b4 = un2(o, p4);
return J3(g4), b4;
}
return lr2();
}
function Ur3(o, p4) {
let m4 = M3(), g4 = o ? jt3(p4) : gt3(p4);
for (;Le3(25) && u() !== 30; )
g4 = P4(y4.createQualifiedName(g4, ni3(o, false, true)), m4);
return g4;
}
function $l2(o, p4) {
return P4(y4.createQualifiedName(o, p4), o.pos);
}
function ni3(o, p4, m4) {
if (t.hasPrecedingLineBreak() && St3(u()) && H3(Ms3))
return Gt3(80, true, A2.Identifier_expected);
if (u() === 81) {
let g4 = ca2();
return p4 ? g4 : Gt3(80, true, A2.Identifier_expected);
}
return o ? m4 ? jt3() : ei3() : gt3();
}
function Ql2(o) {
let p4 = M3(), m4 = [], g4;
do
g4 = H_(o), m4.push(g4);
while (g4.literal.kind === 17);
return At3(m4, p4);
}
function da3(o) {
let p4 = M3();
return P4(y4.createTemplateExpression(Pi3(o), Ql2(o)), p4);
}
function W_() {
let o = M3();
return P4(y4.createTemplateLiteralType(Pi3(false), Kl2()), o);
}
function Kl2() {
let o = M3(), p4 = [], m4;
do
m4 = G_(), p4.push(m4);
while (m4.literal.kind === 17);
return At3(p4, o);
}
function G_() {
let o = M3();
return P4(y4.createTemplateLiteralTypeSpan(_t3(), Y_(false)), o);
}
function Y_(o) {
return u() === 20 ? (Dt3(o), X_()) : Yn2(18, A2._0_expected, nt3(20));
}
function H_(o) {
let p4 = M3();
return P4(y4.createTemplateSpan(lt3(kt3), Y_(o)), p4);
}
function Hn2() {
return ri3(u());
}
function Pi3(o) {
!o && t.getTokenFlags() & 26656 && Dt3(false);
let p4 = ri3(u());
return q3.assert(p4.kind === 16, "Template head has wrong token kind"), p4;
}
function X_() {
let o = ri3(u());
return q3.assert(o.kind === 17 || o.kind === 18, "Template fragment has wrong token kind"), o;
}
function Zl2(o) {
let p4 = o === 15 || o === 18, m4 = t.getTokenText();
return m4.substring(1, m4.length - (t.isUnterminated() ? 0 : p4 ? 1 : 2));
}
function ri3(o) {
let p4 = M3(), m4 = Pd(o) ? y4.createTemplateLiteralLikeNode(o, t.getTokenValue(), Zl2(o), t.getTokenFlags() & 7176) : o === 9 ? E4(t.getTokenValue(), t.getNumericLiteralFlags()) : o === 11 ? D4(t.getTokenValue(), undefined, t.hasExtendedUnicodeEscape()) : Jg(o) ? R3(o, t.getTokenValue()) : q3.fail();
return t.hasExtendedUnicodeEscape() && (m4.hasExtendedUnicodeEscape = true), t.isUnterminated() && (m4.isUnterminated = true), B3(), P4(m4, p4);
}
function ii3() {
return Ur3(true, A2.Type_expected);
}
function $_() {
if (!t.hasPrecedingLineBreak() && wt3() === 30)
return Rr3(20, _t3, 30, 32);
}
function ma3() {
let o = M3();
return P4(y4.createTypeReferenceNode(ii3(), $_()), o);
}
function _s3(o) {
switch (o.kind) {
case 184:
return Zi3(o.typeName);
case 185:
case 186: {
let { parameters: p4, type: m4 } = o;
return V_(p4) || _s3(m4);
}
case 197:
return _s3(o.type);
default:
return false;
}
}
function eu2(o) {
return B3(), P4(y4.createTypePredicateNode(undefined, o, _t3()), o.pos);
}
function os3() {
let o = M3();
return B3(), P4(y4.createThisTypeNode(), o);
}
function tu2() {
let o = M3();
return B3(), P4(y4.createJSDocAllType(), o);
}
function Q_() {
let o = M3();
return B3(), P4(y4.createJSDocNonNullableType(bs3(), false), o);
}
function nu2() {
let o = M3();
return B3(), u() === 28 || u() === 20 || u() === 22 || u() === 32 || u() === 64 || u() === 52 ? P4(y4.createJSDocUnknownType(), o) : P4(y4.createJSDocNullableType(_t3(), false), o);
}
function K_() {
let o = M3(), p4 = Ue3();
if (le3(Gc2)) {
let m4 = Xn2(36), g4 = In2(59, false);
return Ce3(P4(y4.createJSDocFunctionType(m4, g4), o), p4);
}
return P4(y4.createTypeReferenceNode(jt3(), undefined), o);
}
function cs3() {
let o = M3(), p4;
return (u() === 110 || u() === 105) && (p4 = jt3(), J3(59)), P4(y4.createParameterDeclaration(undefined, undefined, p4, undefined, ls3(), undefined), o);
}
function ls3() {
t.setSkipJsDocLeadingAsterisks(true);
let o = M3();
if (Le3(144)) {
let g4 = y4.createJSDocNamepathType(undefined);
e:
for (;; )
switch (u()) {
case 20:
case 1:
case 28:
case 5:
break e;
default:
Be3();
}
return t.setSkipJsDocLeadingAsterisks(false), P4(g4, o);
}
let p4 = Le3(26), m4 = ba2();
return t.setSkipJsDocLeadingAsterisks(false), p4 && (m4 = P4(y4.createJSDocVariadicType(m4), o)), u() === 64 ? (B3(), P4(y4.createJSDocOptionalType(m4), o)) : m4;
}
function Z_() {
let o = M3();
J3(114);
let p4 = Ur3(true), m4 = t.hasPrecedingLineBreak() ? undefined : Ca2();
return P4(y4.createTypeQueryNode(p4, m4), o);
}
function eo2() {
let o = M3(), p4 = On2(false, true), m4 = gt3(), g4, b4;
Le3(96) && (ai3() || !Tr3() ? g4 = _t3() : b4 = Xo2());
let N4 = Le3(64) ? _t3() : undefined, Q3 = y4.createTypeParameterDeclaration(p4, m4, g4, N4);
return Q3.expression = b4, P4(Q3, o);
}
function pn2() {
if (u() === 30)
return Rr3(19, eo2, 30, 32);
}
function ha(o) {
return u() === 26 || Rs3() || Yr3(u()) || u() === 60 || ai3(!o);
}
function to2(o) {
let p4 = si3(A2.Private_identifiers_cannot_be_used_as_parameters);
return s2(p4) === 0 && !Zt3(o) && Yr3(u()) && B3(), p4;
}
function no2() {
return qe3() || u() === 23 || u() === 19;
}
function us3(o) {
return ps3(o);
}
function ro2(o) {
return ps3(o, false);
}
function ps3(o, p4 = true) {
let m4 = M3(), g4 = Ue3(), b4 = o ? U3(() => On2(true)) : K3(() => On2(true));
if (u() === 110) {
let ee2 = y4.createParameterDeclaration(b4, undefined, or3(true), undefined, vr3(), undefined), te3 = Hp2(b4);
return te3 && on2(te3, A2.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters), Ce3(P4(ee2, m4), g4);
}
let N4 = qt3;
qt3 = false;
let Q3 = pt3(26);
if (!p4 && !no2())
return;
let _e3 = Ce3(P4(y4.createParameterDeclaration(b4, Q3, to2(b4), pt3(58), vr3(), xr3()), m4), g4);
return qt3 = N4, _e3;
}
function In2(o, p4) {
if (io2(o, p4))
return gr3(ba2);
}
function io2(o, p4) {
return o === 39 ? (J3(o), true) : Le3(59) ? true : p4 && u() === 39 ? (Ee3(A2._0_expected, nt3(59)), B3(), true) : false;
}
function fs3(o, p4) {
let m4 = we3(), g4 = Ye3();
He3(!!(o & 1)), st2(!!(o & 2));
let b4 = o & 32 ? un2(17, cs3) : un2(16, () => p4 ? us3(g4) : ro2(g4));
return He3(m4), st2(g4), b4;
}
function Xn2(o) {
if (!J3(21))
return lr2();
let p4 = fs3(o, true);
return J3(22), p4;
}
function ya2() {
Le3(28) || Qt3();
}
function ao2(o) {
let p4 = M3(), m4 = Ue3();
o === 181 && J3(105);
let g4 = pn2(), b4 = Xn2(4), N4 = In2(59, true);
ya2();
let Q3 = o === 180 ? y4.createCallSignature(g4, b4, N4) : y4.createConstructSignature(g4, b4, N4);
return Ce3(P4(Q3, p4), m4);
}
function Br3() {
return u() === 23 && H3(ru2);
}
function ru2() {
if (B3(), u() === 26 || u() === 24)
return true;
if (Yr3(u())) {
if (B3(), ve3())
return true;
} else if (ve3())
B3();
else
return false;
return u() === 59 || u() === 28 ? true : u() !== 58 ? false : (B3(), u() === 59 || u() === 28 || u() === 24);
}
function ds3(o, p4, m4) {
let g4 = Rr3(16, () => us3(false), 23, 24), b4 = vr3();
ya2();
let N4 = y4.createIndexSignature(m4, g4, b4);
return Ce3(P4(N4, o), p4);
}
function so2(o, p4, m4) {
let g4 = jr3(), b4 = pt3(58), N4;
if (u() === 21 || u() === 30) {
let Q3 = pn2(), _e3 = Xn2(4), ee2 = In2(59, true);
N4 = y4.createMethodSignature(m4, g4, b4, Q3, _e3, ee2);
} else {
let Q3 = vr3();
N4 = y4.createPropertySignature(m4, g4, b4, Q3), u() === 64 && (N4.initializer = xr3());
}
return ya2(), Ce3(P4(N4, o), p4);
}
function _o2() {
if (u() === 21 || u() === 30 || u() === 139 || u() === 153)
return true;
let o = false;
for (;Yr3(u()); )
o = true, B3();
return u() === 23 ? true : (br3() && (o = true, B3()), o ? u() === 21 || u() === 30 || u() === 58 || u() === 59 || u() === 28 || _r3() : false);
}
function Ni3() {
if (u() === 21 || u() === 30)
return ao2(180);
if (u() === 105 && H3(oo2))
return ao2(181);
let o = M3(), p4 = Ue3(), m4 = On2(false);
return ti3(139) ? _i3(o, p4, m4, 178, 4) : ti3(153) ? _i3(o, p4, m4, 179, 4) : Br3() ? ds3(o, p4, m4) : so2(o, p4, m4);
}
function oo2() {
return B3(), u() === 21 || u() === 30;
}
function co2() {
return B3() === 25;
}
function lo2() {
switch (B3()) {
case 21:
case 30:
case 25:
return true;
}
return false;
}
function uo2() {
let o = M3();
return P4(y4.createTypeLiteralNode(po2()), o);
}
function po2() {
let o;
return J3(19) ? (o = bn2(4, Ni3), J3(20)) : o = lr2(), o;
}
function fo2() {
return B3(), u() === 40 || u() === 41 ? B3() === 148 : (u() === 148 && B3(), u() === 23 && Ci3() && B3() === 103);
}
function iu2() {
let o = M3(), p4 = jt3();
J3(103);
let m4 = _t3();
return P4(y4.createTypeParameterDeclaration(undefined, p4, m4, undefined), o);
}
function mo2() {
let o = M3();
J3(19);
let p4;
(u() === 148 || u() === 40 || u() === 41) && (p4 = Wt3(), p4.kind !== 148 && J3(148)), J3(23);
let m4 = iu2(), g4 = Le3(130) ? _t3() : undefined;
J3(24);
let b4;
(u() === 58 || u() === 40 || u() === 41) && (b4 = Wt3(), b4.kind !== 58 && J3(58));
let N4 = vr3();
Qt3();
let Q3 = bn2(4, Ni3);
return J3(20), P4(y4.createMappedTypeNode(p4, m4, g4, b4, N4, Q3), o);
}
function ho2() {
let o = M3();
if (Le3(26))
return P4(y4.createRestTypeNode(_t3()), o);
let p4 = _t3();
if (th(p4) && p4.pos === p4.type.pos) {
let m4 = y4.createOptionalTypeNode(p4.type);
return dn2(m4, p4), m4.flags = p4.flags, m4;
}
return p4;
}
function ms3() {
return B3() === 59 || u() === 58 && B3() === 59;
}
function au2() {
return u() === 26 ? St3(B3()) && ms3() : St3(u()) && ms3();
}
function yo2() {
if (H3(au2)) {
let o = M3(), p4 = Ue3(), m4 = pt3(26), g4 = jt3(), b4 = pt3(58);
J3(59);
let N4 = ho2(), Q3 = y4.createNamedTupleMember(m4, g4, b4, N4);
return Ce3(P4(Q3, o), p4);
}
return ho2();
}
function su2() {
let o = M3();
return P4(y4.createTupleTypeNode(Rr3(21, yo2, 23, 24)), o);
}
function go2() {
let o = M3();
J3(21);
let p4 = _t3();
return J3(22), P4(y4.createParenthesizedType(p4), o);
}
function _u2() {
let o;
if (u() === 128) {
let p4 = M3();
B3();
let m4 = P4(he3(128), p4);
o = At3([m4], p4);
}
return o;
}
function hs3() {
let o = M3(), p4 = Ue3(), m4 = _u2(), g4 = Le3(105);
q3.assert(!m4 || g4, "Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");
let b4 = pn2(), N4 = Xn2(4), Q3 = In2(39, false), _e3 = g4 ? y4.createConstructorTypeNode(m4, b4, N4, Q3) : y4.createFunctionTypeNode(b4, N4, Q3);
return Ce3(P4(_e3, o), p4);
}
function bo2() {
let o = Wt3();
return u() === 25 ? undefined : o;
}
function ys3(o) {
let p4 = M3();
o && B3();
let m4 = u() === 112 || u() === 97 || u() === 106 ? Wt3() : ri3(u());
return o && (m4 = P4(y4.createPrefixUnaryExpression(41, m4), p4)), P4(y4.createLiteralTypeNode(m4), p4);
}
function ou2() {
return B3(), u() === 102;
}
function gs3() {
ht3 |= 4194304;
let o = M3(), p4 = Le3(114);
J3(102), J3(21);
let m4 = _t3(), g4;
if (Le3(28)) {
let Q3 = t.getTokenStart();
J3(19);
let _e3 = u();
if (_e3 === 118 || _e3 === 132 ? B3() : Ee3(A2._0_expected, nt3(118)), J3(59), g4 = Ys3(_e3, true), Le3(28), !J3(20)) {
let ee2 = Ba2(at3);
ee2 && ee2.code === A2._0_expected.code && sl2(ee2, Oa2(Mt3, $e3, Q3, 1, A2.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}"));
}
}
J3(22);
let b4 = Le3(25) ? ii3() : undefined, N4 = $_();
return P4(y4.createImportTypeNode(m4, g4, b4, N4, p4), o);
}
function vo2() {
return B3(), u() === 9 || u() === 10;
}
function bs3() {
switch (u()) {
case 133:
case 159:
case 154:
case 150:
case 163:
case 155:
case 136:
case 157:
case 146:
case 151:
return le3(bo2) || ma3();
case 67:
t.reScanAsteriskEqualsToken();
case 42:
return tu2();
case 61:
t.reScanQuestionToken();
case 58:
return nu2();
case 100:
return K_();
case 54:
return Q_();
case 15:
case 11:
case 9:
case 10:
case 112:
case 97:
case 106:
return ys3();
case 41:
return H3(vo2) ? ys3(true) : ma3();
case 116:
return Wt3();
case 110: {
let o = os3();
return u() === 142 && !t.hasPrecedingLineBreak() ? eu2(o) : o;
}
case 114:
return H3(ou2) ? gs3() : Z_();
case 19:
return H3(fo2) ? mo2() : uo2();
case 23:
return su2();
case 21:
return go2();
case 102:
return gs3();
case 131:
return H3(Ms3) ? Po2() : ma3();
case 16:
return W_();
default:
return ma3();
}
}
function ai3(o) {
switch (u()) {
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 true;
case 100:
return !o;
case 41:
return !o && H3(vo2);
case 21:
return !o && H3(To2);
default:
return ve3();
}
}
function To2() {
return B3(), u() === 22 || ha(false) || ai3();
}
function xo2() {
let o = M3(), p4 = bs3();
for (;!t.hasPrecedingLineBreak(); )
switch (u()) {
case 54:
B3(), p4 = P4(y4.createJSDocNonNullableType(p4, true), o);
break;
case 58:
if (H3(Di3))
return p4;
B3(), p4 = P4(y4.createJSDocNullableType(p4, true), o);
break;
case 23:
if (J3(23), ai3()) {
let m4 = _t3();
J3(24), p4 = P4(y4.createIndexedAccessTypeNode(p4, m4), o);
} else
J3(24), p4 = P4(y4.createArrayTypeNode(p4), o);
break;
default:
return p4;
}
return p4;
}
function So2(o) {
let p4 = M3();
return J3(o), P4(y4.createTypeOperatorNode(o, ko2()), p4);
}
function cu2() {
if (Le3(96)) {
let o = Nn(_t3);
if (Ve3() || u() !== 58)
return o;
}
}
function wo2() {
let o = M3(), p4 = gt3(), m4 = le3(cu2), g4 = y4.createTypeParameterDeclaration(undefined, p4, m4);
return P4(g4, o);
}
function lu2() {
let o = M3();
return J3(140), P4(y4.createInferTypeNode(wo2()), o);
}
function ko2() {
let o = u();
switch (o) {
case 143:
case 158:
case 148:
return So2(o);
case 140:
return lu2();
}
return gr3(xo2);
}
function ga(o) {
if (Ts3()) {
let p4 = hs3(), m4;
return Pf(p4) ? m4 = o ? A2.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type : A2.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type : m4 = o ? A2.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type : A2.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type, on2(p4, m4), p4;
}
}
function Eo2(o, p4, m4) {
let g4 = M3(), b4 = o === 52, N4 = Le3(o), Q3 = N4 && ga(b4) || p4();
if (u() === o || N4) {
let _e3 = [Q3];
for (;Le3(o); )
_e3.push(ga(b4) || p4());
Q3 = P4(m4(At3(_e3, g4)), g4);
}
return Q3;
}
function vs3() {
return Eo2(51, ko2, y4.createIntersectionTypeNode);
}
function uu2() {
return Eo2(52, vs3, y4.createUnionTypeNode);
}
function Ao2() {
return B3(), u() === 105;
}
function Ts3() {
return u() === 30 || u() === 21 && H3(Co2) ? true : u() === 105 || u() === 128 && H3(Ao2);
}
function pu2() {
if (Yr3(u()) && On2(false), ve3() || u() === 110)
return B3(), true;
if (u() === 23 || u() === 19) {
let o = at3.length;
return si3(), o === at3.length;
}
return false;
}
function Co2() {
return B3(), !!(u() === 22 || u() === 26 || pu2() && (u() === 59 || u() === 28 || u() === 58 || u() === 64 || u() === 22 && (B3(), u() === 39)));
}
function ba2() {
let o = M3(), p4 = ve3() && le3(Do2), m4 = _t3();
return p4 ? P4(y4.createTypePredicateNode(undefined, p4, m4), o) : m4;
}
function Do2() {
let o = gt3();
if (u() === 142 && !t.hasPrecedingLineBreak())
return B3(), o;
}
function Po2() {
let o = M3(), p4 = Yn2(131), m4 = u() === 110 ? os3() : gt3(), g4 = Le3(142) ? _t3() : undefined;
return P4(y4.createTypePredicateNode(p4, m4, g4), o);
}
function _t3() {
if (tt3 & 81920)
return Ct3(81920, _t3);
if (Ts3())
return hs3();
let o = M3(), p4 = uu2();
if (!Ve3() && !t.hasPrecedingLineBreak() && Le3(96)) {
let m4 = Nn(_t3);
J3(58);
let g4 = gr3(_t3);
J3(59);
let b4 = gr3(_t3);
return P4(y4.createConditionalTypeNode(p4, m4, g4, b4), o);
}
return p4;
}
function vr3() {
return Le3(59) ? _t3() : undefined;
}
function xs3() {
switch (u()) {
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 true;
case 102:
return H3(lo2);
default:
return ve3();
}
}
function Tr3() {
if (xs3())
return true;
switch (u()) {
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 true;
default:
return Fo2() ? true : ve3();
}
}
function No2() {
return u() !== 19 && u() !== 100 && u() !== 86 && u() !== 60 && Tr3();
}
function kt3() {
let o = Ze3();
o && Qe3(false);
let p4 = M3(), m4 = zt3(true), g4;
for (;g4 = pt3(28); )
m4 = ks3(m4, g4, zt3(true), p4);
return o && Qe3(true), m4;
}
function xr3() {
return Le3(64) ? zt3(true) : undefined;
}
function zt3(o) {
if (Io2())
return Oo2();
let p4 = du2(o) || Ro2(o);
if (p4)
return p4;
let m4 = M3(), g4 = Ue3(), b4 = Ii3(0);
return b4.kind === 80 && u() === 39 ? Mo2(m4, b4, o, g4, undefined) : Fa2(b4) && b1(ze3()) ? ks3(b4, Wt3(), zt3(o), m4) : mu2(b4, m4, o);
}
function Io2() {
return u() === 127 ? we3() ? true : H3(Ls3) : false;
}
function fu2() {
return B3(), !t.hasPrecedingLineBreak() && ve3();
}
function Oo2() {
let o = M3();
return B3(), !t.hasPrecedingLineBreak() && (u() === 42 || Tr3()) ? P4(y4.createYieldExpression(pt3(42), zt3(true)), o) : P4(y4.createYieldExpression(undefined, undefined), o);
}
function Mo2(o, p4, m4, g4, b4) {
q3.assert(u() === 39, "parseSimpleArrowFunctionExpression should only have been called if we had a =>");
let N4 = y4.createParameterDeclaration(undefined, undefined, p4, undefined, undefined, undefined);
P4(N4, p4.pos);
let Q3 = At3([N4], N4.pos, N4.end), _e3 = Yn2(39), ee2 = Ss3(!!b4, m4), te3 = y4.createArrowFunction(b4, undefined, Q3, undefined, _e3, ee2);
return Ce3(P4(te3, o), g4);
}
function du2(o) {
let p4 = Lo2();
if (p4 !== 0)
return p4 === 1 ? Bo2(true, true) : le3(() => jo2(o));
}
function Lo2() {
return u() === 21 || u() === 30 || u() === 134 ? H3(Jo2) : u() === 39 ? 1 : 0;
}
function Jo2() {
if (u() === 134 && (B3(), t.hasPrecedingLineBreak() || u() !== 21 && u() !== 30))
return 0;
let o = u(), p4 = B3();
if (o === 21) {
if (p4 === 22)
switch (B3()) {
case 39:
case 59:
case 19:
return 1;
default:
return 0;
}
if (p4 === 23 || p4 === 19)
return 2;
if (p4 === 26)
return 1;
if (Yr3(p4) && p4 !== 134 && H3(Ci3))
return B3() === 130 ? 0 : 1;
if (!ve3() && p4 !== 110)
return 0;
switch (B3()) {
case 59:
return 1;
case 58:
return B3(), u() === 59 || u() === 28 || u() === 64 || u() === 22 ? 1 : 0;
case 28:
case 64:
case 22:
return 2;
}
return 0;
} else
return q3.assert(o === 30), !ve3() && u() !== 87 ? 0 : ot3 === 1 ? H3(() => {
Le3(87);
let g4 = B3();
if (g4 === 96)
switch (B3()) {
case 64:
case 32:
case 44:
return false;
default:
return true;
}
else if (g4 === 28 || g4 === 64)
return true;
return false;
}) ? 1 : 0 : 2;
}
function jo2(o) {
let p4 = t.getTokenStart();
if (_n2?.has(p4))
return;
let m4 = Bo2(false, o);
return m4 || (_n2 || (_n2 = new Set)).add(p4), m4;
}
function Ro2(o) {
if (u() === 134 && H3(Uo2) === 1) {
let p4 = M3(), m4 = Ue3(), g4 = Uc2(), b4 = Ii3(0);
return Mo2(p4, b4, o, m4, g4);
}
}
function Uo2() {
if (u() === 134) {
if (B3(), t.hasPrecedingLineBreak() || u() === 39)
return 0;
let o = Ii3(0);
if (!t.hasPrecedingLineBreak() && o.kind === 80 && u() === 39)
return 1;
}
return 0;
}
function Bo2(o, p4) {
let m4 = M3(), g4 = Ue3(), b4 = Uc2(), N4 = Zt3(b4, cl2) ? 2 : 0, Q3 = pn2(), _e3;
if (J3(21)) {
if (o)
_e3 = fs3(N4, o);
else {
let ur3 = fs3(N4, o);
if (!ur3)
return;
_e3 = ur3;
}
if (!J3(22) && !o)
return;
} else {
if (!o)
return;
_e3 = lr2();
}
let ee2 = u() === 59, te3 = In2(59, false);
if (te3 && !o && _s3(te3))
return;
let ce3 = te3;
for (;ce3?.kind === 197; )
ce3 = ce3.type;
let je3 = ce3 && nh(ce3);
if (!o && u() !== 39 && (je3 || u() !== 19))
return;
let Je3 = u(), De3 = Yn2(39), Ht3 = Je3 === 39 || Je3 === 19 ? Ss3(Zt3(b4, cl2), p4) : gt3();
if (!p4 && ee2 && u() !== 59)
return;
let Nt3 = y4.createArrowFunction(b4, Q3, _e3, te3, De3, Ht3);
return Ce3(P4(Nt3, m4), g4);
}
function Ss3(o, p4) {
if (u() === 19)
return wa2(o ? 2 : 0);
if (u() !== 27 && u() !== 100 && u() !== 86 && xc2() && !No2())
return wa2(16 | (o ? 2 : 0));
let m4 = we3();
He3(false);
let g4 = qt3;
qt3 = false;
let b4 = o ? U3(() => zt3(p4)) : K3(() => zt3(p4));
return qt3 = g4, He3(m4), b4;
}
function mu2(o, p4, m4) {
let g4 = pt3(58);
if (!g4)
return o;
let b4;
return P4(y4.createConditionalExpression(o, g4, Ct3(a4, () => zt3(false)), b4 = Yn2(59), Rp2(b4) ? zt3(m4) : Gt3(80, false, A2._0_expected, nt3(59))), p4);
}
function Ii3(o) {
let p4 = M3(), m4 = Xo2();
return ws3(o, m4, p4);
}
function qo2(o) {
return o === 103 || o === 165;
}
function ws3(o, p4, m4) {
for (;; ) {
ze3();
let g4 = Sp2(u());
if (!(u() === 43 ? g4 >= o : g4 > o) || u() === 103 && me3())
break;
if (u() === 130 || u() === 152) {
if (t.hasPrecedingLineBreak())
break;
{
let N4 = u();
B3(), p4 = N4 === 152 ? zo2(p4, _t3()) : Vo2(p4, _t3());
}
} else
p4 = ks3(p4, Wt3(), Ii3(g4), m4);
}
return p4;
}
function Fo2() {
return me3() && u() === 103 ? false : Sp2(u()) > 0;
}
function zo2(o, p4) {
return P4(y4.createSatisfiesExpression(o, p4), o.pos);
}
function ks3(o, p4, m4, g4) {
return P4(y4.createBinaryExpression(o, p4, m4), g4);
}
function Vo2(o, p4) {
return P4(y4.createAsExpression(o, p4), o.pos);
}
function Wo2() {
let o = M3();
return P4(y4.createPrefixUnaryExpression(u(), Me3(Sr3)), o);
}
function Go2() {
let o = M3();
return P4(y4.createDeleteExpression(Me3(Sr3)), o);
}
function hu2() {
let o = M3();
return P4(y4.createTypeOfExpression(Me3(Sr3)), o);
}
function Yo2() {
let o = M3();
return P4(y4.createVoidExpression(Me3(Sr3)), o);
}
function yu2() {
return u() === 135 ? Ye3() ? true : H3(Ls3) : false;
}
function Ho2() {
let o = M3();
return P4(y4.createAwaitExpression(Me3(Sr3)), o);
}
function Xo2() {
if (gu2()) {
let m4 = M3(), g4 = va2();
return u() === 43 ? ws3(Sp2(u()), g4, m4) : g4;
}
let o = u(), p4 = Sr3();
if (u() === 43) {
let m4 = Cr3($e3, p4.pos), { end: g4 } = p4;
p4.kind === 217 ? rt3(m4, g4, A2.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses) : (q3.assert(xp2(o)), rt3(m4, g4, A2.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, nt3(o)));
}
return p4;
}
function Sr3() {
switch (u()) {
case 40:
case 41:
case 55:
case 54:
return Wo2();
case 91:
return Go2();
case 114:
return hu2();
case 116:
return Yo2();
case 30:
return ot3 === 1 ? Mi3(true, undefined, undefined, true) : ec2();
case 135:
if (yu2())
return Ho2();
default:
return va2();
}
}
function gu2() {
switch (u()) {
case 40:
case 41:
case 55:
case 54:
case 91:
case 114:
case 116:
case 135:
return false;
case 30:
if (ot3 !== 1)
return false;
default:
return true;
}
}
function va2() {
if (u() === 46 || u() === 47) {
let p4 = M3();
return P4(y4.createPrefixUnaryExpression(u(), Me3(Oi3)), p4);
} else if (ot3 === 1 && u() === 30 && H3(O_))
return Mi3(true);
let o = Oi3();
if (q3.assert(Fa2(o)), (u() === 46 || u() === 47) && !t.hasPrecedingLineBreak()) {
let p4 = u();
return B3(), P4(y4.createPostfixUnaryExpression(o, p4), o.pos);
}
return o;
}
function Oi3() {
let o = M3(), p4;
return u() === 102 ? H3(oo2) ? (ht3 |= 4194304, p4 = Wt3()) : H3(co2) ? (B3(), B3(), p4 = P4(y4.createMetaProperty(102, jt3()), o), p4.name.escapedText === "defer" ? (u() === 21 || u() === 30) && (ht3 |= 4194304) : ht3 |= 8388608) : p4 = Ta2() : p4 = u() === 108 ? $o2() : Ta2(), Ps3(o, p4);
}
function Ta2() {
let o = M3(), p4 = Ns3();
return rn2(o, p4, true);
}
function $o2() {
let o = M3(), p4 = Wt3();
if (u() === 30) {
let m4 = M3(), g4 = le3(Sa);
g4 !== undefined && (rt3(m4, M3(), A2.super_may_not_use_type_arguments), vn2() || (p4 = y4.createExpressionWithTypeArguments(p4, g4)));
}
return u() === 21 || u() === 25 || u() === 23 ? p4 : (Yn2(25, A2.super_must_be_followed_by_an_argument_list_or_member_access), P4(ae(p4, ni3(true, true, true)), o));
}
function Mi3(o, p4, m4, g4 = false) {
let b4 = M3(), N4 = Tu2(o), Q3;
if (N4.kind === 287) {
let _e3 = xa(N4), ee2, te3 = _e3[_e3.length - 1];
if (te3?.kind === 285 && !pi3(te3.openingElement.tagName, te3.closingElement.tagName) && pi3(N4.tagName, te3.closingElement.tagName)) {
let ce3 = te3.children.end, je3 = P4(y4.createJsxElement(te3.openingElement, te3.children, P4(y4.createJsxClosingElement(P4(ue3(""), ce3, ce3)), ce3, ce3)), te3.openingElement.pos, ce3);
_e3 = At3([..._e3.slice(0, _e3.length - 1), je3], _e3.pos, ce3), ee2 = te3.closingElement;
} else
ee2 = Zo2(N4, o), pi3(N4.tagName, ee2.tagName) || (m4 && Fp2(m4) && pi3(ee2.tagName, m4.tagName) ? on2(N4.tagName, A2.JSX_element_0_has_no_corresponding_closing_tag, r_($e3, N4.tagName)) : on2(ee2.tagName, A2.Expected_corresponding_JSX_closing_tag_for_0, r_($e3, N4.tagName)));
Q3 = P4(y4.createJsxElement(N4, _e3, ee2), b4);
} else
N4.kind === 290 ? Q3 = P4(y4.createJsxFragment(N4, xa(N4), ku2(o)), b4) : (q3.assert(N4.kind === 286), Q3 = N4);
if (!g4 && o && u() === 30) {
let _e3 = typeof p4 > "u" ? Q3.pos : p4, ee2 = le3(() => Mi3(true, _e3));
if (ee2) {
let te3 = Gt3(28, false);
return qd(te3, ee2.pos, 0), rt3(Cr3($e3, _e3), ee2.end, A2.JSX_expressions_must_have_one_parent_element), P4(y4.createBinaryExpression(Q3, te3, ee2), b4);
}
}
return Q3;
}
function Es3() {
let o = M3(), p4 = y4.createJsxText(t.getTokenValue(), ct3 === 13);
return ct3 = t.scanJsxToken(), P4(p4, o);
}
function bu2(o, p4) {
switch (p4) {
case 1:
if (n6(o))
on2(o, A2.JSX_fragment_has_no_corresponding_closing_tag);
else {
let m4 = o.tagName, g4 = Math.min(Cr3($e3, m4.pos), m4.end);
rt3(g4, m4.end, A2.JSX_element_0_has_no_corresponding_closing_tag, r_($e3, o.tagName));
}
return;
case 31:
case 7:
return;
case 12:
case 13:
return Es3();
case 19:
return Qo2(false);
case 30:
return Mi3(false, undefined, o);
default:
return q3.assertNever(p4);
}
}
function xa(o) {
let p4 = [], m4 = M3(), g4 = yt3;
for (yt3 |= 16384;; ) {
let b4 = bu2(o, ct3 = t.reScanJsxToken());
if (!b4 || (p4.push(b4), Fp2(o) && b4?.kind === 285 && !pi3(b4.openingElement.tagName, b4.closingElement.tagName) && pi3(o.tagName, b4.closingElement.tagName)))
break;
}
return yt3 = g4, At3(p4, m4);
}
function vu2() {
let o = M3();
return P4(y4.createJsxAttributes(bn2(13, Ko2)), o);
}
function Tu2(o) {
let p4 = M3();
if (J3(30), u() === 32)
return Gn2(), P4(y4.createJsxOpeningFragment(), p4);
let m4 = As3(), g4 = (tt3 & 524288) === 0 ? Ca2() : undefined, b4 = vu2(), N4;
return u() === 32 ? (Gn2(), N4 = y4.createJsxOpeningElement(m4, g4, b4)) : (J3(44), J3(32, undefined, false) && (o ? B3() : Gn2()), N4 = y4.createJsxSelfClosingElement(m4, g4, b4)), P4(N4, p4);
}
function As3() {
let o = M3(), p4 = xu2();
if (Q1(p4))
return p4;
let m4 = p4;
for (;Le3(25); )
m4 = P4(ae(m4, ni3(true, false, false)), o);
return m4;
}
function xu2() {
let o = M3();
Ft3();
let p4 = u() === 110, m4 = ei3();
return Le3(59) ? (Ft3(), P4(y4.createJsxNamespacedName(m4, ei3()), o)) : p4 ? P4(y4.createToken(110), o) : m4;
}
function Qo2(o) {
let p4 = M3();
if (!J3(19))
return;
let m4, g4;
return u() !== 20 && (o || (m4 = pt3(26)), g4 = kt3()), o ? J3(20) : J3(20, undefined, false) && Gn2(), P4(y4.createJsxExpression(m4, g4), p4);
}
function Ko2() {
if (u() === 19)
return wu2();
let o = M3();
return P4(y4.createJsxAttribute(Su2(), Cs3()), o);
}
function Cs3() {
if (u() === 64) {
if (ki3() === 11)
return Hn2();
if (u() === 19)
return Qo2(true);
if (u() === 30)
return Mi3(true);
Ee3(A2.or_JSX_element_expected);
}
}
function Su2() {
let o = M3();
Ft3();
let p4 = ei3();
return Le3(59) ? (Ft3(), P4(y4.createJsxNamespacedName(p4, ei3()), o)) : p4;
}
function wu2() {
let o = M3();
J3(19), J3(26);
let p4 = kt3();
return J3(20), P4(y4.createJsxSpreadAttribute(p4), o);
}
function Zo2(o, p4) {
let m4 = M3();
J3(31);
let g4 = As3();
return J3(32, undefined, false) && (p4 || !pi3(o.tagName, g4) ? B3() : Gn2()), P4(y4.createJsxClosingElement(g4), m4);
}
function ku2(o) {
let p4 = M3();
return J3(31), J3(32, A2.Expected_corresponding_closing_tag_for_JSX_fragment, false) && (o ? B3() : Gn2()), P4(y4.createJsxJsxClosingFragment(), p4);
}
function ec2() {
q3.assert(ot3 !== 1, "Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");
let o = M3();
J3(30);
let p4 = _t3();
J3(32);
let m4 = Sr3();
return P4(y4.createTypeAssertion(p4, m4), o);
}
function Eu2() {
return B3(), St3(u()) || u() === 23 || vn2();
}
function tc2() {
return u() === 29 && H3(Eu2);
}
function Ds3(o) {
if (o.flags & 64)
return true;
if (fl2(o)) {
let p4 = o.expression;
for (;fl2(p4) && !(p4.flags & 64); )
p4 = p4.expression;
if (p4.flags & 64) {
for (;fl2(o); )
o.flags |= 64, o = o.expression;
return true;
}
}
return false;
}
function nc2(o, p4, m4) {
let g4 = ni3(true, true, true), b4 = m4 || Ds3(p4), N4 = b4 ? Oe3(p4, m4, g4) : ae(p4, g4);
if (b4 && gi3(N4.name) && on2(N4.name, A2.An_optional_chain_cannot_contain_private_identifiers), G1(p4) && p4.typeArguments) {
let Q3 = p4.typeArguments.pos - 1, _e3 = Cr3($e3, p4.typeArguments.end) + 1;
rt3(Q3, _e3, A2.An_instantiation_expression_cannot_be_followed_by_a_property_access);
}
return P4(N4, o);
}
function Au2(o, p4, m4) {
let g4;
if (u() === 24)
g4 = Gt3(80, true, A2.An_element_access_expression_should_take_an_argument);
else {
let N4 = lt3(kt3);
Al2(N4) && (N4.text = Jr3(N4.text)), g4 = N4;
}
J3(24);
let b4 = m4 || Ds3(p4) ? oe3(p4, m4, g4) : V3(p4, g4);
return P4(b4, o);
}
function rn2(o, p4, m4) {
for (;; ) {
let g4, b4 = false;
if (m4 && tc2() ? (g4 = Yn2(29), b4 = St3(u())) : b4 = Le3(25), b4) {
p4 = nc2(o, p4, g4);
continue;
}
if ((g4 || !Ze3()) && Le3(23)) {
p4 = Au2(o, p4, g4);
continue;
}
if (vn2()) {
p4 = !g4 && p4.kind === 234 ? qr3(o, p4.expression, g4, p4.typeArguments) : qr3(o, p4, g4, undefined);
continue;
}
if (!g4) {
if (u() === 54 && !t.hasPrecedingLineBreak()) {
B3(), p4 = P4(y4.createNonNullExpression(p4), o);
continue;
}
let N4 = le3(Sa);
if (N4) {
p4 = P4(y4.createExpressionWithTypeArguments(p4, N4), o);
continue;
}
}
return p4;
}
}
function vn2() {
return u() === 15 || u() === 16;
}
function qr3(o, p4, m4, g4) {
let b4 = y4.createTaggedTemplateExpression(p4, g4, u() === 15 ? (Dt3(true), Hn2()) : da3(true));
return (m4 || p4.flags & 64) && (b4.flags |= 64), b4.questionDotToken = m4, P4(b4, o);
}
function Ps3(o, p4) {
for (;; ) {
p4 = rn2(o, p4, true);
let m4, g4 = pt3(29);
if (g4 && (m4 = le3(Sa), vn2())) {
p4 = qr3(o, p4, g4, m4);
continue;
}
if (m4 || u() === 21) {
!g4 && p4.kind === 234 && (m4 = p4.typeArguments, p4 = p4.expression);
let b4 = rc2(), N4 = g4 || Ds3(p4) ? ft3(p4, g4, m4, b4) : Y3(p4, m4, b4);
p4 = P4(N4, o);
continue;
}
if (g4) {
let b4 = Gt3(80, false, A2.Identifier_expected);
p4 = P4(Oe3(p4, g4, b4), o);
}
break;
}
return p4;
}
function rc2() {
J3(21);
let o = un2(11, sc2);
return J3(22), o;
}
function Sa() {
if ((tt3 & 524288) !== 0 || wt3() !== 30)
return;
B3();
let o = un2(20, _t3);
if (ze3() === 32)
return B3(), o && Cu2() ? o : undefined;
}
function Cu2() {
switch (u()) {
case 21:
case 15:
case 16:
return true;
case 30:
case 32:
case 40:
case 41:
return false;
}
return t.hasPrecedingLineBreak() || Fo2() || !Tr3();
}
function Ns3() {
switch (u()) {
case 15:
t.getTokenFlags() & 26656 && Dt3(false);
case 9:
case 10:
case 11:
return Hn2();
case 110:
case 108:
case 106:
case 112:
case 97:
return Wt3();
case 21:
return Du2();
case 23:
return _c2();
case 19:
return Is3();
case 134:
if (!H3(Tc2))
break;
return Os3();
case 60:
return Xu2();
case 86:
return $u2();
case 100:
return Os3();
case 105:
return cc2();
case 44:
case 69:
if (Xe3() === 14)
return Hn2();
break;
case 16:
return da3(false);
case 81:
return ca2();
}
return gt3(A2.Expression_expected);
}
function Du2() {
let o = M3(), p4 = Ue3();
J3(21);
let m4 = lt3(kt3);
return J3(22), Ce3(P4(mn2(m4), o), p4);
}
function ic2() {
let o = M3();
J3(26);
let p4 = zt3(true);
return P4(y4.createSpreadElement(p4), o);
}
function ac2() {
return u() === 26 ? ic2() : u() === 28 ? P4(y4.createOmittedExpression(), M3()) : zt3(true);
}
function sc2() {
return Ct3(a4, ac2);
}
function _c2() {
let o = M3(), p4 = t.getTokenStart(), m4 = J3(23), g4 = t.hasPrecedingLineBreak(), b4 = un2(15, ac2);
return Lr3(23, 24, m4, p4), P4(de3(b4, g4), o);
}
function oc2() {
let o = M3(), p4 = Ue3();
if (pt3(26)) {
let ce3 = zt3(true);
return Ce3(P4(y4.createSpreadAssignment(ce3), o), p4);
}
let m4 = On2(true);
if (ti3(139))
return _i3(o, p4, m4, 178, 0);
if (ti3(153))
return _i3(o, p4, m4, 179, 0);
let g4 = pt3(42), b4 = ve3(), N4 = jr3(), Q3 = pt3(58), _e3 = pt3(54);
if (g4 || u() === 21 || u() === 30)
return Lc2(o, p4, m4, g4, N4, Q3, _e3);
let ee2;
if (b4 && u() !== 59) {
let ce3 = pt3(64), je3 = ce3 ? lt3(() => zt3(true)) : undefined;
ee2 = y4.createShorthandPropertyAssignment(N4, je3), ee2.equalsToken = ce3;
} else {
J3(59);
let ce3 = lt3(() => zt3(true));
ee2 = y4.createPropertyAssignment(N4, ce3);
}
return ee2.modifiers = m4, ee2.questionToken = Q3, ee2.exclamationToken = _e3, Ce3(P4(ee2, o), p4);
}
function Is3() {
let o = M3(), p4 = t.getTokenStart(), m4 = J3(19), g4 = t.hasPrecedingLineBreak(), b4 = un2(12, oc2, true);
return Lr3(19, 20, m4, p4), P4(O3(b4, g4), o);
}
function Os3() {
let o = Ze3();
Qe3(false);
let p4 = M3(), m4 = Ue3(), g4 = On2(false);
J3(100);
let b4 = pt3(42), N4 = b4 ? 1 : 0, Q3 = Zt3(g4, cl2) ? 2 : 0, _e3 = N4 && Q3 ? Z3(Li3) : N4 ? Wn2(Li3) : Q3 ? U3(Li3) : Li3(), ee2 = pn2(), te3 = Xn2(N4 | Q3), ce3 = In2(59, false), je3 = wa2(N4 | Q3);
Qe3(o);
let Je3 = y4.createFunctionExpression(g4, b4, _e3, ee2, te3, ce3, je3);
return Ce3(P4(Je3, p4), m4);
}
function Li3() {
return qe3() ? Ka2() : undefined;
}
function cc2() {
let o = M3();
if (J3(105), Le3(25)) {
let N4 = jt3();
return P4(y4.createMetaProperty(105, N4), o);
}
let p4 = M3(), m4 = rn2(p4, Ns3(), false), g4;
m4.kind === 234 && (g4 = m4.typeArguments, m4 = m4.expression), u() === 29 && Ee3(A2.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0, r_($e3, m4));
let b4 = u() === 21 ? rc2() : undefined;
return P4(nr3(m4, g4, b4), o);
}
function Fr3(o, p4) {
let m4 = M3(), g4 = Ue3(), b4 = t.getTokenStart(), N4 = J3(19, p4);
if (N4 || o) {
let Q3 = t.hasPrecedingLineBreak(), _e3 = bn2(1, Yt3);
Lr3(19, 20, N4, b4);
let ee2 = Ce3(P4(rr3(_e3, Q3), m4), g4);
return u() === 64 && (Ee3(A2.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), B3()), ee2;
} else {
let Q3 = lr2();
return Ce3(P4(rr3(Q3, undefined), m4), g4);
}
}
function wa2(o, p4) {
let m4 = we3();
He3(!!(o & 1));
let g4 = Ye3();
st2(!!(o & 2));
let b4 = qt3;
qt3 = false;
let N4 = Ze3();
N4 && Qe3(false);
let Q3 = Fr3(!!(o & 16), p4);
return N4 && Qe3(true), qt3 = b4, He3(m4), st2(g4), Q3;
}
function lc2() {
let o = M3(), p4 = Ue3();
return J3(27), Ce3(P4(y4.createEmptyStatement(), o), p4);
}
function Pu2() {
let o = M3(), p4 = Ue3();
J3(101);
let m4 = t.getTokenStart(), g4 = J3(21), b4 = lt3(kt3);
Lr3(21, 22, g4, m4);
let N4 = Yt3(), Q3 = Le3(93) ? Yt3() : undefined;
return Ce3(P4(We3(b4, N4, Q3), o), p4);
}
function uc2() {
let o = M3(), p4 = Ue3();
J3(92);
let m4 = Yt3();
J3(117);
let g4 = t.getTokenStart(), b4 = J3(21), N4 = lt3(kt3);
return Lr3(21, 22, b4, g4), Le3(27), Ce3(P4(y4.createDoStatement(m4, N4), o), p4);
}
function Nu2() {
let o = M3(), p4 = Ue3();
J3(117);
let m4 = t.getTokenStart(), g4 = J3(21), b4 = lt3(kt3);
Lr3(21, 22, g4, m4);
let N4 = Yt3();
return Ce3(P4(ir3(b4, N4), o), p4);
}
function pc2() {
let o = M3(), p4 = Ue3();
J3(99);
let m4 = pt3(135);
J3(21);
let g4;
u() !== 27 && (u() === 115 || u() === 121 || u() === 87 || u() === 160 && H3(wc2) || u() === 135 && H3(Js3) ? g4 = Ic2(true) : g4 = Mr3(kt3));
let b4;
if (m4 ? J3(165) : Le3(165)) {
let N4 = lt3(() => zt3(true));
J3(22), b4 = Ot3(m4, g4, N4, Yt3());
} else if (Le3(103)) {
let N4 = lt3(kt3);
J3(22), b4 = y4.createForInStatement(g4, N4, Yt3());
} else {
J3(27);
let N4 = u() !== 27 && u() !== 22 ? lt3(kt3) : undefined;
J3(27);
let Q3 = u() !== 22 ? lt3(kt3) : undefined;
J3(22), b4 = Ir2(g4, N4, Q3, Yt3());
}
return Ce3(P4(b4, o), p4);
}
function fc2(o) {
let p4 = M3(), m4 = Ue3();
J3(o === 253 ? 83 : 88);
let g4 = _r3() ? undefined : gt3();
Qt3();
let b4 = o === 253 ? y4.createBreakStatement(g4) : y4.createContinueStatement(g4);
return Ce3(P4(b4, p4), m4);
}
function dc2() {
let o = M3(), p4 = Ue3();
J3(107);
let m4 = _r3() ? undefined : lt3(kt3);
return Qt3(), Ce3(P4(y4.createReturnStatement(m4), o), p4);
}
function Iu2() {
let o = M3(), p4 = Ue3();
J3(118);
let m4 = t.getTokenStart(), g4 = J3(21), b4 = lt3(kt3);
Lr3(21, 22, g4, m4);
let N4 = Tt3(67108864, Yt3);
return Ce3(P4(y4.createWithStatement(b4, N4), o), p4);
}
function mc2() {
let o = M3(), p4 = Ue3();
J3(84);
let m4 = lt3(kt3);
J3(59);
let g4 = bn2(3, Yt3);
return Ce3(P4(y4.createCaseClause(m4, g4), o), p4);
}
function Ou2() {
let o = M3();
J3(90), J3(59);
let p4 = bn2(3, Yt3);
return P4(y4.createDefaultClause(p4), o);
}
function Mu2() {
return u() === 84 ? mc2() : Ou2();
}
function hc2() {
let o = M3();
J3(19);
let p4 = bn2(2, Mu2);
return J3(20), P4(y4.createCaseBlock(p4), o);
}
function Lu2() {
let o = M3(), p4 = Ue3();
J3(109), J3(21);
let m4 = lt3(kt3);
J3(22);
let g4 = hc2();
return Ce3(P4(y4.createSwitchStatement(m4, g4), o), p4);
}
function yc2() {
let o = M3(), p4 = Ue3();
J3(111);
let m4 = t.hasPrecedingLineBreak() ? undefined : lt3(kt3);
return m4 === undefined && (yn2++, m4 = P4(ue3(""), M3())), oa2() || xt3(m4), Ce3(P4(y4.createThrowStatement(m4), o), p4);
}
function Ju2() {
let o = M3(), p4 = Ue3();
J3(113);
let m4 = Fr3(false), g4 = u() === 85 ? gc2() : undefined, b4;
return (!g4 || u() === 98) && (J3(98, A2.catch_or_finally_expected), b4 = Fr3(false)), Ce3(P4(y4.createTryStatement(m4, g4, b4), o), p4);
}
function gc2() {
let o = M3();
J3(85);
let p4;
Le3(21) ? (p4 = Ea2(), J3(22)) : p4 = undefined;
let m4 = Fr3(false);
return P4(y4.createCatchClause(p4, m4), o);
}
function ju2() {
let o = M3(), p4 = Ue3();
return J3(89), Qt3(), Ce3(P4(y4.createDebuggerStatement(), o), p4);
}
function bc2() {
let o = M3(), p4 = Ue3(), m4, g4 = u() === 21, b4 = lt3(kt3);
return Ke3(b4) && Le3(59) ? m4 = y4.createLabeledStatement(b4, Yt3()) : (oa2() || xt3(b4), m4 = Dn2(b4), g4 && (p4 = false)), Ce3(P4(m4, o), p4);
}
function Ms3() {
return B3(), St3(u()) && !t.hasPrecedingLineBreak();
}
function vc2() {
return B3(), u() === 86 && !t.hasPrecedingLineBreak();
}
function Tc2() {
return B3(), u() === 100 && !t.hasPrecedingLineBreak();
}
function Ls3() {
return B3(), (St3(u()) || u() === 9 || u() === 10 || u() === 11) && !t.hasPrecedingLineBreak();
}
function Ru2() {
for (;; )
switch (u()) {
case 115:
case 121:
case 87:
case 100:
case 86:
case 94:
return true;
case 160:
return kc2();
case 135:
return js3();
case 120:
case 156:
case 166:
return fu2();
case 144:
case 145:
return Fu2();
case 128:
case 129:
case 134:
case 138:
case 123:
case 124:
case 125:
case 148:
let o = u();
if (B3(), t.hasPrecedingLineBreak())
return false;
if (o === 138 && u() === 156)
return true;
continue;
case 162:
return B3(), u() === 19 || u() === 80 || u() === 95;
case 102:
return B3(), u() === 166 || u() === 11 || u() === 42 || u() === 19 || St3(u());
case 95:
let p4 = B3();
if (p4 === 156 && (p4 = H3(B3)), p4 === 64 || p4 === 42 || p4 === 19 || p4 === 90 || p4 === 130 || p4 === 60)
return true;
continue;
case 126:
B3();
continue;
default:
return false;
}
}
function Ji3() {
return H3(Ru2);
}
function xc2() {
switch (u()) {
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 true;
case 102:
return Ji3() || H3(lo2);
case 87:
case 95:
return Ji3();
case 134:
case 138:
case 120:
case 144:
case 145:
case 156:
case 162:
case 166:
return true;
case 129:
case 125:
case 123:
case 124:
case 126:
case 148:
return Ji3() || !H3(Ms3);
default:
return Tr3();
}
}
function Sc2() {
return B3(), qe3() || u() === 19 || u() === 23;
}
function Uu2() {
return H3(Sc2);
}
function wc2() {
return ka2(true);
}
function Bu2() {
return B3(), u() === 64 || u() === 27 || u() === 59;
}
function ka2(o) {
return B3(), o && u() === 165 ? H3(Bu2) : (qe3() || u() === 19) && !t.hasPrecedingLineBreak();
}
function kc2() {
return H3(ka2);
}
function Js3(o) {
return B3() === 160 ? ka2(o) : false;
}
function js3() {
return H3(Js3);
}
function Yt3() {
switch (u()) {
case 27:
return lc2();
case 19:
return Fr3(false);
case 115:
return Ui3(M3(), Ue3(), undefined);
case 121:
if (Uu2())
return Ui3(M3(), Ue3(), undefined);
break;
case 135:
if (js3())
return Ui3(M3(), Ue3(), undefined);
break;
case 160:
if (kc2())
return Ui3(M3(), Ue3(), undefined);
break;
case 100:
return Us3(M3(), Ue3(), undefined);
case 86:
return Fs3(M3(), Ue3(), undefined);
case 101:
return Pu2();
case 92:
return uc2();
case 117:
return Nu2();
case 99:
return pc2();
case 88:
return fc2(252);
case 83:
return fc2(253);
case 107:
return dc2();
case 118:
return Iu2();
case 109:
return Lu2();
case 111:
return yc2();
case 113:
case 85:
case 98:
return Ju2();
case 89:
return ju2();
case 60:
return ji3();
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 (Ji3())
return ji3();
break;
}
return bc2();
}
function Ec2(o) {
return o.kind === 138;
}
function ji3() {
let o = M3(), p4 = Ue3(), m4 = On2(true);
if (Zt3(m4, Ec2)) {
let b4 = qu2(o);
if (b4)
return b4;
for (let N4 of m4)
N4.flags |= 33554432;
return Tt3(33554432, () => Ac2(o, p4, m4));
} else
return Ac2(o, p4, m4);
}
function qu2(o) {
return Tt3(33554432, () => {
let p4 = pa2(yt3, o);
if (p4)
return J_(p4);
});
}
function Ac2(o, p4, m4) {
switch (u()) {
case 115:
case 121:
case 87:
case 160:
case 135:
return Ui3(o, p4, m4);
case 100:
return Us3(o, p4, m4);
case 86:
return Fs3(o, p4, m4);
case 120:
return ep2(o, p4, m4);
case 156:
return tp2(o, p4, m4);
case 94:
return np2(o, p4, m4);
case 162:
case 144:
case 145:
return rp2(o, p4, m4);
case 102:
return Bi3(o, p4, m4);
case 95:
switch (B3(), u()) {
case 90:
case 64:
return Kc2(o, p4, m4);
case 130:
return sp2(o, p4, m4);
default:
return Qc2(o, p4, m4);
}
default:
if (m4) {
let g4 = Gt3(283, true, A2.Declaration_expected);
return Bp2(g4, o), g4.modifiers = m4, g4;
}
return;
}
}
function Cc2() {
return B3() === 11;
}
function Dc2() {
return B3(), u() === 161 || u() === 64;
}
function Fu2() {
return B3(), !t.hasPrecedingLineBreak() && (ve3() || u() === 11);
}
function Ri3(o, p4) {
if (u() !== 19) {
if (o & 4) {
ya2();
return;
}
if (_r3()) {
Qt3();
return;
}
}
return wa2(o, p4);
}
function zu2() {
let o = M3();
if (u() === 28)
return P4(y4.createOmittedExpression(), o);
let p4 = pt3(26), m4 = si3(), g4 = xr3();
return P4(y4.createBindingElement(p4, undefined, m4, g4), o);
}
function Pc2() {
let o = M3(), p4 = pt3(26), m4 = qe3(), g4 = jr3(), b4;
m4 && u() !== 59 ? (b4 = g4, g4 = undefined) : (J3(59), b4 = si3());
let N4 = xr3();
return P4(y4.createBindingElement(p4, g4, b4, N4), o);
}
function Vu2() {
let o = M3();
J3(19);
let p4 = lt3(() => un2(9, Pc2));
return J3(20), P4(y4.createObjectBindingPattern(p4), o);
}
function Nc2() {
let o = M3();
J3(23);
let p4 = lt3(() => un2(10, zu2));
return J3(24), P4(y4.createArrayBindingPattern(p4), o);
}
function Rs3() {
return u() === 19 || u() === 23 || u() === 81 || qe3();
}
function si3(o) {
return u() === 23 ? Nc2() : u() === 19 ? Vu2() : Ka2(o);
}
function Wu2() {
return Ea2(true);
}
function Ea2(o) {
let p4 = M3(), m4 = Ue3(), g4 = si3(A2.Private_identifiers_are_not_allowed_in_variable_declarations), b4;
o && g4.kind === 80 && u() === 54 && !t.hasPrecedingLineBreak() && (b4 = Wt3());
let N4 = vr3(), Q3 = qo2(u()) ? undefined : xr3(), _e3 = Bn2(g4, b4, N4, Q3);
return Ce3(P4(_e3, p4), m4);
}
function Ic2(o) {
let p4 = M3(), m4 = 0;
switch (u()) {
case 115:
break;
case 121:
m4 |= 1;
break;
case 87:
m4 |= 2;
break;
case 160:
m4 |= 4;
break;
case 135:
q3.assert(js3()), m4 |= 6, B3();
break;
default:
q3.fail();
}
B3();
let g4;
if (u() === 165 && H3(Oc2))
g4 = lr2();
else {
let b4 = me3();
Te3(o), g4 = un2(8, o ? Ea2 : Wu2), Te3(b4);
}
return P4(Pn2(g4, m4), p4);
}
function Oc2() {
return Ci3() && B3() === 22;
}
function Ui3(o, p4, m4) {
let g4 = Ic2(false);
Qt3();
let b4 = hn2(m4, g4);
return Ce3(P4(b4, o), p4);
}
function Us3(o, p4, m4) {
let g4 = Ye3(), b4 = Jn(m4);
J3(100);
let N4 = pt3(42), Q3 = b4 & 2048 ? Li3() : Ka2(), _e3 = N4 ? 1 : 0, ee2 = b4 & 1024 ? 2 : 0, te3 = pn2();
b4 & 32 && st2(true);
let ce3 = Xn2(_e3 | ee2), je3 = In2(59, false), Je3 = Ri3(_e3 | ee2, A2.or_expected);
st2(g4);
let De3 = y4.createFunctionDeclaration(m4, N4, Q3, te3, ce3, je3, Je3);
return Ce3(P4(De3, o), p4);
}
function Gu2() {
if (u() === 137)
return J3(137);
if (u() === 11 && H3(B3) === 21)
return le3(() => {
let o = Hn2();
return o.text === "constructor" ? o : undefined;
});
}
function Mc2(o, p4, m4) {
return le3(() => {
if (Gu2()) {
let g4 = pn2(), b4 = Xn2(0), N4 = In2(59, false), Q3 = Ri3(0, A2.or_expected), _e3 = y4.createConstructorDeclaration(m4, b4, Q3);
return _e3.typeParameters = g4, _e3.type = N4, Ce3(P4(_e3, o), p4);
}
});
}
function Lc2(o, p4, m4, g4, b4, N4, Q3, _e3) {
let ee2 = g4 ? 1 : 0, te3 = Zt3(m4, cl2) ? 2 : 0, ce3 = pn2(), je3 = Xn2(ee2 | te3), Je3 = In2(59, false), De3 = Ri3(ee2 | te3, _e3), Ht3 = y4.createMethodDeclaration(m4, g4, b4, N4, ce3, je3, Je3, De3);
return Ht3.exclamationToken = Q3, Ce3(P4(Ht3, o), p4);
}
function Aa2(o, p4, m4, g4, b4) {
let N4 = !b4 && !t.hasPrecedingLineBreak() ? pt3(54) : undefined, Q3 = vr3(), _e3 = Ct3(90112, xr3);
ql2(g4, Q3, _e3);
let ee2 = y4.createPropertyDeclaration(m4, g4, b4 || N4, Q3, _e3);
return Ce3(P4(ee2, o), p4);
}
function Bs3(o, p4, m4) {
let g4 = pt3(42), b4 = jr3(), N4 = pt3(58);
return g4 || u() === 21 || u() === 30 ? Lc2(o, p4, m4, g4, b4, N4, undefined, A2.or_expected) : Aa2(o, p4, m4, b4, N4);
}
function _i3(o, p4, m4, g4, b4) {
let N4 = jr3(), Q3 = pn2(), _e3 = Xn2(0), ee2 = In2(59, false), te3 = Ri3(b4), ce3 = g4 === 178 ? y4.createGetAccessorDeclaration(m4, N4, _e3, ee2, te3) : y4.createSetAccessorDeclaration(m4, N4, _e3, te3);
return ce3.typeParameters = Q3, y_(ce3) && (ce3.type = ee2), Ce3(P4(ce3, o), p4);
}
function Jc2() {
let o;
if (u() === 60)
return true;
for (;Yr3(u()); ) {
if (o = u(), Ug(o))
return true;
B3();
}
if (u() === 42 || (br3() && (o = u(), B3()), u() === 23))
return true;
if (o !== undefined) {
if (!di3(o) || o === 153 || o === 139)
return true;
switch (u()) {
case 21:
case 30:
case 54:
case 59:
case 64:
case 58:
return true;
default:
return _r3();
}
}
return false;
}
function Yu2(o, p4, m4) {
Yn2(126);
let g4 = Hu2(), b4 = Ce3(P4(y4.createClassStaticBlockDeclaration(g4), o), p4);
return b4.modifiers = m4, b4;
}
function Hu2() {
let o = we3(), p4 = Ye3();
He3(false), st2(true);
let m4 = Fr3(false);
return He3(o), st2(p4), m4;
}
function jc2() {
if (Ye3() && u() === 135) {
let o = M3(), p4 = gt3(A2.Expression_expected);
B3();
let m4 = rn2(o, p4, true);
return Ps3(o, m4);
}
return Oi3();
}
function Rc2() {
let o = M3();
if (!Le3(60))
return;
let p4 = wi3(jc2);
return P4(y4.createDecorator(p4), o);
}
function qs3(o, p4, m4) {
let g4 = M3(), b4 = u();
if (u() === 87 && p4) {
if (!le3(Za2))
return;
} else {
if (m4 && u() === 126 && H3(Da2))
return;
if (o && u() === 126)
return;
if (!N_())
return;
}
return P4(he3(b4), g4);
}
function On2(o, p4, m4) {
let g4 = M3(), b4, N4, Q3, _e3 = false, ee2 = false, te3 = false;
if (o && u() === 60)
for (;N4 = Rc2(); )
b4 = wn2(b4, N4);
for (;Q3 = qs3(_e3, p4, m4); )
Q3.kind === 126 && (_e3 = true), b4 = wn2(b4, Q3), ee2 = true;
if (ee2 && o && u() === 60)
for (;N4 = Rc2(); )
b4 = wn2(b4, N4), te3 = true;
if (te3)
for (;Q3 = qs3(_e3, p4, m4); )
Q3.kind === 126 && (_e3 = true), b4 = wn2(b4, Q3);
return b4 && At3(b4, g4);
}
function Uc2() {
let o;
if (u() === 134) {
let p4 = M3();
B3();
let m4 = P4(he3(134), p4);
o = At3([m4], p4);
}
return o;
}
function Bc2() {
let o = M3(), p4 = Ue3();
if (u() === 27)
return B3(), Ce3(P4(y4.createSemicolonClassElement(), o), p4);
let m4 = On2(true, true, true);
if (u() === 126 && H3(Da2))
return Yu2(o, p4, m4);
if (ti3(139))
return _i3(o, p4, m4, 178, 0);
if (ti3(153))
return _i3(o, p4, m4, 179, 0);
if (u() === 137 || u() === 11) {
let g4 = Mc2(o, p4, m4);
if (g4)
return g4;
}
if (Br3())
return ds3(o, p4, m4);
if (St3(u()) || u() === 11 || u() === 9 || u() === 10 || u() === 42 || u() === 23)
if (Zt3(m4, Ec2)) {
for (let b4 of m4)
b4.flags |= 33554432;
return Tt3(33554432, () => Bs3(o, p4, m4));
} else
return Bs3(o, p4, m4);
if (m4) {
let g4 = Gt3(80, true, A2.Declaration_expected);
return Aa2(o, p4, m4, g4, undefined);
}
return q3.fail("Should not have attempted to parse class member declaration.");
}
function Xu2() {
let o = M3(), p4 = Ue3(), m4 = On2(true);
if (u() === 86)
return zs3(o, p4, m4, 232);
let g4 = Gt3(283, true, A2.Expression_expected);
return Bp2(g4, o), g4.modifiers = m4, g4;
}
function $u2() {
return zs3(M3(), Ue3(), undefined, 232);
}
function Fs3(o, p4, m4) {
return zs3(o, p4, m4, 264);
}
function zs3(o, p4, m4, g4) {
let b4 = Ye3();
J3(86);
let N4 = Qu2(), Q3 = pn2();
Zt3(m4, Ub) && st2(true);
let _e3 = Fc2(), ee2;
J3(19) ? (ee2 = zc2(), J3(20)) : ee2 = lr2(), st2(b4);
let te3 = g4 === 264 ? y4.createClassDeclaration(m4, N4, Q3, _e3, ee2) : y4.createClassExpression(m4, N4, Q3, _e3, ee2);
return Ce3(P4(te3, o), p4);
}
function Qu2() {
return qe3() && !qc2() ? or3(qe3()) : undefined;
}
function qc2() {
return u() === 119 && H3(Xl2);
}
function Fc2() {
if (Vs2())
return bn2(22, Ku2);
}
function Ku2() {
let o = M3(), p4 = u();
q3.assert(p4 === 96 || p4 === 119), B3();
let m4 = un2(7, Zu2);
return P4(y4.createHeritageClause(p4, m4), o);
}
function Zu2() {
let o = M3(), p4 = Oi3();
if (p4.kind === 234)
return p4;
let m4 = Ca2();
return P4(y4.createExpressionWithTypeArguments(p4, m4), o);
}
function Ca2() {
return u() === 30 ? Rr3(20, _t3, 30, 32) : undefined;
}
function Vs2() {
return u() === 96 || u() === 119;
}
function zc2() {
return bn2(5, Bc2);
}
function ep2(o, p4, m4) {
J3(120);
let g4 = gt3(), b4 = pn2(), N4 = Fc2(), Q3 = po2(), _e3 = y4.createInterfaceDeclaration(m4, g4, b4, N4, Q3);
return Ce3(P4(_e3, o), p4);
}
function tp2(o, p4, m4) {
J3(156), t.hasPrecedingLineBreak() && Ee3(A2.Line_break_not_permitted_here);
let g4 = gt3(), b4 = pn2();
J3(64);
let N4 = u() === 141 && le3(bo2) || _t3();
Qt3();
let Q3 = y4.createTypeAliasDeclaration(m4, g4, b4, N4);
return Ce3(P4(Q3, o), p4);
}
function Ws3() {
let o = M3(), p4 = Ue3(), m4 = jr3(), g4 = lt3(xr3);
return Ce3(P4(y4.createEnumMember(m4, g4), o), p4);
}
function np2(o, p4, m4) {
J3(94);
let g4 = gt3(), b4;
J3(19) ? (b4 = xe3(() => un2(6, Ws3)), J3(20)) : b4 = lr2();
let N4 = y4.createEnumDeclaration(m4, g4, b4);
return Ce3(P4(N4, o), p4);
}
function Gs3() {
let o = M3(), p4;
return J3(19) ? (p4 = bn2(1, Yt3), J3(20)) : p4 = lr2(), P4(y4.createModuleBlock(p4), o);
}
function Vc2(o, p4, m4, g4) {
let b4 = g4 & 32, N4 = g4 & 8 ? jt3() : gt3(), Q3 = Le3(25) ? Vc2(M3(), false, undefined, 8 | b4) : Gs3(), _e3 = y4.createModuleDeclaration(m4, N4, Q3, g4);
return Ce3(P4(_e3, o), p4);
}
function Wc2(o, p4, m4) {
let g4 = 0, b4;
u() === 162 ? (b4 = gt3(), g4 |= 2048) : (b4 = Hn2(), b4.text = Jr3(b4.text));
let N4;
u() === 19 ? N4 = Gs3() : Qt3();
let Q3 = y4.createModuleDeclaration(m4, b4, N4, g4);
return Ce3(P4(Q3, o), p4);
}
function rp2(o, p4, m4) {
let g4 = 0;
if (u() === 162)
return Wc2(o, p4, m4);
if (Le3(145))
g4 |= 32;
else if (J3(144), u() === 11)
return Wc2(o, p4, m4);
return Vc2(o, p4, m4, g4);
}
function ip2() {
return u() === 149 && H3(Gc2);
}
function Gc2() {
return B3() === 21;
}
function Da2() {
return B3() === 19;
}
function ap2() {
return B3() === 44;
}
function sp2(o, p4, m4) {
J3(130), J3(145);
let g4 = gt3();
Qt3();
let b4 = y4.createNamespaceExportDeclaration(g4);
return b4.modifiers = m4, Ce3(P4(b4, o), p4);
}
function Bi3(o, p4, m4) {
J3(102);
let g4 = t.getTokenFullStart(), b4;
ve3() && (b4 = gt3());
let N4;
if (b4?.escapedText === "type" && (u() !== 161 || ve3() && H3(Dc2)) && (ve3() || zr3()) ? (N4 = 156, b4 = ve3() ? gt3() : undefined) : b4?.escapedText === "defer" && (u() === 161 ? !H3(Cc2) : u() !== 28 && u() !== 64) && (N4 = 166, b4 = ve3() ? gt3() : undefined), b4 && !op2() && N4 !== 166)
return cp2(o, p4, m4, b4, N4 === 156);
let Q3 = Yc2(b4, g4, N4, undefined), _e3 = Fi3(), ee2 = Hc2();
Qt3();
let te3 = y4.createImportDeclaration(m4, Q3, _e3, ee2);
return Ce3(P4(te3, o), p4);
}
function Yc2(o, p4, m4, g4 = false) {
let b4;
return (o || u() === 42 || u() === 19) && (b4 = lp2(o, p4, m4, g4), J3(161)), b4;
}
function Hc2() {
let o = u();
if ((o === 118 || o === 132) && !t.hasPrecedingLineBreak())
return Ys3(o);
}
function _p2() {
let o = M3(), p4 = St3(u()) ? jt3() : ri3(11);
J3(59);
let m4 = zt3(true);
return P4(y4.createImportAttribute(p4, m4), o);
}
function Ys3(o, p4) {
let m4 = M3();
p4 || J3(o);
let g4 = t.getTokenStart();
if (J3(19)) {
let b4 = t.hasPrecedingLineBreak(), N4 = un2(24, _p2, true);
if (!J3(20)) {
let Q3 = Ba2(at3);
Q3 && Q3.code === A2._0_expected.code && sl2(Q3, Oa2(Mt3, $e3, g4, 1, A2.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}"));
}
return P4(y4.createImportAttributes(N4, b4, o), m4);
} else {
let b4 = At3([], M3(), undefined, false);
return P4(y4.createImportAttributes(b4, false, o), m4);
}
}
function zr3() {
return u() === 42 || u() === 19;
}
function op2() {
return u() === 28 || u() === 161;
}
function cp2(o, p4, m4, g4, b4) {
J3(64);
let N4 = qi3();
Qt3();
let Q3 = y4.createImportEqualsDeclaration(m4, b4, g4, N4);
return Ce3(P4(Q3, o), p4);
}
function lp2(o, p4, m4, g4) {
let b4;
return (!o || Le3(28)) && (g4 && t.setSkipJsDocLeadingAsterisks(true), u() === 42 ? b4 = pp2() : b4 = Xc2(276), g4 && t.setSkipJsDocLeadingAsterisks(false)), P4(y4.createImportClause(m4, o, b4), p4);
}
function qi3() {
return ip2() ? up2() : Ur3(false);
}
function up2() {
let o = M3();
J3(149), J3(21);
let p4 = Fi3();
return J3(22), P4(y4.createExternalModuleReference(p4), o);
}
function Fi3() {
if (u() === 11) {
let o = Hn2();
return o.text = Jr3(o.text), o;
} else
return kt3();
}
function pp2() {
let o = M3();
J3(42), J3(130);
let p4 = gt3();
return P4(y4.createNamespaceImport(p4), o);
}
function Hs3() {
return St3(u()) || u() === 11;
}
function oi3(o) {
return u() === 11 ? Hn2() : o();
}
function Xc2(o) {
let p4 = M3(), m4 = o === 276 ? y4.createNamedImports(Rr3(23, fp2, 19, 20)) : y4.createNamedExports(Rr3(23, ci3, 19, 20));
return P4(m4, p4);
}
function ci3() {
let o = Ue3();
return Ce3($c2(282), o);
}
function fp2() {
return $c2(277);
}
function $c2(o) {
let p4 = M3(), m4 = di3(u()) && !ve3(), g4 = t.getTokenStart(), b4 = t.getTokenEnd(), N4 = false, Q3, _e3 = true, ee2 = oi3(jt3);
if (ee2.kind === 80 && ee2.escapedText === "type")
if (u() === 130) {
let je3 = jt3();
if (u() === 130) {
let Je3 = jt3();
Hs3() ? (N4 = true, Q3 = je3, ee2 = oi3(ce3), _e3 = false) : (Q3 = ee2, ee2 = Je3, _e3 = false);
} else
Hs3() ? (Q3 = ee2, _e3 = false, ee2 = oi3(ce3)) : (N4 = true, ee2 = je3);
} else
Hs3() && (N4 = true, ee2 = oi3(ce3));
_e3 && u() === 130 && (Q3 = ee2, J3(130), ee2 = oi3(ce3)), o === 277 && (ee2.kind !== 80 ? (rt3(Cr3($e3, ee2.pos), ee2.end, A2.Identifier_expected), ee2 = yi3(Gt3(80, false), ee2.pos, ee2.pos)) : m4 && rt3(g4, b4, A2.Identifier_expected));
let te3 = o === 277 ? y4.createImportSpecifier(N4, Q3, ee2) : y4.createExportSpecifier(N4, Q3, ee2);
return P4(te3, p4);
function ce3() {
return m4 = di3(u()) && !ve3(), g4 = t.getTokenStart(), b4 = t.getTokenEnd(), jt3();
}
}
function dp2(o) {
return P4(y4.createNamespaceExport(oi3(jt3)), o);
}
function Qc2(o, p4, m4) {
let g4 = Ye3();
st2(true);
let b4, N4, Q3, _e3 = Le3(156), ee2 = M3();
Le3(42) ? (Le3(130) && (b4 = dp2(ee2)), J3(161), N4 = Fi3()) : (b4 = Xc2(280), (u() === 161 || u() === 11 && !t.hasPrecedingLineBreak()) && (J3(161), N4 = Fi3()));
let te3 = u();
N4 && (te3 === 118 || te3 === 132) && !t.hasPrecedingLineBreak() && (Q3 = Ys3(te3)), Qt3(), st2(g4);
let ce3 = y4.createExportDeclaration(m4, _e3, b4, N4, Q3);
return Ce3(P4(ce3, o), p4);
}
function Kc2(o, p4, m4) {
let g4 = Ye3();
st2(true);
let b4;
Le3(64) ? b4 = true : J3(90);
let N4 = zt3(true);
Qt3(), st2(g4);
let Q3 = y4.createExportAssignment(m4, b4, N4);
return Ce3(P4(Q3, o), p4);
}
let Xs3;
((o) => {
o[o.SourceElements = 0] = "SourceElements", o[o.BlockStatements = 1] = "BlockStatements", o[o.SwitchClauses = 2] = "SwitchClauses", o[o.SwitchClauseStatements = 3] = "SwitchClauseStatements", o[o.TypeMembers = 4] = "TypeMembers", o[o.ClassMembers = 5] = "ClassMembers", o[o.EnumMembers = 6] = "EnumMembers", o[o.HeritageClauseElement = 7] = "HeritageClauseElement", o[o.VariableDeclarations = 8] = "VariableDeclarations", o[o.ObjectBindingElements = 9] = "ObjectBindingElements", o[o.ArrayBindingElements = 10] = "ArrayBindingElements", o[o.ArgumentExpressions = 11] = "ArgumentExpressions", o[o.ObjectLiteralMembers = 12] = "ObjectLiteralMembers", o[o.JsxAttributes = 13] = "JsxAttributes", o[o.JsxChildren = 14] = "JsxChildren", o[o.ArrayLiteralMembers = 15] = "ArrayLiteralMembers", o[o.Parameters = 16] = "Parameters", o[o.JSDocParameters = 17] = "JSDocParameters", o[o.RestProperties = 18] = "RestProperties", o[o.TypeParameters = 19] = "TypeParameters", o[o.TypeArguments = 20] = "TypeArguments", o[o.TupleElementTypes = 21] = "TupleElementTypes", o[o.HeritageClauses = 22] = "HeritageClauses", o[o.ImportOrExportSpecifiers = 23] = "ImportOrExportSpecifiers", o[o.ImportAttributes = 24] = "ImportAttributes", o[o.JSDocComment = 25] = "JSDocComment", o[o.Count = 26] = "Count";
})(Xs3 || (Xs3 = {}));
let Zc2;
((o) => {
o[o.False = 0] = "False", o[o.True = 1] = "True", o[o.Unknown = 2] = "Unknown";
})(Zc2 || (Zc2 = {}));
let el2;
((o) => {
function p4(te3, ce3, je3) {
Fn2("file.js", te3, 99, undefined, 1, 0), t.setText(te3, ce3, je3), ct3 = t.scan();
let Je3 = m4(), De3 = se3("file.js", 99, 1, false, [], he3(1), 0, Va2), Ht3 = Yi3(at3, De3);
return Bt2 && (De3.jsDocDiagnostics = Yi3(Bt2, De3)), zn2(), Je3 ? { jsDocTypeExpression: Je3, diagnostics: Ht3 } : undefined;
}
o.parseJSDocTypeExpressionForTests = p4;
function m4(te3) {
let ce3 = M3(), je3 = (te3 ? Le3 : J3)(19), Je3 = Tt3(16777216, ls3);
(!te3 || je3) && C_(20);
let De3 = y4.createJSDocTypeExpression(Je3);
return L3(De3), P4(De3, ce3);
}
o.parseJSDocTypeExpression = m4;
function g4() {
let te3 = M3(), ce3 = Le3(19), je3 = M3(), Je3 = Ur3(false);
for (;u() === 81; )
Pt3(), Be3(), Je3 = P4(y4.createJSDocMemberName(Je3, gt3()), je3);
ce3 && C_(20);
let De3 = y4.createJSDocNameReference(Je3);
return L3(De3), P4(De3, te3);
}
o.parseJSDocNameReference = g4;
function b4(te3, ce3, je3) {
Fn2("", te3, 99, undefined, 1, 0);
let Je3 = Tt3(16777216, () => ee2(ce3, je3)), Ht3 = Yi3(at3, { languageVariant: 0, text: te3 });
return zn2(), Je3 ? { jsDoc: Je3, diagnostics: Ht3 } : undefined;
}
o.parseIsolatedJSDocComment = b4;
function N4(te3, ce3, je3) {
let Je3 = ct3, De3 = at3.length, Ht3 = tn2, Nt3 = Tt3(16777216, () => ee2(ce3, je3));
return Sf(Nt3, te3), tt3 & 524288 && (Bt2 || (Bt2 = []), En2(Bt2, at3, De3)), ct3 = Je3, at3.length = De3, tn2 = Ht3, Nt3;
}
o.parseJSDocComment = N4;
let Q3;
((te3) => {
te3[te3.BeginningOfLine = 0] = "BeginningOfLine", te3[te3.SawAsterisk = 1] = "SawAsterisk", te3[te3.SavingComments = 2] = "SavingComments", te3[te3.SavingBackticks = 3] = "SavingBackticks";
})(Q3 || (Q3 = {}));
let _e3;
((te3) => {
te3[te3.Property = 1] = "Property", te3[te3.Parameter = 2] = "Parameter", te3[te3.CallbackParameter = 4] = "CallbackParameter";
})(_e3 || (_e3 = {}));
function ee2(te3 = 0, ce3) {
let je3 = $e3, Je3 = ce3 === undefined ? je3.length : te3 + ce3;
if (ce3 = Je3 - te3, q3.assert(te3 >= 0), q3.assert(te3 <= Je3), q3.assert(Je3 <= je3.length), !E6(je3, te3))
return;
let De3, Ht3, Nt3, ur3, pr3, Mn = [], Vr3 = [], Pe2 = yt3;
yt3 |= 1 << 25;
let et3 = t.scanRange(te3 + 3, ce3 - 5, wr3);
return yt3 = Pe2, et3;
function wr3() {
let I3 = 1, X3, $3 = te3 - (je3.lastIndexOf(`
`, te3) + 1) + 4;
function ne3(Re3) {
X3 || (X3 = $3), Mn.push(Re3), $3 += Re3.length;
}
for (Be3();Gi3(5); )
;
Gi3(4) && (I3 = 0, $3 = 0);
e:
for (;; ) {
switch (u()) {
case 60:
mp2(Mn), pr3 || (pr3 = M3()), Fe3(n($3)), I3 = 0, X3 = undefined;
break;
case 4:
Mn.push(t.getTokenText()), I3 = 0, $3 = 0;
break;
case 42:
let Re3 = t.getTokenText();
I3 === 1 ? (I3 = 2, ne3(Re3)) : (q3.assert(I3 === 0), I3 = 1, $3 += Re3.length);
break;
case 5:
q3.assert(I3 !== 2, "whitespace shouldn't come from the scanner while saving top-level comment text");
let ut3 = t.getTokenText();
X3 !== undefined && $3 + ut3.length > X3 && Mn.push(ut3.slice(X3 - $3)), $3 += ut3.length;
break;
case 1:
break e;
case 82:
I3 = 2, ne3(t.getTokenValue());
break;
case 19:
I3 = 2;
let fn3 = t.getTokenFullStart(), an2 = t.getTokenEnd() - 1, Kt3 = l4(an2);
if (Kt3) {
ur3 || zi3(Mn), Vr3.push(P4(y4.createJSDocText(Mn.join("")), ur3 ?? te3, fn3)), Vr3.push(Kt3), Mn = [], ur3 = t.getTokenEnd();
break;
}
default:
I3 = 2, ne3(t.getTokenText());
break;
}
I3 === 2 ? nn2(false) : Be3();
}
let re2 = Mn.join("").trimEnd();
Vr3.length && re2.length && Vr3.push(P4(y4.createJSDocText(re2), ur3 ?? te3, pr3)), Vr3.length && De3 && q3.assertIsDefined(pr3, "having parsed tags implies that the end of the comment span should be set");
let Ne3 = De3 && At3(De3, Ht3, Nt3);
return P4(y4.createJSDocComment(Vr3.length ? At3(Vr3, te3, pr3) : re2.length ? re2 : undefined, Ne3), te3, Je3);
}
function zi3(I3) {
for (;I3.length && (I3[0] === `
` || I3[0] === "\r"); )
I3.shift();
}
function mp2(I3) {
for (;I3.length; ) {
let X3 = I3[I3.length - 1].trimEnd();
if (X3 === "")
I3.pop();
else if (X3.length < I3[I3.length - 1].length) {
I3[I3.length - 1] = X3;
break;
} else
break;
}
}
function $n2() {
for (;; ) {
if (Be3(), u() === 1)
return true;
if (!(u() === 5 || u() === 4))
return false;
}
}
function Tn2() {
if (!((u() === 5 || u() === 4) && H3($n2)))
for (;u() === 5 || u() === 4; )
Be3();
}
function j3() {
if ((u() === 5 || u() === 4) && H3($n2))
return "";
let I3 = t.hasPrecedingLineBreak(), X3 = false, $3 = "";
for (;I3 && u() === 42 || u() === 5 || u() === 4; )
$3 += t.getTokenText(), u() === 4 ? (I3 = true, X3 = true, $3 = "") : u() === 42 && (I3 = false), Be3();
return X3 ? $3 : "";
}
function n(I3) {
q3.assert(u() === 60);
let X3 = t.getTokenStart();
Be3();
let $3 = li3(undefined), ne3 = j3(), re2;
switch ($3.escapedText) {
case "author":
re2 = j0(X3, $3, I3, ne3);
break;
case "implements":
re2 = U0(X3, $3, I3, ne3);
break;
case "augments":
case "extends":
re2 = B0(X3, $3, I3, ne3);
break;
case "class":
case "constructor":
re2 = Wi3(X3, y4.createJSDocClassTag, $3, I3, ne3);
break;
case "public":
re2 = Wi3(X3, y4.createJSDocPublicTag, $3, I3, ne3);
break;
case "private":
re2 = Wi3(X3, y4.createJSDocPrivateTag, $3, I3, ne3);
break;
case "protected":
re2 = Wi3(X3, y4.createJSDocProtectedTag, $3, I3, ne3);
break;
case "readonly":
re2 = Wi3(X3, y4.createJSDocReadonlyTag, $3, I3, ne3);
break;
case "override":
re2 = Wi3(X3, y4.createJSDocOverrideTag, $3, I3, ne3);
break;
case "deprecated":
Vn2 = true, re2 = Wi3(X3, y4.createJSDocDeprecatedTag, $3, I3, ne3);
break;
case "this":
re2 = fd(X3, $3, I3, ne3);
break;
case "enum":
re2 = V0(X3, $3, I3, ne3);
break;
case "arg":
case "argument":
case "param":
return Vi3(X3, $3, 2, I3);
case "return":
case "returns":
re2 = M0(X3, $3, I3, ne3);
break;
case "template":
re2 = md(X3, $3, I3, ne3);
break;
case "type":
re2 = ud(X3, $3, I3, ne3);
break;
case "typedef":
re2 = W0(X3, $3, I3, ne3);
break;
case "callback":
re2 = Y0(X3, $3, I3, ne3);
break;
case "overload":
re2 = H0(X3, $3, I3, ne3);
break;
case "satisfies":
re2 = q0(X3, $3, I3, ne3);
break;
case "see":
re2 = L0(X3, $3, I3, ne3);
break;
case "exception":
case "throws":
re2 = J0(X3, $3, I3, ne3);
break;
case "import":
re2 = F0(X3, $3, I3, ne3);
break;
default:
re2 = pe3(X3, $3, I3, ne3);
break;
}
return re2;
}
function i(I3, X3, $3, ne3) {
return ne3 || ($3 += X3 - I3), s($3, ne3.slice($3));
}
function s(I3, X3) {
let $3 = M3(), ne3 = [], re2 = [], Ne3, Re3 = 0, ut3;
function fn3(Qn2) {
ut3 || (ut3 = I3), ne3.push(Qn2), I3 += Qn2.length;
}
X3 !== undefined && (X3 !== "" && fn3(X3), Re3 = 1);
let an2 = u();
e:
for (;; ) {
switch (an2) {
case 4:
Re3 = 0, ne3.push(t.getTokenText()), I3 = 0;
break;
case 60:
t.resetTokenState(t.getTokenEnd() - 1);
break e;
case 1:
break e;
case 5:
q3.assert(Re3 !== 2 && Re3 !== 3, "whitespace shouldn't come from the scanner while saving comment text");
let Qn2 = t.getTokenText();
ut3 !== undefined && I3 + Qn2.length > ut3 && (ne3.push(Qn2.slice(ut3 - I3)), Re3 = 2), I3 += Qn2.length;
break;
case 19:
Re3 = 2;
let tl2 = t.getTokenFullStart(), Pa2 = t.getTokenEnd() - 1, nl2 = l4(Pa2);
nl2 ? (re2.push(P4(y4.createJSDocText(ne3.join("")), Ne3 ?? $3, tl2)), re2.push(nl2), ne3 = [], Ne3 = t.getTokenEnd()) : fn3(t.getTokenText());
break;
case 62:
Re3 === 3 ? Re3 = 2 : Re3 = 3, fn3(t.getTokenText());
break;
case 82:
Re3 !== 3 && (Re3 = 2), fn3(t.getTokenValue());
break;
case 42:
if (Re3 === 0) {
Re3 = 1, I3 += 1;
break;
}
default:
Re3 !== 3 && (Re3 = 2), fn3(t.getTokenText());
break;
}
Re3 === 2 || Re3 === 3 ? an2 = nn2(Re3 === 3) : an2 = Be3();
}
zi3(ne3);
let Kt3 = ne3.join("").trimEnd();
if (re2.length)
return Kt3.length && re2.push(P4(y4.createJSDocText(Kt3), Ne3 ?? $3)), At3(re2, $3, t.getTokenEnd());
if (Kt3.length)
return Kt3;
}
function l4(I3) {
let X3 = le3(v4);
if (!X3)
return;
Be3(), Tn2();
let $3 = d(), ne3 = [];
for (;u() !== 20 && u() !== 4 && u() !== 1; )
ne3.push(t.getTokenText()), Be3();
let re2 = X3 === "link" ? y4.createJSDocLink : X3 === "linkcode" ? y4.createJSDocLinkCode : y4.createJSDocLinkPlain;
return P4(re2($3, ne3.join("")), I3, t.getTokenEnd());
}
function d() {
if (St3(u())) {
let I3 = M3(), X3 = jt3();
for (;Le3(25); )
X3 = P4(y4.createQualifiedName(X3, u() === 81 ? Gt3(80, false) : jt3()), I3);
for (;u() === 81; )
Pt3(), Be3(), X3 = P4(y4.createJSDocMemberName(X3, gt3()), I3);
return X3;
}
}
function v4() {
if (j3(), u() === 19 && Be3() === 60 && St3(Be3())) {
let I3 = t.getTokenValue();
if (F3(I3))
return I3;
}
}
function F3(I3) {
return I3 === "link" || I3 === "linkcode" || I3 === "linkplain";
}
function pe3(I3, X3, $3, ne3) {
return P4(y4.createJSDocUnknownTag(X3, i(I3, M3(), $3, ne3)), I3);
}
function Fe3(I3) {
I3 && (De3 ? De3.push(I3) : (De3 = [I3], Ht3 = I3.pos), Nt3 = I3.end);
}
function It3() {
return j3(), u() === 19 ? m4() : undefined;
}
function fr3() {
let I3 = Gi3(23);
I3 && Tn2();
let X3 = Gi3(62), $3 = ey();
return X3 && zl2(62), I3 && (Tn2(), pt3(64) && kt3(), J3(24)), { name: $3, isBracketed: I3 };
}
function xn2(I3) {
switch (I3.kind) {
case 151:
return true;
case 189:
return xn2(I3.elementType);
default:
return Df(I3) && Ke3(I3.typeName) && I3.typeName.escapedText === "Object" && !I3.typeArguments;
}
}
function Vi3(I3, X3, $3, ne3) {
let re2 = It3(), Ne3 = !re2;
j3();
let { name: Re3, isBracketed: ut3 } = fr3(), fn3 = j3();
Ne3 && !H3(v4) && (re2 = It3());
let an2 = i(I3, M3(), ne3, fn3), Kt3 = O0(re2, Re3, $3, ne3);
Kt3 && (re2 = Kt3, Ne3 = true);
let Qn2 = $3 === 1 ? y4.createJSDocPropertyTag(X3, Re3, ut3, re2, Ne3, an2) : y4.createJSDocParameterTag(X3, Re3, ut3, re2, Ne3, an2);
return P4(Qn2, I3);
}
function O0(I3, X3, $3, ne3) {
if (I3 && xn2(I3.type)) {
let re2 = M3(), Ne3, Re3;
for (;Ne3 = le3(() => yp2($3, ne3, X3)); )
Ne3.kind === 342 || Ne3.kind === 349 ? Re3 = wn2(Re3, Ne3) : Ne3.kind === 346 && on2(Ne3.tagName, A2.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);
if (Re3) {
let ut3 = P4(y4.createJSDocTypeLiteral(Re3, I3.type.kind === 189), re2);
return P4(y4.createJSDocTypeExpression(ut3), re2);
}
}
}
function M0(I3, X3, $3, ne3) {
Zt3(De3, f6) && rt3(X3.pos, t.getTokenStart(), A2._0_tag_already_specified, l_(X3.escapedText));
let re2 = It3();
return P4(y4.createJSDocReturnTag(X3, re2, i(I3, M3(), $3, ne3)), I3);
}
function ud(I3, X3, $3, ne3) {
Zt3(De3, zf) && rt3(X3.pos, t.getTokenStart(), A2._0_tag_already_specified, l_(X3.escapedText));
let re2 = m4(true), Ne3 = $3 !== undefined && ne3 !== undefined ? i(I3, M3(), $3, ne3) : undefined;
return P4(y4.createJSDocTypeTag(X3, re2, Ne3), I3);
}
function L0(I3, X3, $3, ne3) {
let Ne3 = u() === 23 || H3(() => Be3() === 60 && St3(Be3()) && F3(t.getTokenValue())) ? undefined : g4(), Re3 = $3 !== undefined && ne3 !== undefined ? i(I3, M3(), $3, ne3) : undefined;
return P4(y4.createJSDocSeeTag(X3, Ne3, Re3), I3);
}
function J0(I3, X3, $3, ne3) {
let re2 = It3(), Ne3 = i(I3, M3(), $3, ne3);
return P4(y4.createJSDocThrowsTag(X3, re2, Ne3), I3);
}
function j0(I3, X3, $3, ne3) {
let re2 = M3(), Ne3 = R0(), Re3 = t.getTokenFullStart(), ut3 = i(I3, Re3, $3, ne3);
ut3 || (Re3 = t.getTokenFullStart());
let fn3 = typeof ut3 != "string" ? At3(Yp2([P4(Ne3, re2, Re3)], ut3), re2) : Ne3.text + ut3;
return P4(y4.createJSDocAuthorTag(X3, fn3), I3);
}
function R0() {
let I3 = [], X3 = false, $3 = t.getToken();
for (;$3 !== 1 && $3 !== 4; ) {
if ($3 === 30)
X3 = true;
else {
if ($3 === 60 && !X3)
break;
if ($3 === 32 && X3) {
I3.push(t.getTokenText()), t.resetTokenState(t.getTokenEnd());
break;
}
}
I3.push(t.getTokenText()), $3 = Be3();
}
return y4.createJSDocText(I3.join(""));
}
function U0(I3, X3, $3, ne3) {
let re2 = pd();
return P4(y4.createJSDocImplementsTag(X3, re2, i(I3, M3(), $3, ne3)), I3);
}
function B0(I3, X3, $3, ne3) {
let re2 = pd();
return P4(y4.createJSDocAugmentsTag(X3, re2, i(I3, M3(), $3, ne3)), I3);
}
function q0(I3, X3, $3, ne3) {
let re2 = m4(false), Ne3 = $3 !== undefined && ne3 !== undefined ? i(I3, M3(), $3, ne3) : undefined;
return P4(y4.createJSDocSatisfiesTag(X3, re2, Ne3), I3);
}
function F0(I3, X3, $3, ne3) {
let re2 = t.getTokenFullStart(), Ne3;
ve3() && (Ne3 = gt3());
let Re3 = Yc2(Ne3, re2, 156, true), ut3 = Fi3(), fn3 = Hc2(), an2 = $3 !== undefined && ne3 !== undefined ? i(I3, M3(), $3, ne3) : undefined;
return P4(y4.createJSDocImportTag(X3, Re3, ut3, fn3, an2), I3);
}
function pd() {
let I3 = Le3(19), X3 = M3(), $3 = z0();
t.setSkipJsDocLeadingAsterisks(true);
let ne3 = Ca2();
t.setSkipJsDocLeadingAsterisks(false);
let re2 = y4.createExpressionWithTypeArguments($3, ne3), Ne3 = P4(re2, X3);
return I3 && (Tn2(), J3(20)), Ne3;
}
function z0() {
let I3 = M3(), X3 = li3();
for (;Le3(25); ) {
let $3 = li3();
X3 = P4(ae(X3, $3), I3);
}
return X3;
}
function Wi3(I3, X3, $3, ne3, re2) {
return P4(X3($3, i(I3, M3(), ne3, re2)), I3);
}
function fd(I3, X3, $3, ne3) {
let re2 = m4(true);
return Tn2(), P4(y4.createJSDocThisTag(X3, re2, i(I3, M3(), $3, ne3)), I3);
}
function V0(I3, X3, $3, ne3) {
let re2 = m4(true);
return Tn2(), P4(y4.createJSDocEnumTag(X3, re2, i(I3, M3(), $3, ne3)), I3);
}
function W0(I3, X3, $3, ne3) {
let re2 = It3();
j3();
let Ne3 = hp2();
Tn2();
let Re3 = s($3), ut3;
if (!re2 || xn2(re2.type)) {
let an2, Kt3, Qn2, tl2 = false;
for (;(an2 = le3(() => $0($3))) && an2.kind !== 346; )
if (tl2 = true, an2.kind === 345)
if (Kt3) {
let Pa2 = Ee3(A2.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);
Pa2 && sl2(Pa2, Oa2(Mt3, $e3, 0, 0, A2.The_tag_was_first_specified_here));
break;
} else
Kt3 = an2;
else
Qn2 = wn2(Qn2, an2);
if (tl2) {
let Pa2 = re2 && re2.type.kind === 189, nl2 = y4.createJSDocTypeLiteral(Qn2, Pa2);
re2 = Kt3 && Kt3.typeExpression && !xn2(Kt3.typeExpression.type) ? Kt3.typeExpression : P4(nl2, I3), ut3 = re2.end;
}
}
ut3 = ut3 || Re3 !== undefined ? M3() : (Ne3 ?? re2 ?? X3).end, Re3 || (Re3 = i(I3, ut3, $3, ne3));
let fn3 = y4.createJSDocTypedefTag(X3, re2, Ne3, Re3);
return P4(fn3, I3, ut3);
}
function hp2(I3) {
let X3 = t.getTokenStart();
if (!St3(u()))
return;
let $3 = li3();
if (Le3(25)) {
let ne3 = hp2(true), re2 = y4.createModuleDeclaration(undefined, $3, ne3, I3 ? 8 : undefined);
return P4(re2, X3);
}
return I3 && ($3.flags |= 4096), $3;
}
function G0(I3) {
let X3 = M3(), $3, ne3;
for (;$3 = le3(() => yp2(4, I3)); ) {
if ($3.kind === 346) {
on2($3.tagName, A2.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);
break;
}
ne3 = wn2(ne3, $3);
}
return At3(ne3 || [], X3);
}
function dd(I3, X3) {
let $3 = G0(X3), ne3 = le3(() => {
if (Gi3(60)) {
let re2 = n(X3);
if (re2 && re2.kind === 343)
return re2;
}
});
return P4(y4.createJSDocSignature(undefined, $3, ne3), I3);
}
function Y0(I3, X3, $3, ne3) {
let re2 = hp2();
Tn2();
let Ne3 = s($3), Re3 = dd(I3, $3);
Ne3 || (Ne3 = i(I3, M3(), $3, ne3));
let ut3 = Ne3 !== undefined ? M3() : Re3.end;
return P4(y4.createJSDocCallbackTag(X3, Re3, re2, Ne3), I3, ut3);
}
function H0(I3, X3, $3, ne3) {
Tn2();
let re2 = s($3), Ne3 = dd(I3, $3);
re2 || (re2 = i(I3, M3(), $3, ne3));
let Re3 = re2 !== undefined ? M3() : Ne3.end;
return P4(y4.createJSDocOverloadTag(X3, Ne3, re2), I3, Re3);
}
function X0(I3, X3) {
for (;!Ke3(I3) || !Ke3(X3); )
if (!Ke3(I3) && !Ke3(X3) && I3.right.escapedText === X3.right.escapedText)
I3 = I3.left, X3 = X3.left;
else
return false;
return I3.escapedText === X3.escapedText;
}
function $0(I3) {
return yp2(1, I3);
}
function yp2(I3, X3, $3) {
let ne3 = true, re2 = false;
for (;; )
switch (Be3()) {
case 60:
if (ne3) {
let Ne3 = Q0(I3, X3);
return Ne3 && (Ne3.kind === 342 || Ne3.kind === 349) && $3 && (Ke3(Ne3.name) || !X0($3, Ne3.name.left)) ? false : Ne3;
}
re2 = false;
break;
case 4:
ne3 = true, re2 = false;
break;
case 42:
re2 && (ne3 = false), re2 = true;
break;
case 80:
ne3 = false;
break;
case 1:
return false;
}
}
function Q0(I3, X3) {
q3.assert(u() === 60);
let $3 = t.getTokenFullStart();
Be3();
let ne3 = li3(), re2 = j3(), Ne3;
switch (ne3.escapedText) {
case "type":
return I3 === 1 && ud($3, ne3);
case "prop":
case "property":
Ne3 = 1;
break;
case "arg":
case "argument":
case "param":
Ne3 = 6;
break;
case "template":
return md($3, ne3, X3, re2);
case "this":
return fd($3, ne3, X3, re2);
default:
return false;
}
return I3 & Ne3 ? Vi3($3, ne3, I3, X3) : false;
}
function K0() {
let I3 = M3(), X3 = Gi3(23);
X3 && Tn2();
let $3 = On2(false, true), ne3 = li3(A2.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces), re2;
if (X3 && (Tn2(), J3(64), re2 = Tt3(16777216, ls3), J3(24)), !Zi3(ne3))
return P4(y4.createTypeParameterDeclaration($3, ne3, undefined, re2), I3);
}
function Z0() {
let I3 = M3(), X3 = [];
do {
Tn2();
let $3 = K0();
$3 !== undefined && X3.push($3), j3();
} while (Gi3(28));
return At3(X3, I3);
}
function md(I3, X3, $3, ne3) {
let re2 = u() === 19 ? m4() : undefined, Ne3 = Z0();
return P4(y4.createJSDocTemplateTag(X3, re2, Ne3, i(I3, M3(), $3, ne3)), I3);
}
function Gi3(I3) {
return u() === I3 ? (Be3(), true) : false;
}
function ey() {
let I3 = li3();
for (Le3(23) && J3(24);Le3(25); ) {
let X3 = li3();
Le3(23) && J3(24), I3 = $l2(I3, X3);
}
return I3;
}
function li3(I3) {
if (!St3(u()))
return Gt3(80, !I3, I3 || A2.Identifier_expected);
yn2++;
let X3 = t.getTokenStart(), $3 = t.getTokenEnd(), ne3 = u(), re2 = Jr3(t.getTokenValue()), Ne3 = P4(ue3(re2, ne3), X3, $3);
return Be3(), Ne3;
}
}
})(el2 = e.JSDocParser || (e.JSDocParser = {}));
})(ta3 || (ta3 = {}));
var hm2 = new WeakSet;
function J6(e) {
hm2.has(e) && q3.fail("Source file has already been incrementally parsed"), hm2.add(e);
}
var ph = new WeakSet;
function j6(e) {
return ph.has(e);
}
function Wp2(e) {
ph.add(e);
}
var Sl2;
((e) => {
function t(D4, R3, ue3, be3) {
if (be3 = be3 || q3.shouldAssert(2), y4(D4, R3, ue3, be3), dg(ue3))
return D4;
if (D4.statements.length === 0)
return ta3.parseSourceFile(D4.fileName, R3, D4.languageVersion, undefined, true, D4.scriptKind, D4.setExternalModuleIndicator, D4.jsDocParsingMode);
J6(D4), ta3.fixupParentReferences(D4);
let he3 = D4.text, de3 = G3(D4), O3 = c4(D4, ue3);
y4(D4, R3, O3, be3), q3.assert(O3.span.start <= ue3.span.start), q3.assert(kr2(O3.span) === kr2(ue3.span)), q3.assert(kr2(Qs3(O3)) === kr2(Qs3(ue3)));
let ae = Qs3(O3).length - O3.span.length;
k4(D4, O3.span.start, kr2(O3.span), kr2(Qs3(O3)), ae, he3, R3, be3);
let Oe3 = ta3.parseSourceFile(D4.fileName, R3, D4.languageVersion, de3, true, D4.scriptKind, D4.setExternalModuleIndicator, D4.jsDocParsingMode);
return Oe3.commentDirectives = a4(D4.commentDirectives, Oe3.commentDirectives, O3.span.start, kr2(O3.span), ae, he3, R3, be3), Oe3.impliedNodeFormat = D4.impliedNodeFormat, y6(D4, Oe3), Oe3;
}
e.updateSourceFile = t;
function a4(D4, R3, ue3, be3, he3, de3, O3, ae) {
if (!D4)
return R3;
let Oe3, V3 = false;
for (let Y3 of D4) {
let { range: ft3, type: nr3 } = Y3;
if (ft3.end < ue3)
Oe3 = wn2(Oe3, Y3);
else if (ft3.pos > be3) {
oe3();
let mn2 = { range: { pos: ft3.pos + he3, end: ft3.end + he3 }, type: nr3 };
Oe3 = wn2(Oe3, mn2), ae && q3.assert(de3.substring(ft3.pos, ft3.end) === O3.substring(mn2.range.pos, mn2.range.end));
}
}
return oe3(), Oe3;
function oe3() {
V3 || (V3 = true, Oe3 ? R3 && Oe3.push(...R3) : Oe3 = R3);
}
}
function _4(D4, R3, ue3, be3, he3, de3, O3) {
ue3 ? Oe3(D4) : ae(D4);
return;
function ae(V3) {
let oe3 = "";
if (O3 && f4(V3) && (oe3 = he3.substring(V3.pos, V3.end)), Gd(V3, R3), yi3(V3, V3.pos + be3, V3.end + be3), O3 && f4(V3) && q3.assert(oe3 === de3.substring(V3.pos, V3.end)), Xt3(V3, ae, Oe3), Ki3(V3))
for (let Y3 of V3.jsDoc)
ae(Y3);
T4(V3, O3);
}
function Oe3(V3) {
yi3(V3, V3.pos + be3, V3.end + be3);
for (let oe3 of V3)
ae(oe3);
}
}
function f4(D4) {
switch (D4.kind) {
case 11:
case 9:
case 80:
return true;
}
return false;
}
function h(D4, R3, ue3, be3, he3) {
q3.assert(D4.end >= R3, "Adjusting an element that was entirely before the change range"), q3.assert(D4.pos <= ue3, "Adjusting an element that was entirely after the change range"), q3.assert(D4.pos <= D4.end);
let de3 = Math.min(D4.pos, be3), O3 = D4.end >= ue3 ? D4.end + he3 : Math.min(D4.end, be3);
if (q3.assert(de3 <= O3), D4.parent) {
let ae = D4.parent;
q3.assertGreaterThanOrEqual(de3, ae.pos), q3.assertLessThanOrEqual(O3, ae.end);
}
yi3(D4, de3, O3);
}
function T4(D4, R3) {
if (R3) {
let ue3 = D4.pos, be3 = (he3) => {
q3.assert(he3.pos >= ue3), ue3 = he3.end;
};
if (Ki3(D4))
for (let he3 of D4.jsDoc)
be3(he3);
Xt3(D4, be3), q3.assert(ue3 <= D4.end);
}
}
function k4(D4, R3, ue3, be3, he3, de3, O3, ae) {
Oe3(D4);
return;
function Oe3(oe3) {
if (q3.assert(oe3.pos <= oe3.end), oe3.pos > ue3) {
_4(oe3, D4, false, he3, de3, O3, ae);
return;
}
let Y3 = oe3.end;
if (Y3 >= R3) {
if (Wp2(oe3), Gd(oe3, D4), h(oe3, R3, ue3, be3, he3), Xt3(oe3, Oe3, V3), Ki3(oe3))
for (let ft3 of oe3.jsDoc)
Oe3(ft3);
T4(oe3, ae);
return;
}
q3.assert(Y3 < R3);
}
function V3(oe3) {
if (q3.assert(oe3.pos <= oe3.end), oe3.pos > ue3) {
_4(oe3, D4, true, he3, de3, O3, ae);
return;
}
let Y3 = oe3.end;
if (Y3 >= R3) {
Wp2(oe3), h(oe3, R3, ue3, be3, he3);
for (let ft3 of oe3)
Oe3(ft3);
return;
}
q3.assert(Y3 < R3);
}
}
function c4(D4, R3) {
let be3 = R3.span.start;
for (let O3 = 0;be3 > 0 && O3 <= 1; O3++) {
let ae = W3(D4, be3);
q3.assert(ae.pos <= be3);
let Oe3 = ae.pos;
be3 = Math.max(0, Oe3 - 1);
}
let he3 = fg(be3, kr2(R3.span)), de3 = R3.newLength + (R3.span.start - be3);
return Ym2(he3, de3);
}
function W3(D4, R3) {
let ue3 = D4, be3;
if (Xt3(D4, de3), be3) {
let O3 = he3(be3);
O3.pos > ue3.pos && (ue3 = O3);
}
return ue3;
function he3(O3) {
for (;; ) {
let ae = K22(O3);
if (ae)
O3 = ae;
else
return O3;
}
}
function de3(O3) {
if (!Zi3(O3))
if (O3.pos <= R3) {
if (O3.pos >= ue3.pos && (ue3 = O3), R3 < O3.end)
return Xt3(O3, de3), true;
q3.assert(O3.end <= R3), be3 = O3;
} else
return q3.assert(O3.pos > R3), true;
}
}
function y4(D4, R3, ue3, be3) {
let he3 = D4.text;
if (ue3 && (q3.assert(he3.length - ue3.span.length + ue3.newLength === R3.length), be3 || q3.shouldAssert(3))) {
let de3 = he3.substr(0, ue3.span.start), O3 = R3.substr(0, ue3.span.start);
q3.assert(de3 === O3);
let ae = he3.substring(kr2(ue3.span), he3.length), Oe3 = R3.substring(kr2(Qs3(ue3)), R3.length);
q3.assert(ae === Oe3);
}
}
function G3(D4) {
let R3 = D4.statements, ue3 = 0;
q3.assert(ue3 < R3.length);
let be3 = R3[ue3], he3 = -1;
return { currentNode(O3) {
return O3 !== he3 && (be3 && be3.end === O3 && ue3 < R3.length - 1 && (ue3++, be3 = R3[ue3]), (!be3 || be3.pos !== O3) && de3(O3)), he3 = O3, q3.assert(!be3 || be3.pos === O3), be3;
} };
function de3(O3) {
R3 = undefined, ue3 = -1, be3 = undefined, Xt3(D4, ae, Oe3);
return;
function ae(V3) {
return O3 >= V3.pos && O3 < V3.end ? (Xt3(V3, ae, Oe3), true) : false;
}
function Oe3(V3) {
if (O3 >= V3.pos && O3 < V3.end)
for (let oe3 = 0;oe3 < V3.length; oe3++) {
let Y3 = V3[oe3];
if (Y3) {
if (Y3.pos === O3)
return R3 = V3, ue3 = oe3, be3 = Y3, true;
if (Y3.pos < O3 && O3 < Y3.end)
return Xt3(Y3, ae, Oe3), true;
}
}
return false;
}
}
}
e.createSyntaxCursor = G3;
let E4;
((D4) => {
D4[D4.Value = -1] = "Value";
})(E4 || (E4 = {}));
})(Sl2 || (Sl2 = {}));
function R6(e) {
return U6(e) !== undefined;
}
function U6(e) {
let t = Im2(e, bb, false);
if (t)
return t;
if (jy(e, ".ts")) {
let a4 = Nm2(e), _4 = a4.lastIndexOf(".d.");
if (_4 >= 0)
return a4.substring(_4);
}
}
function B6(e, t, a4, _4) {
if (e) {
if (e === "import")
return 99;
if (e === "require")
return 1;
_4(t, a4 - t, A2.resolution_mode_should_be_either_require_or_import);
}
}
function q6(e, t) {
let a4 = [];
for (let _4 of Lp2(t, 0) || vt3) {
let f4 = t.substring(_4.pos, _4.end);
G6(a4, _4, f4);
}
e.pragmas = new Map;
for (let _4 of a4) {
if (e.pragmas.has(_4.name)) {
let f4 = e.pragmas.get(_4.name);
f4 instanceof Array ? f4.push(_4.args) : e.pragmas.set(_4.name, [f4, _4.args]);
continue;
}
e.pragmas.set(_4.name, _4.args);
}
}
function F6(e, t) {
e.checkJsDirective = undefined, e.referencedFiles = [], e.typeReferenceDirectives = [], e.libReferenceDirectives = [], e.amdDependencies = [], e.hasNoDefaultLib = false, e.pragmas.forEach((a4, _4) => {
switch (_4) {
case "reference": {
let { referencedFiles: f4, typeReferenceDirectives: h, libReferenceDirectives: T4 } = e;
jn2(bp2(a4), (k4) => {
let { types: c4, lib: W3, path: y4, ["resolution-mode"]: G3, preserve: E4 } = k4.arguments, D4 = E4 === "true" ? true : undefined;
if (k4.arguments["no-default-lib"] === "true")
e.hasNoDefaultLib = true;
else if (c4) {
let R3 = B6(G3, c4.pos, c4.end, t);
h.push({ pos: c4.pos, end: c4.end, fileName: c4.value, ...R3 ? { resolutionMode: R3 } : {}, ...D4 ? { preserve: D4 } : {} });
} else
W3 ? T4.push({ pos: W3.pos, end: W3.end, fileName: W3.value, ...D4 ? { preserve: D4 } : {} }) : y4 ? f4.push({ pos: y4.pos, end: y4.end, fileName: y4.value, ...D4 ? { preserve: D4 } : {} }) : t(k4.range.pos, k4.range.end - k4.range.pos, A2.Invalid_reference_directive_syntax);
});
break;
}
case "amd-dependency": {
e.amdDependencies = Pp2(bp2(a4), (f4) => ({ name: f4.arguments.name, path: f4.arguments.path }));
break;
}
case "amd-module": {
if (a4 instanceof Array)
for (let f4 of a4)
e.moduleName && t(f4.range.pos, f4.range.end - f4.range.pos, A2.An_AMD_module_cannot_have_multiple_name_assignments), e.moduleName = f4.arguments.name;
else
e.moduleName = a4.arguments.name;
break;
}
case "ts-nocheck":
case "ts-check": {
jn2(bp2(a4), (f4) => {
(!e.checkJsDirective || f4.range.pos > e.checkJsDirective.pos) && (e.checkJsDirective = { enabled: _4 === "ts-check", end: f4.range.end, pos: f4.range.pos });
});
break;
}
case "jsx":
case "jsxfrag":
case "jsximportsource":
case "jsxruntime":
return;
default:
q3.fail("Unhandled pragma kind");
}
});
}
var Dp2 = new Map;
function z6(e) {
if (Dp2.has(e))
return Dp2.get(e);
let t = new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`, "im");
return Dp2.set(e, t), t;
}
var V6 = /^\/\/\/\s*<(\S+)\s.*?\/>/m;
var W6 = /^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;
function G6(e, t, a4) {
let _4 = t.kind === 2 && V6.exec(a4);
if (_4) {
let h = _4[1].toLowerCase(), T4 = Pm2[h];
if (!T4 || !(T4.kind & 1))
return;
if (T4.args) {
let k4 = {};
for (let c4 of T4.args) {
let y4 = z6(c4.name).exec(a4);
if (!y4 && !c4.optional)
return;
if (y4) {
let G3 = y4[2] || y4[3];
if (c4.captureSpan) {
let E4 = t.pos + y4.index + y4[1].length + 1;
k4[c4.name] = { value: G3, pos: E4, end: E4 + G3.length };
} else
k4[c4.name] = G3;
}
}
e.push({ name: h, args: { arguments: k4, range: t } });
} else
e.push({ name: h, args: { arguments: {}, range: t } });
return;
}
let f4 = t.kind === 2 && W6.exec(a4);
if (f4)
return ym2(e, t, 2, f4);
if (t.kind === 3) {
let h = /@(\S+)(\s+(?:\S.*)?)?$/gm, T4;
for (;T4 = h.exec(a4); )
ym2(e, t, 4, T4);
}
}
function ym2(e, t, a4, _4) {
if (!_4)
return;
let f4 = _4[1].toLowerCase(), h = Pm2[f4];
if (!h || !(h.kind & a4))
return;
let T4 = _4[2], k4 = Y6(h, T4);
k4 !== "fail" && e.push({ name: f4, args: { arguments: k4, range: t } });
}
function Y6(e, t) {
if (!t)
return {};
if (!e.args)
return {};
let a4 = t.trim().split(/\s+/), _4 = {};
for (let f4 = 0;f4 < e.args.length; f4++) {
let h = e.args[f4];
if (!a4[f4] && !h.optional)
return "fail";
if (h.captureSpan)
return q3.fail("Capture spans not yet implemented for non-xml pragmas");
_4[h.name] = a4[f4];
}
return _4;
}
function pi3(e, t) {
return e.kind !== t.kind ? false : e.kind === 80 ? e.escapedText === t.escapedText : e.kind === 110 ? true : e.kind === 296 ? e.namespace.escapedText === t.namespace.escapedText && e.name.escapedText === t.name.escapedText : e.name.escapedText === t.name.escapedText && pi3(e.expression, t.expression);
}
var s_ = sf(g_.Latest, true);
function fh(e, t, a4, _4) {
let f4 = ff(e) ? new Gf(e, t, a4) : e === 80 ? new mh(80, t, a4) : e === 81 ? new hh(81, t, a4) : new dh(e, t, a4);
return f4.parent = _4, f4.flags = _4.flags & 101441536, f4;
}
var Gf = class {
constructor(e, t, a4) {
this.pos = t, this.end = a4, this.kind = e, this.id = 0, this.flags = 0, this.modifierFlagsCache = 0, this.transformFlags = 0, this.parent = undefined, this.original = undefined, this.emitNode = undefined;
}
assertHasRealPosition(e) {
q3.assert(!d_(this.pos) && !d_(this.end), e || "Node must have a real position for this operation");
}
getSourceFile() {
return hi3(this);
}
getStart(e, t) {
return this.assertHasRealPosition(), bl2(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 = hi3(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"), ah(this, e) ?? h6(this, e, H6(this, e));
}
getFirstToken(e) {
this.assertHasRealPosition();
let t = this.getChildren(e);
if (!t.length)
return;
let a4 = bm2(t, (_4) => _4.kind < 310 || _4.kind > 352);
return a4.kind < 167 ? a4 : a4.getFirstToken(e);
}
getLastToken(e) {
this.assertHasRealPosition();
let t = this.getChildren(e), a4 = Ba2(t);
if (a4)
return a4.kind < 167 ? a4 : a4.getLastToken(e);
}
forEachChild(e, t) {
return Xt3(this, e, t);
}
};
function H6(e, t) {
let a4 = [];
if (e2(e))
return e.forEachChild((T4) => {
a4.push(T4);
}), a4;
s_.setText((t || e.getSourceFile()).text);
let _4 = e.pos, f4 = (T4) => {
__(a4, _4, T4.pos, e), a4.push(T4), _4 = T4.end;
}, h = (T4) => {
__(a4, _4, T4.pos, e), a4.push(X6(T4, e)), _4 = T4.end;
};
return jn2(e.jsDoc, f4), _4 = e.pos, e.forEachChild(f4, h), __(a4, _4, e.end, e), s_.setText(undefined), a4;
}
function __(e, t, a4, _4) {
for (s_.resetTokenState(t);t < a4; ) {
let f4 = s_.scan(), h = s_.getTokenEnd();
if (h <= a4) {
if (f4 === 80) {
if (kb(_4))
continue;
q3.fail(`Did not expect ${q3.formatSyntaxKind(_4.kind)} to have an Identifier in its trivia`);
}
e.push(fh(f4, t, h, _4));
}
if (t = h, f4 === 1)
break;
}
}
function X6(e, t) {
let a4 = fh(353, e.pos, e.end, t), _4 = [], f4 = e.pos;
for (let h of e)
__(_4, f4, h.pos, t), _4.push(h), f4 = h.end;
return __(_4, f4, e.end, t), a4._children = _4, a4;
}
var Yf = class {
constructor(e, t, a4) {
this.pos = t, this.end = a4, this.kind = e, this.id = 0, this.flags = 0, this.transformFlags = 0, this.parent = undefined, this.emitNode = undefined;
}
getSourceFile() {
return hi3(this);
}
getStart(e, t) {
return bl2(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 || vt3;
}
getFirstToken() {}
getLastToken() {}
forEachChild() {}
};
var $6 = class {
constructor(e, t) {
this.flags = e, this.escapedName = t, this.declarations = undefined, this.valueDeclaration = undefined, this.id = 0, this.mergeId = 0, this.parent = undefined, this.members = undefined, this.exports = undefined, this.exportSymbol = undefined, this.constEnumOnlyModule = undefined, this.isReferenced = undefined, this.lastAssignmentPos = undefined, this.links = undefined;
}
getFlags() {
return this.flags;
}
get name() {
return Jp2(this);
}
getEscapedName() {
return this.escapedName;
}
getName() {
return this.name;
}
getDeclarations() {
return this.declarations;
}
getDocumentationComment(e) {
if (!this.documentationComment)
if (this.documentationComment = vt3, !this.declarations && Id(this) && this.links.target && Id(this.links.target) && this.links.target.links.tupleLabelDeclaration) {
let t = this.links.target.links.tupleLabelDeclaration;
this.documentationComment = a_([t], e);
} else
this.documentationComment = a_(this.declarations, e);
return this.documentationComment;
}
getContextualDocumentationComment(e, t) {
if (e) {
if (al2(e) && (this.contextualGetAccessorDocumentationComment || (this.contextualGetAccessorDocumentationComment = vt3, this.contextualGetAccessorDocumentationComment = a_(Hr3(this.declarations, al2), t)), e_(this.contextualGetAccessorDocumentationComment)))
return this.contextualGetAccessorDocumentationComment;
if (il2(e) && (this.contextualSetAccessorDocumentationComment || (this.contextualSetAccessorDocumentationComment = vt3, this.contextualSetAccessorDocumentationComment = a_(Hr3(this.declarations, il2), t)), e_(this.contextualSetAccessorDocumentationComment)))
return this.contextualSetAccessorDocumentationComment;
}
return this.getDocumentationComment(t);
}
getJsDocTags(e) {
return this.tags === undefined && (this.tags = vt3, this.tags = dl2(this.declarations, e)), this.tags;
}
getContextualJsDocTags(e, t) {
if (e) {
if (al2(e) && (this.contextualGetAccessorTags || (this.contextualGetAccessorTags = vt3, this.contextualGetAccessorTags = dl2(Hr3(this.declarations, al2), t)), e_(this.contextualGetAccessorTags)))
return this.contextualGetAccessorTags;
if (il2(e) && (this.contextualSetAccessorTags || (this.contextualSetAccessorTags = vt3, this.contextualSetAccessorTags = dl2(Hr3(this.declarations, il2), t)), e_(this.contextualSetAccessorTags)))
return this.contextualSetAccessorTags;
}
return this.getJsDocTags(t);
}
};
var dh = class extends Yf {
constructor(e, t, a4) {
super(e, t, a4);
}
};
var mh = class extends Yf {
constructor(e, t, a4) {
super(e, t, a4);
}
get text() {
return An2(this);
}
};
var hh = class extends Yf {
constructor(e, t, a4) {
super(e, t, a4);
}
get text() {
return An2(this);
}
};
var Q6 = 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) : undefined;
}
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 !!(kp2(this) & 3);
}
isClass() {
return !!(kp2(this) & 1);
}
isIndexType() {
return !!(this.flags & 4194304);
}
get typeArguments() {
if (kp2(this) & 4)
return this.checker.getTypeArguments(this);
}
};
var K6 = 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() && wb(t.type)) {
let a4 = t.type.getConstraint();
if (a4)
return this.checker.getIndexType(a4);
}
return t;
}
getDocumentationComment() {
return this.documentationComment || (this.documentationComment = a_(Ip2(this.declaration), this.checker));
}
getJsDocTags() {
return this.jsDocTags || (this.jsDocTags = dl2(Ip2(this.declaration), this.checker));
}
};
function yh(e) {
return Zm2(e).some((t) => t.tagName.text === "inheritDoc" || t.tagName.text === "inheritdoc");
}
function dl2(e, t) {
if (!e)
return vt3;
let a4 = ts_JsDoc_exports.getJsDocTagsFromDeclarations(e, t);
if (t && (a4.length === 0 || e.some(yh))) {
let _4 = new Set;
for (let f4 of e) {
let h = gh(t, f4, (T4) => {
var k4;
if (!_4.has(T4))
return _4.add(T4), f4.kind === 178 || f4.kind === 179 ? T4.getContextualJsDocTags(f4, t) : ((k4 = T4.declarations) == null ? undefined : k4.length) === 1 ? T4.getJsDocTags(t) : undefined;
});
h && (a4 = [...h, ...a4]);
}
}
return a4;
}
function a_(e, t) {
if (!e)
return vt3;
let a4 = ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e, t);
if (t && (a4.length === 0 || e.some(yh))) {
let _4 = new Set;
for (let f4 of e) {
let h = gh(t, f4, (T4) => {
if (!_4.has(T4))
return _4.add(T4), f4.kind === 178 || f4.kind === 179 ? T4.getContextualDocumentationComment(f4, t) : T4.getDocumentationComment(t);
});
h && (a4 = a4.length === 0 ? h.slice() : h.concat(lineBreakPart(), a4));
}
}
return a4;
}
function gh(e, t, a4) {
var _4;
let f4 = ((_4 = t.parent) == null ? undefined : _4.kind) === 177 ? t.parent.parent : t.parent;
if (!f4)
return;
let h = q22(t);
return sy(I2(f4), (T4) => {
let k4 = e.getTypeAtLocation(T4), c4 = h && k4.symbol ? e.getTypeOfSymbol(k4.symbol) : k4, W3 = e.getPropertyOfType(c4, t.symbol.name);
return W3 ? a4(W3) : undefined;
});
}
var Z6 = class extends Gf {
constructor(e, t, a4) {
super(e, t, a4);
}
update(e, t) {
return L6(this, e, t);
}
getLineAndCharacterOfPosition(e) {
return Bm2(this, e);
}
getLineStarts() {
return Mp2(this);
}
getPositionOfLineAndCharacter(e, t, a4) {
return rg(Mp2(this), e, t, this.text, a4);
}
getLineEndOfPosition(e) {
let { line: t } = this.getLineAndCharacterOfPosition(e), a4 = this.getLineStarts(), _4;
t + 1 >= a4.length && (_4 = this.getEnd()), _4 || (_4 = a4[t + 1] - 1);
let f4 = this.getFullText();
return f4[_4] === `
` && f4[_4 - 1] === "\r" ? _4 - 1 : _4;
}
getNamedDeclarations() {
return this.namedDeclarations || (this.namedDeclarations = this.computeNamedDeclarations()), this.namedDeclarations;
}
computeNamedDeclarations() {
let e = vy();
return this.forEachChild(f4), e;
function t(h) {
let T4 = _4(h);
T4 && e.add(T4, h);
}
function a4(h) {
let T4 = e.get(h);
return T4 || e.set(h, T4 = []), T4;
}
function _4(h) {
let T4 = lf(h);
return T4 && (kf(T4) && dr3(T4.expression) ? T4.expression.name.text : r1(T4) ? getNameFromPropertyName(T4) : undefined);
}
function f4(h) {
switch (h.kind) {
case 263:
case 219:
case 175:
case 174:
let T4 = h, k4 = _4(T4);
if (k4) {
let y4 = a4(k4), G3 = Ba2(y4);
G3 && T4.parent === G3.parent && T4.symbol === G3.symbol ? T4.body && !G3.body && (y4[y4.length - 1] = T4) : y4.push(T4);
}
Xt3(h, f4);
break;
case 264:
case 232:
case 265:
case 266:
case 267:
case 268:
case 272:
case 282:
case 277:
case 274:
case 275:
case 178:
case 179:
case 188:
t(h), Xt3(h, f4);
break;
case 170:
if (!v_(h, 31))
break;
case 261:
case 209: {
let y4 = h;
if (Wg(y4.name)) {
Xt3(y4.name, f4);
break;
}
y4.initializer && f4(y4.initializer);
}
case 307:
case 173:
case 172:
t(h);
break;
case 279:
let c4 = h;
c4.exportClause && ($1(c4.exportClause) ? jn2(c4.exportClause.elements, f4) : f4(c4.exportClause.name));
break;
case 273:
let W3 = h.importClause;
W3 && (W3.name && t(W3.name), W3.namedBindings && (W3.namedBindings.kind === 275 ? t(W3.namedBindings) : jn2(W3.namedBindings.elements, f4)));
break;
case 227:
yf(h) !== 0 && t(h);
default:
Xt3(h, f4);
}
}
}
};
var ev = class {
constructor(e, t, a4) {
this.fileName = e, this.text = t, this.skipTrivia = a4 || ((_4) => _4);
}
getLineAndCharacterOfPosition(e) {
return Bm2(this, e);
}
};
function tv() {
return { getNodeConstructor: () => Gf, getTokenConstructor: () => dh, getIdentifierConstructor: () => mh, getPrivateIdentifierConstructor: () => hh, getSourceFileConstructor: () => Z6, getSymbolConstructor: () => $6, getTypeConstructor: () => Q6, getSignatureConstructor: () => K6, getSourceMapSourceConstructor: () => ev };
}
var nv = ["getSemanticDiagnostics", "getSuggestionDiagnostics", "getCompilerOptionsDiagnostics", "getSemanticClassifications", "getEncodedSemanticClassifications", "getCodeFixesAtPosition", "getCombinedCodeFix", "applyCodeActionCommand", "organizeImports", "getEditsForFileRename", "getEmitOutput", "getApplicableRefactors", "getEditsForRefactor", "prepareCallHierarchy", "provideCallHierarchyIncomingCalls", "provideCallHierarchyOutgoingCalls", "provideInlayHints", "getSupportedCodeFixes", "getPasteEdits"];
var I3 = [...nv, "getCompletionsAtPosition", "getCompletionEntryDetails", "getCompletionEntrySymbol", "getSignatureHelpItems", "getQuickInfoAtPosition", "getDefinitionAtPosition", "getDefinitionAndBoundSpan", "getImplementationAtPosition", "getTypeDefinitionAtPosition", "getReferencesAtPosition", "findReferences", "getDocumentHighlights", "getNavigateToItems", "getRenameInfo", "findRenameLocations", "getApplicableRefactors", "preparePasteEditsForFile"];
_b(tv());
var Ml2 = new Proxy({}, { get: () => true });
var vh = Ml2["4.8"];
function Rn2(e, t = false) {
if (e != null) {
if (vh) {
if (t || Ol2(e)) {
let a4 = $m2(e);
return a4 ? [...a4] : undefined;
}
return;
}
return e.modifiers?.filter((a4) => !Cl2(a4));
}
}
function xi3(e, t = false) {
if (e != null) {
if (vh) {
if (t || Wf(e)) {
let a4 = uf(e);
return a4 ? [...a4] : undefined;
}
return;
}
return e.decorators?.filter(Cl2);
}
}
var Th = {};
var Ll2 = new Proxy({}, { get: (e, t) => t });
var xh = Ll2;
var Sh = Ll2;
var C = xh;
var Rt3 = Sh;
var av = Ml2["5.0"];
var ye3 = Ae3;
var sv = new Set([ye3.AmpersandAmpersandToken, ye3.BarBarToken, ye3.QuestionQuestionToken]);
var _v = new Set([Ae3.AmpersandAmpersandEqualsToken, Ae3.AmpersandEqualsToken, Ae3.AsteriskAsteriskEqualsToken, Ae3.AsteriskEqualsToken, Ae3.BarBarEqualsToken, Ae3.BarEqualsToken, Ae3.CaretEqualsToken, Ae3.EqualsToken, Ae3.GreaterThanGreaterThanEqualsToken, Ae3.GreaterThanGreaterThanGreaterThanEqualsToken, Ae3.LessThanLessThanEqualsToken, Ae3.MinusEqualsToken, Ae3.PercentEqualsToken, Ae3.PlusEqualsToken, Ae3.QuestionQuestionEqualsToken, Ae3.SlashEqualsToken]);
var ov = new Set([ye3.AmpersandAmpersandToken, ye3.AmpersandToken, ye3.AsteriskAsteriskToken, ye3.AsteriskToken, ye3.BarBarToken, ye3.BarToken, ye3.CaretToken, ye3.EqualsEqualsEqualsToken, ye3.EqualsEqualsToken, ye3.ExclamationEqualsEqualsToken, ye3.ExclamationEqualsToken, ye3.GreaterThanEqualsToken, ye3.GreaterThanGreaterThanGreaterThanToken, ye3.GreaterThanGreaterThanToken, ye3.GreaterThanToken, ye3.InKeyword, ye3.InstanceOfKeyword, ye3.LessThanEqualsToken, ye3.LessThanLessThanToken, ye3.LessThanToken, ye3.MinusToken, ye3.PercentToken, ye3.PlusToken, ye3.SlashToken]);
function cv(e) {
return _v.has(e.kind);
}
function lv(e) {
return sv.has(e.kind);
}
function uv(e) {
return ov.has(e.kind);
}
function Qr3(e) {
return nt3(e);
}
function wh(e) {
return e.kind !== ye3.SemicolonClassElement;
}
function Ge3(e, t) {
return Rn2(t)?.some((_4) => _4.kind === e) === true;
}
function kh(e) {
let t = Rn2(e);
return t == null ? null : t[t.length - 1] ?? null;
}
function Eh(e) {
return e.kind === ye3.CommaToken;
}
function pv(e) {
return e.kind === ye3.SingleLineCommentTrivia || e.kind === ye3.MultiLineCommentTrivia;
}
function fv(e) {
return e.kind === ye3.JSDocComment;
}
function Ah(e) {
if (cv(e))
return { type: C.AssignmentExpression, operator: Qr3(e.kind) };
if (lv(e))
return { type: C.LogicalExpression, operator: Qr3(e.kind) };
if (uv(e))
return { type: C.BinaryExpression, operator: Qr3(e.kind) };
throw new Error(`Unexpected binary operator ${nt3(e.kind)}`);
}
function x_(e, t) {
let a4 = t.getLineAndCharacterOfPosition(e);
return { column: a4.character, line: a4.line + 1 };
}
function Kr3(e, t) {
let [a4, _4] = e.map((f4) => x_(f4, t));
return { end: _4, start: a4 };
}
function Ch(e) {
if (e.kind === Ae3.Block)
switch (e.parent.kind) {
case Ae3.Constructor:
case Ae3.GetAccessor:
case Ae3.SetAccessor:
case Ae3.ArrowFunction:
case Ae3.FunctionExpression:
case Ae3.FunctionDeclaration:
case Ae3.MethodDeclaration:
return true;
default:
return false;
}
return true;
}
function sa3(e, t) {
return [e.getStart(t), e.getEnd()];
}
function dv(e) {
return e.kind >= ye3.FirstToken && e.kind <= ye3.LastToken;
}
function Dh(e) {
return e.kind >= ye3.JsxElement && e.kind <= ye3.JsxAttribute;
}
function S_(e) {
return e.flags & sn2.Let ? "let" : (e.flags & sn2.AwaitUsing) === sn2.AwaitUsing ? "await using" : e.flags & sn2.Const ? "const" : e.flags & sn2.Using ? "using" : "var";
}
function Si3(e) {
let t = Rn2(e);
if (t != null)
for (let a4 of t)
switch (a4.kind) {
case ye3.PublicKeyword:
return "public";
case ye3.ProtectedKeyword:
return "protected";
case ye3.PrivateKeyword:
return "private";
default:
break;
}
}
function er3(e, t, a4) {
return _4(t);
function _4(f4) {
return t1(f4) && f4.pos === e.end ? f4 : vv(f4.getChildren(a4), (h) => (h.pos <= e.pos && h.end > e.end || h.pos === e.end) && bv(h, a4) ? _4(h) : undefined);
}
}
function mv(e, t) {
let a4 = e;
for (;a4; ) {
if (t(a4))
return a4;
a4 = a4.parent;
}
}
function hv(e) {
return !!mv(e, Dh);
}
function Kf(e) {
return Wr3(0, e, /&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g, (t) => {
let a4 = t.slice(1, -1);
if (a4[0] === "#") {
let _4 = a4[1] === "x" ? parseInt(a4.slice(2), 16) : parseInt(a4.slice(1), 10);
return _4 > 1114111 ? t : String.fromCodePoint(_4);
}
return Th[a4] || t;
});
}
function _a2(e) {
return e.kind === ye3.ComputedPropertyName;
}
function Zf(e) {
return !!e.questionToken;
}
function ed(e) {
return e.type === C.ChainExpression;
}
function Ph(e, t) {
return ed(t) && e.expression.kind !== Ae3.ParenthesizedExpression;
}
function yv(e) {
if (e.kind === ye3.NullKeyword)
return Rt3.Null;
if (e.kind >= ye3.FirstKeyword && e.kind <= ye3.LastFutureReservedWord)
return e.kind === ye3.FalseKeyword || e.kind === ye3.TrueKeyword ? Rt3.Boolean : Rt3.Keyword;
if (e.kind >= ye3.FirstPunctuation && e.kind <= ye3.LastPunctuation)
return Rt3.Punctuator;
if (e.kind >= ye3.NoSubstitutionTemplateLiteral && e.kind <= ye3.TemplateTail)
return Rt3.Template;
switch (e.kind) {
case ye3.NumericLiteral:
case ye3.BigIntLiteral:
return Rt3.Numeric;
case ye3.PrivateIdentifier:
return Rt3.PrivateIdentifier;
case ye3.JsxText:
return Rt3.JSXText;
case ye3.StringLiteral:
return e.parent.kind === ye3.JsxAttribute || e.parent.kind === ye3.JsxElement ? Rt3.JSXText : Rt3.String;
case ye3.RegularExpressionLiteral:
return Rt3.RegularExpression;
case ye3.Identifier:
case ye3.ConstructorKeyword:
case ye3.GetKeyword:
case ye3.SetKeyword:
default:
}
if (e.kind === ye3.Identifier) {
if (Dh(e.parent))
return Rt3.JSXIdentifier;
if (e.parent.kind === ye3.PropertyAccessExpression && hv(e))
return Rt3.JSXIdentifier;
}
return Rt3.Identifier;
}
function gv(e, t) {
let a4 = e.kind === ye3.JsxText ? e.getFullStart() : e.getStart(t), _4 = e.getEnd(), f4 = t.text.slice(a4, _4), h = yv(e), T4 = [a4, _4], k4 = Kr3(T4, t);
return h === Rt3.RegularExpression ? { type: h, loc: k4, range: T4, regex: { flags: f4.slice(f4.lastIndexOf("/") + 1), pattern: f4.slice(1, f4.lastIndexOf("/")) }, value: f4 } : h === Rt3.PrivateIdentifier ? { type: h, loc: k4, range: T4, value: f4.slice(1) } : { type: h, loc: k4, range: T4, value: f4 };
}
function Nh(e) {
let t = [];
function a4(_4) {
pv(_4) || fv(_4) || (dv(_4) && _4.kind !== ye3.EndOfFileToken ? t.push(gv(_4, e)) : _4.getChildren(e).forEach(a4));
}
return a4(e), t;
}
var Qf = class extends Error {
fileName;
location;
constructor(t, a4, _4) {
super(t), this.fileName = a4, this.location = _4, Object.defineProperty(this, "name", { configurable: true, enumerable: false, value: new.target.name });
}
get index() {
return this.location.start.offset;
}
get lineNumber() {
return this.location.start.line;
}
get column() {
return this.location.start.column;
}
};
function w_(e, t, a4, _4 = a4) {
let [f4, h] = [a4, _4].map((T4) => {
let { character: k4, line: c4 } = t.getLineAndCharacterOfPosition(T4);
return { column: k4, line: c4 + 1, offset: T4 };
});
return new Qf(e, t.fileName, { end: h, start: f4 });
}
function bv(e, t) {
return e.kind === ye3.EndOfFileToken ? !!e.jsDoc : e.getWidth(t) !== 0;
}
function vv(e, t) {
if (e !== undefined)
for (let a4 = 0;a4 < e.length; a4++) {
let _4 = t(e[a4], a4);
if (_4 !== undefined)
return _4;
}
}
function Tv(e) {
return (av ? cf(e) : e.originalKeywordKind) === ye3.ThisKeyword;
}
function td(e) {
return !!e && e.kind === ye3.Identifier && Tv(e);
}
function Ih(e) {
if (!td(e))
return false;
for (;A1(e.parent) && e.parent.left === e; )
e = e.parent;
return e.parent.kind === ye3.TypeQuery;
}
function Jl2(e) {
switch (e.kind) {
case ye3.Identifier:
return true;
case ye3.PropertyAccessExpression:
case ye3.ElementAccessExpression:
return !(e.flags & sn2.OptionalChain);
case ye3.ParenthesizedExpression:
case ye3.TypeAssertionExpression:
case ye3.AsExpression:
case ye3.SatisfiesExpression:
case ye3.ExpressionWithTypeArguments:
case ye3.NonNullExpression:
return Jl2(e.expression);
default:
return false;
}
}
function Oh(e) {
let t = Rn2(e), a4 = e;
for (;(!t || t.length === 0) && Ti3(a4.parent); ) {
let _4 = Rn2(a4.parent);
_4?.length && (t = _4), a4 = a4.parent;
}
return t;
}
function Mh(e, t) {
return t.text.slice(e.pos, e.end).trimStart() || "(Missing)";
}
var ge3 = Ae3;
function xv(e) {
return e == null ? true : e.pos === e.end && e.pos >= 0 && e.kind !== ge3.EndOfFileToken;
}
function Lh(e) {
return !xv(e);
}
function Sv(e) {
return Ge3(ge3.AbstractKeyword, e);
}
function wv(e) {
if (e.parameters.length && !Il2(e)) {
let t = e.parameters[0];
if (kv(t))
return t;
}
return null;
}
function kv(e) {
return td(e.name);
}
function Ev(e) {
return of(e.parent, mf);
}
function Av(e) {
switch (e.kind) {
case ge3.ClassDeclaration:
return true;
case ge3.ClassExpression:
return true;
case ge3.PropertyDeclaration: {
let { parent: t } = e;
return !!(Ga2(t) || ra3(t) && !Sv(e));
}
case ge3.GetAccessor:
case ge3.SetAccessor:
case ge3.MethodDeclaration: {
let { parent: t } = e;
return !!e.body && (Ga2(t) || ra3(t));
}
case ge3.Parameter: {
let { parent: t } = e, a4 = t.parent;
return !!t && "body" in t && !!t.body && (t.kind === ge3.Constructor || t.kind === ge3.MethodDeclaration || t.kind === ge3.SetAccessor) && wv(t) !== e && !!a4 && a4.kind === ge3.ClassDeclaration;
}
}
return false;
}
function Cv(e) {
return !!(("illegalDecorators" in e) && e.illegalDecorators?.length);
}
function Ut3(e, t) {
let a4 = e.getSourceFile(), _4 = e.getStart(a4), f4 = e.getEnd();
throw w_(t, a4, _4, f4);
}
function Jh(e) {
Cv(e) && Ut3(e.illegalDecorators[0], "Decorators are not valid here.");
for (let t of xi3(e, true) ?? [])
Av(e) || (h_(e) && !Lh(e.body) ? Ut3(t, "A decorator can only decorate a method implementation, not an overload.") : Ut3(t, "Decorators are not valid here."));
for (let t of Rn2(e, true) ?? []) {
if (t.kind !== ge3.ReadonlyKeyword && ((e.kind === ge3.PropertySignature || e.kind === ge3.MethodSignature) && Ut3(t, `'${nt3(t.kind)}' modifier cannot appear on a type member`), e.kind === ge3.IndexSignature && (t.kind !== ge3.StaticKeyword || !ra3(e.parent)) && Ut3(t, `'${nt3(t.kind)}' modifier cannot appear on an index signature`)), t.kind !== ge3.InKeyword && t.kind !== ge3.OutKeyword && t.kind !== ge3.ConstKeyword && e.kind === ge3.TypeParameter && Ut3(t, `'${nt3(t.kind)}' modifier cannot appear on a type parameter`), (t.kind === ge3.InKeyword || t.kind === ge3.OutKeyword) && (e.kind !== ge3.TypeParameter || !(T_(e.parent) || ra3(e.parent) || Nl2(e.parent))) && Ut3(t, `'${nt3(t.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`), t.kind === ge3.ReadonlyKeyword && e.kind !== ge3.PropertyDeclaration && e.kind !== ge3.PropertySignature && e.kind !== ge3.IndexSignature && e.kind !== ge3.Parameter && Ut3(t, "'readonly' modifier can only appear on a property declaration or index signature."), t.kind === ge3.DeclareKeyword && ra3(e.parent) && !Wa2(e) && Ut3(t, `'${nt3(t.kind)}' modifier cannot appear on class elements of this kind.`), t.kind === ge3.DeclareKeyword && Xa2(e)) {
let a4 = S_(e.declarationList);
(a4 === "using" || a4 === "await using") && Ut3(t, `'declare' modifier cannot appear on a '${a4}' declaration.`);
}
if (t.kind === ge3.AbstractKeyword && e.kind !== ge3.ClassDeclaration && e.kind !== ge3.ConstructorType && e.kind !== ge3.MethodDeclaration && e.kind !== ge3.PropertyDeclaration && e.kind !== ge3.GetAccessor && e.kind !== ge3.SetAccessor && Ut3(t, `'${nt3(t.kind)}' modifier can only appear on a class, method, or property declaration.`), (t.kind === ge3.StaticKeyword || t.kind === ge3.PublicKeyword || t.kind === ge3.ProtectedKeyword || t.kind === ge3.PrivateKeyword) && (e.parent.kind === ge3.ModuleBlock || e.parent.kind === ge3.SourceFile) && Ut3(t, `'${nt3(t.kind)}' modifier cannot appear on a module or namespace element.`), t.kind === ge3.AccessorKeyword && e.kind !== ge3.PropertyDeclaration && Ut3(t, "'accessor' modifier can only appear on a property declaration."), t.kind === ge3.AsyncKeyword && e.kind !== ge3.MethodDeclaration && e.kind !== ge3.FunctionDeclaration && e.kind !== ge3.FunctionExpression && e.kind !== ge3.ArrowFunction && Ut3(t, "'async' modifier cannot be used here."), e.kind === ge3.Parameter && (t.kind === ge3.StaticKeyword || t.kind === ge3.ExportKeyword || t.kind === ge3.DeclareKeyword || t.kind === ge3.AsyncKeyword) && Ut3(t, `'${nt3(t.kind)}' modifier cannot appear on a parameter.`), t.kind === ge3.PublicKeyword || t.kind === ge3.ProtectedKeyword || t.kind === ge3.PrivateKeyword)
for (let a4 of Rn2(e) ?? [])
a4 !== t && (a4.kind === ge3.PublicKeyword || a4.kind === ge3.ProtectedKeyword || a4.kind === ge3.PrivateKeyword) && Ut3(a4, "Accessibility modifier already seen.");
if (e.kind === ge3.Parameter && (t.kind === ge3.PublicKeyword || t.kind === ge3.PrivateKeyword || t.kind === ge3.ProtectedKeyword || t.kind === ge3.ReadonlyKeyword || t.kind === ge3.OverrideKeyword)) {
let a4 = Ev(e);
a4?.kind === ge3.Constructor && Lh(a4.body) || Ut3(t, "A parameter property is only allowed in a constructor implementation.");
let _4 = e;
_4.dotDotDotToken && Ut3(t, "A parameter property cannot be a rest parameter."), (_4.name.kind === ge3.ArrayBindingPattern || _4.name.kind === ge3.ObjectBindingPattern) && Ut3(t, "A parameter property may not be declared using a binding pattern.");
}
t.kind !== ge3.AsyncKeyword && e.kind === ge3.MethodDeclaration && e.parent.kind === ge3.ObjectLiteralExpression && Ut3(t, `'${nt3(t.kind)}' modifier cannot be used here.`);
}
}
var x4 = Ae3;
function nd(e) {
return w_("message" in e && e.message || e.messageText, e.file, e.start);
}
function Pv(e) {
return dr3(e) && Ke3(e.name) && jh(e.expression);
}
function jh(e) {
return e.kind === x4.Identifier || Pv(e);
}
var Rl2 = class {
allowPattern = false;
ast;
esTreeNodeToTSNodeMap = new WeakMap;
options;
tsNodeToESTreeNodeMap = new WeakMap;
constructor(t, a4) {
this.ast = t, this.options = { ...a4 };
}
#r(t, a4) {
let _4 = a4 === Ae3.ForInStatement ? "for...in" : "for...of";
if (H1(t)) {
t.declarations.length !== 1 && this.#e(t, `Only a single variable declaration is allowed in a '${_4}' statement.`);
let f4 = t.declarations[0];
f4.initializer ? this.#e(f4, `The variable declaration of a '${_4}' statement cannot have an initializer.`) : f4.type && this.#e(f4, `The variable declaration of a '${_4}' statement cannot have a type annotation.`), a4 === Ae3.ForInStatement && t.flags & sn2.Using && this.#e(t, "The left-hand side of a 'for...in' statement cannot be a 'using' declaration.");
} else
!Jl2(t) && t.kind !== Ae3.ObjectLiteralExpression && t.kind !== Ae3.ArrayLiteralExpression && this.#e(t, `The left-hand side of a '${_4}' statement must be a variable or a property access.`);
}
#i(t) {
this.options.allowInvalidAST || Jh(t);
}
#e(t, a4) {
if (this.options.allowInvalidAST)
return;
let _4, f4;
throw Array.isArray(t) ? [_4, f4] = t : typeof t == "number" ? _4 = f4 = t : (_4 = t.getStart(this.ast), f4 = t.getEnd()), w_(a4, this.ast, _4, f4);
}
#t(t, a4, _4, f4 = false) {
let h = f4;
return Object.defineProperty(t, a4, { configurable: true, get: this.options.suppressDeprecatedPropertyWarnings ? () => t[_4] : () => (h || (undefined(`The '${a4}' property is deprecated on ${t.type} nodes. Use '${_4}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`, "DeprecationWarning"), h = true), t[_4]), set(T4) {
Object.defineProperty(t, a4, { enumerable: true, value: T4, writable: true });
} }), t;
}
#n(t, a4, _4, f4) {
let h = false;
return Object.defineProperty(t, a4, { configurable: true, get: this.options.suppressDeprecatedPropertyWarnings ? () => f4 : () => {
if (!h) {
let T4 = `The '${a4}' property is deprecated on ${t.type} nodes.`;
_4 && (T4 += ` Use ${_4} instead.`), T4 += " See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.", undefined(T4, "DeprecationWarning"), h = true;
}
return f4;
}, set(T4) {
Object.defineProperty(t, a4, { enumerable: true, value: T4, writable: true });
} }), t;
}
assertModuleSpecifier(t, a4) {
!a4 && t.moduleSpecifier == null && this.#e(t, "Module specifier must be a string literal."), t.moduleSpecifier && t.moduleSpecifier?.kind !== x4.StringLiteral && this.#e(t.moduleSpecifier, "Module specifier must be a string literal.");
}
convertBindingNameWithTypeAnnotation(t, a4, _4) {
let f4 = this.convertPattern(t);
return a4 && (f4.typeAnnotation = this.convertTypeAnnotation(a4, _4), this.fixParentLocation(f4, f4.typeAnnotation.range)), f4;
}
convertBodyExpressions(t, a4) {
let _4 = Ch(a4);
return t.map((f4) => {
let h = this.convertChild(f4);
if (_4) {
if (h?.expression && Pl2(f4) && vi3(f4.expression)) {
let T4 = h.expression.raw;
return h.directive = T4.slice(1, -1), h;
}
_4 = false;
}
return h;
}).filter((f4) => f4);
}
convertChainExpression(t, a4) {
let { child: _4, isOptional: f4 } = t.type === C.MemberExpression ? { child: t.object, isOptional: t.optional } : t.type === C.CallExpression ? { child: t.callee, isOptional: t.optional } : { child: t.expression, isOptional: false }, h = Ph(a4, _4);
if (!h && !f4)
return t;
if (h && ed(_4)) {
let T4 = _4.expression;
t.type === C.MemberExpression ? t.object = T4 : t.type === C.CallExpression ? t.callee = T4 : t.expression = T4;
}
return this.createNode(a4, { type: C.ChainExpression, expression: t });
}
convertChild(t, a4) {
return this.converter(t, a4, false);
}
convertChildren(t, a4) {
return t.map((_4) => this.converter(_4, a4, false));
}
convertPattern(t, a4) {
return this.converter(t, a4, true);
}
convertTypeAnnotation(t, a4) {
let _4 = a4?.kind === x4.FunctionType || a4?.kind === x4.ConstructorType ? 2 : 1, h = [t.getFullStart() - _4, t.end], T4 = Kr3(h, this.ast);
return { type: C.TSTypeAnnotation, loc: T4, range: h, typeAnnotation: this.convertChild(t) };
}
convertTypeArgumentsToTypeParameterInstantiation(t, a4) {
let _4 = er3(t, this.ast, this.ast), f4 = [t.pos - 1, _4.end];
return t.length === 0 && this.#e(f4, "Type argument list cannot be empty."), this.createNode(a4, { type: C.TSTypeParameterInstantiation, range: f4, params: this.convertChildren(t) });
}
convertTSTypeParametersToTypeParametersDeclaration(t) {
let a4 = er3(t, this.ast, this.ast), _4 = [t.pos - 1, a4.end];
return t.length === 0 && this.#e(_4, "Type parameter list cannot be empty."), { type: C.TSTypeParameterDeclaration, loc: Kr3(_4, this.ast), range: _4, params: this.convertChildren(t) };
}
convertParameters(t) {
return t?.length ? t.map((a4) => {
let _4 = this.convertChild(a4);
return _4.decorators = this.convertChildren(xi3(a4) ?? []), _4;
}) : [];
}
converter(t, a4, _4) {
if (!t)
return null;
this.#i(t);
let f4 = this.allowPattern;
_4 != null && (this.allowPattern = _4);
let h = this.convertNode(t, a4 ?? t.parent);
return this.registerTSNodeInNodeMap(t, h), this.allowPattern = f4, h;
}
convertImportAttributes(t) {
let a4 = t.attributes ?? t.assertClause;
return this.convertChildren(a4?.elements ?? []);
}
convertJSXIdentifier(t) {
let a4 = this.createNode(t, { type: C.JSXIdentifier, name: t.getText() });
return this.registerTSNodeInNodeMap(t, a4), a4;
}
convertJSXNamespaceOrIdentifier(t) {
if (t.kind === Ae3.JsxNamespacedName) {
let f4 = this.createNode(t, { type: C.JSXNamespacedName, name: this.createNode(t.name, { type: C.JSXIdentifier, name: t.name.text }), namespace: this.createNode(t.namespace, { type: C.JSXIdentifier, name: t.namespace.text }) });
return this.registerTSNodeInNodeMap(t, f4), f4;
}
let a4 = t.getText(), _4 = a4.indexOf(":");
if (_4 > 0) {
let f4 = sa3(t, this.ast), h = this.createNode(t, { type: C.JSXNamespacedName, range: f4, name: this.createNode(t, { type: C.JSXIdentifier, range: [f4[0] + _4 + 1, f4[1]], name: a4.slice(_4 + 1) }), namespace: this.createNode(t, { type: C.JSXIdentifier, range: [f4[0], f4[0] + _4], name: a4.slice(0, _4) }) });
return this.registerTSNodeInNodeMap(t, h), h;
}
return this.convertJSXIdentifier(t);
}
convertJSXTagName(t, a4) {
let _4;
switch (t.kind) {
case x4.PropertyAccessExpression:
t.name.kind === x4.PrivateIdentifier && this.#e(t.name, "Non-private identifier expected."), _4 = this.createNode(t, { type: C.JSXMemberExpression, object: this.convertJSXTagName(t.expression, a4), property: this.convertJSXIdentifier(t.name) });
break;
case x4.ThisKeyword:
case x4.Identifier:
default:
return this.convertJSXNamespaceOrIdentifier(t);
}
return this.registerTSNodeInNodeMap(t, _4), _4;
}
convertMethodSignature(t) {
return this.createNode(t, { type: C.TSMethodSignature, accessibility: Si3(t), computed: _a2(t.name), key: this.convertChild(t.name), kind: (() => {
switch (t.kind) {
case x4.GetAccessor:
return "get";
case x4.SetAccessor:
return "set";
case x4.MethodSignature:
return "method";
}
})(), optional: Zf(t), params: this.convertParameters(t.parameters), readonly: Ge3(x4.ReadonlyKeyword, t), returnType: t.type && this.convertTypeAnnotation(t.type, t), static: Ge3(x4.StaticKeyword, t), typeParameters: t.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters) });
}
fixParentLocation(t, a4) {
a4[0] < t.range[0] && (t.range[0] = a4[0], t.loc.start = x_(t.range[0], this.ast)), a4[1] > t.range[1] && (t.range[1] = a4[1], t.loc.end = x_(t.range[1], this.ast));
}
convertNode(t, a4) {
switch (t.kind) {
case x4.SourceFile:
return this.createNode(t, { type: C.Program, range: [t.getStart(this.ast), t.endOfFileToken.end], body: this.convertBodyExpressions(t.statements, t), comments: undefined, sourceType: t.externalModuleIndicator ? "module" : "script", tokens: undefined });
case x4.Block:
return this.createNode(t, { type: C.BlockStatement, body: this.convertBodyExpressions(t.statements, t) });
case x4.Identifier:
return Ih(t) ? this.createNode(t, { type: C.ThisExpression }) : this.createNode(t, { type: C.Identifier, decorators: [], name: t.text, optional: false, typeAnnotation: undefined });
case x4.PrivateIdentifier:
return this.createNode(t, { type: C.PrivateIdentifier, name: t.text.slice(1) });
case x4.WithStatement:
return this.createNode(t, { type: C.WithStatement, body: this.convertChild(t.statement), object: this.convertChild(t.expression) });
case x4.ReturnStatement:
return this.createNode(t, { type: C.ReturnStatement, argument: this.convertChild(t.expression) });
case x4.LabeledStatement:
return this.createNode(t, { type: C.LabeledStatement, body: this.convertChild(t.statement), label: this.convertChild(t.label) });
case x4.ContinueStatement:
return this.createNode(t, { type: C.ContinueStatement, label: this.convertChild(t.label) });
case x4.BreakStatement:
return this.createNode(t, { type: C.BreakStatement, label: this.convertChild(t.label) });
case x4.IfStatement:
return this.createNode(t, { type: C.IfStatement, alternate: this.convertChild(t.elseStatement), consequent: this.convertChild(t.thenStatement), test: this.convertChild(t.expression) });
case x4.SwitchStatement:
return t.caseBlock.clauses.filter((_4) => _4.kind === x4.DefaultClause).length > 1 && this.#e(t, "A 'default' clause cannot appear more than once in a 'switch' statement."), this.createNode(t, { type: C.SwitchStatement, cases: this.convertChildren(t.caseBlock.clauses), discriminant: this.convertChild(t.expression) });
case x4.CaseClause:
case x4.DefaultClause:
return this.createNode(t, { type: C.SwitchCase, consequent: this.convertChildren(t.statements), test: t.kind === x4.CaseClause ? this.convertChild(t.expression) : null });
case x4.ThrowStatement:
return t.expression.end === t.expression.pos && this.#e(t, "A throw statement must throw an expression."), this.createNode(t, { type: C.ThrowStatement, argument: this.convertChild(t.expression) });
case x4.TryStatement:
return this.createNode(t, { type: C.TryStatement, block: this.convertChild(t.tryBlock), finalizer: this.convertChild(t.finallyBlock), handler: this.convertChild(t.catchClause) });
case x4.CatchClause:
return t.variableDeclaration?.initializer && this.#e(t.variableDeclaration.initializer, "Catch clause variable cannot have an initializer."), this.createNode(t, { type: C.CatchClause, body: this.convertChild(t.block), param: t.variableDeclaration ? this.convertBindingNameWithTypeAnnotation(t.variableDeclaration.name, t.variableDeclaration.type) : null });
case x4.WhileStatement:
return this.createNode(t, { type: C.WhileStatement, body: this.convertChild(t.statement), test: this.convertChild(t.expression) });
case x4.DoStatement:
return this.createNode(t, { type: C.DoWhileStatement, body: this.convertChild(t.statement), test: this.convertChild(t.expression) });
case x4.ForStatement:
return this.createNode(t, { type: C.ForStatement, body: this.convertChild(t.statement), init: this.convertChild(t.initializer), test: this.convertChild(t.condition), update: this.convertChild(t.incrementor) });
case x4.ForInStatement:
return this.#r(t.initializer, t.kind), this.createNode(t, { type: C.ForInStatement, body: this.convertChild(t.statement), left: this.convertPattern(t.initializer), right: this.convertChild(t.expression) });
case x4.ForOfStatement:
return this.#r(t.initializer, t.kind), this.createNode(t, { type: C.ForOfStatement, await: !!(t.awaitModifier && t.awaitModifier.kind === x4.AwaitKeyword), body: this.convertChild(t.statement), left: this.convertPattern(t.initializer), right: this.convertChild(t.expression) });
case x4.FunctionDeclaration: {
let _4 = Ge3(x4.DeclareKeyword, t), f4 = Ge3(x4.AsyncKeyword, t), h = !!t.asteriskToken;
_4 ? t.body ? this.#e(t, "An implementation cannot be declared in ambient contexts.") : f4 ? this.#e(t, "'async' modifier cannot be used in an ambient context.") : h && this.#e(t, "Generators are not allowed in an ambient context.") : !t.body && h && this.#e(t, "A function signature cannot be declared as a generator.");
let T4 = this.createNode(t, { type: t.body ? C.FunctionDeclaration : C.TSDeclareFunction, async: f4, body: this.convertChild(t.body) || undefined, declare: _4, expression: false, generator: h, id: this.convertChild(t.name), params: this.convertParameters(t.parameters), returnType: t.type && this.convertTypeAnnotation(t.type, t), typeParameters: t.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters) });
return this.fixExports(t, T4);
}
case x4.VariableDeclaration: {
let _4 = !!t.exclamationToken, f4 = this.convertChild(t.initializer), h = this.convertBindingNameWithTypeAnnotation(t.name, t.type, t);
return _4 && (f4 ? this.#e(t, "Declarations with initializers cannot also have definite assignment assertions.") : (h.type !== C.Identifier || !h.typeAnnotation) && this.#e(t, "Declarations with definite assignment assertions must also have type annotations.")), this.createNode(t, { type: C.VariableDeclarator, definite: _4, id: h, init: f4 });
}
case x4.VariableStatement: {
let _4 = this.createNode(t, { type: C.VariableDeclaration, declarations: this.convertChildren(t.declarationList.declarations), declare: Ge3(x4.DeclareKeyword, t), kind: S_(t.declarationList) });
return _4.declarations.length || this.#e(t, "A variable declaration list must have at least one variable declarator."), (_4.kind === "using" || _4.kind === "await using") && t.declarationList.declarations.forEach((f4, h) => {
_4.declarations[h].init == null && this.#e(f4, `'${_4.kind}' declarations must be initialized.`), _4.declarations[h].id.type !== C.Identifier && this.#e(f4.name, `'${_4.kind}' declarations may not have binding patterns.`);
}), (_4.declare || ["await using", "const", "using"].includes(_4.kind)) && t.declarationList.declarations.forEach((f4, h) => {
_4.declarations[h].definite && this.#e(f4, "A definite assignment assertion '!' is not permitted in this context.");
}), _4.declare && t.declarationList.declarations.forEach((f4, h) => {
_4.declarations[h].init && (["let", "var"].includes(_4.kind) || _4.declarations[h].id.typeAnnotation) && this.#e(f4, "Initializers are not permitted in ambient contexts.");
}), this.fixExports(t, _4);
}
case x4.VariableDeclarationList: {
let _4 = this.createNode(t, { type: C.VariableDeclaration, declarations: this.convertChildren(t.declarations), declare: false, kind: S_(t) });
return (_4.kind === "using" || _4.kind === "await using") && t.declarations.forEach((f4, h) => {
_4.declarations[h].init != null && this.#e(f4, `'${_4.kind}' declarations may not be initialized in for statement.`), _4.declarations[h].id.type !== C.Identifier && this.#e(f4.name, `'${_4.kind}' declarations may not have binding patterns.`);
}), _4;
}
case x4.ExpressionStatement:
return this.createNode(t, { type: C.ExpressionStatement, directive: undefined, expression: this.convertChild(t.expression) });
case x4.ThisKeyword:
return this.createNode(t, { type: C.ThisExpression });
case x4.ArrayLiteralExpression:
return this.allowPattern ? this.createNode(t, { type: C.ArrayPattern, decorators: [], elements: t.elements.map((_4) => this.convertPattern(_4)), optional: false, typeAnnotation: undefined }) : this.createNode(t, { type: C.ArrayExpression, elements: this.convertChildren(t.elements) });
case x4.ObjectLiteralExpression: {
if (this.allowPattern)
return this.createNode(t, { type: C.ObjectPattern, decorators: [], optional: false, properties: t.properties.map((f4) => this.convertPattern(f4)), typeAnnotation: undefined });
let _4 = [];
for (let f4 of t.properties)
(f4.kind === x4.GetAccessor || f4.kind === x4.SetAccessor || f4.kind === x4.MethodDeclaration) && !f4.body && this.#e(f4.end - 1, "'{' expected."), _4.push(this.convertChild(f4));
return this.createNode(t, { type: C.ObjectExpression, properties: _4 });
}
case x4.PropertyAssignment: {
let { exclamationToken: _4, questionToken: f4 } = t;
return f4 && this.#e(f4, "A property assignment cannot have a question token."), _4 && this.#e(_4, "A property assignment cannot have an exclamation token."), this.createNode(t, { type: C.Property, computed: _a2(t.name), key: this.convertChild(t.name), kind: "init", method: false, optional: false, shorthand: false, value: this.converter(t.initializer, t, this.allowPattern) });
}
case x4.ShorthandPropertyAssignment: {
let { exclamationToken: _4, modifiers: f4, questionToken: h } = t;
return f4 && this.#e(f4[0], "A shorthand property assignment cannot have modifiers."), h && this.#e(h, "A shorthand property assignment cannot have a question token."), _4 && this.#e(_4, "A shorthand property assignment cannot have an exclamation token."), t.objectAssignmentInitializer ? this.createNode(t, { type: C.Property, computed: false, key: this.convertChild(t.name), kind: "init", method: false, optional: false, shorthand: true, value: this.createNode(t, { type: C.AssignmentPattern, decorators: [], left: this.convertPattern(t.name), optional: false, right: this.convertChild(t.objectAssignmentInitializer), typeAnnotation: undefined }) }) : this.createNode(t, { type: C.Property, computed: false, key: this.convertChild(t.name), kind: "init", method: false, optional: false, shorthand: true, value: this.convertChild(t.name) });
}
case x4.ComputedPropertyName:
return this.convertChild(t.expression);
case x4.PropertyDeclaration: {
let _4 = Ge3(x4.AbstractKeyword, t);
_4 && t.initializer && this.#e(t.initializer, "Abstract property cannot have an initializer."), t.name.kind === x4.StringLiteral && t.name.text === "constructor" && this.#e(t.name, "Classes may not have a field named 'constructor'.");
let f4 = Ge3(x4.AccessorKeyword, t), h = f4 ? _4 ? C.TSAbstractAccessorProperty : C.AccessorProperty : _4 ? C.TSAbstractPropertyDefinition : C.PropertyDefinition, T4 = this.convertChild(t.name);
return this.createNode(t, { type: h, accessibility: Si3(t), computed: _a2(t.name), declare: Ge3(x4.DeclareKeyword, t), decorators: this.convertChildren(xi3(t) ?? []), definite: !!t.exclamationToken, key: T4, optional: (T4.type === C.Literal || t.name.kind === x4.Identifier || t.name.kind === x4.ComputedPropertyName || t.name.kind === x4.PrivateIdentifier) && !!t.questionToken, override: Ge3(x4.OverrideKeyword, t), readonly: Ge3(x4.ReadonlyKeyword, t), static: Ge3(x4.StaticKeyword, t), typeAnnotation: t.type && this.convertTypeAnnotation(t.type, t), value: _4 ? null : this.convertChild(t.initializer) });
}
case x4.GetAccessor:
case x4.SetAccessor:
if (t.parent.kind === x4.InterfaceDeclaration || t.parent.kind === x4.TypeLiteral)
return this.convertMethodSignature(t);
case x4.MethodDeclaration: {
let _4 = Ge3(x4.AbstractKeyword, t);
_4 && t.body && this.#e(t.name, t.kind === x4.GetAccessor || t.kind === x4.SetAccessor ? "An abstract accessor cannot have an implementation." : `Method '${Mh(t.name, this.ast)}' cannot have an implementation because it is marked abstract.`);
let f4 = this.createNode(t, { type: t.body ? C.FunctionExpression : C.TSEmptyBodyFunctionExpression, range: [t.parameters.pos - 1, t.end], async: Ge3(x4.AsyncKeyword, t), body: this.convertChild(t.body), declare: false, expression: false, generator: !!t.asteriskToken, id: null, params: [], returnType: t.type && this.convertTypeAnnotation(t.type, t), typeParameters: t.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters) });
f4.typeParameters && this.fixParentLocation(f4, f4.typeParameters.range);
let h;
if (a4.kind === x4.ObjectLiteralExpression)
f4.params = this.convertChildren(t.parameters), h = this.createNode(t, { type: C.Property, computed: _a2(t.name), key: this.convertChild(t.name), kind: "init", method: t.kind === x4.MethodDeclaration, optional: !!t.questionToken, shorthand: false, value: f4 });
else {
f4.params = this.convertParameters(t.parameters);
let T4 = _4 ? C.TSAbstractMethodDefinition : C.MethodDefinition;
h = this.createNode(t, { type: T4, accessibility: Si3(t), computed: _a2(t.name), decorators: this.convertChildren(xi3(t) ?? []), key: this.convertChild(t.name), kind: "method", optional: !!t.questionToken, override: Ge3(x4.OverrideKeyword, t), static: Ge3(x4.StaticKeyword, t), value: f4 });
}
return t.kind === x4.GetAccessor ? h.kind = "get" : t.kind === x4.SetAccessor ? h.kind = "set" : !h.static && t.name.kind === x4.StringLiteral && t.name.text === "constructor" && h.type !== C.Property && (h.kind = "constructor"), h;
}
case x4.Constructor: {
let _4 = kh(t), f4 = (_4 && er3(_4, t, this.ast)) ?? t.getFirstToken(), h = this.createNode(t, { type: t.body ? C.FunctionExpression : C.TSEmptyBodyFunctionExpression, range: [t.parameters.pos - 1, t.end], async: false, body: this.convertChild(t.body), declare: false, expression: false, generator: false, id: null, params: this.convertParameters(t.parameters), returnType: t.type && this.convertTypeAnnotation(t.type, t), typeParameters: t.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters) });
h.typeParameters && this.fixParentLocation(h, h.typeParameters.range);
let T4 = f4.kind === x4.StringLiteral ? this.createNode(f4, { type: C.Literal, raw: f4.getText(), value: "constructor" }) : this.createNode(t, { type: C.Identifier, range: [f4.getStart(this.ast), f4.end], decorators: [], name: "constructor", optional: false, typeAnnotation: undefined }), k4 = Ge3(x4.StaticKeyword, t);
return this.createNode(t, { type: Ge3(x4.AbstractKeyword, t) ? C.TSAbstractMethodDefinition : C.MethodDefinition, accessibility: Si3(t), computed: false, decorators: [], key: T4, kind: k4 ? "method" : "constructor", optional: false, override: false, static: k4, value: h });
}
case x4.FunctionExpression:
return this.createNode(t, { type: C.FunctionExpression, async: Ge3(x4.AsyncKeyword, t), body: this.convertChild(t.body), declare: false, expression: false, generator: !!t.asteriskToken, id: this.convertChild(t.name), params: this.convertParameters(t.parameters), returnType: t.type && this.convertTypeAnnotation(t.type, t), typeParameters: t.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters) });
case x4.SuperKeyword:
return this.createNode(t, { type: C.Super });
case x4.ArrayBindingPattern:
return this.createNode(t, { type: C.ArrayPattern, decorators: [], elements: t.elements.map((_4) => this.convertPattern(_4)), optional: false, typeAnnotation: undefined });
case x4.OmittedExpression:
return null;
case x4.ObjectBindingPattern:
return this.createNode(t, { type: C.ObjectPattern, decorators: [], optional: false, properties: t.elements.map((_4) => this.convertPattern(_4)), typeAnnotation: undefined });
case x4.BindingElement: {
if (a4.kind === x4.ArrayBindingPattern) {
let f4 = this.convertChild(t.name, a4);
return t.initializer ? this.createNode(t, { type: C.AssignmentPattern, decorators: [], left: f4, optional: false, right: this.convertChild(t.initializer), typeAnnotation: undefined }) : t.dotDotDotToken ? this.createNode(t, { type: C.RestElement, argument: f4, decorators: [], optional: false, typeAnnotation: undefined, value: undefined }) : f4;
}
let _4;
return t.dotDotDotToken ? _4 = this.createNode(t, { type: C.RestElement, argument: this.convertChild(t.propertyName ?? t.name), decorators: [], optional: false, typeAnnotation: undefined, value: undefined }) : _4 = this.createNode(t, { type: C.Property, computed: !!(t.propertyName && t.propertyName.kind === x4.ComputedPropertyName), key: this.convertChild(t.propertyName ?? t.name), kind: "init", method: false, optional: false, shorthand: !t.propertyName, value: this.convertChild(t.name) }), t.initializer && (_4.value = this.createNode(t, { type: C.AssignmentPattern, range: [t.name.getStart(this.ast), t.initializer.end], decorators: [], left: this.convertChild(t.name), optional: false, right: this.convertChild(t.initializer), typeAnnotation: undefined })), _4;
}
case x4.ArrowFunction:
return this.createNode(t, { type: C.ArrowFunctionExpression, async: Ge3(x4.AsyncKeyword, t), body: this.convertChild(t.body), expression: t.body.kind !== x4.Block, generator: false, id: null, params: this.convertParameters(t.parameters), returnType: t.type && this.convertTypeAnnotation(t.type, t), typeParameters: t.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters) });
case x4.YieldExpression:
return this.createNode(t, { type: C.YieldExpression, argument: this.convertChild(t.expression), delegate: !!t.asteriskToken });
case x4.AwaitExpression:
return this.createNode(t, { type: C.AwaitExpression, argument: this.convertChild(t.expression) });
case x4.NoSubstitutionTemplateLiteral:
return this.createNode(t, { type: C.TemplateLiteral, expressions: [], quasis: [this.createNode(t, { type: C.TemplateElement, tail: true, value: { cooked: t.text, raw: this.ast.text.slice(t.getStart(this.ast) + 1, t.end - 1) } })] });
case x4.TemplateExpression: {
let _4 = this.createNode(t, { type: C.TemplateLiteral, expressions: [], quasis: [this.convertChild(t.head)] });
return t.templateSpans.forEach((f4) => {
_4.expressions.push(this.convertChild(f4.expression)), _4.quasis.push(this.convertChild(f4.literal));
}), _4;
}
case x4.TaggedTemplateExpression:
return t.tag.flags & sn2.OptionalChain && this.#e(t, "Tagged template expressions are not permitted in an optional chain."), this.createNode(t, { type: C.TaggedTemplateExpression, quasi: this.convertChild(t.template), tag: this.convertChild(t.tag), typeArguments: t.typeArguments && this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments, t) });
case x4.TemplateHead:
case x4.TemplateMiddle:
case x4.TemplateTail: {
let _4 = t.kind === x4.TemplateTail;
return this.createNode(t, { type: C.TemplateElement, tail: _4, value: { cooked: t.text, raw: this.ast.text.slice(t.getStart(this.ast) + 1, t.end - (_4 ? 1 : 2)) } });
}
case x4.SpreadAssignment:
case x4.SpreadElement:
return this.allowPattern ? this.createNode(t, { type: C.RestElement, argument: this.convertPattern(t.expression), decorators: [], optional: false, typeAnnotation: undefined, value: undefined }) : this.createNode(t, { type: C.SpreadElement, argument: this.convertChild(t.expression) });
case x4.Parameter: {
let _4, f4;
return t.dotDotDotToken ? _4 = f4 = this.createNode(t, { type: C.RestElement, argument: this.convertChild(t.name), decorators: [], optional: false, typeAnnotation: undefined, value: undefined }) : t.initializer ? (_4 = this.convertChild(t.name), f4 = this.createNode(t, { type: C.AssignmentPattern, range: [t.name.getStart(this.ast), t.initializer.end], decorators: [], left: _4, optional: false, right: this.convertChild(t.initializer), typeAnnotation: undefined }), Rn2(t) && (f4.range[0] = _4.range[0], f4.loc = Kr3(f4.range, this.ast))) : _4 = f4 = this.convertChild(t.name, a4), t.type && (_4.typeAnnotation = this.convertTypeAnnotation(t.type, t), this.fixParentLocation(_4, _4.typeAnnotation.range)), t.questionToken && (t.questionToken.end > _4.range[1] && (_4.range[1] = t.questionToken.end, _4.loc.end = x_(_4.range[1], this.ast)), _4.optional = true), Rn2(t) ? this.createNode(t, { type: C.TSParameterProperty, accessibility: Si3(t), decorators: [], override: Ge3(x4.OverrideKeyword, t), parameter: f4, readonly: Ge3(x4.ReadonlyKeyword, t), static: Ge3(x4.StaticKeyword, t) }) : f4;
}
case x4.ClassDeclaration:
!t.name && (!Ge3(Ae3.ExportKeyword, t) || !Ge3(Ae3.DefaultKeyword, t)) && this.#e(t, "A class declaration without the 'default' modifier must have a name.");
case x4.ClassExpression: {
let _4 = t.heritageClauses ?? [], f4 = t.kind === x4.ClassDeclaration ? C.ClassDeclaration : C.ClassExpression, h, T4;
for (let c4 of _4) {
let { token: W3, types: y4 } = c4;
y4.length === 0 && this.#e(c4, `'${nt3(W3)}' list cannot be empty.`), W3 === x4.ExtendsKeyword ? (h && this.#e(c4, "'extends' clause already seen."), T4 && this.#e(c4, "'extends' clause must precede 'implements' clause."), y4.length > 1 && this.#e(y4[1], "Classes can only extend a single class."), h ?? (h = c4)) : W3 === x4.ImplementsKeyword && (T4 && this.#e(c4, "'implements' clause already seen."), T4 ?? (T4 = c4));
}
let k4 = this.createNode(t, { type: f4, abstract: Ge3(x4.AbstractKeyword, t), body: this.createNode(t, { type: C.ClassBody, range: [t.members.pos - 1, t.end], body: this.convertChildren(t.members.filter(wh)) }), declare: Ge3(x4.DeclareKeyword, t), decorators: this.convertChildren(xi3(t) ?? []), id: this.convertChild(t.name), implements: this.convertChildren(T4?.types ?? []), superClass: h?.types[0] ? this.convertChild(h.types[0].expression) : null, superTypeArguments: undefined, typeParameters: t.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters) });
return h?.types[0]?.typeArguments && (k4.superTypeArguments = this.convertTypeArgumentsToTypeParameterInstantiation(h.types[0].typeArguments, h.types[0])), this.fixExports(t, k4);
}
case x4.ModuleBlock:
return this.createNode(t, { type: C.TSModuleBlock, body: this.convertBodyExpressions(t.statements, t) });
case x4.ImportDeclaration: {
this.assertModuleSpecifier(t, false);
let _4 = this.createNode(t, this.#t({ type: C.ImportDeclaration, attributes: this.convertImportAttributes(t), importKind: "value", source: this.convertChild(t.moduleSpecifier), specifiers: [] }, "assertions", "attributes", true));
if (t.importClause && (t.importClause.isTypeOnly && (_4.importKind = "type"), t.importClause.name && _4.specifiers.push(this.convertChild(t.importClause)), t.importClause.namedBindings))
switch (t.importClause.namedBindings.kind) {
case x4.NamespaceImport:
_4.specifiers.push(this.convertChild(t.importClause.namedBindings));
break;
case x4.NamedImports:
_4.specifiers.push(...this.convertChildren(t.importClause.namedBindings.elements));
break;
}
return _4;
}
case x4.NamespaceImport:
return this.createNode(t, { type: C.ImportNamespaceSpecifier, local: this.convertChild(t.name) });
case x4.ImportSpecifier:
return this.createNode(t, { type: C.ImportSpecifier, imported: this.convertChild(t.propertyName ?? t.name), importKind: t.isTypeOnly ? "type" : "value", local: this.convertChild(t.name) });
case x4.ImportClause: {
let _4 = this.convertChild(t.name);
return this.createNode(t, { type: C.ImportDefaultSpecifier, range: _4.range, local: _4 });
}
case x4.ExportDeclaration:
return t.exportClause?.kind === x4.NamedExports ? (this.assertModuleSpecifier(t, true), this.createNode(t, this.#t({ type: C.ExportNamedDeclaration, attributes: this.convertImportAttributes(t), declaration: null, exportKind: t.isTypeOnly ? "type" : "value", source: this.convertChild(t.moduleSpecifier), specifiers: this.convertChildren(t.exportClause.elements, t) }, "assertions", "attributes", true))) : (this.assertModuleSpecifier(t, false), this.createNode(t, this.#t({ type: C.ExportAllDeclaration, attributes: this.convertImportAttributes(t), exported: t.exportClause?.kind === x4.NamespaceExport ? this.convertChild(t.exportClause.name) : null, exportKind: t.isTypeOnly ? "type" : "value", source: this.convertChild(t.moduleSpecifier) }, "assertions", "attributes", true)));
case x4.ExportSpecifier: {
let _4 = t.propertyName ?? t.name;
return _4.kind === x4.StringLiteral && a4.kind === x4.ExportDeclaration && a4.moduleSpecifier?.kind !== x4.StringLiteral && this.#e(_4, "A string literal cannot be used as a local exported binding without `from`."), this.createNode(t, { type: C.ExportSpecifier, exported: this.convertChild(t.name), exportKind: t.isTypeOnly ? "type" : "value", local: this.convertChild(_4) });
}
case x4.ExportAssignment:
return t.isExportEquals ? this.createNode(t, { type: C.TSExportAssignment, expression: this.convertChild(t.expression) }) : this.createNode(t, { type: C.ExportDefaultDeclaration, declaration: this.convertChild(t.expression), exportKind: "value" });
case x4.PrefixUnaryExpression:
case x4.PostfixUnaryExpression: {
let _4 = Qr3(t.operator);
return _4 === "++" || _4 === "--" ? (Jl2(t.operand) || this.#e(t.operand, "Invalid left-hand side expression in unary operation"), this.createNode(t, { type: C.UpdateExpression, argument: this.convertChild(t.operand), operator: _4, prefix: t.kind === x4.PrefixUnaryExpression })) : this.createNode(t, { type: C.UnaryExpression, argument: this.convertChild(t.operand), operator: _4, prefix: t.kind === x4.PrefixUnaryExpression });
}
case x4.DeleteExpression:
return this.createNode(t, { type: C.UnaryExpression, argument: this.convertChild(t.expression), operator: "delete", prefix: true });
case x4.VoidExpression:
return this.createNode(t, { type: C.UnaryExpression, argument: this.convertChild(t.expression), operator: "void", prefix: true });
case x4.TypeOfExpression:
return this.createNode(t, { type: C.UnaryExpression, argument: this.convertChild(t.expression), operator: "typeof", prefix: true });
case x4.TypeOperator:
return this.createNode(t, { type: C.TSTypeOperator, operator: Qr3(t.operator), typeAnnotation: this.convertChild(t.type) });
case x4.BinaryExpression: {
if (t.operatorToken.kind !== x4.InKeyword && t.left.kind === x4.PrivateIdentifier ? this.#e(t.left, "Private identifiers cannot appear on the right-hand-side of an 'in' expression.") : t.right.kind === x4.PrivateIdentifier && this.#e(t.right, "Private identifiers are only allowed on the left-hand-side of an 'in' expression."), Eh(t.operatorToken)) {
let f4 = this.createNode(t, { type: C.SequenceExpression, expressions: [] }), h = this.convertChild(t.left);
return h.type === C.SequenceExpression && t.left.kind !== x4.ParenthesizedExpression ? f4.expressions.push(...h.expressions) : f4.expressions.push(h), f4.expressions.push(this.convertChild(t.right)), f4;
}
let _4 = Ah(t.operatorToken);
return this.allowPattern && _4.type === C.AssignmentExpression ? this.createNode(t, { type: C.AssignmentPattern, decorators: [], left: this.convertPattern(t.left, t), optional: false, right: this.convertChild(t.right), typeAnnotation: undefined }) : this.createNode(t, { ..._4, left: this.converter(t.left, t, _4.type === C.AssignmentExpression), right: this.convertChild(t.right) });
}
case x4.PropertyAccessExpression: {
let _4 = this.convertChild(t.expression), f4 = this.convertChild(t.name), T4 = this.createNode(t, { type: C.MemberExpression, computed: false, object: _4, optional: t.questionDotToken != null, property: f4 });
return this.convertChainExpression(T4, t);
}
case x4.ElementAccessExpression: {
let _4 = this.convertChild(t.expression), f4 = this.convertChild(t.argumentExpression), T4 = this.createNode(t, { type: C.MemberExpression, computed: true, object: _4, optional: t.questionDotToken != null, property: f4 });
return this.convertChainExpression(T4, t);
}
case x4.CallExpression: {
if (t.expression.kind === x4.ImportKeyword)
return t.arguments.length !== 1 && t.arguments.length !== 2 && this.#e(t.arguments[2] ?? t, "Dynamic import requires exactly one or two arguments."), this.createNode(t, this.#t({ type: C.ImportExpression, options: t.arguments[1] ? this.convertChild(t.arguments[1]) : null, source: this.convertChild(t.arguments[0]) }, "attributes", "options", true));
let _4 = this.convertChild(t.expression), f4 = this.convertChildren(t.arguments), h = t.typeArguments && this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments, t), T4 = this.createNode(t, { type: C.CallExpression, arguments: f4, callee: _4, optional: t.questionDotToken != null, typeArguments: h });
return this.convertChainExpression(T4, t);
}
case x4.NewExpression: {
let _4 = t.typeArguments && this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments, t);
return this.createNode(t, { type: C.NewExpression, arguments: this.convertChildren(t.arguments ?? []), callee: this.convertChild(t.expression), typeArguments: _4 });
}
case x4.ConditionalExpression:
return this.createNode(t, { type: C.ConditionalExpression, alternate: this.convertChild(t.whenFalse), consequent: this.convertChild(t.whenTrue), test: this.convertChild(t.condition) });
case x4.MetaProperty:
return this.createNode(t, { type: C.MetaProperty, meta: this.createNode(t.getFirstToken(), { type: C.Identifier, decorators: [], name: Qr3(t.keywordToken), optional: false, typeAnnotation: undefined }), property: this.convertChild(t.name) });
case x4.Decorator:
return this.createNode(t, { type: C.Decorator, expression: this.convertChild(t.expression) });
case x4.StringLiteral:
return this.createNode(t, { type: C.Literal, raw: t.getText(), value: a4.kind === x4.JsxAttribute ? Kf(t.text) : t.text });
case x4.NumericLiteral:
return this.createNode(t, { type: C.Literal, raw: t.getText(), value: Number(t.text) });
case x4.BigIntLiteral: {
let _4 = sa3(t, this.ast), f4 = this.ast.text.slice(_4[0], _4[1]), h = Wr3(0, f4.slice(0, -1), "_", ""), T4 = typeof BigInt < "u" ? BigInt(h) : null;
return this.createNode(t, { type: C.Literal, range: _4, bigint: T4 == null ? h : String(T4), raw: f4, value: T4 });
}
case x4.RegularExpressionLiteral: {
let _4 = t.text.slice(1, t.text.lastIndexOf("/")), f4 = t.text.slice(t.text.lastIndexOf("/") + 1), h = null;
try {
h = new RegExp(_4, f4);
} catch {}
return this.createNode(t, { type: C.Literal, raw: t.text, regex: { flags: f4, pattern: _4 }, value: h });
}
case x4.TrueKeyword:
return this.createNode(t, { type: C.Literal, raw: "true", value: true });
case x4.FalseKeyword:
return this.createNode(t, { type: C.Literal, raw: "false", value: false });
case x4.NullKeyword:
return this.createNode(t, { type: C.Literal, raw: "null", value: null });
case x4.EmptyStatement:
return this.createNode(t, { type: C.EmptyStatement });
case x4.DebuggerStatement:
return this.createNode(t, { type: C.DebuggerStatement });
case x4.JsxElement:
return this.createNode(t, { type: C.JSXElement, children: this.convertChildren(t.children), closingElement: this.convertChild(t.closingElement), openingElement: this.convertChild(t.openingElement) });
case x4.JsxFragment:
return this.createNode(t, { type: C.JSXFragment, children: this.convertChildren(t.children), closingFragment: this.convertChild(t.closingFragment), openingFragment: this.convertChild(t.openingFragment) });
case x4.JsxSelfClosingElement:
return this.createNode(t, { type: C.JSXElement, children: [], closingElement: null, openingElement: this.createNode(t, { type: C.JSXOpeningElement, range: sa3(t, this.ast), attributes: this.convertChildren(t.attributes.properties), name: this.convertJSXTagName(t.tagName, t), selfClosing: true, typeArguments: t.typeArguments ? this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments, t) : undefined }) });
case x4.JsxOpeningElement:
return this.createNode(t, { type: C.JSXOpeningElement, attributes: this.convertChildren(t.attributes.properties), name: this.convertJSXTagName(t.tagName, t), selfClosing: false, typeArguments: t.typeArguments && this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments, t) });
case x4.JsxClosingElement:
return this.createNode(t, { type: C.JSXClosingElement, name: this.convertJSXTagName(t.tagName, t) });
case x4.JsxOpeningFragment:
return this.createNode(t, { type: C.JSXOpeningFragment });
case x4.JsxClosingFragment:
return this.createNode(t, { type: C.JSXClosingFragment });
case x4.JsxExpression: {
let _4 = t.expression ? this.convertChild(t.expression) : this.createNode(t, { type: C.JSXEmptyExpression, range: [t.getStart(this.ast) + 1, t.getEnd() - 1] });
return t.dotDotDotToken ? this.createNode(t, { type: C.JSXSpreadChild, expression: _4 }) : this.createNode(t, { type: C.JSXExpressionContainer, expression: _4 });
}
case x4.JsxAttribute:
return this.createNode(t, { type: C.JSXAttribute, name: this.convertJSXNamespaceOrIdentifier(t.name), value: this.convertChild(t.initializer) });
case x4.JsxText: {
let _4 = t.getFullStart(), f4 = t.getEnd(), h = this.ast.text.slice(_4, f4);
return this.createNode(t, { type: C.JSXText, range: [_4, f4], raw: h, value: Kf(h) });
}
case x4.JsxSpreadAttribute:
return this.createNode(t, { type: C.JSXSpreadAttribute, argument: this.convertChild(t.expression) });
case x4.QualifiedName:
return this.createNode(t, { type: C.TSQualifiedName, left: this.convertChild(t.left), right: this.convertChild(t.right) });
case x4.TypeReference:
return this.createNode(t, { type: C.TSTypeReference, typeArguments: t.typeArguments && this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments, t), typeName: this.convertChild(t.typeName) });
case x4.TypeParameter:
return this.createNode(t, { type: C.TSTypeParameter, const: Ge3(x4.ConstKeyword, t), constraint: t.constraint && this.convertChild(t.constraint), default: t.default ? this.convertChild(t.default) : undefined, in: Ge3(x4.InKeyword, t), name: this.convertChild(t.name), out: Ge3(x4.OutKeyword, t) });
case x4.ThisType:
return this.createNode(t, { type: C.TSThisType });
case x4.AnyKeyword:
case x4.BigIntKeyword:
case x4.BooleanKeyword:
case x4.NeverKeyword:
case x4.NumberKeyword:
case x4.ObjectKeyword:
case x4.StringKeyword:
case x4.SymbolKeyword:
case x4.UnknownKeyword:
case x4.VoidKeyword:
case x4.UndefinedKeyword:
case x4.IntrinsicKeyword:
return this.createNode(t, { type: C[`TS${x4[t.kind]}`] });
case x4.NonNullExpression: {
let _4 = this.createNode(t, { type: C.TSNonNullExpression, expression: this.convertChild(t.expression) });
return this.convertChainExpression(_4, t);
}
case x4.TypeLiteral:
return this.createNode(t, { type: C.TSTypeLiteral, members: this.convertChildren(t.members) });
case x4.ArrayType:
return this.createNode(t, { type: C.TSArrayType, elementType: this.convertChild(t.elementType) });
case x4.IndexedAccessType:
return this.createNode(t, { type: C.TSIndexedAccessType, indexType: this.convertChild(t.indexType), objectType: this.convertChild(t.objectType) });
case x4.ConditionalType:
return this.createNode(t, { type: C.TSConditionalType, checkType: this.convertChild(t.checkType), extendsType: this.convertChild(t.extendsType), falseType: this.convertChild(t.falseType), trueType: this.convertChild(t.trueType) });
case x4.TypeQuery:
return this.createNode(t, { type: C.TSTypeQuery, exprName: this.convertChild(t.exprName), typeArguments: t.typeArguments && this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments, t) });
case x4.MappedType:
return t.members && t.members.length > 0 && this.#e(t.members[0], "A mapped type may not declare properties or methods."), this.createNode(t, this.#n({ type: C.TSMappedType, constraint: this.convertChild(t.typeParameter.constraint), key: this.convertChild(t.typeParameter.name), nameType: this.convertChild(t.nameType) ?? null, optional: t.questionToken ? t.questionToken.kind === x4.QuestionToken || Qr3(t.questionToken.kind) : false, readonly: t.readonlyToken ? t.readonlyToken.kind === x4.ReadonlyKeyword || Qr3(t.readonlyToken.kind) : undefined, typeAnnotation: t.type && this.convertChild(t.type) }, "typeParameter", "'constraint' and 'key'", this.convertChild(t.typeParameter)));
case x4.ParenthesizedExpression:
return this.convertChild(t.expression, a4);
case x4.TypeAliasDeclaration: {
let _4 = this.createNode(t, { type: C.TSTypeAliasDeclaration, declare: Ge3(x4.DeclareKeyword, t), id: this.convertChild(t.name), typeAnnotation: this.convertChild(t.type), typeParameters: t.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters) });
return this.fixExports(t, _4);
}
case x4.MethodSignature:
return this.convertMethodSignature(t);
case x4.PropertySignature: {
let { initializer: _4 } = t;
return _4 && this.#e(_4, "A property signature cannot have an initializer."), this.createNode(t, { type: C.TSPropertySignature, accessibility: Si3(t), computed: _a2(t.name), key: this.convertChild(t.name), optional: Zf(t), readonly: Ge3(x4.ReadonlyKeyword, t), static: Ge3(x4.StaticKeyword, t), typeAnnotation: t.type && this.convertTypeAnnotation(t.type, t) });
}
case x4.IndexSignature:
return this.createNode(t, { type: C.TSIndexSignature, accessibility: Si3(t), parameters: this.convertChildren(t.parameters), readonly: Ge3(x4.ReadonlyKeyword, t), static: Ge3(x4.StaticKeyword, t), typeAnnotation: t.type && this.convertTypeAnnotation(t.type, t) });
case x4.ConstructorType:
return this.createNode(t, { type: C.TSConstructorType, abstract: Ge3(x4.AbstractKeyword, t), params: this.convertParameters(t.parameters), returnType: t.type && this.convertTypeAnnotation(t.type, t), typeParameters: t.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters) });
case x4.FunctionType: {
let { modifiers: _4 } = t;
_4 && this.#e(_4[0], "A function type cannot have modifiers.");
}
case x4.ConstructSignature:
case x4.CallSignature: {
let _4 = t.kind === x4.ConstructSignature ? C.TSConstructSignatureDeclaration : t.kind === x4.CallSignature ? C.TSCallSignatureDeclaration : C.TSFunctionType;
return this.createNode(t, { type: _4, params: this.convertParameters(t.parameters), returnType: t.type && this.convertTypeAnnotation(t.type, t), typeParameters: t.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters) });
}
case x4.ExpressionWithTypeArguments: {
let _4 = a4.kind, f4 = _4 === x4.InterfaceDeclaration ? C.TSInterfaceHeritage : _4 === x4.HeritageClause ? C.TSClassImplements : C.TSInstantiationExpression;
return this.createNode(t, { type: f4, expression: this.convertChild(t.expression), typeArguments: t.typeArguments && this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments, t) });
}
case x4.InterfaceDeclaration: {
let _4 = t.heritageClauses ?? [], f4 = [], h = false;
for (let k4 of _4) {
k4.token !== x4.ExtendsKeyword && this.#e(k4, k4.token === x4.ImplementsKeyword ? "Interface declaration cannot have 'implements' clause." : "Unexpected token."), h && this.#e(k4, "'extends' clause already seen."), h = true;
for (let c4 of k4.types)
(!jh(c4.expression) || e1(c4.expression)) && this.#e(c4, "Interface declaration can only extend an identifier/qualified name with optional type arguments."), f4.push(this.convertChild(c4, t));
}
let T4 = this.createNode(t, { type: C.TSInterfaceDeclaration, body: this.createNode(t, { type: C.TSInterfaceBody, range: [t.members.pos - 1, t.end], body: this.convertChildren(t.members) }), declare: Ge3(x4.DeclareKeyword, t), extends: f4, id: this.convertChild(t.name), typeParameters: t.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters) });
return this.fixExports(t, T4);
}
case x4.TypePredicate: {
let _4 = this.createNode(t, { type: C.TSTypePredicate, asserts: t.assertsModifier != null, parameterName: this.convertChild(t.parameterName), typeAnnotation: null });
return t.type && (_4.typeAnnotation = this.convertTypeAnnotation(t.type, t), _4.typeAnnotation.loc = _4.typeAnnotation.typeAnnotation.loc, _4.typeAnnotation.range = _4.typeAnnotation.typeAnnotation.range), _4;
}
case x4.ImportType: {
let _4 = sa3(t, this.ast);
if (t.isTypeOf) {
let c4 = er3(t.getFirstToken(), t, this.ast);
_4[0] = c4.getStart(this.ast);
}
let f4 = null;
if (t.attributes) {
let c4 = this.createNode(t.attributes, { type: C.ObjectExpression, properties: t.attributes.elements.map((be3) => this.createNode(be3, { type: C.Property, computed: false, key: this.convertChild(be3.name), kind: "init", method: false, optional: false, shorthand: false, value: this.convertChild(be3.value) })) }), W3 = er3(t.argument, t, this.ast), y4 = er3(W3, t, this.ast), G3 = er3(t.attributes, t, this.ast), E4 = G3.kind === Ae3.CommaToken ? er3(G3, t, this.ast) : G3, D4 = er3(y4, t, this.ast), R3 = sa3(D4, this.ast), ue3 = D4.kind === Ae3.AssertKeyword ? "assert" : "with";
f4 = this.createNode(t, { type: C.ObjectExpression, range: [y4.getStart(this.ast), E4.end], properties: [this.createNode(t, { type: C.Property, range: [R3[0], t.attributes.end], computed: false, key: this.createNode(t, { type: C.Identifier, range: R3, decorators: [], name: ue3, optional: false, typeAnnotation: undefined }), kind: "init", method: false, optional: false, shorthand: false, value: c4 })] });
}
let h = this.convertChild(t.argument), T4 = h.literal, k4 = this.createNode(t, this.#n({ type: C.TSImportType, range: _4, options: f4, qualifier: this.convertChild(t.qualifier), source: T4, typeArguments: t.typeArguments ? this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments, t) : null }, "argument", "source", h));
return t.isTypeOf ? this.createNode(t, { type: C.TSTypeQuery, exprName: k4, typeArguments: undefined }) : k4;
}
case x4.EnumDeclaration: {
let _4 = this.convertChildren(t.members), f4 = this.createNode(t, this.#n({ type: C.TSEnumDeclaration, body: this.createNode(t, { type: C.TSEnumBody, range: [t.members.pos - 1, t.end], members: _4 }), const: Ge3(x4.ConstKeyword, t), declare: Ge3(x4.DeclareKeyword, t), id: this.convertChild(t.name) }, "members", "'body.members'", this.convertChildren(t.members)));
return this.fixExports(t, f4);
}
case x4.EnumMember: {
let _4 = t.name.kind === Ae3.ComputedPropertyName;
return _4 && this.#e(t.name, "Computed property names are not allowed in enums."), (t.name.kind === x4.NumericLiteral || t.name.kind === x4.BigIntLiteral) && this.#e(t.name, "An enum member cannot have a numeric name."), this.createNode(t, this.#n({ type: C.TSEnumMember, id: this.convertChild(t.name), initializer: t.initializer && this.convertChild(t.initializer) }, "computed", undefined, _4));
}
case x4.ModuleDeclaration: {
let _4 = Ge3(x4.DeclareKeyword, t), f4 = this.createNode(t, { type: C.TSModuleDeclaration, ...(() => {
if (t.flags & sn2.GlobalAugmentation) {
let T4 = this.convertChild(t.name), k4 = this.convertChild(t.body);
return (k4 == null || k4.type === C.TSModuleDeclaration) && this.#e(t.body ?? t, "Expected a valid module body"), T4.type !== C.Identifier && this.#e(t.name, "global module augmentation must have an Identifier id"), { body: k4, declare: false, global: false, id: T4, kind: "global" };
}
if (vi3(t.name)) {
let T4 = this.convertChild(t.body);
return { kind: "module", ...T4 != null ? { body: T4 } : {}, declare: false, global: false, id: this.convertChild(t.name) };
}
t.body == null && this.#e(t, "Expected a module body"), t.name.kind !== Ae3.Identifier && this.#e(t.name, "`namespace`s must have an Identifier id");
let h = this.createNode(t.name, { type: C.Identifier, range: [t.name.getStart(this.ast), t.name.getEnd()], decorators: [], name: t.name.text, optional: false, typeAnnotation: undefined });
for (;t.body && Ti3(t.body) && t.body.name; ) {
t = t.body, _4 || (_4 = Ge3(x4.DeclareKeyword, t));
let T4 = t.name, k4 = this.createNode(T4, { type: C.Identifier, range: [T4.getStart(this.ast), T4.getEnd()], decorators: [], name: T4.text, optional: false, typeAnnotation: undefined });
h = this.createNode(T4, { type: C.TSQualifiedName, range: [h.range[0], k4.range[1]], left: h, right: k4 });
}
return { body: this.convertChild(t.body), declare: false, global: false, id: h, kind: t.flags & sn2.Namespace ? "namespace" : "module" };
})() });
return f4.declare = _4, t.flags & sn2.GlobalAugmentation && (f4.global = true), this.fixExports(t, f4);
}
case x4.ParenthesizedType:
return this.convertChild(t.type);
case x4.UnionType:
return this.createNode(t, { type: C.TSUnionType, types: this.convertChildren(t.types) });
case x4.IntersectionType:
return this.createNode(t, { type: C.TSIntersectionType, types: this.convertChildren(t.types) });
case x4.AsExpression:
return this.createNode(t, { type: C.TSAsExpression, expression: this.convertChild(t.expression), typeAnnotation: this.convertChild(t.type) });
case x4.InferType:
return this.createNode(t, { type: C.TSInferType, typeParameter: this.convertChild(t.typeParameter) });
case x4.LiteralType:
return t.literal.kind === x4.NullKeyword ? this.createNode(t.literal, { type: C.TSNullKeyword }) : this.createNode(t, { type: C.TSLiteralType, literal: this.convertChild(t.literal) });
case x4.TypeAssertionExpression:
return this.createNode(t, { type: C.TSTypeAssertion, expression: this.convertChild(t.expression), typeAnnotation: this.convertChild(t.type) });
case x4.ImportEqualsDeclaration:
return this.fixExports(t, this.createNode(t, { type: C.TSImportEqualsDeclaration, id: this.convertChild(t.name), importKind: t.isTypeOnly ? "type" : "value", moduleReference: this.convertChild(t.moduleReference) }));
case x4.ExternalModuleReference:
return t.expression.kind !== x4.StringLiteral && this.#e(t.expression, "String literal expected."), this.createNode(t, { type: C.TSExternalModuleReference, expression: this.convertChild(t.expression) });
case x4.NamespaceExportDeclaration:
return this.createNode(t, { type: C.TSNamespaceExportDeclaration, id: this.convertChild(t.name) });
case x4.AbstractKeyword:
return this.createNode(t, { type: C.TSAbstractKeyword });
case x4.TupleType: {
let _4 = this.convertChildren(t.elements);
return this.createNode(t, { type: C.TSTupleType, elementTypes: _4 });
}
case x4.NamedTupleMember: {
let _4 = this.createNode(t, { type: C.TSNamedTupleMember, elementType: this.convertChild(t.type, t), label: this.convertChild(t.name, t), optional: t.questionToken != null });
return t.dotDotDotToken ? (_4.range[0] = _4.label.range[0], _4.loc.start = _4.label.loc.start, this.createNode(t, { type: C.TSRestType, typeAnnotation: _4 })) : _4;
}
case x4.OptionalType:
return this.createNode(t, { type: C.TSOptionalType, typeAnnotation: this.convertChild(t.type) });
case x4.RestType:
return this.createNode(t, { type: C.TSRestType, typeAnnotation: this.convertChild(t.type) });
case x4.TemplateLiteralType: {
let _4 = this.createNode(t, { type: C.TSTemplateLiteralType, quasis: [this.convertChild(t.head)], types: [] });
return t.templateSpans.forEach((f4) => {
_4.types.push(this.convertChild(f4.type)), _4.quasis.push(this.convertChild(f4.literal));
}), _4;
}
case x4.ClassStaticBlockDeclaration:
return this.createNode(t, { type: C.StaticBlock, body: this.convertBodyExpressions(t.body.statements, t) });
case x4.AssertEntry:
case x4.ImportAttribute:
return this.createNode(t, { type: C.ImportAttribute, key: this.convertChild(t.name), value: this.convertChild(t.value) });
case x4.SatisfiesExpression:
return this.createNode(t, { type: C.TSSatisfiesExpression, expression: this.convertChild(t.expression), typeAnnotation: this.convertChild(t.type) });
default:
return this.deeplyCopy(t);
}
}
createNode(t, a4) {
let _4 = a4;
return _4.range ?? (_4.range = sa3(t, this.ast)), _4.loc ?? (_4.loc = Kr3(_4.range, this.ast)), _4 && this.options.shouldPreserveNodeMaps && this.esTreeNodeToTSNodeMap.set(_4, t), _4;
}
convertProgram() {
return this.converter(this.ast);
}
deeplyCopy(t) {
t.kind === Ae3.JSDocFunctionType && this.#e(t, "JSDoc types can only be used inside documentation comments.");
let a4 = `TS${x4[t.kind]}`;
if (this.options.errorOnUnknownASTType && !C[a4])
throw new Error(`Unknown AST_NODE_TYPE: "${a4}"`);
let _4 = this.createNode(t, { type: a4 });
"type" in t && (_4.typeAnnotation = t.type && ("kind" in t.type) && i1(t.type) ? this.convertTypeAnnotation(t.type, t) : null), "typeArguments" in t && (_4.typeArguments = t.typeArguments && ("pos" in t.typeArguments) ? this.convertTypeArgumentsToTypeParameterInstantiation(t.typeArguments, t) : null), "typeParameters" in t && (_4.typeParameters = t.typeParameters && ("pos" in t.typeParameters) ? this.convertTSTypeParametersToTypeParametersDeclaration(t.typeParameters) : null);
let f4 = xi3(t);
f4?.length && (_4.decorators = this.convertChildren(f4));
let h = new Set(["_children", "decorators", "end", "flags", "heritageClauses", "illegalDecorators", "jsDoc", "kind", "locals", "localSymbol", "modifierFlagsCache", "modifiers", "nextContainer", "parent", "pos", "symbol", "transformFlags", "type", "typeArguments", "typeParameters"]);
return Object.entries(t).filter(([T4]) => !h.has(T4)).forEach(([T4, k4]) => {
Array.isArray(k4) ? _4[T4] = this.convertChildren(k4) : k4 && typeof k4 == "object" && k4.kind ? _4[T4] = this.convertChild(k4) : _4[T4] = k4;
}), _4;
}
fixExports(t, a4) {
let f4 = Ti3(t) && !vi3(t.name) ? Oh(t) : Rn2(t);
if (f4?.[0].kind === x4.ExportKeyword) {
this.registerTSNodeInNodeMap(t, a4);
let h = f4[0], T4 = f4[1], k4 = T4?.kind === x4.DefaultKeyword, c4 = k4 ? er3(T4, this.ast, this.ast) : er3(h, this.ast, this.ast);
if (a4.range[0] = c4.getStart(this.ast), a4.loc = Kr3(a4.range, this.ast), k4)
return this.createNode(t, { type: C.ExportDefaultDeclaration, range: [h.getStart(this.ast), a4.range[1]], declaration: a4, exportKind: "value" });
let W3 = a4.type === C.TSInterfaceDeclaration || a4.type === C.TSTypeAliasDeclaration, y4 = "declare" in a4 && a4.declare;
return this.createNode(t, this.#t({ type: C.ExportNamedDeclaration, range: [h.getStart(this.ast), a4.range[1]], attributes: [], declaration: a4, exportKind: W3 || y4 ? "type" : "value", source: null, specifiers: [] }, "assertions", "attributes", true));
}
return a4;
}
getASTMaps() {
return { esTreeNodeToTSNodeMap: this.esTreeNodeToTSNodeMap, tsNodeToESTreeNodeMap: this.tsNodeToESTreeNodeMap };
}
registerTSNodeInNodeMap(t, a4) {
a4 && this.options.shouldPreserveNodeMaps && !this.tsNodeToESTreeNodeMap.has(t) && this.tsNodeToESTreeNodeMap.set(t, a4);
}
};
function Nv(e, t, a4 = e.getSourceFile()) {
let _4 = [];
for (;; ) {
if (df(e.kind))
t(e);
else {
let f4 = e.getChildren(a4);
if (f4.length === 1) {
e = f4[0];
continue;
}
for (let h = f4.length - 1;h >= 0; --h)
_4.push(f4[h]);
}
if (_4.length === 0)
break;
e = _4.pop();
}
}
function Uh(e, t, a4 = e.getSourceFile()) {
let _4 = a4.text, f4 = a4.languageVariant !== wl2.JSX;
return Nv(e, (T4) => {
if (T4.pos !== T4.end && (T4.kind !== Ae3.JsxText && Vm2(_4, T4.pos === 0 ? (af(_4) ?? "").length : T4.pos, h), f4 || Iv(T4)))
return Wm2(_4, T4.end, h);
}, a4);
function h(T4, k4, c4) {
t(_4, { end: k4, kind: c4, pos: T4 });
}
}
function Iv(e) {
switch (e.kind) {
case Ae3.CloseBraceToken:
return e.parent.kind !== Ae3.JsxExpression || !rd(e.parent.parent);
case Ae3.GreaterThanToken:
switch (e.parent.kind) {
case Ae3.JsxClosingElement:
case Ae3.JsxClosingFragment:
return !rd(e.parent.parent.parent);
case Ae3.JsxOpeningElement:
return e.end !== e.parent.end;
case Ae3.JsxOpeningFragment:
return false;
case Ae3.JsxSelfClosingElement:
return e.end !== e.parent.end || !rd(e.parent.parent);
}
}
return true;
}
function rd(e) {
return e.kind === Ae3.JsxElement || e.kind === Ae3.JsxFragment;
}
var [rx, ix] = gm2.split(".").map((e) => Number.parseInt(e, 10));
var ax = en2.Intrinsic ?? en2.Any | en2.Unknown | en2.String | en2.Number | en2.BigInt | en2.Boolean | en2.BooleanLiteral | en2.ESSymbol | en2.Void | en2.Undefined | en2.Null | en2.Never | en2.NonPrimitive;
function Bh(e, t) {
let a4 = [];
return Uh(e, (_4, f4) => {
let h = f4.kind === Ae3.SingleLineCommentTrivia ? Rt3.Line : Rt3.Block, T4 = [f4.pos, f4.end], k4 = Kr3(T4, e), c4 = T4[0] + 2, W3 = f4.kind === Ae3.SingleLineCommentTrivia ? T4[1] : T4[1] - 2;
a4.push({ type: h, loc: k4, range: T4, value: t.slice(c4, W3) });
}, e), a4;
}
var qh = () => {};
function Fh(e, t, a4) {
let { parseDiagnostics: _4 } = e;
if (_4.length)
throw nd(_4[0]);
let f4 = new Rl2(e, { allowInvalidAST: t.allowInvalidAST, errorOnUnknownASTType: t.errorOnUnknownASTType, shouldPreserveNodeMaps: a4, suppressDeprecatedPropertyWarnings: t.suppressDeprecatedPropertyWarnings }), h = f4.convertProgram();
return (!t.range || !t.loc) && qh(h, { enter: (k4) => {
t.range || delete k4.range, t.loc || delete k4.loc;
} }), t.tokens && (h.tokens = Nh(e)), t.comment && (h.comments = Bh(e, t.codeFullText)), { astMaps: f4.getASTMaps(), estree: h };
}
function Ul2(e) {
if (typeof e != "object" || e == null)
return false;
let t = e;
return t.kind === Ae3.SourceFile && typeof t.getFullText == "function";
}
var Uv = function(e) {
return e && e.__esModule ? e : { default: e };
};
var Bv = Uv({ extname: (e) => "." + e.split(".").pop() });
function Vh(e, t) {
switch (Bv.default.extname(e).toLowerCase()) {
case Cn2.Cjs:
case Cn2.Js:
case Cn2.Mjs:
return Pr2.JS;
case Cn2.Cts:
case Cn2.Mts:
case Cn2.Ts:
return Pr2.TS;
case Cn2.Json:
return Pr2.JSON;
case Cn2.Jsx:
return Pr2.JSX;
case Cn2.Tsx:
return Pr2.TSX;
default:
return t ? Pr2.TSX : Pr2.TS;
}
}
var Fv = { default: Na2 };
var zv = (0, Fv.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");
function Wh(e) {
return zv("Getting AST without type information in %s mode for: %s", e.jsx ? "TSX" : "TS", e.filePath), Ul2(e.code) ? e.code : lh(e.filePath, e.codeFullText, { jsDocParsingMode: e.jsDocParsingMode, languageVersion: g_.Latest, setExternalModuleIndicator: e.setExternalModuleIndicator }, true, Vh(e.filePath, e.jsx));
}
var Gh = (e) => e;
var Yh = () => {};
var Hh = class {
};
var $h = () => false;
var Qh = () => {};
var n4 = function(e) {
return e && e.__esModule ? e : { default: e };
};
var r4 = {};
var id = { default: Na2 };
var i4 = n4({ extname: (e) => "." + e.split(".").pop() });
var a4 = (0, id.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings");
var s4;
var Kh = null;
var k_ = { ParseAll: Ya2?.ParseAll, ParseForTypeErrors: Ya2?.ParseForTypeErrors, ParseForTypeInfo: Ya2?.ParseForTypeInfo, ParseNone: Ya2?.ParseNone };
function Zh(e, t = {}) {
let a5 = _4(e), _4 = $h(t), f4 = undefined, h = typeof t.loggerFn == "function", T4 = Gh(typeof t.filePath == "string" && t.filePath !== "<input>" ? t.filePath : o4(t.jsx), f4), k4 = i4.default.extname(T4).toLowerCase(), c4 = (() => {
switch (t.jsDocParsingMode) {
case "all":
return k_.ParseAll;
case "none":
return k_.ParseNone;
case "type-info":
return k_.ParseForTypeInfo;
default:
return k_.ParseAll;
}
})(), W3 = { loc: t.loc === true, range: t.range === true, allowInvalidAST: t.allowInvalidAST === true, code: e, codeFullText: a5, comment: t.comment === true, comments: [], debugLevel: t.debugLevel === true ? new Set(["typescript-eslint"]) : Array.isArray(t.debugLevel) ? new Set(t.debugLevel) : new Set, errorOnTypeScriptSyntacticAndSemanticIssues: false, errorOnUnknownASTType: t.errorOnUnknownASTType === true, extraFileExtensions: Array.isArray(t.extraFileExtensions) && t.extraFileExtensions.every((y4) => typeof y4 == "string") ? t.extraFileExtensions : [], filePath: T4, jsDocParsingMode: c4, jsx: t.jsx === true, log: typeof t.loggerFn == "function" ? t.loggerFn : t.loggerFn === false ? () => {} : console.log, preserveNodeMaps: t.preserveNodeMaps !== false, programs: Array.isArray(t.programs) ? t.programs : null, projects: new Map, projectService: t.projectService || t.project && t.projectService !== false && undefined.env.TYPESCRIPT_ESLINT_PROJECT_SERVICE === "true" ? c4(t.projectService, { jsDocParsingMode: c4, tsconfigRootDir: f4 }) : undefined, setExternalModuleIndicator: t.sourceType === "module" || t.sourceType == null && k4 === Cn2.Mjs || t.sourceType == null && k4 === Cn2.Mts ? (y4) => {
y4.externalModuleIndicator = true;
} : undefined, singleRun: _4, suppressDeprecatedPropertyWarnings: t.suppressDeprecatedPropertyWarnings ?? true, tokens: t.tokens === true ? [] : null, tsconfigMatchCache: s4 ?? (s4 = new Hh(_4 ? "Infinity" : t.cacheLifetime?.glob ?? undefined)), tsconfigRootDir: f4 };
if (W3.projectService && t.project && undefined.env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR !== "true")
throw new Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');
if (W3.debugLevel.size > 0) {
let y4 = [];
W3.debugLevel.has("typescript-eslint") && y4.push("typescript-eslint:*"), (W3.debugLevel.has("eslint") || id.default.enabled("eslint:*,-eslint:code-path")) && y4.push("eslint:*,-eslint:code-path"), id.default.enable(y4.join(","));
}
if (Array.isArray(t.programs)) {
if (!t.programs.length)
throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");
a4("parserOptions.programs was provided, so parserOptions.project will be ignored.");
}
return !W3.programs && !W3.projectService && (W3.projects = new Map), t.jsDocParsingMode == null && W3.projects.size === 0 && W3.programs == null && W3.projectService == null && (W3.jsDocParsingMode = k_.ParseNone), Qh(W3, h), W3;
}
function _4(e) {
return Ul2(e) ? e.getFullText(e) : typeof e == "string" ? e : String(e);
}
function o4(e) {
return e ? "estree.tsx" : "estree.ts";
}
function c4(e, t) {
let a5 = typeof e == "object" ? e : {};
return Yh(a5.allowDefaultProject), Kh ?? (Kh = (0, r4.createProjectService)({ options: a5, ...t })), Kh;
}
var f4 = { default: Na2 };
var Tx = (0, f4.default)("typescript-eslint:typescript-estree:parser");
function e0(e, t) {
let { ast: a5 } = d4(e, t, false);
return a5;
}
function d4(e, t, a5) {
let _5 = Zh(e, t);
if (t?.errorOnTypeScriptSyntacticAndSemanticIssues)
throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');
let f5 = Wh(_5), { astMaps: h, estree: T4 } = Fh(f5, _5, a5);
return { ast: T4, esTreeNodeToTSNodeMap: h.esTreeNodeToTSNodeMap, tsNodeToESTreeNodeMap: h.tsNodeToESTreeNodeMap };
}
function m4(e, t) {
let a5 = new SyntaxError(e + " (" + t.loc.start.line + ":" + t.loc.start.column + ")");
return Object.assign(a5, t);
}
var t0 = m4;
function n0(e) {
let t = [];
for (let a5 of e)
try {
return a5();
} catch (_5) {
t.push(_5);
}
throw Object.assign(new Error("All combinations failed"), { errors: t });
}
var h4 = Array.prototype.findLast ?? function(e) {
for (let t = this.length - 1;t >= 0; t--) {
let a5 = this[t];
if (e(a5, t, this))
return a5;
}
};
var y4 = Ia2("findLast", function() {
if (Array.isArray(this))
return h4;
});
var r0 = y4;
function g4(e) {
return this[e < 0 ? this.length + e : e];
}
var b4 = Ia2("at", function() {
if (Array.isArray(this) || typeof this == "string")
return g4;
});
var i0 = b4;
function tr3(e) {
let t = e.range?.[0] ?? e.start, a5 = (e.declaration?.decorators ?? e.decorators)?.[0];
return a5 ? Math.min(tr3(a5), t) : t;
}
function Un2(e) {
return e.range?.[1] ?? e.end;
}
function v4(e) {
let t = new Set(e);
return (a5) => t.has(a5?.type);
}
var $a2 = v4;
var T4 = $a2(["Block", "CommentBlock", "MultiLine"]);
var Qa2 = T4;
var x42 = $a2(["Line", "CommentLine", "SingleLine", "HashbangComment", "HTMLOpen", "HTMLClose", "Hashbang", "InterpreterDirective"]);
var a0 = x42;
var ad = new WeakMap;
function S42(e) {
return ad.has(e) || ad.set(e, Qa2(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/u.test(e.value)), ad.get(e);
}
var s0 = S42;
function w4(e) {
if (!Qa2(e))
return false;
let t = `*${e.value}*`.split(`
`);
return t.length > 1 && t.every((a5) => a5.trimStart()[0] === "*");
}
var sd = new WeakMap;
function k4(e) {
return sd.has(e) || sd.set(e, w4(e)), sd.get(e);
}
var _d = k4;
function E4(e) {
if (e.length < 2)
return;
let t;
for (let a5 = e.length - 1;a5 >= 0; a5--) {
let _5 = e[a5];
if (t && Un2(_5) === tr3(t) && _d(_5) && _d(t) && (e.splice(a5 + 1, 1), _5.value += "*//*" + t.value, _5.range = [tr3(_5), Un2(t)]), !a0(_5) && !Qa2(_5))
throw new TypeError(`Unknown comment type: "${_5.type}".`);
t = _5;
}
}
var _0 = E4;
function A4(e) {
return e !== null && typeof e == "object";
}
var o0 = A4;
var E_ = null;
function A_(e) {
if (E_ !== null && typeof E_.property) {
let t = E_;
return E_ = A_.prototype = null, t;
}
return E_ = A_.prototype = e ?? Object.create(null), new A_;
}
var C4 = 10;
for (let e = 0;e <= C4; e++)
A_();
function od(e) {
return A_(e);
}
function D4(e, t = "type") {
od(e);
function a5(_5) {
let f5 = _5[t], h = e[f5];
if (!Array.isArray(h))
throw Object.assign(new Error(`Missing visitor keys for '${f5}'.`), { node: _5 });
return h;
}
return a5;
}
var c0 = D4;
var w5 = [["decorators", "key", "typeAnnotation", "value"], [], ["elementType"], ["expression"], ["expression", "typeAnnotation"], ["left", "right"], ["argument"], ["directives", "body"], ["label"], ["callee", "typeArguments", "arguments"], ["body"], ["decorators", "id", "typeParameters", "superClass", "superTypeArguments", "mixins", "implements", "body", "superTypeParameters"], ["id", "typeParameters"], ["decorators", "key", "typeParameters", "params", "returnType", "body"], ["decorators", "variance", "key", "typeAnnotation", "value"], ["name", "typeAnnotation"], ["test", "consequent", "alternate"], ["checkType", "extendsType", "trueType", "falseType"], ["value"], ["id", "body"], ["declaration", "specifiers", "source", "attributes"], ["id"], ["id", "typeParameters", "extends", "body"], ["typeAnnotation"], ["id", "typeParameters", "right"], ["body", "test"], ["members"], ["id", "init"], ["exported"], ["left", "right", "body"], ["id", "typeParameters", "params", "predicate", "returnType", "body"], ["id", "params", "body", "typeParameters", "returnType"], ["key", "value"], ["local"], ["objectType", "indexType"], ["typeParameter"], ["types"], ["node"], ["object", "property"], ["argument", "cases"], ["pattern", "body", "guard"], ["literal"], ["decorators", "key", "value"], ["expressions"], ["qualification", "id"], ["decorators", "key", "typeAnnotation"], ["typeParameters", "params", "returnType"], ["expression", "typeArguments"], ["params"], ["parameterName", "typeAnnotation"]];
var l0 = { AccessorProperty: w5[0], AnyTypeAnnotation: w5[1], ArgumentPlaceholder: w5[1], ArrayExpression: ["elements"], ArrayPattern: ["elements", "typeAnnotation", "decorators"], ArrayTypeAnnotation: w5[2], ArrowFunctionExpression: ["typeParameters", "params", "predicate", "returnType", "body"], AsConstExpression: w5[3], AsExpression: w5[4], AssignmentExpression: w5[5], AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"], AwaitExpression: w5[6], BigIntLiteral: w5[1], BigIntLiteralTypeAnnotation: w5[1], BigIntTypeAnnotation: w5[1], BinaryExpression: w5[5], BindExpression: ["object", "callee"], BlockStatement: w5[7], BooleanLiteral: w5[1], BooleanLiteralTypeAnnotation: w5[1], BooleanTypeAnnotation: w5[1], BreakStatement: w5[8], CallExpression: w5[9], CatchClause: ["param", "body"], ChainExpression: w5[3], ClassAccessorProperty: w5[0], ClassBody: w5[10], ClassDeclaration: w5[11], ClassExpression: w5[11], ClassImplements: w5[12], ClassMethod: w5[13], ClassPrivateMethod: w5[13], ClassPrivateProperty: w5[14], ClassProperty: w5[14], ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"], ComponentParameter: ["name", "local"], ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"], ComponentTypeParameter: w5[15], ConditionalExpression: w5[16], ConditionalTypeAnnotation: w5[17], ContinueStatement: w5[8], DebuggerStatement: w5[1], DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"], DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"], DeclaredPredicate: w5[18], DeclareEnum: w5[19], DeclareExportAllDeclaration: ["source", "attributes"], DeclareExportDeclaration: w5[20], DeclareFunction: ["id", "predicate"], DeclareHook: w5[21], DeclareInterface: w5[22], DeclareModule: w5[19], DeclareModuleExports: w5[23], DeclareNamespace: w5[19], DeclareOpaqueType: ["id", "typeParameters", "supertype", "lowerBound", "upperBound"], DeclareTypeAlias: w5[24], DeclareVariable: w5[21], Decorator: w5[3], Directive: w5[18], DirectiveLiteral: w5[1], DoExpression: w5[10], DoWhileStatement: w5[25], EmptyStatement: w5[1], EmptyTypeAnnotation: w5[1], EnumBigIntBody: w5[26], EnumBigIntMember: w5[27], EnumBooleanBody: w5[26], EnumBooleanMember: w5[27], EnumDeclaration: w5[19], EnumDefaultedMember: w5[21], EnumNumberBody: w5[26], EnumNumberMember: w5[27], EnumStringBody: w5[26], EnumStringMember: w5[27], EnumSymbolBody: w5[26], ExistsTypeAnnotation: w5[1], ExperimentalRestProperty: w5[6], ExperimentalSpreadProperty: w5[6], ExportAllDeclaration: ["source", "attributes", "exported"], ExportDefaultDeclaration: ["declaration"], ExportDefaultSpecifier: w5[28], ExportNamedDeclaration: w5[20], ExportNamespaceSpecifier: w5[28], ExportSpecifier: ["local", "exported"], ExpressionStatement: w5[3], File: ["program"], ForInStatement: w5[29], ForOfStatement: w5[29], ForStatement: ["init", "test", "update", "body"], FunctionDeclaration: w5[30], FunctionExpression: w5[30], FunctionTypeAnnotation: ["typeParameters", "this", "params", "rest", "returnType"], FunctionTypeParam: w5[15], GenericTypeAnnotation: w5[12], HookDeclaration: w5[31], HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"], Identifier: ["typeAnnotation", "decorators"], IfStatement: w5[16], ImportAttribute: w5[32], ImportDeclaration: ["specifiers", "source", "attributes"], ImportDefaultSpecifier: w5[33], ImportExpression: ["source", "options"], ImportNamespaceSpecifier: w5[33], ImportSpecifier: ["imported", "local"], IndexedAccessType: w5[34], InferredPredicate: w5[1], InferTypeAnnotation: w5[35], InterfaceDeclaration: w5[22], InterfaceExtends: w5[12], InterfaceTypeAnnotation: ["extends", "body"], InterpreterDirective: w5[1], IntersectionTypeAnnotation: w5[36], JsExpressionRoot: w5[37], JsonRoot: w5[37], JSXAttribute: ["name", "value"], JSXClosingElement: ["name"], JSXClosingFragment: w5[1], JSXElement: ["openingElement", "children", "closingElement"], JSXEmptyExpression: w5[1], JSXExpressionContainer: w5[3], JSXFragment: ["openingFragment", "children", "closingFragment"], JSXIdentifier: w5[1], JSXMemberExpression: w5[38], JSXNamespacedName: ["namespace", "name"], JSXOpeningElement: ["name", "typeArguments", "attributes"], JSXOpeningFragment: w5[1], JSXSpreadAttribute: w5[6], JSXSpreadChild: w5[3], JSXText: w5[1], KeyofTypeAnnotation: w5[6], LabeledStatement: ["label", "body"], Literal: w5[1], LogicalExpression: w5[5], MatchArrayPattern: ["elements", "rest"], MatchAsPattern: ["pattern", "target"], MatchBindingPattern: w5[21], MatchExpression: w5[39], MatchExpressionCase: w5[40], MatchIdentifierPattern: w5[21], MatchLiteralPattern: w5[41], MatchMemberPattern: ["base", "property"], MatchObjectPattern: ["properties", "rest"], MatchObjectPatternProperty: ["key", "pattern"], MatchOrPattern: ["patterns"], MatchRestPattern: w5[6], MatchStatement: w5[39], MatchStatementCase: w5[40], MatchUnaryPattern: w5[6], MatchWildcardPattern: w5[1], MemberExpression: w5[38], MetaProperty: ["meta", "property"], MethodDefinition: w5[42], MixedTypeAnnotation: w5[1], ModuleExpression: w5[10], NeverTypeAnnotation: w5[1], NewExpression: w5[9], NGChainedExpression: w5[43], NGEmptyExpression: w5[1], NGMicrosyntax: w5[10], NGMicrosyntaxAs: ["key", "alias"], NGMicrosyntaxExpression: ["expression", "alias"], NGMicrosyntaxKey: w5[1], NGMicrosyntaxKeyedExpression: ["key", "expression"], NGMicrosyntaxLet: w5[32], NGPipeExpression: ["left", "right", "arguments"], NGRoot: w5[37], NullableTypeAnnotation: w5[23], NullLiteral: w5[1], NullLiteralTypeAnnotation: w5[1], NumberLiteralTypeAnnotation: w5[1], NumberTypeAnnotation: w5[1], NumericLiteral: w5[1], ObjectExpression: ["properties"], ObjectMethod: w5[13], ObjectPattern: ["decorators", "properties", "typeAnnotation"], ObjectProperty: w5[42], ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"], ObjectTypeCallProperty: w5[18], ObjectTypeIndexer: ["variance", "id", "key", "value"], ObjectTypeInternalSlot: ["id", "value"], ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"], ObjectTypeProperty: ["key", "value", "variance"], ObjectTypeSpreadProperty: w5[6], OpaqueType: ["id", "typeParameters", "supertype", "impltype", "lowerBound", "upperBound"], OptionalCallExpression: w5[9], OptionalIndexedAccessType: w5[34], OptionalMemberExpression: w5[38], ParenthesizedExpression: w5[3], PipelineBareFunction: ["callee"], PipelinePrimaryTopicReference: w5[1], PipelineTopicExpression: w5[3], Placeholder: w5[1], PrivateIdentifier: w5[1], PrivateName: w5[21], Program: w5[7], Property: w5[32], PropertyDefinition: w5[14], QualifiedTypeIdentifier: w5[44], QualifiedTypeofIdentifier: w5[44], RegExpLiteral: w5[1], RestElement: ["argument", "typeAnnotation", "decorators"], ReturnStatement: w5[6], SatisfiesExpression: w5[4], SequenceExpression: w5[43], SpreadElement: w5[6], StaticBlock: w5[10], StringLiteral: w5[1], StringLiteralTypeAnnotation: w5[1], StringTypeAnnotation: w5[1], Super: w5[1], SwitchCase: ["test", "consequent"], SwitchStatement: ["discriminant", "cases"], SymbolTypeAnnotation: w5[1], TaggedTemplateExpression: ["tag", "typeArguments", "quasi"], TemplateElement: w5[1], TemplateLiteral: ["quasis", "expressions"], ThisExpression: w5[1], ThisTypeAnnotation: w5[1], ThrowStatement: w5[6], TopicReference: w5[1], TryStatement: ["block", "handler", "finalizer"], TSAbstractAccessorProperty: w5[45], TSAbstractKeyword: w5[1], TSAbstractMethodDefinition: w5[32], TSAbstractPropertyDefinition: w5[45], TSAnyKeyword: w5[1], TSArrayType: w5[2], TSAsExpression: w5[4], TSAsyncKeyword: w5[1], TSBigIntKeyword: w5[1], TSBooleanKeyword: w5[1], TSCallSignatureDeclaration: w5[46], TSClassImplements: w5[47], TSConditionalType: w5[17], TSConstructorType: w5[46], TSConstructSignatureDeclaration: w5[46], TSDeclareFunction: w5[31], TSDeclareKeyword: w5[1], TSDeclareMethod: ["decorators", "key", "typeParameters", "params", "returnType"], TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"], TSEnumBody: w5[26], TSEnumDeclaration: w5[19], TSEnumMember: ["id", "initializer"], TSExportAssignment: w5[3], TSExportKeyword: w5[1], TSExternalModuleReference: w5[3], TSFunctionType: w5[46], TSImportEqualsDeclaration: ["id", "moduleReference"], TSImportType: ["options", "qualifier", "typeArguments", "source"], TSIndexedAccessType: w5[34], TSIndexSignature: ["parameters", "typeAnnotation"], TSInferType: w5[35], TSInstantiationExpression: w5[47], TSInterfaceBody: w5[10], TSInterfaceDeclaration: w5[22], TSInterfaceHeritage: w5[47], TSIntersectionType: w5[36], TSIntrinsicKeyword: w5[1], TSJSDocAllType: w5[1], TSJSDocNonNullableType: w5[23], TSJSDocNullableType: w5[23], TSJSDocUnknownType: w5[1], TSLiteralType: w5[41], TSMappedType: ["key", "constraint", "nameType", "typeAnnotation"], TSMethodSignature: ["key", "typeParameters", "params", "returnType"], TSModuleBlock: w5[10], TSModuleDeclaration: w5[19], TSNamedTupleMember: ["label", "elementType"], TSNamespaceExportDeclaration: w5[21], TSNeverKeyword: w5[1], TSNonNullExpression: w5[3], TSNullKeyword: w5[1], TSNumberKeyword: w5[1], TSObjectKeyword: w5[1], TSOptionalType: w5[23], TSParameterProperty: ["parameter", "decorators"], TSParenthesizedType: w5[23], TSPrivateKeyword: w5[1], TSPropertySignature: ["key", "typeAnnotation"], TSProtectedKeyword: w5[1], TSPublicKeyword: w5[1], TSQualifiedName: w5[5], TSReadonlyKeyword: w5[1], TSRestType: w5[23], TSSatisfiesExpression: w5[4], TSStaticKeyword: w5[1], TSStringKeyword: w5[1], TSSymbolKeyword: w5[1], TSTemplateLiteralType: ["quasis", "types"], TSThisType: w5[1], TSTupleType: ["elementTypes"], TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"], TSTypeAnnotation: w5[23], TSTypeAssertion: w5[4], TSTypeLiteral: w5[26], TSTypeOperator: w5[23], TSTypeParameter: ["name", "constraint", "default"], TSTypeParameterDeclaration: w5[48], TSTypeParameterInstantiation: w5[48], TSTypePredicate: w5[49], TSTypeQuery: ["exprName", "typeArguments"], TSTypeReference: ["typeName", "typeArguments"], TSUndefinedKeyword: w5[1], TSUnionType: w5[36], TSUnknownKeyword: w5[1], TSVoidKeyword: w5[1], TupleTypeAnnotation: ["types", "elementTypes"], TupleTypeLabeledElement: ["label", "elementType", "variance"], TupleTypeSpreadElement: ["label", "typeAnnotation"], TypeAlias: w5[24], TypeAnnotation: w5[23], TypeCastExpression: w5[4], TypeofTypeAnnotation: ["argument", "typeArguments"], TypeOperator: w5[23], TypeParameter: ["bound", "default", "variance"], TypeParameterDeclaration: w5[48], TypeParameterInstantiation: w5[48], TypePredicate: w5[49], UnaryExpression: w5[6], UndefinedTypeAnnotation: w5[1], UnionTypeAnnotation: w5[36], UnknownTypeAnnotation: w5[1], UpdateExpression: w5[6], V8IntrinsicIdentifier: w5[1], VariableDeclaration: ["declarations"], VariableDeclarator: w5[27], Variance: w5[1], VoidPattern: w5[1], VoidTypeAnnotation: w5[1], WhileStatement: w5[25], WithStatement: ["object", "body"], YieldExpression: w5[6] };
var P4 = c0(l0);
var u0 = P4;
function Bl2(e, t) {
if (!o0(e))
return e;
if (Array.isArray(e)) {
for (let _5 = 0;_5 < e.length; _5++)
e[_5] = Bl2(e[_5], t);
return e;
}
if (t.onEnter) {
let _5 = t.onEnter(e) ?? e;
if (_5 !== e)
return Bl2(_5, t);
e = _5;
}
let a5 = u0(e);
for (let _5 = 0;_5 < a5.length; _5++)
e[a5[_5]] = Bl2(e[a5[_5]], t);
return t.onLeave && (e = t.onLeave(e) || e), e;
}
var p0 = Bl2;
var oS = $a2(["RegExpLiteral", "BigIntLiteral", "NumericLiteral", "StringLiteral", "DirectiveLiteral", "Literal", "JSXText", "TemplateElement", "StringLiteralTypeAnnotation", "NumberLiteralTypeAnnotation", "BigIntLiteralTypeAnnotation"]);
function N4(e, t) {
let { parser: a5, text: _5 } = t, { comments: f5 } = e, h = a5 === "oxc" && t.oxcAstType === "ts";
_0(f5);
let T5 = e.type === "File" ? e.program : e;
T5.interpreter && (f5.unshift(T5.interpreter), delete T5.interpreter), h && e.hashbang && (f5.unshift(e.hashbang), delete e.hashbang), e.type === "Program" && (e.range = [0, _5.length]);
let k5;
return e = p0(e, { onEnter(c5) {
switch (c5.type) {
case "ParenthesizedExpression": {
let { expression: W3 } = c5, y5 = tr3(c5);
if (W3.type === "TypeCastExpression")
return W3.range = [y5, Un2(c5)], W3;
let G3 = false;
if (!h) {
if (!k5) {
k5 = [];
for (let D5 of f5)
s0(D5) && k5.push(Un2(D5));
}
let E5 = r0(0, k5, (D5) => D5 <= y5);
G3 = E5 && _5.slice(E5, y5).trim().length === 0;
}
return G3 ? undefined : (W3.extra = { ...W3.extra, parenthesized: true }, W3);
}
case "TemplateLiteral":
if (c5.expressions.length !== c5.quasis.length - 1)
throw new Error("Malformed template literal.");
break;
case "TemplateElement":
if (a5 === "flow" || a5 === "hermes" || a5 === "espree" || a5 === "typescript" || h) {
let W3 = tr3(c5) + 1, y5 = Un2(c5) - (c5.tail ? 1 : 2);
c5.range = [W3, y5];
}
break;
case "VariableDeclaration": {
let W3 = i0(0, c5.declarations, -1);
W3?.init && _5[Un2(W3)] !== ";" && (c5.range = [tr3(c5), Un2(W3)]);
break;
}
case "TSParenthesizedType":
return c5.typeAnnotation;
case "TopicReference":
e.extra = { ...e.extra, __isUsingHackPipeline: true };
break;
case "TSUnionType":
case "TSIntersectionType":
if (c5.types.length === 1)
return c5.types[0];
break;
case "ImportExpression":
a5 === "hermes" && c5.attributes && !c5.options && (c5.options = c5.attributes);
break;
}
}, onLeave(c5) {
switch (c5.type) {
case "LogicalExpression":
if (f0(c5))
return cd(c5);
break;
case "TSImportType":
!c5.source && c5.argument.type === "TSLiteralType" && (c5.source = c5.argument.literal, delete c5.argument);
break;
}
} }), e;
}
function f0(e) {
return e.type === "LogicalExpression" && e.right.type === "LogicalExpression" && e.operator === e.right.operator;
}
function cd(e) {
return f0(e) ? cd({ type: "LogicalExpression", operator: e.operator, left: cd({ type: "LogicalExpression", operator: e.operator, left: e.left, right: e.right.left, range: [tr3(e.left), Un2(e.right.left)] }), right: e.right.right, range: [tr3(e), Un2(e)] }) : e;
}
var d0 = N4;
var I4 = /\*\/$/;
var O4 = /^\/\*\*?/;
var M4 = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/;
var L4 = /(^|\s+)\/\/([^\n\r]*)/g;
var m0 = /^(\r?\n)+/;
var J4 = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g;
var h0 = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g;
var j4 = /(\r?\n|^) *\* ?/g;
var R4 = [];
function y0(e) {
let t = e.match(M4);
return t ? t[0].trimStart() : "";
}
function g0(e) {
e = Wr3(0, e.replace(O4, "").replace(I4, ""), j4, "$1");
let a5 = "";
for (;a5 !== e; )
a5 = e, e = Wr3(0, e, J4, `
$1 $2
`);
e = e.replace(m0, "").trimEnd();
let _5 = Object.create(null), f5 = Wr3(0, e, h0, "").replace(m0, "").trimEnd(), h;
for (;h = h0.exec(e); ) {
let T5 = Wr3(0, h[2], L4, "");
if (typeof _5[h[1]] == "string" || Array.isArray(_5[h[1]])) {
let k5 = _5[h[1]];
_5[h[1]] = [...R4, ...Array.isArray(k5) ? k5 : [k5], T5];
} else
_5[h[1]] = T5;
}
return { comments: f5, pragmas: _5 };
}
var b0 = ["noformat", "noprettier"];
var v0 = ["format", "prettier"];
function U4(e) {
if (!e.startsWith("#!"))
return "";
let t = e.indexOf(`
`);
return t === -1 ? e : e.slice(0, t);
}
var T0 = U4;
function x0(e) {
let t = T0(e);
t && (e = e.slice(t.length + 1));
let a5 = y0(e), { pragmas: _5, comments: f5 } = g0(a5);
return { shebang: t, text: e, pragmas: _5, comments: f5 };
}
function S0(e) {
let { pragmas: t } = x0(e);
return v0.some((a5) => Object.prototype.hasOwnProperty.call(t, a5));
}
function w0(e) {
let { pragmas: t } = x0(e);
return b0.some((a5) => Object.prototype.hasOwnProperty.call(t, a5));
}
function B4(e) {
return e = typeof e == "function" ? { parse: e } : e, { astFormat: "estree", hasPragma: S0, hasIgnorePragma: w0, locStart: tr3, locEnd: Un2, ...e };
}
var k0 = B4;
var E0 = /^[^"'`]*<\/|^[^/]{2}.*\/>/mu;
function q4(e) {
return e.charAt(0) === "#" && e.charAt(1) === "!" ? "//" + e.slice(2) : e;
}
var A0 = q4;
var C0 = "module";
var D0 = "commonjs";
var P0 = [C0, D0];
function N0(e) {
if (typeof e == "string") {
if (e = e.toLowerCase(), /\.(?:mjs|mts)$/iu.test(e))
return C0;
if (/\.(?:cjs|cts)$/iu.test(e))
return D0;
}
}
var F4 = { loc: true, range: true, comment: true, tokens: false, loggerFn: false, project: false, jsDocParsingMode: "none", suppressDeprecatedPropertyWarnings: true };
function z4(e) {
let { message: t, location: a5 } = e;
if (!a5)
return e;
let { start: _5, end: f5 } = a5;
return t0(t, { loc: { start: { line: _5.line, column: _5.column + 1 }, end: { line: f5.line, column: f5.column + 1 } }, cause: e });
}
var V4 = (e) => e && /\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);
function W4(e, t) {
let a5 = [{ ...F4, filePath: t }], _5 = N0(t);
if (_5 ? a5 = a5.map((h) => ({ ...h, sourceType: _5 })) : a5 = P0.flatMap((h) => a5.map((T5) => ({ ...T5, sourceType: h }))), V4(t))
return a5;
let f5 = E0.test(e);
return [f5, !f5].flatMap((h) => a5.map((T5) => ({ ...T5, jsx: h })));
}
function G4(e, t) {
let a5 = t?.filepath;
typeof a5 != "string" && (a5 = undefined);
let _5 = A0(e), f5 = W4(e, a5), h;
try {
h = n0(f5.map((T5) => () => e0(_5, T5)));
} catch ({ errors: [T5] }) {
throw z4(T5);
}
return d0(h, { parser: "typescript", text: e });
}
var Y4 = k0(G4);
// ../../node_modules/.bun/prettier@3.8.3/node_modules/prettier/standalone.mjs
var Zn3 = Object.create;
var Mt3 = Object.defineProperty;
var eo2 = Object.getOwnPropertyDescriptor;
var to2 = Object.getOwnPropertyNames;
var uo2 = Object.getPrototypeOf;
var ro2 = Object.prototype.hasOwnProperty;
var no2 = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
var Yt3 = (e, t) => {
for (var u in t)
Mt3(e, u, { get: t[u], enumerable: true });
};
var oo2 = (e, t, u, r5) => {
if (t && typeof t == "object" || typeof t == "function")
for (let o of to2(t))
!ro2.call(e, o) && o !== u && Mt3(e, o, { get: () => t[o], enumerable: !(r5 = eo2(t, o)) || r5.enumerable });
return e;
};
var ao2 = (e, t, u) => (u = e != null ? Zn3(uo2(e)) : {}, oo2(t || !e || !e.__esModule ? Mt3(u, "default", { value: e, enumerable: true }) : u, e));
var dn3 = no2((of2, ln2) => {
var yt3, bt4, At3, _t3, xt3, $e3, bu2, Ke4, Bt2, cn2, Tt3, Ve3, Nt3, St4, wt3, pe3, fn3, Ot3, Pt3, Aa2;
Nt3 = /\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;
Ve3 = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;
yt3 = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;
wt3 = /(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;
Tt3 = /(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;
pe3 = /[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;
Pt3 = /[\t\v\f\ufeff\p{Zs}]+/yu;
Ke4 = /\r?\n|[\r\u2028\u2029]/y;
Bt2 = /\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;
St4 = /\/\/.*/y;
At3 = /[<>.:={}]|\/(?![\/*])/y;
bt4 = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;
_t3 = /(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;
xt3 = /[^<>{}]+/y;
Ot3 = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;
fn3 = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;
$e3 = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;
bu2 = /^(?:return|throw|yield)$/;
cn2 = RegExp(Ke4.source);
ln2.exports = Aa2 = function* (e, { jsx: t = false } = {}) {
var u, r5, o, n, a5, s, i, D5, f5, l4, d, c5, p4, F3;
for ({ length: s } = e, n = 0, a5 = "", F3 = [{ tag: "JS" }], u = [], d = 0, c5 = false;n < s; ) {
switch (D5 = F3[F3.length - 1], D5.tag) {
case "JS":
case "JSNonExpressionParen":
case "InterpolationInTemplate":
case "InterpolationInJSX":
if (e[n] === "/" && (Ot3.test(a5) || $e3.test(a5)) && (Nt3.lastIndex = n, i = Nt3.exec(e))) {
n = Nt3.lastIndex, a5 = i[0], c5 = true, yield { type: "RegularExpressionLiteral", value: i[0], closed: i[1] !== undefined && i[1] !== "\\" };
continue;
}
if (Ve3.lastIndex = n, i = Ve3.exec(e)) {
switch (p4 = i[0], f5 = Ve3.lastIndex, l4 = p4, p4) {
case "(":
a5 === "?NonExpressionParenKeyword" && F3.push({ tag: "JSNonExpressionParen", nesting: d }), d++, c5 = false;
break;
case ")":
d--, c5 = true, D5.tag === "JSNonExpressionParen" && d === D5.nesting && (F3.pop(), l4 = "?NonExpressionParenEnd", c5 = false);
break;
case "{":
Ve3.lastIndex = 0, o = !fn3.test(a5) && (Ot3.test(a5) || $e3.test(a5)), u.push(o), c5 = false;
break;
case "}":
switch (D5.tag) {
case "InterpolationInTemplate":
if (u.length === D5.nesting) {
pe3.lastIndex = n, i = pe3.exec(e), n = pe3.lastIndex, a5 = i[0], i[1] === "${" ? (a5 = "?InterpolationInTemplate", c5 = false, yield { type: "TemplateMiddle", value: i[0] }) : (F3.pop(), c5 = true, yield { type: "TemplateTail", value: i[0], closed: i[1] === "`" });
continue;
}
break;
case "InterpolationInJSX":
if (u.length === D5.nesting) {
F3.pop(), n += 1, a5 = "}", yield { type: "JSXPunctuator", value: "}" };
continue;
}
}
c5 = u.pop(), l4 = c5 ? "?ExpressionBraceEnd" : "}";
break;
case "]":
c5 = true;
break;
case "++":
case "--":
l4 = c5 ? "?PostfixIncDec" : "?UnaryIncDec";
break;
case "<":
if (t && (Ot3.test(a5) || $e3.test(a5))) {
F3.push({ tag: "JSXTag" }), n += 1, a5 = "<", yield { type: "JSXPunctuator", value: p4 };
continue;
}
c5 = false;
break;
default:
c5 = false;
}
n = f5, a5 = l4, yield { type: "Punctuator", value: p4 };
continue;
}
if (yt3.lastIndex = n, i = yt3.exec(e)) {
switch (n = yt3.lastIndex, l4 = i[0], i[0]) {
case "for":
case "if":
case "while":
case "with":
a5 !== "." && a5 !== "?." && (l4 = "?NonExpressionParenKeyword");
}
a5 = l4, c5 = !$e3.test(i[0]), yield { type: i[1] === "#" ? "PrivateIdentifier" : "IdentifierName", value: i[0] };
continue;
}
if (wt3.lastIndex = n, i = wt3.exec(e)) {
n = wt3.lastIndex, a5 = i[0], c5 = true, yield { type: "StringLiteral", value: i[0], closed: i[2] !== undefined };
continue;
}
if (Tt3.lastIndex = n, i = Tt3.exec(e)) {
n = Tt3.lastIndex, a5 = i[0], c5 = true, yield { type: "NumericLiteral", value: i[0] };
continue;
}
if (pe3.lastIndex = n, i = pe3.exec(e)) {
n = pe3.lastIndex, a5 = i[0], i[1] === "${" ? (a5 = "?InterpolationInTemplate", F3.push({ tag: "InterpolationInTemplate", nesting: u.length }), c5 = false, yield { type: "TemplateHead", value: i[0] }) : (c5 = true, yield { type: "NoSubstitutionTemplate", value: i[0], closed: i[1] === "`" });
continue;
}
break;
case "JSXTag":
case "JSXTagEnd":
if (At3.lastIndex = n, i = At3.exec(e)) {
switch (n = At3.lastIndex, l4 = i[0], i[0]) {
case "<":
F3.push({ tag: "JSXTag" });
break;
case ">":
F3.pop(), a5 === "/" || D5.tag === "JSXTagEnd" ? (l4 = "?JSX", c5 = true) : F3.push({ tag: "JSXChildren" });
break;
case "{":
F3.push({ tag: "InterpolationInJSX", nesting: u.length }), l4 = "?InterpolationInJSX", c5 = false;
break;
case "/":
a5 === "<" && (F3.pop(), F3[F3.length - 1].tag === "JSXChildren" && F3.pop(), F3.push({ tag: "JSXTagEnd" }));
}
a5 = l4, yield { type: "JSXPunctuator", value: i[0] };
continue;
}
if (bt4.lastIndex = n, i = bt4.exec(e)) {
n = bt4.lastIndex, a5 = i[0], yield { type: "JSXIdentifier", value: i[0] };
continue;
}
if (_t3.lastIndex = n, i = _t3.exec(e)) {
n = _t3.lastIndex, a5 = i[0], yield { type: "JSXString", value: i[0], closed: i[2] !== undefined };
continue;
}
break;
case "JSXChildren":
if (xt3.lastIndex = n, i = xt3.exec(e)) {
n = xt3.lastIndex, a5 = i[0], yield { type: "JSXText", value: i[0] };
continue;
}
switch (e[n]) {
case "<":
F3.push({ tag: "JSXTag" }), n++, a5 = "<", yield { type: "JSXPunctuator", value: "<" };
continue;
case "{":
F3.push({ tag: "InterpolationInJSX", nesting: u.length }), n++, a5 = "?InterpolationInJSX", c5 = false, yield { type: "JSXPunctuator", value: "{" };
continue;
}
}
if (Pt3.lastIndex = n, i = Pt3.exec(e)) {
n = Pt3.lastIndex, yield { type: "WhiteSpace", value: i[0] };
continue;
}
if (Ke4.lastIndex = n, i = Ke4.exec(e)) {
n = Ke4.lastIndex, c5 = false, bu2.test(a5) && (a5 = "?NoLineTerminatorHere"), yield { type: "LineTerminatorSequence", value: i[0] };
continue;
}
if (Bt2.lastIndex = n, i = Bt2.exec(e)) {
n = Bt2.lastIndex, cn2.test(i[0]) && (c5 = false, bu2.test(a5) && (a5 = "?NoLineTerminatorHere")), yield { type: "MultiLineComment", value: i[0], closed: i[1] !== undefined };
continue;
}
if (St4.lastIndex = n, i = St4.exec(e)) {
n = St4.lastIndex, c5 = false, yield { type: "SingleLineComment", value: i[0] };
continue;
}
r5 = String.fromCodePoint(e.codePointAt(n)), n += r5.length, a5 = r5, c5 = false, yield { type: D5.tag.startsWith("JSX") ? "JSXInvalid" : "Invalid", value: r5 };
}
};
});
var Hn2 = {};
Yt3(Hn2, { __debug: () => li3, check: () => ci3, doc: () => wu2, format: () => Jn2, formatWithCursor: () => zn2, getSupportInfo: () => fi4, util: () => Pu2, version: () => Mn });
var X3 = (e, t) => (u, r5, ...o) => u | 1 && r5 == null ? undefined : (t.call(r5) ?? r5[e]).apply(r5, o);
var io2 = String.prototype.replaceAll ?? function(e, t) {
return e.global ? this.replace(e, t) : this.split(e).join(t);
};
var so2 = X3("replaceAll", function() {
if (typeof this == "string")
return io2;
});
var oe3 = so2;
var Ne3 = class {
diff(t, u, r5 = {}) {
let o;
typeof r5 == "function" ? (o = r5, r5 = {}) : ("callback" in r5) && (o = r5.callback);
let n = this.castInput(t, r5), a5 = this.castInput(u, r5), s = this.removeEmpty(this.tokenize(n, r5)), i = this.removeEmpty(this.tokenize(a5, r5));
return this.diffWithOptionsObj(s, i, r5, o);
}
diffWithOptionsObj(t, u, r5, o) {
var n;
let a5 = (m5) => {
if (m5 = this.postProcess(m5, r5), o) {
setTimeout(function() {
o(m5);
}, 0);
return;
} else
return m5;
}, s = u.length, i = t.length, D5 = 1, f5 = s + i;
r5.maxEditLength != null && (f5 = Math.min(f5, r5.maxEditLength));
let l4 = (n = r5.timeout) !== null && n !== undefined ? n : 1 / 0, d = Date.now() + l4, c5 = [{ oldPos: -1, lastComponent: undefined }], p4 = this.extractCommon(c5[0], u, t, 0, r5);
if (c5[0].oldPos + 1 >= i && p4 + 1 >= s)
return a5(this.buildValues(c5[0].lastComponent, u, t));
let F3 = -1 / 0, C5 = 1 / 0, y5 = () => {
for (let m5 = Math.max(F3, -D5);m5 <= Math.min(C5, D5); m5 += 2) {
let h, E5 = c5[m5 - 1], g5 = c5[m5 + 1];
E5 && (c5[m5 - 1] = undefined);
let A5 = false;
if (g5) {
let Q3 = g5.oldPos - m5;
A5 = g5 && 0 <= Q3 && Q3 < s;
}
let J3 = E5 && E5.oldPos + 1 < i;
if (!A5 && !J3) {
c5[m5] = undefined;
continue;
}
if (!J3 || A5 && E5.oldPos < g5.oldPos ? h = this.addToPath(g5, true, false, 0, r5) : h = this.addToPath(E5, false, true, 1, r5), p4 = this.extractCommon(h, u, t, m5, r5), h.oldPos + 1 >= i && p4 + 1 >= s)
return a5(this.buildValues(h.lastComponent, u, t)) || true;
c5[m5] = h, h.oldPos + 1 >= i && (C5 = Math.min(C5, m5 - 1)), p4 + 1 >= s && (F3 = Math.max(F3, m5 + 1));
}
D5++;
};
if (o)
(function m5() {
setTimeout(function() {
if (D5 > f5 || Date.now() > d)
return o(undefined);
y5() || m5();
}, 0);
})();
else
for (;D5 <= f5 && Date.now() <= d; ) {
let m5 = y5();
if (m5)
return m5;
}
}
addToPath(t, u, r5, o, n) {
let a5 = t.lastComponent;
return a5 && !n.oneChangePerToken && a5.added === u && a5.removed === r5 ? { oldPos: t.oldPos + o, lastComponent: { count: a5.count + 1, added: u, removed: r5, previousComponent: a5.previousComponent } } : { oldPos: t.oldPos + o, lastComponent: { count: 1, added: u, removed: r5, previousComponent: a5 } };
}
extractCommon(t, u, r5, o, n) {
let a5 = u.length, s = r5.length, i = t.oldPos, D5 = i - o, f5 = 0;
for (;D5 + 1 < a5 && i + 1 < s && this.equals(r5[i + 1], u[D5 + 1], n); )
D5++, i++, f5++, n.oneChangePerToken && (t.lastComponent = { count: 1, previousComponent: t.lastComponent, added: false, removed: false });
return f5 && !n.oneChangePerToken && (t.lastComponent = { count: f5, previousComponent: t.lastComponent, added: false, removed: false }), t.oldPos = i, D5;
}
equals(t, u, r5) {
return r5.comparator ? r5.comparator(t, u) : t === u || !!r5.ignoreCase && t.toLowerCase() === u.toLowerCase();
}
removeEmpty(t) {
let u = [];
for (let r5 = 0;r5 < t.length; r5++)
t[r5] && u.push(t[r5]);
return u;
}
castInput(t, u) {
return t;
}
tokenize(t, u) {
return Array.from(t);
}
join(t) {
return t.join("");
}
postProcess(t, u) {
return t;
}
get useLongestToken() {
return false;
}
buildValues(t, u, r5) {
let o = [], n;
for (;t; )
o.push(t), n = t.previousComponent, delete t.previousComponent, t = n;
o.reverse();
let a5 = o.length, s = 0, i = 0, D5 = 0;
for (;s < a5; s++) {
let f5 = o[s];
if (f5.removed)
f5.value = this.join(r5.slice(D5, D5 + f5.count)), D5 += f5.count;
else {
if (!f5.added && this.useLongestToken) {
let l4 = u.slice(i, i + f5.count);
l4 = l4.map(function(d, c5) {
let p4 = r5[D5 + c5];
return p4.length > d.length ? p4 : d;
}), f5.value = this.join(l4);
} else
f5.value = this.join(u.slice(i, i + f5.count));
i += f5.count, f5.added || (D5 += f5.count);
}
}
return o;
}
};
var jt3 = class extends Ne3 {
tokenize(t) {
return t.slice();
}
join(t) {
return t;
}
removeEmpty(t) {
return t;
}
};
var ku2 = new jt3;
function Ut4(e, t, u) {
return ku2.diff(e, t, u);
}
var Do2 = () => {};
var P5 = Do2;
var Ru2 = "cr";
var Lu2 = "crlf";
var co2 = "lf";
var fo2 = co2;
var Wt3 = "\r";
var Mu2 = `\r
`;
var Je3 = `
`;
var lo2 = Je3;
function Yu2(e) {
let t = e.indexOf(Wt3);
return t !== -1 ? e.charAt(t + 1) === Je3 ? Lu2 : Ru2 : fo2;
}
function Se3(e) {
return e === Ru2 ? Wt3 : e === Lu2 ? Mu2 : lo2;
}
var po2 = new Map([[Je3, /\n/gu], [Wt3, /\r/gu], [Mu2, /\r\n/gu]]);
function $t3(e, t) {
let u = po2.get(t);
return e.match(u)?.length ?? 0;
}
var Fo2 = /\r\n?/gu;
function ju2(e) {
return oe3(0, e, Fo2, Je3);
}
function mo2(e) {
return this[e < 0 ? this.length + e : e];
}
var Eo2 = X3("at", function() {
if (Array.isArray(this) || typeof this == "string")
return mo2;
});
var b5 = Eo2;
var G3 = "string";
var j3 = "array";
var U3 = "cursor";
var I5 = "indent";
var k5 = "align";
var v5 = "trim";
var x7 = "group";
var w7 = "fill";
var B3 = "if-break";
var R3 = "indent-if-break";
var L3 = "line-suffix";
var M3 = "line-suffix-boundary";
var _5 = "line";
var O3 = "label";
var T5 = "break-parent";
var He3 = new Set([U3, I5, k5, v5, x7, w7, B3, R3, L3, M3, _5, O3, T5]);
function Uu2(e) {
let t = e.length;
for (;t > 0 && (e[t - 1] === "\r" || e[t - 1] === `
`); )
t--;
return t < e.length ? e.slice(0, t) : e;
}
function Co2(e) {
if (typeof e == "string")
return G3;
if (Array.isArray(e))
return j3;
if (!e)
return;
let { type: t } = e;
if (He3.has(t))
return t;
}
var H3 = Co2;
var ho2 = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
function go2(e) {
let t = e === null ? "null" : typeof e;
if (t !== "string" && t !== "object")
return `Unexpected doc '${t}',
Expected it to be 'string' or 'object'.`;
if (H3(e))
throw new Error("doc is valid.");
let u = Object.prototype.toString.call(e);
if (u !== "[object Object]")
return `Unexpected doc '${u}'.`;
let r5 = ho2([...He3].map((o) => `'${o}'`));
return `Unexpected doc.type '${e.type}'.
Expected it to be ${r5}.`;
}
var Vt4 = class extends Error {
name = "InvalidDocError";
constructor(t) {
super(go2(t)), this.doc = t;
}
};
var Z3 = Vt4;
var Wu2 = {};
function yo2(e, t, u, r5) {
let o = [e];
for (;o.length > 0; ) {
let n = o.pop();
if (n === Wu2) {
u(o.pop());
continue;
}
u && o.push(n, Wu2);
let a5 = H3(n);
if (!a5)
throw new Z3(n);
if (t?.(n) !== false)
switch (a5) {
case j3:
case w7: {
let s = a5 === j3 ? n : n.parts;
for (let i = s.length, D5 = i - 1;D5 >= 0; --D5)
o.push(s[D5]);
break;
}
case B3:
o.push(n.flatContents, n.breakContents);
break;
case x7:
if (r5 && n.expandedStates)
for (let s = n.expandedStates.length, i = s - 1;i >= 0; --i)
o.push(n.expandedStates[i]);
else
o.push(n.contents);
break;
case k5:
case I5:
case R3:
case O3:
case L3:
o.push(n.contents);
break;
case G3:
case U3:
case v5:
case M3:
case _5:
case T5:
break;
default:
throw new Z3(n);
}
}
}
var we3 = yo2;
function Pe2(e, t) {
if (typeof e == "string")
return t(e);
let u = new Map;
return r5(e);
function r5(n) {
if (u.has(n))
return u.get(n);
let a5 = o(n);
return u.set(n, a5), a5;
}
function o(n) {
switch (H3(n)) {
case j3:
return t(n.map(r5));
case w7:
return t({ ...n, parts: n.parts.map(r5) });
case B3:
return t({ ...n, breakContents: r5(n.breakContents), flatContents: r5(n.flatContents) });
case x7: {
let { expandedStates: a5, contents: s } = n;
return a5 ? (a5 = a5.map(r5), s = a5[0]) : s = r5(s), t({ ...n, contents: s, expandedStates: a5 });
}
case k5:
case I5:
case R3:
case O3:
case L3:
return t({ ...n, contents: r5(n.contents) });
case G3:
case U3:
case v5:
case M3:
case _5:
case T5:
return t(n);
default:
throw new Z3(n);
}
}
}
function Xe3(e, t, u) {
let r5 = u, o = false;
function n(a5) {
if (o)
return false;
let s = t(a5);
s !== undefined && (o = true, r5 = s);
}
return we3(e, n), r5;
}
function bo2(e) {
if (e.type === x7 && e.break || e.type === _5 && e.hard || e.type === T5)
return true;
}
function Ku2(e) {
return Xe3(e, bo2, false);
}
function $u2(e) {
if (e.length > 0) {
let t = b5(0, e, -1);
!t.expandedStates && !t.break && (t.break = "propagated");
}
return null;
}
function Gu2(e) {
let t = new Set, u = [];
function r5(n) {
if (n.type === T5 && $u2(u), n.type === x7) {
if (u.push(n), t.has(n))
return false;
t.add(n);
}
}
function o(n) {
n.type === x7 && u.pop().break && $u2(u);
}
we3(e, r5, o, true);
}
function Ao2(e) {
return e.type === _5 && !e.hard ? e.soft ? "" : " " : e.type === B3 ? e.flatContents : e;
}
function zu2(e) {
return Pe2(e, Ao2);
}
function Vu2(e) {
for (e = [...e];e.length >= 2 && b5(0, e, -2).type === _5 && b5(0, e, -1).type === T5; )
e.length -= 2;
if (e.length > 0) {
let t = Oe3(b5(0, e, -1));
e[e.length - 1] = t;
}
return e;
}
function Oe3(e) {
switch (H3(e)) {
case I5:
case R3:
case x7:
case L3:
case O3: {
let t = Oe3(e.contents);
return { ...e, contents: t };
}
case B3:
return { ...e, breakContents: Oe3(e.breakContents), flatContents: Oe3(e.flatContents) };
case w7:
return { ...e, parts: Vu2(e.parts) };
case j3:
return Vu2(e);
case G3:
return Uu2(e);
case k5:
case U3:
case v5:
case M3:
case _5:
case T5:
break;
default:
throw new Z3(e);
}
return e;
}
function qe3(e) {
return Oe3(xo2(e));
}
function _o2(e) {
switch (H3(e)) {
case w7:
if (e.parts.every((t) => t === ""))
return "";
break;
case x7:
if (!e.contents && !e.id && !e.break && !e.expandedStates)
return "";
if (e.contents.type === x7 && e.contents.id === e.id && e.contents.break === e.break && e.contents.expandedStates === e.expandedStates)
return e.contents;
break;
case k5:
case I5:
case R3:
case L3:
if (!e.contents)
return "";
break;
case B3:
if (!e.flatContents && !e.breakContents)
return "";
break;
case j3: {
let t = [];
for (let u of e) {
if (!u)
continue;
let [r5, ...o] = Array.isArray(u) ? u : [u];
typeof r5 == "string" && typeof b5(0, t, -1) == "string" ? t[t.length - 1] += r5 : t.push(r5), t.push(...o);
}
return t.length === 0 ? "" : t.length === 1 ? t[0] : t;
}
case G3:
case U3:
case v5:
case M3:
case _5:
case O3:
case T5:
break;
default:
throw new Z3(e);
}
return e;
}
function xo2(e) {
return Pe2(e, (t) => _o2(t));
}
function Ju2(e, t = Qe3) {
return Pe2(e, (u) => typeof u == "string" ? Ie2(t, u.split(`
`)) : u);
}
function Bo2(e) {
if (e.type === _5)
return true;
}
function Hu2(e) {
return Xe3(e, Bo2, false);
}
function Ee3(e, t) {
return e.type === O3 ? { ...e, contents: t(e.contents) } : t(e);
}
var N5 = P5;
var Ze3 = P5;
var Xu2 = P5;
var qu2 = P5;
function ae(e) {
return N5(e), { type: I5, contents: e };
}
function De3(e, t) {
return qu2(e), N5(t), { type: k5, contents: t, n: e };
}
function Qu2(e) {
return De3(Number.NEGATIVE_INFINITY, e);
}
function et3(e) {
return De3({ type: "root" }, e);
}
function Zu2(e) {
return De3(-1, e);
}
function tt3(e, t, u) {
N5(e);
let r5 = e;
if (t > 0) {
for (let o = 0;o < Math.floor(t / u); ++o)
r5 = ae(r5);
r5 = De3(t % u, r5), r5 = De3(Number.NEGATIVE_INFINITY, r5);
}
return r5;
}
var ce3 = { type: T5 };
var ee2 = { type: U3 };
function er4(e) {
return Xu2(e), { type: w7, parts: e };
}
function Kt3(e, t = {}) {
return N5(e), Ze3(t.expandedStates, true), { type: x7, id: t.id, contents: e, break: !!t.shouldBreak, expandedStates: t.expandedStates };
}
function tr4(e, t) {
return Kt3(e[0], { ...t, expandedStates: e });
}
function ur3(e, t = "", u = {}) {
return N5(e), t !== "" && N5(t), { type: B3, breakContents: e, flatContents: t, groupId: u.groupId };
}
function rr3(e, t) {
return N5(e), { type: R3, contents: e, groupId: t.groupId, negate: t.negate };
}
function Ie2(e, t) {
N5(e), Ze3(t);
let u = [];
for (let r5 = 0;r5 < t.length; r5++)
r5 !== 0 && u.push(e), u.push(t[r5]);
return u;
}
function nr3(e, t) {
return N5(t), e ? { type: O3, label: e, contents: t } : t;
}
var ut3 = { type: _5 };
var or3 = { type: _5, soft: true };
var ke4 = { type: _5, hard: true };
var V3 = [ke4, ce3];
var Gt3 = { type: _5, hard: true, literal: true };
var Qe3 = [Gt3, ce3];
function ve3(e) {
return N5(e), { type: L3, contents: e };
}
var ar3 = { type: M3 };
var ir3 = { type: v5 };
function te3(e) {
if (!e)
return "";
if (Array.isArray(e)) {
let t = [];
for (let u of e)
if (Array.isArray(u))
t.push(...te3(u));
else {
let r5 = te3(u);
r5 !== "" && t.push(r5);
}
return t;
}
return e.type === B3 ? { ...e, breakContents: te3(e.breakContents), flatContents: te3(e.flatContents) } : e.type === x7 ? { ...e, contents: te3(e.contents), expandedStates: e.expandedStates?.map(te3) } : e.type === w7 ? { type: "fill", parts: e.parts.map(te3) } : e.contents ? { ...e, contents: te3(e.contents) } : e;
}
function sr3(e) {
let t = Object.create(null), u = new Set;
return r5(te3(e));
function r5(n, a5, s) {
if (typeof n == "string")
return JSON.stringify(n);
if (Array.isArray(n)) {
let i = n.map(r5).filter(Boolean);
return i.length === 1 ? i[0] : `[${i.join(", ")}]`;
}
if (n.type === _5) {
let i = s?.[a5 + 1]?.type === T5;
return n.literal ? i ? "literalline" : "literallineWithoutBreakParent" : n.hard ? i ? "hardline" : "hardlineWithoutBreakParent" : n.soft ? "softline" : "line";
}
if (n.type === T5)
return s?.[a5 - 1]?.type === _5 && s[a5 - 1].hard ? undefined : "breakParent";
if (n.type === v5)
return "trim";
if (n.type === I5)
return "indent(" + r5(n.contents) + ")";
if (n.type === k5)
return n.n === Number.NEGATIVE_INFINITY ? "dedentToRoot(" + r5(n.contents) + ")" : n.n < 0 ? "dedent(" + r5(n.contents) + ")" : n.n.type === "root" ? "markAsRoot(" + r5(n.contents) + ")" : "align(" + JSON.stringify(n.n) + ", " + r5(n.contents) + ")";
if (n.type === B3)
return "ifBreak(" + r5(n.breakContents) + (n.flatContents ? ", " + r5(n.flatContents) : "") + (n.groupId ? (n.flatContents ? "" : ', ""') + `, { groupId: ${o(n.groupId)} }` : "") + ")";
if (n.type === R3) {
let i = [];
n.negate && i.push("negate: true"), n.groupId && i.push(`groupId: ${o(n.groupId)}`);
let D5 = i.length > 0 ? `, { ${i.join(", ")} }` : "";
return `indentIfBreak(${r5(n.contents)}${D5})`;
}
if (n.type === x7) {
let i = [];
n.break && n.break !== "propagated" && i.push("shouldBreak: true"), n.id && i.push(`id: ${o(n.id)}`);
let D5 = i.length > 0 ? `, { ${i.join(", ")} }` : "";
return n.expandedStates ? `conditionalGroup([${n.expandedStates.map((f5) => r5(f5)).join(",")}]${D5})` : `group(${r5(n.contents)}${D5})`;
}
if (n.type === w7)
return `fill([${n.parts.map((i) => r5(i)).join(", ")}])`;
if (n.type === L3)
return "lineSuffix(" + r5(n.contents) + ")";
if (n.type === M3)
return "lineSuffixBoundary";
if (n.type === O3)
return `label(${JSON.stringify(n.label)}, ${r5(n.contents)})`;
if (n.type === U3)
return "cursor";
throw new Error("Unknown doc type " + n.type);
}
function o(n) {
if (typeof n != "symbol")
return JSON.stringify(String(n));
if (n in t)
return t[n];
let a5 = n.description || "symbol";
for (let s = 0;; s++) {
let i = a5 + (s > 0 ? ` #${s}` : "");
if (!u.has(i))
return u.add(i), t[n] = `Symbol.for(${JSON.stringify(i)})`;
}
}
}
var Dr4 = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
function zt3(e) {
return e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510;
}
function Jt3(e) {
return e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9776 && e <= 9783 || e >= 9800 && e <= 9811 || e === 9855 || e >= 9866 && e <= 9871 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12773 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e >= 94192 && e <= 94198 || e >= 94208 && e <= 101589 || e >= 101631 && e <= 101662 || e >= 101760 && e <= 101874 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e >= 119552 && e <= 119638 || e >= 119648 && e <= 119670 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128728 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129674 || e >= 129678 && e <= 129734 || e === 129736 || e >= 129741 && e <= 129756 || e >= 129759 && e <= 129770 || e >= 129775 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141;
}
var cr2 = "\xA9\xAE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u2328\u23CF\u23F1\u23F2\u23F8\u23F9\u23FA\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600\u2601\u2602\u2603\u2604\u260E\u2611\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638\u2639\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694\u2695\u2696\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F1\u26F7\u26F8\u26F9\u2702\u2708\u2709\u270C\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05\u2B06\u2B07";
var To2 = /[^\x20-\x7F]/u;
var No2 = new Set(cr2);
function So2(e) {
if (!e)
return 0;
if (!To2.test(e))
return e.length;
e = e.replace(Dr4(), (u) => No2.has(u) ? " " : " ");
let t = 0;
for (let u of e) {
let r5 = u.codePointAt(0);
r5 <= 31 || r5 >= 127 && r5 <= 159 || r5 >= 768 && r5 <= 879 || r5 >= 65024 && r5 <= 65039 || (t += zt3(r5) || Jt3(r5) ? 2 : 1);
}
return t;
}
var Re3 = So2;
var wo2 = { type: 0 };
var Oo2 = { type: 1 };
var Ht3 = { value: "", length: 0, queue: [], get root() {
return Ht3;
} };
function fr3(e, t, u) {
let r5 = t.type === 1 ? e.queue.slice(0, -1) : [...e.queue, t], o = "", n = 0, a5 = 0, s = 0;
for (let p4 of r5)
switch (p4.type) {
case 0:
f5(), u.useTabs ? i(1) : D5(u.tabWidth);
break;
case 3: {
let { string: F3 } = p4;
f5(), o += F3, n += F3.length;
break;
}
case 2: {
let { width: F3 } = p4;
a5 += 1, s += F3;
break;
}
default:
throw new Error(`Unexpected indent comment '${p4.type}'.`);
}
return d(), { ...e, value: o, length: n, queue: r5 };
function i(p4) {
o += "\t".repeat(p4), n += u.tabWidth * p4;
}
function D5(p4) {
o += " ".repeat(p4), n += p4;
}
function f5() {
u.useTabs ? l4() : d();
}
function l4() {
a5 > 0 && i(a5), c5();
}
function d() {
s > 0 && D5(s), c5();
}
function c5() {
a5 = 0, s = 0;
}
}
function lr2(e, t, u) {
if (!t)
return e;
if (t.type === "root")
return { ...e, root: e };
if (t === Number.NEGATIVE_INFINITY)
return e.root;
let r5;
return typeof t == "number" ? t < 0 ? r5 = Oo2 : r5 = { type: 2, width: t } : r5 = { type: 3, string: t }, fr3(e, r5, u);
}
function dr4(e, t) {
return fr3(e, wo2, t);
}
function Po2(e) {
let t = 0;
for (let u = e.length - 1;u >= 0; u--) {
let r5 = e[u];
if (r5 === " " || r5 === "\t")
t++;
else
break;
}
return t;
}
function Xt4(e) {
let t = Po2(e);
return { text: t === 0 ? e : e.slice(0, e.length - t), count: t };
}
var W3 = Symbol("MODE_BREAK");
var q5 = Symbol("MODE_FLAT");
var qt3 = Symbol("DOC_FILL_PRINTED_LENGTH");
function rt3(e, t, u, r5, o, n) {
if (u === Number.POSITIVE_INFINITY)
return true;
let a5 = t.length, s = false, i = [e], D5 = "";
for (;u >= 0; ) {
if (i.length === 0) {
if (a5 === 0)
return true;
i.push(t[--a5]);
continue;
}
let { mode: f5, doc: l4 } = i.pop(), d = H3(l4);
switch (d) {
case G3:
l4 && (s && (D5 += " ", u -= 1, s = false), D5 += l4, u -= Re3(l4));
break;
case j3:
case w7: {
let c5 = d === j3 ? l4 : l4.parts, p4 = l4[qt3] ?? 0;
for (let F3 = c5.length - 1;F3 >= p4; F3--)
i.push({ mode: f5, doc: c5[F3] });
break;
}
case I5:
case k5:
case R3:
case O3:
i.push({ mode: f5, doc: l4.contents });
break;
case v5: {
let { text: c5, count: p4 } = Xt4(D5);
D5 = c5, u += p4;
break;
}
case x7: {
if (n && l4.break)
return false;
let c5 = l4.break ? W3 : f5, p4 = l4.expandedStates && c5 === W3 ? b5(0, l4.expandedStates, -1) : l4.contents;
i.push({ mode: c5, doc: p4 });
break;
}
case B3: {
let p4 = (l4.groupId ? o[l4.groupId] || q5 : f5) === W3 ? l4.breakContents : l4.flatContents;
p4 && i.push({ mode: f5, doc: p4 });
break;
}
case _5:
if (f5 === W3 || l4.hard)
return true;
l4.soft || (s = true);
break;
case L3:
r5 = true;
break;
case M3:
if (r5)
return false;
break;
}
}
return false;
}
function Ce3(e, t) {
let u = Object.create(null), r5 = t.printWidth, o = Se3(t.endOfLine), n = 0, a5 = [{ indent: Ht3, mode: W3, doc: e }], s = "", i = false, D5 = [], f5 = [], l4 = [], d = [], c5 = 0;
for (Gu2(e);a5.length > 0; ) {
let { indent: m5, mode: h, doc: E5 } = a5.pop();
switch (H3(E5)) {
case G3: {
let g5 = o !== `
` ? oe3(0, E5, `
`, o) : E5;
g5 && (s += g5, a5.length > 0 && (n += Re3(g5)));
break;
}
case j3:
for (let g5 = E5.length - 1;g5 >= 0; g5--)
a5.push({ indent: m5, mode: h, doc: E5[g5] });
break;
case U3:
if (f5.length >= 2)
throw new Error("There are too many 'cursor' in doc.");
f5.push(c5 + s.length);
break;
case I5:
a5.push({ indent: dr4(m5, t), mode: h, doc: E5.contents });
break;
case k5:
a5.push({ indent: lr2(m5, E5.n, t), mode: h, doc: E5.contents });
break;
case v5:
y5();
break;
case x7:
switch (h) {
case q5:
if (!i) {
a5.push({ indent: m5, mode: E5.break ? W3 : q5, doc: E5.contents });
break;
}
case W3: {
i = false;
let g5 = { indent: m5, mode: q5, doc: E5.contents }, A5 = r5 - n, J3 = D5.length > 0;
if (!E5.break && rt3(g5, a5, A5, J3, u))
a5.push(g5);
else if (E5.expandedStates) {
let Q3 = b5(0, E5.expandedStates, -1);
if (E5.break) {
a5.push({ indent: m5, mode: W3, doc: Q3 });
break;
} else
for (let re2 = 1;re2 < E5.expandedStates.length + 1; re2++)
if (re2 >= E5.expandedStates.length) {
a5.push({ indent: m5, mode: W3, doc: Q3 });
break;
} else {
let Te3 = E5.expandedStates[re2], ne3 = { indent: m5, mode: q5, doc: Te3 };
if (rt3(ne3, a5, A5, J3, u)) {
a5.push(ne3);
break;
}
}
} else
a5.push({ indent: m5, mode: W3, doc: E5.contents });
break;
}
}
E5.id && (u[E5.id] = b5(0, a5, -1).mode);
break;
case w7: {
let g5 = r5 - n, A5 = E5[qt3] ?? 0, { parts: J3 } = E5, Q3 = J3.length - A5;
if (Q3 === 0)
break;
let re2 = J3[A5 + 0], Te3 = J3[A5 + 1], ne3 = { indent: m5, mode: q5, doc: re2 }, vt4 = { indent: m5, mode: W3, doc: re2 }, Rt4 = rt3(ne3, [], g5, D5.length > 0, u, true);
if (Q3 === 1) {
Rt4 ? a5.push(ne3) : a5.push(vt4);
break;
}
let Iu2 = { indent: m5, mode: q5, doc: Te3 }, Lt3 = { indent: m5, mode: W3, doc: Te3 };
if (Q3 === 2) {
Rt4 ? a5.push(Iu2, ne3) : a5.push(Lt3, vt4);
break;
}
let Xn2 = J3[A5 + 2], qn2 = { indent: m5, mode: h, doc: { ...E5, [qt3]: A5 + 2 } }, Qn2 = rt3({ indent: m5, mode: q5, doc: [re2, Te3, Xn2] }, [], g5, D5.length > 0, u, true);
a5.push(qn2), Qn2 ? a5.push(Iu2, ne3) : Rt4 ? a5.push(Lt3, ne3) : a5.push(Lt3, vt4);
break;
}
case B3:
case R3: {
let g5 = E5.groupId ? u[E5.groupId] : h;
if (g5 === W3) {
let A5 = E5.type === B3 ? E5.breakContents : E5.negate ? E5.contents : ae(E5.contents);
A5 && a5.push({ indent: m5, mode: h, doc: A5 });
}
if (g5 === q5) {
let A5 = E5.type === B3 ? E5.flatContents : E5.negate ? ae(E5.contents) : E5.contents;
A5 && a5.push({ indent: m5, mode: h, doc: A5 });
}
break;
}
case L3:
D5.push({ indent: m5, mode: h, doc: E5.contents });
break;
case M3:
D5.length > 0 && a5.push({ indent: m5, mode: h, doc: ke4 });
break;
case _5:
switch (h) {
case q5:
if (E5.hard)
i = true;
else {
E5.soft || (s += " ", n += 1);
break;
}
case W3:
if (D5.length > 0) {
a5.push({ indent: m5, mode: h, doc: E5 }, ...D5.reverse()), D5.length = 0;
break;
}
E5.literal ? (s += o, n = 0, m5.root && (m5.root.value && (s += m5.root.value), n = m5.root.length)) : (y5(), s += o + m5.value, n = m5.length);
break;
}
break;
case O3:
a5.push({ indent: m5, mode: h, doc: E5.contents });
break;
case T5:
break;
default:
throw new Z3(E5);
}
a5.length === 0 && D5.length > 0 && (a5.push(...D5.reverse()), D5.length = 0);
}
let p4 = l4.join("") + s, F3 = [...d, ...f5];
if (F3.length !== 2)
return { formatted: p4 };
let C5 = F3[0];
return { formatted: p4, cursorNodeStart: C5, cursorNodeText: p4.slice(C5, b5(0, F3, -1)) };
function y5() {
let { text: m5, count: h } = Xt4(s);
m5 && (l4.push(m5), c5 += m5.length), s = "", n -= h, f5.length > 0 && (d.push(...f5.map((E5) => Math.min(E5, c5))), f5.length = 0);
}
}
function Io2(e, t, u = 0) {
let r5 = 0;
for (let o = u;o < e.length; ++o)
e[o] === "\t" ? r5 = r5 + t - r5 % t : r5++;
return r5;
}
var he3 = Io2;
var Qt3 = class {
constructor(t) {
this.stack = [t];
}
get key() {
let { stack: t, siblings: u } = this;
return b5(0, t, u === null ? -2 : -4) ?? null;
}
get index() {
return this.siblings === null ? null : b5(0, this.stack, -2);
}
get node() {
return b5(0, this.stack, -1);
}
get parent() {
return this.getNode(1);
}
get grandparent() {
return this.getNode(2);
}
get isInArray() {
return this.siblings !== null;
}
get siblings() {
let { stack: t } = this, u = b5(0, t, -3);
return Array.isArray(u) ? u : null;
}
get next() {
let { siblings: t } = this;
return t === null ? null : t[this.index + 1];
}
get previous() {
let { siblings: t } = this;
return t === null ? null : t[this.index - 1];
}
get isFirst() {
return this.index === 0;
}
get isLast() {
let { siblings: t, index: u } = this;
return t !== null && u === t.length - 1;
}
get isRoot() {
return this.stack.length === 1;
}
get root() {
return this.stack[0];
}
get ancestors() {
return [...this.#e()];
}
getName() {
let { stack: t } = this, { length: u } = t;
return u > 1 ? b5(0, t, -2) : null;
}
getValue() {
return b5(0, this.stack, -1);
}
getNode(t = 0) {
let u = this.#t(t);
return u === -1 ? null : this.stack[u];
}
getParentNode(t = 0) {
return this.getNode(t + 1);
}
#t(t) {
let { stack: u } = this;
for (let r5 = u.length - 1;r5 >= 0; r5 -= 2)
if (!Array.isArray(u[r5]) && --t < 0)
return r5;
return -1;
}
call(t, ...u) {
let { stack: r5 } = this, { length: o } = r5, n = b5(0, r5, -1);
for (let a5 of u)
n = n?.[a5], r5.push(a5, n);
try {
return t(this);
} finally {
r5.length = o;
}
}
callParent(t, u = 0) {
let r5 = this.#t(u + 1), o = this.stack.splice(r5 + 1);
try {
return t(this);
} finally {
this.stack.push(...o);
}
}
each(t, ...u) {
let { stack: r5 } = this, { length: o } = r5, n = b5(0, r5, -1);
for (let a5 of u)
n = n[a5], r5.push(a5, n);
try {
for (let a5 = 0;a5 < n.length; ++a5)
r5.push(a5, n[a5]), t(this, a5, n), r5.length -= 2;
} finally {
r5.length = o;
}
}
map(t, ...u) {
let r5 = [];
return this.each((o, n, a5) => {
r5[n] = t(o, n, a5);
}, ...u), r5;
}
match(...t) {
let u = this.stack.length - 1, r5 = null, o = this.stack[u--];
for (let n of t) {
if (o === undefined)
return false;
let a5 = null;
if (typeof r5 == "number" && (a5 = r5, r5 = this.stack[u--], o = this.stack[u--]), n && !n(o, r5, a5))
return false;
r5 = this.stack[u--], o = this.stack[u--];
}
return true;
}
findAncestor(t) {
for (let u of this.#e())
if (t(u))
return u;
}
hasAncestor(t) {
for (let u of this.#e())
if (t(u))
return true;
return false;
}
*#e() {
let { stack: t } = this;
for (let u = t.length - 3;u >= 0; u -= 2) {
let r5 = t[u];
Array.isArray(r5) || (yield r5);
}
}
};
var pr3 = Qt3;
function ko2(e) {
return e !== null && typeof e == "object";
}
var ge4 = ko2;
function ye4(e) {
return (t, u, r5) => {
let o = !!r5?.backwards;
if (u === false)
return false;
let { length: n } = t, a5 = u;
for (;a5 >= 0 && a5 < n; ) {
let s = t.charAt(a5);
if (e instanceof RegExp) {
if (!e.test(s))
return a5;
} else if (!e.includes(s))
return a5;
o ? a5-- : a5++;
}
return a5 === -1 || a5 === n ? a5 : false;
};
}
var Fr3 = ye4(/\s/u);
var Y3 = ye4(" \t");
var nt4 = ye4(",; \t");
var ot3 = ye4(/[^\n\r]/u);
var mr2 = (e) => e === `
` || e === "\r" || e === "\u2028" || e === "\u2029";
function vo2(e, t, u) {
let r5 = !!u?.backwards;
if (t === false)
return false;
let o = e.charAt(t);
if (r5) {
if (e.charAt(t - 1) === "\r" && o === `
`)
return t - 2;
if (mr2(o))
return t - 1;
} else {
if (o === "\r" && e.charAt(t + 1) === `
`)
return t + 2;
if (mr2(o))
return t + 1;
}
return t;
}
var K3 = vo2;
function Ro2(e, t, u = {}) {
let r5 = Y3(e, u.backwards ? t - 1 : t, u), o = K3(e, r5, u);
return r5 !== o;
}
var z5 = Ro2;
function Lo2(e) {
return Array.isArray(e) && e.length > 0;
}
var Er4 = Lo2;
function* be3(e, t) {
let { getVisitorKeys: u, filter: r5 = () => true } = t, o = (n) => ge4(n) && r5(n);
for (let n of u(e)) {
let a5 = e[n];
if (Array.isArray(a5))
for (let s of a5)
o(s) && (yield s);
else
o(a5) && (yield a5);
}
}
function* Cr4(e, t) {
let u = [e];
for (let r5 = 0;r5 < u.length; r5++) {
let o = u[r5];
for (let n of be3(o, t))
yield n, u.push(n);
}
}
function hr3(e, t) {
return be3(e, t).next().done;
}
function gr3(e, t, u) {
let { cache: r5 } = u;
if (r5.has(e))
return r5.get(e);
let { filter: o } = u;
if (!o)
return [];
let n, a5 = (u.getChildren?.(e, u) ?? [...be3(e, { getVisitorKeys: u.getVisitorKeys })]).flatMap((D5) => (n ?? (n = [e, ...t]), o(D5, n) ? [D5] : gr3(D5, n, u))), { locStart: s, locEnd: i } = u;
return a5.sort((D5, f5) => s(D5) - s(f5) || i(D5) - i(f5)), r5.set(e, a5), a5;
}
var at3 = gr3;
function Mo2(e) {
let t = e.type || e.kind || "(unknown type)", u = String(e.name || e.id && (typeof e.id == "object" ? e.id.name : e.id) || e.key && (typeof e.key == "object" ? e.key.name : e.key) || e.value && (typeof e.value == "object" ? "" : String(e.value)) || e.operator || "");
return u.length > 20 && (u = u.slice(0, 19) + "\u2026"), t + (u ? " " + u : "");
}
function Zt4(e, t) {
(e.comments ?? (e.comments = [])).push(t), t.printed = false, t.nodeDescription = Mo2(e);
}
function fe2(e, t) {
t.leading = true, t.trailing = false, Zt4(e, t);
}
function ue3(e, t, u) {
t.leading = false, t.trailing = false, u && (t.marker = u), Zt4(e, t);
}
function le3(e, t) {
t.leading = false, t.trailing = true, Zt4(e, t);
}
var uu2 = new WeakMap;
function br3(e, t, u, r5, o = []) {
let { locStart: n, locEnd: a5 } = u, s = n(t), i = a5(t), D5 = at3(e, o, { cache: uu2, locStart: n, locEnd: a5, getVisitorKeys: u.getVisitorKeys, filter: u.printer.canAttachComment, getChildren: u.printer.getCommentChildNodes }), f5, l4, d = 0, c5 = D5.length;
for (;d < c5; ) {
let p4 = d + c5 >> 1, F3 = D5[p4], C5 = n(F3), y5 = a5(F3);
if (C5 <= s && i <= y5)
return br3(F3, t, u, F3, [F3, ...o]);
if (y5 <= s) {
f5 = F3, d = p4 + 1;
continue;
}
if (i <= C5) {
l4 = F3, c5 = p4;
continue;
}
throw new Error("Comment location overlaps with node location");
}
if (r5?.type === "TemplateLiteral") {
let { quasis: p4 } = r5, F3 = tu2(p4, t, u);
f5 && tu2(p4, f5, u) !== F3 && (f5 = null), l4 && tu2(p4, l4, u) !== F3 && (l4 = null);
}
return { enclosingNode: r5, precedingNode: f5, followingNode: l4 };
}
var eu2 = () => false;
function Ar4(e, t) {
let { comments: u } = e;
if (delete e.comments, !Er4(u) || !t.printer.canAttachComment)
return;
let r5 = [], { printer: { features: { experimental_avoidAstMutation: o }, handleComments: n = {} }, originalText: a5 } = t, { ownLine: s = eu2, endOfLine: i = eu2, remaining: D5 = eu2 } = n, f5 = u.map((l4, d) => ({ ...br3(e, l4, t), comment: l4, text: a5, options: t, ast: e, isLastComment: u.length - 1 === d }));
for (let [l4, d] of f5.entries()) {
let { comment: c5, precedingNode: p4, enclosingNode: F3, followingNode: C5, text: y5, options: m5, ast: h, isLastComment: E5 } = d, g5;
if (o ? g5 = [d] : (c5.enclosingNode = F3, c5.precedingNode = p4, c5.followingNode = C5, g5 = [c5, y5, m5, h, E5]), Yo2(y5, m5, f5, l4))
c5.placement = "ownLine", s(...g5) || (C5 ? fe2(C5, c5) : p4 ? le3(p4, c5) : F3 ? ue3(F3, c5) : ue3(h, c5));
else if (jo2(y5, m5, f5, l4))
c5.placement = "endOfLine", i(...g5) || (p4 ? le3(p4, c5) : C5 ? fe2(C5, c5) : F3 ? ue3(F3, c5) : ue3(h, c5));
else if (c5.placement = "remaining", !D5(...g5))
if (p4 && C5) {
let A5 = r5.length;
A5 > 0 && r5[A5 - 1].followingNode !== C5 && yr3(r5, m5), r5.push(d);
} else
p4 ? le3(p4, c5) : C5 ? fe2(C5, c5) : F3 ? ue3(F3, c5) : ue3(h, c5);
}
if (yr3(r5, t), !o)
for (let l4 of u)
delete l4.precedingNode, delete l4.enclosingNode, delete l4.followingNode;
}
var _r3 = (e) => !/[\S\n\u2028\u2029]/u.test(e);
function Yo2(e, t, u, r5) {
let { comment: o, precedingNode: n } = u[r5], { locStart: a5, locEnd: s } = t, i = a5(o);
if (n)
for (let D5 = r5 - 1;D5 >= 0; D5--) {
let { comment: f5, precedingNode: l4 } = u[D5];
if (l4 !== n || !_r3(e.slice(s(f5), i)))
break;
i = a5(f5);
}
return z5(e, i, { backwards: true });
}
function jo2(e, t, u, r5) {
let { comment: o, followingNode: n } = u[r5], { locStart: a5, locEnd: s } = t, i = s(o);
if (n)
for (let D5 = r5 + 1;D5 < u.length; D5++) {
let { comment: f5, followingNode: l4 } = u[D5];
if (l4 !== n || !_r3(e.slice(i, a5(f5))))
break;
i = s(f5);
}
return z5(e, i);
}
function yr3(e, t) {
let u = e.length;
if (u === 0)
return;
let { precedingNode: r5, followingNode: o } = e[0], n = t.locStart(o), a5;
for (a5 = u;a5 > 0; --a5) {
let { comment: s, precedingNode: i, followingNode: D5 } = e[a5 - 1];
P5(i, r5), P5(D5, o);
let f5 = t.originalText.slice(t.locEnd(s), n);
if (t.printer.isGap?.(f5, t) ?? /^[\s(]*$/u.test(f5))
n = t.locStart(s);
else
break;
}
for (let [s, { comment: i }] of e.entries())
s < a5 ? le3(r5, i) : fe2(o, i);
for (let s of [r5, o])
s.comments && s.comments.length > 1 && s.comments.sort((i, D5) => t.locStart(i) - t.locStart(D5));
e.length = 0;
}
function tu2(e, t, u) {
let r5 = u.locStart(t) - 1;
for (let o = 1;o < e.length; ++o)
if (r5 < u.locStart(e[o]))
return o - 1;
return 0;
}
function Uo2(e, t) {
let u = t - 1;
u = Y3(e, u, { backwards: true }), u = K3(e, u, { backwards: true }), u = Y3(e, u, { backwards: true });
let r5 = K3(e, u, { backwards: true });
return u !== r5;
}
var Le3 = Uo2;
function xr3(e, t) {
let u = e.node;
return u.printed = true, t.printer.printComment(e, t);
}
function Wo2(e, t) {
let u = e.node, r5 = [xr3(e, t)], { printer: o, originalText: n, locStart: a5, locEnd: s } = t;
if (o.isBlockComment?.(u)) {
let f5 = z5(n, s(u)) ? z5(n, a5(u), { backwards: true }) ? V3 : ut3 : " ";
r5.push(f5);
} else
r5.push(V3);
let D5 = K3(n, Y3(n, s(u)));
return D5 !== false && z5(n, D5) && r5.push(V3), r5;
}
function $o2(e, t, u) {
let r5 = e.node, o = xr3(e, t), { printer: n, originalText: a5, locStart: s } = t, i = n.isBlockComment?.(r5);
if (u?.hasLineSuffix && !u?.isBlock || z5(a5, s(r5), { backwards: true })) {
let D5 = Le3(a5, s(r5));
return { doc: ve3([V3, D5 ? V3 : "", o]), isBlock: i, hasLineSuffix: true };
}
return !i || u?.hasLineSuffix ? { doc: [ve3([" ", o]), ce3], isBlock: i, hasLineSuffix: true } : { doc: [" ", o], isBlock: i, hasLineSuffix: false };
}
function Vo2(e, t) {
let u = e.node;
if (!u)
return {};
let r5 = t[Symbol.for("printedComments")];
if ((u.comments || []).filter((i) => !r5.has(i)).length === 0)
return { leading: "", trailing: "" };
let n = [], a5 = [], s;
return e.each(() => {
let i = e.node;
if (r5?.has(i))
return;
let { leading: D5, trailing: f5 } = i;
D5 ? n.push(Wo2(e, t)) : f5 && (s = $o2(e, t, s), a5.push(s.doc));
}, "comments"), { leading: n, trailing: a5 };
}
function Br3(e, t, u) {
let { leading: r5, trailing: o } = Vo2(e, u);
return !r5 && !o ? t : Ee3(t, (n) => [r5, n, o]);
}
function Tr3(e) {
let { [Symbol.for("comments")]: t, [Symbol.for("printedComments")]: u } = e;
for (let r5 of t) {
if (!r5.printed && !u.has(r5))
throw new Error('Comment "' + r5.value.trim() + '" was not printed. Please report this error!');
delete r5.printed;
}
}
var Nr3 = () => P5;
var Me3 = class extends Error {
name = "ConfigError";
};
var Ye3 = class extends Error {
name = "UndefinedParserError";
};
var Sr3 = { checkIgnorePragma: { category: "Special", type: "boolean", default: false, description: "Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.", cliCategory: "Other" }, cursorOffset: { category: "Special", type: "int", default: -1, range: { start: -1, end: 1 / 0, step: 1 }, description: "Print (to stderr) where a cursor at the given position would move to after formatting.", cliCategory: "Editor" }, endOfLine: { category: "Global", type: "choice", default: "lf", description: "Which end of line characters to apply.", choices: [{ value: "lf", description: "Line Feed only (\\n), common on Linux and macOS as well as inside git repos" }, { value: "crlf", description: "Carriage Return + Line Feed characters (\\r\\n), common on Windows" }, { value: "cr", description: "Carriage Return character only (\\r), used very rarely" }, { value: "auto", description: `Maintain existing
(mixed values within one file are normalised by looking at what's used after the first line)` }] }, filepath: { category: "Special", type: "path", description: "Specify the input filepath. This will be used to do parser inference.", cliName: "stdin-filepath", cliCategory: "Other", cliDescription: "Path to the file to pretend that stdin comes from." }, insertPragma: { category: "Special", type: "boolean", default: false, description: "Insert @format pragma into file's first docblock comment.", cliCategory: "Other" }, parser: { category: "Global", type: "choice", default: undefined, description: "Which parser to use.", exception: (e) => typeof e == "string" || typeof e == "function", choices: [{ value: "flow", description: "Flow" }, { value: "babel", description: "JavaScript" }, { value: "babel-flow", description: "Flow" }, { value: "babel-ts", description: "TypeScript" }, { value: "typescript", description: "TypeScript" }, { value: "acorn", description: "JavaScript" }, { value: "espree", description: "JavaScript" }, { value: "meriyah", description: "JavaScript" }, { value: "css", description: "CSS" }, { value: "less", description: "Less" }, { value: "scss", description: "SCSS" }, { value: "json", description: "JSON" }, { value: "json5", description: "JSON5" }, { value: "jsonc", description: "JSON with Comments" }, { value: "json-stringify", description: "JSON.stringify" }, { value: "graphql", description: "GraphQL" }, { value: "markdown", description: "Markdown" }, { value: "mdx", description: "MDX" }, { value: "vue", description: "Vue" }, { value: "yaml", description: "YAML" }, { value: "glimmer", description: "Ember / Handlebars" }, { value: "html", description: "HTML" }, { value: "angular", description: "Angular" }, { value: "lwc", description: "Lightning Web Components" }, { value: "mjml", description: "MJML" }] }, plugins: { type: "path", array: true, default: [{ value: [] }], category: "Global", description: "Add a plugin. Multiple plugins can be passed as separate `--plugin`s.", exception: (e) => typeof e == "string" || typeof e == "object", cliName: "plugin", cliCategory: "Config" }, printWidth: { category: "Global", type: "int", default: 80, description: "The line length where Prettier will try wrap.", range: { start: 0, end: 1 / 0, step: 1 } }, rangeEnd: { category: "Special", type: "int", default: 1 / 0, range: { start: 0, end: 1 / 0, step: 1 }, description: `Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement.`, cliCategory: "Editor" }, rangeStart: { category: "Special", type: "int", default: 0, range: { start: 0, end: 1 / 0, step: 1 }, description: `Format code starting at a given character offset.
The range will extend backwards to the start of the first line containing the selected statement.`, cliCategory: "Editor" }, requirePragma: { category: "Special", type: "boolean", default: false, description: "Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.", cliCategory: "Other" }, tabWidth: { type: "int", category: "Global", default: 2, description: "Number of spaces per indentation level.", range: { start: 0, end: 1 / 0, step: 1 } }, useTabs: { category: "Global", type: "boolean", default: false, description: "Indent with tabs instead of spaces." }, embeddedLanguageFormatting: { category: "Global", type: "choice", default: "auto", description: "Control how Prettier formats quoted code embedded in the file.", choices: [{ value: "auto", description: "Format embedded code if Prettier can automatically identify it." }, { value: "off", description: "Never automatically format embedded code." }] } };
function it3({ plugins: e = [], showDeprecated: t = false } = {}) {
let u = e.flatMap((o) => o.languages ?? []), r5 = [];
for (let o of Go2(Object.assign({}, ...e.map(({ options: n }) => n), Sr3)))
!t && o.deprecated || (Array.isArray(o.choices) && (t || (o.choices = o.choices.filter((n) => !n.deprecated)), o.name === "parser" && (o.choices = [...o.choices, ...Ko2(o.choices, u, e)])), o.pluginDefaults = Object.fromEntries(e.filter((n) => n.defaultOptions?.[o.name] !== undefined).map((n) => [n.name, n.defaultOptions[o.name]])), r5.push(o));
return { languages: u, options: r5 };
}
function* Ko2(e, t, u) {
let r5 = new Set(e.map((o) => o.value));
for (let o of t)
if (o.parsers) {
for (let n of o.parsers)
if (!r5.has(n)) {
r5.add(n);
let a5 = u.find((i) => i.parsers && Object.prototype.hasOwnProperty.call(i.parsers, n)), s = o.name;
a5?.name && (s += ` (plugin: ${a5.name})`), yield { value: n, description: s };
}
}
}
function Go2(e) {
let t = [];
for (let [u, r5] of Object.entries(e)) {
let o = { name: u, ...r5 };
Array.isArray(o.default) && (o.default = b5(0, o.default, -1).value), t.push(o);
}
return t;
}
var zo2 = Array.prototype.toReversed ?? function() {
return [...this].reverse();
};
var Jo2 = X3("toReversed", function() {
if (Array.isArray(this))
return zo2;
});
var wr3 = Jo2;
function Ho2() {
let e = globalThis, t = e.Deno?.build?.os;
return typeof t == "string" ? t === "windows" : e.navigator?.platform?.startsWith("Win") ?? e.process?.platform?.startsWith("win") ?? false;
}
var Xo2 = Ho2();
function Or3(e) {
if (e = e instanceof URL ? e : new URL(e), e.protocol !== "file:")
throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);
return e;
}
function qo2(e) {
return e = Or3(e), decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
}
function Qo2(e) {
e = Or3(e);
let t = decodeURIComponent(e.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
return e.hostname !== "" && (t = `\\\\${e.hostname}${t}`), t;
}
function ru2(e) {
return Xo2 ? Qo2(e) : qo2(e);
}
var Pr3 = (e) => String(e).split(/[/\\]/u).pop();
var Ir2 = (e) => String(e).startsWith("file:");
function kr3(e, t) {
if (!t)
return;
let u = Pr3(t).toLowerCase();
return e.find(({ filenames: r5 }) => r5?.some((o) => o.toLowerCase() === u)) ?? e.find(({ extensions: r5 }) => r5?.some((o) => u.endsWith(o)));
}
function Zo2(e, t) {
if (t)
return e.find(({ name: u }) => u.toLowerCase() === t) ?? e.find(({ aliases: u }) => u?.includes(t)) ?? e.find(({ extensions: u }) => u?.includes(`.${t}`));
}
var ea4 = undefined;
function vr3(e, t) {
if (t) {
if (Ir2(t))
try {
t = ru2(t);
} catch {
return;
}
if (typeof t == "string")
return e.find(({ isSupported: u }) => u?.({ filepath: t }));
}
}
function ta4(e, t) {
let u = wr3(0, e.plugins).flatMap((o) => o.languages ?? []);
return (Zo2(u, t.language) ?? kr3(u, t.physicalFile) ?? kr3(u, t.file) ?? vr3(u, t.physicalFile) ?? vr3(u, t.file) ?? ea4?.(u, t.physicalFile))?.parsers[0];
}
var st2 = ta4;
var ie4 = { key: (e) => /^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e) ? e : JSON.stringify(e), value(e) {
if (e === null || typeof e != "object")
return JSON.stringify(e);
if (Array.isArray(e))
return `[${e.map((u) => ie4.value(u)).join(", ")}]`;
let t = Object.keys(e);
return t.length === 0 ? "{}" : `{ ${t.map((u) => `${ie4.key(u)}: ${ie4.value(e[u])}`).join(", ")} }`;
}, pair: ({ key: e, value: t }) => ie4.value({ [e]: t }) };
var nu2 = new Proxy(String, { get: () => nu2 });
var $3 = nu2;
var ou2 = () => nu2;
var Rr3 = (e, t, { descriptor: u }) => {
let r5 = [`${$3.yellow(typeof e == "string" ? u.key(e) : u.pair(e))} is deprecated`];
return t && r5.push(`we now treat it as ${$3.blue(typeof t == "string" ? u.key(t) : u.pair(t))}`), r5.join("; ") + ".";
};
var Dt3 = Symbol.for("vnopts.VALUE_NOT_EXIST");
var Ae4 = Symbol.for("vnopts.VALUE_UNCHANGED");
var Lr3 = " ".repeat(2);
var Yr4 = (e, t, u) => {
let { text: r5, list: o } = u.normalizeExpectedResult(u.schemas[e].expected(u)), n = [];
return r5 && n.push(Mr3(e, t, r5, u.descriptor)), o && n.push([Mr3(e, t, o.title, u.descriptor)].concat(o.values.map((a5) => jr3(a5, u.loggerPrintWidth))).join(`
`)), Ur3(n, u.loggerPrintWidth);
};
function Mr3(e, t, u, r5) {
return [`Invalid ${$3.red(r5.key(e))} value.`, `Expected ${$3.blue(u)},`, `but received ${t === Dt3 ? $3.gray("nothing") : $3.red(r5.value(t))}.`].join(" ");
}
function jr3({ text: e, list: t }, u) {
let r5 = [];
return e && r5.push(`- ${$3.blue(e)}`), t && r5.push([`- ${$3.blue(t.title)}:`].concat(t.values.map((o) => jr3(o, u - Lr3.length).replace(/^|\n/g, `$&${Lr3}`))).join(`
`)), Ur3(r5, u);
}
function Ur3(e, t) {
if (e.length === 1)
return e[0];
let [u, r5] = e, [o, n] = e.map((a5) => a5.split(`
`, 1)[0].length);
return o > t && o > n ? r5 : u;
}
var _e3 = [];
var au2 = [];
function ct3(e, t, u) {
if (e === t)
return 0;
let r5 = u?.maxDistance, o = e;
e.length > t.length && (e = t, t = o);
let n = e.length, a5 = t.length;
for (;n > 0 && e.charCodeAt(~-n) === t.charCodeAt(~-a5); )
n--, a5--;
let s = 0;
for (;s < n && e.charCodeAt(s) === t.charCodeAt(s); )
s++;
if (n -= s, a5 -= s, r5 !== undefined && a5 - n > r5)
return r5;
if (n === 0)
return r5 !== undefined && a5 > r5 ? r5 : a5;
let i, D5, f5, l4, d = 0, c5 = 0;
for (;d < n; )
au2[d] = e.charCodeAt(s + d), _e3[d] = ++d;
for (;c5 < a5; ) {
for (i = t.charCodeAt(s + c5), f5 = c5++, D5 = c5, d = 0;d < n; d++)
l4 = i === au2[d] ? f5 : f5 + 1, f5 = _e3[d], D5 = _e3[d] = f5 > D5 ? l4 > D5 ? D5 + 1 : l4 : l4 > f5 ? f5 + 1 : l4;
if (r5 !== undefined) {
let p4 = D5;
for (d = 0;d < n; d++)
_e3[d] < p4 && (p4 = _e3[d]);
if (p4 > r5)
return r5;
}
}
return _e3.length = n, au2.length = n, r5 !== undefined && D5 > r5 ? r5 : D5;
}
function Wr4(e, t, u) {
if (!Array.isArray(t) || t.length === 0)
return;
let r5 = u?.maxDistance, o = e.length;
for (let i of t)
if (i === e)
return i;
if (r5 === 0)
return;
let n, a5 = Number.POSITIVE_INFINITY, s = new Set;
for (let i of t) {
if (s.has(i))
continue;
s.add(i);
let D5 = Math.abs(i.length - o);
if (D5 >= a5 || r5 !== undefined && D5 > r5)
continue;
let f5 = Number.isFinite(a5) ? r5 === undefined ? a5 : Math.min(a5, r5) : r5, l4 = f5 === undefined ? ct3(e, i) : ct3(e, i, { maxDistance: f5 });
if (r5 !== undefined && l4 > r5)
continue;
let d = l4;
if (f5 !== undefined && l4 === f5 && f5 === r5 && (d = ct3(e, i)), d < a5 && (a5 = d, n = i, a5 === 0))
break;
}
if (!(r5 !== undefined && a5 > r5))
return n;
}
var ft3 = (e, t, { descriptor: u, logger: r5, schemas: o }) => {
let n = [`Ignored unknown option ${$3.yellow(u.pair({ key: e, value: t }))}.`], a5 = Wr4(e, Object.keys(o), { maxDistance: 3 });
a5 && n.push(`Did you mean ${$3.blue(u.key(a5))}?`), r5.warn(n.join(" "));
};
var ua3 = ["default", "expected", "validate", "deprecated", "forward", "redirect", "overlap", "preprocess", "postprocess"];
function ra4(e, t) {
let u = new e(t), r5 = Object.create(u);
for (let o of ua3)
o in t && (r5[o] = na3(t[o], u, S7.prototype[o].length));
return r5;
}
var S7 = class {
static create(t) {
return ra4(this, t);
}
constructor(t) {
this.name = t.name;
}
default(t) {}
expected(t) {
return "nothing";
}
validate(t, u) {
return false;
}
deprecated(t, u) {
return false;
}
forward(t, u) {}
redirect(t, u) {}
overlap(t, u, r5) {
return t;
}
preprocess(t, u) {
return t;
}
postprocess(t, u) {
return Ae4;
}
};
function na3(e, t, u) {
return typeof e == "function" ? (...r5) => e(...r5.slice(0, u - 1), t, ...r5.slice(u - 1)) : () => e;
}
var lt3 = class extends S7 {
constructor(t) {
super(t), this._sourceName = t.sourceName;
}
expected(t) {
return t.schemas[this._sourceName].expected(t);
}
validate(t, u) {
return u.schemas[this._sourceName].validate(t, u);
}
redirect(t, u) {
return this._sourceName;
}
};
var dt3 = class extends S7 {
expected() {
return "anything";
}
validate() {
return true;
}
};
var pt3 = class extends S7 {
constructor({ valueSchema: t, name: u = t.name, ...r5 }) {
super({ ...r5, name: u }), this._valueSchema = t;
}
expected(t) {
let { text: u, list: r5 } = t.normalizeExpectedResult(this._valueSchema.expected(t));
return { text: u && `an array of ${u}`, list: r5 && { title: "an array of the following values", values: [{ list: r5 }] } };
}
validate(t, u) {
if (!Array.isArray(t))
return false;
let r5 = [];
for (let o of t) {
let n = u.normalizeValidateResult(this._valueSchema.validate(o, u), o);
n !== true && r5.push(n.value);
}
return r5.length === 0 ? true : { value: r5 };
}
deprecated(t, u) {
let r5 = [];
for (let o of t) {
let n = u.normalizeDeprecatedResult(this._valueSchema.deprecated(o, u), o);
n !== false && r5.push(...n.map(({ value: a5 }) => ({ value: [a5] })));
}
return r5;
}
forward(t, u) {
let r5 = [];
for (let o of t) {
let n = u.normalizeForwardResult(this._valueSchema.forward(o, u), o);
r5.push(...n.map($r4));
}
return r5;
}
redirect(t, u) {
let r5 = [], o = [];
for (let n of t) {
let a5 = u.normalizeRedirectResult(this._valueSchema.redirect(n, u), n);
"remain" in a5 && r5.push(a5.remain), o.push(...a5.redirect.map($r4));
}
return r5.length === 0 ? { redirect: o } : { redirect: o, remain: r5 };
}
overlap(t, u) {
return t.concat(u);
}
};
function $r4({ from: e, to: t }) {
return { from: [e], to: t };
}
var Ft3 = class extends S7 {
expected() {
return "true or false";
}
validate(t) {
return typeof t == "boolean";
}
};
function Kr4(e, t) {
let u = Object.create(null);
for (let r5 of e) {
let o = r5[t];
if (u[o])
throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);
u[o] = r5;
}
return u;
}
function Gr4(e, t) {
let u = new Map;
for (let r5 of e) {
let o = r5[t];
if (u.has(o))
throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);
u.set(o, r5);
}
return u;
}
function zr3() {
let e = Object.create(null);
return (t) => {
let u = JSON.stringify(t);
return e[u] ? true : (e[u] = true, false);
};
}
function Jr3(e, t) {
let u = [], r5 = [];
for (let o of e)
t(o) ? u.push(o) : r5.push(o);
return [u, r5];
}
function Hr4(e) {
return e === Math.floor(e);
}
function Xr4(e, t) {
if (e === t)
return 0;
let u = typeof e, r5 = typeof t, o = ["undefined", "object", "boolean", "number", "string"];
return u !== r5 ? o.indexOf(u) - o.indexOf(r5) : u !== "string" ? Number(e) - Number(t) : e.localeCompare(t);
}
function qr3(e) {
return (...t) => {
let u = e(...t);
return typeof u == "string" ? new Error(u) : u;
};
}
function iu2(e) {
return e === undefined ? {} : e;
}
function su2(e) {
if (typeof e == "string")
return { text: e };
let { text: t, list: u } = e;
return oa2((t || u) !== undefined, "Unexpected `expected` result, there should be at least one field."), u ? { text: t, list: { title: u.title, values: u.values.map(su2) } } : { text: t };
}
function Du2(e, t) {
return e === true ? true : e === false ? { value: t } : e;
}
function cu2(e, t, u = false) {
return e === false ? false : e === true ? u ? true : [{ value: t }] : ("value" in e) ? [e] : e.length === 0 ? false : e;
}
function Vr3(e, t) {
return typeof e == "string" || "key" in e ? { from: t, to: e } : ("from" in e) ? { from: e.from, to: e.to } : { from: t, to: e.to };
}
function mt3(e, t) {
return e === undefined ? [] : Array.isArray(e) ? e.map((u) => Vr3(u, t)) : [Vr3(e, t)];
}
function fu2(e, t) {
let u = mt3(typeof e == "object" && "redirect" in e ? e.redirect : e, t);
return u.length === 0 ? { remain: t, redirect: u } : typeof e == "object" && ("remain" in e) ? { remain: e.remain, redirect: u } : { redirect: u };
}
function oa2(e, t) {
if (!e)
throw new Error(t);
}
var Et4 = class extends S7 {
constructor(t) {
super(t), this._choices = Gr4(t.choices.map((u) => u && typeof u == "object" ? u : { value: u }), "value");
}
expected({ descriptor: t }) {
let u = Array.from(this._choices.keys()).map((a5) => this._choices.get(a5)).filter(({ hidden: a5 }) => !a5).map((a5) => a5.value).sort(Xr4).map(t.value), r5 = u.slice(0, -2), o = u.slice(-2);
return { text: r5.concat(o.join(" or ")).join(", "), list: { title: "one of the following values", values: u } };
}
validate(t) {
return this._choices.has(t);
}
deprecated(t) {
let u = this._choices.get(t);
return u && u.deprecated ? { value: t } : false;
}
forward(t) {
let u = this._choices.get(t);
return u ? u.forward : undefined;
}
redirect(t) {
let u = this._choices.get(t);
return u ? u.redirect : undefined;
}
};
var Ct3 = class extends S7 {
expected() {
return "a number";
}
validate(t, u) {
return typeof t == "number";
}
};
var ht3 = class extends Ct3 {
expected() {
return "an integer";
}
validate(t, u) {
return u.normalizeValidateResult(super.validate(t, u), t) === true && Hr4(t);
}
};
var je3 = class extends S7 {
expected() {
return "a string";
}
validate(t) {
return typeof t == "string";
}
};
var Qr4 = ie4;
var Zr3 = ft3;
var en3 = Yr4;
var tn2 = Rr3;
var gt3 = class {
constructor(t, u) {
let { logger: r5 = console, loggerPrintWidth: o = 80, descriptor: n = Qr4, unknown: a5 = Zr3, invalid: s = en3, deprecated: i = tn2, missing: D5 = () => false, required: f5 = () => false, preprocess: l4 = (c5) => c5, postprocess: d = () => Ae4 } = u || {};
this._utils = { descriptor: n, logger: r5 || { warn: () => {} }, loggerPrintWidth: o, schemas: Kr4(t, "name"), normalizeDefaultResult: iu2, normalizeExpectedResult: su2, normalizeDeprecatedResult: cu2, normalizeForwardResult: mt3, normalizeRedirectResult: fu2, normalizeValidateResult: Du2 }, this._unknownHandler = a5, this._invalidHandler = qr3(s), this._deprecatedHandler = i, this._identifyMissing = (c5, p4) => !(c5 in p4) || D5(c5, p4), this._identifyRequired = f5, this._preprocess = l4, this._postprocess = d, this.cleanHistory();
}
cleanHistory() {
this._hasDeprecationWarned = zr3();
}
normalize(t) {
let u = {}, o = [this._preprocess(t, this._utils)], n = () => {
for (;o.length !== 0; ) {
let a5 = o.shift(), s = this._applyNormalization(a5, u);
o.push(...s);
}
};
n();
for (let a5 of Object.keys(this._utils.schemas)) {
let s = this._utils.schemas[a5];
if (!(a5 in u)) {
let i = iu2(s.default(this._utils));
"value" in i && o.push({ [a5]: i.value });
}
}
n();
for (let a5 of Object.keys(this._utils.schemas)) {
if (!(a5 in u))
continue;
let s = this._utils.schemas[a5], i = u[a5], D5 = s.postprocess(i, this._utils);
D5 !== Ae4 && (this._applyValidation(D5, a5, s), u[a5] = D5);
}
return this._applyPostprocess(u), this._applyRequiredCheck(u), u;
}
_applyNormalization(t, u) {
let r5 = [], { knownKeys: o, unknownKeys: n } = this._partitionOptionKeys(t);
for (let a5 of o) {
let s = this._utils.schemas[a5], i = s.preprocess(t[a5], this._utils);
this._applyValidation(i, a5, s);
let D5 = ({ from: c5, to: p4 }) => {
r5.push(typeof p4 == "string" ? { [p4]: c5 } : { [p4.key]: p4.value });
}, f5 = ({ value: c5, redirectTo: p4 }) => {
let F3 = cu2(s.deprecated(c5, this._utils), i, true);
if (F3 !== false)
if (F3 === true)
this._hasDeprecationWarned(a5) || this._utils.logger.warn(this._deprecatedHandler(a5, p4, this._utils));
else
for (let { value: C5 } of F3) {
let y5 = { key: a5, value: C5 };
if (!this._hasDeprecationWarned(y5)) {
let m5 = typeof p4 == "string" ? { key: p4, value: C5 } : p4;
this._utils.logger.warn(this._deprecatedHandler(y5, m5, this._utils));
}
}
};
mt3(s.forward(i, this._utils), i).forEach(D5);
let d = fu2(s.redirect(i, this._utils), i);
if (d.redirect.forEach(D5), "remain" in d) {
let c5 = d.remain;
u[a5] = a5 in u ? s.overlap(u[a5], c5, this._utils) : c5, f5({ value: c5 });
}
for (let { from: c5, to: p4 } of d.redirect)
f5({ value: c5, redirectTo: p4 });
}
for (let a5 of n) {
let s = t[a5];
this._applyUnknownHandler(a5, s, u, (i, D5) => {
r5.push({ [i]: D5 });
});
}
return r5;
}
_applyRequiredCheck(t) {
for (let u of Object.keys(this._utils.schemas))
if (this._identifyMissing(u, t) && this._identifyRequired(u))
throw this._invalidHandler(u, Dt3, this._utils);
}
_partitionOptionKeys(t) {
let [u, r5] = Jr3(Object.keys(t).filter((o) => !this._identifyMissing(o, t)), (o) => (o in this._utils.schemas));
return { knownKeys: u, unknownKeys: r5 };
}
_applyValidation(t, u, r5) {
let o = Du2(r5.validate(t, this._utils), t);
if (o !== true)
throw this._invalidHandler(u, o.value, this._utils);
}
_applyUnknownHandler(t, u, r5, o) {
let n = this._unknownHandler(t, u, this._utils);
if (n)
for (let a5 of Object.keys(n)) {
if (this._identifyMissing(a5, n))
continue;
let s = n[a5];
a5 in this._utils.schemas ? o(a5, s) : r5[a5] = s;
}
}
_applyPostprocess(t) {
let u = this._postprocess(t, this._utils);
if (u !== Ae4) {
if (u.delete)
for (let r5 of u.delete)
delete t[r5];
if (u.override) {
let { knownKeys: r5, unknownKeys: o } = this._partitionOptionKeys(u.override);
for (let n of r5) {
let a5 = u.override[n];
this._applyValidation(a5, n, this._utils.schemas[n]), t[n] = a5;
}
for (let n of o) {
let a5 = u.override[n];
this._applyUnknownHandler(n, a5, t, (s, i) => {
let D5 = this._utils.schemas[s];
this._applyValidation(i, s, D5), t[s] = i;
});
}
}
}
}
};
var lu2;
function ia4(e, t, { logger: u = false, isCLI: r5 = false, passThrough: o = false, FlagSchema: n, descriptor: a5 } = {}) {
if (r5) {
if (!n)
throw new Error("'FlagSchema' option is required.");
if (!a5)
throw new Error("'descriptor' option is required.");
} else
a5 = ie4;
let s = o ? Array.isArray(o) ? (d, c5) => o.includes(d) ? { [d]: c5 } : undefined : (d, c5) => ({ [d]: c5 }) : (d, c5, p4) => {
let { _: F3, ...C5 } = p4.schemas;
return ft3(d, c5, { ...p4, schemas: C5 });
}, i = sa4(t, { isCLI: r5, FlagSchema: n }), D5 = new gt3(i, { logger: u, unknown: s, descriptor: a5 }), f5 = u !== false;
f5 && lu2 && (D5._hasDeprecationWarned = lu2);
let l4 = D5.normalize(e);
return f5 && (lu2 = D5._hasDeprecationWarned), l4;
}
function sa4(e, { isCLI: t, FlagSchema: u }) {
let r5 = [];
t && r5.push(dt3.create({ name: "_" }));
for (let o of e)
r5.push(Da2(o, { isCLI: t, optionInfos: e, FlagSchema: u })), o.alias && t && r5.push(lt3.create({ name: o.alias, sourceName: o.name }));
return r5;
}
function Da2(e, { isCLI: t, optionInfos: u, FlagSchema: r5 }) {
let { name: o } = e, n = { name: o }, a5, s = {};
switch (e.type) {
case "int":
a5 = ht3, t && (n.preprocess = Number);
break;
case "string":
a5 = je3;
break;
case "choice":
a5 = Et4, n.choices = e.choices.map((i) => i?.redirect ? { ...i, redirect: { to: { key: e.name, value: i.redirect } } } : i);
break;
case "boolean":
a5 = Ft3;
break;
case "flag":
a5 = r5, n.flags = u.flatMap((i) => [i.alias, i.description && i.name, i.oppositeDescription && `no-${i.name}`].filter(Boolean));
break;
case "path":
a5 = je3;
break;
default:
throw new Error(`Unexpected type ${e.type}`);
}
if (e.exception ? n.validate = (i, D5, f5) => e.exception(i) || D5.validate(i, f5) : n.validate = (i, D5, f5) => i === undefined || D5.validate(i, f5), e.redirect && (s.redirect = (i) => i ? { to: typeof e.redirect == "string" ? e.redirect : { key: e.redirect.option, value: e.redirect.value } } : undefined), e.deprecated && (s.deprecated = true), t && !e.array) {
let i = n.preprocess || ((D5) => D5);
n.preprocess = (D5, f5, l4) => f5.preprocess(i(Array.isArray(D5) ? b5(0, D5, -1) : D5), l4);
}
return e.array ? pt3.create({ ...t ? { preprocess: (i) => Array.isArray(i) ? i : [i] } : {}, ...s, valueSchema: a5.create(n) }) : a5.create({ ...n, ...s });
}
var un2 = ia4;
var ca2 = Array.prototype.findLast ?? function(e) {
for (let t = this.length - 1;t >= 0; t--) {
let u = this[t];
if (e(u, t, this))
return u;
}
};
var fa2 = X3("findLast", function() {
if (Array.isArray(this))
return ca2;
});
var du2 = fa2;
var rn2 = Symbol.for("PRETTIER_IS_FRONT_MATTER");
var pu2 = [];
function la2(e) {
return !!e?.[rn2];
}
var de3 = la2;
var nn2 = new Set(["yaml", "toml"]);
var Ue3 = ({ node: e }) => de3(e) && nn2.has(e.language);
async function Fu2(e, t, u, r5) {
let { node: o } = u, { language: n } = o;
if (!nn2.has(n))
return;
let a5 = o.value.trim(), s;
if (a5) {
let i = n === "yaml" ? n : st2(r5, { language: n });
if (!i)
return;
s = a5 ? await e(a5, { parser: i }) : "";
} else
s = a5;
return et3([o.startDelimiter, o.explicitLanguage ?? "", V3, s, s ? V3 : "", o.endDelimiter]);
}
function da3(e, t) {
return Ue3({ node: e }) && (delete t.end, delete t.raw, delete t.value), t;
}
var mu2 = da3;
function pa2({ node: e }) {
return e.raw;
}
var Eu2 = pa2;
var on2 = new Set(["tokens", "comments", "parent", "enclosingNode", "precedingNode", "followingNode"]);
var Fa3 = (e) => Object.keys(e).filter((t) => !on2.has(t));
function ma3(e, t) {
let u = e ? (r5) => e(r5, on2) : Fa3;
return t ? new Proxy(u, { apply: (r5, o, n) => de3(n[0]) ? pu2 : Reflect.apply(r5, o, n) }) : u;
}
var Cu2 = ma3;
function gu2(e, t) {
if (!t)
throw new Error("parserName is required.");
let u = du2(0, e, (o) => o.parsers && Object.prototype.hasOwnProperty.call(o.parsers, t));
if (u)
return u;
let r5 = `Couldn't resolve parser "${t}".`;
throw r5 += " Plugins must be explicitly added to the standalone bundle.", new Me3(r5);
}
function an2(e, t) {
if (!t)
throw new Error("astFormat is required.");
let u = du2(0, e, (o) => o.printers && Object.prototype.hasOwnProperty.call(o.printers, t));
if (u)
return u;
let r5 = `Couldn't find plugin for AST format "${t}".`;
throw r5 += " Plugins must be explicitly added to the standalone bundle.", new Me3(r5);
}
function We3({ plugins: e, parser: t }) {
let u = gu2(e, t);
return yu2(u, t);
}
function yu2(e, t) {
let u = e.parsers[t];
return typeof u == "function" ? u() : u;
}
async function sn3(e, t) {
let u = e.printers[t], r5 = typeof u == "function" ? await u() : u;
return Ea2(r5);
}
var hu2 = new WeakMap;
var q0 = Symbol("PRINTER_NORMALIZED_MARK");
function Ea2(e) {
if (hu2.has(e))
return hu2.get(e);
let { features: t, getVisitorKeys: u, embed: r5, massageAstNode: o, print: n, ...a5 } = e;
t = ya2(t);
let s = t.experimental_frontMatterSupport;
u = Cu2(u, s.massageAstNode || s.embed || s.print);
let i = o;
o && s.massageAstNode && (i = new Proxy(o, { apply(d, c5, p4) {
return mu2(...p4), Reflect.apply(d, c5, p4);
} }));
let D5 = r5;
if (r5) {
let d;
D5 = new Proxy(r5, { get(c5, p4, F3) {
return p4 === "getVisitorKeys" ? (d ?? (d = r5.getVisitorKeys ? Cu2(r5.getVisitorKeys, s.massageAstNode || s.embed) : u), d) : Reflect.get(c5, p4, F3);
}, apply: (c5, p4, F3) => s.embed && Ue3(...F3) ? Fu2 : Reflect.apply(c5, p4, F3) });
}
let f5 = n;
s.print && (f5 = new Proxy(n, { apply(d, c5, p4) {
let [F3] = p4;
return de3(F3.node) ? Eu2(F3) : Reflect.apply(d, c5, p4);
} }));
let l4 = { features: t, getVisitorKeys: u, embed: D5, massageAstNode: i, print: f5, ...a5 };
return hu2.set(e, l4), l4;
}
var Ca2 = ["clean", "embed", "print"];
var ha = Object.fromEntries(Ca2.map((e) => [e, false]));
function ga(e) {
return { ...ha, ...e };
}
function ya2(e) {
return { experimental_avoidAstMutation: false, ...e, experimental_frontMatterSupport: ga(e?.experimental_frontMatterSupport) };
}
var Dn2 = { astFormat: "estree", printer: {}, originalText: undefined, locStart: null, locEnd: null, getVisitorKeys: null };
async function ba2(e, t = {}) {
let u = { ...e };
if (!u.parser)
if (u.filepath) {
if (u.parser = st2(u, { physicalFile: u.filepath }), !u.parser)
throw new Ye3(`No parser could be inferred for file "${u.filepath}".`);
} else
throw new Ye3("No parser and no file path given, couldn't infer a parser.");
let r5 = it3({ plugins: e.plugins, showDeprecated: true }).options, o = { ...Dn2, ...Object.fromEntries(r5.filter((l4) => l4.default !== undefined).map((l4) => [l4.name, l4.default])) }, n = gu2(u.plugins, u.parser), a5 = await yu2(n, u.parser);
u.astFormat = a5.astFormat, u.locEnd = a5.locEnd, u.locStart = a5.locStart;
let s = n.printers?.[a5.astFormat] ? n : an2(u.plugins, a5.astFormat), i = await sn3(s, a5.astFormat);
u.printer = i, u.getVisitorKeys = i.getVisitorKeys;
let D5 = s.defaultOptions ? Object.fromEntries(Object.entries(s.defaultOptions).filter(([, l4]) => l4 !== undefined)) : {}, f5 = { ...o, ...D5 };
for (let [l4, d] of Object.entries(f5))
(u[l4] === null || u[l4] === undefined) && (u[l4] = d);
return u.parser === "json" && (u.trailingComma = "none"), un2(u, r5, { passThrough: Object.keys(Dn2), ...t });
}
var se3 = ba2;
var pf2 = ao2(dn3(), 1);
var Au2 = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
var pn2 = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
var af2 = new RegExp("[" + Au2 + "]");
var sf2 = new RegExp("[" + Au2 + pn2 + "]");
Au2 = pn2 = null;
var _u2 = { keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"], strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"], strictBind: ["eval", "arguments"] };
var Df2 = new Set(_u2.keyword);
var cf2 = new Set(_u2.strict);
var ff2 = new Set(_u2.strictBind);
var It3 = (e, t) => (u) => e(t(u));
function mn2(e) {
return { keyword: e.cyan, capitalized: e.yellow, jsxIdentifier: e.yellow, punctuator: e.yellow, number: e.magenta, string: e.green, regex: e.magenta, comment: e.gray, invalid: It3(It3(e.white, e.bgRed), e.bold), gutter: e.gray, marker: It3(e.red, e.bold), message: It3(e.red, e.bold), reset: e.reset };
}
var hf2 = mn2(ou2(true));
var gf2 = mn2(ou2(false));
function _a3() {
return new Proxy({}, { get: () => (e) => e });
}
var Fn2 = /\r\n|[\n\r\u2028\u2029]/;
function xa(e, t, u) {
let r5 = Object.assign({ column: 0, line: -1 }, e.start), o = Object.assign({}, r5, e.end), { linesAbove: n = 2, linesBelow: a5 = 3 } = u || {}, s = r5.line, i = r5.column, D5 = o.line, f5 = o.column, l4 = Math.max(s - (n + 1), 0), d = Math.min(t.length, D5 + a5);
s === -1 && (l4 = 0), D5 === -1 && (d = t.length);
let c5 = D5 - s, p4 = {};
if (c5)
for (let F3 = 0;F3 <= c5; F3++) {
let C5 = F3 + s;
if (!i)
p4[C5] = true;
else if (F3 === 0) {
let y5 = t[C5 - 1].length;
p4[C5] = [i, y5 - i + 1];
} else if (F3 === c5)
p4[C5] = [0, f5];
else {
let y5 = t[C5 - F3].length;
p4[C5] = [0, y5];
}
}
else
i === f5 ? i ? p4[s] = [i, 0] : p4[s] = true : p4[s] = [i, f5 - i];
return { start: l4, end: d, markerLines: p4 };
}
function En3(e, t, u = {}) {
let o = _a3(false), n = e.split(Fn2), { start: a5, end: s, markerLines: i } = xa(t, n, u), D5 = t.start && typeof t.start.column == "number", f5 = String(s).length, d = e.split(Fn2, s).slice(a5, s).map((c5, p4) => {
let F3 = a5 + 1 + p4, y5 = ` ${` ${F3}`.slice(-f5)} |`, m5 = i[F3], h = !i[F3 + 1];
if (m5) {
let E5 = "";
if (Array.isArray(m5)) {
let g5 = c5.slice(0, Math.max(m5[0] - 1, 0)).replace(/[^\t]/g, " "), A5 = m5[1] || 1;
E5 = [`
`, o.gutter(y5.replace(/\d/g, " ")), " ", g5, o.marker("^").repeat(A5)].join(""), h && u.message && (E5 += " " + o.message(u.message));
}
return [o.marker(">"), o.gutter(y5), c5.length > 0 ? ` ${c5}` : "", E5].join("");
} else
return ` ${o.gutter(y5)}${c5.length > 0 ? ` ${c5}` : ""}`;
}).join(`
`);
return u.message && !D5 && (d = `${" ".repeat(f5 + 1)}${u.message}
${d}`), d;
}
async function Ba3(e, t) {
let u = await We3(t), r5 = u.preprocess ? await u.preprocess(e, t) : e;
t.originalText = r5;
let o;
try {
o = await u.parse(r5, t, t);
} catch (n) {
Ta2(n, e);
}
return { text: r5, ast: o };
}
function Ta2(e, t) {
let { loc: u } = e;
if (u) {
let r5 = En3(t, u, { highlightCode: true });
throw e.message += `
` + r5, e.codeFrame = r5, e;
}
throw e;
}
var Fe3 = Ba3;
async function Cn3(e, t, u, r5, o) {
if (u.embeddedLanguageFormatting !== "auto")
return;
let { printer: n } = u, { embed: a5 } = n;
if (!a5)
return;
if (a5.length > 2)
throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");
let { hasPrettierIgnore: s } = n, { getVisitorKeys: i } = a5, D5 = [];
d();
let f5 = e.stack;
for (let { print: c5, node: p4, pathStack: F3 } of D5)
try {
e.stack = F3;
let C5 = await c5(l4, t, e, u);
C5 && o.set(p4, C5);
} catch (C5) {
if (globalThis.PRETTIER_DEBUG)
throw C5;
}
e.stack = f5;
function l4(c5, p4) {
return Na3(c5, p4, u, r5);
}
function d() {
let { node: c5 } = e;
if (c5 === null || typeof c5 != "object" || s?.(e))
return;
for (let F3 of i(c5))
Array.isArray(c5[F3]) ? e.each(d, F3) : e.call(d, F3);
let p4 = a5(e, u);
if (p4) {
if (typeof p4 == "function") {
D5.push({ print: p4, node: c5, pathStack: [...e.stack] });
return;
}
o.set(c5, p4);
}
}
}
async function Na3(e, t, u, r5) {
let o = await se3({ ...u, ...t, parentParser: u.parser, originalText: e, cursorOffset: undefined, rangeStart: undefined, rangeEnd: undefined }, { passThrough: true }), { ast: n } = await Fe3(e, o), a5 = await r5(n, o);
return qe3(a5);
}
function Sa(e, t, u, r5) {
let { originalText: o, [Symbol.for("comments")]: n, locStart: a5, locEnd: s, [Symbol.for("printedComments")]: i } = t, { node: D5 } = e, f5 = a5(D5), l4 = s(D5);
for (let c5 of n)
a5(c5) >= f5 && s(c5) <= l4 && i.add(c5);
let { printPrettierIgnored: d } = t.printer;
return d ? d(e, t, u, r5) : o.slice(f5, l4);
}
var hn2 = Sa;
async function Ge4(e, t) {
({ ast: e } = await xu2(e, t));
let u = new Map, r5 = new pr3(e), o = Nr3(t), n = new Map;
await Cn3(r5, s, t, Ge4, n);
let a5 = await gn2(r5, t, s, undefined, n);
if (Tr3(t), t.cursorOffset >= 0) {
if (t.nodeAfterCursor && !t.nodeBeforeCursor)
return [ee2, a5];
if (t.nodeBeforeCursor && !t.nodeAfterCursor)
return [a5, ee2];
}
return a5;
function s(D5, f5) {
return D5 === undefined || D5 === r5 ? i(f5) : Array.isArray(D5) ? r5.call(() => i(f5), ...D5) : r5.call(() => i(f5), D5);
}
function i(D5) {
o(r5);
let f5 = r5.node;
if (f5 == null)
return "";
let l4 = ge4(f5) && D5 === undefined;
if (l4 && u.has(f5))
return u.get(f5);
let d = gn2(r5, t, s, D5, n);
return l4 && u.set(f5, d), d;
}
}
function gn2(e, t, u, r5, o) {
let { node: n } = e, { printer: a5 } = t, s;
switch (a5.hasPrettierIgnore?.(e) ? s = hn2(e, t, u, r5) : o.has(n) ? s = o.get(n) : s = a5.print(e, t, u, r5), n) {
case t.cursorNode:
s = Ee3(s, (i) => [ee2, i, ee2]);
break;
case t.nodeBeforeCursor:
s = Ee3(s, (i) => [i, ee2]);
break;
case t.nodeAfterCursor:
s = Ee3(s, (i) => [ee2, i]);
break;
}
return a5.printComment && !a5.willPrintOwnComments?.(e, t) && (s = Br3(e, s, t)), s;
}
async function xu2(e, t) {
let u = e.comments ?? [];
t[Symbol.for("comments")] = u, t[Symbol.for("printedComments")] = new Set, Ar4(e, t);
let { printer: { preprocess: r5 } } = t;
return e = r5 ? await r5(e, t) : e, { ast: e, comments: u };
}
function wa2(e, t) {
let { cursorOffset: u, locStart: r5, locEnd: o, getVisitorKeys: n } = t, a5 = (c5) => r5(c5) <= u && o(c5) >= u, s = e, i = [e];
for (let c5 of Cr4(e, { getVisitorKeys: n, filter: a5 }))
i.push(c5), s = c5;
if (hr3(s, { getVisitorKeys: n }))
return { cursorNode: s };
let D5, f5, l4 = -1, d = Number.POSITIVE_INFINITY;
for (;i.length > 0 && (D5 === undefined || f5 === undefined); ) {
s = i.pop();
let c5 = D5 !== undefined, p4 = f5 !== undefined;
for (let F3 of be3(s, { getVisitorKeys: n })) {
if (!c5) {
let C5 = o(F3);
C5 <= u && C5 > l4 && (D5 = F3, l4 = C5);
}
if (!p4) {
let C5 = r5(F3);
C5 >= u && C5 < d && (f5 = F3, d = C5);
}
}
}
return { nodeBeforeCursor: D5, nodeAfterCursor: f5 };
}
var Bu2 = wa2;
function Oa3(e, t) {
let { printer: u } = t, r5 = u.massageAstNode;
if (!r5)
return e;
let { getVisitorKeys: o } = u, { ignoredProperties: n } = r5;
return a5(e);
function a5(s, i) {
if (!ge4(s))
return s;
if (Array.isArray(s))
return s.map((d) => a5(d, i)).filter(Boolean);
let D5 = {}, f5 = new Set(o(s));
for (let d in s)
!Object.prototype.hasOwnProperty.call(s, d) || n?.has(d) || (f5.has(d) ? D5[d] = a5(s[d], s) : D5[d] = s[d]);
let l4 = r5(s, D5, i);
if (l4 !== null)
return l4 ?? D5;
}
}
var yn2 = Oa3;
var Pa2 = Array.prototype.findLastIndex ?? function(e) {
for (let t = this.length - 1;t >= 0; t--) {
let u = this[t];
if (e(u, t, this))
return t;
}
return -1;
};
var Ia3 = X3("findLastIndex", function() {
if (Array.isArray(this))
return Pa2;
});
var bn2 = Ia3;
var ka2 = ({ parser: e }) => e === "json" || e === "json5" || e === "jsonc" || e === "json-stringify";
function va2(e, t) {
return t = new Set(t), e.find((u) => xn2.has(u.type) && t.has(u));
}
function An3(e) {
let t = bn2(0, e, (u) => u.type !== "Program" && u.type !== "File");
return t === -1 ? e : e.slice(0, t + 1);
}
function Ra3(e, t, { locStart: u, locEnd: r5 }) {
let [o, ...n] = e, [a5, ...s] = t;
if (o === a5)
return [o, a5];
let i = u(o);
for (let f5 of An3(s))
if (u(f5) >= i)
a5 = f5;
else
break;
let D5 = r5(a5);
for (let f5 of An3(n)) {
if (r5(f5) <= D5)
o = f5;
else
break;
if (o === a5)
break;
}
return [o, a5];
}
function Tu2(e, t, u, r5, o = [], n) {
let { locStart: a5, locEnd: s } = u, i = a5(e), D5 = s(e);
if (t > D5 || t < i || n === "rangeEnd" && t === i || n === "rangeStart" && t === D5)
return;
let f5 = [e, ...o], l4 = at3(e, f5, { cache: uu2, locStart: a5, locEnd: s, getVisitorKeys: u.getVisitorKeys, filter: u.printer.canAttachComment, getChildren: u.printer.getCommentChildNodes });
for (let d of l4) {
let c5 = Tu2(d, t, u, r5, f5, n);
if (c5)
return c5;
}
if (r5(e, o[0]))
return f5;
}
function La3(e, t) {
return t !== "DeclareExportDeclaration" && e !== "TypeParameterDeclaration" && (e === "Directive" || e === "TypeAlias" || e === "TSExportAssignment" || e.startsWith("Declare") || e.startsWith("TSDeclare") || e.endsWith("Statement") || e.endsWith("Declaration"));
}
var xn2 = new Set(["JsonRoot", "ObjectExpression", "ArrayExpression", "StringLiteral", "NumericLiteral", "BooleanLiteral", "NullLiteral", "UnaryExpression", "TemplateLiteral"]);
var Ma3 = new Set(["OperationDefinition", "FragmentDefinition", "VariableDefinition", "TypeExtensionDefinition", "ObjectTypeDefinition", "FieldDefinition", "DirectiveDefinition", "EnumTypeDefinition", "EnumValueDefinition", "InputValueDefinition", "InputObjectTypeDefinition", "SchemaDefinition", "OperationTypeDefinition", "InterfaceTypeDefinition", "UnionTypeDefinition", "ScalarTypeDefinition"]);
function _n2(e, t, u) {
if (!t)
return false;
switch (e.parser) {
case "flow":
case "hermes":
case "babel":
case "babel-flow":
case "babel-ts":
case "typescript":
case "acorn":
case "espree":
case "meriyah":
case "oxc":
case "oxc-ts":
case "__babel_estree":
return La3(t.type, u?.type);
case "json":
case "json5":
case "jsonc":
case "json-stringify":
return xn2.has(t.type);
case "graphql":
return Ma3.has(t.kind);
case "vue":
return t.tag !== "root";
}
return false;
}
function Bn2(e, t, u) {
let { rangeStart: r5, rangeEnd: o, locStart: n, locEnd: a5 } = t;
P5(o > r5);
let s = e.slice(r5, o).search(/\S/u), i = s === -1;
if (!i)
for (r5 += s;o > r5 && !/\S/u.test(e[o - 1]); --o)
;
let D5 = Tu2(u, r5, t, (c5, p4) => _n2(t, c5, p4), [], "rangeStart");
if (!D5)
return;
let f5 = i ? D5 : Tu2(u, o, t, (c5) => _n2(t, c5), [], "rangeEnd");
if (!f5)
return;
let l4, d;
if (ka2(t)) {
let c5 = va2(D5, f5);
l4 = c5, d = c5;
} else
[l4, d] = Ra3(D5, f5, t);
return [Math.min(n(l4), n(d)), Math.max(a5(l4), a5(d))];
}
var wn3 = "\uFEFF";
var Tn2 = Symbol("cursor");
async function On2(e, t, u = 0) {
if (!e || e.trim().length === 0)
return { formatted: "", cursorOffset: -1, comments: [] };
let { ast: r5, text: o } = await Fe3(e, t);
t.cursorOffset >= 0 && (t = { ...t, ...Bu2(r5, t) });
let n = await Ge4(r5, t, u);
u > 0 && (n = tt3([V3, n], u, t.tabWidth));
let a5 = Ce3(n, t);
if (u > 0) {
let i = a5.formatted.trim();
a5.cursorNodeStart !== undefined && (a5.cursorNodeStart -= a5.formatted.indexOf(i), a5.cursorNodeStart < 0 && (a5.cursorNodeStart = 0, a5.cursorNodeText = a5.cursorNodeText.trimStart()), a5.cursorNodeStart + a5.cursorNodeText.length > i.length && (a5.cursorNodeText = a5.cursorNodeText.trimEnd())), a5.formatted = i + Se3(t.endOfLine);
}
let s = t[Symbol.for("comments")];
if (t.cursorOffset >= 0) {
let i, D5, f5, l4;
if ((t.cursorNode || t.nodeBeforeCursor || t.nodeAfterCursor) && a5.cursorNodeText)
if (f5 = a5.cursorNodeStart, l4 = a5.cursorNodeText, t.cursorNode)
i = t.locStart(t.cursorNode), D5 = o.slice(i, t.locEnd(t.cursorNode));
else {
if (!t.nodeBeforeCursor && !t.nodeAfterCursor)
throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");
i = t.nodeBeforeCursor ? t.locEnd(t.nodeBeforeCursor) : 0;
let y5 = t.nodeAfterCursor ? t.locStart(t.nodeAfterCursor) : o.length;
D5 = o.slice(i, y5);
}
else
i = 0, D5 = o, f5 = 0, l4 = a5.formatted;
let d = t.cursorOffset - i;
if (D5 === l4)
return { formatted: a5.formatted, cursorOffset: f5 + d, comments: s };
let c5 = D5.split("");
c5.splice(d, 0, Tn2);
let p4 = l4.split(""), F3 = Ut4(c5, p4), C5 = f5;
for (let y5 of F3)
if (y5.removed) {
if (y5.value.includes(Tn2))
break;
} else
C5 += y5.count;
return { formatted: a5.formatted, cursorOffset: C5, comments: s };
}
return { formatted: a5.formatted, cursorOffset: -1, comments: s };
}
async function Ya3(e, t) {
let { ast: u, text: r5 } = await Fe3(e, t), [o, n] = Bn2(r5, t, u) ?? [0, 0], a5 = r5.slice(o, n), s = Math.min(o, r5.lastIndexOf(`
`, o) + 1), i = r5.slice(s, o).match(/^\s*/u)[0], D5 = he3(i, t.tabWidth), f5 = await On2(a5, { ...t, rangeStart: 0, rangeEnd: Number.POSITIVE_INFINITY, cursorOffset: t.cursorOffset > o && t.cursorOffset <= n ? t.cursorOffset - o : -1, endOfLine: "lf" }, D5), l4 = f5.formatted.trimEnd(), { cursorOffset: d } = t;
d > n ? d += l4.length - a5.length : f5.cursorOffset >= 0 && (d = f5.cursorOffset + o);
let c5 = r5.slice(0, o) + l4 + r5.slice(n);
if (t.endOfLine !== "lf") {
let p4 = Se3(t.endOfLine);
d >= 0 && p4 === `\r
` && (d += $t3(c5.slice(0, d), `
`)), c5 = oe3(0, c5, `
`, p4);
}
return { formatted: c5, cursorOffset: d, comments: f5.comments };
}
function Nu2(e, t, u) {
return typeof t != "number" || Number.isNaN(t) || t < 0 || t > e.length ? u : t;
}
function Nn(e, t) {
let { cursorOffset: u, rangeStart: r5, rangeEnd: o } = t;
return u = Nu2(e, u, -1), r5 = Nu2(e, r5, 0), o = Nu2(e, o, e.length), { ...t, cursorOffset: u, rangeStart: r5, rangeEnd: o };
}
function Pn2(e, t) {
let { cursorOffset: u, rangeStart: r5, rangeEnd: o, endOfLine: n } = Nn(e, t), a5 = e.charAt(0) === wn3;
if (a5 && (e = e.slice(1), u--, r5--, o--), n === "auto" && (n = Yu2(e)), e.includes("\r")) {
let s = (i) => $t3(e.slice(0, Math.max(i, 0)), `\r
`);
u -= s(u), r5 -= s(r5), o -= s(o), e = ju2(e);
}
return { hasBOM: a5, text: e, options: Nn(e, { ...t, cursorOffset: u, rangeStart: r5, rangeEnd: o, endOfLine: n }) };
}
async function Sn3(e, t) {
let u = await We3(t);
return !u.hasPragma || u.hasPragma(e);
}
async function ja3(e, t) {
return (await We3(t)).hasIgnorePragma?.(e);
}
async function Su2(e, t) {
let { hasBOM: u, text: r5, options: o } = Pn2(e, await se3(t));
if (o.rangeStart >= o.rangeEnd && r5 !== "" || o.requirePragma && !await Sn3(r5, o) || o.checkIgnorePragma && await ja3(r5, o))
return { formatted: e, cursorOffset: t.cursorOffset, comments: [] };
let n;
return o.rangeStart > 0 || o.rangeEnd < r5.length ? n = await Ya3(r5, o) : (!o.requirePragma && o.insertPragma && o.printer.insertPragma && !await Sn3(r5, o) && (r5 = o.printer.insertPragma(r5)), n = await On2(r5, o)), u && (n.formatted = wn3 + n.formatted, n.cursorOffset >= 0 && n.cursorOffset++), n;
}
async function In2(e, t, u) {
let { text: r5, options: o } = Pn2(e, await se3(t)), n = await Fe3(r5, o);
return u && (u.preprocessForPrint && (n.ast = await xu2(n.ast, o)), u.massage && (n.ast = yn2(n.ast, o))), n;
}
async function kn3(e, t) {
t = await se3(t);
let u = await Ge4(e, t);
return Ce3(u, t);
}
async function vn2(e, t) {
let u = sr3(e), { formatted: r5 } = await Su2(u, { ...t, parser: "__js_expression" });
return r5;
}
async function Rn3(e, t) {
t = await se3(t);
let { ast: u } = await Fe3(e, t);
return t.cursorOffset >= 0 && (t = { ...t, ...Bu2(u, t) }), Ge4(u, t);
}
async function Ln3(e, t) {
return Ce3(e, await se3(t));
}
var wu2 = {};
Yt3(wu2, { builders: () => Wa3, printer: () => $a3, utils: () => Va3 });
var Wa3 = { join: Ie2, line: ut3, softline: or3, hardline: V3, literalline: Qe3, group: Kt3, conditionalGroup: tr4, fill: er4, lineSuffix: ve3, lineSuffixBoundary: ar3, cursor: ee2, breakParent: ce3, ifBreak: ur3, trim: ir3, indent: ae, indentIfBreak: rr3, align: De3, addAlignmentToDoc: tt3, markAsRoot: et3, dedentToRoot: Qu2, dedent: Zu2, hardlineWithoutBreakParent: ke4, literallineWithoutBreakParent: Gt3, label: nr3, concat: (e) => e };
var $a3 = { printDocToString: Ce3 };
var Va3 = { willBreak: Ku2, traverseDoc: we3, findInDoc: Xe3, mapDoc: Pe2, removeLines: zu2, stripTrailingHardline: qe3, replaceEndOfLine: Ju2, canBreak: Hu2 };
var Mn = "3.8.3";
var Pu2 = {};
Yt3(Pu2, { addDanglingComment: () => ue3, addLeadingComment: () => fe2, addTrailingComment: () => le3, getAlignmentSize: () => he3, getIndentSize: () => Yn2, getMaxContinuousCount: () => jn3, getNextNonSpaceNonCommentCharacter: () => Un3, getNextNonSpaceNonCommentCharacterIndex: () => ni3, getPreferredQuote: () => Vn2, getStringWidth: () => Re3, hasNewline: () => z5, hasNewlineInRange: () => Kn3, hasSpaces: () => Gn2, isNextLineEmpty: () => Di3, isNextLineEmptyAfterIndex: () => kt3, isPreviousLineEmpty: () => ai3, makeString: () => si3, skip: () => ye4, skipEverythingButNewLine: () => ot3, skipInlineComment: () => xe3, skipNewline: () => K3, skipSpaces: () => Y3, skipToLineEnd: () => nt4, skipTrailingComment: () => Be3, skipWhitespace: () => Fr3 });
function Ka2(e, t) {
if (t === false)
return false;
if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
for (let u = t + 2;u < e.length; ++u)
if (e.charAt(u) === "*" && e.charAt(u + 1) === "/")
return u + 2;
}
return t;
}
var xe3 = Ka2;
function Ga3(e, t) {
return t === false ? false : e.charAt(t) === "/" && e.charAt(t + 1) === "/" ? ot3(e, t) : t;
}
var Be3 = Ga3;
function za3(e, t) {
let u = null, r5 = t;
for (;r5 !== u; )
u = r5, r5 = Y3(e, r5), r5 = xe3(e, r5), r5 = Be3(e, r5), r5 = K3(e, r5);
return r5;
}
var ze3 = za3;
function Ja3(e, t) {
let u = null, r5 = t;
for (;r5 !== u; )
u = r5, r5 = nt4(e, r5), r5 = xe3(e, r5), r5 = Y3(e, r5);
return r5 = Be3(e, r5), r5 = K3(e, r5), r5 !== false && z5(e, r5);
}
var kt3 = Ja3;
function Ha3(e, t) {
let u = e.lastIndexOf(`
`);
return u === -1 ? 0 : he3(e.slice(u + 1).match(/^[\t ]*/u)[0], t);
}
var Yn2 = Ha3;
function Ou2(e) {
if (typeof e != "string")
throw new TypeError("Expected a string");
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
}
function Xa3(e, t) {
let u = e.matchAll(new RegExp(`(?:${Ou2(t)})+`, "gu"));
return u.reduce || (u = [...u]), u.reduce((r5, [o]) => Math.max(r5, o.length), 0) / t.length;
}
var jn3 = Xa3;
function qa3(e, t) {
let u = ze3(e, t);
return u === false ? "" : e.charAt(u);
}
var Un3 = qa3;
var Wn2 = Object.freeze({ character: "'", codePoint: 39 });
var $n2 = Object.freeze({ character: '"', codePoint: 34 });
var Qa3 = Object.freeze({ preferred: Wn2, alternate: $n2 });
var Za2 = Object.freeze({ preferred: $n2, alternate: Wn2 });
function ei3(e, t) {
let { preferred: u, alternate: r5 } = t === true || t === "'" ? Qa3 : Za2, { length: o } = e, n = 0, a5 = 0;
for (let s = 0;s < o; s++) {
let i = e.charCodeAt(s);
i === u.codePoint ? n++ : i === r5.codePoint && a5++;
}
return (n > a5 ? r5 : u).character;
}
var Vn2 = ei3;
function ti3(e, t, u) {
for (let r5 = t;r5 < u; ++r5)
if (e.charAt(r5) === `
`)
return true;
return false;
}
var Kn3 = ti3;
function ui4(e, t, u = {}) {
return Y3(e, u.backwards ? t - 1 : t, u) !== t;
}
var Gn2 = ui4;
function ri3(e, t, u) {
return ze3(e, u(t));
}
function ni3(e, t) {
return arguments.length === 2 || typeof t == "number" ? ze3(e, t) : ri3(...arguments);
}
function oi3(e, t, u) {
return Le3(e, u(t));
}
function ai3(e, t) {
return arguments.length === 2 || typeof t == "number" ? Le3(e, t) : oi3(...arguments);
}
function ii3(e, t, u) {
return kt3(e, u(t));
}
function si3(e, t, u) {
let r5 = t === '"' ? "'" : '"', n = oe3(0, e, /\\(.)|(["'])/gsu, (a5, s, i) => s === r5 ? s : i === t ? "\\" + i : i || (u && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(s) ? s : "\\" + s));
return t + n + t;
}
function Di3(e, t) {
return arguments.length === 2 || typeof t == "number" ? kt3(e, t) : ii3(...arguments);
}
function me3(e, t = 1) {
return async (...u) => {
let r5 = u[t] ?? {}, o = r5.plugins ?? [];
return u[t] = { ...r5, plugins: Array.isArray(o) ? o : Object.values(o) }, e(...u);
};
}
var zn2 = me3(Su2);
async function Jn2(e, t) {
let { formatted: u } = await zn2(e, { ...t, cursorOffset: -1 });
return u;
}
async function ci3(e, t) {
return await Jn2(e, t) === e;
}
var fi4 = me3(it3, 0);
var li3 = { parse: me3(In2), formatAST: me3(kn3), formatDoc: me3(vn2), printToDoc: me3(Rn3), printDocToString: me3(Ln3) };
// ../../node_modules/.bun/llmz@0.0.79+b49d396f5ed96e7f/node_modules/llmz/dist/chunk-LR6KTFHO.js
var cache = new LRUCache({ max: 1000 });
async function formatTypings(typings, options) {
if (cache.has(typings)) {
return cache.get(typings);
}
try {
options ??= {};
options.throwOnError ??= true;
const result = (await Jn2(typings, {
singleAttributePerLine: true,
bracketSameLine: true,
semi: false,
...options,
embeddedLanguageFormatting: "off",
plugins: [Ta, Ks, I0],
parser: "typescript",
filepath: "tools.d.ts"
})).trim();
cache.set(typings, result);
return result;
} catch (err) {
if (options == null ? undefined : options.throwOnError) {
throw new CodeFormattingError(err instanceof Error ? err.message : (err == null ? undefined : err.toString()) ?? "Unknown Error", typings);
}
return typings;
}
}
var Primitives = [
"string",
"number",
"boolean",
"unknown",
"void",
"any",
"null",
"undefined",
"never",
"bigint",
"symbol",
"object"
];
var LARGE_DECLARATION_LINES = 5;
var isPrimitive = (type) => Primitives.includes(type);
var isArrayOfPrimitives = (type) => Primitives.map((p4) => `${p4}[]`).includes(type);
var stripSpaces = (typings) => typings.replace(/ +/g, " ").trim();
var KeyValue = class {
constructor(key, value) {
this.key = key;
this.value = value;
}
};
var FnParameters = class {
constructor(schema) {
this.schema = schema;
}
};
var FnReturn = class {
constructor(schema) {
this.schema = schema;
}
};
var Declaration = class {
constructor(schema, identifier) {
this.schema = schema;
this.identifier = identifier;
}
};
async function getTypings(schema, options) {
options ??= {};
options.declaration ??= false;
let wrappedSchema = schema;
if ((options == null ? undefined : options.declaration) && exports_exports.is.zuiType(schema)) {
const title = "title" in schema.ui ? schema.ui.title : null;
if (!title) {
throw new Error('Only schemas with "title" Zui property can be declared.');
}
wrappedSchema = new Declaration(schema, title);
}
let dts = await sUnwrapZodRecursive(wrappedSchema, { ...options });
dts = await formatTypings(dts, { throwOnError: false });
return dts;
}
async function sUnwrapZodRecursive(schema, options) {
return sUnwrapZod(schema, options);
}
async function sUnwrapZod(schema, options) {
var _a4, _b2;
const newOptions = {
...options,
declaration: false,
parent: schema
};
if (schema instanceof Declaration) {
const description = getMultilineComment(schema.schema.description);
const withoutDesc = schema.schema.describe("");
const typings = await sUnwrapZodRecursive(withoutDesc, { ...newOptions, declaration: true });
const isLargeDeclaration = typings.split(`
`).length >= LARGE_DECLARATION_LINES;
const closingTag = isLargeDeclaration ? `// end of ${schema.identifier}` : "";
if (exports_exports.is.zuiFunction(schema.schema)) {
return stripSpaces(`${description}
declare function ${schema.identifier}${typings};${closingTag}`);
}
return stripSpaces(`${description}
declare const ${schema.identifier}: ${typings};${closingTag}`);
}
if (schema instanceof KeyValue) {
if (exports_exports.is.zuiOptional(schema.value) || exports_exports.is.zuiDefault(schema.value)) {
let innerType = schema.value._def.innerType;
if (exports_exports.is.zuiType(innerType) && !innerType.description && schema.value.description) {
innerType = innerType == null ? undefined : innerType.describe(schema.value.description);
}
const optionalToken = schema.key.endsWith("?") ? "" : "?";
return sUnwrapZodRecursive(new KeyValue(schema.key + optionalToken, innerType), newOptions);
}
const description = getMultilineComment(schema.value._def.description || schema.value.description);
const delimiter = (description == null ? undefined : description.trim().length) > 0 ? `
` : "";
const withoutDesc = schema.value.describe("");
return `${delimiter}${description}${delimiter}${schema.key}: ${await sUnwrapZodRecursive(withoutDesc, newOptions)}${delimiter}`;
}
if (schema instanceof FnParameters) {
if (exports_exports.is.zuiTuple(schema.schema)) {
let args = "";
for (let i = 0;i < schema.schema.items.length; i++) {
const argName = ((_b2 = (_a4 = schema.schema.items[i]) == null ? undefined : _a4.ui) == null ? undefined : _b2.title) ?? `arg${i}`;
const item = schema.schema.items[i];
args += `${await sUnwrapZodRecursive(new KeyValue(toPropertyKey(argName), item), newOptions)}, `;
}
return args;
}
const isLiteral = exports_exports.is.zuiLiteral(schema.schema.naked());
const typings = (await sUnwrapZodRecursive(schema.schema, newOptions)).trim();
const startsWithPairs = typings.startsWith("{") && typings.endsWith("}") || typings.startsWith("[") && typings.endsWith("]") || typings.startsWith("(") && typings.endsWith(")") || typings.startsWith("Array<") && typings.endsWith(">") || typings.startsWith("Record<") && typings.endsWith(">") || isArrayOfPrimitives(typings);
if (startsWithPairs || isLiteral) {
return `args: ${typings}`;
} else {
return typings;
}
}
if (schema instanceof FnReturn) {
if (exports_exports.is.zuiOptional(schema.schema)) {
return `${await sUnwrapZodRecursive(schema.schema.unwrap(), newOptions)} | undefined`;
}
return sUnwrapZodRecursive(schema.schema, newOptions);
}
if (schema === null) {
return "unknown";
}
if (exports_exports.is.zuiDefault(schema)) {
return sUnwrapZodRecursive(schema._def.innerType, options);
}
if (exports_exports.is.zuiVoid(schema)) {
return "void";
}
if (exports_exports.is.zuiUnknown(schema)) {
return "unknown";
}
if (exports_exports.is.zuiAny(schema)) {
return "any";
}
if (exports_exports.is.zuiPromise(schema)) {
return `Promise<${await sUnwrapZodRecursive(schema.unwrap(), newOptions)}>`;
}
if (exports_exports.is.zuiFunction(schema)) {
const description = getMultilineComment(schema._def.description);
const input = await sUnwrapZodRecursive(new FnParameters(schema._def.args), newOptions);
const output = await sUnwrapZodRecursive(new FnReturn(schema._def.returns), newOptions);
if (options == null ? undefined : options.declaration) {
return `${description}
(${input}): ${output}`;
}
return `${description}
(${input}) => ${output}`;
}
if (exports_exports.is.zuiArray(schema)) {
const item = await sUnwrapZodRecursive(schema._def.type, newOptions);
if (isPrimitive(item)) {
return `${item}[]`;
}
return `Array<${item}>`;
}
if (exports_exports.is.zuiEnum(schema)) {
const values = schema._def.values.map(escapeString);
return values.join(" | ");
}
if (exports_exports.is.zuiTuple(schema)) {
if (schema.items.length === 0) {
return "[]";
}
const items = await Promise.all(schema.items.map((i) => sUnwrapZodRecursive(i, newOptions)));
return `[${items.join(", ")}]`;
}
if (exports_exports.is.zuiNullable(schema)) {
return `${await sUnwrapZodRecursive(schema.unwrap(), options)} | null`;
}
if (exports_exports.is.zuiOptional(schema)) {
if ((options == null ? undefined : options.declaration) || exports_exports.is.zuiType(options == null ? undefined : options.parent) && options.parent.typeName === "ZodRecord") {
return `${await sUnwrapZodRecursive(schema._def.innerType, newOptions)} | undefined`;
}
const optionalToken = options.parent instanceof KeyValue ? "| undefined" : "";
const val = `${await sUnwrapZodRecursive(schema._def.innerType, newOptions)}${optionalToken}`;
return val;
}
if (exports_exports.is.zuiObject(schema)) {
const props = await Promise.all(Object.entries(schema.shape).map(async ([key, value]) => {
if (exports_exports.is.zuiType(value)) {
return sUnwrapZodRecursive(new KeyValue(toPropertyKey(key), value), newOptions);
}
return `${key}: unknown`;
}));
return `{ ${props.join("; ")} }`;
}
if (exports_exports.is.zuiString(schema)) {
const description = getMultilineComment(schema._def.description);
return `${description} string`.trim();
}
if (exports_exports.is.zuiUnion(schema)) {
const description = getMultilineComment(schema._def.description);
const options2 = await Promise.all(schema.options.map(async (option) => {
return sUnwrapZodRecursive(option, newOptions);
}));
return `${description}
${options2.join(" | ")}`;
}
if (exports_exports.is.zuiLiteral(schema)) {
const description = getMultilineComment(schema._def.description);
return `${description}
${typeof schema.value === "string" ? escapeString(schema.value) : String(schema.value)}`.trim();
}
if (exports_exports.is.zuiNumber(schema)) {
const description = getMultilineComment(schema._def.description);
return `${description} number`.trim();
}
if (exports_exports.is.zuiBoolean(schema)) {
const description = getMultilineComment(schema._def.description);
return `${description} boolean`.trim();
}
if (exports_exports.is.zuiCatch(schema)) {
return sUnwrapZodRecursive(schema.removeCatch(), newOptions);
}
if (exports_exports.is.zuiLazy(schema)) {
return sUnwrapZodRecursive(schema._def.getter(), newOptions);
}
if (exports_exports.is.zuiRecord(schema)) {
const description = getMultilineComment(schema._def.description);
const keyType = await sUnwrapZodRecursive(schema._def.keyType, newOptions);
const valueType = await sUnwrapZodRecursive(schema._def.valueType, newOptions);
return `${description} { [key: (${keyType})]: (${valueType}) }`;
}
try {
let typings = schema == null ? undefined : schema.toTypescriptType({ treatDefaultAsOptional: true });
typings ??= "unknown";
return stripSpaces(typings);
} catch (error) {
console.error("Error in sUnwrapZod", { error, schema, parent: options == null ? undefined : options.parent });
return "unknown";
}
}
export { LRUCache, formatTypings, getTypings };