@opentiny/tiny-robot 0.3.0-alpha.8 → 0.3.0-rc.0

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/index2.js CHANGED
@@ -1,638 +1,710 @@
1
- import { n as w, x as I, aB as H, S as z, ac as R, Z as _, G as W, b as U, c as G, P as L, d as F, O as Z, j as $, aC as Q, aD as Y, f as q, g as j, aE as K, aF as X, h as J, $ as ee } from "./index7.js";
2
- import * as N from "vue";
3
- import { withDirectives as te, createVNode as M, vShow as ne } from "vue";
4
- const k = (e) => e.stopPropagation(), V = ({ state: e, props: t, vm: n, slots: r }) => {
5
- let p = e.referenceElm || t.reference || n.$refs.reference && n.$refs.reference.$el || n.$refs.reference;
6
- return !p && r.reference && r.reference()[0] && (e.referenceElm = r.reference()[0].elm || r.reference()[0].el, p = e.referenceElm), p;
7
- }, re = (e) => {
8
- if (!e || !e.nodeType) return;
9
- let t = (p) => parseInt(window.getComputedStyle(p).zIndex, 10) || 0, n = t(e), r;
10
- do {
11
- if (e = e.parentNode, e && e instanceof ShadowRoot && e.host && (e = e.host), e)
12
- r = t(e);
13
- else
14
- break;
15
- n = r > n ? r : n;
16
- } while (e !== document.body);
17
- return n + 1 + "";
18
- }, oe = (e) => {
19
- const {
20
- parent: t,
21
- emit: n,
22
- nextTick: r,
23
- onBeforeUnmount: p,
24
- onDeactivated: c,
25
- props: o,
26
- watch: y,
27
- reactive: f,
28
- vm: i,
29
- slots: m,
30
- toRefs: h,
31
- popperVmRef: g
32
- } = e, a = f({
33
- popperJS: null,
34
- appended: !1,
35
- // arrow 是否添加
36
- popperElm: null,
37
- showPopper: o.manual ? !!o.modelValue : !1,
38
- referenceElm: null,
39
- currentPlacement: ""
40
- }), s = (l) => {
41
- if (a.appended)
42
- return;
43
- a.appended = !0;
44
- const u = document.createElement("div");
45
- u.setAttribute("x-arrow", ""), u.className = "popper__arrow", l.appendChild(u);
46
- }, b = (l) => {
47
- const { followReferenceHide: u = !0 } = (o == null ? void 0 : o.popperOptions) || {}, { _popper: v, _reference: d } = l;
48
- u && H(d) && (v.style.display = "none");
49
- }, P = (l) => o.zIndex === "relative" ? re(l) : I.nextZIndex(), B = (l) => {
50
- if (z || (a.currentPlacement = a.currentPlacement || o.placement, !/^(top|bottom|left|right)(-start|-end)?$/g.test(a.currentPlacement)))
51
- return;
52
- const u = o.popperOptions || { gpuAcceleration: !1 };
53
- a.popperElm = a.popperElm || o.popper || i.$refs.popper || g.popper || l;
54
- const v = a.popperElm;
55
- let d = V({ state: a, props: o, vm: i, slots: m });
56
- !v || !d || d.nodeType !== Node.ELEMENT_NODE || (o.visibleArrow && s(v), o.appendToBody || o.popperAppendToBody ? document.body.appendChild(a.popperElm) : (t && t.$el && t.$el.appendChild(a.popperElm), u.forceAbsolute = !0), u.placement = a.currentPlacement, u.offset = o.offset || 0, u.arrowOffset = o.arrowOffset || 0, u.adjustArrow = o.adjustArrow || !1, u.appendToBody = o.appendToBody || o.popperAppendToBody, a.popperJS = new R(d, v, u), n("created", a), typeof u.onUpdate == "function" && a.popperJS.onUpdate(u.onUpdate), a.popperJS._popper.style.zIndex = P(a.popperJS._reference), b(a.popperJS), _(a.popperElm, "click", k));
57
- }, S = (l) => {
58
- l && l !== !0 && (a.popperElm = l);
59
- const u = a.popperJS;
60
- u ? (u._reference = V({ state: a, props: o, vm: i, slots: m }), u.update(), u._popper && l !== !0 && (u._popper.style.zIndex = P(u._reference), b(a.popperJS))) : B(l && l !== !0 ? l : void 0);
61
- }, E = (l) => {
62
- !a.popperJS || a.showPopper && !l || (a.popperJS.destroy(), a.popperJS = null);
63
- }, x = (l) => {
64
- l && a.popperElm && a.popperElm.parentNode === document.body && (w(a.popperElm, "click", k), a.popperElm.remove());
1
+ import { onMounted as re, nextTick as me, watch as k, getCurrentScope as ge, onScopeDispose as we, getCurrentInstance as j, isRef as ie, toValue as w, hasInjectionContext as le, inject as be, toRefs as ye, customRef as Oe, shallowRef as y, computed as P, reactive as Z, unref as Se, watchEffect as se, ref as ue, readonly as Te } from "vue";
2
+ function z(e) {
3
+ return ge() ? (we(e), !0) : !1;
4
+ }
5
+ // @__NO_SIDE_EFFECTS__
6
+ function ee() {
7
+ const e = /* @__PURE__ */ new Set(), t = (i) => {
8
+ e.delete(i);
65
9
  };
66
- return y(
67
- () => a.showPopper,
68
- (l) => {
69
- o.disabled || (l && r(S), o.trigger === "manual" && n("update:modelValue", l));
70
- }
71
- ), y(
72
- () => o.placement,
73
- (l) => {
74
- var u;
75
- a.currentPlacement = l, (u = a.popperJS) == null || u.setOptions({ placement: l }), !o.disabled && (l && r(S), o.trigger === "manual" && n("update:modelValue", l));
10
+ return {
11
+ on: (i) => {
12
+ e.add(i);
13
+ const a = () => t(i);
14
+ return z(a), {
15
+ off: a
16
+ };
17
+ },
18
+ off: t,
19
+ trigger: (...i) => Promise.all(Array.from(e).map((a) => a(...i))),
20
+ clear: () => {
21
+ e.clear();
76
22
  }
77
- ), p(() => {
78
- r(() => {
79
- E(!0), (o.appendToBody || o.popperAppendToBody) && x("remove");
23
+ };
24
+ }
25
+ const B = /* @__PURE__ */ new WeakMap(), Ee = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
26
+ var t;
27
+ const o = e[0], n = (t = j()) == null ? void 0 : t.proxy;
28
+ if (n == null && !le())
29
+ throw new Error("injectLocal must be called in setup");
30
+ return n && B.has(n) && o in B.get(n) ? B.get(n)[o] : be(...e);
31
+ }, $ = typeof window < "u" && typeof document < "u";
32
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
33
+ const xe = (e) => e != null, We = Object.prototype.toString, Me = (e) => We.call(e) === "[object Object]", W = () => {
34
+ }, Ie = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Pe = /* @__PURE__ */ Ae();
35
+ function Ae() {
36
+ var e, t;
37
+ return $ && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
38
+ }
39
+ function Y(e, t) {
40
+ function o(...n) {
41
+ return new Promise((u, i) => {
42
+ Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(u).catch(i);
80
43
  });
81
- }), c(() => {
82
- E(!0), (o.appendToBody || o.popperAppendToBody) && x("remove");
83
- }), { updatePopper: S, destroyPopper: x, doDestroy: E, ...h(a) };
84
- }, ae = ({ api: e, state: t, props: n }) => (r) => {
85
- const c = r && r.type === "mouseenter" ? 200 : 0;
86
- if (n.visible === "auto") {
87
- const { clientWidth: o, scrollWidth: y } = t.referenceElm;
88
- if (y <= o)
89
- return;
90
- }
91
- e.setExpectedState(!0), e.handleShowPopper(c);
92
- }, pe = (e) => () => {
93
- e.setExpectedState(!1), e.debounceClose();
94
- }, le = ({ api: e, state: t }) => () => {
95
- t.focusing = !0, e.show();
96
- }, ue = ({ api: e, state: t }) => () => {
97
- t.focusing = !1, e.hide();
98
- }, se = ({ api: e, state: t }) => () => {
99
- t.focusing = !1, e.show();
100
- }, ie = ({ props: e, state: t }) => (n) => {
101
- !t.expectedState || e.manual || (clearTimeout(t.timeout), t.timeout = window.setTimeout(() => {
102
- t.showPopper = !0;
103
- }, e.openDelay || n), e.hideAfter > 0 && (t.timeoutPending = window.setTimeout(() => {
104
- t.showPopper = !1;
105
- }, e.hideAfter)));
106
- }, de = ({ api: e, props: t, state: n }) => () => {
107
- t.enterable && n.expectedState || t.manual || (clearTimeout(n.timeout), n.timeoutPending && clearTimeout(n.timeoutPending), n.showPopper = !1, t.disabled && e.doDestroy());
108
- }, fe = ({ props: e, api: t, state: n, popperVmRef: r }) => (p) => {
109
- if (e.manual)
110
- return;
111
- const c = n.referenceElm, o = r.popper;
112
- !o || !c || o.contains(p.target) || c.contains(p.target) || n.showPopper && (t.setExpectedState(!1), t.debounceClose());
113
- }, ce = ({ state: e }) => (t) => {
114
- e.expectedState === !1 && clearTimeout(e.timeoutPending), e.expectedState = t;
115
- }, me = ({ state: e, api: t, vm: n }) => () => {
116
- const r = e.referenceElm;
117
- e.showPopper = !1, r && r.nodeType === 1 && (w(document, "click", t.handleDocumentClick), w(r, "mouseenter", t.show), w(r, "mouseleave", t.hide), w(r, "focus", t.focusHandler), w(r, "blur", t.handleBlur), w(r, "click", t.removeFocusing)), n.popperVM && (typeof n.popperVM.$destroy == "function" && n.popperVM.$destroy(), n.popperVM = null);
118
- }, ye = ({ api: e, props: t }) => W(t.closeDelay, () => {
119
- e.handleClosePopper();
120
- }), be = (e) => (t) => {
121
- t ? U(e.referenceElm, "focusing") : G(e.referenceElm, "focusing");
122
- }, he = ({ slots: e, api: t }) => () => {
123
- if (!e.default || !e.default().length) {
124
- t.handleFocus();
125
- return;
126
44
  }
127
- let n = e.default()[0];
128
- n = n.elm || n.el, n && n.focus ? n.focus() : t.handleFocus();
129
- }, ge = ({ api: e, state: t, vm: n }) => (r) => {
130
- let p = null;
131
- n.$el.nodeType === 8 ? p = r : n.$el.nodeType === 1 && (p = n.$el), !(!p || p.nodeType === 8 || t.referenceElm) && (t.referenceElm = p, p.setAttribute("aria-describedby", t.tooltipId), p.setAttribute("tabindex", t.tabindex.toString()), _(document, "click", e.handleDocumentClick), _(p, "mouseenter", e.show), _(p, "mouseleave", e.hide), _(p, "focus", e.focusHandler), _(p, "blur", e.handleBlur), _(p, "click", e.removeFocusing));
132
- }, ve = ({ state: e, popperVmRef: t }) => (n) => {
133
- for (let r of n)
134
- r.type === "attributes" && r.attributeName === "x-placement" && (e.xPlacement = t.popper.getAttribute("x-placement") || "bottom");
135
- }, we = ({ vm: e, nextTick: t, popperVmRef: n }) => (r) => {
136
- t(() => e.bindEvent(r));
137
- let p = e.popperVM;
138
- e.$refs.popper ? n.popper = e.$refs.popper : n.popper = p.$el, t(() => {
139
- e.modelValue && e.updatePopper();
140
- });
141
- }, _e = [
142
- "state",
143
- "bindEvent",
144
- "hide",
145
- "show",
146
- "doDestroy",
147
- "handleFocus",
148
- "debounceClose",
149
- "handleShowPopper",
150
- "handleClosePopper",
151
- "setExpectedState",
152
- "updatePopper",
153
- "focusHandler"
154
- ], Pe = ({ reactive: e, showPopper: t, popperElm: n, referenceElm: r, props: p, inject: c, popperJS: o, currentPlacement: y }) => e({
155
- popperJS: o,
156
- showPopper: t,
157
- popperElm: n,
158
- referenceElm: r,
159
- currentPlacement: y,
160
- timeout: null,
161
- focusing: !1,
162
- expectedState: void 0,
163
- tooltipId: L("tiny-tooltip-", 4),
164
- tabindex: p.tabindex,
165
- xPlacement: "bottom",
166
- showContent: c("showContent", null),
167
- tipsMaxWidth: c("tips-max-width", null)
168
- }), Se = (e, {
169
- watch: t,
170
- toRefs: n,
171
- reactive: r,
172
- onBeforeUnmount: p,
173
- onDeactivated: c,
174
- onMounted: o,
175
- onUnmounted: y,
176
- inject: f
177
- }, { vm: i, emit: m, slots: h, nextTick: g, parent: a }) => {
178
- const s = {}, b = {}, P = { emit: m, props: e, nextTick: g, toRefs: n, reactive: r, parent: a.$parent, vm: i, popperVmRef: b };
179
- Object.assign(P, { slots: h, onBeforeUnmount: p, onDeactivated: c, watch: t });
180
- const { showPopper: B, updatePopper: S, popperElm: E, referenceElm: x, doDestroy: l, popperJS: u, currentPlacement: v } = oe(
181
- P
182
- ), d = Pe({
183
- reactive: r,
184
- showPopper: B,
185
- popperElm: E,
186
- referenceElm: x,
187
- props: e,
188
- inject: f,
189
- popperJS: u,
190
- currentPlacement: v
191
- });
192
- return Object.assign(s, {
193
- state: d,
194
- doDestroy: l,
195
- updatePopper: S,
196
- show: ae({ api: s, state: d, props: e }),
197
- hide: pe(s),
198
- destroyed: me({ state: d, api: s, vm: i }),
199
- bindPopper: we({ vm: i, nextTick: g, popperVmRef: b }),
200
- watchFocusing: be(d),
201
- removeFocusing: se({ api: s, state: d }),
202
- handleBlur: ue({ api: s, state: d }),
203
- handleFocus: le({ api: s, state: d }),
204
- debounceClose: ye({ api: s, props: e }),
205
- setExpectedState: ce({ state: d }),
206
- handleShowPopper: ie({ props: e, state: d }),
207
- handleClosePopper: de({ api: s, props: e, state: d }),
208
- bindEvent: ge({ api: s, state: d, vm: i }),
209
- focusHandler: he({ slots: h, api: s }),
210
- handleDocumentClick: fe({ props: e, api: s, state: d, popperVmRef: b }),
211
- observeCallback: ve({ state: d, popperVmRef: b })
212
- }), t(() => d.focusing, s.watchFocusing), t(
213
- () => e.modelValue,
214
- (T) => g(() => e.manual && (d.showPopper = T))
215
- ), o(() => {
216
- if (s.bindPopper(), e.genArrowByHtml) {
217
- const T = { attributes: !0, childList: !1, subtree: !1 };
218
- s.observer = new MutationObserver(s.observeCallback), s.observer.observe(b.popper, T);
219
- }
220
- }), i.$on("tooltip-update", s.bindPopper), y(() => {
221
- s.destroyed(), s.observer && s.observer.disconnect(), i.$off("tooltip-update");
222
- }), s;
223
- };
224
- function O() {
225
- return O = Object.assign ? Object.assign.bind() : function(e) {
226
- for (var t = 1; t < arguments.length; t++) {
227
- var n = arguments[t];
228
- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
229
- }
230
- return e;
231
- }, O.apply(null, arguments);
232
- }
233
- var A = /* @__PURE__ */ F({
234
- name: j + "Tooltip",
235
- componentName: "Tooltip",
236
- props: O({}, J, {
237
- visible: {
238
- type: String,
239
- default: function() {
240
- return "always";
45
+ return o;
46
+ }
47
+ const Fe = (e) => e();
48
+ function ce(e, t = {}) {
49
+ let o, n, u = W;
50
+ const i = (s) => {
51
+ clearTimeout(s), u(), u = W;
52
+ };
53
+ let a;
54
+ return (s) => {
55
+ const d = w(e), v = w(t.maxWait);
56
+ return o && i(o), d <= 0 || v !== void 0 && v <= 0 ? (n && (i(n), n = void 0), Promise.resolve(s())) : new Promise((l, c) => {
57
+ u = t.rejectOnCancel ? c : l, a = s, v && !n && (n = setTimeout(() => {
58
+ o && i(o), n = void 0, l(a());
59
+ }, v)), o = setTimeout(() => {
60
+ n && i(n), n = void 0, l(s());
61
+ }, d);
62
+ });
63
+ };
64
+ }
65
+ function ae(...e) {
66
+ let t = 0, o, n = !0, u = W, i, a, r, s, d;
67
+ !ie(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: r = !0, leading: s = !0, rejectOnCancel: d = !1 } = e[0] : [a, r = !0, s = !0, d = !1] = e;
68
+ const v = () => {
69
+ o && (clearTimeout(o), o = void 0, u(), u = W);
70
+ };
71
+ return (c) => {
72
+ const p = w(a), h = Date.now() - t, O = () => i = c();
73
+ return v(), p <= 0 ? (t = Date.now(), O()) : (h > p && (s || !n) ? (t = Date.now(), O()) : r && (i = new Promise((f, m) => {
74
+ u = d ? m : f, o = setTimeout(() => {
75
+ t = Date.now(), n = !0, f(O()), v();
76
+ }, Math.max(0, p - h));
77
+ })), !s && !o && (o = setTimeout(() => n = !0, p)), n = !1, i);
78
+ };
79
+ }
80
+ function te(e) {
81
+ return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
82
+ }
83
+ function _e(e, t, o = !1) {
84
+ return t.reduce((n, u) => (u in e && (!o || e[u] !== void 0) && (n[u] = e[u]), n), {});
85
+ }
86
+ function C(e) {
87
+ return Array.isArray(e) ? e : [e];
88
+ }
89
+ function Le(e) {
90
+ return j();
91
+ }
92
+ // @__NO_SIDE_EFFECTS__
93
+ function ke(e, t = 200, o = {}) {
94
+ return Y(
95
+ ce(t, o),
96
+ e
97
+ );
98
+ }
99
+ // @__NO_SIDE_EFFECTS__
100
+ function De(e, t = 200, o = !1, n = !0, u = !1) {
101
+ return Y(
102
+ ae(t, o, n, u),
103
+ e
104
+ );
105
+ }
106
+ function fe(e, t, o = {}) {
107
+ const {
108
+ eventFilter: n = Fe,
109
+ ...u
110
+ } = o;
111
+ return k(
112
+ e,
113
+ Y(
114
+ n,
115
+ t
116
+ ),
117
+ u
118
+ );
119
+ }
120
+ function Re(e, t = {}) {
121
+ if (!ie(e))
122
+ return ye(e);
123
+ const o = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
124
+ for (const n in e.value)
125
+ o[n] = Oe(() => ({
126
+ get() {
127
+ return e.value[n];
241
128
  },
242
- validator: function(t) {
243
- return ["always", "auto"].includes(t);
244
- }
245
- },
246
- adjustArrow: {
247
- type: Boolean,
248
- default: function() {
249
- return !1;
250
- }
251
- },
252
- appendToBody: {
253
- type: Boolean,
254
- default: function() {
255
- return !0;
256
- }
257
- },
258
- arrowOffset: {
259
- type: Number,
260
- default: function() {
261
- return 0;
262
- }
263
- },
264
- boundariesPadding: {
265
- type: Number,
266
- default: function() {
267
- return 5;
268
- }
269
- },
270
- closeDelay: {
271
- type: Number,
272
- default: function() {
273
- return 300;
274
- }
275
- },
276
- content: {
277
- type: [String, Object]
278
- },
279
- disabled: {
280
- type: Boolean
281
- },
282
- effect: {
283
- type: String,
284
- default: function() {
285
- return "dark";
286
- }
287
- },
288
- enterable: {
289
- type: Boolean,
290
- default: function() {
291
- return !0;
292
- }
293
- },
294
- hideAfter: {
295
- type: Number,
296
- default: function() {
297
- return 0;
298
- }
299
- },
300
- manual: {
301
- type: Boolean
302
- },
303
- modelValue: {
304
- type: Boolean
305
- },
306
- offset: {
307
- default: function() {
308
- return 0;
129
+ set(u) {
130
+ var i;
131
+ if ((i = w(t.replaceRef)) != null ? i : !0)
132
+ if (Array.isArray(e.value)) {
133
+ const r = [...e.value];
134
+ r[n] = u, e.value = r;
135
+ } else {
136
+ const r = { ...e.value, [n]: u };
137
+ Object.setPrototypeOf(r, Object.getPrototypeOf(e.value)), e.value = r;
138
+ }
139
+ else
140
+ e.value[n] = u;
309
141
  }
142
+ }));
143
+ return o;
144
+ }
145
+ function N(e, t = !0, o) {
146
+ Le() ? re(e, o) : t ? e() : me(e);
147
+ }
148
+ function Xe(e, t, o = {}) {
149
+ const {
150
+ debounce: n = 0,
151
+ maxWait: u = void 0,
152
+ ...i
153
+ } = o;
154
+ return fe(
155
+ e,
156
+ t,
157
+ {
158
+ ...i,
159
+ eventFilter: ce(n, { maxWait: u })
160
+ }
161
+ );
162
+ }
163
+ function Ce(e, t, o) {
164
+ return k(
165
+ e,
166
+ t,
167
+ {
168
+ ...o,
169
+ immediate: !0
170
+ }
171
+ );
172
+ }
173
+ function Qe(e, t, o = {}) {
174
+ const {
175
+ throttle: n = 0,
176
+ trailing: u = !0,
177
+ leading: i = !0,
178
+ ...a
179
+ } = o;
180
+ return fe(
181
+ e,
182
+ t,
183
+ {
184
+ ...a,
185
+ eventFilter: ae(n, u, i)
186
+ }
187
+ );
188
+ }
189
+ const A = $ ? window : void 0, Ve = $ ? window.document : void 0;
190
+ function S(e) {
191
+ var t;
192
+ const o = w(e);
193
+ return (t = o == null ? void 0 : o.$el) != null ? t : o;
194
+ }
195
+ function M(...e) {
196
+ const t = [], o = () => {
197
+ t.forEach((r) => r()), t.length = 0;
198
+ }, n = (r, s, d, v) => (r.addEventListener(s, d, v), () => r.removeEventListener(s, d, v)), u = P(() => {
199
+ const r = C(w(e[0])).filter((s) => s != null);
200
+ return r.every((s) => typeof s != "string") ? r : void 0;
201
+ }), i = Ce(
202
+ () => {
203
+ var r, s;
204
+ return [
205
+ (s = (r = u.value) == null ? void 0 : r.map((d) => S(d))) != null ? s : [A].filter((d) => d != null),
206
+ C(w(u.value ? e[1] : e[0])),
207
+ C(Se(u.value ? e[2] : e[1])),
208
+ // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
209
+ w(u.value ? e[3] : e[2])
210
+ ];
310
211
  },
311
- openDelay: {
312
- type: Number,
313
- default: function() {
314
- return 0;
315
- }
212
+ ([r, s, d, v]) => {
213
+ if (o(), !(r != null && r.length) || !(s != null && s.length) || !(d != null && d.length))
214
+ return;
215
+ const l = Me(v) ? { ...v } : v;
216
+ t.push(
217
+ ...r.flatMap(
218
+ (c) => s.flatMap(
219
+ (p) => d.map((h) => n(c, p, h, l))
220
+ )
221
+ )
222
+ );
316
223
  },
317
- placement: {
318
- type: String,
319
- default: function() {
320
- return "bottom";
224
+ { flush: "post" }
225
+ ), a = () => {
226
+ i(), o();
227
+ };
228
+ return z(o), a;
229
+ }
230
+ let ne = !1;
231
+ function Ue(e, t, o = {}) {
232
+ const { window: n = A, ignore: u = [], capture: i = !0, detectIframe: a = !1, controls: r = !1 } = o;
233
+ if (!n)
234
+ return r ? { stop: W, cancel: W, trigger: W } : W;
235
+ if (Pe && !ne) {
236
+ ne = !0;
237
+ const f = { passive: !0 };
238
+ Array.from(n.document.body.children).forEach((m) => m.addEventListener("click", W, f)), n.document.documentElement.addEventListener("click", W, f);
239
+ }
240
+ let s = !0;
241
+ const d = (f) => w(u).some((m) => {
242
+ if (typeof m == "string")
243
+ return Array.from(n.document.querySelectorAll(m)).some((b) => b === f.target || f.composedPath().includes(b));
244
+ {
245
+ const b = S(m);
246
+ return b && (f.target === b || f.composedPath().includes(b));
247
+ }
248
+ });
249
+ function v(f) {
250
+ const m = w(f);
251
+ return m && m.$.subTree.shapeFlag === 16;
252
+ }
253
+ function l(f, m) {
254
+ const b = w(f), T = b.$.subTree && b.$.subTree.children;
255
+ return T == null || !Array.isArray(T) ? !1 : T.some((E) => E.el === m.target || m.composedPath().includes(E.el));
256
+ }
257
+ const c = (f) => {
258
+ const m = S(e);
259
+ if (f.target != null && !(!(m instanceof Element) && v(e) && l(e, f)) && !(!m || m === f.target || f.composedPath().includes(m))) {
260
+ if ("detail" in f && f.detail === 0 && (s = !d(f)), !s) {
261
+ s = !0;
262
+ return;
321
263
  }
264
+ t(f);
265
+ }
266
+ };
267
+ let p = !1;
268
+ const h = [
269
+ M(n, "click", (f) => {
270
+ p || (p = !0, setTimeout(() => {
271
+ p = !1;
272
+ }, 0), c(f));
273
+ }, { passive: !0, capture: i }),
274
+ M(n, "pointerdown", (f) => {
275
+ const m = S(e);
276
+ s = !d(f) && !!(m && !f.composedPath().includes(m));
277
+ }, { passive: !0 }),
278
+ a && M(n, "blur", (f) => {
279
+ setTimeout(() => {
280
+ var m;
281
+ const b = S(e);
282
+ ((m = n.document.activeElement) == null ? void 0 : m.tagName) === "IFRAME" && !(b != null && b.contains(n.document.activeElement)) && t(f);
283
+ }, 0);
284
+ }, { passive: !0 })
285
+ ].filter(Boolean), O = () => h.forEach((f) => f());
286
+ return r ? {
287
+ stop: O,
288
+ cancel: () => {
289
+ s = !1;
322
290
  },
323
- popper: {},
324
- popperClass: {
325
- type: String
291
+ trigger: (f) => {
292
+ s = !0, c(f), s = !1;
293
+ }
294
+ } : O;
295
+ }
296
+ // @__NO_SIDE_EFFECTS__
297
+ function He() {
298
+ const e = y(!1), t = j();
299
+ return t && re(() => {
300
+ e.value = !0;
301
+ }, t), e;
302
+ }
303
+ // @__NO_SIDE_EFFECTS__
304
+ function G(e) {
305
+ const t = /* @__PURE__ */ He();
306
+ return P(() => (t.value, !!e()));
307
+ }
308
+ function de(e, t, o = {}) {
309
+ const { window: n = A, ...u } = o;
310
+ let i;
311
+ const a = /* @__PURE__ */ G(() => n && "MutationObserver" in n), r = () => {
312
+ i && (i.disconnect(), i = void 0);
313
+ }, s = P(() => {
314
+ const c = w(e), p = C(c).map(S).filter(xe);
315
+ return new Set(p);
316
+ }), d = k(
317
+ () => s.value,
318
+ (c) => {
319
+ r(), a.value && c.size && (i = new MutationObserver(t), c.forEach((p) => i.observe(p, u)));
326
320
  },
327
- popperOptions: {
328
- default: function() {
329
- return {
330
- gpuAcceleration: !1,
331
- boundariesPadding: 10
332
- };
321
+ { immediate: !0, flush: "post" }
322
+ ), v = () => i == null ? void 0 : i.takeRecords(), l = () => {
323
+ d(), r();
324
+ };
325
+ return z(l), {
326
+ isSupported: a,
327
+ stop: l,
328
+ takeRecords: v
329
+ };
330
+ }
331
+ const ze = Symbol("vueuse-ssr-width");
332
+ // @__NO_SIDE_EFFECTS__
333
+ function Ne() {
334
+ const e = le() ? /* @__PURE__ */ Ee(ze, null) : null;
335
+ return typeof e == "number" ? e : void 0;
336
+ }
337
+ function Be(e, t = {}) {
338
+ const { window: o = A, ssrWidth: n = /* @__PURE__ */ Ne() } = t, u = /* @__PURE__ */ G(() => o && "matchMedia" in o && typeof o.matchMedia == "function"), i = y(typeof n == "number"), a = y(), r = y(!1), s = (d) => {
339
+ r.value = d.matches;
340
+ };
341
+ return se(() => {
342
+ if (i.value) {
343
+ i.value = !u.value;
344
+ const d = w(e).split(",");
345
+ r.value = d.some((v) => {
346
+ const l = v.includes("not all"), c = v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), p = v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
347
+ let h = !!(c || p);
348
+ return c && h && (h = n >= te(c[1])), p && h && (h = n <= te(p[1])), l ? !h : h;
349
+ });
350
+ return;
351
+ }
352
+ u.value && (a.value = o.matchMedia(w(e)), r.value = a.value.matches);
353
+ }), M(a, "change", s, { passive: !0 }), P(() => r.value);
354
+ }
355
+ function ve(e, t, o = {}) {
356
+ const { window: n = A, ...u } = o;
357
+ let i;
358
+ const a = /* @__PURE__ */ G(() => n && "ResizeObserver" in n), r = () => {
359
+ i && (i.disconnect(), i = void 0);
360
+ }, s = P(() => {
361
+ const l = w(e);
362
+ return Array.isArray(l) ? l.map((c) => S(c)) : [S(l)];
363
+ }), d = k(
364
+ s,
365
+ (l) => {
366
+ if (r(), a.value && n) {
367
+ i = new ResizeObserver(t);
368
+ for (const c of l)
369
+ c && i.observe(c, u);
333
370
  }
334
371
  },
335
- pre: {
336
- type: Boolean
337
- },
338
- reference: {},
339
- renderContent: {
340
- type: Function
372
+ { immediate: !0, flush: "post" }
373
+ ), v = () => {
374
+ r(), d();
375
+ };
376
+ return z(v), {
377
+ isSupported: a,
378
+ stop: v
379
+ };
380
+ }
381
+ function qe(e, t = {}) {
382
+ const {
383
+ reset: o = !0,
384
+ windowResize: n = !0,
385
+ windowScroll: u = !0,
386
+ immediate: i = !0,
387
+ updateTiming: a = "sync"
388
+ } = t, r = y(0), s = y(0), d = y(0), v = y(0), l = y(0), c = y(0), p = y(0), h = y(0);
389
+ function O() {
390
+ const m = S(e);
391
+ if (!m) {
392
+ o && (r.value = 0, s.value = 0, d.value = 0, v.value = 0, l.value = 0, c.value = 0, p.value = 0, h.value = 0);
393
+ return;
394
+ }
395
+ const b = m.getBoundingClientRect();
396
+ r.value = b.height, s.value = b.bottom, d.value = b.left, v.value = b.right, l.value = b.top, c.value = b.width, p.value = b.x, h.value = b.y;
397
+ }
398
+ function f() {
399
+ a === "sync" ? O() : a === "next-frame" && requestAnimationFrame(() => O());
400
+ }
401
+ return ve(e, f), k(() => S(e), (m) => !m && f()), de(e, f, {
402
+ attributeFilter: ["style", "class"]
403
+ }), u && M("scroll", f, { capture: !0, passive: !0 }), n && M("resize", f, { passive: !0 }), N(() => {
404
+ i && f();
405
+ }), {
406
+ height: r,
407
+ bottom: s,
408
+ left: d,
409
+ right: v,
410
+ top: l,
411
+ width: c,
412
+ x: p,
413
+ y: h,
414
+ update: f
415
+ };
416
+ }
417
+ function Je(e, t = { width: 0, height: 0 }, o = {}) {
418
+ const { window: n = A, box: u = "content-box" } = o, i = P(() => {
419
+ var l, c;
420
+ return (c = (l = S(e)) == null ? void 0 : l.namespaceURI) == null ? void 0 : c.includes("svg");
421
+ }), a = y(t.width), r = y(t.height), { stop: s } = ve(
422
+ e,
423
+ ([l]) => {
424
+ const c = u === "border-box" ? l.borderBoxSize : u === "content-box" ? l.contentBoxSize : l.devicePixelContentBoxSize;
425
+ if (n && i.value) {
426
+ const p = S(e);
427
+ if (p) {
428
+ const h = p.getBoundingClientRect();
429
+ a.value = h.width, r.value = h.height;
430
+ }
431
+ } else if (c) {
432
+ const p = C(c);
433
+ a.value = p.reduce((h, { inlineSize: O }) => h + O, 0), r.value = p.reduce((h, { blockSize: O }) => h + O, 0);
434
+ } else
435
+ a.value = l.contentRect.width, r.value = l.contentRect.height;
341
436
  },
342
- tabindex: {
343
- type: Number,
344
- default: function() {
345
- return 0;
346
- }
437
+ o
438
+ );
439
+ N(() => {
440
+ const l = S(e);
441
+ l && (a.value = "offsetWidth" in l ? l.offsetWidth : t.width, r.value = "offsetHeight" in l ? l.offsetHeight : t.height);
442
+ });
443
+ const d = k(
444
+ () => S(e),
445
+ (l) => {
446
+ a.value = l ? t.width : 0, r.value = l ? t.height : 0;
447
+ }
448
+ );
449
+ function v() {
450
+ s(), d();
451
+ }
452
+ return {
453
+ width: a,
454
+ height: r,
455
+ stop: v
456
+ };
457
+ }
458
+ const je = {
459
+ multiple: !0,
460
+ accept: "*",
461
+ reset: !1,
462
+ directory: !1
463
+ };
464
+ function $e(e) {
465
+ if (!e)
466
+ return null;
467
+ if (e instanceof FileList)
468
+ return e;
469
+ const t = new DataTransfer();
470
+ for (const o of e)
471
+ t.items.add(o);
472
+ return t.files;
473
+ }
474
+ function Ke(e = {}) {
475
+ const {
476
+ document: t = Ve
477
+ } = e, o = ue($e(e.initialFiles)), { on: n, trigger: u } = /* @__PURE__ */ ee(), { on: i, trigger: a } = /* @__PURE__ */ ee(), r = P(() => {
478
+ var l;
479
+ const c = (l = S(e.input)) != null ? l : t ? t.createElement("input") : void 0;
480
+ return c && (c.type = "file", c.onchange = (p) => {
481
+ const h = p.target;
482
+ o.value = h.files, u(o.value);
483
+ }, c.oncancel = () => {
484
+ a();
485
+ }), c;
486
+ }), s = () => {
487
+ o.value = null, r.value && r.value.value && (r.value.value = "", u(null));
488
+ }, d = (l) => {
489
+ const c = r.value;
490
+ c && (c.multiple = w(l.multiple), c.accept = w(l.accept), c.webkitdirectory = w(l.directory), Ie(l, "capture") && (c.capture = w(l.capture)));
491
+ }, v = (l) => {
492
+ const c = r.value;
493
+ if (!c)
494
+ return;
495
+ const p = {
496
+ ...je,
497
+ ...e,
498
+ ...l
499
+ };
500
+ d(p), w(p.reset) && s(), c.click();
501
+ };
502
+ return se(() => {
503
+ d(e);
504
+ }), {
505
+ files: Te(o),
506
+ open: v,
507
+ reset: s,
508
+ onCancel: i,
509
+ onChange: n
510
+ };
511
+ }
512
+ const oe = 1;
513
+ function Ze(e, t = {}) {
514
+ const {
515
+ throttle: o = 0,
516
+ idle: n = 200,
517
+ onStop: u = W,
518
+ onScroll: i = W,
519
+ offset: a = {
520
+ left: 0,
521
+ right: 0,
522
+ top: 0,
523
+ bottom: 0
347
524
  },
348
- transition: {
349
- type: String,
350
- default: function() {
351
- return "tiny-fade-in-linear";
352
- }
525
+ observe: r = {
526
+ mutation: !1
353
527
  },
354
- type: {
355
- type: String,
356
- validator: function(t) {
357
- return !!~["normal", "warning", "error", "info", "success"].indexOf(t);
358
- }
528
+ eventListenerOptions: s = {
529
+ capture: !1,
530
+ passive: !0
359
531
  },
360
- visibleArrow: {
361
- type: Boolean,
362
- default: function() {
363
- return !0;
364
- }
532
+ behavior: d = "auto",
533
+ window: v = A,
534
+ onError: l = (g) => {
535
+ console.error(g);
536
+ }
537
+ } = t, c = typeof r == "boolean" ? {
538
+ mutation: r
539
+ } : r, p = y(0), h = y(0), O = P({
540
+ get() {
541
+ return p.value;
365
542
  },
366
- zIndex: {
367
- type: String,
368
- default: function() {
369
- return "next";
370
- }
543
+ set(g) {
544
+ m(g, void 0);
545
+ }
546
+ }), f = P({
547
+ get() {
548
+ return h.value;
371
549
  },
372
- contentMaxHeight: {
373
- type: String
550
+ set(g) {
551
+ m(void 0, g);
374
552
  }
375
- }),
376
- setup: function(t, n) {
377
- return q({
378
- props: t,
379
- context: n,
380
- renderless: Se,
381
- api: _e
553
+ });
554
+ function m(g, _) {
555
+ var x, D, R, H;
556
+ if (!v)
557
+ return;
558
+ const I = w(e);
559
+ if (!I)
560
+ return;
561
+ (R = I instanceof Document ? v.document.body : I) == null || R.scrollTo({
562
+ top: (x = w(_)) != null ? x : f.value,
563
+ left: (D = w(g)) != null ? D : O.value,
564
+ behavior: w(d)
382
565
  });
383
- },
384
- render: function() {
385
- var t = this, n = function(f) {
386
- var i = f.slots.content && f.slots.content();
387
- if (i && (!N.Comment || i[0].type !== N.Comment))
388
- return i;
389
- var m;
390
- return f.renderContent ? m = f.renderContent($, f.content) : f.pre ? m = f.content ? $("pre", f.content) : null : m = f.content, m;
391
- };
392
- if (!Object.prototype.hasOwnProperty.call(this, "popperVM")) {
393
- var r = {
394
- value: null
395
- };
396
- this.d({
397
- popperVM: {
398
- get: function() {
399
- return r.value || (r.value = Z({
400
- el: document.createElement("div"),
401
- propsData: null,
402
- component: {
403
- render: function() {
404
- var i = n(t), m = typeof i == "string", h = {
405
- attrs: {
406
- name: t.transition
407
- },
408
- on: {
409
- "after-leave": t.doDestroy
410
- }
411
- }, g = "is-" + (t.type || t.effect || "dark"), a = function() {
412
- return t.setExpectedState(!0);
413
- }, s = function() {
414
- t.setExpectedState(!1), t.debounceClose();
415
- };
416
- return t.$nextTick(function() {
417
- !t.disabled && t.state.showPopper && i && t.updatePopper();
418
- }), $("transition", h, [te(M("div", {
419
- ref: "popper",
420
- id: t.state.tooltipId,
421
- class: ["tiny-tooltip", "tiny-tooltip__popper", g, t.popperClass, {
422
- "tiny-tooltip__show-tips": t.state.showContent
423
- }],
424
- style: "max-width:" + t.state.tipsMaxWidth + "px",
425
- role: "tooltip",
426
- "aria-hidden": t.disabled || !t.state.showPopper ? "true" : "false",
427
- onMouseenter: function() {
428
- return a();
429
- },
430
- onMouseleave: function() {
431
- return s();
432
- }
433
- }, [m ? M("div", {
434
- class: "tiny-tooltip__content-wrapper",
435
- style: "max-height:" + t.contentMaxHeight + ";"
436
- }, [i]) : i]), [[ne, !t.disabled && t.state.showPopper && i]])]);
437
- }
438
- }
439
- })), r.value;
440
- },
441
- set: function(f) {
442
- return r.value = f;
443
- }
444
- }
445
- });
446
- }
447
- var p = function() {
448
- var f = t.slots.default && t.slots.default();
449
- if (!Array.isArray(f)) return null;
450
- for (var i = null, m = 0; m < f.length; m++) {
451
- var h = K(f[m]);
452
- if (!X(h)) {
453
- i = h;
454
- break;
455
- }
456
- }
457
- return i;
458
- }, c = p();
459
- if (!c) return null;
460
- var o = c.data || c.props || (c.props = {});
461
- return o.class = Q("tiny-tooltip " + Y(o.class)), c;
566
+ const F = ((H = I == null ? void 0 : I.document) == null ? void 0 : H.documentElement) || (I == null ? void 0 : I.documentElement) || I;
567
+ O != null && (p.value = F.scrollLeft), f != null && (h.value = F.scrollTop);
462
568
  }
463
- });
464
- function D() {
465
- return D = Object.assign ? Object.assign.bind() : function(e) {
466
- for (var t = 1; t < arguments.length; t++) {
467
- var n = arguments[t];
468
- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
569
+ const b = y(!1), T = Z({
570
+ left: !0,
571
+ right: !1,
572
+ top: !0,
573
+ bottom: !1
574
+ }), E = Z({
575
+ left: !1,
576
+ right: !1,
577
+ top: !1,
578
+ bottom: !1
579
+ }), X = (g) => {
580
+ b.value && (b.value = !1, E.left = !1, E.right = !1, E.top = !1, E.bottom = !1, u(g));
581
+ }, he = /* @__PURE__ */ ke(X, o + n), V = (g) => {
582
+ var _;
583
+ if (!v)
584
+ return;
585
+ const x = ((_ = g == null ? void 0 : g.document) == null ? void 0 : _.documentElement) || (g == null ? void 0 : g.documentElement) || S(g), { display: D, flexDirection: R, direction: H } = getComputedStyle(x), I = H === "rtl" ? -1 : 1, F = x.scrollLeft;
586
+ E.left = F < p.value, E.right = F > p.value;
587
+ const U = Math.abs(F * I) <= (a.left || 0), q = Math.abs(F * I) + x.clientWidth >= x.scrollWidth - (a.right || 0) - oe;
588
+ D === "flex" && R === "row-reverse" ? (T.left = q, T.right = U) : (T.left = U, T.right = q), p.value = F;
589
+ let L = x.scrollTop;
590
+ g === v.document && !L && (L = v.document.body.scrollTop), E.top = L < h.value, E.bottom = L > h.value;
591
+ const J = Math.abs(L) <= (a.top || 0), K = Math.abs(L) + x.clientHeight >= x.scrollHeight - (a.bottom || 0) - oe;
592
+ D === "flex" && R === "column-reverse" ? (T.top = K, T.bottom = J) : (T.top = J, T.bottom = K), h.value = L;
593
+ }, Q = (g) => {
594
+ var _;
595
+ if (!v)
596
+ return;
597
+ const x = (_ = g.target.documentElement) != null ? _ : g.target;
598
+ V(x), b.value = !0, he(g), i(g);
599
+ };
600
+ return M(
601
+ e,
602
+ "scroll",
603
+ o ? /* @__PURE__ */ De(Q, o, !0, !1) : Q,
604
+ s
605
+ ), N(() => {
606
+ try {
607
+ const g = w(e);
608
+ if (!g)
609
+ return;
610
+ V(g);
611
+ } catch (g) {
612
+ l(g);
469
613
  }
470
- return e;
471
- }, D.apply(null, arguments);
472
- }
473
- var Ee = function(t) {
474
- var n, r = typeof process == "object" ? (n = process.env) == null ? void 0 : n.TINY_MODE : null;
475
- return A;
476
- }, xe = D({}, J, {
477
- visible: {
478
- type: String,
479
- default: function() {
480
- return "always";
614
+ }), c != null && c.mutation && e != null && e !== v && e !== document && de(
615
+ e,
616
+ () => {
617
+ const g = w(e);
618
+ g && V(g);
481
619
  },
482
- validator: function(t) {
483
- return ["always", "auto"].includes(t);
484
- }
485
- },
486
- adjustArrow: {
487
- type: Boolean,
488
- default: function() {
489
- return !1;
490
- }
491
- },
492
- appendToBody: {
493
- type: Boolean,
494
- default: function() {
495
- return !0;
496
- }
497
- },
498
- arrowOffset: {
499
- type: Number,
500
- default: function() {
501
- return 0;
502
- }
503
- },
504
- content: {
505
- type: [String, Object]
506
- },
507
- disabled: {
508
- type: Boolean
509
- },
510
- enterable: {
511
- type: Boolean,
512
- default: function() {
513
- return !0;
514
- }
515
- },
516
- hideAfter: {
517
- type: Number,
518
- default: function() {
519
- return 0;
520
- }
521
- },
522
- manual: {
523
- type: Boolean
524
- },
525
- modelValue: {
526
- type: Boolean
527
- },
528
- offset: {
529
- default: function() {
530
- return 0;
531
- }
532
- },
533
- effect: {
534
- type: String,
535
- default: function() {
536
- return "";
537
- }
538
- },
539
- openDelay: {
540
- type: Number,
541
- default: function() {
542
- return 0;
620
+ {
621
+ attributes: !0,
622
+ childList: !0,
623
+ subtree: !0
543
624
  }
544
- },
545
- closeDelay: {
546
- type: Number,
547
- default: function() {
548
- return 100;
549
- }
550
- },
551
- placement: {
552
- type: String,
553
- default: function() {
554
- return "bottom";
555
- }
556
- },
557
- popper: {},
558
- popperClass: {
559
- type: String
560
- },
561
- popperOptions: {
562
- default: function() {
563
- return {};
564
- }
565
- },
566
- pre: {
567
- type: Boolean
568
- },
569
- reference: {},
570
- renderContent: {
571
- type: Function
572
- },
573
- tabindex: {
574
- type: Number,
575
- default: function() {
576
- return 0;
577
- }
578
- },
579
- transition: {
580
- type: String,
581
- default: function() {
582
- return "tiny-fade-in-linear";
583
- }
584
- },
585
- type: {
586
- type: String,
587
- validator: function(t) {
588
- return !!~["normal", "warning", "error", "info", "success"].indexOf(t);
589
- }
590
- },
591
- visibleArrow: {
592
- type: Boolean,
593
- default: function() {
594
- return !0;
595
- }
596
- },
597
- genArrowByHtml: {
598
- type: Boolean,
599
- default: function() {
600
- return !0;
601
- }
602
- },
603
- zIndex: {
604
- type: String,
605
- default: function() {
606
- return "next";
607
- }
608
- },
609
- contentMaxHeight: {
610
- type: String,
611
- default: function() {
612
- return "80vh";
625
+ ), M(
626
+ e,
627
+ "scrollend",
628
+ X,
629
+ s
630
+ ), {
631
+ x: O,
632
+ y: f,
633
+ isScrolling: b,
634
+ arrivedState: T,
635
+ directions: E,
636
+ measure() {
637
+ const g = w(e);
638
+ v && g && V(g);
613
639
  }
640
+ };
641
+ }
642
+ const pe = {
643
+ x: 0,
644
+ y: 0,
645
+ pointerId: 0,
646
+ pressure: 0,
647
+ tiltX: 0,
648
+ tiltY: 0,
649
+ width: 0,
650
+ height: 0,
651
+ twist: 0,
652
+ pointerType: null
653
+ }, Ye = /* @__PURE__ */ Object.keys(pe);
654
+ function et(e = {}) {
655
+ const {
656
+ target: t = A
657
+ } = e, o = y(!1), n = ue(e.initialValue || {});
658
+ Object.assign(n.value, pe, n.value);
659
+ const u = (i) => {
660
+ o.value = !0, !(e.pointerTypes && !e.pointerTypes.includes(i.pointerType)) && (n.value = _e(i, Ye, !1));
661
+ };
662
+ if (t) {
663
+ const i = { passive: !0 };
664
+ M(t, ["pointerdown", "pointermove", "pointerup"], u, i), M(t, "pointerleave", () => o.value = !1, i);
614
665
  }
615
- }), C = F({
616
- name: j + "Tooltip",
617
- componentName: "Tooltip",
618
- props: xe,
619
- setup: function(t, n) {
620
- return ee({
621
- props: t,
622
- context: n,
623
- template: Ee
624
- });
666
+ return {
667
+ ...Re(n),
668
+ isInside: o
669
+ };
670
+ }
671
+ // @__NO_SIDE_EFFECTS__
672
+ function tt(e = {}) {
673
+ const {
674
+ window: t = A,
675
+ initialWidth: o = Number.POSITIVE_INFINITY,
676
+ initialHeight: n = Number.POSITIVE_INFINITY,
677
+ listenOrientation: u = !0,
678
+ includeScrollbar: i = !0,
679
+ type: a = "inner"
680
+ } = e, r = y(o), s = y(n), d = () => {
681
+ if (t)
682
+ if (a === "outer")
683
+ r.value = t.outerWidth, s.value = t.outerHeight;
684
+ else if (a === "visual" && t.visualViewport) {
685
+ const { width: l, height: c, scale: p } = t.visualViewport;
686
+ r.value = Math.round(l * p), s.value = Math.round(c * p);
687
+ } else i ? (r.value = t.innerWidth, s.value = t.innerHeight) : (r.value = t.document.documentElement.clientWidth, s.value = t.document.documentElement.clientHeight);
688
+ };
689
+ d(), N(d);
690
+ const v = { passive: !0 };
691
+ if (M("resize", d, v), t && a === "visual" && t.visualViewport && M(t.visualViewport, "resize", d, v), u) {
692
+ const l = Be("(orientation: portrait)");
693
+ k(l, () => d());
625
694
  }
626
- }), Ce = "3.undefined";
627
- C.model = {
628
- prop: "modelValue",
629
- event: "update:modelValue"
630
- };
631
- C.install = function(e) {
632
- e.component(C.name, C);
633
- };
634
- C.version = Ce;
695
+ return { width: r, height: s };
696
+ }
635
697
  export {
636
- C as T,
637
- oe as k
698
+ qe as a,
699
+ S as b,
700
+ tt as c,
701
+ Ke as d,
702
+ Je as e,
703
+ Xe as f,
704
+ M as g,
705
+ Be as h,
706
+ et as i,
707
+ Ue as o,
708
+ Ze as u,
709
+ Qe as w
638
710
  };