perchai-cli 2.4.43 → 2.4.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/perch.mjs +701 -625
  2. package/package.json +1 -1
package/dist/perch.mjs CHANGED
@@ -5267,9 +5267,9 @@ var require_xlsx = __commonJS({
5267
5267
  }
5268
5268
  return o;
5269
5269
  }
5270
- var fs16;
5270
+ var fs17;
5271
5271
  function get_fs() {
5272
- return fs16 || (fs16 = __require("fs"));
5272
+ return fs17 || (fs17 = __require("fs"));
5273
5273
  }
5274
5274
  function parse(file, options) {
5275
5275
  if (file[0] == 80 && file[1] == 75) return parse_zip2(file, options);
@@ -5545,7 +5545,7 @@ var require_xlsx = __commonJS({
5545
5545
  }
5546
5546
  function read_file(filename2, options) {
5547
5547
  get_fs();
5548
- return parse(fs16.readFileSync(filename2), options);
5548
+ return parse(fs17.readFileSync(filename2), options);
5549
5549
  }
5550
5550
  function read(blob, options) {
5551
5551
  var type = options && options.type;
@@ -5822,7 +5822,7 @@ var require_xlsx = __commonJS({
5822
5822
  }
5823
5823
  return o;
5824
5824
  }
5825
- function find2(cfb, path16) {
5825
+ function find2(cfb, path17) {
5826
5826
  var UCFullPaths = cfb.FullPaths.map(function(x) {
5827
5827
  return x.toUpperCase();
5828
5828
  });
@@ -5831,11 +5831,11 @@ var require_xlsx = __commonJS({
5831
5831
  return y[y.length - (x.slice(-1) == "/" ? 2 : 1)];
5832
5832
  });
5833
5833
  var k = false;
5834
- if (path16.charCodeAt(0) === 47) {
5834
+ if (path17.charCodeAt(0) === 47) {
5835
5835
  k = true;
5836
- path16 = UCFullPaths[0].slice(0, -1) + path16;
5837
- } else k = path16.indexOf("/") !== -1;
5838
- var UCPath = path16.toUpperCase();
5836
+ path17 = UCFullPaths[0].slice(0, -1) + path17;
5837
+ } else k = path17.indexOf("/") !== -1;
5838
+ var UCPath = path17.toUpperCase();
5839
5839
  var w = k === true ? UCFullPaths.indexOf(UCPath) : UCPaths.indexOf(UCPath);
5840
5840
  if (w !== -1) return cfb.FileIndex[w];
5841
5841
  var m = !UCPath.match(chr1);
@@ -5871,7 +5871,7 @@ var require_xlsx = __commonJS({
5871
5871
  function write_file(cfb, filename2, options) {
5872
5872
  get_fs();
5873
5873
  var o = _write(cfb, options);
5874
- fs16.writeFileSync(filename2, o);
5874
+ fs17.writeFileSync(filename2, o);
5875
5875
  }
5876
5876
  function a2s2(o) {
5877
5877
  var out = new Array(o.length);
@@ -5883,7 +5883,7 @@ var require_xlsx = __commonJS({
5883
5883
  switch (options && options.type || "buffer") {
5884
5884
  case "file":
5885
5885
  get_fs();
5886
- fs16.writeFileSync(options.filename, o);
5886
+ fs17.writeFileSync(options.filename, o);
5887
5887
  return o;
5888
5888
  case "binary":
5889
5889
  return typeof o == "string" ? o : a2s2(o);
@@ -6816,11 +6816,11 @@ var require_xlsx = __commonJS({
6816
6816
  }
6817
6817
  throw new Error("cannot save file " + fname);
6818
6818
  }
6819
- function read_binary(path16) {
6820
- if (typeof _fs !== "undefined") return _fs.readFileSync(path16);
6821
- if (typeof Deno !== "undefined") return Deno.readFileSync(path16);
6819
+ function read_binary(path17) {
6820
+ if (typeof _fs !== "undefined") return _fs.readFileSync(path17);
6821
+ if (typeof Deno !== "undefined") return Deno.readFileSync(path17);
6822
6822
  if (typeof $ !== "undefined" && typeof File !== "undefined" && typeof Folder !== "undefined") try {
6823
- var infile = File(path16);
6823
+ var infile = File(path17);
6824
6824
  infile.open("r");
6825
6825
  infile.encoding = "binary";
6826
6826
  var data = infile.read();
@@ -6829,7 +6829,7 @@ var require_xlsx = __commonJS({
6829
6829
  } catch (e) {
6830
6830
  if (!e.message || !e.message.match(/onstruct/)) throw e;
6831
6831
  }
6832
- throw new Error("Cannot access file " + path16);
6832
+ throw new Error("Cannot access file " + path17);
6833
6833
  }
6834
6834
  function keys2(o) {
6835
6835
  var ks = Object.keys(o), o2 = [];
@@ -7106,16 +7106,16 @@ var require_xlsx = __commonJS({
7106
7106
  for (var i = 0; i < k.length; ++i) if (k[i].slice(-1) != "/") o.push(k[i].replace(/^Root Entry[\/]/, ""));
7107
7107
  return o.sort();
7108
7108
  }
7109
- function zip_add_file(zip, path16, content) {
7109
+ function zip_add_file(zip, path17, content) {
7110
7110
  if (zip.FullPaths) {
7111
7111
  if (typeof content == "string") {
7112
7112
  var res;
7113
7113
  if (has_buf) res = Buffer_from(content);
7114
7114
  else res = utf8decode(content);
7115
- return CFB.utils.cfb_add(zip, path16, res);
7115
+ return CFB.utils.cfb_add(zip, path17, res);
7116
7116
  }
7117
- CFB.utils.cfb_add(zip, path16, content);
7118
- } else zip.file(path16, content);
7117
+ CFB.utils.cfb_add(zip, path17, content);
7118
+ } else zip.file(path17, content);
7119
7119
  }
7120
7120
  function zip_new() {
7121
7121
  return CFB.utils.cfb_new();
@@ -7132,11 +7132,11 @@ var require_xlsx = __commonJS({
7132
7132
  }
7133
7133
  throw new Error("Unrecognized type " + o.type);
7134
7134
  }
7135
- function resolve_path(path16, base) {
7136
- if (path16.charAt(0) == "/") return path16.slice(1);
7135
+ function resolve_path(path17, base) {
7136
+ if (path17.charAt(0) == "/") return path17.slice(1);
7137
7137
  var result2 = base.split("/");
7138
7138
  if (base.slice(-1) != "/") result2.pop();
7139
- var target = path16.split("/");
7139
+ var target = path17.split("/");
7140
7140
  while (target.length !== 0) {
7141
7141
  var step = target.shift();
7142
7142
  if (step === "..") result2.pop();
@@ -10805,9 +10805,9 @@ var require_xlsx = __commonJS({
10805
10805
  cell.isst = blob.read_shift(4);
10806
10806
  return cell;
10807
10807
  }
10808
- function write_LabelSst(R, C, v, os7) {
10808
+ function write_LabelSst(R, C, v, os8) {
10809
10809
  var o = new_buf(10);
10810
- write_XLSCell(R, C, os7, o);
10810
+ write_XLSCell(R, C, os8, o);
10811
10811
  o.write_shift(4, v);
10812
10812
  return o;
10813
10813
  }
@@ -10820,10 +10820,10 @@ var require_xlsx = __commonJS({
10820
10820
  cell.val = str;
10821
10821
  return cell;
10822
10822
  }
10823
- function write_Label(R, C, v, os7, opts) {
10823
+ function write_Label(R, C, v, os8, opts) {
10824
10824
  var b8 = !opts || opts.biff == 8;
10825
10825
  var o = new_buf(6 + 2 + +b8 + (1 + b8) * v.length);
10826
- write_XLSCell(R, C, os7, o);
10826
+ write_XLSCell(R, C, os8, o);
10827
10827
  o.write_shift(2, v.length);
10828
10828
  if (b8) o.write_shift(1, 1);
10829
10829
  o.write_shift((1 + b8) * v.length, v, b8 ? "utf16le" : "sbcs");
@@ -10977,9 +10977,9 @@ var require_xlsx = __commonJS({
10977
10977
  cell.t = val === true || val === false ? "b" : "e";
10978
10978
  return cell;
10979
10979
  }
10980
- function write_BoolErr(R, C, v, os7, opts, t) {
10980
+ function write_BoolErr(R, C, v, os8, opts, t) {
10981
10981
  var o = new_buf(8);
10982
- write_XLSCell(R, C, os7, o);
10982
+ write_XLSCell(R, C, os8, o);
10983
10983
  write_Bes(v, t, o);
10984
10984
  return o;
10985
10985
  }
@@ -10990,9 +10990,9 @@ var require_xlsx = __commonJS({
10990
10990
  cell.val = xnum;
10991
10991
  return cell;
10992
10992
  }
10993
- function write_Number(R, C, v, os7) {
10993
+ function write_Number(R, C, v, os8) {
10994
10994
  var o = new_buf(14);
10995
- write_XLSCell(R, C, os7, o);
10995
+ write_XLSCell(R, C, os8, o);
10996
10996
  write_Xnum(v, o);
10997
10997
  return o;
10998
10998
  }
@@ -17815,8 +17815,8 @@ var require_xlsx = __commonJS({
17815
17815
  var cbf = parse_XLSCellParsedFormula(blob, end - blob.l, opts);
17816
17816
  return { cell, val: val[0], formula: cbf, shared: flags >> 3 & 1, tt: val[1] };
17817
17817
  }
17818
- function write_Formula(cell, R, C, opts, os7) {
17819
- var o1 = write_XLSCell(R, C, os7);
17818
+ function write_Formula(cell, R, C, opts, os8) {
17819
+ var o1 = write_XLSCell(R, C, os8);
17820
17820
  var o2 = write_FormulaValue(cell.v);
17821
17821
  var o3 = new_buf(6);
17822
17822
  var flags = 1 | 32;
@@ -19395,8 +19395,8 @@ var require_xlsx = __commonJS({
19395
19395
  break;
19396
19396
  }
19397
19397
  var v = writetag("v", escapexml(vv)), o = { r: ref };
19398
- var os7 = get_cell_style(opts.cellXfs, cell, opts);
19399
- if (os7 !== 0) o.s = os7;
19398
+ var os8 = get_cell_style(opts.cellXfs, cell, opts);
19399
+ if (os8 !== 0) o.s = os8;
19400
19400
  switch (cell.t) {
19401
19401
  case "n":
19402
19402
  break;
@@ -23211,8 +23211,8 @@ var require_xlsx = __commonJS({
23211
23211
  p = escapexlml(cell.v || "");
23212
23212
  break;
23213
23213
  }
23214
- var os7 = get_cell_style(opts.cellXfs, cell, opts);
23215
- attr["ss:StyleID"] = "s" + (21 + os7);
23214
+ var os8 = get_cell_style(opts.cellXfs, cell, opts);
23215
+ attr["ss:StyleID"] = "s" + (21 + os8);
23216
23216
  attr["ss:Index"] = addr.c + 1;
23217
23217
  var _v = cell.v != null ? p : "";
23218
23218
  var m = cell.t == "z" ? "" : '<Data ss:Type="' + t + '">' + _v + "</Data>";
@@ -29047,32 +29047,32 @@ var require_xlsx = __commonJS({
29047
29047
  });
29048
29048
  }
29049
29049
  function write_ws_biff8_cell(ba, cell, R, C, opts) {
29050
- var os7 = 16 + get_cell_style(opts.cellXfs, cell, opts);
29050
+ var os8 = 16 + get_cell_style(opts.cellXfs, cell, opts);
29051
29051
  if (cell.v == null && !cell.bf) {
29052
- write_biff_rec(ba, 513, write_XLSCell(R, C, os7));
29052
+ write_biff_rec(ba, 513, write_XLSCell(R, C, os8));
29053
29053
  return;
29054
29054
  }
29055
- if (cell.bf) write_biff_rec(ba, 6, write_Formula(cell, R, C, opts, os7));
29055
+ if (cell.bf) write_biff_rec(ba, 6, write_Formula(cell, R, C, opts, os8));
29056
29056
  else switch (cell.t) {
29057
29057
  case "d":
29058
29058
  case "n":
29059
29059
  var v = cell.t == "d" ? datenum(parseDate3(cell.v)) : cell.v;
29060
- write_biff_rec(ba, 515, write_Number(R, C, v, os7, opts));
29060
+ write_biff_rec(ba, 515, write_Number(R, C, v, os8, opts));
29061
29061
  break;
29062
29062
  case "b":
29063
29063
  case "e":
29064
- write_biff_rec(ba, 517, write_BoolErr(R, C, cell.v, os7, opts, cell.t));
29064
+ write_biff_rec(ba, 517, write_BoolErr(R, C, cell.v, os8, opts, cell.t));
29065
29065
  break;
29066
29066
  /* TODO: codepage, sst */
29067
29067
  case "s":
29068
29068
  case "str":
29069
29069
  if (opts.bookSST) {
29070
29070
  var isst = get_sst_id(opts.Strings, cell.v, opts.revStrings);
29071
- write_biff_rec(ba, 253, write_LabelSst(R, C, isst, os7, opts));
29072
- } else write_biff_rec(ba, 516, write_Label(R, C, (cell.v || "").slice(0, 255), os7, opts));
29071
+ write_biff_rec(ba, 253, write_LabelSst(R, C, isst, os8, opts));
29072
+ } else write_biff_rec(ba, 516, write_Label(R, C, (cell.v || "").slice(0, 255), os8, opts));
29073
29073
  break;
29074
29074
  default:
29075
- write_biff_rec(ba, 513, write_XLSCell(R, C, os7));
29075
+ write_biff_rec(ba, 513, write_XLSCell(R, C, os8));
29076
29076
  }
29077
29077
  }
29078
29078
  function write_ws_biff8(idx, opts, wb) {
@@ -31790,19 +31790,19 @@ var require_xlsx = __commonJS({
31790
31790
  }
31791
31791
  return !wbrels || wbrels.length === 0 ? null : wbrels;
31792
31792
  }
31793
- function safe_parse_sheet(zip, path16, relsPath, sheet, idx, sheetRels, sheets, stype, opts, wb, themes, styles6) {
31793
+ function safe_parse_sheet(zip, path17, relsPath, sheet, idx, sheetRels, sheets, stype, opts, wb, themes, styles6) {
31794
31794
  try {
31795
- sheetRels[sheet] = parse_rels(getzipstr(zip, relsPath, true), path16);
31796
- var data = getzipdata(zip, path16);
31795
+ sheetRels[sheet] = parse_rels(getzipstr(zip, relsPath, true), path17);
31796
+ var data = getzipdata(zip, path17);
31797
31797
  var _ws;
31798
31798
  switch (stype) {
31799
31799
  case "sheet":
31800
- _ws = parse_ws(data, path16, idx, opts, sheetRels[sheet], wb, themes, styles6);
31800
+ _ws = parse_ws(data, path17, idx, opts, sheetRels[sheet], wb, themes, styles6);
31801
31801
  break;
31802
31802
  case "chart":
31803
- _ws = parse_cs(data, path16, idx, opts, sheetRels[sheet], wb, themes, styles6);
31803
+ _ws = parse_cs(data, path17, idx, opts, sheetRels[sheet], wb, themes, styles6);
31804
31804
  if (!_ws || !_ws["!drawel"]) break;
31805
- var dfile = resolve_path(_ws["!drawel"].Target, path16);
31805
+ var dfile = resolve_path(_ws["!drawel"].Target, path17);
31806
31806
  var drelsp = get_rels_path(dfile);
31807
31807
  var draw = parse_drawing(getzipstr(zip, dfile, true), parse_rels(getzipstr(zip, drelsp, true), dfile));
31808
31808
  var chartp = resolve_path(draw, dfile);
@@ -31810,10 +31810,10 @@ var require_xlsx = __commonJS({
31810
31810
  _ws = parse_chart(getzipstr(zip, chartp, true), chartp, opts, parse_rels(getzipstr(zip, crelsp, true), chartp), wb, _ws);
31811
31811
  break;
31812
31812
  case "macro":
31813
- _ws = parse_ms(data, path16, idx, opts, sheetRels[sheet], wb, themes, styles6);
31813
+ _ws = parse_ms(data, path17, idx, opts, sheetRels[sheet], wb, themes, styles6);
31814
31814
  break;
31815
31815
  case "dialog":
31816
- _ws = parse_ds(data, path16, idx, opts, sheetRels[sheet], wb, themes, styles6);
31816
+ _ws = parse_ds(data, path17, idx, opts, sheetRels[sheet], wb, themes, styles6);
31817
31817
  break;
31818
31818
  default:
31819
31819
  throw new Error("Unrecognized sheet type " + stype);
@@ -31823,13 +31823,13 @@ var require_xlsx = __commonJS({
31823
31823
  if (sheetRels && sheetRels[sheet]) keys2(sheetRels[sheet]).forEach(function(n) {
31824
31824
  var dfile2 = "";
31825
31825
  if (sheetRels[sheet][n].Type == RELS.CMNT) {
31826
- dfile2 = resolve_path(sheetRels[sheet][n].Target, path16);
31826
+ dfile2 = resolve_path(sheetRels[sheet][n].Target, path17);
31827
31827
  var comments = parse_cmnt(getzipdata(zip, dfile2, true), dfile2, opts);
31828
31828
  if (!comments || !comments.length) return;
31829
31829
  sheet_insert_comments(_ws, comments, false);
31830
31830
  }
31831
31831
  if (sheetRels[sheet][n].Type == RELS.TCMNT) {
31832
- dfile2 = resolve_path(sheetRels[sheet][n].Target, path16);
31832
+ dfile2 = resolve_path(sheetRels[sheet][n].Target, path17);
31833
31833
  tcomments = tcomments.concat(parse_tcmnt_xml(getzipdata(zip, dfile2, true), opts));
31834
31834
  }
31835
31835
  });
@@ -31933,7 +31933,7 @@ var require_xlsx = __commonJS({
31933
31933
  if (opts.bookDeps && dir.calcchain) deps = parse_cc(getzipdata(zip, strip_front_slash(dir.calcchain)), dir.calcchain, opts);
31934
31934
  var i = 0;
31935
31935
  var sheetRels = {};
31936
- var path16, relsPath;
31936
+ var path17, relsPath;
31937
31937
  {
31938
31938
  var wbsheets = wb.Sheets;
31939
31939
  props.Worksheets = wbsheets.length;
@@ -31958,15 +31958,15 @@ var require_xlsx = __commonJS({
31958
31958
  wsloop: for (i = 0; i != props.Worksheets; ++i) {
31959
31959
  var stype = "sheet";
31960
31960
  if (wbrels && wbrels[i]) {
31961
- path16 = "xl/" + wbrels[i][1].replace(/[\/]?xl\//, "");
31962
- if (!safegetzipfile(zip, path16)) path16 = wbrels[i][1];
31963
- if (!safegetzipfile(zip, path16)) path16 = wbrelsfile.replace(/_rels\/.*$/, "") + wbrels[i][1];
31961
+ path17 = "xl/" + wbrels[i][1].replace(/[\/]?xl\//, "");
31962
+ if (!safegetzipfile(zip, path17)) path17 = wbrels[i][1];
31963
+ if (!safegetzipfile(zip, path17)) path17 = wbrelsfile.replace(/_rels\/.*$/, "") + wbrels[i][1];
31964
31964
  stype = wbrels[i][2];
31965
31965
  } else {
31966
- path16 = "xl/worksheets/sheet" + (i + 1 - nmode) + "." + wbext;
31967
- path16 = path16.replace(/sheet0\./, "sheet.");
31966
+ path17 = "xl/worksheets/sheet" + (i + 1 - nmode) + "." + wbext;
31967
+ path17 = path17.replace(/sheet0\./, "sheet.");
31968
31968
  }
31969
- relsPath = path16.replace(/^(.*)(\/)([^\/]*)$/, "$1/_rels/$3.rels");
31969
+ relsPath = path17.replace(/^(.*)(\/)([^\/]*)$/, "$1/_rels/$3.rels");
31970
31970
  if (opts && opts.sheets != null) switch (typeof opts.sheets) {
31971
31971
  case "number":
31972
31972
  if (i != opts.sheets) continue wsloop;
@@ -31984,7 +31984,7 @@ var require_xlsx = __commonJS({
31984
31984
  if (!snjseen) continue wsloop;
31985
31985
  }
31986
31986
  }
31987
- safe_parse_sheet(zip, path16, relsPath, props.SheetNames[i], i, sheetRels, sheets, stype, opts, wb, themes, styles6);
31987
+ safe_parse_sheet(zip, path17, relsPath, props.SheetNames[i], i, sheetRels, sheets, stype, opts, wb, themes, styles6);
31988
31988
  }
31989
31989
  out = {
31990
31990
  Directory: dir,
@@ -32873,7 +32873,7 @@ var require_xlsx = __commonJS({
32873
32873
  return out;
32874
32874
  }
32875
32875
  var qreg = /"/g;
32876
- function make_csv_row(sheet, r, R, cols, fs16, rs, FS, o) {
32876
+ function make_csv_row(sheet, r, R, cols, fs17, rs, FS, o) {
32877
32877
  var isempty = true;
32878
32878
  var row = [], txt = "", rr = encode_row(R);
32879
32879
  for (var C = r.s.c; C <= r.e.c; ++C) {
@@ -32883,7 +32883,7 @@ var require_xlsx = __commonJS({
32883
32883
  else if (val.v != null) {
32884
32884
  isempty = false;
32885
32885
  txt = "" + (o.rawNumbers && val.t == "n" ? val.v : format_cell(val, null, o));
32886
- for (var i = 0, cc = 0; i !== txt.length; ++i) if ((cc = txt.charCodeAt(i)) === fs16 || cc === rs || cc === 34 || o.forceQuotes) {
32886
+ for (var i = 0, cc = 0; i !== txt.length; ++i) if ((cc = txt.charCodeAt(i)) === fs17 || cc === rs || cc === 34 || o.forceQuotes) {
32887
32887
  txt = '"' + txt.replace(qreg, '""') + '"';
32888
32888
  break;
32889
32889
  }
@@ -32903,7 +32903,7 @@ var require_xlsx = __commonJS({
32903
32903
  var o = opts == null ? {} : opts;
32904
32904
  if (sheet == null || sheet["!ref"] == null) return "";
32905
32905
  var r = safe_decode_range(sheet["!ref"]);
32906
- var FS = o.FS !== void 0 ? o.FS : ",", fs16 = FS.charCodeAt(0);
32906
+ var FS = o.FS !== void 0 ? o.FS : ",", fs17 = FS.charCodeAt(0);
32907
32907
  var RS = o.RS !== void 0 ? o.RS : "\n", rs = RS.charCodeAt(0);
32908
32908
  var endregex = new RegExp((FS == "|" ? "\\|" : FS) + "+$");
32909
32909
  var row = "", cols = [];
@@ -32914,7 +32914,7 @@ var require_xlsx = __commonJS({
32914
32914
  var w = 0;
32915
32915
  for (var R = r.s.r; R <= r.e.r; ++R) {
32916
32916
  if ((rowinfo[R] || {}).hidden) continue;
32917
- row = make_csv_row(sheet, r, R, cols, fs16, rs, FS, o);
32917
+ row = make_csv_row(sheet, r, R, cols, fs17, rs, FS, o);
32918
32918
  if (row == null) {
32919
32919
  continue;
32920
32920
  }
@@ -33186,7 +33186,7 @@ var require_xlsx = __commonJS({
33186
33186
  return stream;
33187
33187
  }
33188
33188
  var r = safe_decode_range(sheet["!ref"]);
33189
- var FS = o.FS !== void 0 ? o.FS : ",", fs16 = FS.charCodeAt(0);
33189
+ var FS = o.FS !== void 0 ? o.FS : ",", fs17 = FS.charCodeAt(0);
33190
33190
  var RS = o.RS !== void 0 ? o.RS : "\n", rs = RS.charCodeAt(0);
33191
33191
  var endregex = new RegExp((FS == "|" ? "\\|" : FS) + "+$");
33192
33192
  var row = "", cols = [];
@@ -33204,7 +33204,7 @@ var require_xlsx = __commonJS({
33204
33204
  while (R <= r.e.r) {
33205
33205
  ++R;
33206
33206
  if ((rowinfo[R - 1] || {}).hidden) continue;
33207
- row = make_csv_row(sheet, r, R - 1, cols, fs16, rs, FS, o);
33207
+ row = make_csv_row(sheet, r, R - 1, cols, fs17, rs, FS, o);
33208
33208
  if (row != null) {
33209
33209
  if (o.strip) row = row.replace(endregex, "");
33210
33210
  if (row || o.blankrows !== false) return stream.push((w++ ? RS : "") + row);
@@ -47774,8 +47774,8 @@ var require_html2canvas = __commonJS({
47774
47774
  return BezierCurve2;
47775
47775
  })()
47776
47776
  );
47777
- var isBezierCurve = function(path16) {
47778
- return path16.type === 1;
47777
+ var isBezierCurve = function(path17) {
47778
+ return path17.type === 1;
47779
47779
  };
47780
47780
  var BoundCurves = (
47781
47781
  /** @class */
@@ -47903,8 +47903,8 @@ var require_html2canvas = __commonJS({
47903
47903
  var ClipEffect = (
47904
47904
  /** @class */
47905
47905
  /* @__PURE__ */ (function() {
47906
- function ClipEffect2(path16, target) {
47907
- this.path = path16;
47906
+ function ClipEffect2(path17, target) {
47907
+ this.path = path17;
47908
47908
  this.target = target;
47909
47909
  this.type = 1;
47910
47910
  }
@@ -47939,8 +47939,8 @@ var require_html2canvas = __commonJS({
47939
47939
  }
47940
47940
  return false;
47941
47941
  };
47942
- var transformPath = function(path16, deltaX, deltaY, deltaW, deltaH) {
47943
- return path16.map(function(point, index) {
47942
+ var transformPath = function(path17, deltaX, deltaY, deltaW, deltaH) {
47943
+ return path17.map(function(point, index) {
47944
47944
  switch (index) {
47945
47945
  case 0:
47946
47946
  return point.add(deltaX, deltaY);
@@ -48207,42 +48207,42 @@ var require_html2canvas = __commonJS({
48207
48207
  }
48208
48208
  };
48209
48209
  var createStrokePathFromCurves = function(outer1, outer2) {
48210
- var path16 = [];
48210
+ var path17 = [];
48211
48211
  if (isBezierCurve(outer1)) {
48212
- path16.push(outer1.subdivide(0.5, false));
48212
+ path17.push(outer1.subdivide(0.5, false));
48213
48213
  } else {
48214
- path16.push(outer1);
48214
+ path17.push(outer1);
48215
48215
  }
48216
48216
  if (isBezierCurve(outer2)) {
48217
- path16.push(outer2.subdivide(0.5, true));
48217
+ path17.push(outer2.subdivide(0.5, true));
48218
48218
  } else {
48219
- path16.push(outer2);
48219
+ path17.push(outer2);
48220
48220
  }
48221
- return path16;
48221
+ return path17;
48222
48222
  };
48223
48223
  var createPathFromCurves = function(outer1, inner1, outer2, inner2) {
48224
- var path16 = [];
48224
+ var path17 = [];
48225
48225
  if (isBezierCurve(outer1)) {
48226
- path16.push(outer1.subdivide(0.5, false));
48226
+ path17.push(outer1.subdivide(0.5, false));
48227
48227
  } else {
48228
- path16.push(outer1);
48228
+ path17.push(outer1);
48229
48229
  }
48230
48230
  if (isBezierCurve(outer2)) {
48231
- path16.push(outer2.subdivide(0.5, true));
48231
+ path17.push(outer2.subdivide(0.5, true));
48232
48232
  } else {
48233
- path16.push(outer2);
48233
+ path17.push(outer2);
48234
48234
  }
48235
48235
  if (isBezierCurve(inner2)) {
48236
- path16.push(inner2.subdivide(0.5, true).reverse());
48236
+ path17.push(inner2.subdivide(0.5, true).reverse());
48237
48237
  } else {
48238
- path16.push(inner2);
48238
+ path17.push(inner2);
48239
48239
  }
48240
48240
  if (isBezierCurve(inner1)) {
48241
- path16.push(inner1.subdivide(0.5, false).reverse());
48241
+ path17.push(inner1.subdivide(0.5, false).reverse());
48242
48242
  } else {
48243
- path16.push(inner1);
48243
+ path17.push(inner1);
48244
48244
  }
48245
- return path16;
48245
+ return path17;
48246
48246
  };
48247
48247
  var paddingBox = function(element) {
48248
48248
  var bounds = element.bounds;
@@ -48282,10 +48282,10 @@ var require_html2canvas = __commonJS({
48282
48282
  var backgroundImageSize = calculateBackgroundSize(getBackgroundValueForIndex(container.styles.backgroundSize, index), intrinsicSize, backgroundPositioningArea);
48283
48283
  var sizeWidth = backgroundImageSize[0], sizeHeight = backgroundImageSize[1];
48284
48284
  var position2 = getAbsoluteValueForTuple(getBackgroundValueForIndex(container.styles.backgroundPosition, index), backgroundPositioningArea.width - sizeWidth, backgroundPositioningArea.height - sizeHeight);
48285
- var path16 = calculateBackgroundRepeatPath(getBackgroundValueForIndex(container.styles.backgroundRepeat, index), position2, backgroundImageSize, backgroundPositioningArea, backgroundPaintingArea);
48285
+ var path17 = calculateBackgroundRepeatPath(getBackgroundValueForIndex(container.styles.backgroundRepeat, index), position2, backgroundImageSize, backgroundPositioningArea, backgroundPaintingArea);
48286
48286
  var offsetX = Math.round(backgroundPositioningArea.left + position2[0]);
48287
48287
  var offsetY = Math.round(backgroundPositioningArea.top + position2[1]);
48288
- return [path16, offsetX, offsetY, sizeWidth, sizeHeight];
48288
+ return [path17, offsetX, offsetY, sizeWidth, sizeHeight];
48289
48289
  };
48290
48290
  var isAuto = function(token) {
48291
48291
  return isIdentToken(token) && token.value === BACKGROUND_SIZE.AUTO;
@@ -48666,8 +48666,8 @@ var require_html2canvas = __commonJS({
48666
48666
  CanvasRenderer2.prototype.renderReplacedElement = function(container, curves, image3) {
48667
48667
  if (image3 && container.intrinsicWidth > 0 && container.intrinsicHeight > 0) {
48668
48668
  var box = contentBox(container);
48669
- var path16 = calculatePaddingBoxPath(curves);
48670
- this.path(path16);
48669
+ var path17 = calculatePaddingBoxPath(curves);
48670
+ this.path(path17);
48671
48671
  this.ctx.save();
48672
48672
  this.ctx.clip();
48673
48673
  this.ctx.drawImage(image3, 0, 0, container.intrinsicWidth, container.intrinsicHeight, box.left, box.top, box.width, box.height);
@@ -49001,8 +49001,8 @@ var require_html2canvas = __commonJS({
49001
49001
  }
49002
49002
  });
49003
49003
  };
49004
- CanvasRenderer2.prototype.renderRepeat = function(path16, pattern, offsetX, offsetY) {
49005
- this.path(path16);
49004
+ CanvasRenderer2.prototype.renderRepeat = function(path17, pattern, offsetX, offsetY) {
49005
+ this.path(path17);
49006
49006
  this.ctx.fillStyle = pattern;
49007
49007
  this.ctx.translate(offsetX, offsetY);
49008
49008
  this.ctx.fill();
@@ -49029,7 +49029,7 @@ var require_html2canvas = __commonJS({
49029
49029
  case 0:
49030
49030
  index = container.styles.backgroundImage.length - 1;
49031
49031
  _loop_1 = function(backgroundImage3) {
49032
- var image3, url, _c, path16, x, y, width, height, pattern, _d, path16, x, y, width, height, _e, lineLength, x0, x1, y0, y1, canvas, ctx, gradient_1, pattern, _f, path16, left, top_1, width, height, position2, x, y, _g, rx, ry, radialGradient_1, midX, midY, f2, invF;
49032
+ var image3, url, _c, path17, x, y, width, height, pattern, _d, path17, x, y, width, height, _e, lineLength, x0, x1, y0, y1, canvas, ctx, gradient_1, pattern, _f, path17, left, top_1, width, height, position2, x, y, _g, rx, ry, radialGradient_1, midX, midY, f2, invF;
49033
49033
  return __generator2(this, function(_h) {
49034
49034
  switch (_h.label) {
49035
49035
  case 0:
@@ -49053,14 +49053,14 @@ var require_html2canvas = __commonJS({
49053
49053
  image3.width,
49054
49054
  image3.height,
49055
49055
  image3.width / image3.height
49056
- ]), path16 = _c[0], x = _c[1], y = _c[2], width = _c[3], height = _c[4];
49056
+ ]), path17 = _c[0], x = _c[1], y = _c[2], width = _c[3], height = _c[4];
49057
49057
  pattern = this_1.ctx.createPattern(this_1.resizeImage(image3, width, height), "repeat");
49058
- this_1.renderRepeat(path16, pattern, x, y);
49058
+ this_1.renderRepeat(path17, pattern, x, y);
49059
49059
  }
49060
49060
  return [3, 6];
49061
49061
  case 5:
49062
49062
  if (isLinearGradient(backgroundImage3)) {
49063
- _d = calculateBackgroundRendering(container, index, [null, null, null]), path16 = _d[0], x = _d[1], y = _d[2], width = _d[3], height = _d[4];
49063
+ _d = calculateBackgroundRendering(container, index, [null, null, null]), path17 = _d[0], x = _d[1], y = _d[2], width = _d[3], height = _d[4];
49064
49064
  _e = calculateGradientDirection(backgroundImage3.angle, width, height), lineLength = _e[0], x0 = _e[1], x1 = _e[2], y0 = _e[3], y1 = _e[4];
49065
49065
  canvas = document.createElement("canvas");
49066
49066
  canvas.width = width;
@@ -49074,14 +49074,14 @@ var require_html2canvas = __commonJS({
49074
49074
  ctx.fillRect(0, 0, width, height);
49075
49075
  if (width > 0 && height > 0) {
49076
49076
  pattern = this_1.ctx.createPattern(canvas, "repeat");
49077
- this_1.renderRepeat(path16, pattern, x, y);
49077
+ this_1.renderRepeat(path17, pattern, x, y);
49078
49078
  }
49079
49079
  } else if (isRadialGradient(backgroundImage3)) {
49080
49080
  _f = calculateBackgroundRendering(container, index, [
49081
49081
  null,
49082
49082
  null,
49083
49083
  null
49084
- ]), path16 = _f[0], left = _f[1], top_1 = _f[2], width = _f[3], height = _f[4];
49084
+ ]), path17 = _f[0], left = _f[1], top_1 = _f[2], width = _f[3], height = _f[4];
49085
49085
  position2 = backgroundImage3.position.length === 0 ? [FIFTY_PERCENT] : backgroundImage3.position;
49086
49086
  x = getAbsoluteValue(position2[0], width);
49087
49087
  y = getAbsoluteValue(position2[position2.length - 1], height);
@@ -49091,7 +49091,7 @@ var require_html2canvas = __commonJS({
49091
49091
  processColorStops(backgroundImage3.stops, rx * 2).forEach(function(colorStop) {
49092
49092
  return radialGradient_1.addColorStop(colorStop.stop, asString(colorStop.color));
49093
49093
  });
49094
- this_1.path(path16);
49094
+ this_1.path(path17);
49095
49095
  this_1.ctx.fillStyle = radialGradient_1;
49096
49096
  if (rx !== ry) {
49097
49097
  midX = container.bounds.left + 0.5 * container.bounds.width;
@@ -52739,7 +52739,7 @@ var require_es_promise_constructor = __commonJS({
52739
52739
  var IS_PURE = require_is_pure();
52740
52740
  var IS_NODE = require_environment_is_node();
52741
52741
  var globalThis2 = require_global_this();
52742
- var path16 = require_path();
52742
+ var path17 = require_path();
52743
52743
  var call = require_function_call();
52744
52744
  var defineBuiltIn = require_define_built_in();
52745
52745
  var setPrototypeOf = require_object_set_prototype_of();
@@ -52989,7 +52989,7 @@ var require_es_promise_constructor = __commonJS({
52989
52989
  $2({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
52990
52990
  Promise: PromiseConstructor
52991
52991
  });
52992
- PromiseWrapper = path16.Promise;
52992
+ PromiseWrapper = path17.Promise;
52993
52993
  setToStringTag(PromiseConstructor, PROMISE, false, true);
52994
52994
  setSpecies(PROMISE);
52995
52995
  }
@@ -56483,7 +56483,7 @@ var require_es_number_constructor = __commonJS({
56483
56483
  var IS_PURE = require_is_pure();
56484
56484
  var DESCRIPTORS = require_descriptors();
56485
56485
  var globalThis2 = require_global_this();
56486
- var path16 = require_path();
56486
+ var path17 = require_path();
56487
56487
  var uncurryThis = require_function_uncurry_this();
56488
56488
  var isForced = require_is_forced();
56489
56489
  var hasOwn = require_has_own_property();
@@ -56499,7 +56499,7 @@ var require_es_number_constructor = __commonJS({
56499
56499
  var trim = require_string_trim().trim;
56500
56500
  var NUMBER = "Number";
56501
56501
  var NativeNumber = globalThis2[NUMBER];
56502
- var PureNumberNamespace = path16[NUMBER];
56502
+ var PureNumberNamespace = path17[NUMBER];
56503
56503
  var NumberPrototype = NativeNumber.prototype;
56504
56504
  var TypeError2 = globalThis2.TypeError;
56505
56505
  var stringSlice = uncurryThis("".slice);
@@ -56571,8 +56571,8 @@ var require_es_number_constructor = __commonJS({
56571
56571
  }
56572
56572
  }
56573
56573
  };
56574
- if (IS_PURE && PureNumberNamespace) copyConstructorProperties(path16[NUMBER], PureNumberNamespace);
56575
- if (FORCED || IS_PURE) copyConstructorProperties(path16[NUMBER], NativeNumber);
56574
+ if (IS_PURE && PureNumberNamespace) copyConstructorProperties(path17[NUMBER], PureNumberNamespace);
56575
+ if (FORCED || IS_PURE) copyConstructorProperties(path17[NUMBER], NativeNumber);
56576
56576
  }
56577
56577
  });
56578
56578
 
@@ -58687,8 +58687,8 @@ var require_lib2 = __commonJS({
58687
58687
  }
58688
58688
  }, {
58689
58689
  key: "parsePath",
58690
- value: function parsePath(path16) {
58691
- var points = toNumbers(path16);
58690
+ value: function parsePath(path17) {
58691
+ var points = toNumbers(path17);
58692
58692
  var len = points.length;
58693
58693
  var pathPoints = [];
58694
58694
  for (var i = 0; i < len; i += 2) {
@@ -60189,10 +60189,10 @@ var require_lib2 = __commonJS({
60189
60189
  var PathParser = /* @__PURE__ */ (function(_SVGPathData) {
60190
60190
  _inherits__default["default"](PathParser2, _SVGPathData);
60191
60191
  var _super = _createSuper$I(PathParser2);
60192
- function PathParser2(path16) {
60192
+ function PathParser2(path17) {
60193
60193
  var _this;
60194
60194
  _classCallCheck__default["default"](this, PathParser2);
60195
- _this = _super.call(this, path16.replace(/([+\-.])\s+/gm, "$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g, ""));
60195
+ _this = _super.call(this, path17.replace(/([+\-.])\s+/gm, "$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g, ""));
60196
60196
  _this.control = null;
60197
60197
  _this.start = null;
60198
60198
  _this.current = null;
@@ -60520,7 +60520,7 @@ var require_lib2 = __commonJS({
60520
60520
  }
60521
60521
  _createClass__default["default"](PathElement2, [{
60522
60522
  key: "path",
60523
- value: function path16(ctx) {
60523
+ value: function path17(ctx) {
60524
60524
  var pathParser = this.pathParser;
60525
60525
  var boundingBox = new BoundingBox();
60526
60526
  pathParser.reset();
@@ -61644,7 +61644,7 @@ var require_lib2 = __commonJS({
61644
61644
  }
61645
61645
  _createClass__default["default"](RectElement2, [{
61646
61646
  key: "path",
61647
- value: function path16(ctx) {
61647
+ value: function path17(ctx) {
61648
61648
  var x = this.getAttribute("x").getPixels("x");
61649
61649
  var y = this.getAttribute("y").getPixels("y");
61650
61650
  var width = this.getStyle("width", false, true).getPixels("x");
@@ -61724,7 +61724,7 @@ var require_lib2 = __commonJS({
61724
61724
  }
61725
61725
  _createClass__default["default"](CircleElement2, [{
61726
61726
  key: "path",
61727
- value: function path16(ctx) {
61727
+ value: function path17(ctx) {
61728
61728
  var cx = this.getAttribute("cx").getPixels("x");
61729
61729
  var cy = this.getAttribute("cy").getPixels("y");
61730
61730
  var r = this.getAttribute("r").getPixels();
@@ -61780,7 +61780,7 @@ var require_lib2 = __commonJS({
61780
61780
  }
61781
61781
  _createClass__default["default"](EllipseElement2, [{
61782
61782
  key: "path",
61783
- value: function path16(ctx) {
61783
+ value: function path17(ctx) {
61784
61784
  var KAPPA = 4 * ((Math.sqrt(2) - 1) / 3);
61785
61785
  var rx = this.getAttribute("rx").getPixels("x");
61786
61786
  var ry = this.getAttribute("ry").getPixels("y");
@@ -61847,7 +61847,7 @@ var require_lib2 = __commonJS({
61847
61847
  }
61848
61848
  }, {
61849
61849
  key: "path",
61850
- value: function path16(ctx) {
61850
+ value: function path17(ctx) {
61851
61851
  var _this$getPoints = this.getPoints(), _this$getPoints2 = _slicedToArray__default["default"](_this$getPoints, 2), _this$getPoints2$ = _this$getPoints2[0], x0 = _this$getPoints2$.x, y0 = _this$getPoints2$.y, _this$getPoints2$2 = _this$getPoints2[1], x1 = _this$getPoints2$2.x, y1 = _this$getPoints2$2.y;
61852
61852
  if (ctx) {
61853
61853
  ctx.beginPath();
@@ -61905,7 +61905,7 @@ var require_lib2 = __commonJS({
61905
61905
  }
61906
61906
  _createClass__default["default"](PolylineElement2, [{
61907
61907
  key: "path",
61908
- value: function path16(ctx) {
61908
+ value: function path17(ctx) {
61909
61909
  var points = this.points;
61910
61910
  var _points = _slicedToArray__default["default"](points, 1), _points$ = _points[0], x0 = _points$.x, y0 = _points$.y;
61911
61911
  var boundingBox = new BoundingBox(x0, y0);
@@ -61979,7 +61979,7 @@ var require_lib2 = __commonJS({
61979
61979
  }
61980
61980
  _createClass__default["default"](PolygonElement2, [{
61981
61981
  key: "path",
61982
- value: function path16(ctx) {
61982
+ value: function path17(ctx) {
61983
61983
  var boundingBox = _get__default["default"](_getPrototypeOf__default["default"](PolygonElement2.prototype), "path", this).call(this, ctx);
61984
61984
  var _this$points = _slicedToArray__default["default"](this.points, 1), _this$points$ = _this$points[0], x = _this$points$.x, y = _this$points$.y;
61985
61985
  if (ctx) {
@@ -63230,7 +63230,7 @@ var require_lib2 = __commonJS({
63230
63230
  }
63231
63231
  }, {
63232
63232
  key: "path",
63233
- value: function path16(ctx) {
63233
+ value: function path17(ctx) {
63234
63234
  var dataArray = this.dataArray;
63235
63235
  if (ctx) {
63236
63236
  ctx.beginPath();
@@ -63259,7 +63259,7 @@ var require_lib2 = __commonJS({
63259
63259
  }
63260
63260
  break;
63261
63261
  case PathParser.ARC: {
63262
- var _points = _slicedToArray__default["default"](points, 8), cx = _points[0], cy = _points[1], rx = _points[2], ry = _points[3], theta = _points[4], dTheta = _points[5], psi = _points[6], fs16 = _points[7];
63262
+ var _points = _slicedToArray__default["default"](points, 8), cx = _points[0], cy = _points[1], rx = _points[2], ry = _points[3], theta = _points[4], dTheta = _points[5], psi = _points[6], fs17 = _points[7];
63263
63263
  var r = rx > ry ? rx : ry;
63264
63264
  var scaleX = rx > ry ? 1 : rx / ry;
63265
63265
  var scaleY = rx > ry ? ry / rx : 1;
@@ -63267,7 +63267,7 @@ var require_lib2 = __commonJS({
63267
63267
  ctx.translate(cx, cy);
63268
63268
  ctx.rotate(psi);
63269
63269
  ctx.scale(scaleX, scaleY);
63270
- ctx.arc(0, 0, r, theta, theta + dTheta, Boolean(1 - fs16));
63270
+ ctx.arc(0, 0, r, theta, theta + dTheta, Boolean(1 - fs17));
63271
63271
  ctx.scale(1 / scaleX, 1 / scaleY);
63272
63272
  ctx.rotate(-psi);
63273
63273
  ctx.translate(-cx, -cy);
@@ -63447,13 +63447,13 @@ var require_lib2 = __commonJS({
63447
63447
  }
63448
63448
  }, {
63449
63449
  key: "parsePathData",
63450
- value: function parsePathData(path16) {
63450
+ value: function parsePathData(path17) {
63451
63451
  this.pathLength = -1;
63452
- if (!path16) {
63452
+ if (!path17) {
63453
63453
  return [];
63454
63454
  }
63455
63455
  var pathCommands = [];
63456
- var pathParser = path16.pathParser;
63456
+ var pathParser = path17.pathParser;
63457
63457
  pathParser.reset();
63458
63458
  while (!pathParser.isEnd()) {
63459
63459
  var current = pathParser.current;
@@ -64259,7 +64259,7 @@ var require_lib2 = __commonJS({
64259
64259
  }
64260
64260
  }, {
64261
64261
  key: "path",
64262
- value: function path16(ctx) {
64262
+ value: function path17(ctx) {
64263
64263
  var element = this.element;
64264
64264
  if (element) {
64265
64265
  element.path(ctx);
@@ -75918,7 +75918,6 @@ function isTurnAbortedError(error) {
75918
75918
  var TURN_STOPPED_BY_USER_MESSAGE;
75919
75919
  var init_turnAbort = __esm({
75920
75920
  "features/perchTerminal/runtime/turnAbort.ts"() {
75921
- "use strict";
75922
75921
  TURN_STOPPED_BY_USER_MESSAGE = "Turn stopped by user.";
75923
75922
  }
75924
75923
  });
@@ -86341,14 +86340,14 @@ function extractOne(tc, ts) {
86341
86340
  }
86342
86341
  if (tc.toolName === "readLocalFile" || tc.toolName === "readLocalSourceFile") {
86343
86342
  const content = String(parsed?.content ?? tc.result ?? "").trim();
86344
- const path16 = String(tc.input?.path ?? "");
86343
+ const path17 = String(tc.input?.path ?? "");
86345
86344
  return {
86346
86345
  id: `ev-${tc.toolCallId}-fileread`,
86347
86346
  type: "fileRead",
86348
86347
  toolName: tc.toolName,
86349
- title: `readFile: ${path16 || "local file"}`,
86348
+ title: `readFile: ${path17 || "local file"}`,
86350
86349
  excerpt: truncate2(content, RICH_EXCERPT_CHARS),
86351
- workspacePath: path16 || null,
86350
+ workspacePath: path17 || null,
86352
86351
  timestamp: ts,
86353
86352
  ok: tc.ok
86354
86353
  };
@@ -86437,8 +86436,8 @@ function serializeThreadEvidenceForPrompt(items) {
86437
86436
  "The following tool results from prior turns are available for this turn. Treat them as already-completed work. Do not repeat searches, reads, drafts, or deliveries unless the user explicitly asks to redo them.",
86438
86437
  ...recent.map((item, idx) => {
86439
86438
  const status = item.ok ? "ok" : "failed";
86440
- const path16 = item.workspacePath ? ` path=${item.workspacePath}` : "";
86441
- return `[E${idx + 1}] ${item.type} via ${item.toolName} (${status}): ${item.title}${path16}
86439
+ const path17 = item.workspacePath ? ` path=${item.workspacePath}` : "";
86440
+ return `[E${idx + 1}] ${item.type} via ${item.toolName} (${status}): ${item.title}${path17}
86442
86441
  ${item.excerpt}`;
86443
86442
  })
86444
86443
  ].join("\n");
@@ -86723,6 +86722,7 @@ function truncateHistoryLine(value, max2) {
86723
86722
  }
86724
86723
  var init_operatorTruth = __esm({
86725
86724
  "features/perchTerminal/runtime/operatorTruth.ts"() {
86725
+ "use strict";
86726
86726
  }
86727
86727
  });
86728
86728
 
@@ -94656,13 +94656,13 @@ function __disposeResources(env4) {
94656
94656
  }
94657
94657
  return next();
94658
94658
  }
94659
- function __rewriteRelativeImportExtension(path16, preserveJsx) {
94660
- if (typeof path16 === "string" && /^\.\.?\//.test(path16)) {
94661
- return path16.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
94659
+ function __rewriteRelativeImportExtension(path17, preserveJsx) {
94660
+ if (typeof path17 === "string" && /^\.\.?\//.test(path17)) {
94661
+ return path17.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
94662
94662
  return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
94663
94663
  });
94664
94664
  }
94665
- return path16;
94665
+ return path17;
94666
94666
  }
94667
94667
  var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
94668
94668
  var init_tslib_es6 = __esm({
@@ -104184,8 +104184,8 @@ var require_main2 = __commonJS({
104184
104184
  });
104185
104185
 
104186
104186
  // node_modules/iceberg-js/dist/index.mjs
104187
- function buildUrl(baseUrl, path16, query) {
104188
- const url = new URL(path16, baseUrl);
104187
+ function buildUrl(baseUrl, path17, query) {
104188
+ const url = new URL(path17, baseUrl);
104189
104189
  if (query) {
104190
104190
  for (const [key, value] of Object.entries(query)) {
104191
104191
  if (value !== void 0) {
@@ -104215,12 +104215,12 @@ function createFetchClient(options) {
104215
104215
  return {
104216
104216
  async request({
104217
104217
  method,
104218
- path: path16,
104218
+ path: path17,
104219
104219
  query,
104220
104220
  body,
104221
104221
  headers
104222
104222
  }) {
104223
- const url = buildUrl(options.baseUrl, path16, query);
104223
+ const url = buildUrl(options.baseUrl, path17, query);
104224
104224
  const authHeaders = await buildAuthHeaders(options.auth);
104225
104225
  const res = await fetchFn(url, {
104226
104226
  method,
@@ -105118,7 +105118,7 @@ var init_dist3 = __esm({
105118
105118
  * @param path The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
105119
105119
  * @param fileBody The body of the file to be stored in the bucket.
105120
105120
  */
105121
- async uploadOrUpdate(method, path16, fileBody, fileOptions) {
105121
+ async uploadOrUpdate(method, path17, fileBody, fileOptions) {
105122
105122
  var _this = this;
105123
105123
  return _this.handleOperation(async () => {
105124
105124
  let body;
@@ -105142,7 +105142,7 @@ var init_dist3 = __esm({
105142
105142
  if ((typeof ReadableStream !== "undefined" && body instanceof ReadableStream || body && typeof body === "object" && "pipe" in body && typeof body.pipe === "function") && !options.duplex) options.duplex = "half";
105143
105143
  }
105144
105144
  if (fileOptions === null || fileOptions === void 0 ? void 0 : fileOptions.headers) for (const [key, value] of Object.entries(fileOptions.headers)) headers = setHeader(headers, key, value);
105145
- const cleanPath = _this._removeEmptyFolders(path16);
105145
+ const cleanPath = _this._removeEmptyFolders(path17);
105146
105146
  const _path = _this._getFinalPath(cleanPath);
105147
105147
  const data = await (method == "PUT" ? put : post)(_this.fetch, `${_this.url}/object/${_path}`, body, _objectSpread22({ headers }, (options === null || options === void 0 ? void 0 : options.duplex) ? { duplex: options.duplex } : {}));
105148
105148
  return {
@@ -105204,8 +105204,8 @@ var init_dist3 = __esm({
105204
105204
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
105205
105205
  * - For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Upload file using `ArrayBuffer` from base64 file data instead, see example below.
105206
105206
  */
105207
- async upload(path16, fileBody, fileOptions) {
105208
- return this.uploadOrUpdate("POST", path16, fileBody, fileOptions);
105207
+ async upload(path17, fileBody, fileOptions) {
105208
+ return this.uploadOrUpdate("POST", path17, fileBody, fileOptions);
105209
105209
  }
105210
105210
  /**
105211
105211
  * Upload a file with a token generated from `createSignedUploadUrl`.
@@ -105245,9 +105245,9 @@ var init_dist3 = __esm({
105245
105245
  * - `objects` table permissions: none
105246
105246
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
105247
105247
  */
105248
- async uploadToSignedUrl(path16, token, fileBody, fileOptions) {
105248
+ async uploadToSignedUrl(path17, token, fileBody, fileOptions) {
105249
105249
  var _this3 = this;
105250
- const cleanPath = _this3._removeEmptyFolders(path16);
105250
+ const cleanPath = _this3._removeEmptyFolders(path17);
105251
105251
  const _path = _this3._getFinalPath(cleanPath);
105252
105252
  const url = new URL(_this3.url + `/object/upload/sign/${_path}`);
105253
105253
  url.searchParams.set("token", token);
@@ -105316,10 +105316,10 @@ var init_dist3 = __esm({
105316
105316
  * - `objects` table permissions: `insert`
105317
105317
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
105318
105318
  */
105319
- async createSignedUploadUrl(path16, options) {
105319
+ async createSignedUploadUrl(path17, options) {
105320
105320
  var _this4 = this;
105321
105321
  return _this4.handleOperation(async () => {
105322
- let _path = _this4._getFinalPath(path16);
105322
+ let _path = _this4._getFinalPath(path17);
105323
105323
  const headers = _objectSpread22({}, _this4.headers);
105324
105324
  if (options === null || options === void 0 ? void 0 : options.upsert) headers["x-upsert"] = "true";
105325
105325
  const data = await post(_this4.fetch, `${_this4.url}/object/upload/sign/${_path}`, {}, { headers });
@@ -105328,7 +105328,7 @@ var init_dist3 = __esm({
105328
105328
  if (!token) throw new StorageError("No token returned by API");
105329
105329
  return {
105330
105330
  signedUrl: url.toString(),
105331
- path: path16,
105331
+ path: path17,
105332
105332
  token
105333
105333
  };
105334
105334
  });
@@ -105388,8 +105388,8 @@ var init_dist3 = __esm({
105388
105388
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
105389
105389
  * - For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Update file using `ArrayBuffer` from base64 file data instead, see example below.
105390
105390
  */
105391
- async update(path16, fileBody, fileOptions) {
105392
- return this.uploadOrUpdate("PUT", path16, fileBody, fileOptions);
105391
+ async update(path17, fileBody, fileOptions) {
105392
+ return this.uploadOrUpdate("PUT", path17, fileBody, fileOptions);
105393
105393
  }
105394
105394
  /**
105395
105395
  * Moves an existing file to a new path in the same bucket.
@@ -105540,10 +105540,10 @@ var init_dist3 = __esm({
105540
105540
  * - `objects` table permissions: `select`
105541
105541
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
105542
105542
  */
105543
- async createSignedUrl(path16, expiresIn, options) {
105543
+ async createSignedUrl(path17, expiresIn, options) {
105544
105544
  var _this8 = this;
105545
105545
  return _this8.handleOperation(async () => {
105546
- let _path = _this8._getFinalPath(path16);
105546
+ let _path = _this8._getFinalPath(path17);
105547
105547
  const hasTransform = typeof (options === null || options === void 0 ? void 0 : options.transform) === "object" && options.transform !== null && Object.keys(options.transform).length > 0;
105548
105548
  let data = await post(_this8.fetch, `${_this8.url}/object/sign/${_path}`, _objectSpread22({ expiresIn }, hasTransform ? { transform: options.transform } : {}), { headers: _this8.headers });
105549
105549
  const query = new URLSearchParams();
@@ -105679,13 +105679,13 @@ var init_dist3 = __esm({
105679
105679
  * - `objects` table permissions: `select`
105680
105680
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
105681
105681
  */
105682
- download(path16, options, parameters) {
105682
+ download(path17, options, parameters) {
105683
105683
  const renderPath = typeof (options === null || options === void 0 ? void 0 : options.transform) === "object" && options.transform !== null && Object.keys(options.transform).length > 0 ? "render/image/authenticated" : "object";
105684
105684
  const query = new URLSearchParams();
105685
105685
  if (options === null || options === void 0 ? void 0 : options.transform) this.applyTransformOptsToQuery(query, options.transform);
105686
105686
  if ((options === null || options === void 0 ? void 0 : options.cacheNonce) != null) query.set("cacheNonce", String(options.cacheNonce));
105687
105687
  const queryString = query.toString();
105688
- const _path = this._getFinalPath(path16);
105688
+ const _path = this._getFinalPath(path17);
105689
105689
  const downloadFn = () => get(this.fetch, `${this.url}/${renderPath}/${_path}${queryString ? `?${queryString}` : ""}`, {
105690
105690
  headers: this.headers,
105691
105691
  noResolveJson: true
@@ -105716,9 +105716,9 @@ var init_dist3 = __esm({
105716
105716
  * }
105717
105717
  * ```
105718
105718
  */
105719
- async info(path16) {
105719
+ async info(path17) {
105720
105720
  var _this10 = this;
105721
- const _path = _this10._getFinalPath(path16);
105721
+ const _path = _this10._getFinalPath(path17);
105722
105722
  return _this10.handleOperation(async () => {
105723
105723
  return recursiveToCamel(await get(_this10.fetch, `${_this10.url}/object/info/${_path}`, { headers: _this10.headers }));
105724
105724
  });
@@ -105739,9 +105739,9 @@ var init_dist3 = __esm({
105739
105739
  * .exists('folder/avatar1.png')
105740
105740
  * ```
105741
105741
  */
105742
- async exists(path16) {
105742
+ async exists(path17) {
105743
105743
  var _this11 = this;
105744
- const _path = _this11._getFinalPath(path16);
105744
+ const _path = _this11._getFinalPath(path17);
105745
105745
  try {
105746
105746
  await head(_this11.fetch, `${_this11.url}/object/${_path}`, { headers: _this11.headers });
105747
105747
  return {
@@ -105820,8 +105820,8 @@ var init_dist3 = __esm({
105820
105820
  * - `objects` table permissions: none
105821
105821
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
105822
105822
  */
105823
- getPublicUrl(path16, options) {
105824
- const _path = this._getFinalPath(path16);
105823
+ getPublicUrl(path17, options) {
105824
+ const _path = this._getFinalPath(path17);
105825
105825
  const query = new URLSearchParams();
105826
105826
  if (options === null || options === void 0 ? void 0 : options.download) query.set("download", options.download === true ? "" : options.download);
105827
105827
  if (options === null || options === void 0 ? void 0 : options.transform) this.applyTransformOptsToQuery(query, options.transform);
@@ -105960,10 +105960,10 @@ var init_dist3 = __esm({
105960
105960
  * - `objects` table permissions: `select`
105961
105961
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
105962
105962
  */
105963
- async list(path16, options, parameters) {
105963
+ async list(path17, options, parameters) {
105964
105964
  var _this13 = this;
105965
105965
  return _this13.handleOperation(async () => {
105966
- const body = _objectSpread22(_objectSpread22(_objectSpread22({}, DEFAULT_SEARCH_OPTIONS), options), {}, { prefix: path16 || "" });
105966
+ const body = _objectSpread22(_objectSpread22(_objectSpread22({}, DEFAULT_SEARCH_OPTIONS), options), {}, { prefix: path17 || "" });
105967
105967
  return await post(_this13.fetch, `${_this13.url}/object/list/${_this13.bucketId}`, body, { headers: _this13.headers }, parameters);
105968
105968
  });
105969
105969
  }
@@ -106028,11 +106028,11 @@ var init_dist3 = __esm({
106028
106028
  if (typeof Buffer !== "undefined") return Buffer.from(data).toString("base64");
106029
106029
  return btoa(data);
106030
106030
  }
106031
- _getFinalPath(path16) {
106032
- return `${this.bucketId}/${path16.replace(/^\/+/, "")}`;
106031
+ _getFinalPath(path17) {
106032
+ return `${this.bucketId}/${path17.replace(/^\/+/, "")}`;
106033
106033
  }
106034
- _removeEmptyFolders(path16) {
106035
- return path16.replace(/^\/|\/$/g, "").replace(/\/+/g, "/");
106034
+ _removeEmptyFolders(path17) {
106035
+ return path17.replace(/^\/|\/$/g, "").replace(/\/+/g, "/");
106036
106036
  }
106037
106037
  /** Modifies the `query`, appending values the from `transform` */
106038
106038
  applyTransformOptsToQuery(query, transform) {
@@ -117510,9 +117510,9 @@ function fetchClaudeCodeMessages(option, opts, model) {
117510
117510
  signal: providerAbort.signal
117511
117511
  }).finally(providerAbort.clear);
117512
117512
  }
117513
- function claudeCodeEndpoint(path16) {
117513
+ function claudeCodeEndpoint(path17) {
117514
117514
  const base = (envVar("CLAUDE_CODE_BASE_URL") ?? envVar("CLAUDE_CODE_BACKEND_BASE_URL") ?? "https://api.anthropic.com").replace(/\/$/, "");
117515
- const endpoint = base.endsWith(`/v1/${path16}`) || base.endsWith(`/${path16}`) ? base : `${base}/v1/${path16}`;
117515
+ const endpoint = base.endsWith(`/v1/${path17}`) || base.endsWith(`/${path17}`) ? base : `${base}/v1/${path17}`;
117516
117516
  const url = new URL(endpoint);
117517
117517
  url.searchParams.set("beta", "true");
117518
117518
  return url.toString();
@@ -117766,9 +117766,9 @@ function parseCodexToolCallItem(item, index) {
117766
117766
  rawArgumentsText
117767
117767
  };
117768
117768
  }
117769
- function codexEndpoint(path16) {
117769
+ function codexEndpoint(path17) {
117770
117770
  const base = (envVar("CODEX_BACKEND_BASE_URL") ?? envVar("CODEX_OAUTH_BASE_URL") ?? "https://chatgpt.com/backend-api/codex").replace(/\/$/, "");
117771
- const endpoint = base.endsWith(`/${path16}`) ? base : `${base}/${path16}`;
117771
+ const endpoint = base.endsWith(`/${path17}`) ? base : `${base}/${path17}`;
117772
117772
  const url = new URL(endpoint);
117773
117773
  url.searchParams.set("client_version", codexClientVersion());
117774
117774
  return url.toString();
@@ -125392,8 +125392,8 @@ var require_dist2 = __commonJS({
125392
125392
  return this.status === 419;
125393
125393
  }
125394
125394
  };
125395
- function buildUrl2(baseUrl, path16, query) {
125396
- const url = new URL(path16, baseUrl);
125395
+ function buildUrl2(baseUrl, path17, query) {
125396
+ const url = new URL(path17, baseUrl);
125397
125397
  if (query) {
125398
125398
  for (const [key, value] of Object.entries(query)) {
125399
125399
  if (value !== void 0) {
@@ -125423,12 +125423,12 @@ var require_dist2 = __commonJS({
125423
125423
  return {
125424
125424
  async request({
125425
125425
  method,
125426
- path: path16,
125426
+ path: path17,
125427
125427
  query,
125428
125428
  body,
125429
125429
  headers
125430
125430
  }) {
125431
- const url = buildUrl2(options.baseUrl, path16, query);
125431
+ const url = buildUrl2(options.baseUrl, path17, query);
125432
125432
  const authHeaders = await buildAuthHeaders2(options.auth);
125433
125433
  const res = await fetchFn(url, {
125434
125434
  method,
@@ -126369,7 +126369,7 @@ var require_dist3 = __commonJS({
126369
126369
  * @param path The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
126370
126370
  * @param fileBody The body of the file to be stored in the bucket.
126371
126371
  */
126372
- async uploadOrUpdate(method, path16, fileBody, fileOptions) {
126372
+ async uploadOrUpdate(method, path17, fileBody, fileOptions) {
126373
126373
  var _this = this;
126374
126374
  return _this.handleOperation(async () => {
126375
126375
  let body;
@@ -126393,7 +126393,7 @@ var require_dist3 = __commonJS({
126393
126393
  if ((typeof ReadableStream !== "undefined" && body instanceof ReadableStream || body && typeof body === "object" && "pipe" in body && typeof body.pipe === "function") && !options.duplex) options.duplex = "half";
126394
126394
  }
126395
126395
  if (fileOptions === null || fileOptions === void 0 ? void 0 : fileOptions.headers) for (const [key, value] of Object.entries(fileOptions.headers)) headers = setHeader2(headers, key, value);
126396
- const cleanPath = _this._removeEmptyFolders(path16);
126396
+ const cleanPath = _this._removeEmptyFolders(path17);
126397
126397
  const _path = _this._getFinalPath(cleanPath);
126398
126398
  const data = await (method == "PUT" ? put2 : post2)(_this.fetch, `${_this.url}/object/${_path}`, body, _objectSpread24({ headers }, (options === null || options === void 0 ? void 0 : options.duplex) ? { duplex: options.duplex } : {}));
126399
126399
  return {
@@ -126455,8 +126455,8 @@ var require_dist3 = __commonJS({
126455
126455
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
126456
126456
  * - For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Upload file using `ArrayBuffer` from base64 file data instead, see example below.
126457
126457
  */
126458
- async upload(path16, fileBody, fileOptions) {
126459
- return this.uploadOrUpdate("POST", path16, fileBody, fileOptions);
126458
+ async upload(path17, fileBody, fileOptions) {
126459
+ return this.uploadOrUpdate("POST", path17, fileBody, fileOptions);
126460
126460
  }
126461
126461
  /**
126462
126462
  * Upload a file with a token generated from `createSignedUploadUrl`.
@@ -126496,9 +126496,9 @@ var require_dist3 = __commonJS({
126496
126496
  * - `objects` table permissions: none
126497
126497
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
126498
126498
  */
126499
- async uploadToSignedUrl(path16, token, fileBody, fileOptions) {
126499
+ async uploadToSignedUrl(path17, token, fileBody, fileOptions) {
126500
126500
  var _this3 = this;
126501
- const cleanPath = _this3._removeEmptyFolders(path16);
126501
+ const cleanPath = _this3._removeEmptyFolders(path17);
126502
126502
  const _path = _this3._getFinalPath(cleanPath);
126503
126503
  const url = new URL(_this3.url + `/object/upload/sign/${_path}`);
126504
126504
  url.searchParams.set("token", token);
@@ -126567,10 +126567,10 @@ var require_dist3 = __commonJS({
126567
126567
  * - `objects` table permissions: `insert`
126568
126568
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
126569
126569
  */
126570
- async createSignedUploadUrl(path16, options) {
126570
+ async createSignedUploadUrl(path17, options) {
126571
126571
  var _this4 = this;
126572
126572
  return _this4.handleOperation(async () => {
126573
- let _path = _this4._getFinalPath(path16);
126573
+ let _path = _this4._getFinalPath(path17);
126574
126574
  const headers = _objectSpread24({}, _this4.headers);
126575
126575
  if (options === null || options === void 0 ? void 0 : options.upsert) headers["x-upsert"] = "true";
126576
126576
  const data = await post2(_this4.fetch, `${_this4.url}/object/upload/sign/${_path}`, {}, { headers });
@@ -126579,7 +126579,7 @@ var require_dist3 = __commonJS({
126579
126579
  if (!token) throw new StorageError2("No token returned by API");
126580
126580
  return {
126581
126581
  signedUrl: url.toString(),
126582
- path: path16,
126582
+ path: path17,
126583
126583
  token
126584
126584
  };
126585
126585
  });
@@ -126639,8 +126639,8 @@ var require_dist3 = __commonJS({
126639
126639
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
126640
126640
  * - For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Update file using `ArrayBuffer` from base64 file data instead, see example below.
126641
126641
  */
126642
- async update(path16, fileBody, fileOptions) {
126643
- return this.uploadOrUpdate("PUT", path16, fileBody, fileOptions);
126642
+ async update(path17, fileBody, fileOptions) {
126643
+ return this.uploadOrUpdate("PUT", path17, fileBody, fileOptions);
126644
126644
  }
126645
126645
  /**
126646
126646
  * Moves an existing file to a new path in the same bucket.
@@ -126791,10 +126791,10 @@ var require_dist3 = __commonJS({
126791
126791
  * - `objects` table permissions: `select`
126792
126792
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
126793
126793
  */
126794
- async createSignedUrl(path16, expiresIn, options) {
126794
+ async createSignedUrl(path17, expiresIn, options) {
126795
126795
  var _this8 = this;
126796
126796
  return _this8.handleOperation(async () => {
126797
- let _path = _this8._getFinalPath(path16);
126797
+ let _path = _this8._getFinalPath(path17);
126798
126798
  const hasTransform = typeof (options === null || options === void 0 ? void 0 : options.transform) === "object" && options.transform !== null && Object.keys(options.transform).length > 0;
126799
126799
  let data = await post2(_this8.fetch, `${_this8.url}/object/sign/${_path}`, _objectSpread24({ expiresIn }, hasTransform ? { transform: options.transform } : {}), { headers: _this8.headers });
126800
126800
  const query = new URLSearchParams();
@@ -126930,13 +126930,13 @@ var require_dist3 = __commonJS({
126930
126930
  * - `objects` table permissions: `select`
126931
126931
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
126932
126932
  */
126933
- download(path16, options, parameters) {
126933
+ download(path17, options, parameters) {
126934
126934
  const renderPath = typeof (options === null || options === void 0 ? void 0 : options.transform) === "object" && options.transform !== null && Object.keys(options.transform).length > 0 ? "render/image/authenticated" : "object";
126935
126935
  const query = new URLSearchParams();
126936
126936
  if (options === null || options === void 0 ? void 0 : options.transform) this.applyTransformOptsToQuery(query, options.transform);
126937
126937
  if ((options === null || options === void 0 ? void 0 : options.cacheNonce) != null) query.set("cacheNonce", String(options.cacheNonce));
126938
126938
  const queryString = query.toString();
126939
- const _path = this._getFinalPath(path16);
126939
+ const _path = this._getFinalPath(path17);
126940
126940
  const downloadFn = () => get3(this.fetch, `${this.url}/${renderPath}/${_path}${queryString ? `?${queryString}` : ""}`, {
126941
126941
  headers: this.headers,
126942
126942
  noResolveJson: true
@@ -126967,9 +126967,9 @@ var require_dist3 = __commonJS({
126967
126967
  * }
126968
126968
  * ```
126969
126969
  */
126970
- async info(path16) {
126970
+ async info(path17) {
126971
126971
  var _this10 = this;
126972
- const _path = _this10._getFinalPath(path16);
126972
+ const _path = _this10._getFinalPath(path17);
126973
126973
  return _this10.handleOperation(async () => {
126974
126974
  return recursiveToCamel2(await get3(_this10.fetch, `${_this10.url}/object/info/${_path}`, { headers: _this10.headers }));
126975
126975
  });
@@ -126990,9 +126990,9 @@ var require_dist3 = __commonJS({
126990
126990
  * .exists('folder/avatar1.png')
126991
126991
  * ```
126992
126992
  */
126993
- async exists(path16) {
126993
+ async exists(path17) {
126994
126994
  var _this11 = this;
126995
- const _path = _this11._getFinalPath(path16);
126995
+ const _path = _this11._getFinalPath(path17);
126996
126996
  try {
126997
126997
  await head2(_this11.fetch, `${_this11.url}/object/${_path}`, { headers: _this11.headers });
126998
126998
  return {
@@ -127071,8 +127071,8 @@ var require_dist3 = __commonJS({
127071
127071
  * - `objects` table permissions: none
127072
127072
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
127073
127073
  */
127074
- getPublicUrl(path16, options) {
127075
- const _path = this._getFinalPath(path16);
127074
+ getPublicUrl(path17, options) {
127075
+ const _path = this._getFinalPath(path17);
127076
127076
  const query = new URLSearchParams();
127077
127077
  if (options === null || options === void 0 ? void 0 : options.download) query.set("download", options.download === true ? "" : options.download);
127078
127078
  if (options === null || options === void 0 ? void 0 : options.transform) this.applyTransformOptsToQuery(query, options.transform);
@@ -127211,10 +127211,10 @@ var require_dist3 = __commonJS({
127211
127211
  * - `objects` table permissions: `select`
127212
127212
  * - Refer to the [Storage guide](/docs/guides/storage/security/access-control) on how access control works
127213
127213
  */
127214
- async list(path16, options, parameters) {
127214
+ async list(path17, options, parameters) {
127215
127215
  var _this13 = this;
127216
127216
  return _this13.handleOperation(async () => {
127217
- const body = _objectSpread24(_objectSpread24(_objectSpread24({}, DEFAULT_SEARCH_OPTIONS2), options), {}, { prefix: path16 || "" });
127217
+ const body = _objectSpread24(_objectSpread24(_objectSpread24({}, DEFAULT_SEARCH_OPTIONS2), options), {}, { prefix: path17 || "" });
127218
127218
  return await post2(_this13.fetch, `${_this13.url}/object/list/${_this13.bucketId}`, body, { headers: _this13.headers }, parameters);
127219
127219
  });
127220
127220
  }
@@ -127279,11 +127279,11 @@ var require_dist3 = __commonJS({
127279
127279
  if (typeof Buffer !== "undefined") return Buffer.from(data).toString("base64");
127280
127280
  return btoa(data);
127281
127281
  }
127282
- _getFinalPath(path16) {
127283
- return `${this.bucketId}/${path16.replace(/^\/+/, "")}`;
127282
+ _getFinalPath(path17) {
127283
+ return `${this.bucketId}/${path17.replace(/^\/+/, "")}`;
127284
127284
  }
127285
- _removeEmptyFolders(path16) {
127286
- return path16.replace(/^\/|\/$/g, "").replace(/\/+/g, "/");
127285
+ _removeEmptyFolders(path17) {
127286
+ return path17.replace(/^\/|\/$/g, "").replace(/\/+/g, "/");
127287
127287
  }
127288
127288
  /** Modifies the `query`, appending values the from `transform` */
127289
127289
  applyTransformOptsToQuery(query, transform) {
@@ -138317,11 +138317,11 @@ async function pickFolder(request) {
138317
138317
  if (result2.ok) notifyApprovedRootsChanged();
138318
138318
  return result2;
138319
138319
  }
138320
- async function approveFolderAccess(path16, options) {
138320
+ async function approveFolderAccess(path17, options) {
138321
138321
  const bridge = getDesktopBridge();
138322
138322
  if (!bridge) return { ok: false, error: LOCAL_WORKSPACE_ACCESS_UNAVAILABLE };
138323
138323
  const result2 = await bridge.approveFolderAccess({
138324
- path: path16,
138324
+ path: path17,
138325
138325
  permissionMode: currentPermissionMode(),
138326
138326
  grantedVia: options?.grantedVia ?? null
138327
138327
  });
@@ -138767,6 +138767,7 @@ function offSandboxEvent(runId, handler) {
138767
138767
  var LOCAL_WORKSPACE_ACCESS_UNAVAILABLE;
138768
138768
  var init_bridge = __esm({
138769
138769
  "features/perchTerminal/desktop/bridge.ts"() {
138770
+ "use strict";
138770
138771
  LOCAL_WORKSPACE_ACCESS_UNAVAILABLE = "Local workspace access is unavailable. Open Perch Desktop or update the app.";
138771
138772
  }
138772
138773
  });
@@ -139346,8 +139347,8 @@ function wrapReason(ex) {
139346
139347
  return new UnknownErrorException(ex.message, ex.toString());
139347
139348
  }
139348
139349
  async function node_utils_fetchData(url) {
139349
- const fs16 = process.getBuiltinModule("fs");
139350
- const data = await fs16.promises.readFile(url);
139350
+ const fs17 = process.getBuiltinModule("fs");
139351
+ const data = await fs17.promises.readFile(url);
139351
139352
  return new Uint8Array(data);
139352
139353
  }
139353
139354
  function applyBoundingBox(ctx, bbox) {
@@ -139748,7 +139749,7 @@ function compileType3Glyph(imgData) {
139748
139749
  return null;
139749
139750
  }
139750
139751
  const steps = new Int32Array([0, width1, -1, 0, -width1, 0, 0, 0, 1]);
139751
- const path16 = new Path2D();
139752
+ const path17 = new Path2D();
139752
139753
  for (i = 0; count && i <= height; i++) {
139753
139754
  let p = i * width1;
139754
139755
  const end = p + width;
@@ -139758,7 +139759,7 @@ function compileType3Glyph(imgData) {
139758
139759
  if (p === end) {
139759
139760
  continue;
139760
139761
  }
139761
- path16.moveTo(p % width1, i);
139762
+ path17.moveTo(p % width1, i);
139762
139763
  const p0 = p;
139763
139764
  let type = points[p];
139764
139765
  do {
@@ -139774,7 +139775,7 @@ function compileType3Glyph(imgData) {
139774
139775
  type = pp & 51 * type >> 4;
139775
139776
  points[p] &= type >> 2 | type << 2;
139776
139777
  }
139777
- path16.lineTo(p % width1, p / width1 | 0);
139778
+ path17.lineTo(p % width1, p / width1 | 0);
139778
139779
  if (!points[p]) {
139779
139780
  --count;
139780
139781
  }
@@ -139787,7 +139788,7 @@ function compileType3Glyph(imgData) {
139787
139788
  c.save();
139788
139789
  c.scale(1 / width, -1 / height);
139789
139790
  c.translate(0, -height);
139790
- c.fill(path16);
139791
+ c.fill(path17);
139791
139792
  c.beginPath();
139792
139793
  c.restore();
139793
139794
  };
@@ -149374,11 +149375,11 @@ var init_pdf = __esm({
149374
149375
  } catch (ex) {
149375
149376
  warn(`getPathGenerator - ignoring character: "${ex}".`);
149376
149377
  }
149377
- const path16 = new Path2D(cmds || "");
149378
+ const path17 = new Path2D(cmds || "");
149378
149379
  if (!this.fontExtraProperties) {
149379
149380
  objs.delete(objId);
149380
149381
  }
149381
- return this.compiledGlyphs[character] = path16;
149382
+ return this.compiledGlyphs[character] = path17;
149382
149383
  }
149383
149384
  };
149384
149385
  CallbackKind = {
@@ -151389,9 +151390,9 @@ var init_pdf = __esm({
151389
151390
  x,
151390
151391
  y,
151391
151392
  fontSize,
151392
- path: path16
151393
+ path: path17
151393
151394
  } of paths) {
151394
- newPath.addPath(path16, new DOMMatrix(transform).preMultiplySelf(invTransf).translate(x, y).scale(fontSize, -fontSize));
151395
+ newPath.addPath(path17, new DOMMatrix(transform).preMultiplySelf(invTransf).translate(x, y).scale(fontSize, -fontSize));
151395
151396
  }
151396
151397
  ctx.clip(newPath);
151397
151398
  ctx.beginPath();
@@ -151471,9 +151472,9 @@ var init_pdf = __esm({
151471
151472
  nextLine() {
151472
151473
  this.moveText(0, this.current.leading);
151473
151474
  }
151474
- #getScaledPath(path16, currentTransform, transform) {
151475
+ #getScaledPath(path17, currentTransform, transform) {
151475
151476
  const newPath = new Path2D();
151476
- newPath.addPath(path16, new DOMMatrix(transform).invertSelf().multiplySelf(currentTransform));
151477
+ newPath.addPath(path17, new DOMMatrix(transform).invertSelf().multiplySelf(currentTransform));
151477
151478
  return newPath;
151478
151479
  }
151479
151480
  paintChar(character, x, y, patternFillTransform, patternStrokeTransform) {
@@ -151486,9 +151487,9 @@ var init_pdf = __esm({
151486
151487
  const isAddToPathSet = !!(textRenderingMode & TextRenderingMode.ADD_TO_PATH_FLAG);
151487
151488
  const patternFill = current.patternFill && !font.missingFile;
151488
151489
  const patternStroke = current.patternStroke && !font.missingFile;
151489
- let path16;
151490
+ let path17;
151490
151491
  if (font.disableFontFace || isAddToPathSet || patternFill || patternStroke) {
151491
- path16 = font.getPathGenerator(this.commonObjs, character);
151492
+ path17 = font.getPathGenerator(this.commonObjs, character);
151492
151493
  }
151493
151494
  if (font.disableFontFace || patternFill || patternStroke) {
151494
151495
  ctx.save();
@@ -151498,19 +151499,19 @@ var init_pdf = __esm({
151498
151499
  if (patternFillTransform) {
151499
151500
  const currentTransform = ctx.getTransform();
151500
151501
  ctx.setTransform(...patternFillTransform);
151501
- ctx.fill(this.#getScaledPath(path16, currentTransform, patternFillTransform));
151502
+ ctx.fill(this.#getScaledPath(path17, currentTransform, patternFillTransform));
151502
151503
  } else {
151503
- ctx.fill(path16);
151504
+ ctx.fill(path17);
151504
151505
  }
151505
151506
  }
151506
151507
  if (fillStrokeMode === TextRenderingMode.STROKE || fillStrokeMode === TextRenderingMode.FILL_STROKE) {
151507
151508
  if (patternStrokeTransform) {
151508
151509
  const currentTransform = ctx.getTransform();
151509
151510
  ctx.setTransform(...patternStrokeTransform);
151510
- ctx.stroke(this.#getScaledPath(path16, currentTransform, patternStrokeTransform));
151511
+ ctx.stroke(this.#getScaledPath(path17, currentTransform, patternStrokeTransform));
151511
151512
  } else {
151512
151513
  ctx.lineWidth /= fontSize;
151513
- ctx.stroke(path16);
151514
+ ctx.stroke(path17);
151514
151515
  }
151515
151516
  }
151516
151517
  ctx.restore();
@@ -151529,7 +151530,7 @@ var init_pdf = __esm({
151529
151530
  x,
151530
151531
  y,
151531
151532
  fontSize,
151532
- path: path16
151533
+ path: path17
151533
151534
  });
151534
151535
  }
151535
151536
  }
@@ -153544,10 +153545,10 @@ var init_pdf = __esm({
153544
153545
  this._readableStream = null;
153545
153546
  this._readCapability = Promise.withResolvers();
153546
153547
  this._headersCapability = Promise.withResolvers();
153547
- const fs16 = process.getBuiltinModule("fs");
153548
- fs16.promises.lstat(this._url).then((stat2) => {
153548
+ const fs17 = process.getBuiltinModule("fs");
153549
+ fs17.promises.lstat(this._url).then((stat2) => {
153549
153550
  this._contentLength = stat2.size;
153550
- this._setReadableStream(fs16.createReadStream(this._url));
153551
+ this._setReadableStream(fs17.createReadStream(this._url));
153551
153552
  this._headersCapability.resolve();
153552
153553
  }, (error) => {
153553
153554
  if (error.code === "ENOENT") {
@@ -153642,8 +153643,8 @@ var init_pdf = __esm({
153642
153643
  this._readCapability = Promise.withResolvers();
153643
153644
  const source = stream.source;
153644
153645
  this._isStreamingSupported = !source.disableStream;
153645
- const fs16 = process.getBuiltinModule("fs");
153646
- this._setReadableStream(fs16.createReadStream(this._url, {
153646
+ const fs17 = process.getBuiltinModule("fs");
153647
+ this._setReadableStream(fs17.createReadStream(this._url, {
153647
153648
  start,
153648
153649
  end: end - 1
153649
153650
  }));
@@ -163867,13 +163868,13 @@ var init_pdf = __esm({
163867
163868
  const root2 = this.#createSVG();
163868
163869
  const defs = _DrawLayer._svgFactory.createElement("defs");
163869
163870
  root2.append(defs);
163870
- const path16 = _DrawLayer._svgFactory.createElement("path");
163871
- defs.append(path16);
163871
+ const path17 = _DrawLayer._svgFactory.createElement("path");
163872
+ defs.append(path17);
163872
163873
  const pathId = `path_p${this.pageIndex}_${id}`;
163873
- path16.setAttribute("id", pathId);
163874
- path16.setAttribute("vector-effect", "non-scaling-stroke");
163874
+ path17.setAttribute("id", pathId);
163875
+ path17.setAttribute("vector-effect", "non-scaling-stroke");
163875
163876
  if (isPathUpdatable) {
163876
- this.#toUpdate.set(id, path16);
163877
+ this.#toUpdate.set(id, path17);
163877
163878
  }
163878
163879
  const clipPathId = hasClip ? this.#createClipPath(defs, pathId) : null;
163879
163880
  const use = _DrawLayer._svgFactory.createElement("use");
@@ -163891,11 +163892,11 @@ var init_pdf = __esm({
163891
163892
  const root2 = this.#createSVG();
163892
163893
  const defs = _DrawLayer._svgFactory.createElement("defs");
163893
163894
  root2.append(defs);
163894
- const path16 = _DrawLayer._svgFactory.createElement("path");
163895
- defs.append(path16);
163895
+ const path17 = _DrawLayer._svgFactory.createElement("path");
163896
+ defs.append(path17);
163896
163897
  const pathId = `path_p${this.pageIndex}_${id}`;
163897
- path16.setAttribute("id", pathId);
163898
- path16.setAttribute("vector-effect", "non-scaling-stroke");
163898
+ path17.setAttribute("id", pathId);
163899
+ path17.setAttribute("vector-effect", "non-scaling-stroke");
163899
163900
  let maskId;
163900
163901
  if (mustRemoveSelfIntersections) {
163901
163902
  const mask = _DrawLayer._svgFactory.createElement("mask");
@@ -163942,7 +163943,7 @@ var init_pdf = __esm({
163942
163943
  root: root2,
163943
163944
  bbox,
163944
163945
  rootClass,
163945
- path: path16
163946
+ path: path17
163946
163947
  } = properties;
163947
163948
  const element = typeof elementOrId === "number" ? this.#mapping.get(elementOrId) : elementOrId;
163948
163949
  if (!element) {
@@ -163962,10 +163963,10 @@ var init_pdf = __esm({
163962
163963
  classList.toggle(className, value);
163963
163964
  }
163964
163965
  }
163965
- if (path16) {
163966
+ if (path17) {
163966
163967
  const defs = element.firstChild;
163967
163968
  const pathElement = defs.firstChild;
163968
- this.#updateProperties(pathElement, path16);
163969
+ this.#updateProperties(pathElement, path17);
163969
163970
  }
163970
163971
  }
163971
163972
  updateParent(id, layer) {
@@ -164922,8 +164923,8 @@ var init_tap = __esm({
164922
164923
  });
164923
164924
 
164924
164925
  // node_modules/underscore/modules/toPath.js
164925
- function toPath(path16) {
164926
- return isArray_default(path16) ? path16 : [path16];
164926
+ function toPath(path17) {
164927
+ return isArray_default(path17) ? path17 : [path17];
164927
164928
  }
164928
164929
  var init_toPath = __esm({
164929
164930
  "node_modules/underscore/modules/toPath.js"() {
@@ -164934,8 +164935,8 @@ var init_toPath = __esm({
164934
164935
  });
164935
164936
 
164936
164937
  // node_modules/underscore/modules/_toPath.js
164937
- function toPath2(path16) {
164938
- return _.toPath(path16);
164938
+ function toPath2(path17) {
164939
+ return _.toPath(path17);
164939
164940
  }
164940
164941
  var init_toPath2 = __esm({
164941
164942
  "node_modules/underscore/modules/_toPath.js"() {
@@ -164945,11 +164946,11 @@ var init_toPath2 = __esm({
164945
164946
  });
164946
164947
 
164947
164948
  // node_modules/underscore/modules/_deepGet.js
164948
- function deepGet(obj2, path16) {
164949
- var length = path16.length;
164949
+ function deepGet(obj2, path17) {
164950
+ var length = path17.length;
164950
164951
  for (var i = 0; i < length; i++) {
164951
164952
  if (obj2 == null) return void 0;
164952
- obj2 = obj2[path16[i]];
164953
+ obj2 = obj2[path17[i]];
164953
164954
  }
164954
164955
  return length ? obj2 : void 0;
164955
164956
  }
@@ -164959,8 +164960,8 @@ var init_deepGet = __esm({
164959
164960
  });
164960
164961
 
164961
164962
  // node_modules/underscore/modules/get.js
164962
- function get2(object2, path16, defaultValue) {
164963
- var value = deepGet(object2, toPath2(path16));
164963
+ function get2(object2, path17, defaultValue) {
164964
+ var value = deepGet(object2, toPath2(path17));
164964
164965
  return isUndefined(value) ? defaultValue : value;
164965
164966
  }
164966
164967
  var init_get = __esm({
@@ -164972,11 +164973,11 @@ var init_get = __esm({
164972
164973
  });
164973
164974
 
164974
164975
  // node_modules/underscore/modules/has.js
164975
- function has2(obj2, path16) {
164976
- path16 = toPath2(path16);
164977
- var length = path16.length;
164976
+ function has2(obj2, path17) {
164977
+ path17 = toPath2(path17);
164978
+ var length = path17.length;
164978
164979
  for (var i = 0; i < length; i++) {
164979
- var key = path16[i];
164980
+ var key = path17[i];
164980
164981
  if (!has(obj2, key)) return false;
164981
164982
  obj2 = obj2[key];
164982
164983
  }
@@ -165013,10 +165014,10 @@ var init_matcher = __esm({
165013
165014
  });
165014
165015
 
165015
165016
  // node_modules/underscore/modules/property.js
165016
- function property(path16) {
165017
- path16 = toPath2(path16);
165017
+ function property(path17) {
165018
+ path17 = toPath2(path17);
165018
165019
  return function(obj2) {
165019
- return deepGet(obj2, path16);
165020
+ return deepGet(obj2, path17);
165020
165021
  };
165021
165022
  }
165022
165023
  var init_property = __esm({
@@ -165125,8 +165126,8 @@ var init_noop = __esm({
165125
165126
  // node_modules/underscore/modules/propertyOf.js
165126
165127
  function propertyOf(obj2) {
165127
165128
  if (obj2 == null) return noop;
165128
- return function(path16) {
165129
- return get2(obj2, path16);
165129
+ return function(path17) {
165130
+ return get2(obj2, path17);
165130
165131
  };
165131
165132
  }
165132
165133
  var init_propertyOf = __esm({
@@ -165320,14 +165321,14 @@ var init_template = __esm({
165320
165321
  });
165321
165322
 
165322
165323
  // node_modules/underscore/modules/result.js
165323
- function result(obj2, path16, fallback) {
165324
- path16 = toPath2(path16);
165325
- var length = path16.length;
165324
+ function result(obj2, path17, fallback) {
165325
+ path17 = toPath2(path17);
165326
+ var length = path17.length;
165326
165327
  if (!length) {
165327
165328
  return isFunction_default(fallback) ? fallback.call(obj2) : fallback;
165328
165329
  }
165329
165330
  for (var i = 0; i < length; i++) {
165330
- var prop = obj2 == null ? void 0 : obj2[path16[i]];
165331
+ var prop = obj2 == null ? void 0 : obj2[path17[i]];
165331
165332
  if (prop === void 0) {
165332
165333
  prop = fallback;
165333
165334
  i = length;
@@ -166010,14 +166011,14 @@ var init_invoke = __esm({
166010
166011
  init_map();
166011
166012
  init_deepGet();
166012
166013
  init_toPath2();
166013
- invoke_default = restArguments(function(obj2, path16, args) {
166014
+ invoke_default = restArguments(function(obj2, path17, args) {
166014
166015
  var contextPath, func;
166015
- if (isFunction_default(path16)) {
166016
- func = path16;
166016
+ if (isFunction_default(path17)) {
166017
+ func = path17;
166017
166018
  } else {
166018
- path16 = toPath2(path16);
166019
- contextPath = path16.slice(0, -1);
166020
- path16 = path16[path16.length - 1];
166019
+ path17 = toPath2(path17);
166020
+ contextPath = path17.slice(0, -1);
166021
+ path17 = path17[path17.length - 1];
166021
166022
  }
166022
166023
  return map(obj2, function(context) {
166023
166024
  var method = func;
@@ -166026,7 +166027,7 @@ var init_invoke = __esm({
166026
166027
  context = deepGet(context, contextPath);
166027
166028
  }
166028
166029
  if (context == null) return void 0;
166029
- method = context[path16];
166030
+ method = context[path17];
166030
166031
  }
166031
166032
  return method == null ? method : method.apply(context, args);
166032
166033
  });
@@ -175492,8 +175493,8 @@ var require_utils2 = __commonJS({
175492
175493
  var result2 = transform[inputType][outputType](input);
175493
175494
  return result2;
175494
175495
  };
175495
- exports2.resolve = function(path16) {
175496
- var parts = path16.split("/");
175496
+ exports2.resolve = function(path17) {
175497
+ var parts = path17.split("/");
175497
175498
  var result2 = [];
175498
175499
  for (var index = 0; index < parts.length; index++) {
175499
175500
  var part = parts[index];
@@ -181346,18 +181347,18 @@ var require_object = __commonJS({
181346
181347
  var object2 = new ZipObject(name, zipObjectContent, o);
181347
181348
  this.files[name] = object2;
181348
181349
  };
181349
- var parentFolder = function(path16) {
181350
- if (path16.slice(-1) === "/") {
181351
- path16 = path16.substring(0, path16.length - 1);
181350
+ var parentFolder = function(path17) {
181351
+ if (path17.slice(-1) === "/") {
181352
+ path17 = path17.substring(0, path17.length - 1);
181352
181353
  }
181353
- var lastSlash = path16.lastIndexOf("/");
181354
- return lastSlash > 0 ? path16.substring(0, lastSlash) : "";
181354
+ var lastSlash = path17.lastIndexOf("/");
181355
+ return lastSlash > 0 ? path17.substring(0, lastSlash) : "";
181355
181356
  };
181356
- var forceTrailingSlash = function(path16) {
181357
- if (path16.slice(-1) !== "/") {
181358
- path16 += "/";
181357
+ var forceTrailingSlash = function(path17) {
181358
+ if (path17.slice(-1) !== "/") {
181359
+ path17 += "/";
181359
181360
  }
181360
- return path16;
181361
+ return path17;
181361
181362
  };
181362
181363
  var folderAdd = function(name, createFolders) {
181363
181364
  createFolders = typeof createFolders !== "undefined" ? createFolders : defaults.createFolders;
@@ -182395,27 +182396,27 @@ var require_zipfile = __commonJS({
182395
182396
  };
182396
182397
  });
182397
182398
  }
182398
- function splitPath(path16) {
182399
- var lastIndex = path16.lastIndexOf("/");
182399
+ function splitPath(path17) {
182400
+ var lastIndex = path17.lastIndexOf("/");
182400
182401
  if (lastIndex === -1) {
182401
- return { dirname: "", basename: path16 };
182402
+ return { dirname: "", basename: path17 };
182402
182403
  } else {
182403
182404
  return {
182404
- dirname: path16.substring(0, lastIndex),
182405
- basename: path16.substring(lastIndex + 1)
182405
+ dirname: path17.substring(0, lastIndex),
182406
+ basename: path17.substring(lastIndex + 1)
182406
182407
  };
182407
182408
  }
182408
182409
  }
182409
182410
  function joinPath() {
182410
- var nonEmptyPaths = Array.prototype.filter.call(arguments, function(path16) {
182411
- return path16;
182411
+ var nonEmptyPaths = Array.prototype.filter.call(arguments, function(path17) {
182412
+ return path17;
182412
182413
  });
182413
182414
  var relevantPaths = [];
182414
- nonEmptyPaths.forEach(function(path16) {
182415
- if (/^\//.test(path16)) {
182416
- relevantPaths = [path16];
182415
+ nonEmptyPaths.forEach(function(path17) {
182416
+ if (/^\//.test(path17)) {
182417
+ relevantPaths = [path17];
182417
182418
  } else {
182418
- relevantPaths.push(path16);
182419
+ relevantPaths.push(path17);
182419
182420
  }
182420
182421
  });
182421
182422
  return relevantPaths.join("/");
@@ -189807,9 +189808,9 @@ var require_office_xml_reader = __commonJS({
189807
189808
  return collapseAlternateContent(document2)[0];
189808
189809
  });
189809
189810
  }
189810
- function readXmlFromZipFile(docxFile, path16) {
189811
- if (docxFile.exists(path16)) {
189812
- return docxFile.read(path16, "utf-8").then(stripUtf8Bom).then(read);
189811
+ function readXmlFromZipFile(docxFile, path17) {
189812
+ if (docxFile.exists(path17)) {
189813
+ return docxFile.read(path17, "utf-8").then(stripUtf8Bom).then(read);
189813
189814
  } else {
189814
189815
  return promises.resolve(null);
189815
189816
  }
@@ -191573,10 +191574,10 @@ var require_body_reader = __commonJS({
191573
191574
  }
191574
191575
  }
191575
191576
  function findEmbeddedImageFile(relationshipId) {
191576
- var path16 = uris.uriToZipEntryName("word", relationships.findTargetByRelationshipId(relationshipId));
191577
+ var path17 = uris.uriToZipEntryName("word", relationships.findTargetByRelationshipId(relationshipId));
191577
191578
  return {
191578
- path: path16,
191579
- read: docxFile.read.bind(docxFile, path16)
191579
+ path: path17,
191580
+ read: docxFile.read.bind(docxFile, path17)
191580
191581
  };
191581
191582
  }
191582
191583
  function readImage(imageFile, altText) {
@@ -191813,12 +191814,12 @@ var require_content_types_reader = __commonJS({
191813
191814
  }
191814
191815
  function contentTypes(overrides, extensionDefaults) {
191815
191816
  return {
191816
- findContentType: function(path16) {
191817
- var overrideContentType = overrides[path16];
191817
+ findContentType: function(path17) {
191818
+ var overrideContentType = overrides[path17];
191818
191819
  if (overrideContentType) {
191819
191820
  return overrideContentType;
191820
191821
  } else {
191821
- var pathParts = path16.split(".");
191822
+ var pathParts = path17.split(".");
191822
191823
  var extension2 = pathParts[pathParts.length - 1];
191823
191824
  if (extensionDefaults.hasOwnProperty(extension2)) {
191824
191825
  return extensionDefaults[extension2];
@@ -192061,12 +192062,12 @@ var require_comments_reader = __commonJS({
192061
192062
  var require_path_is_absolute = __commonJS({
192062
192063
  "node_modules/path-is-absolute/index.js"(exports2, module2) {
192063
192064
  "use strict";
192064
- function posix(path16) {
192065
- return path16.charAt(0) === "/";
192065
+ function posix(path17) {
192066
+ return path17.charAt(0) === "/";
192066
192067
  }
192067
- function win32(path16) {
192068
+ function win32(path17) {
192068
192069
  var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
192069
- var result2 = splitDeviceRe.exec(path16);
192070
+ var result2 = splitDeviceRe.exec(path17);
192070
192071
  var device = result2[1] || "";
192071
192072
  var isUnc = Boolean(device && device.charAt(1) !== ":");
192072
192073
  return Boolean(result2[2] || isUnc);
@@ -192080,9 +192081,9 @@ var require_path_is_absolute = __commonJS({
192080
192081
  // node_modules/mammoth/lib/docx/files.js
192081
192082
  var require_files = __commonJS({
192082
192083
  "node_modules/mammoth/lib/docx/files.js"(exports2) {
192083
- var fs16 = __require("fs");
192084
+ var fs17 = __require("fs");
192084
192085
  var url = __require("url");
192085
- var os7 = __require("os");
192086
+ var os8 = __require("os");
192086
192087
  var dirname2 = __require("path").dirname;
192087
192088
  var resolvePath2 = __require("path").resolve;
192088
192089
  var isAbsolutePath2 = require_path_is_absolute();
@@ -192100,19 +192101,19 @@ var require_files = __commonJS({
192100
192101
  }
192101
192102
  var base = options.relativeToFile ? dirname2(options.relativeToFile) : null;
192102
192103
  function read(uri, encoding) {
192103
- return resolveUri(uri).then(function(path16) {
192104
- return readFile4(path16, encoding).caught(function(error) {
192104
+ return resolveUri(uri).then(function(path17) {
192105
+ return readFile4(path17, encoding).caught(function(error) {
192105
192106
  var message = "could not open external image: '" + uri + "' (document directory: '" + base + "')\n" + error.message;
192106
192107
  return promises.reject(new Error(message));
192107
192108
  });
192108
192109
  });
192109
192110
  }
192110
192111
  function resolveUri(uri) {
192111
- var path16 = uriToPath(uri);
192112
- if (isAbsolutePath2(path16)) {
192113
- return promises.resolve(path16);
192112
+ var path17 = uriToPath(uri);
192113
+ if (isAbsolutePath2(path17)) {
192114
+ return promises.resolve(path17);
192114
192115
  } else if (base) {
192115
- return promises.resolve(resolvePath2(base, path16));
192116
+ return promises.resolve(resolvePath2(base, path17));
192116
192117
  } else {
192117
192118
  return promises.reject(new Error("could not find external image '" + uri + "', path of input document is unknown"));
192118
192119
  }
@@ -192121,18 +192122,18 @@ var require_files = __commonJS({
192121
192122
  read
192122
192123
  };
192123
192124
  }
192124
- var readFile4 = promises.promisify(fs16.readFile.bind(fs16));
192125
+ var readFile4 = promises.promisify(fs17.readFile.bind(fs17));
192125
192126
  function uriToPath(uriString, platform3) {
192126
192127
  if (!platform3) {
192127
- platform3 = os7.platform();
192128
+ platform3 = os8.platform();
192128
192129
  }
192129
192130
  var uri = url.parse(uriString);
192130
192131
  if (isLocalFileUri(uri) || isRelativeUri(uri)) {
192131
- var path16 = decodeURIComponent(uri.path);
192132
- if (platform3 === "win32" && /^\/[a-z]:/i.test(path16)) {
192133
- return path16.slice(1);
192132
+ var path17 = decodeURIComponent(uri.path);
192133
+ if (platform3 === "win32" && /^\/[a-z]:/i.test(path17)) {
192134
+ return path17.slice(1);
192134
192135
  } else {
192135
- return path16;
192136
+ return path17;
192136
192137
  }
192137
192138
  } else {
192138
192139
  throw new Error("Could not convert URI to path: " + uriString);
@@ -192332,18 +192333,18 @@ var require_docx_reader = __commonJS({
192332
192333
  readElement: contentTypesReader.readContentTypesFromXml,
192333
192334
  defaultValue: contentTypesReader.defaultContentTypes
192334
192335
  });
192335
- function readNumberingFromZipFile(zipFile, path16, styles6) {
192336
+ function readNumberingFromZipFile(zipFile, path17, styles6) {
192336
192337
  return xmlFileReader({
192337
- filename: path16,
192338
+ filename: path17,
192338
192339
  readElement: function(element) {
192339
192340
  return numberingXml.readNumberingXml(element, { styles: styles6 });
192340
192341
  },
192341
192342
  defaultValue: numberingXml.defaultNumbering
192342
192343
  })(zipFile);
192343
192344
  }
192344
- function readStylesFromZipFile(zipFile, path16) {
192345
+ function readStylesFromZipFile(zipFile, path17) {
192345
192346
  return xmlFileReader({
192346
- filename: path16,
192347
+ filename: path17,
192347
192348
  readElement: stylesReader.readStylesXml,
192348
192349
  defaultValue: stylesReader.defaultStyles
192349
192350
  })(zipFile);
@@ -192374,10 +192375,10 @@ var require_style_map = __commonJS({
192374
192375
  });
192375
192376
  }
192376
192377
  function updateRelationships(docxFile) {
192377
- var path16 = "word/_rels/document.xml.rels";
192378
+ var path17 = "word/_rels/document.xml.rels";
192378
192379
  var relationshipsUri = "http://schemas.openxmlformats.org/package/2006/relationships";
192379
192380
  var relationshipElementName = "{" + relationshipsUri + "}Relationship";
192380
- return docxFile.read(path16, "utf8").then(xml.readString).then(function(relationshipsContainer) {
192381
+ return docxFile.read(path17, "utf8").then(xml.readString).then(function(relationshipsContainer) {
192381
192382
  var relationships = relationshipsContainer.children;
192382
192383
  addOrUpdateElement(relationships, relationshipElementName, "Id", {
192383
192384
  "Id": "rMammothStyleMap",
@@ -192385,21 +192386,21 @@ var require_style_map = __commonJS({
192385
192386
  "Target": styleMapAbsolutePath
192386
192387
  });
192387
192388
  var namespaces = { "": relationshipsUri };
192388
- return docxFile.write(path16, xml.writeString(relationshipsContainer, namespaces));
192389
+ return docxFile.write(path17, xml.writeString(relationshipsContainer, namespaces));
192389
192390
  });
192390
192391
  }
192391
192392
  function updateContentTypes(docxFile) {
192392
- var path16 = "[Content_Types].xml";
192393
+ var path17 = "[Content_Types].xml";
192393
192394
  var contentTypesUri = "http://schemas.openxmlformats.org/package/2006/content-types";
192394
192395
  var overrideName = "{" + contentTypesUri + "}Override";
192395
- return docxFile.read(path16, "utf8").then(xml.readString).then(function(typesElement) {
192396
+ return docxFile.read(path17, "utf8").then(xml.readString).then(function(typesElement) {
192396
192397
  var children = typesElement.children;
192397
192398
  addOrUpdateElement(children, overrideName, "PartName", {
192398
192399
  "PartName": styleMapAbsolutePath,
192399
192400
  "ContentType": "text/prs.mammoth.style-map"
192400
192401
  });
192401
192402
  var namespaces = { "": contentTypesUri };
192402
- return docxFile.write(path16, xml.writeString(typesElement, namespaces));
192403
+ return docxFile.write(path17, xml.writeString(typesElement, namespaces));
192403
192404
  });
192404
192405
  }
192405
192406
  function addOrUpdateElement(elements, name, identifyingAttribute, attributes) {
@@ -193087,9 +193088,9 @@ var require_document_to_html = __commonJS({
193087
193088
  };
193088
193089
  var paths = [];
193089
193090
  if (run.highlight !== null) {
193090
- var path16 = findHtmlPath({ type: "highlight", color: run.highlight });
193091
- if (path16) {
193092
- paths.push(path16);
193091
+ var path17 = findHtmlPath({ type: "highlight", color: run.highlight });
193092
+ if (path17) {
193093
+ paths.push(path17);
193093
193094
  }
193094
193095
  }
193095
193096
  if (run.isSmallCaps) {
@@ -193124,15 +193125,15 @@ var require_document_to_html = __commonJS({
193124
193125
  messages.push(unrecognisedStyleWarning("run", run));
193125
193126
  }
193126
193127
  paths.push(stylePath);
193127
- paths.forEach(function(path17) {
193128
- nodes = path17.wrap.bind(path17, nodes);
193128
+ paths.forEach(function(path18) {
193129
+ nodes = path18.wrap.bind(path18, nodes);
193129
193130
  });
193130
193131
  return nodes();
193131
193132
  }
193132
193133
  function findHtmlPathForRunProperty(elementType, defaultTagName) {
193133
- var path16 = findHtmlPath({ type: elementType });
193134
- if (path16) {
193135
- return path16;
193134
+ var path17 = findHtmlPath({ type: elementType });
193135
+ if (path17) {
193136
+ return path17;
193136
193137
  } else if (defaultTagName) {
193137
193138
  return htmlPaths.element(defaultTagName, {}, { fresh: false });
193138
193139
  } else {
@@ -194834,11 +194835,11 @@ var require_options_reader = __commonJS({
194834
194835
  // node_modules/mammoth/lib/unzip.js
194835
194836
  var require_unzip = __commonJS({
194836
194837
  "node_modules/mammoth/lib/unzip.js"(exports2) {
194837
- var fs16 = __require("fs");
194838
+ var fs17 = __require("fs");
194838
194839
  var promises = require_promises();
194839
194840
  var zipfile = require_zipfile();
194840
194841
  exports2.openZip = openZip;
194841
- var readFile4 = promises.promisify(fs16.readFile);
194842
+ var readFile4 = promises.promisify(fs17.readFile);
194842
194843
  function openZip(options) {
194843
194844
  if (options.path) {
194844
194845
  return readFile4(options.path).then(zipfile.openArrayBuffer);
@@ -195556,8 +195557,8 @@ function decodeBase64ToBuffer(value) {
195556
195557
  function fileNameFromLocalId(localSourceId) {
195557
195558
  const sep = localSourceId.lastIndexOf("::");
195558
195559
  if (sep >= 0) {
195559
- const path16 = localSourceId.slice(sep + 2);
195560
- return path16.split("/").pop() ?? path16;
195560
+ const path17 = localSourceId.slice(sep + 2);
195561
+ return path17.split("/").pop() ?? path17;
195561
195562
  }
195562
195563
  return localSourceId;
195563
195564
  }
@@ -195926,7 +195927,7 @@ function normalizeInputPath(pathValue) {
195926
195927
  }
195927
195928
  function expandHomePath(pathValue, roots) {
195928
195929
  if (!pathValue?.startsWith("~/")) return pathValue;
195929
- const homePrefix = roots.map((root2) => root2.path.replace(/\\/g, "/")).find((path16) => /^\/Users\/[^/]+/.test(path16))?.match(/^\/Users\/[^/]+/)?.[0];
195930
+ const homePrefix = roots.map((root2) => root2.path.replace(/\\/g, "/")).find((path17) => /^\/Users\/[^/]+/.test(path17))?.match(/^\/Users\/[^/]+/)?.[0];
195930
195931
  return homePrefix ? `${homePrefix}${pathValue.slice(1)}` : pathValue;
195931
195932
  }
195932
195933
  function normalizeRelativePath(pathValue) {
@@ -207212,62 +207213,62 @@ var init_initPacks = __esm({
207212
207213
  });
207213
207214
 
207214
207215
  // lib/perchManagedAgents/runtime.ts
207215
- function validateJsonSchema(value, schema, path16 = "") {
207216
+ function validateJsonSchema(value, schema, path17 = "") {
207216
207217
  const errors = [];
207217
207218
  if (schema.type === "object" && value != null && typeof value === "object" && !Array.isArray(value)) {
207218
207219
  const obj2 = value;
207219
207220
  if (schema.required) {
207220
207221
  for (const key of schema.required) {
207221
- if (!(key in obj2)) errors.push(`${path16 || "root"}: missing required field "${key}"`);
207222
+ if (!(key in obj2)) errors.push(`${path17 || "root"}: missing required field "${key}"`);
207222
207223
  }
207223
207224
  }
207224
207225
  if (schema.additionalProperties === false && schema.properties) {
207225
207226
  const allowed = new Set(Object.keys(schema.properties));
207226
207227
  for (const key of Object.keys(obj2)) {
207227
- if (!allowed.has(key)) errors.push(`${path16 || "root"}: unexpected field "${key}"`);
207228
+ if (!allowed.has(key)) errors.push(`${path17 || "root"}: unexpected field "${key}"`);
207228
207229
  }
207229
207230
  }
207230
207231
  if (schema.properties) {
207231
207232
  for (const [key, subSchema] of Object.entries(schema.properties)) {
207232
207233
  if (key in obj2) {
207233
- errors.push(...validateJsonSchema(obj2[key], subSchema, `${path16}.${key}`));
207234
+ errors.push(...validateJsonSchema(obj2[key], subSchema, `${path17}.${key}`));
207234
207235
  }
207235
207236
  }
207236
207237
  }
207237
207238
  } else if (schema.type === "array" && Array.isArray(value)) {
207238
207239
  if (schema.maxItems != null && value.length > schema.maxItems) {
207239
- errors.push(`${path16 || "root"}: array exceeds maxItems (${value.length} > ${schema.maxItems})`);
207240
+ errors.push(`${path17 || "root"}: array exceeds maxItems (${value.length} > ${schema.maxItems})`);
207240
207241
  }
207241
207242
  if (schema.items) {
207242
207243
  for (let i = 0; i < Math.min(value.length, 10); i += 1) {
207243
- errors.push(...validateJsonSchema(value[i], schema.items, `${path16}[${i}]`));
207244
+ errors.push(...validateJsonSchema(value[i], schema.items, `${path17}[${i}]`));
207244
207245
  }
207245
207246
  }
207246
207247
  } else if (schema.type === "string" && typeof value === "string") {
207247
207248
  if (schema.maxLength != null && value.length > schema.maxLength) {
207248
- errors.push(`${path16 || "root"}: string exceeds maxLength (${value.length} > ${schema.maxLength})`);
207249
+ errors.push(`${path17 || "root"}: string exceeds maxLength (${value.length} > ${schema.maxLength})`);
207249
207250
  }
207250
207251
  if (schema.pattern) {
207251
207252
  try {
207252
207253
  if (!new RegExp(schema.pattern).test(value)) {
207253
- errors.push(`${path16 || "root"}: string does not match pattern "${schema.pattern}"`);
207254
+ errors.push(`${path17 || "root"}: string does not match pattern "${schema.pattern}"`);
207254
207255
  }
207255
207256
  } catch {
207256
207257
  }
207257
207258
  }
207258
207259
  } else if (schema.type === "number" && typeof value !== "number") {
207259
- errors.push(`${path16 || "root"}: expected number, got ${typeof value}`);
207260
+ errors.push(`${path17 || "root"}: expected number, got ${typeof value}`);
207260
207261
  } else if (schema.type === "boolean" && typeof value !== "boolean") {
207261
- errors.push(`${path16 || "root"}: expected boolean, got ${typeof value}`);
207262
+ errors.push(`${path17 || "root"}: expected boolean, got ${typeof value}`);
207262
207263
  } else if (schema.type === "string" && typeof value !== "string" && value != null) {
207263
- errors.push(`${path16 || "root"}: expected string, got ${typeof value}`);
207264
+ errors.push(`${path17 || "root"}: expected string, got ${typeof value}`);
207264
207265
  } else if (schema.type === "object" && (value == null || typeof value !== "object" || Array.isArray(value))) {
207265
- if (value != null) errors.push(`${path16 || "root"}: expected object, got ${typeof value}`);
207266
+ if (value != null) errors.push(`${path17 || "root"}: expected object, got ${typeof value}`);
207266
207267
  } else if (schema.type === "array" && !Array.isArray(value) && value != null) {
207267
- errors.push(`${path16 || "root"}: expected array, got ${typeof value}`);
207268
+ errors.push(`${path17 || "root"}: expected array, got ${typeof value}`);
207268
207269
  }
207269
207270
  if (schema.enum && !schema.enum.includes(value)) {
207270
- errors.push(`${path16 || "root"}: value not in enum [${schema.enum.join(", ")}]`);
207271
+ errors.push(`${path17 || "root"}: value not in enum [${schema.enum.join(", ")}]`);
207271
207272
  }
207272
207273
  return errors;
207273
207274
  }
@@ -211626,12 +211627,12 @@ var init_fileSystem = __esm({
211626
211627
  classification: { native: false },
211627
211628
  handler: async (args, ctx) => {
211628
211629
  const pattern = args.pattern ? String(args.pattern) : void 0;
211629
- const path16 = args.path ? String(args.path) : void 0;
211630
+ const path17 = args.path ? String(args.path) : void 0;
211630
211631
  const maxResults = typeof args.maxResults === "number" ? args.maxResults : void 0;
211631
211632
  return listWorkspaceFilesGlob({
211632
211633
  workspaceRoot: effectiveWorkspaceRoot(ctx),
211633
211634
  pattern,
211634
- path: path16,
211635
+ path: path17,
211635
211636
  maxResults,
211636
211637
  fsAccessOverride: ctx.fsAccessOverride
211637
211638
  });
@@ -211642,14 +211643,14 @@ var init_fileSystem = __esm({
211642
211643
  classification: { native: false },
211643
211644
  handler: async (args, ctx) => {
211644
211645
  const query = String(args.query ?? "");
211645
- const path16 = args.path ? String(args.path) : void 0;
211646
+ const path17 = args.path ? String(args.path) : void 0;
211646
211647
  const include = args.include ? String(args.include) : void 0;
211647
211648
  const caseSensitive = typeof args.caseSensitive === "boolean" ? args.caseSensitive : void 0;
211648
211649
  const maxResults = typeof args.maxResults === "number" ? args.maxResults : void 0;
211649
211650
  return searchWorkspaceFilesGrep({
211650
211651
  workspaceRoot: effectiveWorkspaceRoot(ctx),
211651
211652
  query,
211652
- path: path16,
211653
+ path: path17,
211653
211654
  include,
211654
211655
  caseSensitive,
211655
211656
  maxResults,
@@ -211712,24 +211713,24 @@ var init_fileSystem = __esm({
211712
211713
  name: TOOL_NAMES.createDirectory,
211713
211714
  classification: { native: false },
211714
211715
  handler: async (args, ctx) => {
211715
- const path16 = String(args.path ?? "");
211716
- return createDirectory({ path: resolveWorkspacePath(ctx, path16), fsAccessOverride: ctx.fsAccessOverride });
211716
+ const path17 = String(args.path ?? "");
211717
+ return createDirectory({ path: resolveWorkspacePath(ctx, path17), fsAccessOverride: ctx.fsAccessOverride });
211717
211718
  }
211718
211719
  };
211719
211720
  deleteLocalFileTool = {
211720
211721
  name: TOOL_NAMES.deleteLocalFile,
211721
211722
  classification: { native: false },
211722
211723
  handler: async (args, ctx) => {
211723
- const path16 = String(args.path ?? "");
211724
- return deleteLocalFile({ path: resolveWorkspacePath(ctx, path16), fsAccessOverride: ctx.fsAccessOverride });
211724
+ const path17 = String(args.path ?? "");
211725
+ return deleteLocalFile({ path: resolveWorkspacePath(ctx, path17), fsAccessOverride: ctx.fsAccessOverride });
211725
211726
  }
211726
211727
  };
211727
211728
  printFileTool = {
211728
211729
  name: TOOL_NAMES.printFile,
211729
211730
  classification: { native: false },
211730
211731
  handler: async (args, ctx) => {
211731
- const path16 = String(args.path ?? "");
211732
- return printFile({ path: resolveWorkspacePath(ctx, path16), fsAccessOverride: ctx.fsAccessOverride });
211732
+ const path17 = String(args.path ?? "");
211733
+ return printFile({ path: resolveWorkspacePath(ctx, path17), fsAccessOverride: ctx.fsAccessOverride });
211733
211734
  }
211734
211735
  };
211735
211736
  statPathTool = {
@@ -215049,11 +215050,11 @@ function extractEvidenceFromToolResult(input) {
215049
215050
  const createdAt = (/* @__PURE__ */ new Date()).toISOString();
215050
215051
  const result2 = input.result;
215051
215052
  if (input.toolName === TOOL_NAMES.readLocalFile) {
215052
- const path16 = stringValue6(result2.relativePath);
215053
+ const path17 = stringValue6(result2.relativePath);
215053
215054
  return [{
215054
215055
  source: input.toolName,
215055
- title: path16 ? `Read ${path16}` : "Read local file",
215056
- path: path16,
215056
+ title: path17 ? `Read ${path17}` : "Read local file",
215057
+ path: path17,
215057
215058
  snippet: stringValue6(result2.content)?.slice(0, 500),
215058
215059
  metadata: pickMetadata(result2, ["sizeBytes", "executionHost"]),
215059
215060
  createdAt
@@ -215114,11 +215115,11 @@ function extractEvidenceFromToolResult(input) {
215114
215115
  }];
215115
215116
  }
215116
215117
  if (input.toolName === TOOL_NAMES.statPath) {
215117
- const path16 = stringValue6(result2.relativePath);
215118
+ const path17 = stringValue6(result2.relativePath);
215118
215119
  return [{
215119
215120
  source: input.toolName,
215120
- title: path16 ? `Stat ${path16}` : "Path metadata",
215121
- path: path16,
215121
+ title: path17 ? `Stat ${path17}` : "Path metadata",
215122
+ path: path17,
215122
215123
  summary: summarizeStat(result2),
215123
215124
  metadata: pickMetadata(result2, ["exists", "isFile", "isDirectory", "sizeBytes", "modifiedAt", "executionHost"]),
215124
215125
  createdAt
@@ -217685,8 +217686,8 @@ function sourceReadFamilyForToolCall(toolName, args) {
217685
217686
  }
217686
217687
  }
217687
217688
  if (toolName === TOOL_NAMES.readLocalFile) {
217688
- const path16 = typeof record.path === "string" ? record.path.trim() : "";
217689
- return path16 ? `${toolName}:${path16}` : null;
217689
+ const path17 = typeof record.path === "string" ? record.path.trim() : "";
217690
+ return path17 ? `${toolName}:${path17}` : null;
217690
217691
  }
217691
217692
  if (toolName === TOOL_NAMES.readLocalSourceFile) {
217692
217693
  const source = typeof record.localSourceId === "string" ? record.localSourceId.trim() : typeof record.sourceId === "string" ? record.sourceId.trim() : typeof record.path === "string" ? record.path.trim() : "";
@@ -218368,13 +218369,13 @@ function extractProviderReasoning(value) {
218368
218369
  fields: Array.from(new Set(fields))
218369
218370
  };
218370
218371
  }
218371
- function visit(value, path16, chunks, fields, seen) {
218372
+ function visit(value, path17, chunks, fields, seen) {
218372
218373
  if (!value || typeof value !== "object") return;
218373
218374
  if (seen.has(value)) return;
218374
218375
  seen.add(value);
218375
218376
  if (Array.isArray(value)) {
218376
218377
  value.forEach(
218377
- (item, index) => visit(item, `${path16}[${index}]`, chunks, fields, seen)
218378
+ (item, index) => visit(item, `${path17}[${index}]`, chunks, fields, seen)
218378
218379
  );
218379
218380
  return;
218380
218381
  }
@@ -218383,23 +218384,23 @@ function visit(value, path16, chunks, fields, seen) {
218383
218384
  const maybe = obj2[key];
218384
218385
  if (typeof maybe === "string" && maybe.trim()) {
218385
218386
  chunks.push(maybe);
218386
- fields.push(`${path16}.${key}`);
218387
+ fields.push(`${path17}.${key}`);
218387
218388
  }
218388
218389
  }
218389
218390
  const type = typeof obj2.type === "string" ? obj2.type.toLowerCase() : "";
218390
218391
  if ((type === "thinking" || type === "reasoning") && typeof obj2.content === "string" && obj2.content.trim()) {
218391
218392
  chunks.push(obj2.content);
218392
- fields.push(`${path16}.content[type=${type}]`);
218393
+ fields.push(`${path17}.content[type=${type}]`);
218393
218394
  }
218394
218395
  if ((type === "thinking" || type === "reasoning") && typeof obj2.text === "string" && obj2.text.trim()) {
218395
218396
  chunks.push(obj2.text);
218396
- fields.push(`${path16}.text[type=${type}]`);
218397
+ fields.push(`${path17}.text[type=${type}]`);
218397
218398
  }
218398
218399
  for (const [key, child] of Object.entries(obj2)) {
218399
218400
  if (key.toLowerCase().includes("api") || key.toLowerCase().includes("authorization"))
218400
218401
  continue;
218401
218402
  if (typeof child === "object" && child !== null)
218402
- visit(child, `${path16}.${key}`, chunks, fields, seen);
218403
+ visit(child, `${path17}.${key}`, chunks, fields, seen);
218403
218404
  }
218404
218405
  }
218405
218406
  var REASONING_KEYS;
@@ -227510,8 +227511,8 @@ async function resolveLocalSelectedSourceBundleForTurn(input) {
227510
227511
  function extractFileNameFromId(localSourceId) {
227511
227512
  const sep = localSourceId.lastIndexOf("::");
227512
227513
  if (sep >= 0) {
227513
- const path16 = localSourceId.slice(sep + 2);
227514
- return path16.split("/").pop() ?? path16;
227514
+ const path17 = localSourceId.slice(sep + 2);
227515
+ return path17.split("/").pop() ?? path17;
227515
227516
  }
227516
227517
  return localSourceId;
227517
227518
  }
@@ -230731,7 +230732,7 @@ function buildSeatbeltProfile(workspaceRoot) {
230731
230732
  home,
230732
230733
  "/Users/Shared",
230733
230734
  "/Volumes"
230734
- ])).map((path16) => `(subpath ${seatbeltString(path16)})`).join("\n ");
230735
+ ])).map((path17) => `(subpath ${seatbeltString(path17)})`).join("\n ");
230735
230736
  return `
230736
230737
  (version 1)
230737
230738
  (allow default)
@@ -233203,6 +233204,79 @@ var init_cliUpdateCheck = __esm({
233203
233204
  }
233204
233205
  });
233205
233206
 
233207
+ // features/perchTerminal/runtime/cliHost/cliAnalytics.ts
233208
+ import { randomUUID as randomUUID2 } from "node:crypto";
233209
+ import fs13 from "node:fs";
233210
+ import os4 from "node:os";
233211
+ import path15 from "node:path";
233212
+ function stateDir() {
233213
+ return process.env.PERCH_CLI_TELEMETRY_DIR?.trim() || path15.join(os4.homedir(), ".perch");
233214
+ }
233215
+ function telemetryDisabled(env4 = process.env) {
233216
+ return Boolean(env4.CI || env4.PERCH_NO_TELEMETRY || env4.DO_NOT_TRACK);
233217
+ }
233218
+ function resolveMachineId(dir = stateDir()) {
233219
+ const file = path15.join(dir, "machine-id");
233220
+ try {
233221
+ const existing = fs13.readFileSync(file, "utf8").trim();
233222
+ if (existing) return existing;
233223
+ } catch {
233224
+ }
233225
+ const id = randomUUID2();
233226
+ try {
233227
+ fs13.mkdirSync(dir, { recursive: true });
233228
+ fs13.writeFileSync(file, id);
233229
+ } catch {
233230
+ }
233231
+ return id;
233232
+ }
233233
+ function claimFirstRun(dir = stateDir()) {
233234
+ const file = path15.join(dir, "cli-first-run");
233235
+ try {
233236
+ if (fs13.existsSync(file)) return false;
233237
+ fs13.mkdirSync(dir, { recursive: true });
233238
+ fs13.writeFileSync(file, (/* @__PURE__ */ new Date()).toISOString());
233239
+ return true;
233240
+ } catch {
233241
+ return false;
233242
+ }
233243
+ }
233244
+ async function postCapture(event, properties) {
233245
+ const controller = new AbortController();
233246
+ const timer = setTimeout(() => controller.abort(), FETCH_TIMEOUT_MS2);
233247
+ if (typeof timer.unref === "function") timer.unref();
233248
+ try {
233249
+ await fetch(`${POSTHOG_HOST.replace(/\/$/, "")}/i/v0/e/`, {
233250
+ method: "POST",
233251
+ signal: controller.signal,
233252
+ headers: { "content-type": "application/json" },
233253
+ body: JSON.stringify({
233254
+ api_key: POSTHOG_KEY,
233255
+ event,
233256
+ distinct_id: resolveMachineId(),
233257
+ properties: { ...properties, $lib: "perch-cli" }
233258
+ })
233259
+ });
233260
+ } catch {
233261
+ } finally {
233262
+ clearTimeout(timer);
233263
+ }
233264
+ }
233265
+ function captureCliFirstRun(version4) {
233266
+ if (!POSTHOG_KEY || telemetryDisabled()) return;
233267
+ if (!claimFirstRun()) return;
233268
+ void postCapture("cli_first_run", { version: version4, platform: process.platform });
233269
+ }
233270
+ var POSTHOG_KEY, POSTHOG_HOST, FETCH_TIMEOUT_MS2;
233271
+ var init_cliAnalytics = __esm({
233272
+ "features/perchTerminal/runtime/cliHost/cliAnalytics.ts"() {
233273
+ "use strict";
233274
+ POSTHOG_KEY = ""?.trim() || "";
233275
+ POSTHOG_HOST = "https://us.i.posthog.com"?.trim() || "https://us.i.posthog.com";
233276
+ FETCH_TIMEOUT_MS2 = 2500;
233277
+ }
233278
+ });
233279
+
233206
233280
  // node_modules/react/cjs/react.production.js
233207
233281
  var require_react_production = __commonJS({
233208
233282
  "node_modules/react/cjs/react.production.js"(exports2) {
@@ -234814,7 +234888,7 @@ __export(base_exports, {
234814
234888
  synchronizedOutput: () => synchronizedOutput
234815
234889
  });
234816
234890
  import process2 from "node:process";
234817
- import os4 from "node:os";
234891
+ import os5 from "node:os";
234818
234892
  var ESC, OSC, BEL, SEP, isTerminalApp, isWindows2, isTmux, cwdFunction, wrapOsc, cursorTo, cursorMove, cursorUp, cursorDown, cursorForward, cursorBackward, cursorLeft, cursorSavePosition, cursorRestorePosition, cursorGetPosition, cursorNextLine, cursorPrevLine, cursorHide, cursorShow, eraseLines, eraseEndLine, eraseStartLine, eraseLine, eraseDown, eraseUp, eraseScreen, scrollUp, scrollDown, clearScreen, clearViewport, isOldWindows, clearTerminal, enterAlternativeScreen, exitAlternativeScreen, beginSynchronizedOutput, endSynchronizedOutput, synchronizedOutput, beep, link, image, iTerm, ConEmu, setCwd;
234819
234893
  var init_base = __esm({
234820
234894
  "node_modules/ansi-escapes/base.js"() {
@@ -234897,7 +234971,7 @@ var init_base = __esm({
234897
234971
  if (isBrowser || !isWindows2) {
234898
234972
  return false;
234899
234973
  }
234900
- const parts = os4.release().split(".");
234974
+ const parts = os5.release().split(".");
234901
234975
  const major = Number(parts[0]);
234902
234976
  const build2 = Number(parts[2] ?? 0);
234903
234977
  if (major < 10) {
@@ -237421,7 +237495,7 @@ var init_wrap_ansi = __esm({
237421
237495
  // node_modules/terminal-size/index.js
237422
237496
  import process3 from "node:process";
237423
237497
  import { execFileSync } from "node:child_process";
237424
- import fs13 from "node:fs";
237498
+ import fs14 from "node:fs";
237425
237499
  import tty from "node:tty";
237426
237500
  function terminalSize() {
237427
237501
  const { env: env4, stdout, stderr } = process3;
@@ -237477,7 +237551,7 @@ var init_terminal_size = __esm({
237477
237551
  return true;
237478
237552
  }
237479
237553
  try {
237480
- const statContents = fs13.readFileSync("/proc/self/stat", "utf8");
237554
+ const statContents = fs14.readFileSync("/proc/self/stat", "utf8");
237481
237555
  const closingParenthesisIndex = statContents.lastIndexOf(") ");
237482
237556
  if (closingParenthesisIndex === -1) {
237483
237557
  return false;
@@ -237498,8 +237572,8 @@ var init_terminal_size = __esm({
237498
237572
  };
237499
237573
  devTty = () => {
237500
237574
  try {
237501
- const flags = process3.platform === "darwin" ? fs13.constants.O_EVTONLY | fs13.constants.O_NONBLOCK : fs13.constants.O_NONBLOCK;
237502
- const { columns, rows } = tty.WriteStream(fs13.openSync("/dev/tty", flags));
237575
+ const flags = process3.platform === "darwin" ? fs14.constants.O_EVTONLY | fs14.constants.O_NONBLOCK : fs14.constants.O_NONBLOCK;
237576
+ const { columns, rows } = tty.WriteStream(fs14.openSync("/dev/tty", flags));
237503
237577
  return { columns, rows };
237504
237578
  } catch {
237505
237579
  }
@@ -246271,10 +246345,10 @@ var require_react_reconciler_development = __commonJS({
246271
246345
  fiber = fiber.next, id--;
246272
246346
  return fiber;
246273
246347
  }
246274
- function copyWithSetImpl(obj2, path16, index, value) {
246275
- if (index >= path16.length) return value;
246276
- var key = path16[index], updated = isArrayImpl(obj2) ? obj2.slice() : assign({}, obj2);
246277
- updated[key] = copyWithSetImpl(obj2[key], path16, index + 1, value);
246348
+ function copyWithSetImpl(obj2, path17, index, value) {
246349
+ if (index >= path17.length) return value;
246350
+ var key = path17[index], updated = isArrayImpl(obj2) ? obj2.slice() : assign({}, obj2);
246351
+ updated[key] = copyWithSetImpl(obj2[key], path17, index + 1, value);
246278
246352
  return updated;
246279
246353
  }
246280
246354
  function copyWithRename(obj2, oldPath, newPath) {
@@ -246301,11 +246375,11 @@ var require_react_reconciler_development = __commonJS({
246301
246375
  );
246302
246376
  return updated;
246303
246377
  }
246304
- function copyWithDeleteImpl(obj2, path16, index) {
246305
- var key = path16[index], updated = isArrayImpl(obj2) ? obj2.slice() : assign({}, obj2);
246306
- if (index + 1 === path16.length)
246378
+ function copyWithDeleteImpl(obj2, path17, index) {
246379
+ var key = path17[index], updated = isArrayImpl(obj2) ? obj2.slice() : assign({}, obj2);
246380
+ if (index + 1 === path17.length)
246307
246381
  return isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key], updated;
246308
- updated[key] = copyWithDeleteImpl(obj2[key], path16, index + 1);
246382
+ updated[key] = copyWithDeleteImpl(obj2[key], path17, index + 1);
246309
246383
  return updated;
246310
246384
  }
246311
246385
  function shouldSuspendImpl() {
@@ -259582,29 +259656,29 @@ var require_react_reconciler_development = __commonJS({
259582
259656
  var didWarnAboutNestedUpdates = false;
259583
259657
  var didWarnAboutFindNodeInStrictMode = {};
259584
259658
  var overrideHookState = null, overrideHookStateDeletePath = null, overrideHookStateRenamePath = null, overrideProps = null, overridePropsDeletePath = null, overridePropsRenamePath = null, scheduleUpdate = null, scheduleRetry = null, setErrorHandler = null, setSuspenseHandler = null;
259585
- overrideHookState = function(fiber, id, path16, value) {
259659
+ overrideHookState = function(fiber, id, path17, value) {
259586
259660
  id = findHook(fiber, id);
259587
- null !== id && (path16 = copyWithSetImpl(id.memoizedState, path16, 0, value), id.memoizedState = path16, id.baseState = path16, fiber.memoizedProps = assign({}, fiber.memoizedProps), path16 = enqueueConcurrentRenderForLane(fiber, 2), null !== path16 && scheduleUpdateOnFiber(path16, fiber, 2));
259661
+ null !== id && (path17 = copyWithSetImpl(id.memoizedState, path17, 0, value), id.memoizedState = path17, id.baseState = path17, fiber.memoizedProps = assign({}, fiber.memoizedProps), path17 = enqueueConcurrentRenderForLane(fiber, 2), null !== path17 && scheduleUpdateOnFiber(path17, fiber, 2));
259588
259662
  };
259589
- overrideHookStateDeletePath = function(fiber, id, path16) {
259663
+ overrideHookStateDeletePath = function(fiber, id, path17) {
259590
259664
  id = findHook(fiber, id);
259591
- null !== id && (path16 = copyWithDeleteImpl(id.memoizedState, path16, 0), id.memoizedState = path16, id.baseState = path16, fiber.memoizedProps = assign({}, fiber.memoizedProps), path16 = enqueueConcurrentRenderForLane(fiber, 2), null !== path16 && scheduleUpdateOnFiber(path16, fiber, 2));
259665
+ null !== id && (path17 = copyWithDeleteImpl(id.memoizedState, path17, 0), id.memoizedState = path17, id.baseState = path17, fiber.memoizedProps = assign({}, fiber.memoizedProps), path17 = enqueueConcurrentRenderForLane(fiber, 2), null !== path17 && scheduleUpdateOnFiber(path17, fiber, 2));
259592
259666
  };
259593
259667
  overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) {
259594
259668
  id = findHook(fiber, id);
259595
259669
  null !== id && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps = assign({}, fiber.memoizedProps), oldPath = enqueueConcurrentRenderForLane(fiber, 2), null !== oldPath && scheduleUpdateOnFiber(oldPath, fiber, 2));
259596
259670
  };
259597
- overrideProps = function(fiber, path16, value) {
259598
- fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path16, 0, value);
259671
+ overrideProps = function(fiber, path17, value) {
259672
+ fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path17, 0, value);
259599
259673
  fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps);
259600
- path16 = enqueueConcurrentRenderForLane(fiber, 2);
259601
- null !== path16 && scheduleUpdateOnFiber(path16, fiber, 2);
259674
+ path17 = enqueueConcurrentRenderForLane(fiber, 2);
259675
+ null !== path17 && scheduleUpdateOnFiber(path17, fiber, 2);
259602
259676
  };
259603
- overridePropsDeletePath = function(fiber, path16) {
259604
- fiber.pendingProps = copyWithDeleteImpl(fiber.memoizedProps, path16, 0);
259677
+ overridePropsDeletePath = function(fiber, path17) {
259678
+ fiber.pendingProps = copyWithDeleteImpl(fiber.memoizedProps, path17, 0);
259605
259679
  fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps);
259606
- path16 = enqueueConcurrentRenderForLane(fiber, 2);
259607
- null !== path16 && scheduleUpdateOnFiber(path16, fiber, 2);
259680
+ path17 = enqueueConcurrentRenderForLane(fiber, 2);
259681
+ null !== path17 && scheduleUpdateOnFiber(path17, fiber, 2);
259608
259682
  };
259609
259683
  overridePropsRenamePath = function(fiber, oldPath, newPath) {
259610
259684
  fiber.pendingProps = copyWithRename(
@@ -269326,8 +269400,8 @@ var require_backend = __commonJS({
269326
269400
  }
269327
269401
  return false;
269328
269402
  }
269329
- function utils_getInObject(object2, path16) {
269330
- return path16.reduce(function(reduced, attr) {
269403
+ function utils_getInObject(object2, path17) {
269404
+ return path17.reduce(function(reduced, attr) {
269331
269405
  if (reduced) {
269332
269406
  if (utils_hasOwnProperty.call(reduced, attr)) {
269333
269407
  return reduced[attr];
@@ -269339,11 +269413,11 @@ var require_backend = __commonJS({
269339
269413
  return null;
269340
269414
  }, object2);
269341
269415
  }
269342
- function deletePathInObject(object2, path16) {
269343
- var length = path16.length;
269344
- var last2 = path16[length - 1];
269416
+ function deletePathInObject(object2, path17) {
269417
+ var length = path17.length;
269418
+ var last2 = path17[length - 1];
269345
269419
  if (object2 != null) {
269346
- var parent = utils_getInObject(object2, path16.slice(0, length - 1));
269420
+ var parent = utils_getInObject(object2, path17.slice(0, length - 1));
269347
269421
  if (parent) {
269348
269422
  if (src_isArray(parent)) {
269349
269423
  parent.splice(last2, 1);
@@ -269369,11 +269443,11 @@ var require_backend = __commonJS({
269369
269443
  }
269370
269444
  }
269371
269445
  }
269372
- function utils_setInObject(object2, path16, value) {
269373
- var length = path16.length;
269374
- var last2 = path16[length - 1];
269446
+ function utils_setInObject(object2, path17, value) {
269447
+ var length = path17.length;
269448
+ var last2 = path17[length - 1];
269375
269449
  if (object2 != null) {
269376
- var parent = utils_getInObject(object2, path16.slice(0, length - 1));
269450
+ var parent = utils_getInObject(object2, path17.slice(0, length - 1));
269377
269451
  if (parent) {
269378
269452
  parent[last2] = value;
269379
269453
  }
@@ -269906,8 +269980,8 @@ var require_backend = __commonJS({
269906
269980
  unserializable: /* @__PURE__ */ Symbol("unserializable")
269907
269981
  };
269908
269982
  var LEVEL_THRESHOLD = 2;
269909
- function createDehydrated(type, inspectable, data, cleaned, path16) {
269910
- cleaned.push(path16);
269983
+ function createDehydrated(type, inspectable, data, cleaned, path17) {
269984
+ cleaned.push(path17);
269911
269985
  var dehydrated = {
269912
269986
  inspectable,
269913
269987
  type,
@@ -269925,13 +269999,13 @@ var require_backend = __commonJS({
269925
269999
  }
269926
270000
  return dehydrated;
269927
270001
  }
269928
- function dehydrate(data, cleaned, unserializable, path16, isPathAllowed) {
270002
+ function dehydrate(data, cleaned, unserializable, path17, isPathAllowed) {
269929
270003
  var level = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
269930
270004
  var type = getDataType(data);
269931
270005
  var isPathAllowedCheck;
269932
270006
  switch (type) {
269933
270007
  case "html_element":
269934
- cleaned.push(path16);
270008
+ cleaned.push(path17);
269935
270009
  return {
269936
270010
  inspectable: false,
269937
270011
  preview_short: formatDataForPreview(data, false),
@@ -269940,7 +270014,7 @@ var require_backend = __commonJS({
269940
270014
  type
269941
270015
  };
269942
270016
  case "function":
269943
- cleaned.push(path16);
270017
+ cleaned.push(path17);
269944
270018
  return {
269945
270019
  inspectable: false,
269946
270020
  preview_short: formatDataForPreview(data, false),
@@ -269949,14 +270023,14 @@ var require_backend = __commonJS({
269949
270023
  type
269950
270024
  };
269951
270025
  case "string":
269952
- isPathAllowedCheck = isPathAllowed(path16);
270026
+ isPathAllowedCheck = isPathAllowed(path17);
269953
270027
  if (isPathAllowedCheck) {
269954
270028
  return data;
269955
270029
  } else {
269956
270030
  return data.length <= 500 ? data : data.slice(0, 500) + "...";
269957
270031
  }
269958
270032
  case "bigint":
269959
- cleaned.push(path16);
270033
+ cleaned.push(path17);
269960
270034
  return {
269961
270035
  inspectable: false,
269962
270036
  preview_short: formatDataForPreview(data, false),
@@ -269965,7 +270039,7 @@ var require_backend = __commonJS({
269965
270039
  type
269966
270040
  };
269967
270041
  case "symbol":
269968
- cleaned.push(path16);
270042
+ cleaned.push(path17);
269969
270043
  return {
269970
270044
  inspectable: false,
269971
270045
  preview_short: formatDataForPreview(data, false),
@@ -269974,9 +270048,9 @@ var require_backend = __commonJS({
269974
270048
  type
269975
270049
  };
269976
270050
  case "react_element": {
269977
- isPathAllowedCheck = isPathAllowed(path16);
270051
+ isPathAllowedCheck = isPathAllowed(path17);
269978
270052
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
269979
- cleaned.push(path16);
270053
+ cleaned.push(path17);
269980
270054
  return {
269981
270055
  inspectable: true,
269982
270056
  preview_short: formatDataForPreview(data, false),
@@ -269993,19 +270067,19 @@ var require_backend = __commonJS({
269993
270067
  preview_long: formatDataForPreview(data, true),
269994
270068
  name: getDisplayNameForReactElement(data) || "Unknown"
269995
270069
  };
269996
- unserializableValue.key = dehydrate(data.key, cleaned, unserializable, path16.concat(["key"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270070
+ unserializableValue.key = dehydrate(data.key, cleaned, unserializable, path17.concat(["key"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
269997
270071
  if (data.$$typeof === REACT_LEGACY_ELEMENT_TYPE) {
269998
- unserializableValue.ref = dehydrate(data.ref, cleaned, unserializable, path16.concat(["ref"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270072
+ unserializableValue.ref = dehydrate(data.ref, cleaned, unserializable, path17.concat(["ref"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
269999
270073
  }
270000
- unserializableValue.props = dehydrate(data.props, cleaned, unserializable, path16.concat(["props"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270001
- unserializable.push(path16);
270074
+ unserializableValue.props = dehydrate(data.props, cleaned, unserializable, path17.concat(["props"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270075
+ unserializable.push(path17);
270002
270076
  return unserializableValue;
270003
270077
  }
270004
270078
  case "react_lazy": {
270005
- isPathAllowedCheck = isPathAllowed(path16);
270079
+ isPathAllowedCheck = isPathAllowed(path17);
270006
270080
  var payload = data._payload;
270007
270081
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
270008
- cleaned.push(path16);
270082
+ cleaned.push(path17);
270009
270083
  var inspectable = payload !== null && hydration_typeof(payload) === "object" && (payload._status === 1 || payload._status === 2 || payload.status === "fulfilled" || payload.status === "rejected");
270010
270084
  return {
270011
270085
  inspectable,
@@ -270022,13 +270096,13 @@ var require_backend = __commonJS({
270022
270096
  preview_long: formatDataForPreview(data, true),
270023
270097
  name: "lazy()"
270024
270098
  };
270025
- _unserializableValue._payload = dehydrate(payload, cleaned, unserializable, path16.concat(["_payload"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270026
- unserializable.push(path16);
270099
+ _unserializableValue._payload = dehydrate(payload, cleaned, unserializable, path17.concat(["_payload"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270100
+ unserializable.push(path17);
270027
270101
  return _unserializableValue;
270028
270102
  }
270029
270103
  case "array_buffer":
270030
270104
  case "data_view":
270031
- cleaned.push(path16);
270105
+ cleaned.push(path17);
270032
270106
  return {
270033
270107
  inspectable: false,
270034
270108
  preview_short: formatDataForPreview(data, false),
@@ -270038,21 +270112,21 @@ var require_backend = __commonJS({
270038
270112
  type
270039
270113
  };
270040
270114
  case "array":
270041
- isPathAllowedCheck = isPathAllowed(path16);
270115
+ isPathAllowedCheck = isPathAllowed(path17);
270042
270116
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
270043
- return createDehydrated(type, true, data, cleaned, path16);
270117
+ return createDehydrated(type, true, data, cleaned, path17);
270044
270118
  }
270045
270119
  var arr = [];
270046
270120
  for (var i = 0; i < data.length; i++) {
270047
- arr[i] = dehydrateKey(data, i, cleaned, unserializable, path16.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270121
+ arr[i] = dehydrateKey(data, i, cleaned, unserializable, path17.concat([i]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270048
270122
  }
270049
270123
  return arr;
270050
270124
  case "html_all_collection":
270051
270125
  case "typed_array":
270052
270126
  case "iterator":
270053
- isPathAllowedCheck = isPathAllowed(path16);
270127
+ isPathAllowedCheck = isPathAllowed(path17);
270054
270128
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
270055
- return createDehydrated(type, true, data, cleaned, path16);
270129
+ return createDehydrated(type, true, data, cleaned, path17);
270056
270130
  } else {
270057
270131
  var _unserializableValue2 = {
270058
270132
  unserializable: true,
@@ -270064,13 +270138,13 @@ var require_backend = __commonJS({
270064
270138
  name: typeof data.constructor !== "function" || typeof data.constructor.name !== "string" || data.constructor.name === "Object" ? "" : data.constructor.name
270065
270139
  };
270066
270140
  Array.from(data).forEach(function(item, i2) {
270067
- return _unserializableValue2[i2] = dehydrate(item, cleaned, unserializable, path16.concat([i2]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270141
+ return _unserializableValue2[i2] = dehydrate(item, cleaned, unserializable, path17.concat([i2]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270068
270142
  });
270069
- unserializable.push(path16);
270143
+ unserializable.push(path17);
270070
270144
  return _unserializableValue2;
270071
270145
  }
270072
270146
  case "opaque_iterator":
270073
- cleaned.push(path16);
270147
+ cleaned.push(path17);
270074
270148
  return {
270075
270149
  inspectable: false,
270076
270150
  preview_short: formatDataForPreview(data, false),
@@ -270079,7 +270153,7 @@ var require_backend = __commonJS({
270079
270153
  type
270080
270154
  };
270081
270155
  case "date":
270082
- cleaned.push(path16);
270156
+ cleaned.push(path17);
270083
270157
  return {
270084
270158
  inspectable: false,
270085
270159
  preview_short: formatDataForPreview(data, false),
@@ -270088,7 +270162,7 @@ var require_backend = __commonJS({
270088
270162
  type
270089
270163
  };
270090
270164
  case "regexp":
270091
- cleaned.push(path16);
270165
+ cleaned.push(path17);
270092
270166
  return {
270093
270167
  inspectable: false,
270094
270168
  preview_short: formatDataForPreview(data, false),
@@ -270097,9 +270171,9 @@ var require_backend = __commonJS({
270097
270171
  type
270098
270172
  };
270099
270173
  case "thenable":
270100
- isPathAllowedCheck = isPathAllowed(path16);
270174
+ isPathAllowedCheck = isPathAllowed(path17);
270101
270175
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
270102
- cleaned.push(path16);
270176
+ cleaned.push(path17);
270103
270177
  return {
270104
270178
  inspectable: data.status === "fulfilled" || data.status === "rejected",
270105
270179
  preview_short: formatDataForPreview(data, false),
@@ -270120,8 +270194,8 @@ var require_backend = __commonJS({
270120
270194
  preview_long: formatDataForPreview(data, true),
270121
270195
  name: "fulfilled Thenable"
270122
270196
  };
270123
- _unserializableValue3.value = dehydrate(data.value, cleaned, unserializable, path16.concat(["value"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270124
- unserializable.push(path16);
270197
+ _unserializableValue3.value = dehydrate(data.value, cleaned, unserializable, path17.concat(["value"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270198
+ unserializable.push(path17);
270125
270199
  return _unserializableValue3;
270126
270200
  }
270127
270201
  case "rejected": {
@@ -270132,12 +270206,12 @@ var require_backend = __commonJS({
270132
270206
  preview_long: formatDataForPreview(data, true),
270133
270207
  name: "rejected Thenable"
270134
270208
  };
270135
- _unserializableValue4.reason = dehydrate(data.reason, cleaned, unserializable, path16.concat(["reason"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270136
- unserializable.push(path16);
270209
+ _unserializableValue4.reason = dehydrate(data.reason, cleaned, unserializable, path17.concat(["reason"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270210
+ unserializable.push(path17);
270137
270211
  return _unserializableValue4;
270138
270212
  }
270139
270213
  default:
270140
- cleaned.push(path16);
270214
+ cleaned.push(path17);
270141
270215
  return {
270142
270216
  inspectable: false,
270143
270217
  preview_short: formatDataForPreview(data, false),
@@ -270147,21 +270221,21 @@ var require_backend = __commonJS({
270147
270221
  };
270148
270222
  }
270149
270223
  case "object":
270150
- isPathAllowedCheck = isPathAllowed(path16);
270224
+ isPathAllowedCheck = isPathAllowed(path17);
270151
270225
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
270152
- return createDehydrated(type, true, data, cleaned, path16);
270226
+ return createDehydrated(type, true, data, cleaned, path17);
270153
270227
  } else {
270154
270228
  var object2 = {};
270155
270229
  getAllEnumerableKeys(data).forEach(function(key) {
270156
270230
  var name = key.toString();
270157
- object2[name] = dehydrateKey(data, key, cleaned, unserializable, path16.concat([name]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270231
+ object2[name] = dehydrateKey(data, key, cleaned, unserializable, path17.concat([name]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270158
270232
  });
270159
270233
  return object2;
270160
270234
  }
270161
270235
  case "class_instance": {
270162
- isPathAllowedCheck = isPathAllowed(path16);
270236
+ isPathAllowedCheck = isPathAllowed(path17);
270163
270237
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
270164
- return createDehydrated(type, true, data, cleaned, path16);
270238
+ return createDehydrated(type, true, data, cleaned, path17);
270165
270239
  }
270166
270240
  var value = {
270167
270241
  unserializable: true,
@@ -270173,15 +270247,15 @@ var require_backend = __commonJS({
270173
270247
  };
270174
270248
  getAllEnumerableKeys(data).forEach(function(key) {
270175
270249
  var keyAsString = key.toString();
270176
- value[keyAsString] = dehydrate(data[key], cleaned, unserializable, path16.concat([keyAsString]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270250
+ value[keyAsString] = dehydrate(data[key], cleaned, unserializable, path17.concat([keyAsString]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270177
270251
  });
270178
- unserializable.push(path16);
270252
+ unserializable.push(path17);
270179
270253
  return value;
270180
270254
  }
270181
270255
  case "error": {
270182
- isPathAllowedCheck = isPathAllowed(path16);
270256
+ isPathAllowedCheck = isPathAllowed(path17);
270183
270257
  if (level >= LEVEL_THRESHOLD && !isPathAllowedCheck) {
270184
- return createDehydrated(type, true, data, cleaned, path16);
270258
+ return createDehydrated(type, true, data, cleaned, path17);
270185
270259
  }
270186
270260
  var _value = {
270187
270261
  unserializable: true,
@@ -270191,22 +270265,22 @@ var require_backend = __commonJS({
270191
270265
  preview_long: formatDataForPreview(data, true),
270192
270266
  name: data.name
270193
270267
  };
270194
- _value.message = dehydrate(data.message, cleaned, unserializable, path16.concat(["message"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270195
- _value.stack = dehydrate(data.stack, cleaned, unserializable, path16.concat(["stack"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270268
+ _value.message = dehydrate(data.message, cleaned, unserializable, path17.concat(["message"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270269
+ _value.stack = dehydrate(data.stack, cleaned, unserializable, path17.concat(["stack"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270196
270270
  if ("cause" in data) {
270197
- _value.cause = dehydrate(data.cause, cleaned, unserializable, path16.concat(["cause"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270271
+ _value.cause = dehydrate(data.cause, cleaned, unserializable, path17.concat(["cause"]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270198
270272
  }
270199
270273
  getAllEnumerableKeys(data).forEach(function(key) {
270200
270274
  var keyAsString = key.toString();
270201
- _value[keyAsString] = dehydrate(data[key], cleaned, unserializable, path16.concat([keyAsString]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270275
+ _value[keyAsString] = dehydrate(data[key], cleaned, unserializable, path17.concat([keyAsString]), isPathAllowed, isPathAllowedCheck ? 1 : level + 1);
270202
270276
  });
270203
- unserializable.push(path16);
270277
+ unserializable.push(path17);
270204
270278
  return _value;
270205
270279
  }
270206
270280
  case "infinity":
270207
270281
  case "nan":
270208
270282
  case "undefined":
270209
- cleaned.push(path16);
270283
+ cleaned.push(path17);
270210
270284
  return {
270211
270285
  type
270212
270286
  };
@@ -270214,10 +270288,10 @@ var require_backend = __commonJS({
270214
270288
  return data;
270215
270289
  }
270216
270290
  }
270217
- function dehydrateKey(parent, key, cleaned, unserializable, path16, isPathAllowed) {
270291
+ function dehydrateKey(parent, key, cleaned, unserializable, path17, isPathAllowed) {
270218
270292
  var level = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : 0;
270219
270293
  try {
270220
- return dehydrate(parent[key], cleaned, unserializable, path16, isPathAllowed, level);
270294
+ return dehydrate(parent[key], cleaned, unserializable, path17, isPathAllowed, level);
270221
270295
  } catch (error) {
270222
270296
  var preview = "";
270223
270297
  if (hydration_typeof(error) === "object" && error !== null && typeof error.stack === "string") {
@@ -270225,7 +270299,7 @@ var require_backend = __commonJS({
270225
270299
  } else if (typeof error === "string") {
270226
270300
  preview = error;
270227
270301
  }
270228
- cleaned.push(path16);
270302
+ cleaned.push(path17);
270229
270303
  return {
270230
270304
  inspectable: false,
270231
270305
  preview_short: "[Exception]",
@@ -270235,8 +270309,8 @@ var require_backend = __commonJS({
270235
270309
  };
270236
270310
  }
270237
270311
  }
270238
- function fillInPath(object2, data, path16, value) {
270239
- var target = getInObject(object2, path16);
270312
+ function fillInPath(object2, data, path17, value) {
270313
+ var target = getInObject(object2, path17);
270240
270314
  if (target != null) {
270241
270315
  if (!target[meta.unserializable]) {
270242
270316
  delete target[meta.inspectable];
@@ -270251,9 +270325,9 @@ var require_backend = __commonJS({
270251
270325
  }
270252
270326
  if (value !== null && data.unserializable.length > 0) {
270253
270327
  var unserializablePath = data.unserializable[0];
270254
- var isMatch2 = unserializablePath.length === path16.length;
270255
- for (var i = 0; i < path16.length; i++) {
270256
- if (path16[i] !== unserializablePath[i]) {
270328
+ var isMatch2 = unserializablePath.length === path17.length;
270329
+ for (var i = 0; i < path17.length; i++) {
270330
+ if (path17[i] !== unserializablePath[i]) {
270257
270331
  isMatch2 = false;
270258
270332
  break;
270259
270333
  }
@@ -270262,13 +270336,13 @@ var require_backend = __commonJS({
270262
270336
  upgradeUnserializable(value, value);
270263
270337
  }
270264
270338
  }
270265
- setInObject(object2, path16, value);
270339
+ setInObject(object2, path17, value);
270266
270340
  }
270267
270341
  function hydrate(object2, cleaned, unserializable) {
270268
- cleaned.forEach(function(path16) {
270269
- var length = path16.length;
270270
- var last2 = path16[length - 1];
270271
- var parent = getInObject(object2, path16.slice(0, length - 1));
270342
+ cleaned.forEach(function(path17) {
270343
+ var length = path17.length;
270344
+ var last2 = path17[length - 1];
270345
+ var parent = getInObject(object2, path17.slice(0, length - 1));
270272
270346
  if (!parent || !parent.hasOwnProperty(last2)) {
270273
270347
  return;
270274
270348
  }
@@ -270294,10 +270368,10 @@ var require_backend = __commonJS({
270294
270368
  parent[last2] = replaced;
270295
270369
  }
270296
270370
  });
270297
- unserializable.forEach(function(path16) {
270298
- var length = path16.length;
270299
- var last2 = path16[length - 1];
270300
- var parent = getInObject(object2, path16.slice(0, length - 1));
270371
+ unserializable.forEach(function(path17) {
270372
+ var length = path17.length;
270373
+ var last2 = path17[length - 1];
270374
+ var parent = getInObject(object2, path17.slice(0, length - 1));
270301
270375
  if (!parent || !parent.hasOwnProperty(last2)) {
270302
270376
  return;
270303
270377
  }
@@ -270418,11 +270492,11 @@ var require_backend = __commonJS({
270418
270492
  return gte(version4, FIRST_DEVTOOLS_BACKEND_LOCKSTEP_VER);
270419
270493
  }
270420
270494
  function cleanForBridge(data, isPathAllowed) {
270421
- var path16 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
270495
+ var path17 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
270422
270496
  if (data !== null) {
270423
270497
  var cleanedPaths = [];
270424
270498
  var unserializablePaths = [];
270425
- var cleanedData = dehydrate(data, cleanedPaths, unserializablePaths, path16, isPathAllowed);
270499
+ var cleanedData = dehydrate(data, cleanedPaths, unserializablePaths, path17, isPathAllowed);
270426
270500
  return {
270427
270501
  data: cleanedData,
270428
270502
  cleaned: cleanedPaths,
@@ -270432,18 +270506,18 @@ var require_backend = __commonJS({
270432
270506
  return null;
270433
270507
  }
270434
270508
  }
270435
- function copyWithDelete(obj2, path16) {
270509
+ function copyWithDelete(obj2, path17) {
270436
270510
  var index = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
270437
- var key = path16[index];
270511
+ var key = path17[index];
270438
270512
  var updated = shared_isArray(obj2) ? obj2.slice() : utils_objectSpread({}, obj2);
270439
- if (index + 1 === path16.length) {
270513
+ if (index + 1 === path17.length) {
270440
270514
  if (shared_isArray(updated)) {
270441
270515
  updated.splice(key, 1);
270442
270516
  } else {
270443
270517
  delete updated[key];
270444
270518
  }
270445
270519
  } else {
270446
- updated[key] = copyWithDelete(obj2[key], path16, index + 1);
270520
+ updated[key] = copyWithDelete(obj2[key], path17, index + 1);
270447
270521
  }
270448
270522
  return updated;
270449
270523
  }
@@ -270464,14 +270538,14 @@ var require_backend = __commonJS({
270464
270538
  }
270465
270539
  return updated;
270466
270540
  }
270467
- function copyWithSet(obj2, path16, value) {
270541
+ function copyWithSet(obj2, path17, value) {
270468
270542
  var index = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
270469
- if (index >= path16.length) {
270543
+ if (index >= path17.length) {
270470
270544
  return value;
270471
270545
  }
270472
- var key = path16[index];
270546
+ var key = path17[index];
270473
270547
  var updated = shared_isArray(obj2) ? obj2.slice() : utils_objectSpread({}, obj2);
270474
- updated[key] = copyWithSet(obj2[key], path16, value, index + 1);
270548
+ updated[key] = copyWithSet(obj2[key], path17, value, index + 1);
270475
270549
  return updated;
270476
270550
  }
270477
270551
  function getEffectDurations(root2) {
@@ -271747,12 +271821,12 @@ var require_backend = __commonJS({
271747
271821
  }
271748
271822
  });
271749
271823
  bridge_defineProperty(_this, "overrideValueAtPath", function(_ref) {
271750
- var id = _ref.id, path16 = _ref.path, rendererID = _ref.rendererID, type = _ref.type, value = _ref.value;
271824
+ var id = _ref.id, path17 = _ref.path, rendererID = _ref.rendererID, type = _ref.type, value = _ref.value;
271751
271825
  switch (type) {
271752
271826
  case "context":
271753
271827
  _this.send("overrideContext", {
271754
271828
  id,
271755
- path: path16,
271829
+ path: path17,
271756
271830
  rendererID,
271757
271831
  wasForwarded: true,
271758
271832
  value
@@ -271761,7 +271835,7 @@ var require_backend = __commonJS({
271761
271835
  case "hooks":
271762
271836
  _this.send("overrideHookState", {
271763
271837
  id,
271764
- path: path16,
271838
+ path: path17,
271765
271839
  rendererID,
271766
271840
  wasForwarded: true,
271767
271841
  value
@@ -271770,7 +271844,7 @@ var require_backend = __commonJS({
271770
271844
  case "props":
271771
271845
  _this.send("overrideProps", {
271772
271846
  id,
271773
- path: path16,
271847
+ path: path17,
271774
271848
  rendererID,
271775
271849
  wasForwarded: true,
271776
271850
  value
@@ -271779,7 +271853,7 @@ var require_backend = __commonJS({
271779
271853
  case "state":
271780
271854
  _this.send("overrideState", {
271781
271855
  id,
271782
- path: path16,
271856
+ path: path17,
271783
271857
  rendererID,
271784
271858
  wasForwarded: true,
271785
271859
  value
@@ -272117,12 +272191,12 @@ var require_backend = __commonJS({
272117
272191
  }
272118
272192
  });
272119
272193
  agent_defineProperty(_this, "copyElementPath", function(_ref5) {
272120
- var id = _ref5.id, path16 = _ref5.path, rendererID = _ref5.rendererID;
272194
+ var id = _ref5.id, path17 = _ref5.path, rendererID = _ref5.rendererID;
272121
272195
  var renderer2 = _this._rendererInterfaces[rendererID];
272122
272196
  if (renderer2 == null) {
272123
272197
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
272124
272198
  } else {
272125
- var value = renderer2.getSerializedElementValueByPath(id, path16);
272199
+ var value = renderer2.getSerializedElementValueByPath(id, path17);
272126
272200
  if (value != null) {
272127
272201
  _this._bridge.send("saveToClipboard", value);
272128
272202
  } else {
@@ -272131,12 +272205,12 @@ var require_backend = __commonJS({
272131
272205
  }
272132
272206
  });
272133
272207
  agent_defineProperty(_this, "deletePath", function(_ref6) {
272134
- var hookID = _ref6.hookID, id = _ref6.id, path16 = _ref6.path, rendererID = _ref6.rendererID, type = _ref6.type;
272208
+ var hookID = _ref6.hookID, id = _ref6.id, path17 = _ref6.path, rendererID = _ref6.rendererID, type = _ref6.type;
272135
272209
  var renderer2 = _this._rendererInterfaces[rendererID];
272136
272210
  if (renderer2 == null) {
272137
272211
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
272138
272212
  } else {
272139
- renderer2.deletePath(type, id, hookID, path16);
272213
+ renderer2.deletePath(type, id, hookID, path17);
272140
272214
  }
272141
272215
  });
272142
272216
  agent_defineProperty(_this, "getBackendVersion", function() {
@@ -272173,12 +272247,12 @@ var require_backend = __commonJS({
272173
272247
  }
272174
272248
  });
272175
272249
  agent_defineProperty(_this, "inspectElement", function(_ref9) {
272176
- var forceFullData = _ref9.forceFullData, id = _ref9.id, path16 = _ref9.path, rendererID = _ref9.rendererID, requestID = _ref9.requestID;
272250
+ var forceFullData = _ref9.forceFullData, id = _ref9.id, path17 = _ref9.path, rendererID = _ref9.rendererID, requestID = _ref9.requestID;
272177
272251
  var renderer2 = _this._rendererInterfaces[rendererID];
272178
272252
  if (renderer2 == null) {
272179
272253
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
272180
272254
  } else {
272181
- _this._bridge.send("inspectedElement", renderer2.inspectElement(requestID, id, path16, forceFullData));
272255
+ _this._bridge.send("inspectedElement", renderer2.inspectElement(requestID, id, path17, forceFullData));
272182
272256
  if (_this._persistedSelectionMatch === null || _this._persistedSelectionMatch.id !== id) {
272183
272257
  _this._persistedSelection = null;
272184
272258
  _this._persistedSelectionMatch = null;
@@ -272212,15 +272286,15 @@ var require_backend = __commonJS({
272212
272286
  }
272213
272287
  for (var rendererID in _this._rendererInterfaces) {
272214
272288
  var renderer2 = _this._rendererInterfaces[rendererID];
272215
- var path16 = null;
272289
+ var path17 = null;
272216
272290
  if (suspendedByPathIndex !== null && rendererPath !== null) {
272217
272291
  var suspendedByPathRendererIndex = suspendedByPathIndex - suspendedByOffset;
272218
272292
  var rendererHasRequestedSuspendedByPath = renderer2.getElementAttributeByPath(id, ["suspendedBy", suspendedByPathRendererIndex]) !== void 0;
272219
272293
  if (rendererHasRequestedSuspendedByPath) {
272220
- path16 = ["suspendedBy", suspendedByPathRendererIndex].concat(rendererPath);
272294
+ path17 = ["suspendedBy", suspendedByPathRendererIndex].concat(rendererPath);
272221
272295
  }
272222
272296
  }
272223
- var inspectedRootsPayload = renderer2.inspectElement(requestID, id, path16, forceFullData);
272297
+ var inspectedRootsPayload = renderer2.inspectElement(requestID, id, path17, forceFullData);
272224
272298
  switch (inspectedRootsPayload.type) {
272225
272299
  case "hydrated-path":
272226
272300
  inspectedRootsPayload.path[1] += suspendedByOffset;
@@ -272314,20 +272388,20 @@ var require_backend = __commonJS({
272314
272388
  }
272315
272389
  });
272316
272390
  agent_defineProperty(_this, "overrideValueAtPath", function(_ref15) {
272317
- var hookID = _ref15.hookID, id = _ref15.id, path16 = _ref15.path, rendererID = _ref15.rendererID, type = _ref15.type, value = _ref15.value;
272391
+ var hookID = _ref15.hookID, id = _ref15.id, path17 = _ref15.path, rendererID = _ref15.rendererID, type = _ref15.type, value = _ref15.value;
272318
272392
  var renderer2 = _this._rendererInterfaces[rendererID];
272319
272393
  if (renderer2 == null) {
272320
272394
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
272321
272395
  } else {
272322
- renderer2.overrideValueAtPath(type, id, hookID, path16, value);
272396
+ renderer2.overrideValueAtPath(type, id, hookID, path17, value);
272323
272397
  }
272324
272398
  });
272325
272399
  agent_defineProperty(_this, "overrideContext", function(_ref16) {
272326
- var id = _ref16.id, path16 = _ref16.path, rendererID = _ref16.rendererID, wasForwarded = _ref16.wasForwarded, value = _ref16.value;
272400
+ var id = _ref16.id, path17 = _ref16.path, rendererID = _ref16.rendererID, wasForwarded = _ref16.wasForwarded, value = _ref16.value;
272327
272401
  if (!wasForwarded) {
272328
272402
  _this.overrideValueAtPath({
272329
272403
  id,
272330
- path: path16,
272404
+ path: path17,
272331
272405
  rendererID,
272332
272406
  type: "context",
272333
272407
  value
@@ -272335,11 +272409,11 @@ var require_backend = __commonJS({
272335
272409
  }
272336
272410
  });
272337
272411
  agent_defineProperty(_this, "overrideHookState", function(_ref17) {
272338
- var id = _ref17.id, hookID = _ref17.hookID, path16 = _ref17.path, rendererID = _ref17.rendererID, wasForwarded = _ref17.wasForwarded, value = _ref17.value;
272412
+ var id = _ref17.id, hookID = _ref17.hookID, path17 = _ref17.path, rendererID = _ref17.rendererID, wasForwarded = _ref17.wasForwarded, value = _ref17.value;
272339
272413
  if (!wasForwarded) {
272340
272414
  _this.overrideValueAtPath({
272341
272415
  id,
272342
- path: path16,
272416
+ path: path17,
272343
272417
  rendererID,
272344
272418
  type: "hooks",
272345
272419
  value
@@ -272347,11 +272421,11 @@ var require_backend = __commonJS({
272347
272421
  }
272348
272422
  });
272349
272423
  agent_defineProperty(_this, "overrideProps", function(_ref18) {
272350
- var id = _ref18.id, path16 = _ref18.path, rendererID = _ref18.rendererID, wasForwarded = _ref18.wasForwarded, value = _ref18.value;
272424
+ var id = _ref18.id, path17 = _ref18.path, rendererID = _ref18.rendererID, wasForwarded = _ref18.wasForwarded, value = _ref18.value;
272351
272425
  if (!wasForwarded) {
272352
272426
  _this.overrideValueAtPath({
272353
272427
  id,
272354
- path: path16,
272428
+ path: path17,
272355
272429
  rendererID,
272356
272430
  type: "props",
272357
272431
  value
@@ -272359,11 +272433,11 @@ var require_backend = __commonJS({
272359
272433
  }
272360
272434
  });
272361
272435
  agent_defineProperty(_this, "overrideState", function(_ref19) {
272362
- var id = _ref19.id, path16 = _ref19.path, rendererID = _ref19.rendererID, wasForwarded = _ref19.wasForwarded, value = _ref19.value;
272436
+ var id = _ref19.id, path17 = _ref19.path, rendererID = _ref19.rendererID, wasForwarded = _ref19.wasForwarded, value = _ref19.value;
272363
272437
  if (!wasForwarded) {
272364
272438
  _this.overrideValueAtPath({
272365
272439
  id,
272366
- path: path16,
272440
+ path: path17,
272367
272441
  rendererID,
272368
272442
  type: "state",
272369
272443
  value
@@ -272430,12 +272504,12 @@ var require_backend = __commonJS({
272430
272504
  _this._bridge.send("stopInspectingHost", selected);
272431
272505
  });
272432
272506
  agent_defineProperty(_this, "storeAsGlobal", function(_ref23) {
272433
- var count = _ref23.count, id = _ref23.id, path16 = _ref23.path, rendererID = _ref23.rendererID;
272507
+ var count = _ref23.count, id = _ref23.id, path17 = _ref23.path, rendererID = _ref23.rendererID;
272434
272508
  var renderer2 = _this._rendererInterfaces[rendererID];
272435
272509
  if (renderer2 == null) {
272436
272510
  console.warn('Invalid renderer id "'.concat(rendererID, '" for element "').concat(id, '"'));
272437
272511
  } else {
272438
- renderer2.storeAsGlobal(id, path16, count);
272512
+ renderer2.storeAsGlobal(id, path17, count);
272439
272513
  }
272440
272514
  });
272441
272515
  agent_defineProperty(_this, "updateHookSettings", function(settings) {
@@ -272452,12 +272526,12 @@ var require_backend = __commonJS({
272452
272526
  var rendererID = +rendererIDString;
272453
272527
  var renderer2 = _this._rendererInterfaces[rendererID];
272454
272528
  if (_this._lastSelectedRendererID === rendererID) {
272455
- var path16 = renderer2.getPathForElement(_this._lastSelectedElementID);
272456
- if (path16 !== null) {
272457
- renderer2.setTrackedPath(path16);
272529
+ var path17 = renderer2.getPathForElement(_this._lastSelectedElementID);
272530
+ if (path17 !== null) {
272531
+ renderer2.setTrackedPath(path17);
272458
272532
  _this._persistedSelection = {
272459
272533
  rendererID,
272460
- path: path16
272534
+ path: path17
272461
272535
  };
272462
272536
  }
272463
272537
  }
@@ -272532,11 +272606,11 @@ var require_backend = __commonJS({
272532
272606
  var rendererID = _this._lastSelectedRendererID;
272533
272607
  var id = _this._lastSelectedElementID;
272534
272608
  var renderer2 = _this._rendererInterfaces[rendererID];
272535
- var path16 = renderer2 != null ? renderer2.getPathForElement(id) : null;
272536
- if (path16 !== null) {
272609
+ var path17 = renderer2 != null ? renderer2.getPathForElement(id) : null;
272610
+ if (path17 !== null) {
272537
272611
  storage_sessionStorageSetItem(SESSION_STORAGE_LAST_SELECTION_KEY, JSON.stringify({
272538
272612
  rendererID,
272539
- path: path16
272613
+ path: path17
272540
272614
  }));
272541
272615
  } else {
272542
272616
  storage_sessionStorageRemoveItem(SESSION_STORAGE_LAST_SELECTION_KEY);
@@ -273245,7 +273319,7 @@ var require_backend = __commonJS({
273245
273319
  hasElementWithId: function hasElementWithId() {
273246
273320
  return false;
273247
273321
  },
273248
- inspectElement: function inspectElement(requestID, id, path16) {
273322
+ inspectElement: function inspectElement(requestID, id, path17) {
273249
273323
  return {
273250
273324
  id,
273251
273325
  responseID: requestID,
@@ -278496,9 +278570,9 @@ var require_backend = __commonJS({
278496
278570
  }
278497
278571
  return null;
278498
278572
  }
278499
- function getElementAttributeByPath(id, path16) {
278573
+ function getElementAttributeByPath(id, path17) {
278500
278574
  if (isMostRecentlyInspectedElement(id)) {
278501
- return utils_getInObject(mostRecentlyInspectedElement, path16);
278575
+ return utils_getInObject(mostRecentlyInspectedElement, path17);
278502
278576
  }
278503
278577
  return void 0;
278504
278578
  }
@@ -279205,9 +279279,9 @@ var require_backend = __commonJS({
279205
279279
  function isMostRecentlyInspectedElementCurrent(id) {
279206
279280
  return isMostRecentlyInspectedElement(id) && !hasElementUpdatedSinceLastInspected;
279207
279281
  }
279208
- function mergeInspectedPaths(path16) {
279282
+ function mergeInspectedPaths(path17) {
279209
279283
  var current = currentlyInspectedPaths;
279210
- path16.forEach(function(key) {
279284
+ path17.forEach(function(key) {
279211
279285
  if (!current[key]) {
279212
279286
  current[key] = {};
279213
279287
  }
@@ -279215,21 +279289,21 @@ var require_backend = __commonJS({
279215
279289
  });
279216
279290
  }
279217
279291
  function createIsPathAllowed(key, secondaryCategory) {
279218
- return function isPathAllowed(path16) {
279292
+ return function isPathAllowed(path17) {
279219
279293
  switch (secondaryCategory) {
279220
279294
  case "hooks":
279221
- if (path16.length === 1) {
279295
+ if (path17.length === 1) {
279222
279296
  return true;
279223
279297
  }
279224
- if (path16[path16.length - 2] === "hookSource" && path16[path16.length - 1] === "fileName") {
279298
+ if (path17[path17.length - 2] === "hookSource" && path17[path17.length - 1] === "fileName") {
279225
279299
  return true;
279226
279300
  }
279227
- if (path16[path16.length - 1] === "subHooks" || path16[path16.length - 2] === "subHooks") {
279301
+ if (path17[path17.length - 1] === "subHooks" || path17[path17.length - 2] === "subHooks") {
279228
279302
  return true;
279229
279303
  }
279230
279304
  break;
279231
279305
  case "suspendedBy":
279232
- if (path16.length < 5) {
279306
+ if (path17.length < 5) {
279233
279307
  return true;
279234
279308
  }
279235
279309
  break;
@@ -279240,8 +279314,8 @@ var require_backend = __commonJS({
279240
279314
  if (!current) {
279241
279315
  return false;
279242
279316
  }
279243
- for (var i = 0; i < path16.length; i++) {
279244
- current = current[path16[i]];
279317
+ for (var i = 0; i < path17.length; i++) {
279318
+ current = current[path17[i]];
279245
279319
  if (!current) {
279246
279320
  return false;
279247
279321
  }
@@ -279295,38 +279369,38 @@ var require_backend = __commonJS({
279295
279369
  break;
279296
279370
  }
279297
279371
  }
279298
- function storeAsGlobal(id, path16, count) {
279372
+ function storeAsGlobal(id, path17, count) {
279299
279373
  if (isMostRecentlyInspectedElement(id)) {
279300
- var value = utils_getInObject(mostRecentlyInspectedElement, path16);
279374
+ var value = utils_getInObject(mostRecentlyInspectedElement, path17);
279301
279375
  var key = "$reactTemp".concat(count);
279302
279376
  window[key] = value;
279303
279377
  console.log(key);
279304
279378
  console.log(value);
279305
279379
  }
279306
279380
  }
279307
- function getSerializedElementValueByPath(id, path16) {
279381
+ function getSerializedElementValueByPath(id, path17) {
279308
279382
  if (isMostRecentlyInspectedElement(id)) {
279309
- var valueToCopy = utils_getInObject(mostRecentlyInspectedElement, path16);
279383
+ var valueToCopy = utils_getInObject(mostRecentlyInspectedElement, path17);
279310
279384
  return serializeToString(valueToCopy);
279311
279385
  }
279312
279386
  }
279313
- function inspectElement(requestID, id, path16, forceFullData) {
279314
- if (path16 !== null) {
279315
- mergeInspectedPaths(path16);
279387
+ function inspectElement(requestID, id, path17, forceFullData) {
279388
+ if (path17 !== null) {
279389
+ mergeInspectedPaths(path17);
279316
279390
  }
279317
279391
  if (isMostRecentlyInspectedElement(id) && !forceFullData) {
279318
279392
  if (!hasElementUpdatedSinceLastInspected) {
279319
- if (path16 !== null) {
279393
+ if (path17 !== null) {
279320
279394
  var secondaryCategory = null;
279321
- if (path16[0] === "hooks" || path16[0] === "suspendedBy") {
279322
- secondaryCategory = path16[0];
279395
+ if (path17[0] === "hooks" || path17[0] === "suspendedBy") {
279396
+ secondaryCategory = path17[0];
279323
279397
  }
279324
279398
  return {
279325
279399
  id,
279326
279400
  responseID: requestID,
279327
279401
  type: "hydrated-path",
279328
- path: path16,
279329
- value: cleanForBridge(utils_getInObject(mostRecentlyInspectedElement, path16), createIsPathAllowed(null, secondaryCategory), path16)
279402
+ path: path17,
279403
+ value: cleanForBridge(utils_getInObject(mostRecentlyInspectedElement, path17), createIsPathAllowed(null, secondaryCategory), path17)
279330
279404
  };
279331
279405
  } else {
279332
279406
  return {
@@ -279515,7 +279589,7 @@ var require_backend = __commonJS({
279515
279589
  console.groupEnd();
279516
279590
  }
279517
279591
  }
279518
- function deletePath(type, id, hookID, path16) {
279592
+ function deletePath(type, id, hookID, path17) {
279519
279593
  var devtoolsInstance = idToDevToolsInstanceMap.get(id);
279520
279594
  if (devtoolsInstance === void 0) {
279521
279595
  console.warn('Could not find DevToolsInstance with id "'.concat(id, '"'));
@@ -279529,12 +279603,12 @@ var require_backend = __commonJS({
279529
279603
  var instance = fiber.stateNode;
279530
279604
  switch (type) {
279531
279605
  case "context":
279532
- path16 = path16.slice(1);
279606
+ path17 = path17.slice(1);
279533
279607
  switch (fiber.tag) {
279534
279608
  case ClassComponent:
279535
- if (path16.length === 0) {
279609
+ if (path17.length === 0) {
279536
279610
  } else {
279537
- deletePathInObject(instance.context, path16);
279611
+ deletePathInObject(instance.context, path17);
279538
279612
  }
279539
279613
  instance.forceUpdate();
279540
279614
  break;
@@ -279544,21 +279618,21 @@ var require_backend = __commonJS({
279544
279618
  break;
279545
279619
  case "hooks":
279546
279620
  if (typeof overrideHookStateDeletePath === "function") {
279547
- overrideHookStateDeletePath(fiber, hookID, path16);
279621
+ overrideHookStateDeletePath(fiber, hookID, path17);
279548
279622
  }
279549
279623
  break;
279550
279624
  case "props":
279551
279625
  if (instance === null) {
279552
279626
  if (typeof overridePropsDeletePath === "function") {
279553
- overridePropsDeletePath(fiber, path16);
279627
+ overridePropsDeletePath(fiber, path17);
279554
279628
  }
279555
279629
  } else {
279556
- fiber.pendingProps = copyWithDelete(instance.props, path16);
279630
+ fiber.pendingProps = copyWithDelete(instance.props, path17);
279557
279631
  instance.forceUpdate();
279558
279632
  }
279559
279633
  break;
279560
279634
  case "state":
279561
- deletePathInObject(instance.state, path16);
279635
+ deletePathInObject(instance.state, path17);
279562
279636
  instance.forceUpdate();
279563
279637
  break;
279564
279638
  }
@@ -279614,7 +279688,7 @@ var require_backend = __commonJS({
279614
279688
  }
279615
279689
  }
279616
279690
  }
279617
- function overrideValueAtPath(type, id, hookID, path16, value) {
279691
+ function overrideValueAtPath(type, id, hookID, path17, value) {
279618
279692
  var devtoolsInstance = idToDevToolsInstanceMap.get(id);
279619
279693
  if (devtoolsInstance === void 0) {
279620
279694
  console.warn('Could not find DevToolsInstance with id "'.concat(id, '"'));
@@ -279628,13 +279702,13 @@ var require_backend = __commonJS({
279628
279702
  var instance = fiber.stateNode;
279629
279703
  switch (type) {
279630
279704
  case "context":
279631
- path16 = path16.slice(1);
279705
+ path17 = path17.slice(1);
279632
279706
  switch (fiber.tag) {
279633
279707
  case ClassComponent:
279634
- if (path16.length === 0) {
279708
+ if (path17.length === 0) {
279635
279709
  instance.context = value;
279636
279710
  } else {
279637
- utils_setInObject(instance.context, path16, value);
279711
+ utils_setInObject(instance.context, path17, value);
279638
279712
  }
279639
279713
  instance.forceUpdate();
279640
279714
  break;
@@ -279644,18 +279718,18 @@ var require_backend = __commonJS({
279644
279718
  break;
279645
279719
  case "hooks":
279646
279720
  if (typeof overrideHookState === "function") {
279647
- overrideHookState(fiber, hookID, path16, value);
279721
+ overrideHookState(fiber, hookID, path17, value);
279648
279722
  }
279649
279723
  break;
279650
279724
  case "props":
279651
279725
  switch (fiber.tag) {
279652
279726
  case ClassComponent:
279653
- fiber.pendingProps = copyWithSet(instance.props, path16, value);
279727
+ fiber.pendingProps = copyWithSet(instance.props, path17, value);
279654
279728
  instance.forceUpdate();
279655
279729
  break;
279656
279730
  default:
279657
279731
  if (typeof overrideProps === "function") {
279658
- overrideProps(fiber, path16, value);
279732
+ overrideProps(fiber, path17, value);
279659
279733
  }
279660
279734
  break;
279661
279735
  }
@@ -279663,7 +279737,7 @@ var require_backend = __commonJS({
279663
279737
  case "state":
279664
279738
  switch (fiber.tag) {
279665
279739
  case ClassComponent:
279666
- utils_setInObject(instance.state, path16, value);
279740
+ utils_setInObject(instance.state, path17, value);
279667
279741
  instance.forceUpdate();
279668
279742
  break;
279669
279743
  }
@@ -279949,14 +280023,14 @@ var require_backend = __commonJS({
279949
280023
  var trackedPathMatchInstance = null;
279950
280024
  var trackedPathMatchDepth = -1;
279951
280025
  var mightBeOnTrackedPath = false;
279952
- function setTrackedPath(path16) {
279953
- if (path16 === null) {
280026
+ function setTrackedPath(path17) {
280027
+ if (path17 === null) {
279954
280028
  trackedPathMatchFiber = null;
279955
280029
  trackedPathMatchInstance = null;
279956
280030
  trackedPathMatchDepth = -1;
279957
280031
  mightBeOnTrackedPath = false;
279958
280032
  }
279959
- trackedPath = path16;
280033
+ trackedPath = path17;
279960
280034
  }
279961
280035
  function updateTrackedPathStateBeforeMount(fiber, fiberInstance) {
279962
280036
  if (trackedPath === null || !mightBeOnTrackedPath) {
@@ -280724,9 +280798,9 @@ var require_backend = __commonJS({
280724
280798
  }
280725
280799
  var currentlyInspectedElementID = null;
280726
280800
  var currentlyInspectedPaths = {};
280727
- function mergeInspectedPaths(path16) {
280801
+ function mergeInspectedPaths(path17) {
280728
280802
  var current = currentlyInspectedPaths;
280729
- path16.forEach(function(key) {
280803
+ path17.forEach(function(key) {
280730
280804
  if (!current[key]) {
280731
280805
  current[key] = {};
280732
280806
  }
@@ -280734,13 +280808,13 @@ var require_backend = __commonJS({
280734
280808
  });
280735
280809
  }
280736
280810
  function createIsPathAllowed(key) {
280737
- return function isPathAllowed(path16) {
280811
+ return function isPathAllowed(path17) {
280738
280812
  var current = currentlyInspectedPaths[key];
280739
280813
  if (!current) {
280740
280814
  return false;
280741
280815
  }
280742
- for (var i = 0; i < path16.length; i++) {
280743
- current = current[path16[i]];
280816
+ for (var i = 0; i < path17.length; i++) {
280817
+ current = current[path17[i]];
280744
280818
  if (!current) {
280745
280819
  return false;
280746
280820
  }
@@ -280790,24 +280864,24 @@ var require_backend = __commonJS({
280790
280864
  break;
280791
280865
  }
280792
280866
  }
280793
- function storeAsGlobal(id, path16, count) {
280867
+ function storeAsGlobal(id, path17, count) {
280794
280868
  var inspectedElement = inspectElementRaw(id);
280795
280869
  if (inspectedElement !== null) {
280796
- var value = utils_getInObject(inspectedElement, path16);
280870
+ var value = utils_getInObject(inspectedElement, path17);
280797
280871
  var key = "$reactTemp".concat(count);
280798
280872
  window[key] = value;
280799
280873
  console.log(key);
280800
280874
  console.log(value);
280801
280875
  }
280802
280876
  }
280803
- function getSerializedElementValueByPath(id, path16) {
280877
+ function getSerializedElementValueByPath(id, path17) {
280804
280878
  var inspectedElement = inspectElementRaw(id);
280805
280879
  if (inspectedElement !== null) {
280806
- var valueToCopy = utils_getInObject(inspectedElement, path16);
280880
+ var valueToCopy = utils_getInObject(inspectedElement, path17);
280807
280881
  return serializeToString(valueToCopy);
280808
280882
  }
280809
280883
  }
280810
- function inspectElement(requestID, id, path16, forceFullData) {
280884
+ function inspectElement(requestID, id, path17, forceFullData) {
280811
280885
  if (forceFullData || currentlyInspectedElementID !== id) {
280812
280886
  currentlyInspectedElementID = id;
280813
280887
  currentlyInspectedPaths = {};
@@ -280820,8 +280894,8 @@ var require_backend = __commonJS({
280820
280894
  type: "not-found"
280821
280895
  };
280822
280896
  }
280823
- if (path16 !== null) {
280824
- mergeInspectedPaths(path16);
280897
+ if (path17 !== null) {
280898
+ mergeInspectedPaths(path17);
280825
280899
  }
280826
280900
  updateSelectedElement(id);
280827
280901
  inspectedElement.context = cleanForBridge(inspectedElement.context, createIsPathAllowed("context"));
@@ -281024,10 +281098,10 @@ var require_backend = __commonJS({
281024
281098
  console.groupEnd();
281025
281099
  }
281026
281100
  }
281027
- function getElementAttributeByPath(id, path16) {
281101
+ function getElementAttributeByPath(id, path17) {
281028
281102
  var inspectedElement = inspectElementRaw(id);
281029
281103
  if (inspectedElement !== null) {
281030
- return utils_getInObject(inspectedElement, path16);
281104
+ return utils_getInObject(inspectedElement, path17);
281031
281105
  }
281032
281106
  return void 0;
281033
281107
  }
@@ -281044,14 +281118,14 @@ var require_backend = __commonJS({
281044
281118
  }
281045
281119
  return element.type;
281046
281120
  }
281047
- function deletePath(type, id, hookID, path16) {
281121
+ function deletePath(type, id, hookID, path17) {
281048
281122
  var internalInstance = idToInternalInstanceMap.get(id);
281049
281123
  if (internalInstance != null) {
281050
281124
  var publicInstance = internalInstance._instance;
281051
281125
  if (publicInstance != null) {
281052
281126
  switch (type) {
281053
281127
  case "context":
281054
- deletePathInObject(publicInstance.context, path16);
281128
+ deletePathInObject(publicInstance.context, path17);
281055
281129
  forceUpdate(publicInstance);
281056
281130
  break;
281057
281131
  case "hooks":
@@ -281059,12 +281133,12 @@ var require_backend = __commonJS({
281059
281133
  case "props":
281060
281134
  var element = internalInstance._currentElement;
281061
281135
  internalInstance._currentElement = legacy_renderer_objectSpread(legacy_renderer_objectSpread({}, element), {}, {
281062
- props: copyWithDelete(element.props, path16)
281136
+ props: copyWithDelete(element.props, path17)
281063
281137
  });
281064
281138
  forceUpdate(publicInstance);
281065
281139
  break;
281066
281140
  case "state":
281067
- deletePathInObject(publicInstance.state, path16);
281141
+ deletePathInObject(publicInstance.state, path17);
281068
281142
  forceUpdate(publicInstance);
281069
281143
  break;
281070
281144
  }
@@ -281098,14 +281172,14 @@ var require_backend = __commonJS({
281098
281172
  }
281099
281173
  }
281100
281174
  }
281101
- function overrideValueAtPath(type, id, hookID, path16, value) {
281175
+ function overrideValueAtPath(type, id, hookID, path17, value) {
281102
281176
  var internalInstance = idToInternalInstanceMap.get(id);
281103
281177
  if (internalInstance != null) {
281104
281178
  var publicInstance = internalInstance._instance;
281105
281179
  if (publicInstance != null) {
281106
281180
  switch (type) {
281107
281181
  case "context":
281108
- utils_setInObject(publicInstance.context, path16, value);
281182
+ utils_setInObject(publicInstance.context, path17, value);
281109
281183
  forceUpdate(publicInstance);
281110
281184
  break;
281111
281185
  case "hooks":
@@ -281113,12 +281187,12 @@ var require_backend = __commonJS({
281113
281187
  case "props":
281114
281188
  var element = internalInstance._currentElement;
281115
281189
  internalInstance._currentElement = legacy_renderer_objectSpread(legacy_renderer_objectSpread({}, element), {}, {
281116
- props: copyWithSet(element.props, path16, value)
281190
+ props: copyWithSet(element.props, path17, value)
281117
281191
  });
281118
281192
  forceUpdate(publicInstance);
281119
281193
  break;
281120
281194
  case "state":
281121
- utils_setInObject(publicInstance.state, path16, value);
281195
+ utils_setInObject(publicInstance.state, path17, value);
281122
281196
  forceUpdate(publicInstance);
281123
281197
  break;
281124
281198
  }
@@ -281163,7 +281237,7 @@ var require_backend = __commonJS({
281163
281237
  }
281164
281238
  function setTraceUpdatesEnabled(enabled) {
281165
281239
  }
281166
- function setTrackedPath(path16) {
281240
+ function setTrackedPath(path17) {
281167
281241
  }
281168
281242
  function getOwnersList(id) {
281169
281243
  return null;
@@ -282418,8 +282492,8 @@ var init_devtools = __esm({
282418
282492
 
282419
282493
  // node_modules/ink/build/reconciler.js
282420
282494
  async function loadPackageJson() {
282421
- const fs16 = await import("node:fs");
282422
- const content = fs16.readFileSync(new URL("../package.json", import.meta.url), "utf8");
282495
+ const fs17 = await import("node:fs");
282496
+ const content = fs17.readFileSync(new URL("../package.json", import.meta.url), "utf8");
282423
282497
  return JSON.parse(content);
282424
282498
  }
282425
282499
  var import_react_reconciler, import_constants8, Scheduler, import_react, diff, cleanupYogaNode, currentUpdatePriority, currentRootNode, packageJson, reconciler_default;
@@ -283029,7 +283103,7 @@ var init_ansi_styles2 = __esm({
283029
283103
 
283030
283104
  // node_modules/ink/node_modules/chalk/source/vendor/supports-color/index.js
283031
283105
  import process5 from "node:process";
283032
- import os5 from "node:os";
283106
+ import os6 from "node:os";
283033
283107
  import tty2 from "node:tty";
283034
283108
  function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process5.argv) {
283035
283109
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
@@ -283087,7 +283161,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
283087
283161
  return min2;
283088
283162
  }
283089
283163
  if (process5.platform === "win32") {
283090
- const osRelease = os5.release().split(".");
283164
+ const osRelease = os6.release().split(".");
283091
283165
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
283092
283166
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
283093
283167
  }
@@ -285450,7 +285524,7 @@ var init_Text = __esm({
285450
285524
  });
285451
285525
 
285452
285526
  // node_modules/ink/build/components/ErrorOverview.js
285453
- import * as fs14 from "node:fs";
285527
+ import * as fs15 from "node:fs";
285454
285528
  import { cwd } from "node:process";
285455
285529
  function ErrorOverview({ error }) {
285456
285530
  const stack = error.stack ? error.stack.split("\n").slice(1) : void 0;
@@ -285458,8 +285532,8 @@ function ErrorOverview({ error }) {
285458
285532
  const filePath = cleanupPath(origin?.file);
285459
285533
  let excerpt;
285460
285534
  let lineWidth = 0;
285461
- if (filePath && origin?.line && fs14.existsSync(filePath)) {
285462
- const sourceCode = fs14.readFileSync(filePath, "utf8");
285535
+ if (filePath && origin?.line && fs15.existsSync(filePath)) {
285536
+ const sourceCode = fs15.readFileSync(filePath, "utf8");
285463
285537
  excerpt = dist_default3(sourceCode, origin.line);
285464
285538
  if (excerpt) {
285465
285539
  for (const { line } of excerpt) {
@@ -285560,8 +285634,8 @@ var init_ErrorOverview = __esm({
285560
285634
  init_dist7();
285561
285635
  init_Box();
285562
285636
  init_Text();
285563
- cleanupPath = (path16) => {
285564
- return path16?.replace(`file://${cwd()}/`, "");
285637
+ cleanupPath = (path17) => {
285638
+ return path17?.replace(`file://${cwd()}/`, "");
285565
285639
  };
285566
285640
  stackUtils = new import_stack_utils.default({
285567
285641
  cwd: cwd(),
@@ -287480,10 +287554,10 @@ __export(perch_cli_exports, {
287480
287554
  runPerchCli: () => runPerchCli,
287481
287555
  workerEventToCliRow: () => workerEventToCliRow
287482
287556
  });
287483
- import fs15 from "node:fs";
287557
+ import fs16 from "node:fs";
287484
287558
  import { createHash as createHash4 } from "node:crypto";
287485
- import os6 from "node:os";
287486
- import path15 from "node:path";
287559
+ import os7 from "node:os";
287560
+ import path16 from "node:path";
287487
287561
  import readline from "node:readline/promises";
287488
287562
  import { fileURLToPath, pathToFileURL } from "node:url";
287489
287563
  import { execFile as execFile3 } from "node:child_process";
@@ -288010,6 +288084,7 @@ async function runInkInteractivePerchCli(writer, deps, options) {
288010
288084
  };
288011
288085
  const runTurn = deps.runCliTurn ?? runPerchCliTurn;
288012
288086
  const updateNotice = resolveUpdateNotice(CLI_PACKAGE_VERSION);
288087
+ captureCliFirstRun(CLI_PACKAGE_VERSION);
288013
288088
  const instance = Ink2.render(
288014
288089
  React11.createElement(function PerchInkApp() {
288015
288090
  const app = Ink2.useApp();
@@ -289362,12 +289437,12 @@ async function persistCliThreadState(input) {
289362
289437
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
289363
289438
  };
289364
289439
  const filePath = cliThreadStatePath(input.threadId, input.threadScopeKey);
289365
- await fs15.promises.mkdir(path15.dirname(filePath), { recursive: true, mode: 448 });
289366
- await fs15.promises.writeFile(filePath, JSON.stringify(payload, null, 2), { mode: 384 });
289440
+ await fs16.promises.mkdir(path16.dirname(filePath), { recursive: true, mode: 448 });
289441
+ await fs16.promises.writeFile(filePath, JSON.stringify(payload, null, 2), { mode: 384 });
289367
289442
  }
289368
289443
  async function readCliThreadState(threadId, threadScopeKey) {
289369
289444
  try {
289370
- const raw = await fs15.promises.readFile(cliThreadStatePath(threadId, threadScopeKey), "utf8");
289445
+ const raw = await fs16.promises.readFile(cliThreadStatePath(threadId, threadScopeKey), "utf8");
289371
289446
  const parsed = JSON.parse(raw);
289372
289447
  if (parsed.version !== 1 || parsed.threadId !== threadId) return null;
289373
289448
  return {
@@ -289383,11 +289458,11 @@ async function readCliThreadState(threadId, threadScopeKey) {
289383
289458
  }
289384
289459
  }
289385
289460
  async function deleteCliThreadState(threadId, threadScopeKey) {
289386
- await fs15.promises.rm(cliThreadStatePath(threadId, threadScopeKey), { force: true }).catch(() => void 0);
289461
+ await fs16.promises.rm(cliThreadStatePath(threadId, threadScopeKey), { force: true }).catch(() => void 0);
289387
289462
  }
289388
289463
  function cliThreadStatePath(threadId, threadScopeKey) {
289389
- const base = process.env.PERCH_CLI_STATE_DIR?.trim() || path15.join(os6.homedir(), ".perch", "threads");
289390
- return path15.join(base, safeCliThreadScopeKey(threadScopeKey), `${safeCliThreadId(threadId)}.json`);
289464
+ const base = process.env.PERCH_CLI_STATE_DIR?.trim() || path16.join(os7.homedir(), ".perch", "threads");
289465
+ return path16.join(base, safeCliThreadScopeKey(threadScopeKey), `${safeCliThreadId(threadId)}.json`);
289391
289466
  }
289392
289467
  async function resolveCliThreadScopeKey(connection) {
289393
289468
  const session = await readStoredCliAuthSession().catch(() => null);
@@ -290266,20 +290341,20 @@ function writeAPScenarioResult(result2, json, writer) {
290266
290341
  }
290267
290342
  function resolveFolderPath(input) {
290268
290343
  const resolved = resolvePath(input);
290269
- const stat2 = fs15.existsSync(resolved) ? fs15.statSync(resolved) : null;
290344
+ const stat2 = fs16.existsSync(resolved) ? fs16.statSync(resolved) : null;
290270
290345
  if (!stat2?.isDirectory()) throw new Error(`Folder does not exist: ${resolved}`);
290271
290346
  return resolved;
290272
290347
  }
290273
290348
  function resolveExistingDirectory(input) {
290274
290349
  const resolved = resolvePath(input);
290275
- const stat2 = fs15.existsSync(resolved) ? fs15.statSync(resolved) : null;
290350
+ const stat2 = fs16.existsSync(resolved) ? fs16.statSync(resolved) : null;
290276
290351
  if (!stat2?.isDirectory()) throw new Error(`Directory does not exist: ${resolved}`);
290277
290352
  return resolved;
290278
290353
  }
290279
290354
  function resolvePath(input) {
290280
290355
  if (input === "~") return process.env.HOME ?? input;
290281
- if (input.startsWith("~/")) return path15.join(process.env.HOME ?? "", input.slice(2));
290282
- return path15.resolve(input);
290356
+ if (input.startsWith("~/")) return path16.join(process.env.HOME ?? "", input.slice(2));
290357
+ return path16.resolve(input);
290283
290358
  }
290284
290359
  function requireCliAppUrl(input) {
290285
290360
  const resolved = resolveCliAppUrl(input, null);
@@ -290313,16 +290388,16 @@ function parseExpectation(input) {
290313
290388
  return { key, value: rawValue };
290314
290389
  }
290315
290390
  function readCliPackageVersion() {
290316
- const scriptDir = path15.dirname(fileURLToPath(import.meta.url));
290391
+ const scriptDir = path16.dirname(fileURLToPath(import.meta.url));
290317
290392
  const candidates = [
290318
- path15.resolve(scriptDir, "../packages/cli/package.json"),
290319
- path15.resolve(scriptDir, "../package.json"),
290320
- path15.resolve(process.cwd(), "packages/cli/package.json"),
290321
- path15.resolve(process.cwd(), "package.json")
290393
+ path16.resolve(scriptDir, "../packages/cli/package.json"),
290394
+ path16.resolve(scriptDir, "../package.json"),
290395
+ path16.resolve(process.cwd(), "packages/cli/package.json"),
290396
+ path16.resolve(process.cwd(), "package.json")
290322
290397
  ];
290323
290398
  for (const candidate of candidates) {
290324
290399
  try {
290325
- const raw = fs15.readFileSync(candidate, "utf8");
290400
+ const raw = fs16.readFileSync(candidate, "utf8");
290326
290401
  const parsed = JSON.parse(raw);
290327
290402
  if (typeof parsed.version === "string" && parsed.version.trim()) {
290328
290403
  return parsed.version.trim();
@@ -290335,7 +290410,7 @@ function readCliPackageVersion() {
290335
290410
  function shortCwd(cwd2) {
290336
290411
  const home = process.env.HOME;
290337
290412
  if (home && cwd2 === home) return "~";
290338
- if (home && cwd2.startsWith(`${home}${path15.sep}`)) {
290413
+ if (home && cwd2.startsWith(`${home}${path16.sep}`)) {
290339
290414
  return `~/${cwd2.slice(home.length + 1)}`;
290340
290415
  }
290341
290416
  return cwd2;
@@ -290370,6 +290445,7 @@ var init_perch_cli = __esm({
290370
290445
  init_toolDefinitions();
290371
290446
  init_nodeLocalBridge();
290372
290447
  init_cliUpdateCheck();
290448
+ init_cliAnalytics();
290373
290449
  init_agentSkillRegistry();
290374
290450
  execFileAsync3 = promisify3(execFile3);
290375
290451
  DEFAULT_CLI_LOGIN_APP_URL = "https://app.perchai.app";