pome-ui 2.0.0-preview28 → 2.0.0-preview29

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/pome-ui.dev.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Vue
2
2
  /**
3
- * vue v3.5.8
3
+ * vue v3.5.12
4
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
5
  * @license MIT
6
6
  **/
@@ -110,6 +110,12 @@ var Vue = (function (exports) {
110
110
  const getGlobalThis = () => {
111
111
  return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
112
112
  };
113
+ function genCacheKey(source, options) {
114
+ return source + JSON.stringify(
115
+ options,
116
+ (_, val) => typeof val === "function" ? val.toString() : val
117
+ );
118
+ }
113
119
 
114
120
  const PatchFlagNames = {
115
121
  [1]: `TEXT`,
@@ -628,8 +634,14 @@ var Vue = (function (exports) {
628
634
  }
629
635
  let batchDepth = 0;
630
636
  let batchedSub;
631
- function batch(sub) {
637
+ let batchedComputed;
638
+ function batch(sub, isComputed = false) {
632
639
  sub.flags |= 8;
640
+ if (isComputed) {
641
+ sub.next = batchedComputed;
642
+ batchedComputed = sub;
643
+ return;
644
+ }
633
645
  sub.next = batchedSub;
634
646
  batchedSub = sub;
635
647
  }
@@ -640,6 +652,16 @@ var Vue = (function (exports) {
640
652
  if (--batchDepth > 0) {
641
653
  return;
642
654
  }
655
+ if (batchedComputed) {
656
+ let e = batchedComputed;
657
+ batchedComputed = void 0;
658
+ while (e) {
659
+ const next = e.next;
660
+ e.next = void 0;
661
+ e.flags &= ~8;
662
+ e = next;
663
+ }
664
+ }
643
665
  let error;
644
666
  while (batchedSub) {
645
667
  let e = batchedSub;
@@ -668,7 +690,7 @@ var Vue = (function (exports) {
668
690
  link.dep.activeLink = link;
669
691
  }
670
692
  }
671
- function cleanupDeps(sub, fromComputed = false) {
693
+ function cleanupDeps(sub) {
672
694
  let head;
673
695
  let tail = sub.depsTail;
674
696
  let link = tail;
@@ -676,7 +698,7 @@ var Vue = (function (exports) {
676
698
  const prev = link.prevDep;
677
699
  if (link.version === -1) {
678
700
  if (link === tail) tail = prev;
679
- removeSub(link, fromComputed);
701
+ removeSub(link);
680
702
  removeDep(link);
681
703
  } else {
682
704
  head = link;
@@ -731,11 +753,11 @@ var Vue = (function (exports) {
731
753
  } finally {
732
754
  activeSub = prevSub;
733
755
  shouldTrack = prevShouldTrack;
734
- cleanupDeps(computed, true);
756
+ cleanupDeps(computed);
735
757
  computed.flags &= ~2;
736
758
  }
737
759
  }
738
- function removeSub(link, fromComputed = false) {
760
+ function removeSub(link, soft = false) {
739
761
  const { dep, prevSub, nextSub } = link;
740
762
  if (prevSub) {
741
763
  prevSub.nextSub = nextSub;
@@ -745,23 +767,21 @@ var Vue = (function (exports) {
745
767
  nextSub.prevSub = prevSub;
746
768
  link.nextSub = void 0;
747
769
  }
748
- if (dep.subs === link) {
749
- dep.subs = prevSub;
750
- }
751
770
  if (dep.subsHead === link) {
752
771
  dep.subsHead = nextSub;
753
772
  }
754
- if (!dep.subs) {
755
- if (dep.computed) {
773
+ if (dep.subs === link) {
774
+ dep.subs = prevSub;
775
+ if (!prevSub && dep.computed) {
756
776
  dep.computed.flags &= ~4;
757
777
  for (let l = dep.computed.deps; l; l = l.nextDep) {
758
778
  removeSub(l, true);
759
779
  }
760
- } else if (dep.map && !fromComputed) {
761
- dep.map.delete(dep.key);
762
- if (!dep.map.size) targetMap.delete(dep.target);
763
780
  }
764
781
  }
782
+ if (!soft && !--dep.sc && dep.map) {
783
+ dep.map.delete(dep.key);
784
+ }
765
785
  }
766
786
  function removeDep(link) {
767
787
  const { prevDep, nextDep } = link;
@@ -843,9 +863,12 @@ var Vue = (function (exports) {
843
863
  /**
844
864
  * For object property deps cleanup
845
865
  */
846
- this.target = void 0;
847
866
  this.map = void 0;
848
867
  this.key = void 0;
868
+ /**
869
+ * Subscriber counter
870
+ */
871
+ this.sc = 0;
849
872
  {
850
873
  this.subsHead = void 0;
851
874
  }
@@ -864,9 +887,7 @@ var Vue = (function (exports) {
864
887
  activeSub.depsTail.nextDep = link;
865
888
  activeSub.depsTail = link;
866
889
  }
867
- if (activeSub.flags & 4) {
868
- addSub(link);
869
- }
890
+ addSub(link);
870
891
  } else if (link.version === -1) {
871
892
  link.version = this.version;
872
893
  if (link.nextDep) {
@@ -930,22 +951,25 @@ var Vue = (function (exports) {
930
951
  }
931
952
  }
932
953
  function addSub(link) {
933
- const computed = link.dep.computed;
934
- if (computed && !link.dep.subs) {
935
- computed.flags |= 4 | 16;
936
- for (let l = computed.deps; l; l = l.nextDep) {
937
- addSub(l);
954
+ link.dep.sc++;
955
+ if (link.sub.flags & 4) {
956
+ const computed = link.dep.computed;
957
+ if (computed && !link.dep.subs) {
958
+ computed.flags |= 4 | 16;
959
+ for (let l = computed.deps; l; l = l.nextDep) {
960
+ addSub(l);
961
+ }
938
962
  }
963
+ const currentTail = link.dep.subs;
964
+ if (currentTail !== link) {
965
+ link.prevSub = currentTail;
966
+ if (currentTail) currentTail.nextSub = link;
967
+ }
968
+ if (link.dep.subsHead === void 0) {
969
+ link.dep.subsHead = link;
970
+ }
971
+ link.dep.subs = link;
939
972
  }
940
- const currentTail = link.dep.subs;
941
- if (currentTail !== link) {
942
- link.prevSub = currentTail;
943
- if (currentTail) currentTail.nextSub = link;
944
- }
945
- if (link.dep.subsHead === void 0) {
946
- link.dep.subsHead = link;
947
- }
948
- link.dep.subs = link;
949
973
  }
950
974
  const targetMap = /* @__PURE__ */ new WeakMap();
951
975
  const ITERATE_KEY = Symbol(
@@ -966,7 +990,6 @@ var Vue = (function (exports) {
966
990
  let dep = depsMap.get(key);
967
991
  if (!dep) {
968
992
  depsMap.set(key, dep = new Dep());
969
- dep.target = target;
970
993
  dep.map = depsMap;
971
994
  dep.key = key;
972
995
  }
@@ -1013,7 +1036,7 @@ var Vue = (function (exports) {
1013
1036
  }
1014
1037
  });
1015
1038
  } else {
1016
- if (key !== void 0) {
1039
+ if (key !== void 0 || depsMap.has(void 0)) {
1017
1040
  run(depsMap.get(key));
1018
1041
  }
1019
1042
  if (isArrayIndex) {
@@ -1049,8 +1072,8 @@ var Vue = (function (exports) {
1049
1072
  endBatch();
1050
1073
  }
1051
1074
  function getDepFromReactive(object, key) {
1052
- var _a;
1053
- return (_a = targetMap.get(object)) == null ? void 0 : _a.get(key);
1075
+ const depMap = targetMap.get(object);
1076
+ return depMap && depMap.get(key);
1054
1077
  }
1055
1078
 
1056
1079
  function reactiveReadArray(array) {
@@ -1388,117 +1411,6 @@ var Vue = (function (exports) {
1388
1411
 
1389
1412
  const toShallow = (value) => value;
1390
1413
  const getProto = (v) => Reflect.getPrototypeOf(v);
1391
- function get(target, key, isReadonly2 = false, isShallow2 = false) {
1392
- target = target["__v_raw"];
1393
- const rawTarget = toRaw(target);
1394
- const rawKey = toRaw(key);
1395
- if (!isReadonly2) {
1396
- if (hasChanged(key, rawKey)) {
1397
- track(rawTarget, "get", key);
1398
- }
1399
- track(rawTarget, "get", rawKey);
1400
- }
1401
- const { has: has2 } = getProto(rawTarget);
1402
- const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
1403
- if (has2.call(rawTarget, key)) {
1404
- return wrap(target.get(key));
1405
- } else if (has2.call(rawTarget, rawKey)) {
1406
- return wrap(target.get(rawKey));
1407
- } else if (target !== rawTarget) {
1408
- target.get(key);
1409
- }
1410
- }
1411
- function has(key, isReadonly2 = false) {
1412
- const target = this["__v_raw"];
1413
- const rawTarget = toRaw(target);
1414
- const rawKey = toRaw(key);
1415
- if (!isReadonly2) {
1416
- if (hasChanged(key, rawKey)) {
1417
- track(rawTarget, "has", key);
1418
- }
1419
- track(rawTarget, "has", rawKey);
1420
- }
1421
- return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
1422
- }
1423
- function size(target, isReadonly2 = false) {
1424
- target = target["__v_raw"];
1425
- !isReadonly2 && track(toRaw(target), "iterate", ITERATE_KEY);
1426
- return Reflect.get(target, "size", target);
1427
- }
1428
- function add(value, _isShallow = false) {
1429
- if (!_isShallow && !isShallow(value) && !isReadonly(value)) {
1430
- value = toRaw(value);
1431
- }
1432
- const target = toRaw(this);
1433
- const proto = getProto(target);
1434
- const hadKey = proto.has.call(target, value);
1435
- if (!hadKey) {
1436
- target.add(value);
1437
- trigger(target, "add", value, value);
1438
- }
1439
- return this;
1440
- }
1441
- function set(key, value, _isShallow = false) {
1442
- if (!_isShallow && !isShallow(value) && !isReadonly(value)) {
1443
- value = toRaw(value);
1444
- }
1445
- const target = toRaw(this);
1446
- const { has: has2, get: get2 } = getProto(target);
1447
- let hadKey = has2.call(target, key);
1448
- if (!hadKey) {
1449
- key = toRaw(key);
1450
- hadKey = has2.call(target, key);
1451
- } else {
1452
- checkIdentityKeys(target, has2, key);
1453
- }
1454
- const oldValue = get2.call(target, key);
1455
- target.set(key, value);
1456
- if (!hadKey) {
1457
- trigger(target, "add", key, value);
1458
- } else if (hasChanged(value, oldValue)) {
1459
- trigger(target, "set", key, value, oldValue);
1460
- }
1461
- return this;
1462
- }
1463
- function deleteEntry(key) {
1464
- const target = toRaw(this);
1465
- const { has: has2, get: get2 } = getProto(target);
1466
- let hadKey = has2.call(target, key);
1467
- if (!hadKey) {
1468
- key = toRaw(key);
1469
- hadKey = has2.call(target, key);
1470
- } else {
1471
- checkIdentityKeys(target, has2, key);
1472
- }
1473
- const oldValue = get2 ? get2.call(target, key) : void 0;
1474
- const result = target.delete(key);
1475
- if (hadKey) {
1476
- trigger(target, "delete", key, void 0, oldValue);
1477
- }
1478
- return result;
1479
- }
1480
- function clear() {
1481
- const target = toRaw(this);
1482
- const hadItems = target.size !== 0;
1483
- const oldTarget = isMap(target) ? new Map(target) : new Set(target) ;
1484
- const result = target.clear();
1485
- if (hadItems) {
1486
- trigger(target, "clear", void 0, void 0, oldTarget);
1487
- }
1488
- return result;
1489
- }
1490
- function createForEach(isReadonly2, isShallow2) {
1491
- return function forEach(callback, thisArg) {
1492
- const observed = this;
1493
- const target = observed["__v_raw"];
1494
- const rawTarget = toRaw(target);
1495
- const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
1496
- !isReadonly2 && track(rawTarget, "iterate", ITERATE_KEY);
1497
- return target.forEach((value, key) => {
1498
- return callback.call(thisArg, wrap(value), wrap(key), observed);
1499
- });
1500
- };
1501
- }
1502
1414
  function createIterableMethod(method, isReadonly2, isShallow2) {
1503
1415
  return function(...args) {
1504
1416
  const target = this["__v_raw"];
@@ -1541,71 +1453,134 @@ var Vue = (function (exports) {
1541
1453
  return type === "delete" ? false : type === "clear" ? void 0 : this;
1542
1454
  };
1543
1455
  }
1544
- function createInstrumentations() {
1545
- const mutableInstrumentations2 = {
1546
- get(key) {
1547
- return get(this, key);
1548
- },
1549
- get size() {
1550
- return size(this);
1551
- },
1552
- has,
1553
- add,
1554
- set,
1555
- delete: deleteEntry,
1556
- clear,
1557
- forEach: createForEach(false, false)
1558
- };
1559
- const shallowInstrumentations2 = {
1560
- get(key) {
1561
- return get(this, key, false, true);
1562
- },
1563
- get size() {
1564
- return size(this);
1565
- },
1566
- has,
1567
- add(value) {
1568
- return add.call(this, value, true);
1569
- },
1570
- set(key, value) {
1571
- return set.call(this, key, value, true);
1572
- },
1573
- delete: deleteEntry,
1574
- clear,
1575
- forEach: createForEach(false, true)
1576
- };
1577
- const readonlyInstrumentations2 = {
1578
- get(key) {
1579
- return get(this, key, true);
1580
- },
1581
- get size() {
1582
- return size(this, true);
1583
- },
1584
- has(key) {
1585
- return has.call(this, key, true);
1586
- },
1587
- add: createReadonlyMethod("add"),
1588
- set: createReadonlyMethod("set"),
1589
- delete: createReadonlyMethod("delete"),
1590
- clear: createReadonlyMethod("clear"),
1591
- forEach: createForEach(true, false)
1592
- };
1593
- const shallowReadonlyInstrumentations2 = {
1456
+ function createInstrumentations(readonly, shallow) {
1457
+ const instrumentations = {
1594
1458
  get(key) {
1595
- return get(this, key, true, true);
1459
+ const target = this["__v_raw"];
1460
+ const rawTarget = toRaw(target);
1461
+ const rawKey = toRaw(key);
1462
+ if (!readonly) {
1463
+ if (hasChanged(key, rawKey)) {
1464
+ track(rawTarget, "get", key);
1465
+ }
1466
+ track(rawTarget, "get", rawKey);
1467
+ }
1468
+ const { has } = getProto(rawTarget);
1469
+ const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
1470
+ if (has.call(rawTarget, key)) {
1471
+ return wrap(target.get(key));
1472
+ } else if (has.call(rawTarget, rawKey)) {
1473
+ return wrap(target.get(rawKey));
1474
+ } else if (target !== rawTarget) {
1475
+ target.get(key);
1476
+ }
1596
1477
  },
1597
1478
  get size() {
1598
- return size(this, true);
1479
+ const target = this["__v_raw"];
1480
+ !readonly && track(toRaw(target), "iterate", ITERATE_KEY);
1481
+ return Reflect.get(target, "size", target);
1599
1482
  },
1600
1483
  has(key) {
1601
- return has.call(this, key, true);
1484
+ const target = this["__v_raw"];
1485
+ const rawTarget = toRaw(target);
1486
+ const rawKey = toRaw(key);
1487
+ if (!readonly) {
1488
+ if (hasChanged(key, rawKey)) {
1489
+ track(rawTarget, "has", key);
1490
+ }
1491
+ track(rawTarget, "has", rawKey);
1492
+ }
1493
+ return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
1602
1494
  },
1603
- add: createReadonlyMethod("add"),
1604
- set: createReadonlyMethod("set"),
1605
- delete: createReadonlyMethod("delete"),
1606
- clear: createReadonlyMethod("clear"),
1607
- forEach: createForEach(true, true)
1495
+ forEach(callback, thisArg) {
1496
+ const observed = this;
1497
+ const target = observed["__v_raw"];
1498
+ const rawTarget = toRaw(target);
1499
+ const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
1500
+ !readonly && track(rawTarget, "iterate", ITERATE_KEY);
1501
+ return target.forEach((value, key) => {
1502
+ return callback.call(thisArg, wrap(value), wrap(key), observed);
1503
+ });
1504
+ }
1608
1505
  };
1506
+ extend(
1507
+ instrumentations,
1508
+ readonly ? {
1509
+ add: createReadonlyMethod("add"),
1510
+ set: createReadonlyMethod("set"),
1511
+ delete: createReadonlyMethod("delete"),
1512
+ clear: createReadonlyMethod("clear")
1513
+ } : {
1514
+ add(value) {
1515
+ if (!shallow && !isShallow(value) && !isReadonly(value)) {
1516
+ value = toRaw(value);
1517
+ }
1518
+ const target = toRaw(this);
1519
+ const proto = getProto(target);
1520
+ const hadKey = proto.has.call(target, value);
1521
+ if (!hadKey) {
1522
+ target.add(value);
1523
+ trigger(target, "add", value, value);
1524
+ }
1525
+ return this;
1526
+ },
1527
+ set(key, value) {
1528
+ if (!shallow && !isShallow(value) && !isReadonly(value)) {
1529
+ value = toRaw(value);
1530
+ }
1531
+ const target = toRaw(this);
1532
+ const { has, get } = getProto(target);
1533
+ let hadKey = has.call(target, key);
1534
+ if (!hadKey) {
1535
+ key = toRaw(key);
1536
+ hadKey = has.call(target, key);
1537
+ } else {
1538
+ checkIdentityKeys(target, has, key);
1539
+ }
1540
+ const oldValue = get.call(target, key);
1541
+ target.set(key, value);
1542
+ if (!hadKey) {
1543
+ trigger(target, "add", key, value);
1544
+ } else if (hasChanged(value, oldValue)) {
1545
+ trigger(target, "set", key, value, oldValue);
1546
+ }
1547
+ return this;
1548
+ },
1549
+ delete(key) {
1550
+ const target = toRaw(this);
1551
+ const { has, get } = getProto(target);
1552
+ let hadKey = has.call(target, key);
1553
+ if (!hadKey) {
1554
+ key = toRaw(key);
1555
+ hadKey = has.call(target, key);
1556
+ } else {
1557
+ checkIdentityKeys(target, has, key);
1558
+ }
1559
+ const oldValue = get ? get.call(target, key) : void 0;
1560
+ const result = target.delete(key);
1561
+ if (hadKey) {
1562
+ trigger(target, "delete", key, void 0, oldValue);
1563
+ }
1564
+ return result;
1565
+ },
1566
+ clear() {
1567
+ const target = toRaw(this);
1568
+ const hadItems = target.size !== 0;
1569
+ const oldTarget = isMap(target) ? new Map(target) : new Set(target) ;
1570
+ const result = target.clear();
1571
+ if (hadItems) {
1572
+ trigger(
1573
+ target,
1574
+ "clear",
1575
+ void 0,
1576
+ void 0,
1577
+ oldTarget
1578
+ );
1579
+ }
1580
+ return result;
1581
+ }
1582
+ }
1583
+ );
1609
1584
  const iteratorMethods = [
1610
1585
  "keys",
1611
1586
  "values",
@@ -1613,30 +1588,12 @@ var Vue = (function (exports) {
1613
1588
  Symbol.iterator
1614
1589
  ];
1615
1590
  iteratorMethods.forEach((method) => {
1616
- mutableInstrumentations2[method] = createIterableMethod(method, false, false);
1617
- readonlyInstrumentations2[method] = createIterableMethod(method, true, false);
1618
- shallowInstrumentations2[method] = createIterableMethod(method, false, true);
1619
- shallowReadonlyInstrumentations2[method] = createIterableMethod(
1620
- method,
1621
- true,
1622
- true
1623
- );
1591
+ instrumentations[method] = createIterableMethod(method, readonly, shallow);
1624
1592
  });
1625
- return [
1626
- mutableInstrumentations2,
1627
- readonlyInstrumentations2,
1628
- shallowInstrumentations2,
1629
- shallowReadonlyInstrumentations2
1630
- ];
1593
+ return instrumentations;
1631
1594
  }
1632
- const [
1633
- mutableInstrumentations,
1634
- readonlyInstrumentations,
1635
- shallowInstrumentations,
1636
- shallowReadonlyInstrumentations
1637
- ] = /* @__PURE__ */ createInstrumentations();
1638
1595
  function createInstrumentationGetter(isReadonly2, shallow) {
1639
- const instrumentations = shallow ? isReadonly2 ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly2 ? readonlyInstrumentations : mutableInstrumentations;
1596
+ const instrumentations = createInstrumentations(isReadonly2, shallow);
1640
1597
  return (target, key, receiver) => {
1641
1598
  if (key === "__v_isReactive") {
1642
1599
  return !isReadonly2;
@@ -1664,9 +1621,9 @@ var Vue = (function (exports) {
1664
1621
  const shallowReadonlyCollectionHandlers = {
1665
1622
  get: /* @__PURE__ */ createInstrumentationGetter(true, true)
1666
1623
  };
1667
- function checkIdentityKeys(target, has2, key) {
1624
+ function checkIdentityKeys(target, has, key) {
1668
1625
  const rawKey = toRaw(key);
1669
- if (rawKey !== key && has2.call(target, rawKey)) {
1626
+ if (rawKey !== key && has.call(target, rawKey)) {
1670
1627
  const type = toRawType(target);
1671
1628
  warn$2(
1672
1629
  `Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
@@ -1986,6 +1943,10 @@ var Vue = (function (exports) {
1986
1943
  * @internal
1987
1944
  */
1988
1945
  this.globalVersion = globalVersion - 1;
1946
+ /**
1947
+ * @internal
1948
+ */
1949
+ this.next = void 0;
1989
1950
  // for backwards compat
1990
1951
  this.effect = this;
1991
1952
  this["__v_isReadonly"] = !setter;
@@ -1998,7 +1959,7 @@ var Vue = (function (exports) {
1998
1959
  this.flags |= 16;
1999
1960
  if (!(this.flags & 8) && // avoid infinite self recursion
2000
1961
  activeSub !== this) {
2001
- batch(this);
1962
+ batch(this, true);
2002
1963
  return true;
2003
1964
  }
2004
1965
  }
@@ -2520,10 +2481,8 @@ var Vue = (function (exports) {
2520
2481
  }
2521
2482
  }
2522
2483
 
2523
- let isFlushing = false;
2524
- let isFlushPending = false;
2525
2484
  const queue = [];
2526
- let flushIndex = 0;
2485
+ let flushIndex = -1;
2527
2486
  const pendingPostFlushCbs = [];
2528
2487
  let activePostFlushCbs = null;
2529
2488
  let postFlushIndex = 0;
@@ -2535,7 +2494,7 @@ var Vue = (function (exports) {
2535
2494
  return fn ? p.then(this ? fn.bind(this) : fn) : p;
2536
2495
  }
2537
2496
  function findInsertionIndex(id) {
2538
- let start = isFlushing ? flushIndex + 1 : 0;
2497
+ let start = flushIndex + 1;
2539
2498
  let end = queue.length;
2540
2499
  while (start < end) {
2541
2500
  const middle = start + end >>> 1;
@@ -2564,8 +2523,7 @@ var Vue = (function (exports) {
2564
2523
  }
2565
2524
  }
2566
2525
  function queueFlush() {
2567
- if (!isFlushing && !isFlushPending) {
2568
- isFlushPending = true;
2526
+ if (!currentFlushPromise) {
2569
2527
  currentFlushPromise = resolvedPromise.then(flushJobs);
2570
2528
  }
2571
2529
  }
@@ -2582,7 +2540,7 @@ var Vue = (function (exports) {
2582
2540
  }
2583
2541
  queueFlush();
2584
2542
  }
2585
- function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
2543
+ function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
2586
2544
  {
2587
2545
  seen = seen || /* @__PURE__ */ new Map();
2588
2546
  }
@@ -2638,8 +2596,6 @@ var Vue = (function (exports) {
2638
2596
  }
2639
2597
  const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
2640
2598
  function flushJobs(seen) {
2641
- isFlushPending = false;
2642
- isFlushing = true;
2643
2599
  {
2644
2600
  seen = seen || /* @__PURE__ */ new Map();
2645
2601
  }
@@ -2671,10 +2627,9 @@ var Vue = (function (exports) {
2671
2627
  job.flags &= ~1;
2672
2628
  }
2673
2629
  }
2674
- flushIndex = 0;
2630
+ flushIndex = -1;
2675
2631
  queue.length = 0;
2676
2632
  flushPostFlushCbs(seen);
2677
- isFlushing = false;
2678
2633
  currentFlushPromise = null;
2679
2634
  if (queue.length || pendingPostFlushCbs.length) {
2680
2635
  flushJobs(seen);
@@ -3094,7 +3049,7 @@ var Vue = (function (exports) {
3094
3049
  }
3095
3050
  if (!disabled) {
3096
3051
  mount(target, targetAnchor);
3097
- updateCssVars(n2);
3052
+ updateCssVars(n2, false);
3098
3053
  }
3099
3054
  } else if (!disabled) {
3100
3055
  warn$1(
@@ -3106,7 +3061,7 @@ var Vue = (function (exports) {
3106
3061
  };
3107
3062
  if (disabled) {
3108
3063
  mount(container, mainAnchor);
3109
- updateCssVars(n2);
3064
+ updateCssVars(n2, true);
3110
3065
  }
3111
3066
  if (isTeleportDeferred(n2.props)) {
3112
3067
  queuePostRenderEffect(mountToTarget, parentSuspense);
@@ -3196,7 +3151,7 @@ var Vue = (function (exports) {
3196
3151
  );
3197
3152
  }
3198
3153
  }
3199
- updateCssVars(n2);
3154
+ updateCssVars(n2, disabled);
3200
3155
  }
3201
3156
  },
3202
3157
  remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
@@ -3264,9 +3219,10 @@ var Vue = (function (exports) {
3264
3219
  querySelector
3265
3220
  );
3266
3221
  if (target) {
3222
+ const disabled = isTeleportDisabled(vnode.props);
3267
3223
  const targetNode = target._lpa || target.firstChild;
3268
3224
  if (vnode.shapeFlag & 16) {
3269
- if (isTeleportDisabled(vnode.props)) {
3225
+ if (disabled) {
3270
3226
  vnode.anchor = hydrateChildren(
3271
3227
  nextSibling(node),
3272
3228
  vnode,
@@ -3307,16 +3263,23 @@ var Vue = (function (exports) {
3307
3263
  );
3308
3264
  }
3309
3265
  }
3310
- updateCssVars(vnode);
3266
+ updateCssVars(vnode, disabled);
3311
3267
  }
3312
3268
  return vnode.anchor && nextSibling(vnode.anchor);
3313
3269
  }
3314
3270
  const Teleport = TeleportImpl;
3315
- function updateCssVars(vnode) {
3271
+ function updateCssVars(vnode, isDisabled) {
3316
3272
  const ctx = vnode.ctx;
3317
3273
  if (ctx && ctx.ut) {
3318
- let node = vnode.targetStart;
3319
- while (node && node !== vnode.targetAnchor) {
3274
+ let node, anchor;
3275
+ if (isDisabled) {
3276
+ node = vnode.el;
3277
+ anchor = vnode.anchor;
3278
+ } else {
3279
+ node = vnode.targetStart;
3280
+ anchor = vnode.targetAnchor;
3281
+ }
3282
+ while (node && node !== anchor) {
3320
3283
  if (node.nodeType === 1) node.setAttribute("data-v-owner", ctx.uid);
3321
3284
  node = node.nextSibling;
3322
3285
  }
@@ -3702,6 +3665,7 @@ var Vue = (function (exports) {
3702
3665
  `useId() is called when there is no active component instance to be associated with.`
3703
3666
  );
3704
3667
  }
3668
+ return "";
3705
3669
  }
3706
3670
  function markAsyncBoundary(instance) {
3707
3671
  instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
@@ -3765,8 +3729,15 @@ var Vue = (function (exports) {
3765
3729
  const setupState = owner.setupState;
3766
3730
  const rawSetupState = toRaw(setupState);
3767
3731
  const canSetSetupRef = setupState === EMPTY_OBJ ? () => false : (key) => {
3768
- if (knownTemplateRefs.has(rawSetupState[key])) {
3769
- return false;
3732
+ {
3733
+ if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {
3734
+ warn$1(
3735
+ `Template ref "${key}" used on a non-ref value. It will not work in the production build.`
3736
+ );
3737
+ }
3738
+ if (knownTemplateRefs.has(rawSetupState[key])) {
3739
+ return false;
3740
+ }
3770
3741
  }
3771
3742
  return hasOwn(rawSetupState, key);
3772
3743
  };
@@ -4063,7 +4034,11 @@ var Vue = (function (exports) {
4063
4034
  }
4064
4035
  let needCallTransitionHooks = false;
4065
4036
  if (isTemplateNode(el)) {
4066
- needCallTransitionHooks = needTransition(parentSuspense, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
4037
+ needCallTransitionHooks = needTransition(
4038
+ null,
4039
+ // no need check parentSuspense in hydration
4040
+ transition
4041
+ ) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
4067
4042
  const content = el.content.firstChild;
4068
4043
  if (needCallTransitionHooks) {
4069
4044
  transition.beforeEnter(content);
@@ -4456,6 +4431,8 @@ Server rendered element contains fewer child nodes than client vdom.`
4456
4431
  }
4457
4432
  }
4458
4433
 
4434
+ const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
4435
+ const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
4459
4436
  const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
4460
4437
  const id = requestIdleCallback(hydrate, { timeout });
4461
4438
  return () => cancelIdleCallback(id);
@@ -5152,12 +5129,13 @@ If this is a native custom element, make sure to exclude it from component resol
5152
5129
  }
5153
5130
  openBlock();
5154
5131
  const validSlotContent = slot && ensureValidVNode(slot(props));
5132
+ const slotKey = props.key || // slot content array of a dynamic conditional slot may have a branch
5133
+ // key attached in the `createSlots` helper, respect that
5134
+ validSlotContent && validSlotContent.key;
5155
5135
  const rendered = createBlock(
5156
5136
  Fragment,
5157
5137
  {
5158
- key: (props.key || // slot content array of a dynamic conditional slot may have a branch
5159
- // key attached in the `createSlots` helper, respect that
5160
- validSlotContent && validSlotContent.key || `_${name}`) + // #7256 force differentiate fallback content from actual content
5138
+ key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + // #7256 force differentiate fallback content from actual content
5161
5139
  (!validSlotContent && fallback ? "_fb" : "")
5162
5140
  },
5163
5141
  validSlotContent || (fallback ? fallback() : []),
@@ -6523,6 +6501,7 @@ If you want to remount the same app, move your app creation logic into a factory
6523
6501
  function validateProps(rawProps, props, instance) {
6524
6502
  const resolvedValues = toRaw(props);
6525
6503
  const options = instance.propsOptions[0];
6504
+ const camelizePropsKey = Object.keys(rawProps).map((key) => camelize(key));
6526
6505
  for (const key in options) {
6527
6506
  let opt = options[key];
6528
6507
  if (opt == null) continue;
@@ -6531,7 +6510,7 @@ If you want to remount the same app, move your app creation logic into a factory
6531
6510
  resolvedValues[key],
6532
6511
  opt,
6533
6512
  shallowReadonly(resolvedValues) ,
6534
- !hasOwn(rawProps, key) && !hasOwn(rawProps, hyphenate(key))
6513
+ !camelizePropsKey.includes(key)
6535
6514
  );
6536
6515
  }
6537
6516
  }
@@ -8369,19 +8348,19 @@ If you want to remount the same app, move your app creation logic into a factory
8369
8348
  warn$1(`useModel() called without active instance.`);
8370
8349
  return ref();
8371
8350
  }
8372
- if (!i.propsOptions[0][name]) {
8351
+ const camelizedName = camelize(name);
8352
+ if (!i.propsOptions[0][camelizedName]) {
8373
8353
  warn$1(`useModel() called with prop "${name}" which is not declared.`);
8374
8354
  return ref();
8375
8355
  }
8376
- const camelizedName = camelize(name);
8377
8356
  const hyphenatedName = hyphenate(name);
8378
- const modifiers = getModelModifiers(props, name);
8357
+ const modifiers = getModelModifiers(props, camelizedName);
8379
8358
  const res = customRef((track, trigger) => {
8380
8359
  let localValue;
8381
8360
  let prevSetValue = EMPTY_OBJ;
8382
8361
  let prevEmittedValue;
8383
8362
  watchSyncEffect(() => {
8384
- const propValue = props[name];
8363
+ const propValue = props[camelizedName];
8385
8364
  if (hasChanged(localValue, propValue)) {
8386
8365
  localValue = propValue;
8387
8366
  trigger();
@@ -9741,7 +9720,7 @@ Component that was made reactive: `,
9741
9720
  // #3666, avoid reference pollution when reusing vnode
9742
9721
  child.slice()
9743
9722
  );
9744
- } else if (typeof child === "object") {
9723
+ } else if (isVNode(child)) {
9745
9724
  return cloneIfMounted(child);
9746
9725
  } else {
9747
9726
  return createVNode(Text, null, String(child));
@@ -9996,9 +9975,9 @@ Component that was made reactive: `,
9996
9975
  }
9997
9976
  const { setup } = Component;
9998
9977
  if (setup) {
9978
+ pauseTracking();
9999
9979
  const setupContext = instance.setupContext = setup.length > 1 ? createSetupContext(instance) : null;
10000
9980
  const reset = setCurrentInstance(instance);
10001
- pauseTracking();
10002
9981
  const setupResult = callWithErrorHandling(
10003
9982
  setup,
10004
9983
  instance,
@@ -10008,10 +9987,13 @@ Component that was made reactive: `,
10008
9987
  setupContext
10009
9988
  ]
10010
9989
  );
9990
+ const isAsyncSetup = isPromise(setupResult);
10011
9991
  resetTracking();
10012
9992
  reset();
10013
- if (isPromise(setupResult)) {
10014
- if (!isAsyncWrapper(instance)) markAsyncBoundary(instance);
9993
+ if ((isAsyncSetup || instance.sp) && !isAsyncWrapper(instance)) {
9994
+ markAsyncBoundary(instance);
9995
+ }
9996
+ if (isAsyncSetup) {
10015
9997
  setupResult.then(unsetCurrentInstance, unsetCurrentInstance);
10016
9998
  if (isSSR) {
10017
9999
  return setupResult.then((resolvedResult) => {
@@ -10472,7 +10454,7 @@ Component that was made reactive: `,
10472
10454
  return true;
10473
10455
  }
10474
10456
 
10475
- const version = "3.5.8";
10457
+ const version = "3.5.12";
10476
10458
  const warn = warn$1 ;
10477
10459
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10478
10460
  const devtools = devtools$1 ;
@@ -11086,7 +11068,7 @@ Component that was made reactive: `,
11086
11068
  }
11087
11069
  }
11088
11070
 
11089
- function patchDOMProp(el, key, value, parentComponent) {
11071
+ function patchDOMProp(el, key, value, parentComponent, attrName) {
11090
11072
  if (key === "innerHTML" || key === "textContent") {
11091
11073
  if (value != null) {
11092
11074
  el[key] = key === "innerHTML" ? unsafeToTrustedHTML(value) : value;
@@ -11134,7 +11116,7 @@ Component that was made reactive: `,
11134
11116
  );
11135
11117
  }
11136
11118
  }
11137
- needRemove && el.removeAttribute(key);
11119
+ needRemove && el.removeAttribute(attrName || key);
11138
11120
  }
11139
11121
 
11140
11122
  function addEventListener(el, event, handler, options) {
@@ -11240,6 +11222,11 @@ Expected function or array of functions, received type ${typeof value}.`
11240
11222
  if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
11241
11223
  patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
11242
11224
  }
11225
+ } else if (
11226
+ // #11081 force set props for possible async custom element
11227
+ el._isVueCE && (/[A-Z]/.test(key) || !isString(nextValue))
11228
+ ) {
11229
+ patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
11243
11230
  } else {
11244
11231
  if (key === "true-value") {
11245
11232
  el._trueValue = nextValue;
@@ -11280,13 +11267,7 @@ Expected function or array of functions, received type ${typeof value}.`
11280
11267
  if (isNativeOn(key) && isString(value)) {
11281
11268
  return false;
11282
11269
  }
11283
- if (key in el) {
11284
- return true;
11285
- }
11286
- if (el._isVueCE && (/[A-Z]/.test(key) || !isString(value))) {
11287
- return true;
11288
- }
11289
- return false;
11270
+ return key in el;
11290
11271
  }
11291
11272
 
11292
11273
  const REMOVAL = {};
@@ -11959,6 +11940,7 @@ Expected function or array of functions, received type ${typeof value}.`
11959
11940
  } else if (isSet(value)) {
11960
11941
  checked = value.has(vnode.props.value);
11961
11942
  } else {
11943
+ if (value === oldValue) return;
11962
11944
  checked = looseEqual(value, getCheckboxValue(el, true));
11963
11945
  }
11964
11946
  if (el.checked !== checked) {
@@ -12001,19 +11983,19 @@ Expected function or array of functions, received type ${typeof value}.`
12001
11983
  },
12002
11984
  // set value in mounted & updated because <select> relies on its children
12003
11985
  // <option>s.
12004
- mounted(el, { value, modifiers: { number } }) {
11986
+ mounted(el, { value }) {
12005
11987
  setSelected(el, value);
12006
11988
  },
12007
11989
  beforeUpdate(el, _binding, vnode) {
12008
11990
  el[assignKey] = getModelAssigner(vnode);
12009
11991
  },
12010
- updated(el, { value, modifiers: { number } }) {
11992
+ updated(el, { value }) {
12011
11993
  if (!el._assigning) {
12012
11994
  setSelected(el, value);
12013
11995
  }
12014
11996
  }
12015
11997
  };
12016
- function setSelected(el, value, number) {
11998
+ function setSelected(el, value) {
12017
11999
  const isMultiple = el.multiple;
12018
12000
  const isArrayValue = isArray(value);
12019
12001
  if (isMultiple && !isArrayValue && !isSet(value)) {
@@ -14237,6 +14219,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
14237
14219
  source: end == null ? end : getSlice(start, end)
14238
14220
  };
14239
14221
  }
14222
+ function cloneLoc(loc) {
14223
+ return getLoc(loc.start.offset, loc.end.offset);
14224
+ }
14240
14225
  function setLocEnd(loc, end) {
14241
14226
  loc.end = tokenizer.getPos(end);
14242
14227
  loc.source = getSlice(loc.start.offset, end);
@@ -15581,7 +15566,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
15581
15566
  const branch = createIfBranch(node, dir);
15582
15567
  const ifNode = {
15583
15568
  type: 9,
15584
- loc: node.loc,
15569
+ loc: cloneLoc(node.loc),
15585
15570
  branches: [branch]
15586
15571
  };
15587
15572
  context.replaceNode(ifNode);
@@ -17841,15 +17826,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
17841
17826
  {
17842
17827
  initDev();
17843
17828
  }
17844
- const compileCache = /* @__PURE__ */ new WeakMap();
17845
- function getCache(options) {
17846
- let c = compileCache.get(options != null ? options : EMPTY_OBJ);
17847
- if (!c) {
17848
- c = /* @__PURE__ */ Object.create(null);
17849
- compileCache.set(options != null ? options : EMPTY_OBJ, c);
17850
- }
17851
- return c;
17852
- }
17829
+ const compileCache = /* @__PURE__ */ Object.create(null);
17853
17830
  function compileToFunction(template, options) {
17854
17831
  if (!isString(template)) {
17855
17832
  if (template.nodeType) {
@@ -17859,9 +17836,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
17859
17836
  return NOOP;
17860
17837
  }
17861
17838
  }
17862
- const key = template;
17863
- const cache = getCache(options);
17864
- const cached = cache[key];
17839
+ const key = genCacheKey(template, options);
17840
+ const cached = compileCache[key];
17865
17841
  if (cached) {
17866
17842
  return cached;
17867
17843
  }
@@ -17896,7 +17872,7 @@ ${codeFrame}` : message);
17896
17872
  }
17897
17873
  const render = new Function(code)() ;
17898
17874
  render._rc = true;
17899
- return cache[key] = render;
17875
+ return compileCache[key] = render;
17900
17876
  }
17901
17877
  registerRuntimeCompiler(compileToFunction);
17902
17878