@bedrock-layout/solid 1.7.3 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.m.js CHANGED
@@ -1,9 +1,10 @@
1
- import oe from "open-props";
2
- import { splitProps as X, createMemo as O, sharedConfig as g, untrack as B, createRenderEffect as w, createComponent as T, mergeProps as d, createContext as ce, useContext as le, createSignal as P, onMount as U, createEffect as q, onCleanup as Q, children as fe } from "solid-js";
3
- import { init as Y, registerCallback as J } from "@bedrock-layout/register-resize-callback";
4
- const ae = [
1
+ import ce from "open-props";
2
+ import { splitProps as X, createMemo as N, createRenderEffect as A, sharedConfig as h, untrack as M, createComponent as I, mergeProps as d, useContext as ae, createContext as le, createSignal as O, onMount as q, createEffect as Q, onCleanup as Y, children as fe } from "solid-js";
3
+ import { init as J, registerCallback as Z } from "@bedrock-layout/register-resize-callback";
4
+ const ue = [
5
5
  "allowfullscreen",
6
6
  "async",
7
+ "alpha",
7
8
  "autofocus",
8
9
  "autoplay",
9
10
  "checked",
@@ -26,26 +27,55 @@ const ae = [
26
27
  "required",
27
28
  "reversed",
28
29
  "seamless",
29
- "selected"
30
- ], ue = /* @__PURE__ */ new Set([
30
+ "selected",
31
+ "adauctionheaders",
32
+ "browsingtopics",
33
+ "credentialless",
34
+ "defaultchecked",
35
+ "defaultmuted",
36
+ "defaultselected",
37
+ "defer",
38
+ "disablepictureinpicture",
39
+ "disableremoteplayback",
40
+ "preservespitch",
41
+ "shadowrootclonable",
42
+ "shadowrootcustomelementregistry",
43
+ "shadowrootdelegatesfocus",
44
+ "shadowrootserializable",
45
+ "sharedstoragewritable"
46
+ ], de = /* @__PURE__ */ new Set([
31
47
  "className",
32
48
  "value",
33
49
  "readOnly",
50
+ "noValidate",
34
51
  "formNoValidate",
35
52
  "isMap",
36
53
  "noModule",
37
54
  "playsInline",
38
- ...ae
39
- ]), de = /* @__PURE__ */ new Set([
40
- "innerHTML",
41
- "textContent",
42
- "innerText",
43
- "children"
44
- ]), ye = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
55
+ "adAuctionHeaders",
56
+ "allowFullscreen",
57
+ "browsingTopics",
58
+ "defaultChecked",
59
+ "defaultMuted",
60
+ "defaultSelected",
61
+ "disablePictureInPicture",
62
+ "disableRemotePlayback",
63
+ "preservesPitch",
64
+ "shadowRootClonable",
65
+ "shadowRootCustomElementRegistry",
66
+ "shadowRootDelegatesFocus",
67
+ "shadowRootSerializable",
68
+ "sharedStorageWritable",
69
+ ...ue
70
+ ]), ye = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), he = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
45
71
  className: "class",
46
72
  htmlFor: "for"
47
73
  }), ge = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
48
74
  class: "className",
75
+ novalidate: {
76
+ $: "noValidate",
77
+ FORM: 1
78
+ },
49
79
  formnovalidate: {
50
80
  $: "formNoValidate",
51
81
  BUTTON: 1,
@@ -67,36 +97,69 @@ const ae = [
67
97
  $: "readOnly",
68
98
  INPUT: 1,
69
99
  TEXTAREA: 1
100
+ },
101
+ adauctionheaders: {
102
+ $: "adAuctionHeaders",
103
+ IFRAME: 1
104
+ },
105
+ allowfullscreen: {
106
+ $: "allowFullscreen",
107
+ IFRAME: 1
108
+ },
109
+ browsingtopics: {
110
+ $: "browsingTopics",
111
+ IMG: 1
112
+ },
113
+ defaultchecked: {
114
+ $: "defaultChecked",
115
+ INPUT: 1
116
+ },
117
+ defaultmuted: {
118
+ $: "defaultMuted",
119
+ AUDIO: 1,
120
+ VIDEO: 1
121
+ },
122
+ defaultselected: {
123
+ $: "defaultSelected",
124
+ OPTION: 1
125
+ },
126
+ disablepictureinpicture: {
127
+ $: "disablePictureInPicture",
128
+ VIDEO: 1
129
+ },
130
+ disableremoteplayback: {
131
+ $: "disableRemotePlayback",
132
+ AUDIO: 1,
133
+ VIDEO: 1
134
+ },
135
+ preservespitch: {
136
+ $: "preservesPitch",
137
+ AUDIO: 1,
138
+ VIDEO: 1
139
+ },
140
+ shadowrootclonable: {
141
+ $: "shadowRootClonable",
142
+ TEMPLATE: 1
143
+ },
144
+ shadowrootdelegatesfocus: {
145
+ $: "shadowRootDelegatesFocus",
146
+ TEMPLATE: 1
147
+ },
148
+ shadowrootserializable: {
149
+ $: "shadowRootSerializable",
150
+ TEMPLATE: 1
151
+ },
152
+ sharedstoragewritable: {
153
+ $: "sharedStorageWritable",
154
+ IFRAME: 1,
155
+ IMG: 1
70
156
  }
71
157
  });
72
158
  function me(e, t) {
73
159
  const n = ge[e];
74
160
  return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
75
161
  }
76
- const he = /* @__PURE__ */ new Set([
77
- "beforeinput",
78
- "click",
79
- "dblclick",
80
- "contextmenu",
81
- "focusin",
82
- "focusout",
83
- "input",
84
- "keydown",
85
- "keyup",
86
- "mousedown",
87
- "mousemove",
88
- "mouseout",
89
- "mouseover",
90
- "mouseup",
91
- "pointerdown",
92
- "pointermove",
93
- "pointerout",
94
- "pointerover",
95
- "pointerup",
96
- "touchend",
97
- "touchmove",
98
- "touchstart"
99
- ]), be = /* @__PURE__ */ new Set([
162
+ const be = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), $e = /* @__PURE__ */ new Set([
100
163
  "altGlyph",
101
164
  "altGlyphDef",
102
165
  "altGlyphItem",
@@ -174,159 +237,156 @@ const he = /* @__PURE__ */ new Set([
174
237
  "use",
175
238
  "view",
176
239
  "vkern"
177
- ]), $e = {
240
+ ]), we = {
178
241
  xlink: "http://www.w3.org/1999/xlink",
179
242
  xml: "http://www.w3.org/XML/1998/namespace"
180
- };
243
+ }, B = (e) => N(() => e());
181
244
  function Se(e, t, n) {
182
- let i = n.length, s = t.length, r = i, c = 0, o = 0, l = t[s - 1].nextSibling, f = null;
183
- for (; c < s || o < r; ) {
184
- if (t[c] === n[o]) {
185
- c++, o++;
245
+ let i = n.length, s = t.length, o = i, c = 0, r = 0, a = t[s - 1].nextSibling, l = null;
246
+ for (; c < s || r < o; ) {
247
+ if (t[c] === n[r]) {
248
+ c++, r++;
186
249
  continue;
187
250
  }
188
- for (; t[s - 1] === n[r - 1]; )
189
- s--, r--;
251
+ for (; t[s - 1] === n[o - 1]; )
252
+ s--, o--;
190
253
  if (s === c) {
191
- const a = r < i ? o ? n[o - 1].nextSibling : n[r - o] : l;
192
- for (; o < r; ) e.insertBefore(n[o++], a);
193
- } else if (r === o)
254
+ const f = o < i ? r ? n[r - 1].nextSibling : n[o - r] : a;
255
+ for (; r < o; ) e.insertBefore(n[r++], f);
256
+ } else if (o === r)
194
257
  for (; c < s; )
195
- (!f || !f.has(t[c])) && t[c].remove(), c++;
196
- else if (t[c] === n[r - 1] && n[o] === t[s - 1]) {
197
- const a = t[--s].nextSibling;
198
- e.insertBefore(n[o++], t[c++].nextSibling), e.insertBefore(n[--r], a), t[s] = n[r];
258
+ (!l || !l.has(t[c])) && t[c].remove(), c++;
259
+ else if (t[c] === n[o - 1] && n[r] === t[s - 1]) {
260
+ const f = t[--s].nextSibling;
261
+ e.insertBefore(n[r++], t[c++].nextSibling), e.insertBefore(n[--o], f), t[s] = n[o];
199
262
  } else {
200
- if (!f) {
201
- f = /* @__PURE__ */ new Map();
202
- let y = o;
203
- for (; y < r; ) f.set(n[y], y++);
263
+ if (!l) {
264
+ l = /* @__PURE__ */ new Map();
265
+ let y = r;
266
+ for (; y < o; ) l.set(n[y], y++);
204
267
  }
205
- const a = f.get(t[c]);
206
- if (a != null)
207
- if (o < a && a < r) {
268
+ const f = l.get(t[c]);
269
+ if (f != null)
270
+ if (r < f && f < o) {
208
271
  let y = c, u = 1, $;
209
- for (; ++y < s && y < r && !(($ = f.get(t[y])) == null || $ !== a + u); )
272
+ for (; ++y < s && y < o && !(($ = l.get(t[y])) == null || $ !== f + u); )
210
273
  u++;
211
- if (u > a - o) {
212
- const C = t[c];
213
- for (; o < a; ) e.insertBefore(n[o++], C);
214
- } else e.replaceChild(n[o++], t[c++]);
274
+ if (u > f - r) {
275
+ const j = t[c];
276
+ for (; r < f; ) e.insertBefore(n[r++], j);
277
+ } else e.replaceChild(n[r++], t[c++]);
215
278
  } else c++;
216
279
  else t[c++].remove();
217
280
  }
218
281
  }
219
282
  }
220
- const v = "_$DX_DELEGATE";
221
- function Z(e, t, n) {
222
- let i;
223
- const s = () => {
224
- const c = document.createElement("template");
225
- return c.innerHTML = e, c.content.firstChild;
226
- }, r = t ? () => B(() => document.importNode(i || (i = s()), !0)) : () => (i || (i = s())).cloneNode(!0);
227
- return r.cloneNode = r, r;
228
- }
229
- function xe(e, t = window.document) {
230
- const n = t[v] || (t[v] = /* @__PURE__ */ new Set());
283
+ const F = "_$DX_DELEGATE";
284
+ function K(e, t, n, i) {
285
+ let s;
286
+ const o = () => {
287
+ const r = document.createElement("template");
288
+ return r.innerHTML = e, r.content.firstChild;
289
+ }, c = t ? () => M(() => document.importNode(s || (s = o()), !0)) : () => (s || (s = o())).cloneNode(!0);
290
+ return c.cloneNode = c, c;
291
+ }
292
+ function Ae(e, t = window.document) {
293
+ const n = t[F] || (t[F] = /* @__PURE__ */ new Set());
231
294
  for (let i = 0, s = e.length; i < s; i++) {
232
- const r = e[i];
233
- n.has(r) || (n.add(r), t.addEventListener(r, Pe));
295
+ const o = e[i];
296
+ n.has(o) || (n.add(o), t.addEventListener(o, ve));
234
297
  }
235
298
  }
236
- function N(e, t, n) {
237
- j(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
299
+ function k(e, t, n) {
300
+ x(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
238
301
  }
239
- function we(e, t, n, i) {
240
- j(e) || (i == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, i));
302
+ function xe(e, t, n, i) {
303
+ x(e) || (i == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, i));
241
304
  }
242
- function je(e, t, n) {
243
- j(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
305
+ function Ce(e, t, n) {
306
+ x(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
244
307
  }
245
- function Ae(e, t) {
246
- j(e) || (t == null ? e.removeAttribute("class") : e.className = t);
308
+ function je(e, t) {
309
+ x(e) || (t == null ? e.removeAttribute("class") : e.className = t);
247
310
  }
248
- function Ce(e, t, n, i) {
311
+ function Ee(e, t, n, i) {
249
312
  if (i)
250
313
  Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
251
314
  else if (Array.isArray(n)) {
252
315
  const s = n[0];
253
- e.addEventListener(t, n[0] = (r) => s.call(e, n[1], r));
316
+ e.addEventListener(t, n[0] = (o) => s.call(e, n[1], o));
254
317
  } else e.addEventListener(t, n, typeof n != "function" && n);
255
318
  }
256
- function Ee(e, t, n = {}) {
319
+ function Ie(e, t, n = {}) {
257
320
  const i = Object.keys(t || {}), s = Object.keys(n);
258
- let r, c;
259
- for (r = 0, c = s.length; r < c; r++) {
260
- const o = s[r];
261
- !o || o === "undefined" || t[o] || (G(e, o, !1), delete n[o]);
321
+ let o, c;
322
+ for (o = 0, c = s.length; o < c; o++) {
323
+ const r = s[o];
324
+ !r || r === "undefined" || t[r] || (G(e, r, !1), delete n[r]);
262
325
  }
263
- for (r = 0, c = i.length; r < c; r++) {
264
- const o = i[r], l = !!t[o];
265
- !o || o === "undefined" || n[o] === l || !l || (G(e, o, !0), n[o] = l);
326
+ for (o = 0, c = i.length; o < c; o++) {
327
+ const r = i[o], a = !!t[r];
328
+ !r || r === "undefined" || n[r] === a || !a || (G(e, r, !0), n[r] = a);
266
329
  }
267
330
  return n;
268
331
  }
269
- function K(e, t, n) {
270
- if (!t) return n ? N(e, "style") : t;
332
+ function p(e, t, n) {
333
+ if (!t) return n ? k(e, "style") : t;
271
334
  const i = e.style;
272
335
  if (typeof t == "string") return i.cssText = t;
273
336
  typeof n == "string" && (i.cssText = n = void 0), n || (n = {}), t || (t = {});
274
- let s, r;
275
- for (r in n)
276
- t[r] == null && i.removeProperty(r), delete n[r];
277
- for (r in t)
278
- s = t[r], s !== n[r] && (i.setProperty(r, s), n[r] = s);
337
+ let s, o;
338
+ for (o in n)
339
+ t[o] == null && i.removeProperty(o), delete n[o];
340
+ for (o in t)
341
+ s = t[o], s !== n[o] && (i.setProperty(o, s), n[o] = s);
279
342
  return n;
280
343
  }
281
344
  function Te(e, t = {}, n, i) {
282
345
  const s = {};
283
- return w(
284
- () => s.children = I(e, t.children, s.children)
285
- ), w(() => typeof t.ref == "function" && p(t.ref, e)), w(() => Ie(e, t, n, !0, s, !0)), s;
346
+ return A(() => s.children = T(e, t.children, s.children)), A(() => typeof t.ref == "function" && ee(t.ref, e)), A(() => Pe(e, t, n, !0, s, !0)), s;
286
347
  }
287
- function p(e, t, n) {
288
- return B(() => e(t, n));
348
+ function ee(e, t, n) {
349
+ return M(() => e(t, n));
289
350
  }
290
- function ee(e, t, n, i) {
291
- if (typeof t != "function") return I(e, t, i, n);
292
- w((s) => I(e, t(), s, n), i);
351
+ function te(e, t, n, i) {
352
+ if (typeof t != "function") return T(e, t, i, n);
353
+ A((s) => T(e, t(), s, n), i);
293
354
  }
294
- function Ie(e, t, n, i, s = {}, r = !1) {
355
+ function Pe(e, t, n, i, s = {}, o = !1) {
295
356
  t || (t = {});
296
357
  for (const c in s)
297
358
  if (!(c in t)) {
298
359
  if (c === "children") continue;
299
- s[c] = H(e, c, null, s[c], n, r, t);
360
+ s[c] = H(e, c, null, s[c], n, o, t);
300
361
  }
301
362
  for (const c in t) {
302
363
  if (c === "children")
303
364
  continue;
304
- const o = t[c];
305
- s[c] = H(e, c, o, s[c], n, r, t);
365
+ const r = t[c];
366
+ s[c] = H(e, c, r, s[c], n, o, t);
306
367
  }
307
368
  }
308
- function ke(e) {
369
+ function Me(e) {
309
370
  let t, n;
310
- return !j() || !(t = g.registry.get(n = Me())) ? e() : (g.completed && g.completed.add(t), g.registry.delete(n), t);
371
+ return !x() || !(t = h.registry.get(n = ze())) ? e() : (h.completed && h.completed.add(t), h.registry.delete(n), t);
311
372
  }
312
- function j(e) {
313
- return !!g.context && !g.done && (!e || e.isConnected);
373
+ function x(e) {
374
+ return !!h.context && !h.done && (!e || e.isConnected);
314
375
  }
315
376
  function Oe(e) {
316
377
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
317
378
  }
318
379
  function G(e, t, n) {
319
380
  const i = t.trim().split(/\s+/);
320
- for (let s = 0, r = i.length; s < r; s++)
321
- e.classList.toggle(i[s], n);
381
+ for (let s = 0, o = i.length; s < o; s++) e.classList.toggle(i[s], n);
322
382
  }
323
- function H(e, t, n, i, s, r, c) {
324
- let o, l, f, a, y;
325
- if (t === "style") return K(e, n, i);
326
- if (t === "classList") return Ee(e, n, i);
383
+ function H(e, t, n, i, s, o, c) {
384
+ let r, a, l, f, y;
385
+ if (t === "style") return p(e, n, i);
386
+ if (t === "classList") return Ie(e, n, i);
327
387
  if (n === i) return i;
328
388
  if (t === "ref")
329
- r || n(e);
389
+ o || n(e);
330
390
  else if (t.slice(0, 3) === "on:") {
331
391
  const u = t.slice(3);
332
392
  i && e.removeEventListener(u, i, typeof i != "function" && i), n && e.addEventListener(u, n, typeof n != "function" && n);
@@ -334,42 +394,42 @@ function H(e, t, n, i, s, r, c) {
334
394
  const u = t.slice(10);
335
395
  i && e.removeEventListener(u, i, !0), n && e.addEventListener(u, n, !0);
336
396
  } else if (t.slice(0, 2) === "on") {
337
- const u = t.slice(2).toLowerCase(), $ = he.has(u);
397
+ const u = t.slice(2).toLowerCase(), $ = be.has(u);
338
398
  if (!$ && i) {
339
- const C = Array.isArray(i) ? i[0] : i;
340
- e.removeEventListener(u, C);
399
+ const j = Array.isArray(i) ? i[0] : i;
400
+ e.removeEventListener(u, j);
341
401
  }
342
- ($ || n) && (Ce(e, u, n, $), $ && xe([u]));
402
+ ($ || n) && (Ee(e, u, n, $), $ && Ae([u]));
343
403
  } else if (t.slice(0, 5) === "attr:")
344
- N(e, t.slice(5), n);
404
+ k(e, t.slice(5), n);
345
405
  else if (t.slice(0, 5) === "bool:")
346
- je(e, t.slice(5), n);
347
- else if ((y = t.slice(0, 5) === "prop:") || (f = de.has(t)) || !s && ((a = me(t, e.tagName)) || (l = ue.has(t))) || (o = e.nodeName.includes("-") || "is" in c)) {
406
+ Ce(e, t.slice(5), n);
407
+ else if ((y = t.slice(0, 5) === "prop:") || (l = ye.has(t)) || !s && ((f = me(t, e.tagName)) || (a = de.has(t))) || (r = e.nodeName.includes("-") || "is" in c)) {
348
408
  if (y)
349
- t = t.slice(5), l = !0;
350
- else if (j(e)) return n;
351
- t === "class" || t === "className" ? Ae(e, n) : o && !l && !f ? e[Oe(t)] = n : e[a || t] = n;
409
+ t = t.slice(5), a = !0;
410
+ else if (x(e)) return n;
411
+ t === "class" || t === "className" ? je(e, n) : r && !a && !l ? e[Oe(t)] = n : e[f || t] = n;
352
412
  } else {
353
- const u = s && t.indexOf(":") > -1 && $e[t.split(":")[0]];
354
- u ? we(e, u, t, n) : N(e, ye[t] || t, n);
413
+ const u = s && t.indexOf(":") > -1 && we[t.split(":")[0]];
414
+ u ? xe(e, u, t, n) : k(e, he[t] || t, n);
355
415
  }
356
416
  return n;
357
417
  }
358
- function Pe(e) {
359
- if (g.registry && g.events && g.events.find(([l, f]) => f === e))
418
+ function ve(e) {
419
+ if (h.registry && h.events && h.events.find(([a, l]) => l === e))
360
420
  return;
361
421
  let t = e.target;
362
- const n = `$$${e.type}`, i = e.target, s = e.currentTarget, r = (l) => Object.defineProperty(e, "target", {
422
+ const n = `$$${e.type}`, i = e.target, s = e.currentTarget, o = (a) => Object.defineProperty(e, "target", {
363
423
  configurable: !0,
364
- value: l
424
+ value: a
365
425
  }), c = () => {
366
- const l = t[n];
367
- if (l && !t.disabled) {
368
- const f = t[`${n}Data`];
369
- if (f !== void 0 ? l.call(t, f, e) : l.call(t, e), e.cancelBubble) return;
426
+ const a = t[n];
427
+ if (a && !t.disabled) {
428
+ const l = t[`${n}Data`];
429
+ if (l !== void 0 ? a.call(t, l, e) : a.call(t, e), e.cancelBubble) return;
370
430
  }
371
- return t.host && typeof t.host != "string" && !t.host._$host && t.contains(e.target) && r(t.host), !0;
372
- }, o = () => {
431
+ return t.host && typeof t.host != "string" && !t.host._$host && t.contains(e.target) && o(t.host), !0;
432
+ }, r = () => {
373
433
  for (; c() && (t = t._$host || t.parentNode || t.host); ) ;
374
434
  };
375
435
  if (Object.defineProperty(e, "currentTarget", {
@@ -377,129 +437,131 @@ function Pe(e) {
377
437
  get() {
378
438
  return t || document;
379
439
  }
380
- }), g.registry && !g.done && (g.done = _$HY.done = !0), e.composedPath) {
381
- const l = e.composedPath();
382
- r(l[0]);
383
- for (let f = 0; f < l.length - 2 && (t = l[f], !!c()); f++) {
440
+ }), h.registry && !h.done && (h.done = _$HY.done = !0), e.composedPath) {
441
+ const a = e.composedPath();
442
+ o(a[0]);
443
+ for (let l = 0; l < a.length - 2 && (t = a[l], !!c()); l++) {
384
444
  if (t._$host) {
385
- t = t._$host, o();
445
+ t = t._$host, r();
386
446
  break;
387
447
  }
388
448
  if (t.parentNode === s)
389
449
  break;
390
450
  }
391
- } else o();
392
- r(i);
451
+ } else r();
452
+ o(i);
393
453
  }
394
- function I(e, t, n, i, s) {
395
- const r = j(e);
396
- if (r) {
454
+ function T(e, t, n, i, s) {
455
+ const o = x(e);
456
+ if (o) {
397
457
  !n && (n = [...e.childNodes]);
398
- let o = [];
399
- for (let l = 0; l < n.length; l++) {
400
- const f = n[l];
401
- f.nodeType === 8 && f.data.slice(0, 2) === "!$" ? f.remove() : o.push(f);
458
+ let r = [];
459
+ for (let a = 0; a < n.length; a++) {
460
+ const l = n[a];
461
+ l.nodeType === 8 && l.data.slice(0, 2) === "!$" ? l.remove() : r.push(l);
402
462
  }
403
- n = o;
463
+ n = r;
404
464
  }
405
465
  for (; typeof n == "function"; ) n = n();
406
466
  if (t === n) return n;
407
467
  const c = typeof t;
408
468
  if (e = e, c === "string" || c === "number") {
409
- if (r || c === "number" && (t = t.toString(), t === n))
469
+ if (o || c === "number" && (t = t.toString(), t === n))
410
470
  return n;
411
471
  n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
412
472
  } else if (t == null || c === "boolean") {
413
- if (r) return n;
414
- n = k(e, n, i);
473
+ if (o) return n;
474
+ n = P(e, n, i);
415
475
  } else {
416
476
  if (c === "function")
417
- return w(() => {
418
- let o = t();
419
- for (; typeof o == "function"; ) o = o();
420
- n = I(e, o, n, i);
477
+ return A(() => {
478
+ let r = t();
479
+ for (; typeof r == "function"; ) r = r();
480
+ n = T(e, r, n, i);
421
481
  }), () => n;
422
482
  if (Array.isArray(t)) {
423
- const o = [], l = n && Array.isArray(n);
424
- if (L(o, t, n, s))
425
- return w(() => n = I(e, o, n, i, !0)), () => n;
426
- if (r)
427
- return o.length ? n = [...e.childNodes] : n;
428
- o.length === 0 ? n = k(e, n, i) : l ? n.length === 0 ? _(e, o, i) : Se(e, n, o) : (n && k(e), _(e, o)), n = o;
483
+ const r = [], a = n && Array.isArray(n);
484
+ if (L(r, t, n, s))
485
+ return A(() => n = T(e, r, n, i, !0)), () => n;
486
+ if (o)
487
+ return r.length ? n = [...e.childNodes] : n;
488
+ r.length === 0 ? n = P(e, n, i) : a ? n.length === 0 ? V(e, r, i) : Se(e, n, r) : (n && P(e), V(e, r)), n = r;
429
489
  } else if (t.nodeType) {
430
- if (r && t.parentNode) return n = t;
431
- Array.isArray(n) ? k(e, n, null, t) : n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild), n = t;
490
+ if (o && t.parentNode) return n = t;
491
+ Array.isArray(n) ? P(e, n, null, t) : n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild), n = t;
432
492
  }
433
493
  }
434
494
  return n;
435
495
  }
436
496
  function L(e, t, n, i) {
437
497
  let s = !1;
438
- for (let r = 0, c = t.length; r < c; r++) {
439
- let o = t[r], l = n && n[e.length], f;
440
- if (!(o == null || o === !0 || o === !1)) if ((f = typeof o) == "object" && o.nodeType)
441
- e.push(o);
442
- else if (Array.isArray(o))
443
- s = L(e, o, l) || s;
444
- else if (f === "function")
498
+ for (let o = 0, c = t.length; o < c; o++) {
499
+ let r = t[o], a = n && n[e.length], l;
500
+ if (!(r == null || r === !0 || r === !1)) if ((l = typeof r) == "object" && r.nodeType)
501
+ e.push(r);
502
+ else if (Array.isArray(r))
503
+ s = L(e, r, a) || s;
504
+ else if (l === "function")
445
505
  if (i) {
446
- for (; typeof o == "function"; ) o = o();
447
- s = L(
448
- e,
449
- Array.isArray(o) ? o : [o],
450
- Array.isArray(l) ? l : [l]
451
- ) || s;
506
+ for (; typeof r == "function"; ) r = r();
507
+ s = L(e, Array.isArray(r) ? r : [r], Array.isArray(a) ? a : [a]) || s;
452
508
  } else
453
- e.push(o), s = !0;
509
+ e.push(r), s = !0;
454
510
  else {
455
- const a = String(o);
456
- l && l.nodeType === 3 && l.data === a ? e.push(l) : e.push(document.createTextNode(a));
511
+ const f = String(r);
512
+ a && a.nodeType === 3 && a.data === f ? e.push(a) : e.push(document.createTextNode(f));
457
513
  }
458
514
  }
459
515
  return s;
460
516
  }
461
- function _(e, t, n = null) {
517
+ function V(e, t, n = null) {
462
518
  for (let i = 0, s = t.length; i < s; i++) e.insertBefore(t[i], n);
463
519
  }
464
- function k(e, t, n, i) {
520
+ function P(e, t, n, i) {
465
521
  if (n === void 0) return e.textContent = "";
466
522
  const s = i || document.createTextNode("");
467
523
  if (t.length) {
468
- let r = !1;
524
+ let o = !1;
469
525
  for (let c = t.length - 1; c >= 0; c--) {
470
- const o = t[c];
471
- if (s !== o) {
472
- const l = o.parentNode === e;
473
- !r && !c ? l ? e.replaceChild(s, o) : e.insertBefore(s, n) : l && o.remove();
474
- } else r = !0;
526
+ const r = t[c];
527
+ if (s !== r) {
528
+ const a = r.parentNode === e;
529
+ !o && !c ? a ? e.replaceChild(s, r) : e.insertBefore(s, n) : a && r.remove();
530
+ } else o = !0;
475
531
  }
476
532
  } else e.insertBefore(s, n);
477
533
  return [s];
478
534
  }
479
- function Me() {
480
- return g.getNextContextId();
535
+ function ze() {
536
+ return h.getNextContextId();
481
537
  }
482
- const ze = "http://www.w3.org/2000/svg";
483
- function Ne(e, t = !1) {
484
- return t ? document.createElementNS(ze, e) : document.createElement(e);
538
+ const Ne = "http://www.w3.org/2000/svg";
539
+ function ke(e, t = !1, n = void 0) {
540
+ return t ? document.createElementNS(Ne, e) : document.createElement(e, {
541
+ is: n
542
+ });
485
543
  }
486
- function Le(e) {
487
- const [t, n] = X(e, ["component"]), i = O(() => t.component);
488
- return O(() => {
489
- const s = i();
490
- switch (typeof s) {
544
+ function Le(e, t) {
545
+ const n = N(e);
546
+ return N(() => {
547
+ const i = n();
548
+ switch (typeof i) {
491
549
  case "function":
492
- return B(() => s(n));
550
+ return M(() => i(t));
493
551
  case "string":
494
- const r = be.has(s), c = g.context ? ke() : Ne(s, r);
495
- return Te(c, n, r), c;
552
+ const s = $e.has(i), o = h.context ? Me() : ke(i, s, M(() => t.is));
553
+ return Te(o, t, s), o;
496
554
  }
497
555
  });
498
556
  }
499
- function A(e) {
557
+ function Re(e) {
558
+ const [, t] = X(e, ["component"]);
559
+ return Le(() => e.component, t);
560
+ }
561
+ function C(e) {
500
562
  return e ?? void 0;
501
563
  }
502
- function m(e, t) {
564
+ function g(e, t) {
503
565
  return Object.keys(e).filter((n) => !t.includes(n)).reduce((n, i) => Object.defineProperty({
504
566
  ...n
505
567
  }, i, {
@@ -510,8 +572,8 @@ function m(e, t) {
510
572
  enumerable: !0
511
573
  }), {});
512
574
  }
513
- function h(e, t) {
514
- return T(Le, d({
575
+ function m(e, t) {
576
+ return I(Re, d({
515
577
  get component() {
516
578
  return e();
517
579
  }
@@ -529,111 +591,111 @@ function b(e) {
529
591
  });
530
592
  }, {}) : new Error("Please provide an object with accessor values only.");
531
593
  }
532
- const te = /^--\D{1}.{0,100}$/;
533
- function ne(e) {
534
- return te.test(e);
594
+ const ne = /^--\D{1}.{0,100}$/;
595
+ function ie(e) {
596
+ return ne.test(e);
535
597
  }
536
598
  function D(e) {
537
- return typeof e != "string" ? !1 : [/^[0-9]{0,10000}\.?[0-9]{1,10000}(vmin|vmax|vh|vw|%|ch|ex|em|rem|in|cm|mm|pt|pc|px)$/, /^var\(--\D{1}.{0,100}\)$/, te].some((t) => t.test(e));
599
+ return typeof e != "string" ? !1 : [/^[0-9]{0,10000}\.?[0-9]{1,10000}(vmin|vmax|vh|vw|%|ch|ex|em|rem|in|cm|mm|pt|pc|px)$/, /^var\(--\D{1}.{0,100}\)$/, ne].some((t) => t.test(e));
538
600
  }
539
601
  const {
540
- sizeXxs: We,
541
- sizeXs: Be,
542
- sizeSm: De,
543
- sizeMd: Re,
544
- sizeLg: ve,
545
- sizeXl: Ge,
546
- sizeXxl: He,
602
+ sizeXxs: De,
603
+ sizeXs: We,
604
+ sizeSm: Be,
605
+ sizeMd: Fe,
606
+ sizeLg: Ge,
607
+ sizeXl: He,
608
+ sizeXxl: Ve,
547
609
  sizeContent1: _e,
548
- sizeContent2: Fe,
549
- sizeContent3: Ve,
550
- sizeHeader1: Xe,
551
- sizeHeader2: Ue,
552
- sizeHeader3: qe,
553
- size000: Qe,
554
- size00: Ye,
555
- size1: Je,
556
- size2: Ze,
557
- size3: Ke,
558
- size4: pe,
559
- size5: et,
560
- size6: tt,
561
- size7: nt,
562
- size8: it,
563
- size9: st,
564
- size10: rt,
565
- size11: ot,
566
- size12: ct,
567
- size13: lt,
568
- size14: ft,
569
- size15: at
570
- } = oe, ut = {
571
- size000: Qe,
572
- size00: Ye,
573
- size1: Je,
574
- size2: Ze,
575
- size3: Ke,
576
- size4: pe,
577
- size5: et,
578
- size6: tt,
579
- size7: nt,
580
- size8: it,
581
- size9: st,
582
- size10: rt,
583
- size11: ot,
584
- size12: ct,
585
- size13: lt,
586
- size14: ft,
587
- size15: at
588
- }, dt = {
589
- sizeXxs: We,
590
- sizeXs: Be,
591
- sizeSm: De,
592
- sizeMd: Re,
593
- sizeLg: ve,
594
- sizeXl: Ge,
595
- sizeXxl: He,
610
+ sizeContent2: Ue,
611
+ sizeContent3: Xe,
612
+ sizeHeader1: qe,
613
+ sizeHeader2: Qe,
614
+ sizeHeader3: Ye,
615
+ size000: Je,
616
+ size00: Ze,
617
+ size1: Ke,
618
+ size2: pe,
619
+ size3: et,
620
+ size4: tt,
621
+ size5: nt,
622
+ size6: it,
623
+ size7: st,
624
+ size8: ot,
625
+ size9: rt,
626
+ size10: ct,
627
+ size11: at,
628
+ size12: lt,
629
+ size13: ft,
630
+ size14: ut,
631
+ size15: dt
632
+ } = ce, yt = {
633
+ size000: Je,
634
+ size00: Ze,
635
+ size1: Ke,
636
+ size2: pe,
637
+ size3: et,
638
+ size4: tt,
639
+ size5: nt,
640
+ size6: it,
641
+ size7: st,
642
+ size8: ot,
643
+ size9: rt,
644
+ size10: ct,
645
+ size11: at,
646
+ size12: lt,
647
+ size13: ft,
648
+ size14: ut,
649
+ size15: dt
650
+ }, ht = {
651
+ sizeXxs: De,
652
+ sizeXs: We,
653
+ sizeSm: Be,
654
+ sizeMd: Fe,
655
+ sizeLg: Ge,
656
+ sizeXl: He,
657
+ sizeXxl: Ve,
596
658
  sizeContent1: _e,
597
- sizeContent2: Fe,
598
- sizeContent3: Ve,
599
- sizeHeader1: Xe,
600
- sizeHeader2: Ue,
601
- sizeHeader3: qe
602
- }, yt = ut, gt = dt;
603
- function ie(e) {
659
+ sizeContent2: Ue,
660
+ sizeContent3: Xe,
661
+ sizeHeader1: qe,
662
+ sizeHeader2: Qe,
663
+ sizeHeader3: Ye
664
+ }, gt = yt, mt = ht;
665
+ function se(e) {
604
666
  return e.reduce((t, [n, i]) => ({
605
667
  ...t,
606
668
  [n]: i
607
669
  }), {});
608
670
  }
609
- function F(e, t) {
671
+ function _(e, t) {
610
672
  if (t !== void 0)
611
- return typeof t == "number" && t >= 0 ? `${t}px` : typeof t == "string" && D(t) ? ne(t) ? `var(${t})` : t : A(S(e, t));
673
+ return typeof t == "number" && t >= 0 ? `${t}px` : typeof t == "string" && D(t) ? ie(t) ? `var(${t})` : t : C(w(e, t));
612
674
  }
613
- function S(e, t) {
614
- const n = e.space ?? yt, i = ie(Object.entries(n).map(([s, r]) => [s, typeof r == "number" ? `${r}px` : r]));
615
- return A(i[t]);
675
+ function w(e, t) {
676
+ const n = e.space ?? gt, i = se(Object.entries(n).map(([s, o]) => [s, typeof o == "number" ? `${o}px` : o]));
677
+ return C(i[t]);
616
678
  }
617
- function M(e, t) {
679
+ function v(e, t) {
618
680
  if (t === void 0) return;
619
681
  if (typeof t == "number" && t >= 0) return `${t}px`;
620
- if (typeof t == "string" && D(t)) return ne(t) ? `var(${t})` : t;
621
- const n = e.sizes ?? gt, i = ie(Object.entries(n).map(([s, r]) => [s, typeof r == "number" ? `${r}px` : r]));
622
- return A(i[t]);
682
+ if (typeof t == "string" && D(t)) return ie(t) ? `var(${t})` : t;
683
+ const n = e.sizes ?? mt, i = se(Object.entries(n).map(([s, o]) => [s, typeof o == "number" ? `${o}px` : o]));
684
+ return C(i[t]);
623
685
  }
624
- function mt(e) {
686
+ function bt(e) {
625
687
  return e === void 0 ? "100%" : typeof e == "number" ? `${e}px` : e;
626
688
  }
627
- function vt(e) {
628
- const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), n = () => `--maxWidth: ${mt(e.maxWidth)};`, i = () => e.centerText ? "center-text" : "", s = () => e.centerChildren ? "center-children" : "", r = () => [i(), s()].filter(Boolean).join(" "), c = () => [t(), n()].join("; ");
629
- return h(() => e.as ?? "div", d(m(e, ["as", "maxWidth", "centerText", "centerChildren"]), b({
689
+ function Gt(e) {
690
+ const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((r, [a, l]) => r + `${a}:${l};`, ""), n = () => `--maxWidth: ${bt(e.maxWidth)};`, i = () => e.centerText ? "center-text" : "", s = () => e.centerChildren ? "center-children" : "", o = () => [i(), s()].filter(Boolean).join(" "), c = () => [t(), n()].join("; ");
691
+ return m(() => e.as ?? "div", d(g(e, ["as", "maxWidth", "centerText", "centerChildren"]), b({
630
692
  style: c,
631
- "data-bedrock-center": r
693
+ "data-br-center": o
632
694
  })));
633
695
  }
634
- const se = ce({});
635
- function Gt(e) {
636
- return T(se.Provider, {
696
+ const oe = le({});
697
+ function Ht(e) {
698
+ return I(oe.Provider, {
637
699
  get value() {
638
700
  return e.theme;
639
701
  },
@@ -642,62 +704,62 @@ function Gt(e) {
642
704
  }
643
705
  });
644
706
  }
645
- function x() {
707
+ function S() {
646
708
  try {
647
- return le(se);
709
+ return ae(oe);
648
710
  } catch {
649
711
  return {};
650
712
  }
651
713
  }
652
- function ht(e, t) {
653
- return M(e, t);
714
+ function $t(e, t) {
715
+ return v(e, t);
654
716
  }
655
- function Ht(e) {
656
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => `--minItemWidth: ${ht(t, e.minItemWidth)}`, r = () => e.noStretchedColumns === !0 ? "no-stretched-columns" : "", c = () => [n(), i(), s()].join("; ");
657
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter", "minItemWidth", "noStretchedColumns"]), b({
717
+ function Vt(e) {
718
+ const t = S(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((r, [a, l]) => r + `${a}:${l};`, ""), i = () => `--gutter: ${w(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => `--minItemWidth: ${$t(t, e.minItemWidth)}`, o = () => e.noStretchedColumns === !0 ? "no-stretched-columns" : "", c = () => [n(), i(), s()].join("; ");
719
+ return m(() => e.as ?? "div", d(g(e, ["as", "gutter", "minItemWidth", "noStretchedColumns"]), b({
658
720
  style: c,
659
- "data-bedrock-column-drop": r
721
+ "data-br-column-drop": o
660
722
  })));
661
723
  }
662
724
  function _t(e, t) {
663
- const [n, i] = P(!1), [s, r] = P();
664
- return U(() => {
665
- Y();
666
- }), q(() => {
667
- if (A(s()) === void 0) return;
725
+ const [n, i] = O(!1), [s, o] = O();
726
+ return q(() => {
727
+ J();
728
+ }), Q(() => {
729
+ if (C(s()) === void 0) return;
668
730
  t && t(s());
669
- const c = J(s(), (o) => {
670
- var f;
671
- const l = ((f = o.borderBoxSize) == null ? void 0 : f.inlineSize) ?? o.contentRect.width;
672
- if (l > 0) {
673
- const a = l <= e;
674
- i(a);
731
+ const c = Z(s(), (r) => {
732
+ var l;
733
+ const a = ((l = r.borderBoxSize) == null ? void 0 : l.inlineSize) ?? r.contentRect.width;
734
+ if (a > 0) {
735
+ const f = a <= e;
736
+ i(f);
675
737
  }
676
738
  });
677
- Q(c);
678
- }), [n, r];
739
+ Y(c);
740
+ }), [n, o];
679
741
  }
680
- function bt(e) {
742
+ function wt(e) {
681
743
  return Array.isArray(e) && e.length === 2 && e.every(Number.isFinite) || typeof e == "string" && /^\d{1,1000} {0,1}\/ {0,1}\d{1,1000}$/.test(e);
682
744
  }
683
- function $t(e) {
745
+ function St(e) {
684
746
  return Array.isArray(e) ? e.join("/") : e;
685
747
  }
686
- function St(e) {
687
- return bt(e) ? $t(e) : void 0;
748
+ function At(e) {
749
+ return wt(e) ? St(e) : void 0;
688
750
  }
689
- function Ft(e) {
690
- const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), n = () => St(e.ratio), i = () => n() ? `--ratio: ${n()}` : "", s = () => typeof e.position == "string" ? `--position: ${e.position}` : "50%", r = () => [t(), i(), s()].join("; ");
691
- return h(() => e.as ?? "div", d(m(e, ["as", "ratio", "position"]), b({
692
- style: r,
693
- "data-bedrock-frame": () => ""
751
+ function Ut(e) {
752
+ const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [r, a]) => c + `${r}:${a};`, ""), n = () => At(e.ratio), i = () => n() ? `--ratio: ${n()}` : "", s = () => typeof e.position == "string" ? `--position: ${e.position}` : "50%", o = () => [t(), i(), s()].join("; ");
753
+ return m(() => e.as ?? "div", d(g(e, ["as", "ratio", "position"]), b({
754
+ style: o,
755
+ "data-br-frame": () => ""
694
756
  })));
695
757
  }
696
758
  function xt(e) {
697
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth ?? 0}px`};`, r = () => [n(), i(), s()].join("; ");
698
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter", "minItemWidth"]), b({
699
- style: r,
700
- "data-bedrock-grid": () => e.variant === "masonry" ? "variant:masonry" : ""
759
+ const t = S(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [r, a]) => c + `${r}:${a};`, ""), i = () => `--gutter: ${w(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth ?? 0}px`};`, o = () => [n(), i(), s()].join("; ");
760
+ return m(() => e.as ?? "div", d(g(e, ["as", "gutter", "minItemWidth"]), b({
761
+ style: o,
762
+ "data-br-grid": () => e.variant === "masonry" ? "variant:masonry" : ""
701
763
  })));
702
764
  }
703
765
  const E = 96;
@@ -705,7 +767,7 @@ function re(e) {
705
767
  const t = String(e), n = parseFloat(t), [, i] = t.match(/[\d.\-+]*\s*(.*)/) ?? ["", ""];
706
768
  return [n, i];
707
769
  }
708
- function R(e, t) {
770
+ function W(e, t) {
709
771
  if (!e) return;
710
772
  const n = t ?? document.body, i = (e ?? "px").trim().toLowerCase();
711
773
  switch (i) {
@@ -717,11 +779,11 @@ function R(e, t) {
717
779
  return;
718
780
  case "ch":
719
781
  case "ex":
720
- return wt(i, n);
782
+ return Ct(i, n);
721
783
  case "em":
722
- return W(n, "font-size");
784
+ return R(n, "font-size");
723
785
  case "rem":
724
- return W(document.body, "font-size");
786
+ return R(document.body, "font-size");
725
787
  case "in":
726
788
  return E;
727
789
  case "cm":
@@ -735,95 +797,95 @@ function R(e, t) {
735
797
  case "px":
736
798
  return 1;
737
799
  default: {
738
- const [s, r] = re(i);
800
+ const [s, o] = re(i);
739
801
  if (isNaN(s)) return;
740
- if (!r) return s;
741
- const c = R(r, t);
802
+ if (!o) return s;
803
+ const c = W(o, t);
742
804
  return typeof c == "number" ? s * c : void 0;
743
805
  }
744
806
  }
745
807
  }
746
- function W(e, t) {
808
+ function R(e, t) {
747
809
  const [n, i] = re(
748
810
  getComputedStyle(e).getPropertyValue(t)
749
811
  );
750
- return n * (R(i, e) ?? 1);
812
+ return n * (W(i, e) ?? 1);
751
813
  }
752
- function wt(e, t) {
814
+ function Ct(e, t) {
753
815
  const n = document.createElement("div");
754
816
  n.style.height = "128" + e, t.appendChild(n);
755
- const i = W(n, "height") / 128;
817
+ const i = R(n, "height") / 128;
756
818
  return t.removeChild(n), i;
757
819
  }
758
- var jt = /* @__PURE__ */ Z("<div>");
759
- const z = 1, At = typeof window == "object" && typeof document == "object" && document.nodeType === 9, Ct = (e) => {
760
- const [t, n] = P(1), [i, s] = P(), r = x();
761
- return U(() => (Y(), 0)), q(() => {
762
- const c = A(i());
820
+ var jt = /* @__PURE__ */ K("<div>");
821
+ const z = 1, Et = typeof window == "object" && typeof document == "object" && document.nodeType === 9, It = (e) => {
822
+ const [t, n] = O(1), [i, s] = O(), o = S();
823
+ return q(() => (J(), 0)), Q(() => {
824
+ const c = C(i());
763
825
  if (c === void 0) return;
764
- const o = J(c, ({
765
- target: l
826
+ const r = Z(c, ({
827
+ target: a
766
828
  }) => {
767
829
  n(1);
768
- const f = e.gutter ? S(r, e.gutter) ?? "1px" : "1px", a = At ? R(f, l) : void 0, y = Math.max(a ?? z, z), [u] = Array.from(l.children), $ = 1 + Math.min(l.scrollHeight, u.scrollHeight), C = Math.max(Math.ceil($ / y), z);
769
- return n(C), 0;
830
+ const l = e.gutter ? w(o, e.gutter) ?? "1px" : "1px", f = Et ? W(l, a) : void 0, y = Math.max(f ?? z, z), [u] = Array.from(a.children), $ = 1 + Math.min(a.scrollHeight, u.scrollHeight), j = Math.max(Math.ceil($ / y), z);
831
+ return n(j), 0;
770
832
  });
771
- return Q(o), 0;
833
+ return Y(r), 0;
772
834
  }), (() => {
773
835
  var c = jt();
774
- return p(s, c), ee(c, () => e.children), w((o) => K(c, `grid-row: span ${t()};`, o)), c;
836
+ return ee(s, c), te(c, () => e.children), A((r) => p(c, `grid-row: span ${t()};`, r)), c;
775
837
  })();
776
- }, Vt = (e) => {
777
- const t = fe(() => e.children), i = [].concat(t()).filter(Boolean).map((s) => T(Ct, {
838
+ }, Xt = (e) => {
839
+ const t = fe(() => e.children), i = [].concat(t()).filter(Boolean).map((s) => I(It, {
778
840
  get gutter() {
779
841
  return e.gutter;
780
842
  },
781
843
  children: s
782
844
  }));
783
- return T(xt, d({
845
+ return I(xt, d({
784
846
  style: "grid-template-rows: 1px;"
785
847
  }, e, {
786
848
  children: i
787
849
  }));
788
- }, Et = {
850
+ }, Tt = {
789
851
  start: "justify:start",
790
852
  end: "justify:end",
791
853
  center: "justify:center",
792
854
  "space-between": "justify:space-between",
793
855
  "space-around": "justify:space-around"
794
- }, Tt = {
856
+ }, Pt = {
795
857
  start: "align:start",
796
858
  end: "align:end",
797
859
  center: "align:center",
798
860
  stretch: "align:stretch"
799
861
  };
800
- function Xt(e) {
801
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((l, [f, a]) => l + `${f}:${a};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => e.justify !== void 0 ? Et[e.justify] : void 0, r = () => e.align !== void 0 ? Tt[e.align] : void 0, c = () => [n(), i()].join("; "), o = () => [s(), r()].filter(Boolean).join(" ");
802
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter", "justify", "align"]), b({
862
+ function qt(e) {
863
+ const t = S(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((a, [l, f]) => a + `${l}:${f};`, ""), i = () => `--gutter: ${w(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => e.justify !== void 0 ? Tt[e.justify] : void 0, o = () => e.align !== void 0 ? Pt[e.align] : void 0, c = () => [n(), i()].join("; "), r = () => [s(), o()].filter(Boolean).join(" ");
864
+ return m(() => e.as ?? "div", d(g(e, ["as", "gutter", "justify", "align"]), b({
803
865
  style: c,
804
- "data-bedrock-inline-cluster": o
866
+ "data-br-inline-cluster": r
805
867
  })));
806
868
  }
807
- const It = {
869
+ const Mt = {
808
870
  start: "justify:start",
809
871
  end: "justify:end",
810
872
  center: "justify:center",
811
873
  "space-between": "justify:space-between",
812
874
  "space-around": "justify:space-around"
813
- }, kt = {
875
+ }, Ot = {
814
876
  start: "align:start",
815
877
  end: "align:end",
816
878
  center: "align:center",
817
879
  stretch: "align:stretch"
818
880
  };
819
- function Ut(e) {
820
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((y, [u, $]) => y + `${u}:${$};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => e.minItemWidth ? `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth}px`};` : void 0, r = () => e.switchAt ? `--switchAt: ${M(t, e.switchAt) ?? "0px"};` : "", c = () => e.justify !== void 0 ? It[e.justify] : void 0, o = () => e.align !== void 0 ? kt[e.align] : void 0, l = () => e.stretch ? `stretch:${e.stretch}` : void 0, f = () => [n(), i(), r(), s()].join("; "), a = () => [c(), o(), l()].filter(Boolean).join(" ");
821
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter", "justify", "align", "stretch", "switchAt"]), b({
822
- style: f,
823
- "data-bedrock-inline": a
881
+ function Qt(e) {
882
+ const t = S(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((y, [u, $]) => y + `${u}:${$};`, ""), i = () => `--gutter: ${w(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => e.minItemWidth ? `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth}px`};` : void 0, o = () => e.switchAt ? `--switchAt: ${v(t, e.switchAt) ?? "0px"};` : "", c = () => e.justify !== void 0 ? Mt[e.justify] : void 0, r = () => e.align !== void 0 ? Ot[e.align] : void 0, a = () => e.stretch ? `stretch:${e.stretch}` : void 0, l = () => [n(), i(), o(), s()].join("; "), f = () => [c(), r(), a()].filter(Boolean).join(" ");
883
+ return m(() => e.as ?? "div", d(g(e, ["as", "gutter", "justify", "align", "stretch", "switchAt"]), b({
884
+ style: l,
885
+ "data-br-inline": f
824
886
  })));
825
887
  }
826
- const Ot = (e) => ({
888
+ const vt = (e) => ({
827
889
  left: "padding-inline-start",
828
890
  right: "padding-inline-end",
829
891
  top: "padding-block-start",
@@ -832,27 +894,27 @@ const Ot = (e) => ({
832
894
  inlineEnd: "padding-inline-end",
833
895
  blockStart: "padding-block-start",
834
896
  blockEnd: "padding-block-end"
835
- })[e], Pt = (e, t) => {
897
+ })[e], zt = (e, t) => {
836
898
  if (!t) return "";
837
899
  if (Array.isArray(t) && t.length > 4)
838
900
  throw new Error("padding arrays can only be 4 or less in length");
839
- const n = typeof t == "object" && !Array.isArray(t) ? Object.entries(t).reduce((i, [s, r]) => ({
901
+ const n = typeof t == "object" && !Array.isArray(t) ? Object.entries(t).reduce((i, [s, o]) => ({
840
902
  ...i,
841
- [Ot(s)]: F(e, r) ?? "0px"
903
+ [vt(s)]: _(e, o) ?? "0px"
842
904
  }), {}) : {
843
- padding: Array.from(Array.isArray(t) ? t : [t]).map((i) => F(e, i) ?? "0px").join(" ")
905
+ padding: Array.from(Array.isArray(t) ? t : [t]).map((i) => _(e, i) ?? "0px").join(" ")
844
906
  };
845
- return Object.entries(n).reduce((i, [s, r]) => i + `${s}:${r};`, "");
907
+ return Object.entries(n).reduce((i, [s, o]) => i + `${s}:${o};`, "");
846
908
  };
847
- function qt(e) {
848
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((r, [c, o]) => r + `${c}:${o};`, ""), i = () => Pt(t, e.padding), s = () => [n(), i()].join("; ");
849
- return h(() => e.as ?? "div", d(m(e, ["as", "padding"]), b({
909
+ function Yt(e) {
910
+ const t = S(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [c, r]) => o + `${c}:${r};`, ""), i = () => zt(t, e.padding), s = () => [n(), i()].join("; ");
911
+ return m(() => e.as ?? "div", d(g(e, ["as", "padding"]), b({
850
912
  style: s,
851
- "data-bedrock-padbox": () => ""
913
+ "data-br-padbox": () => ""
852
914
  })));
853
915
  }
854
- function Qt(e) {
855
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => {
916
+ function Jt(e) {
917
+ const t = S(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [r, a]) => c + `${r}:${a};`, ""), i = () => `--gutter: ${w(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => {
856
918
  switch (e.snapType) {
857
919
  case "none":
858
920
  return "snapType:none";
@@ -863,13 +925,13 @@ function Qt(e) {
863
925
  default:
864
926
  return "snapType:none";
865
927
  }
866
- }, r = () => [n(), i()].join("; ");
867
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter"]), b({
868
- style: r,
869
- "data-bedrock-reel": s
928
+ }, o = () => [n(), i()].join("; ");
929
+ return m(() => e.as ?? "div", d(g(e, ["as", "gutter"]), b({
930
+ style: o,
931
+ "data-br-reel": s
870
932
  })));
871
933
  }
872
- const V = {
934
+ const U = {
873
935
  "1/4": "fraction:1/4",
874
936
  "1/3": "fraction:1/3",
875
937
  "1/2": "fraction:1/2",
@@ -878,85 +940,85 @@ const V = {
878
940
  "auto-start": "fraction:auto-start",
879
941
  "auto-end": "fraction:auto-end"
880
942
  };
881
- function Yt(e) {
882
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((l, [f, a]) => l + `${f}:${a};`, ""), i = () => e.switchAt ? `--switchAt: ${M(t, e.switchAt) ?? "0px"};` : "", s = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, r = () => V[e.fraction ?? "1/2"] ?? V["1/2"], c = () => e.minItemWidth ? `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth}px`};` : void 0, o = () => [n(), s(), i(), c()].join("; ");
883
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter", "fraction"]), b({
884
- style: o,
885
- "data-bedrock-split": r
943
+ function Zt(e) {
944
+ const t = S(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((a, [l, f]) => a + `${l}:${f};`, ""), i = () => e.switchAt ? `--switchAt: ${v(t, e.switchAt) ?? "0px"};` : "", s = () => `--gutter: ${w(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, o = () => U[e.fraction ?? "1/2"] ?? U["1/2"], c = () => e.minItemWidth ? `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth}px`};` : void 0, r = () => [n(), s(), i(), c()].join("; ");
945
+ return m(() => e.as ?? "div", d(g(e, ["as", "gutter", "fraction"]), b({
946
+ style: r,
947
+ "data-br-split": o
886
948
  })));
887
949
  }
888
- const Mt = {
950
+ const Nt = {
889
951
  start: "align:start",
890
952
  end: "align:end",
891
953
  center: "align:center",
892
954
  stretch: "align:stretch"
893
955
  };
894
- function Jt(e) {
895
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => [n(), i()].join("; "), r = () => e.align !== void 0 ? Mt[e.align] : void 0, c = () => [r()].filter(Boolean).join(" ");
896
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter"]), b({
956
+ function Kt(e) {
957
+ const t = S(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((r, [a, l]) => r + `${a}:${l};`, ""), i = () => `--gutter: ${w(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => [n(), i()].join("; "), o = () => e.align !== void 0 ? Nt[e.align] : void 0, c = () => [o()].filter(Boolean).join(" ");
958
+ return m(() => e.as ?? "div", d(g(e, ["as", "gutter"]), b({
897
959
  style: s,
898
- "data-bedrock-stack": c
960
+ "data-br-stack": c
899
961
  })));
900
962
  }
901
- var zt = /* @__PURE__ */ Z("<div data-bedrock-cover-centered>");
902
- function Nt(e) {
963
+ var kt = /* @__PURE__ */ K("<div data-br-cover-centered>");
964
+ function Lt(e) {
903
965
  return typeof e == "number" ? `${e}px` : e && D(e) ? e : "100vh";
904
966
  }
905
- function Lt(e) {
906
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => `--minHeight: ${Nt(e.minHeight)};`, r = () => e.variant === "stretch-content" || e.stretchContent === !0 ? "stretch-content" : "", c = () => [n(), i(), s()].join("; ");
907
- return h(() => e.as ?? "div", d(m(e, ["as", "minHeight", "stretchContent"]), b({
967
+ function Rt(e) {
968
+ const t = S(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((r, [a, l]) => r + `${a}:${l};`, ""), i = () => `--gutter: ${w(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => `--minHeight: ${Lt(e.minHeight)};`, o = () => e.variant === "stretch-content" || e.stretchContent === !0 ? "stretch-content" : "", c = () => [n(), i(), s()].join("; ");
969
+ return m(() => e.as ?? "div", d(g(e, ["as", "minHeight", "stretchContent"]), b({
908
970
  style: c,
909
- "data-bedrock-cover": r
971
+ "data-br-cover": o
910
972
  })));
911
973
  }
912
- function Zt(e) {
974
+ function pt(e) {
913
975
  const [t, n] = X(e, ["children", "top", "bottom"]);
914
- return T(Lt, d(n, {
976
+ return I(Rt, d(n, {
915
977
  get children() {
916
- return [O(() => t.top), (() => {
917
- var i = zt();
918
- return ee(i, () => t.children), i;
919
- })(), O(() => t.bottom)];
978
+ return [B(() => t.top), (() => {
979
+ var i = kt();
980
+ return te(i, () => t.children), i;
981
+ })(), B(() => t.bottom)];
920
982
  }
921
983
  }));
922
984
  }
923
- function Kt(e) {
924
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => `--columns: ${A(Math.max(e.colCount ?? e.columns ?? 1, 1)) ?? 1};`, r = () => e.switchAt ? `--switchAt: ${M(t, e.switchAt) ?? "0px"};` : "", c = () => [n(), i(), s(), r()].filter(Boolean).join("; ");
925
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter", "columns", "colCount", "switchAt"]), b({
985
+ function en(e) {
986
+ const t = S(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((r, [a, l]) => r + `${a}:${l};`, ""), i = () => `--gutter: ${w(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => `--columns: ${C(Math.max(e.colCount ?? e.columns ?? 1, 1)) ?? 1};`, o = () => e.switchAt ? `--switchAt: ${v(t, e.switchAt) ?? "0px"};` : "", c = () => [n(), i(), s(), o()].filter(Boolean).join("; ");
987
+ return m(() => e.as ?? "div", d(g(e, ["as", "gutter", "columns", "colCount", "switchAt"]), b({
926
988
  style: c,
927
- "data-bedrock-columns": () => ""
989
+ "data-br-columns": () => ""
928
990
  })));
929
991
  }
930
- const Wt = (e) => typeof e == "number" ? e : 1;
931
- function pt(e) {
932
- const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), n = () => `--span: ${Wt(e.span)};`, i = () => e.offsetStart && e.offsetStart > 0 ? `--offsetStart: ${e.offsetStart};` : "", s = () => e.offsetEnd && e.offsetEnd > 0 ? `--offsetEnd: ${e.offsetEnd};` : "", r = () => [t(), n(), i(), s()].join("; ");
933
- return h(() => e.as ?? "div", d(m(e, ["as", "span", "offsetStart", "offsetEnd"]), b({
934
- style: r,
935
- "data-bedrock-column": () => ""
992
+ const Dt = (e) => typeof e == "number" ? e : 1;
993
+ function tn(e) {
994
+ const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [r, a]) => c + `${r}:${a};`, ""), n = () => `--span: ${Dt(e.span)};`, i = () => e.offsetStart && e.offsetStart > 0 ? `--offsetStart: ${e.offsetStart};` : "", s = () => e.offsetEnd && e.offsetEnd > 0 ? `--offsetEnd: ${e.offsetEnd};` : "", o = () => [t(), n(), i(), s()].join("; ");
995
+ return m(() => e.as ?? "div", d(g(e, ["as", "span", "offsetStart", "offsetEnd"]), b({
996
+ style: o,
997
+ "data-br-column": () => ""
936
998
  })));
937
999
  }
938
1000
  export {
939
- vt as Center,
940
- pt as Column,
941
- Ht as ColumnDrop,
942
- Kt as Columns,
943
- Zt as Cover,
944
- Ft as Frame,
1001
+ Gt as Center,
1002
+ tn as Column,
1003
+ Vt as ColumnDrop,
1004
+ en as Columns,
1005
+ pt as Cover,
1006
+ Ut as Frame,
945
1007
  xt as Grid,
946
- Ut as Inline,
947
- Xt as InlineCluster,
948
- Vt as MasonryGrid,
949
- qt as PadBox,
950
- Qt as Reel,
951
- Yt as Split,
952
- Jt as Stack,
953
- Gt as ThemeProvider,
1008
+ Qt as Inline,
1009
+ qt as InlineCluster,
1010
+ Xt as MasonryGrid,
1011
+ Yt as PadBox,
1012
+ Jt as Reel,
1013
+ Zt as Split,
1014
+ Kt as Stack,
1015
+ Ht as ThemeProvider,
954
1016
  D as checkIsCSSLength,
955
1017
  _t as createContainerQuery,
956
- F as getSafeGutter,
957
- M as getSizeValue,
958
- S as getSpacingValue,
959
- gt as sizes,
960
- yt as spacing,
961
- x as useTheme
1018
+ _ as getSafeGutter,
1019
+ v as getSizeValue,
1020
+ w as getSpacingValue,
1021
+ mt as sizes,
1022
+ gt as spacing,
1023
+ S as useTheme
962
1024
  };