@vertesia/memory 0.78.0-dev-512c294 → 0.78.0-dev-9372725

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.
Files changed (75) hide show
  1. package/package.json +6 -1
  2. package/lib/cjs/Builder.js +0 -186
  3. package/lib/cjs/Builder.js.map +0 -1
  4. package/lib/cjs/ContentObject.js +0 -114
  5. package/lib/cjs/ContentObject.js.map +0 -1
  6. package/lib/cjs/ContentSource.js +0 -82
  7. package/lib/cjs/ContentSource.js.map +0 -1
  8. package/lib/cjs/MemoryPack.js +0 -228
  9. package/lib/cjs/MemoryPack.js.map +0 -1
  10. package/lib/cjs/MemoryPackBuilder.js +0 -47
  11. package/lib/cjs/MemoryPackBuilder.js.map +0 -1
  12. package/lib/cjs/commands/copy.js +0 -53
  13. package/lib/cjs/commands/copy.js.map +0 -1
  14. package/lib/cjs/commands/exec.js +0 -82
  15. package/lib/cjs/commands/exec.js.map +0 -1
  16. package/lib/cjs/index.js +0 -28
  17. package/lib/cjs/index.js.map +0 -1
  18. package/lib/cjs/package.json +0 -3
  19. package/lib/cjs/utils/cmdline.js +0 -90
  20. package/lib/cjs/utils/cmdline.js.map +0 -1
  21. package/lib/cjs/utils/rewrite.js +0 -166
  22. package/lib/cjs/utils/rewrite.js.map +0 -1
  23. package/lib/cjs/utils/stream.js +0 -27
  24. package/lib/cjs/utils/stream.js.map +0 -1
  25. package/lib/cjs/utils/tar.js +0 -185
  26. package/lib/cjs/utils/tar.js.map +0 -1
  27. package/lib/esm/Builder.js +0 -178
  28. package/lib/esm/Builder.js.map +0 -1
  29. package/lib/esm/ContentObject.js +0 -103
  30. package/lib/esm/ContentObject.js.map +0 -1
  31. package/lib/esm/ContentSource.js +0 -75
  32. package/lib/esm/ContentSource.js.map +0 -1
  33. package/lib/esm/MemoryPack.js +0 -218
  34. package/lib/esm/MemoryPack.js.map +0 -1
  35. package/lib/esm/MemoryPackBuilder.js +0 -43
  36. package/lib/esm/MemoryPackBuilder.js.map +0 -1
  37. package/lib/esm/commands/copy.js +0 -50
  38. package/lib/esm/commands/copy.js.map +0 -1
  39. package/lib/esm/commands/exec.js +0 -75
  40. package/lib/esm/commands/exec.js.map +0 -1
  41. package/lib/esm/index.js +0 -7
  42. package/lib/esm/index.js.map +0 -1
  43. package/lib/esm/utils/cmdline.js +0 -86
  44. package/lib/esm/utils/cmdline.js.map +0 -1
  45. package/lib/esm/utils/rewrite.js +0 -161
  46. package/lib/esm/utils/rewrite.js.map +0 -1
  47. package/lib/esm/utils/stream.js +0 -23
  48. package/lib/esm/utils/stream.js.map +0 -1
  49. package/lib/esm/utils/tar.js +0 -175
  50. package/lib/esm/utils/tar.js.map +0 -1
  51. package/lib/tsconfig.tsbuildinfo +0 -1
  52. package/lib/types/Builder.d.ts +0 -73
  53. package/lib/types/Builder.d.ts.map +0 -1
  54. package/lib/types/ContentObject.d.ts +0 -44
  55. package/lib/types/ContentObject.d.ts.map +0 -1
  56. package/lib/types/ContentSource.d.ts +0 -33
  57. package/lib/types/ContentSource.d.ts.map +0 -1
  58. package/lib/types/MemoryPack.d.ts +0 -47
  59. package/lib/types/MemoryPack.d.ts.map +0 -1
  60. package/lib/types/MemoryPackBuilder.d.ts +0 -19
  61. package/lib/types/MemoryPackBuilder.d.ts.map +0 -1
  62. package/lib/types/commands/copy.d.ts +0 -9
  63. package/lib/types/commands/copy.d.ts.map +0 -1
  64. package/lib/types/commands/exec.d.ts +0 -8
  65. package/lib/types/commands/exec.d.ts.map +0 -1
  66. package/lib/types/index.d.ts +0 -15
  67. package/lib/types/index.d.ts.map +0 -1
  68. package/lib/types/utils/cmdline.d.ts +0 -11
  69. package/lib/types/utils/cmdline.d.ts.map +0 -1
  70. package/lib/types/utils/rewrite.d.ts +0 -39
  71. package/lib/types/utils/rewrite.d.ts.map +0 -1
  72. package/lib/types/utils/stream.d.ts +0 -10
  73. package/lib/types/utils/stream.d.ts.map +0 -1
  74. package/lib/types/utils/tar.d.ts +0 -41
  75. package/lib/types/utils/tar.d.ts.map +0 -1
@@ -1,161 +0,0 @@
1
- import { basename, dirname, extname, join } from "path";
2
- export function createPathRewrite(path) {
3
- let truncPath;
4
- let basePath = '';
5
- let index = path.indexOf('!');
6
- if (index > -1) {
7
- basePath = path.substring(0, index);
8
- if (!basePath.endsWith('/')) {
9
- basePath += '/';
10
- }
11
- truncPath = (path) => {
12
- return path.substring(basePath.length);
13
- };
14
- path = path.substring(index + 1);
15
- }
16
- else {
17
- truncPath = (path) => {
18
- return basename(path);
19
- };
20
- }
21
- if (path === '*') {
22
- // preserve path
23
- return truncPath;
24
- }
25
- else if (path.endsWith("/*")) {
26
- const prefix = path.slice(0, -2);
27
- return (path) => {
28
- path = truncPath(path);
29
- return join(prefix, path);
30
- };
31
- }
32
- else {
33
- // use path builder
34
- return buildPathRewrite(path, truncPath);
35
- }
36
- }
37
- const RX_PARTS = /(%d\/)|(\.?%e)|(%[fnip])/g;
38
- function buildPathRewrite(path, truncPath) {
39
- let parts = [];
40
- let m;
41
- let lastIndex = 0;
42
- while (m = RX_PARTS.exec(path)) {
43
- if (m.index > lastIndex) {
44
- const literal = path.substring(lastIndex, m.index);
45
- parts.push(() => literal);
46
- }
47
- if (m[1]) { // %d/
48
- parts.push((path) => path.dirname ? path.dirname + '/' : '');
49
- }
50
- else if (m[2]) { // .?%e
51
- if (m[2][0] === '.') {
52
- parts.push((path) => path.extname || '');
53
- }
54
- else {
55
- parts.push((path) => path.extname ? path.extname.slice(1) : ''); // extension without dot
56
- }
57
- }
58
- else if (m[3]) {
59
- switch (m[3]) {
60
- case '%f':
61
- parts.push((path) => path.name);
62
- break;
63
- case '%n':
64
- parts.push((path) => path.basename);
65
- break;
66
- case '%p': // stringify the path by replacing / with _
67
- parts.push((path) => {
68
- let p = path.value;
69
- if (p.startsWith('/')) {
70
- p = p.substring(1);
71
- }
72
- return p.replaceAll('/', '_');
73
- });
74
- break;
75
- case '%i': // index
76
- parts.push((_path, index) => String(index));
77
- break;
78
- default: throw new Error(`Bug: should never happen`);
79
- }
80
- }
81
- lastIndex = m.index + m[0].length;
82
- }
83
- if (!parts.length) {
84
- return () => path;
85
- }
86
- else {
87
- if (lastIndex < path.length) {
88
- const literal = path.substring(lastIndex);
89
- parts.push(() => literal);
90
- }
91
- return (path, index) => {
92
- const pathObj = new Path(truncPath(path));
93
- const out = [];
94
- for (const part of parts) {
95
- out.push(part(pathObj, index));
96
- }
97
- return out.join('');
98
- };
99
- }
100
- }
101
- export class Path {
102
- _name;
103
- _extname;
104
- _dirname;
105
- _basename;
106
- /**
107
- * The complete path value
108
- */
109
- value;
110
- /**
111
- * The file name (the last portion of the path). Includes the extension if present.
112
- */
113
- get name() {
114
- if (!this._name) {
115
- this._name = basename(this.value);
116
- }
117
- return this._name;
118
- }
119
- /**
120
- * The extension of the file including the leading '.'.
121
- * An empty string if the file has no extension.
122
- */
123
- get extname() {
124
- if (!this._extname) {
125
- this._extname = extname(this.value);
126
- }
127
- return this._extname;
128
- }
129
- /**
130
- * The directory portion of the path. Doesn't include the trailing slash.
131
- * If no directory is present, returns an empty string.
132
- */
133
- get dirname() {
134
- if (!this._dirname) {
135
- this._dirname = dirname(this.value);
136
- if (this._dirname === '.') {
137
- this._dirname = '';
138
- }
139
- }
140
- return this._dirname;
141
- }
142
- /**
143
- * The path without the extension
144
- */
145
- get basename() {
146
- if (!this._basename) {
147
- this._basename = this.extname ? this.name.slice(0, -this.extname.length) : this.name;
148
- }
149
- return this._basename;
150
- }
151
- constructor(value) {
152
- this.value = value;
153
- }
154
- /**
155
- * Return the complete path value (same as `value`)
156
- */
157
- toString() {
158
- return this.value;
159
- }
160
- }
161
- //# sourceMappingURL=rewrite.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rewrite.js","sourceRoot":"","sources":["../../../src/utils/rewrite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAOxD,MAA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,IAAI,CAAC,QAAQ,KAAK,GAAG,EAAE,CAAC;gBACxB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;YACvB,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACD;;OAEG;IACH,IAAI,QAAQ;QACR,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YAClB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QACzF,CAAC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,YAAY,KAAa;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,QAAQ;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;CACJ"}
@@ -1,23 +0,0 @@
1
- import { Writable } from "stream";
2
- export class BufferWritableStream extends Writable {
3
- chunks = [];
4
- buffer;
5
- // _write method is required to handle the incoming data
6
- _write(chunk, _encoding, callback) {
7
- this.chunks.push(chunk); // Collect the chunk into the array
8
- callback(); // Indicate that the write is complete
9
- }
10
- // Optional _final method is called when the stream is ending
11
- _final(callback) {
12
- this.buffer = Buffer.concat(this.chunks); // Concatenate the collected chunks into a buffer
13
- callback(); // Indicate the stream is finished
14
- }
15
- // Method to get the final buffer when the stream is closed
16
- getBuffer() {
17
- return this.buffer;
18
- }
19
- getText(encoding = "utf-8") {
20
- return this.buffer?.toString(encoding);
21
- }
22
- }
23
- //# sourceMappingURL=stream.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stream.js","sourceRoot":"","sources":["../../../src/utils/stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,MAAM,OAAO,oBAAqB,SAAQ,QAAQ;IAC9C,MAAM,GAAa,EAAE,CAAA;IACrB,MAAM,CAAqB;IAE3B,wDAAwD;IACxD,MAAM,CAAC,KAAa,EAAE,SAAyB,EAAE,QAAwC;QACrF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,mCAAmC;QAC5D,QAAQ,EAAE,CAAC,CAAC,sCAAsC;IACtD,CAAC;IAED,6DAA6D;IAC7D,MAAM,CAAC,QAAwC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,iDAAiD;QAC3F,QAAQ,EAAE,CAAC,CAAC,kCAAkC;IAClD,CAAC;IAED,2DAA2D;IAC3D,SAAS;QACL,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,OAAO,CAAC,WAA2B,OAAO;QACtC,OAAO,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;CACJ"}
@@ -1,175 +0,0 @@
1
- import fs from "fs";
2
- import { open } from "fs/promises";
3
- import { pipeline } from "stream/promises";
4
- import tar from "tar-stream";
5
- import zlib from "zlib";
6
- export class TarBuilder {
7
- pack;
8
- indexData = [];
9
- currentOffset = 0;
10
- tarPromise;
11
- constructor(file) {
12
- const pack = tar.pack(); // Create a new tar stream
13
- this.pack = pack;
14
- // Open the output file as a write stream
15
- const outputStream = fs.createWriteStream(file);
16
- if (file.endsWith('.gz')) {
17
- this.tarPromise = pipeline(pack, zlib.createGzip(), outputStream);
18
- }
19
- else {
20
- this.tarPromise = pipeline(pack, outputStream);
21
- }
22
- }
23
- async add(name, content) {
24
- name = normalizePath(name);
25
- // Calculate header size, 512 bytes for tar headers
26
- const headerSize = 512;
27
- const contentSize = content ? Buffer.byteLength(content) : 0;
28
- const entryHeaderOffset = this.currentOffset;
29
- // Store the index entry
30
- // entry data offset is always at header offset + 512 bytes
31
- if (contentSize > 0) { // do not index directories
32
- this.indexData.push(`${name}:${entryHeaderOffset},${contentSize}`);
33
- }
34
- // Add the file entry to the tar stream
35
- this.pack.entry({ name, size: contentSize }, content);
36
- // Update the offset
37
- this.currentOffset += headerSize + contentSize;
38
- // Tar files are padded to 512-byte boundaries
39
- if (contentSize % 512 !== 0) {
40
- this.currentOffset += 512 - (contentSize % 512);
41
- }
42
- }
43
- async build() {
44
- const pack = this.pack;
45
- // Convert index data to string and calculate its size
46
- const indexContent = this.indexData.join('\n') + '\n';
47
- const indexContentSize = Buffer.byteLength(indexContent);
48
- // Add the .index entry to the tar
49
- pack.entry({ name: '.index', size: indexContentSize }, indexContent);
50
- pack.finalize(); // Finalize the tar stream
51
- await this.tarPromise;
52
- }
53
- destroy() {
54
- this.pack.destroy();
55
- }
56
- }
57
- export async function loadTarIndex(tarFile) {
58
- const fd = await open(tarFile, 'r');
59
- try {
60
- return await readTarIndex(fd);
61
- }
62
- catch (err) {
63
- await fd.close();
64
- throw err;
65
- }
66
- }
67
- async function readTarIndex(fd) {
68
- const stats = await fd.stat();
69
- const size = stats.size;
70
- // we want to find the index header.
71
- // we read the last chunks of 512 until we find the file name followed by a 0 char.
72
- // the tar file ends with a segment of 1024 bytes of 0 so we need to skip that.
73
- // we pick a size for the buffer to also include the file size entry from the header. So the buffer should be
74
- // of 100 + 8 + 8 + 8 + 12 bytes = 124 + 12 bytes = 136 bytes
75
- // the file size will be located at offset 124 and is 12 bytes long
76
- // skip 1024 0 bytes then skip another 1024 bytes to find the first possible location of the index header (512 bytes for content and 512 bytes for the header)
77
- let offset = size - 1024 - 1024;
78
- const buffer = Buffer.alloc(512);
79
- while (offset >= 0) {
80
- await fd.read(buffer, 0, 512, offset);
81
- // remove the 0 byte padding
82
- const fileName = buffer.toString('utf-8', 0, 100);
83
- if (fileName.startsWith('.index\0')) {
84
- // we found the index header
85
- const indexSize = getHeaderFileSize(buffer);
86
- const indexDataOffset = offset + 512;
87
- const indexDataEnd = indexDataOffset + indexSize;
88
- if (indexDataEnd > size - 1024) {
89
- throw new Error('Invalid index data offsets: [' + indexDataOffset + ':' + indexDataEnd + ']');
90
- }
91
- const dataBuffer = Buffer.alloc(indexSize);
92
- await fd.read(dataBuffer, 0, indexSize, indexDataOffset);
93
- const indexContent = dataBuffer.toString('utf-8');
94
- return new TarIndex(fd, indexContent);
95
- }
96
- offset -= 512;
97
- }
98
- return null;
99
- }
100
- export class TarIndex {
101
- fd;
102
- entries = {};
103
- headerBuffer = Buffer.alloc(512);
104
- /**
105
- * @param fd the tar file descriptor
106
- * @param content the index content
107
- */
108
- constructor(fd, content) {
109
- this.fd = fd;
110
- const lines = content.split('\n');
111
- for (const line of lines) {
112
- if (line) {
113
- const [name, value] = line.split(':');
114
- const [offsetStr, sizeStr] = value.split(',');
115
- const offset = parseInt(offsetStr);
116
- const size = parseInt(sizeStr);
117
- this.entries[name] = { offset, size };
118
- }
119
- }
120
- }
121
- getPaths() {
122
- return Object.keys(this.entries);
123
- }
124
- getSortedPaths() {
125
- return Object.keys(this.entries).sort();
126
- }
127
- get(name) {
128
- return this.entries[name];
129
- }
130
- async getContentAt(offset, size) {
131
- const buffer = Buffer.alloc(size);
132
- await this.fd.read(buffer, 0, size, offset + 512);
133
- return buffer;
134
- }
135
- async getContent(name) {
136
- const entry = this.entries[name];
137
- if (entry) {
138
- return this.getContentAt(entry.offset, entry.size);
139
- }
140
- else {
141
- return null;
142
- }
143
- }
144
- getReadStream(name, encoding) {
145
- const entry = this.entries[name];
146
- if (entry) {
147
- const offset = entry.offset + 512;
148
- return this.fd.createReadStream({
149
- encoding,
150
- start: entry.offset,
151
- end: offset + entry.size
152
- });
153
- }
154
- else {
155
- return null;
156
- }
157
- }
158
- async close() {
159
- await this.fd.close();
160
- }
161
- }
162
- function getHeaderFileSize(buffer) {
163
- const octalSize = buffer.toString('ascii', 124, 136).trim();
164
- return parseInt(octalSize, 8);
165
- }
166
- export function normalizePath(path) {
167
- if (path.startsWith('/')) {
168
- path = path.slice(1);
169
- }
170
- if (path.endsWith('/')) {
171
- path = path.slice(-1);
172
- }
173
- return path;
174
- }
175
- //# sourceMappingURL=tar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tar.js","sourceRoot":"","sources":["../../../src/utils/tar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAc,IAAI,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,GAAG,MAAM,YAAY,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AAOxB,MAAM,OAAO,UAAU;IACnB,IAAI,CAAW;IACf,SAAS,GAAa,EAAE,CAAC;IACzB,aAAa,GAAG,CAAC,CAAC;IAClB,UAAU,CAAmB;IAE7B,YAAY,IAAY;QACpB,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,0BAA0B;QACnD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,yCAAyC;QACzC,MAAM,YAAY,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAChD,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACvB,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,YAAY,CAAC,CAAC;QACtE,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QACnD,CAAC;IACL,CAAC;IAGD,KAAK,CAAC,GAAG,CAAC,IAAY,EAAE,OAAgB;QACpC,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;QAC3B,mDAAmD;QACnD,MAAM,UAAU,GAAG,GAAG,CAAC;QACvB,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,MAAM,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AAO,IAAI,CAAC;QAChB,CAAC;IACL,CAAC;IAED,KAAK,CAAC,KAAK;QACP,MAAM,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;IAC1B,CAAC;CAEJ;AAGD,SAAS,iBAAiB,CAAC,MAAc;IACrC,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IAC5D,OAAO,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAY;IACtC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACzB,CAAC;IACD,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACrB,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC"}
@@ -1 +0,0 @@
1
- {"fileNames":["../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../json/lib/types/types.d.ts","../../json/lib/types/walk.d.ts","../../json/lib/types/index.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/compatibility/disposable.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/compatibility/indexable.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/compatibility/index.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/.pnpm/buffer@5.6.0/node_modules/buffer/index.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/globals.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/assert.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/buffer.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/child_process.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/cluster.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/console.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/constants.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/crypto.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/dgram.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/dns.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/domain.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/dom-events.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/events.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/fs.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/http.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/http2.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/https.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/inspector.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/module.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/net.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/os.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/path.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/process.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/punycode.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/querystring.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/readline.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/repl.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/sea.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/sqlite.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/stream.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/stream/web.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/test.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/timers.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/tls.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/trace_events.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/tty.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/url.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/util.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/v8.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/vm.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/wasi.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/zlib.d.ts","../../../../node_modules/.pnpm/@types+node@22.17.1/node_modules/@types/node/index.d.ts","../../../../node_modules/.pnpm/sharp@0.33.5/node_modules/sharp/lib/index.d.ts","../../converters/lib/types/image.d.ts","../../converters/lib/types/mutool.d.ts","../../converters/lib/types/pandoc.d.ts","../../converters/lib/types/index.d.ts","../../../../node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.d.ts","../../../../node_modules/.pnpm/lru-cache@11.1.0/node_modules/lru-cache/dist/esm/index.d.ts","../../../../node_modules/.pnpm/path-scurry@2.0.0/node_modules/path-scurry/dist/esm/index.d.ts","../../../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/ast.d.ts","../../../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/escape.d.ts","../../../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/unescape.d.ts","../../../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/index.d.ts","../../../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/pattern.d.ts","../../../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/processor.d.ts","../../../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/walker.d.ts","../../../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/ignore.d.ts","../../../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/glob.d.ts","../../../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/has-magic.d.ts","../../../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/index.d.ts","../src/contentsource.ts","../src/contentobject.ts","../src/utils/rewrite.ts","../src/commands/copy.ts","../src/utils/cmdline.ts","../src/utils/stream.ts","../src/commands/exec.ts","../../../../node_modules/.pnpm/@types+braces@3.0.5/node_modules/@types/braces/index.d.ts","../../../../node_modules/.pnpm/@types+micromatch@4.0.9/node_modules/@types/micromatch/index.d.ts","../../../../node_modules/.pnpm/@types+tar-stream@3.1.4/node_modules/@types/tar-stream/index.d.ts","../src/utils/tar.ts","../src/memorypack.ts","../src/memorypackbuilder.ts","../src/builder.ts","../src/index.ts"],"fileIdsList":[[67,110,161],[67,110,162,163,164],[67,110],[59,60,67,110],[61,67,110,123,131,132,180,181,183,186,191,192],[67,110,180,181,182,193],[67,110,111,123,142,184,185],[67,110,123,142,165,180,193],[67,110,123,124,132,142,179],[67,110,180,181,183,186,190,191,192,193],[67,110,132,180,188,190],[67,110,180,190,191,193],[67,110,132],[67,110,142],[67,110,123,124,143,159,189],[67,110,187],[67,107,110],[67,109,110],[110],[67,110,115,145],[67,110,111,116,122,123,130,142,153],[67,110,111,112,122,130],[62,63,64,67,110],[67,110,113,154],[67,110,114,115,123,131],[67,110,115,142,150],[67,110,116,118,122,130],[67,109,110,117],[67,110,118,119],[67,110,120,122],[67,109,110,122],[67,110,122,123,124,142,153],[67,110,122,123,124,137,142,145],[67,105,110],[67,105,110,118,122,125,130,142,153],[67,110,122,123,125,126,130,142,150,153],[67,110,125,127,142,150,153],[65,66,67,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159],[67,110,122,128],[67,110,129,153],[67,110,118,122,130,142],[67,110,131],[67,109,110,133],[67,107,108,109,110,111,112,113,114,115,116,117,118,119,120,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159],[67,110,135],[67,110,136],[67,110,122,137,138],[67,110,137,139,154,156],[67,110,122,142,143,145],[67,110,144,145],[67,110,142,143],[67,110,145],[67,110,146],[67,107,110,142,147],[67,110,122,148,149],[67,110,148,149],[67,110,115,130,142,150],[67,110,151],[67,110,130,152],[67,110,125,136,153],[67,110,115,154],[67,110,142,155],[67,110,129,156],[67,110,157],[67,110,122,124,133,142,145,153,155,156,158],[67,110,142,159],[67,110,142,160],[67,110,166,168,172,173,176],[67,110,177],[67,110,168,172,175],[67,110,166,168,172,175,176,177,178],[67,110,172],[67,110,168,172,173,175],[67,110,166,168,173,174,176],[67,110,169,170,171],[67,110,122,146,160],[67,110,123,132,166,167],[67,77,81,110,153],[67,77,110,142,153],[67,72,110],[67,74,77,110,150,153],[67,110,130,150],[67,110,160],[67,72,110,160],[67,74,77,110,130,153],[67,69,70,73,76,110,122,142,153],[67,77,84,110],[67,69,75,110],[67,77,98,99,110],[67,73,77,110,145,153,160],[67,98,110,160],[67,71,72,110,160],[67,77,110],[67,71,72,73,74,75,76,77,78,79,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,104,110],[67,77,92,110],[67,77,84,85,110],[67,75,77,85,86,110],[67,76,110],[67,69,72,77,110],[67,77,81,85,86,110],[67,81,110],[67,75,77,80,110,153],[67,69,74,77,84,110],[67,72,77,98,110,158,160]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"308f734399e78e329dda3b455c3102f21c979bd5adc951db3c04c1bf1bcd72c9","7449f98d329dcc1f475615678536ca3d224c828421b759f1a8cae2a4ba72160e","1340a96c79b6f127c27d9bfc404b3f8e10c34a332538b10006ff17d47a4f1fa1",{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"d802f0e6b5188646d307f070d83512e8eb94651858de8a82d1e47f60fb6da4e2","affectsGlobalScope":true,"impliedFormat":1},{"version":"ef18cbf1d8374576e3db03ff33c2c7499845972eb0c4adf87392949709c5e160","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"a12d953aa755b14ac1d28ecdc1e184f3285b01d6d1e58abc11bf1826bc9d80e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"a38efe83ff77c34e0f418a806a01ca3910c02ee7d64212a59d59bca6c2c38fa1","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"2b7b4bc0ff201a3f08b5d1e5161998ea655b7a2c840ca646c3adcaf126aa8882","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"e9b97d69510658d2f4199b7d384326b7c4053b9e6645f5c19e1c2a54ede427fc","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"81711af669f63d43ccb4c08e15beda796656dd46673d0def001c7055db53852d","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"bdba81959361810be44bcfdd283f4d601e406ab5ad1d2bdff0ed480cf983c9d7","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"71450bbc2d82821d24ca05699a533e72758964e9852062c53b30f31c36978ab8","affectsGlobalScope":true,"impliedFormat":1},{"version":"b326f4813b90d230ec3950f66bd5b5ce3971aac5fac67cfafc54aa07b39fd07f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6ee692acba8b517b5041c02c5a3369a03f36158b6bb7605d6a98d832e7a13fcc","impliedFormat":1},{"version":"ee07335d073f94f1ec8d7311c4b15abac03a8160e7cdfd4771c47440a7489e1b","impliedFormat":1},{"version":"ec79bdd311bcba9b889af9da0cd88611affdda8c2d491305fa61b7529d5b89ba","impliedFormat":1},{"version":"73cf6cc19f16c0191e4e9d497ab0c11c7b38f1ca3f01ad0f09a3a5a971aac4b8","impliedFormat":1},{"version":"528b62e4272e3ddfb50e8eed9e359dedea0a4d171c3eb8f337f4892aac37b24b","impliedFormat":1},{"version":"eec1e051df11fb4c7f4df5a9a18022699e596024c06bc085e9b410effe790a9a","impliedFormat":1},{"version":"d83f86427b468176fbacb28ef302f152ad3d2d127664c627216e45cfa06fbf7e","affectsGlobalScope":true,"impliedFormat":1},{"version":"f72bc8fe16da67e4e3268599295797b202b95e54bd215a03f97e925dd1502a36","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"915e18c559321c0afaa8d34674d3eb77e1ded12c3e85bf2a9891ec48b07a1ca5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a2f3aa60aece790303a62220456ff845a1b980899bdc2e81646b8e33d9d9cc15","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"70b57b5529051497e9f6482b76d91c0dcbb103d9ead8a0549f5bab8f65e5d031","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"0be405730b99eee7dbb051d74f6c3c0f1f8661d86184a7122b82c2bfb0991922","impliedFormat":1},{"version":"8302157cd431b3943eed09ad439b4441826c673d9f870dcb0e1f48e891a4211e","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"dba28a419aec76ed864ef43e5f577a5c99a010c32e5949fe4e17a4d57c58dd11","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"a5890565ed564c7b29eb1b1038d4e10c03a3f5231b0a8d48fea4b41ab19f4f46","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"98ffdf93dfdd206516971d28e3e473f417a5cfd41172e46b4ce45008f640588e","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7172949957e9ae6dd5c046d658cc5f1d00c12d85006554412e1de0dcfea8257e","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a654e0d950353614ba4637a8de4f9d367903a0692b748e11fccf8c880c99735","affectsGlobalScope":true,"impliedFormat":1},{"version":"42da246c46ca3fd421b6fd88bb4466cda7137cf33e87ba5ceeded30219c428bd","impliedFormat":1},{"version":"3a051941721a7f905544732b0eb819c8d88333a96576b13af08b82c4f17581e4","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"66e4838e0e3e0ea1ee62b57b3984a7f606f73523dfdae6500b6e3258c0aa3c7d","affectsGlobalScope":true,"impliedFormat":1},{"version":"db3d77167a7da6c5ba0c51c5b654820e3464093f21724ccd774c0b9bc3f81bc0","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1},{"version":"e749bbd37dadf82c9833278780527c717226e1e2c9bc7b2576c8ec1c40ec5647","impliedFormat":1},"90b68fc4af20144deca7fe3b375151ef95567d9b7ea97ccd974ef557c91e4324","7629cf8961345004859b6acef2cb31d2e807c340d1539d1bc60e211fdc8486ae","ec471abce8afd7e3ced5bdd4a6049efac7bf3826bcefe028470f1348b0f35bf4","bc5a96acbc6b66acd709597f7aaeb42484ae5e9da1b8067c424d8d885c0eacd5",{"version":"4115aa147c5a64817fb55274b44087cbf1bc90f54906bfdfc9ee847a71cd91cf","impliedFormat":99},{"version":"599b42c2c7227d59788f9239a30b16e465e15127c7c4541d30b801c23ca681e6","impliedFormat":99},{"version":"072f583571d6e3d30cd9760ee3485d29484fb7b54ba772ac135c747a380096a1","impliedFormat":99},{"version":"7212c2d58855b8df35275180e97903a4b6093d4fbaefea863d8d028da63938c6","impliedFormat":99},{"version":"5bd0f306b4a9dc65bccf38d9295bc52720d2fa455e06f604529d981b5eb8d9dc","impliedFormat":99},{"version":"f30992084e86f4b4c223c558b187cb0a9e83071592bd830d8ff2a471ee2bf2d4","impliedFormat":99},{"version":"854045924626ba585f454b53531c42aed4365f02301aa8eca596423f4675b71f","impliedFormat":99},{"version":"dd9faff42b456b5f03b85d8fbd64838eb92f6f7b03b36322cbc59c005b7033d3","impliedFormat":99},{"version":"6ff702721d87c0ba8e7f8950e7b0a3b009dfd912fab3997e0b63fab8d83919c3","impliedFormat":99},{"version":"9dce9fc12e9a79d1135699d525aa6b44b71a45e32e3fa0cf331060b980b16317","impliedFormat":99},{"version":"586b2fd8a7d582329658aaceec22f8a5399e05013deb49bcfde28f95f093c8ee","impliedFormat":99},{"version":"59c44b081724d4ab8039988aba34ee6b3bd41c30fc2d8686f4ed06588397b2f7","impliedFormat":99},{"version":"ef1f3eadd7bed282de45bafd7c2c00105cf1db93e22f6cd763bec8a9c2cf6df1","impliedFormat":99},{"version":"3d8885d13f76ff35b7860039e83c936ff37553849707c2fd1d580d193a52be5b","impliedFormat":99},{"version":"e9fcb96cd517965328bd2697f3bb4ddc395903bf7f75b762406acba8c688cd8c","signature":"f5cdcc9efbc4c2f2181e443fa8880d18eafa8e9659123acc87e584a1b90f1b29"},{"version":"3431e822c8f751c572cfa842ae13ba2aaebb15582ee9c612df5781f5739bc175","signature":"133782c738135aac614a9f95c9063a27f0dd71e3d6cd9f630b472b81b2a9fe02"},{"version":"dddec17ac191ce822078cdb542acf065ae855a0b4527e033b6dc21c49606341d","signature":"1ea1af8b47d173ec6c8d8119e9af13efad5cd6cc6f43324866b5094e241209a5"},{"version":"52bb05d877cc9f6b02b2cd62ab21d2b4fa70bb6e498a25d79b1c5bbac1373aee","signature":"ba83b3f21c8568a33d2fb17b53b36929a81265a0d06d6224fb5a2fbc2a0e040f"},{"version":"1ee2d403317e53c83cdca7034fade5347968ba62717c88dcf409bf1000daa87e","signature":"0d8fc8fd3f229a4d993b014e1467f63555c658d1a862693502cfb86132fa51f2"},{"version":"7180a8d6953674996dec9c09b30285f0f0cb26122951969da9ef37a8f813f5ca","signature":"095c12c393aa0ef69926022d905457717c7c909927e5aa984f6bd5198f6cc677"},{"version":"b2f6e1d74cf48a07856bc6f8d70c5396746682b50bb015fbc53233e07f16c822","signature":"22737d4a6aa1be697c7757b3d3714c8376e2f4236de8099067e19a78a6be70c4"},{"version":"2b91a6a00be41e4dea6d25220ef9d4d1c843872d1ad6b9f0597c720d2d45c256","impliedFormat":1},{"version":"33a0782502805f6dac67362b4290250e29755139a9c0d93a42e9da3a6e282e85","impliedFormat":1},{"version":"24af1742f907d8311b928821ee9770c45c3711ae4e505a00d5e8e9d1322162f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"fed47d0f125bfb4b537675ab22679f147ceb7142c78048aea4bfc60c14a1fc08","signature":"94675453ac64c675d8cf2f7d13d3dffb82f091069d9b2e8e99fde8c5d92ec38b"},{"version":"aeb0df5f5288a1b7fb63cd0483e60cd331e4ef347faf8984c5d31793cd079801","signature":"1417b1b9c4439d271c1551d25061dd6704a2b8cc42a9133026d5648c7238e234"},{"version":"649d0d78397b0fbb7e4e6fbba1151e68630e73289f7b74a31c0de648e4c70d3f","signature":"69ca9f72155035bbd9a9ef58e1f5e4e947051b930902c4e6da12f267f4998ef0"},{"version":"e1925b3a70122dfe3c30c59d2d03b36a44162b2587a3fd754982139a693c343d","signature":"410a1ff1fb721db0d3b86d5a7d7dacaabda8a68ff4826f1a230db6d39f603d2b"},{"version":"5d54c98d09a30d66a08a775ebd87daf8641e32a485eb323e1d82cce426760097","signature":"ad9d9360ae23df40dec3e7c4da00ddf3ee5159628dbcbc2f3086c172a19efd28"}],"root":[[180,186],[190,194]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declarationDir":"./types","esModuleInterop":true,"experimentalDecorators":true,"module":99,"noFallthroughCasesInSwitch":true,"noPropertyAccessFromIndexSignature":false,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./esm","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"useDefineForClassFields":true,"useUnknownInCatchVariables":true},"referencedMap":[[162,1],[165,2],[163,3],[164,3],[61,4],[59,3],[60,3],[193,5],[183,6],[186,7],[181,8],[180,9],[194,10],[191,11],[192,12],[184,3],[182,13],[185,14],[190,15],[187,3],[188,16],[107,17],[108,17],[109,18],[67,19],[110,20],[111,21],[112,22],[62,3],[65,23],[63,3],[64,3],[113,24],[114,25],[115,26],[116,27],[117,28],[118,29],[119,29],[121,3],[120,30],[122,31],[123,32],[124,33],[106,34],[66,3],[125,35],[126,36],[127,37],[160,38],[128,39],[129,40],[130,41],[131,42],[132,13],[133,43],[134,44],[135,45],[136,46],[137,47],[138,47],[139,48],[140,3],[141,3],[142,49],[144,50],[143,51],[145,52],[146,53],[147,54],[148,55],[149,56],[150,57],[151,58],[152,59],[153,60],[154,61],[155,62],[156,63],[157,64],[158,65],[159,66],[189,67],[68,3],[177,68],[178,69],[176,70],[179,71],[173,72],[174,73],[175,74],[167,3],[169,72],[170,72],[172,75],[171,72],[166,76],[168,77],[161,67],[57,3],[58,3],[10,3],[12,3],[11,3],[2,3],[13,3],[14,3],[15,3],[16,3],[17,3],[18,3],[19,3],[20,3],[3,3],[21,3],[22,3],[4,3],[23,3],[27,3],[24,3],[25,3],[26,3],[28,3],[29,3],[30,3],[5,3],[31,3],[32,3],[33,3],[34,3],[6,3],[38,3],[35,3],[36,3],[37,3],[39,3],[7,3],[40,3],[45,3],[46,3],[41,3],[42,3],[43,3],[44,3],[8,3],[50,3],[47,3],[48,3],[49,3],[51,3],[9,3],[52,3],[53,3],[54,3],[56,3],[55,3],[1,3],[84,78],[94,79],[83,78],[104,80],[75,81],[74,82],[103,83],[97,84],[102,85],[77,86],[91,87],[76,88],[100,89],[72,90],[71,83],[101,91],[73,92],[78,93],[79,3],[82,93],[69,3],[105,94],[95,95],[86,96],[87,97],[89,98],[85,99],[88,100],[98,83],[80,101],[81,102],[90,103],[70,14],[93,95],[92,93],[96,3],[99,104]],"latestChangedDtsFile":"./types/index.d.ts","version":"5.9.2"}
@@ -1,73 +0,0 @@
1
- import { CopyOptions } from "./commands/copy.js";
2
- import { ExecOptions } from "./commands/exec.js";
3
- import { ContentObject, DocxObject, JsonObject, MediaObject, MediaOptions, PdfObject } from "./ContentObject.js";
4
- import { ContentSource, SourceSpec } from "./ContentSource.js";
5
- import { FromOptions, MemoryPackBuilder } from "./MemoryPackBuilder.js";
6
- export interface BuildOptions {
7
- indent?: number;
8
- /**
9
- * the path to save the output. Defaults to 'memory.tar'.
10
- * If no .tar extension is present it will be added
11
- */
12
- out?: string;
13
- /**
14
- * If set, suppress logs. Defaults to false.
15
- */
16
- quiet?: boolean;
17
- /**
18
- * If true, compress the output (tar or json) with gzip. Defaults to false.
19
- */
20
- gzip?: boolean;
21
- /**
22
- * Vars to be injected into the script context as the vars object
23
- */
24
- vars?: Record<string, any>;
25
- /**
26
- * Optional publish action
27
- * @param file
28
- * @returns the URI of the published memory
29
- */
30
- publish?: (file: string, name: string) => Promise<string>;
31
- /**
32
- * The directory where to transpile the recipe ts file
33
- */
34
- transpileDir?: string;
35
- }
36
- export interface Commands {
37
- vars: () => Record<string, any>;
38
- tmpdir: () => string;
39
- exec: (cmd: string, options?: ExecOptions) => Promise<void | string>;
40
- from: (location: string, options?: FromOptions) => Promise<void>;
41
- content: (location: string, encoding?: BufferEncoding) => ContentObject | ContentObject[];
42
- json: (location: string) => ContentObject | ContentObject[];
43
- pdf: (location: string) => PdfObject | PdfObject[];
44
- docx: (location: string) => DocxObject | DocxObject[];
45
- media: (location: string, options?: MediaOptions) => MediaObject | MediaObject[];
46
- copy: (location: SourceSpec, path: string, options?: CopyOptions) => void;
47
- copyText: (text: string, path: string) => void;
48
- }
49
- export declare class Builder implements Commands {
50
- options: BuildOptions;
51
- static instance?: Builder;
52
- static getInstance(): Builder;
53
- _vars: Record<string, any>;
54
- _tmpdir?: string;
55
- memory: MemoryPackBuilder;
56
- constructor(options?: BuildOptions);
57
- vars(): Record<string, any>;
58
- tmpdir(): string;
59
- from(location: string, options?: FromOptions): Promise<void>;
60
- addEntry(path: string, source: ContentSource): void;
61
- copy(location: SourceSpec, path: string, options?: CopyOptions): void;
62
- copyText(text: string, path: string): void;
63
- exec(cmd: string, options?: ExecOptions): Promise<string | undefined>;
64
- content(location: string, encoding?: BufferEncoding): ContentObject | ContentObject[];
65
- json(location: string): JsonObject | JsonObject[];
66
- pdf(location: string): PdfObject | PdfObject[];
67
- docx(location: string): DocxObject | DocxObject[];
68
- media(location: string, options?: MediaOptions): MediaObject | MediaObject[];
69
- build(object: Record<string, any>): Promise<string>;
70
- private _getOutputNames;
71
- }
72
- export declare function buildMemoryPack(recipeFn: (commands: Commands) => Promise<Record<string, any>>, options: BuildOptions): Promise<string>;
73
- //# sourceMappingURL=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IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB;IAIlE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAInC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW;IAIvC,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc;IASnD,IAAI,CAAC,QAAQ,EAAE,MAAM;IASrB,GAAG,CAAC,QAAQ,EAAE,MAAM;IASpB,IAAI,CAAC,QAAQ,EAAE,MAAM;IASrB,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;IASxC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAwBvC,OAAO,CAAC,eAAe;CAuB1B;AAiBD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAetI"}
@@ -1,44 +0,0 @@
1
- import fs from "fs";
2
- import { Builder } from "./Builder.js";
3
- import { ContentSource } from "./ContentSource.js";
4
- export declare class ContentObject implements ContentSource {
5
- builder: Builder;
6
- source: ContentSource;
7
- encoding: BufferEncoding;
8
- constructor(builder: Builder, source: ContentSource, encoding?: BufferEncoding);
9
- getContent(): Promise<Buffer>;
10
- getStream(): Promise<NodeJS.ReadableStream>;
11
- copyTo(entry: string): void;
12
- copyToFile(file: string): Promise<fs.WriteStream>;
13
- /**
14
- * Get a text representation of the object
15
- */
16
- getText(encoding?: BufferEncoding): Promise<string>;
17
- getJsonValue(): Promise<any>;
18
- }
19
- export declare class JsonObject extends ContentObject {
20
- getJsonValue(): Promise<any>;
21
- }
22
- export interface MediaOptions {
23
- max_hw?: number;
24
- format?: "jpeg" | "png";
25
- }
26
- export declare class MediaObject extends ContentObject {
27
- options: MediaOptions;
28
- constructor(builder: Builder, source: ContentSource, options?: MediaOptions);
29
- getStream(): Promise<NodeJS.ReadableStream>;
30
- getContent(): Promise<Buffer>;
31
- }
32
- export declare class PdfObject extends ContentObject {
33
- constructor(builder: Builder, source: ContentSource);
34
- getStream(): Promise<NodeJS.ReadableStream>;
35
- getContent(): Promise<Buffer>;
36
- getText(): Promise<string>;
37
- }
38
- export declare class DocxObject extends ContentObject {
39
- constructor(builder: Builder, source: ContentSource);
40
- getBuffer(): Promise<Buffer>;
41
- getStream(): Promise<NodeJS.ReadableStream>;
42
- getText(): Promise<string>;
43
- }
44
- //# sourceMappingURL=ContentObject.d.ts.map