ikoneme-lib 0.1.1 → 0.3.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.
@@ -1,12 +1,12 @@
1
- import { jsxs as f, Fragment as P, jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as xe, createElement as ne, useState as E, useEffect as le, useCallback as fe } from "react";
1
+ import { jsx as r, Fragment as A, jsxs as p } from "react/jsx-runtime";
2
+ import { forwardRef as pe, createElement as te, useState as M, useEffect as le, useCallback as ue } from "react";
3
3
  /**
4
4
  * @license lucide-react v0.294.0 - ISC
5
5
  *
6
6
  * This source code is licensed under the ISC license.
7
7
  * See the LICENSE file in the root directory of this source tree.
8
8
  */
9
- var ke = {
9
+ var me = {
10
10
  xmlns: "http://www.w3.org/2000/svg",
11
11
  width: 24,
12
12
  height: 24,
@@ -23,27 +23,27 @@ var ke = {
23
23
  * This source code is licensed under the ISC license.
24
24
  * See the LICENSE file in the root directory of this source tree.
25
25
  */
26
- const be = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(), D = (e, o) => {
27
- const l = xe(
28
- ({ color: r = "currentColor", size: i = 24, strokeWidth: p = 2, absoluteStrokeWidth: c, className: I = "", children: k, ...N }, T) => ne(
26
+ const we = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(), j = (e, t) => {
27
+ const o = pe(
28
+ ({ color: l = "currentColor", size: F = 24, strokeWidth: s = 2, absoluteStrokeWidth: h, className: b = "", children: u, ...k }, E) => te(
29
29
  "svg",
30
30
  {
31
- ref: T,
32
- ...ke,
33
- width: i,
34
- height: i,
35
- stroke: r,
36
- strokeWidth: c ? Number(p) * 24 / Number(i) : p,
37
- className: ["lucide", `lucide-${be(e)}`, I].join(" "),
38
- ...N
31
+ ref: E,
32
+ ...me,
33
+ width: F,
34
+ height: F,
35
+ stroke: l,
36
+ strokeWidth: h ? Number(s) * 24 / Number(F) : s,
37
+ className: ["lucide", `lucide-${we(e)}`, b].join(" "),
38
+ ...k
39
39
  },
40
40
  [
41
- ...o.map(([S, y]) => ne(S, y)),
42
- ...Array.isArray(k) ? k : [k]
41
+ ...t.map(([m, w]) => te(m, w)),
42
+ ...Array.isArray(u) ? u : [u]
43
43
  ]
44
44
  )
45
45
  );
46
- return l.displayName = `${e}`, l;
46
+ return o.displayName = `${e}`, o;
47
47
  };
48
48
  /**
49
49
  * @license lucide-react v0.294.0 - ISC
@@ -51,7 +51,7 @@ const be = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(),
51
51
  * This source code is licensed under the ISC license.
52
52
  * See the LICENSE file in the root directory of this source tree.
53
53
  */
54
- const ye = D("ArrowLeft", [
54
+ const ye = j("ArrowLeft", [
55
55
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
56
56
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
57
57
  ]);
@@ -61,7 +61,7 @@ const ye = D("ArrowLeft", [
61
61
  * This source code is licensed under the ISC license.
62
62
  * See the LICENSE file in the root directory of this source tree.
63
63
  */
64
- const ve = D("Pen", [
64
+ const ve = j("Pen", [
65
65
  ["path", { d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z", key: "5qss01" }]
66
66
  ]);
67
67
  /**
@@ -70,7 +70,7 @@ const ve = D("Pen", [
70
70
  * This source code is licensed under the ISC license.
71
71
  * See the LICENSE file in the root directory of this source tree.
72
72
  */
73
- const we = D("Search", [
73
+ const be = j("Search", [
74
74
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
75
75
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
76
76
  ]);
@@ -80,7 +80,7 @@ const we = D("Search", [
80
80
  * This source code is licensed under the ISC license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
82
  */
83
- const Ie = D("Trash2", [
83
+ const ke = j("Trash2", [
84
84
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
85
85
  ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
86
86
  ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
@@ -93,10 +93,71 @@ const Ie = D("Trash2", [
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
95
  */
96
- const Se = D("X", [
96
+ const Ie = j("X", [
97
97
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
98
98
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
99
- ]), h = {
99
+ ]), U = "https://ikondb.iigap.com", Se = 60 * 60 * 1e3;
100
+ let G = null, K = null;
101
+ const R = /* @__PURE__ */ new Map();
102
+ function Ce(e) {
103
+ return !e || Array.isArray(e) ? null : e.origin || e.preview || e.thumb || e.svg || null;
104
+ }
105
+ function Ee(e) {
106
+ if (!e || Array.isArray(e)) return {};
107
+ const { origin: t = null, preview: o = null, thumb: l = null, svg: F = null } = e;
108
+ return { origin: t, preview: o, thumb: l, svg: F };
109
+ }
110
+ async function _e(e) {
111
+ const t = await fetch(`${e}/api/ikons`);
112
+ if (!t.ok) throw new Error(`IkonDB GET /api/ikons -> ${t.status}`);
113
+ const o = await t.json();
114
+ return (Array.isArray(o == null ? void 0 : o.data) ? o.data : []).map((F) => ({
115
+ id: F.id,
116
+ name: F.description || "",
117
+ url: Ce(F.media)
118
+ })).filter((F) => F.url);
119
+ }
120
+ async function Ve({ baseUrl: e = U } = {}) {
121
+ return G && Date.now() - G.at < Se ? G.list : K || (K = _e(e).then((t) => (G = { at: Date.now(), list: t }, t)).finally(() => {
122
+ K = null;
123
+ }), K);
124
+ }
125
+ async function Fe(e, { baseUrl: t = U, limit: o = 20 } = {}) {
126
+ const l = (e || "").trim().toLowerCase();
127
+ if (!l) return [];
128
+ const F = await Ve({ baseUrl: t }), s = [];
129
+ for (const h of F)
130
+ if (h.name.toLowerCase().includes(l) && (s.push(h), s.length >= o))
131
+ break;
132
+ return s;
133
+ }
134
+ async function Te(e, { baseUrl: t = U } = {}) {
135
+ if (e == null) return null;
136
+ if (R.has(e)) return R.get(e);
137
+ const o = await fetch(`${t}/api/ikons/${encodeURIComponent(e)}`);
138
+ if (!o.ok) throw new Error(`IkonDB GET /api/ikons/${e} -> ${o.status}`);
139
+ const l = await o.json();
140
+ if ((l == null ? void 0 : l.status) !== "success" || !(l != null && l.data))
141
+ return R.set(e, null), null;
142
+ const F = Ee(l.data.media), s = {
143
+ id: l.data.id,
144
+ name: l.data.description || "",
145
+ url: F.origin || F.preview || F.thumb || F.svg || null,
146
+ ...F
147
+ };
148
+ return R.set(e, s), s;
149
+ }
150
+ async function Be(e) {
151
+ try {
152
+ return await Fe(e);
153
+ } catch {
154
+ return [];
155
+ }
156
+ }
157
+ function h0() {
158
+ G = null, K = null, R.clear();
159
+ }
160
+ const Ne = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6BE1E'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6BE1E'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='30'%20y='1.5'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='30'%20y='75'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='75'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3crect%20x='1.5'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3c/svg%3e", Me = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23960000'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23960000'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3cg%3e%3crect%20x='9'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='24'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='39'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='54'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='69'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='75'%20y='61.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='75'%20y='46.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='75'%20y='31.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='75'%20y='16.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='75'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='61.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='46.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='31.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='16.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='39'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3c/svg%3e", Le = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23006E96'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23006E96'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='58.5'%20y='1.5'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='75'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3crect%20x='1.5'%20y='75'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='1.5'%20y='58.5'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3c/svg%3e", De = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6821E'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6821E'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='6'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='6'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='12'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='15'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='18'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='21'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='27'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='33'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='36'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='39'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='42'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='45'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='48'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='51'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='57'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='60'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='63'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='66'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='72'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='4.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='7.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='10.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='13.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='16.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='19.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='22.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='25.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='28.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='31.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='34.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='37.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='40.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='43.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='46.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='49.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='52.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='55.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='58.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='61.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='64.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='67.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='70.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='9'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='12'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='15'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='18'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='21'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='24'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='27'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='30'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='33'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='36'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='39'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='42'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='45'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='48'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='51'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='54'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='57'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='60'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='63'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='66'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='69'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='72'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='4.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='7.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='10.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='13.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='16.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='19.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='22.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='25.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='28.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='31.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='34.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='37.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='40.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='43.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='46.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='49.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='52.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='55.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='58.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='61.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='64.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='67.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='70.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/svg%3e", Ke = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='78px'%20height='78px'%20viewBox='0%200%2078%2078'%20enable-background='new%200%200%2078%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23508C50'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h68.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23508C50'%20d='M75,75L75,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='18'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='27'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='36'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='45'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='63'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='72'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='6'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='15'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='33'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='42'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='51'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='60'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='75'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/svg%3e", Oe = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2028.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2078%2078'%20style='enable-background:new%200%200%2078%2078;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill-rule:evenodd;clip-rule:evenodd;fill:%236F6F6F;}%20.st1{fill:%23303030;}%20%3c/style%3e%3cg%20id='Neutral_00000127737234708554144110000011539647311500563641_'%3e%3cg%3e%3cpath%20class='st0'%20d='M3,3L3,3C1.4,4.4,0,7.2,0,9.3V78h68.9c2.2,0,4.7-1.3,6.1-3l0,0H3V3z'/%3e%3cpath%20class='st0'%20d='M75,75L75,75c1.6-1.4,3-4.2,3-6.3V0H9.1C6.9,0,4.4,1.3,3,3l0,0h72V75z'/%3e%3c/g%3e%3crect%20x='75'%20class='st1'%20width='3'%20height='3'/%3e%3crect%20y='75'%20class='st1'%20width='3'%20height='3'/%3e%3c/g%3e%3c/svg%3e", Ge = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6BE1E'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261L0.102,78h140.921%20c2.063,0,4.583-1.348,5.977-3h0.102h-144L3,3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6BE1E'%20d='M147,75L147,75c1.562-1.391,3-4.174,3-6.261L150.102,0H9.181%20C6.914,0,4.395,1.346,3,3h0.102h144L147,75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='65.102'%20y='1.5'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='65.102'%20y='75'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='147'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3crect%20x='1.5'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3c/svg%3e", Re = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23960000'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23960000'%20d='M147,75L147,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='81'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='96'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='111'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='126'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='141'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3cg%3e%3crect%20x='6'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='21'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='36'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='51'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='66'%20y='1.5'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='76.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='91.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='106.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='121.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='136.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3c/g%3e%3crect%20x='147'%20y='61.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='147'%20y='46.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='147'%20y='31.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='147'%20y='16.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='147'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3cg%3e%3crect%20x='61.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='46.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='31.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='16.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='75'%20fill='%23FFFFFF'%20width='7.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='39'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3crect%20x='1.5'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='7.5'/%3e%3c/g%3e%3c/svg%3e", ze = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23006E96'%20d='M3.084,3L3.084,3c-1.562,1.392-3,4.172-3,6.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0h-144V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23006E96'%20d='M147.084,75L147.084,75c1.562-1.391,3-4.174,3-6.261V0H9.163%20C6.998,0,4.479,1.346,3.084,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='130.584'%20y='1.5'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='147.084'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3crect%20x='1.584'%20y='75'%20fill='%23FFFFFF'%20width='18'%20height='1.5'/%3e%3crect%20x='1.584'%20y='58.5'%20fill='%23FFFFFF'%20width='1.5'%20height='18'/%3e%3c/svg%3e", je = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6821E'%20d='M2.917,3L2.917,3c-1.562,1.392-3,4.172-3,6.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0h-144V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23E6821E'%20d='M146.917,75L146.917,75c1.562-1.391,3-4.174,3-6.261V0H8.996%20C6.831,0,4.312,1.346,2.917,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3c/g%3e%3crect%20x='1.5'%20y='6'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='12'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='15'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='18'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='21'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='27'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='30'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='33'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='36'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='39'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='42'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='45'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='48'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='51'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='57'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='60'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='63'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='66'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='72'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='4.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='7.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='10.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='13.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='16.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='19.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='22.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='25.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='28.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='31.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='34.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='37.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='40.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='43.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='46.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='49.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='52.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='55.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='58.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='61.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='64.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='67.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='70.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='144'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='142.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3cg%3e%3crect%20x='6'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='9'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='12'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='15'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='18'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='21'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='24'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='27'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='30'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='33'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='36'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='39'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='42'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='45'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='48'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='51'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='54'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='57'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='60'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='63'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='66'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='69'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='72'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='75'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='78'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='81'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='84'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='87'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='90'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='93'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='96'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='99'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='102'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='105'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='108'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='111'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='114'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='117'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='120'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='123'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='126'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='129'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='132'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='135'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='138'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='141'%20y='1.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='73.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='76.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='79.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='82.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='85.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='88.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='91.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='94.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='97.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='100.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='103.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='106.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='109.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='112.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='115.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='118.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='121.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='124.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='127.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='130.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='133.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='136.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='139.5'%20y='75'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/g%3e%3cg%3e%3crect%20x='147.002'%20y='4.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='7.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='10.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='13.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='16.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='19.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='22.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='25.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='28.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='31.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='34.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='37.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='40.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='43.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='46.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='49.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='52.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='55.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='58.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='61.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='64.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='67.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147.002'%20y='70.5'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/g%3e%3c/svg%3e", He = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23508C50'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%23508C50'%20d='M147,75L147,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20x='1.5'%20y='9'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='18'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='27'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='36'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='45'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='54'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='63'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='1.5'%20y='72'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='6'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='15'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='24'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='33'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='42'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='51'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='60'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3crect%20x='147'%20y='69'%20fill='%23FFFFFF'%20width='1.5'%20height='1.5'/%3e%3c/svg%3e", Pe = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2016.0.4,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='150px'%20height='78px'%20viewBox='0%200%20150%2078'%20enable-background='new%200%200%20150%2078'%20xml:space='preserve'%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%236F6F6F'%20d='M3,3L3,3C1.438,4.392,0,7.172,0,9.261V78h140.921%20c2.165,0,4.685-1.348,6.079-3l0,0H3V3z'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20fill='%236F6F6F'%20d='M147,75L147,75c1.562-1.391,3-4.174,3-6.261V0H9.079%20C6.914,0,4.395,1.346,3,3l0,0h144V75z'/%3e%3c/g%3e%3crect%20x='147'%20fill='%23303030'%20width='3'%20height='3'/%3e%3crect%20y='75'%20fill='%23303030'%20width='3'%20height='3'/%3e%3c/svg%3e", x = {
100
161
  context: [
101
162
  { tooltip: "Male", url: "https://text2ikon.komunikon.com/gender-assets/KomunIKON_Male.svg" },
102
163
  {
@@ -152,36 +213,36 @@ const Se = D("X", [
152
213
  { tooltip: "Exclam", url: "https://text2ikon.komunikon.com/mode-assets/KomunIKON_Exclam.svg" },
153
214
  { tooltip: "Which", url: "https://text2ikon.komunikon.com/mode-assets/KomunIKON_Which.svg" }
154
215
  ],
155
- // Direct source URLs (bypassing text2ikon's `_next/image` proxy, which 500s
156
- // on these — it can no longer optimize images from this old ikondb domain).
216
+ // Direct source URLs on ikondb.iigap.com, the IkonDB instance this library
217
+ // uses everywhere (also bypasses text2ikon's `_next/image` proxy).
157
218
  root: [
158
219
  {
159
220
  tooltip: "Love/Passion",
160
- url: "https://ikondb.komunikon.com/uploads/images/icons/ZFcaar88AP.png"
221
+ url: "https://ikondb.iigap.com/storage/media/960/ZFcaar88AP.png"
161
222
  },
162
223
  {
163
224
  tooltip: "Star/Excellence",
164
- url: "https://ikondb.komunikon.com/uploads/images/icons/M0ADaSXzWe.png"
225
+ url: "https://ikondb.iigap.com/storage/media/991/M0ADaSXzWe.png"
165
226
  },
166
227
  {
167
228
  tooltip: "Value/Precious",
168
- url: "https://ikondb.komunikon.com/uploads/images/icons/6ghAUKbdIs.png"
229
+ url: "https://ikondb.iigap.com/storage/media/942/6ghAUKbdIs.png"
169
230
  },
170
231
  {
171
232
  tooltip: "Fire/Hot",
172
- url: "https://ikondb.komunikon.com/uploads/images/icons/zq0n4vHSQW.png"
233
+ url: "https://ikondb.iigap.com/storage/media/1478/zq0n4vHSQW.png"
173
234
  },
174
235
  {
175
236
  tooltip: "Water/Fluid",
176
- url: "https://ikondb.komunikon.com/uploads/images/icons/DVhDIm6KqB.png"
237
+ url: "https://ikondb.iigap.com/storage/media/1480/DVhDIm6KqB.png"
177
238
  },
178
239
  {
179
240
  tooltip: "Flower/Beauty",
180
- url: "https://ikondb.komunikon.com/uploads/images/icons/UnpCfhHsUa.png"
241
+ url: "https://ikondb.iigap.com/storage/media/1048/UnpCfhHsUa.png"
181
242
  },
182
243
  {
183
244
  tooltip: "Leaf/Nature",
184
- url: "https://ikondb.komunikon.com/uploads/images/icons/5Ex6my6BI7.png"
245
+ url: "https://ikondb.iigap.com/storage/media/1398/5Ex6my6BI7.png"
185
246
  }
186
247
  ],
187
248
  tenses: [
@@ -262,112 +323,185 @@ const Se = D("X", [
262
323
  url: "https://text2ikon.komunikon.com/time-assets/KomunIKON_Verbal_Tense_os.svg"
263
324
  }
264
325
  ]
265
- }, H = [
266
- { id: "name", label: "Name", color: "#60a5fa", plural: !1 },
267
- { id: "verb", label: "Verb", color: "#f87171", plural: !1 },
268
- { id: "adjective", label: "Adjective", color: "#4ade80", plural: !1 },
269
- { id: "adverb", label: "Adverb", color: "#fb923c", plural: !1 },
270
- { id: "conjunction", label: "Conjunction", color: "#a78bfa", plural: !1 },
271
- { id: "neutral", label: "Neutral", color: "#94a3b8", plural: !1 },
272
- { id: "name_plural", label: "Name (plural)", color: "#60a5fa", plural: !0 },
273
- { id: "verb_plural", label: "Verb (plural)", color: "#f87171", plural: !0 },
274
- { id: "adjective_plural", label: "Adjective (plural)", color: "#4ade80", plural: !0 },
275
- { id: "adverb_plural", label: "Adverb (plural)", color: "#fb923c", plural: !0 },
276
- { id: "conjunction_plural", label: "Conjunction (plural)", color: "#a78bfa", plural: !0 },
277
- { id: "neutral_plural", label: "Neutral (plural)", color: "#94a3b8", plural: !0 }
278
- ], _e = H.map((e) => e.id), Ne = new Set(_e);
279
- function Te(e) {
280
- return H.find((o) => o.id === e) ?? null;
326
+ }, z = [
327
+ { id: "name", label: "Name", color: "#E6BE1E", plural: !1, image: Ne },
328
+ { id: "verb", label: "Verb", color: "#960000", plural: !1, image: Me },
329
+ { id: "adjective", label: "Adjective", color: "#006E96", plural: !1, image: Le },
330
+ { id: "adverb", label: "Adverb", color: "#E6821E", plural: !1, image: De },
331
+ {
332
+ id: "conjunction",
333
+ label: "Conjunction",
334
+ color: "#508C50",
335
+ plural: !1,
336
+ image: Ke
337
+ },
338
+ { id: "neutral", label: "Neutral", color: "#6F6F6F", plural: !1, image: Oe },
339
+ {
340
+ id: "name_plural",
341
+ label: "Name (plural)",
342
+ color: "#E6BE1E",
343
+ plural: !0,
344
+ image: Ge
345
+ },
346
+ {
347
+ id: "verb_plural",
348
+ label: "Verb (plural)",
349
+ color: "#960000",
350
+ plural: !0,
351
+ image: Re
352
+ },
353
+ {
354
+ id: "adjective_plural",
355
+ label: "Adjective (plural)",
356
+ color: "#006E96",
357
+ plural: !0,
358
+ image: ze
359
+ },
360
+ {
361
+ id: "adverb_plural",
362
+ label: "Adverb (plural)",
363
+ color: "#E6821E",
364
+ plural: !0,
365
+ image: je
366
+ },
367
+ {
368
+ id: "conjunction_plural",
369
+ label: "Conjunction (plural)",
370
+ color: "#508C50",
371
+ plural: !0,
372
+ image: He
373
+ },
374
+ {
375
+ id: "neutral_plural",
376
+ label: "Neutral (plural)",
377
+ color: "#6F6F6F",
378
+ plural: !0,
379
+ image: Pe
380
+ }
381
+ ], We = z.map((e) => e.id), Ae = new Set(We);
382
+ function oe(e) {
383
+ return z.find((t) => t.id === e) ?? null;
384
+ }
385
+ function $(e, t) {
386
+ const o = typeof e == "string" ? oe(e) : e;
387
+ if (!o) return {};
388
+ const l = t / 78, F = Math.max(2, Math.round(3 * l)), s = Math.max(F, Math.round(9 * l)), h = o.plural ? "11.538% 6%" : "11.538%";
389
+ return {
390
+ borderStyle: "solid",
391
+ borderColor: "transparent",
392
+ borderWidth: `${F}px`,
393
+ borderImageSource: `url("${o.image}")`,
394
+ borderImageSlice: h,
395
+ borderImageWidth: `${s}px`,
396
+ borderImageRepeat: "stretch",
397
+ // The artwork draws its own rounded outer corners and has a square inner
398
+ // edge: keep the box square and the card fill strictly inside the frame,
399
+ // so it neither peeks out around the curves nor leaves a gap inside them.
400
+ borderRadius: 0,
401
+ backgroundClip: "padding-box"
402
+ };
281
403
  }
282
- function C(e, o) {
283
- var l;
284
- return (l = h[e]) == null ? void 0 : l.find((r) => r.url === o);
404
+ function B(e, t) {
405
+ var o;
406
+ return (o = x[e]) == null ? void 0 : o.find((l) => l.url === t);
285
407
  }
286
- function Qe(e, o) {
287
- var l, r;
288
- return (r = (l = h[e]) == null ? void 0 : l[o]) == null ? void 0 : r.url;
408
+ function d0(e, t) {
409
+ var o, l;
410
+ return (l = (o = x[e]) == null ? void 0 : o[t]) == null ? void 0 : l.url;
289
411
  }
290
- function K(e) {
412
+ function V(e) {
291
413
  return e == null ? null : typeof e == "object" && "url" in e ? e.url : e;
292
414
  }
293
- function Ke(e) {
415
+ function $e(e) {
294
416
  return e == null ? null : typeof e == "object" ? e.svg || e.url || null : e;
295
417
  }
296
- function b(e) {
418
+ function y(e) {
297
419
  return { name: e.tooltip, url: e.url };
298
420
  }
299
- function re() {
421
+ function ie() {
300
422
  return {
301
- context: b(h.context[0]),
423
+ context: y(x.context[0]),
302
424
  reference: {
303
425
  left: null,
304
426
  right: null
305
427
  },
306
- role: b(h.role[0]),
307
- modes: b(h.modes[0]),
308
- root: b(h.root[0]),
428
+ role: y(x.role[0]),
429
+ modes: y(x.modes[0]),
430
+ root: y(x.root[0]),
309
431
  rootName: null,
310
- tenses: b(h.tenses[0]),
432
+ tenses: y(x.tenses[0]),
311
433
  border: null
312
434
  };
313
435
  }
314
- function $e(e) {
315
- var k, N, T, S, y, m, _;
436
+ function Ue(e) {
437
+ var u, k, E, m, w, _, I;
316
438
  if (!e) return e;
317
- const o = e.reference || { left: null, right: null }, l = typeof e.context == "string" ? C("context", e.context) : null, r = typeof e.role == "string" ? C("role", e.role) : null, i = typeof e.modes == "string" ? C("modes", e.modes) : null, p = typeof e.root == "string" ? C("root", e.root) : null, c = typeof e.tenses == "string" ? C("tenses", e.tenses) : null, I = e.border != null && Ne.has(e.border) ? e.border : null;
439
+ const t = e.reference || { left: null, right: null }, o = typeof e.context == "string" ? B("context", e.context) : null, l = typeof e.role == "string" ? B("role", e.role) : null, F = typeof e.modes == "string" ? B("modes", e.modes) : null, s = typeof e.root == "string" ? B("root", e.root) : null, h = typeof e.tenses == "string" ? B("tenses", e.tenses) : null, b = e.border != null && Ae.has(e.border) ? e.border : null;
318
440
  return {
319
441
  ...e,
320
- context: typeof e.context == "object" && ((k = e.context) == null ? void 0 : k.url) != null ? e.context : l ? b(l) : { name: "", url: e.context || "" },
442
+ context: typeof e.context == "object" && ((u = e.context) == null ? void 0 : u.url) != null ? e.context : o ? y(o) : { name: "", url: e.context || "" },
321
443
  reference: {
322
- left: o.left == null ? null : typeof o.left == "object" && ((N = o.left) == null ? void 0 : N.url) != null ? o.left : C("reference", o.left) ? b(C("reference", o.left)) : { name: "", url: o.left },
323
- right: o.right == null ? null : typeof o.right == "object" && ((T = o.right) == null ? void 0 : T.url) != null ? o.right : C("reference", o.right) ? b(C("reference", o.right)) : { name: "", url: o.right }
444
+ left: t.left == null ? null : typeof t.left == "object" && ((k = t.left) == null ? void 0 : k.url) != null ? t.left : B("reference", t.left) ? y(B("reference", t.left)) : { name: "", url: t.left },
445
+ right: t.right == null ? null : typeof t.right == "object" && ((E = t.right) == null ? void 0 : E.url) != null ? t.right : B("reference", t.right) ? y(B("reference", t.right)) : { name: "", url: t.right }
324
446
  },
325
- role: typeof e.role == "object" && ((S = e.role) == null ? void 0 : S.url) != null ? e.role : r ? b(r) : { name: "", url: e.role || "" },
326
- modes: typeof e.modes == "object" && ((y = e.modes) == null ? void 0 : y.url) != null ? e.modes : i ? b(i) : { name: "", url: e.modes || "" },
327
- root: typeof e.root == "object" && ((m = e.root) == null ? void 0 : m.url) != null ? { ...e.root, name: e.rootName ?? e.root.name } : p ? { name: e.rootName ?? p.tooltip, url: p.url } : { name: e.rootName ?? "", url: e.root || "" },
328
- tenses: typeof e.tenses == "object" && ((_ = e.tenses) == null ? void 0 : _.url) != null ? e.tenses : c ? b(c) : { name: "", url: e.tenses || "" },
329
- border: I
447
+ role: typeof e.role == "object" && ((m = e.role) == null ? void 0 : m.url) != null ? e.role : l ? y(l) : { name: "", url: e.role || "" },
448
+ modes: typeof e.modes == "object" && ((w = e.modes) == null ? void 0 : w.url) != null ? e.modes : F ? y(F) : { name: "", url: e.modes || "" },
449
+ root: typeof e.root == "object" && ((_ = e.root) == null ? void 0 : _.url) != null ? { ...e.root, name: e.rootName ?? e.root.name } : s ? { name: e.rootName ?? s.tooltip, url: s.url } : { name: e.rootName ?? "", url: e.root || "" },
450
+ tenses: typeof e.tenses == "object" && ((I = e.tenses) == null ? void 0 : I.url) != null ? e.tenses : h ? y(h) : { name: "", url: e.tenses || "" },
451
+ border: b
330
452
  };
331
453
  }
332
- function Ye(e) {
333
- return (e || []).map($e);
454
+ function s0(e) {
455
+ return (e || []).map(Ue);
334
456
  }
335
- function Re(e) {
336
- let o = 0;
337
- for (let l = 0; l < e.length; l++) {
338
- const r = e.charCodeAt(l);
339
- o = (o << 5) - o + r, o = o & o;
457
+ function Ye(e) {
458
+ let t = 0;
459
+ for (let o = 0; o < e.length; o++) {
460
+ const l = e.charCodeAt(o);
461
+ t = (t << 5) - t + l, t = t & t;
340
462
  }
341
- return Math.abs(o);
463
+ return Math.abs(t);
342
464
  }
343
- class Ce {
344
- constructor(o) {
345
- this.seed = o;
465
+ class qe {
466
+ constructor(t) {
467
+ this.seed = t;
346
468
  }
347
469
  next() {
348
- const r = Math.pow(2, 32);
349
- return this.seed = (1664525 * this.seed + 1013904223) % r, this.seed / r;
470
+ const l = Math.pow(2, 32);
471
+ return this.seed = (1664525 * this.seed + 1013904223) % l, this.seed / l;
350
472
  }
351
- nextInt(o, l) {
352
- return Math.floor(this.next() * (l - o)) + o;
473
+ nextInt(t, o) {
474
+ return Math.floor(this.next() * (o - t)) + t;
353
475
  }
354
476
  }
355
- function Je(e) {
356
- const o = e.toLowerCase().split(/\s+/).filter(Boolean), l = [];
357
- for (const r of o) {
358
- const i = { ...re() }, p = Re(r), c = new Ce(p);
359
- i.context = b(h.context[c.nextInt(0, h.context.length)]);
360
- const I = c.next() > 0.5, k = c.nextInt(1, h.reference.length);
361
- i.reference = {
362
- left: I ? b(h.reference[0]) : null,
363
- right: b(h.reference[k])
364
- }, i.role = b(h.role[c.nextInt(0, h.role.length)]), i.modes = b(h.modes[c.nextInt(0, h.modes.length)]), i.root = b(h.root[c.nextInt(0, h.root.length)]), i.tenses = b(h.tenses[c.nextInt(0, h.tenses.length)]);
365
- const N = H.filter((T) => !T.plural);
366
- i.border = N[c.nextInt(0, N.length)].id, l.push(i);
477
+ async function Xe(e) {
478
+ try {
479
+ const [t] = await Fe(e, { limit: 1 });
480
+ return t ? { name: t.name, url: t.url } : null;
481
+ } catch {
482
+ return null;
367
483
  }
368
- return l.length > 0 ? l : [re()];
369
484
  }
370
- const U = {
485
+ const Ze = { name: "Not found", url: null };
486
+ async function a0(e) {
487
+ const t = e.toLowerCase().split(/\s+/).filter(Boolean), o = await Promise.all(
488
+ t.map(async (l) => {
489
+ const F = { ...ie() }, s = Ye(l), h = new qe(s);
490
+ F.context = y(x.context[h.nextInt(0, x.context.length)]);
491
+ const b = h.next() > 0.5, u = h.nextInt(1, x.reference.length);
492
+ F.reference = {
493
+ left: b ? y(x.reference[0]) : null,
494
+ right: y(x.reference[u])
495
+ }, F.role = y(x.role[h.nextInt(0, x.role.length)]), F.modes = y(x.modes[h.nextInt(0, x.modes.length)]);
496
+ const k = await Xe(l);
497
+ F.root = k ?? Ze, F.rootName = (k == null ? void 0 : k.name) ?? null, F.tenses = y(x.tenses[h.nextInt(0, x.tenses.length)]);
498
+ const E = z.filter((m) => !m.plural);
499
+ return F.border = E[h.nextInt(0, E.length)].id, F;
500
+ })
501
+ );
502
+ return o.length > 0 ? o : [ie()];
503
+ }
504
+ const W = {
371
505
  maxWidth: "100%",
372
506
  maxHeight: "100%",
373
507
  width: "100%",
@@ -375,7 +509,7 @@ const U = {
375
509
  objectFit: "contain",
376
510
  display: "block",
377
511
  boxSizing: "border-box"
378
- }, ie = (e) => ({
512
+ }, re = (e) => ({
379
513
  display: "flex",
380
514
  alignItems: "center",
381
515
  justifyContent: "center",
@@ -385,391 +519,372 @@ const U = {
385
519
  boxSizing: "border-box",
386
520
  padding: `${e}px`
387
521
  });
388
- function Me(e = 768) {
389
- const [o, l] = E(
522
+ function Qe(e = 768) {
523
+ const [t, o] = M(
390
524
  () => typeof window < "u" && window.innerWidth < e
391
525
  );
392
526
  return le(() => {
393
- const r = window.matchMedia(`(max-width: ${e - 1}px)`), i = () => l(r.matches);
394
- return r.addEventListener("change", i), () => r.removeEventListener("change", i);
395
- }, [e]), o;
527
+ const l = window.matchMedia(`(max-width: ${e - 1}px)`), F = () => o(l.matches);
528
+ return l.addEventListener("change", F), () => l.removeEventListener("change", F);
529
+ }, [e]), t;
396
530
  }
397
- function q({
531
+ function Y({
398
532
  ikon: e,
399
- onClick: o,
400
- size: l = 64,
401
- onZoneClick: r,
402
- selectedZone: i,
403
- isSelected: p = !1,
404
- isPaired: c = !1,
405
- onEdit: I,
406
- onDelete: k,
407
- hideActionOverlay: N = !1
533
+ onClick: t,
534
+ size: o = 64,
535
+ onZoneClick: l,
536
+ selectedZone: F,
537
+ isSelected: s = !1,
538
+ isPaired: h = !1,
539
+ onEdit: b,
540
+ onDelete: u,
541
+ hideActionOverlay: k = !1
408
542
  }) {
409
- var te, oe;
410
- const [T, S] = E(!1), y = Me(), m = e != null && e.border ? Te(e.border) : null, _ = (a, R) => {
411
- r ? (R.stopPropagation(), r(a)) : o && o(R);
412
- }, $ = (a) => {
413
- r && (a.currentTarget.style.filter = "brightness(1.3)");
414
- }, v = (a) => {
415
- r && (a.currentTarget.style.filter = "brightness(1)");
416
- }, M = (a, R) => {
417
- const L = i === a;
543
+ var J, ee;
544
+ const [E, m] = M(!1), w = Qe(), _ = e != null && e.border ? oe(e.border) : null, I = (c, S) => {
545
+ l ? (S.stopPropagation(), l(c)) : t && t(S);
546
+ }, T = (c) => {
547
+ l && (c.currentTarget.style.filter = "brightness(1.3)");
548
+ }, v = (c) => {
549
+ l && (c.currentTarget.style.filter = "brightness(1)");
550
+ }, N = (c, S) => {
551
+ const O = F === c;
418
552
  return {
419
553
  // A selected zone draws a 2px inset outline; border-box keeps that
420
554
  // outline (and every zone's padding) inside the slot the grid gave it,
421
555
  // so it can't nudge a neighbour or the card edge.
422
556
  boxSizing: "border-box",
423
- ...R,
424
- cursor: r || o ? "pointer" : "default",
557
+ ...S,
558
+ cursor: l || t ? "pointer" : "default",
425
559
  transition: "all 0.2s, filter 0.2s",
426
- border: L ? "2px solid var(--ikoneme-primary)" : R.border || "none",
427
- boxShadow: L ? "0 0 8px var(--ikoneme-primary)" : "none",
560
+ border: O ? "2px solid var(--ikoneme-primary)" : S.border || "none",
561
+ boxShadow: O ? "0 0 8px var(--ikoneme-primary)" : "none",
428
562
  position: "relative"
429
563
  };
430
- }, O = (a, R) => {
431
- const L = Ke(R);
432
- if (!L) return null;
433
- const V = C(a, K(R)), ge = R && typeof R == "object" && R.name || (V == null ? void 0 : V.tooltip) || a;
434
- return /* @__PURE__ */ n(
564
+ }, L = (c, S) => {
565
+ const O = $e(S), P = B(c, V(S)), xe = S && typeof S == "object" && S.name || (P == null ? void 0 : P.tooltip) || c;
566
+ return O ? /* @__PURE__ */ r(
435
567
  "img",
436
568
  {
437
- src: L,
438
- alt: ge,
439
- style: U,
440
- onError: (he) => {
441
- he.target.style.display = "none";
569
+ src: O,
570
+ alt: xe,
571
+ style: W,
572
+ onError: (fe) => {
573
+ fe.target.style.display = "none";
442
574
  }
443
575
  }
444
- );
445
- }, t = !N && !r && (I || k), s = y ? 28 : 24, u = 4, d = 3 * s + 2 * u, g = t ? d : l, x = y || T, w = g, j = Math.max(2, Math.round(w / 40)), se = Math.max(2, Math.round(w / 44)), B = Math.max(2, Math.round(w / 72)), ae = Math.max(2, Math.round(w / 40)), X = 1.18, Z = `minmax(0, ${X}fr) repeat(4, minmax(0, ${0.95}fr)) minmax(0, ${X}fr)`, ce = "minmax(0, 0.6fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 0.6fr)", de = m ? { border: `${j}px solid ${m.color}` } : {
446
- border: p && !c ? "2px solid rgba(0, 168, 132, 0.8)" : "1px solid rgba(255, 255, 255, 0.1)"
447
- }, Q = m != null && m.plural ? {
448
- boxShadow: [
449
- `inset -${j}px 0 0 ${m.color}`,
450
- `inset -${j * 2}px 0 0 ${m.color}`,
451
- `inset -${j * 3}px 0 0 ${m.color}`,
452
- `inset 0 -${j}px 0 ${m.color}`,
453
- `inset 0 -${j * 2}px 0 ${m.color}`,
454
- `inset 0 -${j * 3}px 0 ${m.color}`
455
- ].join(", ")
456
- } : {}, ue = p && !c ? "rgba(0, 168, 132, 0.15)" : "white", Y = m && !m.plural ? Q.boxShadow : null, J = [
457
- p && !c ? "0 0 12px rgba(0, 168, 132, 0.4)" : null,
458
- i === "border" ? "0 0 0 3px var(--ikoneme-primary)" : null,
459
- Y
460
- ].filter(Boolean).join(", "), pe = ["0 0 10px rgba(0, 168, 132, 0.5)", Y].filter(Boolean).join(", "), ee = /* @__PURE__ */ f(P, { children: [
461
- /* @__PURE__ */ f(
462
- "div",
576
+ ) : S != null && S.name ? /* @__PURE__ */ r(
577
+ "span",
463
578
  {
464
- onClick: r ? () => r("border") : o ? (a) => o(a) : void 0,
465
579
  style: {
466
- width: `${w}px`,
467
- height: `${w}px`,
468
- // border-box: the coloured border is drawn *inside* renderSize, so a
469
- // card always occupies exactly the box its parent reserved for it and
470
- // the grid tracks are sized within `renderSize - 2*borderWidth`.
471
- // With content-box the border sat outside and every card overflowed
472
- // its slot by `borderWidth` on the right and bottom.
473
- boxSizing: "border-box",
474
- display: "grid",
475
- // Inset ring so the slot layout never sits flush against the border.
476
- padding: `${se}px`,
477
- // See `edgeFr`/`midFr` above. `minmax(0, …fr)` on every track is what
478
- // stops a large-intrinsic icon from inflating its track and shoving
479
- // the neighbouring slots (and the whole layout) past the card border.
480
- gridTemplateColumns: Z,
481
- gridTemplateRows: Z,
482
- cursor: o || r ? "pointer" : "default",
483
- borderRadius: "4px",
484
- // Absolute clip boundary: nothing rendered by any slot can be seen
485
- // outside the card outline, whatever its content or the card size.
486
- overflow: "hidden",
487
- flexShrink: 0,
488
- transition: "transform 0.2s, box-shadow 0.2s, border 0.2s",
489
- background: ue,
490
- boxShadow: J,
491
- ...de
492
- },
493
- onMouseEnter: (a) => {
494
- o && !r && !c && (a.currentTarget.style.transform = "scale(1.05)", p || (a.currentTarget.style.boxShadow = pe));
580
+ fontSize: "10px",
581
+ lineHeight: 1.2,
582
+ textAlign: "center",
583
+ color: "var(--ikoneme-text-secondary, #888)",
584
+ wordBreak: "break-word",
585
+ padding: "2px"
495
586
  },
496
- onMouseLeave: (a) => {
497
- o && !r && !c && (a.currentTarget.style.transform = "scale(1)", p || (a.currentTarget.style.boxShadow = J));
498
- },
499
- children: [
500
- /* @__PURE__ */ n(
501
- "div",
502
- {
503
- onClick: (a) => _("context", a),
504
- onMouseEnter: $,
505
- onMouseLeave: v,
506
- style: M("context", {
507
- gridColumn: "1 / 2",
508
- gridRow: "1 / 2",
509
- display: "flex",
510
- alignItems: "center",
511
- justifyContent: "center",
512
- background: "rgba(100, 50, 150, 0.1)",
513
- borderRight: "1px solid rgba(0, 0, 0, 0.14)",
514
- borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
515
- minWidth: 0,
516
- minHeight: 0,
517
- overflow: "hidden",
518
- padding: `${B}px`
519
- }),
520
- className: "ikoneme-zone",
521
- children: O("context", e.context)
522
- }
523
- ),
524
- /* @__PURE__ */ f(
525
- "div",
526
- {
527
- onClick: (a) => _("reference", a),
528
- onMouseEnter: $,
529
- onMouseLeave: v,
530
- style: M("reference", {
531
- gridColumn: "2 / 6",
532
- gridRow: "1 / 2",
533
- display: "grid",
534
- // Same treatment as the outer grid: bounded tracks + a single full-
535
- // height row so each reference sub-slot has a definite size and its
536
- // icon (sized against it) stays put.
537
- gridTemplateColumns: ce,
538
- gridTemplateRows: "minmax(0, 1fr)",
539
- background: "rgba(50, 100, 200, 0.1)",
540
- borderRight: "1px solid rgba(0, 0, 0, 0.14)",
541
- borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
542
- minWidth: 0,
543
- minHeight: 0,
544
- overflow: "hidden"
545
- }),
546
- className: "ikoneme-zone",
547
- children: [
548
- /* @__PURE__ */ n(
549
- "div",
550
- {
551
- style: {
552
- minWidth: 0,
553
- minHeight: 0,
554
- overflow: "hidden",
555
- borderRight: "1px solid rgba(0, 0, 0, 0.14)"
556
- }
587
+ children: S.name
588
+ }
589
+ ) : null;
590
+ }, i = !k && !l && (b || u), n = w ? 28 : 24, d = 4, a = 3 * n + 2 * d, f = i ? a : o, g = w || E, C = f, ne = Math.max(2, Math.round(C / 44)), D = Math.max(2, Math.round(C / 72)), ce = Math.max(2, Math.round(C / 40)), q = 1.18, X = `minmax(0, ${q}fr) repeat(4, minmax(0, ${0.95}fr)) minmax(0, ${q}fr)`, he = "minmax(0, 0.6fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 0.6fr)", de = _ ? $(_, C) : {
591
+ border: s && !h ? "2px solid rgba(0, 168, 132, 0.8)" : "1px solid rgba(255, 255, 255, 0.1)"
592
+ }, se = s && !h ? "rgba(0, 168, 132, 0.15)" : "white", Z = [
593
+ s && !h ? "0 0 12px rgba(0, 168, 132, 0.4)" : null,
594
+ F === "border" ? "0 0 0 3px var(--ikoneme-primary)" : null
595
+ ].filter(Boolean).join(", "), ae = "0 0 10px rgba(0, 168, 132, 0.5)", Q = /* @__PURE__ */ r(A, { children: /* @__PURE__ */ p(
596
+ "div",
597
+ {
598
+ onClick: l ? () => l("border") : t ? (c) => t(c) : void 0,
599
+ style: {
600
+ width: `${C}px`,
601
+ height: `${C}px`,
602
+ // border-box: the coloured border is drawn *inside* renderSize, so a
603
+ // card always occupies exactly the box its parent reserved for it and
604
+ // the grid tracks are sized within `renderSize` minus the frame.
605
+ // With content-box the border sat outside and every card overflowed
606
+ // its slot by the frame width on the right and bottom.
607
+ boxSizing: "border-box",
608
+ display: "grid",
609
+ // Inset ring so the slot layout never sits flush against the border.
610
+ padding: `${ne}px`,
611
+ // See `edgeFr`/`midFr` above. `minmax(0, …fr)` on every track is what
612
+ // stops a large-intrinsic icon from inflating its track and shoving
613
+ // the neighbouring slots (and the whole layout) past the card border.
614
+ gridTemplateColumns: X,
615
+ gridTemplateRows: X,
616
+ cursor: t || l ? "pointer" : "default",
617
+ borderRadius: "4px",
618
+ // Absolute clip boundary: nothing rendered by any slot can be seen
619
+ // outside the card outline, whatever its content or the card size.
620
+ overflow: "hidden",
621
+ flexShrink: 0,
622
+ transition: "transform 0.2s, box-shadow 0.2s, border 0.2s",
623
+ backgroundColor: se,
624
+ boxShadow: Z,
625
+ ...de
626
+ },
627
+ onMouseEnter: (c) => {
628
+ t && !l && !h && (c.currentTarget.style.transform = "scale(1.05)", s || (c.currentTarget.style.boxShadow = ae));
629
+ },
630
+ onMouseLeave: (c) => {
631
+ t && !l && !h && (c.currentTarget.style.transform = "scale(1)", s || (c.currentTarget.style.boxShadow = Z));
632
+ },
633
+ children: [
634
+ /* @__PURE__ */ r(
635
+ "div",
636
+ {
637
+ onClick: (c) => I("context", c),
638
+ onMouseEnter: T,
639
+ onMouseLeave: v,
640
+ style: N("context", {
641
+ gridColumn: "1 / 2",
642
+ gridRow: "1 / 2",
643
+ display: "flex",
644
+ alignItems: "center",
645
+ justifyContent: "center",
646
+ background: "rgba(100, 50, 150, 0.1)",
647
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)",
648
+ borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
649
+ minWidth: 0,
650
+ minHeight: 0,
651
+ overflow: "hidden",
652
+ padding: `${D}px`
653
+ }),
654
+ className: "ikoneme-zone",
655
+ children: L("context", e.context)
656
+ }
657
+ ),
658
+ /* @__PURE__ */ p(
659
+ "div",
660
+ {
661
+ onClick: (c) => I("reference", c),
662
+ onMouseEnter: T,
663
+ onMouseLeave: v,
664
+ style: N("reference", {
665
+ gridColumn: "2 / 6",
666
+ gridRow: "1 / 2",
667
+ display: "grid",
668
+ // Same treatment as the outer grid: bounded tracks + a single full-
669
+ // height row so each reference sub-slot has a definite size and its
670
+ // icon (sized against it) stays put.
671
+ gridTemplateColumns: he,
672
+ gridTemplateRows: "minmax(0, 1fr)",
673
+ background: "rgba(50, 100, 200, 0.1)",
674
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)",
675
+ borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
676
+ minWidth: 0,
677
+ minHeight: 0,
678
+ overflow: "hidden"
679
+ }),
680
+ className: "ikoneme-zone",
681
+ children: [
682
+ /* @__PURE__ */ r(
683
+ "div",
684
+ {
685
+ style: {
686
+ minWidth: 0,
687
+ minHeight: 0,
688
+ overflow: "hidden",
689
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)"
557
690
  }
558
- ),
559
- /* @__PURE__ */ n(
560
- "div",
561
- {
562
- style: {
563
- ...ie(B),
564
- borderRight: "1px solid rgba(0, 0, 0, 0.14)"
565
- },
566
- children: K((te = e.reference) == null ? void 0 : te.left) && /* @__PURE__ */ n(
567
- "img",
568
- {
569
- src: K(e.reference.left),
570
- alt: "Asterisk",
571
- style: U,
572
- onError: (a) => {
573
- a.target.style.display = "none";
574
- }
691
+ }
692
+ ),
693
+ /* @__PURE__ */ r(
694
+ "div",
695
+ {
696
+ style: {
697
+ ...re(D),
698
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)"
699
+ },
700
+ children: V((J = e.reference) == null ? void 0 : J.left) && /* @__PURE__ */ r(
701
+ "img",
702
+ {
703
+ src: V(e.reference.left),
704
+ alt: "Asterisk",
705
+ style: W,
706
+ onError: (c) => {
707
+ c.target.style.display = "none";
575
708
  }
576
- )
577
- }
578
- ),
579
- /* @__PURE__ */ n(
580
- "div",
581
- {
582
- style: {
583
- ...ie(B),
584
- borderRight: "1px solid rgba(0, 0, 0, 0.14)"
585
- },
586
- children: K((oe = e.reference) == null ? void 0 : oe.right) && /* @__PURE__ */ n(
587
- "img",
588
- {
589
- src: K(e.reference.right),
590
- alt: "Number",
591
- style: U,
592
- onError: (a) => {
593
- a.target.style.display = "none";
594
- }
709
+ }
710
+ )
711
+ }
712
+ ),
713
+ /* @__PURE__ */ r(
714
+ "div",
715
+ {
716
+ style: {
717
+ ...re(D),
718
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)"
719
+ },
720
+ children: V((ee = e.reference) == null ? void 0 : ee.right) && /* @__PURE__ */ r(
721
+ "img",
722
+ {
723
+ src: V(e.reference.right),
724
+ alt: "Number",
725
+ style: W,
726
+ onError: (c) => {
727
+ c.target.style.display = "none";
595
728
  }
596
- )
597
- }
598
- ),
599
- /* @__PURE__ */ n("div", { style: { minWidth: 0, minHeight: 0, overflow: "hidden" } })
600
- ]
601
- }
602
- ),
603
- /* @__PURE__ */ n(
604
- "div",
605
- {
606
- onClick: (a) => _("role", a),
607
- onMouseEnter: $,
608
- onMouseLeave: v,
609
- style: M("role", {
610
- gridColumn: "6 / 7",
611
- gridRow: "1 / 2",
612
- display: "flex",
613
- alignItems: "center",
614
- justifyContent: "center",
615
- background: "rgba(200, 50, 50, 0.1)",
616
- borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
617
- minWidth: 0,
618
- minHeight: 0,
619
- overflow: "hidden",
620
- padding: `${B}px`
621
- }),
622
- className: "ikoneme-zone",
623
- children: O("role", e.role)
624
- }
625
- ),
626
- /* @__PURE__ */ n(
627
- "div",
628
- {
629
- onClick: (a) => _("modes", a),
630
- onMouseEnter: $,
631
- onMouseLeave: v,
632
- style: M("modes", {
633
- gridColumn: "1 / 2",
634
- gridRow: "2 / 6",
635
- display: "flex",
636
- alignItems: "center",
637
- justifyContent: "center",
638
- background: "rgba(50, 150, 100, 0.1)",
639
- borderRight: "1px solid rgba(0, 0, 0, 0.14)",
640
- borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
641
- minWidth: 0,
642
- minHeight: 0,
643
- overflow: "hidden",
644
- padding: `${B}px`
645
- }),
646
- className: "ikoneme-zone",
647
- children: O("modes", e.modes)
648
- }
649
- ),
650
- /* @__PURE__ */ n(
651
- "div",
652
- {
653
- onClick: (a) => _("root", a),
654
- onMouseEnter: $,
655
- onMouseLeave: v,
656
- style: M("root", {
657
- // Kept at 4 columns (not spanning into column 6) so root — and the
658
- // whole icon — stays horizontally centered: column 1 (modes) and
659
- // column 6 (below) are the same width on both sides of root.
660
- gridColumn: "2 / 6",
661
- gridRow: "2 / 6",
662
- display: "flex",
663
- alignItems: "center",
664
- justifyContent: "center",
665
- background: "rgba(150, 150, 50, 0.1)",
666
- borderRight: "1px solid rgba(0, 0, 0, 0.14)",
667
- borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
668
- minWidth: 0,
669
- minHeight: 0,
670
- overflow: "hidden",
671
- padding: `${ae}px`
672
- }),
673
- className: "ikoneme-zone",
674
- children: O("root", e.root)
675
- }
676
- ),
677
- /* @__PURE__ */ n(
678
- "div",
679
- {
680
- onClick: (a) => {
681
- r && (a.stopPropagation(), r("border"));
682
- },
683
- style: {
684
- gridColumn: "6 / 7",
685
- gridRow: "2 / 6",
686
- background: "rgba(0, 0, 0, 0.05)",
687
- borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
688
- minWidth: 0,
689
- minHeight: 0,
690
- overflow: "hidden",
691
- boxSizing: "border-box",
692
- cursor: r ? "pointer" : "default"
693
- }
694
- }
695
- ),
696
- /* @__PURE__ */ n(
697
- "div",
698
- {
699
- onClick: (a) => _("tenses", a),
700
- onMouseEnter: $,
701
- onMouseLeave: v,
702
- style: M("tenses", {
703
- gridColumn: "1 / 7",
704
- gridRow: "6 / 7",
705
- display: "flex",
706
- alignItems: "center",
707
- justifyContent: "center",
708
- background: "rgba(100, 100, 200, 0.1)",
709
- minWidth: 0,
710
- minHeight: 0,
711
- overflow: "hidden",
712
- padding: `${B}px`
713
- }),
714
- className: "ikoneme-zone",
715
- children: O("tenses", e.tenses)
729
+ }
730
+ )
731
+ }
732
+ ),
733
+ /* @__PURE__ */ r("div", { style: { minWidth: 0, minHeight: 0, overflow: "hidden" } })
734
+ ]
735
+ }
736
+ ),
737
+ /* @__PURE__ */ r(
738
+ "div",
739
+ {
740
+ onClick: (c) => I("role", c),
741
+ onMouseEnter: T,
742
+ onMouseLeave: v,
743
+ style: N("role", {
744
+ gridColumn: "6 / 7",
745
+ gridRow: "1 / 2",
746
+ display: "flex",
747
+ alignItems: "center",
748
+ justifyContent: "center",
749
+ background: "rgba(200, 50, 50, 0.1)",
750
+ borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
751
+ minWidth: 0,
752
+ minHeight: 0,
753
+ overflow: "hidden",
754
+ padding: `${D}px`
755
+ }),
756
+ className: "ikoneme-zone",
757
+ children: L("role", e.role)
758
+ }
759
+ ),
760
+ /* @__PURE__ */ r(
761
+ "div",
762
+ {
763
+ onClick: (c) => I("modes", c),
764
+ onMouseEnter: T,
765
+ onMouseLeave: v,
766
+ style: N("modes", {
767
+ gridColumn: "1 / 2",
768
+ gridRow: "2 / 6",
769
+ display: "flex",
770
+ alignItems: "center",
771
+ justifyContent: "center",
772
+ background: "rgba(50, 150, 100, 0.1)",
773
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)",
774
+ borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
775
+ minWidth: 0,
776
+ minHeight: 0,
777
+ overflow: "hidden",
778
+ padding: `${D}px`
779
+ }),
780
+ className: "ikoneme-zone",
781
+ children: L("modes", e.modes)
782
+ }
783
+ ),
784
+ /* @__PURE__ */ r(
785
+ "div",
786
+ {
787
+ onClick: (c) => I("root", c),
788
+ onMouseEnter: T,
789
+ onMouseLeave: v,
790
+ style: N("root", {
791
+ // Kept at 4 columns (not spanning into column 6) so root — and the
792
+ // whole icon — stays horizontally centered: column 1 (modes) and
793
+ // column 6 (below) are the same width on both sides of root.
794
+ gridColumn: "2 / 6",
795
+ gridRow: "2 / 6",
796
+ display: "flex",
797
+ alignItems: "center",
798
+ justifyContent: "center",
799
+ background: "rgba(150, 150, 50, 0.1)",
800
+ borderRight: "1px solid rgba(0, 0, 0, 0.14)",
801
+ borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
802
+ minWidth: 0,
803
+ minHeight: 0,
804
+ overflow: "hidden",
805
+ padding: `${ce}px`
806
+ }),
807
+ className: "ikoneme-zone",
808
+ children: L("root", e.root)
809
+ }
810
+ ),
811
+ /* @__PURE__ */ r(
812
+ "div",
813
+ {
814
+ onClick: (c) => {
815
+ l && (c.stopPropagation(), l("border"));
816
+ },
817
+ style: {
818
+ gridColumn: "6 / 7",
819
+ gridRow: "2 / 6",
820
+ background: "rgba(0, 0, 0, 0.05)",
821
+ borderBottom: "1px solid rgba(0, 0, 0, 0.14)",
822
+ minWidth: 0,
823
+ minHeight: 0,
824
+ overflow: "hidden",
825
+ boxSizing: "border-box",
826
+ cursor: l ? "pointer" : "default"
716
827
  }
717
- )
718
- ]
719
- }
720
- ),
721
- (m == null ? void 0 : m.plural) && /* @__PURE__ */ n(
722
- "div",
723
- {
724
- "aria-hidden": !0,
725
- style: {
726
- position: "absolute",
727
- top: 0,
728
- left: 0,
729
- right: 0,
730
- bottom: 0,
731
- width: `${w}px`,
732
- height: `${w}px`,
733
- borderRadius: "4px",
734
- pointerEvents: "none",
735
- ...Q
736
- }
737
- }
738
- )
739
- ] }), me = /* @__PURE__ */ n(
828
+ }
829
+ ),
830
+ /* @__PURE__ */ r(
831
+ "div",
832
+ {
833
+ onClick: (c) => I("tenses", c),
834
+ onMouseEnter: T,
835
+ onMouseLeave: v,
836
+ style: N("tenses", {
837
+ gridColumn: "1 / 7",
838
+ gridRow: "6 / 7",
839
+ display: "flex",
840
+ alignItems: "center",
841
+ justifyContent: "center",
842
+ background: "rgba(100, 100, 200, 0.1)",
843
+ minWidth: 0,
844
+ minHeight: 0,
845
+ overflow: "hidden",
846
+ padding: `${D}px`
847
+ }),
848
+ className: "ikoneme-zone",
849
+ children: L("tenses", e.tenses)
850
+ }
851
+ )
852
+ ]
853
+ }
854
+ ) }), ge = /* @__PURE__ */ r(
740
855
  "div",
741
856
  {
742
857
  style: {
743
- minHeight: `${s}px`,
858
+ minHeight: `${n}px`,
744
859
  flexShrink: 0,
745
860
  display: "flex",
746
861
  alignItems: "center",
747
862
  justifyContent: "center"
748
863
  },
749
- "aria-hidden": !x,
750
- children: /* @__PURE__ */ f(
864
+ "aria-hidden": !g,
865
+ children: /* @__PURE__ */ p(
751
866
  "div",
752
867
  {
753
868
  style: {
754
869
  display: "flex",
755
- gap: `${u}px`,
870
+ gap: `${d}px`,
756
871
  flexWrap: "nowrap",
757
- width: `${d}px`,
872
+ width: `${a}px`,
758
873
  justifyContent: "center",
759
- opacity: x ? 1 : 0,
760
- pointerEvents: x ? "auto" : "none",
874
+ opacity: g ? 1 : 0,
875
+ pointerEvents: g ? "auto" : "none",
761
876
  transition: "opacity 0.15s ease"
762
877
  },
763
878
  children: [
764
- I && /* @__PURE__ */ n(
879
+ b && /* @__PURE__ */ r(
765
880
  "button",
766
881
  {
767
- onClick: (a) => {
768
- a.stopPropagation(), I();
882
+ onClick: (c) => {
883
+ c.stopPropagation(), b();
769
884
  },
770
885
  style: {
771
- width: `${s}px`,
772
- height: `${s}px`,
886
+ width: `${n}px`,
887
+ height: `${n}px`,
773
888
  borderRadius: "6px",
774
889
  border: "none",
775
890
  background: "rgba(0, 168, 132, 0.95)",
@@ -780,21 +895,21 @@ function q({
780
895
  transition: "background 0.2s",
781
896
  boxShadow: "0 2px 4px rgba(0, 0, 0, 0.3)"
782
897
  },
783
- onMouseEnter: (a) => a.currentTarget.style.background = "rgba(0, 168, 132, 1)",
784
- onMouseLeave: (a) => a.currentTarget.style.background = "rgba(0, 168, 132, 0.95)",
898
+ onMouseEnter: (c) => c.currentTarget.style.background = "rgba(0, 168, 132, 1)",
899
+ onMouseLeave: (c) => c.currentTarget.style.background = "rgba(0, 168, 132, 0.95)",
785
900
  title: "Edit",
786
- children: /* @__PURE__ */ n(ve, { size: y ? 16 : 14, color: "white" })
901
+ children: /* @__PURE__ */ r(ve, { size: w ? 16 : 14, color: "white" })
787
902
  }
788
903
  ),
789
- k && /* @__PURE__ */ n(
904
+ u && /* @__PURE__ */ r(
790
905
  "button",
791
906
  {
792
- onClick: (a) => {
793
- a.stopPropagation(), k();
907
+ onClick: (c) => {
908
+ c.stopPropagation(), u();
794
909
  },
795
910
  style: {
796
- width: `${s}px`,
797
- height: `${s}px`,
911
+ width: `${n}px`,
912
+ height: `${n}px`,
798
913
  borderRadius: "6px",
799
914
  border: "none",
800
915
  background: "rgba(220, 38, 38, 0.95)",
@@ -805,10 +920,10 @@ function q({
805
920
  transition: "background 0.2s",
806
921
  boxShadow: "0 2px 4px rgba(0, 0, 0, 0.3)"
807
922
  },
808
- onMouseEnter: (a) => a.currentTarget.style.background = "rgba(220, 38, 38, 1)",
809
- onMouseLeave: (a) => a.currentTarget.style.background = "rgba(220, 38, 38, 0.95)",
923
+ onMouseEnter: (c) => c.currentTarget.style.background = "rgba(220, 38, 38, 1)",
924
+ onMouseLeave: (c) => c.currentTarget.style.background = "rgba(220, 38, 38, 0.95)",
810
925
  title: "Delete",
811
- children: /* @__PURE__ */ n(Ie, { size: y ? 16 : 14, color: "white" })
926
+ children: /* @__PURE__ */ r(ke, { size: w ? 16 : 14, color: "white" })
812
927
  }
813
928
  )
814
929
  ]
@@ -816,101 +931,40 @@ function q({
816
931
  )
817
932
  }
818
933
  );
819
- return t ? /* @__PURE__ */ f(
934
+ return i ? /* @__PURE__ */ p(
820
935
  "div",
821
936
  {
822
937
  style: {
823
938
  display: "flex",
824
939
  flexDirection: "column",
825
940
  alignItems: "center",
826
- width: `${d}px`,
941
+ width: `${a}px`,
827
942
  flexShrink: 0,
828
943
  gap: "6px"
829
944
  },
830
- onMouseEnter: () => S(!0),
831
- onMouseLeave: () => S(!1),
945
+ onMouseEnter: () => m(!0),
946
+ onMouseLeave: () => m(!1),
832
947
  children: [
833
- /* @__PURE__ */ n("div", { style: { position: "relative", width: `${w}px`, height: `${w}px` }, children: ee }),
834
- me
948
+ /* @__PURE__ */ r("div", { style: { position: "relative", width: `${C}px`, height: `${C}px` }, children: Q }),
949
+ ge
835
950
  ]
836
951
  }
837
- ) : /* @__PURE__ */ n(
952
+ ) : /* @__PURE__ */ r(
838
953
  "div",
839
954
  {
840
955
  style: {
841
956
  position: "relative",
842
- width: `${l}px`,
843
- height: `${l}px`,
957
+ width: `${o}px`,
958
+ height: `${o}px`,
844
959
  flexShrink: 0
845
960
  },
846
- onMouseEnter: () => S(!0),
847
- onMouseLeave: () => S(!1),
848
- children: ee
961
+ onMouseEnter: () => m(!0),
962
+ onMouseLeave: () => m(!1),
963
+ children: Q
849
964
  }
850
965
  );
851
966
  }
852
- const G = "https://ikondb.iigap.com", Ee = 60 * 60 * 1e3;
853
- let W = null, z = null;
854
- const A = /* @__PURE__ */ new Map();
855
- function Oe(e) {
856
- return !e || Array.isArray(e) ? null : e.origin || e.preview || e.thumb || e.svg || null;
857
- }
858
- function je(e) {
859
- if (!e || Array.isArray(e)) return {};
860
- const { origin: o = null, preview: l = null, thumb: r = null, svg: i = null } = e;
861
- return { origin: o, preview: l, thumb: r, svg: i };
862
- }
863
- async function Be(e) {
864
- const o = await fetch(`${e}/api/ikons`);
865
- if (!o.ok) throw new Error(`IkonDB GET /api/ikons -> ${o.status}`);
866
- const l = await o.json();
867
- return (Array.isArray(l == null ? void 0 : l.data) ? l.data : []).map((i) => ({
868
- id: i.id,
869
- name: i.description || "",
870
- url: Oe(i.media)
871
- })).filter((i) => i.url);
872
- }
873
- async function ze({ baseUrl: e = G } = {}) {
874
- return W && Date.now() - W.at < Ee ? W.list : z || (z = Be(e).then((o) => (W = { at: Date.now(), list: o }, o)).finally(() => {
875
- z = null;
876
- }), z);
877
- }
878
- async function Le(e, { baseUrl: o = G, limit: l = 20 } = {}) {
879
- const r = (e || "").trim().toLowerCase();
880
- if (!r) return [];
881
- const i = await ze({ baseUrl: o }), p = [];
882
- for (const c of i)
883
- if (c.name.toLowerCase().includes(r) && (p.push(c), p.length >= l))
884
- break;
885
- return p;
886
- }
887
- async function We(e, { baseUrl: o = G } = {}) {
888
- if (e == null) return null;
889
- if (A.has(e)) return A.get(e);
890
- const l = await fetch(`${o}/api/ikons/${encodeURIComponent(e)}`);
891
- if (!l.ok) throw new Error(`IkonDB GET /api/ikons/${e} -> ${l.status}`);
892
- const r = await l.json();
893
- if ((r == null ? void 0 : r.status) !== "success" || !(r != null && r.data))
894
- return A.set(e, null), null;
895
- const i = je(r.data.media), p = {
896
- id: r.data.id,
897
- name: r.data.description || "",
898
- url: i.origin || i.preview || i.thumb || i.svg || null,
899
- ...i
900
- };
901
- return A.set(e, p), p;
902
- }
903
- async function Ae(e) {
904
- try {
905
- return await Le(e);
906
- } catch {
907
- return [];
908
- }
909
- }
910
- function et() {
911
- W = null, z = null, A.clear();
912
- }
913
- const F = {
967
+ const H = {
914
968
  context: { name: "Context", description: "Northwest - Contextual information" },
915
969
  reference: { name: "Reference", description: "North - Reference point" },
916
970
  role: { name: "Role", description: "Northeast - Role indicator" },
@@ -919,96 +973,96 @@ const F = {
919
973
  tenses: { name: "Tenses", description: "South - Time/tense indicator" },
920
974
  border: {
921
975
  name: "Border",
922
- description: "Grammatical category — singular (one border) or plural (stacked borders)"
976
+ description: "Grammatical category — singular (single frame) or plural (double frame)"
923
977
  }
924
- }, He = 1, De = 300, Fe = 10, Ve = 5;
925
- function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
926
- const [i, p] = E({
978
+ }, Je = 1, e0 = 300, t0 = 10, i0 = 5;
979
+ function r0({ ikon: e, onSave: t, onClose: o, searchRoot: l = Be }) {
980
+ const [F, s] = M({
927
981
  ...e,
928
982
  reference: e.reference ? { ...e.reference } : { left: null, right: null },
929
983
  rootName: e.rootName ?? null
930
- }), [c, I] = E("root"), [k, N] = E(""), [T, S] = E([]), [y, m] = E(!1), _ = (t, s) => {
931
- const u = C(t === "reference" ? "reference" : t, s), d = u ? { name: u.tooltip, url: u.url } : { name: "", url: s };
932
- if (t === "reference") {
933
- const g = h.reference[0].url;
934
- p(s === g ? (x) => {
935
- var w;
984
+ }), [h, b] = M("root"), [u, k] = M(""), [E, m] = M([]), [w, _] = M(!1), I = (i, n) => {
985
+ const d = B(i === "reference" ? "reference" : i, n), a = d ? { name: d.tooltip, url: d.url } : { name: "", url: n };
986
+ if (i === "reference") {
987
+ const f = x.reference[0].url;
988
+ s(n === f ? (g) => {
989
+ var C;
936
990
  return {
937
- ...x,
991
+ ...g,
938
992
  reference: {
939
- ...x.reference,
940
- left: K((w = x.reference) == null ? void 0 : w.left) === g ? null : { name: h.reference[0].tooltip, url: g }
993
+ ...g.reference,
994
+ left: V((C = g.reference) == null ? void 0 : C.left) === f ? null : { name: x.reference[0].tooltip, url: f }
941
995
  }
942
996
  };
943
- } : (x) => {
944
- var w;
997
+ } : (g) => {
998
+ var C;
945
999
  return {
946
- ...x,
1000
+ ...g,
947
1001
  reference: {
948
- ...x.reference,
949
- right: K((w = x.reference) == null ? void 0 : w.right) === s ? null : d
1002
+ ...g.reference,
1003
+ right: V((C = g.reference) == null ? void 0 : C.right) === n ? null : a
950
1004
  }
951
1005
  };
952
1006
  });
953
1007
  } else
954
- p((g) => ({
955
- ...g,
956
- [t]: K(g[t]) === s ? null : d
1008
+ s((f) => ({
1009
+ ...f,
1010
+ [i]: V(f[i]) === n ? null : a
957
1011
  }));
958
- }, $ = (t) => {
959
- I(t);
960
- }, v = (t) => {
961
- p((s) => ({
962
- ...s,
963
- border: t == null || s.border === t ? null : t
1012
+ }, T = (i) => {
1013
+ b(i);
1014
+ }, v = (i) => {
1015
+ s((n) => ({
1016
+ ...n,
1017
+ border: i == null || n.border === i ? null : i
964
1018
  }));
965
1019
  };
966
1020
  le(() => {
967
- if (c !== "root" || k.length < He) {
968
- S([]);
1021
+ if (h !== "root" || u.length < Je) {
1022
+ m([]);
969
1023
  return;
970
1024
  }
971
- const t = setTimeout(async () => {
972
- m(!0);
1025
+ const i = setTimeout(async () => {
1026
+ _(!0);
973
1027
  try {
974
- const s = await r(k.trim());
975
- S((s || []).slice(0, Fe));
1028
+ const n = await l(u.trim());
1029
+ m((n || []).slice(0, t0));
976
1030
  } catch {
977
- S([]);
1031
+ m([]);
978
1032
  } finally {
979
- m(!1);
1033
+ _(!1);
980
1034
  }
981
- }, De);
982
- return () => clearTimeout(t);
983
- }, [c, k, r]);
984
- const M = fe(async (t) => {
985
- if (p((s) => ({
986
- ...s,
987
- root: { id: t.id ?? null, name: t.name, url: t.url },
988
- rootName: t.name
989
- })), t.id != null)
1035
+ }, e0);
1036
+ return () => clearTimeout(i);
1037
+ }, [h, u, l]);
1038
+ const N = ue(async (i) => {
1039
+ if (s((n) => ({
1040
+ ...n,
1041
+ root: { id: i.id ?? null, name: i.name, url: i.url },
1042
+ rootName: i.name
1043
+ })), i.id != null)
990
1044
  try {
991
- const s = await We(t.id);
992
- if (!s) return;
993
- p((u) => {
994
- var d;
995
- return ((d = u.root) == null ? void 0 : d.id) !== t.id ? u : {
996
- ...u,
1045
+ const n = await Te(i.id);
1046
+ if (!n) return;
1047
+ s((d) => {
1048
+ var a;
1049
+ return ((a = d.root) == null ? void 0 : a.id) !== i.id ? d : {
1050
+ ...d,
997
1051
  root: {
998
- id: s.id,
999
- name: t.name,
1000
- url: s.origin || t.url,
1001
- svg: s.svg || void 0,
1002
- thumb: s.thumb || void 0,
1003
- preview: s.preview || void 0
1052
+ id: n.id,
1053
+ name: i.name,
1054
+ url: n.origin || i.url,
1055
+ svg: n.svg || void 0,
1056
+ thumb: n.thumb || void 0,
1057
+ preview: n.preview || void 0
1004
1058
  },
1005
- rootName: t.name
1059
+ rootName: i.name
1006
1060
  };
1007
1061
  });
1008
1062
  } catch {
1009
1063
  }
1010
1064
  }, []);
1011
- return /* @__PURE__ */ f(
1065
+ return /* @__PURE__ */ p(
1012
1066
  "div",
1013
1067
  {
1014
1068
  style: {
@@ -1024,7 +1078,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1024
1078
  overflow: "hidden"
1025
1079
  },
1026
1080
  children: [
1027
- /* @__PURE__ */ f(
1081
+ /* @__PURE__ */ p(
1028
1082
  "div",
1029
1083
  {
1030
1084
  style: {
@@ -1036,7 +1090,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1036
1090
  gap: "12px"
1037
1091
  },
1038
1092
  children: [
1039
- /* @__PURE__ */ f(
1093
+ /* @__PURE__ */ p(
1040
1094
  "div",
1041
1095
  {
1042
1096
  style: {
@@ -1046,10 +1100,10 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1046
1100
  flex: 1
1047
1101
  },
1048
1102
  children: [
1049
- /* @__PURE__ */ n(
1103
+ /* @__PURE__ */ r(
1050
1104
  "button",
1051
1105
  {
1052
- onClick: l,
1106
+ onClick: o,
1053
1107
  style: {
1054
1108
  background: "transparent",
1055
1109
  border: "none",
@@ -1060,10 +1114,10 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1060
1114
  justifyContent: "center"
1061
1115
  },
1062
1116
  title: "Back",
1063
- children: /* @__PURE__ */ n(ye, { color: "var(--ikoneme-text-primary)", size: 24 })
1117
+ children: /* @__PURE__ */ r(ye, { color: "var(--ikoneme-text-primary)", size: 24 })
1064
1118
  }
1065
1119
  ),
1066
- /* @__PURE__ */ n(
1120
+ /* @__PURE__ */ r(
1067
1121
  "h2",
1068
1122
  {
1069
1123
  style: {
@@ -1078,11 +1132,11 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1078
1132
  ]
1079
1133
  }
1080
1134
  ),
1081
- /* @__PURE__ */ n(
1135
+ /* @__PURE__ */ r(
1082
1136
  "button",
1083
1137
  {
1084
1138
  onClick: () => {
1085
- o(i), l();
1139
+ t(F), o();
1086
1140
  },
1087
1141
  style: {
1088
1142
  padding: "10px 24px",
@@ -1096,15 +1150,15 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1096
1150
  transition: "background 0.2s",
1097
1151
  whiteSpace: "nowrap"
1098
1152
  },
1099
- onMouseEnter: (t) => t.currentTarget.style.background = "var(--ikoneme-primary-dark)",
1100
- onMouseLeave: (t) => t.currentTarget.style.background = "var(--ikoneme-primary)",
1153
+ onMouseEnter: (i) => i.currentTarget.style.background = "var(--ikoneme-primary-dark)",
1154
+ onMouseLeave: (i) => i.currentTarget.style.background = "var(--ikoneme-primary)",
1101
1155
  children: "Save"
1102
1156
  }
1103
1157
  )
1104
1158
  ]
1105
1159
  }
1106
1160
  ),
1107
- /* @__PURE__ */ f(
1161
+ /* @__PURE__ */ p(
1108
1162
  "div",
1109
1163
  {
1110
1164
  style: {
@@ -1117,7 +1171,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1117
1171
  WebkitOverflowScrolling: "touch"
1118
1172
  },
1119
1173
  children: [
1120
- /* @__PURE__ */ f(
1174
+ /* @__PURE__ */ p(
1121
1175
  "div",
1122
1176
  {
1123
1177
  style: {
@@ -1128,7 +1182,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1128
1182
  gap: "12px"
1129
1183
  },
1130
1184
  children: [
1131
- /* @__PURE__ */ n(
1185
+ /* @__PURE__ */ r(
1132
1186
  "p",
1133
1187
  {
1134
1188
  style: {
@@ -1139,16 +1193,16 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1139
1193
  children: "Click on a zone or the border area to edit it"
1140
1194
  }
1141
1195
  ),
1142
- /* @__PURE__ */ n(
1143
- q,
1196
+ /* @__PURE__ */ r(
1197
+ Y,
1144
1198
  {
1145
- ikon: i,
1199
+ ikon: F,
1146
1200
  size: 280,
1147
- onZoneClick: $,
1148
- selectedZone: c
1201
+ onZoneClick: T,
1202
+ selectedZone: h
1149
1203
  }
1150
1204
  ),
1151
- /* @__PURE__ */ n(
1205
+ /* @__PURE__ */ r(
1152
1206
  "div",
1153
1207
  {
1154
1208
  style: {
@@ -1160,14 +1214,14 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1160
1214
  background: "var(--ikoneme-primary)",
1161
1215
  borderRadius: "20px"
1162
1216
  },
1163
- children: F[c].name
1217
+ children: H[h].name
1164
1218
  }
1165
1219
  )
1166
1220
  ]
1167
1221
  }
1168
1222
  ),
1169
- /* @__PURE__ */ f("div", { style: { marginBottom: "20px" }, children: [
1170
- /* @__PURE__ */ n(
1223
+ /* @__PURE__ */ p("div", { style: { marginBottom: "20px" }, children: [
1224
+ /* @__PURE__ */ r(
1171
1225
  "h3",
1172
1226
  {
1173
1227
  style: {
@@ -1176,10 +1230,10 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1176
1230
  marginBottom: "8px",
1177
1231
  fontWeight: "500"
1178
1232
  },
1179
- children: c === "border" ? "Select Border Type" : "Choose Icon for: " + F[c].name
1233
+ children: h === "border" ? "Select Border Type" : "Choose Icon for: " + H[h].name
1180
1234
  }
1181
1235
  ),
1182
- c === "border" ? /* @__PURE__ */ f(
1236
+ h === "border" ? /* @__PURE__ */ p(
1183
1237
  "p",
1184
1238
  {
1185
1239
  style: {
@@ -1188,11 +1242,11 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1188
1242
  marginBottom: "12px"
1189
1243
  },
1190
1244
  children: [
1191
- F.border.description,
1245
+ H.border.description,
1192
1246
  ". Click the same border again to clear."
1193
1247
  ]
1194
1248
  }
1195
- ) : c === "reference" ? /* @__PURE__ */ f(
1249
+ ) : h === "reference" ? /* @__PURE__ */ p(
1196
1250
  "p",
1197
1251
  {
1198
1252
  style: {
@@ -1202,14 +1256,14 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1202
1256
  },
1203
1257
  children: [
1204
1258
  "Click ",
1205
- /* @__PURE__ */ n("strong", { children: "Asterisk" }),
1259
+ /* @__PURE__ */ r("strong", { children: "Asterisk" }),
1206
1260
  " to toggle left cell. Click any ",
1207
- /* @__PURE__ */ n("strong", { children: "number" }),
1261
+ /* @__PURE__ */ r("strong", { children: "number" }),
1208
1262
  " ",
1209
1263
  "to toggle right cell."
1210
1264
  ]
1211
1265
  }
1212
- ) : c === "root" ? /* @__PURE__ */ n(
1266
+ ) : h === "root" ? /* @__PURE__ */ r(
1213
1267
  "p",
1214
1268
  {
1215
1269
  style: {
@@ -1219,7 +1273,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1219
1273
  },
1220
1274
  children: "Search for an icon below. The icon's name is stored with the ikon."
1221
1275
  }
1222
- ) : /* @__PURE__ */ f(
1276
+ ) : /* @__PURE__ */ p(
1223
1277
  "p",
1224
1278
  {
1225
1279
  style: {
@@ -1228,33 +1282,33 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1228
1282
  marginBottom: "12px"
1229
1283
  },
1230
1284
  children: [
1231
- F[c].description,
1285
+ H[h].description,
1232
1286
  ". Click the same icon again to clear."
1233
1287
  ]
1234
1288
  }
1235
1289
  ),
1236
- c === "border" ? /* @__PURE__ */ f(P, { children: [
1237
- /* @__PURE__ */ n("div", { style: { marginBottom: "12px" }, children: /* @__PURE__ */ n(
1290
+ h === "border" ? /* @__PURE__ */ p(A, { children: [
1291
+ /* @__PURE__ */ r("div", { style: { marginBottom: "12px" }, children: /* @__PURE__ */ r(
1238
1292
  "button",
1239
1293
  {
1240
1294
  onClick: () => v(null),
1241
1295
  style: {
1242
1296
  width: "100%",
1243
1297
  padding: "10px 14px",
1244
- background: i.border == null ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1245
- border: `2px solid ${i.border == null ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
1298
+ background: F.border == null ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1299
+ border: `2px solid ${F.border == null ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
1246
1300
  borderRadius: "8px",
1247
- color: i.border == null ? "white" : "var(--ikoneme-text-primary)",
1301
+ color: F.border == null ? "white" : "var(--ikoneme-text-primary)",
1248
1302
  fontSize: "14px",
1249
1303
  cursor: "pointer",
1250
1304
  textAlign: "left",
1251
- fontWeight: i.border == null ? "600" : "400",
1305
+ fontWeight: F.border == null ? "600" : "400",
1252
1306
  transition: "all 0.2s"
1253
1307
  },
1254
1308
  children: "No border"
1255
1309
  }
1256
1310
  ) }),
1257
- /* @__PURE__ */ n("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ n(
1311
+ /* @__PURE__ */ r("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ r(
1258
1312
  "span",
1259
1313
  {
1260
1314
  style: {
@@ -1265,7 +1319,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1265
1319
  children: "Singular"
1266
1320
  }
1267
1321
  ) }),
1268
- /* @__PURE__ */ n(
1322
+ /* @__PURE__ */ r(
1269
1323
  "div",
1270
1324
  {
1271
1325
  style: {
@@ -1274,17 +1328,17 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1274
1328
  gap: "10px",
1275
1329
  marginBottom: "16px"
1276
1330
  },
1277
- children: H.filter((t) => !t.plural).map((t) => {
1278
- const s = i.border === t.id;
1279
- return /* @__PURE__ */ f(
1331
+ children: z.filter((i) => !i.plural).map((i) => {
1332
+ const n = F.border === i.id;
1333
+ return /* @__PURE__ */ p(
1280
1334
  "button",
1281
1335
  {
1282
- onClick: () => v(t.id),
1283
- title: t.label,
1336
+ onClick: () => v(i.id),
1337
+ title: i.label,
1284
1338
  style: {
1285
1339
  padding: "8px",
1286
- background: s ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1287
- border: `2px solid ${s ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
1340
+ background: n ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1341
+ border: `2px solid ${n ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
1288
1342
  borderRadius: "8px",
1289
1343
  cursor: "pointer",
1290
1344
  display: "flex",
@@ -1295,36 +1349,38 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1295
1349
  position: "relative"
1296
1350
  },
1297
1351
  onMouseEnter: (d) => {
1298
- s || (d.currentTarget.style.background = "var(--ikoneme-hover)");
1352
+ n || (d.currentTarget.style.background = "var(--ikoneme-hover)");
1299
1353
  },
1300
1354
  onMouseLeave: (d) => {
1301
- s || (d.currentTarget.style.background = "var(--ikoneme-surface)");
1355
+ n || (d.currentTarget.style.background = "var(--ikoneme-surface)");
1302
1356
  },
1303
1357
  children: [
1304
- /* @__PURE__ */ n(
1358
+ /* @__PURE__ */ r(
1305
1359
  "div",
1306
1360
  {
1307
1361
  style: {
1308
- border: `5px solid ${t.color}`,
1309
- borderRadius: "4px",
1362
+ boxSizing: "border-box",
1310
1363
  width: "64px",
1311
1364
  height: "64px",
1312
- flexShrink: 0
1365
+ flexShrink: 0,
1366
+ // Drawn at the scale of a ~160px ikon so the frame's
1367
+ // dash pattern stays readable in a 64px swatch.
1368
+ ...$(i, 160)
1313
1369
  }
1314
1370
  }
1315
1371
  ),
1316
- /* @__PURE__ */ n(
1372
+ /* @__PURE__ */ r(
1317
1373
  "span",
1318
1374
  {
1319
1375
  style: {
1320
1376
  fontSize: "11px",
1321
- color: s ? "white" : "var(--ikoneme-text-primary)",
1322
- fontWeight: s ? "600" : "400"
1377
+ color: n ? "white" : "var(--ikoneme-text-primary)",
1378
+ fontWeight: n ? "600" : "400"
1323
1379
  },
1324
- children: t.label
1380
+ children: i.label
1325
1381
  }
1326
1382
  ),
1327
- /* @__PURE__ */ n(
1383
+ /* @__PURE__ */ r(
1328
1384
  "div",
1329
1385
  {
1330
1386
  className: "ikon-tooltip",
@@ -1345,17 +1401,17 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1345
1401
  marginBottom: "8px",
1346
1402
  zIndex: 100
1347
1403
  },
1348
- children: t.label
1404
+ children: i.label
1349
1405
  }
1350
1406
  )
1351
1407
  ]
1352
1408
  },
1353
- t.id
1409
+ i.id
1354
1410
  );
1355
1411
  })
1356
1412
  }
1357
1413
  ),
1358
- /* @__PURE__ */ n("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ n(
1414
+ /* @__PURE__ */ r("div", { style: { marginBottom: "8px" }, children: /* @__PURE__ */ r(
1359
1415
  "span",
1360
1416
  {
1361
1417
  style: {
@@ -1366,26 +1422,17 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1366
1422
  children: "Plural"
1367
1423
  }
1368
1424
  ) }),
1369
- /* @__PURE__ */ n("div", { style: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "10px" }, children: H.filter((t) => t.plural).map((t) => {
1370
- const s = i.border === t.id, u = 5, d = {
1371
- boxShadow: [
1372
- `inset -${u}px 0 0 ${t.color}`,
1373
- `inset -${u * 2}px 0 0 ${t.color}`,
1374
- `inset -${u * 3}px 0 0 ${t.color}`,
1375
- `inset 0 -${u}px 0 ${t.color}`,
1376
- `inset 0 -${u * 2}px 0 ${t.color}`,
1377
- `inset 0 -${u * 3}px 0 ${t.color}`
1378
- ].join(", ")
1379
- };
1380
- return /* @__PURE__ */ f(
1425
+ /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "10px" }, children: z.filter((i) => i.plural).map((i) => {
1426
+ const n = F.border === i.id;
1427
+ return /* @__PURE__ */ p(
1381
1428
  "button",
1382
1429
  {
1383
- onClick: () => v(t.id),
1384
- title: t.label,
1430
+ onClick: () => v(i.id),
1431
+ title: i.label,
1385
1432
  style: {
1386
1433
  padding: "8px",
1387
- background: s ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1388
- border: `2px solid ${s ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
1434
+ background: n ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1435
+ border: `2px solid ${n ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)"}`,
1389
1436
  borderRadius: "8px",
1390
1437
  cursor: "pointer",
1391
1438
  display: "flex",
@@ -1395,38 +1442,39 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1395
1442
  transition: "all 0.2s",
1396
1443
  position: "relative"
1397
1444
  },
1398
- onMouseEnter: (g) => {
1399
- s || (g.currentTarget.style.background = "var(--ikoneme-hover)");
1445
+ onMouseEnter: (d) => {
1446
+ n || (d.currentTarget.style.background = "var(--ikoneme-hover)");
1400
1447
  },
1401
- onMouseLeave: (g) => {
1402
- s || (g.currentTarget.style.background = "var(--ikoneme-surface)");
1448
+ onMouseLeave: (d) => {
1449
+ n || (d.currentTarget.style.background = "var(--ikoneme-surface)");
1403
1450
  },
1404
1451
  children: [
1405
- /* @__PURE__ */ n(
1452
+ /* @__PURE__ */ r(
1406
1453
  "div",
1407
1454
  {
1408
1455
  style: {
1409
- border: `${u}px solid ${t.color}`,
1410
- borderRadius: "4px",
1456
+ boxSizing: "border-box",
1411
1457
  width: "64px",
1412
1458
  height: "64px",
1413
1459
  flexShrink: 0,
1414
- ...d
1460
+ // Drawn at the scale of a ~160px ikon so the frame's
1461
+ // dash pattern stays readable in a 64px swatch.
1462
+ ...$(i, 160)
1415
1463
  }
1416
1464
  }
1417
1465
  ),
1418
- /* @__PURE__ */ n(
1466
+ /* @__PURE__ */ r(
1419
1467
  "span",
1420
1468
  {
1421
1469
  style: {
1422
1470
  fontSize: "11px",
1423
- color: s ? "white" : "var(--ikoneme-text-primary)",
1424
- fontWeight: s ? "600" : "400"
1471
+ color: n ? "white" : "var(--ikoneme-text-primary)",
1472
+ fontWeight: n ? "600" : "400"
1425
1473
  },
1426
- children: t.label
1474
+ children: i.label
1427
1475
  }
1428
1476
  ),
1429
- /* @__PURE__ */ n(
1477
+ /* @__PURE__ */ r(
1430
1478
  "div",
1431
1479
  {
1432
1480
  className: "ikon-tooltip",
@@ -1447,16 +1495,16 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1447
1495
  marginBottom: "8px",
1448
1496
  zIndex: 100
1449
1497
  },
1450
- children: t.label
1498
+ children: i.label
1451
1499
  }
1452
1500
  )
1453
1501
  ]
1454
1502
  },
1455
- t.id
1503
+ i.id
1456
1504
  );
1457
1505
  }) })
1458
- ] }) : c === "root" ? /* @__PURE__ */ f(P, { children: [
1459
- /* @__PURE__ */ f(
1506
+ ] }) : h === "root" ? /* @__PURE__ */ p(A, { children: [
1507
+ /* @__PURE__ */ p(
1460
1508
  "div",
1461
1509
  {
1462
1510
  style: {
@@ -1470,13 +1518,13 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1470
1518
  border: "1px solid var(--ikoneme-border)"
1471
1519
  },
1472
1520
  children: [
1473
- /* @__PURE__ */ n(we, { size: 18, color: "var(--ikoneme-text-secondary)" }),
1474
- /* @__PURE__ */ n(
1521
+ /* @__PURE__ */ r(be, { size: 18, color: "var(--ikoneme-text-secondary)" }),
1522
+ /* @__PURE__ */ r(
1475
1523
  "input",
1476
1524
  {
1477
1525
  type: "text",
1478
- value: k,
1479
- onChange: (t) => N(t.target.value),
1526
+ value: u,
1527
+ onChange: (i) => k(i.target.value),
1480
1528
  placeholder: "Search icons...",
1481
1529
  style: {
1482
1530
  flex: 1,
@@ -1491,7 +1539,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1491
1539
  ]
1492
1540
  }
1493
1541
  ),
1494
- y && /* @__PURE__ */ n(
1542
+ w && /* @__PURE__ */ r(
1495
1543
  "p",
1496
1544
  {
1497
1545
  style: {
@@ -1502,26 +1550,26 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1502
1550
  children: "Searching…"
1503
1551
  }
1504
1552
  ),
1505
- /* @__PURE__ */ n(
1553
+ /* @__PURE__ */ r(
1506
1554
  "div",
1507
1555
  {
1508
1556
  style: {
1509
1557
  display: "grid",
1510
- gridTemplateColumns: `repeat(${Ve}, 1fr)`,
1558
+ gridTemplateColumns: `repeat(${i0}, 1fr)`,
1511
1559
  gap: "10px"
1512
1560
  },
1513
- children: T.map((t, s) => {
1514
- const u = K(i.root) === t.url;
1515
- return /* @__PURE__ */ f(
1561
+ children: E.map((i, n) => {
1562
+ const d = V(F.root) === i.url;
1563
+ return /* @__PURE__ */ p(
1516
1564
  "button",
1517
1565
  {
1518
- onClick: () => M(t),
1519
- title: t.name,
1566
+ onClick: () => N(i),
1567
+ title: i.name,
1520
1568
  style: {
1521
1569
  padding: "12px",
1522
- background: u ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1570
+ background: d ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1523
1571
  border: "2px solid",
1524
- borderColor: u ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)",
1572
+ borderColor: d ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)",
1525
1573
  borderRadius: "8px",
1526
1574
  cursor: "pointer",
1527
1575
  transition: "all 0.2s",
@@ -1534,14 +1582,14 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1534
1582
  minHeight: "70px",
1535
1583
  minWidth: "70px"
1536
1584
  },
1537
- onMouseEnter: (d) => {
1538
- d.currentTarget.style.transform = "scale(1.05)", u || (d.currentTarget.style.background = "var(--ikoneme-hover)");
1585
+ onMouseEnter: (a) => {
1586
+ a.currentTarget.style.transform = "scale(1.05)", d || (a.currentTarget.style.background = "var(--ikoneme-hover)");
1539
1587
  },
1540
- onMouseLeave: (d) => {
1541
- d.currentTarget.style.transform = "scale(1)", u || (d.currentTarget.style.background = "var(--ikoneme-surface)");
1588
+ onMouseLeave: (a) => {
1589
+ a.currentTarget.style.transform = "scale(1)", d || (a.currentTarget.style.background = "var(--ikoneme-surface)");
1542
1590
  },
1543
1591
  children: [
1544
- /* @__PURE__ */ n(
1592
+ /* @__PURE__ */ r(
1545
1593
  "div",
1546
1594
  {
1547
1595
  style: {
@@ -1554,11 +1602,11 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1554
1602
  justifyContent: "center",
1555
1603
  padding: "4px"
1556
1604
  },
1557
- children: /* @__PURE__ */ n(
1605
+ children: /* @__PURE__ */ r(
1558
1606
  "img",
1559
1607
  {
1560
- src: t.url,
1561
- alt: t.name,
1608
+ src: i.url,
1609
+ alt: i.name,
1562
1610
  style: {
1563
1611
  maxWidth: "100%",
1564
1612
  maxHeight: "100%",
@@ -1566,14 +1614,14 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1566
1614
  height: "100%",
1567
1615
  objectFit: "contain"
1568
1616
  },
1569
- onError: (d) => {
1570
- d.target.style.display = "none";
1617
+ onError: (a) => {
1618
+ a.target.style.display = "none";
1571
1619
  }
1572
1620
  }
1573
1621
  )
1574
1622
  }
1575
1623
  ),
1576
- /* @__PURE__ */ n(
1624
+ /* @__PURE__ */ r(
1577
1625
  "div",
1578
1626
  {
1579
1627
  className: "ikon-tooltip",
@@ -1594,42 +1642,42 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1594
1642
  marginBottom: "8px",
1595
1643
  zIndex: 100
1596
1644
  },
1597
- children: t.name
1645
+ children: i.name
1598
1646
  }
1599
1647
  )
1600
1648
  ]
1601
1649
  },
1602
- `${t.url}-${s}`
1650
+ `${i.url}-${n}`
1603
1651
  );
1604
1652
  })
1605
1653
  }
1606
1654
  )
1607
- ] }) : /* @__PURE__ */ n(
1655
+ ] }) : /* @__PURE__ */ r(
1608
1656
  "div",
1609
1657
  {
1610
1658
  style: {
1611
1659
  display: "grid",
1612
- gridTemplateColumns: h[c].length <= 3 ? "repeat(3, 1fr)" : "repeat(auto-fit, minmax(90px, 1fr))",
1660
+ gridTemplateColumns: x[h].length <= 3 ? "repeat(3, 1fr)" : "repeat(auto-fit, minmax(90px, 1fr))",
1613
1661
  gap: "10px"
1614
1662
  },
1615
- children: h[c].map((t, s) => {
1616
- var d, g;
1617
- let u = !1;
1618
- if (c === "reference") {
1619
- const x = h.reference[0].url;
1620
- t.url === x ? u = K((d = i.reference) == null ? void 0 : d.left) === x : u = K((g = i.reference) == null ? void 0 : g.right) === t.url;
1663
+ children: x[h].map((i, n) => {
1664
+ var a, f;
1665
+ let d = !1;
1666
+ if (h === "reference") {
1667
+ const g = x.reference[0].url;
1668
+ i.url === g ? d = V((a = F.reference) == null ? void 0 : a.left) === g : d = V((f = F.reference) == null ? void 0 : f.right) === i.url;
1621
1669
  } else
1622
- u = K(i[c]) === t.url;
1623
- return /* @__PURE__ */ f(
1670
+ d = V(F[h]) === i.url;
1671
+ return /* @__PURE__ */ p(
1624
1672
  "button",
1625
1673
  {
1626
- onClick: () => _(c, t.url),
1627
- title: t.tooltip,
1674
+ onClick: () => I(h, i.url),
1675
+ title: i.tooltip,
1628
1676
  style: {
1629
1677
  padding: "12px",
1630
- background: u ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1678
+ background: d ? "var(--ikoneme-primary)" : "var(--ikoneme-surface)",
1631
1679
  border: "2px solid",
1632
- borderColor: u ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)",
1680
+ borderColor: d ? "var(--ikoneme-primary-dark)" : "var(--ikoneme-border)",
1633
1681
  borderRadius: "8px",
1634
1682
  cursor: "pointer",
1635
1683
  transition: "all 0.2s",
@@ -1642,14 +1690,14 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1642
1690
  minHeight: "70px",
1643
1691
  minWidth: "70px"
1644
1692
  },
1645
- onMouseEnter: (x) => {
1646
- x.currentTarget.style.transform = "scale(1.05)", u || (x.currentTarget.style.background = "var(--ikoneme-hover)");
1693
+ onMouseEnter: (g) => {
1694
+ g.currentTarget.style.transform = "scale(1.05)", d || (g.currentTarget.style.background = "var(--ikoneme-hover)");
1647
1695
  },
1648
- onMouseLeave: (x) => {
1649
- x.currentTarget.style.transform = "scale(1)", u || (x.currentTarget.style.background = "var(--ikoneme-surface)");
1696
+ onMouseLeave: (g) => {
1697
+ g.currentTarget.style.transform = "scale(1)", d || (g.currentTarget.style.background = "var(--ikoneme-surface)");
1650
1698
  },
1651
1699
  children: [
1652
- /* @__PURE__ */ n(
1700
+ /* @__PURE__ */ r(
1653
1701
  "div",
1654
1702
  {
1655
1703
  style: {
@@ -1662,11 +1710,11 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1662
1710
  justifyContent: "center",
1663
1711
  padding: "4px"
1664
1712
  },
1665
- children: /* @__PURE__ */ n(
1713
+ children: /* @__PURE__ */ r(
1666
1714
  "img",
1667
1715
  {
1668
- src: t.url,
1669
- alt: t.tooltip,
1716
+ src: i.url,
1717
+ alt: i.tooltip,
1670
1718
  style: {
1671
1719
  maxWidth: "100%",
1672
1720
  maxHeight: "100%",
@@ -1678,7 +1726,7 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1678
1726
  )
1679
1727
  }
1680
1728
  ),
1681
- /* @__PURE__ */ n(
1729
+ /* @__PURE__ */ r(
1682
1730
  "div",
1683
1731
  {
1684
1732
  style: {
@@ -1699,18 +1747,18 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1699
1747
  zIndex: 100
1700
1748
  },
1701
1749
  className: "ikon-tooltip",
1702
- children: t.tooltip
1750
+ children: i.tooltip
1703
1751
  }
1704
1752
  )
1705
1753
  ]
1706
1754
  },
1707
- s
1755
+ n
1708
1756
  );
1709
1757
  })
1710
1758
  }
1711
1759
  )
1712
1760
  ] }),
1713
- /* @__PURE__ */ n("style", { children: `
1761
+ /* @__PURE__ */ r("style", { children: `
1714
1762
  button:hover .ikon-tooltip {
1715
1763
  opacity: 1 !important;
1716
1764
  }
@@ -1722,15 +1770,15 @@ function Ue({ ikon: e, onSave: o, onClose: l, searchRoot: r = Ae }) {
1722
1770
  }
1723
1771
  );
1724
1772
  }
1725
- function Pe({ ikon: e, size: o = 320, onClose: l }) {
1726
- const r = typeof window < "u" ? Math.max(120, Math.min(o, window.innerWidth - 48, window.innerHeight - 156)) : o;
1727
- return /* @__PURE__ */ n(
1773
+ function l0({ ikon: e, size: t = 320, onClose: o }) {
1774
+ const l = typeof window < "u" ? Math.max(120, Math.min(t, window.innerWidth - 48, window.innerHeight - 156)) : t;
1775
+ return /* @__PURE__ */ r(
1728
1776
  "div",
1729
1777
  {
1730
1778
  role: "dialog",
1731
1779
  "aria-modal": "true",
1732
1780
  "aria-label": "Zoomed ikon",
1733
- onClick: l,
1781
+ onClick: o,
1734
1782
  style: {
1735
1783
  position: "fixed",
1736
1784
  inset: 0,
@@ -1741,10 +1789,10 @@ function Pe({ ikon: e, size: o = 320, onClose: l }) {
1741
1789
  zIndex: 1e3,
1742
1790
  padding: "24px"
1743
1791
  },
1744
- children: /* @__PURE__ */ f(
1792
+ children: /* @__PURE__ */ p(
1745
1793
  "div",
1746
1794
  {
1747
- onClick: (i) => i.stopPropagation(),
1795
+ onClick: (F) => F.stopPropagation(),
1748
1796
  style: {
1749
1797
  display: "flex",
1750
1798
  flexDirection: "column",
@@ -1753,11 +1801,11 @@ function Pe({ ikon: e, size: o = 320, onClose: l }) {
1753
1801
  maxWidth: "100%"
1754
1802
  },
1755
1803
  children: [
1756
- /* @__PURE__ */ n(q, { ikon: e, size: r }),
1757
- /* @__PURE__ */ n(
1804
+ /* @__PURE__ */ r(Y, { ikon: e, size: l }),
1805
+ /* @__PURE__ */ r(
1758
1806
  "button",
1759
1807
  {
1760
- onClick: l,
1808
+ onClick: o,
1761
1809
  style: {
1762
1810
  width: "40px",
1763
1811
  height: "40px",
@@ -1772,7 +1820,7 @@ function Pe({ ikon: e, size: o = 320, onClose: l }) {
1772
1820
  },
1773
1821
  title: "Close",
1774
1822
  "aria-label": "Close",
1775
- children: /* @__PURE__ */ n(Se, { size: 20 })
1823
+ children: /* @__PURE__ */ r(Ie, { size: 20 })
1776
1824
  }
1777
1825
  )
1778
1826
  ]
@@ -1781,7 +1829,7 @@ function Pe({ ikon: e, size: o = 320, onClose: l }) {
1781
1829
  }
1782
1830
  );
1783
1831
  }
1784
- const qe = {
1832
+ const F0 = {
1785
1833
  "--ikoneme-primary": "#00a884",
1786
1834
  "--ikoneme-primary-dark": "#008069",
1787
1835
  "--ikoneme-background": "#0c0e12",
@@ -1792,66 +1840,66 @@ const qe = {
1792
1840
  "--ikoneme-text-secondary": "#8696a0",
1793
1841
  "--ikoneme-hover": "#2a2e36"
1794
1842
  };
1795
- function tt({
1843
+ function g0({
1796
1844
  ikons: e = [],
1797
- mode: o = "view",
1798
- size: l = 64,
1799
- gap: r = 6,
1800
- zoom: i = !0,
1801
- zoomSize: p = 320,
1802
- onChange: c,
1803
- onIkonClick: I,
1804
- searchRoot: k,
1805
- theme: N,
1806
- className: T,
1807
- style: S
1845
+ mode: t = "view",
1846
+ size: o = 64,
1847
+ gap: l = 6,
1848
+ zoom: F = !0,
1849
+ zoomSize: s = 320,
1850
+ onChange: h,
1851
+ onIkonClick: b,
1852
+ searchRoot: u,
1853
+ theme: k,
1854
+ className: E,
1855
+ style: m
1808
1856
  }) {
1809
- const [y, m] = E(null), [_, $] = E(null), v = o === "edit", M = (d) => {
1810
- c && c(e.filter((g, x) => x !== d));
1811
- }, O = (d) => {
1812
- y != null && c && c(e.map((g, x) => x === y ? d : g)), m(null);
1813
- }, t = (d, g) => {
1814
- !v && I && I(d, g), i && $(g);
1815
- }, s = { ...qe, ...N }, u = i || !v && !!I;
1816
- return /* @__PURE__ */ f(
1857
+ const [w, _] = M(null), [I, T] = M(null), v = t === "edit", N = (a) => {
1858
+ h && h(e.filter((f, g) => g !== a));
1859
+ }, L = (a) => {
1860
+ w != null && h && h(e.map((f, g) => g === w ? a : f)), _(null);
1861
+ }, i = (a, f) => {
1862
+ !v && b && b(a, f), F && T(f);
1863
+ }, n = { ...F0, ...k }, d = F || !v && !!b;
1864
+ return /* @__PURE__ */ p(
1817
1865
  "div",
1818
1866
  {
1819
- className: ["ikoneme", T].filter(Boolean).join(" "),
1867
+ className: ["ikoneme", E].filter(Boolean).join(" "),
1820
1868
  style: {
1821
1869
  display: "flex",
1822
1870
  flexWrap: "wrap",
1823
1871
  alignItems: "center",
1824
- gap: `${r}px`,
1825
- ...s,
1826
- ...S
1872
+ gap: `${l}px`,
1873
+ ...n,
1874
+ ...m
1827
1875
  },
1828
1876
  children: [
1829
- e.map((d, g) => /* @__PURE__ */ n(
1830
- q,
1877
+ e.map((a, f) => /* @__PURE__ */ r(
1878
+ Y,
1831
1879
  {
1832
- ikon: d,
1833
- size: l,
1834
- onClick: u ? () => t(d, g) : void 0,
1835
- onEdit: v ? () => m(g) : void 0,
1836
- onDelete: v && c ? () => M(g) : void 0
1880
+ ikon: a,
1881
+ size: o,
1882
+ onClick: d ? () => i(a, f) : void 0,
1883
+ onEdit: v ? () => _(f) : void 0,
1884
+ onDelete: v && h ? () => N(f) : void 0
1837
1885
  },
1838
- g
1886
+ f
1839
1887
  )),
1840
- v && y != null && e[y] && /* @__PURE__ */ n("div", { style: s, children: /* @__PURE__ */ n(
1841
- Ue,
1888
+ v && w != null && e[w] && /* @__PURE__ */ r("div", { style: n, children: /* @__PURE__ */ r(
1889
+ r0,
1842
1890
  {
1843
- ikon: e[y],
1844
- searchRoot: k,
1845
- onSave: O,
1846
- onClose: () => m(null)
1891
+ ikon: e[w],
1892
+ searchRoot: u,
1893
+ onSave: L,
1894
+ onClose: () => _(null)
1847
1895
  }
1848
1896
  ) }),
1849
- i && _ != null && e[_] && /* @__PURE__ */ n("div", { style: s, children: /* @__PURE__ */ n(
1850
- Pe,
1897
+ F && I != null && e[I] && /* @__PURE__ */ r("div", { style: n, children: /* @__PURE__ */ r(
1898
+ l0,
1851
1899
  {
1852
- ikon: e[_],
1853
- size: p,
1854
- onClose: () => $(null)
1900
+ ikon: e[I],
1901
+ size: s,
1902
+ onClose: () => T(null)
1855
1903
  }
1856
1904
  ) })
1857
1905
  ]
@@ -1859,28 +1907,29 @@ function tt({
1859
1907
  );
1860
1908
  }
1861
1909
  export {
1862
- H as BORDER_CONFIG,
1863
- _e as BORDER_IDS,
1864
- qe as DEFAULT_THEME,
1865
- G as IKONDB_BASE_URL,
1866
- q as Ikon,
1867
- Ue as IkonEditor,
1868
- Pe as IkonZoomView,
1869
- tt as Ikoneme,
1870
- h as ZONE_CONFIG,
1871
- et as clearIkonDbCache,
1872
- re as createDefaultIkon,
1873
- Ae as defaultSearchRoot,
1874
- Je as generateIkonemeFromText,
1875
- Te as getBorderConfig,
1876
- C as getIconConfig,
1877
- Ke as getIconDisplayUrl,
1878
- K as getIconUrl,
1879
- Qe as getIconUrlByIndex,
1880
- We as getIkonDetails,
1881
- ze as getIkonList,
1882
- $e as normalizeIkon,
1883
- Ye as normalizeIkoneme,
1884
- Le as searchIkons
1910
+ z as BORDER_CONFIG,
1911
+ We as BORDER_IDS,
1912
+ F0 as DEFAULT_THEME,
1913
+ U as IKONDB_BASE_URL,
1914
+ Y as Ikon,
1915
+ r0 as IkonEditor,
1916
+ l0 as IkonZoomView,
1917
+ g0 as Ikoneme,
1918
+ x as ZONE_CONFIG,
1919
+ h0 as clearIkonDbCache,
1920
+ ie as createDefaultIkon,
1921
+ Be as defaultSearchRoot,
1922
+ a0 as generateIkonemeFromText,
1923
+ oe as getBorderConfig,
1924
+ $ as getBorderImageStyle,
1925
+ B as getIconConfig,
1926
+ $e as getIconDisplayUrl,
1927
+ V as getIconUrl,
1928
+ d0 as getIconUrlByIndex,
1929
+ Te as getIkonDetails,
1930
+ Ve as getIkonList,
1931
+ Ue as normalizeIkon,
1932
+ s0 as normalizeIkoneme,
1933
+ Fe as searchIkons
1885
1934
  };
1886
1935
  //# sourceMappingURL=ikoneme-lib.js.map