@vue/compat 3.6.0-alpha.7 → 3.6.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.6.0-alpha.7
2
+ * @vue/compat v3.6.0-beta.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -827,13 +827,13 @@ var Vue = (function () {
827
827
  }
828
828
  }
829
829
  const targetMap = /* @__PURE__ */ new WeakMap();
830
- const ITERATE_KEY = Symbol(
830
+ const ITERATE_KEY = /* @__PURE__ */ Symbol(
831
831
  "Object iterate"
832
832
  );
833
- const MAP_KEY_ITERATE_KEY = Symbol(
833
+ const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
834
834
  "Map keys iterate"
835
835
  );
836
- const ARRAY_ITERATE_KEY = Symbol(
836
+ const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
837
837
  "Array iterate"
838
838
  );
839
839
  function track(target, type, key) {
@@ -2834,10 +2834,10 @@ var Vue = (function () {
2834
2834
  }
2835
2835
  }
2836
2836
  let isFlushing = false;
2837
- function flushOnAppMount() {
2837
+ function flushOnAppMount(instance) {
2838
2838
  if (!isFlushing) {
2839
2839
  isFlushing = true;
2840
- flushPreFlushCbs();
2840
+ flushPreFlushCbs(instance);
2841
2841
  flushPostFlushCbs();
2842
2842
  isFlushing = false;
2843
2843
  }
@@ -3571,65 +3571,6 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3571
3571
  return instance.proxy;
3572
3572
  }
3573
3573
 
3574
- const compatModelEventPrefix = `onModelCompat:`;
3575
- const warnedTypes = /* @__PURE__ */ new WeakSet();
3576
- function convertLegacyVModelProps(vnode) {
3577
- const { type, shapeFlag, props, dynamicProps } = vnode;
3578
- const comp = type;
3579
- if (shapeFlag & 6 && props && "modelValue" in props) {
3580
- if (!isCompatEnabled$1(
3581
- "COMPONENT_V_MODEL",
3582
- // this is a special case where we want to use the vnode component's
3583
- // compat config instead of the current rendering instance (which is the
3584
- // parent of the component that exposes v-model)
3585
- { type }
3586
- )) {
3587
- return;
3588
- }
3589
- if (!warnedTypes.has(comp)) {
3590
- pushWarningContext(vnode);
3591
- warnDeprecation$1("COMPONENT_V_MODEL", { type }, comp);
3592
- popWarningContext();
3593
- warnedTypes.add(comp);
3594
- }
3595
- const model = comp.model || {};
3596
- applyModelFromMixins(model, comp.mixins);
3597
- const { prop = "value", event = "input" } = model;
3598
- if (prop !== "modelValue") {
3599
- props[prop] = props.modelValue;
3600
- delete props.modelValue;
3601
- }
3602
- if (dynamicProps) {
3603
- dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
3604
- }
3605
- props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
3606
- delete props["onUpdate:modelValue"];
3607
- }
3608
- }
3609
- function applyModelFromMixins(model, mixins) {
3610
- if (mixins) {
3611
- mixins.forEach((m) => {
3612
- if (m.model) extend(model, m.model);
3613
- if (m.mixins) applyModelFromMixins(model, m.mixins);
3614
- });
3615
- }
3616
- }
3617
- function compatModelEmit(instance, event, args) {
3618
- if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
3619
- return;
3620
- }
3621
- const props = instance.vnode.props;
3622
- const modelHandler = props && props[compatModelEventPrefix + event];
3623
- if (modelHandler) {
3624
- callWithErrorHandling(
3625
- modelHandler,
3626
- instance,
3627
- 6,
3628
- args
3629
- );
3630
- }
3631
- }
3632
-
3633
3574
  let currentRenderingInstance = null;
3634
3575
  let currentScopeId = null;
3635
3576
  function setCurrentRenderingInstance(instance) {
@@ -3780,7 +3721,175 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3780
3721
  }
3781
3722
  }
3782
3723
 
3783
- const TeleportEndKey = Symbol("_vte");
3724
+ function provide(key, value) {
3725
+ {
3726
+ if (!currentInstance || currentInstance.isMounted && !isHmrUpdating) {
3727
+ warn$1(`provide() can only be used inside setup().`);
3728
+ }
3729
+ }
3730
+ if (currentInstance) {
3731
+ let provides = currentInstance.provides;
3732
+ const parentProvides = currentInstance.parent && currentInstance.parent.provides;
3733
+ if (parentProvides === provides) {
3734
+ provides = currentInstance.provides = Object.create(parentProvides);
3735
+ }
3736
+ provides[key] = value;
3737
+ }
3738
+ }
3739
+ function inject(key, defaultValue, treatDefaultAsFactory = false) {
3740
+ const instance = getCurrentGenericInstance();
3741
+ if (instance || currentApp) {
3742
+ let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
3743
+ if (provides && key in provides) {
3744
+ return provides[key];
3745
+ } else if (arguments.length > 1) {
3746
+ return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
3747
+ } else {
3748
+ warn$1(`injection "${String(key)}" not found.`);
3749
+ }
3750
+ } else {
3751
+ warn$1(`inject() can only be used inside setup() or functional components.`);
3752
+ }
3753
+ }
3754
+ function hasInjectionContext() {
3755
+ return !!(getCurrentGenericInstance() || currentApp);
3756
+ }
3757
+
3758
+ const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
3759
+ const useSSRContext = () => {
3760
+ {
3761
+ warn$1(`useSSRContext() is not supported in the global build.`);
3762
+ }
3763
+ };
3764
+
3765
+ function watchEffect(effect, options) {
3766
+ return doWatch(effect, null, options);
3767
+ }
3768
+ function watchPostEffect(effect, options) {
3769
+ return doWatch(
3770
+ effect,
3771
+ null,
3772
+ extend({}, options, { flush: "post" })
3773
+ );
3774
+ }
3775
+ function watchSyncEffect(effect, options) {
3776
+ return doWatch(
3777
+ effect,
3778
+ null,
3779
+ extend({}, options, { flush: "sync" })
3780
+ );
3781
+ }
3782
+ function watch(source, cb, options) {
3783
+ if (!isFunction(cb)) {
3784
+ warn$1(
3785
+ `\`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.`
3786
+ );
3787
+ }
3788
+ return doWatch(source, cb, options);
3789
+ }
3790
+ class RenderWatcherEffect extends WatcherEffect {
3791
+ constructor(instance, source, cb, options, flush) {
3792
+ super(source, cb, options);
3793
+ this.flush = flush;
3794
+ const job = () => {
3795
+ if (this.dirty) {
3796
+ this.run();
3797
+ }
3798
+ };
3799
+ if (cb) {
3800
+ this.flags |= 128;
3801
+ job.flags |= 2;
3802
+ }
3803
+ if (instance) {
3804
+ job.i = instance;
3805
+ }
3806
+ this.job = job;
3807
+ }
3808
+ notify() {
3809
+ const flags = this.flags;
3810
+ if (!(flags & 256)) {
3811
+ const flush = this.flush;
3812
+ const job = this.job;
3813
+ if (flush === "post") {
3814
+ queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
3815
+ } else if (flush === "pre") {
3816
+ queueJob(job, job.i ? job.i.uid : void 0, true);
3817
+ } else {
3818
+ job();
3819
+ }
3820
+ }
3821
+ }
3822
+ }
3823
+ function doWatch(source, cb, options = EMPTY_OBJ) {
3824
+ const { immediate, deep, flush = "pre", once } = options;
3825
+ if (!cb) {
3826
+ if (immediate !== void 0) {
3827
+ warn$1(
3828
+ `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
3829
+ );
3830
+ }
3831
+ if (deep !== void 0) {
3832
+ warn$1(
3833
+ `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
3834
+ );
3835
+ }
3836
+ if (once !== void 0) {
3837
+ warn$1(
3838
+ `watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
3839
+ );
3840
+ }
3841
+ }
3842
+ const baseWatchOptions = extend({}, options);
3843
+ baseWatchOptions.onWarn = warn$1;
3844
+ const instance = currentInstance;
3845
+ baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
3846
+ const effect = new RenderWatcherEffect(
3847
+ instance,
3848
+ source,
3849
+ cb,
3850
+ baseWatchOptions,
3851
+ flush
3852
+ );
3853
+ if (cb) {
3854
+ effect.run(true);
3855
+ } else if (flush === "post") {
3856
+ queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
3857
+ } else {
3858
+ effect.run(true);
3859
+ }
3860
+ const stop = effect.stop.bind(effect);
3861
+ stop.pause = effect.pause.bind(effect);
3862
+ stop.resume = effect.resume.bind(effect);
3863
+ stop.stop = stop;
3864
+ return stop;
3865
+ }
3866
+ function instanceWatch(source, value, options) {
3867
+ const publicThis = this.proxy;
3868
+ const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
3869
+ let cb;
3870
+ if (isFunction(value)) {
3871
+ cb = value;
3872
+ } else {
3873
+ cb = value.handler;
3874
+ options = value;
3875
+ }
3876
+ const prev = setCurrentInstance(this);
3877
+ const res = doWatch(getter, cb.bind(publicThis), options);
3878
+ setCurrentInstance(...prev);
3879
+ return res;
3880
+ }
3881
+ function createPathGetter(ctx, path) {
3882
+ const segments = path.split(".");
3883
+ return () => {
3884
+ let cur = ctx;
3885
+ for (let i = 0; i < segments.length && cur; i++) {
3886
+ cur = cur[segments[i]];
3887
+ }
3888
+ return cur;
3889
+ };
3890
+ }
3891
+
3892
+ const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
3784
3893
  const isTeleport = (type) => type.__isTeleport;
3785
3894
  const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
3786
3895
  const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
@@ -4152,8 +4261,8 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4152
4261
  return targetAnchor;
4153
4262
  }
4154
4263
 
4155
- const leaveCbKey = Symbol("_leaveCb");
4156
- const enterCbKey$1 = Symbol("_enterCb");
4264
+ const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
4265
+ const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
4157
4266
  function useTransitionState() {
4158
4267
  const state = {
4159
4268
  isMounted: false,
@@ -5763,7 +5872,9 @@ Server rendered element contains fewer child nodes than client vdom.`
5763
5872
  }
5764
5873
  function pruneCache(filter) {
5765
5874
  cache.forEach((vnode, key) => {
5766
- const name = getComponentName(vnode.type);
5875
+ const name = getComponentName(
5876
+ isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
5877
+ );
5767
5878
  if (name && !filter(name)) {
5768
5879
  pruneCacheEntry(key);
5769
5880
  }
@@ -6105,7 +6216,7 @@ Server rendered element contains fewer child nodes than client vdom.`
6105
6216
  function resolveComponent(name, maybeSelfReference) {
6106
6217
  return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
6107
6218
  }
6108
- const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
6219
+ const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
6109
6220
  function resolveDynamicComponent(component) {
6110
6221
  if (isString(component)) {
6111
6222
  return resolveAsset(COMPONENTS, component, false) || component;
@@ -6547,14 +6658,14 @@ If this is a native custom element, make sure to exclude it from component resol
6547
6658
  }
6548
6659
  }
6549
6660
 
6550
- function toHandlers(obj, preserveCaseIfNecessary) {
6661
+ function toHandlers(obj, preserveCaseIfNecessary, needWrap) {
6551
6662
  const ret = {};
6552
6663
  if (!isObject(obj)) {
6553
6664
  warn$1(`v-on with no argument expects an object value.`);
6554
6665
  return ret;
6555
6666
  }
6556
6667
  for (const key in obj) {
6557
- ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
6668
+ ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = needWrap ? () => obj[key] : obj[key];
6558
6669
  }
6559
6670
  return ret;
6560
6671
  }
@@ -7692,7 +7803,7 @@ If this is a native custom element, make sure to exclude it from component resol
7692
7803
  return vm;
7693
7804
  }
7694
7805
  }
7695
- Vue.version = `2.6.14-compat:${"3.6.0-alpha.7"}`;
7806
+ Vue.version = `2.6.14-compat:${"3.6.0-beta.1"}`;
7696
7807
  Vue.config = singletonApp.config;
7697
7808
  Vue.use = (plugin, ...options) => {
7698
7809
  if (plugin && isFunction(plugin.install)) {
@@ -8256,172 +8367,70 @@ If you want to remount the same app, move your app creation logic into a factory
8256
8367
  }
8257
8368
  let currentApp = null;
8258
8369
 
8259
- function provide(key, value) {
8260
- {
8261
- if (!currentInstance || currentInstance.isMounted) {
8262
- warn$1(`provide() can only be used inside setup().`);
8263
- }
8264
- }
8265
- if (currentInstance) {
8266
- let provides = currentInstance.provides;
8267
- const parentProvides = currentInstance.parent && currentInstance.parent.provides;
8268
- if (parentProvides === provides) {
8269
- provides = currentInstance.provides = Object.create(parentProvides);
8270
- }
8271
- provides[key] = value;
8272
- }
8273
- }
8274
- function inject(key, defaultValue, treatDefaultAsFactory = false) {
8275
- const instance = getCurrentGenericInstance();
8276
- if (instance || currentApp) {
8277
- let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
8278
- if (provides && key in provides) {
8279
- return provides[key];
8280
- } else if (arguments.length > 1) {
8281
- return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
8282
- } else {
8283
- warn$1(`injection "${String(key)}" not found.`);
8284
- }
8285
- } else {
8286
- warn$1(`inject() can only be used inside setup() or functional components.`);
8287
- }
8288
- }
8289
- function hasInjectionContext() {
8290
- return !!(getCurrentGenericInstance() || currentApp);
8291
- }
8292
-
8293
- const ssrContextKey = Symbol.for("v-scx");
8294
- const useSSRContext = () => {
8295
- {
8296
- warn$1(`useSSRContext() is not supported in the global build.`);
8297
- }
8298
- };
8299
-
8300
- function watchEffect(effect, options) {
8301
- return doWatch(effect, null, options);
8302
- }
8303
- function watchPostEffect(effect, options) {
8304
- return doWatch(
8305
- effect,
8306
- null,
8307
- extend({}, options, { flush: "post" })
8308
- );
8309
- }
8310
- function watchSyncEffect(effect, options) {
8311
- return doWatch(
8312
- effect,
8313
- null,
8314
- extend({}, options, { flush: "sync" })
8315
- );
8316
- }
8317
- function watch(source, cb, options) {
8318
- if (!isFunction(cb)) {
8319
- warn$1(
8320
- `\`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.`
8321
- );
8322
- }
8323
- return doWatch(source, cb, options);
8324
- }
8325
- class RenderWatcherEffect extends WatcherEffect {
8326
- constructor(instance, source, cb, options, flush) {
8327
- super(source, cb, options);
8328
- this.flush = flush;
8329
- const job = () => {
8330
- if (this.dirty) {
8331
- this.run();
8332
- }
8333
- };
8334
- if (cb) {
8335
- this.flags |= 128;
8336
- job.flags |= 2;
8337
- }
8338
- if (instance) {
8339
- job.i = instance;
8340
- }
8341
- this.job = job;
8342
- }
8343
- notify() {
8344
- const flags = this.flags;
8345
- if (!(flags & 256)) {
8346
- const flush = this.flush;
8347
- const job = this.job;
8348
- if (flush === "post") {
8349
- queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
8350
- } else if (flush === "pre") {
8351
- queueJob(job, job.i ? job.i.uid : void 0, true);
8352
- } else {
8353
- job();
8354
- }
8370
+ const compatModelEventPrefix = `onModelCompat:`;
8371
+ const warnedTypes = /* @__PURE__ */ new WeakSet();
8372
+ function convertLegacyVModelProps(vnode) {
8373
+ const { type, shapeFlag, props, dynamicProps } = vnode;
8374
+ const comp = type;
8375
+ if (shapeFlag & 6 && props && "modelValue" in props) {
8376
+ if (!isCompatEnabled$1(
8377
+ "COMPONENT_V_MODEL",
8378
+ // this is a special case where we want to use the vnode component's
8379
+ // compat config instead of the current rendering instance (which is the
8380
+ // parent of the component that exposes v-model)
8381
+ { type }
8382
+ )) {
8383
+ return;
8355
8384
  }
8356
- }
8357
- }
8358
- function doWatch(source, cb, options = EMPTY_OBJ) {
8359
- const { immediate, deep, flush = "pre", once } = options;
8360
- if (!cb) {
8361
- if (immediate !== void 0) {
8362
- warn$1(
8363
- `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
8385
+ if (!warnedTypes.has(comp)) {
8386
+ pushWarningContext(vnode);
8387
+ warnDeprecation$1(
8388
+ "COMPONENT_V_MODEL",
8389
+ {
8390
+ type,
8391
+ appContext: vnode.ctx && vnode.ctx.appContext || createAppContext()
8392
+ },
8393
+ comp
8364
8394
  );
8395
+ popWarningContext();
8396
+ warnedTypes.add(comp);
8365
8397
  }
8366
- if (deep !== void 0) {
8367
- warn$1(
8368
- `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
8369
- );
8398
+ const model = comp.model || {};
8399
+ applyModelFromMixins(model, comp.mixins);
8400
+ const { prop = "value", event = "input" } = model;
8401
+ if (prop !== "modelValue") {
8402
+ props[prop] = props.modelValue;
8403
+ delete props.modelValue;
8370
8404
  }
8371
- if (once !== void 0) {
8372
- warn$1(
8373
- `watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
8374
- );
8405
+ if (dynamicProps) {
8406
+ dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
8375
8407
  }
8408
+ props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
8409
+ delete props["onUpdate:modelValue"];
8376
8410
  }
8377
- const baseWatchOptions = extend({}, options);
8378
- baseWatchOptions.onWarn = warn$1;
8379
- const instance = currentInstance;
8380
- baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
8381
- const effect = new RenderWatcherEffect(
8382
- instance,
8383
- source,
8384
- cb,
8385
- baseWatchOptions,
8386
- flush
8387
- );
8388
- if (cb) {
8389
- effect.run(true);
8390
- } else if (flush === "post") {
8391
- queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
8392
- } else {
8393
- effect.run(true);
8394
- }
8395
- const stop = effect.stop.bind(effect);
8396
- stop.pause = effect.pause.bind(effect);
8397
- stop.resume = effect.resume.bind(effect);
8398
- stop.stop = stop;
8399
- return stop;
8400
8411
  }
8401
- function instanceWatch(source, value, options) {
8402
- const publicThis = this.proxy;
8403
- const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
8404
- let cb;
8405
- if (isFunction(value)) {
8406
- cb = value;
8407
- } else {
8408
- cb = value.handler;
8409
- options = value;
8412
+ function applyModelFromMixins(model, mixins) {
8413
+ if (mixins) {
8414
+ mixins.forEach((m) => {
8415
+ if (m.model) extend(model, m.model);
8416
+ if (m.mixins) applyModelFromMixins(model, m.mixins);
8417
+ });
8410
8418
  }
8411
- const prev = setCurrentInstance(this);
8412
- const res = doWatch(getter, cb.bind(publicThis), options);
8413
- setCurrentInstance(...prev);
8414
- return res;
8415
8419
  }
8416
- function createPathGetter(ctx, path) {
8417
- const segments = path.split(".");
8418
- return () => {
8419
- let cur = ctx;
8420
- for (let i = 0; i < segments.length && cur; i++) {
8421
- cur = cur[segments[i]];
8422
- }
8423
- return cur;
8424
- };
8420
+ function compatModelEmit(instance, event, args) {
8421
+ if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
8422
+ return;
8423
+ }
8424
+ const props = instance.vnode.props;
8425
+ const modelHandler = props && props[compatModelEventPrefix + event];
8426
+ if (modelHandler) {
8427
+ callWithErrorHandling(
8428
+ modelHandler,
8429
+ instance,
8430
+ 6,
8431
+ args
8432
+ );
8433
+ }
8425
8434
  }
8426
8435
 
8427
8436
  function useModel(props, name, options = EMPTY_OBJ) {
@@ -9613,6 +9622,14 @@ If you want to remount the same app, move your app creation logic into a factory
9613
9622
  return supported;
9614
9623
  }
9615
9624
 
9625
+ const MoveType = {
9626
+ "ENTER": 0,
9627
+ "0": "ENTER",
9628
+ "LEAVE": 1,
9629
+ "1": "LEAVE",
9630
+ "REORDER": 2,
9631
+ "2": "REORDER"
9632
+ };
9616
9633
  const queuePostRenderEffect = queueEffectWithSuspense ;
9617
9634
  function createRenderer(options) {
9618
9635
  return baseCreateRenderer(options);
@@ -9761,7 +9778,15 @@ If you want to remount the same app, move your app creation logic into a factory
9761
9778
  } else {
9762
9779
  const el = n2.el = n1.el;
9763
9780
  if (n2.children !== n1.children) {
9764
- hostSetText(el, n2.children);
9781
+ if (isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
9782
+ const childNodes = container.childNodes;
9783
+ const newChild = hostCreateText(n2.children);
9784
+ const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
9785
+ hostInsert(newChild, container, oldChild);
9786
+ hostRemove(oldChild);
9787
+ } else {
9788
+ hostSetText(el, n2.children);
9789
+ }
9765
9790
  }
9766
9791
  }
9767
9792
  };
@@ -10147,7 +10172,7 @@ If you want to remount the same app, move your app creation logic into a factory
10147
10172
  } else {
10148
10173
  if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
10149
10174
  // of renderSlot() with no valid children
10150
- n1.dynamicChildren) {
10175
+ n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
10151
10176
  patchBlockChildren(
10152
10177
  n1.dynamicChildren,
10153
10178
  dynamicChildren,
@@ -10863,8 +10888,8 @@ If you want to remount the same app, move your app creation logic into a factory
10863
10888
  const nextChild = c2[nextIndex];
10864
10889
  const anchorVNode = c2[nextIndex + 1];
10865
10890
  const anchor = nextIndex + 1 < l2 ? (
10866
- // #13559, fallback to el placeholder for unresolved async component
10867
- anchorVNode.el || anchorVNode.placeholder
10891
+ // #13559, #14173 fallback to el placeholder for unresolved async component
10892
+ anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
10868
10893
  ) : parentAnchor;
10869
10894
  if (newIndexToOldIndexMap[i] === 0) {
10870
10895
  patch(
@@ -11179,9 +11204,11 @@ If you want to remount the same app, move your app creation logic into a factory
11179
11204
  return teleportEnd ? hostNextSibling(teleportEnd) : el;
11180
11205
  };
11181
11206
  const render = (vnode, container, namespace) => {
11207
+ let instance;
11182
11208
  if (vnode == null) {
11183
11209
  if (container._vnode) {
11184
11210
  unmount(container._vnode, null, null, true);
11211
+ instance = container._vnode.component;
11185
11212
  }
11186
11213
  } else {
11187
11214
  patch(
@@ -11195,7 +11222,7 @@ If you want to remount the same app, move your app creation logic into a factory
11195
11222
  );
11196
11223
  }
11197
11224
  container._vnode = vnode;
11198
- flushOnAppMount();
11225
+ flushOnAppMount(instance);
11199
11226
  };
11200
11227
  const internals = {
11201
11228
  p: patch,
@@ -11287,9 +11314,13 @@ If you want to remount the same app, move your app creation logic into a factory
11287
11314
  if (!shallow && c2.patchFlag !== -2)
11288
11315
  traverseStaticChildren(c1, c2);
11289
11316
  }
11290
- if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
11291
- c2.patchFlag !== -1) {
11292
- c2.el = c1.el;
11317
+ if (c2.type === Text) {
11318
+ if (c2.patchFlag !== -1) {
11319
+ c2.el = c1.el;
11320
+ } else {
11321
+ c2.__elIndex = i + // take fragment start anchor into account
11322
+ (n1.type === Fragment ? 1 : 0);
11323
+ }
11293
11324
  }
11294
11325
  if (c2.type === Comment && !c2.el) {
11295
11326
  c2.el = c1.el;
@@ -11325,16 +11356,24 @@ If you want to remount the same app, move your app creation logic into a factory
11325
11356
  insert();
11326
11357
  }
11327
11358
  }
11328
- function performTransitionLeave(el, transition, remove, isElement = true) {
11359
+ function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
11329
11360
  const performRemove = () => {
11330
11361
  remove();
11331
11362
  if (transition && !transition.persisted && transition.afterLeave) {
11332
11363
  transition.afterLeave();
11333
11364
  }
11334
11365
  };
11335
- if (isElement && transition && !transition.persisted) {
11366
+ if (force || isElement && transition && !transition.persisted) {
11336
11367
  const { leave, delayLeave } = transition;
11337
- const performLeave = () => leave(el, performRemove);
11368
+ const performLeave = () => {
11369
+ if (el._isLeaving && force) {
11370
+ el[leaveCbKey](
11371
+ true
11372
+ /* cancelled */
11373
+ );
11374
+ }
11375
+ leave(el, performRemove);
11376
+ };
11338
11377
  if (delayLeave) {
11339
11378
  delayLeave(el, performRemove, performLeave);
11340
11379
  } else {
@@ -11390,6 +11429,16 @@ app.use(vaporInteropPlugin)
11390
11429
  }
11391
11430
  return inheritedScopeIds;
11392
11431
  }
11432
+ function resolveAsyncComponentPlaceholder(anchorVnode) {
11433
+ if (anchorVnode.placeholder) {
11434
+ return anchorVnode.placeholder;
11435
+ }
11436
+ const instance = anchorVnode.component;
11437
+ if (instance) {
11438
+ return resolveAsyncComponentPlaceholder(instance.subTree);
11439
+ }
11440
+ return null;
11441
+ }
11393
11442
 
11394
11443
  const isSuspense = (type) => type.__isSuspense;
11395
11444
  let suspenseId = 0;
@@ -12029,11 +12078,11 @@ app.use(vaporInteropPlugin)
12029
12078
  return comp;
12030
12079
  }
12031
12080
 
12032
- const Fragment = Symbol.for("v-fgt");
12033
- const Text = Symbol.for("v-txt");
12034
- const Comment = Symbol.for("v-cmt");
12035
- const Static = Symbol.for("v-stc");
12036
- const VaporSlot = Symbol.for("v-vps");
12081
+ const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
12082
+ const Text = /* @__PURE__ */ Symbol.for("v-txt");
12083
+ const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
12084
+ const Static = /* @__PURE__ */ Symbol.for("v-stc");
12085
+ const VaporSlot = /* @__PURE__ */ Symbol.for("v-vps");
12037
12086
  const blockStack = [];
12038
12087
  let currentBlock = null;
12039
12088
  function openBlock(disableTracking = false) {
@@ -13097,7 +13146,7 @@ Component that was made reactive: `,
13097
13146
  return true;
13098
13147
  }
13099
13148
 
13100
- const version = "3.6.0-alpha.7";
13149
+ const version = "3.6.0-beta.1";
13101
13150
  const warn = warn$1 ;
13102
13151
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
13103
13152
  const devtools = devtools$1 ;
@@ -13197,7 +13246,7 @@ Component that was made reactive: `,
13197
13246
 
13198
13247
  const TRANSITION$1 = "transition";
13199
13248
  const ANIMATION = "animation";
13200
- const vtcKey = Symbol("_vtc");
13249
+ const vtcKey = /* @__PURE__ */ Symbol("_vtc");
13201
13250
  const DOMTransitionPropsValidators = {
13202
13251
  name: String,
13203
13252
  type: String,
@@ -13527,8 +13576,8 @@ Component that was made reactive: `,
13527
13576
  }
13528
13577
  }
13529
13578
 
13530
- const vShowOriginalDisplay = Symbol("_vod");
13531
- const vShowHidden = Symbol("_vsh");
13579
+ const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
13580
+ const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
13532
13581
  const vShow = {
13533
13582
  // used for prop mismatch check during hydration
13534
13583
  name: "show",
@@ -13570,7 +13619,7 @@ Component that was made reactive: `,
13570
13619
  el[vShowHidden] = !value;
13571
13620
  }
13572
13621
 
13573
- const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT" );
13622
+ const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("CSS_VAR_TEXT" );
13574
13623
  function useCssVars(getter) {
13575
13624
  const instance = getCurrentInstance();
13576
13625
  const getVars = () => getter(instance.proxy);
@@ -13780,7 +13829,7 @@ Component that was made reactive: `,
13780
13829
  const isEnumeratedAttr = /* @__PURE__ */ makeMap("contenteditable,draggable,spellcheck") ;
13781
13830
  function compatCoerceAttr(el, key, value, instance = null) {
13782
13831
  if (isEnumeratedAttr(key)) {
13783
- const v2CoercedValue = value === null ? "false" : typeof value !== "boolean" && value !== void 0 ? "true" : null;
13832
+ const v2CoercedValue = value === void 0 ? null : value === null || value === false || value === "false" ? "false" : "true";
13784
13833
  if (v2CoercedValue && compatUtils.softAssertCompatEnabled(
13785
13834
  "ATTR_ENUMERATED_COERCION",
13786
13835
  instance,
@@ -13875,7 +13924,7 @@ Component that was made reactive: `,
13875
13924
  function removeEventListener(el, event, handler, options) {
13876
13925
  el.removeEventListener(event, handler, options);
13877
13926
  }
13878
- const veiKey = Symbol("_vei");
13927
+ const veiKey = /* @__PURE__ */ Symbol("_vei");
13879
13928
  function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
13880
13929
  const invokers = el[veiKey] || (el[veiKey] = {});
13881
13930
  const existingInvoker = invokers[rawName];
@@ -14525,8 +14574,8 @@ Expected function or array of functions, received type ${typeof value}.`
14525
14574
 
14526
14575
  const positionMap = /* @__PURE__ */ new WeakMap();
14527
14576
  const newPositionMap = /* @__PURE__ */ new WeakMap();
14528
- const moveCbKey = Symbol("_moveCb");
14529
- const enterCbKey = Symbol("_enterCb");
14577
+ const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
14578
+ const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
14530
14579
  const decorate = (t) => {
14531
14580
  delete t.props.mode;
14532
14581
  {
@@ -14698,7 +14747,7 @@ Expected function or array of functions, received type ${typeof value}.`
14698
14747
  target.dispatchEvent(new Event("input"));
14699
14748
  }
14700
14749
  }
14701
- const assignKey = Symbol("_assign");
14750
+ const assignKey = /* @__PURE__ */ Symbol("_assign");
14702
14751
  const vModelText = {
14703
14752
  created(el, { modifiers: { lazy, trim, number } }, vnode) {
14704
14753
  el[assignKey] = getModelAssigner(vnode);
@@ -15193,6 +15242,7 @@ Expected function or array of functions, received type ${typeof value}.`
15193
15242
  ErrorTypeStrings: ErrorTypeStrings,
15194
15243
  Fragment: Fragment,
15195
15244
  KeepAlive: KeepAlive,
15245
+ MoveType: MoveType,
15196
15246
  ReactiveEffect: ReactiveEffect,
15197
15247
  Static: Static,
15198
15248
  Suspense: Suspense,
@@ -15390,81 +15440,81 @@ Make sure to use the production build (*.prod.js) when deploying for production.
15390
15440
  return Vue;
15391
15441
  }
15392
15442
 
15393
- const FRAGMENT = Symbol(`Fragment` );
15394
- const TELEPORT = Symbol(`Teleport` );
15395
- const SUSPENSE = Symbol(`Suspense` );
15396
- const KEEP_ALIVE = Symbol(`KeepAlive` );
15397
- const BASE_TRANSITION = Symbol(
15443
+ const FRAGMENT = /* @__PURE__ */ Symbol(`Fragment` );
15444
+ const TELEPORT = /* @__PURE__ */ Symbol(`Teleport` );
15445
+ const SUSPENSE = /* @__PURE__ */ Symbol(`Suspense` );
15446
+ const KEEP_ALIVE = /* @__PURE__ */ Symbol(`KeepAlive` );
15447
+ const BASE_TRANSITION = /* @__PURE__ */ Symbol(
15398
15448
  `BaseTransition`
15399
15449
  );
15400
- const OPEN_BLOCK = Symbol(`openBlock` );
15401
- const CREATE_BLOCK = Symbol(`createBlock` );
15402
- const CREATE_ELEMENT_BLOCK = Symbol(
15450
+ const OPEN_BLOCK = /* @__PURE__ */ Symbol(`openBlock` );
15451
+ const CREATE_BLOCK = /* @__PURE__ */ Symbol(`createBlock` );
15452
+ const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
15403
15453
  `createElementBlock`
15404
15454
  );
15405
- const CREATE_VNODE = Symbol(`createVNode` );
15406
- const CREATE_ELEMENT_VNODE = Symbol(
15455
+ const CREATE_VNODE = /* @__PURE__ */ Symbol(`createVNode` );
15456
+ const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
15407
15457
  `createElementVNode`
15408
15458
  );
15409
- const CREATE_COMMENT = Symbol(
15459
+ const CREATE_COMMENT = /* @__PURE__ */ Symbol(
15410
15460
  `createCommentVNode`
15411
15461
  );
15412
- const CREATE_TEXT = Symbol(
15462
+ const CREATE_TEXT = /* @__PURE__ */ Symbol(
15413
15463
  `createTextVNode`
15414
15464
  );
15415
- const CREATE_STATIC = Symbol(
15465
+ const CREATE_STATIC = /* @__PURE__ */ Symbol(
15416
15466
  `createStaticVNode`
15417
15467
  );
15418
- const RESOLVE_COMPONENT = Symbol(
15468
+ const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
15419
15469
  `resolveComponent`
15420
15470
  );
15421
- const RESOLVE_DYNAMIC_COMPONENT = Symbol(
15471
+ const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
15422
15472
  `resolveDynamicComponent`
15423
15473
  );
15424
- const RESOLVE_DIRECTIVE = Symbol(
15474
+ const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
15425
15475
  `resolveDirective`
15426
15476
  );
15427
- const RESOLVE_FILTER = Symbol(
15477
+ const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
15428
15478
  `resolveFilter`
15429
15479
  );
15430
- const WITH_DIRECTIVES = Symbol(
15480
+ const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
15431
15481
  `withDirectives`
15432
15482
  );
15433
- const RENDER_LIST = Symbol(`renderList` );
15434
- const RENDER_SLOT = Symbol(`renderSlot` );
15435
- const CREATE_SLOTS = Symbol(`createSlots` );
15436
- const TO_DISPLAY_STRING = Symbol(
15483
+ const RENDER_LIST = /* @__PURE__ */ Symbol(`renderList` );
15484
+ const RENDER_SLOT = /* @__PURE__ */ Symbol(`renderSlot` );
15485
+ const CREATE_SLOTS = /* @__PURE__ */ Symbol(`createSlots` );
15486
+ const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
15437
15487
  `toDisplayString`
15438
15488
  );
15439
- const MERGE_PROPS = Symbol(`mergeProps` );
15440
- const NORMALIZE_CLASS = Symbol(
15489
+ const MERGE_PROPS = /* @__PURE__ */ Symbol(`mergeProps` );
15490
+ const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
15441
15491
  `normalizeClass`
15442
15492
  );
15443
- const NORMALIZE_STYLE = Symbol(
15493
+ const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
15444
15494
  `normalizeStyle`
15445
15495
  );
15446
- const NORMALIZE_PROPS = Symbol(
15496
+ const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
15447
15497
  `normalizeProps`
15448
15498
  );
15449
- const GUARD_REACTIVE_PROPS = Symbol(
15499
+ const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
15450
15500
  `guardReactiveProps`
15451
15501
  );
15452
- const TO_HANDLERS = Symbol(`toHandlers` );
15453
- const CAMELIZE = Symbol(`camelize` );
15454
- const CAPITALIZE = Symbol(`capitalize` );
15455
- const TO_HANDLER_KEY = Symbol(
15502
+ const TO_HANDLERS = /* @__PURE__ */ Symbol(`toHandlers` );
15503
+ const CAMELIZE = /* @__PURE__ */ Symbol(`camelize` );
15504
+ const CAPITALIZE = /* @__PURE__ */ Symbol(`capitalize` );
15505
+ const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
15456
15506
  `toHandlerKey`
15457
15507
  );
15458
- const SET_BLOCK_TRACKING = Symbol(
15508
+ const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
15459
15509
  `setBlockTracking`
15460
15510
  );
15461
- const PUSH_SCOPE_ID = Symbol(`pushScopeId` );
15462
- const POP_SCOPE_ID = Symbol(`popScopeId` );
15463
- const WITH_CTX = Symbol(`withCtx` );
15464
- const UNREF = Symbol(`unref` );
15465
- const IS_REF = Symbol(`isRef` );
15466
- const WITH_MEMO = Symbol(`withMemo` );
15467
- const IS_MEMO_SAME = Symbol(`isMemoSame` );
15511
+ const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(`pushScopeId` );
15512
+ const POP_SCOPE_ID = /* @__PURE__ */ Symbol(`popScopeId` );
15513
+ const WITH_CTX = /* @__PURE__ */ Symbol(`withCtx` );
15514
+ const UNREF = /* @__PURE__ */ Symbol(`unref` );
15515
+ const IS_REF = /* @__PURE__ */ Symbol(`isRef` );
15516
+ const WITH_MEMO = /* @__PURE__ */ Symbol(`withMemo` );
15517
+ const IS_MEMO_SAME = /* @__PURE__ */ Symbol(`isMemoSame` );
15468
15518
  const helperNameMap = {
15469
15519
  [FRAGMENT]: `Fragment`,
15470
15520
  [TELEPORT]: `Teleport`,
@@ -15759,14 +15809,28 @@ Make sure to use the production build (*.prod.js) when deploying for production.
15759
15809
  getPos(index) {
15760
15810
  let line = 1;
15761
15811
  let column = index + 1;
15762
- for (let i = this.newlines.length - 1; i >= 0; i--) {
15763
- const newlineIndex = this.newlines[i];
15764
- if (index > newlineIndex) {
15765
- line = i + 2;
15766
- column = index - newlineIndex;
15767
- break;
15812
+ const length = this.newlines.length;
15813
+ let j = -1;
15814
+ if (length > 100) {
15815
+ let l = -1;
15816
+ let r = length;
15817
+ while (l + 1 < r) {
15818
+ const m = l + r >>> 1;
15819
+ this.newlines[m] < index ? l = m : r = m;
15820
+ }
15821
+ j = l;
15822
+ } else {
15823
+ for (let i = length - 1; i >= 0; i--) {
15824
+ if (index > this.newlines[i]) {
15825
+ j = i;
15826
+ break;
15827
+ }
15768
15828
  }
15769
15829
  }
15830
+ if (j >= 0) {
15831
+ line = j + 2;
15832
+ column = index - this.newlines[j];
15833
+ }
15770
15834
  return {
15771
15835
  column,
15772
15836
  line,
@@ -16581,7 +16645,7 @@ Make sure to use the production build (*.prod.js) when deploying for production.
16581
16645
  [32]: `v-for has invalid expression.`,
16582
16646
  [33]: `<template v-for> key should be placed on the <template> tag.`,
16583
16647
  [34]: `v-bind is missing expression.`,
16584
- [52]: `v-bind with same-name shorthand only allows static argument.`,
16648
+ [53]: `v-bind with same-name shorthand only allows static argument.`,
16585
16649
  [35]: `v-on is missing expression.`,
16586
16650
  [36]: `Unexpected custom directive on <slot> outlet.`,
16587
16651
  [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.`,
@@ -16593,16 +16657,17 @@ Make sure to use the production build (*.prod.js) when deploying for production.
16593
16657
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
16594
16658
  [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
16595
16659
  Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
16596
- [45]: `Error parsing JavaScript expression: `,
16597
- [46]: `<KeepAlive> expects exactly one child component.`,
16598
- [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.`,
16660
+ [45]: `v-model cannot be used on a const binding because it is not writable.`,
16661
+ [46]: `Error parsing JavaScript expression: `,
16662
+ [47]: `<KeepAlive> expects exactly one child component.`,
16663
+ [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.`,
16599
16664
  // generic errors
16600
- [47]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
16601
- [48]: `ES module mode is not supported in this build of compiler.`,
16602
- [49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
16603
- [50]: `"scopeId" option is only supported in module mode.`,
16665
+ [48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
16666
+ [49]: `ES module mode is not supported in this build of compiler.`,
16667
+ [50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
16668
+ [51]: `"scopeId" option is only supported in module mode.`,
16604
16669
  // just to fulfill types
16605
- [53]: ``
16670
+ [54]: ``
16606
16671
  };
16607
16672
 
16608
16673
  const isStaticExp = (p) => p.type === 4 && p.isStatic;
@@ -18792,7 +18857,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
18792
18857
  }
18793
18858
  context.onError(
18794
18859
  createCompilerError(
18795
- 45,
18860
+ 46,
18796
18861
  node.loc,
18797
18862
  void 0,
18798
18863
  message
@@ -19558,7 +19623,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19558
19623
  patchFlag |= 1024;
19559
19624
  if (node.children.length > 1) {
19560
19625
  context.onError(
19561
- createCompilerError(46, {
19626
+ createCompilerError(47, {
19562
19627
  start: node.children[0].loc.start,
19563
19628
  end: node.children[node.children.length - 1].loc.end,
19564
19629
  source: ""
@@ -20145,7 +20210,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20145
20210
  if (arg.isStatic) {
20146
20211
  let rawName = arg.content;
20147
20212
  if (rawName.startsWith("vnode")) {
20148
- context.onError(createCompilerError(51, arg.loc));
20213
+ context.onError(createCompilerError(52, arg.loc));
20149
20214
  }
20150
20215
  if (rawName.startsWith("vue:")) {
20151
20216
  rawName = `vnode-${rawName.slice(4)}`;
@@ -20378,6 +20443,10 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20378
20443
  context.onError(createCompilerError(44, exp.loc));
20379
20444
  return createTransformProps();
20380
20445
  }
20446
+ if (bindingType === "literal-const" || bindingType === "setup-const") {
20447
+ context.onError(createCompilerError(45, exp.loc));
20448
+ return createTransformProps();
20449
+ }
20381
20450
  if (!expString.trim() || !isMemberExpression(exp) && true) {
20382
20451
  context.onError(
20383
20452
  createCompilerError(42, exp.loc)
@@ -20606,7 +20675,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20606
20675
  if (arg.type !== 4 || !arg.isStatic) {
20607
20676
  context.onError(
20608
20677
  createCompilerError(
20609
- 52,
20678
+ 53,
20610
20679
  arg.loc
20611
20680
  )
20612
20681
  );
@@ -20650,17 +20719,17 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20650
20719
  const isModuleMode = options.mode === "module";
20651
20720
  {
20652
20721
  if (options.prefixIdentifiers === true) {
20653
- onError(createCompilerError(47));
20654
- } else if (isModuleMode) {
20655
20722
  onError(createCompilerError(48));
20723
+ } else if (isModuleMode) {
20724
+ onError(createCompilerError(49));
20656
20725
  }
20657
20726
  }
20658
20727
  const prefixIdentifiers = false;
20659
20728
  if (options.cacheHandlers) {
20660
- onError(createCompilerError(49));
20729
+ onError(createCompilerError(50));
20661
20730
  }
20662
20731
  if (options.scopeId && !isModuleMode) {
20663
- onError(createCompilerError(50));
20732
+ onError(createCompilerError(51));
20664
20733
  }
20665
20734
  const resolvedOptions = extend({}, options, {
20666
20735
  prefixIdentifiers
@@ -20688,26 +20757,26 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20688
20757
 
20689
20758
  const noopDirectiveTransform = () => ({ props: [] });
20690
20759
 
20691
- const V_MODEL_RADIO = Symbol(`vModelRadio` );
20692
- const V_MODEL_CHECKBOX = Symbol(
20760
+ const V_MODEL_RADIO = /* @__PURE__ */ Symbol(`vModelRadio` );
20761
+ const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
20693
20762
  `vModelCheckbox`
20694
20763
  );
20695
- const V_MODEL_TEXT = Symbol(`vModelText` );
20696
- const V_MODEL_SELECT = Symbol(
20764
+ const V_MODEL_TEXT = /* @__PURE__ */ Symbol(`vModelText` );
20765
+ const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
20697
20766
  `vModelSelect`
20698
20767
  );
20699
- const V_MODEL_DYNAMIC = Symbol(
20768
+ const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
20700
20769
  `vModelDynamic`
20701
20770
  );
20702
- const V_ON_WITH_MODIFIERS = Symbol(
20771
+ const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
20703
20772
  `vOnModifiersGuard`
20704
20773
  );
20705
- const V_ON_WITH_KEYS = Symbol(
20774
+ const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
20706
20775
  `vOnKeysGuard`
20707
20776
  );
20708
- const V_SHOW = Symbol(`vShow` );
20709
- const TRANSITION = Symbol(`Transition` );
20710
- const TRANSITION_GROUP = Symbol(
20777
+ const V_SHOW = /* @__PURE__ */ Symbol(`vShow` );
20778
+ const TRANSITION = /* @__PURE__ */ Symbol(`Transition` );
20779
+ const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
20711
20780
  `TransitionGroup`
20712
20781
  );
20713
20782
  registerRuntimeHelpers({
@@ -20818,31 +20887,31 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20818
20887
  );
20819
20888
  }
20820
20889
  const DOMErrorMessages = {
20821
- [53]: `v-html is missing expression.`,
20822
- [54]: `v-html will override element children.`,
20823
- [55]: `v-text is missing expression.`,
20824
- [56]: `v-text will override element children.`,
20825
- [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
20826
- [58]: `v-model argument is not supported on plain elements.`,
20827
- [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
20828
- [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
20829
- [61]: `v-show is missing expression.`,
20830
- [62]: `<Transition> expects exactly one child element or component.`,
20831
- [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
20890
+ [54]: `v-html is missing expression.`,
20891
+ [55]: `v-html will override element children.`,
20892
+ [56]: `v-text is missing expression.`,
20893
+ [57]: `v-text will override element children.`,
20894
+ [58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
20895
+ [59]: `v-model argument is not supported on plain elements.`,
20896
+ [60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
20897
+ [61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
20898
+ [62]: `v-show is missing expression.`,
20899
+ [63]: `<Transition> expects exactly one child element or component.`,
20900
+ [64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
20832
20901
  // just to fulfill types
20833
- [64]: ``
20902
+ [65]: ``
20834
20903
  };
20835
20904
 
20836
20905
  const transformVHtml = (dir, node, context) => {
20837
20906
  const { exp, loc } = dir;
20838
20907
  if (!exp) {
20839
20908
  context.onError(
20840
- createDOMCompilerError(53, loc)
20909
+ createDOMCompilerError(54, loc)
20841
20910
  );
20842
20911
  }
20843
20912
  if (node.children.length) {
20844
20913
  context.onError(
20845
- createDOMCompilerError(54, loc)
20914
+ createDOMCompilerError(55, loc)
20846
20915
  );
20847
20916
  node.children.length = 0;
20848
20917
  }
@@ -20860,12 +20929,12 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20860
20929
  const { exp, loc } = dir;
20861
20930
  if (!exp) {
20862
20931
  context.onError(
20863
- createDOMCompilerError(55, loc)
20932
+ createDOMCompilerError(56, loc)
20864
20933
  );
20865
20934
  }
20866
20935
  if (node.children.length) {
20867
20936
  context.onError(
20868
- createDOMCompilerError(56, loc)
20937
+ createDOMCompilerError(57, loc)
20869
20938
  );
20870
20939
  node.children.length = 0;
20871
20940
  }
@@ -20891,7 +20960,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20891
20960
  if (dir.arg) {
20892
20961
  context.onError(
20893
20962
  createDOMCompilerError(
20894
- 58,
20963
+ 59,
20895
20964
  dir.arg.loc
20896
20965
  )
20897
20966
  );
@@ -20901,7 +20970,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20901
20970
  if (value && isStaticArgOf(value.arg, "value")) {
20902
20971
  context.onError(
20903
20972
  createDOMCompilerError(
20904
- 60,
20973
+ 61,
20905
20974
  value.loc
20906
20975
  )
20907
20976
  );
@@ -20929,7 +20998,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20929
20998
  isInvalidType = true;
20930
20999
  context.onError(
20931
21000
  createDOMCompilerError(
20932
- 59,
21001
+ 60,
20933
21002
  dir.loc
20934
21003
  )
20935
21004
  );
@@ -20955,7 +21024,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
20955
21024
  } else {
20956
21025
  context.onError(
20957
21026
  createDOMCompilerError(
20958
- 57,
21027
+ 58,
20959
21028
  dir.loc
20960
21029
  )
20961
21030
  );
@@ -21066,7 +21135,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
21066
21135
  const { exp, loc } = dir;
21067
21136
  if (!exp) {
21068
21137
  context.onError(
21069
- createDOMCompilerError(61, loc)
21138
+ createDOMCompilerError(62, loc)
21070
21139
  );
21071
21140
  }
21072
21141
  return {
@@ -21090,7 +21159,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
21090
21159
  }
21091
21160
  if (hasMultipleChildren(node)) {
21092
21161
  onError(
21093
- createDOMCompilerError(62, {
21162
+ createDOMCompilerError(63, {
21094
21163
  start: node.children[0].loc.start,
21095
21164
  end: node.children[node.children.length - 1].loc.end,
21096
21165
  source: ""
@@ -21125,7 +21194,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
21125
21194
  if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
21126
21195
  context.onError(
21127
21196
  createDOMCompilerError(
21128
- 63,
21197
+ 64,
21129
21198
  node.loc
21130
21199
  )
21131
21200
  );