@vue/compat 3.4.0-rc.1 → 3.4.0-rc.2

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.
@@ -345,7 +345,7 @@ const stringifySymbol = (v, i = "") => {
345
345
  return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
346
346
  };
347
347
 
348
- function warn$1(msg, ...args) {
348
+ function warn$2(msg, ...args) {
349
349
  console.warn(`[Vue warn] ${msg}`, ...args);
350
350
  }
351
351
 
@@ -385,7 +385,7 @@ class EffectScope {
385
385
  activeEffectScope = currentEffectScope;
386
386
  }
387
387
  } else if (!!(process.env.NODE_ENV !== "production")) {
388
- warn$1(`cannot run an inactive effect scope.`);
388
+ warn$2(`cannot run an inactive effect scope.`);
389
389
  }
390
390
  }
391
391
  /**
@@ -443,7 +443,7 @@ function onScopeDispose(fn) {
443
443
  if (activeEffectScope) {
444
444
  activeEffectScope.cleanups.push(fn);
445
445
  } else if (!!(process.env.NODE_ENV !== "production")) {
446
- warn$1(
446
+ warn$2(
447
447
  `onScopeDispose() is called when there is no active effect scope to be associated with.`
448
448
  );
449
449
  }
@@ -891,7 +891,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
891
891
  }
892
892
  set(target, key) {
893
893
  if (!!(process.env.NODE_ENV !== "production")) {
894
- warn$1(
894
+ warn$2(
895
895
  `Set operation on key "${String(key)}" failed: target is readonly.`,
896
896
  target
897
897
  );
@@ -900,7 +900,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
900
900
  }
901
901
  deleteProperty(target, key) {
902
902
  if (!!(process.env.NODE_ENV !== "production")) {
903
- warn$1(
903
+ warn$2(
904
904
  `Delete operation on key "${String(key)}" failed: target is readonly.`,
905
905
  target
906
906
  );
@@ -1558,9 +1558,7 @@ function pushWarningContext(vnode) {
1558
1558
  function popWarningContext() {
1559
1559
  stack$1.pop();
1560
1560
  }
1561
- function warn(msg, ...args) {
1562
- if (!!!(process.env.NODE_ENV !== "production"))
1563
- return;
1561
+ function warn$1(msg, ...args) {
1564
1562
  pauseTracking();
1565
1563
  const instance = stack$1.length ? stack$1[stack$1.length - 1].component : null;
1566
1564
  const appWarnHandler = instance && instance.appContext.config.warnHandler;
@@ -1663,9 +1661,9 @@ function assertNumber(val, type) {
1663
1661
  if (val === void 0) {
1664
1662
  return;
1665
1663
  } else if (typeof val !== "number") {
1666
- warn(`${type} is not a valid number - got ${JSON.stringify(val)}.`);
1664
+ warn$1(`${type} is not a valid number - got ${JSON.stringify(val)}.`);
1667
1665
  } else if (isNaN(val)) {
1668
- warn(`${type} is NaN - the duration expression might be incorrect.`);
1666
+ warn$1(`${type} is NaN - the duration expression might be incorrect.`);
1669
1667
  }
1670
1668
  }
1671
1669
 
@@ -1793,7 +1791,7 @@ function logError(err, type, contextVNode, throwInDev = true) {
1793
1791
  if (contextVNode) {
1794
1792
  pushWarningContext(contextVNode);
1795
1793
  }
1796
- warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
1794
+ warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
1797
1795
  if (contextVNode) {
1798
1796
  popWarningContext();
1799
1797
  }
@@ -2093,22 +2091,22 @@ function tryWrap(fn) {
2093
2091
  };
2094
2092
  }
2095
2093
 
2096
- let devtools;
2094
+ let devtools$1;
2097
2095
  let buffer = [];
2098
2096
  let devtoolsNotInstalled = false;
2099
2097
  function emit$2(event, ...args) {
2100
- if (devtools) {
2101
- devtools.emit(event, ...args);
2098
+ if (devtools$1) {
2099
+ devtools$1.emit(event, ...args);
2102
2100
  } else if (!devtoolsNotInstalled) {
2103
2101
  buffer.push({ event, args });
2104
2102
  }
2105
2103
  }
2106
- function setDevtoolsHook(hook, target) {
2104
+ function setDevtoolsHook$1(hook, target) {
2107
2105
  var _a, _b;
2108
- devtools = hook;
2109
- if (devtools) {
2110
- devtools.enabled = true;
2111
- buffer.forEach(({ event, args }) => devtools.emit(event, ...args));
2106
+ devtools$1 = hook;
2107
+ if (devtools$1) {
2108
+ devtools$1.enabled = true;
2109
+ buffer.forEach(({ event, args }) => devtools$1.emit(event, ...args));
2112
2110
  buffer = [];
2113
2111
  } else if (
2114
2112
  // handle late devtools injection - only do this if we are in an actual
@@ -2120,10 +2118,10 @@ function setDevtoolsHook(hook, target) {
2120
2118
  ) {
2121
2119
  const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
2122
2120
  replay.push((newHook) => {
2123
- setDevtoolsHook(newHook, target);
2121
+ setDevtoolsHook$1(newHook, target);
2124
2122
  });
2125
2123
  setTimeout(() => {
2126
- if (!devtools) {
2124
+ if (!devtools$1) {
2127
2125
  target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;
2128
2126
  devtoolsNotInstalled = true;
2129
2127
  buffer = [];
@@ -2153,8 +2151,8 @@ const _devtoolsComponentRemoved = /* @__PURE__ */ createDevtoolsComponentHook(
2153
2151
  "component:removed" /* COMPONENT_REMOVED */
2154
2152
  );
2155
2153
  const devtoolsComponentRemoved = (component) => {
2156
- if (devtools && typeof devtools.cleanupBuffer === "function" && // remove the component if it wasn't buffered
2157
- !devtools.cleanupBuffer(component)) {
2154
+ if (devtools$1 && typeof devtools$1.cleanupBuffer === "function" && // remove the component if it wasn't buffered
2155
+ !devtools$1.cleanupBuffer(component)) {
2158
2156
  _devtoolsComponentRemoved(component);
2159
2157
  }
2160
2158
  };
@@ -2456,12 +2454,12 @@ function warnDeprecation$1(key, instance, ...args) {
2456
2454
  }
2457
2455
  instanceWarned[componentDupKey] = true;
2458
2456
  if (dupKey in warnCount) {
2459
- warn(`(deprecation ${key}) (${++warnCount[dupKey] + 1})`);
2457
+ warn$1(`(deprecation ${key}) (${++warnCount[dupKey] + 1})`);
2460
2458
  return;
2461
2459
  }
2462
2460
  warnCount[dupKey] = 0;
2463
2461
  const { message, link } = deprecationData$1[key];
2464
- warn(
2462
+ warn$1(
2465
2463
  `(deprecation ${key}) ${typeof message === "function" ? message(...args) : message}${link ? `
2466
2464
  Details: ${link}` : ``}`
2467
2465
  );
@@ -2491,19 +2489,19 @@ function validateCompatConfig(config, instance) {
2491
2489
  if (key !== "MODE" && !(key in deprecationData$1) && !(key in warnedInvalidKeys)) {
2492
2490
  if (key.startsWith("COMPILER_")) {
2493
2491
  if (isRuntimeOnly()) {
2494
- warn(
2492
+ warn$1(
2495
2493
  `Deprecation config "${key}" is compiler-specific and you are running a runtime-only build of Vue. This deprecation should be configured via compiler options in your build setup instead.
2496
2494
  Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
2497
2495
  );
2498
2496
  }
2499
2497
  } else {
2500
- warn(`Invalid deprecation config "${key}".`);
2498
+ warn$1(`Invalid deprecation config "${key}".`);
2501
2499
  }
2502
2500
  warnedInvalidKeys[key] = true;
2503
2501
  }
2504
2502
  }
2505
2503
  if (instance && config["OPTIONS_DATA_MERGE"] != null) {
2506
- warn(
2504
+ warn$1(
2507
2505
  `Deprecation config "${"OPTIONS_DATA_MERGE"}" can only be configured globally.`
2508
2506
  );
2509
2507
  }
@@ -2693,7 +2691,7 @@ function emit(instance, event, ...rawArgs) {
2693
2691
  if (emitsOptions) {
2694
2692
  if (!(event in emitsOptions) && !(event.startsWith("hook:") || event.startsWith(compatModelEventPrefix))) {
2695
2693
  if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {
2696
- warn(
2694
+ warn$1(
2697
2695
  `Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(event)}" prop.`
2698
2696
  );
2699
2697
  }
@@ -2702,7 +2700,7 @@ function emit(instance, event, ...rawArgs) {
2702
2700
  if (isFunction(validator)) {
2703
2701
  const isValid = validator(...rawArgs);
2704
2702
  if (!isValid) {
2705
- warn(
2703
+ warn$1(
2706
2704
  `Invalid event arguments: event validation failed for event "${event}".`
2707
2705
  );
2708
2706
  }
@@ -2729,7 +2727,7 @@ function emit(instance, event, ...rawArgs) {
2729
2727
  if (!!(process.env.NODE_ENV !== "production")) {
2730
2728
  const lowerCaseEvent = event.toLowerCase();
2731
2729
  if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {
2732
- warn(
2730
+ warn$1(
2733
2731
  `Event "${lowerCaseEvent}" is emitted in component ${formatComponentName(
2734
2732
  instance,
2735
2733
  instance.type
@@ -2910,7 +2908,7 @@ function renderComponentRoot(instance) {
2910
2908
  const proxyToUse = withProxy || proxy;
2911
2909
  const thisProxy = !!(process.env.NODE_ENV !== "production") && setupState.__isScriptSetup ? new Proxy(proxyToUse, {
2912
2910
  get(target, key, receiver) {
2913
- warn(
2911
+ warn$1(
2914
2912
  `Property '${String(
2915
2913
  key
2916
2914
  )}' was accessed via 'this'. Avoid using 'this' in templates.`
@@ -2991,12 +2989,12 @@ function renderComponentRoot(instance) {
2991
2989
  }
2992
2990
  }
2993
2991
  if (extraAttrs.length) {
2994
- warn(
2992
+ warn$1(
2995
2993
  `Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`
2996
2994
  );
2997
2995
  }
2998
2996
  if (eventAttrs.length) {
2999
- warn(
2997
+ warn$1(
3000
2998
  `Extraneous non-emits event listeners (${eventAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`
3001
2999
  );
3002
3000
  }
@@ -3021,7 +3019,7 @@ function renderComponentRoot(instance) {
3021
3019
  }
3022
3020
  if (vnode.dirs) {
3023
3021
  if (!!(process.env.NODE_ENV !== "production") && !isElementRoot(root)) {
3024
- warn(
3022
+ warn$1(
3025
3023
  `Runtime directive used on component with non-element root node. The directives will not function as intended.`
3026
3024
  );
3027
3025
  }
@@ -3030,7 +3028,7 @@ function renderComponentRoot(instance) {
3030
3028
  }
3031
3029
  if (vnode.transition) {
3032
3030
  if (!!(process.env.NODE_ENV !== "production") && !isElementRoot(root)) {
3033
- warn(
3031
+ warn$1(
3034
3032
  `Component inside <Transition> renders non-element root node that cannot be animated.`
3035
3033
  );
3036
3034
  }
@@ -3227,11 +3225,11 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
3227
3225
  if (!!(process.env.NODE_ENV !== "production") && warnMissing && !res) {
3228
3226
  const extra = type === COMPONENTS ? `
3229
3227
  If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
3230
- warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
3228
+ warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
3231
3229
  }
3232
3230
  return res;
3233
3231
  } else if (!!(process.env.NODE_ENV !== "production")) {
3234
- warn(
3232
+ warn$1(
3235
3233
  `resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
3236
3234
  );
3237
3235
  }
@@ -3787,7 +3785,7 @@ function normalizeSuspenseSlot(s) {
3787
3785
  if (isArray(s)) {
3788
3786
  const singleChild = filterSingleRoot(s);
3789
3787
  if (!!(process.env.NODE_ENV !== "production") && !singleChild && s.filter((child) => child !== NULL_DYNAMIC_COMPONENT).length > 0) {
3790
- warn(`<Suspense> slots expect a single root node.`);
3788
+ warn$1(`<Suspense> slots expect a single root node.`);
3791
3789
  }
3792
3790
  s = singleChild;
3793
3791
  }
@@ -3880,7 +3878,7 @@ function watchSyncEffect(effect, options) {
3880
3878
  const INITIAL_WATCHER_VALUE = {};
3881
3879
  function watch(source, cb, options) {
3882
3880
  if (!!(process.env.NODE_ENV !== "production") && !isFunction(cb)) {
3883
- warn(
3881
+ warn$1(
3884
3882
  `\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`
3885
3883
  );
3886
3884
  }
@@ -3897,23 +3895,23 @@ function doWatch(source, cb, { immediate, deep, flush, once, onTrack, onTrigger
3897
3895
  }
3898
3896
  if (!!(process.env.NODE_ENV !== "production") && !cb) {
3899
3897
  if (immediate !== void 0) {
3900
- warn(
3898
+ warn$1(
3901
3899
  `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
3902
3900
  );
3903
3901
  }
3904
3902
  if (deep !== void 0) {
3905
- warn(
3903
+ warn$1(
3906
3904
  `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
3907
3905
  );
3908
3906
  }
3909
3907
  if (once !== void 0) {
3910
- warn(
3908
+ warn$1(
3911
3909
  `watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
3912
3910
  );
3913
3911
  }
3914
3912
  }
3915
3913
  const warnInvalidSource = (s) => {
3916
- warn(
3914
+ warn$1(
3917
3915
  `Invalid watch source: `,
3918
3916
  s,
3919
3917
  `A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`
@@ -4129,13 +4127,13 @@ function traverse(value, seen) {
4129
4127
 
4130
4128
  function validateDirectiveName(name) {
4131
4129
  if (isBuiltInDirective(name)) {
4132
- warn("Do not use built-in directive ids as custom directive id: " + name);
4130
+ warn$1("Do not use built-in directive ids as custom directive id: " + name);
4133
4131
  }
4134
4132
  }
4135
4133
  function withDirectives(vnode, directives) {
4136
4134
  const internalInstance = currentRenderingInstance;
4137
4135
  if (internalInstance === null) {
4138
- !!(process.env.NODE_ENV !== "production") && warn(`withDirectives can only be used inside render functions.`);
4136
+ !!(process.env.NODE_ENV !== "production") && warn$1(`withDirectives can only be used inside render functions.`);
4139
4137
  return vnode;
4140
4138
  }
4141
4139
  const instance = getExposeProxy(internalInstance) || internalInstance.proxy;
@@ -4245,7 +4243,7 @@ const BaseTransitionImpl = {
4245
4243
  for (const c of children) {
4246
4244
  if (c.type !== Comment) {
4247
4245
  if (!!(process.env.NODE_ENV !== "production") && hasFound) {
4248
- warn(
4246
+ warn$1(
4249
4247
  "<transition> can only be used on a single element or component. Use <transition-group> for lists."
4250
4248
  );
4251
4249
  break;
@@ -4260,7 +4258,7 @@ const BaseTransitionImpl = {
4260
4258
  const rawProps = toRaw(props);
4261
4259
  const { mode } = rawProps;
4262
4260
  if (!!(process.env.NODE_ENV !== "production") && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
4263
- warn(`invalid <transition> mode: ${mode}`);
4261
+ warn$1(`invalid <transition> mode: ${mode}`);
4264
4262
  }
4265
4263
  if (state.isLeaving) {
4266
4264
  return emptyPlaceholder(child);
@@ -4578,7 +4576,7 @@ function defineAsyncComponent(source) {
4578
4576
  return pendingRequest;
4579
4577
  }
4580
4578
  if (!!(process.env.NODE_ENV !== "production") && !comp) {
4581
- warn(
4579
+ warn$1(
4582
4580
  `Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.`
4583
4581
  );
4584
4582
  }
@@ -4818,7 +4816,7 @@ const KeepAliveImpl = {
4818
4816
  const rawVNode = children[0];
4819
4817
  if (children.length > 1) {
4820
4818
  if (!!(process.env.NODE_ENV !== "production")) {
4821
- warn(`KeepAlive should contain exactly one component child.`);
4819
+ warn$1(`KeepAlive should contain exactly one component child.`);
4822
4820
  }
4823
4821
  current = null;
4824
4822
  return children;
@@ -4950,7 +4948,7 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
4950
4948
  return wrappedHook;
4951
4949
  } else if (!!(process.env.NODE_ENV !== "production")) {
4952
4950
  const apiName = toHandlerKey(ErrorTypeStrings$1[type].replace(/ hook$/, ""));
4953
- warn(
4951
+ warn$1(
4954
4952
  `${apiName} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup().` + (` If you are using async setup(), make sure to register lifecycle hooks before the first await statement.` )
4955
4953
  );
4956
4954
  }
@@ -5272,7 +5270,7 @@ function renderList(source, renderItem, cache, index) {
5272
5270
  }
5273
5271
  } else if (typeof source === "number") {
5274
5272
  if (!!(process.env.NODE_ENV !== "production") && !Number.isInteger(source)) {
5275
- warn(`The v-for range expect an integer value but got ${source}.`);
5273
+ warn$1(`The v-for range expect an integer value but got ${source}.`);
5276
5274
  }
5277
5275
  ret = new Array(source);
5278
5276
  for (let i = 0; i < source; i++) {
@@ -5328,7 +5326,7 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
5328
5326
  }
5329
5327
  let slot = slots[name];
5330
5328
  if (!!(process.env.NODE_ENV !== "production") && slot && slot.length > 1) {
5331
- warn(
5329
+ warn$1(
5332
5330
  `SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.`
5333
5331
  );
5334
5332
  slot = () => [];
@@ -5371,7 +5369,7 @@ function ensureValidVNode(vnodes) {
5371
5369
  function toHandlers(obj, preserveCaseIfNecessary) {
5372
5370
  const ret = {};
5373
5371
  if (!!(process.env.NODE_ENV !== "production") && !isObject(obj)) {
5374
- warn(`v-on with no argument expects an object value.`);
5372
+ warn$1(`v-on with no argument expects an object value.`);
5375
5373
  return ret;
5376
5374
  }
5377
5375
  for (const key in obj) {
@@ -5700,13 +5698,13 @@ const PublicInstanceProxyHandlers = {
5700
5698
  // to infinite warning loop
5701
5699
  key.indexOf("__v") !== 0)) {
5702
5700
  if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {
5703
- warn(
5701
+ warn$1(
5704
5702
  `Property ${JSON.stringify(
5705
5703
  key
5706
5704
  )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
5707
5705
  );
5708
5706
  } else if (instance === currentRenderingInstance) {
5709
- warn(
5707
+ warn$1(
5710
5708
  `Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`
5711
5709
  );
5712
5710
  }
@@ -5718,17 +5716,17 @@ const PublicInstanceProxyHandlers = {
5718
5716
  setupState[key] = value;
5719
5717
  return true;
5720
5718
  } else if (!!(process.env.NODE_ENV !== "production") && setupState.__isScriptSetup && hasOwn(setupState, key)) {
5721
- warn(`Cannot mutate <script setup> binding "${key}" from Options API.`);
5719
+ warn$1(`Cannot mutate <script setup> binding "${key}" from Options API.`);
5722
5720
  return false;
5723
5721
  } else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
5724
5722
  data[key] = value;
5725
5723
  return true;
5726
5724
  } else if (hasOwn(instance.props, key)) {
5727
- !!(process.env.NODE_ENV !== "production") && warn(`Attempting to mutate prop "${key}". Props are readonly.`);
5725
+ !!(process.env.NODE_ENV !== "production") && warn$1(`Attempting to mutate prop "${key}". Props are readonly.`);
5728
5726
  return false;
5729
5727
  }
5730
5728
  if (key[0] === "$" && key.slice(1) in instance) {
5731
- !!(process.env.NODE_ENV !== "production") && warn(
5729
+ !!(process.env.NODE_ENV !== "production") && warn$1(
5732
5730
  `Attempting to mutate public property "${key}". Properties starting with $ are reserved and readonly.`
5733
5731
  );
5734
5732
  return false;
@@ -5762,7 +5760,7 @@ const PublicInstanceProxyHandlers = {
5762
5760
  };
5763
5761
  if (!!(process.env.NODE_ENV !== "production") && true) {
5764
5762
  PublicInstanceProxyHandlers.ownKeys = (target) => {
5765
- warn(
5763
+ warn$1(
5766
5764
  `Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.`
5767
5765
  );
5768
5766
  return Reflect.ownKeys(target);
@@ -5781,7 +5779,7 @@ const RuntimeCompiledPublicInstanceProxyHandlers = /* @__PURE__ */ extend(
5781
5779
  has(_, key) {
5782
5780
  const has = key[0] !== "_" && !isGloballyAllowed(key);
5783
5781
  if (!!(process.env.NODE_ENV !== "production") && !has && PublicInstanceProxyHandlers.has(_, key)) {
5784
- warn(
5782
+ warn$1(
5785
5783
  `Property ${JSON.stringify(
5786
5784
  key
5787
5785
  )} should not start with _ which is a reserved prefix for Vue internals.`
@@ -5831,7 +5829,7 @@ function exposeSetupStateOnRenderContext(instance) {
5831
5829
  Object.keys(toRaw(setupState)).forEach((key) => {
5832
5830
  if (!setupState.__isScriptSetup) {
5833
5831
  if (isReservedPrefix(key[0])) {
5834
- warn(
5832
+ warn$1(
5835
5833
  `setup() return property ${JSON.stringify(
5836
5834
  key
5837
5835
  )} should not start with "$" or "_" which are reserved prefixes for Vue internals.`
@@ -5862,7 +5860,7 @@ function deepMergeData(to, from) {
5862
5860
  return to;
5863
5861
  }
5864
5862
 
5865
- const warnRuntimeUsage = (method) => warn(
5863
+ const warnRuntimeUsage = (method) => warn$1(
5866
5864
  `${method}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`
5867
5865
  );
5868
5866
  function defineProps() {
@@ -5913,11 +5911,11 @@ function useAttrs() {
5913
5911
  function useModel(props, name) {
5914
5912
  const i = getCurrentInstance();
5915
5913
  if (!!(process.env.NODE_ENV !== "production") && !i) {
5916
- warn(`useModel() called without active instance.`);
5914
+ warn$1(`useModel() called without active instance.`);
5917
5915
  return ref();
5918
5916
  }
5919
5917
  if (!!(process.env.NODE_ENV !== "production") && !i.propsOptions[0][name]) {
5920
- warn(`useModel() called with prop "${name}" which is not declared.`);
5918
+ warn$1(`useModel() called with prop "${name}" which is not declared.`);
5921
5919
  return ref();
5922
5920
  }
5923
5921
  return customRef((track, trigger) => {
@@ -5948,7 +5946,7 @@ function useModel(props, name) {
5948
5946
  function getContext() {
5949
5947
  const i = getCurrentInstance();
5950
5948
  if (!!(process.env.NODE_ENV !== "production") && !i) {
5951
- warn(`useContext() called without active instance.`);
5949
+ warn$1(`useContext() called without active instance.`);
5952
5950
  }
5953
5951
  return i.setupContext || (i.setupContext = createSetupContext(i));
5954
5952
  }
@@ -5973,7 +5971,7 @@ function mergeDefaults(raw, defaults) {
5973
5971
  } else if (opt === null) {
5974
5972
  opt = props[key] = { default: defaults[key] };
5975
5973
  } else if (!!(process.env.NODE_ENV !== "production")) {
5976
- warn(`props default key "${key}" has no corresponding declaration.`);
5974
+ warn$1(`props default key "${key}" has no corresponding declaration.`);
5977
5975
  }
5978
5976
  if (opt && defaults[`__skip_${key}`]) {
5979
5977
  opt.skipFactory = true;
@@ -6003,7 +6001,7 @@ function createPropsRestProxy(props, excludedKeys) {
6003
6001
  function withAsyncContext(getAwaitable) {
6004
6002
  const ctx = getCurrentInstance();
6005
6003
  if (!!(process.env.NODE_ENV !== "production") && !ctx) {
6006
- warn(
6004
+ warn$1(
6007
6005
  `withAsyncContext called without active current instance. This is likely a bug.`
6008
6006
  );
6009
6007
  }
@@ -6022,7 +6020,7 @@ function createDuplicateChecker() {
6022
6020
  const cache = /* @__PURE__ */ Object.create(null);
6023
6021
  return (type, key) => {
6024
6022
  if (cache[key]) {
6025
- warn(`${type} property "${key}" is already defined in ${cache[key]}.`);
6023
+ warn$1(`${type} property "${key}" is already defined in ${cache[key]}.`);
6026
6024
  } else {
6027
6025
  cache[key] = type;
6028
6026
  }
@@ -6100,7 +6098,7 @@ function applyOptions(instance) {
6100
6098
  checkDuplicateProperties("Methods" /* METHODS */, key);
6101
6099
  }
6102
6100
  } else if (!!(process.env.NODE_ENV !== "production")) {
6103
- warn(
6101
+ warn$1(
6104
6102
  `Method "${key}" has type "${typeof methodHandler}" in the component definition. Did you reference the function correctly?`
6105
6103
  );
6106
6104
  }
@@ -6108,18 +6106,18 @@ function applyOptions(instance) {
6108
6106
  }
6109
6107
  if (dataOptions) {
6110
6108
  if (!!(process.env.NODE_ENV !== "production") && !isFunction(dataOptions)) {
6111
- warn(
6109
+ warn$1(
6112
6110
  `The data option must be a function. Plain object usage is no longer supported.`
6113
6111
  );
6114
6112
  }
6115
6113
  const data = dataOptions.call(publicThis, publicThis);
6116
6114
  if (!!(process.env.NODE_ENV !== "production") && isPromise(data)) {
6117
- warn(
6115
+ warn$1(
6118
6116
  `data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>.`
6119
6117
  );
6120
6118
  }
6121
6119
  if (!isObject(data)) {
6122
- !!(process.env.NODE_ENV !== "production") && warn(`data() should return an object.`);
6120
+ !!(process.env.NODE_ENV !== "production") && warn$1(`data() should return an object.`);
6123
6121
  } else {
6124
6122
  instance.data = reactive(data);
6125
6123
  if (!!(process.env.NODE_ENV !== "production")) {
@@ -6143,10 +6141,10 @@ function applyOptions(instance) {
6143
6141
  const opt = computedOptions[key];
6144
6142
  const get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP;
6145
6143
  if (!!(process.env.NODE_ENV !== "production") && get === NOOP) {
6146
- warn(`Computed property "${key}" has no getter.`);
6144
+ warn$1(`Computed property "${key}" has no getter.`);
6147
6145
  }
6148
6146
  const set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : !!(process.env.NODE_ENV !== "production") ? () => {
6149
- warn(
6147
+ warn$1(
6150
6148
  `Write operation failed: computed property "${key}" is readonly.`
6151
6149
  );
6152
6150
  } : NOOP;
@@ -6283,7 +6281,7 @@ function createWatcher(raw, ctx, publicThis, key) {
6283
6281
  if (isFunction(handler)) {
6284
6282
  watch(getter, handler);
6285
6283
  } else if (!!(process.env.NODE_ENV !== "production")) {
6286
- warn(`Invalid watch handler specified by key "${raw}"`, handler);
6284
+ warn$1(`Invalid watch handler specified by key "${raw}"`, handler);
6287
6285
  }
6288
6286
  } else if (isFunction(raw)) {
6289
6287
  watch(getter, raw.bind(publicThis));
@@ -6295,11 +6293,11 @@ function createWatcher(raw, ctx, publicThis, key) {
6295
6293
  if (isFunction(handler)) {
6296
6294
  watch(getter, handler, raw);
6297
6295
  } else if (!!(process.env.NODE_ENV !== "production")) {
6298
- warn(`Invalid watch handler specified by key "${raw.handler}"`, handler);
6296
+ warn$1(`Invalid watch handler specified by key "${raw.handler}"`, handler);
6299
6297
  }
6300
6298
  }
6301
6299
  } else if (!!(process.env.NODE_ENV !== "production")) {
6302
- warn(`Invalid watch option: "${key}"`, raw);
6300
+ warn$1(`Invalid watch option: "${key}"`, raw);
6303
6301
  }
6304
6302
  }
6305
6303
  function resolveMergedOptions(instance) {
@@ -6351,7 +6349,7 @@ function mergeOptions(to, from, strats, asMixin = false) {
6351
6349
  }
6352
6350
  for (const key in from) {
6353
6351
  if (asMixin && key === "expose") {
6354
- !!(process.env.NODE_ENV !== "production") && warn(
6352
+ !!(process.env.NODE_ENV !== "production") && warn$1(
6355
6353
  `"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.`
6356
6354
  );
6357
6355
  } else {
@@ -6519,7 +6517,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6519
6517
  return vm;
6520
6518
  }
6521
6519
  }
6522
- Vue.version = `2.6.14-compat:${"3.4.0-rc.1"}`;
6520
+ Vue.version = `2.6.14-compat:${"3.4.0-rc.2"}`;
6523
6521
  Vue.config = singletonApp.config;
6524
6522
  Vue.use = (p, ...options) => {
6525
6523
  if (p && isFunction(p.install)) {
@@ -6620,7 +6618,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6620
6618
  }
6621
6619
  };
6622
6620
  const util = {
6623
- warn: !!(process.env.NODE_ENV !== "production") ? warn : NOOP,
6621
+ warn: !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP,
6624
6622
  extend,
6625
6623
  mergeOptions: (parent, child, vm) => mergeOptions(
6626
6624
  parent,
@@ -6658,7 +6656,7 @@ function installFilterMethod(app, context) {
6658
6656
  return context.filters[name];
6659
6657
  }
6660
6658
  if (!!(process.env.NODE_ENV !== "production") && context.filters[name]) {
6661
- warn(`Filter "${name}" has already been registered.`);
6659
+ warn$1(`Filter "${name}" has already been registered.`);
6662
6660
  }
6663
6661
  context.filters[name] = filter;
6664
6662
  return app;
@@ -6749,14 +6747,14 @@ function installCompatMount(app, context, render) {
6749
6747
  vnode.isCompatRoot = true;
6750
6748
  instance.ctx._compat_mount = (selectorOrEl) => {
6751
6749
  if (isMounted) {
6752
- !!(process.env.NODE_ENV !== "production") && warn(`Root instance is already mounted.`);
6750
+ !!(process.env.NODE_ENV !== "production") && warn$1(`Root instance is already mounted.`);
6753
6751
  return;
6754
6752
  }
6755
6753
  let container;
6756
6754
  if (typeof selectorOrEl === "string") {
6757
6755
  const result = document.querySelector(selectorOrEl);
6758
6756
  if (!result) {
6759
- !!(process.env.NODE_ENV !== "production") && warn(
6757
+ !!(process.env.NODE_ENV !== "production") && warn$1(
6760
6758
  `Failed to mount root instance: selector "${selectorOrEl}" returned null.`
6761
6759
  );
6762
6760
  return;
@@ -6921,7 +6919,7 @@ function createAppAPI(render, hydrate) {
6921
6919
  rootComponent = extend({}, rootComponent);
6922
6920
  }
6923
6921
  if (rootProps != null && !isObject(rootProps)) {
6924
- !!(process.env.NODE_ENV !== "production") && warn(`root props passed to app.mount() must be an object.`);
6922
+ !!(process.env.NODE_ENV !== "production") && warn$1(`root props passed to app.mount() must be an object.`);
6925
6923
  rootProps = null;
6926
6924
  }
6927
6925
  const context = createAppContext();
@@ -6940,14 +6938,14 @@ function createAppAPI(render, hydrate) {
6940
6938
  },
6941
6939
  set config(v) {
6942
6940
  if (!!(process.env.NODE_ENV !== "production")) {
6943
- warn(
6941
+ warn$1(
6944
6942
  `app.config cannot be replaced. Modify individual options instead.`
6945
6943
  );
6946
6944
  }
6947
6945
  },
6948
6946
  use(plugin, ...options) {
6949
6947
  if (installedPlugins.has(plugin)) {
6950
- !!(process.env.NODE_ENV !== "production") && warn(`Plugin has already been applied to target app.`);
6948
+ !!(process.env.NODE_ENV !== "production") && warn$1(`Plugin has already been applied to target app.`);
6951
6949
  } else if (plugin && isFunction(plugin.install)) {
6952
6950
  installedPlugins.add(plugin);
6953
6951
  plugin.install(app, ...options);
@@ -6955,7 +6953,7 @@ function createAppAPI(render, hydrate) {
6955
6953
  installedPlugins.add(plugin);
6956
6954
  plugin(app, ...options);
6957
6955
  } else if (!!(process.env.NODE_ENV !== "production")) {
6958
- warn(
6956
+ warn$1(
6959
6957
  `A plugin must either be a function or an object with an "install" function.`
6960
6958
  );
6961
6959
  }
@@ -6966,12 +6964,12 @@ function createAppAPI(render, hydrate) {
6966
6964
  if (!context.mixins.includes(mixin)) {
6967
6965
  context.mixins.push(mixin);
6968
6966
  } else if (!!(process.env.NODE_ENV !== "production")) {
6969
- warn(
6967
+ warn$1(
6970
6968
  "Mixin has already been applied to target app" + (mixin.name ? `: ${mixin.name}` : "")
6971
6969
  );
6972
6970
  }
6973
6971
  } else if (!!(process.env.NODE_ENV !== "production")) {
6974
- warn("Mixins are only available in builds supporting Options API");
6972
+ warn$1("Mixins are only available in builds supporting Options API");
6975
6973
  }
6976
6974
  return app;
6977
6975
  },
@@ -6983,7 +6981,7 @@ function createAppAPI(render, hydrate) {
6983
6981
  return context.components[name];
6984
6982
  }
6985
6983
  if (!!(process.env.NODE_ENV !== "production") && context.components[name]) {
6986
- warn(`Component "${name}" has already been registered in target app.`);
6984
+ warn$1(`Component "${name}" has already been registered in target app.`);
6987
6985
  }
6988
6986
  context.components[name] = component;
6989
6987
  return app;
@@ -6996,7 +6994,7 @@ function createAppAPI(render, hydrate) {
6996
6994
  return context.directives[name];
6997
6995
  }
6998
6996
  if (!!(process.env.NODE_ENV !== "production") && context.directives[name]) {
6999
- warn(`Directive "${name}" has already been registered in target app.`);
6997
+ warn$1(`Directive "${name}" has already been registered in target app.`);
7000
6998
  }
7001
6999
  context.directives[name] = directive;
7002
7000
  return app;
@@ -7004,7 +7002,7 @@ function createAppAPI(render, hydrate) {
7004
7002
  mount(rootContainer, isHydrate, namespace) {
7005
7003
  if (!isMounted) {
7006
7004
  if (!!(process.env.NODE_ENV !== "production") && rootContainer.__vue_app__) {
7007
- warn(
7005
+ warn$1(
7008
7006
  `There is already an app instance mounted on the host container.
7009
7007
  If you want to mount another app on the same host container, you need to unmount the previous app by calling \`app.unmount()\` first.`
7010
7008
  );
@@ -7039,7 +7037,7 @@ function createAppAPI(render, hydrate) {
7039
7037
  }
7040
7038
  return getExposeProxy(vnode.component) || vnode.component.proxy;
7041
7039
  } else if (!!(process.env.NODE_ENV !== "production")) {
7042
- warn(
7040
+ warn$1(
7043
7041
  `App has already been mounted.
7044
7042
  If you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. \`const createMyApp = () => createApp(App)\``
7045
7043
  );
@@ -7054,12 +7052,12 @@ If you want to remount the same app, move your app creation logic into a factory
7054
7052
  }
7055
7053
  delete app._container.__vue_app__;
7056
7054
  } else if (!!(process.env.NODE_ENV !== "production")) {
7057
- warn(`Cannot unmount an app that is not mounted.`);
7055
+ warn$1(`Cannot unmount an app that is not mounted.`);
7058
7056
  }
7059
7057
  },
7060
7058
  provide(key, value) {
7061
7059
  if (!!(process.env.NODE_ENV !== "production") && key in context.provides) {
7062
- warn(
7060
+ warn$1(
7063
7061
  `App already provides property with key "${String(key)}". It will be overwritten with the new value.`
7064
7062
  );
7065
7063
  }
@@ -7086,7 +7084,7 @@ let currentApp = null;
7086
7084
  function provide(key, value) {
7087
7085
  if (!currentInstance) {
7088
7086
  if (!!(process.env.NODE_ENV !== "production")) {
7089
- warn(`provide() can only be used inside setup().`);
7087
+ warn$1(`provide() can only be used inside setup().`);
7090
7088
  }
7091
7089
  } else {
7092
7090
  let provides = currentInstance.provides;
@@ -7106,10 +7104,10 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
7106
7104
  } else if (arguments.length > 1) {
7107
7105
  return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
7108
7106
  } else if (!!(process.env.NODE_ENV !== "production")) {
7109
- warn(`injection "${String(key)}" not found.`);
7107
+ warn$1(`injection "${String(key)}" not found.`);
7110
7108
  }
7111
7109
  } else if (!!(process.env.NODE_ENV !== "production")) {
7112
- warn(`inject() can only be used inside setup() or functional components.`);
7110
+ warn$1(`inject() can only be used inside setup() or functional components.`);
7113
7111
  }
7114
7112
  }
7115
7113
  function hasInjectionContext() {
@@ -7425,7 +7423,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
7425
7423
  if (isArray(raw)) {
7426
7424
  for (let i = 0; i < raw.length; i++) {
7427
7425
  if (!!(process.env.NODE_ENV !== "production") && !isString(raw[i])) {
7428
- warn(`props must be strings when using array syntax.`, raw[i]);
7426
+ warn$1(`props must be strings when using array syntax.`, raw[i]);
7429
7427
  }
7430
7428
  const normalizedKey = camelize(raw[i]);
7431
7429
  if (validatePropName(normalizedKey)) {
@@ -7434,7 +7432,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
7434
7432
  }
7435
7433
  } else if (raw) {
7436
7434
  if (!!(process.env.NODE_ENV !== "production") && !isObject(raw)) {
7437
- warn(`invalid props options`, raw);
7435
+ warn$1(`invalid props options`, raw);
7438
7436
  }
7439
7437
  for (const key in raw) {
7440
7438
  const normalizedKey = camelize(key);
@@ -7463,7 +7461,7 @@ function validatePropName(key) {
7463
7461
  if (key[0] !== "$") {
7464
7462
  return true;
7465
7463
  } else if (!!(process.env.NODE_ENV !== "production")) {
7466
- warn(`Invalid prop name: "${key}" is a reserved property.`);
7464
+ warn$1(`Invalid prop name: "${key}" is a reserved property.`);
7467
7465
  }
7468
7466
  return false;
7469
7467
  }
@@ -7501,7 +7499,7 @@ function validateProps(rawProps, props, instance) {
7501
7499
  function validateProp(name, value, prop, props, isAbsent) {
7502
7500
  const { type, required, validator, skipCheck } = prop;
7503
7501
  if (required && isAbsent) {
7504
- warn('Missing required prop: "' + name + '"');
7502
+ warn$1('Missing required prop: "' + name + '"');
7505
7503
  return;
7506
7504
  }
7507
7505
  if (value == null && !required) {
@@ -7517,12 +7515,12 @@ function validateProp(name, value, prop, props, isAbsent) {
7517
7515
  isValid = valid;
7518
7516
  }
7519
7517
  if (!isValid) {
7520
- warn(getInvalidTypeMessage(name, value, expectedTypes));
7518
+ warn$1(getInvalidTypeMessage(name, value, expectedTypes));
7521
7519
  return;
7522
7520
  }
7523
7521
  }
7524
7522
  if (validator && !validator(value, props)) {
7525
- warn('Invalid prop: custom validator check failed for prop "' + name + '".');
7523
+ warn$1('Invalid prop: custom validator check failed for prop "' + name + '".');
7526
7524
  }
7527
7525
  }
7528
7526
  const isSimpleType = /* @__PURE__ */ makeMap(
@@ -7594,7 +7592,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
7594
7592
  }
7595
7593
  const normalized = withCtx((...args) => {
7596
7594
  if (!!(process.env.NODE_ENV !== "production") && currentInstance) {
7597
- warn(
7595
+ warn$1(
7598
7596
  `Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
7599
7597
  );
7600
7598
  }
@@ -7613,7 +7611,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
7613
7611
  slots[key] = normalizeSlot(key, value, ctx);
7614
7612
  } else if (value != null) {
7615
7613
  if (!!(process.env.NODE_ENV !== "production") && !isCompatEnabled$1("RENDER_FUNCTION", instance)) {
7616
- warn(
7614
+ warn$1(
7617
7615
  `Non-function value encountered for slot "${key}". Prefer function slots for better performance.`
7618
7616
  );
7619
7617
  }
@@ -7624,7 +7622,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
7624
7622
  };
7625
7623
  const normalizeVNodeSlots = (instance, children) => {
7626
7624
  if (!!(process.env.NODE_ENV !== "production") && !isKeepAlive(instance.vnode) && !isCompatEnabled$1("RENDER_FUNCTION", instance)) {
7627
- warn(
7625
+ warn$1(
7628
7626
  `Non-function value encountered for default slot. Prefer function slots for better performance.`
7629
7627
  );
7630
7628
  }
@@ -7708,7 +7706,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
7708
7706
  const value = isUnmount ? null : refValue;
7709
7707
  const { i: owner, r: ref } = rawRef;
7710
7708
  if (!!(process.env.NODE_ENV !== "production") && !owner) {
7711
- warn(
7709
+ warn$1(
7712
7710
  `Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`
7713
7711
  );
7714
7712
  return;
@@ -7763,7 +7761,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
7763
7761
  if (rawRef.k)
7764
7762
  refs[rawRef.k] = value;
7765
7763
  } else if (!!(process.env.NODE_ENV !== "production")) {
7766
- warn("Invalid template ref type:", ref, `(${typeof ref})`);
7764
+ warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
7767
7765
  }
7768
7766
  };
7769
7767
  if (value) {
@@ -7773,7 +7771,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
7773
7771
  doSet();
7774
7772
  }
7775
7773
  } else if (!!(process.env.NODE_ENV !== "production")) {
7776
- warn("Invalid template ref type:", ref, `(${typeof ref})`);
7774
+ warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
7777
7775
  }
7778
7776
  }
7779
7777
  }
@@ -7805,7 +7803,7 @@ function createHydrationFunctions(rendererInternals) {
7805
7803
  } = rendererInternals;
7806
7804
  const hydrate = (vnode, container) => {
7807
7805
  if (!container.hasChildNodes()) {
7808
- (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn(
7806
+ (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
7809
7807
  `Attempting to hydrate existing markup but container is empty. Performing full mount instead.`
7810
7808
  );
7811
7809
  patch(null, vnode, container);
@@ -7865,7 +7863,7 @@ function createHydrationFunctions(rendererInternals) {
7865
7863
  } else {
7866
7864
  if (node.data !== vnode.children) {
7867
7865
  hasMismatch = true;
7868
- (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn(
7866
+ (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
7869
7867
  `Hydration text mismatch in`,
7870
7868
  node.parentNode,
7871
7869
  `
@@ -8000,7 +7998,7 @@ function createHydrationFunctions(rendererInternals) {
8000
7998
  hydrateNode
8001
7999
  );
8002
8000
  } else if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) {
8003
- warn("Invalid HostVNode type:", type, `(${typeof type})`);
8001
+ warn$1("Invalid HostVNode type:", type, `(${typeof type})`);
8004
8002
  }
8005
8003
  }
8006
8004
  if (ref != null) {
@@ -8041,7 +8039,7 @@ function createHydrationFunctions(rendererInternals) {
8041
8039
  while (next) {
8042
8040
  hasMismatch = true;
8043
8041
  if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && !hasWarned) {
8044
- warn(
8042
+ warn$1(
8045
8043
  `Hydration children mismatch on`,
8046
8044
  el,
8047
8045
  `
@@ -8056,7 +8054,7 @@ Server rendered element contains more child nodes than client vdom.`
8056
8054
  } else if (shapeFlag & 8) {
8057
8055
  if (el.textContent !== vnode.children) {
8058
8056
  hasMismatch = true;
8059
- (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn(
8057
+ (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
8060
8058
  `Hydration text content mismatch on`,
8061
8059
  el,
8062
8060
  `
@@ -8135,7 +8133,7 @@ Server rendered element contains more child nodes than client vdom.`
8135
8133
  } else {
8136
8134
  hasMismatch = true;
8137
8135
  if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && !hasWarned) {
8138
- warn(
8136
+ warn$1(
8139
8137
  `Hydration children mismatch on`,
8140
8138
  container,
8141
8139
  `
@@ -8182,7 +8180,7 @@ Server rendered element contains fewer child nodes than client vdom.`
8182
8180
  };
8183
8181
  const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
8184
8182
  hasMismatch = true;
8185
- (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn(
8183
+ (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
8186
8184
  `Hydration node mismatch:
8187
8185
  - rendered on server:`,
8188
8186
  node,
@@ -8281,7 +8279,7 @@ function propHasMismatch(el, key, clientValue) {
8281
8279
  }
8282
8280
  if (mismatchType) {
8283
8281
  const format = (v) => v === false ? `(not rendered)` : `${mismatchKey}="${v}"`;
8284
- warn(
8282
+ warn$1(
8285
8283
  `Hydration ${mismatchType} mismatch on`,
8286
8284
  el,
8287
8285
  `
@@ -8387,7 +8385,7 @@ function baseCreateRenderer(options, createHydrationFns) {
8387
8385
  const target = getGlobalThis();
8388
8386
  target.__VUE__ = true;
8389
8387
  if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
8390
- setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
8388
+ setDevtoolsHook$1(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
8391
8389
  }
8392
8390
  const {
8393
8391
  insert: hostInsert,
@@ -8496,7 +8494,7 @@ function baseCreateRenderer(options, createHydrationFns) {
8496
8494
  internals
8497
8495
  );
8498
8496
  } else if (!!(process.env.NODE_ENV !== "production")) {
8499
- warn("Invalid VNode type:", type, `(${typeof type})`);
8497
+ warn$1("Invalid VNode type:", type, `(${typeof type})`);
8500
8498
  }
8501
8499
  }
8502
8500
  if (ref != null && parentComponent) {
@@ -9501,7 +9499,7 @@ function baseCreateRenderer(options, createHydrationFns) {
9501
9499
  const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]);
9502
9500
  if (nextChild.key != null) {
9503
9501
  if (!!(process.env.NODE_ENV !== "production") && keyToNewIndexMap.has(nextChild.key)) {
9504
- warn(
9502
+ warn$1(
9505
9503
  `Duplicate keys found during update:`,
9506
9504
  JSON.stringify(nextChild.key),
9507
9505
  `Make sure keys are unique.`
@@ -9939,14 +9937,14 @@ const resolveTarget = (props, select) => {
9939
9937
  const targetSelector = props && props.to;
9940
9938
  if (isString(targetSelector)) {
9941
9939
  if (!select) {
9942
- !!(process.env.NODE_ENV !== "production") && warn(
9940
+ !!(process.env.NODE_ENV !== "production") && warn$1(
9943
9941
  `Current renderer does not support string target for Teleports. (missing querySelector renderer option)`
9944
9942
  );
9945
9943
  return null;
9946
9944
  } else {
9947
9945
  const target = select(targetSelector);
9948
9946
  if (!target) {
9949
- !!(process.env.NODE_ENV !== "production") && warn(
9947
+ !!(process.env.NODE_ENV !== "production") && warn$1(
9950
9948
  `Failed to locate Teleport target with selector "${targetSelector}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`
9951
9949
  );
9952
9950
  }
@@ -9954,7 +9952,7 @@ const resolveTarget = (props, select) => {
9954
9952
  }
9955
9953
  } else {
9956
9954
  if (!!(process.env.NODE_ENV !== "production") && !targetSelector && !isTeleportDisabled(props)) {
9957
- warn(`Invalid Teleport target: ${targetSelector}`);
9955
+ warn$1(`Invalid Teleport target: ${targetSelector}`);
9958
9956
  }
9959
9957
  return targetSelector;
9960
9958
  }
@@ -9990,7 +9988,7 @@ const TeleportImpl = {
9990
9988
  namespace = "mathml";
9991
9989
  }
9992
9990
  } else if (!!(process.env.NODE_ENV !== "production") && !disabled) {
9993
- warn("Invalid Teleport target on mount:", target, `(${typeof target})`);
9991
+ warn$1("Invalid Teleport target on mount:", target, `(${typeof target})`);
9994
9992
  }
9995
9993
  const mount = (container2, anchor2) => {
9996
9994
  if (shapeFlag & 16) {
@@ -10077,7 +10075,7 @@ const TeleportImpl = {
10077
10075
  0
10078
10076
  );
10079
10077
  } else if (!!(process.env.NODE_ENV !== "production")) {
10080
- warn(
10078
+ warn$1(
10081
10079
  "Invalid Teleport target on update:",
10082
10080
  target,
10083
10081
  `(${typeof target})`
@@ -10378,7 +10376,7 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
10378
10376
  vnode.shapeFlag |= isString(children) ? 8 : 16;
10379
10377
  }
10380
10378
  if (!!(process.env.NODE_ENV !== "production") && vnode.key !== vnode.key) {
10381
- warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
10379
+ warn$1(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
10382
10380
  }
10383
10381
  if (isBlockTreeEnabled > 0 && // avoid a block node from tracking itself
10384
10382
  !isBlockNode && // has current parent block
@@ -10401,7 +10399,7 @@ const createVNode = !!(process.env.NODE_ENV !== "production") ? createVNodeWithA
10401
10399
  function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
10402
10400
  if (!type || type === NULL_DYNAMIC_COMPONENT) {
10403
10401
  if (!!(process.env.NODE_ENV !== "production") && !type) {
10404
- warn(`Invalid vnode type when creating vnode: ${type}.`);
10402
+ warn$1(`Invalid vnode type when creating vnode: ${type}.`);
10405
10403
  }
10406
10404
  type = Comment;
10407
10405
  }
@@ -10447,7 +10445,7 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
10447
10445
  const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0;
10448
10446
  if (!!(process.env.NODE_ENV !== "production") && shapeFlag & 4 && isProxy(type)) {
10449
10447
  type = toRaw(type);
10450
- warn(
10448
+ warn$1(
10451
10449
  `Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with \`markRaw\` or using \`shallowRef\` instead of \`ref\`.`,
10452
10450
  `
10453
10451
  Component that was made reactive: `,
@@ -10765,7 +10763,7 @@ const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
10765
10763
  function validateComponentName(name, config) {
10766
10764
  const appIsNativeTag = config.isNativeTag || NO;
10767
10765
  if (isBuiltInTag(name) || appIsNativeTag(name)) {
10768
- warn(
10766
+ warn$1(
10769
10767
  "Do not use built-in or reserved HTML elements as component id: " + name
10770
10768
  );
10771
10769
  }
@@ -10804,7 +10802,7 @@ function setupStatefulComponent(instance, isSSR) {
10804
10802
  }
10805
10803
  }
10806
10804
  if (Component.compilerOptions && isRuntimeOnly()) {
10807
- warn(
10805
+ warn$1(
10808
10806
  `"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.`
10809
10807
  );
10810
10808
  }
@@ -10839,7 +10837,7 @@ function setupStatefulComponent(instance, isSSR) {
10839
10837
  instance.asyncDep = setupResult;
10840
10838
  if (!!(process.env.NODE_ENV !== "production") && !instance.suspense) {
10841
10839
  const name = (_a = Component.name) != null ? _a : "Anonymous";
10842
- warn(
10840
+ warn$1(
10843
10841
  `Component <${name}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`
10844
10842
  );
10845
10843
  }
@@ -10860,7 +10858,7 @@ function handleSetupResult(instance, setupResult, isSSR) {
10860
10858
  }
10861
10859
  } else if (isObject(setupResult)) {
10862
10860
  if (!!(process.env.NODE_ENV !== "production") && isVNode(setupResult)) {
10863
- warn(
10861
+ warn$1(
10864
10862
  `setup() should not return VNodes directly - return a render function instead.`
10865
10863
  );
10866
10864
  }
@@ -10872,7 +10870,7 @@ function handleSetupResult(instance, setupResult, isSSR) {
10872
10870
  exposeSetupStateOnRenderContext(instance);
10873
10871
  }
10874
10872
  } else if (!!(process.env.NODE_ENV !== "production") && setupResult !== void 0) {
10875
- warn(
10873
+ warn$1(
10876
10874
  `setup() should return an object. Received: ${setupResult === null ? "null" : typeof setupResult}`
10877
10875
  );
10878
10876
  }
@@ -10945,12 +10943,12 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
10945
10943
  }
10946
10944
  if (!!(process.env.NODE_ENV !== "production") && !Component.render && instance.render === NOOP && !isSSR) {
10947
10945
  if (!compile$1 && Component.template) {
10948
- warn(
10946
+ warn$1(
10949
10947
  `Component provided template option but runtime compilation is not supported in this build of Vue.` + (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` )
10950
10948
  /* should not happen */
10951
10949
  );
10952
10950
  } else {
10953
- warn(`Component is missing template or render function.`);
10951
+ warn$1(`Component is missing template or render function.`);
10954
10952
  }
10955
10953
  }
10956
10954
  }
@@ -10964,11 +10962,11 @@ function getAttrsProxy(instance) {
10964
10962
  return target[key];
10965
10963
  },
10966
10964
  set() {
10967
- warn(`setupContext.attrs is readonly.`);
10965
+ warn$1(`setupContext.attrs is readonly.`);
10968
10966
  return false;
10969
10967
  },
10970
10968
  deleteProperty() {
10971
- warn(`setupContext.attrs is readonly.`);
10969
+ warn$1(`setupContext.attrs is readonly.`);
10972
10970
  return false;
10973
10971
  }
10974
10972
  } : {
@@ -10991,7 +10989,7 @@ function createSetupContext(instance) {
10991
10989
  const expose = (exposed) => {
10992
10990
  if (!!(process.env.NODE_ENV !== "production")) {
10993
10991
  if (instance.exposed) {
10994
- warn(`expose() should be called only once per setup().`);
10992
+ warn$1(`expose() should be called only once per setup().`);
10995
10993
  }
10996
10994
  if (exposed != null) {
10997
10995
  let exposedType = typeof exposed;
@@ -11003,7 +11001,7 @@ function createSetupContext(instance) {
11003
11001
  }
11004
11002
  }
11005
11003
  if (exposedType !== "object") {
11006
- warn(
11004
+ warn$1(
11007
11005
  `expose() should be passed a plain object, received ${exposedType}.`
11008
11006
  );
11009
11007
  }
@@ -11112,7 +11110,7 @@ const useSSRContext = () => {
11112
11110
  {
11113
11111
  const ctx = inject(ssrContextKey);
11114
11112
  if (!ctx) {
11115
- !!(process.env.NODE_ENV !== "production") && warn(
11113
+ !!(process.env.NODE_ENV !== "production") && warn$1(
11116
11114
  `Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
11117
11115
  );
11118
11116
  }
@@ -11321,8 +11319,11 @@ function isMemoSame(cached, memo) {
11321
11319
  return true;
11322
11320
  }
11323
11321
 
11324
- const version = "3.4.0-rc.1";
11322
+ const version = "3.4.0-rc.2";
11323
+ const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
11325
11324
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11325
+ const devtools = !!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__ ? devtools$1 : void 0;
11326
+ const setDevtoolsHook = !!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__ ? setDevtoolsHook$1 : NOOP;
11326
11327
  const _ssrUtils = {
11327
11328
  createComponentInstance,
11328
11329
  setupComponent,
@@ -13090,7 +13091,7 @@ var runtimeDom = /*#__PURE__*/Object.freeze({
13090
13091
  defineProps: defineProps,
13091
13092
  defineSSRCustomElement: defineSSRCustomElement,
13092
13093
  defineSlots: defineSlots,
13093
- get devtools () { return devtools; },
13094
+ devtools: devtools,
13094
13095
  effect: effect,
13095
13096
  effectScope: effectScope,
13096
13097
  getCurrentInstance: getCurrentInstance,