summaryrefslogtreecommitdiff
path: root/includes/external/addressbook/node_modules/dom-serializer/lib/esm
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
committerRaindropsSys <raindrops@equestria.dev>2023-11-17 23:25:29 +0100
commit953ddd82e48dd206cef5ac94456549aed13b3ad5 (patch)
tree8f003106ee2e7f422e5a22d2ee04d0db302e66c0 /includes/external/addressbook/node_modules/dom-serializer/lib/esm
parent62a9199846b0c07c03218703b33e8385764f42d9 (diff)
downloadpluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.gz
pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.tar.bz2
pluralconnect-953ddd82e48dd206cef5ac94456549aed13b3ad5.zip
Updated 30 files and deleted 2976 files (automated)
Diffstat (limited to 'includes/external/addressbook/node_modules/dom-serializer/lib/esm')
-rw-r--r--includes/external/addressbook/node_modules/dom-serializer/lib/esm/foreignNames.d.ts3
-rw-r--r--includes/external/addressbook/node_modules/dom-serializer/lib/esm/foreignNames.d.ts.map1
-rw-r--r--includes/external/addressbook/node_modules/dom-serializer/lib/esm/foreignNames.js100
-rw-r--r--includes/external/addressbook/node_modules/dom-serializer/lib/esm/index.d.ts52
-rw-r--r--includes/external/addressbook/node_modules/dom-serializer/lib/esm/index.d.ts.map1
-rw-r--r--includes/external/addressbook/node_modules/dom-serializer/lib/esm/index.js190
-rw-r--r--includes/external/addressbook/node_modules/dom-serializer/lib/esm/package.json1
7 files changed, 0 insertions, 348 deletions
diff --git a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/foreignNames.d.ts b/includes/external/addressbook/node_modules/dom-serializer/lib/esm/foreignNames.d.ts
deleted file mode 100644
index a8b0938..0000000
--- a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/foreignNames.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export declare const elementNames: Map<string, string>;
-export declare const attributeNames: Map<string, string>;
-//# sourceMappingURL=foreignNames.d.ts.map \ No newline at end of file
diff --git a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/foreignNames.d.ts.map b/includes/external/addressbook/node_modules/dom-serializer/lib/esm/foreignNames.d.ts.map
deleted file mode 100644
index f471fd0..0000000
--- a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/foreignNames.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"foreignNames.d.ts","sourceRoot":"","sources":["../../src/foreignNames.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,qBAwCxB,CAAC;AACF,eAAO,MAAM,cAAc,qBA8D1B,CAAC"} \ No newline at end of file
diff --git a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/foreignNames.js b/includes/external/addressbook/node_modules/dom-serializer/lib/esm/foreignNames.js
deleted file mode 100644
index ebd6272..0000000
--- a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/foreignNames.js
+++ /dev/null
@@ -1,100 +0,0 @@
-export const elementNames = new Map([
- "altGlyph",
- "altGlyphDef",
- "altGlyphItem",
- "animateColor",
- "animateMotion",
- "animateTransform",
- "clipPath",
- "feBlend",
- "feColorMatrix",
- "feComponentTransfer",
- "feComposite",
- "feConvolveMatrix",
- "feDiffuseLighting",
- "feDisplacementMap",
- "feDistantLight",
- "feDropShadow",
- "feFlood",
- "feFuncA",
- "feFuncB",
- "feFuncG",
- "feFuncR",
- "feGaussianBlur",
- "feImage",
- "feMerge",
- "feMergeNode",
- "feMorphology",
- "feOffset",
- "fePointLight",
- "feSpecularLighting",
- "feSpotLight",
- "feTile",
- "feTurbulence",
- "foreignObject",
- "glyphRef",
- "linearGradient",
- "radialGradient",
- "textPath",
-].map((val) => [val.toLowerCase(), val]));
-export const attributeNames = new Map([
- "definitionURL",
- "attributeName",
- "attributeType",
- "baseFrequency",
- "baseProfile",
- "calcMode",
- "clipPathUnits",
- "diffuseConstant",
- "edgeMode",
- "filterUnits",
- "glyphRef",
- "gradientTransform",
- "gradientUnits",
- "kernelMatrix",
- "kernelUnitLength",
- "keyPoints",
- "keySplines",
- "keyTimes",
- "lengthAdjust",
- "limitingConeAngle",
- "markerHeight",
- "markerUnits",
- "markerWidth",
- "maskContentUnits",
- "maskUnits",
- "numOctaves",
- "pathLength",
- "patternContentUnits",
- "patternTransform",
- "patternUnits",
- "pointsAtX",
- "pointsAtY",
- "pointsAtZ",
- "preserveAlpha",
- "preserveAspectRatio",
- "primitiveUnits",
- "refX",
- "refY",
- "repeatCount",
- "repeatDur",
- "requiredExtensions",
- "requiredFeatures",
- "specularConstant",
- "specularExponent",
- "spreadMethod",
- "startOffset",
- "stdDeviation",
- "stitchTiles",
- "surfaceScale",
- "systemLanguage",
- "tableValues",
- "targetX",
- "targetY",
- "textLength",
- "viewBox",
- "viewTarget",
- "xChannelSelector",
- "yChannelSelector",
- "zoomAndPan",
-].map((val) => [val.toLowerCase(), val]));
diff --git a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/index.d.ts b/includes/external/addressbook/node_modules/dom-serializer/lib/esm/index.d.ts
deleted file mode 100644
index cdf04f0..0000000
--- a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/index.d.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-import type { AnyNode } from "domhandler";
-export interface DomSerializerOptions {
- /**
- * Print an empty attribute's value.
- *
- * @default xmlMode
- * @example With <code>emptyAttrs: false</code>: <code>&lt;input checked&gt;</code>
- * @example With <code>emptyAttrs: true</code>: <code>&lt;input checked=""&gt;</code>
- */
- emptyAttrs?: boolean;
- /**
- * Print self-closing tags for tags without contents.
- *
- * @default xmlMode
- * @example With <code>selfClosingTags: false</code>: <code>&lt;foo&gt;&lt;/foo&gt;</code>
- * @example With <code>selfClosingTags: true</code>: <code>&lt;foo /&gt;</code>
- */
- selfClosingTags?: boolean;
- /**
- * Treat the input as an XML document; enables the `emptyAttrs` and `selfClosingTags` options.
- *
- * If the value is `"foreign"`, it will try to correct mixed-case attribute names.
- *
- * @default false
- */
- xmlMode?: boolean | "foreign";
- /**
- * Encode characters that are either reserved in HTML or XML.
- *
- * If `xmlMode` is `true` or the value not `'utf8'`, characters outside of the utf8 range will be encoded as well.
- *
- * @default `decodeEntities`
- */
- encodeEntities?: boolean | "utf8";
- /**
- * Option inherited from parsing; will be used as the default value for `encodeEntities`.
- *
- * @default true
- */
- decodeEntities?: boolean;
-}
-/**
- * Renders a DOM node or an array of DOM nodes to a string.
- *
- * Can be thought of as the equivalent of the `outerHTML` of the passed node(s).
- *
- * @param node Node to be rendered.
- * @param options Changes serialization behavior
- */
-export declare function render(node: AnyNode | ArrayLike<AnyNode>, options?: DomSerializerOptions): string;
-export default render;
-//# sourceMappingURL=index.d.ts.map \ No newline at end of file
diff --git a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/index.d.ts.map b/includes/external/addressbook/node_modules/dom-serializer/lib/esm/index.d.ts.map
deleted file mode 100644
index 0476a46..0000000
--- a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/index.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,OAAO,EAMR,MAAM,YAAY,CAAC;AAWpB,MAAM,WAAW,oBAAoB;IACnC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAClC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AA4ED;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,EAClC,OAAO,GAAE,oBAAyB,GACjC,MAAM,CAUR;AAED,eAAe,MAAM,CAAC"} \ No newline at end of file
diff --git a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/index.js b/includes/external/addressbook/node_modules/dom-serializer/lib/esm/index.js
deleted file mode 100644
index 1ccc9d5..0000000
--- a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/index.js
+++ /dev/null
@@ -1,190 +0,0 @@
-/*
- * Module dependencies
- */
-import * as ElementType from "domelementtype";
-import { encodeXML, escapeAttribute, escapeText } from "entities";
-/**
- * Mixed-case SVG and MathML tags & attributes
- * recognized by the HTML parser.
- *
- * @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign
- */
-import { elementNames, attributeNames } from "./foreignNames.js";
-const unencodedElements = new Set([
- "style",
- "script",
- "xmp",
- "iframe",
- "noembed",
- "noframes",
- "plaintext",
- "noscript",
-]);
-function replaceQuotes(value) {
- return value.replace(/"/g, "&quot;");
-}
-/**
- * Format attributes
- */
-function formatAttributes(attributes, opts) {
- var _a;
- if (!attributes)
- return;
- const encode = ((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) === false
- ? replaceQuotes
- : opts.xmlMode || opts.encodeEntities !== "utf8"
- ? encodeXML
- : escapeAttribute;
- return Object.keys(attributes)
- .map((key) => {
- var _a, _b;
- const value = (_a = attributes[key]) !== null && _a !== void 0 ? _a : "";
- if (opts.xmlMode === "foreign") {
- /* Fix up mixed-case attribute names */
- key = (_b = attributeNames.get(key)) !== null && _b !== void 0 ? _b : key;
- }
- if (!opts.emptyAttrs && !opts.xmlMode && value === "") {
- return key;
- }
- return `${key}="${encode(value)}"`;
- })
- .join(" ");
-}
-/**
- * Self-enclosing tags
- */
-const singleTag = new Set([
- "area",
- "base",
- "basefont",
- "br",
- "col",
- "command",
- "embed",
- "frame",
- "hr",
- "img",
- "input",
- "isindex",
- "keygen",
- "link",
- "meta",
- "param",
- "source",
- "track",
- "wbr",
-]);
-/**
- * Renders a DOM node or an array of DOM nodes to a string.
- *
- * Can be thought of as the equivalent of the `outerHTML` of the passed node(s).
- *
- * @param node Node to be rendered.
- * @param options Changes serialization behavior
- */
-export function render(node, options = {}) {
- const nodes = "length" in node ? node : [node];
- let output = "";
- for (let i = 0; i < nodes.length; i++) {
- output += renderNode(nodes[i], options);
- }
- return output;
-}
-export default render;
-function renderNode(node, options) {
- switch (node.type) {
- case ElementType.Root:
- return render(node.children, options);
- // @ts-expect-error We don't use `Doctype` yet
- case ElementType.Doctype:
- case ElementType.Directive:
- return renderDirective(node);
- case ElementType.Comment:
- return renderComment(node);
- case ElementType.CDATA:
- return renderCdata(node);
- case ElementType.Script:
- case ElementType.Style:
- case ElementType.Tag:
- return renderTag(node, options);
- case ElementType.Text:
- return renderText(node, options);
- }
-}
-const foreignModeIntegrationPoints = new Set([
- "mi",
- "mo",
- "mn",
- "ms",
- "mtext",
- "annotation-xml",
- "foreignObject",
- "desc",
- "title",
-]);
-const foreignElements = new Set(["svg", "math"]);
-function renderTag(elem, opts) {
- var _a;
- // Handle SVG / MathML in HTML
- if (opts.xmlMode === "foreign") {
- /* Fix up mixed-case element names */
- elem.name = (_a = elementNames.get(elem.name)) !== null && _a !== void 0 ? _a : elem.name;
- /* Exit foreign mode at integration points */
- if (elem.parent &&
- foreignModeIntegrationPoints.has(elem.parent.name)) {
- opts = { ...opts, xmlMode: false };
- }
- }
- if (!opts.xmlMode && foreignElements.has(elem.name)) {
- opts = { ...opts, xmlMode: "foreign" };
- }
- let tag = `<${elem.name}`;
- const attribs = formatAttributes(elem.attribs, opts);
- if (attribs) {
- tag += ` ${attribs}`;
- }
- if (elem.children.length === 0 &&
- (opts.xmlMode
- ? // In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags
- opts.selfClosingTags !== false
- : // User explicitly asked for self-closing tags, even in HTML mode
- opts.selfClosingTags && singleTag.has(elem.name))) {
- if (!opts.xmlMode)
- tag += " ";
- tag += "/>";
- }
- else {
- tag += ">";
- if (elem.children.length > 0) {
- tag += render(elem.children, opts);
- }
- if (opts.xmlMode || !singleTag.has(elem.name)) {
- tag += `</${elem.name}>`;
- }
- }
- return tag;
-}
-function renderDirective(elem) {
- return `<${elem.data}>`;
-}
-function renderText(elem, opts) {
- var _a;
- let data = elem.data || "";
- // If entities weren't decoded, no need to encode them back
- if (((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) !== false &&
- !(!opts.xmlMode &&
- elem.parent &&
- unencodedElements.has(elem.parent.name))) {
- data =
- opts.xmlMode || opts.encodeEntities !== "utf8"
- ? encodeXML(data)
- : escapeText(data);
- }
- return data;
-}
-function renderCdata(elem) {
- return `<![CDATA[${elem.children[0].data}]]>`;
-}
-function renderComment(elem) {
- return `<!--${elem.data}-->`;
-}
diff --git a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/package.json b/includes/external/addressbook/node_modules/dom-serializer/lib/esm/package.json
deleted file mode 100644
index 089153b..0000000
--- a/includes/external/addressbook/node_modules/dom-serializer/lib/esm/package.json
+++ /dev/null
@@ -1 +0,0 @@
-{"type":"module"}