@absolutejs/absolute 0.20.0-beta.130 → 0.20.0-beta.131
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/CHANGELOG.md +21 -0
- package/changelog.json +41 -0
- package/dist/angular/browser.js +406 -396
- package/dist/angular/browser.js.map +4 -4
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -3
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -4
- package/dist/angular/index.js +560 -701
- package/dist/angular/index.js.map +5 -5
- package/dist/angular/server.js +197 -338
- package/dist/angular/server.js.map +5 -5
- package/dist/build/buildWorker.js +27 -35
- package/dist/build.js +3833 -5876
- package/dist/build.js.map +4 -4
- package/dist/cli/{add-9sa7e3vd.js → add-hvqeg5sz.js} +23 -25
- package/dist/cli/{analyze-c1sep5y9.js → analyze-c2x2aym5.js} +6 -7
- package/dist/cli/androidEmulatorController-j73a1br6.js +22 -0
- package/dist/cli/{androidNativeWatcher-dnp95nk2.js → androidNativeWatcher-ctbnsr1v.js} +11 -14
- package/dist/cli/{api-2hd8cahp.js → api-rk13rfd9.js} +11 -13
- package/dist/cli/{build-857rc1ds.js → build-20y4b6rj.js} +8 -9
- package/dist/cli/{buildDepVendor-8akhr8n8.js → buildDepVendor-axqvbbm6.js} +5 -170
- package/dist/cli/{compile-9by2vxy5.js → compile-qygwqezx.js} +43 -48
- package/dist/cli/config/client.js +8 -8
- package/dist/cli/config/server.js +5615 -5595
- package/dist/cli/config-3te1fbry.js +7 -0
- package/dist/cli/{db-8wweexdp.js → db-p8pc325y.js} +5 -13
- package/dist/cli/{dev-qg7fr16s.js → dev-6f0gry3y.js} +75 -77
- package/dist/cli/{devCert-avr89zf3.js → devCert-n33ep8pg.js} +0 -3
- package/dist/cli/{doctor-mbh9bk05.js → doctor-8rm8p4dm.js} +13 -14
- package/dist/cli/emulatorDoctor-cwa70kgt.js +17 -0
- package/dist/cli/emulatorInstaller-dx3fmm2m.js +14 -0
- package/dist/cli/env-2107nff1.js +11 -0
- package/dist/cli/eslint-zz0t0kfp.js +17 -0
- package/dist/cli/eslintChunked-wg10jj9m.js +12 -0
- package/dist/cli/expoDevController-s70fj7vf.js +16 -0
- package/dist/cli/{expoNativeWatcher-rmc95bak.js → expoNativeWatcher-aakp7xvj.js} +1 -5
- package/dist/cli/expoProject-zy02tbfg.js +10 -0
- package/dist/cli/{generate-069p0dk3.js → generate-nz4w03yz.js} +19 -21
- package/dist/cli/{heapDiff-87v24x7p.js → heapDiff-2etr2r26.js} +5 -6
- package/dist/cli/{htmx-5wh1jh75.js → htmx-0xcaqrny.js} +12 -14
- package/dist/cli/{index-sjvydg2r.js → index-1ff9q1vx.js} +7 -7
- package/dist/cli/{index-rqbk0b30.js → index-1qewxkgy.js} +26 -26
- package/dist/cli/{index-prwyfnn3.js → index-1x1vah31.js} +2 -2
- package/dist/cli/{index-ddakkws4.js → index-31j3beht.js} +13 -13
- package/dist/cli/{index-j2nw3edf.js → index-3gtnqd57.js} +5 -5
- package/dist/cli/{index-54q7pxcx.js → index-434b7j4a.js} +2 -32
- package/dist/cli/{index-w5vswatm.js → index-43a1vvb7.js} +6 -10
- package/dist/cli/{index-nxcwg9ma.js → index-5sjk7daj.js} +31 -31
- package/dist/cli/{index-6j1xaheg.js → index-73sk1ney.js} +5 -5
- package/dist/cli/{index-3x5wpx5d.js → index-8kdmmgvc.js} +2 -2
- package/dist/cli/{index-1ys3dnrs.js → index-8w2wazrk.js} +34 -34
- package/dist/cli/{index-wtfnv3n2.js → index-92hmw204.js} +3 -3
- package/dist/cli/{index-vdbn8brx.js → index-9ehbfmeq.js} +38 -41
- package/dist/cli/{index-mywsk201.js → index-fde3c297.js} +1 -1
- package/dist/cli/{index-255xs63d.js → index-j57pgg5m.js} +10 -10
- package/dist/cli/{index-5cgsrv62.js → index-jcjwsdqt.js} +13 -182
- package/dist/cli/{index-00wfffav.js → index-k4t9k1xk.js} +5 -5
- package/dist/cli/{index-yxgaf8j0.js → index-m1vntzf1.js} +7 -5
- package/dist/cli/{index-9r7n9dqp.js → index-ma1dw7x2.js} +1 -1
- package/dist/cli/index-pch0v1z6.js +60 -0
- package/dist/cli/{index-8nym68py.js → index-ppxed116.js} +1 -1
- package/dist/cli/{index-9kwmb3c0.js → index-qyxd5n9a.js} +3 -3
- package/dist/cli/{index-tn4crd40.js → index-r62705dc.js} +12 -12
- package/dist/cli/{index-wctgx65x.js → index-r6k4xmdb.js} +21 -21
- package/dist/cli/{index-hty8111z.js → index-r915cvqp.js} +17 -17
- package/dist/cli/{index-exdd5k1g.js → index-rrxeqrbn.js} +2 -2
- package/dist/cli/{index-keg69zm1.js → index-snbzdwb9.js} +5 -5
- package/dist/cli/{index-v26ze17p.js → index-thqwfzy8.js} +3 -3
- package/dist/cli/{index-0hr7c4qe.js → index-vdnmqkt8.js} +14 -18
- package/dist/cli/{index-vkkqe08e.js → index-vj2v38sq.js} +29 -29
- package/dist/cli/{index-erngp7a9.js → index-wy0yh4jj.js} +16 -16
- package/dist/cli/{index-1cypb2zn.js → index-xcr3r6a1.js} +8 -8
- package/dist/cli/index.js +44 -48
- package/dist/cli/{info-d74dr585.js → info-kx5510rq.js} +7 -7
- package/dist/cli/{inspect-23chj4nc.js → inspect-5dj06x0m.js} +18 -20
- package/dist/cli/{iosNativeWatcher-kggp7j9a.js → iosNativeWatcher-zx49pzej.js} +12 -16
- package/dist/cli/iosSimulatorController-haa1cc3p.js +23 -0
- package/dist/cli/{islands-wpqgmwh0.js → islands-z4adh55n.js} +8 -9
- package/dist/cli/{lintProof-wx3b6dzy.js → lintProof-qcwdvzcz.js} +12 -17
- package/dist/cli/{logs-bx2n5ey6.js → logs-3p2vrq5h.js} +8 -10
- package/dist/cli/{ls-kvmcmd2j.js → ls-nkspq73y.js} +13 -14
- package/dist/cli/{mem-apbk7bx4.js → mem-h3f497cr.js} +10 -14
- package/dist/cli/{migrate-p4rp5r6b.js → migrate-52bqqp08.js} +7 -8
- package/dist/cli/{mobile-43q3zmjf.js → mobile-w295dx0t.js} +572 -575
- package/dist/cli/nativeAuth-ysv0x5dy.js +27 -0
- package/dist/cli/patchedBun-m7vj5sks.js +9 -0
- package/dist/cli/prerender-mfnwsvyt.js +7 -0
- package/dist/cli/{prettier-vtk5yaw4.js → prettier-c1624g36.js} +2 -6
- package/dist/cli/{ps-8y28kzmb.js → ps-0jedm91n.js} +12 -16
- package/dist/cli/{psTui-8e96mwgz.js → psTui-tpr5nbmc.js} +28 -30
- package/dist/cli/remoteMacProtocol-v3ax0y0f.js +41 -0
- package/dist/cli/{remove-3fd1z2hx.js → remove-z0brj5nd.js} +16 -18
- package/dist/cli/{rewriteImports-d1gmaa68.js → rewriteImports-k6rjjmg1.js} +2 -100
- package/dist/cli/{routes-0xpanj8z.js → routes-ey0sw1eq.js} +7 -9
- package/dist/cli/start-36w63t6h.js +20 -0
- package/dist/cli/telemetry-3wnc06wa.js +9 -0
- package/dist/cli/{tunnelRelay-5at2v8w6.js → tunnelRelay-19ay0fxn.js} +3 -4
- package/dist/cli/{typecheck-yj9s13eb.js → typecheck-nmf6e7k7.js} +147 -149
- package/dist/cli/{workspace-m56sgfkc.js → workspace-yetzedke.js} +32 -36
- package/dist/client/chunks/{index-dk743xs6.js → index-8m2qq61n.js} +12 -8
- package/dist/client/chunks/{index-dk743xs6.js.map → index-8m2qq61n.js.map} +4 -3
- package/dist/client/chunks/{index-m35nbkdp.js → islands-rc28k5sx.js} +104 -42
- package/dist/client/chunks/islands-rc28k5sx.js.map +15 -0
- package/dist/client/chunks/{react-yq4ss9y4.js → react-dcvkaba2.js} +5 -7
- package/dist/client/chunks/{react-yq4ss9y4.js.map → react-dcvkaba2.js.map} +2 -2
- package/dist/client/chunks/{svelte-s0c964kb.js → svelte-4yfa5bxa.js} +2 -4
- package/dist/client/chunks/{svelte-s0c964kb.js.map → svelte-4yfa5bxa.js.map} +2 -2
- package/dist/client/chunks/{vue-rdskrnyg.js → vue-a84fzp3v.js} +2 -4
- package/dist/client/chunks/{vue-rdskrnyg.js.map → vue-a84fzp3v.js.map} +2 -2
- package/dist/client/index.js +42 -15
- package/dist/client/index.js.map +2 -2
- package/dist/client/prefetch.js +1 -3
- package/dist/client/prefetch.js.map +2 -2
- package/dist/core/streamingSlotRegistrar.js +1 -64
- package/dist/core/streamingSlotRegistrar.js.map +2 -2
- package/dist/core/streamingSlotRegistry.js +1 -64
- package/dist/core/streamingSlotRegistry.js.map +2 -2
- package/dist/dev/serverBootstrap.js +1802 -2018
- package/dist/index.js +5247 -8794
- package/dist/index.js.map +9 -20
- package/dist/islands/browser.js +13 -3
- package/dist/islands/browser.js.map +2 -2
- package/dist/islands/index.js +26 -142
- package/dist/islands/index.js.map +2 -2
- package/dist/mobile/browser.js +13 -3
- package/dist/mobile/browser.js.map +2 -2
- package/dist/mobile/index.js +1067 -2182
- package/dist/mobile/index.js.map +2 -2
- package/dist/mobile/remoteMacAgentEntry.js +156 -156
- package/dist/mobile/shellAuth.js +0 -16
- package/dist/mobile/shellBootstrap.js +734 -724
- package/dist/mobile/shellExpoAuth.js +4 -18
- package/dist/mobile/shellExpoDevices.js +0 -16
- package/dist/mobile/shellExpoSync.js +0 -16
- package/dist/mobile/shellSync.js +3 -19
- package/dist/mobile/shellUpdate.js +5 -21
- package/dist/mobile/uiPrimitives.js +0 -16
- package/dist/react/browser.js +15 -5
- package/dist/react/browser.js.map +2 -2
- package/dist/react/components/index.js +68 -58
- package/dist/react/components/index.js.map +4 -4
- package/dist/react/hooks/index.js +1 -63
- package/dist/react/hooks/index.js.map +2 -2
- package/dist/react/index.js +56 -195
- package/dist/react/index.js.map +5 -5
- package/dist/react/jsxDevRuntimeCompat.js +1 -64
- package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
- package/dist/react/jsxRuntimeCompat.js +1 -64
- package/dist/react/jsxRuntimeCompat.js.map +2 -2
- package/dist/react/router/browser.js +1 -64
- package/dist/react/router/browser.js.map +2 -2
- package/dist/react/router/index.js +1 -64
- package/dist/react/router/index.js.map +2 -2
- package/dist/react/server.js +38 -51
- package/dist/react/server.js.map +5 -5
- package/dist/src/cli/config/server.d.ts +7 -129
- package/dist/src/cli/patchedBun.d.ts +14 -14
- package/dist/src/core/prepare.d.ts +149 -1805
- package/dist/src/core/requestContext.d.ts +1 -1
- package/dist/src/dev/requestInspector.d.ts +1 -1
- package/dist/src/mobile/associationFiles.d.ts +2 -2
- package/dist/src/mobile/compatibilityDispatcher.d.ts +1 -1
- package/dist/src/mobile/mobilePreview.d.ts +8 -130
- package/dist/src/mobile/updateServer.d.ts +2 -2
- package/dist/src/plugins/devtoolsJson.d.ts +2 -2
- package/dist/src/plugins/hmr.d.ts +2 -2
- package/dist/src/plugins/imageOptimizer.d.ts +2 -151
- package/dist/src/plugins/telemetryPlugin.d.ts +1 -19
- package/dist/svelte/browser.js +13 -3
- package/dist/svelte/browser.js.map +2 -2
- package/dist/svelte/index.js +66 -210
- package/dist/svelte/index.js.map +5 -5
- package/dist/svelte/server.js +51 -99
- package/dist/svelte/server.js.map +5 -5
- package/dist/types/globals.d.ts +0 -6
- package/dist/vue/browser.js +13 -3
- package/dist/vue/browser.js.map +2 -2
- package/dist/vue/components/Image.js +13 -3
- package/dist/vue/components/Image.js.map +2 -2
- package/dist/vue/components/index.js +62 -50
- package/dist/vue/components/index.js.map +4 -4
- package/dist/vue/index.js +1115 -1258
- package/dist/vue/index.js.map +10 -10
- package/dist/vue/server.js +42 -59
- package/dist/vue/server.js.map +5 -5
- package/package.json +9 -9
- package/dist/cli/androidEmulatorController-sj141e1c.js +0 -30
- package/dist/cli/config-rjeexvza.js +0 -8
- package/dist/cli/emulatorDoctor-gzarrsex.js +0 -18
- package/dist/cli/emulatorInstaller-pjw4ex6q.js +0 -15
- package/dist/cli/env-4f6f6z69.js +0 -14
- package/dist/cli/eslint-qfkxe89p.js +0 -20
- package/dist/cli/eslintChunked-7ef700pn.js +0 -21
- package/dist/cli/expoDevController-weywa74d.js +0 -26
- package/dist/cli/expoProject-w2pzjwnx.js +0 -11
- package/dist/cli/index-1rabqyq0.js +0 -7
- package/dist/cli/index-ar4gz15x.js +0 -60
- package/dist/cli/iosSimulatorController-xcxxfkzx.js +0 -34
- package/dist/cli/nativeAuth-zx4tsb1f.js +0 -38
- package/dist/cli/patchedBun-zjtrn2s4.js +0 -38
- package/dist/cli/prerender-yex2zwj3.js +0 -18
- package/dist/cli/remoteMacProtocol-r38jhg44.js +0 -69
- package/dist/cli/start-gzhrkhxe.js +0 -23
- package/dist/cli/telemetry-94rka1w2.js +0 -14
- package/dist/client/chunks/angularPatch-arh4sr68.js +0 -157
- package/dist/client/chunks/angularPatch-arh4sr68.js.map +0 -10
- package/dist/client/chunks/index-jrcwp722.js +0 -12
- package/dist/client/chunks/index-jrcwp722.js.map +0 -10
- package/dist/client/chunks/index-m35nbkdp.js.map +0 -12
- package/dist/client/chunks/index-qxjc7kc5.js +0 -12
- package/dist/client/chunks/index-qxjc7kc5.js.map +0 -9
- package/dist/client/chunks/islands-50dg63j9.js +0 -284
- package/dist/client/chunks/islands-50dg63j9.js.map +0 -14
- /package/dist/cli/{index-me8nczrw.js → index-039rh39e.js} +0 -0
- /package/dist/cli/{index-bw4ktfnz.js → index-1y5mmnwg.js} +0 -0
- /package/dist/cli/{index-5xfxd7xa.js → index-3wm8p7rg.js} +0 -0
- /package/dist/cli/{index-4rme31py.js → index-420h9hq7.js} +0 -0
- /package/dist/cli/{index-4rhxthsy.js → index-65kqn88a.js} +0 -0
- /package/dist/cli/{index-r8x3839e.js → index-71gchbzt.js} +0 -0
- /package/dist/cli/{index-s2tazax7.js → index-92g14j47.js} +0 -0
- /package/dist/cli/{index-j66p8hn5.js → index-bwsa6ax4.js} +0 -0
- /package/dist/cli/{index-bzs19w3r.js → index-e6ysp900.js} +0 -0
- /package/dist/cli/{index-06cmrcdq.js → index-h7qhz02e.js} +0 -0
- /package/dist/cli/{index-6h54jqdq.js → index-hg54jyts.js} +0 -0
- /package/dist/cli/{index-czwrxgdj.js → index-hxqprc80.js} +0 -0
- /package/dist/cli/{index-zh6hhrwy.js → index-jjfbjv1z.js} +0 -0
- /package/dist/cli/{index-fc9vxw56.js → index-prs14ys9.js} +0 -0
- /package/dist/cli/{index-v1k46q3x.js → index-tx0kx9zx.js} +0 -0
- /package/dist/cli/{index-fhaf3tdk.js → index-x8x0f3ha.js} +0 -0
- /package/dist/cli/{index-18q9qc7f.js → index-ypcqx24p.js} +0 -0
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
getString,
|
|
4
|
-
isRecord
|
|
5
|
-
} from "./index-v1k46q3x.js";
|
|
6
|
-
import {
|
|
7
|
-
getWorkspaceServices,
|
|
8
3
|
isWorkspaceConfig,
|
|
4
|
+
getWorkspaceServices,
|
|
9
5
|
loadConfig,
|
|
10
6
|
loadRawConfig
|
|
11
|
-
} from "./index-
|
|
12
|
-
import {
|
|
13
|
-
DEFAULT_SERVER_ENTRY
|
|
14
|
-
} from "./index-00wfffav.js";
|
|
15
|
-
import"./index-wtfnv3n2.js";
|
|
16
|
-
import"./index-prwyfnn3.js";
|
|
7
|
+
} from "./index-h7qhz02e.js";
|
|
17
8
|
import {
|
|
18
9
|
ANSI_ESCAPE_CODE
|
|
19
|
-
} from "./index-
|
|
20
|
-
import
|
|
10
|
+
} from "./index-hxqprc80.js";
|
|
11
|
+
import {
|
|
12
|
+
getString,
|
|
13
|
+
isRecord
|
|
14
|
+
} from "./index-tx0kx9zx.js";
|
|
15
|
+
import {
|
|
16
|
+
DEFAULT_SERVER_ENTRY
|
|
17
|
+
} from "./index-k4t9k1xk.js";
|
|
18
|
+
import"./index-92hmw204.js";
|
|
19
|
+
import"./index-1x1vah31.js";
|
|
21
20
|
|
|
22
21
|
// src/cli/scripts/typecheck.ts
|
|
23
22
|
import { resolve, join, relative } from "path";
|
|
@@ -30,15 +29,15 @@ function createScanner(text, ignoreTrivia = false) {
|
|
|
30
29
|
let pos = 0, value = "", tokenOffset = 0, token = 16, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0;
|
|
31
30
|
function scanHexDigits(count, exact) {
|
|
32
31
|
let digits = 0;
|
|
33
|
-
let
|
|
32
|
+
let value = 0;
|
|
34
33
|
while (digits < count || !exact) {
|
|
35
34
|
let ch = text.charCodeAt(pos);
|
|
36
35
|
if (ch >= 48 && ch <= 57) {
|
|
37
|
-
|
|
36
|
+
value = value * 16 + ch - 48;
|
|
38
37
|
} else if (ch >= 65 && ch <= 70) {
|
|
39
|
-
|
|
38
|
+
value = value * 16 + ch - 65 + 10;
|
|
40
39
|
} else if (ch >= 97 && ch <= 102) {
|
|
41
|
-
|
|
40
|
+
value = value * 16 + ch - 97 + 10;
|
|
42
41
|
} else {
|
|
43
42
|
break;
|
|
44
43
|
}
|
|
@@ -46,9 +45,9 @@ function createScanner(text, ignoreTrivia = false) {
|
|
|
46
45
|
digits++;
|
|
47
46
|
}
|
|
48
47
|
if (digits < count) {
|
|
49
|
-
|
|
48
|
+
value = -1;
|
|
50
49
|
}
|
|
51
|
-
return
|
|
50
|
+
return value;
|
|
52
51
|
}
|
|
53
52
|
function setPosition(newPosition) {
|
|
54
53
|
pos = newPosition;
|
|
@@ -356,87 +355,87 @@ function isDigit(ch) {
|
|
|
356
355
|
return ch >= 48 && ch <= 57;
|
|
357
356
|
}
|
|
358
357
|
var CharacterCodes;
|
|
359
|
-
(function(
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
358
|
+
(function(CharacterCodes) {
|
|
359
|
+
CharacterCodes[CharacterCodes["lineFeed"] = 10] = "lineFeed";
|
|
360
|
+
CharacterCodes[CharacterCodes["carriageReturn"] = 13] = "carriageReturn";
|
|
361
|
+
CharacterCodes[CharacterCodes["space"] = 32] = "space";
|
|
362
|
+
CharacterCodes[CharacterCodes["_0"] = 48] = "_0";
|
|
363
|
+
CharacterCodes[CharacterCodes["_1"] = 49] = "_1";
|
|
364
|
+
CharacterCodes[CharacterCodes["_2"] = 50] = "_2";
|
|
365
|
+
CharacterCodes[CharacterCodes["_3"] = 51] = "_3";
|
|
366
|
+
CharacterCodes[CharacterCodes["_4"] = 52] = "_4";
|
|
367
|
+
CharacterCodes[CharacterCodes["_5"] = 53] = "_5";
|
|
368
|
+
CharacterCodes[CharacterCodes["_6"] = 54] = "_6";
|
|
369
|
+
CharacterCodes[CharacterCodes["_7"] = 55] = "_7";
|
|
370
|
+
CharacterCodes[CharacterCodes["_8"] = 56] = "_8";
|
|
371
|
+
CharacterCodes[CharacterCodes["_9"] = 57] = "_9";
|
|
372
|
+
CharacterCodes[CharacterCodes["a"] = 97] = "a";
|
|
373
|
+
CharacterCodes[CharacterCodes["b"] = 98] = "b";
|
|
374
|
+
CharacterCodes[CharacterCodes["c"] = 99] = "c";
|
|
375
|
+
CharacterCodes[CharacterCodes["d"] = 100] = "d";
|
|
376
|
+
CharacterCodes[CharacterCodes["e"] = 101] = "e";
|
|
377
|
+
CharacterCodes[CharacterCodes["f"] = 102] = "f";
|
|
378
|
+
CharacterCodes[CharacterCodes["g"] = 103] = "g";
|
|
379
|
+
CharacterCodes[CharacterCodes["h"] = 104] = "h";
|
|
380
|
+
CharacterCodes[CharacterCodes["i"] = 105] = "i";
|
|
381
|
+
CharacterCodes[CharacterCodes["j"] = 106] = "j";
|
|
382
|
+
CharacterCodes[CharacterCodes["k"] = 107] = "k";
|
|
383
|
+
CharacterCodes[CharacterCodes["l"] = 108] = "l";
|
|
384
|
+
CharacterCodes[CharacterCodes["m"] = 109] = "m";
|
|
385
|
+
CharacterCodes[CharacterCodes["n"] = 110] = "n";
|
|
386
|
+
CharacterCodes[CharacterCodes["o"] = 111] = "o";
|
|
387
|
+
CharacterCodes[CharacterCodes["p"] = 112] = "p";
|
|
388
|
+
CharacterCodes[CharacterCodes["q"] = 113] = "q";
|
|
389
|
+
CharacterCodes[CharacterCodes["r"] = 114] = "r";
|
|
390
|
+
CharacterCodes[CharacterCodes["s"] = 115] = "s";
|
|
391
|
+
CharacterCodes[CharacterCodes["t"] = 116] = "t";
|
|
392
|
+
CharacterCodes[CharacterCodes["u"] = 117] = "u";
|
|
393
|
+
CharacterCodes[CharacterCodes["v"] = 118] = "v";
|
|
394
|
+
CharacterCodes[CharacterCodes["w"] = 119] = "w";
|
|
395
|
+
CharacterCodes[CharacterCodes["x"] = 120] = "x";
|
|
396
|
+
CharacterCodes[CharacterCodes["y"] = 121] = "y";
|
|
397
|
+
CharacterCodes[CharacterCodes["z"] = 122] = "z";
|
|
398
|
+
CharacterCodes[CharacterCodes["A"] = 65] = "A";
|
|
399
|
+
CharacterCodes[CharacterCodes["B"] = 66] = "B";
|
|
400
|
+
CharacterCodes[CharacterCodes["C"] = 67] = "C";
|
|
401
|
+
CharacterCodes[CharacterCodes["D"] = 68] = "D";
|
|
402
|
+
CharacterCodes[CharacterCodes["E"] = 69] = "E";
|
|
403
|
+
CharacterCodes[CharacterCodes["F"] = 70] = "F";
|
|
404
|
+
CharacterCodes[CharacterCodes["G"] = 71] = "G";
|
|
405
|
+
CharacterCodes[CharacterCodes["H"] = 72] = "H";
|
|
406
|
+
CharacterCodes[CharacterCodes["I"] = 73] = "I";
|
|
407
|
+
CharacterCodes[CharacterCodes["J"] = 74] = "J";
|
|
408
|
+
CharacterCodes[CharacterCodes["K"] = 75] = "K";
|
|
409
|
+
CharacterCodes[CharacterCodes["L"] = 76] = "L";
|
|
410
|
+
CharacterCodes[CharacterCodes["M"] = 77] = "M";
|
|
411
|
+
CharacterCodes[CharacterCodes["N"] = 78] = "N";
|
|
412
|
+
CharacterCodes[CharacterCodes["O"] = 79] = "O";
|
|
413
|
+
CharacterCodes[CharacterCodes["P"] = 80] = "P";
|
|
414
|
+
CharacterCodes[CharacterCodes["Q"] = 81] = "Q";
|
|
415
|
+
CharacterCodes[CharacterCodes["R"] = 82] = "R";
|
|
416
|
+
CharacterCodes[CharacterCodes["S"] = 83] = "S";
|
|
417
|
+
CharacterCodes[CharacterCodes["T"] = 84] = "T";
|
|
418
|
+
CharacterCodes[CharacterCodes["U"] = 85] = "U";
|
|
419
|
+
CharacterCodes[CharacterCodes["V"] = 86] = "V";
|
|
420
|
+
CharacterCodes[CharacterCodes["W"] = 87] = "W";
|
|
421
|
+
CharacterCodes[CharacterCodes["X"] = 88] = "X";
|
|
422
|
+
CharacterCodes[CharacterCodes["Y"] = 89] = "Y";
|
|
423
|
+
CharacterCodes[CharacterCodes["Z"] = 90] = "Z";
|
|
424
|
+
CharacterCodes[CharacterCodes["asterisk"] = 42] = "asterisk";
|
|
425
|
+
CharacterCodes[CharacterCodes["backslash"] = 92] = "backslash";
|
|
426
|
+
CharacterCodes[CharacterCodes["closeBrace"] = 125] = "closeBrace";
|
|
427
|
+
CharacterCodes[CharacterCodes["closeBracket"] = 93] = "closeBracket";
|
|
428
|
+
CharacterCodes[CharacterCodes["colon"] = 58] = "colon";
|
|
429
|
+
CharacterCodes[CharacterCodes["comma"] = 44] = "comma";
|
|
430
|
+
CharacterCodes[CharacterCodes["dot"] = 46] = "dot";
|
|
431
|
+
CharacterCodes[CharacterCodes["doubleQuote"] = 34] = "doubleQuote";
|
|
432
|
+
CharacterCodes[CharacterCodes["minus"] = 45] = "minus";
|
|
433
|
+
CharacterCodes[CharacterCodes["openBrace"] = 123] = "openBrace";
|
|
434
|
+
CharacterCodes[CharacterCodes["openBracket"] = 91] = "openBracket";
|
|
435
|
+
CharacterCodes[CharacterCodes["plus"] = 43] = "plus";
|
|
436
|
+
CharacterCodes[CharacterCodes["slash"] = 47] = "slash";
|
|
437
|
+
CharacterCodes[CharacterCodes["formFeed"] = 12] = "formFeed";
|
|
438
|
+
CharacterCodes[CharacterCodes["tab"] = 9] = "tab";
|
|
440
439
|
})(CharacterCodes || (CharacterCodes = {}));
|
|
441
440
|
|
|
442
441
|
// node_modules/jsonc-parser/lib/esm/impl/string-intern.js
|
|
@@ -475,8 +474,8 @@ var cachedBreakLinesWithSpaces = {
|
|
|
475
474
|
|
|
476
475
|
// node_modules/jsonc-parser/lib/esm/impl/parser.js
|
|
477
476
|
var ParseOptions;
|
|
478
|
-
(function(
|
|
479
|
-
|
|
477
|
+
(function(ParseOptions) {
|
|
478
|
+
ParseOptions.DEFAULT = {
|
|
480
479
|
allowTrailingComma: false
|
|
481
480
|
};
|
|
482
481
|
})(ParseOptions || (ParseOptions = {}));
|
|
@@ -778,54 +777,54 @@ function visit(text, visitor, options = ParseOptions.DEFAULT) {
|
|
|
778
777
|
|
|
779
778
|
// node_modules/jsonc-parser/lib/esm/main.js
|
|
780
779
|
var ScanError;
|
|
781
|
-
(function(
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
780
|
+
(function(ScanError) {
|
|
781
|
+
ScanError[ScanError["None"] = 0] = "None";
|
|
782
|
+
ScanError[ScanError["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment";
|
|
783
|
+
ScanError[ScanError["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString";
|
|
784
|
+
ScanError[ScanError["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber";
|
|
785
|
+
ScanError[ScanError["InvalidUnicode"] = 4] = "InvalidUnicode";
|
|
786
|
+
ScanError[ScanError["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter";
|
|
787
|
+
ScanError[ScanError["InvalidCharacter"] = 6] = "InvalidCharacter";
|
|
789
788
|
})(ScanError || (ScanError = {}));
|
|
790
789
|
var SyntaxKind;
|
|
791
|
-
(function(
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
790
|
+
(function(SyntaxKind) {
|
|
791
|
+
SyntaxKind[SyntaxKind["OpenBraceToken"] = 1] = "OpenBraceToken";
|
|
792
|
+
SyntaxKind[SyntaxKind["CloseBraceToken"] = 2] = "CloseBraceToken";
|
|
793
|
+
SyntaxKind[SyntaxKind["OpenBracketToken"] = 3] = "OpenBracketToken";
|
|
794
|
+
SyntaxKind[SyntaxKind["CloseBracketToken"] = 4] = "CloseBracketToken";
|
|
795
|
+
SyntaxKind[SyntaxKind["CommaToken"] = 5] = "CommaToken";
|
|
796
|
+
SyntaxKind[SyntaxKind["ColonToken"] = 6] = "ColonToken";
|
|
797
|
+
SyntaxKind[SyntaxKind["NullKeyword"] = 7] = "NullKeyword";
|
|
798
|
+
SyntaxKind[SyntaxKind["TrueKeyword"] = 8] = "TrueKeyword";
|
|
799
|
+
SyntaxKind[SyntaxKind["FalseKeyword"] = 9] = "FalseKeyword";
|
|
800
|
+
SyntaxKind[SyntaxKind["StringLiteral"] = 10] = "StringLiteral";
|
|
801
|
+
SyntaxKind[SyntaxKind["NumericLiteral"] = 11] = "NumericLiteral";
|
|
802
|
+
SyntaxKind[SyntaxKind["LineCommentTrivia"] = 12] = "LineCommentTrivia";
|
|
803
|
+
SyntaxKind[SyntaxKind["BlockCommentTrivia"] = 13] = "BlockCommentTrivia";
|
|
804
|
+
SyntaxKind[SyntaxKind["LineBreakTrivia"] = 14] = "LineBreakTrivia";
|
|
805
|
+
SyntaxKind[SyntaxKind["Trivia"] = 15] = "Trivia";
|
|
806
|
+
SyntaxKind[SyntaxKind["Unknown"] = 16] = "Unknown";
|
|
807
|
+
SyntaxKind[SyntaxKind["EOF"] = 17] = "EOF";
|
|
809
808
|
})(SyntaxKind || (SyntaxKind = {}));
|
|
810
809
|
var parse2 = parse;
|
|
811
810
|
var ParseErrorCode;
|
|
812
|
-
(function(
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
811
|
+
(function(ParseErrorCode) {
|
|
812
|
+
ParseErrorCode[ParseErrorCode["InvalidSymbol"] = 1] = "InvalidSymbol";
|
|
813
|
+
ParseErrorCode[ParseErrorCode["InvalidNumberFormat"] = 2] = "InvalidNumberFormat";
|
|
814
|
+
ParseErrorCode[ParseErrorCode["PropertyNameExpected"] = 3] = "PropertyNameExpected";
|
|
815
|
+
ParseErrorCode[ParseErrorCode["ValueExpected"] = 4] = "ValueExpected";
|
|
816
|
+
ParseErrorCode[ParseErrorCode["ColonExpected"] = 5] = "ColonExpected";
|
|
817
|
+
ParseErrorCode[ParseErrorCode["CommaExpected"] = 6] = "CommaExpected";
|
|
818
|
+
ParseErrorCode[ParseErrorCode["CloseBraceExpected"] = 7] = "CloseBraceExpected";
|
|
819
|
+
ParseErrorCode[ParseErrorCode["CloseBracketExpected"] = 8] = "CloseBracketExpected";
|
|
820
|
+
ParseErrorCode[ParseErrorCode["EndOfFileExpected"] = 9] = "EndOfFileExpected";
|
|
821
|
+
ParseErrorCode[ParseErrorCode["InvalidCommentToken"] = 10] = "InvalidCommentToken";
|
|
822
|
+
ParseErrorCode[ParseErrorCode["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment";
|
|
823
|
+
ParseErrorCode[ParseErrorCode["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString";
|
|
824
|
+
ParseErrorCode[ParseErrorCode["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber";
|
|
825
|
+
ParseErrorCode[ParseErrorCode["InvalidUnicode"] = 14] = "InvalidUnicode";
|
|
826
|
+
ParseErrorCode[ParseErrorCode["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
|
|
827
|
+
ParseErrorCode[ParseErrorCode["InvalidCharacter"] = 16] = "InvalidCharacter";
|
|
829
828
|
})(ParseErrorCode || (ParseErrorCode = {}));
|
|
830
829
|
|
|
831
830
|
// src/dev/importCost/deferability.ts
|
|
@@ -934,14 +933,14 @@ var recordUsage = (node, owners, reasons) => {
|
|
|
934
933
|
};
|
|
935
934
|
var collectUnsafeReasons = (source, owners) => {
|
|
936
935
|
const reasons = new Map;
|
|
937
|
-
const
|
|
936
|
+
const visit = (node) => {
|
|
938
937
|
if (ts.isImportDeclaration(node))
|
|
939
938
|
return;
|
|
940
939
|
if (ts.isIdentifier(node))
|
|
941
940
|
recordUsage(node, owners, reasons);
|
|
942
|
-
ts.forEachChild(node,
|
|
941
|
+
ts.forEachChild(node, visit);
|
|
943
942
|
};
|
|
944
|
-
ts.forEachChild(source,
|
|
943
|
+
ts.forEachChild(source, visit);
|
|
945
944
|
return reasons;
|
|
946
945
|
};
|
|
947
946
|
var verdictFor = (declaration, reason) => {
|
|
@@ -1364,6 +1363,5 @@ var typecheck = async (configPath) => {
|
|
|
1364
1363
|
process.exit(1);
|
|
1365
1364
|
};
|
|
1366
1365
|
export {
|
|
1367
|
-
serverEntryPaths,
|
|
1368
1366
|
typecheck
|
|
1369
1367
|
};
|
|
@@ -1,33 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
ESCAPE,
|
|
4
|
-
appendRightEdge,
|
|
5
|
-
colors,
|
|
6
|
-
formatTimestamp,
|
|
7
|
-
isPartialEscapeSequence,
|
|
8
|
-
openTtyStream,
|
|
9
|
-
padLine,
|
|
10
|
-
stripAnsi,
|
|
11
|
-
truncateText,
|
|
12
|
-
wrapText
|
|
13
|
-
} from "./index-8nym68py.js";
|
|
14
|
-
import {
|
|
15
|
-
deregisterInstance,
|
|
16
|
-
registerInstance
|
|
17
|
-
} from "./index-r8x3839e.js";
|
|
18
|
-
import {
|
|
19
|
-
getWorkspaceServices,
|
|
20
|
-
loadRawConfig
|
|
21
|
-
} from "./index-06cmrcdq.js";
|
|
22
|
-
import {
|
|
23
|
-
DEFAULT_SERVER_ENTRY,
|
|
24
|
-
isWSLEnvironment,
|
|
25
|
-
killStaleProcesses
|
|
26
|
-
} from "./index-00wfffav.js";
|
|
27
|
-
import"./index-wtfnv3n2.js";
|
|
28
|
-
import {
|
|
29
|
-
getDurationString
|
|
30
|
-
} from "./index-prwyfnn3.js";
|
|
31
2
|
import {
|
|
32
3
|
ANSI_ESCAPE_CODE,
|
|
33
4
|
ASCII_SPACE,
|
|
@@ -54,8 +25,36 @@ import {
|
|
|
54
25
|
WORKSPACE_TUI_STATUS_WIDTH,
|
|
55
26
|
WORKSPACE_TUI_TARGET_PADDING_WIDTH,
|
|
56
27
|
WORKSPACE_TUI_VISIBILITY_WIDTH
|
|
57
|
-
} from "./index-
|
|
58
|
-
import
|
|
28
|
+
} from "./index-hxqprc80.js";
|
|
29
|
+
import {
|
|
30
|
+
getWorkspaceServices,
|
|
31
|
+
loadRawConfig
|
|
32
|
+
} from "./index-h7qhz02e.js";
|
|
33
|
+
import {
|
|
34
|
+
deregisterInstance,
|
|
35
|
+
registerInstance
|
|
36
|
+
} from "./index-71gchbzt.js";
|
|
37
|
+
import {
|
|
38
|
+
colors,
|
|
39
|
+
ESCAPE,
|
|
40
|
+
appendRightEdge,
|
|
41
|
+
formatTimestamp,
|
|
42
|
+
isPartialEscapeSequence,
|
|
43
|
+
openTtyStream,
|
|
44
|
+
padLine,
|
|
45
|
+
stripAnsi,
|
|
46
|
+
truncateText,
|
|
47
|
+
wrapText
|
|
48
|
+
} from "./index-ppxed116.js";
|
|
49
|
+
import {
|
|
50
|
+
DEFAULT_SERVER_ENTRY,
|
|
51
|
+
isWSLEnvironment,
|
|
52
|
+
killStaleProcesses
|
|
53
|
+
} from "./index-k4t9k1xk.js";
|
|
54
|
+
import"./index-92hmw204.js";
|
|
55
|
+
import {
|
|
56
|
+
getDurationString
|
|
57
|
+
} from "./index-1x1vah31.js";
|
|
59
58
|
|
|
60
59
|
// src/cli/scripts/workspace.ts
|
|
61
60
|
import {
|
|
@@ -734,7 +733,7 @@ var resolveHttpReadyProbe = (service, ready) => {
|
|
|
734
733
|
url: ready
|
|
735
734
|
};
|
|
736
735
|
}
|
|
737
|
-
const
|
|
736
|
+
const url = resolveServiceHttpUrl(service, ready);
|
|
738
737
|
return {
|
|
739
738
|
expectStatus: [HTTP_STATUS_OK],
|
|
740
739
|
headers: {},
|
|
@@ -742,7 +741,7 @@ var resolveHttpReadyProbe = (service, ready) => {
|
|
|
742
741
|
method: "GET",
|
|
743
742
|
timeoutMs: WORKSPACE_READY_TIMEOUT_MS,
|
|
744
743
|
type: "http",
|
|
745
|
-
url
|
|
744
|
+
url
|
|
746
745
|
};
|
|
747
746
|
}
|
|
748
747
|
if (ready.path && ready.url) {
|
|
@@ -1432,8 +1431,5 @@ var workspace = async (subcommand, options) => {
|
|
|
1432
1431
|
await Promise.withResolvers().promise;
|
|
1433
1432
|
};
|
|
1434
1433
|
export {
|
|
1435
|
-
findSharedWorkspaceBuildDirectories,
|
|
1436
|
-
resolveWorkspaceServicePort,
|
|
1437
|
-
startWorkspaceOrShutDown,
|
|
1438
1434
|
workspace
|
|
1439
1435
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// src/client/browserTranslationAttributes.ts
|
|
2
|
+
var TRANSLATABLE_ATTRIBUTES = [
|
|
3
|
+
"alt",
|
|
4
|
+
"title",
|
|
5
|
+
"placeholder",
|
|
6
|
+
"aria-label"
|
|
7
|
+
];
|
|
4
8
|
|
|
5
9
|
// src/client/browserTranslation.ts
|
|
6
10
|
var translatedFontText = (node, baselines) => {
|
|
@@ -65,7 +69,7 @@ var elementAtPath = (root, path) => {
|
|
|
65
69
|
}
|
|
66
70
|
return current;
|
|
67
71
|
};
|
|
68
|
-
var
|
|
72
|
+
var captureSsrTextBaselines2 = (root) => {
|
|
69
73
|
if (root === null || typeof window === "undefined")
|
|
70
74
|
return;
|
|
71
75
|
const baselines = window.__ABSOLUTE_SSR_TEXT_BASELINES__ ?? new WeakMap;
|
|
@@ -90,7 +94,7 @@ var captureSsrTextBaselines = (root) => {
|
|
|
90
94
|
window.__ABSOLUTE_SSR_TEXT_BASELINES__ = baselines;
|
|
91
95
|
window.__ABSOLUTE_SSR_ATTRIBUTE_BASELINES__ = attributes;
|
|
92
96
|
};
|
|
93
|
-
var
|
|
97
|
+
var prepareBrowserTranslationHydration2 = (root) => {
|
|
94
98
|
if (root === null || typeof window === "undefined")
|
|
95
99
|
return emptyTranslationRestorer();
|
|
96
100
|
const baselines = window.__ABSOLUTE_SSR_TEXT_BASELINES__;
|
|
@@ -140,7 +144,7 @@ var prepareBrowserTranslationHydration = (root) => {
|
|
|
140
144
|
}, translated.length > 0 || translatedAttributes.length > 0);
|
|
141
145
|
};
|
|
142
146
|
|
|
143
|
-
export {
|
|
147
|
+
export { TRANSLATABLE_ATTRIBUTES, captureSsrTextBaselines2, prepareBrowserTranslationHydration2 };
|
|
144
148
|
|
|
145
|
-
//# debugId=
|
|
146
|
-
//# sourceMappingURL=index-
|
|
149
|
+
//# debugId=6B2454313A19AF2964756E2164756E21
|
|
150
|
+
//# sourceMappingURL=index-8m2qq61n.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/client/browserTranslation.ts"],
|
|
3
|
+
"sources": ["../src/client/browserTranslationAttributes.ts", "../src/client/browserTranslation.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
+
"/** Human-readable attributes a browser translator may rewrite before hydration. */\nexport const TRANSLATABLE_ATTRIBUTES = [\n\t'alt',\n\t'title',\n\t'placeholder',\n\t'aria-label'\n] as const;\n",
|
|
5
6
|
"import { TRANSLATABLE_ATTRIBUTES } from './browserTranslationAttributes';\n\ntype TextBaseline = ReadonlyMap<number, string>;\ntype SsrTextBaselines = WeakMap<Element, TextBaseline>;\ntype AttributeBaseline = ReadonlyMap<string, string>;\ntype SsrAttributeBaselines = WeakMap<Element, AttributeBaseline>;\n\ndeclare global {\n\t// Window augmentation requires interface declaration merging.\n\t// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\n\tinterface Window {\n\t\t__ABSOLUTE_SSR_TEXT_BASELINES__?: SsrTextBaselines;\n\t\t__ABSOLUTE_SSR_ATTRIBUTE_BASELINES__?: SsrAttributeBaselines;\n\t}\n}\n\ntype TranslatedText = {\n\tbaseline: string;\n\tindex: number;\n\tpath: number[];\n\ttranslated: string;\n};\n\ntype TranslatedAttribute = {\n\tbaseline: string;\n\tname: string;\n\tpath: number[];\n\ttranslated: string;\n};\n\n// Translate inserts font wrappers around text. Remove only newly inserted,\n// text-only font trees; never flatten authored elements or interactive markup.\nconst translatedFontText = (\n\tnode: Node | undefined,\n\tbaselines: SsrTextBaselines\n) => {\n\tif (!(node instanceof Element) || node.tagName !== 'FONT') return undefined;\n\tconst elements = [node, ...node.querySelectorAll('*')];\n\tif (\n\t\telements.some(\n\t\t\t(element) => element.tagName !== 'FONT' || baselines.has(element)\n\t\t)\n\t)\n\t\treturn undefined;\n\n\treturn node.textContent ?? '';\n};\n\nconst translationRestorer = (restore: () => void, hasTranslation: boolean) =>\n\tObject.assign(restore, { hasTranslation });\n\nconst emptyTranslationRestorer = () =>\n\ttranslationRestorer(() => undefined, false);\n\nconst textNodeAt = (parent: Element, index: number) => {\n\tconst node = parent.childNodes[index];\n\n\treturn node instanceof Text ? node : undefined;\n};\n\nconst prepareTextTranslation = (\n\telement: Element,\n\tindex: number,\n\tbaseline: string,\n\tpath: number[],\n\tbaselines: SsrTextBaselines\n) => {\n\tconst original = element.childNodes[index];\n\tconst wrappedText = translatedFontText(original, baselines);\n\tif (wrappedText !== undefined) {\n\t\toriginal?.replaceWith(document.createTextNode(baseline));\n\n\t\treturn { baseline, index, path, translated: wrappedText };\n\t}\n\tconst node = textNodeAt(element, index);\n\tif (node === undefined || node.data === baseline) return undefined;\n\tconst snapshot: TranslatedText = {\n\t\tbaseline,\n\t\tindex,\n\t\tpath,\n\t\ttranslated: node.data\n\t};\n\tnode.data = baseline;\n\n\treturn snapshot;\n};\n\nconst visitElements = (root: Element, visit: (element: Element) => void) => {\n\tvisit(root);\n\tfor (const element of root.querySelectorAll('*')) visit(element);\n};\n\nconst elementPath = (root: Element, element: Element) => {\n\tconst path: number[] = [];\n\tlet current = element;\n\twhile (current !== root) {\n\t\tconst parent = current.parentElement;\n\t\tif (parent === null) return null;\n\t\tpath.unshift([...parent.children].indexOf(current));\n\t\tcurrent = parent;\n\t}\n\n\treturn path;\n};\n\nconst elementAtPath = (root: Element, path: number[]) => {\n\tlet current = root;\n\tfor (const index of path) {\n\t\tconst child = current.children[index];\n\t\tif (!(child instanceof Element)) return null;\n\t\tcurrent = child;\n\t}\n\n\treturn current;\n};\n\n/** Capture server-authored text before client modules load. Absolute page\n * handlers install the same snapshot inline; this export supports custom\n * documents and non-standard bootstraps. */\nexport const captureSsrTextBaselines = (root: Element | null) => {\n\tif (root === null || typeof window === 'undefined') return;\n\tconst baselines: SsrTextBaselines =\n\t\twindow.__ABSOLUTE_SSR_TEXT_BASELINES__ ?? new WeakMap();\n\tconst attributes: SsrAttributeBaselines =\n\t\twindow.__ABSOLUTE_SSR_ATTRIBUTE_BASELINES__ ?? new WeakMap();\n\tvisitElements(root, (element) => {\n\t\tconst text = new Map<number, string>();\n\t\tfor (const [index, node] of [...element.childNodes].entries()) {\n\t\t\tif (node.nodeType === Node.TEXT_NODE)\n\t\t\t\ttext.set(index, node.nodeValue ?? '');\n\t\t}\n\t\tif (text.size > 0) baselines.set(element, text);\n\t\tconst values = new Map<string, string>();\n\t\tfor (const name of TRANSLATABLE_ATTRIBUTES) {\n\t\t\tconst value = element.getAttribute(name);\n\t\t\tif (value !== null) values.set(name, value);\n\t\t}\n\t\tif (values.size > 0) attributes.set(element, values);\n\t});\n\twindow.__ABSOLUTE_SSR_TEXT_BASELINES__ = baselines;\n\twindow.__ABSOLUTE_SSR_ATTRIBUTE_BASELINES__ = attributes;\n};\n\n/** Temporarily restore server text while a framework attaches to SSR DOM,\n * then reapply translated text. Paths preserve translations even when a\n * framework replaces nodes while mounting. Genuine server/client mismatches\n * are left unchanged. */\nexport const prepareBrowserTranslationHydration = (root: Element | null) => {\n\tif (root === null || typeof window === 'undefined')\n\t\treturn emptyTranslationRestorer();\n\tconst baselines = window.__ABSOLUTE_SSR_TEXT_BASELINES__;\n\tif (baselines === undefined) return emptyTranslationRestorer();\n\tconst translated: TranslatedText[] = [];\n\tconst translatedAttributes: TranslatedAttribute[] = [];\n\tconst attributes = window.__ABSOLUTE_SSR_ATTRIBUTE_BASELINES__;\n\tvisitElements(root, (element) => {\n\t\tconst text = baselines.get(element);\n\t\tconst path = elementPath(root, element);\n\t\tif (path === null) return;\n\t\tfor (const [index, baseline] of text ?? []) {\n\t\t\tconst snapshot = prepareTextTranslation(\n\t\t\t\telement,\n\t\t\t\tindex,\n\t\t\t\tbaseline,\n\t\t\t\tpath,\n\t\t\t\tbaselines\n\t\t\t);\n\t\t\tif (snapshot === undefined) continue;\n\t\t\ttranslated.push(snapshot);\n\t\t}\n\t\tfor (const [name, baseline] of attributes?.get(element) ?? []) {\n\t\t\tconst value = element.getAttribute(name);\n\t\t\tif (value === null || value === baseline) continue;\n\t\t\ttranslatedAttributes.push({\n\t\t\t\tbaseline,\n\t\t\t\tname,\n\t\t\t\tpath,\n\t\t\t\ttranslated: value\n\t\t\t});\n\t\t\telement.setAttribute(name, baseline);\n\t\t}\n\t});\n\n\treturn translationRestorer(\n\t\t() => {\n\t\t\tfor (const snapshot of translated) {\n\t\t\t\tconst parent = elementAtPath(root, snapshot.path);\n\t\t\t\tif (parent === null) continue;\n\t\t\t\tconst node = textNodeAt(parent, snapshot.index);\n\t\t\t\tif (node !== undefined && node.data === snapshot.baseline)\n\t\t\t\t\tnode.data = snapshot.translated;\n\t\t\t}\n\t\t\tfor (const snapshot of translatedAttributes) {\n\t\t\t\tconst element = elementAtPath(root, snapshot.path);\n\t\t\t\tif (element?.getAttribute(snapshot.name) === snapshot.baseline)\n\t\t\t\t\telement.setAttribute(snapshot.name, snapshot.translated);\n\t\t\t}\n\t\t},\n\t\ttranslated.length > 0 || translatedAttributes.length > 0\n\t);\n};\n"
|
|
6
7
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
8
|
+
"mappings": ";AACO,IAAM,0BAA0B;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;;;AC0BA,IAAM,qBAAqB,CAC1B,MACA,cACI;AAAA,EACJ,IAAI,EAAE,gBAAgB,YAAY,KAAK,YAAY;AAAA,IAAQ;AAAA,EAC3D,MAAM,WAAW,CAA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