UNPKG

@feedspring/framer-google-reviews

Version:
1,444 lines (1,441 loc) 129 kB
import * as ne from "react"; import kt, { useState as Vt, useEffect as Fn, useMemo as lt, forwardRef as Yn, useContext as zn } from "react"; import { ControlType as C } from "framer"; var Ut = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function Pt(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var nt = { exports: {} }, Re = {}; /** * @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 Rt; function On() { if (Rt) return Re; Rt = 1; var e = kt, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), c = 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 s(b, m, y) { var I, p = {}, B = null, R = null; y !== void 0 && (B = "" + y), m.key !== void 0 && (B = "" + m.key), m.ref !== void 0 && (R = m.ref); for (I in m) c.call(m, I) && !a.hasOwnProperty(I) && (p[I] = m[I]); if (b && b.defaultProps) for (I in m = b.defaultProps, m) p[I] === void 0 && (p[I] = m[I]); return { $$typeof: t, type: b, key: B, ref: R, props: p, _owner: i.current }; } return Re.Fragment = r, Re.jsx = s, Re.jsxs = s, Re; } var He = {}; /** * @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 Ht; function En() { return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() { var e = kt, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), b = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), A = Symbol.iterator, f = "@@iterator"; function Y(n) { if (n === null || typeof n != "object") return null; var l = A && n[A] || n[f]; return typeof l == "function" ? l : null; } var W = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function v(n) { { for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), h = 1; h < l; h++) u[h - 1] = arguments[h]; D("error", n, u); } } function D(n, l, u) { { var h = W.ReactDebugCurrentFrame, w = h.getStackAddendum(); w !== "" && (l += "%s", u = u.concat([w])); var O = u.map(function(H) { return String(H); }); O.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, O); } } var ae = !1, T = !1, j = !1, N = !1, Ze = !1, le; le = Symbol.for("react.module.reference"); function S(n) { return !!(typeof n == "string" || typeof n == "function" || n === c || n === a || Ze || n === i || n === y || n === I || N || n === R || ae || T || j || typeof n == "object" && n !== null && (n.$$typeof === B || n.$$typeof === p || n.$$typeof === s || n.$$typeof === b || n.$$typeof === m || // 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 === le || n.getModuleId !== void 0)); } function F(n, l, u) { var h = n.displayName; if (h) return h; var w = l.displayName || l.name || ""; return w !== "" ? u + "(" + w + ")" : u; } function Ce(n) { return n.displayName || "Context"; } function se(n) { if (n == null) return null; if (typeof n.tag == "number" && v("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 c: return "Fragment"; case r: return "Portal"; case a: return "Profiler"; case i: return "StrictMode"; case y: return "Suspense"; case I: return "SuspenseList"; } if (typeof n == "object") switch (n.$$typeof) { case b: var l = n; return Ce(l) + ".Consumer"; case s: var u = n; return Ce(u._context) + ".Provider"; case m: return F(n, n.render, "ForwardRef"); case p: var h = n.displayName || null; return h !== null ? h : se(n.type) || "Memo"; case B: { var w = n, O = w._payload, H = w._init; try { return se(H(O)); } catch { return null; } } } return null; } var Z = Object.assign, d = 0, o, G, g, X, x, z, M; function k() { } k.__reactDisabledLog = !0; function $() { { if (d === 0) { o = console.log, G = console.info, g = console.warn, X = console.error, x = console.group, z = console.groupCollapsed, M = console.groupEnd; var n = { configurable: !0, enumerable: !0, value: k, writable: !0 }; Object.defineProperties(console, { info: n, log: n, warn: n, error: n, group: n, groupCollapsed: n, groupEnd: n }); } d++; } } function te() { { if (d--, d === 0) { var n = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: Z({}, n, { value: o }), info: Z({}, n, { value: G }), warn: Z({}, n, { value: g }), error: Z({}, n, { value: X }), group: Z({}, n, { value: x }), groupCollapsed: Z({}, n, { value: z }), groupEnd: Z({}, n, { value: M }) }); } d < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var ge = W.ReactCurrentDispatcher, ue; function me(n, l, u) { { if (ue === void 0) try { throw Error(); } catch (w) { var h = w.stack.trim().match(/\n( *(at )?)/); ue = h && h[1] || ""; } return ` ` + ue + n; } } var be = !1, Q; { var Ie = typeof WeakMap == "function" ? WeakMap : Map; Q = new Ie(); } function Ge(n, l) { if (!n || be) return ""; { var u = Q.get(n); if (u !== void 0) return u; } var h; be = !0; var w = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var O; O = ge.current, ge.current = null, $(); try { if (l) { var H = function() { throw Error(); }; if (Object.defineProperty(H.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(H, []); } catch (ye) { h = ye; } Reflect.construct(n, [], H); } else { try { H.call(); } catch (ye) { h = ye; } n.call(H.prototype); } } else { try { throw Error(); } catch (ye) { h = ye; } n(); } } catch (ye) { if (ye && h && typeof ye.stack == "string") { for (var V = ye.stack.split(` `), ee = h.stack.split(` `), U = V.length - 1, P = ee.length - 1; U >= 1 && P >= 0 && V[U] !== ee[P]; ) P--; for (; U >= 1 && P >= 0; U--, P--) if (V[U] !== ee[P]) { if (U !== 1 || P !== 1) do if (U--, P--, P < 0 || V[U] !== ee[P]) { var oe = ` ` + V[U].replace(" at new ", " at "); return n.displayName && oe.includes("<anonymous>") && (oe = oe.replace("<anonymous>", n.displayName)), typeof n == "function" && Q.set(n, oe), oe; } while (U >= 1 && P >= 0); break; } } } finally { be = !1, ge.current = O, te(), Error.prepareStackTrace = w; } var Xe = n ? n.displayName || n.name : "", Bt = Xe ? me(Xe) : ""; return typeof n == "function" && Q.set(n, Bt), Bt; } function he(n, l, u) { return Ge(n, !1); } function In(n) { var l = n.prototype; return !!(l && l.isReactComponent); } function Ye(n, l, u) { if (n == null) return ""; if (typeof n == "function") return Ge(n, In(n)); if (typeof n == "string") return me(n); switch (n) { case y: return me("Suspense"); case I: return me("SuspenseList"); } if (typeof n == "object") switch (n.$$typeof) { case m: return he(n.render); case p: return Ye(n.type, l, u); case B: { var h = n, w = h._payload, O = h._init; try { return Ye(O(w), l, u); } catch { } } } return ""; } var ze = Object.prototype.hasOwnProperty, pt = {}, ft = W.ReactDebugCurrentFrame; function Oe(n) { if (n) { var l = n._owner, u = Ye(n.type, n._source, l ? l.type : null); ft.setExtraStackFrame(u); } else ft.setExtraStackFrame(null); } function pn(n, l, u, h, w) { { var O = Function.call.bind(ze); for (var H in n) if (O(n, H)) { var V = void 0; try { if (typeof n[H] != "function") { var ee = Error((h || "React class") + ": " + u + " type `" + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[H] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw ee.name = "Invariant Violation", ee; } V = n[H](l, H, h, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (U) { V = U; } V && !(V instanceof Error) && (Oe(w), v("%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).", h || "React class", u, H, typeof V), Oe(null)), V instanceof Error && !(V.message in pt) && (pt[V.message] = !0, Oe(w), v("Failed %s type: %s", u, V.message), Oe(null)); } } } var fn = Array.isArray; function Qe(n) { return fn(n); } function yn(n) { { var l = typeof Symbol == "function" && Symbol.toStringTag, u = l && n[Symbol.toStringTag] || n.constructor.name || "Object"; return u; } } function Gn(n) { try { return yt(n), !1; } catch { return !0; } } function yt(n) { return "" + n; } function Gt(n) { if (Gn(n)) return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yn(n)), yt(n); } var Ve = W.ReactCurrentOwner, Zn = { key: !0, ref: !0, __self: !0, __source: !0 }, Zt, Ct, $e; $e = {}; function Cn(n) { if (ze.call(n, "ref")) { var l = Object.getOwnPropertyDescriptor(n, "ref").get; if (l && l.isReactWarning) return !1; } return n.ref !== void 0; } function hn(n) { if (ze.call(n, "key")) { var l = Object.getOwnPropertyDescriptor(n, "key").get; if (l && l.isReactWarning) return !1; } return n.key !== void 0; } function vn(n, l) { if (typeof n.ref == "string" && Ve.current && l && Ve.current.stateNode !== l) { var u = se(Ve.current.type); $e[u] || (v('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', se(Ve.current.type), n.ref), $e[u] = !0); } } function Xn(n, l) { { var u = function() { Zt || (Zt = !0, v("%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)", l)); }; u.isReactWarning = !0, Object.defineProperty(n, "key", { get: u, configurable: !0 }); } } function xn(n, l) { { var u = function() { Ct || (Ct = !0, v("%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)", l)); }; u.isReactWarning = !0, Object.defineProperty(n, "ref", { get: u, configurable: !0 }); } } var An = function(n, l, u, h, w, O, H) { var V = { // 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: l, ref: u, props: H, // Record the component responsible for creating this element. _owner: O }; return V._store = {}, Object.defineProperty(V._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(V, "_self", { configurable: !1, enumerable: !1, writable: !1, value: h }), Object.defineProperty(V, "_source", { configurable: !1, enumerable: !1, writable: !1, value: w }), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V; }; function Wn(n, l, u, h, w) { { var O, H = {}, V = null, ee = null; u !== void 0 && (Gt(u), V = "" + u), hn(l) && (Gt(l.key), V = "" + l.key), Cn(l) && (ee = l.ref, vn(l, w)); for (O in l) ze.call(l, O) && !Zn.hasOwnProperty(O) && (H[O] = l[O]); if (n && n.defaultProps) { var U = n.defaultProps; for (O in U) H[O] === void 0 && (H[O] = U[O]); } if (V || ee) { var P = typeof n == "function" ? n.displayName || n.name || "Unknown" : n; V && Xn(H, P), ee && xn(H, P); } return An(n, V, ee, w, h, Ve.current, H); } } var Ke = W.ReactCurrentOwner, ht = W.ReactDebugCurrentFrame; function ve(n) { if (n) { var l = n._owner, u = Ye(n.type, n._source, l ? l.type : null); ht.setExtraStackFrame(u); } else ht.setExtraStackFrame(null); } var qe; qe = !1; function et(n) { return typeof n == "object" && n !== null && n.$$typeof === t; } function vt() { { if (Ke.current) { var n = se(Ke.current.type); if (n) return ` Check the render method of \`` + n + "`."; } return ""; } } function Bn(n) { { if (n !== void 0) { var l = n.fileName.replace(/^.*[\\\/]/, ""), u = n.lineNumber; return ` Check your code at ` + l + ":" + u + "."; } return ""; } } var Xt = {}; function Vn(n) { { var l = vt(); if (!l) { var u = typeof n == "string" ? n : n.displayName || n.name; u && (l = ` Check the top-level render call using <` + u + ">."); } return l; } } function xt(n, l) { { if (!n._store || n._store.validated || n.key != null) return; n._store.validated = !0; var u = Vn(l); if (Xt[u]) return; Xt[u] = !0; var h = ""; n && n._owner && n._owner !== Ke.current && (h = " It was passed a child from " + se(n._owner.type) + "."), ve(n), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, h), ve(null); } } function At(n, l) { { if (typeof n != "object") return; if (Qe(n)) for (var u = 0; u < n.length; u++) { var h = n[u]; et(h) && xt(h, l); } else if (et(n)) n._store && (n._store.validated = !0); else if (n) { var w = Y(n); if (typeof w == "function" && w !== n.entries) for (var O = w.call(n), H; !(H = O.next()).done; ) et(H.value) && xt(H.value, l); } } } function Rn(n) { { var l = n.type; if (l == null || typeof l == "string") return; var u; if (typeof l == "function") u = l.propTypes; else if (typeof l == "object" && (l.$$typeof === m || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. l.$$typeof === p)) u = l.propTypes; else return; if (u) { var h = se(l); pn(u, n.props, "prop", h, n); } else if (l.PropTypes !== void 0 && !qe) { qe = !0; var w = se(l); v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown"); } typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function Hn(n) { { for (var l = Object.keys(n.props), u = 0; u < l.length; u++) { var h = l[u]; if (h !== "children" && h !== "key") { ve(n), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), ve(null); break; } } n.ref !== null && (ve(n), v("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null)); } } function Wt(n, l, u, h, w, O) { { var H = S(n); if (!H) { var V = ""; (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (V += " 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 ee = Bn(w); ee ? V += ee : V += vt(); var U; n === null ? U = "null" : Qe(n) ? U = "array" : n !== void 0 && n.$$typeof === t ? (U = "<" + (se(n.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : U = typeof n, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", U, V); } var P = Wn(n, l, u, w, O); if (P == null) return P; if (H) { var oe = l.children; if (oe !== void 0) if (h) if (Qe(oe)) { for (var Xe = 0; Xe < oe.length; Xe++) At(oe[Xe], n); Object.freeze && Object.freeze(oe); } else v("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 At(oe, n); } return n === c ? Hn(P) : Rn(P), P; } } function Nn(n, l, u) { return Wt(n, l, u, !0); } function wn(n, l, u) { return Wt(n, l, u, !1); } var Jn = wn, Ln = Nn; He.Fragment = c, He.jsx = Jn, He.jsxs = Ln; }()), He; } process.env.NODE_ENV === "production" ? nt.exports = On() : nt.exports = En(); var _t = nt.exports; const E = _t.jsx, We = _t.jsxs, Sn = async (e) => { const t = await fetch(`https://api.feedspring.co/${e}`), r = await t.json(); return t.ok, r; }, Dn = async (e) => { const t = await Sn(e); if ("error" in t) throw new Error(`${t.error.message} (${t.error.code})`); return t; }, pc = (e, t, r = 0) => { const [c, i] = Vt(), [a, s] = Vt(!1), b = async () => { try { s(!0); const y = await Dn(e); y.data && i(y.data); } finally { s(!1); } }; Fn(() => { b(); }, [e]); const m = lt(() => c == null ? void 0 : c.media.slice(r, t + r), [c, t, r]); return { feed: c, items: m, loading: a }; }, Nt = { "fixed-height": "Fixed Height", "aspect-ratio": "Aspect Ratio" }; C.Enum, Object.keys(Nt), Object.values(Nt); const fc = { type: C.String, title: "ID", placeholder: "Please type Feedspring Feed ID...", description: "Create a [FeedSpring](https://app.feedspring.co/) account, add a new feed and copy its ID. [Learn more...](https://app.feedspring.co/)" }, yc = { type: C.Number, title: "Feed Posts", defaultValue: 4, min: 1, max: 50, step: 1, displayStepper: !0 }, Gc = { type: C.Number, title: "Google Reviews Posts", defaultValue: 6, min: 1, max: 50, step: 1, displayStepper: !0 }; C.Number; C.Number; C.Number; const Zc = { type: C.Number, title: "Bento Items", defaultValue: 4, min: 4, max: 16, step: 1 }, Cc = { type: C.Number, title: "Skip", description: "The skip feed option allows you to specify posts that should be excluded from display on your website.", defaultValue: 0, min: 0, max: 99, step: 1, displayStepper: !0 }; function rt() { return rt = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var c in r) Object.prototype.hasOwnProperty.call(r, c) && (e[c] = r[c]); } return e; }, rt.apply(this, arguments); } function Qt(e) { var t = /* @__PURE__ */ Object.create(null); return function(r) { return t[r] === void 0 && (t[r] = e(r)), t[r]; }; } var Mn = /^((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)-.*))$/, jn = /* @__PURE__ */ Qt( function(e) { return Mn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } /* Z+1 */ ); function Tn(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 kn(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 Un = /* @__PURE__ */ function() { function e(r) { var c = this; this._insertTag = function(i) { var a; c.tags.length === 0 ? c.insertionPoint ? a = c.insertionPoint.nextSibling : c.prepend ? a = c.container.firstChild : a = c.before : a = c.tags[c.tags.length - 1].nextSibling, c.container.insertBefore(i, a), c.tags.push(i); }, this.isSpeedy = r.speedy === void 0 ? process.env.NODE_ENV === "production" : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null; } var t = e.prototype; return t.hydrate = function(c) { c.forEach(this._insertTag); }, t.insert = function(c) { this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(kn(this)); var i = this.tags[this.tags.length - 1]; if (process.env.NODE_ENV !== "production") { var a = c.charCodeAt(0) === 64 && c.charCodeAt(1) === 105; a && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule: ` + c + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !a; } if (this.isSpeedy) { var s = Tn(i); try { s.insertRule(c, s.cssRules.length); } catch (b) { process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(c) && console.error('There was a problem inserting the following rule: "' + c + '"', b); } } else i.appendChild(document.createTextNode(c)); this.ctr++; }, t.flush = function() { this.tags.forEach(function(c) { return c.parentNode && c.parentNode.removeChild(c); }), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1); }, e; }(), q = "-ms-", je = "-moz-", J = "-webkit-", st = "comm", ot = "rule", ut = "decl", Pn = "@import", $t = "@keyframes", _n = "@layer", Qn = Math.abs, ke = String.fromCharCode, $n = Object.assign; function Kn(e, t) { return K(e, 0) ^ 45 ? (((t << 2 ^ K(e, 0)) << 2 ^ K(e, 1)) << 2 ^ K(e, 2)) << 2 ^ K(e, 3) : 0; } function Kt(e) { return e.trim(); } function qn(e, t) { return (e = t.exec(e)) ? e[0] : e; } function L(e, t, r) { return e.replace(t, r); } function ct(e, t) { return e.indexOf(t); } function K(e, t) { return e.charCodeAt(t) | 0; } function we(e, t, r) { return e.slice(t, r); } function pe(e) { return e.length; } function bt(e) { return e.length; } function Ee(e, t) { return t.push(e), e; } function er(e, t) { return e.map(t).join(""); } var Ue = 1, Ae = 1, qt = 0, re = 0, _ = 0, Be = ""; function Pe(e, t, r, c, i, a, s) { return { value: e, root: t, parent: r, type: c, props: i, children: a, line: Ue, column: Ae, length: s, return: "" }; } function Ne(e, t) { return $n(Pe("", null, null, "", null, null, 0), e, { length: -e.length }, t); } function tr() { return _; } function nr() { return _ = re > 0 ? K(Be, --re) : 0, Ae--, _ === 10 && (Ae = 1, Ue--), _; } function ie() { return _ = re < qt ? K(Be, re++) : 0, Ae++, _ === 10 && (Ae = 1, Ue++), _; } function fe() { return K(Be, re); } function Se() { return re; } function Fe(e, t) { return we(Be, e, t); } function Je(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 en(e) { return Ue = Ae = 1, qt = pe(Be = e), re = 0, []; } function tn(e) { return Be = "", e; } function De(e) { return Kt(Fe(re - 1, it(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); } function rr(e) { for (; (_ = fe()) && _ < 33; ) ie(); return Je(e) > 2 || Je(_) > 3 ? "" : " "; } function cr(e, t) { for (; --t && ie() && !(_ < 48 || _ > 102 || _ > 57 && _ < 65 || _ > 70 && _ < 97); ) ; return Fe(e, Se() + (t < 6 && fe() == 32 && ie() == 32)); } function it(e) { for (; ie(); ) switch (_) { case e: return re; case 34: case 39: e !== 34 && e !== 39 && it(_); break; case 40: e === 41 && it(e); break; case 92: ie(); break; } return re; } function ir(e, t) { for (; ie() && e + _ !== 47 + 10; ) if (e + _ === 42 + 42 && fe() === 47) break; return "/*" + Fe(t, re - 1) + "*" + ke(e === 47 ? e : ie()); } function ar(e) { for (; !Je(fe()); ) ie(); return Fe(e, re); } function lr(e) { return tn(Me("", null, null, null, [""], e = en(e), 0, [0], e)); } function Me(e, t, r, c, i, a, s, b, m) { for (var y = 0, I = 0, p = s, B = 0, R = 0, A = 0, f = 1, Y = 1, W = 1, v = 0, D = "", ae = i, T = a, j = c, N = D; Y; ) switch (A = v, v = ie()) { case 40: if (A != 108 && K(N, p - 1) == 58) { ct(N += L(De(v), "&", "&\f"), "&\f") != -1 && (W = -1); break; } case 34: case 39: case 91: N += De(v); break; case 9: case 10: case 13: case 32: N += rr(A); break; case 92: N += cr(Se() - 1, 7); continue; case 47: switch (fe()) { case 42: case 47: Ee(sr(ir(ie(), Se()), t, r), m); break; default: N += "/"; } break; case 123 * f: b[y++] = pe(N) * W; case 125 * f: case 59: case 0: switch (v) { case 0: case 125: Y = 0; case 59 + I: W == -1 && (N = L(N, /\f/g, "")), R > 0 && pe(N) - p && Ee(R > 32 ? Jt(N + ";", c, r, p - 1) : Jt(L(N, " ", "") + ";", c, r, p - 2), m); break; case 59: N += ";"; default: if (Ee(j = wt(N, t, r, y, I, i, b, D, ae = [], T = [], p), a), v === 123) if (I === 0) Me(N, t, j, j, ae, a, p, b, T); else switch (B === 99 && K(N, 3) === 110 ? 100 : B) { case 100: case 108: case 109: case 115: Me(e, j, j, c && Ee(wt(e, j, j, 0, 0, i, b, D, i, ae = [], p), T), i, T, p, b, c ? ae : T); break; default: Me(N, j, j, j, [""], T, 0, b, T); } } y = I = R = 0, f = W = 1, D = N = "", p = s; break; case 58: p = 1 + pe(N), R = A; default: if (f < 1) { if (v == 123) --f; else if (v == 125 && f++ == 0 && nr() == 125) continue; } switch (N += ke(v), v * f) { case 38: W = I > 0 ? 1 : (N += "\f", -1); break; case 44: b[y++] = (pe(N) - 1) * W, W = 1; break; case 64: fe() === 45 && (N += De(ie())), B = fe(), I = p = pe(D = N += ar(Se())), v++; break; case 45: A === 45 && pe(N) == 2 && (f = 0); } } return a; } function wt(e, t, r, c, i, a, s, b, m, y, I) { for (var p = i - 1, B = i === 0 ? a : [""], R = bt(B), A = 0, f = 0, Y = 0; A < c; ++A) for (var W = 0, v = we(e, p + 1, p = Qn(f = s[A])), D = e; W < R; ++W) (D = Kt(f > 0 ? B[W] + " " + v : L(v, /&\f/g, B[W]))) && (m[Y++] = D); return Pe(e, t, r, i === 0 ? ot : b, m, y, I); } function sr(e, t, r) { return Pe(e, t, r, st, ke(tr()), we(e, 2, -2), 0); } function Jt(e, t, r, c) { return Pe(e, t, r, ut, we(e, 0, c), we(e, c + 1, -1), c); } function xe(e, t) { for (var r = "", c = bt(e), i = 0; i < c; i++) r += t(e[i], i, e, t) || ""; return r; } function or(e, t, r, c) { switch (e.type) { case _n: if (e.children.length) break; case Pn: case ut: return e.return = e.return || e.value; case st: return ""; case $t: return e.return = e.value + "{" + xe(e.children, c) + "}"; case ot: e.value = e.props.join(","); } return pe(r = xe(e.children, c)) ? e.return = e.value + "{" + r + "}" : ""; } function ur(e) { var t = bt(e); return function(r, c, i, a) { for (var s = "", b = 0; b < t; b++) s += e[b](r, c, i, a) || ""; return s; }; } function br(e) { return function(t) { t.root || (t = t.return) && e(t); }; } var dr = function(t, r, c) { for (var i = 0, a = 0; i = a, a = fe(), i === 38 && a === 12 && (r[c] = 1), !Je(a); ) ie(); return Fe(t, re); }, gr = function(t, r) { var c = -1, i = 44; do switch (Je(i)) { case 0: i === 38 && fe() === 12 && (r[c] = 1), t[c] += dr(re - 1, r, c); break; case 2: t[c] += De(i); break; case 4: if (i === 44) { t[++c] = fe() === 58 ? "&\f" : "", r[c] = t[c].length; break; } default: t[c] += ke(i); } while (i = ie()); return t; }, mr = function(t, r) { return tn(gr(en(t), r)); }, Lt = /* @__PURE__ */ new WeakMap(), Ir = 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 r = t.value, c = t.parent, i = t.column === c.column && t.line === c.line; c.type !== "rule"; ) if (c = c.parent, !c) return; if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Lt.get(c)) && !i) { Lt.set(t, !0); for (var a = [], s = mr(r, a), b = c.props, m = 0, y = 0; m < s.length; m++) for (var I = 0; I < b.length; I++, y++) t.props[y] = a[m] ? s[m].replace(/&\f/g, b[I]) : b[I] + " " + s[m]; } } }, pr = function(t) { if (t.type === "decl") { var r = t.value; // charcode for l r.charCodeAt(0) === 108 && // charcode for b r.charCodeAt(2) === 98 && (t.return = "", t.value = ""); } }, fr = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", yr = function(t) { return t.type === "comm" && t.children.indexOf(fr) > -1; }, Gr = function(t) { return function(r, c, i) { if (!(r.type !== "rule" || t.compat)) { var a = r.value.match(/(:first|:nth|:nth-last)-child/g); if (a) { for (var s = !!r.parent, b = s ? r.parent.children : ( // global rule at the root level i ), m = b.length - 1; m >= 0; m--) { var y = b[m]; if (y.line < r.line) break; if (y.column < r.column) { if (yr(y)) return; break; } } a.forEach(function(I) { console.error('The pseudo class "' + I + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + I.split("-child")[0] + '-of-type".'); }); } } }; }, nn = function(t) { return t.type.charCodeAt(1) === 105 && t.type.charCodeAt(0) === 64; }, Zr = function(t, r) { for (var c = t - 1; c >= 0; c--) if (!nn(r[c])) return !0; return !1; }, Ft = function(t) { t.type = "", t.value = "", t.return = "", t.children = "", t.props = ""; }, Cr = function(t, r, c) { nn(t) && (t.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), Ft(t)) : Zr(r, c) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), Ft(t))); }; function rn(e, t) { switch (Kn(e, t)) { case 5103: return J + "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 J + e + e; case 5349: case 4246: case 4810: case 6968: case 2756: return J + e + je + e + q + e + e; case 6828: case 4268: return J + e + q + e + e; case 6165: return J + e + q + "flex-" + e + e; case 5187: return J + e + L(e, /(\w+).+(:[^]+)/, J + "box-$1$2" + q + "flex-$1$2") + e; case 5443: return J + e + q + "flex-item-" + L(e, /flex-|-self/, "") + e; case 4675: return J + e + q + "flex-line-pack" + L(e, /align-content|flex-|-self/, "") + e; case 5548: return J + e + q + L(e, "shrink", "negative") + e; case 5292: return J + e + q + L(e, "basis", "preferred-size") + e; case 6060: return J + "box-" + L(e, "-grow", "") + J + e + q + L(e, "grow", "positive") + e; case 4554: return J + L(e, /([^-])(transform)/g, "$1" + J + "$2") + e; case 6187: return L(L(L(e, /(zoom-|grab)/, J + "$1"), /(image-set)/, J + "$1"), e, "") + e; case 5495: case 3959: return L(e, /(image-set\([^]*)/, J + "$1$`$1"); case 4968: return L(L(e, /(.+:)(flex-)?(.*)/, J + "box-pack:$3" + q + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + J + e + e; case 4095: case 3583: case 4068: case 2532: return L(e, /(.+)-inline(.+)/, J + "$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 (pe(e) - 1 - t > 6) switch (K(e, t + 1)) { case 109: if (K(e, t + 4) !== 45) break; case 102: return L(e, /(.+:)(.+)-([^]+)/, "$1" + J + "$2-$3$1" + je + (K(e, t + 3) == 108 ? "$3" : "$2-$3")) + e; case 115: return ~ct(e, "stretch") ? rn(L(e, "stretch", "fill-available"), t) + e : e; } break; case 4949: if (K(e, t + 1) !== 115) break; case 6444: switch (K(e, pe(e) - 3 - (~ct(e, "!important") && 10))) { case 107: return L(e, ":", ":" + J) + e; case 101: return L(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + J + (K(e, 14) === 45 ? "inline-" : "") + "box$3$1" + J + "$2$3$1" + q + "$2box$3") + e; } break; case 5936: switch (K(e, t + 11)) { case 114: return J + e + q + L(e, /[svh]\w+-[tblr]{2}/, "tb") + e; case 108: return J + e + q + L(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; case 45: return J + e + q + L(e, /[svh]\w+-[tblr]{2}/, "lr") + e; } return J + e + q + e + e; } return e; } var hr = function(t, r, c, i) { if (t.length > -1 && !t.return) switch (t.type) { case ut: t.return = rn(t.value, t.length); break; case $t: return xe([Ne(t, { value: L(t.value, "@", "@" + J) })], i); case ot: if (t.length) return er(t.props, function(a) { switch (qn(a, /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": return xe([Ne(t, { props: [L(a, /:(read-\w+)/, ":" + je + "$1")] })], i); case "::placeholder": return xe([Ne(t, { props: [L(a, /:(plac\w+)/, ":" + J + "input-$1")] }), Ne(t, { props: [L(a, /:(plac\w+)/, ":" + je + "$1")] }), Ne(t, { props: [L(a, /:(plac\w+)/, q + "input-$1")] })], i); } return ""; }); } }, vr = [hr], Xr = function(t) { var r = t.key; if (process.env.NODE_ENV !== "production" && !r) throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.`); if (r === "css") { var c = document.querySelectorAll("style[data-emotion]:not([data-s])"); Array.prototype.forEach.call(c, function(f) { var Y = f.getAttribute("data-emotion"); Y.indexOf(" ") !== -1 && (document.head.appendChild(f), f.setAttribute("data-s", "")); }); } var i = t.stylisPlugins || vr; if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(r)) throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + r + '" was passed'); var a = {}, s, b = []; 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^="' + r + ' "]'), function(f) { for (var Y = f.getAttribute("data-emotion").split(" "), W = 1; W < Y.length; W++) a[Y[W]] = !0; b.push(f); } ); var m, y = [Ir, pr]; process.env.NODE_ENV !== "production" && y.push(Gr({ get compat() { return A.compat; } }), Cr); { var I, p = [or, process.env.NODE_ENV !== "production" ? function(f) { f.root || (f.return ? I.insert(f.return) : f.value && f.type !== st && I.insert(f.value + "{}")); } : br(function(f) { I.insert(f); })], B = ur(y.concat(i, p)), R = function(Y) { return xe(lr(Y), B); }; m = function(Y, W, v, D) { I = v, process.env.NODE_ENV !== "production" && W.map !== void 0 && (I = { insert: function(T) { v.insert(T + W.map); } }), R(Y ? Y + "{" + W.styles + "}" : W.styles), D && (A.inserted[W.name] = !0); }; } var A = { key: r, sheet: new Un({ key: r, container: s, nonce: t.nonce, speedy: t.speedy, prepend: t.prepend, insertionPoint: t.insertionPoint }), nonce: t.nonce, inserted: a, registered: {}, insert: m }; return A.sheet.hydrate(b), A; }, xr = !0; function cn(e, t, r) { var c = ""; return r.split(" ").forEach(function(i) { e[i] !== void 0 ? t.push(e[i] + ";") : c += i + " "; }), c; } var dt = function(t, r, c) { var i = t.key + "-" + r.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 (c === !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 xr === !1) && t.registered[i] === void 0 && (t.registered[i] = r.styles); }, an = function(t, r, c) { dt(t, r, c); var i = t.key + "-" + r.name; if (t.inserted[r.name] === void 0) { var a = r; do t.insert(r === a ? "." + i : "", a, t.sheet, !0), a = a.next; while (a !== void 0); } }; function Ar(e) { for (var t = 0, r, c = 0, i = e.length; i >= 4; ++c, i -= 4) r = e.charCodeAt(c) & 255 | (e.charCodeAt(++c) & 255) << 8 | (e.charCodeAt(++c) & 255) << 16 | (e.charCodeAt(++c) & 255) << 24, r = /* Math.imul(k, m): */ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */ r >>> 24, t = /* Math.imul(k, m): */ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16); switch (i) { case 3: t ^= (e.charCodeAt(c + 2) & 255) << 16; case 2: t ^= (e.charCodeAt(c + 1) & 255) << 8; case 1: t ^= e.charCodeAt(c) & 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 Wr = { 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, 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 }, Yt = `You have illegal escape sequence in your template literal, most likely inside content's prop