@wix/himalaya-cli 0.1982.0 → 0.1984.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +4 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/launch-manifest.d.ts +3 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +33 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/splash-timeline.d.ts +48 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +70 -7
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +2 -1
  7. package/dist/browser-plane/assets.json +5 -5
  8. package/dist/browser-plane/preview-deferred/{4a6f910bf580b4fbc462abad75f9f9a8274914d66d468efef11bb741e11f834e.bin → dd1ab57b35f99c571d48e6f87b0b43cb84e090091d517c830ea4f3dc02631fbd.bin} +1 -1
  9. package/dist/browser-plane/sw.js +6 -6
  10. package/dist/cli.mjs +1007 -809
  11. package/dist/preview-assets.generated.bin +0 -0
  12. package/guides/sdk-reference.json +1 -1
  13. package/guides/splash-screens.md +107 -41
  14. package/package.json +2 -2
  15. package/templates/beauty-salon/config.ts +13 -3
  16. package/templates/beauty-salon/dev/index.ts +6 -6
  17. package/templates/beauty-salon/tokens.json +5 -0
  18. package/templates/beauty-salon-owner/config.ts +2 -1
  19. package/templates/branded-lite/config.ts +13 -3
  20. package/templates/branded-lite/dev/index.ts +6 -6
  21. package/templates/branded-lite/tokens.json +1 -0
  22. package/templates/community-club/config.ts +13 -3
  23. package/templates/community-club/dev/index.ts +6 -6
  24. package/templates/community-club/tokens.json +5 -0
  25. package/templates/community-club-owner/config.ts +2 -1
  26. package/templates/events-meetups/config.ts +13 -3
  27. package/templates/events-meetups/dev/index.ts +6 -6
  28. package/templates/events-meetups/tokens.json +5 -0
  29. package/templates/events-meetups-owner/config.ts +2 -1
  30. package/templates/gym-fitness/config.ts +13 -3
  31. package/templates/gym-fitness/dev/index.ts +6 -6
  32. package/templates/gym-fitness/tokens.json +5 -0
  33. package/templates/gym-fitness-owner/config.ts +2 -1
  34. package/templates/nonprofit-cause/config.ts +13 -3
  35. package/templates/nonprofit-cause/dev/index.ts +6 -6
  36. package/templates/nonprofit-cause/tokens.json +5 -0
  37. package/templates/nonprofit-cause-owner/config.ts +2 -1
  38. package/templates/owner-lite/config.ts +2 -1
  39. package/templates/personal-fitness-trainer/dev/index.ts +6 -6
  40. package/templates/personal-fitness-trainer/tokens.json +5 -0
  41. package/templates/podcast-creator/config.ts +13 -3
  42. package/templates/podcast-creator/dev/index.ts +6 -6
  43. package/templates/podcast-creator/tokens.json +5 -0
  44. package/templates/podcast-creator-owner/config.ts +2 -1
  45. package/templates/portfolio-creative/config.ts +13 -3
  46. package/templates/portfolio-creative/dev/index.ts +6 -6
  47. package/templates/portfolio-creative/tokens.json +5 -0
  48. package/templates/portfolio-creative-owner/config.ts +2 -1
  49. package/templates/restaurant/config.ts +13 -3
  50. package/templates/restaurant/dev/index.ts +6 -6
  51. package/templates/restaurant/tokens.json +5 -0
  52. package/templates/restaurant-owner/config.ts +2 -1
  53. package/templates/retail-store/config.ts +13 -3
  54. package/templates/retail-store/dev/index.ts +6 -6
  55. package/templates/retail-store/tokens.json +5 -0
  56. package/templates/retail-store-owner/config.ts +2 -1
  57. package/templates/yoga-studio/config.ts +13 -3
  58. package/templates/yoga-studio/dev/index.ts +6 -6
  59. package/templates/yoga-studio/tokens.json +5 -0
  60. package/templates/yoga-studio-owner/config.ts +2 -1
package/dist/cli.mjs CHANGED
@@ -9434,27 +9434,74 @@ var init_paths = __esm({
9434
9434
  }
9435
9435
  });
9436
9436
 
9437
+ // ../native-config/config-ast.ts
9438
+ import ts from "typescript";
9439
+ function parseConfigSource(source2) {
9440
+ return ts.createSourceFile("config.ts", source2, ts.ScriptTarget.Latest, false, ts.ScriptKind.TS);
9441
+ }
9442
+ function collectConsts(file2) {
9443
+ const consts = /* @__PURE__ */ new Map();
9444
+ const collect2 = (node4) => {
9445
+ if (ts.isVariableDeclaration(node4) && ts.isIdentifier(node4.name) && node4.initializer) consts.set(node4.name.text, node4.initializer);
9446
+ ts.forEachChild(node4, collect2);
9447
+ };
9448
+ collect2(file2);
9449
+ return consts;
9450
+ }
9451
+ function propName(p2) {
9452
+ if (!ts.isPropertyAssignment(p2) && !ts.isShorthandPropertyAssignment(p2)) return void 0;
9453
+ return ts.isIdentifier(p2.name) || ts.isStringLiteral(p2.name) ? p2.name.text : void 0;
9454
+ }
9455
+ function makeResolver(consts) {
9456
+ const resolve141 = (e2, depth = 0) => {
9457
+ while (e2 && (ts.isAsExpression(e2) || ts.isSatisfiesExpression(e2) || ts.isParenthesizedExpression(e2))) e2 = e2.expression;
9458
+ return e2 && ts.isIdentifier(e2) && depth < 8 ? resolve141(consts.get(e2.text), depth + 1) : e2;
9459
+ };
9460
+ return resolve141;
9461
+ }
9462
+ function propValue(p2) {
9463
+ if (ts.isPropertyAssignment(p2)) return p2.initializer;
9464
+ if (ts.isShorthandPropertyAssignment(p2)) return p2.name;
9465
+ return void 0;
9466
+ }
9467
+ function isModuleSource(file2) {
9468
+ return file2.statements.some((s5) => ts.isImportDeclaration(s5) || ts.isExportDeclaration(s5) || ts.isExportAssignment(s5) || ts.canHaveModifiers(s5) && (ts.getModifiers(s5) ?? []).some((m2) => m2.kind === ts.SyntaxKind.ExportKeyword));
9469
+ }
9470
+ var init_config_ast = __esm({
9471
+ "../native-config/config-ast.ts"() {
9472
+ init_define_HHP_CATALOG();
9473
+ }
9474
+ });
9475
+
9437
9476
  // ../native-config/splash.ts
9438
9477
  var splash_exports = {};
9439
9478
  __export(splash_exports, {
9440
9479
  ANDROID_COLOR_RES: () => ANDROID_COLOR_RES,
9480
+ ANDROID_LAUNCH_ICON_ART: () => ANDROID_LAUNCH_ICON_ART,
9441
9481
  ANDROID_SPLASH_FILE: () => ANDROID_SPLASH_FILE,
9482
+ ANDROID_SPLASH_ICON_CANVAS_DP: () => ANDROID_SPLASH_ICON_CANVAS_DP,
9483
+ ANDROID_SPLASH_ICON_MASK_DP: () => ANDROID_SPLASH_ICON_MASK_DP,
9442
9484
  ANDROID_SPLASH_PARENT: () => ANDROID_SPLASH_PARENT,
9443
9485
  ANDROID_STYLE_NAME: () => ANDROID_STYLE_NAME,
9444
9486
  DEFAULT_BACKGROUND_TOKEN: () => DEFAULT_BACKGROUND_TOKEN,
9445
9487
  IOS_COLORSET_NAME: () => IOS_COLORSET_NAME,
9488
+ IOS_LAUNCH_ICON_NAME: () => IOS_LAUNCH_ICON_NAME,
9446
9489
  LABEL_IOS_SPLASH: () => LABEL_IOS_SPLASH,
9490
+ LOGO_WIDTH_DEFAULT: () => LOGO_WIDTH_DEFAULT,
9447
9491
  androidColorsXml: () => androidColorsXml,
9448
9492
  androidOptedIn: () => androidOptedIn,
9449
9493
  androidResDir: () => androidResDir,
9450
9494
  androidSplashArtifacts: () => androidSplashArtifacts,
9451
9495
  androidSplashNightXml: () => androidSplashNightXml,
9452
9496
  androidSplashXml: () => androidSplashXml,
9497
+ appearanceSplashColors: () => appearanceSplashColors,
9453
9498
  assertNoStoryboard: () => assertNoStoryboard,
9454
9499
  iosAssetCatalog: () => iosAssetCatalog,
9455
9500
  iosColorsetContents: () => iosColorsetContents,
9501
+ iosLaunchIconContents: () => iosLaunchIconContents,
9456
9502
  iosSplashArtifacts: () => iosSplashArtifacts,
9457
9503
  isNativeConfigInputToken: () => isNativeConfigInputToken,
9504
+ launchIconGeometry: () => launchIconGeometry,
9458
9505
  macosSplashArtifacts: () => macosSplashArtifacts,
9459
9506
  nativeConfigInputTokens: () => nativeConfigInputTokens,
9460
9507
  normalizeHex: () => normalizeHex,
@@ -9465,12 +9512,153 @@ __export(splash_exports, {
9465
9512
  });
9466
9513
  import { existsSync as existsSync4, readFileSync as readFileSync4, readdirSync as readdirSync3 } from "node:fs";
9467
9514
  import { dirname as dirname5, join as join5 } from "node:path";
9515
+ import ts2 from "typescript";
9516
+ function findSplashLiteral(file2) {
9517
+ const resolve141 = makeResolver(collectConsts(file2));
9518
+ const named5 = (name) => !!name && (ts2.isIdentifier(name) || ts2.isStringLiteral(name)) && name.text === "splash";
9519
+ let appLevel;
9520
+ let sawDefineApp = false;
9521
+ const splashOf = (config, depth) => {
9522
+ let result;
9523
+ for (const prop2 of config.properties) {
9524
+ if (ts2.isSpreadAssignment(prop2)) {
9525
+ const inner = spreadSplash(prop2.expression, depth);
9526
+ if (inner !== void 0) result = inner;
9527
+ continue;
9528
+ }
9529
+ if (propName(prop2) !== "splash") continue;
9530
+ const value2 = resolve141(propValue(prop2));
9531
+ result = value2 && ts2.isObjectLiteralExpression(value2) ? value2 : null;
9532
+ }
9533
+ return result;
9534
+ };
9535
+ const spreadSplash = (expr, depth) => {
9536
+ const value2 = resolve141(expr);
9537
+ if (!value2 || depth >= 8) return void 0;
9538
+ if (ts2.isConditionalExpression(value2)) {
9539
+ const a3 = spreadSplash(value2.whenTrue, depth + 1);
9540
+ const b3 = spreadSplash(value2.whenFalse, depth + 1);
9541
+ return a3 === void 0 && b3 === void 0 ? void 0 : null;
9542
+ }
9543
+ if (ts2.isObjectLiteralExpression(value2)) return splashOf(value2, depth + 1);
9544
+ return void 0;
9545
+ };
9546
+ const findDefineApp = (node4) => {
9547
+ if (sawDefineApp) return;
9548
+ if (ts2.isCallExpression(node4) && ts2.isIdentifier(node4.expression) && node4.expression.text === "defineApp") {
9549
+ sawDefineApp = true;
9550
+ const config = resolve141(node4.arguments[0]);
9551
+ if (config && ts2.isObjectLiteralExpression(config)) appLevel = splashOf(config, 0);
9552
+ return;
9553
+ }
9554
+ ts2.forEachChild(node4, findDefineApp);
9555
+ };
9556
+ findDefineApp(file2);
9557
+ if (appLevel) return { literal: appLevel, resolve: resolve141 };
9558
+ if (appLevel === null) return void 0;
9559
+ let found;
9560
+ const visit = (node4) => {
9561
+ if (found) return;
9562
+ let value2;
9563
+ if (ts2.isPropertyAssignment(node4) || ts2.isShorthandPropertyAssignment(node4)) {
9564
+ if (propName(node4) === "splash") value2 = propValue(node4);
9565
+ } else if (ts2.isVariableDeclaration(node4) && named5(node4.name)) {
9566
+ value2 = node4.initializer;
9567
+ } else if (ts2.isBinaryExpression(node4) && node4.operatorToken.kind === ts2.SyntaxKind.EqualsToken && ts2.isPropertyAccessExpression(node4.left) && named5(node4.left.name)) {
9568
+ value2 = node4.right;
9569
+ }
9570
+ const resolved3 = resolve141(value2);
9571
+ if (resolved3 && ts2.isObjectLiteralExpression(resolved3)) {
9572
+ found = resolved3;
9573
+ return;
9574
+ }
9575
+ ts2.forEachChild(node4, visit);
9576
+ };
9577
+ visit(file2);
9578
+ return found ? { literal: found, resolve: resolve141 } : void 0;
9579
+ }
9580
+ function splashFields(literal5, resolve141, depth = 0) {
9581
+ const fields2 = /* @__PURE__ */ new Map();
9582
+ for (const prop2 of literal5.properties) {
9583
+ if (ts2.isSpreadAssignment(prop2)) {
9584
+ const spread = resolve141(prop2.expression);
9585
+ if (spread && ts2.isObjectLiteralExpression(spread) && depth < 8) {
9586
+ for (const [k3, v2] of splashFields(spread, resolve141, depth + 1)) {
9587
+ fields2.delete(k3);
9588
+ fields2.set(k3, v2);
9589
+ }
9590
+ }
9591
+ continue;
9592
+ }
9593
+ const key4 = propName(prop2);
9594
+ if (key4 === void 0) continue;
9595
+ fields2.delete(key4);
9596
+ const value2 = resolve141(propValue(prop2));
9597
+ if (!value2) continue;
9598
+ if (ts2.isStringLiteralLike(value2)) fields2.set(key4, value2.text);
9599
+ else if (ts2.isNumericLiteral(value2)) fields2.set(key4, Number(value2.text));
9600
+ }
9601
+ return fields2;
9602
+ }
9468
9603
  function parseSplashConfig(configTs) {
9469
- const block = /["']?splash["']?\s*[:=]\s*\{([^}]*)\}/.exec(configTs);
9470
- if (!block) return {};
9471
- const backgroundColor = /["']?backgroundColor["']?\s*:\s*["']([^"']+)["']/.exec(block[1])?.[1];
9472
- const logoAsset = /["']?logoAsset["']?\s*:\s*["']([^"']*)["']/.exec(block[1])?.[1];
9473
- return { ...backgroundColor ? { backgroundColor } : {}, ...logoAsset !== void 0 ? { logoAsset } : {} };
9604
+ if (!configTs.includes("splash")) return {};
9605
+ const file2 = parseConfigSource(configTs);
9606
+ const hit = findSplashLiteral(file2) ?? (isModuleSource(file2) ? void 0 : findSplashLiteral(parseConfigSource(`({
9607
+ ${configTs}
9608
+ })`)));
9609
+ if (!hit) return {};
9610
+ const fields2 = splashFields(hit.literal, hit.resolve);
9611
+ const str26 = (k3) => {
9612
+ const v2 = fields2.get(k3);
9613
+ return typeof v2 === "string" ? v2 : void 0;
9614
+ };
9615
+ const num6 = (k3) => {
9616
+ const v2 = fields2.get(k3);
9617
+ return typeof v2 === "number" ? v2 : void 0;
9618
+ };
9619
+ const backgroundColor = str26("backgroundColor");
9620
+ const logoAsset = str26("logoAsset");
9621
+ const appearance = str26("appearance");
9622
+ const logoShape = str26("logoShape");
9623
+ const logoWidth = num6("logoWidth");
9624
+ return {
9625
+ ...backgroundColor ? { backgroundColor } : {},
9626
+ ...logoAsset !== void 0 ? { logoAsset } : {},
9627
+ ...appearance ? { appearance } : {},
9628
+ ...logoWidth !== void 0 ? { logoWidth } : {},
9629
+ ...logoShape ? { logoShape } : {}
9630
+ };
9631
+ }
9632
+ function appearanceSplashColors(cfg) {
9633
+ switch (cfg.appearance) {
9634
+ case "system":
9635
+ return { light: "#FFFFFF", dark: "#000000" };
9636
+ case "light":
9637
+ return { light: "#FFFFFF", dark: "#FFFFFF" };
9638
+ case "dark":
9639
+ return { light: "#000000", dark: "#000000" };
9640
+ default:
9641
+ return void 0;
9642
+ }
9643
+ }
9644
+ function launchIconGeometry(cfg) {
9645
+ const diameter = cfg.logoWidth && cfg.logoWidth > 0 ? cfg.logoWidth : LOGO_WIDTH_DEFAULT;
9646
+ const xxxhdpi = 4;
9647
+ return {
9648
+ diameter,
9649
+ // Configs from before `logoShape` named the crop by its asset, as the runtime's logoIsCircle does.
9650
+ circle: cfg.logoShape === "circle" || cfg.logoAsset === "branded_lite_app_icon",
9651
+ // Whole pixels: a fractional `logoWidth` (a seeded app-config.json) would fail the render.
9652
+ ios: [1, 2, 3].map((scale) => ({ scale, px: Math.round(diameter * scale) })),
9653
+ android: { canvasPx: ANDROID_SPLASH_ICON_CANVAS_DP * xxxhdpi, diameterPx: Math.round(Math.min(diameter, ANDROID_SPLASH_ICON_MASK_DP) * xxxhdpi) }
9654
+ };
9655
+ }
9656
+ function iosLaunchIconContents() {
9657
+ return `${JSON.stringify({
9658
+ images: [1, 2, 3].map((n2) => ({ filename: `launch-icon@${n2}x.png`, idiom: "universal", scale: `${n2}x` })),
9659
+ info: { author: "xcode", version: 1 }
9660
+ }, null, 2)}
9661
+ `;
9474
9662
  }
9475
9663
  function nativeConfigInputTokens(configTs) {
9476
9664
  const declared = configTs ? parseSplashConfig(configTs).backgroundColor : void 0;
@@ -9488,6 +9676,8 @@ function normalizeHex(hex2, ctx) {
9488
9676
  return body.length === 3 ? `#${body[0]}${body[0]}${body[1]}${body[1]}${body[2]}${body[2]}` : `#${body}`;
9489
9677
  }
9490
9678
  function resolveSplashColors(app2, cfg = {}, tokensPathOverride) {
9679
+ const plain5 = appearanceSplashColors(cfg);
9680
+ if (plain5) return plain5;
9491
9681
  const token = cfg.backgroundColor ?? DEFAULT_BACKGROUND_TOKEN;
9492
9682
  const tokensPath = tokensPathOverride ?? join5(appDir(app2), "tokens.json");
9493
9683
  if (!existsSync4(tokensPath)) {
@@ -9560,8 +9750,12 @@ function androidSplashNightXml(colors) {
9560
9750
  ""
9561
9751
  ].join("\n");
9562
9752
  }
9563
- function renderSplashYaml(indent) {
9564
- return [`${indent}UILaunchScreen:`, `${indent} UIColorName: ${IOS_COLORSET_NAME}`];
9753
+ function renderSplashYaml(indent, imageName) {
9754
+ return [
9755
+ `${indent}UILaunchScreen:`,
9756
+ `${indent} UIColorName: ${IOS_COLORSET_NAME}`,
9757
+ ...imageName ? [`${indent} UIImageName: ${imageName}`] : []
9758
+ ];
9565
9759
  }
9566
9760
  function iosAssetCatalog(app2) {
9567
9761
  const iosDir = join5(appDir(app2), "ios");
@@ -9619,11 +9813,12 @@ function splashPlan(app2, configTs, manifestPath, hasIosMarkers) {
9619
9813
  ]
9620
9814
  };
9621
9815
  }
9622
- var LABEL_IOS_SPLASH, IOS_COLORSET_NAME, ANDROID_COLOR_RES, ANDROID_STYLE_NAME, ANDROID_SPLASH_FILE, ANDROID_SPLASH_PARENT, DEFAULT_BACKGROUND_TOKEN, GENERATED_XML_NOTE;
9816
+ var LABEL_IOS_SPLASH, IOS_COLORSET_NAME, ANDROID_COLOR_RES, ANDROID_STYLE_NAME, ANDROID_SPLASH_FILE, ANDROID_SPLASH_PARENT, DEFAULT_BACKGROUND_TOKEN, IOS_LAUNCH_ICON_NAME, ANDROID_LAUNCH_ICON_ART, LOGO_WIDTH_DEFAULT, ANDROID_SPLASH_ICON_CANVAS_DP, ANDROID_SPLASH_ICON_MASK_DP, GENERATED_XML_NOTE;
9623
9817
  var init_splash = __esm({
9624
9818
  "../native-config/splash.ts"() {
9625
9819
  init_define_HHP_CATALOG();
9626
9820
  init_paths();
9821
+ init_config_ast();
9627
9822
  LABEL_IOS_SPLASH = "himalaya:splash:info";
9628
9823
  IOS_COLORSET_NAME = "HimalayaLaunchBackground";
9629
9824
  ANDROID_COLOR_RES = "himalaya_splash_background";
@@ -9631,6 +9826,11 @@ var init_splash = __esm({
9631
9826
  ANDROID_SPLASH_FILE = "himalaya-splash.xml";
9632
9827
  ANDROID_SPLASH_PARENT = "@android:style/Theme.Material.Light.NoActionBar";
9633
9828
  DEFAULT_BACKGROUND_TOKEN = "accentPrimary";
9829
+ IOS_LAUNCH_ICON_NAME = "HimalayaLaunchIcon";
9830
+ ANDROID_LAUNCH_ICON_ART = "himalaya_launch_icon_art";
9831
+ LOGO_WIDTH_DEFAULT = 96;
9832
+ ANDROID_SPLASH_ICON_CANVAS_DP = 288;
9833
+ ANDROID_SPLASH_ICON_MASK_DP = 192;
9634
9834
  GENERATED_XML_NOTE = "<!-- GENERATED from config.ts `splash` + tokens.json by tools/native-config. Do not edit. -->";
9635
9835
  }
9636
9836
  });
@@ -11417,17 +11617,17 @@ var init_util = __esm({
11417
11617
 
11418
11618
  // ../html-to-t5/src/parse.ts
11419
11619
  import * as cheerio from "cheerio";
11420
- import ts from "typescript";
11620
+ import ts3 from "typescript";
11421
11621
  function isStaticInitializer(expr) {
11422
- if (ts.isStringLiteral(expr) || ts.isNumericLiteral(expr) || expr.kind === ts.SyntaxKind.TrueKeyword || expr.kind === ts.SyntaxKind.FalseKeyword || expr.kind === ts.SyntaxKind.NullKeyword || ts.isPrefixUnaryExpression(expr) && ts.isNumericLiteral(expr.operand)) {
11622
+ if (ts3.isStringLiteral(expr) || ts3.isNumericLiteral(expr) || expr.kind === ts3.SyntaxKind.TrueKeyword || expr.kind === ts3.SyntaxKind.FalseKeyword || expr.kind === ts3.SyntaxKind.NullKeyword || ts3.isPrefixUnaryExpression(expr) && ts3.isNumericLiteral(expr.operand)) {
11423
11623
  return true;
11424
11624
  }
11425
- if (ts.isObjectLiteralExpression(expr)) {
11625
+ if (ts3.isObjectLiteralExpression(expr)) {
11426
11626
  return expr.properties.every(
11427
- (p2) => ts.isPropertyAssignment(p2) && isStaticInitializer(p2.initializer)
11627
+ (p2) => ts3.isPropertyAssignment(p2) && isStaticInitializer(p2.initializer)
11428
11628
  );
11429
11629
  }
11430
- if (ts.isArrayLiteralExpression(expr)) {
11630
+ if (ts3.isArrayLiteralExpression(expr)) {
11431
11631
  return expr.elements.every((e2) => isStaticInitializer(e2));
11432
11632
  }
11433
11633
  return false;
@@ -11435,12 +11635,12 @@ function isStaticInitializer(expr) {
11435
11635
  function collectPaths(obj30, prefix, out2) {
11436
11636
  for (const p2 of obj30.properties) {
11437
11637
  let key4;
11438
- if (ts.isPropertyAssignment(p2)) key4 = propName(p2.name);
11439
- else if (ts.isShorthandPropertyAssignment(p2)) key4 = p2.name.text;
11638
+ if (ts3.isPropertyAssignment(p2)) key4 = propName2(p2.name);
11639
+ else if (ts3.isShorthandPropertyAssignment(p2)) key4 = p2.name.text;
11440
11640
  if (!key4) continue;
11441
11641
  const path2 = prefix ? `${prefix}.${key4}` : key4;
11442
11642
  out2.add(path2);
11443
- if (ts.isPropertyAssignment(p2) && ts.isObjectLiteralExpression(p2.initializer)) {
11643
+ if (ts3.isPropertyAssignment(p2) && ts3.isObjectLiteralExpression(p2.initializer)) {
11444
11644
  collectPaths(p2.initializer, path2, out2);
11445
11645
  }
11446
11646
  }
@@ -11460,7 +11660,7 @@ function analyzeService(source2, forbidden2) {
11460
11660
  const forbiddenSet = new Set(forbidden2);
11461
11661
  let sf2;
11462
11662
  try {
11463
- sf2 = ts.createSourceFile("service.ts", source2, ts.ScriptTarget.ES2020, true, ts.ScriptKind.TS);
11663
+ sf2 = ts3.createSourceFile("service.ts", source2, ts3.ScriptTarget.ES2020, true, ts3.ScriptKind.TS);
11464
11664
  } catch (e2) {
11465
11665
  info4.analysisErrors.push(`service block failed to parse: ${e2.message}`);
11466
11666
  return info4;
@@ -11468,53 +11668,53 @@ function analyzeService(source2, forbidden2) {
11468
11668
  const lineOfPos = (pos) => sf2.getLineAndCharacterOfPosition(pos).line + 1;
11469
11669
  const seenForbidden = /* @__PURE__ */ new Set();
11470
11670
  for (const stmt of sf2.statements) {
11471
- if (ts.isImportDeclaration(stmt) && ts.isStringLiteral(stmt.moduleSpecifier)) {
11671
+ if (ts3.isImportDeclaration(stmt) && ts3.isStringLiteral(stmt.moduleSpecifier)) {
11472
11672
  const mod = stmt.moduleSpecifier.text;
11473
11673
  const names2 = [];
11474
11674
  const ic = stmt.importClause;
11475
11675
  if (ic?.name) names2.push(ic.name.text);
11476
11676
  if (ic?.namedBindings) {
11477
- if (ts.isNamedImports(ic.namedBindings)) for (const el2 of ic.namedBindings.elements) names2.push(el2.name.text);
11478
- else if (ts.isNamespaceImport(ic.namedBindings)) names2.push(ic.namedBindings.name.text);
11677
+ if (ts3.isNamedImports(ic.namedBindings)) for (const el2 of ic.namedBindings.elements) names2.push(el2.name.text);
11678
+ else if (ts3.isNamespaceImport(ic.namedBindings)) names2.push(ic.namedBindings.name.text);
11479
11679
  }
11480
11680
  info4.imports.push({ module: mod, names: names2, line: lineOfPos(stmt.getStart(sf2)) });
11481
11681
  if (mod.startsWith("@himalaya/")) info4.usedModules.add(mod);
11482
11682
  }
11483
11683
  }
11484
11684
  const walk6 = (node4) => {
11485
- if (ts.isCallExpression(node4) && ts.isIdentifier(node4.expression) && node4.expression.text === "defineService") {
11685
+ if (ts3.isCallExpression(node4) && ts3.isIdentifier(node4.expression) && node4.expression.text === "defineService") {
11486
11686
  info4.hasDefineService = true;
11487
11687
  info4.defineServiceCount++;
11488
11688
  const [arg0, arg1] = node4.arguments;
11489
- if (arg0 && ts.isStringLiteral(arg0) && info4.serviceName === void 0) {
11689
+ if (arg0 && ts3.isStringLiteral(arg0) && info4.serviceName === void 0) {
11490
11690
  info4.serviceName = arg0.text;
11491
11691
  info4.serviceNameLine = lineOfPos(arg0.getStart(sf2));
11492
11692
  }
11493
- if (arg1 && ts.isObjectLiteralExpression(arg1)) {
11693
+ if (arg1 && ts3.isObjectLiteralExpression(arg1)) {
11494
11694
  for (const p2 of arg1.properties) {
11495
- if (!ts.isPropertyAssignment(p2)) continue;
11496
- const key4 = propName(p2.name);
11695
+ if (!ts3.isPropertyAssignment(p2)) continue;
11696
+ const key4 = propName2(p2.name);
11497
11697
  if (key4 === "state") {
11498
- if (ts.isObjectLiteralExpression(p2.initializer)) {
11698
+ if (ts3.isObjectLiteralExpression(p2.initializer)) {
11499
11699
  info4.stateIsLiteral = isStaticInitializer(p2.initializer);
11500
11700
  collectPaths(p2.initializer, "", info4.statePaths);
11501
11701
  } else {
11502
11702
  info4.stateIsLiteral = false;
11503
11703
  }
11504
- } else if (key4 === "actions" && ts.isObjectLiteralExpression(p2.initializer)) {
11704
+ } else if (key4 === "actions" && ts3.isObjectLiteralExpression(p2.initializer)) {
11505
11705
  for (const a3 of p2.initializer.properties) {
11506
- const n2 = a3.name ? propName(a3.name) : void 0;
11706
+ const n2 = a3.name ? propName2(a3.name) : void 0;
11507
11707
  if (n2) info4.actionNames.add(n2);
11508
11708
  }
11509
11709
  }
11510
11710
  }
11511
11711
  }
11512
11712
  }
11513
- if (ts.isIdentifier(node4) && forbiddenSet.has(node4.text)) {
11713
+ if (ts3.isIdentifier(node4) && forbiddenSet.has(node4.text)) {
11514
11714
  const parent = node4.parent;
11515
- const isMemberName = parent && ts.isPropertyAccessExpression(parent) && parent.name === node4;
11516
- const isPropKey = parent && (ts.isPropertyAssignment(parent) || ts.isShorthandPropertyAssignment(parent)) && parent.name === node4;
11517
- const isDeclName = parent && (ts.isVariableDeclaration(parent) || ts.isParameter(parent) || ts.isBindingElement(parent) || ts.isFunctionDeclaration(parent) || ts.isPropertySignature(parent)) && parent.name === node4;
11715
+ const isMemberName = parent && ts3.isPropertyAccessExpression(parent) && parent.name === node4;
11716
+ const isPropKey = parent && (ts3.isPropertyAssignment(parent) || ts3.isShorthandPropertyAssignment(parent)) && parent.name === node4;
11717
+ const isDeclName = parent && (ts3.isVariableDeclaration(parent) || ts3.isParameter(parent) || ts3.isBindingElement(parent) || ts3.isFunctionDeclaration(parent) || ts3.isPropertySignature(parent)) && parent.name === node4;
11518
11718
  if (!isMemberName && !isPropKey && !isDeclName) {
11519
11719
  const line = lineOfPos(node4.getStart(sf2));
11520
11720
  const dedup = `${node4.text}@${line}`;
@@ -11524,19 +11724,19 @@ function analyzeService(source2, forbidden2) {
11524
11724
  }
11525
11725
  }
11526
11726
  }
11527
- ts.forEachChild(node4, walk6);
11727
+ ts3.forEachChild(node4, walk6);
11528
11728
  };
11529
11729
  walk6(sf2);
11530
11730
  return info4;
11531
11731
  }
11532
- var propName;
11732
+ var propName2;
11533
11733
  var init_parse = __esm({
11534
11734
  "../html-to-t5/src/parse.ts"() {
11535
11735
  init_define_HHP_CATALOG();
11536
11736
  init_util();
11537
11737
  init_util();
11538
- propName = (n2) => {
11539
- if (ts.isIdentifier(n2) || ts.isStringLiteral(n2) || ts.isNumericLiteral(n2)) return n2.text;
11738
+ propName2 = (n2) => {
11739
+ if (ts3.isIdentifier(n2) || ts3.isStringLiteral(n2) || ts3.isNumericLiteral(n2)) return n2.text;
11540
11740
  return void 0;
11541
11741
  };
11542
11742
  }
@@ -11582,17 +11782,17 @@ var init_implications = __esm({
11582
11782
  });
11583
11783
 
11584
11784
  // ../html-to-t5/src/v2/controller.ts
11585
- import ts2 from "typescript";
11785
+ import ts4 from "typescript";
11586
11786
  function moduleCapabilities(source2, file2, profile) {
11587
- const sf2 = ts2.createSourceFile(file2, source2, ts2.ScriptTarget.Latest, true);
11787
+ const sf2 = ts4.createSourceFile(file2, source2, ts4.ScriptTarget.Latest, true);
11588
11788
  const required3 = /* @__PURE__ */ new Set();
11589
11789
  function walk6(n2) {
11590
- if ((ts2.isImportDeclaration(n2) || ts2.isExportDeclaration(n2)) && n2.moduleSpecifier && ts2.isStringLiteral(n2.moduleSpecifier)) {
11591
- const typeOnly = ts2.isImportDeclaration(n2) ? n2.importClause?.isTypeOnly || !n2.importClause?.name && n2.importClause?.namedBindings && ts2.isNamedImports(n2.importClause.namedBindings) && n2.importClause.namedBindings.elements.every((e2) => e2.isTypeOnly) : n2.isTypeOnly || n2.exportClause && ts2.isNamedExports(n2.exportClause) && n2.exportClause.elements.every((e2) => e2.isTypeOnly);
11790
+ if ((ts4.isImportDeclaration(n2) || ts4.isExportDeclaration(n2)) && n2.moduleSpecifier && ts4.isStringLiteral(n2.moduleSpecifier)) {
11791
+ const typeOnly = ts4.isImportDeclaration(n2) ? n2.importClause?.isTypeOnly || !n2.importClause?.name && n2.importClause?.namedBindings && ts4.isNamedImports(n2.importClause.namedBindings) && n2.importClause.namedBindings.elements.every((e2) => e2.isTypeOnly) : n2.isTypeOnly || n2.exportClause && ts4.isNamedExports(n2.exportClause) && n2.exportClause.elements.every((e2) => e2.isTypeOnly);
11592
11792
  if (!typeOnly) for (const cap2 of profile.imports[n2.moduleSpecifier.text]?.capabilities ?? []) required3.add(cap2);
11593
11793
  }
11594
- if (ts2.isCallExpression(n2) && ts2.isIdentifier(n2.expression) && n2.expression.text === "withStream") required3.add("stream");
11595
- ts2.forEachChild(n2, walk6);
11794
+ if (ts4.isCallExpression(n2) && ts4.isIdentifier(n2.expression) && n2.expression.text === "withStream") required3.add("stream");
11795
+ ts4.forEachChild(n2, walk6);
11596
11796
  }
11597
11797
  walk6(sf2);
11598
11798
  return [...required3].sort();
@@ -11608,13 +11808,13 @@ function inspectModule(source2, file2, profile, diagnostics) {
11608
11808
  else for (const cap2 of entry.capabilities.filter((c2) => requirements.includes(c2))) if (!grants(profile.declaredCapabilities, cap2))
11609
11809
  diagnostics.push({ code: "HHP-CAPABILITY-MISSING", severity: "error", file: file2, line: imp.line, column: 1, message: `${imp.module} requires declared capability ${cap2}.`, hint: `Declare ${cap2} in app configuration after checking its native prerequisites.` });
11610
11810
  }
11611
- const sf2 = ts2.createSourceFile(file2, source2, ts2.ScriptTarget.Latest, true);
11811
+ const sf2 = ts4.createSourceFile(file2, source2, ts4.ScriptTarget.Latest, true);
11612
11812
  function walk6(n2) {
11613
- if (ts2.isImportDeclaration(n2) && ts2.isStringLiteral(n2.moduleSpecifier)) {
11813
+ if (ts4.isImportDeclaration(n2) && ts4.isStringLiteral(n2.moduleSpecifier)) {
11614
11814
  const entry = profile.imports[n2.moduleSpecifier.text];
11615
11815
  if (entry) {
11616
11816
  const bindings = n2.importClause?.namedBindings;
11617
- const requested = bindings && ts2.isNamedImports(bindings) ? bindings.elements.map((e2) => (e2.propertyName ?? e2.name).text) : [];
11817
+ const requested = bindings && ts4.isNamedImports(bindings) ? bindings.elements.map((e2) => (e2.propertyName ?? e2.name).text) : [];
11618
11818
  if (n2.importClause?.name) requested.push("default");
11619
11819
  for (const name of requested) if (!entry.exports.includes(name)) {
11620
11820
  const pos = sf2.getLineAndCharacterOfPosition(n2.getStart(sf2));
@@ -11622,62 +11822,62 @@ function inspectModule(source2, file2, profile, diagnostics) {
11622
11822
  }
11623
11823
  }
11624
11824
  }
11625
- if (ts2.isCallExpression(n2) && ts2.isIdentifier(n2.expression) && n2.expression.text === "withStream" && !grants(profile.declaredCapabilities, "stream")) {
11825
+ if (ts4.isCallExpression(n2) && ts4.isIdentifier(n2.expression) && n2.expression.text === "withStream" && !grants(profile.declaredCapabilities, "stream")) {
11626
11826
  const pos = sf2.getLineAndCharacterOfPosition(n2.getStart(sf2));
11627
11827
  diagnostics.push({ code: "HHP-CAPABILITY-MISSING", severity: "error", file: file2, line: pos.line + 1, column: pos.character + 1, message: "withStream requires declared capability stream." });
11628
11828
  }
11629
- if ((ts2.isPropertyAccessExpression(n2) && forbidden.includes(n2.name.text) || ts2.isElementAccessExpression(n2) && ts2.isStringLiteral(n2.argumentExpression) && forbidden.includes(n2.argumentExpression.text)) && ts2.isIdentifier(n2.expression) && n2.expression.text === "globalThis") {
11829
+ if ((ts4.isPropertyAccessExpression(n2) && forbidden.includes(n2.name.text) || ts4.isElementAccessExpression(n2) && ts4.isStringLiteral(n2.argumentExpression) && forbidden.includes(n2.argumentExpression.text)) && ts4.isIdentifier(n2.expression) && n2.expression.text === "globalThis") {
11630
11830
  const pos = sf2.getLineAndCharacterOfPosition(n2.getStart(sf2));
11631
11831
  diagnostics.push({ code: "HHP-WORKER-GLOBAL", severity: "error", file: file2, line: pos.line + 1, column: pos.character + 1, message: `${n2.getText(sf2)} is unavailable in T5.`, hint: "Use an SDK call." });
11632
11832
  }
11633
- if (ts2.isExportDeclaration(n2) && n2.moduleSpecifier && ts2.isStringLiteral(n2.moduleSpecifier) && !n2.moduleSpecifier.text.startsWith(".")) {
11833
+ if (ts4.isExportDeclaration(n2) && n2.moduleSpecifier && ts4.isStringLiteral(n2.moduleSpecifier) && !n2.moduleSpecifier.text.startsWith(".")) {
11634
11834
  const entry = Object.hasOwn(profile.imports, n2.moduleSpecifier.text) ? profile.imports[n2.moduleSpecifier.text] : void 0;
11635
11835
  const pos = sf2.getLineAndCharacterOfPosition(n2.getStart(sf2));
11636
11836
  if (!entry) diagnostics.push({ code: "HHP-WORKER-IMPORT", severity: "error", file: file2, line: pos.line + 1, column: pos.character + 1, message: `Export ${n2.moduleSpecifier.text} is not worker-safe.` });
11637
11837
  else for (const capability of entry.capabilities.filter((c2) => requirements.includes(c2))) if (!grants(profile.declaredCapabilities, capability)) diagnostics.push({ code: "HHP-CAPABILITY-MISSING", severity: "error", file: file2, line: pos.line + 1, column: pos.character + 1, message: `Export requires ${capability}.` });
11638
11838
  }
11639
- if (ts2.isCallExpression(n2) && (n2.expression.kind === ts2.SyntaxKind.ImportKeyword || ts2.isIdentifier(n2.expression) && ["require", "eval"].includes(n2.expression.text))) {
11839
+ if (ts4.isCallExpression(n2) && (n2.expression.kind === ts4.SyntaxKind.ImportKeyword || ts4.isIdentifier(n2.expression) && ["require", "eval"].includes(n2.expression.text))) {
11640
11840
  const pos = sf2.getLineAndCharacterOfPosition(n2.getStart(sf2));
11641
11841
  diagnostics.push({ code: "HHP-WORKER-DYNAMIC-IMPORT", severity: "error", file: file2, line: pos.line + 1, column: pos.character + 1, message: "Use static imports in HHP workers." });
11642
11842
  }
11643
- ts2.forEachChild(n2, walk6);
11843
+ ts4.forEachChild(n2, walk6);
11644
11844
  }
11645
11845
  walk6(sf2);
11646
11846
  }
11647
11847
  function analyzeController(source2, file2, profile, diagnostics) {
11648
11848
  inspectModule(source2, file2, profile, diagnostics);
11649
- const sf2 = ts2.createSourceFile(file2, source2, ts2.ScriptTarget.Latest, true);
11849
+ const sf2 = ts4.createSourceFile(file2, source2, ts4.ScriptTarget.Latest, true);
11650
11850
  const error = (node4, message5) => {
11651
11851
  const p2 = sf2.getLineAndCharacterOfPosition(node4.getStart(sf2));
11652
11852
  diagnostics.push({ code: "HHP-CONTROLLER", severity: "error", file: file2, line: p2.line + 1, column: p2.character + 1, message: message5 });
11653
11853
  };
11654
- const declaration2 = sf2.statements.find((n2) => ts2.isExportAssignment(n2) && !n2.isExportEquals);
11655
- if (!declaration2 || !ts2.isCallExpression(declaration2.expression) || declaration2.expression.expression.getText(sf2) !== "defineController") {
11854
+ const declaration2 = sf2.statements.find((n2) => ts4.isExportAssignment(n2) && !n2.isExportEquals);
11855
+ if (!declaration2 || !ts4.isCallExpression(declaration2.expression) || declaration2.expression.expression.getText(sf2) !== "defineController") {
11656
11856
  error(declaration2 ?? sf2, "Default-export defineController({ initialState, handlers }).");
11657
11857
  return;
11658
11858
  }
11659
11859
  const object16 = declaration2.expression.arguments[0];
11660
- if (!object16 || !ts2.isObjectLiteralExpression(object16)) {
11860
+ if (!object16 || !ts4.isObjectLiteralExpression(object16)) {
11661
11861
  error(declaration2, "Controller definition must be an object literal.");
11662
11862
  return;
11663
11863
  }
11664
11864
  const props2 = new Map(object16.properties.map((p2) => [p2.name?.getText(sf2).replace(/^["']|["']$/g, ""), p2]));
11665
11865
  const state = props2.get("initialState"), handlers = props2.get("handlers");
11666
- if (!state || !ts2.isPropertyAssignment(state) || !handlers || !ts2.isPropertyAssignment(handlers) || !ts2.isObjectLiteralExpression(handlers.initializer)) {
11866
+ if (!state || !ts4.isPropertyAssignment(state) || !handlers || !ts4.isPropertyAssignment(handlers) || !ts4.isObjectLiteralExpression(handlers.initializer)) {
11667
11867
  error(object16, "initialState and handlers must be object literals.");
11668
11868
  return;
11669
11869
  }
11670
11870
  function literal5(n2) {
11671
- if (ts2.isAsExpression(n2) || ts2.isSatisfiesExpression(n2) || ts2.isParenthesizedExpression(n2)) return literal5(n2.expression);
11672
- if (ts2.isStringLiteral(n2) || ts2.isNoSubstitutionTemplateLiteral(n2)) return n2.text;
11673
- if (ts2.isNumericLiteral(n2)) return Number(n2.text);
11674
- if (n2.kind === ts2.SyntaxKind.TrueKeyword) return true;
11675
- if (n2.kind === ts2.SyntaxKind.FalseKeyword) return false;
11676
- if (n2.kind === ts2.SyntaxKind.NullKeyword) return null;
11677
- if (ts2.isPrefixUnaryExpression(n2) && n2.operator === ts2.SyntaxKind.MinusToken && ts2.isNumericLiteral(n2.operand)) return -Number(n2.operand.text);
11678
- if (ts2.isArrayLiteralExpression(n2)) return n2.elements.map((e2) => literal5(e2));
11679
- if (ts2.isObjectLiteralExpression(n2)) return Object.fromEntries(n2.properties.map((p2) => {
11680
- if (!ts2.isPropertyAssignment(p2) || ts2.isComputedPropertyName(p2.name)) throw new Error("State must contain JSON literals; no spreads, calls, or computed keys.");
11871
+ if (ts4.isAsExpression(n2) || ts4.isSatisfiesExpression(n2) || ts4.isParenthesizedExpression(n2)) return literal5(n2.expression);
11872
+ if (ts4.isStringLiteral(n2) || ts4.isNoSubstitutionTemplateLiteral(n2)) return n2.text;
11873
+ if (ts4.isNumericLiteral(n2)) return Number(n2.text);
11874
+ if (n2.kind === ts4.SyntaxKind.TrueKeyword) return true;
11875
+ if (n2.kind === ts4.SyntaxKind.FalseKeyword) return false;
11876
+ if (n2.kind === ts4.SyntaxKind.NullKeyword) return null;
11877
+ if (ts4.isPrefixUnaryExpression(n2) && n2.operator === ts4.SyntaxKind.MinusToken && ts4.isNumericLiteral(n2.operand)) return -Number(n2.operand.text);
11878
+ if (ts4.isArrayLiteralExpression(n2)) return n2.elements.map((e2) => literal5(e2));
11879
+ if (ts4.isObjectLiteralExpression(n2)) return Object.fromEntries(n2.properties.map((p2) => {
11880
+ if (!ts4.isPropertyAssignment(p2) || ts4.isComputedPropertyName(p2.name)) throw new Error("State must contain JSON literals; no spreads, calls, or computed keys.");
11681
11881
  const key4 = p2.name.getText(sf2).replace(/^["']|["']$/g, "");
11682
11882
  if (unsafe.has(key4) || key4.startsWith("__hhp")) throw new Error(`Unsafe or reserved state key ${key4}.`);
11683
11883
  return [key4, literal5(p2.initializer)];
@@ -11698,7 +11898,7 @@ function analyzeController(source2, file2, profile, diagnostics) {
11698
11898
  collect2(initial);
11699
11899
  const names2 = /* @__PURE__ */ new Set();
11700
11900
  for (const handler of handlers.initializer.properties) {
11701
- if (!handler.name || ts2.isComputedPropertyName(handler.name) || ts2.isSpreadAssignment(handler)) {
11901
+ if (!handler.name || ts4.isComputedPropertyName(handler.name) || ts4.isSpreadAssignment(handler)) {
11702
11902
  error(handler, "Handlers need static names.");
11703
11903
  continue;
11704
11904
  }
@@ -11714,19 +11914,19 @@ function analyzeController(source2, file2, profile, diagnostics) {
11714
11914
  }
11715
11915
  function analyzeDirectService(source2, file2, profile, diagnostics) {
11716
11916
  inspectModule(source2, file2, profile, diagnostics);
11717
- const sf2 = ts2.createSourceFile(file2, source2, ts2.ScriptTarget.Latest, true);
11917
+ const sf2 = ts4.createSourceFile(file2, source2, ts4.ScriptTarget.Latest, true);
11718
11918
  const calls = [];
11719
11919
  function walk6(node4) {
11720
- if (ts2.isCallExpression(node4) && ts2.isIdentifier(node4.expression) && node4.expression.text === "defineService") calls.push(node4);
11721
- ts2.forEachChild(node4, walk6);
11920
+ if (ts4.isCallExpression(node4) && ts4.isIdentifier(node4.expression) && node4.expression.text === "defineService") calls.push(node4);
11921
+ ts4.forEachChild(node4, walk6);
11722
11922
  }
11723
11923
  walk6(sf2);
11724
11924
  const call = calls[0], name = call?.arguments[0], definition = call?.arguments[1];
11725
- if (calls.length !== 1 || !name || !ts2.isStringLiteral(name) || !definition || !ts2.isObjectLiteralExpression(definition)) {
11925
+ if (calls.length !== 1 || !name || !ts4.isStringLiteral(name) || !definition || !ts4.isObjectLiteralExpression(definition)) {
11726
11926
  diagnostics.push({ code: "HHP-SERVICE", severity: "error", file: file2, line: 1, column: 1, message: "Use exactly one defineService with a literal name and state/actions object." });
11727
11927
  return;
11728
11928
  }
11729
- const properties = new Map(definition.properties.filter(ts2.isPropertyAssignment).map((p2) => [p2.name.getText(sf2), p2.initializer]));
11929
+ const properties = new Map(definition.properties.filter(ts4.isPropertyAssignment).map((p2) => [p2.name.getText(sf2), p2.initializer]));
11730
11930
  const state = properties.get("state"), actions = properties.get("actions");
11731
11931
  if (!state || !actions) {
11732
11932
  diagnostics.push({ code: "HHP-SERVICE", severity: "error", file: file2, line: 1, column: 1, message: "Service needs literal state and actions." });
@@ -15764,8 +15964,8 @@ function tsExtResolvePlugin() {
15764
15964
  setup(b3) {
15765
15965
  b3.onResolve({ filter: /\.js$/ }, (args) => {
15766
15966
  if (args.kind === "entry-point" || !args.path.startsWith(".")) return void 0;
15767
- const ts44 = resolve11(args.resolveDir, args.path.replace(/\.js$/, ".ts"));
15768
- return existsSync13(ts44) ? { path: ts44 } : void 0;
15967
+ const ts46 = resolve11(args.resolveDir, args.path.replace(/\.js$/, ".ts"));
15968
+ return existsSync13(ts46) ? { path: ts46 } : void 0;
15769
15969
  });
15770
15970
  }
15771
15971
  };
@@ -16561,7 +16761,7 @@ function bundleFor(file2) {
16561
16761
  const match = /^tier5-src\/([^/]+)\//.exec(file2);
16562
16762
  return match?.[1] ?? "_shared";
16563
16763
  }
16564
- function toIssue(ts44, contentDir2, diagnostic) {
16764
+ function toIssue(ts46, contentDir2, diagnostic) {
16565
16765
  const file2 = diagnostic.file ? relativeFile(contentDir2, diagnostic.file.fileName) : void 0;
16566
16766
  const position = diagnostic.file && diagnostic.start !== void 0 ? diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start) : void 0;
16567
16767
  return {
@@ -16569,13 +16769,13 @@ function toIssue(ts44, contentDir2, diagnostic) {
16569
16769
  ...file2 ? { file: file2 } : {},
16570
16770
  ...position ? { line: position.line + 1, column: position.character + 1 } : {},
16571
16771
  code: `TS${diagnostic.code}`,
16572
- message: ts44.flattenDiagnosticMessageText(diagnostic.messageText, "\n")
16772
+ message: ts46.flattenDiagnosticMessageText(diagnostic.messageText, "\n")
16573
16773
  };
16574
16774
  }
16575
- function confinedHost(ts44, contentDir2, options2) {
16775
+ function confinedHost(ts46, contentDir2, options2) {
16576
16776
  if (!buildConfinementRequired()) return void 0;
16577
- const host = ts44.createCompilerHost(options2);
16578
- const libDir = resolve13(ts44.getDefaultLibFilePath(options2), "..");
16777
+ const host = ts46.createCompilerHost(options2);
16778
+ const libDir = resolve13(ts46.getDefaultLibFilePath(options2), "..");
16579
16779
  const allows = confinementMatcher(contentDir2, [libDir]);
16580
16780
  const getSourceFile = host.getSourceFile.bind(host);
16581
16781
  const readFile26 = host.readFile.bind(host);
@@ -16687,13 +16887,13 @@ function recordingHost(base2, spellings) {
16687
16887
  }
16688
16888
  return { host, answers: () => h2.digest("hex") };
16689
16889
  }
16690
- function programKey(ts44, spellings, rootNames, options2, answers2) {
16890
+ function programKey(ts46, spellings, rootNames, options2, answers2) {
16691
16891
  const opts = JSON.stringify(options2, (_key, value2) => typeof value2 === "string" ? tokenized(spellings, value2) : value2);
16692
- return digest(["tier5-typecheck-v1", ts44.version, opts, ...rootNames.map((name) => tokenized(spellings, name)), answers2()].join("\n"));
16892
+ return digest(["tier5-typecheck-v1", ts46.version, opts, ...rootNames.map((name) => tokenized(spellings, name)), answers2()].join("\n"));
16693
16893
  }
16694
16894
  async function typecheckContentWorkers(contentDir2, options2) {
16695
16895
  if (!existsSync14(resolve13(contentDir2, "tier5-src"))) return [];
16696
- const ts44 = await compiler2();
16896
+ const ts46 = await compiler2();
16697
16897
  const config = {
16698
16898
  compilerOptions: {
16699
16899
  ...CONTENT_WORKER_COMPILER_OPTIONS,
@@ -16703,29 +16903,29 @@ async function typecheckContentWorkers(contentDir2, options2) {
16703
16903
  // The deployed authoring runtime stages TypeScript 6, which requires an explicit
16704
16904
  // acknowledgement for this compatibility `baseUrl`; the repository's TypeScript 5 lane
16705
16905
  // rejects that 6.0 value, so keep it specific to the compiler that needs it.
16706
- ...Number.parseInt(ts44.versionMajorMinor, 10) >= 6 ? { ignoreDeprecations: "6.0" } : {}
16906
+ ...Number.parseInt(ts46.versionMajorMinor, 10) >= 6 ? { ignoreDeprecations: "6.0" } : {}
16707
16907
  },
16708
16908
  include: ["tier5-src/*/index.ts", "tier5-src/_shared/**/*.ts"]
16709
16909
  };
16710
- const parsed = ts44.parseJsonConfigFileContent(config, ts44.sys, contentDir2);
16910
+ const parsed = ts46.parseJsonConfigFileContent(config, ts46.sys, contentDir2);
16711
16911
  if (parsed.fileNames.length === 0) return [];
16712
- const contentIssues = (diagnostics) => diagnostics.filter((diagnostic) => diagnostic.category === ts44.DiagnosticCategory.Error && belongsToContentWorkers(contentDir2, diagnostic)).map((diagnostic) => toIssue(ts44, contentDir2, diagnostic));
16713
- const host = confinedHost(ts44, contentDir2, parsed.options) ?? ts44.createCompilerHost(parsed.options);
16912
+ const contentIssues = (diagnostics) => diagnostics.filter((diagnostic) => diagnostic.category === ts46.DiagnosticCategory.Error && belongsToContentWorkers(contentDir2, diagnostic)).map((diagnostic) => toIssue(ts46, contentDir2, diagnostic));
16913
+ const host = confinedHost(ts46, contentDir2, parsed.options) ?? ts46.createCompilerHost(parsed.options);
16714
16914
  const spellings = contentDirSpellings(contentDir2);
16715
16915
  const recorder = recordingHost(host, spellings);
16716
- const program = ts44.createProgram({
16916
+ const program = ts46.createProgram({
16717
16917
  rootNames: parsed.fileNames,
16718
16918
  options: parsed.options,
16719
16919
  host: recorder.host
16720
16920
  });
16721
- const key4 = programKey(ts44, spellings, parsed.fileNames, parsed.options, recorder.answers);
16921
+ const key4 = programKey(ts46, spellings, parsed.fileNames, parsed.options, recorder.answers);
16722
16922
  let checked = checkedPrograms.get(key4);
16723
16923
  if (checked) {
16724
16924
  checkedPrograms.delete(key4);
16725
16925
  checkedPrograms.set(key4, checked);
16726
16926
  } else {
16727
16927
  checkerRuns++;
16728
- checked = contentIssues(ts44.getPreEmitDiagnostics(program)).map((issue3) => ({ ...issue3, message: tokenized(spellings, issue3.message) }));
16928
+ checked = contentIssues(ts46.getPreEmitDiagnostics(program)).map((issue3) => ({ ...issue3, message: tokenized(spellings, issue3.message) }));
16729
16929
  checkedPrograms.set(key4, checked);
16730
16930
  if (checkedPrograms.size > CHECKED_PROGRAMS_MAX) checkedPrograms.delete(checkedPrograms.keys().next().value);
16731
16931
  }
@@ -23451,24 +23651,25 @@ function descriptorFloor(doc, opts = {}) {
23451
23651
  const floor2 = uses.reduce((max, u2) => compareVocabularyVersions(u2.since, max) > 0 ? u2.since : max, table.baseline);
23452
23652
  return { floor: floor2, uses };
23453
23653
  }
23454
- var V, VOCABULARY_FLOOR, ICON_KEYS, normIcon, SEE_THROUGH, colourKey, SCALAR_CASE, isNode3;
23654
+ var V, V13, VOCABULARY_FLOOR, ICON_KEYS, normIcon, SEE_THROUGH, colourKey, SCALAR_CASE, isNode3;
23455
23655
  var init_vocabulary_floor = __esm({
23456
23656
  "../../core/ts/src/vocabulary-floor.ts"() {
23457
23657
  init_define_HHP_CATALOG();
23458
23658
  V = "1.12.0";
23659
+ V13 = "1.13.0";
23459
23660
  VOCABULARY_FLOOR = {
23460
- current: V,
23661
+ current: V13,
23461
23662
  baseline: "1.11.0",
23462
23663
  fields: [
23463
23664
  { field: "Component.chromeOutlet", since: V, paths: ["type:ChromeOutlet"] },
23464
23665
  { field: "Modifiers.minHeight", since: V, paths: ["modifiers:minHeight"] },
23465
23666
  { field: "Modifiers.fillMaxHeight", since: V, paths: ["modifiers:fillMaxHeight"] },
23466
23667
  { field: "Modifiers.paintPath", since: V, paths: ["modifiers:paintPath"] },
23467
- { field: "Modifiers.topBand", since: V, paths: ["modifiers:topBand"] },
23468
- { field: "Modifiers.focusWithinBorder", since: V, paths: ["modifiers:focusWithinBorder"] },
23668
+ { field: "Modifiers.topBand", since: V13, paths: ["modifiers:topBand"] },
23669
+ { field: "Modifiers.focusWithinBorder", since: V13, paths: ["modifiers:focusWithinBorder"] },
23469
23670
  { field: "Border.inset", since: V, paths: ["FormField:text.focusedBorder.inset", "TextField:focusedBorder.inset", "modifiers:border.inset", "modifiers:focusWithinBorder.inset"] },
23470
- { field: "TabsProps.labelStyle", since: V, paths: ["Tabs:labelStyle"] },
23471
- { field: "TabsProps.selectedLabelStyle", since: V, paths: ["Tabs:selectedLabelStyle"] },
23671
+ { field: "TabsProps.labelStyle", since: V13, paths: ["Tabs:labelStyle"] },
23672
+ { field: "TabsProps.selectedLabelStyle", since: V13, paths: ["Tabs:selectedLabelStyle"] },
23472
23673
  { field: "Border.edges", since: V, paths: ["FormField:text.focusedBorder.edges", "TextField:focusedBorder.edges", "modifiers:border.edges", "modifiers:focusWithinBorder.edges"] },
23473
23674
  { field: "TypographyOverride.lineBox", since: V, paths: ["modifiers:theme.typography.*.lineBox"] },
23474
23675
  { field: "NavigationConfig.topBarContent", since: V, paths: ["navigation:topBarContent"] },
@@ -23477,22 +23678,28 @@ var init_vocabulary_floor = __esm({
23477
23678
  { field: "DrawerConfig.content", since: V, paths: ["navigation:drawer.content"] },
23478
23679
  { field: "TopBarConfig.content", since: V, paths: ["navigation:topBarDefault.content", "screen:topBar.content"] },
23479
23680
  { field: "TopBarConfig.accessory", since: V, paths: ["navigation:topBarDefault.accessory", "screen:topBar.accessory"] },
23480
- { field: "NavTabItem.reselectScrollDisabled", since: V, paths: ["navigation:sidebar.items.reselectScrollDisabled", "navigation:tabBar.items.reselectScrollDisabled"] },
23681
+ { field: "NavTabItem.reselectScrollDisabled", since: V13, paths: ["navigation:sidebar.items.reselectScrollDisabled", "navigation:tabBar.items.reselectScrollDisabled"] },
23481
23682
  { field: "PushRoute.passQuery", since: V, paths: ["navigation:push.routes.passQuery"] },
23482
23683
  { field: "SplashConfig.exitTransition", since: V, paths: ["navigation:splash.exitTransition"] },
23483
- { field: "SplashConfig.statusBarStyle", since: V, paths: ["navigation:splash.statusBarStyle"] },
23684
+ { field: "SplashConfig.statusBarStyle", since: V13, paths: ["navigation:splash.statusBarStyle"] },
23685
+ { field: "SplashConfig.appearance", since: V13, paths: ["navigation:splash.appearance"] },
23686
+ { field: "SplashConfig.logoShape", since: V13, paths: ["navigation:splash.logoShape"] },
23687
+ { field: "SplashConfig.extended", since: V13, paths: ["navigation:splash.extended"] },
23484
23688
  { field: "HStackProps.alignBaseline", since: V, paths: ["HStack:alignBaseline"] },
23485
23689
  { field: "HStackProps.wrap", since: V, paths: ["HStack:wrap"] },
23486
23690
  { field: "HStackProps.lineSpacing", since: V, paths: ["HStack:lineSpacing"] },
23487
23691
  { field: "ZStackProps.verticalAlignment", since: V, paths: ["ZStack:verticalAlignment"] },
23488
23692
  { field: "GridProps.minColumnWidth", since: V, paths: ["Grid:minColumnWidth"] },
23489
- { field: "GridProps.rowSpacing", since: V, paths: ["Grid:rowSpacing"] },
23693
+ { field: "GridProps.rowSpacing", since: V13, paths: ["Grid:rowSpacing"] },
23490
23694
  { field: "ButtonProps.minWidth", since: V, paths: ["Button:minWidth"] },
23491
- { field: "ButtonProps.horizontalPadding", since: V, paths: ["Button:horizontalPadding"] },
23695
+ { field: "ButtonProps.horizontalPadding", since: V13, paths: ["Button:horizontalPadding"] },
23492
23696
  { field: "ToggleProps.fullWidth", since: V, paths: ["FormField:toggle.fullWidth", "Toggle:fullWidth"] },
23493
- { field: "PageControlProps.style", since: V, paths: ["PageControl:style"] }
23697
+ { field: "PageControlProps.style", since: V13, paths: ["PageControl:style"] }
23698
+ ],
23699
+ values: [
23700
+ { path: "Text:textDirection", equals: "autoInRtl", since: V },
23701
+ { path: "navigation:splash.readySignal", equals: "first_screen", since: V13 }
23494
23702
  ],
23495
- values: [{ path: "Text:textDirection", equals: "autoInRtl", since: V }],
23496
23703
  icons: { arrow_outward: V, circle_half: V, trending_down: V, trending_up: V },
23497
23704
  rules: [
23498
23705
  { id: "fragmentSlotScalarCase", since: V, what: "a FragmentSlot whose case ids are a boolean's or a number's text, picked by a bound boolean or number" },
@@ -31797,22 +32004,22 @@ var init_pixels = __esm({
31797
32004
  });
31798
32005
 
31799
32006
  // ../../core/dev-server/src/declared-navigation-ast.ts
31800
- function fixedNavigations(bundleJs, ts44) {
31801
- literalTargets(bundleJs, ts44);
32007
+ function fixedNavigations(bundleJs, ts46) {
32008
+ literalTargets(bundleJs, ts46);
31802
32009
  return fixedCache.get(bundleJs) ?? /* @__PURE__ */ new Map();
31803
32010
  }
31804
- function literalTargets(bundleJs, ts44) {
31805
- const name = (n2) => n2 && (ts44.isIdentifier(n2) || ts44.isStringLiteral(n2) || ts44.isNoSubstitutionTemplateLiteral(n2)) ? n2.text : void 0;
32011
+ function literalTargets(bundleJs, ts46) {
32012
+ const name = (n2) => n2 && (ts46.isIdentifier(n2) || ts46.isStringLiteral(n2) || ts46.isNoSubstitutionTemplateLiteral(n2)) ? n2.text : void 0;
31806
32013
  const object16 = (n2) => {
31807
- while (n2 && ts44.isParenthesizedExpression(n2)) n2 = n2.expression;
31808
- return n2 && ts44.isObjectLiteralExpression(n2) ? n2 : void 0;
32014
+ while (n2 && ts46.isParenthesizedExpression(n2)) n2 = n2.expression;
32015
+ return n2 && ts46.isObjectLiteralExpression(n2) ? n2 : void 0;
31809
32016
  };
31810
32017
  const property3 = (o2, key4) => o2?.properties.find((p2) => name(p2.name) === key4);
31811
- const initializer = (p2) => p2 && ts44.isPropertyAssignment(p2) ? p2.initializer : void 0;
31812
- const callable = (n2) => !!n2 && (ts44.isArrowFunction(n2) || ts44.isFunctionExpression(n2) || ts44.isFunctionDeclaration(n2) || ts44.isMethodDeclaration(n2));
32018
+ const initializer = (p2) => p2 && ts46.isPropertyAssignment(p2) ? p2.initializer : void 0;
32019
+ const callable = (n2) => !!n2 && (ts46.isArrowFunction(n2) || ts46.isFunctionExpression(n2) || ts46.isFunctionDeclaration(n2) || ts46.isMethodDeclaration(n2));
31813
32020
  const cached3 = cache.get(bundleJs);
31814
32021
  if (cached3) return cached3;
31815
- const file2 = ts44.createSourceFile("himi-bundle.js", bundleJs, ts44.ScriptTarget.Latest, true, ts44.ScriptKind.JS);
32022
+ const file2 = ts46.createSourceFile("himi-bundle.js", bundleJs, ts46.ScriptTarget.Latest, true, ts46.ScriptKind.JS);
31816
32023
  const symbols = /* @__PURE__ */ new Map();
31817
32024
  const note = (key4, fn2) => {
31818
32025
  if (!key4) return;
@@ -31820,16 +32027,16 @@ function literalTargets(bundleJs, ts44) {
31820
32027
  symbols.set(key4, { count: (prior?.count ?? 0) + 1, fn: fn2 });
31821
32028
  };
31822
32029
  const declarations = (node4) => {
31823
- if (ts44.isFunctionDeclaration(node4)) note(name(node4.name), node4);
31824
- else if (ts44.isVariableDeclaration(node4)) note(name(node4.name), callable(node4.initializer) ? node4.initializer : void 0);
31825
- else if (ts44.isParameter(node4)) note(name(node4.name));
31826
- else if (ts44.isBindingElement(node4)) note(name(node4.name));
31827
- ts44.forEachChild(node4, declarations);
32030
+ if (ts46.isFunctionDeclaration(node4)) note(name(node4.name), node4);
32031
+ else if (ts46.isVariableDeclaration(node4)) note(name(node4.name), callable(node4.initializer) ? node4.initializer : void 0);
32032
+ else if (ts46.isParameter(node4)) note(name(node4.name));
32033
+ else if (ts46.isBindingElement(node4)) note(name(node4.name));
32034
+ ts46.forEachChild(node4, declarations);
31828
32035
  };
31829
32036
  declarations(file2);
31830
32037
  const resolve141 = (node4) => {
31831
32038
  if (callable(node4)) return node4;
31832
- if (node4 && ts44.isIdentifier(node4)) {
32039
+ if (node4 && ts46.isIdentifier(node4)) {
31833
32040
  const symbol = symbols.get(node4.text);
31834
32041
  if (symbol?.count === 1) return symbol.fn;
31835
32042
  }
@@ -31843,9 +32050,9 @@ function literalTargets(bundleJs, ts44) {
31843
32050
  const nav = {};
31844
32051
  for (const p2 of o2.properties) {
31845
32052
  const key4 = name(p2.name);
31846
- if (!ts44.isPropertyAssignment(p2) || !key4 || !NAV_KEYS.has(key4)) return void 0;
31847
- if (ts44.isStringLiteralLike(p2.initializer) && p2.initializer.text) nav[key4] = p2.initializer.text;
31848
- else if (key4 === "reset" && p2.initializer.kind === ts44.SyntaxKind.TrueKeyword) nav[key4] = true;
32053
+ if (!ts46.isPropertyAssignment(p2) || !key4 || !NAV_KEYS.has(key4)) return void 0;
32054
+ if (ts46.isStringLiteralLike(p2.initializer) && p2.initializer.text) nav[key4] = p2.initializer.text;
32055
+ else if (key4 === "reset" && p2.initializer.kind === ts46.SyntaxKind.TrueKeyword) nav[key4] = true;
31849
32056
  else return void 0;
31850
32057
  }
31851
32058
  const { screenId, presentation, tab, reset } = nav;
@@ -31856,75 +32063,75 @@ function literalTargets(bundleJs, ts44) {
31856
32063
  };
31857
32064
  const assigned = /* @__PURE__ */ new Set();
31858
32065
  const assignedNames = (n2) => {
31859
- if (ts44.isIdentifier(n2)) assigned.add(n2.text);
31860
- else ts44.forEachChild(n2, assignedNames);
32066
+ if (ts46.isIdentifier(n2)) assigned.add(n2.text);
32067
+ else ts46.forEachChild(n2, assignedNames);
31861
32068
  };
31862
32069
  const assignments = (n2) => {
31863
- if (ts44.isBinaryExpression(n2) && n2.operatorToken.kind >= ts44.SyntaxKind.FirstAssignment && n2.operatorToken.kind <= ts44.SyntaxKind.LastAssignment) assignedNames(n2.left);
31864
- else if ((ts44.isPrefixUnaryExpression(n2) || ts44.isPostfixUnaryExpression(n2)) && (n2.operator === ts44.SyntaxKind.PlusPlusToken || n2.operator === ts44.SyntaxKind.MinusMinusToken)) assignedNames(n2.operand);
31865
- else if ((ts44.isForOfStatement(n2) || ts44.isForInStatement(n2)) && !ts44.isVariableDeclarationList(n2.initializer)) assignedNames(n2.initializer);
31866
- ts44.forEachChild(n2, assignments);
32070
+ if (ts46.isBinaryExpression(n2) && n2.operatorToken.kind >= ts46.SyntaxKind.FirstAssignment && n2.operatorToken.kind <= ts46.SyntaxKind.LastAssignment) assignedNames(n2.left);
32071
+ else if ((ts46.isPrefixUnaryExpression(n2) || ts46.isPostfixUnaryExpression(n2)) && (n2.operator === ts46.SyntaxKind.PlusPlusToken || n2.operator === ts46.SyntaxKind.MinusMinusToken)) assignedNames(n2.operand);
32072
+ else if ((ts46.isForOfStatement(n2) || ts46.isForInStatement(n2)) && !ts46.isVariableDeclarationList(n2.initializer)) assignedNames(n2.initializer);
32073
+ ts46.forEachChild(n2, assignments);
31867
32074
  };
31868
32075
  assignments(file2);
31869
32076
  const plain5 = (fn2) => {
31870
- const modifiers = ts44.canHaveModifiers(fn2) ? ts44.getModifiers(fn2) ?? [] : [];
31871
- return !fn2.asteriskToken && !modifiers.some((m2) => m2.kind === ts44.SyntaxKind.AsyncKeyword);
32077
+ const modifiers = ts46.canHaveModifiers(fn2) ? ts46.getModifiers(fn2) ?? [] : [];
32078
+ return !fn2.asteriskToken && !modifiers.some((m2) => m2.kind === ts46.SyntaxKind.AsyncKeyword);
31872
32079
  };
31873
32080
  const plainParams = (fn2) => {
31874
32081
  const names2 = /* @__PURE__ */ new Set();
31875
32082
  for (const p2 of fn2.parameters) {
31876
- if (!ts44.isIdentifier(p2.name) || p2.initializer || p2.dotDotDotToken) return void 0;
32083
+ if (!ts46.isIdentifier(p2.name) || p2.initializer || p2.dotDotDotToken) return void 0;
31877
32084
  names2.add(p2.name.text);
31878
32085
  }
31879
32086
  return names2;
31880
32087
  };
31881
32088
  const provenSafe = (expr, params) => {
31882
- while (ts44.isParenthesizedExpression(expr)) expr = expr.expression;
31883
- if (ts44.isStringLiteral(expr) || ts44.isNoSubstitutionTemplateLiteral(expr) || ts44.isNumericLiteral(expr)) return true;
31884
- if (expr.kind === ts44.SyntaxKind.TrueKeyword || expr.kind === ts44.SyntaxKind.FalseKeyword || expr.kind === ts44.SyntaxKind.NullKeyword) return true;
31885
- if (ts44.isIdentifier(expr)) return params.has(expr.text);
31886
- if (ts44.isArrayLiteralExpression(expr)) {
31887
- return expr.elements.every((e2) => !ts44.isSpreadElement(e2) && !ts44.isOmittedExpression(e2) && provenSafe(e2, params));
31888
- }
31889
- if (ts44.isObjectLiteralExpression(expr)) return expr.properties.every((p2) => safeProperty(p2, params));
32089
+ while (ts46.isParenthesizedExpression(expr)) expr = expr.expression;
32090
+ if (ts46.isStringLiteral(expr) || ts46.isNoSubstitutionTemplateLiteral(expr) || ts46.isNumericLiteral(expr)) return true;
32091
+ if (expr.kind === ts46.SyntaxKind.TrueKeyword || expr.kind === ts46.SyntaxKind.FalseKeyword || expr.kind === ts46.SyntaxKind.NullKeyword) return true;
32092
+ if (ts46.isIdentifier(expr)) return params.has(expr.text);
32093
+ if (ts46.isArrayLiteralExpression(expr)) {
32094
+ return expr.elements.every((e2) => !ts46.isSpreadElement(e2) && !ts46.isOmittedExpression(e2) && provenSafe(e2, params));
32095
+ }
32096
+ if (ts46.isObjectLiteralExpression(expr)) return expr.properties.every((p2) => safeProperty(p2, params));
31890
32097
  return false;
31891
32098
  };
31892
32099
  const safeProperty = (p2, params) => {
31893
- if (ts44.isSpreadAssignment(p2)) return provenSafe(p2.expression, params);
31894
- if (ts44.isPropertyAssignment(p2)) return !ts44.isComputedPropertyName(p2.name) && provenSafe(p2.initializer, params);
31895
- if (ts44.isShorthandPropertyAssignment(p2)) return params.has(p2.name.text) && !p2.objectAssignmentInitializer;
32100
+ if (ts46.isSpreadAssignment(p2)) return provenSafe(p2.expression, params);
32101
+ if (ts46.isPropertyAssignment(p2)) return !ts46.isComputedPropertyName(p2.name) && provenSafe(p2.initializer, params);
32102
+ if (ts46.isShorthandPropertyAssignment(p2)) return params.has(p2.name.text) && !p2.objectAssignmentInitializer;
31896
32103
  return false;
31897
32104
  };
31898
32105
  const isNavigateHelper = (callee) => {
31899
- if (!ts44.isIdentifier(callee) || !/^navigate[0-9]*$/.test(callee.text) || assigned.has(callee.text)) return false;
32106
+ if (!ts46.isIdentifier(callee) || !/^navigate[0-9]*$/.test(callee.text) || assigned.has(callee.text)) return false;
31900
32107
  const symbol = symbols.get(callee.text);
31901
32108
  const helper = symbol?.count === 1 ? symbol.fn : void 0;
31902
32109
  if (!helper?.body || !plain5(helper) || helper.parameters.length !== 2 || !plainParams(helper)) return false;
31903
32110
  const [stateParam, navParam] = helper.parameters.map((p2) => name(p2.name));
31904
- const body = ts44.isBlock(helper.body) ? helper.body.statements.length === 1 && ts44.isReturnStatement(helper.body.statements[0]) ? helper.body.statements[0].expression : void 0 : helper.body;
32111
+ const body = ts46.isBlock(helper.body) ? helper.body.statements.length === 1 && ts46.isReturnStatement(helper.body.statements[0]) ? helper.body.statements[0].expression : void 0 : helper.body;
31905
32112
  const o2 = object16(body);
31906
32113
  if (!o2 || o2.properties.length !== 2 || !stateParam || !navParam) return false;
31907
32114
  const [spread, nav] = o2.properties;
31908
- return ts44.isSpreadAssignment(spread) && ts44.isIdentifier(spread.expression) && spread.expression.text === stateParam && ts44.isPropertyAssignment(nav) && name(nav.name) === "_nav" && ts44.isIdentifier(nav.initializer) && nav.initializer.text === navParam;
32115
+ return ts46.isSpreadAssignment(spread) && ts46.isIdentifier(spread.expression) && spread.expression.text === stateParam && ts46.isPropertyAssignment(nav) && name(nav.name) === "_nav" && ts46.isIdentifier(nav.initializer) && nav.initializer.text === navParam;
31909
32116
  };
31910
32117
  const fixedOf = (fn2) => {
31911
32118
  const params = plainParams(fn2);
31912
32119
  if (!fn2.body || !plain5(fn2) || !params) return void 0;
31913
32120
  let result = void 0;
31914
- if (ts44.isBlock(fn2.body)) {
32121
+ if (ts46.isBlock(fn2.body)) {
31915
32122
  const [only, ...rest] = fn2.body.statements;
31916
- if (!only || rest.length > 0 || !ts44.isReturnStatement(only)) return void 0;
32123
+ if (!only || rest.length > 0 || !ts46.isReturnStatement(only)) return void 0;
31917
32124
  result = only.expression;
31918
32125
  } else result = fn2.body;
31919
- while (result && ts44.isParenthesizedExpression(result)) result = result.expression;
32126
+ while (result && ts46.isParenthesizedExpression(result)) result = result.expression;
31920
32127
  let navNode;
31921
- if (result && ts44.isObjectLiteralExpression(result)) {
32128
+ if (result && ts46.isObjectLiteralExpression(result)) {
31922
32129
  const props2 = result.properties;
31923
32130
  const lastProp = props2[props2.length - 1];
31924
- if (!lastProp || !ts44.isPropertyAssignment(lastProp) || ts44.isComputedPropertyName(lastProp.name) || name(lastProp.name) !== "_nav") return void 0;
32131
+ if (!lastProp || !ts46.isPropertyAssignment(lastProp) || ts46.isComputedPropertyName(lastProp.name) || name(lastProp.name) !== "_nav") return void 0;
31925
32132
  if (!props2.slice(0, -1).every((p2) => safeProperty(p2, params))) return void 0;
31926
32133
  navNode = lastProp.initializer;
31927
- } else if (result && ts44.isCallExpression(result) && result.arguments.length === 2 && isNavigateHelper(result.expression)) {
32134
+ } else if (result && ts46.isCallExpression(result) && result.arguments.length === 2 && isNavigateHelper(result.expression)) {
31928
32135
  if (!provenSafe(result.arguments[0], params)) return void 0;
31929
32136
  navNode = result.arguments[1];
31930
32137
  }
@@ -31934,58 +32141,58 @@ function literalTargets(bundleJs, ts44) {
31934
32141
  return { nav, line: position.line + 1, column: position.character };
31935
32142
  };
31936
32143
  const visit = (node4) => {
31937
- if (ts44.isCallExpression(node4)) {
31938
- const callee = ts44.isPropertyAccessExpression(node4.expression) ? node4.expression.name.text : name(node4.expression);
32144
+ if (ts46.isCallExpression(node4)) {
32145
+ const callee = ts46.isPropertyAccessExpression(node4.expression) ? node4.expression.name.text : name(node4.expression);
31939
32146
  const service = node4.arguments[0];
31940
- if (callee && /^defineService[0-9]*$/.test(callee) && service && ts44.isStringLiteralLike(service)) {
32147
+ if (callee && /^defineService[0-9]*$/.test(callee) && service && ts46.isStringLiteralLike(service)) {
31941
32148
  const actions = object16(initializer(property3(object16(node4.arguments[1]), "actions")));
31942
32149
  for (const member of actions?.properties ?? []) {
31943
32150
  const action = name(member.name);
31944
- const fn2 = ts44.isMethodDeclaration(member) ? member : resolve141(ts44.isShorthandPropertyAssignment(member) ? member.name : initializer(member));
32151
+ const fn2 = ts46.isMethodDeclaration(member) ? member : resolve141(ts46.isShorthandPropertyAssignment(member) ? member.name : initializer(member));
31945
32152
  if (!action || !fn2?.body) continue;
31946
32153
  const targets = [];
31947
32154
  const target = (expr) => {
31948
32155
  const sid = initializer(property3(object16(expr), "screenId"));
31949
- if (!sid || !ts44.isStringLiteralLike(sid)) return;
32156
+ if (!sid || !ts46.isStringLiteralLike(sid)) return;
31950
32157
  const position = file2.getLineAndCharacterOfPosition(sid.getStart(file2));
31951
32158
  targets.push({ screenId: sid.text, line: position.line + 1, column: position.character });
31952
32159
  };
31953
32160
  const returned = (expr) => {
31954
32161
  if (!expr) return;
31955
- if (ts44.isParenthesizedExpression(expr) || ts44.isAwaitExpression(expr)) {
32162
+ if (ts46.isParenthesizedExpression(expr) || ts46.isAwaitExpression(expr)) {
31956
32163
  returned(expr.expression);
31957
32164
  return;
31958
32165
  }
31959
- if (ts44.isConditionalExpression(expr)) {
32166
+ if (ts46.isConditionalExpression(expr)) {
31960
32167
  returned(expr.whenTrue);
31961
32168
  returned(expr.whenFalse);
31962
32169
  return;
31963
32170
  }
31964
- if (ts44.isObjectLiteralExpression(expr)) {
32171
+ if (ts46.isObjectLiteralExpression(expr)) {
31965
32172
  target(initializer(property3(expr, "_nav")));
31966
32173
  return;
31967
32174
  }
31968
- if (ts44.isCallExpression(expr)) {
31969
- const called = ts44.isPropertyAccessExpression(expr.expression) ? expr.expression.name.text : name(expr.expression);
32175
+ if (ts46.isCallExpression(expr)) {
32176
+ const called = ts46.isPropertyAccessExpression(expr.expression) ? expr.expression.name.text : name(expr.expression);
31970
32177
  if (called && /^navigate[0-9]*$/.test(called)) target(expr.arguments[1]);
31971
32178
  }
31972
32179
  };
31973
- if (ts44.isBlock(fn2.body)) {
32180
+ if (ts46.isBlock(fn2.body)) {
31974
32181
  const returns = (part7) => {
31975
32182
  if (callable(part7)) return;
31976
- if (ts44.isReturnStatement(part7)) returned(part7.expression);
31977
- else ts44.forEachChild(part7, returns);
32183
+ if (ts46.isReturnStatement(part7)) returned(part7.expression);
32184
+ else ts46.forEachChild(part7, returns);
31978
32185
  };
31979
32186
  returns(fn2.body);
31980
32187
  } else returned(fn2.body);
31981
32188
  results.set("tier5." + service.text + "." + action, targets);
31982
- const ref = ts44.isShorthandPropertyAssignment(member) ? member.name : initializer(member);
31983
- const always = ref && ts44.isIdentifier(ref) && assigned.has(ref.text) ? void 0 : fixedOf(fn2);
32189
+ const ref = ts46.isShorthandPropertyAssignment(member) ? member.name : initializer(member);
32190
+ const always = ref && ts46.isIdentifier(ref) && assigned.has(ref.text) ? void 0 : fixedOf(fn2);
31984
32191
  if (always) fixed.set("tier5." + service.text + "." + action, always);
31985
32192
  }
31986
32193
  }
31987
32194
  }
31988
- ts44.forEachChild(node4, visit);
32195
+ ts46.forEachChild(node4, visit);
31989
32196
  };
31990
32197
  visit(file2);
31991
32198
  cache.set(bundleJs, results);
@@ -32011,7 +32218,7 @@ var init_player_host_manifest = __esm({
32011
32218
  "../../apps/himi-player/player-host-manifest.ts"() {
32012
32219
  init_define_HHP_CATALOG();
32013
32220
  PLAYER_HOST_MANIFEST = {
32014
- "version": "1.12.0",
32221
+ "version": "1.13.0",
32015
32222
  "capabilities": [
32016
32223
  "animation",
32017
32224
  "app_info",
@@ -32855,7 +33062,7 @@ __export(hhp_exports, {
32855
33062
  import { existsSync as existsSync22, readFileSync as readFileSync22, writeFileSync as writeFileSync13, mkdirSync as mkdirSync14, renameSync as renameSync6, rmSync as rmSync8, lstatSync as lstatSync11, readdirSync as readdirSync16 } from "node:fs";
32856
33063
  import { basename as basename8, dirname as dirname18, resolve as resolve22, relative as relative8, sep as sep10, join as join18 } from "node:path";
32857
33064
  import { createHash as createHash10, randomUUID as randomUUID5 } from "node:crypto";
32858
- import ts3 from "typescript";
33065
+ import ts5 from "typescript";
32859
33066
  function localPath(root, path2, from = join18(root, "hhp.json")) {
32860
33067
  if (/^[a-z]+:|^\/\//i.test(path2)) throw new Error("HHP source dependencies must be local files.");
32861
33068
  const target = resolve22(dirname18(from), path2), rel2 = relative8(resolve22(root), target);
@@ -32912,18 +33119,18 @@ async function profileForContent(root) {
32912
33119
  return appProfile({ app: loaded2?.name ?? config.name, tokens: tokens2, surfaces: [...new Set(surfaces)], capabilities: config.capabilities ?? [], components: appComponents, handlers: [...DEFAULT_HANDLERS, ...loaded2?.module.actions.map((action) => action.descriptor.id) ?? []], workerSubtreeScreens: config.workerSubtreeScreens ?? [] });
32913
33120
  }
32914
33121
  function managedRegistry(source2) {
32915
- const sf2 = ts3.createSourceFile("dev/index.ts", source2, ts3.ScriptTarget.Latest, true);
32916
- const defaults = sf2.statements.filter((s5) => ts3.isExportAssignment(s5) && !s5.isExportEquals);
33122
+ const sf2 = ts5.createSourceFile("dev/index.ts", source2, ts5.ScriptTarget.Latest, true);
33123
+ const defaults = sf2.statements.filter((s5) => ts5.isExportAssignment(s5) && !s5.isExportEquals);
32917
33124
  if (defaults.length !== 1) throw new Error("HHP registry wiring requires one default-exported app object or identifier.");
32918
33125
  const expression = defaults[0].expression;
32919
- if (ts3.isCallExpression(expression) && expression.expression.getText(sf2) === "__himiHhp") {
33126
+ if (ts5.isCallExpression(expression) && expression.expression.getText(sf2) === "__himiHhp") {
32920
33127
  if (!source2.includes(BEGIN) || !source2.includes(END)) throw new Error("HHP registry markers are missing; refusing an ambiguous edit.");
32921
33128
  return source2;
32922
33129
  }
32923
33130
  if (source2.includes(BEGIN) || source2.includes(END) || /\b__himiHhp\b/.test(source2)) throw new Error("HHP registry markers/name conflict with authored code.");
32924
33131
  let base2 = expression;
32925
- while (ts3.isAsExpression(base2) || ts3.isSatisfiesExpression(base2) || ts3.isParenthesizedExpression(base2)) base2 = base2.expression;
32926
- if (!ts3.isObjectLiteralExpression(base2) && !ts3.isIdentifier(base2)) throw new Error("HHP cannot safely wire this default export. Export an app object or identifier first.");
33132
+ while (ts5.isAsExpression(base2) || ts5.isSatisfiesExpression(base2) || ts5.isParenthesizedExpression(base2)) base2 = base2.expression;
33133
+ if (!ts5.isObjectLiteralExpression(base2) && !ts5.isIdentifier(base2)) throw new Error("HHP cannot safely wire this default export. Export an app object or identifier first.");
32927
33134
  const wrapped2 = source2.slice(0, expression.getStart(sf2)) + `__himiHhp(${expression.getText(sf2)})` + source2.slice(expression.end);
32928
33135
  return `${BEGIN}
32929
33136
  import { withHhpScreens as __himiHhp } from "./hhp/index.js";
@@ -32979,8 +33186,8 @@ async function compileContentHhp(root, opts = {}) {
32979
33186
  const source2 = readFileSync22(file3, "utf8");
32980
33187
  inspectModule(source2, file3, profile, diagnostics);
32981
33188
  for (const cap2 of moduleCapabilities(source2, file3, profile)) requiredCapabilities2.add(cap2);
32982
- const sf2 = ts3.createSourceFile(file3, source2, ts3.ScriptTarget.Latest, true);
32983
- for (const stmt of sf2.statements) if ((ts3.isImportDeclaration(stmt) || ts3.isExportDeclaration(stmt)) && stmt.moduleSpecifier && ts3.isStringLiteral(stmt.moduleSpecifier) && stmt.moduleSpecifier.text.startsWith(".")) {
33189
+ const sf2 = ts5.createSourceFile(file3, source2, ts5.ScriptTarget.Latest, true);
33190
+ for (const stmt of sf2.statements) if ((ts5.isImportDeclaration(stmt) || ts5.isExportDeclaration(stmt)) && stmt.moduleSpecifier && ts5.isStringLiteral(stmt.moduleSpecifier) && stmt.moduleSpecifier.text.startsWith(".")) {
32984
33191
  let imported = localPath(root, stmt.moduleSpecifier.text, file3);
32985
33192
  if (!existsSync22(imported) && imported.endsWith(".js")) imported = imported.slice(0, -3) + ".ts";
32986
33193
  if (!existsSync22(imported)) imported += ".ts";
@@ -33407,14 +33614,14 @@ var init_validation_comparison = __esm({
33407
33614
  // src/config-source-edit.ts
33408
33615
  import { lstatSync as lstatSync13 } from "node:fs";
33409
33616
  import { join as join20 } from "node:path";
33410
- import ts4 from "typescript";
33617
+ import ts6 from "typescript";
33411
33618
  function defineAppLiteral(file2) {
33412
33619
  for (const statement of file2.statements) {
33413
- if (!ts4.isExportAssignment(statement)) continue;
33620
+ if (!ts6.isExportAssignment(statement)) continue;
33414
33621
  const exported = localValue(file2, unwrap(statement.expression));
33415
- if (ts4.isObjectLiteralExpression(exported)) return exported;
33416
- const [first] = ts4.isCallExpression(exported) ? exported.arguments : [];
33417
- return first && ts4.isObjectLiteralExpression(unwrap(first)) ? unwrap(first) : void 0;
33622
+ if (ts6.isObjectLiteralExpression(exported)) return exported;
33623
+ const [first] = ts6.isCallExpression(exported) ? exported.arguments : [];
33624
+ return first && ts6.isObjectLiteralExpression(unwrap(first)) ? unwrap(first) : void 0;
33418
33625
  }
33419
33626
  return void 0;
33420
33627
  }
@@ -33422,27 +33629,27 @@ function loginOf(app2) {
33422
33629
  const auth = lookup(app2, "auth");
33423
33630
  if (auth.kind !== "written") return { kind: auth.kind === "absent" ? "other" : "opaque" };
33424
33631
  const value2 = unwrap(auth.node.initializer);
33425
- if (ts4.isObjectLiteralExpression(value2)) return { kind: "other" };
33426
- if (!ts4.isCallExpression(value2)) return { kind: "opaque" };
33632
+ if (ts6.isObjectLiteralExpression(value2)) return { kind: "other" };
33633
+ if (!ts6.isCallExpression(value2)) return { kind: "opaque" };
33427
33634
  const provider = calleeName(value2);
33428
33635
  if (provider === "WixOwnerAuthProvider" || provider === "WixAuthProvider") return { kind: "owner" };
33429
33636
  if (provider === "WixNativeAuthProvider") return nativeMode(value2) === "owner" ? { kind: "owner" } : { kind: "other" };
33430
33637
  if (provider !== "WixConsumerAuthProvider") return { kind: "other" };
33431
33638
  const [first] = value2.arguments;
33432
- return first && ts4.isObjectLiteralExpression(first) ? { kind: "member", literal: first } : { kind: "opaque" };
33639
+ return first && ts6.isObjectLiteralExpression(first) ? { kind: "member", literal: first } : { kind: "opaque" };
33433
33640
  }
33434
33641
  function nativeMode(call) {
33435
33642
  const [first] = call.arguments;
33436
- return first && ts4.isObjectLiteralExpression(first) ? stringValue(first, "mode") : void 0;
33643
+ return first && ts6.isObjectLiteralExpression(first) ? stringValue(first, "mode") : void 0;
33437
33644
  }
33438
33645
  function calleeName(call) {
33439
33646
  const callee = call.expression;
33440
- if (ts4.isIdentifier(callee)) return callee.text;
33441
- return ts4.isPropertyAccessExpression(callee) ? callee.name.text : void 0;
33647
+ if (ts6.isIdentifier(callee)) return callee.text;
33648
+ return ts6.isPropertyAccessExpression(callee) ? callee.name.text : void 0;
33442
33649
  }
33443
33650
  function unwrap(node4) {
33444
33651
  let current = node4;
33445
- while (ts4.isParenthesizedExpression(current) || ts4.isAsExpression(current) || ts4.isSatisfiesExpression(current)) {
33652
+ while (ts6.isParenthesizedExpression(current) || ts6.isAsExpression(current) || ts6.isSatisfiesExpression(current)) {
33446
33653
  current = current.expression;
33447
33654
  }
33448
33655
  return current;
@@ -33450,17 +33657,17 @@ function unwrap(node4) {
33450
33657
  function lookup(literal5, name) {
33451
33658
  let found = { kind: "absent" };
33452
33659
  for (const p2 of literal5.properties) {
33453
- const key4 = p2.name && (ts4.isIdentifier(p2.name) || ts4.isStringLiteral(p2.name)) ? p2.name.text : void 0;
33454
- if (ts4.isPropertyAssignment(p2) && key4 === name) found = { kind: "written", node: p2 };
33455
- else if (ts4.isSpreadAssignment(p2) || p2.name && ts4.isComputedPropertyName(p2.name) || key4 === name) found = { kind: "opaque" };
33660
+ const key4 = p2.name && (ts6.isIdentifier(p2.name) || ts6.isStringLiteral(p2.name)) ? p2.name.text : void 0;
33661
+ if (ts6.isPropertyAssignment(p2) && key4 === name) found = { kind: "written", node: p2 };
33662
+ else if (ts6.isSpreadAssignment(p2) || p2.name && ts6.isComputedPropertyName(p2.name) || key4 === name) found = { kind: "opaque" };
33456
33663
  }
33457
33664
  return found;
33458
33665
  }
33459
33666
  function stringValue(node4, name) {
33460
33667
  const literal5 = unwrap(node4);
33461
- const found = ts4.isObjectLiteralExpression(literal5) ? lookup(literal5, name) : void 0;
33668
+ const found = ts6.isObjectLiteralExpression(literal5) ? lookup(literal5, name) : void 0;
33462
33669
  const value2 = found?.kind === "written" ? found.node.initializer : void 0;
33463
- return value2 && ts4.isStringLiteralLike(value2) ? value2.text : void 0;
33670
+ return value2 && ts6.isStringLiteralLike(value2) ? value2.text : void 0;
33464
33671
  }
33465
33672
  function appendProperties(literal5, file2, lines2) {
33466
33673
  const inline = () => lines2.filter((line) => !line.trimStart().startsWith("//")).join(" ");
@@ -33492,11 +33699,11 @@ function applySplices(source2, splices) {
33492
33699
  return [...splices].sort((a3, b3) => b3.at - a3.at).reduce((out2, s5) => out2.slice(0, s5.at) + s5.text + out2.slice(s5.end), source2);
33493
33700
  }
33494
33701
  function localValue(file2, node4) {
33495
- if (!ts4.isIdentifier(node4)) return node4;
33702
+ if (!ts6.isIdentifier(node4)) return node4;
33496
33703
  for (const statement of file2.statements) {
33497
- if (!ts4.isVariableStatement(statement) || !(statement.declarationList.flags & ts4.NodeFlags.Const)) continue;
33704
+ if (!ts6.isVariableStatement(statement) || !(statement.declarationList.flags & ts6.NodeFlags.Const)) continue;
33498
33705
  for (const declaration2 of statement.declarationList.declarations) {
33499
- if (ts4.isIdentifier(declaration2.name) && declaration2.name.text === node4.text && declaration2.initializer) return unwrap(declaration2.initializer);
33706
+ if (ts6.isIdentifier(declaration2.name) && declaration2.name.text === node4.text && declaration2.initializer) return unwrap(declaration2.initializer);
33500
33707
  }
33501
33708
  }
33502
33709
  return node4;
@@ -34959,9 +35166,9 @@ var init_codegen = __esm({
34959
35166
  });
34960
35167
 
34961
35168
  // ../native-extensions/interface-parse.ts
34962
- import ts5 from "typescript";
35169
+ import ts7 from "typescript";
34963
35170
  function parseExtensionInterface(source2, manifest2, fileName = "interface.ts") {
34964
- const file2 = ts5.createSourceFile(fileName, source2, ts5.ScriptTarget.ES2022, true, ts5.ScriptKind.TS);
35171
+ const file2 = ts7.createSourceFile(fileName, source2, ts7.ScriptTarget.ES2022, true, ts7.ScriptKind.TS);
34965
35172
  const problems = [];
34966
35173
  const at2 = (node4) => file2.getLineAndCharacterOfPosition(node4.getStart(file2)).line + 1;
34967
35174
  const bad4 = (node4, message5) => problems.push({ code: "extension_interface_invalid", line: at2(node4), message: message5 });
@@ -34969,18 +35176,18 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
34969
35176
  const named5 = /* @__PURE__ */ new Map();
34970
35177
  let main4;
34971
35178
  for (const statement of file2.statements) {
34972
- if (ts5.isImportDeclaration(statement) || ts5.isImportEqualsDeclaration(statement)) {
35179
+ if (ts7.isImportDeclaration(statement) || ts7.isImportEqualsDeclaration(statement)) {
34973
35180
  bad4(statement, "interface.ts must be self-contained: no imports");
34974
- } else if (ts5.isInterfaceDeclaration(statement)) {
35181
+ } else if (ts7.isInterfaceDeclaration(statement)) {
34975
35182
  if (statement.typeParameters?.length) bad4(statement, `interface ${statement.name.text} must not be generic`);
34976
35183
  if (statement.heritageClauses?.length) bad4(statement, `interface ${statement.name.text} must not extend another type`);
34977
35184
  if (statement.name.text === pascal2) main4 = statement;
34978
35185
  else named5.set(statement.name.text, statement);
34979
- } else if (ts5.isTypeAliasDeclaration(statement)) {
35186
+ } else if (ts7.isTypeAliasDeclaration(statement)) {
34980
35187
  if (statement.typeParameters?.length) bad4(statement, `type ${statement.name.text} must not be generic`);
34981
- if (ts5.isTypeLiteralNode(statement.type)) named5.set(statement.name.text, statement.type);
35188
+ if (ts7.isTypeLiteralNode(statement.type)) named5.set(statement.name.text, statement.type);
34982
35189
  else bad4(statement, `type ${statement.name.text} must be an object type ({ \u2026 })`);
34983
- } else if (!ts5.isEmptyStatement(statement)) {
35190
+ } else if (!ts7.isEmptyStatement(statement)) {
34984
35191
  bad4(statement, "interface.ts may declare only interfaces and object type aliases");
34985
35192
  }
34986
35193
  }
@@ -34989,7 +35196,7 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
34989
35196
  problems.push({ code: "extension_interface_invalid", line: 1, message: `interface.ts must export \`interface ${pascal2}\` (the extension "${manifest2.name}" in PascalCase)` });
34990
35197
  return { ok: false, problems };
34991
35198
  }
34992
- if (main4 && !main4.modifiers?.some((m2) => m2.kind === ts5.SyntaxKind.ExportKeyword)) bad4(main4, `interface ${pascal2} must be exported`);
35199
+ if (main4 && !main4.modifiers?.some((m2) => m2.kind === ts7.SyntaxKind.ExportKeyword)) bad4(main4, `interface ${pascal2} must be exported`);
34993
35200
  const structs = /* @__PURE__ */ new Map();
34994
35201
  const origin = /* @__PURE__ */ new Map();
34995
35202
  const structName = (tsName) => tsName.startsWith(pascal2) ? tsName : `${pascal2}${tsName}`;
@@ -35009,7 +35216,7 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35009
35216
  building.add(name);
35010
35217
  const fields2 = [];
35011
35218
  for (const member of members2) {
35012
- if (!ts5.isPropertySignature(member) || !member.name || !(ts5.isIdentifier(member.name) || ts5.isStringLiteral(member.name))) {
35219
+ if (!ts7.isPropertySignature(member) || !member.name || !(ts7.isIdentifier(member.name) || ts7.isStringLiteral(member.name))) {
35013
35220
  bad4(member, "an object type may contain only named properties");
35014
35221
  continue;
35015
35222
  }
@@ -35031,8 +35238,8 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35031
35238
  return name;
35032
35239
  };
35033
35240
  const objectStruct = (node4, anonymousName) => {
35034
- if (ts5.isTypeLiteralNode(node4)) return structFrom(node4.members, anonymousName, node4, node4);
35035
- if (ts5.isTypeReferenceNode(node4) && ts5.isIdentifier(node4.typeName) && !node4.typeArguments) {
35241
+ if (ts7.isTypeLiteralNode(node4)) return structFrom(node4.members, anonymousName, node4, node4);
35242
+ if (ts7.isTypeReferenceNode(node4) && ts7.isIdentifier(node4.typeName) && !node4.typeArguments) {
35036
35243
  const decl = named5.get(node4.typeName.text);
35037
35244
  if (!decl) {
35038
35245
  bad4(node4, `type ${node4.typeName.text} is not declared in interface.ts`);
@@ -35045,23 +35252,23 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35045
35252
  };
35046
35253
  const fieldType2 = (node4, anonymousName) => {
35047
35254
  switch (node4.kind) {
35048
- case ts5.SyntaxKind.StringKeyword:
35255
+ case ts7.SyntaxKind.StringKeyword:
35049
35256
  return { kind: "string" };
35050
- case ts5.SyntaxKind.NumberKeyword:
35257
+ case ts7.SyntaxKind.NumberKeyword:
35051
35258
  return { kind: "number" };
35052
- case ts5.SyntaxKind.BooleanKeyword:
35259
+ case ts7.SyntaxKind.BooleanKeyword:
35053
35260
  return { kind: "boolean" };
35054
35261
  }
35055
- if (ts5.isArrayTypeNode(node4)) {
35262
+ if (ts7.isArrayTypeNode(node4)) {
35056
35263
  const of2 = fieldType2(node4.elementType, `${anonymousName}Item`);
35057
35264
  return of2 && { kind: "array", of: of2 };
35058
35265
  }
35059
- if (ts5.isTypeReferenceNode(node4) && ts5.isIdentifier(node4.typeName) && node4.typeName.text === "Array" && node4.typeArguments?.length === 1) {
35266
+ if (ts7.isTypeReferenceNode(node4) && ts7.isIdentifier(node4.typeName) && node4.typeName.text === "Array" && node4.typeArguments?.length === 1) {
35060
35267
  const of2 = fieldType2(node4.typeArguments[0], `${anonymousName}Item`);
35061
35268
  return of2 && { kind: "array", of: of2 };
35062
35269
  }
35063
- if (ts5.isParenthesizedTypeNode(node4)) return fieldType2(node4.type, anonymousName);
35064
- if (ts5.isTypeLiteralNode(node4) || ts5.isTypeReferenceNode(node4)) {
35270
+ if (ts7.isParenthesizedTypeNode(node4)) return fieldType2(node4.type, anonymousName);
35271
+ if (ts7.isTypeLiteralNode(node4) || ts7.isTypeReferenceNode(node4)) {
35065
35272
  const struct = objectStruct(node4, anonymousName);
35066
35273
  return struct ? { kind: "object", struct } : void 0;
35067
35274
  }
@@ -35070,7 +35277,7 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35070
35277
  };
35071
35278
  const methods = [];
35072
35279
  for (const member of main4?.members ?? []) {
35073
- if (!ts5.isMethodSignature(member) || !ts5.isIdentifier(member.name)) {
35280
+ if (!ts7.isMethodSignature(member) || !ts7.isIdentifier(member.name)) {
35074
35281
  bad4(member, `interface ${pascal2} may contain only methods (\`read(opts: {\u2026}): Promise<\u2026>\`)`);
35075
35282
  continue;
35076
35283
  }
@@ -35091,11 +35298,11 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35091
35298
  else method.input = objectStruct(param.type, `${pascal2}${methodPascal}Input`);
35092
35299
  }
35093
35300
  const ret = member.type;
35094
- if (!ret || !ts5.isTypeReferenceNode(ret) || !ts5.isIdentifier(ret.typeName) || ret.typeName.text !== "Promise" || ret.typeArguments?.length !== 1) {
35301
+ if (!ret || !ts7.isTypeReferenceNode(ret) || !ts7.isIdentifier(ret.typeName) || ret.typeName.text !== "Promise" || ret.typeArguments?.length !== 1) {
35095
35302
  bad4(member, `method ${name} must return Promise<\u2026>`);
35096
35303
  } else {
35097
35304
  const inner = ret.typeArguments[0];
35098
- if (inner.kind !== ts5.SyntaxKind.VoidKeyword) method.result = objectStruct(inner, `${pascal2}${methodPascal}Result`);
35305
+ if (inner.kind !== ts7.SyntaxKind.VoidKeyword) method.result = objectStruct(inner, `${pascal2}${methodPascal}Result`);
35099
35306
  }
35100
35307
  methods.push(method);
35101
35308
  }
@@ -35109,8 +35316,8 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35109
35316
  problems.push({ code: "extension_interface_invalid", line: 1, message: `himi-extension.json view "${view}" names props type ${spec.props}, which interface.ts does not declare` });
35110
35317
  continue;
35111
35318
  }
35112
- const owner = ts5.isInterfaceDeclaration(decl) ? decl : decl.parent;
35113
- const clash = decl.members.find((m2) => ts5.isPropertySignature(m2) && m2.name && (ts5.isIdentifier(m2.name) || ts5.isStringLiteral(m2.name)) && m2.name.text === VIEW_FALLBACK_PROP);
35319
+ const owner = ts7.isInterfaceDeclaration(decl) ? decl : decl.parent;
35320
+ const clash = decl.members.find((m2) => ts7.isPropertySignature(m2) && m2.name && (ts7.isIdentifier(m2.name) || ts7.isStringLiteral(m2.name)) && m2.name.text === VIEW_FALLBACK_PROP);
35114
35321
  if (clash) bad4(clash, `view props may not have a "${VIEW_FALLBACK_PROP}" field: the renderers read it as the view's fallback (RFC 0080 \xA77.3)`);
35115
35322
  const struct = structFrom(decl.members, structName(spec.props), owner, decl);
35116
35323
  views2.push({ name: view, props: struct, propsTsName: spec.props, whenMissing: viewWhenMissing(manifest2, view) });
@@ -35129,8 +35336,8 @@ function parseExtensionInterface(source2, manifest2, fileName = "interface.ts")
35129
35336
  };
35130
35337
  }
35131
35338
  function stripNullable(node4) {
35132
- if (!ts5.isUnionTypeNode(node4)) return { type: node4, nullable: false };
35133
- const rest = node4.types.filter((t2) => !(t2.kind === ts5.SyntaxKind.UndefinedKeyword || ts5.isLiteralTypeNode(t2) && t2.literal.kind === ts5.SyntaxKind.NullKeyword));
35339
+ if (!ts7.isUnionTypeNode(node4)) return { type: node4, nullable: false };
35340
+ const rest = node4.types.filter((t2) => !(t2.kind === ts7.SyntaxKind.UndefinedKeyword || ts7.isLiteralTypeNode(t2) && t2.literal.kind === ts7.SyntaxKind.NullKeyword));
35134
35341
  return rest.length === 1 ? { type: rest[0], nullable: rest.length !== node4.types.length } : { type: node4, nullable: false };
35135
35342
  }
35136
35343
  var init_interface_parse = __esm({
@@ -35484,17 +35691,17 @@ var init_package = __esm({
35484
35691
  // src/extension-views.ts
35485
35692
  import { existsSync as existsSync26, readFileSync as readFileSync26 } from "node:fs";
35486
35693
  import { join as join23 } from "node:path";
35487
- import ts6 from "typescript";
35694
+ import ts8 from "typescript";
35488
35695
  function schemaRangeOf(source2) {
35489
- const file2 = ts6.createSourceFile("config.ts", source2, ts6.ScriptTarget.ES2022, true, ts6.ScriptKind.TS);
35696
+ const file2 = ts8.createSourceFile("config.ts", source2, ts8.ScriptTarget.ES2022, true, ts8.ScriptKind.TS);
35490
35697
  const app2 = defineAppLiteral(file2);
35491
35698
  const found = app2 ? lookup(app2, "schemaPackageRange") : void 0;
35492
35699
  if (found?.kind !== "written") return void 0;
35493
35700
  const literal5 = unwrap(found.node.initializer);
35494
- if (!ts6.isObjectLiteralExpression(literal5)) return void 0;
35701
+ if (!ts8.isObjectLiteralExpression(literal5)) return void 0;
35495
35702
  const num6 = (name) => {
35496
35703
  const f2 = lookup(literal5, name);
35497
- return f2.kind === "written" && ts6.isNumericLiteral(unwrap(f2.node.initializer)) ? Number(unwrap(f2.node.initializer).text) : void 0;
35704
+ return f2.kind === "written" && ts8.isNumericLiteral(unwrap(f2.node.initializer)) ? Number(unwrap(f2.node.initializer).text) : void 0;
35498
35705
  };
35499
35706
  const min = num6("min");
35500
35707
  const max = num6("max");
@@ -35504,7 +35711,7 @@ function isPlaceholderRange(r3) {
35504
35711
  return !r3 || r3.min === PLACEHOLDER_RANGE.min && r3.max === PLACEHOLDER_RANGE.max;
35505
35712
  }
35506
35713
  function setSchemaRangeInSource(source2, range) {
35507
- const file2 = ts6.createSourceFile("config.ts", source2, ts6.ScriptTarget.ES2022, true, ts6.ScriptKind.TS);
35714
+ const file2 = ts8.createSourceFile("config.ts", source2, ts8.ScriptTarget.ES2022, true, ts8.ScriptKind.TS);
35508
35715
  const app2 = defineAppLiteral(file2);
35509
35716
  if (!app2) throw new Error("config.ts has no defineApp({ \u2026 }) literal");
35510
35717
  const text32 = `{ min: ${range.min}, max: ${range.max} }`;
@@ -35594,16 +35801,16 @@ __export(extensions_exports, {
35594
35801
  });
35595
35802
  import { existsSync as existsSync27, readFileSync as readFileSync27, readdirSync as readdirSync20, statSync as statSync7 } from "node:fs";
35596
35803
  import { join as join24 } from "node:path";
35597
- import ts7 from "typescript";
35804
+ import ts9 from "typescript";
35598
35805
  function declaredExtensionsOf(source2, fileName = "config.ts") {
35599
- const file2 = ts7.createSourceFile(fileName, source2, ts7.ScriptTarget.ES2022, true, ts7.ScriptKind.TS);
35806
+ const file2 = ts9.createSourceFile(fileName, source2, ts9.ScriptTarget.ES2022, true, ts9.ScriptKind.TS);
35600
35807
  const app2 = defineAppLiteral(file2);
35601
35808
  if (!app2) return { kind: "opaque" };
35602
35809
  const found = lookup(app2, "extensions");
35603
35810
  if (found.kind === "absent") return { kind: "list", names: [] };
35604
35811
  if (found.kind === "opaque") return { kind: "opaque" };
35605
35812
  const value2 = unwrap(found.node.initializer);
35606
- if (!ts7.isArrayLiteralExpression(value2) || !value2.elements.every((e2) => ts7.isStringLiteralLike(e2))) return { kind: "opaque" };
35813
+ if (!ts9.isArrayLiteralExpression(value2) || !value2.elements.every((e2) => ts9.isStringLiteralLike(e2))) return { kind: "opaque" };
35607
35814
  return { kind: "list", names: value2.elements.map((e2) => e2.text), node: value2 };
35608
35815
  }
35609
35816
  function declaredExtensions(contentDir2) {
@@ -44700,7 +44907,6 @@ function resolveIdiom(tokens2, ctx = {}) {
44700
44907
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
44701
44908
  var init_idiom = __esm({
44702
44909
  "../../core/ts/src/idiom.ts"() {
44703
- "use strict";
44704
44910
  init_define_HHP_CATALOG();
44705
44911
  IDIOM_CONTEXTS = {
44706
44912
  ios: { native: ["ios"] },
@@ -45886,6 +46092,13 @@ var init_media = __esm({
45886
46092
  }
45887
46093
  });
45888
46094
 
46095
+ // ../../core/ts/src/splash-timeline.ts
46096
+ var init_splash_timeline = __esm({
46097
+ "../../core/ts/src/splash-timeline.ts"() {
46098
+ init_define_HHP_CATALOG();
46099
+ }
46100
+ });
46101
+
45889
46102
  // ../../core/ts/src/distribution.ts
45890
46103
  var init_distribution = __esm({
45891
46104
  "../../core/ts/src/distribution.ts"() {
@@ -46222,6 +46435,7 @@ var init_define_app = __esm({
46222
46435
  init_define_HHP_CATALOG();
46223
46436
  init_admob_ids();
46224
46437
  init_app_services_gate();
46438
+ init_splash_timeline();
46225
46439
  init_locale();
46226
46440
  init_distribution();
46227
46441
  init_store_adopt();
@@ -46462,7 +46676,6 @@ function shouldRevealError(args) {
46462
46676
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
46463
46677
  var init_validation = __esm({
46464
46678
  "../../core/ts/src/validation.ts"() {
46465
- "use strict";
46466
46679
  init_define_HHP_CATALOG();
46467
46680
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
46468
46681
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -46715,7 +46928,8 @@ var init_launch_manifest = __esm({
46715
46928
  freezeClock: { type: "string" },
46716
46929
  disableAnimations: { type: "boolean" },
46717
46930
  seedRandom: { type: "number" },
46718
- networkLatencyMs: { type: "number" }
46931
+ networkLatencyMs: { type: "number" },
46932
+ firstScreenDelayMs: { type: "number" }
46719
46933
  }),
46720
46934
  flags: { type: "object", additionalProperties: true },
46721
46935
  demo: directiveObject({
@@ -97068,7 +97282,7 @@ async function incrementalUpdate({ originalData: e2, xrefInfo: t2, changes: n2,
97068
97282
  for (const e3 of m2) j2 = writeString(e3, j2, w2);
97069
97283
  return w2;
97070
97284
  }
97071
- var e, t, n, a, r, s, i, o, l2, f, c, h, u, m, p, d, g, b2, w, j, k, y, q, v, S, x, C, T, O, R, D, H, M, N, _, E, z, L, U, W, X, K2, G, V2, $, Y, J, Q, Z, ee, te, ne, ae, re, se, ie, oe, le, fe, ce, he, ue, me, pe, de, ge, be, we, je, ke, ye, qe, ve, Se, Ae, xe, Ce, Ie, Fe, Te, Oe, Re, Be, De, He, Me, Ne, Pe, _e, Ee, ze, Le, Ue, We, Xe, Ke, Ge, Ve, $e, Ye, Je, Qe, Ze, et, tt, nt, rt, st, it, ot, lt, ft, ct, ht, ut, mt, pt, dt, gt, bt, wt, jt, kt, yt, qt, vt, St, At, xt, Ct, It, Ft, Tt, Ot, Rt, Bt, Dt, Ht, Mt, Nt, Pt, _t, Et, zt, Lt, Ut, Wt, Xt, Kt, Gt, Vt, $t, Yt, Jt, Qt, Zt, en, tn, nn, an, rn, sn, on, ln, PasswordException2, UnknownErrorException2, InvalidPDFException2, ResponseException2, FormatError2, AbortException2, FeatureTest2, Util2, fn, cn, makeArr2, makeMap2, makeObj2, makeSet2, hn, un, mn, pn, dn, Name, Cmd, nonSerializable, Dict, Ref, RefSet, RefMap, BaseStream, gn, bn, wn, jn, kn, yn, qn, vn, MissingDataException, ParserEOFException, XRefEntryException, XRefParseException, Sn, An, xn, Cn, QCMS, In, Fn, Tn, On, Rn, Bn, Dn, Hn, Mn, Nn, ColorSpace, AlternateCS, PatternCS, IndexedCS, DeviceGrayCS, DeviceRgbCS, DeviceRgbaCS, DeviceCmykCS, CalGrayCS, CalRGBCS, LabCS, IccColorSpace, CmykICCBasedCS, Stream, StringStream, NullStream, ChunkedStream, ChunkedStreamManager, ImageResizer, Pn, DecodeStream, StreamsSequenceStream, ColorSpaceUtils, JpegError, DNLMarkerError, EOIMarkerError, _n, En, zn, Ln, Un, Wn, Xn, Kn, Gn, JpegImage, JpegStream, Vn, NullOptimizer, QueueOptimizer, OperatorList, CheckedOperatorList, $n, Yn, Jn, Qn, Zn, ea, ta, Pattern, BaseShading, RadialAxialShading, FunctionBasedShading, MeshStreamReader, na, MeshShading, DummyShading, aa, BinaryCMapStream, BinaryCMapReader, Ascii85Stream, AsciiHexStream, ra, BrotliStream, sa, WasmImage, Jbig2Error, JBig2CCITTFaxImage, CCITTFaxStream, ia, oa, la, fa, ca, FlateStream, Jbig2Stream, ha, JpxError, JpxImage, JpxStream, LZWStream, PredictorStream, RunLengthStream, Parser, ua, Lexer, Linearization, ma, pa, CMap, IdentityCMap, CMapFactory, da, ga, ba, wa, ja, ka, ya, qa, va, Sa, Aa, xa, Ca, Ia, Fa, Ta, Oa, Ra, Ba, Da, Ha, Ma, DataBuilder, Na, Pa, _a2, Ea, za, CFFParser, CFF, CFFHeader, CFFStrings, CFFIndex, CFFDict, La, CFFTopDict, Ua, CFFPrivateDict, Wa, CFFCharset, CFFEncoding, CFFFDSelect, CFFOffsetTracker, CFFCompiler, Xa, Ka, Ga, Va, $a, Ya, Ja, Qa, Za, er, tr, nr, GlyfTable, Glyph2, GlyphHeader, Contour, SimpleGlyph, CompositeGlyph, ToUnicodeMap, IdentityToUnicodeMap, CFFFont, CSS_FONT_INFO2, SYSTEM_FONT_INFO2, FONT_INFO2, PATTERN_INFO2, InfoUtils2, Commands, CompiledFont, TrueTypeCompiled, Type2Compiled, FontRendererFactory, ar, rr, OpenTypeFileBuilder, sr, ir, or, lr, fr, cr, hr, ur, mr, pr, dr, Type1CharString, Type1Parser, Type1Font, gr, br, wr, jr, fonts_Glyph, kr, Font, ErrorFont, yr, qr, vr, Sr, Ar, xr, Cr, Ir, Fr, Tr, Or, Rr, Dr, Hr, Mr, Nr, Pr, _r, Er, zr, Lr, Ur, Wr, Xr, Kr, Gr, Vr, $r, Yr, Jr, Qr, Zr, es, ts8, ns, as, rs, ss, is, os, ls, fs, Token, lexer_Lexer, cs, hs, us, ms, ps, ds, gs, bs, ws, js, ks, ys, qs, vs, PsNode, PsProgram, PsBlock, PsNumber, PsOperator, PsIf, PsIfElse, PsArgNode, PsConstNode, PsUnaryNode, PsBinaryNode, PsTernaryNode, ast_Parser, Ss, PSStackToTree, As, xs, Cs, Is, Fs, Ts, Os, Rs, Bs, Ds, Hs, Ms, Ns, _s, Es, zs, Ls, Us, Ws, Xs, Ks, Gs, Vs, $s, Ys, Js, Qs, Zs, ei, ti, ni, ai, ri, si, ii, oi, li, fi, ci, hi, ui, mi, pi, PsJsCompiler, PSStackBasedInterpreter, di, gi, bi, wi, ji, ki, yi, qi, vi, Si, PsWasmCompiler, BaseLocalCache, LocalImageCache, LocalColorSpaceCache, LocalFunctionCache, LocalGStateCache, LocalTilingPatternCache, RegionalImageCache, GlobalColorSpaceCache, GlobalImageCache, Ai, xi, Ci, Ii, PDFFunctionFactory, PDFFunction, Fi, Ti, Oi, Ri, Bi, Di, Hi, Mi, Ni, Pi, _i, Ei, zi, Wi, MurmurHash3_642, PDFImage, Xi, Ki, Gi, Vi, TimeSlotManager, PartialEvaluator, TranslatedFont, StateManager, TextState, EvalState, EvaluatorPreprocessor, DefaultAppearanceEvaluator, AppearanceStreamEvaluator, FakeUnicodeFont, $i, Yi, NameOrNumberTree, NameTree, NumberTree, FileSpec, Ji, Qi, Zi, eo, to, no, ao, XMLParserBase, SimpleDOMNode, SimpleXMLParser, MetadataParser, ro, so, io, oo, lo, fo, StructTreeRoot, StructElementNode, StructElement, StructTreePage, co, Catalog, ObjectLoader, ho, uo, mo, po, go, bo, wo, jo, ko, yo, qo, vo, So, Ao, xo, Co, Io, Fo, Oo, Ro, Bo, Do, Ho, Mo, No, Po, _o, Eo, zo, Lo, Uo, Wo, Xo, Ko, Go, Vo, $o, Yo, Jo, Qo, Zo, el, tl, nl, al, rl, sl, il, ol, ll, fl, cl, hl, ul, ml, pl, dl, gl, bl, wl, jl, kl, yl, ql, vl, Sl, Al, xl, Cl, Il, Fl, Tl, HTMLResult, FontFinder, FontInfo2, FontSelector, TextMeasure, Rl, Bl, Dl, Hl, Ml, Nl, Pl, _l, El, zl, Ll, Wl, Xl, Kl, Gl, Vl, $l, Yl, Jl, Ql, Zl, ef, tf, nf, af, rf, sf, of, XFAObject, XFAObjectArray, XFAAttribute, XmlObject, ContentObject, OptionObject, StringObject, IntegerObject, Option01, Option10, lf, ff, cf, hf, uf, AppearanceFilter, Arc, Area, Assist, Barcode, Bind, BindItems, Bookend, BooleanElement, Border, Break, BreakAfter, BreakBefore, Button, Calculate, Caption, Certificate, Certificates, CheckButton, ChoiceList, Color, Comb, Connect, ContentArea, Corner, DateElement, DateTime, DateTimeEdit, Decimal, DefaultUi, Desc, DigestMethod, DigestMethods, Draw, Edge, Encoding, Encodings, Encrypt, EncryptData, Encryption, EncryptionMethod, EncryptionMethods, Event2, ExData, ExObject, ExclGroup, Execute, Extras, Field, Fill, Filter, Float, template_Font, Format, Handler, Hyphenation, Image2, ImageEdit, Integer, Issuers, Items, Keep, KeyUsage, Line, Linear, LockDocument, Manifest, Margin, Mdp, Medium, Message, NumericEdit, Occur, Oid, Oids, Overflow, PageArea, PageSet, Para, PasswordEdit, template_Pattern, Picture, Proto, Radial, Reason, Reasons, Rectangle, RefElement, Script2, SetProperty, SignData, Signature, Signing, Solid, Speak, Stipple, Subform, SubformSet, SubjectDN, SubjectDNs, Submit, Template, Text, TextEdit, Time, TimeStamp, ToolTip, Traversal, Traverse, Ui, Validate, Value, Variables, TemplateNamespace, mf, Binder, DataHandler, pf, Acrobat, Acrobat7, ADBE_JSConsole, ADBE_JSDebugger, AddSilentPrint, AddViewerPreferences, AdjustData, AdobeExtensionLevel, Agent, AlwaysEmbed, Amd, config_Area, Attributes, AutoSave, Base, BatchOutput, BehaviorOverride, Cache, Change, Common, Compress, CompressLogicalStructure, CompressObjectStream, Compression, Config, Conformance, ContentCopy, Copies, Creator, CurrentPage, Data, Debug, DefaultTypeface, Destination, DocumentAssembly, Driver, DuplexOption, DynamicRender, Embed, config_Encrypt, config_Encryption, EncryptionLevel, Enforce, Equate, EquateRange, Exclude, ExcludeNS, FlipLabel, config_FontInfo, FormFieldFilling, GroupParent, IfEmpty, IncludeXDPContent, IncrementalLoad, IncrementalMerge, Interactive, Jog, LabelPrinter, Layout, Level, Linearized, Locale, LocaleSet, Log, MapElement, MediumInfo, config_Message, Messaging, Mode, ModifyAnnots, MsgId, NameAttr, NeverEmbed, NumberOfCopies, OpenAction, Output, OutputBin, OutputXSL, Overprint, Packets, PageOffset, PageRange, Pagination, PaginationOverride, Part, Pcl, Pdf, Pdfa, Permissions, PickTrayByPDFSize, config_Picture, PlaintextMetadata, Presence, Present, Print, PrintHighQuality, PrintScaling, PrinterName, Producer, Ps, Range2, Record, Relevant, Rename, RenderPolicy, RunScripts, config_Script, ScriptModel, Severity, SilentPrint, Staple, StartNode, StartPage, SubmitFormat, SubmitUrl, SubsetBelow, SuppressBanner, Tagged, config_Template, Threshold, To, TemplateCache, Trace, Transform, Type, Uri, config_Validate, ValidateApprovalSignatures, ValidationMessaging, Version, VersionControl, ViewerPreferences, WebClient, Whitespace, Window, Xdc, Xdp, Xsl, Zpl, ConfigNamespace, df, ConnectionSet, EffectiveInputPolicy, EffectiveOutputPolicy, Operation, RootElement, SoapAction, SoapAddress, connection_set_Uri, WsdlAddress, WsdlConnection, XmlConnection, XsdConnection, ConnectionSetNamespace, gf, datasets_Data, Datasets, DatasetsNamespace, bf, CalendarSymbols, CurrencySymbol, CurrencySymbols, DatePattern, DatePatterns, DateTimeSymbols, Day, DayNames, Era, EraNames, locale_set_Locale, locale_set_LocaleSet, Meridiem, MeridiemNames, Month, MonthNames, NumberPattern, NumberPatterns, NumberSymbol, NumberSymbols, TimePattern, TimePatterns, TypeFace, TypeFaces, LocaleSetNamespace, wf, signature_Signature, SignatureNamespace, jf, Stylesheet, StylesheetNamespace, kf, xdp_Xdp, XdpNamespace, yf, qf, vf, Sf, Af, xf, Cf, If, XhtmlObject, A, B, Body, Br, Html, I, Li, Ol, P, Span, Sub, Sup, Ul, XhtmlNamespace, Ff, UnknownNamespace, Root, Empty, Builder, XFAParser, XFAFactory, AnnotationFactory, Annotation, AnnotationBorderStyle, MarkupAnnotation, WidgetAnnotation, TextWidgetAnnotation, ButtonWidgetAnnotation, ChoiceWidgetAnnotation, SignatureWidgetAnnotation, TextAnnotation, LinkAnnotation, PopupAnnotation, FreeTextAnnotation, LineAnnotation, SquareAnnotation, CircleAnnotation, PolylineAnnotation, PolygonAnnotation, CaretAnnotation, InkAnnotation, HighlightAnnotation, UnderlineAnnotation, SquigglyAnnotation, StrikeOutAnnotation, StampAnnotation, FileAttachmentAnnotation, MediaAnnotation, RichMediaAnnotation, ScreenAnnotation, SoundAnnotation, Tf, DatasetXMLParser, DatasetReader, SingleIntersector, Of, Intersector, Word64, Rf, Bf, DecryptStream, Df, Hf, ARCFourCipher, NullCipher, AESBaseCipher, AES128Cipher, AES256Cipher, PDFBase, PDF17, PDF20, CipherTransform, CipherTransformFactory, XRef, Mf, Page, Nf, Pf, _f, PDFDocument, BasePdfManager, LocalPdfManager, NetworkPdfManager, Ef, zf, Lf, Uf, Wf, Xf, Kf, Gf, Vf, $f, MessageHandler2, PageData, DocumentData, XRefWrapper, PDFEditor, BasePDFStream2, BasePDFStreamReader2, BasePDFStreamRangeReader2, PDFWorkerStream, PDFWorkerStreamReader, PDFWorkerStreamRangeReader, WorkerTask, WorkerMessageHandler;
97285
+ var e, t, n, a, r, s, i, o, l2, f, c, h, u, m, p, d, g, b2, w, j, k, y, q, v, S, x, C, T, O, R, D, H, M, N, _, E, z, L, U, W, X, K2, G, V2, $, Y, J, Q, Z, ee, te, ne, ae, re, se, ie, oe, le, fe, ce, he, ue, me, pe, de, ge, be, we, je, ke, ye, qe, ve, Se, Ae, xe, Ce, Ie, Fe, Te, Oe, Re, Be, De, He, Me, Ne, Pe, _e, Ee, ze, Le, Ue, We, Xe, Ke, Ge, Ve, $e, Ye, Je, Qe, Ze, et, tt, nt, rt, st, it, ot, lt, ft, ct, ht, ut, mt, pt, dt, gt, bt, wt, jt, kt, yt, qt, vt, St, At, xt, Ct, It, Ft, Tt, Ot, Rt, Bt, Dt, Ht, Mt, Nt, Pt, _t, Et, zt, Lt, Ut, Wt, Xt, Kt, Gt, Vt, $t, Yt, Jt, Qt, Zt, en, tn, nn, an, rn, sn, on, ln, PasswordException2, UnknownErrorException2, InvalidPDFException2, ResponseException2, FormatError2, AbortException2, FeatureTest2, Util2, fn, cn, makeArr2, makeMap2, makeObj2, makeSet2, hn, un, mn, pn, dn, Name, Cmd, nonSerializable, Dict, Ref, RefSet, RefMap, BaseStream, gn, bn, wn, jn, kn, yn, qn, vn, MissingDataException, ParserEOFException, XRefEntryException, XRefParseException, Sn, An, xn, Cn, QCMS, In, Fn, Tn, On, Rn, Bn, Dn, Hn, Mn, Nn, ColorSpace, AlternateCS, PatternCS, IndexedCS, DeviceGrayCS, DeviceRgbCS, DeviceRgbaCS, DeviceCmykCS, CalGrayCS, CalRGBCS, LabCS, IccColorSpace, CmykICCBasedCS, Stream, StringStream, NullStream, ChunkedStream, ChunkedStreamManager, ImageResizer, Pn, DecodeStream, StreamsSequenceStream, ColorSpaceUtils, JpegError, DNLMarkerError, EOIMarkerError, _n, En, zn, Ln, Un, Wn, Xn, Kn, Gn, JpegImage, JpegStream, Vn, NullOptimizer, QueueOptimizer, OperatorList, CheckedOperatorList, $n, Yn, Jn, Qn, Zn, ea, ta, Pattern, BaseShading, RadialAxialShading, FunctionBasedShading, MeshStreamReader, na, MeshShading, DummyShading, aa, BinaryCMapStream, BinaryCMapReader, Ascii85Stream, AsciiHexStream, ra, BrotliStream, sa, WasmImage, Jbig2Error, JBig2CCITTFaxImage, CCITTFaxStream, ia, oa, la, fa, ca, FlateStream, Jbig2Stream, ha, JpxError, JpxImage, JpxStream, LZWStream, PredictorStream, RunLengthStream, Parser, ua, Lexer, Linearization, ma, pa, CMap, IdentityCMap, CMapFactory, da, ga, ba, wa, ja, ka, ya, qa, va, Sa, Aa, xa, Ca, Ia, Fa, Ta, Oa, Ra, Ba, Da, Ha, Ma, DataBuilder, Na, Pa, _a2, Ea, za, CFFParser, CFF, CFFHeader, CFFStrings, CFFIndex, CFFDict, La, CFFTopDict, Ua, CFFPrivateDict, Wa, CFFCharset, CFFEncoding, CFFFDSelect, CFFOffsetTracker, CFFCompiler, Xa, Ka, Ga, Va, $a, Ya, Ja, Qa, Za, er, tr, nr, GlyfTable, Glyph2, GlyphHeader, Contour, SimpleGlyph, CompositeGlyph, ToUnicodeMap, IdentityToUnicodeMap, CFFFont, CSS_FONT_INFO2, SYSTEM_FONT_INFO2, FONT_INFO2, PATTERN_INFO2, InfoUtils2, Commands, CompiledFont, TrueTypeCompiled, Type2Compiled, FontRendererFactory, ar, rr, OpenTypeFileBuilder, sr, ir, or, lr, fr, cr, hr, ur, mr, pr, dr, Type1CharString, Type1Parser, Type1Font, gr, br, wr, jr, fonts_Glyph, kr, Font, ErrorFont, yr, qr, vr, Sr, Ar, xr, Cr, Ir, Fr, Tr, Or, Rr, Dr, Hr, Mr, Nr, Pr, _r, Er, zr, Lr, Ur, Wr, Xr, Kr, Gr, Vr, $r, Yr, Jr, Qr, Zr, es, ts10, ns, as, rs, ss, is, os, ls, fs, Token, lexer_Lexer, cs, hs, us, ms, ps, ds, gs, bs, ws, js, ks, ys, qs, vs, PsNode, PsProgram, PsBlock, PsNumber, PsOperator, PsIf, PsIfElse, PsArgNode, PsConstNode, PsUnaryNode, PsBinaryNode, PsTernaryNode, ast_Parser, Ss, PSStackToTree, As, xs, Cs, Is, Fs, Ts, Os, Rs, Bs, Ds, Hs, Ms, Ns, _s, Es, zs, Ls, Us, Ws, Xs, Ks, Gs, Vs, $s, Ys, Js, Qs, Zs, ei, ti, ni, ai, ri, si, ii, oi, li, fi, ci, hi, ui, mi, pi, PsJsCompiler, PSStackBasedInterpreter, di, gi, bi, wi, ji, ki, yi, qi, vi, Si, PsWasmCompiler, BaseLocalCache, LocalImageCache, LocalColorSpaceCache, LocalFunctionCache, LocalGStateCache, LocalTilingPatternCache, RegionalImageCache, GlobalColorSpaceCache, GlobalImageCache, Ai, xi, Ci, Ii, PDFFunctionFactory, PDFFunction, Fi, Ti, Oi, Ri, Bi, Di, Hi, Mi, Ni, Pi, _i, Ei, zi, Wi, MurmurHash3_642, PDFImage, Xi, Ki, Gi, Vi, TimeSlotManager, PartialEvaluator, TranslatedFont, StateManager, TextState, EvalState, EvaluatorPreprocessor, DefaultAppearanceEvaluator, AppearanceStreamEvaluator, FakeUnicodeFont, $i, Yi, NameOrNumberTree, NameTree, NumberTree, FileSpec, Ji, Qi, Zi, eo, to, no, ao, XMLParserBase, SimpleDOMNode, SimpleXMLParser, MetadataParser, ro, so, io, oo, lo, fo, StructTreeRoot, StructElementNode, StructElement, StructTreePage, co, Catalog, ObjectLoader, ho, uo, mo, po, go, bo, wo, jo, ko, yo, qo, vo, So, Ao, xo, Co, Io, Fo, Oo, Ro, Bo, Do, Ho, Mo, No, Po, _o, Eo, zo, Lo, Uo, Wo, Xo, Ko, Go, Vo, $o, Yo, Jo, Qo, Zo, el, tl, nl, al, rl, sl, il, ol, ll, fl, cl, hl, ul, ml, pl, dl, gl, bl, wl, jl, kl, yl, ql, vl, Sl, Al, xl, Cl, Il, Fl, Tl, HTMLResult, FontFinder, FontInfo2, FontSelector, TextMeasure, Rl, Bl, Dl, Hl, Ml, Nl, Pl, _l, El, zl, Ll, Wl, Xl, Kl, Gl, Vl, $l, Yl, Jl, Ql, Zl, ef, tf, nf, af, rf, sf, of, XFAObject, XFAObjectArray, XFAAttribute, XmlObject, ContentObject, OptionObject, StringObject, IntegerObject, Option01, Option10, lf, ff, cf, hf, uf, AppearanceFilter, Arc, Area, Assist, Barcode, Bind, BindItems, Bookend, BooleanElement, Border, Break, BreakAfter, BreakBefore, Button, Calculate, Caption, Certificate, Certificates, CheckButton, ChoiceList, Color, Comb, Connect, ContentArea, Corner, DateElement, DateTime, DateTimeEdit, Decimal, DefaultUi, Desc, DigestMethod, DigestMethods, Draw, Edge, Encoding, Encodings, Encrypt, EncryptData, Encryption, EncryptionMethod, EncryptionMethods, Event2, ExData, ExObject, ExclGroup, Execute, Extras, Field, Fill, Filter, Float, template_Font, Format, Handler, Hyphenation, Image2, ImageEdit, Integer, Issuers, Items, Keep, KeyUsage, Line, Linear, LockDocument, Manifest, Margin, Mdp, Medium, Message, NumericEdit, Occur, Oid, Oids, Overflow, PageArea, PageSet, Para, PasswordEdit, template_Pattern, Picture, Proto, Radial, Reason, Reasons, Rectangle, RefElement, Script2, SetProperty, SignData, Signature, Signing, Solid, Speak, Stipple, Subform, SubformSet, SubjectDN, SubjectDNs, Submit, Template, Text, TextEdit, Time, TimeStamp, ToolTip, Traversal, Traverse, Ui, Validate, Value, Variables, TemplateNamespace, mf, Binder, DataHandler, pf, Acrobat, Acrobat7, ADBE_JSConsole, ADBE_JSDebugger, AddSilentPrint, AddViewerPreferences, AdjustData, AdobeExtensionLevel, Agent, AlwaysEmbed, Amd, config_Area, Attributes, AutoSave, Base, BatchOutput, BehaviorOverride, Cache, Change, Common, Compress, CompressLogicalStructure, CompressObjectStream, Compression, Config, Conformance, ContentCopy, Copies, Creator, CurrentPage, Data, Debug, DefaultTypeface, Destination, DocumentAssembly, Driver, DuplexOption, DynamicRender, Embed, config_Encrypt, config_Encryption, EncryptionLevel, Enforce, Equate, EquateRange, Exclude, ExcludeNS, FlipLabel, config_FontInfo, FormFieldFilling, GroupParent, IfEmpty, IncludeXDPContent, IncrementalLoad, IncrementalMerge, Interactive, Jog, LabelPrinter, Layout, Level, Linearized, Locale, LocaleSet, Log, MapElement, MediumInfo, config_Message, Messaging, Mode, ModifyAnnots, MsgId, NameAttr, NeverEmbed, NumberOfCopies, OpenAction, Output, OutputBin, OutputXSL, Overprint, Packets, PageOffset, PageRange, Pagination, PaginationOverride, Part, Pcl, Pdf, Pdfa, Permissions, PickTrayByPDFSize, config_Picture, PlaintextMetadata, Presence, Present, Print, PrintHighQuality, PrintScaling, PrinterName, Producer, Ps, Range2, Record, Relevant, Rename, RenderPolicy, RunScripts, config_Script, ScriptModel, Severity, SilentPrint, Staple, StartNode, StartPage, SubmitFormat, SubmitUrl, SubsetBelow, SuppressBanner, Tagged, config_Template, Threshold, To, TemplateCache, Trace, Transform, Type, Uri, config_Validate, ValidateApprovalSignatures, ValidationMessaging, Version, VersionControl, ViewerPreferences, WebClient, Whitespace, Window, Xdc, Xdp, Xsl, Zpl, ConfigNamespace, df, ConnectionSet, EffectiveInputPolicy, EffectiveOutputPolicy, Operation, RootElement, SoapAction, SoapAddress, connection_set_Uri, WsdlAddress, WsdlConnection, XmlConnection, XsdConnection, ConnectionSetNamespace, gf, datasets_Data, Datasets, DatasetsNamespace, bf, CalendarSymbols, CurrencySymbol, CurrencySymbols, DatePattern, DatePatterns, DateTimeSymbols, Day, DayNames, Era, EraNames, locale_set_Locale, locale_set_LocaleSet, Meridiem, MeridiemNames, Month, MonthNames, NumberPattern, NumberPatterns, NumberSymbol, NumberSymbols, TimePattern, TimePatterns, TypeFace, TypeFaces, LocaleSetNamespace, wf, signature_Signature, SignatureNamespace, jf, Stylesheet, StylesheetNamespace, kf, xdp_Xdp, XdpNamespace, yf, qf, vf, Sf, Af, xf, Cf, If, XhtmlObject, A, B, Body, Br, Html, I, Li, Ol, P, Span, Sub, Sup, Ul, XhtmlNamespace, Ff, UnknownNamespace, Root, Empty, Builder, XFAParser, XFAFactory, AnnotationFactory, Annotation, AnnotationBorderStyle, MarkupAnnotation, WidgetAnnotation, TextWidgetAnnotation, ButtonWidgetAnnotation, ChoiceWidgetAnnotation, SignatureWidgetAnnotation, TextAnnotation, LinkAnnotation, PopupAnnotation, FreeTextAnnotation, LineAnnotation, SquareAnnotation, CircleAnnotation, PolylineAnnotation, PolygonAnnotation, CaretAnnotation, InkAnnotation, HighlightAnnotation, UnderlineAnnotation, SquigglyAnnotation, StrikeOutAnnotation, StampAnnotation, FileAttachmentAnnotation, MediaAnnotation, RichMediaAnnotation, ScreenAnnotation, SoundAnnotation, Tf, DatasetXMLParser, DatasetReader, SingleIntersector, Of, Intersector, Word64, Rf, Bf, DecryptStream, Df, Hf, ARCFourCipher, NullCipher, AESBaseCipher, AES128Cipher, AES256Cipher, PDFBase, PDF17, PDF20, CipherTransform, CipherTransformFactory, XRef, Mf, Page, Nf, Pf, _f, PDFDocument, BasePdfManager, LocalPdfManager, NetworkPdfManager, Ef, zf, Lf, Uf, Wf, Xf, Kf, Gf, Vf, $f, MessageHandler2, PageData, DocumentData, XRefWrapper, PDFEditor, BasePDFStream2, BasePDFStreamReader2, BasePDFStreamRangeReader2, PDFWorkerStream, PDFWorkerStreamReader, PDFWorkerStreamRangeReader, WorkerTask, WorkerMessageHandler;
97072
97286
  var init_pdf_worker_min = __esm({
97073
97287
  "../../node_modules/pdfjs-dist/legacy/build/pdf.worker.min.mjs?url"() {
97074
97288
  init_define_HHP_CATALOG();
@@ -119217,7 +119431,7 @@ var init_pdf_worker_min = __esm({
119217
119431
  Qr = [1.36898, 1, 1, 0.76305, 0.82784, 0.94935, 0.89364, 0.92241, 0.89073, 0.90706, 0.98472, 0.85283, 0.85283, 1.0664, 1.02058, 0.74505, 0.9219, 0.74505, 1.23456, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.92241, 0.74505, 0.74505, 1.02058, 1.02058, 1.02058, 0.73002, 0.72601, 0.91755, 0.8126, 0.80314, 0.92222, 0.73764, 0.79726, 0.83051, 0.90284, 0.86023, 0.74, 0.8126, 0.84869, 0.96518, 0.91115, 0.8858, 0.79761, 0.8858, 0.74498, 0.73914, 0.81363, 0.89591, 0.83659, 0.89633, 0.85608, 0.8111, 0.90531, 1.0222, 1.22736, 1.0222, 1.27014, 0.89903, 0.90088, 0.86667, 1.0231, 0.896, 1.01411, 0.90083, 1.05099, 1.00512, 0.99793, 1.05326, 1.09377, 0.938, 1.06226, 1.00119, 0.99793, 0.98714, 1.0231, 1.01231, 0.98196, 0.792, 1.19137, 0.99074, 0.962, 1.01915, 0.926, 0.942, 0.856, 0.85034, 0.92006, 0.85034, 1.02058, 0.69067, 0.92241, 0.92241, 0.92241, 0.92241, 0.92006, 0.9332, 0.90088, 0.91882, 0.93484, 0.75339, 1.02058, 0.56866, 0.54324, 0.79519, 1.08595, 1, 1, 0.90088, 1, 0.95325, 0.74505, 0.90088, 1, 0.97198, 0.75339, 0.91009, 0.91009, 0.91009, 0.66466, 0.91755, 0.91755, 0.91755, 0.91755, 0.91755, 0.91755, 0.788, 0.80314, 0.73764, 0.73764, 0.73764, 0.73764, 0.86023, 0.86023, 0.86023, 0.86023, 0.92915, 0.91115, 0.8858, 0.8858, 0.8858, 0.8858, 0.8858, 1.02058, 0.8858, 0.89591, 0.89591, 0.89591, 0.89591, 0.8111, 0.79611, 0.89713, 0.86667, 0.86667, 0.86667, 0.86667, 0.86667, 0.86667, 0.86936, 0.896, 0.90083, 0.90083, 0.90083, 0.90083, 0.84224, 0.84224, 0.84224, 0.84224, 0.97276, 0.99793, 0.98714, 0.98714, 0.98714, 0.98714, 0.98714, 1.08595, 0.89876, 0.99074, 0.99074, 0.99074, 0.99074, 0.942, 1.0231, 0.942, 0.91755, 0.86667, 0.91755, 0.86667, 0.91755, 0.86667, 0.80314, 0.896, 0.80314, 0.896, 0.80314, 0.896, 0.80314, 0.896, 0.92222, 0.93372, 0.92915, 1.01411, 0.73764, 0.90083, 0.73764, 0.90083, 0.73764, 0.90083, 0.73764, 0.90083, 0.73764, 0.90083, 0.83051, 1.00512, 0.83051, 1.00512, 0.83051, 1.00512, 1, 1, 0.90284, 0.99793, 0.90976, 0.99793, 0.86023, 0.84224, 0.86023, 0.84224, 0.86023, 0.84224, 0.86023, 1.05326, 0.86023, 0.84224, 0.82873, 1.07469, 0.74, 1.09377, 1, 1, 0.938, 0.84869, 1.06226, 1, 1, 0.84869, 0.83704, 0.84869, 0.81441, 0.85588, 1.08927, 0.91115, 0.99793, 1, 1, 0.91115, 0.99793, 0.91887, 0.90991, 0.99793, 0.8858, 0.98714, 0.8858, 0.98714, 0.8858, 0.98714, 0.894, 0.91434, 0.74498, 0.98196, 1, 1, 0.74498, 0.98196, 0.73914, 0.792, 0.73914, 0.792, 1, 1, 0.73914, 0.792, 1, 1, 0.81363, 0.904, 0.81363, 1.19137, 0.89591, 0.99074, 0.89591, 0.99074, 0.89591, 0.99074, 0.89591, 0.99074, 0.89591, 0.99074, 0.89591, 0.99074, 0.89633, 1.01915, 0.8111, 0.942, 0.8111, 0.90531, 0.856, 0.90531, 0.856, 0.90531, 0.856, 1, 0.92241, 0.91755, 0.86667, 0.788, 0.86936, 0.8858, 0.89876, 1, 1, 0.81363, 1.19137, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90088, 0.90388, 1.03901, 0.92138, 0.78105, 0.7154, 0.86169, 0.80513, 0.94007, 0.82528, 0.98612, 1.06226, 0.91755, 0.8126, 0.81884, 0.92819, 0.73764, 0.90531, 0.90284, 0.8858, 0.86023, 0.8126, 0.91172, 0.96518, 0.91115, 0.83089, 0.8858, 0.87791, 0.79761, 0.89297, 0.81363, 0.88157, 0.89992, 0.85608, 0.81992, 0.94307, 0.86023, 0.88157, 0.95308, 0.98699, 0.99793, 1.06226, 0.95817, 0.95308, 0.97358, 0.928, 0.98088, 0.98699, 0.92761, 0.99793, 0.96017, 1.06226, 0.986, 0.944, 0.95978, 0.938, 0.96705, 0.98714, 0.80442, 0.98972, 1, 0.89762, 1.04552, 0.95817, 0.99007, 0.87064, 0.91879, 0.88888, 1.06226, 0.95817, 0.98714, 0.95817, 0.88888, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.89633, 1.01915, 0.89633, 1.01915, 0.89633, 1.01915, 0.8111, 0.942, 0.9219, 1, 0.89903, 1, 1, 1, 0.93173, 0.93173, 0.93173, 1, 1.06304, 1.06304, 1.06904, 0.89903, 0.89903, 0.80549, 1, 1.156, 1, 1, 0.76575, 0.76575, 1, 1, 0.72458, 1, 1, 1, 1, 0.92241, 1, 1, 1, 0.619, 1, 1.36145, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.07257, 1, 0.74705, 0.71119, 1.02058, 1.024, 1.02119, 1, 1, 1.1536, 1.08595, 1.08595, 1, 1.08595, 1.08595, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.05638, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
119218
119432
  Zr = { lineHeight: 1.2, lineGap: 0.2 };
119219
119433
  es = [1.76738, 1, 1, 0.99297, 0.9824, 1.04016, 1.06497, 1.03424, 0.97529, 1.17647, 1.23203, 1.1085, 1.1085, 1.16939, 1.2107, 0.9754, 1.21408, 0.9754, 1.59578, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 1.03424, 0.81378, 0.81378, 1.2107, 1.2107, 1.2107, 0.71703, 0.97847, 0.97363, 0.88776, 0.8641, 1.02096, 0.79795, 0.85132, 0.914, 1.06085, 1.1406, 0.8007, 0.89858, 0.83693, 1.14889, 1.09398, 0.97489, 0.92094, 0.97489, 0.90399, 0.84041, 0.95923, 1.00135, 1, 1.06467, 0.98243, 0.90996, 0.99361, 1.1085, 1.56942, 1.1085, 1.2107, 0.74627, 0.94282, 0.96752, 1.01519, 0.86304, 1.01359, 0.97278, 1.15103, 1.01359, 0.98561, 1.02285, 1.02285, 1.00527, 1.02285, 1.0302, 0.99041, 1.0008, 1.01519, 1.01359, 1.02258, 0.79104, 1.16862, 0.99041, 0.97454, 1.02511, 0.99298, 0.96752, 0.95801, 0.94856, 1.16579, 0.94856, 1.2107, 0.9824, 1.03424, 1.03424, 1, 1.03424, 1.16579, 0.8727, 1.3871, 1.18622, 1.10818, 1.04478, 1.2107, 1.18622, 0.75155, 0.94994, 1.28826, 1.21408, 1.21408, 0.91056, 1, 0.91572, 0.9754, 0.64663, 1.18328, 1.24866, 1.04478, 1.14169, 1.15749, 1.17389, 0.71703, 0.97363, 0.97363, 0.97363, 0.97363, 0.97363, 0.97363, 0.93506, 0.8641, 0.79795, 0.79795, 0.79795, 0.79795, 1.1406, 1.1406, 1.1406, 1.1406, 1.02096, 1.09398, 0.97426, 0.97426, 0.97426, 0.97426, 0.97426, 1.2107, 0.97489, 1.00135, 1.00135, 1.00135, 1.00135, 0.90996, 0.92094, 1.02798, 0.96752, 0.96752, 0.96752, 0.96752, 0.96752, 0.96752, 0.93136, 0.86304, 0.97278, 0.97278, 0.97278, 0.97278, 1.02285, 1.02285, 1.02285, 1.02285, 0.97122, 0.99041, 1, 1, 1, 1, 1, 1.28826, 1.0008, 0.99041, 0.99041, 0.99041, 0.99041, 0.96752, 1.01519, 0.96752, 0.97363, 0.96752, 0.97363, 0.96752, 0.97363, 0.96752, 0.8641, 0.86304, 0.8641, 0.86304, 0.8641, 0.86304, 0.8641, 0.86304, 1.02096, 1.03057, 1.02096, 1.03517, 0.79795, 0.97278, 0.79795, 0.97278, 0.79795, 0.97278, 0.79795, 0.97278, 0.79795, 0.97278, 0.914, 1.01359, 0.914, 1.01359, 0.914, 1.01359, 1, 1, 1.06085, 0.98561, 1.06085, 1.00879, 1.1406, 1.02285, 1.1406, 1.02285, 1.1406, 1.02285, 1.1406, 1.02285, 1.1406, 1.02285, 0.97138, 1.08692, 0.8007, 1.02285, 1, 1, 1.00527, 0.83693, 1.02285, 1, 1, 0.83693, 0.9455, 0.83693, 0.90418, 0.83693, 1.13005, 1.09398, 0.99041, 1, 1, 1.09398, 0.99041, 0.96692, 1.09251, 0.99041, 0.97489, 1.0008, 0.97489, 1.0008, 0.97489, 1.0008, 0.93994, 0.97931, 0.90399, 1.02258, 1, 1, 0.90399, 1.02258, 0.84041, 0.79104, 0.84041, 0.79104, 0.84041, 0.79104, 0.84041, 0.79104, 1, 1, 0.95923, 1.07034, 0.95923, 1.16862, 1.00135, 0.99041, 1.00135, 0.99041, 1.00135, 0.99041, 1.00135, 0.99041, 1.00135, 0.99041, 1.00135, 0.99041, 1.06467, 1.02511, 0.90996, 0.96752, 0.90996, 0.99361, 0.95801, 0.99361, 0.95801, 0.99361, 0.95801, 1.07733, 1.03424, 0.97363, 0.96752, 0.93506, 0.93136, 0.97489, 1.0008, 1, 1, 0.95923, 1.16862, 1.15103, 1.15103, 1.01173, 1.03959, 0.75953, 0.81378, 0.79912, 1.15103, 1.21994, 0.95161, 0.87815, 1.01149, 0.81525, 0.7676, 0.98167, 1.01134, 1.02546, 0.84097, 1.03089, 1.18102, 0.97363, 0.88776, 0.85134, 0.97826, 0.79795, 0.99361, 1.06085, 0.97489, 1.1406, 0.89858, 1.0388, 1.14889, 1.09398, 0.86039, 0.97489, 1.0595, 0.92094, 0.94793, 0.95923, 0.90996, 0.99346, 0.98243, 1.02112, 0.95493, 1.1406, 0.90996, 1.03574, 1.02597, 1.0008, 1.18102, 1.06628, 1.03574, 1.0192, 1.01932, 1.00886, 0.97531, 1.0106, 1.0008, 1.13189, 1.18102, 1.02277, 0.98683, 1.0016, 0.99561, 1.07237, 1.0008, 0.90434, 0.99921, 0.93803, 0.8965, 1.23085, 1.06628, 1.04983, 0.96268, 1.0499, 0.98439, 1.18102, 1.06628, 1.0008, 1.06628, 0.98439, 0.79795, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.09466, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.97278, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.02065, 1, 1, 1, 1, 1, 1, 1.06467, 1.02511, 1.06467, 1.02511, 1.06467, 1.02511, 0.90996, 0.96752, 1, 1.21408, 0.89903, 1, 1, 0.75155, 1.04394, 1.04394, 1.04394, 1.04394, 0.98633, 0.98633, 0.98633, 0.73047, 0.73047, 1.20642, 0.91211, 1.25635, 1.222, 1.02956, 1.03372, 1.03372, 0.96039, 1.24633, 1, 1.12454, 0.93503, 1.03424, 1.19687, 1.03424, 1, 1, 1, 0.771, 1, 1, 1.15749, 1.15749, 1.15749, 1.10948, 0.86279, 0.94434, 0.86279, 0.94434, 0.86182, 1, 1, 1.16897, 1, 0.96085, 0.90137, 1.2107, 1.18416, 1.13973, 0.69825, 0.9716, 2.10339, 1.29004, 1.29004, 1.21172, 1.29004, 1.29004, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.42603, 1, 0.99862, 0.99862, 1, 0.87025, 0.87025, 0.87025, 0.87025, 1.18874, 1.42603, 1, 1.42603, 1.42603, 0.99862, 1, 1, 1, 1, 1, 1.2886, 1.04315, 1.15296, 1.34163, 1, 1, 1, 1.09193, 1.09193, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
119220
- ts8 = { lineHeight: 1.33008, lineGap: 0 };
119434
+ ts10 = { lineHeight: 1.33008, lineGap: 0 };
119221
119435
  ns = [1.76738, 1, 1, 0.98946, 1.03959, 1.04016, 1.02809, 1.036, 0.97639, 1.10953, 1.23203, 1.11144, 1.11144, 1.16939, 1.21237, 0.9754, 1.21261, 0.9754, 1.59754, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 1.036, 0.81378, 0.81378, 1.21237, 1.21237, 1.21237, 0.73541, 0.97847, 0.97363, 0.89723, 0.87897, 1.0426, 0.79429, 0.85292, 0.91149, 1.05815, 1.1406, 0.79631, 0.90128, 0.83853, 1.04396, 1.10615, 0.97552, 0.94436, 0.97552, 0.88641, 0.80527, 0.96083, 1.00135, 1, 1.06777, 0.9817, 0.91142, 0.99361, 1.11144, 1.57293, 1.11144, 1.21237, 0.74627, 1.31818, 1.06585, 0.97042, 0.83055, 0.97042, 0.93503, 1.1261, 0.97042, 0.97922, 1.14236, 0.94552, 1.01054, 1.14236, 1.02471, 0.97922, 0.94165, 0.97042, 0.97042, 1.0276, 0.78929, 1.1261, 0.97922, 0.95874, 1.02197, 0.98507, 0.96752, 0.97168, 0.95107, 1.16579, 0.95107, 1.21237, 1.03959, 1.036, 1.036, 1, 1.036, 1.16579, 0.87357, 1.31818, 1.18754, 1.26781, 1.05356, 1.21237, 1.18622, 0.79487, 0.94994, 1.29004, 1.24047, 1.24047, 1.31818, 1, 0.91484, 0.9754, 1.31818, 1.1349, 1.24866, 1.05356, 1.13934, 1.15574, 1.17389, 0.73541, 0.97363, 0.97363, 0.97363, 0.97363, 0.97363, 0.97363, 0.94385, 0.87897, 0.79429, 0.79429, 0.79429, 0.79429, 1.1406, 1.1406, 1.1406, 1.1406, 1.0426, 1.10615, 0.97552, 0.97552, 0.97552, 0.97552, 0.97552, 1.21237, 0.97552, 1.00135, 1.00135, 1.00135, 1.00135, 0.91142, 0.94436, 0.98721, 1.06585, 1.06585, 1.06585, 1.06585, 1.06585, 1.06585, 0.96705, 0.83055, 0.93503, 0.93503, 0.93503, 0.93503, 1.14236, 1.14236, 1.14236, 1.14236, 0.93125, 0.97922, 0.94165, 0.94165, 0.94165, 0.94165, 0.94165, 1.29004, 0.94165, 0.97922, 0.97922, 0.97922, 0.97922, 0.96752, 0.97042, 0.96752, 0.97363, 1.06585, 0.97363, 1.06585, 0.97363, 1.06585, 0.87897, 0.83055, 0.87897, 0.83055, 0.87897, 0.83055, 0.87897, 0.83055, 1.0426, 1.0033, 1.0426, 0.97042, 0.79429, 0.93503, 0.79429, 0.93503, 0.79429, 0.93503, 0.79429, 0.93503, 0.79429, 0.93503, 0.91149, 0.97042, 0.91149, 0.97042, 0.91149, 0.97042, 1, 1, 1.05815, 0.97922, 1.05815, 0.97922, 1.1406, 1.14236, 1.1406, 1.14236, 1.1406, 1.14236, 1.1406, 1.14236, 1.1406, 1.14236, 0.97441, 1.04302, 0.79631, 1.01582, 1, 1, 1.01054, 0.83853, 1.14236, 1, 1, 0.83853, 1.09125, 0.83853, 0.90418, 0.83853, 1.19508, 1.10615, 0.97922, 1, 1, 1.10615, 0.97922, 1.01034, 1.10466, 0.97922, 0.97552, 0.94165, 0.97552, 0.94165, 0.97552, 0.94165, 0.91602, 0.91981, 0.88641, 1.0276, 1, 1, 0.88641, 1.0276, 0.80527, 0.78929, 0.80527, 0.78929, 0.80527, 0.78929, 0.80527, 0.78929, 1, 1, 0.96083, 1.05403, 0.95923, 1.16862, 1.00135, 0.97922, 1.00135, 0.97922, 1.00135, 0.97922, 1.00135, 0.97922, 1.00135, 0.97922, 1.00135, 0.97922, 1.06777, 1.02197, 0.91142, 0.96752, 0.91142, 0.99361, 0.97168, 0.99361, 0.97168, 0.99361, 0.97168, 1.23199, 1.036, 0.97363, 1.06585, 0.94385, 0.96705, 0.97552, 0.94165, 1, 1, 0.96083, 1.1261, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 1.31818, 0.95161, 1.27126, 1.00811, 0.83284, 0.77702, 0.99137, 0.95253, 1.0347, 0.86142, 1.07205, 1.14236, 0.97363, 0.89723, 0.86869, 1.09818, 0.79429, 0.99361, 1.05815, 0.97552, 1.1406, 0.90128, 1.06662, 1.04396, 1.10615, 0.84918, 0.97552, 1.04694, 0.94436, 0.98015, 0.96083, 0.91142, 1.00356, 0.9817, 1.01945, 0.98999, 1.1406, 0.91142, 1.04961, 0.9898, 1.00639, 1.14236, 1.07514, 1.04961, 0.99607, 1.02897, 1.008, 0.9898, 0.95134, 1.00639, 1.11121, 1.14236, 1.00518, 0.97981, 1.02186, 1, 1.08578, 0.94165, 0.99314, 0.98387, 0.93028, 0.93377, 1.35125, 1.07514, 1.10687, 0.93491, 1.04232, 1.00351, 1.14236, 1.07514, 0.94165, 1.07514, 1.00351, 0.79429, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.09097, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.93503, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.96609, 1, 1, 1, 1, 1, 1, 1.06777, 1.02197, 1.06777, 1.02197, 1.06777, 1.02197, 0.91142, 0.96752, 1, 1.21261, 0.89903, 1, 1, 0.75155, 1.04745, 1.04745, 1.04745, 1.04394, 0.98633, 0.98633, 0.98633, 0.72959, 0.72959, 1.20502, 0.91406, 1.26514, 1.222, 1.02956, 1.03372, 1.03372, 0.96039, 1.24633, 1, 1.09125, 0.93327, 1.03336, 1.16541, 1.036, 1, 1, 1, 0.771, 1, 1, 1.15574, 1.15574, 1.15574, 1.15574, 0.86364, 0.94434, 0.86279, 0.94434, 0.86224, 1, 1, 1.16798, 1, 0.96085, 0.90068, 1.21237, 1.18416, 1.13904, 0.69825, 0.9716, 2.10339, 1.29004, 1.29004, 1.21339, 1.29004, 1.29004, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.42603, 1, 0.99862, 0.99862, 1, 0.87025, 0.87025, 0.87025, 0.87025, 1.18775, 1.42603, 1, 1.42603, 1.42603, 0.99862, 1, 1, 1, 1, 1, 1.2886, 1.04315, 1.15296, 1.34163, 1, 1, 1, 1.13269, 1.13269, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
119222
119436
  as = { lineHeight: 1.33008, lineGap: 0 };
119223
119437
  rs = [1.76738, 1, 1, 0.98946, 1.14763, 1.05365, 1.06234, 0.96927, 0.92586, 1.15373, 1.18414, 0.91349, 0.91349, 1.07403, 1.17308, 0.78383, 1.20088, 0.78383, 1.42531, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.96927, 0.78383, 0.78383, 1.17308, 1.17308, 1.17308, 0.77349, 0.94565, 0.94729, 0.85944, 0.88506, 0.9858, 0.74817, 0.80016, 0.88449, 0.98039, 0.95782, 0.69238, 0.89898, 0.83231, 0.98183, 1.03989, 0.96924, 0.86237, 0.96924, 0.80595, 0.74524, 0.86091, 0.95402, 0.94143, 0.98448, 0.8858, 0.83089, 0.93285, 1.0949, 1.39016, 1.0949, 1.45994, 0.74627, 1.04839, 0.97454, 0.97454, 0.87207, 0.97454, 0.87533, 1.06151, 0.97454, 1.00176, 1.16484, 1.08132, 0.98047, 1.16484, 1.02989, 1.01054, 0.96225, 0.97454, 0.97454, 1.06598, 0.79004, 1.16344, 1.00351, 0.94629, 0.9973, 0.91016, 0.96777, 0.9043, 0.91082, 0.92481, 0.91082, 1.17308, 0.95748, 0.96927, 0.96927, 1, 0.96927, 0.92481, 0.80597, 1.04839, 1.23393, 1.1781, 0.9245, 1.17308, 1.20808, 0.63218, 0.94261, 1.24822, 1.09971, 1.09971, 1.04839, 1, 0.85273, 0.78032, 1.04839, 1.09971, 1.22326, 0.9245, 1.09836, 1.13525, 1.15222, 0.70424, 0.94729, 0.94729, 0.94729, 0.94729, 0.94729, 0.94729, 0.85498, 0.88506, 0.74817, 0.74817, 0.74817, 0.74817, 0.95782, 0.95782, 0.95782, 0.95782, 0.9858, 1.03989, 0.96924, 0.96924, 0.96924, 0.96924, 0.96924, 1.17308, 0.96924, 0.95402, 0.95402, 0.95402, 0.95402, 0.83089, 0.86237, 0.88409, 0.97454, 0.97454, 0.97454, 0.97454, 0.97454, 0.97454, 0.92916, 0.87207, 0.87533, 0.87533, 0.87533, 0.87533, 0.93146, 0.93146, 0.93146, 0.93146, 0.93854, 1.01054, 0.96225, 0.96225, 0.96225, 0.96225, 0.96225, 1.24822, 0.8761, 1.00351, 1.00351, 1.00351, 1.00351, 0.96777, 0.97454, 0.96777, 0.94729, 0.97454, 0.94729, 0.97454, 0.94729, 0.97454, 0.88506, 0.87207, 0.88506, 0.87207, 0.88506, 0.87207, 0.88506, 0.87207, 0.9858, 0.95391, 0.9858, 0.97454, 0.74817, 0.87533, 0.74817, 0.87533, 0.74817, 0.87533, 0.74817, 0.87533, 0.74817, 0.87533, 0.88449, 0.97454, 0.88449, 0.97454, 0.88449, 0.97454, 1, 1, 0.98039, 1.00176, 0.98039, 1.00176, 0.95782, 0.93146, 0.95782, 0.93146, 0.95782, 0.93146, 0.95782, 1.16484, 0.95782, 0.93146, 0.84421, 1.12761, 0.69238, 1.08132, 1, 1, 0.98047, 0.83231, 1.16484, 1, 1, 0.84723, 1.04861, 0.84723, 0.78755, 0.83231, 1.23736, 1.03989, 1.01054, 1, 1, 1.03989, 1.01054, 0.9857, 1.03849, 1.01054, 0.96924, 0.96225, 0.96924, 0.96225, 0.96924, 0.96225, 0.92383, 0.90171, 0.80595, 1.06598, 1, 1, 0.80595, 1.06598, 0.74524, 0.79004, 0.74524, 0.79004, 0.74524, 0.79004, 0.74524, 0.79004, 1, 1, 0.86091, 1.02759, 0.85771, 1.16344, 0.95402, 1.00351, 0.95402, 1.00351, 0.95402, 1.00351, 0.95402, 1.00351, 0.95402, 1.00351, 0.95402, 1.00351, 0.98448, 0.9973, 0.83089, 0.96777, 0.83089, 0.93285, 0.9043, 0.93285, 0.9043, 0.93285, 0.9043, 1.31868, 0.96927, 0.94729, 0.97454, 0.85498, 0.92916, 0.96924, 0.8761, 1, 1, 0.86091, 1.16344, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 1.04839, 0.81965, 0.81965, 0.94729, 0.78032, 0.71022, 0.90883, 0.84171, 0.99877, 0.77596, 1.05734, 1.2, 0.94729, 0.85944, 0.82791, 0.9607, 0.74817, 0.93285, 0.98039, 0.96924, 0.95782, 0.89898, 0.98316, 0.98183, 1.03989, 0.78614, 0.96924, 0.97642, 0.86237, 0.86075, 0.86091, 0.83089, 0.90082, 0.8858, 0.97296, 1.01284, 0.95782, 0.83089, 1.0976, 1.04, 1.03342, 1.2, 1.0675, 1.0976, 0.98205, 1.03809, 1.05097, 1.04, 0.95364, 1.03342, 1.05401, 1.2, 1.02148, 1.0119, 1.04724, 1.0127, 1.02732, 0.96225, 0.8965, 0.97783, 0.93574, 0.94818, 1.30679, 1.0675, 1.11826, 0.99821, 1.0557, 1.0326, 1.2, 1.0675, 0.96225, 1.0675, 1.0326, 0.74817, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.03754, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.87533, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.98705, 1, 1, 1, 1, 1, 1, 0.98448, 0.9973, 0.98448, 0.9973, 0.98448, 0.9973, 0.83089, 0.96777, 1, 1.20088, 0.89903, 1, 1, 0.75155, 0.94945, 0.94945, 0.94945, 0.94945, 1.12317, 1.12317, 1.12317, 0.67603, 0.67603, 1.15621, 0.73584, 1.21191, 1.22135, 1.06483, 0.94868, 0.94868, 0.95996, 1.24633, 1, 1.07497, 0.87709, 0.96927, 1.01473, 0.96927, 1, 1, 1, 0.77295, 1, 1, 1.09836, 1.09836, 1.09836, 1.01522, 0.86321, 0.94434, 0.8649, 0.94434, 0.86182, 1, 1, 1.083, 1, 0.91578, 0.86438, 1.17308, 1.18416, 1.14589, 0.69825, 0.97622, 1.96791, 1.24822, 1.24822, 1.17308, 1.24822, 1.24822, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1.42603, 1, 0.99862, 0.99862, 1, 0.87025, 0.87025, 0.87025, 0.87025, 1.17984, 1.42603, 1, 1.42603, 1.42603, 0.99862, 1, 1, 1, 1, 1, 1.2886, 1.04315, 1.15296, 1.34163, 1, 1, 1, 1.10742, 1.10742, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
@@ -119238,7 +119452,7 @@ var init_pdf_worker_min = __esm({
119238
119452
  e2["Calibri-Italic"] = { name: "LiberationSans-Italic", factors: Ar, baseWidths: Lr, baseMapping: Ur, metrics: xr };
119239
119453
  e2["Calibri-BoldItalic"] = { name: "LiberationSans-BoldItalic", factors: vr, baseWidths: Er, baseMapping: zr, metrics: Sr };
119240
119454
  e2["Segoeui-Regular"] = { name: "LiberationSans-Regular", factors: is, baseWidths: Wr, baseMapping: Xr, metrics: os };
119241
- e2["Segoeui-Bold"] = { name: "LiberationSans-Bold", factors: es, baseWidths: Pr, baseMapping: _r, metrics: ts8 };
119455
+ e2["Segoeui-Bold"] = { name: "LiberationSans-Bold", factors: es, baseWidths: Pr, baseMapping: _r, metrics: ts10 };
119242
119456
  e2["Segoeui-Italic"] = { name: "LiberationSans-Italic", factors: rs, baseWidths: Lr, baseMapping: Ur, metrics: ss };
119243
119457
  e2["Segoeui-BoldItalic"] = { name: "LiberationSans-BoldItalic", factors: ns, baseWidths: Er, baseMapping: zr, metrics: as };
119244
119458
  e2["Helvetica-Regular"] = e2.Helvetica = { name: "LiberationSans-Regular", factors: Mr, baseWidths: Wr, baseMapping: Xr, metrics: Nr };
@@ -167185,9 +167399,9 @@ function stateOf(view) {
167185
167399
  build: b3 && view.live ? { ok: b3.ok, ms: b3.ms, screens: b3.screens, at: b3.at, run: view.live.runId } : null
167186
167400
  };
167187
167401
  }
167188
- function frameFor(state, prev, ts44, v2, key4) {
167189
- if (key4 || !prev) return { ts: ts44, v: v2, key: true, ...state };
167190
- const f2 = { ts: ts44, v: v2 };
167402
+ function frameFor(state, prev, ts46, v2, key4) {
167403
+ if (key4 || !prev) return { ts: ts46, v: v2, key: true, ...state };
167404
+ const f2 = { ts: ts46, v: v2 };
167191
167405
  if (!same2(state.step, prev.step)) f2.step = state.step;
167192
167406
  if (!same2(state.now, prev.now)) f2.now = state.now;
167193
167407
  const screens = {};
@@ -176557,7 +176771,7 @@ function compress(arr7, options2, matcher, readonlyMatcher) {
176557
176771
  const compressedObj = {};
176558
176772
  for (let i2 = 0; i2 < arr7.length; i2++) {
176559
176773
  const tagObj = arr7[i2];
176560
- const property3 = propName2(tagObj);
176774
+ const property3 = propName3(tagObj);
176561
176775
  if (property3 !== void 0 && property3 !== options2.textNodeName) {
176562
176776
  const rawAttrs = stripAttributePrefix(
176563
176777
  tagObj[":@"] || {},
@@ -176610,7 +176824,7 @@ function compress(arr7, options2, matcher, readonlyMatcher) {
176610
176824
  } else if (text32 !== void 0) compressedObj[options2.textNodeName] = text32;
176611
176825
  return compressedObj;
176612
176826
  }
176613
- function propName2(obj30) {
176827
+ function propName3(obj30) {
176614
176828
  const keys2 = Object.keys(obj30);
176615
176829
  for (let i2 = 0; i2 < keys2.length; i2++) {
176616
176830
  const key4 = keys2[i2];
@@ -176745,7 +176959,7 @@ var init_util3 = __esm({
176745
176959
  function detectXmlVersionFromArray(jArray, options2) {
176746
176960
  if (!Array.isArray(jArray) || jArray.length === 0) return "1.0";
176747
176961
  const first = jArray[0];
176748
- const firstKey = propName3(first);
176962
+ const firstKey = propName4(first);
176749
176963
  if (firstKey === "?xml") {
176750
176964
  const attrs = first[":@"];
176751
176965
  if (attrs) {
@@ -176796,7 +177010,7 @@ function arrToStr(arr7, options2, indentation, matcher, stopNodeExpressions, xml
176796
177010
  }
176797
177011
  for (let i2 = 0; i2 < arr7.length; i2++) {
176798
177012
  const tagObj = arr7[i2];
176799
- const rawTagName = propName3(tagObj);
177013
+ const rawTagName = propName4(tagObj);
176800
177014
  if (rawTagName === void 0) continue;
176801
177015
  const isSpecialName = rawTagName === options2.textNodeName || rawTagName === options2.cdataPropName || rawTagName === options2.commentPropName || rawTagName[0] === "?";
176802
177016
  const tagName2 = isSpecialName ? rawTagName : resolveTagName(rawTagName, false, options2, matcher, xmlVersion);
@@ -176896,7 +177110,7 @@ function getRawContent(arr7, options2) {
176896
177110
  let content = "";
176897
177111
  for (let i2 = 0; i2 < arr7.length; i2++) {
176898
177112
  const item2 = arr7[i2];
176899
- const tagName2 = propName3(item2);
177113
+ const tagName2 = propName4(item2);
176900
177114
  if (tagName2 === options2.textNodeName) {
176901
177115
  content += item2[tagName2];
176902
177116
  } else if (tagName2 === options2.cdataPropName) {
@@ -176932,7 +177146,7 @@ function attr_to_str_raw(attrMap, options2) {
176932
177146
  }
176933
177147
  return attrStr;
176934
177148
  }
176935
- function propName3(obj30) {
177149
+ function propName4(obj30) {
176936
177150
  const keys2 = Object.keys(obj30);
176937
177151
  for (let i2 = 0; i2 < keys2.length; i2++) {
176938
177152
  const key4 = keys2[i2];
@@ -179163,7 +179377,7 @@ __export(template_trim_exports, {
179163
179377
  });
179164
179378
  import { cpSync, existsSync as existsSync54, mkdirSync as mkdirSync27, readdirSync as readdirSync31, readFileSync as readFileSync59, renameSync as renameSync11, rmSync as rmSync16, statSync as statSync18, writeFileSync as writeFileSync23 } from "node:fs";
179165
179379
  import { dirname as dirname33, join as join48 } from "node:path";
179166
- import ts9 from "typescript";
179380
+ import ts11 from "typescript";
179167
179381
  function routeMatcher(pattern) {
179168
179382
  const detail = /^\^([A-Za-z0-9_]+)\(\?:\[_\/\]\(\.\+\)\)\?\$$/.exec(pattern);
179169
179383
  if (detail) {
@@ -179328,11 +179542,11 @@ function parseJson2(text32, what) {
179328
179542
  }
179329
179543
  }
179330
179544
  function configWithoutComments(text32) {
179331
- const scanner = ts9.createScanner(ts9.ScriptTarget.Latest, false, ts9.LanguageVariant.Standard, text32);
179545
+ const scanner = ts11.createScanner(ts11.ScriptTarget.Latest, false, ts11.LanguageVariant.Standard, text32);
179332
179546
  const parts = [];
179333
179547
  let end2 = 0;
179334
- for (let token = scanner.scan(); token !== ts9.SyntaxKind.EndOfFileToken; token = scanner.scan()) {
179335
- if (token !== ts9.SyntaxKind.SingleLineCommentTrivia && token !== ts9.SyntaxKind.MultiLineCommentTrivia) continue;
179548
+ for (let token = scanner.scan(); token !== ts11.SyntaxKind.EndOfFileToken; token = scanner.scan()) {
179549
+ if (token !== ts11.SyntaxKind.SingleLineCommentTrivia && token !== ts11.SyntaxKind.MultiLineCommentTrivia) continue;
179336
179550
  parts.push(text32.slice(end2, scanner.getTokenPos()), text32.slice(scanner.getTokenPos(), scanner.getTextPos()).replace(/[^\r\n]/g, " "));
179337
179551
  end2 = scanner.getTextPos();
179338
179552
  }
@@ -180542,7 +180756,7 @@ __export(template_adopt_exports, {
180542
180756
  });
180543
180757
  import { existsSync as existsSync55, lstatSync as lstatSync19, mkdirSync as mkdirSync28, readdirSync as readdirSync32, readFileSync as readFileSync60, renameSync as renameSync12, statSync as statSync19, writeFileSync as writeFileSync24 } from "node:fs";
180544
180758
  import { dirname as dirname34, join as join49, posix as posix2, relative as relative13 } from "node:path";
180545
- import ts10 from "typescript";
180759
+ import ts12 from "typescript";
180546
180760
  function readAppEntrySources(dir) {
180547
180761
  const devPath = join49(dir, "dev", "index.ts");
180548
180762
  const configPath = join49(dir, "config.ts");
@@ -180576,7 +180790,7 @@ function readAppSources(dir) {
180576
180790
  return { dev, config, workers };
180577
180791
  }
180578
180792
  function moduleEvaluationCalls(text32, fileName = "worker.ts") {
180579
- const kind = /\.[cm]?tsx$|\.jsx$/.test(fileName) ? ts10.ScriptKind.TSX : ts10.ScriptKind.TS;
180793
+ const kind = /\.[cm]?tsx$|\.jsx$/.test(fileName) ? ts12.ScriptKind.TSX : ts12.ScriptKind.TS;
180580
180794
  const key4 = `${kind}\0${text32}`;
180581
180795
  const cached3 = moduleCallsCache.get(key4);
180582
180796
  if (cached3) return [...cached3];
@@ -180590,41 +180804,41 @@ function moduleEvaluationParses() {
180590
180804
  }
180591
180805
  function parseModuleEvaluationCalls(text32, fileName, kind) {
180592
180806
  moduleCallParses += 1;
180593
- const source2 = ts10.createSourceFile(fileName, text32, ts10.ScriptTarget.Latest, false, kind);
180807
+ const source2 = ts12.createSourceFile(fileName, text32, ts12.ScriptTarget.Latest, false, kind);
180594
180808
  const out2 = [];
180595
180809
  const label4 = (callee) => {
180596
180810
  let e2 = callee;
180597
- while (ts10.isNonNullExpression(e2) || ts10.isAsExpression(e2) || ts10.isSatisfiesExpression(e2)) e2 = e2.expression;
180598
- if (ts10.isIdentifier(e2) || ts10.isPropertyAccessExpression(e2)) return `${e2.getText(source2).replace(/\s+/g, "").replace(/\?\./g, ".")}()`;
180599
- if (e2.kind === ts10.SyntaxKind.ImportKeyword) return "import()";
180811
+ while (ts12.isNonNullExpression(e2) || ts12.isAsExpression(e2) || ts12.isSatisfiesExpression(e2)) e2 = e2.expression;
180812
+ if (ts12.isIdentifier(e2) || ts12.isPropertyAccessExpression(e2)) return `${e2.getText(source2).replace(/\s+/g, "").replace(/\?\./g, ".")}()`;
180813
+ if (e2.kind === ts12.SyntaxKind.ImportKeyword) return "import()";
180600
180814
  return "(\u2026)()";
180601
180815
  };
180602
180816
  const visit = (node4) => {
180603
- if (ts10.isHeritageClause(node4)) {
180604
- if (node4.token === ts10.SyntaxKind.ExtendsKeyword) for (const t2 of node4.types) visit(t2.expression);
180817
+ if (ts12.isHeritageClause(node4)) {
180818
+ if (node4.token === ts12.SyntaxKind.ExtendsKeyword) for (const t2 of node4.types) visit(t2.expression);
180605
180819
  return;
180606
180820
  }
180607
180821
  const runsNow = (member) => {
180608
- for (const m2 of ts10.canHaveModifiers(member) ? ts10.getModifiers(member) ?? [] : []) visit(m2);
180609
- for (const d2 of ts10.canHaveDecorators(member) ? ts10.getDecorators(member) ?? [] : []) visit(d2);
180822
+ for (const m2 of ts12.canHaveModifiers(member) ? ts12.getModifiers(member) ?? [] : []) visit(m2);
180823
+ for (const d2 of ts12.canHaveDecorators(member) ? ts12.getDecorators(member) ?? [] : []) visit(d2);
180610
180824
  const name = member.name;
180611
- if (name && ts10.isComputedPropertyName(name)) visit(name.expression);
180825
+ if (name && ts12.isComputedPropertyName(name)) visit(name.expression);
180612
180826
  };
180613
- if (ts10.isFunctionLike(node4) && !ts10.isCallSignatureDeclaration(node4)) return runsNow(node4);
180614
- if (ts10.isPropertyDeclaration(node4) && !node4.modifiers?.some((m2) => m2.kind === ts10.SyntaxKind.StaticKeyword)) return runsNow(node4);
180615
- if (ts10.isDecorator(node4) && !ts10.isCallExpression(node4.expression)) out2.push(`@${label4(node4.expression).slice(0, -2)}`);
180616
- if (ts10.isTypeNode(node4) || ts10.isTypeAliasDeclaration(node4) || ts10.isInterfaceDeclaration(node4)) return;
180617
- if (ts10.isCallExpression(node4)) {
180827
+ if (ts12.isFunctionLike(node4) && !ts12.isCallSignatureDeclaration(node4)) return runsNow(node4);
180828
+ if (ts12.isPropertyDeclaration(node4) && !node4.modifiers?.some((m2) => m2.kind === ts12.SyntaxKind.StaticKeyword)) return runsNow(node4);
180829
+ if (ts12.isDecorator(node4) && !ts12.isCallExpression(node4.expression)) out2.push(`@${label4(node4.expression).slice(0, -2)}`);
180830
+ if (ts12.isTypeNode(node4) || ts12.isTypeAliasDeclaration(node4) || ts12.isInterfaceDeclaration(node4)) return;
180831
+ if (ts12.isCallExpression(node4)) {
180618
180832
  const name = label4(node4.expression);
180619
180833
  if (!PURE_CALLS.has(name.slice(0, -2))) out2.push(name);
180620
- } else if (ts10.isNewExpression(node4)) {
180834
+ } else if (ts12.isNewExpression(node4)) {
180621
180835
  const name = label4(node4.expression).slice(0, -2);
180622
180836
  if (!BUILTIN_CONSTRUCTORS.has(name)) out2.push(`new ${name}()`);
180623
180837
  if (name === "Promise") {
180624
- for (const arg2 of node4.arguments ?? []) if ((ts10.isArrowFunction(arg2) || ts10.isFunctionExpression(arg2)) && arg2.body) visit(arg2.body);
180838
+ for (const arg2 of node4.arguments ?? []) if ((ts12.isArrowFunction(arg2) || ts12.isFunctionExpression(arg2)) && arg2.body) visit(arg2.body);
180625
180839
  }
180626
- } else if (ts10.isTaggedTemplateExpression(node4)) out2.push(label4(node4.tag));
180627
- ts10.forEachChild(node4, visit);
180840
+ } else if (ts12.isTaggedTemplateExpression(node4)) out2.push(label4(node4.tag));
180841
+ ts12.forEachChild(node4, visit);
180628
180842
  };
180629
180843
  visit(source2);
180630
180844
  return out2;
@@ -186228,12 +186442,12 @@ __export(config_push_edit_exports, {
186228
186442
  });
186229
186443
  import { readFileSync as readFileSync64 } from "node:fs";
186230
186444
  import { basename as basename16 } from "node:path";
186231
- import ts11 from "typescript";
186445
+ import ts13 from "typescript";
186232
186446
  function enablePushInConfig(source2, options2) {
186233
186447
  const pingAppName = DEFAULT_PING_APP_NAME;
186234
186448
  const fileName = options2.fileName ?? "config.ts";
186235
- const kind = fileName.endsWith(".ts") ? ts11.ScriptKind.TS : ts11.ScriptKind.JS;
186236
- const file2 = ts11.createSourceFile(fileName, source2, ts11.ScriptTarget.Latest, true, kind);
186449
+ const kind = fileName.endsWith(".ts") ? ts13.ScriptKind.TS : ts13.ScriptKind.JS;
186450
+ const file2 = ts13.createSourceFile(fileName, source2, ts13.ScriptTarget.Latest, true, kind);
186237
186451
  const app2 = defineAppLiteral(file2);
186238
186452
  const named5 = (instruction) => instruction.replaceAll("config.ts", fileName);
186239
186453
  const unchanged = (instruction) => ({ source: source2, changed: false, applied: [], instructions: [named5(instruction)], pushOn: false });
@@ -186285,9 +186499,9 @@ function planPush(app2, pingAppName, plan) {
186285
186499
  }
186286
186500
  function planRetiredFamily(block, plan) {
186287
186501
  const literal5 = unwrap(block);
186288
- const found = ts11.isObjectLiteralExpression(literal5) ? lookup(literal5, "pingAppName") : void 0;
186502
+ const found = ts13.isObjectLiteralExpression(literal5) ? lookup(literal5, "pingAppName") : void 0;
186289
186503
  const value2 = found?.kind === "written" ? unwrap(found.node.initializer) : void 0;
186290
- const replacement = value2 && ts11.isStringLiteralLike(value2) ? replacementPingFamily(value2.text) : void 0;
186504
+ const replacement = value2 && ts13.isStringLiteralLike(value2) ? replacementPingFamily(value2.text) : void 0;
186291
186505
  if (!value2 || !replacement) return;
186292
186506
  plan.splices.push({ at: value2.getStart(), end: value2.end, text: JSON.stringify(replacement) });
186293
186507
  plan.applied.push(`pingAppName ${JSON.stringify(replacement)} in place of ${value2.getText()}`);
@@ -186300,11 +186514,11 @@ function planCapability(app2, plan) {
186300
186514
  return;
186301
186515
  }
186302
186516
  const list5 = capabilities.kind === "written" ? unwrap(capabilities.node.initializer) : void 0;
186303
- if (!list5 || !ts11.isArrayLiteralExpression(list5)) {
186517
+ if (!list5 || !ts13.isArrayLiteralExpression(list5)) {
186304
186518
  plan.instructions.push('Add "push" to capabilities: Wix push needs the push capability, and config.ts does not list it inline.');
186305
186519
  return;
186306
186520
  }
186307
- if (list5.elements.some((e2) => ts11.isStringLiteralLike(e2) && e2.text === "push")) return;
186521
+ if (list5.elements.some((e2) => ts13.isStringLiteralLike(e2) && e2.text === "push")) return;
186308
186522
  const last = list5.elements[list5.elements.length - 1];
186309
186523
  plan.splices.push(last ? { at: last.end, end: last.end, text: ', "push"' } : { at: list5.getStart(), end: list5.end, text: '["push"]' });
186310
186524
  plan.applied.push("push capability");
@@ -186332,7 +186546,7 @@ function planAuthSite(login2, file2, site, plan) {
186332
186546
  const current = siteId.kind === "written" ? unwrap(siteId.node.initializer) : void 0;
186333
186547
  if (!current) {
186334
186548
  plan.instructions.push(`auth may get its siteId from elsewhere, so none was added. Wix push needs ${wanted}.`);
186335
- } else if (!ts11.isStringLiteralLike(current)) {
186549
+ } else if (!ts13.isStringLiteralLike(current)) {
186336
186550
  plan.instructions.push(`auth's siteId is computed, so it was not checked: make sure it evaluates to ${JSON.stringify(site)}.`);
186337
186551
  } else if (current.text !== site) {
186338
186552
  plan.instructions.push(
@@ -186825,7 +187039,7 @@ __export(apply_exports, {
186825
187039
  import { existsSync as existsSync59, mkdtempSync as mkdtempSync2, readFileSync as readFileSync65, rmSync as rmSync18, writeFileSync as writeFileSync27 } from "node:fs";
186826
187040
  import { tmpdir as tmpdir3 } from "node:os";
186827
187041
  import { join as join53 } from "node:path";
186828
- import ts12 from "typescript";
187042
+ import ts14 from "typescript";
186829
187043
  function provisioningFor(current, app2) {
186830
187044
  const { base44: _oldBase44, bindings, ...rest } = current;
186831
187045
  const otherBindings = bindings && typeof bindings === "object" ? Object.fromEntries(Object.entries(bindings).filter(([k3]) => k3 !== "base44")) : void 0;
@@ -186863,11 +187077,11 @@ function tokensFor(current, app2) {
186863
187077
  return { ...current, colors: next };
186864
187078
  }
186865
187079
  function stringReplace(node4, value2, file2) {
186866
- if (!ts12.isStringLiteralLike(node4)) return void 0;
187080
+ if (!ts14.isStringLiteralLike(node4)) return void 0;
186867
187081
  return { at: node4.getStart(file2), end: node4.getEnd(), text: JSON.stringify(value2) };
186868
187082
  }
186869
187083
  function configFor(source2, app2) {
186870
- const file2 = ts12.createSourceFile("config.ts", source2, ts12.ScriptTarget.Latest, true, ts12.ScriptKind.TS);
187084
+ const file2 = ts14.createSourceFile("config.ts", source2, ts14.ScriptTarget.Latest, true, ts14.ScriptKind.TS);
186871
187085
  const literal5 = defineAppLiteral(file2);
186872
187086
  if (!literal5) throw new Error("config.ts: no defineApp({ \u2026 }) literal to edit");
186873
187087
  const splices = [];
@@ -186876,7 +187090,7 @@ function configFor(source2, app2) {
186876
187090
  if (!nameSplice) throw new Error("config.ts: `name` is not a string literal");
186877
187091
  splices.push(nameSplice);
186878
187092
  const splash = lookup(literal5, "splash");
186879
- if (splash.kind !== "written" || !ts12.isObjectLiteralExpression(splash.node.initializer)) throw new Error("config.ts: `splash` is not an object literal");
187093
+ if (splash.kind !== "written" || !ts14.isObjectLiteralExpression(splash.node.initializer)) throw new Error("config.ts: `splash` is not an object literal");
186880
187094
  const block = splash.node.initializer;
186881
187095
  const caption = lookup(block, "caption");
186882
187096
  const captionValue = app2.splash.caption.value;
@@ -187021,11 +187235,11 @@ __export(app_locale_edit_exports, {
187021
187235
  });
187022
187236
  import { existsSync as existsSync60, readFileSync as readFileSync66 } from "node:fs";
187023
187237
  import { join as join54 } from "node:path";
187024
- import ts13 from "typescript";
187238
+ import ts15 from "typescript";
187025
187239
  function setAppLocaleInConfig(source2, tag2, fileName = "config.ts", translations = []) {
187026
187240
  const others = [...new Set(translations)].filter((t2) => t2 !== tag2);
187027
187241
  if (tag2 === SOURCE_LANGUAGE && others.length === 0) return { source: source2, status: "source-language" };
187028
- const file2 = ts13.createSourceFile(fileName, source2, ts13.ScriptTarget.Latest, true, ts13.ScriptKind.TS);
187242
+ const file2 = ts15.createSourceFile(fileName, source2, ts15.ScriptTarget.Latest, true, ts15.ScriptKind.TS);
187029
187243
  const app2 = defineAppLiteral(file2);
187030
187244
  if (!app2 || lookup(app2, "locale").kind !== "absent") return { source: source2, status: "kept" };
187031
187245
  const lines2 = others.length > 0 ? [
@@ -188389,15 +188603,15 @@ function loadMemory2(dir) {
188389
188603
  for (const t2 of m2.timeline) {
188390
188604
  if (!isObj3(t2)) continue;
188391
188605
  const file2 = historyName(t2.sha, t2.ext);
188392
- const ts44 = str7(t2.ts);
188606
+ const ts46 = str7(t2.ts);
188393
188607
  const id = str7(t2.id);
188394
- if (file2 && ts44 && id) timeline.push({ ts: ts44, id, file: file2 });
188608
+ if (file2 && ts46 && id) timeline.push({ ts: ts46, id, file: file2 });
188395
188609
  }
188396
188610
  return { createdAt: str7(m2.createdAt), shots, timeline };
188397
188611
  }
188398
- function captionAt(entries, ts44) {
188612
+ function captionAt(entries, ts46) {
188399
188613
  let best = null;
188400
- for (const e2 of entries) if (e2.ts <= ts44) best = e2;
188614
+ for (const e2 of entries) if (e2.ts <= ts46) best = e2;
188401
188615
  return best ? best.message : null;
188402
188616
  }
188403
188617
  function thin(items, max) {
@@ -188517,13 +188731,13 @@ function duration(ms2) {
188517
188731
  const m2 = Math.round(ms2 / 6e4);
188518
188732
  return m2 < 60 ? `${m2} min` : `${Math.floor(m2 / 60)} h ${m2 % 60} min`;
188519
188733
  }
188520
- function utcDay(ts44) {
188521
- const d2 = new Date(ts44);
188734
+ function utcDay(ts46) {
188735
+ const d2 = new Date(ts46);
188522
188736
  return Number.isNaN(d2.getTime()) ? "" : `${d2.toUTCString().slice(0, 16)} (UTC)`;
188523
188737
  }
188524
- function sinceStart(start2, ts44) {
188738
+ function sinceStart(start2, ts46) {
188525
188739
  if (!start2) return "";
188526
- const s5 = Math.max(0, Math.round((Date.parse(ts44) - Date.parse(start2)) / 1e3));
188740
+ const s5 = Math.max(0, Math.round((Date.parse(ts46) - Date.parse(start2)) / 1e3));
188527
188741
  const h2 = Math.floor(s5 / 3600);
188528
188742
  const m2 = Math.floor(s5 % 3600 / 60);
188529
188743
  const sec = String(s5 % 60).padStart(2, "0");
@@ -188533,7 +188747,7 @@ function renderReel(plan, images) {
188533
188747
  const img = (f2, alt, cls = "") => f2 && images.has(f2) ? `<img class="${cls}" src="${images.get(f2)}" alt="${escapeHtml(alt)}">` : "";
188534
188748
  const count3 = (n2) => escapeHtml(String(Number.isSafeInteger(n2) && n2 >= 0 ? n2 : 0));
188535
188749
  const accent = ACCENT2.test(plan.accent) ? plan.accent : DEFAULT_ACCENT;
188536
- const clock = (ts44) => sinceStart(plan.startedAt, ts44);
188750
+ const clock = (ts46) => sinceStart(plan.startedAt, ts46);
188537
188751
  const frames = plan.frames.filter((f2) => images.has(f2.file));
188538
188752
  const flip = frames.length ? `<section class="flip"><div class="phone">${frames.map((f2, i2) => `<img class="fr${i2 === 0 ? " on" : ""}" src="${images.get(f2.file)}" alt="${escapeHtml(plan.focusId ?? "")} at ${clock(f2.ts)}">`).join("")}</div>
188539
188753
  <div class="flipcap"><div class="t" id="ft">${frames[0] ? clock(frames[0].ts) : ""}</div><div id="fc">${escapeHtml(frames[0]?.caption ?? "")}</div><div class="bar"><div id="fb"></div></div></div></section>` : `<p class="muted">No screen versions were recorded \u2014 open the build board with <code>himi studio</code> before building to capture them.</p>`;
@@ -190207,19 +190421,19 @@ var init_surface_lint = __esm({
190207
190421
  // src/token-lint.ts
190208
190422
  import { existsSync as existsSync68, readFileSync as readFileSync75 } from "node:fs";
190209
190423
  import { join as join65 } from "node:path";
190210
- import ts14 from "typescript";
190424
+ import ts16 from "typescript";
190211
190425
  function configuredTokensPath(dir) {
190212
190426
  for (const name of ["config.ts", "config.js", "himi.config.ts"]) {
190213
190427
  const f2 = join65(dir, name);
190214
190428
  if (!existsSync68(f2)) continue;
190215
190429
  const src = readFileSync75(f2, "utf8");
190216
- const app2 = defineAppLiteral(ts14.createSourceFile(f2, src, ts14.ScriptTarget.Latest, true));
190430
+ const app2 = defineAppLiteral(ts16.createSourceFile(f2, src, ts16.ScriptTarget.Latest, true));
190217
190431
  if (!app2) return { computed: true };
190218
190432
  const field = lookup(app2, "designTokensPath");
190219
190433
  if (field.kind === "opaque") return { computed: true };
190220
190434
  if (field.kind === "written") {
190221
190435
  const value2 = unwrap(field.node.initializer);
190222
- return ts14.isStringLiteralLike(value2) && !ts14.isTemplateExpression(value2) ? { path: value2.text.replace(/^\.\//, "") } : { computed: true };
190436
+ return ts16.isStringLiteralLike(value2) && !ts16.isTemplateExpression(value2) ? { path: value2.text.replace(/^\.\//, "") } : { computed: true };
190223
190437
  }
190224
190438
  }
190225
190439
  return {};
@@ -191036,13 +191250,13 @@ __export(template_screens_summary_exports, {
191036
191250
  });
191037
191251
  import { existsSync as existsSync71, readFileSync as readFileSync78 } from "node:fs";
191038
191252
  import { join as join68 } from "node:path";
191039
- import ts15 from "typescript";
191253
+ import ts17 from "typescript";
191040
191254
  function isSharedScreen(id) {
191041
191255
  return SHARED_CONSUMER.test(id) || SHARED_OWNER.test(id);
191042
191256
  }
191043
191257
  function staticLabel(e2) {
191044
191258
  if (!e2) return void 0;
191045
- if (ts15.isCallExpression(e2)) {
191259
+ if (ts17.isCallExpression(e2)) {
191046
191260
  return e2.arguments.length === 2 && literal2(e2.arguments[0]) !== void 0 ? literal2(e2.arguments[1]) : void 0;
191047
191261
  }
191048
191262
  return literal2(e2);
@@ -191051,29 +191265,29 @@ function navigationObject(source2) {
191051
191265
  let found;
191052
191266
  const visit = (node4) => {
191053
191267
  if (found) return;
191054
- if (ts15.isPropertyAssignment(node4) && propName4(node4) === "navigation" && ts15.isObjectLiteralExpression(node4.initializer)) {
191268
+ if (ts17.isPropertyAssignment(node4) && propName5(node4) === "navigation" && ts17.isObjectLiteralExpression(node4.initializer)) {
191055
191269
  found = node4.initializer;
191056
191270
  return;
191057
191271
  }
191058
- ts15.forEachChild(node4, visit);
191272
+ ts17.forEachChild(node4, visit);
191059
191273
  };
191060
191274
  visit(source2);
191061
191275
  return found;
191062
191276
  }
191063
191277
  function configTabs(configText) {
191064
- const source2 = ts15.createSourceFile("config.ts", configText, ts15.ScriptTarget.Latest, false, ts15.ScriptKind.TS);
191278
+ const source2 = ts17.createSourceFile("config.ts", configText, ts17.ScriptTarget.Latest, false, ts17.ScriptKind.TS);
191065
191279
  const nav = navigationObject(source2);
191066
191280
  if (!nav) return [];
191067
191281
  const items = (key4) => {
191068
- const block = propValue(nav, key4);
191069
- const list5 = block && ts15.isObjectLiteralExpression(block) ? propValue(block, "items") : void 0;
191070
- return list5 && ts15.isArrayLiteralExpression(list5) ? list5.elements.filter(ts15.isObjectLiteralExpression) : [];
191282
+ const block = propValue2(nav, key4);
191283
+ const list5 = block && ts17.isObjectLiteralExpression(block) ? propValue2(block, "items") : void 0;
191284
+ return list5 && ts17.isArrayLiteralExpression(list5) ? list5.elements.filter(ts17.isObjectLiteralExpression) : [];
191071
191285
  };
191072
- const rows = propValue(nav, "tabBar") ? items("tabBar") : items("drawer").filter((i2) => literal2(propValue(i2, "role")) !== "section");
191286
+ const rows = propValue2(nav, "tabBar") ? items("tabBar") : items("drawer").filter((i2) => literal2(propValue2(i2, "role")) !== "section");
191073
191287
  const tabs = [];
191074
191288
  for (const row2 of rows) {
191075
- const label4 = staticLabel(propValue(row2, "label"))?.trim();
191076
- const screenId = literal2(propValue(row2, "screenId"));
191289
+ const label4 = staticLabel(propValue2(row2, "label"))?.trim();
191290
+ const screenId = literal2(propValue2(row2, "screenId"));
191077
191291
  if (label4 && screenId && !tabs.some((t2) => t2.label === label4)) tabs.push({ label: label4, screenId });
191078
191292
  }
191079
191293
  return tabs;
@@ -191108,18 +191322,18 @@ function templateScreensSummary(dir) {
191108
191322
  }
191109
191323
  return { count: ids2.length, tabs: tabs.map((t2) => t2.label), screens: own6 };
191110
191324
  }
191111
- var SHARED_CONSUMER, SHARED_OWNER, propName4, propValue, literal2;
191325
+ var SHARED_CONSUMER, SHARED_OWNER, propName5, propValue2, literal2;
191112
191326
  var init_template_screens_summary = __esm({
191113
191327
  "src/template-screens-summary.ts"() {
191114
191328
  init_define_HHP_CATALOG();
191115
191329
  SHARED_CONSUMER = /^himi_(?:account(?:_|$)|delete_account$|sign_in$|business_contact$|appearance$|view_profile$|app_info$|app_language$|branded_splash$|notif_settings$|notification_settings$|whats_new$|address(?:es)?$)/;
191116
191330
  SHARED_OWNER = /^himi_owner_lite_(?:module_|record_|aria|maestro|analytics|widget|wrist_|account$|drawer$|home$|inbox|search$|sites$|overview$|ask$|brief$)/;
191117
- propName4 = (p2) => ts15.isPropertyAssignment(p2) && (ts15.isIdentifier(p2.name) || ts15.isStringLiteral(p2.name)) ? p2.name.text : void 0;
191118
- propValue = (obj30, name) => {
191119
- for (const p2 of obj30.properties) if (propName4(p2) === name) return p2.initializer;
191331
+ propName5 = (p2) => ts17.isPropertyAssignment(p2) && (ts17.isIdentifier(p2.name) || ts17.isStringLiteral(p2.name)) ? p2.name.text : void 0;
191332
+ propValue2 = (obj30, name) => {
191333
+ for (const p2 of obj30.properties) if (propName5(p2) === name) return p2.initializer;
191120
191334
  return void 0;
191121
191335
  };
191122
- literal2 = (e2) => e2 && (ts15.isStringLiteral(e2) || ts15.isNoSubstitutionTemplateLiteral(e2)) ? e2.text : void 0;
191336
+ literal2 = (e2) => e2 && (ts17.isStringLiteral(e2) || ts17.isNoSubstitutionTemplateLiteral(e2)) ? e2.text : void 0;
191123
191337
  }
191124
191338
  });
191125
191339
 
@@ -191131,17 +191345,17 @@ __export(template_sweep_exports, {
191131
191345
  });
191132
191346
  import { readFileSync as readFileSync79, writeFileSync as writeFileSync31 } from "node:fs";
191133
191347
  import { join as join69 } from "node:path";
191134
- import ts16 from "typescript";
191348
+ import ts18 from "typescript";
191135
191349
  function isCopy(node4, file2) {
191136
191350
  const parent = node4.parent;
191137
- if (ts16.isPropertyAssignment(parent) && parent.name === node4) return false;
191138
- if (ts16.isImportDeclaration(parent) || ts16.isExportDeclaration(parent) || ts16.isExternalModuleReference(parent)) return false;
191139
- if (ts16.isLiteralTypeNode(parent) || ts16.isImportTypeNode(parent)) return false;
191140
- if (ts16.isCallExpression(parent) && ts16.isIdentifier(parent.expression) && parent.expression.text === "require") return false;
191351
+ if (ts18.isPropertyAssignment(parent) && parent.name === node4) return false;
191352
+ if (ts18.isImportDeclaration(parent) || ts18.isExportDeclaration(parent) || ts18.isExternalModuleReference(parent)) return false;
191353
+ if (ts18.isLiteralTypeNode(parent) || ts18.isImportTypeNode(parent)) return false;
191354
+ if (ts18.isCallExpression(parent) && ts18.isIdentifier(parent.expression) && parent.expression.text === "require") return false;
191141
191355
  const value2 = node4.text;
191142
191356
  if (/\s/.test(value2) || PLACEHOLDER.test(value2)) return true;
191143
191357
  if (ID_LIKE.test(value2)) return false;
191144
- const key4 = ts16.isPropertyAssignment(parent) ? propName5(parent.name) : void 0;
191358
+ const key4 = ts18.isPropertyAssignment(parent) ? propName6(parent.name) : void 0;
191145
191359
  if (!key4) return false;
191146
191360
  return COPY_KEYS.has(key4) || key4 === "name" && file2 === "config.ts";
191147
191361
  }
@@ -191159,8 +191373,8 @@ function syntaxErrors(file2, text32) {
191159
191373
  return [e2.message];
191160
191374
  }
191161
191375
  }
191162
- const out2 = ts16.transpileModule(text32, { fileName: file2, reportDiagnostics: true, compilerOptions: { target: ts16.ScriptTarget.ES2022 } });
191163
- return (out2.diagnostics ?? []).map((d2) => ts16.flattenDiagnosticMessageText(d2.messageText, "\n"));
191376
+ const out2 = ts18.transpileModule(text32, { fileName: file2, reportDiagnostics: true, compilerOptions: { target: ts18.ScriptTarget.ES2022 } });
191377
+ return (out2.diagnostics ?? []).map((d2) => ts18.flattenDiagnosticMessageText(d2.messageText, "\n"));
191164
191378
  }
191165
191379
  function parses(dev, config) {
191166
191380
  try {
@@ -191206,11 +191420,11 @@ function sweepCopy(dir, pairs2, dryRun) {
191206
191420
  if (changed) next.set(f2, JSON.stringify(catalog4, null, 2) + "\n");
191207
191421
  continue;
191208
191422
  }
191209
- const kind = f2.endsWith(".json") ? ts16.ScriptKind.JSON : f2.endsWith("x") ? ts16.ScriptKind.TSX : ts16.ScriptKind.TS;
191210
- const sf2 = ts16.createSourceFile(f2, text32, ts16.ScriptTarget.Latest, true, kind);
191423
+ const kind = f2.endsWith(".json") ? ts18.ScriptKind.JSON : f2.endsWith("x") ? ts18.ScriptKind.TSX : ts18.ScriptKind.TS;
191424
+ const sf2 = ts18.createSourceFile(f2, text32, ts18.ScriptTarget.Latest, true, kind);
191211
191425
  const edits = [];
191212
191426
  const visit = (node4) => {
191213
- if ((ts16.isStringLiteral(node4) || ts16.isNoSubstitutionTemplateLiteral(node4)) && isCopy(node4, f2)) {
191427
+ if ((ts18.isStringLiteral(node4) || ts18.isNoSubstitutionTemplateLiteral(node4)) && isCopy(node4, f2)) {
191214
191428
  let value2 = node4.text;
191215
191429
  pairs2.forEach(([from, to2], i2) => {
191216
191430
  const n2 = value2.split(from).length - 1;
@@ -191223,7 +191437,7 @@ function sweepCopy(dir, pairs2, dryRun) {
191223
191437
  edits.push({ start: start2, end: node4.end, text: encode(value2, text32[start2]) });
191224
191438
  }
191225
191439
  }
191226
- ts16.forEachChild(node4, visit);
191440
+ ts18.forEachChild(node4, visit);
191227
191441
  };
191228
191442
  visit(sf2);
191229
191443
  if (!edits.length) continue;
@@ -191274,7 +191488,7 @@ function sweepPairs(set3, mapFile) {
191274
191488
  if (!pairs2.length) throw new TrimRefusal('nothing to sweep \u2014 pass --set "Old=>New" (repeatable) or --map <file.json>');
191275
191489
  return pairs2;
191276
191490
  }
191277
- var ID_LIKE, COPY_KEYS, propName5;
191491
+ var ID_LIKE, COPY_KEYS, propName6;
191278
191492
  var init_template_sweep = __esm({
191279
191493
  "src/template-sweep.ts"() {
191280
191494
  init_define_HHP_CATALOG();
@@ -191303,7 +191517,7 @@ var init_template_sweep = __esm({
191303
191517
  "appName",
191304
191518
  "displayName"
191305
191519
  ]);
191306
- propName5 = (n2) => ts16.isIdentifier(n2) || ts16.isStringLiteral(n2) || ts16.isNoSubstitutionTemplateLiteral(n2) ? n2.text : void 0;
191520
+ propName6 = (n2) => ts18.isIdentifier(n2) || ts18.isStringLiteral(n2) || ts18.isNoSubstitutionTemplateLiteral(n2) ? n2.text : void 0;
191307
191521
  }
191308
191522
  });
191309
191523
 
@@ -191650,28 +191864,28 @@ __export(seed_home_lint_exports, {
191650
191864
  seedRecords: () => seedRecords,
191651
191865
  workerSeedRecords: () => workerSeedRecords
191652
191866
  });
191653
- import ts17 from "typescript";
191867
+ import ts19 from "typescript";
191654
191868
  import { existsSync as existsSync73, lstatSync as lstatSync25, readdirSync as readdirSync37, readFileSync as readFileSync81 } from "node:fs";
191655
191869
  import { join as join71, relative as relative16, sep as sep21 } from "node:path";
191656
191870
  function propertyName(name) {
191657
- if (name && (ts17.isIdentifier(name) || ts17.isStringLiteralLike(name) || ts17.isNumericLiteral(name))) return name.text;
191871
+ if (name && (ts19.isIdentifier(name) || ts19.isStringLiteralLike(name) || ts19.isNumericLiteral(name))) return name.text;
191658
191872
  return null;
191659
191873
  }
191660
191874
  function unwrap2(node4) {
191661
- while (ts17.isAsExpression(node4) || ts17.isSatisfiesExpression(node4) || ts17.isParenthesizedExpression(node4)) node4 = node4.expression;
191875
+ while (ts19.isAsExpression(node4) || ts19.isSatisfiesExpression(node4) || ts19.isParenthesizedExpression(node4)) node4 = node4.expression;
191662
191876
  return node4;
191663
191877
  }
191664
191878
  function literalValue(node4) {
191665
191879
  const inner = unwrap2(node4);
191666
- if (ts17.isStringLiteralLike(inner)) return inner.text;
191667
- if (ts17.isNumericLiteral(inner)) return `#${inner.text}`;
191880
+ if (ts19.isStringLiteralLike(inner)) return inner.text;
191881
+ if (ts19.isNumericLiteral(inner)) return `#${inner.text}`;
191668
191882
  return null;
191669
191883
  }
191670
191884
  function readRecord2(obj30) {
191671
191885
  let id = null;
191672
191886
  const values = /* @__PURE__ */ new Set();
191673
191887
  for (const prop2 of obj30.properties) {
191674
- if (!ts17.isPropertyAssignment(prop2)) continue;
191888
+ if (!ts19.isPropertyAssignment(prop2)) continue;
191675
191889
  const key4 = propertyName(prop2.name);
191676
191890
  const value2 = literalValue(prop2.initializer);
191677
191891
  if (key4 === null || value2 === null) continue;
@@ -191684,10 +191898,10 @@ function readRecord2(obj30) {
191684
191898
  function recordMapEntries(obj30) {
191685
191899
  const entries = [];
191686
191900
  for (const prop2 of obj30.properties) {
191687
- if (!ts17.isPropertyAssignment(prop2)) return null;
191901
+ if (!ts19.isPropertyAssignment(prop2)) return null;
191688
191902
  const value2 = unwrap2(prop2.initializer);
191689
191903
  const key4 = propertyName(prop2.name);
191690
- if (!ts17.isObjectLiteralExpression(value2) || key4 === null) return null;
191904
+ if (!ts19.isObjectLiteralExpression(value2) || key4 === null) return null;
191691
191905
  entries.push([key4, value2]);
191692
191906
  }
191693
191907
  if (entries.length < 2) return null;
@@ -191703,20 +191917,20 @@ function recordMapEntries(obj30) {
191703
191917
  return common2.size ? entries : null;
191704
191918
  }
191705
191919
  function scriptKind(file2) {
191706
- if (/\.[cm]?tsx$/i.test(file2)) return ts17.ScriptKind.TSX;
191707
- if (/\.[cm]?jsx$/i.test(file2)) return ts17.ScriptKind.JSX;
191708
- if (/\.[cm]?js$/i.test(file2)) return ts17.ScriptKind.JS;
191709
- return ts17.ScriptKind.TS;
191920
+ if (/\.[cm]?tsx$/i.test(file2)) return ts19.ScriptKind.TSX;
191921
+ if (/\.[cm]?jsx$/i.test(file2)) return ts19.ScriptKind.JSX;
191922
+ if (/\.[cm]?js$/i.test(file2)) return ts19.ScriptKind.JS;
191923
+ return ts19.ScriptKind.TS;
191710
191924
  }
191711
191925
  function seedRecords(source2, file2) {
191712
- const sf2 = ts17.createSourceFile(file2, source2, ts17.ScriptTarget.Latest, false, scriptKind(file2));
191926
+ const sf2 = ts19.createSourceFile(file2, source2, ts19.ScriptTarget.Latest, false, scriptKind(file2));
191713
191927
  const records = [];
191714
191928
  const add = (id, values) => {
191715
191929
  values.delete(id);
191716
191930
  if (values.size) records.push({ id, file: file2, values });
191717
191931
  };
191718
191932
  const visit = (node4) => {
191719
- if (ts17.isObjectLiteralExpression(node4)) {
191933
+ if (ts19.isObjectLiteralExpression(node4)) {
191720
191934
  const own6 = readRecord2(node4);
191721
191935
  if (own6.id !== null) add(own6.id, own6.values);
191722
191936
  for (const [key4, value2] of recordMapEntries(node4) ?? []) {
@@ -191724,7 +191938,7 @@ function seedRecords(source2, file2) {
191724
191938
  if (entry.id === null) add(key4, entry.values);
191725
191939
  }
191726
191940
  }
191727
- ts17.forEachChild(node4, visit);
191941
+ ts19.forEachChild(node4, visit);
191728
191942
  };
191729
191943
  visit(sf2);
191730
191944
  return records;
@@ -191966,7 +192180,7 @@ var init_shell_capabilities_generated = __esm({
191966
192180
 
191967
192181
  // ../native-config/social-sign-in.ts
191968
192182
  import { dirname as dirname41, join as join72 } from "node:path";
191969
- import ts18 from "typescript";
192183
+ import ts20 from "typescript";
191970
192184
  function assertGoogleClientId(id, where) {
191971
192185
  if (!isBakeableGoogleClientId(id)) {
191972
192186
  throw new Error(`${where}: ${JSON.stringify(id)} is not a Google OAuth client ID (<digits>[-<id>]${GOOGLE_CLIENT_SUFFIX})`);
@@ -192012,48 +192226,31 @@ function renderGoogleSignInResource(serverClientId) {
192012
192226
  }
192013
192227
  function parseSocialSignInConfig(configTs) {
192014
192228
  if (!configTs.includes("socialSignIn")) return {};
192015
- const file2 = ts18.createSourceFile("config.ts", configTs, ts18.ScriptTarget.Latest, false, ts18.ScriptKind.TS);
192016
- const consts = collectConsts(file2);
192017
- const resolve141 = (e2, depth = 0) => {
192018
- while (e2 && (ts18.isAsExpression(e2) || ts18.isSatisfiesExpression(e2) || ts18.isParenthesizedExpression(e2))) e2 = e2.expression;
192019
- return e2 && ts18.isIdentifier(e2) && depth < 8 ? resolve141(consts.get(e2.text), depth + 1) : e2;
192020
- };
192229
+ const file2 = parseConfigSource(configTs);
192230
+ const resolve141 = makeResolver(collectConsts(file2));
192021
192231
  const objectProp2 = (o2, name) => {
192022
- const p2 = o2.properties.filter((x2) => propName6(x2) === name).pop();
192232
+ const p2 = o2.properties.filter((x2) => propName(x2) === name).pop();
192023
192233
  if (!p2) return void 0;
192024
- return resolve141(ts18.isPropertyAssignment(p2) ? p2.initializer : ts18.isShorthandPropertyAssignment(p2) ? p2.name : void 0);
192234
+ return resolve141(propValue(p2));
192025
192235
  };
192026
192236
  const literal5 = (o2, name) => {
192027
192237
  const v2 = objectProp2(o2, name);
192028
- return v2 && ts18.isStringLiteralLike(v2) ? v2.text : void 0;
192238
+ return v2 && ts20.isStringLiteralLike(v2) ? v2.text : void 0;
192029
192239
  };
192030
192240
  let found = {};
192031
192241
  const visit = (node4) => {
192032
- if ((ts18.isPropertyAssignment(node4) || ts18.isShorthandPropertyAssignment(node4)) && propName6(node4) === "socialSignIn") {
192033
- const block = resolve141(ts18.isPropertyAssignment(node4) ? node4.initializer : node4.name);
192034
- if (block && ts18.isObjectLiteralExpression(block)) {
192242
+ if ((ts20.isPropertyAssignment(node4) || ts20.isShorthandPropertyAssignment(node4)) && propName(node4) === "socialSignIn") {
192243
+ const block = resolve141(ts20.isPropertyAssignment(node4) ? node4.initializer : node4.name);
192244
+ if (block && ts20.isObjectLiteralExpression(block)) {
192035
192245
  const google = objectProp2(block, "google");
192036
- found = google && ts18.isObjectLiteralExpression(google) ? { google: definedOnly({ iosClientId: literal5(google, "iosClientId"), serverClientId: literal5(google, "serverClientId") }) } : {};
192246
+ found = google && ts20.isObjectLiteralExpression(google) ? { google: definedOnly({ iosClientId: literal5(google, "iosClientId"), serverClientId: literal5(google, "serverClientId") }) } : {};
192037
192247
  }
192038
192248
  }
192039
- ts18.forEachChild(node4, visit);
192249
+ ts20.forEachChild(node4, visit);
192040
192250
  };
192041
192251
  visit(file2);
192042
192252
  return found;
192043
192253
  }
192044
- function collectConsts(file2) {
192045
- const consts = /* @__PURE__ */ new Map();
192046
- const collect2 = (node4) => {
192047
- if (ts18.isVariableDeclaration(node4) && ts18.isIdentifier(node4.name) && node4.initializer) consts.set(node4.name.text, node4.initializer);
192048
- ts18.forEachChild(node4, collect2);
192049
- };
192050
- collect2(file2);
192051
- return consts;
192052
- }
192053
- function propName6(p2) {
192054
- if (!ts18.isPropertyAssignment(p2) && !ts18.isShorthandPropertyAssignment(p2)) return void 0;
192055
- return ts18.isIdentifier(p2.name) || ts18.isStringLiteral(p2.name) ? p2.name.text : void 0;
192056
- }
192057
192254
  function definedOnly(binding2) {
192058
192255
  return Object.fromEntries(Object.entries(binding2).filter(([, v2]) => v2 !== void 0));
192059
192256
  }
@@ -192062,6 +192259,7 @@ var init_social_sign_in = __esm({
192062
192259
  "../native-config/social-sign-in.ts"() {
192063
192260
  init_define_HHP_CATALOG();
192064
192261
  init_bake_safe();
192262
+ init_config_ast();
192065
192263
  IOS_GOOGLE_CLIENT_ID_KEY = "GIDClientID";
192066
192264
  IOS_GOOGLE_SERVER_CLIENT_ID_KEY = "GIDServerClientID";
192067
192265
  ANDROID_GOOGLE_SERVER_CLIENT_ID_RES = "himalaya_google_server_client_id";
@@ -196576,7 +196774,7 @@ var init_native_core2 = __esm({
196576
196774
  // ../native-config/native-core-needs.ts
196577
196775
  import { existsSync as existsSync79, readFileSync as readFileSync87 } from "node:fs";
196578
196776
  import { join as join78 } from "node:path";
196579
- import ts19 from "typescript";
196777
+ import ts21 from "typescript";
196580
196778
  function validateEntry(app2, raw, fail19) {
196581
196779
  const at2 = `apps.${app2}`;
196582
196780
  if (raw === null || typeof raw !== "object" || Array.isArray(raw)) fail19(`${at2} must be a JSON object`);
@@ -196643,31 +196841,31 @@ function adoptingApps(root = REPO_ROOT) {
196643
196841
  return Object.keys(readAdoptionStages(root)).sort();
196644
196842
  }
196645
196843
  function propName7(p2) {
196646
- return (ts19.isPropertyAssignment(p2) || ts19.isShorthandPropertyAssignment(p2)) && (ts19.isIdentifier(p2.name) || ts19.isStringLiteral(p2.name)) ? p2.name.text : void 0;
196844
+ return (ts21.isPropertyAssignment(p2) || ts21.isShorthandPropertyAssignment(p2)) && (ts21.isIdentifier(p2.name) || ts21.isStringLiteral(p2.name)) ? p2.name.text : void 0;
196647
196845
  }
196648
196846
  function literalProp(o2, name) {
196649
196847
  const p2 = o2.properties.find((x2) => propName7(x2) === name);
196650
- return p2 && ts19.isPropertyAssignment(p2) && ts19.isStringLiteralLike(p2.initializer) ? p2.initializer.text : void 0;
196848
+ return p2 && ts21.isPropertyAssignment(p2) && ts21.isStringLiteralLike(p2.initializer) ? p2.initializer.text : void 0;
196651
196849
  }
196652
196850
  function appObject(file2) {
196653
196851
  const consts = topLevelConsts(file2);
196654
196852
  const literal5 = (e2) => {
196655
196853
  let n2 = e2 && unwrap3(e2);
196656
- if (n2 && ts19.isIdentifier(n2)) n2 = consts.get(n2.text) && unwrap3(consts.get(n2.text));
196657
- return n2 && ts19.isObjectLiteralExpression(n2) ? n2 : void 0;
196854
+ if (n2 && ts21.isIdentifier(n2)) n2 = consts.get(n2.text) && unwrap3(consts.get(n2.text));
196855
+ return n2 && ts21.isObjectLiteralExpression(n2) ? n2 : void 0;
196658
196856
  };
196659
196857
  let found;
196660
196858
  const visit = (n2) => {
196661
196859
  if (found) return;
196662
- if (ts19.isCallExpression(n2) && ts19.isIdentifier(n2.expression) && n2.expression.text === "defineApp" && literal5(n2.arguments[0])) {
196860
+ if (ts21.isCallExpression(n2) && ts21.isIdentifier(n2.expression) && n2.expression.text === "defineApp" && literal5(n2.arguments[0])) {
196663
196861
  found = literal5(n2.arguments[0]);
196664
196862
  return;
196665
196863
  }
196666
- if (ts19.isExportAssignment(n2) && literal5(n2.expression)) {
196864
+ if (ts21.isExportAssignment(n2) && literal5(n2.expression)) {
196667
196865
  found = literal5(n2.expression);
196668
196866
  return;
196669
196867
  }
196670
- ts19.forEachChild(n2, visit);
196868
+ ts21.forEachChild(n2, visit);
196671
196869
  };
196672
196870
  visit(file2);
196673
196871
  return found;
@@ -196675,8 +196873,8 @@ function appObject(file2) {
196675
196873
  function importedFactories(file2) {
196676
196874
  const local = new Map(Object.keys(WIX_PROVIDER_FACTORIES).map((f2) => [f2, f2]));
196677
196875
  for (const st2 of file2.statements) {
196678
- const named5 = ts19.isImportDeclaration(st2) ? st2.importClause?.namedBindings : void 0;
196679
- if (!named5 || !ts19.isNamedImports(named5)) continue;
196876
+ const named5 = ts21.isImportDeclaration(st2) ? st2.importClause?.namedBindings : void 0;
196877
+ if (!named5 || !ts21.isNamedImports(named5)) continue;
196680
196878
  for (const el2 of named5.elements) {
196681
196879
  const imported = (el2.propertyName ?? el2.name).text;
196682
196880
  if (imported in WIX_PROVIDER_FACTORIES) local.set(el2.name.text, imported);
@@ -196685,47 +196883,47 @@ function importedFactories(file2) {
196685
196883
  return local;
196686
196884
  }
196687
196885
  function factoryOf(callee, factories) {
196688
- if (ts19.isIdentifier(callee)) return factories.get(callee.text);
196689
- if (ts19.isPropertyAccessExpression(callee) && callee.name.text in WIX_PROVIDER_FACTORIES) return callee.name.text;
196886
+ if (ts21.isIdentifier(callee)) return factories.get(callee.text);
196887
+ if (ts21.isPropertyAccessExpression(callee) && callee.name.text in WIX_PROVIDER_FACTORIES) return callee.name.text;
196690
196888
  return void 0;
196691
196889
  }
196692
196890
  function unwrap3(n2) {
196693
- while (ts19.isAsExpression(n2) || ts19.isSatisfiesExpression(n2) || ts19.isParenthesizedExpression(n2) || ts19.isNonNullExpression(n2)) n2 = n2.expression;
196891
+ while (ts21.isAsExpression(n2) || ts21.isSatisfiesExpression(n2) || ts21.isParenthesizedExpression(n2) || ts21.isNonNullExpression(n2)) n2 = n2.expression;
196694
196892
  return n2;
196695
196893
  }
196696
196894
  function selectedProperty(n2, consts) {
196697
- const key4 = ts19.isPropertyAccessExpression(n2) ? n2.name.text : ts19.isElementAccessExpression(n2) && ts19.isStringLiteralLike(n2.argumentExpression) ? n2.argumentExpression.text : void 0;
196698
- if (key4 === void 0 || !ts19.isIdentifier(n2.expression)) return void 0;
196895
+ const key4 = ts21.isPropertyAccessExpression(n2) ? n2.name.text : ts21.isElementAccessExpression(n2) && ts21.isStringLiteralLike(n2.argumentExpression) ? n2.argumentExpression.text : void 0;
196896
+ if (key4 === void 0 || !ts21.isIdentifier(n2.expression)) return void 0;
196699
196897
  const found = consts.get(n2.expression.text);
196700
196898
  const target = found && unwrap3(found);
196701
- if (!target || !ts19.isObjectLiteralExpression(target)) return void 0;
196899
+ if (!target || !ts21.isObjectLiteralExpression(target)) return void 0;
196702
196900
  const p2 = target.properties.find((x2) => propName7(x2) === key4);
196703
- return p2 && ts19.isPropertyAssignment(p2) ? p2.initializer : p2 && ts19.isShorthandPropertyAssignment(p2) ? p2.name : void 0;
196901
+ return p2 && ts21.isPropertyAssignment(p2) ? p2.initializer : p2 && ts21.isShorthandPropertyAssignment(p2) ? p2.name : void 0;
196704
196902
  }
196705
196903
  function isReference(n2) {
196706
196904
  const p2 = n2.parent;
196707
- return !(p2 && (ts19.isPropertyAssignment(p2) || ts19.isPropertyAccessExpression(p2)) && p2.name === n2);
196905
+ return !(p2 && (ts21.isPropertyAssignment(p2) || ts21.isPropertyAccessExpression(p2)) && p2.name === n2);
196708
196906
  }
196709
196907
  function topLevelConsts(file2) {
196710
196908
  const consts = /* @__PURE__ */ new Map();
196711
196909
  for (const st2 of file2.statements) {
196712
- if (ts19.isFunctionDeclaration(st2) && st2.name && st2.body) consts.set(st2.name.text, st2.body);
196713
- if (!ts19.isVariableStatement(st2)) continue;
196714
- for (const d2 of st2.declarationList.declarations) if (ts19.isIdentifier(d2.name) && d2.initializer) consts.set(d2.name.text, d2.initializer);
196910
+ if (ts21.isFunctionDeclaration(st2) && st2.name && st2.body) consts.set(st2.name.text, st2.body);
196911
+ if (!ts21.isVariableStatement(st2)) continue;
196912
+ for (const d2 of st2.declarationList.declarations) if (ts21.isIdentifier(d2.name) && d2.initializer) consts.set(d2.name.text, d2.initializer);
196715
196913
  }
196716
196914
  return consts;
196717
196915
  }
196718
196916
  function declaredAuth(configTs) {
196719
- const file2 = ts19.createSourceFile("config.ts", configTs, ts19.ScriptTarget.Latest, true, ts19.ScriptKind.TS);
196917
+ const file2 = ts21.createSourceFile("config.ts", configTs, ts21.ScriptTarget.Latest, true, ts21.ScriptKind.TS);
196720
196918
  const auth = appObject(file2)?.properties.find((p2) => propName7(p2) === "auth");
196721
196919
  const out2 = { declaresMemberProvider: false };
196722
- const initializer = auth && (ts19.isPropertyAssignment(auth) ? auth.initializer : ts19.isShorthandPropertyAssignment(auth) ? auth.name : void 0);
196920
+ const initializer = auth && (ts21.isPropertyAssignment(auth) ? auth.initializer : ts21.isShorthandPropertyAssignment(auth) ? auth.name : void 0);
196723
196921
  if (!initializer) return out2;
196724
196922
  const consts = topLevelConsts(file2);
196725
196923
  const factories = importedFactories(file2);
196726
196924
  const followed = /* @__PURE__ */ new Set();
196727
196925
  const visit = (n2) => {
196728
- if (ts19.isIdentifier(n2) && isReference(n2) && consts.has(n2.text) && !followed.has(n2.text)) {
196926
+ if (ts21.isIdentifier(n2) && isReference(n2) && consts.has(n2.text) && !followed.has(n2.text)) {
196729
196927
  followed.add(n2.text);
196730
196928
  visit(consts.get(n2.text));
196731
196929
  return;
@@ -196735,46 +196933,46 @@ function declaredAuth(configTs) {
196735
196933
  visit(picked);
196736
196934
  return;
196737
196935
  }
196738
- const factory = ts19.isCallExpression(n2) ? factoryOf(n2.expression, factories) : void 0;
196739
- if (ts19.isCallExpression(n2) && factory) {
196936
+ const factory = ts21.isCallExpression(n2) ? factoryOf(n2.expression, factories) : void 0;
196937
+ if (ts21.isCallExpression(n2) && factory) {
196740
196938
  if (factory === MEMBER_FACTORY) out2.declaresMemberProvider = true;
196741
196939
  if (!out2.providerId) {
196742
196940
  out2.providerId = WIX_PROVIDER_FACTORIES[factory];
196743
196941
  const arg2 = n2.arguments[0];
196744
- const mode = arg2 && ts19.isObjectLiteralExpression(arg2) ? literalProp(arg2, "mode") : void 0;
196942
+ const mode = arg2 && ts21.isObjectLiteralExpression(arg2) ? literalProp(arg2, "mode") : void 0;
196745
196943
  if (mode) out2.mode = mode;
196746
196944
  }
196747
- } else if (ts19.isObjectLiteralExpression(n2)) {
196945
+ } else if (ts21.isObjectLiteralExpression(n2)) {
196748
196946
  const id = literalProp(n2, "providerId");
196749
196947
  if (id && !out2.providerId) {
196750
196948
  out2.providerId = id;
196751
196949
  const config = n2.properties.find((x2) => propName7(x2) === "config");
196752
- const mode = config && ts19.isPropertyAssignment(config) && ts19.isObjectLiteralExpression(config.initializer) ? literalProp(config.initializer, "mode") : void 0;
196950
+ const mode = config && ts21.isPropertyAssignment(config) && ts21.isObjectLiteralExpression(config.initializer) ? literalProp(config.initializer, "mode") : void 0;
196753
196951
  if (mode) out2.mode = mode;
196754
196952
  }
196755
196953
  if (id === MEMBER_PROVIDER_ID) out2.declaresMemberProvider = true;
196756
196954
  }
196757
- ts19.forEachChild(n2, visit);
196955
+ ts21.forEachChild(n2, visit);
196758
196956
  };
196759
196957
  visit(initializer);
196760
196958
  return out2;
196761
196959
  }
196762
196960
  function configLiteral(configTs, key4) {
196763
- const file2 = ts19.createSourceFile("config.ts", configTs, ts19.ScriptTarget.Latest, true, ts19.ScriptKind.TS);
196961
+ const file2 = ts21.createSourceFile("config.ts", configTs, ts21.ScriptTarget.Latest, true, ts21.ScriptKind.TS);
196764
196962
  const app2 = appObject(file2);
196765
196963
  return app2 && literalProp(app2, key4);
196766
196964
  }
196767
196965
  function pushPayloadAdapter(configTs) {
196768
- const file2 = ts19.createSourceFile("config.ts", configTs, ts19.ScriptTarget.Latest, true, ts19.ScriptKind.TS);
196966
+ const file2 = ts21.createSourceFile("config.ts", configTs, ts21.ScriptTarget.Latest, true, ts21.ScriptKind.TS);
196769
196967
  const push = appObject(file2)?.properties.find((p2) => propName7(p2) === "push");
196770
- const initializer = push && (ts19.isPropertyAssignment(push) ? push.initializer : ts19.isShorthandPropertyAssignment(push) ? push.name : void 0);
196968
+ const initializer = push && (ts21.isPropertyAssignment(push) ? push.initializer : ts21.isShorthandPropertyAssignment(push) ? push.name : void 0);
196771
196969
  if (!initializer) return void 0;
196772
196970
  const consts = topLevelConsts(file2);
196773
196971
  const followed = /* @__PURE__ */ new Set();
196774
196972
  let adapter;
196775
196973
  const visit = (n2) => {
196776
196974
  if (adapter) return;
196777
- if (ts19.isIdentifier(n2) && isReference(n2) && consts.has(n2.text) && !followed.has(n2.text)) {
196975
+ if (ts21.isIdentifier(n2) && isReference(n2) && consts.has(n2.text) && !followed.has(n2.text)) {
196778
196976
  followed.add(n2.text);
196779
196977
  visit(consts.get(n2.text));
196780
196978
  return;
@@ -196784,8 +196982,8 @@ function pushPayloadAdapter(configTs) {
196784
196982
  visit(picked);
196785
196983
  return;
196786
196984
  }
196787
- if (ts19.isObjectLiteralExpression(n2)) adapter = literalProp(n2, "payloadAdapter");
196788
- ts19.forEachChild(n2, visit);
196985
+ if (ts21.isObjectLiteralExpression(n2)) adapter = literalProp(n2, "payloadAdapter");
196986
+ ts21.forEachChild(n2, visit);
196789
196987
  };
196790
196988
  visit(initializer);
196791
196989
  return adapter;
@@ -198382,7 +198580,7 @@ __export(gen_native_config_exports, {
198382
198580
  import { existsSync as existsSync82, mkdirSync as mkdirSync35, readFileSync as readFileSync91, readdirSync as readdirSync41, rmSync as rmSync24, statSync as statSync25, writeFileSync as writeFileSync35 } from "node:fs";
198383
198581
  import { dirname as dirname47, join as join81 } from "node:path";
198384
198582
  import { fileURLToPath as fileURLToPath31 } from "node:url";
198385
- import ts20 from "typescript";
198583
+ import ts22 from "typescript";
198386
198584
  function withoutComments(src) {
198387
198585
  let out2 = "";
198388
198586
  for (let i2 = 0; i2 < src.length; ) {
@@ -198437,48 +198635,48 @@ function parseStringArray(configTs, field) {
198437
198635
  }
198438
198636
  function legacyImportSourceKinds(configTs) {
198439
198637
  if (!configTs.includes("legacyImport")) return [];
198440
- const file2 = ts20.createSourceFile("config.ts", configTs, ts20.ScriptTarget.Latest, false, ts20.ScriptKind.TS);
198638
+ const file2 = ts22.createSourceFile("config.ts", configTs, ts22.ScriptTarget.Latest, false, ts22.ScriptKind.TS);
198441
198639
  const kinds = /* @__PURE__ */ new Set();
198442
- const nameOf2 = (p2) => (ts20.isPropertyAssignment(p2) || ts20.isShorthandPropertyAssignment(p2)) && (ts20.isIdentifier(p2.name) || ts20.isStringLiteral(p2.name)) ? p2.name.text : void 0;
198640
+ const nameOf2 = (p2) => (ts22.isPropertyAssignment(p2) || ts22.isShorthandPropertyAssignment(p2)) && (ts22.isIdentifier(p2.name) || ts22.isStringLiteral(p2.name)) ? p2.name.text : void 0;
198443
198641
  const consts = /* @__PURE__ */ new Map();
198444
198642
  const collect2 = (node4) => {
198445
- if (ts20.isVariableDeclaration(node4) && ts20.isIdentifier(node4.name) && node4.initializer) consts.set(node4.name.text, node4.initializer);
198446
- ts20.forEachChild(node4, collect2);
198643
+ if (ts22.isVariableDeclaration(node4) && ts22.isIdentifier(node4.name) && node4.initializer) consts.set(node4.name.text, node4.initializer);
198644
+ ts22.forEachChild(node4, collect2);
198447
198645
  };
198448
198646
  collect2(file2);
198449
198647
  const resolve141 = (e2, depth = 0) => {
198450
- while (e2 && (ts20.isAsExpression(e2) || ts20.isSatisfiesExpression(e2) || ts20.isParenthesizedExpression(e2))) e2 = e2.expression;
198451
- return e2 && ts20.isIdentifier(e2) && depth < 8 ? resolve141(consts.get(e2.text), depth + 1) : e2;
198648
+ while (e2 && (ts22.isAsExpression(e2) || ts22.isSatisfiesExpression(e2) || ts22.isParenthesizedExpression(e2))) e2 = e2.expression;
198649
+ return e2 && ts22.isIdentifier(e2) && depth < 8 ? resolve141(consts.get(e2.text), depth + 1) : e2;
198452
198650
  };
198453
- const valueOf2 = (p2) => !p2 ? void 0 : ts20.isPropertyAssignment(p2) ? resolve141(p2.initializer) : ts20.isShorthandPropertyAssignment(p2) ? resolve141(p2.name) : void 0;
198651
+ const valueOf2 = (p2) => !p2 ? void 0 : ts22.isPropertyAssignment(p2) ? resolve141(p2.initializer) : ts22.isShorthandPropertyAssignment(p2) ? resolve141(p2.name) : void 0;
198454
198652
  const props2 = (o2, depth = 0) => o2.properties.flatMap((p2) => {
198455
- if (!ts20.isSpreadAssignment(p2)) return [p2];
198653
+ if (!ts22.isSpreadAssignment(p2)) return [p2];
198456
198654
  const inner = resolve141(p2.expression);
198457
- return inner && ts20.isObjectLiteralExpression(inner) && depth < 8 ? props2(inner, depth + 1) : [];
198655
+ return inner && ts22.isObjectLiteralExpression(inner) && depth < 8 ? props2(inner, depth + 1) : [];
198458
198656
  });
198459
198657
  const prop2 = (o2, name) => props2(o2).filter((p2) => nameOf2(p2) === name).pop();
198460
198658
  const visit = (node4) => {
198461
- if ((ts20.isPropertyAssignment(node4) || ts20.isShorthandPropertyAssignment(node4)) && nameOf2(node4) === "legacyImport") {
198659
+ if ((ts22.isPropertyAssignment(node4) || ts22.isShorthandPropertyAssignment(node4)) && nameOf2(node4) === "legacyImport") {
198462
198660
  const block = valueOf2(node4);
198463
- if (block && ts20.isObjectLiteralExpression(block)) {
198661
+ if (block && ts22.isObjectLiteralExpression(block)) {
198464
198662
  const sources = valueOf2(prop2(block, "sources"));
198465
- if (sources && ts20.isArrayLiteralExpression(sources)) {
198663
+ if (sources && ts22.isArrayLiteralExpression(sources)) {
198466
198664
  const flat2 = (els, depth = 0) => els.flatMap((x2) => {
198467
- if (!ts20.isSpreadElement(x2)) return [x2];
198665
+ if (!ts22.isSpreadElement(x2)) return [x2];
198468
198666
  const arr7 = resolve141(x2.expression);
198469
- return arr7 && ts20.isArrayLiteralExpression(arr7) && depth < 8 ? flat2(arr7.elements, depth + 1) : [];
198667
+ return arr7 && ts22.isArrayLiteralExpression(arr7) && depth < 8 ? flat2(arr7.elements, depth + 1) : [];
198470
198668
  });
198471
198669
  for (const raw of flat2(sources.elements)) {
198472
198670
  const el2 = resolve141(raw);
198473
- if (!el2 || !ts20.isObjectLiteralExpression(el2)) continue;
198671
+ if (!el2 || !ts22.isObjectLiteralExpression(el2)) continue;
198474
198672
  const kind = valueOf2(prop2(el2, "kind"));
198475
- if (kind && ts20.isStringLiteralLike(kind)) kinds.add(kind.text);
198673
+ if (kind && ts22.isStringLiteralLike(kind)) kinds.add(kind.text);
198476
198674
  }
198477
198675
  }
198478
198676
  }
198479
198677
  return;
198480
198678
  }
198481
- ts20.forEachChild(node4, visit);
198679
+ ts22.forEachChild(node4, visit);
198482
198680
  };
198483
198681
  visit(file2);
198484
198682
  return [...kinds].sort();
@@ -199206,18 +199404,18 @@ function base44BindingInfo(binding2) {
199206
199404
  }
199207
199405
  function parseAdsConfig(configTs) {
199208
199406
  if (!/\bads\b/.test(configTs)) return void 0;
199209
- const file2 = ts20.createSourceFile("config.ts", configTs, ts20.ScriptTarget.Latest, false, ts20.ScriptKind.TS);
199407
+ const file2 = ts22.createSourceFile("config.ts", configTs, ts22.ScriptTarget.Latest, false, ts22.ScriptKind.TS);
199210
199408
  let found;
199211
199409
  const visit = (node4) => {
199212
- if (ts20.isPropertyAssignment(node4) && (ts20.isIdentifier(node4.name) || ts20.isStringLiteral(node4.name)) && node4.name.text === "ads" && ts20.isObjectLiteralExpression(node4.initializer)) {
199410
+ if (ts22.isPropertyAssignment(node4) && (ts22.isIdentifier(node4.name) || ts22.isStringLiteral(node4.name)) && node4.name.text === "ads" && ts22.isObjectLiteralExpression(node4.initializer)) {
199213
199411
  const out2 = {};
199214
199412
  for (const p2 of node4.initializer.properties) {
199215
- if (ts20.isPropertyAssignment(p2) && ts20.isIdentifier(p2.name) && ts20.isStringLiteralLike(p2.initializer) && (p2.name.text === "iosAppId" || p2.name.text === "androidAppId")) out2[p2.name.text] = p2.initializer.text;
199413
+ if (ts22.isPropertyAssignment(p2) && ts22.isIdentifier(p2.name) && ts22.isStringLiteralLike(p2.initializer) && (p2.name.text === "iosAppId" || p2.name.text === "androidAppId")) out2[p2.name.text] = p2.initializer.text;
199216
199414
  }
199217
199415
  found = out2;
199218
199416
  return;
199219
199417
  }
199220
- ts20.forEachChild(node4, visit);
199418
+ ts22.forEachChild(node4, visit);
199221
199419
  };
199222
199420
  visit(file2);
199223
199421
  return found;
@@ -201433,7 +201631,7 @@ __export(account_screens_lint_exports, {
201433
201631
  staticNavTargets: () => staticNavTargets
201434
201632
  });
201435
201633
  import { createHash as createHash39 } from "node:crypto";
201436
- import ts21 from "typescript";
201634
+ import ts23 from "typescript";
201437
201635
  function memberSignInIn(bundleJs) {
201438
201636
  if (![...MEMBER_SIGN_IN_VERBS, `.wix.${HOSTED_SIGN_IN_VERB}`, WIX_PLATFORM_SIGN_IN_ID].some((v2) => bundleJs.includes(v2)) && !AUTH_SIGN_IN_GATE.test(bundleJs)) return null;
201439
201637
  const key4 = createHash39("sha1").update(bundleJs).digest("hex");
@@ -201458,21 +201656,21 @@ function parseMemberSignIn(bundleJs) {
201458
201656
  return parts.length === 3 && parts[1] === "wix" && verbs.has(parts[2]);
201459
201657
  };
201460
201658
  const isAuthSignInCall = (node4) => {
201461
- if (!ts21.isCallExpression(node4) || !ts21.isPropertyAccessExpression(node4.expression)) return false;
201659
+ if (!ts23.isCallExpression(node4) || !ts23.isPropertyAccessExpression(node4.expression)) return false;
201462
201660
  const callee = node4.expression;
201463
201661
  if (callee.name.text !== HOSTED_SIGN_IN_VERB) return false;
201464
201662
  const owner = callee.expression;
201465
- return ts21.isIdentifier(owner) && owner.text === "auth" || ts21.isPropertyAccessExpression(owner) && owner.name.text === "auth";
201663
+ return ts23.isIdentifier(owner) && owner.text === "auth" || ts23.isPropertyAccessExpression(owner) && owner.name.text === "auth";
201466
201664
  };
201467
- const file2 = ts21.createSourceFile("bundle.js", bundleJs, ts21.ScriptTarget.Latest, false, ts21.ScriptKind.JS);
201665
+ const file2 = ts23.createSourceFile("bundle.js", bundleJs, ts23.ScriptTarget.Latest, false, ts23.ScriptKind.JS);
201468
201666
  let found = null;
201469
201667
  const visit = (node4) => {
201470
201668
  if (found) return;
201471
- if ((ts21.isStringLiteral(node4) || ts21.isNoSubstitutionTemplateLiteral(node4)) && isVerbId(node4.text)) {
201669
+ if ((ts23.isStringLiteral(node4) || ts23.isNoSubstitutionTemplateLiteral(node4)) && isVerbId(node4.text)) {
201472
201670
  found = `"${node4.text}"`;
201473
201671
  return;
201474
201672
  }
201475
- if (ts21.isTemplateExpression(node4)) {
201673
+ if (ts23.isTemplateExpression(node4)) {
201476
201674
  const tail = node4.templateSpans[node4.templateSpans.length - 1]?.literal.text ?? "";
201477
201675
  if (isVerbTail(tail)) {
201478
201676
  found = `\`\u2026${tail}\``;
@@ -201483,7 +201681,7 @@ function parseMemberSignIn(bundleJs) {
201483
201681
  found = "auth.signIn()";
201484
201682
  return;
201485
201683
  }
201486
- ts21.forEachChild(node4, visit);
201684
+ ts23.forEachChild(node4, visit);
201487
201685
  };
201488
201686
  visit(file2);
201489
201687
  return found;
@@ -206043,12 +206241,12 @@ var init_mobile_ux_lint = __esm({
206043
206241
  // src/ads-config-edit.ts
206044
206242
  import { readFileSync as readFileSync104 } from "node:fs";
206045
206243
  import { basename as basename25 } from "node:path";
206046
- import ts22 from "typescript";
206244
+ import ts24 from "typescript";
206047
206245
  function objectProp(literal5, name) {
206048
206246
  const found = lookup(literal5, name);
206049
206247
  if (found.kind === "absent") return "absent";
206050
206248
  const value2 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
206051
- return value2 && ts22.isObjectLiteralExpression(value2) ? value2 : "computed";
206249
+ return value2 && ts24.isObjectLiteralExpression(value2) ? value2 : "computed";
206052
206250
  }
206053
206251
  function upsertString(literal5, file2, key4, value2) {
206054
206252
  const found = lookup(literal5, key4);
@@ -206056,7 +206254,7 @@ function upsertString(literal5, file2, key4, value2) {
206056
206254
  if (found.kind !== "written") return "computed";
206057
206255
  const init = found.node.initializer;
206058
206256
  const current = unwrap(init);
206059
- if (!ts22.isStringLiteralLike(current)) return "computed";
206257
+ if (!ts24.isStringLiteralLike(current)) return "computed";
206060
206258
  if (current.text === value2) return "same";
206061
206259
  return { at: init.getStart(file2), end: init.end, text: JSON.stringify(value2) };
206062
206260
  }
@@ -206064,22 +206262,22 @@ function upsertBoolean(literal5, file2, key4, value2) {
206064
206262
  const found = lookup(literal5, key4);
206065
206263
  if (found.kind === "absent") return appendProperties(literal5, file2, [`${key4}: ${value2},`]);
206066
206264
  const current = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
206067
- const written = current?.kind === ts22.SyntaxKind.TrueKeyword ? true : current?.kind === ts22.SyntaxKind.FalseKeyword ? false : void 0;
206265
+ const written = current?.kind === ts24.SyntaxKind.TrueKeyword ? true : current?.kind === ts24.SyntaxKind.FalseKeyword ? false : void 0;
206068
206266
  if (written === void 0) return "computed";
206069
206267
  if (written === value2) return "same";
206070
206268
  return { at: current.getStart(file2), end: current.end, text: String(value2) };
206071
206269
  }
206072
206270
  function parse2(source2, fileName) {
206073
- const kind = fileName.endsWith(".ts") ? ts22.ScriptKind.TS : ts22.ScriptKind.JS;
206074
- const file2 = ts22.createSourceFile(fileName, source2, ts22.ScriptTarget.Latest, true, kind);
206271
+ const kind = fileName.endsWith(".ts") ? ts24.ScriptKind.TS : ts24.ScriptKind.JS;
206272
+ const file2 = ts24.createSourceFile(fileName, source2, ts24.ScriptTarget.Latest, true, kind);
206075
206273
  return { file: file2, app: defineAppLiteral(file2) };
206076
206274
  }
206077
206275
  function capabilitySplice(app2, file2, fileName) {
206078
206276
  const found = lookup(app2, "capabilities");
206079
206277
  if (found.kind === "absent") return appendProperties(app2, file2, [`capabilities: ["ads"],`]);
206080
206278
  const list5 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
206081
- if (!list5 || !ts22.isArrayLiteralExpression(list5)) return computed(fileName, "capabilities", `add "ads" to capabilities.`);
206082
- if (list5.elements.some((e2) => ts22.isStringLiteralLike(e2) && e2.text === "ads")) return void 0;
206279
+ if (!list5 || !ts24.isArrayLiteralExpression(list5)) return computed(fileName, "capabilities", `add "ads" to capabilities.`);
206280
+ if (list5.elements.some((e2) => ts24.isStringLiteralLike(e2) && e2.text === "ads")) return void 0;
206083
206281
  const last = list5.elements[list5.elements.length - 1];
206084
206282
  return last ? { at: last.end, end: last.end, text: ', "ads"' } : { at: list5.getStart(file2), end: list5.end, text: '["ads"]' };
206085
206283
  }
@@ -206123,7 +206321,7 @@ function connect(app2, file2, fileName, op) {
206123
206321
  function stringOf(literal5, key4) {
206124
206322
  const found = lookup(literal5, key4);
206125
206323
  const v2 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
206126
- return v2 && ts22.isStringLiteralLike(v2) ? v2.text : void 0;
206324
+ return v2 && ts24.isStringLiteralLike(v2) ? v2.text : void 0;
206127
206325
  }
206128
206326
  function connectedBlock(app2, fileName) {
206129
206327
  const block = objectProp(app2, "ads");
@@ -206160,8 +206358,8 @@ function slotEdit(block, file2, fileName, op) {
206160
206358
  if (slots === "absent") return [appendProperties(block, file2, [`slots: { ${op.slot}: ${text32} },`])];
206161
206359
  const existing = slots.properties.find((p2) => keyOf(p2) === op.slot);
206162
206360
  if (!existing) return [appendProperties(slots, file2, [`${op.slot}: ${text32},`])];
206163
- const value2 = ts22.isPropertyAssignment(existing) ? unwrap(existing.initializer) : void 0;
206164
- if (!value2 || !ts22.isObjectLiteralExpression(value2)) return computed(fileName, `ads.slots.${op.slot}`, `ads.slots.${op.slot} must be ${text32}.`);
206361
+ const value2 = ts24.isPropertyAssignment(existing) ? unwrap(existing.initializer) : void 0;
206362
+ if (!value2 || !ts24.isObjectLiteralExpression(value2)) return computed(fileName, `ads.slots.${op.slot}`, `ads.slots.${op.slot} must be ${text32}.`);
206165
206363
  const splices = [];
206166
206364
  for (const [key4, id] of units) {
206167
206365
  const r3 = upsertString(value2, file2, key4, id);
@@ -206177,8 +206375,8 @@ function adFreeEdit(block, file2, fileName, op) {
206177
206375
  return op.op === "add" ? [appendProperties(block, file2, [`adFreeEntitlements: [${JSON.stringify(op.productId)}],`])] : [];
206178
206376
  }
206179
206377
  const list5 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
206180
- if (!list5 || !ts22.isArrayLiteralExpression(list5)) return computed(fileName, "ads.adFreeEntitlements", "edit the list there.");
206181
- const at2 = list5.elements.find((e2) => ts22.isStringLiteralLike(e2) && e2.text === op.productId);
206378
+ if (!list5 || !ts24.isArrayLiteralExpression(list5)) return computed(fileName, "ads.adFreeEntitlements", "edit the list there.");
206379
+ const at2 = list5.elements.find((e2) => ts24.isStringLiteralLike(e2) && e2.text === op.productId);
206182
206380
  if (op.op === "rm") return at2 ? [removeItem(list5.elements, at2, list5, file2)] : [];
206183
206381
  if (at2) return [];
206184
206382
  const last = list5.elements[list5.elements.length - 1];
@@ -206243,7 +206441,7 @@ function readAdsSource(source2, fileName = "config.ts") {
206243
206441
  if (!app2) return { ...out2, computed: true };
206244
206442
  const caps = lookup(app2, "capabilities");
206245
206443
  const list5 = caps.kind === "written" ? unwrap(caps.node.initializer) : void 0;
206246
- if (list5 && ts22.isArrayLiteralExpression(list5)) out2.capability = list5.elements.some((e2) => ts22.isStringLiteralLike(e2) && e2.text === "ads");
206444
+ if (list5 && ts24.isArrayLiteralExpression(list5)) out2.capability = list5.elements.some((e2) => ts24.isStringLiteralLike(e2) && e2.text === "ads");
206247
206445
  else if (caps.kind === "opaque" || caps.kind === "written") out2.computed = true;
206248
206446
  const block = objectProp(app2, "ads");
206249
206447
  if (block === "absent") return out2;
@@ -206253,8 +206451,8 @@ function readAdsSource(source2, fileName = "config.ts") {
206253
206451
  out2.androidAppId = stringOf(block, "androidAppId");
206254
206452
  const en2 = lookup(block, "enabled");
206255
206453
  const ev = en2.kind === "written" ? unwrap(en2.node.initializer) : void 0;
206256
- if (ev?.kind === ts22.SyntaxKind.TrueKeyword) out2.enabled = true;
206257
- else if (ev?.kind === ts22.SyntaxKind.FalseKeyword) out2.enabled = false;
206454
+ if (ev?.kind === ts24.SyntaxKind.TrueKeyword) out2.enabled = true;
206455
+ else if (ev?.kind === ts24.SyntaxKind.FalseKeyword) out2.enabled = false;
206258
206456
  const slots = objectProp(block, "slots");
206259
206457
  if (slots === "computed") out2.computed = true;
206260
206458
  else if (slots !== "absent") {
@@ -206264,8 +206462,8 @@ function readAdsSource(source2, fileName = "config.ts") {
206264
206462
  out2.computed = true;
206265
206463
  continue;
206266
206464
  }
206267
- const v2 = ts22.isPropertyAssignment(p2) ? unwrap(p2.initializer) : void 0;
206268
- if (!v2 || !ts22.isObjectLiteralExpression(v2)) {
206465
+ const v2 = ts24.isPropertyAssignment(p2) ? unwrap(p2.initializer) : void 0;
206466
+ if (!v2 || !ts24.isObjectLiteralExpression(v2)) {
206269
206467
  out2.computed = true;
206270
206468
  continue;
206271
206469
  }
@@ -206276,7 +206474,7 @@ function readAdsSource(source2, fileName = "config.ts") {
206276
206474
  }
206277
206475
  const free = lookup(block, "adFreeEntitlements");
206278
206476
  const fv = free.kind === "written" ? unwrap(free.node.initializer) : void 0;
206279
- if (fv && ts22.isArrayLiteralExpression(fv)) out2.adFreeEntitlements = fv.elements.filter(ts22.isStringLiteralLike).map((e2) => e2.text);
206477
+ if (fv && ts24.isArrayLiteralExpression(fv)) out2.adFreeEntitlements = fv.elements.filter(ts24.isStringLiteralLike).map((e2) => e2.text);
206280
206478
  else if (free.kind !== "absent") out2.computed = true;
206281
206479
  return out2;
206282
206480
  }
@@ -206304,7 +206502,7 @@ var init_ads_config_edit = __esm({
206304
206502
  SLOT_NAME = /^[A-Za-z][A-Za-z0-9_]{0,63}$/;
206305
206503
  PRODUCT_ID = /^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;
206306
206504
  fail6 = (code3, error, instruction) => ({ ok: false, code: code3, error, ...instruction ? { instruction } : {} });
206307
- keyOf = (p2) => p2.name && (ts22.isIdentifier(p2.name) || ts22.isStringLiteral(p2.name)) ? p2.name.text : void 0;
206505
+ keyOf = (p2) => p2.name && (ts24.isIdentifier(p2.name) || ts24.isStringLiteral(p2.name)) ? p2.name.text : void 0;
206308
206506
  computed = (fileName, what, wanted) => fail6("ads_config_computed", `${fileName} computes ${what}, so it was not edited.`, `Edit ${fileName} by hand: ${wanted}`);
206309
206507
  }
206310
206508
  });
@@ -207163,11 +207361,11 @@ var init_graph = __esm({
207163
207361
  });
207164
207362
 
207165
207363
  // src/one-app/header-badges.ts
207166
- import ts23 from "typescript";
207364
+ import ts25 from "typescript";
207167
207365
  function bundleNameOf(property3) {
207168
- const bundle = property3 && ts23.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
207366
+ const bundle = property3 && ts25.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
207169
207367
  const url = bundle && findProperty(bundle, "url")?.initializer;
207170
- return url && ts23.isStringLiteralLike(url) ? url.text.split("/").filter(Boolean).pop() : void 0;
207368
+ return url && ts25.isStringLiteralLike(url) ? url.text.split("/").filter(Boolean).pop() : void 0;
207171
207369
  }
207172
207370
  function counterOfValuePath(valuePath) {
207173
207371
  return HEADER_BADGE_COUNTERS.find((counter) => headerBadgeValuePath(counter) === valuePath);
@@ -207248,68 +207446,68 @@ function headerBadgesBundleRef(bundle = HEADER_BADGES_BUNDLE) {
207248
207446
  };
207249
207447
  }
207250
207448
  function propName8(node4) {
207251
- return ts23.isIdentifier(node4) || ts23.isStringLiteral(node4) ? node4.text : void 0;
207449
+ return ts25.isIdentifier(node4) || ts25.isStringLiteral(node4) ? node4.text : void 0;
207252
207450
  }
207253
207451
  function findProperty(object16, name) {
207254
- return object16.properties.find((property3) => ts23.isPropertyAssignment(property3) && propName8(property3.name) === name);
207452
+ return object16.properties.find((property3) => ts25.isPropertyAssignment(property3) && propName8(property3.name) === name);
207255
207453
  }
207256
207454
  function appObject2(source2) {
207257
- const exported = source2.statements.find(ts23.isExportAssignment);
207455
+ const exported = source2.statements.find(ts25.isExportAssignment);
207258
207456
  let expression = exported?.expression;
207259
- while (expression && (ts23.isParenthesizedExpression(expression) || ts23.isAsExpression(expression) || ts23.isSatisfiesExpression(expression))) expression = expression.expression;
207260
- if (expression && ts23.isIdentifier(expression)) {
207457
+ while (expression && (ts25.isParenthesizedExpression(expression) || ts25.isAsExpression(expression) || ts25.isSatisfiesExpression(expression))) expression = expression.expression;
207458
+ if (expression && ts25.isIdentifier(expression)) {
207261
207459
  const name = expression.text;
207262
207460
  for (const statement of source2.statements) {
207263
- if (!ts23.isVariableStatement(statement)) continue;
207264
- const declaration2 = statement.declarationList.declarations.find((item2) => ts23.isIdentifier(item2.name) && item2.name.text === name);
207461
+ if (!ts25.isVariableStatement(statement)) continue;
207462
+ const declaration2 = statement.declarationList.declarations.find((item2) => ts25.isIdentifier(item2.name) && item2.name.text === name);
207265
207463
  if (declaration2?.initializer) {
207266
207464
  expression = declaration2.initializer;
207267
207465
  break;
207268
207466
  }
207269
207467
  }
207270
207468
  }
207271
- const call = expression && ts23.isCallExpression(expression) ? expression : void 0;
207469
+ const call = expression && ts25.isCallExpression(expression) ? expression : void 0;
207272
207470
  const argument = call?.arguments[0];
207273
- return argument && ts23.isObjectLiteralExpression(argument) ? argument : void 0;
207471
+ return argument && ts25.isObjectLiteralExpression(argument) ? argument : void 0;
207274
207472
  }
207275
207473
  function appMayBeOverridden(app2) {
207276
207474
  const literal5 = findProperty(app2, "app");
207277
207475
  const after = literal5 ? app2.properties.slice(app2.properties.indexOf(literal5) + 1) : app2.properties;
207278
- return after.some((property3) => ts23.isSpreadAssignment(property3) || ts23.isComputedPropertyName(property3.name) || propName8(property3.name) === "app");
207476
+ return after.some((property3) => ts25.isSpreadAssignment(property3) || ts25.isComputedPropertyName(property3.name) || propName8(property3.name) === "app");
207279
207477
  }
207280
207478
  function declaresNewApp(configText) {
207281
- const source2 = ts23.createSourceFile("config.ts", configText, ts23.ScriptTarget.Latest, true, ts23.ScriptKind.TS);
207479
+ const source2 = ts25.createSourceFile("config.ts", configText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207282
207480
  const app2 = appObject2(source2);
207283
207481
  const block = app2 && findProperty(app2, "app");
207284
- const declared = block && ts23.isObjectLiteralExpression(block.initializer) ? findProperty(block.initializer, "newApp") : void 0;
207285
- return declared?.initializer.kind === ts23.SyntaxKind.TrueKeyword && !appMayBeOverridden(app2);
207482
+ const declared = block && ts25.isObjectLiteralExpression(block.initializer) ? findProperty(block.initializer, "newApp") : void 0;
207483
+ return declared?.initializer.kind === ts25.SyntaxKind.TrueKeyword && !appMayBeOverridden(app2);
207286
207484
  }
207287
207485
  function avatarNavWorkerOf(configText) {
207288
- const source2 = ts23.createSourceFile("config.ts", configText, ts23.ScriptTarget.Latest, true, ts23.ScriptKind.TS);
207486
+ const source2 = ts25.createSourceFile("config.ts", configText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207289
207487
  const app2 = appObject2(source2);
207290
207488
  const navigation = app2 && findProperty(app2, "navigation")?.initializer;
207291
207489
  const services2 = app2 && findProperty(app2, "app")?.initializer;
207292
- const named5 = bundleNameOf((navigation && ts23.isObjectLiteralExpression(navigation) ? findProperty(navigation, "navLogicBundle") : void 0) ?? (services2 && ts23.isObjectLiteralExpression(services2) ? findProperty(services2, "logicBundle") : void 0));
207490
+ const named5 = bundleNameOf((navigation && ts25.isObjectLiteralExpression(navigation) ? findProperty(navigation, "navLogicBundle") : void 0) ?? (services2 && ts25.isObjectLiteralExpression(services2) ? findProperty(services2, "logicBundle") : void 0));
207293
207491
  return named5 !== void 0 && AVATAR_WORKER_BUNDLES.includes(named5) ? named5 : REFERENCE_NAV_BUNDLE;
207294
207492
  }
207295
207493
  function servesMemberAvatar(workerText) {
207296
- const source2 = ts23.createSourceFile("index.ts", workerText, ts23.ScriptTarget.Latest, true, ts23.ScriptKind.TS);
207494
+ const source2 = ts25.createSourceFile("index.ts", workerText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207297
207495
  let found = false;
207298
207496
  const visit = (node4) => {
207299
207497
  if (found) return;
207300
- if (ts23.isImportDeclaration(node4) && ts23.isStringLiteralLike(node4.moduleSpecifier) && node4.moduleSpecifier.text === "../_shared/nav-member-avatar.js") found = true;
207301
- else if (ts23.isCallExpression(node4) && ts23.isIdentifier(node4.expression) && node4.expression.text === "memberAvatar") found = true;
207302
- else ts23.forEachChild(node4, visit);
207498
+ if (ts25.isImportDeclaration(node4) && ts25.isStringLiteralLike(node4.moduleSpecifier) && node4.moduleSpecifier.text === "../_shared/nav-member-avatar.js") found = true;
207499
+ else if (ts25.isCallExpression(node4) && ts25.isIdentifier(node4.expression) && node4.expression.text === "memberAvatar") found = true;
207500
+ else ts25.forEachChild(node4, visit);
207303
207501
  };
207304
207502
  visit(source2);
207305
207503
  return found;
207306
207504
  }
207307
207505
  function declaresVisitorOnly(configText) {
207308
- const source2 = ts23.createSourceFile("config.ts", configText, ts23.ScriptTarget.Latest, true, ts23.ScriptKind.TS);
207506
+ const source2 = ts25.createSourceFile("config.ts", configText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207309
207507
  const app2 = appObject2(source2);
207310
207508
  const auth = app2 && findProperty(app2, "auth")?.initializer;
207311
- if (auth && ts23.isIdentifier(auth)) return auth.text === "VISITOR_ONLY_AUTH";
207312
- return !!auth && ts23.isObjectLiteralExpression(auth) && stringOf2(findProperty(auth, "providerId")) === "none";
207509
+ if (auth && ts25.isIdentifier(auth)) return auth.text === "VISITOR_ONLY_AUTH";
207510
+ return !!auth && ts25.isObjectLiteralExpression(auth) && stringOf2(findProperty(auth, "providerId")) === "none";
207313
207511
  }
207314
207512
  function patchConfig(configText, counters, options2 = {}) {
207315
207513
  const avatar = options2.avatar === true;
@@ -207317,16 +207515,16 @@ function patchConfig(configText, counters, options2 = {}) {
207317
207515
  const bundle = headerBadgesBundleRef(avatar ? REFERENCE_NAV_BUNDLE : HEADER_BADGES_BUNDLE);
207318
207516
  const literal5 = (value2, indent2) => JSON.stringify(value2, null, 2).replaceAll("\n", `
207319
207517
  ${indent2}`);
207320
- const source2 = ts23.createSourceFile("config.ts", configText, ts23.ScriptTarget.Latest, true, ts23.ScriptKind.TS);
207518
+ const source2 = ts25.createSourceFile("config.ts", configText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207321
207519
  const diagnostics = source2.parseDiagnostics;
207322
207520
  const snippetFor = (indent2) => `${indent2}"topBarDefault": ${literal5(topBar, indent2)},
207323
207521
  ${indent2}"navLogicBundle": ${literal5(bundle, indent2)},`;
207324
207522
  if (diagnostics.length) return { status: "manual", reason: "config.ts could not be parsed", snippet: snippetFor(" ") };
207325
207523
  const app2 = appObject2(source2);
207326
207524
  const navigationProperty = app2 && findProperty(app2, "navigation");
207327
- const navigation = navigationProperty && ts23.isObjectLiteralExpression(navigationProperty.initializer) ? navigationProperty.initializer : void 0;
207525
+ const navigation = navigationProperty && ts25.isObjectLiteralExpression(navigationProperty.initializer) ? navigationProperty.initializer : void 0;
207328
207526
  if (!navigation) return { status: "manual", reason: "config.ts has no literal `navigation: {...}` in its defineApp call", snippet: snippetFor(" ") };
207329
- if (navigation.properties.some((property3) => !ts23.isPropertyAssignment(property3))) {
207527
+ if (navigation.properties.some((property3) => !ts25.isPropertyAssignment(property3))) {
207330
207528
  return { status: "manual", reason: "navigation has spreads or accessors, so it cannot be edited safely", snippet: snippetFor(" ") };
207331
207529
  }
207332
207530
  const first = navigation.properties[0];
@@ -207334,7 +207532,7 @@ ${indent2}"navLogicBundle": ${literal5(bundle, indent2)},`;
207334
207532
  const snippet4 = snippetFor(indent);
207335
207533
  const existingBar = findProperty(navigation, "topBarDefault");
207336
207534
  const appServicesProperty = findProperty(app2, "app");
207337
- const appServices = appServicesProperty && ts23.isObjectLiteralExpression(appServicesProperty.initializer) ? appServicesProperty.initializer : void 0;
207535
+ const appServices = appServicesProperty && ts25.isObjectLiteralExpression(appServicesProperty.initializer) ? appServicesProperty.initializer : void 0;
207338
207536
  const existingBundle = findProperty(navigation, "navLogicBundle") ?? (appServices && findProperty(appServices, "logicBundle"));
207339
207537
  if (!existingBar && !existingBundle) {
207340
207538
  const open6 = navigation.getStart(source2) + 1;
@@ -207354,13 +207552,13 @@ ${snippet4}${configText.slice(open6)}`, snippet: snippet4 };
207354
207552
  return { status: "written", text: `${configText.slice(0, at2)}
207355
207553
  ${indent}"topBarDefault": ${literal5(topBar, indent)},${configText.slice(at2)}`, snippet: snippet4 };
207356
207554
  }
207357
- const bar = ts23.isObjectLiteralExpression(existingBar.initializer) ? existingBar.initializer : void 0;
207555
+ const bar = ts25.isObjectLiteralExpression(existingBar.initializer) ? existingBar.initializer : void 0;
207358
207556
  if (!bar || !existingBundle) return manual(`navigation already has ${[existingBar && "topBarDefault", existingBundle && whichBundle].filter(Boolean).join(" and ")}`);
207359
207557
  const barIndent = " ".repeat(bar.properties[0] ? source2.getLineAndCharacterOfPosition(bar.properties[0].getStart()).character : indent.length + 2);
207360
207558
  const edits = [];
207361
207559
  const actions = findProperty(bar, "actions");
207362
- const actionList = actions && ts23.isArrayLiteralExpression(actions.initializer) ? actions.initializer : void 0;
207363
- const dropped = avatar && actionList ? actionList.elements.filter((element) => ts23.isObjectLiteralExpression(element) && opensAccount(element, tabRoots(navigation))) : [];
207560
+ const actionList = actions && ts25.isArrayLiteralExpression(actions.initializer) ? actions.initializer : void 0;
207561
+ const dropped = avatar && actionList ? actionList.elements.filter((element) => ts25.isObjectLiteralExpression(element) && opensAccount(element, tabRoots(navigation))) : [];
207364
207562
  const kept = actionList ? actionList.elements.filter((element) => !dropped.includes(element)) : [];
207365
207563
  if (dropped.length) {
207366
207564
  edits.push({
@@ -207380,7 +207578,7 @@ ${barIndent}"actions": ${literal5(topBar.actions, barIndent)},` });
207380
207578
  }
207381
207579
  if (avatar) {
207382
207580
  const items = findProperty(bar, "items");
207383
- const list5 = items && ts23.isArrayLiteralExpression(items.initializer) ? items.initializer : void 0;
207581
+ const list5 = items && ts25.isArrayLiteralExpression(items.initializer) ? items.initializer : void 0;
207384
207582
  if (items && !list5) return manual("navigation already has topBarDefault with items that are not a literal list");
207385
207583
  const hasAvatar = !!list5 && listHasAvatar(list5);
207386
207584
  if (!items) edits.push({ at: bar.getStart(source2) + 1, text: `
@@ -207396,32 +207594,32 @@ ${barIndent} ${literal5(PROFILE_AVATAR_ITEM, `${barIndent} `)}${list5.elements
207396
207594
  }
207397
207595
  function tabRoots(navigation) {
207398
207596
  const bar = findProperty(navigation, "tabBar")?.initializer;
207399
- const items = bar && ts23.isObjectLiteralExpression(bar) ? findProperty(bar, "items")?.initializer : void 0;
207400
- if (!items || !ts23.isArrayLiteralExpression(items)) return void 0;
207597
+ const items = bar && ts25.isObjectLiteralExpression(bar) ? findProperty(bar, "items")?.initializer : void 0;
207598
+ if (!items || !ts25.isArrayLiteralExpression(items)) return void 0;
207401
207599
  const roots2 = /* @__PURE__ */ new Map();
207402
207600
  for (const item2 of items.elements) {
207403
- const id = ts23.isObjectLiteralExpression(item2) ? stringOf2(findProperty(item2, "id")) : void 0;
207404
- const screenId = ts23.isObjectLiteralExpression(item2) ? stringOf2(findProperty(item2, "screenId")) : void 0;
207601
+ const id = ts25.isObjectLiteralExpression(item2) ? stringOf2(findProperty(item2, "id")) : void 0;
207602
+ const screenId = ts25.isObjectLiteralExpression(item2) ? stringOf2(findProperty(item2, "screenId")) : void 0;
207405
207603
  if (id && screenId) roots2.set(id, screenId);
207406
207604
  }
207407
207605
  return roots2;
207408
207606
  }
207409
207607
  function opensAccount(action, roots2) {
207410
207608
  const onTap = findProperty(action, "onTap")?.initializer;
207411
- if (!onTap || !ts23.isObjectLiteralExpression(onTap)) return false;
207609
+ if (!onTap || !ts25.isObjectLiteralExpression(onTap)) return false;
207412
207610
  const params = findProperty(onTap, "params")?.initializer;
207413
- const param = (name) => params && ts23.isObjectLiteralExpression(params) ? stringOf2(findProperty(params, name)) : void 0;
207611
+ const param = (name) => params && ts25.isObjectLiteralExpression(params) ? stringOf2(findProperty(params, name)) : void 0;
207414
207612
  const actionId = stringOf2(findProperty(onTap, "actionId"));
207415
207613
  const tab = param("tab");
207416
207614
  return actionId === "himi.open" && param("screenId") === ACCOUNT_SCREEN || actionId === "himi.tab" && tab !== void 0 && roots2?.get(tab) === ACCOUNT_SCREEN;
207417
207615
  }
207418
207616
  function hasProfileAvatar(configText) {
207419
- const source2 = ts23.createSourceFile("config.ts", configText, ts23.ScriptTarget.Latest, true, ts23.ScriptKind.TS);
207617
+ const source2 = ts25.createSourceFile("config.ts", configText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207420
207618
  const app2 = appObject2(source2);
207421
207619
  const navigation = app2 && findProperty(app2, "navigation")?.initializer;
207422
- const bar = navigation && ts23.isObjectLiteralExpression(navigation) ? findProperty(navigation, "topBarDefault")?.initializer : void 0;
207423
- const items = bar && ts23.isObjectLiteralExpression(bar) ? findProperty(bar, "items")?.initializer : void 0;
207424
- return !!items && ts23.isArrayLiteralExpression(items) && listHasAvatar(items);
207620
+ const bar = navigation && ts25.isObjectLiteralExpression(navigation) ? findProperty(navigation, "topBarDefault")?.initializer : void 0;
207621
+ const items = bar && ts25.isObjectLiteralExpression(bar) ? findProperty(bar, "items")?.initializer : void 0;
207622
+ return !!items && ts25.isArrayLiteralExpression(items) && listHasAvatar(items);
207425
207623
  }
207426
207624
  var HEADER_BADGE_COUNTERS, CONTROL_TERMS, NAV_SERVICE, HEADER_BADGES_BUNDLE, ACCESS_NAV_BUNDLE, REFERENCE_NAV_BUNDLE, NAV_WORKER_BUNDLES, ACCESS_NAV_SERVES, HEADER_BADGE_SPEC, headerBadgeValuePath, BRANDED_RIGHT_ORDER, REFERENCE_NAV_CAPABILITIES, WIX_API_ONLY, squash, PROFILE_AVATAR_ITEM, ACCOUNT_SCREEN, INBOX_SCREEN, CONTROL_DESTINATIONS, AVATAR_WORKER_BUNDLES, listHasAvatar, stringOf2;
207427
207625
  var init_header_badges = __esm({
@@ -207487,33 +207685,33 @@ var init_header_badges = __esm({
207487
207685
  cart: [HEADER_BADGE_SPEC.cart.screenId]
207488
207686
  };
207489
207687
  AVATAR_WORKER_BUNDLES = [ACCESS_NAV_BUNDLE, REFERENCE_NAV_BUNDLE];
207490
- listHasAvatar = (list5) => list5.elements.some((element) => ts23.isObjectLiteralExpression(element) && stringOf2(findProperty(element, "id")) === PROFILE_AVATAR_ITEM.id);
207491
- stringOf2 = (property3) => property3 && ts23.isStringLiteralLike(property3.initializer) ? property3.initializer.text : void 0;
207688
+ listHasAvatar = (list5) => list5.elements.some((element) => ts25.isObjectLiteralExpression(element) && stringOf2(findProperty(element, "id")) === PROFILE_AVATAR_ITEM.id);
207689
+ stringOf2 = (property3) => property3 && ts25.isStringLiteralLike(property3.initializer) ? property3.initializer.text : void 0;
207492
207690
  }
207493
207691
  });
207494
207692
 
207495
207693
  // src/one-app/invite-drawer.ts
207496
207694
  import { createHash as createHash45 } from "node:crypto";
207497
- import ts24 from "typescript";
207695
+ import ts26 from "typescript";
207498
207696
  function drawerOffersInvite(configText, profileHasRow = false) {
207499
- const file2 = ts24.createSourceFile("config.ts", configText, ts24.ScriptTarget.Latest, true, ts24.ScriptKind.TS);
207697
+ const file2 = ts26.createSourceFile("config.ts", configText, ts26.ScriptTarget.Latest, true, ts26.ScriptKind.TS);
207500
207698
  const app2 = appObject2(file2);
207501
207699
  const navigation = app2 && findProperty(app2, "navigation")?.initializer;
207502
- if (!navigation || !ts24.isObjectLiteralExpression(navigation)) return false;
207700
+ if (!navigation || !ts26.isObjectLiteralExpression(navigation)) return false;
207503
207701
  const drawer = findProperty(navigation, "drawer")?.initializer;
207504
- const items = drawer && ts24.isObjectLiteralExpression(drawer) ? findProperty(drawer, "items")?.initializer : void 0;
207702
+ const items = drawer && ts26.isObjectLiteralExpression(drawer) ? findProperty(drawer, "items")?.initializer : void 0;
207505
207703
  const linked = findProperty(navigation, "linkableScreens")?.initializer;
207506
207704
  const services2 = app2 && findProperty(app2, "app")?.initializer;
207507
- const worker = bundleNameOf(findProperty(navigation, "navLogicBundle")) ?? (services2 && ts24.isObjectLiteralExpression(services2) ? bundleNameOf(findProperty(services2, "logicBundle")) : void 0);
207508
- if (!worker || !linked || !ts24.isArrayLiteralExpression(linked)) return false;
207705
+ const worker = bundleNameOf(findProperty(navigation, "navLogicBundle")) ?? (services2 && ts26.isObjectLiteralExpression(services2) ? bundleNameOf(findProperty(services2, "logicBundle")) : void 0);
207706
+ if (!worker || !linked || !ts26.isArrayLiteralExpression(linked)) return false;
207509
207707
  const declared = flowDeclared(navigation);
207510
207708
  if (profileHasRow) return declared;
207511
- if (!items || !ts24.isArrayLiteralExpression(items)) return false;
207512
- return declared && items.elements.some((row2) => ts24.isObjectLiteralExpression(row2) && literal3(findProperty(row2, "screenId")?.initializer) === INVITE_SCREEN && literal3(findProperty(row2, "hiddenPath")?.initializer) === INVITE_ACTION.hiddenPath);
207709
+ if (!items || !ts26.isArrayLiteralExpression(items)) return false;
207710
+ return declared && items.elements.some((row2) => ts26.isObjectLiteralExpression(row2) && literal3(findProperty(row2, "screenId")?.initializer) === INVITE_SCREEN && literal3(findProperty(row2, "hiddenPath")?.initializer) === INVITE_ACTION.hiddenPath);
207513
207711
  }
207514
207712
  function flowDeclared(navigation) {
207515
207713
  const linkValue = findProperty(navigation, "linkableScreens")?.initializer;
207516
- return !!linkValue && ts24.isArrayLiteralExpression(linkValue) && linkValue.elements.some((item2) => ts24.isObjectLiteralExpression(item2) && literal3(findProperty(item2, "screenId")?.initializer) === INVITE_SCREEN);
207714
+ return !!linkValue && ts26.isArrayLiteralExpression(linkValue) && linkValue.elements.some((item2) => ts26.isObjectLiteralExpression(item2) && literal3(findProperty(item2, "screenId")?.initializer) === INVITE_SCREEN);
207517
207715
  }
207518
207716
  function withTranslationRow(catalogText2, row2, translation) {
207519
207717
  let catalog4;
@@ -207549,7 +207747,7 @@ var init_invite_drawer = __esm({
207549
207747
  INVITE_ACTION = { icon: "share", hiddenPath: "$service:invite.hidden" };
207550
207748
  INVITE_LABEL = "Invite";
207551
207749
  obj4 = (v2) => v2 && typeof v2 === "object" && !Array.isArray(v2) ? v2 : {};
207552
- literal3 = (node4) => node4 && ts24.isStringLiteralLike(node4) ? node4.text : void 0;
207750
+ literal3 = (node4) => node4 && ts26.isStringLiteralLike(node4) ? node4.text : void 0;
207553
207751
  INVITE_PROFILE_ROW = { id: INVITE_DRAWER_ID, screenId: INVITE_SCREEN, label: INVITE_LABEL, icon: INVITE_ACTION.icon, hiddenPath: INVITE_ACTION.hiddenPath.replace("$service:", "$app:") };
207554
207752
  INVITE_TRANSLATIONS = { he: "\u05D4\u05D6\u05DE\u05E0\u05EA \u05D7\u05D1\u05E8\u05D9\u05DD", it: "Invita", es: "Invitar", fr: "Inviter", de: "Einladen", pt: "Convidar" };
207555
207753
  }
@@ -207558,15 +207756,15 @@ var init_invite_drawer = __esm({
207558
207756
  // src/one-app/side-menu.ts
207559
207757
  import { existsSync as existsSync96, readFileSync as readFileSync108 } from "node:fs";
207560
207758
  import { join as join97 } from "node:path";
207561
- import ts25 from "typescript";
207759
+ import ts27 from "typescript";
207562
207760
  function drawerOf(file2) {
207563
207761
  const app2 = appObject2(file2);
207564
207762
  const navigation = app2 && findProperty(app2, "navigation")?.initializer;
207565
- if (!navigation || !ts25.isObjectLiteralExpression(navigation)) return void 0;
207763
+ if (!navigation || !ts27.isObjectLiteralExpression(navigation)) return void 0;
207566
207764
  const drawer = findProperty(navigation, "drawer")?.initializer;
207567
- if (!drawer || !ts25.isObjectLiteralExpression(drawer)) return { navigation };
207765
+ if (!drawer || !ts27.isObjectLiteralExpression(drawer)) return { navigation };
207568
207766
  const items = findProperty(drawer, "items")?.initializer;
207569
- return { navigation, drawer, ...items && ts25.isArrayLiteralExpression(items) ? { items } : {} };
207767
+ return { navigation, drawer, ...items && ts27.isArrayLiteralExpression(items) ? { items } : {} };
207570
207768
  }
207571
207769
  function accountDescriptor(dir, app2, dev = readAppSources(dir).dev) {
207572
207770
  const route = app2.routes.find((candidate) => candidate.label === ACCOUNT_SCREEN && candidate.kind === "screen");
@@ -207658,11 +207856,11 @@ function removeProfileInviteRow(dir, dryRun = false) {
207658
207856
  function memberOnlyScreens(navigation) {
207659
207857
  const list5 = findProperty(navigation, "linkableScreens")?.initializer;
207660
207858
  const out2 = /* @__PURE__ */ new Set();
207661
- if (!list5 || !ts25.isArrayLiteralExpression(list5)) return out2;
207859
+ if (!list5 || !ts27.isArrayLiteralExpression(list5)) return out2;
207662
207860
  for (const entry of list5.elements) {
207663
- if (!ts25.isObjectLiteralExpression(entry)) continue;
207861
+ if (!ts27.isObjectLiteralExpression(entry)) continue;
207664
207862
  const screenId = stringOf3(findProperty(entry, "screenId")?.initializer);
207665
- if (screenId && findProperty(entry, "isPublic")?.initializer.kind === ts25.SyntaxKind.FalseKeyword && !GUEST_USABLE.has(screenId)) out2.add(screenId);
207863
+ if (screenId && findProperty(entry, "isPublic")?.initializer.kind === ts27.SyntaxKind.FalseKeyword && !GUEST_USABLE.has(screenId)) out2.add(screenId);
207666
207864
  }
207667
207865
  return out2;
207668
207866
  }
@@ -207670,7 +207868,7 @@ function rowsOf(items) {
207670
207868
  const rows = [];
207671
207869
  const unreadable = [];
207672
207870
  for (const element of items.elements) {
207673
- if (!ts25.isObjectLiteralExpression(element)) {
207871
+ if (!ts27.isObjectLiteralExpression(element)) {
207674
207872
  unreadable.push(element.getText().slice(0, 40));
207675
207873
  continue;
207676
207874
  }
@@ -207694,11 +207892,11 @@ function retireSideMenu(dir, dryRun = false, extraRows = []) {
207694
207892
  const configPath = join97(dir, "config.ts");
207695
207893
  if (!existsSync96(configPath)) return kept("there is no config.ts");
207696
207894
  const configText = readFileSync108(configPath, "utf8");
207697
- const file2 = ts25.createSourceFile("config.ts", configText, ts25.ScriptTarget.Latest, true, ts25.ScriptKind.TS);
207895
+ const file2 = ts27.createSourceFile("config.ts", configText, ts27.ScriptTarget.Latest, true, ts27.ScriptKind.TS);
207698
207896
  const found = drawerOf(file2);
207699
207897
  if (!found) return kept("config.ts has no literal `navigation: {...}` in its defineApp call");
207700
207898
  if (found.drawer && !found.items) return kept("navigation.drawer.items is not an array literal, so it cannot be edited safely");
207701
- if (found.drawer?.properties.some((property3) => !ts25.isPropertyAssignment(property3) || !["items", "header"].includes(ts25.isIdentifier(property3.name) || ts25.isStringLiteral(property3.name) ? property3.name.text : ""))) {
207899
+ if (found.drawer?.properties.some((property3) => !ts27.isPropertyAssignment(property3) || !["items", "header"].includes(ts27.isIdentifier(property3.name) || ts27.isStringLiteral(property3.name) ? property3.name.text : ""))) {
207702
207900
  return kept("navigation.drawer holds more than a list of rows and a header, so it is not only a side menu");
207703
207901
  }
207704
207902
  if (stringOf3(findProperty(found.navigation, "navKind")?.initializer) === "drawer") return kept(`navKind is "drawer": the side menu is this app's navigation`);
@@ -207750,7 +207948,7 @@ var init_side_menu = __esm({
207750
207948
  obj5 = (value2) => value2 && typeof value2 === "object" && !Array.isArray(value2) ? value2 : {};
207751
207949
  PAGES_HEADING_ID = "himi_account.pages_heading";
207752
207950
  PAGE_ROW_PREFIX = "himi_account.page_";
207753
- stringOf3 = (node4) => node4 && ts25.isStringLiteralLike(node4) ? node4.text : void 0;
207951
+ stringOf3 = (node4) => node4 && ts27.isStringLiteralLike(node4) ? node4.text : void 0;
207754
207952
  GUEST_USABLE = /* @__PURE__ */ new Set(["himi_saved", "himi_bookings", INVITE_PROFILE_ROW.screenId]);
207755
207953
  }
207756
207954
  });
@@ -208785,7 +208983,7 @@ __export(validate_identity_exports, {
208785
208983
  });
208786
208984
  import { createHash as createHash48 } from "node:crypto";
208787
208985
  import { existsSync as existsSync99, readFileSync as readFileSync111, writeFileSync as writeFileSync44 } from "node:fs";
208788
- import ts26 from "typescript";
208986
+ import ts28 from "typescript";
208789
208987
  import { join as join100, resolve as resolve69 } from "node:path";
208790
208988
  function ricosTexts(documentJson) {
208791
208989
  let root;
@@ -208841,23 +209039,23 @@ function literalSlugFindings(slug, displayName3, screens, authoredText = []) {
208841
209039
  return findings;
208842
209040
  }
208843
209041
  function appNameLiteral(configSource) {
208844
- const file2 = ts26.createSourceFile("config.ts", configSource, ts26.ScriptTarget.Latest, true, ts26.ScriptKind.TS);
209042
+ const file2 = ts28.createSourceFile("config.ts", configSource, ts28.ScriptTarget.Latest, true, ts28.ScriptKind.TS);
208845
209043
  let found;
208846
209044
  const visit = (node4) => {
208847
209045
  if (found) return;
208848
- if (ts26.isCallExpression(node4) && ts26.isIdentifier(node4.expression) && node4.expression.text === "defineApp") {
209046
+ if (ts28.isCallExpression(node4) && ts28.isIdentifier(node4.expression) && node4.expression.text === "defineApp") {
208849
209047
  const arg2 = node4.arguments[0];
208850
- if (arg2 && ts26.isObjectLiteralExpression(arg2)) {
209048
+ if (arg2 && ts28.isObjectLiteralExpression(arg2)) {
208851
209049
  for (const property3 of arg2.properties) {
208852
- const key4 = ts26.isPropertyAssignment(property3) && (ts26.isIdentifier(property3.name) || ts26.isStringLiteral(property3.name)) ? property3.name.text : void 0;
208853
- if (key4 === "name" && ts26.isPropertyAssignment(property3) && ts26.isStringLiteralLike(property3.initializer)) {
209050
+ const key4 = ts28.isPropertyAssignment(property3) && (ts28.isIdentifier(property3.name) || ts28.isStringLiteral(property3.name)) ? property3.name.text : void 0;
209051
+ if (key4 === "name" && ts28.isPropertyAssignment(property3) && ts28.isStringLiteralLike(property3.initializer)) {
208854
209052
  found = { value: property3.initializer.text, start: property3.initializer.getStart(file2), end: property3.initializer.getEnd() };
208855
209053
  }
208856
209054
  }
208857
209055
  }
208858
209056
  return;
208859
209057
  }
208860
- ts26.forEachChild(node4, visit);
209058
+ ts28.forEachChild(node4, visit);
208861
209059
  };
208862
209060
  visit(file2);
208863
209061
  return found;
@@ -208999,7 +209197,7 @@ var init_validate_identity = __esm({
208999
209197
  // src/one-app/invite-flow.ts
209000
209198
  import { existsSync as existsSync100, lstatSync as lstatSync29, readFileSync as readFileSync112, readdirSync as readdirSync43, rmdirSync as rmdirSync4, rmSync as rmSync28 } from "node:fs";
209001
209199
  import { join as join101 } from "node:path";
209002
- import ts27 from "typescript";
209200
+ import ts29 from "typescript";
209003
209201
  function assertNoSymlink(dir, rel2) {
209004
209202
  let current = dir;
209005
209203
  for (const part7 of rel2.split("/")) {
@@ -209062,33 +209260,33 @@ function navBundle(file2) {
209062
209260
  const navigation = app2 && findProperty(app2, "navigation")?.initializer;
209063
209261
  const services2 = app2 && findProperty(app2, "app")?.initializer;
209064
209262
  const holders = [
209065
- navigation && ts27.isObjectLiteralExpression(navigation) ? findProperty(navigation, "navLogicBundle") : void 0,
209066
- services2 && ts27.isObjectLiteralExpression(services2) ? findProperty(services2, "logicBundle") : void 0
209263
+ navigation && ts29.isObjectLiteralExpression(navigation) ? findProperty(navigation, "navLogicBundle") : void 0,
209264
+ services2 && ts29.isObjectLiteralExpression(services2) ? findProperty(services2, "logicBundle") : void 0
209067
209265
  ];
209068
209266
  for (const property3 of holders) {
209069
209267
  const name = bundleNameOf(property3);
209070
209268
  if (!property3 || !name) continue;
209071
- const bundle = ts27.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
209269
+ const bundle = ts29.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
209072
209270
  const declared = bundle && findProperty(bundle, "declaredCapabilities")?.initializer;
209073
- return { name, capabilities: declared && ts27.isArrayLiteralExpression(declared) ? declared : void 0 };
209271
+ return { name, capabilities: declared && ts29.isArrayLiteralExpression(declared) ? declared : void 0 };
209074
209272
  }
209075
209273
  return void 0;
209076
209274
  }
209077
209275
  function literalOf(node4) {
209078
- if (ts27.isStringLiteralLike(node4)) return node4.text;
209079
- if (node4.kind === ts27.SyntaxKind.TrueKeyword) return true;
209080
- if (node4.kind === ts27.SyntaxKind.FalseKeyword) return false;
209276
+ if (ts29.isStringLiteralLike(node4)) return node4.text;
209277
+ if (node4.kind === ts29.SyntaxKind.TrueKeyword) return true;
209278
+ if (node4.kind === ts29.SyntaxKind.FalseKeyword) return false;
209081
209279
  return Symbol.for("not-literal");
209082
209280
  }
209083
209281
  function withoutDrawerInviteRow(configText) {
209084
- const file2 = ts27.createSourceFile("config.ts", configText, ts27.ScriptTarget.Latest, true, ts27.ScriptKind.TS);
209282
+ const file2 = ts29.createSourceFile("config.ts", configText, ts29.ScriptTarget.Latest, true, ts29.ScriptKind.TS);
209085
209283
  const app2 = appObject2(file2);
209086
209284
  const navigation = app2 && findProperty(app2, "navigation")?.initializer;
209087
- const drawer = navigation && ts27.isObjectLiteralExpression(navigation) ? findProperty(navigation, "drawer")?.initializer : void 0;
209088
- const items = drawer && ts27.isObjectLiteralExpression(drawer) ? findProperty(drawer, "items")?.initializer : void 0;
209089
- if (!items || !ts27.isArrayLiteralExpression(items)) return void 0;
209285
+ const drawer = navigation && ts29.isObjectLiteralExpression(navigation) ? findProperty(navigation, "drawer")?.initializer : void 0;
209286
+ const items = drawer && ts29.isObjectLiteralExpression(drawer) ? findProperty(drawer, "items")?.initializer : void 0;
209287
+ if (!items || !ts29.isArrayLiteralExpression(items)) return void 0;
209090
209288
  const elements2 = items.elements;
209091
- const at2 = elements2.findIndex((row3) => ts27.isObjectLiteralExpression(row3) && row3.properties.length === Object.keys(DRAWER_ROW).length && row3.properties.every((p2) => ts27.isPropertyAssignment(p2) && (ts27.isIdentifier(p2.name) || ts27.isStringLiteral(p2.name)) && Object.hasOwn(DRAWER_ROW, p2.name.text) && literalOf(p2.initializer) === DRAWER_ROW[p2.name.text]));
209289
+ const at2 = elements2.findIndex((row3) => ts29.isObjectLiteralExpression(row3) && row3.properties.length === Object.keys(DRAWER_ROW).length && row3.properties.every((p2) => ts29.isPropertyAssignment(p2) && (ts29.isIdentifier(p2.name) || ts29.isStringLiteral(p2.name)) && Object.hasOwn(DRAWER_ROW, p2.name.text) && literalOf(p2.initializer) === DRAWER_ROW[p2.name.text]));
209092
209290
  if (at2 < 0) return void 0;
209093
209291
  const row2 = elements2[at2], next = elements2[at2 + 1], prev = elements2[at2 - 1];
209094
209292
  if (next) return `${configText.slice(0, row2.getFullStart())}${configText.slice(next.getFullStart())}`;
@@ -209174,7 +209372,7 @@ function retireLegacyInvite(dir, metaSiteId, dryRun = false, removeProfileRow) {
209174
209372
  removed.push(workerRel);
209175
209373
  } else kept.push(`${workerRel} (changed after provision)`);
209176
209374
  }
209177
- const navName = navBundle(ts27.createSourceFile("config.ts", config, ts27.ScriptTarget.Latest, true, ts27.ScriptKind.TS))?.name;
209375
+ const navName = navBundle(ts29.createSourceFile("config.ts", config, ts29.ScriptTarget.Latest, true, ts29.ScriptKind.TS))?.name;
209178
209376
  const navRel = navName && BUNDLE_NAME.test(navName) ? `tier5-src/${navName}/index.ts` : void 0;
209179
209377
  if (flowGone && navRel && metaSiteId && existsSync100(join101(dir, navRel))) {
209180
209378
  assertNoSymlink(dir, navRel);
@@ -209752,7 +209950,7 @@ var init_home_invite = __esm({
209752
209950
  });
209753
209951
 
209754
209952
  // src/one-app/access.ts
209755
- import ts28 from "typescript";
209953
+ import ts30 from "typescript";
209756
209954
  import { createHash as createHash49 } from "node:crypto";
209757
209955
  import { isDeepStrictEqual } from "node:util";
209758
209956
  function gateKey(layoutItemId) {
@@ -209879,7 +210077,7 @@ function parse3(fileName, source2) {
209879
210077
  return hit;
209880
210078
  }
209881
210079
  parseStats.runs++;
209882
- const file2 = ts28.createSourceFile(fileName, source2, ts28.ScriptTarget.Latest, true, ts28.ScriptKind.TS);
210080
+ const file2 = ts30.createSourceFile(fileName, source2, ts30.ScriptTarget.Latest, true, ts30.ScriptKind.TS);
209883
210081
  const result = file2.parseDiagnostics.length ? void 0 : file2;
209884
210082
  memo.set(source2, result);
209885
210083
  while (memo.size > PARSE_MEMO_ENTRIES) memo.delete(memo.keys().next().value);
@@ -209887,13 +210085,13 @@ function parse3(fileName, source2) {
209887
210085
  }
209888
210086
  function screensObject(file2) {
209889
210087
  for (const statement of file2.statements) {
209890
- if (!ts28.isVariableStatement(statement)) continue;
210088
+ if (!ts30.isVariableStatement(statement)) continue;
209891
210089
  for (const declaration2 of statement.declarationList.declarations) {
209892
- if (!ts28.isIdentifier(declaration2.name) || declaration2.name.text !== "SCREENS" || !declaration2.initializer) continue;
210090
+ if (!ts30.isIdentifier(declaration2.name) || declaration2.name.text !== "SCREENS" || !declaration2.initializer) continue;
209893
210091
  let init = declaration2.initializer;
209894
- while (ts28.isParenthesizedExpression(init) || ts28.isAsExpression(init) || ts28.isSatisfiesExpression(init)) init = init.expression;
209895
- if (ts28.isCallExpression(init) && init.arguments[0] && ts28.isObjectLiteralExpression(init.arguments[0])) return init.arguments[0];
209896
- if (ts28.isObjectLiteralExpression(init)) return init;
210092
+ while (ts30.isParenthesizedExpression(init) || ts30.isAsExpression(init) || ts30.isSatisfiesExpression(init)) init = init.expression;
210093
+ if (ts30.isCallExpression(init) && init.arguments[0] && ts30.isObjectLiteralExpression(init.arguments[0])) return init.arguments[0];
210094
+ if (ts30.isObjectLiteralExpression(init)) return init;
209897
210095
  }
209898
210096
  }
209899
210097
  return void 0;
@@ -209903,7 +210101,7 @@ function declaredScreens(source2) {
209903
210101
  const screens = file2 && screensObject(file2);
209904
210102
  if (!screens) return void 0;
209905
210103
  const out2 = /* @__PURE__ */ new Set();
209906
- for (const property3 of screens.properties) if (ts28.isPropertyAssignment(property3)) {
210104
+ for (const property3 of screens.properties) if (ts30.isPropertyAssignment(property3)) {
209907
210105
  const name = propName8(property3.name);
209908
210106
  if (name) out2.add(name);
209909
210107
  }
@@ -209912,7 +210110,7 @@ function declaredScreens(source2) {
209912
210110
  function payloadParts(source2, payload) {
209913
210111
  const parts = {};
209914
210112
  for (const property3 of payload.properties) {
209915
- if (!ts28.isPropertyAssignment(property3)) return void 0;
210113
+ if (!ts30.isPropertyAssignment(property3)) return void 0;
209916
210114
  const name = propName8(property3.name);
209917
210115
  if (!name || !PAYLOAD_KEYS.has(name)) return void 0;
209918
210116
  parts[name] = slice(source2, property3.initializer);
@@ -209925,9 +210123,9 @@ function openCase(payload, gate, source2) {
209925
210123
  if (!body || stringValue2(findProperty(body, "type")?.initializer) !== "FragmentSlot" || !props2) return "none";
209926
210124
  if (stringValue2(findProperty(props2, "casePath")?.initializer) !== accessStatePath(gate)) return "none";
209927
210125
  const cases = findProperty(props2, "cases")?.initializer;
209928
- if (!cases || !ts28.isArrayLiteralExpression(cases)) return void 0;
210126
+ if (!cases || !ts30.isArrayLiteralExpression(cases)) return void 0;
209929
210127
  for (const element of cases.elements) {
209930
- if (!ts28.isObjectLiteralExpression(element)) continue;
210128
+ if (!ts30.isObjectLiteralExpression(element)) continue;
209931
210129
  if (stringValue2(findProperty(element, "id")?.initializer) !== "open") continue;
209932
210130
  const content = objectValue(findProperty(element, "content"));
209933
210131
  return content ? payloadParts(source2, content) : void 0;
@@ -209989,7 +210187,7 @@ function applyScreens(source2, gates, context) {
209989
210187
  const conflicts = [];
209990
210188
  const hiding = gates.filter(mayHide);
209991
210189
  const visit = (current) => {
209992
- if (ts28.isPropertyAssignment(current) && propName8(current.name) === "onTap" && ts28.isObjectLiteralExpression(current.initializer) && ts28.isObjectLiteralExpression(current.parent)) {
210190
+ if (ts30.isPropertyAssignment(current) && propName8(current.name) === "onTap" && ts30.isObjectLiteralExpression(current.initializer) && ts30.isObjectLiteralExpression(current.parent)) {
209993
210191
  const params = objectValue(findProperty(current.initializer, "params"));
209994
210192
  const opens = stringValue2(findProperty(current.initializer, "actionId")?.initializer) === "himi.open" ? stringValue2(params && findProperty(params, "screenId")?.initializer) : void 0;
209995
210193
  const gate = hiding.find((item2) => item2.screenId === opens);
@@ -210001,7 +210199,7 @@ function applyScreens(source2, gates, context) {
210001
210199
  } else if (stringValue2(existing.initializer) !== accessRowHiddenPath(gate)) conflicts.push(`an entry opening ${gate.screenId} already has hiddenPath ${slice(source2, existing.initializer)}`);
210002
210200
  }
210003
210201
  }
210004
- ts28.forEachChild(current, visit);
210202
+ ts30.forEachChild(current, visit);
210005
210203
  };
210006
210204
  visit(first);
210007
210205
  if (conflicts.length) return refuse11(conflicts.join("; "));
@@ -210012,7 +210210,7 @@ function applyScreens(source2, gates, context) {
210012
210210
  const missing4 = [];
210013
210211
  const edits = [];
210014
210212
  for (const gate of gates) {
210015
- const screen = screens.properties.find((property3) => ts28.isPropertyAssignment(property3) && propName8(property3.name) === gate.screenId);
210213
+ const screen = screens.properties.find((property3) => ts30.isPropertyAssignment(property3) && propName8(property3.name) === gate.screenId);
210016
210214
  if (!screen) {
210017
210215
  missing4.push(gate.screenId);
210018
210216
  continue;
@@ -210040,7 +210238,7 @@ function newAppEdit(file2, app2) {
210040
210238
  const appBlock = objectValue(appProperty);
210041
210239
  if (appProperty && !appBlock || appMayBeOverridden(app2)) return { kind: "not_literal" };
210042
210240
  const declared = appBlock && findProperty(appBlock, "newApp");
210043
- if (declared) return { kind: declared.initializer.kind === ts28.SyntaxKind.TrueKeyword ? "declared" : "declared_false" };
210241
+ if (declared) return { kind: declared.initializer.kind === ts30.SyntaxKind.TrueKeyword ? "declared" : "declared_false" };
210044
210242
  if (appBlock) return { kind: "missing", edit: { start: appBlock.getStart() + 1, end: appBlock.getStart() + 1, replacement: `
210045
210243
  ${" ".repeat(Math.max(2, file2.getLineAndCharacterOfPosition(appBlock.getStart()).character + 2))}"newApp": true,` } };
210046
210244
  const first = app2.properties[0];
@@ -210061,8 +210259,8 @@ function navMembersNamed(file2) {
210061
210259
  const members2 = /* @__PURE__ */ new Set();
210062
210260
  const member = new RegExp(`(?:^|[:.])${NAV_SERVICE}\\.([A-Za-z0-9_]+)`, "g");
210063
210261
  const visit = (node4) => {
210064
- if (ts28.isStringLiteral(node4) || ts28.isNoSubstitutionTemplateLiteral(node4)) for (const match of node4.text.matchAll(member)) members2.add(match[1]);
210065
- ts28.forEachChild(node4, visit);
210262
+ if (ts30.isStringLiteral(node4) || ts30.isNoSubstitutionTemplateLiteral(node4)) for (const match of node4.text.matchAll(member)) members2.add(match[1]);
210263
+ ts30.forEachChild(node4, visit);
210066
210264
  };
210067
210265
  visit(file2);
210068
210266
  return members2;
@@ -210075,7 +210273,7 @@ function applyConfig(configText, gates, options2 = {}) {
210075
210273
  const navigationProperty = app2 && findProperty(app2, "navigation");
210076
210274
  const navigation = objectValue(navigationProperty);
210077
210275
  if (!navigation) return refuse11("config.ts has no literal `navigation: {...}` in its defineApp call");
210078
- if (navigation.properties.some((property3) => !ts28.isPropertyAssignment(property3))) return refuse11("navigation has spreads or accessors, so it cannot be edited safely");
210276
+ if (navigation.properties.some((property3) => !ts30.isPropertyAssignment(property3))) return refuse11("navigation has spreads or accessors, so it cannot be edited safely");
210079
210277
  const edits = [];
210080
210278
  const bound2 = [];
210081
210279
  const conflicts = [];
@@ -210125,7 +210323,7 @@ ${indent}"navLogicBundle": ${indented(headerBadgesBundleRef(ACCESS_NAV_BUNDLE),
210125
210323
  const itemsOf = (name) => {
210126
210324
  const block = objectValue(findProperty(navigation, name));
210127
210325
  const list5 = block && findProperty(block, "items")?.initializer;
210128
- return list5 && ts28.isArrayLiteralExpression(list5) ? list5.elements.filter(ts28.isObjectLiteralExpression) : [];
210326
+ return list5 && ts30.isArrayLiteralExpression(list5) ? list5.elements.filter(ts30.isObjectLiteralExpression) : [];
210129
210327
  };
210130
210328
  const screenOf = (row2) => stringValue2(findProperty(row2, "screenId")?.initializer);
210131
210329
  const tabs = itemsOf("tabBar");
@@ -210142,7 +210340,7 @@ ${indent}"navLogicBundle": ${indented(headerBadgesBundleRef(ACCESS_NAV_BUNDLE),
210142
210340
  const home2 = [];
210143
210341
  const found = /* @__PURE__ */ new Set();
210144
210342
  const visit = (current) => {
210145
- if (ts28.isObjectLiteralExpression(current) && findProperty(current, "label")) {
210343
+ if (ts30.isObjectLiteralExpression(current) && findProperty(current, "label")) {
210146
210344
  const screenId = stringValue2(findProperty(current, "screenId")?.initializer);
210147
210345
  const gate = hiding.find((item2) => item2.screenId === screenId);
210148
210346
  if (gate) {
@@ -210164,11 +210362,11 @@ ${indent}` });
210164
210362
  edits.push({ start: existing.getStart(), end: existing.getStart(), replacement: `"hiddenUntilResolved": true,
210165
210363
  ${indent}` });
210166
210364
  bound2.push(gate.screenId);
210167
- } else if (resolved3.initializer.kind !== ts28.SyntaxKind.TrueKeyword) conflicts.push(`the entry for ${gate.screenId} sets hiddenUntilResolved to something other than true, which would show a hidden tab before the lock is decided`);
210365
+ } else if (resolved3.initializer.kind !== ts30.SyntaxKind.TrueKeyword) conflicts.push(`the entry for ${gate.screenId} sets hiddenUntilResolved to something other than true, which would show a hidden tab before the lock is decided`);
210168
210366
  }
210169
210367
  }
210170
210368
  }
210171
- ts28.forEachChild(current, visit);
210369
+ ts30.forEachChild(current, visit);
210172
210370
  };
210173
210371
  visit(navigation);
210174
210372
  if (conflicts.length) return refuse11(conflicts.join("; "));
@@ -210181,37 +210379,37 @@ function loginWallGateScreen(configText, gateScreenId) {
210181
210379
  const app2 = file2 && appObject2(file2);
210182
210380
  const authProperty = app2 && findProperty(app2, "auth");
210183
210381
  const init = authProperty?.initializer;
210184
- const wrapped2 = init && ts28.isCallExpression(init) && ts28.isIdentifier(init.expression) && init.expression.text === LOGIN_HELPER && init.arguments.length === 1;
210382
+ const wrapped2 = init && ts30.isCallExpression(init) && ts30.isIdentifier(init.expression) && init.expression.text === LOGIN_HELPER && init.arguments.length === 1;
210185
210383
  if (!file2 || !wrapped2) return void 0;
210186
210384
  let own6;
210187
210385
  const visit = (node4) => {
210188
210386
  if (own6 !== void 0) return;
210189
- if (ts28.isPropertyAssignment(node4) && propName8(node4.name) === "gateScreenId") {
210190
- own6 = ts28.isStringLiteralLike(node4.initializer) ? node4.initializer.text : "author";
210387
+ if (ts30.isPropertyAssignment(node4) && propName8(node4.name) === "gateScreenId") {
210388
+ own6 = ts30.isStringLiteralLike(node4.initializer) ? node4.initializer.text : "author";
210191
210389
  return;
210192
210390
  }
210193
- if (ts28.isShorthandPropertyAssignment(node4) && node4.name.text === "gateScreenId") {
210391
+ if (ts30.isShorthandPropertyAssignment(node4) && node4.name.text === "gateScreenId") {
210194
210392
  own6 = "author";
210195
210393
  return;
210196
210394
  }
210197
- if (ts28.isSpreadAssignment(node4)) {
210395
+ if (ts30.isSpreadAssignment(node4)) {
210198
210396
  own6 = "author";
210199
210397
  return;
210200
210398
  }
210201
- const opaque2 = (expr) => ts28.isIdentifier(expr) || ts28.isPropertyAccessExpression(expr) || ts28.isElementAccessExpression(expr);
210202
- if (ts28.isCallExpression(node4) && node4.arguments.some(opaque2)) {
210399
+ const opaque2 = (expr) => ts30.isIdentifier(expr) || ts30.isPropertyAccessExpression(expr) || ts30.isElementAccessExpression(expr);
210400
+ if (ts30.isCallExpression(node4) && node4.arguments.some(opaque2)) {
210203
210401
  own6 = "author";
210204
210402
  return;
210205
210403
  }
210206
- if (ts28.isPropertyAssignment(node4) && propName8(node4.name) === "config" && opaque2(node4.initializer)) {
210404
+ if (ts30.isPropertyAssignment(node4) && propName8(node4.name) === "config" && opaque2(node4.initializer)) {
210207
210405
  own6 = "author";
210208
210406
  return;
210209
210407
  }
210210
- ts28.forEachChild(node4, visit);
210408
+ ts30.forEachChild(node4, visit);
210211
210409
  };
210212
210410
  visit(init);
210213
210411
  if (own6 !== void 0) return own6;
210214
- const helper = file2.statements.find((statement) => ts28.isVariableStatement(statement) && statement.declarationList.declarations.some((declaration2) => ts28.isIdentifier(declaration2.name) && declaration2.name.text === LOGIN_HELPER));
210412
+ const helper = file2.statements.find((statement) => ts30.isVariableStatement(statement) && statement.declarationList.declarations.some((declaration2) => ts30.isIdentifier(declaration2.name) && declaration2.name.text === LOGIN_HELPER));
210215
210413
  const text32 = helper?.getText(file2);
210216
210414
  if (text32 !== void 0 && gateScreenId && sameStatement(text32, loginHelperSource(gateScreenId))) return gateScreenId;
210217
210415
  if (text32 !== void 0 && sameStatement(text32, loginHelperSource())) return "stock";
@@ -210225,17 +210423,17 @@ function applyLoginWall(configText, wall, options2 = {}) {
210225
210423
  const authProperty = app2 && findProperty(app2, "auth");
210226
210424
  if (!authProperty) return refuse11("config.ts has no literal `auth: ...` in its defineApp call");
210227
210425
  const init = authProperty.initializer;
210228
- const wrapped2 = ts28.isCallExpression(init) && ts28.isIdentifier(init.expression) && init.expression.text === LOGIN_HELPER && init.arguments.length === 1;
210426
+ const wrapped2 = ts30.isCallExpression(init) && ts30.isIdentifier(init.expression) && init.expression.text === LOGIN_HELPER && init.arguments.length === 1;
210229
210427
  if (wall === "none") {
210230
210428
  if (wrapped2 && options2.keepExisting) return { status: "unchanged", text: configText, kept: true };
210231
210429
  return wrapped2 ? refuse11("the app requires login (`requireLogin` in config.ts) but the source no longer does: remove it by hand, a login requirement is not taken out automatically") : { status: "unchanged", text: configText };
210232
210430
  }
210233
- const helper = file2.statements.find((statement) => ts28.isVariableStatement(statement) && statement.declarationList.declarations.some((declaration2) => ts28.isIdentifier(declaration2.name) && declaration2.name.text === LOGIN_HELPER));
210431
+ const helper = file2.statements.find((statement) => ts30.isVariableStatement(statement) && statement.declarationList.declarations.some((declaration2) => ts30.isIdentifier(declaration2.name) && declaration2.name.text === LOGIN_HELPER));
210234
210432
  const edits = [];
210235
210433
  if (!wrapped2) edits.push({ start: init.getStart(), end: init.getEnd(), replacement: `${LOGIN_HELPER}(${init.getText(file2)})` });
210236
210434
  if (!helper && wrapped2) return { status: "unchanged", text: configText };
210237
210435
  if (!helper) {
210238
- const imports = file2.statements.filter(ts28.isImportDeclaration);
210436
+ const imports = file2.statements.filter(ts30.isImportDeclaration);
210239
210437
  const at2 = imports.length ? imports[imports.length - 1].getEnd() : 0;
210240
210438
  edits.push({ start: at2, end: at2, replacement: `
210241
210439
 
@@ -210252,14 +210450,14 @@ function tableGates(tableText) {
210252
210450
  const file2 = parse3("access-gates-table.ts", tableText);
210253
210451
  if (!file2) return void 0;
210254
210452
  for (const statement of file2.statements) {
210255
- if (!ts28.isVariableStatement(statement)) continue;
210453
+ if (!ts30.isVariableStatement(statement)) continue;
210256
210454
  for (const declaration2 of statement.declarationList.declarations) {
210257
- if (!ts28.isIdentifier(declaration2.name) || declaration2.name.text !== "ACCESS_GATES" || !declaration2.initializer) continue;
210455
+ if (!ts30.isIdentifier(declaration2.name) || declaration2.name.text !== "ACCESS_GATES" || !declaration2.initializer) continue;
210258
210456
  let init = declaration2.initializer;
210259
- while (ts28.isParenthesizedExpression(init) || ts28.isAsExpression(init) || ts28.isSatisfiesExpression(init)) init = init.expression;
210260
- if (!ts28.isArrayLiteralExpression(init)) return void 0;
210457
+ while (ts30.isParenthesizedExpression(init) || ts30.isAsExpression(init) || ts30.isSatisfiesExpression(init)) init = init.expression;
210458
+ if (!ts30.isArrayLiteralExpression(init)) return void 0;
210261
210459
  return init.elements.flatMap((element) => {
210262
- if (!ts28.isObjectLiteralExpression(element)) return [];
210460
+ if (!ts30.isObjectLiteralExpression(element)) return [];
210263
210461
  const key4 = stringValue2(findProperty(element, "key")?.initializer);
210264
210462
  if (key4 === void 0) return [];
210265
210463
  return [{ key: key4, layoutItemId: stringValue2(findProperty(element, "layoutItemId")?.initializer) ?? "", screenId: stringValue2(findProperty(element, "screenId")?.initializer) ?? "" }];
@@ -210272,12 +210470,12 @@ function tableGateRows(tableText) {
210272
210470
  const file2 = parse3("access-gates-table.ts", tableText);
210273
210471
  if (!file2) return void 0;
210274
210472
  for (const statement of file2.statements) {
210275
- if (!ts28.isVariableStatement(statement)) continue;
210473
+ if (!ts30.isVariableStatement(statement)) continue;
210276
210474
  for (const declaration2 of statement.declarationList.declarations) {
210277
- if (!ts28.isIdentifier(declaration2.name) || declaration2.name.text !== "ACCESS_GATES" || !declaration2.initializer) continue;
210475
+ if (!ts30.isIdentifier(declaration2.name) || declaration2.name.text !== "ACCESS_GATES" || !declaration2.initializer) continue;
210278
210476
  let init = declaration2.initializer;
210279
- while (ts28.isParenthesizedExpression(init) || ts28.isAsExpression(init) || ts28.isSatisfiesExpression(init)) init = init.expression;
210280
- if (!ts28.isArrayLiteralExpression(init)) return void 0;
210477
+ while (ts30.isParenthesizedExpression(init) || ts30.isAsExpression(init) || ts30.isSatisfiesExpression(init)) init = init.expression;
210478
+ if (!ts30.isArrayLiteralExpression(init)) return void 0;
210281
210479
  try {
210282
210480
  const rows = JSON.parse(slice(tableText, init));
210283
210481
  return Array.isArray(rows) ? rows : void 0;
@@ -210336,8 +210534,8 @@ var init_access = __esm({
210336
210534
  parseMemo = /* @__PURE__ */ new Map();
210337
210535
  parseStats = { calls: 0, runs: 0 };
210338
210536
  slice = (source2, node4) => source2.slice(node4.getStart(), node4.getEnd());
210339
- stringValue2 = (node4) => node4 && (ts28.isStringLiteral(node4) || ts28.isNoSubstitutionTemplateLiteral(node4)) ? node4.text : void 0;
210340
- objectValue = (property3) => property3 && ts28.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
210537
+ stringValue2 = (node4) => node4 && (ts30.isStringLiteral(node4) || ts30.isNoSubstitutionTemplateLiteral(node4)) ? node4.text : void 0;
210538
+ objectValue = (property3) => property3 && ts30.isObjectLiteralExpression(property3.initializer) ? property3.initializer : void 0;
210341
210539
  PAYLOAD_KEYS = /* @__PURE__ */ new Set(["id", "body", "modifiers"]);
210342
210540
  indented = (value2, indent) => JSON.stringify(value2, null, 2).replaceAll("\n", `
210343
210541
  ${indent}`);
@@ -210993,27 +211191,27 @@ var init_overlapping_panel_header = __esm({
210993
211191
  // src/one-app/home-topbar.ts
210994
211192
  import { existsSync as existsSync103, readFileSync as readFileSync115 } from "node:fs";
210995
211193
  import { join as join104 } from "node:path";
210996
- import ts29 from "typescript";
211194
+ import ts31 from "typescript";
210997
211195
  function detailedHomeTopBar(topBarDefault, coverNodeId, hasCoverImage = true) {
210998
211196
  const { coverTone: _tone, ...bar } = structuredClone(obj17(topBarDefault));
210999
211197
  return { ...bar, ...hasCoverImage ? { style: "immersive", coverTone: "dark" } : { style: "transparent" }, titleDisplay: "hidden", solidAfter: { nodeId: coverNodeId } };
211000
211198
  }
211001
211199
  function literalValue2(node4) {
211002
211200
  const e2 = unwrap4(node4);
211003
- if (ts29.isStringLiteral(e2) || ts29.isNoSubstitutionTemplateLiteral(e2)) return e2.text;
211004
- if (ts29.isNumericLiteral(e2)) return Number(e2.text);
211005
- if (ts29.isPrefixUnaryExpression(e2) && e2.operator === ts29.SyntaxKind.MinusToken && ts29.isNumericLiteral(e2.operand)) return -Number(e2.operand.text);
211006
- if (e2.kind === ts29.SyntaxKind.TrueKeyword) return true;
211007
- if (e2.kind === ts29.SyntaxKind.FalseKeyword) return false;
211008
- if (e2.kind === ts29.SyntaxKind.NullKeyword) return null;
211009
- if (ts29.isArrayLiteralExpression(e2)) {
211010
- const items = e2.elements.map((item2) => ts29.isSpreadElement(item2) ? NOT_LITERAL : literalValue2(item2));
211201
+ if (ts31.isStringLiteral(e2) || ts31.isNoSubstitutionTemplateLiteral(e2)) return e2.text;
211202
+ if (ts31.isNumericLiteral(e2)) return Number(e2.text);
211203
+ if (ts31.isPrefixUnaryExpression(e2) && e2.operator === ts31.SyntaxKind.MinusToken && ts31.isNumericLiteral(e2.operand)) return -Number(e2.operand.text);
211204
+ if (e2.kind === ts31.SyntaxKind.TrueKeyword) return true;
211205
+ if (e2.kind === ts31.SyntaxKind.FalseKeyword) return false;
211206
+ if (e2.kind === ts31.SyntaxKind.NullKeyword) return null;
211207
+ if (ts31.isArrayLiteralExpression(e2)) {
211208
+ const items = e2.elements.map((item2) => ts31.isSpreadElement(item2) ? NOT_LITERAL : literalValue2(item2));
211011
211209
  return items.includes(NOT_LITERAL) ? NOT_LITERAL : items;
211012
211210
  }
211013
- if (!ts29.isObjectLiteralExpression(e2)) return NOT_LITERAL;
211211
+ if (!ts31.isObjectLiteralExpression(e2)) return NOT_LITERAL;
211014
211212
  const out2 = {};
211015
211213
  for (const p2 of e2.properties) {
211016
- const name = ts29.isPropertyAssignment(p2) && (ts29.isIdentifier(p2.name) || ts29.isStringLiteral(p2.name) || ts29.isNumericLiteral(p2.name)) ? p2.name.text : void 0;
211214
+ const name = ts31.isPropertyAssignment(p2) && (ts31.isIdentifier(p2.name) || ts31.isStringLiteral(p2.name) || ts31.isNumericLiteral(p2.name)) ? p2.name.text : void 0;
211017
211215
  const value2 = name === void 0 ? NOT_LITERAL : literalValue2(p2.initializer);
211018
211216
  if (value2 === NOT_LITERAL) return NOT_LITERAL;
211019
211217
  out2[name] = value2;
@@ -211021,14 +211219,14 @@ function literalValue2(node4) {
211021
211219
  return out2;
211022
211220
  }
211023
211221
  function topBarDefaultOf(configText) {
211024
- const source2 = ts29.createSourceFile("config.ts", configText, ts29.ScriptTarget.Latest, true, ts29.ScriptKind.TS);
211222
+ const source2 = ts31.createSourceFile("config.ts", configText, ts31.ScriptTarget.Latest, true, ts31.ScriptKind.TS);
211025
211223
  if (source2.parseDiagnostics.length) return { status: "uninspectable", reason: "config.ts could not be parsed" };
211026
211224
  const app2 = appObject2(source2);
211027
211225
  if (!app2) return { status: "uninspectable", reason: "config.ts does not default-export defineApp({...})" };
211028
211226
  const navigation = findProperty(app2, "navigation")?.initializer;
211029
211227
  if (!navigation) return { status: "absent" };
211030
211228
  const nav = unwrap4(navigation);
211031
- if (!ts29.isObjectLiteralExpression(nav)) return { status: "uninspectable", reason: "navigation is not an object literal" };
211229
+ if (!ts31.isObjectLiteralExpression(nav)) return { status: "uninspectable", reason: "navigation is not an object literal" };
211032
211230
  const bar = findProperty(nav, "topBarDefault")?.initializer;
211033
211231
  if (!bar) return { status: "absent" };
211034
211232
  const value2 = literalValue2(bar);
@@ -211146,7 +211344,7 @@ var init_home_topbar = __esm({
211146
211344
  detailedHomeHeaderId = (screenId) => `${screenId}.detailedHeader`;
211147
211345
  unwrap4 = (node4) => {
211148
211346
  let n2 = node4;
211149
- while (ts29.isParenthesizedExpression(n2) || ts29.isAsExpression(n2) || ts29.isSatisfiesExpression(n2) || ts29.isTypeAssertionExpression(n2)) n2 = n2.expression;
211347
+ while (ts31.isParenthesizedExpression(n2) || ts31.isAsExpression(n2) || ts31.isSatisfiesExpression(n2) || ts31.isTypeAssertionExpression(n2)) n2 = n2.expression;
211150
211348
  return n2;
211151
211349
  };
211152
211350
  NOT_LITERAL = Symbol("not literal");
@@ -213924,29 +214122,29 @@ var init_generate = __esm({
213924
214122
  // src/one-app/provision.ts
213925
214123
  import { existsSync as existsSync105, readdirSync as readdirSync44, readFileSync as readFileSync117, writeFileSync as writeFileSync47 } from "node:fs";
213926
214124
  import { join as join106, resolve as resolve71 } from "node:path";
213927
- import ts30 from "typescript";
214125
+ import ts32 from "typescript";
213928
214126
  function rootOnAppear2(descriptor) {
213929
214127
  const modifiers = obj20(obj20(descriptor.payload).modifiers);
213930
214128
  const appear = modifiers.onAppear;
213931
214129
  return appear && typeof appear === "object" && !Array.isArray(appear) ? appear : void 0;
213932
214130
  }
213933
214131
  function nativeTabBar(configSource) {
213934
- const file2 = ts30.createSourceFile("config.ts", configSource, ts30.ScriptTarget.Latest, true, ts30.ScriptKind.TS);
214132
+ const file2 = ts32.createSourceFile("config.ts", configSource, ts32.ScriptTarget.Latest, true, ts32.ScriptKind.TS);
213935
214133
  let tabBar;
213936
214134
  const visit = (node4) => {
213937
214135
  if (tabBar) return;
213938
- if (ts30.isCallExpression(node4) && ts30.isIdentifier(node4.expression) && node4.expression.text === "defineApp") {
213939
- const navigation = node4.arguments[0] && ts30.isObjectLiteralExpression(node4.arguments[0]) ? propOf(node4.arguments[0], "navigation")?.initializer : void 0;
213940
- const bar = navigation && ts30.isObjectLiteralExpression(navigation) ? propOf(navigation, "tabBar")?.initializer : void 0;
213941
- if (bar && ts30.isObjectLiteralExpression(bar)) tabBar = bar;
214136
+ if (ts32.isCallExpression(node4) && ts32.isIdentifier(node4.expression) && node4.expression.text === "defineApp") {
214137
+ const navigation = node4.arguments[0] && ts32.isObjectLiteralExpression(node4.arguments[0]) ? propOf(node4.arguments[0], "navigation")?.initializer : void 0;
214138
+ const bar = navigation && ts32.isObjectLiteralExpression(navigation) ? propOf(navigation, "tabBar")?.initializer : void 0;
214139
+ if (bar && ts32.isObjectLiteralExpression(bar)) tabBar = bar;
213942
214140
  return;
213943
214141
  }
213944
- ts30.forEachChild(node4, visit);
214142
+ ts32.forEachChild(node4, visit);
213945
214143
  };
213946
214144
  visit(file2);
213947
214145
  if (!tabBar) return void 0;
213948
214146
  const current = propOf(tabBar, "presentation")?.initializer;
213949
- if (current && ts30.isStringLiteralLike(current) && current.text.trim()) return { presentation: current.text };
214147
+ if (current && ts32.isStringLiteralLike(current) && current.text.trim()) return { presentation: current.text };
213950
214148
  if (current || !tabBar.properties[0]) return void 0;
213951
214149
  const indent = file2.getLineAndCharacterOfPosition(tabBar.properties[0].getStart(file2)).character;
213952
214150
  const at2 = tabBar.getStart(file2) + 1;
@@ -213968,22 +214166,22 @@ function provisionSiteBinding(dir, binding2, dryRun = false) {
213968
214166
  return { status: "unverified", reason: "the collection has no verified source site id and URL; the auth is left as it is" };
213969
214167
  }
213970
214168
  const source2 = readFileSync117(configPath, "utf8");
213971
- const file2 = ts30.createSourceFile("config.ts", source2, ts30.ScriptTarget.Latest, true, ts30.ScriptKind.TS);
214169
+ const file2 = ts32.createSourceFile("config.ts", source2, ts32.ScriptTarget.Latest, true, ts32.ScriptKind.TS);
213972
214170
  let argument;
213973
214171
  const visit = (node4) => {
213974
214172
  if (argument) return;
213975
- if (ts30.isCallExpression(node4) && ts30.isIdentifier(node4.expression) && node4.expression.text === "WixConsumerAuthProvider") {
214173
+ if (ts32.isCallExpression(node4) && ts32.isIdentifier(node4.expression) && node4.expression.text === "WixConsumerAuthProvider") {
213976
214174
  const arg2 = node4.arguments[0];
213977
- if (arg2 && ts30.isObjectLiteralExpression(arg2)) argument = arg2;
214175
+ if (arg2 && ts32.isObjectLiteralExpression(arg2)) argument = arg2;
213978
214176
  return;
213979
214177
  }
213980
- ts30.forEachChild(node4, visit);
214178
+ ts32.forEachChild(node4, visit);
213981
214179
  };
213982
214180
  visit(file2);
213983
214181
  if (!argument) return { status: "absent", reason: "config.ts has no WixConsumerAuthProvider({...}) to bind" };
213984
214182
  const text32 = (name) => {
213985
214183
  const v2 = propOf(argument, name)?.initializer;
213986
- return v2 && ts30.isStringLiteralLike(v2) ? v2.text : void 0;
214184
+ return v2 && ts32.isStringLiteralLike(v2) ? v2.text : void 0;
213987
214185
  };
213988
214186
  if (text32("visitorSource") === "one-app" && text32("metaSiteId")?.toLowerCase() === binding2.metaSiteId.toLowerCase()) return { status: "unchanged" };
213989
214187
  const clientId = propOf(argument, "clientId")?.initializer;
@@ -214003,18 +214201,18 @@ ${indent}}`;
214003
214201
  return { status: "set" };
214004
214202
  }
214005
214203
  function inboxEntriesInConfig(configSource) {
214006
- const file2 = ts30.createSourceFile("config.ts", configSource, ts30.ScriptTarget.Latest, true, ts30.ScriptKind.TS);
214204
+ const file2 = ts32.createSourceFile("config.ts", configSource, ts32.ScriptTarget.Latest, true, ts32.ScriptKind.TS);
214007
214205
  const found = [];
214008
214206
  const literalOf2 = (o2, name) => {
214009
214207
  const v2 = propOf(o2, name)?.initializer;
214010
- return v2 && ts30.isStringLiteralLike(v2) ? v2 : void 0;
214208
+ return v2 && ts32.isStringLiteralLike(v2) ? v2 : void 0;
214011
214209
  };
214012
214210
  const visit = (node4) => {
214013
- if (ts30.isObjectLiteralExpression(node4)) {
214211
+ if (ts32.isObjectLiteralExpression(node4)) {
214014
214212
  const id = literalOf2(node4, "id")?.text;
214015
214213
  const onTap = propOf(node4, "onTap")?.initializer;
214016
- const params = onTap && ts30.isObjectLiteralExpression(onTap) ? propOf(onTap, "params")?.initializer : void 0;
214017
- const tapTarget2 = params && ts30.isObjectLiteralExpression(params) ? literalOf2(params, "screenId") : void 0;
214214
+ const params = onTap && ts32.isObjectLiteralExpression(onTap) ? propOf(onTap, "params")?.initializer : void 0;
214215
+ const tapTarget2 = params && ts32.isObjectLiteralExpression(params) ? literalOf2(params, "screenId") : void 0;
214018
214216
  if (id === "chat" && tapTarget2) found.push({ site: "top-bar chat", literal: tapTarget2 });
214019
214217
  const screenId = literalOf2(node4, "screenId");
214020
214218
  if (id === "drawer_inbox" && screenId) found.push({ site: "drawer Inbox", literal: screenId });
@@ -214022,7 +214220,7 @@ function inboxEntriesInConfig(configSource) {
214022
214220
  if (screenId?.text === "himi_chat_thread" && parent) found.push({ site: "chat thread parent", literal: parent });
214023
214221
  if (screenId?.text === BUSINESS_CHAT_SCREEN2 && parent?.text === "") found.push({ site: "business chat parent", literal: parent });
214024
214222
  }
214025
- ts30.forEachChild(node4, visit);
214223
+ ts32.forEachChild(node4, visit);
214026
214224
  };
214027
214225
  visit(file2);
214028
214226
  const stale = found.filter((f2) => f2.literal.text === BUSINESS_CHAT_SCREEN2 || f2.site === "business chat parent");
@@ -214317,8 +214515,8 @@ var init_provision = __esm({
214317
214515
  { screenId: "himi_service", param: "businessTimeZone", evidence: "timeZone" },
214318
214516
  { screenId: "himi_time", param: "businessTimeZone", evidence: "timeZone" }
214319
214517
  ];
214320
- propName9 = (p2) => ts30.isPropertyAssignment(p2) && (ts30.isIdentifier(p2.name) || ts30.isStringLiteral(p2.name)) ? p2.name.text : void 0;
214321
- propOf = (o2, name) => o2.properties.find((p2) => propName9(p2) === name && ts30.isPropertyAssignment(p2));
214518
+ propName9 = (p2) => ts32.isPropertyAssignment(p2) && (ts32.isIdentifier(p2.name) || ts32.isStringLiteral(p2.name)) ? p2.name.text : void 0;
214519
+ propOf = (o2, name) => o2.properties.find((p2) => propName9(p2) === name && ts32.isPropertyAssignment(p2));
214322
214520
  GUID2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
214323
214521
  BUSINESS_CHAT_SCREEN2 = "himi_business_chat";
214324
214522
  INBOX_DOOR_SCREENS = ["himi_account", "himi_chat_thread"];
@@ -214341,7 +214539,7 @@ __export(validate_topbar_exports, {
214341
214539
  import { createHash as createHash51 } from "node:crypto";
214342
214540
  import { existsSync as existsSync106, readFileSync as readFileSync118, statSync as statSync29 } from "node:fs";
214343
214541
  import { resolve as resolve72, join as join107 } from "node:path";
214344
- import ts31 from "typescript";
214542
+ import ts33 from "typescript";
214345
214543
  function enrichedControls(raw, views2, omit) {
214346
214544
  const result = /* @__PURE__ */ new Map();
214347
214545
  const orders = /* @__PURE__ */ new Map();
@@ -214484,22 +214682,22 @@ function authoredControls(raw) {
214484
214682
  return { controls, byScreen, inviteDisabled, screens: count3 };
214485
214683
  }
214486
214684
  function property(node4, name) {
214487
- const item2 = node4?.properties.find((candidate) => ts31.isPropertyAssignment(candidate) && ((ts31.isIdentifier(candidate.name) || ts31.isStringLiteral(candidate.name)) && candidate.name.text === name));
214488
- return item2 && ts31.isPropertyAssignment(item2) ? item2.initializer : void 0;
214685
+ const item2 = node4?.properties.find((candidate) => ts33.isPropertyAssignment(candidate) && ((ts33.isIdentifier(candidate.name) || ts33.isStringLiteral(candidate.name)) && candidate.name.text === name));
214686
+ return item2 && ts33.isPropertyAssignment(item2) ? item2.initializer : void 0;
214489
214687
  }
214490
214688
  function unwrap5(node4) {
214491
- while (ts31.isParenthesizedExpression(node4) || ts31.isAsExpression(node4) || ts31.isSatisfiesExpression(node4)) node4 = node4.expression;
214689
+ while (ts33.isParenthesizedExpression(node4) || ts33.isAsExpression(node4) || ts33.isSatisfiesExpression(node4)) node4 = node4.expression;
214492
214690
  return node4;
214493
214691
  }
214494
214692
  function resolveObject(node4, source2, seen = /* @__PURE__ */ new Set()) {
214495
214693
  if (!node4) return void 0;
214496
214694
  const value2 = unwrap5(node4);
214497
- if (ts31.isObjectLiteralExpression(value2)) return value2;
214498
- if (!ts31.isIdentifier(value2) || seen.has(value2.text)) return void 0;
214695
+ if (ts33.isObjectLiteralExpression(value2)) return value2;
214696
+ if (!ts33.isIdentifier(value2) || seen.has(value2.text)) return void 0;
214499
214697
  seen.add(value2.text);
214500
214698
  for (const statement of source2.statements) {
214501
- if (!ts31.isVariableStatement(statement)) continue;
214502
- const declaration2 = statement.declarationList.declarations.find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === value2.text);
214699
+ if (!ts33.isVariableStatement(statement)) continue;
214700
+ const declaration2 = statement.declarationList.declarations.find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === value2.text);
214503
214701
  if (declaration2?.initializer) return resolveObject(declaration2.initializer, source2, seen);
214504
214702
  }
214505
214703
  return void 0;
@@ -214508,21 +214706,21 @@ function resolveScreenObject(node4, source2) {
214508
214706
  const direct = resolveObject(node4, source2);
214509
214707
  if (direct) return direct;
214510
214708
  const value2 = unwrap5(node4);
214511
- const name = ts31.isCallExpression(value2) && ts31.isIdentifier(value2.expression) ? value2.expression.text : ts31.isIdentifier(value2) ? value2.text : void 0;
214709
+ const name = ts33.isCallExpression(value2) && ts33.isIdentifier(value2.expression) ? value2.expression.text : ts33.isIdentifier(value2) ? value2.text : void 0;
214512
214710
  if (!name) return void 0;
214513
- const functionBody = source2.statements.find((statement) => ts31.isFunctionDeclaration(statement) && statement.name?.text === name)?.body;
214514
- const variable = source2.statements.filter(ts31.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === name);
214711
+ const functionBody = source2.statements.find((statement) => ts33.isFunctionDeclaration(statement) && statement.name?.text === name)?.body;
214712
+ const variable = source2.statements.filter(ts33.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === name);
214515
214713
  const initializer = variable?.initializer && unwrap5(variable.initializer);
214516
- const body = functionBody ?? (initializer && (ts31.isArrowFunction(initializer) || ts31.isFunctionExpression(initializer)) ? initializer.body : void 0);
214714
+ const body = functionBody ?? (initializer && (ts33.isArrowFunction(initializer) || ts33.isFunctionExpression(initializer)) ? initializer.body : void 0);
214517
214715
  if (!body) return void 0;
214518
- if (!ts31.isBlock(body)) return resolveObject(body, source2);
214519
- const returns = body.statements.filter(ts31.isReturnStatement);
214716
+ if (!ts33.isBlock(body)) return resolveObject(body, source2);
214717
+ const returns = body.statements.filter(ts33.isReturnStatement);
214520
214718
  return returns.length === 1 ? resolveObject(returns[0]?.expression, source2) : void 0;
214521
214719
  }
214522
214720
  function stringValue3(node4) {
214523
214721
  if (!node4) return void 0;
214524
214722
  const value2 = unwrap5(node4);
214525
- return ts31.isStringLiteralLike(value2) ? value2.text : void 0;
214723
+ return ts33.isStringLiteralLike(value2) ? value2.text : void 0;
214526
214724
  }
214527
214725
  function actionTokens(action) {
214528
214726
  const values = ["id", "icon", "label", "accessibilityLabel"].map((key4) => stringValue3(property(action, key4)) ?? "").join(" ").replace(/([a-z0-9])([A-Z])/g, "$1 $2").toLowerCase().match(/[a-z0-9]+/g) ?? [];
@@ -214535,18 +214733,18 @@ function hasAction(node4, source2) {
214535
214733
  }
214536
214734
  function inviteRecipe(node4, source2, seen = /* @__PURE__ */ new Set()) {
214537
214735
  const value2 = unwrap5(node4);
214538
- if (ts31.isIdentifier(value2)) {
214736
+ if (ts33.isIdentifier(value2)) {
214539
214737
  if (seen.has(value2.text)) return void 0;
214540
214738
  seen.add(value2.text);
214541
- const declaration2 = source2.statements.filter(ts31.isVariableStatement).flatMap((s5) => [...s5.declarationList.declarations]).find((d2) => ts31.isIdentifier(d2.name) && d2.name.text === value2.text);
214739
+ const declaration2 = source2.statements.filter(ts33.isVariableStatement).flatMap((s5) => [...s5.declarationList.declarations]).find((d2) => ts33.isIdentifier(d2.name) && d2.name.text === value2.text);
214542
214740
  return declaration2?.initializer ? inviteRecipe(declaration2.initializer, source2, seen) : void 0;
214543
214741
  }
214544
- if (!ts31.isCallExpression(value2) || !ts31.isIdentifier(value2.expression) || value2.arguments.length > 1) return void 0;
214742
+ if (!ts33.isCallExpression(value2) || !ts33.isIdentifier(value2.expression) || value2.arguments.length > 1) return void 0;
214545
214743
  const localName = value2.expression.text;
214546
- const imported = source2.statements.filter(ts31.isImportDeclaration).some((statement) => {
214744
+ const imported = source2.statements.filter(ts33.isImportDeclaration).some((statement) => {
214547
214745
  if (statement.importClause?.isTypeOnly || !["@wix/himalaya/screens", "@himalaya/screens"].includes(stringValue3(statement.moduleSpecifier) ?? "")) return false;
214548
214746
  const names2 = statement.importClause?.namedBindings;
214549
- return names2 && ts31.isNamedImports(names2) && names2.elements.some((specifier) => !specifier.isTypeOnly && specifier.name.text === localName && (specifier.propertyName?.text ?? specifier.name.text) === "inviteAction");
214747
+ return names2 && ts33.isNamedImports(names2) && names2.elements.some((specifier) => !specifier.isTypeOnly && specifier.name.text === localName && (specifier.propertyName?.text ?? specifier.name.text) === "inviteAction");
214550
214748
  });
214551
214749
  if (!imported) return void 0;
214552
214750
  const options2 = value2.arguments[0] ? resolveObject(value2.arguments[0], source2) : void 0;
@@ -214567,7 +214765,7 @@ function inviteRecipe(node4, source2, seen = /* @__PURE__ */ new Set()) {
214567
214765
  function knownProperties(node4) {
214568
214766
  const names2 = /* @__PURE__ */ new Set();
214569
214767
  return node4.properties.every((prop2) => {
214570
- if (!ts31.isPropertyAssignment(prop2) || !ts31.isIdentifier(prop2.name) && !ts31.isStringLiteral(prop2.name)) return false;
214768
+ if (!ts33.isPropertyAssignment(prop2) || !ts33.isIdentifier(prop2.name) && !ts33.isStringLiteral(prop2.name)) return false;
214571
214769
  if (names2.has(prop2.name.text)) return false;
214572
214770
  names2.add(prop2.name.text);
214573
214771
  return true;
@@ -214576,19 +214774,19 @@ function knownProperties(node4) {
214576
214774
  function absentValue(node4) {
214577
214775
  if (!node4) return true;
214578
214776
  const value2 = unwrap5(node4);
214579
- return value2.kind === ts31.SyntaxKind.NullKeyword || ts31.isIdentifier(value2) && value2.text === "undefined";
214777
+ return value2.kind === ts33.SyntaxKind.NullKeyword || ts33.isIdentifier(value2) && value2.text === "undefined";
214580
214778
  }
214581
214779
  function itemObjects(topBar, source2) {
214582
214780
  const node4 = property(topBar, "items");
214583
214781
  let list5 = node4 && unwrap5(node4);
214584
- if (list5 && ts31.isIdentifier(list5)) {
214782
+ if (list5 && ts33.isIdentifier(list5)) {
214585
214783
  const name = list5.text;
214586
- const init = source2.statements.filter(ts31.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === name)?.initializer;
214784
+ const init = source2.statements.filter(ts33.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === name)?.initializer;
214587
214785
  list5 = init && unwrap5(init);
214588
214786
  }
214589
- if (!list5 || !ts31.isArrayLiteralExpression(list5)) return [];
214787
+ if (!list5 || !ts33.isArrayLiteralExpression(list5)) return [];
214590
214788
  return list5.elements.flatMap((item2) => {
214591
- const object16 = ts31.isExpression(item2) ? resolveObject(item2, source2) : void 0;
214789
+ const object16 = ts33.isExpression(item2) ? resolveObject(item2, source2) : void 0;
214592
214790
  return object16 ? [object16] : [];
214593
214791
  });
214594
214792
  }
@@ -214609,12 +214807,12 @@ function itemsReadable(topBar, source2) {
214609
214807
  const node4 = property(topBar, "items");
214610
214808
  if (!node4 || absentValue(node4)) return true;
214611
214809
  let list5 = unwrap5(node4);
214612
- if (ts31.isIdentifier(list5)) {
214810
+ if (ts33.isIdentifier(list5)) {
214613
214811
  const name = list5.text;
214614
- const init = source2.statements.filter(ts31.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === name)?.initializer;
214812
+ const init = source2.statements.filter(ts33.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === name)?.initializer;
214615
214813
  list5 = init && unwrap5(init);
214616
214814
  }
214617
- return !!list5 && ts31.isArrayLiteralExpression(list5) && list5.elements.every((item2) => ts31.isExpression(item2) && !!resolveObject(item2, source2));
214815
+ return !!list5 && ts33.isArrayLiteralExpression(list5) && list5.elements.every((item2) => ts33.isExpression(item2) && !!resolveObject(item2, source2));
214618
214816
  }
214619
214817
  function leadingSlot(topBar, source2) {
214620
214818
  const leading = stringValue3(property(topBar, "leading"));
@@ -214653,12 +214851,12 @@ function parseActions(topBar, source2) {
214653
214851
  if (!actionExpr) return { actions: [], items, leading };
214654
214852
  const actionsNode = unwrap5(actionExpr);
214655
214853
  let elements2;
214656
- if (ts31.isArrayLiteralExpression(actionsNode)) elements2 = actionsNode.elements.filter(ts31.isExpression);
214657
- else if (ts31.isIdentifier(actionsNode)) {
214658
- const declaration2 = source2.statements.filter(ts31.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === actionsNode.text);
214854
+ if (ts33.isArrayLiteralExpression(actionsNode)) elements2 = actionsNode.elements.filter(ts33.isExpression);
214855
+ else if (ts33.isIdentifier(actionsNode)) {
214856
+ const declaration2 = source2.statements.filter(ts33.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === actionsNode.text);
214659
214857
  const init = declaration2?.initializer && unwrap5(declaration2.initializer);
214660
- if (!init || !ts31.isArrayLiteralExpression(init)) return { actions: [], items, leading, error: "Top-bar actions cannot be statically inspected." };
214661
- elements2 = init.elements.filter(ts31.isExpression);
214858
+ if (!init || !ts33.isArrayLiteralExpression(init)) return { actions: [], items, leading, error: "Top-bar actions cannot be statically inspected." };
214859
+ elements2 = init.elements.filter(ts33.isExpression);
214662
214860
  } else return { actions: [], items, leading, error: "Top-bar actions cannot be statically inspected." };
214663
214861
  const actions = [];
214664
214862
  for (const item2 of elements2) {
@@ -214698,23 +214896,23 @@ function parseActions(topBar, source2) {
214698
214896
  return { actions, items, leading };
214699
214897
  }
214700
214898
  function appLevelBundleUrl(configPath) {
214701
- const source2 = ts31.createSourceFile(configPath, readFileSync118(configPath, "utf8"), ts31.ScriptTarget.Latest, true, ts31.ScriptKind.TS);
214899
+ const source2 = ts33.createSourceFile(configPath, readFileSync118(configPath, "utf8"), ts33.ScriptTarget.Latest, true, ts33.ScriptKind.TS);
214702
214900
  if (source2.parseDiagnostics.length) return void 0;
214703
- const exportAssignment = source2.statements.find(ts31.isExportAssignment);
214901
+ const exportAssignment = source2.statements.find(ts33.isExportAssignment);
214704
214902
  if (!exportAssignment) return void 0;
214705
214903
  let exported = unwrap5(exportAssignment.expression);
214706
- if (ts31.isIdentifier(exported)) {
214904
+ if (ts33.isIdentifier(exported)) {
214707
214905
  const exportedName = exported.text;
214708
214906
  for (const statement of source2.statements) {
214709
- if (!ts31.isVariableStatement(statement)) continue;
214710
- const declaration2 = statement.declarationList.declarations.find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === exportedName);
214907
+ if (!ts33.isVariableStatement(statement)) continue;
214908
+ const declaration2 = statement.declarationList.declarations.find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === exportedName);
214711
214909
  if (declaration2?.initializer) {
214712
214910
  exported = unwrap5(declaration2.initializer);
214713
214911
  break;
214714
214912
  }
214715
214913
  }
214716
214914
  }
214717
- if (!ts31.isCallExpression(exported) || !exported.arguments[0]) return void 0;
214915
+ if (!ts33.isCallExpression(exported) || !exported.arguments[0]) return void 0;
214718
214916
  const app2 = resolveObject(exported.arguments[0], source2);
214719
214917
  if (!app2 || !knownProperties(app2)) return void 0;
214720
214918
  const navigation = resolveObject(property(app2, "navigation"), source2);
@@ -214723,23 +214921,23 @@ function appLevelBundleUrl(configPath) {
214723
214921
  return stringValue3(property(worker, "url"));
214724
214922
  }
214725
214923
  function configActions(configPath) {
214726
- const source2 = ts31.createSourceFile(configPath, readFileSync118(configPath, "utf8"), ts31.ScriptTarget.Latest, true, ts31.ScriptKind.TS);
214924
+ const source2 = ts33.createSourceFile(configPath, readFileSync118(configPath, "utf8"), ts33.ScriptTarget.Latest, true, ts33.ScriptKind.TS);
214727
214925
  if (source2.parseDiagnostics.length) return { actions: [], error: "config.ts could not be parsed." };
214728
- const exportAssignment = source2.statements.find(ts31.isExportAssignment);
214926
+ const exportAssignment = source2.statements.find(ts33.isExportAssignment);
214729
214927
  if (!exportAssignment) return { actions: [], error: "config.ts has no default app export." };
214730
214928
  let exported = unwrap5(exportAssignment.expression);
214731
- if (ts31.isIdentifier(exported)) {
214929
+ if (ts33.isIdentifier(exported)) {
214732
214930
  const exportedName = exported.text;
214733
214931
  for (const statement of source2.statements) {
214734
- if (!ts31.isVariableStatement(statement)) continue;
214735
- const declaration2 = statement.declarationList.declarations.find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === exportedName);
214932
+ if (!ts33.isVariableStatement(statement)) continue;
214933
+ const declaration2 = statement.declarationList.declarations.find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === exportedName);
214736
214934
  if (declaration2?.initializer) {
214737
214935
  exported = unwrap5(declaration2.initializer);
214738
214936
  break;
214739
214937
  }
214740
214938
  }
214741
214939
  }
214742
- if (!ts31.isCallExpression(exported) || !exported.arguments[0]) return { actions: [], error: "config.ts does not default-export defineApp({...})." };
214940
+ if (!ts33.isCallExpression(exported) || !exported.arguments[0]) return { actions: [], error: "config.ts does not default-export defineApp({...})." };
214743
214941
  const uninspectable = { actions: [], error: "navigation.topBarDefault cannot be statically inspected." };
214744
214942
  const app2 = resolveObject(exported.arguments[0], source2);
214745
214943
  if (!app2 || !knownProperties(app2)) return uninspectable;
@@ -214755,7 +214953,7 @@ function configActions(configPath) {
214755
214953
  const appServices = resolveObject(property(app2, "app"), source2);
214756
214954
  const worker = resolveObject(property(navigation, "navLogicBundle") ?? property(appServices, "logicBundle"), source2);
214757
214955
  const links = property(navigation, "linkableScreens");
214758
- const linkableScreens = new Set(links && ts31.isArrayLiteralExpression(unwrap5(links)) ? unwrap5(links).elements.map((item2) => stringValue3(property(resolveObject(item2, source2), "screenId"))).filter((id) => !!id) : []);
214956
+ const linkableScreens = new Set(links && ts33.isArrayLiteralExpression(unwrap5(links)) ? unwrap5(links).elements.map((item2) => stringValue3(property(resolveObject(item2, source2), "screenId"))).filter((id) => !!id) : []);
214759
214957
  return {
214760
214958
  ...parsed,
214761
214959
  linkableScreens,
@@ -214768,13 +214966,13 @@ function configActions(configPath) {
214768
214966
  function screenActions2(contentDir2) {
214769
214967
  const path2 = join107(contentDir2, "dev", "index.ts");
214770
214968
  if (!existsSync106(path2)) return /* @__PURE__ */ new Map();
214771
- const source2 = ts31.createSourceFile(path2, readFileSync118(path2, "utf8"), ts31.ScriptTarget.Latest, true, ts31.ScriptKind.TS);
214969
+ const source2 = ts33.createSourceFile(path2, readFileSync118(path2, "utf8"), ts33.ScriptTarget.Latest, true, ts33.ScriptKind.TS);
214772
214970
  if (source2.parseDiagnostics.length) throw Error("dev/index.ts could not be parsed.");
214773
- const declaration2 = source2.statements.filter(ts31.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts31.isIdentifier(item2.name) && item2.name.text === "SCREENS");
214971
+ const declaration2 = source2.statements.filter(ts33.isVariableStatement).flatMap((statement) => [...statement.declarationList.declarations]).find((item2) => ts33.isIdentifier(item2.name) && item2.name.text === "SCREENS");
214774
214972
  const initializer = declaration2?.initializer && unwrap5(declaration2.initializer);
214775
- let registry2 = initializer && ts31.isCallExpression(initializer) ? resolveObject(initializer.arguments[0], source2) : resolveObject(initializer, source2);
214973
+ let registry2 = initializer && ts33.isCallExpression(initializer) ? resolveObject(initializer.arguments[0], source2) : resolveObject(initializer, source2);
214776
214974
  if (!declaration2) {
214777
- const exported = source2.statements.find(ts31.isExportAssignment);
214975
+ const exported = source2.statements.find(ts33.isExportAssignment);
214778
214976
  const module = resolveObject(exported?.expression, source2);
214779
214977
  const screens = resolveObject(property(module, "screens"), source2);
214780
214978
  registry2 = resolveObject(property(screens, "exact"), source2);
@@ -214782,11 +214980,11 @@ function screenActions2(contentDir2) {
214782
214980
  if (!registry2) throw Error("dev/index.ts screen registry cannot be statically inspected.");
214783
214981
  const result = /* @__PURE__ */ new Map();
214784
214982
  for (const item2 of registry2.properties) {
214785
- if (!ts31.isPropertyAssignment(item2) || !ts31.isIdentifier(item2.name) && !ts31.isStringLiteral(item2.name)) {
214983
+ if (!ts33.isPropertyAssignment(item2) || !ts33.isIdentifier(item2.name) && !ts33.isStringLiteral(item2.name)) {
214786
214984
  throw Error("dev/index.ts screen registry contains entries that cannot be statically inspected.");
214787
214985
  }
214788
214986
  const screen = resolveScreenObject(item2.initializer, source2);
214789
- if (!screen || screen.properties.some(ts31.isSpreadAssignment)) {
214987
+ if (!screen || screen.properties.some(ts33.isSpreadAssignment)) {
214790
214988
  result.set(item2.name.text, { actions: [], error: "ScreenDescriptor cannot be statically inspected." });
214791
214989
  continue;
214792
214990
  }
@@ -215166,9 +215364,9 @@ __export(shell_warnings_exports, {
215166
215364
  });
215167
215365
  import { existsSync as existsSync107, readFileSync as readFileSync119 } from "node:fs";
215168
215366
  import { join as join108 } from "node:path";
215169
- import ts32 from "typescript";
215367
+ import ts34 from "typescript";
215170
215368
  function drawerRows(configText) {
215171
- const file2 = ts32.createSourceFile("config.ts", configText, ts32.ScriptTarget.Latest, true, ts32.ScriptKind.TS);
215369
+ const file2 = ts34.createSourceFile("config.ts", configText, ts34.ScriptTarget.Latest, true, ts34.ScriptKind.TS);
215172
215370
  return drawerOf(file2)?.items?.elements.length ?? 0;
215173
215371
  }
215174
215372
  function keptReason(dir) {
@@ -267640,19 +267838,19 @@ __export(app_services_exports, {
267640
267838
  appLevelServices: () => appLevelServices,
267641
267839
  definedServices: () => definedServices
267642
267840
  });
267643
- import ts33 from "typescript";
267841
+ import ts35 from "typescript";
267644
267842
  import { existsSync as existsSync125, readFileSync as readFileSync148 } from "node:fs";
267645
267843
  import { join as join158 } from "node:path";
267646
267844
  function definedServices(source2, fileName = "worker.ts") {
267647
- const file2 = ts33.createSourceFile(fileName, source2, ts33.ScriptTarget.Latest, true, ts33.ScriptKind.TS);
267845
+ const file2 = ts35.createSourceFile(fileName, source2, ts35.ScriptTarget.Latest, true, ts35.ScriptKind.TS);
267648
267846
  const names2 = [];
267649
267847
  const visit = (node4) => {
267650
- if (ts33.isCallExpression(node4)) {
267651
- const callee = ts33.isIdentifier(node4.expression) ? node4.expression.text : ts33.isPropertyAccessExpression(node4.expression) ? node4.expression.name.text : "";
267848
+ if (ts35.isCallExpression(node4)) {
267849
+ const callee = ts35.isIdentifier(node4.expression) ? node4.expression.text : ts35.isPropertyAccessExpression(node4.expression) ? node4.expression.name.text : "";
267652
267850
  const first = node4.arguments[0];
267653
- if (/^defineService[0-9]*$/.test(callee) && first && ts33.isStringLiteralLike(first)) names2.push(first.text);
267851
+ if (/^defineService[0-9]*$/.test(callee) && first && ts35.isStringLiteralLike(first)) names2.push(first.text);
267654
267852
  }
267655
- ts33.forEachChild(node4, visit);
267853
+ ts35.forEachChild(node4, visit);
267656
267854
  };
267657
267855
  visit(file2);
267658
267856
  return names2;
@@ -268123,7 +268321,7 @@ var init_coverage2 = __esm({
268123
268321
  // src/one-app/apply-navigation.ts
268124
268322
  import { existsSync as existsSync127, readFileSync as readFileSync151 } from "node:fs";
268125
268323
  import { join as join161 } from "node:path";
268126
- import ts34 from "typescript";
268324
+ import ts36 from "typescript";
268127
268325
  function pagesWithoutScreen(plan, planned2) {
268128
268326
  const have = new Map((plan.pages ?? []).map((page) => [page.layoutItemId, page]));
268129
268327
  const missing4 = /* @__PURE__ */ new Map();
@@ -268156,14 +268354,14 @@ ${indent}`);
268156
268354
  }
268157
268355
  function applyNavigationToConfig(source2, plan, fileName = "config.ts") {
268158
268356
  const kept = (reason) => ({ source: source2, status: "kept", tabIds: [], repointed: 0, reason });
268159
- const file2 = ts34.createSourceFile(fileName, source2, ts34.ScriptTarget.Latest, true, ts34.ScriptKind.TS);
268357
+ const file2 = ts36.createSourceFile(fileName, source2, ts36.ScriptTarget.Latest, true, ts36.ScriptKind.TS);
268160
268358
  const app2 = defineAppLiteral(file2);
268161
268359
  const navigation = app2 && objectOf(property2(app2, "navigation"));
268162
268360
  if (!navigation) return kept("config.ts has no `navigation: { \u2026 }` object literal in its defineApp call");
268163
268361
  const tabBar = objectOf(property2(navigation, "tabBar"));
268164
268362
  const itemsNode = tabBar && property2(tabBar, "items");
268165
268363
  const items = itemsNode && unwrap(itemsNode.initializer);
268166
- if (!items || !ts34.isArrayLiteralExpression(items)) return kept("`navigation.tabBar.items` is not an array literal this step can rewrite");
268364
+ if (!items || !ts36.isArrayLiteralExpression(items)) return kept("`navigation.tabBar.items` is not an array literal this step can rewrite");
268167
268365
  if (!plan.tabs.length) return kept("the generated tabs file lists no tabs");
268168
268366
  const taken2 = /* @__PURE__ */ new Set();
268169
268367
  const tabs = plan.tabs.map((tab) => ({ tab, id: tabIdFor(tab, taken2) }));
@@ -268174,7 +268372,7 @@ function applyNavigationToConfig(source2, plan, fileName = "config.ts") {
268174
268372
  });
268175
268373
  const splices = [{ at: items.getStart(file2), end: items.end, text: indentedJson(written, file2, items) }];
268176
268374
  const navKind = property2(navigation, "navKind");
268177
- if (navKind && ts34.isStringLiteralLike(unwrap(navKind.initializer)) && unwrap(navKind.initializer).text !== plan.navKind) {
268375
+ if (navKind && ts36.isStringLiteralLike(unwrap(navKind.initializer)) && unwrap(navKind.initializer).text !== plan.navKind) {
268178
268376
  const value2 = unwrap(navKind.initializer);
268179
268377
  splices.push({ at: value2.getStart(file2), end: value2.end, text: JSON.stringify(plan.navKind) });
268180
268378
  }
@@ -268184,18 +268382,18 @@ function applyNavigationToConfig(source2, plan, fileName = "config.ts") {
268184
268382
  const newScreenOf = new Map(tabs.map(({ tab, id }) => [id, tab.screenId]));
268185
268383
  const reused = new Set(items.elements.flatMap((element) => {
268186
268384
  const entry = unwrap(element);
268187
- if (!ts34.isObjectLiteralExpression(entry)) return [];
268385
+ if (!ts36.isObjectLiteralExpression(entry)) return [];
268188
268386
  const id = stringOf4(property2(entry, "id")), screenId = stringOf4(property2(entry, "screenId"));
268189
268387
  return id && newScreenOf.has(id) && newScreenOf.get(id) !== screenId ? [id] : [];
268190
268388
  }));
268191
268389
  let repointed = 0;
268192
268390
  const links = property2(navigation, "linkableScreens");
268193
268391
  const linkItems = links && unwrap(links.initializer);
268194
- if (linkItems && ts34.isArrayLiteralExpression(linkItems)) {
268392
+ if (linkItems && ts36.isArrayLiteralExpression(linkItems)) {
268195
268393
  const parentOf2 = /* @__PURE__ */ new Map();
268196
268394
  for (const element of linkItems.elements) {
268197
268395
  const entry = unwrap(element);
268198
- if (ts34.isObjectLiteralExpression(entry)) parentOf2.set(stringOf4(property2(entry, "screenId")), stringOf4(property2(entry, "parentScreenId")));
268396
+ if (ts36.isObjectLiteralExpression(entry)) parentOf2.set(stringOf4(property2(entry, "screenId")), stringOf4(property2(entry, "parentScreenId")));
268199
268397
  }
268200
268398
  const ownerOf = (screenId, seen = /* @__PURE__ */ new Set()) => {
268201
268399
  if (!screenId || seen.has(screenId)) return void 0;
@@ -268204,10 +268402,10 @@ function applyNavigationToConfig(source2, plan, fileName = "config.ts") {
268204
268402
  };
268205
268403
  for (const element of linkItems.elements) {
268206
268404
  const entry = unwrap(element);
268207
- if (!ts34.isObjectLiteralExpression(entry)) continue;
268405
+ if (!ts36.isObjectLiteralExpression(entry)) continue;
268208
268406
  const tabId = property2(entry, "tabId");
268209
268407
  const value2 = tabId && unwrap(tabId.initializer);
268210
- if (!value2 || !ts34.isStringLiteralLike(value2) || value2.text === "") continue;
268408
+ if (!value2 || !ts36.isStringLiteralLike(value2) || value2.text === "") continue;
268211
268409
  if (valid3.has(value2.text) && !reused.has(value2.text)) continue;
268212
268410
  const owner = ownerOf(stringOf4(property2(entry, "screenId"))) ?? "";
268213
268411
  if (owner === value2.text) continue;
@@ -268220,7 +268418,7 @@ function applyNavigationToConfig(source2, plan, fileName = "config.ts") {
268220
268418
  }
268221
268419
  function stringOf4(node4) {
268222
268420
  const value2 = node4 && unwrap(node4.initializer);
268223
- return value2 && ts34.isStringLiteralLike(value2) ? value2.text : "";
268421
+ return value2 && ts36.isStringLiteralLike(value2) ? value2.text : "";
268224
268422
  }
268225
268423
  function definedScreens(contentDir2) {
268226
268424
  try {
@@ -268369,7 +268567,7 @@ var init_apply_navigation = __esm({
268369
268567
  FALLBACK_ICON = "list";
268370
268568
  objectOf = (node4) => {
268371
268569
  const value2 = node4 && unwrap(node4.initializer);
268372
- return value2 && ts34.isObjectLiteralExpression(value2) ? value2 : void 0;
268570
+ return value2 && ts36.isObjectLiteralExpression(value2) ? value2 : void 0;
268373
268571
  };
268374
268572
  }
268375
268573
  });
@@ -268394,7 +268592,7 @@ var init_bookings = __esm({
268394
268592
  // src/one-app/starter-keep-list.ts
268395
268593
  import { existsSync as existsSync128, readFileSync as readFileSync152, writeFileSync as writeFileSync60 } from "node:fs";
268396
268594
  import { join as join162 } from "node:path";
268397
- import ts35 from "typescript";
268595
+ import ts37 from "typescript";
268398
268596
  function screensOpenedBy(node4, found = /* @__PURE__ */ new Set()) {
268399
268597
  if (Array.isArray(node4)) {
268400
268598
  for (const child3 of node4) screensOpenedBy(child3, found);
@@ -268599,21 +268797,21 @@ ${block(columns)}${spec.slice(lastRowEnd)}`, added };
268599
268797
  ${spec.slice(end2).replace(/^\n*/, "\n")}`, added };
268600
268798
  }
268601
268799
  function sharedModulesOf(workerSource) {
268602
- const file2 = ts35.createSourceFile("worker.ts", workerSource, ts35.ScriptTarget.Latest, true);
268800
+ const file2 = ts37.createSourceFile("worker.ts", workerSource, ts37.ScriptTarget.Latest, true);
268603
268801
  const modules = [];
268604
268802
  for (const statement of file2.statements) {
268605
- if (!ts35.isImportDeclaration(statement) || !ts35.isStringLiteral(statement.moduleSpecifier)) continue;
268803
+ if (!ts37.isImportDeclaration(statement) || !ts37.isStringLiteral(statement.moduleSpecifier)) continue;
268606
268804
  const specifier = statement.moduleSpecifier.text;
268607
268805
  if (specifier.startsWith("../_shared/") && specifier.endsWith(".js")) modules.push(specifier.slice("../_shared/".length, -".js".length));
268608
268806
  }
268609
268807
  return modules;
268610
268808
  }
268611
268809
  function literalsOf(text32) {
268612
- const file2 = ts35.createSourceFile("module.ts", text32, ts35.ScriptTarget.Latest, true);
268810
+ const file2 = ts37.createSourceFile("module.ts", text32, ts37.ScriptTarget.Latest, true);
268613
268811
  const out2 = [];
268614
268812
  const visit = (node4) => {
268615
- if (ts35.isStringLiteral(node4) || ts35.isNoSubstitutionTemplateLiteral(node4) || ts35.isTemplateHead(node4)) out2.push(node4.text);
268616
- ts35.forEachChild(node4, visit);
268813
+ if (ts37.isStringLiteral(node4) || ts37.isNoSubstitutionTemplateLiteral(node4) || ts37.isTemplateHead(node4)) out2.push(node4.text);
268814
+ ts37.forEachChild(node4, visit);
268617
268815
  };
268618
268816
  visit(file2);
268619
268817
  return out2;
@@ -268667,21 +268865,21 @@ var init_starter_keep_list = __esm({
268667
268865
  // src/one-app/custom-widget-component.ts
268668
268866
  import { existsSync as existsSync129, readFileSync as readFileSync153 } from "node:fs";
268669
268867
  import { join as join163 } from "node:path";
268670
- import ts36 from "typescript";
268868
+ import ts38 from "typescript";
268671
268869
  function exportsWidgetRegister(source2) {
268672
- const file2 = ts36.createSourceFile("widget.ts", source2, ts36.ScriptTarget.Latest, false, ts36.ScriptKind.TS);
268673
- const exported = (node4) => !!(ts36.canHaveModifiers(node4) && ts36.getModifiers(node4)?.some((m2) => m2.kind === ts36.SyntaxKind.ExportKeyword));
268870
+ const file2 = ts38.createSourceFile("widget.ts", source2, ts38.ScriptTarget.Latest, false, ts38.ScriptKind.TS);
268871
+ const exported = (node4) => !!(ts38.canHaveModifiers(node4) && ts38.getModifiers(node4)?.some((m2) => m2.kind === ts38.SyntaxKind.ExportKeyword));
268674
268872
  const unwrap6 = (e2) => {
268675
- while (e2 && (ts36.isParenthesizedExpression(e2) || ts36.isAsExpression(e2) || ts36.isSatisfiesExpression(e2))) e2 = e2.expression;
268873
+ while (e2 && (ts38.isParenthesizedExpression(e2) || ts38.isAsExpression(e2) || ts38.isSatisfiesExpression(e2))) e2 = e2.expression;
268676
268874
  return e2;
268677
268875
  };
268678
- const isFunctionNamed = (name) => file2.statements.some((statement) => ts36.isFunctionDeclaration(statement) && statement.name?.text === name && !!statement.body || ts36.isVariableStatement(statement) && (statement.declarationList.flags & ts36.NodeFlags.Const) !== 0 && statement.declarationList.declarations.some((d2) => {
268876
+ const isFunctionNamed = (name) => file2.statements.some((statement) => ts38.isFunctionDeclaration(statement) && statement.name?.text === name && !!statement.body || ts38.isVariableStatement(statement) && (statement.declarationList.flags & ts38.NodeFlags.Const) !== 0 && statement.declarationList.declarations.some((d2) => {
268679
268877
  const init = unwrap6(d2.initializer);
268680
- return ts36.isIdentifier(d2.name) && d2.name.text === name && !!init && (ts36.isArrowFunction(init) || ts36.isFunctionExpression(init));
268878
+ return ts38.isIdentifier(d2.name) && d2.name.text === name && !!init && (ts38.isArrowFunction(init) || ts38.isFunctionExpression(init));
268681
268879
  }));
268682
268880
  for (const statement of file2.statements) {
268683
- if ((ts36.isFunctionDeclaration(statement) || ts36.isVariableStatement(statement)) && exported(statement) && isFunctionNamed(WIDGET_REGISTER) && (ts36.isFunctionDeclaration(statement) ? statement.name?.text === WIDGET_REGISTER : statement.declarationList.declarations.some((d2) => ts36.isIdentifier(d2.name) && d2.name.text === WIDGET_REGISTER))) return true;
268684
- if (ts36.isExportDeclaration(statement) && !statement.moduleSpecifier && statement.exportClause && ts36.isNamedExports(statement.exportClause)) {
268881
+ if ((ts38.isFunctionDeclaration(statement) || ts38.isVariableStatement(statement)) && exported(statement) && isFunctionNamed(WIDGET_REGISTER) && (ts38.isFunctionDeclaration(statement) ? statement.name?.text === WIDGET_REGISTER : statement.declarationList.declarations.some((d2) => ts38.isIdentifier(d2.name) && d2.name.text === WIDGET_REGISTER))) return true;
268882
+ if (ts38.isExportDeclaration(statement) && !statement.moduleSpecifier && statement.exportClause && ts38.isNamedExports(statement.exportClause)) {
268685
268883
  const element = statement.exportClause.elements.find((e2) => e2.name.text === WIDGET_REGISTER);
268686
268884
  if (element && isFunctionNamed((element.propertyName ?? element.name).text)) return true;
268687
268885
  }
@@ -268873,7 +269071,7 @@ var init_widgets_plan = __esm({
268873
269071
  // src/one-app/generate-cli.ts
268874
269072
  import { existsSync as existsSync131, mkdirSync as mkdirSync59, readdirSync as readdirSync56, readFileSync as readFileSync155, rmSync as rmSync37, writeFileSync as writeFileSync61 } from "node:fs";
268875
269073
  import { dirname as dirname74, join as join165, resolve as resolve101 } from "node:path";
268876
- import ts37 from "typescript";
269074
+ import ts39 from "typescript";
268877
269075
  import { relative as relativePath, isAbsolute as isAbsolute21 } from "node:path";
268878
269076
  function removeStaleGeneratedWorkers(contentDir2, current) {
268879
269077
  const root = join165(contentDir2, "tier5-src");
@@ -269179,13 +269377,13 @@ function keyedWorkerCopy(contentDir2, locale, source2) {
269179
269377
  function copyParamKeys(source2) {
269180
269378
  const keys2 = /* @__PURE__ */ new Set();
269181
269379
  const visit = (node4) => {
269182
- if (ts37.isCallExpression(node4) && ts37.isIdentifier(node4.expression) && node4.expression.text === "copyParam") {
269380
+ if (ts39.isCallExpression(node4) && ts39.isIdentifier(node4.expression) && node4.expression.text === "copyParam") {
269183
269381
  const [key4] = node4.arguments;
269184
- if (key4 && ts37.isStringLiteralLike(key4)) keys2.add(key4.text);
269382
+ if (key4 && ts39.isStringLiteralLike(key4)) keys2.add(key4.text);
269185
269383
  }
269186
- ts37.forEachChild(node4, visit);
269384
+ ts39.forEachChild(node4, visit);
269187
269385
  };
269188
- visit(ts37.createSourceFile("module.ts", source2, ts37.ScriptTarget.Latest, true));
269386
+ visit(ts39.createSourceFile("module.ts", source2, ts39.ScriptTarget.Latest, true));
269189
269387
  return [...keys2];
269190
269388
  }
269191
269389
  var GENERATE_USAGE, idsFile, homeFile, shellArg, generatedPagesFile;
@@ -271747,7 +271945,7 @@ __export(validate_design_exports, {
271747
271945
  import { randomBytes as randomBytes22 } from "node:crypto";
271748
271946
  import { closeSync as closeSync12, constants as constants10, existsSync as existsSync138, lstatSync as lstatSync37, openSync as openSync11, readFileSync as readFileSync162, realpathSync as realpathSync21, renameSync as renameSync22, unlinkSync as unlinkSync9, writeFileSync as writeFileSync64 } from "node:fs";
271749
271947
  import { dirname as dirname76, isAbsolute as isAbsolute22, join as join173, relative as relative31, resolve as resolve105, sep as sep33, win32 } from "node:path";
271750
- import ts38 from "typescript";
271948
+ import ts40 from "typescript";
271751
271949
  function readColorToken(tokens2, name) {
271752
271950
  const entry = obj24(tokens2.colors)?.[name];
271753
271951
  if (typeof entry === "string") return { value: entry, origin: "token" };
@@ -271918,11 +272116,11 @@ function tokensLocation(contentDir2) {
271918
272116
  }
271919
272117
  function literalPolicyValue(expression) {
271920
272118
  const node4 = unwrap(expression);
271921
- if (ts38.isStringLiteralLike(node4)) return node4.text;
271922
- if (!ts38.isObjectLiteralExpression(node4)) throw new Error("The app idiom policy is computed and cannot be checked.");
272119
+ if (ts40.isStringLiteralLike(node4)) return node4.text;
272120
+ if (!ts40.isObjectLiteralExpression(node4)) throw new Error("The app idiom policy is computed and cannot be checked.");
271923
272121
  const value2 = {};
271924
272122
  for (const property3 of node4.properties) {
271925
- if (!ts38.isPropertyAssignment(property3) || !property3.name || !ts38.isIdentifier(property3.name) && !ts38.isStringLiteral(property3.name)) {
272123
+ if (!ts40.isPropertyAssignment(property3) || !property3.name || !ts40.isIdentifier(property3.name) && !ts40.isStringLiteral(property3.name)) {
271926
272124
  throw new Error("The app idiom policy is computed and cannot be checked.");
271927
272125
  }
271928
272126
  value2[property3.name.text] = literalPolicyValue(property3.initializer);
@@ -271935,7 +272133,7 @@ function activeIdiomNames(contentDir2, tokens2) {
271935
272133
  for (const name of ["config.ts", "config.js", "himi.config.ts"]) {
271936
272134
  const file2 = join173(contentDir2, name);
271937
272135
  if (!existsSync138(file2)) continue;
271938
- const source2 = ts38.createSourceFile(file2, readFileSync162(file2, "utf8"), ts38.ScriptTarget.Latest, true);
272136
+ const source2 = ts40.createSourceFile(file2, readFileSync162(file2, "utf8"), ts40.ScriptTarget.Latest, true);
271939
272137
  const app2 = defineAppLiteral(source2);
271940
272138
  if (!app2) throw new Error("The app config cannot be inspected for active idiom overlays.");
271941
272139
  const field = lookup(app2, "idiom");
@@ -277947,57 +278145,57 @@ var init_preview_assets_generated = __esm({
277947
278145
  init_define_HHP_CATALOG();
277948
278146
  init_preview_assets_format();
277949
278147
  PREVIEW_ASSET_MANIFEST = [
277950
- { key: "assets/DashboardHost-CmxkZdxD.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "889534c4a1e70a4c83ffdd04dc4a17e6ca62ad8c5d84b6fa90fdccb006bc135e" },
277951
- { key: "assets/DevDrawer-B5CbOJ5l.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "a60a7c31c5b09d0b2b756b7b4988ce5039662f73817356392ddd1ceedd493230" },
277952
- { key: "assets/IdiomCompare-Dm6eQkgH.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "3acb56c1bb50f7114ceaa43d92571e5ab1dccd0b9283fba3ad6102149e151163" },
277953
- { key: "assets/LightboxViewer-BeDlB9da.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15970, sha256: "886a5fba6e7677f721cc9e45397a841d1cb4cdb8d01119f4f55f69ec0c4db53d" },
277954
- { key: "assets/OfflineReadingBar-CmzHoKy8.js", contentType: "application/javascript; charset=utf-8", offset: 37672, length: 1761, sha256: "e92947ed0ca2103dbd62a2f6daf8f0d65ee0e0cdd736dd498705800cd4de9e01" },
277955
- { key: "assets/PhonePreviewControl-DSCr1Ceu.js", contentType: "application/javascript; charset=utf-8", offset: 39433, length: 37851, sha256: "55ef0a5d07044ac940d0148de5d9350a756b862863d8e6f72aa839f58eb7e874" },
277956
- { key: "assets/SchemeCompare-BZOqzbSJ.js", contentType: "application/javascript; charset=utf-8", offset: 77284, length: 1858, sha256: "bd8d7b2cf1cb00b851096a06fb621eae6b61d6ee41f92c39f1894c94aac12a1e" },
277957
- { key: "assets/TopBandLayer-BPoqM6MV.js", contentType: "application/javascript; charset=utf-8", offset: 79142, length: 1275, sha256: "a2b91d6557a104dd0dcc396407d82e1a2c2e7ec528ca83f559a916bed2387a5a" },
277958
- { key: "assets/TopBarSearchStates-FnmS57SO.js", contentType: "application/javascript; charset=utf-8", offset: 80417, length: 4069, sha256: "0e538ff04858d79a93c715fa335c3e9645299a65e27033923a6c80966c820dbf" },
277959
- { key: "assets/WixFrogTelemetrySink-C0SSAHLb.js", contentType: "application/javascript; charset=utf-8", offset: 84486, length: 3586, sha256: "9552aa5ae26583c013b00c3ac7e05c80621864cc07ed067c8a008bac79bb9522" },
278148
+ { key: "assets/DashboardHost-DSyw9Zjk.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "048f98021313e4e4c7b60cd2d9582346cbc299007f1f5423f0d17aab18b6c6b7" },
278149
+ { key: "assets/DevDrawer-7FDW10ku.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "9b459d0b6faa6866c61a0cbcc8d0db23e695a50704508966d13658d48f0f7432" },
278150
+ { key: "assets/IdiomCompare-hLULF0x0.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "a79b985828d2ffb4e0be99ee261f72efac4f558ee4c3fbc25149df76d5597875" },
278151
+ { key: "assets/LightboxViewer-B8kPSB1Y.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15970, sha256: "eaa4aef1d34022c69220c2d532ceecd953a486ae286246a47a2e6b608e95f038" },
278152
+ { key: "assets/OfflineReadingBar-Dtw_76f3.js", contentType: "application/javascript; charset=utf-8", offset: 37672, length: 1761, sha256: "419ee64aa2673fee4171c32399144f425b2d1a29c2cfee0a1dd231aa40a3a4a7" },
278153
+ { key: "assets/PhonePreviewControl-BgUreQJ_.js", contentType: "application/javascript; charset=utf-8", offset: 39433, length: 37851, sha256: "74f57760a725105f77218690069fbf22c2cd50924e61716442065e623f3227a4" },
278154
+ { key: "assets/SchemeCompare-Vfo7K-39.js", contentType: "application/javascript; charset=utf-8", offset: 77284, length: 1858, sha256: "ec2053b6e61c930071b0c4014450fe74d1f55a7230bfe760df1fe50255cedcb5" },
278155
+ { key: "assets/TopBandLayer-CkcsECh0.js", contentType: "application/javascript; charset=utf-8", offset: 79142, length: 1275, sha256: "544f18e6e17a261a66d468429ac784d77a3979373abdd9bd0591127f659239ed" },
278156
+ { key: "assets/TopBarSearchStates-Bu8V0HRS.js", contentType: "application/javascript; charset=utf-8", offset: 80417, length: 4069, sha256: "3c01cef2a3f9b0e698ed093e7ecbc54920782ab31fd1ed4dbbb6a0a4588a5f79" },
278157
+ { key: "assets/WixFrogTelemetrySink-DoXTPgkt.js", contentType: "application/javascript; charset=utf-8", offset: 84486, length: 3586, sha256: "8d06bab8303305a2721f8ca2dc1554f2980f31598065a04bb46c8ed5e1b8161a" },
277960
278158
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 88072, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
277961
278159
  { key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 90264, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
277962
- { key: "assets/catalogFontFaces-CuMGTd7j.js", contentType: "application/javascript; charset=utf-8", offset: 125890, length: 1111, sha256: "4687d31be8096624653437cd02a910cd5f0c1d7519eec51ed3e5a003cae30ff0" },
278160
+ { key: "assets/catalogFontFaces-BjZxhRK2.js", contentType: "application/javascript; charset=utf-8", offset: 125890, length: 1111, sha256: "412a981da66fa9e3a4f4528847080df5e5c6ca150a485252589ef05322191aae" },
277963
278161
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 127001, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
277964
- { key: "assets/files-transfer-BNlfwh5F.js", contentType: "application/javascript; charset=utf-8", offset: 129568, length: 9311, sha256: "52661386c152ea5f2a4bf3702af015d7399c5d1bf003a79b1571ea8a7fede5d7" },
278162
+ { key: "assets/files-transfer-DAIO4d-D.js", contentType: "application/javascript; charset=utf-8", offset: 129568, length: 9311, sha256: "d4196a6f9004733def92bcf9470576c0becfeb59924bdb741dc19c39f343df01" },
277965
278163
  { key: "assets/frogActionMap-DzUppDSb.js", contentType: "application/javascript; charset=utf-8", offset: 138879, length: 1172, sha256: "6d59e1dd1c68aaeb2d9927693f6e107c354cc82a611979679c137277f29e14c9" },
277966
- { key: "assets/frogApiRules-vYwkTwg7.js", contentType: "application/javascript; charset=utf-8", offset: 140051, length: 2207, sha256: "134b592aa0004033ba599330512b742e9d7a5e5fee05475f433e34e3edd22659" },
278164
+ { key: "assets/frogApiRules-C5gr0zO5.js", contentType: "application/javascript; charset=utf-8", offset: 140051, length: 2207, sha256: "3be4774e777549b4d3f40c82782bcdae2f1d47252c5111ab00e12460560f15a4" },
277967
278165
  { key: "assets/frogScreenMap-LM0nfzDQ.js", contentType: "application/javascript; charset=utf-8", offset: 142258, length: 1096, sha256: "991b931a02a029c9c4514f0ccbdc8a07f4cf2168ea3e23ffe5e244327fa05141" },
277968
278166
  { key: "assets/frogScreenNavArgs-mIYDwUYX.js", contentType: "application/javascript; charset=utf-8", offset: 143354, length: 780, sha256: "6c9e52135322e0a752b57ef6f360d71400cb77414b4f29d480230ae174201230" },
277969
278167
  { key: "assets/glassPreviewBrowser-OVmIRgHt.js", contentType: "application/javascript; charset=utf-8", offset: 144134, length: 6800, sha256: "3671697a4f66a1f5f68610fab57d590630be70be934f59675ef1bda9a96e6fe3" },
277970
278168
  { key: "assets/godot-pack-cache-Cuhrw41M.js", contentType: "application/javascript; charset=utf-8", offset: 150934, length: 1626, sha256: "70b16367b8938ebd6eb8494a2b472171dd2acdcb452c52f35f140eb8ede9c0b7" },
277971
278169
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 152560, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
277972
- { key: "assets/index-FRd-7j3m.js", contentType: "application/javascript; charset=utf-8", offset: 155264, length: 1748692, sha256: "0c2c957076b5ad228c7b559f8ac063f9d540861e8f6f91b5a5fd26b640d5f31b" },
277973
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1903956, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
277974
- { key: "assets/network-watches-BzUbqhPs.js", contentType: "application/javascript; charset=utf-8", offset: 1911707, length: 1299, sha256: "cf0363d66dfdc46653dc8992ffa25f85fb19b7cde8e907c7c6bf12908cd45430" },
277975
- { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1913006, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
277976
- { key: "assets/pdf-C3rJCYHp.js", contentType: "application/javascript; charset=utf-8", offset: 1923537, length: 488215, sha256: "4a6f910bf580b4fbc462abad75f9f9a8274914d66d468efef11bb741e11f834e" },
277977
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2411752, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
277978
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2411842, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
277979
- { key: "assets/pdfDocument-BmbO2Yaw.js", contentType: "application/javascript; charset=utf-8", offset: 3728876, length: 3836, sha256: "a0837b0f9fc9094c5495a07b9fcd2c57c7ac36f67b5ed48e8d2870ce49b4ddf5" },
277980
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3732712, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
277981
- { key: "assets/scrollLinkedRuntime-BpoAtRvM.js", contentType: "application/javascript; charset=utf-8", offset: 3734978, length: 2278, sha256: "ee71bdc237e882ff884c811b72463b9780bf7e9433af2ef386035b19033637eb" },
277982
- { key: "assets/webviewBridgeHost-Bo9Y7eGN.js", contentType: "application/javascript; charset=utf-8", offset: 3737256, length: 9946, sha256: "d0133d20239da06edddcb54e975dc8673fee5857fe1e7e454a609364d484a9ee" },
277983
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3747202, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
277984
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3751812, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
277985
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4240396, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
277986
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4331320, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
277987
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4422304, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
277988
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4513284, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
277989
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4604156, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
277990
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4695136, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
277991
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4803772, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
277992
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4912856, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
277993
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 5021904, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
277994
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5129604, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
277995
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5217712, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
277996
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5224530, length: 4924, sha256: "1258caf3d295ce00f7c9597262d495277b110871709ecf719dd0ecb77f19e354" },
277997
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5229454, length: 15585, sha256: "98ec60ef8f9568532f0746d1092b5c76f1c52d718365c586c8bade8f62c7c5eb" },
277998
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5245039, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
277999
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5246210, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
278000
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5270513, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
278170
+ { key: "assets/index-BnHI3Uuu.js", contentType: "application/javascript; charset=utf-8", offset: 155264, length: 1749363, sha256: "b09236fffee4f605a9544af5b3ff73ab93f6ed345beda7b42849874c0c49688a" },
278171
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1904627, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
278172
+ { key: "assets/network-watches-DQDis2s6.js", contentType: "application/javascript; charset=utf-8", offset: 1912378, length: 1299, sha256: "20999a7819ed5a2e321195867d2e2b413dc3f6e2df9f8aeedabf326f38743f32" },
278173
+ { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1913677, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
278174
+ { key: "assets/pdf-C2Hy2Nzg.js", contentType: "application/javascript; charset=utf-8", offset: 1924208, length: 488215, sha256: "dd1ab57b35f99c571d48e6f87b0b43cb84e090091d517c830ea4f3dc02631fbd" },
278175
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2412423, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
278176
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2412513, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
278177
+ { key: "assets/pdfDocument-CAyEn_mG.js", contentType: "application/javascript; charset=utf-8", offset: 3729547, length: 3836, sha256: "858a7cfbc609bc2995b840324997b18a7acd6748f0cbf8be00c704c3b9994566" },
278178
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3733383, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
278179
+ { key: "assets/scrollLinkedRuntime-CDhS74IJ.js", contentType: "application/javascript; charset=utf-8", offset: 3735649, length: 2278, sha256: "e82f61f374f35d7f8d4cd2c0434d952c50ce1db9bb7c7b0982e07a0c1e64d98a" },
278180
+ { key: "assets/webviewBridgeHost-Db5IfySN.js", contentType: "application/javascript; charset=utf-8", offset: 3737927, length: 9946, sha256: "6bdaf648d3162ab4a0bb57ae85b981f7667b4ec0eb4688202aace64ab882b608" },
278181
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3747873, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
278182
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3752483, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
278183
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4241067, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
278184
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4331991, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
278185
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4422975, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
278186
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4513955, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
278187
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4604827, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
278188
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4695807, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
278189
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4804443, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
278190
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4913527, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
278191
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 5022575, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
278192
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5130275, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
278193
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5218383, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
278194
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5225201, length: 4924, sha256: "e4b961edff321d5ca41aaf12cea33169094b1f6f46133b99223ec83bd159ee19" },
278195
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5230125, length: 15585, sha256: "98ec60ef8f9568532f0746d1092b5c76f1c52d718365c586c8bade8f62c7c5eb" },
278196
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5245710, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
278197
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5246881, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
278198
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5271184, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
278001
278199
  ];
278002
278200
  }
278003
278201
  });
@@ -286311,11 +286509,11 @@ var init_redact = __esm({
286311
286509
  // src/iap-config-edit.ts
286312
286510
  import { existsSync as existsSync152, readFileSync as readFileSync179 } from "node:fs";
286313
286511
  import { basename as basename42, join as join189 } from "node:path";
286314
- import ts39 from "typescript";
286512
+ import ts41 from "typescript";
286315
286513
  function bindPurchasesAppInConfig(source2, options2) {
286316
286514
  const fileName = options2.fileName ?? "config.ts";
286317
- const kind = fileName.endsWith(".ts") ? ts39.ScriptKind.TS : ts39.ScriptKind.JS;
286318
- const file2 = ts39.createSourceFile(fileName, source2, ts39.ScriptTarget.Latest, true, kind);
286515
+ const kind = fileName.endsWith(".ts") ? ts41.ScriptKind.TS : ts41.ScriptKind.JS;
286516
+ const file2 = ts41.createSourceFile(fileName, source2, ts41.ScriptTarget.Latest, true, kind);
286319
286517
  const wanted = `wixIap: { purchasesAppId: ${JSON.stringify(options2.purchasesAppId)} }`;
286320
286518
  const unchanged = (result) => ({ source: source2, changed: false, applied: [], conflicts: [], instructions: [], ...result });
286321
286519
  const app2 = defineAppLiteral(file2);
@@ -286343,7 +286541,7 @@ function siteFinding(app2, siteId, fileName) {
286343
286541
  if (login2.kind !== "member") return { instruction: `${fileName} does not write auth as a WixConsumerAuthProvider({ \u2026 }) call it can read, so ${check}` };
286344
286542
  const found = lookup(login2.literal, "siteId");
286345
286543
  const value2 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
286346
- if (!value2 || !ts39.isStringLiteralLike(value2)) return { instruction: `auth's siteId is not written as a literal, so ${check}` };
286544
+ if (!value2 || !ts41.isStringLiteralLike(value2)) return { instruction: `auth's siteId is not written as a literal, so ${check}` };
286347
286545
  if (value2.text.toLowerCase() === siteId.toLowerCase()) return {};
286348
286546
  return { conflict: `auth's siteId is "${value2.text}", but the purchases app is registered on site "${siteId}". A build bakes the binding only when they match, so ${fileName} was not edited.` };
286349
286547
  }
@@ -286354,7 +286552,7 @@ function bundleFinding(app2, { bundleId, storeBundleId }, fileName) {
286354
286552
  }
286355
286553
  const found = lookup(app2, "bundleId");
286356
286554
  const value2 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
286357
- if (!value2 || !ts39.isStringLiteralLike(value2)) {
286555
+ if (!value2 || !ts41.isStringLiteralLike(value2)) {
286358
286556
  return { instruction: `${fileName} does not write bundleId as a literal: make sure this app builds bundle ${JSON.stringify(bundleId)}, the one the purchases app is registered for.` };
286359
286557
  }
286360
286558
  if (value2.text === bundleId || defaultProdBundleId(value2.text) === bundleId) return {};
@@ -286364,23 +286562,23 @@ function bindingFinding2(app2, file2, purchasesAppId, wanted, fileName) {
286364
286562
  const wixIap = lookup(app2, "wixIap");
286365
286563
  if (wixIap.kind === "absent") return { splice: appendProperties(app2, file2, [`${wanted},`]), applied: "wixIap.purchasesAppId" };
286366
286564
  const literal5 = wixIap.kind === "written" ? unwrap(wixIap.node.initializer) : void 0;
286367
- if (!literal5 || !ts39.isObjectLiteralExpression(literal5)) return { instruction: `${fileName} computes wixIap, so it was not edited: it must evaluate to ${wanted}.` };
286565
+ if (!literal5 || !ts41.isObjectLiteralExpression(literal5)) return { instruction: `${fileName} computes wixIap, so it was not edited: it must evaluate to ${wanted}.` };
286368
286566
  const current = lookup(literal5, "purchasesAppId");
286369
286567
  if (current.kind === "absent") return { splice: appendProperties(literal5, file2, [`purchasesAppId: ${JSON.stringify(purchasesAppId)},`]), applied: "wixIap.purchasesAppId" };
286370
286568
  const value2 = current.kind === "written" ? unwrap(current.node.initializer) : void 0;
286371
- if (!value2 || !ts39.isStringLiteralLike(value2)) return { instruction: `${fileName} computes wixIap.purchasesAppId, so it was not edited: it must evaluate to ${JSON.stringify(purchasesAppId)}.` };
286569
+ if (!value2 || !ts41.isStringLiteralLike(value2)) return { instruction: `${fileName} computes wixIap.purchasesAppId, so it was not edited: it must evaluate to ${JSON.stringify(purchasesAppId)}.` };
286372
286570
  if (value2.text === purchasesAppId) return {};
286373
286571
  return { conflict: `${fileName} already binds purchases app "${value2.text}", but this site's purchases app for the bundle is "${purchasesAppId}". Nothing was changed; fix whichever is stale.` };
286374
286572
  }
286375
286573
  function capabilityFinding(app2, fileName) {
286376
286574
  const capabilities = lookup(app2, "capabilities");
286377
286575
  const list5 = capabilities.kind === "written" ? unwrap(capabilities.node.initializer) : void 0;
286378
- if (capabilities.kind !== "absent" && (!list5 || !ts39.isArrayLiteralExpression(list5))) {
286576
+ if (capabilities.kind !== "absent" && (!list5 || !ts41.isArrayLiteralExpression(list5))) {
286379
286577
  return { instruction: `Add "iap" to capabilities: the purchases app is baked only into a build that declares it, and ${fileName} does not list capabilities inline.` };
286380
286578
  }
286381
286579
  if (!list5) return { instruction: `Add capabilities: ["iap"] (with the app's other capabilities) to ${fileName}: the purchases app is baked only into a build that declares it.` };
286382
286580
  const elements2 = list5.elements;
286383
- if (elements2.some((e2) => ts39.isStringLiteralLike(e2) && e2.text === "iap")) return {};
286581
+ if (elements2.some((e2) => ts41.isStringLiteralLike(e2) && e2.text === "iap")) return {};
286384
286582
  const last = elements2[elements2.length - 1];
286385
286583
  return {
286386
286584
  splice: last ? { at: last.end, end: last.end, text: ', "iap"' } : { at: list5.getStart(), end: list5.end, text: '["iap"]' },
@@ -304237,7 +304435,7 @@ var init_header_badges_cli = __esm({
304237
304435
 
304238
304436
  // src/site-analyze/velo-source.ts
304239
304437
  import path from "node:path";
304240
- import ts40 from "typescript";
304438
+ import ts42 from "typescript";
304241
304439
  function applySourceEdits(source2, edits) {
304242
304440
  const chunks = [];
304243
304441
  let cursor = 0;
@@ -304255,13 +304453,13 @@ function redactVeloSource(source2, knownSecrets = []) {
304255
304453
  /\b(?:IST\.[\w.-]+|eyJ[\w-]+\.[\w-]+\.[\w-]+|(?:sk|rk)_(?:live|test)_[\w-]+|gh[pousr]_[\w]+|github_pat_[\w]+|AKIA[A-Z0-9]{16})\b/g,
304256
304454
  REDACTED2
304257
304455
  ).replace(/\b(?:Bearer|Basic)\s+[A-Za-z0-9._~+/=-]+/gi, REDACTED2).replace(/\b([a-z][a-z0-9+.-]*:\/\/)[^\s/'"`]+:[^\s/'"`]+@/gi, "$1[REDACTED]@").replace(/([?&](?:api[-_]?key|token|secret|password|signature)=)[^&#\s'"`]+/gi, "$1[REDACTED]");
304258
- const parsed = ts40.createSourceFile("backend.ts", source2, ts40.ScriptTarget.Latest, true);
304456
+ const parsed = ts42.createSourceFile("backend.ts", source2, ts42.ScriptTarget.Latest, true);
304259
304457
  const comments = /* @__PURE__ */ new Map();
304260
304458
  const visitComments = (node4) => {
304261
304459
  for (const range of [
304262
- ...ts40.getLeadingCommentRanges(source2, node4.pos) ?? [],
304263
- ...ts40.getTrailingCommentRanges(source2, node4.pos) ?? [],
304264
- ...ts40.getTrailingCommentRanges(source2, node4.end) ?? []
304460
+ ...ts42.getLeadingCommentRanges(source2, node4.pos) ?? [],
304461
+ ...ts42.getTrailingCommentRanges(source2, node4.pos) ?? [],
304462
+ ...ts42.getTrailingCommentRanges(source2, node4.end) ?? []
304265
304463
  ]) comments.set(range.pos, range.end);
304266
304464
  for (const child3 of node4.getChildren(parsed)) visitComments(child3);
304267
304465
  };
@@ -304280,22 +304478,22 @@ function redactVeloSource(source2, knownSecrets = []) {
304280
304478
  if (/^["'`][A-Za-z0-9_+/=-]{24,}["'`]$/.test(token)) return JSON.stringify(REDACTED2);
304281
304479
  return token;
304282
304480
  };
304283
- const clean4 = ts40.createSourceFile("backend.ts", source2, ts40.ScriptTarget.Latest, true);
304481
+ const clean4 = ts42.createSourceFile("backend.ts", source2, ts42.ScriptTarget.Latest, true);
304284
304482
  const masks = [];
304285
304483
  const collectMasks = (node4) => {
304286
304484
  const start2 = node4.getStart(clean4);
304287
- if (ts40.isRegularExpressionLiteral(node4)) {
304485
+ if (ts42.isRegularExpressionLiteral(node4)) {
304288
304486
  masks.push({ start: start2, end: node4.end, text: " ".repeat(node4.end - start2) });
304289
- } else if (ts40.isStringLiteral(node4) || ts40.isTemplateLiteralToken(node4)) {
304487
+ } else if (ts42.isStringLiteral(node4) || ts42.isTemplateLiteralToken(node4)) {
304290
304488
  masks.push({ start: start2, end: node4.end, text: source2.slice(start2, node4.end).replace(/;/g, " ") });
304291
304489
  }
304292
- ts40.forEachChild(node4, collectMasks);
304490
+ ts42.forEachChild(node4, collectMasks);
304293
304491
  };
304294
304492
  collectMasks(clean4);
304295
304493
  const assignmentContext = applySourceEdits(source2, masks);
304296
304494
  const edits = [];
304297
304495
  const visitLiterals = (node4) => {
304298
- if (ts40.isStringLiteral(node4) || ts40.isNoSubstitutionTemplateLiteral(node4) || ts40.isTemplateExpression(node4)) {
304496
+ if (ts42.isStringLiteral(node4) || ts42.isNoSubstitutionTemplateLiteral(node4) || ts42.isTemplateExpression(node4)) {
304299
304497
  const start2 = node4.getStart(clean4);
304300
304498
  const text32 = source2.slice(start2, node4.end);
304301
304499
  const redacted = redactLiteral(text32, start2);
@@ -304304,7 +304502,7 @@ function redactVeloSource(source2, knownSecrets = []) {
304304
304502
  return;
304305
304503
  }
304306
304504
  }
304307
- ts40.forEachChild(node4, visitLiterals);
304505
+ ts42.forEachChild(node4, visitLiterals);
304308
304506
  };
304309
304507
  visitLiterals(clean4);
304310
304508
  return applySourceEdits(source2, edits);
@@ -304343,19 +304541,19 @@ function selectVeloSource(files, request2, knownSecrets = []) {
304343
304541
  selected.set(file2.path, { source: excerpt, sourceTruncated: excerpt.length < redacted.length });
304344
304542
  remaining -= excerpt.length;
304345
304543
  const dependencies = [];
304346
- const parsed = ts40.createSourceFile(file2.path, file2.content, ts40.ScriptTarget.Latest, true);
304544
+ const parsed = ts42.createSourceFile(file2.path, file2.content, ts42.ScriptTarget.Latest, true);
304347
304545
  const specifiers = [];
304348
304546
  const collectImports = (node4) => {
304349
304547
  let specifier;
304350
- if (ts40.isImportDeclaration(node4) || ts40.isExportDeclaration(node4)) {
304548
+ if (ts42.isImportDeclaration(node4) || ts42.isExportDeclaration(node4)) {
304351
304549
  specifier = node4.moduleSpecifier;
304352
- } else if (ts40.isImportEqualsDeclaration(node4) && ts40.isExternalModuleReference(node4.moduleReference)) {
304550
+ } else if (ts42.isImportEqualsDeclaration(node4) && ts42.isExternalModuleReference(node4.moduleReference)) {
304353
304551
  specifier = node4.moduleReference.expression;
304354
- } else if (ts40.isCallExpression(node4) && (node4.expression.kind === ts40.SyntaxKind.ImportKeyword || ts40.isIdentifier(node4.expression) && node4.expression.text === "require")) {
304552
+ } else if (ts42.isCallExpression(node4) && (node4.expression.kind === ts42.SyntaxKind.ImportKeyword || ts42.isIdentifier(node4.expression) && node4.expression.text === "require")) {
304355
304553
  specifier = node4.arguments[0];
304356
304554
  }
304357
- if (specifier && ts40.isStringLiteralLike(specifier)) specifiers.push(specifier.text);
304358
- ts40.forEachChild(node4, collectImports);
304555
+ if (specifier && ts42.isStringLiteralLike(specifier)) specifiers.push(specifier.text);
304556
+ ts42.forEachChild(node4, collectImports);
304359
304557
  };
304360
304558
  collectImports(parsed);
304361
304559
  for (const specifier of specifiers) {
@@ -304387,13 +304585,13 @@ var init_velo_source = __esm({
304387
304585
  });
304388
304586
 
304389
304587
  // src/one-app/widget-velo.ts
304390
- import ts41 from "typescript";
304588
+ import ts43 from "typescript";
304391
304589
  function analyzeVeloSource(source2) {
304392
- const file2 = ts41.createSourceFile("page.js", source2, ts41.ScriptTarget.Latest, true, ts41.ScriptKind.JS);
304590
+ const file2 = ts43.createSourceFile("page.js", source2, ts43.ScriptTarget.Latest, true, ts43.ScriptKind.JS);
304393
304591
  const result = { imports: [], mobileCalls: [], onPress: 0, onClick: 0, data: [], backendImports: [], parseErrors: file2.parseDiagnostics?.length ?? 0 };
304394
304592
  const bindings = /* @__PURE__ */ new Map();
304395
304593
  for (const statement of file2.statements) {
304396
- if (!ts41.isImportDeclaration(statement) || !ts41.isStringLiteral(statement.moduleSpecifier)) continue;
304594
+ if (!ts43.isImportDeclaration(statement) || !ts43.isStringLiteral(statement.moduleSpecifier)) continue;
304397
304595
  const module = statement.moduleSpecifier.text.slice(0, MAX_LITERAL);
304398
304596
  const names2 = [];
304399
304597
  const clause = statement.importClause;
@@ -304402,11 +304600,11 @@ function analyzeVeloSource(source2) {
304402
304600
  bindings.set(clause.name.text, { module, member: "*" });
304403
304601
  }
304404
304602
  const named5 = clause?.namedBindings;
304405
- if (named5 && ts41.isNamespaceImport(named5)) {
304603
+ if (named5 && ts43.isNamespaceImport(named5)) {
304406
304604
  names2.push("*");
304407
304605
  bindings.set(named5.name.text, { module, member: "*" });
304408
304606
  }
304409
- if (named5 && ts41.isNamedImports(named5)) for (const el2 of named5.elements) {
304607
+ if (named5 && ts43.isNamedImports(named5)) for (const el2 of named5.elements) {
304410
304608
  const imported = (el2.propertyName ?? el2.name).text;
304411
304609
  names2.push(imported);
304412
304610
  bindings.set(el2.name.text, { module, member: imported });
@@ -304415,19 +304613,19 @@ function analyzeVeloSource(source2) {
304415
304613
  if (/^backend\//.test(module) && result.backendImports.length < MAX_ITEMS2) result.backendImports.push({ module, names: names2.filter((n2) => n2 !== "*" && n2 !== "default") });
304416
304614
  }
304417
304615
  const resolveCallee = (callee) => {
304418
- if (ts41.isIdentifier(callee)) {
304616
+ if (ts43.isIdentifier(callee)) {
304419
304617
  const b3 = bindings.get(callee.text);
304420
304618
  return b3 && b3.member !== "*" ? b3 : void 0;
304421
304619
  }
304422
- if (ts41.isPropertyAccessExpression(callee)) {
304620
+ if (ts43.isPropertyAccessExpression(callee)) {
304423
304621
  const member = callee.name.text;
304424
304622
  const target = callee.expression;
304425
- if (ts41.isIdentifier(target)) {
304623
+ if (ts43.isIdentifier(target)) {
304426
304624
  const b3 = bindings.get(target.text);
304427
304625
  if (!b3) return void 0;
304428
304626
  return { module: b3.module, member: b3.member === "*" ? member : `${b3.member}.${member}` };
304429
304627
  }
304430
- if (ts41.isPropertyAccessExpression(target) && ts41.isIdentifier(target.expression)) {
304628
+ if (ts43.isPropertyAccessExpression(target) && ts43.isIdentifier(target.expression)) {
304431
304629
  const b3 = bindings.get(target.expression.text);
304432
304630
  if (!b3) return void 0;
304433
304631
  return { module: b3.module, member: `${b3.member === "*" ? "" : `${b3.member}.`}${target.name.text}.${member}` };
@@ -304436,9 +304634,9 @@ function analyzeVeloSource(source2) {
304436
304634
  return void 0;
304437
304635
  };
304438
304636
  const visit = (node4) => {
304439
- if (ts41.isCallExpression(node4)) {
304637
+ if (ts43.isCallExpression(node4)) {
304440
304638
  const callee = node4.expression;
304441
- if (ts41.isPropertyAccessExpression(callee)) {
304639
+ if (ts43.isPropertyAccessExpression(callee)) {
304442
304640
  if (callee.name.text === "onPress") result.onPress++;
304443
304641
  else if (callee.name.text === "onClick") result.onClick++;
304444
304642
  }
@@ -304454,23 +304652,23 @@ function analyzeVeloSource(source2) {
304454
304652
  }
304455
304653
  }
304456
304654
  }
304457
- ts41.forEachChild(node4, visit);
304655
+ ts43.forEachChild(node4, visit);
304458
304656
  };
304459
304657
  visit(file2);
304460
304658
  return result;
304461
304659
  }
304462
304660
  function backendExportNames(stub) {
304463
- const file2 = ts41.createSourceFile("backend.js", stub, ts41.ScriptTarget.Latest, true, ts41.ScriptKind.JS);
304661
+ const file2 = ts43.createSourceFile("backend.js", stub, ts43.ScriptTarget.Latest, true, ts43.ScriptKind.JS);
304464
304662
  const names2 = /* @__PURE__ */ new Set();
304465
304663
  const visit = (node4) => {
304466
- if (ts41.isBinaryExpression(node4) && node4.operatorToken.kind === ts41.SyntaxKind.EqualsToken && ts41.isPropertyAccessExpression(node4.left) && ts41.isIdentifier(node4.left.expression) && node4.left.expression.text === "exports") names2.add(node4.left.name.text);
304467
- if ((ts41.isFunctionDeclaration(node4) || ts41.isVariableStatement(node4)) && ts41.canHaveModifiers(node4) && ts41.getModifiers(node4)?.some((m2) => m2.kind === ts41.SyntaxKind.ExportKeyword)) {
304468
- if (ts41.isFunctionDeclaration(node4) && node4.name) names2.add(node4.name.text);
304469
- if (ts41.isVariableStatement(node4)) {
304470
- for (const d2 of node4.declarationList.declarations) if (ts41.isIdentifier(d2.name)) names2.add(d2.name.text);
304664
+ if (ts43.isBinaryExpression(node4) && node4.operatorToken.kind === ts43.SyntaxKind.EqualsToken && ts43.isPropertyAccessExpression(node4.left) && ts43.isIdentifier(node4.left.expression) && node4.left.expression.text === "exports") names2.add(node4.left.name.text);
304665
+ if ((ts43.isFunctionDeclaration(node4) || ts43.isVariableStatement(node4)) && ts43.canHaveModifiers(node4) && ts43.getModifiers(node4)?.some((m2) => m2.kind === ts43.SyntaxKind.ExportKeyword)) {
304666
+ if (ts43.isFunctionDeclaration(node4) && node4.name) names2.add(node4.name.text);
304667
+ if (ts43.isVariableStatement(node4)) {
304668
+ for (const d2 of node4.declarationList.declarations) if (ts43.isIdentifier(d2.name)) names2.add(d2.name.text);
304471
304669
  }
304472
304670
  }
304473
- ts41.forEachChild(node4, visit);
304671
+ ts43.forEachChild(node4, visit);
304474
304672
  };
304475
304673
  visit(file2);
304476
304674
  return [...names2].slice(0, MAX_ITEMS2);
@@ -304486,7 +304684,7 @@ var init_widget_velo = __esm({
304486
304684
  MAX_ITEMS2 = 200;
304487
304685
  literal4 = (node4) => {
304488
304686
  if (!node4) return void 0;
304489
- if (ts41.isStringLiteral(node4) || ts41.isNoSubstitutionTemplateLiteral(node4)) return node4.text.slice(0, MAX_LITERAL);
304687
+ if (ts43.isStringLiteral(node4) || ts43.isNoSubstitutionTemplateLiteral(node4)) return node4.text.slice(0, MAX_LITERAL);
304490
304688
  return void 0;
304491
304689
  };
304492
304690
  }
@@ -306381,7 +306579,7 @@ var init_spaces_host_manifest = __esm({
306381
306579
  "../../apps/himi-spaces-lite/spaces-host-manifest.ts"() {
306382
306580
  init_define_HHP_CATALOG();
306383
306581
  SPACES_HOST_MANIFEST = {
306384
- "version": "1.12.0",
306582
+ "version": "1.13.0",
306385
306583
  "capabilities": [
306386
306584
  "animation",
306387
306585
  "app_info",
@@ -308323,7 +308521,7 @@ var init_analyze2 = __esm({
308323
308521
  // src/site-analyze/site-pages-apply.ts
308324
308522
  import { existsSync as existsSync174, readFileSync as readFileSync207 } from "node:fs";
308325
308523
  import { join as join219 } from "node:path";
308326
- import ts42 from "typescript";
308524
+ import ts44 from "typescript";
308327
308525
  function packageScreenIds(dir) {
308328
308526
  const dev = join219(dir, "dev", "index.ts");
308329
308527
  const config = join219(dir, "config.ts");
@@ -308336,20 +308534,20 @@ function packageScreenIds(dir) {
308336
308534
  }
308337
308535
  }
308338
308536
  function spliceWebsiteDrawer(source2, site, fileName = "config.ts") {
308339
- const file2 = ts42.createSourceFile(fileName, source2, ts42.ScriptTarget.Latest, true, ts42.ScriptKind.TS);
308537
+ const file2 = ts44.createSourceFile(fileName, source2, ts44.ScriptTarget.Latest, true, ts44.ScriptKind.TS);
308340
308538
  const objectOf2 = (literal5, name) => {
308341
308539
  if (!literal5) return void 0;
308342
308540
  const found = lookup(literal5, name);
308343
308541
  const value2 = found.kind === "written" ? unwrap(found.node.initializer) : void 0;
308344
- return value2 && ts42.isObjectLiteralExpression(value2) ? value2 : void 0;
308542
+ return value2 && ts44.isObjectLiteralExpression(value2) ? value2 : void 0;
308345
308543
  };
308346
308544
  const navigation = objectOf2(defineAppLiteral(file2), "navigation");
308347
308545
  if (!navigation) return { refused: "config.ts has no `navigation: { \u2026 }` object literal in its defineApp call" };
308348
308546
  const drawer = objectOf2(navigation, "drawer");
308349
308547
  const itemsProp = drawer ? lookup(drawer, "items") : void 0;
308350
308548
  const items = itemsProp?.kind === "written" ? unwrap(itemsProp.node.initializer) : void 0;
308351
- if (!items || !ts42.isArrayLiteralExpression(items)) return { refused: "`navigation.drawer.items` is not an array literal this step can rewrite" };
308352
- const commentAt = (pos) => (ts42.getLeadingCommentRanges(source2, pos) ?? []).length > 0;
308549
+ if (!items || !ts44.isArrayLiteralExpression(items)) return { refused: "`navigation.drawer.items` is not an array literal this step can rewrite" };
308550
+ const commentAt = (pos) => (ts44.getLeadingCommentRanges(source2, pos) ?? []).length > 0;
308353
308551
  if (items.elements.some((element) => commentAt(element.pos)) || commentAt(items.elements.end)) {
308354
308552
  return { refused: "`navigation.drawer.items` has comments between its rows, which rewriting the drawer would drop" };
308355
308553
  }
@@ -313433,7 +313631,7 @@ __export(ext_impl_exports, {
313433
313631
  });
313434
313632
  import { existsSync as existsSync182, mkdirSync as mkdirSync78, readFileSync as readFileSync213, writeFileSync as writeFileSync90 } from "node:fs";
313435
313633
  import { join as join229 } from "node:path";
313436
- import ts43 from "typescript";
313634
+ import ts45 from "typescript";
313437
313635
  async function runExt(ctx) {
313438
313636
  const { pos, flags, io: io2, print } = ctx;
313439
313637
  const fail19 = (code3, error, extra = {}, exit = 1) => {
@@ -313547,7 +313745,7 @@ function loadModelFor(extDir) {
313547
313745
  return { ok: true, model: iface.model };
313548
313746
  }
313549
313747
  function addExtensionToConfigSource(source2, name) {
313550
- const file2 = ts43.createSourceFile("config.ts", source2, ts43.ScriptTarget.ES2022, true, ts43.ScriptKind.TS);
313748
+ const file2 = ts45.createSourceFile("config.ts", source2, ts45.ScriptTarget.ES2022, true, ts45.ScriptKind.TS);
313551
313749
  const app2 = defineAppLiteral(file2);
313552
313750
  if (!app2) throw new Error("config.ts has no defineApp({ \u2026 }) literal");
313553
313751
  const existing = declaredExtensionsNode(app2);
@@ -313565,7 +313763,7 @@ function addExtensionToConfigSource(source2, name) {
313565
313763
  }
313566
313764
  function declaredExtensionsNode(app2) {
313567
313765
  for (const p2 of app2.properties) {
313568
- if (ts43.isPropertyAssignment(p2) && p2.name && (ts43.isIdentifier(p2.name) || ts43.isStringLiteral(p2.name)) && p2.name.text === "extensions" && ts43.isArrayLiteralExpression(p2.initializer)) return p2.initializer;
313766
+ if (ts45.isPropertyAssignment(p2) && p2.name && (ts45.isIdentifier(p2.name) || ts45.isStringLiteral(p2.name)) && p2.name.text === "extensions" && ts45.isArrayLiteralExpression(p2.initializer)) return p2.initializer;
313569
313767
  }
313570
313768
  return void 0;
313571
313769
  }