UNPKG

phemail

Version:

third party authentication.

1,341 lines (1,322 loc) 83.6 kB
import ie, { useRef as pn, useDebugValue as Kt, createElement as dn, useContext as hn, useState as Ot, useCallback as Qe, useEffect as mn } from "react"; var wt = { exports: {} }, Le = {}; /** * @license React * react-jsx-runtime.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 Jt; function gn() { if (Jt) return Le; Jt = 1; var e = ie, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 }; function c(f, u, h) { var p, g = {}, w = null, S = null; h !== void 0 && (w = "" + h), u.key !== void 0 && (w = "" + u.key), u.ref !== void 0 && (S = u.ref); for (p in u) o.call(u, p) && !a.hasOwnProperty(p) && (g[p] = u[p]); if (f && f.defaultProps) for (p in u = f.defaultProps, u) g[p] === void 0 && (g[p] = u[p]); return { $$typeof: t, type: f, key: w, ref: S, props: g, _owner: i.current }; } return Le.Fragment = r, Le.jsx = c, Le.jsxs = c, Le; } var De = {}; /** * @license React * react-jsx-runtime.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 Qt; function yn() { return Qt || (Qt = 1, process.env.NODE_ENV !== "production" && function() { var e = ie, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), f = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), T = Symbol.iterator, N = "@@iterator"; function W(n) { if (n === null || typeof n != "object") return null; var s = T && n[T] || n[N]; return typeof s == "function" ? s : null; } var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function b(n) { { for (var s = arguments.length, l = new Array(s > 1 ? s - 1 : 0), d = 1; d < s; d++) l[d - 1] = arguments[d]; j("error", n, l); } } function j(n, s, l) { { var d = R.ReactDebugCurrentFrame, k = d.getStackAddendum(); k !== "" && (s += "%s", l = l.concat([k])); var P = l.map(function(E) { return String(E); }); P.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, P); } } var O = !1, I = !1, x = !1, y = !1, Q = !1, ee; ee = Symbol.for("react.module.reference"); function lt(n) { return !!(typeof n == "string" || typeof n == "function" || n === o || n === a || Q || n === i || n === h || n === p || y || n === S || O || I || x || typeof n == "object" && n !== null && (n.$$typeof === w || n.$$typeof === g || n.$$typeof === c || n.$$typeof === f || n.$$typeof === u || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. n.$$typeof === ee || n.getModuleId !== void 0)); } function ut(n, s, l) { var d = n.displayName; if (d) return d; var k = s.displayName || s.name || ""; return k !== "" ? l + "(" + k + ")" : l; } function Me(n) { return n.displayName || "Context"; } function z(n) { if (n == null) return null; if (typeof n.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function") return n.displayName || n.name || null; if (typeof n == "string") return n; switch (n) { case o: return "Fragment"; case r: return "Portal"; case a: return "Profiler"; case i: return "StrictMode"; case h: return "Suspense"; case p: return "SuspenseList"; } if (typeof n == "object") switch (n.$$typeof) { case f: var s = n; return Me(s) + ".Consumer"; case c: var l = n; return Me(l._context) + ".Provider"; case u: return ut(n, n.render, "ForwardRef"); case g: var d = n.displayName || null; return d !== null ? d : z(n.type) || "Memo"; case w: { var k = n, P = k._payload, E = k._init; try { return z(E(P)); } catch { return null; } } } return null; } var te = Object.assign, fe = 0, We, ve, Ae, Y, ae, se, B; function be() { } be.__reactDisabledLog = !0; function Ie() { { if (fe === 0) { We = console.log, ve = console.info, Ae = console.warn, Y = console.error, ae = console.group, se = console.groupCollapsed, B = console.groupEnd; var n = { configurable: !0, enumerable: !0, value: be, writable: !0 }; Object.defineProperties(console, { info: n, log: n, warn: n, error: n, group: n, groupCollapsed: n, groupEnd: n }); } fe++; } } function we() { { if (fe--, fe === 0) { var n = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: te({}, n, { value: We }), info: te({}, n, { value: ve }), warn: te({}, n, { value: Ae }), error: te({}, n, { value: Y }), group: te({}, n, { value: ae }), groupCollapsed: te({}, n, { value: se }), groupEnd: te({}, n, { value: B }) }); } fe < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var re = R.ReactCurrentDispatcher, ce; function q(n, s, l) { { if (ce === void 0) try { throw Error(); } catch (k) { var d = k.stack.trim().match(/\n( *(at )?)/); ce = d && d[1] || ""; } return ` ` + ce + n; } } var Z = !1, le; { var Ce = typeof WeakMap == "function" ? WeakMap : Map; le = new Ce(); } function X(n, s) { if (!n || Z) return ""; { var l = le.get(n); if (l !== void 0) return l; } var d; Z = !0; var k = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var P; P = re.current, re.current = null, Ie(); try { if (s) { var E = function() { throw Error(); }; if (Object.defineProperty(E.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(E, []); } catch (ne) { d = ne; } Reflect.construct(n, [], E); } else { try { E.call(); } catch (ne) { d = ne; } n.call(E.prototype); } } else { try { throw Error(); } catch (ne) { d = ne; } n(); } } catch (ne) { if (ne && d && typeof ne.stack == "string") { for (var C = ne.stack.split(` `), U = d.stack.split(` `), L = C.length - 1, D = U.length - 1; L >= 1 && D >= 0 && C[L] !== U[D]; ) D--; for (; L >= 1 && D >= 0; L--, D--) if (C[L] !== U[D]) { if (L !== 1 || D !== 1) do if (L--, D--, D < 0 || C[L] !== U[D]) { var H = ` ` + C[L].replace(" at new ", " at "); return n.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", n.displayName)), typeof n == "function" && le.set(n, H), H; } while (L >= 1 && D >= 0); break; } } } finally { Z = !1, re.current = P, we(), Error.prepareStackTrace = k; } var Se = n ? n.displayName || n.name : "", Xt = Se ? q(Se) : ""; return typeof n == "function" && le.set(n, Xt), Xt; } function Vr(n, s, l) { return X(n, !1); } function zr(n) { var s = n.prototype; return !!(s && s.isReactComponent); } function Be(n, s, l) { if (n == null) return ""; if (typeof n == "function") return X(n, zr(n)); if (typeof n == "string") return q(n); switch (n) { case h: return q("Suspense"); case p: return q("SuspenseList"); } if (typeof n == "object") switch (n.$$typeof) { case u: return Vr(n.render); case g: return Be(n.type, s, l); case w: { var d = n, k = d._payload, P = d._init; try { return Be(P(k), s, l); } catch { } } } return ""; } var Ue = Object.prototype.hasOwnProperty, Ft = {}, Mt = R.ReactDebugCurrentFrame; function Ve(n) { if (n) { var s = n._owner, l = Be(n.type, n._source, s ? s.type : null); Mt.setExtraStackFrame(l); } else Mt.setExtraStackFrame(null); } function Yr(n, s, l, d, k) { { var P = Function.call.bind(Ue); for (var E in n) if (P(n, E)) { var C = void 0; try { if (typeof n[E] != "function") { var U = Error((d || "React class") + ": " + l + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw U.name = "Invariant Violation", U; } C = n[E](s, E, d, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (L) { C = L; } C && !(C instanceof Error) && (Ve(k), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", d || "React class", l, E, typeof C), Ve(null)), C instanceof Error && !(C.message in Ft) && (Ft[C.message] = !0, Ve(k), b("Failed %s type: %s", l, C.message), Ve(null)); } } } var Hr = Array.isArray; function ft(n) { return Hr(n); } function Gr(n) { { var s = typeof Symbol == "function" && Symbol.toStringTag, l = s && n[Symbol.toStringTag] || n.constructor.name || "Object"; return l; } } function qr(n) { try { return Wt(n), !1; } catch { return !0; } } function Wt(n) { return "" + n; } function Bt(n) { if (qr(n)) return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Gr(n)), Wt(n); } var Ne = R.ReactCurrentOwner, Zr = { key: !0, ref: !0, __self: !0, __source: !0 }, Ut, Vt, pt; pt = {}; function Xr(n) { if (Ue.call(n, "ref")) { var s = Object.getOwnPropertyDescriptor(n, "ref").get; if (s && s.isReactWarning) return !1; } return n.ref !== void 0; } function Kr(n) { if (Ue.call(n, "key")) { var s = Object.getOwnPropertyDescriptor(n, "key").get; if (s && s.isReactWarning) return !1; } return n.key !== void 0; } function Jr(n, s) { if (typeof n.ref == "string" && Ne.current && s && Ne.current.stateNode !== s) { var l = z(Ne.current.type); pt[l] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', z(Ne.current.type), n.ref), pt[l] = !0); } } function Qr(n, s) { { var l = function() { Ut || (Ut = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s)); }; l.isReactWarning = !0, Object.defineProperty(n, "key", { get: l, configurable: !0 }); } } function en(n, s) { { var l = function() { Vt || (Vt = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s)); }; l.isReactWarning = !0, Object.defineProperty(n, "ref", { get: l, configurable: !0 }); } } var tn = function(n, s, l, d, k, P, E) { var C = { // This tag allows us to uniquely identify this as a React Element $$typeof: t, // Built-in properties that belong on the element type: n, key: s, ref: l, props: E, // Record the component responsible for creating this element. _owner: P }; return C._store = {}, Object.defineProperty(C._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(C, "_self", { configurable: !1, enumerable: !1, writable: !1, value: d }), Object.defineProperty(C, "_source", { configurable: !1, enumerable: !1, writable: !1, value: k }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C; }; function rn(n, s, l, d, k) { { var P, E = {}, C = null, U = null; l !== void 0 && (Bt(l), C = "" + l), Kr(s) && (Bt(s.key), C = "" + s.key), Xr(s) && (U = s.ref, Jr(s, k)); for (P in s) Ue.call(s, P) && !Zr.hasOwnProperty(P) && (E[P] = s[P]); if (n && n.defaultProps) { var L = n.defaultProps; for (P in L) E[P] === void 0 && (E[P] = L[P]); } if (C || U) { var D = typeof n == "function" ? n.displayName || n.name || "Unknown" : n; C && Qr(E, D), U && en(E, D); } return tn(n, C, U, k, d, Ne.current, E); } } var dt = R.ReactCurrentOwner, zt = R.ReactDebugCurrentFrame; function xe(n) { if (n) { var s = n._owner, l = Be(n.type, n._source, s ? s.type : null); zt.setExtraStackFrame(l); } else zt.setExtraStackFrame(null); } var ht; ht = !1; function mt(n) { return typeof n == "object" && n !== null && n.$$typeof === t; } function Yt() { { if (dt.current) { var n = z(dt.current.type); if (n) return ` Check the render method of \`` + n + "`."; } return ""; } } function nn(n) { { if (n !== void 0) { var s = n.fileName.replace(/^.*[\\\/]/, ""), l = n.lineNumber; return ` Check your code at ` + s + ":" + l + "."; } return ""; } } var Ht = {}; function on(n) { { var s = Yt(); if (!s) { var l = typeof n == "string" ? n : n.displayName || n.name; l && (s = ` Check the top-level render call using <` + l + ">."); } return s; } } function Gt(n, s) { { if (!n._store || n._store.validated || n.key != null) return; n._store.validated = !0; var l = on(s); if (Ht[l]) return; Ht[l] = !0; var d = ""; n && n._owner && n._owner !== dt.current && (d = " It was passed a child from " + z(n._owner.type) + "."), xe(n), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, d), xe(null); } } function qt(n, s) { { if (typeof n != "object") return; if (ft(n)) for (var l = 0; l < n.length; l++) { var d = n[l]; mt(d) && Gt(d, s); } else if (mt(n)) n._store && (n._store.validated = !0); else if (n) { var k = W(n); if (typeof k == "function" && k !== n.entries) for (var P = k.call(n), E; !(E = P.next()).done; ) mt(E.value) && Gt(E.value, s); } } } function an(n) { { var s = n.type; if (s == null || typeof s == "string") return; var l; if (typeof s == "function") l = s.propTypes; else if (typeof s == "object" && (s.$$typeof === u || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. s.$$typeof === g)) l = s.propTypes; else return; if (l) { var d = z(s); Yr(l, n.props, "prop", d, n); } else if (s.PropTypes !== void 0 && !ht) { ht = !0; var k = z(s); b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown"); } typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function sn(n) { { for (var s = Object.keys(n.props), l = 0; l < s.length; l++) { var d = s[l]; if (d !== "children" && d !== "key") { xe(n), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), xe(null); break; } } n.ref !== null && (xe(n), b("Invalid attribute `ref` supplied to `React.Fragment`."), xe(null)); } } function Zt(n, s, l, d, k, P) { { var E = lt(n); if (!E) { var C = ""; (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); var U = nn(k); U ? C += U : C += Yt(); var L; n === null ? L = "null" : ft(n) ? L = "array" : n !== void 0 && n.$$typeof === t ? (L = "<" + (z(n.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : L = typeof n, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, C); } var D = rn(n, s, l, k, P); if (D == null) return D; if (E) { var H = s.children; if (H !== void 0) if (d) if (ft(H)) { for (var Se = 0; Se < H.length; Se++) qt(H[Se], n); Object.freeze && Object.freeze(H); } else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); else qt(H, n); } return n === o ? sn(D) : an(D), D; } } function cn(n, s, l) { return Zt(n, s, l, !0); } function ln(n, s, l) { return Zt(n, s, l, !1); } var un = ln, fn = cn; De.Fragment = o, De.jsx = un, De.jsxs = fn; }()), De; } process.env.NODE_ENV === "production" ? wt.exports = gn() : wt.exports = yn(); var m = wt.exports; const vn = ({ condition: e, children: t }) => e ? /* @__PURE__ */ m.jsx(m.Fragment, { children: t }) : null, et = ie.memo(vn); function bn(e) { const t = document.cookie.split(";"); for (let r = 0; r < t.length; r++) { const i = t[r].split("="), a = i[0].trim(), c = i.slice(1).join("=").trim(); if (a.toLowerCase() === e.toLowerCase()) return decodeURIComponent(c); } return null; } function er(e, t) { const r = /* @__PURE__ */ new Date(); r.setDate(r.getDate() + 1), document.cookie = `${e}=${t}; expires=${r.toUTCString()}; path=/`; } var V = function() { return V = Object.assign || function(t) { for (var r, o = 1, i = arguments.length; o < i; o++) { r = arguments[o]; for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]); } return t; }, V.apply(this, arguments); }; function ge(e, t, r) { if (r || arguments.length === 2) for (var o = 0, i = t.length, a; o < i; o++) (a || !(o in t)) && (a || (a = Array.prototype.slice.call(t, 0, o)), a[o] = t[o]); return e.concat(a || Array.prototype.slice.call(t)); } function wn(e) { var t = /* @__PURE__ */ Object.create(null); return function(r) { return t[r] === void 0 && (t[r] = e(r)), t[r]; }; } var Cn = /^((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|download|draggable|encType|enterKeyHint|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)-.*))$/, xn = /* @__PURE__ */ wn( function(e) { return Cn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ ), A = "-ms-", Fe = "-moz-", _ = "-webkit-", yr = "comm", nt = "rule", At = "decl", Sn = "@import", vr = "@keyframes", En = "@layer", br = Math.abs, It = String.fromCharCode, Ct = Object.assign; function kn(e, t) { return F(e, 0) ^ 45 ? (((t << 2 ^ F(e, 0)) << 2 ^ F(e, 1)) << 2 ^ F(e, 2)) << 2 ^ F(e, 3) : 0; } function wr(e) { return e.trim(); } function oe(e, t) { return (e = t.exec(e)) ? e[0] : e; } function v(e, t, r) { return e.replace(t, r); } function qe(e, t, r) { return e.indexOf(t, r); } function F(e, t) { return e.charCodeAt(t) | 0; } function ke(e, t, r) { return e.slice(t, r); } function J(e) { return e.length; } function Cr(e) { return e.length; } function $e(e, t) { return t.push(e), e; } function _n(e, t) { return e.map(t).join(""); } function tr(e, t) { return e.filter(function(r) { return !oe(r, t); }); } var ot = 1, _e = 1, xr = 0, G = 0, $ = 0, Te = ""; function it(e, t, r, o, i, a, c, f) { return { value: e, root: t, parent: r, type: o, props: i, children: a, line: ot, column: _e, length: c, return: "", siblings: f }; } function ue(e, t) { return Ct(it("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t); } function Ee(e) { for (; e.root; ) e = ue(e.root, { children: [e] }); $e(e, e.siblings); } function Rn() { return $; } function jn() { return $ = G > 0 ? F(Te, --G) : 0, _e--, $ === 10 && (_e = 1, ot--), $; } function K() { return $ = G < xr ? F(Te, G++) : 0, _e++, $ === 10 && (_e = 1, ot++), $; } function he() { return F(Te, G); } function Ze() { return G; } function at(e, t) { return ke(Te, e, t); } function xt(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 Pn(e) { return ot = _e = 1, xr = J(Te = e), G = 0, []; } function Tn(e) { return Te = "", e; } function gt(e) { return wr(at(G - 1, St(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } function On(e) { for (; ($ = he()) && $ < 33; ) K(); return xt(e) > 2 || xt($) > 3 ? "" : " "; } function An(e, t) { for (; --t && K() && !($ < 48 || $ > 102 || $ > 57 && $ < 65 || $ > 70 && $ < 97); ) ; return at(e, Ze() + (t < 6 && he() == 32 && K() == 32)); } function St(e) { for (; K(); ) switch ($) { case e: return G; case 34: case 39: e !== 34 && e !== 39 && St($); break; case 40: e === 41 && St(e); break; case 92: K(); break; } return G; } function In(e, t) { for (; K() && e + $ !== 57; ) if (e + $ === 84 && he() === 47) break; return "/*" + at(t, G - 1) + "*" + It(e === 47 ? e : K()); } function Nn(e) { for (; !xt(he()); ) K(); return at(e, G); } function Ln(e) { return Tn(Xe("", null, null, null, [""], e = Pn(e), 0, [0], e)); } function Xe(e, t, r, o, i, a, c, f, u) { for (var h = 0, p = 0, g = c, w = 0, S = 0, T = 0, N = 1, W = 1, R = 1, b = 0, j = "", O = i, I = a, x = o, y = j; W; ) switch (T = b, b = K()) { case 40: if (T != 108 && F(y, g - 1) == 58) { qe(y += v(gt(b), "&", "&\f"), "&\f", br(h ? f[h - 1] : 0)) != -1 && (R = -1); break; } case 34: case 39: case 91: y += gt(b); break; case 9: case 10: case 13: case 32: y += On(T); break; case 92: y += An(Ze() - 1, 7); continue; case 47: switch (he()) { case 42: case 47: $e(Dn(In(K(), Ze()), t, r, u), u); break; default: y += "/"; } break; case 123 * N: f[h++] = J(y) * R; case 125 * N: case 59: case 0: switch (b) { case 0: case 125: W = 0; case 59 + p: R == -1 && (y = v(y, /\f/g, "")), S > 0 && J(y) - g && $e(S > 32 ? nr(y + ";", o, r, g - 1, u) : nr(v(y, " ", "") + ";", o, r, g - 2, u), u); break; case 59: y += ";"; default: if ($e(x = rr(y, t, r, h, p, i, f, j, O = [], I = [], g, a), a), b === 123) if (p === 0) Xe(y, t, x, x, O, a, g, f, I); else switch (w === 99 && F(y, 3) === 110 ? 100 : w) { case 100: case 108: case 109: case 115: Xe(e, x, x, o && $e(rr(e, x, x, 0, 0, i, f, j, i, O = [], g, I), I), i, I, g, f, o ? O : I); break; default: Xe(y, x, x, x, [""], I, 0, f, I); } } h = p = S = 0, N = R = 1, j = y = "", g = c; break; case 58: g = 1 + J(y), S = T; default: if (N < 1) { if (b == 123) --N; else if (b == 125 && N++ == 0 && jn() == 125) continue; } switch (y += It(b), b * N) { case 38: R = p > 0 ? 1 : (y += "\f", -1); break; case 44: f[h++] = (J(y) - 1) * R, R = 1; break; case 64: he() === 45 && (y += gt(K())), w = he(), p = g = J(j = y += Nn(Ze())), b++; break; case 45: T === 45 && J(y) == 2 && (N = 0); } } return a; } function rr(e, t, r, o, i, a, c, f, u, h, p, g) { for (var w = i - 1, S = i === 0 ? a : [""], T = Cr(S), N = 0, W = 0, R = 0; N < o; ++N) for (var b = 0, j = ke(e, w + 1, w = br(W = c[N])), O = e; b < T; ++b) (O = wr(W > 0 ? S[b] + " " + j : v(j, /&\f/g, S[b]))) && (u[R++] = O); return it(e, t, r, i === 0 ? nt : f, u, h, p, g); } function Dn(e, t, r, o) { return it(e, t, r, yr, It(Rn()), ke(e, 2, -2), 0, o); } function nr(e, t, r, o, i) { return it(e, t, r, At, ke(e, 0, o), ke(e, o + 1, -1), o, i); } function Sr(e, t, r) { switch (kn(e, t)) { case 5103: return _ + "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 _ + e + e; case 4789: return Fe + e + e; case 5349: case 4246: case 4810: case 6968: case 2756: return _ + e + Fe + e + A + e + e; case 5936: switch (F(e, t + 11)) { case 114: return _ + e + A + v(e, /[svh]\w+-[tblr]{2}/, "tb") + e; case 108: return _ + e + A + v(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; case 45: return _ + e + A + v(e, /[svh]\w+-[tblr]{2}/, "lr") + e; } case 6828: case 4268: case 2903: return _ + e + A + e + e; case 6165: return _ + e + A + "flex-" + e + e; case 5187: return _ + e + v(e, /(\w+).+(:[^]+)/, _ + "box-$1$2" + A + "flex-$1$2") + e; case 5443: return _ + e + A + "flex-item-" + v(e, /flex-|-self/g, "") + (oe(e, /flex-|baseline/) ? "" : A + "grid-row-" + v(e, /flex-|-self/g, "")) + e; case 4675: return _ + e + A + "flex-line-pack" + v(e, /align-content|flex-|-self/g, "") + e; case 5548: return _ + e + A + v(e, "shrink", "negative") + e; case 5292: return _ + e + A + v(e, "basis", "preferred-size") + e; case 6060: return _ + "box-" + v(e, "-grow", "") + _ + e + A + v(e, "grow", "positive") + e; case 4554: return _ + v(e, /([^-])(transform)/g, "$1" + _ + "$2") + e; case 6187: return v(v(v(e, /(zoom-|grab)/, _ + "$1"), /(image-set)/, _ + "$1"), e, "") + e; case 5495: case 3959: return v(e, /(image-set\([^]*)/, _ + "$1$`$1"); case 4968: return v(v(e, /(.+:)(flex-)?(.*)/, _ + "box-pack:$3" + A + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + _ + e + e; case 4200: if (!oe(e, /flex-|baseline/)) return A + "grid-column-align" + ke(e, t) + e; break; case 2592: case 3360: return A + v(e, "template-", "") + e; case 4384: case 3616: return r && r.some(function(o, i) { return t = i, oe(o.props, /grid-\w+-end/); }) ? ~qe(e + (r = r[t].value), "span", 0) ? e : A + v(e, "-start", "") + e + A + "grid-row-span:" + (~qe(r, "span", 0) ? oe(r, /\d+/) : +oe(r, /\d+/) - +oe(e, /\d+/)) + ";" : A + v(e, "-start", "") + e; case 4896: case 4128: return r && r.some(function(o) { return oe(o.props, /grid-\w+-start/); }) ? e : A + v(v(e, "-end", "-span"), "span ", "") + e; case 4095: case 3583: case 4068: case 2532: return v(e, /(.+)-inline(.+)/, _ + "$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 (J(e) - 1 - t > 6) switch (F(e, t + 1)) { case 109: if (F(e, t + 4) !== 45) break; case 102: return v(e, /(.+:)(.+)-([^]+)/, "$1" + _ + "$2-$3$1" + Fe + (F(e, t + 3) == 108 ? "$3" : "$2-$3")) + e; case 115: return ~qe(e, "stretch", 0) ? Sr(v(e, "stretch", "fill-available"), t, r) + e : e; } break; case 5152: case 5920: return v(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(o, i, a, c, f, u, h) { return A + i + ":" + a + h + (c ? A + i + "-span:" + (f ? u : +u - +a) + h : "") + e; }); case 4949: if (F(e, t + 6) === 121) return v(e, ":", ":" + _) + e; break; case 6444: switch (F(e, F(e, 14) === 45 ? 18 : 11)) { case 120: return v(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + _ + (F(e, 14) === 45 ? "inline-" : "") + "box$3$1" + _ + "$2$3$1" + A + "$2box$3") + e; case 100: return v(e, ":", ":" + A) + e; } break; case 5719: case 2647: case 2135: case 3927: case 2391: return v(e, "scroll-", "scroll-snap-") + e; } return e; } function tt(e, t) { for (var r = "", o = 0; o < e.length; o++) r += t(e[o], o, e, t) || ""; return r; } function $n(e, t, r, o) { switch (e.type) { case En: if (e.children.length) break; case Sn: case At: return e.return = e.return || e.value; case yr: return ""; case vr: return e.return = e.value + "{" + tt(e.children, o) + "}"; case nt: if (!J(e.value = e.props.join(","))) return ""; } return J(r = tt(e.children, o)) ? e.return = e.value + "{" + r + "}" : ""; } function Fn(e) { var t = Cr(e); return function(r, o, i, a) { for (var c = "", f = 0; f < t; f++) c += e[f](r, o, i, a) || ""; return c; }; } function Mn(e) { return function(t) { t.root || (t = t.return) && e(t); }; } function Wn(e, t, r, o) { if (e.length > -1 && !e.return) switch (e.type) { case At: e.return = Sr(e.value, e.length, r); return; case vr: return tt([ue(e, { value: v(e.value, "@", "@" + _) })], o); case nt: if (e.length) return _n(r = e.props, function(i) { switch (oe(i, o = /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": Ee(ue(e, { props: [v(i, /:(read-\w+)/, ":" + Fe + "$1")] })), Ee(ue(e, { props: [i] })), Ct(e, { props: tr(r, o) }); break; case "::placeholder": Ee(ue(e, { props: [v(i, /:(plac\w+)/, ":" + _ + "input-$1")] })), Ee(ue(e, { props: [v(i, /:(plac\w+)/, ":" + Fe + "$1")] })), Ee(ue(e, { props: [v(i, /:(plac\w+)/, A + "input-$1")] })), Ee(ue(e, { props: [i] })), Ct(e, { props: tr(r, o) }); break; } return ""; }); } } var Bn = { animationIterationCount: 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, 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 }, ye = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Er = "active", kr = "data-styled-version", st = "6.1.8", Nt = `/*!sc*/ `, Lt = typeof window < "u" && "HTMLElement" in window, Un = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), or = /invalid hook call/i, ze = /* @__PURE__ */ new Set(), Vn = function(e, t) { if (process.env.NODE_ENV !== "production") { var r = t ? ' with the id of "'.concat(t, '"') : "", o = "The component ".concat(e).concat(r, ` has been created dynamically. `) + `You may see this warning because you've called styled inside another component. To resolve this only create new StyledComponents outside of any render method and function component.`, i = console.error; try { var a = !0; console.error = function(c) { for (var f = [], u = 1; u < arguments.length; u++) f[u - 1] = arguments[u]; or.test(c) ? (a = !1, ze.delete(o)) : i.apply(void 0, ge([c], f, !1)); }, pn(), a && !ze.has(o) && (console.warn(o), ze.add(o)); } catch (c) { or.test(c.message) && ze.delete(o); } finally { console.error = i; } } }, ct = Object.freeze([]), Re = Object.freeze({}); function zn(e, t, r) { return r === void 0 && (r = Re), e.theme !== r.theme && e.theme || t || r.theme; } var Et = /* @__PURE__ */ new Set(["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", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "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", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Yn = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Hn = /(^-|-$)/g; function ir(e) { return e.replace(Yn, "-").replace(Hn, ""); } var Gn = /(a)(d)/gi, Ye = 52, ar = function(e) { return String.fromCharCode(e + (e > 25 ? 39 : 97)); }; function kt(e) { var t, r = ""; for (t = Math.abs(e); t > Ye; t = t / Ye | 0) r = ar(t % Ye) + r; return (ar(t % Ye) + r).replace(Gn, "$1-$2"); } var yt, _r = 5381, pe = function(e, t) { for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r); return e; }, Rr = function(e) { return pe(_r, e); }; function jr(e) { return kt(Rr(e) >>> 0); } function Pr(e) { return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component"; } function vt(e) { return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase()); } var Tr = typeof Symbol == "function" && Symbol.for, Or = Tr ? Symbol.for("react.memo") : 60115, qn = Tr ? Symbol.for("react.forward_ref") : 60112, Zn = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Xn = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Ar = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Kn = ((yt = {})[qn] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, yt[Or] = Ar, yt); function sr(e) { return ("type" in (t = e) && t.type.$$typeof) === Or ? Ar : "$$typeof" in e ? Kn[e.$$typeof] : Zn; var t; } var Jn = Object.defineProperty, Qn = Object.getOwnPropertyNames, cr = Object.getOwnPropertySymbols, eo = Object.getOwnPropertyDescriptor, to = Object.getPrototypeOf, lr = Object.prototype; function Ir(e, t, r) { if (typeof t != "string") { if (lr) { var o = to(t); o && o !== lr && Ir(e, o, r); } var i = Qn(t); cr && (i = i.concat(cr(t))); for (var a = sr(e), c = sr(t), f = 0; f < i.length; ++f) { var u = i[f]; if (!(u in Xn || r && r[u] || c && u in c || a && u in a)) { var h = eo(t, u); try { Jn(e, u, h); } catch { } } } } return e; } function je(e) { return typeof e == "function"; } function Dt(e) { return typeof e == "object" && "styledComponentId" in e; } function de(e, t) { return e && t ? "".concat(e, " ").concat(t) : e || t || ""; } function _t(e, t) { if (e.length === 0) return ""; for (var r = e[0], o = 1; o < e.length; o++) r += t ? t + e[o] : e[o]; return r; } function Pe(e) { return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof); } function Rt(e, t, r) { if (r === void 0 && (r = !1), !r && !Pe(e) && !Array.isArray(e)) return t; if (Array.isArray(t)) for (var o = 0; o < t.length; o++) e[o] = Rt(e[o], t[o]); else if (Pe(t)) for (var o in t) e[o] = Rt(e[o], t[o]); return e; } function $t(e, t) { Object.defineProperty(e, "toString", { value: t }); } var ro = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s. `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle. - Are you trying to reuse it across renders? - Are you accidentally calling collectStyles twice? `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser. `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop! - Does this error occur on the client and is your target falsy? - Does this error occur on the server and is the sheet falsy? `, 5: `The clone method cannot be used on the client! - Are you running in a client-like environment on the server? - Are you trying to run SSR on the client? `, 6: `Trying to insert a new style tag, but the given Node is unmounted! - Are you using a custom target that isn't mounted? - Does your document not have a valid head element? - Have you accidentally removed a style tag manually? `, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object. `, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021 `, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements. `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details. `, 14: `ThemeProvider: "theme" prop is required. `, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s. You may only create up to 1,073,741,824 components. If you're creating components dynamically, as for instance in your render method then you may be running into this limitation. `, 17: `CSSStyleSheet could not be found on HTMLStyleElement. Has styled-components' style tag been unmounted or altered by another script? `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {}; function no() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; for (var r = e[0], o = [], i = 1, a = e.length; i < a; i += 1) o.push(e[i]); return o.forEach(function(c) { r = r.replace(/%[a-z]/, c); }), r; } function Oe(e) { for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".con