@everymatrix/mini-games-hub 0.1.18 → 0.1.20
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/components/BackButton-BrfBWRIr.js +38 -0
- package/components/BackButton-DWyr6ELs.js +39 -0
- package/components/CoinFlip-CqHlL4t9.js +367 -0
- package/components/CoinFlip-zzM-FtUg.js +402 -0
- package/components/CoinRoyale-BJWVsEJj.cjs +759 -0
- package/components/CoinRoyale-BfaHdSQN.cjs +757 -0
- package/components/CoinRoyale-Bgl4Ea3N.js +1018 -0
- package/components/CoinRoyale-CuEAflkt.cjs +757 -0
- package/components/CoinRoyale-DKWXkm3P.js +1040 -0
- package/components/CoinRoyale-Y2G7RWga.js +1020 -0
- package/components/CoinRoyale-hmGqx4pF.cjs +759 -0
- package/components/CoinRoyale-t3opSEHv.js +1038 -0
- package/components/DrawResult-DXaJYat3.js +343 -0
- package/components/DrawResult-FwuHCP-y.js +373 -0
- package/components/GameCard-45tJnqY3.cjs +3 -0
- package/components/GameCard-C1IfKCWx.js +66 -0
- package/components/GameCard-CLXODhBl.js +63 -0
- package/components/GameCard-DZm1MFqf.cjs +3 -0
- package/components/GameHistory-9Xh7Sb6S.cjs +13 -0
- package/components/GameHistory-B6MiGA9Z.js +240 -0
- package/components/GameHistory-BmChILXB.js +241 -0
- package/components/GameHistory-DioZWMQ8.cjs +13 -0
- package/components/GamePlaceholder-2C54MJXM.js +87 -0
- package/components/GamePlaceholder-BPZQa2uj.cjs +18 -0
- package/components/GamePlaceholder-CXixYEW3.cjs +18 -0
- package/components/GamePlaceholder-zLYrDd0k.js +88 -0
- package/components/GameRules-DNete4N3.js +117 -0
- package/components/GameRules-DOPgbqxU.cjs +5 -0
- package/components/GameRules-DbfGxBGR.cjs +5 -0
- package/components/GameRules-lzdMrQZY.js +128 -0
- package/components/MiniGamesHub-9mWWh3N1.js +1111 -0
- package/components/MiniGamesHub-CQ1jWyWR.js +1111 -0
- package/components/MiniGamesHub-CWV1acJR.cjs +79 -0
- package/components/MiniGamesHub-CfeP3fA-.cjs +79 -0
- package/components/MiniGamesHub-ChMf3rL7.js +1141 -0
- package/components/MiniGamesHub-Cv7rxLAO.cjs +79 -0
- package/components/MiniGamesHub-D4fNnQ70.js +1141 -0
- package/components/MiniGamesHub-gVFlxi4x.cjs +79 -0
- package/components/MysteryChest-Bq1NBRQI.cjs +739 -0
- package/components/MysteryChest-BsUxRwj9.js +1248 -0
- package/components/MysteryChest-C1jSQFBT.cjs +741 -0
- package/components/MysteryChest-Cg48wdP6.cjs +741 -0
- package/components/MysteryChest-Cq77jWfV.cjs +739 -0
- package/components/MysteryChest-D5OWiZfM.js +1250 -0
- package/components/MysteryChest-DE2NS9aL.js +1299 -0
- package/components/MysteryChest-pWptmU6O.js +1297 -0
- package/components/WheelOfFortune-CriOHAfp.cjs +627 -0
- package/components/WheelOfFortune-D2AVLv8r.js +934 -0
- package/components/WheelOfFortune-Dsr3jMxy.cjs +627 -0
- package/components/WheelOfFortune-uTfPiHqd.js +950 -0
- package/components/WheelOfFortuneWheel-C91V0Bho.js +1741 -0
- package/components/WheelOfFortuneWheel-CDjrztMA.js +1812 -0
- package/components/countdown-Bn5Dj09X.js +157 -0
- package/components/utils-DT23SX1f.js +6007 -0
- package/es2015/mini-games-hub.cjs +1 -1
- package/es2015/mini-games-hub.js +1 -1
- package/esnext/mini-games-hub.cjs +1 -1
- package/esnext/mini-games-hub.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { c as C, g as R, d as v } from "./utils-DT23SX1f.js";
|
|
2
|
+
var E = { exports: {} };
|
|
3
|
+
(function(p, g) {
|
|
4
|
+
(function(d, o) {
|
|
5
|
+
p.exports = o();
|
|
6
|
+
})(C, function() {
|
|
7
|
+
var d, o, c = 1e3, m = 6e4, l = 36e5, $ = 864e5, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, k = 31536e6, w = 2628e6, F = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, M = { years: k, months: w, days: $, hours: l, minutes: m, seconds: c, milliseconds: 1, weeks: 6048e5 }, D = function(n) {
|
|
8
|
+
return n instanceof j;
|
|
9
|
+
}, S = function(n, s, t) {
|
|
10
|
+
return new j(n, t, s.$l);
|
|
11
|
+
}, Y = function(n) {
|
|
12
|
+
return o.p(n) + "s";
|
|
13
|
+
}, O = function(n) {
|
|
14
|
+
return n < 0;
|
|
15
|
+
}, f = function(n) {
|
|
16
|
+
return O(n) ? Math.ceil(n) : Math.floor(n);
|
|
17
|
+
}, I = function(n) {
|
|
18
|
+
return Math.abs(n);
|
|
19
|
+
}, y = function(n, s) {
|
|
20
|
+
return n ? O(n) ? { negative: !0, format: "" + I(n) + s } : { negative: !1, format: "" + n + s } : { negative: !1, format: "" };
|
|
21
|
+
}, j = function() {
|
|
22
|
+
function n(t, i, r) {
|
|
23
|
+
var e = this;
|
|
24
|
+
if (this.$d = {}, this.$l = r, t === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), i) return S(t * M[Y(i)], this);
|
|
25
|
+
if (typeof t == "number") return this.$ms = t, this.parseFromMilliseconds(), this;
|
|
26
|
+
if (typeof t == "object") return Object.keys(t).forEach(function(h) {
|
|
27
|
+
e.$d[Y(h)] = t[h];
|
|
28
|
+
}), this.calMilliseconds(), this;
|
|
29
|
+
if (typeof t == "string") {
|
|
30
|
+
var a = t.match(F);
|
|
31
|
+
if (a) {
|
|
32
|
+
var u = a.slice(2).map(function(h) {
|
|
33
|
+
return h != null ? Number(h) : 0;
|
|
34
|
+
});
|
|
35
|
+
return this.$d.years = u[0], this.$d.months = u[1], this.$d.weeks = u[2], this.$d.days = u[3], this.$d.hours = u[4], this.$d.minutes = u[5], this.$d.seconds = u[6], this.calMilliseconds(), this;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
var s = n.prototype;
|
|
41
|
+
return s.calMilliseconds = function() {
|
|
42
|
+
var t = this;
|
|
43
|
+
this.$ms = Object.keys(this.$d).reduce(function(i, r) {
|
|
44
|
+
return i + (t.$d[r] || 0) * M[r];
|
|
45
|
+
}, 0);
|
|
46
|
+
}, s.parseFromMilliseconds = function() {
|
|
47
|
+
var t = this.$ms;
|
|
48
|
+
this.$d.years = f(t / k), t %= k, this.$d.months = f(t / w), t %= w, this.$d.days = f(t / $), t %= $, this.$d.hours = f(t / l), t %= l, this.$d.minutes = f(t / m), t %= m, this.$d.seconds = f(t / c), t %= c, this.$d.milliseconds = t;
|
|
49
|
+
}, s.toISOString = function() {
|
|
50
|
+
var t = y(this.$d.years, "Y"), i = y(this.$d.months, "M"), r = +this.$d.days || 0;
|
|
51
|
+
this.$d.weeks && (r += 7 * this.$d.weeks);
|
|
52
|
+
var e = y(r, "D"), a = y(this.$d.hours, "H"), u = y(this.$d.minutes, "M"), h = this.$d.seconds || 0;
|
|
53
|
+
this.$d.milliseconds && (h += this.$d.milliseconds / 1e3, h = Math.round(1e3 * h) / 1e3);
|
|
54
|
+
var H = y(h, "S"), T = t.negative || i.negative || e.negative || a.negative || u.negative || H.negative, N = a.format || u.format || H.format ? "T" : "", x = (T ? "-" : "") + "P" + t.format + i.format + e.format + N + a.format + u.format + H.format;
|
|
55
|
+
return x === "P" || x === "-P" ? "P0D" : x;
|
|
56
|
+
}, s.toJSON = function() {
|
|
57
|
+
return this.toISOString();
|
|
58
|
+
}, s.format = function(t) {
|
|
59
|
+
var i = t || "YYYY-MM-DDTHH:mm:ss", r = { Y: this.$d.years, YY: o.s(this.$d.years, 2, "0"), YYYY: o.s(this.$d.years, 4, "0"), M: this.$d.months, MM: o.s(this.$d.months, 2, "0"), D: this.$d.days, DD: o.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: o.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: o.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: o.s(this.$d.seconds, 2, "0"), SSS: o.s(this.$d.milliseconds, 3, "0") };
|
|
60
|
+
return i.replace(b, function(e, a) {
|
|
61
|
+
return a || String(r[e]);
|
|
62
|
+
});
|
|
63
|
+
}, s.as = function(t) {
|
|
64
|
+
return this.$ms / M[Y(t)];
|
|
65
|
+
}, s.get = function(t) {
|
|
66
|
+
var i = this.$ms, r = Y(t);
|
|
67
|
+
return r === "milliseconds" ? i %= 1e3 : i = r === "weeks" ? f(i / M[r]) : this.$d[r], i || 0;
|
|
68
|
+
}, s.add = function(t, i, r) {
|
|
69
|
+
var e;
|
|
70
|
+
return e = i ? t * M[Y(i)] : D(t) ? t.$ms : S(t, this).$ms, S(this.$ms + e * (r ? -1 : 1), this);
|
|
71
|
+
}, s.subtract = function(t, i) {
|
|
72
|
+
return this.add(t, i, !0);
|
|
73
|
+
}, s.locale = function(t) {
|
|
74
|
+
var i = this.clone();
|
|
75
|
+
return i.$l = t, i;
|
|
76
|
+
}, s.clone = function() {
|
|
77
|
+
return S(this.$ms, this);
|
|
78
|
+
}, s.humanize = function(t) {
|
|
79
|
+
return d().add(this.$ms, "ms").locale(this.$l).fromNow(!t);
|
|
80
|
+
}, s.valueOf = function() {
|
|
81
|
+
return this.asMilliseconds();
|
|
82
|
+
}, s.milliseconds = function() {
|
|
83
|
+
return this.get("milliseconds");
|
|
84
|
+
}, s.asMilliseconds = function() {
|
|
85
|
+
return this.as("milliseconds");
|
|
86
|
+
}, s.seconds = function() {
|
|
87
|
+
return this.get("seconds");
|
|
88
|
+
}, s.asSeconds = function() {
|
|
89
|
+
return this.as("seconds");
|
|
90
|
+
}, s.minutes = function() {
|
|
91
|
+
return this.get("minutes");
|
|
92
|
+
}, s.asMinutes = function() {
|
|
93
|
+
return this.as("minutes");
|
|
94
|
+
}, s.hours = function() {
|
|
95
|
+
return this.get("hours");
|
|
96
|
+
}, s.asHours = function() {
|
|
97
|
+
return this.as("hours");
|
|
98
|
+
}, s.days = function() {
|
|
99
|
+
return this.get("days");
|
|
100
|
+
}, s.asDays = function() {
|
|
101
|
+
return this.as("days");
|
|
102
|
+
}, s.weeks = function() {
|
|
103
|
+
return this.get("weeks");
|
|
104
|
+
}, s.asWeeks = function() {
|
|
105
|
+
return this.as("weeks");
|
|
106
|
+
}, s.months = function() {
|
|
107
|
+
return this.get("months");
|
|
108
|
+
}, s.asMonths = function() {
|
|
109
|
+
return this.as("months");
|
|
110
|
+
}, s.years = function() {
|
|
111
|
+
return this.get("years");
|
|
112
|
+
}, s.asYears = function() {
|
|
113
|
+
return this.as("years");
|
|
114
|
+
}, n;
|
|
115
|
+
}(), P = function(n, s, t) {
|
|
116
|
+
return n.add(s.years() * t, "y").add(s.months() * t, "M").add(s.days() * t, "d").add(s.hours() * t, "h").add(s.minutes() * t, "m").add(s.seconds() * t, "s").add(s.milliseconds() * t, "ms");
|
|
117
|
+
};
|
|
118
|
+
return function(n, s, t) {
|
|
119
|
+
d = t, o = t().$utils(), t.duration = function(e, a) {
|
|
120
|
+
var u = t.locale();
|
|
121
|
+
return S(e, { $l: u }, a);
|
|
122
|
+
}, t.isDuration = D;
|
|
123
|
+
var i = s.prototype.add, r = s.prototype.subtract;
|
|
124
|
+
s.prototype.add = function(e, a) {
|
|
125
|
+
return D(e) ? P(this, e, 1) : i.bind(this)(e, a);
|
|
126
|
+
}, s.prototype.subtract = function(e, a) {
|
|
127
|
+
return D(e) ? P(this, e, -1) : r.bind(this)(e, a);
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
})(E);
|
|
132
|
+
var W = E.exports;
|
|
133
|
+
const Z = /* @__PURE__ */ R(W);
|
|
134
|
+
v.extend(Z);
|
|
135
|
+
const z = { days: 0, hours: "00", minutes: "00", seconds: "00" }, A = (p) => {
|
|
136
|
+
const g = v(p ?? 0).diff(v());
|
|
137
|
+
if (g <= 0) return { ...z };
|
|
138
|
+
const d = v.duration(g);
|
|
139
|
+
return {
|
|
140
|
+
days: Math.floor(d.asDays()),
|
|
141
|
+
hours: String(d.hours()).padStart(2, "0"),
|
|
142
|
+
minutes: String(d.minutes()).padStart(2, "0"),
|
|
143
|
+
seconds: String(d.seconds()).padStart(2, "0")
|
|
144
|
+
};
|
|
145
|
+
}, J = ({ getTarget: p, onTick: g, onElapsed: d }) => {
|
|
146
|
+
let o = !1, c;
|
|
147
|
+
const m = () => {
|
|
148
|
+
c !== void 0 && (clearInterval(c), c = void 0);
|
|
149
|
+
}, l = () => {
|
|
150
|
+
const $ = p(), b = v($ ?? 0).diff(v());
|
|
151
|
+
g(A($)), b <= 0 && !o && (o = !0, m(), d());
|
|
152
|
+
};
|
|
153
|
+
return l(), o || (c = setInterval(l, 1e3)), m;
|
|
154
|
+
};
|
|
155
|
+
export {
|
|
156
|
+
J as c
|
|
157
|
+
};
|