@vercel/og 0.5.11 → 0.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.edge.js +623 -534
- package/dist/index.edge.js.map +1 -1
- package/dist/index.node.js +623 -534
- package/dist/index.node.js.map +1 -1
- package/dist/language/index.d.ts +28 -0
- package/package.json +2 -2
package/dist/index.edge.js
CHANGED
|
@@ -3614,7 +3614,7 @@ var $557adaaeb0c7885f$var$LineBreaker = class {
|
|
|
3614
3614
|
};
|
|
3615
3615
|
$557adaaeb0c7885f$exports = $557adaaeb0c7885f$var$LineBreaker;
|
|
3616
3616
|
|
|
3617
|
-
// node_modules/.pnpm/satori@0.10.
|
|
3617
|
+
// node_modules/.pnpm/satori@0.10.4/node_modules/satori/dist/index.wasm.js
|
|
3618
3618
|
var import_css_to_react_native = __toESM(require_css_to_react_native(), 1);
|
|
3619
3619
|
var import_css_background_parser = __toESM(require_css_background_parser(), 1);
|
|
3620
3620
|
var import_css_box_shadow = __toESM(require_css_box_shadow(), 1);
|
|
@@ -3751,7 +3751,7 @@ var parseCSSColor = (str) => {
|
|
|
3751
3751
|
};
|
|
3752
3752
|
var index_esm_default = parseCSSColor;
|
|
3753
3753
|
|
|
3754
|
-
// node_modules/.pnpm/satori@0.10.
|
|
3754
|
+
// node_modules/.pnpm/satori@0.10.4/node_modules/satori/dist/index.wasm.js
|
|
3755
3755
|
var import_postcss_value_parser = __toESM(require_lib(), 1);
|
|
3756
3756
|
var import_css_to_react_native2 = __toESM(require_css_to_react_native(), 1);
|
|
3757
3757
|
var import_escape_html = __toESM(require_escape_html(), 1);
|
|
@@ -7667,22 +7667,22 @@ function SHZ(a, state) {
|
|
|
7667
7667
|
if (exports.DEBUG) {
|
|
7668
7668
|
console.log(state.step, "SHZ[" + a + "]", e);
|
|
7669
7669
|
}
|
|
7670
|
-
var
|
|
7670
|
+
var z2;
|
|
7671
7671
|
switch (e) {
|
|
7672
7672
|
case 0:
|
|
7673
|
-
|
|
7673
|
+
z2 = state.tZone;
|
|
7674
7674
|
break;
|
|
7675
7675
|
case 1:
|
|
7676
|
-
|
|
7676
|
+
z2 = state.gZone;
|
|
7677
7677
|
break;
|
|
7678
7678
|
default:
|
|
7679
7679
|
throw new Error("Invalid zone");
|
|
7680
7680
|
}
|
|
7681
7681
|
var p;
|
|
7682
7682
|
var d = pv.distance(rp, rp, false, true);
|
|
7683
|
-
var pLen =
|
|
7683
|
+
var pLen = z2.length - 2;
|
|
7684
7684
|
for (var i = 0; i < pLen; i++) {
|
|
7685
|
-
p =
|
|
7685
|
+
p = z2[i];
|
|
7686
7686
|
fv.setRelative(p, p, d, pv);
|
|
7687
7687
|
}
|
|
7688
7688
|
}
|
|
@@ -11889,7 +11889,7 @@ var opentype = /* @__PURE__ */ Object.freeze({
|
|
|
11889
11889
|
});
|
|
11890
11890
|
var opentype_module_default = opentype;
|
|
11891
11891
|
|
|
11892
|
-
// node_modules/.pnpm/satori@0.10.
|
|
11892
|
+
// node_modules/.pnpm/satori@0.10.4/node_modules/satori/dist/index.wasm.js
|
|
11893
11893
|
var _l = Object.create;
|
|
11894
11894
|
var Br = Object.defineProperty;
|
|
11895
11895
|
var Sl = Object.getOwnPropertyDescriptor;
|
|
@@ -11967,19 +11967,19 @@ var zu = T((Zn) => {
|
|
|
11967
11967
|
function Yf(e) {
|
|
11968
11968
|
return e && e.__esModule ? e : { default: e };
|
|
11969
11969
|
}
|
|
11970
|
-
function
|
|
11970
|
+
function Gt({ version: e, from: t, to: n }) {
|
|
11971
11971
|
Vf.default.warn(`${t}-color-renamed`, [`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`, "Update your configuration file to silence this warning."]);
|
|
11972
11972
|
}
|
|
11973
11973
|
var Xf = { inherit: "inherit", current: "currentColor", transparent: "transparent", black: "#000", white: "#fff", slate: { 50: "#f8fafc", 100: "#f1f5f9", 200: "#e2e8f0", 300: "#cbd5e1", 400: "#94a3b8", 500: "#64748b", 600: "#475569", 700: "#334155", 800: "#1e293b", 900: "#0f172a" }, gray: { 50: "#f9fafb", 100: "#f3f4f6", 200: "#e5e7eb", 300: "#d1d5db", 400: "#9ca3af", 500: "#6b7280", 600: "#4b5563", 700: "#374151", 800: "#1f2937", 900: "#111827" }, zinc: { 50: "#fafafa", 100: "#f4f4f5", 200: "#e4e4e7", 300: "#d4d4d8", 400: "#a1a1aa", 500: "#71717a", 600: "#52525b", 700: "#3f3f46", 800: "#27272a", 900: "#18181b" }, neutral: { 50: "#fafafa", 100: "#f5f5f5", 200: "#e5e5e5", 300: "#d4d4d4", 400: "#a3a3a3", 500: "#737373", 600: "#525252", 700: "#404040", 800: "#262626", 900: "#171717" }, stone: { 50: "#fafaf9", 100: "#f5f5f4", 200: "#e7e5e4", 300: "#d6d3d1", 400: "#a8a29e", 500: "#78716c", 600: "#57534e", 700: "#44403c", 800: "#292524", 900: "#1c1917" }, red: { 50: "#fef2f2", 100: "#fee2e2", 200: "#fecaca", 300: "#fca5a5", 400: "#f87171", 500: "#ef4444", 600: "#dc2626", 700: "#b91c1c", 800: "#991b1b", 900: "#7f1d1d" }, orange: { 50: "#fff7ed", 100: "#ffedd5", 200: "#fed7aa", 300: "#fdba74", 400: "#fb923c", 500: "#f97316", 600: "#ea580c", 700: "#c2410c", 800: "#9a3412", 900: "#7c2d12" }, amber: { 50: "#fffbeb", 100: "#fef3c7", 200: "#fde68a", 300: "#fcd34d", 400: "#fbbf24", 500: "#f59e0b", 600: "#d97706", 700: "#b45309", 800: "#92400e", 900: "#78350f" }, yellow: { 50: "#fefce8", 100: "#fef9c3", 200: "#fef08a", 300: "#fde047", 400: "#facc15", 500: "#eab308", 600: "#ca8a04", 700: "#a16207", 800: "#854d0e", 900: "#713f12" }, lime: { 50: "#f7fee7", 100: "#ecfccb", 200: "#d9f99d", 300: "#bef264", 400: "#a3e635", 500: "#84cc16", 600: "#65a30d", 700: "#4d7c0f", 800: "#3f6212", 900: "#365314" }, green: { 50: "#f0fdf4", 100: "#dcfce7", 200: "#bbf7d0", 300: "#86efac", 400: "#4ade80", 500: "#22c55e", 600: "#16a34a", 700: "#15803d", 800: "#166534", 900: "#14532d" }, emerald: { 50: "#ecfdf5", 100: "#d1fae5", 200: "#a7f3d0", 300: "#6ee7b7", 400: "#34d399", 500: "#10b981", 600: "#059669", 700: "#047857", 800: "#065f46", 900: "#064e3b" }, teal: { 50: "#f0fdfa", 100: "#ccfbf1", 200: "#99f6e4", 300: "#5eead4", 400: "#2dd4bf", 500: "#14b8a6", 600: "#0d9488", 700: "#0f766e", 800: "#115e59", 900: "#134e4a" }, cyan: { 50: "#ecfeff", 100: "#cffafe", 200: "#a5f3fc", 300: "#67e8f9", 400: "#22d3ee", 500: "#06b6d4", 600: "#0891b2", 700: "#0e7490", 800: "#155e75", 900: "#164e63" }, sky: { 50: "#f0f9ff", 100: "#e0f2fe", 200: "#bae6fd", 300: "#7dd3fc", 400: "#38bdf8", 500: "#0ea5e9", 600: "#0284c7", 700: "#0369a1", 800: "#075985", 900: "#0c4a6e" }, blue: { 50: "#eff6ff", 100: "#dbeafe", 200: "#bfdbfe", 300: "#93c5fd", 400: "#60a5fa", 500: "#3b82f6", 600: "#2563eb", 700: "#1d4ed8", 800: "#1e40af", 900: "#1e3a8a" }, indigo: { 50: "#eef2ff", 100: "#e0e7ff", 200: "#c7d2fe", 300: "#a5b4fc", 400: "#818cf8", 500: "#6366f1", 600: "#4f46e5", 700: "#4338ca", 800: "#3730a3", 900: "#312e81" }, violet: { 50: "#f5f3ff", 100: "#ede9fe", 200: "#ddd6fe", 300: "#c4b5fd", 400: "#a78bfa", 500: "#8b5cf6", 600: "#7c3aed", 700: "#6d28d9", 800: "#5b21b6", 900: "#4c1d95" }, purple: { 50: "#faf5ff", 100: "#f3e8ff", 200: "#e9d5ff", 300: "#d8b4fe", 400: "#c084fc", 500: "#a855f7", 600: "#9333ea", 700: "#7e22ce", 800: "#6b21a8", 900: "#581c87" }, fuchsia: { 50: "#fdf4ff", 100: "#fae8ff", 200: "#f5d0fe", 300: "#f0abfc", 400: "#e879f9", 500: "#d946ef", 600: "#c026d3", 700: "#a21caf", 800: "#86198f", 900: "#701a75" }, pink: { 50: "#fdf2f8", 100: "#fce7f3", 200: "#fbcfe8", 300: "#f9a8d4", 400: "#f472b6", 500: "#ec4899", 600: "#db2777", 700: "#be185d", 800: "#9d174d", 900: "#831843" }, rose: { 50: "#fff1f2", 100: "#ffe4e6", 200: "#fecdd3", 300: "#fda4af", 400: "#fb7185", 500: "#f43f5e", 600: "#e11d48", 700: "#be123c", 800: "#9f1239", 900: "#881337" }, get lightBlue() {
|
|
11974
|
-
return
|
|
11974
|
+
return Gt({ version: "v2.2", from: "lightBlue", to: "sky" }), this.sky;
|
|
11975
11975
|
}, get warmGray() {
|
|
11976
|
-
return
|
|
11976
|
+
return Gt({ version: "v3.0", from: "warmGray", to: "stone" }), this.stone;
|
|
11977
11977
|
}, get trueGray() {
|
|
11978
|
-
return
|
|
11978
|
+
return Gt({ version: "v3.0", from: "trueGray", to: "neutral" }), this.neutral;
|
|
11979
11979
|
}, get coolGray() {
|
|
11980
|
-
return
|
|
11980
|
+
return Gt({ version: "v3.0", from: "coolGray", to: "gray" }), this.gray;
|
|
11981
11981
|
}, get blueGray() {
|
|
11982
|
-
return
|
|
11982
|
+
return Gt({ version: "v3.0", from: "blueGray", to: "slate" }), this.slate;
|
|
11983
11983
|
} };
|
|
11984
11984
|
});
|
|
11985
11985
|
var Gu = T((ei) => {
|
|
@@ -12017,7 +12017,7 @@ var Vu = T((ri) => {
|
|
|
12017
12017
|
"use strict";
|
|
12018
12018
|
Object.defineProperty(ri, "__esModule", { value: true });
|
|
12019
12019
|
Object.defineProperty(ri, "normalizeConfig", { enumerable: true, get: () => Zf });
|
|
12020
|
-
var
|
|
12020
|
+
var jt = Jf((Qr(), Ir(Xr)));
|
|
12021
12021
|
function Hu(e) {
|
|
12022
12022
|
if (typeof WeakMap != "function")
|
|
12023
12023
|
return null;
|
|
@@ -12070,12 +12070,12 @@ var Vu = T((ri) => {
|
|
|
12070
12070
|
return true;
|
|
12071
12071
|
}
|
|
12072
12072
|
return false;
|
|
12073
|
-
})() ||
|
|
12073
|
+
})() || jt.default.warn("purge-deprecation", ["The `purge`/`content` options have changed in Tailwind CSS v3.0.", "Update your configuration file to eliminate this warning.", "https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]), e.safelist = (() => {
|
|
12074
12074
|
var r;
|
|
12075
12075
|
let { content: i, purge: o, safelist: u } = e;
|
|
12076
12076
|
return Array.isArray(u) ? u : Array.isArray(i == null ? void 0 : i.safelist) ? i.safelist : Array.isArray(o == null ? void 0 : o.safelist) ? o.safelist : Array.isArray(o == null || (r = o.options) === null || r === void 0 ? void 0 : r.safelist) ? o.options.safelist : [];
|
|
12077
12077
|
})(), typeof e.prefix == "function")
|
|
12078
|
-
|
|
12078
|
+
jt.default.warn("prefix-function", ["As of Tailwind CSS v3.0, `prefix` cannot be a function.", "Update `prefix` in your configuration to be a string to eliminate this warning.", "https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]), e.prefix = "";
|
|
12079
12079
|
else {
|
|
12080
12080
|
var n;
|
|
12081
12081
|
e.prefix = (n = e.prefix) !== null && n !== void 0 ? n : "";
|
|
@@ -12112,7 +12112,7 @@ var Vu = T((ri) => {
|
|
|
12112
12112
|
})() };
|
|
12113
12113
|
for (let r of e.content.files)
|
|
12114
12114
|
if (typeof r == "string" && /{([^,]*?)}/g.test(r)) {
|
|
12115
|
-
|
|
12115
|
+
jt.default.warn("invalid-glob-braces", [`The glob pattern ${(0, jt.dim)(r)} in your Tailwind CSS configuration is invalid.`, `Update it to ${(0, jt.dim)(r.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`]);
|
|
12116
12116
|
break;
|
|
12117
12117
|
}
|
|
12118
12118
|
return e;
|
|
@@ -12225,7 +12225,7 @@ var rs = T((en, ts) => {
|
|
|
12225
12225
|
}
|
|
12226
12226
|
ts.exports = en.default;
|
|
12227
12227
|
});
|
|
12228
|
-
var
|
|
12228
|
+
var Ht = T((Le) => {
|
|
12229
12229
|
"use strict";
|
|
12230
12230
|
Le.__esModule = true;
|
|
12231
12231
|
Le.stripComments = Le.ensureObject = Le.getProp = Le.unesc = void 0;
|
|
@@ -12241,11 +12241,11 @@ var Yt = T((Le) => {
|
|
|
12241
12241
|
return e && e.__esModule ? e : { default: e };
|
|
12242
12242
|
}
|
|
12243
12243
|
});
|
|
12244
|
-
var Ue = T((
|
|
12244
|
+
var Ue = T((Vt, os) => {
|
|
12245
12245
|
"use strict";
|
|
12246
|
-
|
|
12247
|
-
|
|
12248
|
-
var ns =
|
|
12246
|
+
Vt.__esModule = true;
|
|
12247
|
+
Vt.default = void 0;
|
|
12248
|
+
var ns = Ht();
|
|
12249
12249
|
function is(e, t) {
|
|
12250
12250
|
for (var n = 0; n < t.length; n++) {
|
|
12251
12251
|
var r = t[n];
|
|
@@ -12320,8 +12320,8 @@ var Ue = T((Xt, os) => {
|
|
|
12320
12320
|
(0, ns.ensureObject)(this, "raws", "spaces"), this.raws.spaces.after = r;
|
|
12321
12321
|
} }]), e;
|
|
12322
12322
|
}();
|
|
12323
|
-
|
|
12324
|
-
os.exports =
|
|
12323
|
+
Vt.default = pc;
|
|
12324
|
+
os.exports = Vt.default;
|
|
12325
12325
|
});
|
|
12326
12326
|
var pe = T((K) => {
|
|
12327
12327
|
"use strict";
|
|
@@ -12352,10 +12352,10 @@ var pe = T((K) => {
|
|
|
12352
12352
|
var Cc = "universal";
|
|
12353
12353
|
K.UNIVERSAL = Cc;
|
|
12354
12354
|
});
|
|
12355
|
-
var rn = T((
|
|
12355
|
+
var rn = T((Yt, ls) => {
|
|
12356
12356
|
"use strict";
|
|
12357
|
-
|
|
12358
|
-
|
|
12357
|
+
Yt.__esModule = true;
|
|
12358
|
+
Yt.default = void 0;
|
|
12359
12359
|
var _c = kc(Ue()), ze = Sc(pe());
|
|
12360
12360
|
function as() {
|
|
12361
12361
|
if (typeof WeakMap != "function")
|
|
@@ -12590,13 +12590,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12590
12590
|
return this.nodes.length;
|
|
12591
12591
|
} }]), t;
|
|
12592
12592
|
}(_c.default);
|
|
12593
|
-
|
|
12594
|
-
ls.exports =
|
|
12593
|
+
Yt.default = Bc;
|
|
12594
|
+
ls.exports = Yt.default;
|
|
12595
12595
|
});
|
|
12596
|
-
var li = T((
|
|
12596
|
+
var li = T((Xt, cs) => {
|
|
12597
12597
|
"use strict";
|
|
12598
|
-
|
|
12599
|
-
|
|
12598
|
+
Xt.__esModule = true;
|
|
12599
|
+
Xt.default = void 0;
|
|
12600
12600
|
var Ic = Lc(rn()), Rc = pe();
|
|
12601
12601
|
function Lc(e) {
|
|
12602
12602
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -12636,13 +12636,13 @@ var li = T((Kt, cs) => {
|
|
|
12636
12636
|
this._error = i;
|
|
12637
12637
|
} }]), t;
|
|
12638
12638
|
}(Ic.default);
|
|
12639
|
-
|
|
12640
|
-
cs.exports =
|
|
12639
|
+
Xt.default = $c;
|
|
12640
|
+
cs.exports = Xt.default;
|
|
12641
12641
|
});
|
|
12642
|
-
var ci = T((
|
|
12642
|
+
var ci = T((Qt, ds) => {
|
|
12643
12643
|
"use strict";
|
|
12644
|
-
|
|
12645
|
-
|
|
12644
|
+
Qt.__esModule = true;
|
|
12645
|
+
Qt.default = void 0;
|
|
12646
12646
|
var Wc = Uc(rn()), qc = pe();
|
|
12647
12647
|
function Uc(e) {
|
|
12648
12648
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -12663,8 +12663,8 @@ var ci = T((Jt, ds) => {
|
|
|
12663
12663
|
}
|
|
12664
12664
|
return t;
|
|
12665
12665
|
}(Wc.default);
|
|
12666
|
-
|
|
12667
|
-
ds.exports =
|
|
12666
|
+
Qt.default = Gc;
|
|
12667
|
+
ds.exports = Qt.default;
|
|
12668
12668
|
});
|
|
12669
12669
|
var nn = T((ub, ps) => {
|
|
12670
12670
|
"use strict";
|
|
@@ -12697,11 +12697,11 @@ var nn = T((ub, ps) => {
|
|
|
12697
12697
|
di.version = "3.0.0";
|
|
12698
12698
|
ps.exports = di;
|
|
12699
12699
|
});
|
|
12700
|
-
var hi = T((
|
|
12700
|
+
var hi = T((Kt, Ds) => {
|
|
12701
12701
|
"use strict";
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
var Kc = ms(nn()), Jc =
|
|
12702
|
+
Kt.__esModule = true;
|
|
12703
|
+
Kt.default = void 0;
|
|
12704
|
+
var Kc = ms(nn()), Jc = Ht(), Zc = ms(Ue()), ed = pe();
|
|
12705
12705
|
function ms(e) {
|
|
12706
12706
|
return e && e.__esModule ? e : { default: e };
|
|
12707
12707
|
}
|
|
@@ -12741,13 +12741,13 @@ var hi = T((Zt, Ds) => {
|
|
|
12741
12741
|
this._value = i;
|
|
12742
12742
|
} }]), t;
|
|
12743
12743
|
}(Zc.default);
|
|
12744
|
-
|
|
12745
|
-
Ds.exports =
|
|
12744
|
+
Kt.default = nd;
|
|
12745
|
+
Ds.exports = Kt.default;
|
|
12746
12746
|
});
|
|
12747
|
-
var Di = T((
|
|
12747
|
+
var Di = T((Jt, gs) => {
|
|
12748
12748
|
"use strict";
|
|
12749
|
-
|
|
12750
|
-
|
|
12749
|
+
Jt.__esModule = true;
|
|
12750
|
+
Jt.default = void 0;
|
|
12751
12751
|
var id = ud(Ue()), od = pe();
|
|
12752
12752
|
function ud(e) {
|
|
12753
12753
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -12768,13 +12768,13 @@ var Di = T((er, gs) => {
|
|
|
12768
12768
|
}
|
|
12769
12769
|
return t;
|
|
12770
12770
|
}(id.default);
|
|
12771
|
-
|
|
12772
|
-
gs.exports =
|
|
12771
|
+
Jt.default = ad;
|
|
12772
|
+
gs.exports = Jt.default;
|
|
12773
12773
|
});
|
|
12774
|
-
var bi = T((
|
|
12774
|
+
var bi = T((Zt, bs) => {
|
|
12775
12775
|
"use strict";
|
|
12776
|
-
|
|
12777
|
-
|
|
12776
|
+
Zt.__esModule = true;
|
|
12777
|
+
Zt.default = void 0;
|
|
12778
12778
|
var ld = cd(Ue()), fd2 = pe();
|
|
12779
12779
|
function cd(e) {
|
|
12780
12780
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -12798,14 +12798,14 @@ var bi = T((tr, bs) => {
|
|
|
12798
12798
|
return "#" + e.prototype.valueToString.call(this);
|
|
12799
12799
|
}, t;
|
|
12800
12800
|
}(ld.default);
|
|
12801
|
-
|
|
12802
|
-
bs.exports =
|
|
12801
|
+
Zt.default = pd;
|
|
12802
|
+
bs.exports = Zt.default;
|
|
12803
12803
|
});
|
|
12804
|
-
var on = T((
|
|
12804
|
+
var on = T((er, xs) => {
|
|
12805
12805
|
"use strict";
|
|
12806
|
-
|
|
12807
|
-
|
|
12808
|
-
var hd = ys(nn()), md =
|
|
12806
|
+
er.__esModule = true;
|
|
12807
|
+
er.default = void 0;
|
|
12808
|
+
var hd = ys(nn()), md = Ht(), Dd = ys(Ue());
|
|
12809
12809
|
function ys(e) {
|
|
12810
12810
|
return e && e.__esModule ? e : { default: e };
|
|
12811
12811
|
}
|
|
@@ -12857,13 +12857,13 @@ var on = T((rr, xs) => {
|
|
|
12857
12857
|
return "";
|
|
12858
12858
|
} }]), t;
|
|
12859
12859
|
}(Dd.default);
|
|
12860
|
-
|
|
12861
|
-
xs.exports =
|
|
12860
|
+
er.default = vd;
|
|
12861
|
+
xs.exports = er.default;
|
|
12862
12862
|
});
|
|
12863
|
-
var xi = T((
|
|
12863
|
+
var xi = T((tr, Fs) => {
|
|
12864
12864
|
"use strict";
|
|
12865
|
-
|
|
12866
|
-
|
|
12865
|
+
tr.__esModule = true;
|
|
12866
|
+
tr.default = void 0;
|
|
12867
12867
|
var yd = Fd(on()), xd = pe();
|
|
12868
12868
|
function Fd(e) {
|
|
12869
12869
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -12884,13 +12884,13 @@ var xi = T((nr, Fs) => {
|
|
|
12884
12884
|
}
|
|
12885
12885
|
return t;
|
|
12886
12886
|
}(yd.default);
|
|
12887
|
-
|
|
12888
|
-
Fs.exports =
|
|
12887
|
+
tr.default = Ed;
|
|
12888
|
+
Fs.exports = tr.default;
|
|
12889
12889
|
});
|
|
12890
|
-
var wi = T((
|
|
12890
|
+
var wi = T((rr, ws) => {
|
|
12891
12891
|
"use strict";
|
|
12892
|
-
|
|
12893
|
-
|
|
12892
|
+
rr.__esModule = true;
|
|
12893
|
+
rr.default = void 0;
|
|
12894
12894
|
var Cd = Sd(Ue()), _d = pe();
|
|
12895
12895
|
function Sd(e) {
|
|
12896
12896
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -12911,13 +12911,13 @@ var wi = T((ir, ws) => {
|
|
|
12911
12911
|
}
|
|
12912
12912
|
return t;
|
|
12913
12913
|
}(Cd.default);
|
|
12914
|
-
|
|
12915
|
-
ws.exports =
|
|
12914
|
+
rr.default = Td;
|
|
12915
|
+
ws.exports = rr.default;
|
|
12916
12916
|
});
|
|
12917
|
-
var Ci = T((
|
|
12917
|
+
var Ci = T((nr, Es) => {
|
|
12918
12918
|
"use strict";
|
|
12919
|
-
|
|
12920
|
-
|
|
12919
|
+
nr.__esModule = true;
|
|
12920
|
+
nr.default = void 0;
|
|
12921
12921
|
var Ad = Pd(rn()), Od = pe();
|
|
12922
12922
|
function Pd(e) {
|
|
12923
12923
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -12942,8 +12942,8 @@ var Ci = T((or, Es) => {
|
|
|
12942
12942
|
return [this.rawSpaceBefore, this.stringifyProperty("value"), i, this.rawSpaceAfter].join("");
|
|
12943
12943
|
}, t;
|
|
12944
12944
|
}(Ad.default);
|
|
12945
|
-
|
|
12946
|
-
Es.exports =
|
|
12945
|
+
nr.default = Id;
|
|
12946
|
+
Es.exports = nr.default;
|
|
12947
12947
|
});
|
|
12948
12948
|
var _s = T((sb, Cs) => {
|
|
12949
12949
|
Cs.exports = function(t, n) {
|
|
@@ -12952,12 +12952,12 @@ var _s = T((sb, Cs) => {
|
|
|
12952
12952
|
};
|
|
12953
12953
|
};
|
|
12954
12954
|
});
|
|
12955
|
-
var Oi = T((
|
|
12955
|
+
var Oi = T((ur) => {
|
|
12956
12956
|
"use strict";
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
|
|
12960
|
-
var
|
|
12957
|
+
ur.__esModule = true;
|
|
12958
|
+
ur.unescapeValue = Ai;
|
|
12959
|
+
ur.default = void 0;
|
|
12960
|
+
var ir = Ti(nn()), Rd = Ti(ui()), Ld = Ti(on()), Md = pe(), _i;
|
|
12961
12961
|
function Ti(e) {
|
|
12962
12962
|
return e && e.__esModule ? e : { default: e };
|
|
12963
12963
|
}
|
|
@@ -12978,9 +12978,9 @@ var Oi = T((ar) => {
|
|
|
12978
12978
|
return r.__proto__ = i, r;
|
|
12979
12979
|
}, ki(e, t);
|
|
12980
12980
|
}
|
|
12981
|
-
var
|
|
12982
|
-
}, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."), Ud =
|
|
12983
|
-
}, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."), zd =
|
|
12981
|
+
var or = _s(), Wd = /^('|")([^]*)\1$/, qd = or(function() {
|
|
12982
|
+
}, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."), Ud = or(function() {
|
|
12983
|
+
}, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."), zd = or(function() {
|
|
12984
12984
|
}, "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");
|
|
12985
12985
|
function Ai(e) {
|
|
12986
12986
|
var t = false, n = null, r = e, i = r.match(Wd);
|
|
@@ -12997,16 +12997,16 @@ var Oi = T((ar) => {
|
|
|
12997
12997
|
$d(t, e);
|
|
12998
12998
|
function t(r) {
|
|
12999
12999
|
var i;
|
|
13000
|
-
return r === void 0 && (r = {}), i = e.call(this, Gd(r)) || this, i.type = Md.ATTRIBUTE, i.raws = i.raws || {}, Object.defineProperty(i.raws, "unquoted", { get:
|
|
13000
|
+
return r === void 0 && (r = {}), i = e.call(this, Gd(r)) || this, i.type = Md.ATTRIBUTE, i.raws = i.raws || {}, Object.defineProperty(i.raws, "unquoted", { get: or(function() {
|
|
13001
13001
|
return i.value;
|
|
13002
|
-
}, "attr.raws.unquoted is deprecated. Call attr.value instead."), set:
|
|
13002
|
+
}, "attr.raws.unquoted is deprecated. Call attr.value instead."), set: or(function() {
|
|
13003
13003
|
return i.value;
|
|
13004
13004
|
}, "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.") }), i._constructed = true, i;
|
|
13005
13005
|
}
|
|
13006
13006
|
var n = t.prototype;
|
|
13007
13007
|
return n.getQuotedValue = function(i) {
|
|
13008
13008
|
i === void 0 && (i = {});
|
|
13009
|
-
var o = this._determineQuoteMark(i), u = Si[o], s = (0,
|
|
13009
|
+
var o = this._determineQuoteMark(i), u = Si[o], s = (0, ir.default)(this._value, u);
|
|
13010
13010
|
return s;
|
|
13011
13011
|
}, n._determineQuoteMark = function(i) {
|
|
13012
13012
|
return i.smart ? this.smartQuoteMark(i) : this.preferredQuoteMark(i);
|
|
@@ -13015,12 +13015,12 @@ var Oi = T((ar) => {
|
|
|
13015
13015
|
}, n.smartQuoteMark = function(i) {
|
|
13016
13016
|
var o = this.value, u = o.replace(/[^']/g, "").length, s = o.replace(/[^"]/g, "").length;
|
|
13017
13017
|
if (u + s === 0) {
|
|
13018
|
-
var a = (0,
|
|
13018
|
+
var a = (0, ir.default)(o, { isIdentifier: true });
|
|
13019
13019
|
if (a === o)
|
|
13020
13020
|
return t.NO_QUOTE;
|
|
13021
13021
|
var l = this.preferredQuoteMark(i);
|
|
13022
13022
|
if (l === t.NO_QUOTE) {
|
|
13023
|
-
var f = this.quoteMark || i.quoteMark || t.DOUBLE_QUOTE, c = Si[f], p = (0,
|
|
13023
|
+
var f = this.quoteMark || i.quoteMark || t.DOUBLE_QUOTE, c = Si[f], p = (0, ir.default)(o, c);
|
|
13024
13024
|
if (p.length < a.length)
|
|
13025
13025
|
return f;
|
|
13026
13026
|
}
|
|
@@ -13031,11 +13031,11 @@ var Oi = T((ar) => {
|
|
|
13031
13031
|
var o = i.preferCurrentQuoteMark ? this.quoteMark : i.quoteMark;
|
|
13032
13032
|
return o === void 0 && (o = i.preferCurrentQuoteMark ? i.quoteMark : this.quoteMark), o === void 0 && (o = t.DOUBLE_QUOTE), o;
|
|
13033
13033
|
}, n._syncRawValue = function() {
|
|
13034
|
-
var i = (0,
|
|
13034
|
+
var i = (0, ir.default)(this._value, Si[this.quoteMark]);
|
|
13035
13035
|
i === this._value ? this.raws && delete this.raws.value : this.raws.value = i;
|
|
13036
13036
|
}, n._handleEscapes = function(i, o) {
|
|
13037
13037
|
if (this._constructed) {
|
|
13038
|
-
var u = (0,
|
|
13038
|
+
var u = (0, ir.default)(o, { isIdentifier: true });
|
|
13039
13039
|
u !== o ? this.raws[i] = u : delete this.raws[i];
|
|
13040
13040
|
}
|
|
13041
13041
|
}, n._spacesFor = function(i) {
|
|
@@ -13104,7 +13104,7 @@ var Oi = T((ar) => {
|
|
|
13104
13104
|
this._handleEscapes("attribute", i), this._attribute = i;
|
|
13105
13105
|
} }]), t;
|
|
13106
13106
|
}(Ld.default);
|
|
13107
|
-
|
|
13107
|
+
ur.default = un;
|
|
13108
13108
|
un.NO_QUOTE = null;
|
|
13109
13109
|
un.SINGLE_QUOTE = "'";
|
|
13110
13110
|
un.DOUBLE_QUOTE = '"';
|
|
@@ -13113,10 +13113,10 @@ var Oi = T((ar) => {
|
|
|
13113
13113
|
return "" + t.before + e + t.after;
|
|
13114
13114
|
}
|
|
13115
13115
|
});
|
|
13116
|
-
var Bi = T((
|
|
13116
|
+
var Bi = T((sr, Ts) => {
|
|
13117
13117
|
"use strict";
|
|
13118
|
-
|
|
13119
|
-
|
|
13118
|
+
sr.__esModule = true;
|
|
13119
|
+
sr.default = void 0;
|
|
13120
13120
|
var jd = Vd(on()), Hd = pe();
|
|
13121
13121
|
function Vd(e) {
|
|
13122
13122
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -13137,13 +13137,13 @@ var Bi = T((lr, Ts) => {
|
|
|
13137
13137
|
}
|
|
13138
13138
|
return t;
|
|
13139
13139
|
}(jd.default);
|
|
13140
|
-
|
|
13141
|
-
Ts.exports =
|
|
13140
|
+
sr.default = Xd;
|
|
13141
|
+
Ts.exports = sr.default;
|
|
13142
13142
|
});
|
|
13143
|
-
var Ri = T((
|
|
13143
|
+
var Ri = T((ar, As) => {
|
|
13144
13144
|
"use strict";
|
|
13145
|
-
|
|
13146
|
-
|
|
13145
|
+
ar.__esModule = true;
|
|
13146
|
+
ar.default = void 0;
|
|
13147
13147
|
var Qd = Jd(Ue()), Kd = pe();
|
|
13148
13148
|
function Jd(e) {
|
|
13149
13149
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -13164,13 +13164,13 @@ var Ri = T((fr, As) => {
|
|
|
13164
13164
|
}
|
|
13165
13165
|
return t;
|
|
13166
13166
|
}(Qd.default);
|
|
13167
|
-
|
|
13168
|
-
As.exports =
|
|
13167
|
+
ar.default = ep;
|
|
13168
|
+
As.exports = ar.default;
|
|
13169
13169
|
});
|
|
13170
|
-
var Mi = T((
|
|
13170
|
+
var Mi = T((lr, Os) => {
|
|
13171
13171
|
"use strict";
|
|
13172
|
-
|
|
13173
|
-
|
|
13172
|
+
lr.__esModule = true;
|
|
13173
|
+
lr.default = void 0;
|
|
13174
13174
|
var tp = np(Ue()), rp = pe();
|
|
13175
13175
|
function np(e) {
|
|
13176
13176
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -13191,8 +13191,8 @@ var Mi = T((cr, Os) => {
|
|
|
13191
13191
|
}
|
|
13192
13192
|
return t;
|
|
13193
13193
|
}(tp.default);
|
|
13194
|
-
|
|
13195
|
-
Os.exports =
|
|
13194
|
+
lr.default = op;
|
|
13195
|
+
Os.exports = lr.default;
|
|
13196
13196
|
});
|
|
13197
13197
|
var Bs = T((sn, Ps) => {
|
|
13198
13198
|
"use strict";
|
|
@@ -13272,11 +13272,11 @@ var Ni = T((S) => {
|
|
|
13272
13272
|
var Lp = -3;
|
|
13273
13273
|
S.combinator = Lp;
|
|
13274
13274
|
});
|
|
13275
|
-
var Ms = T((
|
|
13275
|
+
var Ms = T((fr) => {
|
|
13276
13276
|
"use strict";
|
|
13277
|
-
|
|
13278
|
-
|
|
13279
|
-
|
|
13277
|
+
fr.__esModule = true;
|
|
13278
|
+
fr.default = zp;
|
|
13279
|
+
fr.FIELDS = void 0;
|
|
13280
13280
|
var E = Mp(Ni()), xt, Q;
|
|
13281
13281
|
function Ls() {
|
|
13282
13282
|
if (typeof WeakMap != "function")
|
|
@@ -13329,7 +13329,7 @@ var Ms = T((dr) => {
|
|
|
13329
13329
|
return n;
|
|
13330
13330
|
}
|
|
13331
13331
|
var Up = { TYPE: 0, START_LINE: 1, START_COL: 2, END_LINE: 3, END_COL: 4, START_POS: 5, END_POS: 6 };
|
|
13332
|
-
|
|
13332
|
+
fr.FIELDS = Up;
|
|
13333
13333
|
function zp(e) {
|
|
13334
13334
|
var t = [], n = e.css.valueOf(), r = n, i = r.length, o = -1, u = 1, s = 0, a = 0, l, f, c, p, h, d, m, v, g, b, x, F, y;
|
|
13335
13335
|
function k(P, B) {
|
|
@@ -13395,11 +13395,11 @@ var Ms = T((dr) => {
|
|
|
13395
13395
|
return t;
|
|
13396
13396
|
}
|
|
13397
13397
|
});
|
|
13398
|
-
var js = T((
|
|
13398
|
+
var js = T((cr, Gs) => {
|
|
13399
13399
|
"use strict";
|
|
13400
|
-
|
|
13401
|
-
|
|
13402
|
-
var Gp = _e(li()), Wi = _e(ci()), jp = _e(hi()), Ns = _e(Di()), Hp = _e(bi()), Vp = _e(xi()), qi = _e(wi()), Yp = _e(Ci()), $s = ln(Oi()), Xp = _e(Bi()), Ui = _e(Ri()), Qp = _e(Mi()), Kp = _e(Bs()), w = ln(Ms()), _ = ln(Ni()), Jp = ln(pe()),
|
|
13400
|
+
cr.__esModule = true;
|
|
13401
|
+
cr.default = void 0;
|
|
13402
|
+
var Gp = _e(li()), Wi = _e(ci()), jp = _e(hi()), Ns = _e(Di()), Hp = _e(bi()), Vp = _e(xi()), qi = _e(wi()), Yp = _e(Ci()), $s = ln(Oi()), Xp = _e(Bi()), Ui = _e(Ri()), Qp = _e(Mi()), Kp = _e(Bs()), w = ln(Ms()), _ = ln(Ni()), Jp = ln(pe()), re = Ht(), ut, zi;
|
|
13403
13403
|
function zs() {
|
|
13404
13404
|
if (typeof WeakMap != "function")
|
|
13405
13405
|
return null;
|
|
@@ -13456,7 +13456,7 @@ var js = T((pr, Gs) => {
|
|
|
13456
13456
|
function wt(e, t) {
|
|
13457
13457
|
var n = e[t];
|
|
13458
13458
|
if (typeof n == "string")
|
|
13459
|
-
return n.indexOf("\\") !== -1 && ((0,
|
|
13459
|
+
return n.indexOf("\\") !== -1 && ((0, re.ensureObject)(e, "raws"), e[t] = (0, re.unesc)(n), e.raws[t] === void 0 && (e.raws[t] = n)), e;
|
|
13460
13460
|
}
|
|
13461
13461
|
function ji(e, t) {
|
|
13462
13462
|
for (var n = -1, r = []; (n = e.indexOf(t, n + 1)) !== -1; )
|
|
@@ -13499,10 +13499,10 @@ var js = T((pr, Gs) => {
|
|
|
13499
13499
|
if (c = true, this.options.lossy)
|
|
13500
13500
|
break;
|
|
13501
13501
|
if (f) {
|
|
13502
|
-
(0,
|
|
13502
|
+
(0, re.ensureObject)(u, "spaces", f);
|
|
13503
13503
|
var m = u.spaces[f].after || "";
|
|
13504
13504
|
u.spaces[f].after = m + h;
|
|
13505
|
-
var v = (0,
|
|
13505
|
+
var v = (0, re.getProp)(u, "raws", "spaces", f, "after") || null;
|
|
13506
13506
|
v && (u.raws.spaces[f].after = v + h);
|
|
13507
13507
|
} else
|
|
13508
13508
|
a = a + h, l = l + h;
|
|
@@ -13511,15 +13511,15 @@ var js = T((pr, Gs) => {
|
|
|
13511
13511
|
if (d[w.FIELDS.TYPE] === _.equals)
|
|
13512
13512
|
u.operator = h, f = "operator";
|
|
13513
13513
|
else if ((!u.namespace || f === "namespace" && !c) && d) {
|
|
13514
|
-
a && ((0,
|
|
13515
|
-
var g = (0,
|
|
13514
|
+
a && ((0, re.ensureObject)(u, "spaces", "attribute"), u.spaces.attribute.before = a, a = ""), l && ((0, re.ensureObject)(u, "raws", "spaces", "attribute"), u.raws.spaces.attribute.before = a, l = ""), u.namespace = (u.namespace || "") + h;
|
|
13515
|
+
var g = (0, re.getProp)(u, "raws", "namespace") || null;
|
|
13516
13516
|
g && (u.raws.namespace += h), f = "namespace";
|
|
13517
13517
|
}
|
|
13518
13518
|
c = false;
|
|
13519
13519
|
break;
|
|
13520
13520
|
case _.dollar:
|
|
13521
13521
|
if (f === "value") {
|
|
13522
|
-
var b = (0,
|
|
13522
|
+
var b = (0, re.getProp)(u, "raws", "value");
|
|
13523
13523
|
u.value += "$", b && (u.raws.value = b + "$");
|
|
13524
13524
|
break;
|
|
13525
13525
|
}
|
|
@@ -13537,23 +13537,23 @@ var js = T((pr, Gs) => {
|
|
|
13537
13537
|
if (d && this.content(d) === "|" && r[s + 2] && r[s + 2][w.FIELDS.TYPE] !== _.equals && !u.operator && !u.namespace)
|
|
13538
13538
|
u.namespace = h, f = "namespace";
|
|
13539
13539
|
else if (!u.attribute || f === "attribute" && !c) {
|
|
13540
|
-
a && ((0,
|
|
13541
|
-
var x = (0,
|
|
13540
|
+
a && ((0, re.ensureObject)(u, "spaces", "attribute"), u.spaces.attribute.before = a, a = ""), l && ((0, re.ensureObject)(u, "raws", "spaces", "attribute"), u.raws.spaces.attribute.before = l, l = ""), u.attribute = (u.attribute || "") + h;
|
|
13541
|
+
var x = (0, re.getProp)(u, "raws", "attribute") || null;
|
|
13542
13542
|
x && (u.raws.attribute += h), f = "attribute";
|
|
13543
13543
|
} else if (!u.value && u.value !== "" || f === "value" && !c) {
|
|
13544
|
-
var F = (0,
|
|
13545
|
-
u.value = k + F, u.quoteMark = null, (F !== h || y) && ((0,
|
|
13544
|
+
var F = (0, re.unesc)(h), y = (0, re.getProp)(u, "raws", "value") || "", k = u.value || "";
|
|
13545
|
+
u.value = k + F, u.quoteMark = null, (F !== h || y) && ((0, re.ensureObject)(u, "raws"), u.raws.value = (y || k) + h), f = "value";
|
|
13546
13546
|
} else {
|
|
13547
13547
|
var P = h === "i" || h === "I";
|
|
13548
|
-
(u.value || u.value === "") && (u.quoteMark || c) ? (u.insensitive = P, (!P || h === "I") && ((0,
|
|
13548
|
+
(u.value || u.value === "") && (u.quoteMark || c) ? (u.insensitive = P, (!P || h === "I") && ((0, re.ensureObject)(u, "raws"), u.raws.insensitiveFlag = h), f = "insensitive", a && ((0, re.ensureObject)(u, "spaces", "insensitive"), u.spaces.insensitive.before = a, a = ""), l && ((0, re.ensureObject)(u, "raws", "spaces", "insensitive"), u.raws.spaces.insensitive.before = l, l = "")) : (u.value || u.value === "") && (f = "value", u.value += h, u.raws.value && (u.raws.value += h));
|
|
13549
13549
|
}
|
|
13550
13550
|
c = false;
|
|
13551
13551
|
break;
|
|
13552
13552
|
case _.str:
|
|
13553
13553
|
if (!u.attribute || !u.operator)
|
|
13554
13554
|
return this.error("Expected an attribute followed by an operator preceding the string.", { index: p[w.FIELDS.START_POS] });
|
|
13555
|
-
var B = (0, $s.unescapeValue)(h),
|
|
13556
|
-
u.value =
|
|
13555
|
+
var B = (0, $s.unescapeValue)(h), j = B.unescaped, oe = B.quoteMark;
|
|
13556
|
+
u.value = j, u.quoteMark = oe, f = "value", (0, re.ensureObject)(u, "raws"), u.raws.value = h, c = false;
|
|
13557
13557
|
break;
|
|
13558
13558
|
case _.equals:
|
|
13559
13559
|
if (!u.attribute)
|
|
@@ -13565,11 +13565,11 @@ var js = T((pr, Gs) => {
|
|
|
13565
13565
|
case _.comment:
|
|
13566
13566
|
if (f)
|
|
13567
13567
|
if (c || d && d[w.FIELDS.TYPE] === _.space || f === "insensitive") {
|
|
13568
|
-
var ue = (0,
|
|
13569
|
-
(0,
|
|
13568
|
+
var ue = (0, re.getProp)(u, "spaces", f, "after") || "", se = (0, re.getProp)(u, "raws", "spaces", f, "after") || ue;
|
|
13569
|
+
(0, re.ensureObject)(u, "raws", "spaces", f), u.raws.spaces[f].after = se + h;
|
|
13570
13570
|
} else {
|
|
13571
|
-
var
|
|
13572
|
-
(0,
|
|
13571
|
+
var N = u[f] || "", L = (0, re.getProp)(u, "raws", f) || N;
|
|
13572
|
+
(0, re.ensureObject)(u, "raws"), u.raws[f] = L + h;
|
|
13573
13573
|
}
|
|
13574
13574
|
else
|
|
13575
13575
|
l = l + h;
|
|
@@ -13614,7 +13614,7 @@ var js = T((pr, Gs) => {
|
|
|
13614
13614
|
return r === void 0 && (r = this.position), this.tokens[r + 0] && this.tokens[r + 0][w.FIELDS.TYPE] === _.slash && this.tokens[r + 1] && this.tokens[r + 1][w.FIELDS.TYPE] === _.word && this.tokens[r + 2] && this.tokens[r + 2][w.FIELDS.TYPE] === _.slash;
|
|
13615
13615
|
}, t.namedCombinator = function() {
|
|
13616
13616
|
if (this.isNamedCombinator()) {
|
|
13617
|
-
var r = this.content(this.tokens[this.position + 1]), i = (0,
|
|
13617
|
+
var r = this.content(this.tokens[this.position + 1]), i = (0, re.unesc)(r).toLowerCase(), o = {};
|
|
13618
13618
|
i !== r && (o.value = "/" + r + "/");
|
|
13619
13619
|
var u = new Ui.default({ value: "/" + i + "/", source: st(this.currToken[w.FIELDS.START_LINE], this.currToken[w.FIELDS.START_COL], this.tokens[this.position + 2][w.FIELDS.END_LINE], this.tokens[this.position + 2][w.FIELDS.END_COL]), sourceIndex: this.currToken[w.FIELDS.START_POS], raws: o });
|
|
13620
13620
|
return this.position = this.position + 3, u;
|
|
@@ -13860,13 +13860,13 @@ var js = T((pr, Gs) => {
|
|
|
13860
13860
|
return this.tokens[this.position - 1];
|
|
13861
13861
|
} }]), e;
|
|
13862
13862
|
}();
|
|
13863
|
-
|
|
13864
|
-
Gs.exports =
|
|
13863
|
+
cr.default = r0;
|
|
13864
|
+
Gs.exports = cr.default;
|
|
13865
13865
|
});
|
|
13866
|
-
var Vs = T((
|
|
13866
|
+
var Vs = T((dr, Hs) => {
|
|
13867
13867
|
"use strict";
|
|
13868
|
-
|
|
13869
|
-
|
|
13868
|
+
dr.__esModule = true;
|
|
13869
|
+
dr.default = void 0;
|
|
13870
13870
|
var n0 = i0(js());
|
|
13871
13871
|
function i0(e) {
|
|
13872
13872
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -13933,8 +13933,8 @@ var Vs = T((hr, Hs) => {
|
|
|
13933
13933
|
return o.string || o.root.toString();
|
|
13934
13934
|
}, e;
|
|
13935
13935
|
}();
|
|
13936
|
-
|
|
13937
|
-
Hs.exports =
|
|
13936
|
+
dr.default = o0;
|
|
13937
|
+
Hs.exports = dr.default;
|
|
13938
13938
|
});
|
|
13939
13939
|
var Ys = T((J) => {
|
|
13940
13940
|
"use strict";
|
|
@@ -13993,46 +13993,46 @@ var Ys = T((J) => {
|
|
|
13993
13993
|
};
|
|
13994
13994
|
J.universal = T0;
|
|
13995
13995
|
});
|
|
13996
|
-
var Js = T((
|
|
13996
|
+
var Js = T((U) => {
|
|
13997
13997
|
"use strict";
|
|
13998
|
-
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
var
|
|
13998
|
+
U.__esModule = true;
|
|
13999
|
+
U.isNode = Vi;
|
|
14000
|
+
U.isPseudoElement = Ks;
|
|
14001
|
+
U.isPseudoClass = W0;
|
|
14002
|
+
U.isContainer = q0;
|
|
14003
|
+
U.isNamespace = U0;
|
|
14004
|
+
U.isUniversal = U.isTag = U.isString = U.isSelector = U.isRoot = U.isPseudo = U.isNesting = U.isIdentifier = U.isComment = U.isCombinator = U.isClassName = U.isAttribute = void 0;
|
|
14005
|
+
var ne = pe(), ye, A0 = (ye = {}, ye[ne.ATTRIBUTE] = true, ye[ne.CLASS] = true, ye[ne.COMBINATOR] = true, ye[ne.COMMENT] = true, ye[ne.ID] = true, ye[ne.NESTING] = true, ye[ne.PSEUDO] = true, ye[ne.ROOT] = true, ye[ne.SELECTOR] = true, ye[ne.STRING] = true, ye[ne.TAG] = true, ye[ne.UNIVERSAL] = true, ye);
|
|
14006
14006
|
function Vi(e) {
|
|
14007
14007
|
return typeof e == "object" && A0[e.type];
|
|
14008
14008
|
}
|
|
14009
14009
|
function ke(e, t) {
|
|
14010
14010
|
return Vi(t) && t.type === e;
|
|
14011
14011
|
}
|
|
14012
|
-
var Xs = ke.bind(null,
|
|
14013
|
-
|
|
14014
|
-
var O0 = ke.bind(null,
|
|
14015
|
-
|
|
14016
|
-
var P0 = ke.bind(null,
|
|
14017
|
-
|
|
14018
|
-
var B0 = ke.bind(null,
|
|
14019
|
-
|
|
14020
|
-
var I0 = ke.bind(null,
|
|
14021
|
-
|
|
14022
|
-
var R0 = ke.bind(null,
|
|
14023
|
-
|
|
14024
|
-
var Yi = ke.bind(null,
|
|
14025
|
-
|
|
14026
|
-
var L0 = ke.bind(null,
|
|
14027
|
-
|
|
14028
|
-
var M0 = ke.bind(null,
|
|
14029
|
-
|
|
14030
|
-
var N0 = ke.bind(null,
|
|
14031
|
-
|
|
14032
|
-
var Qs = ke.bind(null,
|
|
14033
|
-
|
|
14034
|
-
var $0 = ke.bind(null,
|
|
14035
|
-
|
|
14012
|
+
var Xs = ke.bind(null, ne.ATTRIBUTE);
|
|
14013
|
+
U.isAttribute = Xs;
|
|
14014
|
+
var O0 = ke.bind(null, ne.CLASS);
|
|
14015
|
+
U.isClassName = O0;
|
|
14016
|
+
var P0 = ke.bind(null, ne.COMBINATOR);
|
|
14017
|
+
U.isCombinator = P0;
|
|
14018
|
+
var B0 = ke.bind(null, ne.COMMENT);
|
|
14019
|
+
U.isComment = B0;
|
|
14020
|
+
var I0 = ke.bind(null, ne.ID);
|
|
14021
|
+
U.isIdentifier = I0;
|
|
14022
|
+
var R0 = ke.bind(null, ne.NESTING);
|
|
14023
|
+
U.isNesting = R0;
|
|
14024
|
+
var Yi = ke.bind(null, ne.PSEUDO);
|
|
14025
|
+
U.isPseudo = Yi;
|
|
14026
|
+
var L0 = ke.bind(null, ne.ROOT);
|
|
14027
|
+
U.isRoot = L0;
|
|
14028
|
+
var M0 = ke.bind(null, ne.SELECTOR);
|
|
14029
|
+
U.isSelector = M0;
|
|
14030
|
+
var N0 = ke.bind(null, ne.STRING);
|
|
14031
|
+
U.isString = N0;
|
|
14032
|
+
var Qs = ke.bind(null, ne.TAG);
|
|
14033
|
+
U.isTag = Qs;
|
|
14034
|
+
var $0 = ke.bind(null, ne.UNIVERSAL);
|
|
14035
|
+
U.isUniversal = $0;
|
|
14036
14036
|
function Ks(e) {
|
|
14037
14037
|
return Yi(e) && e.value && (e.value.startsWith("::") || e.value.toLowerCase() === ":before" || e.value.toLowerCase() === ":after" || e.value.toLowerCase() === ":first-letter" || e.value.toLowerCase() === ":first-line");
|
|
14038
14038
|
}
|
|
@@ -14062,10 +14062,10 @@ var Zs = T((Pe) => {
|
|
|
14062
14062
|
e === "default" || e === "__esModule" || e in Pe && Pe[e] === Ki[e] || (Pe[e] = Ki[e]);
|
|
14063
14063
|
});
|
|
14064
14064
|
});
|
|
14065
|
-
var ra = T((
|
|
14065
|
+
var ra = T((pr, ta) => {
|
|
14066
14066
|
"use strict";
|
|
14067
|
-
|
|
14068
|
-
|
|
14067
|
+
pr.__esModule = true;
|
|
14068
|
+
pr.default = void 0;
|
|
14069
14069
|
var z0 = H0(Vs()), G0 = j0(Zs());
|
|
14070
14070
|
function ea() {
|
|
14071
14071
|
if (typeof WeakMap != "function")
|
|
@@ -14100,8 +14100,8 @@ var ra = T((mr, ta) => {
|
|
|
14100
14100
|
Object.assign(Ji, G0);
|
|
14101
14101
|
delete Ji.__esModule;
|
|
14102
14102
|
var V0 = Ji;
|
|
14103
|
-
|
|
14104
|
-
ta.exports =
|
|
14103
|
+
pr.default = V0;
|
|
14104
|
+
ta.exports = pr.default;
|
|
14105
14105
|
});
|
|
14106
14106
|
var na = T((Zi) => {
|
|
14107
14107
|
"use strict";
|
|
@@ -14127,7 +14127,7 @@ var to = T((eo) => {
|
|
|
14127
14127
|
function Q0(e) {
|
|
14128
14128
|
return e && e.__esModule ? e : { default: e };
|
|
14129
14129
|
}
|
|
14130
|
-
var K0 = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, J0 = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,
|
|
14130
|
+
var K0 = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, J0 = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, Ze = /(?:\d+|\d*\.\d+)%?/, fn = /(?:\s*,\s*|\s+)/, sa = /\s*[,/]\s*/, et2 = /var\(--(?:[^ )]*?)\)/, Z0 = new RegExp(`^(rgb)a?\\(\\s*(${Ze.source}|${et2.source})(?:${fn.source}(${Ze.source}|${et2.source}))?(?:${fn.source}(${Ze.source}|${et2.source}))?(?:${sa.source}(${Ze.source}|${et2.source}))?\\s*\\)$`), eh = new RegExp(`^(hsl)a?\\(\\s*((?:${Ze.source})(?:deg|rad|grad|turn)?|${et2.source})(?:${fn.source}(${Ze.source}|${et2.source}))?(?:${fn.source}(${Ze.source}|${et2.source}))?(?:${sa.source}(${Ze.source}|${et2.source}))?\\s*\\)$`);
|
|
14131
14131
|
function th(e, { loose: t = false } = {}) {
|
|
14132
14132
|
var n, r;
|
|
14133
14133
|
if (typeof e != "string")
|
|
@@ -14183,23 +14183,23 @@ var da = T((io) => {
|
|
|
14183
14183
|
}
|
|
14184
14184
|
uh(io, { pattern: () => ah, withoutCapturing: () => la, any: () => fa, optional: () => lh, zeroOrMore: () => fh, nestedBrackets: () => ca, escape: () => at });
|
|
14185
14185
|
var aa = /[\\^$.*+?()[\]{}|]/g, sh = RegExp(aa.source);
|
|
14186
|
-
function
|
|
14186
|
+
function hr(e) {
|
|
14187
14187
|
return e = Array.isArray(e) ? e : [e], e = e.map((t) => t instanceof RegExp ? t.source : t), e.join("");
|
|
14188
14188
|
}
|
|
14189
14189
|
function ah(e) {
|
|
14190
|
-
return new RegExp(
|
|
14190
|
+
return new RegExp(hr(e), "g");
|
|
14191
14191
|
}
|
|
14192
14192
|
function la(e) {
|
|
14193
|
-
return new RegExp(`(?:${
|
|
14193
|
+
return new RegExp(`(?:${hr(e)})`, "g");
|
|
14194
14194
|
}
|
|
14195
14195
|
function fa(e) {
|
|
14196
|
-
return `(?:${e.map(
|
|
14196
|
+
return `(?:${e.map(hr).join("|")})`;
|
|
14197
14197
|
}
|
|
14198
14198
|
function lh(e) {
|
|
14199
|
-
return `(?:${
|
|
14199
|
+
return `(?:${hr(e)})?`;
|
|
14200
14200
|
}
|
|
14201
14201
|
function fh(e) {
|
|
14202
|
-
return `(?:${
|
|
14202
|
+
return `(?:${hr(e)})*`;
|
|
14203
14203
|
}
|
|
14204
14204
|
function ca(e, t, n = 1) {
|
|
14205
14205
|
return la([at(e), /[^\s]*/, n === 1 ? `[^${at(e)}${at(t)}s]*` : fa([`[^${at(e)}${at(t)}s]*`, ca(e, t, n - 1)]), /[^\s]*/, at(t)]);
|
|
@@ -14274,10 +14274,10 @@ var wa = T((ao) => {
|
|
|
14274
14274
|
for (var n in t)
|
|
14275
14275
|
Object.defineProperty(e, n, { enumerable: true, get: t[n] });
|
|
14276
14276
|
}
|
|
14277
|
-
yh(ao, { normalize: () =>
|
|
14277
|
+
yh(ao, { normalize: () => tt, url: () => va, number: () => wh, percentage: () => ya, length: () => xa, lineWidth: () => _h, shadow: () => Sh, color: () => kh, image: () => Th, gradient: () => Fa, position: () => Ph, familyName: () => Bh, genericName: () => Rh, absoluteSize: () => Mh, relativeSize: () => $h });
|
|
14278
14278
|
var xh = to(), Fh = Da(), so = ["min", "max", "clamp", "calc"], ba = /,(?![^(]*\))/g, dn = /_(?![^(]*\))/g;
|
|
14279
|
-
function
|
|
14280
|
-
return e.includes("url(") ? e.split(/(url\(.*?\))/g).filter(Boolean).map((n) => /^url\(.*?\)$/.test(n) ? n :
|
|
14279
|
+
function tt(e, t = true) {
|
|
14280
|
+
return e.includes("url(") ? e.split(/(url\(.*?\))/g).filter(Boolean).map((n) => /^url\(.*?\)$/.test(n) ? n : tt(n, false)).join("") : (e = e.replace(/([^\\])_+/g, (n, r) => r + " ".repeat(n.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_"), t && (e = e.trim()), e = e.replace(/(calc|min|max|clamp)\(.+\)/g, (n) => n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ")), e);
|
|
14281
14281
|
}
|
|
14282
14282
|
function va(e) {
|
|
14283
14283
|
return e.startsWith("url(");
|
|
@@ -14297,7 +14297,7 @@ var wa = T((ao) => {
|
|
|
14297
14297
|
return Ch.has(e);
|
|
14298
14298
|
}
|
|
14299
14299
|
function Sh(e) {
|
|
14300
|
-
let t = (0, Fh.parseBoxShadowValue)(
|
|
14300
|
+
let t = (0, Fh.parseBoxShadowValue)(tt(e));
|
|
14301
14301
|
for (let n of t)
|
|
14302
14302
|
if (!n.valid)
|
|
14303
14303
|
return false;
|
|
@@ -14305,15 +14305,15 @@ var wa = T((ao) => {
|
|
|
14305
14305
|
}
|
|
14306
14306
|
function kh(e) {
|
|
14307
14307
|
let t = 0;
|
|
14308
|
-
return e.split(dn).every((r) => (r =
|
|
14308
|
+
return e.split(dn).every((r) => (r = tt(r), r.startsWith("var(") ? true : (0, xh.parseColor)(r, { loose: true }) !== null ? (t++, true) : false)) ? t > 0 : false;
|
|
14309
14309
|
}
|
|
14310
14310
|
function Th(e) {
|
|
14311
14311
|
let t = 0;
|
|
14312
|
-
return e.split(ba).every((r) => (r =
|
|
14312
|
+
return e.split(ba).every((r) => (r = tt(r), r.startsWith("var(") ? true : va(r) || Fa(r) || ["element(", "image(", "cross-fade(", "image-set("].some((i) => r.startsWith(i)) ? (t++, true) : false)) ? t > 0 : false;
|
|
14313
14313
|
}
|
|
14314
14314
|
var Ah = /* @__PURE__ */ new Set(["linear-gradient", "radial-gradient", "repeating-linear-gradient", "repeating-radial-gradient", "conic-gradient"]);
|
|
14315
14315
|
function Fa(e) {
|
|
14316
|
-
e =
|
|
14316
|
+
e = tt(e);
|
|
14317
14317
|
for (let t of Ah)
|
|
14318
14318
|
if (e.startsWith(`${t}(`))
|
|
14319
14319
|
return true;
|
|
@@ -14322,11 +14322,11 @@ var wa = T((ao) => {
|
|
|
14322
14322
|
var Oh = /* @__PURE__ */ new Set(["center", "top", "right", "bottom", "left"]);
|
|
14323
14323
|
function Ph(e) {
|
|
14324
14324
|
let t = 0;
|
|
14325
|
-
return e.split(dn).every((r) => (r =
|
|
14325
|
+
return e.split(dn).every((r) => (r = tt(r), r.startsWith("var(") ? true : Oh.has(r) || xa(r) || ya(r) ? (t++, true) : false)) ? t > 0 : false;
|
|
14326
14326
|
}
|
|
14327
14327
|
function Bh(e) {
|
|
14328
14328
|
let t = 0;
|
|
14329
|
-
return e.split(ba).every((r) => (r =
|
|
14329
|
+
return e.split(ba).every((r) => (r = tt(r), r.startsWith("var(") ? true : r.includes(" ") && !/(['"])([^"']+)\1/g.test(r) || /^\d/g.test(r) ? false : (t++, true))) ? t > 0 : false;
|
|
14330
14330
|
}
|
|
14331
14331
|
var Ih = /* @__PURE__ */ new Set(["serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui", "ui-serif", "ui-sans-serif", "ui-monospace", "ui-rounded", "math", "emoji", "fangsong"]);
|
|
14332
14332
|
function Rh(e) {
|
|
@@ -14348,7 +14348,7 @@ var Oa = T((co) => {
|
|
|
14348
14348
|
for (var n in t)
|
|
14349
14349
|
Object.defineProperty(e, n, { enumerable: true, get: t[n] });
|
|
14350
14350
|
}
|
|
14351
|
-
Wh(co, { updateAllClasses: () => zh, asValue: () =>
|
|
14351
|
+
Wh(co, { updateAllClasses: () => zh, asValue: () => Dr, parseColorFormat: () => lo, asColor: () => ka, asLookupValue: () => Ta, coerceValue: () => Vh });
|
|
14352
14352
|
var qh = fo(ra()), Uh = fo(na()), Ea = no(), xe = wa(), Ca = fo(Xn());
|
|
14353
14353
|
function fo(e) {
|
|
14354
14354
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -14362,7 +14362,7 @@ var Oa = T((co) => {
|
|
|
14362
14362
|
}).processSync(e);
|
|
14363
14363
|
}
|
|
14364
14364
|
function Sa(e, t) {
|
|
14365
|
-
if (!
|
|
14365
|
+
if (!mr(e))
|
|
14366
14366
|
return;
|
|
14367
14367
|
let n = e.slice(1, -1);
|
|
14368
14368
|
if (t(n))
|
|
@@ -14372,17 +14372,17 @@ var Oa = T((co) => {
|
|
|
14372
14372
|
let r = t[e];
|
|
14373
14373
|
if (r !== void 0)
|
|
14374
14374
|
return (0, Ca.default)(r);
|
|
14375
|
-
if (
|
|
14375
|
+
if (mr(e)) {
|
|
14376
14376
|
let i = Sa(e, n);
|
|
14377
14377
|
return i === void 0 ? void 0 : (0, Ca.default)(i);
|
|
14378
14378
|
}
|
|
14379
14379
|
}
|
|
14380
|
-
function
|
|
14380
|
+
function Dr(e, t = {}, { validate: n = () => true } = {}) {
|
|
14381
14381
|
var r;
|
|
14382
14382
|
let i = (r = t.values) === null || r === void 0 ? void 0 : r[e];
|
|
14383
14383
|
return i !== void 0 ? i : t.supportsNegativeValues && e.startsWith("-") ? Gh(e.slice(1), t.values, n) : Sa(e, n);
|
|
14384
14384
|
}
|
|
14385
|
-
function
|
|
14385
|
+
function mr(e) {
|
|
14386
14386
|
return e.startsWith("[") && e.endsWith("]");
|
|
14387
14387
|
}
|
|
14388
14388
|
function jh(e) {
|
|
@@ -14405,32 +14405,32 @@ var Oa = T((co) => {
|
|
|
14405
14405
|
let [o, u] = jh(e);
|
|
14406
14406
|
if (u !== void 0) {
|
|
14407
14407
|
var s, a, l, f;
|
|
14408
|
-
let c = (f = (s = t.values) === null || s === void 0 ? void 0 : s[o]) !== null && f !== void 0 ? f :
|
|
14409
|
-
return c === void 0 ? void 0 : (c = lo(c),
|
|
14408
|
+
let c = (f = (s = t.values) === null || s === void 0 ? void 0 : s[o]) !== null && f !== void 0 ? f : mr(o) ? o.slice(1, -1) : void 0;
|
|
14409
|
+
return c === void 0 ? void 0 : (c = lo(c), mr(u) ? (0, Ea.withAlphaValue)(c, u.slice(1, -1)) : ((a = n.theme) === null || a === void 0 || (l = a.opacity) === null || l === void 0 ? void 0 : l[u]) === void 0 ? void 0 : (0, Ea.withAlphaValue)(c, n.theme.opacity[u]));
|
|
14410
14410
|
}
|
|
14411
|
-
return
|
|
14411
|
+
return Dr(e, t, { validate: xe.color });
|
|
14412
14412
|
}
|
|
14413
14413
|
function Ta(e, t = {}) {
|
|
14414
14414
|
var n;
|
|
14415
14415
|
return (n = t.values) === null || n === void 0 ? void 0 : n[e];
|
|
14416
14416
|
}
|
|
14417
14417
|
function Te(e) {
|
|
14418
|
-
return (t, n) =>
|
|
14418
|
+
return (t, n) => Dr(t, n, { validate: e });
|
|
14419
14419
|
}
|
|
14420
|
-
var Aa = { any:
|
|
14420
|
+
var Aa = { any: Dr, color: ka, url: Te(xe.url), image: Te(xe.image), length: Te(xe.length), percentage: Te(xe.percentage), position: Te(xe.position), lookup: Ta, "generic-name": Te(xe.genericName), "family-name": Te(xe.familyName), number: Te(xe.number), "line-width": Te(xe.lineWidth), "absolute-size": Te(xe.absoluteSize), "relative-size": Te(xe.relativeSize), shadow: Te(xe.shadow) }, _a2 = Object.keys(Aa);
|
|
14421
14421
|
function Hh(e, t) {
|
|
14422
14422
|
let n = e.indexOf(t);
|
|
14423
14423
|
return n === -1 ? [void 0, e] : [e.slice(0, n), e.slice(n + 1)];
|
|
14424
14424
|
}
|
|
14425
14425
|
function Vh(e, t, n, r) {
|
|
14426
|
-
if (
|
|
14426
|
+
if (mr(t)) {
|
|
14427
14427
|
let i = t.slice(1, -1), [o, u] = Hh(i, ":");
|
|
14428
14428
|
if (!/^[\w-_]+$/g.test(o))
|
|
14429
14429
|
u = i;
|
|
14430
14430
|
else if (o !== void 0 && !_a2.includes(o))
|
|
14431
14431
|
return [];
|
|
14432
14432
|
if (u.length > 0 && _a2.includes(o))
|
|
14433
|
-
return [
|
|
14433
|
+
return [Dr(`[${u}]`, n), o];
|
|
14434
14434
|
}
|
|
14435
14435
|
for (let i of [].concat(e)) {
|
|
14436
14436
|
let o = Aa[i](t, n, { tailwindConfig: r });
|
|
@@ -14459,15 +14459,15 @@ var Ma = T((mo) => {
|
|
|
14459
14459
|
function Et(e) {
|
|
14460
14460
|
return typeof e == "function";
|
|
14461
14461
|
}
|
|
14462
|
-
function
|
|
14462
|
+
function gr(e) {
|
|
14463
14463
|
return typeof e == "object" && e !== null;
|
|
14464
14464
|
}
|
|
14465
|
-
function
|
|
14465
|
+
function br(e, ...t) {
|
|
14466
14466
|
let n = t.pop();
|
|
14467
14467
|
for (let r of t)
|
|
14468
14468
|
for (let i in r) {
|
|
14469
14469
|
let o = n(e[i], r[i]);
|
|
14470
|
-
o === void 0 ?
|
|
14470
|
+
o === void 0 ? gr(e[i]) && gr(r[i]) ? e[i] = br(e[i], r[i], n) : e[i] = r[i] : e[i] = o;
|
|
14471
14471
|
}
|
|
14472
14472
|
return e;
|
|
14473
14473
|
}
|
|
@@ -14483,21 +14483,21 @@ var Ma = T((mo) => {
|
|
|
14483
14483
|
return Et(e) ? e(...t) : e;
|
|
14484
14484
|
}
|
|
14485
14485
|
function sm(e) {
|
|
14486
|
-
return e.reduce((t, { extend: n }) =>
|
|
14486
|
+
return e.reduce((t, { extend: n }) => br(t, n, (r, i) => r === void 0 ? [i] : Array.isArray(r) ? [i, ...r] : [i, r]), {});
|
|
14487
14487
|
}
|
|
14488
14488
|
function am(e) {
|
|
14489
14489
|
return { ...e.reduce((t, n) => (0, Ra.defaults)(t, n), {}), extend: sm(e) };
|
|
14490
14490
|
}
|
|
14491
14491
|
function Ia(e, t) {
|
|
14492
|
-
if (Array.isArray(e) &&
|
|
14492
|
+
if (Array.isArray(e) && gr(e[0]))
|
|
14493
14493
|
return e.concat(t);
|
|
14494
|
-
if (Array.isArray(t) &&
|
|
14494
|
+
if (Array.isArray(t) && gr(t[0]) && gr(e))
|
|
14495
14495
|
return [e, ...t];
|
|
14496
14496
|
if (Array.isArray(t))
|
|
14497
14497
|
return t;
|
|
14498
14498
|
}
|
|
14499
14499
|
function lm({ extend: e, ...t }) {
|
|
14500
|
-
return
|
|
14500
|
+
return br(t, e, (n, r) => !Et(n) && !r.some(Et) ? br({}, n, ...r, Ia) : (i, o) => br({}, ...[n, ...r].map((u) => um(u, i, o)), Ia));
|
|
14501
14501
|
}
|
|
14502
14502
|
function* fm(e) {
|
|
14503
14503
|
let t = (0, Ba.toPath)(e);
|
|
@@ -14570,13 +14570,13 @@ var za = T((Do) => {
|
|
|
14570
14570
|
function Ua(e) {
|
|
14571
14571
|
return e && e.__esModule ? e : { default: e };
|
|
14572
14572
|
}
|
|
14573
|
-
var Wa = { optimizeUniversalDefaults: false },
|
|
14573
|
+
var Wa = { optimizeUniversalDefaults: false }, vr = { future: ["hoverOnlyWhenSupported", "respectDefaultRingColorOpacity"], experimental: ["optimizeUniversalDefaults", "matchVariant"] };
|
|
14574
14574
|
function vm(e, t) {
|
|
14575
|
-
if (
|
|
14575
|
+
if (vr.future.includes(t)) {
|
|
14576
14576
|
var n, r, i;
|
|
14577
14577
|
return e.future === "all" || ((i = (r = e == null || (n = e.future) === null || n === void 0 ? void 0 : n[t]) !== null && r !== void 0 ? r : Wa[t]) !== null && i !== void 0 ? i : false);
|
|
14578
14578
|
}
|
|
14579
|
-
if (
|
|
14579
|
+
if (vr.experimental.includes(t)) {
|
|
14580
14580
|
var o, u, s;
|
|
14581
14581
|
return e.experimental === "all" || ((s = (u = e == null || (o = e.experimental) === null || o === void 0 ? void 0 : o[t]) !== null && u !== void 0 ? u : Wa[t]) !== null && s !== void 0 ? s : false);
|
|
14582
14582
|
}
|
|
@@ -14584,9 +14584,9 @@ var za = T((Do) => {
|
|
|
14584
14584
|
}
|
|
14585
14585
|
function qa(e) {
|
|
14586
14586
|
if (e.experimental === "all")
|
|
14587
|
-
return
|
|
14587
|
+
return vr.experimental;
|
|
14588
14588
|
var t;
|
|
14589
|
-
return Object.keys((t = e == null ? void 0 : e.experimental) !== null && t !== void 0 ? t : {}).filter((n) =>
|
|
14589
|
+
return Object.keys((t = e == null ? void 0 : e.experimental) !== null && t !== void 0 ? t : {}).filter((n) => vr.experimental.includes(n) && e.experimental[n]);
|
|
14590
14590
|
}
|
|
14591
14591
|
function ym(e) {
|
|
14592
14592
|
if (process.env.JEST_WORKER_ID === void 0 && qa(e).length > 0) {
|
|
@@ -14594,7 +14594,7 @@ var za = T((Do) => {
|
|
|
14594
14594
|
bm.default.warn("experimental-flags-enabled", [`You have enabled experimental features: ${t}`, "Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."]);
|
|
14595
14595
|
}
|
|
14596
14596
|
}
|
|
14597
|
-
var xm =
|
|
14597
|
+
var xm = vr;
|
|
14598
14598
|
});
|
|
14599
14599
|
var ja = T((go) => {
|
|
14600
14600
|
"use strict";
|
|
@@ -14631,24 +14631,24 @@ var gt;
|
|
|
14631
14631
|
function Bl(e) {
|
|
14632
14632
|
gt = e;
|
|
14633
14633
|
}
|
|
14634
|
-
var
|
|
14634
|
+
var At = null;
|
|
14635
14635
|
async function qe() {
|
|
14636
|
-
return gt || (
|
|
14636
|
+
return gt || (At ? (await At, gt) : (At = Promise.resolve().then(() => (Ho(), jo)).then((e) => e.getYogaModule()).then((e) => gt = e), await At, At = null, gt));
|
|
14637
14637
|
}
|
|
14638
|
-
var
|
|
14639
|
-
var Il =
|
|
14638
|
+
var Ot = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
14639
|
+
var Il = Ot((e, t) => {
|
|
14640
14640
|
t.exports = ["em", "ex", "ch", "rem", "vh", "vw", "vmin", "vmax", "px", "mm", "cm", "in", "pt", "pc", "mozmm"];
|
|
14641
14641
|
});
|
|
14642
|
-
var Rl =
|
|
14642
|
+
var Rl = Ot((e, t) => {
|
|
14643
14643
|
t.exports = ["deg", "grad", "rad", "turn"];
|
|
14644
14644
|
});
|
|
14645
|
-
var Ll =
|
|
14645
|
+
var Ll = Ot((e, t) => {
|
|
14646
14646
|
t.exports = ["dpi", "dpcm", "dppx"];
|
|
14647
14647
|
});
|
|
14648
|
-
var Ml =
|
|
14648
|
+
var Ml = Ot((e, t) => {
|
|
14649
14649
|
t.exports = ["Hz", "kHz"];
|
|
14650
14650
|
});
|
|
14651
|
-
var Nl =
|
|
14651
|
+
var Nl = Ot((e, t) => {
|
|
14652
14652
|
t.exports = ["s", "ms"];
|
|
14653
14653
|
});
|
|
14654
14654
|
var $l = Il();
|
|
@@ -14680,7 +14680,7 @@ Fn.prototype.valueOf = function() {
|
|
|
14680
14680
|
Fn.prototype.toString = function() {
|
|
14681
14681
|
return this.value + (this.unit || "");
|
|
14682
14682
|
};
|
|
14683
|
-
function
|
|
14683
|
+
function Qe(e) {
|
|
14684
14684
|
return new Fn(e);
|
|
14685
14685
|
}
|
|
14686
14686
|
function Wl(e) {
|
|
@@ -14725,7 +14725,7 @@ function Zo(e) {
|
|
|
14725
14725
|
}
|
|
14726
14726
|
return n;
|
|
14727
14727
|
}
|
|
14728
|
-
function
|
|
14728
|
+
function q(e, t, n, r, i = false) {
|
|
14729
14729
|
if (typeof e == "number")
|
|
14730
14730
|
return e;
|
|
14731
14731
|
try {
|
|
@@ -14733,7 +14733,7 @@ function U(e, t, n, r, i = false) {
|
|
|
14733
14733
|
return;
|
|
14734
14734
|
if (e === String(+e))
|
|
14735
14735
|
return +e;
|
|
14736
|
-
let o = new
|
|
14736
|
+
let o = new Qe(e);
|
|
14737
14737
|
if (o.type === "length")
|
|
14738
14738
|
switch (o.unit) {
|
|
14739
14739
|
case "em":
|
|
@@ -14761,7 +14761,7 @@ function U(e, t, n, r, i = false) {
|
|
|
14761
14761
|
} catch {
|
|
14762
14762
|
}
|
|
14763
14763
|
}
|
|
14764
|
-
function
|
|
14764
|
+
function Pt(e, t) {
|
|
14765
14765
|
return [e[0] * t[0] + e[2] * t[1], e[1] * t[0] + e[3] * t[1], e[0] * t[2] + e[2] * t[3], e[1] * t[2] + e[3] * t[3], e[0] * t[4] + e[2] * t[5] + e[4], e[1] * t[4] + e[3] * t[5] + e[5]];
|
|
14766
14766
|
}
|
|
14767
14767
|
function ve(e, t, n, r) {
|
|
@@ -15037,7 +15037,7 @@ function Tn(e) {
|
|
|
15037
15037
|
}
|
|
15038
15038
|
function nf(e, t) {
|
|
15039
15039
|
try {
|
|
15040
|
-
let n = new
|
|
15040
|
+
let n = new Qe(e);
|
|
15041
15041
|
switch (n.unit) {
|
|
15042
15042
|
case "px":
|
|
15043
15043
|
return { absolute: n.value };
|
|
@@ -15083,7 +15083,7 @@ function On(e, t) {
|
|
|
15083
15083
|
}
|
|
15084
15084
|
return n.length === 1 ? An(n[0], t, true) : n.length === 2 ? ((n[0] === "top" || n[0] === "bottom" || n[1] === "left" || n[1] === "right") && n.reverse(), { ...An(n[0], t, true), ...An(n[1], t, false) }) : {};
|
|
15085
15085
|
}
|
|
15086
|
-
function
|
|
15086
|
+
function Bt(e, t) {
|
|
15087
15087
|
let n = (0, import_css_to_react_native2.getPropertyName)(`mask-${t}`);
|
|
15088
15088
|
return e[n] || e[`WebkitM${n.substring(1)}`];
|
|
15089
15089
|
}
|
|
@@ -15094,7 +15094,7 @@ function uf(e) {
|
|
|
15094
15094
|
return t.push(e.slice(n).trim()), t;
|
|
15095
15095
|
}
|
|
15096
15096
|
function hu(e) {
|
|
15097
|
-
let t = e.maskImage || e.WebkitMaskImage, n = { position:
|
|
15097
|
+
let t = e.maskImage || e.WebkitMaskImage, n = { position: Bt(e, "position") || "0% 0%", size: Bt(e, "size") || "100% 100%", repeat: Bt(e, "repeat") || "repeat", origin: Bt(e, "origin") || "border-box", clip: Bt(e, "origin") || "border-box" };
|
|
15098
15098
|
return uf(t).filter((i) => i && i !== "none").reverse().map((i) => ({ image: i, ...n }));
|
|
15099
15099
|
}
|
|
15100
15100
|
var cf = /* @__PURE__ */ new Set(["flex", "flexGrow", "flexShrink", "flexBasis", "fontWeight", "lineHeight", "opacity", "scale", "scaleX", "scaleY"]);
|
|
@@ -15102,12 +15102,12 @@ var df = /* @__PURE__ */ new Set(["lineHeight"]);
|
|
|
15102
15102
|
function pf(e, t, n, r) {
|
|
15103
15103
|
return e === "textDecoration" && !n.includes(t.textDecorationColor) && (t.textDecorationColor = r), t;
|
|
15104
15104
|
}
|
|
15105
|
-
function
|
|
15105
|
+
function It(e, t) {
|
|
15106
15106
|
return typeof t == "number" ? cf.has(e) ? df.has(e) ? t : String(t) : t + "px" : t;
|
|
15107
15107
|
}
|
|
15108
15108
|
function hf(e, t, n) {
|
|
15109
15109
|
if (e === "lineHeight")
|
|
15110
|
-
return { lineHeight:
|
|
15110
|
+
return { lineHeight: It(e, t) };
|
|
15111
15111
|
if (e === "fontFamily")
|
|
15112
15112
|
return { fontFamily: t.split(",").map((r) => r.trim().replace(/(^['"])|(['"]$)/g, "").toLocaleLowerCase()) };
|
|
15113
15113
|
if (e === "borderRadius") {
|
|
@@ -15115,13 +15115,13 @@ function hf(e, t, n) {
|
|
|
15115
15115
|
return;
|
|
15116
15116
|
let [r, i] = t.split("/"), o = (0, import_css_to_react_native.getStylesForProperty)(e, r, true), u = (0, import_css_to_react_native.getStylesForProperty)(e, i, true);
|
|
15117
15117
|
for (let s in o)
|
|
15118
|
-
u[s] =
|
|
15118
|
+
u[s] = It(e, o[s]) + " " + It(e, u[s]);
|
|
15119
15119
|
return u;
|
|
15120
15120
|
}
|
|
15121
15121
|
if (/^border(Top|Right|Bottom|Left)?$/.test(e)) {
|
|
15122
15122
|
let r = (0, import_css_to_react_native.getStylesForProperty)("border", t, true);
|
|
15123
15123
|
r.borderWidth === 1 && !String(t).includes("1px") && (r.borderWidth = 3), r.borderColor === "black" && !String(t).includes("black") && (r.borderColor = n);
|
|
15124
|
-
let i = { Width:
|
|
15124
|
+
let i = { Width: It(e + "Width", r.borderWidth), Style: ve(r.borderStyle, { solid: "solid", dashed: "dashed" }, "solid", e + "Style"), Color: r.borderColor }, o = {};
|
|
15125
15125
|
for (let u of e === "border" ? ["Top", "Right", "Bottom", "Left"] : [e.slice(6)])
|
|
15126
15126
|
for (let s in i)
|
|
15127
15127
|
o["border" + u + s] = i[s];
|
|
@@ -15192,7 +15192,7 @@ function qr(e, t) {
|
|
|
15192
15192
|
continue;
|
|
15193
15193
|
let u = (0, import_css_to_react_native.getPropertyName)(o), s = vf(e[o], i);
|
|
15194
15194
|
try {
|
|
15195
|
-
let a = hf(u, s, i) || pf(u, (0, import_css_to_react_native.getStylesForProperty)(u,
|
|
15195
|
+
let a = hf(u, s, i) || pf(u, (0, import_css_to_react_native.getStylesForProperty)(u, It(u, s), true), s, i);
|
|
15196
15196
|
Object.assign(n, a);
|
|
15197
15197
|
} catch (a) {
|
|
15198
15198
|
throw new Error(a.message + (a.message.includes(s) ? `
|
|
@@ -15214,10 +15214,10 @@ function qr(e, t) {
|
|
|
15214
15214
|
for (let i in n) {
|
|
15215
15215
|
let o = n[i];
|
|
15216
15216
|
if (i === "lineHeight")
|
|
15217
|
-
typeof o == "string" && (o = n[i] =
|
|
15217
|
+
typeof o == "string" && (o = n[i] = q(o, r, r, t, true) / r);
|
|
15218
15218
|
else {
|
|
15219
15219
|
if (typeof o == "string") {
|
|
15220
|
-
let u =
|
|
15220
|
+
let u = q(o, r, r, t);
|
|
15221
15221
|
typeof u < "u" && (n[i] = u), o = n[i];
|
|
15222
15222
|
}
|
|
15223
15223
|
if (typeof o == "string" || typeof o == "object") {
|
|
@@ -15228,7 +15228,7 @@ function qr(e, t) {
|
|
|
15228
15228
|
if (i === "opacity" && (o = n[i] = o * t.opacity), i === "transform") {
|
|
15229
15229
|
let u = o;
|
|
15230
15230
|
for (let s of u) {
|
|
15231
|
-
let a = Object.keys(s)[0], l = s[a], f = typeof l == "string" ?
|
|
15231
|
+
let a = Object.keys(s)[0], l = s[a], f = typeof l == "string" ? q(l, r, r, t) ?? l : l;
|
|
15232
15232
|
s[a] = f;
|
|
15233
15233
|
}
|
|
15234
15234
|
}
|
|
@@ -15239,7 +15239,7 @@ function Df(e, t) {
|
|
|
15239
15239
|
if (typeof e == "number")
|
|
15240
15240
|
return e;
|
|
15241
15241
|
try {
|
|
15242
|
-
let n = new
|
|
15242
|
+
let n = new Qe(e);
|
|
15243
15243
|
switch (n.unit) {
|
|
15244
15244
|
case "em":
|
|
15245
15245
|
return n.value * t;
|
|
@@ -15280,7 +15280,7 @@ async function Pn(e, t, n, r, i) {
|
|
|
15280
15280
|
}
|
|
15281
15281
|
if (t === "svg") {
|
|
15282
15282
|
let s = i.viewBox || i.viewbox, a = vt(s), l = a ? a[3] / a[2] : null, { width: f, height: c } = i;
|
|
15283
|
-
typeof f > "u" && c ? l == null ? f = 0 : typeof c == "string" && c.endsWith("%") ? f = parseInt(c) / l + "%" : (c =
|
|
15283
|
+
typeof f > "u" && c ? l == null ? f = 0 : typeof c == "string" && c.endsWith("%") ? f = parseInt(c) / l + "%" : (c = q(c, n.fontSize, 1, n), f = c / l) : typeof c > "u" && f ? l == null ? f = 0 : typeof f == "string" && f.endsWith("%") ? c = parseInt(f) * l + "%" : (f = q(f, n.fontSize, 1, n), c = f * l) : (typeof f < "u" && (f = q(f, n.fontSize, 1, n) || f), typeof c < "u" && (c = q(c, n.fontSize, 1, n) || c), f || (f = a == null ? void 0 : a[2]), c || (c = a == null ? void 0 : a[3])), !u.width && f && (u.width = f), !u.height && c && (u.height = c);
|
|
15284
15284
|
}
|
|
15285
15285
|
return e.setDisplay(ve(u.display, { flex: o.DISPLAY_FLEX, block: o.DISPLAY_FLEX, none: o.DISPLAY_NONE, "-webkit-box": o.DISPLAY_FLEX }, o.DISPLAY_FLEX, "display")), e.setAlignContent(ve(u.alignContent, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, "space-between": o.ALIGN_SPACE_BETWEEN, "space-around": o.ALIGN_SPACE_AROUND, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_AUTO, "alignContent")), e.setAlignItems(ve(u.alignItems, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_STRETCH, "alignItems")), e.setAlignSelf(ve(u.alignSelf, { stretch: o.ALIGN_STRETCH, center: o.ALIGN_CENTER, "flex-start": o.ALIGN_FLEX_START, "flex-end": o.ALIGN_FLEX_END, baseline: o.ALIGN_BASELINE, normal: o.ALIGN_AUTO }, o.ALIGN_AUTO, "alignSelf")), e.setJustifyContent(ve(u.justifyContent, { center: o.JUSTIFY_CENTER, "flex-start": o.JUSTIFY_FLEX_START, "flex-end": o.JUSTIFY_FLEX_END, "space-between": o.JUSTIFY_SPACE_BETWEEN, "space-around": o.JUSTIFY_SPACE_AROUND }, o.JUSTIFY_FLEX_START, "justifyContent")), e.setFlexDirection(ve(u.flexDirection, { row: o.FLEX_DIRECTION_ROW, column: o.FLEX_DIRECTION_COLUMN, "row-reverse": o.FLEX_DIRECTION_ROW_REVERSE, "column-reverse": o.FLEX_DIRECTION_COLUMN_REVERSE }, o.FLEX_DIRECTION_ROW, "flexDirection")), e.setFlexWrap(ve(u.flexWrap, { wrap: o.WRAP_WRAP, nowrap: o.WRAP_NO_WRAP, "wrap-reverse": o.WRAP_WRAP_REVERSE }, o.WRAP_NO_WRAP, "flexWrap")), typeof u.gap < "u" && e.setGap(o.GUTTER_ALL, u.gap), typeof u.rowGap < "u" && e.setGap(o.GUTTER_ROW, u.rowGap), typeof u.columnGap < "u" && e.setGap(o.GUTTER_COLUMN, u.columnGap), typeof u.flexBasis < "u" && e.setFlexBasis(u.flexBasis), e.setFlexGrow(typeof u.flexGrow > "u" ? 0 : u.flexGrow), e.setFlexShrink(typeof u.flexShrink > "u" ? 0 : u.flexShrink), typeof u.maxHeight < "u" && e.setMaxHeight(u.maxHeight), typeof u.maxWidth < "u" && e.setMaxWidth(u.maxWidth), typeof u.minHeight < "u" && e.setMinHeight(u.minHeight), typeof u.minWidth < "u" && e.setMinWidth(u.minWidth), e.setOverflow(ve(u.overflow, { visible: o.OVERFLOW_VISIBLE, hidden: o.OVERFLOW_HIDDEN }, o.OVERFLOW_VISIBLE, "overflow")), e.setMargin(o.EDGE_TOP, u.marginTop || 0), e.setMargin(o.EDGE_BOTTOM, u.marginBottom || 0), e.setMargin(o.EDGE_LEFT, u.marginLeft || 0), e.setMargin(o.EDGE_RIGHT, u.marginRight || 0), e.setBorder(o.EDGE_TOP, u.borderTopWidth || 0), e.setBorder(o.EDGE_BOTTOM, u.borderBottomWidth || 0), e.setBorder(o.EDGE_LEFT, u.borderLeftWidth || 0), e.setBorder(o.EDGE_RIGHT, u.borderRightWidth || 0), e.setPadding(o.EDGE_TOP, u.paddingTop || 0), e.setPadding(o.EDGE_BOTTOM, u.paddingBottom || 0), e.setPadding(o.EDGE_LEFT, u.paddingLeft || 0), e.setPadding(o.EDGE_RIGHT, u.paddingRight || 0), e.setPositionType(ve(u.position, { absolute: o.POSITION_TYPE_ABSOLUTE, relative: o.POSITION_TYPE_RELATIVE }, o.POSITION_TYPE_RELATIVE, "position")), typeof u.top < "u" && e.setPosition(o.EDGE_TOP, u.top), typeof u.bottom < "u" && e.setPosition(o.EDGE_BOTTOM, u.bottom), typeof u.left < "u" && e.setPosition(o.EDGE_LEFT, u.left), typeof u.right < "u" && e.setPosition(o.EDGE_RIGHT, u.right), typeof u.height < "u" ? e.setHeight(u.height) : e.setHeightAuto(), typeof u.width < "u" ? e.setWidth(u.width) : e.setWidthAuto(), [u, Tn(u)];
|
|
15286
15286
|
}
|
|
@@ -15325,11 +15325,11 @@ function yf(e, t, n) {
|
|
|
15325
15325
|
a[1] = Math.tan(s * Math.PI / 180);
|
|
15326
15326
|
break;
|
|
15327
15327
|
}
|
|
15328
|
-
r =
|
|
15328
|
+
r = Pt(a, r);
|
|
15329
15329
|
}
|
|
15330
15330
|
e.splice(0, e.length), e.push(...r), e.__resolved = true;
|
|
15331
15331
|
}
|
|
15332
|
-
function
|
|
15332
|
+
function Rt({ left: e, top: t, width: n, height: r }, i, o, u) {
|
|
15333
15333
|
let s;
|
|
15334
15334
|
i.__resolved || yf(i, n, r);
|
|
15335
15335
|
let a = i;
|
|
@@ -15337,13 +15337,13 @@ function Mt({ left: e, top: t, width: n, height: r }, i, o, u) {
|
|
|
15337
15337
|
s = a;
|
|
15338
15338
|
else {
|
|
15339
15339
|
let l = (u == null ? void 0 : u.xAbsolute) ?? ((u == null ? void 0 : u.xRelative) ?? 50) * n / 100, f = (u == null ? void 0 : u.yAbsolute) ?? ((u == null ? void 0 : u.yRelative) ?? 50) * r / 100, c = e + l, p = t + f;
|
|
15340
|
-
s =
|
|
15340
|
+
s = Pt([1, 0, 0, 1, c, p], Pt(a, [1, 0, 0, 1, -c, -p])), a.__parent && (s = Pt(a.__parent, s)), a.splice(0, 6, ...s);
|
|
15341
15341
|
}
|
|
15342
15342
|
return `matrix(${s.map((l) => l.toFixed(2)).join(",")})`;
|
|
15343
15343
|
}
|
|
15344
15344
|
function xu({ left: e, top: t, width: n, height: r, isInheritingTransform: i }, o) {
|
|
15345
15345
|
let u = "", s = 1;
|
|
15346
|
-
return o.transform && (u =
|
|
15346
|
+
return o.transform && (u = Rt({ left: e, top: t, width: n, height: r }, o.transform, i, o.transformOrigin)), o.opacity !== void 0 && (s = +o.opacity), { matrix: u, opacity: s };
|
|
15347
15347
|
}
|
|
15348
15348
|
function Bn({ id: e, content: t, filter: n, left: r, top: i, width: o, height: u, matrix: s, opacity: a, image: l, clipPathId: f, debug: c, shape: p, decorationShape: h }, d) {
|
|
15349
15349
|
let m = "";
|
|
@@ -15385,18 +15385,18 @@ function wu({ width: e, height: t, shape: n, opacity: r, id: i }, o) {
|
|
|
15385
15385
|
return [u, s];
|
|
15386
15386
|
}
|
|
15387
15387
|
function In({ width: e, left: t, top: n, ascender: r, clipPathId: i }, o) {
|
|
15388
|
-
let { textDecorationColor: u, textDecorationStyle: s, textDecorationLine: a, fontSize: l } = o;
|
|
15388
|
+
let { textDecorationColor: u, textDecorationStyle: s, textDecorationLine: a, fontSize: l, color: f } = o;
|
|
15389
15389
|
if (!a || a === "none")
|
|
15390
15390
|
return "";
|
|
15391
|
-
let
|
|
15392
|
-
return C("line", { x1: t, y1:
|
|
15391
|
+
let c = Math.max(1, l * 0.1), p = a === "line-through" ? n + r * 0.7 : a === "underline" ? n + r * 1.1 : n, h = s === "dashed" ? `${c * 1.2} ${c * 2}` : s === "dotted" ? `0 ${c * 2}` : void 0;
|
|
15392
|
+
return C("line", { x1: t, y1: p, x2: t + e, y2: p, stroke: u || f, "stroke-width": c, "stroke-dasharray": h, "stroke-linecap": s === "dotted" ? "round" : "square", "clip-path": i ? `url(#${i})` : void 0 });
|
|
15393
15393
|
}
|
|
15394
15394
|
function Rn(e) {
|
|
15395
15395
|
return e = e.replace("U+", "0x"), String.fromCodePoint(Number(e));
|
|
15396
15396
|
}
|
|
15397
|
-
var
|
|
15397
|
+
var Lt = Rn("U+0020");
|
|
15398
15398
|
var Ln = Rn("U+0009");
|
|
15399
|
-
var
|
|
15399
|
+
var Mt = Rn("U+2026");
|
|
15400
15400
|
var Ff = /* @__PURE__ */ new Set([Ln]);
|
|
15401
15401
|
function wf(e) {
|
|
15402
15402
|
return Ff.has(e);
|
|
@@ -15404,169 +15404,169 @@ function wf(e) {
|
|
|
15404
15404
|
async function* Mn(e, t) {
|
|
15405
15405
|
let n = await qe(), { parentStyle: r, inheritedStyle: i, parent: o, font: u, id: s, isInheritingTransform: a, debug: l, embedFont: f, graphemeImages: c, locale: p, canLoadAdditionalAssets: h } = t, { textAlign: d, whiteSpace: m, wordBreak: v, lineHeight: g, textTransform: b, textWrap: x, fontSize: F, filter: y, tabSize: k = 8, _inheritedBackgroundClipTextPath: P } = r;
|
|
15406
15406
|
e = Ef(e, b, p);
|
|
15407
|
-
let { content: B, shouldCollapseTabsAndSpaces:
|
|
15408
|
-
o.insertChild(
|
|
15409
|
-
let
|
|
15410
|
-
yield
|
|
15407
|
+
let { content: B, shouldCollapseTabsAndSpaces: j, allowSoftWrap: oe } = Sf(e, m), { words: ue, requiredBreaks: se, allowBreakWord: N } = _f(B, v), [L, V] = Cf(r, oe), de = kf(n, d);
|
|
15408
|
+
o.insertChild(de, o.getChildCount()), nu(r.flexShrink) && o.setFlexShrink(1);
|
|
15409
|
+
let Y = u.getEngine(F, g, r, p), ee = h ? we(B, "grapheme").filter((I) => !wf(I) && !Y.has(I)) : [];
|
|
15410
|
+
yield ee.map((I) => ({ word: I, locale: p })), ee.length && (Y = u.getEngine(F, g, r, p));
|
|
15411
15411
|
function le(I) {
|
|
15412
15412
|
return !!(c && c[I]);
|
|
15413
15413
|
}
|
|
15414
|
-
let he = Tf(
|
|
15414
|
+
let he = Tf(Y, r);
|
|
15415
15415
|
function A(I) {
|
|
15416
|
-
let
|
|
15417
|
-
for (let
|
|
15418
|
-
le(
|
|
15419
|
-
return
|
|
15416
|
+
let $ = 0;
|
|
15417
|
+
for (let X of I)
|
|
15418
|
+
le(X) ? $ += F : $ += he(X);
|
|
15419
|
+
return $;
|
|
15420
15420
|
}
|
|
15421
15421
|
function O(I) {
|
|
15422
15422
|
return A(we(I, "grapheme"));
|
|
15423
15423
|
}
|
|
15424
|
-
let M = Lr(k) ?
|
|
15424
|
+
let M = Lr(k) ? q(k, F, 1, r) : he(Lt) * k, R = (I, $) => {
|
|
15425
15425
|
if (I.length === 0)
|
|
15426
15426
|
return { originWidth: 0, endingSpacesWidth: 0, text: I };
|
|
15427
|
-
let { index:
|
|
15428
|
-
if (
|
|
15429
|
-
|
|
15430
|
-
let
|
|
15431
|
-
|
|
15427
|
+
let { index: X, tabCount: G } = Af(I), ie = 0, H = "";
|
|
15428
|
+
if (G > 0) {
|
|
15429
|
+
H = I.slice(0, X);
|
|
15430
|
+
let fe = I.slice(X + G), te = O(H), Ie = te + $;
|
|
15431
|
+
ie = (M === 0 ? te : (Math.floor(Ie / M) + G) * M) + O(fe);
|
|
15432
15432
|
} else
|
|
15433
|
-
|
|
15434
|
-
let me = I.trimEnd() === I ?
|
|
15435
|
-
return { originWidth:
|
|
15433
|
+
ie = O(I);
|
|
15434
|
+
let me = I.trimEnd() === I ? ie : O(I.trimEnd());
|
|
15435
|
+
return { originWidth: ie, endingSpacesWidth: ie - me, text: I };
|
|
15436
15436
|
}, ae = [], be = [], Be = [], dt = [], St = [];
|
|
15437
15437
|
function Dn(I) {
|
|
15438
|
-
let
|
|
15438
|
+
let $ = 0, X = 0, G = -1, ie = 0, H = 0, me = 0, fe = 0;
|
|
15439
15439
|
ae = [], Be = [0], dt = [], St = [];
|
|
15440
|
-
let
|
|
15441
|
-
for (;
|
|
15442
|
-
let
|
|
15443
|
-
|
|
15444
|
-
let
|
|
15445
|
-
|
|
15446
|
-
let De = ",.!?:-@)>]}%#".indexOf(
|
|
15447
|
-
if (
|
|
15448
|
-
let ge = we(
|
|
15449
|
-
ue.splice(
|
|
15440
|
+
let te = 0, Ie = 0;
|
|
15441
|
+
for (; te < ue.length && $ < L; ) {
|
|
15442
|
+
let W = ue[te], nt = se[te], Ee = 0, { originWidth: Ve, endingSpacesWidth: Or, text: Ye } = R(W, H);
|
|
15443
|
+
W = Ye, Ee = Ve;
|
|
15444
|
+
let Z = Or;
|
|
15445
|
+
nt && me === 0 && (me = Y.height(W));
|
|
15446
|
+
let De = ",.!?:-@)>]}%#".indexOf(W[0]) < 0, Xe = !H, Pr = te && De && H + Ee > I + Z && oe;
|
|
15447
|
+
if (N && Ee > I && (!H || Pr || nt)) {
|
|
15448
|
+
let ge = we(W, "grapheme");
|
|
15449
|
+
ue.splice(te, 1, ...ge), H > 0 && (ae.push(H - Ie), be.push(fe), $++, ie += me, H = 0, me = 0, fe = 0, Be.push(1), G = -1), Ie = Z;
|
|
15450
15450
|
continue;
|
|
15451
15451
|
}
|
|
15452
|
-
if (
|
|
15453
|
-
|
|
15452
|
+
if (nt || Pr)
|
|
15453
|
+
j && W === " " && (Ee = 0), ae.push(H - Ie), be.push(fe), $++, ie += me, H = Ee, me = Ee ? Y.height(W) : 0, fe = Ee ? Y.baseline(W) : 0, Be.push(1), G = -1, nt || (X = Math.max(X, I));
|
|
15454
15454
|
else {
|
|
15455
|
-
|
|
15456
|
-
let ge =
|
|
15457
|
-
ge > me && (me = ge,
|
|
15455
|
+
H += Ee;
|
|
15456
|
+
let ge = Y.height(W);
|
|
15457
|
+
ge > me && (me = ge, fe = Y.baseline(W)), Xe && Be[Be.length - 1]++;
|
|
15458
15458
|
}
|
|
15459
|
-
|
|
15460
|
-
let it =
|
|
15459
|
+
Xe && G++, X = Math.max(X, H);
|
|
15460
|
+
let it = H - Ee;
|
|
15461
15461
|
if (Ee === 0)
|
|
15462
|
-
St.push({ y:
|
|
15462
|
+
St.push({ y: ie, x: it, width: 0, line: $, lineIndex: G, isImage: false });
|
|
15463
15463
|
else {
|
|
15464
|
-
let ge = we(
|
|
15464
|
+
let ge = we(W, "word");
|
|
15465
15465
|
for (let Oe = 0; Oe < ge.length; Oe++) {
|
|
15466
|
-
let ot = ge[Oe], We = 0,
|
|
15467
|
-
le(ot) ? (We = F,
|
|
15466
|
+
let ot = ge[Oe], We = 0, Tt = false;
|
|
15467
|
+
le(ot) ? (We = F, Tt = true) : We = he(ot), dt.push(ot), St.push({ y: ie, x: it, width: We, line: $, lineIndex: G, isImage: Tt }), it += We;
|
|
15468
15468
|
}
|
|
15469
15469
|
}
|
|
15470
|
-
|
|
15470
|
+
te++, Ie = Z;
|
|
15471
15471
|
}
|
|
15472
|
-
return
|
|
15472
|
+
return H && ($ < L && (ie += me), $++, ae.push(H), be.push(fe)), { width: X, height: ie };
|
|
15473
15473
|
}
|
|
15474
|
-
let
|
|
15475
|
-
|
|
15476
|
-
let { width:
|
|
15474
|
+
let Cr = { width: 0, height: 0 };
|
|
15475
|
+
de.setMeasureFunc((I) => {
|
|
15476
|
+
let { width: $, height: X } = Dn(I);
|
|
15477
15477
|
if (x === "balance") {
|
|
15478
|
-
let
|
|
15479
|
-
for (;
|
|
15480
|
-
|
|
15481
|
-
let { height: me } = Dn(
|
|
15482
|
-
me >
|
|
15478
|
+
let G = $ / 2, ie = $, H = $;
|
|
15479
|
+
for (; G + 1 < ie; ) {
|
|
15480
|
+
H = (G + ie) / 2;
|
|
15481
|
+
let { height: me } = Dn(H);
|
|
15482
|
+
me > X ? G = H : ie = H;
|
|
15483
15483
|
}
|
|
15484
|
-
return Dn(
|
|
15484
|
+
return Dn(ie), Cr = { width: ie, height: X }, { width: ie, height: X };
|
|
15485
15485
|
}
|
|
15486
|
-
return
|
|
15486
|
+
return Cr = { width: $, height: X }, { width: $, height: X };
|
|
15487
15487
|
});
|
|
15488
|
-
let [Fl, wl] = yield, gn = "",
|
|
15488
|
+
let [Fl, wl] = yield, gn = "", _r = "", je = i._inheritedClipPathId, Mo = i._inheritedMaskId, { left: No, top: $o, width: bn, height: El } = de.getComputedLayout(), Sr = o.getComputedWidth() - o.getComputedPadding(n.EDGE_LEFT) - o.getComputedPadding(n.EDGE_RIGHT) - o.getComputedBorder(n.EDGE_LEFT) - o.getComputedBorder(n.EDGE_RIGHT), pt = Fl + No, ht = wl + $o, { matrix: $e, opacity: kr } = xu({ left: No, top: $o, width: bn, height: El, isInheritingTransform: a }, r), mt = "";
|
|
15489
15489
|
if (r.textShadowOffset) {
|
|
15490
|
-
let { textShadowColor: I, textShadowOffset:
|
|
15491
|
-
Array.isArray(r.textShadowOffset) || (I = [I],
|
|
15490
|
+
let { textShadowColor: I, textShadowOffset: $, textShadowRadius: X } = r;
|
|
15491
|
+
Array.isArray(r.textShadowOffset) || (I = [I], $ = [$], X = [X]), mt = Fu({ width: Cr.width, height: Cr.height, id: s }, { shadowColor: I, shadowOffset: $, shadowRadius: X }), mt = C("defs", {}, mt);
|
|
15492
15492
|
}
|
|
15493
|
-
let kt = "",
|
|
15493
|
+
let kt = "", Tr = "", Wo = "", Ar = -1, Dt = {}, He = null, qo = 0;
|
|
15494
15494
|
for (let I = 0; I < dt.length; I++) {
|
|
15495
|
-
let
|
|
15496
|
-
if (
|
|
15495
|
+
let $ = St[I], X = St[I + 1];
|
|
15496
|
+
if (!$)
|
|
15497
15497
|
continue;
|
|
15498
|
-
let
|
|
15499
|
-
if (
|
|
15498
|
+
let G = dt[I], ie = null, H = false, me = c ? c[G] : null, fe = $.y, te = $.x, Ie = $.width, W = $.line;
|
|
15499
|
+
if (W === Ar)
|
|
15500
15500
|
continue;
|
|
15501
|
-
let
|
|
15501
|
+
let nt = false;
|
|
15502
15502
|
if (ae.length > 1) {
|
|
15503
|
-
let
|
|
15503
|
+
let Z = bn - ae[W];
|
|
15504
15504
|
if (d === "right" || d === "end")
|
|
15505
|
-
|
|
15505
|
+
te += Z;
|
|
15506
15506
|
else if (d === "center")
|
|
15507
|
-
|
|
15508
|
-
else if (d === "justify" &&
|
|
15509
|
-
let De = Be[
|
|
15510
|
-
|
|
15507
|
+
te += Z / 2;
|
|
15508
|
+
else if (d === "justify" && W < ae.length - 1) {
|
|
15509
|
+
let De = Be[W], Xe = De > 1 ? Z / (De - 1) : 0;
|
|
15510
|
+
te += Xe * $.lineIndex, nt = true;
|
|
15511
15511
|
}
|
|
15512
15512
|
}
|
|
15513
|
-
|
|
15513
|
+
let Ee = be[W], Ve = Y.baseline(G), Or = Y.height(G), Ye = Ee - Ve;
|
|
15514
|
+
if (Dt[W] || (Dt[W] = [te, ht + fe + Ye, Ve, nt ? bn : ae[W]]), L !== 1 / 0) {
|
|
15514
15515
|
let it = function(ge, Oe) {
|
|
15515
|
-
let ot = we(Oe, "grapheme", p), We = "",
|
|
15516
|
+
let ot = we(Oe, "grapheme", p), We = "", Tt = 0;
|
|
15516
15517
|
for (let Uo of ot) {
|
|
15517
15518
|
let zo = ge + A([We + Uo]);
|
|
15518
|
-
if (We && zo + De >
|
|
15519
|
+
if (We && zo + De > Sr)
|
|
15519
15520
|
break;
|
|
15520
|
-
We += Uo,
|
|
15521
|
+
We += Uo, Tt = zo;
|
|
15521
15522
|
}
|
|
15522
|
-
return { subset: We, resolvedWidth:
|
|
15523
|
-
},
|
|
15524
|
-
De >
|
|
15525
|
-
let
|
|
15526
|
-
if (
|
|
15527
|
-
if (
|
|
15528
|
-
let { subset: ge, resolvedWidth: Oe } = it(
|
|
15529
|
-
|
|
15530
|
-
} else if (
|
|
15523
|
+
return { subset: We, resolvedWidth: Tt };
|
|
15524
|
+
}, Z = V, De = he(V);
|
|
15525
|
+
De > Sr && (Z = Mt, De = he(Z));
|
|
15526
|
+
let Xe = he(Lt), Pr = W < ae.length - 1;
|
|
15527
|
+
if (W + 1 === L && (Pr || ae[W] > Sr)) {
|
|
15528
|
+
if (te + Ie + De + Xe > Sr) {
|
|
15529
|
+
let { subset: ge, resolvedWidth: Oe } = it(te, G);
|
|
15530
|
+
G = ge + Z, Ar = W, Dt[W][2] = Oe, H = true;
|
|
15531
|
+
} else if (X && X.line !== W)
|
|
15531
15532
|
if (d === "center") {
|
|
15532
|
-
let { subset: ge, resolvedWidth: Oe } = it(
|
|
15533
|
-
|
|
15533
|
+
let { subset: ge, resolvedWidth: Oe } = it(te, G);
|
|
15534
|
+
G = ge + Z, Ar = W, Dt[W][2] = Oe, H = true;
|
|
15534
15535
|
} else {
|
|
15535
|
-
let ge = dt[I + 1], { subset: Oe, resolvedWidth: ot } = it(Ie +
|
|
15536
|
-
|
|
15536
|
+
let ge = dt[I + 1], { subset: Oe, resolvedWidth: ot } = it(Ie + te, ge);
|
|
15537
|
+
G = G + Oe + Z, Ar = W, Dt[W][2] = ot, H = true;
|
|
15537
15538
|
}
|
|
15538
15539
|
}
|
|
15539
15540
|
}
|
|
15540
|
-
let Ee = be[N], rt = V.baseline(q), At = V.height(q), nt = Ee - rt;
|
|
15541
15541
|
if (me)
|
|
15542
|
-
|
|
15542
|
+
fe += 0;
|
|
15543
15543
|
else if (f) {
|
|
15544
|
-
if (!
|
|
15545
|
-
He === null && (qo =
|
|
15544
|
+
if (!G.includes(Ln) && !eu.includes(G) && dt[I + 1] && X && !X.isImage && fe === X.y && !H) {
|
|
15545
|
+
He === null && (qo = te), He = He === null ? G : He + G;
|
|
15546
15546
|
continue;
|
|
15547
15547
|
}
|
|
15548
|
-
let
|
|
15549
|
-
|
|
15548
|
+
let Z = He === null ? G : He + G, De = He === null ? te : qo, Xe = $.width + te - De;
|
|
15549
|
+
ie = Y.getSVG(Z.replace(/(\t)+/g, ""), { ...r, left: pt + De, top: ht + fe + Ve + Ye, letterSpacing: r.letterSpacing }), He = null, l && (Wo += C("rect", { x: pt + De, y: ht + fe + Ye, width: Xe, height: Or, fill: "transparent", stroke: "#575eff", "stroke-width": 1, transform: $e || void 0, "clip-path": je ? `url(#${je})` : void 0 }) + C("line", { x1: pt + te, x2: pt + te + $.width, y1: ht + fe + Ye + Ve, y2: ht + fe + Ye + Ve, stroke: "#14c000", "stroke-width": 1, transform: $e || void 0, "clip-path": je ? `url(#${je})` : void 0 }));
|
|
15550
15550
|
} else
|
|
15551
|
-
|
|
15552
|
-
if (r.textDecorationLine
|
|
15553
|
-
let
|
|
15554
|
-
|
|
15551
|
+
fe += Ve + Ye;
|
|
15552
|
+
if (r.textDecorationLine) {
|
|
15553
|
+
let Z = Dt[W];
|
|
15554
|
+
Z && !Z[4] && (kt += In({ left: pt + Z[0], top: Z[1], width: Z[3], ascender: Z[2], clipPathId: je }, r), Z[4] = 1);
|
|
15555
15555
|
}
|
|
15556
|
-
if (
|
|
15557
|
-
|
|
15556
|
+
if (ie !== null)
|
|
15557
|
+
Tr += ie + " ";
|
|
15558
15558
|
else {
|
|
15559
|
-
let [
|
|
15560
|
-
gn +=
|
|
15559
|
+
let [Z, De] = Bn({ content: G, filter: mt, id: s, left: pt + te, top: ht + fe, width: Ie, height: Or, matrix: $e, opacity: kr, image: me, clipPathId: je, debug: l, shape: !!P, decorationShape: kt }, r);
|
|
15560
|
+
gn += Z, _r += De, kt = "";
|
|
15561
15561
|
}
|
|
15562
|
-
if (
|
|
15562
|
+
if (H)
|
|
15563
15563
|
break;
|
|
15564
15564
|
}
|
|
15565
|
-
if (
|
|
15566
|
-
let I = r.color !== "transparent" &&
|
|
15567
|
-
P && (
|
|
15565
|
+
if (Tr) {
|
|
15566
|
+
let I = r.color !== "transparent" && kr !== 0 ? C("path", { fill: r.color, d: Tr, transform: $e || void 0, opacity: kr !== 1 ? kr : void 0, "clip-path": je ? `url(#${je})` : void 0, mask: Mo ? `url(#${Mo})` : void 0, style: y ? `filter:${y}` : void 0 }) : "";
|
|
15567
|
+
P && (_r = C("path", { d: Tr, transform: $e || void 0 })), gn += (mt ? mt + C("g", { filter: `url(#satori_s-${s})` }, I + kt) : I + kt) + Wo;
|
|
15568
15568
|
}
|
|
15569
|
-
return
|
|
15569
|
+
return _r && (r._inheritedBackgroundClipTextPath.value += _r), gn;
|
|
15570
15570
|
}
|
|
15571
15571
|
function Ef(e, t, n) {
|
|
15572
15572
|
return t === "uppercase" ? e = e.toLocaleUpperCase(n) : t === "lowercase" ? e = e.toLocaleLowerCase(n) : t === "capitalize" && (e = we(e, "word", n).map((r) => we(r, "grapheme", n).map((i, o) => o === 0 ? i.toLocaleUpperCase(n) : i).join("")).join("")), e;
|
|
@@ -15574,11 +15574,11 @@ function Ef(e, t, n) {
|
|
|
15574
15574
|
function Cf(e, t) {
|
|
15575
15575
|
let { textOverflow: n, lineClamp: r, WebkitLineClamp: i, WebkitBoxOrient: o, overflow: u, display: s } = e;
|
|
15576
15576
|
if (s === "block" && r) {
|
|
15577
|
-
let [a, l =
|
|
15577
|
+
let [a, l = Mt] = Of(r);
|
|
15578
15578
|
if (a)
|
|
15579
15579
|
return [a, l];
|
|
15580
15580
|
}
|
|
15581
|
-
return n === "ellipsis" && s === "-webkit-box" && o === "vertical" && ru(i) && i > 0 ? [i,
|
|
15581
|
+
return n === "ellipsis" && s === "-webkit-box" && o === "vertical" && ru(i) && i > 0 ? [i, Mt] : n === "ellipsis" && u === "hidden" && !t ? [1, Mt] : [1 / 0];
|
|
15582
15582
|
}
|
|
15583
15583
|
function _f(e, t) {
|
|
15584
15584
|
let n = ["break-all", "break-word"].includes(t), { words: r, requiredBreaks: i } = iu(e, t);
|
|
@@ -15586,7 +15586,7 @@ function _f(e, t) {
|
|
|
15586
15586
|
}
|
|
15587
15587
|
function Sf(e, t) {
|
|
15588
15588
|
let n = ["pre", "pre-wrap", "pre-line"].includes(t), r = ["normal", "nowrap", "pre-line"].includes(t), i = !["pre", "nowrap"].includes(t);
|
|
15589
|
-
return n || (e = e.replace(/\n/g,
|
|
15589
|
+
return n || (e = e.replace(/\n/g, Lt)), r && (e = e.replace(/([ ]|\t)+/g, Lt).trim()), { content: e, shouldCollapseTabsAndSpaces: r, allowSoftWrap: i };
|
|
15590
15590
|
}
|
|
15591
15591
|
function kf(e, t) {
|
|
15592
15592
|
let n = e.Node.create();
|
|
@@ -15659,13 +15659,13 @@ Nn.parse = function() {
|
|
|
15659
15659
|
return f() || c() || p();
|
|
15660
15660
|
}
|
|
15661
15661
|
function f() {
|
|
15662
|
-
return
|
|
15662
|
+
return ee("directional", e.sideOrCorner, 1);
|
|
15663
15663
|
}
|
|
15664
15664
|
function c() {
|
|
15665
|
-
return
|
|
15665
|
+
return ee("angular", e.angleValue, 1);
|
|
15666
15666
|
}
|
|
15667
15667
|
function p() {
|
|
15668
|
-
return
|
|
15668
|
+
return ee("directional", e.zeroValue, 0);
|
|
15669
15669
|
}
|
|
15670
15670
|
function h() {
|
|
15671
15671
|
var A, O = d(), M;
|
|
@@ -15677,23 +15677,23 @@ Nn.parse = function() {
|
|
|
15677
15677
|
return { ...A, at: O };
|
|
15678
15678
|
}
|
|
15679
15679
|
function m() {
|
|
15680
|
-
let A = v() || g(), O = b() ||
|
|
15680
|
+
let A = v() || g(), O = b() || de() || L(), M = ee("%", e.percentageValue, 1);
|
|
15681
15681
|
if (A)
|
|
15682
15682
|
return { ...A, style: [O, M].filter((R) => R) };
|
|
15683
15683
|
if (O)
|
|
15684
15684
|
return { style: [O, M].filter((R) => R), ...v() || g() };
|
|
15685
15685
|
}
|
|
15686
15686
|
function v() {
|
|
15687
|
-
return
|
|
15687
|
+
return ee("shape", /^(circle)/i, 0);
|
|
15688
15688
|
}
|
|
15689
15689
|
function g() {
|
|
15690
|
-
return
|
|
15690
|
+
return ee("shape", /^(ellipse)/i, 0);
|
|
15691
15691
|
}
|
|
15692
15692
|
function b() {
|
|
15693
|
-
return
|
|
15693
|
+
return ee("extent-keyword", e.extentKeywords, 1);
|
|
15694
15694
|
}
|
|
15695
15695
|
function x() {
|
|
15696
|
-
if (
|
|
15696
|
+
if (ee("position", /^at/, 0)) {
|
|
15697
15697
|
var A = F();
|
|
15698
15698
|
return A || n("Missing positioning value"), A;
|
|
15699
15699
|
}
|
|
@@ -15718,42 +15718,42 @@ Nn.parse = function() {
|
|
|
15718
15718
|
return A || n("Expected color definition"), A.length = L(), A;
|
|
15719
15719
|
}
|
|
15720
15720
|
function B() {
|
|
15721
|
-
return oe() || se() || ue() ||
|
|
15721
|
+
return oe() || se() || ue() || j();
|
|
15722
15722
|
}
|
|
15723
|
-
function
|
|
15724
|
-
return
|
|
15723
|
+
function j() {
|
|
15724
|
+
return ee("literal", e.literalColor, 0);
|
|
15725
15725
|
}
|
|
15726
15726
|
function oe() {
|
|
15727
|
-
return
|
|
15727
|
+
return ee("hex", e.hexColor, 1);
|
|
15728
15728
|
}
|
|
15729
15729
|
function ue() {
|
|
15730
15730
|
return a(e.rgbColor, function() {
|
|
15731
|
-
return { type: "rgb", value: k(
|
|
15731
|
+
return { type: "rgb", value: k(N) };
|
|
15732
15732
|
});
|
|
15733
15733
|
}
|
|
15734
15734
|
function se() {
|
|
15735
15735
|
return a(e.rgbaColor, function() {
|
|
15736
|
-
return { type: "rgba", value: k(
|
|
15736
|
+
return { type: "rgba", value: k(N) };
|
|
15737
15737
|
});
|
|
15738
15738
|
}
|
|
15739
|
-
function
|
|
15739
|
+
function N() {
|
|
15740
15740
|
return le(e.number)[1];
|
|
15741
15741
|
}
|
|
15742
15742
|
function L() {
|
|
15743
|
-
return
|
|
15743
|
+
return ee("%", e.percentageValue, 1) || V() || de();
|
|
15744
15744
|
}
|
|
15745
|
-
function
|
|
15746
|
-
return
|
|
15745
|
+
function V() {
|
|
15746
|
+
return ee("position-keyword", e.positionKeywords, 1);
|
|
15747
15747
|
}
|
|
15748
|
-
function
|
|
15749
|
-
return
|
|
15748
|
+
function de() {
|
|
15749
|
+
return ee("px", e.pixelValue, 1) || Y(e.emLikeValue, 1);
|
|
15750
15750
|
}
|
|
15751
|
-
function
|
|
15751
|
+
function Y(A, O) {
|
|
15752
15752
|
var M = le(A);
|
|
15753
15753
|
if (M)
|
|
15754
15754
|
return { type: M[5], value: M[O] };
|
|
15755
15755
|
}
|
|
15756
|
-
function
|
|
15756
|
+
function ee(A, O, M) {
|
|
15757
15757
|
var R = le(O);
|
|
15758
15758
|
if (R)
|
|
15759
15759
|
return { type: A, value: R[M] };
|
|
@@ -15783,7 +15783,7 @@ function Rf(e, t) {
|
|
|
15783
15783
|
function Wn(e, { x: t, y: n, defaultX: r, defaultY: i }) {
|
|
15784
15784
|
return (e ? e.split(" ").map((o) => {
|
|
15785
15785
|
try {
|
|
15786
|
-
let u = new
|
|
15786
|
+
let u = new Qe(o);
|
|
15787
15787
|
return u.type === "length" || u.type === "number" ? u.value : u.value + u.unit;
|
|
15788
15788
|
} catch {
|
|
15789
15789
|
return null;
|
|
@@ -15815,7 +15815,7 @@ function Cu(e, t, n) {
|
|
|
15815
15815
|
return a.alpha === 0 ? { ...s, color: "rgba(0, 0, 0, 1)" } : { ...s, color: `rgba(255, 255, 255, ${a.alpha})` };
|
|
15816
15816
|
}) : r;
|
|
15817
15817
|
}
|
|
15818
|
-
async function
|
|
15818
|
+
async function Nt({ id: e, width: t, height: n, left: r, top: i }, { image: o, size: u, position: s, repeat: a }, l, f) {
|
|
15819
15819
|
a = a || "repeat", f = f || "background";
|
|
15820
15820
|
let c = a === "repeat-x" || a === "repeat", p = a === "repeat-y" || a === "repeat", h = Wn(u, { x: t, y: n, defaultX: t, defaultY: n }), d = Wn(s, { x: t, y: n, defaultX: 0, defaultY: 0 });
|
|
15821
15821
|
if (o.startsWith("linear-gradient(")) {
|
|
@@ -15823,7 +15823,7 @@ async function Wt({ id: e, width: t, height: n, left: r, top: i }, { image: o, s
|
|
|
15823
15823
|
if (m.orientation.type === "directional")
|
|
15824
15824
|
[b, x, F, y] = If(m.orientation.value), k = Math.sqrt(Math.pow((F - b) * v, 2) + Math.pow((y - x) * g, 2));
|
|
15825
15825
|
else if (m.orientation.type === "angular") {
|
|
15826
|
-
let
|
|
15826
|
+
let N = function(L) {
|
|
15827
15827
|
if (L = (L % (Math.PI * 2) + Math.PI * 2) % (Math.PI * 2), Math.abs(L - Math.PI / 2) < 1e-6) {
|
|
15828
15828
|
b = 0, x = 0, F = 1, y = 0, k = v;
|
|
15829
15829
|
return;
|
|
@@ -15832,36 +15832,36 @@ async function Wt({ id: e, width: t, height: n, left: r, top: i }, { image: o, s
|
|
|
15832
15832
|
return;
|
|
15833
15833
|
}
|
|
15834
15834
|
if (L >= Math.PI / 2 && L < Math.PI) {
|
|
15835
|
-
|
|
15835
|
+
N(Math.PI - L), x = 1 - x, y = 1 - y;
|
|
15836
15836
|
return;
|
|
15837
15837
|
} else if (L >= Math.PI) {
|
|
15838
|
-
|
|
15838
|
+
N(L - Math.PI);
|
|
15839
15839
|
let M = b;
|
|
15840
15840
|
b = F, F = M, M = x, x = y, y = M;
|
|
15841
15841
|
return;
|
|
15842
15842
|
}
|
|
15843
|
-
let
|
|
15844
|
-
b = 0, x = 1, F = Math.sin(
|
|
15845
|
-
let le = 1, he = 1 /
|
|
15843
|
+
let V = Math.tan(L), de = V * se, Y = Math.atan(de), ee = Math.sqrt(2) * Math.cos(Math.PI / 4 - Y);
|
|
15844
|
+
b = 0, x = 1, F = Math.sin(Y) * ee, y = 1 - Math.cos(Y) * ee;
|
|
15845
|
+
let le = 1, he = 1 / V, A = Math.abs((le * se + he) / Math.sqrt(le * le + he * he) / Math.sqrt(se * se + 1));
|
|
15846
15846
|
k = Math.sqrt(v * v + g * g) * A;
|
|
15847
15847
|
}, se = v / g;
|
|
15848
|
-
|
|
15848
|
+
N(+m.orientation.value / 180 * Math.PI);
|
|
15849
15849
|
}
|
|
15850
|
-
let P = Cu(k, m.colorStops, f), B = `satori_bi${e}`,
|
|
15851
|
-
return [
|
|
15850
|
+
let P = Cu(k, m.colorStops, f), B = `satori_bi${e}`, j = `satori_pattern_${e}`, oe = C("pattern", { id: j, x: d[0] / t, y: d[1] / n, width: c ? v / t : "1", height: p ? g / n : "1", patternUnits: "objectBoundingBox" }, C("linearGradient", { id: B, x1: b, y1: x, x2: F, y2: y }, P.map((ue) => C("stop", { offset: ue.offset * 100 + "%", "stop-color": ue.color })).join("")) + C("rect", { x: 0, y: 0, width: v, height: g, fill: `url(#${B})` }));
|
|
15851
|
+
return [j, oe];
|
|
15852
15852
|
}
|
|
15853
15853
|
if (o.startsWith("radial-gradient(")) {
|
|
15854
15854
|
let m = $n.parse(o)[0], v = m.orientation[0], [g, b] = h, x = "circle", F = g / 2, y = b / 2;
|
|
15855
15855
|
if (v.type === "shape") {
|
|
15856
15856
|
if (x = v.value, v.at)
|
|
15857
15857
|
if (v.at.type === "position") {
|
|
15858
|
-
let
|
|
15859
|
-
F =
|
|
15858
|
+
let N = Lf(v.at.value.x, v.at.value.y, g, b, l.fontSize, l);
|
|
15859
|
+
F = N.x, y = N.y;
|
|
15860
15860
|
} else
|
|
15861
15861
|
throw new Error("orientation.at.type not implemented: " + v.at.type);
|
|
15862
15862
|
} else
|
|
15863
15863
|
throw new Error("orientation.type not implemented: " + v.type);
|
|
15864
|
-
let k = Cu(t, m.colorStops, f), P = `satori_radial_${e}`, B = `satori_pattern_${e}`,
|
|
15864
|
+
let k = Cu(t, m.colorStops, f), P = `satori_radial_${e}`, B = `satori_pattern_${e}`, j = `satori_mask_${e}`, oe = Mf(x, v.style, l.fontSize, { x: F, y }, [g, b], l), ue = C("pattern", { id: B, x: d[0] / t, y: d[1] / n, width: c ? g / t : "1", height: p ? b / n : "1", patternUnits: "objectBoundingBox" }, C("radialGradient", { id: P }, k.map((N) => C("stop", { offset: N.offset, "stop-color": N.color })).join("")) + C("mask", { id: j }, C("rect", { x: 0, y: 0, width: g, height: b, fill: "#fff" })) + C("rect", { x: 0, y: 0, width: g, height: b, fill: k.at(-1).color }) + C(x, { cx: F, cy: y, width: g, height: b, ...oe, fill: `url(#${P})`, mask: `url(#${j})` }));
|
|
15865
15865
|
return [B, ue];
|
|
15866
15866
|
}
|
|
15867
15867
|
if (o.startsWith("url(")) {
|
|
@@ -15872,7 +15872,7 @@ async function Wt({ id: e, width: t, height: n, left: r, top: i }, { image: o, s
|
|
|
15872
15872
|
}
|
|
15873
15873
|
function Lf(e, t, n, r, i, o) {
|
|
15874
15874
|
let u = { x: n / 2, y: r / 2 };
|
|
15875
|
-
return e.type === "position-keyword" ? Object.assign(u, _u(e.value, n, r, "x")) : u.x =
|
|
15875
|
+
return e.type === "position-keyword" ? Object.assign(u, _u(e.value, n, r, "x")) : u.x = q(`${e.value}${e.type}`, i, n, o, true), t.type === "position-keyword" ? Object.assign(u, _u(t.value, n, r, "y")) : u.y = q(`${t.value}${t.type}`, i, r, o, true), u;
|
|
15876
15876
|
}
|
|
15877
15877
|
function _u(e, t, n, r) {
|
|
15878
15878
|
switch (e) {
|
|
@@ -15893,7 +15893,7 @@ function Mf(e, t, n, r, i, o) {
|
|
|
15893
15893
|
if (!t.some((d) => d.type === "extent-keyword")) {
|
|
15894
15894
|
if (t.some((d) => d.value.startsWith("-")))
|
|
15895
15895
|
throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");
|
|
15896
|
-
return e === "circle" ? { r:
|
|
15896
|
+
return e === "circle" ? { r: q(`${t[0].value}${t[0].type}`, n, u, o, true) } : { rx: q(`${t[0].value}${t[0].type}`, n, u, o, true), ry: q(`${t[1].value}${t[1].type}`, n, s, o, true) };
|
|
15897
15897
|
}
|
|
15898
15898
|
switch (t[0].value) {
|
|
15899
15899
|
case "farthest-corner":
|
|
@@ -15927,12 +15927,12 @@ function Gr(e) {
|
|
|
15927
15927
|
function jr(e, t, n, r, i) {
|
|
15928
15928
|
if (typeof e == "string") {
|
|
15929
15929
|
let o = e.split(" ").map((s) => s.trim()), u = !o[1] && !o[0].endsWith("%");
|
|
15930
|
-
return o[1] = o[1] || o[0], [u, [Math.min(
|
|
15930
|
+
return o[1] = o[1] || o[0], [u, [Math.min(q(o[0], r, t, i, true), t), Math.min(q(o[1], r, n, i, true), n)]];
|
|
15931
15931
|
}
|
|
15932
15932
|
return typeof e == "number" ? [true, [Math.min(e, t), Math.min(e, n)]] : [true, void 0];
|
|
15933
15933
|
}
|
|
15934
15934
|
var Hr = (e) => e && e[0] !== 0 && e[1] !== 0;
|
|
15935
|
-
function
|
|
15935
|
+
function Je({ left: e, top: t, width: n, height: r }, i, o) {
|
|
15936
15936
|
let { borderTopLeftRadius: u, borderTopRightRadius: s, borderBottomLeftRadius: a, borderBottomRightRadius: l, fontSize: f } = i, c, p, h, d;
|
|
15937
15937
|
if ([c, u] = jr(u, n, r, f, i), [p, s] = jr(s, n, r, f, i), [h, a] = jr(a, n, r, f, i), [d, l] = jr(l, n, r, f, i), !o && !Hr(u) && !Hr(s) && !Hr(a) && !Hr(l))
|
|
15938
15938
|
return "";
|
|
@@ -15942,8 +15942,8 @@ function Qe({ left: e, top: t, width: n, height: r }, i, o) {
|
|
|
15942
15942
|
let v = `h${n - u[0] - s[0]} a${m[0][0]} 0 0 1 ${m[0][1]}`, g = `v${r - s[1] - l[1]} a${m[1][0]} 0 0 1 ${m[1][1]}`, b = `h${l[0] + a[0] - n} a${m[2][0]} 0 0 1 ${m[2][1]}`, x = `v${a[1] + u[1] - r} a${m[3][0]} 0 0 1 ${m[3][1]}`;
|
|
15943
15943
|
if (o) {
|
|
15944
15944
|
let y = function(se) {
|
|
15945
|
-
let
|
|
15946
|
-
return se === 0 ? [[e + u[0] -
|
|
15945
|
+
let N = Nf([u, s, l, a][se]);
|
|
15946
|
+
return se === 0 ? [[e + u[0] - N, t + u[1] - N], [e + u[0], t]] : se === 1 ? [[e + n - s[0] + N, t + s[1] - N], [e + n, t + s[1]]] : se === 2 ? [[e + n - l[0] + N, t + r - l[1] + N], [e + n - l[0], t + r]] : [[e + a[0] - N, t + r - a[1] + N], [e, t + r - a[1]]];
|
|
15947
15947
|
}, F = o.indexOf(false);
|
|
15948
15948
|
if (!o.includes(true))
|
|
15949
15949
|
throw new Error("Invalid `partialSides`.");
|
|
@@ -15952,10 +15952,10 @@ function Qe({ left: e, top: t, width: n, height: r }, i, o) {
|
|
|
15952
15952
|
else
|
|
15953
15953
|
for (; !o[F]; )
|
|
15954
15954
|
F = (F + 1) % 4;
|
|
15955
|
-
let k = "", P = y(F), B = `M${P[0]} A${m[(F + 3) % 4][0]} 0 0 1 ${P[1]}`,
|
|
15956
|
-
for (;
|
|
15957
|
-
k += B + " ", B = [v, g, b, x][(F +
|
|
15958
|
-
let oe = (F +
|
|
15955
|
+
let k = "", P = y(F), B = `M${P[0]} A${m[(F + 3) % 4][0]} 0 0 1 ${P[1]}`, j = 0;
|
|
15956
|
+
for (; j < 4 && o[(F + j) % 4]; j++)
|
|
15957
|
+
k += B + " ", B = [v, g, b, x][(F + j) % 4];
|
|
15958
|
+
let oe = (F + j) % 4;
|
|
15959
15959
|
k += B.split(" ")[0];
|
|
15960
15960
|
let ue = y(oe);
|
|
15961
15961
|
return k += ` A${m[(oe + 3) % 4][0]} 0 0 1 ${ue[0]}`, k;
|
|
@@ -15971,7 +15971,7 @@ function ku({ id: e, currentClipPathId: t, borderPath: n, borderType: r, left: i
|
|
|
15971
15971
|
let f = `satori_bc-${e}`;
|
|
15972
15972
|
return [C("clipPath", { id: f, "clip-path": t ? `url(#${t})` : void 0 }, C(r, { x: i, y: o, width: u, height: s, d: n || void 0 })), f];
|
|
15973
15973
|
}
|
|
15974
|
-
function
|
|
15974
|
+
function $t({ left: e, top: t, width: n, height: r, props: i, asContentMask: o, maskBorderOnly: u }, s) {
|
|
15975
15975
|
let a = ["borderTop", "borderRight", "borderBottom", "borderLeft"];
|
|
15976
15976
|
if (!o && !a.some((h) => s[h + "Width"]))
|
|
15977
15977
|
return "";
|
|
@@ -15983,55 +15983,55 @@ function qt({ left: e, top: t, width: n, height: r, props: i, asContentMask: o,
|
|
|
15983
15983
|
let d = (f + h) % 4, m = (f + h + 1) % 4, v = a[d], g = a[m];
|
|
15984
15984
|
if (c[d] = true, p = [s[v + "Width"], s[v + "Style"], s[v + "Color"], v], !Su(v, g, s)) {
|
|
15985
15985
|
let b = (p[0] || 0) + (o && !u && s[v.replace("border", "padding")] || 0);
|
|
15986
|
-
b && (l += C("path", { width: n, height: r, ...i, fill: "none", stroke: o ? "#000" : p[2], "stroke-width": b * 2, "stroke-dasharray": !o && p[1] === "dashed" ? b * 2 + " " + b : void 0, d:
|
|
15986
|
+
b && (l += C("path", { width: n, height: r, ...i, fill: "none", stroke: o ? "#000" : p[2], "stroke-width": b * 2, "stroke-dasharray": !o && p[1] === "dashed" ? b * 2 + " " + b : void 0, d: Je({ left: e, top: t, width: n, height: r }, s, c) })), c = [false, false, false, false];
|
|
15987
15987
|
}
|
|
15988
15988
|
}
|
|
15989
15989
|
if (c.some(Boolean)) {
|
|
15990
15990
|
let h = (p[0] || 0) + (o && !u && s[p[3].replace("border", "padding")] || 0);
|
|
15991
|
-
h && (l += C("path", { width: n, height: r, ...i, fill: "none", stroke: o ? "#000" : p[2], "stroke-width": h * 2, "stroke-dasharray": !o && p[1] === "dashed" ? h * 2 + " " + h : void 0, d:
|
|
15991
|
+
h && (l += C("path", { width: n, height: r, ...i, fill: "none", stroke: o ? "#000" : p[2], "stroke-width": h * 2, "stroke-dasharray": !o && p[1] === "dashed" ? h * 2 + " " + h : void 0, d: Je({ left: e, top: t, width: n, height: r }, s, c) }));
|
|
15992
15992
|
}
|
|
15993
15993
|
return l;
|
|
15994
15994
|
}
|
|
15995
15995
|
function qn({ id: e, left: t, top: n, width: r, height: i, matrix: o, borderOnly: u }, s) {
|
|
15996
15996
|
let a = (s.borderLeftWidth || 0) + (u ? 0 : s.paddingLeft || 0), l = (s.borderTopWidth || 0) + (u ? 0 : s.paddingTop || 0), f = (s.borderRightWidth || 0) + (u ? 0 : s.paddingRight || 0), c = (s.borderBottomWidth || 0) + (u ? 0 : s.paddingBottom || 0), p = { x: t + a, y: n + l, width: r - a - f, height: i - l - c };
|
|
15997
|
-
return C("mask", { id: e }, C("rect", { ...p, fill: "#fff", mask: s._inheritedMaskId ? `url(#${s._inheritedMaskId})` : void 0 }) +
|
|
15997
|
+
return C("mask", { id: e }, C("rect", { ...p, fill: "#fff", mask: s._inheritedMaskId ? `url(#${s._inheritedMaskId})` : void 0 }) + $t({ left: t, top: n, width: r, height: i, props: { transform: o || void 0 }, asContentMask: true, maskBorderOnly: u }, s));
|
|
15998
15998
|
}
|
|
15999
|
-
var
|
|
15999
|
+
var Wt = { circle: /circle\((.+)\)/, ellipse: /ellipse\((.+)\)/, path: /path\((.+)\)/, polygon: /polygon\((.+)\)/, inset: /inset\((.+)\)/ };
|
|
16000
16000
|
function Pu({ width: e, height: t }, n, r) {
|
|
16001
16001
|
function i(l) {
|
|
16002
|
-
let f = l.match(
|
|
16002
|
+
let f = l.match(Wt.circle);
|
|
16003
16003
|
if (!f)
|
|
16004
16004
|
return null;
|
|
16005
16005
|
let [, c] = f, [p, h = ""] = c.split("at").map((v) => v.trim()), { x: d, y: m } = Ou(h, e, t);
|
|
16006
|
-
return { type: "circle", r:
|
|
16006
|
+
return { type: "circle", r: q(p, r.fontSize, Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2)) / Math.sqrt(2), r, true), cx: q(d, r.fontSize, e, r, true), cy: q(m, r.fontSize, t, r, true) };
|
|
16007
16007
|
}
|
|
16008
16008
|
function o(l) {
|
|
16009
|
-
let f = l.match(
|
|
16009
|
+
let f = l.match(Wt.ellipse);
|
|
16010
16010
|
if (!f)
|
|
16011
16011
|
return null;
|
|
16012
16012
|
let [, c] = f, [p, h = ""] = c.split("at").map((b) => b.trim()), [d, m] = p.split(" "), { x: v, y: g } = Ou(h, e, t);
|
|
16013
|
-
return { type: "ellipse", rx:
|
|
16013
|
+
return { type: "ellipse", rx: q(d || "50%", r.fontSize, e, r, true), ry: q(m || "50%", r.fontSize, t, r, true), cx: q(v, r.fontSize, e, r, true), cy: q(g, r.fontSize, t, r, true) };
|
|
16014
16014
|
}
|
|
16015
16015
|
function u(l) {
|
|
16016
|
-
let f = l.match(
|
|
16016
|
+
let f = l.match(Wt.path);
|
|
16017
16017
|
if (!f)
|
|
16018
16018
|
return null;
|
|
16019
16019
|
let [c, p] = Au(f[1]);
|
|
16020
16020
|
return { type: "path", d: p, "fill-rule": c };
|
|
16021
16021
|
}
|
|
16022
16022
|
function s(l) {
|
|
16023
|
-
let f = l.match(
|
|
16023
|
+
let f = l.match(Wt.polygon);
|
|
16024
16024
|
if (!f)
|
|
16025
16025
|
return null;
|
|
16026
16026
|
let [c, p] = Au(f[1]);
|
|
16027
|
-
return { type: "polygon", "fill-rule": c, points: p.split(",").map((h) => h.split(" ").map((d, m) =>
|
|
16027
|
+
return { type: "polygon", "fill-rule": c, points: p.split(",").map((h) => h.split(" ").map((d, m) => q(d, r.fontSize, m === 0 ? e : t, r, true)).join(" ")).join(",") };
|
|
16028
16028
|
}
|
|
16029
16029
|
function a(l) {
|
|
16030
|
-
let f = l.match(
|
|
16030
|
+
let f = l.match(Wt.inset);
|
|
16031
16031
|
if (!f)
|
|
16032
16032
|
return null;
|
|
16033
|
-
let [c, p] = (f[1].includes("round") ? f[1] : `${f[1].trim()} round 0`).split("round"), h = (0, import_css_to_react_native3.getStylesForProperty)("borderRadius", p, true), d = Object.values(h).map((F) => String(F)).map((F, y) =>
|
|
16034
|
-
return d.some((F) => F > 0) ? { type: "path", d:
|
|
16033
|
+
let [c, p] = (f[1].includes("round") ? f[1] : `${f[1].trim()} round 0`).split("round"), h = (0, import_css_to_react_native3.getStylesForProperty)("borderRadius", p, true), d = Object.values(h).map((F) => String(F)).map((F, y) => q(F, r.fontSize, y === 0 || y === 2 ? t : e, r, true) || 0), m = Object.values((0, import_css_to_react_native3.getStylesForProperty)("margin", c, true)).map((F) => String(F)).map((F, y) => q(F, r.fontSize, y === 0 || y === 2 ? t : e, r, true) || 0), v = m[3], g = m[0], b = e - (m[1] + m[3]), x = t - (m[0] + m[2]);
|
|
16034
|
+
return d.some((F) => F > 0) ? { type: "path", d: Je({ left: v, top: g, width: b, height: x }, { ...n, ...h }) } : { type: "rect", x: v, y: g, width: b, height: x };
|
|
16035
16035
|
}
|
|
16036
16036
|
return { parseCircle: i, parseEllipse: o, parsePath: u, parsePolygon: s, parseInset: a };
|
|
16037
16037
|
}
|
|
@@ -16084,44 +16084,44 @@ async function zn(e, t, n) {
|
|
|
16084
16084
|
return ["", ""];
|
|
16085
16085
|
let f = $f(s), c = "";
|
|
16086
16086
|
for (let p = 0; p < l; p++) {
|
|
16087
|
-
let h = a[p], [d, m] = await
|
|
16087
|
+
let h = a[p], [d, m] = await Nt({ id: `${f}-${p}`, left: r, top: i, width: o, height: u }, h, n, "mask");
|
|
16088
16088
|
c += m + C("rect", { x: 0, y: 0, width: o, height: u, fill: `url(#${d})` });
|
|
16089
16089
|
}
|
|
16090
16090
|
return c = C("mask", { id: f }, c), [f, c];
|
|
16091
16091
|
}
|
|
16092
|
-
async function
|
|
16092
|
+
async function qt({ id: e, left: t, top: n, width: r, height: i, isInheritingTransform: o, src: u, debug: s }, a, l) {
|
|
16093
16093
|
if (a.display === "none")
|
|
16094
16094
|
return "";
|
|
16095
16095
|
let f = !!u, c = "rect", p = "", h = "", d = [], m = 1, v = "";
|
|
16096
|
-
a.backgroundColor && d.push(a.backgroundColor), a.opacity !== void 0 && (m = +a.opacity), a.transform && (p =
|
|
16096
|
+
a.backgroundColor && d.push(a.backgroundColor), a.opacity !== void 0 && (m = +a.opacity), a.transform && (p = Rt({ left: t, top: n, width: r, height: i }, a.transform, o, a.transformOrigin));
|
|
16097
16097
|
let g = "";
|
|
16098
16098
|
if (a.backgroundImage) {
|
|
16099
16099
|
let L = [];
|
|
16100
|
-
for (let
|
|
16101
|
-
let
|
|
16102
|
-
|
|
16100
|
+
for (let V = 0; V < a.backgroundImage.length; V++) {
|
|
16101
|
+
let de = a.backgroundImage[V], Y = await Nt({ id: e + "_" + V, width: r, height: i, left: t, top: n }, de, l);
|
|
16102
|
+
Y && L.unshift(Y);
|
|
16103
16103
|
}
|
|
16104
|
-
for (let
|
|
16105
|
-
d.push(`url(#${
|
|
16104
|
+
for (let V of L)
|
|
16105
|
+
d.push(`url(#${V[0]})`), h += V[1], V[2] && (g += V[2]);
|
|
16106
16106
|
}
|
|
16107
16107
|
let [b, x] = await zn({ id: e, left: t, top: n, width: r, height: i }, a, l);
|
|
16108
16108
|
h += x;
|
|
16109
|
-
let F = b ? `url(#${b})` : a._inheritedMaskId ? `url(#${a._inheritedMaskId})` : void 0, y =
|
|
16109
|
+
let F = b ? `url(#${b})` : a._inheritedMaskId ? `url(#${a._inheritedMaskId})` : void 0, y = Je({ left: t, top: n, width: r, height: i }, a);
|
|
16110
16110
|
y && (c = "path");
|
|
16111
16111
|
let k = a._inheritedClipPathId;
|
|
16112
16112
|
s && (v = C("rect", { x: t, y: n, width: r, height: i, fill: "transparent", stroke: "#ff5757", "stroke-width": 1, transform: p || void 0, "clip-path": k ? `url(#${k})` : void 0 }));
|
|
16113
|
-
let { backgroundClip: P, filter: B } = a,
|
|
16113
|
+
let { backgroundClip: P, filter: B } = a, j = P === "text" ? `url(#satori_bct-${e})` : k ? `url(#${k})` : a.clipPath ? Bu(e) : void 0, oe = Un({ left: t, top: n, width: r, height: i, path: y, id: e, matrix: p, currentClipPath: j, src: u }, a, l), ue = d.map((L) => C(c, { x: t, y: n, width: r, height: i, fill: L, d: y || void 0, transform: p || void 0, "clip-path": j, style: B ? `filter:${B}` : void 0, mask: F })).join(""), se = ku({ id: e, left: t, top: n, width: r, height: i, currentClipPathId: k, borderPath: y, borderType: c }, a);
|
|
16114
16114
|
if (f) {
|
|
16115
|
-
let L = (a.borderLeftWidth || 0) + (a.paddingLeft || 0),
|
|
16116
|
-
ue += C("image", { x: t + L, y: n +
|
|
16115
|
+
let L = (a.borderLeftWidth || 0) + (a.paddingLeft || 0), V = (a.borderTopWidth || 0) + (a.paddingTop || 0), de = (a.borderRightWidth || 0) + (a.paddingRight || 0), Y = (a.borderBottomWidth || 0) + (a.paddingBottom || 0), ee = a.objectFit === "contain" ? "xMidYMid" : a.objectFit === "cover" ? "xMidYMid slice" : "none";
|
|
16116
|
+
ue += C("image", { x: t + L, y: n + V, width: r - L - de, height: i - V - Y, href: u, preserveAspectRatio: ee, transform: p || void 0, style: B ? `filter:${B}` : void 0, "clip-path": `url(#satori_cp-${e})`, mask: b ? `url(#${b})` : `url(#satori_om-${e})` });
|
|
16117
16117
|
}
|
|
16118
16118
|
if (se) {
|
|
16119
16119
|
h += se[0];
|
|
16120
16120
|
let L = se[1];
|
|
16121
|
-
ue +=
|
|
16121
|
+
ue += $t({ left: t, top: n, width: r, height: i, props: { transform: p || void 0, "clip-path": `url(#${L})` } }, a);
|
|
16122
16122
|
}
|
|
16123
|
-
let
|
|
16124
|
-
return (h ? C("defs", {}, h) : "") + (
|
|
16123
|
+
let N = wu({ width: r, height: i, id: e, opacity: m, shape: C(c, { x: t, y: n, width: r, height: i, fill: "#fff", stroke: "#fff", "stroke-width": 0, d: y || void 0, transform: p || void 0, "clip-path": j, mask: F }) }, a);
|
|
16124
|
+
return (h ? C("defs", {}, h) : "") + (N ? N[0] : "") + oe + (m !== 1 ? `<g opacity="${m}">` : "") + (g || ue) + (m !== 1 ? "</g>" : "") + (N ? N[1] : "") + v;
|
|
16125
16125
|
}
|
|
16126
16126
|
var Ru = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
16127
16127
|
var Wf = new RegExp(Ru(), "");
|
|
@@ -16148,7 +16148,7 @@ function Nu(e) {
|
|
|
16148
16148
|
if (e)
|
|
16149
16149
|
return Yr.find((t) => t.toLowerCase().startsWith(e.toLowerCase()));
|
|
16150
16150
|
}
|
|
16151
|
-
async function*
|
|
16151
|
+
async function* Ut(e, t) {
|
|
16152
16152
|
var M;
|
|
16153
16153
|
let n = await qe(), { id: r, inheritedStyle: i, parent: o, font: u, debug: s, locale: a, embedFont: l = true, graphemeImages: f, canLoadAdditionalAssets: c, getTwStyles: p } = t;
|
|
16154
16154
|
if (e === null || typeof e > "u")
|
|
@@ -16160,7 +16160,7 @@ async function* Gt(e, t) {
|
|
|
16160
16160
|
else {
|
|
16161
16161
|
if (Ko(e.type))
|
|
16162
16162
|
throw new Error("Class component is not supported.");
|
|
16163
|
-
R =
|
|
16163
|
+
R = Ut(e.type(e.props), t), yield (await R.next()).value;
|
|
16164
16164
|
}
|
|
16165
16165
|
await R.next();
|
|
16166
16166
|
let ae = yield;
|
|
@@ -16181,32 +16181,32 @@ async function* Gt(e, t) {
|
|
|
16181
16181
|
let R = { value: "" };
|
|
16182
16182
|
k._inheritedBackgroundClipTextPath = R, y._inheritedBackgroundClipTextPath = R;
|
|
16183
16183
|
}
|
|
16184
|
-
let B = Zo(v),
|
|
16184
|
+
let B = Zo(v), j = [], oe = 0, ue = [];
|
|
16185
16185
|
for (let R of B) {
|
|
16186
|
-
let ae =
|
|
16187
|
-
c ? ue.push(...(await ae.next()).value || []) : await ae.next(),
|
|
16186
|
+
let ae = Ut(R, { id: r + "-" + oe++, parentStyle: y, inheritedStyle: k, isInheritingTransform: true, parent: F, font: u, embedFont: l, debug: s, graphemeImages: f, canLoadAdditionalAssets: c, locale: x, getTwStyles: p, onNodeDetected: t.onNodeDetected });
|
|
16187
|
+
c ? ue.push(...(await ae.next()).value || []) : await ae.next(), j.push(ae);
|
|
16188
16188
|
}
|
|
16189
16189
|
yield ue;
|
|
16190
|
-
for (let R of
|
|
16190
|
+
for (let R of j)
|
|
16191
16191
|
await R.next();
|
|
16192
|
-
let [se,
|
|
16193
|
-
L += se,
|
|
16194
|
-
let
|
|
16195
|
-
if ((M = t.onNodeDetected) == null || M.call(t, { left: L, top:
|
|
16192
|
+
let [se, N] = yield, { left: L, top: V, width: de, height: Y } = F.getComputedLayout();
|
|
16193
|
+
L += se, V += N;
|
|
16194
|
+
let ee = "", le = "", he = "", { children: A, ...O } = d;
|
|
16195
|
+
if ((M = t.onNodeDetected) == null || M.call(t, { left: L, top: V, width: de, height: Y, type: h, props: O, key: e.key, textContent: bt(A) ? void 0 : A }), h === "img") {
|
|
16196
16196
|
let R = y.__src;
|
|
16197
|
-
le = await
|
|
16197
|
+
le = await qt({ id: r, left: L, top: V, width: de, height: Y, src: R, isInheritingTransform: P, debug: s }, y, k);
|
|
16198
16198
|
} else if (h === "svg") {
|
|
16199
16199
|
let R = y.color, ae = await du(e, R);
|
|
16200
|
-
le = await
|
|
16200
|
+
le = await qt({ id: r, left: L, top: V, width: de, height: Y, src: ae, isInheritingTransform: P, debug: s }, y, k);
|
|
16201
16201
|
} else {
|
|
16202
16202
|
let R = m == null ? void 0 : m.display;
|
|
16203
16203
|
if (h === "div" && v && typeof v != "string" && R !== "flex" && R !== "none")
|
|
16204
16204
|
throw new Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');
|
|
16205
|
-
le = await
|
|
16205
|
+
le = await qt({ id: r, left: L, top: V, width: de, height: Y, isInheritingTransform: P, debug: s }, y, k);
|
|
16206
16206
|
}
|
|
16207
|
-
for (let R of
|
|
16208
|
-
|
|
16209
|
-
return y._inheritedBackgroundClipTextPath && (he += C("clipPath", { id: `satori_bct-${r}`, "clip-path": y._inheritedClipPathId ? `url(#${y._inheritedClipPathId})` : void 0 }, y._inheritedBackgroundClipTextPath.value)), he + le +
|
|
16207
|
+
for (let R of j)
|
|
16208
|
+
ee += (await R.next([L, V])).value;
|
|
16209
|
+
return y._inheritedBackgroundClipTextPath && (he += C("clipPath", { id: `satori_bct-${r}`, "clip-path": y._inheritedClipPathId ? `url(#${y._inheritedClipPathId})` : void 0 }, y._inheritedBackgroundClipTextPath.value)), he + le + ee;
|
|
16210
16210
|
}
|
|
16211
16211
|
var $u = "unknown";
|
|
16212
16212
|
function qf(e, t, [n, r], [i, o]) {
|
|
@@ -16220,7 +16220,7 @@ function qf(e, t, [n, r], [i, o]) {
|
|
|
16220
16220
|
}
|
|
16221
16221
|
return -1;
|
|
16222
16222
|
}
|
|
16223
|
-
var
|
|
16223
|
+
var zt = class {
|
|
16224
16224
|
defaultFont;
|
|
16225
16225
|
fonts = /* @__PURE__ */ new Map();
|
|
16226
16226
|
constructor(t) {
|
|
@@ -16298,7 +16298,7 @@ var jt = class {
|
|
|
16298
16298
|
let x = v(b);
|
|
16299
16299
|
return x ? (x._trackBrokenChars = [], x.stringToGlyphs(b), x._trackBrokenChars.length ? (x._trackBrokenChars = void 0, false) : true) : false;
|
|
16300
16300
|
}, baseline: (b, x = typeof b > "u" ? s[0] : h(b)) => {
|
|
16301
|
-
let F = d(x, true), y = m(x, true), k = g.height(b, x), { yMax: P, yMin: B } = x.tables.head,
|
|
16301
|
+
let F = d(x, true), y = m(x, true), k = g.height(b, x), { yMax: P, yMin: B } = x.tables.head, j = F - y, oe = (P / (P - B) - 1) * j;
|
|
16302
16302
|
return k * ((1.2 / n + 1) / 2) + oe;
|
|
16303
16303
|
}, height: (b, x = typeof b > "u" ? s[0] : h(b)) => (d(x) - m(x)) * (n / 1.2), measure: (b, x) => this.measure(h, b, x), getSVG: (b, x) => this.getSVG(h, b, x) };
|
|
16304
16304
|
return g;
|
|
@@ -16366,10 +16366,10 @@ var Qa;
|
|
|
16366
16366
|
(function(e) {
|
|
16367
16367
|
e.fontSize = "fontSize", e.lineHeight = "lineHeight";
|
|
16368
16368
|
})(Qa || (Qa = {}));
|
|
16369
|
-
var
|
|
16369
|
+
var z;
|
|
16370
16370
|
(function(e) {
|
|
16371
16371
|
e.rem = "rem", e.em = "em", e.px = "px", e.percent = "%", e.vw = "vw", e.vh = "vh", e.none = "<no-css-unit>";
|
|
16372
|
-
})(
|
|
16372
|
+
})(z || (z = {}));
|
|
16373
16373
|
function yo(e) {
|
|
16374
16374
|
return typeof e == "string";
|
|
16375
16375
|
}
|
|
@@ -16380,10 +16380,10 @@ var Fo;
|
|
|
16380
16380
|
function D(e) {
|
|
16381
16381
|
return { kind: "complete", style: e };
|
|
16382
16382
|
}
|
|
16383
|
-
function
|
|
16383
|
+
function ce(e, t = {}) {
|
|
16384
16384
|
let { fractions: n } = t;
|
|
16385
16385
|
if (n && e.includes("/")) {
|
|
16386
|
-
let [o = "", u = ""] = e.split("/", 2), s =
|
|
16386
|
+
let [o = "", u = ""] = e.split("/", 2), s = ce(o), a = ce(u);
|
|
16387
16387
|
return !s || !a ? null : [s[0] / a[0], a[1]];
|
|
16388
16388
|
}
|
|
16389
16389
|
let r = parseFloat(e);
|
|
@@ -16391,20 +16391,20 @@ function fe(e, t = {}) {
|
|
|
16391
16391
|
return null;
|
|
16392
16392
|
let i = e.match(/(([a-z]{2,}|%))$/);
|
|
16393
16393
|
if (!i)
|
|
16394
|
-
return [r,
|
|
16394
|
+
return [r, z.none];
|
|
16395
16395
|
switch (i == null ? void 0 : i[1]) {
|
|
16396
16396
|
case "rem":
|
|
16397
|
-
return [r,
|
|
16397
|
+
return [r, z.rem];
|
|
16398
16398
|
case "px":
|
|
16399
|
-
return [r,
|
|
16399
|
+
return [r, z.px];
|
|
16400
16400
|
case "em":
|
|
16401
|
-
return [r,
|
|
16401
|
+
return [r, z.em];
|
|
16402
16402
|
case "%":
|
|
16403
|
-
return [r,
|
|
16403
|
+
return [r, z.percent];
|
|
16404
16404
|
case "vw":
|
|
16405
|
-
return [r,
|
|
16405
|
+
return [r, z.vw];
|
|
16406
16406
|
case "vh":
|
|
16407
|
-
return [r,
|
|
16407
|
+
return [r, z.vh];
|
|
16408
16408
|
default:
|
|
16409
16409
|
return null;
|
|
16410
16410
|
}
|
|
@@ -16424,37 +16424,37 @@ function el(e, t) {
|
|
|
16424
16424
|
function Me(e, t = {}) {
|
|
16425
16425
|
if (e === void 0)
|
|
16426
16426
|
return null;
|
|
16427
|
-
let n =
|
|
16428
|
-
return n ?
|
|
16427
|
+
let n = ce(String(e), t);
|
|
16428
|
+
return n ? rt(...n, t) : null;
|
|
16429
16429
|
}
|
|
16430
|
-
function
|
|
16430
|
+
function rt(e, t, n = {}) {
|
|
16431
16431
|
let { isNegative: r, device: i } = n;
|
|
16432
16432
|
switch (t) {
|
|
16433
|
-
case
|
|
16433
|
+
case z.rem:
|
|
16434
16434
|
return e * 16 * (r ? -1 : 1);
|
|
16435
|
-
case
|
|
16435
|
+
case z.px:
|
|
16436
16436
|
return e * (r ? -1 : 1);
|
|
16437
|
-
case
|
|
16437
|
+
case z.percent:
|
|
16438
16438
|
return `${r ? "-" : ""}${e}%`;
|
|
16439
|
-
case
|
|
16439
|
+
case z.none:
|
|
16440
16440
|
return e * (r ? -1 : 1);
|
|
16441
|
-
case
|
|
16441
|
+
case z.vw:
|
|
16442
16442
|
return i != null && i.windowDimensions ? i.windowDimensions.width * (e / 100) : (Fe("`vw` CSS unit requires configuration with `useDeviceContext()`"), null);
|
|
16443
|
-
case
|
|
16443
|
+
case z.vh:
|
|
16444
16444
|
return i != null && i.windowDimensions ? i.windowDimensions.height * (e / 100) : (Fe("`vh` CSS unit requires configuration with `useDeviceContext()`"), null);
|
|
16445
16445
|
default:
|
|
16446
16446
|
return null;
|
|
16447
16447
|
}
|
|
16448
16448
|
}
|
|
16449
16449
|
function wo(e) {
|
|
16450
|
-
let t =
|
|
16450
|
+
let t = ce(e);
|
|
16451
16451
|
if (!t)
|
|
16452
16452
|
return null;
|
|
16453
16453
|
let [n, r] = t;
|
|
16454
16454
|
switch (r) {
|
|
16455
|
-
case
|
|
16455
|
+
case z.rem:
|
|
16456
16456
|
return n * 16;
|
|
16457
|
-
case
|
|
16457
|
+
case z.px:
|
|
16458
16458
|
return n;
|
|
16459
16459
|
default:
|
|
16460
16460
|
return null;
|
|
@@ -16483,11 +16483,11 @@ function Ae(e, t, n = {}) {
|
|
|
16483
16483
|
function Za(e, t = {}) {
|
|
16484
16484
|
if (e === "px")
|
|
16485
16485
|
return 1;
|
|
16486
|
-
let n =
|
|
16486
|
+
let n = ce(e, t);
|
|
16487
16487
|
if (!n)
|
|
16488
16488
|
return null;
|
|
16489
16489
|
let [r, i] = n;
|
|
16490
|
-
return t.fractions && (i =
|
|
16490
|
+
return t.fractions && (i = z.percent, r *= 100), i === z.none && (r = r / 4, i = z.rem), rt(r, i, t);
|
|
16491
16491
|
}
|
|
16492
16492
|
function Om(...e) {
|
|
16493
16493
|
console.warn(...e);
|
|
@@ -16495,14 +16495,14 @@ function Om(...e) {
|
|
|
16495
16495
|
function Pm(...e) {
|
|
16496
16496
|
}
|
|
16497
16497
|
var Fe = typeof process > "u" || ((Fo = process == null ? void 0 : process.env) === null || Fo === void 0 ? void 0 : Fo.JEST_WORKER_ID) === void 0 ? Om : Pm;
|
|
16498
|
-
var Bm = [["aspect-square", D({ aspectRatio: 1 })], ["aspect-video", D({ aspectRatio: 16 / 9 })], ["items-center", D({ alignItems: "center" })], ["items-start", D({ alignItems: "flex-start" })], ["items-end", D({ alignItems: "flex-end" })], ["items-baseline", D({ alignItems: "baseline" })], ["items-stretch", D({ alignItems: "stretch" })], ["justify-start", D({ justifyContent: "flex-start" })], ["justify-end", D({ justifyContent: "flex-end" })], ["justify-center", D({ justifyContent: "center" })], ["justify-between", D({ justifyContent: "space-between" })], ["justify-around", D({ justifyContent: "space-around" })], ["justify-evenly", D({ justifyContent: "space-evenly" })], ["content-start", D({ alignContent: "flex-start" })], ["content-end", D({ alignContent: "flex-end" })], ["content-between", D({ alignContent: "space-between" })], ["content-around", D({ alignContent: "space-around" })], ["content-stretch", D({ alignContent: "stretch" })], ["content-center", D({ alignContent: "center" })], ["self-auto", D({ alignSelf: "auto" })], ["self-start", D({ alignSelf: "flex-start" })], ["self-end", D({ alignSelf: "flex-end" })], ["self-center", D({ alignSelf: "center" })], ["self-stretch", D({ alignSelf: "stretch" })], ["self-baseline", D({ alignSelf: "baseline" })], ["direction-inherit", D({ direction: "inherit" })], ["direction-ltr", D({ direction: "ltr" })], ["direction-rtl", D({ direction: "rtl" })], ["hidden", D({ display: "none" })], ["flex", D({ display: "flex" })], ["flex-row", D({ flexDirection: "row" })], ["flex-row-reverse", D({ flexDirection: "row-reverse" })], ["flex-col", D({ flexDirection: "column" })], ["flex-col-reverse", D({ flexDirection: "column-reverse" })], ["flex-wrap", D({ flexWrap: "wrap" })], ["flex-wrap-reverse", D({ flexWrap: "wrap-reverse" })], ["flex-nowrap", D({ flexWrap: "nowrap" })], ["flex-auto", D({ flexGrow: 1, flexShrink: 1, flexBasis: "auto" })], ["flex-initial", D({ flexGrow: 0, flexShrink: 1, flexBasis: "auto" })], ["flex-none", D({ flexGrow: 0, flexShrink: 0, flexBasis: "auto" })], ["overflow-hidden", D({ overflow: "hidden" })], ["overflow-visible", D({ overflow: "visible" })], ["overflow-scroll", D({ overflow: "scroll" })], ["absolute", D({ position: "absolute" })], ["relative", D({ position: "relative" })], ["italic", D({ fontStyle: "italic" })], ["not-italic", D({ fontStyle: "normal" })], ["oldstyle-nums",
|
|
16498
|
+
var Bm = [["aspect-square", D({ aspectRatio: 1 })], ["aspect-video", D({ aspectRatio: 16 / 9 })], ["items-center", D({ alignItems: "center" })], ["items-start", D({ alignItems: "flex-start" })], ["items-end", D({ alignItems: "flex-end" })], ["items-baseline", D({ alignItems: "baseline" })], ["items-stretch", D({ alignItems: "stretch" })], ["justify-start", D({ justifyContent: "flex-start" })], ["justify-end", D({ justifyContent: "flex-end" })], ["justify-center", D({ justifyContent: "center" })], ["justify-between", D({ justifyContent: "space-between" })], ["justify-around", D({ justifyContent: "space-around" })], ["justify-evenly", D({ justifyContent: "space-evenly" })], ["content-start", D({ alignContent: "flex-start" })], ["content-end", D({ alignContent: "flex-end" })], ["content-between", D({ alignContent: "space-between" })], ["content-around", D({ alignContent: "space-around" })], ["content-stretch", D({ alignContent: "stretch" })], ["content-center", D({ alignContent: "center" })], ["self-auto", D({ alignSelf: "auto" })], ["self-start", D({ alignSelf: "flex-start" })], ["self-end", D({ alignSelf: "flex-end" })], ["self-center", D({ alignSelf: "center" })], ["self-stretch", D({ alignSelf: "stretch" })], ["self-baseline", D({ alignSelf: "baseline" })], ["direction-inherit", D({ direction: "inherit" })], ["direction-ltr", D({ direction: "ltr" })], ["direction-rtl", D({ direction: "rtl" })], ["hidden", D({ display: "none" })], ["flex", D({ display: "flex" })], ["flex-row", D({ flexDirection: "row" })], ["flex-row-reverse", D({ flexDirection: "row-reverse" })], ["flex-col", D({ flexDirection: "column" })], ["flex-col-reverse", D({ flexDirection: "column-reverse" })], ["flex-wrap", D({ flexWrap: "wrap" })], ["flex-wrap-reverse", D({ flexWrap: "wrap-reverse" })], ["flex-nowrap", D({ flexWrap: "nowrap" })], ["flex-auto", D({ flexGrow: 1, flexShrink: 1, flexBasis: "auto" })], ["flex-initial", D({ flexGrow: 0, flexShrink: 1, flexBasis: "auto" })], ["flex-none", D({ flexGrow: 0, flexShrink: 0, flexBasis: "auto" })], ["overflow-hidden", D({ overflow: "hidden" })], ["overflow-visible", D({ overflow: "visible" })], ["overflow-scroll", D({ overflow: "scroll" })], ["absolute", D({ position: "absolute" })], ["relative", D({ position: "relative" })], ["italic", D({ fontStyle: "italic" })], ["not-italic", D({ fontStyle: "normal" })], ["oldstyle-nums", yr("oldstyle-nums")], ["small-caps", yr("small-caps")], ["lining-nums", yr("lining-nums")], ["tabular-nums", yr("tabular-nums")], ["proportional-nums", yr("proportional-nums")], ["font-thin", D({ fontWeight: "100" })], ["font-100", D({ fontWeight: "100" })], ["font-extralight", D({ fontWeight: "200" })], ["font-200", D({ fontWeight: "200" })], ["font-light", D({ fontWeight: "300" })], ["font-300", D({ fontWeight: "300" })], ["font-normal", D({ fontWeight: "normal" })], ["font-400", D({ fontWeight: "400" })], ["font-medium", D({ fontWeight: "500" })], ["font-500", D({ fontWeight: "500" })], ["font-semibold", D({ fontWeight: "600" })], ["font-600", D({ fontWeight: "600" })], ["font-bold", D({ fontWeight: "bold" })], ["font-700", D({ fontWeight: "700" })], ["font-extrabold", D({ fontWeight: "800" })], ["font-800", D({ fontWeight: "800" })], ["font-black", D({ fontWeight: "900" })], ["font-900", D({ fontWeight: "900" })], ["include-font-padding", D({ includeFontPadding: true })], ["remove-font-padding", D({ includeFontPadding: false })], ["max-w-none", D({ maxWidth: "99999%" })], ["text-left", D({ textAlign: "left" })], ["text-center", D({ textAlign: "center" })], ["text-right", D({ textAlign: "right" })], ["text-justify", D({ textAlign: "justify" })], ["text-auto", D({ textAlign: "auto" })], ["underline", D({ textDecorationLine: "underline" })], ["line-through", D({ textDecorationLine: "line-through" })], ["no-underline", D({ textDecorationLine: "none" })], ["uppercase", D({ textTransform: "uppercase" })], ["lowercase", D({ textTransform: "lowercase" })], ["capitalize", D({ textTransform: "capitalize" })], ["normal-case", D({ textTransform: "none" })], ["w-auto", D({ width: "auto" })], ["h-auto", D({ height: "auto" })], ["shadow-sm", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 1, shadowOpacity: 0.025, elevation: 1 })], ["shadow", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 1, shadowOpacity: 0.075, elevation: 2 })], ["shadow-md", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowRadius: 3, shadowOpacity: 0.125, elevation: 3 })], ["shadow-lg", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.15, shadowRadius: 8, elevation: 8 })], ["shadow-xl", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.19, shadowRadius: 20, elevation: 12 })], ["shadow-2xl", D({ shadowOffset: { width: 1, height: 1 }, shadowColor: "#000", shadowOpacity: 0.25, shadowRadius: 30, elevation: 16 })], ["shadow-none", D({ shadowOffset: { width: 0, height: 0 }, shadowColor: "#000", shadowRadius: 0, shadowOpacity: 0, elevation: 0 })]];
|
|
16499
16499
|
var _o = Bm;
|
|
16500
|
-
function
|
|
16500
|
+
function yr(e) {
|
|
16501
16501
|
return { kind: "dependent", complete(t) {
|
|
16502
16502
|
(!t.fontVariant || !Array.isArray(t.fontVariant)) && (t.fontVariant = []), t.fontVariant.push(e);
|
|
16503
16503
|
} };
|
|
16504
16504
|
}
|
|
16505
|
-
var
|
|
16505
|
+
var xr = class {
|
|
16506
16506
|
constructor(t) {
|
|
16507
16507
|
this.ir = new Map(_o), this.styles = /* @__PURE__ */ new Map(), this.prefixes = /* @__PURE__ */ new Map(), this.ir = new Map([..._o, ...t ?? []]);
|
|
16508
16508
|
}
|
|
@@ -16538,27 +16538,27 @@ function So(e, t, n = {}) {
|
|
|
16538
16538
|
return a && pn("lineHeight", tl(a, i), i), l && pn("letterSpacing", l, i), D(i);
|
|
16539
16539
|
}
|
|
16540
16540
|
function tl(e, t) {
|
|
16541
|
-
let n =
|
|
16541
|
+
let n = ce(e);
|
|
16542
16542
|
if (n) {
|
|
16543
16543
|
let [r, i] = n;
|
|
16544
|
-
if ((i ===
|
|
16544
|
+
if ((i === z.none || i === z.em) && typeof t.fontSize == "number")
|
|
16545
16545
|
return t.fontSize * r;
|
|
16546
16546
|
}
|
|
16547
16547
|
return e;
|
|
16548
16548
|
}
|
|
16549
16549
|
function ko(e, t) {
|
|
16550
16550
|
var n;
|
|
16551
|
-
let r = (n = t == null ? void 0 : t[e]) !== null && n !== void 0 ? n : e.startsWith("[") ? e.slice(1, -1) : e, i =
|
|
16551
|
+
let r = (n = t == null ? void 0 : t[e]) !== null && n !== void 0 ? n : e.startsWith("[") ? e.slice(1, -1) : e, i = ce(r);
|
|
16552
16552
|
if (!i)
|
|
16553
16553
|
return null;
|
|
16554
16554
|
let [o, u] = i;
|
|
16555
|
-
if (u ===
|
|
16555
|
+
if (u === z.none)
|
|
16556
16556
|
return { kind: "dependent", complete(a) {
|
|
16557
16557
|
if (typeof a.fontSize != "number")
|
|
16558
16558
|
return "relative line-height utilities require that font-size be set";
|
|
16559
16559
|
a.lineHeight = a.fontSize * o;
|
|
16560
16560
|
} };
|
|
16561
|
-
let s =
|
|
16561
|
+
let s = rt(o, u);
|
|
16562
16562
|
return s !== null ? D({ lineHeight: s }) : null;
|
|
16563
16563
|
}
|
|
16564
16564
|
function To(e, t, n, r, i) {
|
|
@@ -16571,19 +16571,19 @@ function To(e, t, n, r, i) {
|
|
|
16571
16571
|
o = l;
|
|
16572
16572
|
else {
|
|
16573
16573
|
let f = ft(r);
|
|
16574
|
-
return f && typeof f == "number" ? rl(f,
|
|
16574
|
+
return f && typeof f == "number" ? rl(f, z.px, t, e) : null;
|
|
16575
16575
|
}
|
|
16576
16576
|
}
|
|
16577
16577
|
if (o === "auto")
|
|
16578
16578
|
return nl(t, e, "auto");
|
|
16579
|
-
let u =
|
|
16579
|
+
let u = ce(o);
|
|
16580
16580
|
if (!u)
|
|
16581
16581
|
return null;
|
|
16582
16582
|
let [s, a] = u;
|
|
16583
16583
|
return n && (s = -s), rl(s, a, t, e);
|
|
16584
16584
|
}
|
|
16585
16585
|
function rl(e, t, n, r) {
|
|
16586
|
-
let i =
|
|
16586
|
+
let i = rt(e, t);
|
|
16587
16587
|
return i === null ? null : nl(n, r, i);
|
|
16588
16588
|
}
|
|
16589
16589
|
function nl(e, t, n) {
|
|
@@ -16646,7 +16646,7 @@ function ct(e, t, n) {
|
|
|
16646
16646
|
typeof s == "number" && (i = il(i, s)), o[hn[e].color] = i;
|
|
16647
16647
|
} };
|
|
16648
16648
|
}
|
|
16649
|
-
function
|
|
16649
|
+
function Fr(e, t) {
|
|
16650
16650
|
let n = parseInt(t, 10);
|
|
16651
16651
|
if (Number.isNaN(n))
|
|
16652
16652
|
return null;
|
|
@@ -16775,7 +16775,7 @@ function fl2(e, t, n) {
|
|
|
16775
16775
|
return D({ left: n, right: n });
|
|
16776
16776
|
}
|
|
16777
16777
|
}
|
|
16778
|
-
function
|
|
16778
|
+
function wr(e, t, n) {
|
|
16779
16779
|
var r;
|
|
16780
16780
|
t = t.replace(/^-/, "");
|
|
16781
16781
|
let i = t === "" ? "DEFAULT" : t, o = Number((r = n == null ? void 0 : n[i]) !== null && r !== void 0 ? r : t);
|
|
@@ -16804,22 +16804,22 @@ function Po(e, t, n = {}, r) {
|
|
|
16804
16804
|
let i = r == null ? void 0 : r[t];
|
|
16805
16805
|
return i !== void 0 ? Ge(e, i, n) : Ae(e, t, n);
|
|
16806
16806
|
}
|
|
16807
|
-
function
|
|
16807
|
+
function Er(e, t, n = {}, r) {
|
|
16808
16808
|
let i = Me(r == null ? void 0 : r[t], n);
|
|
16809
16809
|
return i ? D({ [e]: i }) : (t === "screen" && (t = e.includes("Width") ? "100vw" : "100vh"), Ae(e, t, n));
|
|
16810
16810
|
}
|
|
16811
16811
|
function dl(e, t, n) {
|
|
16812
16812
|
let r = n == null ? void 0 : n[e];
|
|
16813
16813
|
if (r) {
|
|
16814
|
-
let i =
|
|
16814
|
+
let i = ce(r, { isNegative: t });
|
|
16815
16815
|
if (!i)
|
|
16816
16816
|
return null;
|
|
16817
16817
|
let [o, u] = i;
|
|
16818
|
-
if (u ===
|
|
16818
|
+
if (u === z.em)
|
|
16819
16819
|
return Nm(o);
|
|
16820
|
-
if (u ===
|
|
16820
|
+
if (u === z.percent)
|
|
16821
16821
|
return Fe("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."), null;
|
|
16822
|
-
let s =
|
|
16822
|
+
let s = rt(o, u, { isNegative: t });
|
|
16823
16823
|
return s !== null ? D({ letterSpacing: s }) : null;
|
|
16824
16824
|
}
|
|
16825
16825
|
return Ae("letterSpacing", e, { isNegative: t });
|
|
@@ -16835,11 +16835,11 @@ function Nm(e) {
|
|
|
16835
16835
|
function pl(e, t) {
|
|
16836
16836
|
let n = t == null ? void 0 : t[e];
|
|
16837
16837
|
if (n) {
|
|
16838
|
-
let i =
|
|
16838
|
+
let i = ce(String(n));
|
|
16839
16839
|
if (i)
|
|
16840
16840
|
return D({ opacity: i[0] });
|
|
16841
16841
|
}
|
|
16842
|
-
let r =
|
|
16842
|
+
let r = ce(e);
|
|
16843
16843
|
return r ? D({ opacity: r[0] / 100 }) : null;
|
|
16844
16844
|
}
|
|
16845
16845
|
function hl(e) {
|
|
@@ -16904,7 +16904,7 @@ var _t = class {
|
|
|
16904
16904
|
}
|
|
16905
16905
|
}
|
|
16906
16906
|
}
|
|
16907
|
-
if (this.consumePeeked("h-") && (s = Po("height", this.rest, this.context, u == null ? void 0 : u.height), s) || this.consumePeeked("w-") && (s = Po("width", this.rest, this.context, u == null ? void 0 : u.width), s) || this.consumePeeked("min-w-") && (s =
|
|
16907
|
+
if (this.consumePeeked("h-") && (s = Po("height", this.rest, this.context, u == null ? void 0 : u.height), s) || this.consumePeeked("w-") && (s = Po("width", this.rest, this.context, u == null ? void 0 : u.width), s) || this.consumePeeked("min-w-") && (s = Er("minWidth", this.rest, this.context, u == null ? void 0 : u.minWidth), s) || this.consumePeeked("min-h-") && (s = Er("minHeight", this.rest, this.context, u == null ? void 0 : u.minHeight), s) || this.consumePeeked("max-w-") && (s = Er("maxWidth", this.rest, this.context, u == null ? void 0 : u.maxWidth), s) || this.consumePeeked("max-h-") && (s = Er("maxHeight", this.rest, this.context, u == null ? void 0 : u.maxHeight), s) || this.consumePeeked("leading-") && (s = ko(this.rest, u == null ? void 0 : u.lineHeight), s) || this.consumePeeked("text-") && (s = So(this.rest, u == null ? void 0 : u.fontSize, this.context), s || (s = ct("text", this.rest, u == null ? void 0 : u.textColor), s) || this.consumePeeked("opacity-") && (s = Fr("text", this.rest), s)) || this.consumePeeked("font-") && (s = Oo(this.rest, u == null ? void 0 : u.fontFamily), s) || this.consumePeeked("aspect-") && (this.consumePeeked("ratio-") && Fe("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"), s = Ge("aspectRatio", this.rest, { fractions: true }), s) || this.consumePeeked("tint-") && (s = ct("tint", this.rest, u == null ? void 0 : u.colors), s) || this.consumePeeked("bg-") && (s = ct("bg", this.rest, u == null ? void 0 : u.backgroundColor), s || this.consumePeeked("opacity-") && (s = Fr("bg", this.rest), s)) || this.consumePeeked("border") && (s = al(this.rest, u), s || this.consumePeeked("-opacity-") && (s = Fr("border", this.rest), s)) || this.consumePeeked("rounded") && (s = ll(this.rest, u == null ? void 0 : u.borderRadius), s) || this.consumePeeked("bottom-") && (s = Ct("bottom", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("top-") && (s = Ct("top", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("left-") && (s = Ct("left", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("right-") && (s = Ct("right", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("inset-") && (s = Ct("inset", this.rest, this.isNegative, u == null ? void 0 : u.inset), s) || this.consumePeeked("flex-") && (this.consumePeeked("grow") ? s = wr("Grow", this.rest, u == null ? void 0 : u.flexGrow) : this.consumePeeked("shrink") ? s = wr("Shrink", this.rest, u == null ? void 0 : u.flexShrink) : s = cl(this.rest, u == null ? void 0 : u.flex), s) || this.consumePeeked("grow") && (s = wr("Grow", this.rest, u == null ? void 0 : u.flexGrow), s) || this.consumePeeked("shrink") && (s = wr("Shrink", this.rest, u == null ? void 0 : u.flexShrink), s) || this.consumePeeked("shadow-color-opacity-") && (s = Fr("shadow", this.rest), s) || this.consumePeeked("shadow-opacity-") && (s = hl(this.rest), s) || this.consumePeeked("shadow-offset-") && (s = ml(this.rest), s) || this.consumePeeked("shadow-radius-") && (s = Ae("shadowRadius", this.rest), s) || this.consumePeeked("shadow-") && (s = ct("shadow", this.rest, u == null ? void 0 : u.colors), s))
|
|
16908
16908
|
return s;
|
|
16909
16909
|
if (this.consumePeeked("elevation-")) {
|
|
16910
16910
|
let a = parseInt(this.rest, 10);
|
|
@@ -16929,7 +16929,7 @@ var _t = class {
|
|
|
16929
16929
|
return false;
|
|
16930
16930
|
if (!(!((n = this.context.device) === null || n === void 0) && n.windowDimensions))
|
|
16931
16931
|
return this.isNull = true, true;
|
|
16932
|
-
let i = this.context.device.windowDimensions, [, o = "", u = "", s = ""] = r, a = u === "w" ? i.width : i.height, l =
|
|
16932
|
+
let i = this.context.device.windowDimensions, [, o = "", u = "", s = ""] = r, a = u === "w" ? i.width : i.height, l = ce(s, this.context);
|
|
16933
16933
|
if (l === null)
|
|
16934
16934
|
return this.isNull = true, true;
|
|
16935
16935
|
let [f, c] = l;
|
|
@@ -16997,7 +16997,7 @@ function vl(e, t) {
|
|
|
16997
16997
|
let d = l[a];
|
|
16998
16998
|
if (d)
|
|
16999
16999
|
return d;
|
|
17000
|
-
let m = new
|
|
17000
|
+
let m = new xr(u);
|
|
17001
17001
|
return l[a] = m, m;
|
|
17002
17002
|
}
|
|
17003
17003
|
function c(...d) {
|
|
@@ -17094,12 +17094,12 @@ async function xl(e, t) {
|
|
|
17094
17094
|
throw new Error("Satori is not initialized: expect `yoga` to be loaded, got " + n);
|
|
17095
17095
|
t.fonts = t.fonts || [];
|
|
17096
17096
|
let r;
|
|
17097
|
-
Lo.has(t.fonts) ? r = Lo.get(t.fonts) : Lo.set(t.fonts, r = new
|
|
17097
|
+
Lo.has(t.fonts) ? r = Lo.get(t.fonts) : Lo.set(t.fonts, r = new zt(t.fonts));
|
|
17098
17098
|
let i = "width" in t ? t.width : void 0, o = "height" in t ? t.height : void 0, u = n.Node.create();
|
|
17099
17099
|
i && u.setWidth(i), o && u.setHeight(o), u.setFlexDirection(n.FLEX_DIRECTION_ROW), u.setFlexWrap(n.WRAP_WRAP), u.setAlignContent(n.ALIGN_AUTO), u.setAlignItems(n.ALIGN_FLEX_START), u.setJustifyContent(n.JUSTIFY_FLEX_START), u.setOverflow(n.OVERFLOW_HIDDEN);
|
|
17100
17100
|
let s = { ...t.graphemeImages }, a = /* @__PURE__ */ new Set();
|
|
17101
17101
|
Re.clear(), await cu(e);
|
|
17102
|
-
let l =
|
|
17102
|
+
let l = Ut(e, { id: "id", parentStyle: {}, inheritedStyle: { fontSize: 16, fontWeight: "normal", fontFamily: "serif", fontStyle: "normal", lineHeight: 1.2, color: "black", opacity: 1, whiteSpace: "normal", _viewportWidth: i, _viewportHeight: o }, parent: u, font: r, embedFont: t.embedFont, debug: t.debug, graphemeImages: s, canLoadAdditionalAssets: !!t.loadAdditionalAsset, onNodeDetected: t.onNodeDetected, getTwStyles: (d, m) => {
|
|
17103
17103
|
let g = { ...Ro({ width: i, height: o, config: t.tailwindConfig })([d]) };
|
|
17104
17104
|
return typeof g.lineHeight == "number" && (g.lineHeight = g.lineHeight / (+g.fontSize || m.fontSize || 16)), g.shadowColor && g.boxShadow && (g.boxShadow = g.boxShadow.replace(/rgba?\([^)]+\)/, g.shadowColor)), g;
|
|
17105
17105
|
} }), f = (await l.next()).value;
|
|
@@ -17307,7 +17307,7 @@ var yoga = (() => {
|
|
|
17307
17307
|
var t2 = (n2 = n2.replace(/[^a-zA-Z0-9_]/g, "$")).charCodeAt(0);
|
|
17308
17308
|
return 48 <= t2 && 57 >= t2 ? "_" + n2 : n2;
|
|
17309
17309
|
}
|
|
17310
|
-
function
|
|
17310
|
+
function U(n2, t2) {
|
|
17311
17311
|
return n2 = W(n2), function() {
|
|
17312
17312
|
return t2.apply(this, arguments);
|
|
17313
17313
|
};
|
|
@@ -17315,7 +17315,7 @@ var yoga = (() => {
|
|
|
17315
17315
|
r = "yoga.wasm", S() || (r = i + r);
|
|
17316
17316
|
var M = [{}, { value: void 0 }, { value: null }, { value: true }, { value: false }], F = [];
|
|
17317
17317
|
function D2(n2) {
|
|
17318
|
-
var t2 = Error, r2 =
|
|
17318
|
+
var t2 = Error, r2 = U(n2, function(t3) {
|
|
17319
17319
|
this.name = n2, this.message = t3, (t3 = Error(t3).stack) !== void 0 && (this.stack = this.toString() + "\n" + t3.replace(/^Error(:[^\n]*)?\n/, ""));
|
|
17320
17320
|
});
|
|
17321
17321
|
return r2.prototype = Object.create(t2.prototype), r2.prototype.constructor = r2, r2.prototype.toString = function() {
|
|
@@ -17326,7 +17326,7 @@ var yoga = (() => {
|
|
|
17326
17326
|
function V(n2) {
|
|
17327
17327
|
throw new k(n2);
|
|
17328
17328
|
}
|
|
17329
|
-
var j = (n2) => (n2 || V("Cannot use deleted val. handle = " + n2), M[n2].value),
|
|
17329
|
+
var j = (n2) => (n2 || V("Cannot use deleted val. handle = " + n2), M[n2].value), G = (n2) => {
|
|
17330
17330
|
switch (n2) {
|
|
17331
17331
|
case void 0:
|
|
17332
17332
|
return 1;
|
|
@@ -17353,20 +17353,20 @@ var yoga = (() => {
|
|
|
17353
17353
|
n2.L.Z = false, n2.delete();
|
|
17354
17354
|
}
|
|
17355
17355
|
}
|
|
17356
|
-
var
|
|
17356
|
+
var z2 = void 0, $ = {};
|
|
17357
17357
|
function Z(n2, t2) {
|
|
17358
17358
|
for (t2 === void 0 && V("ptr should not be undefined"); n2.P; )
|
|
17359
17359
|
t2 = n2.aa(t2), n2 = n2.P;
|
|
17360
17360
|
return t2;
|
|
17361
17361
|
}
|
|
17362
17362
|
var J = {};
|
|
17363
|
-
function
|
|
17363
|
+
function q2(n2) {
|
|
17364
17364
|
var t2 = B(n2 = nz(n2));
|
|
17365
17365
|
return nZ(n2), t2;
|
|
17366
17366
|
}
|
|
17367
17367
|
function K(n2, t2) {
|
|
17368
17368
|
var r2 = J[n2];
|
|
17369
|
-
return r2 === void 0 && V(t2 + " has unknown type " +
|
|
17369
|
+
return r2 === void 0 && V(t2 + " has unknown type " + q2(n2)), r2;
|
|
17370
17370
|
}
|
|
17371
17371
|
function Q() {
|
|
17372
17372
|
}
|
|
@@ -17488,7 +17488,7 @@ var yoga = (() => {
|
|
|
17488
17488
|
r2 = t2.L.S;
|
|
17489
17489
|
else {
|
|
17490
17490
|
var e2 = t2.clone();
|
|
17491
|
-
r2 = this.wa(r2,
|
|
17491
|
+
r2 = this.wa(r2, G(function() {
|
|
17492
17492
|
e2.delete();
|
|
17493
17493
|
})), n2 !== null && n2.push(this.V, r2);
|
|
17494
17494
|
}
|
|
@@ -17525,7 +17525,7 @@ var yoga = (() => {
|
|
|
17525
17525
|
var r2 = [], e2 = {};
|
|
17526
17526
|
throw t2.forEach(function n3(t3) {
|
|
17527
17527
|
e2[t3] || J[t3] || (nl2[t3] ? nl2[t3].forEach(n3) : (r2.push(t3), e2[t3] = true));
|
|
17528
|
-
}), new nN(n2 + ": " + r2.map(
|
|
17528
|
+
}), new nN(n2 + ": " + r2.map(q2).join([", "]));
|
|
17529
17529
|
}
|
|
17530
17530
|
function nw(n2, t2, r2, e2, a2) {
|
|
17531
17531
|
var i2 = t2.length;
|
|
@@ -17644,7 +17644,7 @@ var yoga = (() => {
|
|
|
17644
17644
|
$.hasOwnProperty(n2) && t2.push($[n2]);
|
|
17645
17645
|
return t2;
|
|
17646
17646
|
}, u.flushPendingDeletes = x, u.setDelayFunction = function(n2) {
|
|
17647
|
-
|
|
17647
|
+
z2 = n2, H.length && z2 && z2(x);
|
|
17648
17648
|
}, ne = u.InternalError = D2("InternalError"), ny.prototype.isAliasOf = function(n2) {
|
|
17649
17649
|
if (!(this instanceof ny && n2 instanceof ny))
|
|
17650
17650
|
return false;
|
|
@@ -17664,7 +17664,7 @@ var yoga = (() => {
|
|
|
17664
17664
|
}, ny.prototype.isDeleted = function() {
|
|
17665
17665
|
return !this.L.N;
|
|
17666
17666
|
}, ny.prototype.deleteLater = function() {
|
|
17667
|
-
return this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), H.push(this), H.length === 1 &&
|
|
17667
|
+
return this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), H.push(this), H.length === 1 && z2 && z2(x), this.L.Z = true, this;
|
|
17668
17668
|
}, nA.prototype.pa = function(n2) {
|
|
17669
17669
|
return this.ja && (n2 = this.ja(n2)), n2;
|
|
17670
17670
|
}, nA.prototype.ga = function(n2) {
|
|
@@ -17692,7 +17692,7 @@ var yoga = (() => {
|
|
|
17692
17692
|
var nx = { q: function(n2, t2, r2) {
|
|
17693
17693
|
n2 = B(n2), t2 = K(t2, "wrapper"), r2 = j(r2);
|
|
17694
17694
|
var e2 = [].slice, a2 = t2.M, i2 = a2.W, o2 = a2.P.W, s2 = a2.P.constructor;
|
|
17695
|
-
for (var u2 in n2 =
|
|
17695
|
+
for (var u2 in n2 = U(n2, function() {
|
|
17696
17696
|
a2.P.ia.forEach(function(n3) {
|
|
17697
17697
|
if (this[n3] === o2[n3])
|
|
17698
17698
|
throw new Y("Pure virtual function " + n3 + " must be implemented in JavaScript");
|
|
@@ -17709,7 +17709,7 @@ var yoga = (() => {
|
|
|
17709
17709
|
n3 = Z(a2, n3), $.hasOwnProperty(n3) ? delete $[n3] : V("Tried to unregister unregistered instance: " + n3);
|
|
17710
17710
|
}, n2.prototype = Object.create(i2), r2)
|
|
17711
17711
|
n2.prototype[u2] = r2[u2];
|
|
17712
|
-
return
|
|
17712
|
+
return G(n2);
|
|
17713
17713
|
}, l: function(n2) {
|
|
17714
17714
|
var t2 = ns[n2];
|
|
17715
17715
|
delete ns[n2];
|
|
@@ -17765,7 +17765,7 @@ var yoga = (() => {
|
|
|
17765
17765
|
var r3, a3 = t3.M, o3 = a3.W;
|
|
17766
17766
|
else
|
|
17767
17767
|
o3 = ny.prototype;
|
|
17768
|
-
t3 =
|
|
17768
|
+
t3 = U(d2, function() {
|
|
17769
17769
|
if (Object.getPrototypeOf(this) !== c3)
|
|
17770
17770
|
throw new k("Use 'new' to construct " + l2);
|
|
17771
17771
|
if (h3.X === void 0)
|
|
@@ -17826,7 +17826,7 @@ var yoga = (() => {
|
|
|
17826
17826
|
var t3 = j(n3);
|
|
17827
17827
|
return nR(n3), t3;
|
|
17828
17828
|
}, toWireType: function(n3, t3) {
|
|
17829
|
-
return
|
|
17829
|
+
return G(t3);
|
|
17830
17830
|
}, argPackAdvance: 8, readValueFromPointer: nc, U: null });
|
|
17831
17831
|
}, n: function(n2, t2, r2) {
|
|
17832
17832
|
r2 = np(r2), nv(n2, { name: t2 = B(t2), fromWireType: function(n3) {
|
|
@@ -17993,7 +17993,7 @@ var yoga = (() => {
|
|
|
17993
17993
|
}, t: function(n2, t2, r2, e2, a2) {
|
|
17994
17994
|
n2 = nG[n2], t2 = j(t2), r2 = nj(r2);
|
|
17995
17995
|
var i2 = [];
|
|
17996
|
-
return _[e2 >> 2] =
|
|
17996
|
+
return _[e2 >> 2] = G(i2), n2(t2, r2, i2, a2);
|
|
17997
17997
|
}, j: function(n2, t2, r2, e2) {
|
|
17998
17998
|
n2 = nG[n2], n2(t2 = j(t2), r2 = nj(r2), null, e2);
|
|
17999
17999
|
}, f: nR, g: function(n2, t2) {
|
|
@@ -18602,7 +18602,86 @@ function loadEmoji(code, type) {
|
|
|
18602
18602
|
return fetch(`${api}${code.toUpperCase()}.svg`);
|
|
18603
18603
|
}
|
|
18604
18604
|
|
|
18605
|
-
// src/
|
|
18605
|
+
// src/language/index.ts
|
|
18606
|
+
var FontDetector = class {
|
|
18607
|
+
constructor() {
|
|
18608
|
+
this.rangesByLang = {};
|
|
18609
|
+
}
|
|
18610
|
+
async detect(text, fonts) {
|
|
18611
|
+
await this.load(fonts);
|
|
18612
|
+
const result = {};
|
|
18613
|
+
for (const segment of text) {
|
|
18614
|
+
const lang = this.detectSegment(segment, fonts);
|
|
18615
|
+
if (lang) {
|
|
18616
|
+
result[lang] = result[lang] || "";
|
|
18617
|
+
result[lang] += segment;
|
|
18618
|
+
}
|
|
18619
|
+
}
|
|
18620
|
+
return result;
|
|
18621
|
+
}
|
|
18622
|
+
detectSegment(segment, fonts) {
|
|
18623
|
+
for (const font of fonts) {
|
|
18624
|
+
const range = this.rangesByLang[font];
|
|
18625
|
+
if (range && checkSegmentInRange(segment, range)) {
|
|
18626
|
+
return font;
|
|
18627
|
+
}
|
|
18628
|
+
}
|
|
18629
|
+
return null;
|
|
18630
|
+
}
|
|
18631
|
+
async load(fonts) {
|
|
18632
|
+
let params = "";
|
|
18633
|
+
const existingLang = Object.keys(this.rangesByLang);
|
|
18634
|
+
const langNeedsToLoad = fonts.filter((font) => !existingLang.includes(font));
|
|
18635
|
+
if (langNeedsToLoad.length === 0) {
|
|
18636
|
+
return;
|
|
18637
|
+
}
|
|
18638
|
+
for (const font of langNeedsToLoad) {
|
|
18639
|
+
params += `family=${font}&`;
|
|
18640
|
+
}
|
|
18641
|
+
params += "display=swap";
|
|
18642
|
+
const API = `https://fonts.googleapis.com/css2?${params}`;
|
|
18643
|
+
const fontFace = await (await fetch(API, {
|
|
18644
|
+
headers: {
|
|
18645
|
+
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
|
|
18646
|
+
}
|
|
18647
|
+
})).text();
|
|
18648
|
+
this.addDetectors(fontFace);
|
|
18649
|
+
}
|
|
18650
|
+
addDetectors(input) {
|
|
18651
|
+
const regex = /font-family:\s*'(.+?)';.+?unicode-range:\s*(.+?);/gms;
|
|
18652
|
+
const matches = input.matchAll(regex);
|
|
18653
|
+
for (const [, _lang, range] of matches) {
|
|
18654
|
+
const lang = _lang.replaceAll(" ", "+");
|
|
18655
|
+
if (!this.rangesByLang[lang]) {
|
|
18656
|
+
this.rangesByLang[lang] = [];
|
|
18657
|
+
}
|
|
18658
|
+
this.rangesByLang[lang].push(...convert(range));
|
|
18659
|
+
}
|
|
18660
|
+
}
|
|
18661
|
+
};
|
|
18662
|
+
function convert(input) {
|
|
18663
|
+
return input.split(", ").map((range) => {
|
|
18664
|
+
range = range.replaceAll("U+", "");
|
|
18665
|
+
const [start, end] = range.split("-").map((hex) => parseInt(hex, 16));
|
|
18666
|
+
if (isNaN(end)) {
|
|
18667
|
+
return start;
|
|
18668
|
+
}
|
|
18669
|
+
return [start, end];
|
|
18670
|
+
});
|
|
18671
|
+
}
|
|
18672
|
+
function checkSegmentInRange(segment, range) {
|
|
18673
|
+
const codePoint = segment.codePointAt(0);
|
|
18674
|
+
if (!codePoint)
|
|
18675
|
+
return false;
|
|
18676
|
+
return range.some((val) => {
|
|
18677
|
+
if (typeof val === "number") {
|
|
18678
|
+
return codePoint === val;
|
|
18679
|
+
} else {
|
|
18680
|
+
const [start, end] = val;
|
|
18681
|
+
return start <= codePoint && codePoint <= end;
|
|
18682
|
+
}
|
|
18683
|
+
});
|
|
18684
|
+
}
|
|
18606
18685
|
var languageFontMap = {
|
|
18607
18686
|
"ja-JP": "Noto+Sans+JP",
|
|
18608
18687
|
"ko-KR": "Noto+Sans+KR",
|
|
@@ -18622,6 +18701,8 @@ var languageFontMap = {
|
|
|
18622
18701
|
math: "Noto+Sans+Math",
|
|
18623
18702
|
unknown: "Noto+Sans"
|
|
18624
18703
|
};
|
|
18704
|
+
|
|
18705
|
+
// src/og.ts
|
|
18625
18706
|
async function loadGoogleFont(font, text) {
|
|
18626
18707
|
if (!font || !text)
|
|
18627
18708
|
return;
|
|
@@ -18633,27 +18714,35 @@ async function loadGoogleFont(font, text) {
|
|
|
18633
18714
|
})).text();
|
|
18634
18715
|
const resource = css.match(/src: url\((.+)\) format\('(opentype|truetype)'\)/);
|
|
18635
18716
|
if (!resource)
|
|
18636
|
-
throw new Error("Failed to
|
|
18637
|
-
|
|
18717
|
+
throw new Error("Failed to download dynamic font");
|
|
18718
|
+
const res = await fetch(resource[1]);
|
|
18719
|
+
if (!res.ok) {
|
|
18720
|
+
throw new Error("Failed to download dynamic font. Status: " + res.status);
|
|
18721
|
+
}
|
|
18722
|
+
return res.arrayBuffer();
|
|
18638
18723
|
}
|
|
18724
|
+
var detector = new FontDetector();
|
|
18639
18725
|
var assetCache = /* @__PURE__ */ new Map();
|
|
18640
18726
|
var loadDynamicAsset = ({ emoji }) => {
|
|
18641
18727
|
const fn = async (code, text) => {
|
|
18642
18728
|
if (code === "emoji") {
|
|
18643
18729
|
return `data:image/svg+xml;base64,` + btoa(await (await loadEmoji(getIconCode(text), emoji)).text());
|
|
18644
18730
|
}
|
|
18645
|
-
|
|
18646
|
-
|
|
18731
|
+
const codes = code.split("|");
|
|
18732
|
+
const names = codes.map((code2) => languageFontMap[code2]).filter(Boolean).flat();
|
|
18733
|
+
if (names.length === 0)
|
|
18734
|
+
return [];
|
|
18647
18735
|
try {
|
|
18648
|
-
const
|
|
18649
|
-
|
|
18650
|
-
|
|
18651
|
-
|
|
18652
|
-
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
|
|
18656
|
-
|
|
18736
|
+
const textByFont = await detector.detect(text, names);
|
|
18737
|
+
const fonts = Object.keys(textByFont);
|
|
18738
|
+
const fontData = await Promise.all(fonts.map((font) => loadGoogleFont(font, textByFont[font])));
|
|
18739
|
+
return fontData.map((data, index) => ({
|
|
18740
|
+
name: `satori_${codes[index]}_fallback_${text}`,
|
|
18741
|
+
data,
|
|
18742
|
+
weight: 400,
|
|
18743
|
+
style: "normal",
|
|
18744
|
+
lang: codes[index] === "unknown" ? void 0 : codes[index]
|
|
18745
|
+
}));
|
|
18657
18746
|
} catch (e) {
|
|
18658
18747
|
console.error("Failed to load dynamic font for", text, ". Error:", e);
|
|
18659
18748
|
}
|