@vue/compat 3.5.25 → 3.5.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vue.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.25
2
+ * @vue/compat v3.5.26
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -7,7 +7,7 @@
7
7
 
8
8
  var parser = require('@babel/parser');
9
9
  var estreeWalker = require('estree-walker');
10
- var decode_js = require('entities/lib/decode.js');
10
+ var decode = require('entities/decode');
11
11
  var sourceMapJs = require('source-map-js');
12
12
 
13
13
  // @__NO_SIDE_EFFECTS__
@@ -1055,13 +1055,13 @@ function addSub(link) {
1055
1055
  }
1056
1056
  }
1057
1057
  const targetMap = /* @__PURE__ */ new WeakMap();
1058
- const ITERATE_KEY = Symbol(
1058
+ const ITERATE_KEY = /* @__PURE__ */ Symbol(
1059
1059
  "Object iterate"
1060
1060
  );
1061
- const MAP_KEY_ITERATE_KEY = Symbol(
1061
+ const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
1062
1062
  "Map keys iterate"
1063
1063
  );
1064
- const ARRAY_ITERATE_KEY = Symbol(
1064
+ const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
1065
1065
  "Array iterate"
1066
1066
  );
1067
1067
  function track(target, type, key) {
@@ -3429,65 +3429,6 @@ function emit$1(instance, event, args) {
3429
3429
  return instance.proxy;
3430
3430
  }
3431
3431
 
3432
- const compatModelEventPrefix = `onModelCompat:`;
3433
- const warnedTypes = /* @__PURE__ */ new WeakSet();
3434
- function convertLegacyVModelProps(vnode) {
3435
- const { type, shapeFlag, props, dynamicProps } = vnode;
3436
- const comp = type;
3437
- if (shapeFlag & 6 && props && "modelValue" in props) {
3438
- if (!isCompatEnabled$1(
3439
- "COMPONENT_V_MODEL",
3440
- // this is a special case where we want to use the vnode component's
3441
- // compat config instead of the current rendering instance (which is the
3442
- // parent of the component that exposes v-model)
3443
- { type }
3444
- )) {
3445
- return;
3446
- }
3447
- if (!warnedTypes.has(comp)) {
3448
- pushWarningContext(vnode);
3449
- warnDeprecation$1("COMPONENT_V_MODEL", { type }, comp);
3450
- popWarningContext();
3451
- warnedTypes.add(comp);
3452
- }
3453
- const model = comp.model || {};
3454
- applyModelFromMixins(model, comp.mixins);
3455
- const { prop = "value", event = "input" } = model;
3456
- if (prop !== "modelValue") {
3457
- props[prop] = props.modelValue;
3458
- delete props.modelValue;
3459
- }
3460
- if (dynamicProps) {
3461
- dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
3462
- }
3463
- props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
3464
- delete props["onUpdate:modelValue"];
3465
- }
3466
- }
3467
- function applyModelFromMixins(model, mixins) {
3468
- if (mixins) {
3469
- mixins.forEach((m) => {
3470
- if (m.model) extend(model, m.model);
3471
- if (m.mixins) applyModelFromMixins(model, m.mixins);
3472
- });
3473
- }
3474
- }
3475
- function compatModelEmit(instance, event, args) {
3476
- if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
3477
- return;
3478
- }
3479
- const props = instance.vnode.props;
3480
- const modelHandler = props && props[compatModelEventPrefix + event];
3481
- if (modelHandler) {
3482
- callWithErrorHandling(
3483
- modelHandler,
3484
- instance,
3485
- 6,
3486
- args
3487
- );
3488
- }
3489
- }
3490
-
3491
3432
  let currentRenderingInstance = null;
3492
3433
  let currentScopeId = null;
3493
3434
  function setCurrentRenderingInstance(instance) {
@@ -3638,7 +3579,180 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
3638
3579
  }
3639
3580
  }
3640
3581
 
3641
- const TeleportEndKey = Symbol("_vte");
3582
+ function provide(key, value) {
3583
+ {
3584
+ if (!currentInstance || currentInstance.isMounted) {
3585
+ warn$1(`provide() can only be used inside setup().`);
3586
+ }
3587
+ }
3588
+ if (currentInstance) {
3589
+ let provides = currentInstance.provides;
3590
+ const parentProvides = currentInstance.parent && currentInstance.parent.provides;
3591
+ if (parentProvides === provides) {
3592
+ provides = currentInstance.provides = Object.create(parentProvides);
3593
+ }
3594
+ provides[key] = value;
3595
+ }
3596
+ }
3597
+ function inject(key, defaultValue, treatDefaultAsFactory = false) {
3598
+ const instance = getCurrentInstance();
3599
+ if (instance || currentApp) {
3600
+ let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
3601
+ if (provides && key in provides) {
3602
+ return provides[key];
3603
+ } else if (arguments.length > 1) {
3604
+ return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
3605
+ } else {
3606
+ warn$1(`injection "${String(key)}" not found.`);
3607
+ }
3608
+ } else {
3609
+ warn$1(`inject() can only be used inside setup() or functional components.`);
3610
+ }
3611
+ }
3612
+ function hasInjectionContext() {
3613
+ return !!(getCurrentInstance() || currentApp);
3614
+ }
3615
+
3616
+ const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
3617
+ const useSSRContext = () => {
3618
+ {
3619
+ const ctx = inject(ssrContextKey);
3620
+ if (!ctx) {
3621
+ warn$1(
3622
+ `Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
3623
+ );
3624
+ }
3625
+ return ctx;
3626
+ }
3627
+ };
3628
+
3629
+ function watchEffect(effect, options) {
3630
+ return doWatch(effect, null, options);
3631
+ }
3632
+ function watchPostEffect(effect, options) {
3633
+ return doWatch(
3634
+ effect,
3635
+ null,
3636
+ extend({}, options, { flush: "post" })
3637
+ );
3638
+ }
3639
+ function watchSyncEffect(effect, options) {
3640
+ return doWatch(
3641
+ effect,
3642
+ null,
3643
+ extend({}, options, { flush: "sync" })
3644
+ );
3645
+ }
3646
+ function watch(source, cb, options) {
3647
+ if (!isFunction(cb)) {
3648
+ warn$1(
3649
+ `\`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.`
3650
+ );
3651
+ }
3652
+ return doWatch(source, cb, options);
3653
+ }
3654
+ function doWatch(source, cb, options = EMPTY_OBJ) {
3655
+ const { immediate, deep, flush, once } = options;
3656
+ if (!cb) {
3657
+ if (immediate !== void 0) {
3658
+ warn$1(
3659
+ `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
3660
+ );
3661
+ }
3662
+ if (deep !== void 0) {
3663
+ warn$1(
3664
+ `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
3665
+ );
3666
+ }
3667
+ if (once !== void 0) {
3668
+ warn$1(
3669
+ `watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
3670
+ );
3671
+ }
3672
+ }
3673
+ const baseWatchOptions = extend({}, options);
3674
+ baseWatchOptions.onWarn = warn$1;
3675
+ const runsImmediately = cb && immediate || !cb && flush !== "post";
3676
+ let ssrCleanup;
3677
+ if (isInSSRComponentSetup) {
3678
+ if (flush === "sync") {
3679
+ const ctx = useSSRContext();
3680
+ ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
3681
+ } else if (!runsImmediately) {
3682
+ const watchStopHandle = () => {
3683
+ };
3684
+ watchStopHandle.stop = NOOP;
3685
+ watchStopHandle.resume = NOOP;
3686
+ watchStopHandle.pause = NOOP;
3687
+ return watchStopHandle;
3688
+ }
3689
+ }
3690
+ const instance = currentInstance;
3691
+ baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
3692
+ let isPre = false;
3693
+ if (flush === "post") {
3694
+ baseWatchOptions.scheduler = (job) => {
3695
+ queuePostRenderEffect(job, instance && instance.suspense);
3696
+ };
3697
+ } else if (flush !== "sync") {
3698
+ isPre = true;
3699
+ baseWatchOptions.scheduler = (job, isFirstRun) => {
3700
+ if (isFirstRun) {
3701
+ job();
3702
+ } else {
3703
+ queueJob(job);
3704
+ }
3705
+ };
3706
+ }
3707
+ baseWatchOptions.augmentJob = (job) => {
3708
+ if (cb) {
3709
+ job.flags |= 4;
3710
+ }
3711
+ if (isPre) {
3712
+ job.flags |= 2;
3713
+ if (instance) {
3714
+ job.id = instance.uid;
3715
+ job.i = instance;
3716
+ }
3717
+ }
3718
+ };
3719
+ const watchHandle = watch$1(source, cb, baseWatchOptions);
3720
+ if (isInSSRComponentSetup) {
3721
+ if (ssrCleanup) {
3722
+ ssrCleanup.push(watchHandle);
3723
+ } else if (runsImmediately) {
3724
+ watchHandle();
3725
+ }
3726
+ }
3727
+ return watchHandle;
3728
+ }
3729
+ function instanceWatch(source, value, options) {
3730
+ const publicThis = this.proxy;
3731
+ const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
3732
+ let cb;
3733
+ if (isFunction(value)) {
3734
+ cb = value;
3735
+ } else {
3736
+ cb = value.handler;
3737
+ options = value;
3738
+ }
3739
+ const reset = setCurrentInstance(this);
3740
+ const res = doWatch(getter, cb.bind(publicThis), options);
3741
+ reset();
3742
+ return res;
3743
+ }
3744
+ function createPathGetter(ctx, path) {
3745
+ const segments = path.split(".");
3746
+ return () => {
3747
+ let cur = ctx;
3748
+ for (let i = 0; i < segments.length && cur; i++) {
3749
+ cur = cur[segments[i]];
3750
+ }
3751
+ return cur;
3752
+ };
3753
+ }
3754
+
3755
+ const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
3642
3756
  const isTeleport = (type) => type.__isTeleport;
3643
3757
  const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
3644
3758
  const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
@@ -3998,8 +4112,8 @@ function prepareAnchor(target, vnode, createText, insert) {
3998
4112
  return targetAnchor;
3999
4113
  }
4000
4114
 
4001
- const leaveCbKey = Symbol("_leaveCb");
4002
- const enterCbKey$1 = Symbol("_enterCb");
4115
+ const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
4116
+ const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
4003
4117
  function useTransitionState() {
4004
4118
  const state = {
4005
4119
  isMounted: false,
@@ -5536,7 +5650,9 @@ const KeepAliveImpl = {
5536
5650
  }
5537
5651
  function pruneCache(filter) {
5538
5652
  cache.forEach((vnode, key) => {
5539
- const name = getComponentName(vnode.type);
5653
+ const name = getComponentName(
5654
+ isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
5655
+ );
5540
5656
  if (name && !filter(name)) {
5541
5657
  pruneCacheEntry(key);
5542
5658
  }
@@ -5803,7 +5919,7 @@ const FILTERS = "filters";
5803
5919
  function resolveComponent(name, maybeSelfReference) {
5804
5920
  return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
5805
5921
  }
5806
- const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
5922
+ const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
5807
5923
  function resolveDynamicComponent(component) {
5808
5924
  if (isString(component)) {
5809
5925
  return resolveAsset(COMPONENTS, component, false) || component;
@@ -7368,7 +7484,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7368
7484
  return vm;
7369
7485
  }
7370
7486
  }
7371
- Vue.version = `2.6.14-compat:${"3.5.25"}`;
7487
+ Vue.version = `2.6.14-compat:${"3.5.26"}`;
7372
7488
  Vue.config = singletonApp.config;
7373
7489
  Vue.use = (plugin, ...options) => {
7374
7490
  if (plugin && isFunction(plugin.install)) {
@@ -7945,177 +8061,70 @@ If you want to remount the same app, move your app creation logic into a factory
7945
8061
  }
7946
8062
  let currentApp = null;
7947
8063
 
7948
- function provide(key, value) {
7949
- {
7950
- if (!currentInstance || currentInstance.isMounted) {
7951
- warn$1(`provide() can only be used inside setup().`);
8064
+ const compatModelEventPrefix = `onModelCompat:`;
8065
+ const warnedTypes = /* @__PURE__ */ new WeakSet();
8066
+ function convertLegacyVModelProps(vnode) {
8067
+ const { type, shapeFlag, props, dynamicProps } = vnode;
8068
+ const comp = type;
8069
+ if (shapeFlag & 6 && props && "modelValue" in props) {
8070
+ if (!isCompatEnabled$1(
8071
+ "COMPONENT_V_MODEL",
8072
+ // this is a special case where we want to use the vnode component's
8073
+ // compat config instead of the current rendering instance (which is the
8074
+ // parent of the component that exposes v-model)
8075
+ { type }
8076
+ )) {
8077
+ return;
7952
8078
  }
7953
- }
7954
- if (currentInstance) {
7955
- let provides = currentInstance.provides;
7956
- const parentProvides = currentInstance.parent && currentInstance.parent.provides;
7957
- if (parentProvides === provides) {
7958
- provides = currentInstance.provides = Object.create(parentProvides);
8079
+ if (!warnedTypes.has(comp)) {
8080
+ pushWarningContext(vnode);
8081
+ warnDeprecation$1(
8082
+ "COMPONENT_V_MODEL",
8083
+ {
8084
+ type,
8085
+ appContext: vnode.ctx && vnode.ctx.appContext || createAppContext()
8086
+ },
8087
+ comp
8088
+ );
8089
+ popWarningContext();
8090
+ warnedTypes.add(comp);
7959
8091
  }
7960
- provides[key] = value;
7961
- }
7962
- }
7963
- function inject(key, defaultValue, treatDefaultAsFactory = false) {
7964
- const instance = getCurrentInstance();
7965
- if (instance || currentApp) {
7966
- let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
7967
- if (provides && key in provides) {
7968
- return provides[key];
7969
- } else if (arguments.length > 1) {
7970
- return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
7971
- } else {
7972
- warn$1(`injection "${String(key)}" not found.`);
8092
+ const model = comp.model || {};
8093
+ applyModelFromMixins(model, comp.mixins);
8094
+ const { prop = "value", event = "input" } = model;
8095
+ if (prop !== "modelValue") {
8096
+ props[prop] = props.modelValue;
8097
+ delete props.modelValue;
7973
8098
  }
7974
- } else {
7975
- warn$1(`inject() can only be used inside setup() or functional components.`);
7976
- }
7977
- }
7978
- function hasInjectionContext() {
7979
- return !!(getCurrentInstance() || currentApp);
7980
- }
7981
-
7982
- const ssrContextKey = Symbol.for("v-scx");
7983
- const useSSRContext = () => {
7984
- {
7985
- const ctx = inject(ssrContextKey);
7986
- if (!ctx) {
7987
- warn$1(
7988
- `Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
7989
- );
8099
+ if (dynamicProps) {
8100
+ dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
7990
8101
  }
7991
- return ctx;
8102
+ props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
8103
+ delete props["onUpdate:modelValue"];
7992
8104
  }
7993
- };
7994
-
7995
- function watchEffect(effect, options) {
7996
- return doWatch(effect, null, options);
7997
8105
  }
7998
- function watchPostEffect(effect, options) {
7999
- return doWatch(
8000
- effect,
8001
- null,
8002
- extend({}, options, { flush: "post" })
8003
- );
8004
- }
8005
- function watchSyncEffect(effect, options) {
8006
- return doWatch(
8007
- effect,
8008
- null,
8009
- extend({}, options, { flush: "sync" })
8010
- );
8011
- }
8012
- function watch(source, cb, options) {
8013
- if (!isFunction(cb)) {
8014
- warn$1(
8015
- `\`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.`
8016
- );
8106
+ function applyModelFromMixins(model, mixins) {
8107
+ if (mixins) {
8108
+ mixins.forEach((m) => {
8109
+ if (m.model) extend(model, m.model);
8110
+ if (m.mixins) applyModelFromMixins(model, m.mixins);
8111
+ });
8017
8112
  }
8018
- return doWatch(source, cb, options);
8019
8113
  }
8020
- function doWatch(source, cb, options = EMPTY_OBJ) {
8021
- const { immediate, deep, flush, once } = options;
8022
- if (!cb) {
8023
- if (immediate !== void 0) {
8024
- warn$1(
8025
- `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
8026
- );
8027
- }
8028
- if (deep !== void 0) {
8029
- warn$1(
8030
- `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
8031
- );
8032
- }
8033
- if (once !== void 0) {
8034
- warn$1(
8035
- `watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
8036
- );
8037
- }
8038
- }
8039
- const baseWatchOptions = extend({}, options);
8040
- baseWatchOptions.onWarn = warn$1;
8041
- const runsImmediately = cb && immediate || !cb && flush !== "post";
8042
- let ssrCleanup;
8043
- if (isInSSRComponentSetup) {
8044
- if (flush === "sync") {
8045
- const ctx = useSSRContext();
8046
- ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
8047
- } else if (!runsImmediately) {
8048
- const watchStopHandle = () => {
8049
- };
8050
- watchStopHandle.stop = NOOP;
8051
- watchStopHandle.resume = NOOP;
8052
- watchStopHandle.pause = NOOP;
8053
- return watchStopHandle;
8054
- }
8055
- }
8056
- const instance = currentInstance;
8057
- baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
8058
- let isPre = false;
8059
- if (flush === "post") {
8060
- baseWatchOptions.scheduler = (job) => {
8061
- queuePostRenderEffect(job, instance && instance.suspense);
8062
- };
8063
- } else if (flush !== "sync") {
8064
- isPre = true;
8065
- baseWatchOptions.scheduler = (job, isFirstRun) => {
8066
- if (isFirstRun) {
8067
- job();
8068
- } else {
8069
- queueJob(job);
8070
- }
8071
- };
8072
- }
8073
- baseWatchOptions.augmentJob = (job) => {
8074
- if (cb) {
8075
- job.flags |= 4;
8076
- }
8077
- if (isPre) {
8078
- job.flags |= 2;
8079
- if (instance) {
8080
- job.id = instance.uid;
8081
- job.i = instance;
8082
- }
8083
- }
8084
- };
8085
- const watchHandle = watch$1(source, cb, baseWatchOptions);
8086
- if (isInSSRComponentSetup) {
8087
- if (ssrCleanup) {
8088
- ssrCleanup.push(watchHandle);
8089
- } else if (runsImmediately) {
8090
- watchHandle();
8091
- }
8114
+ function compatModelEmit(instance, event, args) {
8115
+ if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
8116
+ return;
8092
8117
  }
8093
- return watchHandle;
8094
- }
8095
- function instanceWatch(source, value, options) {
8096
- const publicThis = this.proxy;
8097
- const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
8098
- let cb;
8099
- if (isFunction(value)) {
8100
- cb = value;
8101
- } else {
8102
- cb = value.handler;
8103
- options = value;
8118
+ const props = instance.vnode.props;
8119
+ const modelHandler = props && props[compatModelEventPrefix + event];
8120
+ if (modelHandler) {
8121
+ callWithErrorHandling(
8122
+ modelHandler,
8123
+ instance,
8124
+ 6,
8125
+ args
8126
+ );
8104
8127
  }
8105
- const reset = setCurrentInstance(this);
8106
- const res = doWatch(getter, cb.bind(publicThis), options);
8107
- reset();
8108
- return res;
8109
- }
8110
- function createPathGetter(ctx, path) {
8111
- const segments = path.split(".");
8112
- return () => {
8113
- let cur = ctx;
8114
- for (let i = 0; i < segments.length && cur; i++) {
8115
- cur = cur[segments[i]];
8116
- }
8117
- return cur;
8118
- };
8119
8128
  }
8120
8129
 
8121
8130
  function useModel(props, name, options = EMPTY_OBJ) {
@@ -9401,7 +9410,15 @@ function baseCreateRenderer(options, createHydrationFns) {
9401
9410
  } else {
9402
9411
  const el = n2.el = n1.el;
9403
9412
  if (n2.children !== n1.children) {
9404
- hostSetText(el, n2.children);
9413
+ if (isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
9414
+ const childNodes = container.childNodes;
9415
+ const newChild = hostCreateText(n2.children);
9416
+ const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
9417
+ hostInsert(newChild, container, oldChild);
9418
+ hostRemove(oldChild);
9419
+ } else {
9420
+ hostSetText(el, n2.children);
9421
+ }
9405
9422
  }
9406
9423
  }
9407
9424
  };
@@ -9787,7 +9804,7 @@ function baseCreateRenderer(options, createHydrationFns) {
9787
9804
  } else {
9788
9805
  if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
9789
9806
  // of renderSlot() with no valid children
9790
- n1.dynamicChildren) {
9807
+ n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
9791
9808
  patchBlockChildren(
9792
9809
  n1.dynamicChildren,
9793
9810
  dynamicChildren,
@@ -10401,8 +10418,8 @@ function baseCreateRenderer(options, createHydrationFns) {
10401
10418
  const nextChild = c2[nextIndex];
10402
10419
  const anchorVNode = c2[nextIndex + 1];
10403
10420
  const anchor = nextIndex + 1 < l2 ? (
10404
- // #13559, fallback to el placeholder for unresolved async component
10405
- anchorVNode.el || anchorVNode.placeholder
10421
+ // #13559, #14173 fallback to el placeholder for unresolved async component
10422
+ anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
10406
10423
  ) : parentAnchor;
10407
10424
  if (newIndexToOldIndexMap[i] === 0) {
10408
10425
  patch(
@@ -10667,9 +10684,11 @@ function baseCreateRenderer(options, createHydrationFns) {
10667
10684
  };
10668
10685
  let isFlushing = false;
10669
10686
  const render = (vnode, container, namespace) => {
10687
+ let instance;
10670
10688
  if (vnode == null) {
10671
10689
  if (container._vnode) {
10672
10690
  unmount(container._vnode, null, null, true);
10691
+ instance = container._vnode.component;
10673
10692
  }
10674
10693
  } else {
10675
10694
  patch(
@@ -10685,7 +10704,7 @@ function baseCreateRenderer(options, createHydrationFns) {
10685
10704
  container._vnode = vnode;
10686
10705
  if (!isFlushing) {
10687
10706
  isFlushing = true;
10688
- flushPreFlushCbs();
10707
+ flushPreFlushCbs(instance);
10689
10708
  flushPostFlushCbs();
10690
10709
  isFlushing = false;
10691
10710
  }
@@ -10745,9 +10764,13 @@ function traverseStaticChildren(n1, n2, shallow = false) {
10745
10764
  if (!shallow && c2.patchFlag !== -2)
10746
10765
  traverseStaticChildren(c1, c2);
10747
10766
  }
10748
- if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
10749
- c2.patchFlag !== -1) {
10750
- c2.el = c1.el;
10767
+ if (c2.type === Text) {
10768
+ if (c2.patchFlag !== -1) {
10769
+ c2.el = c1.el;
10770
+ } else {
10771
+ c2.__elIndex = i + // take fragment start anchor into account
10772
+ (n1.type === Fragment ? 1 : 0);
10773
+ }
10751
10774
  }
10752
10775
  if (c2.type === Comment && !c2.el) {
10753
10776
  c2.el = c1.el;
@@ -10814,6 +10837,16 @@ function invalidateMount(hooks) {
10814
10837
  hooks[i].flags |= 8;
10815
10838
  }
10816
10839
  }
10840
+ function resolveAsyncComponentPlaceholder(anchorVnode) {
10841
+ if (anchorVnode.placeholder) {
10842
+ return anchorVnode.placeholder;
10843
+ }
10844
+ const instance = anchorVnode.component;
10845
+ if (instance) {
10846
+ return resolveAsyncComponentPlaceholder(instance.subTree);
10847
+ }
10848
+ return null;
10849
+ }
10817
10850
 
10818
10851
  const isSuspense = (type) => type.__isSuspense;
10819
10852
  let suspenseId = 0;
@@ -11473,10 +11506,10 @@ function convertLegacyComponent(comp, instance) {
11473
11506
  return comp;
11474
11507
  }
11475
11508
 
11476
- const Fragment = Symbol.for("v-fgt");
11477
- const Text = Symbol.for("v-txt");
11478
- const Comment = Symbol.for("v-cmt");
11479
- const Static = Symbol.for("v-stc");
11509
+ const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
11510
+ const Text = /* @__PURE__ */ Symbol.for("v-txt");
11511
+ const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
11512
+ const Static = /* @__PURE__ */ Symbol.for("v-stc");
11480
11513
  const blockStack = [];
11481
11514
  let currentBlock = null;
11482
11515
  function openBlock(disableTracking = false) {
@@ -12542,7 +12575,7 @@ function isMemoSame(cached, memo) {
12542
12575
  return true;
12543
12576
  }
12544
12577
 
12545
- const version = "3.5.25";
12578
+ const version = "3.5.26";
12546
12579
  const warn = warn$1 ;
12547
12580
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12548
12581
  const devtools = devtools$1 ;
@@ -12654,7 +12687,7 @@ const nodeOps = {
12654
12687
 
12655
12688
  const TRANSITION$1 = "transition";
12656
12689
  const ANIMATION = "animation";
12657
- const vtcKey = Symbol("_vtc");
12690
+ const vtcKey = /* @__PURE__ */ Symbol("_vtc");
12658
12691
  const DOMTransitionPropsValidators = {
12659
12692
  name: String,
12660
12693
  type: String,
@@ -12984,8 +13017,8 @@ function patchClass(el, value, isSVG) {
12984
13017
  }
12985
13018
  }
12986
13019
 
12987
- const vShowOriginalDisplay = Symbol("_vod");
12988
- const vShowHidden = Symbol("_vsh");
13020
+ const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
13021
+ const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
12989
13022
  const vShow = {
12990
13023
  // used for prop mismatch check during hydration
12991
13024
  name: "show",
@@ -13034,7 +13067,7 @@ function initVShowForSSR() {
13034
13067
  };
13035
13068
  }
13036
13069
 
13037
- const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT" );
13070
+ const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("CSS_VAR_TEXT" );
13038
13071
  function useCssVars(getter) {
13039
13072
  return;
13040
13073
  }
@@ -13164,7 +13197,7 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
13164
13197
  const isEnumeratedAttr = /* @__PURE__ */ makeMap("contenteditable,draggable,spellcheck") ;
13165
13198
  function compatCoerceAttr(el, key, value, instance = null) {
13166
13199
  if (isEnumeratedAttr(key)) {
13167
- const v2CoercedValue = value === null ? "false" : typeof value !== "boolean" && value !== void 0 ? "true" : null;
13200
+ const v2CoercedValue = value === void 0 ? null : value === null || value === false || value === "false" ? "false" : "true";
13168
13201
  if (v2CoercedValue && compatUtils.softAssertCompatEnabled(
13169
13202
  "ATTR_ENUMERATED_COERCION",
13170
13203
  instance,
@@ -13260,7 +13293,7 @@ function addEventListener(el, event, handler, options) {
13260
13293
  function removeEventListener(el, event, handler, options) {
13261
13294
  el.removeEventListener(event, handler, options);
13262
13295
  }
13263
- const veiKey = Symbol("_vei");
13296
+ const veiKey = /* @__PURE__ */ Symbol("_vei");
13264
13297
  function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
13265
13298
  const invokers = el[veiKey] || (el[veiKey] = {});
13266
13299
  const existingInvoker = invokers[rawName];
@@ -13898,8 +13931,8 @@ function useCssModule(name = "$style") {
13898
13931
 
13899
13932
  const positionMap = /* @__PURE__ */ new WeakMap();
13900
13933
  const newPositionMap = /* @__PURE__ */ new WeakMap();
13901
- const moveCbKey = Symbol("_moveCb");
13902
- const enterCbKey = Symbol("_enterCb");
13934
+ const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
13935
+ const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
13903
13936
  const decorate = (t) => {
13904
13937
  delete t.props.mode;
13905
13938
  {
@@ -14061,7 +14094,7 @@ function onCompositionEnd(e) {
14061
14094
  target.dispatchEvent(new Event("input"));
14062
14095
  }
14063
14096
  }
14064
- const assignKey = Symbol("_assign");
14097
+ const assignKey = /* @__PURE__ */ Symbol("_assign");
14065
14098
  function castValue(value, trim, number) {
14066
14099
  if (trim) value = value.trim();
14067
14100
  if (number) value = looseToNumber(value);
@@ -14741,81 +14774,81 @@ function createCompatVue() {
14741
14774
  return Vue;
14742
14775
  }
14743
14776
 
14744
- const FRAGMENT = Symbol(`Fragment` );
14745
- const TELEPORT = Symbol(`Teleport` );
14746
- const SUSPENSE = Symbol(`Suspense` );
14747
- const KEEP_ALIVE = Symbol(`KeepAlive` );
14748
- const BASE_TRANSITION = Symbol(
14777
+ const FRAGMENT = /* @__PURE__ */ Symbol(`Fragment` );
14778
+ const TELEPORT = /* @__PURE__ */ Symbol(`Teleport` );
14779
+ const SUSPENSE = /* @__PURE__ */ Symbol(`Suspense` );
14780
+ const KEEP_ALIVE = /* @__PURE__ */ Symbol(`KeepAlive` );
14781
+ const BASE_TRANSITION = /* @__PURE__ */ Symbol(
14749
14782
  `BaseTransition`
14750
14783
  );
14751
- const OPEN_BLOCK = Symbol(`openBlock` );
14752
- const CREATE_BLOCK = Symbol(`createBlock` );
14753
- const CREATE_ELEMENT_BLOCK = Symbol(
14784
+ const OPEN_BLOCK = /* @__PURE__ */ Symbol(`openBlock` );
14785
+ const CREATE_BLOCK = /* @__PURE__ */ Symbol(`createBlock` );
14786
+ const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
14754
14787
  `createElementBlock`
14755
14788
  );
14756
- const CREATE_VNODE = Symbol(`createVNode` );
14757
- const CREATE_ELEMENT_VNODE = Symbol(
14789
+ const CREATE_VNODE = /* @__PURE__ */ Symbol(`createVNode` );
14790
+ const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
14758
14791
  `createElementVNode`
14759
14792
  );
14760
- const CREATE_COMMENT = Symbol(
14793
+ const CREATE_COMMENT = /* @__PURE__ */ Symbol(
14761
14794
  `createCommentVNode`
14762
14795
  );
14763
- const CREATE_TEXT = Symbol(
14796
+ const CREATE_TEXT = /* @__PURE__ */ Symbol(
14764
14797
  `createTextVNode`
14765
14798
  );
14766
- const CREATE_STATIC = Symbol(
14799
+ const CREATE_STATIC = /* @__PURE__ */ Symbol(
14767
14800
  `createStaticVNode`
14768
14801
  );
14769
- const RESOLVE_COMPONENT = Symbol(
14802
+ const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
14770
14803
  `resolveComponent`
14771
14804
  );
14772
- const RESOLVE_DYNAMIC_COMPONENT = Symbol(
14805
+ const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
14773
14806
  `resolveDynamicComponent`
14774
14807
  );
14775
- const RESOLVE_DIRECTIVE = Symbol(
14808
+ const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
14776
14809
  `resolveDirective`
14777
14810
  );
14778
- const RESOLVE_FILTER = Symbol(
14811
+ const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
14779
14812
  `resolveFilter`
14780
14813
  );
14781
- const WITH_DIRECTIVES = Symbol(
14814
+ const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
14782
14815
  `withDirectives`
14783
14816
  );
14784
- const RENDER_LIST = Symbol(`renderList` );
14785
- const RENDER_SLOT = Symbol(`renderSlot` );
14786
- const CREATE_SLOTS = Symbol(`createSlots` );
14787
- const TO_DISPLAY_STRING = Symbol(
14817
+ const RENDER_LIST = /* @__PURE__ */ Symbol(`renderList` );
14818
+ const RENDER_SLOT = /* @__PURE__ */ Symbol(`renderSlot` );
14819
+ const CREATE_SLOTS = /* @__PURE__ */ Symbol(`createSlots` );
14820
+ const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
14788
14821
  `toDisplayString`
14789
14822
  );
14790
- const MERGE_PROPS = Symbol(`mergeProps` );
14791
- const NORMALIZE_CLASS = Symbol(
14823
+ const MERGE_PROPS = /* @__PURE__ */ Symbol(`mergeProps` );
14824
+ const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
14792
14825
  `normalizeClass`
14793
14826
  );
14794
- const NORMALIZE_STYLE = Symbol(
14827
+ const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
14795
14828
  `normalizeStyle`
14796
14829
  );
14797
- const NORMALIZE_PROPS = Symbol(
14830
+ const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
14798
14831
  `normalizeProps`
14799
14832
  );
14800
- const GUARD_REACTIVE_PROPS = Symbol(
14833
+ const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
14801
14834
  `guardReactiveProps`
14802
14835
  );
14803
- const TO_HANDLERS = Symbol(`toHandlers` );
14804
- const CAMELIZE = Symbol(`camelize` );
14805
- const CAPITALIZE = Symbol(`capitalize` );
14806
- const TO_HANDLER_KEY = Symbol(
14836
+ const TO_HANDLERS = /* @__PURE__ */ Symbol(`toHandlers` );
14837
+ const CAMELIZE = /* @__PURE__ */ Symbol(`camelize` );
14838
+ const CAPITALIZE = /* @__PURE__ */ Symbol(`capitalize` );
14839
+ const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
14807
14840
  `toHandlerKey`
14808
14841
  );
14809
- const SET_BLOCK_TRACKING = Symbol(
14842
+ const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
14810
14843
  `setBlockTracking`
14811
14844
  );
14812
- const PUSH_SCOPE_ID = Symbol(`pushScopeId` );
14813
- const POP_SCOPE_ID = Symbol(`popScopeId` );
14814
- const WITH_CTX = Symbol(`withCtx` );
14815
- const UNREF = Symbol(`unref` );
14816
- const IS_REF = Symbol(`isRef` );
14817
- const WITH_MEMO = Symbol(`withMemo` );
14818
- const IS_MEMO_SAME = Symbol(`isMemoSame` );
14845
+ const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(`pushScopeId` );
14846
+ const POP_SCOPE_ID = /* @__PURE__ */ Symbol(`popScopeId` );
14847
+ const WITH_CTX = /* @__PURE__ */ Symbol(`withCtx` );
14848
+ const UNREF = /* @__PURE__ */ Symbol(`unref` );
14849
+ const IS_REF = /* @__PURE__ */ Symbol(`isRef` );
14850
+ const WITH_MEMO = /* @__PURE__ */ Symbol(`withMemo` );
14851
+ const IS_MEMO_SAME = /* @__PURE__ */ Symbol(`isMemoSame` );
14819
14852
  const helperNameMap = {
14820
14853
  [FRAGMENT]: `Fragment`,
14821
14854
  [TELEPORT]: `Teleport`,
@@ -15085,8 +15118,8 @@ class Tokenizer {
15085
15118
  this.currentSequence = void 0;
15086
15119
  this.sequenceIndex = 0;
15087
15120
  {
15088
- this.entityDecoder = new decode_js.EntityDecoder(
15089
- decode_js.htmlDecodeTree,
15121
+ this.entityDecoder = new decode.EntityDecoder(
15122
+ decode.htmlDecodeTree,
15090
15123
  (cp, consumed) => this.emitCodePoint(cp, consumed)
15091
15124
  );
15092
15125
  }
@@ -15116,14 +15149,28 @@ class Tokenizer {
15116
15149
  getPos(index) {
15117
15150
  let line = 1;
15118
15151
  let column = index + 1;
15119
- for (let i = this.newlines.length - 1; i >= 0; i--) {
15120
- const newlineIndex = this.newlines[i];
15121
- if (index > newlineIndex) {
15122
- line = i + 2;
15123
- column = index - newlineIndex;
15124
- break;
15152
+ const length = this.newlines.length;
15153
+ let j = -1;
15154
+ if (length > 100) {
15155
+ let l = -1;
15156
+ let r = length;
15157
+ while (l + 1 < r) {
15158
+ const m = l + r >>> 1;
15159
+ this.newlines[m] < index ? l = m : r = m;
15160
+ }
15161
+ j = l;
15162
+ } else {
15163
+ for (let i = length - 1; i >= 0; i--) {
15164
+ if (index > this.newlines[i]) {
15165
+ j = i;
15166
+ break;
15167
+ }
15125
15168
  }
15126
15169
  }
15170
+ if (j >= 0) {
15171
+ line = j + 2;
15172
+ column = index - this.newlines[j];
15173
+ }
15127
15174
  return {
15128
15175
  column,
15129
15176
  line,
@@ -15636,7 +15683,7 @@ class Tokenizer {
15636
15683
  this.state = 33;
15637
15684
  this.entityStart = this.index;
15638
15685
  this.entityDecoder.startEntity(
15639
- this.baseState === 1 || this.baseState === 32 ? decode_js.DecodingMode.Legacy : decode_js.DecodingMode.Attribute
15686
+ this.baseState === 1 || this.baseState === 32 ? decode.DecodingMode.Legacy : decode.DecodingMode.Attribute
15640
15687
  );
15641
15688
  }
15642
15689
  }
@@ -15855,7 +15902,7 @@ class Tokenizer {
15855
15902
  this.sectionStart = this.entityStart + consumed;
15856
15903
  this.index = this.sectionStart - 1;
15857
15904
  this.cbs.onattribentity(
15858
- decode_js.fromCodePoint(cp),
15905
+ decode.fromCodePoint(cp),
15859
15906
  this.entityStart,
15860
15907
  this.sectionStart
15861
15908
  );
@@ -15866,7 +15913,7 @@ class Tokenizer {
15866
15913
  this.sectionStart = this.entityStart + consumed;
15867
15914
  this.index = this.sectionStart - 1;
15868
15915
  this.cbs.ontextentity(
15869
- decode_js.fromCodePoint(cp),
15916
+ decode.fromCodePoint(cp),
15870
15917
  this.entityStart,
15871
15918
  this.sectionStart
15872
15919
  );
@@ -15994,7 +16041,7 @@ const errorMessages = {
15994
16041
  [32]: `v-for has invalid expression.`,
15995
16042
  [33]: `<template v-for> key should be placed on the <template> tag.`,
15996
16043
  [34]: `v-bind is missing expression.`,
15997
- [52]: `v-bind with same-name shorthand only allows static argument.`,
16044
+ [53]: `v-bind with same-name shorthand only allows static argument.`,
15998
16045
  [35]: `v-on is missing expression.`,
15999
16046
  [36]: `Unexpected custom directive on <slot> outlet.`,
16000
16047
  [37]: `Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.`,
@@ -16006,16 +16053,17 @@ const errorMessages = {
16006
16053
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
16007
16054
  [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
16008
16055
  Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
16009
- [45]: `Error parsing JavaScript expression: `,
16010
- [46]: `<KeepAlive> expects exactly one child component.`,
16011
- [51]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,
16056
+ [45]: `v-model cannot be used on a const binding because it is not writable.`,
16057
+ [46]: `Error parsing JavaScript expression: `,
16058
+ [47]: `<KeepAlive> expects exactly one child component.`,
16059
+ [52]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,
16012
16060
  // generic errors
16013
- [47]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
16014
- [48]: `ES module mode is not supported in this build of compiler.`,
16015
- [49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
16016
- [50]: `"scopeId" option is only supported in module mode.`,
16061
+ [48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
16062
+ [49]: `ES module mode is not supported in this build of compiler.`,
16063
+ [50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
16064
+ [51]: `"scopeId" option is only supported in module mode.`,
16017
16065
  // just to fulfill types
16018
- [53]: ``
16066
+ [54]: ``
16019
16067
  };
16020
16068
 
16021
16069
  function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = /* @__PURE__ */ Object.create(null)) {
@@ -16739,7 +16787,7 @@ const tokenizer = new Tokenizer(stack, {
16739
16787
  let exp = getSlice(innerStart, innerEnd);
16740
16788
  if (exp.includes("&")) {
16741
16789
  {
16742
- exp = decode_js.decodeHTML(exp);
16790
+ exp = decode.decodeHTML(exp);
16743
16791
  }
16744
16792
  }
16745
16793
  addNode({
@@ -17400,7 +17448,7 @@ function createExp(content, isStatic = false, loc, constType = 0, parseMode = 0
17400
17448
  }
17401
17449
  } catch (e) {
17402
17450
  exp.ast = false;
17403
- emitError(45, loc.start.offset, e.message);
17451
+ emitError(46, loc.start.offset, e.message);
17404
17452
  }
17405
17453
  }
17406
17454
  return exp;
@@ -18973,7 +19021,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
18973
19021
  } catch (e) {
18974
19022
  context.onError(
18975
19023
  createCompilerError(
18976
- 45,
19024
+ 46,
18977
19025
  node.loc,
18978
19026
  void 0,
18979
19027
  e.message
@@ -19857,7 +19905,7 @@ const transformElement = (node, context) => {
19857
19905
  patchFlag |= 1024;
19858
19906
  if (node.children.length > 1) {
19859
19907
  context.onError(
19860
- createCompilerError(46, {
19908
+ createCompilerError(47, {
19861
19909
  start: node.children[0].loc.start,
19862
19910
  end: node.children[node.children.length - 1].loc.end,
19863
19911
  source: ""
@@ -20520,7 +20568,7 @@ const transformOn$1 = (dir, node, context, augmentor) => {
20520
20568
  if (arg.isStatic) {
20521
20569
  let rawName = arg.content;
20522
20570
  if (rawName.startsWith("vnode")) {
20523
- context.onError(createCompilerError(51, arg.loc));
20571
+ context.onError(createCompilerError(52, arg.loc));
20524
20572
  }
20525
20573
  if (rawName.startsWith("vue:")) {
20526
20574
  rawName = `vnode-${rawName.slice(4)}`;
@@ -20782,6 +20830,10 @@ const transformModel$1 = (dir, node, context) => {
20782
20830
  context.onError(createCompilerError(44, exp.loc));
20783
20831
  return createTransformProps();
20784
20832
  }
20833
+ if (bindingType === "literal-const" || bindingType === "setup-const") {
20834
+ context.onError(createCompilerError(45, exp.loc));
20835
+ return createTransformProps();
20836
+ }
20785
20837
  const maybeRef = context.inline && (bindingType === "setup-let" || bindingType === "setup-ref" || bindingType === "setup-maybe-ref");
20786
20838
  if (!expString.trim() || !isMemberExpression(exp, context) && !maybeRef) {
20787
20839
  context.onError(
@@ -21035,7 +21087,7 @@ const transformVBindShorthand = (node, context) => {
21035
21087
  if (arg.type !== 4 || !arg.isStatic) {
21036
21088
  context.onError(
21037
21089
  createCompilerError(
21038
- 52,
21090
+ 53,
21039
21091
  arg.loc
21040
21092
  )
21041
21093
  );
@@ -21083,10 +21135,10 @@ function baseCompile(source, options = {}) {
21083
21135
  const isModuleMode = options.mode === "module";
21084
21136
  const prefixIdentifiers = options.prefixIdentifiers === true || isModuleMode;
21085
21137
  if (!prefixIdentifiers && options.cacheHandlers) {
21086
- onError(createCompilerError(49));
21138
+ onError(createCompilerError(50));
21087
21139
  }
21088
21140
  if (options.scopeId && !isModuleMode) {
21089
- onError(createCompilerError(50));
21141
+ onError(createCompilerError(51));
21090
21142
  }
21091
21143
  const resolvedOptions = extend({}, options, {
21092
21144
  prefixIdentifiers
@@ -21120,26 +21172,26 @@ function baseCompile(source, options = {}) {
21120
21172
 
21121
21173
  const noopDirectiveTransform = () => ({ props: [] });
21122
21174
 
21123
- const V_MODEL_RADIO = Symbol(`vModelRadio` );
21124
- const V_MODEL_CHECKBOX = Symbol(
21175
+ const V_MODEL_RADIO = /* @__PURE__ */ Symbol(`vModelRadio` );
21176
+ const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
21125
21177
  `vModelCheckbox`
21126
21178
  );
21127
- const V_MODEL_TEXT = Symbol(`vModelText` );
21128
- const V_MODEL_SELECT = Symbol(
21179
+ const V_MODEL_TEXT = /* @__PURE__ */ Symbol(`vModelText` );
21180
+ const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
21129
21181
  `vModelSelect`
21130
21182
  );
21131
- const V_MODEL_DYNAMIC = Symbol(
21183
+ const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
21132
21184
  `vModelDynamic`
21133
21185
  );
21134
- const V_ON_WITH_MODIFIERS = Symbol(
21186
+ const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
21135
21187
  `vOnModifiersGuard`
21136
21188
  );
21137
- const V_ON_WITH_KEYS = Symbol(
21189
+ const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
21138
21190
  `vOnKeysGuard`
21139
21191
  );
21140
- const V_SHOW = Symbol(`vShow` );
21141
- const TRANSITION = Symbol(`Transition` );
21142
- const TRANSITION_GROUP = Symbol(
21192
+ const V_SHOW = /* @__PURE__ */ Symbol(`vShow` );
21193
+ const TRANSITION = /* @__PURE__ */ Symbol(`Transition` );
21194
+ const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
21143
21195
  `TransitionGroup`
21144
21196
  );
21145
21197
  registerRuntimeHelpers({
@@ -21236,29 +21288,29 @@ function createDOMCompilerError(code, loc) {
21236
21288
  );
21237
21289
  }
21238
21290
  const DOMErrorMessages = {
21239
- [53]: `v-html is missing expression.`,
21240
- [54]: `v-html will override element children.`,
21241
- [55]: `v-text is missing expression.`,
21242
- [56]: `v-text will override element children.`,
21243
- [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
21244
- [58]: `v-model argument is not supported on plain elements.`,
21245
- [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
21246
- [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
21247
- [61]: `v-show is missing expression.`,
21248
- [62]: `<Transition> expects exactly one child element or component.`,
21249
- [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
21291
+ [54]: `v-html is missing expression.`,
21292
+ [55]: `v-html will override element children.`,
21293
+ [56]: `v-text is missing expression.`,
21294
+ [57]: `v-text will override element children.`,
21295
+ [58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
21296
+ [59]: `v-model argument is not supported on plain elements.`,
21297
+ [60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
21298
+ [61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
21299
+ [62]: `v-show is missing expression.`,
21300
+ [63]: `<Transition> expects exactly one child element or component.`,
21301
+ [64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
21250
21302
  };
21251
21303
 
21252
21304
  const transformVHtml = (dir, node, context) => {
21253
21305
  const { exp, loc } = dir;
21254
21306
  if (!exp) {
21255
21307
  context.onError(
21256
- createDOMCompilerError(53, loc)
21308
+ createDOMCompilerError(54, loc)
21257
21309
  );
21258
21310
  }
21259
21311
  if (node.children.length) {
21260
21312
  context.onError(
21261
- createDOMCompilerError(54, loc)
21313
+ createDOMCompilerError(55, loc)
21262
21314
  );
21263
21315
  node.children.length = 0;
21264
21316
  }
@@ -21276,12 +21328,12 @@ const transformVText = (dir, node, context) => {
21276
21328
  const { exp, loc } = dir;
21277
21329
  if (!exp) {
21278
21330
  context.onError(
21279
- createDOMCompilerError(55, loc)
21331
+ createDOMCompilerError(56, loc)
21280
21332
  );
21281
21333
  }
21282
21334
  if (node.children.length) {
21283
21335
  context.onError(
21284
- createDOMCompilerError(56, loc)
21336
+ createDOMCompilerError(57, loc)
21285
21337
  );
21286
21338
  node.children.length = 0;
21287
21339
  }
@@ -21307,7 +21359,7 @@ const transformModel = (dir, node, context) => {
21307
21359
  if (dir.arg) {
21308
21360
  context.onError(
21309
21361
  createDOMCompilerError(
21310
- 58,
21362
+ 59,
21311
21363
  dir.arg.loc
21312
21364
  )
21313
21365
  );
@@ -21317,7 +21369,7 @@ const transformModel = (dir, node, context) => {
21317
21369
  if (value && isStaticArgOf(value.arg, "value")) {
21318
21370
  context.onError(
21319
21371
  createDOMCompilerError(
21320
- 60,
21372
+ 61,
21321
21373
  value.loc
21322
21374
  )
21323
21375
  );
@@ -21345,7 +21397,7 @@ const transformModel = (dir, node, context) => {
21345
21397
  isInvalidType = true;
21346
21398
  context.onError(
21347
21399
  createDOMCompilerError(
21348
- 59,
21400
+ 60,
21349
21401
  dir.loc
21350
21402
  )
21351
21403
  );
@@ -21371,7 +21423,7 @@ const transformModel = (dir, node, context) => {
21371
21423
  } else {
21372
21424
  context.onError(
21373
21425
  createDOMCompilerError(
21374
- 57,
21426
+ 58,
21375
21427
  dir.loc
21376
21428
  )
21377
21429
  );
@@ -21479,7 +21531,7 @@ const transformShow = (dir, node, context) => {
21479
21531
  const { exp, loc } = dir;
21480
21532
  if (!exp) {
21481
21533
  context.onError(
21482
- createDOMCompilerError(61, loc)
21534
+ createDOMCompilerError(62, loc)
21483
21535
  );
21484
21536
  }
21485
21537
  return {
@@ -21499,7 +21551,7 @@ const transformTransition = (node, context) => {
21499
21551
  if (hasMultipleChildren(node)) {
21500
21552
  context.onError(
21501
21553
  createDOMCompilerError(
21502
- 62,
21554
+ 63,
21503
21555
  {
21504
21556
  start: node.children[0].loc.start,
21505
21557
  end: node.children[node.children.length - 1].loc.end,
@@ -21772,7 +21824,7 @@ const ignoreSideEffectTags = (node, context) => {
21772
21824
  if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
21773
21825
  context.onError(
21774
21826
  createDOMCompilerError(
21775
- 63,
21827
+ 64,
21776
21828
  node.loc
21777
21829
  )
21778
21830
  );