@soffits/dsh-plugin-sdk 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ui/client.js ADDED
@@ -0,0 +1,1138 @@
1
+ /* @soffits/dsh-plugin-sdk/ui: built by scripts/build.mjs from src/client/, locale/ and Lucide 1.74.0 (ISC; see LICENSE-lucide). Do not edit. */
2
+ window.__ModuleLoader__.load({
3
+ id: "@soffits/dsh-plugin-sdk/ui",
4
+ factory: (require) => {
5
+ var module = { exports: {} }
6
+ var exports = module.exports
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
+ var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __export = (target, all) => {
12
+ for (var name2 in all)
13
+ __defProp(target, name2, { get: all[name2], enumerable: true });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+
25
+ // ui/src/client/index.js
26
+ var index_exports = {};
27
+ __export(index_exports, {
28
+ apply: () => apply,
29
+ inject: () => inject,
30
+ name: () => name
31
+ });
32
+ module.exports = __toCommonJS(index_exports);
33
+
34
+ // virtual:locales
35
+ var locales_default = { "en": { "meta": { "title": "UI kit", "description": "Shared pieces for plugin pages: icon tiles, ticking times, rings and sparklines, a live dot and change cues." }, "ui": { "live": "Live", "connecting": "Connecting", "updated": "Updated {time}", "liveUpdated": "Live \xB7 updated {time}", "justNow": "just now", "newSince": "New since you last looked", "suggested": "Suggested", "now": "now", "inDuration": "in {duration}", "earlier": "+{n} earlier", "less": "Show less", "send": "Send", "mentionPick": "Mention someone", "noMatch": "Nobody by that name", "cancel": "Cancel", "mentioned": "You were mentioned", "unreadCount": "{n} unread" } }, "fr": { "meta": { "title": "Kit d\u2019interface", "description": "Des \xE9l\xE9ments partag\xE9s pour les pages des plugins : tuiles d\u2019ic\xF4nes, heures qui avancent, anneaux et courbes, point \xAB en direct \xBB et signaux de changement." }, "ui": { "live": "En direct", "connecting": "Connexion", "updated": "Mis \xE0 jour \xE0 {time}", "liveUpdated": "En direct \xB7 mis \xE0 jour \xE0 {time}", "justNow": "\xE0 l\u2019instant", "newSince": "Nouveau depuis votre derni\xE8re visite", "suggested": "Suggestions", "now": "maintenant", "inDuration": "dans {duration}", "earlier": "+{n} plus anciens", "less": "Moins", "send": "Envoyer", "mentionPick": "Mentionner quelqu\u2019un", "noMatch": "Personne de ce nom", "cancel": "Annuler", "mentioned": "On vous a mentionn\xE9", "unreadCount": "{n} non lus" } }, "zh": { "meta": { "title": "\u754C\u9762\u7EC4\u4EF6", "description": "\u63D2\u4EF6\u9875\u9762\u5171\u7528\u7684\u5C0F\u90E8\u4EF6\uFF1A\u56FE\u6807\u3001\u5B9E\u65F6\u66F4\u65B0\u7684\u65F6\u95F4\u3001\u5706\u73AF\u548C\u5C0F\u6298\u7EBF\u3001\u5B9E\u65F6\u72B6\u6001\u70B9\u548C\u53D8\u5316\u63D0\u793A\u3002" }, "ui": { "live": "\u5B9E\u65F6", "connecting": "\u6B63\u5728\u8FDE\u63A5", "updated": "{time} \u66F4\u65B0", "liveUpdated": "\u5B9E\u65F6 \xB7 {time} \u66F4\u65B0", "justNow": "\u521A\u521A", "newSince": "\u4E0A\u6B21\u67E5\u770B\u4E4B\u540E\u6709\u66F4\u65B0", "suggested": "\u5EFA\u8BAE", "now": "\u73B0\u5728", "inDuration": "{duration}\u540E", "earlier": "\u8FD8\u6709 {n} \u6761\u66F4\u65E9\u7684", "less": "\u6536\u8D77", "send": "\u53D1\u9001", "mentionPick": "\u63D0\u53CA\u67D0\u4EBA", "noMatch": "\u6CA1\u6709\u8FD9\u4E2A\u540D\u5B57", "cancel": "\u53D6\u6D88", "mentioned": "\u6709\u4EBA\u63D0\u5230\u4E86\u4F60", "unreadCount": "{n} \u6761\u672A\u8BFB" } } };
36
+
37
+ // ui/src/time.js
38
+ var MINUTE = 6e4;
39
+ var HOUR = 60 * MINUTE;
40
+ var DAY = 24 * HOUR;
41
+ var UNITS = [["day", DAY], ["hour", HOUR], ["minute", MINUTE]];
42
+ function durationParts(ms, max = 2) {
43
+ if (ms < MINUTE) return [{ unit: "second", n: Math.max(0, Math.ceil(ms / 1e3)) }];
44
+ let rest = ms;
45
+ const parts = [];
46
+ for (const [unit, size] of UNITS) {
47
+ const n = Math.floor(rest / size);
48
+ rest -= n * size;
49
+ if (n > 0 || parts.length > 0) parts.push({ unit, n });
50
+ }
51
+ return parts.filter((part) => part.n > 0).slice(0, max);
52
+ }
53
+ function unitText(n, unit, locale, display = "narrow") {
54
+ return new Intl.NumberFormat(locale, { style: "unit", unit, unitDisplay: display }).format(n);
55
+ }
56
+ function unitParts(n, unit, locale) {
57
+ const parts = new Intl.NumberFormat(locale, { style: "unit", unit, unitDisplay: "narrow" }).formatToParts(n);
58
+ return {
59
+ number: parts.filter((part) => part.type === "integer" || part.type === "group" || part.type === "decimal" || part.type === "fraction").map((part) => part.value).join(""),
60
+ unit: parts.filter((part) => part.type === "unit").map((part) => part.value).join("").trim()
61
+ };
62
+ }
63
+ function formatDuration(ms, locale, max = 2) {
64
+ const texts = durationParts(ms, max).map(({ n, unit }) => unitText(n, unit, locale));
65
+ return new Intl.ListFormat(locale, { type: "unit", style: "narrow" }).format(texts);
66
+ }
67
+ var DAY_ONLY = /^(\d{4})-(\d{2})-(\d{2})$/;
68
+ function toTime(value) {
69
+ if (typeof value === "number") return value;
70
+ if (typeof value !== "string") return NaN;
71
+ const day = DAY_ONLY.exec(value);
72
+ if (day) return new Date(Number(day[1]), Number(day[2]) - 1, Number(day[3])).getTime();
73
+ return /^\d{4}-\d{2}-\d{2}T/.test(value) ? Date.parse(value) : NaN;
74
+ }
75
+ function dayDistance(time, now) {
76
+ const a = new Date(now);
77
+ const b = new Date(time);
78
+ return Math.round((new Date(b.getFullYear(), b.getMonth(), b.getDate()) - new Date(a.getFullYear(), a.getMonth(), a.getDate())) / DAY);
79
+ }
80
+ function formatRelativeDay(value, now, locale, near = 13) {
81
+ const time = toTime(value);
82
+ if (!Number.isFinite(time)) return String(value ?? "");
83
+ const days = dayDistance(time, now);
84
+ if (days === 0 && !DAY_ONLY.test(String(value))) return new Intl.DateTimeFormat(locale, { hour: "2-digit", minute: "2-digit" }).format(time);
85
+ if (Math.abs(days) <= near) return new Intl.RelativeTimeFormat(locale, { numeric: "auto" }).format(days, "day");
86
+ const sameYear = new Date(time).getFullYear() === new Date(now).getFullYear();
87
+ return new Intl.DateTimeFormat(locale, sameYear ? { month: "short", day: "numeric" } : { dateStyle: "medium" }).format(time);
88
+ }
89
+ var BUCKET_UNIT = { minutes: "minute", hours: "hour", days: "day", months: "month", years: "year" };
90
+ function formatAgo(bucket, locale) {
91
+ const unit = BUCKET_UNIT[bucket.unit];
92
+ return unit === void 0 ? null : new Intl.RelativeTimeFormat(locale, { numeric: "always", style: "short" }).format(-bucket.n, unit);
93
+ }
94
+ function formatFull(time, locale) {
95
+ return new Intl.DateTimeFormat(locale, { dateStyle: "medium", timeStyle: "short" }).format(time);
96
+ }
97
+
98
+ // ui/src/shapes.js
99
+ var TONES = Object.freeze(["ok", "warn", "bad", "accent", "violet", "muted"]);
100
+ var SEGMENT_STATES = Object.freeze(["done", "current", "ready", "todo"]);
101
+ var TONE_COLOR = Object.freeze({
102
+ ok: "var(--dsw-alias-state-success-primary)",
103
+ warn: "var(--dsw-alias-state-warn-primary)",
104
+ bad: "var(--dsw-alias-state-error-primary)",
105
+ accent: "var(--dsw-alias-state-business-primary)",
106
+ violet: "var(--dsw-alias-state-done-primary)",
107
+ muted: "var(--dsw-alias-label-tertiary)"
108
+ });
109
+ var TAG_TONE = Object.freeze({ ok: "success", warn: "warning", bad: "danger", accent: "info", violet: "info", muted: "neutral" });
110
+ var toneColor = (tone) => TONE_COLOR[tone] ?? TONE_COLOR.muted;
111
+ var tagTone = (tone) => TAG_TONE[tone] ?? "neutral";
112
+ function sparkPath(values, width, height, { pad = 2, min, max } = {}) {
113
+ const numbers = values.filter((v) => typeof v === "number" && Number.isFinite(v));
114
+ if (numbers.length === 0 || width <= 0) return { line: "", area: "", last: null };
115
+ const lo = min ?? Math.min(...numbers);
116
+ const hi = max ?? Math.max(...numbers);
117
+ const span = hi - lo || 1;
118
+ const step = values.length > 1 ? (width - 2 * pad) / (values.length - 1) : 0;
119
+ const x = (i) => values.length > 1 ? pad + i * step : width / 2;
120
+ const y = (v) => pad + (height - 2 * pad) * (1 - (Math.min(hi, Math.max(lo, v)) - lo) / span);
121
+ const runs = [[]];
122
+ values.forEach((v, i) => {
123
+ if (typeof v === "number" && Number.isFinite(v)) runs[runs.length - 1].push([x(i), y(v)]);
124
+ else if (runs[runs.length - 1].length > 0) runs.push([]);
125
+ });
126
+ if (runs[runs.length - 1].length === 0) runs.pop();
127
+ const trace = (points) => points.map(([px, py], i) => `${i ? "L" : "M"}${px.toFixed(1)} ${py.toFixed(1)}`).join("");
128
+ const line = runs.map(trace).join("");
129
+ const area = runs.map((points) => `${trace(points)}L${points[points.length - 1][0].toFixed(1)} ${height}L${points[0][0].toFixed(1)} ${height}Z`).join("");
130
+ const lastRun = runs[runs.length - 1];
131
+ return { line, area, last: lastRun[lastRun.length - 1] };
132
+ }
133
+ function share(value, max) {
134
+ return max > 0 && Number.isFinite(value) ? Math.min(1, Math.max(0, value / max)) : 0;
135
+ }
136
+
137
+ // ui/src/client/change.js
138
+ var import_react = require("react");
139
+ var WASH_MS = 2e3;
140
+ function useWash(version, key) {
141
+ const seen = (0, import_react.useRef)({ version, key });
142
+ const [washing, setWashing] = (0, import_react.useState)(0);
143
+ (0, import_react.useEffect)(() => {
144
+ const before = seen.current;
145
+ seen.current = { version, key };
146
+ if (before.version === version || before.key !== key) return void 0;
147
+ setWashing((count) => count + 1);
148
+ const timer = setTimeout(() => setWashing(0), WASH_MS);
149
+ return () => clearTimeout(timer);
150
+ }, [version, key]);
151
+ return washing === 0 ? "" : washing % 2 === 1 ? "uk-wash" : "uk-wash uk-washAgain";
152
+ }
153
+ function Wash({ version, washKey, as = "div", className, children, ...rest }) {
154
+ const wash = useWash(version, washKey);
155
+ return (0, import_react.createElement)(as, { ...rest, className: [className, wash].filter(Boolean).join(" ") || void 0 }, children);
156
+ }
157
+ function createChange({ useWords }) {
158
+ function JustNow() {
159
+ const { t } = useWords();
160
+ return (0, import_react.createElement)("span", { className: "uk-justNow" }, t("justNow"));
161
+ }
162
+ function NewDot() {
163
+ const { t } = useWords();
164
+ return (0, import_react.createElement)("span", { className: "uk-newDot", role: "img", "aria-label": t("newSince"), title: t("newSince") });
165
+ }
166
+ return { JustNow, NewDot };
167
+ }
168
+
169
+ // ui/src/client/glyphs.js
170
+ var import_react2 = require("react");
171
+ var import_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
172
+
173
+ // virtual:icons
174
+ var icons_default = { "calendar": [["path", { "d": "M8 2v3" }], ["path", { "d": "M16 2v3" }], ["rect", { "x": "3", "y": "3", "width": "18", "height": "18", "rx": "2" }], ["path", { "d": "M3 9h18" }]], "calendar-days": [["path", { "d": "M8 2v3" }], ["path", { "d": "M16 2v3" }], ["rect", { "x": "3", "y": "3", "width": "18", "height": "18", "rx": "2" }], ["path", { "d": "M3 9h18" }], ["path", { "d": "M8 13h.01" }], ["path", { "d": "M12 13h.01" }], ["path", { "d": "M16 13h.01" }], ["path", { "d": "M8 17h.01" }], ["path", { "d": "M12 17h.01" }], ["path", { "d": "M16 17h.01" }]], "calendar-check": [["path", { "d": "M8 2v3" }], ["path", { "d": "M16 2v3" }], ["rect", { "x": "3", "y": "3", "width": "18", "height": "18", "rx": "2" }], ["path", { "d": "M3 9h18" }], ["path", { "d": "m9 15 2 2 4-4" }]], "calendar-clock": [["path", { "d": "M16 14v2.2l1.6 1" }], ["path", { "d": "M16 2v3" }], ["path", { "d": "M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338" }], ["path", { "d": "M3 9h5.859" }], ["path", { "d": "M8 2v3" }], ["circle", { "cx": "16", "cy": "16", "r": "6" }]], "calendar-plus": [["path", { "d": "M16 18h6" }], ["path", { "d": "M16 2v3" }], ["path", { "d": "M19 15v6" }], ["path", { "d": "M21 11.5V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h8.3" }], ["path", { "d": "M3 9h18" }], ["path", { "d": "M8 2v3" }]], "clock": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 6v6l4 2" }]], "alarm-clock": [["circle", { "cx": "12", "cy": "13", "r": "8" }], ["path", { "d": "M12 9v4l2 2" }], ["path", { "d": "M5 3 2 6" }], ["path", { "d": "m22 6-3-3" }], ["path", { "d": "M6.38 18.7 4 21" }], ["path", { "d": "M17.64 18.67 20 21" }]], "hourglass": [["path", { "d": "M5 22h14" }], ["path", { "d": "M5 2h14" }], ["path", { "d": "M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22" }], ["path", { "d": "M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2" }]], "timer": [["line", { "x1": "10", "x2": "14", "y1": "2", "y2": "2" }], ["line", { "x1": "12", "x2": "15", "y1": "14", "y2": "11" }], ["circle", { "cx": "12", "cy": "14", "r": "8" }]], "history": [["path", { "d": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }], ["path", { "d": "M12 7v5l4 2" }]], "list-todo": [["path", { "d": "M13 5h8" }], ["path", { "d": "M13 12h8" }], ["path", { "d": "M13 19h8" }], ["path", { "d": "m3 17 2 2 4-4" }], ["rect", { "x": "3", "y": "4", "width": "6", "height": "6", "rx": "1" }]], "list-checks": [["path", { "d": "M13 5h8" }], ["path", { "d": "M13 12h8" }], ["path", { "d": "M13 19h8" }], ["path", { "d": "m3 17 2 2 4-4" }], ["path", { "d": "m3 7 2 2 4-4" }]], "square-check": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "m16 9-5.5 5.5L8 12" }]], "circle-check": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "m16 9-5.5 5.5L8 12" }]], "flag": [["path", { "d": "M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528" }]], "plane": [["path", { "d": "M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z" }]], "plane-takeoff": [["path", { "d": "M2 22h20" }], ["path", { "d": "M6.36 17.4 4 17l-2-4 1.1-.55a2 2 0 0 1 1.8 0l.17.1a2 2 0 0 0 1.8 0L8 12 5 6l.9-.45a2 2 0 0 1 2.09.2l4.02 3a2 2 0 0 0 2.1.2l4.19-2.06a2.41 2.41 0 0 1 1.73-.17L21 7a1.4 1.4 0 0 1 .87 1.99l-.38.76c-.23.46-.6.84-1.07 1.08L7.58 17.2a2 2 0 0 1-1.22.18Z" }]], "plane-landing": [["path", { "d": "M2 22h20" }], ["path", { "d": "M3.77 10.77 2 9l2-4.5 1.1.55c.55.28.9.84.9 1.45s.35 1.17.9 1.45L8 8.5l3-6 1.05.53a2 2 0 0 1 1.09 1.52l.72 5.4a2 2 0 0 0 1.09 1.52l4.4 2.2c.42.22.78.55 1.01.96l.6 1.03c.49.88-.06 1.98-1.06 2.1l-1.18.15c-.47.06-.95-.02-1.37-.24L4.29 11.15a2 2 0 0 1-.52-.38Z" }]], "luggage": [["path", { "d": "M6 20a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2" }], ["path", { "d": "M8 18V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v14" }], ["path", { "d": "M10 20h4" }], ["circle", { "cx": "16", "cy": "20", "r": "2" }], ["circle", { "cx": "8", "cy": "20", "r": "2" }]], "ticket": [["path", { "d": "M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z" }], ["path", { "d": "M13 5v2" }], ["path", { "d": "M13 17v2" }], ["path", { "d": "M13 11v2" }]], "map": [["path", { "d": "M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z" }], ["path", { "d": "M15 5.764v15" }], ["path", { "d": "M9 3.236v15" }]], "map-pin": [["path", { "d": "M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0" }], ["circle", { "cx": "12", "cy": "10", "r": "3" }]], "compass": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z" }]], "navigation": [["polygon", { "points": "3 11 22 2 13 21 11 13 3 11" }]], "globe": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }], ["path", { "d": "M2 12h20" }]], "train-front": [["path", { "d": "M8 3.1V7a4 4 0 0 0 8 0V3.1" }], ["path", { "d": "m9 15-1-1" }], ["path", { "d": "m15 15 1-1" }], ["path", { "d": "M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z" }], ["path", { "d": "m8 19-2 3" }], ["path", { "d": "m16 19 2 3" }]], "bus": [["path", { "d": "M8 6v6" }], ["path", { "d": "M15 6v6" }], ["path", { "d": "M2 12h19.6" }], ["path", { "d": "M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3" }], ["circle", { "cx": "7", "cy": "18", "r": "2" }], ["path", { "d": "M9 18h5" }], ["circle", { "cx": "16", "cy": "18", "r": "2" }]], "car": [["path", { "d": "M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2" }], ["circle", { "cx": "7", "cy": "17", "r": "2" }], ["path", { "d": "M9 17h6" }], ["circle", { "cx": "17", "cy": "17", "r": "2" }]], "bike": [["circle", { "cx": "18.5", "cy": "17.5", "r": "3.5" }], ["circle", { "cx": "5.5", "cy": "17.5", "r": "3.5" }], ["circle", { "cx": "15", "cy": "5", "r": "1" }], ["path", { "d": "M12 17.5V14l-3-3 4-3 2 3h2" }]], "footprints": [["path", { "d": "M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z" }], ["path", { "d": "M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z" }], ["path", { "d": "M16 17h4" }], ["path", { "d": "M4 13h4" }]], "hotel": [["path", { "d": "M10 22v-6.57" }], ["path", { "d": "M12 11h.01" }], ["path", { "d": "M12 7h.01" }], ["path", { "d": "M14 15.43V22" }], ["path", { "d": "M15 16a5 5 0 0 0-6 0" }], ["path", { "d": "M16 11h.01" }], ["path", { "d": "M16 7h.01" }], ["path", { "d": "M8 11h.01" }], ["path", { "d": "M8 7h.01" }], ["rect", { "x": "4", "y": "2", "width": "16", "height": "20", "rx": "2" }]], "id-card": [["path", { "d": "M13 19a4 4 0 00-8 0" }], ["path", { "d": "M16 10h2" }], ["path", { "d": "M16 14h2" }], ["circle", { "cx": "9", "cy": "12", "r": "3" }], ["rect", { "x": "2", "y": "5", "width": "20", "height": "14", "rx": "2" }]], "syringe": [["path", { "d": "m18 2 4 4" }], ["path", { "d": "m17 7 3-3" }], ["path", { "d": "M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5" }], ["path", { "d": "m9 11 4 4" }], ["path", { "d": "m5 19-3 3" }], ["path", { "d": "m14 4 6 6" }]], "pill": [["path", { "d": "m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z" }], ["path", { "d": "m8.5 8.5 7 7" }]], "heart-pulse": [["path", { "d": "M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5" }], ["path", { "d": "M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27" }]], "activity": [["path", { "d": "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2" }]], "stethoscope": [["path", { "d": "M11 2v2" }], ["path", { "d": "M5 2v2" }], ["path", { "d": "M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1" }], ["path", { "d": "M8 15a6 6 0 0 0 12 0v-3" }], ["circle", { "cx": "20", "cy": "10", "r": "2" }]], "thermometer": [["path", { "d": "M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z" }]], "bed": [["path", { "d": "M2 4v16" }], ["path", { "d": "M2 8h18a2 2 0 0 1 2 2v10" }], ["path", { "d": "M2 17h20" }], ["path", { "d": "M6 8v9" }]], "bed-double": [["path", { "d": "M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8" }], ["path", { "d": "M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4" }], ["path", { "d": "M12 4v6" }], ["path", { "d": "M2 18h20" }]], "moon": [["path", { "d": "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" }]], "sun": [["circle", { "cx": "12", "cy": "12", "r": "4" }], ["path", { "d": "M12 2v2" }], ["path", { "d": "M12 20v2" }], ["path", { "d": "m4.93 4.93 1.41 1.41" }], ["path", { "d": "m17.66 17.66 1.41 1.41" }], ["path", { "d": "M2 12h2" }], ["path", { "d": "M20 12h2" }], ["path", { "d": "m6.34 17.66-1.41 1.41" }], ["path", { "d": "m19.07 4.93-1.41 1.41" }]], "sun-medium": [["circle", { "cx": "12", "cy": "12", "r": "4" }], ["path", { "d": "M12 3v1" }], ["path", { "d": "M12 20v1" }], ["path", { "d": "M3 12h1" }], ["path", { "d": "M20 12h1" }], ["path", { "d": "m18.364 5.636-.707.707" }], ["path", { "d": "m6.343 17.657-.707.707" }], ["path", { "d": "m5.636 5.636.707.707" }], ["path", { "d": "m17.657 17.657.707.707" }]], "sunrise": [["path", { "d": "M12 2v8" }], ["path", { "d": "m4.93 10.93 1.41 1.41" }], ["path", { "d": "M2 18h2" }], ["path", { "d": "M20 18h2" }], ["path", { "d": "m19.07 10.93-1.41 1.41" }], ["path", { "d": "M22 22H2" }], ["path", { "d": "m8 6 4-4 4 4" }], ["path", { "d": "M16 18a4 4 0 0 0-8 0" }]], "sunset": [["path", { "d": "M12 10V2" }], ["path", { "d": "m4.93 10.93 1.41 1.41" }], ["path", { "d": "M2 18h2" }], ["path", { "d": "M20 18h2" }], ["path", { "d": "m19.07 10.93-1.41 1.41" }], ["path", { "d": "M22 22H2" }], ["path", { "d": "m16 6-4 4-4-4" }], ["path", { "d": "M16 18a4 4 0 0 0-8 0" }]], "dumbbell": [["path", { "d": "M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z" }], ["path", { "d": "m2.5 21.5 1.4-1.4" }], ["path", { "d": "m20.1 3.9 1.4-1.4" }], ["path", { "d": "M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z" }], ["path", { "d": "m9.6 14.4 4.8-4.8" }]], "scale": [["path", { "d": "M12 3v18" }], ["path", { "d": "m19 8 3 8a5 5 0 0 1-6 0zV7" }], ["path", { "d": "M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1" }], ["path", { "d": "m5 8 3 8a5 5 0 0 1-6 0zV7" }], ["path", { "d": "M7 21h10" }]], "weight": [["circle", { "cx": "12", "cy": "5", "r": "3" }], ["path", { "d": "M6.5 8a2 2 0 0 0-1.905 1.46L2.1 18.5A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.5A2 2 0 0 0 17.48 8Z" }]], "brain": [["path", { "d": "M12 18V5" }], ["path", { "d": "M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4" }], ["path", { "d": "M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294" }], ["path", { "d": "M17.996 5.125a4 4 0 012.526 5.77" }], ["path", { "d": "M18 18a4 4 0 002-7.465" }], ["path", { "d": "M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517" }], ["path", { "d": "M6 18a4 4 0 01-2-7.465" }], ["path", { "d": "M6.004 5.125a4 4 0 00-2.526 5.77" }]], "droplet": [["path", { "d": "M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z" }]], "droplets": [["path", { "d": "M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z" }], ["path", { "d": "M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97" }]], "smile": [["path", { "d": "M15 10V9" }], ["path", { "d": "M16.472 15a6 6 0 01-8.943 0" }], ["path", { "d": "M9 10V9" }], ["circle", { "cx": "12", "cy": "12", "r": "10" }]], "utensils": [["path", { "d": "M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2" }], ["path", { "d": "M7 2v20" }], ["path", { "d": "M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7" }]], "utensils-crossed": [["path", { "d": "m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8" }], ["path", { "d": "M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7" }], ["path", { "d": "m2.1 21.8 6.4-6.3" }], ["path", { "d": "m19 5-7 7" }]], "sandwich": [["path", { "d": "m2.37 11.223 8.372-6.777a2 2 0 0 1 2.516 0l8.371 6.777" }], ["path", { "d": "M21 15a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-5.25" }], ["path", { "d": "M3 15a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h9" }], ["path", { "d": "m6.67 15 6.13 4.6a2 2 0 0 0 2.8-.4l3.15-4.2" }], ["rect", { "width": "20", "height": "4", "x": "2", "y": "11", "rx": "1" }]], "soup": [["path", { "d": "M11.248 3c.273.1.808.53.747 1.36-.05.83-.938 1.2-.989 2.02-.06.78.333 1.24.727 1.62" }], ["path", { "d": "M16.252 3c.268.1.794.53.745 1.36-.06.83-.923 1.2-.993 2.02-.05.78.338 1.24.725 1.62" }], ["path", { "d": "M19.5 12 22 6" }], ["path", { "d": "M4 12a1 1 0 00-.99 1.133A9 9 0 0012 21a9 9 0 008.99-7.867A1 1 0 0020 12z" }], ["path", { "d": "M6.252 3c.268.1.794.53.745 1.36-.06.83-.923 1.2-.993 2.02-.05.78.338 1.24.735 1.62" }], ["path", { "d": "M7 21h10" }]], "salad": [["path", { "d": "M19.496 12a2.5 2.5 0 00.399-2.214A2 2 0 0020.32 6.5 2 2 0 0019 3a2 2 0 00-1.5.68 2 2 0 00-3.287.424 2.5 2.5 0 00-3.189 2.06A3 3 0 0012 12l4-4" }], ["path", { "d": "M4 12a1 1 0 00-.99 1.133A9 9 0 0012 21a9 9 0 008.99-7.867A1 1 0 0020 12z" }], ["path", { "d": "M7 21h10" }], ["path", { "d": "M9.85 6.907A3.5 3.5 0 005.05 12" }]], "apple": [["path", { "d": "M12 6.528V3a1 1 0 0 1 1-1h0" }], ["path", { "d": "M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21" }]], "milk": [["path", { "d": "M8 2h8" }], ["path", { "d": "M9 2v2.789a4 4 0 0 1-.672 2.219l-.656.984A4 4 0 0 0 7 10.212V20a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-9.789a4 4 0 0 0-.672-2.219l-.656-.984A4 4 0 0 1 15 4.788V2" }], ["path", { "d": "M7 15a6.472 6.472 0 0 1 5 0 6.47 6.47 0 0 0 5 0" }]], "coffee": [["path", { "d": "M10 2v2" }], ["path", { "d": "M14 2v2" }], ["path", { "d": "M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1" }], ["path", { "d": "M6 2v2" }]], "cup-soda": [["path", { "d": "m6 8 1.75 12.28a2 2 0 0 0 2 1.72h4.54a2 2 0 0 0 2-1.72L18 8" }], ["path", { "d": "M5 8h14" }], ["path", { "d": "M7 15a6.47 6.47 0 0 1 5 0 6.47 6.47 0 0 0 5 0" }], ["path", { "d": "m12 8 1-6h2" }]], "egg": [["path", { "d": "M12 2C8 2 4 8 4 14a8 8 0 0 0 16 0c0-6-4-12-8-12" }]], "fish": [["path", { "d": "M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z" }], ["path", { "d": "M18 12v.5" }], ["path", { "d": "M16 17.93a9.77 9.77 0 0 1 0-11.86" }], ["path", { "d": "M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33" }], ["path", { "d": "M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4" }], ["path", { "d": "m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98" }]], "beef": [["path", { "d": "M16.4 13.7A6.5 6.5 0 1 0 6.28 6.6c-1.1 3.13-.78 3.9-3.18 6.08A3 3 0 0 0 5 18c4 0 8.4-1.8 11.4-4.3" }], ["path", { "d": "m18.5 6 1.754 3.5a6.48 6.48 0 0 1-1.854 8.2C15.4 20.2 11 22 7 22a3 3 0 0 1-2.68-1.66L2.4 16.5" }], ["circle", { "cx": "12.5", "cy": "8.5", "r": "2.5" }]], "pizza": [["path", { "d": "m12 14-1 1" }], ["path", { "d": "m13.75 18.25-1.25 1.42" }], ["path", { "d": "M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12" }], ["path", { "d": "M18.8 9.3a1 1 0 0 0 2.1 7.7" }], ["path", { "d": "M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z" }]], "cookie": [["path", { "d": "M11 17h.01" }], ["path", { "d": "M11.496 2c.324-.016.558.292.529.615a4 4 0 004.235 4.368.713.713 0 01.758.757 4 4 0 004.366 4.237c.323-.03.63.204.614.527a10 10 0 01-2.915 6.566A1 1 0 114.93 4.918 10 10 0 0111.496 2" }], ["path", { "d": "M12 12h.01" }], ["path", { "d": "M16 16h.01" }], ["path", { "d": "M16 3h.01" }], ["path", { "d": "M21 4h.01" }], ["path", { "d": "M21 8h.01" }], ["path", { "d": "M7 14h.01" }], ["path", { "d": "M9 8h.01" }]], "carrot": [["path", { "d": "M15 16a1 1 0 0 0-7-7q-4 4-5.987 12.385a.5.5 0 0 0 .602.602Q11 20 15 16l-3-3" }], ["path", { "d": "M15 9q4 4 7 0-3-4-7 0 4-4 0-7-4 3 0 7" }], ["path", { "d": "m8 15-2.58-2.58" }]], "croissant": [["path", { "d": "M10.2 18H4.774a1.5 1.5 0 0 1-1.352-.97 11 11 0 0 1 .132-6.487" }], ["path", { "d": "M18 10.2V4.774a1.5 1.5 0 0 0-.97-1.352 11 11 0 0 0-6.486.132" }], ["path", { "d": "M18 5a4 3 0 0 1 4 3 2 2 0 0 1-2 2 10 10 0 0 0-5.139 1.42" }], ["path", { "d": "M5 18a3 4 0 0 0 3 4 2 2 0 0 0 2-2 10 10 0 0 1 1.42-5.14" }], ["path", { "d": "M8.709 2.554a10 10 0 0 0-6.155 6.155 1.5 1.5 0 0 0 .676 1.626l9.807 5.42a2 2 0 0 0 2.718-2.718l-5.42-9.807a1.5 1.5 0 0 0-1.626-.676" }]], "cake-slice": [["path", { "d": "M16 13H3" }], ["path", { "d": "M16 17H3" }], ["path", { "d": "m7.2 7.9-3.388 2.5A2 2 0 0 0 3 12.01V20a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-8.654c0-2-2.44-6.026-6.44-8.026a1 1 0 0 0-1.082.057L10.4 5.6" }], ["circle", { "cx": "9", "cy": "7", "r": "2" }]], "wheat": [["path", { "d": "M2 22 16 8" }], ["path", { "d": "M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z" }], ["path", { "d": "M7.47 8.53 9 7l1.53 1.53a3.5 3.5 0 0 1 0 4.94L9 15l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z" }], ["path", { "d": "M11.47 4.53 13 3l1.53 1.53a3.5 3.5 0 0 1 0 4.94L13 11l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z" }], ["path", { "d": "M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z" }], ["path", { "d": "M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z" }], ["path", { "d": "M15.47 13.47 17 15l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z" }], ["path", { "d": "M19.47 9.47 21 11l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L13 11l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z" }]], "refrigerator": [["path", { "d": "M5 6a4 4 0 0 1 4-4h6a4 4 0 0 1 4 4v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6Z" }], ["path", { "d": "M5 10h14" }], ["path", { "d": "M15 7v6" }]], "cooking-pot": [["path", { "d": "M2 12h20" }], ["path", { "d": "M20 12v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8" }], ["path", { "d": "m4 8 16-4" }], ["path", { "d": "m8.86 6.78-.45-1.81a2 2 0 0 1 1.45-2.43l1.94-.48a2 2 0 0 1 2.43 1.46l.45 1.8" }]], "chef-hat": [["path", { "d": "M10 11v5" }], ["path", { "d": "M14 11v5" }], ["path", { "d": "M6 12.65c0-.457-.316-.844-.727-1.041A4 4 0 017.52 4.034a1.53 1.53 0 001.367-.547 4 4 0 016.225 0 1.53 1.53 0 001.367.547 4 4 0 012.248 7.575c-.411.197-.727.584-.727 1.04V19a2 2 0 01-2 2H8a2 2 0 01-2-2z" }], ["path", { "d": "M6 16h12" }]], "shopping-cart": [["path", { "d": "m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18" }], ["path", { "d": "M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25" }], ["circle", { "cx": "18", "cy": "20", "r": "2" }], ["circle", { "cx": "8", "cy": "20", "r": "2" }]], "shopping-basket": [["path", { "d": "m15 11-1 9" }], ["path", { "d": "m19 11-4-7" }], ["path", { "d": "M2 11h20" }], ["path", { "d": "m3.5 11 1.6 7.4a2 2 0 0 0 2 1.6h9.8a2 2 0 0 0 2-1.6l1.7-7.4" }], ["path", { "d": "M4.5 15.5h15" }], ["path", { "d": "m5 11 4-7" }], ["path", { "d": "m9 11 1 9" }]], "flame": [["path", { "d": "M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4" }]], "wallet": [["path", { "d": "M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1" }], ["path", { "d": "M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4" }]], "credit-card": [["rect", { "width": "20", "height": "14", "x": "2", "y": "5", "rx": "2" }], ["line", { "x1": "2", "x2": "22", "y1": "10", "y2": "10" }], ["path", { "d": "M6 14h2" }]], "banknote": [["rect", { "width": "20", "height": "12", "x": "2", "y": "6", "rx": "2" }], ["circle", { "cx": "12", "cy": "12", "r": "2" }], ["path", { "d": "M6 12h.01M18 12h.01" }]], "coins": [["path", { "d": "M13.744 17.736a6 6 0 1 1-7.48-7.48" }], ["path", { "d": "M15 6h1v4" }], ["path", { "d": "m6.134 14.768.866-.5 2 3.464" }], ["circle", { "cx": "16", "cy": "8", "r": "6" }]], "piggy-bank": [["path", { "d": "M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z" }], ["path", { "d": "M16 10h.01" }], ["path", { "d": "M2 8v1a2 2 0 0 0 2 2h1" }]], "receipt": [["path", { "d": "M12 17V7" }], ["path", { "d": "M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8" }], ["path", { "d": "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z" }]], "landmark": [["path", { "d": "M10 18v-7" }], ["path", { "d": "M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z" }], ["path", { "d": "M14 18v-7" }], ["path", { "d": "M18 18v-7" }], ["path", { "d": "M3 22h18" }], ["path", { "d": "M6 18v-7" }]], "trending-up": [["path", { "d": "M16 7h6v6" }], ["path", { "d": "m22 7-8.5 8.5-5-5L2 17" }]], "trending-down": [["path", { "d": "M16 17h6v-6" }], ["path", { "d": "m22 17-8.5-8.5-5 5L2 7" }]], "chart-line": [["path", { "d": "M3 3v16a2 2 0 0 0 2 2h16" }], ["path", { "d": "m19 9-5 5-4-4-3 3" }]], "chart-column": [["path", { "d": "M3 3v16a2 2 0 0 0 2 2h16" }], ["path", { "d": "M18 17V9" }], ["path", { "d": "M13 17V5" }], ["path", { "d": "M8 17v-3" }]], "chart-pie": [["path", { "d": "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z" }], ["path", { "d": "M21.21 15.89A10 10 0 1 1 8 2.83" }]], "percent": [["line", { "x1": "19", "x2": "5", "y1": "5", "y2": "19" }], ["circle", { "cx": "6.5", "cy": "6.5", "r": "2.5" }], ["circle", { "cx": "17.5", "cy": "17.5", "r": "2.5" }]], "hand-coins": [["path", { "d": "M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17" }], ["path", { "d": "m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9" }], ["path", { "d": "m2 16 6 6" }], ["circle", { "cx": "16", "cy": "9", "r": "2.9" }], ["circle", { "cx": "6", "cy": "5", "r": "3" }]], "badge-percent": [["path", { "d": "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z" }], ["path", { "d": "m15 9-6 6" }], ["path", { "d": "M9 9h.01" }], ["path", { "d": "M15 15h.01" }]], "house": [["path", { "d": "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" }], ["path", { "d": "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }]], "lock": [["rect", { "width": "18", "height": "11", "x": "3", "y": "11", "rx": "2", "ry": "2" }], ["path", { "d": "M7 11V7a5 5 0 0 1 10 0v4" }]], "lock-open": [["rect", { "width": "18", "height": "11", "x": "3", "y": "11", "rx": "2", "ry": "2" }], ["path", { "d": "M7 11V7a5 5 0 0 1 9.9-1" }]], "key-round": [["path", { "d": "M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z" }], ["circle", { "cx": "16.5", "cy": "7.5", "r": ".5", "fill": "currentColor" }]], "door-open": [["path", { "d": "M10 21H2" }], ["path", { "d": "M10 3H7a2 2 0 00-2 2v16" }], ["path", { "d": "M14 12h.01" }], ["path", { "d": "M19 21V5a2 2 0 00-1.675-1.974l-6.163-1.013A1 1 0 0010 3v18a1 1 0 001.124.992z" }], ["path", { "d": "M22 21h-3" }]], "lamp": [["path", { "d": "M12 12v6" }], ["path", { "d": "M4.077 10.615A1 1 0 0 0 5 12h14a1 1 0 0 0 .923-1.385l-3.077-7.384A2 2 0 0 0 15 2H9a2 2 0 0 0-1.846 1.23Z" }], ["path", { "d": "M8 20a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1z" }]], "lightbulb": [["path", { "d": "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5" }], ["path", { "d": "M9 18h6" }], ["path", { "d": "M10 22h4" }]], "plug": [["path", { "d": "M12 22v-5" }], ["path", { "d": "M15 8V2" }], ["path", { "d": "M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z" }], ["path", { "d": "M9 8V2" }]], "zap": [["path", { "d": "M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z" }]], "fan": [["path", { "d": "M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z" }], ["path", { "d": "M12 12v.01" }]], "wifi": [["path", { "d": "M12 20h.01" }], ["path", { "d": "M2 8.82a15 15 0 0 1 20 0" }], ["path", { "d": "M5 12.859a10 10 0 0 1 14 0" }], ["path", { "d": "M8.5 16.429a5 5 0 0 1 7 0" }]], "router": [["rect", { "width": "20", "height": "8", "x": "2", "y": "14", "rx": "2" }], ["path", { "d": "M6.01 18H6" }], ["path", { "d": "M10.01 18H10" }], ["path", { "d": "M15 10v4" }], ["path", { "d": "M17.84 7.17a4 4 0 0 0-5.66 0" }], ["path", { "d": "M20.66 4.34a8 8 0 0 0-11.31 0" }]], "tv": [["path", { "d": "m17 2-5 5-5-5" }], ["rect", { "width": "20", "height": "15", "x": "2", "y": "7", "rx": "2" }]], "washing-machine": [["path", { "d": "M3 6h3" }], ["path", { "d": "M17 6h.01" }], ["rect", { "width": "18", "height": "20", "x": "3", "y": "2", "rx": "2" }], ["circle", { "cx": "12", "cy": "13", "r": "5" }], ["path", { "d": "M12 18a2.5 2.5 0 0 0 0-5 2.5 2.5 0 0 1 0-5" }]], "sofa": [["path", { "d": "M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3" }], ["path", { "d": "M2 16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z" }], ["path", { "d": "M4 18v2" }], ["path", { "d": "M20 18v2" }], ["path", { "d": "M12 4v9" }]], "shower-head": [["path", { "d": "m4 4 2.5 2.5" }], ["path", { "d": "M13.5 6.5a4.95 4.95 0 0 0-7 7" }], ["path", { "d": "M15 5 5 15" }], ["path", { "d": "M14 17v.01" }], ["path", { "d": "M10 16v.01" }], ["path", { "d": "M13 13v.01" }], ["path", { "d": "M16 10v.01" }], ["path", { "d": "M11 20v.01" }], ["path", { "d": "M17 14v.01" }], ["path", { "d": "M20 11v.01" }]], "trash-2": [["path", { "d": "M10 11v6" }], ["path", { "d": "M14 11v6" }], ["path", { "d": "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }], ["path", { "d": "M3 6h18" }], ["path", { "d": "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]], "package": [["path", { "d": "M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z" }], ["path", { "d": "M12 22V12" }], ["polyline", { "points": "3.29 7 12 12 20.71 7" }], ["path", { "d": "m7.5 4.27 9 5.15" }]], "package-check": [["path", { "d": "M12 22V12" }], ["path", { "d": "m16 17 2 2 4-4" }], ["path", { "d": "M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753" }], ["path", { "d": "M3.29 7 12 12l8.71-5" }], ["path", { "d": "m7.5 4.27 8.997 5.148" }]], "truck": [["path", { "d": "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2" }], ["path", { "d": "M15 18H9" }], ["path", { "d": "M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14" }], ["circle", { "cx": "17", "cy": "18", "r": "2" }], ["circle", { "cx": "7", "cy": "18", "r": "2" }]], "mailbox": [["path", { "d": "M22 17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.5C2 7 4 5 6.5 5H18c2.2 0 4 1.8 4 4v8Z" }], ["polyline", { "points": "15,9 18,9 18,11" }], ["path", { "d": "M6.5 5C9 5 11 7 11 9.5V17a2 2 0 0 1-2 2" }], ["line", { "x1": "6", "x2": "7", "y1": "10", "y2": "10" }]], "cloud": [["path", { "d": "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z" }]], "cloud-sun": [["path", { "d": "M12 2v2" }], ["path", { "d": "m4.93 4.93 1.41 1.41" }], ["path", { "d": "M20 12h2" }], ["path", { "d": "m19.07 4.93-1.41 1.41" }], ["path", { "d": "M15.947 12.65a4 4 0 0 0-5.925-4.128" }], ["path", { "d": "M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z" }]], "cloud-moon": [["path", { "d": "M13 16a3 3 0 0 1 0 6H7a5 5 0 1 1 4.9-6z" }], ["path", { "d": "M18.376 14.512a6 6 0 0 0 3.461-4.127c.148-.625-.659-.97-1.248-.714a4 4 0 0 1-5.259-5.26c.255-.589-.09-1.395-.716-1.248a6 6 0 0 0-4.594 5.36" }]], "cloud-rain": [["path", { "d": "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242" }], ["path", { "d": "M16 14v6" }], ["path", { "d": "M8 14v6" }], ["path", { "d": "M12 16v6" }]], "cloud-drizzle": [["path", { "d": "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242" }], ["path", { "d": "M8 19v1" }], ["path", { "d": "M8 14v1" }], ["path", { "d": "M16 19v1" }], ["path", { "d": "M16 14v1" }], ["path", { "d": "M12 21v1" }], ["path", { "d": "M12 16v1" }]], "cloud-snow": [["path", { "d": "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242" }], ["path", { "d": "M8 15h.01" }], ["path", { "d": "M8 19h.01" }], ["path", { "d": "M12 17h.01" }], ["path", { "d": "M12 21h.01" }], ["path", { "d": "M16 15h.01" }], ["path", { "d": "M16 19h.01" }]], "cloud-lightning": [["path", { "d": "M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973" }], ["path", { "d": "m13 12-3 5h4l-3 5" }]], "cloud-fog": [["path", { "d": "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242" }], ["path", { "d": "M16 17H7" }], ["path", { "d": "M17 21H9" }]], "snowflake": [["path", { "d": "m10 20-1.25-2.5L6 18" }], ["path", { "d": "M10 4 8.75 6.5 6 6" }], ["path", { "d": "m14 20 1.25-2.5L18 18" }], ["path", { "d": "m14 4 1.25 2.5L18 6" }], ["path", { "d": "m17 21-3-6h-4" }], ["path", { "d": "m17 3-3 6 1.5 3" }], ["path", { "d": "M2 12h6.5L10 9" }], ["path", { "d": "m20 10-1.5 2 1.5 2" }], ["path", { "d": "M22 12h-6.5L14 15" }], ["path", { "d": "m4 10 1.5 2L4 14" }], ["path", { "d": "m7 21 3-6-1.5-3" }], ["path", { "d": "m7 3 3 6h4" }]], "thermometer-sun": [["path", { "d": "M12 2v2" }], ["path", { "d": "M12 8a4 4 0 0 0-1.645 7.647" }], ["path", { "d": "M2 12h2" }], ["path", { "d": "M20 14.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0z" }], ["path", { "d": "m4.93 4.93 1.41 1.41" }], ["path", { "d": "m6.34 17.66-1.41 1.41" }]], "thermometer-snowflake": [["path", { "d": "m10 20-1.25-2.5L6 18" }], ["path", { "d": "M10 4 8.75 6.5 6 6" }], ["path", { "d": "M10.585 15H10" }], ["path", { "d": "M2 12h6.5L10 9" }], ["path", { "d": "M20 14.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0z" }], ["path", { "d": "m4 10 1.5 2L4 14" }], ["path", { "d": "m7 21 3-6-1.5-3" }], ["path", { "d": "m7 3 3 6h2" }]], "wind": [["path", { "d": "M12.8 19.6A2 2 0 1 0 14 16H2" }], ["path", { "d": "M17.5 8a2.5 2.5 0 1 1 2 4H2" }], ["path", { "d": "M9.8 4.4A2 2 0 1 1 11 8H2" }]], "umbrella": [["path", { "d": "M12 13v7a2 2 0 0 0 4 0" }], ["path", { "d": "M12 2v2" }], ["path", { "d": "M20.992 13a1 1 0 0 0 .97-1.274 10.284 10.284 0 0 0-19.923 0A1 1 0 0 0 3 13z" }]], "rainbow": [["path", { "d": "M22 17a10 10 0 0 0-20 0" }], ["path", { "d": "M6 17a6 6 0 0 1 12 0" }], ["path", { "d": "M10 17a2 2 0 0 1 4 0" }]], "mail": [["path", { "d": "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" }], ["rect", { "x": "2", "y": "4", "width": "20", "height": "16", "rx": "2" }]], "mail-open": [["path", { "d": "M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z" }], ["path", { "d": "m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10" }]], "message-square": [["path", { "d": "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" }]], "message-circle": [["path", { "d": "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719" }]], "phone": [["path", { "d": "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" }]], "smartphone": [["rect", { "width": "14", "height": "20", "x": "5", "y": "2", "rx": "2", "ry": "2" }], ["path", { "d": "M12 18h.01" }]], "bell": [["path", { "d": "M10.268 21a2 2 0 0 0 3.464 0" }], ["path", { "d": "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" }]], "bell-ring": [["path", { "d": "M10.268 21a2 2 0 0 0 3.464 0" }], ["path", { "d": "M22 8c0-2.3-.8-4.3-2-6" }], ["path", { "d": "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" }], ["path", { "d": "M4 2C2.8 3.7 2 5.7 2 8" }]], "bell-plus": [["path", { "d": "M10.268 21a2 2 0 0 0 3.464 0" }], ["path", { "d": "M15 8h6" }], ["path", { "d": "M18 5v6" }], ["path", { "d": "M20.002 14.464a9 9 0 0 0 .738.863A1 1 0 0 1 20 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 8.75-5.332" }]], "send": [["path", { "d": "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z" }], ["path", { "d": "m21.854 2.147-10.94 10.939" }]], "inbox": [["polyline", { "points": "22 12 16 12 14 15 10 15 8 12 2 12" }], ["path", { "d": "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" }]], "at-sign": [["circle", { "cx": "12", "cy": "12", "r": "4" }], ["path", { "d": "M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8" }]], "hash": [["line", { "x1": "4", "x2": "20", "y1": "9", "y2": "9" }], ["line", { "x1": "4", "x2": "20", "y1": "15", "y2": "15" }], ["line", { "x1": "10", "x2": "8", "y1": "3", "y2": "21" }], ["line", { "x1": "16", "x2": "14", "y1": "3", "y2": "21" }]], "newspaper": [["path", { "d": "M15 18h-5" }], ["path", { "d": "M18 14h-8" }], ["path", { "d": "M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2" }], ["rect", { "width": "8", "height": "4", "x": "10", "y": "6", "rx": "1" }]], "rss": [["path", { "d": "M4 11a9 9 0 0 1 9 9" }], ["path", { "d": "M4 4a16 16 0 0 1 16 16" }], ["circle", { "cx": "5", "cy": "19", "r": "1" }]], "megaphone": [["path", { "d": "M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z" }], ["path", { "d": "M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14" }], ["path", { "d": "M8 6v8" }]], "radio-tower": [["path", { "d": "M4.9 16.1C1 12.2 1 5.8 4.9 1.9" }], ["path", { "d": "M7.8 4.7a6.14 6.14 0 0 0-.8 7.5" }], ["circle", { "cx": "12", "cy": "9", "r": "2" }], ["path", { "d": "M16.2 4.8c2 2 2.26 5.11.8 7.47" }], ["path", { "d": "M19.1 1.9a9.96 9.96 0 0 1 0 14.1" }], ["path", { "d": "M9.5 18h5" }], ["path", { "d": "m8 22 4-11 4 11" }]], "briefcase": [["path", { "d": "M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16" }], ["rect", { "width": "20", "height": "14", "x": "2", "y": "6", "rx": "2" }]], "laptop": [["path", { "d": "M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z" }], ["path", { "d": "M20.054 15.987H3.946" }]], "monitor": [["rect", { "width": "20", "height": "14", "x": "2", "y": "3", "rx": "2" }], ["line", { "x1": "8", "x2": "16", "y1": "21", "y2": "21" }], ["line", { "x1": "12", "x2": "12", "y1": "17", "y2": "21" }]], "server": [["rect", { "width": "20", "height": "8", "x": "2", "y": "2", "rx": "2", "ry": "2" }], ["rect", { "width": "20", "height": "8", "x": "2", "y": "14", "rx": "2", "ry": "2" }], ["line", { "x1": "6", "x2": "6.01", "y1": "6", "y2": "6" }], ["line", { "x1": "6", "x2": "6.01", "y1": "18", "y2": "18" }]], "hard-drive": [["path", { "d": "M10 16h.01" }], ["path", { "d": "M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" }], ["path", { "d": "M21.946 12.013H2.054" }], ["path", { "d": "M6 16h.01" }]], "cpu": [["path", { "d": "M12 20v2" }], ["path", { "d": "M12 2v2" }], ["path", { "d": "M17 20v2" }], ["path", { "d": "M17 2v2" }], ["path", { "d": "M2 12h2" }], ["path", { "d": "M2 17h2" }], ["path", { "d": "M2 7h2" }], ["path", { "d": "M20 12h2" }], ["path", { "d": "M20 17h2" }], ["path", { "d": "M20 7h2" }], ["path", { "d": "M7 20v2" }], ["path", { "d": "M7 2v2" }], ["rect", { "x": "4", "y": "4", "width": "16", "height": "16", "rx": "2" }], ["rect", { "x": "8", "y": "8", "width": "8", "height": "8", "rx": "1" }]], "memory-stick": [["path", { "d": "M12 12v-2" }], ["path", { "d": "M12 18v-2" }], ["path", { "d": "M16 12v-2" }], ["path", { "d": "M16 18v-2" }], ["path", { "d": "M2 11h1.5" }], ["path", { "d": "M20 18v-2" }], ["path", { "d": "M20.5 11H22" }], ["path", { "d": "M4 18v-2" }], ["path", { "d": "M8 12v-2" }], ["path", { "d": "M8 18v-2" }], ["rect", { "x": "2", "y": "6", "width": "20", "height": "10", "rx": "2" }]], "database": [["ellipse", { "cx": "12", "cy": "5", "rx": "9", "ry": "3" }], ["path", { "d": "M3 5V19A9 3 0 0 0 21 19V5" }], ["path", { "d": "M3 12A9 3 0 0 0 21 12" }]], "code": [["path", { "d": "m16 18 6-6-6-6" }], ["path", { "d": "m8 6-6 6 6 6" }]], "terminal": [["path", { "d": "M12 19h8" }], ["path", { "d": "m4 17 6-6-6-6" }]], "git-pull-request": [["circle", { "cx": "18", "cy": "18", "r": "3" }], ["circle", { "cx": "6", "cy": "6", "r": "3" }], ["path", { "d": "M13 6h3a2 2 0 0 1 2 2v7" }], ["line", { "x1": "6", "x2": "6", "y1": "9", "y2": "21" }]], "git-branch": [["path", { "d": "M15 6a9 9 0 0 0-9 9V3" }], ["circle", { "cx": "18", "cy": "6", "r": "3" }], ["circle", { "cx": "6", "cy": "18", "r": "3" }]], "bot": [["path", { "d": "M12 8V4H8" }], ["rect", { "width": "16", "height": "12", "x": "4", "y": "8", "rx": "2" }], ["path", { "d": "M2 14h2" }], ["path", { "d": "M20 14h2" }], ["path", { "d": "M15 13v2" }], ["path", { "d": "M9 13v2" }]], "sparkles": [["path", { "d": "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" }], ["path", { "d": "M20 2v4" }], ["path", { "d": "M22 4h-4" }], ["circle", { "cx": "4", "cy": "20", "r": "2" }]], "sparkle": [["path", { "d": "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" }]], "wrench": [["path", { "d": "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" }]], "settings": [["path", { "d": "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }], ["circle", { "cx": "12", "cy": "12", "r": "3" }]], "shield": [["path", { "d": "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" }]], "shield-check": [["path", { "d": "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" }], ["path", { "d": "m9 12 2 2 4-4" }]], "shield-alert": [["path", { "d": "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" }], ["path", { "d": "M12 8v4" }], ["path", { "d": "M12 16h.01" }]], "key": [["path", { "d": "m2 21 9.6-9.6" }], ["path", { "d": "m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19" }], ["circle", { "cx": "15.5", "cy": "7.5", "r": "5.5" }]], "file-text": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }], ["path", { "d": "M10 9H8" }], ["path", { "d": "M16 13H8" }], ["path", { "d": "M16 17H8" }]], "files": [["path", { "d": "M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8" }], ["path", { "d": "M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z" }], ["path", { "d": "M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1" }]], "folder": [["path", { "d": "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]], "book-open": [["path", { "d": "M12 5v16" }], ["path", { "d": "M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z" }]], "graduation-cap": [["path", { "d": "M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z" }], ["path", { "d": "M22 10v6" }], ["path", { "d": "M6 12.5V16a6 3 0 0 0 12 0v-3.5" }]], "notebook-pen": [["path", { "d": "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4" }], ["path", { "d": "M2 6h4" }], ["path", { "d": "M2 10h4" }], ["path", { "d": "M2 14h4" }], ["path", { "d": "M2 18h4" }], ["path", { "d": "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z" }]], "gauge": [["path", { "d": "m12 14 4-4" }], ["path", { "d": "M3.34 19a10 10 0 1 1 17.32 0" }]], "battery": [["path", { "d": "M 22 14 L 22 10" }], ["rect", { "x": "2", "y": "6", "width": "16", "height": "12", "rx": "2" }]], "battery-low": [["path", { "d": "M22 14v-4" }], ["path", { "d": "M6 14v-4" }], ["rect", { "x": "2", "y": "6", "width": "16", "height": "12", "rx": "2" }]], "refresh-cw": [["path", { "d": "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }], ["path", { "d": "M21 3v5h-5" }], ["path", { "d": "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }], ["path", { "d": "M8 16H3v5" }]], "rotate-ccw": [["path", { "d": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }]], "eye": [["path", { "d": "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }], ["circle", { "cx": "12", "cy": "12", "r": "3" }]], "search": [["path", { "d": "m21 21-4.34-4.34" }], ["circle", { "cx": "11", "cy": "11", "r": "8" }]], "link": [["path", { "d": "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }], ["path", { "d": "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" }]], "external-link": [["path", { "d": "M15 3h6v6" }], ["path", { "d": "M10 14 21 3" }], ["path", { "d": "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }]], "download": [["path", { "d": "M12 15V3" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }], ["path", { "d": "m7 10 5 5 5-5" }]], "upload": [["path", { "d": "M12 3v12" }], ["path", { "d": "m17 8-5-5-5 5" }], ["path", { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]], "square-kanban": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M8 7v7" }], ["path", { "d": "M12 7v4" }], ["path", { "d": "M16 7v9" }]], "play": [["path", { "d": "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" }]], "circle": [["circle", { "cx": "12", "cy": "12", "r": "10" }]], "circle-alert": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["line", { "x1": "12", "x2": "12", "y1": "8", "y2": "12" }], ["line", { "x1": "12", "x2": "12.01", "y1": "16", "y2": "16" }]], "triangle-alert": [["path", { "d": "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }], ["path", { "d": "M12 9v4" }], ["path", { "d": "M12 17h.01" }]], "circle-x": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "m15 9-6 6" }], ["path", { "d": "m9 9 6 6" }]], "info": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M12 16v-4" }], ["path", { "d": "M12 8h.01" }]], "circle-help": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["path", { "d": "M9 9.5a3 2.5 0 016 0c0 2-2 2-3 3.5" }], ["path", { "d": "M12 17h.01" }]], "circle-pause": [["circle", { "cx": "12", "cy": "12", "r": "10" }], ["line", { "x1": "10", "x2": "10", "y1": "15", "y2": "9" }], ["line", { "x1": "14", "x2": "14", "y1": "15", "y2": "9" }]], "star": [["path", { "d": "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" }]], "heart": [["path", { "d": "M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5" }]], "heart-handshake": [["path", { "d": "M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762" }]], "gift": [["path", { "d": "M12 7v14" }], ["path", { "d": "M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8" }], ["path", { "d": "M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5" }], ["rect", { "x": "3", "y": "7", "width": "18", "height": "4", "rx": "1" }]], "trophy": [["path", { "d": "M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2" }], ["path", { "d": "M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2" }], ["path", { "d": "M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3" }], ["path", { "d": "M4 22h16" }], ["path", { "d": "M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z" }], ["path", { "d": "M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3" }]], "medal": [["path", { "d": "M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15" }], ["path", { "d": "M11 12 5.12 2.2" }], ["path", { "d": "m13 12 5.88-9.8" }], ["path", { "d": "M8 7h8" }], ["circle", { "cx": "12", "cy": "17", "r": "5" }], ["path", { "d": "M12 18v-2h-.5" }]], "award": [["path", { "d": "m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526" }], ["circle", { "cx": "12", "cy": "8", "r": "6" }]], "crown": [["path", { "d": "M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z" }], ["path", { "d": "M5 21h14" }]], "gem": [["path", { "d": "M10.5 3 8 9l4 13 4-13-2.5-6" }], ["path", { "d": "M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z" }], ["path", { "d": "M2 9h20" }]], "thumbs-up": [["path", { "d": "M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z" }], ["path", { "d": "M7 10v12" }]], "thumbs-down": [["path", { "d": "M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z" }], ["path", { "d": "M17 14V2" }]], "music": [["path", { "d": "M21 16V3a1 1 0 0 0-1.28-.96l-10 2.917a1 1 0 0 0-.72.96V19" }], ["circle", { "cx": "18", "cy": "16", "r": "3" }], ["circle", { "cx": "6", "cy": "19", "r": "3" }]], "film": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }], ["path", { "d": "M7 3v18" }], ["path", { "d": "M3 7.5h4" }], ["path", { "d": "M3 12h18" }], ["path", { "d": "M3 16.5h4" }], ["path", { "d": "M17 3v18" }], ["path", { "d": "M17 7.5h4" }], ["path", { "d": "M17 16.5h4" }]], "clapperboard": [["path", { "d": "m12.296 3.464 3.02 3.956" }], ["path", { "d": "M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z" }], ["path", { "d": "M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }], ["path", { "d": "m6.18 5.276 3.1 3.899" }]], "gamepad-2": [["line", { "x1": "6", "x2": "10", "y1": "11", "y2": "11" }], ["line", { "x1": "8", "x2": "8", "y1": "9", "y2": "13" }], ["line", { "x1": "15", "x2": "15.01", "y1": "12", "y2": "12" }], ["line", { "x1": "18", "x2": "18.01", "y1": "10", "y2": "10" }], ["path", { "d": "M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z" }]], "monitor-play": [["path", { "d": "M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z" }], ["path", { "d": "M12 17v4" }], ["path", { "d": "M8 21h8" }], ["rect", { "x": "2", "y": "3", "width": "20", "height": "14", "rx": "2" }]], "headphones": [["path", { "d": "M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3" }]], "camera": [["path", { "d": "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z" }], ["circle", { "cx": "12", "cy": "13", "r": "3" }]], "image": [["rect", { "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2", "ry": "2" }], ["circle", { "cx": "9", "cy": "9", "r": "2" }], ["path", { "d": "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]], "palette": [["path", { "d": "M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z" }], ["circle", { "cx": "13.5", "cy": "6.5", "r": ".5", "fill": "currentColor" }], ["circle", { "cx": "17.5", "cy": "10.5", "r": ".5", "fill": "currentColor" }], ["circle", { "cx": "6.5", "cy": "12.5", "r": ".5", "fill": "currentColor" }], ["circle", { "cx": "8.5", "cy": "7.5", "r": ".5", "fill": "currentColor" }]], "book": [["path", { "d": "M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" }]], "bookmark": [["path", { "d": "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z" }]], "users": [["path", { "d": "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }], ["path", { "d": "M16 3.128a4 4 0 0 1 0 7.744" }], ["path", { "d": "M22 21v-2a4 4 0 0 0-3-3.87" }], ["circle", { "cx": "9", "cy": "7", "r": "4" }]], "user": [["path", { "d": "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }], ["circle", { "cx": "12", "cy": "7", "r": "4" }]], "baby": [["path", { "d": "M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5" }], ["path", { "d": "M15 12h.01" }], ["path", { "d": "M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1" }], ["path", { "d": "M9 12h.01" }]], "cat": [["path", { "d": "M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z" }], ["path", { "d": "M8 14v.5" }], ["path", { "d": "M16 14v.5" }], ["path", { "d": "M11.25 16.25h1.5L12 17l-.75-.75Z" }]], "dog": [["path", { "d": "M11.25 16.25h1.5L12 17z" }], ["path", { "d": "M16 14v.5" }], ["path", { "d": "M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309" }], ["path", { "d": "M8 14v.5" }], ["path", { "d": "M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5" }]], "paw-print": [["circle", { "cx": "11", "cy": "4", "r": "2" }], ["circle", { "cx": "18", "cy": "8", "r": "2" }], ["circle", { "cx": "20", "cy": "16", "r": "2" }], ["path", { "d": "M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z" }]], "leaf": [["path", { "d": "M11 20a10 10 0 0010-10 25.9 25.9 0 00-1.04-7.281 1 1 0 00-1.755-.325C15.833 5.5 13 5.5 9.8 6.1A7 7 0 0011 20" }], ["path", { "d": "M2 21a5 5 0 012.911-4.544C7.613 15.212 8.351 15.24 11 13" }]], "flower-2": [["path", { "d": "M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1" }], ["circle", { "cx": "12", "cy": "8", "r": "2" }], ["path", { "d": "M12 10v12" }], ["path", { "d": "M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z" }], ["path", { "d": "M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z" }]], "tree-pine": [["path", { "d": "m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z" }], ["path", { "d": "M12 22v-3" }]], "shirt": [["path", { "d": "M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z" }]], "scissors": [["circle", { "cx": "6", "cy": "6", "r": "3" }], ["path", { "d": "M8.12 8.12 12 12" }], ["path", { "d": "M20 4 8.12 15.88" }], ["circle", { "cx": "6", "cy": "18", "r": "3" }], ["path", { "d": "M14.8 14.8 20 20" }]] };
175
+
176
+ // ui/src/client/glyphs.js
177
+ var ICON_NAMES = Object.freeze(Object.keys(icons_default));
178
+ function Icon({ name: name2, size = 16, tone, className }) {
179
+ const nodes = icons_default[name2];
180
+ if (nodes === void 0) return null;
181
+ return (0, import_react2.createElement)("svg", {
182
+ className: className ? `uk-icon ${className}` : "uk-icon",
183
+ width: size,
184
+ height: size,
185
+ viewBox: "0 0 24 24",
186
+ fill: "none",
187
+ stroke: "currentColor",
188
+ strokeWidth: 2,
189
+ strokeLinecap: "round",
190
+ strokeLinejoin: "round",
191
+ "aria-hidden": true,
192
+ focusable: "false",
193
+ style: tone ? { color: toneColor(tone) } : void 0
194
+ }, nodes.map(([tag, attrs], i) => (0, import_react2.createElement)(tag, { key: i, ...attrs })));
195
+ }
196
+ function Tile({ icon, tone = "muted", size = 30, className }) {
197
+ return (0, import_react2.createElement)("span", {
198
+ className: className ? `uk-tile ${className}` : "uk-tile",
199
+ style: { "--uk-size": `${size}px`, color: toneColor(tone) },
200
+ "aria-hidden": true
201
+ }, icon && (0, import_react2.createElement)(Icon, { name: icon, size: Math.round(size * 0.53) }));
202
+ }
203
+ function createChip({ TimeUntil }) {
204
+ return function Chip({ icon, tone = "muted", to, className, selectable = false, children }) {
205
+ return (0, import_react2.createElement)(
206
+ import_dsh_client_ui_primitives.Pill,
207
+ { className: ["uk-chip", selectable && "uk-selectable", className].filter(Boolean).join(" ") },
208
+ icon && (0, import_react2.createElement)(Icon, { name: icon, size: 14, tone }),
209
+ (0, import_react2.createElement)("span", { className: "uk-chipText" }, children, to && " ", to && (0, import_react2.createElement)(TimeUntil, { to }))
210
+ );
211
+ };
212
+ }
213
+
214
+ // ui/src/client/history.js
215
+ var import_react3 = require("react");
216
+ var import_dsh_client_ui_primitives2 = require("@deepseek-ai/dsh-client-ui-primitives");
217
+ function createHistory({ useWords, useNow: useNow2 }) {
218
+ function History({ items, max = 3, moreLabel }) {
219
+ const { t, locale } = useWords();
220
+ const now = useNow2(6e4);
221
+ const [open, setOpen] = (0, import_react3.useState)(false);
222
+ if (!items?.length) return null;
223
+ const shown = open ? items : items.slice(0, max);
224
+ const hidden = items.length - shown.length;
225
+ const today = new Date(now).toDateString();
226
+ const when = (at) => {
227
+ const time = toTime(at);
228
+ if (!Number.isFinite(time)) return "";
229
+ const sameDay = new Date(time).toDateString() === today;
230
+ return new Intl.DateTimeFormat(locale, sameDay ? { hour: "2-digit", minute: "2-digit" } : { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" }).format(time);
231
+ };
232
+ return (0, import_react3.createElement)(
233
+ "div",
234
+ { className: "uk-history" },
235
+ (0, import_react3.createElement)("ol", null, shown.map((item, i) => (0, import_react3.createElement)(
236
+ "li",
237
+ { key: i },
238
+ (0, import_react3.createElement)("time", { dateTime: item.at, title: Number.isFinite(toTime(item.at)) ? formatFull(toTime(item.at), locale) : void 0 }, when(item.at)),
239
+ (0, import_react3.createElement)("span", null, item.text)
240
+ ))),
241
+ (hidden > 0 || open) && items.length > max && (0, import_react3.createElement)(
242
+ import_dsh_client_ui_primitives2.Button,
243
+ { variant: "ghost", size: "sm", className: "uk-historyToggle", onClick: () => setOpen((value) => !value) },
244
+ open ? t("less") : moreLabel ? moreLabel.replace("{n}", String(hidden)) : t("earlier", { n: hidden })
245
+ )
246
+ );
247
+ }
248
+ return { History };
249
+ }
250
+
251
+ // ui/src/client/live.js
252
+ var import_react4 = require("react");
253
+ var import_dsh_client_ui_primitives3 = require("@deepseek-ai/dsh-client-ui-primitives");
254
+
255
+ // ui/src/sse.js
256
+ function createSseParser(onData) {
257
+ let buffer = "";
258
+ let data = [];
259
+ const line = (text) => {
260
+ if (text === "") {
261
+ if (data.length > 0) onData(data.join("\n"));
262
+ data = [];
263
+ return;
264
+ }
265
+ if (text.startsWith(":")) return;
266
+ const colon = text.indexOf(":");
267
+ const field = colon === -1 ? text : text.slice(0, colon);
268
+ if (field !== "data") return;
269
+ let value = colon === -1 ? "" : text.slice(colon + 1);
270
+ if (value.startsWith(" ")) value = value.slice(1);
271
+ data.push(value);
272
+ };
273
+ return {
274
+ feed(chunk) {
275
+ buffer += chunk;
276
+ let at;
277
+ while ((at = buffer.search(/\r\n|\r|\n/)) !== -1) {
278
+ const end = buffer[at] === "\r" && buffer[at + 1] === "\n" ? at + 2 : at + 1;
279
+ line(buffer.slice(0, at));
280
+ buffer = buffer.slice(end);
281
+ }
282
+ }
283
+ };
284
+ }
285
+ function backoff(attempt, random = Math.random) {
286
+ return Math.min(30, 2 ** attempt) * (0.8 + random() * 0.4);
287
+ }
288
+
289
+ // ui/src/client/live.js
290
+ var absolute = (path) => new URL(path, document.baseURI).href;
291
+ async function readTransport(fetch, path, signal, onOpen, onData) {
292
+ const response = await fetch(path, { method: "GET", headers: { accept: "text/event-stream" }, signal });
293
+ if (!response.ok || response.body === null) throw new Error(`${path} answered ${response.status}`);
294
+ onOpen();
295
+ const parser = createSseParser(onData);
296
+ const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
297
+ for (; ; ) {
298
+ const { done, value } = await reader.read();
299
+ if (done) return;
300
+ parser.feed(value);
301
+ }
302
+ }
303
+ function useEventStream(path, onMessage) {
304
+ const [status, setStatus] = (0, import_react4.useState)("connecting");
305
+ const handler = (0, import_react4.useRef)(onMessage);
306
+ handler.current = onMessage;
307
+ (0, import_react4.useEffect)(() => {
308
+ if (!path || typeof document === "undefined") return void 0;
309
+ let closed = false;
310
+ let attempt = 0;
311
+ let timer = null;
312
+ let close = () => {
313
+ };
314
+ const receive = (data) => {
315
+ let message;
316
+ try {
317
+ message = JSON.parse(data);
318
+ } catch {
319
+ return;
320
+ }
321
+ handler.current(message);
322
+ };
323
+ const opened = () => {
324
+ attempt = 0;
325
+ setStatus("live");
326
+ };
327
+ const retry = () => {
328
+ if (closed) return;
329
+ setStatus("down");
330
+ timer = setTimeout(connect, backoff(attempt++) * 1e3);
331
+ };
332
+ function connect() {
333
+ if (closed) return;
334
+ setStatus((status2) => status2 === "live" ? "live" : "connecting");
335
+ const transport = globalThis.__DSH_TRANSPORT__;
336
+ if (transport?.fetch !== void 0) {
337
+ const controller = new AbortController();
338
+ close = () => controller.abort();
339
+ readTransport(transport.fetch, path, controller.signal, opened, receive).then(retry, retry);
340
+ return;
341
+ }
342
+ const source = new EventSource(absolute(path), { withCredentials: true });
343
+ close = () => source.close();
344
+ source.onopen = opened;
345
+ source.onmessage = (event) => receive(event.data);
346
+ source.onerror = () => {
347
+ if (source.readyState === EventSource.CLOSED) retry();
348
+ else setStatus("connecting");
349
+ };
350
+ }
351
+ connect();
352
+ return () => {
353
+ closed = true;
354
+ clearTimeout(timer);
355
+ close();
356
+ };
357
+ }, [path]);
358
+ return status;
359
+ }
360
+ function createLive({ useWords }) {
361
+ function LiveStatus({ status, updatedAt }) {
362
+ const { t, locale } = useWords();
363
+ const time = typeof updatedAt === "string" ? Date.parse(updatedAt) : updatedAt;
364
+ const known = Number.isFinite(time) && time > 0;
365
+ const sameDay = known && new Date(time).toDateString() === (/* @__PURE__ */ new Date()).toDateString();
366
+ const when = known ? new Intl.DateTimeFormat(locale, sameDay ? { hour: "2-digit", minute: "2-digit" } : { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" }).format(time) : "";
367
+ const text = status === "live" ? known ? t("liveUpdated", { time: when }) : t("live") : known ? t("updated", { time: when }) : status === "connecting" ? t("connecting") : "";
368
+ return (0, import_react4.createElement)(
369
+ "span",
370
+ { className: "uk-live", "data-status": status, role: "status" },
371
+ (0, import_react4.createElement)(import_dsh_client_ui_primitives3.StateDot, { state: status === "live" ? "done" : "idle" }),
372
+ (0, import_react4.createElement)("span", null, text)
373
+ );
374
+ }
375
+ return { LiveStatus };
376
+ }
377
+
378
+ // ui/src/client/look.js
379
+ var STYLE_ID = "dsh-ui-kit-style";
380
+ var ACCENT = "var(--dsw-alias-state-business-primary)";
381
+ var CSS = `
382
+ .uk-icon{flex:none;display:inline-block;vertical-align:middle}
383
+ .uk-tile{flex:none;display:inline-grid;place-items:center;width:var(--uk-size);height:var(--uk-size);border-radius:calc(var(--uk-size) * .3);background:color-mix(in srgb,currentColor 13%,transparent)}
384
+ .uk-chip{gap:5px;max-width:100%;min-width:0}
385
+ .uk-chip .uk-icon{margin-left:-2px}
386
+ .uk-chipText{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
387
+ .uk-time{font-variant-numeric:tabular-nums;white-space:nowrap}
388
+ .uk-countdown{font-variant-numeric:tabular-nums}
389
+ .uk-countdown-big{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:0 10px}
390
+ .uk-countdownPart b{font-size:40px;font-weight:600;line-height:44px;letter-spacing:-.02em}
391
+ .uk-countdownPart small{margin-left:3px;font-size:16px;font-weight:500;color:var(--dsw-alias-label-secondary)}
392
+ @media (width<=640px){.uk-countdownPart b{font-size:34px;line-height:38px}}
393
+ .uk-ring{position:relative;flex:none;display:inline-grid;place-items:center}
394
+ .uk-ring svg{position:absolute;inset:0;overflow:visible}
395
+ .uk-ringTrack{fill:none;stroke:var(--dsw-alias-border-l2)}
396
+ .uk-ringText{position:relative;display:flex;flex-direction:column;align-items:center;font-size:13px;font-weight:600;line-height:1.15;text-align:center;font-variant-numeric:tabular-nums}
397
+ .uk-ringText small{font-size:10px;font-weight:500;color:var(--dsw-alias-label-tertiary)}
398
+ .uk-spark{display:block;min-width:0}
399
+ .uk-spark svg{display:block;overflow:visible}
400
+ .uk-sparkDot{stroke:var(--dsw-alias-bg-base);stroke-width:1.5}
401
+ .uk-progress{display:flex;align-items:center;min-width:0}
402
+ .uk-progressLabelled{gap:10px}
403
+ .uk-progressTrack{position:relative;flex:1;min-width:24px;height:6px;border-radius:3px;background:var(--dsw-alias-border-l2);overflow:hidden}
404
+ .uk-progressFill{position:absolute;inset:0 auto 0 0;border-radius:3px}
405
+ .uk-progressLabel{flex:none;font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;white-space:nowrap}
406
+ .uk-live{display:inline-flex;align-items:center;gap:6px;min-width:0}
407
+ .uk-live>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
408
+ .uk-wash{position:relative;animation:uk-wash 2s ease-out}
409
+ .uk-washAgain{animation-name:uk-wash-again}
410
+ .uk-wash::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:3px;border-radius:2px;background:${ACCENT};animation:uk-wash-bar 2s ease-out forwards;pointer-events:none}
411
+ @keyframes uk-wash{0%,40%{background-color:color-mix(in srgb,${ACCENT} 9%,transparent)}100%{background-color:transparent}}
412
+ @keyframes uk-wash-again{0%,40%{background-color:color-mix(in srgb,${ACCENT} 9%,transparent)}100%{background-color:transparent}}
413
+ @keyframes uk-wash-bar{0%,60%{opacity:1}100%{opacity:0}}
414
+ @media (prefers-reduced-motion:reduce){.uk-wash,.uk-washAgain{animation:none}.uk-wash::before{display:none}}
415
+ .uk-justNow{font-size:11px;font-weight:500;line-height:16px;color:${ACCENT};white-space:nowrap}
416
+ .uk-newDot{flex:none;display:inline-block;width:7px;height:7px;border-radius:50%;background:${ACCENT}}
417
+ .uk-history ol{margin:8px 0 0;padding:0 0 0 12px;list-style:none;border-left:.5px solid var(--dsw-alias-border-l3);display:flex;flex-direction:column;gap:2px}
418
+ .uk-history li{display:flex;gap:10px;min-width:0;font-size:13px;line-height:20px;color:var(--dsw-alias-label-secondary)}
419
+ .uk-history time{flex:none;min-width:38px;font-size:12px;color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums}
420
+ .uk-history li span{min-width:0;overflow-wrap:anywhere}
421
+ .uk-historyToggle{margin:4px 0 0 4px}
422
+ .uk-suggested{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-top:10px;border-top:.5px dashed var(--dsw-alias-border-l3)}
423
+ .uk-suggestedLabel{display:inline-flex;align-items:center;gap:5px;margin-right:2px;font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary)}
424
+ .uk-suggested .ua-bar{display:contents}
425
+ .uk-surface{position:relative;isolation:isolate;overflow:hidden;min-width:0;border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-bg-layer-1)}
426
+ .uk-surfaceBackdropped{background:var(--dsw-alias-bg-base)}
427
+ .uk-surfaceBackdrop{position:absolute;inset:-48px;z-index:-2;background:center/cover no-repeat;filter:blur(40px) saturate(1.4);opacity:.5;pointer-events:none}
428
+ .uk-surfaceBackdropped::before{content:"";position:absolute;inset:0;z-index:-1;background:color-mix(in srgb,var(--dsw-alias-bg-base) 62%,transparent);pointer-events:none}
429
+ .uk-segmentsLabelled{display:flex;align-items:center;gap:10px;min-width:0}
430
+ .uk-segments{flex:1;display:flex;gap:3px;min-width:0}
431
+ .uk-segment{flex:1 1 0;min-width:2px;height:5px;border-radius:3px;background:var(--dsw-alias-border-l2)}
432
+ .uk-segment[data-state=done]{background:${ACCENT}}
433
+ .uk-segment[data-state=current]{background:color-mix(in srgb,${ACCENT} 45%,transparent)}
434
+ .uk-segment[data-state=ready]{background:color-mix(in srgb,var(--dsw-alias-label-tertiary) 45%,transparent)}
435
+ .uk-segmentsEnd{flex:none;font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary);white-space:nowrap}
436
+ .uk-mention{padding:0 2px;border-radius:4px;color:${ACCENT};background:color-mix(in srgb,${ACCENT} 10%,transparent);font-weight:500}
437
+ .uk-mentionMe{color:var(--dsw-alias-label-primary);background:color-mix(in srgb,var(--dsw-alias-state-warn-primary) 24%,transparent)}
438
+ .uk-msg{display:flex;align-items:flex-end;gap:8px;min-width:0;animation:uk-msg-in .18s ease-out}
439
+ .uk-msg[data-side=end]{flex-direction:row-reverse}
440
+ .uk-msgBubble{display:flex;flex-direction:column;gap:6px;min-width:0;max-width:min(620px,86%);box-sizing:border-box;padding:10px 14px;border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-bg-base);font-size:var(--dsh-content-font-size,14px);line-height:calc(22px + var(--dsh-content-font-delta,0px));overflow-wrap:anywhere;line-break:strict;transition:border-color .15s,box-shadow .15s}
441
+ .uk-msg[data-side=end] .uk-msgBubble{border-color:transparent;background:var(--dsw-specific-bubble)}
442
+ .uk-msg[data-highlight] .uk-msgBubble{border-color:color-mix(in srgb,var(--dsw-alias-state-warn-primary) 70%,transparent);box-shadow:0 0 0 2px color-mix(in srgb,var(--dsw-alias-state-warn-primary) 18%,transparent)}
443
+ .uk-msg[data-folded] .uk-msgBubble{flex-direction:row;align-items:center;padding:4px 12px;border:1px dashed var(--dsw-alias-border-l3);background:transparent;color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:20px}
444
+ .uk-msgAuthor{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;font-size:13px;line-height:20px;font-weight:500;color:var(--dsw-alias-label-secondary)}
445
+ .uk-msgQuote{padding-left:8px;border-left:2px solid color-mix(in srgb,currentColor 35%,transparent);font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
446
+ .uk-msgBody{min-width:0;white-space:pre-wrap}
447
+ .uk-msgFooter{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
448
+ .uk-msgTime{flex:none;padding-bottom:2px;font-size:11px;line-height:16px;color:var(--dsw-alias-label-caption,var(--dsw-alias-label-tertiary));font-variant-numeric:tabular-nums;white-space:nowrap}
449
+ @keyframes uk-msg-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
450
+ .uk-chatDivider{display:flex;align-items:center;justify-content:center;gap:10px;margin:4px 0;font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary)}
451
+ .uk-chatDivider span{display:inline-block;padding:1px 10px;border-radius:10px;background:var(--dsw-alias-bg-layer-1)}
452
+ .uk-chatDivider span::first-letter{text-transform:uppercase}
453
+ .uk-chatDivider[data-tone=accent]{color:${ACCENT}}
454
+ .uk-chatDivider[data-tone=accent]::before,.uk-chatDivider[data-tone=accent]::after{content:"";flex:1;height:.5px;background:color-mix(in srgb,${ACCENT} 55%,transparent)}
455
+ .uk-chatDivider[data-tone=accent] span{background:none;padding:0}
456
+ .uk-convo{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;box-sizing:border-box;padding:8px 10px;border:0;border-radius:12px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:background-color .12s,transform .12s}
457
+ @media (hover:hover){.uk-convo:hover{background:var(--dsw-alias-interactive-bg-hover)}}
458
+ .uk-convo:active{transform:scale(.985);background:var(--dsw-alias-interactive-bg-hover)}
459
+ .uk-convo[aria-current=true]{background:var(--dsw-alias-bg-layer-2)}
460
+ .uk-convoIcon{flex:none;display:inline-flex}
461
+ .uk-convoMain{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
462
+ .uk-convoTop,.uk-convoBottom{display:flex;align-items:center;gap:6px;min-width:0}
463
+ .uk-convoTitle{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:22px;color:var(--dsw-alias-label-primary)}
464
+ .uk-convo[data-unread] .uk-convoTitle{font-weight:500}
465
+ .uk-convoTime{flex:none;margin-left:auto;padding-left:6px;font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums;white-space:nowrap}
466
+ .uk-convoPreview{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:20px;color:var(--dsw-alias-label-tertiary)}
467
+ .uk-convoCount,.uk-convoMention{flex:none;min-width:18px;height:18px;box-sizing:border-box;padding:0 5px;border-radius:9px;background:${ACCENT};color:#fff;font-size:11px;font-weight:600;line-height:18px;text-align:center;font-variant-numeric:tabular-nums}
468
+ .uk-convoCount[data-quiet]{background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-secondary)}
469
+ .uk-convoMention{background:var(--dsw-alias-state-error-primary)}
470
+ .uk-composer{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0}
471
+ .uk-composerRow{display:flex;align-items:flex-end;gap:6px;padding:6px 6px 6px 8px;border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-bg-base);transition:border-color .15s}
472
+ .uk-composerRow:focus-within{border-color:${ACCENT}}
473
+ .uk-composerInput{flex:1;min-width:0;min-height:32px;max-height:168px;box-sizing:border-box;margin:0;padding:5px 4px;border:0;outline:0;resize:none;background:transparent;color:inherit;font:inherit;font-size:var(--dsh-content-font-size,14px);line-height:22px;line-break:strict}
474
+ .uk-composerAt{flex:none;min-width:32px;font-weight:600}
475
+ .uk-composerSend{flex:none}
476
+ .uk-composerQuote,.uk-composerTo,.uk-composerError{display:flex;align-items:center;gap:6px;min-width:0;padding:0 8px;font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary)}
477
+ .uk-composerQuote>span:first-child{flex:1;min-width:0;padding-left:8px;border-left:2px solid ${ACCENT};overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
478
+ .uk-composerError{color:var(--dsw-alias-state-error-primary)}
479
+ .uk-picker{position:absolute;left:0;right:0;bottom:calc(100% + 6px);z-index:20;max-height:min(320px,50vh);overflow:auto;padding:4px;border:.5px solid var(--dsw-alias-border-l2);border-radius:12px;background:var(--dsw-alias-bg-base);box-shadow:0 8px 28px rgba(0,0,0,.14);animation:uk-msg-in .12s ease-out}
480
+ .uk-pickerItem{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;padding:6px 10px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;font-size:14px;text-align:left;cursor:pointer}
481
+ .uk-pickerItem[aria-selected=true]{background:var(--dsw-alias-interactive-bg-hover)}
482
+ .uk-pickerName{flex:none;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
483
+ .uk-pickerToken,.uk-pickerDetail{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--dsw-alias-label-tertiary)}
484
+ .uk-pickerDetail{flex:1;text-align:right}
485
+ .uk-pickerEmpty{padding:8px 10px;font-size:13px;color:var(--dsw-alias-label-tertiary)}
486
+ /* Chrome is not selectable, so a select-all copies only content: every piece below is chrome by default, and the
487
+ uk-selectable class (or a piece's selectable prop) opts a piece back in. History text and message text are content. */
488
+ .uk-tile,.uk-icon,.uk-chip,.uk-countdown,.uk-time,.uk-ring,.uk-spark,.uk-progress,.uk-segments,.uk-live,.uk-newDot,.uk-justNow,.uk-suggested,.uk-history time,.uk-historyToggle,.uk-surfaceBackdrop{-webkit-user-select:none;user-select:none}
489
+ .uk-tile svg,.uk-icon,.uk-surfaceBackdrop,.uk-surfaceBackdrop img{-webkit-user-drag:none}
490
+ .uk-selectable,.uk-selectable *{-webkit-user-select:text;user-select:text}
491
+ /* Chrome is not selectable; message text is. */
492
+ .uk-msgAuthor,.uk-msgTime,.uk-chatDivider,.uk-convo,.uk-picker,.uk-composerTo,.uk-composerQuote,.uk-msg[data-folded]{-webkit-user-select:none;user-select:none}
493
+ .uk-msgBody{-webkit-user-select:text;user-select:text}
494
+ @media (pointer:coarse){.uk-pickerItem{min-height:44px}.uk-composerAt,.uk-composerSend{min-height:40px;min-width:40px}.uk-composerInput{min-height:40px;padding-block:9px}}
495
+ @media (width<=420px){.uk-composerSendText{display:none}}
496
+ @media (prefers-reduced-motion:reduce){.uk-msg,.uk-picker{animation:none}.uk-convo,.uk-convo:active{transition:none;transform:none}}
497
+ @media (pointer:coarse){.uk-touch{min-height:40px}}
498
+ `;
499
+
500
+ // ui/src/client/measures.js
501
+ var import_react5 = require("react");
502
+ function useWidth() {
503
+ const [element, setElement] = (0, import_react5.useState)(null);
504
+ const [width, setWidth] = (0, import_react5.useState)(0);
505
+ (0, import_react5.useLayoutEffect)(() => {
506
+ if (!element) return void 0;
507
+ const observer = new ResizeObserver(([entry]) => setWidth(Math.floor(entry.contentRect.width)));
508
+ observer.observe(element);
509
+ return () => observer.disconnect();
510
+ }, [element]);
511
+ return [setElement, width];
512
+ }
513
+ function Ring({ value, max, size = 54, stroke, tone = "accent", label, children }) {
514
+ const width = stroke ?? Math.max(3, Math.round(size / 9));
515
+ const r = (size - width) / 2;
516
+ const length = 2 * Math.PI * r;
517
+ const centre = size / 2;
518
+ return (0, import_react5.createElement)(
519
+ "span",
520
+ { className: "uk-ring", style: { width: size, height: size }, role: label ? "img" : void 0, "aria-label": label },
521
+ (0, import_react5.createElement)(
522
+ "svg",
523
+ { width: size, height: size, "aria-hidden": true },
524
+ (0, import_react5.createElement)("circle", { cx: centre, cy: centre, r, className: "uk-ringTrack", strokeWidth: width }),
525
+ share(value, max) > 0 && (0, import_react5.createElement)("circle", {
526
+ cx: centre,
527
+ cy: centre,
528
+ r,
529
+ strokeWidth: width,
530
+ fill: "none",
531
+ stroke: toneColor(tone),
532
+ strokeLinecap: "round",
533
+ strokeDasharray: `${(length * share(value, max)).toFixed(2)} ${length.toFixed(2)}`,
534
+ transform: `rotate(-90 ${centre} ${centre})`
535
+ })
536
+ ),
537
+ children !== void 0 && (0, import_react5.createElement)("span", { className: "uk-ringText" }, children)
538
+ );
539
+ }
540
+ function Spark({ values, tone = "accent", height = 24, width, area = false, dot = true, min, max, label }) {
541
+ const [ref, measured] = useWidth();
542
+ const w = width ?? measured;
543
+ const color = toneColor(tone);
544
+ const path = sparkPath(values ?? [], w, height, { pad: dot ? 3 : 1.5, min, max });
545
+ return (0, import_react5.createElement)(
546
+ "span",
547
+ { ref: width === void 0 ? ref : void 0, className: "uk-spark", style: { height, ...width === void 0 ? {} : { width } }, role: label ? "img" : void 0, "aria-label": label },
548
+ w > 0 && path.last && (0, import_react5.createElement)(
549
+ "svg",
550
+ { width: w, height, "aria-hidden": true },
551
+ area && (0, import_react5.createElement)("path", { d: path.area, fill: color, fillOpacity: 0.12, stroke: "none" }),
552
+ (0, import_react5.createElement)("path", { d: path.line, fill: "none", stroke: color, strokeWidth: 1.6, strokeLinejoin: "round", strokeLinecap: "round" }),
553
+ dot && (0, import_react5.createElement)("circle", { cx: path.last[0], cy: path.last[1], r: 2.6, fill: color, className: "uk-sparkDot" })
554
+ )
555
+ );
556
+ }
557
+ function Bar({ part, tone, start: start2, end, label }) {
558
+ const bar = (0, import_react5.createElement)(
559
+ "span",
560
+ { className: "uk-progressTrack", role: "progressbar", "aria-label": label, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": Math.round(part * 100) },
561
+ (0, import_react5.createElement)("span", { className: "uk-progressFill", style: { width: `${(part * 100).toFixed(1)}%`, background: toneColor(tone) } })
562
+ );
563
+ if (start2 === void 0 && end === void 0) return (0, import_react5.createElement)("span", { className: "uk-progress" }, bar);
564
+ return (0, import_react5.createElement)(
565
+ "span",
566
+ { className: "uk-progress uk-progressLabelled" },
567
+ start2 !== void 0 && (0, import_react5.createElement)("span", { className: "uk-progressLabel" }, start2),
568
+ bar,
569
+ end !== void 0 && (0, import_react5.createElement)("span", { className: "uk-progressLabel" }, end)
570
+ );
571
+ }
572
+ function createProgress({ useNow: useNow2 }) {
573
+ function TimedBar({ from, to, ...rest }) {
574
+ const now = useNow2(6e4);
575
+ return (0, import_react5.createElement)(Bar, { ...rest, part: share(now - toTime(from), toTime(to) - toTime(from)) });
576
+ }
577
+ function Progress({ value, max, from, to, tone = "accent", start: start2, end, label }) {
578
+ if (from !== void 0 && to !== void 0) return (0, import_react5.createElement)(TimedBar, { from, to, tone, start: start2, end, label });
579
+ return (0, import_react5.createElement)(Bar, { part: share(value, max), tone, start: start2, end, label });
580
+ }
581
+ return { Progress };
582
+ }
583
+
584
+ // ui/src/client/suggested.js
585
+ var import_react6 = require("react");
586
+ var import_dsh_client_ui_primitives4 = require("@deepseek-ai/dsh-client-ui-primitives");
587
+ function createActionsStore() {
588
+ let value = null;
589
+ const listeners = /* @__PURE__ */ new Set();
590
+ return {
591
+ set(next) {
592
+ value = next;
593
+ for (const listener of listeners) listener();
594
+ },
595
+ subscribe(listener) {
596
+ listeners.add(listener);
597
+ return () => {
598
+ listeners.delete(listener);
599
+ };
600
+ },
601
+ get: () => value
602
+ };
603
+ }
604
+ function createSuggested({ useWords, actionsStore }) {
605
+ function Suggested({ actions, about, states, onPress }) {
606
+ const { t } = useWords();
607
+ const uiActions = (0, import_react6.useSyncExternalStore)(actionsStore.subscribe, actionsStore.get);
608
+ const steps = (actions ?? []).filter((action) => action?.kind === "step");
609
+ if (uiActions === null || steps.length === 0) return null;
610
+ return (0, import_react6.createElement)(
611
+ "div",
612
+ { className: "uk-suggested" },
613
+ (0, import_react6.createElement)("span", { className: "uk-suggestedLabel" }, (0, import_react6.createElement)(import_dsh_client_ui_primitives4.IconSparkleRegular, { size: 13 }), t("suggested")),
614
+ (0, import_react6.createElement)(uiActions.ActionBar, { actions: steps, part: "steps", about, states, onPress })
615
+ );
616
+ }
617
+ return { Suggested };
618
+ }
619
+
620
+ // ui/src/client/surfaces.js
621
+ var import_react7 = require("react");
622
+ var TOUCH = "uk-touch";
623
+ function Surface({ backdrop, as = "div", className, children, ...rest }) {
624
+ const classes = ["uk-surface", backdrop ? "uk-surfaceBackdropped" : "", className ?? ""].filter(Boolean).join(" ");
625
+ return (0, import_react7.createElement)(
626
+ as,
627
+ { ...rest, className: classes },
628
+ backdrop && (0, import_react7.createElement)("span", { className: "uk-surfaceBackdrop", "aria-hidden": true, style: { backgroundImage: `url(${JSON.stringify(backdrop)})` } }),
629
+ children
630
+ );
631
+ }
632
+ function Segments({ items, end, label }) {
633
+ const strip = (0, import_react7.createElement)(
634
+ "span",
635
+ { className: "uk-segments", role: label ? "img" : void 0, "aria-label": label },
636
+ (items ?? []).map((item, i) => {
637
+ const { state, title } = typeof item === "string" ? { state: item } : item;
638
+ return (0, import_react7.createElement)("span", { key: i, className: "uk-segment", "data-state": SEGMENT_STATES.includes(state) ? state : "todo", title });
639
+ })
640
+ );
641
+ if (end === void 0) return strip;
642
+ return (0, import_react7.createElement)("span", { className: "uk-segmentsLabelled" }, strip, (0, import_react7.createElement)("span", { className: "uk-segmentsEnd" }, end));
643
+ }
644
+
645
+ // ui/src/client/chat.js
646
+ var import_react8 = require("react");
647
+ var import_dsh_client_ui_primitives5 = require("@deepseek-ai/dsh-client-ui-primitives");
648
+
649
+ // ui/src/chat.js
650
+ var MENTION = /(?<![A-Za-z0-9_.@])@([\p{L}\p{N}](?:[\p{L}\p{N}._-]*[\p{L}\p{N}])?)(?![\p{L}\p{N}_/])/gu;
651
+ var NOT_SPOKEN = /```[\s\S]*?```|`[^`\n]*`|\b[a-z][a-z0-9+.-]*:\/\/\S+/gi;
652
+ var spoken = (text) => String(text ?? "").replace(NOT_SPOKEN, (quoted) => " ".repeat(quoted.length));
653
+ function splitMentions(text) {
654
+ const parts = [];
655
+ let at = 0;
656
+ for (const match of spoken(text).matchAll(MENTION)) {
657
+ if (match.index > at) parts.push({ text: text.slice(at, match.index) });
658
+ parts.push({ mention: match[1], text: match[0] });
659
+ at = match.index + match[0].length;
660
+ }
661
+ if (at < String(text ?? "").length) parts.push({ text: text.slice(at) });
662
+ return parts;
663
+ }
664
+ function mentionsIn(text) {
665
+ return [...new Set(splitMentions(text).filter((part) => part.mention).map((part) => part.mention.toLowerCase()))];
666
+ }
667
+ function mentionAt(text, caret) {
668
+ const before = String(text ?? "").slice(0, caret);
669
+ const match = /(?:^|[^A-Za-z0-9_.@])@([\p{L}\p{N}._-]*)$/u.exec(before);
670
+ if (match === null) return null;
671
+ return { start: caret - match[1].length - 1, query: match[1] };
672
+ }
673
+ function rankCandidates(candidates, query, max = 8) {
674
+ const q = query.toLowerCase();
675
+ const scored = [];
676
+ for (const candidate of candidates ?? []) {
677
+ const keys = [candidate.token, candidate.label, ...candidate.aliases ?? []].filter(Boolean).map((key) => String(key).toLowerCase());
678
+ const score = q === "" ? 1 : keys.some((key) => key.startsWith(q)) ? 0 : keys.some((key) => key.includes(q)) ? 1 : -1;
679
+ if (score >= 0) scored.push([score, candidate]);
680
+ }
681
+ return scored.sort((a, b) => a[0] - b[0]).slice(0, max).map(([, candidate]) => candidate);
682
+ }
683
+ function insertMention(text, spot, token) {
684
+ const end = spot.start + 1 + spot.query.length;
685
+ const after = text.slice(end);
686
+ const insert = `@${token}${/^\s/.test(after) ? "" : " "}`;
687
+ return { text: text.slice(0, spot.start) + insert + after, caret: spot.start + insert.length };
688
+ }
689
+ function keepsPicker(root, next) {
690
+ return Boolean(root && next && typeof root.contains === "function" && root.contains(next));
691
+ }
692
+
693
+ // ui/src/client/chat.js
694
+ var join = (...names) => names.filter(Boolean).join(" ");
695
+ function createChat({ useWords, useNow: useNow2 }) {
696
+ function MentionText({ text, me }) {
697
+ const mine = new Set((me ?? []).map((name2) => String(name2).toLowerCase()));
698
+ return (0, import_react8.createElement)(import_react8.Fragment, null, splitMentions(text).map((part, i) => part.mention ? (0, import_react8.createElement)("span", { key: i, className: mine.has(part.mention.toLowerCase()) ? "uk-mention uk-mentionMe" : "uk-mention" }, part.text) : part.text));
699
+ }
700
+ function BubbleTime({ at }) {
701
+ const { locale } = useWords();
702
+ const now = useNow2(6e4);
703
+ const time = toTime(at);
704
+ if (!Number.isFinite(time)) return null;
705
+ const today = new Date(time).toDateString() === new Date(now).toDateString();
706
+ const text = new Intl.DateTimeFormat(locale, today ? { hour: "2-digit", minute: "2-digit" } : { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" }).format(time);
707
+ return (0, import_react8.createElement)(
708
+ import_dsh_client_ui_primitives5.Tooltip,
709
+ { label: formatFull(time, locale), side: "top" },
710
+ (0, import_react8.createElement)("time", { className: "uk-msgTime", dateTime: new Date(time).toISOString() }, text)
711
+ );
712
+ }
713
+ function ChatBubble({ side = "start", author, quote, time, highlight, folded, footer, id, className, children }) {
714
+ return (0, import_react8.createElement)(
715
+ "div",
716
+ {
717
+ id,
718
+ className: join("uk-msg", className),
719
+ "data-side": side === "end" ? "end" : "start",
720
+ "data-highlight": highlight ? "true" : void 0,
721
+ "data-folded": folded ? "true" : void 0
722
+ },
723
+ (0, import_react8.createElement)(
724
+ "div",
725
+ { className: "uk-msgBubble" },
726
+ author && (0, import_react8.createElement)("div", { className: "uk-msgAuthor" }, author),
727
+ quote && (0, import_react8.createElement)("div", { className: "uk-msgQuote" }, quote),
728
+ (0, import_react8.createElement)("div", { className: "uk-msgBody" }, children),
729
+ footer && (0, import_react8.createElement)("div", { className: "uk-msgFooter" }, footer)
730
+ ),
731
+ time && (0, import_react8.createElement)(BubbleTime, { at: time })
732
+ );
733
+ }
734
+ function ChatDivider({ tone = "muted", id, children }) {
735
+ return (0, import_react8.createElement)("div", { id, className: "uk-chatDivider", "data-tone": tone === "accent" ? "accent" : "muted", role: "separator" }, (0, import_react8.createElement)("span", null, children));
736
+ }
737
+ function DayLabel({ at }) {
738
+ const { locale } = useWords();
739
+ const now = useNow2(6e4);
740
+ const time = toTime(at);
741
+ if (!Number.isFinite(time)) return null;
742
+ const day = (d) => new Date(new Date(d).getFullYear(), new Date(d).getMonth(), new Date(d).getDate()).getTime();
743
+ const diff = Math.round((day(now) - day(time)) / 864e5);
744
+ if (diff >= 0 && diff <= 1) return new Intl.RelativeTimeFormat(locale, { numeric: "auto" }).format(-diff, "day");
745
+ return new Intl.DateTimeFormat(locale, { weekday: "short", month: "short", day: "numeric" }).format(time);
746
+ }
747
+ function ConversationRow({ icon, title, dot, preview, time, unread, quiet, mention, active, onClick, id }) {
748
+ const { t } = useWords();
749
+ const count = unread > 99 ? "99+" : unread > 0 ? String(unread) : "";
750
+ return (0, import_react8.createElement)(
751
+ "button",
752
+ {
753
+ type: "button",
754
+ id,
755
+ className: "uk-convo",
756
+ "aria-current": active ? "true" : void 0,
757
+ "data-unread": unread > 0 ? "true" : void 0,
758
+ onClick
759
+ },
760
+ icon && (0, import_react8.createElement)("span", { className: "uk-convoIcon" }, icon),
761
+ (0, import_react8.createElement)(
762
+ "span",
763
+ { className: "uk-convoMain" },
764
+ (0, import_react8.createElement)(
765
+ "span",
766
+ { className: "uk-convoTop" },
767
+ (0, import_react8.createElement)("span", { className: "uk-convoTitle" }, title),
768
+ dot,
769
+ time && (0, import_react8.createElement)("span", { className: "uk-convoTime" }, time)
770
+ ),
771
+ (0, import_react8.createElement)(
772
+ "span",
773
+ { className: "uk-convoBottom" },
774
+ (0, import_react8.createElement)("span", { className: "uk-convoPreview" }, preview),
775
+ mention && (0, import_react8.createElement)("span", { className: "uk-convoMention", role: "img", "aria-label": t("mentioned") }, "@"),
776
+ count && (0, import_react8.createElement)("span", { className: "uk-convoCount", "data-quiet": quiet ? "true" : void 0, "aria-label": t("unreadCount", { n: unread }) }, count)
777
+ )
778
+ )
779
+ );
780
+ }
781
+ return { MentionText, ChatBubble, ChatDivider, DayLabel, ConversationRow };
782
+ }
783
+
784
+ // ui/src/client/composer.js
785
+ var import_react9 = require("react");
786
+ var import_dsh_client_ui_primitives6 = require("@deepseek-ai/dsh-client-ui-primitives");
787
+ var coarse = () => typeof window !== "undefined" && window.matchMedia?.("(pointer:coarse)").matches === true;
788
+ var MAX_ROWS_PX = 168;
789
+ function createComposer({ useWords }) {
790
+ function Composer({ value, onChange, onSend, candidates, recipients, quote, onClearQuote, placeholder, label, sending, disabled, error }) {
791
+ const { t } = useWords();
792
+ const box = (0, import_react9.useRef)(null);
793
+ const root = (0, import_react9.useRef)(null);
794
+ const listId = (0, import_react9.useId)();
795
+ const [spot, setSpot] = (0, import_react9.useState)(null);
796
+ const [active, setActive] = (0, import_react9.useState)(0);
797
+ const matches = spot === null ? [] : rankCandidates(candidates, spot.query);
798
+ const open = spot !== null && (candidates?.length ?? 0) > 0;
799
+ (0, import_react9.useEffect)(() => {
800
+ const el = box.current;
801
+ if (el === null) return;
802
+ el.style.height = "auto";
803
+ el.style.height = `${Math.min(el.scrollHeight, MAX_ROWS_PX)}px`;
804
+ }, [value]);
805
+ (0, import_react9.useEffect)(() => {
806
+ setActive(0);
807
+ }, [spot?.query]);
808
+ const look = (text, caret) => setSpot(mentionAt(text, caret));
809
+ const pick = (candidate) => {
810
+ if (spot === null) return;
811
+ const next = insertMention(value, spot, candidate.token);
812
+ onChange(next.text);
813
+ setSpot(null);
814
+ requestAnimationFrame(() => {
815
+ box.current?.focus();
816
+ box.current?.setSelectionRange(next.caret, next.caret);
817
+ });
818
+ };
819
+ const openPicker = () => {
820
+ const el = box.current;
821
+ const caret = el?.selectionStart ?? value.length;
822
+ const before = value.slice(0, caret);
823
+ const glue = before === "" || /\s$/.test(before) ? "" : " ";
824
+ const text = `${before}${glue}@${value.slice(caret)}`;
825
+ const at = caret + glue.length + 1;
826
+ onChange(text);
827
+ setSpot({ start: at - 1, query: "" });
828
+ requestAnimationFrame(() => {
829
+ el?.focus();
830
+ el?.setSelectionRange(at, at);
831
+ });
832
+ };
833
+ const send = () => {
834
+ if (sending || disabled || value.trim() === "") return;
835
+ setSpot(null);
836
+ onSend();
837
+ };
838
+ const onKeyDown = (event) => {
839
+ if (event.nativeEvent.isComposing || event.keyCode === 229) return;
840
+ if (open && matches.length > 0) {
841
+ if (event.key === "ArrowDown" || event.key === "ArrowUp") {
842
+ event.preventDefault();
843
+ setActive((i) => (i + (event.key === "ArrowDown" ? 1 : matches.length - 1)) % matches.length);
844
+ return;
845
+ }
846
+ if (event.key === "Enter" || event.key === "Tab") {
847
+ event.preventDefault();
848
+ pick(matches[active] ?? matches[0]);
849
+ return;
850
+ }
851
+ }
852
+ if (open && event.key === "Escape") {
853
+ event.preventDefault();
854
+ setSpot(null);
855
+ return;
856
+ }
857
+ if (event.key === "Enter" && !event.shiftKey && !coarse()) {
858
+ event.preventDefault();
859
+ send();
860
+ }
861
+ };
862
+ return (0, import_react9.createElement)(
863
+ "div",
864
+ { ref: root, className: "uk-composer", "data-disabled": disabled ? "true" : void 0 },
865
+ open && (0, import_react9.createElement)(
866
+ "div",
867
+ { className: "uk-picker", id: listId, role: "listbox", "aria-label": t("mentionPick") },
868
+ matches.length === 0 ? (0, import_react9.createElement)("div", { className: "uk-pickerEmpty" }, t("noMatch")) : matches.map((candidate, i) => (0, import_react9.createElement)(
869
+ "button",
870
+ {
871
+ key: candidate.token,
872
+ type: "button",
873
+ role: "option",
874
+ id: `${listId}-${i}`,
875
+ className: "uk-pickerItem",
876
+ "aria-selected": i === active,
877
+ onPointerDown: (event) => event.preventDefault(),
878
+ onMouseEnter: () => setActive(i),
879
+ onClick: () => pick(candidate)
880
+ },
881
+ candidate.state && (0, import_react9.createElement)(import_dsh_client_ui_primitives6.StateDot, { state: candidate.state }),
882
+ (0, import_react9.createElement)("span", { className: "uk-pickerName" }, candidate.label ?? candidate.token),
883
+ candidate.label && candidate.label !== candidate.token && (0, import_react9.createElement)("span", { className: "uk-pickerToken" }, `@${candidate.token}`),
884
+ candidate.detail && (0, import_react9.createElement)("span", { className: "uk-pickerDetail" }, candidate.detail)
885
+ ))
886
+ ),
887
+ quote && (0, import_react9.createElement)(
888
+ "div",
889
+ { className: "uk-composerQuote" },
890
+ (0, import_react9.createElement)("span", null, quote),
891
+ onClearQuote && (0, import_react9.createElement)(import_dsh_client_ui_primitives6.Button, { variant: "ghost", size: "sm", "aria-label": t("cancel"), onClick: onClearQuote }, (0, import_react9.createElement)(import_dsh_client_ui_primitives6.IconCloseOutlineRegular, { size: 14 }))
892
+ ),
893
+ recipients && (0, import_react9.createElement)("div", { className: "uk-composerTo" }, recipients),
894
+ error && (0, import_react9.createElement)("div", { className: "uk-composerError", role: "alert" }, error),
895
+ (0, import_react9.createElement)(
896
+ "div",
897
+ { className: "uk-composerRow" },
898
+ (candidates?.length ?? 0) > 0 && (0, import_react9.createElement)(import_dsh_client_ui_primitives6.Button, {
899
+ variant: "ghost",
900
+ size: "sm",
901
+ className: "uk-composerAt",
902
+ "aria-label": t("mentionPick"),
903
+ disabled,
904
+ // Keep focus (and a phone's keyboard) in the text box while the button opens the picker.
905
+ onPointerDown: (event) => event.preventDefault(),
906
+ onClick: openPicker
907
+ }, "@"),
908
+ (0, import_react9.createElement)("textarea", {
909
+ ref: box,
910
+ className: "uk-composerInput",
911
+ rows: 1,
912
+ value,
913
+ placeholder,
914
+ "aria-label": label ?? placeholder,
915
+ disabled,
916
+ role: "combobox",
917
+ "aria-expanded": open,
918
+ "aria-controls": open ? listId : void 0,
919
+ "aria-activedescendant": open && matches.length > 0 ? `${listId}-${active}` : void 0,
920
+ "aria-autocomplete": "list",
921
+ onChange: (event) => {
922
+ onChange(event.target.value);
923
+ look(event.target.value, event.target.selectionStart);
924
+ },
925
+ onSelect: (event) => look(event.target.value, event.target.selectionStart),
926
+ onBlur: (event) => {
927
+ if (!keepsPicker(root.current, event.relatedTarget)) setSpot(null);
928
+ },
929
+ onKeyDown
930
+ }),
931
+ (0, import_react9.createElement)(
932
+ import_dsh_client_ui_primitives6.Button,
933
+ { variant: "primary", size: "sm", className: "uk-composerSend", disabled: disabled || sending || value.trim() === "", onClick: send, "aria-label": t("send") },
934
+ (0, import_react9.createElement)(import_dsh_client_ui_primitives6.IconSendOutlineRegular, { size: 16 }),
935
+ (0, import_react9.createElement)("span", { className: "uk-composerSendText" }, t("send"))
936
+ )
937
+ )
938
+ );
939
+ }
940
+ return { Composer };
941
+ }
942
+
943
+ // ui/src/client/time.js
944
+ var import_react10 = require("react");
945
+ var import_dsh_client_ui_primitives7 = require("@deepseek-ai/dsh-client-ui-primitives");
946
+ var MINUTE2 = 6e4;
947
+ var tickers = /* @__PURE__ */ new Map();
948
+ function ticker(step) {
949
+ let entry = tickers.get(step);
950
+ if (entry === void 0) {
951
+ entry = { now: Date.now(), listeners: /* @__PURE__ */ new Set(), timer: null };
952
+ tickers.set(step, entry);
953
+ }
954
+ return entry;
955
+ }
956
+ function tick(entry) {
957
+ entry.now = Date.now();
958
+ for (const listener of entry.listeners) listener();
959
+ }
960
+ function start(step, entry) {
961
+ if (entry.timer !== null || entry.listeners.size === 0) return;
962
+ if (typeof document !== "undefined" && document.visibilityState === "hidden") return;
963
+ entry.timer = setTimeout(function next() {
964
+ tick(entry);
965
+ entry.timer = setTimeout(next, step - Date.now() % step);
966
+ }, step - Date.now() % step);
967
+ }
968
+ function stop(entry) {
969
+ clearTimeout(entry.timer);
970
+ entry.timer = null;
971
+ }
972
+ if (typeof document !== "undefined") {
973
+ document.addEventListener("visibilitychange", () => {
974
+ for (const [step, entry] of tickers) {
975
+ if (document.visibilityState === "hidden") stop(entry);
976
+ else {
977
+ tick(entry);
978
+ start(step, entry);
979
+ }
980
+ }
981
+ });
982
+ }
983
+ function useNow(step = MINUTE2) {
984
+ const subscribe = (0, import_react10.useCallback)((listener) => {
985
+ const entry = ticker(step);
986
+ if (entry.listeners.size === 0) entry.now = Date.now();
987
+ entry.listeners.add(listener);
988
+ start(step, entry);
989
+ return () => {
990
+ entry.listeners.delete(listener);
991
+ if (entry.listeners.size === 0) stop(entry);
992
+ };
993
+ }, [step]);
994
+ return (0, import_react10.useSyncExternalStore)(subscribe, () => ticker(step).now);
995
+ }
996
+ function useNowNear(target) {
997
+ const minute = useNow(MINUTE2);
998
+ const near = Number.isFinite(target) && Math.abs(target - minute) < 2 * MINUTE2;
999
+ const second = useNow(near ? 1e3 : MINUTE2);
1000
+ return near ? second : minute;
1001
+ }
1002
+ function createTime({ useWords }) {
1003
+ function Countdown({ to, size = "big", units, className, selectable = false }) {
1004
+ const { t, locale } = useWords();
1005
+ const target = toTime(to);
1006
+ const now = useNowNear(target);
1007
+ const ms = target - now;
1008
+ const cls = `uk-countdown uk-countdown-${size}${selectable ? " uk-selectable" : ""}${className ? ` ${className}` : ""}`;
1009
+ if (!Number.isFinite(target)) return null;
1010
+ if (ms <= 0) return (0, import_react10.createElement)("span", { className: cls }, t("now"));
1011
+ if (size === "inline") return (0, import_react10.createElement)("span", { className: cls }, formatDuration(ms, locale, units ?? 2));
1012
+ return (0, import_react10.createElement)("span", { className: cls, role: "timer" }, durationParts(ms, units ?? 3).map(({ n, unit }) => {
1013
+ const parts = unitParts(n, unit, locale);
1014
+ return (0, import_react10.createElement)("span", { key: unit, className: "uk-countdownPart" }, (0, import_react10.createElement)("b", null, parts.number), (0, import_react10.createElement)("small", null, parts.unit));
1015
+ }));
1016
+ }
1017
+ function TimeUntil({ to }) {
1018
+ const { t, locale } = useWords();
1019
+ const target = toTime(to);
1020
+ const now = useNowNear(target);
1021
+ if (!Number.isFinite(target)) return null;
1022
+ const ms = target - now;
1023
+ return (0, import_react10.createElement)("span", { className: "uk-time" }, ms <= 0 ? t("now") : t("inDuration", { duration: formatDuration(ms, locale) }));
1024
+ }
1025
+ function TimeAgo({ at }) {
1026
+ const { t, locale } = useWords();
1027
+ const now = useNow(MINUTE2);
1028
+ const time = toTime(at);
1029
+ if (!Number.isFinite(time)) return null;
1030
+ const text = formatAgo((0, import_dsh_client_ui_primitives7.relativeTime)(time, now), locale) ?? t("justNow");
1031
+ return (0, import_react10.createElement)(import_dsh_client_ui_primitives7.Tooltip, { label: formatFull(time, locale), side: "top" }, (0, import_react10.createElement)("time", { className: "uk-time", dateTime: new Date(time).toISOString() }, text));
1032
+ }
1033
+ function RelativeDay({ date }) {
1034
+ const { locale } = useWords();
1035
+ const now = useNow(MINUTE2);
1036
+ const time = toTime(date);
1037
+ if (!Number.isFinite(time)) return null;
1038
+ return (0, import_react10.createElement)(import_dsh_client_ui_primitives7.Tooltip, { label: formatFull(time, locale), side: "top" }, (0, import_react10.createElement)("time", { className: "uk-time", dateTime: String(date) }, formatRelativeDay(date, now, locale)));
1039
+ }
1040
+ return { Countdown, TimeUntil, TimeAgo, RelativeDay };
1041
+ }
1042
+
1043
+ // ui/src/client/words.js
1044
+ var import_react11 = require("react");
1045
+ var NS = "dsh-ui-kit";
1046
+ function intlTag(active) {
1047
+ try {
1048
+ return Intl.DateTimeFormat.supportedLocalesOf(active).length > 0 ? active : "en";
1049
+ } catch {
1050
+ return "en";
1051
+ }
1052
+ }
1053
+ function createWords(ctx) {
1054
+ const t = ctx.locale.bind(NS);
1055
+ function useLanguage() {
1056
+ const subscribe = (0, import_react11.useCallback)((listener) => ctx.locale.subscribe(listener), []);
1057
+ return (0, import_react11.useSyncExternalStore)(subscribe, () => ctx.locale.getSnapshot().active);
1058
+ }
1059
+ function useWords() {
1060
+ const active = useLanguage();
1061
+ return { t, locale: intlTag(active) };
1062
+ }
1063
+ return { t, useLanguage, useWords };
1064
+ }
1065
+
1066
+ // ui/src/client/index.js
1067
+ var name = "ui-kit";
1068
+ var inject = ["locale"];
1069
+ function apply(ctx) {
1070
+ ctx.effect(() => {
1071
+ const disposers = [];
1072
+ for (const [tag, file] of Object.entries(locales_default)) {
1073
+ try {
1074
+ disposers.push(ctx.locale.register(NS, tag, file.ui));
1075
+ } catch (error) {
1076
+ console.warn(`dsh-ui-kit: no ${tag} words`, error);
1077
+ }
1078
+ }
1079
+ return () => {
1080
+ for (const dispose of disposers) dispose();
1081
+ };
1082
+ }, "ui-kit: words");
1083
+ if (typeof document !== "undefined") {
1084
+ ctx.effect(() => {
1085
+ const style = document.createElement("style");
1086
+ style.id = STYLE_ID;
1087
+ style.dataset.plugin = "@soffits/dsh-plugin-sdk";
1088
+ style.textContent = CSS;
1089
+ document.head.appendChild(style);
1090
+ return () => style.remove();
1091
+ }, "ui-kit: styles");
1092
+ }
1093
+ const actionsStore = createActionsStore();
1094
+ ctx.inject(["uiActions"], (scope) => {
1095
+ scope.effect(() => {
1096
+ actionsStore.set(scope.uiActions);
1097
+ return () => actionsStore.set(null);
1098
+ }, "ui-kit: suggested steps");
1099
+ });
1100
+ const { useWords } = createWords(ctx);
1101
+ const time = createTime({ useWords });
1102
+ const live = createLive({ useWords });
1103
+ const change = createChange({ useWords });
1104
+ ctx.provide("uiKit", Object.freeze({
1105
+ Icon,
1106
+ Tile,
1107
+ Chip: createChip({ TimeUntil: time.TimeUntil }),
1108
+ useNow,
1109
+ ...time,
1110
+ Ring,
1111
+ Spark,
1112
+ ...createProgress({ useNow }),
1113
+ useEventStream,
1114
+ ...live,
1115
+ useWash,
1116
+ Wash,
1117
+ ...change,
1118
+ ...createHistory({ useWords, useNow }),
1119
+ ...createSuggested({ useWords, actionsStore }),
1120
+ ...createChat({ useWords, useNow }),
1121
+ ...createComposer({ useWords }),
1122
+ splitMentions,
1123
+ mentionsIn,
1124
+ Surface,
1125
+ Segments,
1126
+ TOUCH,
1127
+ TONES,
1128
+ toneColor,
1129
+ tagTone,
1130
+ ICON_NAMES,
1131
+ formatDuration,
1132
+ formatRelativeDay
1133
+ }));
1134
+ }
1135
+
1136
+ return module.exports
1137
+ },
1138
+ })