@assistant-ui/metro 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -4,7 +4,7 @@
4
4
  * package needs no hard dependency on `metro` or `expo`; the input shape is
5
5
  * preserved and only `transformer.babelTransformerPath` is augmented.
6
6
  */
7
- type MetroConfigLike = {
7
+ export type MetroConfigLike = {
8
8
  /** assistant-ui options, stripped from the config handed back to Metro. */
9
9
  aui?: WithAuiOptions | undefined;
10
10
  transformer?: {
@@ -18,13 +18,13 @@ type MetroConfigLike = {
18
18
  * (Expo / React Native) babel transformer. Metro forks its transform workers
19
19
  * after `metro.config` is evaluated, so they inherit this value.
20
20
  */
21
- declare const UPSTREAM_TRANSFORMER_ENV = "AUI_METRO_UPSTREAM_TRANSFORMER";
21
+ export declare const UPSTREAM_TRANSFORMER_ENV = "AUI_METRO_UPSTREAM_TRANSFORMER";
22
22
  /**
23
23
  * Env var carrying the `backendless` option to the transformer. Metro forks its
24
24
  * transform workers after `metro.config` is evaluated, so they inherit it.
25
25
  */
26
- declare const BACKENDLESS_ENV = "AUI_METRO_BACKENDLESS";
27
- interface WithAuiOptions {
26
+ export declare const BACKENDLESS_ENV = "AUI_METRO_BACKENDLESS";
27
+ export interface WithAuiOptions {
28
28
  /**
29
29
  * The app has no backend importing the server builds of its `"use generative"`
30
30
  * modules (e.g. cloud-hosted runs). Frontend/human tool schemas then stay
@@ -57,7 +57,6 @@ interface WithAuiOptions {
57
57
  * Authoring is identical to the web: a `"use generative"` file whose default
58
58
  * export is `defineToolkit({ ... })`, registered with `Tools({ toolkit })`.
59
59
  */
60
- declare function withAui<T extends MetroConfigLike>(config: T): T;
60
+ export declare function withAui<T extends MetroConfigLike>(config: T): T;
61
61
  //#endregion
62
- export { BACKENDLESS_ENV, MetroConfigLike, UPSTREAM_TRANSFORMER_ENV, WithAuiOptions, withAui };
63
62
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;KASY;;EAEV,MAAM;EACN;IAEM;KACC;;GAGN;;;;;;;cAQU;;;;;cAMA;UAEI;;;;;;EAMf;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4Bc,QAAQ,UAAU,iBAAiB,QAAQ,IAAI"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YASY;;EAEV,MAAM;EACN;IAEM;KACC;;GAGN;;;;;;;qBAQU;;;;;qBAMA;iBAEI;;;;;;EAMf;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA4Bc,QAAQ,UAAU,iBAAiB,QAAQ,IAAI"}
@@ -41,7 +41,7 @@ _babel_types = __toESM(_babel_types, 1);
41
41
  const DIRECTIVE = "use generative";
42
42
  //#endregion
43
43
  //#region ../x-generative-compiler/dist/package.js
44
- var version = "0.0.17";
44
+ var version = "0.0.19";
45
45
  //#endregion
46
46
  //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js
47
47
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1 +1 @@
1
- {"version":3,"file":"transformer.cjs","names":["_traverse","_generate","parse","t","satisfies","require","createRequire","nodePath","existsSync","readFileSync","createHash","require","createRequire","UPSTREAM_TRANSFORMER_ENV","BACKENDLESS_ENV","statSync","fileURLToPath"],"sources":["../../x-generative-compiler/dist/constants.js","../../x-generative-compiler/dist/package.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js","../../x-generative-compiler/dist/compile.js","../src/transformer.ts"],"sourcesContent":["//#region src/constants.ts\n/** The directive a module uses to opt into generative compilation. */\nconst DIRECTIVE = \"use generative\";\n//#endregion\nexport { DIRECTIVE };\n\n//# sourceMappingURL=constants.js.map","//#region package.json\nvar version = \"0.0.17\";\n//#endregion\nexport { version };\n\n//# sourceMappingURL=package.js.map","'use strict'\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","'use strict'\n\nconst debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","'use strict'\n\nconst {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst safeSrc = exports.safeSrc = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n safeSrc[index] = safe\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n// Non-numeric identifiers include numeric identifiers but can be longer.\n// Therefore non-numeric identifiers must go first.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifier, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","'use strict'\n\n// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","'use strict'\n\nconst numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n if (typeof a === 'number' && typeof b === 'number') {\n return a === b ? 0 : a < b ? -1 : 1\n }\n\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","'use strict'\n\nconst debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\n\nconst isPrereleaseIdentifier = (prerelease, identifier) => {\n const identifiers = identifier.split('.')\n if (identifiers.length > prerelease.length) {\n return false\n }\n\n for (let i = 0; i < identifiers.length; i++) {\n if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) {\n return false\n }\n }\n\n return true\n}\n\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n if (this.major < other.major) {\n return -1\n }\n if (this.major > other.major) {\n return 1\n }\n if (this.minor < other.minor) {\n return -1\n }\n if (this.minor > other.minor) {\n return 1\n }\n if (this.patch < other.patch) {\n return -1\n }\n if (this.patch > other.patch) {\n return 1\n }\n return 0\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('build compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n if (release.startsWith('pre')) {\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n // Avoid an invalid semver results\n if (identifier) {\n const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])\n if (!match || match[1] !== identifier) {\n throw new Error(`invalid identifier: ${identifier}`)\n }\n }\n }\n\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n case 'release':\n if (this.prerelease.length === 0) {\n throw new Error(`version ${this.raw} is not a prerelease`)\n }\n this.prerelease.length = 0\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (isPrereleaseIdentifier(this.prerelease, identifier)) {\n const prereleaseBase = this.prerelease[identifier.split('.').length]\n if (isNaN(prereleaseBase)) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n","'use strict'\n\nconst parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","'use strict'\n\nconst parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","'use strict'\n\nconst SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","'use strict'\n\nconst parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // If the main part has no difference\n if (lowVersion.compareMain(highVersion) === 0) {\n if (lowVersion.minor && !lowVersion.patch) {\n return 'minor'\n }\n return 'patch'\n }\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are prereleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","'use strict'\n\nconst parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","'use strict'\n\nconst compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","'use strict'\n\nconst compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","'use strict'\n\nconst compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","'use strict'\n\nconst compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","'use strict'\n\nconst compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","'use strict'\n\nconst compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","'use strict'\n\nconst compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","'use strict'\n\nconst compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","'use strict'\n\nconst compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","'use strict'\n\nconst compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","'use strict'\n\nconst eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]\n let next\n while ((next = coerceRtlRegex.exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n const major = match[2]\n const minor = match[3] || '0'\n const patch = match[4] || '0'\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''\n\n return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)\n}\nmodule.exports = coerce\n","'use strict'\n\nconst parse = require('./parse')\nconst constants = require('../internal/constants')\nconst SemVer = require('../classes/semver')\n\nconst truncate = (version, truncation, options) => {\n if (!constants.RELEASE_TYPES.includes(truncation)) {\n return null\n }\n\n const clonedVersion = cloneInputVersion(version, options)\n return clonedVersion && doTruncation(clonedVersion, truncation)\n}\n\nconst cloneInputVersion = (version, options) => {\n const versionStringToParse = (\n version instanceof SemVer ? version.version : version\n )\n\n return parse(versionStringToParse, options)\n}\n\nconst doTruncation = (version, truncation) => {\n if (isPrerelease(truncation)) {\n return version.version\n }\n\n version.prerelease = []\n\n switch (truncation) {\n case 'major':\n version.minor = 0\n version.patch = 0\n break\n case 'minor':\n version.patch = 0\n break\n }\n\n return version.format()\n}\n\nconst isPrerelease = (type) => {\n return type.startsWith('pre')\n}\n\nmodule.exports = truncate\n","'use strict'\n\nclass LRUCache {\n constructor () {\n this.max = 1000\n this.map = new Map()\n }\n\n get (key) {\n const value = this.map.get(key)\n if (value === undefined) {\n return undefined\n } else {\n // Remove the key from the map and add it to the end\n this.map.delete(key)\n this.map.set(key, value)\n return value\n }\n }\n\n delete (key) {\n return this.map.delete(key)\n }\n\n set (key, value) {\n const deleted = this.delete(key)\n\n if (!deleted && value !== undefined) {\n // If cache is full, delete the least recently used item\n if (this.map.size >= this.max) {\n const firstKey = this.map.keys().next().value\n this.delete(firstKey)\n }\n\n this.map.set(key, value)\n }\n\n return this\n }\n}\n\nmodule.exports = LRUCache\n","'use strict'\n\nconst SPACE_CHARACTERS = /\\s+/g\n\n// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.formatted = undefined\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.formatted = undefined\n }\n\n get range () {\n if (this.formatted === undefined) {\n this.formatted = ''\n for (let i = 0; i < this.set.length; i++) {\n if (i > 0) {\n this.formatted += '||'\n }\n const comps = this.set[i]\n for (let k = 0; k < comps.length; k++) {\n if (k > 0) {\n this.formatted += ' '\n }\n this.formatted += comps[k].toString().trim()\n }\n }\n }\n return this.formatted\n }\n\n format () {\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // strip build metadata so it can't bleed into the version\n range = range.replace(BUILDSTRIPRE, '')\n\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('../internal/lrucache')\nconst cache = new LRU()\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n src,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\n// unbounded global build-metadata stripper used by parseRange\nconst BUILDSTRIPRE = new RegExp(src[t.BUILD], 'g')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n comp = comp.replace(re[t.BUILD], '')\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\nconst invalidXRangeOrder = (M, m, p) => (\n (isX(M) && !isX(m)) ||\n (isX(m) && p && !isX(p))\n)\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n // if we're including prereleases in the match, then the lower bound is\n // -0, the lowest possible prerelease value, just like x-ranges and carets.\n // this keeps `~1.2` equivalent to the `1.2.x` x-range it's documented as.\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n if (invalidXRangeOrder(M, m, p)) {\n return comp\n }\n\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\n// TODO build?\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","'use strict'\n\nconst ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","'use strict'\n\nconst Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","'use strict'\n\nconst Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","'use strict'\n\nconst Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","'use strict'\n\n// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","'use strict'\n\nconst outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","'use strict'\n\nconst Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n","'use strict'\n\n// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","'use strict'\n\nconst Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If LT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !c.test(gt.semver)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !c.test(lt.semver)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","'use strict'\n\n// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst truncate = require('./functions/truncate')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n truncate,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n","import { DIRECTIVE } from \"./constants.js\";\nimport { version } from \"./package.js\";\nimport { existsSync, readFileSync } from \"node:fs\";\nimport { createHash } from \"node:crypto\";\nimport { createRequire } from \"node:module\";\nimport * as nodePath from \"node:path\";\nimport { parse } from \"@babel/parser\";\nimport _traverse from \"@babel/traverse\";\nimport _generate from \"@babel/generator\";\nimport * as t from \"@babel/types\";\nimport { satisfies } from \"semver\";\n//#region src/compile.ts\nconst parserPlugins = [\n\t\"typescript\",\n\t\"jsx\",\n\t\"explicitResourceManagement\"\n];\nconst traverse = typeof _traverse === \"function\" ? _traverse : _traverse.default;\nconst generate = typeof _generate === \"function\" ? _generate : _generate.default;\n/** The required wrapper around a toolkit's tools (stripped at build time). */\nconst TOOLKIT_WRAPPER = \"defineToolkit\";\n/** The helper that produces MCP-only toolkit fragments. */\nconst MCP_TOOLKIT_WRAPPER = \"defineMcpToolkit\";\n/** The required wrapper around a generative-UI library (stripped at build time). */\nconst COMPONENTS_WRAPPER = \"defineGenerativeComponents\";\n/** The core package whose metadata declares supported compiler versions. */\nconst CORE_PACKAGE = \"@assistant-ui/core\";\n/** This package, checked against core's compatibility range. */\nconst COMPILER_PACKAGE = \"@assistant-ui/x-generative-compiler\";\n/** Packages that re-export core's generative markers. */\nconst DISTRIBUTION_PACKAGES = [\n\tCORE_PACKAGE,\n\t\"@assistant-ui/react\",\n\t\"@assistant-ui/react-native\",\n\t\"@assistant-ui/react-ink\"\n];\n/** Package that exports the generative UI runtime split by export condition. */\nconst GENERATIVE_UI_PACKAGE = \"@assistant-ui/react-generative-ui\";\n/**\n* The class whose instances expose split-by-condition tools (`present()`,\n* `promptUser()`). A toolkit entry that calls a method on one of these passes\n* through untouched — the library, not this compiler, routes its halves.\n*/\nconst GENERATIVE_FACTORY = \"JSONGenerativeUI\";\n/**\n* The factory producing an interactable's complete tool entry. Unlike\n* `JSONGenerativeUI`, its package has no per-target builds, so this compiler\n* splits the inline config: the client keeps `render`, the server drops it.\n* The factory's own `execute` is internal and client-safe (frontend tool).\n*/\nconst INTERACTABLE_TOOL_FACTORY = \"unstable_interactableTool\";\n/** Thrown when a `\"use generative\"` file violates an authoring constraint. */\nvar GenerativeCompileError = class extends Error {\n\tconstructor(message, filename) {\n\t\tsuper(`[assistant-ui/use-generative]${filename ? ` ${filename}:` : \"\"} ${message}`);\n\t\tthis.name = \"GenerativeCompileError\";\n\t}\n};\n/** Whether a source string opts into generative compilation via the directive. */\nfunction isGenerativeModule(code) {\n\tlet i = code.charCodeAt(0) === 65279 ? 1 : 0;\n\tfor (;;) {\n\t\twhile (i < code.length && /\\s/.test(code[i])) i++;\n\t\tif (code.startsWith(\"//\", i)) {\n\t\t\tconst nl = code.indexOf(\"\\n\", i);\n\t\t\tif (nl === -1) return false;\n\t\t\ti = nl + 1;\n\t\t} else if (code.startsWith(\"/*\", i)) {\n\t\t\tconst end = code.indexOf(\"*/\", i + 2);\n\t\t\tif (end === -1) return false;\n\t\t\ti = end + 2;\n\t\t} else break;\n\t}\n\tconst quote = code[i];\n\tif (quote !== \"\\\"\" && quote !== \"'\") return false;\n\tconst directiveStart = i + 1;\n\tif (!code.startsWith(\"use generative\", directiveStart)) return false;\n\tconst directiveEnd = directiveStart + DIRECTIVE.length;\n\tif (code[directiveEnd] !== quote) return false;\n\treturn hasDirectiveTerminator(code, directiveEnd + 1);\n}\nconst isGenerativeSource = (filename, source) => /\\.[cm]?[jt]sx?$/.test(filename) && isGenerativeModule(source);\nfunction hasDirectiveTerminator(code, start) {\n\tlet i = start;\n\tlet sawLineTerminator = false;\n\tfor (;;) {\n\t\tif (i >= code.length) return true;\n\t\tconst char = code.charCodeAt(i);\n\t\tif (isSemicolon(char)) return true;\n\t\tif (isLineTerminator(char)) {\n\t\t\tsawLineTerminator = true;\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code.startsWith(\"//\", i)) {\n\t\t\tconst lineEnd = nextLineTerminatorIndex(code, i + 2);\n\t\t\tif (lineEnd === -1) return true;\n\t\t\tsawLineTerminator = true;\n\t\t\ti = lineEnd + 1;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code.startsWith(\"/*\", i)) {\n\t\t\tconst end = code.indexOf(\"*/\", i + 2);\n\t\t\tif (end === -1) return false;\n\t\t\tsawLineTerminator ||= containsLineTerminator(code, i + 2, end);\n\t\t\ti = end + 2;\n\t\t\tcontinue;\n\t\t}\n\t\tif (/\\s/.test(code[i])) {\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\treturn sawLineTerminator && !startsExpressionContinuation(code, i);\n\t}\n}\nfunction nextLineTerminatorIndex(code, start) {\n\tfor (let i = start; i < code.length; i++) if (isLineTerminator(code.charCodeAt(i))) return i;\n\treturn -1;\n}\nfunction containsLineTerminator(code, start, end) {\n\tfor (let i = start; i < end; i++) if (isLineTerminator(code.charCodeAt(i))) return true;\n\treturn false;\n}\nfunction startsExpressionContinuation(code, start) {\n\tswitch (code[start]) {\n\t\tcase \".\":\n\t\tcase \"+\":\n\t\tcase \"-\":\n\t\tcase \"*\":\n\t\tcase \"/\":\n\t\tcase \"%\":\n\t\tcase \"<\":\n\t\tcase \">\":\n\t\tcase \"=\":\n\t\tcase \"!\":\n\t\tcase \"&\":\n\t\tcase \"|\":\n\t\tcase \"^\":\n\t\tcase \"?\":\n\t\tcase \":\":\n\t\tcase \",\":\n\t\tcase \"[\":\n\t\tcase \"(\":\n\t\tcase \"`\": return true;\n\t}\n\treturn startsKeywordContinuation(code, start, \"as\") || startsKeywordContinuation(code, start, \"in\") || startsKeywordContinuation(code, start, \"instanceof\") || startsKeywordContinuation(code, start, \"satisfies\");\n}\nfunction startsKeywordContinuation(code, start, keyword) {\n\tif (!code.startsWith(keyword, start)) return false;\n\tconst next = code[start + keyword.length];\n\treturn next === void 0 || !/[\\p{ID_Continue}$]/u.test(next);\n}\nfunction isSemicolon(char) {\n\treturn char === 59;\n}\nfunction isLineTerminator(char) {\n\treturn char === 10 || char === 13 || char === 8232 || char === 8233;\n}\n/**\n* Rewrites a `\"use generative\"` module for a single build target, keeping only the\n* regions that target needs and pruning the imports the dropped regions used.\n*/\nfunction compileGenerative(code, options) {\n\tcurrentCompilePass++;\n\tconst { target, filename } = options;\n\tconst backendless = options.backendless ?? false;\n\tconst ast = parse(code, {\n\t\tsourceType: \"module\",\n\t\tplugins: parserPlugins\n\t});\n\tif (!ast.program.directives.some((d) => d.value.value === \"use generative\")) throw new GenerativeCompileError(`missing \"${DIRECTIVE}\" directive`, filename);\n\tensureCompilerCompatibleWithCore(ast, filename);\n\tensureDefaultExport(ast, filename);\n\tconst generativeInstances = collectGenerativeInstances(ast);\n\tconst interactableToolImports = collectInteractableToolImports(ast);\n\tconst { spreadNames: toolkitSpreadNames, namespaceImports } = collectToolkitSpreadNames(ast, filename, createToolkitNameContext());\n\tconst flags = {\n\t\tkeptRender: false,\n\t\tkeptBackendExecute: false\n\t};\n\ttraverse(ast, { CallExpression(path) {\n\t\tconst callee = path.node.callee;\n\t\tconst object = t.isObjectExpression(path.node.arguments[0]) ? path.node.arguments[0] : null;\n\t\tif (t.isIdentifier(callee, { name: COMPONENTS_WRAPPER })) {\n\t\t\tif (!object) throw new GenerativeCompileError(`${COMPONENTS_WRAPPER}() takes an inline object literal of components`, filename);\n\t\t\tcompileComponents(object, target, flags, filename);\n\t\t\tpath.replaceWith(object);\n\t\t\tpath.skip();\n\t\t\treturn;\n\t\t}\n\t\tif (t.isIdentifier(callee, { name: TOOLKIT_WRAPPER })) {\n\t\t\tif (!object) throw new GenerativeCompileError(`${TOOLKIT_WRAPPER}() takes an inline object literal of tools`, filename);\n\t\t\tcompileToolkit(object, target, generativeInstances, interactableToolImports, toolkitSpreadNames, namespaceImports, flags, backendless, filename);\n\t\t\tpath.replaceWith(object);\n\t\t\tpath.skip();\n\t\t}\n\t} });\n\tconst { keptRender, keptBackendExecute } = flags;\n\tpruneUnused(ast);\n\tast.program.directives = ast.program.directives.filter((d) => d.value.value !== \"use generative\" && d.value.value !== \"use client\");\n\tif (target === \"client\" && keptRender) ast.program.directives.unshift(t.directive(t.directiveLiteral(\"use client\")));\n\tif (target === \"server\" && keptBackendExecute && (options.injectServerOnly ?? true)) ast.program.body.unshift(t.importDeclaration([], t.stringLiteral(\"server-only\")));\n\tconst result = generate(ast, {\n\t\tsourceMaps: options.sourceMaps ?? false,\n\t\t...filename ? { filename } : {},\n\t\tjsescOption: { minimal: true }\n\t}, code);\n\treturn {\n\t\tcode: result.code,\n\t\tmap: result.map\n\t};\n}\nconst checkedCorePackageJsonPaths = /* @__PURE__ */ new Set();\nconst COMPILER_VERSION = version;\nfunction ensureCompilerCompatibleWithCore(ast, filename) {\n\tconst corePackageJsonPath = resolveCorePackageJson(ast, filename);\n\tif (!corePackageJsonPath || checkedCorePackageJsonPaths.has(corePackageJsonPath)) return;\n\tconst corePackageJson = readPackageJson(corePackageJsonPath);\n\tconst range = corePackageJson?.optionalDevDependencies?.[COMPILER_PACKAGE];\n\tif (!range) {\n\t\tcheckedCorePackageJsonPaths.add(corePackageJsonPath);\n\t\treturn;\n\t}\n\tlet compatible = false;\n\ttry {\n\t\tcompatible = satisfies(COMPILER_VERSION, range, { includePrerelease: true });\n\t} catch {\n\t\tthrow new GenerativeCompileError(`${CORE_PACKAGE}@${corePackageJson.version ?? \"unknown\"} declares an invalid optionalDevDependencies range for ${COMPILER_PACKAGE}: ` + JSON.stringify(range), filename);\n\t}\n\tif (!compatible) throw new GenerativeCompileError(`${CORE_PACKAGE}@${corePackageJson.version ?? \"unknown\"} requires ${COMPILER_PACKAGE} ${range}, but the current compiler is ${COMPILER_VERSION}. Update @assistant-ui/next, @assistant-ui/vite, or @assistant-ui/metro so their compiler satisfies the core package's optionalDevDependencies range.`, filename);\n\tcheckedCorePackageJsonPaths.add(corePackageJsonPath);\n}\nfunction resolveCorePackageJson(ast, filename) {\n\tfor (const packageName of collectImportedDistributionPackages(ast)) {\n\t\tconst packageJsonPath = resolvePackageJson(packageName, filename);\n\t\tif (!packageJsonPath) continue;\n\t\tif (packageName === CORE_PACKAGE) return packageJsonPath;\n\t\tconst corePackageJsonPath = resolvePackageJson(CORE_PACKAGE, packageJsonPath);\n\t\tif (corePackageJsonPath) return corePackageJsonPath;\n\t}\n\treturn null;\n}\nfunction collectImportedDistributionPackages(ast) {\n\tconst packages = /* @__PURE__ */ new Set();\n\tfor (const statement of ast.program.body) {\n\t\tconst source = (t.isImportDeclaration(statement) || t.isExportNamedDeclaration(statement) || t.isExportAllDeclaration(statement)) && statement.source ? statement.source.value : null;\n\t\tif (!source) continue;\n\t\tconst packageName = packageNameFromSpecifier(source);\n\t\tif (packageName) packages.add(packageName);\n\t}\n\treturn packages;\n}\nfunction packageNameFromSpecifier(specifier) {\n\tfor (const packageName of DISTRIBUTION_PACKAGES) if (specifier === packageName || specifier.startsWith(`${packageName}/`)) return packageName;\n\treturn null;\n}\nfunction resolvePackageJson(packageName, filename) {\n\tconst requirePath = normalizeRequirePath(filename);\n\tconst require = createRequire(requirePath);\n\ttry {\n\t\treturn findPackageJson(require.resolve(packageName), packageName);\n\t} catch {\n\t\treturn findPackageJsonFromNodeModules(packageName, requirePath);\n\t}\n}\nfunction normalizeRequirePath(filename) {\n\treturn cleanAbsoluteFilename(filename) ?? import.meta.url;\n}\n/** Strips a `?query`/`#hash` suffix and returns the path only if it is absolute. */\nfunction cleanAbsoluteFilename(filename) {\n\tif (!filename) return null;\n\tconst clean = filename.split(/[?#]/, 1)[0];\n\treturn nodePath.isAbsolute(clean) ? clean : null;\n}\nfunction findPackageJson(fromPathOrUrl, packageName) {\n\tlet current = nodePath.dirname(fromPathOrUrl.startsWith(\"file:\") ? new URL(fromPathOrUrl).pathname : nodePath.resolve(fromPathOrUrl));\n\tfor (;;) {\n\t\tconst packageJsonPath = nodePath.join(current, \"package.json\");\n\t\tif (readPackageJson(packageJsonPath)?.name === packageName) return packageJsonPath;\n\t\tconst parent = nodePath.dirname(current);\n\t\tif (parent === current) return null;\n\t\tcurrent = parent;\n\t}\n}\nfunction findPackageJsonFromNodeModules(packageName, fromPathOrUrl) {\n\tconst parts = packageName.split(\"/\");\n\tlet current = nodePath.dirname(fromPathOrUrl.startsWith(\"file:\") ? new URL(fromPathOrUrl).pathname : nodePath.resolve(fromPathOrUrl));\n\tfor (;;) {\n\t\tconst packageJsonPath = nodePath.join(current, \"node_modules\", ...parts, \"package.json\");\n\t\tif (readPackageJson(packageJsonPath)?.name === packageName) return packageJsonPath;\n\t\tconst parent = nodePath.dirname(current);\n\t\tif (parent === current) return null;\n\t\tcurrent = parent;\n\t}\n}\nfunction readPackageJson(packageJsonPath) {\n\tif (!existsSync(packageJsonPath)) return null;\n\ttry {\n\t\treturn JSON.parse(readFileSync(packageJsonPath, \"utf8\"));\n\t} catch (error) {\n\t\tthrow new GenerativeCompileError(`could not parse package metadata at ${packageJsonPath}: ${error instanceof Error ? error.message : String(error)}`);\n\t}\n}\n/**\n* Errors unless the module's default export is the toolkit — a `defineToolkit(...)`\n* call (through `satisfies`/`as`/parens). This is the security boundary: the\n* default export is what the runtime registers, so it must be wrapped (and thus\n* split). A bare `export default { ... }` would ship a backend `execute` to the\n* client even if some *other* `defineToolkit(...)` exists elsewhere in the file.\n*/\nfunction ensureDefaultExport(ast, filename) {\n\tconst def = ast.program.body.find((stmt) => t.isExportDefaultDeclaration(stmt));\n\tif (!def) throw new GenerativeCompileError(\"missing a default export\", filename);\n\tif (!unwrapToToolkitCall(def.declaration)) throw new GenerativeCompileError(`the default export must be ${TOOLKIT_WRAPPER}({ ... }) or ${MCP_TOOLKIT_WRAPPER}({ ... }) (imported from \"@assistant-ui/react\"); wrapping is required so a backend \\`execute\\` can't be authored in a way that reaches the client`, filename);\n}\n/**\n* Unwraps a node through `satisfies`/`as`/parens to a call of the named function,\n* or returns `null`.\n*/\nfunction unwrapToCall(node, name) {\n\tif (t.isTSSatisfiesExpression(node) || t.isTSAsExpression(node)) return unwrapToCall(node.expression, name);\n\tif (t.isParenthesizedExpression(node)) return unwrapToCall(node.expression, name);\n\tif (t.isCallExpression(node) && t.isIdentifier(node.callee, { name })) return node;\n\treturn null;\n}\n/**\n* Unwraps a statement to its variable declaration through an `export` wrapper,\n* or returns `null`.\n*/\nfunction asVariableDeclaration(statement) {\n\tif (t.isVariableDeclaration(statement)) return statement;\n\tif (t.isExportNamedDeclaration(statement) && t.isVariableDeclaration(statement.declaration)) return statement.declaration;\n\treturn null;\n}\n/**\n* Collects the names bound to `new JSONGenerativeUI(...)` (e.g.\n* `const generative = new JSONGenerativeUI({ library })`). A toolkit entry that\n* calls a method on one of these is a generative tool whose halves the library\n* routes by export condition, so it passes through the toolkit pass untouched.\n*/\nfunction collectGenerativeInstances(ast) {\n\tconst names = /* @__PURE__ */ new Set();\n\tconst generativeFactories = collectGenerativeFactoryImports(ast);\n\tfor (const statement of ast.program.body) {\n\t\tconst variableDeclaration = asVariableDeclaration(statement);\n\t\tif (!variableDeclaration) continue;\n\t\tfor (const declaration of variableDeclaration.declarations) {\n\t\t\tconst { id, init } = declaration;\n\t\t\tif (t.isIdentifier(id) && t.isNewExpression(init) && t.isIdentifier(init.callee) && generativeFactories.has(init.callee.name)) names.add(id.name);\n\t\t}\n\t}\n\treturn names;\n}\n/**\n* Wraps a pass-through generative entry (`generative.present()`) so the tool it\n* returns loses its `unstable_backendDefault` marker. The library stamps the\n* marker at runtime, out of this compiler's reach, so a backendless client\n* build strips it post-hoc instead of threading an option into the library.\n*/\nfunction stripBackendDefaultExpression(expr) {\n\treturn t.callExpression(t.arrowFunctionExpression([t.objectPattern([t.objectProperty(t.identifier(\"unstable_backendDefault\"), t.identifier(\"_backendDefault\")), t.restElement(t.identifier(\"tool\"))])], t.identifier(\"tool\")), [expr]);\n}\nfunction collectGenerativeFactoryImports(ast) {\n\tconst names = /* @__PURE__ */ new Set();\n\tfor (const statement of ast.program.body) {\n\t\tif (!t.isImportDeclaration(statement) || statement.source.value !== GENERATIVE_UI_PACKAGE) continue;\n\t\tfor (const specifier of statement.specifiers) if (t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported, { name: GENERATIVE_FACTORY })) names.add(specifier.local.name);\n\t}\n\treturn names;\n}\n/**\n* Collects the local names `unstable_interactableTool` is imported under from a\n* distribution package, so toolkit entries calling it can be recognized\n* (and a same-named local function can't smuggle an arbitrary call through).\n*/\nfunction collectInteractableToolImports(ast) {\n\tconst names = /* @__PURE__ */ new Set();\n\tfor (const statement of ast.program.body) {\n\t\tif (!t.isImportDeclaration(statement)) continue;\n\t\tif (!packageNameFromSpecifier(statement.source.value)) continue;\n\t\tfor (const specifier of statement.specifiers) if (t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported, { name: INTERACTABLE_TOOL_FACTORY })) names.add(specifier.local.name);\n\t}\n\treturn names;\n}\nfunction createToolkitNameContext() {\n\treturn {\n\t\timportedToolkitNamesByFile: /* @__PURE__ */ new Map(),\n\t\tresolvingImportedToolkitNames: /* @__PURE__ */ new Set()\n\t};\n}\n/**\n* The inline config of an `unstable_interactableTool({ ... })` toolkit entry, or `null`\n* when the entry is some other expression.\n*/\nfunction interactableToolConfig(value, imports) {\n\treturn t.isCallExpression(value) && t.isIdentifier(value.callee) && imports.has(value.callee.name) && t.isObjectExpression(value.arguments[0]) ? value.arguments[0] : null;\n}\n/**\n* Toolkit identifiers that are safe to spread into a `defineToolkit({ ... })`,\n* paired with the static tool names they contain. A `null` name list means the\n* spread is safe, but its names are not statically known for duplicate checks.\n*\n* Two kinds qualify:\n*\n* - A local variable whose initializer is visible to this compiler pass: a\n* `defineToolkit(...)` binding is compiled in-place before a later spread\n* reads it, and `defineMcpToolkit(...)` entries can't contain executable code.\n* - The default import of another `\"use generative\"` module: that module is\n* split per-target by its own compiler pass, so spreading its default-exported\n* toolkit can't leak a backend `execute` to the client. Only the default\n* export crosses the generative-module boundary, so named imports don't\n* qualify — they would be `undefined` once that module is build-split.\n*\n* A namespace import (`import * as kit from \"...\"`) of a generative module is\n* tracked separately in `namespaceImports` so a `...kit` / `...kit.default`\n* spread can be rejected with a specific callout: only the default export\n* crosses the boundary, so a namespace spread is never safe.\n*/\nfunction collectToolkitSpreadNames(ast, filename, context) {\n\tconst spreadNames = /* @__PURE__ */ new Map();\n\tconst namespaceImports = /* @__PURE__ */ new Set();\n\tconst localToolkitCalls = /* @__PURE__ */ new Map();\n\tfor (const statement of ast.program.body) {\n\t\tconst localDeclaration = asVariableDeclaration(statement);\n\t\tif (localDeclaration) {\n\t\t\tfor (const declaration of localDeclaration.declarations) {\n\t\t\t\tconst { id, init } = declaration;\n\t\t\t\tif (t.isIdentifier(id) && init) {\n\t\t\t\t\tconst toolkitCall = unwrapToToolkitCall(init);\n\t\t\t\t\tif (toolkitCall) localToolkitCalls.set(id.name, toolkitCall);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\tif (t.isImportDeclaration(statement)) {\n\t\t\tconst defaultSpecifier = statement.specifiers.find((specifier) => t.isImportDefaultSpecifier(specifier));\n\t\t\tconst namespaceSpecifier = statement.specifiers.find((specifier) => t.isImportNamespaceSpecifier(specifier));\n\t\t\tif (!defaultSpecifier && !namespaceSpecifier) continue;\n\t\t\tconst names = getGenerativeImportToolkitNames(statement.source.value, filename, context);\n\t\t\tif (names === void 0) continue;\n\t\t\tif (defaultSpecifier) spreadNames.set(defaultSpecifier.local.name, names);\n\t\t\tif (namespaceSpecifier) namespaceImports.add(namespaceSpecifier.local.name);\n\t\t}\n\t}\n\tconst resolveLocal = (name) => {\n\t\tif (spreadNames.has(name)) return spreadNames.get(name);\n\t\tconst call = localToolkitCalls.get(name);\n\t\tif (!call) return void 0;\n\t\tconst object = t.isObjectExpression(call.arguments[0]) ? call.arguments[0] : null;\n\t\tconst publicNames = uniqueToolkitNames(object ? collectToolkitObjectNames(object, spreadNames) : null);\n\t\tspreadNames.set(name, publicNames);\n\t\treturn publicNames;\n\t};\n\tfor (const name of localToolkitCalls.keys()) resolveLocal(name);\n\treturn {\n\t\tspreadNames,\n\t\tnamespaceImports\n\t};\n}\nconst MODULE_EXTENSIONS = [\n\t\".ts\",\n\t\".tsx\",\n\t\".mts\",\n\t\".cts\",\n\t\".js\",\n\t\".jsx\",\n\t\".mjs\",\n\t\".cjs\"\n];\n/** Extensions a specifier may carry that actually map to a TS source file. */\nconst REWRITABLE_JS_EXTENSIONS = /* @__PURE__ */ new Set([\n\t\".js\",\n\t\".jsx\",\n\t\".mjs\",\n\t\".cjs\"\n]);\n/**\n* Reads the static tool names from the default export of an imported\n* `\"use generative\"` module. Relative specifiers and `tsconfig` path aliases\n* (e.g. `@/tools`) are resolved; anything else (a bare package, an unresolvable\n* alias) is treated as non-generative, and thus an unsafe spread.\n*/\nfunction getGenerativeImportToolkitNames(source, filename, context) {\n\tconst cleanFilename = cleanAbsoluteFilename(filename);\n\tif (!cleanFilename) return void 0;\n\tconst resolved = resolveImportedModuleFile(source, cleanFilename);\n\tif (!resolved) return void 0;\n\tif (context.importedToolkitNamesByFile.has(resolved)) return context.importedToolkitNamesByFile.get(resolved);\n\tif (context.resolvingImportedToolkitNames.has(resolved)) return null;\n\tlet code;\n\ttry {\n\t\tcode = readFileSync(resolved, \"utf8\");\n\t} catch {\n\t\tcontext.importedToolkitNamesByFile.set(resolved, void 0);\n\t\treturn;\n\t}\n\tif (!isGenerativeModule(code)) {\n\t\tcontext.importedToolkitNamesByFile.set(resolved, void 0);\n\t\treturn;\n\t}\n\tcontext.resolvingImportedToolkitNames.add(resolved);\n\ttry {\n\t\tconst names = getDefaultExportToolkitNames(parse(code, {\n\t\t\tsourceType: \"module\",\n\t\t\tplugins: parserPlugins\n\t\t}), resolved, context);\n\t\tcontext.importedToolkitNamesByFile.set(resolved, names);\n\t\treturn names;\n\t} catch (error) {\n\t\tif (error instanceof GenerativeCompileError) throw error;\n\t\tcontext.importedToolkitNamesByFile.set(resolved, null);\n\t\treturn null;\n\t} finally {\n\t\tcontext.resolvingImportedToolkitNames.delete(resolved);\n\t}\n}\nfunction getDefaultExportToolkitNames(ast, filename, context) {\n\tconst def = ast.program.body.find((stmt) => t.isExportDefaultDeclaration(stmt));\n\tif (!def) return null;\n\tconst toolkitCall = unwrapToToolkitCall(def.declaration);\n\tif (!toolkitCall || !t.isObjectExpression(toolkitCall.arguments[0])) return null;\n\tconst { spreadNames } = collectToolkitSpreadNames(ast, filename, context);\n\treturn uniqueToolkitNames(collectToolkitObjectNames(toolkitCall.arguments[0], spreadNames));\n}\n/** Resolves an import specifier (relative or `tsconfig`-aliased) to a file on disk. */\nfunction resolveImportedModuleFile(source, fromFilename) {\n\tif (source.startsWith(\".\")) return resolveModuleFileAtPath(nodePath.resolve(nodePath.dirname(fromFilename), source));\n\treturn resolveAliasImport(source, fromFilename);\n}\n/**\n* Resolves a candidate module path, trying TS/JS extensions then index files. A\n* specifier may carry a `.js`-family extension that maps to a `.ts`/`.tsx`\n* source (TypeScript's `bundler`/`nodenext` resolution), so the extension is\n* dropped before probing.\n*/\nfunction resolveModuleFileAtPath(base) {\n\tconst ext = nodePath.extname(base);\n\tif (ext && existsSync(base)) return base;\n\tconst stem = REWRITABLE_JS_EXTENSIONS.has(ext) ? base.slice(0, -ext.length) : base;\n\tfor (const candidateExt of MODULE_EXTENSIONS) {\n\t\tconst candidate = `${stem}${candidateExt}`;\n\t\tif (existsSync(candidate)) return candidate;\n\t}\n\tfor (const candidateExt of MODULE_EXTENSIONS) {\n\t\tconst candidate = nodePath.join(base, `index${candidateExt}`);\n\t\tif (existsSync(candidate)) return candidate;\n\t}\n\treturn null;\n}\n/** Resolves a `tsconfig` path alias (e.g. `@/tools/x`) to a file on disk. */\nfunction resolveAliasImport(source, fromFilename) {\n\tconst tsconfig = loadTsconfigAliases(nodePath.dirname(fromFilename));\n\tif (!tsconfig) return null;\n\tconst patterns = Object.entries(tsconfig.paths).sort(([a], [b]) => aliasSpecificity(b) - aliasSpecificity(a));\n\tfor (const [pattern, targets] of patterns) {\n\t\tconst matched = matchAliasPattern(pattern, source);\n\t\tif (matched === null) continue;\n\t\tfor (const target of targets) {\n\t\t\tconst specifier = substituteAliasWildcard(target, matched);\n\t\t\tconst file = resolveModuleFileAtPath(nodePath.resolve(tsconfig.baseDir, specifier));\n\t\t\tif (file) return file;\n\t\t}\n\t}\n\treturn null;\n}\n/** Ranks a `paths` key: an exact key outranks any wildcard; longer prefixes win. */\nfunction aliasSpecificity(pattern) {\n\tconst star = pattern.indexOf(\"*\");\n\treturn star === -1 ? pattern.length + 1 : star;\n}\n/** Substitutes the single `*` in a `paths` target with the matched text. */\nfunction substituteAliasWildcard(target, matched) {\n\tconst star = target.indexOf(\"*\");\n\tif (star === -1) return target;\n\treturn target.slice(0, star) + matched + target.slice(star + 1);\n}\n/**\n* Matches an import specifier against a `tsconfig` `paths` key. Returns the text\n* captured by the key's `*` (or `\"\"` for an exact, wildcard-free key), or `null`\n* when the specifier doesn't match.\n*/\nfunction matchAliasPattern(pattern, source) {\n\tconst star = pattern.indexOf(\"*\");\n\tif (star === -1) return pattern === source ? \"\" : null;\n\tconst prefix = pattern.slice(0, star);\n\tconst suffix = pattern.slice(star + 1);\n\tif (source.length >= prefix.length + suffix.length && source.startsWith(prefix) && source.endsWith(suffix)) return source.slice(prefix.length, source.length - suffix.length);\n\treturn null;\n}\nconst tsconfigAliasesByDir = /* @__PURE__ */ new Map();\nlet currentCompilePass = 0;\nfunction tsconfigFileVersion(content) {\n\treturn createHash(\"sha1\").update(content).digest(\"hex\");\n}\nfunction readTsconfigFile(state, path) {\n\tconst cached = state.fileContents.get(path);\n\tif (cached !== void 0) return cached;\n\tlet content;\n\ttry {\n\t\tcontent = readFileSync(path, \"utf8\");\n\t} catch {\n\t\tcontent = null;\n\t}\n\tstate.fileContents.set(path, content);\n\tstate.fileVersions.set(path, content === null ? null : tsconfigFileVersion(content));\n\treturn content;\n}\nfunction currentFileVersion(path) {\n\ttry {\n\t\treturn tsconfigFileVersion(readFileSync(path, \"utf8\"));\n\t} catch {\n\t\treturn null;\n\t}\n}\nfunction isTsconfigCacheCurrent(entry) {\n\tfor (const [path, version] of entry.fileVersions) if (currentFileVersion(path) !== version) return false;\n\treturn true;\n}\n/** Walks up from a directory to the nearest `tsconfig.json` that declares `paths`. */\nfunction loadTsconfigAliases(fromDir) {\n\tconst cached = tsconfigAliasesByDir.get(fromDir);\n\tif (cached) {\n\t\tif (cached.validatedInPass === currentCompilePass || cached.reuseAcrossPasses && isTsconfigCacheCurrent(cached)) {\n\t\t\tcached.validatedInPass = currentCompilePass;\n\t\t\treturn cached.aliases;\n\t\t}\n\t}\n\tlet aliases = null;\n\tconst state = {\n\t\tfileVersions: /* @__PURE__ */ new Map(),\n\t\tfileContents: /* @__PURE__ */ new Map(),\n\t\tcacheable: true\n\t};\n\tlet dir = fromDir;\n\tfor (;;) {\n\t\tconst tsconfigPath = nodePath.join(dir, \"tsconfig.json\");\n\t\tif (readTsconfigFile(state, tsconfigPath) !== null) {\n\t\t\taliases = readTsconfigAliases(tsconfigPath, /* @__PURE__ */ new Set(), state);\n\t\t\tif (aliases) break;\n\t\t}\n\t\tconst parent = nodePath.dirname(dir);\n\t\tif (parent === dir) break;\n\t\tdir = parent;\n\t}\n\ttsconfigAliasesByDir.set(fromDir, {\n\t\taliases,\n\t\tfileVersions: state.fileVersions,\n\t\tvalidatedInPass: currentCompilePass,\n\t\treuseAcrossPasses: state.cacheable\n\t});\n\treturn aliases;\n}\n/** Reads `baseUrl`/`paths` from a tsconfig, following a single `extends` chain. */\nfunction readTsconfigAliases(tsconfigPath, seen, state) {\n\tif (seen.has(tsconfigPath)) return null;\n\tseen.add(tsconfigPath);\n\tconst raw = readTsconfigFile(state, tsconfigPath);\n\tif (raw === null) return null;\n\tlet config;\n\ttry {\n\t\tconfig = parseJsonc(raw);\n\t} catch {\n\t\treturn null;\n\t}\n\tif (!config) return null;\n\tconst configDir = nodePath.dirname(tsconfigPath);\n\tconst { baseUrl, paths } = config.compilerOptions ?? {};\n\tif (paths) return {\n\t\tbaseDir: baseUrl ? nodePath.resolve(configDir, baseUrl) : configDir,\n\t\tpaths\n\t};\n\tconst extendsList = Array.isArray(config.extends) ? config.extends : config.extends ? [config.extends] : [];\n\tfor (let i = extendsList.length - 1; i >= 0; i--) {\n\t\tconst entry = extendsList[i];\n\t\tif (typeof entry !== \"string\") continue;\n\t\tconst extended = resolveExtendedTsconfig(entry, configDir, state);\n\t\tif (extended) {\n\t\t\tconst aliases = readTsconfigAliases(extended, seen, state);\n\t\t\tif (aliases) return aliases;\n\t\t}\n\t}\n\treturn null;\n}\n/** Resolves a tsconfig `extends` value (relative path or installed package). */\nfunction resolveExtendedTsconfig(extendsValue, configDir, state) {\n\tif (extendsValue.startsWith(\".\")) {\n\t\tconst base = nodePath.resolve(configDir, extendsValue);\n\t\tconst candidates = nodePath.extname(base) === \".json\" ? [base] : [`${base}.json`, base];\n\t\tfor (const candidate of candidates) if (readTsconfigFile(state, candidate) !== null) return candidate;\n\t\treturn null;\n\t}\n\tconst request = extendsValue.endsWith(\".json\") ? extendsValue : `${extendsValue}.json`;\n\tconst requireFromConfig = createRequire(nodePath.join(configDir, \"package.json\"));\n\ttry {\n\t\tconst resolved = requireFromConfig.resolve(request);\n\t\treadTsconfigFile(state, resolved);\n\t\treturn resolved;\n\t} catch {\n\t\tstate.cacheable = false;\n\t\treturn null;\n\t}\n}\n/** Parses JSON with `//` and block comments and trailing commas stripped (tsconfig is JSONC). */\nfunction parseJsonc(text) {\n\tconst withoutTrailingCommas = text.replace(/\"(?:[^\"\\\\]|\\\\.)*\"|\\/\\/[^\\n\\r]*|\\/\\*[\\s\\S]*?\\*\\//g, (match) => match.startsWith(\"\\\"\") ? match : \"\").replace(/,(\\s*[}\\]])/g, \"$1\");\n\treturn JSON.parse(withoutTrailingCommas);\n}\nfunction unwrapToToolkitCall(node) {\n\treturn unwrapToCall(node, TOOLKIT_WRAPPER) ?? unwrapToCall(node, MCP_TOOLKIT_WRAPPER);\n}\nfunction collectToolkitObjectNames(object, toolkitSpreadNames) {\n\tconst names = [];\n\tfor (const entry of object.properties) {\n\t\tconst entryNames = toolkitEntryNames(entry, toolkitSpreadNames);\n\t\tif (!entryNames) return null;\n\t\tnames.push(...entryNames);\n\t}\n\treturn names;\n}\nfunction uniqueToolkitNames(names) {\n\treturn names ? [...new Set(names)] : names;\n}\nfunction toolkitEntryNames(entry, toolkitSpreadNames) {\n\tif (t.isSpreadElement(entry)) {\n\t\tif (t.isIdentifier(entry.argument)) return toolkitSpreadNames.get(entry.argument.name) ?? null;\n\t\tconst directMcpToolkit = unwrapToCall(entry.argument, MCP_TOOLKIT_WRAPPER);\n\t\tif (directMcpToolkit && t.isObjectExpression(directMcpToolkit.arguments[0])) return collectToolkitObjectNames(directMcpToolkit.arguments[0], toolkitSpreadNames);\n\t\treturn null;\n\t}\n\tif (t.isObjectProperty(entry) || t.isObjectMethod(entry)) {\n\t\tconst name = memberName(entry.key, entry.computed);\n\t\treturn name ? [name] : [];\n\t}\n\treturn [];\n}\nfunction toolkitEntrySourceLabel(entry) {\n\tif (t.isSpreadElement(entry)) {\n\t\tif (t.isIdentifier(entry.argument)) return `...${entry.argument.name}`;\n\t\tif (unwrapToCall(entry.argument, MCP_TOOLKIT_WRAPPER)) return `...${MCP_TOOLKIT_WRAPPER}(...)`;\n\t\treturn \"...\";\n\t}\n\tif (t.isObjectProperty(entry) || t.isObjectMethod(entry)) {\n\t\tconst line = entry.loc?.start.line;\n\t\treturn line === void 0 ? \"inline property\" : `inline property (line ${line})`;\n\t}\n\treturn \"inline property\";\n}\nfunction warnDuplicateToolkitNames(object, toolkitSpreadNames, filename) {\n\tconst sourcesByToolName = /* @__PURE__ */ new Map();\n\tfor (const entry of object.properties) {\n\t\tconst entryNames = toolkitEntryNames(entry, toolkitSpreadNames);\n\t\tif (!entryNames) continue;\n\t\tconst source = toolkitEntrySourceLabel(entry);\n\t\tfor (const name of entryNames) {\n\t\t\tconst sources = sourcesByToolName.get(name);\n\t\t\tif (sources) sources.push(source);\n\t\t\telse sourcesByToolName.set(name, [source]);\n\t\t}\n\t}\n\tfor (const [name, sources] of sourcesByToolName) {\n\t\tconst winner = sources.at(-1);\n\t\tconst overridden = sources.slice(0, -1);\n\t\tif (winner === void 0 || overridden.length === 0) continue;\n\t\tconsole.warn(new GenerativeCompileError(`Duplicate tool name \"${name}\": ${winner} overrides ${overridden.join(\", \")}. JavaScript object spread keeps the last definition.`, filename).message);\n\t}\n}\nfunction isSafeToolkitSpread(entry, toolkitSpreadNames) {\n\tif (t.isIdentifier(entry.argument)) return toolkitSpreadNames.has(entry.argument.name);\n\tconst directMcpToolkit = unwrapToCall(entry.argument, MCP_TOOLKIT_WRAPPER);\n\treturn !!directMcpToolkit && t.isObjectExpression(directMcpToolkit.arguments[0]);\n}\nfunction genericUnsafeToolkitEntryMessage() {\n\treturn \"each tool must be an inline object literal (`name: { ... }`) or a compiler-visible toolkit spread / generative tool (e.g. `...defineMcpToolkit(...)`, `...baseToolkit`, `generative.present()`, or `unstable_interactableTool(...)`) so its `execute` can be routed\";\n}\nfunction describeUnsafeToolkitEntry(entry) {\n\tif (!t.isObjectProperty(entry)) return genericUnsafeToolkitEntryMessage();\n\tconst toolName = memberName(entry.key, entry.computed);\n\tconst raw = entryRawValue(entry);\n\tif (!toolName || !raw) return genericUnsafeToolkitEntryMessage();\n\treturn `tool \"${toolName}\" cannot be \\`${generate(raw).code}\\`; use an inline object literal (\\`${toolName}: { ... }\\`) or a compiler-visible toolkit spread / generative tool so its \\`execute\\` can be routed`;\n}\nfunction namespaceToolkitSpreadMessage() {\n\treturn `a namespace import (\\`import * as kit from \"...\"\\`) can't be spread into ${TOOLKIT_WRAPPER}({ ... }); only a generative module's default export crosses the build-split boundary, so import it as a default (\\`import kit from \"...\"\\`) and spread \\`...kit\\` instead`;\n}\n/** The `kit` in `...kit` or `...kit.default`, or null for a computed/opaque base. */\nfunction namespaceSpreadBaseName(argument) {\n\tif (t.isIdentifier(argument)) return argument.name;\n\tif (t.isMemberExpression(argument) && !argument.computed && t.isIdentifier(argument.object)) return argument.object.name;\n\treturn null;\n}\n/** The `JSONGenerativeUI` methods that produce a split-by-condition tool. */\nconst GENERATIVE_TOOL_METHODS = /* @__PURE__ */ new Set([\"present\", \"promptUser\"]);\n/**\n* Whether a toolkit entry's value is a call to a tool-producing method on a\n* collected `JSONGenerativeUI` instance (`generative.present()`), which passes\n* through. The method name is checked too, so a typo like `generative.presnt()`\n* is a compile error here rather than a pass-through that fails at runtime.\n*/\nfunction isGenerativeToolEntry(value, instances) {\n\treturn t.isCallExpression(value) && t.isMemberExpression(value.callee) && !value.callee.computed && t.isIdentifier(value.callee.object) && instances.has(value.callee.object.name) && t.isIdentifier(value.callee.property) && GENERATIVE_TOOL_METHODS.has(value.callee.property.name);\n}\n/**\n* Splits a `defineGenerativeComponents({ ... })` library for a build target:\n* a component's `render` (and the client imports it alone uses) is dropped on\n* the server; `properties`/`description` stay on both, since they drive the tool\n* schema either way. Mutates the object in place.\n*/\nfunction compileComponents(object, target, flags, filename) {\n\tfor (const entry of object.properties) {\n\t\tconst value = entryValue(entry);\n\t\tif (!value) throw new GenerativeCompileError(`each component in ${COMPONENTS_WRAPPER}() must be an inline object literal (\\`name: { ... }\\`) so its \\`render\\` can be routed`, filename);\n\t\tif (!findMember(value, \"render\")) continue;\n\t\tif (target === \"client\") flags.keptRender = true;\n\t\telse removeMember(value, \"render\");\n\t}\n}\n/**\n* Splits a `defineToolkit({ ... })` for a build target. Each inline tool is\n* routed by inferred type (see the per-entry logic); a generative entry like\n* `generative.present()` passes through, the library having already split it.\n* Mutates the object in place and records outcomes in {@link TargetFlags}.\n*/\nfunction compileToolkit(object, target, instances, interactableToolImports, toolkitSpreadNames, namespaceImports, flags, backendless, filename) {\n\tif (target === \"client\") warnDuplicateToolkitNames(object, toolkitSpreadNames, filename);\n\tconst nextProperties = [];\n\tfor (const entry of object.properties) {\n\t\tconst value = entryValue(entry);\n\t\tif (!value) {\n\t\t\tif (t.isSpreadElement(entry) && isSafeToolkitSpread(entry, toolkitSpreadNames)) {\n\t\t\t\tnextProperties.push(entry);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst raw = entryRawValue(entry);\n\t\t\tif (raw && isGenerativeToolEntry(raw, instances)) {\n\t\t\t\tif (backendless && target === \"client\" && t.isObjectProperty(entry)) entry.value = stripBackendDefaultExpression(raw);\n\t\t\t\tnextProperties.push(entry);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst config = raw && interactableToolConfig(raw, interactableToolImports);\n\t\t\tif (config) {\n\t\t\t\tif (target === \"client\") flags.keptRender = true;\n\t\t\t\telse removeMember(config, \"render\");\n\t\t\t\tnextProperties.push(entry);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (t.isSpreadElement(entry)) {\n\t\t\t\tconst namespaceBase = namespaceSpreadBaseName(entry.argument);\n\t\t\t\tif (namespaceBase && namespaceImports.has(namespaceBase)) throw new GenerativeCompileError(namespaceToolkitSpreadMessage(), filename);\n\t\t\t}\n\t\t\tthrow new GenerativeCompileError(describeUnsafeToolkitEntry(entry), filename);\n\t\t}\n\t\tconst toolName = t.isObjectProperty(entry) ? memberName(entry.key, entry.computed) : void 0;\n\t\tconst execute = findMember(value, \"execute\");\n\t\tconst isStub = execute ? executeIsStubTool(execute) : false;\n\t\tconst isExternal = execute ? executeIsExternalTool(execute) : false;\n\t\tconst type = inferToolType(value, toolName, filename);\n\t\tconst hasRender = !!findMember(value, \"render\");\n\t\tconst hasRenderText = !!findMember(value, \"renderText\");\n\t\tif (type === \"frontend\" && !hasRender && !hasRenderText) throw new GenerativeCompileError(`${typedToolSubject(\"frontend\", toolName)} must declare a \\`render\\` or \\`renderText\\` (it has no server execute to show otherwise)`, filename);\n\t\tif (type === \"human\" && !hasRender) throw new GenerativeCompileError(`${typedToolSubject(\"human\", toolName)} must declare a \\`render\\` so it can collect input`, filename);\n\t\tif (type === \"provider\" && execute) applyProviderToolConfig(value, execute, toolName, filename);\n\t\tif (isExternal) {\n\t\t\tif (!hasRender && !hasRenderText) throw new GenerativeCompileError(`${typedToolSubject(\"external\", toolName)} must declare a \\`render\\` or \\`renderText\\` (assistant-ui only renders calls for tools defined elsewhere)`, filename);\n\t\t\tif (target === \"server\") continue;\n\t\t\tstripExternalToolMetadata(value);\n\t\t}\n\t\tif (target === \"client\") {\n\t\t\tif (execute && type === \"frontend\" && !isStub) stripUseClient(execute);\n\t\t\telse if (execute) removeMember(value, \"execute\");\n\t\t\tif (hasRender || hasRenderText) flags.keptRender = true;\n\t\t} else {\n\t\t\tif (hasRender) removeMember(value, \"render\");\n\t\t\tif (hasRenderText) removeMember(value, \"renderText\");\n\t\t\tif (execute) {\n\t\t\t\tif (type === \"backend\" && !isExternal) flags.keptBackendExecute = true;\n\t\t\t\telse removeMember(value, \"execute\");\n\t\t\t}\n\t\t}\n\t\tsetToolType(value, type);\n\t\tsetBackendDefault(value, target, type, backendless);\n\t\tnextProperties.push(entry);\n\t}\n\tobject.properties = nextProperties;\n}\nfunction applyProviderToolConfig(object, execute, toolName, filename) {\n\tif (!t.isObjectProperty(execute) || !t.isCallExpression(execute.value) || execute.value.arguments.length !== 1 || !t.isObjectExpression(execute.value.arguments[0])) throw new GenerativeCompileError(\"`providerTool(...)` must receive an inline object literal\", filename);\n\tconst existingNames = new Set(object.properties.flatMap((prop) => {\n\t\tif (!t.isObjectProperty(prop) && !t.isObjectMethod(prop)) return [];\n\t\tconst name = memberName(prop.key, prop.computed);\n\t\treturn name ? [name] : [];\n\t}));\n\tconst configNames = /* @__PURE__ */ new Set();\n\tfor (const prop of execute.value.arguments[0].properties) {\n\t\tif (!t.isObjectProperty(prop)) throw new GenerativeCompileError(\"`providerTool(...)` config can only contain object properties\", filename);\n\t\tconst name = memberName(prop.key, prop.computed);\n\t\tif (!name) throw new GenerativeCompileError(\"`providerTool(...)` config can only contain static property names\", filename);\n\t\tif (t.isFunctionExpression(prop.value) || t.isArrowFunctionExpression(prop.value)) throw new GenerativeCompileError(\"`providerTool(...)` config cannot contain function-valued properties\", filename);\n\t\tif (existingNames.has(name) || configNames.has(name)) throw new GenerativeCompileError(`\\`providerTool(...)\\` config${toolName ? ` for \"${toolName}\"` : \"\"} duplicates \"${name}\"`, filename);\n\t\tconfigNames.add(name);\n\t\tobject.properties.push(prop);\n\t}\n}\n/** The raw AST value of an entry (any expression), or null for spreads/methods. */\nfunction entryRawValue(entry) {\n\tif (t.isObjectProperty(entry) && t.isExpression(entry.value)) return entry.value;\n\treturn null;\n}\nfunction entryValue(entry) {\n\tif (t.isObjectProperty(entry) && t.isObjectExpression(entry.value)) return entry.value;\n\treturn null;\n}\n/** A member of an entry object: `render`/`execute`/`type`, as property or method. */\nfunction findMember(object, name) {\n\treturn object.properties.find((p) => (t.isObjectProperty(p) || t.isObjectMethod(p)) && memberName(p.key, p.computed) === name);\n}\nfunction removeMember(object, name) {\n\tobject.properties = object.properties.filter((p) => !((t.isObjectProperty(p) || t.isObjectMethod(p)) && memberName(p.key, p.computed) === name));\n}\n/** The `BlockStatement` body of an `execute` member, if it has one. */\nfunction executeBody(member) {\n\tif (t.isObjectMethod(member)) return member.body;\n\tconst value = member.value;\n\tif ((t.isArrowFunctionExpression(value) || t.isFunctionExpression(value)) && t.isBlockStatement(value.body)) return value.body;\n}\n/** Whether an `execute` opts into the client via a leading `\"use client\"`. */\nfunction executeIsClient(member) {\n\treturn !!executeBody(member)?.directives.some((d) => d.value.value === \"use client\");\n}\nfunction executeIsSentinel(member, name) {\n\treturn t.isObjectProperty(member) && t.isCallExpression(member.value) && t.isIdentifier(member.value.callee, { name });\n}\n/** Whether an `execute` is the human-in-the-loop sentinel. */\nfunction executeIsHumanTool(member) {\n\treturn executeIsSentinel(member, \"humanTool\") || executeIsSentinel(member, \"hitlTool\") || executeIsSentinel(member, \"hitl\");\n}\n/** Whether an `execute` is the provider-tool sentinel. */\nfunction executeIsProviderTool(member) {\n\treturn executeIsSentinel(member, \"providerTool\");\n}\n/** Whether an `execute` is the local override sentinel. */\nfunction executeIsStubTool(member) {\n\treturn executeIsSentinel(member, \"stubTool\");\n}\n/** Whether an `execute` is the externally-defined backend tool sentinel. */\nfunction executeIsExternalTool(member) {\n\treturn executeIsSentinel(member, \"externalTool\");\n}\n/** Drops the `\"use client\"` directive from an `execute` body (kept frontend). */\nfunction stripUseClient(member) {\n\tconst body = executeBody(member);\n\tif (body) body.directives = body.directives.filter((d) => d.value.value !== \"use client\");\n}\n/**\n* The tool's nature, inferred from its (mandatory) `execute` rather than an\n* authored `type`: `humanTool()` → `human`; `providerTool(...)` → `provider`;\n* `stubTool()` → `frontend`; `externalTool()` → `backend`; `\"use client\"` →\n* `frontend`; otherwise `backend`.\n* The loader writes the result back as a `type` field (see {@link setToolType})\n* so the runtime keeps it.\n*/\nfunction inferToolType(object, toolName, filename) {\n\tconst execute = findMember(object, \"execute\");\n\tif (!execute) throw new GenerativeCompileError(`${toolSubject(toolName)} must declare an \\`execute\\`; use \\`humanTool()\\` for a human-in-the-loop tool`, filename);\n\tif (executeIsHumanTool(execute)) return \"human\";\n\tif (executeIsProviderTool(execute)) return \"provider\";\n\tif (executeIsStubTool(execute)) return \"frontend\";\n\tif (executeIsExternalTool(execute)) return \"backend\";\n\treturn executeIsClient(execute) ? \"frontend\" : \"backend\";\n}\nfunction toolSubject(toolName) {\n\treturn toolName ? `tool \"${toolName}\"` : \"every tool\";\n}\nfunction typedToolSubject(type, toolName) {\n\tif (toolName) return `${type} tool \"${toolName}\"`;\n\treturn `${/^[aeiou]/i.test(type) ? \"an\" : \"a\"} ${type} tool`;\n}\nfunction stripExternalToolMetadata(object) {\n\tremoveMember(object, \"description\");\n\tremoveMember(object, \"parameters\");\n\tremoveMember(object, \"disabled\");\n\tremoveMember(object, \"toModelOutput\");\n\tremoveMember(object, \"experimental_onSchemaValidationError\");\n\tremoveMember(object, \"providerOptions\");\n\tremoveMember(object, \"streamCall\");\n}\n/** Writes the resolved `type` back onto the tool object (replacing any author's). */\nfunction setToolType(object, type) {\n\tremoveMember(object, \"type\");\n\tobject.properties.push(t.objectProperty(t.identifier(\"type\"), t.stringLiteral(type)));\n}\nfunction setBackendDefault(object, target, type, backendless) {\n\tremoveMember(object, \"unstable_backendDefault\");\n\tif (backendless) return;\n\tif (target !== \"client\" || type !== \"frontend\" && type !== \"human\") return;\n\tobject.properties.push(t.objectProperty(t.identifier(\"unstable_backendDefault\"), t.objectExpression([t.objectProperty(t.identifier(\"parameters\"), t.booleanLiteral(true))])));\n}\nfunction memberName(key, computed) {\n\tif (computed) return void 0;\n\tif (t.isIdentifier(key)) return key.name;\n\tif (t.isStringLiteral(key)) return key.value;\n}\n/**\n* Removes declarations and import specifiers left unreferenced after region\n* removal, to a fixpoint (a dropped helper frees what it used). Keeps exports,\n* side-effect imports, and possibly-side-effectful initializers.\n*/\nfunction pruneUnused(ast) {\n\tconst hadSpecifiers = /* @__PURE__ */ new WeakSet();\n\tfor (const stmt of ast.program.body) if (t.isImportDeclaration(stmt) && stmt.specifiers.length > 0) hadSpecifiers.add(stmt);\n\tlet removedSomething = true;\n\twhile (removedSomething) {\n\t\tremovedSomething = false;\n\t\ttraverse(ast, { Program(path) {\n\t\t\tpath.scope.crawl();\n\t\t\tconst isUnused = (name) => {\n\t\t\t\tconst binding = path.scope.getBinding(name);\n\t\t\t\treturn !!binding && !binding.referenced;\n\t\t\t};\n\t\t\tpath.node.body = path.node.body.filter((stmt) => {\n\t\t\t\tif ((t.isFunctionDeclaration(stmt) || t.isClassDeclaration(stmt)) && stmt.id && isUnused(stmt.id.name)) {\n\t\t\t\t\tremovedSomething = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (t.isVariableDeclaration(stmt)) {\n\t\t\t\t\tstmt.declarations = stmt.declarations.filter((decl) => {\n\t\t\t\t\t\tconst names = Object.keys(t.getBindingIdentifiers(decl.id));\n\t\t\t\t\t\tif (names.length > 0 && isPlainPattern(decl.id) && isRemovableInit(decl.init) && names.every(isUnused)) {\n\t\t\t\t\t\t\tremovedSomething = true;\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t});\n\t\t\t\t\tif (stmt.declarations.length === 0) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t});\n\t\t\tpath.stop();\n\t\t} });\n\t}\n\ttraverse(ast, { Program(path) {\n\t\tpath.scope.crawl();\n\t\tfor (const stmt of path.node.body) {\n\t\t\tif (!t.isImportDeclaration(stmt)) continue;\n\t\t\tstmt.specifiers = stmt.specifiers.filter((spec) => {\n\t\t\t\tconst binding = path.scope.getBinding(spec.local.name);\n\t\t\t\treturn binding ? binding.referenced : true;\n\t\t\t});\n\t\t}\n\t\tpath.node.body = path.node.body.filter((stmt) => !(t.isImportDeclaration(stmt) && stmt.specifiers.length === 0 && hadSpecifiers.has(stmt)));\n\t\tpath.stop();\n\t} });\n}\n/**\n* Whether a binding pattern is side-effect-free to drop: a plain identifier, or\n* an object/array pattern of plain bindings — no default values\n* (`{ a = expr }`) or computed keys (`{ [expr]: a }`), which would evaluate (and\n* thus could have side effects) at destructuring time.\n*/\nfunction isPlainPattern(node) {\n\tif (t.isIdentifier(node)) return true;\n\tif (t.isObjectPattern(node)) return node.properties.every((p) => t.isRestElement(p) ? isPlainPattern(p.argument) : !p.computed && isPlainPattern(p.value));\n\tif (t.isArrayPattern(node)) return node.elements.every((el) => el == null || isPlainPattern(el));\n\treturn false;\n}\n/** Whether a variable initializer is safe to drop (no observable side effects). */\nfunction isRemovableInit(node) {\n\tif (node == null) return true;\n\tif (t.isTSAsExpression(node) || t.isTSSatisfiesExpression(node)) return isRemovableInit(node.expression);\n\tif (t.isArrayExpression(node)) return node.elements.every((el) => el == null || t.isExpression(el) && isRemovableInit(el));\n\tif (t.isObjectExpression(node)) return node.properties.every((p) => t.isObjectProperty(p) && !p.computed && t.isExpression(p.value) && isRemovableInit(p.value));\n\tif (t.isTemplateLiteral(node)) return node.expressions.every((e) => t.isExpression(e) && isRemovableInit(e));\n\treturn t.isArrowFunctionExpression(node) || t.isFunctionExpression(node) || t.isClassExpression(node) || t.isIdentifier(node) || t.isMemberExpression(node) && !node.computed || t.isJSXElement(node) || t.isJSXFragment(node) || t.isLiteral(node);\n}\n//#endregion\nexport { GenerativeCompileError, compileGenerative, isGenerativeModule, isGenerativeSource };\n\n//# sourceMappingURL=compile.js.map","import { createRequire } from \"node:module\";\nimport { statSync } from \"node:fs\";\nimport { fileURLToPath } from \"node:url\";\nimport {\n compileGenerative,\n isGenerativeSource,\n} from \"@assistant-ui/x-generative-compiler\";\nimport { BACKENDLESS_ENV, UPSTREAM_TRANSFORMER_ENV } from \"./index\";\n\nconst require = createRequire(import.meta.url);\n\n/** Minimal shape of a Metro babel transformer. */\ntype BabelTransformer = {\n transform: (props: {\n filename: string;\n src: string;\n options?:\n | { customTransformOptions?: { environment?: string } | undefined }\n | undefined;\n [key: string]: unknown;\n }) => unknown;\n getCacheKey?: (() => string) | undefined;\n [key: string]: unknown;\n};\n\n/**\n * The project's upstream babel transformer: what Metro would have used without\n * this wrapper. Taken from {@link UPSTREAM_TRANSFORMER_ENV} (set by `withAui`),\n * else auto-detected: Expo's transformer, then React Native's.\n */\nfunction resolveUpstream(): BabelTransformer {\n const fromEnv = process.env[UPSTREAM_TRANSFORMER_ENV];\n if (fromEnv) return require(fromEnv) as BabelTransformer;\n\n for (const id of [\n \"@expo/metro-config/babel-transformer\",\n \"@react-native/metro-babel-transformer\",\n ]) {\n try {\n return require(id) as BabelTransformer;\n } catch {\n // try the next candidate\n }\n }\n\n throw new Error(\n \"[@assistant-ui/metro] Could not resolve an upstream Metro babel \" +\n \"transformer. Make sure `transformer.babelTransformerPath` is set before \" +\n \"`withAui(...)` (Expo's `getDefaultConfig` sets it), or install \" +\n \"`@expo/metro-config` or `@react-native/metro-babel-transformer`.\",\n );\n}\n\n// Resolved lazily on first use, by which point Metro has loaded `metro.config` and\n// `withAui` has populated the env var, and forked workers have inherited it.\nlet cachedUpstream: BabelTransformer | undefined;\nfunction upstreamTransformer(): BabelTransformer {\n return (cachedUpstream ??= resolveUpstream());\n}\n\n/** Expo bundles `+api` routes / RSC for a server environment; the app is client. */\nfunction isServerEnvironment(environment: string | undefined): boolean {\n return environment === \"node\" || environment === \"react-server\";\n}\n\nexport function transform(\n props: Parameters<BabelTransformer[\"transform\"]>[0],\n): unknown {\n const upstream = upstreamTransformer();\n const { filename, src, options } = props;\n\n if (isGenerativeSource(filename, src)) {\n const target = isServerEnvironment(\n options?.customTransformOptions?.environment,\n )\n ? \"server\"\n : \"client\";\n\n const { code } = compileGenerative(src, {\n target,\n filename,\n // Metro has no `react-server` layer, so `import \"server-only\"` would not\n // resolve; the environment split already keeps a server `execute` out of\n // the client bundle.\n injectServerOnly: false,\n backendless: process.env[BACKENDLESS_ENV] === \"1\",\n });\n\n return upstream.transform({ ...props, src: code });\n }\n\n return upstream.transform(props);\n}\n\n// The bundled compiler lives in this file, so its own mtime moves whenever the\n// transform output could change (a newly published version, or an in-place\n// monorepo rebuild). Deriving the token from it busts Metro's cache\n// automatically.\nlet cachedSelfToken: string | undefined;\nfunction selfCacheToken(): string {\n if (cachedSelfToken !== undefined) return cachedSelfToken;\n try {\n cachedSelfToken = String(statSync(fileURLToPath(import.meta.url)).mtimeMs);\n } catch {\n cachedSelfToken = \"0\";\n }\n return cachedSelfToken;\n}\n\nexport function getCacheKey(): string {\n const upstream = upstreamTransformer();\n const base = upstream.getCacheKey ? upstream.getCacheKey() : \"\";\n const backendless =\n process.env[BACKENDLESS_ENV] === \"1\" ? \":backendless\" : \"\";\n return `${base}$aui-metro:${selfCacheToken()}${backendless}`;\n}\n"],"x_google_ignoreList":[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAAM,YAAY;;;ACDlB,IAAI,UAAU;;;;CC0Bd,OAAO,UAAU;EACf;EACA;EACA;EACA,kBAxBuB,OAAO;6BACL;EAwBzB;GAdA;GACA;GACA;GACA;GACA;GACA;GACA;EAQA;EACA;EACA,yBAAyB;EACzB,YAAY;CACd;;;;;CC1BA,OAAO,UAPL,OAAO,YAAY,YACnB,QAAQ,OACR,QAAQ,IAAI,cACZ,cAAc,KAAK,QAAQ,IAAI,UAAU,KACtC,GAAG,SAAS,QAAQ,MAAM,UAAU,GAAG,IAAI,UACtC,CAAC;;;;;CCNX,MAAM,EACJ,2BACA,uBACA,eAAA,kBAAA;CAEF,MAAM,QAAA,cAAA;CACN,UAAU,OAAO,UAAU,CAAC;CAG5B,MAAM,KAAK,QAAQ,KAAK,CAAC;CACzB,MAAM,SAAS,QAAQ,SAAS,CAAC;CACjC,MAAM,MAAM,QAAQ,MAAM,CAAC;CAC3B,MAAM,UAAU,QAAQ,UAAU,CAAC;CACnC,MAAM,IAAI,QAAQ,IAAI,CAAC;CACvB,IAAI,IAAI;CAER,MAAM,mBAAmB;CAQzB,MAAM,wBAAwB;EAC5B,CAAC,OAAO,CAAC;EACT,CAAC,OAAO,UAAU;EAClB,CAAC,kBAAkB,qBAAqB;CAC1C;CAEA,MAAM,iBAAiB,UAAU;EAC/B,KAAK,MAAM,CAAC,OAAO,QAAQ,uBACzB,QAAQ,MACL,MAA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K,YAAY;CAEnC,IAAI,mBAAmB,UAAU,GAAG,GAAG;EAOrC,MAAM,EAAE,SAAS,kBAAkB,KAAK;GACtC,QAPa,oBACb,SAAS,wBAAwB,WACnC,IACI,WACA;GAIF;GAIA,kBAAkB;GAClB,aAAa,QAAQ,IAAIG,cAAAA,qBAAqB;EAChD,CAAC;EAED,OAAO,SAAS,UAAU;GAAE,GAAG;GAAO,KAAK;EAAK,CAAC;CACnD;CAEA,OAAO,SAAS,UAAU,KAAK;AACjC;AAMA,IAAI;AACJ,SAAS,iBAAyB;CAChC,IAAI,oBAAoB,KAAA,GAAW,OAAO;CAC1C,IAAI;EACF,kBAAkB,QAAA,GAAOC,QAAAA,SAAAA,EAAAA,GAASC,SAAAA,cAAAA,CAAAA,QAAAA,KAAAA,CAAAA,CAAAA,cAAAA,UAAAA,CAAAA,CAAAA,IAA6B,CAAC,CAAC,CAAC,OAAO;CAC3E,QAAQ;EACN,kBAAkB;CACpB;CACA,OAAO;AACT;AAEA,SAAgB,cAAsB;CACpC,MAAM,WAAW,oBAAoB;CACrC,MAAM,OAAO,SAAS,cAAc,SAAS,YAAY,IAAI;CAC7D,MAAM,cACJ,QAAQ,IAAA,6BAAyB,MAAM,iBAAiB;CAC1D,OAAO,GAAG,KAAK,aAAa,eAAe,IAAI;AACjD"}
1
+ {"version":3,"file":"transformer.cjs","names":["_traverse","_generate","parse","t","satisfies","require","createRequire","nodePath","existsSync","readFileSync","createHash","require","createRequire","UPSTREAM_TRANSFORMER_ENV","BACKENDLESS_ENV","statSync","fileURLToPath"],"sources":["../../x-generative-compiler/dist/constants.js","../../x-generative-compiler/dist/package.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js","../../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js","../../x-generative-compiler/dist/compile.js","../src/transformer.ts"],"sourcesContent":["//#region src/constants.ts\n/** The directive a module uses to opt into generative compilation. */\nconst DIRECTIVE = \"use generative\";\n//#endregion\nexport { DIRECTIVE };\n\n//# sourceMappingURL=constants.js.map","//#region package.json\nvar version = \"0.0.19\";\n//#endregion\nexport { version };\n\n//# sourceMappingURL=package.js.map","'use strict'\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","'use strict'\n\nconst debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","'use strict'\n\nconst {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst safeSrc = exports.safeSrc = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n safeSrc[index] = safe\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n// Non-numeric identifiers include numeric identifiers but can be longer.\n// Therefore non-numeric identifiers must go first.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifier, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","'use strict'\n\n// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","'use strict'\n\nconst numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n if (typeof a === 'number' && typeof b === 'number') {\n return a === b ? 0 : a < b ? -1 : 1\n }\n\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","'use strict'\n\nconst debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\n\nconst isPrereleaseIdentifier = (prerelease, identifier) => {\n const identifiers = identifier.split('.')\n if (identifiers.length > prerelease.length) {\n return false\n }\n\n for (let i = 0; i < identifiers.length; i++) {\n if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) {\n return false\n }\n }\n\n return true\n}\n\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n if (this.major < other.major) {\n return -1\n }\n if (this.major > other.major) {\n return 1\n }\n if (this.minor < other.minor) {\n return -1\n }\n if (this.minor > other.minor) {\n return 1\n }\n if (this.patch < other.patch) {\n return -1\n }\n if (this.patch > other.patch) {\n return 1\n }\n return 0\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('build compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n if (release.startsWith('pre')) {\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n // Avoid an invalid semver results\n if (identifier) {\n const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])\n if (!match || match[1] !== identifier) {\n throw new Error(`invalid identifier: ${identifier}`)\n }\n }\n }\n\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n case 'release':\n if (this.prerelease.length === 0) {\n throw new Error(`version ${this.raw} is not a prerelease`)\n }\n this.prerelease.length = 0\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (isPrereleaseIdentifier(this.prerelease, identifier)) {\n const prereleaseBase = this.prerelease[identifier.split('.').length]\n if (isNaN(prereleaseBase)) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n","'use strict'\n\nconst parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","'use strict'\n\nconst parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n","'use strict'\n\nconst SemVer = require('../classes/semver')\n\nconst inc = (version, release, options, identifier, identifierBase) => {\n if (typeof (options) === 'string') {\n identifierBase = identifier\n identifier = options\n options = undefined\n }\n\n try {\n return new SemVer(\n version instanceof SemVer ? version.version : version,\n options\n ).inc(release, identifier, identifierBase).version\n } catch (er) {\n return null\n }\n}\nmodule.exports = inc\n","'use strict'\n\nconst parse = require('./parse.js')\n\nconst diff = (version1, version2) => {\n const v1 = parse(version1, null, true)\n const v2 = parse(version2, null, true)\n const comparison = v1.compare(v2)\n\n if (comparison === 0) {\n return null\n }\n\n const v1Higher = comparison > 0\n const highVersion = v1Higher ? v1 : v2\n const lowVersion = v1Higher ? v2 : v1\n const highHasPre = !!highVersion.prerelease.length\n const lowHasPre = !!lowVersion.prerelease.length\n\n if (lowHasPre && !highHasPre) {\n // Going from prerelease -> no prerelease requires some special casing\n\n // If the low version has only a major, then it will always be a major\n // Some examples:\n // 1.0.0-1 -> 1.0.0\n // 1.0.0-1 -> 1.1.1\n // 1.0.0-1 -> 2.0.0\n if (!lowVersion.patch && !lowVersion.minor) {\n return 'major'\n }\n\n // If the main part has no difference\n if (lowVersion.compareMain(highVersion) === 0) {\n if (lowVersion.minor && !lowVersion.patch) {\n return 'minor'\n }\n return 'patch'\n }\n }\n\n // add the `pre` prefix if we are going to a prerelease version\n const prefix = highHasPre ? 'pre' : ''\n\n if (v1.major !== v2.major) {\n return prefix + 'major'\n }\n\n if (v1.minor !== v2.minor) {\n return prefix + 'minor'\n }\n\n if (v1.patch !== v2.patch) {\n return prefix + 'patch'\n }\n\n // high and low are prereleases\n return 'prerelease'\n}\n\nmodule.exports = diff\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst minor = (a, loose) => new SemVer(a, loose).minor\nmodule.exports = minor\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst patch = (a, loose) => new SemVer(a, loose).patch\nmodule.exports = patch\n","'use strict'\n\nconst parse = require('./parse')\nconst prerelease = (version, options) => {\n const parsed = parse(version, options)\n return (parsed && parsed.prerelease.length) ? parsed.prerelease : null\n}\nmodule.exports = prerelease\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","'use strict'\n\nconst compare = require('./compare')\nconst rcompare = (a, b, loose) => compare(b, a, loose)\nmodule.exports = rcompare\n","'use strict'\n\nconst compare = require('./compare')\nconst compareLoose = (a, b) => compare(a, b, true)\nmodule.exports = compareLoose\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compareBuild = (a, b, loose) => {\n const versionA = new SemVer(a, loose)\n const versionB = new SemVer(b, loose)\n return versionA.compare(versionB) || versionA.compareBuild(versionB)\n}\nmodule.exports = compareBuild\n","'use strict'\n\nconst compareBuild = require('./compare-build')\nconst sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))\nmodule.exports = sort\n","'use strict'\n\nconst compareBuild = require('./compare-build')\nconst rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))\nmodule.exports = rsort\n","'use strict'\n\nconst compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","'use strict'\n\nconst compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","'use strict'\n\nconst compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","'use strict'\n\nconst compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","'use strict'\n\nconst compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","'use strict'\n\nconst compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","'use strict'\n\nconst eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n switch (op) {\n case '===':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a === b\n\n case '!==':\n if (typeof a === 'object') {\n a = a.version\n }\n if (typeof b === 'object') {\n b = b.version\n }\n return a !== b\n\n case '':\n case '=':\n case '==':\n return eq(a, b, loose)\n\n case '!=':\n return neq(a, b, loose)\n\n case '>':\n return gt(a, b, loose)\n\n case '>=':\n return gte(a, b, loose)\n\n case '<':\n return lt(a, b, loose)\n\n case '<=':\n return lte(a, b, loose)\n\n default:\n throw new TypeError(`Invalid operator: ${op}`)\n }\n}\nmodule.exports = cmp\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst parse = require('./parse')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst coerce = (version, options) => {\n if (version instanceof SemVer) {\n return version\n }\n\n if (typeof version === 'number') {\n version = String(version)\n }\n\n if (typeof version !== 'string') {\n return null\n }\n\n options = options || {}\n\n let match = null\n if (!options.rtl) {\n match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])\n } else {\n // Find the right-most coercible string that does not share\n // a terminus with a more left-ward coercible string.\n // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'\n // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'\n //\n // Walk through the string checking with a /g regexp\n // Manually set the index so as to pick up overlapping matches.\n // Stop when we get a match that ends at the string end, since no\n // coercible string can be more right-ward without the same terminus.\n const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]\n let next\n while ((next = coerceRtlRegex.exec(version)) &&\n (!match || match.index + match[0].length !== version.length)\n ) {\n if (!match ||\n next.index + next[0].length !== match.index + match[0].length) {\n match = next\n }\n coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length\n }\n // leave it in a clean state\n coerceRtlRegex.lastIndex = -1\n }\n\n if (match === null) {\n return null\n }\n\n const major = match[2]\n const minor = match[3] || '0'\n const patch = match[4] || '0'\n const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''\n const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''\n\n return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)\n}\nmodule.exports = coerce\n","'use strict'\n\nconst parse = require('./parse')\nconst constants = require('../internal/constants')\nconst SemVer = require('../classes/semver')\n\nconst truncate = (version, truncation, options) => {\n if (!constants.RELEASE_TYPES.includes(truncation)) {\n return null\n }\n\n const clonedVersion = cloneInputVersion(version, options)\n return clonedVersion && doTruncation(clonedVersion, truncation)\n}\n\nconst cloneInputVersion = (version, options) => {\n const versionStringToParse = (\n version instanceof SemVer ? version.version : version\n )\n\n return parse(versionStringToParse, options)\n}\n\nconst doTruncation = (version, truncation) => {\n if (isPrerelease(truncation)) {\n return version.version\n }\n\n version.prerelease = []\n\n switch (truncation) {\n case 'major':\n version.minor = 0\n version.patch = 0\n break\n case 'minor':\n version.patch = 0\n break\n }\n\n return version.format()\n}\n\nconst isPrerelease = (type) => {\n return type.startsWith('pre')\n}\n\nmodule.exports = truncate\n","'use strict'\n\nclass LRUCache {\n constructor () {\n this.max = 1000\n this.map = new Map()\n }\n\n get (key) {\n const value = this.map.get(key)\n if (value === undefined) {\n return undefined\n } else {\n // Remove the key from the map and add it to the end\n this.map.delete(key)\n this.map.set(key, value)\n return value\n }\n }\n\n delete (key) {\n return this.map.delete(key)\n }\n\n set (key, value) {\n const deleted = this.delete(key)\n\n if (!deleted && value !== undefined) {\n // If cache is full, delete the least recently used item\n if (this.map.size >= this.max) {\n const firstKey = this.map.keys().next().value\n this.delete(firstKey)\n }\n\n this.map.set(key, value)\n }\n\n return this\n }\n}\n\nmodule.exports = LRUCache\n","'use strict'\n\nconst SPACE_CHARACTERS = /\\s+/g\n\n// hoisted class for cyclic dependency\nclass Range {\n constructor (range, options) {\n options = parseOptions(options)\n\n if (range instanceof Range) {\n if (\n range.loose === !!options.loose &&\n range.includePrerelease === !!options.includePrerelease\n ) {\n return range\n } else {\n return new Range(range.raw, options)\n }\n }\n\n if (range instanceof Comparator) {\n // just put it in the set and return\n this.raw = range.value\n this.set = [[range]]\n this.formatted = undefined\n return this\n }\n\n this.options = options\n this.loose = !!options.loose\n this.includePrerelease = !!options.includePrerelease\n\n // First reduce all whitespace as much as possible so we do not have to rely\n // on potentially slow regexes like \\s*. This is then stored and used for\n // future error messages as well.\n this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')\n\n // First, split on ||\n this.set = this.raw\n .split('||')\n // map the range to a 2d array of comparators\n .map(r => this.parseRange(r.trim()))\n // throw out any comparator lists that are empty\n // this generally means that it was not a valid range, which is allowed\n // in loose mode, but will still throw if the WHOLE range is invalid.\n .filter(c => c.length)\n\n if (!this.set.length) {\n throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n }\n\n // if we have any that are not the null set, throw out null sets.\n if (this.set.length > 1) {\n // keep the first one, in case they're all null sets\n const first = this.set[0]\n this.set = this.set.filter(c => !isNullSet(c[0]))\n if (this.set.length === 0) {\n this.set = [first]\n } else if (this.set.length > 1) {\n // if we have any that are *, then the range is just *\n for (const c of this.set) {\n if (c.length === 1 && isAny(c[0])) {\n this.set = [c]\n break\n }\n }\n }\n }\n\n this.formatted = undefined\n }\n\n get range () {\n if (this.formatted === undefined) {\n this.formatted = ''\n for (let i = 0; i < this.set.length; i++) {\n if (i > 0) {\n this.formatted += '||'\n }\n const comps = this.set[i]\n for (let k = 0; k < comps.length; k++) {\n if (k > 0) {\n this.formatted += ' '\n }\n this.formatted += comps[k].toString().trim()\n }\n }\n }\n return this.formatted\n }\n\n format () {\n return this.range\n }\n\n toString () {\n return this.range\n }\n\n parseRange (range) {\n // strip build metadata so it can't bleed into the version\n range = range.replace(BUILDSTRIPRE, '')\n\n // memoize range parsing for performance.\n // this is a very hot path, and fully deterministic.\n const memoOpts =\n (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n (this.options.loose && FLAG_LOOSE)\n const memoKey = memoOpts + ':' + range\n const cached = cache.get(memoKey)\n if (cached) {\n return cached\n }\n\n const loose = this.options.loose\n // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n debug('hyphen replace', range)\n\n // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n debug('comparator trim', range)\n\n // `~ 1.2.3` => `~1.2.3`\n range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n debug('tilde trim', range)\n\n // `^ 1.2.3` => `^1.2.3`\n range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n debug('caret trim', range)\n\n // At this point, the range is completely trimmed and\n // ready to be split into comparators.\n\n let rangeList = range\n .split(' ')\n .map(comp => parseComparator(comp, this.options))\n .join(' ')\n .split(/\\s+/)\n // >=0.0.0 is equivalent to *\n .map(comp => replaceGTE0(comp, this.options))\n\n if (loose) {\n // in loose mode, throw out any that are not valid comparators\n rangeList = rangeList.filter(comp => {\n debug('loose invalid filter', comp, this.options)\n return !!comp.match(re[t.COMPARATORLOOSE])\n })\n }\n debug('range list', rangeList)\n\n // if any comparators are the null set, then replace with JUST null set\n // if more than one comparator, remove any * comparators\n // also, don't include the same comparator more than once\n const rangeMap = new Map()\n const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n for (const comp of comparators) {\n if (isNullSet(comp)) {\n return [comp]\n }\n rangeMap.set(comp.value, comp)\n }\n if (rangeMap.size > 1 && rangeMap.has('')) {\n rangeMap.delete('')\n }\n\n const result = [...rangeMap.values()]\n cache.set(memoKey, result)\n return result\n }\n\n intersects (range, options) {\n if (!(range instanceof Range)) {\n throw new TypeError('a Range is required')\n }\n\n return this.set.some((thisComparators) => {\n return (\n isSatisfiable(thisComparators, options) &&\n range.set.some((rangeComparators) => {\n return (\n isSatisfiable(rangeComparators, options) &&\n thisComparators.every((thisComparator) => {\n return rangeComparators.every((rangeComparator) => {\n return thisComparator.intersects(rangeComparator, options)\n })\n })\n )\n })\n )\n })\n }\n\n // if ANY of the sets match ALL of its comparators, then pass\n test (version) {\n if (!version) {\n return false\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n for (let i = 0; i < this.set.length; i++) {\n if (testSet(this.set[i], version, this.options)) {\n return true\n }\n }\n return false\n }\n}\n\nmodule.exports = Range\n\nconst LRU = require('../internal/lrucache')\nconst cache = new LRU()\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n safeRe: re,\n src,\n t,\n comparatorTrimReplace,\n tildeTrimReplace,\n caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\n// unbounded global build-metadata stripper used by parseRange\nconst BUILDSTRIPRE = new RegExp(src[t.BUILD], 'g')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n let result = true\n const remainingComparators = comparators.slice()\n let testComparator = remainingComparators.pop()\n\n while (result && remainingComparators.length) {\n result = remainingComparators.every((otherComparator) => {\n return testComparator.intersects(otherComparator, options)\n })\n\n testComparator = remainingComparators.pop()\n }\n\n return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n comp = comp.replace(re[t.BUILD], '')\n debug('comp', comp, options)\n comp = replaceCarets(comp, options)\n debug('caret', comp)\n comp = replaceTildes(comp, options)\n debug('tildes', comp)\n comp = replaceXRanges(comp, options)\n debug('xrange', comp)\n comp = replaceStars(comp, options)\n debug('stars', comp)\n return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\nconst invalidXRangeOrder = (M, m, p) => (\n (isX(M) && !isX(m)) ||\n (isX(m) && p && !isX(p))\n)\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceTilde(c, options))\n .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n // if we're including prereleases in the match, then the lower bound is\n // -0, the lowest possible prerelease value, just like x-ranges and carets.\n // this keeps `~1.2` equivalent to the `1.2.x` x-range it's documented as.\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('tilde', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n // ~1.2 == >=1.2.0 <1.3.0-0\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else if (pr) {\n debug('replaceTilde pr', pr)\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n } else {\n // ~1.2.3 == >=1.2.3 <1.3.0-0\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('tilde return', ret)\n return ret\n })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n return comp\n .trim()\n .split(/\\s+/)\n .map((c) => replaceCaret(c, options))\n .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n debug('caret', comp, options)\n const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n const z = options.includePrerelease ? '-0' : ''\n return comp.replace(r, (_, M, m, p, pr) => {\n debug('caret', comp, _, M, m, p, pr)\n let ret\n\n if (isX(M)) {\n ret = ''\n } else if (isX(m)) {\n ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n } else if (isX(p)) {\n if (M === '0') {\n ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n } else {\n ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n }\n } else if (pr) {\n debug('replaceCaret pr', pr)\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p}-${pr\n } <${+M + 1}.0.0-0`\n }\n } else {\n debug('no pr')\n if (M === '0') {\n if (m === '0') {\n ret = `>=${M}.${m}.${p\n } <${M}.${m}.${+p + 1}-0`\n } else {\n ret = `>=${M}.${m}.${p\n } <${M}.${+m + 1}.0-0`\n }\n } else {\n ret = `>=${M}.${m}.${p\n } <${+M + 1}.0.0-0`\n }\n }\n\n debug('caret return', ret)\n return ret\n })\n}\n\nconst replaceXRanges = (comp, options) => {\n debug('replaceXRanges', comp, options)\n return comp\n .split(/\\s+/)\n .map((c) => replaceXRange(c, options))\n .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n comp = comp.trim()\n const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n debug('xRange', comp, ret, gtlt, M, m, p, pr)\n if (invalidXRangeOrder(M, m, p)) {\n return comp\n }\n\n const xM = isX(M)\n const xm = xM || isX(m)\n const xp = xm || isX(p)\n const anyX = xp\n\n if (gtlt === '=' && anyX) {\n gtlt = ''\n }\n\n // if we're including prereleases in the match, then we need\n // to fix this to -0, the lowest possible prerelease value\n pr = options.includePrerelease ? '-0' : ''\n\n if (xM) {\n if (gtlt === '>' || gtlt === '<') {\n // nothing is allowed\n ret = '<0.0.0-0'\n } else {\n // nothing is forbidden\n ret = '*'\n }\n } else if (gtlt && anyX) {\n // we know patch is an x, because we have any x at all.\n // replace X with 0\n if (xm) {\n m = 0\n }\n p = 0\n\n if (gtlt === '>') {\n // >1 => >=2.0.0\n // >1.2 => >=1.3.0\n gtlt = '>='\n if (xm) {\n M = +M + 1\n m = 0\n p = 0\n } else {\n m = +m + 1\n p = 0\n }\n } else if (gtlt === '<=') {\n // <=0.7.x is actually <0.8.0, since any 0.7.x should\n // pass. Similarly, <=7.x is actually <8.0.0, etc.\n gtlt = '<'\n if (xm) {\n M = +M + 1\n } else {\n m = +m + 1\n }\n }\n\n if (gtlt === '<') {\n pr = '-0'\n }\n\n ret = `${gtlt + M}.${m}.${p}${pr}`\n } else if (xm) {\n ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n } else if (xp) {\n ret = `>=${M}.${m}.0${pr\n } <${M}.${+m + 1}.0-0`\n }\n\n debug('xRange return', ret)\n\n return ret\n })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n debug('replaceStars', comp, options)\n // Looseness is ignored here. star is always as loose as it gets!\n return comp\n .trim()\n .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n debug('replaceGTE0', comp, options)\n return comp\n .trim()\n .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\n// TODO build?\nconst hyphenReplace = incPr => ($0,\n from, fM, fm, fp, fpr, fb,\n to, tM, tm, tp, tpr) => {\n if (isX(fM)) {\n from = ''\n } else if (isX(fm)) {\n from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n } else if (isX(fp)) {\n from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n } else if (fpr) {\n from = `>=${from}`\n } else {\n from = `>=${from}${incPr ? '-0' : ''}`\n }\n\n if (isX(tM)) {\n to = ''\n } else if (isX(tm)) {\n to = `<${+tM + 1}.0.0-0`\n } else if (isX(tp)) {\n to = `<${tM}.${+tm + 1}.0-0`\n } else if (tpr) {\n to = `<=${tM}.${tm}.${tp}-${tpr}`\n } else if (incPr) {\n to = `<${tM}.${tm}.${+tp + 1}-0`\n } else {\n to = `<=${to}`\n }\n\n return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n for (let i = 0; i < set.length; i++) {\n if (!set[i].test(version)) {\n return false\n }\n }\n\n if (version.prerelease.length && !options.includePrerelease) {\n // Find the set of versions that are allowed to have prereleases\n // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n // That should allow `1.2.3-pr.2` to pass.\n // However, `1.2.4-alpha.notready` should NOT be allowed,\n // even though it's within the range set by the comparators.\n for (let i = 0; i < set.length; i++) {\n debug(set[i].semver)\n if (set[i].semver === Comparator.ANY) {\n continue\n }\n\n if (set[i].semver.prerelease.length > 0) {\n const allowed = set[i].semver\n if (allowed.major === version.major &&\n allowed.minor === version.minor &&\n allowed.patch === version.patch) {\n return true\n }\n }\n }\n\n // Version has a -pre, but it's not one of the ones we like.\n return false\n }\n\n return true\n}\n","'use strict'\n\nconst ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n static get ANY () {\n return ANY\n }\n\n constructor (comp, options) {\n options = parseOptions(options)\n\n if (comp instanceof Comparator) {\n if (comp.loose === !!options.loose) {\n return comp\n } else {\n comp = comp.value\n }\n }\n\n comp = comp.trim().split(/\\s+/).join(' ')\n debug('comparator', comp, options)\n this.options = options\n this.loose = !!options.loose\n this.parse(comp)\n\n if (this.semver === ANY) {\n this.value = ''\n } else {\n this.value = this.operator + this.semver.version\n }\n\n debug('comp', this)\n }\n\n parse (comp) {\n const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n const m = comp.match(r)\n\n if (!m) {\n throw new TypeError(`Invalid comparator: ${comp}`)\n }\n\n this.operator = m[1] !== undefined ? m[1] : ''\n if (this.operator === '=') {\n this.operator = ''\n }\n\n // if it literally is just '>' or '' then allow anything.\n if (!m[2]) {\n this.semver = ANY\n } else {\n this.semver = new SemVer(m[2], this.options.loose)\n }\n }\n\n toString () {\n return this.value\n }\n\n test (version) {\n debug('Comparator.test', version, this.options.loose)\n\n if (this.semver === ANY || version === ANY) {\n return true\n }\n\n if (typeof version === 'string') {\n try {\n version = new SemVer(version, this.options)\n } catch (er) {\n return false\n }\n }\n\n return cmp(version, this.operator, this.semver, this.options)\n }\n\n intersects (comp, options) {\n if (!(comp instanceof Comparator)) {\n throw new TypeError('a Comparator is required')\n }\n\n if (this.operator === '') {\n if (this.value === '') {\n return true\n }\n return new Range(comp.value, options).test(this.value)\n } else if (comp.operator === '') {\n if (comp.value === '') {\n return true\n }\n return new Range(this.value, options).test(comp.semver)\n }\n\n options = parseOptions(options)\n\n // Special cases where nothing can possibly be lower\n if (options.includePrerelease &&\n (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n return false\n }\n if (!options.includePrerelease &&\n (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n return false\n }\n\n // Same direction increasing (> or >=)\n if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n return true\n }\n // Same direction decreasing (< or <=)\n if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n return true\n }\n // same SemVer and both sides are inclusive (<= or >=)\n if (\n (this.semver.version === comp.semver.version) &&\n this.operator.includes('=') && comp.operator.includes('=')) {\n return true\n }\n // opposite directions less than\n if (cmp(this.semver, '<', comp.semver, options) &&\n this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n return true\n }\n // opposite directions greater than\n if (cmp(this.semver, '>', comp.semver, options) &&\n this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n return true\n }\n return false\n }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","'use strict'\n\nconst Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n try {\n range = new Range(range, options)\n } catch (er) {\n return false\n }\n return range.test(version)\n}\nmodule.exports = satisfies\n","'use strict'\n\nconst Range = require('../classes/range')\n\n// Mostly just for testing and legacy API reasons\nconst toComparators = (range, options) =>\n new Range(range, options).set\n .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))\n\nmodule.exports = toComparators\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\n\nconst maxSatisfying = (versions, range, options) => {\n let max = null\n let maxSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!max || maxSV.compare(v) === -1) {\n // compare(max, v, true)\n max = v\n maxSV = new SemVer(max, options)\n }\n }\n })\n return max\n}\nmodule.exports = maxSatisfying\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst minSatisfying = (versions, range, options) => {\n let min = null\n let minSV = null\n let rangeObj = null\n try {\n rangeObj = new Range(range, options)\n } catch (er) {\n return null\n }\n versions.forEach((v) => {\n if (rangeObj.test(v)) {\n // satisfies(v, range, options)\n if (!min || minSV.compare(v) === 1) {\n // compare(min, v, true)\n min = v\n minSV = new SemVer(min, options)\n }\n }\n })\n return min\n}\nmodule.exports = minSatisfying\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Range = require('../classes/range')\nconst gt = require('../functions/gt')\n\nconst minVersion = (range, loose) => {\n range = new Range(range, loose)\n\n let minver = new SemVer('0.0.0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = new SemVer('0.0.0-0')\n if (range.test(minver)) {\n return minver\n }\n\n minver = null\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let setMin = null\n comparators.forEach((comparator) => {\n // Clone to avoid manipulating the comparator's semver object.\n const compver = new SemVer(comparator.semver.version)\n switch (comparator.operator) {\n case '>':\n if (compver.prerelease.length === 0) {\n compver.patch++\n } else {\n compver.prerelease.push(0)\n }\n compver.raw = compver.format()\n /* fallthrough */\n case '':\n case '>=':\n if (!setMin || gt(compver, setMin)) {\n setMin = compver\n }\n break\n case '<':\n case '<=':\n /* Ignore maximum versions */\n break\n /* istanbul ignore next */\n default:\n throw new Error(`Unexpected operation: ${comparator.operator}`)\n }\n })\n if (setMin && (!minver || gt(minver, setMin))) {\n minver = setMin\n }\n }\n\n if (minver && range.test(minver)) {\n return minver\n }\n\n return null\n}\nmodule.exports = minVersion\n","'use strict'\n\nconst Range = require('../classes/range')\nconst validRange = (range, options) => {\n try {\n // Return '*' instead of '' so that truthiness works.\n // This will throw if it's invalid anyway\n return new Range(range, options).range || '*'\n } catch (er) {\n return null\n }\n}\nmodule.exports = validRange\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst Comparator = require('../classes/comparator')\nconst { ANY } = Comparator\nconst Range = require('../classes/range')\nconst satisfies = require('../functions/satisfies')\nconst gt = require('../functions/gt')\nconst lt = require('../functions/lt')\nconst lte = require('../functions/lte')\nconst gte = require('../functions/gte')\n\nconst outside = (version, range, hilo, options) => {\n version = new SemVer(version, options)\n range = new Range(range, options)\n\n let gtfn, ltefn, ltfn, comp, ecomp\n switch (hilo) {\n case '>':\n gtfn = gt\n ltefn = lte\n ltfn = lt\n comp = '>'\n ecomp = '>='\n break\n case '<':\n gtfn = lt\n ltefn = gte\n ltfn = gt\n comp = '<'\n ecomp = '<='\n break\n default:\n throw new TypeError('Must provide a hilo val of \"<\" or \">\"')\n }\n\n // If it satisfies the range it is not outside\n if (satisfies(version, range, options)) {\n return false\n }\n\n // From now on, variable terms are as if we're in \"gtr\" mode.\n // but note that everything is flipped for the \"ltr\" function.\n\n for (let i = 0; i < range.set.length; ++i) {\n const comparators = range.set[i]\n\n let high = null\n let low = null\n\n comparators.forEach((comparator) => {\n if (comparator.semver === ANY) {\n comparator = new Comparator('>=0.0.0')\n }\n high = high || comparator\n low = low || comparator\n if (gtfn(comparator.semver, high.semver, options)) {\n high = comparator\n } else if (ltfn(comparator.semver, low.semver, options)) {\n low = comparator\n }\n })\n\n // If the edge version comparator has a operator then our version\n // isn't outside it\n if (high.operator === comp || high.operator === ecomp) {\n return false\n }\n\n // If the lowest version comparator has an operator and our version\n // is less than it then it isn't higher than the range\n if ((!low.operator || low.operator === comp) &&\n ltefn(version, low.semver)) {\n return false\n } else if (low.operator === ecomp && ltfn(version, low.semver)) {\n return false\n }\n }\n return true\n}\n\nmodule.exports = outside\n","'use strict'\n\n// Determine if version is greater than all the versions possible in the range.\nconst outside = require('./outside')\nconst gtr = (version, range, options) => outside(version, range, '>', options)\nmodule.exports = gtr\n","'use strict'\n\nconst outside = require('./outside')\n// Determine if version is less than all the versions possible in the range\nconst ltr = (version, range, options) => outside(version, range, '<', options)\nmodule.exports = ltr\n","'use strict'\n\nconst Range = require('../classes/range')\nconst intersects = (r1, r2, options) => {\n r1 = new Range(r1, options)\n r2 = new Range(r2, options)\n return r1.intersects(r2, options)\n}\nmodule.exports = intersects\n","'use strict'\n\n// given a set of versions and a range, create a \"simplified\" range\n// that includes the same versions that the original range does\n// If the original range is shorter than the simplified one, return that.\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\nmodule.exports = (versions, range, options) => {\n const set = []\n let first = null\n let prev = null\n const v = versions.sort((a, b) => compare(a, b, options))\n for (const version of v) {\n const included = satisfies(version, range, options)\n if (included) {\n prev = version\n if (!first) {\n first = version\n }\n } else {\n if (prev) {\n set.push([first, prev])\n }\n prev = null\n first = null\n }\n }\n if (first) {\n set.push([first, null])\n }\n\n const ranges = []\n for (const [min, max] of set) {\n if (min === max) {\n ranges.push(min)\n } else if (!max && min === v[0]) {\n ranges.push('*')\n } else if (!max) {\n ranges.push(`>=${min}`)\n } else if (min === v[0]) {\n ranges.push(`<=${max}`)\n } else {\n ranges.push(`${min} - ${max}`)\n }\n }\n const simplified = ranges.join(' || ')\n const original = typeof range.raw === 'string' ? range.raw : String(range)\n return simplified.length < original.length ? simplified : range\n}\n","'use strict'\n\nconst Range = require('../classes/range.js')\nconst Comparator = require('../classes/comparator.js')\nconst { ANY } = Comparator\nconst satisfies = require('../functions/satisfies.js')\nconst compare = require('../functions/compare.js')\n\n// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:\n// - Every simple range `r1, r2, ...` is a null set, OR\n// - Every simple range `r1, r2, ...` which is not a null set is a subset of\n// some `R1, R2, ...`\n//\n// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:\n// - If c is only the ANY comparator\n// - If C is only the ANY comparator, return true\n// - Else if in prerelease mode, return false\n// - else replace c with `[>=0.0.0]`\n// - If C is only the ANY comparator\n// - if in prerelease mode, return true\n// - else replace C with `[>=0.0.0]`\n// - Let EQ be the set of = comparators in c\n// - If EQ is more than one, return true (null set)\n// - Let GT be the highest > or >= comparator in c\n// - Let LT be the lowest < or <= comparator in c\n// - If GT and LT, and GT.semver > LT.semver, return true (null set)\n// - If any C is a = range, and GT or LT are set, return false\n// - If EQ\n// - If GT, and EQ does not satisfy GT, return true (null set)\n// - If LT, and EQ does not satisfy LT, return true (null set)\n// - If EQ satisfies every C, return true\n// - Else return false\n// - If GT\n// - If GT.semver is lower than any > or >= comp in C, return false\n// - If GT is >=, and GT.semver does not satisfy every C, return false\n// - If GT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the GT.semver tuple, return false\n// - If LT\n// - If LT.semver is greater than any < or <= comp in C, return false\n// - If LT is <=, and LT.semver does not satisfy every C, return false\n// - If LT.semver has a prerelease, and not in prerelease mode\n// - If no C has a prerelease and the LT.semver tuple, return false\n// - Else return true\n\nconst subset = (sub, dom, options = {}) => {\n if (sub === dom) {\n return true\n }\n\n sub = new Range(sub, options)\n dom = new Range(dom, options)\n let sawNonNull = false\n\n OUTER: for (const simpleSub of sub.set) {\n for (const simpleDom of dom.set) {\n const isSub = simpleSubset(simpleSub, simpleDom, options)\n sawNonNull = sawNonNull || isSub !== null\n if (isSub) {\n continue OUTER\n }\n }\n // the null set is a subset of everything, but null simple ranges in\n // a complex range should be ignored. so if we saw a non-null range,\n // then we know this isn't a subset, but if EVERY simple range was null,\n // then it is a subset.\n if (sawNonNull) {\n return false\n }\n }\n return true\n}\n\nconst minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]\nconst minimumVersion = [new Comparator('>=0.0.0')]\n\nconst simpleSubset = (sub, dom, options) => {\n if (sub === dom) {\n return true\n }\n\n if (sub.length === 1 && sub[0].semver === ANY) {\n if (dom.length === 1 && dom[0].semver === ANY) {\n return true\n } else if (options.includePrerelease) {\n sub = minimumVersionWithPreRelease\n } else {\n sub = minimumVersion\n }\n }\n\n if (dom.length === 1 && dom[0].semver === ANY) {\n if (options.includePrerelease) {\n return true\n } else {\n dom = minimumVersion\n }\n }\n\n const eqSet = new Set()\n let gt, lt\n for (const c of sub) {\n if (c.operator === '>' || c.operator === '>=') {\n gt = higherGT(gt, c, options)\n } else if (c.operator === '<' || c.operator === '<=') {\n lt = lowerLT(lt, c, options)\n } else {\n eqSet.add(c.semver)\n }\n }\n\n if (eqSet.size > 1) {\n return null\n }\n\n let gtltComp\n if (gt && lt) {\n gtltComp = compare(gt.semver, lt.semver, options)\n if (gtltComp > 0) {\n return null\n } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {\n return null\n }\n }\n\n // will iterate one or zero times\n for (const eq of eqSet) {\n if (gt && !satisfies(eq, String(gt), options)) {\n return null\n }\n\n if (lt && !satisfies(eq, String(lt), options)) {\n return null\n }\n\n for (const c of dom) {\n if (!satisfies(eq, String(c), options)) {\n return false\n }\n }\n\n return true\n }\n\n let higher, lower\n let hasDomLT, hasDomGT\n // if the subset has a prerelease, we need a comparator in the superset\n // with the same tuple and a prerelease, or it's not a subset\n let needDomLTPre = lt &&\n !options.includePrerelease &&\n lt.semver.prerelease.length ? lt.semver : false\n let needDomGTPre = gt &&\n !options.includePrerelease &&\n gt.semver.prerelease.length ? gt.semver : false\n // exception: <1.2.3-0 is the same as <1.2.3\n if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&\n lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {\n needDomLTPre = false\n }\n\n for (const c of dom) {\n hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='\n hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='\n if (gt) {\n if (needDomGTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomGTPre.major &&\n c.semver.minor === needDomGTPre.minor &&\n c.semver.patch === needDomGTPre.patch) {\n needDomGTPre = false\n }\n }\n if (c.operator === '>' || c.operator === '>=') {\n higher = higherGT(gt, c, options)\n if (higher === c && higher !== gt) {\n return false\n }\n } else if (gt.operator === '>=' && !c.test(gt.semver)) {\n return false\n }\n }\n if (lt) {\n if (needDomLTPre) {\n if (c.semver.prerelease && c.semver.prerelease.length &&\n c.semver.major === needDomLTPre.major &&\n c.semver.minor === needDomLTPre.minor &&\n c.semver.patch === needDomLTPre.patch) {\n needDomLTPre = false\n }\n }\n if (c.operator === '<' || c.operator === '<=') {\n lower = lowerLT(lt, c, options)\n if (lower === c && lower !== lt) {\n return false\n }\n } else if (lt.operator === '<=' && !c.test(lt.semver)) {\n return false\n }\n }\n if (!c.operator && (lt || gt) && gtltComp !== 0) {\n return false\n }\n }\n\n // if there was a < or >, and nothing in the dom, then must be false\n // UNLESS it was limited by another range in the other direction.\n // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0\n if (gt && hasDomLT && !lt && gtltComp !== 0) {\n return false\n }\n\n if (lt && hasDomGT && !gt && gtltComp !== 0) {\n return false\n }\n\n // we needed a prerelease range in a specific tuple, but didn't get one\n // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,\n // because it includes prereleases in the 1.2.3 tuple\n if (needDomGTPre || needDomLTPre) {\n return false\n }\n\n return true\n}\n\n// >=1.2.3 is lower than >1.2.3\nconst higherGT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp > 0 ? a\n : comp < 0 ? b\n : b.operator === '>' && a.operator === '>=' ? b\n : a\n}\n\n// <=1.2.3 is higher than <1.2.3\nconst lowerLT = (a, b, options) => {\n if (!a) {\n return b\n }\n const comp = compare(a.semver, b.semver, options)\n return comp < 0 ? a\n : comp > 0 ? b\n : b.operator === '<' && a.operator === '<=' ? b\n : a\n}\n\nmodule.exports = subset\n","'use strict'\n\n// just pre-load all the stuff that index.js lazily exports\nconst internalRe = require('./internal/re')\nconst constants = require('./internal/constants')\nconst SemVer = require('./classes/semver')\nconst identifiers = require('./internal/identifiers')\nconst parse = require('./functions/parse')\nconst valid = require('./functions/valid')\nconst clean = require('./functions/clean')\nconst inc = require('./functions/inc')\nconst diff = require('./functions/diff')\nconst major = require('./functions/major')\nconst minor = require('./functions/minor')\nconst patch = require('./functions/patch')\nconst prerelease = require('./functions/prerelease')\nconst compare = require('./functions/compare')\nconst rcompare = require('./functions/rcompare')\nconst compareLoose = require('./functions/compare-loose')\nconst compareBuild = require('./functions/compare-build')\nconst sort = require('./functions/sort')\nconst rsort = require('./functions/rsort')\nconst gt = require('./functions/gt')\nconst lt = require('./functions/lt')\nconst eq = require('./functions/eq')\nconst neq = require('./functions/neq')\nconst gte = require('./functions/gte')\nconst lte = require('./functions/lte')\nconst cmp = require('./functions/cmp')\nconst coerce = require('./functions/coerce')\nconst truncate = require('./functions/truncate')\nconst Comparator = require('./classes/comparator')\nconst Range = require('./classes/range')\nconst satisfies = require('./functions/satisfies')\nconst toComparators = require('./ranges/to-comparators')\nconst maxSatisfying = require('./ranges/max-satisfying')\nconst minSatisfying = require('./ranges/min-satisfying')\nconst minVersion = require('./ranges/min-version')\nconst validRange = require('./ranges/valid')\nconst outside = require('./ranges/outside')\nconst gtr = require('./ranges/gtr')\nconst ltr = require('./ranges/ltr')\nconst intersects = require('./ranges/intersects')\nconst simplifyRange = require('./ranges/simplify')\nconst subset = require('./ranges/subset')\nmodule.exports = {\n parse,\n valid,\n clean,\n inc,\n diff,\n major,\n minor,\n patch,\n prerelease,\n compare,\n rcompare,\n compareLoose,\n compareBuild,\n sort,\n rsort,\n gt,\n lt,\n eq,\n neq,\n gte,\n lte,\n cmp,\n coerce,\n truncate,\n Comparator,\n Range,\n satisfies,\n toComparators,\n maxSatisfying,\n minSatisfying,\n minVersion,\n validRange,\n outside,\n gtr,\n ltr,\n intersects,\n simplifyRange,\n subset,\n SemVer,\n re: internalRe.re,\n src: internalRe.src,\n tokens: internalRe.t,\n SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,\n RELEASE_TYPES: constants.RELEASE_TYPES,\n compareIdentifiers: identifiers.compareIdentifiers,\n rcompareIdentifiers: identifiers.rcompareIdentifiers,\n}\n","import { DIRECTIVE } from \"./constants.js\";\nimport { version } from \"./package.js\";\nimport { existsSync, readFileSync } from \"node:fs\";\nimport { createHash } from \"node:crypto\";\nimport { createRequire } from \"node:module\";\nimport * as nodePath from \"node:path\";\nimport { parse } from \"@babel/parser\";\nimport _traverse from \"@babel/traverse\";\nimport _generate from \"@babel/generator\";\nimport * as t from \"@babel/types\";\nimport { satisfies } from \"semver\";\n//#region src/compile.ts\nconst parserPlugins = [\n\t\"typescript\",\n\t\"jsx\",\n\t\"explicitResourceManagement\"\n];\nconst traverse = typeof _traverse === \"function\" ? _traverse : _traverse.default;\nconst generate = typeof _generate === \"function\" ? _generate : _generate.default;\n/** The required wrapper around a toolkit's tools (stripped at build time). */\nconst TOOLKIT_WRAPPER = \"defineToolkit\";\n/** The helper that produces MCP-only toolkit fragments. */\nconst MCP_TOOLKIT_WRAPPER = \"defineMcpToolkit\";\n/** The required wrapper around a generative-UI library (stripped at build time). */\nconst COMPONENTS_WRAPPER = \"defineGenerativeComponents\";\n/** The core package whose metadata declares supported compiler versions. */\nconst CORE_PACKAGE = \"@assistant-ui/core\";\n/** This package, checked against core's compatibility range. */\nconst COMPILER_PACKAGE = \"@assistant-ui/x-generative-compiler\";\n/** Packages that re-export core's generative markers. */\nconst DISTRIBUTION_PACKAGES = [\n\tCORE_PACKAGE,\n\t\"@assistant-ui/react\",\n\t\"@assistant-ui/react-native\",\n\t\"@assistant-ui/react-ink\"\n];\n/** Package that exports the generative UI runtime split by export condition. */\nconst GENERATIVE_UI_PACKAGE = \"@assistant-ui/react-generative-ui\";\n/**\n* The class whose instances expose split-by-condition tools (`present()`,\n* `promptUser()`). A toolkit entry that calls a method on one of these passes\n* through untouched — the library, not this compiler, routes its halves.\n*/\nconst GENERATIVE_FACTORY = \"JSONGenerativeUI\";\n/**\n* The factory producing an interactable's complete tool entry. Unlike\n* `JSONGenerativeUI`, its package has no per-target builds, so this compiler\n* splits the inline config: the client keeps `render`, the server drops it.\n* The factory's own `execute` is internal and client-safe (frontend tool).\n*/\nconst INTERACTABLE_TOOL_FACTORY = \"unstable_interactableTool\";\n/** Thrown when a `\"use generative\"` file violates an authoring constraint. */\nvar GenerativeCompileError = class extends Error {\n\tconstructor(message, filename) {\n\t\tsuper(`[assistant-ui/use-generative]${filename ? ` ${filename}:` : \"\"} ${message}`);\n\t\tthis.name = \"GenerativeCompileError\";\n\t}\n};\n/** Whether a source string opts into generative compilation via the directive. */\nfunction isGenerativeModule(code) {\n\tlet i = code.charCodeAt(0) === 65279 ? 1 : 0;\n\tfor (;;) {\n\t\twhile (i < code.length && /\\s/.test(code[i])) i++;\n\t\tif (code.startsWith(\"//\", i)) {\n\t\t\tconst nl = code.indexOf(\"\\n\", i);\n\t\t\tif (nl === -1) return false;\n\t\t\ti = nl + 1;\n\t\t} else if (code.startsWith(\"/*\", i)) {\n\t\t\tconst end = code.indexOf(\"*/\", i + 2);\n\t\t\tif (end === -1) return false;\n\t\t\ti = end + 2;\n\t\t} else break;\n\t}\n\tconst quote = code[i];\n\tif (quote !== \"\\\"\" && quote !== \"'\") return false;\n\tconst directiveStart = i + 1;\n\tif (!code.startsWith(\"use generative\", directiveStart)) return false;\n\tconst directiveEnd = directiveStart + DIRECTIVE.length;\n\tif (code[directiveEnd] !== quote) return false;\n\treturn hasDirectiveTerminator(code, directiveEnd + 1);\n}\nconst isGenerativeSource = (filename, source) => /\\.[cm]?[jt]sx?$/.test(filename) && isGenerativeModule(source);\nfunction hasDirectiveTerminator(code, start) {\n\tlet i = start;\n\tlet sawLineTerminator = false;\n\tfor (;;) {\n\t\tif (i >= code.length) return true;\n\t\tconst char = code.charCodeAt(i);\n\t\tif (isSemicolon(char)) return true;\n\t\tif (isLineTerminator(char)) {\n\t\t\tsawLineTerminator = true;\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code.startsWith(\"//\", i)) {\n\t\t\tconst lineEnd = nextLineTerminatorIndex(code, i + 2);\n\t\t\tif (lineEnd === -1) return true;\n\t\t\tsawLineTerminator = true;\n\t\t\ti = lineEnd + 1;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code.startsWith(\"/*\", i)) {\n\t\t\tconst end = code.indexOf(\"*/\", i + 2);\n\t\t\tif (end === -1) return false;\n\t\t\tsawLineTerminator ||= containsLineTerminator(code, i + 2, end);\n\t\t\ti = end + 2;\n\t\t\tcontinue;\n\t\t}\n\t\tif (/\\s/.test(code[i])) {\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\treturn sawLineTerminator && !startsExpressionContinuation(code, i);\n\t}\n}\nfunction nextLineTerminatorIndex(code, start) {\n\tfor (let i = start; i < code.length; i++) if (isLineTerminator(code.charCodeAt(i))) return i;\n\treturn -1;\n}\nfunction containsLineTerminator(code, start, end) {\n\tfor (let i = start; i < end; i++) if (isLineTerminator(code.charCodeAt(i))) return true;\n\treturn false;\n}\nfunction startsExpressionContinuation(code, start) {\n\tswitch (code[start]) {\n\t\tcase \".\":\n\t\tcase \"+\":\n\t\tcase \"-\":\n\t\tcase \"*\":\n\t\tcase \"/\":\n\t\tcase \"%\":\n\t\tcase \"<\":\n\t\tcase \">\":\n\t\tcase \"=\":\n\t\tcase \"!\":\n\t\tcase \"&\":\n\t\tcase \"|\":\n\t\tcase \"^\":\n\t\tcase \"?\":\n\t\tcase \":\":\n\t\tcase \",\":\n\t\tcase \"[\":\n\t\tcase \"(\":\n\t\tcase \"`\": return true;\n\t}\n\treturn startsKeywordContinuation(code, start, \"as\") || startsKeywordContinuation(code, start, \"in\") || startsKeywordContinuation(code, start, \"instanceof\") || startsKeywordContinuation(code, start, \"satisfies\");\n}\nfunction startsKeywordContinuation(code, start, keyword) {\n\tif (!code.startsWith(keyword, start)) return false;\n\tconst next = code[start + keyword.length];\n\treturn next === void 0 || !/[\\p{ID_Continue}$]/u.test(next);\n}\nfunction isSemicolon(char) {\n\treturn char === 59;\n}\nfunction isLineTerminator(char) {\n\treturn char === 10 || char === 13 || char === 8232 || char === 8233;\n}\n/**\n* Rewrites a `\"use generative\"` module for a single build target, keeping only the\n* regions that target needs and pruning the imports the dropped regions used.\n*/\nfunction compileGenerative(code, options) {\n\tcurrentCompilePass++;\n\tconst { target, filename } = options;\n\tconst backendless = options.backendless ?? false;\n\tconst ast = parse(code, {\n\t\tsourceType: \"module\",\n\t\tplugins: parserPlugins\n\t});\n\tif (!ast.program.directives.some((d) => d.value.value === \"use generative\")) throw new GenerativeCompileError(`missing \"${DIRECTIVE}\" directive`, filename);\n\tensureCompilerCompatibleWithCore(ast, filename);\n\tensureDefaultExport(ast, filename);\n\tconst generativeInstances = collectGenerativeInstances(ast);\n\tconst interactableToolImports = collectInteractableToolImports(ast);\n\tconst { spreadNames: toolkitSpreadNames, namespaceImports } = collectToolkitSpreadNames(ast, filename, createToolkitNameContext());\n\tconst flags = {\n\t\tkeptRender: false,\n\t\tkeptBackendExecute: false\n\t};\n\ttraverse(ast, { CallExpression(path) {\n\t\tconst callee = path.node.callee;\n\t\tconst object = t.isObjectExpression(path.node.arguments[0]) ? path.node.arguments[0] : null;\n\t\tif (t.isIdentifier(callee, { name: COMPONENTS_WRAPPER })) {\n\t\t\tif (!object) throw new GenerativeCompileError(`${COMPONENTS_WRAPPER}() takes an inline object literal of components`, filename);\n\t\t\tcompileComponents(object, target, flags, filename);\n\t\t\tpath.replaceWith(object);\n\t\t\tpath.skip();\n\t\t\treturn;\n\t\t}\n\t\tif (t.isIdentifier(callee, { name: TOOLKIT_WRAPPER })) {\n\t\t\tif (!object) throw new GenerativeCompileError(`${TOOLKIT_WRAPPER}() takes an inline object literal of tools`, filename);\n\t\t\tcompileToolkit(object, target, generativeInstances, interactableToolImports, toolkitSpreadNames, namespaceImports, flags, backendless, filename);\n\t\t\tpath.replaceWith(object);\n\t\t\tpath.skip();\n\t\t}\n\t} });\n\tconst { keptRender, keptBackendExecute } = flags;\n\tpruneUnused(ast);\n\tast.program.directives = ast.program.directives.filter((d) => d.value.value !== \"use generative\" && d.value.value !== \"use client\");\n\tif (target === \"client\" && keptRender) ast.program.directives.unshift(t.directive(t.directiveLiteral(\"use client\")));\n\tif (target === \"server\" && keptBackendExecute && (options.injectServerOnly ?? true)) ast.program.body.unshift(t.importDeclaration([], t.stringLiteral(\"server-only\")));\n\tconst result = generate(ast, {\n\t\tsourceMaps: options.sourceMaps ?? false,\n\t\t...filename ? { filename } : {},\n\t\tjsescOption: { minimal: true }\n\t}, code);\n\treturn {\n\t\tcode: result.code,\n\t\tmap: result.map\n\t};\n}\nconst checkedCorePackageJsonPaths = /* @__PURE__ */ new Set();\nconst COMPILER_VERSION = version;\nfunction ensureCompilerCompatibleWithCore(ast, filename) {\n\tconst corePackageJsonPath = resolveCorePackageJson(ast, filename);\n\tif (!corePackageJsonPath || checkedCorePackageJsonPaths.has(corePackageJsonPath)) return;\n\tconst corePackageJson = readPackageJson(corePackageJsonPath);\n\tconst range = corePackageJson?.optionalDevDependencies?.[COMPILER_PACKAGE];\n\tif (!range) {\n\t\tcheckedCorePackageJsonPaths.add(corePackageJsonPath);\n\t\treturn;\n\t}\n\tlet compatible = false;\n\ttry {\n\t\tcompatible = satisfies(COMPILER_VERSION, range, { includePrerelease: true });\n\t} catch {\n\t\tthrow new GenerativeCompileError(`${CORE_PACKAGE}@${corePackageJson.version ?? \"unknown\"} declares an invalid optionalDevDependencies range for ${COMPILER_PACKAGE}: ` + JSON.stringify(range), filename);\n\t}\n\tif (!compatible) throw new GenerativeCompileError(`${CORE_PACKAGE}@${corePackageJson.version ?? \"unknown\"} requires ${COMPILER_PACKAGE} ${range}, but the current compiler is ${COMPILER_VERSION}. Update @assistant-ui/next, @assistant-ui/vite, or @assistant-ui/metro so their compiler satisfies the core package's optionalDevDependencies range.`, filename);\n\tcheckedCorePackageJsonPaths.add(corePackageJsonPath);\n}\nfunction resolveCorePackageJson(ast, filename) {\n\tfor (const packageName of collectImportedDistributionPackages(ast)) {\n\t\tconst packageJsonPath = resolvePackageJson(packageName, filename);\n\t\tif (!packageJsonPath) continue;\n\t\tif (packageName === CORE_PACKAGE) return packageJsonPath;\n\t\tconst corePackageJsonPath = resolvePackageJson(CORE_PACKAGE, packageJsonPath);\n\t\tif (corePackageJsonPath) return corePackageJsonPath;\n\t}\n\treturn null;\n}\nfunction collectImportedDistributionPackages(ast) {\n\tconst packages = /* @__PURE__ */ new Set();\n\tfor (const statement of ast.program.body) {\n\t\tconst source = (t.isImportDeclaration(statement) || t.isExportNamedDeclaration(statement) || t.isExportAllDeclaration(statement)) && statement.source ? statement.source.value : null;\n\t\tif (!source) continue;\n\t\tconst packageName = packageNameFromSpecifier(source);\n\t\tif (packageName) packages.add(packageName);\n\t}\n\treturn packages;\n}\nfunction packageNameFromSpecifier(specifier) {\n\tfor (const packageName of DISTRIBUTION_PACKAGES) if (specifier === packageName || specifier.startsWith(`${packageName}/`)) return packageName;\n\treturn null;\n}\nfunction resolvePackageJson(packageName, filename) {\n\tconst requirePath = normalizeRequirePath(filename);\n\tconst require = createRequire(requirePath);\n\ttry {\n\t\treturn findPackageJson(require.resolve(packageName), packageName);\n\t} catch {\n\t\treturn findPackageJsonFromNodeModules(packageName, requirePath);\n\t}\n}\nfunction normalizeRequirePath(filename) {\n\treturn cleanAbsoluteFilename(filename) ?? import.meta.url;\n}\n/** Strips a `?query`/`#hash` suffix and returns the path only if it is absolute. */\nfunction cleanAbsoluteFilename(filename) {\n\tif (!filename) return null;\n\tconst clean = filename.split(/[?#]/, 1)[0];\n\treturn nodePath.isAbsolute(clean) ? clean : null;\n}\nfunction findPackageJson(fromPathOrUrl, packageName) {\n\tlet current = nodePath.dirname(fromPathOrUrl.startsWith(\"file:\") ? new URL(fromPathOrUrl).pathname : nodePath.resolve(fromPathOrUrl));\n\tfor (;;) {\n\t\tconst packageJsonPath = nodePath.join(current, \"package.json\");\n\t\tif (readPackageJson(packageJsonPath)?.name === packageName) return packageJsonPath;\n\t\tconst parent = nodePath.dirname(current);\n\t\tif (parent === current) return null;\n\t\tcurrent = parent;\n\t}\n}\nfunction findPackageJsonFromNodeModules(packageName, fromPathOrUrl) {\n\tconst parts = packageName.split(\"/\");\n\tlet current = nodePath.dirname(fromPathOrUrl.startsWith(\"file:\") ? new URL(fromPathOrUrl).pathname : nodePath.resolve(fromPathOrUrl));\n\tfor (;;) {\n\t\tconst packageJsonPath = nodePath.join(current, \"node_modules\", ...parts, \"package.json\");\n\t\tif (readPackageJson(packageJsonPath)?.name === packageName) return packageJsonPath;\n\t\tconst parent = nodePath.dirname(current);\n\t\tif (parent === current) return null;\n\t\tcurrent = parent;\n\t}\n}\nfunction readPackageJson(packageJsonPath) {\n\tif (!existsSync(packageJsonPath)) return null;\n\ttry {\n\t\treturn JSON.parse(readFileSync(packageJsonPath, \"utf8\"));\n\t} catch (error) {\n\t\tthrow new GenerativeCompileError(`could not parse package metadata at ${packageJsonPath}: ${error instanceof Error ? error.message : String(error)}`);\n\t}\n}\n/**\n* Errors unless the module's default export is the toolkit — a `defineToolkit(...)`\n* call (through `satisfies`/`as`/parens). This is the security boundary: the\n* default export is what the runtime registers, so it must be wrapped (and thus\n* split). A bare `export default { ... }` would ship a backend `execute` to the\n* client even if some *other* `defineToolkit(...)` exists elsewhere in the file.\n*/\nfunction ensureDefaultExport(ast, filename) {\n\tconst def = ast.program.body.find((stmt) => t.isExportDefaultDeclaration(stmt));\n\tif (!def) throw new GenerativeCompileError(\"missing a default export\", filename);\n\tif (!unwrapToToolkitCall(def.declaration)) throw new GenerativeCompileError(`the default export must be ${TOOLKIT_WRAPPER}({ ... }) or ${MCP_TOOLKIT_WRAPPER}({ ... }) (imported from \"@assistant-ui/react\"); wrapping is required so a backend \\`execute\\` can't be authored in a way that reaches the client`, filename);\n}\n/**\n* Unwraps a node through `satisfies`/`as`/parens to a call of the named function,\n* or returns `null`.\n*/\nfunction unwrapToCall(node, name) {\n\tif (t.isTSSatisfiesExpression(node) || t.isTSAsExpression(node)) return unwrapToCall(node.expression, name);\n\tif (t.isParenthesizedExpression(node)) return unwrapToCall(node.expression, name);\n\tif (t.isCallExpression(node) && t.isIdentifier(node.callee, { name })) return node;\n\treturn null;\n}\n/**\n* Unwraps a statement to its variable declaration through an `export` wrapper,\n* or returns `null`.\n*/\nfunction asVariableDeclaration(statement) {\n\tif (t.isVariableDeclaration(statement)) return statement;\n\tif (t.isExportNamedDeclaration(statement) && t.isVariableDeclaration(statement.declaration)) return statement.declaration;\n\treturn null;\n}\n/**\n* Collects the names bound to `new JSONGenerativeUI(...)` (e.g.\n* `const generative = new JSONGenerativeUI({ library })`). A toolkit entry that\n* calls a method on one of these is a generative tool whose halves the library\n* routes by export condition, so it passes through the toolkit pass untouched.\n*/\nfunction collectGenerativeInstances(ast) {\n\tconst names = /* @__PURE__ */ new Set();\n\tconst generativeFactories = collectGenerativeFactoryImports(ast);\n\tfor (const statement of ast.program.body) {\n\t\tconst variableDeclaration = asVariableDeclaration(statement);\n\t\tif (!variableDeclaration) continue;\n\t\tfor (const declaration of variableDeclaration.declarations) {\n\t\t\tconst { id, init } = declaration;\n\t\t\tif (t.isIdentifier(id) && t.isNewExpression(init) && t.isIdentifier(init.callee) && generativeFactories.has(init.callee.name)) names.add(id.name);\n\t\t}\n\t}\n\treturn names;\n}\n/**\n* Wraps a pass-through generative entry (`generative.present()`) so the tool it\n* returns loses its `unstable_backendDefault` marker. The library stamps the\n* marker at runtime, out of this compiler's reach, so a backendless client\n* build strips it post-hoc instead of threading an option into the library.\n*/\nfunction stripBackendDefaultExpression(expr) {\n\treturn t.callExpression(t.arrowFunctionExpression([t.objectPattern([t.objectProperty(t.identifier(\"unstable_backendDefault\"), t.identifier(\"_backendDefault\")), t.restElement(t.identifier(\"tool\"))])], t.identifier(\"tool\")), [expr]);\n}\nfunction collectGenerativeFactoryImports(ast) {\n\tconst names = /* @__PURE__ */ new Set();\n\tfor (const statement of ast.program.body) {\n\t\tif (!t.isImportDeclaration(statement) || statement.source.value !== GENERATIVE_UI_PACKAGE) continue;\n\t\tfor (const specifier of statement.specifiers) if (t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported, { name: GENERATIVE_FACTORY })) names.add(specifier.local.name);\n\t}\n\treturn names;\n}\n/**\n* Collects the local names `unstable_interactableTool` is imported under from a\n* distribution package, so toolkit entries calling it can be recognized\n* (and a same-named local function can't smuggle an arbitrary call through).\n*/\nfunction collectInteractableToolImports(ast) {\n\tconst names = /* @__PURE__ */ new Set();\n\tfor (const statement of ast.program.body) {\n\t\tif (!t.isImportDeclaration(statement)) continue;\n\t\tif (!packageNameFromSpecifier(statement.source.value)) continue;\n\t\tfor (const specifier of statement.specifiers) if (t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported, { name: INTERACTABLE_TOOL_FACTORY })) names.add(specifier.local.name);\n\t}\n\treturn names;\n}\nfunction createToolkitNameContext() {\n\treturn {\n\t\timportedToolkitNamesByFile: /* @__PURE__ */ new Map(),\n\t\tresolvingImportedToolkitNames: /* @__PURE__ */ new Set()\n\t};\n}\n/**\n* The inline config of an `unstable_interactableTool({ ... })` toolkit entry, or `null`\n* when the entry is some other expression.\n*/\nfunction interactableToolConfig(value, imports) {\n\treturn t.isCallExpression(value) && t.isIdentifier(value.callee) && imports.has(value.callee.name) && t.isObjectExpression(value.arguments[0]) ? value.arguments[0] : null;\n}\n/**\n* Toolkit identifiers that are safe to spread into a `defineToolkit({ ... })`,\n* paired with the static tool names they contain. A `null` name list means the\n* spread is safe, but its names are not statically known for duplicate checks.\n*\n* Two kinds qualify:\n*\n* - A local variable whose initializer is visible to this compiler pass: a\n* `defineToolkit(...)` binding is compiled in-place before a later spread\n* reads it, and `defineMcpToolkit(...)` entries can't contain executable code.\n* - The default import of another `\"use generative\"` module: that module is\n* split per-target by its own compiler pass, so spreading its default-exported\n* toolkit can't leak a backend `execute` to the client. Only the default\n* export crosses the generative-module boundary, so named imports don't\n* qualify — they would be `undefined` once that module is build-split.\n*\n* A namespace import (`import * as kit from \"...\"`) of a generative module is\n* tracked separately in `namespaceImports` so a `...kit` / `...kit.default`\n* spread can be rejected with a specific callout: only the default export\n* crosses the boundary, so a namespace spread is never safe.\n*/\nfunction collectToolkitSpreadNames(ast, filename, context) {\n\tconst spreadNames = /* @__PURE__ */ new Map();\n\tconst namespaceImports = /* @__PURE__ */ new Set();\n\tconst localToolkitCalls = /* @__PURE__ */ new Map();\n\tfor (const statement of ast.program.body) {\n\t\tconst localDeclaration = asVariableDeclaration(statement);\n\t\tif (localDeclaration) {\n\t\t\tfor (const declaration of localDeclaration.declarations) {\n\t\t\t\tconst { id, init } = declaration;\n\t\t\t\tif (t.isIdentifier(id) && init) {\n\t\t\t\t\tconst toolkitCall = unwrapToToolkitCall(init);\n\t\t\t\t\tif (toolkitCall) localToolkitCalls.set(id.name, toolkitCall);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\tif (t.isImportDeclaration(statement)) {\n\t\t\tconst defaultSpecifier = statement.specifiers.find((specifier) => t.isImportDefaultSpecifier(specifier));\n\t\t\tconst namespaceSpecifier = statement.specifiers.find((specifier) => t.isImportNamespaceSpecifier(specifier));\n\t\t\tif (!defaultSpecifier && !namespaceSpecifier) continue;\n\t\t\tconst names = getGenerativeImportToolkitNames(statement.source.value, filename, context);\n\t\t\tif (names === void 0) continue;\n\t\t\tif (defaultSpecifier) spreadNames.set(defaultSpecifier.local.name, names);\n\t\t\tif (namespaceSpecifier) namespaceImports.add(namespaceSpecifier.local.name);\n\t\t}\n\t}\n\tconst resolveLocal = (name) => {\n\t\tif (spreadNames.has(name)) return spreadNames.get(name);\n\t\tconst call = localToolkitCalls.get(name);\n\t\tif (!call) return void 0;\n\t\tconst object = t.isObjectExpression(call.arguments[0]) ? call.arguments[0] : null;\n\t\tconst publicNames = uniqueToolkitNames(object ? collectToolkitObjectNames(object, spreadNames) : null);\n\t\tspreadNames.set(name, publicNames);\n\t\treturn publicNames;\n\t};\n\tfor (const name of localToolkitCalls.keys()) resolveLocal(name);\n\treturn {\n\t\tspreadNames,\n\t\tnamespaceImports\n\t};\n}\nconst MODULE_EXTENSIONS = [\n\t\".ts\",\n\t\".tsx\",\n\t\".mts\",\n\t\".cts\",\n\t\".js\",\n\t\".jsx\",\n\t\".mjs\",\n\t\".cjs\"\n];\n/** Extensions a specifier may carry that actually map to a TS source file. */\nconst REWRITABLE_JS_EXTENSIONS = /* @__PURE__ */ new Set([\n\t\".js\",\n\t\".jsx\",\n\t\".mjs\",\n\t\".cjs\"\n]);\n/**\n* Reads the static tool names from the default export of an imported\n* `\"use generative\"` module. Relative specifiers and `tsconfig` path aliases\n* (e.g. `@/tools`) are resolved; anything else (a bare package, an unresolvable\n* alias) is treated as non-generative, and thus an unsafe spread.\n*/\nfunction getGenerativeImportToolkitNames(source, filename, context) {\n\tconst cleanFilename = cleanAbsoluteFilename(filename);\n\tif (!cleanFilename) return void 0;\n\tconst resolved = resolveImportedModuleFile(source, cleanFilename);\n\tif (!resolved) return void 0;\n\tif (context.importedToolkitNamesByFile.has(resolved)) return context.importedToolkitNamesByFile.get(resolved);\n\tif (context.resolvingImportedToolkitNames.has(resolved)) return null;\n\tlet code;\n\ttry {\n\t\tcode = readFileSync(resolved, \"utf8\");\n\t} catch {\n\t\tcontext.importedToolkitNamesByFile.set(resolved, void 0);\n\t\treturn;\n\t}\n\tif (!isGenerativeModule(code)) {\n\t\tcontext.importedToolkitNamesByFile.set(resolved, void 0);\n\t\treturn;\n\t}\n\tcontext.resolvingImportedToolkitNames.add(resolved);\n\ttry {\n\t\tconst names = getDefaultExportToolkitNames(parse(code, {\n\t\t\tsourceType: \"module\",\n\t\t\tplugins: parserPlugins\n\t\t}), resolved, context);\n\t\tcontext.importedToolkitNamesByFile.set(resolved, names);\n\t\treturn names;\n\t} catch (error) {\n\t\tif (error instanceof GenerativeCompileError) throw error;\n\t\tcontext.importedToolkitNamesByFile.set(resolved, null);\n\t\treturn null;\n\t} finally {\n\t\tcontext.resolvingImportedToolkitNames.delete(resolved);\n\t}\n}\nfunction getDefaultExportToolkitNames(ast, filename, context) {\n\tconst def = ast.program.body.find((stmt) => t.isExportDefaultDeclaration(stmt));\n\tif (!def) return null;\n\tconst toolkitCall = unwrapToToolkitCall(def.declaration);\n\tif (!toolkitCall || !t.isObjectExpression(toolkitCall.arguments[0])) return null;\n\tconst { spreadNames } = collectToolkitSpreadNames(ast, filename, context);\n\treturn uniqueToolkitNames(collectToolkitObjectNames(toolkitCall.arguments[0], spreadNames));\n}\n/** Resolves an import specifier (relative or `tsconfig`-aliased) to a file on disk. */\nfunction resolveImportedModuleFile(source, fromFilename) {\n\tif (source.startsWith(\".\")) return resolveModuleFileAtPath(nodePath.resolve(nodePath.dirname(fromFilename), source));\n\treturn resolveAliasImport(source, fromFilename);\n}\n/**\n* Resolves a candidate module path, trying TS/JS extensions then index files. A\n* specifier may carry a `.js`-family extension that maps to a `.ts`/`.tsx`\n* source (TypeScript's `bundler`/`nodenext` resolution), so the extension is\n* dropped before probing.\n*/\nfunction resolveModuleFileAtPath(base) {\n\tconst ext = nodePath.extname(base);\n\tif (ext && existsSync(base)) return base;\n\tconst stem = REWRITABLE_JS_EXTENSIONS.has(ext) ? base.slice(0, -ext.length) : base;\n\tfor (const candidateExt of MODULE_EXTENSIONS) {\n\t\tconst candidate = `${stem}${candidateExt}`;\n\t\tif (existsSync(candidate)) return candidate;\n\t}\n\tfor (const candidateExt of MODULE_EXTENSIONS) {\n\t\tconst candidate = nodePath.join(base, `index${candidateExt}`);\n\t\tif (existsSync(candidate)) return candidate;\n\t}\n\treturn null;\n}\n/** Resolves a `tsconfig` path alias (e.g. `@/tools/x`) to a file on disk. */\nfunction resolveAliasImport(source, fromFilename) {\n\tconst tsconfig = loadTsconfigAliases(nodePath.dirname(fromFilename));\n\tif (!tsconfig) return null;\n\tconst patterns = Object.entries(tsconfig.paths).sort(([a], [b]) => aliasSpecificity(b) - aliasSpecificity(a));\n\tfor (const [pattern, targets] of patterns) {\n\t\tconst matched = matchAliasPattern(pattern, source);\n\t\tif (matched === null) continue;\n\t\tfor (const target of targets) {\n\t\t\tconst specifier = substituteAliasWildcard(target, matched);\n\t\t\tconst file = resolveModuleFileAtPath(nodePath.resolve(tsconfig.baseDir, specifier));\n\t\t\tif (file) return file;\n\t\t}\n\t}\n\treturn null;\n}\n/** Ranks a `paths` key: an exact key outranks any wildcard; longer prefixes win. */\nfunction aliasSpecificity(pattern) {\n\tconst star = pattern.indexOf(\"*\");\n\treturn star === -1 ? pattern.length + 1 : star;\n}\n/** Substitutes the single `*` in a `paths` target with the matched text. */\nfunction substituteAliasWildcard(target, matched) {\n\tconst star = target.indexOf(\"*\");\n\tif (star === -1) return target;\n\treturn target.slice(0, star) + matched + target.slice(star + 1);\n}\n/**\n* Matches an import specifier against a `tsconfig` `paths` key. Returns the text\n* captured by the key's `*` (or `\"\"` for an exact, wildcard-free key), or `null`\n* when the specifier doesn't match.\n*/\nfunction matchAliasPattern(pattern, source) {\n\tconst star = pattern.indexOf(\"*\");\n\tif (star === -1) return pattern === source ? \"\" : null;\n\tconst prefix = pattern.slice(0, star);\n\tconst suffix = pattern.slice(star + 1);\n\tif (source.length >= prefix.length + suffix.length && source.startsWith(prefix) && source.endsWith(suffix)) return source.slice(prefix.length, source.length - suffix.length);\n\treturn null;\n}\nconst tsconfigAliasesByDir = /* @__PURE__ */ new Map();\nlet currentCompilePass = 0;\nfunction tsconfigFileVersion(content) {\n\treturn createHash(\"sha1\").update(content).digest(\"hex\");\n}\nfunction readTsconfigFile(state, path) {\n\tconst cached = state.fileContents.get(path);\n\tif (cached !== void 0) return cached;\n\tlet content;\n\ttry {\n\t\tcontent = readFileSync(path, \"utf8\");\n\t} catch {\n\t\tcontent = null;\n\t}\n\tstate.fileContents.set(path, content);\n\tstate.fileVersions.set(path, content === null ? null : tsconfigFileVersion(content));\n\treturn content;\n}\nfunction currentFileVersion(path) {\n\ttry {\n\t\treturn tsconfigFileVersion(readFileSync(path, \"utf8\"));\n\t} catch {\n\t\treturn null;\n\t}\n}\nfunction isTsconfigCacheCurrent(entry) {\n\tfor (const [path, version] of entry.fileVersions) if (currentFileVersion(path) !== version) return false;\n\treturn true;\n}\n/** Walks up from a directory to the nearest `tsconfig.json` that declares `paths`. */\nfunction loadTsconfigAliases(fromDir) {\n\tconst cached = tsconfigAliasesByDir.get(fromDir);\n\tif (cached) {\n\t\tif (cached.validatedInPass === currentCompilePass || cached.reuseAcrossPasses && isTsconfigCacheCurrent(cached)) {\n\t\t\tcached.validatedInPass = currentCompilePass;\n\t\t\treturn cached.aliases;\n\t\t}\n\t}\n\tlet aliases = null;\n\tconst state = {\n\t\tfileVersions: /* @__PURE__ */ new Map(),\n\t\tfileContents: /* @__PURE__ */ new Map(),\n\t\tcacheable: true\n\t};\n\tlet dir = fromDir;\n\tfor (;;) {\n\t\tconst tsconfigPath = nodePath.join(dir, \"tsconfig.json\");\n\t\tif (readTsconfigFile(state, tsconfigPath) !== null) {\n\t\t\taliases = readTsconfigAliases(tsconfigPath, /* @__PURE__ */ new Set(), state);\n\t\t\tif (aliases) break;\n\t\t}\n\t\tconst parent = nodePath.dirname(dir);\n\t\tif (parent === dir) break;\n\t\tdir = parent;\n\t}\n\ttsconfigAliasesByDir.set(fromDir, {\n\t\taliases,\n\t\tfileVersions: state.fileVersions,\n\t\tvalidatedInPass: currentCompilePass,\n\t\treuseAcrossPasses: state.cacheable\n\t});\n\treturn aliases;\n}\n/** Reads `baseUrl`/`paths` from a tsconfig, following a single `extends` chain. */\nfunction readTsconfigAliases(tsconfigPath, seen, state) {\n\tif (seen.has(tsconfigPath)) return null;\n\tseen.add(tsconfigPath);\n\tconst raw = readTsconfigFile(state, tsconfigPath);\n\tif (raw === null) return null;\n\tlet config;\n\ttry {\n\t\tconfig = parseJsonc(raw);\n\t} catch {\n\t\treturn null;\n\t}\n\tif (!config) return null;\n\tconst configDir = nodePath.dirname(tsconfigPath);\n\tconst { baseUrl, paths } = config.compilerOptions ?? {};\n\tif (paths) return {\n\t\tbaseDir: baseUrl ? nodePath.resolve(configDir, baseUrl) : configDir,\n\t\tpaths\n\t};\n\tconst extendsList = Array.isArray(config.extends) ? config.extends : config.extends ? [config.extends] : [];\n\tfor (let i = extendsList.length - 1; i >= 0; i--) {\n\t\tconst entry = extendsList[i];\n\t\tif (typeof entry !== \"string\") continue;\n\t\tconst extended = resolveExtendedTsconfig(entry, configDir, state);\n\t\tif (extended) {\n\t\t\tconst aliases = readTsconfigAliases(extended, seen, state);\n\t\t\tif (aliases) return aliases;\n\t\t}\n\t}\n\treturn null;\n}\n/** Resolves a tsconfig `extends` value (relative path or installed package). */\nfunction resolveExtendedTsconfig(extendsValue, configDir, state) {\n\tif (extendsValue.startsWith(\".\")) {\n\t\tconst base = nodePath.resolve(configDir, extendsValue);\n\t\tconst candidates = nodePath.extname(base) === \".json\" ? [base] : [`${base}.json`, base];\n\t\tfor (const candidate of candidates) if (readTsconfigFile(state, candidate) !== null) return candidate;\n\t\treturn null;\n\t}\n\tconst request = extendsValue.endsWith(\".json\") ? extendsValue : `${extendsValue}.json`;\n\tconst requireFromConfig = createRequire(nodePath.join(configDir, \"package.json\"));\n\ttry {\n\t\tconst resolved = requireFromConfig.resolve(request);\n\t\treadTsconfigFile(state, resolved);\n\t\treturn resolved;\n\t} catch {\n\t\tstate.cacheable = false;\n\t\treturn null;\n\t}\n}\n/** Parses JSON with `//` and block comments and trailing commas stripped (tsconfig is JSONC). */\nfunction parseJsonc(text) {\n\tconst withoutTrailingCommas = text.replace(/\"(?:[^\"\\\\]|\\\\.)*\"|\\/\\/[^\\n\\r]*|\\/\\*[\\s\\S]*?\\*\\//g, (match) => match.startsWith(\"\\\"\") ? match : \"\").replace(/,(\\s*[}\\]])/g, \"$1\");\n\treturn JSON.parse(withoutTrailingCommas);\n}\nfunction unwrapToToolkitCall(node) {\n\treturn unwrapToCall(node, TOOLKIT_WRAPPER) ?? unwrapToCall(node, MCP_TOOLKIT_WRAPPER);\n}\nfunction collectToolkitObjectNames(object, toolkitSpreadNames) {\n\tconst names = [];\n\tfor (const entry of object.properties) {\n\t\tconst entryNames = toolkitEntryNames(entry, toolkitSpreadNames);\n\t\tif (!entryNames) return null;\n\t\tnames.push(...entryNames);\n\t}\n\treturn names;\n}\nfunction uniqueToolkitNames(names) {\n\treturn names ? [...new Set(names)] : names;\n}\nfunction toolkitEntryNames(entry, toolkitSpreadNames) {\n\tif (t.isSpreadElement(entry)) {\n\t\tif (t.isIdentifier(entry.argument)) return toolkitSpreadNames.get(entry.argument.name) ?? null;\n\t\tconst directMcpToolkit = unwrapToCall(entry.argument, MCP_TOOLKIT_WRAPPER);\n\t\tif (directMcpToolkit && t.isObjectExpression(directMcpToolkit.arguments[0])) return collectToolkitObjectNames(directMcpToolkit.arguments[0], toolkitSpreadNames);\n\t\treturn null;\n\t}\n\tif (t.isObjectProperty(entry) || t.isObjectMethod(entry)) {\n\t\tconst name = memberName(entry.key, entry.computed);\n\t\treturn name ? [name] : [];\n\t}\n\treturn [];\n}\nfunction toolkitEntrySourceLabel(entry) {\n\tif (t.isSpreadElement(entry)) {\n\t\tif (t.isIdentifier(entry.argument)) return `...${entry.argument.name}`;\n\t\tif (unwrapToCall(entry.argument, MCP_TOOLKIT_WRAPPER)) return `...${MCP_TOOLKIT_WRAPPER}(...)`;\n\t\treturn \"...\";\n\t}\n\tif (t.isObjectProperty(entry) || t.isObjectMethod(entry)) {\n\t\tconst line = entry.loc?.start.line;\n\t\treturn line === void 0 ? \"inline property\" : `inline property (line ${line})`;\n\t}\n\treturn \"inline property\";\n}\nfunction warnDuplicateToolkitNames(object, toolkitSpreadNames, filename) {\n\tconst sourcesByToolName = /* @__PURE__ */ new Map();\n\tfor (const entry of object.properties) {\n\t\tconst entryNames = toolkitEntryNames(entry, toolkitSpreadNames);\n\t\tif (!entryNames) continue;\n\t\tconst source = toolkitEntrySourceLabel(entry);\n\t\tfor (const name of entryNames) {\n\t\t\tconst sources = sourcesByToolName.get(name);\n\t\t\tif (sources) sources.push(source);\n\t\t\telse sourcesByToolName.set(name, [source]);\n\t\t}\n\t}\n\tfor (const [name, sources] of sourcesByToolName) {\n\t\tconst winner = sources.at(-1);\n\t\tconst overridden = sources.slice(0, -1);\n\t\tif (winner === void 0 || overridden.length === 0) continue;\n\t\tconsole.warn(new GenerativeCompileError(`Duplicate tool name \"${name}\": ${winner} overrides ${overridden.join(\", \")}. JavaScript object spread keeps the last definition.`, filename).message);\n\t}\n}\nfunction isSafeToolkitSpread(entry, toolkitSpreadNames) {\n\tif (t.isIdentifier(entry.argument)) return toolkitSpreadNames.has(entry.argument.name);\n\tconst directMcpToolkit = unwrapToCall(entry.argument, MCP_TOOLKIT_WRAPPER);\n\treturn !!directMcpToolkit && t.isObjectExpression(directMcpToolkit.arguments[0]);\n}\nfunction genericUnsafeToolkitEntryMessage() {\n\treturn \"each tool must be an inline object literal (`name: { ... }`) or a compiler-visible toolkit spread / generative tool (e.g. `...defineMcpToolkit(...)`, `...baseToolkit`, `generative.present()`, or `unstable_interactableTool(...)`) so its `execute` can be routed\";\n}\nfunction describeUnsafeToolkitEntry(entry) {\n\tif (!t.isObjectProperty(entry)) return genericUnsafeToolkitEntryMessage();\n\tconst toolName = memberName(entry.key, entry.computed);\n\tconst raw = entryRawValue(entry);\n\tif (!toolName || !raw) return genericUnsafeToolkitEntryMessage();\n\treturn `tool \"${toolName}\" cannot be \\`${generate(raw).code}\\`; use an inline object literal (\\`${toolName}: { ... }\\`) or a compiler-visible toolkit spread / generative tool so its \\`execute\\` can be routed`;\n}\nfunction namespaceToolkitSpreadMessage() {\n\treturn `a namespace import (\\`import * as kit from \"...\"\\`) can't be spread into ${TOOLKIT_WRAPPER}({ ... }); only a generative module's default export crosses the build-split boundary, so import it as a default (\\`import kit from \"...\"\\`) and spread \\`...kit\\` instead`;\n}\n/** The `kit` in `...kit` or `...kit.default`, or null for a computed/opaque base. */\nfunction namespaceSpreadBaseName(argument) {\n\tif (t.isIdentifier(argument)) return argument.name;\n\tif (t.isMemberExpression(argument) && !argument.computed && t.isIdentifier(argument.object)) return argument.object.name;\n\treturn null;\n}\n/** The `JSONGenerativeUI` methods that produce a split-by-condition tool. */\nconst GENERATIVE_TOOL_METHODS = /* @__PURE__ */ new Set([\"present\", \"promptUser\"]);\n/**\n* Whether a toolkit entry's value is a call to a tool-producing method on a\n* collected `JSONGenerativeUI` instance (`generative.present()`), which passes\n* through. The method name is checked too, so a typo like `generative.presnt()`\n* is a compile error here rather than a pass-through that fails at runtime.\n*/\nfunction isGenerativeToolEntry(value, instances) {\n\treturn t.isCallExpression(value) && t.isMemberExpression(value.callee) && !value.callee.computed && t.isIdentifier(value.callee.object) && instances.has(value.callee.object.name) && t.isIdentifier(value.callee.property) && GENERATIVE_TOOL_METHODS.has(value.callee.property.name);\n}\n/**\n* Splits a `defineGenerativeComponents({ ... })` library for a build target:\n* a component's `render` (and the client imports it alone uses) is dropped on\n* the server; `properties`/`description` stay on both, since they drive the tool\n* schema either way. Mutates the object in place.\n*/\nfunction compileComponents(object, target, flags, filename) {\n\tfor (const entry of object.properties) {\n\t\tconst value = entryValue(entry);\n\t\tif (!value) throw new GenerativeCompileError(`each component in ${COMPONENTS_WRAPPER}() must be an inline object literal (\\`name: { ... }\\`) so its \\`render\\` can be routed`, filename);\n\t\tif (!findMember(value, \"render\")) continue;\n\t\tif (target === \"client\") flags.keptRender = true;\n\t\telse removeMember(value, \"render\");\n\t}\n}\n/**\n* Splits a `defineToolkit({ ... })` for a build target. Each inline tool is\n* routed by inferred type (see the per-entry logic); a generative entry like\n* `generative.present()` passes through, the library having already split it.\n* Mutates the object in place and records outcomes in {@link TargetFlags}.\n*/\nfunction compileToolkit(object, target, instances, interactableToolImports, toolkitSpreadNames, namespaceImports, flags, backendless, filename) {\n\tif (target === \"client\") warnDuplicateToolkitNames(object, toolkitSpreadNames, filename);\n\tconst nextProperties = [];\n\tfor (const entry of object.properties) {\n\t\tconst value = entryValue(entry);\n\t\tif (!value) {\n\t\t\tif (t.isSpreadElement(entry) && isSafeToolkitSpread(entry, toolkitSpreadNames)) {\n\t\t\t\tnextProperties.push(entry);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst raw = entryRawValue(entry);\n\t\t\tif (raw && isGenerativeToolEntry(raw, instances)) {\n\t\t\t\tif (backendless && target === \"client\" && t.isObjectProperty(entry)) entry.value = stripBackendDefaultExpression(raw);\n\t\t\t\tnextProperties.push(entry);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst config = raw && interactableToolConfig(raw, interactableToolImports);\n\t\t\tif (config) {\n\t\t\t\tif (target === \"client\") flags.keptRender = true;\n\t\t\t\telse removeMember(config, \"render\");\n\t\t\t\tnextProperties.push(entry);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (t.isSpreadElement(entry)) {\n\t\t\t\tconst namespaceBase = namespaceSpreadBaseName(entry.argument);\n\t\t\t\tif (namespaceBase && namespaceImports.has(namespaceBase)) throw new GenerativeCompileError(namespaceToolkitSpreadMessage(), filename);\n\t\t\t}\n\t\t\tthrow new GenerativeCompileError(describeUnsafeToolkitEntry(entry), filename);\n\t\t}\n\t\tconst toolName = t.isObjectProperty(entry) ? memberName(entry.key, entry.computed) : void 0;\n\t\tconst execute = findMember(value, \"execute\");\n\t\tconst isStub = execute ? executeIsStubTool(execute) : false;\n\t\tconst isExternal = execute ? executeIsExternalTool(execute) : false;\n\t\tconst type = inferToolType(value, toolName, filename);\n\t\tconst hasRender = !!findMember(value, \"render\");\n\t\tconst hasRenderText = !!findMember(value, \"renderText\");\n\t\tif (type === \"frontend\" && !hasRender && !hasRenderText) throw new GenerativeCompileError(`${typedToolSubject(\"frontend\", toolName)} must declare a \\`render\\` or \\`renderText\\` (it has no server execute to show otherwise)`, filename);\n\t\tif (type === \"human\" && !hasRender) throw new GenerativeCompileError(`${typedToolSubject(\"human\", toolName)} must declare a \\`render\\` so it can collect input`, filename);\n\t\tif (type === \"provider\" && execute) applyProviderToolConfig(value, execute, toolName, filename);\n\t\tif (isExternal) {\n\t\t\tif (!hasRender && !hasRenderText) throw new GenerativeCompileError(`${typedToolSubject(\"external\", toolName)} must declare a \\`render\\` or \\`renderText\\` (assistant-ui only renders calls for tools defined elsewhere)`, filename);\n\t\t\tif (target === \"server\") continue;\n\t\t\tstripExternalToolMetadata(value);\n\t\t}\n\t\tif (target === \"client\") {\n\t\t\tif (execute && type === \"frontend\" && !isStub) stripUseClient(execute);\n\t\t\telse if (execute) removeMember(value, \"execute\");\n\t\t\tif (hasRender || hasRenderText) flags.keptRender = true;\n\t\t} else {\n\t\t\tif (hasRender) removeMember(value, \"render\");\n\t\t\tif (hasRenderText) removeMember(value, \"renderText\");\n\t\t\tif (execute) {\n\t\t\t\tif (type === \"backend\" && !isExternal) flags.keptBackendExecute = true;\n\t\t\t\telse removeMember(value, \"execute\");\n\t\t\t}\n\t\t}\n\t\tsetToolType(value, type);\n\t\tsetBackendDefault(value, target, type, backendless);\n\t\tnextProperties.push(entry);\n\t}\n\tobject.properties = nextProperties;\n}\nfunction applyProviderToolConfig(object, execute, toolName, filename) {\n\tif (!t.isObjectProperty(execute) || !t.isCallExpression(execute.value) || execute.value.arguments.length !== 1 || !t.isObjectExpression(execute.value.arguments[0])) throw new GenerativeCompileError(\"`providerTool(...)` must receive an inline object literal\", filename);\n\tconst existingNames = new Set(object.properties.flatMap((prop) => {\n\t\tif (!t.isObjectProperty(prop) && !t.isObjectMethod(prop)) return [];\n\t\tconst name = memberName(prop.key, prop.computed);\n\t\treturn name ? [name] : [];\n\t}));\n\tconst configNames = /* @__PURE__ */ new Set();\n\tfor (const prop of execute.value.arguments[0].properties) {\n\t\tif (!t.isObjectProperty(prop)) throw new GenerativeCompileError(\"`providerTool(...)` config can only contain object properties\", filename);\n\t\tconst name = memberName(prop.key, prop.computed);\n\t\tif (!name) throw new GenerativeCompileError(\"`providerTool(...)` config can only contain static property names\", filename);\n\t\tif (t.isFunctionExpression(prop.value) || t.isArrowFunctionExpression(prop.value)) throw new GenerativeCompileError(\"`providerTool(...)` config cannot contain function-valued properties\", filename);\n\t\tif (existingNames.has(name) || configNames.has(name)) throw new GenerativeCompileError(`\\`providerTool(...)\\` config${toolName ? ` for \"${toolName}\"` : \"\"} duplicates \"${name}\"`, filename);\n\t\tconfigNames.add(name);\n\t\tobject.properties.push(prop);\n\t}\n}\n/** The raw AST value of an entry (any expression), or null for spreads/methods. */\nfunction entryRawValue(entry) {\n\tif (t.isObjectProperty(entry) && t.isExpression(entry.value)) return entry.value;\n\treturn null;\n}\nfunction entryValue(entry) {\n\tif (t.isObjectProperty(entry) && t.isObjectExpression(entry.value)) return entry.value;\n\treturn null;\n}\n/** A member of an entry object: `render`/`execute`/`type`, as property or method. */\nfunction findMember(object, name) {\n\treturn object.properties.find((p) => (t.isObjectProperty(p) || t.isObjectMethod(p)) && memberName(p.key, p.computed) === name);\n}\nfunction removeMember(object, name) {\n\tobject.properties = object.properties.filter((p) => !((t.isObjectProperty(p) || t.isObjectMethod(p)) && memberName(p.key, p.computed) === name));\n}\n/** The `BlockStatement` body of an `execute` member, if it has one. */\nfunction executeBody(member) {\n\tif (t.isObjectMethod(member)) return member.body;\n\tconst value = member.value;\n\tif ((t.isArrowFunctionExpression(value) || t.isFunctionExpression(value)) && t.isBlockStatement(value.body)) return value.body;\n}\n/** Whether an `execute` opts into the client via a leading `\"use client\"`. */\nfunction executeIsClient(member) {\n\treturn !!executeBody(member)?.directives.some((d) => d.value.value === \"use client\");\n}\nfunction executeIsSentinel(member, name) {\n\treturn t.isObjectProperty(member) && t.isCallExpression(member.value) && t.isIdentifier(member.value.callee, { name });\n}\n/** Whether an `execute` is the human-in-the-loop sentinel. */\nfunction executeIsHumanTool(member) {\n\treturn executeIsSentinel(member, \"humanTool\") || executeIsSentinel(member, \"hitlTool\") || executeIsSentinel(member, \"hitl\");\n}\n/** Whether an `execute` is the provider-tool sentinel. */\nfunction executeIsProviderTool(member) {\n\treturn executeIsSentinel(member, \"providerTool\");\n}\n/** Whether an `execute` is the local override sentinel. */\nfunction executeIsStubTool(member) {\n\treturn executeIsSentinel(member, \"stubTool\");\n}\n/** Whether an `execute` is the externally-defined backend tool sentinel. */\nfunction executeIsExternalTool(member) {\n\treturn executeIsSentinel(member, \"externalTool\");\n}\n/** Drops the `\"use client\"` directive from an `execute` body (kept frontend). */\nfunction stripUseClient(member) {\n\tconst body = executeBody(member);\n\tif (body) body.directives = body.directives.filter((d) => d.value.value !== \"use client\");\n}\n/**\n* The tool's nature, inferred from its (mandatory) `execute` rather than an\n* authored `type`: `humanTool()` → `human`; `providerTool(...)` → `provider`;\n* `stubTool()` → `frontend`; `externalTool()` → `backend`; `\"use client\"` →\n* `frontend`; otherwise `backend`.\n* The loader writes the result back as a `type` field (see {@link setToolType})\n* so the runtime keeps it.\n*/\nfunction inferToolType(object, toolName, filename) {\n\tconst execute = findMember(object, \"execute\");\n\tif (!execute) throw new GenerativeCompileError(`${toolSubject(toolName)} must declare an \\`execute\\`; use \\`humanTool()\\` for a human-in-the-loop tool`, filename);\n\tif (executeIsHumanTool(execute)) return \"human\";\n\tif (executeIsProviderTool(execute)) return \"provider\";\n\tif (executeIsStubTool(execute)) return \"frontend\";\n\tif (executeIsExternalTool(execute)) return \"backend\";\n\treturn executeIsClient(execute) ? \"frontend\" : \"backend\";\n}\nfunction toolSubject(toolName) {\n\treturn toolName ? `tool \"${toolName}\"` : \"every tool\";\n}\nfunction typedToolSubject(type, toolName) {\n\tif (toolName) return `${type} tool \"${toolName}\"`;\n\treturn `${/^[aeiou]/i.test(type) ? \"an\" : \"a\"} ${type} tool`;\n}\nfunction stripExternalToolMetadata(object) {\n\tremoveMember(object, \"description\");\n\tremoveMember(object, \"parameters\");\n\tremoveMember(object, \"disabled\");\n\tremoveMember(object, \"toModelOutput\");\n\tremoveMember(object, \"experimental_onSchemaValidationError\");\n\tremoveMember(object, \"providerOptions\");\n\tremoveMember(object, \"streamCall\");\n}\n/** Writes the resolved `type` back onto the tool object (replacing any author's). */\nfunction setToolType(object, type) {\n\tremoveMember(object, \"type\");\n\tobject.properties.push(t.objectProperty(t.identifier(\"type\"), t.stringLiteral(type)));\n}\nfunction setBackendDefault(object, target, type, backendless) {\n\tremoveMember(object, \"unstable_backendDefault\");\n\tif (backendless) return;\n\tif (target !== \"client\" || type !== \"frontend\" && type !== \"human\") return;\n\tobject.properties.push(t.objectProperty(t.identifier(\"unstable_backendDefault\"), t.objectExpression([t.objectProperty(t.identifier(\"parameters\"), t.booleanLiteral(true))])));\n}\nfunction memberName(key, computed) {\n\tif (computed) return void 0;\n\tif (t.isIdentifier(key)) return key.name;\n\tif (t.isStringLiteral(key)) return key.value;\n}\n/**\n* Removes declarations and import specifiers left unreferenced after region\n* removal, to a fixpoint (a dropped helper frees what it used). Keeps exports,\n* side-effect imports, and possibly-side-effectful initializers.\n*/\nfunction pruneUnused(ast) {\n\tconst hadSpecifiers = /* @__PURE__ */ new WeakSet();\n\tfor (const stmt of ast.program.body) if (t.isImportDeclaration(stmt) && stmt.specifiers.length > 0) hadSpecifiers.add(stmt);\n\tlet removedSomething = true;\n\twhile (removedSomething) {\n\t\tremovedSomething = false;\n\t\ttraverse(ast, { Program(path) {\n\t\t\tpath.scope.crawl();\n\t\t\tconst isUnused = (name) => {\n\t\t\t\tconst binding = path.scope.getBinding(name);\n\t\t\t\treturn !!binding && !binding.referenced;\n\t\t\t};\n\t\t\tpath.node.body = path.node.body.filter((stmt) => {\n\t\t\t\tif ((t.isFunctionDeclaration(stmt) || t.isClassDeclaration(stmt)) && stmt.id && isUnused(stmt.id.name)) {\n\t\t\t\t\tremovedSomething = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (t.isVariableDeclaration(stmt)) {\n\t\t\t\t\tstmt.declarations = stmt.declarations.filter((decl) => {\n\t\t\t\t\t\tconst names = Object.keys(t.getBindingIdentifiers(decl.id));\n\t\t\t\t\t\tif (names.length > 0 && isPlainPattern(decl.id) && isRemovableInit(decl.init) && names.every(isUnused)) {\n\t\t\t\t\t\t\tremovedSomething = true;\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t});\n\t\t\t\t\tif (stmt.declarations.length === 0) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t});\n\t\t\tpath.stop();\n\t\t} });\n\t}\n\ttraverse(ast, { Program(path) {\n\t\tpath.scope.crawl();\n\t\tfor (const stmt of path.node.body) {\n\t\t\tif (!t.isImportDeclaration(stmt)) continue;\n\t\t\tstmt.specifiers = stmt.specifiers.filter((spec) => {\n\t\t\t\tconst binding = path.scope.getBinding(spec.local.name);\n\t\t\t\treturn binding ? binding.referenced : true;\n\t\t\t});\n\t\t}\n\t\tpath.node.body = path.node.body.filter((stmt) => !(t.isImportDeclaration(stmt) && stmt.specifiers.length === 0 && hadSpecifiers.has(stmt)));\n\t\tpath.stop();\n\t} });\n}\n/**\n* Whether a binding pattern is side-effect-free to drop: a plain identifier, or\n* an object/array pattern of plain bindings — no default values\n* (`{ a = expr }`) or computed keys (`{ [expr]: a }`), which would evaluate (and\n* thus could have side effects) at destructuring time.\n*/\nfunction isPlainPattern(node) {\n\tif (t.isIdentifier(node)) return true;\n\tif (t.isObjectPattern(node)) return node.properties.every((p) => t.isRestElement(p) ? isPlainPattern(p.argument) : !p.computed && isPlainPattern(p.value));\n\tif (t.isArrayPattern(node)) return node.elements.every((el) => el == null || isPlainPattern(el));\n\treturn false;\n}\n/** Whether a variable initializer is safe to drop (no observable side effects). */\nfunction isRemovableInit(node) {\n\tif (node == null) return true;\n\tif (t.isTSAsExpression(node) || t.isTSSatisfiesExpression(node)) return isRemovableInit(node.expression);\n\tif (t.isArrayExpression(node)) return node.elements.every((el) => el == null || t.isExpression(el) && isRemovableInit(el));\n\tif (t.isObjectExpression(node)) return node.properties.every((p) => t.isObjectProperty(p) && !p.computed && t.isExpression(p.value) && isRemovableInit(p.value));\n\tif (t.isTemplateLiteral(node)) return node.expressions.every((e) => t.isExpression(e) && isRemovableInit(e));\n\treturn t.isArrowFunctionExpression(node) || t.isFunctionExpression(node) || t.isClassExpression(node) || t.isIdentifier(node) || t.isMemberExpression(node) && !node.computed || t.isJSXElement(node) || t.isJSXFragment(node) || t.isLiteral(node);\n}\n//#endregion\nexport { GenerativeCompileError, compileGenerative, isGenerativeModule, isGenerativeSource };\n\n//# sourceMappingURL=compile.js.map","import { createRequire } from \"node:module\";\nimport { statSync } from \"node:fs\";\nimport { fileURLToPath } from \"node:url\";\nimport {\n compileGenerative,\n isGenerativeSource,\n} from \"@assistant-ui/x-generative-compiler\";\nimport { BACKENDLESS_ENV, UPSTREAM_TRANSFORMER_ENV } from \"./index\";\n\nconst require = createRequire(import.meta.url);\n\n/** Minimal shape of a Metro babel transformer. */\ntype BabelTransformer = {\n transform: (props: {\n filename: string;\n src: string;\n options?:\n | { customTransformOptions?: { environment?: string } | undefined }\n | undefined;\n [key: string]: unknown;\n }) => unknown;\n getCacheKey?: (() => string) | undefined;\n [key: string]: unknown;\n};\n\n/**\n * The project's upstream babel transformer: what Metro would have used without\n * this wrapper. Taken from {@link UPSTREAM_TRANSFORMER_ENV} (set by `withAui`),\n * else auto-detected: Expo's transformer, then React Native's.\n */\nfunction resolveUpstream(): BabelTransformer {\n const fromEnv = process.env[UPSTREAM_TRANSFORMER_ENV];\n if (fromEnv) return require(fromEnv) as BabelTransformer;\n\n for (const id of [\n \"@expo/metro-config/babel-transformer\",\n \"@react-native/metro-babel-transformer\",\n ]) {\n try {\n return require(id) as BabelTransformer;\n } catch {\n // try the next candidate\n }\n }\n\n throw new Error(\n \"[@assistant-ui/metro] Could not resolve an upstream Metro babel \" +\n \"transformer. Make sure `transformer.babelTransformerPath` is set before \" +\n \"`withAui(...)` (Expo's `getDefaultConfig` sets it), or install \" +\n \"`@expo/metro-config` or `@react-native/metro-babel-transformer`.\",\n );\n}\n\n// Resolved lazily on first use, by which point Metro has loaded `metro.config` and\n// `withAui` has populated the env var, and forked workers have inherited it.\nlet cachedUpstream: BabelTransformer | undefined;\nfunction upstreamTransformer(): BabelTransformer {\n return (cachedUpstream ??= resolveUpstream());\n}\n\n/** Expo bundles `+api` routes / RSC for a server environment; the app is client. */\nfunction isServerEnvironment(environment: string | undefined): boolean {\n return environment === \"node\" || environment === \"react-server\";\n}\n\nexport function transform(\n props: Parameters<BabelTransformer[\"transform\"]>[0],\n): unknown {\n const upstream = upstreamTransformer();\n const { filename, src, options } = props;\n\n if (isGenerativeSource(filename, src)) {\n const target = isServerEnvironment(\n options?.customTransformOptions?.environment,\n )\n ? \"server\"\n : \"client\";\n\n const { code } = compileGenerative(src, {\n target,\n filename,\n // Metro has no `react-server` layer, so `import \"server-only\"` would not\n // resolve; the environment split already keeps a server `execute` out of\n // the client bundle.\n injectServerOnly: false,\n backendless: process.env[BACKENDLESS_ENV] === \"1\",\n });\n\n return upstream.transform({ ...props, src: code });\n }\n\n return upstream.transform(props);\n}\n\n// The bundled compiler lives in this file, so its own mtime moves whenever the\n// transform output could change (a newly published version, or an in-place\n// monorepo rebuild). Deriving the token from it busts Metro's cache\n// automatically.\nlet cachedSelfToken: string | undefined;\nfunction selfCacheToken(): string {\n if (cachedSelfToken !== undefined) return cachedSelfToken;\n try {\n cachedSelfToken = String(statSync(fileURLToPath(import.meta.url)).mtimeMs);\n } catch {\n cachedSelfToken = \"0\";\n }\n return cachedSelfToken;\n}\n\nexport function getCacheKey(): string {\n const upstream = upstreamTransformer();\n const base = upstream.getCacheKey ? upstream.getCacheKey() : \"\";\n const backendless =\n process.env[BACKENDLESS_ENV] === \"1\" ? \":backendless\" : \"\";\n return `${base}$aui-metro:${selfCacheToken()}${backendless}`;\n}\n"],"x_google_ignoreList":[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAAM,YAAY;;;ACDlB,IAAI,UAAU;;;;CC0Bd,OAAO,UAAU;EACf;EACA;EACA;EACA,kBAxBuB,OAAO;6BACL;EAwBzB;GAdA;GACA;GACA;GACA;GACA;GACA;GACA;EAQA;EACA;EACA,yBAAyB;EACzB,YAAY;CACd;;;;;CC1BA,OAAO,UAPL,OAAO,YAAY,YACnB,QAAQ,OACR,QAAQ,IAAI,cACZ,cAAc,KAAK,QAAQ,IAAI,UAAU,KACtC,GAAG,SAAS,QAAQ,MAAM,UAAU,GAAG,IAAI,UACtC,CAAC;;;;;CCNX,MAAM,EACJ,2BACA,uBACA,eAAA,kBAAA;CAEF,MAAM,QAAA,cAAA;CACN,UAAU,OAAO,UAAU,CAAC;CAG5B,MAAM,KAAK,QAAQ,KAAK,CAAC;CACzB,MAAM,SAAS,QAAQ,SAAS,CAAC;CACjC,MAAM,MAAM,QAAQ,MAAM,CAAC;CAC3B,MAAM,UAAU,QAAQ,UAAU,CAAC;CACnC,MAAM,IAAI,QAAQ,IAAI,CAAC;CACvB,IAAI,IAAI;CAER,MAAM,mBAAmB;CAQzB,MAAM,wBAAwB;EAC5B,CAAC,OAAO,CAAC;EACT,CAAC,OAAO,UAAU;EAClB,CAAC,kBAAkB,qBAAqB;CAC1C;CAEA,MAAM,iBAA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,SAAgB,UACd,OACS;CACT,MAAM,WAAW,oBAAoB;CACrC,MAAM,EAAE,UAAU,KAAK,YAAY;CAEnC,IAAI,mBAAmB,UAAU,GAAG,GAAG;EAOrC,MAAM,EAAE,SAAS,kBAAkB,KAAK;GACtC,QAPa,oBACb,SAAS,wBAAwB,WACnC,IACI,WACA;GAIF;GAIA,kBAAkB;GAClB,aAAa,QAAQ,IAAIG,cAAAA,qBAAqB;EAChD,CAAC;EAED,OAAO,SAAS,UAAU;GAAE,GAAG;GAAO,KAAK;EAAK,CAAC;CACnD;CAEA,OAAO,SAAS,UAAU,KAAK;AACjC;AAMA,IAAI;AACJ,SAAS,iBAAyB;CAChC,IAAI,oBAAoB,KAAA,GAAW,OAAO;CAC1C,IAAI;EACF,kBAAkB,QAAA,GAAOC,QAAAA,SAAAA,EAAAA,GAASC,SAAAA,cAAAA,CAAAA,QAAAA,KAAAA,CAAAA,CAAAA,cAAAA,UAAAA,CAAAA,CAAAA,IAA6B,CAAC,CAAC,CAAC,OAAO;CAC3E,QAAQ;EACN,kBAAkB;CACpB;CACA,OAAO;AACT;AAEA,SAAgB,cAAsB;CACpC,MAAM,WAAW,oBAAoB;CACrC,MAAM,OAAO,SAAS,cAAc,SAAS,YAAY,IAAI;CAC7D,MAAM,cACJ,QAAQ,IAAA,6BAAyB,MAAM,iBAAiB;CAC1D,OAAO,GAAG,KAAK,aAAa,eAAe,IAAI;AACjD"}
@@ -14,8 +14,7 @@ type BabelTransformer = {
14
14
  getCacheKey?: (() => string) | undefined;
15
15
  [key: string]: unknown;
16
16
  };
17
- declare function transform(props: Parameters<BabelTransformer["transform"]>[0]): unknown;
18
- declare function getCacheKey(): string;
17
+ export declare function transform(props: Parameters<BabelTransformer["transform"]>[0]): unknown;
18
+ export declare function getCacheKey(): string;
19
19
  //#endregion
20
- export { getCacheKey, transform };
21
20
  //# sourceMappingURL=transformer.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transformer.d.cts","names":[],"sources":["../src/transformer.ts"],"mappings":";;KAYK;EACH,YAAY;IACV;IACA;IACA;MACM;QAA2B;;;KAEhC;;EAEH;GACC;;iBA2Ca,UACd,OAAO,WAAW;iBA2CJ"}
1
+ {"version":3,"file":"transformer.d.cts","names":[],"sources":["../src/transformer.ts"],"mappings":";;KAYK;EACH,YAAY;IACV;IACA;IACA;MACM;QAA2B;;;KAEhC;;EAEH;GACC;;wBA2Ca,UACd,OAAO,WAAW;wBA2CJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assistant-ui/metro",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "Metro / Expo integration for assistant-ui: the \"use generative\" directive compiler that colocates a tool's schema, server execute, and client render in one file. Works with Expo and bare React Native.",
5
5
  "keywords": [
6
6
  "assistant-ui",
@@ -31,18 +31,18 @@
31
31
  "README.md"
32
32
  ],
33
33
  "dependencies": {
34
- "@babel/generator": "^8.0.0",
35
- "@babel/parser": "^8.0.4",
36
- "@babel/traverse": "^8.0.4",
37
- "@babel/types": "^8.0.4"
34
+ "@babel/generator": "^7.29.7",
35
+ "@babel/parser": "^7.29.7",
36
+ "@babel/traverse": "^7.29.7",
37
+ "@babel/types": "^7.29.7"
38
38
  },
39
39
  "devDependencies": {
40
- "@assistant-ui/x-buildutils": "0.0.26",
41
- "@assistant-ui/x-generative-compiler": "^0.0.17",
42
- "@types/node": "^26.4.1",
40
+ "@assistant-ui/x-buildutils": "0.0.29",
41
+ "@assistant-ui/x-generative-compiler": "^0.0.19",
42
+ "@types/node": "^26.5.1",
43
43
  "typescript": "npm:@typescript/typescript6@^6.0.2",
44
44
  "typescript-7": "npm:typescript@^7.0.2",
45
- "vitest": "^4.1.11"
45
+ "vitest": "^5.0.1"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public",
@@ -60,6 +60,7 @@
60
60
  "scripts": {
61
61
  "build": "aui-build",
62
62
  "test": "vitest run",
63
+ "typecheck": "tsc --noEmit",
63
64
  "test:watch": "vitest"
64
65
  }
65
66
  }