@vue/compat 3.5.1 → 3.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vue.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.1
2
+ * @vue/compat v3.5.3
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -761,7 +761,7 @@ function refreshComputed(computed) {
761
761
  shouldTrack = true;
762
762
  try {
763
763
  prepareDeps(computed);
764
- const value = computed.fn();
764
+ const value = computed.fn(computed._value);
765
765
  if (dep.version === 0 || hasChanged(value, computed._value)) {
766
766
  computed._value = value;
767
767
  dep.version++;
@@ -870,7 +870,7 @@ class Dep {
870
870
  }
871
871
  }
872
872
  track(debugInfo) {
873
- if (!activeSub || !shouldTrack) {
873
+ if (!activeSub || !shouldTrack || activeSub === this.computed) {
874
874
  return;
875
875
  }
876
876
  let link = this.activeLink;
@@ -1883,7 +1883,7 @@ function toValue(source) {
1883
1883
  return isFunction(source) ? source() : unref(source);
1884
1884
  }
1885
1885
  const shallowUnwrapHandlers = {
1886
- get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
1886
+ get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
1887
1887
  set: (target, key, value, receiver) => {
1888
1888
  const oldValue = target[key];
1889
1889
  if (isRef(oldValue) && !isRef(value)) {
@@ -2585,9 +2585,7 @@ function queueJob(job) {
2585
2585
  } else {
2586
2586
  queue.splice(findInsertionIndex(jobId), 0, job);
2587
2587
  }
2588
- if (!(job.flags & 4)) {
2589
- job.flags |= 1;
2590
- }
2588
+ job.flags |= 1;
2591
2589
  queueFlush();
2592
2590
  }
2593
2591
  }
@@ -2603,9 +2601,7 @@ function queuePostFlushCb(cb) {
2603
2601
  activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);
2604
2602
  } else if (!(cb.flags & 1)) {
2605
2603
  pendingPostFlushCbs.push(cb);
2606
- if (!(cb.flags & 4)) {
2607
- cb.flags |= 1;
2608
- }
2604
+ cb.flags |= 1;
2609
2605
  }
2610
2606
  } else {
2611
2607
  pendingPostFlushCbs.push(...cb);
@@ -2627,6 +2623,9 @@ function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
2627
2623
  }
2628
2624
  queue.splice(i, 1);
2629
2625
  i--;
2626
+ if (cb.flags & 4) {
2627
+ cb.flags &= ~1;
2628
+ }
2630
2629
  cb();
2631
2630
  cb.flags &= ~1;
2632
2631
  }
@@ -2651,6 +2650,9 @@ function flushPostFlushCbs(seen) {
2651
2650
  if (checkRecursiveUpdates(seen, cb)) {
2652
2651
  continue;
2653
2652
  }
2653
+ if (cb.flags & 4) {
2654
+ cb.flags &= ~1;
2655
+ }
2654
2656
  if (!(cb.flags & 8)) cb();
2655
2657
  cb.flags &= ~1;
2656
2658
  }
@@ -2673,6 +2675,9 @@ function flushJobs(seen) {
2673
2675
  if (check(job)) {
2674
2676
  continue;
2675
2677
  }
2678
+ if (job.flags & 4) {
2679
+ job.flags &= ~1;
2680
+ }
2676
2681
  callWithErrorHandling(
2677
2682
  job,
2678
2683
  job.i,
@@ -2682,6 +2687,12 @@ function flushJobs(seen) {
2682
2687
  }
2683
2688
  }
2684
2689
  } finally {
2690
+ for (; flushIndex < queue.length; flushIndex++) {
2691
+ const job = queue[flushIndex];
2692
+ if (job) {
2693
+ job.flags &= ~1;
2694
+ }
2695
+ }
2685
2696
  flushIndex = 0;
2686
2697
  queue.length = 0;
2687
2698
  flushPostFlushCbs(seen);
@@ -3966,6 +3977,7 @@ const BaseTransitionImpl = {
3966
3977
  if (!(instance.job.flags & 8)) {
3967
3978
  instance.update();
3968
3979
  }
3980
+ delete leavingHooks.afterLeave;
3969
3981
  };
3970
3982
  return emptyPlaceholder(child);
3971
3983
  } else if (mode === "in-out" && innerChild.type !== Comment) {
@@ -4191,6 +4203,7 @@ function getInnerChild$1(vnode) {
4191
4203
  }
4192
4204
  function setTransitionHooks(vnode, hooks) {
4193
4205
  if (vnode.shapeFlag & 6 && vnode.component) {
4206
+ vnode.transition = hooks;
4194
4207
  setTransitionHooks(vnode.component.subTree, hooks);
4195
4208
  } else if (vnode.shapeFlag & 128) {
4196
4209
  vnode.ssContent.transition = hooks.clone(vnode.ssContent);
@@ -4235,7 +4248,7 @@ function defineComponent(options, extraOptions) {
4235
4248
  function useId() {
4236
4249
  const i = getCurrentInstance();
4237
4250
  if (i) {
4238
- return (i.appContext.config.idPrefix || "v") + ":" + i.ids[0] + i.ids[1]++;
4251
+ return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
4239
4252
  } else {
4240
4253
  warn$1(
4241
4254
  `useId() is called when there is no active component instance to be associated with.`
@@ -4246,6 +4259,34 @@ function markAsyncBoundary(instance) {
4246
4259
  instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
4247
4260
  }
4248
4261
 
4262
+ const knownTemplateRefs = /* @__PURE__ */ new WeakSet();
4263
+ function useTemplateRef(key) {
4264
+ const i = getCurrentInstance();
4265
+ const r = shallowRef(null);
4266
+ if (i) {
4267
+ const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
4268
+ let desc;
4269
+ if ((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
4270
+ warn$1(`useTemplateRef('${key}') already exists.`);
4271
+ } else {
4272
+ Object.defineProperty(refs, key, {
4273
+ enumerable: true,
4274
+ get: () => r.value,
4275
+ set: (val) => r.value = val
4276
+ });
4277
+ }
4278
+ } else {
4279
+ warn$1(
4280
+ `useTemplateRef() is called when there is no active component instance to be associated with.`
4281
+ );
4282
+ }
4283
+ const ret = readonly(r) ;
4284
+ {
4285
+ knownTemplateRefs.add(ret);
4286
+ }
4287
+ return ret;
4288
+ }
4289
+
4249
4290
  function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
4250
4291
  if (isArray(rawRef)) {
4251
4292
  rawRef.forEach(
@@ -4274,7 +4315,13 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
4274
4315
  const oldRef = oldRawRef && oldRawRef.r;
4275
4316
  const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
4276
4317
  const setupState = owner.setupState;
4277
- const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
4318
+ const rawSetupState = toRaw(setupState);
4319
+ const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => {
4320
+ if (knownTemplateRefs.has(rawSetupState[key])) {
4321
+ return false;
4322
+ }
4323
+ return hasOwn(rawSetupState, key);
4324
+ };
4278
4325
  if (oldRef != null && oldRef !== ref) {
4279
4326
  if (isString(oldRef)) {
4280
4327
  refs[oldRef] = null;
@@ -5331,7 +5378,7 @@ const KeepAliveImpl = {
5331
5378
  return () => {
5332
5379
  pendingCacheKey = null;
5333
5380
  if (!slots.default) {
5334
- return null;
5381
+ return current = null;
5335
5382
  }
5336
5383
  const children = slots.default();
5337
5384
  const rawVNode = children[0];
@@ -7106,7 +7153,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7106
7153
  return vm;
7107
7154
  }
7108
7155
  }
7109
- Vue.version = `2.6.14-compat:${"3.5.1"}`;
7156
+ Vue.version = `2.6.14-compat:${"3.5.3"}`;
7110
7157
  Vue.config = singletonApp.config;
7111
7158
  Vue.use = (plugin, ...options) => {
7112
7159
  if (plugin && isFunction(plugin.install)) {
@@ -9011,7 +9058,7 @@ function baseCreateRenderer(options, createHydrationFns) {
9011
9058
  endMeasure(instance, `hydrate`);
9012
9059
  }
9013
9060
  };
9014
- if (isAsyncWrapperVNode) {
9061
+ if (isAsyncWrapperVNode && type.__asyncHydrate) {
9015
9062
  type.__asyncHydrate(
9016
9063
  el,
9017
9064
  instance,
@@ -10360,7 +10407,7 @@ function renderComponentRoot(instance) {
10360
10407
  `Component inside <Transition> renders non-element root node that cannot be animated.`
10361
10408
  );
10362
10409
  }
10363
- root.transition = vnode.transition;
10410
+ setTransitionHooks(root, vnode.transition);
10364
10411
  }
10365
10412
  if (setRoot) {
10366
10413
  setRoot(root);
@@ -10854,7 +10901,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
10854
10901
  };
10855
10902
  }
10856
10903
  if (activeBranch) {
10857
- if (parentNode(activeBranch.el) !== suspense.hiddenContainer) {
10904
+ if (parentNode(activeBranch.el) === container2) {
10858
10905
  anchor = next(activeBranch);
10859
10906
  }
10860
10907
  unmount(activeBranch, parentComponent2, suspense, true);
@@ -11994,29 +12041,6 @@ const computed = (getterOrOptions, debugOptions) => {
11994
12041
  return c;
11995
12042
  };
11996
12043
 
11997
- function useTemplateRef(key) {
11998
- const i = getCurrentInstance();
11999
- const r = shallowRef(null);
12000
- if (i) {
12001
- const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
12002
- let desc;
12003
- if ((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
12004
- warn$1(`useTemplateRef('${key}') already exists.`);
12005
- } else {
12006
- Object.defineProperty(refs, key, {
12007
- enumerable: true,
12008
- get: () => r.value,
12009
- set: (val) => r.value = val
12010
- });
12011
- }
12012
- } else {
12013
- warn$1(
12014
- `useTemplateRef() is called when there is no active component instance to be associated with.`
12015
- );
12016
- }
12017
- return readonly(r) ;
12018
- }
12019
-
12020
12044
  function h(type, propsOrChildren, children) {
12021
12045
  const l = arguments.length;
12022
12046
  if (l === 2) {
@@ -12242,7 +12266,7 @@ function isMemoSame(cached, memo) {
12242
12266
  return true;
12243
12267
  }
12244
12268
 
12245
- const version = "3.5.1";
12269
+ const version = "3.5.3";
12246
12270
  const warn = warn$1 ;
12247
12271
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12248
12272
  const devtools = devtools$1 ;
@@ -12255,7 +12279,9 @@ const _ssrUtils = {
12255
12279
  isVNode: isVNode,
12256
12280
  normalizeVNode,
12257
12281
  getComponentPublicInstance,
12258
- ensureValidVNode
12282
+ ensureValidVNode,
12283
+ pushWarningContext,
12284
+ popWarningContext
12259
12285
  };
12260
12286
  const ssrUtils = _ssrUtils ;
12261
12287
  const resolveFilter = resolveFilter$1 ;
@@ -16395,7 +16421,7 @@ const tokenizer = new Tokenizer(stack, {
16395
16421
  rawName: raw,
16396
16422
  exp: void 0,
16397
16423
  arg: void 0,
16398
- modifiers: raw === "." ? ["prop"] : [],
16424
+ modifiers: raw === "." ? [createSimpleExpression("prop")] : [],
16399
16425
  loc: getLoc(start)
16400
16426
  };
16401
16427
  if (name === "pre") {
@@ -16438,7 +16464,8 @@ const tokenizer = new Tokenizer(stack, {
16438
16464
  setLocEnd(arg.loc, end);
16439
16465
  }
16440
16466
  } else {
16441
- currentProp.modifiers.push(mod);
16467
+ const exp = createSimpleExpression(mod, true, getLoc(start, end));
16468
+ currentProp.modifiers.push(exp);
16442
16469
  }
16443
16470
  },
16444
16471
  onattribdata(start, end) {
@@ -16504,7 +16531,9 @@ const tokenizer = new Tokenizer(stack, {
16504
16531
  currentProp.forParseResult = parseForExpression(currentProp.exp);
16505
16532
  }
16506
16533
  let syncIndex = -1;
16507
- if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.indexOf("sync")) > -1 && checkCompatEnabled(
16534
+ if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.findIndex(
16535
+ (mod) => mod.content === "sync"
16536
+ )) > -1 && checkCompatEnabled(
16508
16537
  "COMPILER_V_BIND_SYNC",
16509
16538
  currentOptions,
16510
16539
  currentProp.loc,
@@ -18896,7 +18925,7 @@ const transformBind = (dir, _node, context) => {
18896
18925
  } else if (!arg.isStatic) {
18897
18926
  arg.content = `${arg.content} || ""`;
18898
18927
  }
18899
- if (modifiers.includes("camel")) {
18928
+ if (modifiers.some((mod) => mod.content === "camel")) {
18900
18929
  if (arg.type === 4) {
18901
18930
  if (arg.isStatic) {
18902
18931
  arg.content = camelize(arg.content);
@@ -18909,10 +18938,10 @@ const transformBind = (dir, _node, context) => {
18909
18938
  }
18910
18939
  }
18911
18940
  if (!context.inSSR) {
18912
- if (modifiers.includes("prop")) {
18941
+ if (modifiers.some((mod) => mod.content === "prop")) {
18913
18942
  injectPrefix(arg, ".");
18914
18943
  }
18915
- if (modifiers.includes("attr")) {
18944
+ if (modifiers.some((mod) => mod.content === "attr")) {
18916
18945
  injectPrefix(arg, "^");
18917
18946
  }
18918
18947
  }
@@ -19853,7 +19882,7 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
19853
19882
  }
19854
19883
  continue;
19855
19884
  }
19856
- if (isVBind && modifiers.includes("prop")) {
19885
+ if (isVBind && modifiers.some((mod) => mod.content === "prop")) {
19857
19886
  patchFlag |= 32;
19858
19887
  }
19859
19888
  const directiveTransform = context.directiveTransforms[name];
@@ -20419,7 +20448,7 @@ const transformModel$1 = (dir, node, context) => {
20419
20448
  props[1].value = context.cache(props[1].value);
20420
20449
  }
20421
20450
  if (dir.modifiers.length && node.tagType === 1) {
20422
- const modifiers = dir.modifiers.map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
20451
+ const modifiers = dir.modifiers.map((m) => m.content).map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
20423
20452
  const modifiersKey = arg ? isStaticExp(arg) ? `${arg.content}Modifiers` : createCompoundExpression([arg, ' + "Modifiers"']) : `modelModifiers`;
20424
20453
  props.push(
20425
20454
  createObjectProperty(
@@ -20957,7 +20986,7 @@ const resolveModifiers = (key, modifiers, context, loc) => {
20957
20986
  const nonKeyModifiers = [];
20958
20987
  const eventOptionModifiers = [];
20959
20988
  for (let i = 0; i < modifiers.length; i++) {
20960
- const modifier = modifiers[i];
20989
+ const modifier = modifiers[i].content;
20961
20990
  if (modifier === "native" && checkCompatEnabled(
20962
20991
  "COMPILER_V_ON_NATIVE",
20963
20992
  context,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.1
2
+ * @vue/compat v3.5.3
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -667,7 +667,7 @@ function refreshComputed(computed) {
667
667
  shouldTrack = true;
668
668
  try {
669
669
  prepareDeps(computed);
670
- const value = computed.fn();
670
+ const value = computed.fn(computed._value);
671
671
  if (dep.version === 0 || hasChanged(value, computed._value)) {
672
672
  computed._value = value;
673
673
  dep.version++;
@@ -773,7 +773,7 @@ class Dep {
773
773
  this.subs = void 0;
774
774
  }
775
775
  track(debugInfo) {
776
- if (!activeSub || !shouldTrack) {
776
+ if (!activeSub || !shouldTrack || activeSub === this.computed) {
777
777
  return;
778
778
  }
779
779
  let link = this.activeLink;
@@ -1694,7 +1694,7 @@ function toValue(source) {
1694
1694
  return isFunction(source) ? source() : unref(source);
1695
1695
  }
1696
1696
  const shallowUnwrapHandlers = {
1697
- get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
1697
+ get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
1698
1698
  set: (target, key, value, receiver) => {
1699
1699
  const oldValue = target[key];
1700
1700
  if (isRef(oldValue) && !isRef(value)) {
@@ -2063,6 +2063,10 @@ function traverse(value, depth = Infinity, seen) {
2063
2063
  return value;
2064
2064
  }
2065
2065
 
2066
+ function pushWarningContext(vnode) {
2067
+ }
2068
+ function popWarningContext() {
2069
+ }
2066
2070
  function assertNumber(val, type) {
2067
2071
  return;
2068
2072
  }
@@ -2232,9 +2236,7 @@ function queueJob(job) {
2232
2236
  } else {
2233
2237
  queue.splice(findInsertionIndex(jobId), 0, job);
2234
2238
  }
2235
- if (!(job.flags & 4)) {
2236
- job.flags |= 1;
2237
- }
2239
+ job.flags |= 1;
2238
2240
  queueFlush();
2239
2241
  }
2240
2242
  }
@@ -2250,9 +2252,7 @@ function queuePostFlushCb(cb) {
2250
2252
  activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);
2251
2253
  } else if (!(cb.flags & 1)) {
2252
2254
  pendingPostFlushCbs.push(cb);
2253
- if (!(cb.flags & 4)) {
2254
- cb.flags |= 1;
2255
- }
2255
+ cb.flags |= 1;
2256
2256
  }
2257
2257
  } else {
2258
2258
  pendingPostFlushCbs.push(...cb);
@@ -2268,6 +2268,9 @@ function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
2268
2268
  }
2269
2269
  queue.splice(i, 1);
2270
2270
  i--;
2271
+ if (cb.flags & 4) {
2272
+ cb.flags &= ~1;
2273
+ }
2271
2274
  cb();
2272
2275
  cb.flags &= ~1;
2273
2276
  }
@@ -2286,6 +2289,9 @@ function flushPostFlushCbs(seen) {
2286
2289
  activePostFlushCbs = deduped;
2287
2290
  for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
2288
2291
  const cb = activePostFlushCbs[postFlushIndex];
2292
+ if (cb.flags & 4) {
2293
+ cb.flags &= ~1;
2294
+ }
2289
2295
  if (!(cb.flags & 8)) cb();
2290
2296
  cb.flags &= ~1;
2291
2297
  }
@@ -2302,6 +2308,9 @@ function flushJobs(seen) {
2302
2308
  const job = queue[flushIndex];
2303
2309
  if (job && !(job.flags & 8)) {
2304
2310
  if (false) ;
2311
+ if (job.flags & 4) {
2312
+ job.flags &= ~1;
2313
+ }
2305
2314
  callWithErrorHandling(
2306
2315
  job,
2307
2316
  job.i,
@@ -2311,6 +2320,12 @@ function flushJobs(seen) {
2311
2320
  }
2312
2321
  }
2313
2322
  } finally {
2323
+ for (; flushIndex < queue.length; flushIndex++) {
2324
+ const job = queue[flushIndex];
2325
+ if (job) {
2326
+ job.flags &= ~1;
2327
+ }
2328
+ }
2314
2329
  flushIndex = 0;
2315
2330
  queue.length = 0;
2316
2331
  flushPostFlushCbs();
@@ -3054,6 +3069,7 @@ const BaseTransitionImpl = {
3054
3069
  if (!(instance.job.flags & 8)) {
3055
3070
  instance.update();
3056
3071
  }
3072
+ delete leavingHooks.afterLeave;
3057
3073
  };
3058
3074
  return emptyPlaceholder(child);
3059
3075
  } else if (mode === "in-out" && innerChild.type !== Comment) {
@@ -3269,6 +3285,7 @@ function getInnerChild$1(vnode) {
3269
3285
  }
3270
3286
  function setTransitionHooks(vnode, hooks) {
3271
3287
  if (vnode.shapeFlag & 6 && vnode.component) {
3288
+ vnode.transition = hooks;
3272
3289
  setTransitionHooks(vnode.component.subTree, hooks);
3273
3290
  } else if (vnode.shapeFlag & 128) {
3274
3291
  vnode.ssContent.transition = hooks.clone(vnode.ssContent);
@@ -3313,13 +3330,30 @@ function defineComponent(options, extraOptions) {
3313
3330
  function useId() {
3314
3331
  const i = getCurrentInstance();
3315
3332
  if (i) {
3316
- return (i.appContext.config.idPrefix || "v") + ":" + i.ids[0] + i.ids[1]++;
3333
+ return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
3317
3334
  }
3318
3335
  }
3319
3336
  function markAsyncBoundary(instance) {
3320
3337
  instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
3321
3338
  }
3322
3339
 
3340
+ function useTemplateRef(key) {
3341
+ const i = getCurrentInstance();
3342
+ const r = shallowRef(null);
3343
+ if (i) {
3344
+ const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
3345
+ {
3346
+ Object.defineProperty(refs, key, {
3347
+ enumerable: true,
3348
+ get: () => r.value,
3349
+ set: (val) => r.value = val
3350
+ });
3351
+ }
3352
+ }
3353
+ const ret = r;
3354
+ return ret;
3355
+ }
3356
+
3323
3357
  function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
3324
3358
  if (isArray(rawRef)) {
3325
3359
  rawRef.forEach(
@@ -3342,7 +3376,10 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
3342
3376
  const oldRef = oldRawRef && oldRawRef.r;
3343
3377
  const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
3344
3378
  const setupState = owner.setupState;
3345
- const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => hasOwn(setupState, key) && !(Object.getOwnPropertyDescriptor(refs, key) || EMPTY_OBJ).get;
3379
+ const rawSetupState = toRaw(setupState);
3380
+ const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => {
3381
+ return hasOwn(rawSetupState, key);
3382
+ };
3346
3383
  if (oldRef != null && oldRef !== ref) {
3347
3384
  if (isString(oldRef)) {
3348
3385
  refs[oldRef] = null;
@@ -4210,7 +4247,7 @@ const KeepAliveImpl = {
4210
4247
  return () => {
4211
4248
  pendingCacheKey = null;
4212
4249
  if (!slots.default) {
4213
- return null;
4250
+ return current = null;
4214
4251
  }
4215
4252
  const children = slots.default();
4216
4253
  const rawVNode = children[0];
@@ -5706,7 +5743,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5706
5743
  return vm;
5707
5744
  }
5708
5745
  }
5709
- Vue.version = `2.6.14-compat:${"3.5.1"}`;
5746
+ Vue.version = `2.6.14-compat:${"3.5.3"}`;
5710
5747
  Vue.config = singletonApp.config;
5711
5748
  Vue.use = (plugin, ...options) => {
5712
5749
  if (plugin && isFunction(plugin.install)) {
@@ -7233,7 +7270,7 @@ function baseCreateRenderer(options, createHydrationFns) {
7233
7270
  null
7234
7271
  );
7235
7272
  };
7236
- if (isAsyncWrapperVNode) {
7273
+ if (isAsyncWrapperVNode && type.__asyncHydrate) {
7237
7274
  type.__asyncHydrate(
7238
7275
  el,
7239
7276
  instance,
@@ -8389,7 +8426,7 @@ function renderComponentRoot(instance) {
8389
8426
  root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
8390
8427
  }
8391
8428
  if (vnode.transition) {
8392
- root.transition = vnode.transition;
8429
+ setTransitionHooks(root, vnode.transition);
8393
8430
  }
8394
8431
  {
8395
8432
  result = root;
@@ -8827,7 +8864,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
8827
8864
  };
8828
8865
  }
8829
8866
  if (activeBranch) {
8830
- if (parentNode(activeBranch.el) !== suspense.hiddenContainer) {
8867
+ if (parentNode(activeBranch.el) === container2) {
8831
8868
  anchor = next(activeBranch);
8832
8869
  }
8833
8870
  unmount(activeBranch, parentComponent2, suspense, true);
@@ -9773,22 +9810,6 @@ const computed = (getterOrOptions, debugOptions) => {
9773
9810
  return c;
9774
9811
  };
9775
9812
 
9776
- function useTemplateRef(key) {
9777
- const i = getCurrentInstance();
9778
- const r = shallowRef(null);
9779
- if (i) {
9780
- const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
9781
- {
9782
- Object.defineProperty(refs, key, {
9783
- enumerable: true,
9784
- get: () => r.value,
9785
- set: (val) => r.value = val
9786
- });
9787
- }
9788
- }
9789
- return r;
9790
- }
9791
-
9792
9813
  function h(type, propsOrChildren, children) {
9793
9814
  const l = arguments.length;
9794
9815
  if (l === 2) {
@@ -9842,7 +9863,7 @@ function isMemoSame(cached, memo) {
9842
9863
  return true;
9843
9864
  }
9844
9865
 
9845
- const version = "3.5.1";
9866
+ const version = "3.5.3";
9846
9867
  const warn$1 = NOOP;
9847
9868
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9848
9869
  const devtools = void 0;
@@ -9855,7 +9876,9 @@ const _ssrUtils = {
9855
9876
  isVNode: isVNode,
9856
9877
  normalizeVNode,
9857
9878
  getComponentPublicInstance,
9858
- ensureValidVNode
9879
+ ensureValidVNode,
9880
+ pushWarningContext,
9881
+ popWarningContext
9859
9882
  };
9860
9883
  const ssrUtils = _ssrUtils ;
9861
9884
  const resolveFilter = resolveFilter$1 ;
@@ -13766,7 +13789,7 @@ const tokenizer = new Tokenizer(stack, {
13766
13789
  rawName: raw,
13767
13790
  exp: void 0,
13768
13791
  arg: void 0,
13769
- modifiers: raw === "." ? ["prop"] : [],
13792
+ modifiers: raw === "." ? [createSimpleExpression("prop")] : [],
13770
13793
  loc: getLoc(start)
13771
13794
  };
13772
13795
  if (name === "pre") {
@@ -13809,7 +13832,8 @@ const tokenizer = new Tokenizer(stack, {
13809
13832
  setLocEnd(arg.loc, end);
13810
13833
  }
13811
13834
  } else {
13812
- currentProp.modifiers.push(mod);
13835
+ const exp = createSimpleExpression(mod, true, getLoc(start, end));
13836
+ currentProp.modifiers.push(exp);
13813
13837
  }
13814
13838
  },
13815
13839
  onattribdata(start, end) {
@@ -13875,7 +13899,9 @@ const tokenizer = new Tokenizer(stack, {
13875
13899
  currentProp.forParseResult = parseForExpression(currentProp.exp);
13876
13900
  }
13877
13901
  let syncIndex = -1;
13878
- if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.indexOf("sync")) > -1 && checkCompatEnabled(
13902
+ if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.findIndex(
13903
+ (mod) => mod.content === "sync"
13904
+ )) > -1 && checkCompatEnabled(
13879
13905
  "COMPILER_V_BIND_SYNC",
13880
13906
  currentOptions,
13881
13907
  currentProp.loc,
@@ -16182,7 +16208,7 @@ const transformBind = (dir, _node, context) => {
16182
16208
  } else if (!arg.isStatic) {
16183
16209
  arg.content = `${arg.content} || ""`;
16184
16210
  }
16185
- if (modifiers.includes("camel")) {
16211
+ if (modifiers.some((mod) => mod.content === "camel")) {
16186
16212
  if (arg.type === 4) {
16187
16213
  if (arg.isStatic) {
16188
16214
  arg.content = camelize(arg.content);
@@ -16195,10 +16221,10 @@ const transformBind = (dir, _node, context) => {
16195
16221
  }
16196
16222
  }
16197
16223
  if (!context.inSSR) {
16198
- if (modifiers.includes("prop")) {
16224
+ if (modifiers.some((mod) => mod.content === "prop")) {
16199
16225
  injectPrefix(arg, ".");
16200
16226
  }
16201
- if (modifiers.includes("attr")) {
16227
+ if (modifiers.some((mod) => mod.content === "attr")) {
16202
16228
  injectPrefix(arg, "^");
16203
16229
  }
16204
16230
  }
@@ -17109,7 +17135,7 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
17109
17135
  }
17110
17136
  continue;
17111
17137
  }
17112
- if (isVBind && modifiers.includes("prop")) {
17138
+ if (isVBind && modifiers.some((mod) => mod.content === "prop")) {
17113
17139
  patchFlag |= 32;
17114
17140
  }
17115
17141
  const directiveTransform = context.directiveTransforms[name];
@@ -17672,7 +17698,7 @@ const transformModel$1 = (dir, node, context) => {
17672
17698
  props[1].value = context.cache(props[1].value);
17673
17699
  }
17674
17700
  if (dir.modifiers.length && node.tagType === 1) {
17675
- const modifiers = dir.modifiers.map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
17701
+ const modifiers = dir.modifiers.map((m) => m.content).map((m) => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`).join(`, `);
17676
17702
  const modifiersKey = arg ? isStaticExp(arg) ? `${arg.content}Modifiers` : createCompoundExpression([arg, ' + "Modifiers"']) : `modelModifiers`;
17677
17703
  props.push(
17678
17704
  createObjectProperty(
@@ -18187,7 +18213,7 @@ const resolveModifiers = (key, modifiers, context, loc) => {
18187
18213
  const nonKeyModifiers = [];
18188
18214
  const eventOptionModifiers = [];
18189
18215
  for (let i = 0; i < modifiers.length; i++) {
18190
- const modifier = modifiers[i];
18216
+ const modifier = modifiers[i].content;
18191
18217
  if (modifier === "native" && checkCompatEnabled(
18192
18218
  "COMPILER_V_ON_NATIVE",
18193
18219
  context)) {