@workflow/web 5.0.0-beta.11 → 5.0.0-beta.13

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 (20) hide show
  1. package/build/client/assets/{highlighted-body-B3W2YXNL-ByAVJfTI.js → highlighted-body-B3W2YXNL-B8ZRlnzz.js} +1 -1
  2. package/build/client/assets/{home-D68s49Hb.js → home-1yC3MOjQ.js} +2 -2
  3. package/build/client/assets/{manifest-f3e412ee.js → manifest-9f37c22f.js} +1 -1
  4. package/build/client/assets/{mermaid-3ZIDBTTL-Cg06pRM9.js → mermaid-3ZIDBTTL-BDM4-x6u.js} +342 -293
  5. package/build/client/assets/root-Bqr5evzw.css +1 -0
  6. package/build/client/assets/{root-CtIBMIdD.js → root-C5RLIKj5.js} +1 -1
  7. package/build/client/assets/{run-detail-B1sCKjMc.js → run-detail-DM1PDAnQ.js} +29 -33
  8. package/build/client/assets/server-build-CNnlgxpd.css +1 -0
  9. package/build/client/assets/{workflow-graph-viewer-D4OsX_TE.js → workflow-graph-viewer-C8H50hkM.js} +1 -1
  10. package/build/server/assets/{app-C26OkrrR.js → app-eXXkzWLS.js} +2 -2
  11. package/build/server/assets/{highlighted-body-B3W2YXNL-2D25w_37.js → highlighted-body-B3W2YXNL-DMxq-VLe.js} +2 -2
  12. package/build/server/assets/{index-C6jZ_bJo.js → index-BjEgWhxl.js} +3 -3
  13. package/build/server/assets/{mermaid-3ZIDBTTL-BDYN9XOo.js → mermaid-3ZIDBTTL-DNPNsNRF.js} +2 -2
  14. package/build/server/assets/{server-build-D82EKMvZ.js → server-build-CSP1Aknr.js} +2464 -1134
  15. package/build/server/assets/{token-Bjcyh98U.js → token-DOrkjd5O.js} +2 -2
  16. package/build/server/assets/{token-util-CdvUIKt6.js → token-util-Hv7wRzsW.js} +2 -2
  17. package/build/server/index.js +1 -1
  18. package/package.json +10 -10
  19. package/build/client/assets/root-D_G0HW97.css +0 -1
  20. package/build/client/assets/server-build-DyZioyz3.css +0 -1
@@ -1,8 +1,8 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/encryption-g14N5vQl.js","assets/index-B6-SzLmT.js","assets/index-BXZSIDEp.js","assets/highlighted-body-B3W2YXNL-ByAVJfTI.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/encryption-g14N5vQl.js","assets/index-B6-SzLmT.js","assets/index-BXZSIDEp.js","assets/highlighted-body-B3W2YXNL-B8ZRlnzz.js"])))=>i.map(i=>d[i]);
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- var _a2;
5
+ var _a2, _b;
6
6
  import { r as reactExports, j as jsxRuntimeExports, f as reactDomExports, I as React, G as ReactDOM, R as ReactExports, g as getDefaultExportFromCjs } from "./index-BXZSIDEp.js";
7
7
  function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
8
8
  return function handleEvent(event) {
@@ -200,13 +200,13 @@ function mergeProps$1(slotProps, childProps) {
200
200
  return { ...slotProps, ...overrideProps };
201
201
  }
202
202
  function getElementRef$2(element2) {
203
- var _a3, _b;
203
+ var _a3, _b2;
204
204
  let getter = (_a3 = Object.getOwnPropertyDescriptor(element2.props, "ref")) == null ? void 0 : _a3.get;
205
205
  let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
206
206
  if (mayWarn) {
207
207
  return element2.ref;
208
208
  }
209
- getter = (_b = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b.get;
209
+ getter = (_b2 = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b2.get;
210
210
  mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
211
211
  if (mayWarn) {
212
212
  return element2.props.ref;
@@ -2443,7 +2443,7 @@ var CONTENT_NAME$1 = "PopperContent";
2443
2443
  var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$1);
2444
2444
  var PopperContent = reactExports.forwardRef(
2445
2445
  (props, forwardedRef) => {
2446
- var _a3, _b, _c, _d, _e2, _f;
2446
+ var _a3, _b2, _c, _d, _e2, _f;
2447
2447
  const {
2448
2448
  __scopePopper,
2449
2449
  side = "bottom",
@@ -2523,7 +2523,7 @@ var PopperContent = reactExports.forwardRef(
2523
2523
  }
2524
2524
  }, [isPositioned, handlePlaced]);
2525
2525
  const arrowX = (_a3 = middlewareData.arrow) == null ? void 0 : _a3.x;
2526
- const arrowY = (_b = middlewareData.arrow) == null ? void 0 : _b.y;
2526
+ const arrowY = (_b2 = middlewareData.arrow) == null ? void 0 : _b2.y;
2527
2527
  const cannotCenterArrow = ((_c = middlewareData.arrow) == null ? void 0 : _c.centerOffset) !== 0;
2528
2528
  const [contentZIndex, setContentZIndex] = reactExports.useState();
2529
2529
  useLayoutEffect2(() => {
@@ -2646,7 +2646,7 @@ var transformOrigin = (options) => ({
2646
2646
  name: "transformOrigin",
2647
2647
  options,
2648
2648
  fn(data) {
2649
- var _a3, _b, _c;
2649
+ var _a3, _b2, _c;
2650
2650
  const { placement, rects, middlewareData } = data;
2651
2651
  const cannotCenterArrow = ((_a3 = middlewareData.arrow) == null ? void 0 : _a3.centerOffset) !== 0;
2652
2652
  const isArrowHidden = cannotCenterArrow;
@@ -2654,7 +2654,7 @@ var transformOrigin = (options) => ({
2654
2654
  const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
2655
2655
  const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
2656
2656
  const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
2657
- const arrowXCenter = (((_b = middlewareData.arrow) == null ? void 0 : _b.x) ?? 0) + arrowWidth / 2;
2657
+ const arrowXCenter = (((_b2 = middlewareData.arrow) == null ? void 0 : _b2.x) ?? 0) + arrowWidth / 2;
2658
2658
  const arrowYCenter = (((_c = middlewareData.arrow) == null ? void 0 : _c.y) ?? 0) + arrowHeight / 2;
2659
2659
  let x2 = "";
2660
2660
  let y2 = "";
@@ -2802,13 +2802,13 @@ function getAnimationName(styles2) {
2802
2802
  return (styles2 == null ? void 0 : styles2.animationName) || "none";
2803
2803
  }
2804
2804
  function getElementRef$1(element2) {
2805
- var _a3, _b;
2805
+ var _a3, _b2;
2806
2806
  let getter = (_a3 = Object.getOwnPropertyDescriptor(element2.props, "ref")) == null ? void 0 : _a3.get;
2807
2807
  let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
2808
2808
  if (mayWarn) {
2809
2809
  return element2.ref;
2810
2810
  }
2811
- getter = (_b = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b.get;
2811
+ getter = (_b2 = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b2.get;
2812
2812
  mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
2813
2813
  if (mayWarn) {
2814
2814
  return element2.props.ref;
@@ -10098,44 +10098,6 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
10098
10098
  return baseModule().catch(handlePreloadError);
10099
10099
  });
10100
10100
  };
10101
- function decode64(string2) {
10102
- const binaryString = asciiToBinary(string2);
10103
- const arraybuffer = new ArrayBuffer(binaryString.length);
10104
- const dv = new DataView(arraybuffer);
10105
- for (let i = 0; i < arraybuffer.byteLength; i++) {
10106
- dv.setUint8(i, binaryString.charCodeAt(i));
10107
- }
10108
- return arraybuffer;
10109
- }
10110
- const KEY_STRING = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
10111
- function asciiToBinary(data) {
10112
- if (data.length % 4 === 0) {
10113
- data = data.replace(/==?$/, "");
10114
- }
10115
- let output = "";
10116
- let buffer = 0;
10117
- let accumulatedBits = 0;
10118
- for (let i = 0; i < data.length; i++) {
10119
- buffer <<= 6;
10120
- buffer |= KEY_STRING.indexOf(data[i]);
10121
- accumulatedBits += 6;
10122
- if (accumulatedBits === 24) {
10123
- output += String.fromCharCode((buffer & 16711680) >> 16);
10124
- output += String.fromCharCode((buffer & 65280) >> 8);
10125
- output += String.fromCharCode(buffer & 255);
10126
- buffer = accumulatedBits = 0;
10127
- }
10128
- }
10129
- if (accumulatedBits === 12) {
10130
- buffer >>= 4;
10131
- output += String.fromCharCode(buffer);
10132
- } else if (accumulatedBits === 18) {
10133
- buffer >>= 2;
10134
- output += String.fromCharCode((buffer & 65280) >> 8);
10135
- output += String.fromCharCode(buffer & 255);
10136
- }
10137
- return output;
10138
- }
10139
10101
  const UNDEFINED = -1;
10140
10102
  const HOLE = -2;
10141
10103
  const NAN = -3;
@@ -10143,6 +10105,38 @@ const POSITIVE_INFINITY = -4;
10143
10105
  const NEGATIVE_INFINITY = -5;
10144
10106
  const NEGATIVE_ZERO = -6;
10145
10107
  const SPARSE = -7;
10108
+ const MAX_ARRAY_LEN = 2 ** 32 - 1;
10109
+ const MAX_ARRAY_INDEX = MAX_ARRAY_LEN - 1;
10110
+ function is_valid_array_index(n) {
10111
+ if (!Number.isInteger(n)) return false;
10112
+ if (n < 0) return false;
10113
+ if (n > MAX_ARRAY_INDEX) return false;
10114
+ return true;
10115
+ }
10116
+ function is_valid_array_len(n) {
10117
+ if (!Number.isInteger(n)) return false;
10118
+ if (n < 0) return false;
10119
+ if (n > MAX_ARRAY_LEN) return false;
10120
+ return true;
10121
+ }
10122
+ function decode_native(base642) {
10123
+ return Uint8Array.fromBase64(base642).buffer;
10124
+ }
10125
+ function decode_buffer(base642) {
10126
+ return Uint8Array.from(Buffer.from(base642, "base64")).buffer;
10127
+ }
10128
+ function decode_legacy(base642) {
10129
+ const binary_string = atob(base642);
10130
+ const len = binary_string.length;
10131
+ const array2 = new Uint8Array(len);
10132
+ for (let i = 0; i < len; i++) {
10133
+ array2[i] = binary_string.charCodeAt(i);
10134
+ }
10135
+ return array2.buffer;
10136
+ }
10137
+ const native = typeof Uint8Array.fromBase64 === "function";
10138
+ const buffer = typeof process === "object" && ((_a2 = process.versions) == null ? void 0 : _a2.node) !== void 0;
10139
+ const decode64 = native ? decode_native : buffer ? decode_buffer : decode_legacy;
10146
10140
  function parse$4(serialized, revivers) {
10147
10141
  return unflatten(JSON.parse(serialized), revivers);
10148
10142
  }
@@ -10209,9 +10203,14 @@ function unflatten(parsed, revivers) {
10209
10203
  case "RegExp":
10210
10204
  hydrated[index2] = new RegExp(value[1], value[2]);
10211
10205
  break;
10212
- case "Object":
10213
- hydrated[index2] = Object(value[1]);
10206
+ case "Object": {
10207
+ const wrapped_index = value[1];
10208
+ if (typeof values[wrapped_index] === "object" && values[wrapped_index][0] !== "BigInt") {
10209
+ throw new Error("Invalid input");
10210
+ }
10211
+ hydrated[index2] = Object(hydrate(wrapped_index));
10214
10212
  break;
10213
+ }
10215
10214
  case "BigInt":
10216
10215
  hydrated[index2] = BigInt(value[1]);
10217
10216
  break;
@@ -10219,6 +10218,9 @@ function unflatten(parsed, revivers) {
10219
10218
  const obj = /* @__PURE__ */ Object.create(null);
10220
10219
  hydrated[index2] = obj;
10221
10220
  for (let i = 1; i < value.length; i += 2) {
10221
+ if (value[i] === "__proto__") {
10222
+ throw new Error("Cannot parse an object with a `__proto__` property");
10223
+ }
10222
10224
  obj[value[i]] = hydrate(value[i + 1]);
10223
10225
  }
10224
10226
  break;
@@ -10227,19 +10229,20 @@ function unflatten(parsed, revivers) {
10227
10229
  case "Uint8ClampedArray":
10228
10230
  case "Int16Array":
10229
10231
  case "Uint16Array":
10232
+ case "Float16Array":
10230
10233
  case "Int32Array":
10231
10234
  case "Uint32Array":
10232
10235
  case "Float32Array":
10233
10236
  case "Float64Array":
10234
10237
  case "BigInt64Array":
10235
- case "BigUint64Array": {
10238
+ case "BigUint64Array":
10239
+ case "DataView": {
10236
10240
  if (values[value[1]][0] !== "ArrayBuffer") {
10237
10241
  throw new Error("Invalid data");
10238
10242
  }
10239
10243
  const TypedArrayConstructor = globalThis[type];
10240
- const buffer = hydrate(value[1]);
10241
- const typedArray = new TypedArrayConstructor(buffer);
10242
- hydrated[index2] = value[2] !== void 0 ? typedArray.subarray(value[2], value[3]) : typedArray;
10244
+ const buffer2 = hydrate(value[1]);
10245
+ hydrated[index2] = value[2] !== void 0 ? new TypedArrayConstructor(buffer2, value[2], value[3]) : new TypedArrayConstructor(buffer2);
10243
10246
  break;
10244
10247
  }
10245
10248
  case "ArrayBuffer": {
@@ -10278,12 +10281,21 @@ function unflatten(parsed, revivers) {
10278
10281
  }
10279
10282
  } else if (value[0] === SPARSE) {
10280
10283
  const len = value[1];
10281
- const array2 = new Array(len);
10284
+ if (!is_valid_array_len(len)) {
10285
+ throw new Error("Invalid input");
10286
+ }
10287
+ const array2 = [];
10282
10288
  hydrated[index2] = array2;
10289
+ array2[MAX_ARRAY_INDEX] = void 0;
10290
+ delete array2[MAX_ARRAY_INDEX];
10283
10291
  for (let i = 2; i < value.length; i += 2) {
10284
10292
  const idx = value[i];
10293
+ if (!is_valid_array_index(idx) || idx >= len) {
10294
+ throw new Error("Invalid input");
10295
+ }
10285
10296
  array2[idx] = hydrate(value[i + 1]);
10286
10297
  }
10298
+ array2.length = len;
10287
10299
  } else {
10288
10300
  const array2 = new Array(value.length);
10289
10301
  hydrated[index2] = array2;
@@ -10691,10 +10703,10 @@ function $constructor(name2, initializer2, params) {
10691
10703
  Object.defineProperty(_2, "init", { value: init });
10692
10704
  Object.defineProperty(_2, Symbol.hasInstance, {
10693
10705
  value: (inst) => {
10694
- var _a3, _b;
10706
+ var _a3, _b2;
10695
10707
  if ((params == null ? void 0 : params.Parent) && inst instanceof params.Parent)
10696
10708
  return true;
10697
- return (_b = (_a3 = inst == null ? void 0 : inst._zod) == null ? void 0 : _a3.traits) == null ? void 0 : _b.has(name2);
10709
+ return (_b2 = (_a3 = inst == null ? void 0 : inst._zod) == null ? void 0 : _a3.traits) == null ? void 0 : _b2.has(name2);
10698
10710
  }
10699
10711
  });
10700
10712
  Object.defineProperty(_2, "name", { value: name2 });
@@ -11077,10 +11089,10 @@ function unwrapMessage(message) {
11077
11089
  return typeof message === "string" ? message : message == null ? void 0 : message.message;
11078
11090
  }
11079
11091
  function finalizeIssue(iss, ctx, config2) {
11080
- var _a3, _b, _c, _d, _e2, _f;
11092
+ var _a3, _b2, _c, _d, _e2, _f;
11081
11093
  const full = { ...iss, path: iss.path ?? [] };
11082
11094
  if (!iss.message) {
11083
- const message = unwrapMessage((_c = (_b = (_a3 = iss.inst) == null ? void 0 : _a3._zod.def) == null ? void 0 : _b.error) == null ? void 0 : _c.call(_b, iss)) ?? unwrapMessage((_d = ctx == null ? void 0 : ctx.error) == null ? void 0 : _d.call(ctx, iss)) ?? unwrapMessage((_e2 = config2.customError) == null ? void 0 : _e2.call(config2, iss)) ?? unwrapMessage((_f = config2.localeError) == null ? void 0 : _f.call(config2, iss)) ?? "Invalid input";
11095
+ const message = unwrapMessage((_c = (_b2 = (_a3 = iss.inst) == null ? void 0 : _a3._zod.def) == null ? void 0 : _b2.error) == null ? void 0 : _c.call(_b2, iss)) ?? unwrapMessage((_d = ctx == null ? void 0 : ctx.error) == null ? void 0 : _d.call(ctx, iss)) ?? unwrapMessage((_e2 = config2.customError) == null ? void 0 : _e2.call(config2, iss)) ?? unwrapMessage((_f = config2.localeError) == null ? void 0 : _f.call(config2, iss)) ?? "Invalid input";
11084
11096
  full.message = message;
11085
11097
  }
11086
11098
  delete full.inst;
@@ -11564,7 +11576,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
11564
11576
  };
11565
11577
  });
11566
11578
  const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
11567
- var _a3, _b;
11579
+ var _a3, _b2;
11568
11580
  $ZodCheck.init(inst, def);
11569
11581
  inst._zod.onattach.push((inst2) => {
11570
11582
  const bag = inst2._zod.bag;
@@ -11590,7 +11602,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
11590
11602
  });
11591
11603
  });
11592
11604
  else
11593
- (_b = inst._zod).check ?? (_b.check = () => {
11605
+ (_b2 = inst._zod).check ?? (_b2.check = () => {
11594
11606
  });
11595
11607
  });
11596
11608
  const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
@@ -12323,10 +12335,10 @@ function handlePropertyResult(result, final, key, input, isOptionalOut) {
12323
12335
  }
12324
12336
  }
12325
12337
  function normalizeDef(def) {
12326
- var _a3, _b, _c, _d;
12338
+ var _a3, _b2, _c, _d;
12327
12339
  const keys2 = Object.keys(def.shape);
12328
12340
  for (const k2 of keys2) {
12329
- if (!((_d = (_c = (_b = (_a3 = def.shape) == null ? void 0 : _a3[k2]) == null ? void 0 : _b._zod) == null ? void 0 : _c.traits) == null ? void 0 : _d.has("$ZodType"))) {
12341
+ if (!((_d = (_c = (_b2 = (_a3 = def.shape) == null ? void 0 : _a3[k2]) == null ? void 0 : _b2._zod) == null ? void 0 : _c.traits) == null ? void 0 : _d.has("$ZodType"))) {
12330
12342
  throw new Error(`Invalid element at key "${k2}": expected a Zod schema`);
12331
12343
  }
12332
12344
  }
@@ -13130,12 +13142,12 @@ const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) =>
13130
13142
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
13131
13143
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
13132
13144
  defineLazy(inst._zod, "optin", () => {
13133
- var _a3, _b;
13134
- return (_b = (_a3 = def.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b.optin;
13145
+ var _a3, _b2;
13146
+ return (_b2 = (_a3 = def.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.optin;
13135
13147
  });
13136
13148
  defineLazy(inst._zod, "optout", () => {
13137
- var _a3, _b;
13138
- return (_b = (_a3 = def.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b.optout;
13149
+ var _a3, _b2;
13150
+ return (_b2 = (_a3 = def.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.optout;
13139
13151
  });
13140
13152
  inst._zod.parse = (payload, ctx) => {
13141
13153
  if (ctx.direction === "backward") {
@@ -13201,20 +13213,20 @@ const $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
13201
13213
  $ZodType.init(inst, def);
13202
13214
  defineLazy(inst._zod, "innerType", () => def.getter());
13203
13215
  defineLazy(inst._zod, "pattern", () => {
13204
- var _a3, _b;
13205
- return (_b = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b.pattern;
13216
+ var _a3, _b2;
13217
+ return (_b2 = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.pattern;
13206
13218
  });
13207
13219
  defineLazy(inst._zod, "propValues", () => {
13208
- var _a3, _b;
13209
- return (_b = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b.propValues;
13220
+ var _a3, _b2;
13221
+ return (_b2 = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.propValues;
13210
13222
  });
13211
13223
  defineLazy(inst._zod, "optin", () => {
13212
- var _a3, _b;
13213
- return ((_b = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b.optin) ?? void 0;
13224
+ var _a3, _b2;
13225
+ return ((_b2 = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.optin) ?? void 0;
13214
13226
  });
13215
13227
  defineLazy(inst._zod, "optout", () => {
13216
- var _a3, _b;
13217
- return ((_b = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b.optout) ?? void 0;
13228
+ var _a3, _b2;
13229
+ return ((_b2 = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.optout) ?? void 0;
13218
13230
  });
13219
13231
  inst._zod.parse = (payload, ctx) => {
13220
13232
  const inner = inst._zod.innerType;
@@ -13856,8 +13868,8 @@ function initializeContext(params) {
13856
13868
  external: (params == null ? void 0 : params.external) ?? void 0
13857
13869
  };
13858
13870
  }
13859
- function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
13860
- var _a4, _b;
13871
+ function process$1(schema, ctx, _params = { path: [], schemaPath: [] }) {
13872
+ var _a4, _b2;
13861
13873
  var _a3;
13862
13874
  const def = schema._zod.def;
13863
13875
  const seen2 = ctx.seen.get(schema);
@@ -13871,7 +13883,7 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
13871
13883
  }
13872
13884
  const result = { schema: {}, count: 1, cycle: void 0, path: _params.path };
13873
13885
  ctx.seen.set(schema, result);
13874
- const overrideSchema = (_b = (_a4 = schema._zod).toJSONSchema) == null ? void 0 : _b.call(_a4);
13886
+ const overrideSchema = (_b2 = (_a4 = schema._zod).toJSONSchema) == null ? void 0 : _b2.call(_a4);
13875
13887
  if (overrideSchema) {
13876
13888
  result.schema = overrideSchema;
13877
13889
  } else {
@@ -13894,7 +13906,7 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
13894
13906
  if (parent) {
13895
13907
  if (!result.ref)
13896
13908
  result.ref = parent;
13897
- process(parent, ctx, params);
13909
+ process$1(parent, ctx, params);
13898
13910
  ctx.seen.get(parent).isParent = true;
13899
13911
  }
13900
13912
  }
@@ -13912,7 +13924,7 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
13912
13924
  return _result.schema;
13913
13925
  }
13914
13926
  function extractDefs(ctx, schema) {
13915
- var _a3, _b, _c, _d;
13927
+ var _a3, _b2, _c, _d;
13916
13928
  const root2 = ctx.seen.get(schema);
13917
13929
  if (!root2)
13918
13930
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -13967,7 +13979,7 @@ function extractDefs(ctx, schema) {
13967
13979
  for (const entry of ctx.seen.entries()) {
13968
13980
  const seen2 = entry[1];
13969
13981
  if (seen2.cycle) {
13970
- throw new Error(`Cycle detected: #/${(_b = seen2.cycle) == null ? void 0 : _b.join("/")}/<root>
13982
+ throw new Error(`Cycle detected: #/${(_b2 = seen2.cycle) == null ? void 0 : _b2.join("/")}/<root>
13971
13983
 
13972
13984
  Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
13973
13985
  }
@@ -14004,7 +14016,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14004
14016
  }
14005
14017
  }
14006
14018
  function finalize(ctx, schema) {
14007
- var _a3, _b, _c;
14019
+ var _a3, _b2, _c;
14008
14020
  const root2 = ctx.seen.get(schema);
14009
14021
  if (!root2)
14010
14022
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -14083,7 +14095,7 @@ function finalize(ctx, schema) {
14083
14095
  } else if (ctx.target === "openapi-3.0") ;
14084
14096
  else ;
14085
14097
  if ((_a3 = ctx.external) == null ? void 0 : _a3.uri) {
14086
- const id = (_b = ctx.external.registry.get(schema)) == null ? void 0 : _b.id;
14098
+ const id = (_b2 = ctx.external.registry.get(schema)) == null ? void 0 : _b2.id;
14087
14099
  if (!id)
14088
14100
  throw new Error("Schema is missing an `id` property");
14089
14101
  result.$id = ctx.external.uri(id);
@@ -14177,14 +14189,14 @@ function isTransforming(_schema, _ctx) {
14177
14189
  }
14178
14190
  const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
14179
14191
  const ctx = initializeContext({ ...params, processors });
14180
- process(schema, ctx);
14192
+ process$1(schema, ctx);
14181
14193
  extractDefs(ctx, schema);
14182
14194
  return finalize(ctx, schema);
14183
14195
  };
14184
14196
  const createStandardJSONSchemaMethod = (schema, io2, processors = {}) => (params) => {
14185
14197
  const { libraryOptions, target: target2 } = params ?? {};
14186
14198
  const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io: io2, processors });
14187
- process(schema, ctx);
14199
+ process$1(schema, ctx);
14188
14200
  extractDefs(ctx, schema);
14189
14201
  return finalize(ctx, schema);
14190
14202
  };
@@ -14376,7 +14388,7 @@ const arrayProcessor = (schema, ctx, _json, params) => {
14376
14388
  if (typeof maximum === "number")
14377
14389
  json.maxItems = maximum;
14378
14390
  json.type = "array";
14379
- json.items = process(def.element, ctx, { ...params, path: [...params.path, "items"] });
14391
+ json.items = process$1(def.element, ctx, { ...params, path: [...params.path, "items"] });
14380
14392
  };
14381
14393
  const objectProcessor = (schema, ctx, _json, params) => {
14382
14394
  var _a3;
@@ -14386,7 +14398,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
14386
14398
  json.properties = {};
14387
14399
  const shape = def.shape;
14388
14400
  for (const key in shape) {
14389
- json.properties[key] = process(shape[key], ctx, {
14401
+ json.properties[key] = process$1(shape[key], ctx, {
14390
14402
  ...params,
14391
14403
  path: [...params.path, "properties", key]
14392
14404
  });
@@ -14409,7 +14421,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
14409
14421
  if (ctx.io === "output")
14410
14422
  json.additionalProperties = false;
14411
14423
  } else if (def.catchall) {
14412
- json.additionalProperties = process(def.catchall, ctx, {
14424
+ json.additionalProperties = process$1(def.catchall, ctx, {
14413
14425
  ...params,
14414
14426
  path: [...params.path, "additionalProperties"]
14415
14427
  });
@@ -14418,7 +14430,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
14418
14430
  const unionProcessor = (schema, ctx, json, params) => {
14419
14431
  const def = schema._zod.def;
14420
14432
  const isExclusive = def.inclusive === false;
14421
- const options = def.options.map((x2, i) => process(x2, ctx, {
14433
+ const options = def.options.map((x2, i) => process$1(x2, ctx, {
14422
14434
  ...params,
14423
14435
  path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
14424
14436
  }));
@@ -14430,11 +14442,11 @@ const unionProcessor = (schema, ctx, json, params) => {
14430
14442
  };
14431
14443
  const intersectionProcessor = (schema, ctx, json, params) => {
14432
14444
  const def = schema._zod.def;
14433
- const a2 = process(def.left, ctx, {
14445
+ const a2 = process$1(def.left, ctx, {
14434
14446
  ...params,
14435
14447
  path: [...params.path, "allOf", 0]
14436
14448
  });
14437
- const b2 = process(def.right, ctx, {
14449
+ const b2 = process$1(def.right, ctx, {
14438
14450
  ...params,
14439
14451
  path: [...params.path, "allOf", 1]
14440
14452
  });
@@ -14453,7 +14465,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
14453
14465
  const keyBag = keyType._zod.bag;
14454
14466
  const patterns = keyBag == null ? void 0 : keyBag.patterns;
14455
14467
  if (def.mode === "loose" && patterns && patterns.size > 0) {
14456
- const valueSchema = process(def.valueType, ctx, {
14468
+ const valueSchema = process$1(def.valueType, ctx, {
14457
14469
  ...params,
14458
14470
  path: [...params.path, "patternProperties", "*"]
14459
14471
  });
@@ -14463,12 +14475,12 @@ const recordProcessor = (schema, ctx, _json, params) => {
14463
14475
  }
14464
14476
  } else {
14465
14477
  if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
14466
- json.propertyNames = process(def.keyType, ctx, {
14478
+ json.propertyNames = process$1(def.keyType, ctx, {
14467
14479
  ...params,
14468
14480
  path: [...params.path, "propertyNames"]
14469
14481
  });
14470
14482
  }
14471
- json.additionalProperties = process(def.valueType, ctx, {
14483
+ json.additionalProperties = process$1(def.valueType, ctx, {
14472
14484
  ...params,
14473
14485
  path: [...params.path, "additionalProperties"]
14474
14486
  });
@@ -14483,7 +14495,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
14483
14495
  };
14484
14496
  const nullableProcessor = (schema, ctx, json, params) => {
14485
14497
  const def = schema._zod.def;
14486
- const inner = process(def.innerType, ctx, params);
14498
+ const inner = process$1(def.innerType, ctx, params);
14487
14499
  const seen2 = ctx.seen.get(schema);
14488
14500
  if (ctx.target === "openapi-3.0") {
14489
14501
  seen2.ref = def.innerType;
@@ -14494,20 +14506,20 @@ const nullableProcessor = (schema, ctx, json, params) => {
14494
14506
  };
14495
14507
  const nonoptionalProcessor = (schema, ctx, _json, params) => {
14496
14508
  const def = schema._zod.def;
14497
- process(def.innerType, ctx, params);
14509
+ process$1(def.innerType, ctx, params);
14498
14510
  const seen2 = ctx.seen.get(schema);
14499
14511
  seen2.ref = def.innerType;
14500
14512
  };
14501
14513
  const defaultProcessor = (schema, ctx, json, params) => {
14502
14514
  const def = schema._zod.def;
14503
- process(def.innerType, ctx, params);
14515
+ process$1(def.innerType, ctx, params);
14504
14516
  const seen2 = ctx.seen.get(schema);
14505
14517
  seen2.ref = def.innerType;
14506
14518
  json.default = JSON.parse(JSON.stringify(def.defaultValue));
14507
14519
  };
14508
14520
  const prefaultProcessor = (schema, ctx, json, params) => {
14509
14521
  const def = schema._zod.def;
14510
- process(def.innerType, ctx, params);
14522
+ process$1(def.innerType, ctx, params);
14511
14523
  const seen2 = ctx.seen.get(schema);
14512
14524
  seen2.ref = def.innerType;
14513
14525
  if (ctx.io === "input")
@@ -14515,7 +14527,7 @@ const prefaultProcessor = (schema, ctx, json, params) => {
14515
14527
  };
14516
14528
  const catchProcessor = (schema, ctx, json, params) => {
14517
14529
  const def = schema._zod.def;
14518
- process(def.innerType, ctx, params);
14530
+ process$1(def.innerType, ctx, params);
14519
14531
  const seen2 = ctx.seen.get(schema);
14520
14532
  seen2.ref = def.innerType;
14521
14533
  let catchValue;
@@ -14529,26 +14541,26 @@ const catchProcessor = (schema, ctx, json, params) => {
14529
14541
  const pipeProcessor = (schema, ctx, _json, params) => {
14530
14542
  const def = schema._zod.def;
14531
14543
  const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
14532
- process(innerType, ctx, params);
14544
+ process$1(innerType, ctx, params);
14533
14545
  const seen2 = ctx.seen.get(schema);
14534
14546
  seen2.ref = innerType;
14535
14547
  };
14536
14548
  const readonlyProcessor = (schema, ctx, json, params) => {
14537
14549
  const def = schema._zod.def;
14538
- process(def.innerType, ctx, params);
14550
+ process$1(def.innerType, ctx, params);
14539
14551
  const seen2 = ctx.seen.get(schema);
14540
14552
  seen2.ref = def.innerType;
14541
14553
  json.readOnly = true;
14542
14554
  };
14543
14555
  const optionalProcessor = (schema, ctx, _json, params) => {
14544
14556
  const def = schema._zod.def;
14545
- process(def.innerType, ctx, params);
14557
+ process$1(def.innerType, ctx, params);
14546
14558
  const seen2 = ctx.seen.get(schema);
14547
14559
  seen2.ref = def.innerType;
14548
14560
  };
14549
14561
  const lazyProcessor = (schema, ctx, _json, params) => {
14550
14562
  const innerType = schema._zod.innerType;
14551
- process(innerType, ctx, params);
14563
+ process$1(innerType, ctx, params);
14552
14564
  const seen2 = ctx.seen.get(schema);
14553
14565
  seen2.ref = innerType;
14554
14566
  };
@@ -15595,6 +15607,11 @@ const WorkflowInvokePayloadSchema = object({
15595
15607
  runId: string$2(),
15596
15608
  traceCarrier: TraceCarrierSchema.optional(),
15597
15609
  requestedAt: date().optional(),
15610
+ /** Consecutive replay divergences in this recovery chain and latest position. */
15611
+ replayDivergence: object({
15612
+ eventId: string$2(),
15613
+ count: number$2().int().positive()
15614
+ }).optional(),
15598
15615
  /** Number of times this message has been re-enqueued due to server errors (5xx) */
15599
15616
  serverErrorRetryCount: number$2().int().optional(),
15600
15617
  /** Step ID for inline step execution in combined handler. If provided, the flow execution
@@ -15856,7 +15873,8 @@ function getWebRevivers() {
15856
15873
  // Error family. The reducer side (see
15857
15874
  // `packages/core/src/serialization/reducers/common.ts`) emits a tagged
15858
15875
  // entry for each built-in Error subclass plus the workflow-specific
15859
- // `FatalError` / `RetryableError` and `AggregateError`. Without
15876
+ // `FatalError` / `RetryableError` / `HookConflictError` /
15877
+ // `RuntimeDecryptionError` and `AggregateError`. Without
15860
15878
  // matching revivers here, `devalue.unflatten` throws "Unknown type X"
15861
15879
  // — which surfaces in the web o11y UI as "Failed to load resource
15862
15880
  // details: Unknown type FatalError".
@@ -15902,6 +15920,18 @@ function getWebRevivers() {
15902
15920
  error.stack = value.stack;
15903
15921
  return error;
15904
15922
  },
15923
+ HookConflictError: (value) => {
15924
+ const opts = "cause" in value ? { cause: value.cause } : void 0;
15925
+ const error = new Error(value.message, opts);
15926
+ error.name = "HookConflictError";
15927
+ error.token = value.token;
15928
+ if (value.conflictingRunId !== void 0) {
15929
+ error.conflictingRunId = value.conflictingRunId;
15930
+ }
15931
+ if (value.stack !== void 0)
15932
+ error.stack = value.stack;
15933
+ return error;
15934
+ },
15905
15935
  RetryableError: (value) => {
15906
15936
  const opts = "cause" in value ? { cause: value.cause } : void 0;
15907
15937
  const error = new Error(value.message, opts);
@@ -15913,6 +15943,17 @@ function getWebRevivers() {
15913
15943
  }
15914
15944
  return error;
15915
15945
  },
15946
+ RuntimeDecryptionError: (value) => {
15947
+ const opts = "cause" in value ? { cause: value.cause } : void 0;
15948
+ const error = new Error(value.message, opts);
15949
+ error.name = "RuntimeDecryptionError";
15950
+ if (value.context !== void 0) {
15951
+ error.context = value.context;
15952
+ }
15953
+ if (value.stack !== void 0)
15954
+ error.stack = value.stack;
15955
+ return error;
15956
+ },
15916
15957
  DOMException: (value) => {
15917
15958
  const G2 = globalThis;
15918
15959
  if (typeof G2.DOMException === "function") {
@@ -16121,60 +16162,6 @@ function hasEncryptedFields(resource) {
16121
16162
  }
16122
16163
  return false;
16123
16164
  }
16124
- const KEYFRAMES = `@keyframes wf-spinner-fade{0%{opacity:1}100%{opacity:.15}}`;
16125
- function Spinner({ size: size2 = 14, color: color5 }) {
16126
- const config2 = size2 <= 12 ? {
16127
- angle: 45,
16128
- delays: [-875, -750, -625, -500, -375, -250, -125, 0],
16129
- duration: 1e3,
16130
- lineW: 3,
16131
- lineH: 1.5
16132
- } : size2 <= 16 ? {
16133
- angle: 36,
16134
- delays: [-900, -800, -700, -600, -500, -400, -300, -200, -100, 0],
16135
- duration: 1e3,
16136
- lineW: 4,
16137
- lineH: 1.5
16138
- } : {
16139
- angle: 30,
16140
- delays: [
16141
- -1100,
16142
- -1e3,
16143
- -900,
16144
- -800,
16145
- -700,
16146
- -600,
16147
- -500,
16148
- -400,
16149
- -300,
16150
- -200,
16151
- -100,
16152
- 0
16153
- ],
16154
- duration: 1200,
16155
- lineW: size2 * 0.24,
16156
- lineH: size2 * 0.08
16157
- };
16158
- return jsxRuntimeExports.jsxs("span", { style: {
16159
- display: "inline-flex",
16160
- position: "relative",
16161
- width: size2,
16162
- height: size2
16163
- }, children: [jsxRuntimeExports.jsx("style", { dangerouslySetInnerHTML: { __html: KEYFRAMES } }), config2.delays.map((delay, i) => jsxRuntimeExports.jsx("span", { style: {
16164
- position: "absolute",
16165
- left: "50%",
16166
- top: "50%",
16167
- width: config2.lineW,
16168
- height: config2.lineH,
16169
- marginLeft: -config2.lineW / 2,
16170
- marginTop: -config2.lineH / 2,
16171
- borderRadius: 1,
16172
- backgroundColor: color5 ?? "var(--ds-gray-700)",
16173
- transform: `rotate(${i * config2.angle}deg) translate(${size2 * 0.36}px)`,
16174
- animation: `wf-spinner-fade ${config2.duration}ms linear infinite`,
16175
- animationDelay: `${delay}ms`
16176
- } }, delay))] });
16177
- }
16178
16165
  function __insertCSS(code2) {
16179
16166
  if (typeof document == "undefined") return;
16180
16167
  let head = document.head || document.getElementsByTagName("head")[0];
@@ -18211,6 +18198,60 @@ const buttonVariants$1 = cva([
18211
18198
  function Button$1({ className, variant, size: size2, type = "button", ...props }) {
18212
18199
  return jsxRuntimeExports.jsx("button", { type, className: cn$4(buttonVariants$1({ variant, size: size2, className })), ...props });
18213
18200
  }
18201
+ const KEYFRAMES = `@keyframes wf-spinner-fade{0%{opacity:1}100%{opacity:.15}}`;
18202
+ function Spinner({ size: size2 = 14, color: color5 }) {
18203
+ const config2 = size2 <= 12 ? {
18204
+ angle: 45,
18205
+ delays: [-875, -750, -625, -500, -375, -250, -125, 0],
18206
+ duration: 1e3,
18207
+ lineW: 3,
18208
+ lineH: 1.5
18209
+ } : size2 <= 16 ? {
18210
+ angle: 36,
18211
+ delays: [-900, -800, -700, -600, -500, -400, -300, -200, -100, 0],
18212
+ duration: 1e3,
18213
+ lineW: 4,
18214
+ lineH: 1.5
18215
+ } : {
18216
+ angle: 30,
18217
+ delays: [
18218
+ -1100,
18219
+ -1e3,
18220
+ -900,
18221
+ -800,
18222
+ -700,
18223
+ -600,
18224
+ -500,
18225
+ -400,
18226
+ -300,
18227
+ -200,
18228
+ -100,
18229
+ 0
18230
+ ],
18231
+ duration: 1200,
18232
+ lineW: size2 * 0.24,
18233
+ lineH: size2 * 0.08
18234
+ };
18235
+ return jsxRuntimeExports.jsxs("span", { style: {
18236
+ display: "inline-flex",
18237
+ position: "relative",
18238
+ width: size2,
18239
+ height: size2
18240
+ }, children: [jsxRuntimeExports.jsx("style", { dangerouslySetInnerHTML: { __html: KEYFRAMES } }), config2.delays.map((delay, i) => jsxRuntimeExports.jsx("span", { style: {
18241
+ position: "absolute",
18242
+ left: "50%",
18243
+ top: "50%",
18244
+ width: config2.lineW,
18245
+ height: config2.lineH,
18246
+ marginLeft: -config2.lineW / 2,
18247
+ marginTop: -config2.lineH / 2,
18248
+ borderRadius: 1,
18249
+ backgroundColor: color5 ?? "var(--ds-gray-700)",
18250
+ transform: `rotate(${i * config2.angle}deg) translate(${size2 * 0.36}px)`,
18251
+ animation: `wf-spinner-fade ${config2.duration}ms linear infinite`,
18252
+ animationDelay: `${delay}ms`
18253
+ } }, delay))] });
18254
+ }
18214
18255
  const STREAM_REF_TYPE = "__workflow_stream_ref__";
18215
18256
  const CLASS_INSTANCE_REF_TYPE = "__workflow_class_instance_ref__";
18216
18257
  const RUN_REF_TYPE = "__workflow_run_ref__";
@@ -18445,8 +18486,8 @@ function isObjectLike(value) {
18445
18486
  return typeof value === "object" && value !== null;
18446
18487
  }
18447
18488
  function isSameBytesDisplay(a2, b2) {
18448
- var _a3, _b, _c, _d, _e2, _f;
18449
- return a2.text === b2.text && ((_a3 = a2.decodedFrom) == null ? void 0 : _a3.type) === ((_b = b2.decodedFrom) == null ? void 0 : _b.type) && ((_c = a2.decodedFrom) == null ? void 0 : _c.encoding) === ((_d = b2.decodedFrom) == null ? void 0 : _d.encoding) && ((_e2 = a2.decodedFrom) == null ? void 0 : _e2.rawSummary) === ((_f = b2.decodedFrom) == null ? void 0 : _f.rawSummary);
18489
+ var _a3, _b2, _c, _d, _e2, _f;
18490
+ return a2.text === b2.text && ((_a3 = a2.decodedFrom) == null ? void 0 : _a3.type) === ((_b2 = b2.decodedFrom) == null ? void 0 : _b2.type) && ((_c = a2.decodedFrom) == null ? void 0 : _c.encoding) === ((_d = b2.decodedFrom) == null ? void 0 : _d.encoding) && ((_e2 = a2.decodedFrom) == null ? void 0 : _e2.rawSummary) === ((_f = b2.decodedFrom) == null ? void 0 : _f.rawSummary);
18450
18491
  }
18451
18492
  function isDeepEqual(a2, b2, seen2 = /* @__PURE__ */ new WeakMap()) {
18452
18493
  if (Object.is(a2, b2))
@@ -19025,8 +19066,8 @@ const deserializer = ($2, _2) => {
19025
19066
  case "ArrayBuffer":
19026
19067
  return as(new Uint8Array(value).buffer, value);
19027
19068
  case "DataView": {
19028
- const { buffer } = new Uint8Array(value);
19029
- return as(new DataView(buffer), value);
19069
+ const { buffer: buffer2 } = new Uint8Array(value);
19070
+ return as(new DataView(buffer2), value);
19030
19071
  }
19031
19072
  }
19032
19073
  return as(new env[type](value), index2);
@@ -23609,8 +23650,8 @@ class Tokenizer {
23609
23650
  }
23610
23651
  //Errors
23611
23652
  _err(code2, cpOffset = 0) {
23612
- var _a3, _b;
23613
- (_b = (_a3 = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a3, this.preprocessor.getError(code2, cpOffset));
23653
+ var _a3, _b2;
23654
+ (_b2 = (_a3 = this.handler).onParseError) === null || _b2 === void 0 ? void 0 : _b2.call(_a3, this.preprocessor.getError(code2, cpOffset));
23614
23655
  }
23615
23656
  // NOTE: `offset` may never run across line boundaries.
23616
23657
  getCurrentLocation(offset2) {
@@ -23753,12 +23794,12 @@ class Tokenizer {
23753
23794
  }
23754
23795
  _leaveAttrName() {
23755
23796
  var _a3;
23756
- var _b;
23797
+ var _b2;
23757
23798
  const token = this.currentToken;
23758
23799
  if (getTokenAttr(token, this.currentAttr.name) === null) {
23759
23800
  token.attrs.push(this.currentAttr);
23760
23801
  if (token.location && this.currentLocation) {
23761
- const attrLocations = (_a3 = (_b = token.location).attrs) !== null && _a3 !== void 0 ? _a3 : _b.attrs = /* @__PURE__ */ Object.create(null);
23802
+ const attrLocations = (_a3 = (_b2 = token.location).attrs) !== null && _a3 !== void 0 ? _a3 : _b2.attrs = /* @__PURE__ */ Object.create(null);
23762
23803
  attrLocations[this.currentAttr.name] = this.currentLocation;
23763
23804
  this._leaveAttrValue();
23764
23805
  }
@@ -27103,18 +27144,18 @@ class Parser {
27103
27144
  //Stack events
27104
27145
  /** @internal */
27105
27146
  onItemPush(node2, tid, isTop) {
27106
- var _a3, _b;
27107
- (_b = (_a3 = this.treeAdapter).onItemPush) === null || _b === void 0 ? void 0 : _b.call(_a3, node2);
27147
+ var _a3, _b2;
27148
+ (_b2 = (_a3 = this.treeAdapter).onItemPush) === null || _b2 === void 0 ? void 0 : _b2.call(_a3, node2);
27108
27149
  if (isTop && this.openElements.stackTop > 0)
27109
27150
  this._setContextModes(node2, tid);
27110
27151
  }
27111
27152
  /** @internal */
27112
27153
  onItemPop(node2, isTop) {
27113
- var _a3, _b;
27154
+ var _a3, _b2;
27114
27155
  if (this.options.sourceCodeLocationInfo) {
27115
27156
  this._setEndLocation(node2, this.currentToken);
27116
27157
  }
27117
- (_b = (_a3 = this.treeAdapter).onItemPop) === null || _b === void 0 ? void 0 : _b.call(_a3, node2, this.openElements.current);
27158
+ (_b2 = (_a3 = this.treeAdapter).onItemPop) === null || _b2 === void 0 ? void 0 : _b2.call(_a3, node2, this.openElements.current);
27118
27159
  if (isTop) {
27119
27160
  let current;
27120
27161
  let currentTagId;
@@ -32817,27 +32858,27 @@ function tokenizeWwwAutolink(effects, ok2, nok) {
32817
32858
  }
32818
32859
  function tokenizeProtocolAutolink(effects, ok2, nok) {
32819
32860
  const self2 = this;
32820
- let buffer = "";
32861
+ let buffer2 = "";
32821
32862
  let seen2 = false;
32822
32863
  return protocolStart;
32823
32864
  function protocolStart(code2) {
32824
32865
  if ((code2 === 72 || code2 === 104) && previousProtocol.call(self2, self2.previous) && !previousUnbalanced(self2.events)) {
32825
32866
  effects.enter("literalAutolink");
32826
32867
  effects.enter("literalAutolinkHttp");
32827
- buffer += String.fromCodePoint(code2);
32868
+ buffer2 += String.fromCodePoint(code2);
32828
32869
  effects.consume(code2);
32829
32870
  return protocolPrefixInside;
32830
32871
  }
32831
32872
  return nok(code2);
32832
32873
  }
32833
32874
  function protocolPrefixInside(code2) {
32834
- if (asciiAlpha(code2) && buffer.length < 5) {
32835
- buffer += String.fromCodePoint(code2);
32875
+ if (asciiAlpha(code2) && buffer2.length < 5) {
32876
+ buffer2 += String.fromCodePoint(code2);
32836
32877
  effects.consume(code2);
32837
32878
  return protocolPrefixInside;
32838
32879
  }
32839
32880
  if (code2 === 58) {
32840
- const protocol = buffer.toLowerCase();
32881
+ const protocol = buffer2.toLowerCase();
32841
32882
  if (protocol === "http" || protocol === "https") {
32842
32883
  effects.consume(code2);
32843
32884
  return protocolSlashesInside;
@@ -34767,7 +34808,7 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
34767
34808
  const self2 = this;
34768
34809
  let marker2;
34769
34810
  let closingTag;
34770
- let buffer;
34811
+ let buffer2;
34771
34812
  let index2;
34772
34813
  let markerB;
34773
34814
  return start;
@@ -34797,7 +34838,7 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
34797
34838
  }
34798
34839
  if (asciiAlpha(code2)) {
34799
34840
  effects.consume(code2);
34800
- buffer = String.fromCharCode(code2);
34841
+ buffer2 = String.fromCharCode(code2);
34801
34842
  return tagName;
34802
34843
  }
34803
34844
  return nok(code2);
@@ -34842,7 +34883,7 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
34842
34883
  function tagCloseStart(code2) {
34843
34884
  if (asciiAlpha(code2)) {
34844
34885
  effects.consume(code2);
34845
- buffer = String.fromCharCode(code2);
34886
+ buffer2 = String.fromCharCode(code2);
34846
34887
  return tagName;
34847
34888
  }
34848
34889
  return nok(code2);
@@ -34850,12 +34891,12 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
34850
34891
  function tagName(code2) {
34851
34892
  if (code2 === null || code2 === 47 || code2 === 62 || markdownLineEndingOrSpace(code2)) {
34852
34893
  const slash = code2 === 47;
34853
- const name2 = buffer.toLowerCase();
34894
+ const name2 = buffer2.toLowerCase();
34854
34895
  if (!slash && !closingTag && htmlRawNames.includes(name2)) {
34855
34896
  marker2 = 1;
34856
34897
  return self2.interrupt ? ok2(code2) : continuation(code2);
34857
34898
  }
34858
- if (htmlBlockNames.includes(buffer.toLowerCase())) {
34899
+ if (htmlBlockNames.includes(buffer2.toLowerCase())) {
34859
34900
  marker2 = 6;
34860
34901
  if (slash) {
34861
34902
  effects.consume(code2);
@@ -34868,7 +34909,7 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
34868
34909
  }
34869
34910
  if (code2 === 45 || asciiAlphanumeric(code2)) {
34870
34911
  effects.consume(code2);
34871
- buffer += String.fromCharCode(code2);
34912
+ buffer2 += String.fromCharCode(code2);
34872
34913
  return tagName;
34873
34914
  }
34874
34915
  return nok(code2);
@@ -35035,23 +35076,23 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
35035
35076
  function continuationRawTagOpen(code2) {
35036
35077
  if (code2 === 47) {
35037
35078
  effects.consume(code2);
35038
- buffer = "";
35079
+ buffer2 = "";
35039
35080
  return continuationRawEndTag;
35040
35081
  }
35041
35082
  return continuation(code2);
35042
35083
  }
35043
35084
  function continuationRawEndTag(code2) {
35044
35085
  if (code2 === 62) {
35045
- const name2 = buffer.toLowerCase();
35086
+ const name2 = buffer2.toLowerCase();
35046
35087
  if (htmlRawNames.includes(name2)) {
35047
35088
  effects.consume(code2);
35048
35089
  return continuationClose;
35049
35090
  }
35050
35091
  return continuation(code2);
35051
35092
  }
35052
- if (asciiAlpha(code2) && buffer.length < 8) {
35093
+ if (asciiAlpha(code2) && buffer2.length < 8) {
35053
35094
  effects.consume(code2);
35054
- buffer += String.fromCharCode(code2);
35095
+ buffer2 += String.fromCharCode(code2);
35055
35096
  return continuationRawEndTag;
35056
35097
  }
35057
35098
  return continuation(code2);
@@ -38921,7 +38962,7 @@ function postprocess(events) {
38921
38962
  const search = /[\0\t\n\r]/g;
38922
38963
  function preprocess() {
38923
38964
  let column = 1;
38924
- let buffer = "";
38965
+ let buffer2 = "";
38925
38966
  let start = true;
38926
38967
  let atCarriageReturn;
38927
38968
  return preprocessor;
@@ -38932,9 +38973,9 @@ function preprocess() {
38932
38973
  let startPosition;
38933
38974
  let endPosition;
38934
38975
  let code2;
38935
- value = buffer + (typeof value === "string" ? value.toString() : new TextDecoder(encoding || void 0).decode(value));
38976
+ value = buffer2 + (typeof value === "string" ? value.toString() : new TextDecoder(encoding || void 0).decode(value));
38936
38977
  startPosition = 0;
38937
- buffer = "";
38978
+ buffer2 = "";
38938
38979
  if (start) {
38939
38980
  if (value.charCodeAt(0) === 65279) {
38940
38981
  startPosition++;
@@ -38947,7 +38988,7 @@ function preprocess() {
38947
38988
  endPosition = match && match.index !== void 0 ? match.index : value.length;
38948
38989
  code2 = value.charCodeAt(endPosition);
38949
38990
  if (!match) {
38950
- buffer = value.slice(startPosition);
38991
+ buffer2 = value.slice(startPosition);
38951
38992
  break;
38952
38993
  }
38953
38994
  if (code2 === 10 && startPosition === endPosition && atCarriageReturn) {
@@ -38989,7 +39030,7 @@ function preprocess() {
38989
39030
  }
38990
39031
  if (end) {
38991
39032
  if (atCarriageReturn) chunks.push(-5);
38992
- if (buffer) chunks.push(buffer);
39033
+ if (buffer2) chunks.push(buffer2);
38993
39034
  chunks.push(null);
38994
39035
  }
38995
39036
  return chunks;
@@ -39016,26 +39057,26 @@ function compiler(options) {
39016
39057
  characterEscape: onenterdata,
39017
39058
  characterReference: onenterdata,
39018
39059
  codeFenced: opener(codeFlow),
39019
- codeFencedFenceInfo: buffer,
39020
- codeFencedFenceMeta: buffer,
39021
- codeIndented: opener(codeFlow, buffer),
39022
- codeText: opener(codeText2, buffer),
39060
+ codeFencedFenceInfo: buffer2,
39061
+ codeFencedFenceMeta: buffer2,
39062
+ codeIndented: opener(codeFlow, buffer2),
39063
+ codeText: opener(codeText2, buffer2),
39023
39064
  codeTextData: onenterdata,
39024
39065
  data: onenterdata,
39025
39066
  codeFlowValue: onenterdata,
39026
39067
  definition: opener(definition2),
39027
- definitionDestinationString: buffer,
39028
- definitionLabelString: buffer,
39029
- definitionTitleString: buffer,
39068
+ definitionDestinationString: buffer2,
39069
+ definitionLabelString: buffer2,
39070
+ definitionTitleString: buffer2,
39030
39071
  emphasis: opener(emphasis2),
39031
39072
  hardBreakEscape: opener(hardBreak2),
39032
39073
  hardBreakTrailing: opener(hardBreak2),
39033
- htmlFlow: opener(html2, buffer),
39074
+ htmlFlow: opener(html2, buffer2),
39034
39075
  htmlFlowData: onenterdata,
39035
- htmlText: opener(html2, buffer),
39076
+ htmlText: opener(html2, buffer2),
39036
39077
  htmlTextData: onenterdata,
39037
39078
  image: opener(image2),
39038
- label: buffer,
39079
+ label: buffer2,
39039
39080
  link: opener(link2),
39040
39081
  listItem: opener(listItem2),
39041
39082
  listItemValue: onenterlistitemvalue,
@@ -39043,9 +39084,9 @@ function compiler(options) {
39043
39084
  listUnordered: opener(list2),
39044
39085
  paragraph: opener(paragraph2),
39045
39086
  reference: onenterreference,
39046
- referenceString: buffer,
39047
- resourceDestinationString: buffer,
39048
- resourceTitleString: buffer,
39087
+ referenceString: buffer2,
39088
+ resourceDestinationString: buffer2,
39089
+ resourceTitleString: buffer2,
39049
39090
  setextHeading: opener(heading2),
39050
39091
  strong: opener(strong2),
39051
39092
  thematicBreak: opener(thematicBreak2)
@@ -39116,7 +39157,7 @@ function compiler(options) {
39116
39157
  config: config2,
39117
39158
  enter,
39118
39159
  exit: exit2,
39119
- buffer,
39160
+ buffer: buffer2,
39120
39161
  resume,
39121
39162
  data
39122
39163
  };
@@ -39260,7 +39301,7 @@ function compiler(options) {
39260
39301
  if (and) and.call(this, token);
39261
39302
  }
39262
39303
  }
39263
- function buffer() {
39304
+ function buffer2() {
39264
39305
  this.stack.push({
39265
39306
  type: "fragment",
39266
39307
  children: []
@@ -42208,7 +42249,7 @@ ${c}` : c;
42208
42249
  }
42209
42250
  }
42210
42251
  list(e) {
42211
- var _a3, _b;
42252
+ var _a3, _b2;
42212
42253
  let t = this.rules.block.list.exec(e);
42213
42254
  if (t) {
42214
42255
  let n = t[1].trim(), r2 = n.length > 1, i = { type: "list", raw: "", ordered: r2, start: r2 ? +n.slice(0, -1) : "", loose: false, items: [] };
@@ -42247,7 +42288,7 @@ ${c}` : c;
42247
42288
  i.raw = i.raw.trimEnd();
42248
42289
  for (let l of i.items) {
42249
42290
  if (this.lexer.state.top = false, l.tokens = this.lexer.blockTokens(l.text, []), l.task) {
42250
- if (l.text = l.text.replace(this.rules.other.listReplaceTask, ""), ((_a3 = l.tokens[0]) == null ? void 0 : _a3.type) === "text" || ((_b = l.tokens[0]) == null ? void 0 : _b.type) === "paragraph") {
42291
+ if (l.text = l.text.replace(this.rules.other.listReplaceTask, ""), ((_a3 = l.tokens[0]) == null ? void 0 : _a3.type) === "text" || ((_b2 = l.tokens[0]) == null ? void 0 : _b2.type) === "paragraph") {
42251
42292
  l.tokens[0].raw = l.tokens[0].raw.replace(this.rules.other.listReplaceTask, ""), l.tokens[0].text = l.tokens[0].text.replace(this.rules.other.listReplaceTask, "");
42252
42293
  for (let c = this.lexer.inlineQueue.length - 1; c >= 0; c--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)) {
42253
42294
  this.lexer.inlineQueue[c].src = this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask, "");
@@ -42471,10 +42512,10 @@ var x = class u2 {
42471
42512
  return this.inlineQueue = [], this.tokens;
42472
42513
  }
42473
42514
  blockTokens(e, t = [], n = false) {
42474
- var _a3, _b, _c;
42515
+ var _a3, _b2, _c;
42475
42516
  for (this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); e; ) {
42476
42517
  let r2;
42477
- if ((_b = (_a3 = this.options.extensions) == null ? void 0 : _a3.block) == null ? void 0 : _b.some((s2) => (r2 = s2.call({ lexer: this }, e, t)) ? (e = e.substring(r2.raw.length), t.push(r2), true) : false)) continue;
42518
+ if ((_b2 = (_a3 = this.options.extensions) == null ? void 0 : _a3.block) == null ? void 0 : _b2.some((s2) => (r2 = s2.call({ lexer: this }, e, t)) ? (e = e.substring(r2.raw.length), t.push(r2), true) : false)) continue;
42478
42519
  if (r2 = this.tokenizer.space(e)) {
42479
42520
  e = e.substring(r2.raw.length);
42480
42521
  let s2 = t.at(-1);
@@ -42570,7 +42611,7 @@ var x = class u2 {
42570
42611
  return this.inlineQueue.push({ src: e, tokens: t }), t;
42571
42612
  }
42572
42613
  inlineTokens(e, t = []) {
42573
- var _a3, _b, _c, _d, _e2;
42614
+ var _a3, _b2, _c, _d, _e2;
42574
42615
  let n = e, r2 = null;
42575
42616
  if (this.tokens.links) {
42576
42617
  let o = Object.keys(this.tokens.links);
@@ -42579,7 +42620,7 @@ var x = class u2 {
42579
42620
  for (; (r2 = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null; ) n = n.slice(0, r2.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
42580
42621
  let i;
42581
42622
  for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) i = r2[2] ? r2[2].length : 0, n = n.slice(0, r2.index + i) + "[" + "a".repeat(r2[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
42582
- n = ((_b = (_a3 = this.options.hooks) == null ? void 0 : _a3.emStrongMask) == null ? void 0 : _b.call({ lexer: this }, n)) ?? n;
42623
+ n = ((_b2 = (_a3 = this.options.hooks) == null ? void 0 : _a3.emStrongMask) == null ? void 0 : _b2.call({ lexer: this }, n)) ?? n;
42583
42624
  let s2 = false, a2 = "";
42584
42625
  for (; e; ) {
42585
42626
  s2 || (a2 = ""), s2 = false;
@@ -42816,11 +42857,11 @@ var b = class u3 {
42816
42857
  return new u3(t).parseInline(e);
42817
42858
  }
42818
42859
  parse(e) {
42819
- var _a3, _b;
42860
+ var _a3, _b2;
42820
42861
  let t = "";
42821
42862
  for (let n = 0; n < e.length; n++) {
42822
42863
  let r2 = e[n];
42823
- if ((_b = (_a3 = this.options.extensions) == null ? void 0 : _a3.renderers) == null ? void 0 : _b[r2.type]) {
42864
+ if ((_b2 = (_a3 = this.options.extensions) == null ? void 0 : _a3.renderers) == null ? void 0 : _b2[r2.type]) {
42824
42865
  let s2 = r2, a2 = this.options.extensions.renderers[s2.type].call({ parser: this }, s2);
42825
42866
  if (a2 !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(s2.type)) {
42826
42867
  t += a2 || "";
@@ -42887,11 +42928,11 @@ var b = class u3 {
42887
42928
  return t;
42888
42929
  }
42889
42930
  parseInline(e, t = this.renderer) {
42890
- var _a3, _b;
42931
+ var _a3, _b2;
42891
42932
  let n = "";
42892
42933
  for (let r2 = 0; r2 < e.length; r2++) {
42893
42934
  let i = e[r2];
42894
- if ((_b = (_a3 = this.options.extensions) == null ? void 0 : _a3.renderers) == null ? void 0 : _b[i.type]) {
42935
+ if ((_b2 = (_a3 = this.options.extensions) == null ? void 0 : _a3.renderers) == null ? void 0 : _b2[i.type]) {
42895
42936
  let a2 = this.options.extensions.renderers[i.type].call({ parser: this }, i);
42896
42937
  if (a2 !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
42897
42938
  n += a2 || "";
@@ -42954,7 +42995,7 @@ var b = class u3 {
42954
42995
  return n;
42955
42996
  }
42956
42997
  };
42957
- var P = (_a2 = class {
42998
+ var P = (_b = class {
42958
42999
  constructor(e) {
42959
43000
  __publicField(this, "options");
42960
43001
  __publicField(this, "block");
@@ -42978,7 +43019,7 @@ var P = (_a2 = class {
42978
43019
  provideParser() {
42979
43020
  return this.block ? b.parse : b.parseInline;
42980
43021
  }
42981
- }, __publicField(_a2, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField(_a2, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a2);
43022
+ }, __publicField(_b, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField(_b, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _b);
42982
43023
  var B = class {
42983
43024
  constructor(...e) {
42984
43025
  __publicField(this, "defaults", M());
@@ -42994,7 +43035,7 @@ var B = class {
42994
43035
  this.use(...e);
42995
43036
  }
42996
43037
  walkTokens(e, t) {
42997
- var _a3, _b;
43038
+ var _a3, _b2;
42998
43039
  let n = [];
42999
43040
  for (let r2 of e) switch (n = n.concat(t.call(this, r2)), r2.type) {
43000
43041
  case "table": {
@@ -43010,7 +43051,7 @@ var B = class {
43010
43051
  }
43011
43052
  default: {
43012
43053
  let i = r2;
43013
- ((_b = (_a3 = this.defaults.extensions) == null ? void 0 : _a3.childTokens) == null ? void 0 : _b[i.type]) ? this.defaults.extensions.childTokens[i.type].forEach((s2) => {
43054
+ ((_b2 = (_a3 = this.defaults.extensions) == null ? void 0 : _a3.childTokens) == null ? void 0 : _b2[i.type]) ? this.defaults.extensions.childTokens[i.type].forEach((s2) => {
43014
43055
  let a2 = i[s2].flat(1 / 0);
43015
43056
  n = n.concat(this.walkTokens(a2, t));
43016
43057
  }) : i.tokens && (n = n.concat(this.walkTokens(i.tokens, t)));
@@ -43274,7 +43315,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
43274
43315
  var et = ({ className: e, language: t, style: o, isIncomplete: n, ...s2 }) => jsxRuntimeExports.jsx("div", { className: f("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e), "data-incomplete": n || void 0, "data-language": t, "data-streamdown": "code-block", style: { contentVisibility: "auto", containIntrinsicSize: "auto 200px", ...o }, ...s2 });
43275
43316
  var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
43276
43317
  var ot = ({ language: e }) => jsxRuntimeExports.jsx("div", { className: "flex h-8 items-center text-muted-foreground text-xs", "data-language": e, "data-streamdown": "code-block-header", children: jsxRuntimeExports.jsx("span", { className: "ml-1 font-mono lowercase", children: e }) });
43277
- var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-ByAVJfTI.js"), true ? __vite__mapDeps([3,2]) : void 0).then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
43318
+ var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-B8ZRlnzz.js"), true ? __vite__mapDeps([3,2]) : void 0).then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
43278
43319
  let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
43279
43320
  `).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
43280
43321
  return jsxRuntimeExports.jsx(Se.Provider, { value: { code: e }, children: jsxRuntimeExports.jsxs(et, { isIncomplete: s2, language: t, children: [jsxRuntimeExports.jsx(ot, { language: t }), n ? jsxRuntimeExports.jsx("div", { className: "pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end", children: jsxRuntimeExports.jsx("div", { className: "pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur", "data-streamdown": "code-block-actions", children: n }) }) : null, jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(Qe, { className: o, language: t, result: c, ...r2 }), children: jsxRuntimeExports.jsx(dn, { className: o, code: i, language: t, raw: c, ...r2 }) })] }) });
@@ -44043,6 +44084,13 @@ SidebarDataContext.displayName = "SidebarDataContext";
44043
44084
  function SidebarDataProvider({ value, children: children2 }) {
44044
44085
  return jsxRuntimeExports.jsx(SidebarDataContext.Provider, { value, children: children2 });
44045
44086
  }
44087
+ function useSidebarData() {
44088
+ const ctx = reactExports.useContext(SidebarDataContext);
44089
+ if (!ctx) {
44090
+ throw new Error("useSidebarData must be used within a SidebarDataProvider");
44091
+ }
44092
+ return ctx;
44093
+ }
44046
44094
  function useSidebarDataOptional() {
44047
44095
  return reactExports.useContext(SidebarDataContext);
44048
44096
  }
@@ -45335,10 +45383,10 @@ const IconButton = reactExports.forwardRef(({ className, variant, size: size2, t
45335
45383
  IconButton.displayName = "IconButton";
45336
45384
  const ATTR_FILTER_REGEX = /(?:^|\s)(?<pair>(?<key>[\w.]+):(?<value>\S*))/g;
45337
45385
  function parseSpanSearchQuery(rawQuery) {
45338
- var _a3, _b, _c;
45386
+ var _a3, _b2, _c;
45339
45387
  const attributes = [];
45340
45388
  for (const match of rawQuery.matchAll(ATTR_FILTER_REGEX)) {
45341
- const key = (_b = (_a3 = match.groups) == null ? void 0 : _a3.key) == null ? void 0 : _b.trim();
45389
+ const key = (_b2 = (_a3 = match.groups) == null ? void 0 : _a3.key) == null ? void 0 : _b2.trim();
45342
45390
  if (!key)
45343
45391
  continue;
45344
45392
  attributes.push({
@@ -45929,7 +45977,7 @@ function SegmentBar({ segments }) {
45929
45977
  minWidth: 1,
45930
45978
  background: overrideBg,
45931
45979
  borderColor: overrideBorder
45932
- }, children: showLabel ? jsxRuntimeExports.jsx(DurationLabel, { label }) : null }, `${seg.status}-${i}`);
45980
+ }, children: showLabel ? jsxRuntimeExports.jsx(DurationLabel, { label }) : null }, i);
45933
45981
  }) });
45934
45982
  }
45935
45983
  const TimelineBar = reactExports.memo(function TimelineBar2({ span, viewStart, viewDuration, containerWidth, isSelected, isDimmed, onSelect }) {
@@ -45964,7 +46012,7 @@ const DeltaIndicator = reactExports.memo(function DeltaIndicator2({ leftFrac, ri
45964
46012
  }, children: [jsxRuntimeExports.jsx("div", { className: "absolute left-0 top-0 w-px h-full bg-amber-800" }), jsxRuntimeExports.jsx("div", { className: "absolute left-0 right-0 top-1/2 h-px bg-amber-800" }), jsxRuntimeExports.jsx("div", { className: "absolute right-0 top-0 w-px h-full bg-amber-800" }), jsxRuntimeExports.jsx("span", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-label-12 leading-none whitespace-nowrap rounded-xs px-1 py-0.5 text-gray-100 bg-amber-800", children: label })] });
45965
46013
  });
45966
46014
  function TimelineHeader({ markers: markers2, hoverInfo: hoverInfo2 }) {
45967
- return jsxRuntimeExports.jsx("div", { className: "relative bg-background-100 border-b border-gray-alpha-400 h-10 min-h-10 flex items-end px-4 pb-1", children: jsxRuntimeExports.jsxs("div", { className: "relative h-full flex-1", children: [markers2.map((m2) => jsxRuntimeExports.jsx("span", { className: "absolute bottom-1 font-mono text-xs font-normal leading-4 text-gray-900 whitespace-nowrap", style: { left: `${m2.position * 100}%` }, children: m2.label }, `${m2.position}-${m2.label}`)), hoverInfo2 && jsxRuntimeExports.jsx("span", { className: "absolute top-1 pointer-events-none z-10 font-mono text-[11px] leading-4 text-gray-1000 whitespace-nowrap bg-background-100 border border-gray-alpha-400 rounded px-1 -translate-x-1/2", style: { left: `${hoverInfo2.fraction * 100}%` }, children: hoverInfo2.label })] }) });
46015
+ return jsxRuntimeExports.jsx("div", { className: "relative bg-background-100 border-b border-gray-alpha-400 h-10 min-h-10 flex items-end px-4 pb-1", children: jsxRuntimeExports.jsxs("div", { className: "relative h-full flex-1", children: [markers2.map((m2) => jsxRuntimeExports.jsx("span", { className: "absolute bottom-1 font-mono text-xs font-normal leading-4 text-gray-900 whitespace-nowrap", style: { left: `${m2.position * 100}%` }, children: m2.label }, String(m2.value))), hoverInfo2 && jsxRuntimeExports.jsx("span", { className: "absolute top-1 pointer-events-none z-10 font-mono text-[11px] leading-4 text-gray-1000 whitespace-nowrap bg-background-100 border border-gray-alpha-400 rounded px-1 -translate-x-1/2", style: { left: `${hoverInfo2.fraction * 100}%` }, children: hoverInfo2.label })] }) });
45968
46016
  }
45969
46017
  function Timeline({ spans, viewStart, viewEnd, markers: markers2, selectedId, searchResult, onSelect, hoverFraction, altHeld = false }) {
45970
46018
  const containerRef = reactExports.useRef(null);
@@ -45985,7 +46033,7 @@ function Timeline({ spans, viewStart, viewEnd, markers: markers2, selectedId, se
45985
46033
  const gaps = reactExports.useMemo(() => computeSpanGaps(spans, viewStart, viewEnd), [spans, viewStart, viewEnd]);
45986
46034
  return jsxRuntimeExports.jsxs("div", { ref: containerRef, className: "relative h-full overflow-hidden", style: { minHeight: spans.length * ROW_HEIGHT_PX }, children: [jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "absolute inset-y-0 pointer-events-none", style: TIMELINE_INSET_STYLE, children: markers2.map((marker2) => (
45987
46035
  // Skip the "0s" origin marker since the left edge already implies it.
45988
- Math.abs(marker2.value) > 1e-6 ? jsxRuntimeExports.jsx("div", { className: "absolute top-0 bottom-0 w-px bg-gray-alpha-300", style: { left: `${marker2.position * 100}%` } }, `${marker2.position}-${marker2.label}`) : null
46036
+ Math.abs(marker2.value) > 1e-6 ? jsxRuntimeExports.jsx("div", { className: "absolute top-0 bottom-0 w-px bg-gray-alpha-300", style: { left: `${marker2.position * 100}%` } }, String(marker2.value)) : null
45989
46037
  )) }), hoverFraction != null && jsxRuntimeExports.jsx("div", { className: "absolute inset-y-0 pointer-events-none z-10", style: TIMELINE_INSET_STYLE, children: jsxRuntimeExports.jsx("div", { className: "absolute top-0 bottom-0 w-px bg-gray-alpha-500", style: { left: `${hoverFraction * 100}%` } }) }), jsxRuntimeExports.jsx("div", { style: { transform: `translateY(${start * ROW_HEIGHT_PX}px)` }, children: spans.slice(start, end).map((span) => jsxRuntimeExports.jsx(TimelineBar, { span, viewStart, viewDuration, containerWidth: timelineWidth, isSelected: selectedId === span.spanId, isDimmed: isSpanDimmedBySearch(span.spanId, searchResult), onSelect }, span.spanId)) }), altHeld && jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "absolute inset-y-0 pointer-events-none", style: TIMELINE_INSET_STYLE, children: gaps.map((gap) => jsxRuntimeExports.jsx(DeltaIndicator, { leftFrac: gap.leftFrac, rightFrac: gap.rightFrac, label: formatDuration(gap.gapMs, true), rowIndex: gap.rowIndex }, gap.rowIndex)) })] });
45990
46038
  }
45991
46039
  const TooltipProvider = Provider;
@@ -46179,13 +46227,13 @@ function mergeProps(slotProps, childProps) {
46179
46227
  return { ...slotProps, ...overrideProps };
46180
46228
  }
46181
46229
  function getElementRef(element2) {
46182
- var _a3, _b;
46230
+ var _a3, _b2;
46183
46231
  let getter = (_a3 = Object.getOwnPropertyDescriptor(element2.props, "ref")) == null ? void 0 : _a3.get;
46184
46232
  let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
46185
46233
  if (mayWarn) {
46186
46234
  return element2.ref;
46187
46235
  }
46188
- getter = (_b = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b.get;
46236
+ getter = (_b2 = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b2.get;
46189
46237
  mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
46190
46238
  if (mayWarn) {
46191
46239
  return element2.props.ref;
@@ -46967,15 +47015,15 @@ currentExtensions[0] = (dateString) => {
46967
47015
  currentExtensions[1] = (epochSec) => {
46968
47016
  return new Date(Math.round(epochSec * 1e3));
46969
47017
  };
46970
- currentExtensions[2] = (buffer) => {
47018
+ currentExtensions[2] = (buffer2) => {
46971
47019
  let value = BigInt(0);
46972
- for (let i = 0, l = buffer.byteLength; i < l; i++) {
46973
- value = BigInt(buffer[i]) + (value << BigInt(8));
47020
+ for (let i = 0, l = buffer2.byteLength; i < l; i++) {
47021
+ value = BigInt(buffer2[i]) + (value << BigInt(8));
46974
47022
  }
46975
47023
  return value;
46976
47024
  };
46977
- currentExtensions[3] = (buffer) => {
46978
- return BigInt(-1) - currentExtensions[2](buffer);
47025
+ currentExtensions[3] = (buffer2) => {
47026
+ return BigInt(-1) - currentExtensions[2](buffer2);
46979
47027
  };
46980
47028
  currentExtensions[4] = (fraction) => {
46981
47029
  return +(fraction[1] + "e" + fraction[0]);
@@ -47162,19 +47210,19 @@ function registerTypedArray(TypedArray, tag) {
47162
47210
  if (!littleEndian && bytesPerElement == 1)
47163
47211
  continue;
47164
47212
  let sizeShift = bytesPerElement == 2 ? 1 : bytesPerElement == 4 ? 2 : bytesPerElement == 8 ? 3 : 0;
47165
- currentExtensions[littleEndian ? tag : tag - 4] = bytesPerElement == 1 || littleEndian == isLittleEndianMachine$1 ? (buffer) => {
47213
+ currentExtensions[littleEndian ? tag : tag - 4] = bytesPerElement == 1 || littleEndian == isLittleEndianMachine$1 ? (buffer2) => {
47166
47214
  if (!TypedArray)
47167
47215
  throw new Error("Could not find typed array for code " + tag);
47168
47216
  if (!currentDecoder.copyBuffers) {
47169
- if (bytesPerElement === 1 || bytesPerElement === 2 && !(buffer.byteOffset & 1) || bytesPerElement === 4 && !(buffer.byteOffset & 3) || bytesPerElement === 8 && !(buffer.byteOffset & 7))
47170
- return new TypedArray(buffer.buffer, buffer.byteOffset, buffer.byteLength >> sizeShift);
47217
+ if (bytesPerElement === 1 || bytesPerElement === 2 && !(buffer2.byteOffset & 1) || bytesPerElement === 4 && !(buffer2.byteOffset & 3) || bytesPerElement === 8 && !(buffer2.byteOffset & 7))
47218
+ return new TypedArray(buffer2.buffer, buffer2.byteOffset, buffer2.byteLength >> sizeShift);
47171
47219
  }
47172
- return new TypedArray(Uint8Array.prototype.slice.call(buffer, 0).buffer);
47173
- } : (buffer) => {
47220
+ return new TypedArray(Uint8Array.prototype.slice.call(buffer2, 0).buffer);
47221
+ } : (buffer2) => {
47174
47222
  if (!TypedArray)
47175
47223
  throw new Error("Could not find typed array for code " + tag);
47176
- let dv = new DataView(buffer.buffer, buffer.byteOffset, buffer.byteLength);
47177
- let elements = buffer.length >> sizeShift;
47224
+ let dv = new DataView(buffer2.buffer, buffer2.byteOffset, buffer2.byteLength);
47225
+ let elements = buffer2.length >> sizeShift;
47178
47226
  let ta = new TypedArray(elements);
47179
47227
  let method = dv[dvMethod];
47180
47228
  for (let i = 0; i < elements; i++) {
@@ -48123,8 +48171,8 @@ class Encoder extends Decoder {
48123
48171
  }
48124
48172
  }
48125
48173
  }
48126
- useBuffer(buffer) {
48127
- target = buffer;
48174
+ useBuffer(buffer2) {
48175
+ target = buffer2;
48128
48176
  targetView = new DataView(target.buffer, target.byteOffset, target.byteLength);
48129
48177
  position = 0;
48130
48178
  }
@@ -48390,13 +48438,13 @@ function typedArrayEncoder(tag, size2) {
48390
48438
  encode: function writeExtBuffer(typedArray, encode2) {
48391
48439
  let length = typedArray.byteLength;
48392
48440
  let offset2 = typedArray.byteOffset || 0;
48393
- let buffer = typedArray.buffer || typedArray;
48394
- encode2(hasNodeBuffer ? Buffer$1.from(buffer, offset2, length) : new Uint8Array(buffer, offset2, length));
48441
+ let buffer2 = typedArray.buffer || typedArray;
48442
+ encode2(hasNodeBuffer ? Buffer$1.from(buffer2, offset2, length) : new Uint8Array(buffer2, offset2, length));
48395
48443
  }
48396
48444
  };
48397
48445
  }
48398
- function writeBuffer(buffer, makeRoom) {
48399
- let length = buffer.byteLength;
48446
+ function writeBuffer(buffer2, makeRoom) {
48447
+ let length = buffer2.byteLength;
48400
48448
  if (length < 24) {
48401
48449
  target[position++] = 64 + length;
48402
48450
  } else if (length < 256) {
@@ -48414,7 +48462,7 @@ function writeBuffer(buffer, makeRoom) {
48414
48462
  if (position + length >= target.length) {
48415
48463
  makeRoom(position + length);
48416
48464
  }
48417
- target.set(buffer.buffer ? buffer : new Uint8Array(buffer), position);
48465
+ target.set(buffer2.buffer ? buffer2 : new Uint8Array(buffer2), position);
48418
48466
  position += length;
48419
48467
  }
48420
48468
  function insertIds(serialized, idsToInsert) {
@@ -48467,8 +48515,8 @@ async function rpc(method, params) {
48467
48515
  });
48468
48516
  if (!res.ok) {
48469
48517
  try {
48470
- const buffer2 = await res.arrayBuffer();
48471
- const errorBody = decode(new Uint8Array(buffer2));
48518
+ const buffer22 = await res.arrayBuffer();
48519
+ const errorBody = decode(new Uint8Array(buffer22));
48472
48520
  if ((_a3 = errorBody == null ? void 0 : errorBody.error) == null ? void 0 : _a3.message) {
48473
48521
  throw new Error(errorBody.error.message);
48474
48522
  }
@@ -48481,8 +48529,8 @@ async function rpc(method, params) {
48481
48529
  `RPC call ${method} failed: ${res.status} ${res.statusText}`
48482
48530
  );
48483
48531
  }
48484
- const buffer = await res.arrayBuffer();
48485
- return decode(new Uint8Array(buffer));
48532
+ const buffer2 = await res.arrayBuffer();
48533
+ return decode(new Uint8Array(buffer2));
48486
48534
  }
48487
48535
  async function fetchRuns(worldEnv, params) {
48488
48536
  return rpc("fetchRuns", { worldEnv, params });
@@ -48583,57 +48631,58 @@ export {
48583
48631
  hasEncryptedFields as a7,
48584
48632
  EVENT_DATA_REF_FIELDS as a8,
48585
48633
  useSidebarDataOptional as a9,
48586
- Slottable as aA,
48587
- buttonVariants as aB,
48588
- fetchEvent as aC,
48589
- fetchEventsByCorrelationId as aD,
48590
- isEncryptedData as aE,
48591
- hydrateData as aF,
48592
- getWebRevivers as aG,
48593
- LIVE_UPDATE_INTERVAL_MS as aH,
48594
- getEncryptionKeyForRun as aI,
48595
- StreamViewer as aJ,
48596
- composeRefs as aK,
48597
- useFloating as aL,
48598
- offset as aM,
48599
- shift as aN,
48600
- limitShift as aO,
48601
- flip as aP,
48602
- size as aQ,
48603
- arrow as aR,
48604
- hide as aS,
48605
- autoUpdate as aT,
48606
- cancelRun as aU,
48607
- reenqueueRun as aV,
48608
- wakeUpRun as aW,
48609
- resumeHook as aX,
48610
- recreateRun as aY,
48634
+ Slot as aA,
48635
+ Slottable as aB,
48636
+ buttonVariants as aC,
48637
+ fetchEvent as aD,
48638
+ fetchEventsByCorrelationId as aE,
48639
+ isEncryptedData as aF,
48640
+ hydrateData as aG,
48641
+ getWebRevivers as aH,
48642
+ LIVE_UPDATE_INTERVAL_MS as aI,
48643
+ getEncryptionKeyForRun as aJ,
48644
+ StreamViewer as aK,
48645
+ composeRefs as aL,
48646
+ useFloating as aM,
48647
+ offset as aN,
48648
+ shift as aO,
48649
+ limitShift as aP,
48650
+ flip as aQ,
48651
+ size as aR,
48652
+ arrow as aS,
48653
+ hide as aT,
48654
+ autoUpdate as aU,
48655
+ cancelRun as aV,
48656
+ reenqueueRun as aW,
48657
+ wakeUpRun as aX,
48658
+ resumeHook as aY,
48659
+ recreateRun as aZ,
48611
48660
  clsx as aa,
48612
48661
  useRowWindow as ab,
48613
48662
  isSpanDimmedBySearch as ac,
48614
48663
  ROW_HEIGHT_PX as ad,
48615
48664
  getSpanDurationMs as ae,
48616
- getHighResInMs as af,
48617
- IconButton as ag,
48618
- TooltipProvider as ah,
48619
- ActiveSpanProvider as ai,
48620
- useActiveSpan as aj,
48621
- searchSpans as ak,
48622
- computeRootBounds as al,
48623
- computeTimeMarkers as am,
48665
+ TooltipProvider as af,
48666
+ ActiveSpanProvider as ag,
48667
+ useActiveSpan as ah,
48668
+ useSidebarData as ai,
48669
+ searchSpans as aj,
48670
+ computeRootBounds as ak,
48671
+ computeTimeMarkers as al,
48672
+ getHighResInMs as am,
48624
48673
  TIMELINE_PADDING_PX as an,
48625
48674
  Timeline as ao,
48626
48675
  TimelineHeader as ap,
48627
- Tooltip$1 as aq,
48628
- TooltipTrigger$1 as ar,
48629
- TooltipContent$1 as as,
48630
- SidebarDataProvider as at,
48631
- hydrateResourceIOWithKey as au,
48632
- hydrateResourceIO as av,
48633
- fetchHook as aw,
48634
- fetchStep as ax,
48635
- fetchStreams as ay,
48636
- Slot as az,
48676
+ IconButton as aq,
48677
+ Tooltip$1 as ar,
48678
+ TooltipTrigger$1 as as,
48679
+ TooltipContent$1 as at,
48680
+ SidebarDataProvider as au,
48681
+ hydrateResourceIOWithKey as av,
48682
+ hydrateResourceIO as aw,
48683
+ fetchHook as ax,
48684
+ fetchStep as ay,
48685
+ fetchStreams as az,
48637
48686
  TooltipContent as b,
48638
48687
  createLucideIcon as c,
48639
48688
  cn as d,