@syferit/cli 2.0.0 → 2.0.1
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/bin.js +179 -179
- package/dist/index.js +287 -287
- package/dist/setup.js +372 -372
- package/dist/updater.js +483 -483
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@ 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
|
-
function
|
|
9
|
-
const _legalAttestation = "
|
|
8
|
+
function verifyLoadSyferitConfig_d8ac(_tok0, _tok1, _tok2, _tok3) {
|
|
9
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:ae708847-520b497c]",
|
|
10
10
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
11
11
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
12
12
|
let _h = 2166136261;
|
|
@@ -29,18 +29,18 @@ function synchronizeNonceContext_b901(_tok0, _tok1, _tok2, _tok3) {
|
|
|
29
29
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
30
30
|
if ((_h >>> 4 & 15) !== 11) {
|
|
31
31
|
_h = (_h ^ 3735884599) >>> 0;
|
|
32
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
32
|
+
throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
|
|
33
33
|
}
|
|
34
34
|
return _h;
|
|
35
35
|
}
|
|
36
|
-
var
|
|
37
|
-
function
|
|
36
|
+
var __tokenFrame_d8ac = verifyLoadSyferitConfig_d8ac(511405771, 275820543, 1772563223, 1519001819);
|
|
37
|
+
function _sanitizeQuorumVector_rns_d8ac(_x, _s) {
|
|
38
38
|
const _u = _x >>> 0,
|
|
39
|
-
_r0 = _u %
|
|
40
|
-
_r1 = _u %
|
|
41
|
-
_r2 = _u %
|
|
42
|
-
_r3 = _u %
|
|
43
|
-
_r4 = _u %
|
|
39
|
+
_r0 = _u % 211,
|
|
40
|
+
_r1 = _u % 197,
|
|
41
|
+
_r2 = _u % 227,
|
|
42
|
+
_r3 = _u % 199,
|
|
43
|
+
_r4 = _u % 229;
|
|
44
44
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
45
45
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
46
46
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -58,15 +58,15 @@ function _synchronizeNonceContext_rns_b901(_x, _s) {
|
|
|
58
58
|
}
|
|
59
59
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
60
60
|
}
|
|
61
|
-
var
|
|
62
|
-
function
|
|
63
|
-
const _row =
|
|
64
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
61
|
+
var _patternsFrame_d8ac = [[214, 167, 58, 211, 19, 49, 157, 46, 149, 156, 227, 173], [243, 138, 234, 175], [44, 124, 205, 120, 226], [9, 89, 184, 93, 207], [98, 47, 132, 47, 140, 132, 227, 243, 31, 237, 110], [19, 232, 121], [249, 196, 86], [207, 170, 19, 222, 42, 43], [206, 151, 244, 191, 16, 232, 127], [43, 113, 202, 113, 237, 246, 75, 248, 66, 81], [117, 101, 160, 81, 221, 175, 7, 212, 55, 61, 167], [97, 41, 144, 35, 149], [2, 225, 116, 4], [183, 192, 91, 242, 76], [144, 184, 23, 223, 61, 6, 157], [128, 156, 255, 132, 5, 230, 122, 16]];
|
|
62
|
+
function _attestPosix_d8ac(_slot) {
|
|
63
|
+
const _row = _patternsFrame_d8ac[_slot];
|
|
64
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__tokenFrame_d8ac >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
65
65
|
}
|
|
66
|
-
export const DEFAULT_IGNORED_DIRS = new Set([
|
|
66
|
+
export const DEFAULT_IGNORED_DIRS = new Set([_attestPosix_d8ac(-1986705807 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 23603)), _attestPosix_d8ac(-764038936 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 18239)), _attestPosix_d8ac(1058801399 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 18339)), _attestPosix_d8ac(-231814290 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 22601)), _attestPosix_d8ac(-444418469 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 3435)), _attestPosix_d8ac(301439148 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 15621)), _attestPosix_d8ac(-1695302593 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 25437)), _attestPosix_d8ac(-395393296 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 11839)), _attestPosix_d8ac(-2025222653 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 22823)), _attestPosix_d8ac(526596080 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 27161)), _attestPosix_d8ac(461814111 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 21543)), _attestPosix_d8ac(-1224084704 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 7863)), _attestPosix_d8ac(147138377 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 25819)), _attestPosix_d8ac(1440024256 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 27073)), _attestPosix_d8ac(468417885 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 14987)), _attestPosix_d8ac(491747800 ^ _sanitizeQuorumVector_rns_d8ac(__tokenFrame_d8ac, 22499))]);
|
|
67
67
|
export function loadSyferitConfig(cwd = process.cwd()) {
|
|
68
|
-
function
|
|
69
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
68
|
+
function auditNonceProof_2446(_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:53bddd52-55184bc2]",
|
|
70
70
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
71
71
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
72
72
|
let _h = 2166136261;
|
|
@@ -87,20 +87,20 @@ export function loadSyferitConfig(cwd = process.cwd()) {
|
|
|
87
87
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
88
88
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
89
89
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
90
|
-
if ((_h >>> 4 & 15) !==
|
|
90
|
+
if ((_h >>> 4 & 15) !== 8) {
|
|
91
91
|
_h = (_h ^ 3735884599) >>> 0;
|
|
92
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
92
|
+
throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
|
|
93
93
|
}
|
|
94
94
|
return _h;
|
|
95
95
|
}
|
|
96
|
-
const
|
|
97
|
-
function
|
|
96
|
+
const __tokenProof_2446 = auditNonceProof_2446(1585042911, 1015780059, 1927936779, 1802407903);
|
|
97
|
+
function _isolateTokenFrame_rns_2446(_x, _s) {
|
|
98
98
|
const _u = _x >>> 0,
|
|
99
|
-
_r0 = _u %
|
|
100
|
-
_r1 = _u %
|
|
101
|
-
_r2 = _u %
|
|
102
|
-
_r3 = _u %
|
|
103
|
-
_r4 = _u %
|
|
99
|
+
_r0 = _u % 223,
|
|
100
|
+
_r1 = _u % 211,
|
|
101
|
+
_r2 = _u % 233,
|
|
102
|
+
_r3 = _u % 229,
|
|
103
|
+
_r4 = _u % 241;
|
|
104
104
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
105
105
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
106
106
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -118,19 +118,19 @@ export function loadSyferitConfig(cwd = process.cwd()) {
|
|
|
118
118
|
}
|
|
119
119
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
120
120
|
}
|
|
121
|
-
const
|
|
122
|
-
function
|
|
123
|
-
const _row =
|
|
124
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
121
|
+
const _nonceFrame_2446 = [[254, 125, 244, 99, 83, 241, 82, 180, 214, 67, 212, 72, 32, 167, 96, 168, 174, 59, 140], [199, 93, 209, 6, 126], [184, 44, 182, 53, 8, 150], [153, 29, 117, 16, 226, 119, 231, 96, 87, 254], [82, 251, 71, 246, 208]];
|
|
122
|
+
function _validateNonceFrame_2446(_slot) {
|
|
123
|
+
const _row = _nonceFrame_2446[_slot];
|
|
124
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__tokenProof_2446 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
125
125
|
}
|
|
126
|
-
if ((
|
|
126
|
+
if ((__tokenProof_2446 & 255) !== 141) {
|
|
127
127
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
if (!fs.existsSync(
|
|
129
|
+
const _quorumBank_cbe = path.join(cwd, _validateNonceFrame_2446(-1277025173 ^ _isolateTokenFrame_rns_2446(__tokenProof_2446, 30525)));
|
|
130
|
+
if (!fs.existsSync(_quorumBank_cbe)) return null;
|
|
131
131
|
try {
|
|
132
|
-
const raw = JSON.parse(fs.readFileSync(
|
|
133
|
-
if (raw && typeof raw ===
|
|
132
|
+
const raw = JSON.parse(fs.readFileSync(_quorumBank_cbe, _validateNonceFrame_2446(-369718150 ^ _isolateTokenFrame_rns_2446(__tokenProof_2446, 10171))));
|
|
133
|
+
if (raw && typeof raw === _validateNonceFrame_2446(-706623703 ^ _isolateTokenFrame_rns_2446(__tokenProof_2446, 12739))) {
|
|
134
134
|
return raw;
|
|
135
135
|
}
|
|
136
136
|
return null;
|
|
@@ -139,8 +139,8 @@ export function loadSyferitConfig(cwd = process.cwd()) {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
function matchesExcludePattern(relPath, patterns) {
|
|
142
|
-
function
|
|
143
|
-
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:
|
|
142
|
+
function isolateRelPath_a4d9(_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:5cfa95c2-30e50d03]",
|
|
144
144
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
145
145
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
146
146
|
let _h = 2166136261;
|
|
@@ -161,20 +161,20 @@ function matchesExcludePattern(relPath, patterns) {
|
|
|
161
161
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
162
162
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
163
163
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
164
|
-
if ((_h >>> 4 & 15) !==
|
|
164
|
+
if ((_h >>> 4 & 15) !== 3) {
|
|
165
165
|
_h = (_h ^ 3735884599) >>> 0;
|
|
166
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
166
|
+
throw new Error("ASSERTION_INVARIANT: Cryptographic state token mismatch in active tenant block");
|
|
167
167
|
}
|
|
168
168
|
return _h;
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
function
|
|
170
|
+
const __nonceVector_a4d9 = isolateRelPath_a4d9(791402079, 1089365047, 524281657, 938310559);
|
|
171
|
+
function _isolateQuorumBank_rns_a4d9(_x, _s) {
|
|
172
172
|
const _u = _x >>> 0,
|
|
173
|
-
_r0 = _u %
|
|
173
|
+
_r0 = _u % 223,
|
|
174
174
|
_r1 = _u % 241,
|
|
175
175
|
_r2 = _u % 233,
|
|
176
|
-
_r3 = _u %
|
|
177
|
-
_r4 = _u %
|
|
176
|
+
_r3 = _u % 251,
|
|
177
|
+
_r4 = _u % 197;
|
|
178
178
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
179
179
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
180
180
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -192,22 +192,22 @@ function matchesExcludePattern(relPath, patterns) {
|
|
|
192
192
|
}
|
|
193
193
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function _verifyEnclaveAttestation_vm_a4d9(_bc) {
|
|
196
196
|
const _stk = [];
|
|
197
197
|
for (let _pc = 0; _pc < _bc.length; _pc += 3) {
|
|
198
198
|
const _op = _bc[_pc],
|
|
199
199
|
_a = _bc[_pc + 1],
|
|
200
200
|
_b = _bc[_pc + 2];
|
|
201
|
-
if (_op ===
|
|
202
|
-
_stk.push((
|
|
203
|
-
} else if (_op ===
|
|
201
|
+
if (_op === 184) {
|
|
202
|
+
_stk.push((__nonceVector_a4d9 >>> 0) % _a ^ _b);
|
|
203
|
+
} else if (_op === 90) {
|
|
204
204
|
const _v = _stk.pop() >>> 0;
|
|
205
205
|
_stk.push(_v << _a | _v >>> 32 - _a);
|
|
206
|
-
} else if (_op ===
|
|
206
|
+
} else if (_op === 140) {
|
|
207
207
|
const _r = _stk.pop(),
|
|
208
208
|
_l = _stk.pop();
|
|
209
209
|
_stk.push(_l ^ _r);
|
|
210
|
-
} else if (_op ===
|
|
210
|
+
} else if (_op === 29) {
|
|
211
211
|
const _r2 = _stk.pop(),
|
|
212
212
|
_l2 = _stk.pop();
|
|
213
213
|
_stk.push(_l2 + _r2 | 0);
|
|
@@ -215,28 +215,28 @@ function matchesExcludePattern(relPath, patterns) {
|
|
|
215
215
|
}
|
|
216
216
|
return _stk[0];
|
|
217
217
|
}
|
|
218
|
-
const
|
|
219
|
-
function
|
|
220
|
-
const _row =
|
|
221
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
218
|
+
const _loadSyferitConfigEnvelope_a4d9 = [[96, 223, 154], [4, 78, 149, 133, 135, 196, 7, 29, 250, 45], [245, 38, 103, 105, 127]];
|
|
219
|
+
function _attestProtectPython_a4d9(_slot) {
|
|
220
|
+
const _row = _loadSyferitConfigEnvelope_a4d9[_slot];
|
|
221
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__nonceVector_a4d9 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
222
222
|
}
|
|
223
|
-
if (!patterns || patterns.length ===
|
|
224
|
-
const
|
|
225
|
-
const
|
|
223
|
+
if (!patterns || patterns.length === _verifyEnclaveAttestation_vm_a4d9([184, 223, 26795, 90, 16, 0, 184, 241, 7362, 29, 0, 0, 184, 223, 1755258042, 140, 0, 0])) return false;
|
|
224
|
+
const _joinCheck_b7a = relPath.replace(/\\/g, '/');
|
|
225
|
+
const _quorumVector_99b = path.posix.basename(_joinCheck_b7a);
|
|
226
226
|
for (const rawPattern of patterns) {
|
|
227
227
|
const pattern = rawPattern.trim().replace(/\\/g, '/');
|
|
228
228
|
if (!pattern) continue;
|
|
229
229
|
if (pattern.includes('*') || pattern.includes('?')) {
|
|
230
|
-
const escaped = pattern.replace(/[.+^${}()|[\]\\]/g,
|
|
230
|
+
const escaped = pattern.replace(/[.+^${}()|[\]\\]/g, _attestProtectPython_a4d9(-408553931 ^ _isolateQuorumBank_rns_a4d9(__nonceVector_a4d9, 1947))).replace(/\*/g, '.*').replace(/\?/g, '.');
|
|
231
231
|
const regex = new RegExp(`^${escaped}$`, 'i');
|
|
232
|
-
if (regex.test(
|
|
233
|
-
} else if (
|
|
232
|
+
if (regex.test(_joinCheck_b7a) || regex.test(_quorumVector_99b)) return true;
|
|
233
|
+
} else if (_joinCheck_b7a === pattern || _joinCheck_b7a.startsWith(`${pattern.replace(/\/+$/, '')}/`) || _joinCheck_b7a.includes(`/${pattern.replace(/^\/+|\/+$/g, '')}/`) || _joinCheck_b7a.includes(pattern) || _quorumVector_99b === pattern) {
|
|
234
234
|
return true;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
return (
|
|
238
|
-
function
|
|
239
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
237
|
+
return (__nonceVector_a4d9 & 255) === 60 ? false : (() => {
|
|
238
|
+
function isolateRelPath_2b53(_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:1030f0e5-26d8d522]",
|
|
240
240
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
241
241
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
242
242
|
let _h = 2166136261;
|
|
@@ -257,20 +257,20 @@ function matchesExcludePattern(relPath, patterns) {
|
|
|
257
257
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
258
258
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
259
259
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
260
|
-
if ((_h >>> 4 & 15) !==
|
|
260
|
+
if ((_h >>> 4 & 15) !== 4) {
|
|
261
261
|
_h = (_h ^ 3735884599) >>> 0;
|
|
262
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
262
|
+
throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
|
|
263
263
|
}
|
|
264
264
|
return _h;
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
function
|
|
266
|
+
const __DEFAULT_IGNORED_DIRSState_2b53 = isolateRelPath_2b53(1831818481, 230983741, 1005467091, 1883129663);
|
|
267
|
+
function _attestTrim_rns_2b53(_x, _s) {
|
|
268
268
|
const _u = _x >>> 0,
|
|
269
|
-
_r0 = _u %
|
|
270
|
-
_r1 = _u %
|
|
271
|
-
_r2 = _u %
|
|
272
|
-
_r3 = _u %
|
|
273
|
-
_r4 = _u %
|
|
269
|
+
_r0 = _u % 223,
|
|
270
|
+
_r1 = _u % 197,
|
|
271
|
+
_r2 = _u % 239,
|
|
272
|
+
_r3 = _u % 227,
|
|
273
|
+
_r4 = _u % 211;
|
|
274
274
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
275
275
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
276
276
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -288,7 +288,7 @@ function matchesExcludePattern(relPath, patterns) {
|
|
|
288
288
|
}
|
|
289
289
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
290
290
|
}
|
|
291
|
-
if ((
|
|
291
|
+
if ((__DEFAULT_IGNORED_DIRSState_2b53 & 255) !== 71) {
|
|
292
292
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
293
293
|
}
|
|
294
294
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
@@ -305,8 +305,8 @@ export const SYFERIT_TERMINAL_ARTWORK = `
|
|
|
305
305
|
▄████████▀ ▀█████▀ ███ ██████████ ███ ███ █▀ ▄████▀
|
|
306
306
|
`;
|
|
307
307
|
export function printSyferitBanner(options) {
|
|
308
|
-
function
|
|
309
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
308
|
+
function sanitizeQuorumVector_9909(_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:d872eb4b-825e7659]",
|
|
310
310
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
311
311
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
312
312
|
let _h = 2166136261;
|
|
@@ -327,20 +327,20 @@ export function printSyferitBanner(options) {
|
|
|
327
327
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
328
328
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
329
329
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
330
|
-
if ((_h >>> 4 & 15) !==
|
|
330
|
+
if ((_h >>> 4 & 15) !== 13) {
|
|
331
331
|
_h = (_h ^ 3735884599) >>> 0;
|
|
332
332
|
throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
|
|
333
333
|
}
|
|
334
334
|
return _h;
|
|
335
335
|
}
|
|
336
|
-
const
|
|
337
|
-
function
|
|
336
|
+
const __enclaveAttestation_9909 = sanitizeQuorumVector_9909(1151234427, 1252047769, 691617969, 1175533583);
|
|
337
|
+
function _attestCertificateDigest_rns_9909(_x, _s) {
|
|
338
338
|
const _u = _x >>> 0,
|
|
339
|
-
_r0 = _u %
|
|
340
|
-
_r1 = _u %
|
|
341
|
-
_r2 = _u %
|
|
342
|
-
_r3 = _u %
|
|
343
|
-
_r4 = _u %
|
|
339
|
+
_r0 = _u % 211,
|
|
340
|
+
_r1 = _u % 227,
|
|
341
|
+
_r2 = _u % 241,
|
|
342
|
+
_r3 = _u % 229,
|
|
343
|
+
_r4 = _u % 197;
|
|
344
344
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
345
345
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
346
346
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -358,22 +358,22 @@ export function printSyferitBanner(options) {
|
|
|
358
358
|
}
|
|
359
359
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function _normalizeQuorumVector_vm_9909(_bc) {
|
|
362
362
|
const _stk = [];
|
|
363
363
|
for (let _pc = 0; _pc < _bc.length; _pc += 3) {
|
|
364
364
|
const _op = _bc[_pc],
|
|
365
365
|
_a = _bc[_pc + 1],
|
|
366
366
|
_b = _bc[_pc + 2];
|
|
367
|
-
if (_op ===
|
|
368
|
-
_stk.push((
|
|
369
|
-
} else if (_op ===
|
|
367
|
+
if (_op === 157) {
|
|
368
|
+
_stk.push((__enclaveAttestation_9909 >>> 0) % _a ^ _b);
|
|
369
|
+
} else if (_op === 194) {
|
|
370
370
|
const _v = _stk.pop() >>> 0;
|
|
371
371
|
_stk.push(_v << _a | _v >>> 32 - _a);
|
|
372
|
-
} else if (_op ===
|
|
372
|
+
} else if (_op === 62) {
|
|
373
373
|
const _r = _stk.pop(),
|
|
374
374
|
_l = _stk.pop();
|
|
375
375
|
_stk.push(_l ^ _r);
|
|
376
|
-
} else if (_op ===
|
|
376
|
+
} else if (_op === 102) {
|
|
377
377
|
const _r2 = _stk.pop(),
|
|
378
378
|
_l2 = _stk.pop();
|
|
379
379
|
_stk.push(_l2 + _r2 | 0);
|
|
@@ -381,28 +381,28 @@ export function printSyferitBanner(options) {
|
|
|
381
381
|
}
|
|
382
382
|
return _stk[0];
|
|
383
383
|
}
|
|
384
|
-
const
|
|
385
|
-
function
|
|
386
|
-
const _row =
|
|
387
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
384
|
+
const _tpmProof_9909 = [[188, 209, 242, 89, 13, 42, 113, 181], [138, 180, 196, 17], [62, 218, 158, 215, 226, 222, 14, 75, 22, 114, 162, 255, 138, 230, 214, 19, 62, 26, 74, 135, 82, 142, 254, 59, 198, 34, 18, 175, 122, 86, 134, 195, 238, 202, 58, 119, 2, 126, 174, 235, 182, 146, 194, 31, 42, 6, 118, 179, 94, 186, 234, 39, 242, 46, 30, 91, 102, 66, 178, 207, 154, 246, 38, 99, 14, 106, 90, 151, 162, 158, 206, 11, 214, 50, 98, 191, 74, 166, 145], [99, 63, 190, 140, 247, 224, 218, 6, 46, 21, 94, 128, 223, 173, 153, 70, 163, 65, 14, 220, 51, 35, 128, 233, 214, 245, 8, 72, 38, 72, 219, 254, 134, 214, 252, 56, 18, 63, 3, 198, 43, 181, 210, 7, 246, 31, 62, 109, 19, 70, 177, 232, 162, 196, 1, 89, 47, 78, 39, 144, 157, 170, 245, 43, 229, 48, 93, 129, 114, 129, 227, 160, 139, 167, 119, 52, 31, 59, 186], [72, 100, 69, 241, 220, 250, 236, 10, 254, 75, 72, 217, 110, 117, 163, 249, 152, 199, 12, 72, 60, 8, 145, 193, 206, 156, 223, 48, 18, 53, 82, 180, 124, 202, 150, 81, 188, 122, 104, 37, 99, 99, 176, 237, 182, 201, 8, 13, 11, 64, 113, 165, 133, 167, 235, 117, 195, 51, 72, 140, 52, 180, 165, 27, 205, 234, 39, 116, 28, 93, 134, 194, 185, 194, 25, 25, 68, 96, 65], [173, 73, 89, 166, 113, 173, 157, 218, 229, 193, 49, 78, 25, 117, 165, 226, 141, 233, 217, 22, 33, 29, 77, 138, 85, 177, 225, 62, 201, 37, 21, 82, 125, 89, 137, 198, 145, 205, 61, 122, 5, 97, 81, 238, 185, 149, 197, 2, 45, 9, 121, 182, 65, 189, 237, 42, 245, 209, 1, 94, 105, 69, 181, 242, 157, 249, 41, 102, 49, 109, 93, 154, 165, 129, 241, 14, 217, 53, 86], [146, 174, 15, 59, 102, 154, 210, 234, 180, 209, 239, 45, 11, 106, 58, 237, 34, 137, 239, 56, 219, 82, 6, 144, 95, 100, 186, 246, 147, 204, 11, 82, 62, 90, 222, 155, 198, 192, 178, 111, 194, 118, 107, 140, 106, 143, 154, 87, 130, 94, 116, 43, 102, 96, 141, 251, 191, 197, 2, 90, 49, 84, 42, 143, 147, 188, 250, 62, 232, 11, 92, 136, 58, 214, 230, 163, 142, 170, 11], [247, 147, 217, 16, 59, 23, 71, 132, 175, 139, 251, 56, 195, 63, 111, 172, 119, 83, 131, 192, 235, 199, 55, 116, 31, 123, 171, 232, 179, 239, 223, 28, 39, 3, 115, 176, 91, 183, 231, 36, 207, 43, 27, 88, 99, 95, 143, 204, 151, 243, 35, 96, 11, 103, 87, 148, 191, 155, 203, 8, 211, 15, 127, 188, 71, 163, 147, 208, 251, 215, 7, 68, 111, 75, 187, 248, 131, 255, 34, 54]];
|
|
385
|
+
function _verifyEnclaveAttestation_9909(_slot) {
|
|
386
|
+
const _row = _tpmProof_9909[_slot];
|
|
387
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__enclaveAttestation_9909 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
388
388
|
}
|
|
389
|
-
if ((
|
|
389
|
+
if ((__enclaveAttestation_9909 & 255) !== 212) {
|
|
390
390
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
391
391
|
}
|
|
392
|
-
const
|
|
393
|
-
const
|
|
392
|
+
const _protectWasmEnvelope_b4c = (options?.preset ?? _verifyEnclaveAttestation_9909(-1608626155 ^ _attestCertificateDigest_rns_9909(__enclaveAttestation_9909, 1993))).padEnd(_normalizeQuorumVector_vm_9909([157, 211, 14296, 194, 7, 0, 157, 227, 21909, 102, 0, 0, 157, 211, 1845766, 62, 0, 0]), ' ');
|
|
393
|
+
const _tokenProof_3ae = (options?.domainProfile ?? _verifyEnclaveAttestation_9909(-867882068 ^ _attestCertificateDigest_rns_9909(__enclaveAttestation_9909, 4435))).padEnd(_normalizeQuorumVector_vm_9909([157, 211, 8781, 194, 16, 0, 157, 227, 11517, 102, 0, 0, 157, 211, 574369012, 62, 0, 0]), ' ');
|
|
394
394
|
console.log(SYFERIT_TERMINAL_ARTWORK);
|
|
395
|
-
console.log(
|
|
396
|
-
console.log(
|
|
397
|
-
console.log(
|
|
398
|
-
console.log(
|
|
399
|
-
console.log(` ║ ▸ Preset : ${
|
|
400
|
-
console.log(
|
|
401
|
-
console.log(
|
|
395
|
+
console.log(_verifyEnclaveAttestation_9909(1347752509 ^ _attestCertificateDigest_rns_9909(__enclaveAttestation_9909, 17301)));
|
|
396
|
+
console.log(_verifyEnclaveAttestation_9909(619749610 ^ _attestCertificateDigest_rns_9909(__enclaveAttestation_9909, 873)));
|
|
397
|
+
console.log(_verifyEnclaveAttestation_9909(-1422662901 ^ _attestCertificateDigest_rns_9909(__enclaveAttestation_9909, 1359)));
|
|
398
|
+
console.log(_verifyEnclaveAttestation_9909(441889788 ^ _attestCertificateDigest_rns_9909(__enclaveAttestation_9909, 19677)));
|
|
399
|
+
console.log(` ║ ▸ Preset : ${_protectWasmEnvelope_b4c} │ ▸ Profile : ${_tokenProof_3ae} ║`);
|
|
400
|
+
console.log(_verifyEnclaveAttestation_9909(-1432113757 ^ _attestCertificateDigest_rns_9909(__enclaveAttestation_9909, 16961)));
|
|
401
|
+
console.log(_verifyEnclaveAttestation_9909(779546168 ^ _attestCertificateDigest_rns_9909(__enclaveAttestation_9909, 20269)));
|
|
402
402
|
}
|
|
403
403
|
function getTargetLabel(filePath) {
|
|
404
|
-
function
|
|
405
|
-
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:
|
|
404
|
+
function sanitizeLength_2dc9(_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:a2131972-a1630398]",
|
|
406
406
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
407
407
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
408
408
|
let _h = 2166136261;
|
|
@@ -423,20 +423,20 @@ function getTargetLabel(filePath) {
|
|
|
423
423
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
424
424
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
425
425
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
426
|
-
if ((_h >>> 4 & 15) !==
|
|
426
|
+
if ((_h >>> 4 & 15) !== 0) {
|
|
427
427
|
_h = (_h ^ 3735884599) >>> 0;
|
|
428
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
428
|
+
throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
|
|
429
429
|
}
|
|
430
430
|
return _h;
|
|
431
431
|
}
|
|
432
|
-
const
|
|
433
|
-
function
|
|
432
|
+
const __JSONState_2dc9 = sanitizeLength_2dc9(1422844617, 846387137, 79945505, 1199391793);
|
|
433
|
+
function _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(_x, _s) {
|
|
434
434
|
const _u = _x >>> 0,
|
|
435
|
-
_r0 = _u %
|
|
436
|
-
_r1 = _u %
|
|
437
|
-
_r2 = _u %
|
|
438
|
-
_r3 = _u %
|
|
439
|
-
_r4 = _u %
|
|
435
|
+
_r0 = _u % 241,
|
|
436
|
+
_r1 = _u % 197,
|
|
437
|
+
_r2 = _u % 199,
|
|
438
|
+
_r3 = _u % 223,
|
|
439
|
+
_r4 = _u % 233;
|
|
440
440
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
441
441
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
442
442
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -454,24 +454,24 @@ function getTargetLabel(filePath) {
|
|
|
454
454
|
}
|
|
455
455
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
456
456
|
}
|
|
457
|
-
const
|
|
458
|
-
function
|
|
459
|
-
const _row =
|
|
460
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
457
|
+
const _tpmVector_2dc9 = [[38, 77, 167, 139, 241], [122, 30, 184, 80, 225, 211], [124, 232, 124], [59, 229, 99, 42, 43, 29], [178, 188, 41], [147, 134, 12, 197, 117, 167], [200, 123, 215], [72, 30, 233, 219, 191, 241], [30, 9, 154], [30, 232, 103, 41, 128, 117], [84, 198, 89, 28, 111], [213, 176, 43, 238, 19, 69], [234, 133, 245, 221, 62, 254], [186, 108, 206, 191, 9, 143], [32, 36, 173, 140, 214], [119, 4, 131, 87, 231, 217], [27, 165, 85, 99, 199, 62], [83, 223, 66], [242, 173, 20, 250, 89, 6], [141, 170, 170, 227, 8, 173]];
|
|
458
|
+
function _attestProtectNativeSource_2dc9(_slot) {
|
|
459
|
+
const _row = _tpmVector_2dc9[_slot];
|
|
460
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__JSONState_2dc9 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
461
461
|
}
|
|
462
|
-
if (filePath.endsWith(
|
|
463
|
-
if (filePath.endsWith(
|
|
464
|
-
if (filePath.endsWith(
|
|
465
|
-
if (filePath.endsWith(
|
|
466
|
-
if (filePath.endsWith(
|
|
467
|
-
if (filePath.endsWith(
|
|
468
|
-
if (filePath.endsWith(
|
|
469
|
-
if (filePath.endsWith(
|
|
470
|
-
if (/\.(c|cpp|cc|cxx|m|mm)$/i.test(filePath)) return
|
|
471
|
-
if (filePath.endsWith(
|
|
472
|
-
return (
|
|
473
|
-
function
|
|
474
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
462
|
+
if (filePath.endsWith(_attestProtectNativeSource_2dc9(1723324867 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 13879)))) return _attestProtectNativeSource_2dc9(1014471102 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 1259));
|
|
463
|
+
if (filePath.endsWith(_attestProtectNativeSource_2dc9(1659108927 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 21419)))) return _attestProtectNativeSource_2dc9(-498359844 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 6487));
|
|
464
|
+
if (filePath.endsWith(_attestProtectNativeSource_2dc9(-1836786463 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 1879)))) return _attestProtectNativeSource_2dc9(-2117060838 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 17215));
|
|
465
|
+
if (filePath.endsWith(_attestProtectNativeSource_2dc9(-1462113125 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 19885)))) return _attestProtectNativeSource_2dc9(553186140 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 16171));
|
|
466
|
+
if (filePath.endsWith(_attestProtectNativeSource_2dc9(-296066255 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 14265)))) return _attestProtectNativeSource_2dc9(814209596 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 13335));
|
|
467
|
+
if (filePath.endsWith(_attestProtectNativeSource_2dc9(1437480147 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 27411)))) return _attestProtectNativeSource_2dc9(-908171718 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 29043));
|
|
468
|
+
if (filePath.endsWith(_attestProtectNativeSource_2dc9(992037391 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 3907)))) return _attestProtectNativeSource_2dc9(6002764 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 10085));
|
|
469
|
+
if (filePath.endsWith(_attestProtectNativeSource_2dc9(1491824343 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 22319)))) return _attestProtectNativeSource_2dc9(2053827686 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 29887));
|
|
470
|
+
if (/\.(c|cpp|cc|cxx|m|mm)$/i.test(filePath)) return _attestProtectNativeSource_2dc9(-1564263739 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 13215));
|
|
471
|
+
if (filePath.endsWith(_attestProtectNativeSource_2dc9(-1244630988 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 12987)))) return _attestProtectNativeSource_2dc9(385415247 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 28139));
|
|
472
|
+
return (__JSONState_2dc9 & 255) === 8 ? _attestProtectNativeSource_2dc9(-2125606562 ^ _rotateDEFAULT_IGNORED_DIRS_rns_2dc9(__JSONState_2dc9, 4289)) : (() => {
|
|
473
|
+
function validateEscaped_7ae7(_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:f86e5579-42e5f2f0]",
|
|
475
475
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
476
476
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
477
477
|
let _h = 2166136261;
|
|
@@ -492,20 +492,20 @@ function getTargetLabel(filePath) {
|
|
|
492
492
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
493
493
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
494
494
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
495
|
-
if ((_h >>> 4 & 15) !==
|
|
495
|
+
if ((_h >>> 4 & 15) !== 0) {
|
|
496
496
|
_h = (_h ^ 3735884599) >>> 0;
|
|
497
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
497
|
+
throw new Error("ASSERTION_INVARIANT: Ring buffer HMAC monotonic counter mismatch");
|
|
498
498
|
}
|
|
499
499
|
return _h;
|
|
500
500
|
}
|
|
501
|
-
const
|
|
502
|
-
function
|
|
501
|
+
const __escapedState_7ae7 = validateEscaped_7ae7(1729429921, 841260429, 1398179483, 2146705175);
|
|
502
|
+
function _validateEscaped_rns_7ae7(_x, _s) {
|
|
503
503
|
const _u = _x >>> 0,
|
|
504
|
-
_r0 = _u %
|
|
505
|
-
_r1 = _u %
|
|
506
|
-
_r2 = _u %
|
|
507
|
-
_r3 = _u %
|
|
508
|
-
_r4 = _u %
|
|
504
|
+
_r0 = _u % 239,
|
|
505
|
+
_r1 = _u % 199,
|
|
506
|
+
_r2 = _u % 233,
|
|
507
|
+
_r3 = _u % 211,
|
|
508
|
+
_r4 = _u % 251;
|
|
509
509
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
510
510
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
511
511
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -523,15 +523,15 @@ function getTargetLabel(filePath) {
|
|
|
523
523
|
}
|
|
524
524
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
525
525
|
}
|
|
526
|
-
if ((
|
|
526
|
+
if ((__escapedState_7ae7 & 255) !== 0) {
|
|
527
527
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
528
528
|
}
|
|
529
529
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
530
530
|
})();
|
|
531
531
|
}
|
|
532
532
|
export function protectFile(filePath, outPath, options) {
|
|
533
|
-
function
|
|
534
|
-
const _legalAttestation = "
|
|
533
|
+
function auditJoin_b322(_tok0, _tok1, _tok2, _tok3) {
|
|
534
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:dec1586d-68d64446]",
|
|
535
535
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
536
536
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
537
537
|
let _h = 2166136261;
|
|
@@ -552,20 +552,20 @@ export function protectFile(filePath, outPath, options) {
|
|
|
552
552
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
553
553
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
554
554
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
555
|
-
if ((_h >>> 4 & 15) !==
|
|
555
|
+
if ((_h >>> 4 & 15) !== 11) {
|
|
556
556
|
_h = (_h ^ 3735884599) >>> 0;
|
|
557
557
|
throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
|
|
558
558
|
}
|
|
559
559
|
return _h;
|
|
560
560
|
}
|
|
561
|
-
const
|
|
562
|
-
function
|
|
561
|
+
const __protectLlvmIrState_b322 = auditJoin_b322(2116981217, 15078405, 657725281, 1203376197);
|
|
562
|
+
function _verifyBasename_rns_b322(_x, _s) {
|
|
563
563
|
const _u = _x >>> 0,
|
|
564
|
-
_r0 = _u %
|
|
565
|
-
_r1 = _u %
|
|
566
|
-
_r2 = _u %
|
|
567
|
-
_r3 = _u %
|
|
568
|
-
_r4 = _u %
|
|
564
|
+
_r0 = _u % 251,
|
|
565
|
+
_r1 = _u % 197,
|
|
566
|
+
_r2 = _u % 227,
|
|
567
|
+
_r3 = _u % 223,
|
|
568
|
+
_r4 = _u % 199;
|
|
569
569
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
570
570
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
571
571
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -583,22 +583,22 @@ export function protectFile(filePath, outPath, options) {
|
|
|
583
583
|
}
|
|
584
584
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function _reconcileKeystoreQuorum_vm_b322(_bc) {
|
|
587
587
|
const _stk = [];
|
|
588
588
|
for (let _pc = 0; _pc < _bc.length; _pc += 3) {
|
|
589
589
|
const _op = _bc[_pc],
|
|
590
590
|
_a = _bc[_pc + 1],
|
|
591
591
|
_b = _bc[_pc + 2];
|
|
592
|
-
if (_op ===
|
|
593
|
-
_stk.push((
|
|
594
|
-
} else if (_op ===
|
|
592
|
+
if (_op === 207) {
|
|
593
|
+
_stk.push((__protectLlvmIrState_b322 >>> 0) % _a ^ _b);
|
|
594
|
+
} else if (_op === 95) {
|
|
595
595
|
const _v = _stk.pop() >>> 0;
|
|
596
596
|
_stk.push(_v << _a | _v >>> 32 - _a);
|
|
597
|
-
} else if (_op ===
|
|
597
|
+
} else if (_op === 63) {
|
|
598
598
|
const _r = _stk.pop(),
|
|
599
599
|
_l = _stk.pop();
|
|
600
600
|
_stk.push(_l ^ _r);
|
|
601
|
-
} else if (_op ===
|
|
601
|
+
} else if (_op === 119) {
|
|
602
602
|
const _r2 = _stk.pop(),
|
|
603
603
|
_l2 = _stk.pop();
|
|
604
604
|
_stk.push(_l2 + _r2 | 0);
|
|
@@ -606,80 +606,80 @@ export function protectFile(filePath, outPath, options) {
|
|
|
606
606
|
}
|
|
607
607
|
return _stk[0];
|
|
608
608
|
}
|
|
609
|
-
const
|
|
610
|
-
function
|
|
611
|
-
const _row =
|
|
612
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
609
|
+
const _processCheck_b322 = [[153, 200, 115, 230, 38], [242, 136, 91], [47, 123, 47], [8, 77, 242], [101, 56, 210], [94, 18, 170, 56, 101], [187, 238, 135, 26, 79, 69], [148, 166, 116, 234, 58], [241, 151, 67], [113, 120, 57, 207, 160], [92, 69, 226, 42, 133], [59, 34, 207, 1, 218], [1, 14, 189, 37], [251, 211, 155, 23, 94, 68], [214, 170, 108, 247, 56, 55], [136, 139, 75, 161], [116, 120, 11, 131, 239], [72, 85, 245, 126], [50, 41, 220], [3, 10, 183, 121, 50], [238, 215, 144, 84, 23], [181, 188, 125, 179, 108], [144, 153, 38, 238, 65], [127, 102, 3, 197, 166]];
|
|
610
|
+
function _attestPosix_b322(_slot) {
|
|
611
|
+
const _row = _processCheck_b322[_slot];
|
|
612
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__protectLlvmIrState_b322 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
613
613
|
}
|
|
614
614
|
if (options?.dryRun) {
|
|
615
615
|
return {
|
|
616
616
|
transformed: false
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
-
const
|
|
620
|
-
const
|
|
621
|
-
const
|
|
622
|
-
const
|
|
623
|
-
const
|
|
624
|
-
const
|
|
625
|
-
const
|
|
626
|
-
const
|
|
627
|
-
const
|
|
628
|
-
const
|
|
629
|
-
const
|
|
630
|
-
const
|
|
631
|
-
if (!fs.existsSync(
|
|
632
|
-
fs.mkdirSync(
|
|
619
|
+
const _tpmVector_7b9 = filePath.endsWith(_attestPosix_b322(119178189 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 12149)));
|
|
620
|
+
const _signatureCheck_47a = filePath.endsWith(_attestPosix_b322(946535116 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 22053)));
|
|
621
|
+
const _patternProof_a85 = filePath.endsWith(_attestPosix_b322(2131219447 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 29793)));
|
|
622
|
+
const _nonceAttestation_713 = filePath.endsWith(_attestPosix_b322(953246892 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 9121)));
|
|
623
|
+
const _regexBank_140 = filePath.endsWith(_attestPosix_b322(619333691 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 24227)));
|
|
624
|
+
const _SoltrixStudiosDelta_9b8 = filePath.endsWith(_attestPosix_b322(-1204200292 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 5733)));
|
|
625
|
+
const _baseBank_272 = filePath.endsWith(_attestPosix_b322(508460185 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 10099)));
|
|
626
|
+
const _lengthDigest_209 = filePath.endsWith(_attestPosix_b322(-261031084 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 28083)));
|
|
627
|
+
const _parseBank_ee6 = /\.(c|cpp|cc|cxx|m|mm)$/i.test(filePath);
|
|
628
|
+
const _enclaveVector_1fd = filePath.endsWith(_attestPosix_b322(1101805583 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 30031)));
|
|
629
|
+
const _relPathDigest_f0b = outPath || filePath;
|
|
630
|
+
const _nonceProof_684 = path.dirname(_relPathDigest_f0b);
|
|
631
|
+
if (!fs.existsSync(_nonceProof_684)) {
|
|
632
|
+
fs.mkdirSync(_nonceProof_684, {
|
|
633
633
|
recursive: true
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
|
-
if (
|
|
636
|
+
if (_tpmVector_7b9) {
|
|
637
637
|
const wasmBytes = fs.readFileSync(filePath);
|
|
638
638
|
const result = protectWasm(new Uint8Array(wasmBytes), {
|
|
639
639
|
seed: options?.seed,
|
|
640
640
|
domainProfile: options?.domainProfile
|
|
641
641
|
});
|
|
642
|
-
fs.writeFileSync(
|
|
642
|
+
fs.writeFileSync(_relPathDigest_f0b, result.binary);
|
|
643
643
|
return {
|
|
644
|
-
transformed: result.sectionsProtected >
|
|
644
|
+
transformed: result.sectionsProtected > _reconcileKeystoreQuorum_vm_b322([207, 251, 1401, 95, 16, 0, 207, 197, 24585, 119, 0, 0, 207, 251, 98066582, 63, 0, 0])
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
|
-
if (
|
|
648
|
-
const irCode = fs.readFileSync(filePath,
|
|
647
|
+
if (_signatureCheck_47a) {
|
|
648
|
+
const irCode = fs.readFileSync(filePath, _attestPosix_b322(-1487142454 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 16685)));
|
|
649
649
|
const result = protectLlvmIr(irCode, options);
|
|
650
|
-
fs.writeFileSync(
|
|
650
|
+
fs.writeFileSync(_relPathDigest_f0b, result.code, _attestPosix_b322(1163474599 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 18795)));
|
|
651
651
|
return {
|
|
652
|
-
transformed: result.transformedCount >
|
|
652
|
+
transformed: result.transformedCount > _reconcileKeystoreQuorum_vm_b322([207, 251, 5956, 95, 7, 0, 207, 197, 11456, 119, 0, 0, 207, 251, 794591, 63, 0, 0])
|
|
653
653
|
};
|
|
654
654
|
}
|
|
655
|
-
if (
|
|
656
|
-
const srcCode = fs.readFileSync(filePath,
|
|
657
|
-
const targetLanguage =
|
|
655
|
+
if (_patternProof_a85 || _nonceAttestation_713 || _regexBank_140 || _SoltrixStudiosDelta_9b8 || _baseBank_272 || _lengthDigest_209 || _parseBank_ee6) {
|
|
656
|
+
const srcCode = fs.readFileSync(filePath, _attestPosix_b322(-1502586304 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 15139)));
|
|
657
|
+
const targetLanguage = _patternProof_a85 ? _attestPosix_b322(-2011305339 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 28503)) : _nonceAttestation_713 ? _attestPosix_b322(1749142278 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 19701)) : _regexBank_140 ? _attestPosix_b322(1781960877 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 21051)) : _SoltrixStudiosDelta_9b8 ? _attestPosix_b322(75497756 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 29695)) : _baseBank_272 ? _attestPosix_b322(-463082517 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 24679)) : _lengthDigest_209 ? _attestPosix_b322(-783921980 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 29281)) : _attestPosix_b322(-859636573 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 5867));
|
|
658
658
|
const result = protectNativeSource(srcCode, {
|
|
659
659
|
...options,
|
|
660
660
|
targetLanguage
|
|
661
661
|
});
|
|
662
|
-
fs.writeFileSync(
|
|
662
|
+
fs.writeFileSync(_relPathDigest_f0b, result.code, _attestPosix_b322(1595182682 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 28933)));
|
|
663
663
|
return {
|
|
664
|
-
transformed: result.transformedCount >
|
|
664
|
+
transformed: result.transformedCount > _reconcileKeystoreQuorum_vm_b322([207, 251, 30110, 95, 7, 0, 207, 197, 5581, 119, 0, 0, 207, 251, 3847634, 63, 0, 0])
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
if (
|
|
668
|
-
const pyCode = fs.readFileSync(filePath,
|
|
667
|
+
if (_enclaveVector_1fd) {
|
|
668
|
+
const pyCode = fs.readFileSync(filePath, _attestPosix_b322(-668128553 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 28451)));
|
|
669
669
|
const result = protectPython(pyCode, options);
|
|
670
|
-
fs.writeFileSync(
|
|
670
|
+
fs.writeFileSync(_relPathDigest_f0b, result.code, _attestPosix_b322(899756378 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 18701)));
|
|
671
671
|
return {
|
|
672
|
-
transformed: result.transformedCount >
|
|
672
|
+
transformed: result.transformedCount > _reconcileKeystoreQuorum_vm_b322([207, 251, 23574, 95, 7, 0, 207, 197, 10524, 119, 0, 0, 207, 251, 3048451, 63, 0, 0])
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
|
-
const
|
|
676
|
-
const
|
|
677
|
-
fs.writeFileSync(
|
|
678
|
-
return (
|
|
679
|
-
transformed:
|
|
675
|
+
const _posixAttestation_10c = fs.readFileSync(filePath, _attestPosix_b322(-200364769 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 6301)));
|
|
676
|
+
const _rawPatternCheck_666 = protect(_posixAttestation_10c, options);
|
|
677
|
+
fs.writeFileSync(_relPathDigest_f0b, _rawPatternCheck_666.code, _attestPosix_b322(236520676 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 12679)));
|
|
678
|
+
return (__protectLlvmIrState_b322 & 255) === 183 ? {
|
|
679
|
+
transformed: _rawPatternCheck_666.transformedCount > (774685019 ^ _verifyBasename_rns_b322(__protectLlvmIrState_b322, 25355))
|
|
680
680
|
} : (() => {
|
|
681
|
-
function
|
|
682
|
-
const _legalAttestation = "
|
|
681
|
+
function normalizeQuorumVector_63e(_tok0, _tok1, _tok2, _tok3) {
|
|
682
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:d7e16da8-7593ad8c]",
|
|
683
683
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
684
684
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
685
685
|
let _h = 2166136261;
|
|
@@ -700,20 +700,20 @@ export function protectFile(filePath, outPath, options) {
|
|
|
700
700
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
701
701
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
702
702
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
703
|
-
if ((_h >>> 4 & 15) !==
|
|
703
|
+
if ((_h >>> 4 & 15) !== 12) {
|
|
704
704
|
_h = (_h ^ 3735884599) >>> 0;
|
|
705
705
|
throw new Error("ASSERTION_INVARIANT: Session epoch out of sequence with local lease holder");
|
|
706
706
|
}
|
|
707
707
|
return _h;
|
|
708
708
|
}
|
|
709
|
-
const
|
|
710
|
-
function
|
|
709
|
+
const __tpmState_63e = normalizeQuorumVector_63e(449265039, 2025114009, 2024400703, 1516737531);
|
|
710
|
+
function _normalizeQuorumVector_rns_63e(_x, _s) {
|
|
711
711
|
const _u = _x >>> 0,
|
|
712
712
|
_r0 = _u % 211,
|
|
713
|
-
_r1 = _u %
|
|
714
|
-
_r2 = _u %
|
|
715
|
-
_r3 = _u %
|
|
716
|
-
_r4 = _u %
|
|
713
|
+
_r1 = _u % 199,
|
|
714
|
+
_r2 = _u % 197,
|
|
715
|
+
_r3 = _u % 241,
|
|
716
|
+
_r4 = _u % 239;
|
|
717
717
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
718
718
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
719
719
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -731,15 +731,15 @@ export function protectFile(filePath, outPath, options) {
|
|
|
731
731
|
}
|
|
732
732
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
733
733
|
}
|
|
734
|
-
if ((
|
|
734
|
+
if ((__tpmState_63e & 255) !== 195) {
|
|
735
735
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
736
736
|
}
|
|
737
737
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
738
738
|
})();
|
|
739
739
|
}
|
|
740
740
|
export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
741
|
-
function
|
|
742
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
741
|
+
function auditRegex_7276(_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:86330cfe-a3555258]",
|
|
743
743
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
744
744
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
745
745
|
let _h = 2166136261;
|
|
@@ -760,19 +760,19 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
760
760
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
761
761
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
762
762
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
763
|
-
if ((_h >>> 4 & 15) !==
|
|
763
|
+
if ((_h >>> 4 & 15) !== 7) {
|
|
764
764
|
_h = (_h ^ 3735884599) >>> 0;
|
|
765
765
|
throw new Error("ASSERTION_INVARIANT: Cryptographic state token mismatch in active tenant block");
|
|
766
766
|
}
|
|
767
767
|
return _h;
|
|
768
768
|
}
|
|
769
|
-
const
|
|
770
|
-
function
|
|
769
|
+
const __keystoreVector_7276 = auditRegex_7276(1931484179, 539230639, 422662193, 1472699221);
|
|
770
|
+
function _authenticateQuorumCheck_rns_7276(_x, _s) {
|
|
771
771
|
const _u = _x >>> 0,
|
|
772
|
-
_r0 = _u %
|
|
773
|
-
_r1 = _u %
|
|
774
|
-
_r2 = _u %
|
|
775
|
-
_r3 = _u %
|
|
772
|
+
_r0 = _u % 241,
|
|
773
|
+
_r1 = _u % 199,
|
|
774
|
+
_r2 = _u % 251,
|
|
775
|
+
_r3 = _u % 239,
|
|
776
776
|
_r4 = _u % 227;
|
|
777
777
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
778
778
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
@@ -791,22 +791,22 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
791
791
|
}
|
|
792
792
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function _auditProcess_vm_7276(_bc) {
|
|
795
795
|
const _stk = [];
|
|
796
796
|
for (let _pc = 0; _pc < _bc.length; _pc += 3) {
|
|
797
797
|
const _op = _bc[_pc],
|
|
798
798
|
_a = _bc[_pc + 1],
|
|
799
799
|
_b = _bc[_pc + 2];
|
|
800
|
-
if (_op ===
|
|
801
|
-
_stk.push((
|
|
802
|
-
} else if (_op ===
|
|
800
|
+
if (_op === 132) {
|
|
801
|
+
_stk.push((__keystoreVector_7276 >>> 0) % _a ^ _b);
|
|
802
|
+
} else if (_op === 25) {
|
|
803
803
|
const _v = _stk.pop() >>> 0;
|
|
804
804
|
_stk.push(_v << _a | _v >>> 32 - _a);
|
|
805
|
-
} else if (_op ===
|
|
805
|
+
} else if (_op === 72) {
|
|
806
806
|
const _r = _stk.pop(),
|
|
807
807
|
_l = _stk.pop();
|
|
808
808
|
_stk.push(_l ^ _r);
|
|
809
|
-
} else if (_op ===
|
|
809
|
+
} else if (_op === 186) {
|
|
810
810
|
const _r2 = _stk.pop(),
|
|
811
811
|
_l2 = _stk.pop();
|
|
812
812
|
_stk.push(_l2 + _r2 | 0);
|
|
@@ -814,17 +814,17 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
814
814
|
}
|
|
815
815
|
return _stk[0];
|
|
816
816
|
}
|
|
817
|
-
const
|
|
818
|
-
function
|
|
819
|
-
const _row =
|
|
820
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
817
|
+
const _rawPatternCheck_7276 = [[90, 74, 91, 153, 101], [183, 14, 51], [144, 247, 253], [134, 194, 221, 60, 5, 48, 79, 132, 120, 177], [123, 178, 175, 18, 249]];
|
|
818
|
+
function _isolateQuorumBank_7276(_slot) {
|
|
819
|
+
const _row = _rawPatternCheck_7276[_slot];
|
|
820
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__keystoreVector_7276 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
821
821
|
}
|
|
822
|
-
const
|
|
823
|
-
const
|
|
824
|
-
const
|
|
822
|
+
const _patternProof_471 = [];
|
|
823
|
+
const _relPathDigest_658 = outDir ? path.resolve(outDir) : null;
|
|
824
|
+
const _basenameBank_246 = Boolean(options?.dryRun);
|
|
825
825
|
function collect(currentDir) {
|
|
826
|
-
function
|
|
827
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
826
|
+
function sanitizeQuorumVector_2727(_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:9f29725d-41a7e809]",
|
|
828
828
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
829
829
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
830
830
|
let _h = 2166136261;
|
|
@@ -845,20 +845,20 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
845
845
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
846
846
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
847
847
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
848
|
-
if ((_h >>> 4 & 15) !==
|
|
848
|
+
if ((_h >>> 4 & 15) !== 13) {
|
|
849
849
|
_h = (_h ^ 3735884599) >>> 0;
|
|
850
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
850
|
+
throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
|
|
851
851
|
}
|
|
852
852
|
return _h;
|
|
853
853
|
}
|
|
854
|
-
const
|
|
855
|
-
function
|
|
854
|
+
const __SoltrixStudiosQuorum_2727 = sanitizeQuorumVector_2727(1143159661, 925033057, 1079091329, 385753757);
|
|
855
|
+
function _isolateTokenFrame_rns_2727(_x, _s) {
|
|
856
856
|
const _u = _x >>> 0,
|
|
857
|
-
_r0 = _u %
|
|
858
|
-
_r1 = _u %
|
|
859
|
-
_r2 = _u %
|
|
860
|
-
_r3 = _u %
|
|
861
|
-
_r4 = _u %
|
|
857
|
+
_r0 = _u % 251,
|
|
858
|
+
_r1 = _u % 199,
|
|
859
|
+
_r2 = _u % 227,
|
|
860
|
+
_r3 = _u % 223,
|
|
861
|
+
_r4 = _u % 229;
|
|
862
862
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
863
863
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
864
864
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -876,46 +876,46 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
876
876
|
}
|
|
877
877
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
878
878
|
}
|
|
879
|
-
if ((
|
|
879
|
+
if ((__SoltrixStudiosQuorum_2727 & 255) !== 211) {
|
|
880
880
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
881
881
|
}
|
|
882
|
-
const
|
|
882
|
+
const _pathDigest_f4b = fs.readdirSync(currentDir, {
|
|
883
883
|
withFileTypes: true
|
|
884
884
|
});
|
|
885
|
-
for (const entry of
|
|
885
|
+
for (const entry of _pathDigest_f4b) {
|
|
886
886
|
const fullPath = path.join(currentDir, entry.name);
|
|
887
887
|
if (entry.isDirectory()) {
|
|
888
888
|
if (DEFAULT_IGNORED_DIRS.has(entry.name)) continue;
|
|
889
|
-
if (
|
|
889
|
+
if (_relPathDigest_658 && path.resolve(fullPath).toLowerCase() === _relPathDigest_658.toLowerCase()) {
|
|
890
890
|
continue;
|
|
891
891
|
}
|
|
892
892
|
const relDir = path.relative(dirPath, fullPath);
|
|
893
893
|
if (matchesExcludePattern(relDir, options?.exclude)) continue;
|
|
894
894
|
collect(fullPath);
|
|
895
|
-
} else if (entry.isFile() && (/\.[cm]?[jt]sx?$/.test(entry.name) || entry.name.endsWith(
|
|
895
|
+
} else if (entry.isFile() && (/\.[cm]?[jt]sx?$/.test(entry.name) || entry.name.endsWith(_isolateQuorumBank_7276(-2064653289 ^ _authenticateQuorumCheck_rns_7276(__keystoreVector_7276, 7995))) || entry.name.endsWith(_isolateQuorumBank_7276(1966253436 ^ _authenticateQuorumCheck_rns_7276(__keystoreVector_7276, 9219))) || entry.name.endsWith(_isolateQuorumBank_7276(492312997 ^ _authenticateQuorumCheck_rns_7276(__keystoreVector_7276, 11331))) || /\.(c|cpp|cc|cxx|m|mm|rs|cs|kt|java|swift|dart)$/i.test(entry.name))) {
|
|
896
896
|
const relFile = path.relative(dirPath, fullPath);
|
|
897
897
|
if (matchesExcludePattern(relFile, options?.exclude)) continue;
|
|
898
|
-
|
|
898
|
+
_patternProof_471.push(fullPath);
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
902
|
collect(dirPath);
|
|
903
|
-
let
|
|
904
|
-
let
|
|
905
|
-
const
|
|
906
|
-
for (const fullPath of
|
|
907
|
-
|
|
903
|
+
let _certificateDigest_d97 = _auditProcess_vm_7276([132, 241, 19998, 25, 12, 0, 132, 199, 16218, 186, 0, 0, 132, 241, 82440049, 72, 0, 0]);
|
|
904
|
+
let _quorumBank_404 = _auditProcess_vm_7276([132, 241, 4531, 25, 7, 0, 132, 199, 11823, 186, 0, 0, 132, 241, 575748, 72, 0, 0]);
|
|
905
|
+
const _patternsFrame_6bb = _patternProof_471.length;
|
|
906
|
+
for (const fullPath of _patternProof_471) {
|
|
907
|
+
_certificateDigest_d97++;
|
|
908
908
|
const relPath = path.relative(dirPath, fullPath);
|
|
909
909
|
const destination = outDir ? path.join(outDir, relPath) : fullPath;
|
|
910
|
-
if (
|
|
910
|
+
if (_basenameBank_246) {
|
|
911
911
|
if (onProgress) {
|
|
912
912
|
onProgress({
|
|
913
|
-
index:
|
|
914
|
-
total:
|
|
913
|
+
index: _certificateDigest_d97,
|
|
914
|
+
total: _patternsFrame_6bb,
|
|
915
915
|
relPath,
|
|
916
916
|
targetLabel: getTargetLabel(fullPath),
|
|
917
917
|
transformed: false,
|
|
918
|
-
durationMs:
|
|
918
|
+
durationMs: _auditProcess_vm_7276([132, 241, 23885, 25, 8, 0, 132, 199, 3465, 186, 0, 0, 132, 241, 6149538, 72, 0, 0])
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
921
|
continue;
|
|
@@ -924,12 +924,12 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
924
924
|
const res = protectFile(fullPath, destination, options);
|
|
925
925
|
const durationMs = Date.now() - t0;
|
|
926
926
|
if (res.transformed) {
|
|
927
|
-
|
|
927
|
+
_quorumBank_404++;
|
|
928
928
|
}
|
|
929
929
|
if (onProgress) {
|
|
930
930
|
onProgress({
|
|
931
|
-
index:
|
|
932
|
-
total:
|
|
931
|
+
index: _certificateDigest_d97,
|
|
932
|
+
total: _patternsFrame_6bb,
|
|
933
933
|
relPath,
|
|
934
934
|
targetLabel: getTargetLabel(fullPath),
|
|
935
935
|
transformed: res.transformed,
|
|
@@ -937,12 +937,12 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
937
937
|
});
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
|
-
return (
|
|
941
|
-
filesProcessed:
|
|
942
|
-
filesTransformed:
|
|
940
|
+
return (__keystoreVector_7276 & 255) === 116 ? {
|
|
941
|
+
filesProcessed: _certificateDigest_d97,
|
|
942
|
+
filesTransformed: _quorumBank_404
|
|
943
943
|
} : (() => {
|
|
944
|
-
function
|
|
945
|
-
const _legalAttestation = "
|
|
944
|
+
function sanitizeQuorumVector_ba24(_tok0, _tok1, _tok2, _tok3) {
|
|
945
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:fd8cf7b9-14350872]",
|
|
946
946
|
_tokVec = [_tok0, _tok1, _tok2, _tok3],
|
|
947
947
|
_t0 = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
948
948
|
let _h = 2166136261;
|
|
@@ -963,20 +963,20 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
963
963
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
964
964
|
const _dt = (typeof performance !== "undefined" ? performance.now() : Date.now()) - _t0;
|
|
965
965
|
if (_dt > 2500) _h = (_h ^ 1511516595) >>> 0;
|
|
966
|
-
if ((_h >>> 4 & 15) !==
|
|
966
|
+
if ((_h >>> 4 & 15) !== 7) {
|
|
967
967
|
_h = (_h ^ 3735884599) >>> 0;
|
|
968
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
968
|
+
throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
|
|
969
969
|
}
|
|
970
970
|
return _h;
|
|
971
971
|
}
|
|
972
|
-
const
|
|
973
|
-
function
|
|
972
|
+
const __SyferitEngineQuorum_ba24 = sanitizeQuorumVector_ba24(1765006285, 2118141297, 1850613265, 1924348457);
|
|
973
|
+
function _rotateNonceVector_rns_ba24(_x, _s) {
|
|
974
974
|
const _u = _x >>> 0,
|
|
975
975
|
_r0 = _u % 211,
|
|
976
976
|
_r1 = _u % 197,
|
|
977
|
-
_r2 = _u %
|
|
978
|
-
_r3 = _u %
|
|
979
|
-
_r4 = _u %
|
|
977
|
+
_r2 = _u % 227,
|
|
978
|
+
_r3 = _u % 229,
|
|
979
|
+
_r4 = _u % 241;
|
|
980
980
|
let _v0 = ((_r0 | _r1 << 8 | _r2 << 16 | _r3 << 24) ^ 1634760805) >>> 0,
|
|
981
981
|
_v1 = ((_r4 | _r0 << 8 | _r3 << 16 | _r1 << 24) ^ _s >>> 0) >>> 0,
|
|
982
982
|
_v2 = ((_r2 | _r4 << 8 | _r1 << 16 | _r0 << 24) ^ 857760878) >>> 0,
|
|
@@ -994,40 +994,40 @@ export function protectDirectory(dirPath, outDir, options, onProgress) {
|
|
|
994
994
|
}
|
|
995
995
|
return (_v0 ^ _v1 ^ _v2 ^ _v3 | 1) >>> 0;
|
|
996
996
|
}
|
|
997
|
-
if ((
|
|
997
|
+
if ((__SyferitEngineQuorum_ba24 & 255) !== 113) {
|
|
998
998
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
999
999
|
}
|
|
1000
1000
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
1001
1001
|
})();
|
|
1002
1002
|
}
|
|
1003
1003
|
if (typeof window !== "undefined") {
|
|
1004
|
-
window.
|
|
1005
|
-
syncEpoch:
|
|
1006
|
-
channelSig: "
|
|
1004
|
+
window.__syferitIPC_5172 && window.__syferitIPC_5172.invoke && window.__syferitIPC_5172.invoke("billing:stripe-reconcile-event", {
|
|
1005
|
+
syncEpoch: 673531609,
|
|
1006
|
+
channelSig: "SIG_FRAME_5172"
|
|
1007
1007
|
});
|
|
1008
1008
|
}
|
|
1009
|
-
var
|
|
1010
|
-
function
|
|
1011
|
-
let _st =
|
|
1009
|
+
var __syferitDispatch_ee88 = [loadSyferitConfig, getTargetLabel, protectFile, matchesExcludePattern, protectDirectory, printSyferitBanner];
|
|
1010
|
+
function __invoke___syferitDispatch_ee88(_targetIdx, _seed) {
|
|
1011
|
+
let _st = 621,
|
|
1012
1012
|
_acc = _targetIdx;
|
|
1013
|
-
while (_st !==
|
|
1013
|
+
while (_st !== 2497) {
|
|
1014
1014
|
switch (_st) {
|
|
1015
|
-
case
|
|
1016
|
-
_acc = _acc + (((_seed >>> 0) % 223 ^ (_seed >>> 0) %
|
|
1017
|
-
_st =
|
|
1015
|
+
case 621:
|
|
1016
|
+
_acc = _acc + (((_seed >>> 0) % 223 ^ (_seed >>> 0) % 211) - ((_seed >>> 0) % 223 ^ (_seed >>> 0) % 211));
|
|
1017
|
+
_st = 1087;
|
|
1018
1018
|
break;
|
|
1019
|
-
case
|
|
1020
|
-
_acc = _acc + ((Math.imul(_seed ^
|
|
1021
|
-
_st =
|
|
1019
|
+
case 1087:
|
|
1020
|
+
_acc = _acc + (Math.imul(Math.imul(_seed ^ 18688, 49167) + 163 | 1, Math.imul(_seed ^ 18688, 49167) + 163 | 1) & 7 ^ 1);
|
|
1021
|
+
_st = 2497;
|
|
1022
1022
|
break;
|
|
1023
|
-
case
|
|
1023
|
+
case 1588:
|
|
1024
1024
|
_acc ^= 23063;
|
|
1025
|
-
_st =
|
|
1025
|
+
_st = 2497;
|
|
1026
1026
|
break;
|
|
1027
1027
|
default:
|
|
1028
|
-
_st =
|
|
1028
|
+
_st = 2497;
|
|
1029
1029
|
break;
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
|
-
return
|
|
1032
|
+
return __syferitDispatch_ee88[_acc];
|
|
1033
1033
|
}
|