@champions-digital-game/mod-sdk 0.51.0 → 0.52.0

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/mc-pack.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{src_exports}from"./chunks/chunk-6F73M3HY.js";import{formatImportReport,importMarvelCdbPack}from"./chunks/chunk-JR3ALXBR.js";import{PackBuildError,assemblePack,buildPack,loadPackSource}from"./chunks/chunk-GK7LCLI7.js";import{publishIssues,readPackInput,splitIssues,validatePack}from"./chunks/chunk-TUJLFNR7.js";import{SMOKE_BASE_DECK,SMOKE_SCENARIOS,smokeTestPack}from"./chunks/chunk-Y6B5ZZGK.js";import"./chunks/chunk-S3DCO2A6.js";import"./chunks/chunk-EKR67REN.js";import{existsSync}from"node:fs";import{join,resolve}from"node:path";import{createJiti}from"jiti";function sdkModuleNames(){let published="@champions-digital-game/mod-sdk";return published&&published!=="@mc/mod-sdk"?["@mc/mod-sdk",published]:["@mc/mod-sdk"]}function packModuleImporter(){let virtualModules=Object.fromEntries(sdkModuleNames().map(name=>[name,src_exports]));return path=>createJiti(path,{virtualModules,fsCache:!1,moduleCache:!1,interopDefault:!1}).import(path)}var EXIT_OK=0,EXIT_PACK_PROBLEM=1,EXIT_USAGE=2,consoleIo={out:line=>process.stdout.write(`${line}
2
+ import{src_exports}from"./chunks/chunk-STQU5RJP.js";import{formatImportReport,importMarvelCdbPack}from"./chunks/chunk-DH3FUEOQ.js";import{PackBuildError,assemblePack,buildPack,loadPackSource}from"./chunks/chunk-RRZU6F4D.js";import{publishIssues,readPackInput,splitIssues,validatePack}from"./chunks/chunk-3ZP7JFBM.js";import{SMOKE_BASE_DECK,SMOKE_SCENARIOS,smokeTestPack}from"./chunks/chunk-XDNO5DKC.js";import"./chunks/chunk-KWTX5B5J.js";import"./chunks/chunk-GIPUMXZ5.js";import{existsSync}from"node:fs";import{join,resolve}from"node:path";import{createJiti}from"jiti";function sdkModuleNames(){let published="@champions-digital-game/mod-sdk";return published&&published!=="@mc/mod-sdk"?["@mc/mod-sdk",published]:["@mc/mod-sdk"]}function packModuleImporter(){let virtualModules=Object.fromEntries(sdkModuleNames().map(name=>[name,src_exports]));return path=>createJiti(path,{virtualModules,fsCache:!1,moduleCache:!1,interopDefault:!1}).import(path)}var EXIT_OK=0,EXIT_PACK_PROBLEM=1,EXIT_USAGE=2,consoleIo={out:line=>process.stdout.write(`${line}
3
3
  `),err:line=>process.stderr.write(`${line}
4
4
  `)},USAGE=`mc-pack: build, check and test Marvel Champions Digital content packs
5
5
 
@@ -23,4 +23,4 @@ validate, build and test run the pack's own code: they import its abilities/inde
23
23
  user's access to files, the network and the environment. Run them only on a pack you trust, or in a sandbox (a CI
24
24
  job with no secrets).
25
25
 
26
- Exit codes: 0 success, 1 the pack has a problem, 2 usage error.`,UsageError=class extends Error{},VALUE_FLAGS=new Set(["out","games","scenario","max-commands","id","app"]),BOOLEAN_FLAGS=new Set(["allow-unscripted","publish","help","version"]);function parseArgs(argv){let positional=[],flags=new Map;for(let i=0;i<argv.length;i++){let arg=argv[i];if(arg==="-h")flags.set("help",!0);else if(arg==="-v")flags.set("version",!0);else if(arg.startsWith("--")){let eq=arg.indexOf("="),name=eq<0?arg.slice(2):arg.slice(2,eq);if(BOOLEAN_FLAGS.has(name)){if(eq>=0)throw new UsageError(`--${name} takes no value`);flags.set(name,!0)}else if(VALUE_FLAGS.has(name)){let value2=eq>=0?arg.slice(eq+1):argv[++i];if(value2===void 0||value2==="")throw new UsageError(`--${name} needs a value`);flags.set(name,value2)}else throw new UsageError(`unknown option --${name}`)}else positional.push(arg)}return{positional,flags}}var value=(parsed,name)=>{let v=parsed.flags.get(name);return typeof v=="string"?v:void 0};function positiveInt(parsed,name){let raw=value(parsed,name);if(raw===void 0)return;let n=Number(raw);if(!Number.isInteger(n)||n<1)throw new UsageError(`--${name} must be a whole number of at least 1`);return n}function packDir(parsed,command){let[dir,...extra]=parsed.positional;if(dir===void 0)throw new UsageError(`${command} needs a folder`);if(extra.length>0)throw new UsageError(`${command} takes one folder, got ${parsed.positional.length}`);let full=resolve(dir);if(!existsSync(full))throw new UsageError(`${dir}: no such folder`);return full}function allowOnly(parsed,command,allowed){for(let name of parsed.flags.keys())if(!allowed.includes(name))throw new UsageError(`${command} does not take --${name}`)}var errorText=error=>error instanceof Error?error.message:String(error);async function loadBuilt(dir){let pack=assemblePack(await loadPackSource(dir,{importModule:packModuleImporter()}));return readPackInput(pack.manifest,pack.files)}function formatIssues(issues){let{defects,unscripted}=splitIssues(issues),lines=[];if(defects.length>0){lines.push(`${defects.length} problem${defects.length===1?"":"s"}:`);for(let issue of defects)lines.push(` ${issue.path}: ${issue.message}`)}if(unscripted.length>0){lines.push(`${unscripted.length} unscripted abilit${unscripted.length===1?"y":"ies"} (write them in abilities/):`);for(let issue of unscripted)lines.push(` ${issue.path}: ${issue.message}`)}return lines}async function validateCommand(parsed,io){allowOnly(parsed,"validate",["allow-unscripted","publish"]);let dir=packDir(parsed,"validate"),pack=await loadBuilt(dir),publish=parsed.flags.has("publish"),draft=existsSync(join(dir,"DRAFT"));publish&&draft&&io.out(`${pack.manifest.id}: a DRAFT, never published; the publish check is skipped`);let issues=[...validatePack(pack),...publish&&!draft?publishIssues(pack.manifest):[]],{defects,unscripted}=splitIssues(issues),name=`${pack.manifest.id}@${pack.manifest.version}`;if(issues.length===0)return io.out(`${name}: valid (${pack.cards.length} cards, ${Object.keys(pack.abilities).length} abilities)`),EXIT_OK;let lines=formatIssues(issues);if(defects.length===0&&parsed.flags.has("allow-unscripted")){io.out(`${name}: valid, ${unscripted.length} abilit${unscripted.length===1?"y":"ies"} to script`);for(let line of lines)io.out(line);return EXIT_OK}io.err(`${name}: invalid`);for(let line of lines)io.err(line);return EXIT_PACK_PROBLEM}async function buildCommand(parsed,io){allowOnly(parsed,"build",["out"]);let dir=packDir(parsed,"build"),out=value(parsed,"out");if(out===void 0)throw new UsageError("build needs --out <dir>");try{let result=await buildPack(dir,resolve(out),{importModule:packModuleImporter()}),{manifest}=result;return io.out(`${manifest.id}@${manifest.version}: built ${result.zipPath}`),io.out(` ${result.zipBytes} bytes, sha256 ${result.zipSha256}`),io.out(` ${manifest.files.length} files, ${manifest.totalBytes} bytes unzipped`),io.out(` requires app ${manifest.requires.app}; DSL features: ${manifest.requires.dslFeatures.join(", ")||"none"}`),EXIT_OK}catch(error){if(!(error instanceof PackBuildError))throw error;io.err("build failed: the pack is invalid");for(let line of formatIssues(error.issues))io.err(line);return EXIT_PACK_PROBLEM}}var describeGame=game=>{let where=game.deck===SMOKE_BASE_DECK?` at ${game.campaign?`${game.campaign}/${game.node} (${game.scenario})`:game.scenario}${game.modularSet?` with ${game.modularSet}`:""}${game.difficulty?`, ${game.difficulty}`:""}`:"",head=` ${game.deck}${where} seed ${game.seed}: `;if(!game.ok)return`${head}FAILED: ${game.error??"unknown error"}`;let played=game.packCardsPlayed.length>0?`; pack cards played or revealed: ${game.packCardsPlayed.join(", ")}`:"";return`${head}${game.outcome??"ended"} in round ${game.rounds} (${game.commands} commands)${played}`};async function testCommand(parsed,io){allowOnly(parsed,"test",["games","scenario","max-commands"]);let dir=packDir(parsed,"test"),scenario=value(parsed,"scenario")??"rhino";if(!SMOKE_SCENARIOS.includes(scenario))throw new UsageError(`--scenario must be one of ${SMOKE_SCENARIOS.join(", ")}`);let games=positiveInt(parsed,"games")??3,maxCommands=positiveInt(parsed,"max-commands"),pack=await loadBuilt(dir),issues=validatePack(pack);if(issues.length>0){io.err(`${pack.manifest.id}: not tested, the pack is invalid (run mc-pack validate)`);for(let line of formatIssues(issues))io.err(line);return EXIT_PACK_PROBLEM}io.out(`${pack.manifest.id}@${pack.manifest.version}: ${games} game(s) per deck, scenario and modular set (Core scenario: ${scenario})`);let result=smokeTestPack(pack,{games,scenario,...maxCommands!==void 0?{maxCommands}:{},onGame:game=>(game.ok?io.out:io.err)(describeGame(game))});for(let note of result.notes)io.out(`note: ${note}`);let failed=result.games.filter(g=>!g.ok).length;return failed>0?(io.err(`${failed} of ${result.games.length} game(s) failed`),EXIT_PACK_PROBLEM):(io.out(`all ${result.games.length} game(s) passed`),EXIT_OK)}async function importCommand(parsed,io){allowOnly(parsed,"import-marvelcdb",["out","id","app"]);let src=packDir(parsed,"import-marvelcdb"),out=value(parsed,"out"),packId=value(parsed,"id"),app=value(parsed,"app"),report=await importMarvelCdbPack(src,{...out!==void 0?{outDir:resolve(out)}:{},...packId!==void 0?{packId}:{},...app!==void 0?{app}:{}}),text=formatImportReport(report);if(!report.normalized||report.validationIssues.length>0)return io.err(text),EXIT_PACK_PROBLEM;if(io.out(text),report.unscriptedIssues.length>0){io.out(`${report.unscriptedIssues.length} abilities to script, listed in abilities/index.ts:`);for(let issue of report.unscriptedIssues)io.out(` ${issue.path}: ${issue.message}`)}return io.out(report.outDir?`written to ${report.outDir}`:"dry run: nothing written (pass --out <dir>)"),EXIT_OK}var COMMANDS={validate:validateCommand,build:buildCommand,test:testCommand,"import-marvelcdb":importCommand};async function runCli(argv,io=consoleIo){let[command,...rest]=argv;try{if(command===void 0||command==="--help"||command==="-h"||command==="help")return io.out(USAGE),command===void 0?EXIT_USAGE:EXIT_OK;if(command==="--version"||command==="-v")return io.out("0.51.0"),EXIT_OK;let run=COMMANDS[command];if(!run)throw new UsageError(`unknown command "${command}"`);let parsed=parseArgs(rest);return parsed.flags.has("help")?(io.out(USAGE),EXIT_OK):await run(parsed,io)}catch(error){return error instanceof UsageError?(io.err(`mc-pack: ${error.message}`),io.err("run mc-pack --help for usage"),EXIT_USAGE):(io.err(`mc-pack ${command}: ${errorText(error)}`),EXIT_PACK_PROBLEM)}}process.exitCode=await runCli(process.argv.slice(2));
26
+ Exit codes: 0 success, 1 the pack has a problem, 2 usage error.`,UsageError=class extends Error{},VALUE_FLAGS=new Set(["out","games","scenario","max-commands","id","app"]),BOOLEAN_FLAGS=new Set(["allow-unscripted","publish","help","version"]);function parseArgs(argv){let positional=[],flags=new Map;for(let i=0;i<argv.length;i++){let arg=argv[i];if(arg==="-h")flags.set("help",!0);else if(arg==="-v")flags.set("version",!0);else if(arg.startsWith("--")){let eq=arg.indexOf("="),name=eq<0?arg.slice(2):arg.slice(2,eq);if(BOOLEAN_FLAGS.has(name)){if(eq>=0)throw new UsageError(`--${name} takes no value`);flags.set(name,!0)}else if(VALUE_FLAGS.has(name)){let value2=eq>=0?arg.slice(eq+1):argv[++i];if(value2===void 0||value2==="")throw new UsageError(`--${name} needs a value`);flags.set(name,value2)}else throw new UsageError(`unknown option --${name}`)}else positional.push(arg)}return{positional,flags}}var value=(parsed,name)=>{let v=parsed.flags.get(name);return typeof v=="string"?v:void 0};function positiveInt(parsed,name){let raw=value(parsed,name);if(raw===void 0)return;let n=Number(raw);if(!Number.isInteger(n)||n<1)throw new UsageError(`--${name} must be a whole number of at least 1`);return n}function packDir(parsed,command){let[dir,...extra]=parsed.positional;if(dir===void 0)throw new UsageError(`${command} needs a folder`);if(extra.length>0)throw new UsageError(`${command} takes one folder, got ${parsed.positional.length}`);let full=resolve(dir);if(!existsSync(full))throw new UsageError(`${dir}: no such folder`);return full}function allowOnly(parsed,command,allowed){for(let name of parsed.flags.keys())if(!allowed.includes(name))throw new UsageError(`${command} does not take --${name}`)}var errorText=error=>error instanceof Error?error.message:String(error);async function loadBuilt(dir){let pack=assemblePack(await loadPackSource(dir,{importModule:packModuleImporter()}));return readPackInput(pack.manifest,pack.files)}function formatIssues(issues){let{defects,unscripted}=splitIssues(issues),lines=[];if(defects.length>0){lines.push(`${defects.length} problem${defects.length===1?"":"s"}:`);for(let issue of defects)lines.push(` ${issue.path}: ${issue.message}`)}if(unscripted.length>0){lines.push(`${unscripted.length} unscripted abilit${unscripted.length===1?"y":"ies"} (write them in abilities/):`);for(let issue of unscripted)lines.push(` ${issue.path}: ${issue.message}`)}return lines}async function validateCommand(parsed,io){allowOnly(parsed,"validate",["allow-unscripted","publish"]);let dir=packDir(parsed,"validate"),pack=await loadBuilt(dir),publish=parsed.flags.has("publish"),draft=existsSync(join(dir,"DRAFT"));publish&&draft&&io.out(`${pack.manifest.id}: a DRAFT, never published; the publish check is skipped`);let issues=[...validatePack(pack),...publish&&!draft?publishIssues(pack.manifest):[]],{defects,unscripted}=splitIssues(issues),name=`${pack.manifest.id}@${pack.manifest.version}`;if(issues.length===0)return io.out(`${name}: valid (${pack.cards.length} cards, ${Object.keys(pack.abilities).length} abilities)`),EXIT_OK;let lines=formatIssues(issues);if(defects.length===0&&parsed.flags.has("allow-unscripted")){io.out(`${name}: valid, ${unscripted.length} abilit${unscripted.length===1?"y":"ies"} to script`);for(let line of lines)io.out(line);return EXIT_OK}io.err(`${name}: invalid`);for(let line of lines)io.err(line);return EXIT_PACK_PROBLEM}async function buildCommand(parsed,io){allowOnly(parsed,"build",["out"]);let dir=packDir(parsed,"build"),out=value(parsed,"out");if(out===void 0)throw new UsageError("build needs --out <dir>");try{let result=await buildPack(dir,resolve(out),{importModule:packModuleImporter()}),{manifest}=result;return io.out(`${manifest.id}@${manifest.version}: built ${result.zipPath}`),io.out(` ${result.zipBytes} bytes, sha256 ${result.zipSha256}`),io.out(` ${manifest.files.length} files, ${manifest.totalBytes} bytes unzipped`),io.out(` requires app ${manifest.requires.app}; DSL features: ${manifest.requires.dslFeatures.join(", ")||"none"}`),EXIT_OK}catch(error){if(!(error instanceof PackBuildError))throw error;io.err("build failed: the pack is invalid");for(let line of formatIssues(error.issues))io.err(line);return EXIT_PACK_PROBLEM}}var describeGame=game=>{let where=game.deck===SMOKE_BASE_DECK?` at ${game.campaign?`${game.campaign}/${game.node} (${game.scenario})`:game.scenario}${game.modularSet?` with ${game.modularSet}`:""}${game.difficulty?`, ${game.difficulty}`:""}`:"",head=` ${game.deck}${where} seed ${game.seed}: `;if(!game.ok)return`${head}FAILED: ${game.error??"unknown error"}`;let played=game.packCardsPlayed.length>0?`; pack cards played or revealed: ${game.packCardsPlayed.join(", ")}`:"";return`${head}${game.outcome??"ended"} in round ${game.rounds} (${game.commands} commands)${played}`};async function testCommand(parsed,io){allowOnly(parsed,"test",["games","scenario","max-commands"]);let dir=packDir(parsed,"test"),scenario=value(parsed,"scenario")??"rhino";if(!SMOKE_SCENARIOS.includes(scenario))throw new UsageError(`--scenario must be one of ${SMOKE_SCENARIOS.join(", ")}`);let games=positiveInt(parsed,"games")??3,maxCommands=positiveInt(parsed,"max-commands"),pack=await loadBuilt(dir),issues=validatePack(pack);if(issues.length>0){io.err(`${pack.manifest.id}: not tested, the pack is invalid (run mc-pack validate)`);for(let line of formatIssues(issues))io.err(line);return EXIT_PACK_PROBLEM}io.out(`${pack.manifest.id}@${pack.manifest.version}: ${games} game(s) per deck, scenario and modular set (Core scenario: ${scenario})`);let result=smokeTestPack(pack,{games,scenario,...maxCommands!==void 0?{maxCommands}:{},onGame:game=>(game.ok?io.out:io.err)(describeGame(game))});for(let note of result.notes)io.out(`note: ${note}`);let failed=result.games.filter(g=>!g.ok).length;return failed>0?(io.err(`${failed} of ${result.games.length} game(s) failed`),EXIT_PACK_PROBLEM):(io.out(`all ${result.games.length} game(s) passed`),EXIT_OK)}async function importCommand(parsed,io){allowOnly(parsed,"import-marvelcdb",["out","id","app"]);let src=packDir(parsed,"import-marvelcdb"),out=value(parsed,"out"),packId=value(parsed,"id"),app=value(parsed,"app"),report=await importMarvelCdbPack(src,{...out!==void 0?{outDir:resolve(out)}:{},...packId!==void 0?{packId}:{},...app!==void 0?{app}:{}}),text=formatImportReport(report);if(!report.normalized||report.validationIssues.length>0)return io.err(text),EXIT_PACK_PROBLEM;if(io.out(text),report.unscriptedIssues.length>0){io.out(`${report.unscriptedIssues.length} abilities to script, listed in abilities/index.ts:`);for(let issue of report.unscriptedIssues)io.out(` ${issue.path}: ${issue.message}`)}return io.out(report.outDir?`written to ${report.outDir}`:"dry run: nothing written (pass --out <dir>)"),EXIT_OK}var COMMANDS={validate:validateCommand,build:buildCommand,test:testCommand,"import-marvelcdb":importCommand};async function runCli(argv,io=consoleIo){let[command,...rest]=argv;try{if(command===void 0||command==="--help"||command==="-h"||command==="help")return io.out(USAGE),command===void 0?EXIT_USAGE:EXIT_OK;if(command==="--version"||command==="-v")return io.out("0.52.0"),EXIT_OK;let run=COMMANDS[command];if(!run)throw new UsageError(`unknown command "${command}"`);let parsed=parseArgs(rest);return parsed.flags.has("help")?(io.out(USAGE),EXIT_OK):await run(parsed,io)}catch(error){return error instanceof UsageError?(io.err(`mc-pack: ${error.message}`),io.err("run mc-pack --help for usage"),EXIT_USAGE):(io.err(`mc-pack ${command}: ${errorText(error)}`),EXIT_PACK_PROBLEM)}}process.exitCode=await runCli(process.argv.slice(2));
package/dist/testing.js CHANGED
@@ -1 +1 @@
1
- import{SMOKE_BASE_DECK,SMOKE_SCENARIOS,playToOutcome,smokeTestPack}from"./chunks/chunk-Y6B5ZZGK.js";import"./chunks/chunk-S3DCO2A6.js";import"./chunks/chunk-EKR67REN.js";export{SMOKE_BASE_DECK,SMOKE_SCENARIOS,playToOutcome,smokeTestPack};
1
+ import{SMOKE_BASE_DECK,SMOKE_SCENARIOS,playToOutcome,smokeTestPack}from"./chunks/chunk-XDNO5DKC.js";import"./chunks/chunk-KWTX5B5J.js";import"./chunks/chunk-GIPUMXZ5.js";export{SMOKE_BASE_DECK,SMOKE_SCENARIOS,playToOutcome,smokeTestPack};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@champions-digital-game/mod-sdk",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
4
4
  "description": "The mod SDK for Marvel Champions Digital content packs: the pack schema, the ability DSL, and the mc-pack validate, build, test and import-marvelcdb tools.",
5
5
  "keywords": [
6
6
  "card-game",
@@ -2877,6 +2877,21 @@ export declare const on: {
2877
2877
  readonly how?: TuckedDiscardCause | readonly TuckedDiscardCause[];
2878
2878
  readonly yours?: boolean;
2879
2879
  }) => EventPattern;
2880
+ /**
2881
+ * "After a card is discarded [from a hand] by an ability" (issue #922; the Hulk house rule pack's "Don't Make Me
2882
+ * Angry!"), on a card in play: each card a card's ability discards from a hand, by its effect or its cost, "that card"
2883
+ * being `eventTarget` in its discard pile and the hand's player `eventPlayer`. Not the cards spent to pay, the discard
2884
+ * down to hand size or a mulligan. `card` narrows the discarded card; `by` the side of the discarding card, `how`
2885
+ * its effect or its cost; `yours`: only from this card's controller's hand. A response only: the cards one effect or
2886
+ * cost discarded share one window, which resolves before that ability goes on. Merge it with the deck and play
2887
+ * patterns in one `on: [...]` list to give one ability one limit for every place a card is discarded from.
2888
+ */
2889
+ readonly cardDiscardedFromHand: (opts?: {
2890
+ readonly card?: TargetQuery;
2891
+ readonly by?: LeaveCauseSide;
2892
+ readonly how?: "effect" | "cost";
2893
+ readonly yours?: boolean;
2894
+ }) => EventPattern;
2880
2895
  /**
2881
2896
  * "After this card enters your hand" (Infiltration, Shapeshifter Surprise, `mut_gen` 32082-32083;
2882
2897
  * docs/phase7-wave6.md §3.10): however it enters a hand (drawn, searched for, returned, moved there). Pair with
@@ -3822,6 +3837,21 @@ export declare const when: {
3822
3837
  readonly how?: TuckedDiscardCause | readonly TuckedDiscardCause[];
3823
3838
  readonly yours?: boolean;
3824
3839
  }) => EventPattern;
3840
+ /**
3841
+ * "After a card is discarded [from a hand] by an ability" (issue #922; the Hulk house rule pack's "Don't Make Me
3842
+ * Angry!"), on a card in play: each card a card's ability discards from a hand, by its effect or its cost, "that card"
3843
+ * being `eventTarget` in its discard pile and the hand's player `eventPlayer`. Not the cards spent to pay, the discard
3844
+ * down to hand size or a mulligan. `card` narrows the discarded card; `by` the side of the discarding card, `how`
3845
+ * its effect or its cost; `yours`: only from this card's controller's hand. A response only: the cards one effect or
3846
+ * cost discarded share one window, which resolves before that ability goes on. Merge it with the deck and play
3847
+ * patterns in one `on: [...]` list to give one ability one limit for every place a card is discarded from.
3848
+ */
3849
+ readonly cardDiscardedFromHand: (opts?: {
3850
+ readonly card?: TargetQuery;
3851
+ readonly by?: LeaveCauseSide;
3852
+ readonly how?: "effect" | "cost";
3853
+ readonly yours?: boolean;
3854
+ }) => EventPattern;
3825
3855
  /**
3826
3856
  * "After this card enters your hand" (Infiltration, Shapeshifter Surprise, `mut_gen` 32082-32083;
3827
3857
  * docs/phase7-wave6.md §3.10): however it enters a hand (drawn, searched for, returned, moved there). Pair with
@@ -4767,6 +4797,21 @@ export declare const after: {
4767
4797
  readonly how?: TuckedDiscardCause | readonly TuckedDiscardCause[];
4768
4798
  readonly yours?: boolean;
4769
4799
  }) => EventPattern;
4800
+ /**
4801
+ * "After a card is discarded [from a hand] by an ability" (issue #922; the Hulk house rule pack's "Don't Make Me
4802
+ * Angry!"), on a card in play: each card a card's ability discards from a hand, by its effect or its cost, "that card"
4803
+ * being `eventTarget` in its discard pile and the hand's player `eventPlayer`. Not the cards spent to pay, the discard
4804
+ * down to hand size or a mulligan. `card` narrows the discarded card; `by` the side of the discarding card, `how`
4805
+ * its effect or its cost; `yours`: only from this card's controller's hand. A response only: the cards one effect or
4806
+ * cost discarded share one window, which resolves before that ability goes on. Merge it with the deck and play
4807
+ * patterns in one `on: [...]` list to give one ability one limit for every place a card is discarded from.
4808
+ */
4809
+ readonly cardDiscardedFromHand: (opts?: {
4810
+ readonly card?: TargetQuery;
4811
+ readonly by?: LeaveCauseSide;
4812
+ readonly how?: "effect" | "cost";
4813
+ readonly yours?: boolean;
4814
+ }) => EventPattern;
4770
4815
  /**
4771
4816
  * "After this card enters your hand" (Infiltration, Shapeshifter Surprise, `mut_gen` 32082-32083;
4772
4817
  * docs/phase7-wave6.md §3.10): however it enters a hand (drawn, searched for, returned, moved there). Pair with
@@ -354,7 +354,21 @@ export declare const chooseTarget: (slot: string, q: TargetQuery, opts?: {
354
354
  readonly upTo?: boolean;
355
355
  readonly optional?: boolean;
356
356
  readonly count?: Amount;
357
+ /**
358
+ * The question the client asks, for a pick whose role the plain "Choose a target" doesn't say ("FROM" / "TO"): a
359
+ * client message key (`choicePrompt.*`, translated), or plain text.
360
+ */
361
+ readonly prompt?: string;
357
362
  }) => EffectSpec;
363
+ /**
364
+ * "Choose a player" whose effects act on the minions (or, with `kind: "enemy"`, the enemies) engaged with that player:
365
+ * Explosive Arrow, Multi-Gun, Spray Fire and the like (issue #911, Quin 2026-11-20). Only players with one engaged are
366
+ * offered, and one such player is chosen without asking (`choosePlayer`'s `among`). With none engaged anywhere no
367
+ * player is chosen, so the effects on that player's minions find nothing while the rest of the ability (the villain's
368
+ * damage) resolves. Engine reading (authority step 5), the owner's decision: naming a player with no engaged minion
369
+ * changes nothing the card does.
370
+ */
371
+ export declare const choosePlayerWithEngaged: (slot?: string, kind?: "minion" | "enemy") => EffectSpec;
358
372
  export declare const bindTargets: (slot: string, target: TargetRef) => EffectSpec;
359
373
  /**
360
374
  * "Rhino attacks you" / "Green Goblin attacks with +X ATK" (Death from Above).
@@ -3,7 +3,7 @@ export declare const CONTENT_VERSION = "0.0.0";
3
3
  * Schema version for the card data shape itself (independent of how many
4
4
  * cards/cycles have been ingested). Bump when a breaking shape change lands.
5
5
  */
6
- export declare const SCHEMA_VERSION = "0.51.0";
6
+ export declare const SCHEMA_VERSION = "0.52.0";
7
7
  export * from "./schema/index.js";
8
8
  export * from "./data/index.js";
9
9
  export * from "./import/index.js";
@@ -186,6 +186,8 @@ export type ChoicePrompt = {
186
186
  readonly kind: "chooseTarget";
187
187
  readonly slot: string;
188
188
  readonly abilityId: AbilityId | null;
189
+ /** The card's own question for this pick (`EffectSpec chooseTarget.prompt`, issue #911); absent: "Choose a target". */
190
+ readonly title?: string;
189
191
  } | {
190
192
  readonly kind: "chooseAttachmentTarget";
191
193
  readonly instanceId: InstanceId;
@@ -340,6 +340,10 @@ export declare function takeTopOfDeck(ctx: Ctx, playerId: PlayerId): InstanceId
340
340
  export interface DeckDiscarder {
341
341
  readonly sourceInstanceId: InstanceId | null;
342
342
  readonly boundOn?: DeckDiscard["boundOn"];
343
+ /** Whether that card's ability discarded it as its effect or as its cost (`cardDiscardedFromDeck.how`). */
344
+ readonly how?: "effect" | "cost";
345
+ /** The effects frame making the discard, for a card of a hand it moves (`HandDiscard.madeBy`). */
346
+ readonly madeBy?: FrameId | undefined;
343
347
  }
344
348
  /**
345
349
  * Whether any ability in the registry triggers on `tuckedCardDiscarded` (docs/phase7-wave9.md §3.40 (b)); cached per
@@ -398,6 +402,32 @@ export declare function listensForDeckDiscard(deps: EngineDeps): boolean;
398
402
  * is recorded only in a game with an ability that hears one (`listensForDeckDiscard`).
399
403
  */
400
404
  export declare function recordDeckDiscard(ctx: Ctx, playerId: PlayerId, id: InstanceId, by: DeckDiscarder): void;
405
+ /**
406
+ * Whether any ability in the registry triggers on `cardDiscardedFromHand` (issue #922); cached per registry. Cards are
407
+ * discarded from hands in most games, so nothing is recorded or announced for a registry with no such ability: its
408
+ * games keep their state and their log.
409
+ */
410
+ export declare function listensForHandDiscard(deps: EngineDeps): boolean;
411
+ /**
412
+ * What discarded a card from a hand (`TriggerEvent cardDiscardedFromHand`, issue #922): the card whose ability did, and
413
+ * whether as its effect or its cost. `sourceCardId` when the caller already has it; otherwise it is read from
414
+ * `sourceInstanceId`.
415
+ */
416
+ export interface HandDiscarder {
417
+ readonly sourceInstanceId: InstanceId | null;
418
+ readonly sourceCardId?: CardId | undefined;
419
+ readonly how: "effect" | "cost";
420
+ /** The effects frame making the discard (`HandDiscard.madeBy`); absent for a cost. */
421
+ readonly madeBy?: FrameId | undefined;
422
+ }
423
+ /**
424
+ * The one place a card's discard from a hand by an ability is recorded for its `cardDiscardedFromHand` announcement
425
+ * (issue #922; `GameState.pendingHandDiscards`, announced between frames by `announceHandDiscards`). Called right after
426
+ * the move by `discardFromHand` when its caller names the discarding ability, and by `moveCardsTo` for a card it moved
427
+ * from a hand to a discard pile. A card that did not reach a discard pile was not discarded, and nothing is recorded;
428
+ * nor is anything in a game with no ability that hears one (`listensForHandDiscard`).
429
+ */
430
+ export declare function recordHandDiscard(ctx: Ctx, playerId: PlayerId, id: InstanceId, cause: HandDiscarder): void;
401
431
  /**
402
432
  * Whether any ability in the registry triggers on a card discarded from the top of an encounter deck
403
433
  * (docs/phase7-wave9.md §3.43 (b)); cached per registry. Encounter cards are discarded from the deck in most games, so
@@ -480,13 +510,20 @@ export declare function releaseRefillEncounterCards(ctx: Ctx, refill: string): v
480
510
  * Control" (p. 31), "That card is discarded from a player's hand, it is placed in its owner's discard pile". The log's
481
511
  * `cardDiscardedFromHand` names the player whose hand it left either way.
482
512
  */
483
- export declare function discardFromHand(ctx: Ctx, playerId: PlayerId, id: InstanceId): void;
513
+ export declare function discardFromHand(ctx: Ctx, playerId: PlayerId, id: InstanceId,
514
+ /**
515
+ * The ability whose effect or cost discards the card, which makes the discard one `cardDiscardedFromHand` hears
516
+ * (issue #922). Absent for the game's own discards and for spent resources, which are not heard.
517
+ */
518
+ by?: HandDiscarder): void;
484
519
  /**
485
520
  * "Discard N cards at random from your hand", one card at a time with the game's seeded RNG, so a replay discards the
486
521
  * same cards. Stops early when no eligible card is left; a hand of one still discards it (ruling, Feb 28, 2026 (4)).
487
522
  * `exclude` keeps cards out of the pick (the card whose cost this is). Returns the discarded cards in order.
488
523
  */
489
- export declare function discardRandomFromHand(ctx: Ctx, playerId: PlayerId, amount: number, exclude?: readonly InstanceId[]): readonly InstanceId[];
524
+ export declare function discardRandomFromHand(ctx: Ctx, playerId: PlayerId, amount: number, exclude?: readonly InstanceId[],
525
+ /** The discarding ability (`discardFromHand`'s `by`). */
526
+ by?: HandDiscarder): readonly InstanceId[];
490
527
  /**
491
528
  * Sends a card in play to the discard pile its `home` names (its owner's, or its encounter deck's). `sourceCardId`: the
492
529
  * card whose ability discards it, if any (`permanentStopsLeaving`); `asCost`: as that ability's cost (`leaveCauseSide`).
@@ -1,4 +1,4 @@
1
- export declare const ENGINE_VERSION = "0.51.0";
1
+ export declare const ENGINE_VERSION = "0.52.0";
2
2
  export type { PlayerId, InstanceId, ChoiceId, EncounterDeckId, FrameId, GroupId, TeamId } from "./ids.js";
3
3
  export { playerId, instanceId, choiceId, encounterDeckId, frameId, groupId, teamId } from "./ids.js";
4
4
  export type { GroupRef, PodNeutralArea, PodNeutralSetup, PodSetup, PodState, SharedEvent, SharedPodState, SharedResult, SharedThreatCause, } from "./pod.js";
@@ -504,6 +504,13 @@ export declare function deckDiscardStillThere(state: GameState, discard: {
504
504
  readonly at: "discard" | "deck";
505
505
  readonly encounterDeckId?: EncounterDeckId;
506
506
  }): boolean;
507
+ /**
508
+ * Whether a card discarded from a hand is still in a discard pile (`TriggerEvent cardDiscardedFromHand`, issue #922): a
509
+ * response that took it away leaves nothing for another response to act on.
510
+ */
511
+ export declare function handDiscardStillThere(state: GameState, discard: {
512
+ readonly instanceId: InstanceId;
513
+ }): boolean;
507
514
  /** Where a card currently is. Linear scan; the number of cards in a game is small. */
508
515
  export declare function locateCard(state: GameState, id: InstanceId): ZoneId | null;
509
516
  /** The in-play scenario area a card is in: its own, or the one the card it is attached to is in. Null outside one. */
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Announcing cards discarded from a hand by a card's ability (`TriggerEvent cardDiscardedFromHand`, issue #922): the
3
+ * hand's counterpart of `announceDeckDiscards` and `announceTuckedDiscards`.
4
+ */
5
+ import type { Ctx } from "../ctx.js";
6
+ /**
7
+ * Announces each card discarded from a hand by an ability since the last look (recorded by `recordHandDiscard`), when
8
+ * an ability hears it, and empties the list; the first discarded resolves first. Those recorded since the last look
9
+ * were discarded by one effect or one cost payment, so they share one response window (RRG 1.8 "Discard", p. 16:
10
+ * "Responses to the discarding of any of those cards are resolved after all discards are made"; "Triggering
11
+ * Condition", p. 45). The flow looks here between frames, so the window resolves before the discarding ability's next
12
+ * effect, or, for a cost, before the ability's effects. A card no longer in a discard pile is not announced. Returns
13
+ * true when it pushed a frame.
14
+ *
15
+ * A card whose discarding effect is still making its discards stays recorded for a later look (`discardStillMaking`):
16
+ * "each player discards" asks one player at a time, and a card some ability may replace waits in its own "would be
17
+ * discarded" window, but the discards are one simultaneous set whose responses come after all of them (RRG 1.8
18
+ * "Discard", p. 16).
19
+ */
20
+ export declare function announceHandDiscards(ctx: Ctx): boolean;
@@ -6580,6 +6580,13 @@ export type EffectSpec =
6580
6580
  readonly count?: number | ValueSpec;
6581
6581
  readonly upTo?: true;
6582
6582
  readonly optional?: boolean;
6583
+ /**
6584
+ * What the client asks in place of "Choose a target" when the printed text picks two cards for different roles
6585
+ * ("Move a counter FROM which support?" then "... TO which support?", Maria Hill's Reassignment 50001a; issue
6586
+ * #911). Display only: the engine passes it to the pending choice as `title` and never reads it. A message key of the client's
6587
+ * catalog (`choicePrompt.*`) is shown translated; any other text is shown as it is.
6588
+ */
6589
+ readonly prompt?: string;
6583
6590
  } | {
6584
6591
  readonly kind: "if";
6585
6592
  readonly condition: Predicate;
@@ -532,6 +532,15 @@ export interface ScenarioDeckState {
532
532
  export type TuckedDiscard = Omit<Extract<TriggerEvent, {
533
533
  kind: "tuckedCardDiscarded";
534
534
  }>, "kind">;
535
+ /**
536
+ * A card discarded from a hand by an ability, waiting to be announced: the fields of `cardDiscardedFromHand`, and the
537
+ * effects frame that made it (`madeBy`), whose other discards it waits for (issue #922). Absent for a cost.
538
+ */
539
+ export type HandDiscard = Omit<Extract<TriggerEvent, {
540
+ kind: "cardDiscardedFromHand";
541
+ }>, "kind"> & {
542
+ readonly madeBy?: FrameId;
543
+ };
535
544
  /** A facedown encounter card dealt to a player, waiting to be announced (`TriggerEvent encounterCardDealt`). */
536
545
  export interface DealtEncounterCard {
537
546
  readonly playerId: PlayerId;
@@ -1301,6 +1310,13 @@ export interface GameState {
1301
1310
  * shared response window, and empties the list. Absent until one is first recorded. docs/phase7-wave9.md §3.40.
1302
1311
  */
1303
1312
  readonly pendingTuckedDiscards?: readonly TuckedDiscard[];
1313
+ /**
1314
+ * Cards discarded from a hand by a card's ability since the flow last looked, oldest first, recorded by
1315
+ * `recordHandDiscard` only when some ability in the registry triggers on it: the flow announces them as
1316
+ * `cardDiscardedFromHand` between frames, in one shared response window, and empties the list. Absent until one is
1317
+ * first recorded. Issue #922.
1318
+ */
1319
+ readonly pendingHandDiscards?: readonly HandDiscard[];
1304
1320
  /**
1305
1321
  * Facedown boost cards given since the flow last looked, oldest first, recorded by `recordBoostGiven` only when some
1306
1322
  * ability in the registry triggers on it: the flow announces each as `boostCardGiven` between frames, with a
@@ -1624,6 +1624,39 @@ export type TriggerEventBody = {
1624
1624
  readonly by?: LeaveCauseSide;
1625
1625
  readonly how?: "effect" | "cost";
1626
1626
  }
1627
+ /**
1628
+ * A card was discarded from a player's hand by a card's ability (issue #922): "Response: After an identity-specific
1629
+ * card is discarded by an ability, tuck that card under here from your discard pile" (the Hulk house rule pack
1630
+ * `hulk-angry-bf`). The hand's counterpart of `cardDiscardedFromDeck`, and the "after" of `cardBeingDiscarded`'s
1631
+ * "when … would". `instanceId` is the card ("that card", `eventTarget`), now in a discard pile; `playerId` the player
1632
+ * whose hand held it (`eventPlayer`), `sourceInstanceId` the card whose ability discarded it (`eventSource`).
1633
+ *
1634
+ * The cause is two fields, as on `tuckedCardDiscarded`: `by` is the side of the discarding card (`LeaveCauseSide`,
1635
+ * `leaveCauseSide`, read from the source card), **whether as its ability's effect or as its cost**, and `how` says
1636
+ * which. `to` is always `"discard"`, so one `eventIs: { to: "discard", by }` reads this event, `cardBeingDiscarded`
1637
+ * and `cardLeavesPlay` alike.
1638
+ *
1639
+ * Which discards: an `EffectSpec discardFromHand` (chosen or random, the "would" window's discard included), a
1640
+ * `moveCards` to the discard pile of a card in a hand, a cost that discards cards from a hand (chosen or random) and
1641
+ * the "discard this card from your hand to play …" additional cost, each card its own event. **Not** heard: the cards
1642
+ * spent to pay a cost (RRG 1.8 "Resource", p. 37: spent, not discarded by an ability), the discard down to hand size
1643
+ * and a mulligan (the game's own steps), and a manual adjustment.
1644
+ *
1645
+ * Response only: announced after the card has reached its discard pile, between frames (`announceHandDiscards`), so
1646
+ * the cards one effect or one cost discarded share one response window (RRG 1.8 "Discard", p. 16: "Responses to the
1647
+ * discarding of any of those cards are resolved after all discards are made"; "Triggering Condition", p. 45). A
1648
+ * response that takes the card out of the discard pile leaves nothing for another to act on (`handDiscardStillThere`).
1649
+ * Recorded (`recordHandDiscard`) only when an ability in the registry listens.
1650
+ */
1651
+ | {
1652
+ readonly kind: "cardDiscardedFromHand";
1653
+ readonly instanceId: InstanceId;
1654
+ readonly playerId: PlayerId;
1655
+ readonly to: "discard";
1656
+ readonly sourceInstanceId: InstanceId | null;
1657
+ readonly by?: LeaveCauseSide;
1658
+ readonly how: "effect" | "cost";
1659
+ }
1627
1660
  /**
1628
1661
  * A card leaves play (docs/phase7-wave5.md §3.13): "Interrupt: When Spider-Man leaves play, …" (`sm` 27017,
1629
1662
  * Ghost-Spider 27048) and "Response: After a [Web-Warrior] ally leaves play, …" (Web of Life and Destiny 27023, Warrior
@@ -2325,12 +2358,18 @@ export type LeaveCauseSide = "encounterCard" | "playerCard";
2325
2358
  * through `moveCardsTo`. `boundOn`: the set the discarding ability keeps of the cards "discarded this way"
2326
2359
  * (`DeckDiscard.boundOn`); a card whose discard is replaced leaves it.
2327
2360
  */
2328
- export type OutOfPlayDiscard = {
2361
+ export type OutOfPlayDiscard = ({
2329
2362
  readonly kind: "hand";
2330
2363
  readonly random?: true;
2331
2364
  } | {
2332
2365
  readonly kind: "moveCards";
2333
2366
  readonly boundOn?: DeckDiscard["boundOn"];
2367
+ }) & {
2368
+ /**
2369
+ * The effects frame making this discard, so a response to a card it discards from a hand waits for the effect's
2370
+ * other discards (`cardDiscardedFromHand`, issue #922). Set only when an ability hears that event.
2371
+ */
2372
+ readonly madeBy?: FrameId;
2334
2373
  };
2335
2374
  /**
2336
2375
  * What a tucked card's host is (`TriggerEvent cardBeingTucked.under`, `tuckedCardDiscarded.under`): an identity card
@@ -1 +0,0 @@
1
- import{PACK_ABILITY_ID,REQUIRED_PACK_FILES,SUPPORTED_DSL_FEATURES,abilityRefsOf,campaignDefinitionsOf,checkPackCampaigns,definePackAbilities,dslFeatures,isPlainJson,isUnscriptedAbilityIssue,packCampaignsOf,publishIssues,readPackInput,sha256Hex,splitIssues,validatePack}from"./chunk-TUJLFNR7.js";import{campaignDepsWithPacks,campaignGameWithPacks,cardPoolWithPack,cardPoolWithPacks,customContentOfPacks,gameDepsWithPack,gameDepsWithPacks,packCampaignDefinitionOf,packCampaignDefinitions,packCampaignRecords,packEncounterSetRecords,packModularSetChoices,packScenarioRecords,scenarioWithPacks}from"./chunk-S3DCO2A6.js";import{ANY_ASPECT_CARD,ANY_NUMBER,ANY_RESOURCE,AOA_CAMPAIGN_DEFINITION,AOA_DEFEATED,AOA_MISSIONS,AOA_NOT_DEFEATED,AOA_OVERSEERS,AOA_PROTECT_THE_PROFESSOR,AOS_CAMPAIGN_DEFINITION,AS_DRONE,BUILTIN_PACKS,CAMPAIGNS,CAN_TAKE_THIS_ATTACK,COMMUNITY_DECK_AUTHORS,CORE_ABILITIES,CORE_BUILTIN_PACK,CORE_DEPS,CUSTOM_SCENARIO_FIELDS,ENCOUNTER_CARD,ENCOUNTER_CARD_CATEGORIES,ENCOUNTER_SIDE_SCHEME,ENGINE_ONLY_DSL_EXAMPLES,FRIENDLY_CHARACTER,GMW_BALANCED_FIELD,GMW_BALANCED_TOGGLES,GMW_CAMPAIGN_DEFINITION,INFINITES_GENE_POOL_THREAT_MAX,MOJO_CAMPAIGN_DEFINITION,MTS_CAMPAIGN_DEFINITION,NEXT_EVOL_CAMPAIGN_DEFINITION,NOT_READY_PACK_CODES,PAID_CARDS,PAID_IN_PLAY_CARDS,PLAYABLE_ABILITIES,PLAYABLE_DEPS,PLAYABLE_ENCOUNTER_SETS,PLAYABLE_SCENARIO_RECORDS,PLAYER_SIDE_SCHEME,RANDOM_VILLAIN,SHADOWLAND_CAMPAIGN_DEFINITION,SM_CAMPAIGN_DEFINITION,TEAM_UP_CARD,TRAIT,TRORS_CAMPAIGN_DEFINITION,UNSCRIPTED_ENCOUNTER_SET_IDS,VILLAIN_OR_VILLAINOUS,WAVE10_ABILITIES,WAVE10_BUILTIN_PACKS,WAVE10_CARDS,WAVE10_DEPS,WAVE10_GAME_ENCOUNTER_SETS,WAVE11_ABILITIES,WAVE11_BUILTIN_PACKS,WAVE11_CARDS,WAVE11_DEPS,WAVE11_GAME_ENCOUNTER_SETS,WAVE1_ABILITIES,WAVE1_BUILTIN_PACKS,WAVE1_DEPS,WAVE1_REPRINT_ABILITIES,WAVE2_ABILITIES,WAVE2_BUILTIN_PACKS,WAVE2_DEPS,WAVE2_REPRINT_ABILITIES,WAVE3_ABILITIES,WAVE3_BUILTIN_PACKS,WAVE3_CARDS,WAVE3_DEPS,WAVE3_REPRINT_ABILITIES,WAVE4_BUILTIN_PACKS,WAVE5_BUILTIN_PACKS,WAVE6_BUILTIN_PACKS,WAVE7_ABILITIES,WAVE7_BUILTIN_PACKS,WAVE7_CARDS,WAVE7_DEPS,WAVE8_ABILITIES,WAVE8_BUILTIN_PACKS,WAVE8_CARDS,WAVE8_DEPS,WAVE9_ABILITIES,WAVE9_BUILTIN_PACKS,WAVE9_CARDS,WAVE9_DEPS,YOUR_HERO,YOUR_IDENTITY,__export,aDifferentCard,aScheme,abilitiesForCards,accelerationTokensOn,accusationWrongGuesses,accuse,accusedWrong,actingCharacter,action,activatesBeforeVillain,activatingEnemy,activationIs,activationOrderOf,addAccelerationToken,addCounters,addMainSchemeStageToVictoryDisplay,addToVictoryDisplay,addVillain,additionalAttackCost,additionalCostToPlay,additionalCostToReady,additionalPowerCost,additionalThwartCost,adjustBoostCount,advanceMainScheme,advanceToSetAsideVillain,after,afterNextCardPlayed,agile,allOf,allowUnlabeledAttack,alterEgoAction,alterEgoInterrupt,alterEgoResponse,amount,anAttackableEnemy,anEnemy,andThen,anyIn,anyNumberOfToughStatusCards,anyOf,anyOfCards,anyPlayerEliminated,applyAsBoostCard,applyRuleUntil,areaPlayersDefeated,assignDamage,atEndOfActivation,atEndOfAttack,atEndOfPhase,atEndOfRound,atEndOfThwart,atMost,attachCard,attachCost,attachInstruction,attack,attackAnEnemy,attackDamageDealt,attackExcessAsDealt,attackInProgress,attackInitiatedAgainst,attackPreventedAmount,attackPreventedTotal,attackResolvedLabeled,attackTarget,attackTotalAtk,attackUsedAtk,attackWasPrevented,attackableAsMinion,attackedBy,attackedPlayer,attackedThisPhase,attackingEnemy,attacksDealAdditionalDamage,attacksGainKeywords,attacksLoseKeywords,baseStatOf,baseStatsFromYourHero,basicPowerBy,basicPowerCost,basicPowerIs,basicPowerStatIs,basicThwartOnlyAgainst,basicThwartsIgnore,bindTargets,blankTextBoxForPlayers,blankTextBoxUntil,blanksTextBox,boost,boostAreaIconsOn,boostCardOf,boostCardsFromSet,boostIconsCount,boostIconsOn,buildScenarioDeck,buildWave11Scenario,builtinPackProblems,campaignDefinitionOf,campaignDefinitionProblems,campaignInstructionsOf,campaignLogAtLeast,campaignLogCardCounter,campaignLogCardRecorded,campaignLogCards,campaignLogHas,campaignLogIsSet,campaignLogValue,campaignModularPickProblem,canAttachTo,canAttachToCategory,canChangeForm,canEnterPlay,canFlip,canPayResources,canPlayFromHand,canRemoveThreatFrom,canSpendDifferentResources,canTakeStatus,canUseBasicPower,cancelBoostedActivation,cancelConsequentialDamage,cancelIt,cancelRevealedCard,cancelWhenRevealed,cannotActivate,cannotAttach,cannotBeAttachedUnlessInPlay,cannotBeCanceled,cannotBeDefeated,cannotBeHealed,cannotBeReadiedByPlayerCards,cannotChangeFormUntil,cannotChooseOption,cannotChooseToDiscard,cannotEnterPlay,cannotFlip,cannotHaveStatus,cannotLeavePlay,cannotMakeBasicAttacks,cannotReadyUntil,cannotRecover,cannotResolveTriggeredAbilities,cannotThwart,cardIdsIn,cards,cardsFrom,cardsOfComposedSets,centralMainScheme,changeAdditionalForm,changeForm,changeFormCost,changeToHeroFormNamed,changeToHeroFormWithTrait,changeToOtherHeroForm,changeVillainForm,characterDidThisPhase,checkModularPickCount,checkPlayableDifficultySets,choiceFoundNothing,chooseCardCost,chooseCardType,chooseCards,chooseEncounterCardType,chooseGroup,chooseMainSchemeStages,chooseNumber,chooseOne,chooseOneBy,chooseOptions,choosePlayer,chooseTarget,chooseTargetCost,chosen,chosenGroup,chosenModularSetIds,chosenPlayer,chosenVillain,civilWarGameModes,civilWarModularSets,civilWarSidesOffer,communityDeckUrl,communityDecks,competitiveOnly,competitiveOnlyTexts,completeMainScheme,confuse,consideredToHaveHitPoints,consideredToHaveResourceIcon,constant,controllerOf2 as controllerOf,coreScenario,costIf,costModifier,costsPayableByAnyPlayer,countAmong,countBoostIcons,countOf,countTowardStartingHand,counterLimit,countersAsResource,countersOn,countsAs,coveredByEngineRule,createGameArea,createScenarioArea,createScenarioPlayArea,customContentProblems,customModularPickProblem,customModularSetChoices,customScenarioProblems,damageAnEnemy,damageCardsCost,damageOn,damageSharedVillain,damageThisCardCost,damagedAtLeast,dealAsEncounterCard,dealDamage,dealDamageCost,dealDamageToChosenCost,dealEncounterCard,dealEncounterCardsCost,dealEncounterCardsToChosenPlayerCost,dealHiddenPiles,dealIndirectDamage,dealPoolOneAtATime,dealtEncounterCards,dealtEncounterCount,deckCountOf,deckDiscardIconsCount,declareDefender,defeat,defeatExcessDamage,defeatExcessThreat,defeatedWithExcessConsequentialDamage,defeatedWithExcessDamage,defeatingPlayer,defenderDefForAttack,defendingCharacter,defendsWithoutExhausting,defineAbilities,defineBuiltinPack,detach,difficultySetAlternativesFor,discard,discardAtRandom,discardBoostCard,discardCardsCost,discardChosenFromEncounterDeckCost,discardDeckUntil,discardEncounterCards,discardEncounterUntil,discardFacedownBoostCards,discardFromHand,discardFromHandCombinedCost,discardFromHandCost,discardRandomFromHandCost,discardStatusCost,discardStatusesTokensAndAttachments,discardThis,discardTopOfDeckCost,discardTopOfEncounterDeckCost,discardTuckedCost,discardUpToTopOfDeckCost,distinctAspectsOf,distinctTraitsOf,divide,doesNotExhaustToDefend,doubleDamageTaken,doubleNextCardSpent,doubleStat,doublesResourcesGeneratedForThisCard,doublesResourcesWhilePayingFor,draw,drawUpTo,droneFromDeck,duringPlayerPhase,duringTurnOf,duringVillainPhaseStepOne,each,eachGroupInPod,eachPlayer,eachPlayerCost,eachTimeUntil,eitherCost,encounterCard,encounterCards,encounterCardsOf,encounterIconsInPlay,encounterLookDiscardCost,encounterSetAside,encounterSetOf,endGame,enemyActivates,enemyAttack,enemyAttacksEnemy,enemyAttacksYouCost,enemyCanAttackAnother,enemyLeader,enemyScheme,enemyTeam,enemyTeamChooses,enemyToAttack,engage,engagedPlayerOf,engineOnlyDslProblems,entersPlayExhausted,eventAmount,eventDamageTaken,eventDamageTakenBy,eventDealt,eventKindIs,eventPlayer,eventResult,eventSource,eventSourceEnemy,eventTarget,eventTargetsTogether,exactlyDefeated,exactlyDefeatedByPower,excludedFromAllyLimit,excludedFromPlayerSideSchemeLimit,exhaust,exhaustCardsCost,exhaustEachCost,exhaustThis,exhaustYourHero,exists,expertSetReplaceable,extraBoostCardsForVillain,faceNamed,fieldsIn,finalStep,find,findCard,firstAttackThisTurn,firstPlayer,firstPlayerAction,firstPlayerPicksFromHand,firstRevealGainsSurge,firstThisRound,flatten,flipCard,flipCardsCost,flipThis,focusedMainScheme,forAnIdentityNotInThisGame,forEachCard,forEachPlayer,forEachPlayerInChosenOrder,forcedAction,forcedInterrupt,forcedResponse,formChangeCost,friendlyCharacterAttacks,fromAnyAspect,gainFromHiddenPile,gainKeywordUntil,gainTraitUntil,gainTraitsOfUntil,gainsAbility,gainsIcon,gainsKeyword,gainsKeywordX,gainsKeywordsOf,gainsTrait,gainsTraitsOf,gameAreasSplit,genePoolThreatOffer,generatesAmount,generatesPerCard,gets,giveBasicPowerBoostCard,giveBoostCard,giveBoostCardsCost,giveHeldBoostCard,giveStatus,giveStatusCost,giveTough,gmwBalancedHiddenFields,grantAdditionalMulligans,grantOwnedCards,grantedTo,grantingCard,grantsPreparation,groupPlayerCount,handCountOf,handSizeOf,hasAttachment,hasNamedResource,hasPrintedBoostAbility,hasStatus,hasTaggedAbility,hasTrait,heal,healCost,healYourIdentityCost,heroAction,heroInterrupt,heroNoCharacterIsTitledAs,heroResource,heroResponse,hiddenPileCount,highestStatAmong,hitPointsOf,holdMinion,horsemanSidesOffer,host,identifyMole,identityOf,ifElse,ifThen,ignoreAbilities,ignoreBoost,ignoreBoostAbilities,ignoreBoostForThisAttack,ignores,ignoresRetaliate,inAdditionalForm,inCampaign,inCampaignLogField,inCompetitiveMode,inDiscard,inEncounterSet,inForm,inGroup,inHand,inMode,inPlay,inPlayAreaOf,inScenarioPlayArea,inVictoryDisplay,increaseDamage,increaseDamageTaken,increaseNextCardCost,infinitesGenePoolThreatRecommendation,instead,interrupt,isAlterEgo,isAttached,isBaseEncounterSetId,isBaseScenarioId,isConfused,isHero,isModularChoice,isNotReadyCard,isScenarioSpecificSet,isStunned,joinGameArea,keepsExhausted,lastPlayedThisRound,leavingPlayLoses,limitPerPaidCard,logCardList,logCardRef,logFlag,logNumber,logOption,logText,lookAt,lookAtAndRearrange,lookAtTopOfScenarioDeckThenPlace,loseKeywordUntil,loseTraitUntil,losesIcon,losesKeyword,made,mainSchemeAdvancedBy,mainSchemeMarkedBy,mainSchemePicksOffer,mainSchemeStageGist,mainSchemeStageNumber,mainSchemeStagesOffer,mainSchemeStagesProblem,max,maxDamageTaken,maxOnePerTriggeringInstance,maxSustainedDamage,mayLookAtTopOfEncounterDeckUntil,mergeCosts,mergeRegistries,min,minDamageTaken,modifyAttack,modifyBasicPower,modifyCardEffect,modifyCardEffectsUntil,modifyConsequentialDamage,modifyStat,modifyStatOf,modifyThwart,modularPickCountProblem,modularPickCountRange,modularPickProblem,modularSetContents,mojoCheckedOffSets,mojoModularSetPicks,mostCommonHandTypeCount,moveActiveCounterToNextInRow,moveActiveCounterToNextVillain,moveBoostCards,moveCards,moveCardsInto,moveCounters,moveThreat,multiplyStat,named,namedByTeamUpOf,nextAfter,not,notCountedTowardHandSize,notMatching,notOfChosenCardType,obligation,ofChosenCardType,ofClassification,ofIdentitySetTitled,ofTeamUpSet,offersEasierStart,offersGenePoolThreat,on,onChosenMainScheme,oncePerPaidCard,oncePerPhase,oncePerPhasePerEventPlayer,oncePerRound,oncePerRoundPerPlayer,oneCopyOf,onlyCharacterRemovesThreat,onlySourceRemovesThreat,onlyThwartsRemoveThreat,opsOfKind,option,otherFaceOf,otherPlayers,outsideFact,overdefeated,overpaidWhenPlayed,ownScriptsOf,ownerOf,packScenarioOffer,paidCards,paidInPlayCards,paidType,paidTypeCount,paidUsingResourceFrom,paidWith,paidWithCard,paidWithOnly,paidWithResourceCard,pairCards,pairLimit,partOf,passEncounterCard,payPrintedCostOf,payingFor,perHero,placeCountersCost,placeDamage,placeOnTopOrBottom,placeOnTopOrBottomOfPlayerDeck,placeThreat,placeThreatOnSharedScheme,playFromDeckIgnoringCost,playFromDeckReducingCost,playFromDiscard,playFromHandIgnoringCost,playFromHandReducingCost,playFromSeparateDeck,playNote,playOnlyIf,playSetAside,playTuckedCard,playWithTopOfDeckFaceup,playWithTopOfEncounterDeckFaceup,playableAttachments,playableScenario,playableScenarioOffer,playableScenarioWithCustom,playableStarterDeckSetup,playableTopOfDeck,playableTucked,playedThisPhase,playedThisRound,playedThisTurn,playedVia,playerOrElse,playersCannotDiscard,playersWhere,preparation,preventAllDamageTo,preventConsequentialDamage,preventDamage,preventThreat,printedBoostAreaIconsOn,printedCostAtLeast,printedCostOf,printedForm,printedHpNumeralOf,printedHpOf,printedResourcesInHandAs,printedResourcesOf,printedStatOf,printsAbility,product,putIntoPlay,putIntoPlayAsHost,putIntoPlayFacedown,putIntoPlayFromSetAside,putLinkedAllyIntoPlay,putMainSchemeStageIntoPlay,query,raiseMoment,randomCivilWarScenario,reachableFromPod,reaching,readsAtkOf,readsPaymentTypesOf,ready,readyCardsCost,recordInCampaignLog,reduceCostOfCards,reduceCostToPlay,reduceDamage,reduceDamageTo,reduceNextCardCost,reducesAttackDamageTaken,refCount,refMatches,remainingHpCompare,remainingHpOf,removeAccelerationToken,removeAllCounters,removeAllCountersFrom,removeAnAccelerationToken,removeCounter,removeCountersAmong,removeCountersFrom,removeEachCounterFrom,removeFromCampaign,removeMainSchemeStage,removeMainSchemeStages,removeStatus,removeThreat,removeThreatCost,removeThreatFromAScheme,removeThreatFromChosenCost,removeThreatUpToCost,removeUpToCounters,removeVillain,removedFromGameCards,reorderCards,repeatTimes,repeatWhile,replaceAttachHost,replaceBoostCount,replaceLeaveDestination,replaceNextVillainPhaseWithPlayerPhase,replaceStatus,replaceTuckHost,reportFact,resetHitPoints,resolveAttackAgainst,resolveBoostAbilitiesOf,resolveForcedInterruptOf,resolveForcedResponseCost,resolveForcedResponseOf,resolveModes,resolveOneTagged,resolvePreparationsOf,resolveSetups,resolveSpecialCost,resolveSpecials,resolveSpecialsOf,resolveTagged,resolveWhenDefeatedOf,resolveWhenRevealedOf,resource,resourceTypesOf,resourcesGeneratedAsWild,resourcesPaidBy,response,restrictedLimit,retargetAttack,retargetPlayerAttack,returnEachToHandCost,returnToHandAfterResolving,returnToHandCost,revealCard,revealEncounterCard,revealFromSetAsideModularSet,revealHeldMinion,revealHiddenPile,revealInstead,revealMainSchemeStage,revealNextVillainStage,revealSetAside,revealTopOfScenarioDeck,revealTopOfSeparateDeck,revealedFromEncounterDeck,revealedPileCardCount,rotateEngagement,rule,sameClassificationAs,scaled,scenarioArea,scenarioAreaCount,scenarioDeck,scenarioGameSetIds,scenarioSideClause,scenarioWithVillain,schemeStartedByAttackBoost,schemeThreatOn,searchAndReveal,searchCollection,searchEncounterIntoPlayCost,seedHiddenPiles,selectCards,self,sentence,separateDeckCards,separateDeckCountOf,setActiveVillain,setAside,setAsideDestination,setAsideModularSetCount,setDefeatDestination,setRemainingHitPoints,setVar,setVillainAside,setVillainSide,setup,sharesTitleWith,sharesTraitWith,sharesTraitWithHeroOf,shuffleDeck,shuffleEncounterDeck,shuffleInSetAsideModularSet,shuffleIntoSeparateDeck,shuffleMainSchemeStageGroup,shuffleMainSchemeStages,shuffleSeparateDeck,shuffleTopOfSeparateDeckIntoEncounterDeck,sitOut,skipNextVillainPhase,skippedCommunityDecks,skirmishOffer,special,spend,spendChosen,spendDifferentResources,spendEqualTo,spendPrinted,spendResources,spendSameType,spendUpTo,spendX,spendXResources,spendableForAnyPlayer,spendableForPlayersWhere,spendableFromTucked,standardSetReplaceable,starIconsOn,starterDeckSetup,statCompare,statOf,stateCheck,stateCheckFromEntering,statusCount,statusLimit,staysInHand,stillCountedByDiscarder,stun,sum,superlative,superlativePlayer,surge,swapCards,swapIdentity,swapMainScheme,swapVillain,swapVillainByTrait,tagged,taggedAbilitiesOn,takeAnyDamageCost,takeControl,takeDamage,takeDamageCost,takeIndirectDamageCost,takeIntoHand,takesConsequentialDamage,takesDamageOnlyFrom,takesDamageOnlyFromAttacks,takesFirstTurn,teamUpCharacter,teamUpCharacters,textBoxCannotBeBlanked,thatAttackGainsKeywords,thatPlayer,theAccused,theAffectedCard,theMainScheme,theMole,theVillain,thisCardGenerates,thisGroup,threatAtLeast,threatOn,thwart,thwartAScheme,thwartInProgress,thwartTarget,titled,toScenarioDeck,topOfDeck,topOfDeckIsFaceup,topOfDeckMatches,topOfEncounterDeckIsFaceup,topOfEncounterDeckMatches,topOfEncounterDeckShowsIcons,topOfEncounterDeckShowsNoIcons,topOfYourDeckHas,totalPrintedCost,totalPrintedResources,totalStatOf,traitEncounterDeck,traitNumber,treatAsAlly,treatAsMinion,treatAttachedAllyAsMinion,treatAttachedHeroAsMinion,treatAttachedMinionAsAlly,treatAttachedVillainAsMinion,treatSelfAsAlly,tuckCards,tuckLimit,tuckedCount,tuckedUnder,tuckedUnderRef,turnFacedown,uncancellable,undefendedAttack,upgradesCannotBeRemoved,useActionAbility,useThwInsteadOfAtk,usingBasicPower,validateCard,validateDefinition,validateEncounterSet,validateScenario,validateScenarioEncounterSets,validateStarterDeck,valueAtLeast,valueAtMost,valueEquals,varAtLeast,varFor,varOf,victoryCondition,victoryDisplayCards,victoryDisplayCount,villainChoiceOf,villainChoiceOffer,villainOnSide,villainOptionOf,villainStageNumberOf,wave10Scenario,wave10StarterDeckSetup,wave11Scenario,wave11ScenarioRecord,wave11StarterDeckSetup,wave1ReprintPairs,wave1Scenario,wave1StarterDeckSetup,wave2ReprintPairs,wave2Scenario,wave2StarterDeckSetup,wave3ReprintPairs,wave3Scenario,wave3StarterDeckSetup,wave7Scenario,wave7StarterDeckSetup,wave8Scenario,wave8StarterDeckSetup,wave9Scenario,wave9StarterDeckSetup,when,whenCompleted,whenDefeated,whenRevealed,whenRevealedAlterEgo,whenRevealedHero,whenSpentGenerate,whileOnChosenMainScheme,whileTucked,withFewestCounters,withModularSetContents,withMostCounters,you,youAre,youAreNamed,youHaveTrait,yourIdentity,yourLeader,yourMainScheme,yourTeam,zone,zoneCountOf}from"./chunk-EKR67REN.js";var src_exports={};__export(src_exports,{ANY_ASPECT_CARD:()=>ANY_ASPECT_CARD,ANY_NUMBER:()=>ANY_NUMBER,ANY_RESOURCE:()=>ANY_RESOURCE,AOA_CAMPAIGN_DEFINITION:()=>AOA_CAMPAIGN_DEFINITION,AOA_DEFEATED:()=>AOA_DEFEATED,AOA_MISSIONS:()=>AOA_MISSIONS,AOA_NOT_DEFEATED:()=>AOA_NOT_DEFEATED,AOA_OVERSEERS:()=>AOA_OVERSEERS,AOA_PROTECT_THE_PROFESSOR:()=>AOA_PROTECT_THE_PROFESSOR,AOS_CAMPAIGN_DEFINITION:()=>AOS_CAMPAIGN_DEFINITION,AS_DRONE:()=>AS_DRONE,BUILTIN_PACKS:()=>BUILTIN_PACKS,CAMPAIGNS:()=>CAMPAIGNS,CAN_TAKE_THIS_ATTACK:()=>CAN_TAKE_THIS_ATTACK,COMMUNITY_DECK_AUTHORS:()=>COMMUNITY_DECK_AUTHORS,CORE_ABILITIES:()=>CORE_ABILITIES,CORE_BUILTIN_PACK:()=>CORE_BUILTIN_PACK,CORE_DEPS:()=>CORE_DEPS,CUSTOM_SCENARIO_FIELDS:()=>CUSTOM_SCENARIO_FIELDS,ENCOUNTER_CARD:()=>ENCOUNTER_CARD,ENCOUNTER_CARD_CATEGORIES:()=>ENCOUNTER_CARD_CATEGORIES,ENCOUNTER_SIDE_SCHEME:()=>ENCOUNTER_SIDE_SCHEME,ENGINE_ONLY_DSL_EXAMPLES:()=>ENGINE_ONLY_DSL_EXAMPLES,FRIENDLY_CHARACTER:()=>FRIENDLY_CHARACTER,GMW_BALANCED_FIELD:()=>GMW_BALANCED_FIELD,GMW_BALANCED_TOGGLES:()=>GMW_BALANCED_TOGGLES,GMW_CAMPAIGN_DEFINITION:()=>GMW_CAMPAIGN_DEFINITION,INFINITES_GENE_POOL_THREAT_MAX:()=>INFINITES_GENE_POOL_THREAT_MAX,MOJO_CAMPAIGN_DEFINITION:()=>MOJO_CAMPAIGN_DEFINITION,MTS_CAMPAIGN_DEFINITION:()=>MTS_CAMPAIGN_DEFINITION,NEXT_EVOL_CAMPAIGN_DEFINITION:()=>NEXT_EVOL_CAMPAIGN_DEFINITION,NOT_READY_PACK_CODES:()=>NOT_READY_PACK_CODES,PACK_ABILITY_ID:()=>PACK_ABILITY_ID,PAID_CARDS:()=>PAID_CARDS,PAID_IN_PLAY_CARDS:()=>PAID_IN_PLAY_CARDS,PLAYABLE_ABILITIES:()=>PLAYABLE_ABILITIES,PLAYABLE_DEPS:()=>PLAYABLE_DEPS,PLAYABLE_ENCOUNTER_SETS:()=>PLAYABLE_ENCOUNTER_SETS,PLAYABLE_SCENARIO_RECORDS:()=>PLAYABLE_SCENARIO_RECORDS,PLAYER_SIDE_SCHEME:()=>PLAYER_SIDE_SCHEME,RANDOM_VILLAIN:()=>RANDOM_VILLAIN,REQUIRED_PACK_FILES:()=>REQUIRED_PACK_FILES,SHADOWLAND_CAMPAIGN_DEFINITION:()=>SHADOWLAND_CAMPAIGN_DEFINITION,SM_CAMPAIGN_DEFINITION:()=>SM_CAMPAIGN_DEFINITION,SUPPORTED_DSL_FEATURES:()=>SUPPORTED_DSL_FEATURES,TEAM_UP_CARD:()=>TEAM_UP_CARD,TRAIT:()=>TRAIT,TRORS_CAMPAIGN_DEFINITION:()=>TRORS_CAMPAIGN_DEFINITION,UNSCRIPTED_ENCOUNTER_SET_IDS:()=>UNSCRIPTED_ENCOUNTER_SET_IDS,VILLAIN_OR_VILLAINOUS:()=>VILLAIN_OR_VILLAINOUS,WAVE10_ABILITIES:()=>WAVE10_ABILITIES,WAVE10_BUILTIN_PACKS:()=>WAVE10_BUILTIN_PACKS,WAVE10_CARDS:()=>WAVE10_CARDS,WAVE10_DEPS:()=>WAVE10_DEPS,WAVE10_GAME_ENCOUNTER_SETS:()=>WAVE10_GAME_ENCOUNTER_SETS,WAVE11_ABILITIES:()=>WAVE11_ABILITIES,WAVE11_BUILTIN_PACKS:()=>WAVE11_BUILTIN_PACKS,WAVE11_CARDS:()=>WAVE11_CARDS,WAVE11_DEPS:()=>WAVE11_DEPS,WAVE11_GAME_ENCOUNTER_SETS:()=>WAVE11_GAME_ENCOUNTER_SETS,WAVE1_ABILITIES:()=>WAVE1_ABILITIES,WAVE1_BUILTIN_PACKS:()=>WAVE1_BUILTIN_PACKS,WAVE1_DEPS:()=>WAVE1_DEPS,WAVE1_REPRINT_ABILITIES:()=>WAVE1_REPRINT_ABILITIES,WAVE2_ABILITIES:()=>WAVE2_ABILITIES,WAVE2_BUILTIN_PACKS:()=>WAVE2_BUILTIN_PACKS,WAVE2_DEPS:()=>WAVE2_DEPS,WAVE2_REPRINT_ABILITIES:()=>WAVE2_REPRINT_ABILITIES,WAVE3_ABILITIES:()=>WAVE3_ABILITIES,WAVE3_BUILTIN_PACKS:()=>WAVE3_BUILTIN_PACKS,WAVE3_CARDS:()=>WAVE3_CARDS,WAVE3_DEPS:()=>WAVE3_DEPS,WAVE3_REPRINT_ABILITIES:()=>WAVE3_REPRINT_ABILITIES,WAVE4_BUILTIN_PACKS:()=>WAVE4_BUILTIN_PACKS,WAVE5_BUILTIN_PACKS:()=>WAVE5_BUILTIN_PACKS,WAVE6_BUILTIN_PACKS:()=>WAVE6_BUILTIN_PACKS,WAVE7_ABILITIES:()=>WAVE7_ABILITIES,WAVE7_BUILTIN_PACKS:()=>WAVE7_BUILTIN_PACKS,WAVE7_CARDS:()=>WAVE7_CARDS,WAVE7_DEPS:()=>WAVE7_DEPS,WAVE8_ABILITIES:()=>WAVE8_ABILITIES,WAVE8_BUILTIN_PACKS:()=>WAVE8_BUILTIN_PACKS,WAVE8_CARDS:()=>WAVE8_CARDS,WAVE8_DEPS:()=>WAVE8_DEPS,WAVE9_ABILITIES:()=>WAVE9_ABILITIES,WAVE9_BUILTIN_PACKS:()=>WAVE9_BUILTIN_PACKS,WAVE9_CARDS:()=>WAVE9_CARDS,WAVE9_DEPS:()=>WAVE9_DEPS,YOUR_HERO:()=>YOUR_HERO,YOUR_IDENTITY:()=>YOUR_IDENTITY,aDifferentCard:()=>aDifferentCard,aScheme:()=>aScheme,abilitiesForCards:()=>abilitiesForCards,accelerationTokensOn:()=>accelerationTokensOn,accusationWrongGuesses:()=>accusationWrongGuesses,accuse:()=>accuse,accusedWrong:()=>accusedWrong,actingCharacter:()=>actingCharacter,action:()=>action,activatesBeforeVillain:()=>activatesBeforeVillain,activatingEnemy:()=>activatingEnemy,activationIs:()=>activationIs,activationOrderOf:()=>activationOrderOf,addAccelerationToken:()=>addAccelerationToken,addCounters:()=>addCounters,addMainSchemeStageToVictoryDisplay:()=>addMainSchemeStageToVictoryDisplay,addToVictoryDisplay:()=>addToVictoryDisplay,addVillain:()=>addVillain,additionalAttackCost:()=>additionalAttackCost,additionalCostToPlay:()=>additionalCostToPlay,additionalCostToReady:()=>additionalCostToReady,additionalPowerCost:()=>additionalPowerCost,additionalThwartCost:()=>additionalThwartCost,adjustBoostCount:()=>adjustBoostCount,advanceMainScheme:()=>advanceMainScheme,advanceToSetAsideVillain:()=>advanceToSetAsideVillain,after:()=>after,afterNextCardPlayed:()=>afterNextCardPlayed,agile:()=>agile,allOf:()=>allOf,allowUnlabeledAttack:()=>allowUnlabeledAttack,alterEgoAction:()=>alterEgoAction,alterEgoInterrupt:()=>alterEgoInterrupt,alterEgoResponse:()=>alterEgoResponse,amount:()=>amount,anAttackableEnemy:()=>anAttackableEnemy,anEnemy:()=>anEnemy,andThen:()=>andThen,anyIn:()=>anyIn,anyNumberOfToughStatusCards:()=>anyNumberOfToughStatusCards,anyOf:()=>anyOf,anyOfCards:()=>anyOfCards,anyPlayerEliminated:()=>anyPlayerEliminated,applyAsBoostCard:()=>applyAsBoostCard,applyRuleUntil:()=>applyRuleUntil,areaPlayersDefeated:()=>areaPlayersDefeated,assignDamage:()=>assignDamage,atEndOfActivation:()=>atEndOfActivation,atEndOfAttack:()=>atEndOfAttack,atEndOfPhase:()=>atEndOfPhase,atEndOfRound:()=>atEndOfRound,atEndOfThwart:()=>atEndOfThwart,atMost:()=>atMost,attachCard:()=>attachCard,attachCost:()=>attachCost,attachInstruction:()=>attachInstruction,attack:()=>attack,attackAnEnemy:()=>attackAnEnemy,attackDamageDealt:()=>attackDamageDealt,attackExcessAsDealt:()=>attackExcessAsDealt,attackInProgress:()=>attackInProgress,attackInitiatedAgainst:()=>attackInitiatedAgainst,attackPreventedAmount:()=>attackPreventedAmount,attackPreventedTotal:()=>attackPreventedTotal,attackResolvedLabeled:()=>attackResolvedLabeled,attackTarget:()=>attackTarget,attackTotalAtk:()=>attackTotalAtk,attackUsedAtk:()=>attackUsedAtk,attackWasPrevented:()=>attackWasPrevented,attackableAsMinion:()=>attackableAsMinion,attackedBy:()=>attackedBy,attackedPlayer:()=>attackedPlayer,attackedThisPhase:()=>attackedThisPhase,attackingEnemy:()=>attackingEnemy,attacksDealAdditionalDamage:()=>attacksDealAdditionalDamage,attacksGainKeywords:()=>attacksGainKeywords,attacksLoseKeywords:()=>attacksLoseKeywords,baseStatOf:()=>baseStatOf,baseStatsFromYourHero:()=>baseStatsFromYourHero,basicPowerBy:()=>basicPowerBy,basicPowerCost:()=>basicPowerCost,basicPowerIs:()=>basicPowerIs,basicPowerStatIs:()=>basicPowerStatIs,basicThwartOnlyAgainst:()=>basicThwartOnlyAgainst,basicThwartsIgnore:()=>basicThwartsIgnore,bindTargets:()=>bindTargets,blankTextBoxForPlayers:()=>blankTextBoxForPlayers,blankTextBoxUntil:()=>blankTextBoxUntil,blanksTextBox:()=>blanksTextBox,boost:()=>boost,boostAreaIconsOn:()=>boostAreaIconsOn,boostCardOf:()=>boostCardOf,boostCardsFromSet:()=>boostCardsFromSet,boostIconsCount:()=>boostIconsCount,boostIconsOn:()=>boostIconsOn,buildScenarioDeck:()=>buildScenarioDeck,buildWave11Scenario:()=>buildWave11Scenario,builtinGameDeps:()=>builtinGameDeps,builtinPackProblems:()=>builtinPackProblems,campaignDefinitionOf:()=>campaignDefinitionOf,campaignDefinitionProblems:()=>campaignDefinitionProblems,campaignDefinitionsOf:()=>campaignDefinitionsOf,campaignDepsWithPacks:()=>campaignDepsWithPacks,campaignGameWithPacks:()=>campaignGameWithPacks,campaignInstructionsOf:()=>campaignInstructionsOf,campaignLogAtLeast:()=>campaignLogAtLeast,campaignLogCardCounter:()=>campaignLogCardCounter,campaignLogCardRecorded:()=>campaignLogCardRecorded,campaignLogCards:()=>campaignLogCards,campaignLogHas:()=>campaignLogHas,campaignLogIsSet:()=>campaignLogIsSet,campaignLogValue:()=>campaignLogValue,campaignModularPickProblem:()=>campaignModularPickProblem,canAttachTo:()=>canAttachTo,canAttachToCategory:()=>canAttachToCategory,canChangeForm:()=>canChangeForm,canEnterPlay:()=>canEnterPlay,canFlip:()=>canFlip,canPayResources:()=>canPayResources,canPlayFromHand:()=>canPlayFromHand,canRemoveThreatFrom:()=>canRemoveThreatFrom,canSpendDifferentResources:()=>canSpendDifferentResources,canTakeStatus:()=>canTakeStatus,canUseBasicPower:()=>canUseBasicPower,cancelBoostedActivation:()=>cancelBoostedActivation,cancelConsequentialDamage:()=>cancelConsequentialDamage,cancelIt:()=>cancelIt,cancelRevealedCard:()=>cancelRevealedCard,cancelWhenRevealed:()=>cancelWhenRevealed,cannotActivate:()=>cannotActivate,cannotAttach:()=>cannotAttach,cannotBeAttachedUnlessInPlay:()=>cannotBeAttachedUnlessInPlay,cannotBeCanceled:()=>cannotBeCanceled,cannotBeDefeated:()=>cannotBeDefeated,cannotBeHealed:()=>cannotBeHealed,cannotBeReadiedByPlayerCards:()=>cannotBeReadiedByPlayerCards,cannotChangeFormUntil:()=>cannotChangeFormUntil,cannotChooseOption:()=>cannotChooseOption,cannotChooseToDiscard:()=>cannotChooseToDiscard,cannotEnterPlay:()=>cannotEnterPlay,cannotFlip:()=>cannotFlip,cannotHaveStatus:()=>cannotHaveStatus,cannotLeavePlay:()=>cannotLeavePlay,cannotMakeBasicAttacks:()=>cannotMakeBasicAttacks,cannotReadyUntil:()=>cannotReadyUntil,cannotRecover:()=>cannotRecover,cannotResolveTriggeredAbilities:()=>cannotResolveTriggeredAbilities,cannotThwart:()=>cannotThwart,cardIdsIn:()=>cardIdsIn,cardPoolWithPack:()=>cardPoolWithPack,cardPoolWithPacks:()=>cardPoolWithPacks,cards:()=>cards,cardsFrom:()=>cardsFrom,cardsOfComposedSets:()=>cardsOfComposedSets,centralMainScheme:()=>centralMainScheme,changeAdditionalForm:()=>changeAdditionalForm,changeForm:()=>changeForm,changeFormCost:()=>changeFormCost,changeToHeroFormNamed:()=>changeToHeroFormNamed,changeToHeroFormWithTrait:()=>changeToHeroFormWithTrait,changeToOtherHeroForm:()=>changeToOtherHeroForm,changeVillainForm:()=>changeVillainForm,characterDidThisPhase:()=>characterDidThisPhase,checkModularPickCount:()=>checkModularPickCount,checkPackCampaigns:()=>checkPackCampaigns,checkPlayableDifficultySets:()=>checkPlayableDifficultySets,choiceFoundNothing:()=>choiceFoundNothing,chooseCardCost:()=>chooseCardCost,chooseCardType:()=>chooseCardType,chooseCards:()=>chooseCards,chooseEncounterCardType:()=>chooseEncounterCardType,chooseGroup:()=>chooseGroup,chooseMainSchemeStages:()=>chooseMainSchemeStages,chooseNumber:()=>chooseNumber,chooseOne:()=>chooseOne,chooseOneBy:()=>chooseOneBy,chooseOptions:()=>chooseOptions,choosePlayer:()=>choosePlayer,chooseTarget:()=>chooseTarget,chooseTargetCost:()=>chooseTargetCost,chosen:()=>chosen,chosenGroup:()=>chosenGroup,chosenModularSetIds:()=>chosenModularSetIds,chosenPlayer:()=>chosenPlayer,chosenVillain:()=>chosenVillain,civilWarGameModes:()=>civilWarGameModes,civilWarModularSets:()=>civilWarModularSets,civilWarSidesOffer:()=>civilWarSidesOffer,communityDeckUrl:()=>communityDeckUrl,communityDecks:()=>communityDecks,competitiveOnly:()=>competitiveOnly,competitiveOnlyTexts:()=>competitiveOnlyTexts,completeMainScheme:()=>completeMainScheme,confuse:()=>confuse,consideredToHaveHitPoints:()=>consideredToHaveHitPoints,consideredToHaveResourceIcon:()=>consideredToHaveResourceIcon,constant:()=>constant,controllerOf:()=>controllerOf,coreScenario:()=>coreScenario,costIf:()=>costIf,costModifier:()=>costModifier,costsPayableByAnyPlayer:()=>costsPayableByAnyPlayer,countAmong:()=>countAmong,countBoostIcons:()=>countBoostIcons,countOf:()=>countOf,countTowardStartingHand:()=>countTowardStartingHand,counterLimit:()=>counterLimit,countersAsResource:()=>countersAsResource,countersOn:()=>countersOn,countsAs:()=>countsAs,coveredByEngineRule:()=>coveredByEngineRule,createGameArea:()=>createGameArea,createScenarioArea:()=>createScenarioArea,createScenarioPlayArea:()=>createScenarioPlayArea,customContentOfPacks:()=>customContentOfPacks,customContentProblems:()=>customContentProblems,customModularPickProblem:()=>customModularPickProblem,customModularSetChoices:()=>customModularSetChoices,customScenarioProblems:()=>customScenarioProblems,damageAnEnemy:()=>damageAnEnemy,damageCardsCost:()=>damageCardsCost,damageOn:()=>damageOn,damageSharedVillain:()=>damageSharedVillain,damageThisCardCost:()=>damageThisCardCost,damagedAtLeast:()=>damagedAtLeast,dealAsEncounterCard:()=>dealAsEncounterCard,dealDamage:()=>dealDamage,dealDamageCost:()=>dealDamageCost,dealDamageToChosenCost:()=>dealDamageToChosenCost,dealEncounterCard:()=>dealEncounterCard,dealEncounterCardsCost:()=>dealEncounterCardsCost,dealEncounterCardsToChosenPlayerCost:()=>dealEncounterCardsToChosenPlayerCost,dealHiddenPiles:()=>dealHiddenPiles,dealIndirectDamage:()=>dealIndirectDamage,dealPoolOneAtATime:()=>dealPoolOneAtATime,dealtEncounterCards:()=>dealtEncounterCards,dealtEncounterCount:()=>dealtEncounterCount,deckCountOf:()=>deckCountOf,deckDiscardIconsCount:()=>deckDiscardIconsCount,declareDefender:()=>declareDefender,defeat:()=>defeat,defeatExcessDamage:()=>defeatExcessDamage,defeatExcessThreat:()=>defeatExcessThreat,defeatedWithExcessConsequentialDamage:()=>defeatedWithExcessConsequentialDamage,defeatedWithExcessDamage:()=>defeatedWithExcessDamage,defeatingPlayer:()=>defeatingPlayer,defenderDefForAttack:()=>defenderDefForAttack,defendingCharacter:()=>defendingCharacter,defendsWithoutExhausting:()=>defendsWithoutExhausting,defineAbilities:()=>defineAbilities,defineBuiltinPack:()=>defineBuiltinPack,definePackAbilities:()=>definePackAbilities,detach:()=>detach,difficultySetAlternativesFor:()=>difficultySetAlternativesFor,discard:()=>discard,discardAtRandom:()=>discardAtRandom,discardBoostCard:()=>discardBoostCard,discardCardsCost:()=>discardCardsCost,discardChosenFromEncounterDeckCost:()=>discardChosenFromEncounterDeckCost,discardDeckUntil:()=>discardDeckUntil,discardEncounterCards:()=>discardEncounterCards,discardEncounterUntil:()=>discardEncounterUntil,discardFacedownBoostCards:()=>discardFacedownBoostCards,discardFromHand:()=>discardFromHand,discardFromHandCombinedCost:()=>discardFromHandCombinedCost,discardFromHandCost:()=>discardFromHandCost,discardRandomFromHandCost:()=>discardRandomFromHandCost,discardStatusCost:()=>discardStatusCost,discardStatusesTokensAndAttachments:()=>discardStatusesTokensAndAttachments,discardThis:()=>discardThis,discardTopOfDeckCost:()=>discardTopOfDeckCost,discardTopOfEncounterDeckCost:()=>discardTopOfEncounterDeckCost,discardTuckedCost:()=>discardTuckedCost,discardUpToTopOfDeckCost:()=>discardUpToTopOfDeckCost,distinctAspectsOf:()=>distinctAspectsOf,distinctTraitsOf:()=>distinctTraitsOf,divide:()=>divide,doesNotExhaustToDefend:()=>doesNotExhaustToDefend,doubleDamageTaken:()=>doubleDamageTaken,doubleNextCardSpent:()=>doubleNextCardSpent,doubleStat:()=>doubleStat,doublesResourcesGeneratedForThisCard:()=>doublesResourcesGeneratedForThisCard,doublesResourcesWhilePayingFor:()=>doublesResourcesWhilePayingFor,draw:()=>draw,drawUpTo:()=>drawUpTo,droneFromDeck:()=>droneFromDeck,dslFeatures:()=>dslFeatures,duringPlayerPhase:()=>duringPlayerPhase,duringTurnOf:()=>duringTurnOf,duringVillainPhaseStepOne:()=>duringVillainPhaseStepOne,each:()=>each,eachGroupInPod:()=>eachGroupInPod,eachPlayer:()=>eachPlayer,eachPlayerCost:()=>eachPlayerCost,eachTimeUntil:()=>eachTimeUntil,eitherCost:()=>eitherCost,encounterCard:()=>encounterCard,encounterCards:()=>encounterCards,encounterCardsOf:()=>encounterCardsOf,encounterIconsInPlay:()=>encounterIconsInPlay,encounterLookDiscardCost:()=>encounterLookDiscardCost,encounterSetAside:()=>encounterSetAside,encounterSetOf:()=>encounterSetOf,endGame:()=>endGame,enemyActivates:()=>enemyActivates,enemyAttack:()=>enemyAttack,enemyAttacksEnemy:()=>enemyAttacksEnemy,enemyAttacksYouCost:()=>enemyAttacksYouCost,enemyCanAttackAnother:()=>enemyCanAttackAnother,enemyLeader:()=>enemyLeader,enemyScheme:()=>enemyScheme,enemyTeam:()=>enemyTeam,enemyTeamChooses:()=>enemyTeamChooses,enemyToAttack:()=>enemyToAttack,engage:()=>engage,engagedPlayerOf:()=>engagedPlayerOf,engineOnlyDslProblems:()=>engineOnlyDslProblems,entersPlayExhausted:()=>entersPlayExhausted,eventAmount:()=>eventAmount,eventDamageTaken:()=>eventDamageTaken,eventDamageTakenBy:()=>eventDamageTakenBy,eventDealt:()=>eventDealt,eventKindIs:()=>eventKindIs,eventPlayer:()=>eventPlayer,eventResult:()=>eventResult,eventSource:()=>eventSource,eventSourceEnemy:()=>eventSourceEnemy,eventTarget:()=>eventTarget,eventTargetsTogether:()=>eventTargetsTogether,exactlyDefeated:()=>exactlyDefeated,exactlyDefeatedByPower:()=>exactlyDefeatedByPower,excludedFromAllyLimit:()=>excludedFromAllyLimit,excludedFromPlayerSideSchemeLimit:()=>excludedFromPlayerSideSchemeLimit,exhaust:()=>exhaust,exhaustCardsCost:()=>exhaustCardsCost,exhaustEachCost:()=>exhaustEachCost,exhaustThis:()=>exhaustThis,exhaustYourHero:()=>exhaustYourHero,exists:()=>exists,expertSetReplaceable:()=>expertSetReplaceable,extraBoostCardsForVillain:()=>extraBoostCardsForVillain,faceNamed:()=>faceNamed,fieldsIn:()=>fieldsIn,finalStep:()=>finalStep,find:()=>find,findCard:()=>findCard,firstAttackThisTurn:()=>firstAttackThisTurn,firstPlayer:()=>firstPlayer,firstPlayerAction:()=>firstPlayerAction,firstPlayerPicksFromHand:()=>firstPlayerPicksFromHand,firstRevealGainsSurge:()=>firstRevealGainsSurge,firstThisRound:()=>firstThisRound,flatten:()=>flatten,flipCard:()=>flipCard,flipCardsCost:()=>flipCardsCost,flipThis:()=>flipThis,focusedMainScheme:()=>focusedMainScheme,forAnIdentityNotInThisGame:()=>forAnIdentityNotInThisGame,forEachCard:()=>forEachCard,forEachPlayer:()=>forEachPlayer,forEachPlayerInChosenOrder:()=>forEachPlayerInChosenOrder,forcedAction:()=>forcedAction,forcedInterrupt:()=>forcedInterrupt,forcedResponse:()=>forcedResponse,formChangeCost:()=>formChangeCost,friendlyCharacterAttacks:()=>friendlyCharacterAttacks,fromAnyAspect:()=>fromAnyAspect,gainFromHiddenPile:()=>gainFromHiddenPile,gainKeywordUntil:()=>gainKeywordUntil,gainTraitUntil:()=>gainTraitUntil,gainTraitsOfUntil:()=>gainTraitsOfUntil,gainsAbility:()=>gainsAbility,gainsIcon:()=>gainsIcon,gainsKeyword:()=>gainsKeyword,gainsKeywordX:()=>gainsKeywordX,gainsKeywordsOf:()=>gainsKeywordsOf,gainsTrait:()=>gainsTrait,gainsTraitsOf:()=>gainsTraitsOf,gameAreasSplit:()=>gameAreasSplit,gameDepsWithPack:()=>gameDepsWithPack,gameDepsWithPacks:()=>gameDepsWithPacks,genePoolThreatOffer:()=>genePoolThreatOffer,generatesAmount:()=>generatesAmount,generatesPerCard:()=>generatesPerCard,gets:()=>gets,giveBasicPowerBoostCard:()=>giveBasicPowerBoostCard,giveBoostCard:()=>giveBoostCard,giveBoostCardsCost:()=>giveBoostCardsCost,giveHeldBoostCard:()=>giveHeldBoostCard,giveStatus:()=>giveStatus,giveStatusCost:()=>giveStatusCost,giveTough:()=>giveTough,gmwBalancedHiddenFields:()=>gmwBalancedHiddenFields,grantAdditionalMulligans:()=>grantAdditionalMulligans,grantOwnedCards:()=>grantOwnedCards,grantedTo:()=>grantedTo,grantingCard:()=>grantingCard,grantsPreparation:()=>grantsPreparation,groupPlayerCount:()=>groupPlayerCount,handCountOf:()=>handCountOf,handSizeOf:()=>handSizeOf,hasAttachment:()=>hasAttachment,hasNamedResource:()=>hasNamedResource,hasPrintedBoostAbility:()=>hasPrintedBoostAbility,hasStatus:()=>hasStatus,hasTaggedAbility:()=>hasTaggedAbility,hasTrait:()=>hasTrait,heal:()=>heal,healCost:()=>healCost,healYourIdentityCost:()=>healYourIdentityCost,heroAction:()=>heroAction,heroInterrupt:()=>heroInterrupt,heroNoCharacterIsTitledAs:()=>heroNoCharacterIsTitledAs,heroResource:()=>heroResource,heroResponse:()=>heroResponse,hiddenPileCount:()=>hiddenPileCount,highestStatAmong:()=>highestStatAmong,hitPointsOf:()=>hitPointsOf,holdMinion:()=>holdMinion,horsemanSidesOffer:()=>horsemanSidesOffer,host:()=>host,identifyMole:()=>identifyMole,identityOf:()=>identityOf,ifElse:()=>ifElse,ifThen:()=>ifThen,ignoreAbilities:()=>ignoreAbilities,ignoreBoost:()=>ignoreBoost,ignoreBoostAbilities:()=>ignoreBoostAbilities,ignoreBoostForThisAttack:()=>ignoreBoostForThisAttack,ignores:()=>ignores,ignoresRetaliate:()=>ignoresRetaliate,inAdditionalForm:()=>inAdditionalForm,inCampaign:()=>inCampaign,inCampaignLogField:()=>inCampaignLogField,inCompetitiveMode:()=>inCompetitiveMode,inDiscard:()=>inDiscard,inEncounterSet:()=>inEncounterSet,inForm:()=>inForm,inGroup:()=>inGroup,inHand:()=>inHand,inMode:()=>inMode,inPlay:()=>inPlay,inPlayAreaOf:()=>inPlayAreaOf,inScenarioPlayArea:()=>inScenarioPlayArea,inVictoryDisplay:()=>inVictoryDisplay,increaseDamage:()=>increaseDamage,increaseDamageTaken:()=>increaseDamageTaken,increaseNextCardCost:()=>increaseNextCardCost,infinitesGenePoolThreatRecommendation:()=>infinitesGenePoolThreatRecommendation,instead:()=>instead,interrupt:()=>interrupt,isAlterEgo:()=>isAlterEgo,isAttached:()=>isAttached,isBaseEncounterSetId:()=>isBaseEncounterSetId,isBaseScenarioId:()=>isBaseScenarioId,isConfused:()=>isConfused,isHero:()=>isHero,isModularChoice:()=>isModularChoice,isNotReadyCard:()=>isNotReadyCard,isPlainJson:()=>isPlainJson,isScenarioSpecificSet:()=>isScenarioSpecificSet,isStunned:()=>isStunned,isUnscriptedAbilityIssue:()=>isUnscriptedAbilityIssue,joinGameArea:()=>joinGameArea,keepsExhausted:()=>keepsExhausted,lastPlayedThisRound:()=>lastPlayedThisRound,leavingPlayLoses:()=>leavingPlayLoses,limitPerPaidCard:()=>limitPerPaidCard,logCardList:()=>logCardList,logCardRef:()=>logCardRef,logFlag:()=>logFlag,logNumber:()=>logNumber,logOption:()=>logOption,logText:()=>logText,lookAt:()=>lookAt,lookAtAndRearrange:()=>lookAtAndRearrange,lookAtTopOfScenarioDeckThenPlace:()=>lookAtTopOfScenarioDeckThenPlace,loseKeywordUntil:()=>loseKeywordUntil,loseTraitUntil:()=>loseTraitUntil,losesIcon:()=>losesIcon,losesKeyword:()=>losesKeyword,made:()=>made,mainSchemeAdvancedBy:()=>mainSchemeAdvancedBy,mainSchemeMarkedBy:()=>mainSchemeMarkedBy,mainSchemePicksOffer:()=>mainSchemePicksOffer,mainSchemeStageGist:()=>mainSchemeStageGist,mainSchemeStageNumber:()=>mainSchemeStageNumber,mainSchemeStagesOffer:()=>mainSchemeStagesOffer,mainSchemeStagesProblem:()=>mainSchemeStagesProblem,max:()=>max,maxDamageTaken:()=>maxDamageTaken,maxOnePerTriggeringInstance:()=>maxOnePerTriggeringInstance,maxSustainedDamage:()=>maxSustainedDamage,mayLookAtTopOfEncounterDeckUntil:()=>mayLookAtTopOfEncounterDeckUntil,mergeCosts:()=>mergeCosts,mergeRegistries:()=>mergeRegistries,min:()=>min,minDamageTaken:()=>minDamageTaken,modifyAttack:()=>modifyAttack,modifyBasicPower:()=>modifyBasicPower,modifyCardEffect:()=>modifyCardEffect,modifyCardEffectsUntil:()=>modifyCardEffectsUntil,modifyConsequentialDamage:()=>modifyConsequentialDamage,modifyStat:()=>modifyStat,modifyStatOf:()=>modifyStatOf,modifyThwart:()=>modifyThwart,modularPickCountProblem:()=>modularPickCountProblem,modularPickCountRange:()=>modularPickCountRange,modularPickProblem:()=>modularPickProblem,modularSetContents:()=>modularSetContents,mojoCheckedOffSets:()=>mojoCheckedOffSets,mojoModularSetPicks:()=>mojoModularSetPicks,mostCommonHandTypeCount:()=>mostCommonHandTypeCount,moveActiveCounterToNextInRow:()=>moveActiveCounterToNextInRow,moveActiveCounterToNextVillain:()=>moveActiveCounterToNextVillain,moveBoostCards:()=>moveBoostCards,moveCards:()=>moveCards,moveCardsInto:()=>moveCardsInto,moveCounters:()=>moveCounters,moveThreat:()=>moveThreat,multiplyStat:()=>multiplyStat,named:()=>named,namedByTeamUpOf:()=>namedByTeamUpOf,nextAfter:()=>nextAfter,not:()=>not,notCountedTowardHandSize:()=>notCountedTowardHandSize,notMatching:()=>notMatching,notOfChosenCardType:()=>notOfChosenCardType,obligation:()=>obligation,ofChosenCardType:()=>ofChosenCardType,ofClassification:()=>ofClassification,ofIdentitySetTitled:()=>ofIdentitySetTitled,ofTeamUpSet:()=>ofTeamUpSet,offersEasierStart:()=>offersEasierStart,offersGenePoolThreat:()=>offersGenePoolThreat,on:()=>on,onChosenMainScheme:()=>onChosenMainScheme,oncePerPaidCard:()=>oncePerPaidCard,oncePerPhase:()=>oncePerPhase,oncePerPhasePerEventPlayer:()=>oncePerPhasePerEventPlayer,oncePerRound:()=>oncePerRound,oncePerRoundPerPlayer:()=>oncePerRoundPerPlayer,oneCopyOf:()=>oneCopyOf,onlyCharacterRemovesThreat:()=>onlyCharacterRemovesThreat,onlySourceRemovesThreat:()=>onlySourceRemovesThreat,onlyThwartsRemoveThreat:()=>onlyThwartsRemoveThreat,opsOfKind:()=>opsOfKind,option:()=>option,otherFaceOf:()=>otherFaceOf,otherPlayers:()=>otherPlayers,outsideFact:()=>outsideFact,overdefeated:()=>overdefeated,overpaidWhenPlayed:()=>overpaidWhenPlayed,ownScriptsOf:()=>ownScriptsOf,ownerOf:()=>ownerOf,packCampaignDefinitionOf:()=>packCampaignDefinitionOf,packCampaignDefinitions:()=>packCampaignDefinitions,packCampaignRecords:()=>packCampaignRecords,packCampaignsOf:()=>packCampaignsOf,packEncounterSetRecords:()=>packEncounterSetRecords,packModularSetChoices:()=>packModularSetChoices,packObligation:()=>obligation,packScenarioOffer:()=>packScenarioOffer,packScenarioRecords:()=>packScenarioRecords,paidCards:()=>paidCards,paidInPlayCards:()=>paidInPlayCards,paidType:()=>paidType,paidTypeCount:()=>paidTypeCount,paidUsingResourceFrom:()=>paidUsingResourceFrom,paidWith:()=>paidWith,paidWithCard:()=>paidWithCard,paidWithOnly:()=>paidWithOnly,paidWithResourceCard:()=>paidWithResourceCard,pairCards:()=>pairCards,pairLimit:()=>pairLimit,partOf:()=>partOf,passEncounterCard:()=>passEncounterCard,payPrintedCostOf:()=>payPrintedCostOf,payingFor:()=>payingFor,perHero:()=>perHero,placeCountersCost:()=>placeCountersCost,placeDamage:()=>placeDamage,placeOnTopOrBottom:()=>placeOnTopOrBottom,placeOnTopOrBottomOfPlayerDeck:()=>placeOnTopOrBottomOfPlayerDeck,placeThreat:()=>placeThreat,placeThreatOnSharedScheme:()=>placeThreatOnSharedScheme,playFromDeckIgnoringCost:()=>playFromDeckIgnoringCost,playFromDeckReducingCost:()=>playFromDeckReducingCost,playFromDiscard:()=>playFromDiscard,playFromHandIgnoringCost:()=>playFromHandIgnoringCost,playFromHandReducingCost:()=>playFromHandReducingCost,playFromSeparateDeck:()=>playFromSeparateDeck,playNote:()=>playNote,playOnlyIf:()=>playOnlyIf,playSetAside:()=>playSetAside,playTuckedCard:()=>playTuckedCard,playWithTopOfDeckFaceup:()=>playWithTopOfDeckFaceup,playWithTopOfEncounterDeckFaceup:()=>playWithTopOfEncounterDeckFaceup,playableAttachments:()=>playableAttachments,playableScenario:()=>playableScenario,playableScenarioOffer:()=>playableScenarioOffer,playableScenarioWithCustom:()=>playableScenarioWithCustom,playableStarterDeckSetup:()=>playableStarterDeckSetup,playableTopOfDeck:()=>playableTopOfDeck,playableTucked:()=>playableTucked,playedThisPhase:()=>playedThisPhase,playedThisRound:()=>playedThisRound,playedThisTurn:()=>playedThisTurn,playedVia:()=>playedVia,playerOrElse:()=>playerOrElse,playersCannotDiscard:()=>playersCannotDiscard,playersWhere:()=>playersWhere,preparation:()=>preparation,preventAllDamageTo:()=>preventAllDamageTo,preventConsequentialDamage:()=>preventConsequentialDamage,preventDamage:()=>preventDamage,preventThreat:()=>preventThreat,printedBoostAreaIconsOn:()=>printedBoostAreaIconsOn,printedCostAtLeast:()=>printedCostAtLeast,printedCostOf:()=>printedCostOf,printedForm:()=>printedForm,printedHpNumeralOf:()=>printedHpNumeralOf,printedHpOf:()=>printedHpOf,printedResourcesInHandAs:()=>printedResourcesInHandAs,printedResourcesOf:()=>printedResourcesOf,printedStatOf:()=>printedStatOf,printsAbility:()=>printsAbility,product:()=>product,publishIssues:()=>publishIssues,putIntoPlay:()=>putIntoPlay,putIntoPlayAsHost:()=>putIntoPlayAsHost,putIntoPlayFacedown:()=>putIntoPlayFacedown,putIntoPlayFromSetAside:()=>putIntoPlayFromSetAside,putLinkedAllyIntoPlay:()=>putLinkedAllyIntoPlay,putMainSchemeStageIntoPlay:()=>putMainSchemeStageIntoPlay,query:()=>query,raiseMoment:()=>raiseMoment,randomCivilWarScenario:()=>randomCivilWarScenario,reachableFromPod:()=>reachableFromPod,reaching:()=>reaching,readPackInput:()=>readPackInput,readsAtkOf:()=>readsAtkOf,readsPaymentTypesOf:()=>readsPaymentTypesOf,ready:()=>ready,readyCardsCost:()=>readyCardsCost,recordInCampaignLog:()=>recordInCampaignLog,reduceCostOfCards:()=>reduceCostOfCards,reduceCostToPlay:()=>reduceCostToPlay,reduceDamage:()=>reduceDamage,reduceDamageTo:()=>reduceDamageTo,reduceNextCardCost:()=>reduceNextCardCost,reducesAttackDamageTaken:()=>reducesAttackDamageTaken,refCount:()=>refCount,refMatches:()=>refMatches,remainingHpCompare:()=>remainingHpCompare,remainingHpOf:()=>remainingHpOf,removeAccelerationToken:()=>removeAccelerationToken,removeAllCounters:()=>removeAllCounters,removeAllCountersFrom:()=>removeAllCountersFrom,removeAnAccelerationToken:()=>removeAnAccelerationToken,removeCounter:()=>removeCounter,removeCountersAmong:()=>removeCountersAmong,removeCountersFrom:()=>removeCountersFrom,removeEachCounterFrom:()=>removeEachCounterFrom,removeFromCampaign:()=>removeFromCampaign,removeMainSchemeStage:()=>removeMainSchemeStage,removeMainSchemeStages:()=>removeMainSchemeStages,removeStatus:()=>removeStatus,removeThreat:()=>removeThreat,removeThreatCost:()=>removeThreatCost,removeThreatFromAScheme:()=>removeThreatFromAScheme,removeThreatFromChosenCost:()=>removeThreatFromChosenCost,removeThreatUpToCost:()=>removeThreatUpToCost,removeUpToCounters:()=>removeUpToCounters,removeVillain:()=>removeVillain,removedFromGameCards:()=>removedFromGameCards,reorderCards:()=>reorderCards,repeatTimes:()=>repeatTimes,repeatWhile:()=>repeatWhile,replaceAttachHost:()=>replaceAttachHost,replaceBoostCount:()=>replaceBoostCount,replaceLeaveDestination:()=>replaceLeaveDestination,replaceNextVillainPhaseWithPlayerPhase:()=>replaceNextVillainPhaseWithPlayerPhase,replaceStatus:()=>replaceStatus,replaceTuckHost:()=>replaceTuckHost,reportFact:()=>reportFact,resetHitPoints:()=>resetHitPoints,resolveAttackAgainst:()=>resolveAttackAgainst,resolveBoostAbilitiesOf:()=>resolveBoostAbilitiesOf,resolveForcedInterruptOf:()=>resolveForcedInterruptOf,resolveForcedResponseCost:()=>resolveForcedResponseCost,resolveForcedResponseOf:()=>resolveForcedResponseOf,resolveModes:()=>resolveModes,resolveOneTagged:()=>resolveOneTagged,resolvePreparationsOf:()=>resolvePreparationsOf,resolveSetups:()=>resolveSetups,resolveSpecialCost:()=>resolveSpecialCost,resolveSpecials:()=>resolveSpecials,resolveSpecialsOf:()=>resolveSpecialsOf,resolveTagged:()=>resolveTagged,resolveWhenDefeatedOf:()=>resolveWhenDefeatedOf,resolveWhenRevealedOf:()=>resolveWhenRevealedOf,resource:()=>resource,resourceTypesOf:()=>resourceTypesOf,resourcesGeneratedAsWild:()=>resourcesGeneratedAsWild,resourcesPaidBy:()=>resourcesPaidBy,response:()=>response,restrictedLimit:()=>restrictedLimit,retargetAttack:()=>retargetAttack,retargetPlayerAttack:()=>retargetPlayerAttack,returnEachToHandCost:()=>returnEachToHandCost,returnToHandAfterResolving:()=>returnToHandAfterResolving,returnToHandCost:()=>returnToHandCost,revealCard:()=>revealCard,revealEncounterCard:()=>revealEncounterCard,revealFromSetAsideModularSet:()=>revealFromSetAsideModularSet,revealHeldMinion:()=>revealHeldMinion,revealHiddenPile:()=>revealHiddenPile,revealInstead:()=>revealInstead,revealMainSchemeStage:()=>revealMainSchemeStage,revealNextVillainStage:()=>revealNextVillainStage,revealSetAside:()=>revealSetAside,revealTopOfScenarioDeck:()=>revealTopOfScenarioDeck,revealTopOfSeparateDeck:()=>revealTopOfSeparateDeck,revealedFromEncounterDeck:()=>revealedFromEncounterDeck,revealedPileCardCount:()=>revealedPileCardCount,rotateEngagement:()=>rotateEngagement,rule:()=>rule,sameClassificationAs:()=>sameClassificationAs,scaled:()=>scaled,scenarioArea:()=>scenarioArea,scenarioAreaCount:()=>scenarioAreaCount,scenarioDeck:()=>scenarioDeck,scenarioGameSetIds:()=>scenarioGameSetIds,scenarioSideClause:()=>scenarioSideClause,scenarioWithPacks:()=>scenarioWithPacks,scenarioWithVillain:()=>scenarioWithVillain,schemeStartedByAttackBoost:()=>schemeStartedByAttackBoost,schemeThreatOn:()=>schemeThreatOn,searchAndReveal:()=>searchAndReveal,searchCollection:()=>searchCollection,searchEncounterIntoPlayCost:()=>searchEncounterIntoPlayCost,seedHiddenPiles:()=>seedHiddenPiles,selectCards:()=>selectCards,self:()=>self,sentence:()=>sentence,separateDeckCards:()=>separateDeckCards,separateDeckCountOf:()=>separateDeckCountOf,setActiveVillain:()=>setActiveVillain,setAside:()=>setAside,setAsideDestination:()=>setAsideDestination,setAsideModularSetCount:()=>setAsideModularSetCount,setDefeatDestination:()=>setDefeatDestination,setRemainingHitPoints:()=>setRemainingHitPoints,setVar:()=>setVar,setVillainAside:()=>setVillainAside,setVillainSide:()=>setVillainSide,setup:()=>setup,sha256Hex:()=>sha256Hex,sharesTitleWith:()=>sharesTitleWith,sharesTraitWith:()=>sharesTraitWith,sharesTraitWithHeroOf:()=>sharesTraitWithHeroOf,shuffleDeck:()=>shuffleDeck,shuffleEncounterDeck:()=>shuffleEncounterDeck,shuffleInSetAsideModularSet:()=>shuffleInSetAsideModularSet,shuffleIntoSeparateDeck:()=>shuffleIntoSeparateDeck,shuffleMainSchemeStageGroup:()=>shuffleMainSchemeStageGroup,shuffleMainSchemeStages:()=>shuffleMainSchemeStages,shuffleSeparateDeck:()=>shuffleSeparateDeck,shuffleTopOfSeparateDeckIntoEncounterDeck:()=>shuffleTopOfSeparateDeckIntoEncounterDeck,sitOut:()=>sitOut,skipNextVillainPhase:()=>skipNextVillainPhase,skippedCommunityDecks:()=>skippedCommunityDecks,skirmishOffer:()=>skirmishOffer,special:()=>special,spend:()=>spend,spendChosen:()=>spendChosen,spendDifferentResources:()=>spendDifferentResources,spendEqualTo:()=>spendEqualTo,spendPrinted:()=>spendPrinted,spendResources:()=>spendResources,spendSameType:()=>spendSameType,spendUpTo:()=>spendUpTo,spendX:()=>spendX,spendXResources:()=>spendXResources,spendableForAnyPlayer:()=>spendableForAnyPlayer,spendableForPlayersWhere:()=>spendableForPlayersWhere,spendableFromTucked:()=>spendableFromTucked,splitIssues:()=>splitIssues,standardSetReplaceable:()=>standardSetReplaceable,starIconsOn:()=>starIconsOn,starterDeckSetup:()=>starterDeckSetup,statCompare:()=>statCompare,statOf:()=>statOf,stateCheck:()=>stateCheck,stateCheckFromEntering:()=>stateCheckFromEntering,statusCount:()=>statusCount,statusLimit:()=>statusLimit,staysInHand:()=>staysInHand,stillCountedByDiscarder:()=>stillCountedByDiscarder,stun:()=>stun,sum:()=>sum,superlative:()=>superlative,superlativePlayer:()=>superlativePlayer,surge:()=>surge,swapCards:()=>swapCards,swapIdentity:()=>swapIdentity,swapMainScheme:()=>swapMainScheme,swapVillain:()=>swapVillain,swapVillainByTrait:()=>swapVillainByTrait,tagged:()=>tagged,taggedAbilitiesOn:()=>taggedAbilitiesOn,takeAnyDamageCost:()=>takeAnyDamageCost,takeControl:()=>takeControl,takeDamage:()=>takeDamage,takeDamageCost:()=>takeDamageCost,takeIndirectDamageCost:()=>takeIndirectDamageCost,takeIntoHand:()=>takeIntoHand,takesConsequentialDamage:()=>takesConsequentialDamage,takesDamageOnlyFrom:()=>takesDamageOnlyFrom,takesDamageOnlyFromAttacks:()=>takesDamageOnlyFromAttacks,takesFirstTurn:()=>takesFirstTurn,teamUpCharacter:()=>teamUpCharacter,teamUpCharacters:()=>teamUpCharacters,textBoxCannotBeBlanked:()=>textBoxCannotBeBlanked,thatAttackGainsKeywords:()=>thatAttackGainsKeywords,thatPlayer:()=>thatPlayer,theAccused:()=>theAccused,theAffectedCard:()=>theAffectedCard,theMainScheme:()=>theMainScheme,theMole:()=>theMole,theVillain:()=>theVillain,thisCardGenerates:()=>thisCardGenerates,thisGroup:()=>thisGroup,threatAtLeast:()=>threatAtLeast,threatOn:()=>threatOn,thwart:()=>thwart,thwartAScheme:()=>thwartAScheme,thwartInProgress:()=>thwartInProgress,thwartTarget:()=>thwartTarget,titled:()=>titled,toScenarioDeck:()=>toScenarioDeck,topOfDeck:()=>topOfDeck,topOfDeckIsFaceup:()=>topOfDeckIsFaceup,topOfDeckMatches:()=>topOfDeckMatches,topOfEncounterDeckIsFaceup:()=>topOfEncounterDeckIsFaceup,topOfEncounterDeckMatches:()=>topOfEncounterDeckMatches,topOfEncounterDeckShowsIcons:()=>topOfEncounterDeckShowsIcons,topOfEncounterDeckShowsNoIcons:()=>topOfEncounterDeckShowsNoIcons,topOfYourDeckHas:()=>topOfYourDeckHas,totalPrintedCost:()=>totalPrintedCost,totalPrintedResources:()=>totalPrintedResources,totalStatOf:()=>totalStatOf,traitEncounterDeck:()=>traitEncounterDeck,traitNumber:()=>traitNumber,treatAsAlly:()=>treatAsAlly,treatAsMinion:()=>treatAsMinion,treatAttachedAllyAsMinion:()=>treatAttachedAllyAsMinion,treatAttachedHeroAsMinion:()=>treatAttachedHeroAsMinion,treatAttachedMinionAsAlly:()=>treatAttachedMinionAsAlly,treatAttachedVillainAsMinion:()=>treatAttachedVillainAsMinion,treatSelfAsAlly:()=>treatSelfAsAlly,tuckCards:()=>tuckCards,tuckLimit:()=>tuckLimit,tuckedCount:()=>tuckedCount,tuckedUnder:()=>tuckedUnder,tuckedUnderRef:()=>tuckedUnderRef,turnFacedown:()=>turnFacedown,uncancellable:()=>uncancellable,undefendedAttack:()=>undefendedAttack,upgradesCannotBeRemoved:()=>upgradesCannotBeRemoved,useActionAbility:()=>useActionAbility,useThwInsteadOfAtk:()=>useThwInsteadOfAtk,usingBasicPower:()=>usingBasicPower,validateBuiltinPack:()=>validateBuiltinPack,validateDefinition:()=>validateDefinition,validatePack:()=>validatePack,valueAtLeast:()=>valueAtLeast,valueAtMost:()=>valueAtMost,valueEquals:()=>valueEquals,varAtLeast:()=>varAtLeast,varFor:()=>varFor,varOf:()=>varOf,victoryCondition:()=>victoryCondition,victoryDisplayCards:()=>victoryDisplayCards,victoryDisplayCount:()=>victoryDisplayCount,villainChoiceOf:()=>villainChoiceOf,villainChoiceOffer:()=>villainChoiceOffer,villainOnSide:()=>villainOnSide,villainOptionOf:()=>villainOptionOf,villainStageNumberOf:()=>villainStageNumberOf,wave10Scenario:()=>wave10Scenario,wave10StarterDeckSetup:()=>wave10StarterDeckSetup,wave11Scenario:()=>wave11Scenario,wave11ScenarioRecord:()=>wave11ScenarioRecord,wave11StarterDeckSetup:()=>wave11StarterDeckSetup,wave1ReprintPairs:()=>wave1ReprintPairs,wave1Scenario:()=>wave1Scenario,wave1StarterDeckSetup:()=>wave1StarterDeckSetup,wave2ReprintPairs:()=>wave2ReprintPairs,wave2Scenario:()=>wave2Scenario,wave2StarterDeckSetup:()=>wave2StarterDeckSetup,wave3ReprintPairs:()=>wave3ReprintPairs,wave3Scenario:()=>wave3Scenario,wave3StarterDeckSetup:()=>wave3StarterDeckSetup,wave7Scenario:()=>wave7Scenario,wave7StarterDeckSetup:()=>wave7StarterDeckSetup,wave8Scenario:()=>wave8Scenario,wave8StarterDeckSetup:()=>wave8StarterDeckSetup,wave9Scenario:()=>wave9Scenario,wave9StarterDeckSetup:()=>wave9StarterDeckSetup,when:()=>when,whenCompleted:()=>whenCompleted,whenDefeated:()=>whenDefeated,whenRevealed:()=>whenRevealed,whenRevealedAlterEgo:()=>whenRevealedAlterEgo,whenRevealedHero:()=>whenRevealedHero,whenSpentGenerate:()=>whenSpentGenerate,whileOnChosenMainScheme:()=>whileOnChosenMainScheme,whileTucked:()=>whileTucked,withFewestCounters:()=>withFewestCounters,withModularSetContents:()=>withModularSetContents,withMostCounters:()=>withMostCounters,you:()=>you,youAre:()=>youAre,youAreNamed:()=>youAreNamed,youHaveTrait:()=>youHaveTrait,yourIdentity:()=>yourIdentity,yourLeader:()=>yourLeader,yourMainScheme:()=>yourMainScheme,yourTeam:()=>yourTeam,zone:()=>zone,zoneCountOf:()=>zoneCountOf});var isFormOf=(owner,identity)=>owner?.type==="hero_identity"&&identity.type==="hero_identity"&&(owner.id===identity.id||owner.name===identity.name&&owner.obligationCardId===identity.obligationCardId),errorText=error=>error instanceof Error?error.message:String(error);function builtinGameDeps(packs){let abilities={};for(let pack of packs)for(let[id,definition]of Object.entries(pack.abilities)){if(Object.hasOwn(abilities,id))throw new Error(`ability ${id} is scripted by two built-in packs`);abilities[id]=definition}return{abilities}}function validateBuiltinPack(pack,options={}){let issues=[],add=(path,message,category)=>{issues.push(category?{path,message,category}:{path,message})},check=(path,run)=>{try{for(let message of run().errors)add(path,message)}catch(error){add(path,`could not be checked: ${errorText(error)}`)}},required=options.requires??[],all=[pack,...required],scripts={},cards2=new Map;for(let other of required){Object.assign(scripts,other.abilities);for(let card of other.cards)cards2.set(card.id,card)}for(let id of Object.keys(pack.abilities))Object.hasOwn(scripts,id)&&add(`abilities/${id}`,"is also scripted by a pack this one requires");for(let card of pack.cards)cards2.has(card.id)&&add(`cards/${card.id}`,"is also a card of a pack this one requires");Object.assign(scripts,pack.abilities);for(let card of pack.cards)cards2.set(card.id,card);let sets=all.flatMap(p=>p.encounterSets),setIds=new Set(sets.map(set=>set.id)),supported=new Set(options.supportedFeatures??SUPPORTED_DSL_FEATURES),cardOfType=(at,field,id,type)=>{let card=cards2.get(id);card?card.type!==type&&add(at,`${field} "${id}" is a ${card.type}, not a ${type}`):add(at,`${field} "${id}" is in neither this pack nor the packs it requires`)};for(let problem of builtinPackProblems(pack))add("pack",problem);for(let card of pack.cards){let at=`cards/${card.id}`;check(at,()=>validateCard(card));for(let ref of abilityRefsOf(card))Object.hasOwn(scripts,ref)||add(at,`ability "${ref}" is not scripted`,"unscripted-ability");let cardSets="encounterSetIds"in card?card.encounterSetIds:[];for(let setId of cardSets)setIds.has(setId)||add(at,`encounter set "${setId}" is in neither this pack nor the packs it requires`);if(card.type==="hero_identity"){cardOfType(at,"obligationCardId",card.obligationCardId,"obligation");let nemesis=sets.find(set=>set.id===card.nemesisEncounterSetId);nemesis?isFormOf(pack.cards.find(own=>own.id===nemesis.nemesisOfIdentityId),card)||add(at,`nemesis set "${card.nemesisEncounterSetId}" is not this hero's nemesis set`):add(at,`nemesis set "${card.nemesisEncounterSetId}" is in neither this pack nor the packs it requires`)}}for(let[id,definition]of Object.entries(pack.abilities))try{for(let problem of validateDefinition(definition))add(`abilities/${id}`,problem)}catch(error){add(`abilities/${id}`,`could not be checked: ${errorText(error)}`)}for(let feature of dslFeatures(pack.abilities))supported.has(feature)||add("abilities",`uses DSL feature "${feature}", which this game version lacks`);for(let deck of pack.decks){let at=`decks/${deck.id}`;check(at,()=>validateStarterDeck(deck)),cardOfType(at,"identity",deck.identityCardId,"hero_identity");for(let{cardId}of deck.cards)cards2.has(cardId)||add(at,`card "${cardId}" is in neither this pack nor the packs it requires`)}for(let set of pack.encounterSets)check(`encounterSets/${set.id}`,()=>validateEncounterSet(set));for(let scenario of pack.scenarios){let at=`scenarios/${scenario.id}`;check(at,()=>validateScenario(scenario)),check(at,()=>validateScenarioEncounterSets(scenario,sets)),cardOfType(at,"villainCardId",scenario.villainCardId,"villain"),cardOfType(at,"mainSchemeCardId",scenario.mainSchemeCardId,"main_scheme")}return issues}export{builtinGameDeps,validateBuiltinPack,src_exports};