@sia.soul/sia-react-ui 0.1.106 → 0.1.108
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/Button-BiL3Wjsd.d.ts +44 -0
- package/dist/Button-O_pNB3SQ.d.cts +44 -0
- package/dist/{Select-DmT9pFRW.d.ts → Select-BddM4uXC.d.ts} +4 -42
- package/dist/{Select-DQpfyK7I.d.cts → Select-Cf0xz1Tg.d.cts} +4 -42
- package/dist/chart.js +5 -3
- package/dist/chunk-4TTHKFJ7.js +706 -0
- package/dist/chunk-CZ2ITBRW.js +65 -0
- package/dist/{chunk-EYB55TC5.js → chunk-D3HXXEEZ.js} +9 -5
- package/dist/{chunk-X4OLHWC3.js → chunk-GPCUD6FA.js} +23 -13
- package/dist/chunk-KY6A5IJH.js +18 -0
- package/dist/{chunk-NURPAO7G.js → chunk-MMSYWDTR.js} +9 -5
- package/dist/{chunk-PUZWLIIJ.js → chunk-NZMUW5XI.js} +1 -13
- package/dist/{chunk-D456SSL3.js → chunk-OJ2WDC66.js} +6 -4
- package/dist/{chunk-V6CRVCSB.js → chunk-QV3AP6A2.js} +40 -729
- package/dist/chunk-RX242MUO.js +0 -0
- package/dist/chunk-SCEHVGKV.js +75 -0
- package/dist/{chunk-TUXNOSCT.js → chunk-SO7IJZIR.js} +4 -2
- package/dist/{chunk-T3EGAN7O.js → chunk-WD56MJO2.js} +5 -3
- package/dist/{core-DF7gei-P.d.cts → core-KJBvQlUc.d.cts} +12 -3
- package/dist/{core-_1K1jLyH.d.ts → core-OuydQbFN.d.ts} +12 -3
- package/dist/core.cjs +15 -7
- package/dist/core.css +42 -0
- package/dist/core.d.cts +3 -2
- package/dist/core.d.ts +3 -2
- package/dist/core.js +12 -7
- package/dist/game.cjs +2815 -0
- package/dist/game.css +8929 -0
- package/dist/game.d.cts +439 -0
- package/dist/game.d.ts +439 -0
- package/dist/game.js +1034 -0
- package/dist/index.cjs +5528 -5464
- package/dist/index.css +82 -0
- package/dist/index.d.cts +45 -10
- package/dist/index.d.ts +45 -10
- package/dist/index.js +718 -656
- package/dist/markdown-editor.js +3 -2
- package/dist/rich-text-editor.cjs +3 -1
- package/dist/rich-text-editor.js +7 -4
- package/dist/{select-date-range-BT71tp7y.d.cts → select-date-range-Cm5o2xPp.d.cts} +1 -1
- package/dist/{select-date-range-CFGzoyLs.d.ts → select-date-range-yGDEA1RP.d.ts} +1 -1
- package/dist/select-date-range.d.cts +3 -2
- package/dist/select-date-range.d.ts +3 -2
- package/dist/select-date-range.js +8 -5
- package/package.json +9 -3
- package/dist/chunk-SJFT5OSX.js +0 -131
package/dist/game.cjs
ADDED
|
@@ -0,0 +1,2815 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/game.ts
|
|
21
|
+
var game_exports = {};
|
|
22
|
+
__export(game_exports, {
|
|
23
|
+
GameBattleStage: () => GameBattleStage,
|
|
24
|
+
GameBossPanel: () => GameBossPanel,
|
|
25
|
+
GameButton: () => GameButton,
|
|
26
|
+
GameCharacterPanel: () => GameCharacterPanel,
|
|
27
|
+
GameDialog: () => GameDialog,
|
|
28
|
+
GameEquipmentComparison: () => GameEquipmentComparison,
|
|
29
|
+
GameEquipmentPanel: () => GameEquipmentPanel,
|
|
30
|
+
GameLogPanel: () => GameLogPanel,
|
|
31
|
+
GameMapPanel: () => GameMapPanel,
|
|
32
|
+
GamePetPanel: () => GamePetPanel,
|
|
33
|
+
GameResourceSummary: () => GameResourceSummary,
|
|
34
|
+
GameSavePanel: () => GameSavePanel,
|
|
35
|
+
GameShell: () => GameShell,
|
|
36
|
+
GameSprite: () => GameSprite,
|
|
37
|
+
IdleGameApp: () => IdleGameApp,
|
|
38
|
+
createIdleEngine: () => createIdleEngine
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(game_exports);
|
|
41
|
+
|
|
42
|
+
// src/game/engine.ts
|
|
43
|
+
function createIdleEngine(definition) {
|
|
44
|
+
const MAPS = definition.maps, PETS = definition.pets, slots = definition.slots, RARITIES = definition.rarities;
|
|
45
|
+
const slotKeys = Object.keys(slots), SLOTS = Object.fromEntries(slotKeys.map((key) => [key, slots[key].name]));
|
|
46
|
+
const positive = (value) => Number.isFinite(value) && value > 0;
|
|
47
|
+
if (!MAPS.length || !PETS.length || !slotKeys.length || RARITIES.length < 3 || new Set(PETS.map((p) => p.id)).size !== PETS.length || MAPS.some((m, i) => m.id !== i || !slots[m.rewardSlot] || !positive(m.hp) || !positive(m.bossHp) || [m.atk, m.bossAtk, m.xp, m.gold].some((n) => !Number.isFinite(n) || n < 0)) || PETS.some((p) => !p.id || !Number.isFinite(p.cost) || p.cost < 0 || !Number.isFinite(p.base) || p.base < 0) || slotKeys.some((k) => slots[k].names.length !== RARITIES.length || Object.values(slots[k].base).some((n) => !Number.isFinite(n) || n < 0)) || definition.turnDurationMs !== void 0 && (!Number.isInteger(definition.turnDurationMs) || definition.turnDurationMs < 1e3 || definition.turnDurationMs > 5e3) || definition.offlineCapSeconds !== void 0 && (!Number.isInteger(definition.offlineCapSeconds) || definition.offlineCapSeconds < 0 || definition.offlineCapSeconds > 43200))
|
|
48
|
+
throw new Error("\u6E38\u620F\u5185\u5BB9\u914D\u7F6E\u4E0D\u6B63\u786E");
|
|
49
|
+
const busy2 = (s) => Boolean(s.fight?.boss && s.fight.status === "active");
|
|
50
|
+
const copy = (value) => JSON.parse(JSON.stringify(value));
|
|
51
|
+
function makeGear(slot, tier = 0, rank = 0, id = Date.now()) {
|
|
52
|
+
const scale = (1 + tier * 0.75) * (1 + rank * 0.45);
|
|
53
|
+
return { id: String(id), slot, tier, rank, name: slots[slot].names[tier], atk: Math.round(slots[slot].base.atk * scale), def: Math.round(slots[slot].base.def * scale), hp: Math.round(slots[slot].base.hp * scale), locked: false };
|
|
54
|
+
}
|
|
55
|
+
function freshState(now = Date.now()) {
|
|
56
|
+
return { version: 1, name: definition.heroName, level: 1, xp: 0, gold: 120, essence: 30, material: 0, map: 0, unlocked: 0, cleared: [], idle: false, kills: 0, bossWins: 0, inventory: [], equipment: Object.fromEntries(slotKeys.map((key) => [key, slots[key].starter ? makeGear(key, 0, 0, `starter-${key}`) : null])), upgrades: Object.fromEntries(slotKeys.map((key) => [key, 0])), pet: PETS[0].id, pets: { [PETS[0].id]: 1 }, nextId: 1, savedAt: now, sessionGold: 0, sessionXp: 0, sessionDrops: 0, logs: [], fight: null };
|
|
57
|
+
}
|
|
58
|
+
const xpNeeded = (s) => 50 + s.level * 30;
|
|
59
|
+
function stats(s) {
|
|
60
|
+
const result = { power: 0, atk: 16 + (s.level - 1) * 4, def: 3 + (s.level - 1) * 2, hp: 165 + (s.level - 1) * 23 };
|
|
61
|
+
for (const [slot, item] of Object.entries(s.equipment))
|
|
62
|
+
if (item) {
|
|
63
|
+
const multiplier = 1 + s.upgrades[slot] * 0.16;
|
|
64
|
+
for (const key of ["atk", "def", "hp"])
|
|
65
|
+
result[key] += Math.round(item[key] * multiplier);
|
|
66
|
+
}
|
|
67
|
+
result.power = result.atk * 5 + result.def * 3 + Math.round(result.hp / 5) + (s.pets[s.pet] || 0) * 18;
|
|
68
|
+
return result;
|
|
69
|
+
}
|
|
70
|
+
function addLog(s, text, type = "info") {
|
|
71
|
+
s.logs.unshift({ text, type, time: Date.now() });
|
|
72
|
+
s.logs = s.logs.slice(0, 60);
|
|
73
|
+
}
|
|
74
|
+
function addDrop(s, item) {
|
|
75
|
+
s.sessionDrops++;
|
|
76
|
+
if (s.inventory.length >= 80) {
|
|
77
|
+
s.material += 2 + item.tier * 2;
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
s.inventory.push(item);
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
function grant(s, xp, gold) {
|
|
84
|
+
s.xp += xp;
|
|
85
|
+
s.gold += gold;
|
|
86
|
+
s.sessionGold += gold;
|
|
87
|
+
s.sessionXp += xp;
|
|
88
|
+
while (s.xp >= xpNeeded(s) && s.level < 60) {
|
|
89
|
+
s.xp -= xpNeeded(s);
|
|
90
|
+
s.level++;
|
|
91
|
+
addLog(s, `\u5883\u754C\u7CBE\u8FDB\uFF0C\u5347\u81F3 ${s.level} \u7EA7\uFF01`, "rare");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function beginFight(s, boss = false) {
|
|
95
|
+
if (boss && busy2(s))
|
|
96
|
+
return;
|
|
97
|
+
const m = MAPS[s.map], st = stats(s);
|
|
98
|
+
s.fight = { boss, hp: st.hp, maxHp: st.hp, enemyHp: boss ? m.bossHp : m.hp, enemyMax: boss ? m.bossHp : m.hp, turn: 0, status: "active", recovery: 0 };
|
|
99
|
+
if (boss)
|
|
100
|
+
addLog(s, `\u5411 ${m.boss} \u53D1\u8D77\u6311\u6218\u3002`, "boss");
|
|
101
|
+
}
|
|
102
|
+
function tick(s, rng = Math.random) {
|
|
103
|
+
if (!s.idle && !s.fight?.boss)
|
|
104
|
+
return null;
|
|
105
|
+
if (!s.fight)
|
|
106
|
+
beginFight(s);
|
|
107
|
+
let f = s.fight;
|
|
108
|
+
if (f.status !== "active") {
|
|
109
|
+
if (++f.recovery < 2)
|
|
110
|
+
return null;
|
|
111
|
+
if (!s.idle) {
|
|
112
|
+
s.fight = null;
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
beginFight(s);
|
|
116
|
+
f = s.fight;
|
|
117
|
+
}
|
|
118
|
+
const st = stats(s), m = MAPS[s.map];
|
|
119
|
+
f.turn++;
|
|
120
|
+
const skill = f.turn % 3 === 0, crit = rng() < 0.13;
|
|
121
|
+
const damage = Math.round(st.atk * (skill ? 1.65 : 1) * (crit ? 1.5 : 1));
|
|
122
|
+
const pet = PETS.find((p) => p.id === s.pet), petLevel = s.pets[s.pet] || 1;
|
|
123
|
+
const enemyBefore = f.enemyHp, heroBefore = f.hp;
|
|
124
|
+
const enemyAfterHero = Math.max(0, f.enemyHp - damage);
|
|
125
|
+
const petDamage = pet.effect === "attack" && enemyAfterHero > 0 ? pet.base + (petLevel - 1) * 3 : 0;
|
|
126
|
+
f.enemyHp = Math.max(0, enemyAfterHero - petDamage);
|
|
127
|
+
const cycle = f.turn % 5;
|
|
128
|
+
const move = !f.boss || cycle === 1 || cycle === 2 ? "strike" : cycle === 3 ? "charge" : cycle === 4 ? "heavy" : "recover";
|
|
129
|
+
const playback = { turn: f.turn, boss: f.boss, move, heroBefore, heroAfterImpact: heroBefore, heroAfter: heroBefore, enemyBefore, enemyAfterHero, enemyAfter: f.enemyHp, healed: 0, guarded: pet.effect === "guard", won: false, xp: 0, gold: 0 };
|
|
130
|
+
const event = { damage, petDamage, crit, skill, incoming: 0, playback };
|
|
131
|
+
if (f.enemyHp === 0) {
|
|
132
|
+
f.status = "won";
|
|
133
|
+
playback.won = true;
|
|
134
|
+
s.kills++;
|
|
135
|
+
if (f.boss) {
|
|
136
|
+
s.bossWins++;
|
|
137
|
+
const first = !s.cleared.includes(s.map);
|
|
138
|
+
grant(s, m.xp * (first ? 6 : 2), m.gold * (first ? 8 : 3));
|
|
139
|
+
playback.xp = m.xp * (first ? 6 : 2);
|
|
140
|
+
playback.gold = m.gold * (first ? 8 : 3);
|
|
141
|
+
s.essence += first ? 50 : 12;
|
|
142
|
+
if (first) {
|
|
143
|
+
s.cleared.push(s.map);
|
|
144
|
+
s.unlocked = Math.min(MAPS.length - 1, Math.max(s.unlocked, s.map + 1));
|
|
145
|
+
const item = makeGear(m.rewardSlot, 1, s.map, `drop-${s.nextId++}`);
|
|
146
|
+
addDrop(s, item);
|
|
147
|
+
event.reward = item.name;
|
|
148
|
+
addLog(s, `\u9996\u901A ${m.boss}\uFF01\u83B7\u5F97 ${item.name}\uFF0C${s.map < MAPS.length - 1 ? "\u65B0\u7684\u897F\u884C\u5730\u56FE\u5DF2\u89E3\u9501\u3002" : "\u5168\u90E8\u7AE0\u8282\u8BD5\u70BC\u5B8C\u6210\uFF01"}`, "rare");
|
|
149
|
+
} else
|
|
150
|
+
addLog(s, `\u518D\u6B21\u51FB\u8D25 ${m.boss}\uFF0C\u83B7\u5F97\u4FEE\u884C\u5956\u52B1\u3002`, "rare");
|
|
151
|
+
event.bossWin = true;
|
|
152
|
+
event.first = first;
|
|
153
|
+
} else {
|
|
154
|
+
grant(s, m.xp, m.gold);
|
|
155
|
+
playback.xp = m.xp;
|
|
156
|
+
playback.gold = m.gold;
|
|
157
|
+
s.essence += 2;
|
|
158
|
+
if (rng() < 0.38) {
|
|
159
|
+
const item = makeGear(Object.keys(SLOTS)[Math.min(slotKeys.length - 1, Math.floor(rng() * slotKeys.length))], rng() < 0.12 ? 2 : rng() < 0.45 ? 1 : 0, s.map, `drop-${s.nextId++}`);
|
|
160
|
+
const kept = addDrop(s, item);
|
|
161
|
+
addLog(s, kept ? `\u62FE\u5F97 ${RARITIES[item.tier]} \xB7 ${item.name}` : "\u80CC\u5305\u5DF2\u6EE1\uFF0C\u65B0\u6389\u843D\u5DF2\u8F6C\u4E3A\u953B\u6750\u3002", "loot");
|
|
162
|
+
event.drop = item.name;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return event;
|
|
166
|
+
}
|
|
167
|
+
const incoming = move === "charge" || move === "recover" ? 0 : Math.max(1, Math.round(((f.boss ? m.bossAtk : m.atk) * (move === "heavy" ? 2 : 1) - st.def) * (pet.effect === "guard" ? 0.75 : 1)));
|
|
168
|
+
f.hp = Math.max(0, f.hp - incoming);
|
|
169
|
+
event.incoming = incoming;
|
|
170
|
+
playback.heroAfterImpact = f.hp;
|
|
171
|
+
if (pet.effect === "heal" && f.hp > 0) {
|
|
172
|
+
playback.healed = Math.min(f.maxHp - f.hp, 7 + petLevel * 3);
|
|
173
|
+
f.hp += playback.healed;
|
|
174
|
+
}
|
|
175
|
+
playback.heroAfter = f.hp;
|
|
176
|
+
if (f.hp === 0 || f.turn >= 60) {
|
|
177
|
+
f.status = "lost";
|
|
178
|
+
event.lost = true;
|
|
179
|
+
addLog(s, `${f.boss ? m.boss : m.enemy}\u6311\u6218\u5931\u5229\uFF1A${f.hp === 0 ? "\u6C14\u8840\u8017\u5C3D\uFF0C\u53EF\u5F3A\u5316\u8863\u888D\u6216\u57F9\u517B\u7075\u5BA0\u3002" : "\u8F93\u51FA\u4E0D\u8DB3\uFF0C\u53EF\u66F4\u6362\u6B66\u5668\u3002"}\u4F11\u6574\u540E\u7EE7\u7EED\u3002`, "boss");
|
|
180
|
+
}
|
|
181
|
+
return event;
|
|
182
|
+
}
|
|
183
|
+
function equip(s, id) {
|
|
184
|
+
if (busy2(s))
|
|
185
|
+
return false;
|
|
186
|
+
const index = s.inventory.findIndex((i) => i.id === id);
|
|
187
|
+
if (index < 0)
|
|
188
|
+
return false;
|
|
189
|
+
const item = s.inventory.splice(index, 1)[0], old = s.equipment[item.slot];
|
|
190
|
+
if (old)
|
|
191
|
+
s.inventory.push(old);
|
|
192
|
+
s.equipment[item.slot] = item;
|
|
193
|
+
addLog(s, `\u88C5\u5907\u4E86 ${item.name}\u3002`, "loot");
|
|
194
|
+
return true;
|
|
195
|
+
}
|
|
196
|
+
const upgradeCost = (s, slot) => 45 + s.upgrades[slot] * 35;
|
|
197
|
+
function upgrade(s, slot) {
|
|
198
|
+
if (busy2(s))
|
|
199
|
+
return false;
|
|
200
|
+
if (!s.equipment[slot] || s.upgrades[slot] >= 10 || s.gold < upgradeCost(s, slot))
|
|
201
|
+
return false;
|
|
202
|
+
s.gold -= upgradeCost(s, slot);
|
|
203
|
+
s.upgrades[slot]++;
|
|
204
|
+
return true;
|
|
205
|
+
}
|
|
206
|
+
function dismantle(s, id) {
|
|
207
|
+
if (busy2(s))
|
|
208
|
+
return false;
|
|
209
|
+
const index = s.inventory.findIndex((i) => i.id === id && !i.locked);
|
|
210
|
+
if (index < 0)
|
|
211
|
+
return false;
|
|
212
|
+
const [item] = s.inventory.splice(index, 1);
|
|
213
|
+
s.material += 2 + item.tier * 2;
|
|
214
|
+
return true;
|
|
215
|
+
}
|
|
216
|
+
function forge(s) {
|
|
217
|
+
if (busy2(s))
|
|
218
|
+
return false;
|
|
219
|
+
if (s.material < 12)
|
|
220
|
+
return false;
|
|
221
|
+
s.material -= 12;
|
|
222
|
+
const slots2 = Object.keys(SLOTS), slot = slots2[(s.nextId - 1) % slotKeys.length];
|
|
223
|
+
addDrop(s, makeGear(slot, 2, s.map, `drop-${s.nextId++}`));
|
|
224
|
+
return true;
|
|
225
|
+
}
|
|
226
|
+
function trainPet(s, id) {
|
|
227
|
+
if (busy2(s))
|
|
228
|
+
return false;
|
|
229
|
+
const level = s.pets[id];
|
|
230
|
+
if (!level || level >= 20)
|
|
231
|
+
return false;
|
|
232
|
+
const cost = level * 15;
|
|
233
|
+
if (s.essence < cost)
|
|
234
|
+
return false;
|
|
235
|
+
s.essence -= cost;
|
|
236
|
+
s.pets[id]++;
|
|
237
|
+
return true;
|
|
238
|
+
}
|
|
239
|
+
function unlockPet(s, id) {
|
|
240
|
+
if (busy2(s))
|
|
241
|
+
return false;
|
|
242
|
+
const pet = PETS.find((p) => p.id === id);
|
|
243
|
+
if (!pet || s.pets[id] || s.essence < pet.cost)
|
|
244
|
+
return false;
|
|
245
|
+
s.essence -= pet.cost;
|
|
246
|
+
s.pets[id] = 1;
|
|
247
|
+
return true;
|
|
248
|
+
}
|
|
249
|
+
function hydrate(input, now = Date.now()) {
|
|
250
|
+
if (!input || typeof input !== "object")
|
|
251
|
+
throw new Error("\u5B58\u6863\u683C\u5F0F\u4E0D\u6B63\u786E");
|
|
252
|
+
const raw = input;
|
|
253
|
+
if (!raw || raw.version !== 1 || !Array.isArray(raw.inventory) || !raw.equipment || !raw.pets)
|
|
254
|
+
throw new Error("\u5B58\u6863\u683C\u5F0F\u4E0D\u6B63\u786E");
|
|
255
|
+
const s = freshState(now), number = (v, min, max) => typeof v === "number" && Number.isFinite(v) ? Math.max(min, Math.min(max, Math.floor(v))) : min;
|
|
256
|
+
for (const key of ["gold", "xp", "essence", "material", "kills", "bossWins", "sessionGold", "sessionXp", "sessionDrops"])
|
|
257
|
+
s[key] = number(raw[key], 0, 1e9);
|
|
258
|
+
s.level = number(raw.level, 1, 60);
|
|
259
|
+
s.unlocked = number(raw.unlocked, 0, MAPS.length - 1);
|
|
260
|
+
s.map = number(raw.map, 0, s.unlocked);
|
|
261
|
+
s.nextId = number(raw.nextId, 1, 1e9);
|
|
262
|
+
s.savedAt = number(raw.savedAt, 0, now);
|
|
263
|
+
s.idle = raw.idle === true;
|
|
264
|
+
s.cleared = [...new Set((Array.isArray(raw.cleared) ? raw.cleared : []).filter((v) => Number.isInteger(v) && v >= 0 && v < MAPS.length))];
|
|
265
|
+
const validItem = (item) => !!item && typeof item.id === "string" && item.id.length < 80 && /^[a-zA-Z0-9_-]+$/.test(item.id) && Object.hasOwn(SLOTS, item.slot) && Number.isInteger(item.tier) && item.tier >= 0 && item.tier < RARITIES.length;
|
|
266
|
+
const cleanItem = (item) => ({ ...makeGear(item.slot, item.tier, number(item.rank, 0, MAPS.length - 1), item.id), locked: item.locked === true });
|
|
267
|
+
s.inventory = raw.inventory.slice(0, 80).filter(validItem).map(cleanItem);
|
|
268
|
+
for (const slot of Object.keys(SLOTS)) {
|
|
269
|
+
s.equipment[slot] = validItem(raw.equipment[slot]) && raw.equipment[slot].slot === slot ? cleanItem(raw.equipment[slot]) : null;
|
|
270
|
+
s.upgrades[slot] = number(raw.upgrades?.[slot], 0, 10);
|
|
271
|
+
}
|
|
272
|
+
for (const pet of PETS)
|
|
273
|
+
if (raw.pets[pet.id])
|
|
274
|
+
s.pets[pet.id] = number(raw.pets[pet.id], 1, 20);
|
|
275
|
+
s.pet = Object.hasOwn(s.pets, raw.pet) ? raw.pet : PETS[0].id;
|
|
276
|
+
return s;
|
|
277
|
+
}
|
|
278
|
+
function settleOffline(s, now = Date.now(), rng = Math.random) {
|
|
279
|
+
const seconds = Math.min(definition.offlineCapSeconds ?? 43200, Math.max(0, Math.floor((now - s.savedAt) / 1e3)));
|
|
280
|
+
if (!s.idle || seconds < 15) {
|
|
281
|
+
s.savedAt = now;
|
|
282
|
+
return null;
|
|
283
|
+
}
|
|
284
|
+
const before = { xp: s.sessionXp, gold: s.gold, drops: s.sessionDrops, essence: s.essence, kills: s.kills };
|
|
285
|
+
s.fight = null;
|
|
286
|
+
for (let i = 0; i < Math.floor(seconds * 1e3 / (definition.turnDurationMs ?? 1e3)); i++)
|
|
287
|
+
tick(s, rng);
|
|
288
|
+
s.fight = null;
|
|
289
|
+
s.savedAt = now;
|
|
290
|
+
return { seconds, xp: s.sessionXp - before.xp, gold: s.gold - before.gold, drops: s.sessionDrops - before.drops, essence: s.essence - before.essence, kills: s.kills - before.kills };
|
|
291
|
+
}
|
|
292
|
+
function serialize(s, now = Date.now()) {
|
|
293
|
+
const saved = copy(s);
|
|
294
|
+
saved.savedAt = now;
|
|
295
|
+
saved.fight = null;
|
|
296
|
+
saved.logs = [];
|
|
297
|
+
return JSON.stringify(saved);
|
|
298
|
+
}
|
|
299
|
+
return { definition, freshState, makeGear, xpNeeded, stats, addLog, grant, beginFight, tick, equip, upgradeCost, upgrade, dismantle, forge, trainPet, unlockPet, hydrate, settleOffline, serialize };
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// src/game/components.tsx
|
|
303
|
+
var import_react8 = require("react");
|
|
304
|
+
|
|
305
|
+
// src/components/titleTooltip.tsx
|
|
306
|
+
var import_client = require("react-dom/client");
|
|
307
|
+
|
|
308
|
+
// src/components/PopupPortal.tsx
|
|
309
|
+
var import_react = require("react");
|
|
310
|
+
var import_react_dom = require("react-dom");
|
|
311
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
312
|
+
function setForwardedRef(ref, value) {
|
|
313
|
+
if (typeof ref === "function") ref(value);
|
|
314
|
+
else if (ref) ref.current = value;
|
|
315
|
+
}
|
|
316
|
+
function clamp(value, min, max) {
|
|
317
|
+
return Math.min(Math.max(value, min), Math.max(min, max));
|
|
318
|
+
}
|
|
319
|
+
var PopupPortal = (0, import_react.forwardRef)(function PopupPortal2({
|
|
320
|
+
anchorRef,
|
|
321
|
+
open = true,
|
|
322
|
+
placement = "bottom-start",
|
|
323
|
+
offset = 6,
|
|
324
|
+
viewportPadding = 8,
|
|
325
|
+
className = "",
|
|
326
|
+
style,
|
|
327
|
+
children,
|
|
328
|
+
...props
|
|
329
|
+
}, forwardedRef) {
|
|
330
|
+
const popupRef = (0, import_react.useRef)(null);
|
|
331
|
+
const [position, setPosition] = (0, import_react.useState)();
|
|
332
|
+
(0, import_react.useLayoutEffect)(() => {
|
|
333
|
+
if (!open || typeof document === "undefined") {
|
|
334
|
+
setPosition(void 0);
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
const update = () => {
|
|
338
|
+
const anchor = anchorRef.current;
|
|
339
|
+
const popup = popupRef.current;
|
|
340
|
+
if (!anchor || !popup) return;
|
|
341
|
+
const anchorRect = anchor.getBoundingClientRect();
|
|
342
|
+
const popupRect = popup.getBoundingClientRect();
|
|
343
|
+
const viewportWidth = document.documentElement.clientWidth;
|
|
344
|
+
const viewportHeight = document.documentElement.clientHeight;
|
|
345
|
+
let resolvedPlacement = placement;
|
|
346
|
+
const availableBelow = Math.max(0, viewportHeight - viewportPadding - anchorRect.bottom - offset);
|
|
347
|
+
const availableAbove = Math.max(0, anchorRect.top - offset - viewportPadding);
|
|
348
|
+
const availableRight = Math.max(0, viewportWidth - viewportPadding - anchorRect.right - offset);
|
|
349
|
+
const availableLeft = Math.max(0, anchorRect.left - offset - viewportPadding);
|
|
350
|
+
const horizontalSide = placement.startsWith("right") || placement.startsWith("left");
|
|
351
|
+
if (horizontalSide) {
|
|
352
|
+
const prefersRight = placement.startsWith("right");
|
|
353
|
+
const fitsRight = popupRect.width <= availableRight;
|
|
354
|
+
const fitsLeft = popupRect.width <= availableLeft;
|
|
355
|
+
if (prefersRight && !fitsRight && (fitsLeft || availableLeft > availableRight)) {
|
|
356
|
+
resolvedPlacement = placement.replace("right", "left");
|
|
357
|
+
} else if (!prefersRight && !fitsLeft && (fitsRight || availableRight > availableLeft)) {
|
|
358
|
+
resolvedPlacement = placement.replace("left", "right");
|
|
359
|
+
}
|
|
360
|
+
} else {
|
|
361
|
+
const prefersBottom = placement.startsWith("bottom");
|
|
362
|
+
const fitsBelow = popupRect.height <= availableBelow;
|
|
363
|
+
const fitsAbove = popupRect.height <= availableAbove;
|
|
364
|
+
if (prefersBottom && !fitsBelow && (fitsAbove || availableAbove > availableBelow)) {
|
|
365
|
+
resolvedPlacement = placement.replace("bottom", "top");
|
|
366
|
+
} else if (!prefersBottom && !fitsAbove && (fitsBelow || availableBelow > availableAbove)) {
|
|
367
|
+
resolvedPlacement = placement.replace("top", "bottom");
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
const resolvedHorizontalSide = resolvedPlacement.startsWith("right") || resolvedPlacement.startsWith("left");
|
|
371
|
+
const top = resolvedHorizontalSide ? resolvedPlacement.endsWith("end") ? anchorRect.bottom - popupRect.height : anchorRect.top : resolvedPlacement.startsWith("bottom") ? anchorRect.bottom + offset : anchorRect.top - popupRect.height - offset;
|
|
372
|
+
const availableHeight = resolvedHorizontalSide ? Math.max(0, viewportHeight - viewportPadding * 2) : resolvedPlacement.startsWith("bottom") ? availableBelow : availableAbove;
|
|
373
|
+
const alignedLeft = resolvedHorizontalSide ? resolvedPlacement.startsWith("right") ? anchorRect.right + offset : anchorRect.left - popupRect.width - offset : resolvedPlacement.endsWith("end") ? anchorRect.right - popupRect.width : anchorRect.left;
|
|
374
|
+
const next = {
|
|
375
|
+
top: clamp(top, viewportPadding, viewportHeight - popupRect.height - viewportPadding),
|
|
376
|
+
left: clamp(alignedLeft, viewportPadding, viewportWidth - popupRect.width - viewportPadding),
|
|
377
|
+
anchorWidth: anchorRect.width,
|
|
378
|
+
availableHeight,
|
|
379
|
+
placement: resolvedPlacement
|
|
380
|
+
};
|
|
381
|
+
setPosition((current) => current && current.top === next.top && current.left === next.left && current.anchorWidth === next.anchorWidth && current.availableHeight === next.availableHeight && current.placement === next.placement ? current : next);
|
|
382
|
+
};
|
|
383
|
+
update();
|
|
384
|
+
window.addEventListener("resize", update);
|
|
385
|
+
window.addEventListener("scroll", update, true);
|
|
386
|
+
const observer = new ResizeObserver(update);
|
|
387
|
+
if (anchorRef.current) observer.observe(anchorRef.current);
|
|
388
|
+
if (popupRef.current) observer.observe(popupRef.current);
|
|
389
|
+
return () => {
|
|
390
|
+
window.removeEventListener("resize", update);
|
|
391
|
+
window.removeEventListener("scroll", update, true);
|
|
392
|
+
observer.disconnect();
|
|
393
|
+
};
|
|
394
|
+
}, [anchorRef, offset, open, placement, viewportPadding]);
|
|
395
|
+
if (!open || typeof document === "undefined") return null;
|
|
396
|
+
return (0, import_react_dom.createPortal)(
|
|
397
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
398
|
+
"div",
|
|
399
|
+
{
|
|
400
|
+
ref: (node) => {
|
|
401
|
+
popupRef.current = node;
|
|
402
|
+
setForwardedRef(forwardedRef, node);
|
|
403
|
+
},
|
|
404
|
+
className: `sia-popup-portal ${className}`.trim(),
|
|
405
|
+
"data-sia-popup-layer": "",
|
|
406
|
+
"data-placement": position?.placement ?? placement,
|
|
407
|
+
style: {
|
|
408
|
+
...style,
|
|
409
|
+
"--sia-popup-anchor-width": `${position?.anchorWidth ?? anchorRef.current?.getBoundingClientRect().width ?? 0}px`,
|
|
410
|
+
"--sia-popup-available-height": position ? `${position.availableHeight}px` : void 0,
|
|
411
|
+
top: position?.top ?? 0,
|
|
412
|
+
left: position?.left ?? 0,
|
|
413
|
+
visibility: position ? "visible" : "hidden"
|
|
414
|
+
},
|
|
415
|
+
...withTitleTooltip(props),
|
|
416
|
+
children
|
|
417
|
+
}
|
|
418
|
+
),
|
|
419
|
+
document.body
|
|
420
|
+
);
|
|
421
|
+
});
|
|
422
|
+
|
|
423
|
+
// src/components/titleTooltip.tsx
|
|
424
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
425
|
+
var documents = /* @__PURE__ */ new WeakSet();
|
|
426
|
+
function withTitleTooltip(props) {
|
|
427
|
+
if (!props || typeof props !== "object" || !("title" in props)) return props;
|
|
428
|
+
const { title, ...rest } = props;
|
|
429
|
+
if (typeof document !== "undefined") installTitleTooltips(document);
|
|
430
|
+
return { ...rest, "data-sia-title": title == null ? void 0 : String(title) };
|
|
431
|
+
}
|
|
432
|
+
function installTitleTooltips(doc) {
|
|
433
|
+
if (documents.has(doc)) return;
|
|
434
|
+
documents.add(doc);
|
|
435
|
+
let hovered = null;
|
|
436
|
+
let focused = null;
|
|
437
|
+
let keyboardFocus = true;
|
|
438
|
+
let active = null;
|
|
439
|
+
let pending = null;
|
|
440
|
+
let timer;
|
|
441
|
+
let root;
|
|
442
|
+
let observer;
|
|
443
|
+
let tooltipId = "";
|
|
444
|
+
const canShow = (element) => {
|
|
445
|
+
if (!element.hasAttribute("data-sia-title-overflow-only")) return true;
|
|
446
|
+
return [element, ...element.querySelectorAll("*")].some((node) => {
|
|
447
|
+
if (node.clientWidth <= 0 || node.scrollWidth <= node.clientWidth) return false;
|
|
448
|
+
const style = doc.defaultView?.getComputedStyle(node);
|
|
449
|
+
return style?.textOverflow === "ellipsis" && (style.overflowX === "hidden" || style.overflowX === "clip");
|
|
450
|
+
});
|
|
451
|
+
};
|
|
452
|
+
const candidate = (target) => {
|
|
453
|
+
if (!(target instanceof Element)) return null;
|
|
454
|
+
const element = target.closest("[data-sia-title]");
|
|
455
|
+
return element?.getAttribute("data-sia-title") && !element.closest(".sia-floating") && canShow(element) ? element : null;
|
|
456
|
+
};
|
|
457
|
+
const hasExplicitTooltip = (target) => target instanceof Element && Boolean(target.closest(".sia-floating"));
|
|
458
|
+
const hide = () => {
|
|
459
|
+
clearTimeout(timer);
|
|
460
|
+
pending = null;
|
|
461
|
+
observer?.disconnect();
|
|
462
|
+
observer = void 0;
|
|
463
|
+
if (active) {
|
|
464
|
+
const ids = (active.getAttribute("aria-describedby") ?? "").split(/\s+/).filter((id) => id && id !== tooltipId);
|
|
465
|
+
if (ids.length) active.setAttribute("aria-describedby", ids.join(" "));
|
|
466
|
+
else active.removeAttribute("aria-describedby");
|
|
467
|
+
}
|
|
468
|
+
active = null;
|
|
469
|
+
root?.render(null);
|
|
470
|
+
};
|
|
471
|
+
const render = () => {
|
|
472
|
+
const text = active?.getAttribute("data-sia-title");
|
|
473
|
+
if (!active?.isConnected || !text || !canShow(active)) {
|
|
474
|
+
hide();
|
|
475
|
+
return;
|
|
476
|
+
}
|
|
477
|
+
if (!root) {
|
|
478
|
+
const host = doc.createElement("div");
|
|
479
|
+
host.setAttribute("data-sia-title-tooltip-host", "");
|
|
480
|
+
doc.body.append(host);
|
|
481
|
+
root = (0, import_client.createRoot)(host);
|
|
482
|
+
tooltipId = `sia-title-tooltip-${Math.random().toString(36).slice(2)}`;
|
|
483
|
+
}
|
|
484
|
+
const ids = new Set((active.getAttribute("aria-describedby") ?? "").split(/\s+/).filter(Boolean));
|
|
485
|
+
ids.add(tooltipId);
|
|
486
|
+
active.setAttribute("aria-describedby", [...ids].join(" "));
|
|
487
|
+
root.render(/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
488
|
+
PopupPortal,
|
|
489
|
+
{
|
|
490
|
+
anchorRef: { current: active },
|
|
491
|
+
placement: "top-start",
|
|
492
|
+
id: tooltipId,
|
|
493
|
+
role: "tooltip",
|
|
494
|
+
className: "sia-title-tooltip",
|
|
495
|
+
children: text
|
|
496
|
+
}
|
|
497
|
+
));
|
|
498
|
+
};
|
|
499
|
+
const show = (element) => {
|
|
500
|
+
if (!element && !active && !pending) return;
|
|
501
|
+
if (element && (element === active || element === pending)) return;
|
|
502
|
+
hide();
|
|
503
|
+
if (!element) return;
|
|
504
|
+
pending = element;
|
|
505
|
+
timer = setTimeout(() => {
|
|
506
|
+
pending = null;
|
|
507
|
+
if (!element.isConnected) return;
|
|
508
|
+
active = element;
|
|
509
|
+
render();
|
|
510
|
+
if (!active) return;
|
|
511
|
+
observer = new MutationObserver(() => {
|
|
512
|
+
if (!active?.isConnected) hide();
|
|
513
|
+
else if (active.getAttribute("data-sia-title") !== doc.getElementById(tooltipId)?.textContent) render();
|
|
514
|
+
});
|
|
515
|
+
observer.observe(doc.body, { childList: true, subtree: true, attributes: true, attributeFilter: ["data-sia-title"] });
|
|
516
|
+
}, 600);
|
|
517
|
+
};
|
|
518
|
+
doc.addEventListener("pointerover", (event) => {
|
|
519
|
+
if (event.pointerType === "touch") return;
|
|
520
|
+
hovered = candidate(event.target);
|
|
521
|
+
if (hasExplicitTooltip(event.target)) hide();
|
|
522
|
+
else show(hovered ?? focused);
|
|
523
|
+
}, true);
|
|
524
|
+
doc.addEventListener("pointermove", (event) => {
|
|
525
|
+
if (event.pointerType === "touch" || event.buttons) return;
|
|
526
|
+
hovered = candidate(event.target);
|
|
527
|
+
if (!hasExplicitTooltip(event.target)) show(hovered ?? focused);
|
|
528
|
+
}, true);
|
|
529
|
+
doc.addEventListener("pointerout", (event) => {
|
|
530
|
+
if (event.pointerType === "touch") return;
|
|
531
|
+
hovered = candidate(event.relatedTarget);
|
|
532
|
+
if (hasExplicitTooltip(event.relatedTarget)) hide();
|
|
533
|
+
else show(hovered ?? focused);
|
|
534
|
+
}, true);
|
|
535
|
+
doc.addEventListener("focusin", (event) => {
|
|
536
|
+
focused = keyboardFocus ? candidate(event.target) : null;
|
|
537
|
+
if (hasExplicitTooltip(event.target)) hide();
|
|
538
|
+
else if (keyboardFocus) show(focused ?? hovered);
|
|
539
|
+
}, true);
|
|
540
|
+
doc.addEventListener("focusout", (event) => {
|
|
541
|
+
focused = keyboardFocus ? candidate(event.relatedTarget) : null;
|
|
542
|
+
show(hovered ?? focused);
|
|
543
|
+
}, true);
|
|
544
|
+
doc.addEventListener("pointerdown", () => {
|
|
545
|
+
keyboardFocus = false;
|
|
546
|
+
focused = null;
|
|
547
|
+
hide();
|
|
548
|
+
}, true);
|
|
549
|
+
doc.addEventListener("keydown", (event) => {
|
|
550
|
+
if (event.key === "Escape") hide();
|
|
551
|
+
else if (event.key === "Tab") keyboardFocus = true;
|
|
552
|
+
}, true);
|
|
553
|
+
doc.addEventListener("scroll", hide, true);
|
|
554
|
+
doc.addEventListener("visibilitychange", () => {
|
|
555
|
+
if (doc.hidden) {
|
|
556
|
+
hovered = focused = null;
|
|
557
|
+
hide();
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
doc.defaultView?.addEventListener("blur", () => {
|
|
561
|
+
hovered = focused = null;
|
|
562
|
+
hide();
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
// src/components/shared.ts
|
|
567
|
+
var import_react2 = require("react");
|
|
568
|
+
var ControlSizeContext = (0, import_react2.createContext)("medium");
|
|
569
|
+
function useControlSize(size) {
|
|
570
|
+
const inherited = (0, import_react2.useContext)(ControlSizeContext);
|
|
571
|
+
return size ?? inherited;
|
|
572
|
+
}
|
|
573
|
+
var PlaceholderModeContext = (0, import_react2.createContext)("default");
|
|
574
|
+
|
|
575
|
+
// src/components/Button.tsx
|
|
576
|
+
var import_react3 = require("react");
|
|
577
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
578
|
+
var Button = (0, import_react3.forwardRef)(function Button2({
|
|
579
|
+
variant = "default",
|
|
580
|
+
size: sizeProp,
|
|
581
|
+
loading = false,
|
|
582
|
+
block = false,
|
|
583
|
+
danger = false,
|
|
584
|
+
icon,
|
|
585
|
+
iconPosition = "start",
|
|
586
|
+
className = "",
|
|
587
|
+
children,
|
|
588
|
+
disabled,
|
|
589
|
+
onClick,
|
|
590
|
+
style,
|
|
591
|
+
...props
|
|
592
|
+
}, forwardedRef) {
|
|
593
|
+
const size = useControlSize(sizeProp);
|
|
594
|
+
const localRef = (0, import_react3.useRef)(null);
|
|
595
|
+
function setRef(node) {
|
|
596
|
+
localRef.current = node;
|
|
597
|
+
if (typeof forwardedRef === "function") forwardedRef(node);
|
|
598
|
+
else if (forwardedRef) forwardedRef.current = node;
|
|
599
|
+
}
|
|
600
|
+
function handleClick(event) {
|
|
601
|
+
const button = localRef.current;
|
|
602
|
+
if (button && variant === "primary") {
|
|
603
|
+
const rect = button.getBoundingClientRect();
|
|
604
|
+
button.style.setProperty("--sia-wave-x", `${event.clientX - rect.left}px`);
|
|
605
|
+
button.style.setProperty("--sia-wave-y", `${event.clientY - rect.top}px`);
|
|
606
|
+
button.dataset.wave = "active";
|
|
607
|
+
window.setTimeout(() => delete button.dataset.wave, 360);
|
|
608
|
+
}
|
|
609
|
+
onClick?.(event);
|
|
610
|
+
}
|
|
611
|
+
const mergedStyle = block ? { ...style, width: "100%" } : style ?? {};
|
|
612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
613
|
+
"button",
|
|
614
|
+
{
|
|
615
|
+
ref: setRef,
|
|
616
|
+
type: "button",
|
|
617
|
+
className: `sia-button sia-button--${variant} sia-button--${size}${danger ? " sia-button--danger" : ""} ${className}`.trim(),
|
|
618
|
+
"aria-busy": loading || void 0,
|
|
619
|
+
disabled: disabled || loading,
|
|
620
|
+
onClick: handleClick,
|
|
621
|
+
style: mergedStyle,
|
|
622
|
+
...withTitleTooltip(props),
|
|
623
|
+
children: [
|
|
624
|
+
loading ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "sia-button__spinner", "aria-hidden": "true" }) : icon && iconPosition === "start" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "sia-button__icon", children: icon }) : null,
|
|
625
|
+
children !== void 0 && children !== null ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children }) : null,
|
|
626
|
+
!loading && icon && iconPosition === "end" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "sia-button__icon", children: icon }) : null
|
|
627
|
+
]
|
|
628
|
+
}
|
|
629
|
+
);
|
|
630
|
+
});
|
|
631
|
+
|
|
632
|
+
// src/components/Modal.tsx
|
|
633
|
+
var import_react7 = require("react");
|
|
634
|
+
var import_client2 = require("react-dom/client");
|
|
635
|
+
|
|
636
|
+
// src/components/Icon.tsx
|
|
637
|
+
var import_react5 = require("react");
|
|
638
|
+
|
|
639
|
+
// src/components/IconCatalog.tsx
|
|
640
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
641
|
+
var extendedIconPaths = {
|
|
642
|
+
"notepad-file": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: [
|
|
643
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M752 80H272c-70.4 0-128 57.6-128 128v608c0 70.4 57.6 128 128 128h353.6c33.6 0 65.6-12.8 91.2-36.8l126.4-126.4c24-24 36.8-56 36.8-91.2V208c0-70.4-57.6-128-128-128zM208 816V208c0-35.2 28.8-64 64-64h480c35.2 0 64 28.8 64 64v464h-96c-70.4 0-128 57.6-128 128v80H272c-35.2 0-64-28.8-64-64z m462.4 44.8c-4.8 4.8-9.6 8-14.4 11.2v-72c0-35.2 28.8-64 64-64h75.2L670.4 860.8z" }),
|
|
644
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M368 352h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H368c-17.6 0-32 14.4-32 32s14.4 32 32 32z m128 256H368c-17.6 0-32 14.4-32 32s14.4 32 32 32h128c17.6 0 32-14.4 32-32s-14.4-32-32-32z m-128-96h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H368c-17.6 0-32 14.4-32 32s14.4 32 32 32z" })
|
|
645
|
+
] }),
|
|
646
|
+
"notepad-folder": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M510.4 243.2c8 27.2 33.6 44.8 60.8 44.8h259.2c0-35.2-28.8-64-64-64H504l6.4 19.2zM484.8 160h281.6c70.4 0 128 57.6 128 128v25.6c30.4 24 51.2 60.8 51.2 102.4v384c0 70.4-57.6 128-128 128H208c-70.4 0-128-57.6-128-128V224c0-70.4 57.6-128 128-128h164.8c46.4 0 89.6 25.6 112 64z m-112 0H208c-35.2 0-64 28.8-64 64v576c0 35.2 28.8 64 64 64h608c35.2 0 64-28.8 64-64V416c0-35.2-28.8-64-64-64H574.4c-56 0-105.6-36.8-121.6-89.6l-19.2-57.6c-8-27.2-32-44.8-60.8-44.8zM272 704h256c17.6 0 32 14.4 32 32s-14.4 32-32 32H272c-17.6 0-32-14.4-32-32s14.4-32 32-32z" }) }),
|
|
647
|
+
"notepad-virtual-folder": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: [
|
|
648
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M704 864H192c-89.6 0-160-70.4-160-160V192c0-89.6 70.4-160 160-160h512c89.6 0 160 70.4 160 160v512c0 89.6-70.4 160-160 160zM192 96c-51.2 0-96 44.8-96 96v512c0 51.2 44.8 96 96 96h512c51.2 0 96-44.8 96-96V192c0-51.2-44.8-96-96-96H192z" }),
|
|
649
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M832 992H320c-19.2 0-32-12.8-32-32s12.8-32 32-32h512c51.2 0 96-44.8 96-96V320c0-19.2 12.8-32 32-32s32 12.8 32 32v512c0 89.6-70.4 160-160 160z" })
|
|
650
|
+
] }),
|
|
651
|
+
"step-backward": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
652
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 5v14" }),
|
|
653
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m18 6-8 6 8 6V6Z" })
|
|
654
|
+
] }),
|
|
655
|
+
"step-forward": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
656
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M18 5v14" }),
|
|
657
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m6 6 8 6-8 6V6Z" })
|
|
658
|
+
] }),
|
|
659
|
+
"fast-backward": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m11 6-7 6 7 6V6ZM20 6l-7 6 7 6V6Z" }) }),
|
|
660
|
+
"fast-forward": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m13 6 7 6-7 6V6ZM4 6l7 6-7 6V6Z" }) }),
|
|
661
|
+
"corner-up-left": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
662
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m9 5-5 5 5 5" }),
|
|
663
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 10h9a7 7 0 0 1 7 7v2" })
|
|
664
|
+
] }),
|
|
665
|
+
"corner-up-right": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
666
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m15 5 5 5-5 5" }),
|
|
667
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M20 10h-9a7 7 0 0 0-7 7v2" })
|
|
668
|
+
] }),
|
|
669
|
+
"swap-horizontal": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
670
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 8h15m0 0-4-4m4 4-4 4" }),
|
|
671
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M20 16H5m0 0 4-4m-4 4 4 4" })
|
|
672
|
+
] }),
|
|
673
|
+
"swap-vertical": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
674
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 4v15m0 0-4-4m4 4 4-4" }),
|
|
675
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M16 20V5m0 0-4 4m4-4 4 4" })
|
|
676
|
+
] }),
|
|
677
|
+
expand: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 4H4v5M4 4l6 6M15 20h5v-5m0 5-6-6" }) }),
|
|
678
|
+
shrink: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 10H5V5m0 5 6-6M14 14h5v5m0-5-6 6" }) }),
|
|
679
|
+
fullscreen: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 4H4v5M15 4h5v5M9 20H4v-5M15 20h5v-5" }),
|
|
680
|
+
"fullscreen-exit": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 9h5V4M20 9h-5V4M4 15h5v5M20 15h-5v5" }),
|
|
681
|
+
"menu-fold": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
682
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 6h16M4 12h10M4 18h16" }),
|
|
683
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m18 9-3 3 3 3" })
|
|
684
|
+
] }),
|
|
685
|
+
"menu-unfold": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
686
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 6h16M10 12h10M4 18h16" }),
|
|
687
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m6 9 3 3-3 3" })
|
|
688
|
+
] }),
|
|
689
|
+
login: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 5H5v14h5M13 8l4 4-4 4M8 12h9" }) }),
|
|
690
|
+
logout: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 5h5v14h-5M11 8l-4 4 4 4M16 12H7" }) }),
|
|
691
|
+
move: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
692
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 3v18M3 12h18" }),
|
|
693
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m9 6 3-3 3 3M9 18l3 3 3-3M6 9l-3 3 3 3M18 9l3 3-3 3" })
|
|
694
|
+
] }),
|
|
695
|
+
"vertical-align-top": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 4h16M12 7v13M8 11l4-4 4 4" }) }),
|
|
696
|
+
"vertical-align-middle": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 12h16M12 4v16M8 8l4 4 4-4M8 16l4-4 4 4" }) }),
|
|
697
|
+
"vertical-align-bottom": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 20h16M12 4v13M8 13l4 4 4-4" }) }),
|
|
698
|
+
"square-plus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
699
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
|
|
700
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 8v8M8 12h8" })
|
|
701
|
+
] }),
|
|
702
|
+
"square-minus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
703
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
|
|
704
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 12h8" })
|
|
705
|
+
] }),
|
|
706
|
+
"square-check": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
707
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
|
|
708
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8 12 3 3 6-7" })
|
|
709
|
+
] }),
|
|
710
|
+
"square-close": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
711
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
|
|
712
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8.5 8.5 7 7m0-7-7 7" })
|
|
713
|
+
] }),
|
|
714
|
+
"tab-plus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
715
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2.5" }),
|
|
716
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 9h18M7 6.5h.1M10 6.5h.1M15 12v6M12 15h6" })
|
|
717
|
+
] }),
|
|
718
|
+
"folder-plus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
719
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 6h7l2 2h9v11H3V6Z" }),
|
|
720
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M16 11v6M13 14h6" })
|
|
721
|
+
] }),
|
|
722
|
+
pin: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 3h8l-1.5 5 3 3v2H13v8l-2-2v-6H6.5v-2l3-3L8 3Z" }) }),
|
|
723
|
+
"pin-off": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9.5 8 8 3h8l-1.5 5 3 3v2H13v4M6.5 13v-2l1-1M3 3l18 18" }) }),
|
|
724
|
+
stop: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
725
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
726
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 18 18 6" })
|
|
727
|
+
] }),
|
|
728
|
+
"help-circle": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
729
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
730
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9.7 9a2.5 2.5 0 1 1 3.6 2.3c-.9.5-1.3 1.1-1.3 2.1M12 17v.1" })
|
|
731
|
+
] }),
|
|
732
|
+
save: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
733
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 3h13l3 3v15H4V3Z" }),
|
|
734
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 3v6h8V3M8 21v-7h8v7" })
|
|
735
|
+
] }),
|
|
736
|
+
clipboard: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
737
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "5", y: "4", width: "14", height: "17", rx: "2.5" }),
|
|
738
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 4.5V3h6v1.5M9 9h6M9 13h6M9 17h4" })
|
|
739
|
+
] }),
|
|
740
|
+
"clipboard-check": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
741
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "5", y: "4", width: "14", height: "17", rx: "2.5" }),
|
|
742
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 4.5V3h6v1.5m-6 9 2 2 4-5" })
|
|
743
|
+
] }),
|
|
744
|
+
"file-plus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
745
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
|
|
746
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 3v5h4M12 11v6M9 14h6" })
|
|
747
|
+
] }),
|
|
748
|
+
"file-check": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
749
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
|
|
750
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 3v5h4m-8 6 2 2 4-5" })
|
|
751
|
+
] }),
|
|
752
|
+
"file-warning": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
753
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
|
|
754
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 3v5h4M12 11v4m0 3v.1" })
|
|
755
|
+
] }),
|
|
756
|
+
"file-spreadsheet": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
757
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
|
|
758
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 3v5h4M8.5 11h7v7h-7v-7Zm0 3.5h7M12 11v7" })
|
|
759
|
+
] }),
|
|
760
|
+
"align-left": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 6h16M4 10h11M4 14h16M4 18h11" }),
|
|
761
|
+
"align-center": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 6h16M7 10h10M4 14h16M7 18h10" }),
|
|
762
|
+
"align-right": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 6h16M9 10h11M4 14h16M9 18h11" }),
|
|
763
|
+
"align-justify": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 6h16M4 10h16M4 14h16M4 18h16" }),
|
|
764
|
+
bold: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 4h6a4 4 0 0 1 0 8H7V4Zm0 8h7a4 4 0 0 1 0 8H7v-8Z" }),
|
|
765
|
+
italic: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 4h8M6 20h8M14 4 10 20" }),
|
|
766
|
+
underline: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 4v7a5 5 0 0 0 10 0V4M5 21h14" }) }),
|
|
767
|
+
strikethrough: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 12h14M8 8c.3-2.5 2-4 4.5-4 2.2 0 3.7 1 4.5 2.5M8 16c.8 2.5 2.5 4 5 4 2.2 0 3.8-1 4.5-2.5" }) }),
|
|
768
|
+
"list-ordered": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
769
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 6h12M9 12h12M9 18h12" }),
|
|
770
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 5h1v3M4 11h2l-2 3h2M4 17h2l-2 3h2" })
|
|
771
|
+
] }),
|
|
772
|
+
"list-unordered": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
773
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 6h12M9 12h12M9 18h12" }),
|
|
774
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "4.5", cy: "6", r: ".5" }),
|
|
775
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "4.5", cy: "12", r: ".5" }),
|
|
776
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "4.5", cy: "18", r: ".5" })
|
|
777
|
+
] }),
|
|
778
|
+
eraser: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
779
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m4 15 8-10 8 7-7 8H7l-3-3v-2Z" }),
|
|
780
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m9 9 8 7M13 20h8" })
|
|
781
|
+
] }),
|
|
782
|
+
highlighter: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
783
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m7 14 7-10 5 4-8 9-4-3Z" }),
|
|
784
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m5 17 6 3H3l2-3ZM15 14l4 3" })
|
|
785
|
+
] }),
|
|
786
|
+
table: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
787
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
|
|
788
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 9h18M3 14h18M9 4v16M15 4v16" })
|
|
789
|
+
] }),
|
|
790
|
+
columns: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
791
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
|
|
792
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 4v16" })
|
|
793
|
+
] }),
|
|
794
|
+
rows: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
795
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
|
|
796
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 9h18M3 15h18" })
|
|
797
|
+
] }),
|
|
798
|
+
"bar-chart": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 21V10h4v11M10 21V4h4v17M16 21v-8h4v8M3 21h18" }) }),
|
|
799
|
+
"line-chart": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
800
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 20h18M4 17l5-6 4 3 7-9" }),
|
|
801
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "9", cy: "11", r: "1" }),
|
|
802
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "13", cy: "14", r: "1" })
|
|
803
|
+
] }),
|
|
804
|
+
"pie-chart": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
805
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M11 3a9 9 0 1 0 9 9h-9V3Z" }),
|
|
806
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 3.5A8.5 8.5 0 0 1 20.5 10H14V3.5Z" })
|
|
807
|
+
] }),
|
|
808
|
+
"area-chart": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 20h18M4 17l5-6 4 3 7-9v12H4Z" }) }),
|
|
809
|
+
activity: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 12h4l2-6 4 13 3-7h5" }),
|
|
810
|
+
"trending-up": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
811
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m4 17 6-6 4 4 6-7" }),
|
|
812
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M15 8h5v5" })
|
|
813
|
+
] }),
|
|
814
|
+
"trending-down": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
815
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m4 7 6 6 4-4 6 7" }),
|
|
816
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M15 16h5v-5" })
|
|
817
|
+
] }),
|
|
818
|
+
database: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
819
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("ellipse", { cx: "12", cy: "5", rx: "8", ry: "3" }),
|
|
820
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 5v7c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 12v7c0 1.7 3.6 3 8 3s8-1.3 8-3v-7" })
|
|
821
|
+
] }),
|
|
822
|
+
cloud: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 19h11a4 4 0 0 0 .5-8A7 7 0 0 0 5.2 9.5 4.8 4.8 0 0 0 7 19Z" }),
|
|
823
|
+
"cloud-download": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
824
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 18H5a4 4 0 0 1 .2-8 7 7 0 0 1 13.3 1A4 4 0 0 1 19 19h-2" }),
|
|
825
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 11v10m-4-4 4 4 4-4" })
|
|
826
|
+
] }),
|
|
827
|
+
"cloud-upload": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
828
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 18H5a4 4 0 0 1 .2-8 7 7 0 0 1 13.3 1A4 4 0 0 1 19 19h-2" }),
|
|
829
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 21V11m-4 4 4-4 4 4" })
|
|
830
|
+
] }),
|
|
831
|
+
server: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
832
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "4", width: "18", height: "7", rx: "2" }),
|
|
833
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "13", width: "18", height: "7", rx: "2" }),
|
|
834
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 7.5h.1M7 16.5h.1M11 7.5h6M11 16.5h6" })
|
|
835
|
+
] }),
|
|
836
|
+
desktop: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
837
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "18", height: "14", rx: "2" }),
|
|
838
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 21h8M12 17v4" })
|
|
839
|
+
] }),
|
|
840
|
+
laptop: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
841
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 5h14v11H5V5Z" }),
|
|
842
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m3 19 2-3h14l2 3H3Z" })
|
|
843
|
+
] }),
|
|
844
|
+
mobile: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
845
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "7", y: "2", width: "10", height: "20", rx: "2.5" }),
|
|
846
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 5h4M12 19v.1" })
|
|
847
|
+
] }),
|
|
848
|
+
tablet: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
849
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2.5" }),
|
|
850
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 5h4M12 19v.1" })
|
|
851
|
+
] }),
|
|
852
|
+
printer: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
853
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 9V3h10v6M6 18H4V9h16v9h-2" }),
|
|
854
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 14h10v7H7v-7ZM17 11h.1" })
|
|
855
|
+
] }),
|
|
856
|
+
camera: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
857
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 7h4l2-3h6l2 3h4v13H3V7Z" }),
|
|
858
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "13", r: "4" })
|
|
859
|
+
] }),
|
|
860
|
+
video: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
861
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "5", width: "13", height: "14", rx: "2" }),
|
|
862
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m16 10 5-3v10l-5-3v-4Z" })
|
|
863
|
+
] }),
|
|
864
|
+
microphone: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
865
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "9", y: "3", width: "6", height: "12", rx: "3" }),
|
|
866
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 11a7 7 0 0 0 14 0M12 18v3M8 21h8" })
|
|
867
|
+
] }),
|
|
868
|
+
"volume-up": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
869
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 10h4l5-4v12l-5-4H4v-4Z" }),
|
|
870
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11" })
|
|
871
|
+
] }),
|
|
872
|
+
"volume-off": /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 10h4l5-4v12l-5-4H4v-4ZM17 9l5 6m0-6-5 6" }) }),
|
|
873
|
+
"speaker-wave": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
874
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 10h3.5l4.7-3.6v11.2L7.5 14H4v-4Z", fill: "currentColor", stroke: "none" }),
|
|
875
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M15.2 9.2a4 4 0 0 1 0 5.6" })
|
|
876
|
+
] }),
|
|
877
|
+
"speaker-muted": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
878
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 10h3.5l4.7-3.6v11.2L7.5 14H4v-4Z", fill: "currentColor", stroke: "none" }),
|
|
879
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m15.5 9.5 5 5m0-5-5 5" })
|
|
880
|
+
] }),
|
|
881
|
+
wifi: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 9a14 14 0 0 1 18 0M6 13a9 9 0 0 1 12 0M9.5 17a4 4 0 0 1 5 0M12 21v.1" }) }),
|
|
882
|
+
power: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
883
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 3v9" }),
|
|
884
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 5.5a8 8 0 1 0 10 0" })
|
|
885
|
+
] }),
|
|
886
|
+
key: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
887
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "8", cy: "15", r: "4" }),
|
|
888
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m11 12 8-8m-3 3 3 3m-6 0 3 3" })
|
|
889
|
+
] }),
|
|
890
|
+
shield: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 3 4 6v6c0 5 3 8 8 10 5-2 8-5 8-10V6l-8-3Z" }),
|
|
891
|
+
"shield-check": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
892
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 3 4 6v6c0 5 3 8 8 10 5-2 8-5 8-10V6l-8-3Z" }),
|
|
893
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8 12 2.5 2.5L16 9" })
|
|
894
|
+
] }),
|
|
895
|
+
bug: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 9h8v7a4 4 0 0 1-8 0V9ZM9 9a3 3 0 0 1 6 0M5 11h3M16 11h3M5 16h3M16 16h3M7 5l2 2M17 5l-2 2" }) }),
|
|
896
|
+
bulb: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
897
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 15a7 7 0 1 1 8 0c-1.2.8-1.5 1.8-1.5 3h-5c0-1.2-.3-2.2-1.5-3Z" }),
|
|
898
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9.5 21h5" })
|
|
899
|
+
] }),
|
|
900
|
+
rocket: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
901
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 16c-2-1-4-1-5 0 0-3 1-5 4-6M14 6c3-3 6-3 7-3 0 1 0 4-3 7l-6 6-4-4 6-6Z" }),
|
|
902
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 14c0 3-2 6-5 7 0-2 0-4-1-5M5 19l-2 2" })
|
|
903
|
+
] }),
|
|
904
|
+
target: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
905
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
906
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "5" }),
|
|
907
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "1" })
|
|
908
|
+
] }),
|
|
909
|
+
trophy: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
910
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 4h8v5a4 4 0 0 1-8 0V4ZM9 20h6M12 13v7" }),
|
|
911
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 6H4v2a4 4 0 0 0 5 4M16 6h4v2a4 4 0 0 1-5 4" })
|
|
912
|
+
] }),
|
|
913
|
+
"shopping-cart": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
914
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 4h2l2 11h10l3-8H6" }),
|
|
915
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "9", cy: "20", r: "1" }),
|
|
916
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "17", cy: "20", r: "1" })
|
|
917
|
+
] }),
|
|
918
|
+
"shopping-bag": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
919
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 8h14l1 13H4L5 8Z" }),
|
|
920
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 9V6a3 3 0 0 1 6 0v3" })
|
|
921
|
+
] }),
|
|
922
|
+
shop: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
923
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 10v11h16V10M3 4h18l-2 6H5L3 4Z" }),
|
|
924
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 21v-6h6v6" })
|
|
925
|
+
] }),
|
|
926
|
+
wallet: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
927
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "5", width: "18", height: "15", rx: "2.5" }),
|
|
928
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 9h18M15 13h6v4h-6a2 2 0 0 1 0-4Z" })
|
|
929
|
+
] }),
|
|
930
|
+
bank: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m3 9 9-6 9 6M5 10h14M6 10v8M10 10v8M14 10v8M18 10v8M3 21h18M4 18h16" }) }),
|
|
931
|
+
calculator: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
932
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2.5" }),
|
|
933
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 5h8v4H8V5ZM8 13h.1M12 13h.1M16 13h.1M8 17h.1M12 17h.1M16 17h.1" })
|
|
934
|
+
] }),
|
|
935
|
+
tag: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
936
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 12V4h8l10 10-7 7L3 12Z" }),
|
|
937
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "7.5", cy: "8.5", r: "1" })
|
|
938
|
+
] }),
|
|
939
|
+
tags: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
940
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 12V4h7l8 8-6 6-9-6Z" }),
|
|
941
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "10", cy: "8", r: "1" }),
|
|
942
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m3 8 1 9 7 4 2-2" })
|
|
943
|
+
] }),
|
|
944
|
+
message: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 4h16v13H9l-5 4V4Z" }),
|
|
945
|
+
comments: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
946
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 4h13v10H8l-5 4V4Z" }),
|
|
947
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M10 17h6l5 4V8h-2" })
|
|
948
|
+
] }),
|
|
949
|
+
send: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m3 11 18-8-8 18-2-8-8-2Zm8 2 10-10" }),
|
|
950
|
+
share: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
951
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "18", cy: "5", r: "3" }),
|
|
952
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "6", cy: "12", r: "3" }),
|
|
953
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "18", cy: "19", r: "3" }),
|
|
954
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8.5 10.5 7-4M8.5 13.5l7 4" })
|
|
955
|
+
] }),
|
|
956
|
+
paperclip: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8 12 7-7a4 4 0 0 1 6 6l-9 9a6 6 0 0 1-9-9l8-8" }),
|
|
957
|
+
location: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
958
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 22s7-6.2 7-13a7 7 0 1 0-14 0c0 6.8 7 13 7 13Z" }),
|
|
959
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "9", r: "2.5" })
|
|
960
|
+
] }),
|
|
961
|
+
compass: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
962
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
963
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m15.5 8.5-2 5-5 2 2-5 5-2Z" })
|
|
964
|
+
] }),
|
|
965
|
+
car: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
966
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 15V9l2-5h12l2 5v6M3 10h18M6 15h12" }),
|
|
967
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "7", cy: "18", r: "2" }),
|
|
968
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "17", cy: "18", r: "2" })
|
|
969
|
+
] }),
|
|
970
|
+
truck: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
971
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 5h11v12H3V5ZM14 9h4l3 4v4h-7V9Z" }),
|
|
972
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "7", cy: "19", r: "2" }),
|
|
973
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "18", cy: "19", r: "2" })
|
|
974
|
+
] }),
|
|
975
|
+
gift: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
976
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "9", width: "18", height: "12", rx: "2" }),
|
|
977
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 9v12M3 13h18M12 9H8a3 3 0 1 1 4-3v3Zm0 0h4a3 3 0 1 0-4-3v3Z" })
|
|
978
|
+
] }),
|
|
979
|
+
coffee: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
980
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 8h13v6a6 6 0 0 1-6 6H10a6 6 0 0 1-6-6V8ZM17 10h2a3 3 0 0 1 0 6h-3" }),
|
|
981
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 4v1M12 3v2" })
|
|
982
|
+
] }),
|
|
983
|
+
experiment: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
984
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 3h6M10 3v6l-6 10a2 2 0 0 0 2 3h12a2 2 0 0 0 2-3L14 9V3" }),
|
|
985
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 16h10" })
|
|
986
|
+
] }),
|
|
987
|
+
tool: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 6a5 5 0 0 0-6-3l3 3-3 3-3-3a5 5 0 0 0 6 6l7 7a2 2 0 0 0 3-3l-7-7Z" }) }),
|
|
988
|
+
appstore: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
989
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "7", height: "7", rx: "2" }),
|
|
990
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "14", y: "3", width: "7", height: "7", rx: "2" }),
|
|
991
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "14", width: "7", height: "7", rx: "2" }),
|
|
992
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "14", y: "14", width: "7", height: "7", rx: "2" })
|
|
993
|
+
] }),
|
|
994
|
+
puzzle: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 3h4.2a2.8 2.8 0 1 0 5.6 0H21v6h-2.2a2.8 2.8 0 1 0 0 5.6H21V21h-6.4v-2.2a2.8 2.8 0 1 0-5.6 0V21H3v-6.4h2.2a2.8 2.8 0 1 0 0-5.6H3V3h6Z" }) }),
|
|
995
|
+
partition: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
996
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 5v5M6 14v-2h12v2M6 18v3M12 18v3M18 18v3" }),
|
|
997
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "3", r: "2" }),
|
|
998
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "6", cy: "16", r: "2" }),
|
|
999
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "16", r: "2" }),
|
|
1000
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "18", cy: "16", r: "2" })
|
|
1001
|
+
] }),
|
|
1002
|
+
branches: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1003
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "6", cy: "5", r: "2" }),
|
|
1004
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "18", cy: "7", r: "2" }),
|
|
1005
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "6", cy: "19", r: "2" }),
|
|
1006
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6 7v10M8 10c6 0 4-3 8-3M8 14c6 0 4 3 8 3" })
|
|
1007
|
+
] }),
|
|
1008
|
+
scan: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 3H3v5M16 3h5v5M8 21H3v-5M16 21h5v-5M7 12h10" }),
|
|
1009
|
+
"qr-code": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1010
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "3", width: "7", height: "7", rx: "1" }),
|
|
1011
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "14", y: "3", width: "7", height: "7", rx: "1" }),
|
|
1012
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "3", y: "14", width: "7", height: "7", rx: "1" }),
|
|
1013
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 14h3v3h-3v-3ZM18 18h3v3h-3v-3ZM14 20h1M20 14h1" })
|
|
1014
|
+
] }),
|
|
1015
|
+
barcode: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 5v14M7 5v14M11 5v14M14 5v14M16 5v14M20 5v14" }),
|
|
1016
|
+
"user-plus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1017
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "10", cy: "8", r: "4" }),
|
|
1018
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 21c.7-4.3 3-6.5 7-6.5 2 0 3.6.6 4.7 1.7M19 14v7M15.5 17.5h7" })
|
|
1019
|
+
] }),
|
|
1020
|
+
"user-minus": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1021
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "10", cy: "8", r: "4" }),
|
|
1022
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 21c.7-4.3 3-6.5 7-6.5 2 0 3.6.6 4.7 1.7M15.5 17.5h7" })
|
|
1023
|
+
] }),
|
|
1024
|
+
smile: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1025
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1026
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 10h.1M16 10h.1M8 15c1 1.4 2.3 2 4 2s3-.6 4-2" })
|
|
1027
|
+
] }),
|
|
1028
|
+
meh: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1029
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1030
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 10h.1M16 10h.1M8 16h8" })
|
|
1031
|
+
] }),
|
|
1032
|
+
frown: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1033
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1034
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 10h.1M16 10h.1M8 17c1-1.4 2.3-2 4-2s3 .6 4 2" })
|
|
1035
|
+
] }),
|
|
1036
|
+
"game-cultivator": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1037
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7.2 7.5h9.6M9 5.2 12 2l3 3.2" }),
|
|
1038
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "8.8", r: "3.6" }),
|
|
1039
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7.5 21c.2-4.9 1.8-7.3 4.5-7.3s4.3 2.4 4.5 7.3M9.4 15.2 7 18m7.6-2.8L17 18M10 21l2-4 2 4" })
|
|
1040
|
+
] }),
|
|
1041
|
+
"game-swordsman": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1042
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9.2 5.2h5.6M12 2.5v2.7" }),
|
|
1043
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "8.8", r: "3.4" }),
|
|
1044
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7.2 21c.3-5 1.9-7.4 4.8-7.4s4.5 2.4 4.8 7.4M9.2 14.8 7 18.2m7.8-3.4 2.2 3.4M9.5 21l2.5-4 2.5 4" }),
|
|
1045
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m17.7 5.1 2.2-1-.9 2.3-5.2 5.2M16.2 7.8l1.8 1.8" })
|
|
1046
|
+
] }),
|
|
1047
|
+
"game-spirit-wolf": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1048
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m5.2 8.2.7-4 3.3 2.2A9 9 0 0 1 12 6c1 0 1.9.1 2.8.4l3.3-2.2.7 4A7.7 7.7 0 0 1 20 13c0 4.3-3.5 7.7-8 7.7S4 17.3 4 13c0-1.8.4-3.4 1.2-4.8Z" }),
|
|
1049
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8.3 12h.1m7.2 0h.1M9 16c1.8 1.3 4.2 1.3 6 0m-3-1.5v1M7 18l-2.2 2M17 18l2.2 2" })
|
|
1050
|
+
] }),
|
|
1051
|
+
"game-gem": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1052
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m4 8 3-4h10l3 4-8 13L4 8Z" }),
|
|
1053
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 8h16M8 4l-2 4 6 13 6-13-2-4M6 8h12" })
|
|
1054
|
+
] }),
|
|
1055
|
+
"game-ingot": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1056
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 9.5c2.2 1 4.1 1.5 5.8 1.6L12 6l2.2 5.1c1.7-.1 3.6-.6 5.8-1.6-.3 5.1-2.9 8.4-8 10-5.1-1.6-7.7-4.9-8-10Z" }),
|
|
1057
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4.6 10.1 3 6.5c2.3 1.2 4.2 1.6 5.8 1.2M19.4 10.1 21 6.5c-2.3 1.2-4.2 1.6-5.8 1.2M7 16.3c3.3 1 6.7 1 10 0" })
|
|
1058
|
+
] }),
|
|
1059
|
+
"game-sword": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1060
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m14.5 4.5 5-1-1 5L9 18l-3 1 1-3 9.5-9.5M5 19l-1 1" }),
|
|
1061
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m12.5 7.5 4 4M7.5 14.5l2 2" })
|
|
1062
|
+
] }),
|
|
1063
|
+
"game-robe": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1064
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8.5 4 3.5 2 3.5-2 4 4-2.5 3-1.2-1V21H8.2V10L7 11 4.5 8l4-4Z" }),
|
|
1065
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 4.5 12 9l3-4.5M12 9v12" })
|
|
1066
|
+
] }),
|
|
1067
|
+
"game-pants": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1068
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 3h10l1 18h-5l-1-10-1 10H6L7 3Z" }),
|
|
1069
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 7h10M12 3v8" })
|
|
1070
|
+
] }),
|
|
1071
|
+
"game-pendant": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1072
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 4c1.7 4.4 4 6.6 7 6.6S17.3 8.4 19 4" }),
|
|
1073
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 10.6c-2.7 1.8-4 3.8-4 6a4 4 0 0 0 8 0c0-2.2-1.3-4.2-4-6Z" }),
|
|
1074
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "16.5", r: "1.5" })
|
|
1075
|
+
] }),
|
|
1076
|
+
"game-necklace": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1077
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 4c.7 6.3 3 9.5 7 9.5S18.3 10.3 19 4" }),
|
|
1078
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m12 13.5 3 2.4-1.2 4.1h-3.6L9 15.9l3-2.4Z" }),
|
|
1079
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 7h.1m10 0h.1M9 10h.1m6 0h.1" })
|
|
1080
|
+
] }),
|
|
1081
|
+
"game-pill": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1082
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6.2 17.8a5.7 5.7 0 0 1 0-8.1l3.5-3.5a5.7 5.7 0 1 1 8.1 8.1l-3.5 3.5a5.7 5.7 0 0 1-8.1 0Z" }),
|
|
1083
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m8 8 8 8" }),
|
|
1084
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M6.3 12.2c1.3.2 2.5.7 3.5 1.7s1.6 2.2 1.8 3.5" })
|
|
1085
|
+
] }),
|
|
1086
|
+
"game-potion": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1087
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M9 3h6M10 3v5l-5 7.5A3.5 3.5 0 0 0 8 21h8a3.5 3.5 0 0 0 3-5.5L14 8V3" }),
|
|
1088
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 15h10M9.5 12h5" })
|
|
1089
|
+
] }),
|
|
1090
|
+
"game-elixir-jar": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1091
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 3h8l-1 4c2.6 1.2 4 3.5 4 6.8V21H5v-7.2C5 10.5 6.4 8.2 9 7L8 3Z" }),
|
|
1092
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8.5 7h7M5 14h14M9 17h6" })
|
|
1093
|
+
] }),
|
|
1094
|
+
"game-flame": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1095
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M13.8 2.5c.6 3.6-2.1 4.8-2.1 7.2 0 1.1.7 1.9 1.7 1.9 1.8 0 2.4-2.1 2-4.1 2.6 2 4.1 4.6 4.1 7.4A7.5 7.5 0 0 1 4.5 15c0-3.5 1.8-6.5 5.2-9-.2 2.3.8 3.4 1.8 3.7-.4-2.6.3-5.1 2.3-7.2Z" }),
|
|
1096
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 21c-2 0-3.3-1.3-3.3-3.2 0-1.5.9-2.8 2.6-4.2 0 1.7.8 2.5 1.7 2.5 1 0 1.7-.9 1.5-2.3 1.2 1.2 1.8 2.5 1.8 4A4 4 0 0 1 12 21Z" })
|
|
1097
|
+
] }),
|
|
1098
|
+
"game-soul-elixir": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1099
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "4.2" }),
|
|
1100
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.2 2.2m9 9 2.2 2.2m0-13.4-2.2 2.2m-9 9-2.2 2.2" }),
|
|
1101
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m10 12 1.4 1.4L14.5 10" })
|
|
1102
|
+
] }),
|
|
1103
|
+
"game-herb": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1104
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 21V9" }),
|
|
1105
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 13c-5.5.1-8-2.6-8-7.5 5-.2 7.8 2.1 8 7.5Zm0 4c5.5.1 8-2.6 8-7.5-5-.2-7.8 2.1-8 7.5Z" })
|
|
1106
|
+
] }),
|
|
1107
|
+
"game-meditate": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1108
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "5.5", r: "2.5" }),
|
|
1109
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8.5 11c1-1.5 2.2-2.2 3.5-2.2s2.5.7 3.5 2.2l2.8 4M5.7 15l2.8-4M4 19c2.5-2.2 5.2-2.5 8-1 2.8-1.5 5.5-1.2 8 1M7 21h10" }),
|
|
1110
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m9.5 14.5 2.5 3.4 2.5-3.4" })
|
|
1111
|
+
] }),
|
|
1112
|
+
"game-backpack": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1113
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 8V5.5a4 4 0 0 1 8 0V8M6 8h12l2 13H4L6 8Z" }),
|
|
1114
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8.5 13h7v5h-7v-5ZM9 5.5h6" })
|
|
1115
|
+
] }),
|
|
1116
|
+
"game-qi": /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1117
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1118
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 8.5c2.5-2.8 7-2.2 8.7.2 1.7 2.4.9 5.6-1.6 6.8-2.4 1.2-5.5-.1-5.8-2.5-.2-1.8 1.4-3.1 3.2-2.8 1.8.3 2.6 2.2 1.7 3.5" })
|
|
1119
|
+
] })
|
|
1120
|
+
};
|
|
1121
|
+
|
|
1122
|
+
// src/components/iconBounds.ts
|
|
1123
|
+
var outlineIconBounds = {
|
|
1124
|
+
"activity": [3, 6, 18, 13],
|
|
1125
|
+
"align-center": [4, 6, 16, 12],
|
|
1126
|
+
"align-justify": [4, 6, 16, 12],
|
|
1127
|
+
"align-left": [4, 6, 16, 12],
|
|
1128
|
+
"align-right": [4, 6, 16, 12],
|
|
1129
|
+
"appstore": [3, 3, 18, 18],
|
|
1130
|
+
"area-chart": [3, 5, 18, 15],
|
|
1131
|
+
"arrow-down": [5, 3, 14, 18],
|
|
1132
|
+
"arrow-left": [3, 5, 18, 14],
|
|
1133
|
+
"arrow-right": [3, 5, 18, 14],
|
|
1134
|
+
"arrow-up": [5, 3, 14, 18],
|
|
1135
|
+
"bank": [3, 3, 18, 18],
|
|
1136
|
+
"bar-chart": [3, 4, 18, 17],
|
|
1137
|
+
"barcode": [4, 5, 16, 14],
|
|
1138
|
+
"bell": [3, 3, 18, 18],
|
|
1139
|
+
"bold": [7, 4, 11, 16],
|
|
1140
|
+
"book": [4, 3, 16, 19],
|
|
1141
|
+
"branches": [4, 3, 16, 18],
|
|
1142
|
+
"bug": [5, 5, 14, 15],
|
|
1143
|
+
"bulb": [5.000001, 2.255438, 14.000001, 18.744562],
|
|
1144
|
+
"calculator": [5, 2, 14, 20],
|
|
1145
|
+
"calendar": [3, 3, 18, 18],
|
|
1146
|
+
"camera": [3, 4, 18, 16],
|
|
1147
|
+
"car": [3, 4, 18, 16],
|
|
1148
|
+
"check": [4, 6.5, 16, 11],
|
|
1149
|
+
"chevron-down": [5, 8.5, 14, 7],
|
|
1150
|
+
"chevron-left": [8.5, 5, 7, 14],
|
|
1151
|
+
"chevron-right": [8.5, 5, 7, 14],
|
|
1152
|
+
"chevron-up": [5, 8.5, 14, 7],
|
|
1153
|
+
"circle-check": [3, 3, 18, 18],
|
|
1154
|
+
"circle-close": [3, 3, 18, 18],
|
|
1155
|
+
"circle-minus": [3, 3, 18, 18],
|
|
1156
|
+
"circle-plus": [3, 3, 18, 18],
|
|
1157
|
+
"clipboard": [5, 3, 14, 18],
|
|
1158
|
+
"clipboard-check": [5, 3, 14, 18],
|
|
1159
|
+
"clock": [3, 3, 18, 18],
|
|
1160
|
+
"close": [5, 5, 14, 14],
|
|
1161
|
+
"cloud": [1.267807, 5.290112, 20.99, 13.79396],
|
|
1162
|
+
"cloud-download": [1.100703, 5.621803, 21.657103, 15.378197],
|
|
1163
|
+
"cloud-upload": [1.100703, 5.621803, 21.657103, 15.378197],
|
|
1164
|
+
"code": [3, 6, 18, 12],
|
|
1165
|
+
"coffee": [4, 3, 18, 17],
|
|
1166
|
+
"columns": [3, 4, 18, 16],
|
|
1167
|
+
"comments": [3, 4, 18, 17],
|
|
1168
|
+
"compass": [3, 3, 18, 18],
|
|
1169
|
+
"component": [4, 4, 16, 16],
|
|
1170
|
+
"copy": [4, 4, 16, 16],
|
|
1171
|
+
"corner-up-left": [4, 5, 16, 14],
|
|
1172
|
+
"corner-up-right": [4, 5, 16, 14],
|
|
1173
|
+
"database": [4, 2, 16, 20],
|
|
1174
|
+
"desktop": [3, 3, 18, 18],
|
|
1175
|
+
"double-left": [5, 5, 14, 14],
|
|
1176
|
+
"double-right": [5, 5, 14, 14],
|
|
1177
|
+
"download": [4, 3, 16, 17],
|
|
1178
|
+
"edit": [4, 4.171572, 16, 15.828428],
|
|
1179
|
+
"eraser": [4, 5, 17, 15],
|
|
1180
|
+
"expand": [4, 4, 16, 16],
|
|
1181
|
+
"experiment": [3.720577, 3, 16.558847, 19.019615],
|
|
1182
|
+
"external-link": [3, 4, 17, 17],
|
|
1183
|
+
"eye": [2.5, 6, 19, 12],
|
|
1184
|
+
"eye-off": [2.5, 3, 19, 18],
|
|
1185
|
+
"fast-backward": [4, 6, 16, 12],
|
|
1186
|
+
"fast-forward": [4, 6, 16, 12],
|
|
1187
|
+
"file": [6, 3, 12, 18],
|
|
1188
|
+
"file-check": [6, 3, 12, 18],
|
|
1189
|
+
"file-plus": [6, 3, 12, 18],
|
|
1190
|
+
"file-spreadsheet": [6, 3, 12, 18],
|
|
1191
|
+
"file-warning": [6, 3, 12, 18],
|
|
1192
|
+
"filter": [3, 5, 18, 16],
|
|
1193
|
+
"flip-horizontal": [3, 3, 18, 18],
|
|
1194
|
+
"flip-vertical": [3, 3, 18, 18],
|
|
1195
|
+
"folder": [3, 6, 18, 13],
|
|
1196
|
+
"folder-plus": [3, 6, 18, 13],
|
|
1197
|
+
"frown": [3, 3, 18, 18],
|
|
1198
|
+
"fullscreen": [4, 4, 16, 16],
|
|
1199
|
+
"fullscreen-exit": [4, 4, 16, 16],
|
|
1200
|
+
"game-backpack": [4, 1.5, 16, 19.5],
|
|
1201
|
+
"game-cultivator": [7, 2, 10, 19],
|
|
1202
|
+
"game-elixir-jar": [5, 3, 14, 18],
|
|
1203
|
+
"game-flame": [4.5, 2.5, 15.000168, 19.950167],
|
|
1204
|
+
"game-gem": [4, 4, 16, 17],
|
|
1205
|
+
"game-herb": [4, 5.488038, 16, 15.511962],
|
|
1206
|
+
"game-ingot": [3, 6, 18, 13.5],
|
|
1207
|
+
"game-meditate": [4, 3, 16, 18],
|
|
1208
|
+
"game-necklace": [5, 4, 14, 16],
|
|
1209
|
+
"game-pants": [6, 3, 12, 18],
|
|
1210
|
+
"game-pendant": [5, 4, 14, 16.6],
|
|
1211
|
+
"game-pill": [4.510922, 4.522434, 14.966641, 14.966642],
|
|
1212
|
+
"game-potion": [4.370614, 3, 15.258771, 18.002394],
|
|
1213
|
+
"game-qi": [3, 3, 18, 18],
|
|
1214
|
+
"game-robe": [4.5, 4, 15, 17],
|
|
1215
|
+
"game-soul-elixir": [2.5, 2.5, 19, 19],
|
|
1216
|
+
"game-spirit-wolf": [4, 4.2, 16.025938, 16.5],
|
|
1217
|
+
"game-sword": [4, 3.5, 15.5, 16.5],
|
|
1218
|
+
"game-swordsman": [7, 2.5, 12.900002, 18.5],
|
|
1219
|
+
"gift": [3, 3.17335, 18, 17.826651],
|
|
1220
|
+
"github": [3.699682, 3.977686, 16.600634, 18.022314],
|
|
1221
|
+
"heart": [1.584567, 4.178144, 20.83729, 16.821857],
|
|
1222
|
+
"help-circle": [3, 3, 18, 18],
|
|
1223
|
+
"highlighter": [3, 4, 16, 16],
|
|
1224
|
+
"home": [3.5, 4, 17, 16],
|
|
1225
|
+
"image": [3, 4, 18, 16],
|
|
1226
|
+
"info": [3, 3, 18, 18],
|
|
1227
|
+
"italic": [6, 4, 12, 16],
|
|
1228
|
+
"key": [4, 4, 15, 15],
|
|
1229
|
+
"laptop": [3, 5, 18, 14],
|
|
1230
|
+
"line-chart": [3, 5, 18, 15],
|
|
1231
|
+
"link": [-0.034671, 4.964466, 24.070208, 14.070206],
|
|
1232
|
+
"list-ordered": [4, 5, 17, 15],
|
|
1233
|
+
"list-unordered": [4, 5.5, 17, 13],
|
|
1234
|
+
"loader": [3, 3, 18, 18],
|
|
1235
|
+
"location": [5, 2, 14, 20],
|
|
1236
|
+
"lock": [4, 3, 16, 18],
|
|
1237
|
+
"login": [5, 5, 12, 14],
|
|
1238
|
+
"logout": [7, 5, 12, 14],
|
|
1239
|
+
"mail": [3, 5, 18, 14],
|
|
1240
|
+
"meh": [3, 3, 18, 18],
|
|
1241
|
+
"menu": [4, 6, 16, 12],
|
|
1242
|
+
"menu-fold": [4, 6, 16, 12],
|
|
1243
|
+
"menu-unfold": [4, 6, 16, 12],
|
|
1244
|
+
"message": [4, 4, 16, 17],
|
|
1245
|
+
"microphone": [5, 3, 14, 18],
|
|
1246
|
+
"minus": [4, 12, 16, 0],
|
|
1247
|
+
"mobile": [7, 2, 10, 20],
|
|
1248
|
+
"moon": [3.717114, 4, 16.282887, 16.282888],
|
|
1249
|
+
"more-horizontal": [5, 12, 14.1, 0],
|
|
1250
|
+
"more-vertical": [12, 5, 0, 14.1],
|
|
1251
|
+
"move": [3, 3, 18, 18],
|
|
1252
|
+
"notepad-file": [3.375, 1.875, 17.25, 20.25],
|
|
1253
|
+
"notepad-folder": [1.875, 2.25, 20.2875, 19.5],
|
|
1254
|
+
"notepad-virtual-folder": [0.75, 0.75, 22.5, 22.5],
|
|
1255
|
+
"paperclip": [1.136039, 3, 21.106602, 18.86396],
|
|
1256
|
+
"partition": [4, 1, 16, 20],
|
|
1257
|
+
"pause": [3, 3, 18, 18],
|
|
1258
|
+
"phone": [4.161916, 3.5, 16.338085, 16.338085],
|
|
1259
|
+
"pie-chart": [2, 3, 18.5, 18],
|
|
1260
|
+
"pin": [6.5, 3, 11, 18],
|
|
1261
|
+
"pin-off": [3, 3, 18, 18],
|
|
1262
|
+
"play": [3, 3, 18, 18],
|
|
1263
|
+
"plus": [4, 4, 16, 16],
|
|
1264
|
+
"power": [4, 3, 16.000002, 16.744997],
|
|
1265
|
+
"printer": [4, 3, 16, 18],
|
|
1266
|
+
"puzzle": [3, 3, 18, 18],
|
|
1267
|
+
"qr-code": [3, 3, 18, 18],
|
|
1268
|
+
"question": [3, 3, 18, 18],
|
|
1269
|
+
"redo": [4, 7, 17, 12],
|
|
1270
|
+
"refresh": [3.999998, 3.999709, 16.000002, 16.000002],
|
|
1271
|
+
"rocket": [3, 3, 18, 18],
|
|
1272
|
+
"rotate-left": [4, 3, 15.416197, 17],
|
|
1273
|
+
"rotate-right": [4.583802, 3, 15.416199, 17],
|
|
1274
|
+
"rows": [3, 4, 18, 16],
|
|
1275
|
+
"save": [4, 3, 16, 18],
|
|
1276
|
+
"scan": [3, 3, 18, 18],
|
|
1277
|
+
"scissors": [3, 4, 17, 16],
|
|
1278
|
+
"search": [4, 4, 17, 17],
|
|
1279
|
+
"send": [3, 3, 18, 18],
|
|
1280
|
+
"server": [3, 4, 18, 16],
|
|
1281
|
+
// 六齿直线轮廓的原始边界,不含描边。
|
|
1282
|
+
"settings": [4.4825, 4.1215, 15.035, 15.757],
|
|
1283
|
+
"share": [3, 2, 18, 20],
|
|
1284
|
+
"shield": [4, 3, 16, 19],
|
|
1285
|
+
"shield-check": [4, 3, 16, 19],
|
|
1286
|
+
"shop": [3, 4, 18, 17],
|
|
1287
|
+
"shopping-bag": [4, 3, 16, 18],
|
|
1288
|
+
"shopping-cart": [3, 4, 17, 17],
|
|
1289
|
+
"shrink": [5, 4, 14, 16],
|
|
1290
|
+
"smile": [3, 3, 18, 18],
|
|
1291
|
+
"sort-ascending": [3.5, 5, 17.5, 14],
|
|
1292
|
+
"sort-descending": [3.5, 5, 17.5, 14],
|
|
1293
|
+
"speaker-muted": [4, 6.4, 16.5, 11.200001],
|
|
1294
|
+
"speaker-wave": [4, 6.4, 12.343426, 11.200001],
|
|
1295
|
+
"square-check": [3, 3, 18, 18],
|
|
1296
|
+
"square-close": [3, 3, 18, 18],
|
|
1297
|
+
"square-minus": [3, 3, 18, 18],
|
|
1298
|
+
"square-plus": [3, 3, 18, 18],
|
|
1299
|
+
"star": [3, 3, 18, 17.200001],
|
|
1300
|
+
"step-backward": [6, 5, 12, 14],
|
|
1301
|
+
"step-forward": [6, 5, 12, 14],
|
|
1302
|
+
"stop": [3, 3, 18, 18],
|
|
1303
|
+
"strikethrough": [5, 4, 14, 16],
|
|
1304
|
+
"sun": [2.5, 2.5, 19, 19],
|
|
1305
|
+
"swap-horizontal": [4, 4, 16, 16],
|
|
1306
|
+
"swap-vertical": [4, 4, 16, 16],
|
|
1307
|
+
"tab-plus": [3, 4, 18, 16],
|
|
1308
|
+
"table": [3, 4, 18, 16],
|
|
1309
|
+
"tablet": [5, 2, 14, 20],
|
|
1310
|
+
"tag": [3, 4, 18, 17],
|
|
1311
|
+
"tags": [3, 4, 18, 17],
|
|
1312
|
+
"target": [3, 3, 18, 18],
|
|
1313
|
+
"tilde": [3, 9.214088, 18, 4.785912],
|
|
1314
|
+
"token": [2.5, 2.5, 19, 19],
|
|
1315
|
+
"tool": [4.870828, 2.816625, 16.750492, 16.804695],
|
|
1316
|
+
"trash": [4, 3, 16, 18],
|
|
1317
|
+
"trending-down": [4, 7, 16, 9],
|
|
1318
|
+
"trending-up": [4, 8, 16, 9],
|
|
1319
|
+
"trophy": [3.997966, 4, 16.004068, 16],
|
|
1320
|
+
"truck": [3, 5, 18, 16],
|
|
1321
|
+
"underline": [5, 4, 14, 17],
|
|
1322
|
+
"undo": [3, 7, 17, 12],
|
|
1323
|
+
"unlock": [4, 2.935554, 16, 18.064445],
|
|
1324
|
+
"upload": [4, 4, 16, 16],
|
|
1325
|
+
"user": [4.5, 4, 15, 17],
|
|
1326
|
+
"user-minus": [3, 4, 19.5, 17],
|
|
1327
|
+
"user-plus": [3, 4, 19.5, 17],
|
|
1328
|
+
"users": [2.8, 4.5, 18.300001, 15.5],
|
|
1329
|
+
"vertical-align-bottom": [4, 4, 16, 16],
|
|
1330
|
+
"vertical-align-middle": [4, 4, 16, 16],
|
|
1331
|
+
"vertical-align-top": [4, 4, 16, 16],
|
|
1332
|
+
"video": [3, 5, 18, 14],
|
|
1333
|
+
"volume-off": [4, 6, 18, 12],
|
|
1334
|
+
"volume-up": [4, 6, 16.690525, 12],
|
|
1335
|
+
"wallet": [3, 5, 18, 15],
|
|
1336
|
+
"warning": [2.33137, 3.153565, 19.337257, 17.847614],
|
|
1337
|
+
"wifi": [3, 5.723805, 18, 15.376196],
|
|
1338
|
+
"zoom-in": [4, 4, 17, 17],
|
|
1339
|
+
"zoom-out": [4, 4, 17, 17]
|
|
1340
|
+
};
|
|
1341
|
+
var filledIconBounds = {
|
|
1342
|
+
"bell": [3, 2.499593, 18, 19.423376],
|
|
1343
|
+
"book": [3, 1, 18, 22],
|
|
1344
|
+
"calendar": [2.5, 2.5, 19, 19],
|
|
1345
|
+
"circle-check": [2, 2, 20, 20],
|
|
1346
|
+
"circle-close": [2, 2, 20, 20],
|
|
1347
|
+
"circle-minus": [2, 2, 20, 20],
|
|
1348
|
+
"circle-plus": [2, 2, 20, 20],
|
|
1349
|
+
"clock": [2, 2, 20, 20],
|
|
1350
|
+
"component": [3, 3, 18, 18],
|
|
1351
|
+
"file": [5, 2.5, 14, 19.5],
|
|
1352
|
+
"filter": [2, 4, 20, 18],
|
|
1353
|
+
"folder": [2.5, 5, 19, 15],
|
|
1354
|
+
"heart": [1.247845, 3.647845, 21.504313, 17.652155],
|
|
1355
|
+
"home": [2.157447, 2.8, 19.500002, 18.200001],
|
|
1356
|
+
"image": [2.5, 3.5, 19, 17],
|
|
1357
|
+
"info": [2, 2, 20, 20],
|
|
1358
|
+
"lock": [3, 2, 18, 20],
|
|
1359
|
+
"mail": [2.5, 4.5, 19, 15],
|
|
1360
|
+
"pause": [2, 2, 20, 20],
|
|
1361
|
+
"play": [2, 2, 20, 20],
|
|
1362
|
+
"question": [2, 2, 20, 20],
|
|
1363
|
+
"star": [2.4, 2.199999, 19.200001, 18.200001],
|
|
1364
|
+
"token": [1, 1, 22, 22],
|
|
1365
|
+
"trash": [3, 3, 18, 18],
|
|
1366
|
+
"unlock": [3, 1.979363, 18, 20.020638],
|
|
1367
|
+
"user": [3.5, 3, 17, 18],
|
|
1368
|
+
"users": [1.8, 4.2, 19.6, 16.799999],
|
|
1369
|
+
"warning": [1.53137, 2.553565, 20.937256, 19.447613]
|
|
1370
|
+
};
|
|
1371
|
+
|
|
1372
|
+
// src/components/iconGeometry.tsx
|
|
1373
|
+
var import_react4 = require("react");
|
|
1374
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1375
|
+
function compensateStroke(node, scale) {
|
|
1376
|
+
return import_react4.Children.map(node, (child) => {
|
|
1377
|
+
if (!(0, import_react4.isValidElement)(child)) return child;
|
|
1378
|
+
const props = child.props;
|
|
1379
|
+
return (0, import_react4.cloneElement)(child, {
|
|
1380
|
+
...props.strokeWidth === void 0 ? {} : { strokeWidth: Number(props.strokeWidth) / scale },
|
|
1381
|
+
...props.children === void 0 ? {} : { children: compensateStroke(props.children, scale) }
|
|
1382
|
+
});
|
|
1383
|
+
});
|
|
1384
|
+
}
|
|
1385
|
+
function normalizeIconPaths(paths, bounds) {
|
|
1386
|
+
return Object.fromEntries(Object.entries(paths).map(([name, node]) => {
|
|
1387
|
+
const [x, y, width, height] = bounds[name];
|
|
1388
|
+
const scale = 18 / Math.max(width, height);
|
|
1389
|
+
const transform = `translate(${12 - (x + width / 2) * scale} ${12 - (y + height / 2) * scale}) scale(${scale})`;
|
|
1390
|
+
return [name, { scale, node: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("g", { transform, children: compensateStroke(node, scale) }) }];
|
|
1391
|
+
}));
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
// src/components/Icon.tsx
|
|
1395
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
1396
|
+
var coreIconPaths = {
|
|
1397
|
+
search: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1398
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
|
|
1399
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m15.8 15.8 5.2 5.2" })
|
|
1400
|
+
] }),
|
|
1401
|
+
plus: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 4v16M4 12h16" }),
|
|
1402
|
+
// 数字区间用波浪线表达范围,避免箭头暗示跳转方向。
|
|
1403
|
+
tilde: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 14c3-8 6-4 9-2s6 4 9-2" }),
|
|
1404
|
+
minus: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 12h16" }),
|
|
1405
|
+
close: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m5 5 14 14M19 5 5 19" }),
|
|
1406
|
+
check: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m4 12.5 5.2 5L20 6.5" }),
|
|
1407
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1408
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1409
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 11v6M12 7.2v.1" })
|
|
1410
|
+
] }),
|
|
1411
|
+
question: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1412
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1413
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9.8 9a2.4 2.4 0 1 1 3.5 2.2c-.9.5-1.3 1.1-1.3 2.1M12 16.8v.1" })
|
|
1414
|
+
] }),
|
|
1415
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1416
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M10.3 4.1 2.6 18a2 2 0 0 0 1.8 3h15.2a2 2 0 0 0 1.8-3L13.7 4.1a2 2 0 0 0-3.4 0Z" }),
|
|
1417
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 9v4M12 17v.1" })
|
|
1418
|
+
] }),
|
|
1419
|
+
"circle-check": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1420
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1421
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m8 12 2.7 2.7L16.5 9" })
|
|
1422
|
+
] }),
|
|
1423
|
+
"circle-close": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1424
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1425
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m9 9 6 6M15 9l-6 6" })
|
|
1426
|
+
] }),
|
|
1427
|
+
"circle-plus": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1428
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1429
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 8v8M8 12h8" })
|
|
1430
|
+
] }),
|
|
1431
|
+
"circle-minus": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1432
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1433
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 12h8" })
|
|
1434
|
+
] }),
|
|
1435
|
+
"chevron-left": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m15.5 5-7 7 7 7" }),
|
|
1436
|
+
"chevron-right": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m8.5 5 7 7-7 7" }),
|
|
1437
|
+
"chevron-up": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m5 15.5 7-7 7 7" }),
|
|
1438
|
+
"chevron-down": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m5 8.5 7 7 7-7" }),
|
|
1439
|
+
"double-left": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1440
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m12 5-7 7 7 7" }),
|
|
1441
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m19 5-7 7 7 7" })
|
|
1442
|
+
] }),
|
|
1443
|
+
"double-right": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1444
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m5 5 7 7-7 7" }),
|
|
1445
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m12 5 7 7-7 7" })
|
|
1446
|
+
] }),
|
|
1447
|
+
"arrow-left": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1448
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m10 5-7 7 7 7" }),
|
|
1449
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 12h18" })
|
|
1450
|
+
] }),
|
|
1451
|
+
"arrow-right": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1452
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m14 5 7 7-7 7" }),
|
|
1453
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 12h18" })
|
|
1454
|
+
] }),
|
|
1455
|
+
"arrow-up": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1456
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m5 10 7-7 7 7" }),
|
|
1457
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3v18" })
|
|
1458
|
+
] }),
|
|
1459
|
+
"arrow-down": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1460
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m5 14 7 7 7-7" }),
|
|
1461
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3v18" })
|
|
1462
|
+
] }),
|
|
1463
|
+
menu: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 6h16M4 12h16M4 18h16" }),
|
|
1464
|
+
"more-horizontal": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M5 12h.1M12 12h.1M19 12h.1" }),
|
|
1465
|
+
"more-vertical": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 5v.1M12 12v.1M12 19v.1" }),
|
|
1466
|
+
home: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1467
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m3.5 11 8.5-7 8.5 7" }),
|
|
1468
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M5.5 9.5V20h13V9.5M9.5 20v-6h5v6" })
|
|
1469
|
+
] }),
|
|
1470
|
+
user: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1471
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "8", r: "4" }),
|
|
1472
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4.5 21c.7-4.2 3.2-6.5 7.5-6.5s6.8 2.3 7.5 6.5" })
|
|
1473
|
+
] }),
|
|
1474
|
+
users: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1475
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "9", cy: "8", r: "3.5" }),
|
|
1476
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2.8 20c.6-3.8 2.7-5.8 6.2-5.8s5.6 2 6.2 5.8" }),
|
|
1477
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M15 5.2a3.5 3.5 0 0 1 0 6.6M16.2 14.5c2.9.5 4.4 2.3 4.9 5.5" })
|
|
1478
|
+
] }),
|
|
1479
|
+
// 六齿轮廓为小尺寸保留清晰齿间距,主体大小与描边仍遵循统一几何规则。
|
|
1480
|
+
settings: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1481
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "2.8" }),
|
|
1482
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9.9479 6.3618 10.6108 4.1215 13.3892 4.1215 14.0521 6.3618 15.8567 7.4037 18.1284 6.8577 19.5175 9.2638 17.9088 10.9581 17.9088 13.0419 19.5175 14.7362 18.1284 17.1423 15.8567 16.5963 14.0521 17.6382 13.3892 19.8785 10.6108 19.8785 9.9479 17.6382 8.1433 16.5963 5.8716 17.1423 4.4825 14.7362 6.0912 13.0419 6.0912 10.9581 4.4825 9.2638 5.8716 6.8577 8.1433 7.4037Z" })
|
|
1483
|
+
] }),
|
|
1484
|
+
edit: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1485
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 20h4l11-11a2.8 2.8 0 0 0-4-4L4 16v4Z" }),
|
|
1486
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m13.5 6.5 4 4M4 20h16" })
|
|
1487
|
+
] }),
|
|
1488
|
+
copy: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1489
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "8", y: "8", width: "12", height: "12", rx: "2.5" }),
|
|
1490
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2" })
|
|
1491
|
+
] }),
|
|
1492
|
+
trash: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 7h16M9 3h6l1 4H8l1-4ZM6 7l1 14h10l1-14M10 11v6M14 11v6" }) }),
|
|
1493
|
+
scissors: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1494
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "6", cy: "7", r: "3" }),
|
|
1495
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "6", cy: "17", r: "3" }),
|
|
1496
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m8.7 8.3 11.3 6.2M8.7 15.7 20 9.5" })
|
|
1497
|
+
] }),
|
|
1498
|
+
undo: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1499
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m8 7-5 5 5 5" }),
|
|
1500
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 12h10a7 7 0 0 1 7 7" })
|
|
1501
|
+
] }),
|
|
1502
|
+
redo: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1503
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m16 7 5 5-5 5" }),
|
|
1504
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M21 12H11a7 7 0 0 0-7 7" })
|
|
1505
|
+
] }),
|
|
1506
|
+
"zoom-in": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1507
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
|
|
1508
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m15.8 15.8 5.2 5.2M10.8 7.8v6M7.8 10.8h6" })
|
|
1509
|
+
] }),
|
|
1510
|
+
"zoom-out": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1511
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
|
|
1512
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m15.8 15.8 5.2 5.2M7.8 10.8h6" })
|
|
1513
|
+
] }),
|
|
1514
|
+
// 图片变换工具使用独立图标,便于在预览及其他编辑界面复用。
|
|
1515
|
+
"flip-horizontal": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3v18M3 6h5v12H3zM16 6h5v12h-5z" }) }),
|
|
1516
|
+
"flip-vertical": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 12h18M6 3h12v5H6zM6 16h12v5H6z" }) }),
|
|
1517
|
+
"rotate-left": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1518
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 9a8 8 0 1 1 0 6M4 3v6h6" }),
|
|
1519
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "9", y: "9", width: "6", height: "6", rx: "1" })
|
|
1520
|
+
] }),
|
|
1521
|
+
"rotate-right": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1522
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M20 9a8 8 0 1 0 0 6M20 3v6h-6" }),
|
|
1523
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "9", y: "9", width: "6", height: "6", rx: "1" })
|
|
1524
|
+
] }),
|
|
1525
|
+
download: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3v12M7 10l5 5 5-5M4 20h16" }) }),
|
|
1526
|
+
upload: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 16V4M7 9l5-5 5 5M4 20h16" }) }),
|
|
1527
|
+
refresh: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1528
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M20 4v4.686h-4.686" }),
|
|
1529
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M20 8.686 17.657 6.343A8 8 0 1 0 20 12" })
|
|
1530
|
+
] }),
|
|
1531
|
+
loader: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M18.4 5.6l-2.1 2.1M7.7 16.3l-2.1 2.1" }),
|
|
1532
|
+
calendar: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1533
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "5", width: "18", height: "16", rx: "2.5" }),
|
|
1534
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 3v4M16 3v4M3 10h18M7 14h2M11 14h2M15 14h2M7 18h2M11 18h2" })
|
|
1535
|
+
] }),
|
|
1536
|
+
clock: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1537
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1538
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 7v5l3.5 2" })
|
|
1539
|
+
] }),
|
|
1540
|
+
mail: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1541
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2.5" }),
|
|
1542
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m4 7 8 6 8-6" })
|
|
1543
|
+
] }),
|
|
1544
|
+
phone: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8.2 3.5 5.4 4.8c-1 .5-1.5 1.7-1.1 2.8 2.2 5.9 6.2 9.9 12.1 12.1 1.1.4 2.3-.1 2.8-1.1l1.3-2.8-4.2-2-1.4 2.1c-2.8-1.2-5.6-4-6.8-6.8l2.1-1.4-2-4.2Z" }),
|
|
1545
|
+
link: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1546
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m9.5 14.5 5-5" }),
|
|
1547
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M7.5 16.5 6 18a3.5 3.5 0 0 1-5-5l3-3a3.5 3.5 0 0 1 5 0M16.5 7.5 18 6a3.5 3.5 0 0 1 5 5l-3 3a3.5 3.5 0 0 1-5 0" })
|
|
1548
|
+
] }),
|
|
1549
|
+
"external-link": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1550
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M14 4h6v6M20 4 11 13" }),
|
|
1551
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M19 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h6" })
|
|
1552
|
+
] }),
|
|
1553
|
+
eye: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1554
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z" }),
|
|
1555
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "3" })
|
|
1556
|
+
] }),
|
|
1557
|
+
"eye-off": /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m3 3 18 18M10.6 6.1A10 10 0 0 1 12 6c6 0 9.5 6 9.5 6a14.5 14.5 0 0 1-2.2 3M6.4 6.4C3.9 8.2 2.5 12 2.5 12s3.5 6 9.5 6a9.7 9.7 0 0 0 3-.5M9.9 9.9a3 3 0 0 0 4.2 4.2" }) }),
|
|
1558
|
+
lock: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1559
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "4", y: "10", width: "16", height: "11", rx: "2.5" }),
|
|
1560
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 10V7a4 4 0 0 1 8 0v3M12 14v3" })
|
|
1561
|
+
] }),
|
|
1562
|
+
unlock: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1563
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "4", y: "10", width: "16", height: "11", rx: "2.5" }),
|
|
1564
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 10V7a4 4 0 0 1 7.5-2M12 14v3" })
|
|
1565
|
+
] }),
|
|
1566
|
+
bell: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1567
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M18 9a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9Z" }),
|
|
1568
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M10 21h4" })
|
|
1569
|
+
] }),
|
|
1570
|
+
star: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.9L12 3Z" }),
|
|
1571
|
+
heart: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M20.8 5.8a5.5 5.5 0 0 0-7.8 0L12 6.9l-1-1.1a5.5 5.5 0 1 0-7.8 7.8L12 21l8.8-7.4a5.5 5.5 0 0 0 0-7.8Z" }),
|
|
1572
|
+
file: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1573
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
|
|
1574
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M14 3v5h4" })
|
|
1575
|
+
] }),
|
|
1576
|
+
folder: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 6h7l2 2h9v11H3V6Z" }),
|
|
1577
|
+
image: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1578
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2.5" }),
|
|
1579
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "9", cy: "9", r: "2" }),
|
|
1580
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m4 17 4.5-4.5 3.5 3 2.5-2.5 5.5 5" })
|
|
1581
|
+
] }),
|
|
1582
|
+
filter: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 5h18l-7 8v6l-4 2v-8L3 5Z" }),
|
|
1583
|
+
"sort-ascending": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1584
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M7 19V5M3.5 8.5 7 5l3.5 3.5" }),
|
|
1585
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M13 7h8M13 12h6M13 17h4" })
|
|
1586
|
+
] }),
|
|
1587
|
+
"sort-descending": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1588
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M7 5v14M3.5 15.5 7 19l3.5-3.5" }),
|
|
1589
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M13 7h4M13 12h6M13 17h8" })
|
|
1590
|
+
] }),
|
|
1591
|
+
play: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1592
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1593
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m10 8 6 4-6 4V8Z" })
|
|
1594
|
+
] }),
|
|
1595
|
+
pause: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1596
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
1597
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9.5 9v6M14.5 9v6" })
|
|
1598
|
+
] }),
|
|
1599
|
+
book: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1600
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M4 5.5A2.5 2.5 0 0 1 6.5 3H11v17H6.5A2.5 2.5 0 0 0 4 22V5.5Z" }),
|
|
1601
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M20 5.5A2.5 2.5 0 0 0 17.5 3H13v17h4.5A2.5 2.5 0 0 1 20 22V5.5Z" })
|
|
1602
|
+
] }),
|
|
1603
|
+
component: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1604
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "4", y: "4", width: "6", height: "6", rx: "1.5" }),
|
|
1605
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "14", y: "4", width: "6", height: "6", rx: "1.5" }),
|
|
1606
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "4", y: "14", width: "6", height: "6", rx: "1.5" }),
|
|
1607
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "14", y: "14", width: "6", height: "6", rx: "1.5" })
|
|
1608
|
+
] }),
|
|
1609
|
+
token: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1610
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "4" }),
|
|
1611
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M18.7 5.3l-2.1 2.1M7.4 16.6l-2.1 2.1" })
|
|
1612
|
+
] }),
|
|
1613
|
+
sun: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1614
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "3.6" }),
|
|
1615
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M18.7 5.3l-1.4 1.4M6.7 17.3l-1.4 1.4" })
|
|
1616
|
+
] }),
|
|
1617
|
+
moon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M20 15.2A8 8 0 0 1 8.8 4 8.5 8.5 0 1 0 20 15.2Z" }),
|
|
1618
|
+
code: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m9 18-6-6 6-6M15 6l6 6-6 6" }),
|
|
1619
|
+
github: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9 19c-4 1.2-4-2-5-2.5M14 22v-3.1c0-.9.3-1.5.8-1.9 2.7-.3 5.5-1.3 5.5-6A4.7 4.7 0 0 0 19 7.7 4.4 4.4 0 0 0 18.9 4S17.8 3.7 15 5.3a11.7 11.7 0 0 0-6 0C6.2 3.7 5.1 4 5.1 4A4.4 4.4 0 0 0 5 7.7 4.7 4.7 0 0 0 3.7 11c0 4.7 2.8 5.7 5.5 6 .5.4.8 1 .8 1.9V22" })
|
|
1620
|
+
};
|
|
1621
|
+
var iconPaths = { ...coreIconPaths, ...extendedIconPaths };
|
|
1622
|
+
var ICON_NAMES = Object.freeze(Object.keys(iconPaths));
|
|
1623
|
+
var filledIconPaths = {
|
|
1624
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1625
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1626
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 10.5v6M12 7.2v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
1627
|
+
] }),
|
|
1628
|
+
question: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1629
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1630
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M9.6 9a2.5 2.5 0 1 1 3.6 2.3c-.8.5-1.2 1.1-1.2 2.1M12 16.8v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
1631
|
+
] }),
|
|
1632
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1633
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M10.3 3.5 1.8 19a2 2 0 0 0 1.8 3h16.8a2 2 0 0 0 1.8-3L13.7 3.5a2 2 0 0 0-3.4 0Z", fill: "currentColor", stroke: "none" }),
|
|
1634
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 9v5M12 18v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
1635
|
+
] }),
|
|
1636
|
+
"circle-check": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1637
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1638
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m7.5 12 3 3 6-6", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
1639
|
+
] }),
|
|
1640
|
+
"circle-close": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1641
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1642
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m8.8 8.8 6.4 6.4M15.2 8.8l-6.4 6.4", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
1643
|
+
] }),
|
|
1644
|
+
"circle-plus": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1645
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1646
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 7.5v9M7.5 12h9", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
1647
|
+
] }),
|
|
1648
|
+
"circle-minus": /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1649
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1650
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M7.5 12h9", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
1651
|
+
] }),
|
|
1652
|
+
home: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2.6 10.8 12 2.8l9.4 8a1 1 0 0 1-1.3 1.5l-.6-.5V21h-5.2v-6.2H9.7V21H4.5v-9.2l-.6.5a1 1 0 1 1-1.3-1.5Z", fill: "currentColor", stroke: "none" }),
|
|
1653
|
+
user: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1654
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "7.5", r: "4.5", fill: "currentColor", stroke: "none" }),
|
|
1655
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3.5 21c.7-5 3.6-7.5 8.5-7.5s7.8 2.5 8.5 7.5H3.5Z", fill: "currentColor", stroke: "none" })
|
|
1656
|
+
] }),
|
|
1657
|
+
users: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1658
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "8.5", cy: "8", r: "3.8", fill: "currentColor", stroke: "none" }),
|
|
1659
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "17", cy: "8.5", r: "3", fill: "currentColor", stroke: "none", opacity: ".7" }),
|
|
1660
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M1.8 21c.6-4.6 2.8-7 6.7-7s6.1 2.4 6.7 7H1.8ZM14.4 15.2c3.9-.2 6.4 1.7 7 5.8h-4.5a9.9 9.9 0 0 0-2.5-5.8Z", fill: "currentColor", stroke: "none" })
|
|
1661
|
+
] }),
|
|
1662
|
+
trash: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8 3h8l1 3h4v2H3V6h4l1-3Zm-2.5 7h13l-1 11h-11l-1-11Z", fill: "currentColor", stroke: "none" }),
|
|
1663
|
+
bell: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 2.5a2 2 0 0 1 2 1.6c3 .9 5 3.6 5 6.9v4.3l2 3.2H3l2-3.2V11c0-3.3 2-6 5-6.9a2 2 0 0 1 2-1.6ZM9.2 20h5.6a3 3 0 0 1-5.6 0Z", fill: "currentColor", stroke: "none" }),
|
|
1664
|
+
star: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m12 2.2 3 6 6.6 1-4.8 4.6 1.1 6.6-5.9-3.1-5.9 3.1 1.1-6.6-4.8-4.6 6.6-1 3-6Z", fill: "currentColor", stroke: "none" }),
|
|
1665
|
+
heart: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 21.3 3.1 13.7A5.8 5.8 0 0 1 11 5.2l1 1 1-1a5.8 5.8 0 0 1 7.9 8.5L12 21.3Z", fill: "currentColor", stroke: "none" }),
|
|
1666
|
+
mail: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1667
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "2.5", y: "4.5", width: "19", height: "15", rx: "2.5", fill: "currentColor", stroke: "none" }),
|
|
1668
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m4.5 7 7.5 5.8L19.5 7", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.8" })
|
|
1669
|
+
] }),
|
|
1670
|
+
lock: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M7 10V7a5 5 0 0 1 10 0v3h1.5a2.5 2.5 0 0 1 2.5 2.5v7a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-7A2.5 2.5 0 0 1 5.5 10H7Zm2.5 0h5V7a2.5 2.5 0 0 0-5 0v3Z", fill: "currentColor", stroke: "none" }),
|
|
1671
|
+
unlock: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M7 10V7a5 5 0 0 1 9.5-2.2l-2.2 1.1A2.5 2.5 0 0 0 9.5 7v3h9A2.5 2.5 0 0 1 21 12.5v7a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-7A2.5 2.5 0 0 1 5.5 10H7Z", fill: "currentColor", stroke: "none" }),
|
|
1672
|
+
calendar: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1673
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "2.5", y: "4.5", width: "19", height: "17", rx: "2.5", fill: "currentColor", stroke: "none" }),
|
|
1674
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 9.5h18M8 2.5v4M16 2.5v4", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.8" })
|
|
1675
|
+
] }),
|
|
1676
|
+
clock: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1677
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1678
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 6.5V12l4 2.3", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
1679
|
+
] }),
|
|
1680
|
+
file: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M5 2.5h10l4 4V22H5V2.5Zm9 1.8V8h3.7L14 4.3Z", fill: "currentColor", stroke: "none" }),
|
|
1681
|
+
folder: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2.5 5h7l2.2 2.5h9.8V20H2.5V5Z", fill: "currentColor", stroke: "none" }),
|
|
1682
|
+
image: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1683
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "2.5", y: "3.5", width: "19", height: "17", rx: "2.5", fill: "currentColor", stroke: "none" }),
|
|
1684
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m4.5 18 4.3-4.6 3.4 3 2.5-2.6 4.8 4.2", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.7" }),
|
|
1685
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "8", cy: "8.5", r: "1.7", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
|
|
1686
|
+
] }),
|
|
1687
|
+
filter: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M2 4h20l-7.8 9v6.2L9.8 22v-9L2 4Z", fill: "currentColor", stroke: "none" }),
|
|
1688
|
+
play: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1689
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1690
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "m10 7.8 6.5 4.2-6.5 4.2V7.8Z", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
|
|
1691
|
+
] }),
|
|
1692
|
+
pause: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1693
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1694
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M8.5 7.5h2.5v9H8.5v-9Zm4.5 0h2.5v9H13v-9Z", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
|
|
1695
|
+
] }),
|
|
1696
|
+
book: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M3 4.5A3.5 3.5 0 0 1 6.5 1H11v19H6.5A3.5 3.5 0 0 0 3 23V4.5ZM21 4.5A3.5 3.5 0 0 0 17.5 1H13v19h4.5A3.5 3.5 0 0 1 21 23V4.5Z", fill: "currentColor", stroke: "none" }),
|
|
1697
|
+
component: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1698
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "3", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
|
|
1699
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "13", y: "3", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
|
|
1700
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "3", y: "13", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
|
|
1701
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x: "13", y: "13", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" })
|
|
1702
|
+
] }),
|
|
1703
|
+
token: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
1704
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", { cx: "12", cy: "12", r: "5", fill: "currentColor", stroke: "none" }),
|
|
1705
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M12 1v4M12 19v4M1 12h4M19 12h4M4.2 4.2 7 7M17 17l2.8 2.8M19.8 4.2 17 7M7 17l-2.8 2.8", stroke: "currentColor", strokeWidth: "2.2" })
|
|
1706
|
+
] })
|
|
1707
|
+
};
|
|
1708
|
+
var FILLED_ICON_NAMES = Object.freeze(Object.keys(filledIconPaths));
|
|
1709
|
+
var normalizedOutlinePaths = normalizeIconPaths(iconPaths, outlineIconBounds);
|
|
1710
|
+
var normalizedFilledPaths = normalizeIconPaths(filledIconPaths, filledIconBounds);
|
|
1711
|
+
var Icon = (0, import_react5.forwardRef)(function Icon2({ name, size = "1em", strokeWidth = 1.8, rotate = 0, spin = false, pulse = false, label, variant = "outline", className = "", style, ...props }, ref) {
|
|
1712
|
+
const resolvedSize = typeof size === "number" ? `${size}px` : size;
|
|
1713
|
+
const mergedStyle = { "--sia-icon-size": resolvedSize, "--sia-icon-rotate": `${rotate}deg`, ...style };
|
|
1714
|
+
const animationClass = spin ? " sia-icon--spin" : pulse ? " sia-icon--pulse" : "";
|
|
1715
|
+
const filledPath = filledIconPaths[name];
|
|
1716
|
+
const resolvedVariant = variant === "filled" && filledPath ? "filled" : "outline";
|
|
1717
|
+
const geometry = resolvedVariant === "filled" ? normalizedFilledPaths[name] : normalizedOutlinePaths[name];
|
|
1718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1719
|
+
"span",
|
|
1720
|
+
{
|
|
1721
|
+
ref,
|
|
1722
|
+
className: `sia-icon${animationClass} ${className}`.trim(),
|
|
1723
|
+
"data-variant": resolvedVariant,
|
|
1724
|
+
role: label ? "img" : void 0,
|
|
1725
|
+
"aria-label": label,
|
|
1726
|
+
"aria-hidden": label ? void 0 : true,
|
|
1727
|
+
style: mergedStyle,
|
|
1728
|
+
...withTitleTooltip(props),
|
|
1729
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: strokeWidth / geometry.scale, strokeLinecap: "round", strokeLinejoin: "round", focusable: "false", children: geometry.node })
|
|
1730
|
+
}
|
|
1731
|
+
);
|
|
1732
|
+
});
|
|
1733
|
+
|
|
1734
|
+
// src/components/Overlay.tsx
|
|
1735
|
+
var import_react6 = require("react");
|
|
1736
|
+
var import_react_dom2 = require("react-dom");
|
|
1737
|
+
var bodyLockCount = 0;
|
|
1738
|
+
var previousBodyOverflow = "";
|
|
1739
|
+
var overlayStack = [];
|
|
1740
|
+
function lockBodyScroll() {
|
|
1741
|
+
if (bodyLockCount === 0) {
|
|
1742
|
+
previousBodyOverflow = document.body.style.overflow;
|
|
1743
|
+
document.body.style.overflow = "hidden";
|
|
1744
|
+
}
|
|
1745
|
+
bodyLockCount += 1;
|
|
1746
|
+
return () => {
|
|
1747
|
+
bodyLockCount = Math.max(0, bodyLockCount - 1);
|
|
1748
|
+
if (bodyLockCount === 0) document.body.style.overflow = previousBodyOverflow;
|
|
1749
|
+
};
|
|
1750
|
+
}
|
|
1751
|
+
function focusableElements(container) {
|
|
1752
|
+
return [...container.querySelectorAll(
|
|
1753
|
+
'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
1754
|
+
)].filter((element) => !element.hidden && element.getAttribute("aria-hidden") !== "true");
|
|
1755
|
+
}
|
|
1756
|
+
function useOverlayLifecycle(open, panelRef, onRequestClose, keyboard = true) {
|
|
1757
|
+
const overlayIdRef = (0, import_react6.useRef)(/* @__PURE__ */ Symbol("sia-overlay"));
|
|
1758
|
+
const closeRef = (0, import_react6.useRef)(onRequestClose);
|
|
1759
|
+
closeRef.current = onRequestClose;
|
|
1760
|
+
(0, import_react6.useEffect)(() => {
|
|
1761
|
+
if (!open || typeof document === "undefined") return void 0;
|
|
1762
|
+
const overlayId = overlayIdRef.current;
|
|
1763
|
+
const previouslyFocused = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
1764
|
+
overlayStack.push(overlayId);
|
|
1765
|
+
const unlockBody = lockBodyScroll();
|
|
1766
|
+
const focusTimer = window.setTimeout(() => {
|
|
1767
|
+
const panel = panelRef.current;
|
|
1768
|
+
if (!panel) return;
|
|
1769
|
+
const [firstFocusable] = focusableElements(panel);
|
|
1770
|
+
(firstFocusable ?? panel).focus({ preventScroll: true });
|
|
1771
|
+
}, 0);
|
|
1772
|
+
function handleKeyDown(event) {
|
|
1773
|
+
if (overlayStack.at(-1) !== overlayId) return;
|
|
1774
|
+
if (event.key === "Escape" && keyboard) {
|
|
1775
|
+
event.preventDefault();
|
|
1776
|
+
closeRef.current();
|
|
1777
|
+
return;
|
|
1778
|
+
}
|
|
1779
|
+
if (event.key !== "Tab" || !panelRef.current) return;
|
|
1780
|
+
const focusable = focusableElements(panelRef.current);
|
|
1781
|
+
if (focusable.length === 0) {
|
|
1782
|
+
event.preventDefault();
|
|
1783
|
+
panelRef.current.focus();
|
|
1784
|
+
return;
|
|
1785
|
+
}
|
|
1786
|
+
const first = focusable[0];
|
|
1787
|
+
const last = focusable.at(-1);
|
|
1788
|
+
if (event.shiftKey && document.activeElement === first) {
|
|
1789
|
+
event.preventDefault();
|
|
1790
|
+
last.focus();
|
|
1791
|
+
} else if (!event.shiftKey && document.activeElement === last) {
|
|
1792
|
+
event.preventDefault();
|
|
1793
|
+
first.focus();
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
1797
|
+
return () => {
|
|
1798
|
+
window.clearTimeout(focusTimer);
|
|
1799
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
1800
|
+
const index = overlayStack.lastIndexOf(overlayId);
|
|
1801
|
+
if (index >= 0) overlayStack.splice(index, 1);
|
|
1802
|
+
unlockBody();
|
|
1803
|
+
previouslyFocused?.focus({ preventScroll: true });
|
|
1804
|
+
};
|
|
1805
|
+
}, [keyboard, open, panelRef]);
|
|
1806
|
+
}
|
|
1807
|
+
function OverlayPortal({ children, container }) {
|
|
1808
|
+
if (typeof document === "undefined") return null;
|
|
1809
|
+
const target = typeof container === "function" ? container() : container ?? document.body;
|
|
1810
|
+
return (0, import_react_dom2.createPortal)(children, target);
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
// src/components/Modal.tsx
|
|
1814
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
1815
|
+
var modalHandles = /* @__PURE__ */ new Set();
|
|
1816
|
+
var MODAL_MOTION_DURATION = 220;
|
|
1817
|
+
var typeIcons = {
|
|
1818
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "info", size: 23 }),
|
|
1819
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "circle-check", size: 23 }),
|
|
1820
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "warning", size: 23 }),
|
|
1821
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "circle-close", size: 23 }),
|
|
1822
|
+
confirm: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "question", size: 23 })
|
|
1823
|
+
};
|
|
1824
|
+
var ModalRoot = (0, import_react7.forwardRef)(function Modal({
|
|
1825
|
+
open,
|
|
1826
|
+
title,
|
|
1827
|
+
children,
|
|
1828
|
+
footer,
|
|
1829
|
+
footerExtra,
|
|
1830
|
+
type = "default",
|
|
1831
|
+
okText = "\u786E\u5B9A",
|
|
1832
|
+
cancelText = "\u53D6\u6D88",
|
|
1833
|
+
showCancel = type === "default" || type === "confirm",
|
|
1834
|
+
confirmLoading = false,
|
|
1835
|
+
okButtonProps,
|
|
1836
|
+
cancelButtonProps,
|
|
1837
|
+
closable = true,
|
|
1838
|
+
maskClosable = true,
|
|
1839
|
+
keyboard = true,
|
|
1840
|
+
centered = false,
|
|
1841
|
+
width = 520,
|
|
1842
|
+
height,
|
|
1843
|
+
zIndex = 1e3,
|
|
1844
|
+
getContainer,
|
|
1845
|
+
onOk,
|
|
1846
|
+
onCancel,
|
|
1847
|
+
onOpenChange,
|
|
1848
|
+
afterOpenChange,
|
|
1849
|
+
className = "",
|
|
1850
|
+
style,
|
|
1851
|
+
...props
|
|
1852
|
+
}, forwardedRef) {
|
|
1853
|
+
const localRef = (0, import_react7.useRef)(null);
|
|
1854
|
+
const titleId = (0, import_react7.useId)();
|
|
1855
|
+
const [submitting, setSubmitting] = (0, import_react7.useState)(false);
|
|
1856
|
+
const [rendered, setRendered] = (0, import_react7.useState)(open);
|
|
1857
|
+
const [closing, setClosing] = (0, import_react7.useState)(false);
|
|
1858
|
+
const afterOpenChangeRef = (0, import_react7.useRef)(afterOpenChange);
|
|
1859
|
+
afterOpenChangeRef.current = afterOpenChange;
|
|
1860
|
+
const submitLock = (0, import_react7.useRef)(false);
|
|
1861
|
+
(0, import_react7.useEffect)(() => {
|
|
1862
|
+
if (!open || !rendered) return void 0;
|
|
1863
|
+
const timer = window.setTimeout(() => afterOpenChangeRef.current?.(true), MODAL_MOTION_DURATION);
|
|
1864
|
+
return () => window.clearTimeout(timer);
|
|
1865
|
+
}, [open, rendered]);
|
|
1866
|
+
(0, import_react7.useEffect)(() => {
|
|
1867
|
+
if (open) {
|
|
1868
|
+
setRendered(true);
|
|
1869
|
+
setClosing(false);
|
|
1870
|
+
return void 0;
|
|
1871
|
+
}
|
|
1872
|
+
if (!rendered) return void 0;
|
|
1873
|
+
setClosing(true);
|
|
1874
|
+
const timer = window.setTimeout(() => {
|
|
1875
|
+
setRendered(false);
|
|
1876
|
+
setClosing(false);
|
|
1877
|
+
afterOpenChangeRef.current?.(false);
|
|
1878
|
+
}, MODAL_MOTION_DURATION);
|
|
1879
|
+
return () => window.clearTimeout(timer);
|
|
1880
|
+
}, [open, rendered]);
|
|
1881
|
+
function setRef(node) {
|
|
1882
|
+
localRef.current = node;
|
|
1883
|
+
if (typeof forwardedRef === "function") forwardedRef(node);
|
|
1884
|
+
else if (forwardedRef) forwardedRef.current = node;
|
|
1885
|
+
}
|
|
1886
|
+
function requestClose() {
|
|
1887
|
+
if (submitting || confirmLoading) return;
|
|
1888
|
+
onCancel?.();
|
|
1889
|
+
onOpenChange?.(false);
|
|
1890
|
+
}
|
|
1891
|
+
async function handleOk() {
|
|
1892
|
+
if (submitLock.current || confirmLoading) return;
|
|
1893
|
+
submitLock.current = true;
|
|
1894
|
+
if (!onOk) {
|
|
1895
|
+
onOpenChange?.(false);
|
|
1896
|
+
submitLock.current = false;
|
|
1897
|
+
return;
|
|
1898
|
+
}
|
|
1899
|
+
try {
|
|
1900
|
+
const result = onOk();
|
|
1901
|
+
if (result instanceof Promise) {
|
|
1902
|
+
setSubmitting(true);
|
|
1903
|
+
const resolved = await result;
|
|
1904
|
+
if (resolved !== false) onOpenChange?.(false);
|
|
1905
|
+
} else if (result !== false) {
|
|
1906
|
+
onOpenChange?.(false);
|
|
1907
|
+
}
|
|
1908
|
+
} catch {
|
|
1909
|
+
return;
|
|
1910
|
+
} finally {
|
|
1911
|
+
submitLock.current = false;
|
|
1912
|
+
setSubmitting(false);
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
useOverlayLifecycle(rendered, localRef, requestClose, keyboard);
|
|
1916
|
+
if (!rendered) return null;
|
|
1917
|
+
const mergedStyle = {
|
|
1918
|
+
...height !== void 0 ? { display: "flex", flexDirection: "column", height, maxHeight: "calc(100dvh - 48px)" } : {},
|
|
1919
|
+
...style,
|
|
1920
|
+
"--sia-modal-width": typeof width === "number" ? `${width}px` : width
|
|
1921
|
+
};
|
|
1922
|
+
const loading = submitting || confirmLoading;
|
|
1923
|
+
const defaultFooter = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
|
|
1924
|
+
showCancel ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Button, { ...cancelButtonProps, onClick: requestClose, disabled: loading || cancelButtonProps?.disabled, children: cancelText }) : null,
|
|
1925
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Button, { variant: "primary", ...okButtonProps, onClick: handleOk, loading, children: okText })
|
|
1926
|
+
] });
|
|
1927
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(OverlayPortal, { container: getContainer, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1928
|
+
"div",
|
|
1929
|
+
{
|
|
1930
|
+
className: `sia-modal-root${centered ? " sia-modal-root--centered" : ""}`,
|
|
1931
|
+
"data-state": closing ? "closing" : "open",
|
|
1932
|
+
style: { zIndex },
|
|
1933
|
+
onMouseDown: (event) => {
|
|
1934
|
+
if (event.target === event.currentTarget && maskClosable) requestClose();
|
|
1935
|
+
},
|
|
1936
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1937
|
+
"div",
|
|
1938
|
+
{
|
|
1939
|
+
ref: setRef,
|
|
1940
|
+
className: `sia-modal sia-modal--${type} ${className}`.trim(),
|
|
1941
|
+
style: mergedStyle,
|
|
1942
|
+
role: "dialog",
|
|
1943
|
+
"aria-modal": "true",
|
|
1944
|
+
"aria-labelledby": title ? titleId : void 0,
|
|
1945
|
+
tabIndex: -1,
|
|
1946
|
+
...withTitleTooltip(props),
|
|
1947
|
+
children: [
|
|
1948
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "sia-modal__header", style: height !== void 0 ? { flexShrink: 0 } : void 0, children: [
|
|
1949
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "sia-modal__heading", children: [
|
|
1950
|
+
typeIcons[type] ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sia-modal__type-icon", "aria-hidden": "true", children: typeIcons[type] }) : null,
|
|
1951
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("strong", { id: titleId, children: title }) : null
|
|
1952
|
+
] }),
|
|
1953
|
+
closable ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { type: "button", className: "sia-modal__close", "aria-label": "\u5173\u95ED\u5BF9\u8BDD\u6846", onClick: requestClose, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "close", size: 17 }) }) : null
|
|
1954
|
+
] }),
|
|
1955
|
+
children !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "sia-modal__body", style: height !== void 0 ? { flex: 1, minHeight: 0, overflow: "auto" } : void 0, children }) : null,
|
|
1956
|
+
footer !== null ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "sia-modal__footer", style: height !== void 0 ? { flexShrink: 0 } : void 0, children: [
|
|
1957
|
+
footer === void 0 && footerExtra != null ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { marginRight: "auto" }, children: footerExtra }) : null,
|
|
1958
|
+
footer ?? defaultFooter
|
|
1959
|
+
] }) : null
|
|
1960
|
+
]
|
|
1961
|
+
}
|
|
1962
|
+
)
|
|
1963
|
+
}
|
|
1964
|
+
) });
|
|
1965
|
+
});
|
|
1966
|
+
function openModal(config) {
|
|
1967
|
+
if (typeof document === "undefined") return { destroy() {
|
|
1968
|
+
}, update() {
|
|
1969
|
+
} };
|
|
1970
|
+
const container = document.createElement("div");
|
|
1971
|
+
container.className = "sia-modal-api-host";
|
|
1972
|
+
document.body.appendChild(container);
|
|
1973
|
+
const root = (0, import_client2.createRoot)(container);
|
|
1974
|
+
let currentConfig = config;
|
|
1975
|
+
let currentOpen = true;
|
|
1976
|
+
let destroyed = false;
|
|
1977
|
+
let mounted = false;
|
|
1978
|
+
function cleanup() {
|
|
1979
|
+
if (destroyed) return;
|
|
1980
|
+
destroyed = true;
|
|
1981
|
+
root.unmount();
|
|
1982
|
+
container.remove();
|
|
1983
|
+
modalHandles.delete(handle);
|
|
1984
|
+
}
|
|
1985
|
+
function closeWithMotion() {
|
|
1986
|
+
if (destroyed || !currentOpen) return;
|
|
1987
|
+
currentOpen = false;
|
|
1988
|
+
render();
|
|
1989
|
+
}
|
|
1990
|
+
function ModalInstance() {
|
|
1991
|
+
(0, import_react7.useEffect)(() => {
|
|
1992
|
+
mounted = true;
|
|
1993
|
+
if (!currentOpen) render();
|
|
1994
|
+
}, []);
|
|
1995
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ModalRoot, { ...currentConfig, open: !mounted || currentOpen, onOpenChange: (nextOpen) => {
|
|
1996
|
+
currentConfig.onOpenChange?.(nextOpen);
|
|
1997
|
+
if (!nextOpen) closeWithMotion();
|
|
1998
|
+
}, afterOpenChange: (nextOpen) => {
|
|
1999
|
+
try {
|
|
2000
|
+
currentConfig.afterOpenChange?.(nextOpen);
|
|
2001
|
+
} finally {
|
|
2002
|
+
if (!nextOpen) queueMicrotask(cleanup);
|
|
2003
|
+
}
|
|
2004
|
+
} });
|
|
2005
|
+
}
|
|
2006
|
+
function render() {
|
|
2007
|
+
root.render(/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ModalInstance, {}));
|
|
2008
|
+
}
|
|
2009
|
+
const handle = {
|
|
2010
|
+
destroy: closeWithMotion,
|
|
2011
|
+
update(next) {
|
|
2012
|
+
if (destroyed) return;
|
|
2013
|
+
currentConfig = { ...currentConfig, ...next };
|
|
2014
|
+
render();
|
|
2015
|
+
}
|
|
2016
|
+
};
|
|
2017
|
+
modalHandles.add(handle);
|
|
2018
|
+
render();
|
|
2019
|
+
return handle;
|
|
2020
|
+
}
|
|
2021
|
+
function preset(type, defaults = {}) {
|
|
2022
|
+
return (config) => openModal({
|
|
2023
|
+
okText: type === "confirm" ? "\u786E\u5B9A" : "\u77E5\u9053\u4E86",
|
|
2024
|
+
showCancel: type === "confirm",
|
|
2025
|
+
closable: type !== "confirm",
|
|
2026
|
+
maskClosable: type !== "confirm",
|
|
2027
|
+
...defaults,
|
|
2028
|
+
...config,
|
|
2029
|
+
type
|
|
2030
|
+
});
|
|
2031
|
+
}
|
|
2032
|
+
var Modal2 = Object.assign(ModalRoot, {
|
|
2033
|
+
/** 直接打开实例,返回更新和关闭句柄;关闭动画完成后先调用 afterOpenChange(false),再卸载实例。 */
|
|
2034
|
+
open: openModal,
|
|
2035
|
+
/** 显示普通信息提示。 */
|
|
2036
|
+
info: preset("info", { title: "\u63D0\u793A" }),
|
|
2037
|
+
/** 显示成功提示。 */
|
|
2038
|
+
success: preset("success", { title: "\u64CD\u4F5C\u6210\u529F" }),
|
|
2039
|
+
/** 显示警告提示。 */
|
|
2040
|
+
warning: preset("warning", { title: "\u8BF7\u6CE8\u610F" }),
|
|
2041
|
+
/** 显示错误提示。 */
|
|
2042
|
+
error: preset("error", { title: "\u64CD\u4F5C\u5931\u8D25" }),
|
|
2043
|
+
/** 打开确认弹框,支持异步确认;返回 false 可阻止关闭。 */
|
|
2044
|
+
confirm: preset("confirm", { title: "\u786E\u8BA4\u64CD\u4F5C" }),
|
|
2045
|
+
/** 关闭由此 API 打开的所有弹层。 */
|
|
2046
|
+
destroyAll() {
|
|
2047
|
+
[...modalHandles].forEach((handle) => handle.destroy());
|
|
2048
|
+
}
|
|
2049
|
+
});
|
|
2050
|
+
|
|
2051
|
+
// src/game/components.tsx
|
|
2052
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
2053
|
+
function GameSprite({ asset, className = "" }) {
|
|
2054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("img", { className: `unit-art ${asset.flip ? "face-left" : ""} ${className}`, src: asset.src, alt: "", "aria-hidden": "true", draggable: false, decoding: "async" });
|
|
2055
|
+
}
|
|
2056
|
+
function GameButton({ className = "", ...props }) {
|
|
2057
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { ...props, className: `game-button ${className}` });
|
|
2058
|
+
}
|
|
2059
|
+
var fmt = (n) => Math.floor(n).toLocaleString("zh-CN");
|
|
2060
|
+
var busy = (s) => Boolean(s.fight?.boss && s.fight.status === "active");
|
|
2061
|
+
var command = (fn, type, id) => () => fn({ type, id });
|
|
2062
|
+
function Title({ kicker, title, children }) {
|
|
2063
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "view-title", children: [
|
|
2064
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
2065
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "eyebrow", children: kicker }),
|
|
2066
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h1", { children: title })
|
|
2067
|
+
] }),
|
|
2068
|
+
children
|
|
2069
|
+
] });
|
|
2070
|
+
}
|
|
2071
|
+
function ItemStats({ item }) {
|
|
2072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "item-stats", children: [
|
|
2073
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
|
|
2074
|
+
"\u653B\u51FB +",
|
|
2075
|
+
item.atk
|
|
2076
|
+
] }),
|
|
2077
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
|
|
2078
|
+
"\u9632\u5FA1 +",
|
|
2079
|
+
item.def
|
|
2080
|
+
] }),
|
|
2081
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
|
|
2082
|
+
"\u6C14\u8840 +",
|
|
2083
|
+
item.hp
|
|
2084
|
+
] })
|
|
2085
|
+
] });
|
|
2086
|
+
}
|
|
2087
|
+
function GameShell({ engine, state, onAction, page, children }) {
|
|
2088
|
+
const d = engine.definition, view = { engine, state, onAction };
|
|
2089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
2090
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("header", { className: "topbar", children: [
|
|
2091
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "brand", children: [
|
|
2092
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "brand-seal", children: d.title[0] }),
|
|
2093
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "brand-title", children: [
|
|
2094
|
+
d.title,
|
|
2095
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { children: d.subtitle })
|
|
2096
|
+
] })
|
|
2097
|
+
] }),
|
|
2098
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "realm", children: [
|
|
2099
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "live-dot" }),
|
|
2100
|
+
"\u5355\u4EBA\u4FEE\u884C / \u653E\u7F6E\u5386\u7EC3"
|
|
2101
|
+
] }),
|
|
2102
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "top-actions", children: [
|
|
2103
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "version", children: "Sia Game \xB7 v0.3" }),
|
|
2104
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "icon-button", "aria-label": "\u8BBE\u7F6E\u4E0E\u5B58\u6863", onClick: command(onAction, "settings"), children: "\u2699" })
|
|
2105
|
+
] })
|
|
2106
|
+
] }),
|
|
2107
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("nav", { className: "navigation", "aria-label": "\u4E3B\u5BFC\u822A", children: [
|
|
2108
|
+
[["battle", "\u2694", "\u6302\u673A\u5386\u7EC3"], ["maps", "\u25A7", "\u4E16\u754C\u5730\u56FE"], ["gear", "\u25A3", "\u88C5\u5907\u80CC\u5305"], ["pets", "\u2667", "\u4F19\u4F34\u56FE\u9274"]].map(([id, icon, text]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(GameButton, { className: `nav-item ${page === id ? "active" : ""}`, "aria-current": page === id ? "page" : void 0, onClick: command(onAction, "page", id), children: [
|
|
2109
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": "true", children: icon }),
|
|
2110
|
+
d.labels?.[id] || text,
|
|
2111
|
+
id === "gear" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "nav-count", children: state.inventory.length })
|
|
2112
|
+
] }, id)),
|
|
2113
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "nav-verse", children: d.subtitle })
|
|
2114
|
+
] }),
|
|
2115
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "workspace", children: [
|
|
2116
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("aside", { className: "character-panel", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameCharacterPanel, { ...view }) }),
|
|
2117
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("main", { children }),
|
|
2118
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("aside", { className: "right-panel", children: [
|
|
2119
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameBossPanel, { ...view }),
|
|
2120
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameLogPanel, { ...view }),
|
|
2121
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "save-state", children: [
|
|
2122
|
+
"\u672C\u5730\u81EA\u52A8\u5B58\u6863 \xB7 \u79BB\u7EBF\u4E0A\u9650 ",
|
|
2123
|
+
(d.offlineCapSeconds ?? 43200) / 3600,
|
|
2124
|
+
" \u5C0F\u65F6"
|
|
2125
|
+
] })
|
|
2126
|
+
] })
|
|
2127
|
+
] }),
|
|
2128
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("footer", { children: [
|
|
2129
|
+
d.title,
|
|
2130
|
+
" / ",
|
|
2131
|
+
d.subtitle,
|
|
2132
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u7531 SiaWebUI Game Framework \u9A71\u52A8" })
|
|
2133
|
+
] })
|
|
2134
|
+
] });
|
|
2135
|
+
}
|
|
2136
|
+
function GameCharacterPanel({ engine, state: s, onAction }) {
|
|
2137
|
+
const d = engine.definition, st = engine.stats(s), pet = d.pets.find((p) => p.id === s.pet);
|
|
2138
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
2139
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "profile-top", children: [
|
|
2140
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "avatar", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameSprite, { asset: d.hero }) }),
|
|
2141
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
2142
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "eyebrow", children: d.hero.identity }),
|
|
2143
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h2", { children: s.name }),
|
|
2144
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "level-tag", children: [
|
|
2145
|
+
"Lv.",
|
|
2146
|
+
s.level,
|
|
2147
|
+
" ",
|
|
2148
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u4FEE\u884C\u8005" })
|
|
2149
|
+
] })
|
|
2150
|
+
] })
|
|
2151
|
+
] }),
|
|
2152
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "power", children: [
|
|
2153
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u7EFC\u5408\u6218\u529B" }),
|
|
2154
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("strong", { children: fmt(st.power) })
|
|
2155
|
+
] }),
|
|
2156
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "experience", children: [
|
|
2157
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
2158
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u4FEE\u884C\u7ECF\u9A8C" }),
|
|
2159
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
|
|
2160
|
+
fmt(s.xp),
|
|
2161
|
+
" / ",
|
|
2162
|
+
engine.xpNeeded(s)
|
|
2163
|
+
] })
|
|
2164
|
+
] }),
|
|
2165
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "progress", role: "progressbar", "aria-label": "\u4FEE\u884C\u7ECF\u9A8C", "aria-valuenow": s.xp, "aria-valuemin": 0, "aria-valuemax": engine.xpNeeded(s), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("i", { style: { width: `${Math.min(100, s.xp / engine.xpNeeded(s) * 100)}%` } }) })
|
|
2166
|
+
] }),
|
|
2167
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "attributes", children: [["\u6C14\u8840", st.hp], ["\u653B\u51FB", st.atk], ["\u9632\u5FA1", st.def], ["\u66B4\u51FB", "13%"]].map(([name, value]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
2168
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: name }),
|
|
2169
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("b", { children: value })
|
|
2170
|
+
] }, name)) }),
|
|
2171
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "line-heading", children: "\u968F\u8EAB\u8D44\u8D22" }),
|
|
2172
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "wallet", children: [["\u94DC\u94B1", s.gold], ["\u7075\u8574", s.essence], ["\u953B\u6750", s.material]].map(([name, value]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
2173
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: name }),
|
|
2174
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("b", { children: fmt(Number(value)) })
|
|
2175
|
+
] }, name)) }),
|
|
2176
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "line-heading", children: [
|
|
2177
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u8EAB\u4E0A\u88C5\u5907" }),
|
|
2178
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "text-button", onClick: command(onAction, "page", "gear"), children: "\u7BA1\u7406 \u203A" })
|
|
2179
|
+
] }),
|
|
2180
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "equipped-list", children: Object.entries(d.slots).map(([key, slot]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(GameButton, { className: "equipped-item", onClick: command(onAction, "page", "gear"), children: [
|
|
2181
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "slot-symbol", children: "\u25C7" }),
|
|
2182
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
|
|
2183
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { children: slot.name }),
|
|
2184
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("b", { children: s.equipment[key]?.name || "\u5C1A\u672A\u88C5\u5907" })
|
|
2185
|
+
] }),
|
|
2186
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("em", { children: s.upgrades[key] ? `+${s.upgrades[key]}` : "\u203A" })
|
|
2187
|
+
] }, key)) }),
|
|
2188
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(GameButton, { className: "pet-mini", onClick: command(onAction, "page", "pets"), children: [
|
|
2189
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "pet-mini-art", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameSprite, { asset: pet.art }) }),
|
|
2190
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
|
|
2191
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { children: "\u51FA\u6218\u7075\u5BA0" }),
|
|
2192
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("b", { children: [
|
|
2193
|
+
pet.name,
|
|
2194
|
+
" ",
|
|
2195
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("em", { children: [
|
|
2196
|
+
"Lv.",
|
|
2197
|
+
s.pets[s.pet]
|
|
2198
|
+
] })
|
|
2199
|
+
] })
|
|
2200
|
+
] })
|
|
2201
|
+
] }),
|
|
2202
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "character-bottom", children: s.idle ? "\u25CF \u6B63\u5728\u6302\u673A\u4FEE\u884C" : "\u25CB \u95F2\u5EAD\u4FE1\u6B65 \xB7 \u7B49\u5F85\u5386\u7EC3" })
|
|
2203
|
+
] });
|
|
2204
|
+
}
|
|
2205
|
+
function GameBattleStage({ engine, state: s, onAction, event, sequence = 0 }) {
|
|
2206
|
+
const d = engine.definition, m = d.maps[s.map], f = s.fight, st = engine.stats(s), isBoss = Boolean(f?.boss), pet = d.pets.find((p) => p.id === s.pet);
|
|
2207
|
+
const units = [{ side: "hero", name: s.name, identity: d.hero.identity, asset: d.hero, hp: f?.hp ?? st.hp, max: f?.maxHp ?? st.hp, damage: event?.incoming }, { side: "enemy", name: isBoss ? `\u5996\u738B \xB7 ${m.boss}` : m.enemy, identity: (isBoss ? m.bossArt : m.enemyArt).identity, asset: isBoss ? m.bossArt : m.enemyArt, hp: f?.enemyHp ?? m.hp, max: f?.enemyMax ?? m.hp, damage: event ? event.damage + event.petDamage : 0 }];
|
|
2208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
2209
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Title, { kicker: `\u897F\u884C\u5386\u7EC3 / \u7B2C ${s.map + 1} \u7AE0`, title: m.name, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "subtle-button", disabled: busy(s), onClick: command(onAction, "page", "maps"), children: "\u25A7 \u5207\u6362\u5730\u56FE" }) }),
|
|
2210
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: `scene ${isBoss ? "boss-fight" : ""}`, children: [
|
|
2211
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "scene-art", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("img", { className: "landscape", src: m.scene, alt: "" }) }),
|
|
2212
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "scene-top", children: [
|
|
2213
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "scene-label", children: [
|
|
2214
|
+
"\u263C ",
|
|
2215
|
+
m.subtitle
|
|
2216
|
+
] }),
|
|
2217
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "scene-label", children: busy(s) ? "\u5996\u738B\u6311\u6218\u4E2D" : s.idle ? "\u6302\u673A\u4FEE\u884C\u4E2D" : "\u5C1A\u672A\u5F00\u59CB" })
|
|
2218
|
+
] }),
|
|
2219
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "scene-inscription", children: [
|
|
2220
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: m.name }),
|
|
2221
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { children: "\u5C71 \u6D77 \u6709 \u7075 \xB7 \u897F \u884C \u65E0 \u5C3D" })
|
|
2222
|
+
] }),
|
|
2223
|
+
units.map((u) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: `fighter ${u.side}`, children: [
|
|
2224
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "unit-label", children: [
|
|
2225
|
+
u.name,
|
|
2226
|
+
u.side === "hero" && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("em", { children: [
|
|
2227
|
+
" Lv.",
|
|
2228
|
+
s.level
|
|
2229
|
+
] })
|
|
2230
|
+
] }),
|
|
2231
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "unit-identity", children: u.identity }),
|
|
2232
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: `unit-health ${u.side === "enemy" ? "red" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("i", { style: { width: `${u.hp / u.max * 100}%` } }) }),
|
|
2233
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "health-text", children: [
|
|
2234
|
+
u.hp,
|
|
2235
|
+
" / ",
|
|
2236
|
+
u.max
|
|
2237
|
+
] }),
|
|
2238
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: `sprite ${event ? u.side === "hero" ? "attack" : "hit" : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameSprite, { asset: u.asset }) }, sequence),
|
|
2239
|
+
Boolean(u.damage) && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "damage float", children: [
|
|
2240
|
+
u.side === "enemy" && event?.skill ? d.skillName + " " : "",
|
|
2241
|
+
"\u2212",
|
|
2242
|
+
u.damage
|
|
2243
|
+
] }, `damage-${sequence}`)
|
|
2244
|
+
] }, u.side)),
|
|
2245
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "companion", children: [
|
|
2246
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameSprite, { asset: pet.art }),
|
|
2247
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: pet.name })
|
|
2248
|
+
] }),
|
|
2249
|
+
event?.skill && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "attack-flash cast", children: "\u6555" }, sequence),
|
|
2250
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "scene-bottom", children: [
|
|
2251
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u25C7 \u81EA\u52A8\u62FE\u53D6\u5DF2\u5F00\u542F" }),
|
|
2252
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: f ? `\u7B2C ${f.turn} \u56DE\u5408 / 60` : "\u9759\u5019\u51FA\u53D1" })
|
|
2253
|
+
] })
|
|
2254
|
+
] }),
|
|
2255
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "battle-controls", children: [
|
|
2256
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
2257
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "status-label", children: s.idle ? "\u884C\u8DEF\u4E0D\u6B47\uFF0C\u4FEE\u4E3A\u6E10\u957F" : "\u4E07\u91CC\u897F\u884C\uFF0C\u4ECE\u8FD9\u91CC\u5F00\u59CB" }),
|
|
2258
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { children: "\u81EA\u52A8\u6218\u6597 \xB7 \u81EA\u52A8\u62FE\u53D6 \xB7 \u6301\u7EED\u6210\u957F" })
|
|
2259
|
+
] }),
|
|
2260
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "primary-button", disabled: busy(s), onClick: command(onAction, "idle"), children: s.idle ? "\u2161 \u6682\u505C\u6302\u673A" : "\u25B6 \u5F00\u59CB\u6302\u673A" })
|
|
2261
|
+
] }),
|
|
2262
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameResourceSummary, { state: s }),
|
|
2263
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "tip", children: [
|
|
2264
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("p", { children: [
|
|
2265
|
+
"\u6BCF\u4E09\u6B21\u51FA\u624B\u81EA\u52A8\u65BD\u653E\u300C",
|
|
2266
|
+
d.skillName,
|
|
2267
|
+
"\u300D\u3002\u88C5\u5907\u4E0E\u7075\u5BA0\u7684\u63D0\u5347\uFF0C\u4E5F\u4F1A\u8BA1\u5165\u79BB\u7EBF\u4FEE\u884C\u3002"
|
|
2268
|
+
] }),
|
|
2269
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "text-button", onClick: command(onAction, "help"), children: "\u73A9\u6CD5\u8BF4\u660E \u203A" })
|
|
2270
|
+
] })
|
|
2271
|
+
] });
|
|
2272
|
+
}
|
|
2273
|
+
function GameResourceSummary({ state: s }) {
|
|
2274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { className: "income", children: [
|
|
2275
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "panel-heading", children: [
|
|
2276
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: "\u4FEE\u884C\u7D2F\u8BA1\u6240\u5F97" }),
|
|
2277
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
|
|
2278
|
+
"\u7D2F\u8BA1\u51FB\u8D25 ",
|
|
2279
|
+
fmt(s.kills),
|
|
2280
|
+
" \u4E2A\u654C\u4EBA"
|
|
2281
|
+
] })
|
|
2282
|
+
] }),
|
|
2283
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "income-grid", children: [["\u7ECF\u9A8C", s.sessionXp], ["\u94DC\u94B1", s.sessionGold], ["\u88C5\u5907", s.sessionDrops]].map(([label, value]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
2284
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: label }),
|
|
2285
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("b", { children: [
|
|
2286
|
+
fmt(Number(value)),
|
|
2287
|
+
label === "\u88C5\u5907" ? " \u4EF6" : ""
|
|
2288
|
+
] })
|
|
2289
|
+
] }, label)) })
|
|
2290
|
+
] });
|
|
2291
|
+
}
|
|
2292
|
+
function GameBossPanel({ engine, state: s, onAction }) {
|
|
2293
|
+
const d = engine.definition, m = d.maps[s.map], cleared = s.cleared.includes(s.map);
|
|
2294
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { id: "quest", children: [
|
|
2295
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "panel-heading", children: [
|
|
2296
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: "\u2694 \u7AE0\u8282\u5996\u738B" }),
|
|
2297
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
|
|
2298
|
+
"\u7B2C ",
|
|
2299
|
+
s.map + 1,
|
|
2300
|
+
" / ",
|
|
2301
|
+
d.maps.length,
|
|
2302
|
+
" \u7AE0"
|
|
2303
|
+
] })
|
|
2304
|
+
] }),
|
|
2305
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "boss-portrait", children: [
|
|
2306
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameSprite, { asset: m.bossArt }),
|
|
2307
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "boss-seal", children: cleared ? "\u5DF2\u7834" : "\u5996\u738B" })
|
|
2308
|
+
] }),
|
|
2309
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "boss-title", children: [
|
|
2310
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h2", { children: m.boss }),
|
|
2311
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: m.bossArt.identity })
|
|
2312
|
+
] }),
|
|
2313
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "identity-traits", children: m.bossArt.traits }),
|
|
2314
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "boss-stats", children: [
|
|
2315
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
|
|
2316
|
+
"\u6C14\u8840 ",
|
|
2317
|
+
fmt(m.bossHp)
|
|
2318
|
+
] }),
|
|
2319
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
|
|
2320
|
+
"\u653B\u51FB ",
|
|
2321
|
+
m.bossAtk
|
|
2322
|
+
] })
|
|
2323
|
+
] }),
|
|
2324
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "boss-reward", children: [
|
|
2325
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("small", { children: cleared ? "\u518D\u6B21\u6311\u6218\u5956\u52B1" : "\u9996\u6B21\u51FB\u8D25\u5956\u52B1" }),
|
|
2326
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { children: cleared ? "\u94DC\u94B1\u3001\u7ECF\u9A8C\u3001\u7075\u8574" : d.slots[m.rewardSlot].names[1] + " \xB7 \u7075\u8574 \xD750" })
|
|
2327
|
+
] }),
|
|
2328
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "boss-button", disabled: busy(s), onClick: command(onAction, "boss"), children: busy(s) ? "\u6B63\u5728\u6311\u6218\u2026" : cleared ? "\u518D\u6B21\u6311\u6218" : "\u6311\u6218\u5996\u738B" }),
|
|
2329
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "boss-hint", children: s.map < d.maps.length - 1 ? `\u9996\u6B21\u51FB\u8D25\uFF0C\u89E3\u9501\u300C${d.maps[s.map + 1].name}\u300D` : "\u5B8C\u6210\u6311\u6218\uFF0C\u901A\u5173\u5168\u90E8\u7AE0\u8282\u8BD5\u70BC" })
|
|
2330
|
+
] });
|
|
2331
|
+
}
|
|
2332
|
+
function GameLogPanel({ state: s }) {
|
|
2333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { className: "journal", children: [
|
|
2334
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "panel-heading", children: [
|
|
2335
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: "\u25A4 \u4E09\u754C\u89C1\u95FB" }),
|
|
2336
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "\u5B9E\u65F6\u6218\u62A5" })
|
|
2337
|
+
] }),
|
|
2338
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { id: "logs", role: "log", "aria-label": "\u6218\u6597\u8BB0\u5F55", children: s.logs.map((log, i) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: `log-line ${log.type}`, children: [
|
|
2339
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("time", { children: new Date(log.time).toLocaleTimeString("zh-CN", { hour: "2-digit", minute: "2-digit" }) }),
|
|
2340
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: log.text })
|
|
2341
|
+
] }, `${log.time}-${i}`)) })
|
|
2342
|
+
] });
|
|
2343
|
+
}
|
|
2344
|
+
function GameMapPanel({ engine, state: s, onAction }) {
|
|
2345
|
+
const d = engine.definition;
|
|
2346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
2347
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Title, { kicker: "\u4E09\u754C\u8206\u56FE / \u897F\u884C\u4E4B\u8DEF", title: d.labels?.mapsTitle || "\u63A2\u7D22\u65B0\u7684\u65C5\u7A0B" }),
|
|
2348
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "view-description", children: "\u8E0F\u8FC7\u4E00\u91CD\u5C71\uFF0C\u518D\u8D74\u4E0B\u4E00\u7A0B\u3002\u51FB\u8D25\u7AE0\u8282\u5996\u738B\uFF0C\u5373\u53EF\u5F00\u542F\u65B0\u7684\u5386\u7EC3\u3002" }),
|
|
2349
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "map-list", children: d.maps.map((m, i) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(GameButton, { className: `map-card ${s.map === i ? "current" : ""}`, disabled: i > s.unlocked || busy(s), onClick: command(onAction, "map", String(i)), children: [
|
|
2350
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "map-art", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("img", { className: "landscape", src: m.scene, alt: "" }) }),
|
|
2351
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "map-number", children: String(i + 1).padStart(2, "0") }),
|
|
2352
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "map-content", children: [
|
|
2353
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "eyebrow", children: m.subtitle }),
|
|
2354
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h2", { children: m.name }),
|
|
2355
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: m.desc }),
|
|
2356
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "map-meta", children: [
|
|
2357
|
+
"\u5EFA\u8BAE\u7B49\u7EA7 ",
|
|
2358
|
+
m.level,
|
|
2359
|
+
" \xB7 \u51FB\u8D25\u5956\u52B1 ",
|
|
2360
|
+
m.xp,
|
|
2361
|
+
" \u7ECF\u9A8C / ",
|
|
2362
|
+
m.gold,
|
|
2363
|
+
" \u94DC\u94B1"
|
|
2364
|
+
] })
|
|
2365
|
+
] }),
|
|
2366
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "map-state", children: i > s.unlocked ? "\u51FB\u8D25\u4E0A\u4E00\u7AE0\u5996\u738B\u89E3\u9501" : s.map === i ? "\u5F53\u524D\u5386\u7EC3" : "\u524D\u5F80\u5386\u7EC3" })
|
|
2367
|
+
] }, m.id)) }),
|
|
2368
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "tip", children: [
|
|
2369
|
+
"\u5F53\u524D\u5DF2\u89E3\u9501 ",
|
|
2370
|
+
s.unlocked + 1,
|
|
2371
|
+
" / ",
|
|
2372
|
+
d.maps.length,
|
|
2373
|
+
" \u7AE0\u3002"
|
|
2374
|
+
] })
|
|
2375
|
+
] });
|
|
2376
|
+
}
|
|
2377
|
+
function GamePetPanel({ engine, state: s, onAction }) {
|
|
2378
|
+
const d = engine.definition;
|
|
2379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
2380
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Title, { kicker: "\u7075\u5BA0\u6D1E\u5929 / \u6709\u7075\u76F8\u4F34", title: d.labels?.petsTitle || "\u4F19\u4F34\u540C\u884C", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "capacity", children: [
|
|
2381
|
+
"\u7075\u8574 ",
|
|
2382
|
+
fmt(s.essence)
|
|
2383
|
+
] }) }),
|
|
2384
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "view-description", children: "\u7075\u5BA0\u968F\u4F60\u81EA\u52A8\u51FA\u6218\u3002\u4E0D\u540C\u7684\u4F19\u4F34\uFF0C\u8BA9\u6BCF\u4E00\u6BB5\u4FEE\u884C\u5404\u6709\u7AE0\u6CD5\u3002" }),
|
|
2385
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "pet-cards", children: d.pets.map((p) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("article", { className: `pet-card ${s.pet === p.id ? "selected" : ""}`, children: [
|
|
2386
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "pet-card-head", children: [
|
|
2387
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "pet-kind", children: p.kind }),
|
|
2388
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: s.pets[p.id] ? `Lv.${s.pets[p.id]}` : "\u5C1A\u672A\u7ED3\u7F18" })
|
|
2389
|
+
] }),
|
|
2390
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "pet-art", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameSprite, { asset: p.art }) }),
|
|
2391
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h2", { children: p.name }),
|
|
2392
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "identity-traits", children: p.art.traits }),
|
|
2393
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: p.desc }),
|
|
2394
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "pet-stat", children: [
|
|
2395
|
+
"\u51FA\u624B\u4F24\u5BB3 ",
|
|
2396
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("b", { children: p.base + ((s.pets[p.id] || 1) - 1) * 3 })
|
|
2397
|
+
] }),
|
|
2398
|
+
s.pets[p.id] ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
2399
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "subtle-button", disabled: busy(s) || s.pet === p.id, onClick: command(onAction, "deploy", p.id), children: s.pet === p.id ? "\u6B63\u5728\u51FA\u6218" : "\u8BBE\u4E3A\u51FA\u6218" }),
|
|
2400
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "primary-button", disabled: busy(s) || s.pets[p.id] >= 20 || s.essence < s.pets[p.id] * 15, onClick: command(onAction, "train", p.id), children: s.pets[p.id] >= 20 ? "\u5DF2\u8FBE\u6700\u9AD8\u7B49\u7EA7" : `\u57F9\u517B \xB7 ${s.pets[p.id] * 15} \u7075\u8574` })
|
|
2401
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(GameButton, { className: "primary-button", disabled: busy(s) || s.essence < p.cost, onClick: command(onAction, "unlock", p.id), children: [
|
|
2402
|
+
"\u7ED3\u7F18 \xB7 ",
|
|
2403
|
+
p.cost,
|
|
2404
|
+
" \u7075\u8574"
|
|
2405
|
+
] })
|
|
2406
|
+
] }, p.id)) }),
|
|
2407
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "tip", children: "\u666E\u901A\u6218\u6597\u83B7\u5F97 2 \u7075\u8574\uFF0C\u9996\u9886\u9996\u901A\u83B7\u5F97 50 \u7075\u8574\u3002\u57F9\u517B\u63D0\u5347\u8FFD\u51FB\u4F24\u5BB3\u3002" })
|
|
2408
|
+
] });
|
|
2409
|
+
}
|
|
2410
|
+
function GameEquipmentPanel({ engine, state: s, onAction }) {
|
|
2411
|
+
const [filter, setFilter] = (0, import_react8.useState)("all");
|
|
2412
|
+
const d = engine.definition;
|
|
2413
|
+
const inventory = s.inventory.filter((item) => filter === "all" || item.slot === filter);
|
|
2414
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
2415
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Title, { kicker: "\u884C\u56CA\u88C5\u5907 / \u767E\u70BC\u6210\u5668", title: d.labels?.gearTitle || "\u6574\u7406\u88C5\u5907\uFF0C\u63D0\u5347\u5B9E\u529B", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "capacity", children: [
|
|
2416
|
+
"\u884C\u56CA ",
|
|
2417
|
+
s.inventory.length,
|
|
2418
|
+
" / 80"
|
|
2419
|
+
] }) }),
|
|
2420
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "gear-slots", children: Object.entries(d.slots).map(([key, slot]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { className: "gear-slot", children: [
|
|
2421
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "gear-info", children: [
|
|
2422
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "eyebrow", children: [
|
|
2423
|
+
slot.name,
|
|
2424
|
+
" \xB7 \u5F3A\u5316 +",
|
|
2425
|
+
s.upgrades[key]
|
|
2426
|
+
] }),
|
|
2427
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: s.equipment[key]?.name || "\u5C1A\u672A\u88C5\u5907" }),
|
|
2428
|
+
s.equipment[key] && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ItemStats, { item: s.equipment[key] })
|
|
2429
|
+
] }),
|
|
2430
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "small-button", disabled: busy(s) || !s.equipment[key] || s.upgrades[key] >= 10 || s.gold < engine.upgradeCost(s, key), onClick: command(onAction, "upgrade", key), children: s.upgrades[key] >= 10 ? "\u5DF2\u5F3A\u5316\u81F3\u4E0A\u9650" : `\u5F3A\u5316 \xB7 ${engine.upgradeCost(s, key)} \u94DC\u94B1` })
|
|
2431
|
+
] }, key)) }),
|
|
2432
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "inventory-toolbar", children: [
|
|
2433
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "filters", children: [["all", "\u5168\u90E8"], ...Object.entries(d.slots).map(([key, slot]) => [key, slot.name])].map(([key, name]) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: `filter ${filter === key ? "active" : ""}`, "aria-pressed": filter === key, onClick: () => setFilter(key), children: name }, key)) }),
|
|
2434
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { children: [
|
|
2435
|
+
"\u953B\u6750 ",
|
|
2436
|
+
s.material
|
|
2437
|
+
] }),
|
|
2438
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "subtle-button", disabled: busy(s) || s.material < 12, onClick: command(onAction, "forge"), children: "\u953B\u9020\u4E0A\u54C1 \xB7 12 \u953B\u6750" })
|
|
2439
|
+
] }),
|
|
2440
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "inventory-list", children: inventory.length ? inventory.map((item) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("article", { className: "item-row", children: [
|
|
2441
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: `item-icon rarity-${item.tier}`, children: "\u25C7" }),
|
|
2442
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "item-detail", children: [
|
|
2443
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("strong", { children: [
|
|
2444
|
+
item.name,
|
|
2445
|
+
" ",
|
|
2446
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("small", { children: [
|
|
2447
|
+
d.rarities[item.tier],
|
|
2448
|
+
" \xB7 ",
|
|
2449
|
+
d.slots[item.slot].name
|
|
2450
|
+
] })
|
|
2451
|
+
] }),
|
|
2452
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ItemStats, { item })
|
|
2453
|
+
] }),
|
|
2454
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "small-button", onClick: command(onAction, "inspect", item.id), children: "\u5BF9\u6BD4" }),
|
|
2455
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "small-button jade-button", disabled: busy(s), onClick: command(onAction, "equip", item.id), children: "\u88C5\u5907" }),
|
|
2456
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "text-button", disabled: busy(s), onClick: command(onAction, "lock", item.id), children: item.locked ? "\u89E3\u9501" : "\u9501\u5B9A" }),
|
|
2457
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "text-button", disabled: busy(s) || item.locked, onClick: command(onAction, "dismantle", item.id), children: "\u5206\u89E3" })
|
|
2458
|
+
] }, item.id)) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "empty-state", children: [
|
|
2459
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: "\u884C\u56CA\u5C1A\u6709\u4F59\u5730" }),
|
|
2460
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "\u6302\u673A\u51FB\u8D25\u5996\u602A\uFF0C\u6709\u673A\u4F1A\u62FE\u5F97\u88C5\u5907\u3002" }),
|
|
2461
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "subtle-button", onClick: command(onAction, "page", "battle"), children: "\u524D\u5F80\u5386\u7EC3" })
|
|
2462
|
+
] }) }),
|
|
2463
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "tip", children: "\u5F3A\u5316\u968F\u90E8\u4F4D\u7EE7\u627F\u3002\u80CC\u5305\u6EE1\u540E\uFF0C\u65B0\u6389\u843D\u8F6C\u4E3A\u953B\u6750\uFF1B\u9501\u5B9A\u88C5\u5907\u4E0D\u80FD\u5206\u89E3\u3002" })
|
|
2464
|
+
] });
|
|
2465
|
+
}
|
|
2466
|
+
function GameSavePanel({ onExport, onImport }) {
|
|
2467
|
+
const input = (0, import_react8.useRef)(null);
|
|
2468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "help-content", children: [
|
|
2469
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "\u8FDB\u5EA6\u81EA\u52A8\u4FDD\u5B58\u5728\u5F53\u524D\u6D4F\u89C8\u5668\u3002\u5BFC\u5165\u901A\u8FC7\u6821\u9A8C\u540E\uFF0C\u9700\u8981\u518D\u6B21\u786E\u8BA4\u624D\u80FD\u66FF\u6362\u5F53\u524D\u8FDB\u5EA6\u3002" }),
|
|
2470
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "settings-actions", children: [
|
|
2471
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "subtle-button", onClick: onExport, children: "\u5BFC\u51FA\u5B58\u6863" }),
|
|
2472
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "subtle-button", onClick: () => input.current?.click(), children: "\u5BFC\u5165\u5B58\u6863" }),
|
|
2473
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("input", { ref: input, type: "file", accept: ".json,application/json", hidden: true, onChange: (e) => {
|
|
2474
|
+
const file = e.target.files?.[0];
|
|
2475
|
+
e.target.value = "";
|
|
2476
|
+
if (file)
|
|
2477
|
+
void onImport(file);
|
|
2478
|
+
} })
|
|
2479
|
+
] }),
|
|
2480
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "\u5B58\u6863\u4FDD\u5B58\u5728\u672C\u673A\uFF0C\u4E0D\u5305\u542B\u8D26\u53F7\u540C\u6B65\u548C\u591A\u4EBA\u8054\u7F51\u3002" })
|
|
2481
|
+
] });
|
|
2482
|
+
}
|
|
2483
|
+
function GameDialog({ open, title, children, onClose, container }) {
|
|
2484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Modal2, { open, title, footer: null, centered: true, className: "sia-game-dialog", onCancel: onClose, getContainer: container, children });
|
|
2485
|
+
}
|
|
2486
|
+
function GameEquipmentComparison({ engine, state: s, onAction, itemId }) {
|
|
2487
|
+
const item = s.inventory.find((i) => i.id === itemId);
|
|
2488
|
+
if (!item)
|
|
2489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "\u7269\u54C1\u5DF2\u4E0D\u5728\u80CC\u5305\u4E2D\u3002" });
|
|
2490
|
+
const old = s.equipment[item.slot];
|
|
2491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
2492
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "compare", children: [
|
|
2493
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { children: [
|
|
2494
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "eyebrow", children: "\u5F53\u524D\u88C5\u5907" }),
|
|
2495
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: old?.name || "\u672A\u88C5\u5907" }),
|
|
2496
|
+
old && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ItemStats, { item: old })
|
|
2497
|
+
] }),
|
|
2498
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { children: [
|
|
2499
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "eyebrow", children: [
|
|
2500
|
+
"\u5F85\u88C5\u5907 \xB7 ",
|
|
2501
|
+
engine.definition.rarities[item.tier]
|
|
2502
|
+
] }),
|
|
2503
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { children: item.name }),
|
|
2504
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ItemStats, { item })
|
|
2505
|
+
] })
|
|
2506
|
+
] }),
|
|
2507
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("p", { children: [
|
|
2508
|
+
"\u540C\u90E8\u4F4D\u5F3A\u5316 +",
|
|
2509
|
+
s.upgrades[item.slot],
|
|
2510
|
+
" \u5B8C\u6574\u7EE7\u627F\u3002"
|
|
2511
|
+
] }),
|
|
2512
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "compare-delta", children: ["atk", "def", "hp"].map((key, i) => {
|
|
2513
|
+
const delta = item[key] - (old?.[key] || 0);
|
|
2514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: delta >= 0 ? "jade" : "red-text", children: [
|
|
2515
|
+
["\u653B\u51FB", "\u9632\u5FA1", "\u6C14\u8840"][i],
|
|
2516
|
+
" ",
|
|
2517
|
+
delta >= 0 ? "+" : "",
|
|
2518
|
+
delta
|
|
2519
|
+
] }, key);
|
|
2520
|
+
}) }),
|
|
2521
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(GameButton, { className: "primary-button full", disabled: busy(s), onClick: command(onAction, "equip", item.id), children: "\u88C5\u5907" })
|
|
2522
|
+
] });
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
// src/game/IdleGameApp.tsx
|
|
2526
|
+
var import_react9 = require("react");
|
|
2527
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
2528
|
+
function IdleGameApp({ definition, className = "", style, onStateChange }) {
|
|
2529
|
+
const engineRef = (0, import_react9.useRef)();
|
|
2530
|
+
if (!engineRef.current)
|
|
2531
|
+
engineRef.current = createIdleEngine(definition);
|
|
2532
|
+
const engine = engineRef.current;
|
|
2533
|
+
const stateRef = (0, import_react9.useRef)();
|
|
2534
|
+
if (!stateRef.current)
|
|
2535
|
+
stateRef.current = engine.freshState();
|
|
2536
|
+
const s = stateRef.current;
|
|
2537
|
+
const [, refresh] = (0, import_react9.useReducer)((n) => n + 1, 0);
|
|
2538
|
+
const [page, setPage] = (0, import_react9.useState)("battle"), [dialog, setDialog] = (0, import_react9.useState)(""), [message, setMessage] = (0, import_react9.useState)("");
|
|
2539
|
+
const [event, setEvent] = (0, import_react9.useState)(null), [sequence, setSequence] = (0, import_react9.useState)(0);
|
|
2540
|
+
const [report, setReport] = (0, import_react9.useState)(null), [pending, setPending] = (0, import_react9.useState)(null), [itemId, setItemId] = (0, import_react9.useState)("");
|
|
2541
|
+
const host = (0, import_react9.useRef)(null), lastTick = (0, import_react9.useRef)(Date.now()), initialized = (0, import_react9.useRef)(false), saveWarning = (0, import_react9.useRef)(false);
|
|
2542
|
+
const observe = (0, import_react9.useRef)(onStateChange);
|
|
2543
|
+
observe.current = onStateChange;
|
|
2544
|
+
function save() {
|
|
2545
|
+
const current = stateRef.current;
|
|
2546
|
+
try {
|
|
2547
|
+
current.savedAt = Date.now();
|
|
2548
|
+
localStorage.setItem(definition.saveKey, engine.serialize(current, current.savedAt));
|
|
2549
|
+
saveWarning.current = false;
|
|
2550
|
+
} catch {
|
|
2551
|
+
if (!saveWarning.current) {
|
|
2552
|
+
setMessage("\u6D4F\u89C8\u5668\u672A\u80FD\u4FDD\u5B58\u8FDB\u5EA6\uFF0C\u8BF7\u5728\u8BBE\u7F6E\u4E2D\u5BFC\u51FA\u5B58\u6863\u3002");
|
|
2553
|
+
saveWarning.current = true;
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
function changed() {
|
|
2558
|
+
save();
|
|
2559
|
+
refresh();
|
|
2560
|
+
observe.current?.(stateRef.current);
|
|
2561
|
+
}
|
|
2562
|
+
(0, import_react9.useEffect)(() => {
|
|
2563
|
+
if (message) {
|
|
2564
|
+
const timer = setTimeout(() => setMessage(""), 3200);
|
|
2565
|
+
return () => clearTimeout(timer);
|
|
2566
|
+
}
|
|
2567
|
+
}, [message]);
|
|
2568
|
+
(0, import_react9.useEffect)(() => {
|
|
2569
|
+
if (!initialized.current) {
|
|
2570
|
+
try {
|
|
2571
|
+
const raw = localStorage.getItem(definition.saveKey);
|
|
2572
|
+
if (raw) {
|
|
2573
|
+
stateRef.current = engine.hydrate(JSON.parse(raw));
|
|
2574
|
+
const result = engine.settleOffline(stateRef.current);
|
|
2575
|
+
if (result) {
|
|
2576
|
+
setReport(result);
|
|
2577
|
+
setDialog("offline");
|
|
2578
|
+
}
|
|
2579
|
+
}
|
|
2580
|
+
} catch {
|
|
2581
|
+
setMessage("\u5B58\u6863\u8BFB\u53D6\u5931\u8D25\uFF0C\u5F53\u524D\u4EE5\u5185\u5B58\u65B0\u6863\u8FD0\u884C\uFF1B\u53EF\u5728\u8BBE\u7F6E\u4E2D\u5BFC\u5165\u5907\u4EFD\u3002");
|
|
2582
|
+
}
|
|
2583
|
+
engine.addLog(stateRef.current, "\u6B22\u8FCE\u5F52\u6765\uFF0C\u70B9\u51FB\u5F00\u59CB\u6302\u673A\u7EE7\u7EED\u5386\u7EC3\u3002");
|
|
2584
|
+
initialized.current = true;
|
|
2585
|
+
lastTick.current = Date.now();
|
|
2586
|
+
refresh();
|
|
2587
|
+
}
|
|
2588
|
+
const timer = setInterval(() => {
|
|
2589
|
+
if (document.hidden)
|
|
2590
|
+
return;
|
|
2591
|
+
const now = Date.now(), elapsed = Math.floor((now - lastTick.current) / 1e3);
|
|
2592
|
+
if (elapsed < 1)
|
|
2593
|
+
return;
|
|
2594
|
+
const current = stateRef.current;
|
|
2595
|
+
if (elapsed > 15 && current.idle) {
|
|
2596
|
+
current.savedAt = lastTick.current;
|
|
2597
|
+
engine.settleOffline(current, now);
|
|
2598
|
+
setEvent(null);
|
|
2599
|
+
} else {
|
|
2600
|
+
const next = engine.tick(current);
|
|
2601
|
+
setEvent(next);
|
|
2602
|
+
if (next) {
|
|
2603
|
+
setSequence((n) => n + 1);
|
|
2604
|
+
if (next.bossWin)
|
|
2605
|
+
setMessage(next.first ? `\u9996\u901A\u6210\u529F\uFF01${next.reward}\u5DF2\u6536\u5165\u884C\u56CA\u3002` : "\u9996\u9886\u6311\u6218\u6210\u529F\uFF01");
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
lastTick.current = now;
|
|
2609
|
+
changed();
|
|
2610
|
+
}, 1e3);
|
|
2611
|
+
const visibility = () => {
|
|
2612
|
+
if (document.hidden) {
|
|
2613
|
+
save();
|
|
2614
|
+
lastTick.current = Date.now();
|
|
2615
|
+
} else {
|
|
2616
|
+
const result = engine.settleOffline(stateRef.current);
|
|
2617
|
+
if (result) {
|
|
2618
|
+
setReport(result);
|
|
2619
|
+
setDialog("offline");
|
|
2620
|
+
}
|
|
2621
|
+
lastTick.current = Date.now();
|
|
2622
|
+
setEvent(null);
|
|
2623
|
+
changed();
|
|
2624
|
+
}
|
|
2625
|
+
};
|
|
2626
|
+
window.addEventListener("pagehide", save);
|
|
2627
|
+
document.addEventListener("visibilitychange", visibility);
|
|
2628
|
+
return () => {
|
|
2629
|
+
clearInterval(timer);
|
|
2630
|
+
window.removeEventListener("pagehide", save);
|
|
2631
|
+
document.removeEventListener("visibilitychange", visibility);
|
|
2632
|
+
save();
|
|
2633
|
+
};
|
|
2634
|
+
}, [engine, definition]);
|
|
2635
|
+
function action({ type, id = "" }) {
|
|
2636
|
+
const current = stateRef.current, locked = Boolean(current.fight?.boss && current.fight.status === "active");
|
|
2637
|
+
if (type === "page") {
|
|
2638
|
+
if (["battle", "maps", "gear", "pets"].includes(id))
|
|
2639
|
+
setPage(id);
|
|
2640
|
+
return;
|
|
2641
|
+
}
|
|
2642
|
+
if (type === "settings" || type === "help") {
|
|
2643
|
+
setDialog(type);
|
|
2644
|
+
return;
|
|
2645
|
+
}
|
|
2646
|
+
if (type === "inspect") {
|
|
2647
|
+
setItemId(id);
|
|
2648
|
+
setDialog("compare");
|
|
2649
|
+
return;
|
|
2650
|
+
}
|
|
2651
|
+
if (locked) {
|
|
2652
|
+
setMessage("\u9996\u9886\u6311\u6218\u4E2D\uFF0C\u8BF7\u7B49\u5F85\u6218\u6597\u7ED3\u675F\u3002");
|
|
2653
|
+
return;
|
|
2654
|
+
}
|
|
2655
|
+
let success = true;
|
|
2656
|
+
if (type === "idle") {
|
|
2657
|
+
current.idle = !current.idle;
|
|
2658
|
+
if (!current.idle)
|
|
2659
|
+
current.fight = null;
|
|
2660
|
+
engine.addLog(current, current.idle ? "\u5F00\u59CB\u6302\u673A\u4FEE\u884C\u3002" : "\u6682\u505C\u6302\u673A\uFF0C\u9759\u5FC3\u6574\u5907\u3002");
|
|
2661
|
+
}
|
|
2662
|
+
if (type === "boss") {
|
|
2663
|
+
engine.beginFight(current, true);
|
|
2664
|
+
setPage("battle");
|
|
2665
|
+
}
|
|
2666
|
+
if (type === "map") {
|
|
2667
|
+
const index = Number(id);
|
|
2668
|
+
if (!Number.isInteger(index) || index < 0 || index > current.unlocked)
|
|
2669
|
+
return;
|
|
2670
|
+
current.map = index;
|
|
2671
|
+
current.fight = null;
|
|
2672
|
+
setPage("battle");
|
|
2673
|
+
engine.addLog(current, `\u6765\u5230${definition.maps[index].name}\u3002`);
|
|
2674
|
+
}
|
|
2675
|
+
if (type === "equip") {
|
|
2676
|
+
success = engine.equip(current, id);
|
|
2677
|
+
if (success) {
|
|
2678
|
+
current.fight = null;
|
|
2679
|
+
setDialog("");
|
|
2680
|
+
setMessage("\u88C5\u5907\u6210\u529F\uFF0C\u6218\u529B\u5DF2\u66F4\u65B0\u3002");
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
if (type === "upgrade") {
|
|
2684
|
+
success = engine.upgrade(current, id);
|
|
2685
|
+
if (success) {
|
|
2686
|
+
current.fight = null;
|
|
2687
|
+
setMessage("\u90E8\u4F4D\u5F3A\u5316\u6210\u529F\u3002");
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
if (type === "dismantle")
|
|
2691
|
+
success = engine.dismantle(current, id);
|
|
2692
|
+
if (type === "forge")
|
|
2693
|
+
success = engine.forge(current);
|
|
2694
|
+
if (type === "train") {
|
|
2695
|
+
success = engine.trainPet(current, id);
|
|
2696
|
+
if (success)
|
|
2697
|
+
current.fight = null;
|
|
2698
|
+
}
|
|
2699
|
+
if (type === "unlock")
|
|
2700
|
+
success = engine.unlockPet(current, id);
|
|
2701
|
+
if (type === "deploy" && current.pets[id]) {
|
|
2702
|
+
current.pet = id;
|
|
2703
|
+
current.fight = null;
|
|
2704
|
+
}
|
|
2705
|
+
if (type === "lock") {
|
|
2706
|
+
const item = current.inventory.find((i) => i.id === id);
|
|
2707
|
+
if (item)
|
|
2708
|
+
item.locked = !item.locked;
|
|
2709
|
+
}
|
|
2710
|
+
if (!success)
|
|
2711
|
+
setMessage("\u5F53\u524D\u6761\u4EF6\u4E0D\u8DB3\uFF0C\u64CD\u4F5C\u672A\u6267\u884C\u3002");
|
|
2712
|
+
setEvent(null);
|
|
2713
|
+
changed();
|
|
2714
|
+
}
|
|
2715
|
+
async function importFile(file) {
|
|
2716
|
+
try {
|
|
2717
|
+
if (file.size > 1e6)
|
|
2718
|
+
throw new Error("\u6587\u4EF6\u8FC7\u5927");
|
|
2719
|
+
const loaded = engine.hydrate(JSON.parse(await file.text()));
|
|
2720
|
+
setPending(loaded);
|
|
2721
|
+
setDialog("import");
|
|
2722
|
+
} catch {
|
|
2723
|
+
setMessage("\u5BFC\u5165\u5931\u8D25\uFF0C\u8BF7\u9009\u62E9\u6709\u6548\u7684\u6E38\u620F JSON \u5B58\u6863\u3002");
|
|
2724
|
+
}
|
|
2725
|
+
}
|
|
2726
|
+
function exportFile() {
|
|
2727
|
+
save();
|
|
2728
|
+
const url = URL.createObjectURL(new Blob([engine.serialize(stateRef.current)], { type: "application/json;charset=utf-8" }));
|
|
2729
|
+
const anchor = document.createElement("a");
|
|
2730
|
+
anchor.href = url;
|
|
2731
|
+
anchor.download = `${definition.title}-\u4FEE\u884C\u5B58\u6863.json`;
|
|
2732
|
+
anchor.click();
|
|
2733
|
+
setTimeout(() => URL.revokeObjectURL(url), 1e3);
|
|
2734
|
+
}
|
|
2735
|
+
const view = { engine, state: s, onAction: action };
|
|
2736
|
+
const titles = { settings: "\u4FEE\u884C\u8BBE\u7F6E \xB7 \u5B58\u6863", help: "\u4FEE\u884C\u5165\u95E8", compare: "\u88C5\u5907\u5BF9\u6BD4", offline: "\u4E45\u522B\u5F52\u6765\uFF0C\u4FEE\u884C\u672A\u6B47", import: "\u786E\u8BA4\u5BFC\u5165\u5B58\u6863" };
|
|
2737
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { ref: host, className: `sia-game ${className}`, style, "data-sia-theme": "dark", children: [
|
|
2738
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameShell, { ...view, page, children: page === "battle" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameBattleStage, { ...view, event, sequence }) : page === "maps" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameMapPanel, { ...view }) : page === "gear" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameEquipmentPanel, { ...view }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GamePetPanel, { ...view }) }),
|
|
2739
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(GameDialog, { open: Boolean(dialog), title: titles[dialog] || "", onClose: () => setDialog(""), container: () => host.current, children: [
|
|
2740
|
+
dialog === "settings" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameSavePanel, { onExport: exportFile, onImport: importFile }),
|
|
2741
|
+
dialog === "compare" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameEquipmentComparison, { ...view, itemId }),
|
|
2742
|
+
dialog === "help" && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "help-content", children: [
|
|
2743
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { children: [
|
|
2744
|
+
"\u5F00\u59CB\u6302\u673A\u540E\uFF0C\u6BCF\u79D2\u81EA\u52A8\u51FA\u624B\u5E76\u62FE\u53D6\u5956\u52B1\u3002\u5173\u95ED\u9875\u9762\u540E\uFF0C\u4E0B\u6B21\u8FDB\u5165\u7ED3\u7B97\u6700\u591A ",
|
|
2745
|
+
(definition.offlineCapSeconds ?? 43200) / 3600,
|
|
2746
|
+
" \u5C0F\u65F6\u7684\u666E\u901A\u6218\u6597\u6536\u76CA\u3002"
|
|
2747
|
+
] }),
|
|
2748
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("ol", { children: [
|
|
2749
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: "\u6302\u673A\u83B7\u5F97\u7ECF\u9A8C\u3001\u94DC\u94B1\u3001\u88C5\u5907\u548C\u7075\u8574\u3002" }),
|
|
2750
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: "\u66F4\u6362\u88C5\u5907\uFF0C\u5F3A\u5316\u90E8\u4F4D\uFF1B\u5F3A\u5316\u4E0D\u4F1A\u968F\u6362\u88C5\u4E22\u5931\u3002" }),
|
|
2751
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: "\u7ED3\u7F18\u5E76\u57F9\u517B\u4F19\u4F34\uFF0C\u6539\u53D8\u8FFD\u51FB\u3001\u6CBB\u7597\u4E0E\u51CF\u4F24\u6548\u679C\u3002" }),
|
|
2752
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: "\u6311\u6218\u9996\u9886\uFF0C\u9996\u901A\u83B7\u5F97\u88C5\u5907\u5E76\u89E3\u9501\u4E0B\u4E00\u7AE0\u3002" })
|
|
2753
|
+
] }),
|
|
2754
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { children: "\u6311\u6218\u5931\u8D25\u4E0D\u6263\u8D44\u6E90\u3002\u9996\u9886\u6218\u671F\u95F4\u6682\u65F6\u4E0D\u80FD\u6362\u88C5\u3001\u57F9\u517B\u6216\u5207\u6362\u5730\u56FE\u3002" })
|
|
2755
|
+
] }),
|
|
2756
|
+
dialog === "offline" && report && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
2757
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { children: [
|
|
2758
|
+
"\u79BB\u5F00 ",
|
|
2759
|
+
Math.floor(report.seconds / 3600),
|
|
2760
|
+
" \u5C0F\u65F6 ",
|
|
2761
|
+
Math.floor(report.seconds % 3600 / 60),
|
|
2762
|
+
" \u5206\u949F\uFF0C\u6536\u76CA\u5DF2\u81EA\u52A8\u5165\u8D26\u3002"
|
|
2763
|
+
] }),
|
|
2764
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "offline-grid", children: [["\u7ECF\u9A8C", report.xp], ["\u94DC\u94B1", report.gold], ["\u7075\u8574", report.essence], ["\u88C5\u5907\u6389\u843D", report.drops]].map(([label, value]) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { children: [
|
|
2765
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: label }),
|
|
2766
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("b", { children: value })
|
|
2767
|
+
] }, label)) }),
|
|
2768
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { children: [
|
|
2769
|
+
"\u51FB\u8D25 ",
|
|
2770
|
+
report.kills,
|
|
2771
|
+
" \u4E2A\u654C\u4EBA\uFF0C\u80CC\u5305\u6EA2\u51FA\u6389\u843D\u5DF2\u8F6C\u4E3A\u953B\u6750\u3002"
|
|
2772
|
+
] }),
|
|
2773
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameButton, { className: "primary-button full", onClick: () => setDialog(""), children: "\u7EE7\u7EED\u5386\u7EC3" })
|
|
2774
|
+
] }),
|
|
2775
|
+
dialog === "import" && pending && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
2776
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { children: [
|
|
2777
|
+
"\u5373\u5C06\u8F7D\u5165 Lv.",
|
|
2778
|
+
pending.level,
|
|
2779
|
+
" \u7684\u89D2\u8272\uFF0C\u5DF2\u89E3\u9501 ",
|
|
2780
|
+
pending.unlocked + 1,
|
|
2781
|
+
" \u7AE0\u3002\u786E\u8BA4\u540E\u5C06\u66FF\u6362\u5F53\u524D\u5B58\u6863\u3002"
|
|
2782
|
+
] }),
|
|
2783
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(GameButton, { className: "primary-button full", disabled: Boolean(s.fight?.boss && s.fight.status === "active"), onClick: () => {
|
|
2784
|
+
stateRef.current = pending;
|
|
2785
|
+
setPending(null);
|
|
2786
|
+
setDialog("");
|
|
2787
|
+
setEvent(null);
|
|
2788
|
+
lastTick.current = Date.now();
|
|
2789
|
+
changed();
|
|
2790
|
+
setMessage("\u5B58\u6863\u5DF2\u5BFC\u5165\u3002");
|
|
2791
|
+
}, children: "\u786E\u8BA4\u66FF\u6362\u5F53\u524D\u5B58\u6863" })
|
|
2792
|
+
] })
|
|
2793
|
+
] }),
|
|
2794
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `game-toast ${message ? "visible" : ""}`, role: "status", children: message })
|
|
2795
|
+
] });
|
|
2796
|
+
}
|
|
2797
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2798
|
+
0 && (module.exports = {
|
|
2799
|
+
GameBattleStage,
|
|
2800
|
+
GameBossPanel,
|
|
2801
|
+
GameButton,
|
|
2802
|
+
GameCharacterPanel,
|
|
2803
|
+
GameDialog,
|
|
2804
|
+
GameEquipmentComparison,
|
|
2805
|
+
GameEquipmentPanel,
|
|
2806
|
+
GameLogPanel,
|
|
2807
|
+
GameMapPanel,
|
|
2808
|
+
GamePetPanel,
|
|
2809
|
+
GameResourceSummary,
|
|
2810
|
+
GameSavePanel,
|
|
2811
|
+
GameShell,
|
|
2812
|
+
GameSprite,
|
|
2813
|
+
IdleGameApp,
|
|
2814
|
+
createIdleEngine
|
|
2815
|
+
});
|