@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
  **/
@@ -839,13 +839,13 @@ class Dep {
839
839
  }
840
840
  }
841
841
  const targetMap = /* @__PURE__ */ new WeakMap();
842
- const ITERATE_KEY = Symbol(
842
+ const ITERATE_KEY = /* @__PURE__ */ Symbol(
843
843
  !!(process.env.NODE_ENV !== "production") ? "Object iterate" : ""
844
844
  );
845
- const MAP_KEY_ITERATE_KEY = Symbol(
845
+ const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
846
846
  !!(process.env.NODE_ENV !== "production") ? "Map keys iterate" : ""
847
847
  );
848
- const ARRAY_ITERATE_KEY = Symbol(
848
+ const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
849
849
  !!(process.env.NODE_ENV !== "production") ? "Array iterate" : ""
850
850
  );
851
851
  function track(target, type, key) {
@@ -2466,7 +2466,6 @@ function warn$1(msg, ...args) {
2466
2466
  instance,
2467
2467
  11,
2468
2468
  [
2469
- // eslint-disable-next-line no-restricted-syntax
2470
2469
  msg + args.map((a) => {
2471
2470
  var _a, _b;
2472
2471
  return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
@@ -2851,10 +2850,10 @@ function flushPostFlushCbs(seen) {
2851
2850
  }
2852
2851
  }
2853
2852
  let isFlushing = false;
2854
- function flushOnAppMount() {
2853
+ function flushOnAppMount(instance) {
2855
2854
  if (!isFlushing) {
2856
2855
  isFlushing = true;
2857
- flushPreFlushCbs();
2856
+ flushPreFlushCbs(instance);
2858
2857
  flushPostFlushCbs();
2859
2858
  isFlushing = false;
2860
2859
  }
@@ -3096,7 +3095,6 @@ function setDevtoolsHook$1(hook, target) {
3096
3095
  // (#4815)
3097
3096
  typeof window !== "undefined" && // some envs mock window but not fully
3098
3097
  window.HTMLElement && // also exclude jsdom
3099
- // eslint-disable-next-line no-restricted-syntax
3100
3098
  !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
3101
3099
  ) {
3102
3100
  const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
@@ -3591,65 +3589,6 @@ function emit$1(instance, event, args) {
3591
3589
  return instance.proxy;
3592
3590
  }
3593
3591
 
3594
- const compatModelEventPrefix = `onModelCompat:`;
3595
- const warnedTypes = /* @__PURE__ */ new WeakSet();
3596
- function convertLegacyVModelProps(vnode) {
3597
- const { type, shapeFlag, props, dynamicProps } = vnode;
3598
- const comp = type;
3599
- if (shapeFlag & 6 && props && "modelValue" in props) {
3600
- if (!isCompatEnabled$1(
3601
- "COMPONENT_V_MODEL",
3602
- // this is a special case where we want to use the vnode component's
3603
- // compat config instead of the current rendering instance (which is the
3604
- // parent of the component that exposes v-model)
3605
- { type }
3606
- )) {
3607
- return;
3608
- }
3609
- if (!!(process.env.NODE_ENV !== "production") && !warnedTypes.has(comp)) {
3610
- pushWarningContext(vnode);
3611
- warnDeprecation$1("COMPONENT_V_MODEL", { type }, comp);
3612
- popWarningContext();
3613
- warnedTypes.add(comp);
3614
- }
3615
- const model = comp.model || {};
3616
- applyModelFromMixins(model, comp.mixins);
3617
- const { prop = "value", event = "input" } = model;
3618
- if (prop !== "modelValue") {
3619
- props[prop] = props.modelValue;
3620
- delete props.modelValue;
3621
- }
3622
- if (dynamicProps) {
3623
- dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
3624
- }
3625
- props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
3626
- delete props["onUpdate:modelValue"];
3627
- }
3628
- }
3629
- function applyModelFromMixins(model, mixins) {
3630
- if (mixins) {
3631
- mixins.forEach((m) => {
3632
- if (m.model) extend(model, m.model);
3633
- if (m.mixins) applyModelFromMixins(model, m.mixins);
3634
- });
3635
- }
3636
- }
3637
- function compatModelEmit(instance, event, args) {
3638
- if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
3639
- return;
3640
- }
3641
- const props = instance.vnode.props;
3642
- const modelHandler = props && props[compatModelEventPrefix + event];
3643
- if (modelHandler) {
3644
- callWithErrorHandling(
3645
- modelHandler,
3646
- instance,
3647
- 6,
3648
- args
3649
- );
3650
- }
3651
- }
3652
-
3653
3592
  let currentRenderingInstance = null;
3654
3593
  let currentScopeId = null;
3655
3594
  function setCurrentRenderingInstance(instance) {
@@ -3800,7 +3739,203 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
3800
3739
  }
3801
3740
  }
3802
3741
 
3803
- const TeleportEndKey = Symbol("_vte");
3742
+ function provide(key, value) {
3743
+ if (!!(process.env.NODE_ENV !== "production")) {
3744
+ if (!currentInstance || currentInstance.isMounted && !isHmrUpdating) {
3745
+ warn$1(`provide() can only be used inside setup().`);
3746
+ }
3747
+ }
3748
+ if (currentInstance) {
3749
+ let provides = currentInstance.provides;
3750
+ const parentProvides = currentInstance.parent && currentInstance.parent.provides;
3751
+ if (parentProvides === provides) {
3752
+ provides = currentInstance.provides = Object.create(parentProvides);
3753
+ }
3754
+ provides[key] = value;
3755
+ }
3756
+ }
3757
+ function inject(key, defaultValue, treatDefaultAsFactory = false) {
3758
+ const instance = getCurrentGenericInstance();
3759
+ if (instance || currentApp) {
3760
+ let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
3761
+ if (provides && key in provides) {
3762
+ return provides[key];
3763
+ } else if (arguments.length > 1) {
3764
+ return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
3765
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3766
+ warn$1(`injection "${String(key)}" not found.`);
3767
+ }
3768
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3769
+ warn$1(`inject() can only be used inside setup() or functional components.`);
3770
+ }
3771
+ }
3772
+ function hasInjectionContext() {
3773
+ return !!(getCurrentGenericInstance() || currentApp);
3774
+ }
3775
+
3776
+ const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
3777
+ const useSSRContext = () => {
3778
+ {
3779
+ const ctx = inject(ssrContextKey);
3780
+ if (!ctx) {
3781
+ !!(process.env.NODE_ENV !== "production") && warn$1(
3782
+ `Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
3783
+ );
3784
+ }
3785
+ return ctx;
3786
+ }
3787
+ };
3788
+
3789
+ function watchEffect(effect, options) {
3790
+ return doWatch(effect, null, options);
3791
+ }
3792
+ function watchPostEffect(effect, options) {
3793
+ return doWatch(
3794
+ effect,
3795
+ null,
3796
+ !!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "post" }) : { flush: "post" }
3797
+ );
3798
+ }
3799
+ function watchSyncEffect(effect, options) {
3800
+ return doWatch(
3801
+ effect,
3802
+ null,
3803
+ !!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "sync" }) : { flush: "sync" }
3804
+ );
3805
+ }
3806
+ function watch(source, cb, options) {
3807
+ if (!!(process.env.NODE_ENV !== "production") && !isFunction(cb)) {
3808
+ warn$1(
3809
+ `\`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.`
3810
+ );
3811
+ }
3812
+ return doWatch(source, cb, options);
3813
+ }
3814
+ class RenderWatcherEffect extends WatcherEffect {
3815
+ constructor(instance, source, cb, options, flush) {
3816
+ super(source, cb, options);
3817
+ this.flush = flush;
3818
+ const job = () => {
3819
+ if (this.dirty) {
3820
+ this.run();
3821
+ }
3822
+ };
3823
+ if (cb) {
3824
+ this.flags |= 128;
3825
+ job.flags |= 2;
3826
+ }
3827
+ if (instance) {
3828
+ job.i = instance;
3829
+ }
3830
+ this.job = job;
3831
+ }
3832
+ notify() {
3833
+ const flags = this.flags;
3834
+ if (!(flags & 256)) {
3835
+ const flush = this.flush;
3836
+ const job = this.job;
3837
+ if (flush === "post") {
3838
+ queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
3839
+ } else if (flush === "pre") {
3840
+ queueJob(job, job.i ? job.i.uid : void 0, true);
3841
+ } else {
3842
+ job();
3843
+ }
3844
+ }
3845
+ }
3846
+ }
3847
+ function doWatch(source, cb, options = EMPTY_OBJ) {
3848
+ const { immediate, deep, flush = "pre", once } = options;
3849
+ if (!!(process.env.NODE_ENV !== "production") && !cb) {
3850
+ if (immediate !== void 0) {
3851
+ warn$1(
3852
+ `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
3853
+ );
3854
+ }
3855
+ if (deep !== void 0) {
3856
+ warn$1(
3857
+ `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
3858
+ );
3859
+ }
3860
+ if (once !== void 0) {
3861
+ warn$1(
3862
+ `watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
3863
+ );
3864
+ }
3865
+ }
3866
+ const baseWatchOptions = extend({}, options);
3867
+ if (!!(process.env.NODE_ENV !== "production")) baseWatchOptions.onWarn = warn$1;
3868
+ const runsImmediately = cb && immediate || !cb && flush !== "post";
3869
+ let ssrCleanup;
3870
+ if (isInSSRComponentSetup) {
3871
+ if (flush === "sync") {
3872
+ const ctx = useSSRContext();
3873
+ ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
3874
+ } else if (!runsImmediately) {
3875
+ const watchStopHandle = () => {
3876
+ };
3877
+ watchStopHandle.stop = NOOP;
3878
+ watchStopHandle.resume = NOOP;
3879
+ watchStopHandle.pause = NOOP;
3880
+ return watchStopHandle;
3881
+ }
3882
+ }
3883
+ const instance = currentInstance;
3884
+ baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
3885
+ const effect = new RenderWatcherEffect(
3886
+ instance,
3887
+ source,
3888
+ cb,
3889
+ baseWatchOptions,
3890
+ flush
3891
+ );
3892
+ if (cb) {
3893
+ effect.run(true);
3894
+ } else if (flush === "post") {
3895
+ queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
3896
+ } else {
3897
+ effect.run(true);
3898
+ }
3899
+ const stop = effect.stop.bind(effect);
3900
+ stop.pause = effect.pause.bind(effect);
3901
+ stop.resume = effect.resume.bind(effect);
3902
+ stop.stop = stop;
3903
+ if (isInSSRComponentSetup) {
3904
+ if (ssrCleanup) {
3905
+ ssrCleanup.push(stop);
3906
+ } else if (runsImmediately) {
3907
+ stop();
3908
+ }
3909
+ }
3910
+ return stop;
3911
+ }
3912
+ function instanceWatch(source, value, options) {
3913
+ const publicThis = this.proxy;
3914
+ const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
3915
+ let cb;
3916
+ if (isFunction(value)) {
3917
+ cb = value;
3918
+ } else {
3919
+ cb = value.handler;
3920
+ options = value;
3921
+ }
3922
+ const prev = setCurrentInstance(this);
3923
+ const res = doWatch(getter, cb.bind(publicThis), options);
3924
+ setCurrentInstance(...prev);
3925
+ return res;
3926
+ }
3927
+ function createPathGetter(ctx, path) {
3928
+ const segments = path.split(".");
3929
+ return () => {
3930
+ let cur = ctx;
3931
+ for (let i = 0; i < segments.length && cur; i++) {
3932
+ cur = cur[segments[i]];
3933
+ }
3934
+ return cur;
3935
+ };
3936
+ }
3937
+
3938
+ const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
3804
3939
  const isTeleport = (type) => type.__isTeleport;
3805
3940
  const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
3806
3941
  const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
@@ -4172,8 +4307,8 @@ function prepareAnchor(target, vnode, createText, insert) {
4172
4307
  return targetAnchor;
4173
4308
  }
4174
4309
 
4175
- const leaveCbKey = Symbol("_leaveCb");
4176
- const enterCbKey$1 = Symbol("_enterCb");
4310
+ const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
4311
+ const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
4177
4312
  function useTransitionState() {
4178
4313
  const state = {
4179
4314
  isMounted: false,
@@ -5453,9 +5588,17 @@ function isMismatchAllowed(el, allowedType) {
5453
5588
  }
5454
5589
  }
5455
5590
 
5456
- const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
5457
- const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
5591
+ let requestIdleCallback;
5592
+ let cancelIdleCallback;
5593
+ function ensureIdleCallbacks() {
5594
+ if (!requestIdleCallback) {
5595
+ const g = getGlobalThis();
5596
+ requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
5597
+ cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
5598
+ }
5599
+ }
5458
5600
  const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
5601
+ ensureIdleCallbacks();
5459
5602
  const id = requestIdleCallback(hydrate, { timeout });
5460
5603
  return () => cancelIdleCallback(id);
5461
5604
  };
@@ -5813,7 +5956,9 @@ const KeepAliveImpl = {
5813
5956
  }
5814
5957
  function pruneCache(filter) {
5815
5958
  cache.forEach((vnode, key) => {
5816
- const name = getComponentName(vnode.type);
5959
+ const name = getComponentName(
5960
+ isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
5961
+ );
5817
5962
  if (name && !filter(name)) {
5818
5963
  pruneCacheEntry(key);
5819
5964
  }
@@ -6155,7 +6300,7 @@ const FILTERS = "filters";
6155
6300
  function resolveComponent(name, maybeSelfReference) {
6156
6301
  return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
6157
6302
  }
6158
- const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
6303
+ const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
6159
6304
  function resolveDynamicComponent(component) {
6160
6305
  if (isString(component)) {
6161
6306
  return resolveAsset(COMPONENTS, component, false) || component;
@@ -6597,14 +6742,14 @@ function ensureVaporSlotFallback(vnodes, fallback) {
6597
6742
  }
6598
6743
  }
6599
6744
 
6600
- function toHandlers(obj, preserveCaseIfNecessary) {
6745
+ function toHandlers(obj, preserveCaseIfNecessary, needWrap) {
6601
6746
  const ret = {};
6602
6747
  if (!!(process.env.NODE_ENV !== "production") && !isObject(obj)) {
6603
6748
  warn$1(`v-on with no argument expects an object value.`);
6604
6749
  return ret;
6605
6750
  }
6606
6751
  for (const key in obj) {
6607
- ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
6752
+ ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = needWrap ? () => obj[key] : obj[key];
6608
6753
  }
6609
6754
  return ret;
6610
6755
  }
@@ -7747,7 +7892,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7747
7892
  return vm;
7748
7893
  }
7749
7894
  }
7750
- Vue.version = `2.6.14-compat:${"3.6.0-alpha.7"}`;
7895
+ Vue.version = `2.6.14-compat:${"3.6.0-beta.2"}`;
7751
7896
  Vue.config = singletonApp.config;
7752
7897
  Vue.use = (plugin, ...options) => {
7753
7898
  if (plugin && isFunction(plugin.install)) {
@@ -8242,271 +8387,141 @@ function createAppAPI(mount, unmount, getPublicInstance, render) {
8242
8387
  isMounted = true;
8243
8388
  app._container = rootContainer;
8244
8389
  rootContainer.__vue_app__ = app;
8245
- return getPublicInstance(instance);
8246
- } else if (!!(process.env.NODE_ENV !== "production")) {
8247
- warn$1(
8248
- `App has already been mounted.
8249
- If you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. \`const createMyApp = () => createApp(App)\``
8250
- );
8251
- }
8252
- },
8253
- onUnmount(cleanupFn) {
8254
- if (!!(process.env.NODE_ENV !== "production") && typeof cleanupFn !== "function") {
8255
- warn$1(
8256
- `Expected function as first argument to app.onUnmount(), but got ${typeof cleanupFn}`
8257
- );
8258
- }
8259
- pluginCleanupFns.push(cleanupFn);
8260
- },
8261
- unmount() {
8262
- if (isMounted) {
8263
- callWithAsyncErrorHandling(
8264
- pluginCleanupFns,
8265
- app._instance,
8266
- 16
8267
- );
8268
- unmount(app);
8269
- if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
8270
- app._instance = null;
8271
- devtoolsUnmountApp(app);
8272
- }
8273
- delete app._container.__vue_app__;
8274
- } else if (!!(process.env.NODE_ENV !== "production")) {
8275
- warn$1(`Cannot unmount an app that is not mounted.`);
8276
- }
8277
- },
8278
- provide(key, value) {
8279
- if (!!(process.env.NODE_ENV !== "production") && key in context.provides) {
8280
- if (hasOwn(context.provides, key)) {
8281
- warn$1(
8282
- `App already provides property with key "${String(key)}". It will be overwritten with the new value.`
8283
- );
8284
- } else {
8285
- warn$1(
8286
- `App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`
8287
- );
8288
- }
8289
- }
8290
- context.provides[key] = value;
8291
- return app;
8292
- },
8293
- runWithContext(fn) {
8294
- const lastApp = currentApp;
8295
- currentApp = app;
8296
- try {
8297
- return fn();
8298
- } finally {
8299
- currentApp = lastApp;
8300
- }
8301
- }
8302
- };
8303
- {
8304
- installAppCompatProperties(
8305
- app,
8306
- context,
8307
- // vapor doesn't have compat mode so this is always passed
8308
- render
8309
- );
8310
- }
8311
- return app;
8312
- };
8313
- }
8314
- let currentApp = null;
8315
-
8316
- function provide(key, value) {
8317
- if (!!(process.env.NODE_ENV !== "production")) {
8318
- if (!currentInstance || currentInstance.isMounted) {
8319
- warn$1(`provide() can only be used inside setup().`);
8320
- }
8321
- }
8322
- if (currentInstance) {
8323
- let provides = currentInstance.provides;
8324
- const parentProvides = currentInstance.parent && currentInstance.parent.provides;
8325
- if (parentProvides === provides) {
8326
- provides = currentInstance.provides = Object.create(parentProvides);
8327
- }
8328
- provides[key] = value;
8329
- }
8330
- }
8331
- function inject(key, defaultValue, treatDefaultAsFactory = false) {
8332
- const instance = getCurrentGenericInstance();
8333
- if (instance || currentApp) {
8334
- let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
8335
- if (provides && key in provides) {
8336
- return provides[key];
8337
- } else if (arguments.length > 1) {
8338
- return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
8339
- } else if (!!(process.env.NODE_ENV !== "production")) {
8340
- warn$1(`injection "${String(key)}" not found.`);
8341
- }
8342
- } else if (!!(process.env.NODE_ENV !== "production")) {
8343
- warn$1(`inject() can only be used inside setup() or functional components.`);
8344
- }
8345
- }
8346
- function hasInjectionContext() {
8347
- return !!(getCurrentGenericInstance() || currentApp);
8348
- }
8349
-
8350
- const ssrContextKey = Symbol.for("v-scx");
8351
- const useSSRContext = () => {
8352
- {
8353
- const ctx = inject(ssrContextKey);
8354
- if (!ctx) {
8355
- !!(process.env.NODE_ENV !== "production") && warn$1(
8356
- `Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
8357
- );
8358
- }
8359
- return ctx;
8360
- }
8361
- };
8362
-
8363
- function watchEffect(effect, options) {
8364
- return doWatch(effect, null, options);
8365
- }
8366
- function watchPostEffect(effect, options) {
8367
- return doWatch(
8368
- effect,
8369
- null,
8370
- !!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "post" }) : { flush: "post" }
8371
- );
8372
- }
8373
- function watchSyncEffect(effect, options) {
8374
- return doWatch(
8375
- effect,
8376
- null,
8377
- !!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "sync" }) : { flush: "sync" }
8378
- );
8379
- }
8380
- function watch(source, cb, options) {
8381
- if (!!(process.env.NODE_ENV !== "production") && !isFunction(cb)) {
8382
- warn$1(
8383
- `\`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.`
8384
- );
8385
- }
8386
- return doWatch(source, cb, options);
8387
- }
8388
- class RenderWatcherEffect extends WatcherEffect {
8389
- constructor(instance, source, cb, options, flush) {
8390
- super(source, cb, options);
8391
- this.flush = flush;
8392
- const job = () => {
8393
- if (this.dirty) {
8394
- this.run();
8390
+ return getPublicInstance(instance);
8391
+ } else if (!!(process.env.NODE_ENV !== "production")) {
8392
+ warn$1(
8393
+ `App has already been mounted.
8394
+ If you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. \`const createMyApp = () => createApp(App)\``
8395
+ );
8396
+ }
8397
+ },
8398
+ onUnmount(cleanupFn) {
8399
+ if (!!(process.env.NODE_ENV !== "production") && typeof cleanupFn !== "function") {
8400
+ warn$1(
8401
+ `Expected function as first argument to app.onUnmount(), but got ${typeof cleanupFn}`
8402
+ );
8403
+ }
8404
+ pluginCleanupFns.push(cleanupFn);
8405
+ },
8406
+ unmount() {
8407
+ if (isMounted) {
8408
+ callWithAsyncErrorHandling(
8409
+ pluginCleanupFns,
8410
+ app._instance,
8411
+ 16
8412
+ );
8413
+ unmount(app);
8414
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
8415
+ app._instance = null;
8416
+ devtoolsUnmountApp(app);
8417
+ }
8418
+ delete app._container.__vue_app__;
8419
+ } else if (!!(process.env.NODE_ENV !== "production")) {
8420
+ warn$1(`Cannot unmount an app that is not mounted.`);
8421
+ }
8422
+ },
8423
+ provide(key, value) {
8424
+ if (!!(process.env.NODE_ENV !== "production") && key in context.provides) {
8425
+ if (hasOwn(context.provides, key)) {
8426
+ warn$1(
8427
+ `App already provides property with key "${String(key)}". It will be overwritten with the new value.`
8428
+ );
8429
+ } else {
8430
+ warn$1(
8431
+ `App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`
8432
+ );
8433
+ }
8434
+ }
8435
+ context.provides[key] = value;
8436
+ return app;
8437
+ },
8438
+ runWithContext(fn) {
8439
+ const lastApp = currentApp;
8440
+ currentApp = app;
8441
+ try {
8442
+ return fn();
8443
+ } finally {
8444
+ currentApp = lastApp;
8445
+ }
8395
8446
  }
8396
8447
  };
8397
- if (cb) {
8398
- this.flags |= 128;
8399
- job.flags |= 2;
8400
- }
8401
- if (instance) {
8402
- job.i = instance;
8403
- }
8404
- this.job = job;
8405
- }
8406
- notify() {
8407
- const flags = this.flags;
8408
- if (!(flags & 256)) {
8409
- const flush = this.flush;
8410
- const job = this.job;
8411
- if (flush === "post") {
8412
- queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
8413
- } else if (flush === "pre") {
8414
- queueJob(job, job.i ? job.i.uid : void 0, true);
8415
- } else {
8416
- job();
8417
- }
8418
- }
8419
- }
8420
- }
8421
- function doWatch(source, cb, options = EMPTY_OBJ) {
8422
- const { immediate, deep, flush = "pre", once } = options;
8423
- if (!!(process.env.NODE_ENV !== "production") && !cb) {
8424
- if (immediate !== void 0) {
8425
- warn$1(
8426
- `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
8448
+ {
8449
+ installAppCompatProperties(
8450
+ app,
8451
+ context,
8452
+ // vapor doesn't have compat mode so this is always passed
8453
+ render
8427
8454
  );
8428
8455
  }
8429
- if (deep !== void 0) {
8430
- warn$1(
8431
- `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
8432
- );
8456
+ return app;
8457
+ };
8458
+ }
8459
+ let currentApp = null;
8460
+
8461
+ const compatModelEventPrefix = `onModelCompat:`;
8462
+ const warnedTypes = /* @__PURE__ */ new WeakSet();
8463
+ function convertLegacyVModelProps(vnode) {
8464
+ const { type, shapeFlag, props, dynamicProps } = vnode;
8465
+ const comp = type;
8466
+ if (shapeFlag & 6 && props && "modelValue" in props) {
8467
+ if (!isCompatEnabled$1(
8468
+ "COMPONENT_V_MODEL",
8469
+ // this is a special case where we want to use the vnode component's
8470
+ // compat config instead of the current rendering instance (which is the
8471
+ // parent of the component that exposes v-model)
8472
+ { type }
8473
+ )) {
8474
+ return;
8433
8475
  }
8434
- if (once !== void 0) {
8435
- warn$1(
8436
- `watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
8476
+ if (!!(process.env.NODE_ENV !== "production") && !warnedTypes.has(comp)) {
8477
+ pushWarningContext(vnode);
8478
+ warnDeprecation$1(
8479
+ "COMPONENT_V_MODEL",
8480
+ {
8481
+ type,
8482
+ appContext: vnode.ctx && vnode.ctx.appContext || createAppContext()
8483
+ },
8484
+ comp
8437
8485
  );
8486
+ popWarningContext();
8487
+ warnedTypes.add(comp);
8438
8488
  }
8439
- }
8440
- const baseWatchOptions = extend({}, options);
8441
- if (!!(process.env.NODE_ENV !== "production")) baseWatchOptions.onWarn = warn$1;
8442
- const runsImmediately = cb && immediate || !cb && flush !== "post";
8443
- let ssrCleanup;
8444
- if (isInSSRComponentSetup) {
8445
- if (flush === "sync") {
8446
- const ctx = useSSRContext();
8447
- ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
8448
- } else if (!runsImmediately) {
8449
- const watchStopHandle = () => {
8450
- };
8451
- watchStopHandle.stop = NOOP;
8452
- watchStopHandle.resume = NOOP;
8453
- watchStopHandle.pause = NOOP;
8454
- return watchStopHandle;
8489
+ const model = comp.model || {};
8490
+ applyModelFromMixins(model, comp.mixins);
8491
+ const { prop = "value", event = "input" } = model;
8492
+ if (prop !== "modelValue") {
8493
+ props[prop] = props.modelValue;
8494
+ delete props.modelValue;
8455
8495
  }
8456
- }
8457
- const instance = currentInstance;
8458
- baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
8459
- const effect = new RenderWatcherEffect(
8460
- instance,
8461
- source,
8462
- cb,
8463
- baseWatchOptions,
8464
- flush
8465
- );
8466
- if (cb) {
8467
- effect.run(true);
8468
- } else if (flush === "post") {
8469
- queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
8470
- } else {
8471
- effect.run(true);
8472
- }
8473
- const stop = effect.stop.bind(effect);
8474
- stop.pause = effect.pause.bind(effect);
8475
- stop.resume = effect.resume.bind(effect);
8476
- stop.stop = stop;
8477
- if (isInSSRComponentSetup) {
8478
- if (ssrCleanup) {
8479
- ssrCleanup.push(stop);
8480
- } else if (runsImmediately) {
8481
- stop();
8496
+ if (dynamicProps) {
8497
+ dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
8482
8498
  }
8499
+ props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
8500
+ delete props["onUpdate:modelValue"];
8483
8501
  }
8484
- return stop;
8485
8502
  }
8486
- function instanceWatch(source, value, options) {
8487
- const publicThis = this.proxy;
8488
- const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
8489
- let cb;
8490
- if (isFunction(value)) {
8491
- cb = value;
8492
- } else {
8493
- cb = value.handler;
8494
- options = value;
8503
+ function applyModelFromMixins(model, mixins) {
8504
+ if (mixins) {
8505
+ mixins.forEach((m) => {
8506
+ if (m.model) extend(model, m.model);
8507
+ if (m.mixins) applyModelFromMixins(model, m.mixins);
8508
+ });
8495
8509
  }
8496
- const prev = setCurrentInstance(this);
8497
- const res = doWatch(getter, cb.bind(publicThis), options);
8498
- setCurrentInstance(...prev);
8499
- return res;
8500
8510
  }
8501
- function createPathGetter(ctx, path) {
8502
- const segments = path.split(".");
8503
- return () => {
8504
- let cur = ctx;
8505
- for (let i = 0; i < segments.length && cur; i++) {
8506
- cur = cur[segments[i]];
8507
- }
8508
- return cur;
8509
- };
8511
+ function compatModelEmit(instance, event, args) {
8512
+ if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
8513
+ return;
8514
+ }
8515
+ const props = instance.vnode.props;
8516
+ const modelHandler = props && props[compatModelEventPrefix + event];
8517
+ if (modelHandler) {
8518
+ callWithErrorHandling(
8519
+ modelHandler,
8520
+ instance,
8521
+ 6,
8522
+ args
8523
+ );
8524
+ }
8510
8525
  }
8511
8526
 
8512
8527
  function useModel(props, name, options = EMPTY_OBJ) {
@@ -9884,7 +9899,15 @@ function baseCreateRenderer(options, createHydrationFns) {
9884
9899
  } else {
9885
9900
  const el = n2.el = n1.el;
9886
9901
  if (n2.children !== n1.children) {
9887
- hostSetText(el, n2.children);
9902
+ if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
9903
+ const childNodes = container.childNodes;
9904
+ const newChild = hostCreateText(n2.children);
9905
+ const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
9906
+ hostInsert(newChild, container, oldChild);
9907
+ hostRemove(oldChild);
9908
+ } else {
9909
+ hostSetText(el, n2.children);
9910
+ }
9888
9911
  }
9889
9912
  }
9890
9913
  };
@@ -10268,7 +10291,7 @@ function baseCreateRenderer(options, createHydrationFns) {
10268
10291
  } else {
10269
10292
  if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
10270
10293
  // of renderSlot() with no valid children
10271
- n1.dynamicChildren) {
10294
+ n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
10272
10295
  patchBlockChildren(
10273
10296
  n1.dynamicChildren,
10274
10297
  dynamicChildren,
@@ -10997,8 +11020,8 @@ function baseCreateRenderer(options, createHydrationFns) {
10997
11020
  const nextChild = c2[nextIndex];
10998
11021
  const anchorVNode = c2[nextIndex + 1];
10999
11022
  const anchor = nextIndex + 1 < l2 ? (
11000
- // #13559, fallback to el placeholder for unresolved async component
11001
- anchorVNode.el || anchorVNode.placeholder
11023
+ // #13559, #14173 fallback to el placeholder for unresolved async component
11024
+ anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
11002
11025
  ) : parentAnchor;
11003
11026
  if (newIndexToOldIndexMap[i] === 0) {
11004
11027
  patch(
@@ -11313,9 +11336,11 @@ function baseCreateRenderer(options, createHydrationFns) {
11313
11336
  return teleportEnd ? hostNextSibling(teleportEnd) : el;
11314
11337
  };
11315
11338
  const render = (vnode, container, namespace) => {
11339
+ let instance;
11316
11340
  if (vnode == null) {
11317
11341
  if (container._vnode) {
11318
11342
  unmount(container._vnode, null, null, true);
11343
+ instance = container._vnode.component;
11319
11344
  }
11320
11345
  } else {
11321
11346
  patch(
@@ -11329,7 +11354,7 @@ function baseCreateRenderer(options, createHydrationFns) {
11329
11354
  );
11330
11355
  }
11331
11356
  container._vnode = vnode;
11332
- flushOnAppMount();
11357
+ flushOnAppMount(instance);
11333
11358
  };
11334
11359
  const internals = {
11335
11360
  p: patch,
@@ -11421,9 +11446,13 @@ function traverseStaticChildren(n1, n2, shallow = false) {
11421
11446
  if (!shallow && c2.patchFlag !== -2)
11422
11447
  traverseStaticChildren(c1, c2);
11423
11448
  }
11424
- if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
11425
- c2.patchFlag !== -1) {
11426
- c2.el = c1.el;
11449
+ if (c2.type === Text) {
11450
+ if (c2.patchFlag !== -1) {
11451
+ c2.el = c1.el;
11452
+ } else {
11453
+ c2.__elIndex = i + // take fragment start anchor into account
11454
+ (n1.type === Fragment ? 1 : 0);
11455
+ }
11427
11456
  }
11428
11457
  if (c2.type === Comment && !c2.el) {
11429
11458
  c2.el = c1.el;
@@ -11459,16 +11488,24 @@ function performTransitionEnter(el, transition, insert, parentSuspense, force =
11459
11488
  insert();
11460
11489
  }
11461
11490
  }
11462
- function performTransitionLeave(el, transition, remove, isElement = true) {
11491
+ function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
11463
11492
  const performRemove = () => {
11464
11493
  remove();
11465
11494
  if (transition && !transition.persisted && transition.afterLeave) {
11466
11495
  transition.afterLeave();
11467
11496
  }
11468
11497
  };
11469
- if (isElement && transition && !transition.persisted) {
11498
+ if (force || isElement && transition && !transition.persisted) {
11470
11499
  const { leave, delayLeave } = transition;
11471
- const performLeave = () => leave(el, performRemove);
11500
+ const performLeave = () => {
11501
+ if (el._isLeaving && force) {
11502
+ el[leaveCbKey](
11503
+ true
11504
+ /* cancelled */
11505
+ );
11506
+ }
11507
+ leave(el, performRemove);
11508
+ };
11472
11509
  if (delayLeave) {
11473
11510
  delayLeave(el, performRemove, performLeave);
11474
11511
  } else {
@@ -11524,6 +11561,16 @@ function getInheritedScopeIds(vnode, parentComponent) {
11524
11561
  }
11525
11562
  return inheritedScopeIds;
11526
11563
  }
11564
+ function resolveAsyncComponentPlaceholder(anchorVnode) {
11565
+ if (anchorVnode.placeholder) {
11566
+ return anchorVnode.placeholder;
11567
+ }
11568
+ const instance = anchorVnode.component;
11569
+ if (instance) {
11570
+ return resolveAsyncComponentPlaceholder(instance.subTree);
11571
+ }
11572
+ return null;
11573
+ }
11527
11574
 
11528
11575
  const isSuspense = (type) => type.__isSuspense;
11529
11576
  let suspenseId = 0;
@@ -12018,7 +12065,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace
12018
12065
  parentSuspense,
12019
12066
  parentComponent,
12020
12067
  node.parentNode,
12021
- // eslint-disable-next-line no-restricted-globals
12068
+ // oxlint-disable-next-line no-restricted-globals
12022
12069
  document.createElement("div"),
12023
12070
  null,
12024
12071
  namespace,
@@ -12163,11 +12210,11 @@ function convertLegacyComponent(comp, instance) {
12163
12210
  return comp;
12164
12211
  }
12165
12212
 
12166
- const Fragment = Symbol.for("v-fgt");
12167
- const Text = Symbol.for("v-txt");
12168
- const Comment = Symbol.for("v-cmt");
12169
- const Static = Symbol.for("v-stc");
12170
- const VaporSlot = Symbol.for("v-vps");
12213
+ const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
12214
+ const Text = /* @__PURE__ */ Symbol.for("v-txt");
12215
+ const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
12216
+ const Static = /* @__PURE__ */ Symbol.for("v-stc");
12217
+ const VaporSlot = /* @__PURE__ */ Symbol.for("v-vps");
12171
12218
  const blockStack = [];
12172
12219
  let currentBlock = null;
12173
12220
  function openBlock(disableTracking = false) {
@@ -12581,7 +12628,7 @@ const setCurrentInstance = (instance, scope = instance !== null ? instance.scope
12581
12628
  simpleSetCurrentInstance(instance);
12582
12629
  }
12583
12630
  };
12584
- const internalOptions = ["ce", "type"];
12631
+ const internalOptions = ["ce", "type", "uid"];
12585
12632
  const useInstanceOption = (key, silent = false) => {
12586
12633
  const instance = getCurrentGenericInstance();
12587
12634
  if (!instance) {
@@ -12601,7 +12648,7 @@ const useInstanceOption = (key, silent = false) => {
12601
12648
  return { hasInstance: true, value: instance[key] };
12602
12649
  };
12603
12650
 
12604
- const emptyAppContext = createAppContext();
12651
+ const emptyAppContext = /* @__PURE__ */ createAppContext();
12605
12652
  let uid = 0;
12606
12653
  function nextUid() {
12607
12654
  return uid++;
@@ -13262,7 +13309,7 @@ function isMemoSame(cached, memo) {
13262
13309
  return true;
13263
13310
  }
13264
13311
 
13265
- const version = "3.6.0-alpha.7";
13312
+ const version = "3.6.0-beta.2";
13266
13313
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
13267
13314
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
13268
13315
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -13374,7 +13421,7 @@ const nodeOps = {
13374
13421
 
13375
13422
  const TRANSITION$1 = "transition";
13376
13423
  const ANIMATION = "animation";
13377
- const vtcKey = Symbol("_vtc");
13424
+ const vtcKey = /* @__PURE__ */ Symbol("_vtc");
13378
13425
  const DOMTransitionPropsValidators = {
13379
13426
  name: String,
13380
13427
  type: String,
@@ -13704,8 +13751,8 @@ function patchClass(el, value, isSVG) {
13704
13751
  }
13705
13752
  }
13706
13753
 
13707
- const vShowOriginalDisplay = Symbol("_vod");
13708
- const vShowHidden = Symbol("_vsh");
13754
+ const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
13755
+ const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
13709
13756
  const vShow = {
13710
13757
  // used for prop mismatch check during hydration
13711
13758
  name: "show",
@@ -13754,7 +13801,7 @@ function initVShowForSSR() {
13754
13801
  };
13755
13802
  }
13756
13803
 
13757
- const CSS_VAR_TEXT = Symbol(!!(process.env.NODE_ENV !== "production") ? "CSS_VAR_TEXT" : "");
13804
+ const CSS_VAR_TEXT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? "CSS_VAR_TEXT" : "");
13758
13805
  function useCssVars(getter) {
13759
13806
  const instance = getCurrentInstance();
13760
13807
  const getVars = () => getter(instance.proxy);
@@ -13964,7 +14011,7 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
13964
14011
  const isEnumeratedAttr = /* @__PURE__ */ makeMap("contenteditable,draggable,spellcheck") ;
13965
14012
  function compatCoerceAttr(el, key, value, instance = null) {
13966
14013
  if (isEnumeratedAttr(key)) {
13967
- const v2CoercedValue = value === null ? "false" : typeof value !== "boolean" && value !== void 0 ? "true" : null;
14014
+ const v2CoercedValue = value === void 0 ? null : value === null || value === false || value === "false" ? "false" : "true";
13968
14015
  if (v2CoercedValue && compatUtils.softAssertCompatEnabled(
13969
14016
  "ATTR_ENUMERATED_COERCION",
13970
14017
  instance,
@@ -14059,7 +14106,7 @@ function addEventListener(el, event, handler, options) {
14059
14106
  function removeEventListener(el, event, handler, options) {
14060
14107
  el.removeEventListener(event, handler, options);
14061
14108
  }
14062
- const veiKey = Symbol("_vei");
14109
+ const veiKey = /* @__PURE__ */ Symbol("_vei");
14063
14110
  function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
14064
14111
  const invokers = el[veiKey] || (el[veiKey] = {});
14065
14112
  const existingInvoker = invokers[rawName];
@@ -14721,8 +14768,8 @@ function useCssModule(name = "$style") {
14721
14768
 
14722
14769
  const positionMap = /* @__PURE__ */ new WeakMap();
14723
14770
  const newPositionMap = /* @__PURE__ */ new WeakMap();
14724
- const moveCbKey = Symbol("_moveCb");
14725
- const enterCbKey = Symbol("_enterCb");
14771
+ const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
14772
+ const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
14726
14773
  const decorate = (t) => {
14727
14774
  delete t.props.mode;
14728
14775
  {
@@ -14894,7 +14941,7 @@ function onCompositionEnd(e) {
14894
14941
  target.dispatchEvent(new Event("input"));
14895
14942
  }
14896
14943
  }
14897
- const assignKey = Symbol("_assign");
14944
+ const assignKey = /* @__PURE__ */ Symbol("_assign");
14898
14945
  const vModelText = {
14899
14946
  created(el, { modifiers: { lazy, trim, number } }, vnode) {
14900
14947
  el[assignKey] = getModelAssigner(vnode);
@@ -15707,81 +15754,81 @@ function createCompatVue() {
15707
15754
  return Vue;
15708
15755
  }
15709
15756
 
15710
- const FRAGMENT = Symbol(!!(process.env.NODE_ENV !== "production") ? `Fragment` : ``);
15711
- const TELEPORT = Symbol(!!(process.env.NODE_ENV !== "production") ? `Teleport` : ``);
15712
- const SUSPENSE = Symbol(!!(process.env.NODE_ENV !== "production") ? `Suspense` : ``);
15713
- const KEEP_ALIVE = Symbol(!!(process.env.NODE_ENV !== "production") ? `KeepAlive` : ``);
15714
- const BASE_TRANSITION = Symbol(
15757
+ const FRAGMENT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `Fragment` : ``);
15758
+ const TELEPORT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `Teleport` : ``);
15759
+ const SUSPENSE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `Suspense` : ``);
15760
+ const KEEP_ALIVE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `KeepAlive` : ``);
15761
+ const BASE_TRANSITION = /* @__PURE__ */ Symbol(
15715
15762
  !!(process.env.NODE_ENV !== "production") ? `BaseTransition` : ``
15716
15763
  );
15717
- const OPEN_BLOCK = Symbol(!!(process.env.NODE_ENV !== "production") ? `openBlock` : ``);
15718
- const CREATE_BLOCK = Symbol(!!(process.env.NODE_ENV !== "production") ? `createBlock` : ``);
15719
- const CREATE_ELEMENT_BLOCK = Symbol(
15764
+ const OPEN_BLOCK = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `openBlock` : ``);
15765
+ const CREATE_BLOCK = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `createBlock` : ``);
15766
+ const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
15720
15767
  !!(process.env.NODE_ENV !== "production") ? `createElementBlock` : ``
15721
15768
  );
15722
- const CREATE_VNODE = Symbol(!!(process.env.NODE_ENV !== "production") ? `createVNode` : ``);
15723
- const CREATE_ELEMENT_VNODE = Symbol(
15769
+ const CREATE_VNODE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `createVNode` : ``);
15770
+ const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
15724
15771
  !!(process.env.NODE_ENV !== "production") ? `createElementVNode` : ``
15725
15772
  );
15726
- const CREATE_COMMENT = Symbol(
15773
+ const CREATE_COMMENT = /* @__PURE__ */ Symbol(
15727
15774
  !!(process.env.NODE_ENV !== "production") ? `createCommentVNode` : ``
15728
15775
  );
15729
- const CREATE_TEXT = Symbol(
15776
+ const CREATE_TEXT = /* @__PURE__ */ Symbol(
15730
15777
  !!(process.env.NODE_ENV !== "production") ? `createTextVNode` : ``
15731
15778
  );
15732
- const CREATE_STATIC = Symbol(
15779
+ const CREATE_STATIC = /* @__PURE__ */ Symbol(
15733
15780
  !!(process.env.NODE_ENV !== "production") ? `createStaticVNode` : ``
15734
15781
  );
15735
- const RESOLVE_COMPONENT = Symbol(
15782
+ const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
15736
15783
  !!(process.env.NODE_ENV !== "production") ? `resolveComponent` : ``
15737
15784
  );
15738
- const RESOLVE_DYNAMIC_COMPONENT = Symbol(
15785
+ const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
15739
15786
  !!(process.env.NODE_ENV !== "production") ? `resolveDynamicComponent` : ``
15740
15787
  );
15741
- const RESOLVE_DIRECTIVE = Symbol(
15788
+ const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
15742
15789
  !!(process.env.NODE_ENV !== "production") ? `resolveDirective` : ``
15743
15790
  );
15744
- const RESOLVE_FILTER = Symbol(
15791
+ const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
15745
15792
  !!(process.env.NODE_ENV !== "production") ? `resolveFilter` : ``
15746
15793
  );
15747
- const WITH_DIRECTIVES = Symbol(
15794
+ const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
15748
15795
  !!(process.env.NODE_ENV !== "production") ? `withDirectives` : ``
15749
15796
  );
15750
- const RENDER_LIST = Symbol(!!(process.env.NODE_ENV !== "production") ? `renderList` : ``);
15751
- const RENDER_SLOT = Symbol(!!(process.env.NODE_ENV !== "production") ? `renderSlot` : ``);
15752
- const CREATE_SLOTS = Symbol(!!(process.env.NODE_ENV !== "production") ? `createSlots` : ``);
15753
- const TO_DISPLAY_STRING = Symbol(
15797
+ const RENDER_LIST = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `renderList` : ``);
15798
+ const RENDER_SLOT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `renderSlot` : ``);
15799
+ const CREATE_SLOTS = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `createSlots` : ``);
15800
+ const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
15754
15801
  !!(process.env.NODE_ENV !== "production") ? `toDisplayString` : ``
15755
15802
  );
15756
- const MERGE_PROPS = Symbol(!!(process.env.NODE_ENV !== "production") ? `mergeProps` : ``);
15757
- const NORMALIZE_CLASS = Symbol(
15803
+ const MERGE_PROPS = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `mergeProps` : ``);
15804
+ const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
15758
15805
  !!(process.env.NODE_ENV !== "production") ? `normalizeClass` : ``
15759
15806
  );
15760
- const NORMALIZE_STYLE = Symbol(
15807
+ const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
15761
15808
  !!(process.env.NODE_ENV !== "production") ? `normalizeStyle` : ``
15762
15809
  );
15763
- const NORMALIZE_PROPS = Symbol(
15810
+ const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
15764
15811
  !!(process.env.NODE_ENV !== "production") ? `normalizeProps` : ``
15765
15812
  );
15766
- const GUARD_REACTIVE_PROPS = Symbol(
15813
+ const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
15767
15814
  !!(process.env.NODE_ENV !== "production") ? `guardReactiveProps` : ``
15768
15815
  );
15769
- const TO_HANDLERS = Symbol(!!(process.env.NODE_ENV !== "production") ? `toHandlers` : ``);
15770
- const CAMELIZE = Symbol(!!(process.env.NODE_ENV !== "production") ? `camelize` : ``);
15771
- const CAPITALIZE = Symbol(!!(process.env.NODE_ENV !== "production") ? `capitalize` : ``);
15772
- const TO_HANDLER_KEY = Symbol(
15816
+ const TO_HANDLERS = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `toHandlers` : ``);
15817
+ const CAMELIZE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `camelize` : ``);
15818
+ const CAPITALIZE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `capitalize` : ``);
15819
+ const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
15773
15820
  !!(process.env.NODE_ENV !== "production") ? `toHandlerKey` : ``
15774
15821
  );
15775
- const SET_BLOCK_TRACKING = Symbol(
15822
+ const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
15776
15823
  !!(process.env.NODE_ENV !== "production") ? `setBlockTracking` : ``
15777
15824
  );
15778
- const PUSH_SCOPE_ID = Symbol(!!(process.env.NODE_ENV !== "production") ? `pushScopeId` : ``);
15779
- const POP_SCOPE_ID = Symbol(!!(process.env.NODE_ENV !== "production") ? `popScopeId` : ``);
15780
- const WITH_CTX = Symbol(!!(process.env.NODE_ENV !== "production") ? `withCtx` : ``);
15781
- const UNREF = Symbol(!!(process.env.NODE_ENV !== "production") ? `unref` : ``);
15782
- const IS_REF = Symbol(!!(process.env.NODE_ENV !== "production") ? `isRef` : ``);
15783
- const WITH_MEMO = Symbol(!!(process.env.NODE_ENV !== "production") ? `withMemo` : ``);
15784
- const IS_MEMO_SAME = Symbol(!!(process.env.NODE_ENV !== "production") ? `isMemoSame` : ``);
15825
+ const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `pushScopeId` : ``);
15826
+ const POP_SCOPE_ID = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `popScopeId` : ``);
15827
+ const WITH_CTX = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `withCtx` : ``);
15828
+ const UNREF = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `unref` : ``);
15829
+ const IS_REF = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `isRef` : ``);
15830
+ const WITH_MEMO = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `withMemo` : ``);
15831
+ const IS_MEMO_SAME = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `isMemoSame` : ``);
15785
15832
  const helperNameMap = {
15786
15833
  [FRAGMENT]: `Fragment`,
15787
15834
  [TELEPORT]: `Teleport`,
@@ -16076,14 +16123,28 @@ class Tokenizer {
16076
16123
  getPos(index) {
16077
16124
  let line = 1;
16078
16125
  let column = index + 1;
16079
- for (let i = this.newlines.length - 1; i >= 0; i--) {
16080
- const newlineIndex = this.newlines[i];
16081
- if (index > newlineIndex) {
16082
- line = i + 2;
16083
- column = index - newlineIndex;
16084
- break;
16126
+ const length = this.newlines.length;
16127
+ let j = -1;
16128
+ if (length > 100) {
16129
+ let l = -1;
16130
+ let r = length;
16131
+ while (l + 1 < r) {
16132
+ const m = l + r >>> 1;
16133
+ this.newlines[m] < index ? l = m : r = m;
16134
+ }
16135
+ j = l;
16136
+ } else {
16137
+ for (let i = length - 1; i >= 0; i--) {
16138
+ if (index > this.newlines[i]) {
16139
+ j = i;
16140
+ break;
16141
+ }
16085
16142
  }
16086
16143
  }
16144
+ if (j >= 0) {
16145
+ line = j + 2;
16146
+ column = index - this.newlines[j];
16147
+ }
16087
16148
  return {
16088
16149
  column,
16089
16150
  line,
@@ -16898,7 +16959,7 @@ const errorMessages = {
16898
16959
  [32]: `v-for has invalid expression.`,
16899
16960
  [33]: `<template v-for> key should be placed on the <template> tag.`,
16900
16961
  [34]: `v-bind is missing expression.`,
16901
- [52]: `v-bind with same-name shorthand only allows static argument.`,
16962
+ [53]: `v-bind with same-name shorthand only allows static argument.`,
16902
16963
  [35]: `v-on is missing expression.`,
16903
16964
  [36]: `Unexpected custom directive on <slot> outlet.`,
16904
16965
  [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.`,
@@ -16910,16 +16971,17 @@ const errorMessages = {
16910
16971
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
16911
16972
  [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
16912
16973
  Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
16913
- [45]: `Error parsing JavaScript expression: `,
16914
- [46]: `<KeepAlive> expects exactly one child component.`,
16915
- [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.`,
16974
+ [45]: `v-model cannot be used on a const binding because it is not writable.`,
16975
+ [46]: `Error parsing JavaScript expression: `,
16976
+ [47]: `<KeepAlive> expects exactly one child component.`,
16977
+ [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.`,
16916
16978
  // generic errors
16917
- [47]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
16918
- [48]: `ES module mode is not supported in this build of compiler.`,
16919
- [49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
16920
- [50]: `"scopeId" option is only supported in module mode.`,
16979
+ [48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
16980
+ [49]: `ES module mode is not supported in this build of compiler.`,
16981
+ [50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
16982
+ [51]: `"scopeId" option is only supported in module mode.`,
16921
16983
  // just to fulfill types
16922
- [53]: ``
16984
+ [54]: ``
16923
16985
  };
16924
16986
 
16925
16987
  const isStaticExp = (p) => p.type === 4 && p.isStatic;
@@ -19112,7 +19174,7 @@ function validateBrowserExpression(node, context, asParams = false, asRawStateme
19112
19174
  }
19113
19175
  context.onError(
19114
19176
  createCompilerError(
19115
- 45,
19177
+ 46,
19116
19178
  node.loc,
19117
19179
  void 0,
19118
19180
  message
@@ -19878,7 +19940,7 @@ const transformElement = (node, context) => {
19878
19940
  patchFlag |= 1024;
19879
19941
  if (!!(process.env.NODE_ENV !== "production") && node.children.length > 1) {
19880
19942
  context.onError(
19881
- createCompilerError(46, {
19943
+ createCompilerError(47, {
19882
19944
  start: node.children[0].loc.start,
19883
19945
  end: node.children[node.children.length - 1].loc.end,
19884
19946
  source: ""
@@ -20465,7 +20527,7 @@ const transformOn$1 = (dir, node, context, augmentor) => {
20465
20527
  if (arg.isStatic) {
20466
20528
  let rawName = arg.content;
20467
20529
  if (!!(process.env.NODE_ENV !== "production") && rawName.startsWith("vnode")) {
20468
- context.onError(createCompilerError(51, arg.loc));
20530
+ context.onError(createCompilerError(52, arg.loc));
20469
20531
  }
20470
20532
  if (rawName.startsWith("vue:")) {
20471
20533
  rawName = `vnode-${rawName.slice(4)}`;
@@ -20698,6 +20760,10 @@ const transformModel$1 = (dir, node, context) => {
20698
20760
  context.onError(createCompilerError(44, exp.loc));
20699
20761
  return createTransformProps();
20700
20762
  }
20763
+ if (bindingType === "literal-const" || bindingType === "setup-const") {
20764
+ context.onError(createCompilerError(45, exp.loc));
20765
+ return createTransformProps();
20766
+ }
20701
20767
  if (!expString.trim() || !isMemberExpression(exp) && true) {
20702
20768
  context.onError(
20703
20769
  createCompilerError(42, exp.loc)
@@ -20926,7 +20992,7 @@ const transformVBindShorthand = (node, context) => {
20926
20992
  if (arg.type !== 4 || !arg.isStatic) {
20927
20993
  context.onError(
20928
20994
  createCompilerError(
20929
- 52,
20995
+ 53,
20930
20996
  arg.loc
20931
20997
  )
20932
20998
  );
@@ -20970,17 +21036,17 @@ function baseCompile(source, options = {}) {
20970
21036
  const isModuleMode = options.mode === "module";
20971
21037
  {
20972
21038
  if (options.prefixIdentifiers === true) {
20973
- onError(createCompilerError(47));
20974
- } else if (isModuleMode) {
20975
21039
  onError(createCompilerError(48));
21040
+ } else if (isModuleMode) {
21041
+ onError(createCompilerError(49));
20976
21042
  }
20977
21043
  }
20978
21044
  const prefixIdentifiers = false;
20979
21045
  if (options.cacheHandlers) {
20980
- onError(createCompilerError(49));
21046
+ onError(createCompilerError(50));
20981
21047
  }
20982
21048
  if (options.scopeId && !isModuleMode) {
20983
- onError(createCompilerError(50));
21049
+ onError(createCompilerError(51));
20984
21050
  }
20985
21051
  const resolvedOptions = extend({}, options, {
20986
21052
  prefixIdentifiers
@@ -21008,26 +21074,26 @@ function baseCompile(source, options = {}) {
21008
21074
 
21009
21075
  const noopDirectiveTransform = () => ({ props: [] });
21010
21076
 
21011
- const V_MODEL_RADIO = Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelRadio` : ``);
21012
- const V_MODEL_CHECKBOX = Symbol(
21077
+ const V_MODEL_RADIO = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelRadio` : ``);
21078
+ const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
21013
21079
  !!(process.env.NODE_ENV !== "production") ? `vModelCheckbox` : ``
21014
21080
  );
21015
- const V_MODEL_TEXT = Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelText` : ``);
21016
- const V_MODEL_SELECT = Symbol(
21081
+ const V_MODEL_TEXT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelText` : ``);
21082
+ const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
21017
21083
  !!(process.env.NODE_ENV !== "production") ? `vModelSelect` : ``
21018
21084
  );
21019
- const V_MODEL_DYNAMIC = Symbol(
21085
+ const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
21020
21086
  !!(process.env.NODE_ENV !== "production") ? `vModelDynamic` : ``
21021
21087
  );
21022
- const V_ON_WITH_MODIFIERS = Symbol(
21088
+ const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
21023
21089
  !!(process.env.NODE_ENV !== "production") ? `vOnModifiersGuard` : ``
21024
21090
  );
21025
- const V_ON_WITH_KEYS = Symbol(
21091
+ const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
21026
21092
  !!(process.env.NODE_ENV !== "production") ? `vOnKeysGuard` : ``
21027
21093
  );
21028
- const V_SHOW = Symbol(!!(process.env.NODE_ENV !== "production") ? `vShow` : ``);
21029
- const TRANSITION = Symbol(!!(process.env.NODE_ENV !== "production") ? `Transition` : ``);
21030
- const TRANSITION_GROUP = Symbol(
21094
+ const V_SHOW = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `vShow` : ``);
21095
+ const TRANSITION = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `Transition` : ``);
21096
+ const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
21031
21097
  !!(process.env.NODE_ENV !== "production") ? `TransitionGroup` : ``
21032
21098
  );
21033
21099
  registerRuntimeHelpers({
@@ -21138,31 +21204,31 @@ function createDOMCompilerError(code, loc) {
21138
21204
  );
21139
21205
  }
21140
21206
  const DOMErrorMessages = {
21141
- [53]: `v-html is missing expression.`,
21142
- [54]: `v-html will override element children.`,
21143
- [55]: `v-text is missing expression.`,
21144
- [56]: `v-text will override element children.`,
21145
- [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
21146
- [58]: `v-model argument is not supported on plain elements.`,
21147
- [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
21148
- [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
21149
- [61]: `v-show is missing expression.`,
21150
- [62]: `<Transition> expects exactly one child element or component.`,
21151
- [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
21207
+ [54]: `v-html is missing expression.`,
21208
+ [55]: `v-html will override element children.`,
21209
+ [56]: `v-text is missing expression.`,
21210
+ [57]: `v-text will override element children.`,
21211
+ [58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
21212
+ [59]: `v-model argument is not supported on plain elements.`,
21213
+ [60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
21214
+ [61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
21215
+ [62]: `v-show is missing expression.`,
21216
+ [63]: `<Transition> expects exactly one child element or component.`,
21217
+ [64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
21152
21218
  // just to fulfill types
21153
- [64]: ``
21219
+ [65]: ``
21154
21220
  };
21155
21221
 
21156
21222
  const transformVHtml = (dir, node, context) => {
21157
21223
  const { exp, loc } = dir;
21158
21224
  if (!exp) {
21159
21225
  context.onError(
21160
- createDOMCompilerError(53, loc)
21226
+ createDOMCompilerError(54, loc)
21161
21227
  );
21162
21228
  }
21163
21229
  if (node.children.length) {
21164
21230
  context.onError(
21165
- createDOMCompilerError(54, loc)
21231
+ createDOMCompilerError(55, loc)
21166
21232
  );
21167
21233
  node.children.length = 0;
21168
21234
  }
@@ -21180,12 +21246,12 @@ const transformVText = (dir, node, context) => {
21180
21246
  const { exp, loc } = dir;
21181
21247
  if (!exp) {
21182
21248
  context.onError(
21183
- createDOMCompilerError(55, loc)
21249
+ createDOMCompilerError(56, loc)
21184
21250
  );
21185
21251
  }
21186
21252
  if (node.children.length) {
21187
21253
  context.onError(
21188
- createDOMCompilerError(56, loc)
21254
+ createDOMCompilerError(57, loc)
21189
21255
  );
21190
21256
  node.children.length = 0;
21191
21257
  }
@@ -21211,7 +21277,7 @@ const transformModel = (dir, node, context) => {
21211
21277
  if (dir.arg) {
21212
21278
  context.onError(
21213
21279
  createDOMCompilerError(
21214
- 58,
21280
+ 59,
21215
21281
  dir.arg.loc
21216
21282
  )
21217
21283
  );
@@ -21221,7 +21287,7 @@ const transformModel = (dir, node, context) => {
21221
21287
  if (value && isStaticArgOf(value.arg, "value")) {
21222
21288
  context.onError(
21223
21289
  createDOMCompilerError(
21224
- 60,
21290
+ 61,
21225
21291
  value.loc
21226
21292
  )
21227
21293
  );
@@ -21249,7 +21315,7 @@ const transformModel = (dir, node, context) => {
21249
21315
  isInvalidType = true;
21250
21316
  context.onError(
21251
21317
  createDOMCompilerError(
21252
- 59,
21318
+ 60,
21253
21319
  dir.loc
21254
21320
  )
21255
21321
  );
@@ -21275,7 +21341,7 @@ const transformModel = (dir, node, context) => {
21275
21341
  } else {
21276
21342
  context.onError(
21277
21343
  createDOMCompilerError(
21278
- 57,
21344
+ 58,
21279
21345
  dir.loc
21280
21346
  )
21281
21347
  );
@@ -21386,7 +21452,7 @@ const transformShow = (dir, node, context) => {
21386
21452
  const { exp, loc } = dir;
21387
21453
  if (!exp) {
21388
21454
  context.onError(
21389
- createDOMCompilerError(61, loc)
21455
+ createDOMCompilerError(62, loc)
21390
21456
  );
21391
21457
  }
21392
21458
  return {
@@ -21410,7 +21476,7 @@ function postTransformTransition(node, onError, hasMultipleChildren = defaultHas
21410
21476
  }
21411
21477
  if (hasMultipleChildren(node)) {
21412
21478
  onError(
21413
- createDOMCompilerError(62, {
21479
+ createDOMCompilerError(63, {
21414
21480
  start: node.children[0].loc.start,
21415
21481
  end: node.children[node.children.length - 1].loc.end,
21416
21482
  source: ""
@@ -21445,7 +21511,7 @@ const ignoreSideEffectTags = (node, context) => {
21445
21511
  if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
21446
21512
  !!(process.env.NODE_ENV !== "production") && context.onError(
21447
21513
  createDOMCompilerError(
21448
- 63,
21514
+ 64,
21449
21515
  node.loc
21450
21516
  )
21451
21517
  );