jaml-ui 6.0.2 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{JimboSwipeDeck-DUwjKBbo.js → JimboSwipeDeck-BYXDxmy7.js} +890 -759
- package/dist/chunks/JimboSwipeDeck-BYXDxmy7.js.map +1 -0
- package/dist/components/DeckStakePicker.d.ts +1 -1
- package/dist/components/JamlCodeEditor.d.ts +1 -1
- package/dist/components/JamlIdeVisual.d.ts +0 -2
- package/dist/components/JamlyzerBulk.d.ts +2 -2
- package/dist/components/JamlyzerView.d.ts +1 -1
- package/dist/components/SeedCalculus.d.ts +1 -1
- package/dist/components/SeedLab.d.ts +7 -2
- package/dist/components/filterStory/FilterStory.d.ts +16 -0
- package/dist/components/jamlyzer/JamlyzerAnteDetails.d.ts +3 -3
- package/dist/components/jamlyzer/JamlyzerErraticDeck.d.ts +1 -1
- package/dist/components/jamlyzer/JamlyzerEvents.d.ts +1 -1
- package/dist/components/jamlyzer/JamlyzerItemCard.d.ts +1 -1
- package/dist/components/jamlyzer/JamlyzerPackSection.d.ts +1 -1
- package/dist/components/jamlyzer/JamlyzerPulls.d.ts +1 -1
- package/dist/components/jamlyzer/JamlyzerSeedCard.d.ts +0 -1
- package/dist/index.js +6846 -6631
- package/dist/index.js.map +1 -1
- package/dist/lib/jaml/jaml.d.ts +3 -0
- package/dist/motd/motd.d.ts +10 -0
- package/dist/motd/motdData.generated.d.ts +1 -0
- package/dist/motd.js +164 -0
- package/dist/motd.js.map +1 -0
- package/dist/motely.js +98 -92
- package/dist/motely.js.map +1 -1
- package/dist/ui/JimboApp.d.ts +1 -1
- package/dist/ui/JimboButton.d.ts +1 -1
- package/dist/ui/JimboCodeSurface.d.ts +1 -1
- package/dist/ui/JimboDivider.d.ts +1 -1
- package/dist/ui/JimboDock.d.ts +1 -2
- package/dist/ui/JimboErrorBlock.d.ts +1 -1
- package/dist/ui/JimboGrid.d.ts +1 -1
- package/dist/ui/JimboInset.d.ts +1 -1
- package/dist/ui/JimboLayout.d.ts +2 -2
- package/dist/ui/JimboListItem.d.ts +1 -1
- package/dist/ui/JimboMascot.d.ts +1 -1
- package/dist/ui/JimboOrbitalMenu.d.ts +1 -1
- package/dist/ui/JimboOuterTab.d.ts +1 -1
- package/dist/ui/JimboPanel.d.ts +1 -1
- package/dist/ui/JimboPanelSpinner.d.ts +1 -1
- package/dist/ui/JimboPicker.d.ts +8 -8
- package/dist/ui/JimboSectionHeader.d.ts +1 -1
- package/dist/ui/JimboSeedBatchInput.d.ts +29 -0
- package/dist/ui/JimboShopBelt.d.ts +1 -1
- package/dist/ui/JimboSpacer.d.ts +1 -1
- package/dist/ui/JimboStatusPill.d.ts +1 -1
- package/dist/ui/JimboTextArea.d.ts +1 -1
- package/dist/ui/JimboTextInput.d.ts +1 -1
- package/dist/ui/JimboWordmark.d.ts +1 -1
- package/dist/ui/jimbo.css +1 -1
- package/dist/ui/jimboTabs.d.ts +1 -1
- package/dist/ui/jimboText.d.ts +1 -1
- package/dist/ui/panel.d.ts +2 -2
- package/dist/ui/sprites.d.ts +1 -1
- package/dist/ui.d.ts +3 -1
- package/dist/ui.js +47 -46
- package/package.json +45 -45
- package/dist/chunks/JimboSwipeDeck-DUwjKBbo.js.map +0 -1
package/dist/lib/jaml/jaml.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JAML_MOTDS } from './motdData.generated.js';
|
|
2
|
+
export { JAML_MOTDS };
|
|
3
|
+
/**
|
|
4
|
+
* Pick a meaning for JAML.
|
|
5
|
+
*
|
|
6
|
+
* Pass a `key` — a seed, a run id, a date string — and it always gives the same
|
|
7
|
+
* answer, so a seed can have *its* meaning instead of a new one every render.
|
|
8
|
+
* Pass nothing and it's a fresh roll.
|
|
9
|
+
*/
|
|
10
|
+
export declare function pickMotd(key?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const JAML_MOTDS: readonly string[];
|
package/dist/motd.js
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
const s = Object.freeze([
|
|
2
|
+
"Just Another Magic Link",
|
|
3
|
+
"Jokers Always Make Luck",
|
|
4
|
+
"Jimbo's Ante Management Lounge",
|
|
5
|
+
"Jackpot Aces Meet Legends",
|
|
6
|
+
"Just Add More Levels",
|
|
7
|
+
"Jimbo Ate My Lunch",
|
|
8
|
+
"Joker Addicts Monthly Letter",
|
|
9
|
+
"Just Another Motely Lake",
|
|
10
|
+
"Jimbo's Awful Messing-up Language",
|
|
11
|
+
"Jealous Antes Make Losers",
|
|
12
|
+
"Jambalaya And Mama's Laughter",
|
|
13
|
+
"Jimbo And Motely? Lovely!",
|
|
14
|
+
"Jimbo Approves My Luck",
|
|
15
|
+
"Jimbo's Amazing Multiplier Locator",
|
|
16
|
+
"Jolly Aces Make Legendaries",
|
|
17
|
+
"Jackpot Ante Modifier Language",
|
|
18
|
+
"Just Another Multiplier Legend",
|
|
19
|
+
"Just Ace Me Lucky",
|
|
20
|
+
"Java? Assembly?? Machine Language?!",
|
|
21
|
+
"Just Another Markup Language",
|
|
22
|
+
"JSON's Awesome Markup Lovechild",
|
|
23
|
+
"YAML Already Made Lemonade",
|
|
24
|
+
"Jolly Ante Manipulation Lab",
|
|
25
|
+
"Just Another Motely Launcher",
|
|
26
|
+
"Jokers Acquired, Multipliers Loaded",
|
|
27
|
+
"Just Ante My Life",
|
|
28
|
+
"Jumbled Assorted Microprocessor Luggage",
|
|
29
|
+
"Jolly And Merry Love",
|
|
30
|
+
"Jimbos Absolutely Magnificent Laughter",
|
|
31
|
+
"Just Add More Legendaries",
|
|
32
|
+
"Jokes And Memes, Literally",
|
|
33
|
+
"Just Another Million Loops",
|
|
34
|
+
"Join And Match Legendaries",
|
|
35
|
+
"Juggling All Matching Loots",
|
|
36
|
+
"Juiced And Massively Loaded",
|
|
37
|
+
"Jetting At Maximum Lightspeed",
|
|
38
|
+
"Jokes Are My Legacy",
|
|
39
|
+
"Jesting About My Luck",
|
|
40
|
+
"Joyful And Maybe Lucky",
|
|
41
|
+
"Jokers, Antes, Mayhem, Loot",
|
|
42
|
+
"Jimbo's Ante Modeling Language",
|
|
43
|
+
"Jester Alchemy Markup Lore",
|
|
44
|
+
"Jokers, Antes, Money, Luck",
|
|
45
|
+
"Jimbo's Arcane Match Language",
|
|
46
|
+
"Jackpot-Adjacent Miracle Logic",
|
|
47
|
+
"Jumbo Ante Mystery List",
|
|
48
|
+
"Jolly Antes, Magnificent Loot",
|
|
49
|
+
"Joy And Mischief, Lovingly",
|
|
50
|
+
"Just Adore My Little-language",
|
|
51
|
+
"Justifiably Allergic to Made-up Lies",
|
|
52
|
+
"Jimmy Ain't Mealy-mouthed, Listening",
|
|
53
|
+
"Jimbo And Me, Long-haul",
|
|
54
|
+
"Jokers, Antes, Multipliers, Legends",
|
|
55
|
+
"Jubilant Aces, Maximum Love",
|
|
56
|
+
"Jimbo's Anti-bullshit Marathon League",
|
|
57
|
+
"Just A Mighty Lifeform",
|
|
58
|
+
"Just A Meaning-Layer",
|
|
59
|
+
"Jamlyzer Always Manifests Lenses",
|
|
60
|
+
"Just A Mighty Little-joker",
|
|
61
|
+
"Justice And Mustard Longdogs",
|
|
62
|
+
"Join A Mining-pool, Lovingly",
|
|
63
|
+
"Jimbo's Astronomically Massive Lottery",
|
|
64
|
+
"Jokers Are Mathematically Lawful",
|
|
65
|
+
"Just A Morning-ritual, Lovingly",
|
|
66
|
+
"Juicing All Matching Lucky-cards",
|
|
67
|
+
"Jobs Are Marked, Leased",
|
|
68
|
+
"Just A Markup, Leveraged",
|
|
69
|
+
"Joyfully Avoiding Manual Labor",
|
|
70
|
+
"Jacked And Massively Leveraged",
|
|
71
|
+
"Just Another Mega Lead-card",
|
|
72
|
+
"Jumbled Aces, Mostly Lopsided",
|
|
73
|
+
"Jimbo Adores My Lola",
|
|
74
|
+
"Janky API, Mostly Loveable",
|
|
75
|
+
"Jellyfish Are Mostly Liquid",
|
|
76
|
+
"Jorts And Mismatched Loafers",
|
|
77
|
+
"Jupiter Aligns Mercury's Lunar-cycle",
|
|
78
|
+
"YAML Anagram? Mostly Lies",
|
|
79
|
+
"Joyfully Annotating Motely's Lookups",
|
|
80
|
+
"Just Add Motely, Limitless",
|
|
81
|
+
"Jointly Auditing Motely's Ledger",
|
|
82
|
+
"Jokers Argue, Multipliers Listen",
|
|
83
|
+
"Jimbo Audits Marginal Luck",
|
|
84
|
+
"Joker Algebra Made Legible",
|
|
85
|
+
"Jittery Aces, Measured Losses",
|
|
86
|
+
"Jimbo's Ante-Math: Lossless",
|
|
87
|
+
"Joyfully Anti-sycophant, Mostly Lucid",
|
|
88
|
+
"Just A Mirror-Layer",
|
|
89
|
+
"Just A Magnet for Legendaries",
|
|
90
|
+
"Jank Acknowledged, Marching Lovingly",
|
|
91
|
+
"Jokers Argue; Mult Is Law",
|
|
92
|
+
"Just A Manifest, Linted",
|
|
93
|
+
"Juiced Aces, Multiplied Loudly",
|
|
94
|
+
"Jolly Anarchists Marking Loot",
|
|
95
|
+
"Jimbo's Arcana, Mapped Lightly",
|
|
96
|
+
"Just A Markup, Load-bearing",
|
|
97
|
+
"Jousting Antes, Mostly Lethal",
|
|
98
|
+
"Jimbo And Motely: Lifers",
|
|
99
|
+
"Joker Acquired, Mult Locked-in",
|
|
100
|
+
"Just Ante, Manifest Legendary",
|
|
101
|
+
"Jambalaya And Mama's Love",
|
|
102
|
+
"Jigglebones And Memes, Laughter",
|
|
103
|
+
"Jiggly Aquatic Micro-Legend",
|
|
104
|
+
"Jukebox Awakens, Miraculously Loud",
|
|
105
|
+
"Just Audit Me, Lovingly",
|
|
106
|
+
"Jelly And Marmalade Lunchbox",
|
|
107
|
+
"Just A Moment, Lola",
|
|
108
|
+
"Jonkler-Approved Mischief License",
|
|
109
|
+
"Just Another Midnight Legend",
|
|
110
|
+
"Jolt Awake, Midnight Locksmith",
|
|
111
|
+
"Jimbo Asked, Motely Listened",
|
|
112
|
+
"Just Applied Math, Lovable",
|
|
113
|
+
"Joyful Autopsy of My Losses",
|
|
114
|
+
"Jettison All Mediocre Loadouts",
|
|
115
|
+
"Jimbo's Advice: More Legendaries",
|
|
116
|
+
"Jimbo's Arithmetic: Mostly Legit",
|
|
117
|
+
"Jackdaws Adore My Lockpicks",
|
|
118
|
+
"Juiced-up Antes, Minimal Losses",
|
|
119
|
+
"Jigsaw of Antes, Masterfully Laid",
|
|
120
|
+
"Juggle Antes, Master Life",
|
|
121
|
+
"Joyride Across Motely's Lanes",
|
|
122
|
+
"Jupiter's Ante, Mars' Luck",
|
|
123
|
+
"Jazz Arrangement, Motely Largo",
|
|
124
|
+
"Jab At Melancholy, Laugh",
|
|
125
|
+
"Jesters Assemble, Money Laughs",
|
|
126
|
+
"Jimbo's Almanac of Mult Lore",
|
|
127
|
+
"Jackpots Arrive, Mortals Laugh",
|
|
128
|
+
"Just Ask, Motely Listens",
|
|
129
|
+
"Jimbo's Ace, My Lifeline",
|
|
130
|
+
"Jailbreaking Ante Math, Legally",
|
|
131
|
+
"Jamboree Always Means Love",
|
|
132
|
+
"Jettison All Menace, Lovingly",
|
|
133
|
+
"Jokers Are Made Locally",
|
|
134
|
+
"Jimbo's Anti-barrel Manifesto, Literally",
|
|
135
|
+
"Jettisoned All Meshes, Lastly",
|
|
136
|
+
"Joy Around Mama's Lap",
|
|
137
|
+
"Jokers Assemble, Mama's Looking",
|
|
138
|
+
"Joker Arithmetic, Mercifully Legible",
|
|
139
|
+
"Jubilant Antes, Merciful Losses",
|
|
140
|
+
"Jimbo's Ante, Mama's Ledger",
|
|
141
|
+
"Jesters And Marmalade, Lately",
|
|
142
|
+
"Jitterbug Antes, Mambo Lessons",
|
|
143
|
+
"Jelly, Ants, Marmalade, Ladybugs",
|
|
144
|
+
"Joyous Alternative to Miserable Labels",
|
|
145
|
+
"Jamboree And Mama's Lemonade",
|
|
146
|
+
"Jimbo Absolutely Means Lola",
|
|
147
|
+
"Just Ask Mama, Lovingly",
|
|
148
|
+
"Jubilee At Motely's Landing",
|
|
149
|
+
"Jokers Argue Merrily, Lovingly",
|
|
150
|
+
"Just A Man, Loved"
|
|
151
|
+
]);
|
|
152
|
+
function a(o) {
|
|
153
|
+
if (o === void 0)
|
|
154
|
+
return s[Math.floor(Math.random() * s.length)];
|
|
155
|
+
let e = 2166136261;
|
|
156
|
+
for (let t = 0; t < o.length; t++)
|
|
157
|
+
e ^= o.charCodeAt(t), e = Math.imul(e, 16777619);
|
|
158
|
+
return s[(e >>> 0) % s.length];
|
|
159
|
+
}
|
|
160
|
+
export {
|
|
161
|
+
s as JAML_MOTDS,
|
|
162
|
+
a as pickMotd
|
|
163
|
+
};
|
|
164
|
+
//# sourceMappingURL=motd.js.map
|
package/dist/motd.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motd.js","sources":["../src/motd/motdData.generated.ts","../src/motd/motd.ts"],"sourcesContent":["// AUTO-GENERATED — do not hand-edit.\n//\n// 149 alternate meanings of JAML, generated from the JAML.motds\n// corpus (MOTD.md). Add new ones there and re-run `pnpm motd:emit`.\n\nexport const JAML_MOTDS: readonly string[] = Object.freeze([\n \"Just Another Magic Link\",\n \"Jokers Always Make Luck\",\n \"Jimbo's Ante Management Lounge\",\n \"Jackpot Aces Meet Legends\",\n \"Just Add More Levels\",\n \"Jimbo Ate My Lunch\",\n \"Joker Addicts Monthly Letter\",\n \"Just Another Motely Lake\",\n \"Jimbo's Awful Messing-up Language\",\n \"Jealous Antes Make Losers\",\n \"Jambalaya And Mama's Laughter\",\n \"Jimbo And Motely? Lovely!\",\n \"Jimbo Approves My Luck\",\n \"Jimbo's Amazing Multiplier Locator\",\n \"Jolly Aces Make Legendaries\",\n \"Jackpot Ante Modifier Language\",\n \"Just Another Multiplier Legend\",\n \"Just Ace Me Lucky\",\n \"Java? Assembly?? Machine Language?!\",\n \"Just Another Markup Language\",\n \"JSON's Awesome Markup Lovechild\",\n \"YAML Already Made Lemonade\",\n \"Jolly Ante Manipulation Lab\",\n \"Just Another Motely Launcher\",\n \"Jokers Acquired, Multipliers Loaded\",\n \"Just Ante My Life\",\n \"Jumbled Assorted Microprocessor Luggage\",\n \"Jolly And Merry Love\",\n \"Jimbos Absolutely Magnificent Laughter\",\n \"Just Add More Legendaries\",\n \"Jokes And Memes, Literally\",\n \"Just Another Million Loops\",\n \"Join And Match Legendaries\",\n \"Juggling All Matching Loots\",\n \"Juiced And Massively Loaded\",\n \"Jetting At Maximum Lightspeed\",\n \"Jokes Are My Legacy\",\n \"Jesting About My Luck\",\n \"Joyful And Maybe Lucky\",\n \"Jokers, Antes, Mayhem, Loot\",\n \"Jimbo's Ante Modeling Language\",\n \"Jester Alchemy Markup Lore\",\n \"Jokers, Antes, Money, Luck\",\n \"Jimbo's Arcane Match Language\",\n \"Jackpot-Adjacent Miracle Logic\",\n \"Jumbo Ante Mystery List\",\n \"Jolly Antes, Magnificent Loot\",\n \"Joy And Mischief, Lovingly\",\n \"Just Adore My Little-language\",\n \"Justifiably Allergic to Made-up Lies\",\n \"Jimmy Ain't Mealy-mouthed, Listening\",\n \"Jimbo And Me, Long-haul\",\n \"Jokers, Antes, Multipliers, Legends\",\n \"Jubilant Aces, Maximum Love\",\n \"Jimbo's Anti-bullshit Marathon League\",\n \"Just A Mighty Lifeform\",\n \"Just A Meaning-Layer\",\n \"Jamlyzer Always Manifests Lenses\",\n \"Just A Mighty Little-joker\",\n \"Justice And Mustard Longdogs\",\n \"Join A Mining-pool, Lovingly\",\n \"Jimbo's Astronomically Massive Lottery\",\n \"Jokers Are Mathematically Lawful\",\n \"Just A Morning-ritual, Lovingly\",\n \"Juicing All Matching Lucky-cards\",\n \"Jobs Are Marked, Leased\",\n \"Just A Markup, Leveraged\",\n \"Joyfully Avoiding Manual Labor\",\n \"Jacked And Massively Leveraged\",\n \"Just Another Mega Lead-card\",\n \"Jumbled Aces, Mostly Lopsided\",\n \"Jimbo Adores My Lola\",\n \"Janky API, Mostly Loveable\",\n \"Jellyfish Are Mostly Liquid\",\n \"Jorts And Mismatched Loafers\",\n \"Jupiter Aligns Mercury's Lunar-cycle\",\n \"YAML Anagram? Mostly Lies\",\n \"Joyfully Annotating Motely's Lookups\",\n \"Just Add Motely, Limitless\",\n \"Jointly Auditing Motely's Ledger\",\n \"Jokers Argue, Multipliers Listen\",\n \"Jimbo Audits Marginal Luck\",\n \"Joker Algebra Made Legible\",\n \"Jittery Aces, Measured Losses\",\n \"Jimbo's Ante-Math: Lossless\",\n \"Joyfully Anti-sycophant, Mostly Lucid\",\n \"Just A Mirror-Layer\",\n \"Just A Magnet for Legendaries\",\n \"Jank Acknowledged, Marching Lovingly\",\n \"Jokers Argue; Mult Is Law\",\n \"Just A Manifest, Linted\",\n \"Juiced Aces, Multiplied Loudly\",\n \"Jolly Anarchists Marking Loot\",\n \"Jimbo's Arcana, Mapped Lightly\",\n \"Just A Markup, Load-bearing\",\n \"Jousting Antes, Mostly Lethal\",\n \"Jimbo And Motely: Lifers\",\n \"Joker Acquired, Mult Locked-in\",\n \"Just Ante, Manifest Legendary\",\n \"Jambalaya And Mama's Love\",\n \"Jigglebones And Memes, Laughter\",\n \"Jiggly Aquatic Micro-Legend\",\n \"Jukebox Awakens, Miraculously Loud\",\n \"Just Audit Me, Lovingly\",\n \"Jelly And Marmalade Lunchbox\",\n \"Just A Moment, Lola\",\n \"Jonkler-Approved Mischief License\",\n \"Just Another Midnight Legend\",\n \"Jolt Awake, Midnight Locksmith\",\n \"Jimbo Asked, Motely Listened\",\n \"Just Applied Math, Lovable\",\n \"Joyful Autopsy of My Losses\",\n \"Jettison All Mediocre Loadouts\",\n \"Jimbo's Advice: More Legendaries\",\n \"Jimbo's Arithmetic: Mostly Legit\",\n \"Jackdaws Adore My Lockpicks\",\n \"Juiced-up Antes, Minimal Losses\",\n \"Jigsaw of Antes, Masterfully Laid\",\n \"Juggle Antes, Master Life\",\n \"Joyride Across Motely's Lanes\",\n \"Jupiter's Ante, Mars' Luck\",\n \"Jazz Arrangement, Motely Largo\",\n \"Jab At Melancholy, Laugh\",\n \"Jesters Assemble, Money Laughs\",\n \"Jimbo's Almanac of Mult Lore\",\n \"Jackpots Arrive, Mortals Laugh\",\n \"Just Ask, Motely Listens\",\n \"Jimbo's Ace, My Lifeline\",\n \"Jailbreaking Ante Math, Legally\",\n \"Jamboree Always Means Love\",\n \"Jettison All Menace, Lovingly\",\n \"Jokers Are Made Locally\",\n \"Jimbo's Anti-barrel Manifesto, Literally\",\n \"Jettisoned All Meshes, Lastly\",\n \"Joy Around Mama's Lap\",\n \"Jokers Assemble, Mama's Looking\",\n \"Joker Arithmetic, Mercifully Legible\",\n \"Jubilant Antes, Merciful Losses\",\n \"Jimbo's Ante, Mama's Ledger\",\n \"Jesters And Marmalade, Lately\",\n \"Jitterbug Antes, Mambo Lessons\",\n \"Jelly, Ants, Marmalade, Ladybugs\",\n \"Joyous Alternative to Miserable Labels\",\n \"Jamboree And Mama's Lemonade\",\n \"Jimbo Absolutely Means Lola\",\n \"Just Ask Mama, Lovingly\",\n \"Jubilee At Motely's Landing\",\n \"Jokers Argue Merrily, Lovingly\",\n \"Just A Man, Loved\",\n]);\n","// What JAML stands for, this time.\n//\n// Minecraft's title screen never settled on one joke and neither does this.\n// The corpus lives in the JAML.motds repo; motdData.generated.ts is emitted\n// from it by scripts/emit-motds.mjs. Server-safe: no React, no DOM, no engine.\n\nimport { JAML_MOTDS } from \"./motdData.generated.js\";\n\nexport { JAML_MOTDS };\n\n/**\n * Pick a meaning for JAML.\n *\n * Pass a `key` — a seed, a run id, a date string — and it always gives the same\n * answer, so a seed can have *its* meaning instead of a new one every render.\n * Pass nothing and it's a fresh roll.\n */\nexport function pickMotd(key?: string): string {\n if (key === undefined) {\n return JAML_MOTDS[Math.floor(Math.random() * JAML_MOTDS.length)]!;\n }\n let h = 0x811c9dc5; // FNV-1a: stable across runs, spreads short strings well\n for (let i = 0; i < key.length; i++) {\n h ^= key.charCodeAt(i);\n h = Math.imul(h, 0x01000193);\n }\n return JAML_MOTDS[(h >>> 0) % JAML_MOTDS.length]!;\n}\n"],"names":["JAML_MOTDS","pickMotd","key","h","i"],"mappings":"AAKO,MAAMA,IAAgC,OAAO,OAAO;AAAA,EACzD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AC1IM,SAASC,EAASC,GAAsB;AAC7C,MAAIA,MAAQ;AACV,WAAOF,EAAW,KAAK,MAAM,KAAK,WAAWA,EAAW,MAAM,CAAC;AAEjE,MAAIG,IAAI;AACR,WAASC,IAAI,GAAGA,IAAIF,EAAI,QAAQE;AAC9B,IAAAD,KAAKD,EAAI,WAAWE,CAAC,GACrBD,IAAI,KAAK,KAAKA,GAAG,QAAU;AAE7B,SAAOH,GAAYG,MAAM,KAAKH,EAAW,MAAM;AACjD;"}
|
package/dist/motely.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MotelyItemEdition as m, MotelyItemSeal as n, MotelyItemEnhancement as l, MotelyStandardcardRank as o, MotelyStandardcardSuit as
|
|
2
|
-
import { resolveJamlAssetUrl as
|
|
1
|
+
import { MotelyItemEdition as m, MotelyItemSeal as n, MotelyItemEnhancement as l, MotelyStandardcardRank as o, MotelyStandardcardSuit as u, MotelyItemTypeCategory as v } from "motely-wasm";
|
|
2
|
+
import { resolveJamlAssetUrl as S } from "./assets.js";
|
|
3
3
|
const e = Object.freeze({
|
|
4
4
|
4096: Object.freeze({ value: 4096, enumName: "TwoOfClubs", displayName: "2 of Clubs", category: "Standardcard" }),
|
|
5
5
|
4097: Object.freeze({ value: 4097, enumName: "ThreeOfClubs", displayName: "3 of Clubs", category: "Standardcard" }),
|
|
@@ -524,7 +524,7 @@ Object.freeze({
|
|
|
524
524
|
Yorick: e[23554],
|
|
525
525
|
ZanyJoker: e[20486]
|
|
526
526
|
});
|
|
527
|
-
const
|
|
527
|
+
const J = /* @__PURE__ */ new Map([
|
|
528
528
|
[4096, 65538],
|
|
529
529
|
[4097, 65794],
|
|
530
530
|
[4098, 66050],
|
|
@@ -779,40 +779,40 @@ const S = /* @__PURE__ */ new Map([
|
|
|
779
779
|
[23554, 525568],
|
|
780
780
|
[23555, 525824],
|
|
781
781
|
[23556, 526080]
|
|
782
|
-
]),
|
|
783
|
-
function
|
|
782
|
+
]), j = ["jokers", "tarots", "deck"], z = [10, 10, 13], h = [16, 6, 4];
|
|
783
|
+
function T(a) {
|
|
784
784
|
return { sheet: a & 255, x: a >>> 8 & 255, y: a >>> 16 & 255 };
|
|
785
785
|
}
|
|
786
|
-
function
|
|
787
|
-
const t =
|
|
786
|
+
function C(a) {
|
|
787
|
+
const t = J.get(a);
|
|
788
788
|
if (t === void 0) return null;
|
|
789
|
-
const { sheet: r, x: c, y } =
|
|
790
|
-
return
|
|
791
|
-
atlasPath:
|
|
789
|
+
const { sheet: r, x: c, y: N } = T(t), s = j[r];
|
|
790
|
+
return s ? {
|
|
791
|
+
atlasPath: S(s),
|
|
792
792
|
gridCol: c,
|
|
793
|
-
gridRow:
|
|
794
|
-
gridCols:
|
|
795
|
-
gridRows:
|
|
793
|
+
gridRow: N,
|
|
794
|
+
gridCols: z[r] ?? 0,
|
|
795
|
+
gridRows: h[r] ?? 0
|
|
796
796
|
} : null;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function U(a) {
|
|
799
799
|
const t = typeof a == "number" ? a : a.type;
|
|
800
|
-
return
|
|
800
|
+
return C(t);
|
|
801
801
|
}
|
|
802
|
-
const
|
|
802
|
+
const p = {
|
|
803
803
|
Standardcard: "playing",
|
|
804
804
|
SpectralCard: "spectral",
|
|
805
805
|
TarotCard: "tarot",
|
|
806
806
|
PlanetCard: "planet",
|
|
807
807
|
Joker: "joker",
|
|
808
808
|
Invalid: "unknown"
|
|
809
|
-
},
|
|
809
|
+
}, D = {
|
|
810
810
|
[m.None]: "Base",
|
|
811
811
|
[m.Foil]: "Foil",
|
|
812
812
|
[m.Holographic]: "Holographic",
|
|
813
813
|
[m.Polychrome]: "Polychrome",
|
|
814
814
|
[m.Negative]: "Negative"
|
|
815
|
-
},
|
|
815
|
+
}, M = {
|
|
816
816
|
[n.None]: "None",
|
|
817
817
|
[n.Gold]: "Gold",
|
|
818
818
|
[n.Red]: "Red",
|
|
@@ -828,7 +828,7 @@ const O = {
|
|
|
828
828
|
[l.Stone]: "Stone",
|
|
829
829
|
[l.Gold]: "Gold",
|
|
830
830
|
[l.Lucky]: "Lucky"
|
|
831
|
-
},
|
|
831
|
+
}, E = {
|
|
832
832
|
[o.Two]: "2",
|
|
833
833
|
[o.Three]: "3",
|
|
834
834
|
[o.Four]: "4",
|
|
@@ -843,101 +843,107 @@ const O = {
|
|
|
843
843
|
[o.King]: "King",
|
|
844
844
|
[o.Ace]: "Ace"
|
|
845
845
|
}, B = {
|
|
846
|
-
[
|
|
847
|
-
[
|
|
848
|
-
[
|
|
849
|
-
[
|
|
846
|
+
[u.Clubs]: "Clubs",
|
|
847
|
+
[u.Diamonds]: "Diamonds",
|
|
848
|
+
[u.Hearts]: "Hearts",
|
|
849
|
+
[u.Spades]: "Spades"
|
|
850
850
|
};
|
|
851
|
-
function
|
|
851
|
+
function i(a) {
|
|
852
852
|
return e[a];
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function g(a) {
|
|
855
855
|
return a.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function b(a) {
|
|
858
858
|
return a == null ? null : typeof a == "number" ? Number.isFinite(a) ? a : null : a.type ?? a.value ?? null;
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function y(a) {
|
|
861
861
|
if (a != null && typeof a == "object" && a.type != null) return a.type;
|
|
862
|
-
const t =
|
|
862
|
+
const t = b(a);
|
|
863
863
|
return t !== null ? t & 65535 : null;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function k(a) {
|
|
866
866
|
var r;
|
|
867
|
-
const t =
|
|
868
|
-
return t === null ? "Unknown" : ((r =
|
|
867
|
+
const t = y(a);
|
|
868
|
+
return t === null ? "Unknown" : ((r = i(t)) == null ? void 0 : r.enumName) ?? `item#${t}`;
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function A(a) {
|
|
871
871
|
var r;
|
|
872
|
-
const t = (r =
|
|
873
|
-
return t ?
|
|
872
|
+
const t = (r = i(a)) == null ? void 0 : r.category;
|
|
873
|
+
return t ? p[t] ?? "unknown" : "unknown";
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function O(a) {
|
|
876
876
|
if (a != null && typeof a == "object" && a.typeCategory != null) {
|
|
877
|
-
const r =
|
|
878
|
-
if (r) return
|
|
877
|
+
const r = v[a.typeCategory];
|
|
878
|
+
if (r) return p[r] ?? "unknown";
|
|
879
879
|
}
|
|
880
|
-
const t =
|
|
881
|
-
return t === null ? "unknown" :
|
|
880
|
+
const t = y(a);
|
|
881
|
+
return t === null ? "unknown" : A(t);
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function Y(a) {
|
|
884
884
|
var r;
|
|
885
|
-
const t =
|
|
886
|
-
return t === null ? "Unknown" : ((r =
|
|
885
|
+
const t = y(a);
|
|
886
|
+
return t === null ? "Unknown" : ((r = i(t)) == null ? void 0 : r.displayName) ?? g(k(a));
|
|
887
|
+
}
|
|
888
|
+
function d(a) {
|
|
889
|
+
let t = 0;
|
|
890
|
+
for (const r of Object.values(a)) typeof r == "number" && (t |= r);
|
|
891
|
+
return t;
|
|
887
892
|
}
|
|
888
|
-
|
|
889
|
-
|
|
893
|
+
const F = d(m), I = d(n), P = d(l), R = d(o), w = d(u);
|
|
894
|
+
function f(a, t) {
|
|
895
|
+
const r = b(a);
|
|
890
896
|
return r === null ? !1 : (r & 1 << t) !== 0;
|
|
891
897
|
}
|
|
892
|
-
function
|
|
898
|
+
function G(a) {
|
|
893
899
|
if (a == null) return null;
|
|
894
|
-
const t = typeof a == "number" ? a
|
|
895
|
-
return t == null || t === m.None ? null :
|
|
900
|
+
const t = typeof a == "number" ? a & F : a.edition;
|
|
901
|
+
return t == null || t === m.None ? null : D[t] ?? null;
|
|
896
902
|
}
|
|
897
|
-
function
|
|
903
|
+
function x(a) {
|
|
898
904
|
if (a == null) return null;
|
|
899
|
-
const t = typeof a == "number" ? a
|
|
900
|
-
return t == null || t === n.None ? null :
|
|
905
|
+
const t = typeof a == "number" ? a & I : a.seal;
|
|
906
|
+
return t == null || t === n.None ? null : M[t] ?? null;
|
|
901
907
|
}
|
|
902
|
-
function
|
|
908
|
+
function L(a) {
|
|
903
909
|
if (a == null) return null;
|
|
904
|
-
const t = typeof a == "number" ? a
|
|
910
|
+
const t = typeof a == "number" ? a & P : a.enhancement;
|
|
905
911
|
return t == null || t === l.None ? null : H[t] ?? null;
|
|
906
912
|
}
|
|
907
|
-
function
|
|
908
|
-
if (a == null ||
|
|
909
|
-
const r = typeof a == "number" ? a &
|
|
910
|
-
return r == null ? null :
|
|
913
|
+
function W(a) {
|
|
914
|
+
if (a == null || O(a) !== "playing") return null;
|
|
915
|
+
const r = typeof a == "number" ? a & R : a.standardcardRank ?? a.rank;
|
|
916
|
+
return r == null ? null : E[r] ?? null;
|
|
911
917
|
}
|
|
912
|
-
function
|
|
913
|
-
if (a == null ||
|
|
914
|
-
const r = typeof a == "number" ? a
|
|
918
|
+
function K(a) {
|
|
919
|
+
if (a == null || O(a) !== "playing") return null;
|
|
920
|
+
const r = typeof a == "number" ? a & w : a.standardcardSuit ?? a.suit;
|
|
915
921
|
return r == null ? null : B[r] ?? null;
|
|
916
922
|
}
|
|
917
|
-
function
|
|
918
|
-
return
|
|
923
|
+
function Z(a) {
|
|
924
|
+
return k(a);
|
|
919
925
|
}
|
|
920
|
-
function
|
|
921
|
-
const t =
|
|
926
|
+
function _(a) {
|
|
927
|
+
const t = y(a);
|
|
922
928
|
if (t === null) return null;
|
|
923
|
-
const r =
|
|
929
|
+
const r = i(t), c = (r == null ? void 0 : r.enumName) ?? `Unknown_${t}`, N = O(a), s = (r == null ? void 0 : r.displayName) ?? g(c);
|
|
924
930
|
return {
|
|
925
931
|
itemType: t,
|
|
926
932
|
enumKey: c,
|
|
927
|
-
displayName:
|
|
928
|
-
category:
|
|
929
|
-
edition:
|
|
930
|
-
seal:
|
|
931
|
-
enhancement:
|
|
932
|
-
rank:
|
|
933
|
-
suit:
|
|
934
|
-
isEternal: typeof a == "number" ? (a >>> 30 & 1) !== 0 : (a == null ? void 0 : a.isEternal) ??
|
|
935
|
-
isPerishable: typeof a == "number" ? (a >>> 31 & 1) !== 0 : (a == null ? void 0 : a.isPerishable) ??
|
|
936
|
-
isRental: typeof a == "number" ? (a >>> 29 & 1) !== 0 : (a == null ? void 0 : a.isRental) ??
|
|
933
|
+
displayName: s,
|
|
934
|
+
category: N,
|
|
935
|
+
edition: G(a),
|
|
936
|
+
seal: x(a),
|
|
937
|
+
enhancement: L(a),
|
|
938
|
+
rank: W(a),
|
|
939
|
+
suit: K(a),
|
|
940
|
+
isEternal: typeof a == "number" ? (a >>> 30 & 1) !== 0 : (a == null ? void 0 : a.isEternal) ?? f(a, 30),
|
|
941
|
+
isPerishable: typeof a == "number" ? (a >>> 31 & 1) !== 0 : (a == null ? void 0 : a.isPerishable) ?? f(a, 31),
|
|
942
|
+
isRental: typeof a == "number" ? (a >>> 29 & 1) !== 0 : (a == null ? void 0 : a.isRental) ?? f(a, 29)
|
|
937
943
|
};
|
|
938
944
|
}
|
|
939
|
-
function
|
|
940
|
-
const r =
|
|
945
|
+
function $(a, t) {
|
|
946
|
+
const r = _(a);
|
|
941
947
|
return r ? {
|
|
942
948
|
type: r.category === "joker" ? "joker" : r.category === "playing" ? "playing" : "consumable",
|
|
943
949
|
card: {
|
|
@@ -955,21 +961,21 @@ function Q(a, t) {
|
|
|
955
961
|
} : null;
|
|
956
962
|
}
|
|
957
963
|
export {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
964
|
+
_ as decodeMotelyItem,
|
|
965
|
+
Z as decodeMotelyItemName,
|
|
966
|
+
$ as decodeMotelyItemToJamlCard,
|
|
967
|
+
A as motelyItemCategory,
|
|
968
|
+
Y as motelyItemDisplayName,
|
|
969
|
+
G as motelyItemEditionName,
|
|
970
|
+
L as motelyItemEnhancementName,
|
|
971
|
+
O as motelyItemRenderCategory,
|
|
972
|
+
x as motelyItemSealName,
|
|
973
|
+
U as motelyItemToSprite,
|
|
974
|
+
k as motelyItemTypeName,
|
|
975
|
+
C as motelyItemTypeToSprite,
|
|
976
|
+
W as motelyStandardcardRankName,
|
|
977
|
+
K as motelyStandardcardSuitName,
|
|
978
|
+
y as resolveMotelyItemType,
|
|
979
|
+
T as unpackSpriteCell
|
|
974
980
|
};
|
|
975
981
|
//# sourceMappingURL=motely.js.map
|