jaml-ui 0.26.0 → 0.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5929,93 +5929,93 @@ function Vo(e) {
|
|
|
5929
5929
|
}
|
|
5930
5930
|
//#endregion
|
|
5931
5931
|
//#region src/decode/motelyItemDecoder.ts
|
|
5932
|
-
var Ho = {
|
|
5933
|
-
[
|
|
5934
|
-
[
|
|
5935
|
-
[
|
|
5936
|
-
[
|
|
5937
|
-
[
|
|
5932
|
+
var Ho = W, Uo = {
|
|
5933
|
+
[Ho.MotelyItemTypeCategory.Standardcard]: "playing",
|
|
5934
|
+
[Ho.MotelyItemTypeCategory.SpectralCard]: "spectral",
|
|
5935
|
+
[Ho.MotelyItemTypeCategory.TarotCard]: "tarot",
|
|
5936
|
+
[Ho.MotelyItemTypeCategory.PlanetCard]: "planet",
|
|
5937
|
+
[Ho.MotelyItemTypeCategory.Joker]: "joker"
|
|
5938
5938
|
};
|
|
5939
|
-
function
|
|
5939
|
+
function Wo(e, t) {
|
|
5940
5940
|
let n = e[String(t)];
|
|
5941
5941
|
return typeof n == "string" ? n : null;
|
|
5942
5942
|
}
|
|
5943
|
-
function Wo(e) {
|
|
5944
|
-
return e.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
|
|
5945
|
-
}
|
|
5946
5943
|
function Go(e) {
|
|
5947
|
-
return e
|
|
5944
|
+
return e.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
|
|
5948
5945
|
}
|
|
5949
5946
|
function Ko(e) {
|
|
5950
|
-
|
|
5951
|
-
return t === null ? null : t & 65535;
|
|
5947
|
+
return e == null ? null : typeof e == "number" ? Number.isFinite(e) ? e : null : e.value ?? e.type ?? null;
|
|
5952
5948
|
}
|
|
5953
5949
|
function qo(e) {
|
|
5954
5950
|
let t = Ko(e);
|
|
5955
|
-
return t === null ?
|
|
5951
|
+
return t === null ? null : t & 65535;
|
|
5956
5952
|
}
|
|
5957
5953
|
function Jo(e) {
|
|
5958
|
-
|
|
5954
|
+
let t = qo(e);
|
|
5955
|
+
return t === null ? "Unknown" : Wo(W.MotelyItemType, t) ?? `item#${t}`;
|
|
5959
5956
|
}
|
|
5960
5957
|
function Yo(e) {
|
|
5961
|
-
|
|
5962
|
-
return t === null ? "unknown" : Jo(t);
|
|
5958
|
+
return Uo[e >> 12 & 15] ?? "unknown";
|
|
5963
5959
|
}
|
|
5964
5960
|
function Xo(e) {
|
|
5965
|
-
|
|
5961
|
+
let t = qo(e);
|
|
5962
|
+
return t === null ? "unknown" : Yo(t);
|
|
5966
5963
|
}
|
|
5967
5964
|
function Zo(e) {
|
|
5965
|
+
return Go(Jo(e));
|
|
5966
|
+
}
|
|
5967
|
+
function Qo(e) {
|
|
5968
5968
|
if (e == null) return null;
|
|
5969
5969
|
let t = typeof e == "number" ? e : e.edition;
|
|
5970
5970
|
if (t == null) return null;
|
|
5971
|
-
let n =
|
|
5971
|
+
let n = Wo(W.MotelyItemEdition, t);
|
|
5972
5972
|
return !n || n === "None" ? null : n;
|
|
5973
5973
|
}
|
|
5974
|
-
function
|
|
5974
|
+
function $o(e) {
|
|
5975
5975
|
if (e == null) return null;
|
|
5976
5976
|
let t = typeof e == "number" ? null : e.seal;
|
|
5977
5977
|
if (t == null) return null;
|
|
5978
|
-
let n =
|
|
5978
|
+
let n = Wo(W.MotelyItemSeal, t);
|
|
5979
5979
|
return !n || n === "None" ? null : n;
|
|
5980
5980
|
}
|
|
5981
|
-
function
|
|
5981
|
+
function es(e) {
|
|
5982
5982
|
if (e == null) return null;
|
|
5983
5983
|
let t = typeof e == "number" ? null : e.enhancement;
|
|
5984
5984
|
if (t == null) return null;
|
|
5985
|
-
let n =
|
|
5985
|
+
let n = Wo(W.MotelyItemEnhancement, t);
|
|
5986
5986
|
return !n || n === "None" ? null : n;
|
|
5987
5987
|
}
|
|
5988
|
-
function
|
|
5988
|
+
function ts(e) {
|
|
5989
5989
|
if (e == null) return null;
|
|
5990
5990
|
let t = typeof e == "number" ? null : e.rank;
|
|
5991
|
-
return t == null ? null :
|
|
5991
|
+
return t == null ? null : Wo(W.MotelyStandardcardRank, t);
|
|
5992
5992
|
}
|
|
5993
|
-
function
|
|
5993
|
+
function ns(e) {
|
|
5994
5994
|
if (e == null) return null;
|
|
5995
5995
|
let t = typeof e == "number" ? null : e.suit;
|
|
5996
|
-
return t == null ? null :
|
|
5997
|
-
}
|
|
5998
|
-
function ns(e) {
|
|
5999
|
-
return qo(e);
|
|
5996
|
+
return t == null ? null : Wo(W.MotelyStandardcardSuit, t);
|
|
6000
5997
|
}
|
|
6001
5998
|
function rs(e) {
|
|
6002
|
-
|
|
5999
|
+
return Jo(e);
|
|
6000
|
+
}
|
|
6001
|
+
function is(e) {
|
|
6002
|
+
let t = qo(e);
|
|
6003
6003
|
if (t === null) return null;
|
|
6004
|
-
let n =
|
|
6004
|
+
let n = Wo(W.MotelyItemType, t) ?? `Unknown_${t}`, r = Yo(t);
|
|
6005
6005
|
return {
|
|
6006
6006
|
itemType: t,
|
|
6007
6007
|
enumKey: n,
|
|
6008
|
-
displayName:
|
|
6008
|
+
displayName: Go(n),
|
|
6009
6009
|
category: r,
|
|
6010
|
-
edition:
|
|
6011
|
-
seal:
|
|
6012
|
-
enhancement:
|
|
6013
|
-
rank:
|
|
6014
|
-
suit:
|
|
6010
|
+
edition: Qo(e),
|
|
6011
|
+
seal: $o(e),
|
|
6012
|
+
enhancement: es(e),
|
|
6013
|
+
rank: ts(e),
|
|
6014
|
+
suit: ns(e)
|
|
6015
6015
|
};
|
|
6016
6016
|
}
|
|
6017
|
-
function
|
|
6018
|
-
let n =
|
|
6017
|
+
function as(e, t) {
|
|
6018
|
+
let n = is(e);
|
|
6019
6019
|
return n ? {
|
|
6020
6020
|
type: n.category === "joker" ? "joker" : n.category === "playing" ? "playing" : "consumable",
|
|
6021
6021
|
card: {
|
|
@@ -6029,11 +6029,11 @@ function is(e, t) {
|
|
|
6029
6029
|
}
|
|
6030
6030
|
} : null;
|
|
6031
6031
|
}
|
|
6032
|
-
function
|
|
6033
|
-
function
|
|
6032
|
+
function os() {}
|
|
6033
|
+
function ss() {
|
|
6034
6034
|
return 0;
|
|
6035
6035
|
}
|
|
6036
6036
|
//#endregion
|
|
6037
|
-
export { Lo as C, W as E, Io as S, Fo as T, zo as _,
|
|
6037
|
+
export { Lo as C, W as E, Io as S, Fo as T, zo as _, Yo as a, Bo as b, es as c, Jo as d, ts as f, Ro as g, os as h, ss as i, Xo as l, qo as m, rs as n, Zo as o, ns as p, as as r, Qo as s, is as t, $o as u, Mo as v, Po as w, Vo as x, No as y };
|
|
6038
6038
|
|
|
6039
|
-
//# sourceMappingURL=motelyItemDecoder-
|
|
6039
|
+
//# sourceMappingURL=motelyItemDecoder-DdhlU_Ko.js.map
|