From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- node_modules/domutils/LICENSE | 11 -- node_modules/domutils/lib/esm/feeds.d.ts | 71 -------- node_modules/domutils/lib/esm/feeds.d.ts.map | 1 - node_modules/domutils/lib/esm/feeds.js | 183 -------------------- node_modules/domutils/lib/esm/feeds.js.map | 1 - node_modules/domutils/lib/esm/helpers.d.ts | 59 ------- node_modules/domutils/lib/esm/helpers.d.ts.map | 1 - node_modules/domutils/lib/esm/helpers.js | 136 --------------- node_modules/domutils/lib/esm/helpers.js.map | 1 - node_modules/domutils/lib/esm/index.d.ts | 10 -- node_modules/domutils/lib/esm/index.d.ts.map | 1 - node_modules/domutils/lib/esm/index.js | 10 -- node_modules/domutils/lib/esm/index.js.map | 1 - node_modules/domutils/lib/esm/legacy.d.ts | 68 -------- node_modules/domutils/lib/esm/legacy.d.ts.map | 1 - node_modules/domutils/lib/esm/legacy.js | 139 --------------- node_modules/domutils/lib/esm/legacy.js.map | 1 - node_modules/domutils/lib/esm/manipulation.d.ts | 49 ------ .../domutils/lib/esm/manipulation.d.ts.map | 1 - node_modules/domutils/lib/esm/manipulation.js | 134 --------------- node_modules/domutils/lib/esm/manipulation.js.map | 1 - node_modules/domutils/lib/esm/package.json | 1 - node_modules/domutils/lib/esm/querying.d.ts | 64 ------- node_modules/domutils/lib/esm/querying.d.ts.map | 1 - node_modules/domutils/lib/esm/querying.js | 145 ---------------- node_modules/domutils/lib/esm/querying.js.map | 1 - node_modules/domutils/lib/esm/stringify.d.ts | 46 ----- node_modules/domutils/lib/esm/stringify.d.ts.map | 1 - node_modules/domutils/lib/esm/stringify.js | 81 --------- node_modules/domutils/lib/esm/stringify.js.map | 1 - node_modules/domutils/lib/esm/traversal.d.ts | 67 -------- node_modules/domutils/lib/esm/traversal.d.ts.map | 1 - node_modules/domutils/lib/esm/traversal.js | 112 ------------ node_modules/domutils/lib/esm/traversal.js.map | 1 - node_modules/domutils/lib/feeds.d.ts | 71 -------- node_modules/domutils/lib/feeds.d.ts.map | 1 - node_modules/domutils/lib/feeds.js | 191 --------------------- node_modules/domutils/lib/feeds.js.map | 1 - node_modules/domutils/lib/helpers.d.ts | 59 ------- node_modules/domutils/lib/helpers.d.ts.map | 1 - node_modules/domutils/lib/helpers.js | 142 --------------- node_modules/domutils/lib/helpers.js.map | 1 - node_modules/domutils/lib/index.d.ts | 10 -- node_modules/domutils/lib/index.d.ts.map | 1 - node_modules/domutils/lib/index.js | 33 ---- node_modules/domutils/lib/index.js.map | 1 - node_modules/domutils/lib/legacy.d.ts | 68 -------- node_modules/domutils/lib/legacy.d.ts.map | 1 - node_modules/domutils/lib/legacy.js | 153 ----------------- node_modules/domutils/lib/legacy.js.map | 1 - node_modules/domutils/lib/manipulation.d.ts | 49 ------ node_modules/domutils/lib/manipulation.d.ts.map | 1 - node_modules/domutils/lib/manipulation.js | 143 --------------- node_modules/domutils/lib/manipulation.js.map | 1 - node_modules/domutils/lib/querying.d.ts | 64 ------- node_modules/domutils/lib/querying.d.ts.map | 1 - node_modules/domutils/lib/querying.js | 159 ----------------- node_modules/domutils/lib/querying.js.map | 1 - node_modules/domutils/lib/stringify.d.ts | 46 ----- node_modules/domutils/lib/stringify.d.ts.map | 1 - node_modules/domutils/lib/stringify.js | 92 ---------- node_modules/domutils/lib/stringify.js.map | 1 - node_modules/domutils/lib/traversal.d.ts | 67 -------- node_modules/domutils/lib/traversal.d.ts.map | 1 - node_modules/domutils/lib/traversal.js | 126 -------------- node_modules/domutils/lib/traversal.js.map | 1 - node_modules/domutils/package.json | 79 --------- node_modules/domutils/readme.md | 31 ---- 68 files changed, 3001 deletions(-) delete mode 100644 node_modules/domutils/LICENSE delete mode 100644 node_modules/domutils/lib/esm/feeds.d.ts delete mode 100644 node_modules/domutils/lib/esm/feeds.d.ts.map delete mode 100644 node_modules/domutils/lib/esm/feeds.js delete mode 100644 node_modules/domutils/lib/esm/feeds.js.map delete mode 100644 node_modules/domutils/lib/esm/helpers.d.ts delete mode 100644 node_modules/domutils/lib/esm/helpers.d.ts.map delete mode 100644 node_modules/domutils/lib/esm/helpers.js delete mode 100644 node_modules/domutils/lib/esm/helpers.js.map delete mode 100644 node_modules/domutils/lib/esm/index.d.ts delete mode 100644 node_modules/domutils/lib/esm/index.d.ts.map delete mode 100644 node_modules/domutils/lib/esm/index.js delete mode 100644 node_modules/domutils/lib/esm/index.js.map delete mode 100644 node_modules/domutils/lib/esm/legacy.d.ts delete mode 100644 node_modules/domutils/lib/esm/legacy.d.ts.map delete mode 100644 node_modules/domutils/lib/esm/legacy.js delete mode 100644 node_modules/domutils/lib/esm/legacy.js.map delete mode 100644 node_modules/domutils/lib/esm/manipulation.d.ts delete mode 100644 node_modules/domutils/lib/esm/manipulation.d.ts.map delete mode 100644 node_modules/domutils/lib/esm/manipulation.js delete mode 100644 node_modules/domutils/lib/esm/manipulation.js.map delete mode 100644 node_modules/domutils/lib/esm/package.json delete mode 100644 node_modules/domutils/lib/esm/querying.d.ts delete mode 100644 node_modules/domutils/lib/esm/querying.d.ts.map delete mode 100644 node_modules/domutils/lib/esm/querying.js delete mode 100644 node_modules/domutils/lib/esm/querying.js.map delete mode 100644 node_modules/domutils/lib/esm/stringify.d.ts delete mode 100644 node_modules/domutils/lib/esm/stringify.d.ts.map delete mode 100644 node_modules/domutils/lib/esm/stringify.js delete mode 100644 node_modules/domutils/lib/esm/stringify.js.map delete mode 100644 node_modules/domutils/lib/esm/traversal.d.ts delete mode 100644 node_modules/domutils/lib/esm/traversal.d.ts.map delete mode 100644 node_modules/domutils/lib/esm/traversal.js delete mode 100644 node_modules/domutils/lib/esm/traversal.js.map delete mode 100644 node_modules/domutils/lib/feeds.d.ts delete mode 100644 node_modules/domutils/lib/feeds.d.ts.map delete mode 100644 node_modules/domutils/lib/feeds.js delete mode 100644 node_modules/domutils/lib/feeds.js.map delete mode 100644 node_modules/domutils/lib/helpers.d.ts delete mode 100644 node_modules/domutils/lib/helpers.d.ts.map delete mode 100644 node_modules/domutils/lib/helpers.js delete mode 100644 node_modules/domutils/lib/helpers.js.map delete mode 100644 node_modules/domutils/lib/index.d.ts delete mode 100644 node_modules/domutils/lib/index.d.ts.map delete mode 100644 node_modules/domutils/lib/index.js delete mode 100644 node_modules/domutils/lib/index.js.map delete mode 100644 node_modules/domutils/lib/legacy.d.ts delete mode 100644 node_modules/domutils/lib/legacy.d.ts.map delete mode 100644 node_modules/domutils/lib/legacy.js delete mode 100644 node_modules/domutils/lib/legacy.js.map delete mode 100644 node_modules/domutils/lib/manipulation.d.ts delete mode 100644 node_modules/domutils/lib/manipulation.d.ts.map delete mode 100644 node_modules/domutils/lib/manipulation.js delete mode 100644 node_modules/domutils/lib/manipulation.js.map delete mode 100644 node_modules/domutils/lib/querying.d.ts delete mode 100644 node_modules/domutils/lib/querying.d.ts.map delete mode 100644 node_modules/domutils/lib/querying.js delete mode 100644 node_modules/domutils/lib/querying.js.map delete mode 100644 node_modules/domutils/lib/stringify.d.ts delete mode 100644 node_modules/domutils/lib/stringify.d.ts.map delete mode 100644 node_modules/domutils/lib/stringify.js delete mode 100644 node_modules/domutils/lib/stringify.js.map delete mode 100644 node_modules/domutils/lib/traversal.d.ts delete mode 100644 node_modules/domutils/lib/traversal.d.ts.map delete mode 100644 node_modules/domutils/lib/traversal.js delete mode 100644 node_modules/domutils/lib/traversal.js.map delete mode 100644 node_modules/domutils/package.json delete mode 100644 node_modules/domutils/readme.md (limited to 'node_modules/domutils') diff --git a/node_modules/domutils/LICENSE b/node_modules/domutils/LICENSE deleted file mode 100644 index c464f863..00000000 --- a/node_modules/domutils/LICENSE +++ /dev/null @@ -1,11 +0,0 @@ -Copyright (c) Felix Böhm -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - -Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - -THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS, -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/domutils/lib/esm/feeds.d.ts b/node_modules/domutils/lib/esm/feeds.d.ts deleted file mode 100644 index 19badb7c..00000000 --- a/node_modules/domutils/lib/esm/feeds.d.ts +++ /dev/null @@ -1,71 +0,0 @@ -import type { AnyNode } from "domhandler"; -/** - * The medium of a media item. - * - * @category Feeds - */ -export type FeedItemMediaMedium = "image" | "audio" | "video" | "document" | "executable"; -/** - * The type of a media item. - * - * @category Feeds - */ -export type FeedItemMediaExpression = "sample" | "full" | "nonstop"; -/** - * A media item of a feed entry. - * - * @category Feeds - */ -export interface FeedItemMedia { - medium: FeedItemMediaMedium | undefined; - isDefault: boolean; - url?: string; - fileSize?: number; - type?: string; - expression?: FeedItemMediaExpression; - bitrate?: number; - framerate?: number; - samplingrate?: number; - channels?: number; - duration?: number; - height?: number; - width?: number; - lang?: string; -} -/** - * An entry of a feed. - * - * @category Feeds - */ -export interface FeedItem { - id?: string; - title?: string; - link?: string; - description?: string; - pubDate?: Date; - media: FeedItemMedia[]; -} -/** - * The root of a feed. - * - * @category Feeds - */ -export interface Feed { - type: string; - id?: string; - title?: string; - link?: string; - description?: string; - updated?: Date; - author?: string; - items: FeedItem[]; -} -/** - * Get the feed object from the root of a DOM tree. - * - * @category Feeds - * @param doc - The DOM to to extract the feed from. - * @returns The feed. - */ -export declare function getFeed(doc: AnyNode[]): Feed | null; -//# sourceMappingURL=feeds.d.ts.map \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/feeds.d.ts.map b/node_modules/domutils/lib/esm/feeds.d.ts.map deleted file mode 100644 index c7a775a1..00000000 --- a/node_modules/domutils/lib/esm/feeds.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"feeds.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/96c989e159c98218958f375ea04210f2d1b43c0c/src/","sources":["feeds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAW,MAAM,YAAY,CAAC;AAInD;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GACzB,OAAO,GACP,OAAO,GACP,OAAO,GACP,UAAU,GACV,YAAY,CAAC;AAEnB;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAEpE;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACxC,SAAS,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,KAAK,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,IAAI,GAAG,IAAI,CAQnD"} \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/feeds.js b/node_modules/domutils/lib/esm/feeds.js deleted file mode 100644 index df0210a0..00000000 --- a/node_modules/domutils/lib/esm/feeds.js +++ /dev/null @@ -1,183 +0,0 @@ -import { textContent } from "./stringify.js"; -import { getElementsByTagName } from "./legacy.js"; -/** - * Get the feed object from the root of a DOM tree. - * - * @category Feeds - * @param doc - The DOM to to extract the feed from. - * @returns The feed. - */ -export function getFeed(doc) { - const feedRoot = getOneElement(isValidFeed, doc); - return !feedRoot - ? null - : feedRoot.name === "feed" - ? getAtomFeed(feedRoot) - : getRssFeed(feedRoot); -} -/** - * Parse an Atom feed. - * - * @param feedRoot The root of the feed. - * @returns The parsed feed. - */ -function getAtomFeed(feedRoot) { - var _a; - const childs = feedRoot.children; - const feed = { - type: "atom", - items: getElementsByTagName("entry", childs).map((item) => { - var _a; - const { children } = item; - const entry = { media: getMediaElements(children) }; - addConditionally(entry, "id", "id", children); - addConditionally(entry, "title", "title", children); - const href = (_a = getOneElement("link", children)) === null || _a === void 0 ? void 0 : _a.attribs["href"]; - if (href) { - entry.link = href; - } - const description = fetch("summary", children) || fetch("content", children); - if (description) { - entry.description = description; - } - const pubDate = fetch("updated", children); - if (pubDate) { - entry.pubDate = new Date(pubDate); - } - return entry; - }), - }; - addConditionally(feed, "id", "id", childs); - addConditionally(feed, "title", "title", childs); - const href = (_a = getOneElement("link", childs)) === null || _a === void 0 ? void 0 : _a.attribs["href"]; - if (href) { - feed.link = href; - } - addConditionally(feed, "description", "subtitle", childs); - const updated = fetch("updated", childs); - if (updated) { - feed.updated = new Date(updated); - } - addConditionally(feed, "author", "email", childs, true); - return feed; -} -/** - * Parse a RSS feed. - * - * @param feedRoot The root of the feed. - * @returns The parsed feed. - */ -function getRssFeed(feedRoot) { - var _a, _b; - const childs = (_b = (_a = getOneElement("channel", feedRoot.children)) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : []; - const feed = { - type: feedRoot.name.substr(0, 3), - id: "", - items: getElementsByTagName("item", feedRoot.children).map((item) => { - const { children } = item; - const entry = { media: getMediaElements(children) }; - addConditionally(entry, "id", "guid", children); - addConditionally(entry, "title", "title", children); - addConditionally(entry, "link", "link", children); - addConditionally(entry, "description", "description", children); - const pubDate = fetch("pubDate", children) || fetch("dc:date", children); - if (pubDate) - entry.pubDate = new Date(pubDate); - return entry; - }), - }; - addConditionally(feed, "title", "title", childs); - addConditionally(feed, "link", "link", childs); - addConditionally(feed, "description", "description", childs); - const updated = fetch("lastBuildDate", childs); - if (updated) { - feed.updated = new Date(updated); - } - addConditionally(feed, "author", "managingEditor", childs, true); - return feed; -} -const MEDIA_KEYS_STRING = ["url", "type", "lang"]; -const MEDIA_KEYS_INT = [ - "fileSize", - "bitrate", - "framerate", - "samplingrate", - "channels", - "duration", - "height", - "width", -]; -/** - * Get all media elements of a feed item. - * - * @param where Nodes to search in. - * @returns Media elements. - */ -function getMediaElements(where) { - return getElementsByTagName("media:content", where).map((elem) => { - const { attribs } = elem; - const media = { - medium: attribs["medium"], - isDefault: !!attribs["isDefault"], - }; - for (const attrib of MEDIA_KEYS_STRING) { - if (attribs[attrib]) { - media[attrib] = attribs[attrib]; - } - } - for (const attrib of MEDIA_KEYS_INT) { - if (attribs[attrib]) { - media[attrib] = parseInt(attribs[attrib], 10); - } - } - if (attribs["expression"]) { - media.expression = attribs["expression"]; - } - return media; - }); -} -/** - * Get one element by tag name. - * - * @param tagName Tag name to look for - * @param node Node to search in - * @returns The element or null - */ -function getOneElement(tagName, node) { - return getElementsByTagName(tagName, node, true, 1)[0]; -} -/** - * Get the text content of an element with a certain tag name. - * - * @param tagName Tag name to look for. - * @param where Node to search in. - * @param recurse Whether to recurse into child nodes. - * @returns The text content of the element. - */ -function fetch(tagName, where, recurse = false) { - return textContent(getElementsByTagName(tagName, where, recurse, 1)).trim(); -} -/** - * Adds a property to an object if it has a value. - * - * @param obj Object to be extended - * @param prop Property name - * @param tagName Tag name that contains the conditionally added property - * @param where Element to search for the property - * @param recurse Whether to recurse into child nodes. - */ -function addConditionally(obj, prop, tagName, where, recurse = false) { - const val = fetch(tagName, where, recurse); - if (val) - obj[prop] = val; -} -/** - * Checks if an element is a feed root node. - * - * @param value The name of the element to check. - * @returns Whether an element is a feed root node. - */ -function isValidFeed(value) { - return value === "rss" || value === "feed" || value === "rdf:RDF"; -} -//# sourceMappingURL=feeds.js.map \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/feeds.js.map b/node_modules/domutils/lib/esm/feeds.js.map deleted file mode 100644 index 4b114935..00000000 --- a/node_modules/domutils/lib/esm/feeds.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"feeds.js","sourceR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AK,CAAC;IACjB,CAAC,CAAC,CAAC;AACP,CAAC;AAED;;;;;;GAMG;AACH,SAAS,aAAa,CAClB,OAA6C,EAC7C,IAAe;IAEf,OAAO,oBAAoB,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,KAAK,CACV,OAAe,EACf,KAA0B,EAC1B,OAAO,GAAG,KAAK;IAEf,OAAO,WAAW,CAAC,oBAAoB,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAChF,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,gBAAgB,CACrB,GAAM,EACN,IAAa,EACb,OAAe,EACf,KAAgB,EAChB,OAAO,GAAG,KAAK;IAEf,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAC3C,IAAI,GAAG;QAAE,GAAG,CAAC,IAAI,CAAC,GAAG,GAA4B,CAAC;AACtD,CAAC;AAED;;;;;GAKG;AACH,SAAS,WAAW,CAAC,KAAa;IAC9B,OAAO,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,SAAS,CAAC;AACtE,CAAC"} \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/helpers.d.ts b/node_modules/domutils/lib/esm/helpers.d.ts deleted file mode 100644 index e4ced08e..00000000 --- a/node_modules/domutils/lib/esm/helpers.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { AnyNode } from "domhandler"; -/** - * Given an array of nodes, remove any member that is contained by another - * member. - * - * @category Helpers - * @param nodes Nodes to filter. - * @returns Remaining nodes that aren't contained by other nodes. - */ -export declare function removeSubsets(nodes: AnyNode[]): AnyNode[]; -/** - * @category Helpers - * @see {@link http://dom.spec.whatwg.org/#dom-node-comparedocumentposition} - */ -export declare const enum DocumentPosition { - DISCONNECTED = 1, - PRECEDING = 2, - FOLLOWING = 4, - CONTAINS = 8, - CONTAINED_BY = 16 -} -/** - * Compare the position of one node against another node in any other document, - * returning a bitmask with the values from {@link DocumentPosition}. - * - * Document order: - * > There is an ordering, document order, defined on all the nodes in the - * > document corresponding to the order in which the first character of the - * > XML representation of each node occurs in the XML representation of the - * > document after expansion of general entities. Thus, the document element - * > node will be the first node. Element nodes occur before their children. - * > Thus, document order orders element nodes in order of the occurrence of - * > their start-tag in the XML (after expansion of entities). The attribute - * > nodes of an element occur after the element and before its children. The - * > relative order of attribute nodes is implementation-dependent. - * - * Source: - * http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order - * - * @category Helpers - * @param nodeA The first node to use in the comparison - * @param nodeB The second node to use in the comparison - * @returns A bitmask describing the input nodes' relative position. - * - * See http://dom.spec.whatwg.org/#dom-node-comparedocumentposition for - * a description of these values. - */ -export declare function compareDocumentPosition(nodeA: AnyNode, nodeB: AnyNode): number; -/** - * Sort an array of nodes based on their relative position in the document, - * removing any duplicate nodes. If the array contains nodes that do not belong - * to the same document, sort order is unspecified. - * - * @category Helpers - * @param nodes Array of DOM nodes. - * @returns Collection of unique nodes, sorted in document order. - */ -export declare function uniqueSort(nodes: T[]): T[]; -//# sourceMappingURL=helpers.d.ts.map \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/helpers.d.ts.map b/node_modules/domutils/lib/esm/helpers.d.ts.map deleted file mode 100644 index ec25bba4..00000000 --- a/node_modules/domutils/lib/esm/helpers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"helpers.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/96c989e159c98218958f375ea04210f2d1b43c0c/src/","sources":["helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,OAAO,EAAc,MAAM,YAAY,CAAC;AAE9D;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CA6BzD;AACD;;;GAGG;AACH,0BAAkB,gBAAgB;IAC9B,YAAY,IAAI;IAChB,SAAS,IAAI;IACb,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,YAAY,KAAK;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,uBAAuB,CACnC,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,OAAO,GACf,MAAM,CA4CR;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAc7D"} \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/helpers.js b/node_modules/domutils/lib/esm/helpers.js deleted file mode 100644 index f3a90d99..00000000 --- a/node_modules/domutils/lib/esm/helpers.js +++ /dev/null @@ -1,136 +0,0 @@ -import { hasChildren } from "domhandler"; -/** - * Given an array of nodes, remove any member that is contained by another - * member. - * - * @category Helpers - * @param nodes Nodes to filter. - * @returns Remaining nodes that aren't contained by other nodes. - */ -export function removeSubsets(nodes) { - let idx = nodes.length; - /* - * Check if each node (or one of its ancestors) is already contained in the - * array. - */ - while (--idx >= 0) { - const node = nodes[idx]; - /* - * Remove the node if it is not unique. - * We are going through the array from the end, so we only - * have to check nodes that preceed the node under consideration in the array. - */ - if (idx > 0 && nodes.lastIndexOf(node, idx - 1) >= 0) { - nodes.splice(idx, 1); - continue; - } - for (let ancestor = node.parent; ancestor; ancestor = ancestor.parent) { - if (nodes.includes(ancestor)) { - nodes.splice(idx, 1); - break; - } - } - } - return nodes; -} -/** - * @category Helpers - * @see {@link http://dom.spec.whatwg.org/#dom-node-comparedocumentposition} - */ -export var DocumentPosition; -(function (DocumentPosition) { - DocumentPosition[DocumentPosition["DISCONNECTED"] = 1] = "DISCONNECTED"; - DocumentPosition[DocumentPosition["PRECEDING"] = 2] = "PRECEDING"; - DocumentPosition[DocumentPosition["FOLLOWING"] = 4] = "FOLLOWING"; - DocumentPosition[DocumentPosition["CONTAINS"] = 8] = "CONTAINS"; - DocumentPosition[DocumentPosition["CONTAINED_BY"] = 16] = "CONTAINED_BY"; -})(DocumentPosition || (DocumentPosition = {})); -/** - * Compare the position of one node against another node in any other document, - * returning a bitmask with the values from {@link DocumentPosition}. - * - * Document order: - * > There is an ordering, document order, defined on all the nodes in the - * > document corresponding to the order in which the first character of the - * > XML representation of each node occurs in the XML representation of the - * > document after expansion of general entities. Thus, the document element - * > node will be the first node. Element nodes occur before their children. - * > Thus, document order orders element nodes in order of the occurrence of - * > their start-tag in the XML (after expansion of entities). The attribute - * > nodes of an element occur after the element and before its children. The - * > relative order of attribute nodes is implementation-dependent. - * - * Source: - * http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order - * - * @category Helpers - * @param nodeA The first node to use in the comparison - * @param nodeB The second node to use in the comparison - * @returns A bitmask describing the input nodes' relative position. - * - * See http://dom.spec.whatwg.org/#dom-node-comparedocumentposition for - * a description of these values. - */ -export function compareDocumentPosition(nodeA, nodeB) { - const aParents = []; - const bParents = []; - if (nodeA === nodeB) { - return 0; - } - let current = hasChildren(nodeA) ? nodeA : nodeA.parent; - while (current) { - aParents.unshift(current); - current = current.parent; - } - current = hasChildren(nodeB) ? nodeB : nodeB.parent; - while (current) { - bParents.unshift(current); - current = current.parent; - } - const maxIdx = Math.min(aParents.length, bParents.length); - let idx = 0; - while (idx < maxIdx && aParents[idx] === bParents[idx]) { - idx++; - } - if (idx === 0) { - return DocumentPosition.DISCONNECTED; - } - const sharedParent = aParents[idx - 1]; - const siblings = sharedParent.children; - const aSibling = aParents[idx]; - const bSibling = bParents[idx]; - if (siblings.indexOf(aSibling) > siblings.indexOf(bSibling)) { - if (sharedParent === nodeB) { - return DocumentPosition.FOLLOWING | DocumentPosition.CONTAINED_BY; - } - return DocumentPosition.FOLLOWING; - } - if (sharedParent === nodeA) { - return DocumentPosition.PRECEDING | DocumentPosition.CONTAINS; - } - return DocumentPosition.PRECEDING; -} -/** - * Sort an array of nodes based on their relative position in the document, - * removing any duplicate nodes. If the array contains nodes that do not belong - * to the same document, sort order is unspecified. - * - * @category Helpers - * @param nodes Array of DOM nodes. - * @returns Collection of unique nodes, sorted in document order. - */ -export function uniqueSort(nodes) { - nodes = nodes.filter((node, i, arr) => !arr.includes(node, i + 1)); - nodes.sort((a, b) => { - const relative = compareDocumentPosition(a, b); - if (relative & DocumentPosition.PRECEDING) { - return -1; - } - else if (relative & DocumentPosition.FOLLOWING) { - return 1; - } - return 0; - }); - return nodes; -} -//# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/helpers.js.map b/node_modules/domutils/lib/esm/helpers.js.map deleted file mode 100644 index 3e18415b..00000000 --- a/node_modules/domutils/lib/esm/helpers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"helpers.js","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/96c989e159c98218958f375ea04210f2d1b43c0c/src/","sources":["helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,YAAY,CAAC;AAE9D;;;;;;;GAOG;AACH,MAAM,UAAU,aAAa,CAAC,KAAgB;IAC1C,IAAI,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC;IAEvB;;;OAGG;IACH,OAAO,EAAE,GAAG,IAAI,CAAC,EAAE;QACf,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;QAExB;;;;WAIG;QACH,IAAI,GAAG,GAAG,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE;YAClD,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YACrB,SAAS;SACZ;QAED,KAAK,IAAI,QAAQ,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,MAAM,EAAE;YACnE,IAAI,KAAK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AAgB,CAAC,SAAS,EAAE;YACvC,OAAO,CAAC,CAAC,CAAC;SACb;aAAM,IAAI,QAAQ,GAAG,gBAAgB,CAAC,SAAS,EAAE;YAC9C,OAAO,CAAC,CAAC;SACZ;QACD,OAAO,CAAC,CAAC;IACb,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/index.d.ts b/node_modules/domutils/lib/esm/index.d.ts deleted file mode 100644 index 41ab6e88..00000000 --- a/node_modules/domutils/lib/esm/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from "./stringify.js"; -export * from "./traversal.js"; -export * from "./manipulation.js"; -export * from "./querying.js"; -export * from "./legacy.js"; -export * from "./helpers.js"; -export * from "./feeds.js"; -/** @deprecated Use these methods from `domhandler` directly. */ -export { isTag, isCDATA, isText, isComment, isDocument, hasChildren, } from "domhandler"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/index.d.ts.map b/node_modules/domutils/lib/esm/index.d.ts.map deleted file mode 100644 index 8b00bb22..00000000 --- a/node_modules/domutils/lib/esm/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/96c989e159c98218958f375ea04210f2d1b43c0c/src/","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,gEAAgE;AAChE,OAAO,EACH,KAAK,EACL,OAAO,EACP,MAAM,EACN,SAAS,EACT,UAAU,EACV,WAAW,GACd,MAAM,YAAY,CAAC"} \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/index.js b/node_modules/domutils/lib/esm/index.js deleted file mode 100644 index 918c0ebe..00000000 --- a/node_modules/domutils/lib/esm/index.js +++ /dev/null @@ -1,10 +0,0 @@ -export * from "./stringify.js"; -export * from "./traversal.js"; -export * from "./manipulation.js"; -export * from "./querying.js"; -export * from "./legacy.js"; -export * from "./helpers.js"; -export * from "./feeds.js"; -/** @deprecated Use these methods from `domhandler` directly. */ -export { isTag, isCDATA, isText, isComment, isDocument, hasChildren, } from "domhandler"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/index.js.map b/node_modules/domutils/lib/esm/index.js.map deleted file mode 100644 index 72019ed8..00000000 --- a/node_modules/domutils/lib/esm/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/96c989e159c98218958f375ea04210f2d1b43c0c/src/","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,gEAAgE;AAChE,OAAO,EACH,KAAK,EACL,OAAO,EACP,MAAM,EACN,SAAS,EACT,UAAU,EACV,WAAW,GACd,MAAM,YAAY,CAAC"} \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/legacy.d.ts b/node_modules/domutils/lib/esm/legacy.d.ts deleted file mode 100644 index 32d405d2..00000000 --- a/node_modules/domutils/lib/esm/legacy.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { AnyNode, Element } from "domhandler"; -import type { ElementType } from "domelementtype"; -/** - * An object with keys to check elements against. If a key is `tag_name`, - * `tag_type` or `tag_contains`, it will check the value against that specific - * value. Otherwise, it will check an attribute with the key's name. - * - * @category Legacy Query Functions - */ -export interface TestElementOpts { - tag_name?: string | ((name: string) => boolean); - tag_type?: string | ((name: string) => boolean); - tag_contains?: string | ((data?: string) => boolean); - [attributeName: string]: undefined | string | ((attributeValue: string) => boolean); -} -/** - * Checks whether a node matches the description in `options`. - * - * @category Legacy Query Functions - * @param options An object describing nodes to look for. - * @param node The element to test. - * @returns Whether the element matches the description in `options`. - */ -export declare function testElement(options: TestElementOpts, node: AnyNode): boolean; -/** - * Returns all nodes that match `options`. - * - * @category Legacy Query Functions - * @param options An object describing nodes to look for. - * @param nodes Nodes to search through. - * @param recurse Also consider child nodes. - * @param limit Maximum number of nodes to return. - * @returns All nodes that match `options`. - */ -export declare function getElements(options: TestElementOpts, nodes: AnyNode | AnyNode[], recurse: boolean, limit?: number): AnyNode[]; -/** - * Returns the node with the supplied ID. - * - * @category Legacy Query Functions - * @param id The unique ID attribute value to look for. - * @param nodes Nodes to search through. - * @param recurse Also consider child nodes. - * @returns The node with the supplied ID. - */ -export declare function getElementById(id: string | ((id: string) => boolean), nodes: AnyNode | AnyNode[], recurse?: boolean): Element | null; -/** - * Returns all nodes with the supplied `tagName`. - * - * @category Legacy Query Functions - * @param tagName Tag name to search for. - * @param nodes Nodes to search through. - * @param recurse Also consider child nodes. - * @param limit Maximum number of nodes to return. - * @returns All nodes with the supplied `tagName`. - */ -export declare function getElementsByTagName(tagName: string | ((name: string) => boolean), nodes: AnyNode | AnyNode[], recurse?: boolean, limit?: number): Element[]; -/** - * Returns all nodes with the supplied `type`. - * - * @category Legacy Query Functions - * @param type Element type to look for. - * @param nodes Nodes to search through. - * @param recurse Also consider child nodes. - * @param limit Maximum number of nodes to return. - * @returns All nodes with the supplied `type`. - */ -export declare function getElementsByTagType(type: ElementType | ((type: ElementType) => boolean), nodes: AnyNode | AnyNode[], recurse?: boolean, limit?: number): AnyNode[]; -//# sourceMappingURL=legacy.d.ts.map \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/legacy.d.ts.map b/node_modules/domutils/lib/esm/legacy.d.ts.map deleted file mode 100644 index 274039cc..00000000 --- a/node_modules/domutils/lib/esm/legacy.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"legacy.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/96c989e159c98218958f375ea04210f2d1b43c0c/src/","sources":["legacy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAKlD;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;IAChD,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;IACrD,CAAC,aAAa,EAAE,MAAM,GAChB,SAAS,GACT,MAAM,GACN,CAAC,CAAC,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;CAC/C;AAkFD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAG5E;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACvB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,EAC1B,OAAO,EAAE,OAAO,EAChB,KAAK,SAAW,GACjB,OAAO,EAAE,CAGX;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC1B,EAAE,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,EACtC,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,EAC1B,OAAO,UAAO,GACf,OAAO,GAAG,IAAI,CAGhB;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAChC,OAAO,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,EAC7C,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,EAC1B,OAAO,UAAO,EACd,KAAK,SAAW,GACjB,OAAO,EAAE,CAOX;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAChC,IAAI,EAAE,WAAW,GAAG,CAAC,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,EACpD,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,EAC1B,OAAO,UAAO,EACd,KAAK,SAAW,GACjB,OAAO,EAAE,CAEX"} \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/legacy.js b/node_modules/domutils/lib/esm/legacy.js deleted file mode 100644 index 5ec7309f..00000000 --- a/node_modules/domutils/lib/esm/legacy.js +++ /dev/null @@ -1,139 +0,0 @@ -import { isTag, isText } from "domhandler"; -import { filter, findOne } from "./querying.js"; -/** - * A map of functions to check nodes against. - */ -const Checks = { - tag_name(name) { - if (typeof name === "function") { - return (elem) => isTag(elem) && name(elem.name); - } - else if (name === "*") { - return isTag; - } - return (elem) => isTag(elem) && elem.name === name; - }, - tag_type(type) { - if (typeof type === "function") { - return (elem) => type(elem.type); - } - return (elem) => elem.type === type; - }, - tag_contains(data) { - if (typeof data === "function") { - return (elem) => isText(elem) && data(elem.data); - } - return (elem) => isText(elem) && elem.data === data; - }, -}; -/** - * Returns a function to check whether a node has an attribute with a particular - * value. - * - * @param attrib Attribute to check. - * @param value Attribute value to look for. - * @returns A function to check whether the a node has an attribute with a - * particular value. - */ -function getAttribCheck(attrib, value) { - if (typeof value === "function") { - return (elem) => isTag(elem) && value(elem.attribs[attrib]); - } - return (elem) => isTag(elem) && elem.attribs[attrib] === value; -} -/** - * Returns a function that returns `true` if either of the input functions - * returns `true` for a node. - * - * @param a First function to combine. - * @param b Second function to combine. - * @returns A function taking a node and returning `true` if either of the input - * functions returns `true` for the node. - */ -function combineFuncs(a, b) { - return (elem) => a(elem) || b(elem); -} -/** - * Returns a function that executes all checks in `options` and returns `true` - * if any of them match a node. - * - * @param options An object describing nodes to look for. - * @returns A function that executes all checks in `options` and returns `true` - * if any of them match a node. - */ -function compileTest(options) { - const funcs = Object.keys(options).map((key) => { - const value = options[key]; - return Object.prototype.hasOwnProperty.call(Checks, key) - ? Checks[key](value) - : getAttribCheck(key, value); - }); - return funcs.length === 0 ? null : funcs.reduce(combineFuncs); -} -/** - * Checks whether a node matches the description in `options`. - * - * @category Legacy Query Functions - * @param options An object describing nodes to look for. - * @param node The element to test. - * @returns Whether the element matches the description in `options`. - */ -export function testElement(options, node) { - const test = compileTest(options); - return test ? test(node) : true; -} -/** - * Returns all nodes that match `options`. - * - * @category Legacy Query Functions - * @param options An object describing nodes to look for. - * @param nodes Nodes to search through. - * @param recurse Also consider child nodes. - * @param limit Maximum number of nodes to return. - * @returns All nodes that match `options`. - */ -export function getElements(options, nodes, recurse, limit = Infinity) { - const test = compileTest(options); - return test ? filter(test, nodes, recurse, limit) : []; -} -/** - * Returns the node with the supplied ID. - * - * @category Legacy Query Functions - * @param id The unique ID attribute value to look for. - * @param nodes Nodes to search through. - * @param recurse Also consider child nodes. - * @returns The node with the supplied ID. - */ -export function getElementById(id, nodes, recurse = true) { - if (!Array.isArray(nodes)) - nodes = [nodes]; - return findOne(getAttribCheck("id", id), nodes, recurse); -} -/** - * Returns all nodes with the supplied `tagName`. - * - * @category Legacy Query Functions - * @param tagName Tag name to search for. - * @param nodes Nodes to search through. - * @param recurse Also consider child nodes. - * @param limit Maximum number of nodes to return. - * @returns All nodes with the supplied `tagName`. - */ -export function getElementsByTagName(tagName, nodes, recurse = true, limit = Infinity) { - return filter(Checks["tag_name"](tagName), nodes, recurse, limit); -} -/** - * Returns all nodes with the supplied `type`. - * - * @category Legacy Query Functions - * @param type Element type to look for. - * @param nodes Nodes to search through. - * @param recurse Also consider child nodes. - * @param limit Maximum number of nodes to return. - * @returns All nodes with the supplied `type`. - */ -export function getElementsByTagType(type, nodes, recurse = true, limit = Infinity) { - return filter(Checks["tag_type"](type), nodes, recurse, limit); -} -//# sourceMappingURL=legacy.js.map \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/legacy.js.map b/node_modules/domutils/lib/esm/legacy.js.map deleted file mode 100644 index b3760b7b..00000000 --- a/node_modules/domutils/lib/esm/legacy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"legacy.js","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/96c989e159c98218958f375ea04210f2d1b43c0c/src/","sources":["legacy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAoB,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAqBhD;;GAEG;AACH,MAAM,MAAM,GAGR;IACA,QAAQ,CAAC,IAAI;QACT,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE;YAC5B,OAAO,CAAC,IAAa,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC5D;aAAM,IAAI,IAAI,KAAK,GAAG,EAAE;YACrB,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,CAAC,IAAa,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC;IAChE,CAAC;IACD,QAAQ,CAAC,IAAI;QACT,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE;YAC5B,OAAO,CAAC,IAAa,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC7C;QACD,OAAO,CAAC,IAAa,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC;IACjD,CAAC;IACD,YAAY,CAAC,IAAI;QACb,IAAI,OAAO,IAAI,KAAK,U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CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,oBAAoB,CAChC,IAAoD,EACpD,KAA0B,EAC1B,OAAO,GAAG,IAAI,EACd,KAAK,GAAG,QAAQ;IAEhB,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAc,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAC7E,CAAC"} \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/manipulation.d.ts b/node_modules/domutils/lib/esm/manipulation.d.ts deleted file mode 100644 index 70369dd6..00000000 --- a/node_modules/domutils/lib/esm/manipulation.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import type { ChildNode, ParentNode } from "domhandler"; -/** - * Remove an element from the dom - * - * @category Manipulation - * @param elem The element to be removed - */ -export declare function removeElement(elem: ChildNode): void; -/** - * Replace an element in the dom - * - * @category Manipulation - * @param elem The element to be replaced - * @param replacement The element to be added - */ -export declare function replaceElement(elem: ChildNode, replacement: ChildNode): void; -/** - * Append a child to an element. - * - * @category Manipulation - * @param parent The element to append to. - * @param child The element to be added as a child. - */ -export declare function appendChild(parent: ParentNode, child: ChildNode): void; -/** - * Append an element after another. - * - * @category Manipulation - * @param elem The element to append after. - * @param next The element be added. - */ -export declare function append(elem: ChildNode, next: ChildNode): void; -/** - * Prepend a child to an element. - * - * @category Manipulation - * @param parent The element to prepend before. - * @param child The element to be added as a child. - */ -export declare function prependChild(parent: ParentNode, child: ChildNode): void; -/** - * Prepend an element before another. - * - * @category Manipulation - * @param elem The element to prepend before. - * @param prev The element be added. - */ -export declare function prepend(elem: ChildNode, prev: ChildNode): void; -//# sourceMappingURL=manipulation.d.ts.map \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/manipulation.d.ts.map b/node_modules/domutils/lib/esm/manipulation.d.ts.map deleted file mode 100644 index dc8a1b2a..00000000 --- a/node_modules/domutils/lib/esm/manipulation.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"manipulation.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/96c989e159c98218958f375ea04210f2d1b43c0c/src/","sources":["manipulation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAcnD;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,GAAG,IAAI,CAiB5E;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,CAatE;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CAoB7D;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,CAavE;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CAiB9D"} \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/manipulation.js b/node_modules/domutils/lib/esm/manipulation.js deleted file mode 100644 index d5878853..00000000 --- a/node_modules/domutils/lib/esm/manipulation.js +++ /dev/null @@ -1,134 +0,0 @@ -/** - * Remove an element from the dom - * - * @category Manipulation - * @param elem The element to be removed - */ -export function removeElement(elem) { - if (elem.prev) - elem.prev.next = elem.next; - if (elem.next) - elem.next.prev = elem.prev; - if (elem.parent) { - const childs = elem.parent.children; - const childsIndex = childs.lastIndexOf(elem); - if (childsIndex >= 0) { - childs.splice(childsIndex, 1); - } - } - elem.next = null; - elem.prev = null; - elem.parent = null; -} -/** - * Replace an element in the dom - * - * @category Manipulation - * @param elem The element to be replaced - * @param replacement The element to be added - */ -export function replaceElement(elem, replacement) { - const prev = (replacement.prev = elem.prev); - if (prev) { - prev.next = replacement; - } - const next = (replacement.next = elem.next); - if (next) { - next.prev = replacement; - } - const parent = (replacement.parent = elem.parent); - if (parent) { - const childs = parent.children; - childs[childs.lastIndexOf(elem)] = replacement; - elem.parent = null; - } -} -/** - * Append a child to an element. - * - * @category Manipulation - * @param parent The element to append to. - * @param child The element to be added as a child. - */ -export function appendChild(parent, child) { - removeElement(child); - child.next = null; - child.parent = parent; - if (parent.children.push(child) > 1) { - const sibling = parent.children[parent.children.length - 2]; - sibling.next = child; - child.prev = sibling; - } - else { - child.prev = null; - } -} -/** - * Append an element after another. - * - * @category Manipulation - * @param elem The element to append after. - * @param next The element be added. - */ -export function append(elem, next) { - removeElement(next); - const { parent } = elem; - const currNext = elem.next; - next.next = currNext; - next.prev = elem; - elem.next = next; - next.parent = parent; - if (currNext) { - currNext.prev = next; - if (parent) { - const childs = parent.children; - childs.splice(childs.lastIndexOf(currNext), 0, next); - } - } - else if (parent) { - parent.children.push(next); - } -} -/** - * Prepend a child to an element. - * - * @category Manipulation - * @param parent The element to prepend before. - * @param child The element to be added as a child. - */ -export function prependChild(parent, child) { - removeElement(child); - child.parent = parent; - child.prev = null; - if (parent.children.unshift(child) !== 1) { - const sibling = parent.children[1]; - sibling.prev = child; - child.next = sibling; - } - else { - child.next = null; - } -} -/** - * Prepend an element before another. - * - * @category Manipulation - * @param elem The element to prepend before. - * @param prev The element be added. - */ -export function prepend(elem, prev) { - removeElement(prev); - const { parent } = elem; - if (parent) { - const childs = parent.children; - childs.splice(childs.indexOf(elem), 0, prev); - } - if (elem.prev) { - elem.prev.next = prev; - } - prev.parent = parent; - prev.prev = elem.prev; - prev.next = elem; - elem.prev = prev; -} -//# sourceMappingURL=manipulation.js.map \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/manipulation.js.map b/node_modules/domutils/lib/esm/manipulation.js.map deleted file mode 100644 index 6088216f..00000000 --- a/node_modules/domutils/lib/esm/manipulation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"manipulation.js","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/96c989e159c98218958f375ea04210f2d1b43c0c/src/","sources":["manipulation.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,IAAe;IACzC,IAAI,IAAI,CAAC,IAAI;QAAE,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IAC1C,IAAI,IAAI,CAAC,IAAI;QAAE,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IAE1C,IAAI,IAAI,CAAC,MAAM,EAAE;QACb,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;QACpC,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,WAAW,IAAI,CAAC,EAAE;YAClB,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;SACjC;KACJ;IACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACjB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;AACvB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,IAAe,EAAE,WAAsB;IAClE,MAAM,IAAI,GAAG,CAAC,WAAW,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5C,IAAI,IAAI,EAAE;QACN,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;KAC3B;IAED,MAAM,IAAI,GAAG,CAAC,WAAW,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5C,IAAI,IAAI,EAAE;QACN,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;KAC3B;IAED,MAAM,MAAM,GAAG,CAAC,WA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AM,CAAC;IACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/package.json b/node_modules/domutils/lib/esm/package.json deleted file mode 100644 index 089153bc..00000000 --- a/node_modules/domutils/lib/esm/package.json +++ /dev/null @@ -1 +0,0 @@ -{"type":"module"} diff --git a/node_modules/domutils/lib/esm/querying.d.ts b/node_modules/domutils/lib/esm/querying.d.ts deleted file mode 100644 index 630531db..00000000 --- a/node_modules/domutils/lib/esm/querying.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { Element, AnyNode } from "domhandler"; -/** - * Search a node and its children for nodes passing a test function. If `node` is not an array, it will be wrapped in one. - * - * @category Querying - * @param test Function to test nodes on. - * @param node Node to search. Will be included in the result set if it matches. - * @param recurse Also consider child nodes. - * @param limit Maximum number of nodes to return. - * @returns All nodes passing `test`. - */ -export declare function filter(test: (elem: AnyNode) => boolean, node: AnyNode | AnyNode[], recurse?: boolean, limit?: number): AnyNode[]; -/** - * Search an array of nodes and their children for nodes passing a test function. - * - * @category Querying - * @param test Function to test nodes on. - * @param nodes Array of nodes to search. - * @param recurse Also consider child nodes. - * @param limit Maximum number of nodes to return. - * @returns All nodes passing `test`. - */ -export declare function find(test: (elem: AnyNode) => boolean, nodes: AnyNode[], recurse: boolean, limit: number): AnyNode[]; -/** - * Finds the first element inside of an array that matches a test function. This is an alias for `Array.prototype.find`. - * - * @category Querying - * @param test Function to test nodes on. - * @param nodes Array of nodes to search. - * @returns The first node in the array that passes `test`. - * @deprecated Use `Array.prototype.find` directly. - */ -export declare function findOneChild(test: (elem: T) => boolean, nodes: T[]): T | undefined; -/** - * Finds one element in a tree that passes a test. - * - * @category Querying - * @param test Function to test nodes on. - * @param nodes Node or array of nodes to search. - * @param recurse Also consider child nodes. - * @returns The first node that passes `test`. - */ -export declare function findOne(test: (elem: Element) => boolean, nodes: AnyNode[], recurse?: boolean): Element | null; -/** - * Checks if a tree of nodes contains at least one node passing a test. - * - * @category Querying - * @param test Function to test nodes on. - * @param nodes Array of nodes to search. - * @returns Whether a tree of nodes contains at least one node passing the test. - */ -export declare function existsOne(test: (elem: Element) => boolean, nodes: AnyNode[]): boolean; -/** - * Search an array of nodes and their children for elements passing a test function. - * - * Same as `find`, but limited to elements and with less options, leading to reduced complexity. - * - * @category Querying - * @param test Function to test nodes on. - * @param nodes Array of nodes to search. - * @returns All nodes passing `test`. - */ -export declare function findAll(test: (elem: Element) => boolean, nodes: AnyNode[]): Element[]; -//# sourceMappingURL=querying.d.ts.map \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/querying.d.ts.map b/node_modules/domutils/lib/esm/querying.d.ts.map deleted file mode 100644 index 9dc18fc8..00000000 --- a/node_modules/domutils/lib/esm/querying.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"querying.d.ts","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/96c989e159c98218958f375ea04210f2d1b43c0c/src/","sources":["querying.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAElE;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CAClB,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,EAChC,IAAI,EAAE,OAAO,GAAG,OAAO,EAAE,EACzB,OAAO,UAAO,EACd,KAAK,SAAW,GACjB,OAAO,EAAE,CAEX;AAED;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAChB,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,EAChC,KAAK,EAAE,OAAO,EAAE,EAChB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,MAAM,GACd,OAAO,EAAE,CAuCX;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC1B,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,EAC1B,KAAK,EAAE,CAAC,EAAE,GACX,CAAC,GAAG,SAAS,CAEf;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CACnB,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,EAChC,KAAK,EAAE,OAAO,EAAE,EAChB,OAAO,UAAO,GACf,OAAO,GAAG,IAAI,CAehB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CACrB,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,EAChC,KAAK,EAAE,OAAO,EAAE,GACjB,OAAO,CAMT;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CACnB,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,EAChC,KAAK,EAAE,OAAO,EAAE,GACjB,OAAO,EAAE,CA6BX"} \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/querying.js b/node_modules/domutils/lib/esm/querying.js deleted file mode 100644 index c0074269..00000000 --- a/node_modules/domutils/lib/esm/querying.js +++ /dev/null @@ -1,145 +0,0 @@ -import { isTag, hasChildren } from "domhandler"; -/** - * Search a node and its children for nodes passing a test function. If `node` is not an array, it will be wrapped in one. - * - * @category Querying - * @param test Function to test nodes on. - * @param node Node to search. Will be included in the result set if it matches. - * @param recurse Also consider child nodes. - * @param limit Maximum number of nodes to return. - * @returns All nodes passing `test`. - */ -export function filter(test, node, recurse = true, limit = Infinity) { - return find(test, Array.isArray(node) ? node : [node], recurse, limit); -} -/** - * Search an array of nodes and their children for nodes passing a test function. - * - * @category Querying - * @param test Function to test nodes on. - * @param nodes Array of nodes to search. - * @param recurse Also consider child nodes. - * @param limit Maximum number of nodes to return. - * @returns All nodes passing `test`. - */ -export function find(test, nodes, recurse, limit) { - const result = []; - /** Stack of the arrays we are looking at. */ - const nodeStack = [nodes]; - /** Stack of the indices within the arrays. */ - const indexStack = [0]; - for (;;) { - // First, check if the current array has any more elements to look at. - if (indexStack[0] >= nodeStack[0].length) { - // If we have no more arrays to look at, we are done. - if (indexStack.length === 1) { - return result; - } - // Otherwise, remove the current array from the stack. - nodeStack.shift(); - indexStack.shift(); - // Loop back to the start to continue with the next array. - continue; - } - const elem = nodeStack[0][indexStack[0]++]; - if (test(elem)) { - result.push(elem); - if (--limit <= 0) - return result; - } - if (recurse && hasChildren(elem) && elem.children.length > 0) { - /* - * Add the children to the stack. We are depth-first, so this is - * the next array we look at. - */ - indexStack.unshift(0); - nodeStack.unshift(elem.children); - } - } -} -/** - * Finds the first element inside of an array that matches a test function. This is an alias for `Array.prototype.find`. - * - * @category Querying - * @param test Function to test nodes on. - * @param nodes Array of nodes to search. - * @returns The first node in the array that passes `test`. - * @deprecated Use `Array.prototype.find` directly. - */ -export function findOneChild(test, nodes) { - return nodes.find(test); -} -/** - * Finds one element in a tree that passes a test. - * - * @category Querying - * @param test Function to test nodes on. - * @param nodes Node or array of nodes to search. - * @param recurse Also consider child nodes. - * @returns The first node that passes `test`. - */ -export function findOne(test, nodes, recurse = true) { - let elem = null; - for (let i = 0; i < nodes.length && !elem; i++) { - const node = nodes[i]; - if (!isTag(node)) { - continue; - } - else if (test(node)) { - elem = node; - } - else if (recurse && node.children.length > 0) { - elem = findOne(test, node.children, true); - } - } - return elem; -} -/** - * Checks if a tree of nodes contains at least one node passing a test. - * - * @category Querying - * @param test Function to test nodes on. - * @param nodes Array of nodes to search. - * @returns Whether a tree of nodes contains at least one node passing the test. - */ -export function existsOne(test, nodes) { - return nodes.some((checked) => isTag(checked) && - (test(checked) || existsOne(test, checked.children))); -} -/** - * Search an array of nodes and their children for elements passing a test function. - * - * Same as `find`, but limited to elements and with less options, leading to reduced complexity. - * - * @category Querying - * @param test Function to test nodes on. - * @param nodes Array of nodes to search. - * @returns All nodes passing `test`. - */ -export function findAll(test, nodes) { - const result = []; - const nodeStack = [nodes]; - const indexStack = [0]; - for (;;) { - if (indexStack[0] >= nodeStack[0].length) { - if (nodeStack.length === 1) { - return result; - } - // Otherwise, remove the current array from the stack. - nodeStack.shift(); - indexStack.shift(); - // Loop back to the start to continue with the next array. - continue; - } - const elem = nodeStack[0][indexStack[0]++]; - if (!isTag(elem)) - continue; - if (test(elem)) - result.push(elem); - if (elem.children.length > 0) { - indexStack.unshift(0); - nodeStack.unshift(elem.children); - } - } -} -//# sourceMappingURL=querying.js.map \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/querying.js.map b/node_modules/domutils/lib/esm/querying.js.map deleted file mode 100644 index e77de201..00000000 --- a/node_modules/domutils/lib/esm/querying.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"querying.js","sourceRoot":"https://raw.githubusercontent.com/fb55/domutils/96c989e159c98218958f375ea04210f2d1b43c0c/src/","sources":["querying.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAoB,MAAM,YAAY,CAAC;AAElE;;;;;;;;;GASG;AACH,MAAM,UAAU,MAAM,CAClB,IAAgC,EAChC,IAAyB,EACzB,OAAO,GAAG,IAAI,EACd,KAAK,GAAG,QAAQ;IAEhB,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAC3E,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,IAAI,CAChB,IAAgC,EAChC,KAAgB,EAChB,OAAgB,EAChB,KAAa;IAEb,MAAM,MAAM,GAAc,EAAE,CAAC;IAC7B,6CAA6C;IAC7C,MAAM,SAAS,GAAG,CAAC,KAAK,CAAC,CAAC;IAC1B,8CAA8C;IAC9C,MAAM,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC;IAEvB,SAAS;QACL,sEAAsE;QACtE,IAAI,UAAU,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC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AI,CAAC,IAAI,CAAC;YAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAElC,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YAC1B,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACtB,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACpC;KACJ;AACL,CAAC"} \ No newline at end of file diff --git a/node_modules/domutils/lib/esm/stringify.d.ts b/node_modules/domutils/lib/esm/stringify.d.ts deleted file mode 100644 index 6e6e397d..00000000 --- a/node_modules/domutils/lib/esm/stringify.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { AnyNode } from "domhandler"; -import { DomSerializerOptions } from "dom-serializer"; -/** - * @category Stringify - * @deprecated Use the `dom-serializer` module directly. - * @param node Node to get the outer HTML of. - * @param options Options for serialization. - * @returns `node`'s outer HTML. - */ -export declare function getOuterHTML(node: AnyNode | ArrayLike, options?: DomSerializerOptions): string; -/** - * @category Stringify - * @deprecated Use the `dom-serializer` module directly. - * @param node Node to get the inner HTML of. - * @param options Options for serialization. - * @returns `node`'s inner HTML. - */ -export declare function getInnerHTML(node: AnyNode, options?: DomSerializerOptions): string; -/** - * Get a node's inner text. Same as `textContent`, but inserts newlines for `
` tags. Ignores comments. - * - * @category Stringify - * @deprecated Use `textContent` instead. - * @param node Node to get the inner text of. - * @returns `node`'s inner text. - */ -export declare function getText(node: AnyNode | AnyNode[]): string; -/** - * Get a node's text content. Ignores comments. - * - * @category Stringify - * @param node Node to get the text content of. - * @returns `node`'s text content. - * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent} - */ -export declare function textContent(node: AnyNode | AnyNode[]): string; -/** - * Get a node's inner text, ignoring `