bitboss-ui 0.1.109 → 0.1.110
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/index101.js +3 -3
- package/dist/index103.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index111.js +5 -5
- package/dist/index113.js +1 -1
- package/dist/index116.js +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.js +1 -1
- package/dist/index119.js +1 -1
- package/dist/index121.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index128.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +9 -9
- package/dist/index19.js +3 -3
- package/dist/index195.js +10 -3
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +3 -35
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +35 -6
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +6 -295
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +5 -16
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +10 -10
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +15 -18
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +18 -19
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +15 -24
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +29 -8
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +8 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -2
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +351 -4
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +134 -2
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +2 -2
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.js +186 -2
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +23 -351
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +369 -2
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +2 -369
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +4 -134
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +3 -186
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +3 -23
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +2 -3
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +235 -3
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +2 -10
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +2 -235
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +27 -8
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +12 -115
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +8 -27
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +115 -12
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +1 -1
- package/dist/index226.js +2 -435
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +428 -82
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +86 -197
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +200 -6
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +295 -2
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +6 -2
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +2 -2
- package/dist/index236.js +2 -4
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +2 -117
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +2 -106
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +116 -68
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +105 -161
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +4 -2
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +224 -2
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +258 -2
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +162 -224
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +2 -258
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +69 -2
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -38
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -2
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +38 -2
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +2 -2
- package/dist/index250.js +2 -2
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -2
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +2 -3
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +3 -2
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +5 -0
- package/dist/index254.js.map +1 -0
- package/dist/index29.js +3 -3
- package/dist/index31.js +6 -6
- package/dist/index33.js +2 -2
- package/dist/index35.js +2 -2
- package/dist/index47.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index65.js +28 -26
- package/dist/index65.js.map +1 -1
- package/dist/index69.js +2 -2
- package/dist/index72.js +1 -1
- package/dist/index75.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index8.js +13 -13
- package/dist/index8.js.map +1 -1
- package/dist/index81.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index204.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index204.js","sources":["../
|
1
|
+
{"version":3,"file":"index204.js","sources":["../node_modules/dayjs/plugin/weekOfYear.js"],"sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_weekOfYear=t()}(this,(function(){\"use strict\";var e=\"week\",t=\"year\";return function(i,n,r){var f=n.prototype;f.week=function(i){if(void 0===i&&(i=null),null!==i)return this.add(7*(i-this.week()),\"day\");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var f=r(this).startOf(t).add(1,t).date(n),s=r(this).endOf(e);if(f.isBefore(s))return 1}var a=r(this).startOf(t).date(n).startOf(e).subtract(1,\"millisecond\"),o=this.diff(a,e,!0);return o<0?r(this).startOf(\"week\").week():Math.ceil(o)},f.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}));"],"names":["e","t","module","this","i","n","r","f","s","a","o"],"mappings":";;;AAAA,GAAC,SAASA,GAAEC,GAAE;AAAsD,IAAAC,EAAe,UAAAD,EAAqI;AAAA,EAAA,GAAEE,GAAM,WAAU;AAAc,QAAIH,IAAE,QAAOC,IAAE;AAAO,WAAO,SAASG,GAAEC,GAAEC,GAAE;AAAC,UAAIC,IAAEF,EAAE;AAAU,MAAAE,EAAE,OAAK,SAASH,GAAE;AAAC,YAAYA,MAAT,WAAaA,IAAE,OAAaA,MAAP;AAAS,iBAAO,KAAK,IAAI,KAAGA,IAAE,KAAK,KAAI,IAAI,KAAK;AAAE,YAAIC,IAAE,KAAK,QAAO,EAAG,aAAW;AAAE,YAAQ,KAAK,MAAO,MAAjB,MAAmB,KAAK,KAAI,IAAG,IAAG;AAAC,cAAIE,IAAED,EAAE,IAAI,EAAE,QAAQL,CAAC,EAAE,IAAI,GAAEA,CAAC,EAAE,KAAKI,CAAC,GAAEG,IAAEF,EAAE,IAAI,EAAE,MAAMN,CAAC;AAAE,cAAGO,EAAE,SAASC,CAAC;AAAE,mBAAO;AAAA,QAAC;AAAC,YAAIC,IAAEH,EAAE,IAAI,EAAE,QAAQL,CAAC,EAAE,KAAKI,CAAC,EAAE,QAAQL,CAAC,EAAE,SAAS,GAAE,aAAa,GAAEU,IAAE,KAAK,KAAKD,GAAET,GAAE,EAAE;AAAE,eAAOU,IAAE,IAAEJ,EAAE,IAAI,EAAE,QAAQ,MAAM,EAAE,KAAI,IAAG,KAAK,KAAKI,CAAC;AAAA,MAAC,GAAEH,EAAE,QAAM,SAASP,GAAE;AAAC,eAAgBA,MAAT,WAAaA,IAAE,OAAM,KAAK,KAAKA,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC;;;;","x_google_ignoreList":[0]}
|
package/dist/index205.js
CHANGED
@@ -1,5 +1,11 @@
|
|
1
|
-
const
|
1
|
+
const s = (t, o) => t.reduce(
|
2
|
+
(e, r, u, p) => {
|
3
|
+
const n = o(r, u, p);
|
4
|
+
return n in e || (e[n] = []), e[n].push(r), e;
|
5
|
+
},
|
6
|
+
{}
|
7
|
+
);
|
2
8
|
export {
|
3
|
-
|
9
|
+
s as groupBy
|
4
10
|
};
|
5
11
|
//# sourceMappingURL=index205.js.map
|
package/dist/index205.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index205.js","sources":["../src/utilities/functions/
|
1
|
+
{"version":3,"file":"index205.js","sources":["../src/utilities/functions/groupBy.ts"],"sourcesContent":["/**\n * Creates an object with keys corresponding to the return value of iteratee and values correspond to arrays of items\n */\n\nexport const groupBy = <T>(\n arr: T[],\n iteratee: (item: T, index: number, arr: T[]) => string | number | symbol\n): Record<ReturnType<typeof iteratee>, T[]> => {\n return arr.reduce(\n (acc: { [key: ReturnType<typeof iteratee>]: T[] }, curr, index, arr) => {\n const key = iteratee(curr, index, arr);\n if (!(key in acc)) {\n acc[key] = [];\n }\n acc[key].push(curr);\n return acc;\n },\n {}\n );\n};\n"],"names":["groupBy","arr","iteratee","acc","curr","index","key"],"mappings":"AAIa,MAAAA,IAAU,CACrBC,GACAC,MAEOD,EAAI;AAAA,EACT,CAACE,GAAkDC,GAAMC,GAAOJ,MAAQ;AACtE,UAAMK,IAAMJ,EAASE,GAAMC,GAAOJ,CAAG;AACjC,WAAEK,KAAOH,MACPA,EAAAG,CAAG,IAAI,KAETH,EAAAG,CAAG,EAAE,KAAKF,CAAI,GACXD;AAAA,EACT;AAAA,EACA,CAAC;AAAA;"}
|
package/dist/index206.js
CHANGED
package/dist/index206.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index206.js","sources":["../src/utilities/functions/
|
1
|
+
{"version":3,"file":"index206.js","sources":["../src/utilities/functions/last.ts"],"sourcesContent":["/** Takes an array and returns the last element of it */\nexport const last = <T>(arr: T[]) => arr[arr.length - 1] "],"names":["last","arr"],"mappings":"AACO,MAAMA,IAAO,CAAIC,MAAaA,EAAIA,EAAI,SAAS,CAAC;"}
|
package/dist/index207.js
CHANGED
@@ -1,7 +1,354 @@
|
|
1
|
-
import {
|
2
|
-
|
1
|
+
import { computePosition as Z } from "./index212.js";
|
2
|
+
import { arrow as Ct, detectOverflow as Et, flip as Ot, offset as Tt, shift as Lt } from "./index212.js";
|
3
|
+
import { createCoords as x, rectToClientRect as U, round as A, max as T, min as H, floor as B } from "./index239.js";
|
4
|
+
import { getOverflowAncestors as I, isElement as y, getWindow as E, getComputedStyle as m, getDocumentElement as b, isHTMLElement as v, isWebKit as _, getNodeName as F, isOverflowElement as z, getNodeScroll as N, isTableElement as P, isContainingBlock as K, getContainingBlock as tt, getParentNode as V, isLastTraversableNode as X } from "./index240.js";
|
5
|
+
function j(t) {
|
6
|
+
const e = m(t);
|
7
|
+
let o = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
8
|
+
const n = v(t), c = n ? t.offsetWidth : o, s = n ? t.offsetHeight : i, r = A(o) !== c || A(i) !== s;
|
9
|
+
return r && (o = c, i = s), {
|
10
|
+
width: o,
|
11
|
+
height: i,
|
12
|
+
$: r
|
13
|
+
};
|
14
|
+
}
|
15
|
+
function M(t) {
|
16
|
+
return y(t) ? t : t.contextElement;
|
17
|
+
}
|
18
|
+
function L(t) {
|
19
|
+
const e = M(t);
|
20
|
+
if (!v(e))
|
21
|
+
return x(1);
|
22
|
+
const o = e.getBoundingClientRect(), {
|
23
|
+
width: i,
|
24
|
+
height: n,
|
25
|
+
$: c
|
26
|
+
} = j(e);
|
27
|
+
let s = (c ? A(o.width) : o.width) / i, r = (c ? A(o.height) : o.height) / n;
|
28
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!r || !Number.isFinite(r)) && (r = 1), {
|
29
|
+
x: s,
|
30
|
+
y: r
|
31
|
+
};
|
32
|
+
}
|
33
|
+
const et = /* @__PURE__ */ x(0);
|
34
|
+
function G(t) {
|
35
|
+
const e = E(t);
|
36
|
+
return !_() || !e.visualViewport ? et : {
|
37
|
+
x: e.visualViewport.offsetLeft,
|
38
|
+
y: e.visualViewport.offsetTop
|
39
|
+
};
|
40
|
+
}
|
41
|
+
function ot(t, e, o) {
|
42
|
+
return e === void 0 && (e = !1), !o || e && o !== E(t) ? !1 : e;
|
43
|
+
}
|
44
|
+
function O(t, e, o, i) {
|
45
|
+
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
46
|
+
const n = t.getBoundingClientRect(), c = M(t);
|
47
|
+
let s = x(1);
|
48
|
+
e && (i ? y(i) && (s = L(i)) : s = L(t));
|
49
|
+
const r = ot(c, o, i) ? G(c) : x(0);
|
50
|
+
let l = (n.left + r.x) / s.x, f = (n.top + r.y) / s.y, p = n.width / s.x, d = n.height / s.y;
|
51
|
+
if (c) {
|
52
|
+
const w = E(c), a = i && y(i) ? E(i) : i;
|
53
|
+
let g = w.frameElement;
|
54
|
+
for (; g && i && a !== w; ) {
|
55
|
+
const h = L(g), R = g.getBoundingClientRect(), u = m(g), C = R.left + (g.clientLeft + parseFloat(u.paddingLeft)) * h.x, W = R.top + (g.clientTop + parseFloat(u.paddingTop)) * h.y;
|
56
|
+
l *= h.x, f *= h.y, p *= h.x, d *= h.y, l += C, f += W, g = E(g).frameElement;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
return U({
|
60
|
+
width: p,
|
61
|
+
height: d,
|
62
|
+
x: l,
|
63
|
+
y: f
|
64
|
+
});
|
65
|
+
}
|
66
|
+
function it(t) {
|
67
|
+
let {
|
68
|
+
rect: e,
|
69
|
+
offsetParent: o,
|
70
|
+
strategy: i
|
71
|
+
} = t;
|
72
|
+
const n = v(o), c = b(o);
|
73
|
+
if (o === c)
|
74
|
+
return e;
|
75
|
+
let s = {
|
76
|
+
scrollLeft: 0,
|
77
|
+
scrollTop: 0
|
78
|
+
}, r = x(1);
|
79
|
+
const l = x(0);
|
80
|
+
if ((n || !n && i !== "fixed") && ((F(o) !== "body" || z(c)) && (s = N(o)), v(o))) {
|
81
|
+
const f = O(o);
|
82
|
+
r = L(o), l.x = f.x + o.clientLeft, l.y = f.y + o.clientTop;
|
83
|
+
}
|
84
|
+
return {
|
85
|
+
width: e.width * r.x,
|
86
|
+
height: e.height * r.y,
|
87
|
+
x: e.x * r.x - s.scrollLeft * r.x + l.x,
|
88
|
+
y: e.y * r.y - s.scrollTop * r.y + l.y
|
89
|
+
};
|
90
|
+
}
|
91
|
+
function nt(t) {
|
92
|
+
return Array.from(t.getClientRects());
|
93
|
+
}
|
94
|
+
function J(t) {
|
95
|
+
return O(b(t)).left + N(t).scrollLeft;
|
96
|
+
}
|
97
|
+
function st(t) {
|
98
|
+
const e = b(t), o = N(t), i = t.ownerDocument.body, n = T(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), c = T(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
|
99
|
+
let s = -o.scrollLeft + J(t);
|
100
|
+
const r = -o.scrollTop;
|
101
|
+
return m(i).direction === "rtl" && (s += T(e.clientWidth, i.clientWidth) - n), {
|
102
|
+
width: n,
|
103
|
+
height: c,
|
104
|
+
x: s,
|
105
|
+
y: r
|
106
|
+
};
|
107
|
+
}
|
108
|
+
function rt(t, e) {
|
109
|
+
const o = E(t), i = b(t), n = o.visualViewport;
|
110
|
+
let c = i.clientWidth, s = i.clientHeight, r = 0, l = 0;
|
111
|
+
if (n) {
|
112
|
+
c = n.width, s = n.height;
|
113
|
+
const f = _();
|
114
|
+
(!f || f && e === "fixed") && (r = n.offsetLeft, l = n.offsetTop);
|
115
|
+
}
|
116
|
+
return {
|
117
|
+
width: c,
|
118
|
+
height: s,
|
119
|
+
x: r,
|
120
|
+
y: l
|
121
|
+
};
|
122
|
+
}
|
123
|
+
function ct(t, e) {
|
124
|
+
const o = O(t, !0, e === "fixed"), i = o.top + t.clientTop, n = o.left + t.clientLeft, c = v(t) ? L(t) : x(1), s = t.clientWidth * c.x, r = t.clientHeight * c.y, l = n * c.x, f = i * c.y;
|
125
|
+
return {
|
126
|
+
width: s,
|
127
|
+
height: r,
|
128
|
+
x: l,
|
129
|
+
y: f
|
130
|
+
};
|
131
|
+
}
|
132
|
+
function k(t, e, o) {
|
133
|
+
let i;
|
134
|
+
if (e === "viewport")
|
135
|
+
i = rt(t, o);
|
136
|
+
else if (e === "document")
|
137
|
+
i = st(b(t));
|
138
|
+
else if (y(e))
|
139
|
+
i = ct(e, o);
|
140
|
+
else {
|
141
|
+
const n = G(t);
|
142
|
+
i = {
|
143
|
+
...e,
|
144
|
+
x: e.x - n.x,
|
145
|
+
y: e.y - n.y
|
146
|
+
};
|
147
|
+
}
|
148
|
+
return U(i);
|
149
|
+
}
|
150
|
+
function Q(t, e) {
|
151
|
+
const o = V(t);
|
152
|
+
return o === e || !y(o) || X(o) ? !1 : m(o).position === "fixed" || Q(o, e);
|
153
|
+
}
|
154
|
+
function lt(t, e) {
|
155
|
+
const o = e.get(t);
|
156
|
+
if (o)
|
157
|
+
return o;
|
158
|
+
let i = I(t, [], !1).filter((r) => y(r) && F(r) !== "body"), n = null;
|
159
|
+
const c = m(t).position === "fixed";
|
160
|
+
let s = c ? V(t) : t;
|
161
|
+
for (; y(s) && !X(s); ) {
|
162
|
+
const r = m(s), l = K(s);
|
163
|
+
!l && r.position === "fixed" && (n = null), (c ? !l && !n : !l && r.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || z(s) && !l && Q(t, s)) ? i = i.filter((p) => p !== s) : n = r, s = V(s);
|
164
|
+
}
|
165
|
+
return e.set(t, i), i;
|
166
|
+
}
|
167
|
+
function ft(t) {
|
168
|
+
let {
|
169
|
+
element: e,
|
170
|
+
boundary: o,
|
171
|
+
rootBoundary: i,
|
172
|
+
strategy: n
|
173
|
+
} = t;
|
174
|
+
const s = [...o === "clippingAncestors" ? lt(e, this._c) : [].concat(o), i], r = s[0], l = s.reduce((f, p) => {
|
175
|
+
const d = k(e, p, n);
|
176
|
+
return f.top = T(d.top, f.top), f.right = H(d.right, f.right), f.bottom = H(d.bottom, f.bottom), f.left = T(d.left, f.left), f;
|
177
|
+
}, k(e, r, n));
|
178
|
+
return {
|
179
|
+
width: l.right - l.left,
|
180
|
+
height: l.bottom - l.top,
|
181
|
+
x: l.left,
|
182
|
+
y: l.top
|
183
|
+
};
|
184
|
+
}
|
185
|
+
function ut(t) {
|
186
|
+
return j(t);
|
187
|
+
}
|
188
|
+
function ht(t, e, o) {
|
189
|
+
const i = v(e), n = b(e), c = o === "fixed", s = O(t, !0, c, e);
|
190
|
+
let r = {
|
191
|
+
scrollLeft: 0,
|
192
|
+
scrollTop: 0
|
193
|
+
};
|
194
|
+
const l = x(0);
|
195
|
+
if (i || !i && !c)
|
196
|
+
if ((F(e) !== "body" || z(n)) && (r = N(e)), i) {
|
197
|
+
const f = O(e, !0, c, e);
|
198
|
+
l.x = f.x + e.clientLeft, l.y = f.y + e.clientTop;
|
199
|
+
} else
|
200
|
+
n && (l.x = J(n));
|
201
|
+
return {
|
202
|
+
x: s.left + r.scrollLeft - l.x,
|
203
|
+
y: s.top + r.scrollTop - l.y,
|
204
|
+
width: s.width,
|
205
|
+
height: s.height
|
206
|
+
};
|
207
|
+
}
|
208
|
+
function q(t, e) {
|
209
|
+
return !v(t) || m(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
|
210
|
+
}
|
211
|
+
function Y(t, e) {
|
212
|
+
const o = E(t);
|
213
|
+
if (!v(t))
|
214
|
+
return o;
|
215
|
+
let i = q(t, e);
|
216
|
+
for (; i && P(i) && m(i).position === "static"; )
|
217
|
+
i = q(i, e);
|
218
|
+
return i && (F(i) === "html" || F(i) === "body" && m(i).position === "static" && !K(i)) ? o : i || tt(t) || o;
|
219
|
+
}
|
220
|
+
const at = async function(t) {
|
221
|
+
let {
|
222
|
+
reference: e,
|
223
|
+
floating: o,
|
224
|
+
strategy: i
|
225
|
+
} = t;
|
226
|
+
const n = this.getOffsetParent || Y, c = this.getDimensions;
|
227
|
+
return {
|
228
|
+
reference: ht(e, await n(o), i),
|
229
|
+
floating: {
|
230
|
+
x: 0,
|
231
|
+
y: 0,
|
232
|
+
...await c(o)
|
233
|
+
}
|
234
|
+
};
|
235
|
+
};
|
236
|
+
function dt(t) {
|
237
|
+
return m(t).direction === "rtl";
|
238
|
+
}
|
239
|
+
const gt = {
|
240
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: it,
|
241
|
+
getDocumentElement: b,
|
242
|
+
getClippingRect: ft,
|
243
|
+
getOffsetParent: Y,
|
244
|
+
getElementRects: at,
|
245
|
+
getClientRects: nt,
|
246
|
+
getDimensions: ut,
|
247
|
+
getScale: L,
|
248
|
+
isElement: y,
|
249
|
+
isRTL: dt
|
250
|
+
};
|
251
|
+
function pt(t, e) {
|
252
|
+
let o = null, i;
|
253
|
+
const n = b(t);
|
254
|
+
function c() {
|
255
|
+
clearTimeout(i), o && o.disconnect(), o = null;
|
256
|
+
}
|
257
|
+
function s(r, l) {
|
258
|
+
r === void 0 && (r = !1), l === void 0 && (l = 1), c();
|
259
|
+
const {
|
260
|
+
left: f,
|
261
|
+
top: p,
|
262
|
+
width: d,
|
263
|
+
height: w
|
264
|
+
} = t.getBoundingClientRect();
|
265
|
+
if (r || e(), !d || !w)
|
266
|
+
return;
|
267
|
+
const a = B(p), g = B(n.clientWidth - (f + d)), h = B(n.clientHeight - (p + w)), R = B(f), C = {
|
268
|
+
rootMargin: -a + "px " + -g + "px " + -h + "px " + -R + "px",
|
269
|
+
threshold: T(0, H(1, l)) || 1
|
270
|
+
};
|
271
|
+
let W = !0;
|
272
|
+
function S($) {
|
273
|
+
const D = $[0].intersectionRatio;
|
274
|
+
if (D !== l) {
|
275
|
+
if (!W)
|
276
|
+
return s();
|
277
|
+
D ? s(!1, D) : i = setTimeout(() => {
|
278
|
+
s(!1, 1e-7);
|
279
|
+
}, 100);
|
280
|
+
}
|
281
|
+
W = !1;
|
282
|
+
}
|
283
|
+
try {
|
284
|
+
o = new IntersectionObserver(S, {
|
285
|
+
...C,
|
286
|
+
// Handle <iframe>s
|
287
|
+
root: n.ownerDocument
|
288
|
+
});
|
289
|
+
} catch {
|
290
|
+
o = new IntersectionObserver(S, C);
|
291
|
+
}
|
292
|
+
o.observe(t);
|
293
|
+
}
|
294
|
+
return s(!0), c;
|
295
|
+
}
|
296
|
+
function yt(t, e, o, i) {
|
297
|
+
i === void 0 && (i = {});
|
298
|
+
const {
|
299
|
+
ancestorScroll: n = !0,
|
300
|
+
ancestorResize: c = !0,
|
301
|
+
elementResize: s = typeof ResizeObserver == "function",
|
302
|
+
layoutShift: r = typeof IntersectionObserver == "function",
|
303
|
+
animationFrame: l = !1
|
304
|
+
} = i, f = M(t), p = n || c ? [...f ? I(f) : [], ...I(e)] : [];
|
305
|
+
p.forEach((u) => {
|
306
|
+
n && u.addEventListener("scroll", o, {
|
307
|
+
passive: !0
|
308
|
+
}), c && u.addEventListener("resize", o);
|
309
|
+
});
|
310
|
+
const d = f && r ? pt(f, o) : null;
|
311
|
+
let w = -1, a = null;
|
312
|
+
s && (a = new ResizeObserver((u) => {
|
313
|
+
let [C] = u;
|
314
|
+
C && C.target === f && a && (a.unobserve(e), cancelAnimationFrame(w), w = requestAnimationFrame(() => {
|
315
|
+
a && a.observe(e);
|
316
|
+
})), o();
|
317
|
+
}), f && !l && a.observe(f), a.observe(e));
|
318
|
+
let g, h = l ? O(t) : null;
|
319
|
+
l && R();
|
320
|
+
function R() {
|
321
|
+
const u = O(t);
|
322
|
+
h && (u.x !== h.x || u.y !== h.y || u.width !== h.width || u.height !== h.height) && o(), h = u, g = requestAnimationFrame(R);
|
323
|
+
}
|
324
|
+
return o(), () => {
|
325
|
+
p.forEach((u) => {
|
326
|
+
n && u.removeEventListener("scroll", o), c && u.removeEventListener("resize", o);
|
327
|
+
}), d && d(), a && a.disconnect(), a = null, l && cancelAnimationFrame(g);
|
328
|
+
};
|
329
|
+
}
|
330
|
+
const vt = (t, e, o) => {
|
331
|
+
const i = /* @__PURE__ */ new Map(), n = {
|
332
|
+
platform: gt,
|
333
|
+
...o
|
334
|
+
}, c = {
|
335
|
+
...n.platform,
|
336
|
+
_c: i
|
337
|
+
};
|
338
|
+
return Z(t, e, {
|
339
|
+
...n,
|
340
|
+
platform: c
|
341
|
+
});
|
342
|
+
};
|
3
343
|
export {
|
4
|
-
|
5
|
-
|
344
|
+
Ct as arrow,
|
345
|
+
yt as autoUpdate,
|
346
|
+
vt as computePosition,
|
347
|
+
Et as detectOverflow,
|
348
|
+
Ot as flip,
|
349
|
+
I as getOverflowAncestors,
|
350
|
+
Tt as offset,
|
351
|
+
gt as platform,
|
352
|
+
Lt as shift
|
6
353
|
};
|
7
354
|
//# sourceMappingURL=index207.js.map
|
package/dist/index207.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index207.js","sources":["../src/utilities/functions/when.ts"],"sourcesContent":["import { curry } from \"./curry\"\n/**\n * Runs fn on item if iteratee(item) is thruthy\n * @param iteratee The test\n * @param item The item to test\n * @param fn The transformer function\n * @returns\n */\nexport const baseWhen = <T, U>(\n iteratee: (item: T) => boolean,\n fn: (item: T) => U,\n item: T\n) => {\n if (iteratee(item)) return fn(item);\n return item;\n};\n\nexport const when = curry(baseWhen);\n"],"names":["baseWhen","iteratee","fn","item","when","curry"],"mappings":";AAQO,MAAMA,IAAW,CACtBC,GACAC,GACAC,MAEIF,EAASE,CAAI,IAAUD,EAAGC,CAAI,IAC3BA,GAGIC,IAAOC,EAAML,CAAQ;"}
|
1
|
+
{"version":3,"file":"index207.js","sources":["../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"],"sourcesContent":["import { rectToClientRect, computePosition as computePosition$1 } from '@floating-ui/core';\nexport { arrow, autoPlacement, detectOverflow, flip, hide, inline, limitShift, offset, shift, size } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle, isHTMLElement, isElement, getWindow, isWebKit, getDocumentElement, getNodeName, isOverflowElement, getNodeScroll, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentIFrame = win.frameElement;\n while (currentIFrame && offsetParent && offsetWin !== win) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentIFrame = getWindow(currentIFrame).frameElement;\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n if (offsetParent === documentElement) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\nfunction getWindowScrollBarX(element) {\n // If <html> has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n ...clippingAncestor,\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n return getCssDimensions(element);\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n return element.offsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const window = getWindow(element);\n if (!isHTMLElement(element)) {\n return window;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {\n return window;\n }\n return offsetParent || getContainingBlock(element) || window;\n}\n\nconst getElementRects = async function (_ref) {\n let {\n reference,\n floating,\n strategy\n } = _ref;\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n return {\n reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),\n floating: {\n x: 0,\n y: 0,\n ...(await getDimensionsFn(floating))\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n clearTimeout(timeoutId);\n io && io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const {\n left,\n top,\n width,\n height\n } = element.getBoundingClientRect();\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 100);\n } else {\n refresh(false, ratio);\n }\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle <iframe>s\n root: root.ownerDocument\n });\n } catch (e) {\n io = new IntersectionObserver(handleObserve, options);\n }\n io.observe(element);\n }\n refresh(true);\n return cleanup;\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n ancestorScroll = true,\n ancestorResize = true,\n elementResize = typeof ResizeObserver === 'function',\n layoutShift = typeof IntersectionObserver === 'function',\n animationFrame = false\n } = options;\n const referenceEl = unwrapElement(reference);\n const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.addEventListener('scroll', update, {\n passive: true\n });\n ancestorResize && ancestor.addEventListener('resize', update);\n });\n const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n let reobserveFrame = -1;\n let resizeObserver = null;\n if (elementResize) {\n resizeObserver = new ResizeObserver(_ref => {\n let [firstEntry] = _ref;\n if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n // Prevent update loops when using the `size` middleware.\n // https://github.com/floating-ui/floating-ui/issues/1740\n resizeObserver.unobserve(floating);\n cancelAnimationFrame(reobserveFrame);\n reobserveFrame = requestAnimationFrame(() => {\n resizeObserver && resizeObserver.observe(floating);\n });\n }\n update();\n });\n if (referenceEl && !animationFrame) {\n resizeObserver.observe(referenceEl);\n }\n resizeObserver.observe(floating);\n }\n let frameId;\n let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n if (animationFrame) {\n frameLoop();\n }\n function frameLoop() {\n const nextRefRect = getBoundingClientRect(reference);\n if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n cleanupIo && cleanupIo();\n resizeObserver && resizeObserver.disconnect();\n resizeObserver = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a reference element when it is given a certain CSS positioning\n * strategy.\n */\nconst computePosition = (reference, floating, options) => {\n // This caches the expensive `getClippingElementAncestors` function so that\n // multiple lifecycle resets re-use the same result. It only lives for a\n // single call. If other functions become expensive, we can add them as well.\n const cache = new Map();\n const mergedOptions = {\n platform,\n ...options\n };\n const platformWithCache = {\n ...mergedOptions.platform,\n _c: cache\n };\n return computePosition$1(reference, floating, {\n ...mergedOptions,\n platform: platformWithCache\n });\n};\n\nexport { autoUpdate, computePosition, platform };\n"],"names":["getCssDimensions","element","css","getComputedStyle","width","height","hasOffset","isHTMLElement","offsetWidth","offsetHeight","shouldFallback","round","unwrapElement","isElement","getScale","domElement","createCoords","rect","$","x","y","noOffsets","getVisualOffsets","win","getWindow","isWebKit","shouldAddVisualOffsets","isFixed","floatingOffsetParent","getBoundingClientRect","includeScale","isFixedStrategy","offsetParent","clientRect","scale","visualOffsets","offsetWin","currentIFrame","iframeScale","iframeRect","left","top","rectToClientRect","convertOffsetParentRelativeRectToViewportRelativeRect","_ref","strategy","isOffsetParentAnElement","documentElement","getDocumentElement","scroll","offsets","getNodeName","isOverflowElement","getNodeScroll","offsetRect","getClientRects","getWindowScrollBarX","getDocumentRect","html","body","max","getViewportRect","visualViewport","visualViewportBased","getInnerBoundingClientRect","getClientRectFromClippingAncestor","clippingAncestor","hasFixedPositionAncestor","stopNode","parentNode","getParentNode","isLastTraversableNode","getClippingElementAncestors","cache","cachedResult","result","getOverflowAncestors","el","currentContainingBlockComputedStyle","elementIsFixed","currentNode","computedStyle","currentNodeIsContaining","isContainingBlock","ancestor","getClippingRect","boundary","rootBoundary","clippingAncestors","firstClippingAncestor","clippingRect","accRect","min","getDimensions","getRectRelativeToOffsetParent","getTrueOffsetParent","polyfill","getOffsetParent","window","isTableElement","getContainingBlock","getElementRects","reference","floating","getOffsetParentFn","getDimensionsFn","isRTL","platform","observeMove","onMove","io","timeoutId","root","cleanup","refresh","skip","threshold","insetTop","floor","insetRight","insetBottom","insetLeft","options","isFirstUpdate","handleObserve","entries","ratio","autoUpdate","update","ancestorScroll","ancestorResize","elementResize","layoutShift","animationFrame","referenceEl","ancestors","cleanupIo","reobserveFrame","resizeObserver","firstEntry","frameId","prevRefRect","frameLoop","nextRefRect","computePosition","mergedOptions","platformWithCache","computePosition$1"],"mappings":";;;;AAMA,SAASA,EAAiBC,GAAS;AACjC,QAAMC,IAAMC,EAAiBF,CAAO;AAGpC,MAAIG,IAAQ,WAAWF,EAAI,KAAK,KAAK,GACjCG,IAAS,WAAWH,EAAI,MAAM,KAAK;AACvC,QAAMI,IAAYC,EAAcN,CAAO,GACjCO,IAAcF,IAAYL,EAAQ,cAAcG,GAChDK,IAAeH,IAAYL,EAAQ,eAAeI,GAClDK,IAAiBC,EAAMP,CAAK,MAAMI,KAAeG,EAAMN,CAAM,MAAMI;AACzE,SAAIC,MACFN,IAAQI,GACRH,IAASI,IAEJ;AAAA,IACL,OAAAL;AAAA,IACA,QAAAC;AAAA,IACA,GAAGK;AAAA,EACP;AACA;AAEA,SAASE,EAAcX,GAAS;AAC9B,SAAQY,EAAUZ,CAAO,IAA6BA,IAAzBA,EAAQ;AACvC;AAEA,SAASa,EAASb,GAAS;AACzB,QAAMc,IAAaH,EAAcX,CAAO;AACxC,MAAI,CAACM,EAAcQ,CAAU;AAC3B,WAAOC,EAAa,CAAC;AAEvB,QAAMC,IAAOF,EAAW,yBAClB;AAAA,IACJ,OAAAX;AAAA,IACA,QAAAC;AAAA,IACA,GAAAa;AAAA,EACJ,IAAMlB,EAAiBe,CAAU;AAC/B,MAAII,KAAKD,IAAIP,EAAMM,EAAK,KAAK,IAAIA,EAAK,SAASb,GAC3CgB,KAAKF,IAAIP,EAAMM,EAAK,MAAM,IAAIA,EAAK,UAAUZ;AAIjD,UAAI,CAACc,KAAK,CAAC,OAAO,SAASA,CAAC,OAC1BA,IAAI,KAEF,CAACC,KAAK,CAAC,OAAO,SAASA,CAAC,OAC1BA,IAAI,IAEC;AAAA,IACL,GAAAD;AAAA,IACA,GAAAC;AAAA,EACJ;AACA;AAEA,MAAMC,KAAyB,gBAAAL,EA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GACQwB,IAAoB;AAAA,IACxB,GAAGD,EAAc;AAAA,IACjB,IAAIxE;AAAA,EACR;AACE,SAAO0E,EAAkB7C,GAAWC,GAAU;AAAA,IAC5C,GAAG0C;AAAA,IACH,UAAUC;AAAA,EACd,CAAG;AACH;","x_google_ignoreList":[0]}
|
package/dist/index208.js
CHANGED
@@ -1,5 +1,137 @@
|
|
1
|
-
|
1
|
+
import { getDefaultExportFromCjs as R, commonjsGlobal as W } from "./index231.js";
|
2
|
+
import { __module as G } from "./index238.js";
|
3
|
+
(function(V, rt) {
|
4
|
+
(function(b, Z) {
|
5
|
+
V.exports = Z();
|
6
|
+
})(W, function() {
|
7
|
+
var b = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, Z = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, $ = /\d\d/, i = /\d\d?/, y = /\d*[^-_:/,()\s\d]+/, m = {}, U = function(t) {
|
8
|
+
return (t = +t) + (t > 68 ? 1900 : 2e3);
|
9
|
+
}, o = function(t) {
|
10
|
+
return function(r) {
|
11
|
+
this[t] = +r;
|
12
|
+
};
|
13
|
+
}, j = [/[+-]\d\d:?(\d\d)?|Z/, function(t) {
|
14
|
+
(this.zone || (this.zone = {})).offset = function(r) {
|
15
|
+
if (!r || r === "Z")
|
16
|
+
return 0;
|
17
|
+
var n = r.match(/([+-]|\d\d)/g), e = 60 * n[1] + (+n[2] || 0);
|
18
|
+
return e === 0 ? 0 : n[0] === "+" ? -e : e;
|
19
|
+
}(t);
|
20
|
+
}], F = function(t) {
|
21
|
+
var r = m[t];
|
22
|
+
return r && (r.indexOf ? r : r.s.concat(r.f));
|
23
|
+
}, k = function(t, r) {
|
24
|
+
var n, e = m.meridiem;
|
25
|
+
if (e) {
|
26
|
+
for (var c = 1; c <= 24; c += 1)
|
27
|
+
if (t.indexOf(e(c, 0, r)) > -1) {
|
28
|
+
n = c > 12;
|
29
|
+
break;
|
30
|
+
}
|
31
|
+
} else
|
32
|
+
n = t === (r ? "pm" : "PM");
|
33
|
+
return n;
|
34
|
+
}, q = { A: [y, function(t) {
|
35
|
+
this.afternoon = k(t, !1);
|
36
|
+
}], a: [y, function(t) {
|
37
|
+
this.afternoon = k(t, !0);
|
38
|
+
}], S: [/\d/, function(t) {
|
39
|
+
this.milliseconds = 100 * +t;
|
40
|
+
}], SS: [$, function(t) {
|
41
|
+
this.milliseconds = 10 * +t;
|
42
|
+
}], SSS: [/\d{3}/, function(t) {
|
43
|
+
this.milliseconds = +t;
|
44
|
+
}], s: [i, o("seconds")], ss: [i, o("seconds")], m: [i, o("minutes")], mm: [i, o("minutes")], H: [i, o("hours")], h: [i, o("hours")], HH: [i, o("hours")], hh: [i, o("hours")], D: [i, o("day")], DD: [$, o("day")], Do: [y, function(t) {
|
45
|
+
var r = m.ordinal, n = t.match(/\d+/);
|
46
|
+
if (this.day = n[0], r)
|
47
|
+
for (var e = 1; e <= 31; e += 1)
|
48
|
+
r(e).replace(/\[|\]/g, "") === t && (this.day = e);
|
49
|
+
}], M: [i, o("month")], MM: [$, o("month")], MMM: [y, function(t) {
|
50
|
+
var r = F("months"), n = (F("monthsShort") || r.map(function(e) {
|
51
|
+
return e.slice(0, 3);
|
52
|
+
})).indexOf(t) + 1;
|
53
|
+
if (n < 1)
|
54
|
+
throw new Error();
|
55
|
+
this.month = n % 12 || n;
|
56
|
+
}], MMMM: [y, function(t) {
|
57
|
+
var r = F("months").indexOf(t) + 1;
|
58
|
+
if (r < 1)
|
59
|
+
throw new Error();
|
60
|
+
this.month = r % 12 || r;
|
61
|
+
}], Y: [/[+-]?\d+/, o("year")], YY: [$, function(t) {
|
62
|
+
this.year = U(t);
|
63
|
+
}], YYYY: [/\d{4}/, o("year")], Z: j, ZZ: j };
|
64
|
+
function B(t) {
|
65
|
+
var r, n;
|
66
|
+
r = t, n = m && m.formats;
|
67
|
+
for (var e = (t = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(v, l, f) {
|
68
|
+
var a = f && f.toUpperCase();
|
69
|
+
return l || n[f] || b[f] || n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, Y, D) {
|
70
|
+
return Y || D.slice(1);
|
71
|
+
});
|
72
|
+
})).match(Z), c = e.length, h = 0; h < c; h += 1) {
|
73
|
+
var w = e[h], p = q[w], u = p && p[0], d = p && p[1];
|
74
|
+
e[h] = d ? { regex: u, parser: d } : w.replace(/^\[|\]$/g, "");
|
75
|
+
}
|
76
|
+
return function(v) {
|
77
|
+
for (var l = {}, f = 0, a = 0; f < c; f += 1) {
|
78
|
+
var M = e[f];
|
79
|
+
if (typeof M == "string")
|
80
|
+
a += M.length;
|
81
|
+
else {
|
82
|
+
var Y = M.regex, D = M.parser, S = v.slice(a), g = Y.exec(S)[0];
|
83
|
+
D.call(l, g), v = v.replace(g, "");
|
84
|
+
}
|
85
|
+
}
|
86
|
+
return function(L) {
|
87
|
+
var s = L.afternoon;
|
88
|
+
if (s !== void 0) {
|
89
|
+
var x = L.hours;
|
90
|
+
s ? x < 12 && (L.hours += 12) : x === 12 && (L.hours = 0), delete L.afternoon;
|
91
|
+
}
|
92
|
+
}(l), l;
|
93
|
+
};
|
94
|
+
}
|
95
|
+
return function(t, r, n) {
|
96
|
+
n.p.customParseFormat = !0, t && t.parseTwoDigitYear && (U = t.parseTwoDigitYear);
|
97
|
+
var e = r.prototype, c = e.parse;
|
98
|
+
e.parse = function(h) {
|
99
|
+
var w = h.date, p = h.utc, u = h.args;
|
100
|
+
this.$u = p;
|
101
|
+
var d = u[1];
|
102
|
+
if (typeof d == "string") {
|
103
|
+
var v = u[2] === !0, l = u[3] === !0, f = v || l, a = u[2];
|
104
|
+
l && (a = u[2]), m = this.$locale(), !v && a && (m = n.Ls[a]), this.$d = function(S, g, L) {
|
105
|
+
try {
|
106
|
+
if (["x", "X"].indexOf(g) > -1)
|
107
|
+
return new Date((g === "X" ? 1e3 : 1) * S);
|
108
|
+
var s = B(g)(S), x = s.year, A = s.month, I = s.day, J = s.hours, K = s.minutes, N = s.seconds, Q = s.milliseconds, X = s.zone, H = /* @__PURE__ */ new Date(), O = I || (x || A ? 1 : H.getDate()), P = x || H.getFullYear(), T = 0;
|
109
|
+
x && !A || (T = A > 0 ? A - 1 : H.getMonth());
|
110
|
+
var z = J || 0, C = K || 0, E = N || 0, _ = Q || 0;
|
111
|
+
return X ? new Date(Date.UTC(P, T, O, z, C, E, _ + 60 * X.offset * 1e3)) : L ? new Date(Date.UTC(P, T, O, z, C, E, _)) : new Date(P, T, O, z, C, E, _);
|
112
|
+
} catch {
|
113
|
+
return /* @__PURE__ */ new Date("");
|
114
|
+
}
|
115
|
+
}(w, d, p), this.init(), a && a !== !0 && (this.$L = this.locale(a).$L), f && w != this.format(d) && (this.$d = /* @__PURE__ */ new Date("")), m = {};
|
116
|
+
} else if (d instanceof Array)
|
117
|
+
for (var M = d.length, Y = 1; Y <= M; Y += 1) {
|
118
|
+
u[1] = d[Y - 1];
|
119
|
+
var D = n.apply(this, u);
|
120
|
+
if (D.isValid()) {
|
121
|
+
this.$d = D.$d, this.$L = D.$L, this.init();
|
122
|
+
break;
|
123
|
+
}
|
124
|
+
Y === M && (this.$d = /* @__PURE__ */ new Date(""));
|
125
|
+
}
|
126
|
+
else
|
127
|
+
c.call(this, h);
|
128
|
+
};
|
129
|
+
};
|
130
|
+
});
|
131
|
+
})(G);
|
132
|
+
var tt = G.exports;
|
133
|
+
const at = /* @__PURE__ */ R(tt);
|
2
134
|
export {
|
3
|
-
|
135
|
+
at as default
|
4
136
|
};
|
5
137
|
//# sourceMappingURL=index208.js.map
|