@unicom-cloud/utils 0.1.15 → 0.1.16
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/lunar/lib/Holiday.js +2 -6
- package/lunar/lib/HolidayUtil.js +113 -99
- package/lunar/lib/I18n.js +395 -975
- package/lunar/lib/JieQi.js +12 -16
- package/lunar/lib/Lunar.js +224 -672
- package/lunar/lib/LunarMonth.js +35 -98
- package/lunar/lib/LunarTime.js +24 -103
- package/lunar/lib/LunarUtil.js +426 -1728
- package/lunar/lib/LunarYear.js +473 -566
- package/lunar/lib/ShouXingUtil.js +6714 -6690
- package/lunar/lib/Solar.js +24 -49
- package/lunar/lib/SolarHalfYear.js +0 -2
- package/lunar/lib/SolarMonth.js +4 -6
- package/lunar/lib/SolarSeason.js +0 -2
- package/lunar/lib/SolarUtil.js +238 -226
- package/lunar/lib/SolarWeek.js +7 -11
- package/lunar/lib/SolarYear.js +0 -1
- package/package.json +1 -1
- package/snapdom/src/core/prepare.js +21 -21
- package/snapdom/src/modules/fonts.js +99 -91
- package/snapdom/src/modules/pseudo.js +58 -66
- package/tinycolor/src/conversion.js +1 -1
- package/tinycolor/src/index.js +2 -19
- package/turbo-stream/src/encode.js +5 -8
- package/turbo-stream/src/shared.js +117 -119
- package/types/lunar/lib/Lunar.d.ts +0 -98
- package/types/lunar/lib/LunarMonth.d.ts +0 -12
- package/types/lunar/lib/LunarTime.d.ts +0 -22
- package/types/lunar/lib/LunarUtil.d.ts +0 -90
- package/types/lunar/lib/LunarYear.d.ts +0 -30
- package/types/lunar/lib/Solar.d.ts +0 -5
- package/types/snapdom/src/modules/pseudo.d.ts +1 -1
- package/types/tinycolor/src/conversion.d.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const u = "A", T = "*", S = "J", f = "j", y = "b", A = "K", l = "V", p = "D", E = "E", w = "!", I = "false", N = "k", b = "H", L = "h", B = "F", F = "I", U = "L", Y = "G", x = "O", m = "M", D = "NaN", M = "i", P = "z", O = "null", z = "P", G = "$", g = "R", C = "<redacted>", v = "@", j = "r", q = "S", V = ":", W = "s", k = "true", H = "l", J = "g", K = "o", Q = "C", X = "u", Z = "U";
|
|
2
2
|
let a = !0;
|
|
3
3
|
try {
|
|
4
4
|
new File([], "");
|
|
@@ -6,154 +6,152 @@ try {
|
|
|
6
6
|
a = !1;
|
|
7
7
|
}
|
|
8
8
|
class $ {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
constructor() {
|
|
10
|
+
this.p = 0, this.#e = [];
|
|
11
|
+
}
|
|
12
|
+
#e;
|
|
13
|
+
#t(t) {
|
|
14
|
+
this.p === 0 ? t() : this.#e.push(t);
|
|
13
15
|
}
|
|
14
16
|
add() {
|
|
15
17
|
this.p++;
|
|
16
18
|
}
|
|
17
19
|
done() {
|
|
18
20
|
if (--this.p === 0) {
|
|
19
|
-
let
|
|
20
|
-
for (; (
|
|
21
|
-
|
|
21
|
+
let t;
|
|
22
|
+
for (; (t = this.#e.shift()) !== void 0; )
|
|
23
|
+
t();
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
wait() {
|
|
25
|
-
return new Promise(this.#
|
|
27
|
+
return new Promise(this.#t.bind(this));
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
class c {
|
|
29
|
-
promise;
|
|
30
|
-
resolve;
|
|
31
|
-
reject;
|
|
32
31
|
constructor() {
|
|
33
|
-
this.promise = new Promise((
|
|
34
|
-
this.resolve =
|
|
32
|
+
this.promise = new Promise((t, e) => {
|
|
33
|
+
this.resolve = t, this.reject = e;
|
|
35
34
|
});
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
class d {
|
|
39
|
-
|
|
40
|
-
#t =
|
|
41
|
-
#e = this.#t;
|
|
38
|
+
#e = new c();
|
|
39
|
+
#t = this.#e;
|
|
42
40
|
constructor() {
|
|
43
41
|
this.iterable = async function* () {
|
|
44
|
-
let
|
|
42
|
+
let t = this.#e;
|
|
45
43
|
for (; ; ) {
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
44
|
+
const e = await t.promise;
|
|
45
|
+
if (e.done)
|
|
48
46
|
return;
|
|
49
|
-
yield
|
|
47
|
+
yield e.value, t = e.next;
|
|
50
48
|
}
|
|
51
49
|
}.bind(this)();
|
|
52
50
|
}
|
|
53
51
|
resolve() {
|
|
54
|
-
this.#
|
|
52
|
+
this.#t.resolve({ done: !0 });
|
|
55
53
|
}
|
|
56
|
-
reject(
|
|
57
|
-
this.#
|
|
58
|
-
}), this.#
|
|
54
|
+
reject(t) {
|
|
55
|
+
this.#t.promise.catch(() => {
|
|
56
|
+
}), this.#t.reject(t);
|
|
59
57
|
}
|
|
60
|
-
yield(
|
|
61
|
-
const
|
|
62
|
-
this.#
|
|
58
|
+
yield(t) {
|
|
59
|
+
const e = new c();
|
|
60
|
+
this.#t.resolve({
|
|
63
61
|
done: !1,
|
|
64
|
-
value:
|
|
65
|
-
next:
|
|
66
|
-
}), this.#
|
|
62
|
+
value: t,
|
|
63
|
+
next: e
|
|
64
|
+
}), this.#t = e;
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
|
-
class
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
e.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
e
|
|
67
|
+
class tt extends d {
|
|
68
|
+
constructor() {
|
|
69
|
+
super(...arguments), this.readable = new ReadableStream({
|
|
70
|
+
start: async (t) => {
|
|
71
|
+
try {
|
|
72
|
+
for await (const e of this.iterable)
|
|
73
|
+
t.enqueue(e);
|
|
74
|
+
t.close();
|
|
75
|
+
} catch (e) {
|
|
76
|
+
t.error(e);
|
|
77
|
+
}
|
|
78
78
|
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
81
|
}
|
|
82
82
|
class h extends Blob {
|
|
83
|
-
promise;
|
|
84
|
-
#t;
|
|
85
83
|
#e;
|
|
84
|
+
#t;
|
|
86
85
|
#s = {};
|
|
87
|
-
constructor(
|
|
88
|
-
if (super(), typeof
|
|
89
|
-
this.promise =
|
|
90
|
-
let i =
|
|
91
|
-
typeof
|
|
92
|
-
let
|
|
93
|
-
typeof s < "u" && (
|
|
86
|
+
constructor(t, e, s, o) {
|
|
87
|
+
if (super(), typeof t < "u") {
|
|
88
|
+
this.promise = t.promise;
|
|
89
|
+
let i = t.#s.start ?? 0;
|
|
90
|
+
typeof e < "u" && (i += e), this.#s.start = i;
|
|
91
|
+
let n = t.#s.end;
|
|
92
|
+
typeof s < "u" && (n = (t.#s.start ?? 0) + s), this.#s.end = n, this.#t = o ?? t?.type, this.#e = (n ?? t.size) - i;
|
|
94
93
|
}
|
|
95
94
|
}
|
|
96
95
|
get size() {
|
|
97
|
-
if (typeof this.#
|
|
96
|
+
if (typeof this.#e > "u")
|
|
98
97
|
throw new Error("Size is not set");
|
|
99
|
-
return this.#
|
|
98
|
+
return this.#e;
|
|
100
99
|
}
|
|
101
|
-
set size(
|
|
102
|
-
this.#
|
|
100
|
+
set size(t) {
|
|
101
|
+
this.#e = t;
|
|
103
102
|
}
|
|
104
103
|
get type() {
|
|
105
|
-
if (typeof this.#
|
|
104
|
+
if (typeof this.#t > "u")
|
|
106
105
|
throw new Error("Type is not set");
|
|
107
|
-
return this.#
|
|
106
|
+
return this.#t;
|
|
108
107
|
}
|
|
109
|
-
set type(
|
|
110
|
-
this.#
|
|
108
|
+
set type(t) {
|
|
109
|
+
this.#t = t;
|
|
111
110
|
}
|
|
112
111
|
async arrayBuffer() {
|
|
113
112
|
if (!this.promise)
|
|
114
113
|
throw new Error("Promise is not set");
|
|
115
|
-
const
|
|
116
|
-
return this.#s ?
|
|
114
|
+
const t = await this.promise;
|
|
115
|
+
return this.#s ? t.slice(
|
|
117
116
|
this.#s.start,
|
|
118
117
|
this.#s.end
|
|
119
|
-
) :
|
|
118
|
+
) : t;
|
|
120
119
|
}
|
|
121
120
|
bytes() {
|
|
122
|
-
return this.arrayBuffer().then((
|
|
121
|
+
return this.arrayBuffer().then((t) => new Uint8Array(t));
|
|
123
122
|
}
|
|
124
|
-
slice(
|
|
125
|
-
return new h(this,
|
|
123
|
+
slice(t, e, s) {
|
|
124
|
+
return new h(this, t, e, s);
|
|
126
125
|
}
|
|
127
126
|
stream() {
|
|
128
127
|
return new ReadableStream({
|
|
129
|
-
start: async (
|
|
128
|
+
start: async (t) => {
|
|
130
129
|
try {
|
|
131
|
-
|
|
132
|
-
} catch (
|
|
133
|
-
|
|
130
|
+
t.enqueue(await this.bytes()), t.close();
|
|
131
|
+
} catch (e) {
|
|
132
|
+
t.error(e);
|
|
134
133
|
}
|
|
135
134
|
}
|
|
136
135
|
});
|
|
137
136
|
}
|
|
138
137
|
text() {
|
|
139
|
-
return this.bytes().then((
|
|
138
|
+
return this.bytes().then((t) => new TextDecoder().decode(t));
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
const _ = a ? File : Blob;
|
|
143
142
|
class R extends _ {
|
|
144
|
-
promise;
|
|
145
|
-
#t;
|
|
146
143
|
#e;
|
|
144
|
+
#t;
|
|
147
145
|
#s;
|
|
148
|
-
#
|
|
146
|
+
#n;
|
|
149
147
|
#i = {};
|
|
150
|
-
constructor(
|
|
151
|
-
if (a ? super([], "") : super([]), typeof
|
|
152
|
-
this.promise =
|
|
153
|
-
let i =
|
|
154
|
-
typeof
|
|
155
|
-
let
|
|
156
|
-
typeof s < "u" && (
|
|
148
|
+
constructor(t, e, s, o) {
|
|
149
|
+
if (a ? super([], "") : super([]), typeof t < "u") {
|
|
150
|
+
this.promise = t.promise;
|
|
151
|
+
let i = t.#i.start ?? 0;
|
|
152
|
+
typeof e < "u" && (i += e), this.#i.start = i;
|
|
153
|
+
let n = t.#i.end;
|
|
154
|
+
typeof s < "u" && (n = (t.#i.start ?? 0) + s), this.#i.end = n, this.#t = o ?? t?.type, this.#s = t.name, this.#n = t.lastModified;
|
|
157
155
|
}
|
|
158
156
|
}
|
|
159
157
|
get name() {
|
|
@@ -161,74 +159,74 @@ class R extends _ {
|
|
|
161
159
|
throw new Error("Name is not set");
|
|
162
160
|
return this.#s;
|
|
163
161
|
}
|
|
164
|
-
set name(
|
|
165
|
-
this.#s =
|
|
162
|
+
set name(t) {
|
|
163
|
+
this.#s = t;
|
|
166
164
|
}
|
|
167
165
|
get lastModified() {
|
|
168
|
-
if (typeof this.#
|
|
166
|
+
if (typeof this.#n > "u")
|
|
169
167
|
throw new Error("Last modified is not set");
|
|
170
|
-
return this.#
|
|
168
|
+
return this.#n;
|
|
171
169
|
}
|
|
172
|
-
set lastModified(
|
|
173
|
-
this.#
|
|
170
|
+
set lastModified(t) {
|
|
171
|
+
this.#n = t;
|
|
174
172
|
}
|
|
175
173
|
get size() {
|
|
176
|
-
if (typeof this.#
|
|
174
|
+
if (typeof this.#e > "u")
|
|
177
175
|
throw new Error("Size is not set");
|
|
178
|
-
return this.#
|
|
176
|
+
return this.#e;
|
|
179
177
|
}
|
|
180
|
-
set size(
|
|
181
|
-
this.#
|
|
178
|
+
set size(t) {
|
|
179
|
+
this.#e = t;
|
|
182
180
|
}
|
|
183
181
|
get type() {
|
|
184
|
-
if (typeof this.#
|
|
182
|
+
if (typeof this.#t > "u")
|
|
185
183
|
throw new Error("Type is not set");
|
|
186
|
-
return this.#
|
|
184
|
+
return this.#t;
|
|
187
185
|
}
|
|
188
|
-
set type(
|
|
189
|
-
this.#
|
|
186
|
+
set type(t) {
|
|
187
|
+
this.#t = t;
|
|
190
188
|
}
|
|
191
189
|
async arrayBuffer() {
|
|
192
190
|
if (!this.promise)
|
|
193
191
|
throw new Error("Promise is not set");
|
|
194
|
-
const
|
|
195
|
-
return this.#i ?
|
|
192
|
+
const t = await this.promise;
|
|
193
|
+
return this.#i ? t.slice(
|
|
196
194
|
this.#i.start,
|
|
197
195
|
this.#i.end
|
|
198
|
-
) :
|
|
196
|
+
) : t;
|
|
199
197
|
}
|
|
200
198
|
bytes() {
|
|
201
|
-
return this.arrayBuffer().then((
|
|
199
|
+
return this.arrayBuffer().then((t) => new Uint8Array(t));
|
|
202
200
|
}
|
|
203
|
-
slice(
|
|
204
|
-
return new R(this,
|
|
201
|
+
slice(t, e, s) {
|
|
202
|
+
return new R(this, t, e, s);
|
|
205
203
|
}
|
|
206
204
|
stream() {
|
|
207
205
|
return new ReadableStream({
|
|
208
|
-
start: async (
|
|
206
|
+
start: async (t) => {
|
|
209
207
|
try {
|
|
210
|
-
|
|
211
|
-
} catch (
|
|
212
|
-
|
|
208
|
+
t.enqueue(await this.bytes()), t.close();
|
|
209
|
+
} catch (e) {
|
|
210
|
+
t.error(e);
|
|
213
211
|
}
|
|
214
212
|
}
|
|
215
213
|
});
|
|
216
214
|
}
|
|
217
215
|
text() {
|
|
218
|
-
return this.bytes().then((
|
|
216
|
+
return this.bytes().then((t) => new TextDecoder().decode(t));
|
|
219
217
|
}
|
|
220
218
|
}
|
|
221
219
|
export {
|
|
222
220
|
c as Deferred,
|
|
223
221
|
d as DeferredAsyncIterable,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
222
|
+
tt as DeferredReadableStream,
|
|
223
|
+
u as STR_ARRAY_BUFFER,
|
|
224
|
+
T as STR_ASYNC_ITERABLE,
|
|
225
|
+
y as STR_BIGINT,
|
|
228
226
|
S as STR_BIG_INT_64_ARRAY,
|
|
229
227
|
f as STR_BIG_UINT_64_ARRAY,
|
|
230
|
-
|
|
231
|
-
|
|
228
|
+
A as STR_BLOB,
|
|
229
|
+
l as STR_DATA_VIEW,
|
|
232
230
|
p as STR_DATE,
|
|
233
231
|
E as STR_ERROR,
|
|
234
232
|
w as STR_FAILURE,
|
|
@@ -236,20 +234,20 @@ export {
|
|
|
236
234
|
N as STR_FILE,
|
|
237
235
|
b as STR_FLOAT_32_ARRAY,
|
|
238
236
|
L as STR_FLOAT_64_ARRAY,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
237
|
+
B as STR_FORM_DATA,
|
|
238
|
+
F as STR_INFINITY,
|
|
239
|
+
U as STR_INT_16_ARRAY,
|
|
240
|
+
Y as STR_INT_32_ARRAY,
|
|
241
|
+
x as STR_INT_8_ARRAY,
|
|
242
|
+
m as STR_MAP,
|
|
245
243
|
M as STR_NEGATIVE_INFINITY,
|
|
246
244
|
P as STR_NEGATIVE_ZERO,
|
|
247
245
|
O as STR_NULL,
|
|
248
246
|
D as STR_NaN,
|
|
249
247
|
z as STR_PLUGIN,
|
|
250
248
|
G as STR_PROMISE,
|
|
251
|
-
|
|
252
|
-
|
|
249
|
+
g as STR_READABLE_STREAM,
|
|
250
|
+
C as STR_REDACTED,
|
|
253
251
|
v as STR_REFERENCE_SYMBOL,
|
|
254
252
|
j as STR_REGEXP,
|
|
255
253
|
q as STR_SET,
|
|
@@ -107,66 +107,12 @@ export declare class Lunar {
|
|
|
107
107
|
getYearInChinese(): string;
|
|
108
108
|
getMonthInChinese(): string;
|
|
109
109
|
getDayInChinese(): string;
|
|
110
|
-
getPengZuGan(): string;
|
|
111
|
-
getPengZuZhi(): string;
|
|
112
|
-
getPositionXi(): string;
|
|
113
|
-
getPositionXiDesc(): string;
|
|
114
|
-
getPositionYangGui(): string;
|
|
115
|
-
getPositionYangGuiDesc(): string;
|
|
116
|
-
getPositionYinGui(): string;
|
|
117
|
-
getPositionYinGuiDesc(): string;
|
|
118
|
-
getPositionFu(): string;
|
|
119
|
-
getPositionFuDesc(): string;
|
|
120
|
-
getPositionCai(): string;
|
|
121
|
-
getPositionCaiDesc(): string;
|
|
122
|
-
getDayPositionXi(): string;
|
|
123
|
-
getDayPositionXiDesc(): string;
|
|
124
|
-
getDayPositionYangGui(): string;
|
|
125
|
-
getDayPositionYangGuiDesc(): string;
|
|
126
|
-
getDayPositionYinGui(): string;
|
|
127
|
-
getDayPositionYinGuiDesc(): string;
|
|
128
|
-
getDayPositionFu(sect?: number): string;
|
|
129
|
-
getDayPositionFuDesc(sect?: number): string;
|
|
130
|
-
getDayPositionCai(): string;
|
|
131
|
-
getDayPositionCaiDesc(): string;
|
|
132
|
-
getTimePositionXi(): string;
|
|
133
|
-
getTimePositionXiDesc(): string;
|
|
134
|
-
getTimePositionYangGui(): string;
|
|
135
|
-
getTimePositionYangGuiDesc(): string;
|
|
136
|
-
getTimePositionYinGui(): string;
|
|
137
|
-
getTimePositionYinGuiDesc(): string;
|
|
138
|
-
getTimePositionFu(sect?: number): string;
|
|
139
|
-
getTimePositionFuDesc(sect?: number): string;
|
|
140
|
-
getTimePositionCai(): string;
|
|
141
|
-
getTimePositionCaiDesc(): string;
|
|
142
|
-
getYearPositionTaiSui(sect?: number): string;
|
|
143
|
-
getYearPositionTaiSuiDesc(sect?: number): string;
|
|
144
|
-
getMonthPositionTaiSui(sect?: number): string;
|
|
145
|
-
getMonthPositionTaiSuiDesc(sect?: number): string;
|
|
146
|
-
getDayPositionTaiSui(sect?: number): string;
|
|
147
|
-
getDayPositionTaiSuiDesc(sect?: number): string;
|
|
148
|
-
getChong(): string;
|
|
149
110
|
getChongGan(): string;
|
|
150
111
|
getChongGanTie(): string;
|
|
151
|
-
getChongShengXiao(): string;
|
|
152
|
-
getChongDesc(): string;
|
|
153
|
-
getSha(): string;
|
|
154
|
-
getDayChong(): string;
|
|
155
112
|
getDayChongGan(): string;
|
|
156
113
|
getDayChongGanTie(): string;
|
|
157
|
-
getDayChongShengXiao(): string;
|
|
158
|
-
getDayChongDesc(): string;
|
|
159
|
-
getDaySha(): string;
|
|
160
|
-
getTimeChong(): string;
|
|
161
114
|
getTimeChongGan(): string;
|
|
162
115
|
getTimeChongGanTie(): string;
|
|
163
|
-
getTimeChongShengXiao(): string;
|
|
164
|
-
getTimeChongDesc(): string;
|
|
165
|
-
getTimeSha(): string;
|
|
166
|
-
getYearNaYin(): string;
|
|
167
|
-
getMonthNaYin(): string;
|
|
168
|
-
getDayNaYin(): string;
|
|
169
|
-
getTimeNaYin(): string;
|
|
170
116
|
getSeason(): string;
|
|
171
117
|
private static _convertJieQi;
|
|
172
118
|
getJie(): string;
|
|
@@ -174,30 +120,8 @@ export declare class Lunar {
|
|
|
174
120
|
getJieQi(): string;
|
|
175
121
|
getWeek(): number;
|
|
176
122
|
getWeekInChinese(): string;
|
|
177
|
-
getXiu(): string;
|
|
178
|
-
getXiuLuck(): string;
|
|
179
|
-
getXiuSong(): string;
|
|
180
|
-
getZheng(): string;
|
|
181
|
-
getAnimal(): string;
|
|
182
|
-
getGong(): string;
|
|
183
|
-
getShou(): string;
|
|
184
123
|
getFestivals(): string[];
|
|
185
124
|
getOtherFestivals(): string[];
|
|
186
|
-
getZhiXing(): string;
|
|
187
|
-
getDayTianShen(): string;
|
|
188
|
-
getTimeTianShen(): string;
|
|
189
|
-
getDayTianShenType(): string;
|
|
190
|
-
getTimeTianShenType(): string;
|
|
191
|
-
getDayTianShenLuck(): string;
|
|
192
|
-
getTimeTianShenLuck(): string;
|
|
193
|
-
getDayPositionTai(): string;
|
|
194
|
-
getMonthPositionTai(): string;
|
|
195
|
-
getDayYi(sect?: number): string[];
|
|
196
|
-
getDayJi(sect?: number): string[];
|
|
197
|
-
getDayJiShen(): string[];
|
|
198
|
-
getDayXiongSha(): string[];
|
|
199
|
-
getTimeYi(): string[];
|
|
200
|
-
getTimeJi(): string[];
|
|
201
125
|
getYueXiang(): string;
|
|
202
126
|
private getJieQiSolar;
|
|
203
127
|
getSolar(): Solar;
|
|
@@ -216,30 +140,8 @@ export declare class Lunar {
|
|
|
216
140
|
getCurrentJie(): JieQi | null;
|
|
217
141
|
getCurrentQi(): JieQi | null;
|
|
218
142
|
next(days: number): Lunar;
|
|
219
|
-
getYearXun(): string;
|
|
220
|
-
getMonthXun(): string;
|
|
221
|
-
getDayXun(): string;
|
|
222
|
-
getTimeXun(): string;
|
|
223
|
-
getYearXunByLiChun(): string;
|
|
224
|
-
getYearXunExact(): string;
|
|
225
|
-
getMonthXunExact(): string;
|
|
226
|
-
getDayXunExact(): string;
|
|
227
|
-
getDayXunExact2(): string;
|
|
228
|
-
getYearXunKong(): string;
|
|
229
|
-
getMonthXunKong(): string;
|
|
230
|
-
getDayXunKong(): string;
|
|
231
|
-
getTimeXunKong(): string;
|
|
232
|
-
getYearXunKongByLiChun(): string;
|
|
233
|
-
getYearXunKongExact(): string;
|
|
234
|
-
getMonthXunKongExact(): string;
|
|
235
|
-
getDayXunKongExact(): string;
|
|
236
|
-
getDayXunKongExact2(): string;
|
|
237
143
|
toString(): string;
|
|
238
144
|
toFullString(): string;
|
|
239
|
-
getLiuYao(): string;
|
|
240
|
-
getWuHou(): string;
|
|
241
|
-
getHou(): string;
|
|
242
|
-
getDayLu(): string;
|
|
243
145
|
getTime(): LunarTime;
|
|
244
146
|
getTimes(): LunarTime[];
|
|
245
147
|
}
|
|
@@ -18,18 +18,6 @@ export declare class LunarMonth {
|
|
|
18
18
|
isLeap(): boolean;
|
|
19
19
|
getDayCount(): number;
|
|
20
20
|
getFirstJulianDay(): number;
|
|
21
|
-
getPositionXi(): string;
|
|
22
|
-
getPositionXiDesc(): string;
|
|
23
|
-
getPositionYangGui(): string;
|
|
24
|
-
getPositionYangGuiDesc(): string;
|
|
25
|
-
getPositionYinGui(): string;
|
|
26
|
-
getPositionYinGuiDesc(): string;
|
|
27
|
-
getPositionFu(sect?: number): string;
|
|
28
|
-
getPositionFuDesc(sect?: number): string;
|
|
29
|
-
getPositionCai(): string;
|
|
30
|
-
getPositionCaiDesc(): string;
|
|
31
|
-
getPositionTaiSui(): string;
|
|
32
|
-
getPositionTaiSuiDesc(): string;
|
|
33
21
|
toString(): string;
|
|
34
22
|
next(n: number): LunarMonth | null;
|
|
35
23
|
}
|
|
@@ -10,30 +10,8 @@ export declare class LunarTime {
|
|
|
10
10
|
getZhi(): string;
|
|
11
11
|
getGanZhi(): string;
|
|
12
12
|
getShengXiao(): string;
|
|
13
|
-
getPositionXi(): string;
|
|
14
|
-
getPositionXiDesc(): string;
|
|
15
|
-
getPositionYangGui(): string;
|
|
16
|
-
getPositionYangGuiDesc(): string;
|
|
17
|
-
getPositionYinGui(): string;
|
|
18
|
-
getPositionYinGuiDesc(): string;
|
|
19
|
-
getPositionFu(sect?: number): string;
|
|
20
|
-
getPositionFuDesc(sect?: number): string;
|
|
21
|
-
getPositionCai(): string;
|
|
22
|
-
getPositionCaiDesc(): string;
|
|
23
|
-
getNaYin(): string;
|
|
24
|
-
getTianShen(): string;
|
|
25
|
-
getTianShenType(): string;
|
|
26
|
-
getTianShenLuck(): string;
|
|
27
|
-
getChong(): string;
|
|
28
|
-
getSha(): string;
|
|
29
|
-
getChongShengXiao(): string;
|
|
30
|
-
getChongDesc(): string;
|
|
31
13
|
getChongGan(): string;
|
|
32
14
|
getChongGanTie(): string;
|
|
33
|
-
getYi(): string[];
|
|
34
|
-
getJi(): string[];
|
|
35
|
-
getXun(): string;
|
|
36
|
-
getXunKong(): string;
|
|
37
15
|
getMinHm(): string;
|
|
38
16
|
getMaxHm(): string;
|
|
39
17
|
toString(): string;
|
|
@@ -1,125 +1,35 @@
|
|
|
1
1
|
export declare class LunarUtil {
|
|
2
2
|
static BASE_MONTH_ZHI_INDEX: number;
|
|
3
|
-
static XUN: string[];
|
|
4
|
-
static XUN_KONG: string[];
|
|
5
|
-
static CHANG_SHENG: string[];
|
|
6
|
-
static MONTH_ZHI: string[];
|
|
7
3
|
static JIE_QI: string[];
|
|
8
4
|
static JIE_QI_IN_USE: string[];
|
|
9
|
-
static LIU_YAO: string[];
|
|
10
|
-
static HOU: string[];
|
|
11
|
-
static WU_HOU: string[];
|
|
12
5
|
static GAN: string[];
|
|
13
|
-
static POSITION_XI: string[];
|
|
14
|
-
static POSITION_YANG_GUI: string[];
|
|
15
|
-
static POSITION_YIN_GUI: string[];
|
|
16
|
-
static POSITION_FU: string[];
|
|
17
|
-
static POSITION_FU_2: string[];
|
|
18
|
-
static POSITION_CAI: string[];
|
|
19
|
-
static POSITION_TAI_SUI_YEAR: string[];
|
|
20
|
-
static POSITION_GAN: string[];
|
|
21
|
-
static POSITION_ZHI: string[];
|
|
22
|
-
static POSITION_TAI_DAY: string[];
|
|
23
|
-
static POSITION_TAI_MONTH: string[];
|
|
24
6
|
static ZHI: string[];
|
|
25
|
-
static ZHI_XING: string[];
|
|
26
7
|
static JIA_ZI: string[];
|
|
27
8
|
static CHANG_SHENG_OFFSET: {
|
|
28
9
|
[key: string]: number;
|
|
29
10
|
};
|
|
30
|
-
static TIAN_SHEN: string[];
|
|
31
11
|
static ZHI_TIAN_SHEN_OFFSET: {
|
|
32
12
|
[key: string]: number;
|
|
33
13
|
};
|
|
34
|
-
static TIAN_SHEN_TYPE: {
|
|
35
|
-
[key: string]: string;
|
|
36
|
-
};
|
|
37
|
-
static TIAN_SHEN_TYPE_LUCK: {
|
|
38
|
-
[key: string]: string;
|
|
39
|
-
};
|
|
40
|
-
static LU: {
|
|
41
|
-
[key: string]: string;
|
|
42
|
-
};
|
|
43
|
-
static PENGZU_GAN: string[];
|
|
44
|
-
static PENGZU_ZHI: string[];
|
|
45
14
|
static NUMBER: string[];
|
|
46
15
|
static MONTH: string[];
|
|
47
16
|
static SEASON: string[];
|
|
48
17
|
static SHENGXIAO: string[];
|
|
49
18
|
static DAY: string[];
|
|
50
19
|
static YUE_XIANG: string[];
|
|
51
|
-
static XIU: {
|
|
52
|
-
[key: string]: string;
|
|
53
|
-
};
|
|
54
|
-
static XIU_LUCK: {
|
|
55
|
-
[key: string]: string;
|
|
56
|
-
};
|
|
57
|
-
static XIU_SONG: {
|
|
58
|
-
[key: string]: string;
|
|
59
|
-
};
|
|
60
|
-
static ZHENG: {
|
|
61
|
-
[key: string]: string;
|
|
62
|
-
};
|
|
63
|
-
static ANIMAL: {
|
|
64
|
-
[key: string]: string;
|
|
65
|
-
};
|
|
66
|
-
static GONG: {
|
|
67
|
-
[key: string]: string;
|
|
68
|
-
};
|
|
69
|
-
static SHOU: {
|
|
70
|
-
[key: string]: string;
|
|
71
|
-
};
|
|
72
20
|
static FESTIVAL: {
|
|
73
21
|
[key: string]: string;
|
|
74
22
|
};
|
|
75
23
|
static OTHER_FESTIVAL: {
|
|
76
24
|
[key: string]: string[];
|
|
77
25
|
};
|
|
78
|
-
static CHONG: string[];
|
|
79
26
|
static CHONG_GAN: string[];
|
|
80
27
|
static CHONG_GAN_TIE: string[];
|
|
81
|
-
static CHONG_GAN_4: string[];
|
|
82
|
-
static HE_GAN_5: string[];
|
|
83
|
-
static HE_ZHI_6: string[];
|
|
84
|
-
static SHA: {
|
|
85
|
-
[key: string]: string;
|
|
86
|
-
};
|
|
87
|
-
static POSITION_DESC: {
|
|
88
|
-
[key: string]: string;
|
|
89
|
-
};
|
|
90
|
-
static NAYIN: {
|
|
91
|
-
[key: string]: string;
|
|
92
|
-
};
|
|
93
|
-
static WU_XING_GAN: {
|
|
94
|
-
[key: string]: string;
|
|
95
|
-
};
|
|
96
|
-
static WU_XING_ZHI: {
|
|
97
|
-
[key: string]: string;
|
|
98
|
-
};
|
|
99
|
-
static SHI_SHEN: {
|
|
100
|
-
[key: string]: string;
|
|
101
|
-
};
|
|
102
|
-
static ZHI_HIDE_GAN: {
|
|
103
|
-
[key: string]: string[];
|
|
104
|
-
};
|
|
105
|
-
private static YI_JI;
|
|
106
|
-
private static DAY_YI_JI;
|
|
107
|
-
private static TIME_YI_JI;
|
|
108
|
-
private static SHEN_SHA;
|
|
109
|
-
private static DAY_SHEN_SHA;
|
|
110
28
|
static getTimeZhiIndex(hm: string): number;
|
|
111
29
|
static convertTime(hm: string): string;
|
|
112
30
|
static getJiaZiIndex(ganZhi: string): number;
|
|
113
31
|
static hex(n: number): string;
|
|
114
|
-
static getDayYi(monthGanZhi: string, dayGanZhi: string): string[];
|
|
115
|
-
static getDayJi(monthGanZhi: string, dayGanZhi: string): string[];
|
|
116
|
-
static getDayJiShen(lunarMonth: number, dayGanZhi: string): string[];
|
|
117
|
-
static getDayXiongSha(lunarMonth: number, dayGanZhi: string): string[];
|
|
118
|
-
static getTimeYi(dayGanZhi: string, timeGanZhi: string): string[];
|
|
119
|
-
static getTimeJi(dayGanZhi: string, timeGanZhi: string): string[];
|
|
120
32
|
static getXunIndex(ganZhi: string): number;
|
|
121
|
-
static getXun(ganZhi: string): string;
|
|
122
|
-
static getXunKong(ganZhi: string): string;
|
|
123
33
|
static find(s: string, arr: Array<string>): {
|
|
124
34
|
index: number;
|
|
125
35
|
value: string;
|