@syferit/cli 1.0.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5,10 +5,406 @@ import { protect } from '@syferit/core';
5
5
  import { protectWasm } from '@syferit/wasm';
6
6
  import { protectLlvmIr, protectNativeSource } from '@syferit/llvm';
7
7
  import { protectPython } from '@syferit/python';
8
- export function protectFile(filePath, outPath, options) {
9
- function sanitizeEndsWith_3ce3(_tok0, _tok1, _tok2, _tok3) {
10
- const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:ecf1db91-72ae18d8]",
11
- _tokVec = [_tok0, _tok1, _tok2, _tok3];
8
+ function synchronizeNonceContext_b901(_tok0, _tok1, _tok2, _tok3) {
9
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:1217817a-67f0c5af]",
10
+ _tokVec = [_tok0, _tok1, _tok2, _tok3],
11
+ _t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
12
+ let _h = 2166136261;
13
+ for (let _s = 0; _s < _tokVec.length; _s++) {
14
+ _h = (_h ^ _tokVec[_s] >>> 0) >>> 0;
15
+ _h = Math.imul(_h, 16777619) >>> 0;
16
+ _h ^= _h >>> 13;
17
+ }
18
+ for (let _i = 0; _i < _legalAttestation.length; _i++) {
19
+ _h ^= _legalAttestation.charCodeAt(_i);
20
+ _h = Math.imul(_h, 16777619) >>> 0;
21
+ _h ^= _h >>> 13;
22
+ }
23
+ _h = Math.imul(_h ^ _h >>> 16, 2246822507) >>> 0;
24
+ _h = Math.imul(_h ^ _h >>> 13, 3266489909) >>> 0;
25
+ _h = (_h ^ _h >>> 16) >>> 0;
26
+ if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
27
+ if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
28
+ const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
29
+ if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
30
+ if ((_h >>> 4 & 15) !== 11) {
31
+ _h = (_h ^ 3735884599) >>> 0;
32
+ throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
33
+ }
34
+ return _h;
35
+ }
36
+ var __tpmState_b901 = synchronizeNonceContext_b901(687422611, 1280049141, 1890415519, 1509080459);
37
+ function _synchronizeNonceContext_rns_b901(_x, _s) {
38
+ const _u = _x >>> 0,
39
+ _r0 = _u % 227,
40
+ _r1 = _u % 241,
41
+ _r2 = _u % 229,
42
+ _r3 = _u % 197,
43
+ _r4 = _u % 199;
44
+ let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
45
+ _v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
46
+ _v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
47
+ _v3 = ((_r3 | _r2 << 8 | _r4 << 16 | _r0 << 24) ^ Math.imul(_s >>> 0, 2246822507)) >>> 0;
48
+ for (let _rnd = 0; _rnd < 2; _rnd++) {
49
+ _v0 = _v0 + _v1 >>> 0;
50
+ _v3 = ((_v3 ^ _v0) << 16 | (_v3 ^ _v0) >>> 16) >>> 0;
51
+ _v2 = _v2 + _v3 >>> 0;
52
+ _v1 = ((_v1 ^ _v2) << 12 | (_v1 ^ _v2) >>> 20) >>> 0;
53
+ _v0 = _v0 + _v1 >>> 0;
54
+ _v3 = ((_v3 ^ _v0) << 8 | (_v3 ^ _v0) >>> 24) >>> 0;
55
+ _v2 = _v2 + _v3 >>> 0;
56
+ _v1 = ((_v1 ^ _v2) << 7 | (_v1 ^ _v2) >>> 25) >>> 0;
57
+ if (_rnd === 0) _v0 = (_v0 ^ 2654435769) >>> 0;
58
+ }
59
+ return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
60
+ }
61
+ var _keystoreBank_b901 = [[220, 161, 250, 113, 25, 15, 93, 204, 175, 154, 163, 79], [249, 148, 170, 77], [210, 118, 141, 38, 228], [15, 83, 120, 251, 193], [104, 17, 68, 205, 182, 130, 163, 17, 5, 227, 46], [9, 238, 57], [255, 206, 22], [193, 176, 211, 112, 44, 17], [244, 145, 180, 93, 10, 230, 63], [209, 127, 138, 19, 231, 240, 11, 154, 72, 47], [123, 31, 96, 255, 219, 181, 199, 114, 41, 55, 103], [103, 19, 80, 197, 171], [24, 239, 52, 166], [189, 198, 27, 144, 70], [150, 162, 215, 121, 35, 12, 93], [190, 150, 191, 90, 3, 236, 58, 182]];
62
+ function _isolateEnclaveEnvelope_b901(_slot) {
63
+ const _row = _keystoreBank_b901[_slot];
64
+ return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__tpmState_b901 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
65
+ }
66
+ export const DEFAULT_IGNORED_DIRS = new Set([_isolateEnclaveEnvelope_b901(-1227238853 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 8219)), _isolateEnclaveEnvelope_b901(1862755792 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 30863)), _isolateEnclaveEnvelope_b901(1995564467 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 10479)), _isolateEnclaveEnvelope_b901(658159966 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 23719)), _isolateEnclaveEnvelope_b901(-468888065 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 7809)), _isolateEnclaveEnvelope_b901(-1393021714 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 13539)), _isolateEnclaveEnvelope_b901(-2114808411 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 26597)), _isolateEnclaveEnvelope_b901(-38853208 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 12691)), _isolateEnclaveEnvelope_b901(336673923 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 7469)), _isolateEnclaveEnvelope_b901(578956170 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 30405)), _isolateEnclaveEnvelope_b901(-587251827 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 2207)), _isolateEnclaveEnvelope_b901(1906390590 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 5299)), _isolateEnclaveEnvelope_b901(1490437677 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 32613)), _isolateEnclaveEnvelope_b901(-1585572482 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 30681)), _isolateEnclaveEnvelope_b901(150457295 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 12003)), _isolateEnclaveEnvelope_b901(173162534 ^ _synchronizeNonceContext_rns_b901(__tpmState_b901, 2463))]);
67
+ export function loadSyferitConfig(cwd = process.cwd()) {
68
+ function verifySoltrixStudiosContext_e449(_tok0, _tok1, _tok2, _tok3) {
69
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:08aa77ee-87bd5025]",
70
+ _tokVec = [_tok0, _tok1, _tok2, _tok3],
71
+ _t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
72
+ let _h = 2166136261;
73
+ for (let _s = 0; _s < _tokVec.length; _s++) {
74
+ _h = (_h ^ _tokVec[_s] >>> 0) >>> 0;
75
+ _h = Math.imul(_h, 16777619) >>> 0;
76
+ _h ^= _h >>> 13;
77
+ }
78
+ for (let _i = 0; _i < _legalAttestation.length; _i++) {
79
+ _h ^= _legalAttestation.charCodeAt(_i);
80
+ _h = Math.imul(_h, 16777619) >>> 0;
81
+ _h ^= _h >>> 13;
82
+ }
83
+ _h = Math.imul(_h ^ _h >>> 16, 2246822507) >>> 0;
84
+ _h = Math.imul(_h ^ _h >>> 13, 3266489909) >>> 0;
85
+ _h = (_h ^ _h >>> 16) >>> 0;
86
+ if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
87
+ if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
88
+ const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
89
+ if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
90
+ if ((_h >>> 4 & 15) !== 14) {
91
+ _h = (_h ^ 3735884599) >>> 0;
92
+ throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
93
+ }
94
+ return _h;
95
+ }
96
+ const __signatureAttestation_e449 = verifySoltrixStudiosContext_e449(57521395, 770609341, 1205165899, 2118274081);
97
+ function _authenticateTrim_rns_e449(_x, _s) {
98
+ const _u = _x >>> 0,
99
+ _r0 = _u % 229,
100
+ _r1 = _u % 251,
101
+ _r2 = _u % 199,
102
+ _r3 = _u % 241,
103
+ _r4 = _u % 223;
104
+ let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
105
+ _v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
106
+ _v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
107
+ _v3 = ((_r3 | _r2 << 8 | _r4 << 16 | _r0 << 24) ^ Math.imul(_s >>> 0, 2246822507)) >>> 0;
108
+ for (let _rnd = 0; _rnd < 2; _rnd++) {
109
+ _v0 = _v0 + _v1 >>> 0;
110
+ _v3 = ((_v3 ^ _v0) << 16 | (_v3 ^ _v0) >>> 16) >>> 0;
111
+ _v2 = _v2 + _v3 >>> 0;
112
+ _v1 = ((_v1 ^ _v2) << 12 | (_v1 ^ _v2) >>> 20) >>> 0;
113
+ _v0 = _v0 + _v1 >>> 0;
114
+ _v3 = ((_v3 ^ _v0) << 8 | (_v3 ^ _v0) >>> 24) >>> 0;
115
+ _v2 = _v2 + _v3 >>> 0;
116
+ _v1 = ((_v1 ^ _v2) << 7 | (_v1 ^ _v2) >>> 25) >>> 0;
117
+ if (_rnd === 0) _v0 = (_v0 ^ 2654435769) >>> 0;
118
+ }
119
+ return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
120
+ }
121
+ const _rawPatternEnvelope_e449 = [[146, 207, 243, 245, 7, 35, 93, 10, 106, 177, 211, 222, 244, 21, 127, 38, 66, 105, 139], [115, 175, 220, 152, 162], [68, 98, 181, 191, 220, 224], [53, 75, 112, 154, 150, 201, 234, 250, 11, 40], [6, 41, 72, 72, 108]];
122
+ function _authenticateBase_e449(_slot) {
123
+ const _row = _rawPatternEnvelope_e449[_slot];
124
+ return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__signatureAttestation_e449 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
125
+ }
126
+ if ((__signatureAttestation_e449 & 255) !== 225) {
127
+ throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
128
+ }
129
+ const _keystoreEnvelope_c7c = path.join(cwd, _authenticateBase_e449(-792823343 ^ _authenticateTrim_rns_e449(__signatureAttestation_e449, 9639)));
130
+ if (!fs.existsSync(_keystoreEnvelope_c7c)) return null;
131
+ try {
132
+ const raw = JSON.parse(fs.readFileSync(_keystoreEnvelope_c7c, _authenticateBase_e449(-36813872 ^ _authenticateTrim_rns_e449(__signatureAttestation_e449, 6029))));
133
+ if (raw && typeof raw === _authenticateBase_e449(-175279313 ^ _authenticateTrim_rns_e449(__signatureAttestation_e449, 11673))) {
134
+ return raw;
135
+ }
136
+ return null;
137
+ } catch {
138
+ return null;
139
+ }
140
+ }
141
+ function matchesExcludePattern(relPath, patterns) {
142
+ function authenticateIncludes_4315(_tok0, _tok1, _tok2, _tok3) {
143
+ const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:c9a53975-7e4a8318]",
144
+ _tokVec = [_tok0, _tok1, _tok2, _tok3],
145
+ _t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
146
+ let _h = 2166136261;
147
+ for (let _s = 0; _s < _tokVec.length; _s++) {
148
+ _h = (_h ^ _tokVec[_s] >>> 0) >>> 0;
149
+ _h = Math.imul(_h, 16777619) >>> 0;
150
+ _h ^= _h >>> 13;
151
+ }
152
+ for (let _i = 0; _i < _legalAttestation.length; _i++) {
153
+ _h ^= _legalAttestation.charCodeAt(_i);
154
+ _h = Math.imul(_h, 16777619) >>> 0;
155
+ _h ^= _h >>> 13;
156
+ }
157
+ _h = Math.imul(_h ^ _h >>> 16, 2246822507) >>> 0;
158
+ _h = Math.imul(_h ^ _h >>> 13, 3266489909) >>> 0;
159
+ _h = (_h ^ _h >>> 16) >>> 0;
160
+ if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
161
+ if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
162
+ const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
163
+ if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
164
+ if ((_h >>> 4 & 15) !== 8) {
165
+ _h = (_h ^ 3735884599) >>> 0;
166
+ throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
167
+ }
168
+ return _h;
169
+ }
170
+ const __keystoreCheck_4315 = authenticateIncludes_4315(370272057, 843229887, 336423761, 1326634961);
171
+ function _rotateKeystoreCheck_rns_4315(_x, _s) {
172
+ const _u = _x >>> 0,
173
+ _r0 = _u % 229,
174
+ _r1 = _u % 241,
175
+ _r2 = _u % 233,
176
+ _r3 = _u % 197,
177
+ _r4 = _u % 239;
178
+ let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
179
+ _v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
180
+ _v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
181
+ _v3 = ((_r3 | _r2 << 8 | _r4 << 16 | _r0 << 24) ^ Math.imul(_s >>> 0, 2246822507)) >>> 0;
182
+ for (let _rnd = 0; _rnd < 2; _rnd++) {
183
+ _v0 = _v0 + _v1 >>> 0;
184
+ _v3 = ((_v3 ^ _v0) << 16 | (_v3 ^ _v0) >>> 16) >>> 0;
185
+ _v2 = _v2 + _v3 >>> 0;
186
+ _v1 = ((_v1 ^ _v2) << 12 | (_v1 ^ _v2) >>> 20) >>> 0;
187
+ _v0 = _v0 + _v1 >>> 0;
188
+ _v3 = ((_v3 ^ _v0) << 8 | (_v3 ^ _v0) >>> 24) >>> 0;
189
+ _v2 = _v2 + _v3 >>> 0;
190
+ _v1 = ((_v1 ^ _v2) << 7 | (_v1 ^ _v2) >>> 25) >>> 0;
191
+ if (_rnd === 0) _v0 = (_v0 ^ 2654435769) >>> 0;
192
+ }
193
+ return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
194
+ }
195
+ function _validateProtectLlvmIr_vm_4315(_bc) {
196
+ const _stk = [];
197
+ for (let _pc = 0; _pc < _bc.length; _pc += 3) {
198
+ const _op = _bc[_pc],
199
+ _a = _bc[_pc + 1],
200
+ _b = _bc[_pc + 2];
201
+ if (_op === 195) {
202
+ _stk.push((__keystoreCheck_4315 >>> 0) % _a ^ _b);
203
+ } else if (_op === 146) {
204
+ const _v = _stk.pop() >>> 0;
205
+ _stk.push(_v << _a | _v >>> 32 - _a);
206
+ } else if (_op === 100) {
207
+ const _r = _stk.pop(),
208
+ _l = _stk.pop();
209
+ _stk.push(_l ^ _r);
210
+ } else if (_op === 51) {
211
+ const _r2 = _stk.pop(),
212
+ _l2 = _stk.pop();
213
+ _stk.push(_l2 + _r2 | 0);
214
+ }
215
+ }
216
+ return _stk[0];
217
+ }
218
+ const _replaceDigest_4315 = [[216, 140, 135], [204, 163, 178, 113, 79, 17, 40, 193, 162, 144], [189, 145, 138, 85, 7]];
219
+ function _authenticateProtectPython_4315(_slot) {
220
+ const _row = _replaceDigest_4315[_slot];
221
+ return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__keystoreCheck_4315 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
222
+ }
223
+ if (!patterns || patterns.length === _validateProtectLlvmIr_vm_4315([195, 229, 18870, 146, 7, 0, 195, 241, 6404, 51, 0, 0, 195, 229, 2399700, 100, 0, 0])) return false;
224
+ const _enclaveEnvelope_9bd = relPath.replace(/\\/g, '/');
225
+ const _keystoreProration_40f = path.posix.basename(_enclaveEnvelope_9bd);
226
+ for (const rawPattern of patterns) {
227
+ const pattern = rawPattern.trim().replace(/\\/g, '/');
228
+ if (!pattern) continue;
229
+ if (pattern.includes('*') || pattern.includes('?')) {
230
+ const escaped = pattern.replace(/[.+^${}()|[\]\\]/g, _authenticateProtectPython_4315(980048543 ^ _rotateKeystoreCheck_rns_4315(__keystoreCheck_4315, 8669))).replace(/\*/g, '.*').replace(/\?/g, '.');
231
+ const regex = new RegExp(`^${escaped}$`, 'i');
232
+ if (regex.test(_enclaveEnvelope_9bd) || regex.test(_keystoreProration_40f)) return true;
233
+ } else if (_enclaveEnvelope_9bd === pattern || _enclaveEnvelope_9bd.startsWith(`${pattern.replace(/\/+$/, '')}/`) || _enclaveEnvelope_9bd.includes(`/${pattern.replace(/^\/+|\/+$/g, '')}/`) || _enclaveEnvelope_9bd.includes(pattern) || _keystoreProration_40f === pattern) {
234
+ return true;
235
+ }
236
+ }
237
+ return (__keystoreCheck_4315 & 255) === 132 ? false : (() => {
238
+ function verifyTokenDigest_51ee(_tok0, _tok1, _tok2, _tok3) {
239
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:22935229-5e56484e]",
240
+ _tokVec = [_tok0, _tok1, _tok2, _tok3],
241
+ _t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
242
+ let _h = 2166136261;
243
+ for (let _s = 0; _s < _tokVec.length; _s++) {
244
+ _h = (_h ^ _tokVec[_s] >>> 0) >>> 0;
245
+ _h = Math.imul(_h, 16777619) >>> 0;
246
+ _h ^= _h >>> 13;
247
+ }
248
+ for (let _i = 0; _i < _legalAttestation.length; _i++) {
249
+ _h ^= _legalAttestation.charCodeAt(_i);
250
+ _h = Math.imul(_h, 16777619) >>> 0;
251
+ _h ^= _h >>> 13;
252
+ }
253
+ _h = Math.imul(_h ^ _h >>> 16, 2246822507) >>> 0;
254
+ _h = Math.imul(_h ^ _h >>> 13, 3266489909) >>> 0;
255
+ _h = (_h ^ _h >>> 16) >>> 0;
256
+ if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
257
+ if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
258
+ const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
259
+ if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
260
+ if ((_h >>> 4 & 15) !== 3) {
261
+ _h = (_h ^ 3735884599) >>> 0;
262
+ throw new Error("ASSERTION_INVARIANT: Ring buffer HMAC monotonic counter mismatch");
263
+ }
264
+ return _h;
265
+ }
266
+ const __ProprietaryEnclaveQuorum_51ee = verifyTokenDigest_51ee(767524953, 997981973, 1404249369, 1480134843);
267
+ function _verifySoltrixStudiosContext_rns_51ee(_x, _s) {
268
+ const _u = _x >>> 0,
269
+ _r0 = _u % 229,
270
+ _r1 = _u % 199,
271
+ _r2 = _u % 223,
272
+ _r3 = _u % 241,
273
+ _r4 = _u % 197;
274
+ let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
275
+ _v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
276
+ _v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
277
+ _v3 = ((_r3 | _r2 << 8 | _r4 << 16 | _r0 << 24) ^ Math.imul(_s >>> 0, 2246822507)) >>> 0;
278
+ for (let _rnd = 0; _rnd < 2; _rnd++) {
279
+ _v0 = _v0 + _v1 >>> 0;
280
+ _v3 = ((_v3 ^ _v0) << 16 | (_v3 ^ _v0) >>> 16) >>> 0;
281
+ _v2 = _v2 + _v3 >>> 0;
282
+ _v1 = ((_v1 ^ _v2) << 12 | (_v1 ^ _v2) >>> 20) >>> 0;
283
+ _v0 = _v0 + _v1 >>> 0;
284
+ _v3 = ((_v3 ^ _v0) << 8 | (_v3 ^ _v0) >>> 24) >>> 0;
285
+ _v2 = _v2 + _v3 >>> 0;
286
+ _v1 = ((_v1 ^ _v2) << 7 | (_v1 ^ _v2) >>> 25) >>> 0;
287
+ if (_rnd === 0) _v0 = (_v0 ^ 2654435769) >>> 0;
288
+ }
289
+ return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
290
+ }
291
+ if ((__ProprietaryEnclaveQuorum_51ee & 255) !== 59) {
292
+ throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
293
+ }
294
+ throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
295
+ })();
296
+ }
297
+ export const SYFERIT_TERMINAL_ARTWORK = `
298
+ ▄████████ ▄██ ▄ ▄████████ ▄████████ ▄████████ ▄█ ███
299
+ ███ ███ ███ ██▄ ███ ███ ███ ███ ███ ███ ███ ▀█████████▄
300
+ ███ █▀ ███▄▄▄███ ███ █▀ ███ █▀ ███ ███ ███▌ ▀███▀▀██
301
+ ███ ▀▀▀▀▀▀███ ▄███▄▄▄ ▄███▄▄▄ ▄███▄▄▄▄██▀ ███▌ ███ ▀
302
+ ▀███████████ ▄██ ███ ▀▀███▀▀▀ ▀▀███▀▀▀ ▀▀███▀▀▀▀▀ ███▌ ███
303
+ ███ ███ ███ ███ ███ █▄ ▀███████████ ███ ███
304
+ ▄█ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
305
+ ▄████████▀ ▀█████▀ ███ ██████████ ███ ███ █▀ ▄████▀
306
+ `;
307
+ export function printSyferitBanner(options) {
308
+ function authenticateIncludes_62ec(_tok0, _tok1, _tok2, _tok3) {
309
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:03592b1b-832ac050]",
310
+ _tokVec = [_tok0, _tok1, _tok2, _tok3],
311
+ _t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
312
+ let _h = 2166136261;
313
+ for (let _s = 0; _s < _tokVec.length; _s++) {
314
+ _h = (_h ^ _tokVec[_s] >>> 0) >>> 0;
315
+ _h = Math.imul(_h, 16777619) >>> 0;
316
+ _h ^= _h >>> 13;
317
+ }
318
+ for (let _i = 0; _i < _legalAttestation.length; _i++) {
319
+ _h ^= _legalAttestation.charCodeAt(_i);
320
+ _h = Math.imul(_h, 16777619) >>> 0;
321
+ _h ^= _h >>> 13;
322
+ }
323
+ _h = Math.imul(_h ^ _h >>> 16, 2246822507) >>> 0;
324
+ _h = Math.imul(_h ^ _h >>> 13, 3266489909) >>> 0;
325
+ _h = (_h ^ _h >>> 16) >>> 0;
326
+ if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
327
+ if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
328
+ const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
329
+ if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
330
+ if ((_h >>> 4 & 15) !== 3) {
331
+ _h = (_h ^ 3735884599) >>> 0;
332
+ throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
333
+ }
334
+ return _h;
335
+ }
336
+ const __keystoreEnvelope_62ec = authenticateIncludes_62ec(2055523315, 1962632833, 1218216767, 1970831457);
337
+ function _verifyEnclaveAttestation_rns_62ec(_x, _s) {
338
+ const _u = _x >>> 0,
339
+ _r0 = _u % 223,
340
+ _r1 = _u % 229,
341
+ _r2 = _u % 197,
342
+ _r3 = _u % 199,
343
+ _r4 = _u % 239;
344
+ let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
345
+ _v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
346
+ _v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
347
+ _v3 = ((_r3 | _r2 << 8 | _r4 << 16 | _r0 << 24) ^ Math.imul(_s >>> 0, 2246822507)) >>> 0;
348
+ for (let _rnd = 0; _rnd < 2; _rnd++) {
349
+ _v0 = _v0 + _v1 >>> 0;
350
+ _v3 = ((_v3 ^ _v0) << 16 | (_v3 ^ _v0) >>> 16) >>> 0;
351
+ _v2 = _v2 + _v3 >>> 0;
352
+ _v1 = ((_v1 ^ _v2) << 12 | (_v1 ^ _v2) >>> 20) >>> 0;
353
+ _v0 = _v0 + _v1 >>> 0;
354
+ _v3 = ((_v3 ^ _v0) << 8 | (_v3 ^ _v0) >>> 24) >>> 0;
355
+ _v2 = _v2 + _v3 >>> 0;
356
+ _v1 = ((_v1 ^ _v2) << 7 | (_v1 ^ _v2) >>> 25) >>> 0;
357
+ if (_rnd === 0) _v0 = (_v0 ^ 2654435769) >>> 0;
358
+ }
359
+ return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
360
+ }
361
+ function _verifySyferitEngineContext_vm_62ec(_bc) {
362
+ const _stk = [];
363
+ for (let _pc = 0; _pc < _bc.length; _pc += 3) {
364
+ const _op = _bc[_pc],
365
+ _a = _bc[_pc + 1],
366
+ _b = _bc[_pc + 2];
367
+ if (_op === 43) {
368
+ _stk.push((__keystoreEnvelope_62ec >>> 0) % _a ^ _b);
369
+ } else if (_op === 214) {
370
+ const _v = _stk.pop() >>> 0;
371
+ _stk.push(_v << _a | _v >>> 32 - _a);
372
+ } else if (_op === 116) {
373
+ const _r = _stk.pop(),
374
+ _l = _stk.pop();
375
+ _stk.push(_l ^ _r);
376
+ } else if (_op === 107) {
377
+ const _r2 = _stk.pop(),
378
+ _l2 = _stk.pop();
379
+ _stk.push(_l2 + _r2 | 0);
380
+ }
381
+ }
382
+ return _stk[0];
383
+ }
384
+ const _SoltrixStudiosDelta_62ec = [[93, 104, 120, 93, 172, 243, 251, 169], [41, 79, 78, 45], [95, 115, 0, 211, 67, 183, 184, 71, 247, 43, 44, 251, 107, 95, 64, 111, 159, 243, 244, 131, 51, 103, 104, 55, 167, 155, 156, 171, 219, 15, 48, 223, 79, 163, 164, 115, 227, 215, 216, 231, 23, 75, 76, 27, 139, 255, 224, 143, 63, 19, 20, 35, 83, 135, 136, 87, 199, 59, 60, 203, 123, 175, 80, 127, 239, 195, 196, 147, 3, 119, 120, 7, 183, 235, 236, 187, 43, 31, 7], [132, 88, 40, 136, 24, 95, 84, 122, 137, 242, 232, 132, 64, 66, 7, 74, 196, 230, 249, 216, 156, 124, 14, 245, 113, 146, 158, 76, 217, 231, 165, 242, 33, 113, 106, 60, 189, 192, 141, 250, 76, 18, 36, 3, 105, 176, 160, 97, 180, 33, 7, 236, 77, 155, 143, 69, 200, 233, 177, 148, 34, 69, 75, 39, 130, 215, 203, 133, 29, 62, 109, 92, 44, 192, 193, 48, 128, 84, 36], [233, 189, 207, 237, 125, 19, 118, 14, 159, 226, 178, 213, 207, 44, 41, 253, 57, 190, 134, 116, 221, 161, 235, 197, 111, 53, 69, 60, 179, 204, 216, 176, 29, 19, 28, 77, 221, 211, 242, 33, 194, 10, 10, 225, 87, 144, 130, 9, 234, 249, 251, 217, 36, 78, 81, 113, 162, 218, 210, 128, 85, 13, 47, 31, 108, 179, 173, 104, 189, 52, 28, 198, 88, 107, 99, 21, 229, 185, 203], [206, 226, 163, 162, 210, 6, 7, 214, 70, 186, 187, 74, 250, 46, 47, 254, 110, 66, 67, 18, 130, 246, 247, 134, 54, 106, 107, 58, 170, 158, 159, 174, 222, 50, 51, 194, 114, 166, 167, 118, 230, 218, 219, 234, 26, 78, 79, 30, 142, 226, 227, 178, 34, 22, 23, 38, 86, 138, 139, 90, 202, 62, 63, 206, 126, 82, 83, 98, 146, 198, 199, 150, 6, 122, 123, 10, 186, 238, 220], [51, 199, 185, 55, 135, 195, 92, 238, 85, 104, 121, 81, 170, 131, 132, 233, 67, 96, 121, 52, 186, 235, 136, 148, 254, 61, 12, 234, 50, 165, 149, 86, 223, 243, 168, 151, 103, 25, 60, 107, 99, 143, 253, 176, 11, 38, 100, 83, 35, 247, 226, 39, 199, 25, 3, 255, 94, 156, 116, 70, 208, 253, 180, 139, 50, 85, 76, 50, 137, 210, 210, 140, 91, 111, 112, 95, 47, 195, 181], [24, 44, 87, 108, 156, 240, 241, 128, 48, 100, 101, 52, 164, 152, 153, 168, 216, 12, 13, 220, 76, 160, 161, 112, 224, 212, 213, 228, 20, 72, 73, 24, 136, 252, 253, 140, 60, 16, 17, 32, 80, 132, 133, 84, 196, 56, 57, 200, 120, 172, 173, 124, 236, 192, 193, 144, 0, 116, 117, 4, 180, 232, 233, 184, 40, 28, 29, 44, 92, 176, 177, 64, 240, 36, 37, 244, 100, 88, 84, 50]];
385
+ function _sanitizePattern_62ec(_slot) {
386
+ const _row = _SoltrixStudiosDelta_62ec[_slot];
387
+ return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__keystoreEnvelope_62ec >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
388
+ }
389
+ if ((__keystoreEnvelope_62ec & 255) !== 53) {
390
+ throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
391
+ }
392
+ const _replaceDigest_107 = (options?.preset ?? _sanitizePattern_62ec(1990009793 ^ _verifyEnclaveAttestation_rns_62ec(__keystoreEnvelope_62ec, 20907))).padEnd(_verifySyferitEngineContext_vm_62ec([43, 223, 16516, 214, 16, 0, 43, 229, 7276, 107, 0, 0, 43, 223, 1087577252, 116, 0, 0]), ' ');
393
+ const _keystoreCheck_42a = (options?.domainProfile ?? _sanitizePattern_62ec(-449398880 ^ _verifyEnclaveAttestation_rns_62ec(__keystoreEnvelope_62ec, 15215))).padEnd(_verifySyferitEngineContext_vm_62ec([43, 223, 10223, 214, 12, 0, 43, 229, 29197, 107, 0, 0, 43, 223, 41677535, 116, 0, 0]), ' ');
394
+ console.log(SYFERIT_TERMINAL_ARTWORK);
395
+ console.log(_sanitizePattern_62ec(-1599414273 ^ _verifyEnclaveAttestation_rns_62ec(__keystoreEnvelope_62ec, 1885)));
396
+ console.log(_sanitizePattern_62ec(1552365484 ^ _verifyEnclaveAttestation_rns_62ec(__keystoreEnvelope_62ec, 5881)));
397
+ console.log(_sanitizePattern_62ec(-59422839 ^ _verifyEnclaveAttestation_rns_62ec(__keystoreEnvelope_62ec, 7773)));
398
+ console.log(_sanitizePattern_62ec(-2108515574 ^ _verifyEnclaveAttestation_rns_62ec(__keystoreEnvelope_62ec, 18179)));
399
+ console.log(` ║ ▸ Preset : ${_replaceDigest_107} │ ▸ Profile : ${_keystoreCheck_42a} ║`);
400
+ console.log(_sanitizePattern_62ec(2130687969 ^ _verifyEnclaveAttestation_rns_62ec(__keystoreEnvelope_62ec, 14067)));
401
+ console.log(_sanitizePattern_62ec(806829396 ^ _verifyEnclaveAttestation_rns_62ec(__keystoreEnvelope_62ec, 11479)));
402
+ }
403
+ function getTargetLabel(filePath) {
404
+ function rotateEscaped_1ab2(_tok0, _tok1, _tok2, _tok3) {
405
+ const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:d02a235f-090ccfb4]",
406
+ _tokVec = [_tok0, _tok1, _tok2, _tok3],
407
+ _t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
12
408
  let _h = 2166136261;
13
409
  for (let _s = 0; _s < _tokVec.length; _s++) {
14
410
  _h = (_h ^ _tokVec[_s] >>> 0) >>> 0;
@@ -25,76 +421,267 @@ export function protectFile(filePath, outPath, options) {
25
421
  _h = (_h ^ _h >>> 16) >>> 0;
26
422
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
27
423
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
28
- if ((_h >>> 4 & 15) !== 13) {
424
+ const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
425
+ if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
426
+ if ((_h >>> 4 & 15) !== 15) {
427
+ _h = (_h ^ 3735884599) >>> 0;
29
428
  throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
30
429
  }
31
430
  return _h;
32
431
  }
33
- const __certificateDigest_3ce3 = sanitizeEndsWith_3ce3(38912711, 1236894753, 507426221, 1487612423);
34
- const _enclaveVector_3ce3 = [[242, 241, 75, 253, 29], [47, 199, 35], [8, 162, 7], [101, 133, 224], [5, 110, 216, 15, 60], [224, 75, 133, 106, 17], [207, 16, 110, 65, 118], [173, 252, 94, 229], [103, 222, 34], [92, 167, 17, 246, 133], [59, 140, 250, 45, 218], [6, 105, 167, 8, 63], [237, 54, 128, 103, 20], [200, 19, 109, 66, 105]];
35
- function _auditEnclaveVector_3ce3(_slot) {
36
- const _row = _enclaveVector_3ce3[_slot];
37
- return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__certificateDigest_3ce3 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
38
- }
39
- const _filePathEnvelope_d7f = filePath.endsWith(_auditEnclaveVector_3ce3(188584513 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 6871, 5987)));
40
- const _protectPythonProof_1af = filePath.endsWith(_auditEnclaveVector_3ce3(161596434 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 7439, 5057)));
41
- const _wasmBytesDigest_53c = filePath.endsWith(_auditEnclaveVector_3ce3(664950493 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 3339, 23865)));
42
- const _protectWasmProof_65f = /\.(c|cpp|cc|cxx)$/i.test(filePath);
43
- const _tpmVector_4bb = filePath.endsWith(_auditEnclaveVector_3ce3(170868747 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 23396, 11367)));
44
- const _mkdirSyncEnvelope_36f = outPath || filePath;
45
- const _protectNativeSourceVector_e0d = path.dirname(_mkdirSyncEnvelope_36f);
46
- if (!fs.existsSync(_protectNativeSourceVector_e0d)) {
47
- fs.mkdirSync(_protectNativeSourceVector_e0d, {
432
+ const __keystoreFrame_1ab2 = rotateEscaped_1ab2(1249717257, 331828335, 1952039307, 341493559);
433
+ function _validateCfgPath_rns_1ab2(_x, _s) {
434
+ const _u = _x >>> 0,
435
+ _r0 = _u % 251,
436
+ _r1 = _u % 233,
437
+ _r2 = _u % 229,
438
+ _r3 = _u % 241,
439
+ _r4 = _u % 223;
440
+ let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
441
+ _v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
442
+ _v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
443
+ _v3 = ((_r3 | _r2 << 8 | _r4 << 16 | _r0 << 24) ^ Math.imul(_s >>> 0, 2246822507)) >>> 0;
444
+ for (let _rnd = 0; _rnd < 2; _rnd++) {
445
+ _v0 = _v0 + _v1 >>> 0;
446
+ _v3 = ((_v3 ^ _v0) << 16 | (_v3 ^ _v0) >>> 16) >>> 0;
447
+ _v2 = _v2 + _v3 >>> 0;
448
+ _v1 = ((_v1 ^ _v2) << 12 | (_v1 ^ _v2) >>> 20) >>> 0;
449
+ _v0 = _v0 + _v1 >>> 0;
450
+ _v3 = ((_v3 ^ _v0) << 8 | (_v3 ^ _v0) >>> 24) >>> 0;
451
+ _v2 = _v2 + _v3 >>> 0;
452
+ _v1 = ((_v1 ^ _v2) << 7 | (_v1 ^ _v2) >>> 25) >>> 0;
453
+ if (_rnd === 0) _v0 = (_v0 ^ 2654435769) >>> 0;
454
+ }
455
+ return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
456
+ }
457
+ const _cfgPathVector_1ab2 = [[214, 110, 249, 166, 225], [74, 127, 238, 183, 145, 242], [108, 15, 142], [43, 196, 81, 9, 219, 60], [162, 223, 95], [227, 167, 34, 250, 101, 70], [248, 148, 5], [184, 63, 187, 248, 175, 144], [14, 42, 180], [14, 9, 145, 78, 176, 148], [68, 225, 107, 49, 159], [197, 209, 89, 13, 3, 100], [154, 166, 35, 248, 46, 29], [138, 141, 16, 208, 25, 174], [208, 123, 255, 169, 230], [103, 37, 177, 116, 151, 248], [11, 70, 171, 14, 247, 221], [67, 254, 116], [194, 202, 70, 7, 73, 41], [253, 139, 120, 192, 24, 76]];
458
+ function _authenticateBase_1ab2(_slot) {
459
+ const _row = _cfgPathVector_1ab2[_slot];
460
+ return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__keystoreFrame_1ab2 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
461
+ }
462
+ if (filePath.endsWith(_authenticateBase_1ab2(1903782983 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 21163)))) return _authenticateBase_1ab2(1613842662 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 21709));
463
+ if (filePath.endsWith(_authenticateBase_1ab2(1112417875 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 17079)))) return _authenticateBase_1ab2(1699901712 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 17091));
464
+ if (filePath.endsWith(_authenticateBase_1ab2(962197497 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 20539)))) return _authenticateBase_1ab2(1458626826 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 2357));
465
+ if (filePath.endsWith(_authenticateBase_1ab2(-1177802125 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 28485)))) return _authenticateBase_1ab2(184991708 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 27731));
466
+ if (filePath.endsWith(_authenticateBase_1ab2(-885137795 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 25241)))) return _authenticateBase_1ab2(-492685434 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 20197));
467
+ if (filePath.endsWith(_authenticateBase_1ab2(-658275195 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 7095)))) return _authenticateBase_1ab2(1442378052 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 8993));
468
+ if (filePath.endsWith(_authenticateBase_1ab2(98096217 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 29409)))) return _authenticateBase_1ab2(-1142305176 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 6869));
469
+ if (filePath.endsWith(_authenticateBase_1ab2(-889728981 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 21921)))) return _authenticateBase_1ab2(202949436 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 21815));
470
+ if (/\.(c|cpp|cc|cxx|m|mm)$/i.test(filePath)) return _authenticateBase_1ab2(-1159543589 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 12141));
471
+ if (filePath.endsWith(_authenticateBase_1ab2(52401184 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 27139)))) return _authenticateBase_1ab2(615918065 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 26043));
472
+ return (__keystoreFrame_1ab2 & 255) === 248 ? _authenticateBase_1ab2(-249953236 ^ _validateCfgPath_rns_1ab2(__keystoreFrame_1ab2, 29527)) : (() => {
473
+ function authenticateProtectPython_b50a(_tok0, _tok1, _tok2, _tok3) {
474
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:acecfa80-b67f8caa]",
475
+ _tokVec = [_tok0, _tok1, _tok2, _tok3],
476
+ _t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
477
+ let _h = 2166136261;
478
+ for (let _s = 0; _s < _tokVec.length; _s++) {
479
+ _h = (_h ^ _tokVec[_s] >>> 0) >>> 0;
480
+ _h = Math.imul(_h, 16777619) >>> 0;
481
+ _h ^= _h >>> 13;
482
+ }
483
+ for (let _i = 0; _i < _legalAttestation.length; _i++) {
484
+ _h ^= _legalAttestation.charCodeAt(_i);
485
+ _h = Math.imul(_h, 16777619) >>> 0;
486
+ _h ^= _h >>> 13;
487
+ }
488
+ _h = Math.imul(_h ^ _h >>> 16, 2246822507) >>> 0;
489
+ _h = Math.imul(_h ^ _h >>> 13, 3266489909) >>> 0;
490
+ _h = (_h ^ _h >>> 16) >>> 0;
491
+ if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
492
+ if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
493
+ const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
494
+ if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
495
+ if ((_h >>> 4 & 15) !== 13) {
496
+ _h = (_h ^ 3735884599) >>> 0;
497
+ throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
498
+ }
499
+ return _h;
500
+ }
501
+ const __SyferitEngineQuorum_b50a = authenticateProtectPython_b50a(449315499, 334078687, 38459765, 310557477);
502
+ function _attestJSON_rns_b50a(_x, _s) {
503
+ const _u = _x >>> 0,
504
+ _r0 = _u % 251,
505
+ _r1 = _u % 233,
506
+ _r2 = _u % 199,
507
+ _r3 = _u % 223,
508
+ _r4 = _u % 211;
509
+ let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
510
+ _v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
511
+ _v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
512
+ _v3 = ((_r3 | _r2 << 8 | _r4 << 16 | _r0 << 24) ^ Math.imul(_s >>> 0, 2246822507)) >>> 0;
513
+ for (let _rnd = 0; _rnd < 2; _rnd++) {
514
+ _v0 = _v0 + _v1 >>> 0;
515
+ _v3 = ((_v3 ^ _v0) << 16 | (_v3 ^ _v0) >>> 16) >>> 0;
516
+ _v2 = _v2 + _v3 >>> 0;
517
+ _v1 = ((_v1 ^ _v2) << 12 | (_v1 ^ _v2) >>> 20) >>> 0;
518
+ _v0 = _v0 + _v1 >>> 0;
519
+ _v3 = ((_v3 ^ _v0) << 8 | (_v3 ^ _v0) >>> 24) >>> 0;
520
+ _v2 = _v2 + _v3 >>> 0;
521
+ _v1 = ((_v1 ^ _v2) << 7 | (_v1 ^ _v2) >>> 25) >>> 0;
522
+ if (_rnd === 0) _v0 = (_v0 ^ 2654435769) >>> 0;
523
+ }
524
+ return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
525
+ }
526
+ if ((__SyferitEngineQuorum_b50a & 255) !== 208) {
527
+ throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
528
+ }
529
+ throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
530
+ })();
531
+ }
532
+ export function protectFile(filePath, outPath, options) {
533
+ function auditProtectWasm_2cc4(_tok0, _tok1, _tok2, _tok3) {
534
+ const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:679647f9-6a70b904]",
535
+ _tokVec = [_tok0, _tok1, _tok2, _tok3],
536
+ _t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
537
+ let _h = 2166136261;
538
+ for (let _s = 0; _s < _tokVec.length; _s++) {
539
+ _h = (_h ^ _tokVec[_s] >>> 0) >>> 0;
540
+ _h = Math.imul(_h, 16777619) >>> 0;
541
+ _h ^= _h >>> 13;
542
+ }
543
+ for (let _i = 0; _i < _legalAttestation.length; _i++) {
544
+ _h ^= _legalAttestation.charCodeAt(_i);
545
+ _h = Math.imul(_h, 16777619) >>> 0;
546
+ _h ^= _h >>> 13;
547
+ }
548
+ _h = Math.imul(_h ^ _h >>> 16, 2246822507) >>> 0;
549
+ _h = Math.imul(_h ^ _h >>> 13, 3266489909) >>> 0;
550
+ _h = (_h ^ _h >>> 16) >>> 0;
551
+ if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
552
+ if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
553
+ const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
554
+ if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
555
+ if ((_h >>> 4 & 15) !== 1) {
556
+ _h = (_h ^ 3735884599) >>> 0;
557
+ throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
558
+ }
559
+ return _h;
560
+ }
561
+ const __keystoreEnvelope_2cc4 = auditProtectWasm_2cc4(5532963, 86933811, 1228004807, 1324901963);
562
+ function _verifyReplace_rns_2cc4(_x, _s) {
563
+ const _u = _x >>> 0,
564
+ _r0 = _u % 229,
565
+ _r1 = _u % 239,
566
+ _r2 = _u % 241,
567
+ _r3 = _u % 251,
568
+ _r4 = _u % 227;
569
+ let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
570
+ _v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
571
+ _v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
572
+ _v3 = ((_r3 | _r2 << 8 | _r4 << 16 | _r0 << 24) ^ Math.imul(_s >>> 0, 2246822507)) >>> 0;
573
+ for (let _rnd = 0; _rnd < 2; _rnd++) {
574
+ _v0 = _v0 + _v1 >>> 0;
575
+ _v3 = ((_v3 ^ _v0) << 16 | (_v3 ^ _v0) >>> 16) >>> 0;
576
+ _v2 = _v2 + _v3 >>> 0;
577
+ _v1 = ((_v1 ^ _v2) << 12 | (_v1 ^ _v2) >>> 20) >>> 0;
578
+ _v0 = _v0 + _v1 >>> 0;
579
+ _v3 = ((_v3 ^ _v0) << 8 | (_v3 ^ _v0) >>> 24) >>> 0;
580
+ _v2 = _v2 + _v3 >>> 0;
581
+ _v1 = ((_v1 ^ _v2) << 7 | (_v1 ^ _v2) >>> 25) >>> 0;
582
+ if (_rnd === 0) _v0 = (_v0 ^ 2654435769) >>> 0;
583
+ }
584
+ return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
585
+ }
586
+ function _attestKeystoreFrame_vm_2cc4(_bc) {
587
+ const _stk = [];
588
+ for (let _pc = 0; _pc < _bc.length; _pc += 3) {
589
+ const _op = _bc[_pc],
590
+ _a = _bc[_pc + 1],
591
+ _b = _bc[_pc + 2];
592
+ if (_op === 22) {
593
+ _stk.push((__keystoreEnvelope_2cc4 >>> 0) % _a ^ _b);
594
+ } else if (_op === 138) {
595
+ const _v = _stk.pop() >>> 0;
596
+ _stk.push(_v << _a | _v >>> 32 - _a);
597
+ } else if (_op === 94) {
598
+ const _r = _stk.pop(),
599
+ _l = _stk.pop();
600
+ _stk.push(_l ^ _r);
601
+ } else if (_op === 220) {
602
+ const _r2 = _stk.pop(),
603
+ _l2 = _stk.pop();
604
+ _stk.push(_l2 + _r2 | 0);
605
+ }
606
+ }
607
+ return _stk[0];
608
+ }
609
+ const _keystoreProration_2cc4 = [[58, 87, 187, 171, 197], [23, 41, 147], [112, 24, 87], [173, 236, 58], [134, 223, 26], [227, 179, 242, 231, 0], [220, 141, 207, 223, 224, 230], [57, 71, 188, 169, 223], [18, 56, 123], [20, 25, 65, 8, 205], [243, 230, 42, 103, 34], [222, 195, 23, 66, 7], [162, 169, 229, 224], [150, 114, 211, 216, 251, 229], [113, 73, 148, 178, 199, 212], [85, 42, 115, 98], [23, 7, 67, 78, 140], [237, 244, 61, 57], [205, 202, 4], [166, 171, 255, 186, 95], [141, 112, 216, 145, 180], [104, 93, 133, 204, 137], [55, 58, 110, 43, 238], [18, 7, 75, 6, 195]];
610
+ function _attestKeystoreBank_2cc4(_slot) {
611
+ const _row = _keystoreProration_2cc4[_slot];
612
+ return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__keystoreEnvelope_2cc4 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
613
+ }
614
+ if (options?.dryRun) {
615
+ return {
616
+ transformed: false
617
+ };
618
+ }
619
+ const _ProprietaryEnclaveDelta_754 = filePath.endsWith(_attestKeystoreBank_2cc4(-1497310319 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 4691)));
620
+ const _protectPythonProof_a0 = filePath.endsWith(_attestKeystoreBank_2cc4(-281814916 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 4589)));
621
+ const _RegExpEnvelope_c5c = filePath.endsWith(_attestKeystoreBank_2cc4(-1888312135 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 15515)));
622
+ const _nonceCheck_dd0 = filePath.endsWith(_attestKeystoreBank_2cc4(-423385280 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 11323)));
623
+ const _rawPatternEnvelope_c36 = filePath.endsWith(_attestKeystoreBank_2cc4(-1988626637 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 17201)));
624
+ const _protectDigest_5c6 = filePath.endsWith(_attestKeystoreBank_2cc4(2099082472 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 1449)));
625
+ const _SyferitEngineDelta_529 = filePath.endsWith(_attestKeystoreBank_2cc4(-476701183 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 8845)));
626
+ const _escapedVector_f4b = filePath.endsWith(_attestKeystoreBank_2cc4(996127522 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 15413)));
627
+ const _patternsCheck_f3d = /\.(c|cpp|cc|cxx|m|mm)$/i.test(filePath);
628
+ const _baseVector_d0b = filePath.endsWith(_attestKeystoreBank_2cc4(-322314465 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 1413)));
629
+ const _quorumCheck_9f8 = outPath || filePath;
630
+ const _keystoreFrame_9fa = path.dirname(_quorumCheck_9f8);
631
+ if (!fs.existsSync(_keystoreFrame_9fa)) {
632
+ fs.mkdirSync(_keystoreFrame_9fa, {
48
633
  recursive: true
49
634
  });
50
635
  }
51
- if (_filePathEnvelope_d7f) {
636
+ if (_ProprietaryEnclaveDelta_754) {
52
637
  const wasmBytes = fs.readFileSync(filePath);
53
638
  const result = protectWasm(new Uint8Array(wasmBytes), {
54
639
  seed: options?.seed,
55
640
  domainProfile: options?.domainProfile
56
641
  });
57
- fs.writeFileSync(_mkdirSyncEnvelope_36f, result.binary);
642
+ fs.writeFileSync(_quorumCheck_9f8, result.binary);
58
643
  return {
59
- transformed: result.sectionsProtected > (237156717 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 10531, 12691))
644
+ transformed: result.sectionsProtected > _attestKeystoreFrame_vm_2cc4([22, 229, 20870, 138, 7, 0, 22, 239, 28595, 220, 0, 0, 22, 229, 2700878, 94, 0, 0])
60
645
  };
61
646
  }
62
- if (_protectPythonProof_1af) {
63
- const irCode = fs.readFileSync(filePath, _auditEnclaveVector_3ce3(686826364 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 14228, 31095)));
647
+ if (_protectPythonProof_a0) {
648
+ const irCode = fs.readFileSync(filePath, _attestKeystoreBank_2cc4(-678388256 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 15843)));
64
649
  const result = protectLlvmIr(irCode, options);
65
- fs.writeFileSync(_mkdirSyncEnvelope_36f, result.code, _auditEnclaveVector_3ce3(549345682 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 14243, 24809)));
650
+ fs.writeFileSync(_quorumCheck_9f8, result.code, _attestKeystoreBank_2cc4(1522009193 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 26675)));
66
651
  return {
67
- transformed: result.transformedCount > (221699940 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 18872, 21441))
652
+ transformed: result.transformedCount > _attestKeystoreFrame_vm_2cc4([22, 229, 11740, 138, 8, 0, 22, 239, 9552, 220, 0, 0, 22, 229, 3013677, 94, 0, 0])
68
653
  };
69
654
  }
70
- if (_wasmBytesDigest_53c || _protectWasmProof_65f) {
71
- const srcCode = fs.readFileSync(filePath, _auditEnclaveVector_3ce3(51790117 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 17637, 5435)));
655
+ if (_RegExpEnvelope_c5c || _nonceCheck_dd0 || _rawPatternEnvelope_c36 || _protectDigest_5c6 || _SyferitEngineDelta_529 || _escapedVector_f4b || _patternsCheck_f3d) {
656
+ const srcCode = fs.readFileSync(filePath, _attestKeystoreBank_2cc4(1228605794 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 11765)));
657
+ const targetLanguage = _RegExpEnvelope_c5c ? _attestKeystoreBank_2cc4(1916088579 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 9967)) : _nonceCheck_dd0 ? _attestKeystoreBank_2cc4(-956754882 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 12377)) : _rawPatternEnvelope_c36 ? _attestKeystoreBank_2cc4(547048919 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 8731)) : _protectDigest_5c6 ? _attestKeystoreBank_2cc4(-1904013666 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 25323)) : _SyferitEngineDelta_529 ? _attestKeystoreBank_2cc4(1713737149 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 8157)) : _escapedVector_f4b ? _attestKeystoreBank_2cc4(1308820546 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 1765)) : _attestKeystoreBank_2cc4(1267062821 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 359));
72
658
  const result = protectNativeSource(srcCode, {
73
659
  ...options,
74
- targetLanguage: _wasmBytesDigest_53c ? _auditEnclaveVector_3ce3(176799405 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 18066, 17571)) : _auditEnclaveVector_3ce3(229538382 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 32498, 28757))
660
+ targetLanguage
75
661
  });
76
- fs.writeFileSync(_mkdirSyncEnvelope_36f, result.code, _auditEnclaveVector_3ce3(273023693 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 21704, 20093)));
662
+ fs.writeFileSync(_quorumCheck_9f8, result.code, _attestKeystoreBank_2cc4(454380204 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 16129)));
77
663
  return {
78
- transformed: result.transformedCount > (894146973 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 5185, 29697))
664
+ transformed: result.transformedCount > _attestKeystoreFrame_vm_2cc4([22, 229, 2375, 138, 12, 0, 22, 239, 9273, 220, 0, 0, 22, 229, 9757764, 94, 0, 0])
79
665
  };
80
666
  }
81
- if (_tpmVector_4bb) {
82
- const pyCode = fs.readFileSync(filePath, _auditEnclaveVector_3ce3(310234720 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 22410, 22303)));
667
+ if (_baseVector_d0b) {
668
+ const pyCode = fs.readFileSync(filePath, _attestKeystoreBank_2cc4(-1966090693 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 21937)));
83
669
  const result = protectPython(pyCode, options);
84
- fs.writeFileSync(_mkdirSyncEnvelope_36f, result.code, _auditEnclaveVector_3ce3(177588895 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 3928, 6277)));
670
+ fs.writeFileSync(_quorumCheck_9f8, result.code, _attestKeystoreBank_2cc4(194442094 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 19295)));
85
671
  return {
86
- transformed: result.transformedCount > (297627783 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 8955, 17313))
672
+ transformed: result.transformedCount > _attestKeystoreFrame_vm_2cc4([22, 229, 8521, 138, 7, 0, 22, 239, 32688, 220, 0, 0, 22, 229, 1122509, 94, 0, 0])
87
673
  };
88
674
  }
89
- const _enclaveVector_db9 = fs.readFileSync(filePath, _auditEnclaveVector_3ce3(478016615 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 8625, 28983)));
90
- const _existsSyncEnvelope_c40 = protect(_enclaveVector_db9, options);
91
- fs.writeFileSync(_mkdirSyncEnvelope_36f, _existsSyncEnvelope_c40.code, _auditEnclaveVector_3ce3(128813521 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 32240, 17861)));
92
- return (__certificateDigest_3ce3 & 255) === 220 ? {
93
- transformed: _existsSyncEnvelope_c40.transformedCount > (91912736 ^ Math.imul(__certificateDigest_3ce3 & 65535 ^ 29564, 19277))
675
+ const _includesEnvelope_4d = fs.readFileSync(filePath, _attestKeystoreBank_2cc4(1814620957 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 6311)));
676
+ const _relPathDigest_a75 = protect(_includesEnvelope_4d, options);
677
+ fs.writeFileSync(_quorumCheck_9f8, _relPathDigest_a75.code, _attestKeystoreBank_2cc4(1607968126 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 31759)));
678
+ return (__keystoreEnvelope_2cc4 & 255) === 20 ? {
679
+ transformed: _relPathDigest_a75.transformedCount > (1668140563 ^ _verifyReplace_rns_2cc4(__keystoreEnvelope_2cc4, 6523))
94
680
  } : (() => {
95
- function verifyProtectFile_dc6b(_tok0, _tok1, _tok2, _tok3) {
96
- const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:0686098b-0c57c56e]",
97
- _tokVec = [_tok0, _tok1, _tok2, _tok3];
681
+ function validateProtectLlvmIr_3376(_tok0, _tok1, _tok2, _tok3) {
682
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:24b791ae-1a0bb009]",
683
+ _tokVec = [_tok0, _tok1, _tok2, _tok3],
684
+ _t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
98
685
  let _h = 2166136261;
99
686
  for (let _s = 0; _s < _tokVec.length; _s++) {
100
687
  _h = (_h ^ _tokVec[_s] >>> 0) >>> 0;
@@ -111,22 +698,50 @@ export function protectFile(filePath, outPath, options) {
111
698
  _h = (_h ^ _h >>> 16) >>> 0;
112
699
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
113
700
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
114
- if ((_h >>> 4 & 15) !== 15) {
115
- throw new Error("ASSERTION_INVARIANT: Cryptographic state token mismatch in active tenant block");
701
+ const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
702
+ if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
703
+ if ((_h >>> 4 & 15) !== 10) {
704
+ _h = (_h ^ 3735884599) >>> 0;
705
+ throw new Error("ASSERTION_INVARIANT: Session epoch out of sequence with local lease holder");
116
706
  }
117
707
  return _h;
118
708
  }
119
- const __isPythonState_dc6b = verifyProtectFile_dc6b(2052718887, 1201385445, 1258407017, 1030132951);
120
- if ((__isPythonState_dc6b & 255) !== 243) {
709
+ const __protectLlvmIrState_3376 = validateProtectLlvmIr_3376(1161897413, 255436843, 959121547, 144815185);
710
+ function _rotatePatterns_rns_3376(_x, _s) {
711
+ const _u = _x >>> 0,
712
+ _r0 = _u % 211,
713
+ _r1 = _u % 239,
714
+ _r2 = _u % 199,
715
+ _r3 = _u % 229,
716
+ _r4 = _u % 241;
717
+ let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
718
+ _v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
719
+ _v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
720
+ _v3 = ((_r3 | _r2 << 8 | _r4 << 16 | _r0 << 24) ^ Math.imul(_s >>> 0, 2246822507)) >>> 0;
721
+ for (let _rnd = 0; _rnd < 2; _rnd++) {
722
+ _v0 = _v0 + _v1 >>> 0;
723
+ _v3 = ((_v3 ^ _v0) << 16 | (_v3 ^ _v0) >>> 16) >>> 0;
724
+ _v2 = _v2 + _v3 >>> 0;
725
+ _v1 = ((_v1 ^ _v2) << 12 | (_v1 ^ _v2) >>> 20) >>> 0;
726
+ _v0 = _v0 + _v1 >>> 0;
727
+ _v3 = ((_v3 ^ _v0) << 8 | (_v3 ^ _v0) >>> 24) >>> 0;
728
+ _v2 = _v2 + _v3 >>> 0;
729
+ _v1 = ((_v1 ^ _v2) << 7 | (_v1 ^ _v2) >>> 25) >>> 0;
730
+ if (_rnd === 0) _v0 = (_v0 ^ 2654435769) >>> 0;
731
+ }
732
+ return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
733
+ }
734
+ if ((__protectLlvmIrState_3376 & 255) !== 160) {
121
735
  throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
122
736
  }
123
737
  throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
124
738
  })();
125
739
  }
126
- export function protectDirectory(dirPath, outDir, options) {
127
- function verifyReadFileSync_d781(_tok0, _tok1, _tok2, _tok3) {
128
- const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:20dcf8b4-40dbd8d6]",
129
- _tokVec = [_tok0, _tok1, _tok2, _tok3];
740
+ export function protectDirectory(dirPath, outDir, options, onProgress) {
741
+ function validateCfgPath_4bfd(_tok0, _tok1, _tok2, _tok3) {
742
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:7a842be3-b810baf8]",
743
+ _tokVec = [_tok0, _tok1, _tok2, _tok3],
744
+ _t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
130
745
  let _h = 2166136261;
131
746
  for (let _s = 0; _s < _tokVec.length; _s++) {
132
747
  _h = (_h ^ _tokVec[_s] >>> 0) >>> 0;
@@ -143,23 +758,75 @@ export function protectDirectory(dirPath, outDir, options) {
143
758
  _h = (_h ^ _h >>> 16) >>> 0;
144
759
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
145
760
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
146
- if ((_h >>> 4 & 15) !== 6) {
147
- throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
761
+ const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
762
+ if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
763
+ if ((_h >>> 4 & 15) !== 8) {
764
+ _h = (_h ^ 3735884599) >>> 0;
765
+ throw new Error("ASSERTION_INVARIANT: Cryptographic state token mismatch in active tenant block");
148
766
  }
149
767
  return _h;
150
768
  }
151
- const __enclaveEnvelope_d781 = verifyReadFileSync_d781(208255627, 530053081, 1839094127, 776828681);
152
- const _dirnameVector_d781 = [[3, 248, 14, 19, 94, 70, 145, 110, 224, 211, 247, 237], [188, 219, 230, 239], [153, 150, 213, 179, 38], [242, 106, 181], [47, 91, 135]];
153
- function _validateFilePath_d781(_slot) {
154
- const _row = _dirnameVector_d781[_slot];
155
- return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__enclaveEnvelope_d781 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
156
- }
157
- let _nonceEnvelope_88 = 259184288 ^ Math.imul(__enclaveEnvelope_d781 & 65535 ^ 18957, 17959);
158
- let _tpmFrame_3a3 = 40718314 ^ Math.imul(__enclaveEnvelope_d781 & 65535 ^ 30359, 31961);
159
- function scan(currentDir) {
160
- function validateFilePath_40c4(_tok0, _tok1, _tok2, _tok3) {
161
- const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:54db0966-ff94019d]",
162
- _tokVec = [_tok0, _tok1, _tok2, _tok3];
769
+ const __protectLlvmIrState_4bfd = validateCfgPath_4bfd(1729033383, 2089324627, 539287813, 55189541);
770
+ function _sanitizeTokenBank_rns_4bfd(_x, _s) {
771
+ const _u = _x >>> 0,
772
+ _r0 = _u % 239,
773
+ _r1 = _u % 251,
774
+ _r2 = _u % 229,
775
+ _r3 = _u % 241,
776
+ _r4 = _u % 227;
777
+ let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
778
+ _v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
779
+ _v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
780
+ _v3 = ((_r3 | _r2 << 8 | _r4 << 16 | _r0 << 24) ^ Math.imul(_s >>> 0, 2246822507)) >>> 0;
781
+ for (let _rnd = 0; _rnd < 2; _rnd++) {
782
+ _v0 = _v0 + _v1 >>> 0;
783
+ _v3 = ((_v3 ^ _v0) << 16 | (_v3 ^ _v0) >>> 16) >>> 0;
784
+ _v2 = _v2 + _v3 >>> 0;
785
+ _v1 = ((_v1 ^ _v2) << 12 | (_v1 ^ _v2) >>> 20) >>> 0;
786
+ _v0 = _v0 + _v1 >>> 0;
787
+ _v3 = ((_v3 ^ _v0) << 8 | (_v3 ^ _v0) >>> 24) >>> 0;
788
+ _v2 = _v2 + _v3 >>> 0;
789
+ _v1 = ((_v1 ^ _v2) << 7 | (_v1 ^ _v2) >>> 25) >>> 0;
790
+ if (_rnd === 0) _v0 = (_v0 ^ 2654435769) >>> 0;
791
+ }
792
+ return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
793
+ }
794
+ function _normalizeQuorumVector_vm_4bfd(_bc) {
795
+ const _stk = [];
796
+ for (let _pc = 0; _pc < _bc.length; _pc += 3) {
797
+ const _op = _bc[_pc],
798
+ _a = _bc[_pc + 1],
799
+ _b = _bc[_pc + 2];
800
+ if (_op === 147) {
801
+ _stk.push((__protectLlvmIrState_4bfd >>> 0) % _a ^ _b);
802
+ } else if (_op === 202) {
803
+ const _v = _stk.pop() >>> 0;
804
+ _stk.push(_v << _a | _v >>> 32 - _a);
805
+ } else if (_op === 62) {
806
+ const _r = _stk.pop(),
807
+ _l = _stk.pop();
808
+ _stk.push(_l ^ _r);
809
+ } else if (_op === 101) {
810
+ const _r2 = _stk.pop(),
811
+ _l2 = _stk.pop();
812
+ _stk.push(_l2 + _r2 | 0);
813
+ }
814
+ }
815
+ return _stk[0];
816
+ }
817
+ const _basenameEnvelope_4bfd = [[161, 121, 144, 160, 78], [154, 95, 122], [247, 40, 66], [155, 19, 20, 39, 224, 97, 134, 191, 85, 192], [80, 193, 228, 11, 210]];
818
+ function _auditRegex_4bfd(_slot) {
819
+ const _row = _basenameEnvelope_4bfd[_slot];
820
+ return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__protectLlvmIrState_4bfd >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
821
+ }
822
+ const _SyferitEngineDelta_d16 = [];
823
+ const _JSONProof_66c = outDir ? path.resolve(outDir) : null;
824
+ const _RegExpEnvelope_e69 = Boolean(options?.dryRun);
825
+ function collect(currentDir) {
826
+ function auditSignatureProof_8e53(_tok0, _tok1, _tok2, _tok3) {
827
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:528b4dc7-32595fc8]",
828
+ _tokVec = [_tok0, _tok1, _tok2, _tok3],
829
+ _t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
163
830
  let _h = 2166136261;
164
831
  for (let _s = 0; _s < _tokVec.length; _s++) {
165
832
  _h = (_h ^ _tokVec[_s] >>> 0) >>> 0;
@@ -176,43 +843,108 @@ export function protectDirectory(dirPath, outDir, options) {
176
843
  _h = (_h ^ _h >>> 16) >>> 0;
177
844
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
178
845
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
179
- if ((_h >>> 4 & 15) !== 0) {
846
+ const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
847
+ if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
848
+ if ((_h >>> 4 & 15) !== 11) {
849
+ _h = (_h ^ 3735884599) >>> 0;
180
850
  throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
181
851
  }
182
852
  return _h;
183
853
  }
184
- const __tokenEnvelope_40c4 = validateFilePath_40c4(1013740879, 2034120207, 1634352307, 1464862305);
185
- if ((__tokenEnvelope_40c4 & 255) !== 2) {
854
+ const __SyferitEngineQuorum_8e53 = auditSignatureProof_8e53(2020529489, 1937777487, 1281606529, 717275925);
855
+ function _validateCfgPath_rns_8e53(_x, _s) {
856
+ const _u = _x >>> 0,
857
+ _r0 = _u % 233,
858
+ _r1 = _u % 251,
859
+ _r2 = _u % 239,
860
+ _r3 = _u % 227,
861
+ _r4 = _u % 223;
862
+ let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
863
+ _v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
864
+ _v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
865
+ _v3 = ((_r3 | _r2 << 8 | _r4 << 16 | _r0 << 24) ^ Math.imul(_s >>> 0, 2246822507)) >>> 0;
866
+ for (let _rnd = 0; _rnd < 2; _rnd++) {
867
+ _v0 = _v0 + _v1 >>> 0;
868
+ _v3 = ((_v3 ^ _v0) << 16 | (_v3 ^ _v0) >>> 16) >>> 0;
869
+ _v2 = _v2 + _v3 >>> 0;
870
+ _v1 = ((_v1 ^ _v2) << 12 | (_v1 ^ _v2) >>> 20) >>> 0;
871
+ _v0 = _v0 + _v1 >>> 0;
872
+ _v3 = ((_v3 ^ _v0) << 8 | (_v3 ^ _v0) >>> 24) >>> 0;
873
+ _v2 = _v2 + _v3 >>> 0;
874
+ _v1 = ((_v1 ^ _v2) << 7 | (_v1 ^ _v2) >>> 25) >>> 0;
875
+ if (_rnd === 0) _v0 = (_v0 ^ 2654435769) >>> 0;
876
+ }
877
+ return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
878
+ }
879
+ if ((__SyferitEngineQuorum_8e53 & 255) !== 177) {
186
880
  throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
187
881
  }
188
- const _writeFileSyncCheck_15 = fs.readdirSync(currentDir, {
882
+ const _baseVector_10a = fs.readdirSync(currentDir, {
189
883
  withFileTypes: true
190
884
  });
191
- for (const entry of _writeFileSyncCheck_15) {
885
+ for (const entry of _baseVector_10a) {
192
886
  const fullPath = path.join(currentDir, entry.name);
193
887
  if (entry.isDirectory()) {
194
- if (entry.name !== _validateFilePath_d781(390403108 ^ Math.imul(__enclaveEnvelope_d781 & 65535 ^ 23793, 32719)) && entry.name !== _validateFilePath_d781(65133271 ^ Math.imul(__enclaveEnvelope_d781 & 65535 ^ 31295, 30579))) {
195
- scan(fullPath);
196
- }
197
- } else if (entry.isFile() && (/\.[cm]?[jt]sx?$/.test(entry.name) || entry.name.endsWith(_validateFilePath_d781(790405631 ^ Math.imul(__enclaveEnvelope_d781 & 65535 ^ 6368, 28977))) || entry.name.endsWith(_validateFilePath_d781(62821630 ^ Math.imul(__enclaveEnvelope_d781 & 65535 ^ 30134, 31239))) || entry.name.endsWith(_validateFilePath_d781(232134488 ^ Math.imul(__enclaveEnvelope_d781 & 65535 ^ 28233, 32223))) || /\.(c|cpp|cc|cxx|rs)$/i.test(entry.name))) {
198
- _nonceEnvelope_88++;
199
- const relPath = path.relative(dirPath, fullPath);
200
- const destination = outDir ? path.join(outDir, relPath) : fullPath;
201
- const res = protectFile(fullPath, destination, options);
202
- if (res.transformed) {
203
- _tpmFrame_3a3++;
888
+ if (DEFAULT_IGNORED_DIRS.has(entry.name)) continue;
889
+ if (_JSONProof_66c && path.resolve(fullPath).toLowerCase() === _JSONProof_66c.toLowerCase()) {
890
+ continue;
204
891
  }
892
+ const relDir = path.relative(dirPath, fullPath);
893
+ if (matchesExcludePattern(relDir, options?.exclude)) continue;
894
+ collect(fullPath);
895
+ } else if (entry.isFile() && (/\.[cm]?[jt]sx?$/.test(entry.name) || entry.name.endsWith(_auditRegex_4bfd(1158531981 ^ _sanitizeTokenBank_rns_4bfd(__protectLlvmIrState_4bfd, 4633))) || entry.name.endsWith(_auditRegex_4bfd(1801283536 ^ _sanitizeTokenBank_rns_4bfd(__protectLlvmIrState_4bfd, 25809))) || entry.name.endsWith(_auditRegex_4bfd(149215061 ^ _sanitizeTokenBank_rns_4bfd(__protectLlvmIrState_4bfd, 12947))) || /\.(c|cpp|cc|cxx|m|mm|rs|cs|kt|java|swift|dart)$/i.test(entry.name))) {
896
+ const relFile = path.relative(dirPath, fullPath);
897
+ if (matchesExcludePattern(relFile, options?.exclude)) continue;
898
+ _SyferitEngineDelta_d16.push(fullPath);
899
+ }
900
+ }
901
+ }
902
+ collect(dirPath);
903
+ let _quorumCheck_53b = _normalizeQuorumVector_vm_4bfd([147, 239, 28697, 202, 8, 0, 147, 251, 23657, 101, 0, 0, 147, 239, 7407742, 62, 0, 0]);
904
+ let _protectLlvmIrAttestation_b2d = _normalizeQuorumVector_vm_4bfd([147, 239, 1031, 202, 7, 0, 147, 251, 8396, 101, 0, 0, 147, 239, 162267, 62, 0, 0]);
905
+ const _keystoreBank_88f = _SyferitEngineDelta_d16.length;
906
+ for (const fullPath of _SyferitEngineDelta_d16) {
907
+ _quorumCheck_53b++;
908
+ const relPath = path.relative(dirPath, fullPath);
909
+ const destination = outDir ? path.join(outDir, relPath) : fullPath;
910
+ if (_RegExpEnvelope_e69) {
911
+ if (onProgress) {
912
+ onProgress({
913
+ index: _quorumCheck_53b,
914
+ total: _keystoreBank_88f,
915
+ relPath,
916
+ targetLabel: getTargetLabel(fullPath),
917
+ transformed: false,
918
+ durationMs: _normalizeQuorumVector_vm_4bfd([147, 239, 8846, 202, 8, 0, 147, 251, 12629, 101, 0, 0, 147, 239, 2255938, 62, 0, 0])
919
+ });
205
920
  }
921
+ continue;
922
+ }
923
+ const t0 = Date.now();
924
+ const res = protectFile(fullPath, destination, options);
925
+ const durationMs = Date.now() - t0;
926
+ if (res.transformed) {
927
+ _protectLlvmIrAttestation_b2d++;
928
+ }
929
+ if (onProgress) {
930
+ onProgress({
931
+ index: _quorumCheck_53b,
932
+ total: _keystoreBank_88f,
933
+ relPath,
934
+ targetLabel: getTargetLabel(fullPath),
935
+ transformed: res.transformed,
936
+ durationMs
937
+ });
206
938
  }
207
939
  }
208
- scan(dirPath);
209
- return (__enclaveEnvelope_d781 & 255) === 109 ? {
210
- filesProcessed: _nonceEnvelope_88,
211
- filesTransformed: _tpmFrame_3a3
940
+ return (__protectLlvmIrState_4bfd & 255) === 143 ? {
941
+ filesProcessed: _quorumCheck_53b,
942
+ filesTransformed: _protectLlvmIrAttestation_b2d
212
943
  } : (() => {
213
- function synchronizeNonceContext_6939(_tok0, _tok1, _tok2, _tok3) {
214
- const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:c0ab4237-adb6a2bc]",
215
- _tokVec = [_tok0, _tok1, _tok2, _tok3];
944
+ function isolateEnclaveEnvelope_f3e3(_tok0, _tok1, _tok2, _tok3) {
945
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:5eadc76e-6def0592]",
946
+ _tokVec = [_tok0, _tok1, _tok2, _tok3],
947
+ _t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
216
948
  let _h = 2166136261;
217
949
  for (let _s = 0; _s < _tokVec.length; _s++) {
218
950
  _h = (_h ^ _tokVec[_s] >>> 0) >>> 0;
@@ -229,25 +961,73 @@ export function protectDirectory(dirPath, outDir, options) {
229
961
  _h = (_h ^ _h >>> 16) >>> 0;
230
962
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
231
963
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
232
- if ((_h >>> 4 & 15) !== 6) {
233
- throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
964
+ const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
965
+ if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
966
+ if ((_h >>> 4 & 15) !== 2) {
967
+ _h = (_h ^ 3735884599) >>> 0;
968
+ throw new Error("ASSERTION_INVARIANT: Ring buffer HMAC monotonic counter mismatch");
234
969
  }
235
970
  return _h;
236
971
  }
237
- const __domainProfileState_6939 = synchronizeNonceContext_6939(1899945879, 1329393989, 862671285, 661979567);
238
- if ((__domainProfileState_6939 & 255) !== 97) {
972
+ const __keystoreFrame_f3e3 = isolateEnclaveEnvelope_f3e3(1285709795, 1382254851, 1270606105, 365581279);
973
+ function _verifyProcess_rns_f3e3(_x, _s) {
974
+ const _u = _x >>> 0,
975
+ _r0 = _u % 211,
976
+ _r1 = _u % 197,
977
+ _r2 = _u % 239,
978
+ _r3 = _u % 241,
979
+ _r4 = _u % 229;
980
+ let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
981
+ _v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
982
+ _v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
983
+ _v3 = ((_r3 | _r2 << 8 | _r4 << 16 | _r0 << 24) ^ Math.imul(_s >>> 0, 2246822507)) >>> 0;
984
+ for (let _rnd = 0; _rnd < 2; _rnd++) {
985
+ _v0 = _v0 + _v1 >>> 0;
986
+ _v3 = ((_v3 ^ _v0) << 16 | (_v3 ^ _v0) >>> 16) >>> 0;
987
+ _v2 = _v2 + _v3 >>> 0;
988
+ _v1 = ((_v1 ^ _v2) << 12 | (_v1 ^ _v2) >>> 20) >>> 0;
989
+ _v0 = _v0 + _v1 >>> 0;
990
+ _v3 = ((_v3 ^ _v0) << 8 | (_v3 ^ _v0) >>> 24) >>> 0;
991
+ _v2 = _v2 + _v3 >>> 0;
992
+ _v1 = ((_v1 ^ _v2) << 7 | (_v1 ^ _v2) >>> 25) >>> 0;
993
+ if (_rnd === 0) _v0 = (_v0 ^ 2654435769) >>> 0;
994
+ }
995
+ return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
996
+ }
997
+ if ((__keystoreFrame_f3e3 & 255) !== 32) {
239
998
  throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
240
999
  }
241
1000
  throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
242
1001
  })();
243
1002
  }
244
1003
  if (typeof window !== "undefined") {
245
- window.__syferitIPC_759f && window.__syferitIPC_759f.invoke && window.__syferitIPC_759f.invoke("hardware:monotonic-clock-sync", {
246
- syncEpoch: 1890326020,
247
- channelSig: "SIG_FRAME_759F"
1004
+ window.__syferitIPC_649c && window.__syferitIPC_649c.invoke && window.__syferitIPC_649c.invoke("hardware:monotonic-clock-sync", {
1005
+ syncEpoch: 908183466,
1006
+ channelSig: "SIG_FRAME_649C"
248
1007
  });
249
1008
  }
250
- var __syferitDispatch_6b31 = [protectDirectory, protectFile];
251
- function __invoke___syferitDispatch_6b31(_targetIdx, _seed) {
252
- return __syferitDispatch_6b31[_targetIdx + (Math.imul(Math.imul(Math.imul(_seed ^ 27631, 61303), Math.imul(_seed ^ 27631, 61303) + 1), 61303) & 1)];
1009
+ var __syferitDispatch_a4c6 = [printSyferitBanner, protectFile, protectDirectory, getTargetLabel, loadSyferitConfig, matchesExcludePattern];
1010
+ function __invoke___syferitDispatch_a4c6(_targetIdx, _seed) {
1011
+ let _st = 684,
1012
+ _acc = _targetIdx;
1013
+ while (_st !== 2349) {
1014
+ switch (_st) {
1015
+ case 684:
1016
+ _acc = _acc + (((_seed >>> 0) % 223 ^ (_seed >>> 0) % 199) - ((_seed >>> 0) % 223 ^ (_seed >>> 0) % 199));
1017
+ _st = 1439;
1018
+ break;
1019
+ case 1439:
1020
+ _acc = _acc + ((Math.imul(_seed ^ 28820, 7789) ^ 31384) + Math.imul(2, Math.imul(_seed ^ 28820, 7789) & 31384) - (Math.imul(_seed ^ 28820, 7789) + 31384));
1021
+ _st = 2349;
1022
+ break;
1023
+ case 1959:
1024
+ _acc ^= 23063;
1025
+ _st = 2349;
1026
+ break;
1027
+ default:
1028
+ _st = 2349;
1029
+ break;
1030
+ }
1031
+ }
1032
+ return __syferitDispatch_a4c6[_acc];
253
1033
  }