@vue/runtime-core 3.3.3 → 3.3.5

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,6 +1,6 @@
1
1
  import { pauseTracking, resetTracking, isRef, toRaw, getCurrentScope, isShallow as isShallow$1, isReactive, ReactiveEffect, ref, shallowReadonly, track, reactive, shallowReactive, trigger, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1, isReadonly } from '@vue/reactivity';
2
2
  export { EffectScope, ReactiveEffect, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
3
- import { isString, isFunction, isPromise, isArray, NOOP, getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, looseToNumber, hyphenate, camelize, isObject, isOn, hasOwn, isModelListener, toNumber, hasChanged, remove, isSet, isMap, isPlainObject, isBuiltInDirective, invokeArrayFns, isRegExp, capitalize, isGloballyWhitelisted, NO, def, isReservedProp, EMPTY_ARR, toRawType, makeMap, normalizeClass, normalizeStyle } from '@vue/shared';
3
+ import { isString, isFunction, isPromise, isArray, NOOP, getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, looseToNumber, hyphenate, camelize, isObject, isOn, hasOwn, isModelListener, toNumber, hasChanged, remove, isSet, isMap, isPlainObject, isBuiltInDirective, invokeArrayFns, isRegExp, capitalize, isGloballyAllowed, NO, def, isReservedProp, EMPTY_ARR, toRawType, makeMap, normalizeClass, normalizeStyle } from '@vue/shared';
4
4
  export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
5
5
 
6
6
  const stack = [];
@@ -11,7 +11,7 @@ function popWarningContext() {
11
11
  stack.pop();
12
12
  }
13
13
  function warn(msg, ...args) {
14
- if (!(process.env.NODE_ENV !== "production"))
14
+ if (!!!(process.env.NODE_ENV !== "production"))
15
15
  return;
16
16
  pauseTracking();
17
17
  const instance = stack.length ? stack[stack.length - 1].component : null;
@@ -110,7 +110,7 @@ function formatProp(key, value, raw) {
110
110
  }
111
111
  }
112
112
  function assertNumber(val, type) {
113
- if (!(process.env.NODE_ENV !== "production"))
113
+ if (!!!(process.env.NODE_ENV !== "production"))
114
114
  return;
115
115
  if (val === void 0) {
116
116
  return;
@@ -182,7 +182,7 @@ function handleError(err, instance, type, throwInDev = true) {
182
182
  if (instance) {
183
183
  let cur = instance.parent;
184
184
  const exposedInstance = instance.proxy;
185
- const errorInfo = process.env.NODE_ENV !== "production" ? ErrorTypeStrings[type] : type;
185
+ const errorInfo = !!(process.env.NODE_ENV !== "production") ? ErrorTypeStrings[type] : type;
186
186
  while (cur) {
187
187
  const errorCapturedHooks = cur.ec;
188
188
  if (errorCapturedHooks) {
@@ -208,7 +208,7 @@ function handleError(err, instance, type, throwInDev = true) {
208
208
  logError(err, type, contextVNode, throwInDev);
209
209
  }
210
210
  function logError(err, type, contextVNode, throwInDev = true) {
211
- if (process.env.NODE_ENV !== "production") {
211
+ if (!!(process.env.NODE_ENV !== "production")) {
212
212
  const info = ErrorTypeStrings[type];
213
213
  if (contextVNode) {
214
214
  pushWarningContext(contextVNode);
@@ -290,13 +290,13 @@ function queuePostFlushCb(cb) {
290
290
  queueFlush();
291
291
  }
292
292
  function flushPreFlushCbs(seen, i = isFlushing ? flushIndex + 1 : 0) {
293
- if (process.env.NODE_ENV !== "production") {
293
+ if (!!(process.env.NODE_ENV !== "production")) {
294
294
  seen = seen || /* @__PURE__ */ new Map();
295
295
  }
296
296
  for (; i < queue.length; i++) {
297
297
  const cb = queue[i];
298
298
  if (cb && cb.pre) {
299
- if (process.env.NODE_ENV !== "production" && checkRecursiveUpdates(seen, cb)) {
299
+ if (!!(process.env.NODE_ENV !== "production") && checkRecursiveUpdates(seen, cb)) {
300
300
  continue;
301
301
  }
302
302
  queue.splice(i, 1);
@@ -314,12 +314,12 @@ function flushPostFlushCbs(seen) {
314
314
  return;
315
315
  }
316
316
  activePostFlushCbs = deduped;
317
- if (process.env.NODE_ENV !== "production") {
317
+ if (!!(process.env.NODE_ENV !== "production")) {
318
318
  seen = seen || /* @__PURE__ */ new Map();
319
319
  }
320
320
  activePostFlushCbs.sort((a, b) => getId(a) - getId(b));
321
321
  for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
322
- if (process.env.NODE_ENV !== "production" && checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {
322
+ if (!!(process.env.NODE_ENV !== "production") && checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {
323
323
  continue;
324
324
  }
325
325
  activePostFlushCbs[postFlushIndex]();
@@ -342,16 +342,16 @@ const comparator = (a, b) => {
342
342
  function flushJobs(seen) {
343
343
  isFlushPending = false;
344
344
  isFlushing = true;
345
- if (process.env.NODE_ENV !== "production") {
345
+ if (!!(process.env.NODE_ENV !== "production")) {
346
346
  seen = seen || /* @__PURE__ */ new Map();
347
347
  }
348
348
  queue.sort(comparator);
349
- const check = process.env.NODE_ENV !== "production" ? (job) => checkRecursiveUpdates(seen, job) : NOOP;
349
+ const check = !!(process.env.NODE_ENV !== "production") ? (job) => checkRecursiveUpdates(seen, job) : NOOP;
350
350
  try {
351
351
  for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
352
352
  const job = queue[flushIndex];
353
353
  if (job && job.active !== false) {
354
- if (process.env.NODE_ENV !== "production" && check(job)) {
354
+ if (!!(process.env.NODE_ENV !== "production") && check(job)) {
355
355
  continue;
356
356
  }
357
357
  callWithErrorHandling(job, null, 14);
@@ -388,7 +388,7 @@ function checkRecursiveUpdates(seen, fn) {
388
388
 
389
389
  let isHmrUpdating = false;
390
390
  const hmrDirtyComponents = /* @__PURE__ */ new Set();
391
- if (process.env.NODE_ENV !== "production") {
391
+ if (!!(process.env.NODE_ENV !== "production")) {
392
392
  getGlobalThis().__VUE_HMR_RUNTIME__ = {
393
393
  createRecord: tryWrap(createRecord),
394
394
  rerender: tryWrap(rerender),
@@ -602,7 +602,7 @@ function emit(instance, event, ...rawArgs) {
602
602
  if (instance.isUnmounted)
603
603
  return;
604
604
  const props = instance.vnode.props || EMPTY_OBJ;
605
- if (process.env.NODE_ENV !== "production") {
605
+ if (!!(process.env.NODE_ENV !== "production")) {
606
606
  const {
607
607
  emitsOptions,
608
608
  propsOptions: [propsOptions]
@@ -640,10 +640,10 @@ function emit(instance, event, ...rawArgs) {
640
640
  args = rawArgs.map(looseToNumber);
641
641
  }
642
642
  }
643
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
643
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
644
644
  devtoolsComponentEmit(instance, event, args);
645
645
  }
646
- if (process.env.NODE_ENV !== "production") {
646
+ if (!!(process.env.NODE_ENV !== "production")) {
647
647
  const lowerCaseEvent = event.toLowerCase();
648
648
  if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {
649
649
  warn(
@@ -770,7 +770,7 @@ function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
770
770
  setBlockTracking(1);
771
771
  }
772
772
  }
773
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
773
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
774
774
  devtoolsComponentUpdated(ctx);
775
775
  }
776
776
  return res;
@@ -806,7 +806,7 @@ function renderComponentRoot(instance) {
806
806
  let result;
807
807
  let fallthroughAttrs;
808
808
  const prev = setCurrentRenderingInstance(instance);
809
- if (process.env.NODE_ENV !== "production") {
809
+ if (!!(process.env.NODE_ENV !== "production")) {
810
810
  accessedAttrs = false;
811
811
  }
812
812
  try {
@@ -826,13 +826,13 @@ function renderComponentRoot(instance) {
826
826
  fallthroughAttrs = attrs;
827
827
  } else {
828
828
  const render2 = Component;
829
- if (process.env.NODE_ENV !== "production" && attrs === props) {
829
+ if (!!(process.env.NODE_ENV !== "production") && attrs === props) {
830
830
  markAttrsAccessed();
831
831
  }
832
832
  result = normalizeVNode(
833
833
  render2.length > 1 ? render2(
834
834
  props,
835
- process.env.NODE_ENV !== "production" ? {
835
+ !!(process.env.NODE_ENV !== "production") ? {
836
836
  get attrs() {
837
837
  markAttrsAccessed();
838
838
  return attrs;
@@ -855,7 +855,7 @@ function renderComponentRoot(instance) {
855
855
  }
856
856
  let root = result;
857
857
  let setRoot = void 0;
858
- if (process.env.NODE_ENV !== "production" && result.patchFlag > 0 && result.patchFlag & 2048) {
858
+ if (!!(process.env.NODE_ENV !== "production") && result.patchFlag > 0 && result.patchFlag & 2048) {
859
859
  [root, setRoot] = getChildRoot(result);
860
860
  }
861
861
  if (fallthroughAttrs && inheritAttrs !== false) {
@@ -870,7 +870,7 @@ function renderComponentRoot(instance) {
870
870
  );
871
871
  }
872
872
  root = cloneVNode(root, fallthroughAttrs);
873
- } else if (process.env.NODE_ENV !== "production" && !accessedAttrs && root.type !== Comment) {
873
+ } else if (!!(process.env.NODE_ENV !== "production") && !accessedAttrs && root.type !== Comment) {
874
874
  const allAttrs = Object.keys(attrs);
875
875
  const eventAttrs = [];
876
876
  const extraAttrs = [];
@@ -898,7 +898,7 @@ function renderComponentRoot(instance) {
898
898
  }
899
899
  }
900
900
  if (vnode.dirs) {
901
- if (process.env.NODE_ENV !== "production" && !isElementRoot(root)) {
901
+ if (!!(process.env.NODE_ENV !== "production") && !isElementRoot(root)) {
902
902
  warn(
903
903
  `Runtime directive used on component with non-element root node. The directives will not function as intended.`
904
904
  );
@@ -907,14 +907,14 @@ function renderComponentRoot(instance) {
907
907
  root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
908
908
  }
909
909
  if (vnode.transition) {
910
- if (process.env.NODE_ENV !== "production" && !isElementRoot(root)) {
910
+ if (!!(process.env.NODE_ENV !== "production") && !isElementRoot(root)) {
911
911
  warn(
912
912
  `Component inside <Transition> renders non-element root node that cannot be animated.`
913
913
  );
914
914
  }
915
915
  root.transition = vnode.transition;
916
916
  }
917
- if (process.env.NODE_ENV !== "production" && setRoot) {
917
+ if (!!(process.env.NODE_ENV !== "production") && setRoot) {
918
918
  setRoot(root);
919
919
  } else {
920
920
  result = root;
@@ -986,7 +986,7 @@ function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
986
986
  const { props: prevProps, children: prevChildren, component } = prevVNode;
987
987
  const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
988
988
  const emits = component.emitsOptions;
989
- if (process.env.NODE_ENV !== "production" && (prevChildren || nextChildren) && isHmrUpdating) {
989
+ if (!!(process.env.NODE_ENV !== "production") && (prevChildren || nextChildren) && isHmrUpdating) {
990
990
  return true;
991
991
  }
992
992
  if (nextVNode.dirs || nextVNode.transition) {
@@ -1298,7 +1298,7 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotSc
1298
1298
  }
1299
1299
  let hasWarned = false;
1300
1300
  function createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) {
1301
- if (process.env.NODE_ENV !== "production" && true && !hasWarned) {
1301
+ if (!!(process.env.NODE_ENV !== "production") && true && !hasWarned) {
1302
1302
  hasWarned = true;
1303
1303
  console[console.info ? "info" : "log"](
1304
1304
  `<Suspense> is an experimental feature and its API will likely change.`
@@ -1320,7 +1320,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
1320
1320
  }
1321
1321
  }
1322
1322
  const timeout = vnode.props ? toNumber(vnode.props.timeout) : void 0;
1323
- if (process.env.NODE_ENV !== "production") {
1323
+ if (!!(process.env.NODE_ENV !== "production")) {
1324
1324
  assertNumber(timeout, `Suspense timeout`);
1325
1325
  }
1326
1326
  const suspense = {
@@ -1341,7 +1341,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
1341
1341
  isUnmounted: false,
1342
1342
  effects: [],
1343
1343
  resolve(resume = false, sync = false) {
1344
- if (process.env.NODE_ENV !== "production") {
1344
+ if (!!(process.env.NODE_ENV !== "production")) {
1345
1345
  if (!resume && !suspense.pendingBranch) {
1346
1346
  throw new Error(
1347
1347
  `suspense.resolve() is called without a pending branch.`
@@ -1472,7 +1472,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
1472
1472
  }
1473
1473
  instance.asyncResolved = true;
1474
1474
  const { vnode: vnode2 } = instance;
1475
- if (process.env.NODE_ENV !== "production") {
1475
+ if (!!(process.env.NODE_ENV !== "production")) {
1476
1476
  pushWarningContext(vnode2);
1477
1477
  }
1478
1478
  handleSetupResult(instance, asyncSetupResult, false);
@@ -1498,7 +1498,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
1498
1498
  remove(placeholder);
1499
1499
  }
1500
1500
  updateHOCHostEl(instance, vnode2.el);
1501
- if (process.env.NODE_ENV !== "production") {
1501
+ if (!!(process.env.NODE_ENV !== "production")) {
1502
1502
  popWarningContext();
1503
1503
  }
1504
1504
  if (isInPendingSuspense && --suspense.deps === 0) {
@@ -1581,7 +1581,7 @@ function normalizeSuspenseSlot(s) {
1581
1581
  }
1582
1582
  if (isArray(s)) {
1583
1583
  const singleChild = filterSingleRoot(s);
1584
- if (process.env.NODE_ENV !== "production" && !singleChild) {
1584
+ if (!!(process.env.NODE_ENV !== "production") && !singleChild) {
1585
1585
  warn(`<Suspense> slots expect a single root node.`);
1586
1586
  }
1587
1587
  s = singleChild;
@@ -1624,19 +1624,19 @@ function watchPostEffect(effect, options) {
1624
1624
  return doWatch(
1625
1625
  effect,
1626
1626
  null,
1627
- process.env.NODE_ENV !== "production" ? extend({}, options, { flush: "post" }) : { flush: "post" }
1627
+ !!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "post" }) : { flush: "post" }
1628
1628
  );
1629
1629
  }
1630
1630
  function watchSyncEffect(effect, options) {
1631
1631
  return doWatch(
1632
1632
  effect,
1633
1633
  null,
1634
- process.env.NODE_ENV !== "production" ? extend({}, options, { flush: "sync" }) : { flush: "sync" }
1634
+ !!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "sync" }) : { flush: "sync" }
1635
1635
  );
1636
1636
  }
1637
1637
  const INITIAL_WATCHER_VALUE = {};
1638
1638
  function watch(source, cb, options) {
1639
- if (process.env.NODE_ENV !== "production" && !isFunction(cb)) {
1639
+ if (!!(process.env.NODE_ENV !== "production") && !isFunction(cb)) {
1640
1640
  warn(
1641
1641
  `\`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.`
1642
1642
  );
@@ -1645,7 +1645,7 @@ function watch(source, cb, options) {
1645
1645
  }
1646
1646
  function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) {
1647
1647
  var _a;
1648
- if (process.env.NODE_ENV !== "production" && !cb) {
1648
+ if (!!(process.env.NODE_ENV !== "production") && !cb) {
1649
1649
  if (immediate !== void 0) {
1650
1650
  warn(
1651
1651
  `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
@@ -1685,7 +1685,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
1685
1685
  } else if (isFunction(s)) {
1686
1686
  return callWithErrorHandling(s, instance, 2);
1687
1687
  } else {
1688
- process.env.NODE_ENV !== "production" && warnInvalidSource(s);
1688
+ !!(process.env.NODE_ENV !== "production") && warnInvalidSource(s);
1689
1689
  }
1690
1690
  });
1691
1691
  } else if (isFunction(source)) {
@@ -1708,7 +1708,8 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
1708
1708
  };
1709
1709
  }
1710
1710
  } else {
1711
- getter = NOOP(process.env.NODE_ENV !== "production") && warnInvalidSource(source);
1711
+ getter = NOOP;
1712
+ !!(process.env.NODE_ENV !== "production") && warnInvalidSource(source);
1712
1713
  }
1713
1714
  if (cb && deep) {
1714
1715
  const baseGetter = getter;
@@ -1746,9 +1747,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
1746
1747
  }
1747
1748
  if (cb) {
1748
1749
  const newValue = effect.run();
1749
- if (deep || forceTrigger || (isMultiSource ? newValue.some(
1750
- (v, i) => hasChanged(v, oldValue[i])
1751
- ) : hasChanged(newValue, oldValue)) || false) {
1750
+ if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue)) || false) {
1752
1751
  if (cleanup) {
1753
1752
  cleanup();
1754
1753
  }
@@ -1777,7 +1776,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
1777
1776
  scheduler = () => queueJob(job);
1778
1777
  }
1779
1778
  const effect = new ReactiveEffect(getter, scheduler);
1780
- if (process.env.NODE_ENV !== "production") {
1779
+ if (!!(process.env.NODE_ENV !== "production")) {
1781
1780
  effect.onTrack = onTrack;
1782
1781
  effect.onTrigger = onTrigger;
1783
1782
  }
@@ -1870,7 +1869,7 @@ function validateDirectiveName(name) {
1870
1869
  function withDirectives(vnode, directives) {
1871
1870
  const internalInstance = currentRenderingInstance;
1872
1871
  if (internalInstance === null) {
1873
- process.env.NODE_ENV !== "production" && warn(`withDirectives can only be used inside render functions.`);
1872
+ !!(process.env.NODE_ENV !== "production") && warn(`withDirectives can only be used inside render functions.`);
1874
1873
  return vnode;
1875
1874
  }
1876
1875
  const instance = getExposeProxy(internalInstance) || internalInstance.proxy;
@@ -1921,6 +1920,8 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
1921
1920
  }
1922
1921
  }
1923
1922
 
1923
+ const leaveCbKey = Symbol("_leaveCb");
1924
+ const enterCbKey = Symbol("_enterCb");
1924
1925
  function useTransitionState() {
1925
1926
  const state = {
1926
1927
  isMounted: false,
@@ -1974,7 +1975,7 @@ const BaseTransitionImpl = {
1974
1975
  let hasFound = false;
1975
1976
  for (const c of children) {
1976
1977
  if (c.type !== Comment) {
1977
- if (process.env.NODE_ENV !== "production" && hasFound) {
1978
+ if (!!(process.env.NODE_ENV !== "production") && hasFound) {
1978
1979
  warn(
1979
1980
  "<transition> can only be used on a single element or component. Use <transition-group> for lists."
1980
1981
  );
@@ -1982,14 +1983,14 @@ const BaseTransitionImpl = {
1982
1983
  }
1983
1984
  child = c;
1984
1985
  hasFound = true;
1985
- if (!(process.env.NODE_ENV !== "production"))
1986
+ if (!!!(process.env.NODE_ENV !== "production"))
1986
1987
  break;
1987
1988
  }
1988
1989
  }
1989
1990
  }
1990
1991
  const rawProps = toRaw(props);
1991
1992
  const { mode } = rawProps;
1992
- if (process.env.NODE_ENV !== "production" && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
1993
+ if (!!(process.env.NODE_ENV !== "production") && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
1993
1994
  warn(`invalid <transition> mode: ${mode}`);
1994
1995
  }
1995
1996
  if (state.isLeaving) {
@@ -2043,9 +2044,9 @@ const BaseTransitionImpl = {
2043
2044
  oldInnerChild
2044
2045
  );
2045
2046
  leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;
2046
- el._leaveCb = () => {
2047
+ el[leaveCbKey] = () => {
2047
2048
  earlyRemove();
2048
- el._leaveCb = void 0;
2049
+ el[leaveCbKey] = void 0;
2049
2050
  delete enterHooks.delayedLeave;
2050
2051
  };
2051
2052
  enterHooks.delayedLeave = delayedLeave;
@@ -2116,15 +2117,15 @@ function resolveTransitionHooks(vnode, props, state, instance) {
2116
2117
  return;
2117
2118
  }
2118
2119
  }
2119
- if (el._leaveCb) {
2120
- el._leaveCb(
2120
+ if (el[leaveCbKey]) {
2121
+ el[leaveCbKey](
2121
2122
  true
2122
2123
  /* cancelled */
2123
2124
  );
2124
2125
  }
2125
2126
  const leavingVNode = leavingVNodesCache[key];
2126
- if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el._leaveCb) {
2127
- leavingVNode.el._leaveCb();
2127
+ if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) {
2128
+ leavingVNode.el[leaveCbKey]();
2128
2129
  }
2129
2130
  callHook(hook, [el]);
2130
2131
  },
@@ -2142,7 +2143,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
2142
2143
  }
2143
2144
  }
2144
2145
  let called = false;
2145
- const done = el._enterCb = (cancelled) => {
2146
+ const done = el[enterCbKey] = (cancelled) => {
2146
2147
  if (called)
2147
2148
  return;
2148
2149
  called = true;
@@ -2154,7 +2155,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
2154
2155
  if (hooks.delayedLeave) {
2155
2156
  hooks.delayedLeave();
2156
2157
  }
2157
- el._enterCb = void 0;
2158
+ el[enterCbKey] = void 0;
2158
2159
  };
2159
2160
  if (hook) {
2160
2161
  callAsyncHook(hook, [el, done]);
@@ -2164,8 +2165,8 @@ function resolveTransitionHooks(vnode, props, state, instance) {
2164
2165
  },
2165
2166
  leave(el, remove) {
2166
2167
  const key2 = String(vnode.key);
2167
- if (el._enterCb) {
2168
- el._enterCb(
2168
+ if (el[enterCbKey]) {
2169
+ el[enterCbKey](
2169
2170
  true
2170
2171
  /* cancelled */
2171
2172
  );
@@ -2175,7 +2176,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
2175
2176
  }
2176
2177
  callHook(onBeforeLeave, [el]);
2177
2178
  let called = false;
2178
- const done = el._leaveCb = (cancelled) => {
2179
+ const done = el[leaveCbKey] = (cancelled) => {
2179
2180
  if (called)
2180
2181
  return;
2181
2182
  called = true;
@@ -2185,7 +2186,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
2185
2186
  } else {
2186
2187
  callHook(onAfterLeave, [el]);
2187
2188
  }
2188
- el._leaveCb = void 0;
2189
+ el[leaveCbKey] = void 0;
2189
2190
  if (leavingVNodesCache[key2] === vnode) {
2190
2191
  delete leavingVNodesCache[key2];
2191
2192
  }
@@ -2247,6 +2248,8 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
2247
2248
  return ret;
2248
2249
  }
2249
2250
 
2251
+ /*! #__NO_SIDE_EFFECTS__ */
2252
+ // @__NO_SIDE_EFFECTS__
2250
2253
  function defineComponent(options, extraOptions) {
2251
2254
  return isFunction(options) ? (
2252
2255
  // #8326: extend call and options.name access are considered side-effects
@@ -2256,6 +2259,8 @@ function defineComponent(options, extraOptions) {
2256
2259
  }
2257
2260
 
2258
2261
  const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
2262
+ /*! #__NO_SIDE_EFFECTS__ */
2263
+ // @__NO_SIDE_EFFECTS__
2259
2264
  function defineAsyncComponent(source) {
2260
2265
  if (isFunction(source)) {
2261
2266
  source = { loader: source };
@@ -2295,7 +2300,7 @@ function defineAsyncComponent(source) {
2295
2300
  if (thisRequest !== pendingRequest && pendingRequest) {
2296
2301
  return pendingRequest;
2297
2302
  }
2298
- if (process.env.NODE_ENV !== "production" && !comp) {
2303
+ if (!!(process.env.NODE_ENV !== "production") && !comp) {
2299
2304
  warn(
2300
2305
  `Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.`
2301
2306
  );
@@ -2303,7 +2308,7 @@ function defineAsyncComponent(source) {
2303
2308
  if (comp && (comp.__esModule || comp[Symbol.toStringTag] === "Module")) {
2304
2309
  comp = comp.default;
2305
2310
  }
2306
- if (process.env.NODE_ENV !== "production" && comp && !isObject(comp) && !isFunction(comp)) {
2311
+ if (!!(process.env.NODE_ENV !== "production") && comp && !isObject(comp) && !isFunction(comp)) {
2307
2312
  throw new Error(`Invalid async component load result: ${comp}`);
2308
2313
  }
2309
2314
  resolvedComp = comp;
@@ -2416,7 +2421,7 @@ const KeepAliveImpl = {
2416
2421
  const cache = /* @__PURE__ */ new Map();
2417
2422
  const keys = /* @__PURE__ */ new Set();
2418
2423
  let current = null;
2419
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
2424
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
2420
2425
  instance.__v_cache = cache;
2421
2426
  }
2422
2427
  const parentSuspense = instance.suspense;
@@ -2453,7 +2458,7 @@ const KeepAliveImpl = {
2453
2458
  invokeVNodeHook(vnodeHook, instance2.parent, vnode);
2454
2459
  }
2455
2460
  }, parentSuspense);
2456
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
2461
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
2457
2462
  devtoolsComponentAdded(instance2);
2458
2463
  }
2459
2464
  };
@@ -2470,7 +2475,7 @@ const KeepAliveImpl = {
2470
2475
  }
2471
2476
  instance2.isDeactivated = true;
2472
2477
  }, parentSuspense);
2473
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
2478
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
2474
2479
  devtoolsComponentAdded(instance2);
2475
2480
  }
2476
2481
  };
@@ -2534,7 +2539,7 @@ const KeepAliveImpl = {
2534
2539
  const children = slots.default();
2535
2540
  const rawVNode = children[0];
2536
2541
  if (children.length > 1) {
2537
- if (process.env.NODE_ENV !== "production") {
2542
+ if (!!(process.env.NODE_ENV !== "production")) {
2538
2543
  warn(`KeepAlive should contain exactly one component child.`);
2539
2544
  }
2540
2545
  current = null;
@@ -2662,7 +2667,7 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
2662
2667
  hooks.push(wrappedHook);
2663
2668
  }
2664
2669
  return wrappedHook;
2665
- } else if (process.env.NODE_ENV !== "production") {
2670
+ } else if (!!(process.env.NODE_ENV !== "production")) {
2666
2671
  const apiName = toHandlerKey(ErrorTypeStrings[type].replace(/ hook$/, ""));
2667
2672
  warn(
2668
2673
  `${apiName} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup().` + (` If you are using async setup(), make sure to register lifecycle hooks before the first await statement.` )
@@ -2729,13 +2734,13 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
2729
2734
  if (!res && maybeSelfReference) {
2730
2735
  return Component;
2731
2736
  }
2732
- if (process.env.NODE_ENV !== "production" && warnMissing && !res) {
2737
+ if (!!(process.env.NODE_ENV !== "production") && warnMissing && !res) {
2733
2738
  const extra = type === COMPONENTS ? `
2734
2739
  If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
2735
2740
  warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
2736
2741
  }
2737
2742
  return res;
2738
- } else if (process.env.NODE_ENV !== "production") {
2743
+ } else if (!!(process.env.NODE_ENV !== "production")) {
2739
2744
  warn(
2740
2745
  `resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
2741
2746
  );
@@ -2754,7 +2759,7 @@ function renderList(source, renderItem, cache, index) {
2754
2759
  ret[i] = renderItem(source[i], i, void 0, cached && cached[i]);
2755
2760
  }
2756
2761
  } else if (typeof source === "number") {
2757
- if (process.env.NODE_ENV !== "production" && !Number.isInteger(source)) {
2762
+ if (!!(process.env.NODE_ENV !== "production") && !Number.isInteger(source)) {
2758
2763
  warn(`The v-for range expect an integer value but got ${source}.`);
2759
2764
  }
2760
2765
  ret = new Array(source);
@@ -2810,7 +2815,7 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
2810
2815
  return createVNode("slot", props, fallback && fallback());
2811
2816
  }
2812
2817
  let slot = slots[name];
2813
- if (process.env.NODE_ENV !== "production" && slot && slot.length > 1) {
2818
+ if (!!(process.env.NODE_ENV !== "production") && slot && slot.length > 1) {
2814
2819
  warn(
2815
2820
  `SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.`
2816
2821
  );
@@ -2853,7 +2858,7 @@ function ensureValidVNode(vnodes) {
2853
2858
 
2854
2859
  function toHandlers(obj, preserveCaseIfNecessary) {
2855
2860
  const ret = {};
2856
- if (process.env.NODE_ENV !== "production" && !isObject(obj)) {
2861
+ if (!!(process.env.NODE_ENV !== "production") && !isObject(obj)) {
2857
2862
  warn(`v-on with no argument expects an object value.`);
2858
2863
  return ret;
2859
2864
  }
@@ -2877,10 +2882,10 @@ const publicPropertiesMap = (
2877
2882
  $: (i) => i,
2878
2883
  $el: (i) => i.vnode.el,
2879
2884
  $data: (i) => i.data,
2880
- $props: (i) => process.env.NODE_ENV !== "production" ? shallowReadonly(i.props) : i.props,
2881
- $attrs: (i) => process.env.NODE_ENV !== "production" ? shallowReadonly(i.attrs) : i.attrs,
2882
- $slots: (i) => process.env.NODE_ENV !== "production" ? shallowReadonly(i.slots) : i.slots,
2883
- $refs: (i) => process.env.NODE_ENV !== "production" ? shallowReadonly(i.refs) : i.refs,
2885
+ $props: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.props) : i.props,
2886
+ $attrs: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.attrs) : i.attrs,
2887
+ $slots: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.slots) : i.slots,
2888
+ $refs: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.refs) : i.refs,
2884
2889
  $parent: (i) => getPublicInstance(i.parent),
2885
2890
  $root: (i) => getPublicInstance(i.root),
2886
2891
  $emit: (i) => i.emit,
@@ -2895,7 +2900,7 @@ const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScript
2895
2900
  const PublicInstanceProxyHandlers = {
2896
2901
  get({ _: instance }, key) {
2897
2902
  const { ctx, setupState, data, props, accessCache, type, appContext } = instance;
2898
- if (process.env.NODE_ENV !== "production" && key === "__isVue") {
2903
+ if (!!(process.env.NODE_ENV !== "production") && key === "__isVue") {
2899
2904
  return true;
2900
2905
  }
2901
2906
  let normalizedProps;
@@ -2936,8 +2941,9 @@ const PublicInstanceProxyHandlers = {
2936
2941
  let cssModule, globalProperties;
2937
2942
  if (publicGetter) {
2938
2943
  if (key === "$attrs") {
2939
- track(instance, "get", key)(process.env.NODE_ENV !== "production") && markAttrsAccessed();
2940
- } else if (process.env.NODE_ENV !== "production" && key === "$slots") {
2944
+ track(instance, "get", key);
2945
+ !!(process.env.NODE_ENV !== "production") && markAttrsAccessed();
2946
+ } else if (!!(process.env.NODE_ENV !== "production") && key === "$slots") {
2941
2947
  track(instance, "get", key);
2942
2948
  }
2943
2949
  return publicGetter(instance);
@@ -2956,7 +2962,7 @@ const PublicInstanceProxyHandlers = {
2956
2962
  {
2957
2963
  return globalProperties[key];
2958
2964
  }
2959
- } else if (process.env.NODE_ENV !== "production" && currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading
2965
+ } else if (!!(process.env.NODE_ENV !== "production") && currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading
2960
2966
  // to infinite warning loop
2961
2967
  key.indexOf("__v") !== 0)) {
2962
2968
  if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {
@@ -2977,23 +2983,23 @@ const PublicInstanceProxyHandlers = {
2977
2983
  if (hasSetupBinding(setupState, key)) {
2978
2984
  setupState[key] = value;
2979
2985
  return true;
2980
- } else if (process.env.NODE_ENV !== "production" && setupState.__isScriptSetup && hasOwn(setupState, key)) {
2986
+ } else if (!!(process.env.NODE_ENV !== "production") && setupState.__isScriptSetup && hasOwn(setupState, key)) {
2981
2987
  warn(`Cannot mutate <script setup> binding "${key}" from Options API.`);
2982
2988
  return false;
2983
2989
  } else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
2984
2990
  data[key] = value;
2985
2991
  return true;
2986
2992
  } else if (hasOwn(instance.props, key)) {
2987
- process.env.NODE_ENV !== "production" && warn(`Attempting to mutate prop "${key}". Props are readonly.`);
2993
+ !!(process.env.NODE_ENV !== "production") && warn(`Attempting to mutate prop "${key}". Props are readonly.`);
2988
2994
  return false;
2989
2995
  }
2990
2996
  if (key[0] === "$" && key.slice(1) in instance) {
2991
- process.env.NODE_ENV !== "production" && warn(
2997
+ !!(process.env.NODE_ENV !== "production") && warn(
2992
2998
  `Attempting to mutate public property "${key}". Properties starting with $ are reserved and readonly.`
2993
2999
  );
2994
3000
  return false;
2995
3001
  } else {
2996
- if (process.env.NODE_ENV !== "production" && key in instance.appContext.config.globalProperties) {
3002
+ if (!!(process.env.NODE_ENV !== "production") && key in instance.appContext.config.globalProperties) {
2997
3003
  Object.defineProperty(ctx, key, {
2998
3004
  enumerable: true,
2999
3005
  configurable: true,
@@ -3020,7 +3026,7 @@ const PublicInstanceProxyHandlers = {
3020
3026
  return Reflect.defineProperty(target, key, descriptor);
3021
3027
  }
3022
3028
  };
3023
- if (process.env.NODE_ENV !== "production" && true) {
3029
+ if (!!(process.env.NODE_ENV !== "production") && true) {
3024
3030
  PublicInstanceProxyHandlers.ownKeys = (target) => {
3025
3031
  warn(
3026
3032
  `Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.`
@@ -3039,8 +3045,8 @@ const RuntimeCompiledPublicInstanceProxyHandlers = /* @__PURE__ */ extend(
3039
3045
  return PublicInstanceProxyHandlers.get(target, key, target);
3040
3046
  },
3041
3047
  has(_, key) {
3042
- const has = key[0] !== "_" && !isGloballyWhitelisted(key);
3043
- if (process.env.NODE_ENV !== "production" && !has && PublicInstanceProxyHandlers.has(_, key)) {
3048
+ const has = key[0] !== "_" && !isGloballyAllowed(key);
3049
+ if (!!(process.env.NODE_ENV !== "production") && !has && PublicInstanceProxyHandlers.has(_, key)) {
3044
3050
  warn(
3045
3051
  `Property ${JSON.stringify(
3046
3052
  key
@@ -3112,40 +3118,40 @@ const warnRuntimeUsage = (method) => warn(
3112
3118
  `${method}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`
3113
3119
  );
3114
3120
  function defineProps() {
3115
- if (process.env.NODE_ENV !== "production") {
3121
+ if (!!(process.env.NODE_ENV !== "production")) {
3116
3122
  warnRuntimeUsage(`defineProps`);
3117
3123
  }
3118
3124
  return null;
3119
3125
  }
3120
3126
  function defineEmits() {
3121
- if (process.env.NODE_ENV !== "production") {
3127
+ if (!!(process.env.NODE_ENV !== "production")) {
3122
3128
  warnRuntimeUsage(`defineEmits`);
3123
3129
  }
3124
3130
  return null;
3125
3131
  }
3126
3132
  function defineExpose(exposed) {
3127
- if (process.env.NODE_ENV !== "production") {
3133
+ if (!!(process.env.NODE_ENV !== "production")) {
3128
3134
  warnRuntimeUsage(`defineExpose`);
3129
3135
  }
3130
3136
  }
3131
3137
  function defineOptions(options) {
3132
- if (process.env.NODE_ENV !== "production") {
3138
+ if (!!(process.env.NODE_ENV !== "production")) {
3133
3139
  warnRuntimeUsage(`defineOptions`);
3134
3140
  }
3135
3141
  }
3136
3142
  function defineSlots() {
3137
- if (process.env.NODE_ENV !== "production") {
3143
+ if (!!(process.env.NODE_ENV !== "production")) {
3138
3144
  warnRuntimeUsage(`defineSlots`);
3139
3145
  }
3140
3146
  return null;
3141
3147
  }
3142
3148
  function defineModel() {
3143
- if (process.env.NODE_ENV !== "production") {
3149
+ if (!!(process.env.NODE_ENV !== "production")) {
3144
3150
  warnRuntimeUsage("defineModel");
3145
3151
  }
3146
3152
  }
3147
3153
  function withDefaults(props, defaults) {
3148
- if (process.env.NODE_ENV !== "production") {
3154
+ if (!!(process.env.NODE_ENV !== "production")) {
3149
3155
  warnRuntimeUsage(`withDefaults`);
3150
3156
  }
3151
3157
  return null;
@@ -3158,11 +3164,11 @@ function useAttrs() {
3158
3164
  }
3159
3165
  function useModel(props, name, options) {
3160
3166
  const i = getCurrentInstance();
3161
- if (process.env.NODE_ENV !== "production" && !i) {
3167
+ if (!!(process.env.NODE_ENV !== "production") && !i) {
3162
3168
  warn(`useModel() called without active instance.`);
3163
3169
  return ref();
3164
3170
  }
3165
- if (process.env.NODE_ENV !== "production" && !i.propsOptions[0][name]) {
3171
+ if (!!(process.env.NODE_ENV !== "production") && !i.propsOptions[0][name]) {
3166
3172
  warn(`useModel() called with prop "${name}" which is not declared.`);
3167
3173
  return ref();
3168
3174
  }
@@ -3192,7 +3198,7 @@ function useModel(props, name, options) {
3192
3198
  }
3193
3199
  function getContext() {
3194
3200
  const i = getCurrentInstance();
3195
- if (process.env.NODE_ENV !== "production" && !i) {
3201
+ if (!!(process.env.NODE_ENV !== "production") && !i) {
3196
3202
  warn(`useContext() called without active instance.`);
3197
3203
  }
3198
3204
  return i.setupContext || (i.setupContext = createSetupContext(i));
@@ -3217,7 +3223,7 @@ function mergeDefaults(raw, defaults) {
3217
3223
  }
3218
3224
  } else if (opt === null) {
3219
3225
  opt = props[key] = { default: defaults[key] };
3220
- } else if (process.env.NODE_ENV !== "production") {
3226
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3221
3227
  warn(`props default key "${key}" has no corresponding declaration.`);
3222
3228
  }
3223
3229
  if (opt && defaults[`__skip_${key}`]) {
@@ -3247,7 +3253,7 @@ function createPropsRestProxy(props, excludedKeys) {
3247
3253
  }
3248
3254
  function withAsyncContext(getAwaitable) {
3249
3255
  const ctx = getCurrentInstance();
3250
- if (process.env.NODE_ENV !== "production" && !ctx) {
3256
+ if (!!(process.env.NODE_ENV !== "production") && !ctx) {
3251
3257
  warn(
3252
3258
  `withAsyncContext called without active current instance. This is likely a bug.`
3253
3259
  );
@@ -3315,8 +3321,8 @@ function applyOptions(instance) {
3315
3321
  directives,
3316
3322
  filters
3317
3323
  } = options;
3318
- const checkDuplicateProperties = process.env.NODE_ENV !== "production" ? createDuplicateChecker() : null;
3319
- if (process.env.NODE_ENV !== "production") {
3324
+ const checkDuplicateProperties = !!(process.env.NODE_ENV !== "production") ? createDuplicateChecker() : null;
3325
+ if (!!(process.env.NODE_ENV !== "production")) {
3320
3326
  const [propsOptions] = instance.propsOptions;
3321
3327
  if (propsOptions) {
3322
3328
  for (const key in propsOptions) {
@@ -3331,7 +3337,7 @@ function applyOptions(instance) {
3331
3337
  for (const key in methods) {
3332
3338
  const methodHandler = methods[key];
3333
3339
  if (isFunction(methodHandler)) {
3334
- if (process.env.NODE_ENV !== "production") {
3340
+ if (!!(process.env.NODE_ENV !== "production")) {
3335
3341
  Object.defineProperty(ctx, key, {
3336
3342
  value: methodHandler.bind(publicThis),
3337
3343
  configurable: true,
@@ -3341,10 +3347,10 @@ function applyOptions(instance) {
3341
3347
  } else {
3342
3348
  ctx[key] = methodHandler.bind(publicThis);
3343
3349
  }
3344
- if (process.env.NODE_ENV !== "production") {
3350
+ if (!!(process.env.NODE_ENV !== "production")) {
3345
3351
  checkDuplicateProperties("Methods" /* METHODS */, key);
3346
3352
  }
3347
- } else if (process.env.NODE_ENV !== "production") {
3353
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3348
3354
  warn(
3349
3355
  `Method "${key}" has type "${typeof methodHandler}" in the component definition. Did you reference the function correctly?`
3350
3356
  );
@@ -3352,22 +3358,22 @@ function applyOptions(instance) {
3352
3358
  }
3353
3359
  }
3354
3360
  if (dataOptions) {
3355
- if (process.env.NODE_ENV !== "production" && !isFunction(dataOptions)) {
3361
+ if (!!(process.env.NODE_ENV !== "production") && !isFunction(dataOptions)) {
3356
3362
  warn(
3357
3363
  `The data option must be a function. Plain object usage is no longer supported.`
3358
3364
  );
3359
3365
  }
3360
3366
  const data = dataOptions.call(publicThis, publicThis);
3361
- if (process.env.NODE_ENV !== "production" && isPromise(data)) {
3367
+ if (!!(process.env.NODE_ENV !== "production") && isPromise(data)) {
3362
3368
  warn(
3363
3369
  `data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>.`
3364
3370
  );
3365
3371
  }
3366
3372
  if (!isObject(data)) {
3367
- process.env.NODE_ENV !== "production" && warn(`data() should return an object.`);
3373
+ !!(process.env.NODE_ENV !== "production") && warn(`data() should return an object.`);
3368
3374
  } else {
3369
3375
  instance.data = reactive(data);
3370
- if (process.env.NODE_ENV !== "production") {
3376
+ if (!!(process.env.NODE_ENV !== "production")) {
3371
3377
  for (const key in data) {
3372
3378
  checkDuplicateProperties("Data" /* DATA */, key);
3373
3379
  if (!isReservedPrefix(key[0])) {
@@ -3387,10 +3393,10 @@ function applyOptions(instance) {
3387
3393
  for (const key in computedOptions) {
3388
3394
  const opt = computedOptions[key];
3389
3395
  const get = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP;
3390
- if (process.env.NODE_ENV !== "production" && get === NOOP) {
3396
+ if (!!(process.env.NODE_ENV !== "production") && get === NOOP) {
3391
3397
  warn(`Computed property "${key}" has no getter.`);
3392
3398
  }
3393
- const set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : process.env.NODE_ENV !== "production" ? () => {
3399
+ const set = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : !!(process.env.NODE_ENV !== "production") ? () => {
3394
3400
  warn(
3395
3401
  `Write operation failed: computed property "${key}" is readonly.`
3396
3402
  );
@@ -3405,7 +3411,7 @@ function applyOptions(instance) {
3405
3411
  get: () => c.value,
3406
3412
  set: (v) => c.value = v
3407
3413
  });
3408
- if (process.env.NODE_ENV !== "production") {
3414
+ if (!!(process.env.NODE_ENV !== "production")) {
3409
3415
  checkDuplicateProperties("Computed" /* COMPUTED */, key);
3410
3416
  }
3411
3417
  }
@@ -3498,7 +3504,7 @@ function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP)
3498
3504
  } else {
3499
3505
  ctx[key] = injected;
3500
3506
  }
3501
- if (process.env.NODE_ENV !== "production") {
3507
+ if (!!(process.env.NODE_ENV !== "production")) {
3502
3508
  checkDuplicateProperties("Inject" /* INJECT */, key);
3503
3509
  }
3504
3510
  }
@@ -3516,7 +3522,7 @@ function createWatcher(raw, ctx, publicThis, key) {
3516
3522
  const handler = ctx[raw];
3517
3523
  if (isFunction(handler)) {
3518
3524
  watch(getter, handler);
3519
- } else if (process.env.NODE_ENV !== "production") {
3525
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3520
3526
  warn(`Invalid watch handler specified by key "${raw}"`, handler);
3521
3527
  }
3522
3528
  } else if (isFunction(raw)) {
@@ -3528,11 +3534,11 @@ function createWatcher(raw, ctx, publicThis, key) {
3528
3534
  const handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx[raw.handler];
3529
3535
  if (isFunction(handler)) {
3530
3536
  watch(getter, handler, raw);
3531
- } else if (process.env.NODE_ENV !== "production") {
3537
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3532
3538
  warn(`Invalid watch handler specified by key "${raw.handler}"`, handler);
3533
3539
  }
3534
3540
  }
3535
- } else if (process.env.NODE_ENV !== "production") {
3541
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3536
3542
  warn(`Invalid watch option: "${key}"`, raw);
3537
3543
  }
3538
3544
  }
@@ -3578,7 +3584,7 @@ function mergeOptions(to, from, strats, asMixin = false) {
3578
3584
  }
3579
3585
  for (const key in from) {
3580
3586
  if (asMixin && key === "expose") {
3581
- process.env.NODE_ENV !== "production" && warn(
3587
+ !!(process.env.NODE_ENV !== "production") && warn(
3582
3588
  `"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.`
3583
3589
  );
3584
3590
  } else {
@@ -3706,18 +3712,18 @@ function createAppAPI(render, hydrate) {
3706
3712
  rootComponent = extend({}, rootComponent);
3707
3713
  }
3708
3714
  if (rootProps != null && !isObject(rootProps)) {
3709
- process.env.NODE_ENV !== "production" && warn(`root props passed to app.mount() must be an object.`);
3715
+ !!(process.env.NODE_ENV !== "production") && warn(`root props passed to app.mount() must be an object.`);
3710
3716
  rootProps = null;
3711
3717
  }
3712
3718
  const context = createAppContext();
3713
- if (process.env.NODE_ENV !== "production") {
3719
+ if (!!(process.env.NODE_ENV !== "production")) {
3714
3720
  Object.defineProperty(context.config, "unwrapInjectedRef", {
3715
3721
  get() {
3716
3722
  return true;
3717
3723
  },
3718
3724
  set() {
3719
3725
  warn(
3720
- `app.config.unwrapInjectedRef has been deprecated. 3.3 now alawys unwraps injected refs in Options API.`
3726
+ `app.config.unwrapInjectedRef has been deprecated. 3.3 now always unwraps injected refs in Options API.`
3721
3727
  );
3722
3728
  }
3723
3729
  });
@@ -3736,7 +3742,7 @@ function createAppAPI(render, hydrate) {
3736
3742
  return context.config;
3737
3743
  },
3738
3744
  set config(v) {
3739
- if (process.env.NODE_ENV !== "production") {
3745
+ if (!!(process.env.NODE_ENV !== "production")) {
3740
3746
  warn(
3741
3747
  `app.config cannot be replaced. Modify individual options instead.`
3742
3748
  );
@@ -3744,14 +3750,14 @@ function createAppAPI(render, hydrate) {
3744
3750
  },
3745
3751
  use(plugin, ...options) {
3746
3752
  if (installedPlugins.has(plugin)) {
3747
- process.env.NODE_ENV !== "production" && warn(`Plugin has already been applied to target app.`);
3753
+ !!(process.env.NODE_ENV !== "production") && warn(`Plugin has already been applied to target app.`);
3748
3754
  } else if (plugin && isFunction(plugin.install)) {
3749
3755
  installedPlugins.add(plugin);
3750
3756
  plugin.install(app, ...options);
3751
3757
  } else if (isFunction(plugin)) {
3752
3758
  installedPlugins.add(plugin);
3753
3759
  plugin(app, ...options);
3754
- } else if (process.env.NODE_ENV !== "production") {
3760
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3755
3761
  warn(
3756
3762
  `A plugin must either be a function or an object with an "install" function.`
3757
3763
  );
@@ -3762,37 +3768,37 @@ function createAppAPI(render, hydrate) {
3762
3768
  if (__VUE_OPTIONS_API__) {
3763
3769
  if (!context.mixins.includes(mixin)) {
3764
3770
  context.mixins.push(mixin);
3765
- } else if (process.env.NODE_ENV !== "production") {
3771
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3766
3772
  warn(
3767
3773
  "Mixin has already been applied to target app" + (mixin.name ? `: ${mixin.name}` : "")
3768
3774
  );
3769
3775
  }
3770
- } else if (process.env.NODE_ENV !== "production") {
3776
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3771
3777
  warn("Mixins are only available in builds supporting Options API");
3772
3778
  }
3773
3779
  return app;
3774
3780
  },
3775
3781
  component(name, component) {
3776
- if (process.env.NODE_ENV !== "production") {
3782
+ if (!!(process.env.NODE_ENV !== "production")) {
3777
3783
  validateComponentName(name, context.config);
3778
3784
  }
3779
3785
  if (!component) {
3780
3786
  return context.components[name];
3781
3787
  }
3782
- if (process.env.NODE_ENV !== "production" && context.components[name]) {
3788
+ if (!!(process.env.NODE_ENV !== "production") && context.components[name]) {
3783
3789
  warn(`Component "${name}" has already been registered in target app.`);
3784
3790
  }
3785
3791
  context.components[name] = component;
3786
3792
  return app;
3787
3793
  },
3788
3794
  directive(name, directive) {
3789
- if (process.env.NODE_ENV !== "production") {
3795
+ if (!!(process.env.NODE_ENV !== "production")) {
3790
3796
  validateDirectiveName(name);
3791
3797
  }
3792
3798
  if (!directive) {
3793
3799
  return context.directives[name];
3794
3800
  }
3795
- if (process.env.NODE_ENV !== "production" && context.directives[name]) {
3801
+ if (!!(process.env.NODE_ENV !== "production") && context.directives[name]) {
3796
3802
  warn(`Directive "${name}" has already been registered in target app.`);
3797
3803
  }
3798
3804
  context.directives[name] = directive;
@@ -3800,18 +3806,15 @@ function createAppAPI(render, hydrate) {
3800
3806
  },
3801
3807
  mount(rootContainer, isHydrate, isSVG) {
3802
3808
  if (!isMounted) {
3803
- if (process.env.NODE_ENV !== "production" && rootContainer.__vue_app__) {
3809
+ if (!!(process.env.NODE_ENV !== "production") && rootContainer.__vue_app__) {
3804
3810
  warn(
3805
3811
  `There is already an app instance mounted on the host container.
3806
3812
  If you want to mount another app on the same host container, you need to unmount the previous app by calling \`app.unmount()\` first.`
3807
3813
  );
3808
3814
  }
3809
- const vnode = createVNode(
3810
- rootComponent,
3811
- rootProps
3812
- );
3815
+ const vnode = createVNode(rootComponent, rootProps);
3813
3816
  vnode.appContext = context;
3814
- if (process.env.NODE_ENV !== "production") {
3817
+ if (!!(process.env.NODE_ENV !== "production")) {
3815
3818
  context.reload = () => {
3816
3819
  render(cloneVNode(vnode), rootContainer, isSVG);
3817
3820
  };
@@ -3824,12 +3827,12 @@ function createAppAPI(render, hydrate) {
3824
3827
  isMounted = true;
3825
3828
  app._container = rootContainer;
3826
3829
  rootContainer.__vue_app__ = app;
3827
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
3830
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
3828
3831
  app._instance = vnode.component;
3829
3832
  devtoolsInitApp(app, version);
3830
3833
  }
3831
3834
  return getExposeProxy(vnode.component) || vnode.component.proxy;
3832
- } else if (process.env.NODE_ENV !== "production") {
3835
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3833
3836
  warn(
3834
3837
  `App has already been mounted.
3835
3838
  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)\``
@@ -3839,17 +3842,17 @@ If you want to remount the same app, move your app creation logic into a factory
3839
3842
  unmount() {
3840
3843
  if (isMounted) {
3841
3844
  render(null, app._container);
3842
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
3845
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
3843
3846
  app._instance = null;
3844
3847
  devtoolsUnmountApp(app);
3845
3848
  }
3846
3849
  delete app._container.__vue_app__;
3847
- } else if (process.env.NODE_ENV !== "production") {
3850
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3848
3851
  warn(`Cannot unmount an app that is not mounted.`);
3849
3852
  }
3850
3853
  },
3851
3854
  provide(key, value) {
3852
- if (process.env.NODE_ENV !== "production" && key in context.provides) {
3855
+ if (!!(process.env.NODE_ENV !== "production") && key in context.provides) {
3853
3856
  warn(
3854
3857
  `App already provides property with key "${String(key)}". It will be overwritten with the new value.`
3855
3858
  );
@@ -3873,7 +3876,7 @@ let currentApp = null;
3873
3876
 
3874
3877
  function provide(key, value) {
3875
3878
  if (!currentInstance) {
3876
- if (process.env.NODE_ENV !== "production") {
3879
+ if (!!(process.env.NODE_ENV !== "production")) {
3877
3880
  warn(`provide() can only be used inside setup().`);
3878
3881
  }
3879
3882
  } else {
@@ -3893,10 +3896,10 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
3893
3896
  return provides[key];
3894
3897
  } else if (arguments.length > 1) {
3895
3898
  return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
3896
- } else if (process.env.NODE_ENV !== "production") {
3899
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3897
3900
  warn(`injection "${String(key)}" not found.`);
3898
3901
  }
3899
- } else if (process.env.NODE_ENV !== "production") {
3902
+ } else if (!!(process.env.NODE_ENV !== "production")) {
3900
3903
  warn(`inject() can only be used inside setup() or functional components.`);
3901
3904
  }
3902
3905
  }
@@ -3915,7 +3918,7 @@ function initProps(instance, rawProps, isStateful, isSSR = false) {
3915
3918
  props[key] = void 0;
3916
3919
  }
3917
3920
  }
3918
- if (process.env.NODE_ENV !== "production") {
3921
+ if (!!(process.env.NODE_ENV !== "production")) {
3919
3922
  validateProps(rawProps || {}, props, instance);
3920
3923
  }
3921
3924
  if (isStateful) {
@@ -3949,7 +3952,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
3949
3952
  // always force full diff in dev
3950
3953
  // - #1942 if hmr is enabled with sfc component
3951
3954
  // - vite#872 non-sfc component used by sfc component
3952
- !(process.env.NODE_ENV !== "production" && isInHmrContext(instance)) && (optimized || patchFlag > 0) && !(patchFlag & 16)
3955
+ !(!!(process.env.NODE_ENV !== "production") && isInHmrContext(instance)) && (optimized || patchFlag > 0) && !(patchFlag & 16)
3953
3956
  ) {
3954
3957
  if (patchFlag & 8) {
3955
3958
  const propsToUpdate = instance.vnode.dynamicProps;
@@ -4026,7 +4029,7 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
4026
4029
  if (hasAttrsChanged) {
4027
4030
  trigger(instance, "set", "$attrs");
4028
4031
  }
4029
- if (process.env.NODE_ENV !== "production") {
4032
+ if (!!(process.env.NODE_ENV !== "production")) {
4030
4033
  validateProps(rawProps || {}, props, instance);
4031
4034
  }
4032
4035
  }
@@ -4140,7 +4143,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
4140
4143
  }
4141
4144
  if (isArray(raw)) {
4142
4145
  for (let i = 0; i < raw.length; i++) {
4143
- if (process.env.NODE_ENV !== "production" && !isString(raw[i])) {
4146
+ if (!!(process.env.NODE_ENV !== "production") && !isString(raw[i])) {
4144
4147
  warn(`props must be strings when using array syntax.`, raw[i]);
4145
4148
  }
4146
4149
  const normalizedKey = camelize(raw[i]);
@@ -4149,7 +4152,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
4149
4152
  }
4150
4153
  }
4151
4154
  } else if (raw) {
4152
- if (process.env.NODE_ENV !== "production" && !isObject(raw)) {
4155
+ if (!!(process.env.NODE_ENV !== "production") && !isObject(raw)) {
4153
4156
  warn(`invalid props options`, raw);
4154
4157
  }
4155
4158
  for (const key in raw) {
@@ -4178,7 +4181,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
4178
4181
  function validatePropName(key) {
4179
4182
  if (key[0] !== "$") {
4180
4183
  return true;
4181
- } else if (process.env.NODE_ENV !== "production") {
4184
+ } else if (!!(process.env.NODE_ENV !== "production")) {
4182
4185
  warn(`Invalid prop name: "${key}" is a reserved property.`);
4183
4186
  }
4184
4187
  return false;
@@ -4305,7 +4308,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
4305
4308
  return rawSlot;
4306
4309
  }
4307
4310
  const normalized = withCtx((...args) => {
4308
- if (process.env.NODE_ENV !== "production" && currentInstance) {
4311
+ if (!!(process.env.NODE_ENV !== "production") && currentInstance) {
4309
4312
  warn(
4310
4313
  `Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
4311
4314
  );
@@ -4324,7 +4327,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
4324
4327
  if (isFunction(value)) {
4325
4328
  slots[key] = normalizeSlot(key, value, ctx);
4326
4329
  } else if (value != null) {
4327
- if (process.env.NODE_ENV !== "production" && true) {
4330
+ if (!!(process.env.NODE_ENV !== "production") && true) {
4328
4331
  warn(
4329
4332
  `Non-function value encountered for slot "${key}". Prefer function slots for better performance.`
4330
4333
  );
@@ -4335,7 +4338,7 @@ const normalizeObjectSlots = (rawSlots, slots, instance) => {
4335
4338
  }
4336
4339
  };
4337
4340
  const normalizeVNodeSlots = (instance, children) => {
4338
- if (process.env.NODE_ENV !== "production" && !isKeepAlive(instance.vnode) && true) {
4341
+ if (!!(process.env.NODE_ENV !== "production") && !isKeepAlive(instance.vnode) && true) {
4339
4342
  warn(
4340
4343
  `Non-function value encountered for default slot. Prefer function slots for better performance.`
4341
4344
  );
@@ -4369,7 +4372,7 @@ const updateSlots = (instance, children, optimized) => {
4369
4372
  if (vnode.shapeFlag & 32) {
4370
4373
  const type = children._;
4371
4374
  if (type) {
4372
- if (process.env.NODE_ENV !== "production" && isHmrUpdating) {
4375
+ if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
4373
4376
  extend(slots, children);
4374
4377
  trigger(instance, "set", "$slots");
4375
4378
  } else if (optimized && type === 1) {
@@ -4417,7 +4420,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
4417
4420
  const refValue = vnode.shapeFlag & 4 ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el;
4418
4421
  const value = isUnmount ? null : refValue;
4419
4422
  const { i: owner, r: ref } = rawRef;
4420
- if (process.env.NODE_ENV !== "production" && !owner) {
4423
+ if (!!(process.env.NODE_ENV !== "production") && !owner) {
4421
4424
  warn(
4422
4425
  `Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`
4423
4426
  );
@@ -4472,7 +4475,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
4472
4475
  ref.value = value;
4473
4476
  if (rawRef.k)
4474
4477
  refs[rawRef.k] = value;
4475
- } else if (process.env.NODE_ENV !== "production") {
4478
+ } else if (!!(process.env.NODE_ENV !== "production")) {
4476
4479
  warn("Invalid template ref type:", ref, `(${typeof ref})`);
4477
4480
  }
4478
4481
  };
@@ -4482,7 +4485,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
4482
4485
  } else {
4483
4486
  doSet();
4484
4487
  }
4485
- } else if (process.env.NODE_ENV !== "production") {
4488
+ } else if (!!(process.env.NODE_ENV !== "production")) {
4486
4489
  warn("Invalid template ref type:", ref, `(${typeof ref})`);
4487
4490
  }
4488
4491
  }
@@ -4507,7 +4510,7 @@ function createHydrationFunctions(rendererInternals) {
4507
4510
  } = rendererInternals;
4508
4511
  const hydrate = (vnode, container) => {
4509
4512
  if (!container.hasChildNodes()) {
4510
- process.env.NODE_ENV !== "production" && warn(
4513
+ !!(process.env.NODE_ENV !== "production") && warn(
4511
4514
  `Attempting to hydrate existing markup but container is empty. Performing full mount instead.`
4512
4515
  );
4513
4516
  patch(null, vnode, container);
@@ -4552,10 +4555,13 @@ function createHydrationFunctions(rendererInternals) {
4552
4555
  }
4553
4556
  } else {
4554
4557
  if (node.data !== vnode.children) {
4555
- hasMismatch = true(process.env.NODE_ENV !== "production") && warn(
4558
+ hasMismatch = true;
4559
+ !!(process.env.NODE_ENV !== "production") && warn(
4556
4560
  `Hydration text mismatch:
4557
- - Client: ${JSON.stringify(node.data)}
4558
- - Server: ${JSON.stringify(vnode.children)}`
4561
+ - Server rendered: ${JSON.stringify(
4562
+ node.data
4563
+ )}
4564
+ - Client rendered: ${JSON.stringify(vnode.children)}`
4559
4565
  );
4560
4566
  node.data = vnode.children;
4561
4567
  }
@@ -4672,7 +4678,7 @@ function createHydrationFunctions(rendererInternals) {
4672
4678
  rendererInternals,
4673
4679
  hydrateNode
4674
4680
  );
4675
- } else if (process.env.NODE_ENV !== "production") {
4681
+ } else if (!!(process.env.NODE_ENV !== "production")) {
4676
4682
  warn("Invalid HostVNode type:", type, `(${typeof type})`);
4677
4683
  }
4678
4684
  }
@@ -4685,7 +4691,7 @@ function createHydrationFunctions(rendererInternals) {
4685
4691
  optimized = optimized || !!vnode.dynamicChildren;
4686
4692
  const { type, props, patchFlag, shapeFlag, dirs } = vnode;
4687
4693
  const forcePatchValue = type === "input" && dirs || type === "option";
4688
- if (process.env.NODE_ENV !== "production" || forcePatchValue || patchFlag !== -1) {
4694
+ if (!!(process.env.NODE_ENV !== "production") || forcePatchValue || patchFlag !== -1) {
4689
4695
  if (dirs) {
4690
4696
  invokeDirectiveHook(vnode, null, parentComponent, "created");
4691
4697
  }
@@ -4743,7 +4749,7 @@ function createHydrationFunctions(rendererInternals) {
4743
4749
  let hasWarned = false;
4744
4750
  while (next) {
4745
4751
  hasMismatch = true;
4746
- if (process.env.NODE_ENV !== "production" && !hasWarned) {
4752
+ if (!!(process.env.NODE_ENV !== "production") && !hasWarned) {
4747
4753
  warn(
4748
4754
  `Hydration children mismatch in <${vnode.type}>: server rendered element contains more child nodes than client vdom.`
4749
4755
  );
@@ -4755,10 +4761,11 @@ function createHydrationFunctions(rendererInternals) {
4755
4761
  }
4756
4762
  } else if (shapeFlag & 8) {
4757
4763
  if (el.textContent !== vnode.children) {
4758
- hasMismatch = true(process.env.NODE_ENV !== "production") && warn(
4764
+ hasMismatch = true;
4765
+ !!(process.env.NODE_ENV !== "production") && warn(
4759
4766
  `Hydration text content mismatch in <${vnode.type}>:
4760
- - Client: ${el.textContent}
4761
- - Server: ${vnode.children}`
4767
+ - Server rendered: ${el.textContent}
4768
+ - Client rendered: ${vnode.children}`
4762
4769
  );
4763
4770
  el.textContent = vnode.children;
4764
4771
  }
@@ -4786,7 +4793,7 @@ function createHydrationFunctions(rendererInternals) {
4786
4793
  continue;
4787
4794
  } else {
4788
4795
  hasMismatch = true;
4789
- if (process.env.NODE_ENV !== "production" && !hasWarned) {
4796
+ if (!!(process.env.NODE_ENV !== "production") && !hasWarned) {
4790
4797
  warn(
4791
4798
  `Hydration children mismatch in <${container.tagName.toLowerCase()}>: server rendered element contains fewer child nodes than client vdom.`
4792
4799
  );
@@ -4830,7 +4837,8 @@ function createHydrationFunctions(rendererInternals) {
4830
4837
  }
4831
4838
  };
4832
4839
  const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
4833
- hasMismatch = true(process.env.NODE_ENV !== "production") && warn(
4840
+ hasMismatch = true;
4841
+ !!(process.env.NODE_ENV !== "production") && warn(
4834
4842
  `Hydration node mismatch:
4835
4843
  - Client vnode:`,
4836
4844
  vnode.type,
@@ -4893,7 +4901,7 @@ function startMeasure(instance, type) {
4893
4901
  if (instance.appContext.config.performance && isSupported()) {
4894
4902
  perf.mark(`vue-${type}-${instance.uid}`);
4895
4903
  }
4896
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
4904
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
4897
4905
  devtoolsPerfStart(instance, type, isSupported() ? perf.now() : Date.now());
4898
4906
  }
4899
4907
  }
@@ -4910,7 +4918,7 @@ function endMeasure(instance, type) {
4910
4918
  perf.clearMarks(startTag);
4911
4919
  perf.clearMarks(endTag);
4912
4920
  }
4913
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
4921
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
4914
4922
  devtoolsPerfEnd(instance, type, isSupported() ? perf.now() : Date.now());
4915
4923
  }
4916
4924
  }
@@ -4930,14 +4938,14 @@ function isSupported() {
4930
4938
  function initFeatureFlags() {
4931
4939
  const needWarn = [];
4932
4940
  if (typeof __VUE_OPTIONS_API__ !== "boolean") {
4933
- process.env.NODE_ENV !== "production" && needWarn.push(`__VUE_OPTIONS_API__`);
4941
+ !!(process.env.NODE_ENV !== "production") && needWarn.push(`__VUE_OPTIONS_API__`);
4934
4942
  getGlobalThis().__VUE_OPTIONS_API__ = true;
4935
4943
  }
4936
4944
  if (typeof __VUE_PROD_DEVTOOLS__ !== "boolean") {
4937
- process.env.NODE_ENV !== "production" && needWarn.push(`__VUE_PROD_DEVTOOLS__`);
4945
+ !!(process.env.NODE_ENV !== "production") && needWarn.push(`__VUE_PROD_DEVTOOLS__`);
4938
4946
  getGlobalThis().__VUE_PROD_DEVTOOLS__ = false;
4939
4947
  }
4940
- if (process.env.NODE_ENV !== "production" && needWarn.length) {
4948
+ if (!!(process.env.NODE_ENV !== "production") && needWarn.length) {
4941
4949
  const multi = needWarn.length > 1;
4942
4950
  console.warn(
4943
4951
  `Feature flag${multi ? `s` : ``} ${needWarn.join(", ")} ${multi ? `are` : `is`} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
@@ -4960,7 +4968,7 @@ function baseCreateRenderer(options, createHydrationFns) {
4960
4968
  }
4961
4969
  const target = getGlobalThis();
4962
4970
  target.__VUE__ = true;
4963
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
4971
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
4964
4972
  setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
4965
4973
  }
4966
4974
  const {
@@ -4977,7 +4985,7 @@ function baseCreateRenderer(options, createHydrationFns) {
4977
4985
  setScopeId: hostSetScopeId = NOOP,
4978
4986
  insertStaticContent: hostInsertStaticContent
4979
4987
  } = options;
4980
- const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = process.env.NODE_ENV !== "production" && isHmrUpdating ? false : !!n2.dynamicChildren) => {
4988
+ const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = !!(process.env.NODE_ENV !== "production") && isHmrUpdating ? false : !!n2.dynamicChildren) => {
4981
4989
  if (n1 === n2) {
4982
4990
  return;
4983
4991
  }
@@ -5001,7 +5009,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5001
5009
  case Static:
5002
5010
  if (n1 == null) {
5003
5011
  mountStaticNode(n2, container, anchor, isSVG);
5004
- } else if (process.env.NODE_ENV !== "production") {
5012
+ } else if (!!(process.env.NODE_ENV !== "production")) {
5005
5013
  patchStaticNode(n1, n2, container, isSVG);
5006
5014
  }
5007
5015
  break;
@@ -5069,7 +5077,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5069
5077
  optimized,
5070
5078
  internals
5071
5079
  );
5072
- } else if (process.env.NODE_ENV !== "production") {
5080
+ } else if (!!(process.env.NODE_ENV !== "production")) {
5073
5081
  warn("Invalid VNode type:", type, `(${typeof type})`);
5074
5082
  }
5075
5083
  }
@@ -5221,7 +5229,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5221
5229
  invokeVNodeHook(vnodeHook, parentComponent, vnode);
5222
5230
  }
5223
5231
  }
5224
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
5232
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
5225
5233
  Object.defineProperty(el, "__vnode", {
5226
5234
  value: vnode,
5227
5235
  enumerable: false
@@ -5258,7 +5266,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5258
5266
  }
5259
5267
  if (parentComponent) {
5260
5268
  let subTree = parentComponent.subTree;
5261
- if (process.env.NODE_ENV !== "production" && subTree.patchFlag > 0 && subTree.patchFlag & 2048) {
5269
+ if (!!(process.env.NODE_ENV !== "production") && subTree.patchFlag > 0 && subTree.patchFlag & 2048) {
5262
5270
  subTree = filterSingleRoot(subTree.children) || subTree;
5263
5271
  }
5264
5272
  if (vnode === subTree) {
@@ -5304,7 +5312,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5304
5312
  invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate");
5305
5313
  }
5306
5314
  parentComponent && toggleRecurse(parentComponent, true);
5307
- if (process.env.NODE_ENV !== "production" && isHmrUpdating) {
5315
+ if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
5308
5316
  patchFlag = 0;
5309
5317
  optimized = false;
5310
5318
  dynamicChildren = null;
@@ -5320,7 +5328,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5320
5328
  areChildrenSVG,
5321
5329
  slotScopeIds
5322
5330
  );
5323
- if (process.env.NODE_ENV !== "production") {
5331
+ if (!!(process.env.NODE_ENV !== "production")) {
5324
5332
  traverseStaticChildren(n1, n2);
5325
5333
  }
5326
5334
  } else if (!optimized) {
@@ -5479,7 +5487,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5479
5487
  const fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText("");
5480
5488
  const fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText("");
5481
5489
  let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;
5482
- if (process.env.NODE_ENV !== "production" && // #5523 dev root fragment may inherit directives
5490
+ if (!!(process.env.NODE_ENV !== "production") && // #5523 dev root fragment may inherit directives
5483
5491
  (isHmrUpdating || patchFlag & 2048)) {
5484
5492
  patchFlag = 0;
5485
5493
  optimized = false;
@@ -5514,7 +5522,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5514
5522
  isSVG,
5515
5523
  slotScopeIds
5516
5524
  );
5517
- if (process.env.NODE_ENV !== "production") {
5525
+ if (!!(process.env.NODE_ENV !== "production")) {
5518
5526
  traverseStaticChildren(n1, n2);
5519
5527
  } else if (
5520
5528
  // #2080 if the stable fragment has a key, it's a <template v-for> that may
@@ -5577,10 +5585,10 @@ function baseCreateRenderer(options, createHydrationFns) {
5577
5585
  parentComponent,
5578
5586
  parentSuspense
5579
5587
  ));
5580
- if (process.env.NODE_ENV !== "production" && instance.type.__hmrId) {
5588
+ if (!!(process.env.NODE_ENV !== "production") && instance.type.__hmrId) {
5581
5589
  registerHMR(instance);
5582
5590
  }
5583
- if (process.env.NODE_ENV !== "production") {
5591
+ if (!!(process.env.NODE_ENV !== "production")) {
5584
5592
  pushWarningContext(initialVNode);
5585
5593
  startMeasure(instance, `mount`);
5586
5594
  }
@@ -5588,11 +5596,11 @@ function baseCreateRenderer(options, createHydrationFns) {
5588
5596
  instance.ctx.renderer = internals;
5589
5597
  }
5590
5598
  {
5591
- if (process.env.NODE_ENV !== "production") {
5599
+ if (!!(process.env.NODE_ENV !== "production")) {
5592
5600
  startMeasure(instance, `init`);
5593
5601
  }
5594
5602
  setupComponent(instance);
5595
- if (process.env.NODE_ENV !== "production") {
5603
+ if (!!(process.env.NODE_ENV !== "production")) {
5596
5604
  endMeasure(instance, `init`);
5597
5605
  }
5598
5606
  }
@@ -5613,7 +5621,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5613
5621
  isSVG,
5614
5622
  optimized
5615
5623
  );
5616
- if (process.env.NODE_ENV !== "production") {
5624
+ if (!!(process.env.NODE_ENV !== "production")) {
5617
5625
  popWarningContext();
5618
5626
  endMeasure(instance, `mount`);
5619
5627
  }
@@ -5622,11 +5630,11 @@ function baseCreateRenderer(options, createHydrationFns) {
5622
5630
  const instance = n2.component = n1.component;
5623
5631
  if (shouldUpdateComponent(n1, n2, optimized)) {
5624
5632
  if (instance.asyncDep && !instance.asyncResolved) {
5625
- if (process.env.NODE_ENV !== "production") {
5633
+ if (!!(process.env.NODE_ENV !== "production")) {
5626
5634
  pushWarningContext(n2);
5627
5635
  }
5628
5636
  updateComponentPreRender(instance, n2, optimized);
5629
- if (process.env.NODE_ENV !== "production") {
5637
+ if (!!(process.env.NODE_ENV !== "production")) {
5630
5638
  popWarningContext();
5631
5639
  }
5632
5640
  return;
@@ -5657,14 +5665,14 @@ function baseCreateRenderer(options, createHydrationFns) {
5657
5665
  toggleRecurse(instance, true);
5658
5666
  if (el && hydrateNode) {
5659
5667
  const hydrateSubTree = () => {
5660
- if (process.env.NODE_ENV !== "production") {
5668
+ if (!!(process.env.NODE_ENV !== "production")) {
5661
5669
  startMeasure(instance, `render`);
5662
5670
  }
5663
5671
  instance.subTree = renderComponentRoot(instance);
5664
- if (process.env.NODE_ENV !== "production") {
5672
+ if (!!(process.env.NODE_ENV !== "production")) {
5665
5673
  endMeasure(instance, `render`);
5666
5674
  }
5667
- if (process.env.NODE_ENV !== "production") {
5675
+ if (!!(process.env.NODE_ENV !== "production")) {
5668
5676
  startMeasure(instance, `hydrate`);
5669
5677
  }
5670
5678
  hydrateNode(
@@ -5674,7 +5682,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5674
5682
  parentSuspense,
5675
5683
  null
5676
5684
  );
5677
- if (process.env.NODE_ENV !== "production") {
5685
+ if (!!(process.env.NODE_ENV !== "production")) {
5678
5686
  endMeasure(instance, `hydrate`);
5679
5687
  }
5680
5688
  };
@@ -5690,14 +5698,14 @@ function baseCreateRenderer(options, createHydrationFns) {
5690
5698
  hydrateSubTree();
5691
5699
  }
5692
5700
  } else {
5693
- if (process.env.NODE_ENV !== "production") {
5701
+ if (!!(process.env.NODE_ENV !== "production")) {
5694
5702
  startMeasure(instance, `render`);
5695
5703
  }
5696
5704
  const subTree = instance.subTree = renderComponentRoot(instance);
5697
- if (process.env.NODE_ENV !== "production") {
5705
+ if (!!(process.env.NODE_ENV !== "production")) {
5698
5706
  endMeasure(instance, `render`);
5699
5707
  }
5700
- if (process.env.NODE_ENV !== "production") {
5708
+ if (!!(process.env.NODE_ENV !== "production")) {
5701
5709
  startMeasure(instance, `patch`);
5702
5710
  }
5703
5711
  patch(
@@ -5709,7 +5717,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5709
5717
  parentSuspense,
5710
5718
  isSVG
5711
5719
  );
5712
- if (process.env.NODE_ENV !== "production") {
5720
+ if (!!(process.env.NODE_ENV !== "production")) {
5713
5721
  endMeasure(instance, `patch`);
5714
5722
  }
5715
5723
  initialVNode.el = subTree.el;
@@ -5728,7 +5736,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5728
5736
  instance.a && queuePostRenderEffect(instance.a, parentSuspense);
5729
5737
  }
5730
5738
  instance.isMounted = true;
5731
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
5739
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
5732
5740
  devtoolsComponentAdded(instance);
5733
5741
  }
5734
5742
  initialVNode = container = anchor = null;
@@ -5736,7 +5744,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5736
5744
  let { next, bu, u, parent, vnode } = instance;
5737
5745
  let originNext = next;
5738
5746
  let vnodeHook;
5739
- if (process.env.NODE_ENV !== "production") {
5747
+ if (!!(process.env.NODE_ENV !== "production")) {
5740
5748
  pushWarningContext(next || instance.vnode);
5741
5749
  }
5742
5750
  toggleRecurse(instance, false);
@@ -5753,16 +5761,16 @@ function baseCreateRenderer(options, createHydrationFns) {
5753
5761
  invokeVNodeHook(vnodeHook, parent, next, vnode);
5754
5762
  }
5755
5763
  toggleRecurse(instance, true);
5756
- if (process.env.NODE_ENV !== "production") {
5764
+ if (!!(process.env.NODE_ENV !== "production")) {
5757
5765
  startMeasure(instance, `render`);
5758
5766
  }
5759
5767
  const nextTree = renderComponentRoot(instance);
5760
- if (process.env.NODE_ENV !== "production") {
5768
+ if (!!(process.env.NODE_ENV !== "production")) {
5761
5769
  endMeasure(instance, `render`);
5762
5770
  }
5763
5771
  const prevTree = instance.subTree;
5764
5772
  instance.subTree = nextTree;
5765
- if (process.env.NODE_ENV !== "production") {
5773
+ if (!!(process.env.NODE_ENV !== "production")) {
5766
5774
  startMeasure(instance, `patch`);
5767
5775
  }
5768
5776
  patch(
@@ -5776,7 +5784,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5776
5784
  parentSuspense,
5777
5785
  isSVG
5778
5786
  );
5779
- if (process.env.NODE_ENV !== "production") {
5787
+ if (!!(process.env.NODE_ENV !== "production")) {
5780
5788
  endMeasure(instance, `patch`);
5781
5789
  }
5782
5790
  next.el = nextTree.el;
@@ -5792,10 +5800,10 @@ function baseCreateRenderer(options, createHydrationFns) {
5792
5800
  parentSuspense
5793
5801
  );
5794
5802
  }
5795
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
5803
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
5796
5804
  devtoolsComponentUpdated(instance);
5797
5805
  }
5798
- if (process.env.NODE_ENV !== "production") {
5806
+ if (!!(process.env.NODE_ENV !== "production")) {
5799
5807
  popWarningContext();
5800
5808
  }
5801
5809
  }
@@ -5809,7 +5817,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5809
5817
  const update = instance.update = () => effect.run();
5810
5818
  update.id = instance.uid;
5811
5819
  toggleRecurse(instance, true);
5812
- if (process.env.NODE_ENV !== "production") {
5820
+ if (!!(process.env.NODE_ENV !== "production")) {
5813
5821
  effect.onTrack = instance.rtc ? (e) => invokeArrayFns(instance.rtc, e) : void 0;
5814
5822
  effect.onTrigger = instance.rtg ? (e) => invokeArrayFns(instance.rtg, e) : void 0;
5815
5823
  update.ownerInstance = instance;
@@ -6025,7 +6033,7 @@ function baseCreateRenderer(options, createHydrationFns) {
6025
6033
  for (i = s2; i <= e2; i++) {
6026
6034
  const nextChild = c2[i] = optimized ? cloneIfMounted(c2[i]) : normalizeVNode(c2[i]);
6027
6035
  if (nextChild.key != null) {
6028
- if (process.env.NODE_ENV !== "production" && keyToNewIndexMap.has(nextChild.key)) {
6036
+ if (!!(process.env.NODE_ENV !== "production") && keyToNewIndexMap.has(nextChild.key)) {
6029
6037
  warn(
6030
6038
  `Duplicate keys found during update:`,
6031
6039
  JSON.stringify(nextChild.key),
@@ -6231,7 +6239,7 @@ function baseCreateRenderer(options, createHydrationFns) {
6231
6239
  const remove = (vnode) => {
6232
6240
  const { type, el, anchor, transition } = vnode;
6233
6241
  if (type === Fragment) {
6234
- if (process.env.NODE_ENV !== "production" && vnode.patchFlag > 0 && vnode.patchFlag & 2048 && transition && !transition.persisted) {
6242
+ if (!!(process.env.NODE_ENV !== "production") && vnode.patchFlag > 0 && vnode.patchFlag & 2048 && transition && !transition.persisted) {
6235
6243
  vnode.children.forEach((child) => {
6236
6244
  if (child.type === Comment) {
6237
6245
  hostRemove(child.el);
@@ -6276,7 +6284,7 @@ function baseCreateRenderer(options, createHydrationFns) {
6276
6284
  hostRemove(end);
6277
6285
  };
6278
6286
  const unmountComponent = (instance, parentSuspense, doRemove) => {
6279
- if (process.env.NODE_ENV !== "production" && instance.type.__hmrId) {
6287
+ if (!!(process.env.NODE_ENV !== "production") && instance.type.__hmrId) {
6280
6288
  unregisterHMR(instance);
6281
6289
  }
6282
6290
  const { bum, scope, update, subTree, um } = instance;
@@ -6300,7 +6308,7 @@ function baseCreateRenderer(options, createHydrationFns) {
6300
6308
  parentSuspense.resolve();
6301
6309
  }
6302
6310
  }
6303
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
6311
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
6304
6312
  devtoolsComponentRemoved(instance);
6305
6313
  }
6306
6314
  };
@@ -6376,7 +6384,7 @@ function traverseStaticChildren(n1, n2, shallow = false) {
6376
6384
  if (c2.type === Text) {
6377
6385
  c2.el = c1.el;
6378
6386
  }
6379
- if (process.env.NODE_ENV !== "production" && c2.type === Comment && !c2.el) {
6387
+ if (!!(process.env.NODE_ENV !== "production") && c2.type === Comment && !c2.el) {
6380
6388
  c2.el = c1.el;
6381
6389
  }
6382
6390
  }
@@ -6430,21 +6438,21 @@ const resolveTarget = (props, select) => {
6430
6438
  const targetSelector = props && props.to;
6431
6439
  if (isString(targetSelector)) {
6432
6440
  if (!select) {
6433
- process.env.NODE_ENV !== "production" && warn(
6441
+ !!(process.env.NODE_ENV !== "production") && warn(
6434
6442
  `Current renderer does not support string target for Teleports. (missing querySelector renderer option)`
6435
6443
  );
6436
6444
  return null;
6437
6445
  } else {
6438
6446
  const target = select(targetSelector);
6439
6447
  if (!target) {
6440
- process.env.NODE_ENV !== "production" && warn(
6448
+ !!(process.env.NODE_ENV !== "production") && warn(
6441
6449
  `Failed to locate Teleport target with selector "${targetSelector}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`
6442
6450
  );
6443
6451
  }
6444
6452
  return target;
6445
6453
  }
6446
6454
  } else {
6447
- if (process.env.NODE_ENV !== "production" && !targetSelector && !isTeleportDisabled(props)) {
6455
+ if (!!(process.env.NODE_ENV !== "production") && !targetSelector && !isTeleportDisabled(props)) {
6448
6456
  warn(`Invalid Teleport target: ${targetSelector}`);
6449
6457
  }
6450
6458
  return targetSelector;
@@ -6461,13 +6469,13 @@ const TeleportImpl = {
6461
6469
  } = internals;
6462
6470
  const disabled = isTeleportDisabled(n2.props);
6463
6471
  let { shapeFlag, children, dynamicChildren } = n2;
6464
- if (process.env.NODE_ENV !== "production" && isHmrUpdating) {
6472
+ if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
6465
6473
  optimized = false;
6466
6474
  dynamicChildren = null;
6467
6475
  }
6468
6476
  if (n1 == null) {
6469
- const placeholder = n2.el = process.env.NODE_ENV !== "production" ? createComment("teleport start") : createText("");
6470
- const mainAnchor = n2.anchor = process.env.NODE_ENV !== "production" ? createComment("teleport end") : createText("");
6477
+ const placeholder = n2.el = !!(process.env.NODE_ENV !== "production") ? createComment("teleport start") : createText("");
6478
+ const mainAnchor = n2.anchor = !!(process.env.NODE_ENV !== "production") ? createComment("teleport end") : createText("");
6471
6479
  insert(placeholder, container, anchor);
6472
6480
  insert(mainAnchor, container, anchor);
6473
6481
  const target = n2.target = resolveTarget(n2.props, querySelector);
@@ -6475,7 +6483,7 @@ const TeleportImpl = {
6475
6483
  if (target) {
6476
6484
  insert(targetAnchor, target);
6477
6485
  isSVG = isSVG || isTargetSVG(target);
6478
- } else if (process.env.NODE_ENV !== "production" && !disabled) {
6486
+ } else if (!!(process.env.NODE_ENV !== "production") && !disabled) {
6479
6487
  warn("Invalid Teleport target on mount:", target, `(${typeof target})`);
6480
6488
  }
6481
6489
  const mount = (container2, anchor2) => {
@@ -6539,6 +6547,10 @@ const TeleportImpl = {
6539
6547
  internals,
6540
6548
  1
6541
6549
  );
6550
+ } else {
6551
+ if (n2.props && n1.props && n2.props.to !== n1.props.to) {
6552
+ n2.props.to = n1.props.to;
6553
+ }
6542
6554
  }
6543
6555
  } else {
6544
6556
  if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) {
@@ -6554,7 +6566,7 @@ const TeleportImpl = {
6554
6566
  internals,
6555
6567
  0
6556
6568
  );
6557
- } else if (process.env.NODE_ENV !== "production") {
6569
+ } else if (!!(process.env.NODE_ENV !== "production")) {
6558
6570
  warn(
6559
6571
  "Invalid Teleport target on update:",
6560
6572
  target,
@@ -6740,7 +6752,7 @@ function isVNode(value) {
6740
6752
  return value ? value.__v_isVNode === true : false;
6741
6753
  }
6742
6754
  function isSameVNodeType(n1, n2) {
6743
- if (process.env.NODE_ENV !== "production" && n2.shapeFlag & 6 && hmrDirtyComponents.has(n2.type)) {
6755
+ if (!!(process.env.NODE_ENV !== "production") && n2.shapeFlag & 6 && hmrDirtyComponents.has(n2.type)) {
6744
6756
  n1.shapeFlag &= ~256;
6745
6757
  n2.shapeFlag &= ~512;
6746
6758
  return false;
@@ -6805,7 +6817,7 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
6805
6817
  } else if (children) {
6806
6818
  vnode.shapeFlag |= isString(children) ? 8 : 16;
6807
6819
  }
6808
- if (process.env.NODE_ENV !== "production" && vnode.key !== vnode.key) {
6820
+ if (!!(process.env.NODE_ENV !== "production") && vnode.key !== vnode.key) {
6809
6821
  warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
6810
6822
  }
6811
6823
  if (isBlockTreeEnabled > 0 && // avoid a block node from tracking itself
@@ -6821,10 +6833,10 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
6821
6833
  }
6822
6834
  return vnode;
6823
6835
  }
6824
- const createVNode = process.env.NODE_ENV !== "production" ? createVNodeWithArgsTransform : _createVNode;
6836
+ const createVNode = !!(process.env.NODE_ENV !== "production") ? createVNodeWithArgsTransform : _createVNode;
6825
6837
  function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
6826
6838
  if (!type || type === NULL_DYNAMIC_COMPONENT) {
6827
- if (process.env.NODE_ENV !== "production" && !type) {
6839
+ if (!!(process.env.NODE_ENV !== "production") && !type) {
6828
6840
  warn(`Invalid vnode type when creating vnode: ${type}.`);
6829
6841
  }
6830
6842
  type = Comment;
@@ -6866,7 +6878,7 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
6866
6878
  }
6867
6879
  }
6868
6880
  const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0;
6869
- if (process.env.NODE_ENV !== "production" && shapeFlag & 4 && isProxy(type)) {
6881
+ if (!!(process.env.NODE_ENV !== "production") && shapeFlag & 4 && isProxy(type)) {
6870
6882
  type = toRaw(type);
6871
6883
  warn(
6872
6884
  `Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with \`markRaw\` or using \`shallowRef\` instead of \`ref\`.`,
@@ -6908,7 +6920,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
6908
6920
  ) : ref,
6909
6921
  scopeId: vnode.scopeId,
6910
6922
  slotScopeIds: vnode.slotScopeIds,
6911
- children: process.env.NODE_ENV !== "production" && patchFlag === -1 && isArray(children) ? children.map(deepCloneVNode) : children,
6923
+ children: !!(process.env.NODE_ENV !== "production") && patchFlag === -1 && isArray(children) ? children.map(deepCloneVNode) : children,
6912
6924
  target: vnode.target,
6913
6925
  targetAnchor: vnode.targetAnchor,
6914
6926
  staticCount: vnode.staticCount,
@@ -7132,7 +7144,7 @@ function createComponentInstance(vnode, parent, suspense) {
7132
7144
  ec: null,
7133
7145
  sp: null
7134
7146
  };
7135
- if (process.env.NODE_ENV !== "production") {
7147
+ if (!!(process.env.NODE_ENV !== "production")) {
7136
7148
  instance.ctx = createDevRenderContext(instance);
7137
7149
  } else {
7138
7150
  instance.ctx = { _: instance };
@@ -7196,7 +7208,7 @@ function setupComponent(instance, isSSR = false) {
7196
7208
  function setupStatefulComponent(instance, isSSR) {
7197
7209
  var _a;
7198
7210
  const Component = instance.type;
7199
- if (process.env.NODE_ENV !== "production") {
7211
+ if (!!(process.env.NODE_ENV !== "production")) {
7200
7212
  if (Component.name) {
7201
7213
  validateComponentName(Component.name, instance.appContext.config);
7202
7214
  }
@@ -7220,7 +7232,7 @@ function setupStatefulComponent(instance, isSSR) {
7220
7232
  }
7221
7233
  instance.accessCache = /* @__PURE__ */ Object.create(null);
7222
7234
  instance.proxy = markRaw(new Proxy(instance.ctx, PublicInstanceProxyHandlers));
7223
- if (process.env.NODE_ENV !== "production") {
7235
+ if (!!(process.env.NODE_ENV !== "production")) {
7224
7236
  exposePropsOnRenderContext(instance);
7225
7237
  }
7226
7238
  const { setup } = Component;
@@ -7232,7 +7244,7 @@ function setupStatefulComponent(instance, isSSR) {
7232
7244
  setup,
7233
7245
  instance,
7234
7246
  0,
7235
- [process.env.NODE_ENV !== "production" ? shallowReadonly(instance.props) : instance.props, setupContext]
7247
+ [!!(process.env.NODE_ENV !== "production") ? shallowReadonly(instance.props) : instance.props, setupContext]
7236
7248
  );
7237
7249
  resetTracking();
7238
7250
  unsetCurrentInstance();
@@ -7246,7 +7258,7 @@ function setupStatefulComponent(instance, isSSR) {
7246
7258
  });
7247
7259
  } else {
7248
7260
  instance.asyncDep = setupResult;
7249
- if (process.env.NODE_ENV !== "production" && !instance.suspense) {
7261
+ if (!!(process.env.NODE_ENV !== "production") && !instance.suspense) {
7250
7262
  const name = (_a = Component.name) != null ? _a : "Anonymous";
7251
7263
  warn(
7252
7264
  `Component <${name}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`
@@ -7268,19 +7280,19 @@ function handleSetupResult(instance, setupResult, isSSR) {
7268
7280
  instance.render = setupResult;
7269
7281
  }
7270
7282
  } else if (isObject(setupResult)) {
7271
- if (process.env.NODE_ENV !== "production" && isVNode(setupResult)) {
7283
+ if (!!(process.env.NODE_ENV !== "production") && isVNode(setupResult)) {
7272
7284
  warn(
7273
7285
  `setup() should not return VNodes directly - return a render function instead.`
7274
7286
  );
7275
7287
  }
7276
- if (process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) {
7288
+ if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
7277
7289
  instance.devtoolsRawSetupState = setupResult;
7278
7290
  }
7279
7291
  instance.setupState = proxyRefs(setupResult);
7280
- if (process.env.NODE_ENV !== "production") {
7292
+ if (!!(process.env.NODE_ENV !== "production")) {
7281
7293
  exposeSetupStateOnRenderContext(instance);
7282
7294
  }
7283
- } else if (process.env.NODE_ENV !== "production" && setupResult !== void 0) {
7295
+ } else if (!!(process.env.NODE_ENV !== "production") && setupResult !== void 0) {
7284
7296
  warn(
7285
7297
  `setup() should return an object. Received: ${setupResult === null ? "null" : typeof setupResult}`
7286
7298
  );
@@ -7304,7 +7316,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
7304
7316
  if (!isSSR && compile && !Component.render) {
7305
7317
  const template = Component.template || resolveMergedOptions(instance).template;
7306
7318
  if (template) {
7307
- if (process.env.NODE_ENV !== "production") {
7319
+ if (!!(process.env.NODE_ENV !== "production")) {
7308
7320
  startMeasure(instance, `compile`);
7309
7321
  }
7310
7322
  const { isCustomElement, compilerOptions } = instance.appContext.config;
@@ -7320,7 +7332,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
7320
7332
  componentCompilerOptions
7321
7333
  );
7322
7334
  Component.render = compile(template, finalCompilerOptions);
7323
- if (process.env.NODE_ENV !== "production") {
7335
+ if (!!(process.env.NODE_ENV !== "production")) {
7324
7336
  endMeasure(instance, `compile`);
7325
7337
  }
7326
7338
  }
@@ -7333,11 +7345,14 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
7333
7345
  if (__VUE_OPTIONS_API__ && true) {
7334
7346
  setCurrentInstance(instance);
7335
7347
  pauseTracking();
7336
- applyOptions(instance);
7337
- resetTracking();
7338
- unsetCurrentInstance();
7348
+ try {
7349
+ applyOptions(instance);
7350
+ } finally {
7351
+ resetTracking();
7352
+ unsetCurrentInstance();
7353
+ }
7339
7354
  }
7340
- if (process.env.NODE_ENV !== "production" && !Component.render && instance.render === NOOP && !isSSR) {
7355
+ if (!!(process.env.NODE_ENV !== "production") && !Component.render && instance.render === NOOP && !isSSR) {
7341
7356
  if (!compile && Component.template) {
7342
7357
  warn(
7343
7358
  `Component provided template option but runtime compilation is not supported in this build of Vue.` + (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` )
@@ -7351,7 +7366,7 @@ function finishComponentSetup(instance, isSSR, skipOptions) {
7351
7366
  function getAttrsProxy(instance) {
7352
7367
  return instance.attrsProxy || (instance.attrsProxy = new Proxy(
7353
7368
  instance.attrs,
7354
- process.env.NODE_ENV !== "production" ? {
7369
+ !!(process.env.NODE_ENV !== "production") ? {
7355
7370
  get(target, key) {
7356
7371
  markAttrsAccessed();
7357
7372
  track(instance, "get", "$attrs");
@@ -7383,7 +7398,7 @@ function getSlotsProxy(instance) {
7383
7398
  }
7384
7399
  function createSetupContext(instance) {
7385
7400
  const expose = (exposed) => {
7386
- if (process.env.NODE_ENV !== "production") {
7401
+ if (!!(process.env.NODE_ENV !== "production")) {
7387
7402
  if (instance.exposed) {
7388
7403
  warn(`expose() should be called only once per setup().`);
7389
7404
  }
@@ -7405,7 +7420,7 @@ function createSetupContext(instance) {
7405
7420
  }
7406
7421
  instance.exposed = exposed || {};
7407
7422
  };
7408
- if (process.env.NODE_ENV !== "production") {
7423
+ if (!!(process.env.NODE_ENV !== "production")) {
7409
7424
  return Object.freeze({
7410
7425
  get attrs() {
7411
7426
  return getAttrsProxy(instance);
@@ -7506,7 +7521,7 @@ const useSSRContext = () => {
7506
7521
  {
7507
7522
  const ctx = inject(ssrContextKey);
7508
7523
  if (!ctx) {
7509
- process.env.NODE_ENV !== "production" && warn(
7524
+ !!(process.env.NODE_ENV !== "production") && warn(
7510
7525
  `Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
7511
7526
  );
7512
7527
  }
@@ -7519,7 +7534,7 @@ function isShallow(value) {
7519
7534
  }
7520
7535
 
7521
7536
  function initCustomFormatter() {
7522
- if (!(process.env.NODE_ENV !== "production") || typeof window === "undefined") {
7537
+ if (!!!(process.env.NODE_ENV !== "production") || typeof window === "undefined") {
7523
7538
  return;
7524
7539
  }
7525
7540
  const vueStyle = { style: "color:#3ba776" };
@@ -7719,7 +7734,7 @@ function isMemoSame(cached, memo) {
7719
7734
  return true;
7720
7735
  }
7721
7736
 
7722
- const version = "3.3.3";
7737
+ const version = "3.3.5";
7723
7738
  const _ssrUtils = {
7724
7739
  createComponentInstance,
7725
7740
  setupComponent,