storybook
Version:
Storybook: Develop, document, and test UI components in isolation
1,590 lines (1,501 loc) • 145 kB
JavaScript
"use strict";
var ro = Object.create;
var Ve = Object.defineProperty;
var to = Object.getOwnPropertyDescriptor;
var no = Object.getOwnPropertyNames;
var ao = Object.getPrototypeOf, oo = Object.prototype.hasOwnProperty;
var o = (e, r) => Ve(e, "name", { value: r, configurable: !0 });
var N = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports), io = (e, r) => {
for (var t in r)
Ve(e, t, { get: r[t], enumerable: !0 });
}, jt = (e, r, t, n) => {
if (r && typeof r == "object" || typeof r == "function")
for (let a of no(r))
!oo.call(e, a) && a !== t && Ve(e, a, { get: () => r[a], enumerable: !(n = to(r, a)) || n.enumerable });
return e;
};
var U = (e, r, t) => (t = e != null ? ro(ao(e)) : {}, jt(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
r || !e || !e.__esModule ? Ve(t, "default", { value: e, enumerable: !0 }) : t,
e
)), so = (e) => jt(Ve({}, "__esModule", { value: !0 }), e);
// ../node_modules/react-is/cjs/react-is.production.min.js
var fn = N((_) => {
"use strict";
var B = typeof Symbol == "function" && Symbol.for, tt = B ? Symbol.for("react.element") : 60103, nt = B ? Symbol.for("react.portal") : 60106,
Sr = B ? Symbol.for("react.fragment") : 60107, wr = B ? Symbol.for("react.strict_mode") : 60108, Er = B ? Symbol.for("react.profiler") : 60114,
Tr = B ? Symbol.for("react.provider") : 60109, Cr = B ? Symbol.for("react.context") : 60110, at = B ? Symbol.for("react.async_mode") : 60111,
Or = B ? Symbol.for("react.concurrent_mode") : 60111, Rr = B ? Symbol.for("react.forward_ref") : 60112, Ar = B ? Symbol.for("react.suspens\
e") : 60113, xo = B ? Symbol.for("react.suspense_list") : 60120, _r = B ? Symbol.for("react.memo") : 60115, Fr = B ? Symbol.for("react.lazy") :
60116, So = B ? Symbol.for("react.block") : 60121, wo = B ? Symbol.for("react.fundamental") : 60117, Eo = B ? Symbol.for("react.responder") :
60118, To = B ? Symbol.for("react.scope") : 60119;
function V(e) {
if (typeof e == "object" && e !== null) {
var r = e.$$typeof;
switch (r) {
case tt:
switch (e = e.type, e) {
case at:
case Or:
case Sr:
case Er:
case wr:
case Ar:
return e;
default:
switch (e = e && e.$$typeof, e) {
case Cr:
case Rr:
case Fr:
case _r:
case Tr:
return e;
default:
return r;
}
}
case nt:
return r;
}
}
}
o(V, "z");
function un(e) {
return V(e) === Or;
}
o(un, "A");
_.AsyncMode = at;
_.ConcurrentMode = Or;
_.ContextConsumer = Cr;
_.ContextProvider = Tr;
_.Element = tt;
_.ForwardRef = Rr;
_.Fragment = Sr;
_.Lazy = Fr;
_.Memo = _r;
_.Portal = nt;
_.Profiler = Er;
_.StrictMode = wr;
_.Suspense = Ar;
_.isAsyncMode = function(e) {
return un(e) || V(e) === at;
};
_.isConcurrentMode = un;
_.isContextConsumer = function(e) {
return V(e) === Cr;
};
_.isContextProvider = function(e) {
return V(e) === Tr;
};
_.isElement = function(e) {
return typeof e == "object" && e !== null && e.$$typeof === tt;
};
_.isForwardRef = function(e) {
return V(e) === Rr;
};
_.isFragment = function(e) {
return V(e) === Sr;
};
_.isLazy = function(e) {
return V(e) === Fr;
};
_.isMemo = function(e) {
return V(e) === _r;
};
_.isPortal = function(e) {
return V(e) === nt;
};
_.isProfiler = function(e) {
return V(e) === Er;
};
_.isStrictMode = function(e) {
return V(e) === wr;
};
_.isSuspense = function(e) {
return V(e) === Ar;
};
_.isValidElementType = function(e) {
return typeof e == "string" || typeof e == "function" || e === Sr || e === Or || e === Er || e === wr || e === Ar || e === xo || typeof e ==
"object" && e !== null && (e.$$typeof === Fr || e.$$typeof === _r || e.$$typeof === Tr || e.$$typeof === Cr || e.$$typeof === Rr || e.$$typeof ===
wo || e.$$typeof === Eo || e.$$typeof === To || e.$$typeof === So);
};
_.typeOf = V;
});
// ../node_modules/react-is/cjs/react-is.development.js
var cn = N((F) => {
"use strict";
process.env.NODE_ENV !== "production" && function() {
"use strict";
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106,
n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114,
s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111,
l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") :
60113, m = e ? Symbol.for("react.suspense_list") : 60120, T = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116,
v = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118,
I = e ? Symbol.for("react.scope") : 60119;
function M(g) {
return typeof g == "string" || typeof g == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
g === n || g === l || g === i || g === a || g === c || g === m || typeof g == "object" && g !== null && (g.$$typeof === y || g.$$typeof ===
T || g.$$typeof === s || g.$$typeof === u || g.$$typeof === d || g.$$typeof === x || g.$$typeof === w || g.$$typeof === I || g.$$typeof ===
v);
}
o(M, "isValidElementType");
function S(g) {
if (typeof g == "object" && g !== null) {
var Yr = g.$$typeof;
switch (Yr) {
case r:
var pr = g.type;
switch (pr) {
case f:
case l:
case n:
case i:
case a:
case c:
return pr;
default:
var Dt = pr && pr.$$typeof;
switch (Dt) {
case u:
case d:
case y:
case T:
case s:
return Dt;
default:
return Yr;
}
}
case t:
return Yr;
}
}
}
o(S, "typeOf");
var R = f, C = l, E = u, X = s, ne = r, q = d, le = n, Vr = y, Gr = T, qr = t, Da = i, ja = a, Ha = c, Bt = !1;
function Wa(g) {
return Bt || (Bt = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update you\
r code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), $t(g) || S(g) === f;
}
o(Wa, "isAsyncMode");
function $t(g) {
return S(g) === l;
}
o($t, "isConcurrentMode");
function Ua(g) {
return S(g) === u;
}
o(Ua, "isContextConsumer");
function Va(g) {
return S(g) === s;
}
o(Va, "isContextProvider");
function Ga(g) {
return typeof g == "object" && g !== null && g.$$typeof === r;
}
o(Ga, "isElement");
function qa(g) {
return S(g) === d;
}
o(qa, "isForwardRef");
function Ya(g) {
return S(g) === n;
}
o(Ya, "isFragment");
function Ja(g) {
return S(g) === y;
}
o(Ja, "isLazy");
function Ka(g) {
return S(g) === T;
}
o(Ka, "isMemo");
function Xa(g) {
return S(g) === t;
}
o(Xa, "isPortal");
function Za(g) {
return S(g) === i;
}
o(Za, "isProfiler");
function Qa(g) {
return S(g) === a;
}
o(Qa, "isStrictMode");
function eo(g) {
return S(g) === c;
}
o(eo, "isSuspense"), F.AsyncMode = R, F.ConcurrentMode = C, F.ContextConsumer = E, F.ContextProvider = X, F.Element = ne, F.ForwardRef =
q, F.Fragment = le, F.Lazy = Vr, F.Memo = Gr, F.Portal = qr, F.Profiler = Da, F.StrictMode = ja, F.Suspense = Ha, F.isAsyncMode = Wa, F.
isConcurrentMode = $t, F.isContextConsumer = Ua, F.isContextProvider = Va, F.isElement = Ga, F.isForwardRef = qa, F.isFragment = Ya, F.isLazy =
Ja, F.isMemo = Ka, F.isPortal = Xa, F.isProfiler = Za, F.isStrictMode = Qa, F.isSuspense = eo, F.isValidElementType = M, F.typeOf = S;
}();
});
// ../node_modules/react-is/index.js
var ln = N((fc, ot) => {
"use strict";
process.env.NODE_ENV === "production" ? ot.exports = fn() : ot.exports = cn();
});
// ../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
var ut = N((cc, bn) => {
"use strict";
var it = ln(), Co = {
childContextTypes: !0,
contextType: !0,
contextTypes: !0,
defaultProps: !0,
displayName: !0,
getDefaultProps: !0,
getDerivedStateFromError: !0,
getDerivedStateFromProps: !0,
mixins: !0,
propTypes: !0,
type: !0
}, Oo = {
name: !0,
length: !0,
prototype: !0,
caller: !0,
callee: !0,
arguments: !0,
arity: !0
}, Ro = {
$$typeof: !0,
render: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0
}, hn = {
$$typeof: !0,
compare: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0,
type: !0
}, st = {};
st[it.ForwardRef] = Ro;
st[it.Memo] = hn;
function dn(e) {
return it.isMemo(e) ? hn : st[e.$$typeof] || Co;
}
o(dn, "getStatics");
var Ao = Object.defineProperty, _o = Object.getOwnPropertyNames, pn = Object.getOwnPropertySymbols, Fo = Object.getOwnPropertyDescriptor, Io = Object.
getPrototypeOf, mn = Object.prototype;
function gn(e, r, t) {
if (typeof r != "string") {
if (mn) {
var n = Io(r);
n && n !== mn && gn(e, n, t);
}
var a = _o(r);
pn && (a = a.concat(pn(r)));
for (var i = dn(e), s = dn(r), u = 0; u < a.length; ++u) {
var f = a[u];
if (!Oo[f] && !(t && t[f]) && !(s && s[f]) && !(i && i[f])) {
var l = Fo(r, f);
try {
Ao(e, f, l);
} catch {
}
}
}
}
return e;
}
o(gn, "hoistNonReactStatics");
bn.exports = gn;
});
// ../node_modules/@babel/runtime/helpers/extends.js
var Lr = N((kc, ae) => {
function bt() {
return ae.exports = bt = Object.assign ? Object.assign.bind() : function(e) {
for (var r = 1; r < arguments.length; r++) {
var t = arguments[r];
for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
}
return e;
}, ae.exports.__esModule = !0, ae.exports.default = ae.exports, bt.apply(null, arguments);
}
o(bt, "_extends");
ae.exports = bt, ae.exports.__esModule = !0, ae.exports.default = ae.exports;
});
// ../node_modules/@babel/runtime/helpers/assertThisInitialized.js
var kn = N((pl, rr) => {
function Zo(e) {
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e;
}
o(Zo, "_assertThisInitialized");
rr.exports = Zo, rr.exports.__esModule = !0, rr.exports.default = rr.exports;
});
// ../node_modules/@babel/runtime/helpers/setPrototypeOf.js
var Br = N((hl, ie) => {
function yt(e, r) {
return ie.exports = yt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
return t.__proto__ = n, t;
}, ie.exports.__esModule = !0, ie.exports.default = ie.exports, yt(e, r);
}
o(yt, "_setPrototypeOf");
ie.exports = yt, ie.exports.__esModule = !0, ie.exports.default = ie.exports;
});
// ../node_modules/@babel/runtime/helpers/inheritsLoose.js
var zn = N((bl, tr) => {
var Qo = Br();
function ei(e, r) {
e.prototype = Object.create(r.prototype), e.prototype.constructor = e, Qo(e, r);
}
o(ei, "_inheritsLoose");
tr.exports = ei, tr.exports.__esModule = !0, tr.exports.default = tr.exports;
});
// ../node_modules/@babel/runtime/helpers/getPrototypeOf.js
var Nn = N((vl, se) => {
function vt(e) {
return se.exports = vt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
return r.__proto__ || Object.getPrototypeOf(r);
}, se.exports.__esModule = !0, se.exports.default = se.exports, vt(e);
}
o(vt, "_getPrototypeOf");
se.exports = vt, se.exports.__esModule = !0, se.exports.default = se.exports;
});
// ../node_modules/@babel/runtime/helpers/isNativeFunction.js
var Bn = N((Sl, nr) => {
function ri(e) {
try {
return Function.toString.call(e).indexOf("[native code]") !== -1;
} catch {
return typeof e == "function";
}
}
o(ri, "_isNativeFunction");
nr.exports = ri, nr.exports.__esModule = !0, nr.exports.default = nr.exports;
});
// ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
var Dn = N((El, ue) => {
function $n() {
try {
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
}));
} catch {
}
return (ue.exports = $n = /* @__PURE__ */ o(function() {
return !!e;
}, "_isNativeReflectConstruct"), ue.exports.__esModule = !0, ue.exports.default = ue.exports)();
}
o($n, "_isNativeReflectConstruct");
ue.exports = $n, ue.exports.__esModule = !0, ue.exports.default = ue.exports;
});
// ../node_modules/@babel/runtime/helpers/construct.js
var jn = N((Cl, ar) => {
var ti = Dn(), ni = Br();
function ai(e, r, t) {
if (ti()) return Reflect.construct.apply(null, arguments);
var n = [null];
n.push.apply(n, r);
var a = new (e.bind.apply(e, n))();
return t && ni(a, t.prototype), a;
}
o(ai, "_construct");
ar.exports = ai, ar.exports.__esModule = !0, ar.exports.default = ar.exports;
});
// ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js
var Hn = N((Rl, fe) => {
var oi = Nn(), ii = Br(), si = Bn(), ui = jn();
function xt(e) {
var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
return fe.exports = xt = /* @__PURE__ */ o(function(n) {
if (n === null || !si(n)) return n;
if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
if (r !== void 0) {
if (r.has(n)) return r.get(n);
r.set(n, a);
}
function a() {
return ui(n, arguments, oi(this).constructor);
}
return o(a, "Wrapper"), a.prototype = Object.create(n.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}), ii(a, n);
}, "_wrapNativeSuper"), fe.exports.__esModule = !0, fe.exports.default = fe.exports, xt(e);
}
o(xt, "_wrapNativeSuper");
fe.exports = xt, fe.exports.__esModule = !0, fe.exports.default = fe.exports;
});
// ../node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js
var Wn = N((_l, or) => {
function fi(e, r) {
return r || (r = e.slice(0)), e.raw = r, e;
}
o(fi, "_taggedTemplateLiteralLoose");
or.exports = fi, or.exports.__esModule = !0, or.exports.default = or.exports;
});
// ../node_modules/polished/dist/polished.cjs.js
var jr = N((p) => {
"use strict";
Object.defineProperty(p, "__esModule", { value: !0 });
var ci = Lr(), li = kn(), di = zn(), pi = Hn(), mi = Wn();
function fr(e) {
return e && typeof e == "object" && "default" in e ? e : { default: e };
}
o(fr, "_interopDefaultLegacy");
var P = /* @__PURE__ */ fr(ci), hi = /* @__PURE__ */ fr(li), gi = /* @__PURE__ */ fr(di), bi = /* @__PURE__ */ fr(pi), na = /* @__PURE__ */ fr(
mi);
function Un() {
var e;
return e = arguments.length - 1, e < 0 || arguments.length <= e ? void 0 : arguments[e];
}
o(Un, "last");
function yi(e) {
return -e;
}
o(yi, "negation");
function vi(e, r) {
return e + r;
}
o(vi, "addition");
function xi(e, r) {
return e - r;
}
o(xi, "subtraction");
function Si(e, r) {
return e * r;
}
o(Si, "multiplication");
function wi(e, r) {
return e / r;
}
o(wi, "division");
function Ei() {
return Math.max.apply(Math, arguments);
}
o(Ei, "max");
function Ti() {
return Math.min.apply(Math, arguments);
}
o(Ti, "min");
function Ci() {
return Array.of.apply(Array, arguments);
}
o(Ci, "comma");
var Oi = {
symbols: {
"*": {
infix: {
symbol: "*",
f: Si,
notation: "infix",
precedence: 4,
rightToLeft: 0,
argCount: 2
},
symbol: "*",
regSymbol: "\\*"
},
"/": {
infix: {
symbol: "/",
f: wi,
notation: "infix",
precedence: 4,
rightToLeft: 0,
argCount: 2
},
symbol: "/",
regSymbol: "/"
},
"+": {
infix: {
symbol: "+",
f: vi,
notation: "infix",
precedence: 2,
rightToLeft: 0,
argCount: 2
},
prefix: {
symbol: "+",
f: Un,
notation: "prefix",
precedence: 3,
rightToLeft: 0,
argCount: 1
},
symbol: "+",
regSymbol: "\\+"
},
"-": {
infix: {
symbol: "-",
f: xi,
notation: "infix",
precedence: 2,
rightToLeft: 0,
argCount: 2
},
prefix: {
symbol: "-",
f: yi,
notation: "prefix",
precedence: 3,
rightToLeft: 0,
argCount: 1
},
symbol: "-",
regSymbol: "-"
},
",": {
infix: {
symbol: ",",
f: Ci,
notation: "infix",
precedence: 1,
rightToLeft: 0,
argCount: 2
},
symbol: ",",
regSymbol: ","
},
"(": {
prefix: {
symbol: "(",
f: Un,
notation: "prefix",
precedence: 0,
rightToLeft: 0,
argCount: 1
},
symbol: "(",
regSymbol: "\\("
},
")": {
postfix: {
symbol: ")",
f: void 0,
notation: "postfix",
precedence: 0,
rightToLeft: 0,
argCount: 1
},
symbol: ")",
regSymbol: "\\)"
},
min: {
func: {
symbol: "min",
f: Ti,
notation: "func",
precedence: 0,
rightToLeft: 0,
argCount: 1
},
symbol: "min",
regSymbol: "min\\b"
},
max: {
func: {
symbol: "max",
f: Ei,
notation: "func",
precedence: 0,
rightToLeft: 0,
argCount: 1
},
symbol: "max",
regSymbol: "max\\b"
}
}
}, Vn = Oi, Ri = {
1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation:\
0.4, lightness: 0.75 }).
`,
2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, satu\
ration: 0.4, lightness: 0.75, alpha: 0.7 }).
`,
3: `Passed an incorrect argument to a color function, please pass a string representation of a color.
`,
4: `Couldn't generate valid rgb string from %s, it returned %s.
`,
5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
`,
6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, \
blue: 100 }).
`,
7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green\
: 205, blue: 100, alpha: 0.75 }).
`,
8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
`,
9: `Please provide a number of steps to the modularScale helper.
`,
10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
`,
11: `Invalid value passed as base to modularScale, expected number or em string but got "%s"
`,
12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
`,
13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
`,
14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
`,
15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
`,
16: `You must provide a template to this method.
`,
17: `You passed an unsupported selector state to this method.
`,
18: `minScreen and maxScreen must be provided as stringified numbers with the same units.
`,
19: `fromSize and toSize must be provided as stringified numbers with the same units.
`,
20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
`,
21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
23: `fontFace expects a name of a font-family.
`,
24: `fontFace expects either the path to the font file(s) or a name of a local copy.
`,
25: `fontFace expects localFonts to be an array.
`,
26: `fontFace expects fileFormats to be an array.
`,
27: `radialGradient requries at least 2 color-stops to properly render.
`,
28: `Please supply a filename to retinaImage() as the first argument.
`,
29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
`,
30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
`,
32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
`,
33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
`,
34: `borderRadius expects a radius value as a string or number as the second argument.
`,
35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
`,
36: `Property must be a string value.
`,
37: `Syntax Error at %s.
`,
38: `Formula contains a function that needs parentheses at %s.
`,
39: `Formula is missing closing parenthesis at %s.
`,
40: `Formula has too many closing parentheses at %s.
`,
41: `All values in a formula must have the same unit or be unitless.
`,
42: `Please provide a number of steps to the modularScale helper.
`,
43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
`,
44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
`,
45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
`,
46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
`,
47: `minScreen and maxScreen must be provided as stringified numbers with the same units.
`,
48: `fromSize and toSize must be provided as stringified numbers with the same units.
`,
49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
`,
50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
`,
51: `Expects the first argument object to have the properties prop, fromSize, and toSize.
`,
52: `fontFace expects either the path to the font file(s) or a name of a local copy.
`,
53: `fontFace expects localFonts to be an array.
`,
54: `fontFace expects fileFormats to be an array.
`,
55: `fontFace expects a name of a font-family.
`,
56: `linearGradient requries at least 2 color-stops to properly render.
`,
57: `radialGradient requries at least 2 color-stops to properly render.
`,
58: `Please supply a filename to retinaImage() as the first argument.
`,
59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
`,
60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
61: `Property must be a string value.
`,
62: `borderRadius expects a radius value as a string or number as the second argument.
`,
63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
`,
64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
`,
65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animat\
ion please supply them in simple values, e.g. animation('rotate', '2s').
`,
66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
`,
67: `You must provide a template to this method.
`,
68: `You passed an unsupported selector state to this method.
`,
69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
`,
70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
`,
71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
`,
72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
`,
73: `Please provide a valid CSS variable.
`,
74: `CSS variable not found and no default was provided.
`,
75: `important requires a valid style object, got a %s instead.
`,
76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
`,
77: `remToPx expects a value in "rem" but you provided it in "%s".
`,
78: `base must be set in "px" or "%" but you set it in "%s".
`
};
function Ai() {
for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
r[t] = arguments[t];
var n = r[0], a = [], i;
for (i = 1; i < r.length; i += 1)
a.push(r[i]);
return a.forEach(function(s) {
n = n.replace(/%[a-z]/, s);
}), n;
}
o(Ai, "format");
var b = /* @__PURE__ */ function(e) {
gi.default(r, e);
function r(t) {
var n;
if (process.env.NODE_ENV === "production")
n = e.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + t +
" for more information.") || this;
else {
for (var a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), s = 1; s < a; s++)
i[s - 1] = arguments[s];
n = e.call(this, Ai.apply(void 0, [Ri[t]].concat(i))) || this;
}
return hi.default(n);
}
return o(r, "PolishedError"), r;
}(/* @__PURE__ */ bi.default(Error)), Gn = /((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g;
function _i(e) {
var r = {};
return r.symbols = e ? P.default({}, Vn.symbols, e.symbols) : P.default({}, Vn.symbols), r;
}
o(_i, "mergeSymbolMaps");
function qn(e, r) {
var t, n = e.pop();
return r.push(n.f.apply(n, (t = []).concat.apply(t, r.splice(-n.argCount)))), n.precedence;
}
o(qn, "exec");
function Fi(e, r) {
var t = _i(r), n, a = [t.symbols["("].prefix], i = [], s = new RegExp(
// Pattern for numbers
"\\d+(?:\\.\\d+)?|" + // ...and patterns for individual operators/function names
Object.keys(t.symbols).map(function(x) {
return t.symbols[x];
}).sort(function(x, w) {
return w.symbol.length - x.symbol.length;
}).map(function(x) {
return x.regSymbol;
}).join("|") + "|(\\S)",
"g"
);
s.lastIndex = 0;
var u = !1;
do {
n = s.exec(e);
var f = n || [")", void 0], l = f[0], d = f[1], c = t.symbols[l], m = c && !c.prefix && !c.func, T = !c || !c.postfix && !c.infix;
if (d || (u ? T : m))
throw new b(37, n ? n.index : e.length, e);
if (u) {
var y = c.postfix || c.infix;
do {
var v = a[a.length - 1];
if ((y.precedence - v.precedence || v.rightToLeft) > 0) break;
} while (qn(a, i));
u = y.notation === "postfix", y.symbol !== ")" && (a.push(y), u && qn(a, i));
} else if (c) {
if (a.push(c.prefix || c.func), c.func && (n = s.exec(e), !n || n[0] !== "("))
throw new b(38, n ? n.index : e.length, e);
} else
i.push(+l), u = !0;
} while (n && a.length);
if (a.length)
throw new b(39, n ? n.index : e.length, e);
if (n)
throw new b(40, n ? n.index : e.length, e);
return i.pop();
}
o(Fi, "calculate");
function St(e) {
return e.split("").reverse().join("");
}
o(St, "reverseString");
function Ii(e, r) {
var t = St(e), n = t.match(Gn);
if (n && !n.every(function(i) {
return i === n[0];
}))
throw new b(41);
var a = St(t.replace(Gn, ""));
return "" + Fi(a, r) + (n ? St(n[0]) : "");
}
o(Ii, "math");
var Pi = /--[\S]*/g;
function Mi(e, r) {
if (!e || !e.match(Pi))
throw new b(73);
var t;
if (typeof document < "u" && document.documentElement !== null && (t = getComputedStyle(document.documentElement).getPropertyValue(e)), t)
return t.trim();
if (r)
return r;
throw new b(74);
}
o(Mi, "cssVar");
function ir(e) {
return e.charAt(0).toUpperCase() + e.slice(1);
}
o(ir, "capitalizeString");
var Li = ["Top", "Right", "Bottom", "Left"];
function ki(e, r) {
if (!e) return r.toLowerCase();
var t = e.split("-");
if (t.length > 1)
return t.splice(1, 0, r), t.reduce(function(a, i) {
return "" + a + ir(i);
});
var n = e.replace(/([a-z])([A-Z])/g, "$1" + r + "$2");
return e === n ? "" + e + r : n;
}
o(ki, "generateProperty");
function zi(e, r) {
for (var t = {}, n = 0; n < r.length; n += 1)
(r[n] || r[n] === 0) && (t[ki(e, Li[n])] = r[n]);
return t;
}
o(zi, "generateStyles");
function ge(e) {
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
t[n - 1] = arguments[n];
var a = t[0], i = t[1], s = i === void 0 ? a : i, u = t[2], f = u === void 0 ? a : u, l = t[3], d = l === void 0 ? s : l, c = [a, s, f, d];
return zi(e, c);
}
o(ge, "directionalProperty");
function Yn(e, r) {
return e.substr(-r.length) === r;
}
o(Yn, "endsWith");
var Ni = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;
function Ct(e) {
if (typeof e != "string") return e;
var r = e.match(Ni);
return r ? parseFloat(e) : e;
}
o(Ct, "stripUnit");
var Bi = /* @__PURE__ */ o(function(r) {
return function(t, n) {
n === void 0 && (n = "16px");
var a = t, i = n;
if (typeof t == "string") {
if (!Yn(t, "px"))
throw new b(69, r, t);
a = Ct(t);
}
if (typeof n == "string") {
if (!Yn(n, "px"))
throw new b(70, r, n);
i = Ct(n);
}
if (typeof a == "string")
throw new b(71, t, r);
if (typeof i == "string")
throw new b(72, n, r);
return "" + a / i + r;
};
}, "pxtoFactory"), aa = Bi, $i = aa("em"), Di = $i, ji = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;
function te(e) {
if (typeof e != "string") return [e, ""];
var r = e.match(ji);
return r ? [parseFloat(e), r[2]] : [e, void 0];
}
o(te, "getValueAndUnit");
function oa(e, r) {
if (typeof e != "object" || e === null)
throw new b(75, typeof e);
var t = {};
return Object.keys(e).forEach(function(n) {
typeof e[n] == "object" && e[n] !== null ? t[n] = oa(e[n], r) : !r || r && (r === n || r.indexOf(n) >= 0) ? t[n] = e[n] + " !important" :
t[n] = e[n];
}), t;
}
o(oa, "important");
var ia = {
minorSecond: 1.067,
majorSecond: 1.125,
minorThird: 1.2,
majorThird: 1.25,
perfectFourth: 1.333,
augFourth: 1.414,
perfectFifth: 1.5,
minorSixth: 1.6,
goldenSection: 1.618,
majorSixth: 1.667,
minorSeventh: 1.778,
majorSeventh: 1.875,
octave: 2,
majorTenth: 2.5,
majorEleventh: 2.667,
majorTwelfth: 3,
doubleOctave: 4
};
function Hi(e) {
return ia[e];
}
o(Hi, "getRatio");
function Wi(e, r, t) {
if (r === void 0 && (r = "1em"), t === void 0 && (t = 1.333), typeof e != "number")
throw new b(42);
if (typeof t == "string" && !ia[t])
throw new b(43);
var n = typeof r == "string" ? te(r) : [r, ""], a = n[0], i = n[1], s = typeof t == "string" ? Hi(t) : t;
if (typeof a == "string")
throw new b(44, r);
return "" + a * Math.pow(s, e) + (i || "");
}
o(Wi, "modularScale");
var Ui = aa("rem"), Vi = Ui, Ot = 16;
function sa(e) {
var r = te(e);
if (r[1] === "px")
return parseFloat(e);
if (r[1] === "%")
return parseFloat(e) / 100 * Ot;
throw new b(78, r[1]);
}
o(sa, "convertBase");
function Gi() {
if (typeof document < "u" && document.documentElement !== null) {
var e = getComputedStyle(document.documentElement).fontSize;
return e ? sa(e) : Ot;
}
return Ot;
}
o(Gi, "getBaseFromDoc");
function qi(e, r) {
var t = te(e);
if (t[1] !== "rem" && t[1] !== "")
throw new b(77, t[1]);
var n = r ? sa(r) : Gi();
return t[0] * n + "px";
}
o(qi, "remToPx");
var Yi = {
back: "cubic-bezier(0.600, -0.280, 0.735, 0.045)",
circ: "cubic-bezier(0.600, 0.040, 0.980, 0.335)",
cubic: "cubic-bezier(0.550, 0.055, 0.675, 0.190)",
expo: "cubic-bezier(0.950, 0.050, 0.795, 0.035)",
quad: "cubic-bezier(0.550, 0.085, 0.680, 0.530)",
quart: "cubic-bezier(0.895, 0.030, 0.685, 0.220)",
quint: "cubic-bezier(0.755, 0.050, 0.855, 0.060)",
sine: "cubic-bezier(0.470, 0.000, 0.745, 0.715)"
};
function Ji(e) {
return Yi[e.toLowerCase().trim()];
}
o(Ji, "easeIn");
var Ki = {
back: "cubic-bezier(0.680, -0.550, 0.265, 1.550)",
circ: "cubic-bezier(0.785, 0.135, 0.150, 0.860)",
cubic: "cubic-bezier(0.645, 0.045, 0.355, 1.000)",
expo: "cubic-bezier(1.000, 0.000, 0.000, 1.000)",
quad: "cubic-bezier(0.455, 0.030, 0.515, 0.955)",
quart: "cubic-bezier(0.770, 0.000, 0.175, 1.000)",
quint: "cubic-bezier(0.860, 0.000, 0.070, 1.000)",
sine: "cubic-bezier(0.445, 0.050, 0.550, 0.950)"
};
function Xi(e) {
return Ki[e.toLowerCase().trim()];
}
o(Xi, "easeInOut");
var Zi = {
back: "cubic-bezier(0.175, 0.885, 0.320, 1.275)",
cubic: "cubic-bezier(0.215, 0.610, 0.355, 1.000)",
circ: "cubic-bezier(0.075, 0.820, 0.165, 1.000)",
expo: "cubic-bezier(0.190, 1.000, 0.220, 1.000)",
quad: "cubic-bezier(0.250, 0.460, 0.450, 0.940)",
quart: "cubic-bezier(0.165, 0.840, 0.440, 1.000)",
quint: "cubic-bezier(0.230, 1.000, 0.320, 1.000)",
sine: "cubic-bezier(0.390, 0.575, 0.565, 1.000)"
};
function Qi(e) {
return Zi[e.toLowerCase().trim()];
}
o(Qi, "easeOut");
function Rt(e, r, t, n) {
t === void 0 && (t = "320px"), n === void 0 && (n = "1200px");
var a = te(e), i = a[0], s = a[1], u = te(r), f = u[0], l = u[1], d = te(t), c = d[0], m = d[1], T = te(n), y = T[0], v = T[1];
if (typeof c != "number" || typeof y != "number" || !m || !v || m !== v)
throw new b(47);
if (typeof i != "number" || typeof f != "number" || s !== l)
throw new b(48);
if (s !== m || l !== v)
throw new b(76);
var x = (i - f) / (c - y), w = f - x * y;
return "calc(" + w.toFixed(2) + (s || "") + " + " + (100 * x).toFixed(2) + "vw)";
}
o(Rt, "between");
function es(e) {
var r;
e === void 0 && (e = "&");
var t = e + "::after";
return r = {}, r[t] = {
clear: "both",
content: '""',
display: "table"
}, r;
}
o(es, "clearFix");
function rs(e) {
return e === void 0 && (e = 0), {
position: "absolute",
top: e,
right: e,
bottom: e,
left: e
};
}
o(rs, "cover");
function ts(e, r) {
r === void 0 && (r = 1);
var t = {
display: "inline-block",
maxWidth: e || "100%",
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
wordWrap: "normal"
};
return r > 1 ? P.default({}, t, {
WebkitBoxOrient: "vertical",
WebkitLineClamp: r,
display: "-webkit-box",
whiteSpace: "normal"
}) : t;
}
o(ts, "ellipsis");
function ns(e, r) {
var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (t) return (t = t.call(e)).next.bind(t);
if (Array.isArray(e) || (t = as(e)) || r && e && typeof e.length == "number") {
t && (e = t);
var n = 0;
return function() {
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
};
}
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
o(ns, "_createForOfIteratorHelperLoose");
function as(e, r) {
if (e) {
if (typeof e == "string") return Jn(e, r);
var t = Object.prototype.toString.call(e).slice(8, -1);
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Jn(e, r);
}
}
o(as, "_unsupportedIterableToArray");
function Jn(e, r) {
(r == null || r > e.length) && (r = e.length);
for (var t = 0, n = new Array(r); t < r; t++) n[t] = e[t];
return n;
}
o(Jn, "_arrayLikeToArray");
function os(e, r, t) {
if (r === void 0 && (r = "320px"), t === void 0 && (t = "1200px"), !Array.isArray(e) && typeof e != "object" || e === null)
throw new b(49);
if (Array.isArray(e)) {
for (var n = {}, a = {}, i = ns(e), s; !(s = i()).done; ) {
var u, f, l = s.value;
if (!l.prop || !l.fromSize || !l.toSize)
throw new b(50);
a[l.prop] = l.fromSize, n["@media (min-width: " + r + ")"] = P.default({}, n["@media (min-width: " + r + ")"], (u = {}, u[l.prop] = Rt(
l.fromSize, l.toSize, r, t), u)), n["@media (min-width: " + t + ")"] = P.default({}, n["@media (min-width: " + t + ")"], (f = {}, f[l.
prop] = l.toSize, f));
}
return P.default({}, a, n);
} else {
var d, c, m;
if (!e.prop || !e.fromSize || !e.toSize)
throw new b(51);
return m = {}, m[e.prop] = e.fromSize, m["@media (min-width: " + r + ")"] = (d = {}, d[e.prop] = Rt(e.fromSize, e.toSize, r, t), d), m["\
@media (min-width: " + t + ")"] = (c = {}, c[e.prop] = e.toSize, c), m;
}
}
o(os, "fluidRange");
var is = /^\s*data:([a-z]+\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i, ss = {
woff: "woff",
woff2: "woff2",
ttf: "truetype",
otf: "opentype",
eot: "embedded-opentype",
svg: "svg",
svgz: "svg"
};
function Kn(e, r) {
return r ? ' format("' + ss[e] + '")' : "";
}
o(Kn, "generateFormatHint");
function us(e) {
return !!e.replace(/\s+/g, " ").match(is);
}
o(us, "isDataURI");
function fs(e, r, t) {
if (us(e))
return 'url("' + e + '")' + Kn(r[0], t);
var n = r.map(function(a) {
return 'url("' + e + "." + a + '")' + Kn(a, t);
});
return n.join(", ");
}
o(fs, "generateFileReferences");
function cs(e) {
var r = e.map(function(t) {
return 'local("' + t + '")';
});
return r.join(", ");
}
o(cs, "generateLocalReferences");
function ls(e, r, t, n) {
var a = [];
return r && a.push(cs(r)), e && a.push(fs(e, t, n)), a.join(", ");
}
o(ls, "generateSources");
function ds(e) {
var r = e.fontFamily, t = e.fontFilePath, n = e.fontStretch, a = e.fontStyle, i = e.fontVariant, s = e.fontWeight, u = e.fileFormats, f = u ===
void 0 ? ["eot", "woff2", "woff", "ttf", "svg"] : u, l = e.formatHint, d = l === void 0 ? !1 : l, c = e.localFonts, m = c === void 0 ? [
r] : c, T = e.unicodeRange, y = e.fontDisplay, v = e.fontVariationSettings, x = e.fontFeatureSettings;
if (!r) throw new b(55);
if (!t && !m)
throw new b(52);
if (m && !Array.isArray(m))
throw new b(53);
if (!Array.isArray(f))
throw new b(54);
var w = {
"@font-face": {
fontFamily: r,
src: ls(t, m, f, d),
unicodeRange: T,
fontStretch: n,
fontStyle: a,
fontVariant: i,
fontWeight: s,
fontDisplay: y,
fontVariationSettings: v,
fontFeatureSettings: x
}
};
return JSON.parse(JSON.stringify(w));
}
o(ds, "fontFace");
function ps() {
return {
textIndent: "101%",
overflow: "hidden",
whiteSpace: "nowrap"
};
}
o(ps, "hideText");
function ms() {
return {
border: "0",
clip: "rect(0 0 0 0)",
height: "1px",
margin: "-1px",
overflow: "hidden",
padding: "0",
position: "absolute",
whiteSpace: "nowrap",
width: "1px"
};
}
o(ms, "hideVisually");
function ua(e) {
return e === void 0 && (e = 1.3), `
@media only screen and (-webkit-min-device-pixel-ratio: ` + e + `),
only screen and (min--moz-device-pixel-ratio: ` + e + `),
only screen and (-o-min-device-pixel-ratio: ` + e + `/1),
only screen and (min-resolution: ` + Math.round(e * 96) + `dpi),
only screen and (min-resolution: ` + e + `dppx)
`;
}
o(ua, "hiDPI");
function fa(e) {
for (var r = "", t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
n[a - 1] = arguments[a];
for (var i = 0; i < e.length; i += 1)
if (r += e[i], i === n.length - 1 && n[i]) {
var s = n.filter(function(u) {
return !!u;
});
s.length > 1 ? (r = r.slice(0, -1), r += ", " + n[i]) : s.length === 1 && (r += "" + n[i]);
} else n[i] && (r += n[i] + " ");
return r.trim();
}
o(fa, "constructGradientValue");
var Xn;
function hs(e) {
var r = e.colorStops, t = e.fallback, n = e.toDirection, a = n === void 0 ? "" : n;
if (!r || r.length < 2)
throw new b(56);
return {
backgroundColor: t || r[0].replace(/,\s+/g, ",").split(" ")[0].replace(/,(?=\S)/g, ", "),
backgroundImage: fa(Xn || (Xn = na.default(["linear-gradient(", "", ")"])), a, r.join(", ").replace(/,(?=\S)/g, ", "))
};
}
o(hs, "linearGradient");
function gs() {
var e;
return [(e = {
html: {
lineHeight: "1.15",
textSizeAdjust: "100%"
},
body: {
margin: "0"
},
main: {
display: "block"
},
h1: {
fontSize: "2em",
margin: "0.67em 0"
},
hr: {
boxSizing: "content-box",
height: "0",
overflow: "visible"
},
pre: {
fontFamily: "monospace, monospace",
fontSize: "1em"
},
a: {
backgroundColor: "transparent"
},
"abbr[title]": {
borderBottom: "none",
textDecoration: "underline"
}
}, e[`b,
strong`] = {
fontWeight: "bolder"
}, e[`code,
kbd,
samp`] = {
fontFamily: "monospace, monospace",
fontSize: "1em"
}, e.small = {
fontSize: "80%"
}, e[`sub,
sup`] = {
fontSize: "75%",
lineHeight: "0",
position: "relative",
verticalAlign: "baseline"
}, e.sub = {
bottom: "-0.25em"
}, e.sup = {
top: "-0.5em"
}, e.img = {
borderStyle: "none"
}, e[`button,
input,
optgroup,
select,
textarea`] = {
fontFamily: "inherit",
fontSize: "100%",
lineHeight: "1.15",
margin: "0"
}, e[`button,
input`] = {
overflow: "visible"
}, e[`button,
select`] = {
textTransform: "none"
}, e[`button,
html [type="button"],
[type="reset"],
[type="submit"]`] = {
WebkitAppearance: "button"
}, e[`button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner`] = {
borderStyle: "none",
padding: "0"
}, e[`button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring`] = {
outline: "1px dotted ButtonText"
}, e.fieldset = {
padding: "0.35em 0.625em 0.75em"
}, e.legend = {
boxSizing: "border-box",
color: "inherit",
display: "table",
maxWidth: "100%",
padding: "0",
whiteSpace: "normal"
}, e.progress = {
verticalAlign: "baseline"
}, e.textarea = {
overflow: "auto"
}, e[`[type="checkbox"],
[type="radio"]`] = {
boxSizing: "border-box",
padding: "0"
}, e[`[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button`] = {
height: "auto"
}, e['[type="search"]'] = {
WebkitAppearance: "textfield",
outlineOffset: "-2px"
}, e['[type="search"]::-webkit-search-decoration'] = {
WebkitAppearance: "none"
}, e["::-webkit-file-upload-button"] = {
WebkitAppearance: "button",
font: "inherit"
}, e.details = {
display: "block"
}, e.summary = {
display: "list-item"
}, e.template = {
display: "none"
}, e["[hidden]"] = {
display: "none"
}, e), {
"abbr[title]": {
textDecoration: "underline dotted"
}
}];
}
o(gs, "normalize");
var Zn;
function bs(e) {
var r = e.colorStops, t = e.extent, n = t === void 0 ? "" : t, a = e.fallback, i = e.position, s = i === void 0 ? "" : i, u = e.shape, f = u ===
void 0 ? "" : u;
if (!r || r.length < 2)
throw new b(57);
return {
backgroundColor: a || r[0].split(" ")[0],
backgroundImage: fa(Zn || (Zn = na.default(["radial-gradient(", "", "", "", ")"])), s, f, n, r.join(", "))
};
}
o(bs, "radialGradient");
function ys(e, r, t, n, a) {
var i;
if (t === void 0 && (t = "png"), a === void 0 && (a = "_2x"), !e)
throw new b(58);
var s = t.replace(/^\./, ""), u = n ? n + "." + s : "" + e + a + "." + s;
return i = {
backgroundImage: "url(" + e + "." + s + ")"
}, i[ua()] = P.default({
backgroundImage: "url(" + u + ")"
}, r ? {
backgroundSize: r
} : {}), i;
}
o(ys, "retinaImage");
var vs = {
easeInBack: "cubic-bezier(0.600, -0.280, 0.735, 0.045)",
easeInCirc: "cubic-bezier(0.600, 0.040, 0.980, 0.335)",
easeInCubic: "cubic-bezier(0.550, 0.055, 0.675, 0.190)",
easeInExpo: "cubic-bezier(0.950, 0.050, 0.795, 0.035)",
easeInQuad: "cubic-bezier(0.550, 0.085, 0.680, 0.530)",
easeInQuart: "cubic-bezier(0.895, 0.030, 0.685, 0.220)",
easeInQuint: "cubic-bezier(0.755, 0.050, 0.855, 0.060)",
easeInSine: "cubic-bezier(0.470, 0.000, 0.745, 0.715)",
easeOutBack: "cubic-bezier(0.175, 0.885, 0.320, 1.275)",
easeOutCubic: "cubic-bezier(0.215, 0.610, 0.355, 1.000)",
easeOutCirc: "cubic-bezier(0.075, 0.820, 0.165, 1.000)",
easeOutExpo: "cubic-bezier(0.190, 1.000, 0.220, 1.000)",
easeOutQuad: "cubic-bezier(0.250, 0.460, 0.450, 0.940)",
easeOutQuart: "cubic-bezier(0.165, 0.840, 0.440, 1.000)",
easeOutQuint: "cubic-bezier(0.230, 1.000, 0.320, 1.000)",
easeOutSine: "cubic-bezier(0.390, 0.575, 0.565, 1.000)",
easeInOutBack: "cubic-bezier(0.680, -0.550, 0.265, 1.550)",
easeInOutCirc: "cubic-bezier(0.785, 0.135, 0.150, 0.860)",
easeInOutCubic: "cubic-bezier(0.645, 0.045, 0.355, 1.000)",
easeInOutExpo: "cubic-bezier(1.000, 0.000, 0.000, 1.000)",
easeInOutQuad: "cubic-bezier(0.455, 0.030, 0.515, 0.955)",
easeInOutQuart: "cubic-bezier(0.770, 0.000, 0.175, 1.000)",
easeInOutQuint: "cubic-bezier(0.860, 0.000, 0.070, 1.000)",
easeInOutSine: "cubic-bezier(0.445, 0.050, 0.550, 0.950)"
};
function xs(e) {
return vs[e];
}
o(xs, "getTimingFunction");
function Ss(e) {
return xs(e);
}
o(Ss, "timingFunctions");
var ws = /* @__PURE__ */ o(function(r, t, n) {
var a = "" + n[0] + (n[1] || ""), i = "" + n[0] / 2 + (n[1] || ""), s = "" + t[0] + (t[1] || ""), u = "" + t[0] / 2 + (t[1] || "");
switch (r) {
case "top":
return "0 " + i + " " + s + " " + i;
case "topLeft":
return a + " " + s + " 0 0";
case "left":
return u + " " + a + " " + u + " 0";
case "bottomLeft":
return a + " 0 0 " + s;
case "bottom":
return s + " " + i + " 0 " + i;
case "bottomRight":
return "0 0 " + a + " " + s;
case "right":
return u + " 0 " + u + " " + a;
case "topRight":
default:
return "0 " + a + " " + s + " 0";
}
}, "getBorderWidth"), Es = /* @__PURE__ */ o(function(r, t) {
switch (r) {
case "top":
case "bottomRight":
return {
borderBottomColor: t
};
case "right":
case "bottomLeft":
return {