@mohamedalkhawam/email-builder
Version:
React email builder component
1,576 lines • 4.17 MB
JavaScript
var p6 = Object.defineProperty;
var WN = (e) => {
throw TypeError(e);
};
var f6 = (e, t, n) => t in e ? p6(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
var ei = (e, t, n) => f6(e, typeof t != "symbol" ? t + "" : t, n), h6 = (e, t, n) => t.has(e) || WN("Cannot " + n);
var VN = (e, t, n) => t.has(e) ? WN("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n);
var WE = (e, t, n) => (h6(e, t, "access private method"), n);
import { jsx as L, jsxs as Dt, Fragment as lm } from "react/jsx-runtime";
import * as ie from "react";
import Ir, { forwardRef as m6, useContext as pR, isValidElement as Ib, cloneElement as wb, Children as g6, useMemo as gE, createContext as aM, useState as Qr, useEffect as qh, Fragment as _6, useCallback as Z_, useRef as zh, useLayoutEffect as E6 } from "react";
import * as b6 from "react-dom";
import Vf from "react-dom";
const J_ = {
black: "#000",
white: "#fff"
}, Am = {
300: "#e57373",
400: "#ef5350",
500: "#f44336",
700: "#d32f2f",
800: "#c62828"
}, xm = {
50: "#f3e5f5",
200: "#ce93d8",
300: "#ba68c8",
400: "#ab47bc",
500: "#9c27b0",
700: "#7b1fa2"
}, Rm = {
50: "#e3f2fd",
200: "#90caf9",
400: "#42a5f5",
700: "#1976d2",
800: "#1565c0"
}, Nm = {
300: "#4fc3f7",
400: "#29b6f6",
500: "#03a9f4",
700: "#0288d1",
900: "#01579b"
}, Om = {
300: "#81c784",
400: "#66bb6a",
500: "#4caf50",
700: "#388e3c",
800: "#2e7d32",
900: "#1b5e20"
}, e_ = {
300: "#ffb74d",
400: "#ffa726",
500: "#ff9800",
700: "#f57c00",
900: "#e65100"
}, y6 = {
50: "#fafafa",
100: "#f5f5f5",
200: "#eeeeee",
300: "#e0e0e0",
400: "#bdbdbd",
500: "#9e9e9e",
600: "#757575",
700: "#616161",
800: "#424242",
900: "#212121",
A100: "#f5f5f5",
A200: "#eeeeee",
A400: "#bdbdbd",
A700: "#616161"
};
function tf(e) {
let t = "https://mui.com/production-error/?code=" + e;
for (let n = 1; n < arguments.length; n += 1)
t += "&args[]=" + encodeURIComponent(arguments[n]);
return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
}
const S6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: tf
}, Symbol.toStringTag, { value: "Module" })), rg = "$$material";
function te() {
return te = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}, te.apply(null, arguments);
}
function Ut(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
if (t.indexOf(r) !== -1) continue;
n[r] = e[r];
}
return n;
}
function T6(e) {
if (e.sheet)
return e.sheet;
for (var t = 0; t < document.styleSheets.length; t++)
if (document.styleSheets[t].ownerNode === e)
return document.styleSheets[t];
}
function v6(e) {
var t = document.createElement("style");
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
}
var C6 = /* @__PURE__ */ function() {
function e(n) {
var r = this;
this._insertTag = function(i) {
var a;
r.tags.length === 0 ? r.insertionPoint ? a = r.insertionPoint.nextSibling : r.prepend ? a = r.container.firstChild : a = r.before : a = r.tags[r.tags.length - 1].nextSibling, r.container.insertBefore(i, a), r.tags.push(i);
}, this.isSpeedy = n.speedy === void 0 ? !0 : n.speedy, this.tags = [], this.ctr = 0, this.nonce = n.nonce, this.key = n.key, this.container = n.container, this.prepend = n.prepend, this.insertionPoint = n.insertionPoint, this.before = null;
}
var t = e.prototype;
return t.hydrate = function(r) {
r.forEach(this._insertTag);
}, t.insert = function(r) {
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(v6(this));
var i = this.tags[this.tags.length - 1];
if (this.isSpeedy) {
var a = T6(i);
try {
a.insertRule(r, a.cssRules.length);
} catch {
}
} else
i.appendChild(document.createTextNode(r));
this.ctr++;
}, t.flush = function() {
this.tags.forEach(function(r) {
var i;
return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
}), this.tags = [], this.ctr = 0;
}, e;
}(), fl = "-ms-", Xb = "-moz-", ui = "-webkit-", oM = "comm", fR = "rule", hR = "decl", D6 = "@import", sM = "@keyframes", A6 = "@layer", x6 = Math.abs, Gy = String.fromCharCode, R6 = Object.assign;
function N6(e, t) {
return ks(e, 0) ^ 45 ? (((t << 2 ^ ks(e, 0)) << 2 ^ ks(e, 1)) << 2 ^ ks(e, 2)) << 2 ^ ks(e, 3) : 0;
}
function lM(e) {
return e.trim();
}
function O6(e, t) {
return (e = t.exec(e)) ? e[0] : e;
}
function di(e, t, n) {
return e.replace(t, n);
}
function jA(e, t) {
return e.indexOf(t);
}
function ks(e, t) {
return e.charCodeAt(t) | 0;
}
function $_(e, t, n) {
return e.slice(t, n);
}
function sp(e) {
return e.length;
}
function mR(e) {
return e.length;
}
function VE(e, t) {
return t.push(e), e;
}
function I6(e, t) {
return e.map(t).join("");
}
var Hy = 1, ig = 1, cM = 0, mc = 0, No = 0, Ag = "";
function zy(e, t, n, r, i, a, s) {
return { value: e, root: t, parent: n, type: r, props: i, children: a, line: Hy, column: ig, length: s, return: "" };
}
function t_(e, t) {
return R6(zy("", null, null, "", null, null, 0), e, { length: -e.length }, t);
}
function w6() {
return No;
}
function k6() {
return No = mc > 0 ? ks(Ag, --mc) : 0, ig--, No === 10 && (ig = 1, Hy--), No;
}
function eu() {
return No = mc < cM ? ks(Ag, mc++) : 0, ig++, No === 10 && (ig = 1, Hy++), No;
}
function fp() {
return ks(Ag, mc);
}
function kb() {
return mc;
}
function _E(e, t) {
return $_(Ag, e, t);
}
function j_(e) {
switch (e) {
// \0 \t \n \r \s whitespace token
case 0:
case 9:
case 10:
case 13:
case 32:
return 5;
// ! + , / > @ ~ isolate token
case 33:
case 43:
case 44:
case 47:
case 62:
case 64:
case 126:
// ; { } breakpoint token
case 59:
case 123:
case 125:
return 4;
// : accompanied token
case 58:
return 3;
// " ' ( [ opening delimit token
case 34:
case 39:
case 40:
case 91:
return 2;
// ) ] closing delimit token
case 41:
case 93:
return 1;
}
return 0;
}
function uM(e) {
return Hy = ig = 1, cM = sp(Ag = e), mc = 0, [];
}
function dM(e) {
return Ag = "", e;
}
function Pb(e) {
return lM(_E(mc - 1, ex(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
function P6(e) {
for (; (No = fp()) && No < 33; )
eu();
return j_(e) > 2 || j_(No) > 3 ? "" : " ";
}
function F6(e, t) {
for (; --t && eu() && !(No < 48 || No > 102 || No > 57 && No < 65 || No > 70 && No < 97); )
;
return _E(e, kb() + (t < 6 && fp() == 32 && eu() == 32));
}
function ex(e) {
for (; eu(); )
switch (No) {
// ] ) " '
case e:
return mc;
// " '
case 34:
case 39:
e !== 34 && e !== 39 && ex(No);
break;
// (
case 40:
e === 41 && ex(e);
break;
// \
case 92:
eu();
break;
}
return mc;
}
function M6(e, t) {
for (; eu() && e + No !== 57; )
if (e + No === 84 && fp() === 47)
break;
return "/*" + _E(t, mc - 1) + "*" + Gy(e === 47 ? e : eu());
}
function L6(e) {
for (; !j_(fp()); )
eu();
return _E(e, mc);
}
function B6(e) {
return dM(Fb("", null, null, null, [""], e = uM(e), 0, [0], e));
}
function Fb(e, t, n, r, i, a, s, l, p) {
for (var h = 0, f = 0, T = s, v = 0, D = 0, x = 0, O = 1, F = 1, w = 1, H = 0, M = "", W = i, z = a, K = r, Y = M; F; )
switch (x = H, H = eu()) {
// (
case 40:
if (x != 108 && ks(Y, T - 1) == 58) {
jA(Y += di(Pb(H), "&", "&\f"), "&\f") != -1 && (w = -1);
break;
}
// " ' [
case 34:
case 39:
case 91:
Y += Pb(H);
break;
// \t \n \r \s
case 9:
case 10:
case 13:
case 32:
Y += P6(x);
break;
// \
case 92:
Y += F6(kb() - 1, 7);
continue;
// /
case 47:
switch (fp()) {
case 42:
case 47:
VE(U6(M6(eu(), kb()), t, n), p);
break;
default:
Y += "/";
}
break;
// {
case 123 * O:
l[h++] = sp(Y) * w;
// } ; \0
case 125 * O:
case 59:
case 0:
switch (H) {
// \0 }
case 0:
case 125:
F = 0;
// ;
case 59 + f:
w == -1 && (Y = di(Y, /\f/g, "")), D > 0 && sp(Y) - T && VE(D > 32 ? KN(Y + ";", r, n, T - 1) : KN(di(Y, " ", "") + ";", r, n, T - 2), p);
break;
// @ ;
case 59:
Y += ";";
// { rule/at-rule
default:
if (VE(K = qN(Y, t, n, h, f, i, l, M, W = [], z = [], T), a), H === 123)
if (f === 0)
Fb(Y, t, K, K, W, a, T, l, z);
else
switch (v === 99 && ks(Y, 3) === 110 ? 100 : v) {
// d l m s
case 100:
case 108:
case 109:
case 115:
Fb(e, K, K, r && VE(qN(e, K, K, 0, 0, i, l, M, i, W = [], T), z), i, z, T, l, r ? W : z);
break;
default:
Fb(Y, K, K, K, [""], z, 0, l, z);
}
}
h = f = D = 0, O = w = 1, M = Y = "", T = s;
break;
// :
case 58:
T = 1 + sp(Y), D = x;
default:
if (O < 1) {
if (H == 123)
--O;
else if (H == 125 && O++ == 0 && k6() == 125)
continue;
}
switch (Y += Gy(H), H * O) {
// &
case 38:
w = f > 0 ? 1 : (Y += "\f", -1);
break;
// ,
case 44:
l[h++] = (sp(Y) - 1) * w, w = 1;
break;
// @
case 64:
fp() === 45 && (Y += Pb(eu())), v = fp(), f = T = sp(M = Y += L6(kb())), H++;
break;
// -
case 45:
x === 45 && sp(Y) == 2 && (O = 0);
}
}
return a;
}
function qN(e, t, n, r, i, a, s, l, p, h, f) {
for (var T = i - 1, v = i === 0 ? a : [""], D = mR(v), x = 0, O = 0, F = 0; x < r; ++x)
for (var w = 0, H = $_(e, T + 1, T = x6(O = s[x])), M = e; w < D; ++w)
(M = lM(O > 0 ? v[w] + " " + H : di(H, /&\f/g, v[w]))) && (p[F++] = M);
return zy(e, t, n, i === 0 ? fR : l, p, h, f);
}
function U6(e, t, n) {
return zy(e, t, n, oM, Gy(w6()), $_(e, 2, -2), 0);
}
function KN(e, t, n, r) {
return zy(e, t, n, hR, $_(e, 0, r), $_(e, r + 1, -1), r);
}
function jm(e, t) {
for (var n = "", r = mR(e), i = 0; i < r; i++)
n += t(e[i], i, e, t) || "";
return n;
}
function G6(e, t, n, r) {
switch (e.type) {
case A6:
if (e.children.length) break;
case D6:
case hR:
return e.return = e.return || e.value;
case oM:
return "";
case sM:
return e.return = e.value + "{" + jm(e.children, r) + "}";
case fR:
e.value = e.props.join(",");
}
return sp(n = jm(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
}
function H6(e) {
var t = mR(e);
return function(n, r, i, a) {
for (var s = "", l = 0; l < t; l++)
s += e[l](n, r, i, a) || "";
return s;
};
}
function z6(e) {
return function(t) {
t.root || (t = t.return) && e(t);
};
}
function pM(e) {
var t = /* @__PURE__ */ Object.create(null);
return function(n) {
return t[n] === void 0 && (t[n] = e(n)), t[n];
};
}
var Y6 = function(t, n, r) {
for (var i = 0, a = 0; i = a, a = fp(), i === 38 && a === 12 && (n[r] = 1), !j_(a); )
eu();
return _E(t, mc);
}, W6 = function(t, n) {
var r = -1, i = 44;
do
switch (j_(i)) {
case 0:
i === 38 && fp() === 12 && (n[r] = 1), t[r] += Y6(mc - 1, n, r);
break;
case 2:
t[r] += Pb(i);
break;
case 4:
if (i === 44) {
t[++r] = fp() === 58 ? "&\f" : "", n[r] = t[r].length;
break;
}
// fallthrough
default:
t[r] += Gy(i);
}
while (i = eu());
return t;
}, V6 = function(t, n) {
return dM(W6(uM(t), n));
}, QN = /* @__PURE__ */ new WeakMap(), q6 = function(t) {
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
// negative .length indicates that this rule has been already prefixed
t.length < 1)) {
for (var n = t.value, r = t.parent, i = t.column === r.column && t.line === r.line; r.type !== "rule"; )
if (r = r.parent, !r) return;
if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !QN.get(r)) && !i) {
QN.set(t, !0);
for (var a = [], s = V6(n, a), l = r.props, p = 0, h = 0; p < s.length; p++)
for (var f = 0; f < l.length; f++, h++)
t.props[h] = a[p] ? s[p].replace(/&\f/g, l[f]) : l[f] + " " + s[p];
}
}
}, K6 = function(t) {
if (t.type === "decl") {
var n = t.value;
// charcode for l
n.charCodeAt(0) === 108 && // charcode for b
n.charCodeAt(2) === 98 && (t.return = "", t.value = "");
}
};
function fM(e, t) {
switch (N6(e, t)) {
// color-adjust
case 5103:
return ui + "print-" + e + e;
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
case 5737:
case 4201:
case 3177:
case 3433:
case 1641:
case 4457:
case 2921:
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
case 5572:
case 6356:
case 5844:
case 3191:
case 6645:
case 3005:
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
case 6391:
case 5879:
case 5623:
case 6135:
case 4599:
case 4855:
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
case 4215:
case 6389:
case 5109:
case 5365:
case 5621:
case 3829:
return ui + e + e;
// appearance, user-select, transform, hyphens, text-size-adjust
case 5349:
case 4246:
case 4810:
case 6968:
case 2756:
return ui + e + Xb + e + fl + e + e;
// flex, flex-direction
case 6828:
case 4268:
return ui + e + fl + e + e;
// order
case 6165:
return ui + e + fl + "flex-" + e + e;
// align-items
case 5187:
return ui + e + di(e, /(\w+).+(:[^]+)/, ui + "box-$1$2" + fl + "flex-$1$2") + e;
// align-self
case 5443:
return ui + e + fl + "flex-item-" + di(e, /flex-|-self/, "") + e;
// align-content
case 4675:
return ui + e + fl + "flex-line-pack" + di(e, /align-content|flex-|-self/, "") + e;
// flex-shrink
case 5548:
return ui + e + fl + di(e, "shrink", "negative") + e;
// flex-basis
case 5292:
return ui + e + fl + di(e, "basis", "preferred-size") + e;
// flex-grow
case 6060:
return ui + "box-" + di(e, "-grow", "") + ui + e + fl + di(e, "grow", "positive") + e;
// transition
case 4554:
return ui + di(e, /([^-])(transform)/g, "$1" + ui + "$2") + e;
// cursor
case 6187:
return di(di(di(e, /(zoom-|grab)/, ui + "$1"), /(image-set)/, ui + "$1"), e, "") + e;
// background, background-image
case 5495:
case 3959:
return di(e, /(image-set\([^]*)/, ui + "$1$`$1");
// justify-content
case 4968:
return di(di(e, /(.+:)(flex-)?(.*)/, ui + "box-pack:$3" + fl + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + ui + e + e;
// (margin|padding)-inline-(start|end)
case 4095:
case 3583:
case 4068:
case 2532:
return di(e, /(.+)-inline(.+)/, ui + "$1$2") + e;
// (min|max)?(width|height|inline-size|block-size)
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 (sp(e) - 1 - t > 6) switch (ks(e, t + 1)) {
// (m)ax-content, (m)in-content
case 109:
if (ks(e, t + 4) !== 45) break;
// (f)ill-available, (f)it-content
case 102:
return di(e, /(.+:)(.+)-([^]+)/, "$1" + ui + "$2-$3$1" + Xb + (ks(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
// (s)tretch
case 115:
return ~jA(e, "stretch") ? fM(di(e, "stretch", "fill-available"), t) + e : e;
}
break;
// position: sticky
case 4949:
if (ks(e, t + 1) !== 115) break;
// display: (flex|inline-flex)
case 6444:
switch (ks(e, sp(e) - 3 - (~jA(e, "!important") && 10))) {
// stic(k)y
case 107:
return di(e, ":", ":" + ui) + e;
// (inline-)?fl(e)x
case 101:
return di(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + ui + (ks(e, 14) === 45 ? "inline-" : "") + "box$3$1" + ui + "$2$3$1" + fl + "$2box$3") + e;
}
break;
// writing-mode
case 5936:
switch (ks(e, t + 11)) {
// vertical-l(r)
case 114:
return ui + e + fl + di(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
// vertical-r(l)
case 108:
return ui + e + fl + di(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
// horizontal(-)tb
case 45:
return ui + e + fl + di(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
}
return ui + e + fl + e + e;
}
return e;
}
var Q6 = function(t, n, r, i) {
if (t.length > -1 && !t.return) switch (t.type) {
case hR:
t.return = fM(t.value, t.length);
break;
case sM:
return jm([t_(t, {
value: di(t.value, "@", "@" + ui)
})], i);
case fR:
if (t.length) return I6(t.props, function(a) {
switch (O6(a, /(::plac\w+|:read-\w+)/)) {
// :read-(only|write)
case ":read-only":
case ":read-write":
return jm([t_(t, {
props: [di(a, /:(read-\w+)/, ":" + Xb + "$1")]
})], i);
// :placeholder
case "::placeholder":
return jm([t_(t, {
props: [di(a, /:(plac\w+)/, ":" + ui + "input-$1")]
}), t_(t, {
props: [di(a, /:(plac\w+)/, ":" + Xb + "$1")]
}), t_(t, {
props: [di(a, /:(plac\w+)/, fl + "input-$1")]
})], i);
}
return "";
});
}
}, X6 = [Q6], hM = function(t) {
var n = t.key;
if (n === "css") {
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
Array.prototype.forEach.call(r, function(O) {
var F = O.getAttribute("data-emotion");
F.indexOf(" ") !== -1 && (document.head.appendChild(O), O.setAttribute("data-s", ""));
});
}
var i = t.stylisPlugins || X6, a = {}, s, l = [];
s = t.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^="' + n + ' "]'),
function(O) {
for (var F = O.getAttribute("data-emotion").split(" "), w = 1; w < F.length; w++)
a[F[w]] = !0;
l.push(O);
}
);
var p, h = [q6, K6];
{
var f, T = [G6, z6(function(O) {
f.insert(O);
})], v = H6(h.concat(i, T)), D = function(F) {
return jm(B6(F), v);
};
p = function(F, w, H, M) {
f = H, D(F ? F + "{" + w.styles + "}" : w.styles), M && (x.inserted[w.name] = !0);
};
}
var x = {
key: n,
sheet: new C6({
key: n,
container: s,
nonce: t.nonce,
speedy: t.speedy,
prepend: t.prepend,
insertionPoint: t.insertionPoint
}),
nonce: t.nonce,
inserted: a,
registered: {},
insert: p
};
return x.sheet.hydrate(l), x;
};
function xg(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function rh(e) {
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
var t = e.default;
if (typeof t == "function") {
var n = function r() {
return this instanceof r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
};
n.prototype = t.prototype;
} else n = {};
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
var i = Object.getOwnPropertyDescriptor(e, r);
Object.defineProperty(n, r, i.get ? i : {
enumerable: !0,
get: function() {
return e[r];
}
});
}), n;
}
var qE = { exports: {} }, gi = {};
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var XN;
function Z6() {
if (XN) return gi;
XN = 1;
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, T = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, D = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, F = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, H = e ? Symbol.for("react.scope") : 60119;
function M(z) {
if (typeof z == "object" && z !== null) {
var K = z.$$typeof;
switch (K) {
case t:
switch (z = z.type, z) {
case p:
case h:
case r:
case a:
case i:
case T:
return z;
default:
switch (z = z && z.$$typeof, z) {
case l:
case f:
case x:
case D:
case s:
return z;
default:
return K;
}
}
case n:
return K;
}
}
}
function W(z) {
return M(z) === h;
}
return gi.AsyncMode = p, gi.ConcurrentMode = h, gi.ContextConsumer = l, gi.ContextProvider = s, gi.Element = t, gi.ForwardRef = f, gi.Fragment = r, gi.Lazy = x, gi.Memo = D, gi.Portal = n, gi.Profiler = a, gi.StrictMode = i, gi.Suspense = T, gi.isAsyncMode = function(z) {
return W(z) || M(z) === p;
}, gi.isConcurrentMode = W, gi.isContextConsumer = function(z) {
return M(z) === l;
}, gi.isContextProvider = function(z) {
return M(z) === s;
}, gi.isElement = function(z) {
return typeof z == "object" && z !== null && z.$$typeof === t;
}, gi.isForwardRef = function(z) {
return M(z) === f;
}, gi.isFragment = function(z) {
return M(z) === r;
}, gi.isLazy = function(z) {
return M(z) === x;
}, gi.isMemo = function(z) {
return M(z) === D;
}, gi.isPortal = function(z) {
return M(z) === n;
}, gi.isProfiler = function(z) {
return M(z) === a;
}, gi.isStrictMode = function(z) {
return M(z) === i;
}, gi.isSuspense = function(z) {
return M(z) === T;
}, gi.isValidElementType = function(z) {
return typeof z == "string" || typeof z == "function" || z === r || z === h || z === a || z === i || z === T || z === v || typeof z == "object" && z !== null && (z.$$typeof === x || z.$$typeof === D || z.$$typeof === s || z.$$typeof === l || z.$$typeof === f || z.$$typeof === F || z.$$typeof === w || z.$$typeof === H || z.$$typeof === O);
}, gi.typeOf = M, gi;
}
var _i = {};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var ZN;
function J6() {
return ZN || (ZN = 1, process.env.NODE_ENV !== "production" && function() {
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, p = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, T = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, D = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, F = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, H = e ? Symbol.for("react.scope") : 60119;
function M(Ne) {
return typeof Ne == "string" || typeof Ne == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
Ne === r || Ne === h || Ne === a || Ne === i || Ne === T || Ne === v || typeof Ne == "object" && Ne !== null && (Ne.$$typeof === x || Ne.$$typeof === D || Ne.$$typeof === s || Ne.$$typeof === l || Ne.$$typeof === f || Ne.$$typeof === F || Ne.$$typeof === w || Ne.$$typeof === H || Ne.$$typeof === O);
}
function W(Ne) {
if (typeof Ne == "object" && Ne !== null) {
var _t = Ne.$$typeof;
switch (_t) {
case t:
var pt = Ne.type;
switch (pt) {
case p:
case h:
case r:
case a:
case i:
case T:
return pt;
default:
var ot = pt && pt.$$typeof;
switch (ot) {
case l:
case f:
case x:
case D:
case s:
return ot;
default:
return _t;
}
}
case n:
return _t;
}
}
}
var z = p, K = h, Y = l, j = s, ee = t, ae = f, re = r, Ie = x, ge = D, me = n, ve = a, ue = i, _e = T, ye = !1;
function Me(Ne) {
return ye || (ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), fe(Ne) || W(Ne) === p;
}
function fe(Ne) {
return W(Ne) === h;
}
function he(Ne) {
return W(Ne) === l;
}
function st(Ne) {
return W(Ne) === s;
}
function et(Ne) {
return typeof Ne == "object" && Ne !== null && Ne.$$typeof === t;
}
function we(Ne) {
return W(Ne) === f;
}
function Qe(Ne) {
return W(Ne) === r;
}
function Xe(Ne) {
return W(Ne) === x;
}
function ke(Ne) {
return W(Ne) === D;
}
function Pe(Ne) {
return W(Ne) === n;
}
function it(Ne) {
return W(Ne) === a;
}
function Le(Ne) {
return W(Ne) === i;
}
function ze(Ne) {
return W(Ne) === T;
}
_i.AsyncMode = z, _i.ConcurrentMode = K, _i.ContextConsumer = Y, _i.ContextProvider = j, _i.Element = ee, _i.ForwardRef = ae, _i.Fragment = re, _i.Lazy = Ie, _i.Memo = ge, _i.Portal = me, _i.Profiler = ve, _i.StrictMode = ue, _i.Suspense = _e, _i.isAsyncMode = Me, _i.isConcurrentMode = fe, _i.isContextConsumer = he, _i.isContextProvider = st, _i.isElement = et, _i.isForwardRef = we, _i.isFragment = Qe, _i.isLazy = Xe, _i.isMemo = ke, _i.isPortal = Pe, _i.isProfiler = it, _i.isStrictMode = Le, _i.isSuspense = ze, _i.isValidElementType = M, _i.typeOf = W;
}()), _i;
}
var JN;
function gR() {
return JN || (JN = 1, process.env.NODE_ENV === "production" ? qE.exports = Z6() : qE.exports = J6()), qE.exports;
}
var uT, $N;
function $6() {
if ($N) return uT;
$N = 1;
var e = gR(), t = {
childContextTypes: !0,
contextType: !0,
contextTypes: !0,
defaultProps: !0,
displayName: !0,
getDefaultProps: !0,
getDerivedStateFromError: !0,
getDerivedStateFromProps: !0,
mixins: !0,
propTypes: !0,
type: !0
}, n = {
name: !0,
length: !0,
prototype: !0,
caller: !0,
callee: !0,
arguments: !0,
arity: !0
}, r = {
$$typeof: !0,
render: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0
}, i = {
$$typeof: !0,
compare: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0,
type: !0
}, a = {};
a[e.ForwardRef] = r, a[e.Memo] = i;
function s(x) {
return e.isMemo(x) ? i : a[x.$$typeof] || t;
}
var l = Object.defineProperty, p = Object.getOwnPropertyNames, h = Object.getOwnPropertySymbols, f = Object.getOwnPropertyDescriptor, T = Object.getPrototypeOf, v = Object.prototype;
function D(x, O, F) {
if (typeof O != "string") {
if (v) {
var w = T(O);
w && w !== v && D(x, w, F);
}
var H = p(O);
h && (H = H.concat(h(O)));
for (var M = s(x), W = s(O), z = 0; z < H.length; ++z) {
var K = H[z];
if (!n[K] && !(F && F[K]) && !(W && W[K]) && !(M && M[K])) {
var Y = f(O, K);
try {
l(x, K, Y);
} catch {
}
}
}
}
return x;
}
return uT = D, uT;
}
$6();
var j6 = !0;
function mM(e, t, n) {
var r = "";
return n.split(" ").forEach(function(i) {
e[i] !== void 0 ? t.push(e[i] + ";") : i && (r += i + " ");
}), r;
}
var _R = function(t, n, r) {
var i = t.key + "-" + n.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
(r === !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
j6 === !1) && t.registered[i] === void 0 && (t.registered[i] = n.styles);
}, ER = function(t, n, r) {
_R(t, n, r);
var i = t.key + "-" + n.name;
if (t.inserted[n.name] === void 0) {
var a = n;
do
t.insert(n === a ? "." + i : "", a, t.sheet, !0), a = a.next;
while (a !== void 0);
}
};
function e5(e) {
for (var t = 0, n, r = 0, i = e.length; i >= 4; ++r, i -= 4)
n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
n >>> 24, t = /* Math.imul(k, m): */
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
switch (i) {
case 3:
t ^= (e.charCodeAt(r + 2) & 255) << 16;
case 2:
t ^= (e.charCodeAt(r + 1) & 255) << 8;
case 1:
t ^= e.charCodeAt(r) & 255, t = /* Math.imul(h, m): */
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
}
return t ^= t >>> 13, t = /* Math.imul(h, m): */
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
}
var t5 = {
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
}, n5 = /[A-Z]|^ms/g, r5 = /_EMO_([^_]+?)_([^]*?)_EMO_/g, gM = function(t) {
return t.charCodeAt(1) === 45;
}, jN = function(t) {
return t != null && typeof t != "boolean";
}, dT = /* @__PURE__ */ pM(function(e) {
return gM(e) ? e : e.replace(n5, "-$&").toLowerCase();
}), eO = function(t, n) {
switch (t) {
case "animation":
case "animationName":
if (typeof n == "string")
return n.replace(r5, function(r, i, a) {
return lp = {
name: i,
styles: a,
next: lp
}, i;
});
}
return t5[t] !== 1 && !gM(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
};
function eE(e, t, n) {
if (n == null)
return "";
var r = n;
if (r.__emotion_styles !== void 0)
return r;
switch (typeof n) {
case "boolean":
return "";
case "object": {
var i = n;
if (i.anim === 1)
return lp = {
name: i.name,
styles: i.styles,
next: lp
}, i.name;
var a = n;
if (a.styles !== void 0) {
var s = a.next;
if (s !== void 0)
for (; s !== void 0; )
lp = {
name: s.name,
styles: s.styles,
next: lp
}, s = s.next;
var l = a.styles + ";";
return l;
}
return i5(e, t, n);
}
case "function": {
if (e !== void 0) {
var p = lp, h = n(e);
return lp = p, eE(e, t, h);
}
break;
}
}
var f = n;
if (t == null)
return f;
var T = t[f];
return T !== void 0 ? T : f;
}
function i5(e, t, n) {
var r = "";
if (Array.isArray(n))
for (var i = 0; i < n.length; i++)
r += eE(e, t, n[i]) + ";";
else
for (var a in n) {
var s = n[a];
if (typeof s != "object") {
var l = s;
t != null && t[l] !== void 0 ? r += a + "{" + t[l] + "}" : jN(l) && (r += dT(a) + ":" + eO(a, l) + ";");
} else if (Array.isArray(s) && typeof s[0] == "string" && (t == null || t[s[0]] === void 0))
for (var p = 0; p < s.length; p++)
jN(s[p]) && (r += dT(a) + ":" + eO(a, s[p]) + ";");
else {
var h = eE(e, t, s);
switch (a) {
case "animation":
case "animationName": {
r += dT(a) + ":" + h + ";";
break;
}
default:
r += a + "{" + h + "}";
}
}
}
return r;
}
var tO = /label:\s*([^\s;{]+)\s*(;|$)/g, lp;
function Yy(e, t, n) {
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
return e[0];
var r = !0, i = "";
lp = void 0;
var a = e[0];
if (a == null || a.raw === void 0)
r = !1, i += eE(n, t, a);
else {
var s = a;
i += s[0];
}
for (var l = 1; l < e.length; l++)
if (i += eE(n, t, e[l]), r) {
var p = a;
i += p[l];
}
tO.lastIndex = 0;
for (var h = "", f; (f = tO.exec(i)) !== null; )
h += "-" + f[1];
var T = e5(i) + h;
return {
name: T,
styles: i,
next: lp
};
}
var a5 = function(t) {
return t();
}, _M = ie.useInsertionEffect ? ie.useInsertionEffect : !1, EM = _M || a5, nO = _M || ie.useLayoutEffect, bM = /* @__PURE__ */ ie.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__ */ hM({
key: "css"
}) : null
), o5 = bM.Provider, bR = function(t) {
return /* @__PURE__ */ m6(function(n, r) {
var i = pR(bM);
return t(n, i, r);
});
}, Rg = /* @__PURE__ */ ie.createContext({}), yR = {}.hasOwnProperty, tx = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", s5 = function(t, n) {
var r = {};
for (var i in n)
yR.call(n, i) && (r[i] = n[i]);
return r[tx] = t, r;
}, l5 = function(t) {
var n = t.cache, r = t.serialized, i = t.isStringTag;
return _R(n, r, i), EM(function() {
return ER(n, r, i);
}), null;
}, c5 = /* @__PURE__ */ bR(function(e, t, n) {
var r = e.css;
typeof r == "string" && t.registered[r] !== void 0 && (r = t.registered[r]);
var i = e[tx], a = [r], s = "";
typeof e.className == "string" ? s = mM(t.registered, a, e.className) : e.className != null && (s = e.className + " ");
var l = Yy(a, void 0, ie.useContext(Rg));
s += t.key + "-" + l.name;
var p = {};
for (var h in e)
yR.call(e, h) && h !== "css" && h !== tx && (p[h] = e[h]);
return p.className = s, n && (p.ref = n), /* @__PURE__ */ ie.createElement(ie.Fragment, null, /* @__PURE__ */ ie.createElement(l5, {
cache: t,
serialized: l,
isStringTag: typeof i == "string"
}), /* @__PURE__ */ ie.createElement(i, p));
}), u5 = c5, rO = function(t, n) {
var r = arguments;
if (n == null || !yR.call(n, "css"))
return ie.createElement.apply(void 0, r);
var i = r.length, a = new Array(i);
a[0] = u5, a[1] = s5(t, n);
for (var s = 2; s < i; s++)
a[s] = r[s];
return ie.createElement.apply(null, a);
};
(function(e) {
var t;
t || (t = e.JSX || (e.JSX = {}));
})(rO || (rO = {}));
var d5 = /* @__PURE__ */ bR(function(e, t) {
var n = e.styles, r = Yy([n], void 0, ie.useContext(Rg)), i = ie.useRef();
return nO(function() {
var a = t.key + "-global", s = new t.sheet.constructor({
key: a,
nonce: t.sheet.nonce,
container: t.sheet.container,
speedy: t.sheet.isSpeedy
}), l = !1, p = document.querySelector('style[data-emotion="' + a + " " + r.name + '"]');
return t.sheet.tags.length && (s.before = t.sheet.tags[0]), p !== null && (l = !0, p.setAttribute("data-emotion", a), s.hydrate([p])), i.current = [s, l], function() {
s.flush();
};
}, [t]), nO(function() {
var a = i.current, s = a[0], l = a[1];
if (l) {
a[1] = !1;
return;
}
if (r.next !== void 0 && ER(t, r.next, !0), s.tags.length) {
var p = s.tags[s.tags.length - 1].nextElementSibling;
s.before = p, s.flush();
}
t.insert("", r, s, !1);
}, [t, r.name]), null;
});
function yM() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return Yy(t);
}
function Wy() {
var e = yM.apply(void 0, arguments), t = "animation-" + e.name;
return {
name: t,
styles: "@keyframes " + t + "{" + e.styles + "}",
anim: 1,
toString: function() {
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
}
};
}
var p5 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, f5 = /* @__PURE__ */ pM(
function(e) {
return p5.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
}
/* Z+1 */
), h5 = f5, m5 = function(t) {
return t !== "theme";
}, iO = function(t) {
return typeof t == "string" && // 96 is one less than the char code
// for "a" so this is checking that
// it's a lowercase character
t.charCodeAt(0) > 96 ? h5 : m5;
}, aO = function(t, n, r) {
var i;
if (n) {
var a = n.shouldForwardProp;
i = t.__emotion_forwardProp && a ? function(s) {
return t.__emotion_forwardProp(s) && a(s);
} : a;
}
return typeof i != "function" && r && (i = t.__emotion_forwardProp), i;
}, g5 = function(t) {
var n = t.cache, r = t.serialized, i = t.isStringTag;
return _R(n, r, i), EM(function() {
return ER(n, r, i);
}), null;
}, _5 = function e(t, n) {
var r = t.__emotion_real === t, i = r && t.__emotion_base || t, a, s;
n !== void 0 && (a = n.label, s = n.target);
var l = aO(t, n, r), p = l || iO(i), h = !p("as");
return function() {
var f = arguments, T = r && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
if (a !== void 0 && T.push("label:" + a + ";"), f[0] == null || f[0].raw === void 0)
T.push.apply(T, f);
else {
var v = f[0];
T.push(v[0]);
for (var D = f.length, x = 1; x < D; x++)
T.push(f[x], v[x]);
}
var O = bR(function(F, w, H) {
var M = h && F.as || i, W = "", z = [], K = F;
if (F.theme == null) {
K = {};
for (var Y in F)
K[Y] = F[Y];
K.theme = ie.useContext(Rg);
}
typeof F.className == "string" ? W = mM(w.registered, z, F.className) : F.className != null && (W = F.className + " ");
var j = Yy(T.concat(z), w.registered, K);
W += w.key + "-" + j.name, s !== void 0 && (W += " " + s);
var ee = h && l === void 0 ? iO(M) : p, ae = {};
for (var re in F)
h && re === "as" || ee(re) && (ae[re] = F[re]);
return ae.className = W, H && (ae.ref = H), /* @__PURE__ */ ie.createElement(ie.Fragment, null, /* @__PURE__ */ ie.createElement(g5, {
cache: w,
serialized: j,
isStringTag: typeof M == "string"
}), /* @__PURE__ */ ie.createElement(M, ae));
});
return O.displayName = a !== void 0 ? a : "Styled(" + (typeof i == "string" ? i : i.displayName || i.name || "Component") + ")", O.defaultProps = t.defaultProps, O.__emotion_real = O, O.__emotion_base = i, O.__emotion_styles = T, O.__emotion_forwardProp = l, Object.defineProperty(O, "toString", {
value: function() {
return "." + s;
}
}), O.withComponent = function(F, w) {
var H = e(F, te({}, n, w, {
shouldForwardProp: aO(O, w, !0)
}));
return H.apply(void 0, T);
}, O;
};
}, E5 = [
"a",
"abbr",
"address",
"area",
"article",
"aside",
"audio",
"b",
"base",
"bdi",
"bdo",
"big",
"blockquote",
"body",
"br",
"button",
"canvas",
"caption",
"cite",
"code",
"col",
"colgroup",
"data",
"datalist",
"dd",
"del",
"details",
"dfn",
"dialog",
"div",
"dl",
"dt",
"em",
"embed",
"fieldset",
"figcaption",
"figure",
"footer",
"form",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"head",
"header",
"hgroup",
"hr",
"html",
"i",
"iframe",
"img",
"input",
"ins",
"kbd",
"keygen",
"label",
"legend",
"li",
"link",
"main",
"map",
"mark",
"marquee",
"menu",
"menuitem",
"meta",
"meter",
"nav",
"noscript",
"object",
"ol",
"optgroup",
"option",
"output",
"p",
"param",
"picture",
"pre",
"progress",
"q",
"rp",
"rt",
"ruby",
"s",
"samp",
"script",
"section",
"select",
"small",
"source",
"span",
"strong",
"style",
"sub",
"summary",
"sup",
"table",
"tbody",
"td",
"textarea",
"tfoot",
"th",
"thead",
"time",
"title",
"tr",
"track",
"u",
"ul",
"var",
"video",
"wbr",
// SVG
"circle",
"clipPath",
"defs",
"ellipse",
"foreignObject",
"g",
"image",
"line",
"linearGradient",
"mask",
"path",
"pattern",
"polygon",
"polyline",
"radialGradient",
"rect",
"stop",
"svg",
"text",
"tspan"
], nx = _5.bind(null);
E5.forEach(function(e) {
nx[e] = nx(e);
});
var KE = { exports: {} };
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var pT, oO;
function b5() {
if (oO) return pT;
oO = 1;
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
function r(a) {
if (a == null)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(a);
}
function i() {
try {
if (!Object.assign)
return !1;
var a = new String("abc");
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
return !1;
for (var s = {}, l = 0; l < 10; l++)
s["_" + String.fromCharCode(l)] = l;
var p = Object.getOwnPropertyNames(s).map(function(f) {
return s[f];
});
if (p.join("") !== "0123456789")
return !1;
var h = {};
return "abcdefghijklmnopqrst".split("").forEach(function(f) {
h[f] = f;
}), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
} catch {
return !1;
}
}
return pT = i() ? Object.assign : function(a, s) {
for (var l, p = r(a), h, f = 1; f < arguments.length; f++) {
l = Object(arguments[f]);
for (var T in l)
t.call(l, T) && (p[T] = l[T]);
if (e) {
h = e(l);
for (var v = 0; v < h.length; v++)
n.call(l, h[v]) && (p[h[v]] = l[h[v]]);
}
}
return p;
}, pT;
}
var fT, sO;
function SR() {
if (sO) return fT;
sO = 1;
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
return fT = e, fT;
}
var hT, lO;
function SM() {
return lO || (lO = 1, hT = Function.call.bind(Object.prototype.hasOwnProperty)), hT;
}
var mT, cO;
function y5() {
if (cO) return mT;
cO = 1;
var e = function() {
};
if (process.env.NODE_ENV !== "pro