@sumcode/svgify
Version:
A lightweight React component designed to dynamically render and style SVG icons.
1,709 lines (1,706 loc) • 122 kB
JavaScript
import Ie, { createContext as ui, useContext as fi, useState as at, useEffect as di } from "react";
var N = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function pi(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var ht = { exports: {} }, me = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var fr;
function hi() {
if (fr) return me;
fr = 1;
var e = Ie, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
function a(l, f, u) {
var c, p = {}, w = null, O = null;
u !== void 0 && (w = "" + u), f.key !== void 0 && (w = "" + f.key), f.ref !== void 0 && (O = f.ref);
for (c in f) n.call(f, c) && !o.hasOwnProperty(c) && (p[c] = f[c]);
if (l && l.defaultProps) for (c in f = l.defaultProps, f) p[c] === void 0 && (p[c] = f[c]);
return { $$typeof: t, type: l, key: w, ref: O, props: p, _owner: i.current };
}
return me.Fragment = r, me.jsx = a, me.jsxs = a, me;
}
var ge = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var dr;
function mi() {
return dr || (dr = 1, process.env.NODE_ENV !== "production" && function() {
var e = Ie, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), l = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), m = Symbol.iterator, g = "@@iterator";
function y(s) {
if (s === null || typeof s != "object")
return null;
var h = m && s[m] || s[g];
return typeof h == "function" ? h : null;
}
var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function E(s) {
{
for (var h = arguments.length, v = new Array(h > 1 ? h - 1 : 0), b = 1; b < h; b++)
v[b - 1] = arguments[b];
x("error", s, v);
}
}
function x(s, h, v) {
{
var b = C.ReactDebugCurrentFrame, A = b.getStackAddendum();
A !== "" && (h += "%s", v = v.concat([A]));
var P = v.map(function(R) {
return String(R);
});
P.unshift("Warning: " + h), Function.prototype.apply.call(console[s], console, P);
}
}
var M = !1, L = !1, j = !1, H = !1, ae = !1, fe;
fe = Symbol.for("react.module.reference");
function Ln(s) {
return !!(typeof s == "string" || typeof s == "function" || s === n || s === o || ae || s === i || s === u || s === c || H || s === O || M || L || j || typeof s == "object" && s !== null && (s.$$typeof === w || s.$$typeof === p || s.$$typeof === a || s.$$typeof === l || s.$$typeof === f || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
s.$$typeof === fe || s.getModuleId !== void 0));
}
function jn(s, h, v) {
var b = s.displayName;
if (b)
return b;
var A = h.displayName || h.name || "";
return A !== "" ? v + "(" + A + ")" : v;
}
function Vt(s) {
return s.displayName || "Context";
}
function Y(s) {
if (s == null)
return null;
if (typeof s.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
return s.displayName || s.name || null;
if (typeof s == "string")
return s;
switch (s) {
case n:
return "Fragment";
case r:
return "Portal";
case o:
return "Profiler";
case i:
return "StrictMode";
case u:
return "Suspense";
case c:
return "SuspenseList";
}
if (typeof s == "object")
switch (s.$$typeof) {
case l:
var h = s;
return Vt(h) + ".Consumer";
case a:
var v = s;
return Vt(v._context) + ".Provider";
case f:
return jn(s, s.render, "ForwardRef");
case p:
var b = s.displayName || null;
return b !== null ? b : Y(s.type) || "Memo";
case w: {
var A = s, P = A._payload, R = A._init;
try {
return Y(R(P));
} catch {
return null;
}
}
}
return null;
}
var ee = Object.assign, de = 0, qt, $t, zt, Wt, Gt, Xt, Jt;
function Yt() {
}
Yt.__reactDisabledLog = !0;
function In() {
{
if (de === 0) {
qt = console.log, $t = console.info, zt = console.warn, Wt = console.error, Gt = console.group, Xt = console.groupCollapsed, Jt = console.groupEnd;
var s = {
configurable: !0,
enumerable: !0,
value: Yt,
writable: !0
};
Object.defineProperties(console, {
info: s,
log: s,
warn: s,
error: s,
group: s,
groupCollapsed: s,
groupEnd: s
});
}
de++;
}
}
function Mn() {
{
if (de--, de === 0) {
var s = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: ee({}, s, {
value: qt
}),
info: ee({}, s, {
value: $t
}),
warn: ee({}, s, {
value: zt
}),
error: ee({}, s, {
value: Wt
}),
group: ee({}, s, {
value: Gt
}),
groupCollapsed: ee({}, s, {
value: Xt
}),
groupEnd: ee({}, s, {
value: Jt
})
});
}
de < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var Ke = C.ReactCurrentDispatcher, Ze;
function _e(s, h, v) {
{
if (Ze === void 0)
try {
throw Error();
} catch (A) {
var b = A.stack.trim().match(/\n( *(at )?)/);
Ze = b && b[1] || "";
}
return `
` + Ze + s;
}
}
var Qe = !1, Re;
{
var Bn = typeof WeakMap == "function" ? WeakMap : Map;
Re = new Bn();
}
function Kt(s, h) {
if (!s || Qe)
return "";
{
var v = Re.get(s);
if (v !== void 0)
return v;
}
var b;
Qe = !0;
var A = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var P;
P = Ke.current, Ke.current = null, In();
try {
if (h) {
var R = function() {
throw Error();
};
if (Object.defineProperty(R.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(R, []);
} catch (V) {
b = V;
}
Reflect.construct(s, [], R);
} else {
try {
R.call();
} catch (V) {
b = V;
}
s.call(R.prototype);
}
} else {
try {
throw Error();
} catch (V) {
b = V;
}
s();
}
} catch (V) {
if (V && b && typeof V.stack == "string") {
for (var _ = V.stack.split(`
`), B = b.stack.split(`
`), k = _.length - 1, D = B.length - 1; k >= 1 && D >= 0 && _[k] !== B[D]; )
D--;
for (; k >= 1 && D >= 0; k--, D--)
if (_[k] !== B[D]) {
if (k !== 1 || D !== 1)
do
if (k--, D--, D < 0 || _[k] !== B[D]) {
var G = `
` + _[k].replace(" at new ", " at ");
return s.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", s.displayName)), typeof s == "function" && Re.set(s, G), G;
}
while (k >= 1 && D >= 0);
break;
}
}
} finally {
Qe = !1, Ke.current = P, Mn(), Error.prepareStackTrace = A;
}
var le = s ? s.displayName || s.name : "", te = le ? _e(le) : "";
return typeof s == "function" && Re.set(s, te), te;
}
function Un(s, h, v) {
return Kt(s, !1);
}
function Hn(s) {
var h = s.prototype;
return !!(h && h.isReactComponent);
}
function Oe(s, h, v) {
if (s == null)
return "";
if (typeof s == "function")
return Kt(s, Hn(s));
if (typeof s == "string")
return _e(s);
switch (s) {
case u:
return _e("Suspense");
case c:
return _e("SuspenseList");
}
if (typeof s == "object")
switch (s.$$typeof) {
case f:
return Un(s.render);
case p:
return Oe(s.type, h, v);
case w: {
var b = s, A = b._payload, P = b._init;
try {
return Oe(P(A), h, v);
} catch {
}
}
}
return "";
}
var pe = Object.prototype.hasOwnProperty, Zt = {}, Qt = C.ReactDebugCurrentFrame;
function Ce(s) {
if (s) {
var h = s._owner, v = Oe(s.type, s._source, h ? h.type : null);
Qt.setExtraStackFrame(v);
} else
Qt.setExtraStackFrame(null);
}
function Vn(s, h, v, b, A) {
{
var P = Function.call.bind(pe);
for (var R in s)
if (P(s, R)) {
var _ = void 0;
try {
if (typeof s[R] != "function") {
var B = Error((b || "React class") + ": " + v + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw B.name = "Invariant Violation", B;
}
_ = s[R](h, R, b, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (k) {
_ = k;
}
_ && !(_ instanceof Error) && (Ce(A), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", b || "React class", v, R, typeof _), Ce(null)), _ instanceof Error && !(_.message in Zt) && (Zt[_.message] = !0, Ce(A), E("Failed %s type: %s", v, _.message), Ce(null));
}
}
}
var qn = Array.isArray;
function et(s) {
return qn(s);
}
function $n(s) {
{
var h = typeof Symbol == "function" && Symbol.toStringTag, v = h && s[Symbol.toStringTag] || s.constructor.name || "Object";
return v;
}
}
function zn(s) {
try {
return er(s), !1;
} catch {
return !0;
}
}
function er(s) {
return "" + s;
}
function tr(s) {
if (zn(s))
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $n(s)), er(s);
}
var he = C.ReactCurrentOwner, Wn = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, rr, nr, tt;
tt = {};
function Gn(s) {
if (pe.call(s, "ref")) {
var h = Object.getOwnPropertyDescriptor(s, "ref").get;
if (h && h.isReactWarning)
return !1;
}
return s.ref !== void 0;
}
function Xn(s) {
if (pe.call(s, "key")) {
var h = Object.getOwnPropertyDescriptor(s, "key").get;
if (h && h.isReactWarning)
return !1;
}
return s.key !== void 0;
}
function Jn(s, h) {
if (typeof s.ref == "string" && he.current && h && he.current.stateNode !== h) {
var v = Y(he.current.type);
tt[v] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Y(he.current.type), s.ref), tt[v] = !0);
}
}
function Yn(s, h) {
{
var v = function() {
rr || (rr = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
};
v.isReactWarning = !0, Object.defineProperty(s, "key", {
get: v,
configurable: !0
});
}
}
function Kn(s, h) {
{
var v = function() {
nr || (nr = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
};
v.isReactWarning = !0, Object.defineProperty(s, "ref", {
get: v,
configurable: !0
});
}
}
var Zn = function(s, h, v, b, A, P, R) {
var _ = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: t,
// Built-in properties that belong on the element
type: s,
key: h,
ref: v,
props: R,
// Record the component responsible for creating this element.
_owner: P
};
return _._store = {}, Object.defineProperty(_._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(_, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: b
}), Object.defineProperty(_, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: A
}), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
};
function Qn(s, h, v, b, A) {
{
var P, R = {}, _ = null, B = null;
v !== void 0 && (tr(v), _ = "" + v), Xn(h) && (tr(h.key), _ = "" + h.key), Gn(h) && (B = h.ref, Jn(h, A));
for (P in h)
pe.call(h, P) && !Wn.hasOwnProperty(P) && (R[P] = h[P]);
if (s && s.defaultProps) {
var k = s.defaultProps;
for (P in k)
R[P] === void 0 && (R[P] = k[P]);
}
if (_ || B) {
var D = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
_ && Yn(R, D), B && Kn(R, D);
}
return Zn(s, _, B, A, b, he.current, R);
}
}
var rt = C.ReactCurrentOwner, ir = C.ReactDebugCurrentFrame;
function se(s) {
if (s) {
var h = s._owner, v = Oe(s.type, s._source, h ? h.type : null);
ir.setExtraStackFrame(v);
} else
ir.setExtraStackFrame(null);
}
var nt;
nt = !1;
function it(s) {
return typeof s == "object" && s !== null && s.$$typeof === t;
}
function or() {
{
if (rt.current) {
var s = Y(rt.current.type);
if (s)
return `
Check the render method of \`` + s + "`.";
}
return "";
}
}
function ei(s) {
return "";
}
var ar = {};
function ti(s) {
{
var h = or();
if (!h) {
var v = typeof s == "string" ? s : s.displayName || s.name;
v && (h = `
Check the top-level render call using <` + v + ">.");
}
return h;
}
}
function sr(s, h) {
{
if (!s._store || s._store.validated || s.key != null)
return;
s._store.validated = !0;
var v = ti(h);
if (ar[v])
return;
ar[v] = !0;
var b = "";
s && s._owner && s._owner !== rt.current && (b = " It was passed a child from " + Y(s._owner.type) + "."), se(s), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, b), se(null);
}
}
function lr(s, h) {
{
if (typeof s != "object")
return;
if (et(s))
for (var v = 0; v < s.length; v++) {
var b = s[v];
it(b) && sr(b, h);
}
else if (it(s))
s._store && (s._store.validated = !0);
else if (s) {
var A = y(s);
if (typeof A == "function" && A !== s.entries)
for (var P = A.call(s), R; !(R = P.next()).done; )
it(R.value) && sr(R.value, h);
}
}
}
function ri(s) {
{
var h = s.type;
if (h == null || typeof h == "string")
return;
var v;
if (typeof h == "function")
v = h.propTypes;
else if (typeof h == "object" && (h.$$typeof === f || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
h.$$typeof === p))
v = h.propTypes;
else
return;
if (v) {
var b = Y(h);
Vn(v, s.props, "prop", b, s);
} else if (h.PropTypes !== void 0 && !nt) {
nt = !0;
var A = Y(h);
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
}
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function ni(s) {
{
for (var h = Object.keys(s.props), v = 0; v < h.length; v++) {
var b = h[v];
if (b !== "children" && b !== "key") {
se(s), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), se(null);
break;
}
}
s.ref !== null && (se(s), E("Invalid attribute `ref` supplied to `React.Fragment`."), se(null));
}
}
var cr = {};
function ur(s, h, v, b, A, P) {
{
var R = Ln(s);
if (!R) {
var _ = "";
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var B = ei();
B ? _ += B : _ += or();
var k;
s === null ? k = "null" : et(s) ? k = "array" : s !== void 0 && s.$$typeof === t ? (k = "<" + (Y(s.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : k = typeof s, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, _);
}
var D = Qn(s, h, v, A, P);
if (D == null)
return D;
if (R) {
var G = h.children;
if (G !== void 0)
if (b)
if (et(G)) {
for (var le = 0; le < G.length; le++)
lr(G[le], s);
Object.freeze && Object.freeze(G);
} else
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
lr(G, s);
}
if (pe.call(h, "key")) {
var te = Y(s), V = Object.keys(h).filter(function(ci) {
return ci !== "key";
}), ot = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!cr[te + ot]) {
var li = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
E(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`, ot, te, li, te), cr[te + ot] = !0;
}
}
return s === n ? ni(D) : ri(D), D;
}
}
function ii(s, h, v) {
return ur(s, h, v, !0);
}
function oi(s, h, v) {
return ur(s, h, v, !1);
}
var ai = oi, si = ii;
ge.Fragment = n, ge.jsx = ai, ge.jsxs = si;
}()), ge;
}
process.env.NODE_ENV === "production" ? ht.exports = hi() : ht.exports = mi();
var Vr = ht.exports, qr = {}, Rt = {}, Ot = {};
Object.defineProperty(Ot, "__esModule", { value: !0 });
Ot.default = Ei;
var pr = "html", hr = "head", Ae = "body", gi = /<([a-zA-Z]+[0-9]?)/, mr = /<head[^]*>/i, gr = /<body[^]*>/i, Fe = function(e, t) {
throw new Error("This browser does not support `document.implementation.createHTMLDocument`");
}, mt = function(e, t) {
throw new Error("This browser does not support `DOMParser.prototype.parseFromString`");
}, yr = typeof window == "object" && window.DOMParser;
if (typeof yr == "function") {
var yi = new yr(), vi = "text/html";
mt = function(e, t) {
return t && (e = "<".concat(t, ">").concat(e, "</").concat(t, ">")), yi.parseFromString(e, vi);
}, Fe = mt;
}
if (typeof document == "object" && document.implementation) {
var Pe = document.implementation.createHTMLDocument();
Fe = function(e, t) {
if (t) {
var r = Pe.documentElement.querySelector(t);
return r && (r.innerHTML = e), Pe;
}
return Pe.documentElement.innerHTML = e, Pe;
};
}
var xe = typeof document == "object" && document.createElement("template"), gt;
xe && xe.content && (gt = function(e) {
return xe.innerHTML = e, xe.content.childNodes;
});
function Ei(e) {
var t, r, n = e.match(gi), i = n && n[1] ? n[1].toLowerCase() : "";
switch (i) {
case pr: {
var o = mt(e);
if (!mr.test(e)) {
var a = o.querySelector(hr);
(t = a == null ? void 0 : a.parentNode) === null || t === void 0 || t.removeChild(a);
}
if (!gr.test(e)) {
var a = o.querySelector(Ae);
(r = a == null ? void 0 : a.parentNode) === null || r === void 0 || r.removeChild(a);
}
return o.querySelectorAll(pr);
}
case hr:
case Ae: {
var l = Fe(e).querySelectorAll(i);
return gr.test(e) && mr.test(e) ? l[0].parentNode.childNodes : l;
}
default: {
if (gt)
return gt(e);
var a = Fe(e, Ae).querySelector(Ae);
return a.childNodes;
}
}
}
var Me = {}, Ct = {}, At = {};
(function(e) {
Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
var t;
(function(n) {
n.Root = "root", n.Text = "text", n.Directive = "directive", n.Comment = "comment", n.Script = "script", n.Style = "style", n.Tag = "tag", n.CDATA = "cdata", n.Doctype = "doctype";
})(t = e.ElementType || (e.ElementType = {}));
function r(n) {
return n.type === t.Tag || n.type === t.Script || n.type === t.Style;
}
e.isTag = r, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype;
})(At);
var T = {}, Z = N && N.__extends || /* @__PURE__ */ function() {
var e = function(t, r) {
return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
n.__proto__ = i;
} || function(n, i) {
for (var o in i) Object.prototype.hasOwnProperty.call(i, o) && (n[o] = i[o]);
}, e(t, r);
};
return function(t, r) {
if (typeof r != "function" && r !== null)
throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
e(t, r);
function n() {
this.constructor = t;
}
t.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
};
}(), Ee = N && N.__assign || function() {
return Ee = Object.assign || function(e) {
for (var t, r = 1, n = arguments.length; r < n; r++) {
t = arguments[r];
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
}
return e;
}, Ee.apply(this, arguments);
};
Object.defineProperty(T, "__esModule", { value: !0 });
T.cloneNode = T.hasChildren = T.isDocument = T.isDirective = T.isComment = T.isText = T.isCDATA = T.isTag = T.Element = T.Document = T.CDATA = T.NodeWithChildren = T.ProcessingInstruction = T.Comment = T.Text = T.DataNode = T.Node = void 0;
var q = At, Pt = (
/** @class */
function() {
function e() {
this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
}
return Object.defineProperty(e.prototype, "parentNode", {
// Read-write aliases for properties
/**
* Same as {@link parent}.
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
*/
get: function() {
return this.parent;
},
set: function(t) {
this.parent = t;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(e.prototype, "previousSibling", {
/**
* Same as {@link prev}.
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
*/
get: function() {
return this.prev;
},
set: function(t) {
this.prev = t;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(e.prototype, "nextSibling", {
/**
* Same as {@link next}.
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
*/
get: function() {
return this.next;
},
set: function(t) {
this.next = t;
},
enumerable: !1,
configurable: !0
}), e.prototype.cloneNode = function(t) {
return t === void 0 && (t = !1), xt(this, t);
}, e;
}()
);
T.Node = Pt;
var Be = (
/** @class */
function(e) {
Z(t, e);
function t(r) {
var n = e.call(this) || this;
return n.data = r, n;
}
return Object.defineProperty(t.prototype, "nodeValue", {
/**
* Same as {@link data}.
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
*/
get: function() {
return this.data;
},
set: function(r) {
this.data = r;
},
enumerable: !1,
configurable: !0
}), t;
}(Pt)
);
T.DataNode = Be;
var $r = (
/** @class */
function(e) {
Z(t, e);
function t() {
var r = e !== null && e.apply(this, arguments) || this;
return r.type = q.ElementType.Text, r;
}
return Object.defineProperty(t.prototype, "nodeType", {
get: function() {
return 3;
},
enumerable: !1,
configurable: !0
}), t;
}(Be)
);
T.Text = $r;
var zr = (
/** @class */
function(e) {
Z(t, e);
function t() {
var r = e !== null && e.apply(this, arguments) || this;
return r.type = q.ElementType.Comment, r;
}
return Object.defineProperty(t.prototype, "nodeType", {
get: function() {
return 8;
},
enumerable: !1,
configurable: !0
}), t;
}(Be)
);
T.Comment = zr;
var Wr = (
/** @class */
function(e) {
Z(t, e);
function t(r, n) {
var i = e.call(this, n) || this;
return i.name = r, i.type = q.ElementType.Directive, i;
}
return Object.defineProperty(t.prototype, "nodeType", {
get: function() {
return 1;
},
enumerable: !1,
configurable: !0
}), t;
}(Be)
);
T.ProcessingInstruction = Wr;
var Ue = (
/** @class */
function(e) {
Z(t, e);
function t(r) {
var n = e.call(this) || this;
return n.children = r, n;
}
return Object.defineProperty(t.prototype, "firstChild", {
// Aliases
/** First child of the node. */
get: function() {
var r;
return (r = this.children[0]) !== null && r !== void 0 ? r : null;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(t.prototype, "lastChild", {
/** Last child of the node. */
get: function() {
return this.children.length > 0 ? this.children[this.children.length - 1] : null;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(t.prototype, "childNodes", {
/**
* Same as {@link children}.
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
*/
get: function() {
return this.children;
},
set: function(r) {
this.children = r;
},
enumerable: !1,
configurable: !0
}), t;
}(Pt)
);
T.NodeWithChildren = Ue;
var Gr = (
/** @class */
function(e) {
Z(t, e);
function t() {
var r = e !== null && e.apply(this, arguments) || this;
return r.type = q.ElementType.CDATA, r;
}
return Object.defineProperty(t.prototype, "nodeType", {
get: function() {
return 4;
},
enumerable: !1,
configurable: !0
}), t;
}(Ue)
);
T.CDATA = Gr;
var Xr = (
/** @class */
function(e) {
Z(t, e);
function t() {
var r = e !== null && e.apply(this, arguments) || this;
return r.type = q.ElementType.Root, r;
}
return Object.defineProperty(t.prototype, "nodeType", {
get: function() {
return 9;
},
enumerable: !1,
configurable: !0
}), t;
}(Ue)
);
T.Document = Xr;
var Jr = (
/** @class */
function(e) {
Z(t, e);
function t(r, n, i, o) {
i === void 0 && (i = []), o === void 0 && (o = r === "script" ? q.ElementType.Script : r === "style" ? q.ElementType.Style : q.ElementType.Tag);
var a = e.call(this, i) || this;
return a.name = r, a.attribs = n, a.type = o, a;
}
return Object.defineProperty(t.prototype, "nodeType", {
get: function() {
return 1;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(t.prototype, "tagName", {
// DOM Level 1 aliases
/**
* Same as {@link name}.
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
*/
get: function() {
return this.name;
},
set: function(r) {
this.name = r;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(t.prototype, "attributes", {
get: function() {
var r = this;
return Object.keys(this.attribs).map(function(n) {
var i, o;
return {
name: n,
value: r.attribs[n],
namespace: (i = r["x-attribsNamespace"]) === null || i === void 0 ? void 0 : i[n],
prefix: (o = r["x-attribsPrefix"]) === null || o === void 0 ? void 0 : o[n]
};
});
},
enumerable: !1,
configurable: !0
}), t;
}(Ue)
);
T.Element = Jr;
function Yr(e) {
return (0, q.isTag)(e);
}
T.isTag = Yr;
function Kr(e) {
return e.type === q.ElementType.CDATA;
}
T.isCDATA = Kr;
function Zr(e) {
return e.type === q.ElementType.Text;
}
T.isText = Zr;
function Qr(e) {
return e.type === q.ElementType.Comment;
}
T.isComment = Qr;
function en(e) {
return e.type === q.ElementType.Directive;
}
T.isDirective = en;
function tn(e) {
return e.type === q.ElementType.Root;
}
T.isDocument = tn;
function bi(e) {
return Object.prototype.hasOwnProperty.call(e, "children");
}
T.hasChildren = bi;
function xt(e, t) {
t === void 0 && (t = !1);
var r;
if (Zr(e))
r = new $r(e.data);
else if (Qr(e))
r = new zr(e.data);
else if (Yr(e)) {
var n = t ? st(e.children) : [], i = new Jr(e.name, Ee({}, e.attribs), n);
n.forEach(function(f) {
return f.parent = i;
}), e.namespace != null && (i.namespace = e.namespace), e["x-attribsNamespace"] && (i["x-attribsNamespace"] = Ee({}, e["x-attribsNamespace"])), e["x-attribsPrefix"] && (i["x-attribsPrefix"] = Ee({}, e["x-attribsPrefix"])), r = i;
} else if (Kr(e)) {
var n = t ? st(e.children) : [], o = new Gr(n);
n.forEach(function(u) {
return u.parent = o;
}), r = o;
} else if (tn(e)) {
var n = t ? st(e.children) : [], a = new Xr(n);
n.forEach(function(u) {
return u.parent = a;
}), e["x-mode"] && (a["x-mode"] = e["x-mode"]), r = a;
} else if (en(e)) {
var l = new Wr(e.name, e.data);
e["x-name"] != null && (l["x-name"] = e["x-name"], l["x-publicId"] = e["x-publicId"], l["x-systemId"] = e["x-systemId"]), r = l;
} else
throw new Error("Not implemented yet: ".concat(e.type));
return r.startIndex = e.startIndex, r.endIndex = e.endIndex, e.sourceCodeLocation != null && (r.sourceCodeLocation = e.sourceCodeLocation), r;
}
T.cloneNode = xt;
function st(e) {
for (var t = e.map(function(n) {
return xt(n, !0);
}), r = 1; r < t.length; r++)
t[r].prev = t[r - 1], t[r - 1].next = t[r];
return t;
}
(function(e) {
var t = N && N.__createBinding || (Object.create ? function(l, f, u, c) {
c === void 0 && (c = u);
var p = Object.getOwnPropertyDescriptor(f, u);
(!p || ("get" in p ? !f.__esModule : p.writable || p.configurable)) && (p = { enumerable: !0, get: function() {
return f[u];
} }), Object.defineProperty(l, c, p);
} : function(l, f, u, c) {
c === void 0 && (c = u), l[c] = f[u];
}), r = N && N.__exportStar || function(l, f) {
for (var u in l) u !== "default" && !Object.prototype.hasOwnProperty.call(f, u) && t(f, l, u);
};
Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
var n = At, i = T;
r(T, e);
var o = {
withStartIndices: !1,
withEndIndices: !1,
xmlMode: !1
}, a = (
/** @class */
function() {
function l(f, u, c) {
this.dom = [], this.root = new i.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof u == "function" && (c = u, u = o), typeof f == "object" && (u = f, f = void 0), this.callback = f ?? null, this.options = u ?? o, this.elementCB = c ?? null;
}
return l.prototype.onparserinit = function(f) {
this.parser = f;
}, l.prototype.onreset = function() {
this.dom = [], this.root = new i.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
}, l.prototype.onend = function() {
this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
}, l.prototype.onerror = function(f) {
this.handleCallback(f);
}, l.prototype.onclosetag = function() {
this.lastNode = null;
var f = this.tagStack.pop();
this.options.withEndIndices && (f.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(f);
}, l.prototype.onopentag = function(f, u) {
var c = this.options.xmlMode ? n.ElementType.Tag : void 0, p = new i.Element(f, u, void 0, c);
this.addNode(p), this.tagStack.push(p);
}, l.prototype.ontext = function(f) {
var u = this.lastNode;
if (u && u.type === n.ElementType.Text)
u.data += f, this.options.withEndIndices && (u.endIndex = this.parser.endIndex);
else {
var c = new i.Text(f);
this.addNode(c), this.lastNode = c;
}
}, l.prototype.oncomment = function(f) {
if (this.lastNode && this.lastNode.type === n.ElementType.Comment) {
this.lastNode.data += f;
return;
}
var u = new i.Comment(f);
this.addNode(u), this.lastNode = u;
}, l.prototype.oncommentend = function() {
this.lastNode = null;
}, l.prototype.oncdatastart = function() {
var f = new i.Text(""), u = new i.CDATA([f]);
this.addNode(u), f.parent = u, this.lastNode = f;
}, l.prototype.oncdataend = function() {
this.lastNode = null;
}, l.prototype.onprocessinginstruction = function(f, u) {
var c = new i.ProcessingInstruction(f, u);
this.addNode(c);
}, l.prototype.handleCallback = function(f) {
if (typeof this.callback == "function")
this.callback(f, this.dom);
else if (f)
throw f;
}, l.prototype.addNode = function(f) {
var u = this.tagStack[this.tagStack.length - 1], c = u.children[u.children.length - 1];
this.options.withStartIndices && (f.startIndex = this.parser.startIndex), this.options.withEndIndices && (f.endIndex = this.parser.endIndex), u.children.push(f), c && (f.prev = c, c.next = f), f.parent = u, this.lastNode = null;
}, l;
}()
);
e.DomHandler = a, e.default = a;
})(Ct);
var rn = {};
(function(e) {
Object.defineProperty(e, "__esModule", { value: !0 }), e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES = void 0, e.CASE_SENSITIVE_TAG_NAMES = [
"animateMotion",
"animateTransform",
"clipPath",
"feBlend",
"feColorMatrix",
"feComponentTransfer",
"feComposite",
"feConvolveMatrix",
"feDiffuseLighting",
"feDisplacementMap",
"feDropShadow",
"feFlood",
"feFuncA",
"feFuncB",
"feFuncG",
"feFuncR",
"feGaussianBlur",
"feImage",
"feMerge",
"feMergeNode",
"feMorphology",
"feOffset",
"fePointLight",
"feSpecularLighting",
"feSpotLight",
"feTile",
"feTurbulence",
"foreignObject",
"linearGradient",
"radialGradient",
"textPath"
], e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t, r) {
return t[r.toLowerCase()] = r, t;
}, {});
})(rn);
Object.defineProperty(Me, "__esModule", { value: !0 });
Me.formatAttributes = nn;
Me.formatDOM = on;
var ke = Ct, wi = rn;
function Si(e) {
return wi.CASE_SENSITIVE_TAG_NAMES_MAP[e];
}
function nn(e) {
for (var t = {}, r = 0, n = e.length; r < n; r++) {
var i = e[r];
t[i.name] = i.value;
}
return t;
}
function Ti(e) {
e = e.toLowerCase();
var t = Si(e);
return t || e;
}
function on(e, t, r) {
t === void 0 && (t = null);
for (var n = [], i, o = 0, a = e.length; o < a; o++) {
var l = e[o];
switch (l.nodeType) {
case 1: {
var f = Ti(l.nodeName);
i = new ke.Element(f, nn(l.attributes)), i.children = on(
// template children are on content
f === "template" ? l.content.childNodes : l.childNodes,
i
);
break;
}
case 3:
i = new ke.Text(l.nodeValue);
break;
case 8:
i = new ke.Comment(l.nodeValue);
break;
default:
continue;
}
var u = n[o - 1] || null;
u && (u.next = i), i.parent = t, i.prev = u, i.next = null, n.push(i);
}
return r && (i = new ke.ProcessingInstruction(r.substring(0, r.indexOf(" ")).toLowerCase(), r), i.next = n[0] || null, i.parent = t, n.unshift(i), n[1] && (n[1].prev = n[0])), n;
}
var _i = N && N.__importDefault || function(e) {
return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(Rt, "__esModule", { value: !0 });
Rt.default = Ai;
var Ri = _i(Ot), Oi = Me, Ci = /<(![a-zA-Z\s]+)>/;
function Ai(e) {
if (typeof e != "string")
throw new TypeError("First argument must be a string");
if (!e)
return [];
var t = e.match(Ci), r = t ? t[1] : void 0;
return (0, Oi.formatDOM)((0, Ri.default)(e), null, r);
}
var He = {}, X = {}, Ve = {}, Pi = 0;
Ve.SAME = Pi;
var xi = 1;
Ve.CAMELCASE = xi;
Ve.possibleStandardNames = {
accept: 0,
acceptCharset: 1,
"accept-charset": "acceptCharset",
accessKey: 1,
action: 0,
allowFullScreen: 1,
alt: 0,
as: 0,
async: 0,
autoCapitalize: 1,
autoComplete: 1,
autoCorrect: 1,
autoFocus: 1,
autoPlay: 1,
autoSave: 1,
capture: 0,
cellPadding: 1,
cellSpacing: 1,
challenge: 0,
charSet: 1,
checked: 0,
children: 0,
cite: 0,
class: "className",
classID: 1,
className: 1,
cols: 0,
colSpan: 1,
content: 0,
contentEditable: 1,
contextMenu: 1,
controls: 0,
controlsList: 1,
coords: 0,
crossOrigin: 1,
dangerouslySetInnerHTML: 1,
data: 0,
dateTime: 1,
default: 0,
defaultChecked: 1,
defaultValue: 1,
defer: 0,
dir: 0,
disabled: 0,
disablePictureInPicture: 1,
disableRemotePlayback: 1,
download: 0,
draggable: 0,
encType: 1,
enterKeyHint: 1,
for: "htmlFor",
form: 0,
formMethod: 1,
formAction: 1,
formEncType: 1,
formNoValidate: 1,
formTarget: 1,
frameBorder: 1,
headers: 0,
height: 0,
hidden: 0,
high: 0,
href: 0,
hrefLang: 1,
htmlFor: 1,
httpEquiv: 1,
"http-equiv": "httpEquiv",
icon: 0,
id: 0,
innerHTML: 1,
inputMode: 1,
integrity: 0,
is: 0,
itemID: 1,
itemProp: 1,
itemRef: 1,
itemScope: 1,
itemType: 1,
keyParams: 1,
keyType: 1,
kind: 0,
label: 0,
lang: 0,
list: 0,
loop: 0,
low: 0,
manifest: 0,
marginWidth: 1,
marginHeight: 1,
max: 0,
maxLength: 1,
media: 0,
mediaGroup: 1,
method: 0,
min: 0,
minLength: 1,
multiple: 0,
muted: 0,
name: 0,
noModule: 1,
nonce: 0,
noValidate: 1,
open: 0,
optimum: 0,
pattern: 0,
placeholder: 0,
playsInline: 1,
poster: 0,
preload: 0,
profile: 0,
radioGroup: 1,
readOnly: 1,
referrerPolicy: 1,
rel: 0,
required: 0,
reversed: 0,
role: 0,
rows: 0,
rowSpan: 1,
sandbox: 0,
scope: 0,
scoped: 0,
scrolling: 0,
seamless: 0,
selected: 0,
shape: 0,
size: 0,
sizes: 0,
span: 0,
spellCheck: 1,
src: 0,
srcDoc: 1,
srcLang: 1,
srcSet: 1,
start: 0,
step: 0,
style: 0,
summary: 0,
tabIndex: 1,
target: 0,
title: 0,
type: 0,
useMap: 1,
value: 0,
width: 0,
wmode: 0,
wrap: 0,
about: 0,
accentHeight: 1,
"accent-height": "accentHeight",
accumulate: 0,
additive: 0,
alignmentBaseline: 1,
"alignment-baseline": "alignmentBaseline",
allowReorder: 1,
alphabetic: 0,
amplitude: 0,
arabicForm: 1,
"arabic-form": "arabicForm",
ascent: 0,
attributeName: 1,
attributeType: 1,
autoReverse: 1,
azimuth: 0,
baseFrequency: 1,
baselineShift: 1,
"baseline-shift": "baselineShift",
baseProfile: 1,
bbox: 0,
begin: 0,
bias: 0,
by: 0,
calcMode: 1,
capHeight: 1,
"cap-height": "capHeight",
clip: 0,
clipPath: 1,
"clip-path": "clipPath",
clipPathUnits: 1,
clipRule: 1,
"clip-rule": "clipRule",
color: 0,
colorInterpolation: 1,
"color-interpolation": "colorInterpolation",
colorInterpolationFilters: 1,
"color-interpolation-filters": "colorInterpolationFilters",
colorProfile: 1,
"color-profile": "colorProfile",
colorRendering: 1,
"color-rendering": "colorRendering",
contentScriptType: 1,
contentStyleType: 1,
cursor: 0,
cx: 0,
cy: 0,
d: 0,
datatype: 0,
decelerate: 0,
descent: 0,
diffuseConstant: 1,
direction: 0,
display: 0,
divisor: 0,
dominantBaseline: 1,
"dominant-baseline": "dominantBaseline",
dur: 0,
dx: 0,
dy: 0,
edgeMode: 1,
elevation: 0,
enableBackground: 1,
"enable-background": "enableBackground",
end: 0,
exponent: 0,
externalResourcesRequired: 1,
fill: 0,
fillOpacity: 1,
"fill-opacity": "fillOpacity",
fillRule: 1,
"fill-rule": "fillRule",
filter: 0,
filterRes: 1,
filterUnits: 1,
floodOpacity: 1,
"flood-opacity": "floodOpacity",
floodColor: 1,
"flood-color": "floodColor",
focusable: 0,
fontFamily: 1,
"font-family": "fontFamily",
fontSize: 1,
"font-size": "fontSize",
fontSizeAdjust: 1,
"font-size-adjust": "fontSizeAdjust",
fontStretch: 1,
"font-stretch": "fontStretch",
fontStyle: 1,
"font-style": "fontStyle",
fontVariant: 1,
"font-variant": "fontVariant",
fontWeight: 1,
"font-weight": "fontWeight",
format: 0,
from: 0,
fx: 0,
fy: 0,
g1: 0,
g2: 0,
glyphName: 1,
"glyph-name": "glyphName",
glyphOrientationHorizontal: 1,
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
glyphOrientationVertical: 1,
"glyph-orientation-vertical": "glyphOrientationVertical",
glyphRef: 1,
gradientTransform: 1,
gradientUnits: 1,
hanging: 0,
horizAdvX: 1,
"horiz-adv-x": "horizAdvX",
horizOriginX: 1,
"horiz-origin-x": "horizOriginX",
ideographic: 0,
imageRendering: 1,
"image-rendering": "imageRendering",
in2: 0,
in: 0,
inlist: 0,
intercept: 0,
k1: 0,
k2: 0,
k3: 0,
k4: 0,
k: 0,
kernelMatrix: 1,
kernelUnitLength: 1,
kerning: 0,
keyPoints: 1,
keySplines: 1,
keyTimes: 1,
lengthAdjust: 1,
letterSpacing: 1,
"letter-spacing": "letterSpacing",
lightingColor: 1,
"lighting-color": "lightingColor",
limitingConeAngle: 1,
local: 0,
markerEnd: 1,
"marker-end": "markerEnd",
markerHeight: 1,
markerMid: 1,
"marker-mid": "markerMid",
markerStart: 1,
"marker-start": "markerStart",
markerUnits: 1,
markerWidth: 1,
mask: 0,
maskContentUnits: 1,
maskUnits: 1,
mathematical: 0,
mode: 0,
numOctaves: 1,
offset: 0,
opacity: 0,
operator: 0,
order: 0,
orient: 0,
orientation: 0,
origin: 0,
overflow: 0,
overlinePosition: 1,
"overline-position": "overlinePosition",
overlineThickness: 1,
"overline-thickness": "overlineThickness",
paintOrder: 1,
"paint-order": "paintOrder",
panose1: 0,
"panose-1": "panose1",
pathLength: 1,
patternContentUnits: 1,
patternTransform: 1,
patternUnits: 1,
pointerEvents: 1,
"pointer-events": "pointerEvents",
points: 0,
pointsAtX: 1,
pointsAtY: 1,
pointsAtZ: 1,
prefix: 0,
preserveAlpha: 1,
preserveAspectRatio: 1,
primitiveUnits: 1,
property: 0,
r: 0,
radius: 0,
refX: 1,
refY: 1,
renderingIntent: 1,
"rendering-intent": "renderingIntent",
repeatCount: 1,
repeatDur: 1,
requiredExtensions: 1,
requiredFeatures: 1,
resource: 0,
restart: 0,
result: 0,
results: 0,
rotate: 0,
rx: 0,
ry: 0,
scale: 0,
security: 0,
seed: 0,
shapeRendering: 1,
"shape-rendering": "shapeRendering",
slope: 0,
spacing: 0,
specularConstant: 1,
specularExponent: 1,
speed: 0,
spreadMethod: 1,
startOffset: 1,
stdDeviation: 1,
stemh: 0,
stemv: 0,
stitchTiles: 1,
stopColor: 1,
"stop-color": "stopColor",
stopOpacity: 1,
"stop-opacity": "stopOpacity",
strikethroughPosition: 1,
"strikethrough-position": "strikethroughPosition",
strikethroughThickness: 1,
"strikethrough-thickness": "strikethroughThickness",
string: 0,
stroke: 0,
strokeDasharray: 1,
"stroke-dasharray": "strokeDasharray",
strokeDashoffset: 1,
"stroke-dashoffset": "strokeDashoffset",
strokeLinecap: 1,
"stroke-linecap": "strokeLinecap",
strokeLinejoin: 1,
"stroke-linejoin": "strokeLinejoin",
strokeMiterlimit: 1,
"stroke-miterlimit": "strokeMiterlimit",
strokeWidth: 1,
"stroke-width": "strokeWidth",
strokeOpacity: 1,
"stroke-opacity": "strokeOpacity",
suppressContentEditableWarning: 1,
suppressHydrationWarning: 1,
surfaceScale: 1,
systemLanguage: 1,
tableValues: 1,
targetX: 1,
targetY: 1,
textAnchor: 1,
"text-anchor": "textAnchor",
textDecoration: 1,
"text-decoration": "textDecoration",
textLength: 1,
textRendering: 1,
"text-rendering": "textRendering",
to: 0,
transform: 0,
typeof: 0,
u1: 0,
u2: 0,
underlinePosition: 1,
"underline-position": "underlinePosition",
underlineThickness: 1,
"underline-thickness": "underlineThickness",
unicode: 0,
unicodeBidi: 1,
"unicode-bidi": "unicodeBidi",
unicodeRange: 1,
"unicode-range": "unicodeRange",
unitsPerEm: 1,
"units-per-em": "unitsPerEm",
unselectable: 0,
vAlphabetic: 1,
"v-alphabetic": "vAlphabetic",
values: 0,
vectorEffect: 1,
"vector-effect": "vectorEffect",
version: 0,
vertAdvY: 1,
"vert-adv-y": "vertAdvY",
vertOriginX: 1,
"vert-origin-x": "vertOriginX",
vertOriginY: 1,
"vert-origin-y": "vertOriginY",
vHanging: 1,
"v-hanging": "vHanging",
vIdeographic: 1,
"v-ideographic": "vIdeographic",
viewBox: 1,
viewTarget: 1,
visibility: 0,
vMathematical: 1,
"v-mathematical": "vMathematical",
vocab: 0,
widths: 0,
wordSpacing: 1,
"word-spacing": "wordSpacing",
writingMode: 1,
"writing-mode": "writingMode",
x1: 0,
x2: 0,
x: 0,
xChannelSelector: 1,
xHeight: 1,
"x-height": "xHeight",
xlinkActuate: 1,
"xlink:actuate": "xlinkActuate",
xlinkArcrole: 1,
"xlink:arcrole": "xlinkArcrole",
xlinkHref: 1,
"xlink:href": "xlinkHref",
xlinkRole: 1,
"xlink:role": "xlinkRole",
xlinkShow: 1,
"xlink:show": "xlinkShow",
xlinkTitle: 1,
"xlink:title": "xlinkTitle",
xlinkType: 1,
"xlink:type": "xlinkType",
xmlBase: 1,
"xml:base": "xmlBase",
xmlLang: 1,
"xml:lang": "xmlLang",
xmlns: 0,
"xml:space": "xmlSpace",
xmlnsXlink: 1,