@wix/himalaya-cli 0.1911.0 → 0.1912.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -18829,9 +18829,10 @@ function screenBundleAppServiceIssues(input) {
18829
18829
  }
18830
18830
  }
18831
18831
  const sameBundle2 = input.ctx?.appBundleName !== void 0 && input.bundleName === input.ctx.appBundleName || input.ctx?.appBundleJs !== void 0 && input.bundleJs === input.ctx.appBundleJs;
18832
- if (verdict.ok && input.appActions && input.screenServices && !sameBundle2) {
18832
+ const appServiceDefined = (svc) => own(input.appActions, svc) !== void 0 || own(input.ctx?.appState, svc) !== void 0;
18833
+ if (verdict.ok && (input.appActions || input.ctx?.appState) && input.screenServices && !sameBundle2) {
18833
18834
  for (const svc of input.screenServices) {
18834
- if (own(input.appActions, svc) !== void 0) {
18835
+ if (appServiceDefined(svc)) {
18835
18836
  issues.push({
18836
18837
  severity: "error",
18837
18838
  pass: "bindings",
@@ -26639,7 +26640,7 @@ function validateScreenDescriptor(screenId, served, opts = {}) {
26639
26640
  }));
26640
26641
  const screenServicesForCollision = () => {
26641
26642
  if (Object.keys(services2).length > 0) return Object.keys(services2);
26642
- if (!opts.bundleJs || !opts.appWorkerActions || opts.services !== void 0) return void 0;
26643
+ if (!opts.bundleJs || !(opts.appWorkerActions || opts.appServices?.appState) || opts.services !== void 0) return void 0;
26643
26644
  try {
26644
26645
  const names2 = Object.keys(extractBundleContract(opts.bundleJs, inspectL10n).services);
26645
26646
  return names2.length > 0 ? names2 : void 0;
@@ -31828,7 +31829,7 @@ __export(validate_descriptor_exports, {
31828
31829
  withoutBootState: () => withoutBootState,
31829
31830
  workerSubtreeAllowed: () => workerSubtreeAllowed
31830
31831
  });
31831
- import { readFileSync as readFileSync21, existsSync as existsSync20, readdirSync as readdirSync15 } from "node:fs";
31832
+ import { readFileSync as readFileSync21, existsSync as existsSync20, readdirSync as readdirSync15, statSync as statSync6 } from "node:fs";
31832
31833
  import { resolve as resolve20 } from "node:path";
31833
31834
  import { createContext, runInContext } from "node:vm";
31834
31835
  import { createRequire } from "node:module";
@@ -31875,6 +31876,17 @@ function appWorkerContractFor(config, tier5Root) {
31875
31876
  }
31876
31877
  }
31877
31878
  function appServicesContextFor(appDir3, config, tier5Root) {
31879
+ const ref = appLogicBundleRef(config) ?? config?.navLogicBundle;
31880
+ const appBundleName = bundleNameFromUrl(ref?.url) ?? void 0;
31881
+ const key4 = JSON.stringify([
31882
+ appDir3 ?? null,
31883
+ tier5Root ?? null,
31884
+ config?.app ?? null,
31885
+ ref ?? null,
31886
+ fileSignature(appDir3 ? resolve20(appDir3, "rollout.yaml") : void 0),
31887
+ fileSignature(appBundleName && tier5Root ? resolve20(tier5Root, `${appBundleName}.bundle.js`) : void 0)
31888
+ ]);
31889
+ if (appServicesContextMemo?.key === key4) return appServicesContextMemo.ctx;
31878
31890
  let rollout = null;
31879
31891
  if (appDir3) {
31880
31892
  const p2 = resolve20(appDir3, "rollout.yaml");
@@ -31884,16 +31896,25 @@ function appServicesContextFor(appDir3, config, tier5Root) {
31884
31896
  rollout = null;
31885
31897
  }
31886
31898
  }
31887
- const ref = appLogicBundleRef(config) ?? config?.navLogicBundle;
31888
- const appBundleName = bundleNameFromUrl(ref?.url) ?? void 0;
31889
31899
  const contract = tier5Root ? appWorkerContractFor(config, tier5Root) : void 0;
31890
- return {
31900
+ const ctx = {
31891
31901
  verdict: appServicesAllowed(config, rollout),
31892
31902
  appBundleDeclared: ref !== void 0,
31893
31903
  appBundleName,
31894
31904
  appBundleJs: appBundleName && tier5Root ? readBuiltBundle(tier5Root, appBundleName) : void 0,
31895
31905
  appState: contract?.services
31896
31906
  };
31907
+ appServicesContextMemo = { key: key4, ctx };
31908
+ return ctx;
31909
+ }
31910
+ function fileSignature(path2) {
31911
+ if (!path2) return "none";
31912
+ try {
31913
+ const st2 = statSync6(path2);
31914
+ return `${st2.mtimeMs}:${st2.size}`;
31915
+ } catch {
31916
+ return "absent";
31917
+ }
31897
31918
  }
31898
31919
  function readBuiltBundleMap(tier5Root, bundleName) {
31899
31920
  const p2 = resolve20(tier5Root, `${bundleName}.bundle.js.map`);
@@ -31940,7 +31961,7 @@ function discoverNativeActions(appDir3) {
31940
31961
  searched: roots2.map(({ searched }) => searched)
31941
31962
  };
31942
31963
  }
31943
- var navigationCompiler, nodeVmEvaluator, navContractMemo, NATIVE_SCRATCH_DIRS, BUILD_OUTPUT_DIR, VANISHED, vanished, NATIVE_SOURCE_ROOTS, PLAYER_HOST_SEARCHED;
31964
+ var navigationCompiler, nodeVmEvaluator, navContractMemo, appServicesContextMemo, NATIVE_SCRATCH_DIRS, BUILD_OUTPUT_DIR, VANISHED, vanished, NATIVE_SOURCE_ROOTS, PLAYER_HOST_SEARCHED;
31944
31965
  var init_validate_descriptor = __esm({
31945
31966
  "../../core/dev-server/src/validate-descriptor.ts"() {
31946
31967
  init_define_HHP_CATALOG();
@@ -31972,6 +31993,7 @@ var init_validate_descriptor = __esm({
31972
31993
  };
31973
31994
  setDefaultEvaluator(nodeVmEvaluator);
31974
31995
  navContractMemo = null;
31996
+ appServicesContextMemo = null;
31975
31997
  NATIVE_SCRATCH_DIRS = /* @__PURE__ */ new Set([
31976
31998
  ".build",
31977
31999
  "build-sim",
@@ -34823,7 +34845,7 @@ __export(extensions_exports, {
34823
34845
  extensionUploads: () => extensionUploads,
34824
34846
  prepareExtensions: () => prepareExtensions
34825
34847
  });
34826
- import { existsSync as existsSync27, readFileSync as readFileSync27, readdirSync as readdirSync20, statSync as statSync6 } from "node:fs";
34848
+ import { existsSync as existsSync27, readFileSync as readFileSync27, readdirSync as readdirSync20, statSync as statSync7 } from "node:fs";
34827
34849
  import { join as join24 } from "node:path";
34828
34850
  import ts7 from "typescript";
34829
34851
  function declaredExtensionsOf(source2, fileName = "config.ts") {
@@ -34845,7 +34867,7 @@ function declaredExtensions(contentDir2) {
34845
34867
  function extensionDirs(contentDir2) {
34846
34868
  const root = join24(contentDir2, EXTENSIONS_DIR);
34847
34869
  if (!existsSync27(root)) return [];
34848
- return readdirSync20(root).filter((n2) => !n2.startsWith(".") && statSync6(join24(root, n2)).isDirectory()).sort();
34870
+ return readdirSync20(root).filter((n2) => !n2.startsWith(".") && statSync7(join24(root, n2)).isDirectory()).sort();
34849
34871
  }
34850
34872
  function contentPlatforms(contentDir2) {
34851
34873
  try {
@@ -37445,7 +37467,7 @@ __export(build_exports, {
37445
37467
  umbrellaVersion: () => umbrellaVersion,
37446
37468
  umbrellaVersionIssue: () => umbrellaVersionIssue
37447
37469
  });
37448
- import { existsSync as existsSync29, readdirSync as readdirSync21, mkdirSync as mkdirSync17, statSync as statSync7, symlinkSync, readFileSync as readFileSync29 } from "node:fs";
37470
+ import { existsSync as existsSync29, readdirSync as readdirSync21, mkdirSync as mkdirSync17, statSync as statSync8, symlinkSync, readFileSync as readFileSync29 } from "node:fs";
37449
37471
  import { resolve as resolve24, join as join26, dirname as dirname21 } from "node:path";
37450
37472
  import { fileURLToPath as fileURLToPath16 } from "node:url";
37451
37473
  import { execFileSync } from "node:child_process";
@@ -37614,7 +37636,7 @@ async function buildContentBundles(contentDir2, opts = {}) {
37614
37636
  mkdirSync17(outDir, { recursive: true });
37615
37637
  for (const name of readdirSync21(srcDir).sort()) {
37616
37638
  const entry = join26(srcDir, name, "index.ts");
37617
- if (!statSync7(join26(srcDir, name)).isDirectory() || !existsSync29(entry)) continue;
37639
+ if (!statSync8(join26(srcDir, name)).isDirectory() || !existsSync29(entry)) continue;
37618
37640
  try {
37619
37641
  await buildBundleFromEntry(entry, join26(outDir, `${name}.bundle.js`), {
37620
37642
  resolution,
@@ -40675,6 +40697,112 @@ var init_screen_map = __esm({
40675
40697
  rn: null,
40676
40698
  why: "Spaces account-level What's New (bundle wix-spaces-whats-new); no RN member/branded equivalent (owners.new-releases.screen is owner-only app release notes)"
40677
40699
  }
40700
+ },
40701
+ nano: {
40702
+ nano_create: {
40703
+ screenName: "nano.create",
40704
+ module: "nano",
40705
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")',
40706
+ note: "Create tab"
40707
+ },
40708
+ nano_my_widgets: {
40709
+ screenName: "nano.myWidgets",
40710
+ module: "nano",
40711
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")',
40712
+ note: "My Widgets tab"
40713
+ },
40714
+ nano_explore: {
40715
+ screenName: "nano.explore",
40716
+ module: "nano",
40717
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40718
+ },
40719
+ nano_explore_carousel: {
40720
+ screenName: "nano.exploreCarousel",
40721
+ module: "nano",
40722
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40723
+ },
40724
+ nano_view_widget: {
40725
+ screenName: "nano.viewWidget",
40726
+ module: "nano",
40727
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")',
40728
+ note: "Widget viewer. RN's 191:207 open/view_screen is sent once per mount; a screen-map view fires per appearance, so it is a follow-up (#6442)."
40729
+ },
40730
+ nano_edit_widget: {
40731
+ screenName: "nano.editWidget",
40732
+ module: "nano",
40733
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40734
+ },
40735
+ nano_shared_widget: {
40736
+ screenName: "nano.sharedWidget",
40737
+ module: "nano",
40738
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40739
+ },
40740
+ nano_widget_members: {
40741
+ rn: null,
40742
+ why: "RN shows the members list as an overlay on My Widgets, not a screen (its 191:204 nano.myWidgets.memberList cannot ride a screen-map view without an RN screen name; see #6442)"
40743
+ },
40744
+ nano_edit_widget_info: {
40745
+ screenName: "nano.editWidgetInfo",
40746
+ module: "nano",
40747
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40748
+ },
40749
+ nano_report_nano: {
40750
+ screenName: "nano.reportNano",
40751
+ module: "nano",
40752
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40753
+ },
40754
+ nano_edit_user_profile: {
40755
+ screenName: "nano.editUserProfile",
40756
+ module: "nano",
40757
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40758
+ },
40759
+ nano_public_user_profile: {
40760
+ screenName: "nano.publicUserProfile",
40761
+ module: "nano",
40762
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40763
+ },
40764
+ nano_logger: {
40765
+ screenName: "nano.loggerView",
40766
+ module: "nano",
40767
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40768
+ },
40769
+ nano_widget_code: {
40770
+ rn: null,
40771
+ why: "Himi's widget source viewer; RN Nano has no such screen"
40772
+ },
40773
+ nano_duplicated_widget_preview: {
40774
+ screenName: "nano.duplicatedWidgetPreview",
40775
+ module: "nano",
40776
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40777
+ },
40778
+ nano_share_creation_to_explore: {
40779
+ screenName: "nano.shareCreationToExplore",
40780
+ module: "nano",
40781
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40782
+ },
40783
+ nano_account: {
40784
+ screenName: "nano.account",
40785
+ module: "nano",
40786
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40787
+ },
40788
+ nano_language: {
40789
+ rn: null,
40790
+ why: "Himi's language picker; RN Nano has no such screen"
40791
+ },
40792
+ nano_about: {
40793
+ screenName: "nano.aboutScreen",
40794
+ module: "nano",
40795
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40796
+ },
40797
+ nano_about_nano_modal: {
40798
+ screenName: "nano.aboutNanoModal",
40799
+ module: "nano",
40800
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40801
+ },
40802
+ nano_welcome: {
40803
+ rn: null,
40804
+ why: "Himi's first-launch welcome; RN's nearest is the creationFTE modal, which is a different flow, so it is sent unmapped rather than guessed"
40805
+ }
40678
40806
  }
40679
40807
  }
40680
40808
  };
@@ -42864,6 +42992,7 @@ function resolveIdiom(tokens2, ctx = {}) {
42864
42992
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
42865
42993
  var init_idiom = __esm({
42866
42994
  "../../core/ts/src/idiom.ts"() {
42995
+ "use strict";
42867
42996
  init_define_HHP_CATALOG();
42868
42997
  IDIOM_CONTEXTS = {
42869
42998
  ios: { native: ["ios"] },
@@ -47370,7 +47499,7 @@ var init_stable_ids = __esm({
47370
47499
  // ../../core/dev-server/src/preview.ts
47371
47500
  import { spawn as spawn2 } from "node:child_process";
47372
47501
  import { createHash as createHash17 } from "node:crypto";
47373
- import { existsSync as existsSync37, createReadStream, statSync as statSync8, readFileSync as readFileSync37, renameSync as renameSync8, unlinkSync } from "node:fs";
47502
+ import { existsSync as existsSync37, createReadStream, statSync as statSync9, readFileSync as readFileSync37, renameSync as renameSync8, unlinkSync } from "node:fs";
47374
47503
  import { homedir as homedir6, tmpdir } from "node:os";
47375
47504
  import { resolve as resolvePath, dirname as dirname25 } from "node:path";
47376
47505
  import { fileURLToPath as fileURLToPath23 } from "node:url";
@@ -48068,7 +48197,7 @@ function finalizeRecording(key4, rec) {
48068
48197
  } catch {
48069
48198
  }
48070
48199
  }
48071
- const sizeBytes = existsSync37(rec.localPath) ? statSync8(rec.localPath).size : 0;
48200
+ const sizeBytes = existsSync37(rec.localPath) ? statSync9(rec.localPath).size : 0;
48072
48201
  clips.set(rec.id, { path: rec.localPath, mime: rec.mime });
48073
48202
  recordings.delete(key4);
48074
48203
  return { sizeBytes };
@@ -48145,7 +48274,7 @@ async function handlePreviewClip(res, url) {
48145
48274
  res.setHeader("content-type", "application/json");
48146
48275
  return void res.end(JSON.stringify({ error: "clip_not_found", id }));
48147
48276
  }
48148
- const size = statSync8(clip3.path).size;
48277
+ const size = statSync9(clip3.path).size;
48149
48278
  res.statusCode = 200;
48150
48279
  res.setHeader("content-type", clip3.mime);
48151
48280
  res.setHeader("content-length", String(size));
@@ -151779,7 +151908,7 @@ __export(widgets_exports, {
151779
151908
  widgetScanRunCount: () => widgetScanRunCount
151780
151909
  });
151781
151910
  import { createHash as createHash19 } from "node:crypto";
151782
- import { lstatSync as lstatSync16, readdirSync as readdirSync24, statSync as statSync9 } from "node:fs";
151911
+ import { lstatSync as lstatSync16, readdirSync as readdirSync24, statSync as statSync10 } from "node:fs";
151783
151912
  import { join as join34 } from "node:path";
151784
151913
  import { inspect } from "node:util";
151785
151914
  async function widgetRealm() {
@@ -151902,7 +152031,7 @@ function bundleDirFingerprint(roots2) {
151902
152031
  const path2 = join34(root, entry);
151903
152032
  let st2;
151904
152033
  try {
151905
- st2 = statSync9(path2, { bigint: true });
152034
+ st2 = statSync10(path2, { bigint: true });
151906
152035
  } catch (err) {
151907
152036
  const code3 = err.code;
151908
152037
  if (code3 !== "ENOENT" && code3 !== "ENOTDIR" && code3 !== "ELOOP") throw err;
@@ -156345,7 +156474,7 @@ var init_src6 = __esm({
156345
156474
  });
156346
156475
 
156347
156476
  // ../../core/serve-storage/src/file-store.ts
156348
- import { mkdirSync as mkdirSync22, readFileSync as readFileSync44, rmSync as rmSync12, writeFileSync as writeFileSync17, readdirSync as readdirSync25, existsSync as existsSync41, statSync as statSync10 } from "node:fs";
156477
+ import { mkdirSync as mkdirSync22, readFileSync as readFileSync44, rmSync as rmSync12, writeFileSync as writeFileSync17, readdirSync as readdirSync25, existsSync as existsSync41, statSync as statSync11 } from "node:fs";
156349
156478
  import { join as join36, resolve as resolve35, sep as sep12 } from "node:path";
156350
156479
  var FileReleaseStore;
156351
156480
  var init_file_store = __esm({
@@ -156520,14 +156649,14 @@ var init_file_store = __esm({
156520
156649
  async getAsset(app2, sha2569, maxBytes) {
156521
156650
  if (maxBytes !== void 0) {
156522
156651
  const path2 = join36(this.appDir(app2), "assets", this.safe(sha2569));
156523
- if (existsSync41(path2) && statSync10(path2).size > maxBytes) return null;
156652
+ if (existsSync41(path2) && statSync11(path2).size > maxBytes) return null;
156524
156653
  }
156525
156654
  return this.read(app2, "assets", this.safe(sha2569));
156526
156655
  }
156527
156656
  async hasAsset(app2, sha2569, bytes2) {
156528
156657
  const path2 = join36(this.appDir(app2), "assets", this.safe(sha2569));
156529
156658
  if (!existsSync41(path2)) return false;
156530
- return bytes2 === void 0 || statSync10(path2).size === bytes2;
156659
+ return bytes2 === void 0 || statSync11(path2).size === bytes2;
156531
156660
  }
156532
156661
  async listApps() {
156533
156662
  try {
@@ -163020,6 +163149,11 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
163020
163149
  const content = {
163021
163150
  app: app2,
163022
163151
  minBinaryVersion,
163152
+ // RFC 0074 §4 — the authored gate facts the baked app config drops; read by the serve preview.
163153
+ ...((newApp, rolloutFloor2) => newApp || rolloutFloor2 ? { appServicesGate: { ...newApp ? { newApp: true } : {}, rolloutFloor: rolloutFloor2 } } : {})(
163154
+ preloaded.module.config.app?.newApp === true,
163155
+ appServices.verdict?.floor ?? null
163156
+ ),
163023
163157
  // Carry seed policy with the release: serve-backed dist never reads the app's source.
163024
163158
  ...preloaded.module.seed.excludeScreens?.length ? { seedExcludeScreens: [...new Set(preloaded.module.seed.excludeScreens)].sort() } : {},
163025
163159
  screens,
@@ -164415,7 +164549,7 @@ __export(studio_exports, {
164415
164549
  writeStudioRecord: () => writeStudioRecord
164416
164550
  });
164417
164551
  import { createHash as createHash26 } from "node:crypto";
164418
- import { existsSync as existsSync46, readdirSync as readdirSync28, readFileSync as readFileSync49, realpathSync as realpathSync7, statSync as statSync11 } from "node:fs";
164552
+ import { existsSync as existsSync46, readdirSync as readdirSync28, readFileSync as readFileSync49, realpathSync as realpathSync7, statSync as statSync12 } from "node:fs";
164419
164553
  import { basename as basename12, extname as extname3, join as join41, relative as relative11, resolve as resolve37, sep as sep14 } from "node:path";
164420
164554
  import { pathToFileURL as pathToFileURL6 } from "node:url";
164421
164555
  function realInside(dir, abs) {
@@ -164434,7 +164568,7 @@ function archiveFile(dir, memory2, abs) {
164434
164568
  let mtimeMs;
164435
164569
  let ino;
164436
164570
  try {
164437
- ({ size, mtimeMs, ino } = statSync11(real));
164571
+ ({ size, mtimeMs, ino } = statSync12(real));
164438
164572
  } catch {
164439
164573
  return null;
164440
164574
  }
@@ -164502,7 +164636,7 @@ function appIdentity(dir) {
164502
164636
  const icon = text2(manifest2?.icon)?.trim();
164503
164637
  const iconPath = icon ? resolve37(dir, icon) : null;
164504
164638
  const real = iconPath ? realInside(dir, iconPath) : null;
164505
- return { name, iconFile: real && statSync11(real).isFile() ? iconPath : null };
164639
+ return { name, iconFile: real && statSync12(real).isFile() ? iconPath : null };
164506
164640
  }
164507
164641
  function testRuns(dir) {
164508
164642
  const att = join41(dir, ".himi", "attestations");
@@ -166539,7 +166673,7 @@ Guides: ${DEVELOPER_PORTAL_URL}`;
166539
166673
  });
166540
166674
 
166541
166675
  // src/self-update.ts
166542
- import { readFileSync as readFileSync51, mkdirSync as mkdirSync24, writeFileSync as writeFileSync19, existsSync as existsSync48, rmSync as rmSync14, statSync as statSync12, accessSync, constants as constants2 } from "node:fs";
166676
+ import { readFileSync as readFileSync51, mkdirSync as mkdirSync24, writeFileSync as writeFileSync19, existsSync as existsSync48, rmSync as rmSync14, statSync as statSync13, accessSync, constants as constants2 } from "node:fs";
166543
166677
  import { execFile, execFileSync as execFileSync3, spawnSync as spawnSync6 } from "node:child_process";
166544
166678
  import { randomUUID as randomUUID7 } from "node:crypto";
166545
166679
  import { homedir as homedir8, hostname } from "node:os";
@@ -166844,7 +166978,7 @@ function staleUpdateLockFile(cachePath, now) {
166844
166978
  let since = stamped;
166845
166979
  if (!Number.isFinite(since)) {
166846
166980
  try {
166847
- since = statSync12(path2).mtimeMs;
166981
+ since = statSync13(path2).mtimeMs;
166848
166982
  } catch {
166849
166983
  continue;
166850
166984
  }
@@ -167181,7 +167315,7 @@ __export(wix_owner_exports, {
167181
167315
  });
167182
167316
  import { spawn as spawn3 } from "node:child_process";
167183
167317
  import { createHash as createHash27 } from "node:crypto";
167184
- import { accessSync as accessSync2, constants as fsConstants, statSync as statSync13 } from "node:fs";
167318
+ import { accessSync as accessSync2, constants as fsConstants, statSync as statSync14 } from "node:fs";
167185
167319
  import { delimiter, join as join44 } from "node:path";
167186
167320
  function resolveSiteId(flag3) {
167187
167321
  const id = flag3?.trim() || process.env.WIX_SITE_ID?.trim();
@@ -167317,7 +167451,7 @@ function wixCliOnPath(env = process.env) {
167317
167451
  for (const ext of exts) {
167318
167452
  try {
167319
167453
  const candidate = join44(dir, `wix${ext}`);
167320
- if (!statSync13(candidate).isFile()) continue;
167454
+ if (!statSync14(candidate).isFile()) continue;
167321
167455
  if (process.platform !== "win32") accessSync2(candidate, fsConstants.X_OK);
167322
167456
  return true;
167323
167457
  } catch {
@@ -175231,7 +175365,7 @@ var init_customer_signing_inspect = __esm({
175231
175365
  });
175232
175366
 
175233
175367
  // src/push-onboarding.ts
175234
- import { existsSync as existsSync52, mkdirSync as mkdirSync25, readFileSync as readFileSync55, statSync as statSync14, writeFileSync as writeFileSync20, chmodSync as chmodSync2 } from "node:fs";
175368
+ import { existsSync as existsSync52, mkdirSync as mkdirSync25, readFileSync as readFileSync55, statSync as statSync15, writeFileSync as writeFileSync20, chmodSync as chmodSync2 } from "node:fs";
175235
175369
  import { basename as basename14, dirname as dirname31, join as join45, resolve as resolve42 } from "node:path";
175236
175370
  function parsePushPlatforms(v2) {
175237
175371
  if (v2 === void 0) return { ok: true };
@@ -175336,7 +175470,7 @@ function localIdentityRefusal(i2) {
175336
175470
  function readKeyFile(path2) {
175337
175471
  let size;
175338
175472
  try {
175339
- size = statSync14(path2).size;
175473
+ size = statSync15(path2).size;
175340
175474
  } catch {
175341
175475
  return { ok: false, code: "key_file_unreadable", reason: "cannot read the selected key file; check its path and file permissions" };
175342
175476
  }
@@ -175533,7 +175667,7 @@ var signing_inspect_exports = {};
175533
175667
  __export(signing_inspect_exports, {
175534
175668
  runSigningInspect: () => runSigningInspect
175535
175669
  });
175536
- import { existsSync as existsSync53, readFileSync as readFileSync56, statSync as statSync15 } from "node:fs";
175670
+ import { existsSync as existsSync53, readFileSync as readFileSync56, statSync as statSync16 } from "node:fs";
175537
175671
  import { isAbsolute as isAbsolute6, resolve as resolve43 } from "node:path";
175538
175672
  function fail5(io2, code3, fields2 = {}) {
175539
175673
  io2.error(JSON.stringify({ ok: false, code: code3, ...fields2 }));
@@ -175626,7 +175760,7 @@ async function runSigningInspect(pos, flags, io2, deps = {}) {
175626
175760
  if (!existsSync53(certPath) || !existsSync53(profilePath2)) {
175627
175761
  return fail5(io2, "signing_inspect_local_assets_unreadable", { error: "cannot read --cert-file or --profile-file" });
175628
175762
  }
175629
- if (statSync15(certPath).size > 1048576 || statSync15(profilePath2).size > 1048576) {
175763
+ if (statSync16(certPath).size > 1048576 || statSync16(profilePath2).size > 1048576) {
175630
175764
  return fail5(io2, "signing_inspect_local_assets_unreadable", { error: "cert or profile file is unexpectedly large" });
175631
175765
  }
175632
175766
  assets = {
@@ -176230,7 +176364,7 @@ __export(template_trim_exports, {
176230
176364
  trimCapabilities: () => trimCapabilities,
176231
176365
  workersInUse: () => workersInUse
176232
176366
  });
176233
- import { cpSync, existsSync as existsSync54, mkdirSync as mkdirSync26, readdirSync as readdirSync30, readFileSync as readFileSync58, renameSync as renameSync10, rmSync as rmSync15, statSync as statSync16, writeFileSync as writeFileSync22 } from "node:fs";
176367
+ import { cpSync, existsSync as existsSync54, mkdirSync as mkdirSync26, readdirSync as readdirSync30, readFileSync as readFileSync58, renameSync as renameSync10, rmSync as rmSync15, statSync as statSync17, writeFileSync as writeFileSync22 } from "node:fs";
176234
176368
  import { dirname as dirname32, join as join47 } from "node:path";
176235
176369
  import ts9 from "typescript";
176236
176370
  function routeMatcher(pattern) {
@@ -177158,14 +177292,14 @@ function homeModulesPass(app2, kept, edited) {
177158
177292
  function listWorkers(dir) {
177159
177293
  const root = join47(dir, "tier5-src");
177160
177294
  if (!existsSync54(root)) return { dirs: [], files: {} };
177161
- const dirs = readdirSync30(root).filter((n2) => statSync16(join47(root, n2)).isDirectory()).sort();
177295
+ const dirs = readdirSync30(root).filter((n2) => statSync17(join47(root, n2)).isDirectory()).sort();
177162
177296
  const files = {};
177163
177297
  const walk6 = (abs, rel2) => {
177164
177298
  for (const name of readdirSync30(abs)) {
177165
177299
  if (name === "node_modules") continue;
177166
177300
  const p2 = join47(abs, name);
177167
177301
  const r3 = `${rel2}/${name}`;
177168
- if (statSync16(p2).isDirectory()) walk6(p2, r3);
177302
+ if (statSync17(p2).isDirectory()) walk6(p2, r3);
177169
177303
  else if (/\.(?:[cm]?[jt]sx?|json)$/.test(name)) files[r3] = readFileSync58(p2, "utf8");
177170
177304
  }
177171
177305
  };
@@ -177602,7 +177736,7 @@ __export(template_adopt_exports, {
177602
177736
  writeInventory: () => writeInventory,
177603
177737
  writeNoFollow: () => writeNoFollow
177604
177738
  });
177605
- import { existsSync as existsSync55, lstatSync as lstatSync19, mkdirSync as mkdirSync27, readdirSync as readdirSync31, readFileSync as readFileSync59, renameSync as renameSync11, statSync as statSync17, writeFileSync as writeFileSync23 } from "node:fs";
177739
+ import { existsSync as existsSync55, lstatSync as lstatSync19, mkdirSync as mkdirSync27, readdirSync as readdirSync31, readFileSync as readFileSync59, renameSync as renameSync11, statSync as statSync18, writeFileSync as writeFileSync23 } from "node:fs";
177606
177740
  import { dirname as dirname33, join as join48, posix as posix2, relative as relative13 } from "node:path";
177607
177741
  import ts10 from "typescript";
177608
177742
  function readAppSources(dir) {
@@ -177616,14 +177750,14 @@ function readAppSources(dir) {
177616
177750
  if (existsSync55(root)) {
177617
177751
  for (const name of readdirSync31(root).sort()) {
177618
177752
  const abs = join48(root, name);
177619
- if (!statSync17(abs).isDirectory()) continue;
177753
+ if (!statSync18(abs).isDirectory()) continue;
177620
177754
  const files = {};
177621
177755
  const walk6 = (a3, rel2) => {
177622
177756
  for (const n2 of readdirSync31(a3).sort()) {
177623
177757
  if (n2 === "node_modules") continue;
177624
177758
  const p2 = join48(a3, n2);
177625
177759
  const r3 = `${rel2}/${n2}`;
177626
- if (statSync17(p2).isDirectory()) walk6(p2, r3);
177760
+ if (statSync18(p2).isDirectory()) walk6(p2, r3);
177627
177761
  else if (/\.(?:[cm]?[jt]sx?)$/.test(n2)) files[r3] = readFileSync59(p2, "utf8");
177628
177762
  }
177629
177763
  };
@@ -177776,7 +177910,7 @@ function walkPackage(dir, rel2 = "") {
177776
177910
  if (IGNORED.has(n2)) continue;
177777
177911
  const r3 = rel2 ? `${rel2}/${n2}` : n2;
177778
177912
  const abs = join48(dir, r3);
177779
- if (statSync17(abs).isDirectory()) out2.push(...walkPackage(dir, r3));
177913
+ if (statSync18(abs).isDirectory()) out2.push(...walkPackage(dir, r3));
177780
177914
  else if (/\.(?:tsx?|jsx?|json)$/.test(n2)) out2.push(r3);
177781
177915
  }
177782
177916
  return out2;
@@ -179443,7 +179577,7 @@ __export(icon_exports, {
179443
179577
  writePreparedIcon: () => writePreparedIcon
179444
179578
  });
179445
179579
  import { createHash as createHash30 } from "node:crypto";
179446
- import { accessSync as accessSync3, constants as constants4, existsSync as existsSync57, mkdirSync as mkdirSync28, readFileSync as readFileSync61, statSync as statSync18, writeFileSync as writeFileSync24 } from "node:fs";
179580
+ import { accessSync as accessSync3, constants as constants4, existsSync as existsSync57, mkdirSync as mkdirSync28, readFileSync as readFileSync61, statSync as statSync19, writeFileSync as writeFileSync24 } from "node:fs";
179447
179581
  import { basename as basename15, dirname as dirname35, join as join49, resolve as resolve45, sep as sep16 } from "node:path";
179448
179582
  function readManifest(dir) {
179449
179583
  try {
@@ -179473,7 +179607,7 @@ function templateIconMatch(png) {
179473
179607
  for (const template of availableTemplates()) {
179474
179608
  const candidate = join49(templateSourceDir(template), DEFAULT_CONTENT_ICON);
179475
179609
  try {
179476
- if (statSync18(candidate).size !== png.length) continue;
179610
+ if (statSync19(candidate).size !== png.length) continue;
179477
179611
  if (readFileSync61(candidate).equals(png)) return template;
179478
179612
  } catch {
179479
179613
  }
@@ -179484,7 +179618,7 @@ function playState(dir) {
179484
179618
  const p2 = join49(resolve45(dir), PLAY_LISTING_ICON);
179485
179619
  if (!existsSync57(p2)) return null;
179486
179620
  try {
179487
- if (!statSync18(p2).isFile()) return { path: p2, issues: ["is a directory, not a PNG file"] };
179621
+ if (!statSync19(p2).isFile()) return { path: p2, issues: ["is a directory, not a PNG file"] };
179488
179622
  return { path: p2, issues: playListingIconIssues(readFileSync61(p2)) };
179489
179623
  } catch (err) {
179490
179624
  return { path: p2, issues: [`could not be read (${err.message.split("\n")[0]})`] };
@@ -179511,7 +179645,7 @@ async function iconStatus(dir) {
179511
179645
  if (!path2 || !existsSync57(path2)) return base2;
179512
179646
  let png;
179513
179647
  try {
179514
- if (!statSync18(path2).isFile()) {
179648
+ if (!statSync19(path2).isFile()) {
179515
179649
  return {
179516
179650
  ...base2,
179517
179651
  byteIssues: [`at ${path2} is a directory, not a PNG file`],
@@ -179636,7 +179770,7 @@ function writePreparedIcon(dir, master, play) {
179636
179770
  ];
179637
179771
  for (const path2 of targets) {
179638
179772
  if (existsSync57(path2)) {
179639
- if (!statSync18(path2).isFile()) throw new Error(`himi icon: destination is not a regular file: ${path2}`);
179773
+ if (!statSync19(path2).isFile()) throw new Error(`himi icon: destination is not a regular file: ${path2}`);
179640
179774
  accessSync3(path2, constants4.W_OK);
179641
179775
  } else accessSync3(dirname35(path2), constants4.W_OK);
179642
179776
  }
@@ -184232,7 +184366,7 @@ __export(pack_exports, {
184232
184366
  });
184233
184367
  import { createHash as createHash31 } from "node:crypto";
184234
184368
  import { deflateRawSync, inflateRawSync } from "node:zlib";
184235
- import { existsSync as existsSync62, mkdirSync as mkdirSync31, readFileSync as readFileSync66, readdirSync as readdirSync32, rmSync as rmSync18, statSync as statSync19, writeFileSync as writeFileSync27 } from "node:fs";
184369
+ import { existsSync as existsSync62, mkdirSync as mkdirSync31, readFileSync as readFileSync66, readdirSync as readdirSync32, rmSync as rmSync18, statSync as statSync20, writeFileSync as writeFileSync27 } from "node:fs";
184236
184370
  import { dirname as dirname38, join as join55, resolve as resolve47 } from "node:path";
184237
184371
  function writeZip(entries) {
184238
184372
  const sorted3 = entries.slice().sort((a3, b3) => a3.path < b3.path ? -1 : a3.path > b3.path ? 1 : 0);
@@ -184327,10 +184461,10 @@ function inflateEntry(buf, entry) {
184327
184461
  return bytes2;
184328
184462
  }
184329
184463
  function readIf(path2) {
184330
- return existsSync62(path2) && statSync19(path2).isFile() ? readFileSync66(path2) : null;
184464
+ return existsSync62(path2) && statSync20(path2).isFile() ? readFileSync66(path2) : null;
184331
184465
  }
184332
184466
  function listDir(dir) {
184333
- return existsSync62(dir) ? readdirSync32(dir).filter((f2) => statSync19(join55(dir, f2)).isFile()) : [];
184467
+ return existsSync62(dir) ? readdirSync32(dir).filter((f2) => statSync20(join55(dir, f2)).isFile()) : [];
184334
184468
  }
184335
184469
  function gatherReleaseEntries(appDir3) {
184336
184470
  const manifestPath = join55(appDir3, HIMI_PACKAGE_MANIFEST_PATH);
@@ -184409,7 +184543,7 @@ function packRelease(releaseRoot, app2, out2, opts = {}) {
184409
184543
  const appDir3 = join55(resolve47(releaseRoot), app2);
184410
184544
  const { all, header: header2, skipped } = buildEntries(appDir3, app2, opts);
184411
184545
  const buf = writeZip(all);
184412
- const isDir3 = existsSync62(out2) && statSync19(out2).isDirectory();
184546
+ const isDir3 = existsSync62(out2) && statSync20(out2).isDirectory();
184413
184547
  const outFile = isDir3 ? join55(resolve47(out2), packageFileName(app2, header2.releaseId)) : resolve47(out2);
184414
184548
  mkdirSync31(dirname38(outFile), { recursive: true });
184415
184549
  writeFileSync27(outFile, buf);
@@ -184427,10 +184561,10 @@ function resolvePackageDirDest(outDir, app2, releaseId) {
184427
184561
  };
184428
184562
  const replaceable = (dir) => {
184429
184563
  if (!existsSync62(dir)) return true;
184430
- if (!statSync19(dir).isDirectory()) return false;
184564
+ if (!statSync20(dir).isDirectory()) return false;
184431
184565
  return readdirSync32(dir).length === 0 || packagedApp(dir) === app2;
184432
184566
  };
184433
- if (existsSync62(outDir) && !statSync19(outDir).isDirectory()) {
184567
+ if (existsSync62(outDir) && !statSync20(outDir).isDirectory()) {
184434
184568
  throw new Error(`refusing to write a package tree over ${outDir} \u2014 it is a file, not a directory`);
184435
184569
  }
184436
184570
  if (replaceable(outDir)) return outDir;
@@ -184487,7 +184621,7 @@ function openPackageDir(dir) {
184487
184621
  for (const name of readdirSync32(abs)) {
184488
184622
  const childRel = rel2 ? `${rel2}/${name}` : name;
184489
184623
  const childAbs = join55(abs, name);
184490
- if (statSync19(childAbs).isDirectory()) walk6(childRel);
184624
+ if (statSync20(childAbs).isDirectory()) walk6(childRel);
184491
184625
  else if (isSafeEntryName(childRel)) entries.set(childRel, readFileSync66(childAbs));
184492
184626
  }
184493
184627
  };
@@ -184872,7 +185006,7 @@ __export(run_watch_exports, {
184872
185006
  watchedContentDir: () => watchedContentDir,
184873
185007
  writeRunRecord: () => writeRunRecord
184874
185008
  });
184875
- import { closeSync as closeSync5, constants as constants5, existsSync as existsSync64, fstatSync as fstatSync2, lstatSync as lstatSync21, statSync as statSync20, readdirSync as readdirSync34, mkdirSync as mkdirSync33, openSync as openSync5, readFileSync as readFileSync68, realpathSync as realpathSync9, renameSync as renameSync12, rmSync as rmSync20, writeFileSync as writeFileSync29, watch as fsWatch } from "node:fs";
185009
+ import { closeSync as closeSync5, constants as constants5, existsSync as existsSync64, fstatSync as fstatSync2, lstatSync as lstatSync21, statSync as statSync21, readdirSync as readdirSync34, mkdirSync as mkdirSync33, openSync as openSync5, readFileSync as readFileSync68, realpathSync as realpathSync9, renameSync as renameSync12, rmSync as rmSync20, writeFileSync as writeFileSync29, watch as fsWatch } from "node:fs";
184876
185010
  import { randomUUID as randomUUID9 } from "node:crypto";
184877
185011
  import { extname as extname4, join as join57, relative as relative14, resolve as resolve49, sep as sep19 } from "node:path";
184878
185012
  function diffReleases(prev, next) {
@@ -184991,7 +185125,7 @@ function watchedContentDir(source2) {
184991
185125
  if (!source2 || /^https?:\/\//i.test(source2)) return null;
184992
185126
  const dir = resolve49(source2);
184993
185127
  try {
184994
- return statSync20(dir).isDirectory() && existsSync64(join57(dir, "himalaya.content.json")) ? dir : null;
185128
+ return statSync21(dir).isDirectory() && existsSync64(join57(dir, "himalaya.content.json")) ? dir : null;
184995
185129
  } catch {
184996
185130
  return null;
184997
185131
  }
@@ -185173,7 +185307,7 @@ var init_run_watch = __esm({
185173
185307
  };
185174
185308
  isDir = (path2) => {
185175
185309
  try {
185176
- return statSync20(path2).isDirectory();
185310
+ return statSync21(path2).isDirectory();
185177
185311
  } catch {
185178
185312
  return false;
185179
185313
  }
@@ -185656,7 +185790,7 @@ __export(milestones_exports, {
185656
185790
  });
185657
185791
  import { createHash as createHash35, randomUUID as randomUUID10 } from "node:crypto";
185658
185792
  import { spawn as spawn4 } from "node:child_process";
185659
- import { closeSync as closeSync6, existsSync as existsSync65, lstatSync as lstatSync24, readFileSync as readFileSync72, statSync as statSync21 } from "node:fs";
185793
+ import { closeSync as closeSync6, existsSync as existsSync65, lstatSync as lstatSync24, readFileSync as readFileSync72, statSync as statSync22 } from "node:fs";
185660
185794
  import { createServer as createServer3 } from "node:net";
185661
185795
  import { basename as basename18, dirname as dirname39, isAbsolute as isAbsolute8, join as join61, relative as relative15, resolve as resolve50, sep as sep20 } from "node:path";
185662
185796
  function homeShotPath(dir, home2) {
@@ -185735,7 +185869,7 @@ async function renderHomeInChild(dir, home2, opts) {
185735
185869
  }
185736
185870
  let fresh = false;
185737
185871
  try {
185738
- fresh = statSync21(shot).mtimeMs >= started - 1e3;
185872
+ fresh = statSync22(shot).mtimeMs >= started - 1e3;
185739
185873
  } catch {
185740
185874
  }
185741
185875
  if (code3 === 0 && fresh) {
@@ -185944,7 +186078,7 @@ function afterBrowserTestRun(dir, input) {
185944
186078
  function shotIsCurrent(shot, sourceChangedAtMs) {
185945
186079
  if (sourceChangedAtMs === void 0) return false;
185946
186080
  try {
185947
- return statSync21(shot).mtimeMs >= sourceChangedAtMs;
186081
+ return statSync22(shot).mtimeMs >= sourceChangedAtMs;
185948
186082
  } catch {
185949
186083
  return false;
185950
186084
  }
@@ -186319,7 +186453,7 @@ function afterHandoverPostcard(dir, opts = {}) {
186319
186453
  let fresh = false;
186320
186454
  try {
186321
186455
  const st2 = lstatSync24(file2);
186322
- fresh = st2.isFile() && !st2.isSymbolicLink() && st2.mtimeMs >= statSync21(join61(dir, ".himi", "progress.jsonl")).mtimeMs;
186456
+ fresh = st2.isFile() && !st2.isSymbolicLink() && st2.mtimeMs >= statSync22(join61(dir, ".himi", "progress.jsonl")).mtimeMs;
186323
186457
  } catch {
186324
186458
  fresh = false;
186325
186459
  }
@@ -192952,7 +193086,7 @@ var init_localweb = __esm({
192952
193086
  });
192953
193087
 
192954
193088
  // ../native-config/capability-registrations.ts
192955
- import { existsSync as existsSync76, readdirSync as readdirSync38, readFileSync as readFileSync83, statSync as statSync22 } from "node:fs";
193089
+ import { existsSync as existsSync76, readdirSync as readdirSync38, readFileSync as readFileSync83, statSync as statSync23 } from "node:fs";
192956
193090
  import { dirname as dirname42, join as join74, resolve as resolve53 } from "node:path";
192957
193091
  import { fileURLToPath as fileURLToPath29 } from "node:url";
192958
193092
  function registrarClasses(path2, re2) {
@@ -193017,7 +193151,7 @@ function filesWithRegisterMarkers(root, ext) {
193017
193151
  } else {
193018
193152
  stack.push([path2, depth + 1, "main"]);
193019
193153
  }
193020
- } else if (where === "main" && entry.isFile() && entry.name.endsWith(ext) && statSync22(path2).size <= 1 << 20) {
193154
+ } else if (where === "main" && entry.isFile() && entry.name.endsWith(ext) && statSync23(path2).size <= 1 << 20) {
193021
193155
  if (readFileSync83(path2, "utf8").includes(`>>> ${LABEL_CAPABILITIES_REGISTER} `)) out2.push(path2);
193022
193156
  }
193023
193157
  }
@@ -194818,7 +194952,7 @@ __export(gen_native_config_exports, {
194818
194952
  xmlAttr: () => xmlAttr2,
194819
194953
  yamlScalar: () => yamlScalar
194820
194954
  });
194821
- import { existsSync as existsSync81, mkdirSync as mkdirSync34, readFileSync as readFileSync89, readdirSync as readdirSync40, rmSync as rmSync23, statSync as statSync23, writeFileSync as writeFileSync34 } from "node:fs";
194955
+ import { existsSync as existsSync81, mkdirSync as mkdirSync34, readFileSync as readFileSync89, readdirSync as readdirSync40, rmSync as rmSync23, statSync as statSync24, writeFileSync as writeFileSync34 } from "node:fs";
194822
194956
  import { dirname as dirname46, join as join79 } from "node:path";
194823
194957
  import { fileURLToPath as fileURLToPath30 } from "node:url";
194824
194958
  import ts18 from "typescript";
@@ -195378,7 +195512,7 @@ function kotlinBootSourcesUnder(root) {
195378
195512
  } else {
195379
195513
  stack.push([path2, depth + 1, "main"]);
195380
195514
  }
195381
- } else if (where === "main" && entry.isFile() && entry.name.endsWith("Application.kt") && statSync23(path2).size <= BOOT_SOURCE_MAX_BYTES && readFileSync89(path2, "utf8").includes("installLinkedModules")) {
195515
+ } else if (where === "main" && entry.isFile() && entry.name.endsWith("Application.kt") && statSync24(path2).size <= BOOT_SOURCE_MAX_BYTES && readFileSync89(path2, "utf8").includes("installLinkedModules")) {
195382
195516
  out2.push(path2);
195383
195517
  }
195384
195518
  }
@@ -195776,7 +195910,7 @@ function coreExtensionSourceRoots(projectYmlPath) {
195776
195910
  if (t2.type !== "app-extension" || !(t2.dependencies ?? []).some((d2) => /^HimalayaCore/.test(d2.product ?? d2.package ?? ""))) continue;
195777
195911
  const paths2 = (t2.sources ?? []).map((s5) => typeof s5 === "string" ? s5 : s5.path).filter((p2) => !!p2);
195778
195912
  const infoDir = t2.info?.path ? dirname46(t2.info.path) : void 0;
195779
- const root = paths2.find((p2) => p2 === infoDir) ?? paths2.find((p2) => existsSync81(join79(dir, p2)) && statSync23(join79(dir, p2)).isDirectory());
195913
+ const root = paths2.find((p2) => p2 === infoDir) ?? paths2.find((p2) => existsSync81(join79(dir, p2)) && statSync24(join79(dir, p2)).isDirectory());
195780
195914
  if (!root) throw new Error(`${projectYmlPath}: app extension linking HimalayaCore has no source directory to bundle its privacy manifest from`);
195781
195915
  roots2.push(join79(dir, root));
195782
195916
  }
@@ -196905,7 +197039,7 @@ function adaptWixLink(raw) {
196905
197039
  if (!host || !WIX_UNIVERSAL_HOST.test(host)) return void 0;
196906
197040
  rest = raw.slice(raw.toLowerCase().indexOf(host) + host.length);
196907
197041
  }
196908
- const [pathPart, queryPart = ""] = splitOnce(stripLeadingSlashes(rest), "?");
197042
+ const [pathPart, queryPart = ""] = splitOnce(stripLeadingSlashes(splitOnce(rest, "#")[0]), "?");
196909
197043
  const kept = [];
196910
197044
  let metaSiteId;
196911
197045
  for (const pair of queryPart.split("&")) {
@@ -200592,7 +200726,7 @@ var init_diff_hash = __esm({
200592
200726
 
200593
200727
  // src/attestation-lock.ts
200594
200728
  import { randomBytes as randomBytes2 } from "node:crypto";
200595
- import { closeSync as closeSync7, linkSync, openSync as openSync6, readFileSync as readFileSync98, renameSync as renameSync13, statSync as statSync24, unlinkSync as unlinkSync4, writeSync } from "node:fs";
200729
+ import { closeSync as closeSync7, linkSync, openSync as openSync6, readFileSync as readFileSync98, renameSync as renameSync13, statSync as statSync25, unlinkSync as unlinkSync4, writeSync } from "node:fs";
200596
200730
  import { hostname as hostname2 } from "node:os";
200597
200731
  import { join as join90 } from "node:path";
200598
200732
  function sleepSync2(ms2) {
@@ -200620,7 +200754,7 @@ function processAlive3(pid) {
200620
200754
  function isStale(path2, owner, staleMs, now) {
200621
200755
  if (!owner) {
200622
200756
  try {
200623
- return now - statSync24(path2).mtimeMs > UNREADABLE_STALE_MS;
200757
+ return now - statSync25(path2).mtimeMs > UNREADABLE_STALE_MS;
200624
200758
  } catch {
200625
200759
  return false;
200626
200760
  }
@@ -201827,7 +201961,7 @@ __export(desktop_measure_lint_exports, {
201827
201961
  listRoot: () => listRoot,
201828
201962
  readMeasures: () => readMeasures
201829
201963
  });
201830
- import { readFileSync as readFileSync105, statSync as statSync25 } from "node:fs";
201964
+ import { readFileSync as readFileSync105, statSync as statSync26 } from "node:fs";
201831
201965
  import { isAbsolute as isAbsolute12, resolve as resolve66, sep as sep25 } from "node:path";
201832
201966
  function nodes2(root, at2) {
201833
201967
  const out2 = [];
@@ -201898,7 +202032,7 @@ function readMeasures(dir, config, opts = {}) {
201898
202032
  }
201899
202033
  let size;
201900
202034
  try {
201901
- const st2 = statSync25(file2);
202035
+ const st2 = statSync26(file2);
201902
202036
  if (!st2.isFile()) return DEFAULT_MEASURES;
201903
202037
  size = st2.size;
201904
202038
  } catch {
@@ -205629,7 +205763,7 @@ ${indent}`);
205629
205763
 
205630
205764
  // src/one-app/access-cli.ts
205631
205765
  import { createHash as createHash48 } from "node:crypto";
205632
- import { existsSync as existsSync100, readFileSync as readFileSync111, rmSync as rmSync28, statSync as statSync26, writeFileSync as writeFileSync44 } from "node:fs";
205766
+ import { existsSync as existsSync100, readFileSync as readFileSync111, rmSync as rmSync28, statSync as statSync27, writeFileSync as writeFileSync44 } from "node:fs";
205633
205767
  import { join as join100, resolve as resolve70 } from "node:path";
205634
205768
  function parseArgs(args) {
205635
205769
  let evidenceDir;
@@ -205813,7 +205947,7 @@ async function runOneAppAccess(args, io2) {
205813
205947
  let configText;
205814
205948
  let screensText;
205815
205949
  try {
205816
- for (const path2 of [configPath, screensPath]) if (!statSync26(path2).isFile()) throw new Error(`${path2} is not a file.`);
205950
+ for (const path2 of [configPath, screensPath]) if (!statSync27(path2).isFile()) throw new Error(`${path2} is not a file.`);
205817
205951
  configText = readFileSync111(configPath, "utf8");
205818
205952
  screensText = readFileSync111(screensPath, "utf8");
205819
205953
  } catch (error) {
@@ -209223,7 +209357,7 @@ __export(validate_topbar_exports, {
209223
209357
  screenActions: () => screenActions2
209224
209358
  });
209225
209359
  import { createHash as createHash49 } from "node:crypto";
209226
- import { existsSync as existsSync105, readFileSync as readFileSync116, statSync as statSync27 } from "node:fs";
209360
+ import { existsSync as existsSync105, readFileSync as readFileSync116, statSync as statSync28 } from "node:fs";
209227
209361
  import { resolve as resolve72, join as join105 } from "node:path";
209228
209362
  import ts29 from "typescript";
209229
209363
  function enrichedControls(raw, views2, omit) {
@@ -209777,7 +209911,7 @@ function validate3(evidenceDir, contentDir2) {
209777
209911
  let homeInviteFor = () => false;
209778
209912
  try {
209779
209913
  configPath = join105(contentDir2, "config.ts");
209780
- if (!statSync27(configPath).isFile()) throw new Error("config.ts is not a file.");
209914
+ if (!statSync28(configPath).isFile()) throw new Error("config.ts is not a file.");
209781
209915
  target = configActions(configPath);
209782
209916
  drawerInvite = drawerOffersInvite(readFileSync116(configPath, "utf8"), profileOffersInvite(contentDir2));
209783
209917
  try {
@@ -212346,7 +212480,7 @@ var init_cli_bridge = __esm({
212346
212480
  });
212347
212481
 
212348
212482
  // src/mcp/file-tools.ts
212349
- import { closeSync as closeSync8, constants as constants6, lstatSync as lstatSync30, mkdirSync as mkdirSync42, openSync as openSync7, readdirSync as readdirSync44, readFileSync as readFileSync122, realpathSync as realpathSync12, renameSync as renameSync15, rmSync as rmSync30, statSync as statSync28, writeSync as writeSync2, existsSync as existsSync110 } from "node:fs";
212483
+ import { closeSync as closeSync8, constants as constants6, lstatSync as lstatSync30, mkdirSync as mkdirSync42, openSync as openSync7, readdirSync as readdirSync44, readFileSync as readFileSync122, realpathSync as realpathSync12, renameSync as renameSync15, rmSync as rmSync30, statSync as statSync29, writeSync as writeSync2, existsSync as existsSync110 } from "node:fs";
212350
212484
  import { randomBytes as randomBytes4 } from "node:crypto";
212351
212485
  import { dirname as dirname55, isAbsolute as isAbsolute15, join as join110, relative as relative21, resolve as resolve74, sep as sep26 } from "node:path";
212352
212486
  import * as z2 from "zod";
@@ -212465,7 +212599,7 @@ function listFiles2(appDir3) {
212465
212599
  const rel2 = relative21(appDir3, p2);
212466
212600
  if (isDeniedSourcePath(rel2) || isDeniedSourcePath(rel2.toLowerCase())) continue;
212467
212601
  if (files.length >= MAX_LISTED) return false;
212468
- files.push({ path: rel2.split(sep26).join("/"), bytes: statSync28(p2).size });
212602
+ files.push({ path: rel2.split(sep26).join("/"), bytes: statSync29(p2).size });
212469
212603
  }
212470
212604
  }
212471
212605
  return true;
@@ -212501,7 +212635,7 @@ function fileTools() {
212501
212635
  handler: async (a3, d2) => {
212502
212636
  const app2 = await confinedAppDir(a3, d2);
212503
212637
  if (typeof app2 !== "string") return app2;
212504
- if (!existsSync110(app2) || !statSync28(app2).isDirectory()) return refuse5("no_app", `no folder at ${app2}`);
212638
+ if (!existsSync110(app2) || !statSync29(app2).isDirectory()) return refuse5("no_app", `no folder at ${app2}`);
212505
212639
  return ok({ ok: true, dir: app2, ...listFiles2(app2) });
212506
212640
  }
212507
212641
  },
@@ -212517,7 +212651,7 @@ function fileTools() {
212517
212651
  const p2 = confinedPath(app2, a3.path);
212518
212652
  if (typeof p2 !== "string") return refuse5("bad_path", p2.error);
212519
212653
  if (!existsSync110(p2) || !lstatSync30(p2).isFile()) return refuse5("not_found", `no file "${String(a3.path)}"`);
212520
- const size = statSync28(p2).size;
212654
+ const size = statSync29(p2).size;
212521
212655
  if (size > MAX_FILE_BYTES2) return refuse5("too_large", `"${String(a3.path)}" is ${size} bytes \u2014 over the ${MAX_FILE_BYTES2}-byte read limit`);
212522
212656
  return ok({ ok: true, path: a3.path, bytes: size, content: readFileSync122(p2, "utf8") });
212523
212657
  }
@@ -213445,7 +213579,7 @@ var init_open_url = __esm({
213445
213579
  });
213446
213580
 
213447
213581
  // src/store-build-lookup.ts
213448
- import { existsSync as existsSync111, lstatSync as lstatSync31, readFileSync as readFileSync123, readdirSync as readdirSync45, statSync as statSync29 } from "node:fs";
213582
+ import { existsSync as existsSync111, lstatSync as lstatSync31, readFileSync as readFileSync123, readdirSync as readdirSync45, statSync as statSync30 } from "node:fs";
213449
213583
  import { basename as basename27, join as join111, resolve as resolve77 } from "node:path";
213450
213584
  function readUploadFacts(dir) {
213451
213585
  const path2 = join111(dir, LAST_DIST_PATH);
@@ -213472,7 +213606,7 @@ function newestLocalIpa(dir) {
213472
213606
  const folder = join111(dir, LOCAL_IPA_DIR);
213473
213607
  try {
213474
213608
  if (!existsSync111(folder) || lstatSync31(folder).isSymbolicLink() || !lstatSync31(folder).isDirectory()) return void 0;
213475
- const ipas = readdirSync45(folder).filter((n2) => n2.toLowerCase().endsWith(".ipa")).map((n2) => join111(folder, n2)).filter((p2) => lstatSync31(p2).isFile()).sort((a3, b3) => statSync29(b3).mtimeMs - statSync29(a3).mtimeMs);
213609
+ const ipas = readdirSync45(folder).filter((n2) => n2.toLowerCase().endsWith(".ipa")).map((n2) => join111(folder, n2)).filter((p2) => lstatSync31(p2).isFile()).sort((a3, b3) => statSync30(b3).mtimeMs - statSync30(a3).mtimeMs);
213476
213610
  return ipas[0];
213477
213611
  } catch {
213478
213612
  return void 0;
@@ -226947,7 +227081,7 @@ __export(store_google_host_exports, {
226947
227081
  signingFor: () => signingFor
226948
227082
  });
226949
227083
  import { createHash as createHash67, randomUUID as randomUUID14 } from "node:crypto";
226950
- import { existsSync as existsSync112, lstatSync as lstatSync32, mkdirSync as mkdirSync43, readFileSync as readFileSync125, readdirSync as readdirSync46, realpathSync as realpathSync13, renameSync as renameSync16, rmSync as rmSync31, statSync as statSync30, writeFileSync as writeFileSync47 } from "node:fs";
227084
+ import { existsSync as existsSync112, lstatSync as lstatSync32, mkdirSync as mkdirSync43, readFileSync as readFileSync125, readdirSync as readdirSync46, realpathSync as realpathSync13, renameSync as renameSync16, rmSync as rmSync31, statSync as statSync31, writeFileSync as writeFileSync47 } from "node:fs";
226951
227085
  import { join as join128, relative as relative24 } from "node:path";
226952
227086
  function readGooglePlayFacts(dir) {
226953
227087
  const path2 = join128(dir, GOOGLE_FACTS_FILE);
@@ -227031,7 +227165,7 @@ function newestAab(dir) {
227031
227165
  } catch {
227032
227166
  return false;
227033
227167
  }
227034
- }).sort((a3, b3) => statSync30(b3).mtimeMs - statSync30(a3).mtimeMs);
227168
+ }).sort((a3, b3) => statSync31(b3).mtimeMs - statSync31(a3).mtimeMs);
227035
227169
  return found[0];
227036
227170
  } catch {
227037
227171
  return void 0;
@@ -242491,7 +242625,7 @@ import * as __ascBuiltin049 from "node:fs";
242491
242625
  import * as __ascBuiltin131 from "node:path";
242492
242626
  function screenshotRefsFrom(dir) {
242493
242627
  const out2 = {};
242494
- const dirs = (d2) => readdirSync48(d2).filter((x2) => statSync31(join134(d2, x2)).isDirectory());
242628
+ const dirs = (d2) => readdirSync48(d2).filter((x2) => statSync32(join134(d2, x2)).isDirectory());
242495
242629
  for (const locale of dirs(dir)) {
242496
242630
  for (const type2 of dirs(join134(dir, locale))) {
242497
242631
  const files = readdirSync48(join134(dir, locale, type2)).filter((f2) => /\.(png|jpe?g)$/i.test(f2)).sort();
@@ -242610,14 +242744,14 @@ function finish(bundleId, appId3, lines2, steps) {
242610
242744
  const next = lines2.length && deferred ? `Apply this batch (one approval), then plan again: ${deferred} step(s) wait for it.${stuck.length ? ` Still open: ${stuck.join(", ")}.` : ""}` : lines2.length ? `Applying this batch (one approval) ${submits ? "submits the app for App Review" : "finishes what can be planned"}.${stuck.length ? ` Still open: ${stuck.join(", ")}.` : ""}` : stuck.length ? `Nothing to apply until ${stuck.join(", ")} ${stuck.length === 1 ? "is" : "are"} resolved.` : deferred ? "Nothing to apply yet: plan again once the deferred steps can be planned." : "Nothing to apply: every step is in place.";
242611
242745
  return { bundleId, appId: appId3, lines: lines2, steps, complete: deferred === 0 && !stuck.length, next };
242612
242746
  }
242613
- var readFileSync129, readdirSync48, statSync31, join134, STORE_STEPS, readJson11, storePrice;
242747
+ var readFileSync129, readdirSync48, statSync32, join134, STORE_STEPS, readJson11, storePrice;
242614
242748
  var init_store_plan = __esm({
242615
242749
  "../../node_modules/@wix/asc-jobs/dist/store-plan.js"() {
242616
242750
  init_define_HHP_CATALOG();
242617
242751
  init_dist3();
242618
242752
  init_actions_release();
242619
242753
  init_dist5();
242620
- ({ readFileSync: readFileSync129, readdirSync: readdirSync48, statSync: statSync31 } = __ascBuiltin049);
242754
+ ({ readFileSync: readFileSync129, readdirSync: readdirSync48, statSync: statSync32 } = __ascBuiltin049);
242621
242755
  ({ join: join134 } = __ascBuiltin131);
242622
242756
  STORE_STEPS = ["appRecord", "bundleId", "category", "price", "privacy", "medicalDevice", "privacyPublish", "publish", "submit"];
242623
242757
  readJson11 = (path2, fact) => {
@@ -244391,7 +244525,7 @@ function checkKeyDirectory(dir) {
244391
244525
  const checkout = gitCheckoutOf(dir);
244392
244526
  if (checkout)
244393
244527
  throw new AscError("refused", `${dir} is inside the git checkout ${checkout}; a private key never goes into a repository \u2014 name a directory outside it (e.g. ~/.asc-node/keys)`);
244394
- if (existsSync114(dir) && !statSync32(dir).isDirectory())
244528
+ if (existsSync114(dir) && !statSync33(dir).isDirectory())
244395
244529
  throw new AscError("invalid", `${dir} is not a directory`);
244396
244530
  return resolve84(dir);
244397
244531
  }
@@ -244435,13 +244569,13 @@ function reserveKeyFile(dir, keyId) {
244435
244569
  }
244436
244570
  };
244437
244571
  }
244438
- var createPrivateKey6, closeSync9, existsSync114, mkdirSync45, openSync8, realpathSync14, statSync32, unlinkSync7, writeSync3, basename31, dirname66, isAbsolute17, join135, resolve84, TEAM_KEY_ROLES, DOWNLOAD_ATTEMPTS, ApiKeysApi;
244572
+ var createPrivateKey6, closeSync9, existsSync114, mkdirSync45, openSync8, realpathSync14, statSync33, unlinkSync7, writeSync3, basename31, dirname66, isAbsolute17, join135, resolve84, TEAM_KEY_ROLES, DOWNLOAD_ATTEMPTS, ApiKeysApi;
244439
244573
  var init_api_keys = __esm({
244440
244574
  "../../node_modules/@wix/asc-web/dist/api-keys.js"() {
244441
244575
  init_define_HHP_CATALOG();
244442
244576
  init_dist3();
244443
244577
  ({ createPrivateKey: createPrivateKey6 } = __ascBuiltin051);
244444
- ({ closeSync: closeSync9, existsSync: existsSync114, mkdirSync: mkdirSync45, openSync: openSync8, realpathSync: realpathSync14, statSync: statSync32, unlinkSync: unlinkSync7, writeSync: writeSync3 } = __ascBuiltin133);
244578
+ ({ closeSync: closeSync9, existsSync: existsSync114, mkdirSync: mkdirSync45, openSync: openSync8, realpathSync: realpathSync14, statSync: statSync33, unlinkSync: unlinkSync7, writeSync: writeSync3 } = __ascBuiltin133);
244445
244579
  ({ basename: basename31, dirname: dirname66, isAbsolute: isAbsolute17, join: join135, resolve: resolve84 } = __ascBuiltin217);
244446
244580
  TEAM_KEY_ROLES = ["ADMIN", "APP_MANAGER", "DEVELOPER", "FINANCE", "SALES", "MARKETING", "ACCESS_TO_REPORTS", "CUSTOMER_SUPPORT", "CREATE_APPS", "CLOUD_MANAGED_APP_DISTRIBUTION", "CLOUD_MANAGED_DEVELOPER_ID"];
244447
244581
  DOWNLOAD_ATTEMPTS = 3;
@@ -244525,13 +244659,13 @@ function scrubKeyText(text32, privateKey2) {
244525
244659
  const lines2 = privateKey2.split(/\r?\n/).map((l3) => l3.trim()).filter((l3) => l3.length > 16 && !l3.startsWith("-----"));
244526
244660
  return scrubSecrets(text32, [privateKey2, privateKey2.trim(), ...lines2]).replace(/-----BEGIN [A-Z ]*-----[\s\S]*?(-----END [A-Z ]*-----|$)/g, "[private key removed]");
244527
244661
  }
244528
- var statSync33, join136, keys, destinations, savesKey, createApiKey, revokeApiKey, API_KEY_ACTIONS;
244662
+ var statSync34, join136, keys, destinations, savesKey, createApiKey, revokeApiKey, API_KEY_ACTIONS;
244529
244663
  var init_api_key_actions = __esm({
244530
244664
  "../../node_modules/@wix/asc-web/dist/api-key-actions.js"() {
244531
244665
  init_define_HHP_CATALOG();
244532
244666
  init_dist3();
244533
244667
  init_api_keys();
244534
- ({ statSync: statSync33 } = __ascBuiltin052);
244668
+ ({ statSync: statSync34 } = __ascBuiltin052);
244535
244669
  ({ join: join136 } = __ascBuiltin134);
244536
244670
  keys = (ctx) => {
244537
244671
  if (!ctx.web)
@@ -244661,7 +244795,7 @@ var init_api_key_actions = __esm({
244661
244795
  }
244662
244796
  let mode = 0;
244663
244797
  try {
244664
- mode = statSync33(join136(p2.outputDir, `AuthKey_${key4.keyId}.p8`)).mode & 511;
244798
+ mode = statSync34(join136(p2.outputDir, `AuthKey_${key4.keyId}.p8`)).mode & 511;
244665
244799
  } catch {
244666
244800
  return { ok: false, detail: `key ${key4.keyId} is active, but its private key file is missing` };
244667
244801
  }
@@ -245131,7 +245265,7 @@ async function takeDownload(keys2, target, recovery, said) {
245131
245265
  recovery.discard();
245132
245266
  return file2.path;
245133
245267
  }
245134
- var randomUUID16, closeSync10, existsSync115, fsyncSync, mkdirSync46, openSync9, readdirSync49, statSync34, unlinkSync8, writeSync4, join137, KEYS_PAGE, api, services, named3, revokeCommand, downloadCommand, createApnsKey, revokePortalKey, downloadPortalKey, PORTAL_KEY_ACTIONS;
245268
+ var randomUUID16, closeSync10, existsSync115, fsyncSync, mkdirSync46, openSync9, readdirSync49, statSync35, unlinkSync8, writeSync4, join137, KEYS_PAGE, api, services, named3, revokeCommand, downloadCommand, createApnsKey, revokePortalKey, downloadPortalKey, PORTAL_KEY_ACTIONS;
245135
245269
  var init_portal_key_actions = __esm({
245136
245270
  "../../node_modules/@wix/asc-web/dist/portal-key-actions.js"() {
245137
245271
  init_define_HHP_CATALOG();
@@ -245140,7 +245274,7 @@ var init_portal_key_actions = __esm({
245140
245274
  init_session();
245141
245275
  init_portal_keys();
245142
245276
  ({ randomUUID: randomUUID16 } = __ascBuiltin054);
245143
- ({ closeSync: closeSync10, existsSync: existsSync115, fsyncSync, mkdirSync: mkdirSync46, openSync: openSync9, readdirSync: readdirSync49, statSync: statSync34, unlinkSync: unlinkSync8, writeSync: writeSync4 } = __ascBuiltin135);
245277
+ ({ closeSync: closeSync10, existsSync: existsSync115, fsyncSync, mkdirSync: mkdirSync46, openSync: openSync9, readdirSync: readdirSync49, statSync: statSync35, unlinkSync: unlinkSync8, writeSync: writeSync4 } = __ascBuiltin135);
245144
245278
  ({ join: join137 } = __ascBuiltin218);
245145
245279
  KEYS_PAGE = "https://developer.apple.com/account/resources/authkeys/list";
245146
245280
  api = (ctx, developerTeam) => {
@@ -245238,7 +245372,7 @@ var init_portal_key_actions = __esm({
245238
245372
  return { ok: false, detail: `key ${keyId} reads back as ${services(key4)}, not APNs` };
245239
245373
  let mode = 0;
245240
245374
  try {
245241
- mode = statSync34(join137(p2.outputDir, `AuthKey_${keyId}.p8`)).mode & 511;
245375
+ mode = statSync35(join137(p2.outputDir, `AuthKey_${keyId}.p8`)).mode & 511;
245242
245376
  } catch {
245243
245377
  return { ok: false, detail: `key ${keyId} is an APNs key, but its private key file is missing` };
245244
245378
  }
@@ -245329,7 +245463,7 @@ var init_portal_key_actions = __esm({
245329
245463
  if (applied) {
245330
245464
  let mode = 0;
245331
245465
  try {
245332
- mode = statSync34(join137(p2.outputDir, `AuthKey_${p2.keyId}.p8`)).mode & 511;
245466
+ mode = statSync35(join137(p2.outputDir, `AuthKey_${p2.keyId}.p8`)).mode & 511;
245333
245467
  } catch {
245334
245468
  return { ok: false, detail: `key ${p2.keyId}'s private key file is missing` };
245335
245469
  }
@@ -246538,7 +246672,7 @@ function preparePrivateDirectory(dir) {
246538
246672
  return path2;
246539
246673
  }
246540
246674
  mkdirSync47(path2, { recursive: true, mode: 448 });
246541
- if (statSync35(path2).mode & 63)
246675
+ if (statSync36(path2).mode & 63)
246542
246676
  throw new AscError("refused", `${path2} is not private after creating it`);
246543
246677
  return path2;
246544
246678
  }
@@ -246594,13 +246728,13 @@ async function downloadThreadAttachments(client4, threadId, outDir) {
246594
246728
  }
246595
246729
  return result;
246596
246730
  }
246597
- var lstatSync33, mkdirSync47, statSync35, writeFileSync49, basename33, join138, resolve85, MAX_NAME_ATTEMPTS, refreshKey;
246731
+ var lstatSync33, mkdirSync47, statSync36, writeFileSync49, basename33, join138, resolve85, MAX_NAME_ATTEMPTS, refreshKey;
246598
246732
  var init_review_attachments = __esm({
246599
246733
  "../../node_modules/@wix/asc-web/dist/review-attachments.js"() {
246600
246734
  init_define_HHP_CATALOG();
246601
246735
  init_dist3();
246602
246736
  init_api_keys();
246603
- ({ lstatSync: lstatSync33, mkdirSync: mkdirSync47, statSync: statSync35, writeFileSync: writeFileSync49 } = __ascBuiltin056);
246737
+ ({ lstatSync: lstatSync33, mkdirSync: mkdirSync47, statSync: statSync36, writeFileSync: writeFileSync49 } = __ascBuiltin056);
246604
246738
  ({ basename: basename33, join: join138, resolve: resolve85 } = __ascBuiltin137);
246605
246739
  MAX_NAME_ATTEMPTS = 1e4;
246606
246740
  refreshKey = (a3) => [a3.sourceType, a3.id, a3.threadId, a3.messageId ?? "", a3.reviewRejectionId ?? ""].join("|");
@@ -246765,7 +246899,7 @@ function resolveMessagesDb(raw, home2 = homedir14()) {
246765
246899
  const given = raw?.trim();
246766
246900
  const path2 = !given ? join139(home2, "Library", "Messages", "chat.db") : resolvePath2(given === "~" || given.startsWith("~/") ? join139(home2, given.slice(1)) : given);
246767
246901
  try {
246768
- if (statSync36(path2).isDirectory())
246902
+ if (statSync37(path2).isDirectory())
246769
246903
  throw new MessagesCodeError(`the Messages database path ${path2} is a directory; --db must point at chat.db`);
246770
246904
  } catch (e2) {
246771
246905
  if (e2 instanceof MessagesCodeError)
@@ -246815,14 +246949,14 @@ function parseDuration(text32) {
246815
246949
  total += Number(n2) * unit[u2];
246816
246950
  return total > 0 ? total : void 0;
246817
246951
  }
246818
- var execFile5, homedir14, join139, resolvePath2, statSync36, pathToFileURL9, MESSAGES_DEFAULT_SINCE_MS, MESSAGES_MAX_SINCE_MS, MESSAGES_DEFAULT_TIMEOUT_MS, REQUEST_SKEW_MS, ROW_LIMIT, SECONDS_THRESHOLD, APPLE_EPOCH_MS, SYSTEM_SQLITE, MessagesCodeError, isPrivacyError, systemSqliteQuery;
246952
+ var execFile5, homedir14, join139, resolvePath2, statSync37, pathToFileURL9, MESSAGES_DEFAULT_SINCE_MS, MESSAGES_MAX_SINCE_MS, MESSAGES_DEFAULT_TIMEOUT_MS, REQUEST_SKEW_MS, ROW_LIMIT, SECONDS_THRESHOLD, APPLE_EPOCH_MS, SYSTEM_SQLITE, MessagesCodeError, isPrivacyError, systemSqliteQuery;
246819
246953
  var init_messages_code = __esm({
246820
246954
  "../../node_modules/@wix/asc-web/dist/messages-code.js"() {
246821
246955
  init_define_HHP_CATALOG();
246822
246956
  ({ execFile: execFile5 } = __ascBuiltin057);
246823
246957
  ({ homedir: homedir14 } = __ascBuiltin138);
246824
246958
  ({ join: join139, resolve: resolvePath2 } = __ascBuiltin219);
246825
- ({ statSync: statSync36 } = __ascBuiltin37);
246959
+ ({ statSync: statSync37 } = __ascBuiltin37);
246826
246960
  ({ pathToFileURL: pathToFileURL9 } = __ascBuiltin42);
246827
246961
  MESSAGES_DEFAULT_SINCE_MS = 6e4;
246828
246962
  MESSAGES_MAX_SINCE_MS = 10 * 6e4;
@@ -246945,7 +247079,7 @@ function readSessionBundle(path2) {
246945
247079
  throw new SessionBundleError(`the session bundle is larger than ${MAX_SESSION_BUNDLE_BYTES} bytes`);
246946
247080
  return readFileSync130(path2, "utf8");
246947
247081
  }
246948
- var chmodSync4, closeSync11, constants9, fstatSync3, lstatSync34, mkdirSync48, openSync10, readFileSync130, renameSync17, rmSync32, statSync37, writeSync5, createHash76, randomBytes16, dirname67, isAbsolute18, join140, resolve86, SESSION_BUNDLE_KIND, SESSION_BUNDLE_VERSION, MAX_SESSION_BUNDLE_BYTES, SessionBundleError, isAppleDomain, SESSION_FILE_VERSION, FileSessionStore, KEYRING_HINT, SecretServiceSessionStore;
247082
+ var chmodSync4, closeSync11, constants9, fstatSync3, lstatSync34, mkdirSync48, openSync10, readFileSync130, renameSync17, rmSync32, statSync38, writeSync5, createHash76, randomBytes16, dirname67, isAbsolute18, join140, resolve86, SESSION_BUNDLE_KIND, SESSION_BUNDLE_VERSION, MAX_SESSION_BUNDLE_BYTES, SessionBundleError, isAppleDomain, SESSION_FILE_VERSION, FileSessionStore, KEYRING_HINT, SecretServiceSessionStore;
246949
247083
  var init_session_transfer = __esm({
246950
247084
  "../../node_modules/@wix/asc-web/dist/session-transfer.js"() {
246951
247085
  init_define_HHP_CATALOG();
@@ -246953,7 +247087,7 @@ var init_session_transfer = __esm({
246953
247087
  init_api_keys();
246954
247088
  init_session_lock();
246955
247089
  init_session();
246956
- ({ chmodSync: chmodSync4, closeSync: closeSync11, constants: constants9, fstatSync: fstatSync3, lstatSync: lstatSync34, mkdirSync: mkdirSync48, openSync: openSync10, readFileSync: readFileSync130, renameSync: renameSync17, rmSync: rmSync32, statSync: statSync37, writeSync: writeSync5 } = __ascBuiltin058);
247090
+ ({ chmodSync: chmodSync4, closeSync: closeSync11, constants: constants9, fstatSync: fstatSync3, lstatSync: lstatSync34, mkdirSync: mkdirSync48, openSync: openSync10, readFileSync: readFileSync130, renameSync: renameSync17, rmSync: rmSync32, statSync: statSync38, writeSync: writeSync5 } = __ascBuiltin058);
246957
247091
  ({ createHash: createHash76, randomBytes: randomBytes16 } = __ascBuiltin139);
246958
247092
  ({ dirname: dirname67, isAbsolute: isAbsolute18, join: join140, resolve: resolve86 } = __ascBuiltin220);
246959
247093
  SESSION_BUNDLE_KIND = "asc-node-web-session";
@@ -247019,7 +247153,7 @@ var init_session_transfer = __esm({
247019
247153
  }
247020
247154
  prepareDir() {
247021
247155
  mkdirSync48(this.dir, { recursive: true, mode: 448 });
247022
- if (!statSync37(this.dir).isDirectory())
247156
+ if (!statSync38(this.dir).isDirectory())
247023
247157
  throw Object.assign(new Error("not a directory"), { code: "ENOTDIR" });
247024
247158
  chmodSync4(this.dir, 448);
247025
247159
  }
@@ -249275,8 +249409,8 @@ function localFiles(inv) {
249275
249409
  }
249276
249410
  function screenshotsFrom(dir) {
249277
249411
  const out2 = {};
249278
- for (const locale of readdirSync50(dir).filter((d2) => statSync38(join142(dir, d2)).isDirectory())) {
249279
- for (const type2 of readdirSync50(join142(dir, locale)).filter((d2) => statSync38(join142(dir, locale, d2)).isDirectory())) {
249412
+ for (const locale of readdirSync50(dir).filter((d2) => statSync39(join142(dir, d2)).isDirectory())) {
249413
+ for (const type2 of readdirSync50(join142(dir, locale)).filter((d2) => statSync39(join142(dir, locale, d2)).isDirectory())) {
249280
249414
  const files = readdirSync50(join142(dir, locale, type2)).filter((f2) => /\.(png|jpe?g)$/i.test(f2)).sort();
249281
249415
  if (files.length)
249282
249416
  (out2[locale] ??= {})[type2] = files.map((f2) => ({ fileName: f2, ...fileRef(join142(dir, locale, type2, f2)) }));
@@ -249288,8 +249422,8 @@ function screenshotsFrom(dir) {
249288
249422
  }
249289
249423
  function previewsFrom(dir) {
249290
249424
  const out2 = {};
249291
- for (const locale of readdirSync50(dir).filter((d2) => statSync38(join142(dir, d2)).isDirectory())) {
249292
- for (const type2 of readdirSync50(join142(dir, locale)).filter((d2) => statSync38(join142(dir, locale, d2)).isDirectory())) {
249425
+ for (const locale of readdirSync50(dir).filter((d2) => statSync39(join142(dir, d2)).isDirectory())) {
249426
+ for (const type2 of readdirSync50(join142(dir, locale)).filter((d2) => statSync39(join142(dir, locale, d2)).isDirectory())) {
249293
249427
  const files = readdirSync50(join142(dir, locale, type2)).filter((f2) => /\.(mov|m4v|mp4)$/i.test(f2)).sort();
249294
249428
  if (files.length)
249295
249429
  (out2[locale] ??= {})[type2] = files.map((f2) => ({ fileName: f2, ...fileRef(join142(dir, locale, type2, f2)) }));
@@ -249334,7 +249468,7 @@ function batchView(b3) {
249334
249468
  const r3 = batchReport(b3);
249335
249469
  return { batch: b3.id, status: b3.status, planHash: b3.planHash.slice(0, 16), approvals: b3.approvals.map((a3) => a3.approver), decision: b3.decision, summary: r3.summary, lines: r3.items.map((i2) => `${i2.status} ${i2.action} ${i2.key}${i2.error ? ` \u2014 ${i2.error.split("\n")[0]}` : ""}`) };
249336
249470
  }
249337
- var readdirSync50, readFileSync132, statSync38, writeFileSync50, join142, sizeText2, VERSION_FLAGS, APP_INFO_FLAGS, stringFlags, REVIEW_DETAIL_OPTIONS, batchExit, RELEASE_COMMANDS;
249471
+ var readdirSync50, readFileSync132, statSync39, writeFileSync50, join142, sizeText2, VERSION_FLAGS, APP_INFO_FLAGS, stringFlags, REVIEW_DETAIL_OPTIONS, batchExit, RELEASE_COMMANDS;
249338
249472
  var init_commands_release = __esm({
249339
249473
  "../../node_modules/@wix/asc/dist/commands-release.js"() {
249340
249474
  init_define_HHP_CATALOG();
@@ -249344,7 +249478,7 @@ var init_commands_release = __esm({
249344
249478
  init_commands();
249345
249479
  init_output2();
249346
249480
  init_commands_record();
249347
- ({ readdirSync: readdirSync50, readFileSync: readFileSync132, statSync: statSync38, writeFileSync: writeFileSync50 } = __ascBuiltin064);
249481
+ ({ readdirSync: readdirSync50, readFileSync: readFileSync132, statSync: statSync39, writeFileSync: writeFileSync50 } = __ascBuiltin064);
249348
249482
  ({ join: join142 } = __ascBuiltin141);
249349
249483
  sizeText2 = ([w2, h2]) => `${w2}x${h2}`;
249350
249484
  VERSION_FLAGS = { description: "description", keywords: "keywords", "whats-new": "whatsNew", "promotional-text": "promotionalText", "marketing-url": "marketingUrl", "support-url": "supportUrl" };
@@ -250822,9 +250956,9 @@ function draftBody(inv) {
250822
250956
  }
250823
250957
  let bytes2;
250824
250958
  try {
250825
- if (!statSync39(file2).isFile())
250959
+ if (!statSync40(file2).isFile())
250826
250960
  throw new Error("not a regular file");
250827
- if (statSync39(file2).size > BODY_LIMIT)
250961
+ if (statSync40(file2).size > BODY_LIMIT)
250828
250962
  throw new UsageError(`--body-file is over the ${BODY_LIMIT}-byte limit`);
250829
250963
  bytes2 = readFileSync134(file2);
250830
250964
  } catch (e2) {
@@ -250842,7 +250976,7 @@ function draftBody(inv) {
250842
250976
  throw new UsageError("--body-file must hold a message");
250843
250977
  return body;
250844
250978
  }
250845
- var readFileSync134, statSync39, resolve90, appleIdOption2, appOptions, BODY_LIMIT, webJob, draftOptions, subscriptionColumns, WEB_REVIEW_COMMANDS;
250979
+ var readFileSync134, statSync40, resolve90, appleIdOption2, appOptions, BODY_LIMIT, webJob, draftOptions, subscriptionColumns, WEB_REVIEW_COMMANDS;
250846
250980
  var init_commands_web_review = __esm({
250847
250981
  "../../node_modules/@wix/asc/dist/commands-web-review.js"() {
250848
250982
  init_define_HHP_CATALOG();
@@ -250851,7 +250985,7 @@ var init_commands_web_review = __esm({
250851
250985
  init_commands();
250852
250986
  init_commands_web();
250853
250987
  init_output2();
250854
- ({ readFileSync: readFileSync134, statSync: statSync39 } = __ascBuiltin067);
250988
+ ({ readFileSync: readFileSync134, statSync: statSync40 } = __ascBuiltin067);
250855
250989
  ({ resolve: resolve90 } = __ascBuiltin143);
250856
250990
  appleIdOption2 = { "apple-id": { type: "string" } };
250857
250991
  appOptions = { ...appleIdOption2, app: { type: "string" } };
@@ -256628,7 +256762,7 @@ function checkJobFile(path2, param, ctx, o2 = {}) {
256628
256762
  } catch (e2) {
256629
256763
  throw new AscError("invalid", `${param}: cannot read ${path2} (${e2.code ?? "unreadable"})`);
256630
256764
  }
256631
- const stat10 = statSync40(real);
256765
+ const stat10 = statSync41(real);
256632
256766
  if (o2.directory ? !stat10.isDirectory() : !stat10.isFile())
256633
256767
  throw new AscError("invalid", `${param}: ${path2} is not a ${o2.directory ? "directory" : "regular file"}`);
256634
256768
  let state;
@@ -256832,7 +256966,7 @@ ${o2.detail}` : ""}` };
256832
256966
  function enabledTools(env, o2 = {}) {
256833
256967
  return TOOLS.filter((t2) => !t2.write || env.ASC_MCP_WRITE === "1" || o2.approvals === true);
256834
256968
  }
256835
- var mkdirSync50, readFileSync138, realpathSync15, statSync40, writeFileSync53, delimiter3, isAbsolute19, join145, relative25, resolve92, sep29, READ, PLAN, APPLY, BATCH_SUMMARY_LINES, BATCH_CHANGES_PER_LINE, BATCH_CHANGE_LINES, ok2, app, reads, jobView2, noAppleId, EXIT_KINDS, notesOf2, cliResult, flag2, ACTIONS, FAMILIES, inside2, identityFile, appleIdParam, TOOLS;
256969
+ var mkdirSync50, readFileSync138, realpathSync15, statSync41, writeFileSync53, delimiter3, isAbsolute19, join145, relative25, resolve92, sep29, READ, PLAN, APPLY, BATCH_SUMMARY_LINES, BATCH_CHANGES_PER_LINE, BATCH_CHANGE_LINES, ok2, app, reads, jobView2, noAppleId, EXIT_KINDS, notesOf2, cliResult, flag2, ACTIONS, FAMILIES, inside2, identityFile, appleIdParam, TOOLS;
256836
256970
  var init_tools2 = __esm({
256837
256971
  "../../node_modules/@wix/asc-mcp/dist/tools.js"() {
256838
256972
  init_define_HHP_CATALOG();
@@ -256842,7 +256976,7 @@ var init_tools2 = __esm({
256842
256976
  init_dist6();
256843
256977
  init_dist7();
256844
256978
  init_action_catalog_generated();
256845
- ({ mkdirSync: mkdirSync50, readFileSync: readFileSync138, realpathSync: realpathSync15, statSync: statSync40, writeFileSync: writeFileSync53 } = __ascBuiltin075);
256979
+ ({ mkdirSync: mkdirSync50, readFileSync: readFileSync138, realpathSync: realpathSync15, statSync: statSync41, writeFileSync: writeFileSync53 } = __ascBuiltin075);
256846
256980
  ({ delimiter: delimiter3, isAbsolute: isAbsolute19, join: join145, relative: relative25, resolve: resolve92, sep: sep29 } = __ascBuiltin148);
256847
256981
  READ = { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true };
256848
256982
  PLAN = { readOnlyHint: true, destructiveHint: false, idempotentHint: false, openWorldHint: true };
@@ -259060,7 +259194,7 @@ __export(apple_keys_exports, {
259060
259194
  runAppleKeys: () => runAppleKeys
259061
259195
  });
259062
259196
  import { createPublicKey as createPublicKey5 } from "node:crypto";
259063
- import { readFileSync as readFileSync139, realpathSync as realpathSync16, statSync as statSync41 } from "node:fs";
259197
+ import { readFileSync as readFileSync139, realpathSync as realpathSync16, statSync as statSync42 } from "node:fs";
259064
259198
  function readKey2(flags, kind) {
259065
259199
  const names2 = kind === "asc" ? ["asc-key-file", "asc-key-id", "asc-issuer-id"] : ["iap-key", "iap-key-id", "iap-issuer-id"];
259066
259200
  if (names2.every((name) => flags[name] === void 0)) return void 0;
@@ -259069,7 +259203,7 @@ function readKey2(flags, kind) {
259069
259203
  try {
259070
259204
  const path2 = realpathSync16(file2);
259071
259205
  assertCredentialOutsideRepo(names2[0], path2);
259072
- if (statSync41(path2).size > 16384) throw new Error("oversized");
259206
+ if (statSync42(path2).size > 16384) throw new Error("oversized");
259073
259207
  const key4 = { keyId, issuerId, key: readFileSync139(path2, "utf8") };
259074
259208
  if (!isAppStoreConnectKey(key4)) throw new Error("invalid key");
259075
259209
  return key4;
@@ -262267,7 +262401,7 @@ __export(browser_authoring_exports, {
262267
262401
  });
262268
262402
  import { createServer as createServer6 } from "node:http";
262269
262403
  import { createHash as createHash82, randomBytes as randomBytes19 } from "node:crypto";
262270
- import { existsSync as existsSync123, readdirSync as readdirSync53, readFileSync as readFileSync145, realpathSync as realpathSync18, statSync as statSync42 } from "node:fs";
262404
+ import { existsSync as existsSync123, readdirSync as readdirSync53, readFileSync as readFileSync145, realpathSync as realpathSync18, statSync as statSync43 } from "node:fs";
262271
262405
  import { join as join155, posix as posix3, relative as relative29, sep as sep31 } from "node:path";
262272
262406
  function humanMs(ms2) {
262273
262407
  return ms2 < 1e3 ? `${ms2}ms` : `${Math.round(ms2 / 1e3)}s`;
@@ -262283,7 +262417,7 @@ function collectWorkerSources(tier5SrcDir, bundleName) {
262283
262417
  for (const name of readdirSync53(abs).sort()) {
262284
262418
  const childAbs = join155(abs, name);
262285
262419
  const childRel = posix3.join(rel2, name);
262286
- if (statSync42(childAbs).isDirectory()) {
262420
+ if (statSync43(childAbs).isDirectory()) {
262287
262421
  walk6(childAbs, childRel);
262288
262422
  } else if (/\.(ts|tsx|js|mjs|json)$/.test(name)) {
262289
262423
  files[childRel] = readFileSync145(childAbs, "utf8");
@@ -262317,7 +262451,7 @@ function collectRelativeSiblings(files, tier5SrcDir) {
262317
262451
  join155(onDisk, "index.js")
262318
262452
  ];
262319
262453
  for (const abs of candidates) {
262320
- if (!existsSync123(abs) || statSync42(abs).isDirectory()) continue;
262454
+ if (!existsSync123(abs) || statSync43(abs).isDirectory()) continue;
262321
262455
  const key4 = `/tier5-src/${relative29(tier5SrcDir, abs).split(sep31).join(posix3.sep)}`;
262322
262456
  if (key4 in files) break;
262323
262457
  files[key4] = readFileSync145(abs, "utf8");
@@ -262574,7 +262708,7 @@ __export(shot_files_exports, {
262574
262708
  writeScreenShot: () => writeScreenShot
262575
262709
  });
262576
262710
  import { createHash as createHash83 } from "node:crypto";
262577
- import { mkdirSync as mkdirSync56, readdirSync as readdirSync54, readFileSync as readFileSync147, rmSync as rmSync35, statSync as statSync43 } from "node:fs";
262711
+ import { mkdirSync as mkdirSync56, readdirSync as readdirSync54, readFileSync as readFileSync147, rmSync as rmSync35, statSync as statSync44 } from "node:fs";
262578
262712
  import { basename as basename37, dirname as dirname71, join as join157, relative as relative30, resolve as resolve99, sep as sep32 } from "node:path";
262579
262713
  function writeAtomic2(file2, bytes2) {
262580
262714
  for (let attempt2 = 0; ; attempt2++) {
@@ -262682,7 +262816,7 @@ function listFiles4(root, keep) {
262682
262816
  }
262683
262817
  function mtimeOf(file2) {
262684
262818
  try {
262685
- return statSync43(file2).mtimeMs;
262819
+ return statSync44(file2).mtimeMs;
262686
262820
  } catch {
262687
262821
  return null;
262688
262822
  }
@@ -264084,7 +264218,7 @@ var PAGE_CLIENT_SOURCE;
264084
264218
  var init_page_client_generated = __esm({
264085
264219
  "../../core/sdk/webview-page/src/page-client.generated.ts"() {
264086
264220
  init_define_HHP_CATALOG();
264087
- PAGE_CLIENT_SOURCE = '(function () {\nvar __himalayaPageClientModule = (() => {\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n };\n var __copyProps = (to, from, except, desc) => {\n if (from && typeof from === "object" || typeof from === "function") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n };\n var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);\n\n // src/client.ts\n var client_exports = {};\n __export(client_exports, {\n createPageClient: () => createPageClient\n });\n var TIMEOUT_PREFIX = "Himalaya capability call timed out";\n function pageError(error) {\n const out = new Error(error?.message ?? "Himalaya capability call failed");\n if (error?.code) Object.assign(out, { code: error.code });\n return out;\n }\n function createPageClient(getBridge) {\n const pending = /* @__PURE__ */ new Map();\n const abandoned = /* @__PURE__ */ new Set();\n const streams = /* @__PURE__ */ new Map();\n const listeners = /* @__PURE__ */ new Map();\n let installedOn;\n let nextId = 1;\n const clientTag = Math.random().toString(36).slice(2, 10) || "0";\n function workerBridge() {\n const bridge = getBridge();\n if (!bridge || typeof bridge.post !== "function" || typeof bridge.onMessage !== "function") {\n throw new Error(\n "@himalaya/webview-page: this page is not inside a worker-backed Himalaya WebView."\n );\n }\n if (installedOn !== bridge) {\n bridge.onMessage(receive);\n installedOn = bridge;\n }\n return bridge;\n }\n function receive(message) {\n if (!message || typeof message !== "object" || message.v !== 1) return;\n const m = message;\n if (typeof m.id === "string" && typeof m.ok === "boolean") return respond(m);\n if (typeof m.ev === "string" && typeof m.ns === "string") return emit(m);\n if (typeof m.sid === "string") return feed(m);\n }\n function respond(message) {\n const call2 = pending.get(message.id);\n if (!call2) {\n if (abandoned.delete(message.id) && message.ok && message.stream === true) cancelStream(message.id);\n return;\n }\n pending.delete(message.id);\n clearTimeout(call2.timeout);\n if (!message.ok) return call2.reject(pageError(message.error));\n if (message.stream === true) return call2.resolve(openStream(message.id));\n call2.resolve(message.result);\n }\n function emit(event) {\n const handlers = listeners.get(event.ns)?.get(event.ev);\n if (!handlers) return;\n for (const handler of [...handlers]) {\n try {\n handler(event.data);\n } catch {\n }\n }\n }\n function feed(envelope) {\n const state = streams.get(envelope.sid);\n if (!state) return;\n if (!("chunk" in envelope) && !("end" in envelope && envelope.end === true) && !("error" in envelope && envelope.error)) return;\n if ("chunk" in envelope) {\n const waiter = state.waiters.shift();\n if (waiter) waiter.resolve({ value: envelope.chunk, done: false });\n else state.queue.push(envelope.chunk);\n return;\n }\n streams.delete(envelope.sid);\n if ("error" in envelope && envelope.error) {\n state.error = pageError(envelope.error);\n if (state.waiters.length > 0) {\n for (const waiter of state.waiters.splice(0)) waiter.reject(state.error);\n state.error = void 0;\n state.done = true;\n }\n } else if ("end" in envelope && envelope.end === true) {\n state.done = true;\n for (const waiter of state.waiters.splice(0)) waiter.resolve({ value: void 0, done: true });\n }\n }\n function cancelStream(sid) {\n try {\n installedOn?.post({ v: 1, sys: "cancel", sid });\n } catch {\n }\n }\n function openStream(sid) {\n const state = { queue: [], waiters: [], done: false, error: void 0 };\n streams.set(sid, state);\n const iterator = {\n next() {\n if (state.queue.length > 0) return Promise.resolve({ value: state.queue.shift(), done: false });\n if (state.error) {\n const error = state.error;\n state.error = void 0;\n state.done = true;\n return Promise.reject(error);\n }\n if (state.done) return Promise.resolve({ value: void 0, done: true });\n return new Promise((resolve, reject) => state.waiters.push({ resolve, reject }));\n },\n return() {\n if (streams.get(sid) === state) {\n streams.delete(sid);\n cancelStream(sid);\n }\n state.done = true;\n state.queue.length = 0;\n for (const waiter of state.waiters.splice(0)) waiter.resolve({ value: void 0, done: true });\n return Promise.resolve({ value: void 0, done: true });\n }\n };\n return { [Symbol.asyncIterator]: () => iterator };\n }\n function call(capability, method, args = [], timeoutMs = 3e4) {\n const bridge = workerBridge();\n const id = `page-${Date.now().toString(36)}-${clientTag}-${nextId++}`;\n const request = { v: 1, id, capability, method, args };\n return new Promise((resolve, reject) => {\n const timeout = setTimeout(() => {\n pending.delete(id);\n abandoned.add(id);\n if (abandoned.size > 256) abandoned.delete(abandoned.values().next().value);\n reject(new Error(`${TIMEOUT_PREFIX}: ${capability}.${method}`));\n }, timeoutMs);\n pending.set(id, { resolve, reject, timeout });\n if (!bridge.post(request)) {\n clearTimeout(timeout);\n pending.delete(id);\n reject(new Error("@himalaya/webview-page: the native page-to-worker bridge refused the request."));\n }\n });\n }\n function on(namespace2, event, handler) {\n workerBridge();\n if (typeof handler !== "function") throw new Error("@himalaya/webview-page: on() needs a handler function");\n let byEvent = listeners.get(namespace2);\n if (!byEvent) listeners.set(namespace2, byEvent = /* @__PURE__ */ new Map());\n let handlers = byEvent.get(event);\n if (!handlers) byEvent.set(event, handlers = /* @__PURE__ */ new Set());\n const entry = (data) => handler(data);\n handlers.add(entry);\n return () => {\n handlers.delete(entry);\n };\n }\n let manifest;\n function currentBridge() {\n try {\n return workerBridge();\n } catch {\n return void 0;\n }\n }\n function timedOut(error) {\n return error instanceof Error && error.message.startsWith(TIMEOUT_PREFIX);\n }\n let asking;\n function askShared(target, budget) {\n const until = Date.now() + budget;\n if (asking?.on === target) {\n asking.until = Math.max(asking.until, until);\n return asking.answer;\n }\n const state = { on: target, until, answer: Promise.resolve(null) };\n asking = state;\n state.answer = new Promise((resolve) => {\n let done = false;\n const finish = (list) => {\n if (done) return;\n done = true;\n clearInterval(again);\n if (asking === state) asking = void 0;\n if (list) manifest = { on: target, list };\n resolve(list);\n };\n const ask = () => {\n if (done) return;\n const left = state.until - Date.now();\n if (left <= 0 || currentBridge() !== target) return finish(null);\n call("himalaya", "capabilities", [], Math.max(1, Math.min(2e3, left))).then(\n (reply) => finish(reply?.capabilities ?? null),\n // A timed-out question is not an answer; the deadline decides. Anything else is final.\n (error) => {\n if (!timedOut(error)) finish(null);\n }\n );\n };\n const again = setInterval(ask, 500);\n ask();\n });\n return state.answer;\n }\n async function enabledCapabilities(timeoutMs = 3e3) {\n const bridge = currentBridge();\n if (!bridge) return null;\n if (manifest?.on === bridge) return manifest.list;\n if (!(timeoutMs > 0)) return null;\n const budget = Math.min(timeoutMs, 2147483647);\n const answer = askShared(bridge, budget);\n return new Promise((resolve) => {\n const stop = setTimeout(() => resolve(manifest?.on === bridge ? manifest.list : null), budget);\n void answer.then((list) => {\n clearTimeout(stop);\n resolve(list);\n });\n });\n }\n async function isEnabled(capability, method, timeoutMs = 3e3) {\n const enabled = await enabledCapabilities(timeoutMs);\n return enabled?.[capability]?.includes(method) ?? false;\n }\n async function probe(capability, method, args = [], timeoutMs = 3e3) {\n if (!currentBridge()) return false;\n try {\n const result = await call(capability, method, args, timeoutMs);\n const iterate = result?.[Symbol.asyncIterator];\n if (typeof iterate === "function") void iterate.call(result).return?.();\n return true;\n } catch (error) {\n if (error.code === "unknown_method") return false;\n return !(timedOut(error) || /refused the request/.test(error.message));\n }\n }\n const members = /* @__PURE__ */ new Map();\n function pageMember(capability, path) {\n const key = `${capability}:${path.join(".")}`;\n let member = members.get(key);\n if (member) return member;\n const label = `[himalaya.${[capability, ...path].join(".")}]`;\n member = new Proxy((() => {\n }), {\n get(_target, property) {\n if (typeof property !== "string" || property === "then") return void 0;\n if (property === "toString" || property === "valueOf") return () => label;\n if (path.length === 0 && property === "on") {\n return (event, handler) => on(capability, event, handler);\n }\n return pageMember(capability, [...path, property]);\n },\n apply(_target, _thisArg, args) {\n if (path.length === 0) throw new Error(`Himalaya capability namespace is not callable: ${capability}`);\n return call(capability, path.join("."), args);\n }\n });\n members.set(key, member);\n return member;\n }\n const namespace = (capability) => pageMember(capability, []);\n const SITE_FIELDS = ["title", "route", "cart", "member"];\n const site = Object.freeze({\n report(fields) {\n const bridge = currentBridge();\n if (!bridge || !fields || typeof fields !== "object") return false;\n const data = {};\n for (const name of SITE_FIELDS) {\n if (Object.prototype.hasOwnProperty.call(fields, name)) data[name] = fields[name];\n }\n if (Object.keys(data).length === 0) return false;\n try {\n return bridge.post({ v: 1, sys: "site", ev: "report", data }) === true;\n } catch {\n return false;\n }\n }\n });\n function merge(target) {\n const own = { call, on, enabledCapabilities, isEnabled, probe, site, version: 1 };\n for (const name of Object.keys(own)) {\n if (!Object.prototype.hasOwnProperty.call(target, name)) {\n Object.defineProperty(target, name, { value: own[name], enumerable: true, writable: false, configurable: false });\n }\n }\n Object.freeze(target);\n return new Proxy(target, {\n get(t, property, receiver) {\n if (typeof property !== "string" || property in t) return Reflect.get(t, property, receiver);\n if (property === "then") return void 0;\n return namespace(property);\n }\n });\n }\n return { call, on, enabledCapabilities, isEnabled, probe, namespace, site, merge };\n }\n return __toCommonJS(client_exports);\n})();\nreturn __himalayaPageClientModule.createPageClient;\n})()';
264221
+ PAGE_CLIENT_SOURCE = '(function () {\nvar __himalayaPageClientModule = (() => {\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n };\n var __copyProps = (to, from, except, desc) => {\n if (from && typeof from === "object" || typeof from === "function") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n };\n var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);\n\n // src/client.ts\n var client_exports = {};\n __export(client_exports, {\n createPageClient: () => createPageClient\n });\n var TIMEOUT_PREFIX = "Himalaya capability call timed out";\n function pageError(error) {\n const out = new Error(error?.message ?? "Himalaya capability call failed");\n if (error?.code) Object.assign(out, { code: error.code });\n return out;\n }\n function createPageClient(getBridge) {\n const pending = /* @__PURE__ */ new Map();\n const abandoned = /* @__PURE__ */ new Set();\n const streams = /* @__PURE__ */ new Map();\n const listeners = /* @__PURE__ */ new Map();\n let installedOn;\n let nextId = 1;\n const clientTag = Math.random().toString(36).slice(2, 10) || "0";\n function workerBridge() {\n const bridge = getBridge();\n if (!bridge || typeof bridge.post !== "function" || typeof bridge.onMessage !== "function") {\n throw new Error(\n "@himalaya/webview-page: this page is not inside a worker-backed Himalaya WebView."\n );\n }\n if (installedOn !== bridge) {\n bridge.onMessage(receive);\n installedOn = bridge;\n }\n return bridge;\n }\n function receive(message) {\n if (!message || typeof message !== "object" || message.v !== 1) return;\n const m = message;\n if (typeof m.id === "string" && typeof m.ok === "boolean") return respond(m);\n if (typeof m.ev === "string" && typeof m.ns === "string") return emit(m);\n if (typeof m.sid === "string") return feed(m);\n }\n function respond(message) {\n const call2 = pending.get(message.id);\n if (!call2) {\n if (abandoned.delete(message.id) && message.ok && message.stream === true) cancelStream(message.id);\n return;\n }\n pending.delete(message.id);\n clearTimeout(call2.timeout);\n if (!message.ok) return call2.reject(pageError(message.error));\n if (message.stream === true) return call2.resolve(openStream(message.id));\n call2.resolve(message.result);\n }\n function emit(event) {\n const handlers = listeners.get(event.ns)?.get(event.ev);\n if (!handlers) return;\n for (const handler of [...handlers]) {\n try {\n handler(event.data);\n } catch {\n }\n }\n }\n function feed(envelope) {\n const state = streams.get(envelope.sid);\n if (!state) return;\n if (!("chunk" in envelope) && !("end" in envelope && envelope.end === true) && !("error" in envelope && envelope.error)) return;\n if ("chunk" in envelope) {\n const waiter = state.waiters.shift();\n if (waiter) waiter.resolve({ value: envelope.chunk, done: false });\n else state.queue.push(envelope.chunk);\n return;\n }\n streams.delete(envelope.sid);\n if ("error" in envelope && envelope.error) {\n state.error = pageError(envelope.error);\n if (state.waiters.length > 0) {\n for (const waiter of state.waiters.splice(0)) waiter.reject(state.error);\n state.error = void 0;\n state.done = true;\n }\n } else if ("end" in envelope && envelope.end === true) {\n state.done = true;\n for (const waiter of state.waiters.splice(0)) waiter.resolve({ value: void 0, done: true });\n }\n }\n function cancelStream(sid) {\n try {\n installedOn?.post({ v: 1, sys: "cancel", sid });\n } catch {\n }\n }\n function openStream(sid) {\n const state = { queue: [], waiters: [], done: false, error: void 0 };\n streams.set(sid, state);\n const iterator = {\n next() {\n if (state.queue.length > 0) return Promise.resolve({ value: state.queue.shift(), done: false });\n if (state.error) {\n const error = state.error;\n state.error = void 0;\n state.done = true;\n return Promise.reject(error);\n }\n if (state.done) return Promise.resolve({ value: void 0, done: true });\n return new Promise((resolve, reject) => state.waiters.push({ resolve, reject }));\n },\n return() {\n if (streams.get(sid) === state) {\n streams.delete(sid);\n cancelStream(sid);\n }\n state.done = true;\n state.queue.length = 0;\n for (const waiter of state.waiters.splice(0)) waiter.resolve({ value: void 0, done: true });\n return Promise.resolve({ value: void 0, done: true });\n }\n };\n return { [Symbol.asyncIterator]: () => iterator };\n }\n function call(capability, method, args = [], timeoutMs = 3e4) {\n const bridge = workerBridge();\n const id = `page-${Date.now().toString(36)}-${clientTag}-${nextId++}`;\n const request = { v: 1, id, capability, method, args };\n return new Promise((resolve, reject) => {\n const timeout = setTimeout(() => {\n pending.delete(id);\n abandoned.add(id);\n if (abandoned.size > 256) abandoned.delete(abandoned.values().next().value);\n reject(new Error(`${TIMEOUT_PREFIX}: ${capability}.${method}`));\n }, timeoutMs);\n pending.set(id, { resolve, reject, timeout });\n if (!bridge.post(request)) {\n clearTimeout(timeout);\n pending.delete(id);\n reject(new Error("@himalaya/webview-page: the native page-to-worker bridge refused the request."));\n }\n });\n }\n function on(namespace2, event, handler) {\n workerBridge();\n if (typeof handler !== "function") throw new Error("@himalaya/webview-page: on() needs a handler function");\n let byEvent = listeners.get(namespace2);\n if (!byEvent) listeners.set(namespace2, byEvent = /* @__PURE__ */ new Map());\n let handlers = byEvent.get(event);\n if (!handlers) byEvent.set(event, handlers = /* @__PURE__ */ new Set());\n const entry = (data) => handler(data);\n handlers.add(entry);\n return () => {\n handlers.delete(entry);\n };\n }\n const MANIFEST_TTL_MS = 1e3;\n let manifest;\n const fresh = (bridge) => manifest?.on === bridge && Date.now() - manifest.at < MANIFEST_TTL_MS;\n function currentBridge() {\n try {\n return workerBridge();\n } catch {\n return void 0;\n }\n }\n function timedOut(error) {\n return error instanceof Error && error.message.startsWith(TIMEOUT_PREFIX);\n }\n let asking;\n function askShared(target, budget) {\n const until = Date.now() + budget;\n if (asking?.on === target) {\n asking.until = Math.max(asking.until, until);\n return asking.answer;\n }\n const state = { on: target, until, answer: Promise.resolve(null) };\n asking = state;\n state.answer = new Promise((resolve) => {\n let done = false;\n const finish = (list) => {\n if (done) return;\n done = true;\n clearInterval(again);\n if (asking === state) asking = void 0;\n if (list) manifest = { on: target, list, at: Date.now() };\n resolve(list);\n };\n const ask = () => {\n if (done) return;\n const left = state.until - Date.now();\n if (left <= 0 || currentBridge() !== target) return finish(null);\n call("himalaya", "capabilities", [], Math.max(1, Math.min(2e3, left))).then(\n (reply) => finish(reply?.capabilities ?? null),\n // A timed-out question is not an answer; the deadline decides. Anything else is final.\n (error) => {\n if (!timedOut(error)) finish(null);\n }\n );\n };\n const again = setInterval(ask, 500);\n ask();\n });\n return state.answer;\n }\n async function enabledCapabilities(timeoutMs = 3e3) {\n const bridge = currentBridge();\n if (!bridge) return null;\n if (fresh(bridge)) return manifest.list;\n if (!(timeoutMs > 0)) return manifest?.on === bridge ? manifest.list : null;\n const budget = Math.min(timeoutMs, 2147483647);\n const answer = askShared(bridge, budget);\n return new Promise((resolve) => {\n const stop = setTimeout(() => resolve(manifest?.on === bridge ? manifest.list : null), budget);\n void answer.then((list) => {\n clearTimeout(stop);\n resolve(list ?? (manifest?.on === bridge ? manifest.list : null));\n });\n });\n }\n async function isEnabled(capability, method, timeoutMs = 3e3) {\n const enabled = await enabledCapabilities(timeoutMs);\n return enabled?.[capability]?.includes(method) ?? false;\n }\n async function probe(capability, method, args = [], timeoutMs = 3e3) {\n if (!currentBridge()) return false;\n try {\n const result = await call(capability, method, args, timeoutMs);\n const iterate = result?.[Symbol.asyncIterator];\n if (typeof iterate === "function") void iterate.call(result).return?.();\n return true;\n } catch (error) {\n if (error.code === "unknown_method") return false;\n return !(timedOut(error) || /refused the request/.test(error.message));\n }\n }\n const members = /* @__PURE__ */ new Map();\n function pageMember(capability, path) {\n const key = `${capability}:${path.join(".")}`;\n let member = members.get(key);\n if (member) return member;\n const label = `[himalaya.${[capability, ...path].join(".")}]`;\n member = new Proxy((() => {\n }), {\n get(_target, property) {\n if (typeof property !== "string" || property === "then") return void 0;\n if (property === "toString" || property === "valueOf") return () => label;\n if (path.length === 0 && property === "on") {\n return (event, handler) => on(capability, event, handler);\n }\n return pageMember(capability, [...path, property]);\n },\n apply(_target, _thisArg, args) {\n if (path.length === 0) throw new Error(`Himalaya capability namespace is not callable: ${capability}`);\n return call(capability, path.join("."), args);\n }\n });\n members.set(key, member);\n return member;\n }\n const namespace = (capability) => pageMember(capability, []);\n const SITE_FIELDS = ["title", "route", "cart", "member"];\n const site = Object.freeze({\n report(fields) {\n const bridge = currentBridge();\n if (!bridge || !fields || typeof fields !== "object") return false;\n const data = {};\n for (const name of SITE_FIELDS) {\n if (Object.prototype.hasOwnProperty.call(fields, name)) data[name] = fields[name];\n }\n if (Object.keys(data).length === 0) return false;\n try {\n return bridge.post({ v: 1, sys: "site", ev: "report", data }) === true;\n } catch {\n return false;\n }\n }\n });\n function merge(target) {\n const own = { call, on, enabledCapabilities, isEnabled, probe, site, version: 1 };\n for (const name of Object.keys(own)) {\n if (!Object.prototype.hasOwnProperty.call(target, name)) {\n Object.defineProperty(target, name, { value: own[name], enumerable: true, writable: false, configurable: false });\n }\n }\n Object.freeze(target);\n return new Proxy(target, {\n get(t, property, receiver) {\n if (typeof property !== "string" || property in t) return Reflect.get(t, property, receiver);\n if (property === "then") return void 0;\n return namespace(property);\n }\n });\n }\n return { call, on, enabledCapabilities, isEnabled, probe, namespace, site, merge };\n }\n return __toCommonJS(client_exports);\n})();\nreturn __himalayaPageClientModule.createPageClient;\n})()';
264088
264222
  }
264089
264223
  });
264090
264224
 
@@ -264843,7 +264977,7 @@ __export(render_cache_exports, {
264843
264977
  });
264844
264978
  import { AsyncLocalStorage as AsyncLocalStorage4 } from "node:async_hooks";
264845
264979
  import { createHash as createHash85, randomBytes as randomBytes20 } from "node:crypto";
264846
- import { existsSync as existsSync133, lstatSync as lstatSync36, mkdirSync as mkdirSync59, readdirSync as readdirSync56, readFileSync as readFileSync155, readlinkSync as readlinkSync3, realpathSync as realpathSync19, renameSync as renameSync20, rmSync as rmSync37, statSync as statSync44, writeFileSync as writeFileSync61 } from "node:fs";
264980
+ import { existsSync as existsSync133, lstatSync as lstatSync36, mkdirSync as mkdirSync59, readdirSync as readdirSync56, readFileSync as readFileSync155, readlinkSync as readlinkSync3, realpathSync as realpathSync19, renameSync as renameSync20, rmSync as rmSync37, statSync as statSync45, writeFileSync as writeFileSync61 } from "node:fs";
264847
264981
  import { join as join166, resolve as resolve102 } from "node:path";
264848
264982
  import { fileURLToPath as fileURLToPath35 } from "node:url";
264849
264983
  function renderCacheKey(contentDir2, inputs) {
@@ -264873,7 +265007,7 @@ function renderCacheKey(contentDir2, inputs) {
264873
265007
  }
264874
265008
  function statOrNull(path2) {
264875
265009
  try {
264876
- return statSync44(path2);
265010
+ return statSync45(path2);
264877
265011
  } catch {
264878
265012
  return null;
264879
265013
  }
@@ -264947,7 +265081,7 @@ function cliFingerprint(version5, monorepo) {
264947
265081
  let entry = "";
264948
265082
  try {
264949
265083
  const file2 = fileURLToPath35(import.meta.url);
264950
- const st2 = statSync44(file2);
265084
+ const st2 = statSync45(file2);
264951
265085
  entry = `${file2}:${st2.size}:${st2.mtimeMs}`;
264952
265086
  } catch {
264953
265087
  }
@@ -264981,7 +265115,7 @@ function keepBuild(contentDir2, key4, buildDir, build3) {
264981
265115
  else renameSync20(buildDir, dest);
264982
265116
  for (const name of readdirSync56(root)) {
264983
265117
  const path2 = join166(root, name);
264984
- if (name.startsWith(".build-") ? Date.now() - statSync44(path2).mtimeMs > 36e5 : name !== key4) {
265118
+ if (name.startsWith(".build-") ? Date.now() - statSync45(path2).mtimeMs > 36e5 : name !== key4) {
264985
265119
  rmSync37(path2, { recursive: true, force: true });
264986
265120
  }
264987
265121
  }
@@ -266402,7 +266536,7 @@ var init_icons2 = __esm({
266402
266536
  });
266403
266537
 
266404
266538
  // src/commands/pull.ts
266405
- import { existsSync as existsSync136, readdirSync as readdirSync58, statSync as statSync45 } from "node:fs";
266539
+ import { existsSync as existsSync136, readdirSync as readdirSync58, statSync as statSync46 } from "node:fs";
266406
266540
  import { join as join170, resolve as resolve104 } from "node:path";
266407
266541
  async function pullCommand(ctx) {
266408
266542
  const { io: io2, pos, flags, print, client: client4 } = ctx;
@@ -266426,7 +266560,7 @@ async function pullCommand(ctx) {
266426
266560
  return 1;
266427
266561
  }
266428
266562
  if (existsSync136(dest)) {
266429
- if (!statSync45(dest).isDirectory()) {
266563
+ if (!statSync46(dest).isDirectory()) {
266430
266564
  io2.error(JSON.stringify({
266431
266565
  error: `${dest} exists and is not a directory`,
266432
266566
  hint: "pass --out/--name to land somewhere else, or remove the file"
@@ -267974,7 +268108,7 @@ __export(login_refresh_exports, {
267974
268108
  isStoredLogin: () => isStoredLogin,
267975
268109
  refreshStoredLogin: () => refreshStoredLogin
267976
268110
  });
267977
- import { closeSync as closeSync13, openSync as openSync12, statSync as statSync46, unlinkSync as unlinkSync10 } from "node:fs";
268111
+ import { closeSync as closeSync13, openSync as openSync12, statSync as statSync47, unlinkSync as unlinkSync10 } from "node:fs";
267978
268112
  function federatedTokenNeedsRefresh(token, nowSec) {
267979
268113
  if (!token) return false;
267980
268114
  const c2 = decodeControlTokenClaims(token);
@@ -267996,7 +268130,7 @@ async function withLock2(path2, deps, fn2, onTimeout) {
267996
268130
  break;
267997
268131
  } catch {
267998
268132
  try {
267999
- if (Date.now() - statSync46(lock).mtimeMs > LOCK_STALE_MS) {
268133
+ if (Date.now() - statSync47(lock).mtimeMs > LOCK_STALE_MS) {
268000
268134
  unlinkSync10(lock);
268001
268135
  continue;
268002
268136
  }
@@ -269296,13 +269430,13 @@ var init_pack3 = __esm({
269296
269430
  });
269297
269431
 
269298
269432
  // src/commands/import.ts
269299
- import { existsSync as existsSync139, readdirSync as readdirSync59, statSync as statSync47 } from "node:fs";
269433
+ import { existsSync as existsSync139, readdirSync as readdirSync59, statSync as statSync48 } from "node:fs";
269300
269434
  import { resolve as resolve107 } from "node:path";
269301
269435
  function restoreDestinationIssue(dest, force) {
269302
269436
  const link4 = symlinkDestinationIssue(dest);
269303
269437
  if (link4) return link4;
269304
269438
  if (!existsSync139(dest)) return null;
269305
- if (!statSync47(dest).isDirectory()) {
269439
+ if (!statSync48(dest).isDirectory()) {
269306
269440
  return { error: `${dest} exists and is not a directory`, hint: "pass --out/--name to land somewhere else, or remove the file" };
269307
269441
  }
269308
269442
  if (readdirSync59(dest).length > 0 && !force) {
@@ -272675,7 +272809,7 @@ var init_wix_client_id = __esm({
272675
272809
  });
272676
272810
 
272677
272811
  // src/run-godot-web.ts
272678
- import { existsSync as existsSync141, readFileSync as readFileSync163, statSync as statSync48 } from "node:fs";
272812
+ import { existsSync as existsSync141, readFileSync as readFileSync163, statSync as statSync49 } from "node:fs";
272679
272813
  import { dirname as dirname76, join as join175, resolve as resolve109 } from "node:path";
272680
272814
  import { fileURLToPath as fileURLToPath38 } from "node:url";
272681
272815
  function localGodotWebDir(env = process.env) {
@@ -272713,7 +272847,7 @@ function makeGodotWebRoute(opts = {}) {
272713
272847
  const name = url.pathname.slice(LOCAL2.length);
272714
272848
  if (!/^[A-Za-z0-9._-]+$/.test(name) || name.startsWith(".")) return new Response("bad name", { status: 400 });
272715
272849
  const file2 = join175(localDir, name);
272716
- if (!existsSync141(file2) || !statSync48(file2).isFile()) return new Response("not found", { status: 404 });
272850
+ if (!existsSync141(file2) || !statSync49(file2).isFile()) return new Response("not found", { status: 404 });
272717
272851
  const ext = name.slice(name.lastIndexOf(".") + 1);
272718
272852
  const body = request2.method === "HEAD" ? null : readFileSync163(file2);
272719
272853
  return new Response(body, {
@@ -272754,53 +272888,53 @@ var init_preview_assets_generated = __esm({
272754
272888
  init_define_HHP_CATALOG();
272755
272889
  init_preview_assets_format();
272756
272890
  PREVIEW_ASSET_MANIFEST = [
272757
- { key: "assets/DashboardHost-CZhZlclr.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "270096d74f1073588ec3efe9767754aefa46563fa79022f3aaef2178ad5ef1de" },
272758
- { key: "assets/DevDrawer-TuLSjKHe.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "b299d7dae1ca5ba453d009637dbca5554a509d6663e6ad03403f1b731d5b9e3f" },
272759
- { key: "assets/IdiomCompare-CVi8qvdJ.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "517a38b2038ff75751b56415ada6ab0953e6bd754310868a1cb49b57d3b02d31" },
272760
- { key: "assets/LightboxViewer-DwjGPYSL.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15965, sha256: "f91044ad7787d3b90b50bbbba430ede2266e66c59b660e3c19829dccac7ccbc6" },
272761
- { key: "assets/OfflineReadingBar-BaUzKOTl.js", contentType: "application/javascript; charset=utf-8", offset: 37667, length: 1761, sha256: "dea5e6cce66ec5f9fca1be6f6600ab793829c3d3a21a16297e7147539068bdc6" },
272762
- { key: "assets/PhonePreviewControl-BFIMBA_S.js", contentType: "application/javascript; charset=utf-8", offset: 39428, length: 37851, sha256: "2b1d2dbb868b0239a9b6109546f9ed8edd6cca2b722bab5641f82fc08e991925" },
272763
- { key: "assets/SchemeCompare-BldKu2LM.js", contentType: "application/javascript; charset=utf-8", offset: 77279, length: 1858, sha256: "a59b5c64c3d02349c908fc260574b5c367ddeda21cce03bd08e5a88fbdb889b2" },
272764
- { key: "assets/TopBarSearchStates-CsObVXsh.js", contentType: "application/javascript; charset=utf-8", offset: 79137, length: 4068, sha256: "9217b1216b5e3171c3f87819acf1ff1c8220e0fb5b8b8a9dd9f0ee4686de1900" },
272765
- { key: "assets/WixFrogTelemetrySink-CNhaAkUB.js", contentType: "application/javascript; charset=utf-8", offset: 83205, length: 3515, sha256: "d9d23e9fc7aa3d562f6a689576170693dd668eaac8aadae1d4d0e8b264820684" },
272891
+ { key: "assets/DashboardHost-CKszTEHj.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "004968529b396e36b88229206fc24597bac06935b2a0ce1f1f7f7b964a2399f7" },
272892
+ { key: "assets/DevDrawer-C-AMZcB3.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "ef57c3722ba32ab72bc64664b8262c070c5bd4f071aaed71ad66b79fd7635077" },
272893
+ { key: "assets/IdiomCompare-B_iNkj-p.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "7c8ab479b179933f8b1b43ecf681fbaeb8748a564429f143ebebf688ff69433f" },
272894
+ { key: "assets/LightboxViewer-DFv1W4O7.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15965, sha256: "95a93660140d331a3fcc9499b675234853609926c56bc3fb2f7f961ccde455ea" },
272895
+ { key: "assets/OfflineReadingBar-rfGABkrs.js", contentType: "application/javascript; charset=utf-8", offset: 37667, length: 1761, sha256: "2feae7a1bb65f583bee3cde03de32fb52cb381ae5358dbca228610ee95e13638" },
272896
+ { key: "assets/PhonePreviewControl-evgXoneT.js", contentType: "application/javascript; charset=utf-8", offset: 39428, length: 37851, sha256: "5c1b14777fa64a7ebb748013f482fdf8b7f2d75ec876b0c9b72c2601df1270e3" },
272897
+ { key: "assets/SchemeCompare-QZeSxvVJ.js", contentType: "application/javascript; charset=utf-8", offset: 77279, length: 1858, sha256: "cab2879699e31a24fefcb56f008804ba86abb6804aa0af1e7b1f8ea4ce2e6a4e" },
272898
+ { key: "assets/TopBarSearchStates-Dqe3WwHd.js", contentType: "application/javascript; charset=utf-8", offset: 79137, length: 4068, sha256: "21854a304c54f06b5903693e69874fc50c5389f0257441498335d212661432e7" },
272899
+ { key: "assets/WixFrogTelemetrySink-Dm5A9nFe.js", contentType: "application/javascript; charset=utf-8", offset: 83205, length: 3515, sha256: "db2fd40066fd2aa9ce72671898e866262cd9adbc7910237e43ba6b5bc6b57f5a" },
272766
272900
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 86720, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
272767
272901
  { key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 88912, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
272768
- { key: "assets/catalogFontFaces-CBHbWmle.js", contentType: "application/javascript; charset=utf-8", offset: 124538, length: 1111, sha256: "9589a2ccd3f8994f891b0b090b246f4ed671726f7a2310efeba18a834ce1361f" },
272902
+ { key: "assets/catalogFontFaces-dljLgB5p.js", contentType: "application/javascript; charset=utf-8", offset: 124538, length: 1111, sha256: "0ce6783e7279067725b9cdc98f3c442a8c650e85e924aa1db3f620deba74ca0f" },
272769
272903
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 125649, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
272770
- { key: "assets/files-transfer-CRZX2ve0.js", contentType: "application/javascript; charset=utf-8", offset: 128216, length: 6446, sha256: "8625ff2de6942659fa45a051999e108db2b30e91d17d6dfee4b1e8d65833c425" },
272904
+ { key: "assets/files-transfer-8ebG-qYT.js", contentType: "application/javascript; charset=utf-8", offset: 128216, length: 6446, sha256: "889eb515e51057c8dd5ba4cfe2580819376552e2bb45827bc03722a641629aed" },
272771
272905
  { key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 134662, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
272772
- { key: "assets/frogApiRules-DYVkWmoQ.js", contentType: "application/javascript; charset=utf-8", offset: 135834, length: 2207, sha256: "c3b13204422b5acfc198913872526b6de090c44cae4d34219e5f5c9d1d7d556a" },
272906
+ { key: "assets/frogApiRules-BtRnV_Vk.js", contentType: "application/javascript; charset=utf-8", offset: 135834, length: 2207, sha256: "5aa9f314e2cfe44b2dc0090008d99c45329540645473766c37ecf6fa59d36267" },
272773
272907
  { key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 138041, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
272774
272908
  { key: "assets/glassPreviewBrowser-OVmIRgHt.js", contentType: "application/javascript; charset=utf-8", offset: 139108, length: 6800, sha256: "3671697a4f66a1f5f68610fab57d590630be70be934f59675ef1bda9a96e6fe3" },
272775
272909
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 145908, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
272776
- { key: "assets/index-Lin2rNuR.js", contentType: "application/javascript; charset=utf-8", offset: 148612, length: 1731356, sha256: "66ebbc44f9d3c5c8502a4c1214eb2f2d12587e9951d429cdc13a5bbf29e37445" },
272777
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1879968, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
272778
- { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1887719, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
272779
- { key: "assets/pdf-B6sk-tIn.js", contentType: "application/javascript; charset=utf-8", offset: 1898250, length: 488215, sha256: "d7d3e5a20cf0acc0fb9058dba6f24d4c6646f0889e3a8cff510b29c41d3eafd4" },
272780
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2386465, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
272781
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2386555, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
272782
- { key: "assets/pdfDocument-Cn2YnDlb.js", contentType: "application/javascript; charset=utf-8", offset: 3703589, length: 3836, sha256: "a2f1c296d6bf3f653cf3ba8ec7974d61cc29e8e2155827aac2c10083033af5cd" },
272783
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3707425, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
272784
- { key: "assets/scrollLinkedRuntime-BIqAlUMg.js", contentType: "application/javascript; charset=utf-8", offset: 3709691, length: 2278, sha256: "57803c2fbad25e7f841de0bdbfb7d3cfb839ed116f7176404a8a3c136de37aae" },
272785
- { key: "assets/webviewBridgeHost-DkNvV82m.js", contentType: "application/javascript; charset=utf-8", offset: 3711969, length: 9890, sha256: "917709db1f41984a72cc343db569802ac8bf450ce85b48c55d42a5cde4ffd9ec" },
272786
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3721859, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
272787
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3726469, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
272788
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4215053, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
272789
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4305977, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
272790
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4396961, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
272791
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4487941, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
272792
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4578813, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
272793
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4669793, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
272794
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4778429, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
272795
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4887513, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
272796
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4996561, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
272797
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5104261, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
272798
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5192369, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
272799
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5199187, length: 4924, sha256: "dc8e27296575c4c130643d51132bb9dca5bd4010bb6013bde2cadb66c5b39b17" },
272800
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5204111, length: 15585, sha256: "98ec60ef8f9568532f0746d1092b5c76f1c52d718365c586c8bade8f62c7c5eb" },
272801
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5219696, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
272802
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5220867, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
272803
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5245170, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
272910
+ { key: "assets/index-DJkXmetH.js", contentType: "application/javascript; charset=utf-8", offset: 148612, length: 1731606, sha256: "9b6080919ad5c0bdef29801e0df305527409667afcff3b05201c85594952404d" },
272911
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1880218, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
272912
+ { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1887969, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
272913
+ { key: "assets/pdf-IpAn7-Aa.js", contentType: "application/javascript; charset=utf-8", offset: 1898500, length: 488215, sha256: "a5d585737ec0f4d39abdf4a8e7c45350a720c45c62afbba5ae54265cd4d8ec70" },
272914
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2386715, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
272915
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2386805, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
272916
+ { key: "assets/pdfDocument-BaqtJl5g.js", contentType: "application/javascript; charset=utf-8", offset: 3703839, length: 3836, sha256: "bae3554254e7282256b7611145687773550c4af2e6ac56bb1b30dd42ead7ea3c" },
272917
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3707675, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
272918
+ { key: "assets/scrollLinkedRuntime-Dz-MZRBS.js", contentType: "application/javascript; charset=utf-8", offset: 3709941, length: 2278, sha256: "b333ce5a5b379cbd4d0014aef82d2e4291b8afd53f2c6cdb487f579082c7fdfd" },
272919
+ { key: "assets/webviewBridgeHost-DrtJt-uo.js", contentType: "application/javascript; charset=utf-8", offset: 3712219, length: 9890, sha256: "3ef72e8c991999b550e696be34f1a4c0e2354c6dbff4b214b695c08487b73c5c" },
272920
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3722109, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
272921
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3726719, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
272922
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4215303, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
272923
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4306227, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
272924
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4397211, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
272925
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4488191, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
272926
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4579063, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
272927
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4670043, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
272928
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4778679, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
272929
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4887763, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
272930
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4996811, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
272931
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5104511, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
272932
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5192619, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
272933
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5199437, length: 4924, sha256: "e6717291b534010ed0e9750d2da00f718b454c7b51d54628cdeac8d730fccb9c" },
272934
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5204361, length: 15585, sha256: "98ec60ef8f9568532f0746d1092b5c76f1c52d718365c586c8bade8f62c7c5eb" },
272935
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5219946, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
272936
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5221117, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
272937
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5245420, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
272804
272938
  ];
272805
272939
  }
272806
272940
  });
@@ -272820,7 +272954,7 @@ __export(run_exports, {
272820
272954
  runPackage: () => runPackage,
272821
272955
  withoutProdServe: () => withoutProdServe
272822
272956
  });
272823
- import { cpSync as cpSync2, existsSync as existsSync142, lstatSync as lstatSync38, mkdirSync as mkdirSync61, mkdtempSync as mkdtempSync12, readdirSync as readdirSync61, readFileSync as readFileSync164, rmSync as rmSync41, statSync as statSync49 } from "node:fs";
272957
+ import { cpSync as cpSync2, existsSync as existsSync142, lstatSync as lstatSync38, mkdirSync as mkdirSync61, mkdtempSync as mkdtempSync12, readdirSync as readdirSync61, readFileSync as readFileSync164, rmSync as rmSync41, statSync as statSync50 } from "node:fs";
272824
272958
  import { networkInterfaces as osNetworkInterfaces, tmpdir as tmpdir13 } from "node:os";
272825
272959
  import { dirname as dirname77, join as join176 } from "node:path";
272826
272960
  import { fileURLToPath as fileURLToPath39 } from "node:url";
@@ -272866,7 +273000,7 @@ async function fetchBytes(url) {
272866
273000
  }
272867
273001
  async function resolvePackage(source2, workDir) {
272868
273002
  const isUrl2 = /^https?:\/\//i.test(source2);
272869
- if (!isUrl2 && existsSync142(source2) && statSync49(source2).isDirectory()) {
273003
+ if (!isUrl2 && existsSync142(source2) && statSync50(source2).isDirectory()) {
272870
273004
  const appDirManifest = join176(source2, "release-manifest.json");
272871
273005
  if (existsSync142(appDirManifest)) {
272872
273006
  const link4 = firstSymlink(source2);
@@ -282800,7 +282934,7 @@ __export(preflight_app_exports, {
282800
282934
  profileAccount: () => profileAccount,
282801
282935
  readXcconfigVars: () => readXcconfigVars
282802
282936
  });
282803
- import { readFileSync as readFileSync177, existsSync as existsSync151, readdirSync as readdirSync63, statSync as statSync50 } from "node:fs";
282937
+ import { readFileSync as readFileSync177, existsSync as existsSync151, readdirSync as readdirSync63, statSync as statSync51 } from "node:fs";
282804
282938
  import { createHash as createHash94 } from "node:crypto";
282805
282939
  import { dirname as dirname81, join as join189 } from "node:path";
282806
282940
  function analyze(projectYml, storeConfig, icon, account2, adopted) {
@@ -283136,7 +283270,7 @@ function playListingAssets(app2, locale = "en-US") {
283136
283270
  for (const name of names2) {
283137
283271
  const p2 = join189(dir, name);
283138
283272
  try {
283139
- if (statSync50(p2).isFile()) return { name, bytes: readFileSync177(p2) };
283273
+ if (statSync51(p2).isFile()) return { name, bytes: readFileSync177(p2) };
283140
283274
  } catch {
283141
283275
  }
283142
283276
  }
@@ -283184,7 +283318,7 @@ function listScreenshots(app2, locale = "en-US") {
283184
283318
  if (existsSync151(legacy)) {
283185
283319
  for (const deviceDir of readdirSync63(legacy)) {
283186
283320
  const d2 = join189(legacy, deviceDir);
283187
- if (!statSync50(d2).isDirectory()) continue;
283321
+ if (!statSync51(d2).isDirectory()) continue;
283188
283322
  for (const png of readdirSync63(d2).filter((n2) => n2.endsWith(".png"))) {
283189
283323
  const sz = pngSize3(readFileSync177(join189(d2, png)));
283190
283324
  if (sz) out2.push({ name: `${deviceDir}/${png}`, w: sz.w, h: sz.h });
@@ -283199,7 +283333,7 @@ function placeholderHashes2() {
283199
283333
  for (const target of readdirSync63(templateIos)) {
283200
283334
  const p2 = join189(templateIos, target, "Assets.xcassets", "AppIcon.appiconset", "icon_1024.png");
283201
283335
  try {
283202
- if (!statSync50(p2).isFile()) continue;
283336
+ if (!statSync51(p2).isFile()) continue;
283203
283337
  return [LEGACY_PLACEHOLDER_SHA2562, createHash94("sha256").update(readFileSync177(p2)).digest("hex")];
283204
283338
  } catch {
283205
283339
  }
@@ -283235,7 +283369,7 @@ async function appIconState(iosDir) {
283235
283369
  for (const target of readdirSync63(iosDir)) {
283236
283370
  const p2 = join189(iosDir, target, "Assets.xcassets", "AppIcon.appiconset", "icon_1024.png");
283237
283371
  try {
283238
- if (!statSync50(p2).isFile()) continue;
283372
+ if (!statSync51(p2).isFile()) continue;
283239
283373
  const bytes2 = readFileSync177(p2);
283240
283374
  const hash3 = createHash94("sha256").update(bytes2).digest("hex");
283241
283375
  const pixels = await pixelIssues(bytes2);
@@ -285657,7 +285791,7 @@ var init_upgrade = __esm({
285657
285791
  });
285658
285792
 
285659
285793
  // src/commands/doctor.ts
285660
- import { statSync as statSync51, accessSync as accessSync5, constants as constants11 } from "node:fs";
285794
+ import { statSync as statSync52, accessSync as accessSync5, constants as constants11 } from "node:fs";
285661
285795
  import { join as join191 } from "node:path";
285662
285796
  async function probeReachable(url, opts = {}) {
285663
285797
  if (!url) return { url, reachable: false, error: "no url configured for this plane" };
@@ -285724,7 +285858,7 @@ function executableOnPath(name, env = process.env) {
285724
285858
  for (const suffix of suffixes) {
285725
285859
  const candidate = join191(dir, `${name}${suffix}`);
285726
285860
  try {
285727
- if (!statSync51(candidate).isFile()) continue;
285861
+ if (!statSync52(candidate).isFile()) continue;
285728
285862
  if (process.platform !== "win32") accessSync5(candidate, constants11.X_OK);
285729
285863
  return true;
285730
285864
  } catch {
@@ -290023,7 +290157,7 @@ import {
290023
290157
  realpathSync as realpathSync23,
290024
290158
  renameSync as renameSync26,
290025
290159
  rmSync as rmSync46,
290026
- statSync as statSync52,
290160
+ statSync as statSync53,
290027
290161
  writeFileSync as writeFileSync71
290028
290162
  } from "node:fs";
290029
290163
  import { basename as basename43, dirname as dirname87, join as join199, relative as relative37, resolve as resolve125 } from "node:path";
@@ -290104,7 +290238,7 @@ async function l10nCommand(ctx) {
290104
290238
  return fail18("invalid_usage", { error: "name the app: --app <slug> (in a checkout) or --content <app dir>" }, 2);
290105
290239
  }
290106
290240
  const messagesDir = resolve125(dirArg);
290107
- if (!existsSync158(messagesDir) || !statSync52(messagesDir).isDirectory()) {
290241
+ if (!existsSync158(messagesDir) || !statSync53(messagesDir).isDirectory()) {
290108
290242
  return fail18("messages_dir_not_found", { error: `${dirArg} is not a directory`, dir: messagesDir }, 1);
290109
290243
  }
290110
290244
  const fileByTag = /* @__PURE__ */ new Map();
@@ -298128,7 +298262,7 @@ var init_invite_plan = __esm({
298128
298262
  });
298129
298263
 
298130
298264
  // src/one-app/header-badges-cli.ts
298131
- import { existsSync as existsSync167, lstatSync as lstatSync42, readFileSync as readFileSync196, rmSync as rmSync50, statSync as statSync53, writeFileSync as writeFileSync79 } from "node:fs";
298265
+ import { existsSync as existsSync167, lstatSync as lstatSync42, readFileSync as readFileSync196, rmSync as rmSync50, statSync as statSync54, writeFileSync as writeFileSync79 } from "node:fs";
298132
298266
  import { join as join209, resolve as resolve130 } from "node:path";
298133
298267
  function guestSignInParams(contentDir2) {
298134
298268
  const profile = screenLoadParams(contentDir2, PROFILE_AVATAR_ITEM.onTap.params.screenId) ?? {};
@@ -298232,7 +298366,7 @@ async function runOneAppHeaderBadges(args, io2) {
298232
298366
  let configLinked = false;
298233
298367
  try {
298234
298368
  configLinked = lstatSync42(configPath).isSymbolicLink();
298235
- if (!configLinked && statSync53(configPath).isFile()) configText = readFileSync196(configPath, "utf8");
298369
+ if (!configLinked && statSync54(configPath).isFile()) configText = readFileSync196(configPath, "utf8");
298236
298370
  } catch {
298237
298371
  }
298238
298372
  const declaration2 = options2.notNewApp || !configText ? void 0 : declareNewApp(configText);
@@ -298257,7 +298391,7 @@ async function runOneAppHeaderBadges(args, io2) {
298257
298391
  let screens;
298258
298392
  try {
298259
298393
  if (configLinked) throw new Error("config.ts is a symlink: refusing to read or write through it.");
298260
- if (!statSync53(configPath).isFile()) throw new Error("config.ts is not a file.");
298394
+ if (!statSync54(configPath).isFile()) throw new Error("config.ts is not a file.");
298261
298395
  screens = contentScreens(options2.contentDir);
298262
298396
  } catch (error) {
298263
298397
  return report8(io2, false, { code: "config_uninspectable", error: error instanceof Error ? error.message : String(error), ...common2 });
@@ -302396,7 +302530,7 @@ var init_customer_build = __esm({
302396
302530
  });
302397
302531
 
302398
302532
  // src/site-analyze/apply.ts
302399
- import { existsSync as existsSync172, readFileSync as readFileSync203, writeFileSync as writeFileSync83, copyFileSync as copyFileSync4, mkdirSync as mkdirSync72, realpathSync as realpathSync25, statSync as statSync54 } from "node:fs";
302533
+ import { existsSync as existsSync172, readFileSync as readFileSync203, writeFileSync as writeFileSync83, copyFileSync as copyFileSync4, mkdirSync as mkdirSync72, realpathSync as realpathSync25, statSync as statSync55 } from "node:fs";
302400
302534
  import { dirname as dirname92, isAbsolute as isAbsolute23, join as join216, resolve as resolve135, sep as sep35 } from "node:path";
302401
302535
  import { spawnSync as spawnSync14 } from "node:child_process";
302402
302536
  function inRepoBakeRefusal(repoRoot2, shell) {
@@ -302756,7 +302890,7 @@ function buildMergedContract(options2) {
302756
302890
  }
302757
302891
  if (!real.startsWith(realRoot + sep35)) return void 0;
302758
302892
  try {
302759
- if (!statSync54(real).isFile()) return void 0;
302893
+ if (!statSync55(real).isFile()) return void 0;
302760
302894
  mkdirSync72(dirname92(to2), { recursive: true });
302761
302895
  copyFileSync4(real, to2);
302762
302896
  } catch {