@opentinyvue/vue-runtime 3.22.0 → 3.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as tt, $props as rt, createComponent as nt, h as U, deduplicateCssClass as Zr, stringifyCssClass as Kr, setup as Qt, $prefix as ot, hooks as Ve, parseVnode as er, isEmptyVnode as tr, mergeClass as bt, $setup as Qr } from "@opentinyvue/vue-common";
2
- import { withDirectives as rr, createVNode as we, vShow as nr } from "vue";
2
+ import { withDirectives as rr, createVNode as ue, vShow as nr } from "vue";
3
3
  function yt(e, t) {
4
4
  (t == null || t > e.length) && (t = e.length);
5
5
  for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
@@ -221,7 +221,7 @@ function dn(e, t) {
221
221
  }
222
222
  return ne.trim(a);
223
223
  }
224
- var vn = dn, pe = X, hn = vn;
224
+ var vn = dn, de = X, hn = vn;
225
225
  function xt(e) {
226
226
  return e == null;
227
227
  }
@@ -232,7 +232,7 @@ function mn(e) {
232
232
  return t;
233
233
  }
234
234
  function sr(e) {
235
- e = mn(e || {}), e.whiteList = e.whiteList || pe.whiteList, e.onAttr = e.onAttr || pe.onAttr, e.onIgnoreAttr = e.onIgnoreAttr || pe.onIgnoreAttr, e.safeAttrValue = e.safeAttrValue || pe.safeAttrValue, this.options = e;
235
+ e = mn(e || {}), e.whiteList = e.whiteList || de.whiteList, e.onAttr = e.onAttr || de.onAttr, e.onIgnoreAttr = e.onIgnoreAttr || de.onIgnoreAttr, e.safeAttrValue = e.safeAttrValue || de.safeAttrValue, this.options = e;
236
236
  }
237
237
  sr.prototype.process = function(e) {
238
238
  if (e = e || "", e = e.toString(), !e) return "";
@@ -382,16 +382,16 @@ function _n(e, t, r, n) {
382
382
  if (!(r.substr(0, 7) === "http://" || r.substr(0, 8) === "https://" || r.substr(0, 7) === "mailto:" || r.substr(0, 4) === "tel:" || r.substr(0, 11) === "data:image/" || r.substr(0, 6) === "ftp://" || r.substr(0, 2) === "./" || r.substr(0, 3) === "../" || r[0] === "#" || r[0] === "/"))
383
383
  return "";
384
384
  } else if (t === "background") {
385
- if (de.lastIndex = 0, de.test(r))
385
+ if (ve.lastIndex = 0, ve.test(r))
386
386
  return "";
387
387
  } else if (t === "style") {
388
- if (Et.lastIndex = 0, Et.test(r) || (St.lastIndex = 0, St.test(r) && (de.lastIndex = 0, de.test(r))))
388
+ if (Et.lastIndex = 0, Et.test(r) || (St.lastIndex = 0, St.test(r) && (ve.lastIndex = 0, ve.test(r))))
389
389
  return "";
390
390
  n !== !1 && (n = n || ur, r = n.process(r));
391
391
  }
392
392
  return r = gr(r), r;
393
393
  }
394
- var On = /</g, Tn = />/g, An = /"/g, kn = /&quot;/g, Cn = /&#([a-zA-Z0-9]*);?/gim, Pn = /&colon;?/gim, Rn = /&newline;?/gim, de = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, Et = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, St = /u\s*r\s*l\s*\(.*/gi;
394
+ var On = /</g, Tn = />/g, An = /"/g, kn = /&quot;/g, Cn = /&#([a-zA-Z0-9]*);?/gim, Pn = /&colon;?/gim, Rn = /&newline;?/gim, ve = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, Et = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, St = /u\s*r\s*l\s*\(.*/gi;
395
395
  function cr(e) {
396
396
  return e.replace(An, "&quot;");
397
397
  }
@@ -598,20 +598,20 @@ function _t(e) {
598
598
  }
599
599
  Ae.parseTag = Ln;
600
600
  Ae.parseAttr = jn;
601
- var Un = st.FilterCSS, B = x, br = Ae, Gn = br.parseTag, qn = br.parseAttr, ge = lt;
602
- function ve(e) {
601
+ var Un = st.FilterCSS, B = x, br = Ae, Gn = br.parseTag, qn = br.parseAttr, be = lt;
602
+ function he(e) {
603
603
  return e == null;
604
604
  }
605
605
  function Jn(e) {
606
- var t = ge.spaceIndex(e);
606
+ var t = be.spaceIndex(e);
607
607
  if (t === -1)
608
608
  return {
609
609
  html: "",
610
610
  closing: e[e.length - 2] === "/"
611
611
  };
612
- e = ge.trim(e.slice(t + 1, -1));
612
+ e = be.trim(e.slice(t + 1, -1));
613
613
  var r = e[e.length - 1] === "/";
614
- return r && (e = ge.trim(e.slice(0, -1))), {
614
+ return r && (e = be.trim(e.slice(0, -1))), {
615
615
  html: e,
616
616
  closing: r
617
617
  };
@@ -646,17 +646,17 @@ yr.prototype.process = function(e) {
646
646
  isClosing: m,
647
647
  isWhite: Object.prototype.hasOwnProperty.call(n, y)
648
648
  }, _ = o(y, h, E);
649
- if (!ve(_)) return _;
649
+ if (!he(_)) return _;
650
650
  if (E.isWhite) {
651
651
  if (E.isClosing)
652
652
  return "</" + y + ">";
653
- var C = Jn(h), H = n[y], I = qn(C.html, function(b, g) {
654
- var F = ge.indexOf(H, b) !== -1, M = a(y, b, g, F);
655
- return ve(M) ? F ? (g = l(y, b, g, c), g ? b + '="' + g + '"' : b) : (M = s(y, b, g, F), ve(M) ? void 0 : M) : M;
653
+ var P = Jn(h), H = n[y], O = qn(P.html, function(g, b) {
654
+ var F = be.indexOf(H, g) !== -1, M = a(y, g, b, F);
655
+ return he(M) ? F ? (b = l(y, g, b, c), b ? g + '="' + b + '"' : g) : (M = s(y, g, b, F), he(M) ? void 0 : M) : M;
656
656
  });
657
- return h = "<" + y, I && (h += " " + I), C.closing && (h += " /"), h += ">", h;
657
+ return h = "<" + y, O && (h += " " + O), P.closing && (h += " /"), h += ">", h;
658
658
  } else
659
- return _ = i(y, h, E), ve(_) ? u(h) : _;
659
+ return _ = i(y, h, E), he(_) ? u(h) : _;
660
660
  }, u);
661
661
  return f && (p = f.remove(p)), p;
662
662
  };
@@ -823,12 +823,12 @@ var oo = /([:\-_]+(.))/g, io = /^moz([A-Z])/, ao = function(t) {
823
823
  }, S = function(t, r, n) {
824
824
  var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
825
825
  t && r && n && t.addEventListener(r, n, o);
826
- }, R = function(t, r, n) {
826
+ }, I = function(t, r, n) {
827
827
  var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
828
828
  t && r && t.removeEventListener(r, n, o);
829
829
  }, so = function(t, r, n) {
830
- var o = function() {
831
- n && n.apply(this, arguments), R(t, r, o);
830
+ var o = function(a) {
831
+ n && n.call(this, a), I(t, r, o);
832
832
  };
833
833
  S(t, r, o);
834
834
  }, se = function(t) {
@@ -867,7 +867,7 @@ var oo = /([:\-_]+(.))/g, io = /^moz([A-Z])/, ao = function(t) {
867
867
  }, lo = function(t, r) {
868
868
  if (!w) {
869
869
  var n = !ft(r), o;
870
- return n ? o = Ot(t, "overflow-y") : o = Ot(t, "overflow"), o.match(/(scroll|auto)/);
870
+ return n ? o = Ot(t, "overflow-y") : o = Ot(t, "overflow"), o ? o.match(/(scroll|auto)/) : null;
871
871
  }
872
872
  }, uo = function(t, r) {
873
873
  if (!w) {
@@ -997,7 +997,7 @@ var ho = 20, mo = ["top", "right", "bottom", "left", "width", "height", "size",
997
997
  this.connected_ = !0;
998
998
  }
999
999
  }, e.prototype.disconnect_ = function() {
1000
- w || !this.connected_ || (R(document, "transitionend", this.onTransitionEnd_), R(window, "resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && R(document, "DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
1000
+ w || !this.connected_ || (I(document, "transitionend", this.onTransitionEnd_), I(window, "resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && I(document, "DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
1001
1001
  }, e.prototype.onTransitionEnd_ = function(t) {
1002
1002
  var r = t.propertyName, n = r === void 0 ? "" : r, o = mo.some(function(i) {
1003
1003
  return !!~n.indexOf(i);
@@ -1160,7 +1160,25 @@ var ho = 20, mo = ["top", "right", "bottom", "left", "width", "height", "size",
1160
1160
  (function() {
1161
1161
  return typeof Se.ResizeObserver < "u" ? Se.ResizeObserver : Tr;
1162
1162
  })();
1163
- var pt, Co = function(t, r, n) {
1163
+ var Co = "tcirzywvqlkjhgfbZQG_FLOWHSUBDNIMYREVKCAJxp57XP043891T62-modnaesu";
1164
+ Co.split("").reverse().join("");
1165
+ function Po(e) {
1166
+ return !w && (e.document.all || e.document.documentMode) && !e.crypto && e.msCrypto;
1167
+ }
1168
+ function Ro(e) {
1169
+ if (Po(e)) {
1170
+ e.crypto = e.msCrypto;
1171
+ var t = e.crypto.getRandomValues;
1172
+ e.crypto.getRandomValues = function(r) {
1173
+ for (var n = t.call(e.crypto, r), o = [], i = 0; i < r.length; i++)
1174
+ o[i] = n[i];
1175
+ return o;
1176
+ };
1177
+ }
1178
+ }
1179
+ var Io = globalThis;
1180
+ Ro(Io);
1181
+ var pt, Mo = function(t, r, n) {
1164
1182
  if (!(!t || !J(t) || !r || typeof r != "string")) {
1165
1183
  var o = r.split("."), i = t, a = o.length;
1166
1184
  if (a > 1) {
@@ -1171,7 +1189,7 @@ var pt, Co = function(t, r, n) {
1171
1189
  } else
1172
1190
  return i[o[0]];
1173
1191
  }
1174
- }, Po = function(t, r, n, o) {
1192
+ }, Fo = function(t, r, n, o) {
1175
1193
  if (!t || !J(t) || !r || typeof r != "string")
1176
1194
  return t;
1177
1195
  var i = r.split("."), a = t, s = i.length, l = i[0];
@@ -1187,19 +1205,19 @@ var pt, Co = function(t, r, n) {
1187
1205
  var i = function(s, l, u, c) {
1188
1206
  var f = {};
1189
1207
  return l.forEach(function(p) {
1190
- return Po(f, p, Co(s, p));
1208
+ return Fo(f, p, Mo(s, p));
1191
1209
  }), f;
1192
1210
  };
1193
1211
  return J(t) ? Array.isArray(r) ? i(t, r) : pt(n !== !1, {}, t) : t;
1194
- }, Ro = function(t) {
1212
+ }, Bo = function(t) {
1195
1213
  return Array.isArray(t) ? t.map(function(r) {
1196
1214
  return Ue(r);
1197
1215
  }) : t;
1198
- }, Io = function(t, r, n, o, i) {
1216
+ }, No = function(t, r, n, o, i) {
1199
1217
  var a;
1200
1218
  if (n && o && (J(o) || (a = Array.isArray(o))))
1201
1219
  if (a)
1202
- a = !1, t[r] = Ro(o);
1220
+ a = !1, t[r] = Bo(o);
1203
1221
  else {
1204
1222
  var s = i && J(i) ? i : {};
1205
1223
  t[r] = pt(n, s, o);
@@ -1219,7 +1237,7 @@ pt = function() {
1219
1237
  if (l !== null && We(l))
1220
1238
  for (var u = Object.keys(l), c = 0, f = u; c < f.length; c++) {
1221
1239
  var p = f[c], v = i[p], d = l[p];
1222
- i !== d && Io(i, p, s, d, v);
1240
+ i !== d && No(i, p, s, d, v);
1223
1241
  }
1224
1242
  }
1225
1243
  return i;
@@ -1260,18 +1278,18 @@ Oe = function(t, r, n) {
1260
1278
  }
1261
1279
  return s;
1262
1280
  };
1263
- var Mo = function() {
1281
+ var Do = function() {
1264
1282
  var t = 4294967296;
1265
1283
  return globalThis.crypto.getRandomValues(new Uint32Array(1))[0] / t;
1266
- }, Fo = function() {
1284
+ }, Lo = function() {
1267
1285
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 8;
1268
- return t + Mo().toString().substr(2, r);
1269
- }, Bo = {
1286
+ return t + Do().toString().substr(2, r);
1287
+ }, Vo = {
1270
1288
  Escape: 27
1271
1289
  }, Ar = {
1272
1290
  fullMonths: "January,February,March,April,May,June,July,August,September,October,November,December".split(","),
1273
1291
  fullWeeks: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
1274
- }, vt = ["\\d\\d?", "\\d{3}", "\\d{4}"], j = vt[0], No = vt[1], Do = vt[2], oe = "[^\\s]+", At = function() {
1292
+ }, vt = ["\\d\\d?", "\\d{3}", "\\d{4}"], j = vt[0], jo = vt[1], zo = vt[2], oe = "[^\\s]+", At = function() {
1275
1293
  }, kr = function(t, r) {
1276
1294
  for (var n = [], o = 0, i = t.length; o < i; o++)
1277
1295
  n.push(t[o].substr(0, r));
@@ -1281,9 +1299,9 @@ var Mo = function() {
1281
1299
  var i = o[t].indexOf(n.charAt(0).toUpperCase() + n.substr(1).toLowerCase());
1282
1300
  ~i && (r.month = i);
1283
1301
  };
1284
- }, Lo = Ar.fullWeeks, Vo = Ar.fullMonths;
1285
- kr(Vo, 3);
1286
- kr(Lo, 3);
1302
+ }, Ho = Ar.fullWeeks, $o = Ar.fullMonths;
1303
+ kr($o, 3);
1304
+ kr(Ho, 3);
1287
1305
  var Z = {
1288
1306
  d: [j, function(e, t) {
1289
1307
  e.day = t;
@@ -1307,7 +1325,7 @@ var Z = {
1307
1325
  s: [j, function(e, t) {
1308
1326
  e.second = t;
1309
1327
  }],
1310
- yyyy: [Do, function(e, t) {
1328
+ yyyy: [zo, function(e, t) {
1311
1329
  e.year = t;
1312
1330
  }],
1313
1331
  S: ["\\d", function(e, t) {
@@ -1316,7 +1334,7 @@ var Z = {
1316
1334
  SS: ["\\d{2}", function(e, t) {
1317
1335
  e.millisecond = t * 10;
1318
1336
  }],
1319
- SSS: [No, function(e, t) {
1337
+ SSS: [jo, function(e, t) {
1320
1338
  e.millisecond = t;
1321
1339
  }],
1322
1340
  D: [j, At],
@@ -1331,20 +1349,20 @@ var Z = {
1331
1349
  var r = String(t).match(/([+-]|\d\d)/gi), n;
1332
1350
  r && (n = Number(r[1] * 60) + parseInt(r[2], 10), e.timezoneOffset = r[0] === "+" ? n : -n);
1333
1351
  }]
1334
- }, jo = ["A", "DD", "dd", "mm", "hh", "MM", "ss", "hh", "H", "HH"];
1352
+ }, Wo = ["A", "DD", "dd", "mm", "hh", "MM", "ss", "hh", "H", "HH"];
1335
1353
  Z.dddd = Z.ddd;
1336
- jo.forEach(function(e) {
1354
+ Wo.forEach(function(e) {
1337
1355
  e === "MM" ? Z[e] = Z[e.substr(0, 1)] : Z[e] = Z[e.substr(0, 1).toLowerCase()];
1338
1356
  });
1339
- var zo = function() {
1357
+ var Uo = function() {
1340
1358
  return w ? function(e) {
1341
1359
  setTimeout(function() {
1342
1360
  return e(Date.now());
1343
1361
  }, 1e3 / 60);
1344
1362
  } : window.requestAnimationFrame.bind(window);
1345
1363
  }(), Ge = function(t) {
1346
- t.scheduled || (t.scheduled = !0, t.raf(Ho.bind(null, t)));
1347
- }, Ho = function(t) {
1364
+ t.scheduled || (t.scheduled = !0, t.raf(Go.bind(null, t)));
1365
+ }, Go = function(t) {
1348
1366
  var r = t.reads, n = t.writes, o;
1349
1367
  try {
1350
1368
  t.runTasks(r), t.runTasks(n);
@@ -1359,12 +1377,12 @@ var zo = function() {
1359
1377
  }, Ct = function(t, r) {
1360
1378
  var n = t.indexOf(r);
1361
1379
  return !!~n && !!t.splice(n, 1);
1362
- }, $o = function(t, r) {
1380
+ }, qo = function(t, r) {
1363
1381
  for (var n in r)
1364
1382
  Object.hasOwnProperty.call(r, n) && (t[n] = r[n]);
1365
- }, Wo = /* @__PURE__ */ function() {
1383
+ }, Jo = /* @__PURE__ */ function() {
1366
1384
  function e() {
1367
- it(this, e), this.reads = [], this.writes = [], this.raf = zo.bind(window);
1385
+ it(this, e), this.reads = [], this.writes = [], this.raf = Uo.bind(window);
1368
1386
  }
1369
1387
  return at(e, [{
1370
1388
  key: "runTasks",
@@ -1393,10 +1411,10 @@ var zo = function() {
1393
1411
  value: function(r) {
1394
1412
  if (!r || xe(r) !== "object") throw new Error("[TINY][FastDom] expected object");
1395
1413
  var n = Object.create(this);
1396
- return $o(n, r), n.fastdom = this, n.initialize && n.initialize(), n;
1414
+ return qo(n, r), n.fastdom = this, n.initialize && n.initialize(), n;
1397
1415
  }
1398
1416
  }]);
1399
- }(), Cr = new Wo(), Pt = function(t, r, n, o) {
1417
+ }(), Cr = new Jo(), Pt = function(t, r, n, o) {
1400
1418
  var i = t._tasks, a = t.fastdom, s, l = new Promise(function(u, c) {
1401
1419
  s = a[r](function() {
1402
1420
  i.delete(l);
@@ -1408,7 +1426,7 @@ var zo = function() {
1408
1426
  }, o);
1409
1427
  });
1410
1428
  return i.set(l, s), l;
1411
- }, Uo = {
1429
+ }, Xo = {
1412
1430
  initialize: function() {
1413
1431
  this._tasks = /* @__PURE__ */ new Map();
1414
1432
  },
@@ -1423,14 +1441,14 @@ var zo = function() {
1423
1441
  this.fastdom.clear(n), r.delete(t);
1424
1442
  }
1425
1443
  };
1426
- Cr.extend(Uo);
1427
- var Go = function(t, r) {
1444
+ Cr.extend(Xo);
1445
+ var Yo = function(t, r) {
1428
1446
  for (var n = r.length; n--; )
1429
1447
  t.clear(r[n]), r.splice(n, 1);
1430
- }, qo = function(t, r) {
1448
+ }, Zo = function(t, r) {
1431
1449
  var n = t.indexOf(r);
1432
1450
  return !!~n && !!t.splice(n, 1);
1433
- }, Jo = /* @__PURE__ */ function() {
1451
+ }, Ko = /* @__PURE__ */ function() {
1434
1452
  function e(t) {
1435
1453
  it(this, e), this.fastdom = t, this.tasks = [];
1436
1454
  }
@@ -1453,30 +1471,30 @@ var Go = function(t, r) {
1453
1471
  }, {
1454
1472
  key: "clear",
1455
1473
  value: function(r) {
1456
- return arguments.length || Go(this.fastdom, this.tasks), qo(this.tasks, r), this.fastdom.clear(r);
1474
+ return arguments.length || Yo(this.fastdom, this.tasks), Zo(this.tasks, r), this.fastdom.clear(r);
1457
1475
  }
1458
1476
  }]);
1459
- }(), Xo = {
1477
+ }(), Qo = {
1460
1478
  sandbox: function() {
1461
- return new Jo(this.fastdom);
1479
+ return new Ko(this.fastdom);
1462
1480
  }
1463
1481
  };
1464
- Cr.extend(Xo);
1465
- var Yo = ["fullscreenElement", "fullscreenEnabled", "requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenerror"], Zo = ["mozFullScreenElement", "mozFullScreenEnabled", "mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozfullscreenerror"], Ko = ["webkitFullscreenElement", "webkitFullscreenEnabled", "webkitRequestFullscreen", "webkitExitFullscreen", "webkitfullscreenchange", "webkitfullscreenerror"], Qo = ["msFullscreenElement", "msFullscreenEnabled", "msRequestFullscreen", "msExitFullscreen", "MSFullscreenChange", "MSFullscreenError"], Re = [Yo, Ko, Zo, Qo], L = typeof window < "u" && typeof window.document < "u" ? window.document : {}, T = null, ei = function() {
1482
+ Cr.extend(Qo);
1483
+ var ei = ["fullscreenElement", "fullscreenEnabled", "requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenerror"], ti = ["mozFullScreenElement", "mozFullScreenEnabled", "mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozfullscreenerror"], ri = ["webkitFullscreenElement", "webkitFullscreenEnabled", "webkitRequestFullscreen", "webkitExitFullscreen", "webkitfullscreenchange", "webkitfullscreenerror"], ni = ["msFullscreenElement", "msFullscreenEnabled", "msRequestFullscreen", "msExitFullscreen", "MSFullscreenChange", "MSFullscreenError"], Re = [ei, ri, ti, ni], L = typeof window < "u" && typeof window.document < "u" ? window.document : {}, A = null, oi = function() {
1466
1484
  if (!w)
1467
1485
  for (var t = 0, r = Re.length; t < r; t++) {
1468
1486
  var n = Re[t];
1469
1487
  if (n && n[1] in L) {
1470
- for (T = {}, t = 0; t < n.length; t++)
1471
- T[Re[0][t]] = n[t];
1488
+ for (A = {}, t = 0; t < n.length; t++)
1489
+ A[Re[0][t]] = n[t];
1472
1490
  return;
1473
1491
  }
1474
1492
  }
1475
1493
  };
1476
- ei();
1494
+ oi();
1477
1495
  var Rt = {
1478
- change: T && T.fullscreenchange,
1479
- error: T && T.fullscreenerror
1496
+ change: A && A.fullscreenchange,
1497
+ error: A && A.fullscreenerror
1480
1498
  }, qe = {
1481
1499
  request: function(t, r) {
1482
1500
  var n = this;
@@ -1484,8 +1502,8 @@ var Rt = {
1484
1502
  var a = function() {
1485
1503
  n.off("change", a), o();
1486
1504
  };
1487
- if (n.on("change", a), t = t || (w ? null : L.documentElement), t && T && t[T.requestFullscreen]) {
1488
- var s = t[T.requestFullscreen](r);
1505
+ if (n.on("change", a), t = t || (w ? null : L.documentElement), t && A && t[A.requestFullscreen]) {
1506
+ var s = t[A.requestFullscreen](r);
1489
1507
  s instanceof Promise && s.then(a).catch(i);
1490
1508
  } else
1491
1509
  i(new Error("Fullscreen API not supported or element is null."));
@@ -1501,8 +1519,8 @@ var Rt = {
1501
1519
  var o = function() {
1502
1520
  t.off("change", o), r();
1503
1521
  };
1504
- if (t.on("change", o), !w && T && L[T.exitFullscreen]) {
1505
- var i = L[T.exitFullscreen]();
1522
+ if (t.on("change", o), !w && A && L[A.exitFullscreen]) {
1523
+ var i = L[A.exitFullscreen]();
1506
1524
  i instanceof Promise && i.then(o).catch(n);
1507
1525
  } else
1508
1526
  n(new Error("Fullscreen API not supported."));
@@ -1523,9 +1541,9 @@ var Rt = {
1523
1541
  },
1524
1542
  off: function(t, r) {
1525
1543
  var n = Rt[t];
1526
- n && !w && R(L, n, r);
1544
+ n && !w && I(L, n, r);
1527
1545
  },
1528
- raw: T || {}
1546
+ raw: A || {}
1529
1547
  };
1530
1548
  w ? Object.defineProperties(qe, {
1531
1549
  isFullscreen: {
@@ -1548,24 +1566,24 @@ w ? Object.defineProperties(qe, {
1548
1566
  }) : Object.defineProperties(qe, {
1549
1567
  isFullscreen: {
1550
1568
  get: function() {
1551
- return !!L[T && T.fullscreenElement];
1569
+ return !!L[A && A.fullscreenElement];
1552
1570
  }
1553
1571
  },
1554
1572
  element: {
1555
1573
  enumerable: !0,
1556
1574
  get: function() {
1557
- return L[T && T.fullscreenElement];
1575
+ return L[A && A.fullscreenElement];
1558
1576
  }
1559
1577
  },
1560
1578
  isEnabled: {
1561
1579
  enumerable: !0,
1562
1580
  get: function() {
1563
- return !!L[T && T.fullscreenEnabled];
1581
+ return !!L[A && A.fullscreenEnabled];
1564
1582
  }
1565
1583
  }
1566
1584
  });
1567
1585
  qe.isEnabled;
1568
- function ce(e, t, r, n) {
1586
+ function pe(e, t, r, n) {
1569
1587
  var o, i = 0;
1570
1588
  typeof t != "boolean" && (n = r, r = t, t = void 0);
1571
1589
  function a() {
@@ -1585,19 +1603,19 @@ function ce(e, t, r, n) {
1585
1603
  }
1586
1604
  return a._cancel = s, a;
1587
1605
  }
1588
- function ti(e, t, r) {
1589
- return r === void 0 ? ce(e, t, !1) : ce(e, r, t !== !1);
1606
+ function ii(e, t, r) {
1607
+ return r === void 0 ? pe(e, t, !1) : pe(e, r, t !== !1);
1590
1608
  }
1591
- var G = null, ri = "ws://localhost", It = [27197, 27198, 27199], Ie = 0, q, Pr = 1e3, Rr = 3e4, ni = 0, ht = {}, Ir, oi = 20 * 1e3, Mt = null, Mr = null, Je = {}, Fr = {}, P = {}, Br = function() {
1609
+ var G = null, ai = "ws://localhost", It = [27197, 27198, 27199], Ie = 0, q, Pr = 1e3, Rr = 3e4, si = 0, ht = {}, Ir, li = 20 * 1e3, Mt = null, Mr = null, Je = {}, Fr = {}, R = {}, Br = function() {
1592
1610
  }, Nr = function() {
1593
1611
  }, Dr = function(t) {
1594
1612
  clearTimeout(Je[t]), delete ht[t], delete Je[t];
1595
- }, ii = function() {
1613
+ }, ui = function() {
1596
1614
  Mr = setTimeout(function() {
1597
1615
  G.close();
1598
1616
  }, 5e3);
1599
1617
  }, V = function(t, r) {
1600
- var n = ni++;
1618
+ var n = si++;
1601
1619
  if (n = String(n), t.cid = n, !q) {
1602
1620
  r && setTimeout(r, 0, {
1603
1621
  ok: !1,
@@ -1618,10 +1636,10 @@ var G = null, ri = "ws://localhost", It = [27197, 27198, 27199], Ie = 0, q, Pr =
1618
1636
  }, function() {
1619
1637
  Lr();
1620
1638
  }) : clearTimeout(Mt);
1621
- }, oi);
1622
- }, ai = function(t) {
1639
+ }, li);
1640
+ }, fi = function(t) {
1623
1641
  q = !0, Lr(), clearTimeout(Ir), clearTimeout(Mr), Nr(t);
1624
- }, si = function(t) {
1642
+ }, ci = function(t) {
1625
1643
  var r = t.data;
1626
1644
  if (typeof r == "string" && (r = r.replace(/^\d+/, ""), !!r)) {
1627
1645
  try {
@@ -1638,24 +1656,24 @@ var G = null, ri = "ws://localhost", It = [27197, 27198, 27199], Ie = 0, q, Pr =
1638
1656
  ok: r.ok
1639
1657
  }), Dr(o));
1640
1658
  } else
1641
- r.type === "eSpace-ctrl-connection-success" ? ai(r.data) : G.close();
1659
+ r.type === "eSpace-ctrl-connection-success" ? fi(r.data) : G.close();
1642
1660
  }
1643
- }, li = function() {
1644
- G.onopen = ii, G.onclose = ui, G.onmessage = si;
1661
+ }, pi = function() {
1662
+ G.onopen = ui, G.onclose = di, G.onmessage = ci;
1645
1663
  }, Vr = function(t) {
1646
1664
  Ir = setTimeout(function() {
1647
- Ie >= It.length && (Ie = 0), G = new WebSocket(ri + ":" + It[Ie++]), li();
1665
+ Ie >= It.length && (Ie = 0), G = new WebSocket(ai + ":" + It[Ie++]), pi();
1648
1666
  }, t || 0);
1649
- }, ui = function() {
1667
+ }, di = function() {
1650
1668
  (q || typeof q > "u") && (q = !1, Br()), Vr(Pr);
1651
1669
  };
1652
- P.init = function(e) {
1670
+ R.init = function(e) {
1653
1671
  e && (Rr = e.timeout || 3e4, Pr = e.pollingInterval || 0), Vr();
1654
1672
  };
1655
- P.ready = function(e) {
1673
+ R.ready = function(e) {
1656
1674
  Nr = e;
1657
1675
  };
1658
- P.error = function(e) {
1676
+ R.error = function(e) {
1659
1677
  Br = e;
1660
1678
  };
1661
1679
  var Ft = function(t, r, n) {
@@ -1667,10 +1685,10 @@ var Ft = function(t, r, n) {
1667
1685
  }
1668
1686
  return o;
1669
1687
  };
1670
- P.on = function(e, t) {
1688
+ R.on = function(e, t) {
1671
1689
  Fr[e] = t;
1672
1690
  };
1673
- P.getUserInfo = function(e, t) {
1691
+ R.getUserInfo = function(e, t) {
1674
1692
  var r = function(o, i) {
1675
1693
  if (o)
1676
1694
  return t(o);
@@ -1702,14 +1720,14 @@ P.getUserInfo = function(e, t) {
1702
1720
  param: e
1703
1721
  }, r);
1704
1722
  };
1705
- P.subscribeUserStatus = function(e, t) {
1723
+ R.subscribeUserStatus = function(e, t) {
1706
1724
  Array.isArray(e) && e.forEach(function(r) {
1707
1725
  }), V({
1708
1726
  type: "subscribe-user-status",
1709
1727
  param: e
1710
1728
  }, t);
1711
1729
  };
1712
- P.eSpaceCall = function(e, t, r) {
1730
+ R.eSpaceCall = function(e, t, r) {
1713
1731
  V({
1714
1732
  type: "espace-call",
1715
1733
  param: {
@@ -1718,7 +1736,7 @@ P.eSpaceCall = function(e, t, r) {
1718
1736
  }
1719
1737
  }, r);
1720
1738
  };
1721
- P.eSpaceCallByAccount = function(e, t) {
1739
+ R.eSpaceCallByAccount = function(e, t) {
1722
1740
  V({
1723
1741
  type: "espace-call",
1724
1742
  param: {
@@ -1726,7 +1744,7 @@ P.eSpaceCallByAccount = function(e, t) {
1726
1744
  }
1727
1745
  }, t);
1728
1746
  };
1729
- P.eSpaceCallByNumber = function(e, t) {
1747
+ R.eSpaceCallByNumber = function(e, t) {
1730
1748
  V({
1731
1749
  type: "espace-call",
1732
1750
  param: {
@@ -1734,44 +1752,44 @@ P.eSpaceCallByNumber = function(e, t) {
1734
1752
  }
1735
1753
  }, t);
1736
1754
  };
1737
- P.showImDialog = function(e, t) {
1755
+ R.showImDialog = function(e, t) {
1738
1756
  V({
1739
1757
  type: "show-espace-im-dialog",
1740
1758
  param: e
1741
1759
  }, t);
1742
1760
  };
1743
- P.showGroupDialog = function(e, t) {
1761
+ R.showGroupDialog = function(e, t) {
1744
1762
  V({
1745
1763
  type: "show-espace-im-group-dialog",
1746
1764
  param: e
1747
1765
  }, t);
1748
1766
  };
1749
- P.addContactList = function(e, t) {
1767
+ R.addContactList = function(e, t) {
1750
1768
  V({
1751
1769
  type: "add-contact-list",
1752
1770
  param: e
1753
1771
  }, t);
1754
1772
  };
1755
1773
  if (w || !window.WebSocket) {
1756
- var fi = function() {
1774
+ var vi = function() {
1757
1775
  };
1758
- for (var Me in P)
1759
- if (Object.prototype.hasOwnProperty.call(P, Me)) {
1760
- var ci = P[Me];
1761
- typeof ci == "function" && (P[Me] = fi);
1776
+ for (var Me in R)
1777
+ if (Object.prototype.hasOwnProperty.call(R, Me)) {
1778
+ var hi = R[Me];
1779
+ typeof hi == "function" && (R[Me] = vi);
1762
1780
  }
1763
1781
  }
1764
- var he = {}, ie = {
1782
+ var me = {}, ie = {
1765
1783
  leave: "v-modal-leave",
1766
1784
  enter: "v-modal-enter",
1767
1785
  modal: "v-modal"
1768
- }, pi = function(t, r) {
1786
+ }, mi = function(t, r) {
1769
1787
  for (var n = t.length - 1; n >= 0; n--)
1770
1788
  if (t[n].id === r) {
1771
1789
  t.splice(n, 1);
1772
1790
  break;
1773
1791
  }
1774
- }, Xe, k = {
1792
+ }, Xe, C = {
1775
1793
  step: 2,
1776
1794
  zIndex: 2e3,
1777
1795
  globalScroll: !1,
@@ -1794,19 +1812,19 @@ var he = {}, ie = {
1794
1812
  },
1795
1813
  /** 全局反注册 */
1796
1814
  deregister: function(t) {
1797
- t && (he[t] = null, delete he[t]);
1815
+ t && (me[t] = null, delete me[t]);
1798
1816
  },
1799
1817
  /** 返回全局实例 */
1800
1818
  getInstance: function(t) {
1801
- return he[t];
1819
+ return me[t];
1802
1820
  },
1803
1821
  /** 全局注册 仅vue-popup.ts中使用,instance就是vm, 把vm注册到 vm._popupId 这个键值上 */
1804
1822
  register: function(t, r) {
1805
- t && r && (he[t] = r);
1823
+ t && r && (me[t] = r);
1806
1824
  },
1807
1825
  nextZIndex: function() {
1808
- var t = k.zIndex;
1809
- return k.zIndex += k.step, t;
1826
+ var t = C.zIndex;
1827
+ return C.zIndex += C.step, t;
1810
1828
  },
1811
1829
  /** 打开遮罩层, 仅vue-popup.ts中使用。 dom = vm.$el 或者 undefined (appendtoBody时) */
1812
1830
  openModal: function(t, r, n, o, i) {
@@ -1818,7 +1836,7 @@ var he = {}, ie = {
1818
1836
  return;
1819
1837
  }
1820
1838
  var u = Xe();
1821
- if (se(u, ie.modal), this.modalFade && !k.hasModal && se(u, ie.enter), o) {
1839
+ if (se(u, ie.modal), this.modalFade && !C.hasModal && se(u, ie.enter), o) {
1822
1840
  var c = o.trim().split(/\s+/);
1823
1841
  c.forEach(function(p) {
1824
1842
  return se(u, p);
@@ -1837,9 +1855,9 @@ var he = {}, ie = {
1837
1855
  },
1838
1856
  /** 点击背景遮罩层时,调用栈顶的popup,调用它的close() */
1839
1857
  doOnModalClick: function() {
1840
- var t = k.modalStack, r = t[t.length - 1];
1858
+ var t = C.modalStack, r = t[t.length - 1];
1841
1859
  if (r) {
1842
- var n = k.getInstance(r.id);
1860
+ var n = C.getInstance(r.id);
1843
1861
  n && n.closeOnClickModal && typeof n.close == "function" && n.close();
1844
1862
  }
1845
1863
  },
@@ -1858,38 +1876,38 @@ var he = {}, ie = {
1858
1876
  var a = r.length;
1859
1877
  a > 0 && (n.style.zIndex = r[a - 1].zIndex.toString());
1860
1878
  } else
1861
- pi(r, t);
1879
+ mi(r, t);
1862
1880
  }
1863
1881
  r.length === 0 && (this.modalFade && se(n, ie.leave), le(document.body, this.popLockClass), this.resetBodyBorder(), setTimeout(function() {
1864
- r.length === 0 && (n.parentNode && n.parentNode.removeChild(n), n.style.display = "none", k.modalDom = null), le(n, ie.leave);
1882
+ r.length === 0 && (n.parentNode && n.parentNode.removeChild(n), n.style.display = "none", C.modalDom = null), le(n, ie.leave);
1865
1883
  }, 200));
1866
1884
  }
1867
1885
  };
1868
1886
  Xe = function() {
1869
1887
  if (w)
1870
1888
  return null;
1871
- var t = k.modalDom;
1872
- return t ? k.hasModal = !0 : (k.hasModal = !1, t = document.createElement("div"), k.modalDom = t, t.addEventListener("touchmove", function(r) {
1889
+ var t = C.modalDom;
1890
+ return t ? C.hasModal = !0 : (C.hasModal = !1, t = document.createElement("div"), C.modalDom = t, t.addEventListener("touchmove", function(r) {
1873
1891
  r.preventDefault(), r.stopPropagation();
1874
1892
  }, {
1875
1893
  passive: !0
1876
1894
  }), S(t, "click", function() {
1877
- k.doOnModalClick();
1895
+ C.doOnModalClick();
1878
1896
  })), t;
1879
1897
  };
1880
1898
  w || S(window, "keydown", function(e) {
1881
- if (e.keyCode === Bo.Escape) {
1882
- var t = k.modalStack;
1899
+ if (e.keyCode === Vo.Escape) {
1900
+ var t = C.modalStack;
1883
1901
  if (t.length > 0) {
1884
1902
  var r = t[t.length - 1];
1885
1903
  if (!r)
1886
1904
  return;
1887
- var n = k.getInstance(r.id);
1905
+ var n = C.getInstance(r.id);
1888
1906
  n && n.closeOnPressEscape && (n.handleClose ? n.handleClose("esc") : n.handleAction ? n.handleAction("cancel") : n.close());
1889
1907
  }
1890
1908
  }
1891
1909
  });
1892
- var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOverflow", "keepTogether", "arrow", "flip", "applyStyle"], vi = {
1910
+ var gi = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOverflow", "keepTogether", "arrow", "flip", "applyStyle"], bi = {
1893
1911
  arrowOffset: 0,
1894
1912
  arrowElement: "[x-arrow]",
1895
1913
  boundariesElement: "viewport",
@@ -1900,12 +1918,12 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
1900
1918
  gpuAcceleration: !0,
1901
1919
  offset: 0,
1902
1920
  placement: "bottom",
1903
- preventOverflowOrder: di,
1921
+ preventOverflowOrder: gi,
1904
1922
  modifiers: jr,
1905
1923
  // 此处是string数组, 构造函数调用之后转为函数数组
1906
1924
  updateHiddenPopperOnScroll: !1
1907
1925
  // 滚动过程中是否更新隐藏的弹出层位置
1908
- }, be = function(t, r) {
1926
+ }, ye = function(t, r) {
1909
1927
  var n = function(i) {
1910
1928
  return i !== "" && !isNaN(parseFloat(i)) && isFinite(i);
1911
1929
  };
@@ -1916,13 +1934,13 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
1916
1934
  }, Fe = function(t) {
1917
1935
  var r = t.offsetParent;
1918
1936
  return r === window.document.body || !r ? window.document.documentElement : r;
1919
- }, ue = function(t, r) {
1937
+ }, fe = function(t, r) {
1920
1938
  if (!(!t || t.nodeType !== 1)) {
1921
1939
  var n = window.getComputedStyle(t, null);
1922
1940
  return n[r];
1923
1941
  }
1924
1942
  }, zr = function(t) {
1925
- return t === window.document.body ? !1 : ue(t, "position") === "fixed" ? !0 : t.parentNode ? zr(t.parentNode) : !1;
1943
+ return t === window.document.body ? !1 : fe(t, "position") === "fixed" ? !0 : (t.host && (t = t.host), t.parentNode ? zr(t.parentNode) : !1);
1926
1944
  }, Ye = function(t) {
1927
1945
  var r = t.getBoundingClientRect();
1928
1946
  return {
@@ -1935,10 +1953,10 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
1935
1953
  };
1936
1954
  }, Hr = function(t) {
1937
1955
  var r = ["scroll", "auto"];
1938
- return r.includes(ue(t, "overflow")) || r.includes(ue(t, "overflow-x")) || r.includes(ue(t, "overflow-y"));
1939
- }, hi = function(t) {
1956
+ return r.includes(fe(t, "overflow")) || r.includes(fe(t, "overflow-x")) || r.includes(fe(t, "overflow-y"));
1957
+ }, yi = function(t) {
1940
1958
  var r = document.createElement("div");
1941
- be(r, {
1959
+ ye(r, {
1942
1960
  opacity: 0,
1943
1961
  position: "fixed",
1944
1962
  width: 1,
@@ -1949,14 +1967,14 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
1949
1967
  }), t.appendChild(r);
1950
1968
  var n = Ye(r);
1951
1969
  return t.removeChild(r), n;
1952
- }, ye = function(t) {
1970
+ }, we = function(t) {
1953
1971
  var r = t.parentNode;
1954
- return r ? r === window.document ? window.document.body.scrollTop || window.document.body.scrollLeft ? window.document.body : window.document.documentElement : Hr(r) ? r : ye(r) : t;
1955
- }, mi = function(t, r, n, o) {
1972
+ return r ? r === window.document ? window.document.body.scrollTop || window.document.body.scrollLeft ? window.document.body : window.document.documentElement : Hr(r) ? r : we(r) : t;
1973
+ }, wi = function(t, r, n, o) {
1956
1974
  var i = Ye(t), a = i.top, s = i.left, l = i.width, u = i.height;
1957
1975
  if (n) {
1958
1976
  if (o.parentElement) {
1959
- var c = hi(o.parentElement), f = c.top, p = c.left;
1977
+ var c = yi(o.parentElement), f = c.top, p = c.left;
1960
1978
  a -= f, s -= p;
1961
1979
  }
1962
1980
  return {
@@ -1977,11 +1995,11 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
1977
1995
  height: u
1978
1996
  };
1979
1997
  return d;
1980
- }, gi = function(t) {
1998
+ }, xi = function(t) {
1981
1999
  return t === document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : t.scrollTop;
1982
- }, bi = function(t) {
2000
+ }, Ei = function(t) {
1983
2001
  return t === document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : t.scrollLeft;
1984
- }, yi = function(t, r) {
2002
+ }, Si = function(t, r) {
1985
2003
  var n = Math.max(t.scrollHeight, t.offsetHeight, r.clientHeight, r.scrollHeight, r.offsetHeight), o = Math.max(t.scrollWidth, t.offsetWidth, r.clientWidth, r.scrollWidth, r.offsetWidth);
1986
2004
  return {
1987
2005
  width: o,
@@ -2010,7 +2028,7 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2010
2028
  return r.right = r.left + r.width, r.bottom = r.top + r.height, r;
2011
2029
  }, $r = function(t) {
2012
2030
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = t.parentNode;
2013
- return n ? (Hr(n) && r.push(n), ue(n, "position") === "fixed" ? r : $r(n, r)) : r;
2031
+ return n ? (Hr(n) && r.push(n), fe(n, "position") === "fixed" ? r : $r(n, r)) : r;
2014
2032
  }, Nt = function(t) {
2015
2033
  var r = {
2016
2034
  width: t.offsetWidth,
@@ -2027,12 +2045,12 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2027
2045
  e.forEach(function(t) {
2028
2046
  t.target.popperVm && t.contentRect.height > 50 && t.target.popperVm.update();
2029
2047
  });
2030
- }) : null, wi = /* @__PURE__ */ function() {
2048
+ }) : null, _i = /* @__PURE__ */ function() {
2031
2049
  function e(t, r, n) {
2032
2050
  var o = this;
2033
- it(this, e), $(this, "_reference", void 0), $(this, "_popper", void 0), $(this, "state", void 0), $(this, "_options", void 0), $(this, "modifiers", {}), $(this, "popperOuterSize", null), this._reference = t, this._popper = r, this.state = {}, this._options = ee(ee({}, vi), n), this._options.modifierFns = jr.map(function(i) {
2051
+ it(this, e), $(this, "_reference", void 0), $(this, "_popper", void 0), $(this, "state", void 0), $(this, "_options", void 0), $(this, "modifiers", {}), $(this, "popperOuterSize", null), this._reference = t, this._popper = r, this.state = {}, this._options = ee(ee({}, bi), n), this._options.modifierFns = jr.map(function(i) {
2034
2052
  return o[i];
2035
- }), w || (this._popper.setAttribute("x-placement", this._options.placement), this.state.position = this._getPopperPositionByRefernce(this._reference), be(this._popper, {
2053
+ }), w || (this._popper.setAttribute("x-placement", this._options.placement), this.state.position = this._getPopperPositionByRefernce(this._reference), ye(this._popper, {
2036
2054
  position: this.state.position,
2037
2055
  top: 0
2038
2056
  }), this._popper && (this._popper.popperVm = this, Lt && Lt.observe(this._popper)), this.update(), this._setupEventListeners());
@@ -2086,7 +2104,7 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2086
2104
  })) : Object.assign(n, {
2087
2105
  top: i,
2088
2106
  left: o
2089
- }), Object.assign(n, r.styles), be(this._popper, n), this._popper.setAttribute("x-placement", r.placement), r.offsets.arrow && be(r.arrowElement, r.offsets.arrow), r;
2107
+ }), Object.assign(n, r.styles), ye(this._popper, n), this._popper.setAttribute("x-placement", r.placement), r.offsets.arrow && ye(r.arrowElement, r.offsets.arrow), r;
2090
2108
  }
2091
2109
  // 判断 placement是不是2段式的,是则处理一下偏移。 修改data.offsets.popper的值
2092
2110
  }, {
@@ -2212,7 +2230,7 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2212
2230
  o = o.split("-")[0];
2213
2231
  var i = {
2214
2232
  position: this.state.position
2215
- }, a = i.position === "fixed", s = mi(n, Fe(r), a, r), l = this.popperOuterSize ? this.popperOuterSize : this.popperOuterSize = Be(r), u = l.width, c = l.height;
2233
+ }, a = i.position === "fixed", s = wi(n, Fe(r), a, r), l = this.popperOuterSize ? this.popperOuterSize : this.popperOuterSize = Be(r), u = l.width, c = l.height;
2216
2234
  return ~["right", "left"].indexOf(o) ? (i.top = s.top + s.height / 2 - c / 2, o === "left" ? i.left = s.left - u : i.left = s.right) : (i.left = s.left + s.width / 2 - u / 2, o === "top" ? i.top = s.top - c : i.top = s.bottom), i.width = u, i.height = c, {
2217
2235
  popper: i,
2218
2236
  reference: s
@@ -2230,13 +2248,13 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2230
2248
  r.state.updateBoundFn();
2231
2249
  }
2232
2250
  }, S(window, "resize", this.state.updateBoundFn), this._options.boundariesElement !== "window") {
2233
- var n, o, i, a = this._options.scrollParent || ye(this._reference), s = [];
2251
+ var n, o, i, a = this._options.scrollParent || we(this._reference), s = [];
2234
2252
  if ((n = a) !== null && n !== void 0 && (o = n.dataset) !== null && o !== void 0 && (i = o.tag) !== null && i !== void 0 && i.includes("-form")) {
2235
2253
  s.push(a);
2236
- var l = ye(a);
2254
+ var l = we(a);
2237
2255
  (l === window.document.body || l === window.document.documentElement) && (l = window), s.push(l);
2238
2256
  }
2239
- if ((a === window.document.body || a === window.document.documentElement) && (a = window), this.state.scrollTarget = a, this._options.bubbling || k.globalScroll) {
2257
+ if ((a === window.document.body || a === window.document.documentElement) && (a = window), this.state.scrollTarget = a, this._options.bubbling || C.globalScroll) {
2240
2258
  var u = $r(this._reference);
2241
2259
  this.state.scrollTargets = u || [], u.forEach(function(c) {
2242
2260
  S(c, "scroll", r.state.scrollUpdate);
@@ -2251,10 +2269,10 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2251
2269
  key: "_removeEventListeners",
2252
2270
  value: function() {
2253
2271
  var r = this;
2254
- if (R(window, "resize", this.state.updateBoundFn), this._options.boundariesElement !== "window" && this.state.scrollTarget && (R(this.state.scrollTarget, "scroll", this.state.scrollUpdate), this.state.scrollTarget = null, this._options.bubbling || k.globalScroll)) {
2272
+ if (I(window, "resize", this.state.updateBoundFn), this._options.boundariesElement !== "window" && this.state.scrollTarget && (I(this.state.scrollTarget, "scroll", this.state.scrollUpdate), this.state.scrollTarget = null, this._options.bubbling || C.globalScroll)) {
2255
2273
  var n = this.state.scrollTargets || [];
2256
2274
  n.forEach(function(o) {
2257
- R(o, "scroll", r.state.scrollUpdate);
2275
+ I(o, "scroll", r.state.scrollUpdate);
2258
2276
  }), this.state.scrollTargets = null;
2259
2277
  }
2260
2278
  this.state.updateBoundFn = null, this.state.scrollUpdate = null;
@@ -2270,7 +2288,7 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2270
2288
  bottom: 0
2271
2289
  };
2272
2290
  if (o === "window" || o === "body") {
2273
- var a = window.document.body, s = window.document.documentElement, l = yi(a, s), u = l.width, c = l.height;
2291
+ var a = window.document.body, s = window.document.documentElement, l = Si(a, s), u = l.width, c = l.height;
2274
2292
  i = {
2275
2293
  top: 0,
2276
2294
  right: u,
@@ -2278,7 +2296,7 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2278
2296
  left: 0
2279
2297
  };
2280
2298
  } else if (o === "viewport") {
2281
- var f = Fe(this._popper), p = ye(this._popper), v = Nt(f), d = r.offsets.popper.position === "fixed", y = d || !this._options.appendToBody && ["right", "left"].includes(this._options.placement), h = y ? 0 : gi(p), m = y ? 0 : bi(p), E = window;
2299
+ var f = Fe(this._popper), p = we(this._popper), v = Nt(f), d = r.offsets.popper.position === "fixed", y = d || !this._options.appendToBody && ["right", "left"].includes(this._options.placement), h = y ? 0 : xi(p), m = y ? 0 : Ei(p), E = window;
2282
2300
  i = {
2283
2301
  top: 0 - (v.top - h),
2284
2302
  right: E.document.documentElement.clientWidth - (v.left - m),
@@ -2286,10 +2304,10 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2286
2304
  left: 0 - (v.left - m)
2287
2305
  };
2288
2306
  } else if (Fe(this._popper) === o) {
2289
- var _ = o.clientWidth, C = o.clientHeight;
2307
+ var _ = o.clientWidth, P = o.clientHeight;
2290
2308
  i = {
2291
2309
  right: _,
2292
- bottom: C,
2310
+ bottom: P,
2293
2311
  top: 0,
2294
2312
  left: 0
2295
2313
  };
@@ -2297,8 +2315,14 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2297
2315
  i = Nt(o);
2298
2316
  return i.right -= n, i.left += n, i.bottom = i.bottom - n, i.top = i.top + n, i;
2299
2317
  }
2318
+ // https://popper.js.org/docs/v2/lifecycle/#set-new-options
2319
+ }, {
2320
+ key: "setOptions",
2321
+ value: function(r) {
2322
+ Object.assign(this._options, r);
2323
+ }
2300
2324
  }]);
2301
- }(), xi = function(t) {
2325
+ }(), Oi = function(t) {
2302
2326
  var r = t.api, n = t.state, o = t.props;
2303
2327
  return function(i) {
2304
2328
  var a = 200, s = i && i.type === "mouseenter" ? a : 0;
@@ -2309,26 +2333,26 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2309
2333
  }
2310
2334
  r.setExpectedState(!0), r.handleShowPopper(s);
2311
2335
  };
2312
- }, Ei = function(t) {
2336
+ }, Ti = function(t) {
2313
2337
  return function() {
2314
2338
  t.setExpectedState(!1), t.debounceClose();
2315
2339
  };
2316
- }, Si = function(t) {
2340
+ }, Ai = function(t) {
2317
2341
  var r = t.api, n = t.state;
2318
2342
  return function() {
2319
2343
  n.focusing = !0, r.show();
2320
2344
  };
2321
- }, _i = function(t) {
2345
+ }, ki = function(t) {
2322
2346
  var r = t.api, n = t.state;
2323
2347
  return function() {
2324
2348
  n.focusing = !1, r.hide();
2325
2349
  };
2326
- }, Oi = function(t) {
2350
+ }, Ci = function(t) {
2327
2351
  var r = t.api, n = t.state;
2328
2352
  return function() {
2329
2353
  n.focusing = !1, r.show();
2330
2354
  };
2331
- }, Ti = function(t) {
2355
+ }, Pi = function(t) {
2332
2356
  var r = t.props, n = t.state;
2333
2357
  return function(o) {
2334
2358
  !n.expectedState || r.manual || (clearTimeout(n.timeout), n.timeout = window.setTimeout(function() {
@@ -2337,12 +2361,12 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2337
2361
  n.showPopper = !1;
2338
2362
  }, r.hideAfter)));
2339
2363
  };
2340
- }, Ai = function(t) {
2364
+ }, Ri = function(t) {
2341
2365
  var r = t.api, n = t.props, o = t.state;
2342
2366
  return function() {
2343
2367
  n.enterable && o.expectedState || n.manual || (clearTimeout(o.timeout), o.timeoutPending && clearTimeout(o.timeoutPending), o.showPopper = !1, n.disabled && r.doDestroy());
2344
2368
  };
2345
- }, ki = function(t) {
2369
+ }, Ii = function(t) {
2346
2370
  var r = t.props, n = t.api, o = t.state, i = t.popperVmRef;
2347
2371
  return function(a) {
2348
2372
  if (!r.manual) {
@@ -2350,27 +2374,27 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2350
2374
  !l || !s || l.contains(a.target) || s.contains(a.target) || o.showPopper && (n.setExpectedState(!1), n.debounceClose());
2351
2375
  }
2352
2376
  };
2353
- }, Ci = function(t) {
2377
+ }, Mi = function(t) {
2354
2378
  var r = t.state;
2355
2379
  return function(n) {
2356
2380
  r.expectedState === !1 && clearTimeout(r.timeoutPending), r.expectedState = n;
2357
2381
  };
2358
- }, Pi = function(t) {
2382
+ }, Fi = function(t) {
2359
2383
  var r = t.state, n = t.api, o = t.vm;
2360
2384
  return function() {
2361
2385
  var i = r.referenceElm;
2362
- r.showPopper = !1, i && i.nodeType === 1 && (R(document, "click", n.handleDocumentClick), R(i, "mouseenter", n.show), R(i, "mouseleave", n.hide), R(i, "focus", n.focusHandler), R(i, "blur", n.handleBlur), R(i, "click", n.removeFocusing)), o.popperVM && (typeof o.popperVM.$destroy == "function" && o.popperVM.$destroy(), o.popperVM = null);
2386
+ r.showPopper = !1, i && i.nodeType === 1 && (I(document, "click", n.handleDocumentClick), I(i, "mouseenter", n.show), I(i, "mouseleave", n.hide), I(i, "focus", n.focusHandler), I(i, "blur", n.handleBlur), I(i, "click", n.removeFocusing)), o.popperVM && (typeof o.popperVM.$destroy == "function" && o.popperVM.$destroy(), o.popperVM = null);
2363
2387
  };
2364
- }, Ri = function(t) {
2388
+ }, Bi = function(t) {
2365
2389
  var r = t.api, n = t.props;
2366
- return ti(n.closeDelay, function() {
2390
+ return ii(n.closeDelay, function() {
2367
2391
  r.handleClosePopper();
2368
2392
  });
2369
- }, Ii = function(t) {
2393
+ }, Ni = function(t) {
2370
2394
  return function(r) {
2371
2395
  r ? se(t.referenceElm, "focusing") : le(t.referenceElm, "focusing");
2372
2396
  };
2373
- }, Mi = function(t) {
2397
+ }, Di = function(t) {
2374
2398
  var r = t.slots, n = t.api;
2375
2399
  return function() {
2376
2400
  if (!r.default || !r.default().length) {
@@ -2380,13 +2404,13 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2380
2404
  var o = r.default()[0];
2381
2405
  o = o.elm || o.el, o && o.focus ? o.focus() : n.handleFocus();
2382
2406
  };
2383
- }, Fi = function(t) {
2407
+ }, Li = function(t) {
2384
2408
  var r = t.api, n = t.state, o = t.vm;
2385
2409
  return function(i) {
2386
2410
  var a = null;
2387
2411
  o.$el.nodeType === 8 ? a = i : o.$el.nodeType === 1 && (a = o.$el), !(!a || a.nodeType === 8 || n.referenceElm) && (n.referenceElm = a, a.setAttribute("aria-describedby", n.tooltipId), a.setAttribute("tabindex", n.tabindex.toString()), S(document, "click", r.handleDocumentClick), S(a, "mouseenter", r.show), S(a, "mouseleave", r.hide), S(a, "focus", r.focusHandler), S(a, "blur", r.handleBlur), S(a, "click", r.removeFocusing));
2388
2412
  };
2389
- }, Bi = function(t) {
2413
+ }, Vi = function(t) {
2390
2414
  var r = t.state, n = t.popperVmRef;
2391
2415
  return function(o) {
2392
2416
  var i = rn(o), a;
@@ -2401,7 +2425,7 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2401
2425
  i.f();
2402
2426
  }
2403
2427
  };
2404
- }, Ni = function(t) {
2428
+ }, ji = function(t) {
2405
2429
  var r = t.vm, n = t.nextTick, o = t.popperVmRef;
2406
2430
  return function(i) {
2407
2431
  n(function() {
@@ -2417,13 +2441,13 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2417
2441
  }, jt = function(t) {
2418
2442
  var r = t.state, n = t.props, o = t.vm, i = t.slots, a = r.referenceElm || n.reference || o.$refs.reference && o.$refs.reference.$el || o.$refs.reference;
2419
2443
  return !a && i.reference && i.reference()[0] && (r.referenceElm = i.reference()[0].elm || i.reference()[0].el, a = r.referenceElm), a;
2420
- }, Di = function(t) {
2444
+ }, zi = function(t) {
2421
2445
  if (!(!t || !t.nodeType)) {
2422
2446
  var r = function(a) {
2423
2447
  return parseInt(window.getComputedStyle(a).zIndex, 10) || 0;
2424
2448
  }, n = r(t), o;
2425
2449
  do {
2426
- if (t = t.parentNode, t)
2450
+ if (t = t.parentNode, t && t instanceof ShadowRoot && t.host && (t = t.host), t)
2427
2451
  o = r(t);
2428
2452
  else
2429
2453
  break;
@@ -2431,7 +2455,7 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2431
2455
  } while (t !== document.body);
2432
2456
  return n + 1 + "";
2433
2457
  }
2434
- }, Li = function(t) {
2458
+ }, Hi = function(t) {
2435
2459
  var r = t.parent, n = t.emit, o = t.nextTick, i = t.onBeforeUnmount, a = t.onDeactivated, s = t.props, l = t.watch, u = t.reactive, c = t.vm, f = t.slots, p = t.toRefs, v = t.popperVmRef, d = u({
2436
2460
  popperJS: null,
2437
2461
  appended: !1,
@@ -2440,61 +2464,68 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2440
2464
  showPopper: s.manual ? !!s.modelValue : !1,
2441
2465
  referenceElm: null,
2442
2466
  currentPlacement: ""
2443
- }), y = function(b) {
2467
+ }), y = function(g) {
2444
2468
  if (!d.appended) {
2445
2469
  d.appended = !0;
2446
- var g = document.createElement("div");
2447
- g.setAttribute("x-arrow", ""), g.className = "popper__arrow", b.appendChild(g);
2448
- }
2449
- }, h = function(b) {
2450
- var g = (s == null ? void 0 : s.popperOptions) || {}, F = g.followReferenceHide, M = F === void 0 ? !0 : F, Ce = b._popper, A = b._reference;
2451
- M && ct(A) && (Ce.style.display = "none");
2452
- }, m = function(b) {
2453
- return s.zIndex === "relative" ? Di(b) : k.nextZIndex();
2454
- }, E = function(b) {
2470
+ var b = document.createElement("div");
2471
+ b.setAttribute("x-arrow", ""), b.className = "popper__arrow", g.appendChild(b);
2472
+ }
2473
+ }, h = function(g) {
2474
+ var b = (s == null ? void 0 : s.popperOptions) || {}, F = b.followReferenceHide, M = F === void 0 ? !0 : F, Ce = g._popper, k = g._reference;
2475
+ M && ct(k) && (Ce.style.display = "none");
2476
+ }, m = function(g) {
2477
+ return s.zIndex === "relative" ? zi(g) : C.nextZIndex();
2478
+ }, E = function(g) {
2455
2479
  if (!w && (d.currentPlacement = d.currentPlacement || s.placement, !!/^(top|bottom|left|right)(-start|-end)?$/g.test(d.currentPlacement))) {
2456
- var g = s.popperOptions || {
2480
+ var b = s.popperOptions || {
2457
2481
  gpuAcceleration: !1
2458
2482
  };
2459
- d.popperElm = d.popperElm || s.popper || c.$refs.popper || v.popper || b;
2483
+ d.popperElm = d.popperElm || s.popper || c.$refs.popper || v.popper || g;
2460
2484
  var F = d.popperElm, M = jt({
2461
2485
  state: d,
2462
2486
  props: s,
2463
2487
  vm: c,
2464
2488
  slots: f
2465
2489
  });
2466
- !F || !M || M.nodeType !== Node.ELEMENT_NODE || (s.visibleArrow && y(F), s.appendToBody || s.popperAppendToBody ? document.body.appendChild(d.popperElm) : (r && r.$el && r.$el.appendChild(d.popperElm), g.forceAbsolute = !0), g.placement = d.currentPlacement, g.offset = s.offset || 0, g.arrowOffset = s.arrowOffset || 0, g.adjustArrow = s.adjustArrow || !1, g.appendToBody = s.appendToBody || s.popperAppendToBody, d.popperJS = new wi(M, F, g), n("created", d), typeof g.onUpdate == "function" && d.popperJS.onUpdate(g.onUpdate), d.popperJS._popper.style.zIndex = m(d.popperJS._reference), h(d.popperJS), S(d.popperElm, "click", Vt));
2490
+ !F || !M || M.nodeType !== Node.ELEMENT_NODE || (s.visibleArrow && y(F), s.appendToBody || s.popperAppendToBody ? document.body.appendChild(d.popperElm) : (r && r.$el && r.$el.appendChild(d.popperElm), b.forceAbsolute = !0), b.placement = d.currentPlacement, b.offset = s.offset || 0, b.arrowOffset = s.arrowOffset || 0, b.adjustArrow = s.adjustArrow || !1, b.appendToBody = s.appendToBody || s.popperAppendToBody, d.popperJS = new _i(M, F, b), n("created", d), typeof b.onUpdate == "function" && d.popperJS.onUpdate(b.onUpdate), d.popperJS._popper.style.zIndex = m(d.popperJS._reference), h(d.popperJS), S(d.popperElm, "click", Vt));
2467
2491
  }
2468
- }, _ = function(b) {
2469
- b && b !== !0 && (d.popperElm = b);
2470
- var g = d.popperJS;
2471
- g ? (g._reference = jt({
2492
+ }, _ = function(g) {
2493
+ g && g !== !0 && (d.popperElm = g);
2494
+ var b = d.popperJS;
2495
+ b ? (b._reference = jt({
2472
2496
  state: d,
2473
2497
  props: s,
2474
2498
  vm: c,
2475
2499
  slots: f
2476
- }), g.update(), g._popper && b !== !0 && (g._popper.style.zIndex = m(g._reference), h(d.popperJS))) : E(b && b !== !0 ? b : void 0);
2477
- }, C = function(b) {
2478
- !d.popperJS || d.showPopper && !b || (d.popperJS.destroy(), d.popperJS = null);
2479
- }, H = function(b) {
2480
- b && d.popperElm && d.popperElm.parentNode === document.body && (R(d.popperElm, "click", Vt), d.popperElm.remove());
2500
+ }), b.update(), b._popper && g !== !0 && (b._popper.style.zIndex = m(b._reference), h(d.popperJS))) : E(g && g !== !0 ? g : void 0);
2501
+ }, P = function(g) {
2502
+ !d.popperJS || d.showPopper && !g || (d.popperJS.destroy(), d.popperJS = null);
2503
+ }, H = function(g) {
2504
+ g && d.popperElm && d.popperElm.parentNode === document.body && (I(d.popperElm, "click", Vt), d.popperElm.remove());
2481
2505
  };
2482
2506
  return l(function() {
2483
2507
  return d.showPopper;
2484
- }, function(I) {
2485
- s.disabled || (I && o(_), s.trigger === "manual" && n("update:modelValue", I));
2508
+ }, function(O) {
2509
+ s.disabled || (O && o(_), s.trigger === "manual" && n("update:modelValue", O));
2510
+ }), l(function() {
2511
+ return s.placement;
2512
+ }, function(O) {
2513
+ var g;
2514
+ d.currentPlacement = O, (g = d.popperJS) === null || g === void 0 || g.setOptions({
2515
+ placement: O
2516
+ }), !s.disabled && (O && o(_), s.trigger === "manual" && n("update:modelValue", O));
2486
2517
  }), i(function() {
2487
2518
  o(function() {
2488
- C(!0), (s.appendToBody || s.popperAppendToBody) && H("remove");
2519
+ P(!0), (s.appendToBody || s.popperAppendToBody) && H("remove");
2489
2520
  });
2490
2521
  }), a(function() {
2491
- C(!0), (s.appendToBody || s.popperAppendToBody) && H("remove");
2522
+ P(!0), (s.appendToBody || s.popperAppendToBody) && H("remove");
2492
2523
  }), ee({
2493
2524
  updatePopper: _,
2494
2525
  destroyPopper: H,
2495
- doDestroy: C
2526
+ doDestroy: P
2496
2527
  }, p(d));
2497
- }, Wr = ["state", "bindEvent", "hide", "show", "doDestroy", "handleFocus", "debounceClose", "handleShowPopper", "handleClosePopper", "setExpectedState", "updatePopper", "focusHandler"], Vi = function(t) {
2528
+ }, Wr = ["state", "bindEvent", "hide", "show", "doDestroy", "handleFocus", "debounceClose", "handleShowPopper", "handleClosePopper", "setExpectedState", "updatePopper", "focusHandler"], $i = function(t) {
2498
2529
  var r = t.reactive, n = t.showPopper, o = t.popperElm, i = t.referenceElm, a = t.props, s = t.inject, l = t.popperJS, u = t.currentPlacement;
2499
2530
  return r({
2500
2531
  popperJS: l,
@@ -2505,7 +2536,7 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2505
2536
  timeout: null,
2506
2537
  focusing: !1,
2507
2538
  expectedState: void 0,
2508
- tooltipId: Fo("tiny-tooltip-", 4),
2539
+ tooltipId: Lo("tiny-tooltip-", 4),
2509
2540
  tabindex: a.tabindex,
2510
2541
  xPlacement: "bottom",
2511
2542
  showContent: s("showContent", null),
@@ -2528,91 +2559,91 @@ var di = ["left", "right", "top", "bottom"], jr = ["shift", "offset", "preventOv
2528
2559
  onDeactivated: l,
2529
2560
  watch: o
2530
2561
  });
2531
- var C = Li(_), H = C.showPopper, I = C.updatePopper, b = C.popperElm, g = C.referenceElm, F = C.doDestroy, M = C.popperJS, Ce = C.currentPlacement, A = Vi({
2562
+ var P = Hi(_), H = P.showPopper, O = P.updatePopper, g = P.popperElm, b = P.referenceElm, F = P.doDestroy, M = P.popperJS, Ce = P.currentPlacement, k = $i({
2532
2563
  reactive: a,
2533
2564
  showPopper: H,
2534
- popperElm: b,
2535
- referenceElm: g,
2565
+ popperElm: g,
2566
+ referenceElm: b,
2536
2567
  props: t,
2537
2568
  inject: f,
2538
2569
  popperJS: M,
2539
2570
  currentPlacement: Ce
2540
2571
  });
2541
2572
  return Object.assign(m, {
2542
- state: A,
2573
+ state: k,
2543
2574
  doDestroy: F,
2544
- updatePopper: I,
2545
- show: xi({
2575
+ updatePopper: O,
2576
+ show: Oi({
2546
2577
  api: m,
2547
- state: A,
2578
+ state: k,
2548
2579
  props: t
2549
2580
  }),
2550
- hide: Ei(m),
2551
- destroyed: Pi({
2552
- state: A,
2581
+ hide: Ti(m),
2582
+ destroyed: Fi({
2583
+ state: k,
2553
2584
  api: m,
2554
2585
  vm: p
2555
2586
  }),
2556
- bindPopper: Ni({
2587
+ bindPopper: ji({
2557
2588
  vm: p,
2558
2589
  nextTick: y,
2559
2590
  popperVmRef: E
2560
2591
  }),
2561
- watchFocusing: Ii(A),
2562
- removeFocusing: Oi({
2592
+ watchFocusing: Ni(k),
2593
+ removeFocusing: Ci({
2563
2594
  api: m,
2564
- state: A
2595
+ state: k
2565
2596
  }),
2566
- handleBlur: _i({
2597
+ handleBlur: ki({
2567
2598
  api: m,
2568
- state: A
2599
+ state: k
2569
2600
  }),
2570
- handleFocus: Si({
2601
+ handleFocus: Ai({
2571
2602
  api: m,
2572
- state: A
2603
+ state: k
2573
2604
  }),
2574
- debounceClose: Ri({
2605
+ debounceClose: Bi({
2575
2606
  api: m,
2576
2607
  props: t
2577
2608
  }),
2578
- setExpectedState: Ci({
2579
- state: A
2609
+ setExpectedState: Mi({
2610
+ state: k
2580
2611
  }),
2581
- handleShowPopper: Ti({
2612
+ handleShowPopper: Pi({
2582
2613
  props: t,
2583
- state: A
2614
+ state: k
2584
2615
  }),
2585
- handleClosePopper: Ai({
2616
+ handleClosePopper: Ri({
2586
2617
  api: m,
2587
2618
  props: t,
2588
- state: A
2619
+ state: k
2589
2620
  }),
2590
- bindEvent: Fi({
2621
+ bindEvent: Li({
2591
2622
  api: m,
2592
- state: A,
2623
+ state: k,
2593
2624
  vm: p
2594
2625
  }),
2595
- focusHandler: Mi({
2626
+ focusHandler: Di({
2596
2627
  slots: d,
2597
2628
  api: m
2598
2629
  }),
2599
- handleDocumentClick: ki({
2630
+ handleDocumentClick: Ii({
2600
2631
  props: t,
2601
2632
  api: m,
2602
- state: A,
2633
+ state: k,
2603
2634
  popperVmRef: E
2604
2635
  }),
2605
- observeCallback: Bi({
2606
- state: A,
2636
+ observeCallback: Vi({
2637
+ state: k,
2607
2638
  popperVmRef: E
2608
2639
  })
2609
2640
  }), o(function() {
2610
- return A.focusing;
2641
+ return k.focusing;
2611
2642
  }, m.watchFocusing), o(function() {
2612
2643
  return t.modelValue;
2613
2644
  }, function(Pe) {
2614
2645
  return y(function() {
2615
- return t.manual && (A.showPopper = Pe);
2646
+ return t.manual && (k.showPopper = Pe);
2616
2647
  });
2617
2648
  }), u(function() {
2618
2649
  if (m.bindPopper(), t.genArrowByHtml) {
@@ -2772,7 +2803,7 @@ const zt = /* @__PURE__ */ tt({
2772
2803
  };
2773
2804
  return this.$nextTick(() => {
2774
2805
  !this.disabled && this.state.showPopper && i && this.updatePopper();
2775
- }), U("transition", s, [rr(we("div", {
2806
+ }), U("transition", s, [rr(ue("div", {
2776
2807
  ref: "popper",
2777
2808
  id: this.state.tooltipId,
2778
2809
  class: ["tiny-tooltip", "tiny-tooltip__popper", l, this.popperClass, {
@@ -2783,7 +2814,7 @@ const zt = /* @__PURE__ */ tt({
2783
2814
  "aria-hidden": this.disabled || !this.state.showPopper ? "true" : "false",
2784
2815
  onMouseenter: () => u(),
2785
2816
  onMouseleave: () => c()
2786
- }, [a ? we("div", {
2817
+ }, [a ? ue("div", {
2787
2818
  class: "tiny-tooltip__content-wrapper",
2788
2819
  style: `max-height:${this.contentMaxHeight}`
2789
2820
  }, [i]) : i]), [[nr, !this.disabled && this.state.showPopper && i]])]);
@@ -2855,7 +2886,7 @@ var N = {
2855
2886
  "arrow-left-success": "border-l-color-success after:border-l-color-success",
2856
2887
  "arrow-right-success": "border-r-color-success after:border-r-color-success"
2857
2888
  };
2858
- const ji = /* @__PURE__ */ tt({
2889
+ const Wi = /* @__PURE__ */ tt({
2859
2890
  name: ot + "Tooltip",
2860
2891
  componentName: "Tooltip",
2861
2892
  props: {
@@ -2955,6 +2986,9 @@ const ji = /* @__PURE__ */ tt({
2955
2986
  zIndex: {
2956
2987
  type: String,
2957
2988
  default: () => "next"
2989
+ },
2990
+ contentMaxHeight: {
2991
+ type: String
2958
2992
  }
2959
2993
  },
2960
2994
  setup(e, t) {
@@ -2985,15 +3019,17 @@ const ji = /* @__PURE__ */ tt({
2985
3019
  el: document.createElement("div"),
2986
3020
  component: {
2987
3021
  render: () => {
2988
- let s = e(this), l = {
3022
+ let s = e(this);
3023
+ const l = typeof s == "string";
3024
+ let u = {
2989
3025
  on: {
2990
3026
  "after-leave": this.doDestroy
2991
3027
  }
2992
- }, u = () => this.setExpectedState(!0), c = () => {
3028
+ }, c = () => this.setExpectedState(!0), f = () => {
2993
3029
  this.setExpectedState(!1), this.debounceClose();
2994
3030
  };
2995
- const f = this.state.xPlacement || "";
2996
- return U("transition", l, [rr(we("div", {
3031
+ const p = this.state.xPlacement || "";
3032
+ return U("transition", u, [rr(ue("div", {
2997
3033
  "data-tag": "tiny-tooltip",
2998
3034
  ref: "popper",
2999
3035
  id: this.state.tooltipId,
@@ -3001,11 +3037,13 @@ const ji = /* @__PURE__ */ tt({
3001
3037
  class: bt([N.tooltip, !this.effect && !this.type && N["tooltip-sm"], this.effect && N[`effect-${this.effect}`], this.type && N[`is-${this.type}`], this.disabled || !this.state.showPopper ? "hidden" : "", this.popperClass]),
3002
3038
  role: "tooltip",
3003
3039
  "aria-hidden": this.disabled || !this.state.showPopper ? "true" : "false",
3004
- onMouseenter: () => u(),
3005
- onMouseleave: () => c()
3006
- }, [s, this.visibleArrow ? we("div", {
3040
+ onMouseenter: () => c(),
3041
+ onMouseleave: () => f()
3042
+ }, [l ? ue("div", {
3043
+ style: `overflow:auto;max-height:${this.contentMaxHeight}`
3044
+ }, [s]) : s, this.visibleArrow ? ue("div", {
3007
3045
  "x-arrow": !0,
3008
- class: bt([N.arrow, N["placement-" + f.split("-")[0]], !this.effect && !this.type && N["placement-" + f.split("-")[0] + "-sm"], this.effect === "light" ? N["placement-" + f.split("-")[0] + "-light"] : "", this.effect === "dark" ? N["placement-" + f.split("-")[0] + "-dark"] : "", this.type ? N[`arrow-${f.split("-")[0]}-${this.type}`] : ""])
3046
+ class: bt([N.arrow, N["placement-" + p.split("-")[0]], !this.effect && !this.type && N["placement-" + p.split("-")[0] + "-sm"], this.effect === "light" ? N["placement-" + p.split("-")[0] + "-light"] : "", this.effect === "dark" ? N["placement-" + p.split("-")[0] + "-dark"] : "", this.type ? N[`arrow-${p.split("-")[0]}-${this.type}`] : ""])
3009
3047
  }, null) : ""]), [[nr, !this.disabled && this.state.showPopper && s]])]);
3010
3048
  }
3011
3049
  }
@@ -3046,10 +3084,10 @@ const ji = /* @__PURE__ */ tt({
3046
3084
  return i.class = r(i.class), o;
3047
3085
  }
3048
3086
  });
3049
- var zi = function(t) {
3087
+ var Ui = function(t) {
3050
3088
  var r, n = (typeof process > "u" ? "undefined" : xe(process)) === "object" ? (r = process.env) === null || r === void 0 ? void 0 : r.TINY_MODE : null;
3051
- return (n || t) === "pc" ? zt : (n || t) === "mobile-first" ? ji : zt;
3052
- }, Hi = ee(ee({}, rt), {}, {
3089
+ return (n || t) === "pc" ? zt : (n || t) === "mobile-first" ? Wi : zt;
3090
+ }, Gi = ee(ee({}, rt), {}, {
3053
3091
  visible: {
3054
3092
  type: String,
3055
3093
  default: function() {
@@ -3183,21 +3221,24 @@ var zi = function(t) {
3183
3221
  }
3184
3222
  },
3185
3223
  contentMaxHeight: {
3186
- type: String
3224
+ type: String,
3225
+ default: function() {
3226
+ return "80vh";
3227
+ }
3187
3228
  }
3188
3229
  });
3189
3230
  const Q = tt({
3190
3231
  name: ot + "Tooltip",
3191
3232
  componentName: "Tooltip",
3192
- props: Hi,
3233
+ props: Gi,
3193
3234
  setup: function(t, r) {
3194
3235
  return Qr({
3195
3236
  props: t,
3196
3237
  context: r,
3197
- template: zi
3238
+ template: Ui
3198
3239
  });
3199
3240
  }
3200
- }), $i = "3.22.0";
3241
+ }), qi = "3.22.0";
3201
3242
  Q.model = {
3202
3243
  prop: "modelValue",
3203
3244
  event: "update:modelValue"
@@ -3205,12 +3246,12 @@ Q.model = {
3205
3246
  Q.install = function(e) {
3206
3247
  e.component(Q.name, Q);
3207
3248
  };
3208
- Q.version = $i;
3209
- var Wi = 2, fe = {
3249
+ Q.version = qi;
3250
+ var Ji = 2, ce = {
3210
3251
  value: null
3211
- }, Ne = Ve.ref(""), Ui = function(t) {
3212
- return (t == null ? void 0 : t.textContent) && (t.scrollWidth > t.clientWidth || t.scrollHeight - t.clientHeight > Wi);
3213
- }, Gi = function(t) {
3252
+ }, Ne = Ve.ref(""), Xi = function(t) {
3253
+ return (t == null ? void 0 : t.textContent) && (t.scrollWidth > t.clientWidth || t.scrollHeight - t.clientHeight > Ji);
3254
+ }, Yi = function(t) {
3214
3255
  var r;
3215
3256
  return !!(!(t == null || (r = t.boundingValue) === null || r === void 0) && r.always);
3216
3257
  }, De = function(t) {
@@ -3221,11 +3262,11 @@ var Wi = 2, fe = {
3221
3262
  return ((r = t.boundingValue) === null || r === void 0 ? void 0 : r.placement) || "top";
3222
3263
  }, Gr = function(t) {
3223
3264
  var r = t.currentTarget;
3224
- if (r.boundingValue && (Gi(r) || Ui(r))) {
3265
+ if (r.boundingValue && (Yi(r) || Xi(r))) {
3225
3266
  var n, o;
3226
- if (!fe.value) {
3267
+ if (!ce.value) {
3227
3268
  var i;
3228
- Ne.value = ((i = r.boundingValue) === null || i === void 0 ? void 0 : i.content) || r.textContent, fe.value = nt({
3269
+ Ne.value = ((i = r.boundingValue) === null || i === void 0 ? void 0 : i.content) || r.textContent, ce.value = nt({
3229
3270
  el: document.createElement("div"),
3230
3271
  propsData: {
3231
3272
  renderContent: function() {
@@ -3239,52 +3280,52 @@ var Wi = 2, fe = {
3239
3280
  component: Q
3240
3281
  });
3241
3282
  }
3242
- var a = fe.value, s = a.state.popperElm;
3283
+ var a = ce.value, s = a.state.popperElm;
3243
3284
  Ne.value = ((n = r.boundingValue) === null || n === void 0 ? void 0 : n.content) || r.textContent, a.state.referenceElm = r, a.state.currentPlacement = Le(r), s && s.classList.replace("is-".concat(De(r) ? "light" : "dark"), "is-".concat(De(r) ? "dark" : "light")), a.show(), (o = a.state.popperJS) !== null && o !== void 0 && o._options && (a.state.popperJS._options.placement = Le(r)), a.updatePopper();
3244
3285
  }
3245
3286
  }, qr = function() {
3246
- fe.value && fe.value.hide();
3247
- }, me = function(t, r) {
3287
+ ce.value && ce.value.hide();
3288
+ }, ge = function(t, r) {
3248
3289
  var n, o = r.value, i = o === void 0 ? {} : o;
3249
3290
  t.boundingValue = i, i && !((n = t.boundingValue) !== null && n !== void 0 && n.listened) && (t.addEventListener("mouseenter", Gr), t.addEventListener("mouseleave", qr), t.boundingValue.listened = !0);
3250
3291
  }, Ht = function(t) {
3251
3292
  var r;
3252
3293
  (r = t.boundingValue) !== null && r !== void 0 && r.listened && (t.removeEventListener("mouseenter", Gr), t.removeEventListener("mouseleave", qr));
3253
3294
  };
3254
- const sa = {
3255
- bind: me,
3295
+ const ca = {
3296
+ bind: ge,
3256
3297
  unbind: Ht,
3257
- update: me,
3258
- beforeMount: me,
3298
+ update: ge,
3299
+ beforeMount: ge,
3259
3300
  unmounted: Ht,
3260
- updated: me
3301
+ updated: ge
3261
3302
  };
3262
- var W = [], O = "@@clickoutsideContext", K, qi = 0;
3303
+ var W = [], T = "@@clickoutsideContext", K, Zi = 0;
3263
3304
  w || (S(document, "mousedown", function(e) {
3264
3305
  K = e, W.filter(function(t) {
3265
- return t[O].mousedownTrigger;
3306
+ return t[T].mousedownTrigger;
3266
3307
  }).forEach(function(t) {
3267
- return t[O].documentHandler(e, K);
3308
+ return t[T].documentHandler(e, K);
3268
3309
  });
3269
3310
  }), S(document, "mouseup", function(e) {
3270
3311
  W.filter(function(t) {
3271
- return !t[O].mousedownTrigger;
3312
+ return !t[T].mousedownTrigger;
3272
3313
  }).forEach(function(t) {
3273
3314
  var r;
3274
- return t[O].documentHandler(e, (r = t[O]) !== null && r !== void 0 && r.mouseupTrigger ? e : K);
3315
+ return t[T].documentHandler(e, (r = t[T]) !== null && r !== void 0 && r.mouseupTrigger ? e : K);
3275
3316
  }), K = null;
3276
3317
  }));
3277
3318
  var $t = function(t, r, n) {
3278
3319
  return function() {
3279
3320
  var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = n.context.popperElm || n.context.state && n.context.state.popperElm;
3280
- !(o != null && o.target) || !(i != null && i.target) || t.contains(o.target) || t.contains(i.target) || t === o.target || a && (a.contains(o.target) || a.contains(i.target)) || (r.expression && t[O].methodName && n.context[t[O].methodName] ? n.context[t[O].methodName]() : t[O].bindingFn && t[O].bindingFn());
3321
+ !(o != null && o.target) || !(i != null && i.target) || t.contains(o.target) || t.contains(i.target) || t === o.target || a && (a.contains(o.target) || a.contains(i.target)) || (r.expression && t[T].methodName && n.context[t[T].methodName] ? n.context[t[T].methodName]() : t[T].bindingFn && t[T].bindingFn());
3281
3322
  };
3282
3323
  };
3283
- const la = {
3324
+ const pa = {
3284
3325
  bind: function(t, r, n) {
3285
3326
  W.push(t);
3286
- var o = qi++, i = r.modifiers, a = r.expression, s = r.value, l = i || {}, u = l.mousedown, c = u === void 0 ? !1 : u, f = l.mouseup, p = f === void 0 ? !1 : f;
3287
- t[O] = {
3327
+ var o = Zi++, i = r.modifiers, a = r.expression, s = r.value, l = i || {}, u = l.mousedown, c = u === void 0 ? !1 : u, f = l.mouseup, p = f === void 0 ? !1 : f;
3328
+ t[T] = {
3288
3329
  id: o,
3289
3330
  documentHandler: $t(t, r, n),
3290
3331
  methodName: a,
@@ -3295,16 +3336,16 @@ const la = {
3295
3336
  },
3296
3337
  update: function(t, r, n) {
3297
3338
  var o = r.modifiers, i = r.expression, a = r.value, s = o || {}, l = s.mousedown, u = l === void 0 ? !1 : l, c = s.mouseup, f = c === void 0 ? !1 : c;
3298
- t[O].documentHandler = $t(t, r, n), t[O].methodName = i, t[O].bindingFn = a, t[O].mousedownTrigger = u, t[O].mouseupTrigger = f;
3339
+ t[T].documentHandler = $t(t, r, n), t[T].methodName = i, t[T].bindingFn = a, t[T].mousedownTrigger = u, t[T].mouseupTrigger = f;
3299
3340
  },
3300
3341
  unbind: function(t) {
3301
3342
  if (t.nodeType === Node.ELEMENT_NODE) {
3302
3343
  for (var r = W.length, n = 0; n < r; n++)
3303
- if (W[n][O].id === t[O].id) {
3344
+ if (W[n][T].id === t[T].id) {
3304
3345
  W.splice(n, 1);
3305
3346
  break;
3306
3347
  }
3307
- W.length === 0 && K && (K = null), delete t[O];
3348
+ W.length === 0 && K && (K = null), delete t[T];
3308
3349
  }
3309
3350
  }
3310
3351
  };
@@ -3315,7 +3356,7 @@ function Jr(e, t) {
3315
3356
  }
3316
3357
  return n;
3317
3358
  }
3318
- function Ji(e, t, r) {
3359
+ function Ki(e, t, r) {
3319
3360
  t.forEach(function(n) {
3320
3361
  var o = n.textContent, i = o.indexOf(r), a = o.substring(0, i), s = o.substring(i + r.length);
3321
3362
  n.textContent = a;
@@ -3325,7 +3366,7 @@ function Ji(e, t, r) {
3325
3366
  n.after(l, u);
3326
3367
  }), t.length && mt(e, r);
3327
3368
  }
3328
- function Xi(e) {
3369
+ function Qi(e) {
3329
3370
  var t = /* @__PURE__ */ new Set();
3330
3371
  e.forEach(function(r) {
3331
3372
  var n;
@@ -3342,26 +3383,26 @@ function mt(e, t) {
3342
3383
  var o = n.textContent || "";
3343
3384
  return o.includes(t);
3344
3385
  });
3345
- Ji(e, r, t);
3386
+ Ki(e, r, t);
3346
3387
  }
3347
3388
  }
3348
- function Yi(e) {
3389
+ function ea(e) {
3349
3390
  var t = Jr(e, function(r) {
3350
3391
  return r.parentElement.classList.contains("tiny-hl-query-node");
3351
3392
  });
3352
- Xi(t);
3393
+ Qi(t);
3353
3394
  }
3354
3395
  var Wt = function(t, r) {
3355
3396
  t.classList.toggle("tiny-hl-query", !0);
3356
3397
  var n = r.value;
3357
3398
  mt(t, n);
3358
3399
  }, Ut = function(t) {
3359
- Yi(t);
3400
+ ea(t);
3360
3401
  }, Gt = function(t, r) {
3361
3402
  var n = r.value;
3362
3403
  mt(t, n);
3363
3404
  };
3364
- const ua = {
3405
+ const da = {
3365
3406
  mounted: Wt,
3366
3407
  beforeUpdate: Ut,
3367
3408
  updated: Gt,
@@ -3370,10 +3411,10 @@ const ua = {
3370
3411
  update: Ut,
3371
3412
  componentUpdated: Gt
3372
3413
  };
3373
- var D = "@@infinitescrollContext", Zi = 50, Ki = 200, Qi = 0, ea = {
3414
+ var D = "@@infinitescrollContext", ta = 50, ra = 200, na = 0, oa = {
3374
3415
  delay: {
3375
3416
  type: Number,
3376
- default: Ki
3417
+ default: ra
3377
3418
  },
3378
3419
  disabled: {
3379
3420
  type: Boolean,
@@ -3381,7 +3422,7 @@ var D = "@@infinitescrollContext", Zi = 50, Ki = 200, Qi = 0, ea = {
3381
3422
  },
3382
3423
  distance: {
3383
3424
  type: Number,
3384
- default: Qi
3425
+ default: na
3385
3426
  },
3386
3427
  immediate: {
3387
3428
  type: Boolean,
@@ -3396,7 +3437,7 @@ var D = "@@infinitescrollContext", Zi = 50, Ki = 200, Qi = 0, ea = {
3396
3437
  if (r === Number)
3397
3438
  return Number(t);
3398
3439
  }, gt = function(t, r) {
3399
- return Object.entries(ea).reduce(function(n, o) {
3440
+ return Object.entries(oa).reduce(function(n, o) {
3400
3441
  var i = an(o, 2), a = i[0], s = i[1], l = s.type, u = s.default, c = "infinite-scroll-".concat(a), f = r.$el.getAttribute(c), p = t.getAttribute(c), v;
3401
3442
  return (Y(p) && Y(f) || !Y(p)) && (v = qt(p, l, u)), Y(p) && !Y(f) && (v = qt(f, l, u)), n[a] = Number.isNaN(v) ? u : v, n;
3402
3443
  }, {});
@@ -3407,16 +3448,16 @@ var D = "@@infinitescrollContext", Zi = 50, Ki = 200, Qi = 0, ea = {
3407
3448
  for (var r = 0, n = t; n; )
3408
3449
  r += n.offsetTop, n = n.offsetParent;
3409
3450
  return r;
3410
- }, ta = function(t, r) {
3451
+ }, ia = function(t, r) {
3411
3452
  return Math.abs(Jt(t) - Jt(r));
3412
- }, ra = function(t, r) {
3453
+ }, aa = function(t, r) {
3413
3454
  var n = t[D], o = n.container, i = n.containerEl, a = n.instance, s = n.observer, l = n.lastScrollTop, u = gt(t, a), c = u.disabled, f = u.distance, p = i.clientHeight, v = i.scrollHeight, d = i.scrollTop, y = d - l;
3414
3455
  if (t[D].lastScrollTop = d, !(s || c || y < 0)) {
3415
3456
  var h = !1;
3416
3457
  if (o === t)
3417
3458
  h = v - (p + d) <= f;
3418
3459
  else {
3419
- var m = t.clientTop, E = t.scrollHeight, _ = ta(t, i);
3460
+ var m = t.clientTop, E = t.scrollHeight, _ = ia(t, i);
3420
3461
  h = d + p >= _ + m + E - f;
3421
3462
  }
3422
3463
  h && r.call(a);
@@ -3431,7 +3472,7 @@ var Xt = function(t, r, n) {
3431
3472
  if (typeof i != "function")
3432
3473
  throw new TypeError('[TINY Error][InfiniteScroll] "v-infinite-scroll" binding value must be a function');
3433
3474
  o.$nextTick(function() {
3434
- var a = gt(t, o), s = a.delay, l = a.immediate, u = uo(t, !0), c = u === window ? document.documentElement : u, f = ce(s, ra.bind(null, t, i));
3475
+ var a = gt(t, o), s = a.delay, l = a.immediate, u = uo(t, !0), c = u === window ? document.documentElement : u, f = pe(s, aa.bind(null, t, i));
3435
3476
  if (u) {
3436
3477
  if (t[D] = {
3437
3478
  instance: o,
@@ -3442,7 +3483,7 @@ var Xt = function(t, r, n) {
3442
3483
  onScroll: f,
3443
3484
  lastScrollTop: c.scrollTop
3444
3485
  }, l) {
3445
- var p = new MutationObserver(ce(Zi, Ze.bind(null, t, i)));
3486
+ var p = new MutationObserver(pe(ta, Ze.bind(null, t, i)));
3446
3487
  t[D].observer = p, p.observe(t, {
3447
3488
  childList: !0,
3448
3489
  subtree: !0
@@ -3463,7 +3504,7 @@ var Xt = function(t, r, n) {
3463
3504
  var r = t[D], n = r.container, o = r.onScroll;
3464
3505
  n && n.removeEventListener("scroll", o), Xr(t);
3465
3506
  };
3466
- const fa = {
3507
+ const va = {
3467
3508
  bind: Xt,
3468
3509
  update: Yt,
3469
3510
  unbind: Zt,
@@ -3471,16 +3512,16 @@ const fa = {
3471
3512
  updated: Yt,
3472
3513
  unmounted: Zt
3473
3514
  };
3474
- var Te = "@@observevisibilityContext", na = function(t) {
3515
+ var Te = "@@observevisibilityContext", sa = function(t) {
3475
3516
  var r;
3476
3517
  return typeof t == "function" ? r = {
3477
3518
  callback: t
3478
3519
  } : r = t, r;
3479
3520
  }, Yr = function(t) {
3480
3521
  var r = t.options, n = t.instance, o = t.state;
3481
- o.observer && Ke(o), !o.frozen && (o.options = na(r), o.callback = function(i, a) {
3522
+ o.observer && Ke(o), !o.frozen && (o.options = sa(r), o.callback = function(i, a) {
3482
3523
  o.options.callback(i, a), i && o.options.once && (o.frozen = !0, Ke(o));
3483
- }, o.callback && o.options.throttle && (o.callback = ce(o.options.throttleDelay || 20, o.callback)), o.observer = new IntersectionObserver(function(i) {
3524
+ }, o.callback && o.options.throttle && (o.callback = pe(o.options.throttleDelay || 20, o.callback)), o.observer = new IntersectionObserver(function(i) {
3484
3525
  var a = i[0];
3485
3526
  if (i.length > 1) {
3486
3527
  var s = i.find(function(l) {
@@ -3494,7 +3535,7 @@ var Te = "@@observevisibilityContext", na = function(t) {
3494
3535
  }));
3495
3536
  }, Ke = function(t) {
3496
3537
  t.observer && (t.observer.disconnect(), t.observer = null), t.callback && (t.callback = null);
3497
- }, oa = function(t) {
3538
+ }, la = function(t) {
3498
3539
  var r = t.el, n = t.options, o = t.instance, i = {
3499
3540
  el: r,
3500
3541
  observer: null,
@@ -3510,7 +3551,7 @@ var Te = "@@observevisibilityContext", na = function(t) {
3510
3551
  if (o) {
3511
3552
  if (typeof IntersectionObserver > "u")
3512
3553
  throw new TypeError("[TINY Error][ObserveVisibility] IntersectionObserver API is not available in your browser");
3513
- i = i || a, t[Te] = oa({
3554
+ i = i || a, t[Te] = la({
3514
3555
  el: t,
3515
3556
  options: o,
3516
3557
  instance: i
@@ -3538,7 +3579,7 @@ var Te = "@@observevisibilityContext", na = function(t) {
3538
3579
  }, et = function(t) {
3539
3580
  var r = t[Te];
3540
3581
  r && (Ke(r), delete t[Te]);
3541
- }, ca = {
3582
+ }, ha = {
3542
3583
  bind: Qe,
3543
3584
  update: Kt,
3544
3585
  unbind: et,
@@ -3546,7 +3587,7 @@ var Te = "@@observevisibilityContext", na = function(t) {
3546
3587
  updated: Kt,
3547
3588
  unmounted: et
3548
3589
  };
3549
- const pa = function(e, t) {
3590
+ const ma = function(e, t) {
3550
3591
  var r = 200, n = null, o, i = function() {
3551
3592
  typeof t.value == "function" && t.value.apply();
3552
3593
  }, a = function() {
@@ -3557,10 +3598,10 @@ const pa = function(e, t) {
3557
3598
  });
3558
3599
  };
3559
3600
  export {
3560
- sa as AutoTip,
3561
- la as Clickoutside,
3562
- ua as HighlightQuery,
3563
- fa as InfiniteScroll,
3564
- ca as ObserveVisibility,
3565
- pa as RepeatClick
3601
+ ca as AutoTip,
3602
+ pa as Clickoutside,
3603
+ da as HighlightQuery,
3604
+ va as InfiniteScroll,
3605
+ ha as ObserveVisibility,
3606
+ ma as RepeatClick
3566
3607
  };