@lanaco/lnc-react-ui
Version:
React component library
878 lines (877 loc) • 24.4 kB
JavaScript
import * as k from "react";
import { forwardRef as Se, useContext as ke } from "react";
function $e(e) {
if (e.sheet)
return e.sheet;
for (var r = 0; r < document.styleSheets.length; r++)
if (document.styleSheets[r].ownerNode === e)
return document.styleSheets[r];
}
function Ae(e) {
var r = document.createElement("style");
return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
}
var Te = /* @__PURE__ */ function() {
function e(t) {
var n = this;
this._insertTag = function(a) {
var i;
n.tags.length === 0 ? n.insertionPoint ? i = n.insertionPoint.nextSibling : n.prepend ? i = n.container.firstChild : i = n.before : i = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(a, i), n.tags.push(a);
}, this.isSpeedy = t.speedy === void 0 ? !0 : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container = t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;
}
var r = e.prototype;
return r.hydrate = function(n) {
n.forEach(this._insertTag);
}, r.insert = function(n) {
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Ae(this));
var a = this.tags[this.tags.length - 1];
if (this.isSpeedy) {
var i = $e(a);
try {
i.insertRule(n, i.cssRules.length);
} catch {
}
} else
a.appendChild(document.createTextNode(n));
this.ctr++;
}, r.flush = function() {
this.tags.forEach(function(n) {
var a;
return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
}), this.tags = [], this.ctr = 0;
}, e;
}(), x = "-ms-", Y = "-moz-", f = "-webkit-", le = "comm", ne = "rule", ae = "decl", Pe = "@import", me = "@keyframes", Oe = "@layer", Re = Math.abs, U = String.fromCharCode, Ne = Object.assign;
function Ie(e, r) {
return g(e, 0) ^ 45 ? (((r << 2 ^ g(e, 0)) << 2 ^ g(e, 1)) << 2 ^ g(e, 2)) << 2 ^ g(e, 3) : 0;
}
function pe(e) {
return e.trim();
}
function Me(e, r) {
return (e = r.exec(e)) ? e[0] : e;
}
function o(e, r, t) {
return e.replace(r, t);
}
function X(e, r) {
return e.indexOf(r);
}
function g(e, r) {
return e.charCodeAt(r) | 0;
}
function L(e, r, t) {
return e.slice(r, t);
}
function T(e) {
return e.length;
}
function ie(e) {
return e.length;
}
function j(e, r) {
return r.push(e), e;
}
function _e(e, r) {
return e.map(r).join("");
}
var Z = 1, _ = 1, ve = 0, C = 0, b = 0, W = "";
function J(e, r, t, n, a, i, s) {
return { value: e, root: r, parent: t, type: n, props: a, children: i, line: Z, column: _, length: s, return: "" };
}
function F(e, r) {
return Ne(J("", null, null, "", null, null, 0), e, { length: -e.length }, r);
}
function We() {
return b;
}
function Fe() {
return b = C > 0 ? g(W, --C) : 0, _--, b === 10 && (_ = 1, Z--), b;
}
function S() {
return b = C < ve ? g(W, C++) : 0, _++, b === 10 && (_ = 1, Z++), b;
}
function O() {
return g(W, C);
}
function B() {
return C;
}
function D(e, r) {
return L(W, e, r);
}
function z(e) {
switch (e) {
case 0:
case 9:
case 10:
case 13:
case 32:
return 5;
case 33:
case 43:
case 44:
case 47:
case 62:
case 64:
case 126:
case 59:
case 123:
case 125:
return 4;
case 58:
return 3;
case 34:
case 39:
case 40:
case 91:
return 2;
case 41:
case 93:
return 1;
}
return 0;
}
function be(e) {
return Z = _ = 1, ve = T(W = e), C = 0, [];
}
function ge(e) {
return W = "", e;
}
function H(e) {
return pe(D(C - 1, ee(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
function Le(e) {
for (; (b = O()) && b < 33; )
S();
return z(e) > 2 || z(b) > 3 ? "" : " ";
}
function ze(e, r) {
for (; --r && S() && !(b < 48 || b > 102 || b > 57 && b < 65 || b > 70 && b < 97); )
;
return D(e, B() + (r < 6 && O() == 32 && S() == 32));
}
function ee(e) {
for (; S(); )
switch (b) {
case e:
return C;
case 34:
case 39:
e !== 34 && e !== 39 && ee(b);
break;
case 40:
e === 41 && ee(e);
break;
case 92:
S();
break;
}
return C;
}
function Ge(e, r) {
for (; S() && e + b !== 57; )
if (e + b === 84 && O() === 47)
break;
return "/*" + D(r, C - 1) + "*" + U(e === 47 ? e : S());
}
function De(e) {
for (; !z(O()); )
S();
return D(e, C);
}
function Ve(e) {
return ge(K("", null, null, null, [""], e = be(e), 0, [0], e));
}
function K(e, r, t, n, a, i, s, c, u) {
for (var h = 0, l = 0, p = s, R = 0, N = 0, E = 0, m = 1, w = 1, v = 1, y = 0, $ = "", V = a, I = i, A = n, d = $; w; )
switch (E = y, y = S()) {
case 40:
if (E != 108 && g(d, p - 1) == 58) {
X(d += o(H(y), "&", "&\f"), "&\f") != -1 && (v = -1);
break;
}
case 34:
case 39:
case 91:
d += H(y);
break;
case 9:
case 10:
case 13:
case 32:
d += Le(E);
break;
case 92:
d += ze(B() - 1, 7);
continue;
case 47:
switch (O()) {
case 42:
case 47:
j(je(Ge(S(), B()), r, t), u);
break;
default:
d += "/";
}
break;
case 123 * m:
c[h++] = T(d) * v;
case 125 * m:
case 59:
case 0:
switch (y) {
case 0:
case 125:
w = 0;
case 59 + l:
v == -1 && (d = o(d, /\f/g, "")), N > 0 && T(d) - p && j(N > 32 ? ce(d + ";", n, t, p - 1) : ce(o(d, " ", "") + ";", n, t, p - 2), u);
break;
case 59:
d += ";";
default:
if (j(A = se(d, r, t, h, l, a, c, $, V = [], I = [], p), i), y === 123)
if (l === 0)
K(d, r, A, A, V, i, p, c, I);
else
switch (R === 99 && g(d, 3) === 110 ? 100 : R) {
case 100:
case 108:
case 109:
case 115:
K(e, A, A, n && j(se(e, A, A, 0, 0, a, c, $, a, V = [], p), I), a, I, p, c, n ? V : I);
break;
default:
K(d, A, A, A, [""], I, 0, c, I);
}
}
h = l = N = 0, m = v = 1, $ = d = "", p = s;
break;
case 58:
p = 1 + T(d), N = E;
default:
if (m < 1) {
if (y == 123)
--m;
else if (y == 125 && m++ == 0 && Fe() == 125)
continue;
}
switch (d += U(y), y * m) {
case 38:
v = l > 0 ? 1 : (d += "\f", -1);
break;
case 44:
c[h++] = (T(d) - 1) * v, v = 1;
break;
case 64:
O() === 45 && (d += H(S())), R = O(), l = p = T($ = d += De(B())), y++;
break;
case 45:
E === 45 && T(d) == 2 && (m = 0);
}
}
return i;
}
function se(e, r, t, n, a, i, s, c, u, h, l) {
for (var p = a - 1, R = a === 0 ? i : [""], N = ie(R), E = 0, m = 0, w = 0; E < n; ++E)
for (var v = 0, y = L(e, p + 1, p = Re(m = s[E])), $ = e; v < N; ++v)
($ = pe(m > 0 ? R[v] + " " + y : o(y, /&\f/g, R[v]))) && (u[w++] = $);
return J(e, r, t, a === 0 ? ne : c, u, h, l);
}
function je(e, r, t) {
return J(e, r, t, le, U(We()), L(e, 2, -2), 0);
}
function ce(e, r, t, n) {
return J(e, r, t, ae, L(e, 0, n), L(e, n + 1, -1), n);
}
function M(e, r) {
for (var t = "", n = ie(e), a = 0; a < n; a++)
t += r(e[a], a, e, r) || "";
return t;
}
function Be(e, r, t, n) {
switch (e.type) {
case Oe:
if (e.children.length) break;
case Pe:
case ae:
return e.return = e.return || e.value;
case le:
return "";
case me:
return e.return = e.value + "{" + M(e.children, n) + "}";
case ne:
e.value = e.props.join(",");
}
return T(t = M(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
}
function He(e) {
var r = ie(e);
return function(t, n, a, i) {
for (var s = "", c = 0; c < r; c++)
s += e[c](t, n, a, i) || "";
return s;
};
}
function Ke(e) {
return function(r) {
r.root || (r = r.return) && e(r);
};
}
var fe = function(r) {
var t = /* @__PURE__ */ new WeakMap();
return function(n) {
if (t.has(n))
return t.get(n);
var a = r(n);
return t.set(n, a), a;
};
};
function Ye(e) {
var r = /* @__PURE__ */ Object.create(null);
return function(t) {
return r[t] === void 0 && (r[t] = e(t)), r[t];
};
}
var qe = function(r, t, n) {
for (var a = 0, i = 0; a = i, i = O(), a === 38 && i === 12 && (t[n] = 1), !z(i); )
S();
return D(r, C);
}, Ue = function(r, t) {
var n = -1, a = 44;
do
switch (z(a)) {
case 0:
a === 38 && O() === 12 && (t[n] = 1), r[n] += qe(C - 1, t, n);
break;
case 2:
r[n] += H(a);
break;
case 4:
if (a === 44) {
r[++n] = O() === 58 ? "&\f" : "", t[n] = r[n].length;
break;
}
default:
r[n] += U(a);
}
while (a = S());
return r;
}, Ze = function(r, t) {
return ge(Ue(be(r), t));
}, oe = /* @__PURE__ */ new WeakMap(), Je = function(r) {
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
// negative .length indicates that this rule has been already prefixed
r.length < 1)) {
for (var t = r.value, n = r.parent, a = r.column === n.column && r.line === n.line; n.type !== "rule"; )
if (n = n.parent, !n) return;
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !oe.get(n)) && !a) {
oe.set(r, !0);
for (var i = [], s = Ze(t, i), c = n.props, u = 0, h = 0; u < s.length; u++)
for (var l = 0; l < c.length; l++, h++)
r.props[h] = i[u] ? s[u].replace(/&\f/g, c[l]) : c[l] + " " + s[u];
}
}
}, Qe = function(r) {
if (r.type === "decl") {
var t = r.value;
// charcode for l
t.charCodeAt(0) === 108 && // charcode for b
t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
}
};
function ye(e, r) {
switch (Ie(e, r)) {
case 5103:
return f + "print-" + e + e;
case 5737:
case 4201:
case 3177:
case 3433:
case 1641:
case 4457:
case 2921:
case 5572:
case 6356:
case 5844:
case 3191:
case 6645:
case 3005:
case 6391:
case 5879:
case 5623:
case 6135:
case 4599:
case 4855:
case 4215:
case 6389:
case 5109:
case 5365:
case 5621:
case 3829:
return f + e + e;
case 5349:
case 4246:
case 4810:
case 6968:
case 2756:
return f + e + Y + e + x + e + e;
case 6828:
case 4268:
return f + e + x + e + e;
case 6165:
return f + e + x + "flex-" + e + e;
case 5187:
return f + e + o(e, /(\w+).+(:[^]+)/, f + "box-$1$2" + x + "flex-$1$2") + e;
case 5443:
return f + e + x + "flex-item-" + o(e, /flex-|-self/, "") + e;
case 4675:
return f + e + x + "flex-line-pack" + o(e, /align-content|flex-|-self/, "") + e;
case 5548:
return f + e + x + o(e, "shrink", "negative") + e;
case 5292:
return f + e + x + o(e, "basis", "preferred-size") + e;
case 6060:
return f + "box-" + o(e, "-grow", "") + f + e + x + o(e, "grow", "positive") + e;
case 4554:
return f + o(e, /([^-])(transform)/g, "$1" + f + "$2") + e;
case 6187:
return o(o(o(e, /(zoom-|grab)/, f + "$1"), /(image-set)/, f + "$1"), e, "") + e;
case 5495:
case 3959:
return o(e, /(image-set\([^]*)/, f + "$1$`$1");
case 4968:
return o(o(e, /(.+:)(flex-)?(.*)/, f + "box-pack:$3" + x + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + f + e + e;
case 4095:
case 3583:
case 4068:
case 2532:
return o(e, /(.+)-inline(.+)/, f + "$1$2") + e;
case 8116:
case 7059:
case 5753:
case 5535:
case 5445:
case 5701:
case 4933:
case 4677:
case 5533:
case 5789:
case 5021:
case 4765:
if (T(e) - 1 - r > 6) switch (g(e, r + 1)) {
case 109:
if (g(e, r + 4) !== 45) break;
case 102:
return o(e, /(.+:)(.+)-([^]+)/, "$1" + f + "$2-$3$1" + Y + (g(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
case 115:
return ~X(e, "stretch") ? ye(o(e, "stretch", "fill-available"), r) + e : e;
}
break;
case 4949:
if (g(e, r + 1) !== 115) break;
case 6444:
switch (g(e, T(e) - 3 - (~X(e, "!important") && 10))) {
case 107:
return o(e, ":", ":" + f) + e;
case 101:
return o(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + f + (g(e, 14) === 45 ? "inline-" : "") + "box$3$1" + f + "$2$3$1" + x + "$2box$3") + e;
}
break;
case 5936:
switch (g(e, r + 11)) {
case 114:
return f + e + x + o(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
case 108:
return f + e + x + o(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
case 45:
return f + e + x + o(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
}
return f + e + x + e + e;
}
return e;
}
var Xe = function(r, t, n, a) {
if (r.length > -1 && !r.return) switch (r.type) {
case ae:
r.return = ye(r.value, r.length);
break;
case me:
return M([F(r, {
value: o(r.value, "@", "@" + f)
})], a);
case ne:
if (r.length) return _e(r.props, function(i) {
switch (Me(i, /(::plac\w+|:read-\w+)/)) {
case ":read-only":
case ":read-write":
return M([F(r, {
props: [o(i, /:(read-\w+)/, ":" + Y + "$1")]
})], a);
case "::placeholder":
return M([F(r, {
props: [o(i, /:(plac\w+)/, ":" + f + "input-$1")]
}), F(r, {
props: [o(i, /:(plac\w+)/, ":" + Y + "$1")]
}), F(r, {
props: [o(i, /:(plac\w+)/, x + "input-$1")]
})], a);
}
return "";
});
}
}, er = [Xe], rr = function(r) {
var t = r.key;
if (t === "css") {
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
Array.prototype.forEach.call(n, function(m) {
var w = m.getAttribute("data-emotion");
w.indexOf(" ") !== -1 && (document.head.appendChild(m), m.setAttribute("data-s", ""));
});
}
var a = r.stylisPlugins || er, i = {}, s, c = [];
s = r.container || document.head, Array.prototype.forEach.call(
// this means we will ignore elements which don't have a space in them which
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
function(m) {
for (var w = m.getAttribute("data-emotion").split(" "), v = 1; v < w.length; v++)
i[w[v]] = !0;
c.push(m);
}
);
var u, h = [Je, Qe];
{
var l, p = [Be, Ke(function(m) {
l.insert(m);
})], R = He(h.concat(a, p)), N = function(w) {
return M(Ve(w), R);
};
u = function(w, v, y, $) {
l = y, N(w ? w + "{" + v.styles + "}" : v.styles), $ && (E.inserted[v.name] = !0);
};
}
var E = {
key: t,
sheet: new Te({
key: t,
container: s,
nonce: r.nonce,
speedy: r.speedy,
prepend: r.prepend,
insertionPoint: r.insertionPoint
}),
nonce: r.nonce,
inserted: i,
registered: {},
insert: u
};
return E.sheet.hydrate(c), E;
};
function re() {
return re = Object.assign ? Object.assign.bind() : function(e) {
for (var r = 1; r < arguments.length; r++) {
var t = arguments[r];
for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
}
return e;
}, re.apply(null, arguments);
}
var tr = !0;
function nr(e, r, t) {
var n = "";
return t.split(" ").forEach(function(a) {
e[a] !== void 0 ? r.push(e[a] + ";") : a && (n += a + " ");
}), n;
}
var xe = function(r, t, n) {
var a = r.key + "-" + t.name;
// we only need to add the styles to the registered cache if the
// class name could be used further down
// the tree but if it's a string tag, we know it won't
// so we don't have to add it to registered cache.
// this improves memory usage since we can avoid storing the whole style string
(n === !1 || // we need to always store it if we're in compat mode and
// in node since emotion-server relies on whether a style is in
// the registered cache to know whether a style is global or not
// also, note that this check will be dead code eliminated in the browser
tr === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);
}, ar = function(r, t, n) {
xe(r, t, n);
var a = r.key + "-" + t.name;
if (r.inserted[t.name] === void 0) {
var i = t;
do
r.insert(t === i ? "." + a : "", i, r.sheet, !0), i = i.next;
while (i !== void 0);
}
};
function ir(e) {
for (var r = 0, t, n = 0, a = e.length; a >= 4; ++n, a -= 4)
t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
t >>> 24, r = /* Math.imul(k, m): */
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
switch (a) {
case 3:
r ^= (e.charCodeAt(n + 2) & 255) << 16;
case 2:
r ^= (e.charCodeAt(n + 1) & 255) << 8;
case 1:
r ^= e.charCodeAt(n) & 255, r = /* Math.imul(h, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
}
return r ^= r >>> 13, r = /* Math.imul(h, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
}
var sr = {
animationIterationCount: 1,
aspectRatio: 1,
borderImageOutset: 1,
borderImageSlice: 1,
borderImageWidth: 1,
boxFlex: 1,
boxFlexGroup: 1,
boxOrdinalGroup: 1,
columnCount: 1,
columns: 1,
flex: 1,
flexGrow: 1,
flexPositive: 1,
flexShrink: 1,
flexNegative: 1,
flexOrder: 1,
gridRow: 1,
gridRowEnd: 1,
gridRowSpan: 1,
gridRowStart: 1,
gridColumn: 1,
gridColumnEnd: 1,
gridColumnSpan: 1,
gridColumnStart: 1,
msGridRow: 1,
msGridRowSpan: 1,
msGridColumn: 1,
msGridColumnSpan: 1,
fontWeight: 1,
lineHeight: 1,
opacity: 1,
order: 1,
orphans: 1,
scale: 1,
tabSize: 1,
widows: 1,
zIndex: 1,
zoom: 1,
WebkitLineClamp: 1,
// SVG-related properties
fillOpacity: 1,
floodOpacity: 1,
stopOpacity: 1,
strokeDasharray: 1,
strokeDashoffset: 1,
strokeMiterlimit: 1,
strokeOpacity: 1,
strokeWidth: 1
}, cr = /[A-Z]|^ms/g, fr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, we = function(r) {
return r.charCodeAt(1) === 45;
}, ue = function(r) {
return r != null && typeof r != "boolean";
}, Q = /* @__PURE__ */ Ye(function(e) {
return we(e) ? e : e.replace(cr, "-$&").toLowerCase();
}), he = function(r, t) {
switch (r) {
case "animation":
case "animationName":
if (typeof t == "string")
return t.replace(fr, function(n, a, i) {
return P = {
name: a,
styles: i,
next: P
}, a;
});
}
return sr[r] !== 1 && !we(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
};
function G(e, r, t) {
if (t == null)
return "";
var n = t;
if (n.__emotion_styles !== void 0)
return n;
switch (typeof t) {
case "boolean":
return "";
case "object": {
var a = t;
if (a.anim === 1)
return P = {
name: a.name,
styles: a.styles,
next: P
}, a.name;
var i = t;
if (i.styles !== void 0) {
var s = i.next;
if (s !== void 0)
for (; s !== void 0; )
P = {
name: s.name,
styles: s.styles,
next: P
}, s = s.next;
var c = i.styles + ";";
return c;
}
return or(e, r, t);
}
case "function": {
if (e !== void 0) {
var u = P, h = t(e);
return P = u, G(e, r, h);
}
break;
}
}
var l = t;
if (r == null)
return l;
var p = r[l];
return p !== void 0 ? p : l;
}
function or(e, r, t) {
var n = "";
if (Array.isArray(t))
for (var a = 0; a < t.length; a++)
n += G(e, r, t[a]) + ";";
else
for (var i in t) {
var s = t[i];
if (typeof s != "object") {
var c = s;
r != null && r[c] !== void 0 ? n += i + "{" + r[c] + "}" : ue(c) && (n += Q(i) + ":" + he(i, c) + ";");
} else if (Array.isArray(s) && typeof s[0] == "string" && (r == null || r[s[0]] === void 0))
for (var u = 0; u < s.length; u++)
ue(s[u]) && (n += Q(i) + ":" + he(i, s[u]) + ";");
else {
var h = G(e, r, s);
switch (i) {
case "animation":
case "animationName": {
n += Q(i) + ":" + h + ";";
break;
}
default:
n += i + "{" + h + "}";
}
}
}
return n;
}
var de = /label:\s*([^\s;{]+)\s*(;|$)/g, P;
function ur(e, r, t) {
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
return e[0];
var n = !0, a = "";
P = void 0;
var i = e[0];
if (i == null || i.raw === void 0)
n = !1, a += G(t, r, i);
else {
var s = i;
a += s[0];
}
for (var c = 1; c < e.length; c++)
if (a += G(t, r, e[c]), n) {
var u = i;
a += u[c];
}
de.lastIndex = 0;
for (var h = "", l; (l = de.exec(a)) !== null; )
h += "-" + l[1];
var p = ir(a) + h;
return {
name: p,
styles: a,
next: P
};
}
var hr = function(r) {
return r();
}, dr = k.useInsertionEffect ? k.useInsertionEffect : !1, lr = dr || hr, Ce = /* @__PURE__ */ k.createContext(
// we're doing this to avoid preconstruct's dead code elimination in this one case
// because this module is primarily intended for the browser and node
// but it's also required in react native and similar environments sometimes
// and we could have a special build just for that
// but this is much easier and the native packages
// might use a different theme context in the future anyway
typeof HTMLElement < "u" ? /* @__PURE__ */ rr({
key: "css"
}) : null
);
Ce.Provider;
var mr = function(r) {
return /* @__PURE__ */ Se(function(t, n) {
var a = ke(Ce);
return r(t, a, n);
});
}, q = /* @__PURE__ */ k.createContext({}), xr = function() {
return k.useContext(q);
}, pr = function(r, t) {
if (typeof t == "function") {
var n = t(r);
return n;
}
return re({}, r, t);
}, vr = /* @__PURE__ */ fe(function(e) {
return fe(function(r) {
return pr(e, r);
});
}), wr = function(r) {
var t = k.useContext(q);
return r.theme !== t && (t = vr(t)(r.theme)), /* @__PURE__ */ k.createElement(q.Provider, {
value: t
}, r.children);
}, Ee = {}.hasOwnProperty, te = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Cr = function(r, t) {
var n = {};
for (var a in t)
Ee.call(t, a) && (n[a] = t[a]);
return n[te] = r, n;
}, br = function(r) {
var t = r.cache, n = r.serialized, a = r.isStringTag;
return xe(t, n, a), lr(function() {
return ar(t, n, a);
}), null;
}, gr = /* @__PURE__ */ mr(function(e, r, t) {
var n = e.css;
typeof n == "string" && r.registered[n] !== void 0 && (n = r.registered[n]);
var a = e[te], i = [n], s = "";
typeof e.className == "string" ? s = nr(r.registered, i, e.className) : e.className != null && (s = e.className + " ");
var c = ur(i, void 0, k.useContext(q));
s += r.key + "-" + c.name;
var u = {};
for (var h in e)
Ee.call(e, h) && h !== "css" && h !== te && (u[h] = e[h]);
return u.className = s, t && (u.ref = t), /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(br, {
cache: r,
serialized: c,
isStringTag: typeof a == "string"
}), /* @__PURE__ */ k.createElement(a, u));
}), Er = gr;
export {
Er as E,
q as T,
re as _,
lr as a,
wr as b,
Cr as c,
nr as g,
Ee as h,
ar as i,
Ye as m,
xe as r,
ur as s,
xr as u,
mr as w
};