@vue/runtime-dom 3.5.17 → 3.5.19

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-dom v3.5.17
2
+ * @vue/runtime-dom v3.5.19
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -777,10 +777,10 @@ function defineCustomElement(options, extraOptions, _createApp) {
777
777
  VueCustomElement.def = Comp;
778
778
  return VueCustomElement;
779
779
  }
780
- /*! #__NO_SIDE_EFFECTS__ */
781
- const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
780
+
781
+ const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
782
782
  return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
783
- };
783
+ });
784
784
  const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
785
785
  };
786
786
  class VueElement extends BaseClass {
@@ -1641,13 +1641,13 @@ const modifierGuards = {
1641
1641
  const withModifiers = (fn, modifiers) => {
1642
1642
  const cache = fn._withMods || (fn._withMods = {});
1643
1643
  const cacheKey = modifiers.join(".");
1644
- return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
1644
+ return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
1645
1645
  for (let i = 0; i < modifiers.length; i++) {
1646
1646
  const guard = modifierGuards[modifiers[i]];
1647
1647
  if (guard && guard(event, modifiers)) return;
1648
1648
  }
1649
1649
  return fn(event, ...args);
1650
- });
1650
+ }));
1651
1651
  };
1652
1652
  const keyNames = {
1653
1653
  esc: "escape",
@@ -1661,7 +1661,7 @@ const keyNames = {
1661
1661
  const withKeys = (fn, modifiers) => {
1662
1662
  const cache = fn._withKeys || (fn._withKeys = {});
1663
1663
  const cacheKey = modifiers.join(".");
1664
- return cache[cacheKey] || (cache[cacheKey] = (event) => {
1664
+ return cache[cacheKey] || (cache[cacheKey] = ((event) => {
1665
1665
  if (!("key" in event)) {
1666
1666
  return;
1667
1667
  }
@@ -1671,7 +1671,7 @@ const withKeys = (fn, modifiers) => {
1671
1671
  )) {
1672
1672
  return fn(event);
1673
1673
  }
1674
- });
1674
+ }));
1675
1675
  };
1676
1676
 
1677
1677
  const rendererOptions = /* @__PURE__ */ shared.extend({ patchProp }, nodeOps);
@@ -1685,13 +1685,13 @@ function ensureHydrationRenderer() {
1685
1685
  enabledHydration = true;
1686
1686
  return renderer;
1687
1687
  }
1688
- const render = (...args) => {
1688
+ const render = ((...args) => {
1689
1689
  ensureRenderer().render(...args);
1690
- };
1691
- const hydrate = (...args) => {
1690
+ });
1691
+ const hydrate = ((...args) => {
1692
1692
  ensureHydrationRenderer().hydrate(...args);
1693
- };
1694
- const createApp = (...args) => {
1693
+ });
1694
+ const createApp = ((...args) => {
1695
1695
  const app = ensureRenderer().createApp(...args);
1696
1696
  {
1697
1697
  injectNativeTagCheck(app);
@@ -1716,8 +1716,8 @@ const createApp = (...args) => {
1716
1716
  return proxy;
1717
1717
  };
1718
1718
  return app;
1719
- };
1720
- const createSSRApp = (...args) => {
1719
+ });
1720
+ const createSSRApp = ((...args) => {
1721
1721
  const app = ensureHydrationRenderer().createApp(...args);
1722
1722
  {
1723
1723
  injectNativeTagCheck(app);
@@ -1731,7 +1731,7 @@ const createSSRApp = (...args) => {
1731
1731
  }
1732
1732
  };
1733
1733
  return app;
1734
- };
1734
+ });
1735
1735
  function resolveRootNamespace(container) {
1736
1736
  if (container instanceof SVGElement) {
1737
1737
  return "svg";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-dom v3.5.17
2
+ * @vue/runtime-dom v3.5.19
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -746,10 +746,10 @@ function defineCustomElement(options, extraOptions, _createApp) {
746
746
  VueCustomElement.def = Comp;
747
747
  return VueCustomElement;
748
748
  }
749
- /*! #__NO_SIDE_EFFECTS__ */
750
- const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
749
+
750
+ const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
751
751
  return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
752
- };
752
+ });
753
753
  const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
754
754
  };
755
755
  class VueElement extends BaseClass {
@@ -1543,13 +1543,13 @@ const modifierGuards = {
1543
1543
  const withModifiers = (fn, modifiers) => {
1544
1544
  const cache = fn._withMods || (fn._withMods = {});
1545
1545
  const cacheKey = modifiers.join(".");
1546
- return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
1546
+ return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
1547
1547
  for (let i = 0; i < modifiers.length; i++) {
1548
1548
  const guard = modifierGuards[modifiers[i]];
1549
1549
  if (guard && guard(event, modifiers)) return;
1550
1550
  }
1551
1551
  return fn(event, ...args);
1552
- });
1552
+ }));
1553
1553
  };
1554
1554
  const keyNames = {
1555
1555
  esc: "escape",
@@ -1563,7 +1563,7 @@ const keyNames = {
1563
1563
  const withKeys = (fn, modifiers) => {
1564
1564
  const cache = fn._withKeys || (fn._withKeys = {});
1565
1565
  const cacheKey = modifiers.join(".");
1566
- return cache[cacheKey] || (cache[cacheKey] = (event) => {
1566
+ return cache[cacheKey] || (cache[cacheKey] = ((event) => {
1567
1567
  if (!("key" in event)) {
1568
1568
  return;
1569
1569
  }
@@ -1573,7 +1573,7 @@ const withKeys = (fn, modifiers) => {
1573
1573
  )) {
1574
1574
  return fn(event);
1575
1575
  }
1576
- });
1576
+ }));
1577
1577
  };
1578
1578
 
1579
1579
  const rendererOptions = /* @__PURE__ */ shared.extend({ patchProp }, nodeOps);
@@ -1587,13 +1587,13 @@ function ensureHydrationRenderer() {
1587
1587
  enabledHydration = true;
1588
1588
  return renderer;
1589
1589
  }
1590
- const render = (...args) => {
1590
+ const render = ((...args) => {
1591
1591
  ensureRenderer().render(...args);
1592
- };
1593
- const hydrate = (...args) => {
1592
+ });
1593
+ const hydrate = ((...args) => {
1594
1594
  ensureHydrationRenderer().hydrate(...args);
1595
- };
1596
- const createApp = (...args) => {
1595
+ });
1596
+ const createApp = ((...args) => {
1597
1597
  const app = ensureRenderer().createApp(...args);
1598
1598
  const { mount } = app;
1599
1599
  app.mount = (containerOrSelector) => {
@@ -1614,8 +1614,8 @@ const createApp = (...args) => {
1614
1614
  return proxy;
1615
1615
  };
1616
1616
  return app;
1617
- };
1618
- const createSSRApp = (...args) => {
1617
+ });
1618
+ const createSSRApp = ((...args) => {
1619
1619
  const app = ensureHydrationRenderer().createApp(...args);
1620
1620
  const { mount } = app;
1621
1621
  app.mount = (containerOrSelector) => {
@@ -1625,7 +1625,7 @@ const createSSRApp = (...args) => {
1625
1625
  }
1626
1626
  };
1627
1627
  return app;
1628
- };
1628
+ });
1629
1629
  function resolveRootNamespace(container) {
1630
1630
  if (container instanceof SVGElement) {
1631
1631
  return "svg";
@@ -181,7 +181,7 @@ export declare function useCssModule(name?: string): Record<string, string>;
181
181
  * Runtime helper for SFC's CSS variable injection feature.
182
182
  * @private
183
183
  */
184
- export declare function useCssVars(getter: (ctx: any) => Record<string, string>): void;
184
+ export declare function useCssVars(getter: (ctx: any) => Record<string, unknown>): void;
185
185
 
186
186
  export interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesHyphen<string | number> {
187
187
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-dom v3.5.17
2
+ * @vue/runtime-dom v3.5.19
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -56,10 +56,10 @@ const isBuiltInDirective = /* @__PURE__ */ makeMap(
56
56
  );
57
57
  const cacheStringFunction = (fn) => {
58
58
  const cache = /* @__PURE__ */ Object.create(null);
59
- return (str) => {
59
+ return ((str) => {
60
60
  const hit = cache[str];
61
61
  return hit || (cache[str] = fn(str));
62
- };
62
+ });
63
63
  };
64
64
  const camelizeRE = /-(\w)/g;
65
65
  const camelize = cacheStringFunction(
@@ -311,6 +311,24 @@ const stringifySymbol = (v, i = "") => {
311
311
  );
312
312
  };
313
313
 
314
+ function normalizeCssVarValue(value) {
315
+ if (value == null) {
316
+ return "initial";
317
+ }
318
+ if (typeof value === "string") {
319
+ return value === "" ? " " : value;
320
+ }
321
+ if (typeof value !== "number" || !Number.isFinite(value)) {
322
+ {
323
+ console.warn(
324
+ "[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:",
325
+ value
326
+ );
327
+ }
328
+ }
329
+ return String(value);
330
+ }
331
+
314
332
  function warn$2(msg, ...args) {
315
333
  console.warn(`[Vue warn] ${msg}`, ...args);
316
334
  }
@@ -1274,7 +1292,13 @@ class MutableReactiveHandler extends BaseReactiveHandler {
1274
1292
  }
1275
1293
  if (!isArray(target) && isRef(oldValue) && !isRef(value)) {
1276
1294
  if (isOldValueReadonly) {
1277
- return false;
1295
+ {
1296
+ warn$2(
1297
+ `Set operation on key "${String(key)}" failed: target is readonly.`,
1298
+ target[key]
1299
+ );
1300
+ }
1301
+ return true;
1278
1302
  } else {
1279
1303
  oldValue.value = value;
1280
1304
  return true;
@@ -2641,7 +2665,9 @@ function rerender(id, newRender) {
2641
2665
  }
2642
2666
  instance.renderCache = [];
2643
2667
  isHmrUpdating = true;
2644
- instance.update();
2668
+ if (!(instance.job.flags & 8)) {
2669
+ instance.update();
2670
+ }
2645
2671
  isHmrUpdating = false;
2646
2672
  });
2647
2673
  }
@@ -3702,7 +3728,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
3702
3728
  const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
3703
3729
  const setupState = owner.setupState;
3704
3730
  const rawSetupState = toRaw(setupState);
3705
- const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => {
3731
+ const canSetSetupRef = setupState === EMPTY_OBJ ? NO : (key) => {
3706
3732
  {
3707
3733
  if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {
3708
3734
  warn$1(
@@ -3715,6 +3741,9 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
3715
3741
  }
3716
3742
  return hasOwn(rawSetupState, key);
3717
3743
  };
3744
+ const canSetRef = (ref2) => {
3745
+ return !knownTemplateRefs.has(ref2);
3746
+ };
3718
3747
  if (oldRef != null && oldRef !== ref) {
3719
3748
  if (isString(oldRef)) {
3720
3749
  refs[oldRef] = null;
@@ -3722,7 +3751,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
3722
3751
  setupState[oldRef] = null;
3723
3752
  }
3724
3753
  } else if (isRef(oldRef)) {
3725
- oldRef.value = null;
3754
+ if (canSetRef(oldRef)) {
3755
+ oldRef.value = null;
3756
+ }
3757
+ const oldRawRefAtom = oldRawRef;
3758
+ if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null;
3726
3759
  }
3727
3760
  }
3728
3761
  if (isFunction(ref)) {
@@ -3733,7 +3766,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
3733
3766
  if (_isString || _isRef) {
3734
3767
  const doSet = () => {
3735
3768
  if (rawRef.f) {
3736
- const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
3769
+ const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : canSetRef(ref) || !rawRef.k ? ref.value : refs[rawRef.k];
3737
3770
  if (isUnmount) {
3738
3771
  isArray(existing) && remove(existing, refValue);
3739
3772
  } else {
@@ -3744,8 +3777,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
3744
3777
  setupState[ref] = refs[ref];
3745
3778
  }
3746
3779
  } else {
3747
- ref.value = [refValue];
3748
- if (rawRef.k) refs[rawRef.k] = ref.value;
3780
+ const newVal = [refValue];
3781
+ if (canSetRef(ref)) {
3782
+ ref.value = newVal;
3783
+ }
3784
+ if (rawRef.k) refs[rawRef.k] = newVal;
3749
3785
  }
3750
3786
  } else if (!existing.includes(refValue)) {
3751
3787
  existing.push(refValue);
@@ -3757,7 +3793,9 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
3757
3793
  setupState[ref] = value;
3758
3794
  }
3759
3795
  } else if (_isRef) {
3760
- ref.value = value;
3796
+ if (canSetRef(ref)) {
3797
+ ref.value = value;
3798
+ }
3761
3799
  if (rawRef.k) refs[rawRef.k] = value;
3762
3800
  } else {
3763
3801
  warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
@@ -4378,10 +4416,8 @@ function resolveCssVars(instance, vnode, expectedMap) {
4378
4416
  if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
4379
4417
  const cssVars = instance.getCssVars();
4380
4418
  for (const key in cssVars) {
4381
- expectedMap.set(
4382
- `--${getEscapedCssVarName(key)}`,
4383
- String(cssVars[key])
4384
- );
4419
+ const value = normalizeCssVarValue(cssVars[key]);
4420
+ expectedMap.set(`--${getEscapedCssVarName(key)}`, value);
4385
4421
  }
4386
4422
  }
4387
4423
  if (vnode === root && instance.parent) {
@@ -4570,16 +4606,19 @@ function defineAsyncComponent(source) {
4570
4606
  __asyncLoader: load,
4571
4607
  __asyncHydrate(el, instance, hydrate) {
4572
4608
  let patched = false;
4573
- const doHydrate = hydrateStrategy ? () => {
4574
- const performHydrate = () => {
4575
- if (patched) {
4609
+ (instance.bu || (instance.bu = [])).push(() => patched = true);
4610
+ const performHydrate = () => {
4611
+ if (patched) {
4612
+ {
4576
4613
  warn$1(
4577
- `Skipping lazy hydration for component '${getComponentName(resolvedComp)}': it was updated before lazy hydration performed.`
4614
+ `Skipping lazy hydration for component '${getComponentName(resolvedComp) || resolvedComp.__file}': it was updated before lazy hydration performed.`
4578
4615
  );
4579
- return;
4580
4616
  }
4581
- hydrate();
4582
- };
4617
+ return;
4618
+ }
4619
+ hydrate();
4620
+ };
4621
+ const doHydrate = hydrateStrategy ? () => {
4583
4622
  const teardown = hydrateStrategy(
4584
4623
  performHydrate,
4585
4624
  (cb) => forEachElement(el, cb)
@@ -4587,8 +4626,7 @@ function defineAsyncComponent(source) {
4587
4626
  if (teardown) {
4588
4627
  (instance.bum || (instance.bum = [])).push(teardown);
4589
4628
  }
4590
- (instance.u || (instance.u = [])).push(() => patched = true);
4591
- } : hydrate;
4629
+ } : performHydrate;
4592
4630
  if (resolvedComp) {
4593
4631
  doHydrate();
4594
4632
  } else {
@@ -5326,10 +5364,10 @@ const PublicInstanceProxyHandlers = {
5326
5364
  return true;
5327
5365
  },
5328
5366
  has({
5329
- _: { data, setupState, accessCache, ctx, appContext, propsOptions }
5367
+ _: { data, setupState, accessCache, ctx, appContext, propsOptions, type }
5330
5368
  }, key) {
5331
- let normalizedProps;
5332
- return !!accessCache[key] || data !== EMPTY_OBJ && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key);
5369
+ let normalizedProps, cssModules;
5370
+ return !!(accessCache[key] || data !== EMPTY_OBJ && key[0] !== "$" && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key) || (cssModules = type.__cssModules) && cssModules[key]);
5333
5371
  },
5334
5372
  defineProperty(target, key, descriptor) {
5335
5373
  if (descriptor.get != null) {
@@ -5467,15 +5505,15 @@ function withDefaults(props, defaults) {
5467
5505
  return null;
5468
5506
  }
5469
5507
  function useSlots() {
5470
- return getContext().slots;
5508
+ return getContext("useSlots").slots;
5471
5509
  }
5472
5510
  function useAttrs() {
5473
- return getContext().attrs;
5511
+ return getContext("useAttrs").attrs;
5474
5512
  }
5475
- function getContext() {
5513
+ function getContext(calledFunctionName) {
5476
5514
  const i = getCurrentInstance();
5477
5515
  if (!i) {
5478
- warn$1(`useContext() called without active instance.`);
5516
+ warn$1(`${calledFunctionName}() called without active instance.`);
5479
5517
  }
5480
5518
  return i.setupContext || (i.setupContext = createSetupContext(i));
5481
5519
  }
@@ -5726,7 +5764,8 @@ function applyOptions(instance) {
5726
5764
  expose.forEach((key) => {
5727
5765
  Object.defineProperty(exposed, key, {
5728
5766
  get: () => publicThis[key],
5729
- set: (val) => publicThis[key] = val
5767
+ set: (val) => publicThis[key] = val,
5768
+ enumerable: true
5730
5769
  });
5731
5770
  });
5732
5771
  } else if (!instance.exposed) {
@@ -6176,7 +6215,7 @@ function provide(key, value) {
6176
6215
  }
6177
6216
  }
6178
6217
  function inject(key, defaultValue, treatDefaultAsFactory = false) {
6179
- const instance = currentInstance || currentRenderingInstance;
6218
+ const instance = getCurrentInstance();
6180
6219
  if (instance || currentApp) {
6181
6220
  let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
6182
6221
  if (provides && key in provides) {
@@ -6191,7 +6230,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
6191
6230
  }
6192
6231
  }
6193
6232
  function hasInjectionContext() {
6194
- return !!(currentInstance || currentRenderingInstance || currentApp);
6233
+ return !!(getCurrentInstance() || currentApp);
6195
6234
  }
6196
6235
 
6197
6236
  const internalObjectProto = {};
@@ -6605,7 +6644,7 @@ function isBoolean(...args) {
6605
6644
  return args.some((elem) => elem.toLowerCase() === "boolean");
6606
6645
  }
6607
6646
 
6608
- const isInternalKey = (key) => key[0] === "_" || key === "$stable";
6647
+ const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
6609
6648
  const normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
6610
6649
  const normalizeSlot = (key, rawSlot, ctx) => {
6611
6650
  if (rawSlot._n) {
@@ -6659,8 +6698,6 @@ const assignSlots = (slots, children, optimized) => {
6659
6698
  const initSlots = (instance, children, optimized) => {
6660
6699
  const slots = instance.slots = createInternalObject();
6661
6700
  if (instance.vnode.shapeFlag & 32) {
6662
- const cacheIndexes = children.__;
6663
- if (cacheIndexes) def(slots, "__", cacheIndexes, true);
6664
6701
  const type = children._;
6665
6702
  if (type) {
6666
6703
  assignSlots(slots, children, optimized);
@@ -6721,12 +6758,10 @@ function endMeasure(instance, type) {
6721
6758
  if (instance.appContext.config.performance && isSupported()) {
6722
6759
  const startTag = `vue-${type}-${instance.uid}`;
6723
6760
  const endTag = startTag + `:end`;
6761
+ const measureName = `<${formatComponentName(instance, instance.type)}> ${type}`;
6724
6762
  perf.mark(endTag);
6725
- perf.measure(
6726
- `<${formatComponentName(instance, instance.type)}> ${type}`,
6727
- startTag,
6728
- endTag
6729
- );
6763
+ perf.measure(measureName, startTag, endTag);
6764
+ perf.clearMeasures(measureName);
6730
6765
  perf.clearMarks(startTag);
6731
6766
  perf.clearMarks(endTag);
6732
6767
  }
@@ -7347,6 +7382,7 @@ function baseCreateRenderer(options, createHydrationFns) {
7347
7382
  if (!initialVNode.el) {
7348
7383
  const placeholder = instance.subTree = createVNode(Comment);
7349
7384
  processCommentNode(null, placeholder, container, anchor);
7385
+ initialVNode.placeholder = placeholder.el;
7350
7386
  }
7351
7387
  } else {
7352
7388
  setupRenderEffect(
@@ -7848,7 +7884,11 @@ function baseCreateRenderer(options, createHydrationFns) {
7848
7884
  for (i = toBePatched - 1; i >= 0; i--) {
7849
7885
  const nextIndex = s2 + i;
7850
7886
  const nextChild = c2[nextIndex];
7851
- const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor;
7887
+ const anchorVNode = c2[nextIndex + 1];
7888
+ const anchor = nextIndex + 1 < l2 ? (
7889
+ // #13559, fallback to el placeholder for unresolved async component
7890
+ anchorVNode.el || anchorVNode.placeholder
7891
+ ) : parentAnchor;
7852
7892
  if (newIndexToOldIndexMap[i] === 0) {
7853
7893
  patch(
7854
7894
  null,
@@ -7913,6 +7953,12 @@ function baseCreateRenderer(options, createHydrationFns) {
7913
7953
  }
7914
7954
  };
7915
7955
  const performLeave = () => {
7956
+ if (el._isLeaving) {
7957
+ el[leaveCbKey](
7958
+ true
7959
+ /* cancelled */
7960
+ );
7961
+ }
7916
7962
  leave(el, () => {
7917
7963
  remove2();
7918
7964
  afterLeave && afterLeave();
@@ -8058,27 +8104,12 @@ function baseCreateRenderer(options, createHydrationFns) {
8058
8104
  if (instance.type.__hmrId) {
8059
8105
  unregisterHMR(instance);
8060
8106
  }
8061
- const {
8062
- bum,
8063
- scope,
8064
- job,
8065
- subTree,
8066
- um,
8067
- m,
8068
- a,
8069
- parent,
8070
- slots: { __: slotCacheKeys }
8071
- } = instance;
8107
+ const { bum, scope, job, subTree, um, m, a } = instance;
8072
8108
  invalidateMount(m);
8073
8109
  invalidateMount(a);
8074
8110
  if (bum) {
8075
8111
  invokeArrayFns(bum);
8076
8112
  }
8077
- if (parent && isArray(slotCacheKeys)) {
8078
- slotCacheKeys.forEach((v) => {
8079
- parent.renderCache[v] = void 0;
8080
- });
8081
- }
8082
8113
  scope.stop();
8083
8114
  if (job) {
8084
8115
  job.flags |= 8;
@@ -8090,12 +8121,6 @@ function baseCreateRenderer(options, createHydrationFns) {
8090
8121
  queuePostRenderEffect(() => {
8091
8122
  instance.isUnmounted = true;
8092
8123
  }, parentSuspense);
8093
- if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) {
8094
- parentSuspense.deps--;
8095
- if (parentSuspense.deps === 0) {
8096
- parentSuspense.resolve();
8097
- }
8098
- }
8099
8124
  {
8100
8125
  devtoolsComponentRemoved(instance);
8101
8126
  }
@@ -8196,7 +8221,8 @@ function traverseStaticChildren(n1, n2, shallow = false) {
8196
8221
  if (!shallow && c2.patchFlag !== -2)
8197
8222
  traverseStaticChildren(c1, c2);
8198
8223
  }
8199
- if (c2.type === Text) {
8224
+ if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
8225
+ c2.patchFlag !== -1) {
8200
8226
  c2.el = c1.el;
8201
8227
  }
8202
8228
  if (c2.type === Comment && !c2.el) {
@@ -9741,6 +9767,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
9741
9767
  suspense: vnode.suspense,
9742
9768
  ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
9743
9769
  ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
9770
+ placeholder: vnode.placeholder,
9744
9771
  el: vnode.el,
9745
9772
  anchor: vnode.anchor,
9746
9773
  ctx: vnode.ctx,
@@ -10532,7 +10559,7 @@ function isMemoSame(cached, memo) {
10532
10559
  return true;
10533
10560
  }
10534
10561
 
10535
- const version = "3.5.17";
10562
+ const version = "3.5.19";
10536
10563
  const warn = warn$1 ;
10537
10564
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10538
10565
  const devtools = devtools$1 ;
@@ -11045,8 +11072,9 @@ function setVarsOnNode(el, vars) {
11045
11072
  const style = el.style;
11046
11073
  let cssText = "";
11047
11074
  for (const key in vars) {
11048
- style.setProperty(`--${key}`, vars[key]);
11049
- cssText += `--${key}: ${vars[key]};`;
11075
+ const value = normalizeCssVarValue(vars[key]);
11076
+ style.setProperty(`--${key}`, value);
11077
+ cssText += `--${key}: ${value};`;
11050
11078
  }
11051
11079
  style[CSS_VAR_TEXT] = cssText;
11052
11080
  }
@@ -11388,10 +11416,10 @@ function defineCustomElement(options, extraOptions, _createApp) {
11388
11416
  VueCustomElement.def = Comp;
11389
11417
  return VueCustomElement;
11390
11418
  }
11391
- /*! #__NO_SIDE_EFFECTS__ */
11392
- const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
11419
+
11420
+ const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
11393
11421
  return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
11394
- };
11422
+ });
11395
11423
  const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
11396
11424
  };
11397
11425
  class VueElement extends BaseClass {
@@ -12252,13 +12280,13 @@ const modifierGuards = {
12252
12280
  const withModifiers = (fn, modifiers) => {
12253
12281
  const cache = fn._withMods || (fn._withMods = {});
12254
12282
  const cacheKey = modifiers.join(".");
12255
- return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
12283
+ return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
12256
12284
  for (let i = 0; i < modifiers.length; i++) {
12257
12285
  const guard = modifierGuards[modifiers[i]];
12258
12286
  if (guard && guard(event, modifiers)) return;
12259
12287
  }
12260
12288
  return fn(event, ...args);
12261
- });
12289
+ }));
12262
12290
  };
12263
12291
  const keyNames = {
12264
12292
  esc: "escape",
@@ -12272,7 +12300,7 @@ const keyNames = {
12272
12300
  const withKeys = (fn, modifiers) => {
12273
12301
  const cache = fn._withKeys || (fn._withKeys = {});
12274
12302
  const cacheKey = modifiers.join(".");
12275
- return cache[cacheKey] || (cache[cacheKey] = (event) => {
12303
+ return cache[cacheKey] || (cache[cacheKey] = ((event) => {
12276
12304
  if (!("key" in event)) {
12277
12305
  return;
12278
12306
  }
@@ -12282,7 +12310,7 @@ const withKeys = (fn, modifiers) => {
12282
12310
  )) {
12283
12311
  return fn(event);
12284
12312
  }
12285
- });
12313
+ }));
12286
12314
  };
12287
12315
 
12288
12316
  const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
@@ -12296,13 +12324,13 @@ function ensureHydrationRenderer() {
12296
12324
  enabledHydration = true;
12297
12325
  return renderer;
12298
12326
  }
12299
- const render = (...args) => {
12327
+ const render = ((...args) => {
12300
12328
  ensureRenderer().render(...args);
12301
- };
12302
- const hydrate = (...args) => {
12329
+ });
12330
+ const hydrate = ((...args) => {
12303
12331
  ensureHydrationRenderer().hydrate(...args);
12304
- };
12305
- const createApp = (...args) => {
12332
+ });
12333
+ const createApp = ((...args) => {
12306
12334
  const app = ensureRenderer().createApp(...args);
12307
12335
  {
12308
12336
  injectNativeTagCheck(app);
@@ -12327,8 +12355,8 @@ const createApp = (...args) => {
12327
12355
  return proxy;
12328
12356
  };
12329
12357
  return app;
12330
- };
12331
- const createSSRApp = (...args) => {
12358
+ });
12359
+ const createSSRApp = ((...args) => {
12332
12360
  const app = ensureHydrationRenderer().createApp(...args);
12333
12361
  {
12334
12362
  injectNativeTagCheck(app);
@@ -12342,7 +12370,7 @@ const createSSRApp = (...args) => {
12342
12370
  }
12343
12371
  };
12344
12372
  return app;
12345
- };
12373
+ });
12346
12374
  function resolveRootNamespace(container) {
12347
12375
  if (container instanceof SVGElement) {
12348
12376
  return "svg";