vite-plugin-vue-devtools 0.4.9 → 0.4.11

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.
Files changed (40) hide show
  1. package/README.md +9 -2
  2. package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-dbf4788f.js → IframeView.vue_vue_type_script_setup_true_lang-fd720d18.js} +1 -1
  3. package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-92d427dd.js → StateFields.vue_vue_type_script_setup_true_lang-0e4af331.js} +8 -8
  4. package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-0471a697.js → VIcon.vue_vue_type_script_setup_true_lang-d1646658.js} +1 -1
  5. package/dist/client/assets/{VIconButton.vue_vue_type_script_setup_true_lang-119f94ff.js → VIconButton.vue_vue_type_script_setup_true_lang-5c7fa25b.js} +2 -2
  6. package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-103d54da.js → VIconTitle.vue_vue_type_script_setup_true_lang-3af9d81d.js} +1 -1
  7. package/dist/client/assets/{VPanelGrids-a58b3ecd.js → VPanelGrids-08ef47ce.js} +1 -1
  8. package/dist/client/assets/{VSectionBlock-f57f512c.js → VSectionBlock-44a9204b.js} +3 -3
  9. package/dist/client/assets/VSwitch.vue_vue_type_script_setup_true_lang-b1b6daad.js +88 -0
  10. package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-c2fa20e8.js → VTextInput.vue_vue_type_script_setup_true_lang-4df2a1eb.js} +2 -2
  11. package/dist/client/assets/{__eyedropper-3cca8ce1.js → __eyedropper-9aeb7406.js} +2 -2
  12. package/dist/client/assets/{assets-35cb492d.js → assets-4ff4283a.js} +17 -10
  13. package/dist/client/assets/component-docs-1e5f0727.js +1748 -0
  14. package/dist/client/assets/{components-b45b1440.js → components-5011f272.js} +11 -8
  15. package/dist/client/assets/{documentations-6e435dfa.js → documentations-ec90fa66.js} +3 -3
  16. package/dist/client/assets/{graph-23e2d183.js → graph-c8cae02e.js} +2422 -61
  17. package/dist/client/assets/{index-f35b9ded.js → index-37b80b18.js} +1 -1
  18. package/dist/client/assets/{index-419b1e26.js → index-793e4620.js} +1019 -2617
  19. package/dist/client/assets/index-ee2ca8be.css +474 -0
  20. package/dist/client/assets/{inspect-5ace614b.js → inspect-c464cac5.js} +3 -3
  21. package/dist/client/assets/{npm-125f4259.css → npm-832f3f2c.css} +20 -2
  22. package/dist/client/assets/npm-de038c5b.js +537 -0
  23. package/dist/client/assets/{overview-53e9f8bb.js → overview-fc79467d.js} +5 -5
  24. package/dist/client/assets/{pages-d5ca868b.js → pages-d51e51ec.js} +5 -5
  25. package/dist/client/assets/{pinia-b39bf0f8.js → pinia-e230dd12.js} +6 -6
  26. package/dist/client/assets/{routes-e42ba149.js → routes-7d3d04cf.js} +7 -7
  27. package/dist/client/assets/{rpc-ebdebff3.js → rpc-d8afe028.js} +1 -1
  28. package/dist/client/assets/{settings-0d6c7a2d.js → settings-2e4656aa.js} +36 -119
  29. package/dist/client/assets/{splitpanes.es-6544bd84.js → splitpanes.es-8a68d356.js} +1 -1
  30. package/dist/client/assets/{timeline-0c1ece86.js → timeline-202ca852.js} +8 -8
  31. package/dist/client/index.html +2 -2
  32. package/dist/index.cjs +1238 -1162
  33. package/dist/index.mjs +1235 -1159
  34. package/package.json +35 -31
  35. package/src/node/views/Main.vue +9 -2
  36. package/src/node/views/composables.ts +26 -1
  37. package/src/node/views/utils.ts +4 -0
  38. package/dist/client/assets/component-docs-621a63cc.js +0 -1748
  39. package/dist/client/assets/index-5221558c.css +0 -472
  40. package/dist/client/assets/npm-087e8329.js +0 -537
@@ -833,7 +833,7 @@ function has(key, isReadonly = false) {
833
833
  }
834
834
  return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
835
835
  }
836
- function size$1(target, isReadonly = false) {
836
+ function size(target, isReadonly = false) {
837
837
  target = target["__v_raw"];
838
838
  !isReadonly && track(toRaw(target), "iterate", ITERATE_KEY);
839
839
  return Reflect.get(target, "size", target);
@@ -944,7 +944,7 @@ function createInstrumentations() {
944
944
  return get(this, key);
945
945
  },
946
946
  get size() {
947
- return size$1(this);
947
+ return size(this);
948
948
  },
949
949
  has,
950
950
  add,
@@ -958,7 +958,7 @@ function createInstrumentations() {
958
958
  return get(this, key, false, true);
959
959
  },
960
960
  get size() {
961
- return size$1(this);
961
+ return size(this);
962
962
  },
963
963
  has,
964
964
  add,
@@ -972,7 +972,7 @@ function createInstrumentations() {
972
972
  return get(this, key, true);
973
973
  },
974
974
  get size() {
975
- return size$1(this, true);
975
+ return size(this, true);
976
976
  },
977
977
  has(key) {
978
978
  return has.call(this, key, true);
@@ -988,7 +988,7 @@ function createInstrumentations() {
988
988
  return get(this, key, true, true);
989
989
  },
990
990
  get size() {
991
- return size$1(this, true);
991
+ return size(this, true);
992
992
  },
993
993
  has(key) {
994
994
  return has.call(this, key, true);
@@ -1233,7 +1233,7 @@ function triggerRef(ref2) {
1233
1233
  function unref(ref2) {
1234
1234
  return isRef(ref2) ? ref2.value : ref2;
1235
1235
  }
1236
- function toValue$2(source) {
1236
+ function toValue$1(source) {
1237
1237
  return isFunction(source) ? source() : unref(source);
1238
1238
  }
1239
1239
  const shallowUnwrapHandlers = {
@@ -7045,12 +7045,12 @@ function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
7045
7045
  }
7046
7046
 
7047
7047
  const emptyAppContext = createAppContext();
7048
- let uid$2 = 0;
7048
+ let uid = 0;
7049
7049
  function createComponentInstance(vnode, parent, suspense) {
7050
7050
  const type = vnode.type;
7051
7051
  const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext;
7052
7052
  const instance = {
7053
- uid: uid$2++,
7053
+ uid: uid++,
7054
7054
  vnode,
7055
7055
  type,
7056
7056
  parent,
@@ -7320,7 +7320,7 @@ const computed = (getterOrOptions, debugOptions) => {
7320
7320
  return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
7321
7321
  };
7322
7322
 
7323
- function h(type, propsOrChildren, children) {
7323
+ function h$2(type, propsOrChildren, children) {
7324
7324
  const l = arguments.length;
7325
7325
  if (l === 2) {
7326
7326
  if (isObject(propsOrChildren) && !isArray$1(propsOrChildren)) {
@@ -7645,8 +7645,8 @@ function parseName(name) {
7645
7645
  return [event, options];
7646
7646
  }
7647
7647
  let cachedNow = 0;
7648
- const p = /* @__PURE__ */ Promise.resolve();
7649
- const getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now());
7648
+ const p$2 = /* @__PURE__ */ Promise.resolve();
7649
+ const getNow = () => cachedNow || (p$2.then(() => cachedNow = 0), cachedNow = Date.now());
7650
7650
  function createInvoker(initialValue, instance) {
7651
7651
  const invoker = (e) => {
7652
7652
  if (!e._vts) {
@@ -7785,7 +7785,7 @@ class VueElement extends BaseClass {
7785
7785
  this._connected = false;
7786
7786
  nextTick(() => {
7787
7787
  if (!this._connected) {
7788
- render$1(null, this.shadowRoot);
7788
+ render(null, this.shadowRoot);
7789
7789
  this._instance = null;
7790
7790
  }
7791
7791
  });
@@ -7885,7 +7885,7 @@ class VueElement extends BaseClass {
7885
7885
  }
7886
7886
  }
7887
7887
  _update() {
7888
- render$1(this._createVNode(), this.shadowRoot);
7888
+ render(this._createVNode(), this.shadowRoot);
7889
7889
  }
7890
7890
  _createVNode() {
7891
7891
  const vnode = createVNode(this._def, extend({}, this._props));
@@ -8007,7 +8007,7 @@ function setVarsOnNode(el, vars) {
8007
8007
 
8008
8008
  const TRANSITION = "transition";
8009
8009
  const ANIMATION = "animation";
8010
- const Transition = (props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots);
8010
+ const Transition = (props, { slots }) => h$2(BaseTransition, resolveTransitionProps(props), slots);
8011
8011
  Transition.displayName = "Transition";
8012
8012
  const DOMTransitionPropsValidators = {
8013
8013
  name: String,
@@ -8096,7 +8096,7 @@ function resolveTransitionProps(rawProps) {
8096
8096
  const hook = isAppear ? onAppear : onEnter;
8097
8097
  const resolve = () => finishEnter(el, isAppear, done);
8098
8098
  callHook(hook, [el, resolve]);
8099
- nextFrame$1(() => {
8099
+ nextFrame(() => {
8100
8100
  removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);
8101
8101
  addTransitionClass(el, isAppear ? appearToClass : enterToClass);
8102
8102
  if (!hasExplicitCallback(hook)) {
@@ -8124,7 +8124,7 @@ function resolveTransitionProps(rawProps) {
8124
8124
  addTransitionClass(el, leaveFromClass);
8125
8125
  forceReflow();
8126
8126
  addTransitionClass(el, leaveActiveClass);
8127
- nextFrame$1(() => {
8127
+ nextFrame(() => {
8128
8128
  if (!el._isLeaving) {
8129
8129
  return;
8130
8130
  }
@@ -8178,7 +8178,7 @@ function removeTransitionClass(el, cls) {
8178
8178
  }
8179
8179
  }
8180
8180
  }
8181
- function nextFrame$1(cb) {
8181
+ function nextFrame(cb) {
8182
8182
  requestAnimationFrame(() => {
8183
8183
  requestAnimationFrame(cb);
8184
8184
  });
@@ -8754,7 +8754,7 @@ function ensureHydrationRenderer() {
8754
8754
  enabledHydration = true;
8755
8755
  return renderer;
8756
8756
  }
8757
- const render$1 = (...args) => {
8757
+ const render = (...args) => {
8758
8758
  ensureRenderer().render(...args);
8759
8759
  };
8760
8760
  const hydrate = (...args) => {
@@ -8810,1324 +8810,79 @@ const initDirectivesForSSR = () => {
8810
8810
 
8811
8811
  /* Injected with object hook! */
8812
8812
 
8813
- function getBasePlacement(placement) {
8814
- return placement.split('-')[0];
8815
- }
8816
-
8817
- function getAlignment(placement) {
8818
- return placement.split('-')[1];
8819
- }
8820
-
8821
- function getMainAxisFromPlacement(placement) {
8822
- return ['top', 'bottom'].includes(getBasePlacement(placement)) ? 'x' : 'y';
8823
- }
8824
-
8825
- function getLengthFromAxis(axis) {
8826
- return axis === 'y' ? 'height' : 'width';
8827
- }
8828
-
8829
- function computeCoordsFromPlacement(_ref) {
8830
- let {
8831
- reference,
8832
- floating,
8833
- placement
8834
- } = _ref;
8835
- const commonX = reference.x + reference.width / 2 - floating.width / 2;
8836
- const commonY = reference.y + reference.height / 2 - floating.height / 2;
8837
- let coords;
8838
-
8839
- switch (getBasePlacement(placement)) {
8840
- case 'top':
8841
- coords = {
8842
- x: commonX,
8843
- y: reference.y - floating.height
8844
- };
8845
- break;
8846
-
8847
- case 'bottom':
8848
- coords = {
8849
- x: commonX,
8850
- y: reference.y + reference.height
8851
- };
8852
- break;
8853
-
8854
- case 'right':
8855
- coords = {
8856
- x: reference.x + reference.width,
8857
- y: commonY
8858
- };
8859
- break;
8860
-
8861
- case 'left':
8862
- coords = {
8863
- x: reference.x - floating.width,
8864
- y: commonY
8865
- };
8866
- break;
8867
-
8868
- default:
8869
- coords = {
8870
- x: reference.x,
8871
- y: reference.y
8872
- };
8873
- }
8874
-
8875
- const mainAxis = getMainAxisFromPlacement(placement);
8876
- const length = getLengthFromAxis(mainAxis);
8877
-
8878
- switch (getAlignment(placement)) {
8879
- case 'start':
8880
- coords[mainAxis] = coords[mainAxis] - (reference[length] / 2 - floating[length] / 2);
8881
- break;
8882
-
8883
- case 'end':
8884
- coords[mainAxis] = coords[mainAxis] + (reference[length] / 2 - floating[length] / 2);
8885
- break;
8886
- }
8887
-
8888
- return coords;
8889
- }
8890
-
8891
- const computePosition$1 = async (reference, floating, config) => {
8892
- const {
8893
- placement = 'bottom',
8894
- strategy = 'absolute',
8895
- middleware = [],
8896
- platform
8897
- } = config;
8898
-
8899
- let rects = await platform.getElementRects({
8900
- reference,
8901
- floating,
8902
- strategy
8903
- });
8904
- let {
8905
- x,
8906
- y
8907
- } = computeCoordsFromPlacement({ ...rects,
8908
- placement
8909
- });
8910
- let statefulPlacement = placement;
8911
- let middlewareData = {};
8912
-
8913
- for (let i = 0; i < middleware.length; i++) {
8914
-
8915
- const {
8916
- name,
8917
- fn
8918
- } = middleware[i];
8919
- const {
8920
- x: nextX,
8921
- y: nextY,
8922
- data,
8923
- reset
8924
- } = await fn({
8925
- x,
8926
- y,
8927
- initialPlacement: placement,
8928
- placement: statefulPlacement,
8929
- strategy,
8930
- middlewareData,
8931
- rects,
8932
- platform,
8933
- elements: {
8934
- reference,
8935
- floating
8936
- }
8937
- });
8938
- x = nextX != null ? nextX : x;
8939
- y = nextY != null ? nextY : y;
8940
- middlewareData = { ...middlewareData,
8941
- [name]: data != null ? data : {}
8942
- };
8943
-
8944
- if (reset) {
8945
- if (typeof reset === 'object') {
8946
- if (reset.placement) {
8947
- statefulPlacement = reset.placement;
8948
- }
8949
-
8950
- if (reset.rects) {
8951
- rects = reset.rects === true ? await platform.getElementRects({
8952
- reference,
8953
- floating,
8954
- strategy
8955
- }) : reset.rects;
8956
- }
8957
-
8958
- ({
8959
- x,
8960
- y
8961
- } = computeCoordsFromPlacement({ ...rects,
8962
- placement: statefulPlacement
8963
- }));
8964
- }
8965
-
8966
- i = -1;
8967
- continue;
8968
- }
8969
- }
8970
-
8971
- return {
8972
- x,
8973
- y,
8974
- placement: statefulPlacement,
8975
- strategy,
8976
- middlewareData
8977
- };
8978
- };
8979
-
8980
- function expandPaddingObject(padding) {
8981
- return {
8982
- top: 0,
8983
- right: 0,
8984
- bottom: 0,
8985
- left: 0,
8986
- ...padding
8987
- };
8988
- }
8989
-
8990
- function getSideObjectFromPadding(padding) {
8991
- return typeof padding !== 'number' ? expandPaddingObject(padding) : {
8992
- top: padding,
8993
- right: padding,
8994
- bottom: padding,
8995
- left: padding
8996
- };
8997
- }
8998
-
8999
- function rectToClientRect(rect) {
9000
- return { ...rect,
9001
- top: rect.y,
9002
- left: rect.x,
9003
- right: rect.x + rect.width,
9004
- bottom: rect.y + rect.height
9005
- };
9006
- }
9007
-
9008
- async function detectOverflow(middlewareArguments, options) {
9009
- if (options === void 0) {
9010
- options = {};
9011
- }
9012
-
9013
- const {
9014
- x,
9015
- y,
9016
- platform,
9017
- rects,
9018
- elements,
9019
- strategy
9020
- } = middlewareArguments;
9021
- const {
9022
- boundary = 'clippingParents',
9023
- rootBoundary = 'viewport',
9024
- elementContext = 'floating',
9025
- altBoundary = false,
9026
- padding = 0
9027
- } = options;
9028
- const paddingObject = getSideObjectFromPadding(padding);
9029
- const altContext = elementContext === 'floating' ? 'reference' : 'floating';
9030
- const element = elements[altBoundary ? altContext : elementContext];
9031
- const clippingClientRect = await platform.getClippingClientRect({
9032
- element: (await platform.isElement(element)) ? element : element.contextElement || (await platform.getDocumentElement({
9033
- element: elements.floating
9034
- })),
9035
- boundary,
9036
- rootBoundary
9037
- });
9038
- const elementClientRect = rectToClientRect(await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
9039
- rect: elementContext === 'floating' ? { ...rects.floating,
9040
- x,
9041
- y
9042
- } : rects.reference,
9043
- offsetParent: await platform.getOffsetParent({
9044
- element: elements.floating
9045
- }),
9046
- strategy
9047
- })); // positive = overflowing the clipping rect
9048
- // 0 or negative = within the clipping rect
9049
-
9050
- return {
9051
- top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
9052
- bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
9053
- left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
9054
- right: elementClientRect.right - clippingClientRect.right + paddingObject.right
9055
- };
9056
- }
9057
-
9058
- const min$1 = Math.min;
9059
- const max$1 = Math.max;
9060
-
9061
- function within(min$1$1, value, max$1$1) {
9062
- return max$1(min$1$1, min$1(value, max$1$1));
9063
- }
9064
-
9065
- const arrow = options => ({
9066
- name: 'arrow',
9067
- options,
9068
-
9069
- async fn(middlewareArguments) {
9070
- // Since `element` is required, we don't Partial<> the type
9071
- const {
9072
- element,
9073
- padding = 0
9074
- } = options != null ? options : {};
9075
- const {
9076
- x,
9077
- y,
9078
- placement,
9079
- rects,
9080
- platform
9081
- } = middlewareArguments;
9082
-
9083
- if (element == null) {
9084
-
9085
- return {};
9086
- }
9087
-
9088
- const paddingObject = getSideObjectFromPadding(padding);
9089
- const coords = {
9090
- x,
9091
- y
9092
- };
9093
- const basePlacement = getBasePlacement(placement);
9094
- const axis = getMainAxisFromPlacement(basePlacement);
9095
- const length = getLengthFromAxis(axis);
9096
- const arrowDimensions = await platform.getDimensions({
9097
- element
9098
- });
9099
- const minProp = axis === 'y' ? 'top' : 'left';
9100
- const maxProp = axis === 'y' ? 'bottom' : 'right';
9101
- const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
9102
- const startDiff = coords[axis] - rects.reference[axis];
9103
- const arrowOffsetParent = await platform.getOffsetParent({
9104
- element
9105
- });
9106
- const clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
9107
- const centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the floating element if the center
9108
- // point is outside of the floating element's bounds
9109
-
9110
- const min = paddingObject[minProp];
9111
- const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];
9112
- const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
9113
- const offset = within(min, center, max);
9114
- return {
9115
- data: {
9116
- [axis]: offset,
9117
- centerOffset: center - offset
9118
- }
9119
- };
9120
- }
9121
-
9122
- });
9123
-
9124
- const hash$1 = {
9125
- left: 'right',
9126
- right: 'left',
9127
- bottom: 'top',
9128
- top: 'bottom'
9129
- };
9130
- function getOppositePlacement(placement) {
9131
- return placement.replace(/left|right|bottom|top/g, matched => hash$1[matched]);
9132
- }
9133
-
9134
- function getAlignmentSides(placement, rects) {
9135
- const isStart = getAlignment(placement) === 'start';
9136
- const mainAxis = getMainAxisFromPlacement(placement);
9137
- const length = getLengthFromAxis(mainAxis);
9138
- let mainAlignmentSide = mainAxis === 'x' ? isStart ? 'right' : 'left' : isStart ? 'bottom' : 'top';
9139
-
9140
- if (rects.reference[length] > rects.floating[length]) {
9141
- mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
9142
- }
9143
-
9144
- return {
9145
- main: mainAlignmentSide,
9146
- cross: getOppositePlacement(mainAlignmentSide)
9147
- };
9148
- }
9149
-
9150
- const hash = {
9151
- start: 'end',
9152
- end: 'start'
9153
- };
9154
- function getOppositeAlignmentPlacement(placement) {
9155
- return placement.replace(/start|end/g, matched => hash[matched]);
9156
- }
9157
-
9158
- const basePlacements = ['top', 'right', 'bottom', 'left'];
9159
- const allPlacements = /*#__PURE__*/basePlacements.reduce((acc, basePlacement) => acc.concat(basePlacement, basePlacement + "-start", basePlacement + "-end"), []);
9160
-
9161
- function getPlacementList(alignment, autoAlignment, allowedPlacements) {
9162
- const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getBasePlacement(placement) === placement);
9163
- return allowedPlacementsSortedByAlignment.filter(placement => {
9164
- if (alignment) {
9165
- return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
9166
- }
9167
-
9168
- return true;
9169
- });
9170
- }
9171
- const autoPlacement = function (options) {
9172
- if (options === void 0) {
9173
- options = {};
9174
- }
9175
-
9176
- return {
9177
- name: 'autoPlacement',
9178
- options,
9179
-
9180
- async fn(middlewareArguments) {
9181
- var _middlewareData$autoP, _middlewareData$autoP2, _middlewareData$autoP3, _middlewareData$autoP4, _middlewareData$autoP5, _placementsSortedByLe;
9182
-
9183
- const {
9184
- x,
9185
- y,
9186
- rects,
9187
- middlewareData,
9188
- placement
9189
- } = middlewareArguments;
9190
- const {
9191
- alignment = null,
9192
- allowedPlacements = allPlacements,
9193
- autoAlignment = true,
9194
- ...detectOverflowOptions
9195
- } = options;
9196
-
9197
- if ((_middlewareData$autoP = middlewareData.autoPlacement) != null && _middlewareData$autoP.skip) {
9198
- return {};
9199
- }
9200
-
9201
- const placements = getPlacementList(alignment, autoAlignment, allowedPlacements);
9202
- const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
9203
- const currentIndex = (_middlewareData$autoP2 = (_middlewareData$autoP3 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP3.index) != null ? _middlewareData$autoP2 : 0;
9204
- const currentPlacement = placements[currentIndex];
9205
- const {
9206
- main,
9207
- cross
9208
- } = getAlignmentSides(currentPlacement, rects); // Make `computeCoords` start from the right place
9209
-
9210
- if (placement !== currentPlacement) {
9211
- return {
9212
- x,
9213
- y,
9214
- reset: {
9215
- placement: placements[0]
9216
- }
9217
- };
9218
- }
9219
-
9220
- const currentOverflows = [overflow[getBasePlacement(currentPlacement)], overflow[main], overflow[cross]];
9221
- const allOverflows = [...((_middlewareData$autoP4 = (_middlewareData$autoP5 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP5.overflows) != null ? _middlewareData$autoP4 : []), {
9222
- placement: currentPlacement,
9223
- overflows: currentOverflows
9224
- }];
9225
- const nextPlacement = placements[currentIndex + 1]; // There are more placements to check
9226
-
9227
- if (nextPlacement) {
9228
- return {
9229
- data: {
9230
- index: currentIndex + 1,
9231
- overflows: allOverflows
9232
- },
9233
- reset: {
9234
- placement: nextPlacement
9235
- }
9236
- };
9237
- }
9238
-
9239
- const placementsSortedByLeastOverflow = allOverflows.slice().sort((a, b) => a.overflows[0] - b.overflows[0]);
9240
- const placementThatFitsOnAllSides = (_placementsSortedByLe = placementsSortedByLeastOverflow.find(_ref => {
9241
- let {
9242
- overflows
9243
- } = _ref;
9244
- return overflows.every(overflow => overflow <= 0);
9245
- })) == null ? void 0 : _placementsSortedByLe.placement;
9246
- return {
9247
- data: {
9248
- skip: true
9249
- },
9250
- reset: {
9251
- placement: placementThatFitsOnAllSides != null ? placementThatFitsOnAllSides : placementsSortedByLeastOverflow[0].placement
9252
- }
9253
- };
9254
- }
9255
-
9256
- };
9257
- };
9258
-
9259
- function getExpandedPlacements(placement) {
9260
- const oppositePlacement = getOppositePlacement(placement);
9261
- return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
9262
- }
9263
-
9264
- const flip = function (options) {
9265
- if (options === void 0) {
9266
- options = {};
9267
- }
9268
-
9269
- return {
9270
- name: 'flip',
9271
- options,
9272
-
9273
- async fn(middlewareArguments) {
9274
- var _middlewareData$flip, _middlewareData$flip2;
9275
-
9276
- const {
9277
- placement,
9278
- middlewareData,
9279
- rects,
9280
- initialPlacement
9281
- } = middlewareArguments;
9282
-
9283
- if ((_middlewareData$flip = middlewareData.flip) != null && _middlewareData$flip.skip) {
9284
- return {};
9285
- }
9286
-
9287
- const {
9288
- mainAxis: checkMainAxis = true,
9289
- crossAxis: checkCrossAxis = true,
9290
- fallbackPlacements: specifiedFallbackPlacements,
9291
- fallbackStrategy = 'bestFit',
9292
- flipAlignment = true,
9293
- ...detectOverflowOptions
9294
- } = options;
9295
- const basePlacement = getBasePlacement(placement);
9296
- const isBasePlacement = basePlacement === initialPlacement;
9297
- const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
9298
- const placements = [initialPlacement, ...fallbackPlacements];
9299
- const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
9300
- const overflows = [];
9301
- let overflowsData = ((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.overflows) || [];
9302
-
9303
- if (checkMainAxis) {
9304
- overflows.push(overflow[basePlacement]);
9305
- }
9306
-
9307
- if (checkCrossAxis) {
9308
- const {
9309
- main,
9310
- cross
9311
- } = getAlignmentSides(placement, rects);
9312
- overflows.push(overflow[main], overflow[cross]);
9313
- }
9314
-
9315
- overflowsData = [...overflowsData, {
9316
- placement,
9317
- overflows
9318
- }]; // One or more sides is overflowing
9319
-
9320
- if (!overflows.every(side => side <= 0)) {
9321
- var _middlewareData$flip$, _middlewareData$flip3;
9322
-
9323
- const nextIndex = ((_middlewareData$flip$ = (_middlewareData$flip3 = middlewareData.flip) == null ? void 0 : _middlewareData$flip3.index) != null ? _middlewareData$flip$ : 0) + 1;
9324
- const nextPlacement = placements[nextIndex];
9325
-
9326
- if (nextPlacement) {
9327
- // Try next placement and re-run the lifecycle
9328
- return {
9329
- data: {
9330
- index: nextIndex,
9331
- overflows: overflowsData
9332
- },
9333
- reset: {
9334
- placement: nextPlacement
9335
- }
9336
- };
9337
- }
9338
-
9339
- let resetPlacement = 'bottom';
9340
-
9341
- switch (fallbackStrategy) {
9342
- case 'bestFit':
9343
- {
9344
- var _overflowsData$slice$;
9345
-
9346
- const placement = (_overflowsData$slice$ = overflowsData.slice().sort((a, b) => a.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0) - b.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0))[0]) == null ? void 0 : _overflowsData$slice$.placement;
9347
-
9348
- if (placement) {
9349
- resetPlacement = placement;
9350
- }
9351
-
9352
- break;
9353
- }
9354
-
9355
- case 'initialPlacement':
9356
- resetPlacement = initialPlacement;
9357
- break;
9358
- }
9359
-
9360
- return {
9361
- data: {
9362
- skip: true
9363
- },
9364
- reset: {
9365
- placement: resetPlacement
9366
- }
9367
- };
9368
- }
9369
-
9370
- return {};
9371
- }
9372
-
9373
- };
9374
- };
9375
-
9376
- function convertValueToCoords(_ref) {
9377
- let {
9378
- placement,
9379
- rects,
9380
- value
9381
- } = _ref;
9382
- const basePlacement = getBasePlacement(placement);
9383
- const multiplier = ['left', 'top'].includes(basePlacement) ? -1 : 1;
9384
- const rawValue = typeof value === 'function' ? value({ ...rects,
9385
- placement
9386
- }) : value;
9387
- const {
9388
- mainAxis,
9389
- crossAxis
9390
- } = typeof rawValue === 'number' ? {
9391
- mainAxis: rawValue,
9392
- crossAxis: 0
9393
- } : {
9394
- mainAxis: 0,
9395
- crossAxis: 0,
9396
- ...rawValue
9397
- };
9398
- return getMainAxisFromPlacement(basePlacement) === 'x' ? {
9399
- x: crossAxis,
9400
- y: mainAxis * multiplier
9401
- } : {
9402
- x: mainAxis * multiplier,
9403
- y: crossAxis
9404
- };
9405
- }
9406
- const offset = function (value) {
9407
- if (value === void 0) {
9408
- value = 0;
9409
- }
9410
-
9411
- return {
9412
- name: 'offset',
9413
- options: value,
9414
-
9415
- fn(middlewareArguments) {
9416
- const {
9417
- x,
9418
- y,
9419
- placement,
9420
- rects
9421
- } = middlewareArguments;
9422
- const diffCoords = convertValueToCoords({
9423
- placement,
9424
- rects,
9425
- value
9426
- });
9427
- return {
9428
- x: x + diffCoords.x,
9429
- y: y + diffCoords.y,
9430
- data: diffCoords
9431
- };
9432
- }
9433
-
9434
- };
9435
- };
9436
-
9437
- function getCrossAxis(axis) {
9438
- return axis === 'x' ? 'y' : 'x';
9439
- }
9440
-
9441
- const shift = function (options) {
9442
- if (options === void 0) {
9443
- options = {};
9444
- }
9445
-
9446
- return {
9447
- name: 'shift',
9448
- options,
9449
-
9450
- async fn(middlewareArguments) {
9451
- const {
9452
- x,
9453
- y,
9454
- placement
9455
- } = middlewareArguments;
9456
- const {
9457
- mainAxis: checkMainAxis = true,
9458
- crossAxis: checkCrossAxis = false,
9459
- limiter = {
9460
- fn: _ref => {
9461
- let {
9462
- x,
9463
- y
9464
- } = _ref;
9465
- return {
9466
- x,
9467
- y
9468
- };
9469
- }
9470
- },
9471
- ...detectOverflowOptions
9472
- } = options;
9473
- const coords = {
9474
- x,
9475
- y
9476
- };
9477
- const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
9478
- const mainAxis = getMainAxisFromPlacement(getBasePlacement(placement));
9479
- const crossAxis = getCrossAxis(mainAxis);
9480
- let mainAxisCoord = coords[mainAxis];
9481
- let crossAxisCoord = coords[crossAxis];
9482
-
9483
- if (checkMainAxis) {
9484
- const minSide = mainAxis === 'y' ? 'top' : 'left';
9485
- const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
9486
- const min = mainAxisCoord + overflow[minSide];
9487
- const max = mainAxisCoord - overflow[maxSide];
9488
- mainAxisCoord = within(min, mainAxisCoord, max);
9489
- }
9490
-
9491
- if (checkCrossAxis) {
9492
- const minSide = crossAxis === 'y' ? 'top' : 'left';
9493
- const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
9494
- const min = crossAxisCoord + overflow[minSide];
9495
- const max = crossAxisCoord - overflow[maxSide];
9496
- crossAxisCoord = within(min, crossAxisCoord, max);
9497
- }
9498
-
9499
- const limitedCoords = limiter.fn({ ...middlewareArguments,
9500
- [mainAxis]: mainAxisCoord,
9501
- [crossAxis]: crossAxisCoord
9502
- });
9503
- return { ...limitedCoords,
9504
- data: {
9505
- x: limitedCoords.x - x,
9506
- y: limitedCoords.y - y
9507
- }
9508
- };
9509
- }
9510
-
9511
- };
9512
- };
9513
-
9514
- const size = function (options) {
9515
- if (options === void 0) {
9516
- options = {};
9517
- }
9518
-
9519
- return {
9520
- name: 'size',
9521
- options,
9522
-
9523
- async fn(middlewareArguments) {
9524
- var _middlewareData$size;
9525
-
9526
- const {
9527
- placement,
9528
- rects,
9529
- middlewareData
9530
- } = middlewareArguments;
9531
- const {
9532
- apply,
9533
- ...detectOverflowOptions
9534
- } = options;
9535
-
9536
- if ((_middlewareData$size = middlewareData.size) != null && _middlewareData$size.skip) {
9537
- return {};
9538
- }
9539
-
9540
- const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);
9541
- const basePlacement = getBasePlacement(placement);
9542
- const isEnd = getAlignment(placement) === 'end';
9543
- let heightSide;
9544
- let widthSide;
9545
-
9546
- if (basePlacement === 'top' || basePlacement === 'bottom') {
9547
- heightSide = basePlacement;
9548
- widthSide = isEnd ? 'left' : 'right';
9549
- } else {
9550
- widthSide = basePlacement;
9551
- heightSide = isEnd ? 'top' : 'bottom';
9552
- }
9553
-
9554
- const xMin = max$1(overflow.left, 0);
9555
- const xMax = max$1(overflow.right, 0);
9556
- const yMin = max$1(overflow.top, 0);
9557
- const yMax = max$1(overflow.bottom, 0);
9558
- const dimensions = {
9559
- height: rects.floating.height - (['left', 'right'].includes(placement) ? 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max$1(overflow.top, overflow.bottom)) : overflow[heightSide]),
9560
- width: rects.floating.width - (['top', 'bottom'].includes(placement) ? 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max$1(overflow.left, overflow.right)) : overflow[widthSide])
9561
- };
9562
- apply == null ? void 0 : apply({ ...dimensions,
9563
- ...rects
9564
- });
9565
- return {
9566
- data: {
9567
- skip: true
9568
- },
9569
- reset: {
9570
- rects: true
9571
- }
9572
- };
9573
- }
9574
-
9575
- };
9576
- };
9577
-
8813
+ function t(t){return t.split("-")[1]}function e(t){return "y"===t?"height":"width"}function n$2(t){return t.split("-")[0]}function o$1(t){return ["top","bottom"].includes(n$2(t))?"x":"y"}function i$1(i,r,a){let{reference:l,floating:s}=i;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,m=o$1(r),u=e(m),g=l[u]/2-s[u]/2,d="x"===m;let p;switch(n$2(r)){case"top":p={x:c,y:l.y-s.height};break;case"bottom":p={x:c,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-s.width,y:f};break;default:p={x:l.x,y:l.y};}switch(t(r)){case"start":p[m]-=g*(a&&d?-1:1);break;case"end":p[m]+=g*(a&&d?-1:1);}return p}const r$1=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:l}=n,s=a.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(e));let f=await l.getElementRects({reference:t,floating:e,strategy:r}),{x:m,y:u}=i$1(f,o,c),g=o,d={},p=0;for(let n=0;n<s.length;n++){const{name:a,fn:h}=s[n],{x:y,y:x,data:w,reset:v}=await h({x:m,y:u,initialPlacement:o,placement:g,strategy:r,middlewareData:d,rects:f,platform:l,elements:{reference:t,floating:e}});m=null!=y?y:m,u=null!=x?x:u,d={...d,[a]:{...d[a],...w}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(g=v.placement),v.rects&&(f=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:m,y:u}=i$1(f,g,c))),n=-1);}return {x:m,y:u,placement:g,strategy:r,middlewareData:d}};function a$1(t,e){return "function"==typeof t?t(e):t}function l$1(t){return "number"!=typeof t?function(t){return {top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function s$1(t){return {...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function c$1(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:c,elements:f,strategy:m}=t,{boundary:u="clippingAncestors",rootBoundary:g="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=a$1(e,t),y=l$1(h),x=f[p?"floating"===d?"reference":"floating":d],w=s$1(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(x)))||n?x:x.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(f.floating)),boundary:u,rootBoundary:g,strategy:m})),v="floating"===d?{...c.floating,x:o,y:i}:c.reference,b=await(null==r.getOffsetParent?void 0:r.getOffsetParent(f.floating)),A=await(null==r.isElement?void 0:r.isElement(b))&&await(null==r.getScale?void 0:r.getScale(b))||{x:1,y:1},R=s$1(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:m}):v);return {top:(w.top-R.top+y.top)/A.y,bottom:(R.bottom-w.bottom+y.bottom)/A.y,left:(w.left-R.left+y.left)/A.x,right:(R.right-w.right+y.right)/A.x}}const f$2=Math.min,m$2=Math.max;function u$2(t,e,n){return m$2(t,f$2(e,n))}const g$2=n=>({name:"arrow",options:n,async fn(i){const{x:r,y:s,placement:c,rects:m,platform:g,elements:d}=i,{element:p,padding:h=0}=a$1(n,i)||{};if(null==p)return {};const y=l$1(h),x={x:r,y:s},w=o$1(c),v=e(w),b=await g.getDimensions(p),A="y"===w,R=A?"top":"left",P=A?"bottom":"right",E=A?"clientHeight":"clientWidth",T=m.reference[v]+m.reference[w]-x[w]-m.floating[v],D=x[w]-m.reference[w],L=await(null==g.getOffsetParent?void 0:g.getOffsetParent(p));let k=L?L[E]:0;k&&await(null==g.isElement?void 0:g.isElement(L))||(k=d.floating[E]||m.floating[v]);const O=T/2-D/2,B=k/2-b[v]/2-1,C=f$2(y[R],B),H=f$2(y[P],B),S=C,F=k-b[v]-H,M=k/2-b[v]/2+O,V=u$2(S,M,F),W=null!=t(c)&&M!=V&&m.reference[v]/2-(M<S?C:H)-b[v]/2<0?M<S?S-M:F-M:0;return {[w]:x[w]-W,data:{[w]:V,centerOffset:M-V+W}}}}),d$2=["top","right","bottom","left"],p$1=d$2.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]),h$1={left:"right",right:"left",bottom:"top",top:"bottom"};function y$2(t){return t.replace(/left|right|bottom|top/g,(t=>h$1[t]))}function x$1(n,i,r){void 0===r&&(r=!1);const a=t(n),l=o$1(n),s=e(l);let c="x"===l?a===(r?"end":"start")?"right":"left":"start"===a?"bottom":"top";return i.reference[s]>i.floating[s]&&(c=y$2(c)),{main:c,cross:y$2(c)}}const w$1={start:"end",end:"start"};function v$2(t){return t.replace(/start|end/g,(t=>w$1[t]))}const b$2=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(o){var i,r,l;const{rects:s,middlewareData:f,placement:m,platform:u,elements:g}=o,{crossAxis:d=!1,alignment:h,allowedPlacements:y=p$1,autoAlignment:w=!0,...b}=a$1(e,o),A=void 0!==h||y===p$1?function(e,o,i){return (e?[...i.filter((n=>t(n)===e)),...i.filter((n=>t(n)!==e))]:i.filter((t=>n$2(t)===t))).filter((n=>!e||t(n)===e||!!o&&v$2(n)!==n))}(h||null,w,y):y,R=await c$1(o,b),P=(null==(i=f.autoPlacement)?void 0:i.index)||0,E=A[P];if(null==E)return {};const{main:T,cross:D}=x$1(E,s,await(null==u.isRTL?void 0:u.isRTL(g.floating)));if(m!==E)return {reset:{placement:A[0]}};const L=[R[n$2(E)],R[T],R[D]],k=[...(null==(r=f.autoPlacement)?void 0:r.overflows)||[],{placement:E,overflows:L}],O=A[P+1];if(O)return {data:{index:P+1,overflows:k},reset:{placement:O}};const B=k.map((e=>{const n=t(e.placement);return [e.placement,n&&d?e.overflows.slice(0,2).reduce(((t,e)=>t+e),0):e.overflows[0],e.overflows]})).sort(((t,e)=>t[1]-e[1])),C=(null==(l=B.filter((e=>e[2].slice(0,t(e[0])?2:3).every((t=>t<=0))))[0])?void 0:l[0])||B[0][0];return C!==m?{data:{index:P+1,overflows:k},reset:{placement:C}}:{}}}};const A$1=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(o){var i;const{placement:r,middlewareData:l,rects:s,initialPlacement:f,platform:m,elements:u}=o,{mainAxis:g=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:b=!0,...A}=a$1(e,o),R=n$2(r),P=n$2(f)===f,E=await(null==m.isRTL?void 0:m.isRTL(u.floating)),T=p||(P||!b?[y$2(f)]:function(t){const e=y$2(t);return [v$2(t),e,v$2(e)]}(f));p||"none"===w||T.push(...function(e,o,i,r){const a=t(e);let l=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:a;default:return []}}(n$2(e),"start"===i,r);return a&&(l=l.map((t=>t+"-"+a)),o&&(l=l.concat(l.map(v$2)))),l}(f,b,w,E));const D=[f,...T],L=await c$1(o,A),k=[];let O=(null==(i=l.flip)?void 0:i.overflows)||[];if(g&&k.push(L[R]),d){const{main:t,cross:e}=x$1(r,s,E);k.push(L[t],L[e]);}if(O=[...O,{placement:r,overflows:k}],!k.every((t=>t<=0))){var B,C;const t=((null==(B=l.flip)?void 0:B.index)||0)+1,e=D[t];if(e)return {data:{index:t,overflows:O},reset:{placement:e}};let n=null==(C=O.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:C.placement;if(!n)switch(h){case"bestFit":{var H;const t=null==(H=O.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:H[0];t&&(n=t);break}case"initialPlacement":n=f;}if(r!==n)return {reset:{placement:n}}}return {}}}};const L$2=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(i){const{x:r,y:l}=i,s=await async function(e,i){const{placement:r,platform:l,elements:s}=e,c=await(null==l.isRTL?void 0:l.isRTL(s.floating)),f=n$2(r),m=t(r),u="x"===o$1(r),g=["left","top"].includes(f)?-1:1,d=c&&u?-1:1,p=a$1(i,e);let{mainAxis:h,crossAxis:y,alignmentAxis:x}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return m&&"number"==typeof x&&(y="end"===m?-1*x:x),u?{x:y*d,y:h*g}:{x:h*g,y:y*d}}(i,e);return {x:r+s.x,y:l+s.y,data:s}}}};function k$1(t){return "x"===t?"y":"x"}const O$1=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:r,placement:l}=e,{mainAxis:s=!0,crossAxis:f=!1,limiter:m={fn:t=>{let{x:e,y:n}=t;return {x:e,y:n}}},...g}=a$1(t,e),d={x:i,y:r},p=await c$1(e,g),h=o$1(n$2(l)),y=k$1(h);let x=d[h],w=d[y];if(s){const t="y"===h?"bottom":"right";x=u$2(x+p["y"===h?"top":"left"],x,x-p[t]);}if(f){const t="y"===y?"bottom":"right";w=u$2(w+p["y"===y?"top":"left"],w,w-p[t]);}const v=m.fn({...e,[h]:x,[y]:w});return {...v,data:{x:v.x-i,y:v.y-r}}}}},C$2=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(i){const{placement:r,rects:l,platform:s,elements:u}=i,{apply:g=(()=>{}),...d}=a$1(e,i),p=await c$1(i,d),h=n$2(r),y=t(r),x="x"===o$1(r),{width:w,height:v}=l.floating;let b,A;"top"===h||"bottom"===h?(b=h,A=y===(await(null==s.isRTL?void 0:s.isRTL(u.floating))?"start":"end")?"left":"right"):(A=h,b="end"===y?"top":"bottom");const R=v-p[b],P=w-p[A],E=!i.middlewareData.shift;let T=R,D=P;if(x){const t=w-p.left-p.right;D=y||E?f$2(P,t):t;}else {const t=v-p.top-p.bottom;T=y||E?f$2(R,t):t;}if(E&&!y){const t=m$2(p.left,0),e=m$2(p.right,0),n=m$2(p.top,0),o=m$2(p.bottom,0);x?D=w-2*(0!==t||0!==e?t+e:m$2(p.left,p.right)):T=v-2*(0!==n||0!==o?n+o:m$2(p.top,p.bottom));}await g({...i,availableWidth:D,availableHeight:T});const L=await s.getDimensions(u.floating);return w!==L.width||v!==L.height?{reset:{rects:!0}}:{}}}};
9578
8814
  /* Injected with object hook! */
9579
8815
 
9580
- function isWindow(value) {
9581
- return (value == null ? void 0 : value.toString()) === '[object Window]';
9582
- }
9583
- function getWindow(node) {
9584
- if (node == null) {
9585
- return window;
9586
- }
9587
-
9588
- if (!isWindow(node)) {
9589
- const ownerDocument = node.ownerDocument;
9590
- return ownerDocument ? ownerDocument.defaultView || window : window;
9591
- }
9592
-
9593
- return node;
9594
- }
9595
-
9596
- function getComputedStyle$1(element) {
9597
- return getWindow(element).getComputedStyle(element);
9598
- }
9599
-
9600
- function getNodeName(node) {
9601
- return isWindow(node) ? '' : node ? (node.nodeName || '').toLowerCase() : '';
9602
- }
9603
-
9604
- function isHTMLElement(value) {
9605
- return value instanceof getWindow(value).HTMLElement;
9606
- }
9607
- function isElement(value) {
9608
- return value instanceof getWindow(value).Element;
9609
- }
9610
- function isNode(value) {
9611
- return value instanceof getWindow(value).Node;
9612
- }
9613
- function isShadowRoot(node) {
9614
- const OwnElement = getWindow(node).ShadowRoot;
9615
- return node instanceof OwnElement || node instanceof ShadowRoot;
9616
- }
9617
- function isScrollParent(element) {
9618
- // Firefox wants us to check `-x` and `-y` variations as well
9619
- const {
9620
- overflow,
9621
- overflowX,
9622
- overflowY
9623
- } = getComputedStyle$1(element);
9624
- return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
9625
- }
9626
- function isTableElement(element) {
9627
- return ['table', 'td', 'th'].includes(getNodeName(element));
9628
- }
9629
- function isContainingBlock(element) {
9630
- // TODO: Try and use feature detection here instead
9631
- const isFirefox = navigator.userAgent.toLowerCase().includes('firefox');
9632
- const css = getComputedStyle$1(element); // This is non-exhaustive but covers the most common CSS properties that
9633
- // create a containing block.
9634
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
9635
-
9636
- return css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].includes(css.willChange) || isFirefox && css.willChange === 'filter' || isFirefox && (css.filter ? css.filter !== 'none' : false);
9637
- }
9638
-
9639
- const min = Math.min;
9640
- const max = Math.max;
9641
- const round = Math.round;
9642
-
9643
- function getBoundingClientRect(element, includeScale) {
9644
- if (includeScale === void 0) {
9645
- includeScale = false;
9646
- }
9647
-
9648
- const clientRect = element.getBoundingClientRect();
9649
- let scaleX = 1;
9650
- let scaleY = 1;
9651
-
9652
- if (includeScale && isHTMLElement(element)) {
9653
- scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
9654
- scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
9655
- }
9656
-
9657
- return {
9658
- width: clientRect.width / scaleX,
9659
- height: clientRect.height / scaleY,
9660
- top: clientRect.top / scaleY,
9661
- right: clientRect.right / scaleX,
9662
- bottom: clientRect.bottom / scaleY,
9663
- left: clientRect.left / scaleX,
9664
- x: clientRect.left / scaleX,
9665
- y: clientRect.top / scaleY
9666
- };
9667
- }
9668
-
9669
- function getDocumentElement(node) {
9670
- return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
9671
- }
9672
-
9673
- function getNodeScroll(element) {
9674
- if (isWindow(element)) {
9675
- return {
9676
- scrollLeft: element.pageXOffset,
9677
- scrollTop: element.pageYOffset
9678
- };
9679
- }
9680
-
9681
- return {
9682
- scrollLeft: element.scrollLeft,
9683
- scrollTop: element.scrollTop
9684
- };
9685
- }
9686
-
9687
- function getWindowScrollBarX(element) {
9688
- // If <html> has a CSS width greater than the viewport, then this will be
9689
- // incorrect for RTL.
9690
- return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
9691
- }
9692
-
9693
- function isScaled(element) {
9694
- const rect = getBoundingClientRect(element);
9695
- return round(rect.width) !== element.offsetWidth || round(rect.height) !== element.offsetHeight;
9696
- }
9697
-
9698
- function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
9699
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
9700
- const documentElement = getDocumentElement(offsetParent);
9701
- const rect = getBoundingClientRect(element, isOffsetParentAnElement && isScaled(offsetParent));
9702
- let scroll = {
9703
- scrollLeft: 0,
9704
- scrollTop: 0
9705
- };
9706
- const offsets = {
9707
- x: 0,
9708
- y: 0
9709
- };
9710
-
9711
- if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
9712
- if (getNodeName(offsetParent) !== 'body' || isScrollParent(documentElement)) {
9713
- scroll = getNodeScroll(offsetParent);
9714
- }
9715
-
9716
- if (isHTMLElement(offsetParent)) {
9717
- const offsetRect = getBoundingClientRect(offsetParent, true);
9718
- offsets.x = offsetRect.x + offsetParent.clientLeft;
9719
- offsets.y = offsetRect.y + offsetParent.clientTop;
9720
- } else if (documentElement) {
9721
- offsets.x = getWindowScrollBarX(documentElement);
9722
- }
9723
- }
9724
-
9725
- return {
9726
- x: rect.left + scroll.scrollLeft - offsets.x,
9727
- y: rect.top + scroll.scrollTop - offsets.y,
9728
- width: rect.width,
9729
- height: rect.height
9730
- };
9731
- }
9732
-
9733
- function getParentNode(node) {
9734
- if (getNodeName(node) === 'html') {
9735
- return node;
9736
- }
9737
-
9738
- return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
9739
- // @ts-ignore
9740
- node.assignedSlot || // step into the shadow DOM of the parent of a slotted node
9741
- node.parentNode || ( // DOM Element detected
9742
- isShadowRoot(node) ? node.host : null) || // ShadowRoot detected
9743
- getDocumentElement(node) // fallback
9744
-
9745
- );
9746
- }
9747
-
9748
- function getTrueOffsetParent(element) {
9749
- if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
9750
- return null;
9751
- }
9752
-
9753
- return element.offsetParent;
9754
- }
9755
-
9756
- function getContainingBlock(element) {
9757
- let currentNode = getParentNode(element);
9758
-
9759
- while (isHTMLElement(currentNode) && !['html', 'body'].includes(getNodeName(currentNode))) {
9760
- if (isContainingBlock(currentNode)) {
9761
- return currentNode;
9762
- } else {
9763
- currentNode = currentNode.parentNode;
9764
- }
9765
- }
9766
-
9767
- return null;
9768
- } // Gets the closest ancestor positioned element. Handles some edge cases,
9769
- // such as table ancestors and cross browser bugs.
9770
-
9771
-
9772
- function getOffsetParent(element) {
9773
- const window = getWindow(element);
9774
- let offsetParent = getTrueOffsetParent(element);
9775
-
9776
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
9777
- offsetParent = getTrueOffsetParent(offsetParent);
9778
- }
9779
-
9780
- if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
9781
- return window;
9782
- }
9783
-
9784
- return offsetParent || getContainingBlock(element) || window;
9785
- }
9786
-
9787
- function getDimensions(element) {
9788
- return {
9789
- width: element.offsetWidth,
9790
- height: element.offsetHeight
9791
- };
9792
- }
9793
-
9794
- function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
9795
- let {
9796
- rect,
9797
- offsetParent,
9798
- strategy
9799
- } = _ref;
9800
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
9801
- const documentElement = getDocumentElement(offsetParent);
9802
-
9803
- if (offsetParent === documentElement) {
9804
- return rect;
9805
- }
9806
-
9807
- let scroll = {
9808
- scrollLeft: 0,
9809
- scrollTop: 0
9810
- };
9811
- const offsets = {
9812
- x: 0,
9813
- y: 0
9814
- };
9815
-
9816
- if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
9817
- if (getNodeName(offsetParent) !== 'body' || isScrollParent(documentElement)) {
9818
- scroll = getNodeScroll(offsetParent);
9819
- }
9820
-
9821
- if (isHTMLElement(offsetParent)) {
9822
- const offsetRect = getBoundingClientRect(offsetParent, true);
9823
- offsets.x = offsetRect.x + offsetParent.clientLeft;
9824
- offsets.y = offsetRect.y + offsetParent.clientTop;
9825
- } // This doesn't appear to be need to be negated.
9826
- // else if (documentElement) {
9827
- // offsets.x = getWindowScrollBarX(documentElement);
9828
- // }
9829
-
9830
- }
9831
-
9832
- return { ...rect,
9833
- x: rect.x - scroll.scrollLeft + offsets.x,
9834
- y: rect.y - scroll.scrollTop + offsets.y
9835
- };
9836
- }
9837
-
9838
- function getViewportRect(element) {
9839
- const win = getWindow(element);
9840
- const html = getDocumentElement(element);
9841
- const visualViewport = win.visualViewport;
9842
- let width = html.clientWidth;
9843
- let height = html.clientHeight;
9844
- let x = 0;
9845
- let y = 0;
9846
-
9847
- if (visualViewport) {
9848
- width = visualViewport.width;
9849
- height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
9850
- // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
9851
- // errors due to floating point numbers, so we need to check precision.
9852
- // Safari returns a number <= 0, usually < -1 when pinch-zoomed
9853
-
9854
- if (Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) < 0.01) {
9855
- x = visualViewport.offsetLeft;
9856
- y = visualViewport.offsetTop;
9857
- }
9858
- }
9859
-
9860
- return {
9861
- width,
9862
- height,
9863
- x,
9864
- y
9865
- };
9866
- }
9867
-
9868
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable
9869
-
9870
- function getDocumentRect(element) {
9871
- var _element$ownerDocumen;
9872
-
9873
- const html = getDocumentElement(element);
9874
- const scroll = getNodeScroll(element);
9875
- const body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
9876
- const width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
9877
- const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
9878
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
9879
- const y = -scroll.scrollTop;
9880
-
9881
- if (getComputedStyle$1(body || html).direction === 'rtl') {
9882
- x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
9883
- }
9884
-
9885
- return {
9886
- width,
9887
- height,
9888
- x,
9889
- y
9890
- };
9891
- }
9892
-
9893
- function getScrollParent(node) {
9894
- if (['html', 'body', '#document'].includes(getNodeName(node))) {
9895
- // @ts-ignore assume body is always available
9896
- return node.ownerDocument.body;
9897
- }
9898
-
9899
- if (isHTMLElement(node) && isScrollParent(node)) {
9900
- return node;
9901
- }
9902
-
9903
- return getScrollParent(getParentNode(node));
9904
- }
9905
-
9906
- function getScrollParents(node, list) {
9907
- var _node$ownerDocument;
9908
-
9909
- if (list === void 0) {
9910
- list = [];
9911
- }
9912
-
9913
- const scrollParent = getScrollParent(node);
9914
- const isBody = scrollParent === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
9915
- const win = getWindow(scrollParent);
9916
- const target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
9917
- const updatedList = list.concat(target);
9918
- return isBody ? updatedList : // @ts-ignore: isBody tells us target will be an HTMLElement here
9919
- updatedList.concat(getScrollParents(getParentNode(target)));
9920
- }
9921
-
9922
- function contains(parent, child) {
9923
- const rootNode = child.getRootNode == null ? void 0 : child.getRootNode(); // First, attempt with faster native method
9924
-
9925
- if (parent.contains(child)) {
9926
- return true;
9927
- } // then fallback to custom implementation with Shadow DOM support
9928
- else if (rootNode && isShadowRoot(rootNode)) {
9929
- let next = child;
9930
-
9931
- do {
9932
- // use `===` replace node.isSameNode()
9933
- if (next && parent === next) {
9934
- return true;
9935
- } // @ts-ignore: need a better way to handle this...
9936
-
9937
-
9938
- next = next.parentNode || next.host;
9939
- } while (next);
9940
- }
9941
-
9942
- return false;
9943
- }
9944
-
9945
- function getInnerBoundingClientRect(element) {
9946
- const clientRect = getBoundingClientRect(element);
9947
- const top = clientRect.top + element.clientTop;
9948
- const left = clientRect.left + element.clientLeft;
9949
- return {
9950
- top,
9951
- left,
9952
- x: left,
9953
- y: top,
9954
- right: left + element.clientWidth,
9955
- bottom: top + element.clientHeight,
9956
- width: element.clientWidth,
9957
- height: element.clientHeight
9958
- };
9959
- }
9960
-
9961
- function getClientRectFromClippingParent(element, clippingParent) {
9962
- if (clippingParent === 'viewport') {
9963
- return rectToClientRect(getViewportRect(element));
9964
- }
9965
-
9966
- if (isElement(clippingParent)) {
9967
- return getInnerBoundingClientRect(clippingParent);
9968
- }
9969
-
9970
- return rectToClientRect(getDocumentRect(getDocumentElement(element)));
9971
- } // A "clipping parent" is an overflowable container with the characteristic of
9972
- // clipping (or hiding) overflowing elements with a position different from
9973
- // `initial`
9974
-
9975
-
9976
- function getClippingParents(element) {
9977
- const clippingParents = getScrollParents(getParentNode(element));
9978
- const canEscapeClipping = ['absolute', 'fixed'].includes(getComputedStyle$1(element).position);
9979
- const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
9980
-
9981
- if (!isElement(clipperElement)) {
9982
- return [];
9983
- } // @ts-ignore isElement check ensures we return Array<Element>
9984
-
9985
-
9986
- return clippingParents.filter(clippingParent => isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body');
9987
- } // Gets the maximum area that the element is visible in due to any number of
9988
- // clipping parents
9989
-
9990
-
9991
- function getClippingClientRect(_ref) {
9992
- let {
9993
- element,
9994
- boundary,
9995
- rootBoundary
9996
- } = _ref;
9997
- const mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
9998
- const clippingParents = [...mainClippingParents, rootBoundary];
9999
- const firstClippingParent = clippingParents[0];
10000
- const clippingRect = clippingParents.reduce((accRect, clippingParent) => {
10001
- const rect = getClientRectFromClippingParent(element, clippingParent);
10002
- accRect.top = max(rect.top, accRect.top);
10003
- accRect.right = min(rect.right, accRect.right);
10004
- accRect.bottom = min(rect.bottom, accRect.bottom);
10005
- accRect.left = max(rect.left, accRect.left);
10006
- return accRect;
10007
- }, getClientRectFromClippingParent(element, firstClippingParent));
10008
- clippingRect.width = clippingRect.right - clippingRect.left;
10009
- clippingRect.height = clippingRect.bottom - clippingRect.top;
10010
- clippingRect.x = clippingRect.left;
10011
- clippingRect.y = clippingRect.top;
10012
- return clippingRect;
10013
- }
10014
-
10015
- const platform = {
10016
- getElementRects: _ref => {
10017
- let {
10018
- reference,
10019
- floating,
10020
- strategy
10021
- } = _ref;
10022
- return {
10023
- reference: getRectRelativeToOffsetParent(reference, getOffsetParent(floating), strategy),
10024
- floating: { ...getDimensions(floating),
10025
- x: 0,
10026
- y: 0
10027
- }
10028
- };
10029
- },
10030
- convertOffsetParentRelativeRectToViewportRelativeRect: args => convertOffsetParentRelativeRectToViewportRelativeRect(args),
10031
- getOffsetParent: _ref2 => {
10032
- let {
10033
- element
10034
- } = _ref2;
10035
- return getOffsetParent(element);
10036
- },
10037
- isElement: value => isElement(value),
10038
- getDocumentElement: _ref3 => {
10039
- let {
10040
- element
10041
- } = _ref3;
10042
- return getDocumentElement(element);
10043
- },
10044
- getClippingClientRect: args => getClippingClientRect(args),
10045
- getDimensions: _ref4 => {
10046
- let {
10047
- element
10048
- } = _ref4;
10049
- return getDimensions(element);
10050
- },
10051
- getClientRects: _ref5 => {
10052
- let {
10053
- element
10054
- } = _ref5;
10055
- return element.getClientRects();
10056
- }
10057
- };
10058
-
10059
- const computePosition = (reference, floating, options) => computePosition$1(reference, floating, {
10060
- platform,
10061
- ...options
10062
- });
10063
-
8816
+ function n$1(t){var e;return (null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function o(t){return n$1(t).getComputedStyle(t)}const i=Math.min,r=Math.max,l=Math.round;function c(t){const e=o(t);let n=parseFloat(e.width),i=parseFloat(e.height);const r=t.offsetWidth,c=t.offsetHeight,s=l(n)!==r||l(i)!==c;return s&&(n=r,i=c),{width:n,height:i,fallback:s}}function s(t){return h(t)?(t.nodeName||"").toLowerCase():""}let f$1;function u$1(){if(f$1)return f$1;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(f$1=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),f$1):navigator.userAgent}function a(t){return t instanceof n$1(t).HTMLElement}function d$1(t){return t instanceof n$1(t).Element}function h(t){return t instanceof n$1(t).Node}function p(t){if("undefined"==typeof ShadowRoot)return !1;return t instanceof n$1(t).ShadowRoot||t instanceof ShadowRoot}function g$1(t){const{overflow:e,overflowX:n,overflowY:i,display:r}=o(t);return /auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(r)}function m$1(t){return ["table","td","th"].includes(s(t))}function y$1(t){const e=/firefox/i.test(u$1()),n=o(t),i=n.backdropFilter||n.WebkitBackdropFilter;return "none"!==n.transform||"none"!==n.perspective||!!i&&"none"!==i||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((t=>n.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const e=n.contain;return null!=e&&e.includes(t)}))}function x(){return !/^((?!chrome|android).)*safari/i.test(u$1())}function w(t){return ["html","body","#document"].includes(s(t))}function v$1(t){return d$1(t)?t:t.contextElement}const b$1={x:1,y:1};function L$1(t){const e=v$1(t);if(!a(e))return b$1;const n=e.getBoundingClientRect(),{width:o,height:i,fallback:r}=c(e);let s=(r?l(n.width):n.width)/o,f=(r?l(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),f&&Number.isFinite(f)||(f=1),{x:s,y:f}}function E$1(t,e,o,i){var r,l;void 0===e&&(e=!1),void 0===o&&(o=!1);const c=t.getBoundingClientRect(),s=v$1(t);let f=b$1;e&&(i?d$1(i)&&(f=L$1(i)):f=L$1(t));const u=s?n$1(s):window,a=!x()&&o;let h=(c.left+(a&&(null==(r=u.visualViewport)?void 0:r.offsetLeft)||0))/f.x,p=(c.top+(a&&(null==(l=u.visualViewport)?void 0:l.offsetTop)||0))/f.y,g=c.width/f.x,m=c.height/f.y;if(s){const t=n$1(s),e=i&&d$1(i)?n$1(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=L$1(o),e=o.getBoundingClientRect(),i=getComputedStyle(o);e.x+=(o.clientLeft+parseFloat(i.paddingLeft))*t.x,e.y+=(o.clientTop+parseFloat(i.paddingTop))*t.y,h*=t.x,p*=t.y,g*=t.x,m*=t.y,h+=e.x,p+=e.y,o=n$1(o).frameElement;}}return {width:g,height:m,top:p,right:h+g,bottom:p+m,left:h,x:h,y:p}}function R(t){return ((h(t)?t.ownerDocument:t.document)||window.document).documentElement}function T(t){return d$1(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function C$1(t){return E$1(R(t)).left+T(t).scrollLeft}function F(t){if("html"===s(t))return t;const e=t.assignedSlot||t.parentNode||p(t)&&t.host||R(t);return p(e)?e.host:e}function W$1(t){const e=F(t);return w(e)?e.ownerDocument.body:a(e)&&g$1(e)?e:W$1(e)}function D(t,e){var o;void 0===e&&(e=[]);const i=W$1(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=n$1(i);return r?e.concat(l,l.visualViewport||[],g$1(i)?i:[]):e.concat(i,D(i))}function S$1(e,i,l){return "viewport"===i?s$1(function(t,e){const o=n$1(t),i=R(t),r=o.visualViewport;let l=i.clientWidth,c=i.clientHeight,s=0,f=0;if(r){l=r.width,c=r.height;const t=x();(t||!t&&"fixed"===e)&&(s=r.offsetLeft,f=r.offsetTop);}return {width:l,height:c,x:s,y:f}}(e,l)):d$1(i)?s$1(function(t,e){const n=E$1(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=a(t)?L$1(t):{x:1,y:1};return {width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(i,l)):s$1(function(t){const e=R(t),n=T(t),i=t.ownerDocument.body,l=r(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),c=r(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+C$1(t);const f=-n.scrollTop;return "rtl"===o(i).direction&&(s+=r(e.clientWidth,i.clientWidth)-l),{width:l,height:c,x:s,y:f}}(R(e)))}function A(t){return a(t)&&"fixed"!==o(t).position?t.offsetParent:null}function H(t){const e=n$1(t);let i=A(t);for(;i&&m$1(i)&&"static"===o(i).position;)i=A(i);return i&&("html"===s(i)||"body"===s(i)&&"static"===o(i).position&&!y$1(i))?e:i||function(t){let e=F(t);for(;a(e)&&!w(e);){if(y$1(e))return e;e=F(e);}return null}(t)||e}function O(t,e,n){const o=a(e),i=R(e),r=E$1(t,!0,"fixed"===n,e);let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==s(e)||g$1(i))&&(l=T(e)),a(e)){const t=E$1(e,!0);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop;}else i&&(c.x=C$1(i));return {x:r.left+l.scrollLeft-c.x,y:r.top+l.scrollTop-c.y,width:r.width,height:r.height}}const P={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:l,strategy:c}=t;const f="clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let i=D(t).filter((t=>d$1(t)&&"body"!==s(t))),r=null;const l="fixed"===o(t).position;let c=l?F(t):t;for(;d$1(c)&&!w(c);){const t=o(c),e=y$1(c);(l?e||r:e||"static"!==t.position||!r||!["absolute","fixed"].includes(r.position))?r=t:i=i.filter((t=>t!==c)),c=F(c);}return e.set(t,i),i}(e,this._c):[].concat(n),u=[...f,l],a=u[0],h=u.reduce(((t,n)=>{const o=S$1(e,n,c);return t.top=r(o.top,t.top),t.right=i(o.right,t.right),t.bottom=i(o.bottom,t.bottom),t.left=r(o.left,t.left),t}),S$1(e,a,c));return {width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=a(n),r=R(n);if(n===r)return e;let l={scrollLeft:0,scrollTop:0},c={x:1,y:1};const f={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==s(n)||g$1(r))&&(l=T(n)),a(n))){const t=E$1(n);c=L$1(n),f.x=t.x+n.clientLeft,f.y=t.y+n.clientTop;}return {width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-l.scrollLeft*c.x+f.x,y:e.y*c.y-l.scrollTop*c.y+f.y}},isElement:d$1,getDimensions:function(t){return a(t)?c(t):t.getBoundingClientRect()},getOffsetParent:H,getDocumentElement:R,getScale:L$1,async getElementRects(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||H,r=this.getDimensions;return {reference:O(e,await i(n),o),floating:{x:0,y:0,...await r(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===o(t).direction};const B=(t,n,o)=>{const i=new Map,r={platform:P,...o},l={...r.platform,_c:i};return r$1(t,n,{...r,platform:l})};
10064
8817
  /* Injected with object hook! */
10065
8818
 
10066
- var __defProp$1 = Object.defineProperty;
10067
- var __defProps$1 = Object.defineProperties;
10068
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
10069
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
10070
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
10071
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
10072
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10073
- var __spreadValues$1 = (a, b) => {
10074
- for (var prop in b || (b = {}))
10075
- if (__hasOwnProp$1.call(b, prop))
10076
- __defNormalProp$1(a, prop, b[prop]);
10077
- if (__getOwnPropSymbols$1)
10078
- for (var prop of __getOwnPropSymbols$1(b)) {
10079
- if (__propIsEnum$1.call(b, prop))
10080
- __defNormalProp$1(a, prop, b[prop]);
10081
- }
10082
- return a;
10083
- };
10084
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
10085
- function assign$1(to, from) {
10086
- for (const key in from) {
10087
- if (Object.prototype.hasOwnProperty.call(from, key)) {
10088
- if (typeof from[key] === "object" && to[key]) {
10089
- assign$1(to[key], from[key]);
10090
- } else {
10091
- to[key] = from[key];
10092
- }
10093
- }
10094
- }
8819
+ function fe(e, t) {
8820
+ for (const o in t)
8821
+ Object.prototype.hasOwnProperty.call(t, o) && (typeof t[o] == "object" && e[o] ? fe(e[o], t[o]) : e[o] = t[o]);
10095
8822
  }
10096
- const config = {
10097
- disabled: false,
8823
+ const u = {
8824
+ // Disable popper components
8825
+ disabled: !1,
8826
+ // Default position offset along main axis (px)
10098
8827
  distance: 5,
8828
+ // Default position offset along cross axis (px)
10099
8829
  skidding: 0,
8830
+ // Default container where the tooltip will be appended
10100
8831
  container: "body",
8832
+ // Element used to compute position and size boundaries
10101
8833
  boundary: void 0,
10102
- instantMove: false,
8834
+ // Skip delay & CSS transitions when another popper is shown, so that the popper appear to instanly move to the new position.
8835
+ instantMove: !1,
8836
+ // Auto destroy tooltip DOM nodes (ms)
10103
8837
  disposeTimeout: 5e3,
8838
+ // Triggers on the popper itself
10104
8839
  popperTriggers: [],
8840
+ // Positioning strategy
10105
8841
  strategy: "absolute",
10106
- preventOverflow: true,
10107
- flip: true,
10108
- shift: true,
8842
+ // Prevent overflow
8843
+ preventOverflow: !0,
8844
+ // Flip to the opposite placement if needed
8845
+ flip: !0,
8846
+ // Shift on the cross axis to prevent the popper from overflowing
8847
+ shift: !0,
8848
+ // Overflow padding (px)
10109
8849
  overflowPadding: 0,
8850
+ // Arrow padding (px)
10110
8851
  arrowPadding: 0,
10111
- arrowOverflow: true,
8852
+ // Compute arrow overflow (useful to hide it)
8853
+ arrowOverflow: !0,
8854
+ // Themes
10112
8855
  themes: {
10113
8856
  tooltip: {
8857
+ // Default tooltip placement relative to target element
10114
8858
  placement: "top",
8859
+ // Default events that trigger the tooltip
10115
8860
  triggers: ["hover", "focus", "touch"],
10116
- hideTriggers: (events) => [...events, "click"],
8861
+ // Close tooltip on click on tooltip target
8862
+ hideTriggers: (e) => [...e, "click"],
8863
+ // Delay (ms)
10117
8864
  delay: {
10118
8865
  show: 200,
10119
8866
  hide: 0
10120
8867
  },
10121
- handleResize: false,
10122
- html: false,
8868
+ // Update popper on content resize
8869
+ handleResize: !1,
8870
+ // Enable HTML content in directive
8871
+ html: !1,
8872
+ // Displayed when tooltip content is loading
10123
8873
  loadingContent: "..."
10124
8874
  },
10125
8875
  dropdown: {
8876
+ // Default dropdown placement relative to target element
10126
8877
  placement: "bottom",
8878
+ // Default events that trigger the dropdown
10127
8879
  triggers: ["click"],
8880
+ // Delay (ms)
10128
8881
  delay: 0,
10129
- handleResize: true,
10130
- autoHide: true
8882
+ // Update popper on content resize
8883
+ handleResize: !0,
8884
+ // Hide on clock outside
8885
+ autoHide: !0
10131
8886
  },
10132
8887
  menu: {
10133
8888
  $extend: "dropdown",
@@ -10140,136 +8895,105 @@ const config = {
10140
8895
  }
10141
8896
  }
10142
8897
  };
10143
- function getDefaultConfig(theme, key) {
10144
- let themeConfig = config.themes[theme] || {};
10145
- let value;
10146
- do {
10147
- value = themeConfig[key];
10148
- if (typeof value === "undefined") {
10149
- if (themeConfig.$extend) {
10150
- themeConfig = config.themes[themeConfig.$extend] || {};
10151
- } else {
10152
- themeConfig = null;
10153
- value = config[key];
10154
- }
10155
- } else {
10156
- themeConfig = null;
10157
- }
10158
- } while (themeConfig);
10159
- return value;
10160
- }
10161
- function getThemeClasses(theme) {
10162
- const result = [theme];
10163
- let themeConfig = config.themes[theme] || {};
10164
- do {
10165
- if (themeConfig.$extend && !themeConfig.$resetCss) {
10166
- result.push(themeConfig.$extend);
10167
- themeConfig = config.themes[themeConfig.$extend] || {};
10168
- } else {
10169
- themeConfig = null;
10170
- }
10171
- } while (themeConfig);
10172
- return result.map((c) => `v-popper--theme-${c}`);
10173
- }
10174
- function getAllParentThemes(theme) {
10175
- const result = [theme];
10176
- let themeConfig = config.themes[theme] || {};
10177
- do {
10178
- if (themeConfig.$extend) {
10179
- result.push(themeConfig.$extend);
10180
- themeConfig = config.themes[themeConfig.$extend] || {};
10181
- } else {
10182
- themeConfig = null;
10183
- }
10184
- } while (themeConfig);
10185
- return result;
10186
- }
10187
- let supportsPassive = false;
10188
- if (typeof window !== "undefined") {
10189
- supportsPassive = false;
8898
+ function b(e, t) {
8899
+ let o = u.themes[e] || {}, i;
8900
+ do
8901
+ i = o[t], typeof i > "u" ? o.$extend ? o = u.themes[o.$extend] || {} : (o = null, i = u[t]) : o = null;
8902
+ while (o);
8903
+ return i;
8904
+ }
8905
+ function Je(e) {
8906
+ const t = [e];
8907
+ let o = u.themes[e] || {};
8908
+ do
8909
+ o.$extend && !o.$resetCss ? (t.push(o.$extend), o = u.themes[o.$extend] || {}) : o = null;
8910
+ while (o);
8911
+ return t.map((i) => `v-popper--theme-${i}`);
8912
+ }
8913
+ function oe(e) {
8914
+ const t = [e];
8915
+ let o = u.themes[e] || {};
8916
+ do
8917
+ o.$extend ? (t.push(o.$extend), o = u.themes[o.$extend] || {}) : o = null;
8918
+ while (o);
8919
+ return t;
8920
+ }
8921
+ let _ = !1;
8922
+ if (typeof window < "u") {
8923
+ _ = !1;
10190
8924
  try {
10191
- const opts = Object.defineProperty({}, "passive", {
8925
+ const e = Object.defineProperty({}, "passive", {
10192
8926
  get() {
10193
- supportsPassive = true;
8927
+ _ = !0;
10194
8928
  }
10195
8929
  });
10196
- window.addEventListener("test", null, opts);
10197
- } catch (e) {
8930
+ window.addEventListener("test", null, e);
8931
+ } catch {
10198
8932
  }
10199
8933
  }
10200
- let isIOS$1 = false;
10201
- if (typeof window !== "undefined" && typeof navigator !== "undefined") {
10202
- isIOS$1 = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
10203
- }
10204
- const placements = ["auto", "top", "bottom", "left", "right"].reduce((acc, base) => acc.concat([
10205
- base,
10206
- `${base}-start`,
10207
- `${base}-end`
10208
- ]), []);
10209
- const SHOW_EVENT_MAP = {
8934
+ let me = !1;
8935
+ typeof window < "u" && typeof navigator < "u" && (me = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
8936
+ const ge = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
8937
+ t,
8938
+ `${t}-start`,
8939
+ `${t}-end`
8940
+ ]), []), ie = {
10210
8941
  hover: "mouseenter",
10211
8942
  focus: "focus",
10212
8943
  click: "click",
10213
- touch: "touchstart"
10214
- };
10215
- const HIDE_EVENT_MAP = {
8944
+ touch: "touchstart",
8945
+ pointer: "pointerdown"
8946
+ }, se = {
10216
8947
  hover: "mouseleave",
10217
8948
  focus: "blur",
10218
8949
  click: "click",
10219
- touch: "touchend"
8950
+ touch: "touchend",
8951
+ pointer: "pointerup"
10220
8952
  };
10221
- function removeFromArray(array, item) {
10222
- const index = array.indexOf(item);
10223
- if (index !== -1) {
10224
- array.splice(index, 1);
10225
- }
8953
+ function ne(e, t) {
8954
+ const o = e.indexOf(t);
8955
+ o !== -1 && e.splice(o, 1);
10226
8956
  }
10227
- function nextFrame() {
10228
- return new Promise((resolve) => requestAnimationFrame(() => {
10229
- requestAnimationFrame(resolve);
8957
+ function W() {
8958
+ return new Promise((e) => requestAnimationFrame(() => {
8959
+ requestAnimationFrame(e);
10230
8960
  }));
10231
8961
  }
10232
- const shownPoppers = [];
10233
- let hidingPopper = null;
10234
- const shownPoppersByTheme = {};
10235
- function getShownPoppersByTheme(theme) {
10236
- let list = shownPoppersByTheme[theme];
10237
- if (!list) {
10238
- list = shownPoppersByTheme[theme] = [];
10239
- }
10240
- return list;
8962
+ const d = [];
8963
+ let g = null;
8964
+ const re = {};
8965
+ function pe(e) {
8966
+ let t = re[e];
8967
+ return t || (t = re[e] = []), t;
10241
8968
  }
10242
- let Element$1 = function() {
8969
+ let X = function() {
10243
8970
  };
10244
- if (typeof window !== "undefined") {
10245
- Element$1 = window.Element;
10246
- }
10247
- function defaultPropFactory(prop) {
10248
- return function(props) {
10249
- return getDefaultConfig(props.theme, prop);
8971
+ typeof window < "u" && (X = window.Element);
8972
+ function n(e) {
8973
+ return function(t) {
8974
+ return b(t.theme, e);
10250
8975
  };
10251
8976
  }
10252
- const PROVIDE_KEY = "__floating-vue__popper";
10253
- var PrivatePopper = () => defineComponent({
8977
+ const G = "__floating-vue__popper", K = () => defineComponent({
10254
8978
  name: "VPopper",
10255
8979
  provide() {
10256
8980
  return {
10257
- [PROVIDE_KEY]: {
8981
+ [G]: {
10258
8982
  parentPopper: this
10259
8983
  }
10260
8984
  };
10261
8985
  },
10262
8986
  inject: {
10263
- [PROVIDE_KEY]: { default: null }
8987
+ [G]: { default: null }
10264
8988
  },
10265
8989
  props: {
10266
8990
  theme: {
10267
8991
  type: String,
10268
- required: true
8992
+ required: !0
10269
8993
  },
10270
8994
  targetNodes: {
10271
8995
  type: Function,
10272
- required: true
8996
+ required: !0
10273
8997
  },
10274
8998
  referenceNode: {
10275
8999
  type: Function,
@@ -10277,152 +9001,163 @@ var PrivatePopper = () => defineComponent({
10277
9001
  },
10278
9002
  popperNode: {
10279
9003
  type: Function,
10280
- required: true
9004
+ required: !0
10281
9005
  },
10282
9006
  shown: {
10283
9007
  type: Boolean,
10284
- default: false
9008
+ default: !1
10285
9009
  },
10286
9010
  showGroup: {
10287
9011
  type: String,
10288
9012
  default: null
10289
9013
  },
9014
+ // eslint-disable-next-line vue/require-prop-types
10290
9015
  ariaId: {
10291
9016
  default: null
10292
9017
  },
10293
9018
  disabled: {
10294
9019
  type: Boolean,
10295
- default: defaultPropFactory("disabled")
9020
+ default: n("disabled")
10296
9021
  },
10297
9022
  positioningDisabled: {
10298
9023
  type: Boolean,
10299
- default: defaultPropFactory("positioningDisabled")
9024
+ default: n("positioningDisabled")
10300
9025
  },
10301
9026
  placement: {
10302
9027
  type: String,
10303
- default: defaultPropFactory("placement"),
10304
- validator: (value) => placements.includes(value)
9028
+ default: n("placement"),
9029
+ validator: (e) => ge.includes(e)
10305
9030
  },
10306
9031
  delay: {
10307
9032
  type: [String, Number, Object],
10308
- default: defaultPropFactory("delay")
9033
+ default: n("delay")
10309
9034
  },
10310
9035
  distance: {
10311
9036
  type: [Number, String],
10312
- default: defaultPropFactory("distance")
9037
+ default: n("distance")
10313
9038
  },
10314
9039
  skidding: {
10315
9040
  type: [Number, String],
10316
- default: defaultPropFactory("skidding")
9041
+ default: n("skidding")
10317
9042
  },
10318
9043
  triggers: {
10319
9044
  type: Array,
10320
- default: defaultPropFactory("triggers")
9045
+ default: n("triggers")
10321
9046
  },
10322
9047
  showTriggers: {
10323
9048
  type: [Array, Function],
10324
- default: defaultPropFactory("showTriggers")
9049
+ default: n("showTriggers")
10325
9050
  },
10326
9051
  hideTriggers: {
10327
9052
  type: [Array, Function],
10328
- default: defaultPropFactory("hideTriggers")
9053
+ default: n("hideTriggers")
10329
9054
  },
10330
9055
  popperTriggers: {
10331
9056
  type: Array,
10332
- default: defaultPropFactory("popperTriggers")
9057
+ default: n("popperTriggers")
10333
9058
  },
10334
9059
  popperShowTriggers: {
10335
9060
  type: [Array, Function],
10336
- default: defaultPropFactory("popperShowTriggers")
9061
+ default: n("popperShowTriggers")
10337
9062
  },
10338
9063
  popperHideTriggers: {
10339
9064
  type: [Array, Function],
10340
- default: defaultPropFactory("popperHideTriggers")
9065
+ default: n("popperHideTriggers")
10341
9066
  },
10342
9067
  container: {
10343
- type: [String, Object, Element$1, Boolean],
10344
- default: defaultPropFactory("container")
9068
+ type: [String, Object, X, Boolean],
9069
+ default: n("container")
10345
9070
  },
10346
9071
  boundary: {
10347
- type: [String, Element$1],
10348
- default: defaultPropFactory("boundary")
9072
+ type: [String, X],
9073
+ default: n("boundary")
10349
9074
  },
10350
9075
  strategy: {
10351
9076
  type: String,
10352
- validator: (value) => ["absolute", "fixed"].includes(value),
10353
- default: defaultPropFactory("strategy")
9077
+ validator: (e) => ["absolute", "fixed"].includes(e),
9078
+ default: n("strategy")
10354
9079
  },
10355
9080
  autoHide: {
10356
9081
  type: [Boolean, Function],
10357
- default: defaultPropFactory("autoHide")
9082
+ default: n("autoHide")
10358
9083
  },
10359
9084
  handleResize: {
10360
9085
  type: Boolean,
10361
- default: defaultPropFactory("handleResize")
9086
+ default: n("handleResize")
10362
9087
  },
10363
9088
  instantMove: {
10364
9089
  type: Boolean,
10365
- default: defaultPropFactory("instantMove")
9090
+ default: n("instantMove")
10366
9091
  },
10367
9092
  eagerMount: {
10368
9093
  type: Boolean,
10369
- default: defaultPropFactory("eagerMount")
9094
+ default: n("eagerMount")
10370
9095
  },
10371
9096
  popperClass: {
10372
9097
  type: [String, Array, Object],
10373
- default: defaultPropFactory("popperClass")
9098
+ default: n("popperClass")
10374
9099
  },
10375
9100
  computeTransformOrigin: {
10376
9101
  type: Boolean,
10377
- default: defaultPropFactory("computeTransformOrigin")
9102
+ default: n("computeTransformOrigin")
10378
9103
  },
9104
+ /**
9105
+ * @deprecated
9106
+ */
10379
9107
  autoMinSize: {
10380
9108
  type: Boolean,
10381
- default: defaultPropFactory("autoMinSize")
9109
+ default: n("autoMinSize")
10382
9110
  },
10383
9111
  autoSize: {
10384
9112
  type: [Boolean, String],
10385
- default: defaultPropFactory("autoSize")
9113
+ default: n("autoSize")
10386
9114
  },
9115
+ /**
9116
+ * @deprecated
9117
+ */
10387
9118
  autoMaxSize: {
10388
9119
  type: Boolean,
10389
- default: defaultPropFactory("autoMaxSize")
9120
+ default: n("autoMaxSize")
10390
9121
  },
10391
9122
  autoBoundaryMaxSize: {
10392
9123
  type: Boolean,
10393
- default: defaultPropFactory("autoBoundaryMaxSize")
9124
+ default: n("autoBoundaryMaxSize")
10394
9125
  },
10395
9126
  preventOverflow: {
10396
9127
  type: Boolean,
10397
- default: defaultPropFactory("preventOverflow")
9128
+ default: n("preventOverflow")
10398
9129
  },
10399
9130
  overflowPadding: {
10400
9131
  type: [Number, String],
10401
- default: defaultPropFactory("overflowPadding")
9132
+ default: n("overflowPadding")
10402
9133
  },
10403
9134
  arrowPadding: {
10404
9135
  type: [Number, String],
10405
- default: defaultPropFactory("arrowPadding")
9136
+ default: n("arrowPadding")
10406
9137
  },
10407
9138
  arrowOverflow: {
10408
9139
  type: Boolean,
10409
- default: defaultPropFactory("arrowOverflow")
9140
+ default: n("arrowOverflow")
10410
9141
  },
10411
9142
  flip: {
10412
9143
  type: Boolean,
10413
- default: defaultPropFactory("flip")
9144
+ default: n("flip")
10414
9145
  },
10415
9146
  shift: {
10416
9147
  type: Boolean,
10417
- default: defaultPropFactory("shift")
9148
+ default: n("shift")
10418
9149
  },
10419
9150
  shiftCrossAxis: {
10420
9151
  type: Boolean,
10421
- default: defaultPropFactory("shiftCrossAxis")
9152
+ default: n("shiftCrossAxis")
10422
9153
  },
10423
9154
  noAutoFocus: {
10424
9155
  type: Boolean,
10425
- default: defaultPropFactory("noAutoFocus")
9156
+ default: n("noAutoFocus")
9157
+ },
9158
+ disposeTimeout: {
9159
+ type: Number,
9160
+ default: n("disposeTimeout")
10426
9161
  }
10427
9162
  },
10428
9163
  emits: [
@@ -10439,14 +9174,14 @@ var PrivatePopper = () => defineComponent({
10439
9174
  ],
10440
9175
  data() {
10441
9176
  return {
10442
- isShown: false,
10443
- isMounted: false,
10444
- skipTransition: false,
9177
+ isShown: !1,
9178
+ isMounted: !1,
9179
+ skipTransition: !1,
10445
9180
  classes: {
10446
- showFrom: false,
10447
- showTo: false,
10448
- hideFrom: false,
10449
- hideTo: true
9181
+ showFrom: !1,
9182
+ showTo: !1,
9183
+ hideFrom: !1,
9184
+ hideTo: !0
10450
9185
  },
10451
9186
  result: {
10452
9187
  x: 0,
@@ -10460,8 +9195,8 @@ var PrivatePopper = () => defineComponent({
10460
9195
  },
10461
9196
  transformOrigin: null
10462
9197
  },
10463
- shownChildren: new Set(),
10464
- lastAutoHide: true
9198
+ shownChildren: /* @__PURE__ */ new Set(),
9199
+ lastAutoHide: !0
10465
9200
  };
10466
9201
  },
10467
9202
  computed: {
@@ -10477,77 +9212,59 @@ var PrivatePopper = () => defineComponent({
10477
9212
  isShown: this.isShown,
10478
9213
  shouldMountContent: this.shouldMountContent,
10479
9214
  skipTransition: this.skipTransition,
10480
- autoHide: typeof this.autoHide === "function" ? this.lastAutoHide : this.autoHide,
9215
+ autoHide: typeof this.autoHide == "function" ? this.lastAutoHide : this.autoHide,
10481
9216
  show: this.show,
10482
9217
  hide: this.hide,
10483
9218
  handleResize: this.handleResize,
10484
9219
  onResize: this.onResize,
10485
- classes: __spreadProps$1(__spreadValues$1({}, this.classes), {
9220
+ classes: {
9221
+ ...this.classes,
10486
9222
  popperClass: this.popperClass
10487
- }),
9223
+ },
10488
9224
  result: this.positioningDisabled ? null : this.result,
10489
9225
  attrs: this.$attrs
10490
9226
  };
10491
9227
  },
10492
9228
  parentPopper() {
10493
- var _a;
10494
- return (_a = this[PROVIDE_KEY]) == null ? void 0 : _a.parentPopper;
9229
+ var e;
9230
+ return (e = this[G]) == null ? void 0 : e.parentPopper;
10495
9231
  },
10496
9232
  hasPopperShowTriggerHover() {
10497
- var _a, _b;
10498
- return ((_a = this.popperTriggers) == null ? void 0 : _a.includes("hover")) || ((_b = this.popperShowTriggers) == null ? void 0 : _b.includes("hover"));
9233
+ var e, t;
9234
+ return ((e = this.popperTriggers) == null ? void 0 : e.includes("hover")) || ((t = this.popperShowTriggers) == null ? void 0 : t.includes("hover"));
10499
9235
  }
10500
9236
  },
10501
- watch: __spreadValues$1(__spreadValues$1({
9237
+ watch: {
10502
9238
  shown: "$_autoShowHide",
10503
- disabled(value) {
10504
- if (value) {
10505
- this.dispose();
10506
- } else {
10507
- this.init();
10508
- }
9239
+ disabled(e) {
9240
+ e ? this.dispose() : this.init();
10509
9241
  },
10510
9242
  async container() {
10511
- if (this.isShown) {
10512
- this.$_ensureTeleport();
10513
- await this.$_computePosition();
10514
- }
10515
- }
10516
- }, [
10517
- "triggers",
10518
- "positioningDisabled"
10519
- ].reduce((acc, prop) => {
10520
- acc[prop] = "$_refreshListeners";
10521
- return acc;
10522
- }, {})), [
10523
- "placement",
10524
- "distance",
10525
- "skidding",
10526
- "boundary",
10527
- "strategy",
10528
- "overflowPadding",
10529
- "arrowPadding",
10530
- "preventOverflow",
10531
- "shift",
10532
- "shiftCrossAxis",
10533
- "flip"
10534
- ].reduce((acc, prop) => {
10535
- acc[prop] = "$_computePosition";
10536
- return acc;
10537
- }, {})),
9243
+ this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
9244
+ },
9245
+ ...[
9246
+ "triggers",
9247
+ "positioningDisabled"
9248
+ ].reduce((e, t) => (e[t] = "$_refreshListeners", e), {}),
9249
+ ...[
9250
+ "placement",
9251
+ "distance",
9252
+ "skidding",
9253
+ "boundary",
9254
+ "strategy",
9255
+ "overflowPadding",
9256
+ "arrowPadding",
9257
+ "preventOverflow",
9258
+ "shift",
9259
+ "shiftCrossAxis",
9260
+ "flip"
9261
+ ].reduce((e, t) => (e[t] = "$_computePosition", e), {})
9262
+ },
10538
9263
  created() {
10539
- this.$_isDisposed = true;
10540
- this.randomId = `popper_${[Math.random(), Date.now()].map((n) => n.toString(36).substring(2, 10)).join("_")}`;
10541
- if (this.autoMinSize) {
10542
- console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.');
10543
- }
10544
- if (this.autoMaxSize) {
10545
- console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");
10546
- }
9264
+ this.$_isDisposed = !0, this.randomId = `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`, this.autoMinSize && console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'), this.autoMaxSize && console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");
10547
9265
  },
10548
9266
  mounted() {
10549
- this.init();
10550
- this.$_detachPopperNode();
9267
+ this.init(), this.$_detachPopperNode();
10551
9268
  },
10552
9269
  activated() {
10553
9270
  this.$_autoShowHide();
@@ -10559,709 +9276,409 @@ var PrivatePopper = () => defineComponent({
10559
9276
  this.dispose();
10560
9277
  },
10561
9278
  methods: {
10562
- show({ event = null, skipDelay = false, force = false } = {}) {
10563
- var _a, _b;
10564
- if (((_a = this.parentPopper) == null ? void 0 : _a.lockedChild) && this.parentPopper.lockedChild !== this)
10565
- return;
10566
- this.$_pendingHide = false;
10567
- if (force || !this.disabled) {
10568
- if (((_b = this.parentPopper) == null ? void 0 : _b.lockedChild) === this) {
10569
- this.parentPopper.lockedChild = null;
10570
- }
10571
- this.$_scheduleShow(event, skipDelay);
10572
- this.$emit("show");
10573
- this.$_showFrameLocked = true;
10574
- requestAnimationFrame(() => {
10575
- this.$_showFrameLocked = false;
10576
- });
10577
- }
10578
- this.$emit("update:shown", true);
9279
+ show({ event: e = null, skipDelay: t = !1, force: o = !1 } = {}) {
9280
+ var i, s;
9281
+ (i = this.parentPopper) != null && i.lockedChild && this.parentPopper.lockedChild !== this || (this.$_pendingHide = !1, (o || !this.disabled) && (((s = this.parentPopper) == null ? void 0 : s.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
9282
+ this.$_showFrameLocked = !1;
9283
+ })), this.$emit("update:shown", !0));
10579
9284
  },
10580
- hide({ event = null, skipDelay = false } = {}) {
10581
- var _a;
10582
- if (this.$_hideInProgress)
10583
- return;
10584
- if (this.shownChildren.size > 0) {
10585
- this.$_pendingHide = true;
10586
- return;
10587
- }
10588
- if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
10589
- if (this.parentPopper) {
10590
- this.parentPopper.lockedChild = this;
10591
- clearTimeout(this.parentPopper.lockedChildTimer);
10592
- this.parentPopper.lockedChildTimer = setTimeout(() => {
10593
- if (this.parentPopper.lockedChild === this) {
10594
- this.parentPopper.lockedChild.hide({ skipDelay });
10595
- this.parentPopper.lockedChild = null;
10596
- }
10597
- }, 1e3);
9285
+ hide({ event: e = null, skipDelay: t = !1 } = {}) {
9286
+ var o;
9287
+ if (!this.$_hideInProgress) {
9288
+ if (this.shownChildren.size > 0) {
9289
+ this.$_pendingHide = !0;
9290
+ return;
10598
9291
  }
10599
- return;
10600
- }
10601
- if (((_a = this.parentPopper) == null ? void 0 : _a.lockedChild) === this) {
10602
- this.parentPopper.lockedChild = null;
9292
+ if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
9293
+ this.parentPopper && (this.parentPopper.lockedChild = this, clearTimeout(this.parentPopper.lockedChildTimer), this.parentPopper.lockedChildTimer = setTimeout(() => {
9294
+ this.parentPopper.lockedChild === this && (this.parentPopper.lockedChild.hide({ skipDelay: t }), this.parentPopper.lockedChild = null);
9295
+ }, 1e3));
9296
+ return;
9297
+ }
9298
+ ((o = this.parentPopper) == null ? void 0 : o.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_pendingHide = !1, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", !1);
10603
9299
  }
10604
- this.$_pendingHide = false;
10605
- this.$_scheduleHide(event, skipDelay);
10606
- this.$emit("hide");
10607
- this.$emit("update:shown", false);
10608
9300
  },
10609
9301
  init() {
10610
- var _a, _b;
10611
- if (!this.$_isDisposed)
10612
- return;
10613
- this.$_isDisposed = false;
10614
- this.isMounted = false;
10615
- this.$_events = [];
10616
- this.$_preventShow = false;
10617
- this.$_referenceNode = (_b = (_a = this.referenceNode) == null ? void 0 : _a.call(this)) != null ? _b : this.$el;
10618
- this.$_targetNodes = this.targetNodes().filter((e) => e.nodeType === e.ELEMENT_NODE);
10619
- this.$_popperNode = this.popperNode();
10620
- this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner");
10621
- this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container");
10622
- this.$_swapTargetAttrs("title", "data-original-title");
10623
- this.$_detachPopperNode();
10624
- if (this.triggers.length) {
10625
- this.$_addEventListeners();
10626
- }
10627
- if (this.shown) {
10628
- this.show();
10629
- }
9302
+ var e;
9303
+ this.$_isDisposed && (this.$_isDisposed = !1, this.isMounted = !1, this.$_events = [], this.$_preventShow = !1, this.$_referenceNode = ((e = this.referenceNode) == null ? void 0 : e.call(this)) ?? this.$el, this.$_targetNodes = this.targetNodes().filter((t) => t.nodeType === t.ELEMENT_NODE), this.$_popperNode = this.popperNode(), this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner"), this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container"), this.$_swapTargetAttrs("title", "data-original-title"), this.$_detachPopperNode(), this.triggers.length && this.$_addEventListeners(), this.shown && this.show());
10630
9304
  },
10631
9305
  dispose() {
10632
- if (this.$_isDisposed)
10633
- return;
10634
- this.$_isDisposed = true;
10635
- this.$_removeEventListeners();
10636
- this.hide({ skipDelay: true });
10637
- this.$_detachPopperNode();
10638
- this.isMounted = false;
10639
- this.isShown = false;
10640
- this.$_updateParentShownChildren(false);
10641
- this.$_swapTargetAttrs("data-original-title", "title");
10642
- this.$emit("dispose");
9306
+ this.$_isDisposed || (this.$_isDisposed = !0, this.$_removeEventListeners(), this.hide({ skipDelay: !0 }), this.$_detachPopperNode(), this.isMounted = !1, this.isShown = !1, this.$_updateParentShownChildren(!1), this.$_swapTargetAttrs("data-original-title", "title"), this.$emit("dispose"));
10643
9307
  },
10644
9308
  async onResize() {
10645
- if (this.isShown) {
10646
- await this.$_computePosition();
10647
- this.$emit("resize");
10648
- }
9309
+ this.isShown && (await this.$_computePosition(), this.$emit("resize"));
10649
9310
  },
10650
9311
  async $_computePosition() {
10651
- var _a;
10652
9312
  if (this.$_isDisposed || this.positioningDisabled)
10653
9313
  return;
10654
- const options2 = {
9314
+ const e = {
10655
9315
  strategy: this.strategy,
10656
9316
  middleware: []
10657
9317
  };
10658
- if (this.distance || this.skidding) {
10659
- options2.middleware.push(offset({
10660
- mainAxis: this.distance,
10661
- crossAxis: this.skidding
10662
- }));
10663
- }
10664
- const isPlacementAuto = this.placement.startsWith("auto");
10665
- if (isPlacementAuto) {
10666
- options2.middleware.push(autoPlacement({
10667
- alignment: (_a = this.placement.split("-")[1]) != null ? _a : ""
10668
- }));
10669
- } else {
10670
- options2.placement = this.placement;
10671
- }
10672
- if (this.preventOverflow) {
10673
- if (this.shift) {
10674
- options2.middleware.push(shift({
10675
- padding: this.overflowPadding,
10676
- boundary: this.boundary,
10677
- crossAxis: this.shiftCrossAxis
10678
- }));
10679
- }
10680
- if (!isPlacementAuto && this.flip) {
10681
- options2.middleware.push(flip({
10682
- padding: this.overflowPadding,
10683
- boundary: this.boundary
10684
- }));
10685
- }
10686
- }
10687
- options2.middleware.push(arrow({
9318
+ (this.distance || this.skidding) && e.middleware.push(L$2({
9319
+ mainAxis: this.distance,
9320
+ crossAxis: this.skidding
9321
+ }));
9322
+ const t = this.placement.startsWith("auto");
9323
+ if (t ? e.middleware.push(b$2({
9324
+ alignment: this.placement.split("-")[1] ?? ""
9325
+ })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(O$1({
9326
+ padding: this.overflowPadding,
9327
+ boundary: this.boundary,
9328
+ crossAxis: this.shiftCrossAxis
9329
+ })), !t && this.flip && e.middleware.push(A$1({
9330
+ padding: this.overflowPadding,
9331
+ boundary: this.boundary
9332
+ }))), e.middleware.push(g$2({
10688
9333
  element: this.$_arrowNode,
10689
9334
  padding: this.arrowPadding
10690
- }));
10691
- if (this.arrowOverflow) {
10692
- options2.middleware.push({
10693
- name: "arrowOverflow",
10694
- fn: ({ placement, rects, middlewareData }) => {
10695
- let overflow;
10696
- const { centerOffset } = middlewareData.arrow;
10697
- if (placement.startsWith("top") || placement.startsWith("bottom")) {
10698
- overflow = Math.abs(centerOffset) > rects.reference.width / 2;
10699
- } else {
10700
- overflow = Math.abs(centerOffset) > rects.reference.height / 2;
9335
+ })), this.arrowOverflow && e.middleware.push({
9336
+ name: "arrowOverflow",
9337
+ fn: ({ placement: i, rects: s, middlewareData: r }) => {
9338
+ let p;
9339
+ const { centerOffset: a } = r.arrow;
9340
+ return i.startsWith("top") || i.startsWith("bottom") ? p = Math.abs(a) > s.reference.width / 2 : p = Math.abs(a) > s.reference.height / 2, {
9341
+ data: {
9342
+ overflow: p
10701
9343
  }
10702
- return {
10703
- data: {
10704
- overflow
10705
- }
10706
- };
10707
- }
10708
- });
10709
- }
10710
- if (this.autoMinSize || this.autoSize) {
10711
- const autoSize = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
10712
- options2.middleware.push({
9344
+ };
9345
+ }
9346
+ }), this.autoMinSize || this.autoSize) {
9347
+ const i = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
9348
+ e.middleware.push({
10713
9349
  name: "autoSize",
10714
- fn: ({ rects, placement, middlewareData }) => {
10715
- var _a2;
10716
- if ((_a2 = middlewareData.autoSize) == null ? void 0 : _a2.skip) {
9350
+ fn: ({ rects: s, placement: r, middlewareData: p }) => {
9351
+ var h;
9352
+ if ((h = p.autoSize) != null && h.skip)
10717
9353
  return {};
10718
- }
10719
- let width;
10720
- let height;
10721
- if (placement.startsWith("top") || placement.startsWith("bottom")) {
10722
- width = rects.reference.width;
10723
- } else {
10724
- height = rects.reference.height;
10725
- }
10726
- this.$_innerNode.style[autoSize === "min" ? "minWidth" : autoSize === "max" ? "maxWidth" : "width"] = width != null ? `${width}px` : null;
10727
- this.$_innerNode.style[autoSize === "min" ? "minHeight" : autoSize === "max" ? "maxHeight" : "height"] = height != null ? `${height}px` : null;
10728
- return {
9354
+ let a, l;
9355
+ return r.startsWith("top") || r.startsWith("bottom") ? a = s.reference.width : l = s.reference.height, this.$_innerNode.style[i === "min" ? "minWidth" : i === "max" ? "maxWidth" : "width"] = a != null ? `${a}px` : null, this.$_innerNode.style[i === "min" ? "minHeight" : i === "max" ? "maxHeight" : "height"] = l != null ? `${l}px` : null, {
10729
9356
  data: {
10730
- skip: true
9357
+ skip: !0
10731
9358
  },
10732
9359
  reset: {
10733
- rects: true
9360
+ rects: !0
10734
9361
  }
10735
9362
  };
10736
9363
  }
10737
9364
  });
10738
9365
  }
10739
- if (this.autoMaxSize || this.autoBoundaryMaxSize) {
10740
- this.$_innerNode.style.maxWidth = null;
10741
- this.$_innerNode.style.maxHeight = null;
10742
- options2.middleware.push(size({
10743
- boundary: this.boundary,
10744
- padding: this.overflowPadding,
10745
- apply: ({ width, height }) => {
10746
- this.$_innerNode.style.maxWidth = width != null ? `${width}px` : null;
10747
- this.$_innerNode.style.maxHeight = height != null ? `${height}px` : null;
10748
- }
10749
- }));
10750
- }
10751
- const data = await computePosition(this.$_referenceNode, this.$_popperNode, options2);
9366
+ (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(C$2({
9367
+ boundary: this.boundary,
9368
+ padding: this.overflowPadding,
9369
+ apply: ({ availableWidth: i, availableHeight: s }) => {
9370
+ this.$_innerNode.style.maxWidth = i != null ? `${i}px` : null, this.$_innerNode.style.maxHeight = s != null ? `${s}px` : null;
9371
+ }
9372
+ })));
9373
+ const o = await B(this.$_referenceNode, this.$_popperNode, e);
10752
9374
  Object.assign(this.result, {
10753
- x: data.x,
10754
- y: data.y,
10755
- placement: data.placement,
10756
- strategy: data.strategy,
10757
- arrow: __spreadValues$1(__spreadValues$1({}, data.middlewareData.arrow), data.middlewareData.arrowOverflow)
9375
+ x: o.x,
9376
+ y: o.y,
9377
+ placement: o.placement,
9378
+ strategy: o.strategy,
9379
+ arrow: {
9380
+ ...o.middlewareData.arrow,
9381
+ ...o.middlewareData.arrowOverflow
9382
+ }
10758
9383
  });
10759
9384
  },
10760
- $_scheduleShow(event = null, skipDelay = false) {
10761
- this.$_updateParentShownChildren(true);
10762
- this.$_hideInProgress = false;
10763
- clearTimeout(this.$_scheduleTimer);
10764
- if (hidingPopper && this.instantMove && hidingPopper.instantMove && hidingPopper !== this.parentPopper) {
10765
- hidingPopper.$_applyHide(true);
10766
- this.$_applyShow(true);
9385
+ $_scheduleShow(e = null, t = !1) {
9386
+ if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), g && this.instantMove && g.instantMove && g !== this.parentPopper) {
9387
+ g.$_applyHide(!0), this.$_applyShow(!0);
10767
9388
  return;
10768
9389
  }
10769
- if (skipDelay) {
10770
- this.$_applyShow();
10771
- } else {
10772
- this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
10773
- }
9390
+ t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
10774
9391
  },
10775
- $_scheduleHide(event = null, skipDelay = false) {
9392
+ $_scheduleHide(e = null, t = !1) {
10776
9393
  if (this.shownChildren.size > 0) {
10777
- this.$_pendingHide = true;
9394
+ this.$_pendingHide = !0;
10778
9395
  return;
10779
9396
  }
10780
- this.$_updateParentShownChildren(false);
10781
- this.$_hideInProgress = true;
10782
- clearTimeout(this.$_scheduleTimer);
10783
- if (this.isShown) {
10784
- hidingPopper = this;
10785
- }
10786
- if (skipDelay) {
10787
- this.$_applyHide();
10788
- } else {
10789
- this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
10790
- }
9397
+ this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (g = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
10791
9398
  },
10792
- $_computeDelay(type) {
10793
- const delay = this.delay;
10794
- return parseInt(delay && delay[type] || delay || 0);
9399
+ $_computeDelay(e) {
9400
+ const t = this.delay;
9401
+ return parseInt(t && t[e] || t || 0);
10795
9402
  },
10796
- async $_applyShow(skipTransition = false) {
10797
- clearTimeout(this.$_disposeTimer);
10798
- clearTimeout(this.$_scheduleTimer);
10799
- this.skipTransition = skipTransition;
10800
- if (this.isShown) {
10801
- return;
10802
- }
10803
- this.$_ensureTeleport();
10804
- await nextFrame();
10805
- await this.$_computePosition();
10806
- await this.$_applyShowEffect();
10807
- if (!this.positioningDisabled) {
10808
- this.$_registerEventListeners([
10809
- ...getScrollParents(this.$_referenceNode),
10810
- ...getScrollParents(this.$_popperNode)
10811
- ], "scroll", () => {
10812
- this.$_computePosition();
10813
- });
10814
- }
9403
+ async $_applyShow(e = !1) {
9404
+ clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await W(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
9405
+ ...D(this.$_referenceNode),
9406
+ ...D(this.$_popperNode)
9407
+ ], "scroll", () => {
9408
+ this.$_computePosition();
9409
+ }));
10815
9410
  },
10816
9411
  async $_applyShowEffect() {
10817
9412
  if (this.$_hideInProgress)
10818
9413
  return;
10819
9414
  if (this.computeTransformOrigin) {
10820
- const bounds = this.$_referenceNode.getBoundingClientRect();
10821
- const popperWrapper = this.$_popperNode.querySelector(".v-popper__wrapper");
10822
- const parentBounds = popperWrapper.parentNode.getBoundingClientRect();
10823
- const x = bounds.x + bounds.width / 2 - (parentBounds.left + popperWrapper.offsetLeft);
10824
- const y = bounds.y + bounds.height / 2 - (parentBounds.top + popperWrapper.offsetTop);
10825
- this.result.transformOrigin = `${x}px ${y}px`;
10826
- }
10827
- this.isShown = true;
10828
- this.$_applyAttrsToTarget({
9415
+ const t = this.$_referenceNode.getBoundingClientRect(), o = this.$_popperNode.querySelector(".v-popper__wrapper"), i = o.parentNode.getBoundingClientRect(), s = t.x + t.width / 2 - (i.left + o.offsetLeft), r = t.y + t.height / 2 - (i.top + o.offsetTop);
9416
+ this.result.transformOrigin = `${s}px ${r}px`;
9417
+ }
9418
+ this.isShown = !0, this.$_applyAttrsToTarget({
10829
9419
  "aria-describedby": this.popperId,
10830
9420
  "data-popper-shown": ""
10831
9421
  });
10832
- const showGroup = this.showGroup;
10833
- if (showGroup) {
10834
- let popover;
10835
- for (let i = 0; i < shownPoppers.length; i++) {
10836
- popover = shownPoppers[i];
10837
- if (popover.showGroup !== showGroup) {
10838
- popover.hide();
10839
- popover.$emit("close-group");
10840
- }
10841
- }
10842
- }
10843
- shownPoppers.push(this);
10844
- document.body.classList.add("v-popper--some-open");
10845
- for (const theme of getAllParentThemes(this.theme)) {
10846
- getShownPoppersByTheme(theme).push(this);
10847
- document.body.classList.add(`v-popper--some-open--${theme}`);
10848
- }
10849
- this.$emit("apply-show");
10850
- this.classes.showFrom = true;
10851
- this.classes.showTo = false;
10852
- this.classes.hideFrom = false;
10853
- this.classes.hideTo = false;
10854
- await nextFrame();
10855
- this.classes.showFrom = false;
10856
- this.classes.showTo = true;
10857
- if (!this.noAutoFocus)
10858
- this.$_popperNode.focus();
9422
+ const e = this.showGroup;
9423
+ if (e) {
9424
+ let t;
9425
+ for (let o = 0; o < d.length; o++)
9426
+ t = d[o], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
9427
+ }
9428
+ d.push(this), document.body.classList.add("v-popper--some-open");
9429
+ for (const t of oe(this.theme))
9430
+ pe(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
9431
+ this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await W(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
10859
9432
  },
10860
- async $_applyHide(skipTransition = false) {
9433
+ async $_applyHide(e = !1) {
10861
9434
  if (this.shownChildren.size > 0) {
10862
- this.$_pendingHide = true;
10863
- this.$_hideInProgress = false;
9435
+ this.$_pendingHide = !0, this.$_hideInProgress = !1;
10864
9436
  return;
10865
9437
  }
10866
- clearTimeout(this.$_scheduleTimer);
10867
- if (!this.isShown) {
9438
+ if (clearTimeout(this.$_scheduleTimer), !this.isShown)
10868
9439
  return;
9440
+ this.skipTransition = e, ne(d, this), d.length === 0 && document.body.classList.remove("v-popper--some-open");
9441
+ for (const o of oe(this.theme)) {
9442
+ const i = pe(o);
9443
+ ne(i, this), i.length === 0 && document.body.classList.remove(`v-popper--some-open--${o}`);
10869
9444
  }
10870
- this.skipTransition = skipTransition;
10871
- removeFromArray(shownPoppers, this);
10872
- if (shownPoppers.length === 0) {
10873
- document.body.classList.remove("v-popper--some-open");
10874
- }
10875
- for (const theme of getAllParentThemes(this.theme)) {
10876
- const list = getShownPoppersByTheme(theme);
10877
- removeFromArray(list, this);
10878
- if (list.length === 0) {
10879
- document.body.classList.remove(`v-popper--some-open--${theme}`);
10880
- }
10881
- }
10882
- if (hidingPopper === this) {
10883
- hidingPopper = null;
10884
- }
10885
- this.isShown = false;
10886
- this.$_applyAttrsToTarget({
9445
+ g === this && (g = null), this.isShown = !1, this.$_applyAttrsToTarget({
10887
9446
  "aria-describedby": void 0,
10888
9447
  "data-popper-shown": void 0
10889
- });
10890
- clearTimeout(this.$_disposeTimer);
10891
- const disposeTime = getDefaultConfig(this.theme, "disposeTimeout");
10892
- if (disposeTime !== null) {
10893
- this.$_disposeTimer = setTimeout(() => {
10894
- if (this.$_popperNode) {
10895
- this.$_detachPopperNode();
10896
- this.isMounted = false;
10897
- }
10898
- }, disposeTime);
10899
- }
10900
- this.$_removeEventListeners("scroll");
10901
- this.$emit("apply-hide");
10902
- this.classes.showFrom = false;
10903
- this.classes.showTo = false;
10904
- this.classes.hideFrom = true;
10905
- this.classes.hideTo = false;
10906
- await nextFrame();
10907
- this.classes.hideFrom = false;
10908
- this.classes.hideTo = true;
9448
+ }), clearTimeout(this.$_disposeTimer);
9449
+ const t = this.disposeTimeout;
9450
+ t !== null && (this.$_disposeTimer = setTimeout(() => {
9451
+ this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
9452
+ }, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await W(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
10909
9453
  },
10910
9454
  $_autoShowHide() {
10911
- if (this.shown) {
10912
- this.show();
10913
- } else {
10914
- this.hide();
10915
- }
9455
+ this.shown ? this.show() : this.hide();
10916
9456
  },
10917
9457
  $_ensureTeleport() {
10918
9458
  if (this.$_isDisposed)
10919
9459
  return;
10920
- let container = this.container;
10921
- if (typeof container === "string") {
10922
- container = window.document.querySelector(container);
10923
- } else if (container === false) {
10924
- container = this.$_targetNodes[0].parentNode;
10925
- }
10926
- if (!container) {
9460
+ let e = this.container;
9461
+ if (typeof e == "string" ? e = window.document.querySelector(e) : e === !1 && (e = this.$_targetNodes[0].parentNode), !e)
10927
9462
  throw new Error("No container for popover: " + this.container);
10928
- }
10929
- container.appendChild(this.$_popperNode);
10930
- this.isMounted = true;
9463
+ e.appendChild(this.$_popperNode), this.isMounted = !0;
10931
9464
  },
10932
9465
  $_addEventListeners() {
10933
- const handleShow = (event) => {
10934
- if (this.isShown && !this.$_hideInProgress) {
10935
- return;
10936
- }
10937
- event.usedByTooltip = true;
10938
- !this.$_preventShow && this.show({ event });
9466
+ const e = (o) => {
9467
+ this.isShown && !this.$_hideInProgress || (o.usedByTooltip = !0, !this.$_preventShow && this.show({ event: o }));
10939
9468
  };
10940
- this.$_registerTriggerListeners(this.$_targetNodes, SHOW_EVENT_MAP, this.triggers, this.showTriggers, handleShow);
10941
- this.$_registerTriggerListeners([this.$_popperNode], SHOW_EVENT_MAP, this.popperTriggers, this.popperShowTriggers, handleShow);
10942
- const handleHide = (event) => {
10943
- if (event.usedByTooltip) {
10944
- return;
10945
- }
10946
- this.hide({ event });
9469
+ this.$_registerTriggerListeners(this.$_targetNodes, ie, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], ie, this.popperTriggers, this.popperShowTriggers, e);
9470
+ const t = (o) => {
9471
+ o.usedByTooltip || this.hide({ event: o });
10947
9472
  };
10948
- this.$_registerTriggerListeners(this.$_targetNodes, HIDE_EVENT_MAP, this.triggers, this.hideTriggers, handleHide);
10949
- this.$_registerTriggerListeners([this.$_popperNode], HIDE_EVENT_MAP, this.popperTriggers, this.popperHideTriggers, handleHide);
9473
+ this.$_registerTriggerListeners(this.$_targetNodes, se, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], se, this.popperTriggers, this.popperHideTriggers, t);
10950
9474
  },
10951
- $_registerEventListeners(targetNodes, eventType, handler) {
10952
- this.$_events.push({ targetNodes, eventType, handler });
10953
- targetNodes.forEach((node) => node.addEventListener(eventType, handler, supportsPassive ? {
10954
- passive: true
9475
+ $_registerEventListeners(e, t, o) {
9476
+ this.$_events.push({ targetNodes: e, eventType: t, handler: o }), e.forEach((i) => i.addEventListener(t, o, _ ? {
9477
+ passive: !0
10955
9478
  } : void 0));
10956
9479
  },
10957
- $_registerTriggerListeners(targetNodes, eventMap, commonTriggers, customTrigger, handler) {
10958
- let triggers = commonTriggers;
10959
- if (customTrigger != null) {
10960
- triggers = typeof customTrigger === "function" ? customTrigger(triggers) : customTrigger;
10961
- }
10962
- triggers.forEach((trigger) => {
10963
- const eventType = eventMap[trigger];
10964
- if (eventType) {
10965
- this.$_registerEventListeners(targetNodes, eventType, handler);
10966
- }
9480
+ $_registerTriggerListeners(e, t, o, i, s) {
9481
+ let r = o;
9482
+ i != null && (r = typeof i == "function" ? i(r) : i), r.forEach((p) => {
9483
+ const a = t[p];
9484
+ a && this.$_registerEventListeners(e, a, s);
10967
9485
  });
10968
9486
  },
10969
- $_removeEventListeners(filterEventType) {
10970
- const newList = [];
10971
- this.$_events.forEach((listener) => {
10972
- const { targetNodes, eventType, handler } = listener;
10973
- if (!filterEventType || filterEventType === eventType) {
10974
- targetNodes.forEach((node) => node.removeEventListener(eventType, handler));
10975
- } else {
10976
- newList.push(listener);
10977
- }
10978
- });
10979
- this.$_events = newList;
9487
+ $_removeEventListeners(e) {
9488
+ const t = [];
9489
+ this.$_events.forEach((o) => {
9490
+ const { targetNodes: i, eventType: s, handler: r } = o;
9491
+ !e || e === s ? i.forEach((p) => p.removeEventListener(s, r)) : t.push(o);
9492
+ }), this.$_events = t;
10980
9493
  },
10981
9494
  $_refreshListeners() {
10982
- if (!this.$_isDisposed) {
10983
- this.$_removeEventListeners();
10984
- this.$_addEventListeners();
10985
- }
9495
+ this.$_isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
10986
9496
  },
10987
- $_handleGlobalClose(event, touch = false) {
10988
- if (this.$_showFrameLocked)
10989
- return;
10990
- this.hide({ event });
10991
- if (event.closePopover) {
10992
- this.$emit("close-directive");
10993
- } else {
10994
- this.$emit("auto-hide");
10995
- }
10996
- if (touch) {
10997
- this.$_preventShow = true;
10998
- setTimeout(() => {
10999
- this.$_preventShow = false;
11000
- }, 300);
11001
- }
9497
+ $_handleGlobalClose(e, t = !1) {
9498
+ this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = !0, setTimeout(() => {
9499
+ this.$_preventShow = !1;
9500
+ }, 300)));
11002
9501
  },
11003
9502
  $_detachPopperNode() {
11004
9503
  this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
11005
9504
  },
11006
- $_swapTargetAttrs(attrFrom, attrTo) {
11007
- for (const el of this.$_targetNodes) {
11008
- const value = el.getAttribute(attrFrom);
11009
- if (value) {
11010
- el.removeAttribute(attrFrom);
11011
- el.setAttribute(attrTo, value);
11012
- }
9505
+ $_swapTargetAttrs(e, t) {
9506
+ for (const o of this.$_targetNodes) {
9507
+ const i = o.getAttribute(e);
9508
+ i && (o.removeAttribute(e), o.setAttribute(t, i));
11013
9509
  }
11014
9510
  },
11015
- $_applyAttrsToTarget(attrs) {
11016
- for (const el of this.$_targetNodes) {
11017
- for (const n in attrs) {
11018
- const value = attrs[n];
11019
- if (value == null) {
11020
- el.removeAttribute(n);
11021
- } else {
11022
- el.setAttribute(n, value);
11023
- }
9511
+ $_applyAttrsToTarget(e) {
9512
+ for (const t of this.$_targetNodes)
9513
+ for (const o in e) {
9514
+ const i = e[o];
9515
+ i == null ? t.removeAttribute(o) : t.setAttribute(o, i);
11024
9516
  }
11025
- }
11026
9517
  },
11027
- $_updateParentShownChildren(value) {
11028
- let parent = this.parentPopper;
11029
- while (parent) {
11030
- if (value) {
11031
- parent.shownChildren.add(this.randomId);
11032
- } else {
11033
- parent.shownChildren.delete(this.randomId);
11034
- if (parent.$_pendingHide) {
11035
- parent.hide();
11036
- }
11037
- }
11038
- parent = parent.parentPopper;
11039
- }
9518
+ $_updateParentShownChildren(e) {
9519
+ let t = this.parentPopper;
9520
+ for (; t; )
9521
+ e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.$_pendingHide && t.hide()), t = t.parentPopper;
11040
9522
  },
11041
9523
  $_isAimingPopper() {
11042
- const referenceBounds = this.$_referenceNode.getBoundingClientRect();
11043
- if (mouseX >= referenceBounds.left && mouseX <= referenceBounds.right && mouseY >= referenceBounds.top && mouseY <= referenceBounds.bottom) {
11044
- const popperBounds = this.$_popperNode.getBoundingClientRect();
11045
- const vectorX = mouseX - mousePreviousX;
11046
- const vectorY = mouseY - mousePreviousY;
11047
- const distance = popperBounds.left + popperBounds.width / 2 - mousePreviousX + (popperBounds.top + popperBounds.height / 2) - mousePreviousY;
11048
- const newVectorLength = distance + popperBounds.width + popperBounds.height;
11049
- const edgeX = mousePreviousX + vectorX * newVectorLength;
11050
- const edgeY = mousePreviousY + vectorY * newVectorLength;
11051
- return lineIntersectsLine(mousePreviousX, mousePreviousY, edgeX, edgeY, popperBounds.left, popperBounds.top, popperBounds.left, popperBounds.bottom) || lineIntersectsLine(mousePreviousX, mousePreviousY, edgeX, edgeY, popperBounds.left, popperBounds.top, popperBounds.right, popperBounds.top) || lineIntersectsLine(mousePreviousX, mousePreviousY, edgeX, edgeY, popperBounds.right, popperBounds.top, popperBounds.right, popperBounds.bottom) || lineIntersectsLine(mousePreviousX, mousePreviousY, edgeX, edgeY, popperBounds.left, popperBounds.bottom, popperBounds.right, popperBounds.bottom);
9524
+ const e = this.$_referenceNode.getBoundingClientRect();
9525
+ if (v >= e.left && v <= e.right && y >= e.top && y <= e.bottom) {
9526
+ const t = this.$_popperNode.getBoundingClientRect(), o = v - f, i = y - m, r = t.left + t.width / 2 - f + (t.top + t.height / 2) - m + t.width + t.height, p = f + o * r, a = m + i * r;
9527
+ return S(f, m, p, a, t.left, t.top, t.left, t.bottom) || // Left edge
9528
+ S(f, m, p, a, t.left, t.top, t.right, t.top) || // Top edge
9529
+ S(f, m, p, a, t.right, t.top, t.right, t.bottom) || // Right edge
9530
+ S(f, m, p, a, t.left, t.bottom, t.right, t.bottom);
11052
9531
  }
11053
- return false;
9532
+ return !1;
11054
9533
  }
11055
9534
  },
11056
9535
  render() {
11057
9536
  return this.$slots.default(this.slotData);
11058
9537
  }
11059
9538
  });
11060
- if (typeof document !== "undefined" && typeof window !== "undefined") {
11061
- if (isIOS$1) {
11062
- document.addEventListener("touchstart", handleGlobalMousedown, supportsPassive ? {
11063
- passive: true,
11064
- capture: true
11065
- } : true);
11066
- document.addEventListener("touchend", handleGlobalTouchend, supportsPassive ? {
11067
- passive: true,
11068
- capture: true
11069
- } : true);
11070
- } else {
11071
- window.addEventListener("mousedown", handleGlobalMousedown, true);
11072
- window.addEventListener("click", handleGlobalClick, true);
11073
- }
11074
- window.addEventListener("resize", computePositionAllShownPoppers);
11075
- }
11076
- function handleGlobalMousedown(event) {
11077
- for (let i = 0; i < shownPoppers.length; i++) {
11078
- const popper = shownPoppers[i];
9539
+ typeof document < "u" && typeof window < "u" && (me ? (document.addEventListener("touchstart", ae, _ ? {
9540
+ passive: !0,
9541
+ capture: !0
9542
+ } : !0), document.addEventListener("touchend", Ze, _ ? {
9543
+ passive: !0,
9544
+ capture: !0
9545
+ } : !0)) : (window.addEventListener("mousedown", ae, !0), window.addEventListener("click", Qe, !0)), window.addEventListener("resize", ot));
9546
+ function ae(e) {
9547
+ for (let t = 0; t < d.length; t++) {
9548
+ const o = d[t];
11079
9549
  try {
11080
- const popperContent = popper.popperNode();
11081
- popper.$_mouseDownContains = popperContent.contains(event.target);
11082
- } catch (e) {
9550
+ const i = o.popperNode();
9551
+ o.$_mouseDownContains = i.contains(e.target);
9552
+ } catch {
11083
9553
  }
11084
9554
  }
11085
9555
  }
11086
- function handleGlobalClick(event) {
11087
- handleGlobalClose(event);
9556
+ function Qe(e) {
9557
+ $e(e);
11088
9558
  }
11089
- function handleGlobalTouchend(event) {
11090
- handleGlobalClose(event, true);
9559
+ function Ze(e) {
9560
+ $e(e, !0);
11091
9561
  }
11092
- function handleGlobalClose(event, touch = false) {
11093
- const preventClose = {};
11094
- for (let i = shownPoppers.length - 1; i >= 0; i--) {
11095
- const popper = shownPoppers[i];
9562
+ function $e(e, t = !1) {
9563
+ const o = {};
9564
+ for (let i = d.length - 1; i >= 0; i--) {
9565
+ const s = d[i];
11096
9566
  try {
11097
- const contains = popper.$_containsGlobalTarget = isContainingEventTarget(popper, event);
11098
- popper.$_pendingHide = false;
11099
- requestAnimationFrame(() => {
11100
- popper.$_pendingHide = false;
11101
- if (preventClose[popper.randomId])
11102
- return;
11103
- if (shouldAutoHide(popper, contains, event)) {
11104
- popper.$_handleGlobalClose(event, touch);
11105
- if (!event.closeAllPopover && event.closePopover && contains) {
11106
- let parent2 = popper.parentPopper;
11107
- while (parent2) {
11108
- preventClose[parent2.randomId] = true;
11109
- parent2 = parent2.parentPopper;
11110
- }
9567
+ const r = s.$_containsGlobalTarget = et(s, e);
9568
+ s.$_pendingHide = !1, requestAnimationFrame(() => {
9569
+ if (s.$_pendingHide = !1, !o[s.randomId] && de(s, r, e)) {
9570
+ if (s.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && r) {
9571
+ let a = s.parentPopper;
9572
+ for (; a; )
9573
+ o[a.randomId] = !0, a = a.parentPopper;
11111
9574
  return;
11112
9575
  }
11113
- let parent = popper.parentPopper;
11114
- while (parent) {
11115
- if (shouldAutoHide(parent, parent.$_containsGlobalTarget, event)) {
11116
- parent.$_handleGlobalClose(event, touch);
11117
- } else {
11118
- break;
11119
- }
11120
- parent = parent.parentPopper;
9576
+ let p = s.parentPopper;
9577
+ for (; p && de(p, p.$_containsGlobalTarget, e); ) {
9578
+ p.$_handleGlobalClose(e, t);
9579
+ p = p.parentPopper;
11121
9580
  }
11122
9581
  }
11123
9582
  });
11124
- } catch (e) {
9583
+ } catch {
11125
9584
  }
11126
9585
  }
11127
9586
  }
11128
- function isContainingEventTarget(popper, event) {
11129
- const popperContent = popper.popperNode();
11130
- return popper.$_mouseDownContains || popperContent.contains(event.target);
9587
+ function et(e, t) {
9588
+ const o = e.popperNode();
9589
+ return e.$_mouseDownContains || o.contains(t.target);
11131
9590
  }
11132
- function shouldAutoHide(popper, contains, event) {
11133
- return event.closeAllPopover || event.closePopover && contains || getAutoHideResult(popper, event) && !contains;
9591
+ function de(e, t, o) {
9592
+ return o.closeAllPopover || o.closePopover && t || tt(e, o) && !t;
11134
9593
  }
11135
- function getAutoHideResult(popper, event) {
11136
- if (typeof popper.autoHide === "function") {
11137
- const result = popper.autoHide(event);
11138
- popper.lastAutoHide = result;
11139
- return result;
11140
- }
11141
- return popper.autoHide;
11142
- }
11143
- function computePositionAllShownPoppers(event) {
11144
- for (let i = 0; i < shownPoppers.length; i++) {
11145
- const popper = shownPoppers[i];
11146
- popper.$_computePosition(event);
11147
- }
11148
- }
11149
- let mousePreviousX = 0;
11150
- let mousePreviousY = 0;
11151
- let mouseX = 0;
11152
- let mouseY = 0;
11153
- if (typeof window !== "undefined") {
11154
- window.addEventListener("mousemove", (event) => {
11155
- mousePreviousX = mouseX;
11156
- mousePreviousY = mouseY;
11157
- mouseX = event.clientX;
11158
- mouseY = event.clientY;
11159
- }, supportsPassive ? {
11160
- passive: true
11161
- } : void 0);
11162
- }
11163
- function lineIntersectsLine(x1, y1, x2, y2, x3, y3, x4, y4) {
11164
- const uA = ((x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)) / ((y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1));
11165
- const uB = ((x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3)) / ((y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1));
11166
- return uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1;
11167
- }
11168
- var _export_sfc$1 = (sfc, props) => {
11169
- const target = sfc.__vccOpts || sfc;
11170
- for (const [key, val] of props) {
11171
- target[key] = val;
9594
+ function tt(e, t) {
9595
+ if (typeof e.autoHide == "function") {
9596
+ const o = e.autoHide(t);
9597
+ return e.lastAutoHide = o, o;
11172
9598
  }
11173
- return target;
11174
- };
11175
- const _sfc_main$6$1 = {
11176
- extends: PrivatePopper()
9599
+ return e.autoHide;
9600
+ }
9601
+ function ot(e) {
9602
+ for (let t = 0; t < d.length; t++)
9603
+ d[t].$_computePosition(e);
9604
+ }
9605
+ let f = 0, m = 0, v = 0, y = 0;
9606
+ typeof window < "u" && window.addEventListener("mousemove", (e) => {
9607
+ f = v, m = y, v = e.clientX, y = e.clientY;
9608
+ }, _ ? {
9609
+ passive: !0
9610
+ } : void 0);
9611
+ function S(e, t, o, i, s, r, p, a) {
9612
+ const l = ((p - s) * (t - r) - (a - r) * (e - s)) / ((a - r) * (o - e) - (p - s) * (i - t)), h = ((o - e) * (t - r) - (i - t) * (e - s)) / ((a - r) * (o - e) - (p - s) * (i - t));
9613
+ return l >= 0 && l <= 1 && h >= 0 && h <= 1;
9614
+ }
9615
+ const it = {
9616
+ extends: K()
9617
+ }, k = (e, t) => {
9618
+ const o = e.__vccOpts || e;
9619
+ for (const [i, s] of t)
9620
+ o[i] = s;
9621
+ return o;
11177
9622
  };
11178
- function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
9623
+ function st(e, t, o, i, s, r) {
11179
9624
  return openBlock(), createElementBlock("div", {
11180
9625
  ref: "reference",
11181
9626
  class: normalizeClass(["v-popper", {
11182
- "v-popper--shown": _ctx.slotData.isShown
9627
+ "v-popper--shown": e.slotData.isShown
11183
9628
  }])
11184
9629
  }, [
11185
- renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(_ctx.slotData)))
9630
+ renderSlot(e.$slots, "default", normalizeProps(guardReactiveProps(e.slotData)))
11186
9631
  ], 2);
11187
9632
  }
11188
- var Popper$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$6$1, [["render", _sfc_render$3]]);
11189
- function getInternetExplorerVersion() {
11190
- var ua = window.navigator.userAgent;
11191
- var msie = ua.indexOf("MSIE ");
11192
- if (msie > 0) {
11193
- return parseInt(ua.substring(msie + 5, ua.indexOf(".", msie)), 10);
11194
- }
11195
- var trident = ua.indexOf("Trident/");
11196
- if (trident > 0) {
11197
- var rv = ua.indexOf("rv:");
11198
- return parseInt(ua.substring(rv + 3, ua.indexOf(".", rv)), 10);
9633
+ const nt = /* @__PURE__ */ k(it, [["render", st]]);
9634
+ function rt() {
9635
+ var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
9636
+ if (t > 0)
9637
+ return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
9638
+ var o = e.indexOf("Trident/");
9639
+ if (o > 0) {
9640
+ var i = e.indexOf("rv:");
9641
+ return parseInt(e.substring(i + 3, e.indexOf(".", i)), 10);
11199
9642
  }
11200
- var edge = ua.indexOf("Edge/");
11201
- if (edge > 0) {
11202
- return parseInt(ua.substring(edge + 5, ua.indexOf(".", edge)), 10);
11203
- }
11204
- return -1;
9643
+ var s = e.indexOf("Edge/");
9644
+ return s > 0 ? parseInt(e.substring(s + 5, e.indexOf(".", s)), 10) : -1;
11205
9645
  }
11206
- let isIE;
11207
- function initCompat() {
11208
- if (!initCompat.init) {
11209
- initCompat.init = true;
11210
- isIE = getInternetExplorerVersion() !== -1;
11211
- }
9646
+ let z;
9647
+ function U() {
9648
+ U.init || (U.init = !0, z = rt() !== -1);
11212
9649
  }
11213
- var script = {
9650
+ var E = {
11214
9651
  name: "ResizeObserver",
11215
9652
  props: {
11216
9653
  emitOnMount: {
11217
9654
  type: Boolean,
11218
- default: false
9655
+ default: !1
11219
9656
  },
11220
9657
  ignoreWidth: {
11221
9658
  type: Boolean,
11222
- default: false
9659
+ default: !1
11223
9660
  },
11224
9661
  ignoreHeight: {
11225
9662
  type: Boolean,
11226
- default: false
9663
+ default: !1
11227
9664
  }
11228
9665
  },
11229
9666
  emits: [
11230
9667
  "notify"
11231
9668
  ],
11232
9669
  mounted() {
11233
- initCompat();
11234
- nextTick(() => {
11235
- this._w = this.$el.offsetWidth;
11236
- this._h = this.$el.offsetHeight;
11237
- if (this.emitOnMount) {
11238
- this.emitSize();
11239
- }
9670
+ U(), nextTick(() => {
9671
+ this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
11240
9672
  });
11241
- const object = document.createElement("object");
11242
- this._resizeObject = object;
11243
- object.setAttribute("aria-hidden", "true");
11244
- object.setAttribute("tabindex", -1);
11245
- object.onload = this.addResizeHandlers;
11246
- object.type = "text/html";
11247
- if (isIE) {
11248
- this.$el.appendChild(object);
11249
- }
11250
- object.data = "about:blank";
11251
- if (!isIE) {
11252
- this.$el.appendChild(object);
11253
- }
9673
+ const e = document.createElement("object");
9674
+ this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", z && this.$el.appendChild(e), e.data = "about:blank", z || this.$el.appendChild(e);
11254
9675
  },
11255
9676
  beforeUnmount() {
11256
9677
  this.removeResizeHandlers();
11257
9678
  },
11258
9679
  methods: {
11259
9680
  compareAndNotify() {
11260
- if (!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) {
11261
- this._w = this.$el.offsetWidth;
11262
- this._h = this.$el.offsetHeight;
11263
- this.emitSize();
11264
- }
9681
+ (!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitSize());
11265
9682
  },
11266
9683
  emitSize() {
11267
9684
  this.$emit("notify", {
@@ -11270,48 +9687,37 @@ var script = {
11270
9687
  });
11271
9688
  },
11272
9689
  addResizeHandlers() {
11273
- this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify);
11274
- this.compareAndNotify();
9690
+ this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
11275
9691
  },
11276
9692
  removeResizeHandlers() {
11277
- if (this._resizeObject && this._resizeObject.onload) {
11278
- if (!isIE && this._resizeObject.contentDocument) {
11279
- this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify);
11280
- }
11281
- this.$el.removeChild(this._resizeObject);
11282
- this._resizeObject.onload = null;
11283
- this._resizeObject = null;
11284
- }
9693
+ this._resizeObject && this._resizeObject.onload && (!z && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
11285
9694
  }
11286
9695
  }
11287
9696
  };
11288
- const _withId = /* @__PURE__ */ withScopeId();
9697
+ const pt = /* @__PURE__ */ withScopeId();
11289
9698
  pushScopeId("data-v-b329ee4c");
11290
- const _hoisted_1$2$1 = {
9699
+ const at = {
11291
9700
  class: "resize-observer",
11292
9701
  tabindex: "-1"
11293
9702
  };
11294
9703
  popScopeId();
11295
- const render = /* @__PURE__ */ _withId((_ctx, _cache, $props, $setup, $data, $options) => {
11296
- return openBlock(), createBlock("div", _hoisted_1$2$1);
11297
- });
11298
- script.render = render;
11299
- script.__scopeId = "data-v-b329ee4c";
11300
- script.__file = "src/components/ResizeObserver.vue";
11301
- var PrivateThemeClass = (prop = "theme") => ({
9704
+ const dt = /* @__PURE__ */ pt((e, t, o, i, s, r) => (openBlock(), createBlock("div", at)));
9705
+ E.render = dt;
9706
+ E.__scopeId = "data-v-b329ee4c";
9707
+ E.__file = "src/components/ResizeObserver.vue";
9708
+ const J = (e = "theme") => ({
11302
9709
  computed: {
11303
9710
  themeClass() {
11304
- return getThemeClasses(this[prop]);
9711
+ return Je(this[e]);
11305
9712
  }
11306
9713
  }
11307
- });
11308
- const _sfc_main$5$1 = defineComponent({
9714
+ }), ht = defineComponent({
11309
9715
  name: "VPopperContent",
11310
9716
  components: {
11311
- ResizeObserver: script
9717
+ ResizeObserver: E
11312
9718
  },
11313
9719
  mixins: [
11314
- PrivateThemeClass()
9720
+ J()
11315
9721
  ],
11316
9722
  props: {
11317
9723
  popperId: String,
@@ -11329,112 +9735,103 @@ const _sfc_main$5$1 = defineComponent({
11329
9735
  "resize"
11330
9736
  ],
11331
9737
  methods: {
11332
- toPx(value) {
11333
- if (value != null && !isNaN(value)) {
11334
- return `${value}px`;
11335
- }
11336
- return null;
9738
+ toPx(e) {
9739
+ return e != null && !isNaN(e) ? `${e}px` : null;
11337
9740
  }
11338
9741
  }
11339
9742
  });
11340
- const _hoisted_1$1$1 = ["id", "aria-hidden", "tabindex", "data-popper-placement"];
11341
- const _hoisted_2$1$1 = {
9743
+ const lt = ["id", "aria-hidden", "tabindex", "data-popper-placement"], ut = {
11342
9744
  ref: "inner",
11343
9745
  class: "v-popper__inner"
11344
- };
11345
- const _hoisted_3$4 = /* @__PURE__ */ createBaseVNode("div", { class: "v-popper__arrow-outer" }, null, -1);
11346
- const _hoisted_4$5 = /* @__PURE__ */ createBaseVNode("div", { class: "v-popper__arrow-inner" }, null, -1);
11347
- const _hoisted_5$4 = [
11348
- _hoisted_3$4,
11349
- _hoisted_4$5
9746
+ }, ct = /* @__PURE__ */ createBaseVNode("div", { class: "v-popper__arrow-outer" }, null, -1), ft = /* @__PURE__ */ createBaseVNode("div", { class: "v-popper__arrow-inner" }, null, -1), mt = [
9747
+ ct,
9748
+ ft
11350
9749
  ];
11351
- function _sfc_render$2$1(_ctx, _cache, $props, $setup, $data, $options) {
11352
- const _component_ResizeObserver = resolveComponent("ResizeObserver");
9750
+ function gt(e, t, o, i, s, r) {
9751
+ const p = resolveComponent("ResizeObserver");
11353
9752
  return openBlock(), createElementBlock("div", {
11354
- id: _ctx.popperId,
9753
+ id: e.popperId,
11355
9754
  ref: "popover",
11356
9755
  class: normalizeClass(["v-popper__popper", [
11357
- _ctx.themeClass,
11358
- _ctx.classes.popperClass,
9756
+ e.themeClass,
9757
+ e.classes.popperClass,
11359
9758
  {
11360
- "v-popper__popper--shown": _ctx.shown,
11361
- "v-popper__popper--hidden": !_ctx.shown,
11362
- "v-popper__popper--show-from": _ctx.classes.showFrom,
11363
- "v-popper__popper--show-to": _ctx.classes.showTo,
11364
- "v-popper__popper--hide-from": _ctx.classes.hideFrom,
11365
- "v-popper__popper--hide-to": _ctx.classes.hideTo,
11366
- "v-popper__popper--skip-transition": _ctx.skipTransition,
11367
- "v-popper__popper--arrow-overflow": _ctx.result && _ctx.result.arrow.overflow,
11368
- "v-popper__popper--no-positioning": !_ctx.result
9759
+ "v-popper__popper--shown": e.shown,
9760
+ "v-popper__popper--hidden": !e.shown,
9761
+ "v-popper__popper--show-from": e.classes.showFrom,
9762
+ "v-popper__popper--show-to": e.classes.showTo,
9763
+ "v-popper__popper--hide-from": e.classes.hideFrom,
9764
+ "v-popper__popper--hide-to": e.classes.hideTo,
9765
+ "v-popper__popper--skip-transition": e.skipTransition,
9766
+ "v-popper__popper--arrow-overflow": e.result && e.result.arrow.overflow,
9767
+ "v-popper__popper--no-positioning": !e.result
11369
9768
  }
11370
9769
  ]]),
11371
- style: normalizeStyle(_ctx.result ? {
11372
- position: _ctx.result.strategy,
11373
- transform: `translate3d(${Math.round(_ctx.result.x)}px,${Math.round(_ctx.result.y)}px,0)`
9770
+ style: normalizeStyle(e.result ? {
9771
+ position: e.result.strategy,
9772
+ transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
11374
9773
  } : void 0),
11375
- "aria-hidden": _ctx.shown ? "false" : "true",
11376
- tabindex: _ctx.autoHide ? 0 : void 0,
11377
- "data-popper-placement": _ctx.result ? _ctx.result.placement : void 0,
11378
- onKeyup: _cache[2] || (_cache[2] = withKeys(($event) => _ctx.autoHide && _ctx.$emit("hide"), ["esc"]))
9774
+ "aria-hidden": e.shown ? "false" : "true",
9775
+ tabindex: e.autoHide ? 0 : void 0,
9776
+ "data-popper-placement": e.result ? e.result.placement : void 0,
9777
+ onKeyup: t[2] || (t[2] = withKeys((a) => e.autoHide && e.$emit("hide"), ["esc"]))
11379
9778
  }, [
11380
9779
  createBaseVNode("div", {
11381
9780
  class: "v-popper__backdrop",
11382
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.autoHide && _ctx.$emit("hide"))
9781
+ onClick: t[0] || (t[0] = (a) => e.autoHide && e.$emit("hide"))
11383
9782
  }),
11384
9783
  createBaseVNode("div", {
11385
9784
  class: "v-popper__wrapper",
11386
- style: normalizeStyle(_ctx.result ? {
11387
- transformOrigin: _ctx.result.transformOrigin
9785
+ style: normalizeStyle(e.result ? {
9786
+ transformOrigin: e.result.transformOrigin
11388
9787
  } : void 0)
11389
9788
  }, [
11390
- createBaseVNode("div", _hoisted_2$1$1, [
11391
- _ctx.mounted ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
9789
+ createBaseVNode("div", ut, [
9790
+ e.mounted ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
11392
9791
  createBaseVNode("div", null, [
11393
- renderSlot(_ctx.$slots, "default")
9792
+ renderSlot(e.$slots, "default")
11394
9793
  ]),
11395
- _ctx.handleResize ? (openBlock(), createBlock(_component_ResizeObserver, {
9794
+ e.handleResize ? (openBlock(), createBlock(p, {
11396
9795
  key: 0,
11397
- onNotify: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("resize", $event))
11398
- })) : createCommentVNode("", true)
11399
- ], 64)) : createCommentVNode("", true)
9796
+ onNotify: t[1] || (t[1] = (a) => e.$emit("resize", a))
9797
+ })) : createCommentVNode("", !0)
9798
+ ], 64)) : createCommentVNode("", !0)
11400
9799
  ], 512),
11401
9800
  createBaseVNode("div", {
11402
9801
  ref: "arrow",
11403
9802
  class: "v-popper__arrow-container",
11404
- style: normalizeStyle(_ctx.result ? {
11405
- left: _ctx.toPx(_ctx.result.arrow.x),
11406
- top: _ctx.toPx(_ctx.result.arrow.y)
9803
+ style: normalizeStyle(e.result ? {
9804
+ left: e.toPx(e.result.arrow.x),
9805
+ top: e.toPx(e.result.arrow.y)
11407
9806
  } : void 0)
11408
- }, _hoisted_5$4, 4)
9807
+ }, mt, 4)
11409
9808
  ], 4)
11410
- ], 46, _hoisted_1$1$1);
9809
+ ], 46, lt);
11411
9810
  }
11412
- var PrivatePopperContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$5$1, [["render", _sfc_render$2$1]]);
11413
- var PrivatePopperMethods = {
9811
+ const Q = /* @__PURE__ */ k(ht, [["render", gt]]), Z = {
11414
9812
  methods: {
11415
- show(...args) {
11416
- return this.$refs.popper.show(...args);
9813
+ show(...e) {
9814
+ return this.$refs.popper.show(...e);
11417
9815
  },
11418
- hide(...args) {
11419
- return this.$refs.popper.hide(...args);
9816
+ hide(...e) {
9817
+ return this.$refs.popper.hide(...e);
11420
9818
  },
11421
- dispose(...args) {
11422
- return this.$refs.popper.dispose(...args);
9819
+ dispose(...e) {
9820
+ return this.$refs.popper.dispose(...e);
11423
9821
  },
11424
- onResize(...args) {
11425
- return this.$refs.popper.onResize(...args);
9822
+ onResize(...e) {
9823
+ return this.$refs.popper.onResize(...e);
11426
9824
  }
11427
9825
  }
11428
- };
11429
- const _sfc_main$4$1 = defineComponent({
9826
+ }, $t = defineComponent({
11430
9827
  name: "VPopperWrapper",
11431
9828
  components: {
11432
- Popper: Popper$1,
11433
- PopperContent: PrivatePopperContent
9829
+ Popper: nt,
9830
+ PopperContent: Q
11434
9831
  },
11435
9832
  mixins: [
11436
- PrivatePopperMethods,
11437
- PrivateThemeClass("finalTheme")
9833
+ Z,
9834
+ J("finalTheme")
11438
9835
  ],
11439
9836
  props: {
11440
9837
  theme: {
@@ -11444,64 +9841,62 @@ const _sfc_main$4$1 = defineComponent({
11444
9841
  },
11445
9842
  computed: {
11446
9843
  finalTheme() {
11447
- var _a;
11448
- return (_a = this.theme) != null ? _a : this.$options.vPopperTheme;
9844
+ return this.theme ?? this.$options.vPopperTheme;
11449
9845
  }
11450
9846
  },
11451
9847
  methods: {
11452
9848
  getTargetNodes() {
11453
- return Array.from(this.$el.children).filter((node) => node !== this.$refs.popperContent.$el);
9849
+ return Array.from(this.$el.children).filter((e) => e !== this.$refs.popperContent.$el);
11454
9850
  }
11455
9851
  }
11456
9852
  });
11457
- function _sfc_render$1$1(_ctx, _cache, $props, $setup, $data, $options) {
11458
- const _component_PopperContent = resolveComponent("PopperContent");
11459
- const _component_Popper = resolveComponent("Popper");
11460
- return openBlock(), createBlock(_component_Popper, {
9853
+ function _t(e, t, o, i, s, r) {
9854
+ const p = resolveComponent("PopperContent"), a = resolveComponent("Popper");
9855
+ return openBlock(), createBlock(a, {
11461
9856
  ref: "popper",
11462
- theme: _ctx.finalTheme,
11463
- "target-nodes": _ctx.getTargetNodes,
11464
- "popper-node": () => _ctx.$refs.popperContent.$el,
9857
+ theme: e.finalTheme,
9858
+ "target-nodes": e.getTargetNodes,
9859
+ "popper-node": () => e.$refs.popperContent.$el,
11465
9860
  class: normalizeClass([
11466
- _ctx.themeClass
9861
+ e.themeClass
11467
9862
  ])
11468
9863
  }, {
11469
9864
  default: withCtx(({
11470
- popperId,
11471
- isShown,
11472
- shouldMountContent,
11473
- skipTransition,
11474
- autoHide,
11475
- show,
11476
- hide,
11477
- handleResize,
11478
- onResize,
11479
- classes,
11480
- result
9865
+ popperId: l,
9866
+ isShown: h,
9867
+ shouldMountContent: B,
9868
+ skipTransition: D,
9869
+ autoHide: I,
9870
+ show: R,
9871
+ hide: w,
9872
+ handleResize: F,
9873
+ onResize: V,
9874
+ classes: j,
9875
+ result: Oe
11481
9876
  }) => [
11482
- renderSlot(_ctx.$slots, "default", {
11483
- shown: isShown,
11484
- show,
11485
- hide
9877
+ renderSlot(e.$slots, "default", {
9878
+ shown: h,
9879
+ show: R,
9880
+ hide: w
11486
9881
  }),
11487
- createVNode(_component_PopperContent, {
9882
+ createVNode(p, {
11488
9883
  ref: "popperContent",
11489
- "popper-id": popperId,
11490
- theme: _ctx.finalTheme,
11491
- shown: isShown,
11492
- mounted: shouldMountContent,
11493
- "skip-transition": skipTransition,
11494
- "auto-hide": autoHide,
11495
- "handle-resize": handleResize,
11496
- classes,
11497
- result,
11498
- onHide: hide,
11499
- onResize
9884
+ "popper-id": l,
9885
+ theme: e.finalTheme,
9886
+ shown: h,
9887
+ mounted: B,
9888
+ "skip-transition": D,
9889
+ "auto-hide": I,
9890
+ "handle-resize": F,
9891
+ classes: j,
9892
+ result: Oe,
9893
+ onHide: w,
9894
+ onResize: V
11500
9895
  }, {
11501
9896
  default: withCtx(() => [
11502
- renderSlot(_ctx.$slots, "popper", {
11503
- shown: isShown,
11504
- hide
9897
+ renderSlot(e.$slots, "popper", {
9898
+ shown: h,
9899
+ hide: w
11505
9900
  })
11506
9901
  ]),
11507
9902
  _: 2
@@ -11510,29 +9905,30 @@ function _sfc_render$1$1(_ctx, _cache, $props, $setup, $data, $options) {
11510
9905
  _: 3
11511
9906
  }, 8, ["theme", "target-nodes", "popper-node", "class"]);
11512
9907
  }
11513
- var PrivatePopperWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$4$1, [["render", _sfc_render$1$1]]);
11514
- const _sfc_main$3$1 = defineComponent(__spreadProps$1(__spreadValues$1({}, PrivatePopperWrapper), {
9908
+ const L = /* @__PURE__ */ k($t, [["render", _t]]), _e = {
9909
+ ...L,
11515
9910
  name: "VDropdown",
11516
9911
  vPopperTheme: "dropdown"
11517
- }));
11518
- const _sfc_main$2$1 = defineComponent(__spreadProps$1(__spreadValues$1({}, PrivatePopperWrapper), {
9912
+ };
9913
+ const we = {
9914
+ ...L,
11519
9915
  name: "VMenu",
11520
9916
  vPopperTheme: "menu"
11521
- }));
11522
- const _sfc_main$1$1 = defineComponent(__spreadProps$1(__spreadValues$1({}, PrivatePopperWrapper), {
9917
+ }, ve = {
9918
+ ...L,
11523
9919
  name: "VTooltip",
11524
9920
  vPopperTheme: "tooltip"
11525
- }));
11526
- const _sfc_main$e = defineComponent({
9921
+ };
9922
+ const wt = defineComponent({
11527
9923
  name: "VTooltipDirective",
11528
9924
  components: {
11529
- Popper: PrivatePopper(),
11530
- PopperContent: PrivatePopperContent
9925
+ Popper: K(),
9926
+ PopperContent: Q
11531
9927
  },
11532
9928
  mixins: [
11533
- PrivatePopperMethods
9929
+ Z
11534
9930
  ],
11535
- inheritAttrs: false,
9931
+ inheritAttrs: !1,
11536
9932
  props: {
11537
9933
  theme: {
11538
9934
  type: String,
@@ -11540,7 +9936,7 @@ const _sfc_main$e = defineComponent({
11540
9936
  },
11541
9937
  html: {
11542
9938
  type: Boolean,
11543
- default: (props) => getDefaultConfig(props.theme, "html")
9939
+ default: (e) => b(e.theme, "html")
11544
9940
  },
11545
9941
  content: {
11546
9942
  type: [String, Number, Function],
@@ -11548,7 +9944,11 @@ const _sfc_main$e = defineComponent({
11548
9944
  },
11549
9945
  loadingContent: {
11550
9946
  type: String,
11551
- default: (props) => getDefaultConfig(props.theme, "loadingContent")
9947
+ default: (e) => b(e.theme, "loadingContent")
9948
+ },
9949
+ targetNodes: {
9950
+ type: Function,
9951
+ required: !0
11552
9952
  }
11553
9953
  },
11554
9954
  data() {
@@ -11558,318 +9958,230 @@ const _sfc_main$e = defineComponent({
11558
9958
  },
11559
9959
  computed: {
11560
9960
  isContentAsync() {
11561
- return typeof this.content === "function";
9961
+ return typeof this.content == "function";
11562
9962
  },
11563
9963
  loading() {
11564
9964
  return this.isContentAsync && this.asyncContent == null;
11565
9965
  },
11566
9966
  finalContent() {
11567
- if (this.isContentAsync) {
11568
- return this.loading ? this.loadingContent : this.asyncContent;
11569
- }
11570
- return this.content;
9967
+ return this.isContentAsync ? this.loading ? this.loadingContent : this.asyncContent : this.content;
11571
9968
  }
11572
9969
  },
11573
9970
  watch: {
11574
9971
  content: {
11575
9972
  handler() {
11576
- this.fetchContent(true);
9973
+ this.fetchContent(!0);
11577
9974
  },
11578
- immediate: true
9975
+ immediate: !0
11579
9976
  },
11580
9977
  async finalContent() {
11581
- await this.$nextTick();
11582
- this.$refs.popper.onResize();
9978
+ await this.$nextTick(), this.$refs.popper.onResize();
11583
9979
  }
11584
9980
  },
11585
9981
  created() {
11586
9982
  this.$_fetchId = 0;
11587
9983
  },
11588
9984
  methods: {
11589
- fetchContent(force) {
11590
- if (typeof this.content === "function" && this.$_isShown && (force || !this.$_loading && this.asyncContent == null)) {
11591
- this.asyncContent = null;
11592
- this.$_loading = true;
11593
- const fetchId = ++this.$_fetchId;
11594
- const result = this.content(this);
11595
- if (result.then) {
11596
- result.then((res) => this.onResult(fetchId, res));
11597
- } else {
11598
- this.onResult(fetchId, result);
11599
- }
9985
+ fetchContent(e) {
9986
+ if (typeof this.content == "function" && this.$_isShown && (e || !this.$_loading && this.asyncContent == null)) {
9987
+ this.asyncContent = null, this.$_loading = !0;
9988
+ const t = ++this.$_fetchId, o = this.content(this);
9989
+ o.then ? o.then((i) => this.onResult(t, i)) : this.onResult(t, o);
11600
9990
  }
11601
9991
  },
11602
- onResult(fetchId, result) {
11603
- if (fetchId !== this.$_fetchId)
11604
- return;
11605
- this.$_loading = false;
11606
- this.asyncContent = result;
9992
+ onResult(e, t) {
9993
+ e === this.$_fetchId && (this.$_loading = !1, this.asyncContent = t);
11607
9994
  },
11608
9995
  onShow() {
11609
- this.$_isShown = true;
11610
- this.fetchContent();
9996
+ this.$_isShown = !0, this.fetchContent();
11611
9997
  },
11612
9998
  onHide() {
11613
- this.$_isShown = false;
11614
- }
11615
- }
11616
- });
11617
- const _hoisted_1$9 = ["innerHTML"];
11618
- const _hoisted_2$7 = ["textContent"];
11619
- function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
11620
- const _component_PopperContent = resolveComponent("PopperContent");
11621
- const _component_Popper = resolveComponent("Popper");
11622
- return openBlock(), createBlock(_component_Popper, mergeProps({ ref: "popper" }, _ctx.$attrs, {
11623
- theme: _ctx.theme,
11624
- "popper-node": () => _ctx.$refs.popperContent.$el,
11625
- onApplyShow: _ctx.onShow,
11626
- onApplyHide: _ctx.onHide
9999
+ this.$_isShown = !1;
10000
+ }
10001
+ }
10002
+ }), vt = ["innerHTML"], yt = ["textContent"];
10003
+ function Pt(e, t, o, i, s, r) {
10004
+ const p = resolveComponent("PopperContent"), a = resolveComponent("Popper");
10005
+ return openBlock(), createBlock(a, mergeProps({ ref: "popper" }, e.$attrs, {
10006
+ theme: e.theme,
10007
+ "target-nodes": e.targetNodes,
10008
+ "popper-node": () => e.$refs.popperContent.$el,
10009
+ onApplyShow: e.onShow,
10010
+ onApplyHide: e.onHide
11627
10011
  }), {
11628
10012
  default: withCtx(({
11629
- popperId,
11630
- isShown,
11631
- shouldMountContent,
11632
- skipTransition,
11633
- autoHide,
11634
- hide,
11635
- handleResize,
11636
- onResize,
11637
- classes,
11638
- result
10013
+ popperId: l,
10014
+ isShown: h,
10015
+ shouldMountContent: B,
10016
+ skipTransition: D,
10017
+ autoHide: I,
10018
+ hide: R,
10019
+ handleResize: w,
10020
+ onResize: F,
10021
+ classes: V,
10022
+ result: j
11639
10023
  }) => [
11640
- createVNode(_component_PopperContent, {
10024
+ createVNode(p, {
11641
10025
  ref: "popperContent",
11642
10026
  class: normalizeClass({
11643
- "v-popper--tooltip-loading": _ctx.loading
10027
+ "v-popper--tooltip-loading": e.loading
11644
10028
  }),
11645
- "popper-id": popperId,
11646
- theme: _ctx.theme,
11647
- shown: isShown,
11648
- mounted: shouldMountContent,
11649
- "skip-transition": skipTransition,
11650
- "auto-hide": autoHide,
11651
- "handle-resize": handleResize,
11652
- classes,
11653
- result,
11654
- onHide: hide,
11655
- onResize
10029
+ "popper-id": l,
10030
+ theme: e.theme,
10031
+ shown: h,
10032
+ mounted: B,
10033
+ "skip-transition": D,
10034
+ "auto-hide": I,
10035
+ "handle-resize": w,
10036
+ classes: V,
10037
+ result: j,
10038
+ onHide: R,
10039
+ onResize: F
11656
10040
  }, {
11657
10041
  default: withCtx(() => [
11658
- _ctx.html ? (openBlock(), createElementBlock("div", {
10042
+ e.html ? (openBlock(), createElementBlock("div", {
11659
10043
  key: 0,
11660
- innerHTML: _ctx.finalContent
11661
- }, null, 8, _hoisted_1$9)) : (openBlock(), createElementBlock("div", {
10044
+ innerHTML: e.finalContent
10045
+ }, null, 8, vt)) : (openBlock(), createElementBlock("div", {
11662
10046
  key: 1,
11663
- textContent: toDisplayString(_ctx.finalContent)
11664
- }, null, 8, _hoisted_2$7))
10047
+ textContent: toDisplayString(e.finalContent)
10048
+ }, null, 8, yt))
11665
10049
  ]),
11666
10050
  _: 2
11667
10051
  }, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
11668
10052
  ]),
11669
10053
  _: 1
11670
- }, 16, ["theme", "popper-node", "onApplyShow", "onApplyHide"]);
11671
- }
11672
- var PrivateTooltipDirective = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["render", _sfc_render$4]]);
11673
- const TARGET_CLASS = "v-popper--has-tooltip";
11674
- function getPlacement(options2, modifiers) {
11675
- let result = options2.placement;
11676
- if (!result && modifiers) {
11677
- for (const pos of placements) {
11678
- if (modifiers[pos]) {
11679
- result = pos;
11680
- }
11681
- }
11682
- }
11683
- if (!result) {
11684
- result = getDefaultConfig(options2.theme || "tooltip", "placement");
11685
- }
11686
- return result;
11687
- }
11688
- function getOptions(el, value, modifiers) {
11689
- let options2;
11690
- const type = typeof value;
11691
- if (type === "string") {
11692
- options2 = { content: value };
11693
- } else if (value && type === "object") {
11694
- options2 = value;
11695
- } else {
11696
- options2 = { content: false };
11697
- }
11698
- options2.placement = getPlacement(options2, modifiers);
11699
- options2.targetNodes = () => [el];
11700
- options2.referenceNode = () => el;
11701
- return options2;
11702
- }
11703
- let directiveApp;
11704
- let directives;
11705
- let uid = 0;
11706
- function ensureDirectiveApp() {
11707
- if (directiveApp)
10054
+ }, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
10055
+ }
10056
+ const ye = /* @__PURE__ */ k(wt, [["render", Pt]]), Pe = "v-popper--has-tooltip";
10057
+ function Tt(e, t) {
10058
+ let o = e.placement;
10059
+ if (!o && t)
10060
+ for (const i of ge)
10061
+ t[i] && (o = i);
10062
+ return o || (o = b(e.theme || "tooltip", "placement")), o;
10063
+ }
10064
+ function Te(e, t, o) {
10065
+ let i;
10066
+ const s = typeof t;
10067
+ return s === "string" ? i = { content: t } : t && s === "object" ? i = t : i = { content: !1 }, i.placement = Tt(i, o), i.targetNodes = () => [e], i.referenceNode = () => e, i;
10068
+ }
10069
+ let q, C, bt = 0;
10070
+ function Ct() {
10071
+ if (q)
11708
10072
  return;
11709
- directives = ref([]);
11710
- directiveApp = createApp({
10073
+ C = ref([]), q = createApp({
11711
10074
  name: "VTooltipDirectiveApp",
11712
10075
  setup() {
11713
10076
  return {
11714
- directives
10077
+ directives: C
11715
10078
  };
11716
10079
  },
11717
10080
  render() {
11718
- return this.directives.map((directive) => {
11719
- return h(PrivateTooltipDirective, __spreadProps$1(__spreadValues$1({}, directive.options), {
11720
- shown: directive.shown || directive.options.shown,
11721
- key: directive.id
11722
- }));
11723
- });
10081
+ return this.directives.map((t) => h$2(ye, {
10082
+ ...t.options,
10083
+ shown: t.shown || t.options.shown,
10084
+ key: t.id
10085
+ }));
11724
10086
  },
11725
10087
  devtools: {
11726
- hide: true
10088
+ hide: !0
11727
10089
  }
11728
10090
  });
11729
- const mountTarget = document.createElement("div");
11730
- document.body.appendChild(mountTarget);
11731
- directiveApp.mount(mountTarget);
11732
- }
11733
- function createTooltip(el, value, modifiers) {
11734
- ensureDirectiveApp();
11735
- const options2 = ref(getOptions(el, value, modifiers));
11736
- const shown = ref(false);
11737
- const item = {
11738
- id: uid++,
11739
- options: options2,
11740
- shown
10091
+ const e = document.createElement("div");
10092
+ document.body.appendChild(e), q.mount(e);
10093
+ }
10094
+ function St(e, t, o) {
10095
+ Ct();
10096
+ const i = ref(Te(e, t, o)), s = ref(!1), r = {
10097
+ id: bt++,
10098
+ options: i,
10099
+ shown: s
11741
10100
  };
11742
- directives.value.push(item);
11743
- if (el.classList) {
11744
- el.classList.add(TARGET_CLASS);
11745
- }
11746
- const result = el.$_popper = {
11747
- options: options2,
11748
- item,
10101
+ return C.value.push(r), e.classList && e.classList.add(Pe), e.$_popper = {
10102
+ options: i,
10103
+ item: r,
11749
10104
  show() {
11750
- shown.value = true;
10105
+ s.value = !0;
11751
10106
  },
11752
10107
  hide() {
11753
- shown.value = false;
10108
+ s.value = !1;
11754
10109
  }
11755
10110
  };
11756
- return result;
11757
10111
  }
11758
- function destroyTooltip(el) {
11759
- if (el.$_popper) {
11760
- const index = directives.value.indexOf(el.$_popper.item);
11761
- if (index !== -1)
11762
- directives.value.splice(index, 1);
11763
- delete el.$_popper;
11764
- delete el.$_popperOldShown;
11765
- delete el.$_popperMountTarget;
11766
- }
11767
- if (el.classList) {
11768
- el.classList.remove(TARGET_CLASS);
10112
+ function be(e) {
10113
+ if (e.$_popper) {
10114
+ const t = C.value.indexOf(e.$_popper.item);
10115
+ t !== -1 && C.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
11769
10116
  }
10117
+ e.classList && e.classList.remove(Pe);
11770
10118
  }
11771
- function bind(el, { value, modifiers }) {
11772
- const options2 = getOptions(el, value, modifiers);
11773
- if (!options2.content || getDefaultConfig(options2.theme || "tooltip", "disabled")) {
11774
- destroyTooltip(el);
11775
- } else {
11776
- let directive;
11777
- if (el.$_popper) {
11778
- directive = el.$_popper;
11779
- directive.options.value = options2;
11780
- } else {
11781
- directive = createTooltip(el, value, modifiers);
11782
- }
11783
- if (typeof value.shown !== "undefined" && value.shown !== el.$_popperOldShown) {
11784
- el.$_popperOldShown = value.shown;
11785
- value.shown ? directive.show() : directive.hide();
11786
- }
10119
+ function he(e, { value: t, modifiers: o }) {
10120
+ const i = Te(e, t, o);
10121
+ if (!i.content || b(i.theme || "tooltip", "disabled"))
10122
+ be(e);
10123
+ else {
10124
+ let s;
10125
+ e.$_popper ? (s = e.$_popper, s.options.value = i) : s = St(e, t, o), typeof t.shown < "u" && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? s.show() : s.hide());
11787
10126
  }
11788
10127
  }
11789
- var PrivateVTooltip = {
11790
- beforeMount: bind,
11791
- updated: bind,
11792
- beforeUnmount(el) {
11793
- destroyTooltip(el);
10128
+ const Ce = {
10129
+ beforeMount: he,
10130
+ updated: he,
10131
+ beforeUnmount(e) {
10132
+ be(e);
11794
10133
  }
11795
10134
  };
11796
- function addListeners(el) {
11797
- el.addEventListener("click", onClick);
11798
- el.addEventListener("touchstart", onTouchStart, supportsPassive ? {
11799
- passive: true
11800
- } : false);
11801
- }
11802
- function removeListeners(el) {
11803
- el.removeEventListener("click", onClick);
11804
- el.removeEventListener("touchstart", onTouchStart);
11805
- el.removeEventListener("touchend", onTouchEnd);
11806
- el.removeEventListener("touchcancel", onTouchCancel);
11807
- }
11808
- function onClick(event) {
11809
- const el = event.currentTarget;
11810
- event.closePopover = !el.$_vclosepopover_touch;
11811
- event.closeAllPopover = el.$_closePopoverModifiers && !!el.$_closePopoverModifiers.all;
11812
- }
11813
- function onTouchStart(event) {
11814
- if (event.changedTouches.length === 1) {
11815
- const el = event.currentTarget;
11816
- el.$_vclosepopover_touch = true;
11817
- const touch = event.changedTouches[0];
11818
- el.$_vclosepopover_touchPoint = touch;
11819
- el.addEventListener("touchend", onTouchEnd);
11820
- el.addEventListener("touchcancel", onTouchCancel);
11821
- }
11822
- }
11823
- function onTouchEnd(event) {
11824
- const el = event.currentTarget;
11825
- el.$_vclosepopover_touch = false;
11826
- if (event.changedTouches.length === 1) {
11827
- const touch = event.changedTouches[0];
11828
- const firstTouch = el.$_vclosepopover_touchPoint;
11829
- event.closePopover = Math.abs(touch.screenY - firstTouch.screenY) < 20 && Math.abs(touch.screenX - firstTouch.screenX) < 20;
11830
- event.closeAllPopover = el.$_closePopoverModifiers && !!el.$_closePopoverModifiers.all;
11831
- }
11832
- }
11833
- function onTouchCancel(event) {
11834
- const el = event.currentTarget;
11835
- el.$_vclosepopover_touch = false;
11836
- }
11837
- var PrivateVClosePopper = {
11838
- beforeMount(el, { value, modifiers }) {
11839
- el.$_closePopoverModifiers = modifiers;
11840
- if (typeof value === "undefined" || value) {
11841
- addListeners(el);
11842
- }
10135
+ function le(e) {
10136
+ e.addEventListener("click", Se), e.addEventListener("touchstart", ze, _ ? {
10137
+ passive: !0
10138
+ } : !1);
10139
+ }
10140
+ function ue(e) {
10141
+ e.removeEventListener("click", Se), e.removeEventListener("touchstart", ze), e.removeEventListener("touchend", Ne), e.removeEventListener("touchcancel", Ae);
10142
+ }
10143
+ function Se(e) {
10144
+ const t = e.currentTarget;
10145
+ e.closePopover = !t.$_vclosepopover_touch, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
10146
+ }
10147
+ function ze(e) {
10148
+ if (e.changedTouches.length === 1) {
10149
+ const t = e.currentTarget;
10150
+ t.$_vclosepopover_touch = !0;
10151
+ const o = e.changedTouches[0];
10152
+ t.$_vclosepopover_touchPoint = o, t.addEventListener("touchend", Ne), t.addEventListener("touchcancel", Ae);
10153
+ }
10154
+ }
10155
+ function Ne(e) {
10156
+ const t = e.currentTarget;
10157
+ if (t.$_vclosepopover_touch = !1, e.changedTouches.length === 1) {
10158
+ const o = e.changedTouches[0], i = t.$_vclosepopover_touchPoint;
10159
+ e.closePopover = Math.abs(o.screenY - i.screenY) < 20 && Math.abs(o.screenX - i.screenX) < 20, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
10160
+ }
10161
+ }
10162
+ function Ae(e) {
10163
+ const t = e.currentTarget;
10164
+ t.$_vclosepopover_touch = !1;
10165
+ }
10166
+ const He = {
10167
+ beforeMount(e, { value: t, modifiers: o }) {
10168
+ e.$_closePopoverModifiers = o, (typeof t > "u" || t) && le(e);
11843
10169
  },
11844
- updated(el, { value, oldValue, modifiers }) {
11845
- el.$_closePopoverModifiers = modifiers;
11846
- if (value !== oldValue) {
11847
- if (typeof value === "undefined" || value) {
11848
- addListeners(el);
11849
- } else {
11850
- removeListeners(el);
11851
- }
11852
- }
10170
+ updated(e, { value: t, oldValue: o, modifiers: i }) {
10171
+ e.$_closePopoverModifiers = i, t !== o && (typeof t > "u" || t ? le(e) : ue(e));
11853
10172
  },
11854
- beforeUnmount(el) {
11855
- removeListeners(el);
10173
+ beforeUnmount(e) {
10174
+ ue(e);
11856
10175
  }
11857
10176
  };
11858
- function install(app, options2 = {}) {
11859
- if (app.$_vTooltipInstalled)
11860
- return;
11861
- app.$_vTooltipInstalled = true;
11862
- assign$1(config, options2);
11863
- app.directive("tooltip", PrivateVTooltip);
11864
- app.directive("close-popper", PrivateVClosePopper);
11865
- app.component("VTooltip", _sfc_main$1$1);
11866
- app.component("VDropdown", _sfc_main$3$1);
11867
- app.component("VMenu", _sfc_main$2$1);
11868
- }
11869
- const plugin = {
11870
- version: "2.0.0-beta.20",
11871
- install,
11872
- options: config
10177
+ function zt(e, t = {}) {
10178
+ e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, fe(u, t), e.directive("tooltip", Ce), e.directive("close-popper", He), e.component("VTooltip", ve), e.component("VDropdown", _e), e.component("VMenu", we));
10179
+ }
10180
+ const xt = {
10181
+ // eslint-disable-next-line no-undef
10182
+ version: "2.0.0-beta.24",
10183
+ install: zt,
10184
+ options: u
11873
10185
  };
11874
10186
 
11875
10187
  /* Injected with object hook! */
@@ -13504,7 +11816,7 @@ const RouterLinkImpl = /*#__PURE__*/ defineComponent({
13504
11816
  const children = slots.default && slots.default(link);
13505
11817
  return props.custom
13506
11818
  ? children
13507
- : h('a', {
11819
+ : h$2('a', {
13508
11820
  'aria-current': link.isExactActive
13509
11821
  ? props.ariaCurrentValue
13510
11822
  : null,
@@ -13674,7 +11986,7 @@ const RouterViewImpl = /*#__PURE__*/ defineComponent({
13674
11986
  matchedRoute.instances[currentName] = null;
13675
11987
  }
13676
11988
  };
13677
- const component = h(ViewComponent, assign({}, routeProps, attrs, {
11989
+ const component = h$2(ViewComponent, assign({}, routeProps, attrs, {
13678
11990
  onVnodeUnmounted,
13679
11991
  ref: viewRef,
13680
11992
  }));
@@ -14437,7 +12749,7 @@ function _sfc_render$1(_ctx, _cache) {
14437
12749
  const __unplugin_components_0 = /*#__PURE__*/_export_sfc(_sfc_main$b, [['render',_sfc_render$1]]);
14438
12750
  /* Injected with object hook! */
14439
12751
 
14440
- function tryOnScopeDispose$1(fn) {
12752
+ function tryOnScopeDispose(fn) {
14441
12753
  if (getCurrentScope()) {
14442
12754
  onScopeDispose(fn);
14443
12755
  return true;
@@ -14445,7 +12757,7 @@ function tryOnScopeDispose$1(fn) {
14445
12757
  return false;
14446
12758
  }
14447
12759
 
14448
- function toValue$1(r) {
12760
+ function toValue(r) {
14449
12761
  return typeof r === "function" ? r() : unref(r);
14450
12762
  }
14451
12763
 
@@ -14490,7 +12802,7 @@ function reactiveOmit(obj, ...keys) {
14490
12802
  const flatKeys = keys.flat();
14491
12803
  const predicate = flatKeys[0];
14492
12804
  return reactiveComputed(
14493
- () => typeof predicate === "function" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => !predicate(toValue$1(v), k))) : Object.fromEntries(Object.entries(toRefs$1(obj)).filter((e) => !flatKeys.includes(e[0])))
12805
+ () => typeof predicate === "function" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => !predicate(toValue(v), k))) : Object.fromEntries(Object.entries(toRefs$1(obj)).filter((e) => !flatKeys.includes(e[0])))
14494
12806
  );
14495
12807
  }
14496
12808
 
@@ -14525,8 +12837,8 @@ function debounceFilter(ms, options = {}) {
14525
12837
  lastRejector = noop;
14526
12838
  };
14527
12839
  const filter = (invoke) => {
14528
- const duration = toValue$1(ms);
14529
- const maxDuration = toValue$1(options.maxWait);
12840
+ const duration = toValue(ms);
12841
+ const maxDuration = toValue(options.maxWait);
14530
12842
  if (timer)
14531
12843
  _clearTimeout(timer);
14532
12844
  if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
@@ -14571,7 +12883,7 @@ function throttleFilter(ms, trailing = true, leading = true, rejectOnCancel = fa
14571
12883
  }
14572
12884
  };
14573
12885
  const filter = (_invoke) => {
14574
- const duration = toValue$1(ms);
12886
+ const duration = toValue(ms);
14575
12887
  const elapsed = Date.now() - lastExec;
14576
12888
  const invoke = () => {
14577
12889
  return lastValue = _invoke();
@@ -14673,7 +12985,7 @@ function toRefs(objectRef) {
14673
12985
  objectRef.value = copy;
14674
12986
  } else {
14675
12987
  const newObject = __spreadProps$7(__spreadValues$9$1({}, objectRef.value), { [key]: v });
14676
- Object.setPrototypeOf(newObject, objectRef.value);
12988
+ Object.setPrototypeOf(newObject, Object.getPrototypeOf(objectRef.value));
14677
12989
  objectRef.value = newObject;
14678
12990
  }
14679
12991
  }
@@ -14709,7 +13021,7 @@ function useIntervalFn(cb, interval = 1e3, options = {}) {
14709
13021
  clean();
14710
13022
  }
14711
13023
  function resume() {
14712
- const intervalValue = toValue$1(interval);
13024
+ const intervalValue = toValue(interval);
14713
13025
  if (intervalValue <= 0)
14714
13026
  return;
14715
13027
  isActive.value = true;
@@ -14725,9 +13037,9 @@ function useIntervalFn(cb, interval = 1e3, options = {}) {
14725
13037
  if (isActive.value && isClient)
14726
13038
  resume();
14727
13039
  });
14728
- tryOnScopeDispose$1(stopWatch);
13040
+ tryOnScopeDispose(stopWatch);
14729
13041
  }
14730
- tryOnScopeDispose$1(pause);
13042
+ tryOnScopeDispose(pause);
14731
13043
  return {
14732
13044
  isActive,
14733
13045
  pause,
@@ -14758,14 +13070,14 @@ function useTimeoutFn(cb, interval, options = {}) {
14758
13070
  isPending.value = false;
14759
13071
  timer = null;
14760
13072
  cb(...args);
14761
- }, toValue$1(interval));
13073
+ }, toValue(interval));
14762
13074
  }
14763
13075
  if (immediate) {
14764
13076
  isPending.value = true;
14765
13077
  if (isClient)
14766
13078
  start();
14767
13079
  }
14768
- tryOnScopeDispose$1(stop);
13080
+ tryOnScopeDispose(stop);
14769
13081
  return {
14770
13082
  isPending: readonly(isPending),
14771
13083
  start,
@@ -14785,8 +13097,8 @@ function useToggle(initialValue = false, options = {}) {
14785
13097
  _value.value = value;
14786
13098
  return _value.value;
14787
13099
  } else {
14788
- const truthy = toValue$1(truthyValue);
14789
- _value.value = _value.value === truthy ? toValue$1(falsyValue) : truthy;
13100
+ const truthy = toValue(truthyValue);
13101
+ _value.value = _value.value === truthy ? toValue(falsyValue) : truthy;
14790
13102
  return _value.value;
14791
13103
  }
14792
13104
  }
@@ -14935,9 +13247,9 @@ function computedAsync(evaluationCallback, initialState, optionsOrRef) {
14935
13247
  }
14936
13248
  }
14937
13249
 
14938
- function unrefElement$1(elRef) {
13250
+ function unrefElement(elRef) {
14939
13251
  var _a;
14940
- const plain = toValue$1(elRef);
13252
+ const plain = toValue(elRef);
14941
13253
  return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
14942
13254
  }
14943
13255
 
@@ -14972,7 +13284,7 @@ function useEventListener(...args) {
14972
13284
  return () => el.removeEventListener(event, listener, options2);
14973
13285
  };
14974
13286
  const stopWatch = watch(
14975
- () => [unrefElement$1(target), toValue$1(options)],
13287
+ () => [unrefElement(target), toValue(options)],
14976
13288
  ([el, options2]) => {
14977
13289
  cleanup();
14978
13290
  if (!el)
@@ -14989,7 +13301,7 @@ function useEventListener(...args) {
14989
13301
  stopWatch();
14990
13302
  cleanup();
14991
13303
  };
14992
- tryOnScopeDispose$1(stop);
13304
+ tryOnScopeDispose(stop);
14993
13305
  return stop;
14994
13306
  }
14995
13307
 
@@ -15008,13 +13320,13 @@ function onClickOutside(target, handler, options = {}) {
15008
13320
  if (typeof target2 === "string") {
15009
13321
  return Array.from(window.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el));
15010
13322
  } else {
15011
- const el = unrefElement$1(target2);
13323
+ const el = unrefElement(target2);
15012
13324
  return el && (event.target === el || event.composedPath().includes(el));
15013
13325
  }
15014
13326
  });
15015
13327
  };
15016
13328
  const listener = (event) => {
15017
- const el = unrefElement$1(target);
13329
+ const el = unrefElement(target);
15018
13330
  if (!el || el === event.target || event.composedPath().includes(el))
15019
13331
  return;
15020
13332
  if (event.detail === 0)
@@ -15028,40 +13340,42 @@ function onClickOutside(target, handler, options = {}) {
15028
13340
  const cleanup = [
15029
13341
  useEventListener(window, "click", listener, { passive: true, capture }),
15030
13342
  useEventListener(window, "pointerdown", (e) => {
15031
- const el = unrefElement$1(target);
13343
+ const el = unrefElement(target);
15032
13344
  if (el)
15033
13345
  shouldListen = !e.composedPath().includes(el) && !shouldIgnore(e);
15034
13346
  }, { passive: true }),
15035
13347
  detectIframe && useEventListener(window, "blur", (event) => {
15036
- var _a;
15037
- const el = unrefElement$1(target);
15038
- if (((_a = window.document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window.document.activeElement)))
15039
- handler(event);
13348
+ setTimeout(() => {
13349
+ var _a;
13350
+ const el = unrefElement(target);
13351
+ if (((_a = window.document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window.document.activeElement)))
13352
+ handler(event);
13353
+ }, 0);
15040
13354
  })
15041
13355
  ].filter(Boolean);
15042
13356
  const stop = () => cleanup.forEach((fn) => fn());
15043
13357
  return stop;
15044
13358
  }
15045
13359
 
15046
- var __defProp$o = Object.defineProperty;
15047
- var __defProps$b = Object.defineProperties;
15048
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
15049
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
15050
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
15051
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
15052
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15053
- var __spreadValues$o = (a, b) => {
13360
+ var __defProp$p = Object.defineProperty;
13361
+ var __defProps$c = Object.defineProperties;
13362
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
13363
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
13364
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
13365
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
13366
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13367
+ var __spreadValues$p = (a, b) => {
15054
13368
  for (var prop in b || (b = {}))
15055
- if (__hasOwnProp$r.call(b, prop))
15056
- __defNormalProp$o(a, prop, b[prop]);
15057
- if (__getOwnPropSymbols$r)
15058
- for (var prop of __getOwnPropSymbols$r(b)) {
15059
- if (__propIsEnum$r.call(b, prop))
15060
- __defNormalProp$o(a, prop, b[prop]);
13369
+ if (__hasOwnProp$s.call(b, prop))
13370
+ __defNormalProp$p(a, prop, b[prop]);
13371
+ if (__getOwnPropSymbols$s)
13372
+ for (var prop of __getOwnPropSymbols$s(b)) {
13373
+ if (__propIsEnum$s.call(b, prop))
13374
+ __defNormalProp$p(a, prop, b[prop]);
15061
13375
  }
15062
13376
  return a;
15063
13377
  };
15064
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
13378
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
15065
13379
  function createKeyPredicate(keyFilter) {
15066
13380
  if (typeof keyFilter === "function")
15067
13381
  return keyFilter;
@@ -15100,7 +13414,7 @@ function onKeyStroke(...args) {
15100
13414
  } = options;
15101
13415
  const predicate = createKeyPredicate(key);
15102
13416
  const listener = (e) => {
15103
- if (e.repeat && toValue$1(dedupe))
13417
+ if (e.repeat && toValue(dedupe))
15104
13418
  return;
15105
13419
  if (predicate(e))
15106
13420
  handler(e);
@@ -15108,7 +13422,7 @@ function onKeyStroke(...args) {
15108
13422
  return useEventListener(target, eventName, listener, passive);
15109
13423
  }
15110
13424
  function onKeyDown(key, handler, options = {}) {
15111
- return onKeyStroke(key, handler, __spreadProps$b(__spreadValues$o({}, options), { eventName: "keydown" }));
13425
+ return onKeyStroke(key, handler, __spreadProps$c(__spreadValues$p({}, options), { eventName: "keydown" }));
15112
13426
  }
15113
13427
 
15114
13428
  function useMounted() {
@@ -15140,7 +13454,7 @@ function useRafFn(fn, options = {}) {
15140
13454
  function loop(timestamp) {
15141
13455
  if (!isActive.value || !window)
15142
13456
  return;
15143
- const delta = timestamp - previousFrameTimestamp;
13457
+ const delta = timestamp - (previousFrameTimestamp || timestamp);
15144
13458
  fn({ delta, timestamp });
15145
13459
  previousFrameTimestamp = timestamp;
15146
13460
  rafId = window.requestAnimationFrame(loop);
@@ -15160,7 +13474,7 @@ function useRafFn(fn, options = {}) {
15160
13474
  }
15161
13475
  if (immediate)
15162
13476
  resume();
15163
- tryOnScopeDispose$1(pause);
13477
+ tryOnScopeDispose(pause);
15164
13478
  return {
15165
13479
  isActive: readonly(isActive),
15166
13480
  pause,
@@ -15195,7 +13509,7 @@ function useMediaQuery(query, options = {}) {
15195
13509
  mediaQuery.addListener(update);
15196
13510
  };
15197
13511
  watchEffect(update);
15198
- tryOnScopeDispose$1(() => cleanup());
13512
+ tryOnScopeDispose(() => cleanup());
15199
13513
  return matches;
15200
13514
  }
15201
13515
 
@@ -15226,7 +13540,7 @@ function useClipboard(options = {}) {
15226
13540
  for (const event of events)
15227
13541
  useEventListener(event, updateText);
15228
13542
  }
15229
- async function copy(value = toValue$1(source)) {
13543
+ async function copy(value = toValue(source)) {
15230
13544
  if (isSupported.value && value != null) {
15231
13545
  if (isClipboardApiSupported.value)
15232
13546
  await navigator.clipboard.writeText(value);
@@ -15278,19 +13592,19 @@ function guessSerializerType(rawInit) {
15278
13592
  return rawInit == null ? "any" : rawInit instanceof Set ? "set" : rawInit instanceof Map ? "map" : rawInit instanceof Date ? "date" : typeof rawInit === "boolean" ? "boolean" : typeof rawInit === "string" ? "string" : typeof rawInit === "object" ? "object" : !Number.isNaN(rawInit) ? "number" : "any";
15279
13593
  }
15280
13594
 
15281
- var __defProp$k = Object.defineProperty;
15282
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
15283
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
15284
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
15285
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15286
- var __spreadValues$k = (a, b) => {
13595
+ var __defProp$l = Object.defineProperty;
13596
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
13597
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
13598
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
13599
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13600
+ var __spreadValues$l = (a, b) => {
15287
13601
  for (var prop in b || (b = {}))
15288
- if (__hasOwnProp$n.call(b, prop))
15289
- __defNormalProp$k(a, prop, b[prop]);
15290
- if (__getOwnPropSymbols$n)
15291
- for (var prop of __getOwnPropSymbols$n(b)) {
15292
- if (__propIsEnum$n.call(b, prop))
15293
- __defNormalProp$k(a, prop, b[prop]);
13602
+ if (__hasOwnProp$o.call(b, prop))
13603
+ __defNormalProp$l(a, prop, b[prop]);
13604
+ if (__getOwnPropSymbols$o)
13605
+ for (var prop of __getOwnPropSymbols$o(b)) {
13606
+ if (__propIsEnum$o.call(b, prop))
13607
+ __defNormalProp$l(a, prop, b[prop]);
15294
13608
  }
15295
13609
  return a;
15296
13610
  };
@@ -15357,7 +13671,7 @@ function useStorage(key, defaults, storage, options = {}) {
15357
13671
  }
15358
13672
  if (!storage)
15359
13673
  return data;
15360
- const rawInit = toValue$1(defaults);
13674
+ const rawInit = toValue(defaults);
15361
13675
  const type = guessSerializerType(rawInit);
15362
13676
  const serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type];
15363
13677
  const { pause: pauseWatch, resume: resumeWatch } = watchPausable(
@@ -15407,7 +13721,7 @@ function useStorage(key, defaults, storage, options = {}) {
15407
13721
  if (typeof mergeDefaults === "function")
15408
13722
  return mergeDefaults(value, rawInit);
15409
13723
  else if (type === "object" && !Array.isArray(value))
15410
- return __spreadValues$k(__spreadValues$k({}, rawInit), value);
13724
+ return __spreadValues$l(__spreadValues$l({}, rawInit), value);
15411
13725
  return value;
15412
13726
  } else if (typeof rawValue !== "string") {
15413
13727
  return rawValue;
@@ -15445,19 +13759,19 @@ function usePreferredDark(options) {
15445
13759
  return useMediaQuery("(prefers-color-scheme: dark)", options);
15446
13760
  }
15447
13761
 
15448
- var __defProp$j = Object.defineProperty;
15449
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
15450
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
15451
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
15452
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15453
- var __spreadValues$j = (a, b) => {
13762
+ var __defProp$k = Object.defineProperty;
13763
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
13764
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
13765
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
13766
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13767
+ var __spreadValues$k = (a, b) => {
15454
13768
  for (var prop in b || (b = {}))
15455
- if (__hasOwnProp$m.call(b, prop))
15456
- __defNormalProp$j(a, prop, b[prop]);
15457
- if (__getOwnPropSymbols$m)
15458
- for (var prop of __getOwnPropSymbols$m(b)) {
15459
- if (__propIsEnum$m.call(b, prop))
15460
- __defNormalProp$j(a, prop, b[prop]);
13769
+ if (__hasOwnProp$n.call(b, prop))
13770
+ __defNormalProp$k(a, prop, b[prop]);
13771
+ if (__getOwnPropSymbols$n)
13772
+ for (var prop of __getOwnPropSymbols$n(b)) {
13773
+ if (__propIsEnum$n.call(b, prop))
13774
+ __defNormalProp$k(a, prop, b[prop]);
15461
13775
  }
15462
13776
  return a;
15463
13777
  };
@@ -15474,7 +13788,7 @@ function useColorMode(options = {}) {
15474
13788
  emitAuto,
15475
13789
  disableTransition = true
15476
13790
  } = options;
15477
- const modes = __spreadValues$j({
13791
+ const modes = __spreadValues$k({
15478
13792
  auto: "",
15479
13793
  light: "light",
15480
13794
  dark: "dark"
@@ -15488,13 +13802,14 @@ function useColorMode(options = {}) {
15488
13802
  const updateHTMLAttrs = getSSRHandler(
15489
13803
  "updateHTMLAttrs",
15490
13804
  (selector2, attribute2, value) => {
15491
- const el = typeof selector2 === "string" ? window == null ? void 0 : window.document.querySelector(selector2) : unrefElement$1(selector2);
13805
+ const el = typeof selector2 === "string" ? window == null ? void 0 : window.document.querySelector(selector2) : unrefElement(selector2);
15492
13806
  if (!el)
15493
13807
  return;
15494
13808
  let style;
15495
13809
  if (disableTransition) {
15496
13810
  style = window.document.createElement("style");
15497
- style.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}"));
13811
+ const styleString = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
13812
+ style.appendChild(document.createTextNode(styleString));
15498
13813
  window.document.head.appendChild(style);
15499
13814
  }
15500
13815
  if (attribute2 === "class") {
@@ -15541,31 +13856,31 @@ function useColorMode(options = {}) {
15541
13856
  }
15542
13857
  }
15543
13858
 
15544
- var __defProp$i = Object.defineProperty;
15545
- var __defProps$8 = Object.defineProperties;
15546
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
15547
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
15548
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
15549
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
15550
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15551
- var __spreadValues$i = (a, b) => {
13859
+ var __defProp$j = Object.defineProperty;
13860
+ var __defProps$9 = Object.defineProperties;
13861
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
13862
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
13863
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
13864
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
13865
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13866
+ var __spreadValues$j = (a, b) => {
15552
13867
  for (var prop in b || (b = {}))
15553
- if (__hasOwnProp$k.call(b, prop))
15554
- __defNormalProp$i(a, prop, b[prop]);
15555
- if (__getOwnPropSymbols$k)
15556
- for (var prop of __getOwnPropSymbols$k(b)) {
15557
- if (__propIsEnum$k.call(b, prop))
15558
- __defNormalProp$i(a, prop, b[prop]);
13868
+ if (__hasOwnProp$l.call(b, prop))
13869
+ __defNormalProp$j(a, prop, b[prop]);
13870
+ if (__getOwnPropSymbols$l)
13871
+ for (var prop of __getOwnPropSymbols$l(b)) {
13872
+ if (__propIsEnum$l.call(b, prop))
13873
+ __defNormalProp$j(a, prop, b[prop]);
15559
13874
  }
15560
13875
  return a;
15561
13876
  };
15562
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
13877
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
15563
13878
  function useDark(options = {}) {
15564
13879
  const {
15565
13880
  valueDark = "dark",
15566
13881
  valueLight = ""
15567
13882
  } = options;
15568
- const mode = useColorMode(__spreadProps$8(__spreadValues$i({}, options), {
13883
+ const mode = useColorMode(__spreadProps$9(__spreadValues$j({}, options), {
15569
13884
  onChanged: (mode2, defaultHandler) => {
15570
13885
  var _a;
15571
13886
  if (options.onChanged)
@@ -15593,17 +13908,17 @@ function useDark(options = {}) {
15593
13908
  return isDark;
15594
13909
  }
15595
13910
 
15596
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
15597
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
15598
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
13911
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
13912
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
13913
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
15599
13914
  var __objRest$2 = (source, exclude) => {
15600
13915
  var target = {};
15601
13916
  for (var prop in source)
15602
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
13917
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
15603
13918
  target[prop] = source[prop];
15604
- if (source != null && __getOwnPropSymbols$g)
15605
- for (var prop of __getOwnPropSymbols$g(source)) {
15606
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
13919
+ if (source != null && __getOwnPropSymbols$h)
13920
+ for (var prop of __getOwnPropSymbols$h(source)) {
13921
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
15607
13922
  target[prop] = source[prop];
15608
13923
  }
15609
13924
  return target;
@@ -15619,7 +13934,7 @@ function useResizeObserver(target, callback, options = {}) {
15619
13934
  }
15620
13935
  };
15621
13936
  const targets = computed(
15622
- () => Array.isArray(target) ? target.map((el) => unrefElement$1(el)) : [unrefElement$1(target)]
13937
+ () => Array.isArray(target) ? target.map((el) => unrefElement(el)) : [unrefElement(target)]
15623
13938
  );
15624
13939
  const stopWatch = watch(
15625
13940
  targets,
@@ -15637,7 +13952,7 @@ function useResizeObserver(target, callback, options = {}) {
15637
13952
  cleanup();
15638
13953
  stopWatch();
15639
13954
  };
15640
- tryOnScopeDispose$1(stop);
13955
+ tryOnScopeDispose(stop);
15641
13956
  return {
15642
13957
  isSupported,
15643
13958
  stop
@@ -15660,7 +13975,7 @@ function useElementBounding(target, options = {}) {
15660
13975
  const x = ref(0);
15661
13976
  const y = ref(0);
15662
13977
  function update() {
15663
- const el = unrefElement$1(target);
13978
+ const el = unrefElement(target);
15664
13979
  if (!el) {
15665
13980
  if (reset) {
15666
13981
  height.value = 0;
@@ -15685,7 +14000,7 @@ function useElementBounding(target, options = {}) {
15685
14000
  y.value = rect.y;
15686
14001
  }
15687
14002
  useResizeObserver(target, update);
15688
- watch(() => unrefElement$1(target), (ele) => !ele && update());
14003
+ watch(() => unrefElement(target), (ele) => !ele && update());
15689
14004
  if (windowScroll)
15690
14005
  useEventListener("scroll", update, { capture: true, passive: true });
15691
14006
  if (windowResize)
@@ -15711,7 +14026,7 @@ function useElementSize(target, initialSize = { width: 0, height: 0 }, options =
15711
14026
  const { window = defaultWindow, box = "content-box" } = options;
15712
14027
  const isSVG = computed(() => {
15713
14028
  var _a, _b;
15714
- return (_b = (_a = unrefElement$1(target)) == null ? void 0 : _a.namespaceURI) == null ? void 0 : _b.includes("svg");
14029
+ return (_b = (_a = unrefElement(target)) == null ? void 0 : _a.namespaceURI) == null ? void 0 : _b.includes("svg");
15715
14030
  });
15716
14031
  const width = ref(initialSize.width);
15717
14032
  const height = ref(initialSize.height);
@@ -15720,11 +14035,11 @@ function useElementSize(target, initialSize = { width: 0, height: 0 }, options =
15720
14035
  ([entry]) => {
15721
14036
  const boxSize = box === "border-box" ? entry.borderBoxSize : box === "content-box" ? entry.contentBoxSize : entry.devicePixelContentBoxSize;
15722
14037
  if (window && isSVG.value) {
15723
- const $elem = unrefElement$1(target);
14038
+ const $elem = unrefElement(target);
15724
14039
  if ($elem) {
15725
14040
  const styles = window.getComputedStyle($elem);
15726
- width.value = parseFloat(styles.width);
15727
- height.value = parseFloat(styles.height);
14041
+ width.value = Number.parseFloat(styles.width);
14042
+ height.value = Number.parseFloat(styles.height);
15728
14043
  }
15729
14044
  } else {
15730
14045
  if (boxSize) {
@@ -15740,7 +14055,7 @@ function useElementSize(target, initialSize = { width: 0, height: 0 }, options =
15740
14055
  options
15741
14056
  );
15742
14057
  watch(
15743
- () => unrefElement$1(target),
14058
+ () => unrefElement(target),
15744
14059
  (ele) => {
15745
14060
  width.value = ele ? initialSize.width : 0;
15746
14061
  height.value = ele ? initialSize.height : 0;
@@ -15791,13 +14106,13 @@ function useScroll(element, options = {}) {
15791
14106
  });
15792
14107
  function scrollTo(_x, _y) {
15793
14108
  var _a, _b, _c;
15794
- const _element = toValue$1(element);
14109
+ const _element = toValue(element);
15795
14110
  if (!_element)
15796
14111
  return;
15797
14112
  (_c = _element instanceof Document ? document.body : _element) == null ? void 0 : _c.scrollTo({
15798
- top: (_a = toValue$1(_y)) != null ? _a : y.value,
15799
- left: (_b = toValue$1(_x)) != null ? _b : x.value,
15800
- behavior: toValue$1(behavior)
14113
+ top: (_a = toValue(_y)) != null ? _a : y.value,
14114
+ left: (_b = toValue(_x)) != null ? _b : x.value,
14115
+ behavior: toValue(behavior)
15801
14116
  });
15802
14117
  }
15803
14118
  const isScrolling = ref(false);
@@ -15825,7 +14140,7 @@ function useScroll(element, options = {}) {
15825
14140
  };
15826
14141
  const onScrollEndDebounced = useDebounceFn(onScrollEnd, throttle + idle);
15827
14142
  const setArrivedState = (target) => {
15828
- const el = target === document ? target.documentElement : target;
14143
+ const el = target === window ? target.document.documentElement : target === document ? target.documentElement : target;
15829
14144
  const { display, flexDirection } = getComputedStyle(el);
15830
14145
  const scrollLeft = el.scrollLeft;
15831
14146
  directions.left = scrollLeft < internalX.value;
@@ -15882,7 +14197,7 @@ function useScroll(element, options = {}) {
15882
14197
  arrivedState,
15883
14198
  directions,
15884
14199
  measure() {
15885
- const _element = toValue$1(element);
14200
+ const _element = toValue(element);
15886
14201
  if (_element)
15887
14202
  setArrivedState(_element);
15888
14203
  }
@@ -15926,8 +14241,8 @@ function useInfiniteScroll(element, onLoadMore, options = {}) {
15926
14241
  const isLoading = computed(() => !!promise.value);
15927
14242
  function checkAndLoad() {
15928
14243
  state.measure();
15929
- const el = toValue$1(element);
15930
- if (!el)
14244
+ const el = toValue(element);
14245
+ if (!el || !el.offsetParent)
15931
14246
  return;
15932
14247
  const isNarrower = direction === "bottom" || direction === "top" ? el.scrollHeight <= el.clientHeight : el.scrollWidth <= el.clientWidth;
15933
14248
  if (state.arrivedState[direction] || isNarrower) {
@@ -15943,7 +14258,7 @@ function useInfiniteScroll(element, onLoadMore, options = {}) {
15943
14258
  }
15944
14259
  }
15945
14260
  watch(
15946
- () => [state.arrivedState[direction], toValue$1(element)],
14261
+ () => [state.arrivedState[direction], toValue(element)],
15947
14262
  checkAndLoad,
15948
14263
  { immediate: true }
15949
14264
  );
@@ -15957,6 +14272,108 @@ function useLocalStorage(key, initialValue, options = {}) {
15957
14272
  return useStorage(key, initialValue, window == null ? void 0 : window.localStorage, options);
15958
14273
  }
15959
14274
 
14275
+ const DefaultMagicKeysAliasMap = {
14276
+ ctrl: "control",
14277
+ command: "meta",
14278
+ cmd: "meta",
14279
+ option: "alt",
14280
+ up: "arrowup",
14281
+ down: "arrowdown",
14282
+ left: "arrowleft",
14283
+ right: "arrowright"
14284
+ };
14285
+
14286
+ function useMagicKeys(options = {}) {
14287
+ const {
14288
+ reactive: useReactive = false,
14289
+ target = defaultWindow,
14290
+ aliasMap = DefaultMagicKeysAliasMap,
14291
+ passive = true,
14292
+ onEventFired = noop
14293
+ } = options;
14294
+ const current = reactive(/* @__PURE__ */ new Set());
14295
+ const obj = {
14296
+ toJSON() {
14297
+ return {};
14298
+ },
14299
+ current
14300
+ };
14301
+ const refs = useReactive ? reactive(obj) : obj;
14302
+ const metaDeps = /* @__PURE__ */ new Set();
14303
+ const usedKeys = /* @__PURE__ */ new Set();
14304
+ function setRefs(key, value) {
14305
+ if (key in refs) {
14306
+ if (useReactive)
14307
+ refs[key] = value;
14308
+ else
14309
+ refs[key].value = value;
14310
+ }
14311
+ }
14312
+ function reset() {
14313
+ current.clear();
14314
+ for (const key of usedKeys)
14315
+ setRefs(key, false);
14316
+ }
14317
+ function updateRefs(e, value) {
14318
+ var _a, _b;
14319
+ const key = (_a = e.key) == null ? void 0 : _a.toLowerCase();
14320
+ const code = (_b = e.code) == null ? void 0 : _b.toLowerCase();
14321
+ const values = [code, key].filter(Boolean);
14322
+ if (key) {
14323
+ if (value)
14324
+ current.add(key);
14325
+ else
14326
+ current.delete(key);
14327
+ }
14328
+ for (const key2 of values) {
14329
+ usedKeys.add(key2);
14330
+ setRefs(key2, value);
14331
+ }
14332
+ if (key === "meta" && !value) {
14333
+ metaDeps.forEach((key2) => {
14334
+ current.delete(key2);
14335
+ setRefs(key2, false);
14336
+ });
14337
+ metaDeps.clear();
14338
+ } else if (typeof e.getModifierState === "function" && e.getModifierState("Meta") && value) {
14339
+ [...current, ...values].forEach((key2) => metaDeps.add(key2));
14340
+ }
14341
+ }
14342
+ useEventListener(target, "keydown", (e) => {
14343
+ updateRefs(e, true);
14344
+ return onEventFired(e);
14345
+ }, { passive });
14346
+ useEventListener(target, "keyup", (e) => {
14347
+ updateRefs(e, false);
14348
+ return onEventFired(e);
14349
+ }, { passive });
14350
+ useEventListener("blur", reset, { passive: true });
14351
+ useEventListener("focus", reset, { passive: true });
14352
+ const proxy = new Proxy(
14353
+ refs,
14354
+ {
14355
+ get(target2, prop, rec) {
14356
+ if (typeof prop !== "string")
14357
+ return Reflect.get(target2, prop, rec);
14358
+ prop = prop.toLowerCase();
14359
+ if (prop in aliasMap)
14360
+ prop = aliasMap[prop];
14361
+ if (!(prop in refs)) {
14362
+ if (/[+_-]/.test(prop)) {
14363
+ const keys = prop.split(/[+_-]/g).map((i) => i.trim());
14364
+ refs[prop] = computed(() => keys.every((key) => toValue(proxy[key])));
14365
+ } else {
14366
+ refs[prop] = ref(false);
14367
+ }
14368
+ }
14369
+ const r = Reflect.get(target2, prop, rec);
14370
+ return useReactive ? toValue(r) : r;
14371
+ }
14372
+ }
14373
+ );
14374
+ return proxy;
14375
+ }
14376
+
15960
14377
  var __defProp$7 = Object.defineProperty;
15961
14378
  var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
15962
14379
  var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
@@ -15992,7 +14409,7 @@ function useNow(options = {}) {
15992
14409
 
15993
14410
  function checkOverflowScroll(ele) {
15994
14411
  const style = window.getComputedStyle(ele);
15995
- if (style.overflowX === "scroll" || style.overflowY === "scroll" || style.overflowX === "auto" && ele.clientHeight < ele.scrollHeight || style.overflowY === "auto" && ele.clientWidth < ele.scrollWidth) {
14412
+ if (style.overflowX === "scroll" || style.overflowY === "scroll" || style.overflowX === "auto" && ele.clientWidth < ele.scrollWidth || style.overflowY === "auto" && ele.clientHeight < ele.scrollHeight) {
15996
14413
  return true;
15997
14414
  } else {
15998
14415
  const parent = ele.parentNode;
@@ -16027,7 +14444,7 @@ function useScrollLock(element, initialState = false) {
16027
14444
  immediate: true
16028
14445
  });
16029
14446
  const lock = () => {
16030
- const ele = toValue$1(element);
14447
+ const ele = toValue(element);
16031
14448
  if (!ele || isLocked.value)
16032
14449
  return;
16033
14450
  if (isIOS) {
@@ -16044,14 +14461,14 @@ function useScrollLock(element, initialState = false) {
16044
14461
  isLocked.value = true;
16045
14462
  };
16046
14463
  const unlock = () => {
16047
- const ele = toValue$1(element);
14464
+ const ele = toValue(element);
16048
14465
  if (!ele || !isLocked.value)
16049
14466
  return;
16050
14467
  isIOS && (stopTouchMoveListener == null ? void 0 : stopTouchMoveListener());
16051
14468
  ele.style.overflow = initialOverflow;
16052
14469
  isLocked.value = false;
16053
14470
  };
16054
- tryOnScopeDispose$1(unlock);
14471
+ tryOnScopeDispose(unlock);
16055
14472
  return computed({
16056
14473
  get() {
16057
14474
  return isLocked.value;
@@ -16109,7 +14526,7 @@ function useStyleTag(css, options = {}) {
16109
14526
  if (immediate && !manual)
16110
14527
  tryOnMounted(load);
16111
14528
  if (!manual)
16112
- tryOnScopeDispose$1(unload);
14529
+ tryOnScopeDispose(unload);
16113
14530
  return {
16114
14531
  id,
16115
14532
  css: cssRef,
@@ -16178,7 +14595,7 @@ function useTimeAgo(time, options = {}) {
16178
14595
  updateInterval = 3e4
16179
14596
  } = options;
16180
14597
  const _a = useNow({ interval: updateInterval, controls: true }), { now } = _a, controls = __objRest$1(_a, ["now"]);
16181
- const timeAgo = computed(() => formatTimeAgo(new Date(toValue$1(time)), options, toValue$1(now.value)));
14598
+ const timeAgo = computed(() => formatTimeAgo(new Date(toValue(time)), options, toValue(now)));
16182
14599
  if (exposeControls) {
16183
14600
  return __spreadValues$2({
16184
14601
  timeAgo
@@ -16252,7 +14669,7 @@ function useVModel(props, key, emit, options = {}) {
16252
14669
  key = "modelValue";
16253
14670
  }
16254
14671
  }
16255
- event = eventName || event || `update:${key.toString()}`;
14672
+ event = event || `update:${key.toString()}`;
16256
14673
  const cloneFn = (val) => !clone ? val : typeof clone === "function" ? clone(val) : cloneFnJSON(val);
16257
14674
  const getValue = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue;
16258
14675
  const triggerEmit = (value) => {
@@ -16405,20 +14822,20 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
16405
14822
 
16406
14823
  /* Injected with object hook! */
16407
14824
 
16408
- const __pages_import_0__ = () => __vitePreload(() => import('./timeline-0c1ece86.js'),true?["./timeline-0c1ece86.js","./StateFields.vue_vue_type_script_setup_true_lang-92d427dd.js","./VIcon.vue_vue_type_script_setup_true_lang-0471a697.js","./index-f35b9ded.js","./VIconButton.vue_vue_type_script_setup_true_lang-119f94ff.js","./VPanelGrids-a58b3ecd.js","./_commonjsHelpers-65004790.js","./splitpanes.es-6544bd84.js","./timeline-b315b2e0.css"]:void 0,import.meta.url);
16409
- const __pages_import_1__ = () => __vitePreload(() => import('./settings-0d6c7a2d.js'),true?["./settings-0d6c7a2d.js","./VIcon.vue_vue_type_script_setup_true_lang-0471a697.js","./_commonjsHelpers-65004790.js","./VIconButton.vue_vue_type_script_setup_true_lang-119f94ff.js","./VTextInput.vue_vue_type_script_setup_true_lang-c2fa20e8.js","./VIconTitle.vue_vue_type_script_setup_true_lang-103d54da.js","./settings-3815e37a.css"]:void 0,import.meta.url);
16410
- const __pages_import_2__ = () => __vitePreload(() => import('./routes-e42ba149.js'),true?["./routes-e42ba149.js","./VPanelGrids-a58b3ecd.js","./StateFields.vue_vue_type_script_setup_true_lang-92d427dd.js","./VIcon.vue_vue_type_script_setup_true_lang-0471a697.js","./index-f35b9ded.js","./VIconButton.vue_vue_type_script_setup_true_lang-119f94ff.js","./splitpanes.es-6544bd84.js"]:void 0,import.meta.url);
16411
- const __pages_import_3__ = () => __vitePreload(() => import('./pinia-b39bf0f8.js'),true?["./pinia-b39bf0f8.js","./StateFields.vue_vue_type_script_setup_true_lang-92d427dd.js","./VIcon.vue_vue_type_script_setup_true_lang-0471a697.js","./index-f35b9ded.js","./VIconButton.vue_vue_type_script_setup_true_lang-119f94ff.js","./splitpanes.es-6544bd84.js"]:void 0,import.meta.url);
16412
- const __pages_import_4__ = () => __vitePreload(() => import('./pages-d5ca868b.js'),true?["./pages-d5ca868b.js","./VSectionBlock-f57f512c.js","./VIconTitle.vue_vue_type_script_setup_true_lang-103d54da.js","./VIcon.vue_vue_type_script_setup_true_lang-0471a697.js","./VSectionBlock-52804693.css","./VTextInput.vue_vue_type_script_setup_true_lang-c2fa20e8.js"]:void 0,import.meta.url);
16413
- const __pages_import_5__ = () => __vitePreload(() => import('./overview-53e9f8bb.js'),true?["./overview-53e9f8bb.js","./VPanelGrids-a58b3ecd.js","./rpc-ebdebff3.js","./index-f35b9ded.js"]:void 0,import.meta.url);
16414
- const __pages_import_6__ = () => __vitePreload(() => import('./npm-087e8329.js'),true?["./npm-087e8329.js","./VSectionBlock-f57f512c.js","./VIconTitle.vue_vue_type_script_setup_true_lang-103d54da.js","./VIcon.vue_vue_type_script_setup_true_lang-0471a697.js","./VSectionBlock-52804693.css","./VTextInput.vue_vue_type_script_setup_true_lang-c2fa20e8.js","./_commonjsHelpers-65004790.js","./rpc-ebdebff3.js","./npm-125f4259.css"]:void 0,import.meta.url);
16415
- const __pages_import_7__ = () => __vitePreload(() => import('./inspect-5ace614b.js'),true?["./inspect-5ace614b.js","./IframeView.vue_vue_type_script_setup_true_lang-dbf4788f.js","./rpc-ebdebff3.js"]:void 0,import.meta.url);
16416
- const __pages_import_9__ = () => __vitePreload(() => import('./graph-23e2d183.js'),true?["./graph-23e2d183.js","./fuse.esm-c317b696.js","./rpc-ebdebff3.js"]:void 0,import.meta.url);
16417
- const __pages_import_10__ = () => __vitePreload(() => import('./documentations-6e435dfa.js'),true?["./documentations-6e435dfa.js","./IframeView.vue_vue_type_script_setup_true_lang-dbf4788f.js","./rpc-ebdebff3.js"]:void 0,import.meta.url);
16418
- const __pages_import_11__ = () => __vitePreload(() => import('./components-b45b1440.js'),true?["./components-b45b1440.js","./VPanelGrids-a58b3ecd.js","./StateFields.vue_vue_type_script_setup_true_lang-92d427dd.js","./VIcon.vue_vue_type_script_setup_true_lang-0471a697.js","./index-f35b9ded.js","./VIconButton.vue_vue_type_script_setup_true_lang-119f94ff.js","./splitpanes.es-6544bd84.js"]:void 0,import.meta.url);
16419
- const __pages_import_12__ = () => __vitePreload(() => import('./component-docs-621a63cc.js'),true?["./component-docs-621a63cc.js","./VTextInput.vue_vue_type_script_setup_true_lang-c2fa20e8.js","./VIcon.vue_vue_type_script_setup_true_lang-0471a697.js","./splitpanes.es-6544bd84.js","./fuse.esm-c317b696.js","./rpc-ebdebff3.js","./component-docs-351d62d5.css"]:void 0,import.meta.url);
16420
- const __pages_import_13__ = () => __vitePreload(() => import('./assets-35cb492d.js'),true?["./assets-35cb492d.js","./VPanelGrids-a58b3ecd.js","./VIconButton.vue_vue_type_script_setup_true_lang-119f94ff.js","./VIcon.vue_vue_type_script_setup_true_lang-0471a697.js","./rpc-ebdebff3.js","./VSectionBlock-f57f512c.js","./VIconTitle.vue_vue_type_script_setup_true_lang-103d54da.js","./VSectionBlock-52804693.css","./VTextInput.vue_vue_type_script_setup_true_lang-c2fa20e8.js","./fuse.esm-c317b696.js"]:void 0,import.meta.url);
16421
- const __pages_import_14__ = () => __vitePreload(() => import('./__eyedropper-3cca8ce1.js'),true?["./__eyedropper-3cca8ce1.js","./VPanelGrids-a58b3ecd.js"]:void 0,import.meta.url);
14825
+ const __pages_import_0__ = () => __vitePreload(() => import('./timeline-202ca852.js'),true?["./timeline-202ca852.js","./StateFields.vue_vue_type_script_setup_true_lang-0e4af331.js","./VIcon.vue_vue_type_script_setup_true_lang-d1646658.js","./index-37b80b18.js","./VIconButton.vue_vue_type_script_setup_true_lang-5c7fa25b.js","./VPanelGrids-08ef47ce.js","./_commonjsHelpers-65004790.js","./splitpanes.es-8a68d356.js","./timeline-b315b2e0.css"]:void 0,import.meta.url);
14826
+ const __pages_import_1__ = () => __vitePreload(() => import('./settings-2e4656aa.js'),true?["./settings-2e4656aa.js","./VSwitch.vue_vue_type_script_setup_true_lang-b1b6daad.js","./VIcon.vue_vue_type_script_setup_true_lang-d1646658.js","./_commonjsHelpers-65004790.js","./VIconButton.vue_vue_type_script_setup_true_lang-5c7fa25b.js","./VTextInput.vue_vue_type_script_setup_true_lang-4df2a1eb.js","./VIconTitle.vue_vue_type_script_setup_true_lang-3af9d81d.js","./settings-3815e37a.css"]:void 0,import.meta.url);
14827
+ const __pages_import_2__ = () => __vitePreload(() => import('./routes-7d3d04cf.js'),true?["./routes-7d3d04cf.js","./VPanelGrids-08ef47ce.js","./StateFields.vue_vue_type_script_setup_true_lang-0e4af331.js","./VIcon.vue_vue_type_script_setup_true_lang-d1646658.js","./index-37b80b18.js","./VIconButton.vue_vue_type_script_setup_true_lang-5c7fa25b.js","./splitpanes.es-8a68d356.js"]:void 0,import.meta.url);
14828
+ const __pages_import_3__ = () => __vitePreload(() => import('./pinia-e230dd12.js'),true?["./pinia-e230dd12.js","./StateFields.vue_vue_type_script_setup_true_lang-0e4af331.js","./VIcon.vue_vue_type_script_setup_true_lang-d1646658.js","./index-37b80b18.js","./VIconButton.vue_vue_type_script_setup_true_lang-5c7fa25b.js","./splitpanes.es-8a68d356.js"]:void 0,import.meta.url);
14829
+ const __pages_import_4__ = () => __vitePreload(() => import('./pages-d51e51ec.js'),true?["./pages-d51e51ec.js","./VSectionBlock-44a9204b.js","./VIconTitle.vue_vue_type_script_setup_true_lang-3af9d81d.js","./VIcon.vue_vue_type_script_setup_true_lang-d1646658.js","./VSectionBlock-52804693.css","./VTextInput.vue_vue_type_script_setup_true_lang-4df2a1eb.js"]:void 0,import.meta.url);
14830
+ const __pages_import_5__ = () => __vitePreload(() => import('./overview-fc79467d.js'),true?["./overview-fc79467d.js","./VPanelGrids-08ef47ce.js","./rpc-d8afe028.js","./index-37b80b18.js"]:void 0,import.meta.url);
14831
+ const __pages_import_6__ = () => __vitePreload(() => import('./npm-de038c5b.js'),true?["./npm-de038c5b.js","./VSectionBlock-44a9204b.js","./VIconTitle.vue_vue_type_script_setup_true_lang-3af9d81d.js","./VIcon.vue_vue_type_script_setup_true_lang-d1646658.js","./VSectionBlock-52804693.css","./VTextInput.vue_vue_type_script_setup_true_lang-4df2a1eb.js","./_commonjsHelpers-65004790.js","./rpc-d8afe028.js","./npm-832f3f2c.css"]:void 0,import.meta.url);
14832
+ const __pages_import_7__ = () => __vitePreload(() => import('./inspect-c464cac5.js'),true?["./inspect-c464cac5.js","./IframeView.vue_vue_type_script_setup_true_lang-fd720d18.js","./rpc-d8afe028.js"]:void 0,import.meta.url);
14833
+ const __pages_import_9__ = () => __vitePreload(() => import('./graph-c8cae02e.js'),true?["./graph-c8cae02e.js","./VSwitch.vue_vue_type_script_setup_true_lang-b1b6daad.js","./VIcon.vue_vue_type_script_setup_true_lang-d1646658.js","./fuse.esm-c317b696.js","./_commonjsHelpers-65004790.js","./rpc-d8afe028.js"]:void 0,import.meta.url);
14834
+ const __pages_import_10__ = () => __vitePreload(() => import('./documentations-ec90fa66.js'),true?["./documentations-ec90fa66.js","./IframeView.vue_vue_type_script_setup_true_lang-fd720d18.js","./rpc-d8afe028.js"]:void 0,import.meta.url);
14835
+ const __pages_import_11__ = () => __vitePreload(() => import('./components-5011f272.js'),true?["./components-5011f272.js","./VPanelGrids-08ef47ce.js","./StateFields.vue_vue_type_script_setup_true_lang-0e4af331.js","./VIcon.vue_vue_type_script_setup_true_lang-d1646658.js","./index-37b80b18.js","./VIconButton.vue_vue_type_script_setup_true_lang-5c7fa25b.js","./splitpanes.es-8a68d356.js"]:void 0,import.meta.url);
14836
+ const __pages_import_12__ = () => __vitePreload(() => import('./component-docs-1e5f0727.js'),true?["./component-docs-1e5f0727.js","./VTextInput.vue_vue_type_script_setup_true_lang-4df2a1eb.js","./VIcon.vue_vue_type_script_setup_true_lang-d1646658.js","./splitpanes.es-8a68d356.js","./fuse.esm-c317b696.js","./rpc-d8afe028.js","./component-docs-351d62d5.css"]:void 0,import.meta.url);
14837
+ const __pages_import_13__ = () => __vitePreload(() => import('./assets-4ff4283a.js'),true?["./assets-4ff4283a.js","./VPanelGrids-08ef47ce.js","./VIconButton.vue_vue_type_script_setup_true_lang-5c7fa25b.js","./VIcon.vue_vue_type_script_setup_true_lang-d1646658.js","./rpc-d8afe028.js","./VSectionBlock-44a9204b.js","./VIconTitle.vue_vue_type_script_setup_true_lang-3af9d81d.js","./VSectionBlock-52804693.css","./VTextInput.vue_vue_type_script_setup_true_lang-4df2a1eb.js","./fuse.esm-c317b696.js"]:void 0,import.meta.url);
14838
+ const __pages_import_14__ = () => __vitePreload(() => import('./__eyedropper-9aeb7406.js'),true?["./__eyedropper-9aeb7406.js","./VPanelGrids-08ef47ce.js"]:void 0,import.meta.url);
16422
14839
 
16423
14840
  const routes$1 = [{"name":"timeline","path":"/timeline","component":__pages_import_0__,"props":true},{"name":"settings","path":"/settings","component":__pages_import_1__,"props":true},{"name":"routes","path":"/routes","component":__pages_import_2__,"props":true},{"name":"pinia","path":"/pinia","component":__pages_import_3__,"props":true},{"name":"pages","path":"/pages","component":__pages_import_4__,"props":true},{"name":"overview","path":"/overview","component":__pages_import_5__,"props":true},{"name":"npm","path":"/npm","component":__pages_import_6__,"props":true},{"name":"inspect","path":"/inspect","component":__pages_import_7__,"props":true},{"name":"index","path":"/","component":_sfc_main$a,"props":true},{"name":"graph","path":"/graph","component":__pages_import_9__,"props":true},{"name":"documentations","path":"/documentations","component":__pages_import_10__,"props":true},{"name":"components","path":"/components","component":__pages_import_11__,"props":true},{"name":"component-docs","path":"/component-docs","component":__pages_import_12__,"props":true},{"name":"assets","path":"/assets","component":__pages_import_13__,"props":true},{"name":"__eyedropper","path":"/__eyedropper","component":__pages_import_14__,"props":true}];
16424
14841
  /* Injected with object hook! */
@@ -16463,7 +14880,9 @@ const client$1 = ref({
16463
14880
  markClientLoaded: () => {
16464
14881
  },
16465
14882
  hookBuffer: [],
16466
- categorizedHookBuffer: {}
14883
+ categorizedHookBuffer: {},
14884
+ openInEditor: () => {
14885
+ }
16467
14886
  });
16468
14887
  function useDevtoolsClient() {
16469
14888
  return client$1;
@@ -16671,6 +15090,11 @@ function getSortedTabs(sourceTabs) {
16671
15090
  tabs.sort((a, b) => a.groupIndex - b.groupIndex);
16672
15091
  return tabs;
16673
15092
  }
15093
+ function updateUngroupedData(data) {
15094
+ if (!groupsData.value[DEFAULT_TAB_GROUP])
15095
+ createGroup(DEFAULT_TAB_GROUP);
15096
+ groupsData.value[DEFAULT_TAB_GROUP].data = data;
15097
+ }
16674
15098
  function ungroupAllTabs() {
16675
15099
  const tabs = allTabs.value.slice();
16676
15100
  const names = [];
@@ -16680,7 +15104,7 @@ function ungroupAllTabs() {
16680
15104
  names.push(tab.title);
16681
15105
  });
16682
15106
  allTabs.value = tabs;
16683
- groupsData.value[DEFAULT_TAB_GROUP].data = names.map((name) => ({ name, index: -1 }));
15107
+ updateUngroupedData(names.map((name) => ({ name, index: -1 })));
16684
15108
  }
16685
15109
  function resetAllTabs() {
16686
15110
  allTabs.value = getInitialTabs();
@@ -16690,7 +15114,7 @@ function shouldHideTabGroup(groupName, tabLength) {
16690
15114
  return groupName === DEFAULT_TAB_GROUP && tabLength === 0;
16691
15115
  }
16692
15116
  function removeTabGroup(group) {
16693
- const tabs = allTabs.value;
15117
+ const tabs = allTabs.value.slice();
16694
15118
  const tabNames = [];
16695
15119
  tabs.forEach((item) => {
16696
15120
  if (item.group === group) {
@@ -16701,7 +15125,7 @@ function removeTabGroup(group) {
16701
15125
  });
16702
15126
  allTabs.value = tabs;
16703
15127
  Reflect.deleteProperty(groupsData.value, group);
16704
- groupsData.value[DEFAULT_TAB_GROUP].data.push(...tabNames.map((name) => ({ name, index: -1 })));
15128
+ updateUngroupedData(tabNames.map((name) => ({ name, index: -1 })));
16705
15129
  }
16706
15130
  function checkGroupExist(groupName) {
16707
15131
  return groupsData.value[groupName];
@@ -16849,28 +15273,6 @@ function _sfc_render(_ctx, _cache) {
16849
15273
  const __unplugin_components_7 = /*#__PURE__*/_export_sfc(_sfc_main$6, [['render',_sfc_render]]);
16850
15274
  /* Injected with object hook! */
16851
15275
 
16852
- function tryOnScopeDispose(fn) {
16853
- if (getCurrentScope()) {
16854
- onScopeDispose(fn);
16855
- return true;
16856
- }
16857
- return false;
16858
- }
16859
-
16860
- function toValue(r) {
16861
- return typeof r === "function" ? r() : unref(r);
16862
- }
16863
-
16864
- /* Injected with object hook! */
16865
-
16866
- function unrefElement(elRef) {
16867
- var _a;
16868
- const plain = toValue(elRef);
16869
- return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
16870
- }
16871
-
16872
- /* Injected with object hook! */
16873
-
16874
15276
  /*!
16875
15277
  * tabbable 6.1.2
16876
15278
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
@@ -18737,7 +17139,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
18737
17139
  /* Injected with object hook! */
18738
17140
 
18739
17141
  /*!
18740
- * pinia v2.1.3
17142
+ * pinia v2.1.4
18741
17143
  * (c) 2023 Eduardo San Martin Morote
18742
17144
  * @license MIT
18743
17145
  */
@@ -19451,9 +17853,9 @@ const router = createRouter({
19451
17853
  routes: routes$1
19452
17854
  });
19453
17855
  app.use(router);
19454
- app.use(plugin);
17856
+ app.use(xt);
19455
17857
  app.mount("#app");
19456
17858
 
19457
17859
  /* Injected with object hook! */
19458
17860
 
19459
- export { cloneVNode as $, timelineLayer as A, activeTimelineEvents as B, activeTimelineEventIndex as C, toggleTimelineEventIndex as D, timelineEventDetails as E, Fragment as F, activeLayerId as G, toggleTimelineLayer as H, BaseTransition as I, BaseTransitionPropsValidators as J, Comment as K, EffectScope as L, KeepAlive as M, Suspense as N, Text as O, Transition as P, TransitionGroup as Q, ReactiveEffect as R, Static as S, Teleport as T, assertNumber as U, VueElement as V, callWithAsyncErrorHandling as W, callWithErrorHandling as X, camelize as Y, capitalize as Z, __unplugin_components_7 as _, popScopeId as a, ref as a$, compatUtils as a0, computed as a1, createApp as a2, createHydrationRenderer as a3, createPropsRestProxy as a4, createRenderer as a5, createSSRApp as a6, createSlots as a7, createStaticVNode as a8, createTextVNode as a9, isReactive as aA, isReadonly as aB, isRef as aC, isRuntimeOnly as aD, isShallow as aE, isVNode as aF, mergeDefaults as aG, mergeModels as aH, normalizeProps as aI, onActivated as aJ, onBeforeMount as aK, onBeforeUnmount as aL, onBeforeUpdate as aM, onDeactivated as aN, onErrorCaptured as aO, onMounted as aP, onRenderTracked as aQ, onRenderTriggered as aR, onScopeDispose as aS, onServerPrefetch as aT, onUnmounted as aU, onUpdated as aV, provide as aW, proxyRefs as aX, queuePostFlushCb as aY, reactive as aZ, readonly as a_, customRef as aa, defineAsyncComponent as ab, defineCustomElement as ac, defineEmits as ad, defineExpose as ae, defineModel as af, defineOptions as ag, defineProps as ah, defineSSRCustomElement as ai, defineSlots as aj, devtools as ak, effect as al, effectScope as am, getCurrentInstance as an, getCurrentScope as ao, getTransitionRawChildren as ap, guardReactiveProps as aq, h as ar, handleError as as, hasInjectionContext as at, hydrate as au, initCustomFormatter as av, initDirectivesForSSR as aw, inject as ax, isMemoSame as ay, isProxy as az, resolveDirective as b, _sfc_main$9 as b$, registerRuntimeCompiler as b0, render$1 as b1, resolveFilter as b2, resolveTransitionHooks as b3, setBlockTracking as b4, setDevtoolsHook as b5, setTransitionHooks as b6, shallowReadonly as b7, shallowRef as b8, ssrContextKey as b9, watchPostEffect as bA, watchSyncEffect as bB, withAsyncContext as bC, withDefaults as bD, withKeys as bE, withMemo as bF, withModifiers as bG, useVModel as bH, getSortedTabs as bI, updateTabsPosition as bJ, _export_sfc as bK, _sfc_main$d as bL, _sfc_main$5 as bM, useToggle as bN, shouldHideTabGroup as bO, DEFAULT_TAB_GROUP as bP, useGroupedTabs as bQ, ungroupAllTabs as bR, resetAllTabs as bS, removeTabGroup as bT, checkGroupExist as bU, createGroup as bV, isInPopup as bW, useDevToolsSettings as bX, useFrameState as bY, _sfc_main$4 as bZ, _sfc_main$7 as b_, ssrUtils as ba, stop as bb, toHandlerKey as bc, toRaw as bd, toRef$1 as be, toRefs$1 as bf, toValue$2 as bg, transformVNodeArgs as bh, triggerRef as bi, useAttrs as bj, useCssModule as bk, useCssVars as bl, useModel as bm, useSSRContext as bn, useSlots as bo, useTransitionState as bp, vModelCheckbox as bq, vModelDynamic as br, vModelRadio as bs, vModelSelect as bt, vModelText as bu, vShow as bv, version as bw, warn as bx, watch as by, watchEffect as bz, createBlock as c, router$1 as c0, routeRecordMatcherState as c1, activeRouteRecordMatcherState as c2, activeRouteRecordIndex as c3, toggleRouteRecordMatcher as c4, __unplugin_components_1 as c5, piniaStoresCategory as c6, piniaState as c7, piniaGetters as c8, currentRoute as c9, routes as ca, vueVersion as cb, __unplugin_components_0 as cc, useEventListener as cd, hookApi as ce, useScrollLock as cf, useInfiniteScroll as cg, useStorage as ch, useDark as ci, useColorMode as cj, useElementBounding as ck, onVueInstanceUpdate as cl, instance as cm, useCopy as cn, nanoid as co, useElementSize as cp, onClickOutside as cq, useStyleTag as cr, computedAsync as cs, useTimeAgo as ct, onKeyDown as cu, __vitePreload as cv, useRouter as cw, useDevtoolsClient as cx, withDirectives as d, createElementBlock as e, renderSlot as f, createCommentVNode as g, withCtx as h, renderList as i, resolveDynamicComponent as j, mergeProps as k, normalizeStyle as l, markRaw as m, nextTick as n, openBlock as o, pushScopeId as p, normalizeClass as q, resolveComponent as r, shallowReactive as s, toHandlers as t, createVNode as u, defineComponent as v, withScopeId as w, createBaseVNode as x, toDisplayString as y, unref as z };
17861
+ export { cloneVNode as $, timelineLayer as A, activeTimelineEvents as B, activeTimelineEventIndex as C, toggleTimelineEventIndex as D, timelineEventDetails as E, Fragment as F, activeLayerId as G, toggleTimelineLayer as H, BaseTransition as I, BaseTransitionPropsValidators as J, Comment as K, EffectScope as L, KeepAlive as M, Suspense as N, Text as O, Transition as P, TransitionGroup as Q, ReactiveEffect as R, Static as S, Teleport as T, assertNumber as U, VueElement as V, callWithAsyncErrorHandling as W, callWithErrorHandling as X, camelize as Y, capitalize as Z, __unplugin_components_7 as _, popScopeId as a, ref as a$, compatUtils as a0, computed as a1, createApp as a2, createHydrationRenderer as a3, createPropsRestProxy as a4, createRenderer as a5, createSSRApp as a6, createSlots as a7, createStaticVNode as a8, createTextVNode as a9, isReactive as aA, isReadonly as aB, isRef as aC, isRuntimeOnly as aD, isShallow as aE, isVNode as aF, mergeDefaults as aG, mergeModels as aH, normalizeProps as aI, onActivated as aJ, onBeforeMount as aK, onBeforeUnmount as aL, onBeforeUpdate as aM, onDeactivated as aN, onErrorCaptured as aO, onMounted as aP, onRenderTracked as aQ, onRenderTriggered as aR, onScopeDispose as aS, onServerPrefetch as aT, onUnmounted as aU, onUpdated as aV, provide as aW, proxyRefs as aX, queuePostFlushCb as aY, reactive as aZ, readonly as a_, customRef as aa, defineAsyncComponent as ab, defineCustomElement as ac, defineEmits as ad, defineExpose as ae, defineModel as af, defineOptions as ag, defineProps as ah, defineSSRCustomElement as ai, defineSlots as aj, devtools as ak, effect as al, effectScope as am, getCurrentInstance as an, getCurrentScope as ao, getTransitionRawChildren as ap, guardReactiveProps as aq, h$2 as ar, handleError as as, hasInjectionContext as at, hydrate as au, initCustomFormatter as av, initDirectivesForSSR as aw, inject as ax, isMemoSame as ay, isProxy as az, resolveDirective as b, _sfc_main$9 as b$, registerRuntimeCompiler as b0, render as b1, resolveFilter as b2, resolveTransitionHooks as b3, setBlockTracking as b4, setDevtoolsHook as b5, setTransitionHooks as b6, shallowReadonly as b7, shallowRef as b8, ssrContextKey as b9, watchPostEffect as bA, watchSyncEffect as bB, withAsyncContext as bC, withDefaults as bD, withKeys as bE, withMemo as bF, withModifiers as bG, getSortedTabs as bH, updateTabsPosition as bI, _export_sfc as bJ, useVModel as bK, _sfc_main$d as bL, _sfc_main$5 as bM, useToggle as bN, shouldHideTabGroup as bO, DEFAULT_TAB_GROUP as bP, useGroupedTabs as bQ, ungroupAllTabs as bR, resetAllTabs as bS, removeTabGroup as bT, checkGroupExist as bU, createGroup as bV, isInPopup as bW, useDevToolsSettings as bX, useFrameState as bY, _sfc_main$4 as bZ, _sfc_main$7 as b_, ssrUtils as ba, stop as bb, toHandlerKey as bc, toRaw as bd, toRef$1 as be, toRefs$1 as bf, toValue$1 as bg, transformVNodeArgs as bh, triggerRef as bi, useAttrs as bj, useCssModule as bk, useCssVars as bl, useModel as bm, useSSRContext as bn, useSlots as bo, useTransitionState as bp, vModelCheckbox as bq, vModelDynamic as br, vModelRadio as bs, vModelSelect as bt, vModelText as bu, vShow as bv, version as bw, warn as bx, watch as by, watchEffect as bz, createBlock as c, router$1 as c0, routeRecordMatcherState as c1, activeRouteRecordMatcherState as c2, activeRouteRecordIndex as c3, toggleRouteRecordMatcher as c4, __unplugin_components_1 as c5, piniaStoresCategory as c6, piniaState as c7, piniaGetters as c8, currentRoute as c9, routes as ca, vueVersion as cb, __unplugin_components_0 as cc, useEventListener as cd, hookApi as ce, useScrollLock as cf, useInfiniteScroll as cg, useLocalStorage as ch, useStorage as ci, useDark as cj, useMagicKeys as ck, useDevtoolsClient as cl, useColorMode as cm, useElementBounding as cn, onVueInstanceUpdate as co, instance as cp, useCopy as cq, nanoid as cr, useElementSize as cs, onClickOutside as ct, useStyleTag as cu, computedAsync as cv, useTimeAgo as cw, onKeyDown as cx, __vitePreload as cy, useRouter as cz, withDirectives as d, createElementBlock as e, renderSlot as f, createCommentVNode as g, withCtx as h, renderList as i, resolveDynamicComponent as j, mergeProps as k, normalizeStyle as l, markRaw as m, nextTick as n, openBlock as o, pushScopeId as p, normalizeClass as q, resolveComponent as r, shallowReactive as s, toHandlers as t, createVNode as u, defineComponent as v, withScopeId as w, createBaseVNode as x, toDisplayString as y, unref as z };