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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.6.0-alpha.7
2
+ * @vue/compat v3.6.0-beta.2
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__
@@ -718,13 +718,13 @@ class Dep {
718
718
  }
719
719
  }
720
720
  const targetMap = /* @__PURE__ */ new WeakMap();
721
- const ITERATE_KEY = Symbol(
721
+ const ITERATE_KEY = /* @__PURE__ */ Symbol(
722
722
  ""
723
723
  );
724
- const MAP_KEY_ITERATE_KEY = Symbol(
724
+ const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
725
725
  ""
726
726
  );
727
- const ARRAY_ITERATE_KEY = Symbol(
727
+ const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
728
728
  ""
729
729
  );
730
730
  function track(target, type, key) {
@@ -2217,7 +2217,6 @@ function warn$2(msg, ...args) {
2217
2217
  instance,
2218
2218
  11,
2219
2219
  [
2220
- // eslint-disable-next-line no-restricted-syntax
2221
2220
  msg + args.map((a) => {
2222
2221
  var _a, _b;
2223
2222
  return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
@@ -2564,10 +2563,10 @@ function flushPostFlushCbs(seen) {
2564
2563
  }
2565
2564
  }
2566
2565
  let isFlushing = false;
2567
- function flushOnAppMount() {
2566
+ function flushOnAppMount(instance) {
2568
2567
  if (!isFlushing) {
2569
2568
  isFlushing = true;
2570
- flushPreFlushCbs();
2569
+ flushPreFlushCbs(instance);
2571
2570
  flushPostFlushCbs();
2572
2571
  isFlushing = false;
2573
2572
  }
@@ -2771,58 +2770,6 @@ function emit$1(instance, event, args) {
2771
2770
  return instance.proxy;
2772
2771
  }
2773
2772
 
2774
- const compatModelEventPrefix = `onModelCompat:`;
2775
- function convertLegacyVModelProps(vnode) {
2776
- const { type, shapeFlag, props, dynamicProps } = vnode;
2777
- const comp = type;
2778
- if (shapeFlag & 6 && props && "modelValue" in props) {
2779
- if (!isCompatEnabled$1(
2780
- "COMPONENT_V_MODEL",
2781
- // this is a special case where we want to use the vnode component's
2782
- // compat config instead of the current rendering instance (which is the
2783
- // parent of the component that exposes v-model)
2784
- { type }
2785
- )) {
2786
- return;
2787
- }
2788
- const model = comp.model || {};
2789
- applyModelFromMixins(model, comp.mixins);
2790
- const { prop = "value", event = "input" } = model;
2791
- if (prop !== "modelValue") {
2792
- props[prop] = props.modelValue;
2793
- delete props.modelValue;
2794
- }
2795
- if (dynamicProps) {
2796
- dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
2797
- }
2798
- props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
2799
- delete props["onUpdate:modelValue"];
2800
- }
2801
- }
2802
- function applyModelFromMixins(model, mixins) {
2803
- if (mixins) {
2804
- mixins.forEach((m) => {
2805
- if (m.model) extend(model, m.model);
2806
- if (m.mixins) applyModelFromMixins(model, m.mixins);
2807
- });
2808
- }
2809
- }
2810
- function compatModelEmit(instance, event, args) {
2811
- if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
2812
- return;
2813
- }
2814
- const props = instance.vnode.props;
2815
- const modelHandler = props && props[compatModelEventPrefix + event];
2816
- if (modelHandler) {
2817
- callWithErrorHandling(
2818
- modelHandler,
2819
- instance,
2820
- 6,
2821
- args
2822
- );
2823
- }
2824
- }
2825
-
2826
2773
  let currentRenderingInstance = null;
2827
2774
  let currentScopeId = null;
2828
2775
  function setCurrentRenderingInstance(instance) {
@@ -2964,7 +2911,166 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
2964
2911
  }
2965
2912
  }
2966
2913
 
2967
- const TeleportEndKey = Symbol("_vte");
2914
+ function provide(key, value) {
2915
+ if (currentInstance) {
2916
+ let provides = currentInstance.provides;
2917
+ const parentProvides = currentInstance.parent && currentInstance.parent.provides;
2918
+ if (parentProvides === provides) {
2919
+ provides = currentInstance.provides = Object.create(parentProvides);
2920
+ }
2921
+ provides[key] = value;
2922
+ }
2923
+ }
2924
+ function inject(key, defaultValue, treatDefaultAsFactory = false) {
2925
+ const instance = getCurrentGenericInstance();
2926
+ if (instance || currentApp) {
2927
+ let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
2928
+ if (provides && key in provides) {
2929
+ return provides[key];
2930
+ } else if (arguments.length > 1) {
2931
+ return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
2932
+ } else ;
2933
+ }
2934
+ }
2935
+ function hasInjectionContext() {
2936
+ return !!(getCurrentGenericInstance() || currentApp);
2937
+ }
2938
+
2939
+ const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
2940
+ const useSSRContext = () => {
2941
+ {
2942
+ const ctx = inject(ssrContextKey);
2943
+ return ctx;
2944
+ }
2945
+ };
2946
+
2947
+ function watchEffect(effect, options) {
2948
+ return doWatch(effect, null, options);
2949
+ }
2950
+ function watchPostEffect(effect, options) {
2951
+ return doWatch(
2952
+ effect,
2953
+ null,
2954
+ { flush: "post" }
2955
+ );
2956
+ }
2957
+ function watchSyncEffect(effect, options) {
2958
+ return doWatch(
2959
+ effect,
2960
+ null,
2961
+ { flush: "sync" }
2962
+ );
2963
+ }
2964
+ function watch(source, cb, options) {
2965
+ return doWatch(source, cb, options);
2966
+ }
2967
+ class RenderWatcherEffect extends WatcherEffect {
2968
+ constructor(instance, source, cb, options, flush) {
2969
+ super(source, cb, options);
2970
+ this.flush = flush;
2971
+ const job = () => {
2972
+ if (this.dirty) {
2973
+ this.run();
2974
+ }
2975
+ };
2976
+ if (cb) {
2977
+ this.flags |= 128;
2978
+ job.flags |= 2;
2979
+ }
2980
+ if (instance) {
2981
+ job.i = instance;
2982
+ }
2983
+ this.job = job;
2984
+ }
2985
+ notify() {
2986
+ const flags = this.flags;
2987
+ if (!(flags & 256)) {
2988
+ const flush = this.flush;
2989
+ const job = this.job;
2990
+ if (flush === "post") {
2991
+ queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
2992
+ } else if (flush === "pre") {
2993
+ queueJob(job, job.i ? job.i.uid : void 0, true);
2994
+ } else {
2995
+ job();
2996
+ }
2997
+ }
2998
+ }
2999
+ }
3000
+ function doWatch(source, cb, options = EMPTY_OBJ) {
3001
+ const { immediate, deep, flush = "pre", once } = options;
3002
+ const baseWatchOptions = extend({}, options);
3003
+ const runsImmediately = cb && immediate || !cb && flush !== "post";
3004
+ let ssrCleanup;
3005
+ if (isInSSRComponentSetup) {
3006
+ if (flush === "sync") {
3007
+ const ctx = useSSRContext();
3008
+ ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
3009
+ } else if (!runsImmediately) {
3010
+ const watchStopHandle = () => {
3011
+ };
3012
+ watchStopHandle.stop = NOOP;
3013
+ watchStopHandle.resume = NOOP;
3014
+ watchStopHandle.pause = NOOP;
3015
+ return watchStopHandle;
3016
+ }
3017
+ }
3018
+ const instance = currentInstance;
3019
+ baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
3020
+ const effect = new RenderWatcherEffect(
3021
+ instance,
3022
+ source,
3023
+ cb,
3024
+ baseWatchOptions,
3025
+ flush
3026
+ );
3027
+ if (cb) {
3028
+ effect.run(true);
3029
+ } else if (flush === "post") {
3030
+ queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
3031
+ } else {
3032
+ effect.run(true);
3033
+ }
3034
+ const stop = effect.stop.bind(effect);
3035
+ stop.pause = effect.pause.bind(effect);
3036
+ stop.resume = effect.resume.bind(effect);
3037
+ stop.stop = stop;
3038
+ if (isInSSRComponentSetup) {
3039
+ if (ssrCleanup) {
3040
+ ssrCleanup.push(stop);
3041
+ } else if (runsImmediately) {
3042
+ stop();
3043
+ }
3044
+ }
3045
+ return stop;
3046
+ }
3047
+ function instanceWatch(source, value, options) {
3048
+ const publicThis = this.proxy;
3049
+ const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
3050
+ let cb;
3051
+ if (isFunction(value)) {
3052
+ cb = value;
3053
+ } else {
3054
+ cb = value.handler;
3055
+ options = value;
3056
+ }
3057
+ const prev = setCurrentInstance(this);
3058
+ const res = doWatch(getter, cb.bind(publicThis), options);
3059
+ setCurrentInstance(...prev);
3060
+ return res;
3061
+ }
3062
+ function createPathGetter(ctx, path) {
3063
+ const segments = path.split(".");
3064
+ return () => {
3065
+ let cur = ctx;
3066
+ for (let i = 0; i < segments.length && cur; i++) {
3067
+ cur = cur[segments[i]];
3068
+ }
3069
+ return cur;
3070
+ };
3071
+ }
3072
+
3073
+ const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
2968
3074
  const isTeleport = (type) => type.__isTeleport;
2969
3075
  const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
2970
3076
  const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
@@ -3309,8 +3415,8 @@ function prepareAnchor(target, vnode, createText, insert) {
3309
3415
  return targetAnchor;
3310
3416
  }
3311
3417
 
3312
- const leaveCbKey = Symbol("_leaveCb");
3313
- const enterCbKey$1 = Symbol("_enterCb");
3418
+ const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
3419
+ const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
3314
3420
  function useTransitionState() {
3315
3421
  const state = {
3316
3422
  isMounted: false,
@@ -4328,9 +4434,17 @@ function isMismatchAllowed(el, allowedType) {
4328
4434
  }
4329
4435
  }
4330
4436
 
4331
- const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
4332
- const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
4437
+ let requestIdleCallback;
4438
+ let cancelIdleCallback;
4439
+ function ensureIdleCallbacks() {
4440
+ if (!requestIdleCallback) {
4441
+ const g = getGlobalThis();
4442
+ requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
4443
+ cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
4444
+ }
4445
+ }
4333
4446
  const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
4447
+ ensureIdleCallbacks();
4334
4448
  const id = requestIdleCallback(hydrate, { timeout });
4335
4449
  return () => cancelIdleCallback(id);
4336
4450
  };
@@ -4671,7 +4785,9 @@ const KeepAliveImpl = {
4671
4785
  }
4672
4786
  function pruneCache(filter) {
4673
4787
  cache.forEach((vnode, key) => {
4674
- const name = getComponentName(vnode.type);
4788
+ const name = getComponentName(
4789
+ isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
4790
+ );
4675
4791
  if (name && !filter(name)) {
4676
4792
  pruneCacheEntry(key);
4677
4793
  }
@@ -4996,7 +5112,7 @@ const FILTERS = "filters";
4996
5112
  function resolveComponent(name, maybeSelfReference) {
4997
5113
  return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
4998
5114
  }
4999
- const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
5115
+ const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
5000
5116
  function resolveDynamicComponent(component) {
5001
5117
  if (isString(component)) {
5002
5118
  return resolveAsset(COMPONENTS, component, false) || component;
@@ -5420,10 +5536,10 @@ function ensureVaporSlotFallback(vnodes, fallback) {
5420
5536
  }
5421
5537
  }
5422
5538
 
5423
- function toHandlers(obj, preserveCaseIfNecessary) {
5539
+ function toHandlers(obj, preserveCaseIfNecessary, needWrap) {
5424
5540
  const ret = {};
5425
5541
  for (const key in obj) {
5426
- ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
5542
+ ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = needWrap ? () => obj[key] : obj[key];
5427
5543
  }
5428
5544
  return ret;
5429
5545
  }
@@ -6315,7 +6431,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6315
6431
  return vm;
6316
6432
  }
6317
6433
  }
6318
- Vue.version = `2.6.14-compat:${"3.6.0-alpha.7"}`;
6434
+ Vue.version = `2.6.14-compat:${"3.6.0-beta.2"}`;
6319
6435
  Vue.config = singletonApp.config;
6320
6436
  Vue.use = (plugin, ...options) => {
6321
6437
  if (plugin && isFunction(plugin.install)) {
@@ -6776,163 +6892,56 @@ function createAppAPI(mount, unmount, getPublicInstance, render) {
6776
6892
  }
6777
6893
  let currentApp = null;
6778
6894
 
6779
- function provide(key, value) {
6780
- if (currentInstance) {
6781
- let provides = currentInstance.provides;
6782
- const parentProvides = currentInstance.parent && currentInstance.parent.provides;
6783
- if (parentProvides === provides) {
6784
- provides = currentInstance.provides = Object.create(parentProvides);
6785
- }
6786
- provides[key] = value;
6787
- }
6788
- }
6789
- function inject(key, defaultValue, treatDefaultAsFactory = false) {
6790
- const instance = getCurrentGenericInstance();
6791
- if (instance || currentApp) {
6792
- let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
6793
- if (provides && key in provides) {
6794
- return provides[key];
6795
- } else if (arguments.length > 1) {
6796
- return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
6797
- } else ;
6798
- }
6799
- }
6800
- function hasInjectionContext() {
6801
- return !!(getCurrentGenericInstance() || currentApp);
6802
- }
6803
-
6804
- const ssrContextKey = Symbol.for("v-scx");
6805
- const useSSRContext = () => {
6806
- {
6807
- const ctx = inject(ssrContextKey);
6808
- return ctx;
6809
- }
6810
- };
6811
-
6812
- function watchEffect(effect, options) {
6813
- return doWatch(effect, null, options);
6814
- }
6815
- function watchPostEffect(effect, options) {
6816
- return doWatch(
6817
- effect,
6818
- null,
6819
- { flush: "post" }
6820
- );
6821
- }
6822
- function watchSyncEffect(effect, options) {
6823
- return doWatch(
6824
- effect,
6825
- null,
6826
- { flush: "sync" }
6827
- );
6828
- }
6829
- function watch(source, cb, options) {
6830
- return doWatch(source, cb, options);
6831
- }
6832
- class RenderWatcherEffect extends WatcherEffect {
6833
- constructor(instance, source, cb, options, flush) {
6834
- super(source, cb, options);
6835
- this.flush = flush;
6836
- const job = () => {
6837
- if (this.dirty) {
6838
- this.run();
6839
- }
6840
- };
6841
- if (cb) {
6842
- this.flags |= 128;
6843
- job.flags |= 2;
6895
+ const compatModelEventPrefix = `onModelCompat:`;
6896
+ function convertLegacyVModelProps(vnode) {
6897
+ const { type, shapeFlag, props, dynamicProps } = vnode;
6898
+ const comp = type;
6899
+ if (shapeFlag & 6 && props && "modelValue" in props) {
6900
+ if (!isCompatEnabled$1(
6901
+ "COMPONENT_V_MODEL",
6902
+ // this is a special case where we want to use the vnode component's
6903
+ // compat config instead of the current rendering instance (which is the
6904
+ // parent of the component that exposes v-model)
6905
+ { type }
6906
+ )) {
6907
+ return;
6844
6908
  }
6845
- if (instance) {
6846
- job.i = instance;
6909
+ const model = comp.model || {};
6910
+ applyModelFromMixins(model, comp.mixins);
6911
+ const { prop = "value", event = "input" } = model;
6912
+ if (prop !== "modelValue") {
6913
+ props[prop] = props.modelValue;
6914
+ delete props.modelValue;
6847
6915
  }
6848
- this.job = job;
6849
- }
6850
- notify() {
6851
- const flags = this.flags;
6852
- if (!(flags & 256)) {
6853
- const flush = this.flush;
6854
- const job = this.job;
6855
- if (flush === "post") {
6856
- queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
6857
- } else if (flush === "pre") {
6858
- queueJob(job, job.i ? job.i.uid : void 0, true);
6859
- } else {
6860
- job();
6861
- }
6916
+ if (dynamicProps) {
6917
+ dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
6862
6918
  }
6919
+ props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
6920
+ delete props["onUpdate:modelValue"];
6863
6921
  }
6864
6922
  }
6865
- function doWatch(source, cb, options = EMPTY_OBJ) {
6866
- const { immediate, deep, flush = "pre", once } = options;
6867
- const baseWatchOptions = extend({}, options);
6868
- const runsImmediately = cb && immediate || !cb && flush !== "post";
6869
- let ssrCleanup;
6870
- if (isInSSRComponentSetup) {
6871
- if (flush === "sync") {
6872
- const ctx = useSSRContext();
6873
- ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
6874
- } else if (!runsImmediately) {
6875
- const watchStopHandle = () => {
6876
- };
6877
- watchStopHandle.stop = NOOP;
6878
- watchStopHandle.resume = NOOP;
6879
- watchStopHandle.pause = NOOP;
6880
- return watchStopHandle;
6881
- }
6882
- }
6883
- const instance = currentInstance;
6884
- baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
6885
- const effect = new RenderWatcherEffect(
6886
- instance,
6887
- source,
6888
- cb,
6889
- baseWatchOptions,
6890
- flush
6891
- );
6892
- if (cb) {
6893
- effect.run(true);
6894
- } else if (flush === "post") {
6895
- queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
6896
- } else {
6897
- effect.run(true);
6898
- }
6899
- const stop = effect.stop.bind(effect);
6900
- stop.pause = effect.pause.bind(effect);
6901
- stop.resume = effect.resume.bind(effect);
6902
- stop.stop = stop;
6903
- if (isInSSRComponentSetup) {
6904
- if (ssrCleanup) {
6905
- ssrCleanup.push(stop);
6906
- } else if (runsImmediately) {
6907
- stop();
6908
- }
6923
+ function applyModelFromMixins(model, mixins) {
6924
+ if (mixins) {
6925
+ mixins.forEach((m) => {
6926
+ if (m.model) extend(model, m.model);
6927
+ if (m.mixins) applyModelFromMixins(model, m.mixins);
6928
+ });
6909
6929
  }
6910
- return stop;
6911
6930
  }
6912
- function instanceWatch(source, value, options) {
6913
- const publicThis = this.proxy;
6914
- const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
6915
- let cb;
6916
- if (isFunction(value)) {
6917
- cb = value;
6918
- } else {
6919
- cb = value.handler;
6920
- options = value;
6931
+ function compatModelEmit(instance, event, args) {
6932
+ if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
6933
+ return;
6934
+ }
6935
+ const props = instance.vnode.props;
6936
+ const modelHandler = props && props[compatModelEventPrefix + event];
6937
+ if (modelHandler) {
6938
+ callWithErrorHandling(
6939
+ modelHandler,
6940
+ instance,
6941
+ 6,
6942
+ args
6943
+ );
6921
6944
  }
6922
- const prev = setCurrentInstance(this);
6923
- const res = doWatch(getter, cb.bind(publicThis), options);
6924
- setCurrentInstance(...prev);
6925
- return res;
6926
- }
6927
- function createPathGetter(ctx, path) {
6928
- const segments = path.split(".");
6929
- return () => {
6930
- let cur = ctx;
6931
- for (let i = 0; i < segments.length && cur; i++) {
6932
- cur = cur[segments[i]];
6933
- }
6934
- return cur;
6935
- };
6936
6945
  }
6937
6946
 
6938
6947
  function useModel(props, name, options = EMPTY_OBJ) {
@@ -7795,6 +7804,14 @@ const updateSlots = (instance, children, optimized) => {
7795
7804
  }
7796
7805
  };
7797
7806
 
7807
+ const MoveType = {
7808
+ "ENTER": 0,
7809
+ "0": "ENTER",
7810
+ "LEAVE": 1,
7811
+ "1": "LEAVE",
7812
+ "REORDER": 2,
7813
+ "2": "REORDER"
7814
+ };
7798
7815
  const queuePostRenderEffect = queueEffectWithSuspense ;
7799
7816
  function createRenderer(options) {
7800
7817
  return baseCreateRenderer(options);
@@ -7936,7 +7953,9 @@ function baseCreateRenderer(options, createHydrationFns) {
7936
7953
  } else {
7937
7954
  const el = n2.el = n1.el;
7938
7955
  if (n2.children !== n1.children) {
7939
- hostSetText(el, n2.children);
7956
+ {
7957
+ hostSetText(el, n2.children);
7958
+ }
7940
7959
  }
7941
7960
  }
7942
7961
  };
@@ -8284,7 +8303,7 @@ function baseCreateRenderer(options, createHydrationFns) {
8284
8303
  } else {
8285
8304
  if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
8286
8305
  // of renderSlot() with no valid children
8287
- n1.dynamicChildren) {
8306
+ n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
8288
8307
  patchBlockChildren(
8289
8308
  n1.dynamicChildren,
8290
8309
  dynamicChildren,
@@ -8922,8 +8941,8 @@ function baseCreateRenderer(options, createHydrationFns) {
8922
8941
  const nextChild = c2[nextIndex];
8923
8942
  const anchorVNode = c2[nextIndex + 1];
8924
8943
  const anchor = nextIndex + 1 < l2 ? (
8925
- // #13559, fallback to el placeholder for unresolved async component
8926
- anchorVNode.el || anchorVNode.placeholder
8944
+ // #13559, #14173 fallback to el placeholder for unresolved async component
8945
+ anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
8927
8946
  ) : parentAnchor;
8928
8947
  if (newIndexToOldIndexMap[i] === 0) {
8929
8948
  patch(
@@ -9224,9 +9243,11 @@ function baseCreateRenderer(options, createHydrationFns) {
9224
9243
  return teleportEnd ? hostNextSibling(teleportEnd) : el;
9225
9244
  };
9226
9245
  const render = (vnode, container, namespace) => {
9246
+ let instance;
9227
9247
  if (vnode == null) {
9228
9248
  if (container._vnode) {
9229
9249
  unmount(container._vnode, null, null, true);
9250
+ instance = container._vnode.component;
9230
9251
  }
9231
9252
  } else {
9232
9253
  patch(
@@ -9240,7 +9261,7 @@ function baseCreateRenderer(options, createHydrationFns) {
9240
9261
  );
9241
9262
  }
9242
9263
  container._vnode = vnode;
9243
- flushOnAppMount();
9264
+ flushOnAppMount(instance);
9244
9265
  };
9245
9266
  const internals = {
9246
9267
  p: patch,
@@ -9325,9 +9346,13 @@ function traverseStaticChildren(n1, n2, shallow = false) {
9325
9346
  if (!shallow && c2.patchFlag !== -2)
9326
9347
  traverseStaticChildren(c1, c2);
9327
9348
  }
9328
- if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
9329
- c2.patchFlag !== -1) {
9330
- c2.el = c1.el;
9349
+ if (c2.type === Text) {
9350
+ if (c2.patchFlag !== -1) {
9351
+ c2.el = c1.el;
9352
+ } else {
9353
+ c2.__elIndex = i + // take fragment start anchor into account
9354
+ (n1.type === Fragment ? 1 : 0);
9355
+ }
9331
9356
  }
9332
9357
  if (c2.type === Comment && !c2.el) {
9333
9358
  c2.el = c1.el;
@@ -9360,16 +9385,24 @@ function performTransitionEnter(el, transition, insert, parentSuspense, force =
9360
9385
  insert();
9361
9386
  }
9362
9387
  }
9363
- function performTransitionLeave(el, transition, remove, isElement = true) {
9388
+ function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
9364
9389
  const performRemove = () => {
9365
9390
  remove();
9366
9391
  if (transition && !transition.persisted && transition.afterLeave) {
9367
9392
  transition.afterLeave();
9368
9393
  }
9369
9394
  };
9370
- if (isElement && transition && !transition.persisted) {
9395
+ if (force || isElement && transition && !transition.persisted) {
9371
9396
  const { leave, delayLeave } = transition;
9372
- const performLeave = () => leave(el, performRemove);
9397
+ const performLeave = () => {
9398
+ if (el._isLeaving && force) {
9399
+ el[leaveCbKey](
9400
+ true
9401
+ /* cancelled */
9402
+ );
9403
+ }
9404
+ leave(el, performRemove);
9405
+ };
9373
9406
  if (delayLeave) {
9374
9407
  delayLeave(el, performRemove, performLeave);
9375
9408
  } else {
@@ -9410,6 +9443,16 @@ function getInheritedScopeIds(vnode, parentComponent) {
9410
9443
  }
9411
9444
  return inheritedScopeIds;
9412
9445
  }
9446
+ function resolveAsyncComponentPlaceholder(anchorVnode) {
9447
+ if (anchorVnode.placeholder) {
9448
+ return anchorVnode.placeholder;
9449
+ }
9450
+ const instance = anchorVnode.component;
9451
+ if (instance) {
9452
+ return resolveAsyncComponentPlaceholder(instance.subTree);
9453
+ }
9454
+ return null;
9455
+ }
9413
9456
 
9414
9457
  const isSuspense = (type) => type.__isSuspense;
9415
9458
  let suspenseId = 0;
@@ -9882,7 +9925,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace
9882
9925
  parentSuspense,
9883
9926
  parentComponent,
9884
9927
  node.parentNode,
9885
- // eslint-disable-next-line no-restricted-globals
9928
+ // oxlint-disable-next-line no-restricted-globals
9886
9929
  document.createElement("div"),
9887
9930
  null,
9888
9931
  namespace,
@@ -10024,11 +10067,11 @@ function convertLegacyComponent(comp, instance) {
10024
10067
  return comp;
10025
10068
  }
10026
10069
 
10027
- const Fragment = Symbol.for("v-fgt");
10028
- const Text = Symbol.for("v-txt");
10029
- const Comment = Symbol.for("v-cmt");
10030
- const Static = Symbol.for("v-stc");
10031
- const VaporSlot = Symbol.for("v-vps");
10070
+ const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
10071
+ const Text = /* @__PURE__ */ Symbol.for("v-txt");
10072
+ const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
10073
+ const Static = /* @__PURE__ */ Symbol.for("v-stc");
10074
+ const VaporSlot = /* @__PURE__ */ Symbol.for("v-vps");
10032
10075
  const blockStack = [];
10033
10076
  let currentBlock = null;
10034
10077
  function openBlock(disableTracking = false) {
@@ -10405,7 +10448,7 @@ const setCurrentInstance = (instance, scope = instance !== null ? instance.scope
10405
10448
  simpleSetCurrentInstance(instance);
10406
10449
  }
10407
10450
  };
10408
- const internalOptions = ["ce", "type"];
10451
+ const internalOptions = ["ce", "type", "uid"];
10409
10452
  const useInstanceOption = (key, silent = false) => {
10410
10453
  const instance = getCurrentGenericInstance();
10411
10454
  if (!instance) {
@@ -10417,7 +10460,7 @@ const useInstanceOption = (key, silent = false) => {
10417
10460
  return { hasInstance: true, value: instance[key] };
10418
10461
  };
10419
10462
 
10420
- const emptyAppContext = createAppContext();
10463
+ const emptyAppContext = /* @__PURE__ */ createAppContext();
10421
10464
  let uid = 0;
10422
10465
  function createComponentInstance(vnode, parent, suspense) {
10423
10466
  const type = vnode.type;
@@ -10771,7 +10814,7 @@ function isMemoSame(cached, memo) {
10771
10814
  return true;
10772
10815
  }
10773
10816
 
10774
- const version = "3.6.0-alpha.7";
10817
+ const version = "3.6.0-beta.2";
10775
10818
  const warn$1 = NOOP;
10776
10819
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10777
10820
  const devtools = void 0;
@@ -10882,7 +10925,7 @@ const nodeOps = {
10882
10925
 
10883
10926
  const TRANSITION$1 = "transition";
10884
10927
  const ANIMATION = "animation";
10885
- const vtcKey = Symbol("_vtc");
10928
+ const vtcKey = /* @__PURE__ */ Symbol("_vtc");
10886
10929
  const DOMTransitionPropsValidators = {
10887
10930
  name: String,
10888
10931
  type: String,
@@ -11209,8 +11252,8 @@ function patchClass(el, value, isSVG) {
11209
11252
  }
11210
11253
  }
11211
11254
 
11212
- const vShowOriginalDisplay = Symbol("_vod");
11213
- const vShowHidden = Symbol("_vsh");
11255
+ const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
11256
+ const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
11214
11257
  const vShow = {
11215
11258
  // used for prop mismatch check during hydration
11216
11259
  name: "show",
@@ -11259,7 +11302,7 @@ function initVShowForSSR() {
11259
11302
  };
11260
11303
  }
11261
11304
 
11262
- const CSS_VAR_TEXT = Symbol("");
11305
+ const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("");
11263
11306
  function useCssVars(getter) {
11264
11307
  return;
11265
11308
  }
@@ -11381,7 +11424,7 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
11381
11424
  const isEnumeratedAttr = /* @__PURE__ */ makeMap("contenteditable,draggable,spellcheck") ;
11382
11425
  function compatCoerceAttr(el, key, value, instance = null) {
11383
11426
  if (isEnumeratedAttr(key)) {
11384
- const v2CoercedValue = value === null ? "false" : typeof value !== "boolean" && value !== void 0 ? "true" : null;
11427
+ const v2CoercedValue = value === void 0 ? null : value === null || value === false || value === "false" ? "false" : "true";
11385
11428
  if (v2CoercedValue && compatUtils.softAssertCompatEnabled(
11386
11429
  "ATTR_ENUMERATED_COERCION",
11387
11430
  instance,
@@ -11465,7 +11508,7 @@ function addEventListener(el, event, handler, options) {
11465
11508
  function removeEventListener(el, event, handler, options) {
11466
11509
  el.removeEventListener(event, handler, options);
11467
11510
  }
11468
- const veiKey = Symbol("_vei");
11511
+ const veiKey = /* @__PURE__ */ Symbol("_vei");
11469
11512
  function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
11470
11513
  const invokers = el[veiKey] || (el[veiKey] = {});
11471
11514
  const existingInvoker = invokers[rawName];
@@ -12052,8 +12095,8 @@ function useCssModule(name = "$style") {
12052
12095
 
12053
12096
  const positionMap = /* @__PURE__ */ new WeakMap();
12054
12097
  const newPositionMap = /* @__PURE__ */ new WeakMap();
12055
- const moveCbKey = Symbol("_moveCb");
12056
- const enterCbKey = Symbol("_enterCb");
12098
+ const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
12099
+ const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
12057
12100
  const decorate = (t) => {
12058
12101
  delete t.props.mode;
12059
12102
  {
@@ -12223,7 +12266,7 @@ function onCompositionEnd(e) {
12223
12266
  target.dispatchEvent(new Event("input"));
12224
12267
  }
12225
12268
  }
12226
- const assignKey = Symbol("_assign");
12269
+ const assignKey = /* @__PURE__ */ Symbol("_assign");
12227
12270
  const vModelText = {
12228
12271
  created(el, { modifiers: { lazy, trim, number } }, vnode) {
12229
12272
  el[assignKey] = getModelAssigner(vnode);
@@ -12685,6 +12728,7 @@ var runtimeDom = /*#__PURE__*/Object.freeze({
12685
12728
  ErrorTypeStrings: ErrorTypeStrings,
12686
12729
  Fragment: Fragment,
12687
12730
  KeepAlive: KeepAlive,
12731
+ MoveType: MoveType,
12688
12732
  ReactiveEffect: ReactiveEffect,
12689
12733
  Static: Static,
12690
12734
  Suspense: Suspense,
@@ -12867,81 +12911,81 @@ function createCompatVue() {
12867
12911
  return Vue;
12868
12912
  }
12869
12913
 
12870
- const FRAGMENT = Symbol(``);
12871
- const TELEPORT = Symbol(``);
12872
- const SUSPENSE = Symbol(``);
12873
- const KEEP_ALIVE = Symbol(``);
12874
- const BASE_TRANSITION = Symbol(
12914
+ const FRAGMENT = /* @__PURE__ */ Symbol(``);
12915
+ const TELEPORT = /* @__PURE__ */ Symbol(``);
12916
+ const SUSPENSE = /* @__PURE__ */ Symbol(``);
12917
+ const KEEP_ALIVE = /* @__PURE__ */ Symbol(``);
12918
+ const BASE_TRANSITION = /* @__PURE__ */ Symbol(
12875
12919
  ``
12876
12920
  );
12877
- const OPEN_BLOCK = Symbol(``);
12878
- const CREATE_BLOCK = Symbol(``);
12879
- const CREATE_ELEMENT_BLOCK = Symbol(
12921
+ const OPEN_BLOCK = /* @__PURE__ */ Symbol(``);
12922
+ const CREATE_BLOCK = /* @__PURE__ */ Symbol(``);
12923
+ const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
12880
12924
  ``
12881
12925
  );
12882
- const CREATE_VNODE = Symbol(``);
12883
- const CREATE_ELEMENT_VNODE = Symbol(
12926
+ const CREATE_VNODE = /* @__PURE__ */ Symbol(``);
12927
+ const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
12884
12928
  ``
12885
12929
  );
12886
- const CREATE_COMMENT = Symbol(
12930
+ const CREATE_COMMENT = /* @__PURE__ */ Symbol(
12887
12931
  ``
12888
12932
  );
12889
- const CREATE_TEXT = Symbol(
12933
+ const CREATE_TEXT = /* @__PURE__ */ Symbol(
12890
12934
  ``
12891
12935
  );
12892
- const CREATE_STATIC = Symbol(
12936
+ const CREATE_STATIC = /* @__PURE__ */ Symbol(
12893
12937
  ``
12894
12938
  );
12895
- const RESOLVE_COMPONENT = Symbol(
12939
+ const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
12896
12940
  ``
12897
12941
  );
12898
- const RESOLVE_DYNAMIC_COMPONENT = Symbol(
12942
+ const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
12899
12943
  ``
12900
12944
  );
12901
- const RESOLVE_DIRECTIVE = Symbol(
12945
+ const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
12902
12946
  ``
12903
12947
  );
12904
- const RESOLVE_FILTER = Symbol(
12948
+ const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
12905
12949
  ``
12906
12950
  );
12907
- const WITH_DIRECTIVES = Symbol(
12951
+ const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
12908
12952
  ``
12909
12953
  );
12910
- const RENDER_LIST = Symbol(``);
12911
- const RENDER_SLOT = Symbol(``);
12912
- const CREATE_SLOTS = Symbol(``);
12913
- const TO_DISPLAY_STRING = Symbol(
12954
+ const RENDER_LIST = /* @__PURE__ */ Symbol(``);
12955
+ const RENDER_SLOT = /* @__PURE__ */ Symbol(``);
12956
+ const CREATE_SLOTS = /* @__PURE__ */ Symbol(``);
12957
+ const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
12914
12958
  ``
12915
12959
  );
12916
- const MERGE_PROPS = Symbol(``);
12917
- const NORMALIZE_CLASS = Symbol(
12960
+ const MERGE_PROPS = /* @__PURE__ */ Symbol(``);
12961
+ const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
12918
12962
  ``
12919
12963
  );
12920
- const NORMALIZE_STYLE = Symbol(
12964
+ const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
12921
12965
  ``
12922
12966
  );
12923
- const NORMALIZE_PROPS = Symbol(
12967
+ const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
12924
12968
  ``
12925
12969
  );
12926
- const GUARD_REACTIVE_PROPS = Symbol(
12970
+ const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
12927
12971
  ``
12928
12972
  );
12929
- const TO_HANDLERS = Symbol(``);
12930
- const CAMELIZE = Symbol(``);
12931
- const CAPITALIZE = Symbol(``);
12932
- const TO_HANDLER_KEY = Symbol(
12973
+ const TO_HANDLERS = /* @__PURE__ */ Symbol(``);
12974
+ const CAMELIZE = /* @__PURE__ */ Symbol(``);
12975
+ const CAPITALIZE = /* @__PURE__ */ Symbol(``);
12976
+ const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
12933
12977
  ``
12934
12978
  );
12935
- const SET_BLOCK_TRACKING = Symbol(
12979
+ const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
12936
12980
  ``
12937
12981
  );
12938
- const PUSH_SCOPE_ID = Symbol(``);
12939
- const POP_SCOPE_ID = Symbol(``);
12940
- const WITH_CTX = Symbol(``);
12941
- const UNREF = Symbol(``);
12942
- const IS_REF = Symbol(``);
12943
- const WITH_MEMO = Symbol(``);
12944
- const IS_MEMO_SAME = Symbol(``);
12982
+ const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(``);
12983
+ const POP_SCOPE_ID = /* @__PURE__ */ Symbol(``);
12984
+ const WITH_CTX = /* @__PURE__ */ Symbol(``);
12985
+ const UNREF = /* @__PURE__ */ Symbol(``);
12986
+ const IS_REF = /* @__PURE__ */ Symbol(``);
12987
+ const WITH_MEMO = /* @__PURE__ */ Symbol(``);
12988
+ const IS_MEMO_SAME = /* @__PURE__ */ Symbol(``);
12945
12989
  const helperNameMap = {
12946
12990
  [FRAGMENT]: `Fragment`,
12947
12991
  [TELEPORT]: `Teleport`,
@@ -13211,8 +13255,8 @@ class Tokenizer {
13211
13255
  this.currentSequence = void 0;
13212
13256
  this.sequenceIndex = 0;
13213
13257
  {
13214
- this.entityDecoder = new decode_js.EntityDecoder(
13215
- decode_js.htmlDecodeTree,
13258
+ this.entityDecoder = new decode.EntityDecoder(
13259
+ decode.htmlDecodeTree,
13216
13260
  (cp, consumed) => this.emitCodePoint(cp, consumed)
13217
13261
  );
13218
13262
  }
@@ -13242,14 +13286,28 @@ class Tokenizer {
13242
13286
  getPos(index) {
13243
13287
  let line = 1;
13244
13288
  let column = index + 1;
13245
- for (let i = this.newlines.length - 1; i >= 0; i--) {
13246
- const newlineIndex = this.newlines[i];
13247
- if (index > newlineIndex) {
13248
- line = i + 2;
13249
- column = index - newlineIndex;
13250
- break;
13289
+ const length = this.newlines.length;
13290
+ let j = -1;
13291
+ if (length > 100) {
13292
+ let l = -1;
13293
+ let r = length;
13294
+ while (l + 1 < r) {
13295
+ const m = l + r >>> 1;
13296
+ this.newlines[m] < index ? l = m : r = m;
13297
+ }
13298
+ j = l;
13299
+ } else {
13300
+ for (let i = length - 1; i >= 0; i--) {
13301
+ if (index > this.newlines[i]) {
13302
+ j = i;
13303
+ break;
13304
+ }
13251
13305
  }
13252
13306
  }
13307
+ if (j >= 0) {
13308
+ line = j + 2;
13309
+ column = index - this.newlines[j];
13310
+ }
13253
13311
  return {
13254
13312
  column,
13255
13313
  line,
@@ -13762,7 +13820,7 @@ class Tokenizer {
13762
13820
  this.state = 33;
13763
13821
  this.entityStart = this.index;
13764
13822
  this.entityDecoder.startEntity(
13765
- this.baseState === 1 || this.baseState === 32 ? decode_js.DecodingMode.Legacy : decode_js.DecodingMode.Attribute
13823
+ this.baseState === 1 || this.baseState === 32 ? decode.DecodingMode.Legacy : decode.DecodingMode.Attribute
13766
13824
  );
13767
13825
  }
13768
13826
  }
@@ -13981,7 +14039,7 @@ class Tokenizer {
13981
14039
  this.sectionStart = this.entityStart + consumed;
13982
14040
  this.index = this.sectionStart - 1;
13983
14041
  this.cbs.onattribentity(
13984
- decode_js.fromCodePoint(cp),
14042
+ decode.fromCodePoint(cp),
13985
14043
  this.entityStart,
13986
14044
  this.sectionStart
13987
14045
  );
@@ -13992,7 +14050,7 @@ class Tokenizer {
13992
14050
  this.sectionStart = this.entityStart + consumed;
13993
14051
  this.index = this.sectionStart - 1;
13994
14052
  this.cbs.ontextentity(
13995
- decode_js.fromCodePoint(cp),
14053
+ decode.fromCodePoint(cp),
13996
14054
  this.entityStart,
13997
14055
  this.sectionStart
13998
14056
  );
@@ -14070,7 +14128,7 @@ const errorMessages = {
14070
14128
  [32]: `v-for has invalid expression.`,
14071
14129
  [33]: `<template v-for> key should be placed on the <template> tag.`,
14072
14130
  [34]: `v-bind is missing expression.`,
14073
- [52]: `v-bind with same-name shorthand only allows static argument.`,
14131
+ [53]: `v-bind with same-name shorthand only allows static argument.`,
14074
14132
  [35]: `v-on is missing expression.`,
14075
14133
  [36]: `Unexpected custom directive on <slot> outlet.`,
14076
14134
  [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.`,
@@ -14082,16 +14140,17 @@ const errorMessages = {
14082
14140
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
14083
14141
  [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
14084
14142
  Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
14085
- [45]: `Error parsing JavaScript expression: `,
14086
- [46]: `<KeepAlive> expects exactly one child component.`,
14087
- [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.`,
14143
+ [45]: `v-model cannot be used on a const binding because it is not writable.`,
14144
+ [46]: `Error parsing JavaScript expression: `,
14145
+ [47]: `<KeepAlive> expects exactly one child component.`,
14146
+ [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.`,
14088
14147
  // generic errors
14089
- [47]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
14090
- [48]: `ES module mode is not supported in this build of compiler.`,
14091
- [49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
14092
- [50]: `"scopeId" option is only supported in module mode.`,
14148
+ [48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
14149
+ [49]: `ES module mode is not supported in this build of compiler.`,
14150
+ [50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
14151
+ [51]: `"scopeId" option is only supported in module mode.`,
14093
14152
  // just to fulfill types
14094
- [53]: ``
14153
+ [54]: ``
14095
14154
  };
14096
14155
 
14097
14156
  function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = /* @__PURE__ */ Object.create(null)) {
@@ -14108,8 +14167,7 @@ function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [
14108
14167
  if (includeAll || isRefed && !isLocal) {
14109
14168
  onIdentifier(node, parent, parentStack, isRefed, isLocal);
14110
14169
  }
14111
- } else if (node.type === "ObjectProperty" && // eslint-disable-next-line no-restricted-syntax
14112
- (parent == null ? void 0 : parent.type) === "ObjectPattern") {
14170
+ } else if (node.type === "ObjectProperty" && (parent == null ? void 0 : parent.type) === "ObjectPattern") {
14113
14171
  node.inPattern = true;
14114
14172
  } else if (isFunctionType(node)) {
14115
14173
  if (node.scopeIds) {
@@ -14810,7 +14868,7 @@ const tokenizer = new Tokenizer(stack, {
14810
14868
  let exp = getSlice(innerStart, innerEnd);
14811
14869
  if (exp.includes("&")) {
14812
14870
  {
14813
- exp = decode_js.decodeHTML(exp);
14871
+ exp = decode.decodeHTML(exp);
14814
14872
  }
14815
14873
  }
14816
14874
  addNode({
@@ -15441,7 +15499,7 @@ function createExp(content, isStatic = false, loc, constType = 0, parseMode = 0
15441
15499
  }
15442
15500
  } catch (e) {
15443
15501
  exp.ast = false;
15444
- emitError(45, loc.start.offset, e.message);
15502
+ emitError(46, loc.start.offset, e.message);
15445
15503
  }
15446
15504
  }
15447
15505
  return exp;
@@ -16976,7 +17034,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
16976
17034
  } catch (e) {
16977
17035
  context.onError(
16978
17036
  createCompilerError(
16979
- 45,
17037
+ 46,
16980
17038
  node.loc,
16981
17039
  void 0,
16982
17040
  e.message
@@ -18741,6 +18799,10 @@ const transformModel$1 = (dir, node, context) => {
18741
18799
  context.onError(createCompilerError(44, exp.loc));
18742
18800
  return createTransformProps();
18743
18801
  }
18802
+ if (bindingType === "literal-const" || bindingType === "setup-const") {
18803
+ context.onError(createCompilerError(45, exp.loc));
18804
+ return createTransformProps();
18805
+ }
18744
18806
  const maybeRef = context.inline && (bindingType === "setup-let" || bindingType === "setup-ref" || bindingType === "setup-maybe-ref");
18745
18807
  if (!expString.trim() || !isMemberExpression(exp, context) && !maybeRef) {
18746
18808
  context.onError(
@@ -18989,7 +19051,7 @@ const transformVBindShorthand = (node, context) => {
18989
19051
  if (arg.type !== 4 || !arg.isStatic) {
18990
19052
  context.onError(
18991
19053
  createCompilerError(
18992
- 52,
19054
+ 53,
18993
19055
  arg.loc
18994
19056
  )
18995
19057
  );
@@ -19037,10 +19099,10 @@ function baseCompile(source, options = {}) {
19037
19099
  const isModuleMode = options.mode === "module";
19038
19100
  const prefixIdentifiers = options.prefixIdentifiers === true || isModuleMode;
19039
19101
  if (!prefixIdentifiers && options.cacheHandlers) {
19040
- onError(createCompilerError(49));
19102
+ onError(createCompilerError(50));
19041
19103
  }
19042
19104
  if (options.scopeId && !isModuleMode) {
19043
- onError(createCompilerError(50));
19105
+ onError(createCompilerError(51));
19044
19106
  }
19045
19107
  const resolvedOptions = extend({}, options, {
19046
19108
  prefixIdentifiers
@@ -19074,26 +19136,26 @@ function baseCompile(source, options = {}) {
19074
19136
 
19075
19137
  const noopDirectiveTransform = () => ({ props: [] });
19076
19138
 
19077
- const V_MODEL_RADIO = Symbol(``);
19078
- const V_MODEL_CHECKBOX = Symbol(
19139
+ const V_MODEL_RADIO = /* @__PURE__ */ Symbol(``);
19140
+ const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
19079
19141
  ``
19080
19142
  );
19081
- const V_MODEL_TEXT = Symbol(``);
19082
- const V_MODEL_SELECT = Symbol(
19143
+ const V_MODEL_TEXT = /* @__PURE__ */ Symbol(``);
19144
+ const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
19083
19145
  ``
19084
19146
  );
19085
- const V_MODEL_DYNAMIC = Symbol(
19147
+ const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
19086
19148
  ``
19087
19149
  );
19088
- const V_ON_WITH_MODIFIERS = Symbol(
19150
+ const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
19089
19151
  ``
19090
19152
  );
19091
- const V_ON_WITH_KEYS = Symbol(
19153
+ const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
19092
19154
  ``
19093
19155
  );
19094
- const V_SHOW = Symbol(``);
19095
- const TRANSITION = Symbol(``);
19096
- const TRANSITION_GROUP = Symbol(
19156
+ const V_SHOW = /* @__PURE__ */ Symbol(``);
19157
+ const TRANSITION = /* @__PURE__ */ Symbol(``);
19158
+ const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
19097
19159
  ``
19098
19160
  );
19099
19161
  registerRuntimeHelpers({
@@ -19190,31 +19252,31 @@ function createDOMCompilerError(code, loc) {
19190
19252
  );
19191
19253
  }
19192
19254
  const DOMErrorMessages = {
19193
- [53]: `v-html is missing expression.`,
19194
- [54]: `v-html will override element children.`,
19195
- [55]: `v-text is missing expression.`,
19196
- [56]: `v-text will override element children.`,
19197
- [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
19198
- [58]: `v-model argument is not supported on plain elements.`,
19199
- [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
19200
- [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
19201
- [61]: `v-show is missing expression.`,
19202
- [62]: `<Transition> expects exactly one child element or component.`,
19203
- [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
19255
+ [54]: `v-html is missing expression.`,
19256
+ [55]: `v-html will override element children.`,
19257
+ [56]: `v-text is missing expression.`,
19258
+ [57]: `v-text will override element children.`,
19259
+ [58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
19260
+ [59]: `v-model argument is not supported on plain elements.`,
19261
+ [60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
19262
+ [61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
19263
+ [62]: `v-show is missing expression.`,
19264
+ [63]: `<Transition> expects exactly one child element or component.`,
19265
+ [64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
19204
19266
  // just to fulfill types
19205
- [64]: ``
19267
+ [65]: ``
19206
19268
  };
19207
19269
 
19208
19270
  const transformVHtml = (dir, node, context) => {
19209
19271
  const { exp, loc } = dir;
19210
19272
  if (!exp) {
19211
19273
  context.onError(
19212
- createDOMCompilerError(53, loc)
19274
+ createDOMCompilerError(54, loc)
19213
19275
  );
19214
19276
  }
19215
19277
  if (node.children.length) {
19216
19278
  context.onError(
19217
- createDOMCompilerError(54, loc)
19279
+ createDOMCompilerError(55, loc)
19218
19280
  );
19219
19281
  node.children.length = 0;
19220
19282
  }
@@ -19232,12 +19294,12 @@ const transformVText = (dir, node, context) => {
19232
19294
  const { exp, loc } = dir;
19233
19295
  if (!exp) {
19234
19296
  context.onError(
19235
- createDOMCompilerError(55, loc)
19297
+ createDOMCompilerError(56, loc)
19236
19298
  );
19237
19299
  }
19238
19300
  if (node.children.length) {
19239
19301
  context.onError(
19240
- createDOMCompilerError(56, loc)
19302
+ createDOMCompilerError(57, loc)
19241
19303
  );
19242
19304
  node.children.length = 0;
19243
19305
  }
@@ -19263,7 +19325,7 @@ const transformModel = (dir, node, context) => {
19263
19325
  if (dir.arg) {
19264
19326
  context.onError(
19265
19327
  createDOMCompilerError(
19266
- 58,
19328
+ 59,
19267
19329
  dir.arg.loc
19268
19330
  )
19269
19331
  );
@@ -19290,7 +19352,7 @@ const transformModel = (dir, node, context) => {
19290
19352
  isInvalidType = true;
19291
19353
  context.onError(
19292
19354
  createDOMCompilerError(
19293
- 59,
19355
+ 60,
19294
19356
  dir.loc
19295
19357
  )
19296
19358
  );
@@ -19309,7 +19371,7 @@ const transformModel = (dir, node, context) => {
19309
19371
  } else {
19310
19372
  context.onError(
19311
19373
  createDOMCompilerError(
19312
- 57,
19374
+ 58,
19313
19375
  dir.loc
19314
19376
  )
19315
19377
  );
@@ -19418,7 +19480,7 @@ const transformShow = (dir, node, context) => {
19418
19480
  const { exp, loc } = dir;
19419
19481
  if (!exp) {
19420
19482
  context.onError(
19421
- createDOMCompilerError(61, loc)
19483
+ createDOMCompilerError(62, loc)
19422
19484
  );
19423
19485
  }
19424
19486
  return {