@gaialabs/iog-baserom 0.2.2 → 0.2.3

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.
@@ -38,7 +38,7 @@ SkipScriptCommands! {
38
38
  REP #$20
39
39
  ASL
40
40
  TAX
41
- LDA $@label_list, X
41
+ LDA $@meta_label_list, X
42
42
  SEC
43
43
  SBC $3A
44
44
  TAY
@@ -44,3 +44,7 @@ actor_def < #0A, #00, #10, {
44
44
  skyd_str_intro `[DEF]I'm the Sky Deliveryman. [N]My tame birds [LU1:EF][LU1:E7][N]you to [LU1:85]towns. [FIN]Do you [LU1:F1]to[N]go to Watermia?[N] Quit[N] Go`
45
45
  skyd_str_cancel `[CLR]OK. In [LU1:D7]case,[N]use [LU1:E6]later.[END]`
46
46
  skyd_str_confirm `[CLR][LU1:9]here, birds.[N][LU2:3F]taking [LU1:D6]person[N]to Watermia![END]`
47
+
48
+ ----------------------------------------
49
+
50
+ scene_event_0C8221+: actor-spawn < #0C, #2F, #00, @SouthCapeDeliveryman >
@@ -0,0 +1,2 @@
1
+
2
+ scene_event_0CB41F+: actor-spawn < #14, #23, #07, @wa78_men >
package/dist/index.cjs CHANGED
@@ -5406,7 +5406,7 @@ var blocks_default$1 = {
5406
5406
  "start": 884736,
5407
5407
  "end": 897023,
5408
5408
  "type": "scene-meta",
5409
- "postProcess": "Lookup(0,1)&&Label(label)",
5409
+ "postProcess": "Lookup(0,1)&&Label(label,meta_label)",
5410
5410
  "movable": true
5411
5411
  },
5412
5412
  "table_0E8000": {
@@ -30924,14 +30924,6 @@ var transforms_default$1 = {
30924
30924
  {
30925
30925
  "key": "`Shrine `",
30926
30926
  "value": "`Shrine`"
30927
- },
30928
- {
30929
- "key": "actor-spawn < #08, #0C, #03, @hidden_red_jewel >",
30930
- "value": "$&\r\n actor-spawn < #0C, #2F, #00, @SouthCapeDeliveryman >"
30931
- },
30932
- {
30933
- "key": "actor-spawn < #12, #38, #11, @hidden_red_jewel >",
30934
- "value": "$&\r\n actor-spawn < #14, #23, #07, @wa78_men >"
30935
30927
  }
30936
30928
  ],
30937
30929
  scene_meta: [
@@ -30952,12 +30944,12 @@ var transforms_default$1 = {
30952
30944
  "value": "music < #1F, #00, @bgm_illusion_of_gaia >"
30953
30945
  },
30954
30946
  {
30955
- "key": "mapdef_0041 \\[\\s+ppu < #00 >",
30956
- "value": "mapdef_0041 [\r\n ppu < #11 >"
30947
+ "key": "scene_meta_0041 \\[\\s+display-mode < #00 >",
30948
+ "value": "scene_meta_0041 [\r\n display-mode < #11 >"
30957
30949
  }
30958
30950
  ],
30959
30951
  diary_menu_window_dma: [{
30960
- "key": "(dma_data_00BC4C\\s\\[\\s*\\])[\\s]*(dma_data_00BC4D\\s\\[[^\\]]*\\])",
30952
+ "key": "(dma_channel_00BC4C\\s\\[\\s*\\])[\\s]*(dma_channel_00BC4D\\s\\[[^\\]]*\\])",
30961
30953
  "value": "$2\r\n\r\n$1"
30962
30954
  }],
30963
30955
  system_strings: [
@@ -32239,36 +32231,36 @@ var names_default$1 = {
32239
32231
  "254549": "DialogStringRenderer",
32240
32232
  "254559": "DialogString_CharLoop",
32241
32233
  "254659": "DialogStringCommandTable",
32242
- "254709": "WideCmd_EndAndWait",
32243
- "254727": "WideCmd_Return",
32244
- "254735": "WideCmd_SetPosition",
32245
- "254773": "WideCmd_InsertTemplate",
32246
- "254811": "WideCmd_SetPalette",
32247
- "254827": "WideCmd_InfiniteLoop",
32248
- "254831": "WideCmd_IndirectString",
32249
- "254867": "WideCmd_PrintNumber",
32234
+ "254709": "DialogCmd_EndAndWait",
32235
+ "254727": "DialogCmd_Return",
32236
+ "254735": "DialogCmd_SetPosition",
32237
+ "254773": "DialogCmd_InsertTemplate",
32238
+ "254811": "DialogCmd_SetPalette",
32239
+ "254827": "DialogCmd_InfiniteLoop",
32240
+ "254831": "DialogCmd_IndirectString",
32241
+ "254867": "DialogCmd_PrintNumber",
32250
32242
  "255023": "HexDigitTileTable",
32251
- "255039": "WideCmd_OpenDialogueBox",
32243
+ "255039": "DialogCmd_OpenDialogueBox",
32252
32244
  "255059": "OpenDialogueBox_Body",
32253
32245
  "255182": "DialogueBorderTiles",
32254
32246
  "255198": "DrawDialogueBorderRow",
32255
32247
  "255237": "DrawDialogueBodyRows",
32256
- "255353": "WideCmd_ClearDialogueBox",
32257
- "255467": "WideCmd_WaitFrames",
32258
- "255480": "WideCmd_NewLine",
32259
- "255518": "WideCmd_AdvanceCursor",
32260
- "255542": "WideCmd_InsertRemoteString",
32261
- "255574": "WideCmd_ClearBox",
32262
- "255652": "WideCmd_WaitForButton",
32263
- "255698": "WideCmd_WaitForAnyInput",
32264
- "255719": "WideCmd_JumpToAddress",
32265
- "255724": "WideCmd_SetSfx",
32266
- "255735": "WideCmd_OpenDefaultBox",
32267
- "255777": "WideCmd_SetPaletteColor",
32268
- "255798": "WideCmd_SetFrameDelay",
32269
- "255811": "WideCmd_DictionaryA",
32270
- "255849": "WideCmd_DictionaryB",
32271
- "255887": "WideCmd_PrintRawTiles",
32248
+ "255353": "DialogCmd_ClearDialogueBox",
32249
+ "255467": "DialogCmd_WaitFrames",
32250
+ "255480": "DialogCmd_NewLine",
32251
+ "255518": "DialogCmd_AdvanceCursor",
32252
+ "255542": "DialogCmd_InsertRemoteString",
32253
+ "255574": "DialogCmd_ClearBox",
32254
+ "255652": "DialogCmd_WaitForButton",
32255
+ "255698": "DialogCmd_WaitForAnyInput",
32256
+ "255719": "DialogCmd_JumpToAddress",
32257
+ "255724": "DialogCmd_SetSfx",
32258
+ "255735": "DialogCmd_OpenDefaultBox",
32259
+ "255777": "DialogCmd_SetPaletteColor",
32260
+ "255798": "DialogCmd_SetFrameDelay",
32261
+ "255811": "DialogCmd_DictionaryA",
32262
+ "255849": "DialogCmd_DictionaryB",
32263
+ "255887": "DialogCmd_PrintRawTiles",
32272
32264
  "255922": "WaitOneFrame",
32273
32265
  "255925": "WaitNFrames_Entry",
32274
32266
  "255930": "WaitNFrames_PerChar",
@@ -56100,7 +56092,7 @@ async function extract(romPath, outPath, options) {
56100
56092
  if (!romPath) romPath = process.env.ROM_PATH;
56101
56093
  if (!outPath) outPath = "./extracted";
56102
56094
  var dbRoot = _gaialabs_core.DbRootUtils.fromGameModule(db);
56103
- if (options.linetracking) dbRoot.config.emitLineTracking = true;
56095
+ if (options?.includes("linetracking")) dbRoot.config.emitLineTracking = true;
56104
56096
  await _gaialabs_core.DbRootUtils.extractAllContent(dbRoot, romPath, outPath);
56105
56097
  }
56106
56098
  async function extractJP(romPath, outPath) {
@@ -56109,7 +56101,7 @@ async function extractJP(romPath, outPath) {
56109
56101
  var dbRoot = _gaialabs_core.DbRootUtils.fromGameModule(jp);
56110
56102
  await _gaialabs_core.DbRootUtils.extractAllContent(dbRoot, romPath, outPath);
56111
56103
  }
56112
- async function rebuild(inPath, outPath, baseRomPath, modulePaths) {
56104
+ async function rebuild(inPath, outPath, baseRomPath, modulePaths, options) {
56113
56105
  if (!inPath) inPath = "./extracted";
56114
56106
  if (!outPath) outPath = `./rebuilt/${process.env.ROM_NAME ?? "Illusion of Gaia - Rebuilt"}.smc`;
56115
56107
  if (!baseRomPath) baseRomPath = (0, path.join)(__pkgRoot, "baserom");
@@ -56119,23 +56111,29 @@ async function rebuild(inPath, outPath, baseRomPath, modulePaths) {
56119
56111
  baseRomPath,
56120
56112
  ...modulePaths || []
56121
56113
  ], outPath);
56122
- const artifactPath = "./artifacts";
56123
- const fileLayoutArtifact = outData.files.filter((file) => file.size > 0).sort((a, b) => a.location - b.location).map((file) => {
56124
- return ` "${file.location.toString(16).toUpperCase().padStart(6, "0")}" : "${file.name}"`;
56125
- });
56126
- const fileLayoutArtifactText = `{${_gaialabs_core.RomProcessingConstants.NEWLINE}${fileLayoutArtifact.join("," + _gaialabs_core.RomProcessingConstants.NEWLINE)}${_gaialabs_core.RomProcessingConstants.NEWLINE}}`;
56127
- await (0, _gaialabs_core.saveFileAsText)((0, path.join)(artifactPath, "file-layout.json"), fileLayoutArtifactText);
56128
- const masterArtifact = Object.entries(outData.masterLookup).filter((entry) => !entry[0].match(/[!+-]$/)).sort((a, b) => a[1].location - b[1].location).map((entry) => {
56129
- return ` "${entry[0]}": "${entry[1].location.toString(16).toUpperCase().padStart(6, "0")}"`;
56130
- });
56131
- const masterArtifactText = `{${_gaialabs_core.RomProcessingConstants.NEWLINE}${masterArtifact.join("," + _gaialabs_core.RomProcessingConstants.NEWLINE)}${_gaialabs_core.RomProcessingConstants.NEWLINE}}`;
56132
- await (0, _gaialabs_core.saveFileAsText)((0, path.join)(artifactPath, "master-lookup.json"), masterArtifactText);
56133
- const crc = (0, _gaialabs_core.crc32_buffer)(outData.romData);
56134
- const crcText = JSON.stringify({
56135
- checksum: outData.header.checksum,
56136
- crc
56137
- }, null, 2);
56138
- await (0, _gaialabs_core.saveFileAsText)((0, path.join)(artifactPath, "crc.json"), crcText);
56114
+ if (options?.includes("artifacts")) {
56115
+ console.log("Generating artifacts...");
56116
+ const artifactPath = "./artifacts";
56117
+ let totalSize = 0;
56118
+ const fileLayoutArtifact = outData.files.filter((file) => file.size > 0).sort((a, b) => a.location - b.location).map((file) => {
56119
+ totalSize += file.size;
56120
+ return ` "${file.location.toString(16).toUpperCase().padStart(6, "0")}" : "${file.name}"`;
56121
+ });
56122
+ const fileLayoutArtifactText = `{${_gaialabs_core.RomProcessingConstants.NEWLINE}${fileLayoutArtifact.join("," + _gaialabs_core.RomProcessingConstants.NEWLINE)}${_gaialabs_core.RomProcessingConstants.NEWLINE}}`;
56123
+ await (0, _gaialabs_core.saveFileAsText)((0, path.join)(artifactPath, "file-layout.json"), fileLayoutArtifactText);
56124
+ const masterArtifact = Object.entries(outData.masterLookup).filter((entry) => !entry[0].match(/[!+-]$/)).sort((a, b) => a[1].location - b[1].location).map((entry) => {
56125
+ return ` "${entry[0]}": "${entry[1].location.toString(16).toUpperCase().padStart(6, "0")}"`;
56126
+ });
56127
+ const masterArtifactText = `{${_gaialabs_core.RomProcessingConstants.NEWLINE}${masterArtifact.join("," + _gaialabs_core.RomProcessingConstants.NEWLINE)}${_gaialabs_core.RomProcessingConstants.NEWLINE}}`;
56128
+ await (0, _gaialabs_core.saveFileAsText)((0, path.join)(artifactPath, "master-lookup.json"), masterArtifactText);
56129
+ const crc = (0, _gaialabs_core.crc32_buffer)(outData.romData);
56130
+ const crcText = JSON.stringify({
56131
+ checksum: outData.header.checksum,
56132
+ crc,
56133
+ totalSize
56134
+ }, null, 2);
56135
+ await (0, _gaialabs_core.saveFileAsText)((0, path.join)(artifactPath, "crc.json"), crcText);
56136
+ }
56139
56137
  }
56140
56138
  async function rebuildJp(inPath, outPath, baseRomPath, modulePaths) {
56141
56139
  if (!inPath) inPath = "./extracted-jp";
@@ -56160,10 +56158,6 @@ if ((0, path.resolve)(process.argv[1] || "") === (0, url.fileURLToPath)(require(
56160
56158
  index--;
56161
56159
  }
56162
56160
  }
56163
- const options = flags.reduce((acc, flag) => {
56164
- acc[flag] = true;
56165
- return acc;
56166
- }, {});
56167
56161
  (async () => {
56168
56162
  try {
56169
56163
  switch (command) {
@@ -56171,7 +56165,7 @@ if ((0, path.resolve)(process.argv[1] || "") === (0, url.fileURLToPath)(require(
56171
56165
  console.log("Starting ROM extraction...");
56172
56166
  console.log("ROM Path:", args[0]);
56173
56167
  console.log("Output Path:", args[1] || "../extracted");
56174
- await extract(args[0], args[1], options);
56168
+ await extract(args[0], args[1], flags);
56175
56169
  console.log("ROM extraction completed successfully!");
56176
56170
  break;
56177
56171
  case "extract-jp":
@@ -56183,7 +56177,7 @@ if ((0, path.resolve)(process.argv[1] || "") === (0, url.fileURLToPath)(require(
56183
56177
  break;
56184
56178
  case "rebuild":
56185
56179
  console.log("Starting ROM rebuild...");
56186
- await rebuild(args[0], args[1], args[2]);
56180
+ await rebuild(args[0], args[1], args[2], void 0, flags);
56187
56181
  console.log("ROM rebuild completed successfully!");
56188
56182
  break;
56189
56183
  case "rebuild-jp":
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["snes","mnemonics","overrides","blocks","copdef","files","groups","strings","structs","config","fileTypes","mnemonicsJP","overridesJP","rewritesJP","blocksJP","copdefJP","filesJP","groupsJP","labelsJP","stringsJP","structsJP","transformsJP","configJP","fileTypesJP","namesJP","DbRootUtils","RomProcessingConstants"],"sources":["../db-us/config.json","../db-us/blocks.json","../db-us/copdef.json","../db-us/files.json","../db-us/groups.json","../db-us/labels.json","../db-us/mnemonics.json","../db-us/overrides.json","../db-us/rewrites.json","../db-us/stringTypes.json","../db-us/structs.json","../db-us/transforms.json","../db-us/fileTypes.json","../db-us/names.json","../db-us/types.json","../db-jp/config.json","../db-jp/blocks.json","../db-jp/files.json","../db-jp/groups.json","../db-jp/labels.json","../db-jp/overrides.json","../db-jp/rewrites.json","../db-jp/stringTypes.json","../db-jp/structs.json","../db-jp/transforms.json","../db-jp/names.json","../src/index.ts"],"sourcesContent":["","","","","","","","","","","","","","","","","","","","","","","","","","","import { fileURLToPath } from 'url';\r\nimport { dirname, join, resolve } from 'path';\r\nimport { existsSync, readdirSync, readFileSync } from 'fs';\r\nimport { DbBlock, DbFile, DbGroup, DbStringType, DbStruct, CopDef, DbFileType, AsmBlock, saveFileAsText, RomProcessingConstants, crc32_buffer } from '@gaialabs/core';\r\nimport { DbRootUtils } from '@gaialabs/core';\r\nimport type { DbAddressingMode, DbConfig, DbGameRomModule } from '@gaialabs/core';\r\nimport { snes } from '@gaialabs/core';\r\n\r\nconst __pkgRoot = join(dirname(fileURLToPath(import.meta.url)), '..');\r\n\r\nimport config from '../db-us/config.json' with { type: 'json' };\r\nimport blocks from '../db-us/blocks.json' with { type: 'json' };\r\nimport copdef from '../db-us/copdef.json' with { type: 'json' };\r\nimport files from '../db-us/files.json' with { type: 'json' };\r\nimport groups from '../db-us/groups.json' with { type: 'json' };\r\nimport labels from '../db-us/labels.json' with { type: 'json' };\r\nimport mnemonics from '../db-us/mnemonics.json' with { type: 'json' };\r\nimport overrides from '../db-us/overrides.json' with { type: 'json' };\r\nimport rewrites from '../db-us/rewrites.json' with { type: 'json' };\r\nimport strings from '../db-us/stringTypes.json' with { type: 'json' };\r\nimport structs from '../db-us/structs.json' with { type: 'json' };\r\nimport transforms from '../db-us/transforms.json' with { type: 'json' };\r\nimport fileTypes from '../db-us/fileTypes.json' with { type: 'json' };\r\nimport names from '../db-us/names.json' with { type: 'json' };\r\nimport types from '../db-us/types.json' with { type: 'json' };\r\n\r\nfunction loadNotesDir(subdir: string): Record<string, string> {\r\n const dir = join(__pkgRoot, 'notes', subdir);\r\n if (!existsSync(dir)) return {};\r\n\r\n const merged: Record<string, string> = {};\r\n for (const file of readdirSync(dir)) {\r\n if (!file.endsWith('.json')) continue;\r\n const data = JSON.parse(readFileSync(join(dir, file), 'utf-8'));\r\n Object.assign(merged, data);\r\n }\r\n return merged;\r\n}\r\n\r\nfunction loadLocalNotes(): { comments: Record<string, string>; blockNotes: Record<string, string>; partNotes: Record<string, string> } {\r\n const notesDir = join(__pkgRoot, 'notes');\r\n if (!existsSync(notesDir)) {\r\n return { comments: {}, blockNotes: {}, partNotes: {} };\r\n }\r\n return {\r\n comments: loadNotesDir('comments'),\r\n blockNotes: loadNotesDir('blockNotes'),\r\n partNotes: loadNotesDir('partNotes')\r\n };\r\n}\r\n\r\nimport configJP from '../db-jp/config.json' with { type: 'json' };\r\nimport blocksJP from '../db-jp/blocks.json' with { type: 'json' };\r\nimport copdefJP from '../db-us/copdef.json' with { type: 'json' };\r\nimport filesJP from '../db-jp/files.json' with { type: 'json' };\r\nimport groupsJP from '../db-jp/groups.json' with { type: 'json' };\r\nimport labelsJP from '../db-jp/labels.json' with { type: 'json' };\r\nimport mnemonicsJP from '../db-us/mnemonics.json' with { type: 'json' };\r\nimport overridesJP from '../db-jp/overrides.json' with { type: 'json' };\r\nimport rewritesJP from '../db-jp/rewrites.json' with { type: 'json' };\r\nimport stringsJP from '../db-jp/stringTypes.json' with { type: 'json' };\r\nimport structsJP from '../db-jp/structs.json' with { type: 'json' };\r\nimport transformsJP from '../db-jp/transforms.json' with { type: 'json' };\r\nimport fileTypesJP from '../db-us/fileTypes.json' with { type: 'json' };\r\nimport namesJP from '../db-jp/names.json' with { type: 'json' };\r\n\r\nconst localNotes = loadLocalNotes();\r\n\r\nexport const db : DbGameRomModule = {\r\n mnemonics: { ...snes.vectors, ...mnemonics },\r\n overrides: overrides as unknown as Record<string, Record<string, number>>,\r\n rewrites,\r\n blocks: blocks as unknown as Record<string, Record<string, Partial<DbBlock>>>,\r\n copdef: copdef as unknown as Record<string, Partial<CopDef>>,\r\n files: files as unknown as Record<string, Record<string, Record<string, Partial<DbFile>>>>,\r\n groups: groups as unknown as Record<string, Partial<DbGroup>>,\r\n labels, //: labels as unknown as Record<string, string>,\r\n strings: strings as unknown as Record<string, Partial<DbStringType>>,\r\n structs: structs as unknown as Record<string, DbStruct>,\r\n transforms,\r\n config: config as unknown as DbConfig,\r\n fileTypes: fileTypes as unknown as Record<string, Partial<DbFileType>>,\r\n addrModes: snes.addressingModes as unknown as Record<string, Partial<DbAddressingMode>>,\r\n headers: snes.headers,\r\n names,\r\n types,\r\n comments: localNotes.comments,\r\n blockNotes: localNotes.blockNotes,\r\n partNotes: localNotes.partNotes\r\n};\r\n\r\nexport const jp : DbGameRomModule = {\r\n mnemonics: { ...snes.vectors, ...mnemonicsJP },\r\n overrides: overridesJP as unknown as Record<string, Record<string, number>>,\r\n rewrites: rewritesJP,\r\n blocks: blocksJP as unknown as Record<string, Record<string, Partial<DbBlock>>>,\r\n copdef: copdefJP as unknown as Record<string, Partial<CopDef>>,\r\n files: filesJP as unknown as Record<string, Record<string, Record<string, Partial<DbFile>>>>,\r\n groups: groupsJP as unknown as Record<string, Partial<DbGroup>>,\r\n labels: labelsJP, // as unknown as Record<number, string>,\r\n strings: stringsJP as unknown as Record<string, Partial<DbStringType>>,\r\n structs: { ...structs, ...structsJP } as unknown as Record<string, DbStruct>,\r\n transforms: transformsJP,\r\n config: configJP as unknown as DbConfig,\r\n fileTypes: fileTypesJP as unknown as Record<string, Partial<DbFileType>>,\r\n addrModes: snes.addressingModes as unknown as Record<string, Partial<DbAddressingMode>>,\r\n headers: snes.headers,\r\n names: namesJP\r\n};\r\n\r\nexport async function extract(romPath: string, outPath: string, options: Record<string, boolean>) {\r\n if (!romPath) romPath = process.env.ROM_PATH;\r\n if(!outPath) outPath = './extracted';\r\n\r\n var dbRoot = DbRootUtils.fromGameModule(db);\r\n\r\n if(options.linetracking) dbRoot.config.emitLineTracking = true;\r\n\r\n await DbRootUtils.extractAllContent(dbRoot, romPath, outPath);\r\n}\r\n\r\nexport async function extractJP(romPath: string, outPath: string) {\r\n if (!romPath) romPath = process.env.ROM_PATH_JP;\r\n if(!outPath) outPath = './extracted-jp';\r\n\r\n var dbRoot = DbRootUtils.fromGameModule(jp);\r\n\r\n await DbRootUtils.extractAllContent(dbRoot, romPath, outPath);\r\n}\r\n\r\nexport async function rebuild(inPath: string, outPath: string, baseRomPath: string, modulePaths?: string[]) {\r\n if(!inPath) inPath = './extracted';\r\n if(!outPath) outPath = `./rebuilt/${process.env.ROM_NAME ?? 'Illusion of Gaia - Rebuilt'}.smc`;\r\n if(!baseRomPath) baseRomPath = join(__pkgRoot, 'baserom');\r\n \r\n var dbRoot = DbRootUtils.fromGameModule(db);\r\n\r\n const outData = await DbRootUtils.rebuildAllContent(dbRoot, [inPath, baseRomPath, ...(modulePaths || [])], outPath);\r\n \r\n const artifactPath = './artifacts';\r\n\r\n const fileLayoutArtifact = outData.files.filter((file) => file.size > 0).sort((a, b) => a.location - b.location).map((file) => {\r\n return ` \"${file.location.toString(16).toUpperCase().padStart(6, '0')}\" : \"${file.name}\"`;\r\n });\r\n\r\n const fileLayoutArtifactText = `{${RomProcessingConstants.NEWLINE}${fileLayoutArtifact.join(',' + RomProcessingConstants.NEWLINE)}${RomProcessingConstants.NEWLINE}}`;\r\n await saveFileAsText(join(artifactPath, 'file-layout.json'), fileLayoutArtifactText);\r\n\r\n const masterArtifact = Object.entries(outData.masterLookup)\r\n .filter((entry) => !entry[0].match(/[!+-]$/))\r\n .sort((a, b) => a[1].location - b[1].location)\r\n .map((entry) => {\r\n return ` \"${entry[0]}\": \"${entry[1].location.toString(16).toUpperCase().padStart(6, '0')}\"`;\r\n });\r\n\r\n const masterArtifactText = `{${RomProcessingConstants.NEWLINE}${masterArtifact.join(',' + RomProcessingConstants.NEWLINE)}${RomProcessingConstants.NEWLINE}}`;\r\n await saveFileAsText(join(artifactPath, 'master-lookup.json'), masterArtifactText);\r\n\r\n const crc = crc32_buffer(outData.romData);\r\n const crcText = JSON.stringify({ checksum: outData.header.checksum, crc }, null, 2);\r\n await saveFileAsText(join(artifactPath, 'crc.json'), crcText);\r\n}\r\n\r\nexport async function rebuildJp(inPath: string, outPath: string, baseRomPath: string, modulePaths?: string[]) {\r\n if(!inPath) inPath = './extracted-jp';\r\n if(!outPath) outPath = `./rebuilt-jp/${process.env.ROM_NAME_JP ?? 'Gaia Gensouki - Rebuilt'}.smc`;\r\n if(!baseRomPath) baseRomPath = join(__pkgRoot, 'baserom-jp');\r\n \r\n var dbRoot = DbRootUtils.fromGameModule(jp);\r\n\r\n await DbRootUtils.rebuildAllContent(dbRoot, [inPath, baseRomPath, ...(modulePaths || [])], outPath);\r\n}\r\n\r\n// CLI handler - only execute when run directly (not when imported as a module)\r\n// Check if this module is being run directly\r\nconst isMainModule = resolve(process.argv[1] || '') === fileURLToPath(import.meta.url);\r\n\r\nif (isMainModule) {\r\n const command = process.argv[2];\r\n const args = process.argv.slice(3);\r\n\r\n const flags = [];\r\n for(let index = 0; index < args.length; index++) {\r\n const arg = args[index];\r\n if(arg.startsWith('--')) {\r\n flags.push(arg.slice(2).toLowerCase());\r\n args.splice(index, 1);\r\n index--;\r\n }\r\n }\r\n\r\n const options = flags.reduce((acc, flag) => {\r\n acc[flag] = true;\r\n return acc;\r\n }, {});\r\n\r\n (async () => {\r\n try {\r\n switch (command) {\r\n case 'extract':\r\n console.log('Starting ROM extraction...');\r\n console.log('ROM Path:', args[0]);\r\n console.log('Output Path:', args[1] || '../extracted');\r\n await extract(args[0], args[1], options);\r\n console.log('ROM extraction completed successfully!');\r\n break;\r\n case 'extract-jp':\r\n console.log('Starting ROM extraction...');\r\n console.log('ROM Path:', args[0]);\r\n console.log('Output Path:', args[1] || '../extracted-jp');\r\n await extractJP(args[0], args[1]);\r\n console.log('ROM extraction completed successfully!');\r\n break;\r\n case 'rebuild':\r\n console.log('Starting ROM rebuild...');\r\n await rebuild(args[0], args[1], args[2]);\r\n console.log('ROM rebuild completed successfully!');\r\n break;\r\n case 'rebuild-jp':\r\n console.log('Starting JP ROM rebuild...');\r\n await rebuild(args[0], args[1], args[2]);\r\n console.log('ROM rebuild completed successfully!');\r\n break;\r\n default:\r\n console.error('Unknown command:', command);\r\n console.log('Available commands: extractRom, rebuildRom');\r\n process.exit(1);\r\n }\r\n } catch (error) {\r\n console.error('Error:', error);\r\n process.exit(1);\r\n }\r\n })();\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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}
1
+ {"version":3,"file":"index.cjs","names":["snes","mnemonics","overrides","blocks","copdef","files","groups","strings","structs","config","fileTypes","mnemonicsJP","overridesJP","rewritesJP","blocksJP","copdefJP","filesJP","groupsJP","labelsJP","stringsJP","structsJP","transformsJP","configJP","fileTypesJP","namesJP","DbRootUtils","RomProcessingConstants"],"sources":["../db-us/config.json","../db-us/blocks.json","../db-us/copdef.json","../db-us/files.json","../db-us/groups.json","../db-us/labels.json","../db-us/mnemonics.json","../db-us/overrides.json","../db-us/rewrites.json","../db-us/stringTypes.json","../db-us/structs.json","../db-us/transforms.json","../db-us/fileTypes.json","../db-us/names.json","../db-us/types.json","../db-jp/config.json","../db-jp/blocks.json","../db-jp/files.json","../db-jp/groups.json","../db-jp/labels.json","../db-jp/overrides.json","../db-jp/rewrites.json","../db-jp/stringTypes.json","../db-jp/structs.json","../db-jp/transforms.json","../db-jp/names.json","../src/index.ts"],"sourcesContent":["","","","","","","","","","","","","","","","","","","","","","","","","","","import { fileURLToPath } from 'url';\r\nimport { dirname, join, resolve } from 'path';\r\nimport { existsSync, readdirSync, readFileSync } from 'fs';\r\nimport { DbBlock, DbFile, DbGroup, DbStringType, DbStruct, CopDef, DbFileType, AsmBlock, saveFileAsText, RomProcessingConstants, crc32_buffer } from '@gaialabs/core';\r\nimport { DbRootUtils } from '@gaialabs/core';\r\nimport type { DbAddressingMode, DbConfig, DbGameRomModule } from '@gaialabs/core';\r\nimport { snes } from '@gaialabs/core';\r\n\r\nconst __pkgRoot = join(dirname(fileURLToPath(import.meta.url)), '..');\r\n\r\nimport config from '../db-us/config.json' with { type: 'json' };\r\nimport blocks from '../db-us/blocks.json' with { type: 'json' };\r\nimport copdef from '../db-us/copdef.json' with { type: 'json' };\r\nimport files from '../db-us/files.json' with { type: 'json' };\r\nimport groups from '../db-us/groups.json' with { type: 'json' };\r\nimport labels from '../db-us/labels.json' with { type: 'json' };\r\nimport mnemonics from '../db-us/mnemonics.json' with { type: 'json' };\r\nimport overrides from '../db-us/overrides.json' with { type: 'json' };\r\nimport rewrites from '../db-us/rewrites.json' with { type: 'json' };\r\nimport strings from '../db-us/stringTypes.json' with { type: 'json' };\r\nimport structs from '../db-us/structs.json' with { type: 'json' };\r\nimport transforms from '../db-us/transforms.json' with { type: 'json' };\r\nimport fileTypes from '../db-us/fileTypes.json' with { type: 'json' };\r\nimport names from '../db-us/names.json' with { type: 'json' };\r\nimport types from '../db-us/types.json' with { type: 'json' };\r\n\r\nfunction loadNotesDir(subdir: string): Record<string, string> {\r\n const dir = join(__pkgRoot, 'notes', subdir);\r\n if (!existsSync(dir)) return {};\r\n\r\n const merged: Record<string, string> = {};\r\n for (const file of readdirSync(dir)) {\r\n if (!file.endsWith('.json')) continue;\r\n const data = JSON.parse(readFileSync(join(dir, file), 'utf-8'));\r\n Object.assign(merged, data);\r\n }\r\n return merged;\r\n}\r\n\r\nfunction loadLocalNotes(): { comments: Record<string, string>; blockNotes: Record<string, string>; partNotes: Record<string, string> } {\r\n const notesDir = join(__pkgRoot, 'notes');\r\n if (!existsSync(notesDir)) {\r\n return { comments: {}, blockNotes: {}, partNotes: {} };\r\n }\r\n return {\r\n comments: loadNotesDir('comments'),\r\n blockNotes: loadNotesDir('blockNotes'),\r\n partNotes: loadNotesDir('partNotes')\r\n };\r\n}\r\n\r\nimport configJP from '../db-jp/config.json' with { type: 'json' };\r\nimport blocksJP from '../db-jp/blocks.json' with { type: 'json' };\r\nimport copdefJP from '../db-us/copdef.json' with { type: 'json' };\r\nimport filesJP from '../db-jp/files.json' with { type: 'json' };\r\nimport groupsJP from '../db-jp/groups.json' with { type: 'json' };\r\nimport labelsJP from '../db-jp/labels.json' with { type: 'json' };\r\nimport mnemonicsJP from '../db-us/mnemonics.json' with { type: 'json' };\r\nimport overridesJP from '../db-jp/overrides.json' with { type: 'json' };\r\nimport rewritesJP from '../db-jp/rewrites.json' with { type: 'json' };\r\nimport stringsJP from '../db-jp/stringTypes.json' with { type: 'json' };\r\nimport structsJP from '../db-jp/structs.json' with { type: 'json' };\r\nimport transformsJP from '../db-jp/transforms.json' with { type: 'json' };\r\nimport fileTypesJP from '../db-us/fileTypes.json' with { type: 'json' };\r\nimport namesJP from '../db-jp/names.json' with { type: 'json' };\r\n\r\nconst localNotes = loadLocalNotes();\r\n\r\nexport const db : DbGameRomModule = {\r\n mnemonics: { ...snes.vectors, ...mnemonics },\r\n overrides: overrides as unknown as Record<string, Record<string, number>>,\r\n rewrites,\r\n blocks: blocks as unknown as Record<string, Record<string, Partial<DbBlock>>>,\r\n copdef: copdef as unknown as Record<string, Partial<CopDef>>,\r\n files: files as unknown as Record<string, Record<string, Record<string, Partial<DbFile>>>>,\r\n groups: groups as unknown as Record<string, Partial<DbGroup>>,\r\n labels, //: labels as unknown as Record<string, string>,\r\n strings: strings as unknown as Record<string, Partial<DbStringType>>,\r\n structs: structs as unknown as Record<string, DbStruct>,\r\n transforms,\r\n config: config as unknown as DbConfig,\r\n fileTypes: fileTypes as unknown as Record<string, Partial<DbFileType>>,\r\n addrModes: snes.addressingModes as unknown as Record<string, Partial<DbAddressingMode>>,\r\n headers: snes.headers,\r\n names,\r\n types,\r\n comments: localNotes.comments,\r\n blockNotes: localNotes.blockNotes,\r\n partNotes: localNotes.partNotes\r\n};\r\n\r\nexport const jp : DbGameRomModule = {\r\n mnemonics: { ...snes.vectors, ...mnemonicsJP },\r\n overrides: overridesJP as unknown as Record<string, Record<string, number>>,\r\n rewrites: rewritesJP,\r\n blocks: blocksJP as unknown as Record<string, Record<string, Partial<DbBlock>>>,\r\n copdef: copdefJP as unknown as Record<string, Partial<CopDef>>,\r\n files: filesJP as unknown as Record<string, Record<string, Record<string, Partial<DbFile>>>>,\r\n groups: groupsJP as unknown as Record<string, Partial<DbGroup>>,\r\n labels: labelsJP, // as unknown as Record<number, string>,\r\n strings: stringsJP as unknown as Record<string, Partial<DbStringType>>,\r\n structs: { ...structs, ...structsJP } as unknown as Record<string, DbStruct>,\r\n transforms: transformsJP,\r\n config: configJP as unknown as DbConfig,\r\n fileTypes: fileTypesJP as unknown as Record<string, Partial<DbFileType>>,\r\n addrModes: snes.addressingModes as unknown as Record<string, Partial<DbAddressingMode>>,\r\n headers: snes.headers,\r\n names: namesJP\r\n};\r\n\r\nexport async function extract(romPath: string, outPath: string, options?: string[]) {\r\n if (!romPath) romPath = process.env.ROM_PATH;\r\n if(!outPath) outPath = './extracted';\r\n\r\n var dbRoot = DbRootUtils.fromGameModule(db);\r\n\r\n if(options?.includes('linetracking')) dbRoot.config.emitLineTracking = true;\r\n\r\n await DbRootUtils.extractAllContent(dbRoot, romPath, outPath);\r\n}\r\n\r\nexport async function extractJP(romPath: string, outPath: string) {\r\n if (!romPath) romPath = process.env.ROM_PATH_JP;\r\n if(!outPath) outPath = './extracted-jp';\r\n\r\n var dbRoot = DbRootUtils.fromGameModule(jp);\r\n\r\n await DbRootUtils.extractAllContent(dbRoot, romPath, outPath);\r\n}\r\n\r\nexport async function rebuild(inPath: string, outPath: string, baseRomPath: string, modulePaths?: string[], options?: string[]) {\r\n if(!inPath) inPath = './extracted';\r\n if(!outPath) outPath = `./rebuilt/${process.env.ROM_NAME ?? 'Illusion of Gaia - Rebuilt'}.smc`;\r\n if(!baseRomPath) baseRomPath = join(__pkgRoot, 'baserom');\r\n \r\n var dbRoot = DbRootUtils.fromGameModule(db);\r\n\r\n const outData = await DbRootUtils.rebuildAllContent(dbRoot, [inPath, baseRomPath, ...(modulePaths || [])], outPath);\r\n \r\n if(options?.includes('artifacts')) {\r\n console.log('Generating artifacts...');\r\n const artifactPath = './artifacts';\r\n let totalSize = 0;\r\n\r\n const fileLayoutArtifact = outData.files.filter((file) => file.size > 0).sort((a, b) => a.location - b.location).map((file) => {\r\n totalSize += file.size;\r\n return ` \"${file.location.toString(16).toUpperCase().padStart(6, '0')}\" : \"${file.name}\"`;\r\n });\r\n\r\n const fileLayoutArtifactText = `{${RomProcessingConstants.NEWLINE}${fileLayoutArtifact.join(',' + RomProcessingConstants.NEWLINE)}${RomProcessingConstants.NEWLINE}}`;\r\n await saveFileAsText(join(artifactPath, 'file-layout.json'), fileLayoutArtifactText);\r\n\r\n const masterArtifact = Object.entries(outData.masterLookup)\r\n .filter((entry) => !entry[0].match(/[!+-]$/))\r\n .sort((a, b) => a[1].location - b[1].location)\r\n .map((entry) => {\r\n return ` \"${entry[0]}\": \"${entry[1].location.toString(16).toUpperCase().padStart(6, '0')}\"`;\r\n });\r\n\r\n const masterArtifactText = `{${RomProcessingConstants.NEWLINE}${masterArtifact.join(',' + RomProcessingConstants.NEWLINE)}${RomProcessingConstants.NEWLINE}}`;\r\n await saveFileAsText(join(artifactPath, 'master-lookup.json'), masterArtifactText);\r\n\r\n const crc = crc32_buffer(outData.romData);\r\n const crcText = JSON.stringify({ checksum: outData.header.checksum, crc, totalSize }, null, 2);\r\n await saveFileAsText(join(artifactPath, 'crc.json'), crcText);\r\n }\r\n}\r\n\r\nexport async function rebuildJp(inPath: string, outPath: string, baseRomPath: string, modulePaths?: string[]) {\r\n if(!inPath) inPath = './extracted-jp';\r\n if(!outPath) outPath = `./rebuilt-jp/${process.env.ROM_NAME_JP ?? 'Gaia Gensouki - Rebuilt'}.smc`;\r\n if(!baseRomPath) baseRomPath = join(__pkgRoot, 'baserom-jp');\r\n \r\n var dbRoot = DbRootUtils.fromGameModule(jp);\r\n\r\n await DbRootUtils.rebuildAllContent(dbRoot, [inPath, baseRomPath, ...(modulePaths || [])], outPath);\r\n}\r\n\r\n// CLI handler - only execute when run directly (not when imported as a module)\r\n// Check if this module is being run directly\r\nconst isMainModule = resolve(process.argv[1] || '') === fileURLToPath(import.meta.url);\r\n\r\nif (isMainModule) {\r\n const command = process.argv[2];\r\n const args = process.argv.slice(3);\r\n\r\n const flags = [];\r\n for(let index = 0; index < args.length; index++) {\r\n const arg = args[index];\r\n if(arg.startsWith('--')) {\r\n flags.push(arg.slice(2).toLowerCase());\r\n args.splice(index, 1);\r\n index--;\r\n }\r\n }\r\n\r\n // const options = flags.reduce((acc, flag) => {\r\n // acc[flag] = true;\r\n // return acc;\r\n // }, {});\r\n\r\n (async () => {\r\n try {\r\n switch (command) {\r\n case 'extract':\r\n console.log('Starting ROM extraction...');\r\n console.log('ROM Path:', args[0]);\r\n console.log('Output Path:', args[1] || '../extracted');\r\n await extract(args[0], args[1], flags);\r\n console.log('ROM extraction completed successfully!');\r\n break;\r\n case 'extract-jp':\r\n console.log('Starting ROM extraction...');\r\n console.log('ROM Path:', args[0]);\r\n console.log('Output Path:', args[1] || '../extracted-jp');\r\n await extractJP(args[0], args[1]);\r\n console.log('ROM extraction completed successfully!');\r\n break;\r\n case 'rebuild':\r\n console.log('Starting ROM rebuild...');\r\n await rebuild(args[0], args[1], args[2], undefined, flags);\r\n console.log('ROM rebuild completed successfully!');\r\n break;\r\n case 'rebuild-jp':\r\n console.log('Starting JP ROM rebuild...');\r\n await rebuild(args[0], args[1], args[2]);\r\n console.log('ROM rebuild completed successfully!');\r\n break;\r\n default:\r\n console.error('Unknown command:', command);\r\n console.log('Available commands: extractRom, rebuildRom');\r\n process.exit(1);\r\n }\r\n } catch (error) {\r\n console.error('Error:', error);\r\n process.exit(1);\r\n }\r\n })();\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C;AAClD;IACJ;AACI,aAAQ,MAAM,oBAAoB,QAAQ;AAC1C,aAAQ,IAAI,6CAA6C;AACzD,aAAQ,KAAK,EAAE;;WAElB,OAAO;AACZ,WAAQ,MAAM,UAAU,MAAM;AAC9B,WAAQ,KAAK,EAAE;;KAEnB"}
package/dist/index.d.cts CHANGED
@@ -3,9 +3,9 @@ import { DbGameRomModule } from "@gaialabs/core";
3
3
  //#region src/index.d.ts
4
4
  declare const db: DbGameRomModule;
5
5
  declare const jp: DbGameRomModule;
6
- declare function extract(romPath: string, outPath: string, options: Record<string, boolean>): Promise<void>;
6
+ declare function extract(romPath: string, outPath: string, options?: string[]): Promise<void>;
7
7
  declare function extractJP(romPath: string, outPath: string): Promise<void>;
8
- declare function rebuild(inPath: string, outPath: string, baseRomPath: string, modulePaths?: string[]): Promise<void>;
8
+ declare function rebuild(inPath: string, outPath: string, baseRomPath: string, modulePaths?: string[], options?: string[]): Promise<void>;
9
9
  declare function rebuildJp(inPath: string, outPath: string, baseRomPath: string, modulePaths?: string[]): Promise<void>;
10
10
  //#endregion
11
11
  export { db, extract, extractJP, jp, rebuild, rebuildJp };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;cAoEa,EAAA,EAAK,eAAA;AAAA,cAuBL,EAAA,EAAK,eAAA;AAAA,iBAmBI,OAAA,CAAQ,OAAA,UAAiB,OAAA,UAAiB,OAAA,EAAS,MAAA,oBAAuB,OAAA;AAAA,iBAW1E,SAAA,CAAU,OAAA,UAAiB,OAAA,WAAe,OAAA;AAAA,iBAS1C,OAAA,CAAQ,MAAA,UAAgB,OAAA,UAAiB,WAAA,UAAqB,WAAA,cAAsB,OAAA;AAAA,iBAiCpF,SAAA,CAAU,MAAA,UAAgB,OAAA,UAAiB,WAAA,UAAqB,WAAA,cAAsB,OAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;cAoEa,EAAA,EAAK,eAAA;AAAA,cAuBL,EAAA,EAAK,eAAA;AAAA,iBAmBI,OAAA,CAAQ,OAAA,UAAiB,OAAA,UAAiB,OAAA,cAAkB,OAAA;AAAA,iBAW5D,SAAA,CAAU,OAAA,UAAiB,OAAA,WAAe,OAAA;AAAA,iBAS1C,OAAA,CAAQ,MAAA,UAAgB,OAAA,UAAiB,WAAA,UAAqB,WAAA,aAAwB,OAAA,cAAkB,OAAA;AAAA,iBAsCxG,SAAA,CAAU,MAAA,UAAgB,OAAA,UAAiB,WAAA,UAAqB,WAAA,cAAsB,OAAA"}
package/dist/index.d.mts CHANGED
@@ -3,9 +3,9 @@ import { DbGameRomModule } from "@gaialabs/core";
3
3
  //#region src/index.d.ts
4
4
  declare const db: DbGameRomModule;
5
5
  declare const jp: DbGameRomModule;
6
- declare function extract(romPath: string, outPath: string, options: Record<string, boolean>): Promise<void>;
6
+ declare function extract(romPath: string, outPath: string, options?: string[]): Promise<void>;
7
7
  declare function extractJP(romPath: string, outPath: string): Promise<void>;
8
- declare function rebuild(inPath: string, outPath: string, baseRomPath: string, modulePaths?: string[]): Promise<void>;
8
+ declare function rebuild(inPath: string, outPath: string, baseRomPath: string, modulePaths?: string[], options?: string[]): Promise<void>;
9
9
  declare function rebuildJp(inPath: string, outPath: string, baseRomPath: string, modulePaths?: string[]): Promise<void>;
10
10
  //#endregion
11
11
  export { db, extract, extractJP, jp, rebuild, rebuildJp };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;cAoEa,EAAA,EAAK,eAAA;AAAA,cAuBL,EAAA,EAAK,eAAA;AAAA,iBAmBI,OAAA,CAAQ,OAAA,UAAiB,OAAA,UAAiB,OAAA,EAAS,MAAA,oBAAuB,OAAA;AAAA,iBAW1E,SAAA,CAAU,OAAA,UAAiB,OAAA,WAAe,OAAA;AAAA,iBAS1C,OAAA,CAAQ,MAAA,UAAgB,OAAA,UAAiB,WAAA,UAAqB,WAAA,cAAsB,OAAA;AAAA,iBAiCpF,SAAA,CAAU,MAAA,UAAgB,OAAA,UAAiB,WAAA,UAAqB,WAAA,cAAsB,OAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;cAoEa,EAAA,EAAK,eAAA;AAAA,cAuBL,EAAA,EAAK,eAAA;AAAA,iBAmBI,OAAA,CAAQ,OAAA,UAAiB,OAAA,UAAiB,OAAA,cAAkB,OAAA;AAAA,iBAW5D,SAAA,CAAU,OAAA,UAAiB,OAAA,WAAe,OAAA;AAAA,iBAS1C,OAAA,CAAQ,MAAA,UAAgB,OAAA,UAAiB,WAAA,UAAqB,WAAA,aAAwB,OAAA,cAAkB,OAAA;AAAA,iBAsCxG,SAAA,CAAU,MAAA,UAAgB,OAAA,UAAiB,WAAA,UAAqB,WAAA,cAAsB,OAAA"}