@mrts/soltw 0.3.21 → 0.3.24

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.
Files changed (50) hide show
  1. package/dist/index.d.ts +125 -10
  2. package/dist/index.js +3298 -10
  3. package/dist/index.jsx +2893 -10
  4. package/package.json +2 -2
  5. package/dist/Block.d.ts +0 -13
  6. package/dist/Block.js +0 -33
  7. package/dist/Block.jsx +0 -24
  8. package/dist/items/IdLabel.d.ts +0 -15
  9. package/dist/items/IdLabel.js +0 -19
  10. package/dist/items/IdLabel.jsx +0 -19
  11. package/dist/items/Item.d.ts +0 -25
  12. package/dist/items/Item.js +0 -79
  13. package/dist/items/Item.jsx +0 -64
  14. package/dist/items/ItemGroup.d.ts +0 -24
  15. package/dist/items/ItemGroup.js +0 -87
  16. package/dist/items/ItemGroup.jsx +0 -64
  17. package/dist/node_modules/solid-js/dist/solid.js +0 -677
  18. package/dist/node_modules/solid-js/dist/solid.jsx +0 -654
  19. package/dist/node_modules/solid-js/web/dist/web.js +0 -694
  20. package/dist/node_modules/solid-js/web/dist/web.jsx +0 -678
  21. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1893
  22. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.jsx +0 -1893
  23. package/dist/packages/common/dist/index.js +0 -4
  24. package/dist/packages/common/dist/index.jsx +0 -4
  25. package/dist/packages/common/dist/messages/index.js +0 -1
  26. package/dist/packages/common/dist/messages/index.jsx +0 -1
  27. package/dist/packages/common/dist/messages/logMessages.js +0 -14
  28. package/dist/packages/common/dist/messages/logMessages.jsx +0 -14
  29. package/dist/packages/common/dist/strings/index.js +0 -1
  30. package/dist/packages/common/dist/strings/index.jsx +0 -1
  31. package/dist/packages/common/dist/strings/tokenize.js +0 -47
  32. package/dist/packages/common/dist/strings/tokenize.jsx +0 -47
  33. package/dist/soltw.d.ts +0 -7
  34. package/dist/soltw.js +0 -10
  35. package/dist/soltw.jsx +0 -7
  36. package/dist/stylers/SVTStyler.d.ts +0 -32
  37. package/dist/stylers/SVTStyler.js +0 -65
  38. package/dist/stylers/SVTStyler.jsx +0 -65
  39. package/dist/stylers/Stylers.d.ts +0 -12
  40. package/dist/stylers/Stylers.js +0 -23
  41. package/dist/stylers/Stylers.jsx +0 -23
  42. package/dist/stylers/base.styler.d.ts +0 -6
  43. package/dist/stylers/base.styler.js +0 -71
  44. package/dist/stylers/base.styler.jsx +0 -71
  45. package/dist/stylers/index.js +0 -4
  46. package/dist/stylers/index.jsx +0 -4
  47. package/dist/stylers/normalizers.d.ts +0 -6
  48. package/dist/stylers/normalizers.js +0 -32
  49. package/dist/stylers/normalizers.jsx +0 -32
  50. package/dist/stylers/types.d.ts +0 -14
package/dist/index.js CHANGED
@@ -1,12 +1,3300 @@
1
- import { buildIdLabel } from "./items/IdLabel.js";
2
- import { exclusiveTagsNormalize, mainTagNormalize, twMergeNormalize } from "./stylers/normalizers.js";
3
- import { SVTStyler, tagRuleMatches } from "./stylers/SVTStyler.js";
4
- import { baseStyler } from "./stylers/base.styler.js";
5
- import { Stylers } from "./stylers/Stylers.js";
6
- import { Item } from "./items/Item.js";
7
- import "./stylers/index.js";
8
- import { Block } from "./Block.js";
9
- import { ItemGroup } from "./items/ItemGroup.js";
10
- import { SolTw } from "./soltw.js";
1
+ //#region src/items/IdLabel.ts
2
+ function buildIdLabel(arg) {
3
+ if (typeof arg == "string") return {
4
+ id: arg,
5
+ label: arg
6
+ };
7
+ else if (Array.isArray(arg)) return {
8
+ id: arg[0],
9
+ label: arg[1]
10
+ };
11
+ else {
12
+ const r = Object.assign({}, arg);
13
+ if (r.label == void 0) r["label"] = r.id;
14
+ return r;
15
+ }
16
+ }
11
17
 
18
+ //#endregion
19
+ //#region ../../node_modules/solid-js/dist/solid.js
20
+ const sharedConfig = {
21
+ context: void 0,
22
+ registry: void 0,
23
+ effects: void 0,
24
+ done: false,
25
+ getContextId() {
26
+ return getContextId(this.context.count);
27
+ },
28
+ getNextContextId() {
29
+ return getContextId(this.context.count++);
30
+ }
31
+ };
32
+ function getContextId(count) {
33
+ const num = String(count), len = num.length - 1;
34
+ return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
35
+ }
36
+ function setHydrateContext(context) {
37
+ sharedConfig.context = context;
38
+ }
39
+ function nextHydrateContext() {
40
+ return {
41
+ ...sharedConfig.context,
42
+ id: sharedConfig.getNextContextId(),
43
+ count: 0
44
+ };
45
+ }
46
+ const equalFn = (a, b) => a === b;
47
+ const $TRACK = Symbol("solid-track");
48
+ const signalOptions = { equals: equalFn };
49
+ let ERROR = null;
50
+ let runEffects = runQueue;
51
+ const STALE = 1;
52
+ const PENDING = 2;
53
+ const UNOWNED = {
54
+ owned: null,
55
+ cleanups: null,
56
+ context: null,
57
+ owner: null
58
+ };
59
+ var Owner = null;
60
+ let Transition = null;
61
+ let Scheduler = null;
62
+ let ExternalSourceConfig = null;
63
+ let Listener = null;
64
+ let Updates = null;
65
+ let Effects = null;
66
+ let ExecCount = 0;
67
+ function createRoot(fn, detachedOwner) {
68
+ const listener = Listener, owner = Owner, unowned = fn.length === 0, current = detachedOwner === void 0 ? owner : detachedOwner, root = unowned ? UNOWNED : {
69
+ owned: null,
70
+ cleanups: null,
71
+ context: current ? current.context : null,
72
+ owner: current
73
+ }, updateFn = unowned ? fn : () => fn(() => untrack(() => cleanNode(root)));
74
+ Owner = root;
75
+ Listener = null;
76
+ try {
77
+ return runUpdates(updateFn, true);
78
+ } finally {
79
+ Listener = listener;
80
+ Owner = owner;
81
+ }
82
+ }
83
+ function createSignal(value, options) {
84
+ options = options ? Object.assign({}, signalOptions, options) : signalOptions;
85
+ const s = {
86
+ value,
87
+ observers: null,
88
+ observerSlots: null,
89
+ comparator: options.equals || void 0
90
+ };
91
+ const setter = (value$1) => {
92
+ if (typeof value$1 === "function") if (Transition && Transition.running && Transition.sources.has(s)) value$1 = value$1(s.tValue);
93
+ else value$1 = value$1(s.value);
94
+ return writeSignal(s, value$1);
95
+ };
96
+ return [readSignal.bind(s), setter];
97
+ }
98
+ function createRenderEffect(fn, value, options) {
99
+ const c = createComputation(fn, value, false, STALE);
100
+ if (Scheduler && Transition && Transition.running) Updates.push(c);
101
+ else updateComputation(c);
102
+ }
103
+ function createEffect(fn, value, options) {
104
+ runEffects = runUserEffects;
105
+ const c = createComputation(fn, value, false, STALE), s = SuspenseContext && useContext(SuspenseContext);
106
+ if (s) c.suspense = s;
107
+ if (!options || !options.render) c.user = true;
108
+ Effects ? Effects.push(c) : updateComputation(c);
109
+ }
110
+ function createMemo(fn, value, options) {
111
+ options = options ? Object.assign({}, signalOptions, options) : signalOptions;
112
+ const c = createComputation(fn, value, true, 0);
113
+ c.observers = null;
114
+ c.observerSlots = null;
115
+ c.comparator = options.equals || void 0;
116
+ if (Scheduler && Transition && Transition.running) {
117
+ c.tState = STALE;
118
+ Updates.push(c);
119
+ } else updateComputation(c);
120
+ return readSignal.bind(c);
121
+ }
122
+ function untrack(fn) {
123
+ if (!ExternalSourceConfig && Listener === null) return fn();
124
+ const listener = Listener;
125
+ Listener = null;
126
+ try {
127
+ if (ExternalSourceConfig) return ExternalSourceConfig.untrack(fn);
128
+ return fn();
129
+ } finally {
130
+ Listener = listener;
131
+ }
132
+ }
133
+ function onCleanup(fn) {
134
+ if (Owner === null);
135
+ else if (Owner.cleanups === null) Owner.cleanups = [fn];
136
+ else Owner.cleanups.push(fn);
137
+ return fn;
138
+ }
139
+ function startTransition(fn) {
140
+ if (Transition && Transition.running) {
141
+ fn();
142
+ return Transition.done;
143
+ }
144
+ const l = Listener;
145
+ const o = Owner;
146
+ return Promise.resolve().then(() => {
147
+ Listener = l;
148
+ Owner = o;
149
+ let t;
150
+ if (Scheduler || SuspenseContext) {
151
+ t = Transition || (Transition = {
152
+ sources: /* @__PURE__ */ new Set(),
153
+ effects: [],
154
+ promises: /* @__PURE__ */ new Set(),
155
+ disposed: /* @__PURE__ */ new Set(),
156
+ queue: /* @__PURE__ */ new Set(),
157
+ running: true
158
+ });
159
+ t.done || (t.done = new Promise((res) => t.resolve = res));
160
+ t.running = true;
161
+ }
162
+ runUpdates(fn, false);
163
+ Listener = Owner = null;
164
+ return t ? t.done : void 0;
165
+ });
166
+ }
167
+ const [transPending, setTransPending] = /* @__PURE__ */ createSignal(false);
168
+ function useContext(context) {
169
+ let value;
170
+ return Owner && Owner.context && (value = Owner.context[context.id]) !== void 0 ? value : context.defaultValue;
171
+ }
172
+ let SuspenseContext;
173
+ function readSignal() {
174
+ const runningTransition = Transition && Transition.running;
175
+ if (this.sources && (runningTransition ? this.tState : this.state)) if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);
176
+ else {
177
+ const updates = Updates;
178
+ Updates = null;
179
+ runUpdates(() => lookUpstream(this), false);
180
+ Updates = updates;
181
+ }
182
+ if (Listener) {
183
+ const sSlot = this.observers ? this.observers.length : 0;
184
+ if (!Listener.sources) {
185
+ Listener.sources = [this];
186
+ Listener.sourceSlots = [sSlot];
187
+ } else {
188
+ Listener.sources.push(this);
189
+ Listener.sourceSlots.push(sSlot);
190
+ }
191
+ if (!this.observers) {
192
+ this.observers = [Listener];
193
+ this.observerSlots = [Listener.sources.length - 1];
194
+ } else {
195
+ this.observers.push(Listener);
196
+ this.observerSlots.push(Listener.sources.length - 1);
197
+ }
198
+ }
199
+ if (runningTransition && Transition.sources.has(this)) return this.tValue;
200
+ return this.value;
201
+ }
202
+ function writeSignal(node, value, isComp) {
203
+ let current = Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value;
204
+ if (!node.comparator || !node.comparator(current, value)) {
205
+ if (Transition) {
206
+ const TransitionRunning = Transition.running;
207
+ if (TransitionRunning || !isComp && Transition.sources.has(node)) {
208
+ Transition.sources.add(node);
209
+ node.tValue = value;
210
+ }
211
+ if (!TransitionRunning) node.value = value;
212
+ } else node.value = value;
213
+ if (node.observers && node.observers.length) runUpdates(() => {
214
+ for (let i = 0; i < node.observers.length; i += 1) {
215
+ const o = node.observers[i];
216
+ const TransitionRunning = Transition && Transition.running;
217
+ if (TransitionRunning && Transition.disposed.has(o)) continue;
218
+ if (TransitionRunning ? !o.tState : !o.state) {
219
+ if (o.pure) Updates.push(o);
220
+ else Effects.push(o);
221
+ if (o.observers) markDownstream(o);
222
+ }
223
+ if (!TransitionRunning) o.state = STALE;
224
+ else o.tState = STALE;
225
+ }
226
+ if (Updates.length > 1e6) {
227
+ Updates = [];
228
+ throw new Error();
229
+ }
230
+ }, false);
231
+ }
232
+ return value;
233
+ }
234
+ function updateComputation(node) {
235
+ if (!node.fn) return;
236
+ cleanNode(node);
237
+ const time = ExecCount;
238
+ runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
239
+ if (Transition && !Transition.running && Transition.sources.has(node)) queueMicrotask(() => {
240
+ runUpdates(() => {
241
+ Transition && (Transition.running = true);
242
+ Listener = Owner = node;
243
+ runComputation(node, node.tValue, time);
244
+ Listener = Owner = null;
245
+ }, false);
246
+ });
247
+ }
248
+ function runComputation(node, value, time) {
249
+ let nextValue;
250
+ const owner = Owner, listener = Listener;
251
+ Listener = Owner = node;
252
+ try {
253
+ nextValue = node.fn(value);
254
+ } catch (err) {
255
+ if (node.pure) if (Transition && Transition.running) {
256
+ node.tState = STALE;
257
+ node.tOwned && node.tOwned.forEach(cleanNode);
258
+ node.tOwned = void 0;
259
+ } else {
260
+ node.state = STALE;
261
+ node.owned && node.owned.forEach(cleanNode);
262
+ node.owned = null;
263
+ }
264
+ node.updatedAt = time + 1;
265
+ return handleError(err);
266
+ } finally {
267
+ Listener = listener;
268
+ Owner = owner;
269
+ }
270
+ if (!node.updatedAt || node.updatedAt <= time) {
271
+ if (node.updatedAt != null && "observers" in node) writeSignal(node, nextValue, true);
272
+ else if (Transition && Transition.running && node.pure) {
273
+ Transition.sources.add(node);
274
+ node.tValue = nextValue;
275
+ } else node.value = nextValue;
276
+ node.updatedAt = time;
277
+ }
278
+ }
279
+ function createComputation(fn, init, pure, state = STALE, options) {
280
+ const c = {
281
+ fn,
282
+ state,
283
+ updatedAt: null,
284
+ owned: null,
285
+ sources: null,
286
+ sourceSlots: null,
287
+ cleanups: null,
288
+ value: init,
289
+ owner: Owner,
290
+ context: Owner ? Owner.context : null,
291
+ pure
292
+ };
293
+ if (Transition && Transition.running) {
294
+ c.state = 0;
295
+ c.tState = state;
296
+ }
297
+ if (Owner === null);
298
+ else if (Owner !== UNOWNED) if (Transition && Transition.running && Owner.pure) if (!Owner.tOwned) Owner.tOwned = [c];
299
+ else Owner.tOwned.push(c);
300
+ else if (!Owner.owned) Owner.owned = [c];
301
+ else Owner.owned.push(c);
302
+ if (ExternalSourceConfig && c.fn) {
303
+ const [track, trigger] = createSignal(void 0, { equals: false });
304
+ const ordinary = ExternalSourceConfig.factory(c.fn, trigger);
305
+ onCleanup(() => ordinary.dispose());
306
+ const triggerInTransition = () => startTransition(trigger).then(() => inTransition.dispose());
307
+ const inTransition = ExternalSourceConfig.factory(c.fn, triggerInTransition);
308
+ c.fn = (x) => {
309
+ track();
310
+ return Transition && Transition.running ? inTransition.track(x) : ordinary.track(x);
311
+ };
312
+ }
313
+ return c;
314
+ }
315
+ function runTop(node) {
316
+ const runningTransition = Transition && Transition.running;
317
+ if ((runningTransition ? node.tState : node.state) === 0) return;
318
+ if ((runningTransition ? node.tState : node.state) === PENDING) return lookUpstream(node);
319
+ if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);
320
+ const ancestors = [node];
321
+ while ((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)) {
322
+ if (runningTransition && Transition.disposed.has(node)) return;
323
+ if (runningTransition ? node.tState : node.state) ancestors.push(node);
324
+ }
325
+ for (let i = ancestors.length - 1; i >= 0; i--) {
326
+ node = ancestors[i];
327
+ if (runningTransition) {
328
+ let top = node, prev = ancestors[i + 1];
329
+ while ((top = top.owner) && top !== prev) if (Transition.disposed.has(top)) return;
330
+ }
331
+ if ((runningTransition ? node.tState : node.state) === STALE) updateComputation(node);
332
+ else if ((runningTransition ? node.tState : node.state) === PENDING) {
333
+ const updates = Updates;
334
+ Updates = null;
335
+ runUpdates(() => lookUpstream(node, ancestors[0]), false);
336
+ Updates = updates;
337
+ }
338
+ }
339
+ }
340
+ function runUpdates(fn, init) {
341
+ if (Updates) return fn();
342
+ let wait = false;
343
+ if (!init) Updates = [];
344
+ if (Effects) wait = true;
345
+ else Effects = [];
346
+ ExecCount++;
347
+ try {
348
+ const res = fn();
349
+ completeUpdates(wait);
350
+ return res;
351
+ } catch (err) {
352
+ if (!wait) Effects = null;
353
+ Updates = null;
354
+ handleError(err);
355
+ }
356
+ }
357
+ function completeUpdates(wait) {
358
+ if (Updates) {
359
+ if (Scheduler && Transition && Transition.running) scheduleQueue(Updates);
360
+ else runQueue(Updates);
361
+ Updates = null;
362
+ }
363
+ if (wait) return;
364
+ let res;
365
+ if (Transition) {
366
+ if (!Transition.promises.size && !Transition.queue.size) {
367
+ const sources = Transition.sources;
368
+ const disposed = Transition.disposed;
369
+ Effects.push.apply(Effects, Transition.effects);
370
+ res = Transition.resolve;
371
+ for (const e$1 of Effects) {
372
+ "tState" in e$1 && (e$1.state = e$1.tState);
373
+ delete e$1.tState;
374
+ }
375
+ Transition = null;
376
+ runUpdates(() => {
377
+ for (const d of disposed) cleanNode(d);
378
+ for (const v of sources) {
379
+ v.value = v.tValue;
380
+ if (v.owned) for (let i = 0, len = v.owned.length; i < len; i++) cleanNode(v.owned[i]);
381
+ if (v.tOwned) v.owned = v.tOwned;
382
+ delete v.tValue;
383
+ delete v.tOwned;
384
+ v.tState = 0;
385
+ }
386
+ setTransPending(false);
387
+ }, false);
388
+ } else if (Transition.running) {
389
+ Transition.running = false;
390
+ Transition.effects.push.apply(Transition.effects, Effects);
391
+ Effects = null;
392
+ setTransPending(true);
393
+ return;
394
+ }
395
+ }
396
+ const e = Effects;
397
+ Effects = null;
398
+ if (e.length) runUpdates(() => runEffects(e), false);
399
+ if (res) res();
400
+ }
401
+ function runQueue(queue) {
402
+ for (let i = 0; i < queue.length; i++) runTop(queue[i]);
403
+ }
404
+ function scheduleQueue(queue) {
405
+ for (let i = 0; i < queue.length; i++) {
406
+ const item = queue[i];
407
+ const tasks = Transition.queue;
408
+ if (!tasks.has(item)) {
409
+ tasks.add(item);
410
+ Scheduler(() => {
411
+ tasks.delete(item);
412
+ runUpdates(() => {
413
+ Transition.running = true;
414
+ runTop(item);
415
+ }, false);
416
+ Transition && (Transition.running = false);
417
+ });
418
+ }
419
+ }
420
+ }
421
+ function runUserEffects(queue) {
422
+ let i, userLength = 0;
423
+ for (i = 0; i < queue.length; i++) {
424
+ const e = queue[i];
425
+ if (!e.user) runTop(e);
426
+ else queue[userLength++] = e;
427
+ }
428
+ if (sharedConfig.context) {
429
+ if (sharedConfig.count) {
430
+ sharedConfig.effects || (sharedConfig.effects = []);
431
+ sharedConfig.effects.push(...queue.slice(0, userLength));
432
+ return;
433
+ }
434
+ setHydrateContext();
435
+ }
436
+ if (sharedConfig.effects && (sharedConfig.done || !sharedConfig.count)) {
437
+ queue = [...sharedConfig.effects, ...queue];
438
+ userLength += sharedConfig.effects.length;
439
+ delete sharedConfig.effects;
440
+ }
441
+ for (i = 0; i < userLength; i++) runTop(queue[i]);
442
+ }
443
+ function lookUpstream(node, ignore) {
444
+ const runningTransition = Transition && Transition.running;
445
+ if (runningTransition) node.tState = 0;
446
+ else node.state = 0;
447
+ for (let i = 0; i < node.sources.length; i += 1) {
448
+ const source = node.sources[i];
449
+ if (source.sources) {
450
+ const state = runningTransition ? source.tState : source.state;
451
+ if (state === STALE) {
452
+ if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
453
+ } else if (state === PENDING) lookUpstream(source, ignore);
454
+ }
455
+ }
456
+ }
457
+ function markDownstream(node) {
458
+ const runningTransition = Transition && Transition.running;
459
+ for (let i = 0; i < node.observers.length; i += 1) {
460
+ const o = node.observers[i];
461
+ if (runningTransition ? !o.tState : !o.state) {
462
+ if (runningTransition) o.tState = PENDING;
463
+ else o.state = PENDING;
464
+ if (o.pure) Updates.push(o);
465
+ else Effects.push(o);
466
+ o.observers && markDownstream(o);
467
+ }
468
+ }
469
+ }
470
+ function cleanNode(node) {
471
+ let i;
472
+ if (node.sources) while (node.sources.length) {
473
+ const source = node.sources.pop(), index = node.sourceSlots.pop(), obs = source.observers;
474
+ if (obs && obs.length) {
475
+ const n = obs.pop(), s = source.observerSlots.pop();
476
+ if (index < obs.length) {
477
+ n.sourceSlots[s] = index;
478
+ obs[index] = n;
479
+ source.observerSlots[index] = s;
480
+ }
481
+ }
482
+ }
483
+ if (node.tOwned) {
484
+ for (i = node.tOwned.length - 1; i >= 0; i--) cleanNode(node.tOwned[i]);
485
+ delete node.tOwned;
486
+ }
487
+ if (Transition && Transition.running && node.pure) reset(node, true);
488
+ else if (node.owned) {
489
+ for (i = node.owned.length - 1; i >= 0; i--) cleanNode(node.owned[i]);
490
+ node.owned = null;
491
+ }
492
+ if (node.cleanups) {
493
+ for (i = node.cleanups.length - 1; i >= 0; i--) node.cleanups[i]();
494
+ node.cleanups = null;
495
+ }
496
+ if (Transition && Transition.running) node.tState = 0;
497
+ else node.state = 0;
498
+ }
499
+ function reset(node, top) {
500
+ if (!top) {
501
+ node.tState = 0;
502
+ Transition.disposed.add(node);
503
+ }
504
+ if (node.owned) for (let i = 0; i < node.owned.length; i++) reset(node.owned[i]);
505
+ }
506
+ function castError(err) {
507
+ if (err instanceof Error) return err;
508
+ return new Error(typeof err === "string" ? err : "Unknown error", { cause: err });
509
+ }
510
+ function runErrors(err, fns, owner) {
511
+ try {
512
+ for (const f of fns) f(err);
513
+ } catch (e) {
514
+ handleError(e, owner && owner.owner || null);
515
+ }
516
+ }
517
+ function handleError(err, owner = Owner) {
518
+ const fns = ERROR && owner && owner.context && owner.context[ERROR];
519
+ const error = castError(err);
520
+ if (!fns) throw error;
521
+ if (Effects) Effects.push({
522
+ fn() {
523
+ runErrors(error, fns, owner);
524
+ },
525
+ state: STALE
526
+ });
527
+ else runErrors(error, fns, owner);
528
+ }
529
+ const FALLBACK = Symbol("fallback");
530
+ function dispose(d) {
531
+ for (let i = 0; i < d.length; i++) d[i]();
532
+ }
533
+ function mapArray(list, mapFn, options = {}) {
534
+ let items = [], mapped = [], disposers = [], len = 0, indexes = mapFn.length > 1 ? [] : null;
535
+ onCleanup(() => dispose(disposers));
536
+ return () => {
537
+ let newItems = list() || [], newLen = newItems.length, i, j;
538
+ newItems[$TRACK];
539
+ return untrack(() => {
540
+ let newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
541
+ if (newLen === 0) {
542
+ if (len !== 0) {
543
+ dispose(disposers);
544
+ disposers = [];
545
+ items = [];
546
+ mapped = [];
547
+ len = 0;
548
+ indexes && (indexes = []);
549
+ }
550
+ if (options.fallback) {
551
+ items = [FALLBACK];
552
+ mapped[0] = createRoot((disposer) => {
553
+ disposers[0] = disposer;
554
+ return options.fallback();
555
+ });
556
+ len = 1;
557
+ }
558
+ } else if (len === 0) {
559
+ mapped = new Array(newLen);
560
+ for (j = 0; j < newLen; j++) {
561
+ items[j] = newItems[j];
562
+ mapped[j] = createRoot(mapper);
563
+ }
564
+ len = newLen;
565
+ } else {
566
+ temp = new Array(newLen);
567
+ tempdisposers = new Array(newLen);
568
+ indexes && (tempIndexes = new Array(newLen));
569
+ for (start = 0, end = Math.min(len, newLen); start < end && items[start] === newItems[start]; start++);
570
+ for (end = len - 1, newEnd = newLen - 1; end >= start && newEnd >= start && items[end] === newItems[newEnd]; end--, newEnd--) {
571
+ temp[newEnd] = mapped[end];
572
+ tempdisposers[newEnd] = disposers[end];
573
+ indexes && (tempIndexes[newEnd] = indexes[end]);
574
+ }
575
+ newIndices = /* @__PURE__ */ new Map();
576
+ newIndicesNext = new Array(newEnd + 1);
577
+ for (j = newEnd; j >= start; j--) {
578
+ item = newItems[j];
579
+ i = newIndices.get(item);
580
+ newIndicesNext[j] = i === void 0 ? -1 : i;
581
+ newIndices.set(item, j);
582
+ }
583
+ for (i = start; i <= end; i++) {
584
+ item = items[i];
585
+ j = newIndices.get(item);
586
+ if (j !== void 0 && j !== -1) {
587
+ temp[j] = mapped[i];
588
+ tempdisposers[j] = disposers[i];
589
+ indexes && (tempIndexes[j] = indexes[i]);
590
+ j = newIndicesNext[j];
591
+ newIndices.set(item, j);
592
+ } else disposers[i]();
593
+ }
594
+ for (j = start; j < newLen; j++) if (j in temp) {
595
+ mapped[j] = temp[j];
596
+ disposers[j] = tempdisposers[j];
597
+ if (indexes) {
598
+ indexes[j] = tempIndexes[j];
599
+ indexes[j](j);
600
+ }
601
+ } else mapped[j] = createRoot(mapper);
602
+ mapped = mapped.slice(0, len = newLen);
603
+ items = newItems.slice(0);
604
+ }
605
+ return mapped;
606
+ });
607
+ function mapper(disposer) {
608
+ disposers[j] = disposer;
609
+ if (indexes) {
610
+ const [s, set] = createSignal(j);
611
+ indexes[j] = set;
612
+ return mapFn(newItems[j], s);
613
+ }
614
+ return mapFn(newItems[j]);
615
+ }
616
+ };
617
+ }
618
+ let hydrationEnabled = false;
619
+ function createComponent(Comp, props) {
620
+ if (hydrationEnabled) {
621
+ if (sharedConfig.context) {
622
+ const c = sharedConfig.context;
623
+ setHydrateContext(nextHydrateContext());
624
+ const r = untrack(() => Comp(props || {}));
625
+ setHydrateContext(c);
626
+ return r;
627
+ }
628
+ }
629
+ return untrack(() => Comp(props || {}));
630
+ }
631
+ const narrowedError = (name) => `Stale read from <${name}>.`;
632
+ function For(props) {
633
+ const fallback = "fallback" in props && { fallback: () => props.fallback };
634
+ return createMemo(mapArray(() => props.each, props.children, fallback || void 0));
635
+ }
636
+ function Show(props) {
637
+ const keyed = props.keyed;
638
+ const conditionValue = createMemo(() => props.when, void 0, void 0);
639
+ const condition = keyed ? conditionValue : createMemo(conditionValue, void 0, { equals: (a, b) => !a === !b });
640
+ return createMemo(() => {
641
+ const c = condition();
642
+ if (c) {
643
+ const child = props.children;
644
+ return typeof child === "function" && child.length > 0 ? untrack(() => child(keyed ? c : () => {
645
+ if (!untrack(condition)) throw narrowedError("Show");
646
+ return conditionValue();
647
+ })) : child;
648
+ }
649
+ return props.fallback;
650
+ }, void 0, void 0);
651
+ }
652
+
653
+ //#endregion
654
+ //#region ../../node_modules/solid-js/web/dist/web.js
655
+ const Aliases = /* @__PURE__ */ Object.assign(Object.create(null), {
656
+ className: "class",
657
+ htmlFor: "for"
658
+ });
659
+ const PropAliases = /* @__PURE__ */ Object.assign(Object.create(null), {
660
+ class: "className",
661
+ novalidate: {
662
+ $: "noValidate",
663
+ FORM: 1
664
+ },
665
+ formnovalidate: {
666
+ $: "formNoValidate",
667
+ BUTTON: 1,
668
+ INPUT: 1
669
+ },
670
+ ismap: {
671
+ $: "isMap",
672
+ IMG: 1
673
+ },
674
+ nomodule: {
675
+ $: "noModule",
676
+ SCRIPT: 1
677
+ },
678
+ playsinline: {
679
+ $: "playsInline",
680
+ VIDEO: 1
681
+ },
682
+ readonly: {
683
+ $: "readOnly",
684
+ INPUT: 1,
685
+ TEXTAREA: 1
686
+ },
687
+ adauctionheaders: {
688
+ $: "adAuctionHeaders",
689
+ IFRAME: 1
690
+ },
691
+ allowfullscreen: {
692
+ $: "allowFullscreen",
693
+ IFRAME: 1
694
+ },
695
+ browsingtopics: {
696
+ $: "browsingTopics",
697
+ IMG: 1
698
+ },
699
+ defaultchecked: {
700
+ $: "defaultChecked",
701
+ INPUT: 1
702
+ },
703
+ defaultmuted: {
704
+ $: "defaultMuted",
705
+ AUDIO: 1,
706
+ VIDEO: 1
707
+ },
708
+ defaultselected: {
709
+ $: "defaultSelected",
710
+ OPTION: 1
711
+ },
712
+ disablepictureinpicture: {
713
+ $: "disablePictureInPicture",
714
+ VIDEO: 1
715
+ },
716
+ disableremoteplayback: {
717
+ $: "disableRemotePlayback",
718
+ AUDIO: 1,
719
+ VIDEO: 1
720
+ },
721
+ preservespitch: {
722
+ $: "preservesPitch",
723
+ AUDIO: 1,
724
+ VIDEO: 1
725
+ },
726
+ shadowrootclonable: {
727
+ $: "shadowRootClonable",
728
+ TEMPLATE: 1
729
+ },
730
+ shadowrootdelegatesfocus: {
731
+ $: "shadowRootDelegatesFocus",
732
+ TEMPLATE: 1
733
+ },
734
+ shadowrootserializable: {
735
+ $: "shadowRootSerializable",
736
+ TEMPLATE: 1
737
+ },
738
+ sharedstoragewritable: {
739
+ $: "sharedStorageWritable",
740
+ IFRAME: 1,
741
+ IMG: 1
742
+ }
743
+ });
744
+ function reconcileArrays(parentNode, a, b) {
745
+ let bLength = b.length, aEnd = a.length, bEnd = bLength, aStart = 0, bStart = 0, after = a[aEnd - 1].nextSibling, map = null;
746
+ while (aStart < aEnd || bStart < bEnd) {
747
+ if (a[aStart] === b[bStart]) {
748
+ aStart++;
749
+ bStart++;
750
+ continue;
751
+ }
752
+ while (a[aEnd - 1] === b[bEnd - 1]) {
753
+ aEnd--;
754
+ bEnd--;
755
+ }
756
+ if (aEnd === aStart) {
757
+ const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart] : after;
758
+ while (bStart < bEnd) parentNode.insertBefore(b[bStart++], node);
759
+ } else if (bEnd === bStart) while (aStart < aEnd) {
760
+ if (!map || !map.has(a[aStart])) a[aStart].remove();
761
+ aStart++;
762
+ }
763
+ else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
764
+ const node = a[--aEnd].nextSibling;
765
+ parentNode.insertBefore(b[bStart++], a[aStart++].nextSibling);
766
+ parentNode.insertBefore(b[--bEnd], node);
767
+ a[aEnd] = b[bEnd];
768
+ } else {
769
+ if (!map) {
770
+ map = /* @__PURE__ */ new Map();
771
+ let i = bStart;
772
+ while (i < bEnd) map.set(b[i], i++);
773
+ }
774
+ const index = map.get(a[aStart]);
775
+ if (index != null) if (bStart < index && index < bEnd) {
776
+ let i = aStart, sequence = 1, t;
777
+ while (++i < aEnd && i < bEnd) {
778
+ if ((t = map.get(a[i])) == null || t !== index + sequence) break;
779
+ sequence++;
780
+ }
781
+ if (sequence > index - bStart) {
782
+ const node = a[aStart];
783
+ while (bStart < index) parentNode.insertBefore(b[bStart++], node);
784
+ } else parentNode.replaceChild(b[bStart++], a[aStart++]);
785
+ } else aStart++;
786
+ else a[aStart++].remove();
787
+ }
788
+ }
789
+ }
790
+ const $$EVENTS = "_$DX_DELEGATE";
791
+ function template(html, isImportNode, isSVG, isMathML) {
792
+ let node;
793
+ const create = () => {
794
+ const t = isMathML ? document.createElementNS("http://www.w3.org/1998/Math/MathML", "template") : document.createElement("template");
795
+ t.innerHTML = html;
796
+ return isSVG ? t.content.firstChild.firstChild : isMathML ? t.firstChild : t.content.firstChild;
797
+ };
798
+ const fn = isImportNode ? () => untrack(() => document.importNode(node || (node = create()), true)) : () => (node || (node = create())).cloneNode(true);
799
+ fn.cloneNode = fn;
800
+ return fn;
801
+ }
802
+ function delegateEvents(eventNames, document$1 = window.document) {
803
+ const e = document$1[$$EVENTS] || (document$1[$$EVENTS] = /* @__PURE__ */ new Set());
804
+ for (let i = 0, l = eventNames.length; i < l; i++) {
805
+ const name = eventNames[i];
806
+ if (!e.has(name)) {
807
+ e.add(name);
808
+ document$1.addEventListener(name, eventHandler);
809
+ }
810
+ }
811
+ }
812
+ function className(node, value) {
813
+ if (isHydrating(node)) return;
814
+ if (value == null) node.removeAttribute("class");
815
+ else node.className = value;
816
+ }
817
+ function insert(parent, accessor, marker, initial) {
818
+ if (marker !== void 0 && !initial) initial = [];
819
+ if (typeof accessor !== "function") return insertExpression(parent, accessor, initial, marker);
820
+ createRenderEffect((current) => insertExpression(parent, accessor(), current, marker), initial);
821
+ }
822
+ function isHydrating(node) {
823
+ return !!sharedConfig.context && !sharedConfig.done && (!node || node.isConnected);
824
+ }
825
+ function eventHandler(e) {
826
+ if (sharedConfig.registry && sharedConfig.events) {
827
+ if (sharedConfig.events.find(([el, ev]) => ev === e)) return;
828
+ }
829
+ let node = e.target;
830
+ const key = `$$${e.type}`;
831
+ const oriTarget = e.target;
832
+ const oriCurrentTarget = e.currentTarget;
833
+ const retarget = (value) => Object.defineProperty(e, "target", {
834
+ configurable: true,
835
+ value
836
+ });
837
+ const handleNode = () => {
838
+ const handler = node[key];
839
+ if (handler && !node.disabled) {
840
+ const data = node[`${key}Data`];
841
+ data !== void 0 ? handler.call(node, data, e) : handler.call(node, e);
842
+ if (e.cancelBubble) return;
843
+ }
844
+ node.host && typeof node.host !== "string" && !node.host._$host && node.contains(e.target) && retarget(node.host);
845
+ return true;
846
+ };
847
+ const walkUpTree = () => {
848
+ while (handleNode() && (node = node._$host || node.parentNode || node.host));
849
+ };
850
+ Object.defineProperty(e, "currentTarget", {
851
+ configurable: true,
852
+ get() {
853
+ return node || document;
854
+ }
855
+ });
856
+ if (sharedConfig.registry && !sharedConfig.done) sharedConfig.done = _$HY.done = true;
857
+ if (e.composedPath) {
858
+ const path = e.composedPath();
859
+ retarget(path[0]);
860
+ for (let i = 0; i < path.length - 2; i++) {
861
+ node = path[i];
862
+ if (!handleNode()) break;
863
+ if (node._$host) {
864
+ node = node._$host;
865
+ walkUpTree();
866
+ break;
867
+ }
868
+ if (node.parentNode === oriCurrentTarget) break;
869
+ }
870
+ } else walkUpTree();
871
+ retarget(oriTarget);
872
+ }
873
+ function insertExpression(parent, value, current, marker, unwrapArray) {
874
+ const hydrating = isHydrating(parent);
875
+ if (hydrating) {
876
+ !current && (current = [...parent.childNodes]);
877
+ let cleaned = [];
878
+ for (let i = 0; i < current.length; i++) {
879
+ const node = current[i];
880
+ if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();
881
+ else cleaned.push(node);
882
+ }
883
+ current = cleaned;
884
+ }
885
+ while (typeof current === "function") current = current();
886
+ if (value === current) return current;
887
+ const t = typeof value, multi = marker !== void 0;
888
+ parent = multi && current[0] && current[0].parentNode || parent;
889
+ if (t === "string" || t === "number") {
890
+ if (hydrating) return current;
891
+ if (t === "number") {
892
+ value = value.toString();
893
+ if (value === current) return current;
894
+ }
895
+ if (multi) {
896
+ let node = current[0];
897
+ if (node && node.nodeType === 3) node.data !== value && (node.data = value);
898
+ else node = document.createTextNode(value);
899
+ current = cleanChildren(parent, current, marker, node);
900
+ } else if (current !== "" && typeof current === "string") current = parent.firstChild.data = value;
901
+ else current = parent.textContent = value;
902
+ } else if (value == null || t === "boolean") {
903
+ if (hydrating) return current;
904
+ current = cleanChildren(parent, current, marker);
905
+ } else if (t === "function") {
906
+ createRenderEffect(() => {
907
+ let v = value();
908
+ while (typeof v === "function") v = v();
909
+ current = insertExpression(parent, v, current, marker);
910
+ });
911
+ return () => current;
912
+ } else if (Array.isArray(value)) {
913
+ const array = [];
914
+ const currentArray = current && Array.isArray(current);
915
+ if (normalizeIncomingArray(array, value, current, unwrapArray)) {
916
+ createRenderEffect(() => current = insertExpression(parent, array, current, marker, true));
917
+ return () => current;
918
+ }
919
+ if (hydrating) {
920
+ if (!array.length) return current;
921
+ if (marker === void 0) return current = [...parent.childNodes];
922
+ let node = array[0];
923
+ if (node.parentNode !== parent) return current;
924
+ const nodes = [node];
925
+ while ((node = node.nextSibling) !== marker) nodes.push(node);
926
+ return current = nodes;
927
+ }
928
+ if (array.length === 0) {
929
+ current = cleanChildren(parent, current, marker);
930
+ if (multi) return current;
931
+ } else if (currentArray) if (current.length === 0) appendNodes(parent, array, marker);
932
+ else reconcileArrays(parent, current, array);
933
+ else {
934
+ current && cleanChildren(parent);
935
+ appendNodes(parent, array);
936
+ }
937
+ current = array;
938
+ } else if (value.nodeType) {
939
+ if (hydrating && value.parentNode) return current = multi ? [value] : value;
940
+ if (Array.isArray(current)) {
941
+ if (multi) return current = cleanChildren(parent, current, marker, value);
942
+ cleanChildren(parent, current, null, value);
943
+ } else if (current == null || current === "" || !parent.firstChild) parent.appendChild(value);
944
+ else parent.replaceChild(value, parent.firstChild);
945
+ current = value;
946
+ }
947
+ return current;
948
+ }
949
+ function normalizeIncomingArray(normalized, array, current, unwrap) {
950
+ let dynamic = false;
951
+ for (let i = 0, len = array.length; i < len; i++) {
952
+ let item = array[i], prev = current && current[normalized.length], t;
953
+ if (item == null || item === true || item === false);
954
+ else if ((t = typeof item) === "object" && item.nodeType) normalized.push(item);
955
+ else if (Array.isArray(item)) dynamic = normalizeIncomingArray(normalized, item, prev) || dynamic;
956
+ else if (t === "function") if (unwrap) {
957
+ while (typeof item === "function") item = item();
958
+ dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
959
+ } else {
960
+ normalized.push(item);
961
+ dynamic = true;
962
+ }
963
+ else {
964
+ const value = String(item);
965
+ if (prev && prev.nodeType === 3 && prev.data === value) normalized.push(prev);
966
+ else normalized.push(document.createTextNode(value));
967
+ }
968
+ }
969
+ return dynamic;
970
+ }
971
+ function appendNodes(parent, array, marker = null) {
972
+ for (let i = 0, len = array.length; i < len; i++) parent.insertBefore(array[i], marker);
973
+ }
974
+ function cleanChildren(parent, current, marker, replacement) {
975
+ if (marker === void 0) return parent.textContent = "";
976
+ const node = replacement || document.createTextNode("");
977
+ if (current.length) {
978
+ let inserted = false;
979
+ for (let i = current.length - 1; i >= 0; i--) {
980
+ const el = current[i];
981
+ if (node !== el) {
982
+ const isParent = el.parentNode === parent;
983
+ if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
984
+ else isParent && el.remove();
985
+ } else inserted = true;
986
+ }
987
+ } else parent.insertBefore(node, marker);
988
+ return [node];
989
+ }
990
+
991
+ //#endregion
992
+ //#region ../../node_modules/tailwind-merge/dist/bundle-mjs.mjs
993
+ /**
994
+ * Concatenates two arrays faster than the array spread operator.
995
+ */
996
+ const concatArrays = (array1, array2) => {
997
+ const combinedArray = new Array(array1.length + array2.length);
998
+ for (let i = 0; i < array1.length; i++) combinedArray[i] = array1[i];
999
+ for (let i = 0; i < array2.length; i++) combinedArray[array1.length + i] = array2[i];
1000
+ return combinedArray;
1001
+ };
1002
+ const createClassValidatorObject = (classGroupId, validator) => ({
1003
+ classGroupId,
1004
+ validator
1005
+ });
1006
+ const createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators = null, classGroupId) => ({
1007
+ nextPart,
1008
+ validators,
1009
+ classGroupId
1010
+ });
1011
+ const CLASS_PART_SEPARATOR = "-";
1012
+ const EMPTY_CONFLICTS = [];
1013
+ const ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
1014
+ const createClassGroupUtils = (config) => {
1015
+ const classMap = createClassMap(config);
1016
+ const { conflictingClassGroups, conflictingClassGroupModifiers } = config;
1017
+ const getClassGroupId = (className$1) => {
1018
+ if (className$1.startsWith("[") && className$1.endsWith("]")) return getGroupIdForArbitraryProperty(className$1);
1019
+ const classParts = className$1.split(CLASS_PART_SEPARATOR);
1020
+ return getGroupRecursive(classParts, classParts[0] === "" && classParts.length > 1 ? 1 : 0, classMap);
1021
+ };
1022
+ const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
1023
+ if (hasPostfixModifier) {
1024
+ const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
1025
+ const baseConflicts = conflictingClassGroups[classGroupId];
1026
+ if (modifierConflicts) {
1027
+ if (baseConflicts) return concatArrays(baseConflicts, modifierConflicts);
1028
+ return modifierConflicts;
1029
+ }
1030
+ return baseConflicts || EMPTY_CONFLICTS;
1031
+ }
1032
+ return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
1033
+ };
1034
+ return {
1035
+ getClassGroupId,
1036
+ getConflictingClassGroupIds
1037
+ };
1038
+ };
1039
+ const getGroupRecursive = (classParts, startIndex, classPartObject) => {
1040
+ if (classParts.length - startIndex === 0) return classPartObject.classGroupId;
1041
+ const currentClassPart = classParts[startIndex];
1042
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
1043
+ if (nextClassPartObject) {
1044
+ const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
1045
+ if (result) return result;
1046
+ }
1047
+ const validators = classPartObject.validators;
1048
+ if (validators === null) return;
1049
+ const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
1050
+ const validatorsLength = validators.length;
1051
+ for (let i = 0; i < validatorsLength; i++) {
1052
+ const validatorObj = validators[i];
1053
+ if (validatorObj.validator(classRest)) return validatorObj.classGroupId;
1054
+ }
1055
+ };
1056
+ /**
1057
+ * Get the class group ID for an arbitrary property.
1058
+ *
1059
+ * @param className - The class name to get the group ID for. Is expected to be string starting with `[` and ending with `]`.
1060
+ */
1061
+ const getGroupIdForArbitraryProperty = (className$1) => className$1.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
1062
+ const content = className$1.slice(1, -1);
1063
+ const colonIndex = content.indexOf(":");
1064
+ const property = content.slice(0, colonIndex);
1065
+ return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
1066
+ })();
1067
+ /**
1068
+ * Exported for testing only
1069
+ */
1070
+ const createClassMap = (config) => {
1071
+ const { theme, classGroups } = config;
1072
+ return processClassGroups(classGroups, theme);
1073
+ };
1074
+ const processClassGroups = (classGroups, theme) => {
1075
+ const classMap = createClassPartObject();
1076
+ for (const classGroupId in classGroups) {
1077
+ const group = classGroups[classGroupId];
1078
+ processClassesRecursively(group, classMap, classGroupId, theme);
1079
+ }
1080
+ return classMap;
1081
+ };
1082
+ const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
1083
+ const len = classGroup.length;
1084
+ for (let i = 0; i < len; i++) {
1085
+ const classDefinition = classGroup[i];
1086
+ processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
1087
+ }
1088
+ };
1089
+ const processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
1090
+ if (typeof classDefinition === "string") {
1091
+ processStringDefinition(classDefinition, classPartObject, classGroupId);
1092
+ return;
1093
+ }
1094
+ if (typeof classDefinition === "function") {
1095
+ processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
1096
+ return;
1097
+ }
1098
+ processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
1099
+ };
1100
+ const processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
1101
+ const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
1102
+ classPartObjectToEdit.classGroupId = classGroupId;
1103
+ };
1104
+ const processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
1105
+ if (isThemeGetter(classDefinition)) {
1106
+ processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
1107
+ return;
1108
+ }
1109
+ if (classPartObject.validators === null) classPartObject.validators = [];
1110
+ classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
1111
+ };
1112
+ const processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
1113
+ const entries = Object.entries(classDefinition);
1114
+ const len = entries.length;
1115
+ for (let i = 0; i < len; i++) {
1116
+ const [key, value] = entries[i];
1117
+ processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
1118
+ }
1119
+ };
1120
+ const getPart = (classPartObject, path) => {
1121
+ let current = classPartObject;
1122
+ const parts = path.split(CLASS_PART_SEPARATOR);
1123
+ const len = parts.length;
1124
+ for (let i = 0; i < len; i++) {
1125
+ const part = parts[i];
1126
+ let next = current.nextPart.get(part);
1127
+ if (!next) {
1128
+ next = createClassPartObject();
1129
+ current.nextPart.set(part, next);
1130
+ }
1131
+ current = next;
1132
+ }
1133
+ return current;
1134
+ };
1135
+ const isThemeGetter = (func) => "isThemeGetter" in func && func.isThemeGetter === true;
1136
+ const createLruCache = (maxCacheSize) => {
1137
+ if (maxCacheSize < 1) return {
1138
+ get: () => void 0,
1139
+ set: () => {}
1140
+ };
1141
+ let cacheSize = 0;
1142
+ let cache = Object.create(null);
1143
+ let previousCache = Object.create(null);
1144
+ const update = (key, value) => {
1145
+ cache[key] = value;
1146
+ cacheSize++;
1147
+ if (cacheSize > maxCacheSize) {
1148
+ cacheSize = 0;
1149
+ previousCache = cache;
1150
+ cache = Object.create(null);
1151
+ }
1152
+ };
1153
+ return {
1154
+ get(key) {
1155
+ let value = cache[key];
1156
+ if (value !== void 0) return value;
1157
+ if ((value = previousCache[key]) !== void 0) {
1158
+ update(key, value);
1159
+ return value;
1160
+ }
1161
+ },
1162
+ set(key, value) {
1163
+ if (key in cache) cache[key] = value;
1164
+ else update(key, value);
1165
+ }
1166
+ };
1167
+ };
1168
+ const IMPORTANT_MODIFIER = "!";
1169
+ const MODIFIER_SEPARATOR = ":";
1170
+ const EMPTY_MODIFIERS = [];
1171
+ const createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({
1172
+ modifiers,
1173
+ hasImportantModifier,
1174
+ baseClassName,
1175
+ maybePostfixModifierPosition,
1176
+ isExternal
1177
+ });
1178
+ const createParseClassName = (config) => {
1179
+ const { prefix, experimentalParseClassName } = config;
1180
+ /**
1181
+ * Parse class name into parts.
1182
+ *
1183
+ * Inspired by `splitAtTopLevelOnly` used in Tailwind CSS
1184
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
1185
+ */
1186
+ let parseClassName = (className$1) => {
1187
+ const modifiers = [];
1188
+ let bracketDepth = 0;
1189
+ let parenDepth = 0;
1190
+ let modifierStart = 0;
1191
+ let postfixModifierPosition;
1192
+ const len = className$1.length;
1193
+ for (let index = 0; index < len; index++) {
1194
+ const currentCharacter = className$1[index];
1195
+ if (bracketDepth === 0 && parenDepth === 0) {
1196
+ if (currentCharacter === MODIFIER_SEPARATOR) {
1197
+ modifiers.push(className$1.slice(modifierStart, index));
1198
+ modifierStart = index + 1;
1199
+ continue;
1200
+ }
1201
+ if (currentCharacter === "/") {
1202
+ postfixModifierPosition = index;
1203
+ continue;
1204
+ }
1205
+ }
1206
+ if (currentCharacter === "[") bracketDepth++;
1207
+ else if (currentCharacter === "]") bracketDepth--;
1208
+ else if (currentCharacter === "(") parenDepth++;
1209
+ else if (currentCharacter === ")") parenDepth--;
1210
+ }
1211
+ const baseClassNameWithImportantModifier = modifiers.length === 0 ? className$1 : className$1.slice(modifierStart);
1212
+ let baseClassName = baseClassNameWithImportantModifier;
1213
+ let hasImportantModifier = false;
1214
+ if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
1215
+ baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
1216
+ hasImportantModifier = true;
1217
+ } else if (baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)) {
1218
+ baseClassName = baseClassNameWithImportantModifier.slice(1);
1219
+ hasImportantModifier = true;
1220
+ }
1221
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
1222
+ return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
1223
+ };
1224
+ if (prefix) {
1225
+ const fullPrefix = prefix + MODIFIER_SEPARATOR;
1226
+ const parseClassNameOriginal = parseClassName;
1227
+ parseClassName = (className$1) => className$1.startsWith(fullPrefix) ? parseClassNameOriginal(className$1.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className$1, void 0, true);
1228
+ }
1229
+ if (experimentalParseClassName) {
1230
+ const parseClassNameOriginal = parseClassName;
1231
+ parseClassName = (className$1) => experimentalParseClassName({
1232
+ className: className$1,
1233
+ parseClassName: parseClassNameOriginal
1234
+ });
1235
+ }
1236
+ return parseClassName;
1237
+ };
1238
+ /**
1239
+ * Sorts modifiers according to following schema:
1240
+ * - Predefined modifiers are sorted alphabetically
1241
+ * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
1242
+ */
1243
+ const createSortModifiers = (config) => {
1244
+ const modifierWeights = /* @__PURE__ */ new Map();
1245
+ config.orderSensitiveModifiers.forEach((mod, index) => {
1246
+ modifierWeights.set(mod, 1e6 + index);
1247
+ });
1248
+ return (modifiers) => {
1249
+ const result = [];
1250
+ let currentSegment = [];
1251
+ for (let i = 0; i < modifiers.length; i++) {
1252
+ const modifier = modifiers[i];
1253
+ const isArbitrary = modifier[0] === "[";
1254
+ const isOrderSensitive = modifierWeights.has(modifier);
1255
+ if (isArbitrary || isOrderSensitive) {
1256
+ if (currentSegment.length > 0) {
1257
+ currentSegment.sort();
1258
+ result.push(...currentSegment);
1259
+ currentSegment = [];
1260
+ }
1261
+ result.push(modifier);
1262
+ } else currentSegment.push(modifier);
1263
+ }
1264
+ if (currentSegment.length > 0) {
1265
+ currentSegment.sort();
1266
+ result.push(...currentSegment);
1267
+ }
1268
+ return result;
1269
+ };
1270
+ };
1271
+ const createConfigUtils = (config) => ({
1272
+ cache: createLruCache(config.cacheSize),
1273
+ parseClassName: createParseClassName(config),
1274
+ sortModifiers: createSortModifiers(config),
1275
+ ...createClassGroupUtils(config)
1276
+ });
1277
+ const SPLIT_CLASSES_REGEX = /\s+/;
1278
+ const mergeClassList = (classList, configUtils) => {
1279
+ const { parseClassName, getClassGroupId, getConflictingClassGroupIds, sortModifiers } = configUtils;
1280
+ /**
1281
+ * Set of classGroupIds in following format:
1282
+ * `{importantModifier}{variantModifiers}{classGroupId}`
1283
+ * @example 'float'
1284
+ * @example 'hover:focus:bg-color'
1285
+ * @example 'md:!pr'
1286
+ */
1287
+ const classGroupsInConflict = [];
1288
+ const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
1289
+ let result = "";
1290
+ for (let index = classNames.length - 1; index >= 0; index -= 1) {
1291
+ const originalClassName = classNames[index];
1292
+ const { isExternal, modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition } = parseClassName(originalClassName);
1293
+ if (isExternal) {
1294
+ result = originalClassName + (result.length > 0 ? " " + result : result);
1295
+ continue;
1296
+ }
1297
+ let hasPostfixModifier = !!maybePostfixModifierPosition;
1298
+ let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
1299
+ if (!classGroupId) {
1300
+ if (!hasPostfixModifier) {
1301
+ result = originalClassName + (result.length > 0 ? " " + result : result);
1302
+ continue;
1303
+ }
1304
+ classGroupId = getClassGroupId(baseClassName);
1305
+ if (!classGroupId) {
1306
+ result = originalClassName + (result.length > 0 ? " " + result : result);
1307
+ continue;
1308
+ }
1309
+ hasPostfixModifier = false;
1310
+ }
1311
+ const variantModifier = modifiers.length === 0 ? "" : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(":");
1312
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
1313
+ const classId = modifierId + classGroupId;
1314
+ if (classGroupsInConflict.indexOf(classId) > -1) continue;
1315
+ classGroupsInConflict.push(classId);
1316
+ const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
1317
+ for (let i = 0; i < conflictGroups.length; ++i) {
1318
+ const group = conflictGroups[i];
1319
+ classGroupsInConflict.push(modifierId + group);
1320
+ }
1321
+ result = originalClassName + (result.length > 0 ? " " + result : result);
1322
+ }
1323
+ return result;
1324
+ };
1325
+ /**
1326
+ * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
1327
+ *
1328
+ * Specifically:
1329
+ * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
1330
+ * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
1331
+ *
1332
+ * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
1333
+ */
1334
+ const twJoin = (...classLists) => {
1335
+ let index = 0;
1336
+ let argument;
1337
+ let resolvedValue;
1338
+ let string = "";
1339
+ while (index < classLists.length) if (argument = classLists[index++]) {
1340
+ if (resolvedValue = toValue(argument)) {
1341
+ string && (string += " ");
1342
+ string += resolvedValue;
1343
+ }
1344
+ }
1345
+ return string;
1346
+ };
1347
+ const toValue = (mix) => {
1348
+ if (typeof mix === "string") return mix;
1349
+ let resolvedValue;
1350
+ let string = "";
1351
+ for (let k = 0; k < mix.length; k++) if (mix[k]) {
1352
+ if (resolvedValue = toValue(mix[k])) {
1353
+ string && (string += " ");
1354
+ string += resolvedValue;
1355
+ }
1356
+ }
1357
+ return string;
1358
+ };
1359
+ const createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
1360
+ let configUtils;
1361
+ let cacheGet;
1362
+ let cacheSet;
1363
+ let functionToCall;
1364
+ const initTailwindMerge = (classList) => {
1365
+ configUtils = createConfigUtils(createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst()));
1366
+ cacheGet = configUtils.cache.get;
1367
+ cacheSet = configUtils.cache.set;
1368
+ functionToCall = tailwindMerge;
1369
+ return tailwindMerge(classList);
1370
+ };
1371
+ const tailwindMerge = (classList) => {
1372
+ const cachedResult = cacheGet(classList);
1373
+ if (cachedResult) return cachedResult;
1374
+ const result = mergeClassList(classList, configUtils);
1375
+ cacheSet(classList, result);
1376
+ return result;
1377
+ };
1378
+ functionToCall = initTailwindMerge;
1379
+ return (...args) => functionToCall(twJoin(...args));
1380
+ };
1381
+ const fallbackThemeArr = [];
1382
+ const fromTheme = (key) => {
1383
+ const themeGetter = (theme) => theme[key] || fallbackThemeArr;
1384
+ themeGetter.isThemeGetter = true;
1385
+ return themeGetter;
1386
+ };
1387
+ const arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
1388
+ const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
1389
+ const fractionRegex = /^\d+\/\d+$/;
1390
+ const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
1391
+ const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
1392
+ const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
1393
+ const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
1394
+ const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
1395
+ const isFraction = (value) => fractionRegex.test(value);
1396
+ const isNumber = (value) => !!value && !Number.isNaN(Number(value));
1397
+ const isInteger = (value) => !!value && Number.isInteger(Number(value));
1398
+ const isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
1399
+ const isTshirtSize = (value) => tshirtUnitRegex.test(value);
1400
+ const isAny = () => true;
1401
+ const isLengthOnly = (value) => lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
1402
+ const isNever = () => false;
1403
+ const isShadow = (value) => shadowRegex.test(value);
1404
+ const isImage = (value) => imageRegex.test(value);
1405
+ const isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
1406
+ const isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
1407
+ const isArbitraryValue = (value) => arbitraryValueRegex.test(value);
1408
+ const isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
1409
+ const isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
1410
+ const isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
1411
+ const isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
1412
+ const isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
1413
+ const isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
1414
+ const isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
1415
+ const isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
1416
+ const isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
1417
+ const isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
1418
+ const isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
1419
+ const isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
1420
+ const getIsArbitraryValue = (value, testLabel, testValue) => {
1421
+ const result = arbitraryValueRegex.exec(value);
1422
+ if (result) {
1423
+ if (result[1]) return testLabel(result[1]);
1424
+ return testValue(result[2]);
1425
+ }
1426
+ return false;
1427
+ };
1428
+ const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
1429
+ const result = arbitraryVariableRegex.exec(value);
1430
+ if (result) {
1431
+ if (result[1]) return testLabel(result[1]);
1432
+ return shouldMatchNoLabel;
1433
+ }
1434
+ return false;
1435
+ };
1436
+ const isLabelPosition = (label) => label === "position" || label === "percentage";
1437
+ const isLabelImage = (label) => label === "image" || label === "url";
1438
+ const isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
1439
+ const isLabelLength = (label) => label === "length";
1440
+ const isLabelNumber = (label) => label === "number";
1441
+ const isLabelFamilyName = (label) => label === "family-name";
1442
+ const isLabelShadow = (label) => label === "shadow";
1443
+ const getDefaultConfig = () => {
1444
+ /**
1445
+ * Theme getters for theme variable namespaces
1446
+ * @see https://tailwindcss.com/docs/theme#theme-variable-namespaces
1447
+ */
1448
+ const themeColor = fromTheme("color");
1449
+ const themeFont = fromTheme("font");
1450
+ const themeText = fromTheme("text");
1451
+ const themeFontWeight = fromTheme("font-weight");
1452
+ const themeTracking = fromTheme("tracking");
1453
+ const themeLeading = fromTheme("leading");
1454
+ const themeBreakpoint = fromTheme("breakpoint");
1455
+ const themeContainer = fromTheme("container");
1456
+ const themeSpacing = fromTheme("spacing");
1457
+ const themeRadius = fromTheme("radius");
1458
+ const themeShadow = fromTheme("shadow");
1459
+ const themeInsetShadow = fromTheme("inset-shadow");
1460
+ const themeTextShadow = fromTheme("text-shadow");
1461
+ const themeDropShadow = fromTheme("drop-shadow");
1462
+ const themeBlur = fromTheme("blur");
1463
+ const themePerspective = fromTheme("perspective");
1464
+ const themeAspect = fromTheme("aspect");
1465
+ const themeEase = fromTheme("ease");
1466
+ const themeAnimate = fromTheme("animate");
1467
+ /**
1468
+ * Helpers to avoid repeating the same scales
1469
+ *
1470
+ * We use functions that create a new array every time they're called instead of static arrays.
1471
+ * This ensures that users who modify any scale by mutating the array (e.g. with `array.push(element)`) don't accidentally mutate arrays in other parts of the config.
1472
+ */
1473
+ const scaleBreak = () => [
1474
+ "auto",
1475
+ "avoid",
1476
+ "all",
1477
+ "avoid-page",
1478
+ "page",
1479
+ "left",
1480
+ "right",
1481
+ "column"
1482
+ ];
1483
+ const scalePosition = () => [
1484
+ "center",
1485
+ "top",
1486
+ "bottom",
1487
+ "left",
1488
+ "right",
1489
+ "top-left",
1490
+ "left-top",
1491
+ "top-right",
1492
+ "right-top",
1493
+ "bottom-right",
1494
+ "right-bottom",
1495
+ "bottom-left",
1496
+ "left-bottom"
1497
+ ];
1498
+ const scalePositionWithArbitrary = () => [
1499
+ ...scalePosition(),
1500
+ isArbitraryVariable,
1501
+ isArbitraryValue
1502
+ ];
1503
+ const scaleOverflow = () => [
1504
+ "auto",
1505
+ "hidden",
1506
+ "clip",
1507
+ "visible",
1508
+ "scroll"
1509
+ ];
1510
+ const scaleOverscroll = () => [
1511
+ "auto",
1512
+ "contain",
1513
+ "none"
1514
+ ];
1515
+ const scaleUnambiguousSpacing = () => [
1516
+ isArbitraryVariable,
1517
+ isArbitraryValue,
1518
+ themeSpacing
1519
+ ];
1520
+ const scaleInset = () => [
1521
+ isFraction,
1522
+ "full",
1523
+ "auto",
1524
+ ...scaleUnambiguousSpacing()
1525
+ ];
1526
+ const scaleGridTemplateColsRows = () => [
1527
+ isInteger,
1528
+ "none",
1529
+ "subgrid",
1530
+ isArbitraryVariable,
1531
+ isArbitraryValue
1532
+ ];
1533
+ const scaleGridColRowStartAndEnd = () => [
1534
+ "auto",
1535
+ { span: [
1536
+ "full",
1537
+ isInteger,
1538
+ isArbitraryVariable,
1539
+ isArbitraryValue
1540
+ ] },
1541
+ isInteger,
1542
+ isArbitraryVariable,
1543
+ isArbitraryValue
1544
+ ];
1545
+ const scaleGridColRowStartOrEnd = () => [
1546
+ isInteger,
1547
+ "auto",
1548
+ isArbitraryVariable,
1549
+ isArbitraryValue
1550
+ ];
1551
+ const scaleGridAutoColsRows = () => [
1552
+ "auto",
1553
+ "min",
1554
+ "max",
1555
+ "fr",
1556
+ isArbitraryVariable,
1557
+ isArbitraryValue
1558
+ ];
1559
+ const scaleAlignPrimaryAxis = () => [
1560
+ "start",
1561
+ "end",
1562
+ "center",
1563
+ "between",
1564
+ "around",
1565
+ "evenly",
1566
+ "stretch",
1567
+ "baseline",
1568
+ "center-safe",
1569
+ "end-safe"
1570
+ ];
1571
+ const scaleAlignSecondaryAxis = () => [
1572
+ "start",
1573
+ "end",
1574
+ "center",
1575
+ "stretch",
1576
+ "center-safe",
1577
+ "end-safe"
1578
+ ];
1579
+ const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
1580
+ const scaleSizing = () => [
1581
+ isFraction,
1582
+ "auto",
1583
+ "full",
1584
+ "dvw",
1585
+ "dvh",
1586
+ "lvw",
1587
+ "lvh",
1588
+ "svw",
1589
+ "svh",
1590
+ "min",
1591
+ "max",
1592
+ "fit",
1593
+ ...scaleUnambiguousSpacing()
1594
+ ];
1595
+ const scaleColor = () => [
1596
+ themeColor,
1597
+ isArbitraryVariable,
1598
+ isArbitraryValue
1599
+ ];
1600
+ const scaleBgPosition = () => [
1601
+ ...scalePosition(),
1602
+ isArbitraryVariablePosition,
1603
+ isArbitraryPosition,
1604
+ { position: [isArbitraryVariable, isArbitraryValue] }
1605
+ ];
1606
+ const scaleBgRepeat = () => ["no-repeat", { repeat: [
1607
+ "",
1608
+ "x",
1609
+ "y",
1610
+ "space",
1611
+ "round"
1612
+ ] }];
1613
+ const scaleBgSize = () => [
1614
+ "auto",
1615
+ "cover",
1616
+ "contain",
1617
+ isArbitraryVariableSize,
1618
+ isArbitrarySize,
1619
+ { size: [isArbitraryVariable, isArbitraryValue] }
1620
+ ];
1621
+ const scaleGradientStopPosition = () => [
1622
+ isPercent,
1623
+ isArbitraryVariableLength,
1624
+ isArbitraryLength
1625
+ ];
1626
+ const scaleRadius = () => [
1627
+ "",
1628
+ "none",
1629
+ "full",
1630
+ themeRadius,
1631
+ isArbitraryVariable,
1632
+ isArbitraryValue
1633
+ ];
1634
+ const scaleBorderWidth = () => [
1635
+ "",
1636
+ isNumber,
1637
+ isArbitraryVariableLength,
1638
+ isArbitraryLength
1639
+ ];
1640
+ const scaleLineStyle = () => [
1641
+ "solid",
1642
+ "dashed",
1643
+ "dotted",
1644
+ "double"
1645
+ ];
1646
+ const scaleBlendMode = () => [
1647
+ "normal",
1648
+ "multiply",
1649
+ "screen",
1650
+ "overlay",
1651
+ "darken",
1652
+ "lighten",
1653
+ "color-dodge",
1654
+ "color-burn",
1655
+ "hard-light",
1656
+ "soft-light",
1657
+ "difference",
1658
+ "exclusion",
1659
+ "hue",
1660
+ "saturation",
1661
+ "color",
1662
+ "luminosity"
1663
+ ];
1664
+ const scaleMaskImagePosition = () => [
1665
+ isNumber,
1666
+ isPercent,
1667
+ isArbitraryVariablePosition,
1668
+ isArbitraryPosition
1669
+ ];
1670
+ const scaleBlur = () => [
1671
+ "",
1672
+ "none",
1673
+ themeBlur,
1674
+ isArbitraryVariable,
1675
+ isArbitraryValue
1676
+ ];
1677
+ const scaleRotate = () => [
1678
+ "none",
1679
+ isNumber,
1680
+ isArbitraryVariable,
1681
+ isArbitraryValue
1682
+ ];
1683
+ const scaleScale = () => [
1684
+ "none",
1685
+ isNumber,
1686
+ isArbitraryVariable,
1687
+ isArbitraryValue
1688
+ ];
1689
+ const scaleSkew = () => [
1690
+ isNumber,
1691
+ isArbitraryVariable,
1692
+ isArbitraryValue
1693
+ ];
1694
+ const scaleTranslate = () => [
1695
+ isFraction,
1696
+ "full",
1697
+ ...scaleUnambiguousSpacing()
1698
+ ];
1699
+ return {
1700
+ cacheSize: 500,
1701
+ theme: {
1702
+ animate: [
1703
+ "spin",
1704
+ "ping",
1705
+ "pulse",
1706
+ "bounce"
1707
+ ],
1708
+ aspect: ["video"],
1709
+ blur: [isTshirtSize],
1710
+ breakpoint: [isTshirtSize],
1711
+ color: [isAny],
1712
+ container: [isTshirtSize],
1713
+ "drop-shadow": [isTshirtSize],
1714
+ ease: [
1715
+ "in",
1716
+ "out",
1717
+ "in-out"
1718
+ ],
1719
+ font: [isAnyNonArbitrary],
1720
+ "font-weight": [
1721
+ "thin",
1722
+ "extralight",
1723
+ "light",
1724
+ "normal",
1725
+ "medium",
1726
+ "semibold",
1727
+ "bold",
1728
+ "extrabold",
1729
+ "black"
1730
+ ],
1731
+ "inset-shadow": [isTshirtSize],
1732
+ leading: [
1733
+ "none",
1734
+ "tight",
1735
+ "snug",
1736
+ "normal",
1737
+ "relaxed",
1738
+ "loose"
1739
+ ],
1740
+ perspective: [
1741
+ "dramatic",
1742
+ "near",
1743
+ "normal",
1744
+ "midrange",
1745
+ "distant",
1746
+ "none"
1747
+ ],
1748
+ radius: [isTshirtSize],
1749
+ shadow: [isTshirtSize],
1750
+ spacing: ["px", isNumber],
1751
+ text: [isTshirtSize],
1752
+ "text-shadow": [isTshirtSize],
1753
+ tracking: [
1754
+ "tighter",
1755
+ "tight",
1756
+ "normal",
1757
+ "wide",
1758
+ "wider",
1759
+ "widest"
1760
+ ]
1761
+ },
1762
+ classGroups: {
1763
+ aspect: [{ aspect: [
1764
+ "auto",
1765
+ "square",
1766
+ isFraction,
1767
+ isArbitraryValue,
1768
+ isArbitraryVariable,
1769
+ themeAspect
1770
+ ] }],
1771
+ container: ["container"],
1772
+ columns: [{ columns: [
1773
+ isNumber,
1774
+ isArbitraryValue,
1775
+ isArbitraryVariable,
1776
+ themeContainer
1777
+ ] }],
1778
+ "break-after": [{ "break-after": scaleBreak() }],
1779
+ "break-before": [{ "break-before": scaleBreak() }],
1780
+ "break-inside": [{ "break-inside": [
1781
+ "auto",
1782
+ "avoid",
1783
+ "avoid-page",
1784
+ "avoid-column"
1785
+ ] }],
1786
+ "box-decoration": [{ "box-decoration": ["slice", "clone"] }],
1787
+ box: [{ box: ["border", "content"] }],
1788
+ display: [
1789
+ "block",
1790
+ "inline-block",
1791
+ "inline",
1792
+ "flex",
1793
+ "inline-flex",
1794
+ "table",
1795
+ "inline-table",
1796
+ "table-caption",
1797
+ "table-cell",
1798
+ "table-column",
1799
+ "table-column-group",
1800
+ "table-footer-group",
1801
+ "table-header-group",
1802
+ "table-row-group",
1803
+ "table-row",
1804
+ "flow-root",
1805
+ "grid",
1806
+ "inline-grid",
1807
+ "contents",
1808
+ "list-item",
1809
+ "hidden"
1810
+ ],
1811
+ sr: ["sr-only", "not-sr-only"],
1812
+ float: [{ float: [
1813
+ "right",
1814
+ "left",
1815
+ "none",
1816
+ "start",
1817
+ "end"
1818
+ ] }],
1819
+ clear: [{ clear: [
1820
+ "left",
1821
+ "right",
1822
+ "both",
1823
+ "none",
1824
+ "start",
1825
+ "end"
1826
+ ] }],
1827
+ isolation: ["isolate", "isolation-auto"],
1828
+ "object-fit": [{ object: [
1829
+ "contain",
1830
+ "cover",
1831
+ "fill",
1832
+ "none",
1833
+ "scale-down"
1834
+ ] }],
1835
+ "object-position": [{ object: scalePositionWithArbitrary() }],
1836
+ overflow: [{ overflow: scaleOverflow() }],
1837
+ "overflow-x": [{ "overflow-x": scaleOverflow() }],
1838
+ "overflow-y": [{ "overflow-y": scaleOverflow() }],
1839
+ overscroll: [{ overscroll: scaleOverscroll() }],
1840
+ "overscroll-x": [{ "overscroll-x": scaleOverscroll() }],
1841
+ "overscroll-y": [{ "overscroll-y": scaleOverscroll() }],
1842
+ position: [
1843
+ "static",
1844
+ "fixed",
1845
+ "absolute",
1846
+ "relative",
1847
+ "sticky"
1848
+ ],
1849
+ inset: [{ inset: scaleInset() }],
1850
+ "inset-x": [{ "inset-x": scaleInset() }],
1851
+ "inset-y": [{ "inset-y": scaleInset() }],
1852
+ start: [{ start: scaleInset() }],
1853
+ end: [{ end: scaleInset() }],
1854
+ top: [{ top: scaleInset() }],
1855
+ right: [{ right: scaleInset() }],
1856
+ bottom: [{ bottom: scaleInset() }],
1857
+ left: [{ left: scaleInset() }],
1858
+ visibility: [
1859
+ "visible",
1860
+ "invisible",
1861
+ "collapse"
1862
+ ],
1863
+ z: [{ z: [
1864
+ isInteger,
1865
+ "auto",
1866
+ isArbitraryVariable,
1867
+ isArbitraryValue
1868
+ ] }],
1869
+ basis: [{ basis: [
1870
+ isFraction,
1871
+ "full",
1872
+ "auto",
1873
+ themeContainer,
1874
+ ...scaleUnambiguousSpacing()
1875
+ ] }],
1876
+ "flex-direction": [{ flex: [
1877
+ "row",
1878
+ "row-reverse",
1879
+ "col",
1880
+ "col-reverse"
1881
+ ] }],
1882
+ "flex-wrap": [{ flex: [
1883
+ "nowrap",
1884
+ "wrap",
1885
+ "wrap-reverse"
1886
+ ] }],
1887
+ flex: [{ flex: [
1888
+ isNumber,
1889
+ isFraction,
1890
+ "auto",
1891
+ "initial",
1892
+ "none",
1893
+ isArbitraryValue
1894
+ ] }],
1895
+ grow: [{ grow: [
1896
+ "",
1897
+ isNumber,
1898
+ isArbitraryVariable,
1899
+ isArbitraryValue
1900
+ ] }],
1901
+ shrink: [{ shrink: [
1902
+ "",
1903
+ isNumber,
1904
+ isArbitraryVariable,
1905
+ isArbitraryValue
1906
+ ] }],
1907
+ order: [{ order: [
1908
+ isInteger,
1909
+ "first",
1910
+ "last",
1911
+ "none",
1912
+ isArbitraryVariable,
1913
+ isArbitraryValue
1914
+ ] }],
1915
+ "grid-cols": [{ "grid-cols": scaleGridTemplateColsRows() }],
1916
+ "col-start-end": [{ col: scaleGridColRowStartAndEnd() }],
1917
+ "col-start": [{ "col-start": scaleGridColRowStartOrEnd() }],
1918
+ "col-end": [{ "col-end": scaleGridColRowStartOrEnd() }],
1919
+ "grid-rows": [{ "grid-rows": scaleGridTemplateColsRows() }],
1920
+ "row-start-end": [{ row: scaleGridColRowStartAndEnd() }],
1921
+ "row-start": [{ "row-start": scaleGridColRowStartOrEnd() }],
1922
+ "row-end": [{ "row-end": scaleGridColRowStartOrEnd() }],
1923
+ "grid-flow": [{ "grid-flow": [
1924
+ "row",
1925
+ "col",
1926
+ "dense",
1927
+ "row-dense",
1928
+ "col-dense"
1929
+ ] }],
1930
+ "auto-cols": [{ "auto-cols": scaleGridAutoColsRows() }],
1931
+ "auto-rows": [{ "auto-rows": scaleGridAutoColsRows() }],
1932
+ gap: [{ gap: scaleUnambiguousSpacing() }],
1933
+ "gap-x": [{ "gap-x": scaleUnambiguousSpacing() }],
1934
+ "gap-y": [{ "gap-y": scaleUnambiguousSpacing() }],
1935
+ "justify-content": [{ justify: [...scaleAlignPrimaryAxis(), "normal"] }],
1936
+ "justify-items": [{ "justify-items": [...scaleAlignSecondaryAxis(), "normal"] }],
1937
+ "justify-self": [{ "justify-self": ["auto", ...scaleAlignSecondaryAxis()] }],
1938
+ "align-content": [{ content: ["normal", ...scaleAlignPrimaryAxis()] }],
1939
+ "align-items": [{ items: [...scaleAlignSecondaryAxis(), { baseline: ["", "last"] }] }],
1940
+ "align-self": [{ self: [
1941
+ "auto",
1942
+ ...scaleAlignSecondaryAxis(),
1943
+ { baseline: ["", "last"] }
1944
+ ] }],
1945
+ "place-content": [{ "place-content": scaleAlignPrimaryAxis() }],
1946
+ "place-items": [{ "place-items": [...scaleAlignSecondaryAxis(), "baseline"] }],
1947
+ "place-self": [{ "place-self": ["auto", ...scaleAlignSecondaryAxis()] }],
1948
+ p: [{ p: scaleUnambiguousSpacing() }],
1949
+ px: [{ px: scaleUnambiguousSpacing() }],
1950
+ py: [{ py: scaleUnambiguousSpacing() }],
1951
+ ps: [{ ps: scaleUnambiguousSpacing() }],
1952
+ pe: [{ pe: scaleUnambiguousSpacing() }],
1953
+ pt: [{ pt: scaleUnambiguousSpacing() }],
1954
+ pr: [{ pr: scaleUnambiguousSpacing() }],
1955
+ pb: [{ pb: scaleUnambiguousSpacing() }],
1956
+ pl: [{ pl: scaleUnambiguousSpacing() }],
1957
+ m: [{ m: scaleMargin() }],
1958
+ mx: [{ mx: scaleMargin() }],
1959
+ my: [{ my: scaleMargin() }],
1960
+ ms: [{ ms: scaleMargin() }],
1961
+ me: [{ me: scaleMargin() }],
1962
+ mt: [{ mt: scaleMargin() }],
1963
+ mr: [{ mr: scaleMargin() }],
1964
+ mb: [{ mb: scaleMargin() }],
1965
+ ml: [{ ml: scaleMargin() }],
1966
+ "space-x": [{ "space-x": scaleUnambiguousSpacing() }],
1967
+ "space-x-reverse": ["space-x-reverse"],
1968
+ "space-y": [{ "space-y": scaleUnambiguousSpacing() }],
1969
+ "space-y-reverse": ["space-y-reverse"],
1970
+ size: [{ size: scaleSizing() }],
1971
+ w: [{ w: [
1972
+ themeContainer,
1973
+ "screen",
1974
+ ...scaleSizing()
1975
+ ] }],
1976
+ "min-w": [{ "min-w": [
1977
+ themeContainer,
1978
+ "screen",
1979
+ "none",
1980
+ ...scaleSizing()
1981
+ ] }],
1982
+ "max-w": [{ "max-w": [
1983
+ themeContainer,
1984
+ "screen",
1985
+ "none",
1986
+ "prose",
1987
+ { screen: [themeBreakpoint] },
1988
+ ...scaleSizing()
1989
+ ] }],
1990
+ h: [{ h: [
1991
+ "screen",
1992
+ "lh",
1993
+ ...scaleSizing()
1994
+ ] }],
1995
+ "min-h": [{ "min-h": [
1996
+ "screen",
1997
+ "lh",
1998
+ "none",
1999
+ ...scaleSizing()
2000
+ ] }],
2001
+ "max-h": [{ "max-h": [
2002
+ "screen",
2003
+ "lh",
2004
+ ...scaleSizing()
2005
+ ] }],
2006
+ "font-size": [{ text: [
2007
+ "base",
2008
+ themeText,
2009
+ isArbitraryVariableLength,
2010
+ isArbitraryLength
2011
+ ] }],
2012
+ "font-smoothing": ["antialiased", "subpixel-antialiased"],
2013
+ "font-style": ["italic", "not-italic"],
2014
+ "font-weight": [{ font: [
2015
+ themeFontWeight,
2016
+ isArbitraryVariable,
2017
+ isArbitraryNumber
2018
+ ] }],
2019
+ "font-stretch": [{ "font-stretch": [
2020
+ "ultra-condensed",
2021
+ "extra-condensed",
2022
+ "condensed",
2023
+ "semi-condensed",
2024
+ "normal",
2025
+ "semi-expanded",
2026
+ "expanded",
2027
+ "extra-expanded",
2028
+ "ultra-expanded",
2029
+ isPercent,
2030
+ isArbitraryValue
2031
+ ] }],
2032
+ "font-family": [{ font: [
2033
+ isArbitraryVariableFamilyName,
2034
+ isArbitraryValue,
2035
+ themeFont
2036
+ ] }],
2037
+ "fvn-normal": ["normal-nums"],
2038
+ "fvn-ordinal": ["ordinal"],
2039
+ "fvn-slashed-zero": ["slashed-zero"],
2040
+ "fvn-figure": ["lining-nums", "oldstyle-nums"],
2041
+ "fvn-spacing": ["proportional-nums", "tabular-nums"],
2042
+ "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
2043
+ tracking: [{ tracking: [
2044
+ themeTracking,
2045
+ isArbitraryVariable,
2046
+ isArbitraryValue
2047
+ ] }],
2048
+ "line-clamp": [{ "line-clamp": [
2049
+ isNumber,
2050
+ "none",
2051
+ isArbitraryVariable,
2052
+ isArbitraryNumber
2053
+ ] }],
2054
+ leading: [{ leading: [themeLeading, ...scaleUnambiguousSpacing()] }],
2055
+ "list-image": [{ "list-image": [
2056
+ "none",
2057
+ isArbitraryVariable,
2058
+ isArbitraryValue
2059
+ ] }],
2060
+ "list-style-position": [{ list: ["inside", "outside"] }],
2061
+ "list-style-type": [{ list: [
2062
+ "disc",
2063
+ "decimal",
2064
+ "none",
2065
+ isArbitraryVariable,
2066
+ isArbitraryValue
2067
+ ] }],
2068
+ "text-alignment": [{ text: [
2069
+ "left",
2070
+ "center",
2071
+ "right",
2072
+ "justify",
2073
+ "start",
2074
+ "end"
2075
+ ] }],
2076
+ "placeholder-color": [{ placeholder: scaleColor() }],
2077
+ "text-color": [{ text: scaleColor() }],
2078
+ "text-decoration": [
2079
+ "underline",
2080
+ "overline",
2081
+ "line-through",
2082
+ "no-underline"
2083
+ ],
2084
+ "text-decoration-style": [{ decoration: [...scaleLineStyle(), "wavy"] }],
2085
+ "text-decoration-thickness": [{ decoration: [
2086
+ isNumber,
2087
+ "from-font",
2088
+ "auto",
2089
+ isArbitraryVariable,
2090
+ isArbitraryLength
2091
+ ] }],
2092
+ "text-decoration-color": [{ decoration: scaleColor() }],
2093
+ "underline-offset": [{ "underline-offset": [
2094
+ isNumber,
2095
+ "auto",
2096
+ isArbitraryVariable,
2097
+ isArbitraryValue
2098
+ ] }],
2099
+ "text-transform": [
2100
+ "uppercase",
2101
+ "lowercase",
2102
+ "capitalize",
2103
+ "normal-case"
2104
+ ],
2105
+ "text-overflow": [
2106
+ "truncate",
2107
+ "text-ellipsis",
2108
+ "text-clip"
2109
+ ],
2110
+ "text-wrap": [{ text: [
2111
+ "wrap",
2112
+ "nowrap",
2113
+ "balance",
2114
+ "pretty"
2115
+ ] }],
2116
+ indent: [{ indent: scaleUnambiguousSpacing() }],
2117
+ "vertical-align": [{ align: [
2118
+ "baseline",
2119
+ "top",
2120
+ "middle",
2121
+ "bottom",
2122
+ "text-top",
2123
+ "text-bottom",
2124
+ "sub",
2125
+ "super",
2126
+ isArbitraryVariable,
2127
+ isArbitraryValue
2128
+ ] }],
2129
+ whitespace: [{ whitespace: [
2130
+ "normal",
2131
+ "nowrap",
2132
+ "pre",
2133
+ "pre-line",
2134
+ "pre-wrap",
2135
+ "break-spaces"
2136
+ ] }],
2137
+ break: [{ break: [
2138
+ "normal",
2139
+ "words",
2140
+ "all",
2141
+ "keep"
2142
+ ] }],
2143
+ wrap: [{ wrap: [
2144
+ "break-word",
2145
+ "anywhere",
2146
+ "normal"
2147
+ ] }],
2148
+ hyphens: [{ hyphens: [
2149
+ "none",
2150
+ "manual",
2151
+ "auto"
2152
+ ] }],
2153
+ content: [{ content: [
2154
+ "none",
2155
+ isArbitraryVariable,
2156
+ isArbitraryValue
2157
+ ] }],
2158
+ "bg-attachment": [{ bg: [
2159
+ "fixed",
2160
+ "local",
2161
+ "scroll"
2162
+ ] }],
2163
+ "bg-clip": [{ "bg-clip": [
2164
+ "border",
2165
+ "padding",
2166
+ "content",
2167
+ "text"
2168
+ ] }],
2169
+ "bg-origin": [{ "bg-origin": [
2170
+ "border",
2171
+ "padding",
2172
+ "content"
2173
+ ] }],
2174
+ "bg-position": [{ bg: scaleBgPosition() }],
2175
+ "bg-repeat": [{ bg: scaleBgRepeat() }],
2176
+ "bg-size": [{ bg: scaleBgSize() }],
2177
+ "bg-image": [{ bg: [
2178
+ "none",
2179
+ {
2180
+ linear: [
2181
+ { to: [
2182
+ "t",
2183
+ "tr",
2184
+ "r",
2185
+ "br",
2186
+ "b",
2187
+ "bl",
2188
+ "l",
2189
+ "tl"
2190
+ ] },
2191
+ isInteger,
2192
+ isArbitraryVariable,
2193
+ isArbitraryValue
2194
+ ],
2195
+ radial: [
2196
+ "",
2197
+ isArbitraryVariable,
2198
+ isArbitraryValue
2199
+ ],
2200
+ conic: [
2201
+ isInteger,
2202
+ isArbitraryVariable,
2203
+ isArbitraryValue
2204
+ ]
2205
+ },
2206
+ isArbitraryVariableImage,
2207
+ isArbitraryImage
2208
+ ] }],
2209
+ "bg-color": [{ bg: scaleColor() }],
2210
+ "gradient-from-pos": [{ from: scaleGradientStopPosition() }],
2211
+ "gradient-via-pos": [{ via: scaleGradientStopPosition() }],
2212
+ "gradient-to-pos": [{ to: scaleGradientStopPosition() }],
2213
+ "gradient-from": [{ from: scaleColor() }],
2214
+ "gradient-via": [{ via: scaleColor() }],
2215
+ "gradient-to": [{ to: scaleColor() }],
2216
+ rounded: [{ rounded: scaleRadius() }],
2217
+ "rounded-s": [{ "rounded-s": scaleRadius() }],
2218
+ "rounded-e": [{ "rounded-e": scaleRadius() }],
2219
+ "rounded-t": [{ "rounded-t": scaleRadius() }],
2220
+ "rounded-r": [{ "rounded-r": scaleRadius() }],
2221
+ "rounded-b": [{ "rounded-b": scaleRadius() }],
2222
+ "rounded-l": [{ "rounded-l": scaleRadius() }],
2223
+ "rounded-ss": [{ "rounded-ss": scaleRadius() }],
2224
+ "rounded-se": [{ "rounded-se": scaleRadius() }],
2225
+ "rounded-ee": [{ "rounded-ee": scaleRadius() }],
2226
+ "rounded-es": [{ "rounded-es": scaleRadius() }],
2227
+ "rounded-tl": [{ "rounded-tl": scaleRadius() }],
2228
+ "rounded-tr": [{ "rounded-tr": scaleRadius() }],
2229
+ "rounded-br": [{ "rounded-br": scaleRadius() }],
2230
+ "rounded-bl": [{ "rounded-bl": scaleRadius() }],
2231
+ "border-w": [{ border: scaleBorderWidth() }],
2232
+ "border-w-x": [{ "border-x": scaleBorderWidth() }],
2233
+ "border-w-y": [{ "border-y": scaleBorderWidth() }],
2234
+ "border-w-s": [{ "border-s": scaleBorderWidth() }],
2235
+ "border-w-e": [{ "border-e": scaleBorderWidth() }],
2236
+ "border-w-t": [{ "border-t": scaleBorderWidth() }],
2237
+ "border-w-r": [{ "border-r": scaleBorderWidth() }],
2238
+ "border-w-b": [{ "border-b": scaleBorderWidth() }],
2239
+ "border-w-l": [{ "border-l": scaleBorderWidth() }],
2240
+ "divide-x": [{ "divide-x": scaleBorderWidth() }],
2241
+ "divide-x-reverse": ["divide-x-reverse"],
2242
+ "divide-y": [{ "divide-y": scaleBorderWidth() }],
2243
+ "divide-y-reverse": ["divide-y-reverse"],
2244
+ "border-style": [{ border: [
2245
+ ...scaleLineStyle(),
2246
+ "hidden",
2247
+ "none"
2248
+ ] }],
2249
+ "divide-style": [{ divide: [
2250
+ ...scaleLineStyle(),
2251
+ "hidden",
2252
+ "none"
2253
+ ] }],
2254
+ "border-color": [{ border: scaleColor() }],
2255
+ "border-color-x": [{ "border-x": scaleColor() }],
2256
+ "border-color-y": [{ "border-y": scaleColor() }],
2257
+ "border-color-s": [{ "border-s": scaleColor() }],
2258
+ "border-color-e": [{ "border-e": scaleColor() }],
2259
+ "border-color-t": [{ "border-t": scaleColor() }],
2260
+ "border-color-r": [{ "border-r": scaleColor() }],
2261
+ "border-color-b": [{ "border-b": scaleColor() }],
2262
+ "border-color-l": [{ "border-l": scaleColor() }],
2263
+ "divide-color": [{ divide: scaleColor() }],
2264
+ "outline-style": [{ outline: [
2265
+ ...scaleLineStyle(),
2266
+ "none",
2267
+ "hidden"
2268
+ ] }],
2269
+ "outline-offset": [{ "outline-offset": [
2270
+ isNumber,
2271
+ isArbitraryVariable,
2272
+ isArbitraryValue
2273
+ ] }],
2274
+ "outline-w": [{ outline: [
2275
+ "",
2276
+ isNumber,
2277
+ isArbitraryVariableLength,
2278
+ isArbitraryLength
2279
+ ] }],
2280
+ "outline-color": [{ outline: scaleColor() }],
2281
+ shadow: [{ shadow: [
2282
+ "",
2283
+ "none",
2284
+ themeShadow,
2285
+ isArbitraryVariableShadow,
2286
+ isArbitraryShadow
2287
+ ] }],
2288
+ "shadow-color": [{ shadow: scaleColor() }],
2289
+ "inset-shadow": [{ "inset-shadow": [
2290
+ "none",
2291
+ themeInsetShadow,
2292
+ isArbitraryVariableShadow,
2293
+ isArbitraryShadow
2294
+ ] }],
2295
+ "inset-shadow-color": [{ "inset-shadow": scaleColor() }],
2296
+ "ring-w": [{ ring: scaleBorderWidth() }],
2297
+ "ring-w-inset": ["ring-inset"],
2298
+ "ring-color": [{ ring: scaleColor() }],
2299
+ "ring-offset-w": [{ "ring-offset": [isNumber, isArbitraryLength] }],
2300
+ "ring-offset-color": [{ "ring-offset": scaleColor() }],
2301
+ "inset-ring-w": [{ "inset-ring": scaleBorderWidth() }],
2302
+ "inset-ring-color": [{ "inset-ring": scaleColor() }],
2303
+ "text-shadow": [{ "text-shadow": [
2304
+ "none",
2305
+ themeTextShadow,
2306
+ isArbitraryVariableShadow,
2307
+ isArbitraryShadow
2308
+ ] }],
2309
+ "text-shadow-color": [{ "text-shadow": scaleColor() }],
2310
+ opacity: [{ opacity: [
2311
+ isNumber,
2312
+ isArbitraryVariable,
2313
+ isArbitraryValue
2314
+ ] }],
2315
+ "mix-blend": [{ "mix-blend": [
2316
+ ...scaleBlendMode(),
2317
+ "plus-darker",
2318
+ "plus-lighter"
2319
+ ] }],
2320
+ "bg-blend": [{ "bg-blend": scaleBlendMode() }],
2321
+ "mask-clip": [{ "mask-clip": [
2322
+ "border",
2323
+ "padding",
2324
+ "content",
2325
+ "fill",
2326
+ "stroke",
2327
+ "view"
2328
+ ] }, "mask-no-clip"],
2329
+ "mask-composite": [{ mask: [
2330
+ "add",
2331
+ "subtract",
2332
+ "intersect",
2333
+ "exclude"
2334
+ ] }],
2335
+ "mask-image-linear-pos": [{ "mask-linear": [isNumber] }],
2336
+ "mask-image-linear-from-pos": [{ "mask-linear-from": scaleMaskImagePosition() }],
2337
+ "mask-image-linear-to-pos": [{ "mask-linear-to": scaleMaskImagePosition() }],
2338
+ "mask-image-linear-from-color": [{ "mask-linear-from": scaleColor() }],
2339
+ "mask-image-linear-to-color": [{ "mask-linear-to": scaleColor() }],
2340
+ "mask-image-t-from-pos": [{ "mask-t-from": scaleMaskImagePosition() }],
2341
+ "mask-image-t-to-pos": [{ "mask-t-to": scaleMaskImagePosition() }],
2342
+ "mask-image-t-from-color": [{ "mask-t-from": scaleColor() }],
2343
+ "mask-image-t-to-color": [{ "mask-t-to": scaleColor() }],
2344
+ "mask-image-r-from-pos": [{ "mask-r-from": scaleMaskImagePosition() }],
2345
+ "mask-image-r-to-pos": [{ "mask-r-to": scaleMaskImagePosition() }],
2346
+ "mask-image-r-from-color": [{ "mask-r-from": scaleColor() }],
2347
+ "mask-image-r-to-color": [{ "mask-r-to": scaleColor() }],
2348
+ "mask-image-b-from-pos": [{ "mask-b-from": scaleMaskImagePosition() }],
2349
+ "mask-image-b-to-pos": [{ "mask-b-to": scaleMaskImagePosition() }],
2350
+ "mask-image-b-from-color": [{ "mask-b-from": scaleColor() }],
2351
+ "mask-image-b-to-color": [{ "mask-b-to": scaleColor() }],
2352
+ "mask-image-l-from-pos": [{ "mask-l-from": scaleMaskImagePosition() }],
2353
+ "mask-image-l-to-pos": [{ "mask-l-to": scaleMaskImagePosition() }],
2354
+ "mask-image-l-from-color": [{ "mask-l-from": scaleColor() }],
2355
+ "mask-image-l-to-color": [{ "mask-l-to": scaleColor() }],
2356
+ "mask-image-x-from-pos": [{ "mask-x-from": scaleMaskImagePosition() }],
2357
+ "mask-image-x-to-pos": [{ "mask-x-to": scaleMaskImagePosition() }],
2358
+ "mask-image-x-from-color": [{ "mask-x-from": scaleColor() }],
2359
+ "mask-image-x-to-color": [{ "mask-x-to": scaleColor() }],
2360
+ "mask-image-y-from-pos": [{ "mask-y-from": scaleMaskImagePosition() }],
2361
+ "mask-image-y-to-pos": [{ "mask-y-to": scaleMaskImagePosition() }],
2362
+ "mask-image-y-from-color": [{ "mask-y-from": scaleColor() }],
2363
+ "mask-image-y-to-color": [{ "mask-y-to": scaleColor() }],
2364
+ "mask-image-radial": [{ "mask-radial": [isArbitraryVariable, isArbitraryValue] }],
2365
+ "mask-image-radial-from-pos": [{ "mask-radial-from": scaleMaskImagePosition() }],
2366
+ "mask-image-radial-to-pos": [{ "mask-radial-to": scaleMaskImagePosition() }],
2367
+ "mask-image-radial-from-color": [{ "mask-radial-from": scaleColor() }],
2368
+ "mask-image-radial-to-color": [{ "mask-radial-to": scaleColor() }],
2369
+ "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
2370
+ "mask-image-radial-size": [{ "mask-radial": [{
2371
+ closest: ["side", "corner"],
2372
+ farthest: ["side", "corner"]
2373
+ }] }],
2374
+ "mask-image-radial-pos": [{ "mask-radial-at": scalePosition() }],
2375
+ "mask-image-conic-pos": [{ "mask-conic": [isNumber] }],
2376
+ "mask-image-conic-from-pos": [{ "mask-conic-from": scaleMaskImagePosition() }],
2377
+ "mask-image-conic-to-pos": [{ "mask-conic-to": scaleMaskImagePosition() }],
2378
+ "mask-image-conic-from-color": [{ "mask-conic-from": scaleColor() }],
2379
+ "mask-image-conic-to-color": [{ "mask-conic-to": scaleColor() }],
2380
+ "mask-mode": [{ mask: [
2381
+ "alpha",
2382
+ "luminance",
2383
+ "match"
2384
+ ] }],
2385
+ "mask-origin": [{ "mask-origin": [
2386
+ "border",
2387
+ "padding",
2388
+ "content",
2389
+ "fill",
2390
+ "stroke",
2391
+ "view"
2392
+ ] }],
2393
+ "mask-position": [{ mask: scaleBgPosition() }],
2394
+ "mask-repeat": [{ mask: scaleBgRepeat() }],
2395
+ "mask-size": [{ mask: scaleBgSize() }],
2396
+ "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
2397
+ "mask-image": [{ mask: [
2398
+ "none",
2399
+ isArbitraryVariable,
2400
+ isArbitraryValue
2401
+ ] }],
2402
+ filter: [{ filter: [
2403
+ "",
2404
+ "none",
2405
+ isArbitraryVariable,
2406
+ isArbitraryValue
2407
+ ] }],
2408
+ blur: [{ blur: scaleBlur() }],
2409
+ brightness: [{ brightness: [
2410
+ isNumber,
2411
+ isArbitraryVariable,
2412
+ isArbitraryValue
2413
+ ] }],
2414
+ contrast: [{ contrast: [
2415
+ isNumber,
2416
+ isArbitraryVariable,
2417
+ isArbitraryValue
2418
+ ] }],
2419
+ "drop-shadow": [{ "drop-shadow": [
2420
+ "",
2421
+ "none",
2422
+ themeDropShadow,
2423
+ isArbitraryVariableShadow,
2424
+ isArbitraryShadow
2425
+ ] }],
2426
+ "drop-shadow-color": [{ "drop-shadow": scaleColor() }],
2427
+ grayscale: [{ grayscale: [
2428
+ "",
2429
+ isNumber,
2430
+ isArbitraryVariable,
2431
+ isArbitraryValue
2432
+ ] }],
2433
+ "hue-rotate": [{ "hue-rotate": [
2434
+ isNumber,
2435
+ isArbitraryVariable,
2436
+ isArbitraryValue
2437
+ ] }],
2438
+ invert: [{ invert: [
2439
+ "",
2440
+ isNumber,
2441
+ isArbitraryVariable,
2442
+ isArbitraryValue
2443
+ ] }],
2444
+ saturate: [{ saturate: [
2445
+ isNumber,
2446
+ isArbitraryVariable,
2447
+ isArbitraryValue
2448
+ ] }],
2449
+ sepia: [{ sepia: [
2450
+ "",
2451
+ isNumber,
2452
+ isArbitraryVariable,
2453
+ isArbitraryValue
2454
+ ] }],
2455
+ "backdrop-filter": [{ "backdrop-filter": [
2456
+ "",
2457
+ "none",
2458
+ isArbitraryVariable,
2459
+ isArbitraryValue
2460
+ ] }],
2461
+ "backdrop-blur": [{ "backdrop-blur": scaleBlur() }],
2462
+ "backdrop-brightness": [{ "backdrop-brightness": [
2463
+ isNumber,
2464
+ isArbitraryVariable,
2465
+ isArbitraryValue
2466
+ ] }],
2467
+ "backdrop-contrast": [{ "backdrop-contrast": [
2468
+ isNumber,
2469
+ isArbitraryVariable,
2470
+ isArbitraryValue
2471
+ ] }],
2472
+ "backdrop-grayscale": [{ "backdrop-grayscale": [
2473
+ "",
2474
+ isNumber,
2475
+ isArbitraryVariable,
2476
+ isArbitraryValue
2477
+ ] }],
2478
+ "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
2479
+ isNumber,
2480
+ isArbitraryVariable,
2481
+ isArbitraryValue
2482
+ ] }],
2483
+ "backdrop-invert": [{ "backdrop-invert": [
2484
+ "",
2485
+ isNumber,
2486
+ isArbitraryVariable,
2487
+ isArbitraryValue
2488
+ ] }],
2489
+ "backdrop-opacity": [{ "backdrop-opacity": [
2490
+ isNumber,
2491
+ isArbitraryVariable,
2492
+ isArbitraryValue
2493
+ ] }],
2494
+ "backdrop-saturate": [{ "backdrop-saturate": [
2495
+ isNumber,
2496
+ isArbitraryVariable,
2497
+ isArbitraryValue
2498
+ ] }],
2499
+ "backdrop-sepia": [{ "backdrop-sepia": [
2500
+ "",
2501
+ isNumber,
2502
+ isArbitraryVariable,
2503
+ isArbitraryValue
2504
+ ] }],
2505
+ "border-collapse": [{ border: ["collapse", "separate"] }],
2506
+ "border-spacing": [{ "border-spacing": scaleUnambiguousSpacing() }],
2507
+ "border-spacing-x": [{ "border-spacing-x": scaleUnambiguousSpacing() }],
2508
+ "border-spacing-y": [{ "border-spacing-y": scaleUnambiguousSpacing() }],
2509
+ "table-layout": [{ table: ["auto", "fixed"] }],
2510
+ caption: [{ caption: ["top", "bottom"] }],
2511
+ transition: [{ transition: [
2512
+ "",
2513
+ "all",
2514
+ "colors",
2515
+ "opacity",
2516
+ "shadow",
2517
+ "transform",
2518
+ "none",
2519
+ isArbitraryVariable,
2520
+ isArbitraryValue
2521
+ ] }],
2522
+ "transition-behavior": [{ transition: ["normal", "discrete"] }],
2523
+ duration: [{ duration: [
2524
+ isNumber,
2525
+ "initial",
2526
+ isArbitraryVariable,
2527
+ isArbitraryValue
2528
+ ] }],
2529
+ ease: [{ ease: [
2530
+ "linear",
2531
+ "initial",
2532
+ themeEase,
2533
+ isArbitraryVariable,
2534
+ isArbitraryValue
2535
+ ] }],
2536
+ delay: [{ delay: [
2537
+ isNumber,
2538
+ isArbitraryVariable,
2539
+ isArbitraryValue
2540
+ ] }],
2541
+ animate: [{ animate: [
2542
+ "none",
2543
+ themeAnimate,
2544
+ isArbitraryVariable,
2545
+ isArbitraryValue
2546
+ ] }],
2547
+ backface: [{ backface: ["hidden", "visible"] }],
2548
+ perspective: [{ perspective: [
2549
+ themePerspective,
2550
+ isArbitraryVariable,
2551
+ isArbitraryValue
2552
+ ] }],
2553
+ "perspective-origin": [{ "perspective-origin": scalePositionWithArbitrary() }],
2554
+ rotate: [{ rotate: scaleRotate() }],
2555
+ "rotate-x": [{ "rotate-x": scaleRotate() }],
2556
+ "rotate-y": [{ "rotate-y": scaleRotate() }],
2557
+ "rotate-z": [{ "rotate-z": scaleRotate() }],
2558
+ scale: [{ scale: scaleScale() }],
2559
+ "scale-x": [{ "scale-x": scaleScale() }],
2560
+ "scale-y": [{ "scale-y": scaleScale() }],
2561
+ "scale-z": [{ "scale-z": scaleScale() }],
2562
+ "scale-3d": ["scale-3d"],
2563
+ skew: [{ skew: scaleSkew() }],
2564
+ "skew-x": [{ "skew-x": scaleSkew() }],
2565
+ "skew-y": [{ "skew-y": scaleSkew() }],
2566
+ transform: [{ transform: [
2567
+ isArbitraryVariable,
2568
+ isArbitraryValue,
2569
+ "",
2570
+ "none",
2571
+ "gpu",
2572
+ "cpu"
2573
+ ] }],
2574
+ "transform-origin": [{ origin: scalePositionWithArbitrary() }],
2575
+ "transform-style": [{ transform: ["3d", "flat"] }],
2576
+ translate: [{ translate: scaleTranslate() }],
2577
+ "translate-x": [{ "translate-x": scaleTranslate() }],
2578
+ "translate-y": [{ "translate-y": scaleTranslate() }],
2579
+ "translate-z": [{ "translate-z": scaleTranslate() }],
2580
+ "translate-none": ["translate-none"],
2581
+ accent: [{ accent: scaleColor() }],
2582
+ appearance: [{ appearance: ["none", "auto"] }],
2583
+ "caret-color": [{ caret: scaleColor() }],
2584
+ "color-scheme": [{ scheme: [
2585
+ "normal",
2586
+ "dark",
2587
+ "light",
2588
+ "light-dark",
2589
+ "only-dark",
2590
+ "only-light"
2591
+ ] }],
2592
+ cursor: [{ cursor: [
2593
+ "auto",
2594
+ "default",
2595
+ "pointer",
2596
+ "wait",
2597
+ "text",
2598
+ "move",
2599
+ "help",
2600
+ "not-allowed",
2601
+ "none",
2602
+ "context-menu",
2603
+ "progress",
2604
+ "cell",
2605
+ "crosshair",
2606
+ "vertical-text",
2607
+ "alias",
2608
+ "copy",
2609
+ "no-drop",
2610
+ "grab",
2611
+ "grabbing",
2612
+ "all-scroll",
2613
+ "col-resize",
2614
+ "row-resize",
2615
+ "n-resize",
2616
+ "e-resize",
2617
+ "s-resize",
2618
+ "w-resize",
2619
+ "ne-resize",
2620
+ "nw-resize",
2621
+ "se-resize",
2622
+ "sw-resize",
2623
+ "ew-resize",
2624
+ "ns-resize",
2625
+ "nesw-resize",
2626
+ "nwse-resize",
2627
+ "zoom-in",
2628
+ "zoom-out",
2629
+ isArbitraryVariable,
2630
+ isArbitraryValue
2631
+ ] }],
2632
+ "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
2633
+ "pointer-events": [{ "pointer-events": ["auto", "none"] }],
2634
+ resize: [{ resize: [
2635
+ "none",
2636
+ "",
2637
+ "y",
2638
+ "x"
2639
+ ] }],
2640
+ "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
2641
+ "scroll-m": [{ "scroll-m": scaleUnambiguousSpacing() }],
2642
+ "scroll-mx": [{ "scroll-mx": scaleUnambiguousSpacing() }],
2643
+ "scroll-my": [{ "scroll-my": scaleUnambiguousSpacing() }],
2644
+ "scroll-ms": [{ "scroll-ms": scaleUnambiguousSpacing() }],
2645
+ "scroll-me": [{ "scroll-me": scaleUnambiguousSpacing() }],
2646
+ "scroll-mt": [{ "scroll-mt": scaleUnambiguousSpacing() }],
2647
+ "scroll-mr": [{ "scroll-mr": scaleUnambiguousSpacing() }],
2648
+ "scroll-mb": [{ "scroll-mb": scaleUnambiguousSpacing() }],
2649
+ "scroll-ml": [{ "scroll-ml": scaleUnambiguousSpacing() }],
2650
+ "scroll-p": [{ "scroll-p": scaleUnambiguousSpacing() }],
2651
+ "scroll-px": [{ "scroll-px": scaleUnambiguousSpacing() }],
2652
+ "scroll-py": [{ "scroll-py": scaleUnambiguousSpacing() }],
2653
+ "scroll-ps": [{ "scroll-ps": scaleUnambiguousSpacing() }],
2654
+ "scroll-pe": [{ "scroll-pe": scaleUnambiguousSpacing() }],
2655
+ "scroll-pt": [{ "scroll-pt": scaleUnambiguousSpacing() }],
2656
+ "scroll-pr": [{ "scroll-pr": scaleUnambiguousSpacing() }],
2657
+ "scroll-pb": [{ "scroll-pb": scaleUnambiguousSpacing() }],
2658
+ "scroll-pl": [{ "scroll-pl": scaleUnambiguousSpacing() }],
2659
+ "snap-align": [{ snap: [
2660
+ "start",
2661
+ "end",
2662
+ "center",
2663
+ "align-none"
2664
+ ] }],
2665
+ "snap-stop": [{ snap: ["normal", "always"] }],
2666
+ "snap-type": [{ snap: [
2667
+ "none",
2668
+ "x",
2669
+ "y",
2670
+ "both"
2671
+ ] }],
2672
+ "snap-strictness": [{ snap: ["mandatory", "proximity"] }],
2673
+ touch: [{ touch: [
2674
+ "auto",
2675
+ "none",
2676
+ "manipulation"
2677
+ ] }],
2678
+ "touch-x": [{ "touch-pan": [
2679
+ "x",
2680
+ "left",
2681
+ "right"
2682
+ ] }],
2683
+ "touch-y": [{ "touch-pan": [
2684
+ "y",
2685
+ "up",
2686
+ "down"
2687
+ ] }],
2688
+ "touch-pz": ["touch-pinch-zoom"],
2689
+ select: [{ select: [
2690
+ "none",
2691
+ "text",
2692
+ "all",
2693
+ "auto"
2694
+ ] }],
2695
+ "will-change": [{ "will-change": [
2696
+ "auto",
2697
+ "scroll",
2698
+ "contents",
2699
+ "transform",
2700
+ isArbitraryVariable,
2701
+ isArbitraryValue
2702
+ ] }],
2703
+ fill: [{ fill: ["none", ...scaleColor()] }],
2704
+ "stroke-w": [{ stroke: [
2705
+ isNumber,
2706
+ isArbitraryVariableLength,
2707
+ isArbitraryLength,
2708
+ isArbitraryNumber
2709
+ ] }],
2710
+ stroke: [{ stroke: ["none", ...scaleColor()] }],
2711
+ "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
2712
+ },
2713
+ conflictingClassGroups: {
2714
+ overflow: ["overflow-x", "overflow-y"],
2715
+ overscroll: ["overscroll-x", "overscroll-y"],
2716
+ inset: [
2717
+ "inset-x",
2718
+ "inset-y",
2719
+ "start",
2720
+ "end",
2721
+ "top",
2722
+ "right",
2723
+ "bottom",
2724
+ "left"
2725
+ ],
2726
+ "inset-x": ["right", "left"],
2727
+ "inset-y": ["top", "bottom"],
2728
+ flex: [
2729
+ "basis",
2730
+ "grow",
2731
+ "shrink"
2732
+ ],
2733
+ gap: ["gap-x", "gap-y"],
2734
+ p: [
2735
+ "px",
2736
+ "py",
2737
+ "ps",
2738
+ "pe",
2739
+ "pt",
2740
+ "pr",
2741
+ "pb",
2742
+ "pl"
2743
+ ],
2744
+ px: ["pr", "pl"],
2745
+ py: ["pt", "pb"],
2746
+ m: [
2747
+ "mx",
2748
+ "my",
2749
+ "ms",
2750
+ "me",
2751
+ "mt",
2752
+ "mr",
2753
+ "mb",
2754
+ "ml"
2755
+ ],
2756
+ mx: ["mr", "ml"],
2757
+ my: ["mt", "mb"],
2758
+ size: ["w", "h"],
2759
+ "font-size": ["leading"],
2760
+ "fvn-normal": [
2761
+ "fvn-ordinal",
2762
+ "fvn-slashed-zero",
2763
+ "fvn-figure",
2764
+ "fvn-spacing",
2765
+ "fvn-fraction"
2766
+ ],
2767
+ "fvn-ordinal": ["fvn-normal"],
2768
+ "fvn-slashed-zero": ["fvn-normal"],
2769
+ "fvn-figure": ["fvn-normal"],
2770
+ "fvn-spacing": ["fvn-normal"],
2771
+ "fvn-fraction": ["fvn-normal"],
2772
+ "line-clamp": ["display", "overflow"],
2773
+ rounded: [
2774
+ "rounded-s",
2775
+ "rounded-e",
2776
+ "rounded-t",
2777
+ "rounded-r",
2778
+ "rounded-b",
2779
+ "rounded-l",
2780
+ "rounded-ss",
2781
+ "rounded-se",
2782
+ "rounded-ee",
2783
+ "rounded-es",
2784
+ "rounded-tl",
2785
+ "rounded-tr",
2786
+ "rounded-br",
2787
+ "rounded-bl"
2788
+ ],
2789
+ "rounded-s": ["rounded-ss", "rounded-es"],
2790
+ "rounded-e": ["rounded-se", "rounded-ee"],
2791
+ "rounded-t": ["rounded-tl", "rounded-tr"],
2792
+ "rounded-r": ["rounded-tr", "rounded-br"],
2793
+ "rounded-b": ["rounded-br", "rounded-bl"],
2794
+ "rounded-l": ["rounded-tl", "rounded-bl"],
2795
+ "border-spacing": ["border-spacing-x", "border-spacing-y"],
2796
+ "border-w": [
2797
+ "border-w-x",
2798
+ "border-w-y",
2799
+ "border-w-s",
2800
+ "border-w-e",
2801
+ "border-w-t",
2802
+ "border-w-r",
2803
+ "border-w-b",
2804
+ "border-w-l"
2805
+ ],
2806
+ "border-w-x": ["border-w-r", "border-w-l"],
2807
+ "border-w-y": ["border-w-t", "border-w-b"],
2808
+ "border-color": [
2809
+ "border-color-x",
2810
+ "border-color-y",
2811
+ "border-color-s",
2812
+ "border-color-e",
2813
+ "border-color-t",
2814
+ "border-color-r",
2815
+ "border-color-b",
2816
+ "border-color-l"
2817
+ ],
2818
+ "border-color-x": ["border-color-r", "border-color-l"],
2819
+ "border-color-y": ["border-color-t", "border-color-b"],
2820
+ translate: [
2821
+ "translate-x",
2822
+ "translate-y",
2823
+ "translate-none"
2824
+ ],
2825
+ "translate-none": [
2826
+ "translate",
2827
+ "translate-x",
2828
+ "translate-y",
2829
+ "translate-z"
2830
+ ],
2831
+ "scroll-m": [
2832
+ "scroll-mx",
2833
+ "scroll-my",
2834
+ "scroll-ms",
2835
+ "scroll-me",
2836
+ "scroll-mt",
2837
+ "scroll-mr",
2838
+ "scroll-mb",
2839
+ "scroll-ml"
2840
+ ],
2841
+ "scroll-mx": ["scroll-mr", "scroll-ml"],
2842
+ "scroll-my": ["scroll-mt", "scroll-mb"],
2843
+ "scroll-p": [
2844
+ "scroll-px",
2845
+ "scroll-py",
2846
+ "scroll-ps",
2847
+ "scroll-pe",
2848
+ "scroll-pt",
2849
+ "scroll-pr",
2850
+ "scroll-pb",
2851
+ "scroll-pl"
2852
+ ],
2853
+ "scroll-px": ["scroll-pr", "scroll-pl"],
2854
+ "scroll-py": ["scroll-pt", "scroll-pb"],
2855
+ touch: [
2856
+ "touch-x",
2857
+ "touch-y",
2858
+ "touch-pz"
2859
+ ],
2860
+ "touch-x": ["touch"],
2861
+ "touch-y": ["touch"],
2862
+ "touch-pz": ["touch"]
2863
+ },
2864
+ conflictingClassGroupModifiers: { "font-size": ["leading"] },
2865
+ orderSensitiveModifiers: [
2866
+ "*",
2867
+ "**",
2868
+ "after",
2869
+ "backdrop",
2870
+ "before",
2871
+ "details-content",
2872
+ "file",
2873
+ "first-letter",
2874
+ "first-line",
2875
+ "marker",
2876
+ "placeholder",
2877
+ "selection"
2878
+ ]
2879
+ };
2880
+ };
2881
+ const twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
2882
+
2883
+ //#endregion
2884
+ //#region ../common/dist/strings/tokenize.js
2885
+ function buildTokenizeFuncUsingSplitters(splitters) {
2886
+ splitters = Array.isArray(splitters) ? splitters : [splitters];
2887
+ const tokenize = (s) => {
2888
+ let r = s.split(splitters[0]).filter((t) => t != "" && t != void 0);
2889
+ for (const splitter of splitters.slice(1)) {
2890
+ const r0 = [...r];
2891
+ r = [];
2892
+ for (const s$1 of r0) r.push(...tokenizeFilterString(s$1, {
2893
+ splitter,
2894
+ filter: (t) => t != "" && t != void 0
2895
+ }));
2896
+ }
2897
+ return r;
2898
+ };
2899
+ return tokenize;
2900
+ }
2901
+ function buildArgTokenizeFunc(tokenize) {
2902
+ const argTokenize = (arg) => {
2903
+ if (arg == void 0) return [];
2904
+ else if (Array.isArray(arg)) {
2905
+ const r = [];
2906
+ for (const a of arg) r.push(...argTokenize(a));
2907
+ return r;
2908
+ } else return tokenize(arg);
2909
+ };
2910
+ return argTokenize;
2911
+ }
2912
+ const tokenizeBySpaces = buildTokenizeFuncUsingSplitters(/\s+/);
2913
+ const argTokenizeBySpaces = buildArgTokenizeFunc(tokenizeBySpaces);
2914
+ function tokenizeFilterString(s, options = {}) {
2915
+ const separator = options.splitter ?? /\s+/;
2916
+ const filter = options.filter ?? ((s$1) => s$1.length > 0);
2917
+ return s.split(separator).filter(filter);
2918
+ }
2919
+ function deduplicate(items) {
2920
+ const r = [];
2921
+ const itemSet = /* @__PURE__ */ new Set();
2922
+ for (const item of items) if (!itemSet.has(item)) {
2923
+ r.push(item);
2924
+ itemSet.add(item);
2925
+ }
2926
+ return r;
2927
+ }
2928
+
2929
+ //#endregion
2930
+ //#region ../common/dist/messages/logMessages.js
2931
+ const LogLevels = [
2932
+ "ERROR",
2933
+ "WARNING",
2934
+ "INFO",
2935
+ "DEBUG"
2936
+ ];
2937
+ const LogLevelsMap = /* @__PURE__ */ new Map();
2938
+ LogLevels.forEach((level, i) => {
2939
+ LogLevelsMap.set(level, LogLevels.length - i);
2940
+ });
2941
+
2942
+ //#endregion
2943
+ //#region src/stylers/normalizers.ts
2944
+ function twMergeNormalize(raw) {
2945
+ return tokenizeFilterString(twMerge(...raw));
2946
+ }
2947
+ function mainTagNormalize(rawTags, defaultTag) {
2948
+ return exclusiveTagsNormalize(rawTags, (tag) => tag.length == 1 && tag.toUpperCase() == tag, defaultTag);
2949
+ }
2950
+ function exclusiveTagsNormalize(rawTags, tagSet, defaultTag) {
2951
+ const rhead = [];
2952
+ const rtail = [];
2953
+ let rtag = void 0;
2954
+ const tagSetFunc = typeof tagSet == "function" ? tagSet : (tag) => tagSet.has(tag);
2955
+ for (const tag of rawTags) if (tagSetFunc(tag)) {
2956
+ rtag = tag;
2957
+ rhead.push(...rtail);
2958
+ rtail.length = 0;
2959
+ } else if (rtag == void 0) rhead.push(tag);
2960
+ else rtail.push(tag);
2961
+ rtag = rtag ?? defaultTag;
2962
+ return rtag == void 0 ? [...rhead, ...rtail] : [
2963
+ ...rhead,
2964
+ rtag,
2965
+ ...rtail
2966
+ ];
2967
+ }
2968
+
2969
+ //#endregion
2970
+ //#region src/stylers/SVTStyler.ts
2971
+ var SVTStyler = class SVTStyler {
2972
+ _rules = [];
2973
+ options;
2974
+ constructor(rules, options = {}) {
2975
+ for (const r of rules) this._rules.push(SVTStyler.normalizeRule(r));
2976
+ this.options = { ...options };
2977
+ }
2978
+ with(rules, options = {}) {
2979
+ const addedRules = [];
2980
+ for (const r of rules) addedRules.push(SVTStyler.normalizeRule(r));
2981
+ const styler = new SVTStyler([], { ...this.options });
2982
+ styler._rules.push(...this._rules, ...addedRules);
2983
+ return styler;
2984
+ }
2985
+ classes(stags, vtags) {
2986
+ const r = [];
2987
+ let stagsNormalized = argTokenizeBySpaces(stags);
2988
+ let vtagsNormalized = argTokenizeBySpaces(vtags);
2989
+ if (this.options.stagsNormaliser) stagsNormalized = this.options.stagsNormaliser(stagsNormalized);
2990
+ if (this.options.vtagsNormaliser) vtagsNormalized = this.options.vtagsNormaliser(vtagsNormalized);
2991
+ for (const rule of this._rules) if (this.ruleMatches(rule, stagsNormalized, vtagsNormalized)) r.push(...rule.classes);
2992
+ return this.options.normalizer ? this.options.normalizer(r) : r;
2993
+ }
2994
+ static normalizeRule(rule) {
2995
+ let stagMode = rule.stagMode ?? "or";
2996
+ let vtagMode = rule.vtagMode ?? "or";
2997
+ let stags = deduplicate(argTokenizeBySpaces(rule.stags));
2998
+ let vtags = deduplicate(argTokenizeBySpaces(rule.vtags));
2999
+ let classes = deduplicate(argTokenizeBySpaces(rule.classes));
3000
+ if (rule.stags == void 0 && rule.stagMode == void 0) stagMode = "any";
3001
+ if (rule.vtags == void 0 && rule.vtagMode == void 0) vtagMode = "any";
3002
+ return {
3003
+ stagRule: {
3004
+ mode: stagMode,
3005
+ tags: stags
3006
+ },
3007
+ vtagRule: {
3008
+ mode: vtagMode,
3009
+ tags: vtags
3010
+ },
3011
+ classes
3012
+ };
3013
+ }
3014
+ ruleMatches(rule, stags, vtags) {
3015
+ return tagRuleMatches(rule.stagRule, stags) && tagRuleMatches(rule.vtagRule, vtags);
3016
+ }
3017
+ };
3018
+ function tagRuleMatches(rule, candidateTags) {
3019
+ if (rule.mode == "any") return true;
3020
+ else if (rule.mode == "or") {
3021
+ for (const ctag of candidateTags) if (rule.tags.indexOf(ctag) >= 0) return true;
3022
+ return false;
3023
+ } else if (rule.mode == "and") {
3024
+ for (const rtag of rule.tags) if (candidateTags.indexOf(rtag) < 0) return false;
3025
+ return true;
3026
+ }
3027
+ return false;
3028
+ }
3029
+
3030
+ //#endregion
3031
+ //#region src/stylers/base.styler.ts
3032
+ const baseStyler = new SVTStyler([
3033
+ {
3034
+ vtags: "A",
3035
+ classes: "bg-slate-100 text-slate-800"
3036
+ },
3037
+ {
3038
+ vtags: "B",
3039
+ classes: "bg-slate-800 text-slate-100"
3040
+ },
3041
+ {
3042
+ vtags: "C",
3043
+ classes: "bg-stone-300 text-orange-950"
3044
+ },
3045
+ {
3046
+ vtags: "D",
3047
+ classes: "bg-orange-900 text-stone-100"
3048
+ },
3049
+ {
3050
+ vtags: "LG",
3051
+ classes: "text-xl p-2"
3052
+ },
3053
+ {
3054
+ vtags: "BASE",
3055
+ classes: "text-base p-1"
3056
+ },
3057
+ {
3058
+ vtags: "SM",
3059
+ classes: "text-sm p-0.5"
3060
+ },
3061
+ {
3062
+ vtags: "LG",
3063
+ stags: "item",
3064
+ classes: "text-xl px-2 py-1"
3065
+ },
3066
+ {
3067
+ vtags: "BASE",
3068
+ stags: "item",
3069
+ classes: "text-base px-1 py-0.5"
3070
+ },
3071
+ {
3072
+ vtags: "SM",
3073
+ stags: "item",
3074
+ classes: "text-sm p-0.5"
3075
+ },
3076
+ {
3077
+ stags: "item:selected",
3078
+ classes: "underline font-bold"
3079
+ },
3080
+ {
3081
+ stags: "item:disabled",
3082
+ classes: "blur-[1px]"
3083
+ },
3084
+ {
3085
+ stags: "item/disabler",
3086
+ classes: "bg-slate-300/85 cursor-not-allowed"
3087
+ }
3088
+ ], {
3089
+ normalizer: twMergeNormalize,
3090
+ vtagsNormaliser: (tags) => exclusiveTagsNormalize(mainTagNormalize(tags, "A"), new Set([
3091
+ "SM",
3092
+ "BASE",
3093
+ "LG"
3094
+ ]), "BASE")
3095
+ });
3096
+
3097
+ //#endregion
3098
+ //#region src/stylers/Stylers.ts
3099
+ var Stylers = class {
3100
+ static _base;
3101
+ static _stylersMap = /* @__PURE__ */ new Map();
3102
+ static get base() {
3103
+ return this._base;
3104
+ }
3105
+ static setBase(base) {
3106
+ return this._base = base;
3107
+ }
3108
+ static {
3109
+ this._stylersMap.set("default", baseStyler);
3110
+ this.setBase(baseStyler);
3111
+ }
3112
+ static get(name) {
3113
+ return this._stylersMap.get(name);
3114
+ }
3115
+ };
3116
+
3117
+ //#endregion
3118
+ //#region src/items/Item.tsx
3119
+ var _tmpl$$2 = /* @__PURE__ */ template(`<div>`);
3120
+ const Item = (props) => {
3121
+ const itemData = () => {
3122
+ const r = buildIdLabel(props.idLabel);
3123
+ if (props.selected) r.label = `[${r.label}]`;
3124
+ return r;
3125
+ };
3126
+ const currentSTags = () => {
3127
+ const r = [];
3128
+ r.push("item");
3129
+ if (props.selected) r.push("item:selected");
3130
+ if (props.disabled) r.push("item:disabled");
3131
+ return r;
3132
+ };
3133
+ const currentStyler = () => {
3134
+ if (props.styler) return props.styler;
3135
+ else return Stylers.base;
3136
+ };
3137
+ const classProp = createMemo(() => {
3138
+ if (props.class == void 0) return {};
3139
+ else if (typeof props.class == "string") return { item: props.class };
3140
+ else return props.class;
3141
+ });
3142
+ const itemClasses = () => {
3143
+ const stags = currentSTags();
3144
+ const styler = currentStyler();
3145
+ const rawClasses = [];
3146
+ const stylerClasses = styler ? styler.classes(stags, props.vtags) : void 0;
3147
+ rawClasses.push(...stylerClasses ?? []);
3148
+ if (props.callback) rawClasses.push("select-none cursor-pointer");
3149
+ const customClasses = classProp();
3150
+ if (customClasses.item) rawClasses.push(customClasses.item);
3151
+ if (props.selected && customClasses.selected) rawClasses.push(customClasses.selected);
3152
+ if (props.disabled && customClasses.disabled) rawClasses.push(customClasses.disabled);
3153
+ rawClasses.push("relative");
3154
+ return twMerge(rawClasses);
3155
+ };
3156
+ const disablerClasses = createMemo(() => {
3157
+ const rawClasses = [];
3158
+ if (currentStyler()) rawClasses.push(...currentStyler().classes("item/disabler", props.vtags));
3159
+ if (classProp().disabler) rawClasses.push(classProp().disabler);
3160
+ rawClasses.push("absolute inset-0");
3161
+ return twMerge(rawClasses);
3162
+ });
3163
+ function handleClick() {
3164
+ if (props.callback != void 0) props.callback(itemData());
3165
+ }
3166
+ return (() => {
3167
+ var _el$ = _tmpl$$2();
3168
+ _el$.$$click = handleClick;
3169
+ insert(_el$, () => itemData().label, null);
3170
+ insert(_el$, createComponent(Show, {
3171
+ get when() {
3172
+ return props.disabled;
3173
+ },
3174
+ get children() {
3175
+ var _el$2 = _tmpl$$2();
3176
+ _el$2.$$click = (e) => {
3177
+ if (!props.clickableWhendisabled) e.stopPropagation();
3178
+ };
3179
+ createRenderEffect(() => className(_el$2, disablerClasses()));
3180
+ return _el$2;
3181
+ }
3182
+ }), null);
3183
+ createRenderEffect(() => className(_el$, itemClasses()));
3184
+ return _el$;
3185
+ })();
3186
+ };
3187
+ delegateEvents(["click"]);
3188
+
3189
+ //#endregion
3190
+ //#region src/Block.tsx
3191
+ var _tmpl$$1 = /* @__PURE__ */ template(`<div>`);
3192
+ const Block = (props) => {
3193
+ const currentStyler = () => {
3194
+ if (props.styler) return props.styler;
3195
+ else return Stylers.base;
3196
+ };
3197
+ function blockClasses() {
3198
+ const classes = currentStyler().classes("block", props.vtags) ?? [];
3199
+ if (props.class) classes.push(props.class);
3200
+ return twMerge(classes);
3201
+ }
3202
+ return (() => {
3203
+ var _el$ = _tmpl$$1();
3204
+ insert(_el$, () => props.children);
3205
+ createRenderEffect(() => className(_el$, blockClasses()));
3206
+ return _el$;
3207
+ })();
3208
+ };
3209
+
3210
+ //#endregion
3211
+ //#region src/items/ItemGroup.tsx
3212
+ const ItemGroup = (props) => {
3213
+ const items = () => props.items.map(buildIdLabel);
3214
+ createEffect(() => {
3215
+ console.log("GROUP ITEMS", items());
3216
+ });
3217
+ const currentVTags = createMemo(() => {
3218
+ const item = [];
3219
+ const group = [];
3220
+ const _vtags = props.vtags;
3221
+ if (Array.isArray(_vtags) || typeof _vtags == "string") group.push(...argTokenizeBySpaces(_vtags));
3222
+ else if (typeof _vtags == "object" && _vtags != null) {
3223
+ group.push(...argTokenizeBySpaces(_vtags.group));
3224
+ item.push(...argTokenizeBySpaces(_vtags.item));
3225
+ }
3226
+ return {
3227
+ group,
3228
+ item
3229
+ };
3230
+ });
3231
+ const classes = createMemo(() => {
3232
+ let group = "";
3233
+ let item = "";
3234
+ if (typeof props.class == "string") group = props.class;
3235
+ else if (props.class != void 0) {
3236
+ props.class;
3237
+ group = props.class.group ?? "";
3238
+ item = props.class.item ?? "";
3239
+ }
3240
+ return {
3241
+ group,
3242
+ item
3243
+ };
3244
+ });
3245
+ const blockClasses = () => {
3246
+ return twMerge("flex flex-row gap-1", classes().group);
3247
+ };
3248
+ const itemClasses = () => {
3249
+ return classes().item;
3250
+ };
3251
+ const callCallback = (item) => {
3252
+ if (props.callback) props.callback(item);
3253
+ };
3254
+ const itemSelected = (id) => {
3255
+ if (typeof props.selection == "string") return id == props.selection;
3256
+ else if (typeof props.selection == "object") return !!props.selection[id];
3257
+ return false;
3258
+ };
3259
+ return createComponent(Block, {
3260
+ get ["class"]() {
3261
+ return blockClasses();
3262
+ },
3263
+ get vtags() {
3264
+ return currentVTags().group;
3265
+ },
3266
+ get children() {
3267
+ return createComponent(For, {
3268
+ get each() {
3269
+ return items();
3270
+ },
3271
+ children: (item) => {
3272
+ const selected = () => itemSelected(item.id);
3273
+ return createComponent(Item, {
3274
+ idLabel: item,
3275
+ get selected() {
3276
+ return selected();
3277
+ },
3278
+ callback: () => callCallback(item),
3279
+ get ["class"]() {
3280
+ return itemClasses();
3281
+ },
3282
+ get vtags() {
3283
+ return currentVTags().item;
3284
+ }
3285
+ });
3286
+ }
3287
+ });
3288
+ }
3289
+ });
3290
+ };
3291
+
3292
+ //#endregion
3293
+ //#region src/soltw.tsx
3294
+ var _tmpl$ = /* @__PURE__ */ template(`<div class=bg-red-600>- - S O L T W - -`);
3295
+ const SolTw = (props) => {
3296
+ return _tmpl$();
3297
+ };
3298
+
3299
+ //#endregion
12
3300
  export { Block, Item, ItemGroup, SVTStyler, SolTw, Stylers, baseStyler, buildIdLabel, exclusiveTagsNormalize, mainTagNormalize, tagRuleMatches, twMergeNormalize };