@amirjalili1374/ui-kit 1.5.57 → 1.5.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui-kit.es.js CHANGED
@@ -660,13 +660,13 @@ function animate(el, keyframes, options) {
660
660
  }
661
661
  return animation;
662
662
  }
663
- const handlers = /* @__PURE__ */ new WeakMap();
663
+ const handlers$1 = /* @__PURE__ */ new WeakMap();
664
664
  function bindProps(el, props) {
665
665
  Object.keys(props).forEach((k) => {
666
666
  var _a;
667
667
  if (isOn(k)) {
668
668
  const name2 = eventName(k);
669
- const handler = handlers.get(el);
669
+ const handler = handlers$1.get(el);
670
670
  if (props[k] == null) {
671
671
  handler == null ? void 0 : handler.forEach((v) => {
672
672
  const [n, fn] = v;
@@ -679,7 +679,7 @@ function bindProps(el, props) {
679
679
  el.addEventListener(name2, props[k]);
680
680
  const _handler = handler || /* @__PURE__ */ new Set();
681
681
  _handler.add([name2, props[k]]);
682
- if (!handlers.has(el)) handlers.set(el, _handler);
682
+ if (!handlers$1.has(el)) handlers$1.set(el, _handler);
683
683
  }
684
684
  } else {
685
685
  if (props[k] == null) {
@@ -694,7 +694,7 @@ function unbindProps(el, props) {
694
694
  Object.keys(props).forEach((k) => {
695
695
  if (isOn(k)) {
696
696
  const name2 = eventName(k);
697
- const handler = handlers.get(el);
697
+ const handler = handlers$1.get(el);
698
698
  handler == null ? void 0 : handler.forEach((v) => {
699
699
  const [n, fn] = v;
700
700
  if (n === name2) {
@@ -5684,10 +5684,10 @@ function useScrollStrategies(props, data2) {
5684
5684
  });
5685
5685
  }
5686
5686
  function closeScrollStrategy(data2) {
5687
- function onScroll(e) {
5687
+ function onScroll2(e) {
5688
5688
  data2.isActive.value = false;
5689
5689
  }
5690
- bindScroll(getTargetEl(data2.target.value, data2.contentEl.value), onScroll);
5690
+ bindScroll(getTargetEl(data2.target.value, data2.contentEl.value), onScroll2);
5691
5691
  }
5692
5692
  function blockScrollStrategy(data2, props) {
5693
5693
  var _a;
@@ -5730,7 +5730,7 @@ function repositionScrollStrategy(data2, props, scope) {
5730
5730
  let slow = false;
5731
5731
  let raf2 = -1;
5732
5732
  let ric = -1;
5733
- function update(e) {
5733
+ function update2(e) {
5734
5734
  requestNewFrame(() => {
5735
5735
  var _a, _b;
5736
5736
  const start = performance.now();
@@ -5746,11 +5746,11 @@ function repositionScrollStrategy(data2, props, scope) {
5746
5746
  cancelAnimationFrame(raf2);
5747
5747
  raf2 = requestAnimationFrame(() => {
5748
5748
  raf2 = requestAnimationFrame(() => {
5749
- update(e);
5749
+ update2(e);
5750
5750
  });
5751
5751
  });
5752
5752
  } else {
5753
- update(e);
5753
+ update2(e);
5754
5754
  }
5755
5755
  });
5756
5756
  });
@@ -5763,16 +5763,16 @@ function repositionScrollStrategy(data2, props, scope) {
5763
5763
  function getTargetEl(target, contentEl) {
5764
5764
  return Array.isArray(target) ? document.elementsFromPoint(...target).find((el) => !(contentEl == null ? void 0 : contentEl.contains(el))) : target ?? contentEl;
5765
5765
  }
5766
- function bindScroll(el, onScroll) {
5766
+ function bindScroll(el, onScroll2) {
5767
5767
  const scrollElements = [document, ...getScrollParents(el)];
5768
5768
  scrollElements.forEach((el2) => {
5769
- el2.addEventListener("scroll", onScroll, {
5769
+ el2.addEventListener("scroll", onScroll2, {
5770
5770
  passive: true
5771
5771
  });
5772
5772
  });
5773
5773
  onScopeDispose(() => {
5774
5774
  scrollElements.forEach((el2) => {
5775
- el2.removeEventListener("scroll", onScroll);
5775
+ el2.removeEventListener("scroll", onScroll2);
5776
5776
  });
5777
5777
  });
5778
5778
  }
@@ -7508,13 +7508,13 @@ function useValidation(props) {
7508
7508
  let value2 = (props.validateOn ?? ((_a = form.validateOn) == null ? void 0 : _a.value)) || "input";
7509
7509
  if (value2 === "lazy") value2 = "input lazy";
7510
7510
  if (value2 === "eager") value2 = "input eager";
7511
- const set = new Set((value2 == null ? void 0 : value2.split(" ")) ?? []);
7511
+ const set2 = new Set((value2 == null ? void 0 : value2.split(" ")) ?? []);
7512
7512
  return {
7513
- input: set.has("input"),
7514
- blur: set.has("blur") || set.has("input") || set.has("invalid-input"),
7515
- invalidInput: set.has("invalid-input"),
7516
- lazy: set.has("lazy"),
7517
- eager: set.has("eager")
7513
+ input: set2.has("input"),
7514
+ blur: set2.has("blur") || set2.has("input") || set2.has("invalid-input"),
7515
+ invalidInput: set2.has("invalid-input"),
7516
+ lazy: set2.has("lazy"),
7517
+ eager: set2.has("eager")
7518
7518
  };
7519
7519
  });
7520
7520
  const isValid = computed(() => {
@@ -8163,7 +8163,7 @@ const VSlideGroup = genericComponent()({
8163
8163
  goTo(newPosition, goToOptions.value);
8164
8164
  }
8165
8165
  }
8166
- function onScroll(e) {
8166
+ function onScroll2(e) {
8167
8167
  const {
8168
8168
  scrollTop,
8169
8169
  scrollLeft
@@ -8325,7 +8325,7 @@ const VSlideGroup = genericComponent()({
8325
8325
  "key": "container",
8326
8326
  "ref": containerRef,
8327
8327
  "class": normalizeClass(["v-slide-group__container", props.contentClass]),
8328
- "onScroll": onScroll
8328
+ "onScroll": onScroll2
8329
8329
  }, [createElementVNode("div", {
8330
8330
  "ref": contentRef,
8331
8331
  "class": "v-slide-group__content",
@@ -8837,19 +8837,19 @@ const independentActiveStrategy = (mandatory) => {
8837
8837
  return activated;
8838
8838
  },
8839
8839
  in: (v, children, parents) => {
8840
- let set = /* @__PURE__ */ new Set();
8840
+ let set2 = /* @__PURE__ */ new Set();
8841
8841
  if (v != null) {
8842
8842
  for (const id of wrapInArray(v)) {
8843
- set = strategy.activate({
8843
+ set2 = strategy.activate({
8844
8844
  id,
8845
8845
  value: true,
8846
- activated: new Set(set),
8846
+ activated: new Set(set2),
8847
8847
  children,
8848
8848
  parents
8849
8849
  });
8850
8850
  }
8851
8851
  }
8852
- return set;
8852
+ return set2;
8853
8853
  },
8854
8854
  out: (v) => {
8855
8855
  return Array.from(v);
@@ -8875,14 +8875,14 @@ const independentSingleActiveStrategy = (mandatory) => {
8875
8875
  });
8876
8876
  },
8877
8877
  in: (v, children, parents) => {
8878
- let set = /* @__PURE__ */ new Set();
8878
+ let set2 = /* @__PURE__ */ new Set();
8879
8879
  if (v != null) {
8880
8880
  const arr = wrapInArray(v);
8881
8881
  if (arr.length) {
8882
- set = parentStrategy.in(arr.slice(0, 1), children, parents);
8882
+ set2 = parentStrategy.in(arr.slice(0, 1), children, parents);
8883
8883
  }
8884
8884
  }
8885
- return set;
8885
+ return set2;
8886
8886
  },
8887
8887
  out: (v, children, parents) => {
8888
8888
  return parentStrategy.out(v, children, parents);
@@ -12163,11 +12163,11 @@ function useFilter(props, items, query, options) {
12163
12163
  results.forEach((_ref) => {
12164
12164
  let {
12165
12165
  index: index2,
12166
- matches
12166
+ matches: matches2
12167
12167
  } = _ref;
12168
12168
  const item = originalItems[index2];
12169
12169
  _filteredItems.push(item);
12170
- _filteredMatches.set(item.value, matches);
12170
+ _filteredMatches.set(item.value, matches2);
12171
12171
  });
12172
12172
  filteredItems.value = _filteredItems;
12173
12173
  filteredMatches.value = _filteredMatches;
@@ -12181,16 +12181,16 @@ function useFilter(props, items, query, options) {
12181
12181
  getMatches
12182
12182
  };
12183
12183
  }
12184
- function highlightResult(name2, text2, matches) {
12185
- if (matches == null || !matches.length) return text2;
12186
- return matches.map((match, i) => {
12187
- const start = i === 0 ? 0 : matches[i - 1][1];
12184
+ function highlightResult(name2, text2, matches2) {
12185
+ if (matches2 == null || !matches2.length) return text2;
12186
+ return matches2.map((match, i) => {
12187
+ const start = i === 0 ? 0 : matches2[i - 1][1];
12188
12188
  const result = [createElementVNode("span", {
12189
12189
  "class": normalizeClass(`${name2}__unmask`)
12190
12190
  }, [text2.slice(start, match[0])]), createElementVNode("span", {
12191
12191
  "class": normalizeClass(`${name2}__mask`)
12192
12192
  }, [text2.slice(match[0], match[1])])];
12193
- if (i === matches.length - 1) {
12193
+ if (i === matches2.length - 1) {
12194
12194
  result.push(createElementVNode("span", {
12195
12195
  "class": normalizeClass(`${name2}__unmask`)
12196
12196
  }, [text2.slice(match[1])]));
@@ -12455,11 +12455,11 @@ const VSelect = genericComponent()({
12455
12455
  }
12456
12456
  }
12457
12457
  function select(item) {
12458
- let set = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
12458
+ let set2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
12459
12459
  if (item.props.disabled) return;
12460
12460
  if (props.multiple) {
12461
12461
  const index2 = model.value.findIndex((selection) => (props.valueComparator || deepEqual)(selection.value, item.value));
12462
- const add2 = set == null ? !~index2 : set;
12462
+ const add2 = set2 == null ? !~index2 : set2;
12463
12463
  if (~index2) {
12464
12464
  const value2 = add2 ? [...model.value, item] : [...model.value];
12465
12465
  value2.splice(index2, 1);
@@ -12468,7 +12468,7 @@ const VSelect = genericComponent()({
12468
12468
  model.value = [...model.value, item];
12469
12469
  }
12470
12470
  } else {
12471
- const add2 = set !== false;
12471
+ const add2 = set2 !== false;
12472
12472
  model.value = add2 ? [item] : [];
12473
12473
  nextTick(() => {
12474
12474
  menu.value = false;
@@ -13055,11 +13055,11 @@ const VAutocomplete = genericComponent()({
13055
13055
  }
13056
13056
  const isSelecting = shallowRef(false);
13057
13057
  function select(item) {
13058
- let set = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
13058
+ let set2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
13059
13059
  if (!item || item.props.disabled) return;
13060
13060
  if (props.multiple) {
13061
13061
  const index2 = model.value.findIndex((selection) => (props.valueComparator || deepEqual)(selection.value, item.value));
13062
- const add2 = set == null ? !~index2 : set;
13062
+ const add2 = set2 == null ? !~index2 : set2;
13063
13063
  if (~index2) {
13064
13064
  const value2 = add2 ? [...model.value, item] : [...model.value];
13065
13065
  value2.splice(index2, 1);
@@ -13071,7 +13071,7 @@ const VAutocomplete = genericComponent()({
13071
13071
  search.value = "";
13072
13072
  }
13073
13073
  } else {
13074
- const add2 = set !== false;
13074
+ const add2 = set2 !== false;
13075
13075
  model.value = add2 ? [item] : [];
13076
13076
  _searchLock.value = isPristine.value ? "" : search.value ?? "";
13077
13077
  search.value = add2 && !hasSelectionSlot.value ? item.title : "";
@@ -14393,18 +14393,18 @@ function jalCal(jy, withoutLeap) {
14393
14393
  jump = jm - jp;
14394
14394
  if (jy < jm)
14395
14395
  break;
14396
- leapJ = leapJ + div(jump, 33) * 8 + div(mod(jump, 33), 4);
14396
+ leapJ = leapJ + div$1(jump, 33) * 8 + div$1(mod(jump, 33), 4);
14397
14397
  jp = jm;
14398
14398
  }
14399
14399
  n = jy - jp;
14400
- leapJ = leapJ + div(n, 33) * 8 + div(mod(n, 33) + 3, 4);
14400
+ leapJ = leapJ + div$1(n, 33) * 8 + div$1(mod(n, 33) + 3, 4);
14401
14401
  if (mod(jump, 33) === 4 && jump - n === 4)
14402
14402
  leapJ += 1;
14403
- leapG = div(gy, 4) - div((div(gy, 100) + 1) * 3, 4) - 150;
14403
+ leapG = div$1(gy, 4) - div$1((div$1(gy, 100) + 1) * 3, 4) - 150;
14404
14404
  march = 20 + leapJ - leapG;
14405
14405
  if (withoutLeap) return { gy, march };
14406
14406
  if (jump - n < 6)
14407
- n = n - jump + div(jump + 4, 33) * 33;
14407
+ n = n - jump + div$1(jump + 4, 33) * 33;
14408
14408
  leap = mod(mod(n + 1, 33) - 1, 4);
14409
14409
  if (leap === -1) {
14410
14410
  leap = 4;
@@ -14417,14 +14417,14 @@ function jalCal(jy, withoutLeap) {
14417
14417
  }
14418
14418
  function j2d(jy, jm, jd) {
14419
14419
  var r = jalCal(jy, true);
14420
- return g2d(r.gy, 3, r.march) + (jm - 1) * 31 - div(jm, 7) * (jm - 7) + jd - 1;
14420
+ return g2d(r.gy, 3, r.march) + (jm - 1) * 31 - div$1(jm, 7) * (jm - 7) + jd - 1;
14421
14421
  }
14422
14422
  function d2j(jdn) {
14423
14423
  var gy = d2g(jdn).gy, jy = gy - 621, r = jalCal(jy, false), jdn1f = g2d(gy, 3, r.march), jd, jm, k;
14424
14424
  k = jdn - jdn1f;
14425
14425
  if (k >= 0) {
14426
14426
  if (k <= 185) {
14427
- jm = 1 + div(k, 31);
14427
+ jm = 1 + div$1(k, 31);
14428
14428
  jd = mod(k, 31) + 1;
14429
14429
  return {
14430
14430
  jy,
@@ -14440,7 +14440,7 @@ function d2j(jdn) {
14440
14440
  if (r.leap === 1)
14441
14441
  k += 1;
14442
14442
  }
14443
- jm = 7 + div(k, 30);
14443
+ jm = 7 + div$1(k, 30);
14444
14444
  jd = mod(k, 30) + 1;
14445
14445
  return {
14446
14446
  jy,
@@ -14449,25 +14449,25 @@ function d2j(jdn) {
14449
14449
  };
14450
14450
  }
14451
14451
  function g2d(gy, gm, gd) {
14452
- var d = div((gy + div(gm - 8, 6) + 100100) * 1461, 4) + div(153 * mod(gm + 9, 12) + 2, 5) + gd - 34840408;
14453
- d = d - div(div(gy + 100100 + div(gm - 8, 6), 100) * 3, 4) + 752;
14452
+ var d = div$1((gy + div$1(gm - 8, 6) + 100100) * 1461, 4) + div$1(153 * mod(gm + 9, 12) + 2, 5) + gd - 34840408;
14453
+ d = d - div$1(div$1(gy + 100100 + div$1(gm - 8, 6), 100) * 3, 4) + 752;
14454
14454
  return d;
14455
14455
  }
14456
14456
  function d2g(jdn) {
14457
14457
  var j, i, gd, gm, gy;
14458
14458
  j = 4 * jdn + 139361631;
14459
- j = j + div(div(4 * jdn + 183187720, 146097) * 3, 4) * 4 - 3908;
14460
- i = div(mod(j, 1461), 4) * 5 + 308;
14461
- gd = div(mod(i, 153), 5) + 1;
14462
- gm = mod(div(i, 153), 12) + 1;
14463
- gy = div(j, 1461) - 100100 + div(8 - gm, 6);
14459
+ j = j + div$1(div$1(4 * jdn + 183187720, 146097) * 3, 4) * 4 - 3908;
14460
+ i = div$1(mod(j, 1461), 4) * 5 + 308;
14461
+ gd = div$1(mod(i, 153), 5) + 1;
14462
+ gm = mod(div$1(i, 153), 12) + 1;
14463
+ gy = div$1(j, 1461) - 100100 + div$1(8 - gm, 6);
14464
14464
  return {
14465
14465
  gy,
14466
14466
  gm,
14467
14467
  gd
14468
14468
  };
14469
14469
  }
14470
- function div(a, b) {
14470
+ function div$1(a, b) {
14471
14471
  return ~~(a / b);
14472
14472
  }
14473
14473
  function mod(a, b) {
@@ -20671,7 +20671,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20671
20671
  createVNode(VDialog, {
20672
20672
  modelValue: filterDialog.value,
20673
20673
  "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => filterDialog.value = $event),
20674
- "max-width": "1500"
20674
+ "max-width": "1600",
20675
+ "content-class": "white-list-filter-dialog"
20675
20676
  }, {
20676
20677
  default: withCtx(() => [
20677
20678
  createVNode(VCard, null, {
@@ -20712,7 +20713,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20712
20713
  variant: "underlined",
20713
20714
  "hide-details": "",
20714
20715
  class: "mb-1",
20715
- attach: "",
20716
20716
  "menu-props": { zIndex: 2e4 }
20717
20717
  }, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : createCommentVNode("", true),
20718
20718
  isDateHeader(header) ? (openBlock(), createBlock(ShamsiDatePicker, {
@@ -20737,7 +20737,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20737
20737
  disabled: isHeaderDisabled(header),
20738
20738
  clearable: "",
20739
20739
  variant: "outlined",
20740
- attach: "",
20741
20740
  "menu-props": { zIndex: 2e4 }
20742
20741
  }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "items", "item-title", "item-value", "return-object", "multiple", "chips", "closable-chips", "disabled"])) : isMoneyHeader(header) ? (openBlock(), createBlock(_sfc_main$i, {
20743
20742
  key: 3,
@@ -23211,7 +23210,7 @@ var lottie = { exports: {} };
23211
23210
  }
23212
23211
  return null;
23213
23212
  }
23214
- function destroy() {
23213
+ function destroy2() {
23215
23214
  this.imagesLoadedCb = null;
23216
23215
  this.images.length = 0;
23217
23216
  }
@@ -23249,7 +23248,7 @@ var lottie = { exports: {} };
23249
23248
  setPath,
23250
23249
  loadedImages,
23251
23250
  loadedFootages,
23252
- destroy,
23251
+ destroy: destroy2,
23253
23252
  getAsset,
23254
23253
  createImgData,
23255
23254
  createImageData,
@@ -24191,7 +24190,7 @@ var lottie = { exports: {} };
24191
24190
  registeredAnimations[i].animation.togglePause(animation);
24192
24191
  }
24193
24192
  }
24194
- function destroy(animation) {
24193
+ function destroy2(animation) {
24195
24194
  var i;
24196
24195
  for (i = len - 1; i >= 0; i -= 1) {
24197
24196
  registeredAnimations[i].animation.destroy(animation);
@@ -24271,7 +24270,7 @@ var lottie = { exports: {} };
24271
24270
  moduleOb.searchAnimations = searchAnimations2;
24272
24271
  moduleOb.resize = resize;
24273
24272
  moduleOb.goToAndStop = goToAndStop;
24274
- moduleOb.destroy = destroy;
24273
+ moduleOb.destroy = destroy2;
24275
24274
  moduleOb.freeze = freeze;
24276
24275
  moduleOb.unfreeze = unfreeze;
24277
24276
  moduleOb.setVolume = setVolume;
@@ -24306,14 +24305,14 @@ var lottie = { exports: {} };
24306
24305
  function B(aA1, aA2) {
24307
24306
  return 3 * aA2 - 6 * aA1;
24308
24307
  }
24309
- function C(aA1) {
24308
+ function C2(aA1) {
24310
24309
  return 3 * aA1;
24311
24310
  }
24312
24311
  function calcBezier(aT, aA1, aA2) {
24313
- return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;
24312
+ return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C2(aA1)) * aT;
24314
24313
  }
24315
24314
  function getSlope(aT, aA1, aA2) {
24316
- return 3 * A(aA1, aA2) * aT * aT + 2 * B(aA1, aA2) * aT + C(aA1);
24315
+ return 3 * A(aA1, aA2) * aT * aT + 2 * B(aA1, aA2) * aT + C2(aA1);
24317
24316
  }
24318
24317
  function binarySubdivide(aX, aA, aB, mX1, mX2) {
24319
24318
  var currentX, currentT, i = 0;
@@ -24344,7 +24343,7 @@ var lottie = { exports: {} };
24344
24343
  this.get = this.get.bind(this);
24345
24344
  }
24346
24345
  BezierEasing.prototype = {
24347
- get: function get(x) {
24346
+ get: function get2(x) {
24348
24347
  var mX1 = this._p[0], mY1 = this._p[1], mX2 = this._p[2], mY2 = this._p[3];
24349
24348
  if (!this._precomputed) this._precompute();
24350
24349
  if (mX1 === mY1 && mX2 === mY2) return x;
@@ -29491,7 +29490,7 @@ var lottie = { exports: {} };
29491
29490
  this.prepareProperties(num, this.isInRange);
29492
29491
  this.checkTransparency();
29493
29492
  },
29494
- destroy: function destroy() {
29493
+ destroy: function destroy2() {
29495
29494
  this.innerElem = null;
29496
29495
  this.destroyBaseElement();
29497
29496
  }
@@ -32756,7 +32755,7 @@ var lottie = { exports: {} };
32756
32755
  this._isFirstFrame = false;
32757
32756
  }
32758
32757
  },
32759
- destroy: function destroy() {
32758
+ destroy: function destroy2() {
32760
32759
  this.canvasContext = null;
32761
32760
  this.data = null;
32762
32761
  this.globalData = null;
@@ -34102,7 +34101,7 @@ var lottie = { exports: {} };
34102
34101
  this._isFirstFrame = false;
34103
34102
  }
34104
34103
  },
34105
- destroy: function destroy() {
34104
+ destroy: function destroy2() {
34106
34105
  this.layerElement = null;
34107
34106
  this.transformedElement = null;
34108
34107
  if (this.matteElement) {
@@ -35678,7 +35677,7 @@ var lottie = { exports: {} };
35678
35677
  var thisProperty = property;
35679
35678
  thisProperty.valueAtTime = thisProperty.getValueAtTime;
35680
35679
  Object.defineProperty(thisProperty, "value", {
35681
- get: function get() {
35680
+ get: function get2() {
35682
35681
  return thisProperty.v;
35683
35682
  }
35684
35683
  });
@@ -36019,7 +36018,7 @@ var lottie = { exports: {} };
36019
36018
  this._data = data2;
36020
36019
  }
36021
36020
  Object.defineProperty(MaskInterface.prototype, "maskPath", {
36022
- get: function get() {
36021
+ get: function get2() {
36023
36022
  if (this._mask.prop.k) {
36024
36023
  this._mask.prop.getValue();
36025
36024
  }
@@ -36027,7 +36026,7 @@ var lottie = { exports: {} };
36027
36026
  }
36028
36027
  });
36029
36028
  Object.defineProperty(MaskInterface.prototype, "maskOpacity", {
36030
- get: function get() {
36029
+ get: function get2() {
36031
36030
  if (this._mask.op.k) {
36032
36031
  this._mask.op.getValue();
36033
36032
  }
@@ -36068,7 +36067,7 @@ var lottie = { exports: {} };
36068
36067
  };
36069
36068
  function completeProperty(expressionValue, property2, type) {
36070
36069
  Object.defineProperty(expressionValue, "velocity", {
36071
- get: function get() {
36070
+ get: function get2() {
36072
36071
  return property2.getVelocityAtTime(property2.comp.currentFrame);
36073
36072
  }
36074
36073
  });
@@ -36224,7 +36223,7 @@ var lottie = { exports: {} };
36224
36223
  }
36225
36224
  }
36226
36225
  Object.defineProperty(_thisFunction, "position", {
36227
- get: function get() {
36226
+ get: function get2() {
36228
36227
  if (transform2.p) {
36229
36228
  return _transformFactory();
36230
36229
  }
@@ -36376,12 +36375,12 @@ var lottie = { exports: {} };
36376
36375
  var anchorPointDescriptor = getDescriptor(transformInterface, "anchorPoint");
36377
36376
  Object.defineProperties(_thisLayerFunction, {
36378
36377
  hasParent: {
36379
- get: function get() {
36378
+ get: function get2() {
36380
36379
  return elem2.hierarchy.length;
36381
36380
  }
36382
36381
  },
36383
36382
  parent: {
36384
- get: function get() {
36383
+ get: function get2() {
36385
36384
  return elem2.hierarchy[0].layerInterface;
36386
36385
  }
36387
36386
  },
@@ -36392,12 +36391,12 @@ var lottie = { exports: {} };
36392
36391
  anchorPoint: anchorPointDescriptor,
36393
36392
  anchor_point: anchorPointDescriptor,
36394
36393
  transform: {
36395
- get: function get() {
36394
+ get: function get2() {
36396
36395
  return transformInterface;
36397
36396
  }
36398
36397
  },
36399
36398
  active: {
36400
- get: function get() {
36399
+ get: function get2() {
36401
36400
  return elem2.isInRange;
36402
36401
  }
36403
36402
  }
@@ -36467,7 +36466,7 @@ var lottie = { exports: {} };
36467
36466
  return null;
36468
36467
  };
36469
36468
  Object.defineProperty(groupInterface, "numProperties", {
36470
- get: function get() {
36469
+ get: function get2() {
36471
36470
  return effects.length;
36472
36471
  }
36473
36472
  });
@@ -36504,14 +36503,14 @@ var lottie = { exports: {} };
36504
36503
  }
36505
36504
  if (data2.mn === "ADBE Color Control") {
36506
36505
  Object.defineProperty(groupInterface, "color", {
36507
- get: function get() {
36506
+ get: function get2() {
36508
36507
  return effectElements[0]();
36509
36508
  }
36510
36509
  });
36511
36510
  }
36512
36511
  Object.defineProperties(groupInterface, {
36513
36512
  numProperties: {
36514
- get: function get() {
36513
+ get: function get2() {
36515
36514
  return data2.np;
36516
36515
  }
36517
36516
  },
@@ -36554,7 +36553,7 @@ var lottie = { exports: {} };
36554
36553
  prop.setGroupProperty(PropertyInterface("Path", _propertyGroup));
36555
36554
  Object.defineProperties(interfaceFunction, {
36556
36555
  path: {
36557
- get: function get() {
36556
+ get: function get2() {
36558
36557
  if (prop.k) {
36559
36558
  prop.getValue();
36560
36559
  }
@@ -36562,7 +36561,7 @@ var lottie = { exports: {} };
36562
36561
  }
36563
36562
  },
36564
36563
  shape: {
36565
- get: function get() {
36564
+ get: function get2() {
36566
36565
  if (prop.k) {
36567
36566
  prop.getValue();
36568
36567
  }
@@ -36665,7 +36664,7 @@ var lottie = { exports: {} };
36665
36664
  interfaceFunction.content = content2;
36666
36665
  interfaceFunction.transform = transformInterface;
36667
36666
  Object.defineProperty(interfaceFunction, "_name", {
36668
- get: function get() {
36667
+ get: function get2() {
36669
36668
  return shape.nm;
36670
36669
  }
36671
36670
  });
@@ -36727,7 +36726,7 @@ var lottie = { exports: {} };
36727
36726
  get: ExpressionPropertyInterface(view.o)
36728
36727
  },
36729
36728
  type: {
36730
- get: function get() {
36729
+ get: function get2() {
36731
36730
  return "a";
36732
36731
  }
36733
36732
  },
@@ -36787,7 +36786,7 @@ var lottie = { exports: {} };
36787
36786
  get: ExpressionPropertyInterface(view.w)
36788
36787
  },
36789
36788
  dash: {
36790
- get: function get() {
36789
+ get: function get2() {
36791
36790
  return dashOb;
36792
36791
  }
36793
36792
  },
@@ -37131,14 +37130,14 @@ var lottie = { exports: {} };
37131
37130
  }
37132
37131
  }
37133
37132
  Object.defineProperty(_thisLayerFunction, "sourceText", {
37134
- get: function get() {
37133
+ get: function get2() {
37135
37134
  elem2.textProperty.getValue();
37136
37135
  var stringValue = elem2.textProperty.currentData.t;
37137
37136
  if (!_sourceText || stringValue !== _sourceText.value) {
37138
37137
  _sourceText = new String(stringValue);
37139
37138
  _sourceText.value = stringValue || new String(stringValue);
37140
37139
  Object.defineProperty(_sourceText, "style", {
37141
- get: function get2() {
37140
+ get: function get3() {
37142
37141
  return {
37143
37142
  fillColor: elem2.textProperty.currentData.fc
37144
37143
  };
@@ -38653,7 +38652,7 @@ const _sfc_main$7 = defineComponent$1({
38653
38652
  lottieAnimation.stop();
38654
38653
  }
38655
38654
  };
38656
- const destroy = () => {
38655
+ const destroy2 = () => {
38657
38656
  if (lottieAnimation) {
38658
38657
  lottieAnimation.destroy();
38659
38658
  }
@@ -38713,7 +38712,7 @@ const _sfc_main$7 = defineComponent$1({
38713
38712
  play,
38714
38713
  pause,
38715
38714
  stop,
38716
- destroy,
38715
+ destroy: destroy2,
38717
38716
  setSpeed,
38718
38717
  setDirection,
38719
38718
  goToAndStop,
@@ -38976,6 +38975,1095 @@ const _sfc_main$3 = {
38976
38975
  };
38977
38976
  }
38978
38977
  };
38978
+ /*!
38979
+ * perfect-scrollbar v1.5.6
38980
+ * Copyright 2024 Hyunje Jun, MDBootstrap and Contributors
38981
+ * Licensed under MIT
38982
+ */
38983
+ function get(element) {
38984
+ return getComputedStyle(element);
38985
+ }
38986
+ function set(element, obj) {
38987
+ for (var key2 in obj) {
38988
+ var val2 = obj[key2];
38989
+ if (typeof val2 === "number") {
38990
+ val2 = val2 + "px";
38991
+ }
38992
+ element.style[key2] = val2;
38993
+ }
38994
+ return element;
38995
+ }
38996
+ function div(className) {
38997
+ var div2 = document.createElement("div");
38998
+ div2.className = className;
38999
+ return div2;
39000
+ }
39001
+ var elMatches = typeof Element !== "undefined" && (Element.prototype.matches || Element.prototype.webkitMatchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector);
39002
+ function matches(element, query) {
39003
+ if (!elMatches) {
39004
+ throw new Error("No element matching method supported");
39005
+ }
39006
+ return elMatches.call(element, query);
39007
+ }
39008
+ function remove(element) {
39009
+ if (element.remove) {
39010
+ element.remove();
39011
+ } else {
39012
+ if (element.parentNode) {
39013
+ element.parentNode.removeChild(element);
39014
+ }
39015
+ }
39016
+ }
39017
+ function queryChildren(element, selector) {
39018
+ return Array.prototype.filter.call(
39019
+ element.children,
39020
+ function(child) {
39021
+ return matches(child, selector);
39022
+ }
39023
+ );
39024
+ }
39025
+ var cls = {
39026
+ main: "ps",
39027
+ rtl: "ps__rtl",
39028
+ element: {
39029
+ thumb: function(x) {
39030
+ return "ps__thumb-" + x;
39031
+ },
39032
+ rail: function(x) {
39033
+ return "ps__rail-" + x;
39034
+ },
39035
+ consuming: "ps__child--consume"
39036
+ },
39037
+ state: {
39038
+ focus: "ps--focus",
39039
+ clicking: "ps--clicking",
39040
+ active: function(x) {
39041
+ return "ps--active-" + x;
39042
+ },
39043
+ scrolling: function(x) {
39044
+ return "ps--scrolling-" + x;
39045
+ }
39046
+ }
39047
+ };
39048
+ var scrollingClassTimeout = { x: null, y: null };
39049
+ function addScrollingClass(i, x) {
39050
+ var classList = i.element.classList;
39051
+ var className = cls.state.scrolling(x);
39052
+ if (classList.contains(className)) {
39053
+ clearTimeout(scrollingClassTimeout[x]);
39054
+ } else {
39055
+ classList.add(className);
39056
+ }
39057
+ }
39058
+ function removeScrollingClass(i, x) {
39059
+ scrollingClassTimeout[x] = setTimeout(
39060
+ function() {
39061
+ return i.isAlive && i.element.classList.remove(cls.state.scrolling(x));
39062
+ },
39063
+ i.settings.scrollingThreshold
39064
+ );
39065
+ }
39066
+ function setScrollingClassInstantly(i, x) {
39067
+ addScrollingClass(i, x);
39068
+ removeScrollingClass(i, x);
39069
+ }
39070
+ var EventElement = function EventElement2(element) {
39071
+ this.element = element;
39072
+ this.handlers = {};
39073
+ };
39074
+ var prototypeAccessors = { isEmpty: { configurable: true } };
39075
+ EventElement.prototype.bind = function bind(eventName2, handler) {
39076
+ if (typeof this.handlers[eventName2] === "undefined") {
39077
+ this.handlers[eventName2] = [];
39078
+ }
39079
+ this.handlers[eventName2].push(handler);
39080
+ this.element.addEventListener(eventName2, handler, false);
39081
+ };
39082
+ EventElement.prototype.unbind = function unbind(eventName2, target) {
39083
+ var this$1$1 = this;
39084
+ this.handlers[eventName2] = this.handlers[eventName2].filter(function(handler) {
39085
+ if (target && handler !== target) {
39086
+ return true;
39087
+ }
39088
+ this$1$1.element.removeEventListener(eventName2, handler, false);
39089
+ return false;
39090
+ });
39091
+ };
39092
+ EventElement.prototype.unbindAll = function unbindAll() {
39093
+ for (var name2 in this.handlers) {
39094
+ this.unbind(name2);
39095
+ }
39096
+ };
39097
+ prototypeAccessors.isEmpty.get = function() {
39098
+ var this$1$1 = this;
39099
+ return Object.keys(this.handlers).every(
39100
+ function(key2) {
39101
+ return this$1$1.handlers[key2].length === 0;
39102
+ }
39103
+ );
39104
+ };
39105
+ Object.defineProperties(EventElement.prototype, prototypeAccessors);
39106
+ var EventManager = function EventManager2() {
39107
+ this.eventElements = [];
39108
+ };
39109
+ EventManager.prototype.eventElement = function eventElement(element) {
39110
+ var ee = this.eventElements.filter(function(ee2) {
39111
+ return ee2.element === element;
39112
+ })[0];
39113
+ if (!ee) {
39114
+ ee = new EventElement(element);
39115
+ this.eventElements.push(ee);
39116
+ }
39117
+ return ee;
39118
+ };
39119
+ EventManager.prototype.bind = function bind2(element, eventName2, handler) {
39120
+ this.eventElement(element).bind(eventName2, handler);
39121
+ };
39122
+ EventManager.prototype.unbind = function unbind2(element, eventName2, handler) {
39123
+ var ee = this.eventElement(element);
39124
+ ee.unbind(eventName2, handler);
39125
+ if (ee.isEmpty) {
39126
+ this.eventElements.splice(this.eventElements.indexOf(ee), 1);
39127
+ }
39128
+ };
39129
+ EventManager.prototype.unbindAll = function unbindAll2() {
39130
+ this.eventElements.forEach(function(e) {
39131
+ return e.unbindAll();
39132
+ });
39133
+ this.eventElements = [];
39134
+ };
39135
+ EventManager.prototype.once = function once(element, eventName2, handler) {
39136
+ var ee = this.eventElement(element);
39137
+ var onceHandler = function(evt) {
39138
+ ee.unbind(eventName2, onceHandler);
39139
+ handler(evt);
39140
+ };
39141
+ ee.bind(eventName2, onceHandler);
39142
+ };
39143
+ function createEvent(name2) {
39144
+ if (typeof window.CustomEvent === "function") {
39145
+ return new CustomEvent(name2);
39146
+ }
39147
+ var evt = document.createEvent("CustomEvent");
39148
+ evt.initCustomEvent(name2, false, false, void 0);
39149
+ return evt;
39150
+ }
39151
+ function processScrollDiff(i, axis, diff, useScrollingClass, forceFireReachEvent) {
39152
+ if (useScrollingClass === void 0) useScrollingClass = true;
39153
+ if (forceFireReachEvent === void 0) forceFireReachEvent = false;
39154
+ var fields;
39155
+ if (axis === "top") {
39156
+ fields = ["contentHeight", "containerHeight", "scrollTop", "y", "up", "down"];
39157
+ } else if (axis === "left") {
39158
+ fields = ["contentWidth", "containerWidth", "scrollLeft", "x", "left", "right"];
39159
+ } else {
39160
+ throw new Error("A proper axis should be provided");
39161
+ }
39162
+ processScrollDiff$1(i, diff, fields, useScrollingClass, forceFireReachEvent);
39163
+ }
39164
+ function processScrollDiff$1(i, diff, ref2, useScrollingClass, forceFireReachEvent) {
39165
+ var contentHeight = ref2[0];
39166
+ var containerHeight = ref2[1];
39167
+ var scrollTop = ref2[2];
39168
+ var y = ref2[3];
39169
+ var up = ref2[4];
39170
+ var down = ref2[5];
39171
+ if (useScrollingClass === void 0) useScrollingClass = true;
39172
+ if (forceFireReachEvent === void 0) forceFireReachEvent = false;
39173
+ var element = i.element;
39174
+ i.reach[y] = null;
39175
+ if (element[scrollTop] < 1) {
39176
+ i.reach[y] = "start";
39177
+ }
39178
+ if (element[scrollTop] > i[contentHeight] - i[containerHeight] - 1) {
39179
+ i.reach[y] = "end";
39180
+ }
39181
+ if (diff) {
39182
+ element.dispatchEvent(createEvent("ps-scroll-" + y));
39183
+ if (diff < 0) {
39184
+ element.dispatchEvent(createEvent("ps-scroll-" + up));
39185
+ } else if (diff > 0) {
39186
+ element.dispatchEvent(createEvent("ps-scroll-" + down));
39187
+ }
39188
+ if (useScrollingClass) {
39189
+ setScrollingClassInstantly(i, y);
39190
+ }
39191
+ }
39192
+ if (i.reach[y] && (diff || forceFireReachEvent)) {
39193
+ element.dispatchEvent(createEvent("ps-" + y + "-reach-" + i.reach[y]));
39194
+ }
39195
+ }
39196
+ function toInt(x) {
39197
+ return parseInt(x, 10) || 0;
39198
+ }
39199
+ function isEditable(el) {
39200
+ return matches(el, "input,[contenteditable]") || matches(el, "select,[contenteditable]") || matches(el, "textarea,[contenteditable]") || matches(el, "button,[contenteditable]");
39201
+ }
39202
+ function outerWidth(element) {
39203
+ var styles = get(element);
39204
+ return toInt(styles.width) + toInt(styles.paddingLeft) + toInt(styles.paddingRight) + toInt(styles.borderLeftWidth) + toInt(styles.borderRightWidth);
39205
+ }
39206
+ var env = {
39207
+ isWebKit: typeof document !== "undefined" && "WebkitAppearance" in document.documentElement.style,
39208
+ supportsTouch: typeof window !== "undefined" && ("ontouchstart" in window || "maxTouchPoints" in window.navigator && window.navigator.maxTouchPoints > 0 || window.DocumentTouch && document instanceof window.DocumentTouch),
39209
+ supportsIePointer: typeof navigator !== "undefined" && navigator.msMaxTouchPoints,
39210
+ isChrome: typeof navigator !== "undefined" && /Chrome/i.test(navigator && navigator.userAgent)
39211
+ };
39212
+ function updateGeometry(i) {
39213
+ var element = i.element;
39214
+ var roundedScrollTop = Math.floor(element.scrollTop);
39215
+ var rect = element.getBoundingClientRect();
39216
+ i.containerWidth = Math.floor(rect.width);
39217
+ i.containerHeight = Math.floor(rect.height);
39218
+ i.contentWidth = element.scrollWidth;
39219
+ i.contentHeight = element.scrollHeight;
39220
+ if (!element.contains(i.scrollbarXRail)) {
39221
+ queryChildren(element, cls.element.rail("x")).forEach(function(el) {
39222
+ return remove(el);
39223
+ });
39224
+ element.appendChild(i.scrollbarXRail);
39225
+ }
39226
+ if (!element.contains(i.scrollbarYRail)) {
39227
+ queryChildren(element, cls.element.rail("y")).forEach(function(el) {
39228
+ return remove(el);
39229
+ });
39230
+ element.appendChild(i.scrollbarYRail);
39231
+ }
39232
+ if (!i.settings.suppressScrollX && i.containerWidth + i.settings.scrollXMarginOffset < i.contentWidth) {
39233
+ i.scrollbarXActive = true;
39234
+ i.railXWidth = i.containerWidth - i.railXMarginWidth;
39235
+ i.railXRatio = i.containerWidth / i.railXWidth;
39236
+ i.scrollbarXWidth = getThumbSize(i, toInt(i.railXWidth * i.containerWidth / i.contentWidth));
39237
+ i.scrollbarXLeft = toInt(
39238
+ (i.negativeScrollAdjustment + element.scrollLeft) * (i.railXWidth - i.scrollbarXWidth) / (i.contentWidth - i.containerWidth)
39239
+ );
39240
+ } else {
39241
+ i.scrollbarXActive = false;
39242
+ }
39243
+ if (!i.settings.suppressScrollY && i.containerHeight + i.settings.scrollYMarginOffset < i.contentHeight) {
39244
+ i.scrollbarYActive = true;
39245
+ i.railYHeight = i.containerHeight - i.railYMarginHeight;
39246
+ i.railYRatio = i.containerHeight / i.railYHeight;
39247
+ i.scrollbarYHeight = getThumbSize(
39248
+ i,
39249
+ toInt(i.railYHeight * i.containerHeight / i.contentHeight)
39250
+ );
39251
+ i.scrollbarYTop = toInt(
39252
+ roundedScrollTop * (i.railYHeight - i.scrollbarYHeight) / (i.contentHeight - i.containerHeight)
39253
+ );
39254
+ } else {
39255
+ i.scrollbarYActive = false;
39256
+ }
39257
+ if (i.scrollbarXLeft >= i.railXWidth - i.scrollbarXWidth) {
39258
+ i.scrollbarXLeft = i.railXWidth - i.scrollbarXWidth;
39259
+ }
39260
+ if (i.scrollbarYTop >= i.railYHeight - i.scrollbarYHeight) {
39261
+ i.scrollbarYTop = i.railYHeight - i.scrollbarYHeight;
39262
+ }
39263
+ updateCss(element, i);
39264
+ if (i.scrollbarXActive) {
39265
+ element.classList.add(cls.state.active("x"));
39266
+ } else {
39267
+ element.classList.remove(cls.state.active("x"));
39268
+ i.scrollbarXWidth = 0;
39269
+ i.scrollbarXLeft = 0;
39270
+ element.scrollLeft = i.isRtl === true ? i.contentWidth : 0;
39271
+ }
39272
+ if (i.scrollbarYActive) {
39273
+ element.classList.add(cls.state.active("y"));
39274
+ } else {
39275
+ element.classList.remove(cls.state.active("y"));
39276
+ i.scrollbarYHeight = 0;
39277
+ i.scrollbarYTop = 0;
39278
+ element.scrollTop = 0;
39279
+ }
39280
+ }
39281
+ function getThumbSize(i, thumbSize) {
39282
+ if (i.settings.minScrollbarLength) {
39283
+ thumbSize = Math.max(thumbSize, i.settings.minScrollbarLength);
39284
+ }
39285
+ if (i.settings.maxScrollbarLength) {
39286
+ thumbSize = Math.min(thumbSize, i.settings.maxScrollbarLength);
39287
+ }
39288
+ return thumbSize;
39289
+ }
39290
+ function updateCss(element, i) {
39291
+ var xRailOffset = { width: i.railXWidth };
39292
+ var roundedScrollTop = Math.floor(element.scrollTop);
39293
+ if (i.isRtl) {
39294
+ xRailOffset.left = i.negativeScrollAdjustment + element.scrollLeft + i.containerWidth - i.contentWidth;
39295
+ } else {
39296
+ xRailOffset.left = element.scrollLeft;
39297
+ }
39298
+ if (i.isScrollbarXUsingBottom) {
39299
+ xRailOffset.bottom = i.scrollbarXBottom - roundedScrollTop;
39300
+ } else {
39301
+ xRailOffset.top = i.scrollbarXTop + roundedScrollTop;
39302
+ }
39303
+ set(i.scrollbarXRail, xRailOffset);
39304
+ var yRailOffset = { top: roundedScrollTop, height: i.railYHeight };
39305
+ if (i.isScrollbarYUsingRight) {
39306
+ if (i.isRtl) {
39307
+ yRailOffset.right = i.contentWidth - (i.negativeScrollAdjustment + element.scrollLeft) - i.scrollbarYRight - i.scrollbarYOuterWidth - 9;
39308
+ } else {
39309
+ yRailOffset.right = i.scrollbarYRight - element.scrollLeft;
39310
+ }
39311
+ } else {
39312
+ if (i.isRtl) {
39313
+ yRailOffset.left = i.negativeScrollAdjustment + element.scrollLeft + i.containerWidth * 2 - i.contentWidth - i.scrollbarYLeft - i.scrollbarYOuterWidth;
39314
+ } else {
39315
+ yRailOffset.left = i.scrollbarYLeft + element.scrollLeft;
39316
+ }
39317
+ }
39318
+ set(i.scrollbarYRail, yRailOffset);
39319
+ set(i.scrollbarX, {
39320
+ left: i.scrollbarXLeft,
39321
+ width: i.scrollbarXWidth - i.railBorderXWidth
39322
+ });
39323
+ set(i.scrollbarY, {
39324
+ top: i.scrollbarYTop,
39325
+ height: i.scrollbarYHeight - i.railBorderYWidth
39326
+ });
39327
+ }
39328
+ function clickRail(i) {
39329
+ i.event.bind(i.scrollbarY, "mousedown", function(e) {
39330
+ return e.stopPropagation();
39331
+ });
39332
+ i.event.bind(i.scrollbarYRail, "mousedown", function(e) {
39333
+ var positionTop = e.pageY - window.pageYOffset - i.scrollbarYRail.getBoundingClientRect().top;
39334
+ var direction = positionTop > i.scrollbarYTop ? 1 : -1;
39335
+ i.element.scrollTop += direction * i.containerHeight;
39336
+ updateGeometry(i);
39337
+ e.stopPropagation();
39338
+ });
39339
+ i.event.bind(i.scrollbarX, "mousedown", function(e) {
39340
+ return e.stopPropagation();
39341
+ });
39342
+ i.event.bind(i.scrollbarXRail, "mousedown", function(e) {
39343
+ var positionLeft = e.pageX - window.pageXOffset - i.scrollbarXRail.getBoundingClientRect().left;
39344
+ var direction = positionLeft > i.scrollbarXLeft ? 1 : -1;
39345
+ i.element.scrollLeft += direction * i.containerWidth;
39346
+ updateGeometry(i);
39347
+ e.stopPropagation();
39348
+ });
39349
+ }
39350
+ var activeSlider = null;
39351
+ function setupScrollHandlers(i) {
39352
+ bindMouseScrollHandler(i, [
39353
+ "containerHeight",
39354
+ "contentHeight",
39355
+ "pageY",
39356
+ "railYHeight",
39357
+ "scrollbarY",
39358
+ "scrollbarYHeight",
39359
+ "scrollTop",
39360
+ "y",
39361
+ "scrollbarYRail"
39362
+ ]);
39363
+ bindMouseScrollHandler(i, [
39364
+ "containerWidth",
39365
+ "contentWidth",
39366
+ "pageX",
39367
+ "railXWidth",
39368
+ "scrollbarX",
39369
+ "scrollbarXWidth",
39370
+ "scrollLeft",
39371
+ "x",
39372
+ "scrollbarXRail"
39373
+ ]);
39374
+ }
39375
+ function bindMouseScrollHandler(i, ref2) {
39376
+ var containerDimension = ref2[0];
39377
+ var contentDimension = ref2[1];
39378
+ var pageAxis = ref2[2];
39379
+ var railDimension = ref2[3];
39380
+ var scrollbarAxis = ref2[4];
39381
+ var scrollbarDimension = ref2[5];
39382
+ var scrollAxis = ref2[6];
39383
+ var axis = ref2[7];
39384
+ var scrollbarRail = ref2[8];
39385
+ var element = i.element;
39386
+ var startingScrollPosition = null;
39387
+ var startingMousePagePosition = null;
39388
+ var scrollBy = null;
39389
+ function moveHandler(e) {
39390
+ if (e.touches && e.touches[0]) {
39391
+ e[pageAxis] = e.touches[0]["page" + axis.toUpperCase()];
39392
+ }
39393
+ if (activeSlider === scrollbarAxis) {
39394
+ element[scrollAxis] = startingScrollPosition + scrollBy * (e[pageAxis] - startingMousePagePosition);
39395
+ addScrollingClass(i, axis);
39396
+ updateGeometry(i);
39397
+ e.stopPropagation();
39398
+ e.preventDefault();
39399
+ }
39400
+ }
39401
+ function endHandler() {
39402
+ removeScrollingClass(i, axis);
39403
+ i[scrollbarRail].classList.remove(cls.state.clicking);
39404
+ document.removeEventListener("mousemove", moveHandler);
39405
+ document.removeEventListener("mouseup", endHandler);
39406
+ document.removeEventListener("touchmove", moveHandler);
39407
+ document.removeEventListener("touchend", endHandler);
39408
+ activeSlider = null;
39409
+ }
39410
+ function bindMoves(e) {
39411
+ if (activeSlider === null) {
39412
+ activeSlider = scrollbarAxis;
39413
+ startingScrollPosition = element[scrollAxis];
39414
+ if (e.touches) {
39415
+ e[pageAxis] = e.touches[0]["page" + axis.toUpperCase()];
39416
+ }
39417
+ startingMousePagePosition = e[pageAxis];
39418
+ scrollBy = (i[contentDimension] - i[containerDimension]) / (i[railDimension] - i[scrollbarDimension]);
39419
+ if (!e.touches) {
39420
+ document.addEventListener("mousemove", moveHandler);
39421
+ document.addEventListener("mouseup", endHandler);
39422
+ } else {
39423
+ document.addEventListener("touchmove", moveHandler, { passive: false });
39424
+ document.addEventListener("touchend", endHandler);
39425
+ }
39426
+ i[scrollbarRail].classList.add(cls.state.clicking);
39427
+ }
39428
+ e.stopPropagation();
39429
+ if (e.cancelable) {
39430
+ e.preventDefault();
39431
+ }
39432
+ }
39433
+ i[scrollbarAxis].addEventListener("mousedown", bindMoves);
39434
+ i[scrollbarAxis].addEventListener("touchstart", bindMoves);
39435
+ }
39436
+ function keyboard(i) {
39437
+ var element = i.element;
39438
+ var elementHovered = function() {
39439
+ return matches(element, ":hover");
39440
+ };
39441
+ var scrollbarFocused = function() {
39442
+ return matches(i.scrollbarX, ":focus") || matches(i.scrollbarY, ":focus");
39443
+ };
39444
+ function shouldPreventDefault(deltaX, deltaY) {
39445
+ var scrollTop = Math.floor(element.scrollTop);
39446
+ if (deltaX === 0) {
39447
+ if (!i.scrollbarYActive) {
39448
+ return false;
39449
+ }
39450
+ if (scrollTop === 0 && deltaY > 0 || scrollTop >= i.contentHeight - i.containerHeight && deltaY < 0) {
39451
+ return !i.settings.wheelPropagation;
39452
+ }
39453
+ }
39454
+ var scrollLeft = element.scrollLeft;
39455
+ if (deltaY === 0) {
39456
+ if (!i.scrollbarXActive) {
39457
+ return false;
39458
+ }
39459
+ if (scrollLeft === 0 && deltaX < 0 || scrollLeft >= i.contentWidth - i.containerWidth && deltaX > 0) {
39460
+ return !i.settings.wheelPropagation;
39461
+ }
39462
+ }
39463
+ return true;
39464
+ }
39465
+ i.event.bind(i.ownerDocument, "keydown", function(e) {
39466
+ if (e.isDefaultPrevented && e.isDefaultPrevented() || e.defaultPrevented) {
39467
+ return;
39468
+ }
39469
+ if (!elementHovered() && !scrollbarFocused()) {
39470
+ return;
39471
+ }
39472
+ var activeElement = document.activeElement ? document.activeElement : i.ownerDocument.activeElement;
39473
+ if (activeElement) {
39474
+ if (activeElement.tagName === "IFRAME") {
39475
+ activeElement = activeElement.contentDocument.activeElement;
39476
+ } else {
39477
+ while (activeElement.shadowRoot) {
39478
+ activeElement = activeElement.shadowRoot.activeElement;
39479
+ }
39480
+ }
39481
+ if (isEditable(activeElement)) {
39482
+ return;
39483
+ }
39484
+ }
39485
+ var deltaX = 0;
39486
+ var deltaY = 0;
39487
+ switch (e.which) {
39488
+ case 37:
39489
+ if (e.metaKey) {
39490
+ deltaX = -i.contentWidth;
39491
+ } else if (e.altKey) {
39492
+ deltaX = -i.containerWidth;
39493
+ } else {
39494
+ deltaX = -30;
39495
+ }
39496
+ break;
39497
+ case 38:
39498
+ if (e.metaKey) {
39499
+ deltaY = i.contentHeight;
39500
+ } else if (e.altKey) {
39501
+ deltaY = i.containerHeight;
39502
+ } else {
39503
+ deltaY = 30;
39504
+ }
39505
+ break;
39506
+ case 39:
39507
+ if (e.metaKey) {
39508
+ deltaX = i.contentWidth;
39509
+ } else if (e.altKey) {
39510
+ deltaX = i.containerWidth;
39511
+ } else {
39512
+ deltaX = 30;
39513
+ }
39514
+ break;
39515
+ case 40:
39516
+ if (e.metaKey) {
39517
+ deltaY = -i.contentHeight;
39518
+ } else if (e.altKey) {
39519
+ deltaY = -i.containerHeight;
39520
+ } else {
39521
+ deltaY = -30;
39522
+ }
39523
+ break;
39524
+ case 32:
39525
+ if (e.shiftKey) {
39526
+ deltaY = i.containerHeight;
39527
+ } else {
39528
+ deltaY = -i.containerHeight;
39529
+ }
39530
+ break;
39531
+ case 33:
39532
+ deltaY = i.containerHeight;
39533
+ break;
39534
+ case 34:
39535
+ deltaY = -i.containerHeight;
39536
+ break;
39537
+ case 36:
39538
+ deltaY = i.contentHeight;
39539
+ break;
39540
+ case 35:
39541
+ deltaY = -i.contentHeight;
39542
+ break;
39543
+ default:
39544
+ return;
39545
+ }
39546
+ if (i.settings.suppressScrollX && deltaX !== 0) {
39547
+ return;
39548
+ }
39549
+ if (i.settings.suppressScrollY && deltaY !== 0) {
39550
+ return;
39551
+ }
39552
+ element.scrollTop -= deltaY;
39553
+ element.scrollLeft += deltaX;
39554
+ updateGeometry(i);
39555
+ if (shouldPreventDefault(deltaX, deltaY)) {
39556
+ e.preventDefault();
39557
+ }
39558
+ });
39559
+ }
39560
+ function wheel(i) {
39561
+ var element = i.element;
39562
+ function shouldPreventDefault(deltaX, deltaY) {
39563
+ var roundedScrollTop = Math.floor(element.scrollTop);
39564
+ var isTop = element.scrollTop === 0;
39565
+ var isBottom = roundedScrollTop + element.offsetHeight === element.scrollHeight;
39566
+ var isLeft = element.scrollLeft === 0;
39567
+ var isRight = element.scrollLeft + element.offsetWidth === element.scrollWidth;
39568
+ var hitsBound;
39569
+ if (Math.abs(deltaY) > Math.abs(deltaX)) {
39570
+ hitsBound = isTop || isBottom;
39571
+ } else {
39572
+ hitsBound = isLeft || isRight;
39573
+ }
39574
+ return hitsBound ? !i.settings.wheelPropagation : true;
39575
+ }
39576
+ function getDeltaFromEvent(e) {
39577
+ var deltaX = e.deltaX;
39578
+ var deltaY = -1 * e.deltaY;
39579
+ if (typeof deltaX === "undefined" || typeof deltaY === "undefined") {
39580
+ deltaX = -1 * e.wheelDeltaX / 6;
39581
+ deltaY = e.wheelDeltaY / 6;
39582
+ }
39583
+ if (e.deltaMode && e.deltaMode === 1) {
39584
+ deltaX *= 10;
39585
+ deltaY *= 10;
39586
+ }
39587
+ if (deltaX !== deltaX && deltaY !== deltaY) {
39588
+ deltaX = 0;
39589
+ deltaY = e.wheelDelta;
39590
+ }
39591
+ if (e.shiftKey) {
39592
+ return [-deltaY, -deltaX];
39593
+ }
39594
+ return [deltaX, deltaY];
39595
+ }
39596
+ function shouldBeConsumedByChild(target, deltaX, deltaY) {
39597
+ if (!env.isWebKit && element.querySelector("select:focus")) {
39598
+ return true;
39599
+ }
39600
+ if (!element.contains(target)) {
39601
+ return false;
39602
+ }
39603
+ var cursor = target;
39604
+ while (cursor && cursor !== element) {
39605
+ if (cursor.classList.contains(cls.element.consuming)) {
39606
+ return true;
39607
+ }
39608
+ var style = get(cursor);
39609
+ if (deltaY && style.overflowY.match(/(scroll|auto)/)) {
39610
+ var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;
39611
+ if (maxScrollTop > 0) {
39612
+ if (cursor.scrollTop > 0 && deltaY < 0 || cursor.scrollTop < maxScrollTop && deltaY > 0) {
39613
+ return true;
39614
+ }
39615
+ }
39616
+ }
39617
+ if (deltaX && style.overflowX.match(/(scroll|auto)/)) {
39618
+ var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;
39619
+ if (maxScrollLeft > 0) {
39620
+ if (cursor.scrollLeft > 0 && deltaX < 0 || cursor.scrollLeft < maxScrollLeft && deltaX > 0) {
39621
+ return true;
39622
+ }
39623
+ }
39624
+ }
39625
+ cursor = cursor.parentNode;
39626
+ }
39627
+ return false;
39628
+ }
39629
+ function mousewheelHandler(e) {
39630
+ var ref2 = getDeltaFromEvent(e);
39631
+ var deltaX = ref2[0];
39632
+ var deltaY = ref2[1];
39633
+ if (shouldBeConsumedByChild(e.target, deltaX, deltaY)) {
39634
+ return;
39635
+ }
39636
+ var shouldPrevent = false;
39637
+ if (!i.settings.useBothWheelAxes) {
39638
+ element.scrollTop -= deltaY * i.settings.wheelSpeed;
39639
+ element.scrollLeft += deltaX * i.settings.wheelSpeed;
39640
+ } else if (i.scrollbarYActive && !i.scrollbarXActive) {
39641
+ if (deltaY) {
39642
+ element.scrollTop -= deltaY * i.settings.wheelSpeed;
39643
+ } else {
39644
+ element.scrollTop += deltaX * i.settings.wheelSpeed;
39645
+ }
39646
+ shouldPrevent = true;
39647
+ } else if (i.scrollbarXActive && !i.scrollbarYActive) {
39648
+ if (deltaX) {
39649
+ element.scrollLeft += deltaX * i.settings.wheelSpeed;
39650
+ } else {
39651
+ element.scrollLeft -= deltaY * i.settings.wheelSpeed;
39652
+ }
39653
+ shouldPrevent = true;
39654
+ }
39655
+ updateGeometry(i);
39656
+ shouldPrevent = shouldPrevent || shouldPreventDefault(deltaX, deltaY);
39657
+ if (shouldPrevent && !e.ctrlKey) {
39658
+ e.stopPropagation();
39659
+ e.preventDefault();
39660
+ }
39661
+ }
39662
+ if (typeof window.onwheel !== "undefined") {
39663
+ i.event.bind(element, "wheel", mousewheelHandler);
39664
+ } else if (typeof window.onmousewheel !== "undefined") {
39665
+ i.event.bind(element, "mousewheel", mousewheelHandler);
39666
+ }
39667
+ }
39668
+ function touch(i) {
39669
+ if (!env.supportsTouch && !env.supportsIePointer) {
39670
+ return;
39671
+ }
39672
+ var element = i.element;
39673
+ var state = {
39674
+ startOffset: {},
39675
+ startTime: 0,
39676
+ speed: {},
39677
+ easingLoop: null
39678
+ };
39679
+ function shouldPrevent(deltaX, deltaY) {
39680
+ var scrollTop = Math.floor(element.scrollTop);
39681
+ var scrollLeft = element.scrollLeft;
39682
+ var magnitudeX = Math.abs(deltaX);
39683
+ var magnitudeY = Math.abs(deltaY);
39684
+ if (magnitudeY > magnitudeX) {
39685
+ if (deltaY < 0 && scrollTop === i.contentHeight - i.containerHeight || deltaY > 0 && scrollTop === 0) {
39686
+ return window.scrollY === 0 && deltaY > 0 && env.isChrome;
39687
+ }
39688
+ } else if (magnitudeX > magnitudeY) {
39689
+ if (deltaX < 0 && scrollLeft === i.contentWidth - i.containerWidth || deltaX > 0 && scrollLeft === 0) {
39690
+ return true;
39691
+ }
39692
+ }
39693
+ return true;
39694
+ }
39695
+ function applyTouchMove(differenceX, differenceY) {
39696
+ element.scrollTop -= differenceY;
39697
+ element.scrollLeft -= differenceX;
39698
+ updateGeometry(i);
39699
+ }
39700
+ function getTouch(e) {
39701
+ if (e.targetTouches) {
39702
+ return e.targetTouches[0];
39703
+ }
39704
+ return e;
39705
+ }
39706
+ function shouldHandle(e) {
39707
+ if (e.target === i.scrollbarX || e.target === i.scrollbarY) {
39708
+ return false;
39709
+ }
39710
+ if (e.pointerType && e.pointerType === "pen" && e.buttons === 0) {
39711
+ return false;
39712
+ }
39713
+ if (e.targetTouches && e.targetTouches.length === 1) {
39714
+ return true;
39715
+ }
39716
+ if (e.pointerType && e.pointerType !== "mouse" && e.pointerType !== e.MSPOINTER_TYPE_MOUSE) {
39717
+ return true;
39718
+ }
39719
+ return false;
39720
+ }
39721
+ function touchStart(e) {
39722
+ if (!shouldHandle(e)) {
39723
+ return;
39724
+ }
39725
+ var touch2 = getTouch(e);
39726
+ state.startOffset.pageX = touch2.pageX;
39727
+ state.startOffset.pageY = touch2.pageY;
39728
+ state.startTime = (/* @__PURE__ */ new Date()).getTime();
39729
+ if (state.easingLoop !== null) {
39730
+ clearInterval(state.easingLoop);
39731
+ }
39732
+ }
39733
+ function shouldBeConsumedByChild(target, deltaX, deltaY) {
39734
+ if (!element.contains(target)) {
39735
+ return false;
39736
+ }
39737
+ var cursor = target;
39738
+ while (cursor && cursor !== element) {
39739
+ if (cursor.classList.contains(cls.element.consuming)) {
39740
+ return true;
39741
+ }
39742
+ var style = get(cursor);
39743
+ if (deltaY && style.overflowY.match(/(scroll|auto)/)) {
39744
+ var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;
39745
+ if (maxScrollTop > 0) {
39746
+ if (cursor.scrollTop > 0 && deltaY < 0 || cursor.scrollTop < maxScrollTop && deltaY > 0) {
39747
+ return true;
39748
+ }
39749
+ }
39750
+ }
39751
+ if (deltaX && style.overflowX.match(/(scroll|auto)/)) {
39752
+ var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;
39753
+ if (maxScrollLeft > 0) {
39754
+ if (cursor.scrollLeft > 0 && deltaX < 0 || cursor.scrollLeft < maxScrollLeft && deltaX > 0) {
39755
+ return true;
39756
+ }
39757
+ }
39758
+ }
39759
+ cursor = cursor.parentNode;
39760
+ }
39761
+ return false;
39762
+ }
39763
+ function touchMove(e) {
39764
+ if (shouldHandle(e)) {
39765
+ var touch2 = getTouch(e);
39766
+ var currentOffset = { pageX: touch2.pageX, pageY: touch2.pageY };
39767
+ var differenceX = currentOffset.pageX - state.startOffset.pageX;
39768
+ var differenceY = currentOffset.pageY - state.startOffset.pageY;
39769
+ if (shouldBeConsumedByChild(e.target, differenceX, differenceY)) {
39770
+ return;
39771
+ }
39772
+ applyTouchMove(differenceX, differenceY);
39773
+ state.startOffset = currentOffset;
39774
+ var currentTime = (/* @__PURE__ */ new Date()).getTime();
39775
+ var timeGap = currentTime - state.startTime;
39776
+ if (timeGap > 0) {
39777
+ state.speed.x = differenceX / timeGap;
39778
+ state.speed.y = differenceY / timeGap;
39779
+ state.startTime = currentTime;
39780
+ }
39781
+ if (shouldPrevent(differenceX, differenceY)) {
39782
+ if (e.cancelable) {
39783
+ e.preventDefault();
39784
+ }
39785
+ }
39786
+ }
39787
+ }
39788
+ function touchEnd() {
39789
+ if (i.settings.swipeEasing) {
39790
+ clearInterval(state.easingLoop);
39791
+ state.easingLoop = setInterval(function() {
39792
+ if (i.isInitialized) {
39793
+ clearInterval(state.easingLoop);
39794
+ return;
39795
+ }
39796
+ if (!state.speed.x && !state.speed.y) {
39797
+ clearInterval(state.easingLoop);
39798
+ return;
39799
+ }
39800
+ if (Math.abs(state.speed.x) < 0.01 && Math.abs(state.speed.y) < 0.01) {
39801
+ clearInterval(state.easingLoop);
39802
+ return;
39803
+ }
39804
+ applyTouchMove(state.speed.x * 30, state.speed.y * 30);
39805
+ state.speed.x *= 0.8;
39806
+ state.speed.y *= 0.8;
39807
+ }, 10);
39808
+ }
39809
+ }
39810
+ if (env.supportsTouch) {
39811
+ i.event.bind(element, "touchstart", touchStart);
39812
+ i.event.bind(element, "touchmove", touchMove);
39813
+ i.event.bind(element, "touchend", touchEnd);
39814
+ } else if (env.supportsIePointer) {
39815
+ if (window.PointerEvent) {
39816
+ i.event.bind(element, "pointerdown", touchStart);
39817
+ i.event.bind(element, "pointermove", touchMove);
39818
+ i.event.bind(element, "pointerup", touchEnd);
39819
+ } else if (window.MSPointerEvent) {
39820
+ i.event.bind(element, "MSPointerDown", touchStart);
39821
+ i.event.bind(element, "MSPointerMove", touchMove);
39822
+ i.event.bind(element, "MSPointerUp", touchEnd);
39823
+ }
39824
+ }
39825
+ }
39826
+ var defaultSettings = function() {
39827
+ return {
39828
+ handlers: ["click-rail", "drag-thumb", "keyboard", "wheel", "touch"],
39829
+ maxScrollbarLength: null,
39830
+ minScrollbarLength: null,
39831
+ scrollingThreshold: 1e3,
39832
+ scrollXMarginOffset: 0,
39833
+ scrollYMarginOffset: 0,
39834
+ suppressScrollX: false,
39835
+ suppressScrollY: false,
39836
+ swipeEasing: true,
39837
+ useBothWheelAxes: false,
39838
+ wheelPropagation: true,
39839
+ wheelSpeed: 1
39840
+ };
39841
+ };
39842
+ var handlers = {
39843
+ "click-rail": clickRail,
39844
+ "drag-thumb": setupScrollHandlers,
39845
+ keyboard,
39846
+ wheel,
39847
+ touch
39848
+ };
39849
+ var PerfectScrollbar = function PerfectScrollbar2(element, userSettings) {
39850
+ var this$1$1 = this;
39851
+ if (userSettings === void 0) userSettings = {};
39852
+ if (typeof element === "string") {
39853
+ element = document.querySelector(element);
39854
+ }
39855
+ if (!element || !element.nodeName) {
39856
+ throw new Error("no element is specified to initialize PerfectScrollbar");
39857
+ }
39858
+ this.element = element;
39859
+ element.classList.add(cls.main);
39860
+ this.settings = defaultSettings();
39861
+ for (var key2 in userSettings) {
39862
+ this.settings[key2] = userSettings[key2];
39863
+ }
39864
+ this.containerWidth = null;
39865
+ this.containerHeight = null;
39866
+ this.contentWidth = null;
39867
+ this.contentHeight = null;
39868
+ var focus = function() {
39869
+ return element.classList.add(cls.state.focus);
39870
+ };
39871
+ var blur = function() {
39872
+ return element.classList.remove(cls.state.focus);
39873
+ };
39874
+ this.isRtl = get(element).direction === "rtl";
39875
+ if (this.isRtl === true) {
39876
+ element.classList.add(cls.rtl);
39877
+ }
39878
+ this.isNegativeScroll = function() {
39879
+ var originalScrollLeft = element.scrollLeft;
39880
+ var result = null;
39881
+ element.scrollLeft = -1;
39882
+ result = element.scrollLeft < 0;
39883
+ element.scrollLeft = originalScrollLeft;
39884
+ return result;
39885
+ }();
39886
+ this.negativeScrollAdjustment = this.isNegativeScroll ? element.scrollWidth - element.clientWidth : 0;
39887
+ this.event = new EventManager();
39888
+ this.ownerDocument = element.ownerDocument || document;
39889
+ this.scrollbarXRail = div(cls.element.rail("x"));
39890
+ element.appendChild(this.scrollbarXRail);
39891
+ this.scrollbarX = div(cls.element.thumb("x"));
39892
+ this.scrollbarXRail.appendChild(this.scrollbarX);
39893
+ this.scrollbarX.setAttribute("tabindex", 0);
39894
+ this.event.bind(this.scrollbarX, "focus", focus);
39895
+ this.event.bind(this.scrollbarX, "blur", blur);
39896
+ this.scrollbarXActive = null;
39897
+ this.scrollbarXWidth = null;
39898
+ this.scrollbarXLeft = null;
39899
+ var railXStyle = get(this.scrollbarXRail);
39900
+ this.scrollbarXBottom = parseInt(railXStyle.bottom, 10);
39901
+ if (isNaN(this.scrollbarXBottom)) {
39902
+ this.isScrollbarXUsingBottom = false;
39903
+ this.scrollbarXTop = toInt(railXStyle.top);
39904
+ } else {
39905
+ this.isScrollbarXUsingBottom = true;
39906
+ }
39907
+ this.railBorderXWidth = toInt(railXStyle.borderLeftWidth) + toInt(railXStyle.borderRightWidth);
39908
+ set(this.scrollbarXRail, { display: "block" });
39909
+ this.railXMarginWidth = toInt(railXStyle.marginLeft) + toInt(railXStyle.marginRight);
39910
+ set(this.scrollbarXRail, { display: "" });
39911
+ this.railXWidth = null;
39912
+ this.railXRatio = null;
39913
+ this.scrollbarYRail = div(cls.element.rail("y"));
39914
+ element.appendChild(this.scrollbarYRail);
39915
+ this.scrollbarY = div(cls.element.thumb("y"));
39916
+ this.scrollbarYRail.appendChild(this.scrollbarY);
39917
+ this.scrollbarY.setAttribute("tabindex", 0);
39918
+ this.event.bind(this.scrollbarY, "focus", focus);
39919
+ this.event.bind(this.scrollbarY, "blur", blur);
39920
+ this.scrollbarYActive = null;
39921
+ this.scrollbarYHeight = null;
39922
+ this.scrollbarYTop = null;
39923
+ var railYStyle = get(this.scrollbarYRail);
39924
+ this.scrollbarYRight = parseInt(railYStyle.right, 10);
39925
+ if (isNaN(this.scrollbarYRight)) {
39926
+ this.isScrollbarYUsingRight = false;
39927
+ this.scrollbarYLeft = toInt(railYStyle.left);
39928
+ } else {
39929
+ this.isScrollbarYUsingRight = true;
39930
+ }
39931
+ this.scrollbarYOuterWidth = this.isRtl ? outerWidth(this.scrollbarY) : null;
39932
+ this.railBorderYWidth = toInt(railYStyle.borderTopWidth) + toInt(railYStyle.borderBottomWidth);
39933
+ set(this.scrollbarYRail, { display: "block" });
39934
+ this.railYMarginHeight = toInt(railYStyle.marginTop) + toInt(railYStyle.marginBottom);
39935
+ set(this.scrollbarYRail, { display: "" });
39936
+ this.railYHeight = null;
39937
+ this.railYRatio = null;
39938
+ this.reach = {
39939
+ x: element.scrollLeft <= 0 ? "start" : element.scrollLeft >= this.contentWidth - this.containerWidth ? "end" : null,
39940
+ y: element.scrollTop <= 0 ? "start" : element.scrollTop >= this.contentHeight - this.containerHeight ? "end" : null
39941
+ };
39942
+ this.isAlive = true;
39943
+ this.settings.handlers.forEach(function(handlerName) {
39944
+ return handlers[handlerName](this$1$1);
39945
+ });
39946
+ this.lastScrollTop = Math.floor(element.scrollTop);
39947
+ this.lastScrollLeft = element.scrollLeft;
39948
+ this.event.bind(this.element, "scroll", function(e) {
39949
+ return this$1$1.onScroll(e);
39950
+ });
39951
+ updateGeometry(this);
39952
+ };
39953
+ PerfectScrollbar.prototype.update = function update() {
39954
+ if (!this.isAlive) {
39955
+ return;
39956
+ }
39957
+ this.negativeScrollAdjustment = this.isNegativeScroll ? this.element.scrollWidth - this.element.clientWidth : 0;
39958
+ set(this.scrollbarXRail, { display: "block" });
39959
+ set(this.scrollbarYRail, { display: "block" });
39960
+ this.railXMarginWidth = toInt(get(this.scrollbarXRail).marginLeft) + toInt(get(this.scrollbarXRail).marginRight);
39961
+ this.railYMarginHeight = toInt(get(this.scrollbarYRail).marginTop) + toInt(get(this.scrollbarYRail).marginBottom);
39962
+ set(this.scrollbarXRail, { display: "none" });
39963
+ set(this.scrollbarYRail, { display: "none" });
39964
+ updateGeometry(this);
39965
+ processScrollDiff(this, "top", 0, false, true);
39966
+ processScrollDiff(this, "left", 0, false, true);
39967
+ set(this.scrollbarXRail, { display: "" });
39968
+ set(this.scrollbarYRail, { display: "" });
39969
+ };
39970
+ PerfectScrollbar.prototype.onScroll = function onScroll(e) {
39971
+ if (!this.isAlive) {
39972
+ return;
39973
+ }
39974
+ updateGeometry(this);
39975
+ processScrollDiff(this, "top", this.element.scrollTop - this.lastScrollTop);
39976
+ processScrollDiff(this, "left", this.element.scrollLeft - this.lastScrollLeft);
39977
+ this.lastScrollTop = Math.floor(this.element.scrollTop);
39978
+ this.lastScrollLeft = this.element.scrollLeft;
39979
+ };
39980
+ PerfectScrollbar.prototype.destroy = function destroy() {
39981
+ if (!this.isAlive) {
39982
+ return;
39983
+ }
39984
+ this.event.unbindAll();
39985
+ remove(this.scrollbarX);
39986
+ remove(this.scrollbarY);
39987
+ remove(this.scrollbarXRail);
39988
+ remove(this.scrollbarYRail);
39989
+ this.removePsClasses();
39990
+ this.element = null;
39991
+ this.scrollbarX = null;
39992
+ this.scrollbarY = null;
39993
+ this.scrollbarXRail = null;
39994
+ this.scrollbarYRail = null;
39995
+ this.isAlive = false;
39996
+ };
39997
+ PerfectScrollbar.prototype.removePsClasses = function removePsClasses() {
39998
+ this.element.className = this.element.className.split(" ").filter(function(name2) {
39999
+ return !name2.match(/^ps([-_].+|)$/);
40000
+ }).join(" ");
40001
+ };
40002
+ const C = /* @__PURE__ */ defineComponent$1({
40003
+ __name: "PerfectScrollbar",
40004
+ props: {
40005
+ tag: { default: "div" },
40006
+ options: { default: () => ({}) }
40007
+ },
40008
+ emits: ["scroll", "ps-scroll-y", "ps-scroll-x", "ps-scroll-up", "ps-scroll-down", "ps-scroll-left", "ps-scroll-right", "ps-y-reach-start", "ps-y-reach-end", "ps-x-reach-start", "ps-x-reach-end"],
40009
+ setup(o, { expose: n, emit: c }) {
40010
+ const a = o, y = c, l = ref(null), s = ref(null);
40011
+ watch(
40012
+ () => a.options,
40013
+ () => {
40014
+ i(), p();
40015
+ },
40016
+ { deep: true }
40017
+ ), onMounted(() => {
40018
+ l.value && p();
40019
+ }), onBeforeUnmount(() => {
40020
+ i();
40021
+ });
40022
+ function p() {
40023
+ l.value && (s.value = new PerfectScrollbar(l.value, a.options), u());
40024
+ }
40025
+ function i() {
40026
+ s.value && (u(false), s.value.destroy(), s.value = null);
40027
+ }
40028
+ const x = {
40029
+ scroll: e("scroll"),
40030
+ "ps-scroll-y": e("ps-scroll-y"),
40031
+ "ps-scroll-x": e("ps-scroll-x"),
40032
+ "ps-scroll-up": e("ps-scroll-up"),
40033
+ "ps-scroll-down": e("ps-scroll-down"),
40034
+ "ps-scroll-left": e("ps-scroll-left"),
40035
+ "ps-scroll-right": e("ps-scroll-right"),
40036
+ "ps-y-reach-start": e("ps-y-reach-start"),
40037
+ "ps-y-reach-end": e("ps-y-reach-end"),
40038
+ "ps-x-reach-start": e("ps-x-reach-start"),
40039
+ "ps-x-reach-end": e("ps-x-reach-end")
40040
+ };
40041
+ function e(r) {
40042
+ return function(t) {
40043
+ y(r, t);
40044
+ };
40045
+ }
40046
+ function u(r = true) {
40047
+ var t;
40048
+ (t = s.value) != null && t.element && Object.entries(x).forEach(([f, d]) => {
40049
+ var m, h2;
40050
+ r ? (m = s.value) == null || m.element.addEventListener(f, d) : (h2 = s.value) == null || h2.element.removeEventListener(f, d);
40051
+ });
40052
+ }
40053
+ return n({
40054
+ ps: s
40055
+ }), (r, t) => (openBlock(), createBlock(resolveDynamicComponent(r.tag), {
40056
+ ref_key: "scrollbar",
40057
+ ref: l,
40058
+ class: "ps"
40059
+ }, {
40060
+ default: withCtx(() => [
40061
+ renderSlot(r.$slots, "default")
40062
+ ]),
40063
+ _: 3
40064
+ }, 512));
40065
+ }
40066
+ });
38979
40067
  function useSticky(_ref) {
38980
40068
  let {
38981
40069
  rootEl,
@@ -38999,21 +40087,21 @@ function useSticky(_ref) {
38999
40087
  onMounted(() => {
39000
40088
  watch(isSticky, (val2) => {
39001
40089
  if (val2) {
39002
- window.addEventListener("scroll", onScroll, {
40090
+ window.addEventListener("scroll", onScroll2, {
39003
40091
  passive: true
39004
40092
  });
39005
40093
  } else {
39006
- window.removeEventListener("scroll", onScroll);
40094
+ window.removeEventListener("scroll", onScroll2);
39007
40095
  }
39008
40096
  }, {
39009
40097
  immediate: true
39010
40098
  });
39011
40099
  });
39012
40100
  onBeforeUnmount(() => {
39013
- window.removeEventListener("scroll", onScroll);
40101
+ window.removeEventListener("scroll", onScroll2);
39014
40102
  });
39015
40103
  let lastScrollTop = 0;
39016
- function onScroll() {
40104
+ function onScroll2() {
39017
40105
  const direction = lastScrollTop > window.scrollY ? "up" : "down";
39018
40106
  const rect = rootEl.value.getBoundingClientRect();
39019
40107
  const layoutTop = parseFloat(layoutItemStyles.value.top ?? 0);
@@ -39078,14 +40166,14 @@ function calculateImpulseVelocity(samples) {
39078
40166
  function useVelocity() {
39079
40167
  const touches = {};
39080
40168
  function addMovement(e) {
39081
- Array.from(e.changedTouches).forEach((touch) => {
39082
- const samples = touches[touch.identifier] ?? (touches[touch.identifier] = new CircularBuffer(HISTORY));
39083
- samples.push([e.timeStamp, touch]);
40169
+ Array.from(e.changedTouches).forEach((touch2) => {
40170
+ const samples = touches[touch2.identifier] ?? (touches[touch2.identifier] = new CircularBuffer(HISTORY));
40171
+ samples.push([e.timeStamp, touch2]);
39084
40172
  });
39085
40173
  }
39086
40174
  function endTouch(e) {
39087
- Array.from(e.changedTouches).forEach((touch) => {
39088
- delete touches[touch.identifier];
40175
+ Array.from(e.changedTouches).forEach((touch2) => {
40176
+ delete touches[touch2.identifier];
39089
40177
  });
39090
40178
  }
39091
40179
  function getVelocity(id) {
@@ -39553,7 +40641,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
39553
40641
  return props.sidebarItems;
39554
40642
  });
39555
40643
  return (_ctx, _cache) => {
39556
- const _component_perfect_scrollbar = resolveComponent("perfect-scrollbar");
39557
40644
  return openBlock(), createBlock(VNavigationDrawer, {
39558
40645
  right: "",
39559
40646
  "model-value": __props.sidebarDrawer,
@@ -39569,7 +40656,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
39569
40656
  createElementVNode("div", _hoisted_1$2, [
39570
40657
  (openBlock(), createBlock(resolveDynamicComponent(__props.logoComponent)))
39571
40658
  ]),
39572
- createVNode(_component_perfect_scrollbar, { class: "scrollnavbar" }, {
40659
+ createVNode(unref(C), { class: "scrollnavbar" }, {
39573
40660
  default: withCtx(() => [
39574
40661
  createVNode(VList, { class: "pa-4" }, {
39575
40662
  default: withCtx(() => [
@@ -39617,7 +40704,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
39617
40704
  };
39618
40705
  }
39619
40706
  });
39620
- const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-3e3fe433"]]);
40707
+ const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-f94ee123"]]);
39621
40708
  const makeVToolbarTitleProps = propsFactory({
39622
40709
  text: String,
39623
40710
  ...makeComponentProps(),
@@ -39861,7 +40948,7 @@ function useScroll(props) {
39861
40948
  function onResize() {
39862
40949
  checkScrollableSpace();
39863
40950
  }
39864
- function onScroll() {
40951
+ function onScroll2() {
39865
40952
  const targetEl = target.value;
39866
40953
  if (!targetEl || canScroll && !canScroll.value) return;
39867
40954
  previousScroll = currentScroll.value;
@@ -39906,9 +40993,9 @@ function useScroll(props) {
39906
40993
  return;
39907
40994
  }
39908
40995
  if (newTarget === target.value) return;
39909
- (_a = target.value) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
40996
+ (_a = target.value) == null ? void 0 : _a.removeEventListener("scroll", onScroll2);
39910
40997
  target.value = newTarget;
39911
- target.value.addEventListener("scroll", onScroll, {
40998
+ target.value.addEventListener("scroll", onScroll2, {
39912
40999
  passive: true
39913
41000
  });
39914
41001
  Promise.resolve().then(() => {
@@ -39923,10 +41010,10 @@ function useScroll(props) {
39923
41010
  });
39924
41011
  onBeforeUnmount(() => {
39925
41012
  var _a;
39926
- (_a = target.value) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
41013
+ (_a = target.value) == null ? void 0 : _a.removeEventListener("scroll", onScroll2);
39927
41014
  window.removeEventListener("resize", onResize);
39928
41015
  });
39929
- canScroll && watch(canScroll, onScroll, {
41016
+ canScroll && watch(canScroll, onScroll2, {
39930
41017
  immediate: true
39931
41018
  });
39932
41019
  return {