diff --git a/common/src/app/common/schema.cljc b/common/src/app/common/schema.cljc index 494b1df2a..641837f53 100644 --- a/common/src/app/common/schema.cljc +++ b/common/src/app/common/schema.cljc @@ -316,6 +316,22 @@ (let [v (if (string? v) (str/split v #"[\s,]+") v)] (into #{} non-empty-strings-xf v)))}}) +(def! ::set-of-keywords + {:type ::set-of-keywords + :pred #(and (set? %) (every? keyword? %)) + :type-properties + {:title "set[string]" + :description "Set of Strings" + :error/message "should be a set of strings" + :gen/gen (-> :keyword sg/generator sg/set) + ::oapi/type "array" + ::oapi/format "set" + ::oapi/items {:type "string" :format "keyword"} + ::oapi/unique-items true + ::oapi/decode (fn [v] + (let [v (if (string? v) (str/split v #"[\s,]+") v)] + (into #{} (comp non-empty-strings-xf (map keyword)) v)))}}) + (def! ::set-of-emails {:type ::set-of-emails :pred #(and (set? %) (every? string? %)) diff --git a/common/src/app/common/svg.cljc b/common/src/app/common/svg.cljc new file mode 100644 index 000000000..e9524182c --- /dev/null +++ b/common/src/app/common/svg.cljc @@ -0,0 +1,16 @@ +;; This Source Code Form is subject to the terms of the Mozilla Public +;; License, v. 2.0. If a copy of the MPL was not distributed with this +;; file, You can obtain one at http://mozilla.org/MPL/2.0/. +;; +;; Copyright (c) KALEIDOS INC + +(ns app.common.svg + #?(:cljs + (:require + ["./svg_optimizer.js" :as svgo]))) + +#?(:cljs + (defn optimize + ([input] (optimize input nil)) + ([input options] + (svgo/optimize input (clj->js options))))) diff --git a/common/src/app/common/svg_optimizer.js b/common/src/app/common/svg_optimizer.js new file mode 100644 index 000000000..bceecdcfa --- /dev/null +++ b/common/src/app/common/svg_optimizer.js @@ -0,0 +1,21670 @@ +var commonjsGlobal = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}; + +function getAugmentedNamespace(n) { + if (n.__esModule) return n; + var f = n.default; + if ("function" == typeof f) { + var a = function a() { + return this instanceof a ? Reflect.construct(f, arguments, this.constructor) : f.apply(this, arguments); + }; + a.prototype = f.prototype; + } else a = {}; + return Object.defineProperty(a, "__esModule", { + value: !0 + }), Object.keys(n).forEach((function(k) { + var d = Object.getOwnPropertyDescriptor(n, k); + Object.defineProperty(a, k, d.get ? d : { + enumerable: !0, + get: function() { + return n[k]; + } + }); + })), a; +} + +var svgo = {}, parser$4 = {}, sax = {}; + +!function(sax) { + sax.parser = function(strict, opt) { + return new SAXParser(strict, opt); + }, sax.SAXParser = SAXParser, sax.MAX_BUFFER_LENGTH = 65536; + var buffers = [ "comment", "sgmlDecl", "textNode", "tagName", "doctype", "procInstName", "procInstBody", "entity", "attribName", "attribValue", "cdata", "script" ]; + function SAXParser(strict, opt) { + if (!(this instanceof SAXParser)) return new SAXParser(strict, opt); + !function(parser) { + for (var i = 0, l = buffers.length; i < l; i++) parser[buffers[i]] = ""; + }(this), this.q = this.c = "", this.bufferCheckPosition = sax.MAX_BUFFER_LENGTH, + this.opt = opt || {}, this.opt.lowercase = this.opt.lowercase || this.opt.lowercasetags, + this.looseCase = this.opt.lowercase ? "toLowerCase" : "toUpperCase", this.tags = [], + this.closed = this.closedRoot = this.sawRoot = !1, this.tag = this.error = null, + this.strict = !!strict, this.noscript = !(!strict && !this.opt.noscript), this.state = S.BEGIN, + this.strictEntities = this.opt.strictEntities, this.ENTITIES = this.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES), + this.attribList = [], this.opt.xmlns && (this.ns = Object.create(rootNS)), this.trackPosition = !1 !== this.opt.position, + this.trackPosition && (this.position = this.line = this.column = 0), emit(this, "onready"); + } + sax.EVENTS = [ "text", "processinginstruction", "sgmldeclaration", "doctype", "comment", "opentagstart", "attribute", "opentag", "closetag", "opencdata", "cdata", "closecdata", "error", "end", "ready", "script", "opennamespace", "closenamespace" ], + Object.create || (Object.create = function(o) { + function F() {} + return F.prototype = o, new F; + }), Object.keys || (Object.keys = function(o) { + var a = []; + for (var i in o) o.hasOwnProperty(i) && a.push(i); + return a; + }), SAXParser.prototype = { + end: function() { + end(this); + }, + write: function(chunk) { + if (this.error) throw this.error; + if (this.closed) return error(this, "Cannot write after close. Assign an onready handler."); + if (null === chunk) return end(this); + "object" == typeof chunk && (chunk = chunk.toString()); + for (var i = 0, c = ""; c = charAt(chunk, i++), this.c = c, c; ) switch (this.trackPosition && (this.position++, + "\n" === c ? (this.line++, this.column = 0) : this.column++), this.state) { + case S.BEGIN: + if (this.state = S.BEGIN_WHITESPACE, "\ufeff" === c) continue; + beginWhiteSpace(this, c); + continue; + + case S.BEGIN_WHITESPACE: + beginWhiteSpace(this, c); + continue; + + case S.TEXT: + if (this.sawRoot && !this.closedRoot) { + for (var starti = i - 1; c && "<" !== c && "&" !== c; ) (c = charAt(chunk, i++)) && this.trackPosition && (this.position++, + "\n" === c ? (this.line++, this.column = 0) : this.column++); + this.textNode += chunk.substring(starti, i - 1); + } + "<" !== c || this.sawRoot && this.closedRoot && !this.strict ? (isWhitespace(c) || this.sawRoot && !this.closedRoot || strictFail(this, "Text data outside of root node."), + "&" === c ? this.state = S.TEXT_ENTITY : this.textNode += c) : (this.state = S.OPEN_WAKA, + this.startTagPosition = this.position); + continue; + + case S.SCRIPT: + "<" === c ? this.state = S.SCRIPT_ENDING : this.script += c; + continue; + + case S.SCRIPT_ENDING: + "/" === c ? this.state = S.CLOSE_TAG : (this.script += "<" + c, this.state = S.SCRIPT); + continue; + + case S.OPEN_WAKA: + if ("!" === c) this.state = S.SGML_DECL, this.sgmlDecl = ""; else if (isWhitespace(c)) ; else if (isMatch(nameStart, c)) this.state = S.OPEN_TAG, + this.tagName = c; else if ("/" === c) this.state = S.CLOSE_TAG, this.tagName = ""; else if ("?" === c) this.state = S.PROC_INST, + this.procInstName = this.procInstBody = ""; else { + if (strictFail(this, "Unencoded <"), this.startTagPosition + 1 < this.position) { + var pad = this.position - this.startTagPosition; + c = new Array(pad).join(" ") + c; + } + this.textNode += "<" + c, this.state = S.TEXT; + } + continue; + + case S.SGML_DECL: + (this.sgmlDecl + c).toUpperCase() === CDATA ? (emitNode(this, "onopencdata"), this.state = S.CDATA, + this.sgmlDecl = "", this.cdata = "") : this.sgmlDecl + c === "--" ? (this.state = S.COMMENT, + this.comment = "", this.sgmlDecl = "") : (this.sgmlDecl + c).toUpperCase() === DOCTYPE ? (this.state = S.DOCTYPE, + (this.doctype || this.sawRoot) && strictFail(this, "Inappropriately located doctype declaration"), + this.doctype = "", this.sgmlDecl = "") : ">" === c ? (emitNode(this, "onsgmldeclaration", this.sgmlDecl), + this.sgmlDecl = "", this.state = S.TEXT) : isQuote(c) ? (this.state = S.SGML_DECL_QUOTED, + this.sgmlDecl += c) : this.sgmlDecl += c; + continue; + + case S.SGML_DECL_QUOTED: + c === this.q && (this.state = S.SGML_DECL, this.q = ""), this.sgmlDecl += c; + continue; + + case S.DOCTYPE: + ">" === c ? (this.state = S.TEXT, emitNode(this, "ondoctype", this.doctype), this.doctype = !0) : (this.doctype += c, + "[" === c ? this.state = S.DOCTYPE_DTD : isQuote(c) && (this.state = S.DOCTYPE_QUOTED, + this.q = c)); + continue; + + case S.DOCTYPE_QUOTED: + this.doctype += c, c === this.q && (this.q = "", this.state = S.DOCTYPE); + continue; + + case S.DOCTYPE_DTD: + this.doctype += c, "]" === c ? this.state = S.DOCTYPE : isQuote(c) && (this.state = S.DOCTYPE_DTD_QUOTED, + this.q = c); + continue; + + case S.DOCTYPE_DTD_QUOTED: + this.doctype += c, c === this.q && (this.state = S.DOCTYPE_DTD, this.q = ""); + continue; + + case S.COMMENT: + "-" === c ? this.state = S.COMMENT_ENDING : this.comment += c; + continue; + + case S.COMMENT_ENDING: + "-" === c ? (this.state = S.COMMENT_ENDED, this.comment = textopts(this.opt, this.comment), + this.comment && emitNode(this, "oncomment", this.comment), this.comment = "") : (this.comment += "-" + c, + this.state = S.COMMENT); + continue; + + case S.COMMENT_ENDED: + ">" !== c ? (strictFail(this, "Malformed comment"), this.comment += "--" + c, this.state = S.COMMENT) : this.state = S.TEXT; + continue; + + case S.CDATA: + "]" === c ? this.state = S.CDATA_ENDING : this.cdata += c; + continue; + + case S.CDATA_ENDING: + "]" === c ? this.state = S.CDATA_ENDING_2 : (this.cdata += "]" + c, this.state = S.CDATA); + continue; + + case S.CDATA_ENDING_2: + ">" === c ? (this.cdata && emitNode(this, "oncdata", this.cdata), emitNode(this, "onclosecdata"), + this.cdata = "", this.state = S.TEXT) : "]" === c ? this.cdata += "]" : (this.cdata += "]]" + c, + this.state = S.CDATA); + continue; + + case S.PROC_INST: + "?" === c ? this.state = S.PROC_INST_ENDING : isWhitespace(c) ? this.state = S.PROC_INST_BODY : this.procInstName += c; + continue; + + case S.PROC_INST_BODY: + if (!this.procInstBody && isWhitespace(c)) continue; + "?" === c ? this.state = S.PROC_INST_ENDING : this.procInstBody += c; + continue; + + case S.PROC_INST_ENDING: + ">" === c ? (emitNode(this, "onprocessinginstruction", { + name: this.procInstName, + body: this.procInstBody + }), this.procInstName = this.procInstBody = "", this.state = S.TEXT) : (this.procInstBody += "?" + c, + this.state = S.PROC_INST_BODY); + continue; + + case S.OPEN_TAG: + isMatch(nameBody, c) ? this.tagName += c : (newTag(this), ">" === c ? openTag(this) : "/" === c ? this.state = S.OPEN_TAG_SLASH : (isWhitespace(c) || strictFail(this, "Invalid character in tag name"), + this.state = S.ATTRIB)); + continue; + + case S.OPEN_TAG_SLASH: + ">" === c ? (openTag(this, !0), closeTag(this)) : (strictFail(this, "Forward-slash in opening tag not followed by >"), + this.state = S.ATTRIB); + continue; + + case S.ATTRIB: + if (isWhitespace(c)) continue; + ">" === c ? openTag(this) : "/" === c ? this.state = S.OPEN_TAG_SLASH : isMatch(nameStart, c) ? (this.attribName = c, + this.attribValue = "", this.state = S.ATTRIB_NAME) : strictFail(this, "Invalid attribute name"); + continue; + + case S.ATTRIB_NAME: + "=" === c ? this.state = S.ATTRIB_VALUE : ">" === c ? (strictFail(this, "Attribute without value"), + this.attribValue = this.attribName, attrib(this), openTag(this)) : isWhitespace(c) ? this.state = S.ATTRIB_NAME_SAW_WHITE : isMatch(nameBody, c) ? this.attribName += c : strictFail(this, "Invalid attribute name"); + continue; + + case S.ATTRIB_NAME_SAW_WHITE: + if ("=" === c) this.state = S.ATTRIB_VALUE; else { + if (isWhitespace(c)) continue; + strictFail(this, "Attribute without value"), this.tag.attributes[this.attribName] = "", + this.attribValue = "", emitNode(this, "onattribute", { + name: this.attribName, + value: "" + }), this.attribName = "", ">" === c ? openTag(this) : isMatch(nameStart, c) ? (this.attribName = c, + this.state = S.ATTRIB_NAME) : (strictFail(this, "Invalid attribute name"), this.state = S.ATTRIB); + } + continue; + + case S.ATTRIB_VALUE: + if (isWhitespace(c)) continue; + isQuote(c) ? (this.q = c, this.state = S.ATTRIB_VALUE_QUOTED) : (strictFail(this, "Unquoted attribute value"), + this.state = S.ATTRIB_VALUE_UNQUOTED, this.attribValue = c); + continue; + + case S.ATTRIB_VALUE_QUOTED: + if (c !== this.q) { + "&" === c ? this.state = S.ATTRIB_VALUE_ENTITY_Q : this.attribValue += c; + continue; + } + attrib(this), this.q = "", this.state = S.ATTRIB_VALUE_CLOSED; + continue; + + case S.ATTRIB_VALUE_CLOSED: + isWhitespace(c) ? this.state = S.ATTRIB : ">" === c ? openTag(this) : "/" === c ? this.state = S.OPEN_TAG_SLASH : isMatch(nameStart, c) ? (strictFail(this, "No whitespace between attributes"), + this.attribName = c, this.attribValue = "", this.state = S.ATTRIB_NAME) : strictFail(this, "Invalid attribute name"); + continue; + + case S.ATTRIB_VALUE_UNQUOTED: + if (!isAttribEnd(c)) { + "&" === c ? this.state = S.ATTRIB_VALUE_ENTITY_U : this.attribValue += c; + continue; + } + attrib(this), ">" === c ? openTag(this) : this.state = S.ATTRIB; + continue; + + case S.CLOSE_TAG: + if (this.tagName) ">" === c ? closeTag(this) : isMatch(nameBody, c) ? this.tagName += c : this.script ? (this.script += "" === c ? closeTag(this) : strictFail(this, "Invalid characters in closing tag"); + continue; + + case S.TEXT_ENTITY: + case S.ATTRIB_VALUE_ENTITY_Q: + case S.ATTRIB_VALUE_ENTITY_U: + var returnState, buffer; + switch (this.state) { + case S.TEXT_ENTITY: + returnState = S.TEXT, buffer = "textNode"; + break; + + case S.ATTRIB_VALUE_ENTITY_Q: + returnState = S.ATTRIB_VALUE_QUOTED, buffer = "attribValue"; + break; + + case S.ATTRIB_VALUE_ENTITY_U: + returnState = S.ATTRIB_VALUE_UNQUOTED, buffer = "attribValue"; + } + if (";" === c) { + var parsedEntity = parseEntity(this); + this.state !== S.TEXT_ENTITY || sax.ENTITIES[this.entity] || parsedEntity === "&" + this.entity + ";" ? this[buffer] += parsedEntity : chunk = chunk.slice(0, i) + parsedEntity + chunk.slice(i), + this.entity = "", this.state = returnState; + } else isMatch(this.entity.length ? entityBody : entityStart, c) ? this.entity += c : (strictFail(this, "Invalid character in entity name"), + this[buffer] += "&" + this.entity + c, this.entity = "", this.state = returnState); + continue; + + default: + throw new Error(this, "Unknown state: " + this.state); + } + return this.position >= this.bufferCheckPosition && function(parser) { + for (var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10), maxActual = 0, i = 0, l = buffers.length; i < l; i++) { + var len = parser[buffers[i]].length; + if (len > maxAllowed) switch (buffers[i]) { + case "textNode": + closeText(parser); + break; + + case "cdata": + emitNode(parser, "oncdata", parser.cdata), parser.cdata = ""; + break; + + case "script": + emitNode(parser, "onscript", parser.script), parser.script = ""; + break; + + default: + error(parser, "Max buffer length exceeded: " + buffers[i]); + } + maxActual = Math.max(maxActual, len); + } + var m = sax.MAX_BUFFER_LENGTH - maxActual; + parser.bufferCheckPosition = m + parser.position; + }(this), this; + }, + resume: function() { + return this.error = null, this; + }, + close: function() { + return this.write(null); + }, + flush: function() { + !function(parser) { + closeText(parser), "" !== parser.cdata && (emitNode(parser, "oncdata", parser.cdata), + parser.cdata = ""), "" !== parser.script && (emitNode(parser, "onscript", parser.script), + parser.script = ""); + }(this); + } + }; + var CDATA = "[CDATA[", DOCTYPE = "DOCTYPE", XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace", XMLNS_NAMESPACE = "http://www.w3.org/2000/xmlns/", rootNS = { + xml: XML_NAMESPACE, + xmlns: XMLNS_NAMESPACE + }, nameStart = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, nameBody = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, entityStart = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, entityBody = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/; + function isWhitespace(c) { + return " " === c || "\n" === c || "\r" === c || "\t" === c; + } + function isQuote(c) { + return '"' === c || "'" === c; + } + function isAttribEnd(c) { + return ">" === c || isWhitespace(c); + } + function isMatch(regex, c) { + return regex.test(c); + } + function notMatch(regex, c) { + return !isMatch(regex, c); + } + var S = 0; + for (var s in sax.STATE = { + BEGIN: S++, + BEGIN_WHITESPACE: S++, + TEXT: S++, + TEXT_ENTITY: S++, + OPEN_WAKA: S++, + SGML_DECL: S++, + SGML_DECL_QUOTED: S++, + DOCTYPE: S++, + DOCTYPE_QUOTED: S++, + DOCTYPE_DTD: S++, + DOCTYPE_DTD_QUOTED: S++, + COMMENT_STARTING: S++, + COMMENT: S++, + COMMENT_ENDING: S++, + COMMENT_ENDED: S++, + CDATA: S++, + CDATA_ENDING: S++, + CDATA_ENDING_2: S++, + PROC_INST: S++, + PROC_INST_BODY: S++, + PROC_INST_ENDING: S++, + OPEN_TAG: S++, + OPEN_TAG_SLASH: S++, + ATTRIB: S++, + ATTRIB_NAME: S++, + ATTRIB_NAME_SAW_WHITE: S++, + ATTRIB_VALUE: S++, + ATTRIB_VALUE_QUOTED: S++, + ATTRIB_VALUE_CLOSED: S++, + ATTRIB_VALUE_UNQUOTED: S++, + ATTRIB_VALUE_ENTITY_Q: S++, + ATTRIB_VALUE_ENTITY_U: S++, + CLOSE_TAG: S++, + CLOSE_TAG_SAW_WHITE: S++, + SCRIPT: S++, + SCRIPT_ENDING: S++ + }, sax.XML_ENTITIES = { + "amp": "&", + "gt": ">", + "lt": "<", + "quot": '"', + "apos": "'" + }, sax.ENTITIES = { + "amp": "&", + "gt": ">", + "lt": "<", + "quot": '"', + "apos": "'", + "AElig": 198, + "Aacute": 193, + "Acirc": 194, + "Agrave": 192, + "Aring": 197, + "Atilde": 195, + "Auml": 196, + "Ccedil": 199, + "ETH": 208, + "Eacute": 201, + "Ecirc": 202, + "Egrave": 200, + "Euml": 203, + "Iacute": 205, + "Icirc": 206, + "Igrave": 204, + "Iuml": 207, + "Ntilde": 209, + "Oacute": 211, + "Ocirc": 212, + "Ograve": 210, + "Oslash": 216, + "Otilde": 213, + "Ouml": 214, + "THORN": 222, + "Uacute": 218, + "Ucirc": 219, + "Ugrave": 217, + "Uuml": 220, + "Yacute": 221, + "aacute": 225, + "acirc": 226, + "aelig": 230, + "agrave": 224, + "aring": 229, + "atilde": 227, + "auml": 228, + "ccedil": 231, + "eacute": 233, + "ecirc": 234, + "egrave": 232, + "eth": 240, + "euml": 235, + "iacute": 237, + "icirc": 238, + "igrave": 236, + "iuml": 239, + "ntilde": 241, + "oacute": 243, + "ocirc": 244, + "ograve": 242, + "oslash": 248, + "otilde": 245, + "ouml": 246, + "szlig": 223, + "thorn": 254, + "uacute": 250, + "ucirc": 251, + "ugrave": 249, + "uuml": 252, + "yacute": 253, + "yuml": 255, + "copy": 169, + "reg": 174, + "nbsp": 160, + "iexcl": 161, + "cent": 162, + "pound": 163, + "curren": 164, + "yen": 165, + "brvbar": 166, + "sect": 167, + "uml": 168, + "ordf": 170, + "laquo": 171, + "not": 172, + "shy": 173, + "macr": 175, + "deg": 176, + "plusmn": 177, + "sup1": 185, + "sup2": 178, + "sup3": 179, + "acute": 180, + "micro": 181, + "para": 182, + "middot": 183, + "cedil": 184, + "ordm": 186, + "raquo": 187, + "frac14": 188, + "frac12": 189, + "frac34": 190, + "iquest": 191, + "times": 215, + "divide": 247, + "OElig": 338, + "oelig": 339, + "Scaron": 352, + "scaron": 353, + "Yuml": 376, + "fnof": 402, + "circ": 710, + "tilde": 732, + "Alpha": 913, + "Beta": 914, + "Gamma": 915, + "Delta": 916, + "Epsilon": 917, + "Zeta": 918, + "Eta": 919, + "Theta": 920, + "Iota": 921, + "Kappa": 922, + "Lambda": 923, + "Mu": 924, + "Nu": 925, + "Xi": 926, + "Omicron": 927, + "Pi": 928, + "Rho": 929, + "Sigma": 931, + "Tau": 932, + "Upsilon": 933, + "Phi": 934, + "Chi": 935, + "Psi": 936, + "Omega": 937, + "alpha": 945, + "beta": 946, + "gamma": 947, + "delta": 948, + "epsilon": 949, + "zeta": 950, + "eta": 951, + "theta": 952, + "iota": 953, + "kappa": 954, + "lambda": 955, + "mu": 956, + "nu": 957, + "xi": 958, + "omicron": 959, + "pi": 960, + "rho": 961, + "sigmaf": 962, + "sigma": 963, + "tau": 964, + "upsilon": 965, + "phi": 966, + "chi": 967, + "psi": 968, + "omega": 969, + "thetasym": 977, + "upsih": 978, + "piv": 982, + "ensp": 8194, + "emsp": 8195, + "thinsp": 8201, + "zwnj": 8204, + "zwj": 8205, + "lrm": 8206, + "rlm": 8207, + "ndash": 8211, + "mdash": 8212, + "lsquo": 8216, + "rsquo": 8217, + "sbquo": 8218, + "ldquo": 8220, + "rdquo": 8221, + "bdquo": 8222, + "dagger": 8224, + "Dagger": 8225, + "bull": 8226, + "hellip": 8230, + "permil": 8240, + "prime": 8242, + "Prime": 8243, + "lsaquo": 8249, + "rsaquo": 8250, + "oline": 8254, + "frasl": 8260, + "euro": 8364, + "image": 8465, + "weierp": 8472, + "real": 8476, + "trade": 8482, + "alefsym": 8501, + "larr": 8592, + "uarr": 8593, + "rarr": 8594, + "darr": 8595, + "harr": 8596, + "crarr": 8629, + "lArr": 8656, + "uArr": 8657, + "rArr": 8658, + "dArr": 8659, + "hArr": 8660, + "forall": 8704, + "part": 8706, + "exist": 8707, + "empty": 8709, + "nabla": 8711, + "isin": 8712, + "notin": 8713, + "ni": 8715, + "prod": 8719, + "sum": 8721, + "minus": 8722, + "lowast": 8727, + "radic": 8730, + "prop": 8733, + "infin": 8734, + "ang": 8736, + "and": 8743, + "or": 8744, + "cap": 8745, + "cup": 8746, + "int": 8747, + "there4": 8756, + "sim": 8764, + "cong": 8773, + "asymp": 8776, + "ne": 8800, + "equiv": 8801, + "le": 8804, + "ge": 8805, + "sub": 8834, + "sup": 8835, + "nsub": 8836, + "sube": 8838, + "supe": 8839, + "oplus": 8853, + "otimes": 8855, + "perp": 8869, + "sdot": 8901, + "lceil": 8968, + "rceil": 8969, + "lfloor": 8970, + "rfloor": 8971, + "lang": 9001, + "rang": 9002, + "loz": 9674, + "spades": 9824, + "clubs": 9827, + "hearts": 9829, + "diams": 9830 + }, Object.keys(sax.ENTITIES).forEach((function(key) { + var e = sax.ENTITIES[key], s = "number" == typeof e ? String.fromCharCode(e) : e; + sax.ENTITIES[key] = s; + })), sax.STATE) sax.STATE[sax.STATE[s]] = s; + function emit(parser, event, data) { + parser[event] && parser[event](data); + } + function emitNode(parser, nodeType, data) { + parser.textNode && closeText(parser), emit(parser, nodeType, data); + } + function closeText(parser) { + parser.textNode = textopts(parser.opt, parser.textNode), parser.textNode && emit(parser, "ontext", parser.textNode), + parser.textNode = ""; + } + function textopts(opt, text) { + return opt.trim && (text = text.trim()), opt.normalize && (text = text.replace(/\s+/g, " ")), + text; + } + function error(parser, reason) { + closeText(parser); + const message = reason + "\nLine: " + parser.line + "\nColumn: " + parser.column + "\nChar: " + parser.c, error = new Error(message); + return error.reason = reason, error.line = parser.line, error.column = parser.column, + parser.error = error, emit(parser, "onerror", error), parser; + } + function end(parser) { + return parser.sawRoot && !parser.closedRoot && strictFail(parser, "Unclosed root tag"), + parser.state !== S.BEGIN && parser.state !== S.BEGIN_WHITESPACE && parser.state !== S.TEXT && error(parser, "Unexpected end"), + closeText(parser), parser.c = "", parser.closed = !0, emit(parser, "onend"), SAXParser.call(parser, parser.strict, parser.opt), + parser; + } + function strictFail(parser, message) { + if ("object" != typeof parser || !(parser instanceof SAXParser)) throw new Error("bad call to strictFail"); + parser.strict && error(parser, message); + } + function newTag(parser) { + parser.strict || (parser.tagName = parser.tagName[parser.looseCase]()); + var parent = parser.tags[parser.tags.length - 1] || parser, tag = parser.tag = { + name: parser.tagName, + attributes: {} + }; + parser.opt.xmlns && (tag.ns = parent.ns), parser.attribList.length = 0, emitNode(parser, "onopentagstart", tag); + } + function qname(name, attribute) { + var qualName = name.indexOf(":") < 0 ? [ "", name ] : name.split(":"), prefix = qualName[0], local = qualName[1]; + return attribute && "xmlns" === name && (prefix = "xmlns", local = ""), { + prefix, + local + }; + } + function attrib(parser) { + if (parser.strict || (parser.attribName = parser.attribName[parser.looseCase]()), + -1 !== parser.attribList.indexOf(parser.attribName) || parser.tag.attributes.hasOwnProperty(parser.attribName)) parser.attribName = parser.attribValue = ""; else { + if (parser.opt.xmlns) { + var qn = qname(parser.attribName, !0), prefix = qn.prefix, local = qn.local; + if ("xmlns" === prefix) if ("xml" === local && parser.attribValue !== XML_NAMESPACE) strictFail(parser, "xml: prefix must be bound to " + XML_NAMESPACE + "\nActual: " + parser.attribValue); else if ("xmlns" === local && parser.attribValue !== XMLNS_NAMESPACE) strictFail(parser, "xmlns: prefix must be bound to " + XMLNS_NAMESPACE + "\nActual: " + parser.attribValue); else { + var tag = parser.tag, parent = parser.tags[parser.tags.length - 1] || parser; + tag.ns === parent.ns && (tag.ns = Object.create(parent.ns)), tag.ns[local] = parser.attribValue; + } + parser.attribList.push([ parser.attribName, parser.attribValue ]); + } else parser.tag.attributes[parser.attribName] = parser.attribValue, emitNode(parser, "onattribute", { + name: parser.attribName, + value: parser.attribValue + }); + parser.attribName = parser.attribValue = ""; + } + } + function openTag(parser, selfClosing) { + if (parser.opt.xmlns) { + var tag = parser.tag, qn = qname(parser.tagName); + tag.prefix = qn.prefix, tag.local = qn.local, tag.uri = tag.ns[qn.prefix] || "", + tag.prefix && !tag.uri && (strictFail(parser, "Unbound namespace prefix: " + JSON.stringify(parser.tagName)), + tag.uri = qn.prefix); + var parent = parser.tags[parser.tags.length - 1] || parser; + tag.ns && parent.ns !== tag.ns && Object.keys(tag.ns).forEach((function(p) { + emitNode(parser, "onopennamespace", { + prefix: p, + uri: tag.ns[p] + }); + })); + for (var i = 0, l = parser.attribList.length; i < l; i++) { + var nv = parser.attribList[i], name = nv[0], value = nv[1], qualName = qname(name, !0), prefix = qualName.prefix, local = qualName.local, uri = "" === prefix ? "" : tag.ns[prefix] || "", a = { + name, + value, + prefix, + local, + uri + }; + prefix && "xmlns" !== prefix && !uri && (strictFail(parser, "Unbound namespace prefix: " + JSON.stringify(prefix)), + a.uri = prefix), parser.tag.attributes[name] = a, emitNode(parser, "onattribute", a); + } + parser.attribList.length = 0; + } + parser.tag.isSelfClosing = !!selfClosing, parser.sawRoot = !0, parser.tags.push(parser.tag), + emitNode(parser, "onopentag", parser.tag), selfClosing || (parser.noscript || "script" !== parser.tagName.toLowerCase() ? parser.state = S.TEXT : parser.state = S.SCRIPT, + parser.tag = null, parser.tagName = ""), parser.attribName = parser.attribValue = "", + parser.attribList.length = 0; + } + function closeTag(parser) { + if (!parser.tagName) return strictFail(parser, "Weird empty close tag."), parser.textNode += "", + void (parser.state = S.TEXT); + if (parser.script) { + if ("script" !== parser.tagName) return parser.script += "", + parser.tagName = "", void (parser.state = S.SCRIPT); + emitNode(parser, "onscript", parser.script), parser.script = ""; + } + var t = parser.tags.length, tagName = parser.tagName; + parser.strict || (tagName = tagName[parser.looseCase]()); + for (var closeTo = tagName; t-- && parser.tags[t].name !== closeTo; ) strictFail(parser, "Unexpected close tag"); + if (t < 0) return strictFail(parser, "Unmatched closing tag: " + parser.tagName), + parser.textNode += "", void (parser.state = S.TEXT); + parser.tagName = tagName; + for (var s = parser.tags.length; s-- > t; ) { + var tag = parser.tag = parser.tags.pop(); + parser.tagName = parser.tag.name, emitNode(parser, "onclosetag", parser.tagName); + var x = {}; + for (var i in tag.ns) x[i] = tag.ns[i]; + var parent = parser.tags[parser.tags.length - 1] || parser; + parser.opt.xmlns && tag.ns !== parent.ns && Object.keys(tag.ns).forEach((function(p) { + var n = tag.ns[p]; + emitNode(parser, "onclosenamespace", { + prefix: p, + uri: n + }); + })); + } + 0 === t && (parser.closedRoot = !0), parser.tagName = parser.attribValue = parser.attribName = "", + parser.attribList.length = 0, parser.state = S.TEXT; + } + function parseEntity(parser) { + var num, entity = parser.entity, entityLC = entity.toLowerCase(), numStr = ""; + return parser.ENTITIES[entity] ? parser.ENTITIES[entity] : parser.ENTITIES[entityLC] ? parser.ENTITIES[entityLC] : ("#" === (entity = entityLC).charAt(0) && ("x" === entity.charAt(1) ? (entity = entity.slice(2), + numStr = (num = parseInt(entity, 16)).toString(16)) : (entity = entity.slice(1), + numStr = (num = parseInt(entity, 10)).toString(10))), entity = entity.replace(/^0+/, ""), + isNaN(num) || numStr.toLowerCase() !== entity ? (strictFail(parser, "Invalid character entity"), + "&" + parser.entity + ";") : String.fromCodePoint(num)); + } + function beginWhiteSpace(parser, c) { + "<" === c ? (parser.state = S.OPEN_WAKA, parser.startTagPosition = parser.position) : isWhitespace(c) || (strictFail(parser, "Non-whitespace before first tag."), + parser.textNode = c, parser.state = S.TEXT); + } + function charAt(chunk, i) { + var result = ""; + return i < chunk.length && (result = chunk.charAt(i)), result; + } + S = sax.STATE; +}(sax); + +var exports, _collections = {}; + +(exports = _collections).elemsGroups = { + animation: [ "animate", "animateColor", "animateMotion", "animateTransform", "set" ], + descriptive: [ "desc", "metadata", "title" ], + shape: [ "circle", "ellipse", "line", "path", "polygon", "polyline", "rect" ], + structural: [ "defs", "g", "svg", "symbol", "use" ], + paintServer: [ "solidColor", "linearGradient", "radialGradient", "meshGradient", "pattern", "hatch" ], + nonRendering: [ "linearGradient", "radialGradient", "pattern", "clipPath", "mask", "marker", "symbol", "filter", "solidColor" ], + container: [ "a", "defs", "g", "marker", "mask", "missing-glyph", "pattern", "svg", "switch", "symbol", "foreignObject" ], + textContent: [ "altGlyph", "altGlyphDef", "altGlyphItem", "glyph", "glyphRef", "textPath", "text", "tref", "tspan" ], + textContentChild: [ "altGlyph", "textPath", "tref", "tspan" ], + lightSource: [ "feDiffuseLighting", "feSpecularLighting", "feDistantLight", "fePointLight", "feSpotLight" ], + filterPrimitive: [ "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "feSpecularLighting", "feTile", "feTurbulence" ] +}, exports.textElems = exports.elemsGroups.textContent.concat("title"), exports.pathElems = [ "path", "glyph", "missing-glyph" ], +exports.attrsGroups = { + animationAddition: [ "additive", "accumulate" ], + animationAttributeTarget: [ "attributeType", "attributeName" ], + animationEvent: [ "onbegin", "onend", "onrepeat", "onload" ], + animationTiming: [ "begin", "dur", "end", "min", "max", "restart", "repeatCount", "repeatDur", "fill" ], + animationValue: [ "calcMode", "values", "keyTimes", "keySplines", "from", "to", "by" ], + conditionalProcessing: [ "requiredFeatures", "requiredExtensions", "systemLanguage" ], + core: [ "id", "tabindex", "xml:base", "xml:lang", "xml:space" ], + graphicalEvent: [ "onfocusin", "onfocusout", "onactivate", "onclick", "onmousedown", "onmouseup", "onmouseover", "onmousemove", "onmouseout", "onload" ], + presentation: [ "alignment-baseline", "baseline-shift", "clip", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cursor", "direction", "display", "dominant-baseline", "enable-background", "fill", "fill-opacity", "fill-rule", "filter", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "glyph-orientation-horizontal", "glyph-orientation-vertical", "image-rendering", "letter-spacing", "lighting-color", "marker-end", "marker-mid", "marker-start", "mask", "opacity", "overflow", "paint-order", "pointer-events", "shape-rendering", "stop-color", "stop-opacity", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-anchor", "text-decoration", "text-overflow", "text-rendering", "transform", "transform-origin", "unicode-bidi", "vector-effect", "visibility", "word-spacing", "writing-mode" ], + xlink: [ "xlink:href", "xlink:show", "xlink:actuate", "xlink:type", "xlink:role", "xlink:arcrole", "xlink:title" ], + documentEvent: [ "onunload", "onabort", "onerror", "onresize", "onscroll", "onzoom" ], + filterPrimitive: [ "x", "y", "width", "height", "result" ], + transferFunction: [ "type", "tableValues", "slope", "intercept", "amplitude", "exponent", "offset" ] +}, exports.attrsGroupsDefaults = { + core: { + "xml:space": "default" + }, + presentation: { + clip: "auto", + "clip-path": "none", + "clip-rule": "nonzero", + mask: "none", + opacity: "1", + "stop-color": "#000", + "stop-opacity": "1", + "fill-opacity": "1", + "fill-rule": "nonzero", + fill: "#000", + stroke: "none", + "stroke-width": "1", + "stroke-linecap": "butt", + "stroke-linejoin": "miter", + "stroke-miterlimit": "4", + "stroke-dasharray": "none", + "stroke-dashoffset": "0", + "stroke-opacity": "1", + "paint-order": "normal", + "vector-effect": "none", + display: "inline", + visibility: "visible", + "marker-start": "none", + "marker-mid": "none", + "marker-end": "none", + "color-interpolation": "sRGB", + "color-interpolation-filters": "linearRGB", + "color-rendering": "auto", + "shape-rendering": "auto", + "text-rendering": "auto", + "image-rendering": "auto", + "font-style": "normal", + "font-variant": "normal", + "font-weight": "normal", + "font-stretch": "normal", + "font-size": "medium", + "font-size-adjust": "none", + kerning: "auto", + "letter-spacing": "normal", + "word-spacing": "normal", + "text-decoration": "none", + "text-anchor": "start", + "text-overflow": "clip", + "writing-mode": "lr-tb", + "glyph-orientation-vertical": "auto", + "glyph-orientation-horizontal": "0deg", + direction: "ltr", + "unicode-bidi": "normal", + "dominant-baseline": "auto", + "alignment-baseline": "baseline", + "baseline-shift": "baseline" + }, + transferFunction: { + slope: "1", + intercept: "0", + amplitude: "1", + exponent: "1", + offset: "0" + } +}, exports.elems = { + a: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation", "xlink" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform", "target" ], + defaults: { + target: "_self" + }, + contentGroups: [ "animation", "descriptive", "shape", "structural", "paintServer" ], + content: [ "a", "altGlyphDef", "clipPath", "color-profile", "cursor", "filter", "font", "font-face", "foreignObject", "image", "marker", "mask", "pattern", "script", "style", "switch", "text", "view", "tspan" ] + }, + altGlyph: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation", "xlink" ], + attrs: [ "class", "style", "externalResourcesRequired", "x", "y", "dx", "dy", "glyphRef", "format", "rotate" ] + }, + altGlyphDef: { + attrsGroups: [ "core" ], + content: [ "glyphRef" ] + }, + altGlyphItem: { + attrsGroups: [ "core" ], + content: [ "glyphRef", "altGlyphItem" ] + }, + animate: { + attrsGroups: [ "conditionalProcessing", "core", "animationAddition", "animationAttributeTarget", "animationEvent", "animationTiming", "animationValue", "presentation", "xlink" ], + attrs: [ "externalResourcesRequired" ], + contentGroups: [ "descriptive" ] + }, + animateColor: { + attrsGroups: [ "conditionalProcessing", "core", "animationEvent", "xlink", "animationAttributeTarget", "animationTiming", "animationValue", "animationAddition", "presentation" ], + attrs: [ "externalResourcesRequired" ], + contentGroups: [ "descriptive" ] + }, + animateMotion: { + attrsGroups: [ "conditionalProcessing", "core", "animationEvent", "xlink", "animationTiming", "animationValue", "animationAddition" ], + attrs: [ "externalResourcesRequired", "path", "keyPoints", "rotate", "origin" ], + defaults: { + rotate: "0" + }, + contentGroups: [ "descriptive" ], + content: [ "mpath" ] + }, + animateTransform: { + attrsGroups: [ "conditionalProcessing", "core", "animationEvent", "xlink", "animationAttributeTarget", "animationTiming", "animationValue", "animationAddition" ], + attrs: [ "externalResourcesRequired", "type" ], + contentGroups: [ "descriptive" ] + }, + circle: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform", "cx", "cy", "r" ], + defaults: { + cx: "0", + cy: "0" + }, + contentGroups: [ "animation", "descriptive" ] + }, + clipPath: { + attrsGroups: [ "conditionalProcessing", "core", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform", "clipPathUnits" ], + defaults: { + clipPathUnits: "userSpaceOnUse" + }, + contentGroups: [ "animation", "descriptive", "shape" ], + content: [ "text", "use" ] + }, + "color-profile": { + attrsGroups: [ "core", "xlink" ], + attrs: [ "local", "name", "rendering-intent" ], + defaults: { + name: "sRGB", + "rendering-intent": "auto" + }, + contentGroups: [ "descriptive" ] + }, + cursor: { + attrsGroups: [ "core", "conditionalProcessing", "xlink" ], + attrs: [ "externalResourcesRequired", "x", "y" ], + defaults: { + x: "0", + y: "0" + }, + contentGroups: [ "descriptive" ] + }, + defs: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform" ], + contentGroups: [ "animation", "descriptive", "shape", "structural", "paintServer" ], + content: [ "a", "altGlyphDef", "clipPath", "color-profile", "cursor", "filter", "font", "font-face", "foreignObject", "image", "marker", "mask", "pattern", "script", "style", "switch", "text", "view" ] + }, + desc: { + attrsGroups: [ "core" ], + attrs: [ "class", "style" ] + }, + ellipse: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform", "cx", "cy", "rx", "ry" ], + defaults: { + cx: "0", + cy: "0" + }, + contentGroups: [ "animation", "descriptive" ] + }, + feBlend: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style", "in", "in2", "mode" ], + defaults: { + mode: "normal" + }, + content: [ "animate", "set" ] + }, + feColorMatrix: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style", "in", "type", "values" ], + defaults: { + type: "matrix" + }, + content: [ "animate", "set" ] + }, + feComponentTransfer: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style", "in" ], + content: [ "feFuncA", "feFuncB", "feFuncG", "feFuncR" ] + }, + feComposite: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style", "in", "in2", "operator", "k1", "k2", "k3", "k4" ], + defaults: { + operator: "over", + k1: "0", + k2: "0", + k3: "0", + k4: "0" + }, + content: [ "animate", "set" ] + }, + feConvolveMatrix: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style", "in", "order", "kernelMatrix", "divisor", "bias", "targetX", "targetY", "edgeMode", "kernelUnitLength", "preserveAlpha" ], + defaults: { + order: "3", + bias: "0", + edgeMode: "duplicate", + preserveAlpha: "false" + }, + content: [ "animate", "set" ] + }, + feDiffuseLighting: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style", "in", "surfaceScale", "diffuseConstant", "kernelUnitLength" ], + defaults: { + surfaceScale: "1", + diffuseConstant: "1" + }, + contentGroups: [ "descriptive" ], + content: [ "feDistantLight", "fePointLight", "feSpotLight" ] + }, + feDisplacementMap: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style", "in", "in2", "scale", "xChannelSelector", "yChannelSelector" ], + defaults: { + scale: "0", + xChannelSelector: "A", + yChannelSelector: "A" + }, + content: [ "animate", "set" ] + }, + feDistantLight: { + attrsGroups: [ "core" ], + attrs: [ "azimuth", "elevation" ], + defaults: { + azimuth: "0", + elevation: "0" + }, + content: [ "animate", "set" ] + }, + feFlood: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style" ], + content: [ "animate", "animateColor", "set" ] + }, + feFuncA: { + attrsGroups: [ "core", "transferFunction" ], + content: [ "set", "animate" ] + }, + feFuncB: { + attrsGroups: [ "core", "transferFunction" ], + content: [ "set", "animate" ] + }, + feFuncG: { + attrsGroups: [ "core", "transferFunction" ], + content: [ "set", "animate" ] + }, + feFuncR: { + attrsGroups: [ "core", "transferFunction" ], + content: [ "set", "animate" ] + }, + feGaussianBlur: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style", "in", "stdDeviation" ], + defaults: { + stdDeviation: "0" + }, + content: [ "set", "animate" ] + }, + feImage: { + attrsGroups: [ "core", "presentation", "filterPrimitive", "xlink" ], + attrs: [ "class", "style", "externalResourcesRequired", "preserveAspectRatio", "href", "xlink:href" ], + defaults: { + preserveAspectRatio: "xMidYMid meet" + }, + content: [ "animate", "animateTransform", "set" ] + }, + feMerge: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style" ], + content: [ "feMergeNode" ] + }, + feMergeNode: { + attrsGroups: [ "core" ], + attrs: [ "in" ], + content: [ "animate", "set" ] + }, + feMorphology: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style", "in", "operator", "radius" ], + defaults: { + operator: "erode", + radius: "0" + }, + content: [ "animate", "set" ] + }, + feOffset: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style", "in", "dx", "dy" ], + defaults: { + dx: "0", + dy: "0" + }, + content: [ "animate", "set" ] + }, + fePointLight: { + attrsGroups: [ "core" ], + attrs: [ "x", "y", "z" ], + defaults: { + x: "0", + y: "0", + z: "0" + }, + content: [ "animate", "set" ] + }, + feSpecularLighting: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style", "in", "surfaceScale", "specularConstant", "specularExponent", "kernelUnitLength" ], + defaults: { + surfaceScale: "1", + specularConstant: "1", + specularExponent: "1" + }, + contentGroups: [ "descriptive", "lightSource" ] + }, + feSpotLight: { + attrsGroups: [ "core" ], + attrs: [ "x", "y", "z", "pointsAtX", "pointsAtY", "pointsAtZ", "specularExponent", "limitingConeAngle" ], + defaults: { + x: "0", + y: "0", + z: "0", + pointsAtX: "0", + pointsAtY: "0", + pointsAtZ: "0", + specularExponent: "1" + }, + content: [ "animate", "set" ] + }, + feTile: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style", "in" ], + content: [ "animate", "set" ] + }, + feTurbulence: { + attrsGroups: [ "core", "presentation", "filterPrimitive" ], + attrs: [ "class", "style", "baseFrequency", "numOctaves", "seed", "stitchTiles", "type" ], + defaults: { + baseFrequency: "0", + numOctaves: "1", + seed: "0", + stitchTiles: "noStitch", + type: "turbulence" + }, + content: [ "animate", "set" ] + }, + filter: { + attrsGroups: [ "core", "presentation", "xlink" ], + attrs: [ "class", "style", "externalResourcesRequired", "x", "y", "width", "height", "filterRes", "filterUnits", "primitiveUnits", "href", "xlink:href" ], + defaults: { + primitiveUnits: "userSpaceOnUse", + x: "-10%", + y: "-10%", + width: "120%", + height: "120%" + }, + contentGroups: [ "descriptive", "filterPrimitive" ], + content: [ "animate", "set" ] + }, + font: { + attrsGroups: [ "core", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "horiz-origin-x", "horiz-origin-y", "horiz-adv-x", "vert-origin-x", "vert-origin-y", "vert-adv-y" ], + defaults: { + "horiz-origin-x": "0", + "horiz-origin-y": "0" + }, + contentGroups: [ "descriptive" ], + content: [ "font-face", "glyph", "hkern", "missing-glyph", "vkern" ] + }, + "font-face": { + attrsGroups: [ "core" ], + attrs: [ "font-family", "font-style", "font-variant", "font-weight", "font-stretch", "font-size", "unicode-range", "units-per-em", "panose-1", "stemv", "stemh", "slope", "cap-height", "x-height", "accent-height", "ascent", "descent", "widths", "bbox", "ideographic", "alphabetic", "mathematical", "hanging", "v-ideographic", "v-alphabetic", "v-mathematical", "v-hanging", "underline-position", "underline-thickness", "strikethrough-position", "strikethrough-thickness", "overline-position", "overline-thickness" ], + defaults: { + "font-style": "all", + "font-variant": "normal", + "font-weight": "all", + "font-stretch": "normal", + "unicode-range": "U+0-10FFFF", + "units-per-em": "1000", + "panose-1": "0 0 0 0 0 0 0 0 0 0", + slope: "0" + }, + contentGroups: [ "descriptive" ], + content: [ "font-face-src" ] + }, + "font-face-format": { + attrsGroups: [ "core" ], + attrs: [ "string" ] + }, + "font-face-name": { + attrsGroups: [ "core" ], + attrs: [ "name" ] + }, + "font-face-src": { + attrsGroups: [ "core" ], + content: [ "font-face-name", "font-face-uri" ] + }, + "font-face-uri": { + attrsGroups: [ "core", "xlink" ], + attrs: [ "href", "xlink:href" ], + content: [ "font-face-format" ] + }, + foreignObject: { + attrsGroups: [ "core", "conditionalProcessing", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform", "x", "y", "width", "height" ], + defaults: { + x: "0", + y: "0" + } + }, + g: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform" ], + contentGroups: [ "animation", "descriptive", "shape", "structural", "paintServer" ], + content: [ "a", "altGlyphDef", "clipPath", "color-profile", "cursor", "filter", "font", "font-face", "foreignObject", "image", "marker", "mask", "pattern", "script", "style", "switch", "text", "view" ] + }, + glyph: { + attrsGroups: [ "core", "presentation" ], + attrs: [ "class", "style", "d", "horiz-adv-x", "vert-origin-x", "vert-origin-y", "vert-adv-y", "unicode", "glyph-name", "orientation", "arabic-form", "lang" ], + defaults: { + "arabic-form": "initial" + }, + contentGroups: [ "animation", "descriptive", "shape", "structural", "paintServer" ], + content: [ "a", "altGlyphDef", "clipPath", "color-profile", "cursor", "filter", "font", "font-face", "foreignObject", "image", "marker", "mask", "pattern", "script", "style", "switch", "text", "view" ] + }, + glyphRef: { + attrsGroups: [ "core", "presentation" ], + attrs: [ "class", "style", "d", "horiz-adv-x", "vert-origin-x", "vert-origin-y", "vert-adv-y" ], + contentGroups: [ "animation", "descriptive", "shape", "structural", "paintServer" ], + content: [ "a", "altGlyphDef", "clipPath", "color-profile", "cursor", "filter", "font", "font-face", "foreignObject", "image", "marker", "mask", "pattern", "script", "style", "switch", "text", "view" ] + }, + hatch: { + attrsGroups: [ "core", "presentation", "xlink" ], + attrs: [ "class", "style", "x", "y", "pitch", "rotate", "hatchUnits", "hatchContentUnits", "transform" ], + defaults: { + hatchUnits: "objectBoundingBox", + hatchContentUnits: "userSpaceOnUse", + x: "0", + y: "0", + pitch: "0", + rotate: "0" + }, + contentGroups: [ "animation", "descriptive" ], + content: [ "hatchPath" ] + }, + hatchPath: { + attrsGroups: [ "core", "presentation", "xlink" ], + attrs: [ "class", "style", "d", "offset" ], + defaults: { + offset: "0" + }, + contentGroups: [ "animation", "descriptive" ] + }, + hkern: { + attrsGroups: [ "core" ], + attrs: [ "u1", "g1", "u2", "g2", "k" ] + }, + image: { + attrsGroups: [ "core", "conditionalProcessing", "graphicalEvent", "xlink", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "preserveAspectRatio", "transform", "x", "y", "width", "height", "href", "xlink:href" ], + defaults: { + x: "0", + y: "0", + preserveAspectRatio: "xMidYMid meet" + }, + contentGroups: [ "animation", "descriptive" ] + }, + line: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform", "x1", "y1", "x2", "y2" ], + defaults: { + x1: "0", + y1: "0", + x2: "0", + y2: "0" + }, + contentGroups: [ "animation", "descriptive" ] + }, + linearGradient: { + attrsGroups: [ "core", "presentation", "xlink" ], + attrs: [ "class", "style", "externalResourcesRequired", "x1", "y1", "x2", "y2", "gradientUnits", "gradientTransform", "spreadMethod", "href", "xlink:href" ], + defaults: { + x1: "0", + y1: "0", + x2: "100%", + y2: "0", + spreadMethod: "pad" + }, + contentGroups: [ "descriptive" ], + content: [ "animate", "animateTransform", "set", "stop" ] + }, + marker: { + attrsGroups: [ "core", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "viewBox", "preserveAspectRatio", "refX", "refY", "markerUnits", "markerWidth", "markerHeight", "orient" ], + defaults: { + markerUnits: "strokeWidth", + refX: "0", + refY: "0", + markerWidth: "3", + markerHeight: "3" + }, + contentGroups: [ "animation", "descriptive", "shape", "structural", "paintServer" ], + content: [ "a", "altGlyphDef", "clipPath", "color-profile", "cursor", "filter", "font", "font-face", "foreignObject", "image", "marker", "mask", "pattern", "script", "style", "switch", "text", "view" ] + }, + mask: { + attrsGroups: [ "conditionalProcessing", "core", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "x", "y", "width", "height", "mask-type", "maskUnits", "maskContentUnits" ], + defaults: { + maskUnits: "objectBoundingBox", + maskContentUnits: "userSpaceOnUse", + x: "-10%", + y: "-10%", + width: "120%", + height: "120%" + }, + contentGroups: [ "animation", "descriptive", "shape", "structural", "paintServer" ], + content: [ "a", "altGlyphDef", "clipPath", "color-profile", "cursor", "filter", "font", "font-face", "foreignObject", "image", "marker", "mask", "pattern", "script", "style", "switch", "text", "view" ] + }, + metadata: { + attrsGroups: [ "core" ] + }, + "missing-glyph": { + attrsGroups: [ "core", "presentation" ], + attrs: [ "class", "style", "d", "horiz-adv-x", "vert-origin-x", "vert-origin-y", "vert-adv-y" ], + contentGroups: [ "animation", "descriptive", "shape", "structural", "paintServer" ], + content: [ "a", "altGlyphDef", "clipPath", "color-profile", "cursor", "filter", "font", "font-face", "foreignObject", "image", "marker", "mask", "pattern", "script", "style", "switch", "text", "view" ] + }, + mpath: { + attrsGroups: [ "core", "xlink" ], + attrs: [ "externalResourcesRequired", "href", "xlink:href" ], + contentGroups: [ "descriptive" ] + }, + path: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform", "d", "pathLength" ], + contentGroups: [ "animation", "descriptive" ] + }, + pattern: { + attrsGroups: [ "conditionalProcessing", "core", "presentation", "xlink" ], + attrs: [ "class", "style", "externalResourcesRequired", "viewBox", "preserveAspectRatio", "x", "y", "width", "height", "patternUnits", "patternContentUnits", "patternTransform", "href", "xlink:href" ], + defaults: { + patternUnits: "objectBoundingBox", + patternContentUnits: "userSpaceOnUse", + x: "0", + y: "0", + width: "0", + height: "0", + preserveAspectRatio: "xMidYMid meet" + }, + contentGroups: [ "animation", "descriptive", "paintServer", "shape", "structural" ], + content: [ "a", "altGlyphDef", "clipPath", "color-profile", "cursor", "filter", "font", "font-face", "foreignObject", "image", "marker", "mask", "pattern", "script", "style", "switch", "text", "view" ] + }, + polygon: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform", "points" ], + contentGroups: [ "animation", "descriptive" ] + }, + polyline: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform", "points" ], + contentGroups: [ "animation", "descriptive" ] + }, + radialGradient: { + attrsGroups: [ "core", "presentation", "xlink" ], + attrs: [ "class", "style", "externalResourcesRequired", "cx", "cy", "r", "fx", "fy", "fr", "gradientUnits", "gradientTransform", "spreadMethod", "href", "xlink:href" ], + defaults: { + gradientUnits: "objectBoundingBox", + cx: "50%", + cy: "50%", + r: "50%" + }, + contentGroups: [ "descriptive" ], + content: [ "animate", "animateTransform", "set", "stop" ] + }, + meshGradient: { + attrsGroups: [ "core", "presentation", "xlink" ], + attrs: [ "class", "style", "x", "y", "gradientUnits", "transform" ], + contentGroups: [ "descriptive", "paintServer", "animation" ], + content: [ "meshRow" ] + }, + meshRow: { + attrsGroups: [ "core", "presentation" ], + attrs: [ "class", "style" ], + contentGroups: [ "descriptive" ], + content: [ "meshPatch" ] + }, + meshPatch: { + attrsGroups: [ "core", "presentation" ], + attrs: [ "class", "style" ], + contentGroups: [ "descriptive" ], + content: [ "stop" ] + }, + rect: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform", "x", "y", "width", "height", "rx", "ry" ], + defaults: { + x: "0", + y: "0" + }, + contentGroups: [ "animation", "descriptive" ] + }, + script: { + attrsGroups: [ "core", "xlink" ], + attrs: [ "externalResourcesRequired", "type", "href", "xlink:href" ] + }, + set: { + attrsGroups: [ "conditionalProcessing", "core", "animation", "xlink", "animationAttributeTarget", "animationTiming" ], + attrs: [ "externalResourcesRequired", "to" ], + contentGroups: [ "descriptive" ] + }, + solidColor: { + attrsGroups: [ "core", "presentation" ], + attrs: [ "class", "style" ], + contentGroups: [ "paintServer" ] + }, + stop: { + attrsGroups: [ "core", "presentation" ], + attrs: [ "class", "style", "offset", "path" ], + content: [ "animate", "animateColor", "set" ] + }, + style: { + attrsGroups: [ "core" ], + attrs: [ "type", "media", "title" ], + defaults: { + type: "text/css" + } + }, + svg: { + attrsGroups: [ "conditionalProcessing", "core", "documentEvent", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "x", "y", "width", "height", "viewBox", "preserveAspectRatio", "zoomAndPan", "version", "baseProfile", "contentScriptType", "contentStyleType" ], + defaults: { + x: "0", + y: "0", + width: "100%", + height: "100%", + preserveAspectRatio: "xMidYMid meet", + zoomAndPan: "magnify", + version: "1.1", + baseProfile: "none", + contentScriptType: "application/ecmascript", + contentStyleType: "text/css" + }, + contentGroups: [ "animation", "descriptive", "shape", "structural", "paintServer" ], + content: [ "a", "altGlyphDef", "clipPath", "color-profile", "cursor", "filter", "font", "font-face", "foreignObject", "image", "marker", "mask", "pattern", "script", "style", "switch", "text", "view" ] + }, + switch: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform" ], + contentGroups: [ "animation", "descriptive", "shape" ], + content: [ "a", "foreignObject", "g", "image", "svg", "switch", "text", "use" ] + }, + symbol: { + attrsGroups: [ "core", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "preserveAspectRatio", "viewBox", "refX", "refY" ], + defaults: { + refX: "0", + refY: "0" + }, + contentGroups: [ "animation", "descriptive", "shape", "structural", "paintServer" ], + content: [ "a", "altGlyphDef", "clipPath", "color-profile", "cursor", "filter", "font", "font-face", "foreignObject", "image", "marker", "mask", "pattern", "script", "style", "switch", "text", "view" ] + }, + text: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform", "lengthAdjust", "x", "y", "dx", "dy", "rotate", "textLength" ], + defaults: { + x: "0", + y: "0", + lengthAdjust: "spacing" + }, + contentGroups: [ "animation", "descriptive", "textContentChild" ], + content: [ "a" ] + }, + textPath: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation", "xlink" ], + attrs: [ "class", "style", "externalResourcesRequired", "href", "xlink:href", "startOffset", "method", "spacing", "d" ], + defaults: { + startOffset: "0", + method: "align", + spacing: "exact" + }, + contentGroups: [ "descriptive" ], + content: [ "a", "altGlyph", "animate", "animateColor", "set", "tref", "tspan" ] + }, + title: { + attrsGroups: [ "core" ], + attrs: [ "class", "style" ] + }, + tref: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation", "xlink" ], + attrs: [ "class", "style", "externalResourcesRequired", "href", "xlink:href" ], + contentGroups: [ "descriptive" ], + content: [ "animate", "animateColor", "set" ] + }, + tspan: { + attrsGroups: [ "conditionalProcessing", "core", "graphicalEvent", "presentation" ], + attrs: [ "class", "style", "externalResourcesRequired", "x", "y", "dx", "dy", "rotate", "textLength", "lengthAdjust" ], + contentGroups: [ "descriptive" ], + content: [ "a", "altGlyph", "animate", "animateColor", "set", "tref", "tspan" ] + }, + use: { + attrsGroups: [ "core", "conditionalProcessing", "graphicalEvent", "presentation", "xlink" ], + attrs: [ "class", "style", "externalResourcesRequired", "transform", "x", "y", "width", "height", "href", "xlink:href" ], + defaults: { + x: "0", + y: "0" + }, + contentGroups: [ "animation", "descriptive" ] + }, + view: { + attrsGroups: [ "core" ], + attrs: [ "externalResourcesRequired", "viewBox", "preserveAspectRatio", "zoomAndPan", "viewTarget" ], + contentGroups: [ "descriptive" ] + }, + vkern: { + attrsGroups: [ "core" ], + attrs: [ "u1", "g1", "u2", "g2", "k" ] + } +}, exports.editorNamespaces = [ "http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd", "http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd", "http://www.inkscape.org/namespaces/inkscape", "http://www.bohemiancoding.com/sketch/ns", "http://ns.adobe.com/AdobeIllustrator/10.0/", "http://ns.adobe.com/Graphs/1.0/", "http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/", "http://ns.adobe.com/Variables/1.0/", "http://ns.adobe.com/SaveForWeb/1.0/", "http://ns.adobe.com/Extensibility/1.0/", "http://ns.adobe.com/Flows/1.0/", "http://ns.adobe.com/ImageReplacement/1.0/", "http://ns.adobe.com/GenericCustomNamespace/1.0/", "http://ns.adobe.com/XPath/1.0/", "http://schemas.microsoft.com/visio/2003/SVGExtensions/", "http://taptrix.com/vectorillustrator/svg_extensions", "http://www.figma.com/figma/ns", "http://purl.org/dc/elements/1.1/", "http://creativecommons.org/ns#", "http://www.w3.org/1999/02/22-rdf-syntax-ns#", "http://www.serif.com/", "http://www.vector.evaxdesign.sk" ], +exports.referencesProps = [ "clip-path", "color-profile", "fill", "filter", "marker-start", "marker-mid", "marker-end", "mask", "stroke", "style" ], +exports.inheritableAttrs = [ "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cursor", "direction", "dominant-baseline", "fill", "fill-opacity", "fill-rule", "font", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "glyph-orientation-horizontal", "glyph-orientation-vertical", "image-rendering", "letter-spacing", "marker", "marker-end", "marker-mid", "marker-start", "paint-order", "pointer-events", "shape-rendering", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-anchor", "text-rendering", "transform", "visibility", "word-spacing", "writing-mode" ], +exports.presentationNonInheritableGroupAttrs = [ "display", "clip-path", "filter", "mask", "opacity", "text-decoration", "transform", "unicode-bidi" ], +exports.colorsNames = { + aliceblue: "#f0f8ff", + antiquewhite: "#faebd7", + aqua: "#0ff", + aquamarine: "#7fffd4", + azure: "#f0ffff", + beige: "#f5f5dc", + bisque: "#ffe4c4", + black: "#000", + blanchedalmond: "#ffebcd", + blue: "#00f", + blueviolet: "#8a2be2", + brown: "#a52a2a", + burlywood: "#deb887", + cadetblue: "#5f9ea0", + chartreuse: "#7fff00", + chocolate: "#d2691e", + coral: "#ff7f50", + cornflowerblue: "#6495ed", + cornsilk: "#fff8dc", + crimson: "#dc143c", + cyan: "#0ff", + darkblue: "#00008b", + darkcyan: "#008b8b", + darkgoldenrod: "#b8860b", + darkgray: "#a9a9a9", + darkgreen: "#006400", + darkgrey: "#a9a9a9", + darkkhaki: "#bdb76b", + darkmagenta: "#8b008b", + darkolivegreen: "#556b2f", + darkorange: "#ff8c00", + darkorchid: "#9932cc", + darkred: "#8b0000", + darksalmon: "#e9967a", + darkseagreen: "#8fbc8f", + darkslateblue: "#483d8b", + darkslategray: "#2f4f4f", + darkslategrey: "#2f4f4f", + darkturquoise: "#00ced1", + darkviolet: "#9400d3", + deeppink: "#ff1493", + deepskyblue: "#00bfff", + dimgray: "#696969", + dimgrey: "#696969", + dodgerblue: "#1e90ff", + firebrick: "#b22222", + floralwhite: "#fffaf0", + forestgreen: "#228b22", + fuchsia: "#f0f", + gainsboro: "#dcdcdc", + ghostwhite: "#f8f8ff", + gold: "#ffd700", + goldenrod: "#daa520", + gray: "#808080", + green: "#008000", + greenyellow: "#adff2f", + grey: "#808080", + honeydew: "#f0fff0", + hotpink: "#ff69b4", + indianred: "#cd5c5c", + indigo: "#4b0082", + ivory: "#fffff0", + khaki: "#f0e68c", + lavender: "#e6e6fa", + lavenderblush: "#fff0f5", + lawngreen: "#7cfc00", + lemonchiffon: "#fffacd", + lightblue: "#add8e6", + lightcoral: "#f08080", + lightcyan: "#e0ffff", + lightgoldenrodyellow: "#fafad2", + lightgray: "#d3d3d3", + lightgreen: "#90ee90", + lightgrey: "#d3d3d3", + lightpink: "#ffb6c1", + lightsalmon: "#ffa07a", + lightseagreen: "#20b2aa", + lightskyblue: "#87cefa", + lightslategray: "#789", + lightslategrey: "#789", + lightsteelblue: "#b0c4de", + lightyellow: "#ffffe0", + lime: "#0f0", + limegreen: "#32cd32", + linen: "#faf0e6", + magenta: "#f0f", + maroon: "#800000", + mediumaquamarine: "#66cdaa", + mediumblue: "#0000cd", + mediumorchid: "#ba55d3", + mediumpurple: "#9370db", + mediumseagreen: "#3cb371", + mediumslateblue: "#7b68ee", + mediumspringgreen: "#00fa9a", + mediumturquoise: "#48d1cc", + mediumvioletred: "#c71585", + midnightblue: "#191970", + mintcream: "#f5fffa", + mistyrose: "#ffe4e1", + moccasin: "#ffe4b5", + navajowhite: "#ffdead", + navy: "#000080", + oldlace: "#fdf5e6", + olive: "#808000", + olivedrab: "#6b8e23", + orange: "#ffa500", + orangered: "#ff4500", + orchid: "#da70d6", + palegoldenrod: "#eee8aa", + palegreen: "#98fb98", + paleturquoise: "#afeeee", + palevioletred: "#db7093", + papayawhip: "#ffefd5", + peachpuff: "#ffdab9", + peru: "#cd853f", + pink: "#ffc0cb", + plum: "#dda0dd", + powderblue: "#b0e0e6", + purple: "#800080", + rebeccapurple: "#639", + red: "#f00", + rosybrown: "#bc8f8f", + royalblue: "#4169e1", + saddlebrown: "#8b4513", + salmon: "#fa8072", + sandybrown: "#f4a460", + seagreen: "#2e8b57", + seashell: "#fff5ee", + sienna: "#a0522d", + silver: "#c0c0c0", + skyblue: "#87ceeb", + slateblue: "#6a5acd", + slategray: "#708090", + slategrey: "#708090", + snow: "#fffafa", + springgreen: "#00ff7f", + steelblue: "#4682b4", + tan: "#d2b48c", + teal: "#008080", + thistle: "#d8bfd8", + tomato: "#ff6347", + turquoise: "#40e0d0", + violet: "#ee82ee", + wheat: "#f5deb3", + white: "#fff", + whitesmoke: "#f5f5f5", + yellow: "#ff0", + yellowgreen: "#9acd32" +}, exports.colorsShortNames = { + "#f0ffff": "azure", + "#f5f5dc": "beige", + "#ffe4c4": "bisque", + "#a52a2a": "brown", + "#ff7f50": "coral", + "#ffd700": "gold", + "#808080": "gray", + "#008000": "green", + "#4b0082": "indigo", + "#fffff0": "ivory", + "#f0e68c": "khaki", + "#faf0e6": "linen", + "#800000": "maroon", + "#000080": "navy", + "#808000": "olive", + "#ffa500": "orange", + "#da70d6": "orchid", + "#cd853f": "peru", + "#ffc0cb": "pink", + "#dda0dd": "plum", + "#800080": "purple", + "#f00": "red", + "#ff0000": "red", + "#fa8072": "salmon", + "#a0522d": "sienna", + "#c0c0c0": "silver", + "#fffafa": "snow", + "#d2b48c": "tan", + "#008080": "teal", + "#ff6347": "tomato", + "#ee82ee": "violet", + "#f5deb3": "wheat" +}, exports.colorsProps = [ "color", "fill", "stroke", "stop-color", "flood-color", "lighting-color" ]; + +const SAX = sax, {textElems: textElems$1} = _collections; + +class SvgoParserError extends Error { + constructor(message, line, column, source, file) { + super(message), this.name = "SvgoParserError", this.message = `${file || ""}:${line}:${column}: ${message}`, + this.reason = message, this.line = line, this.column = column, this.source = source, + Error.captureStackTrace && Error.captureStackTrace(this, SvgoParserError); + } + toString() { + const lines = this.source.split(/\r?\n/), startLine = Math.max(this.line - 3, 0), endLine = Math.min(this.line + 2, lines.length), lineNumberWidth = String(endLine).length, startColumn = Math.max(this.column - 54, 0), endColumn = Math.max(this.column + 20, 80), code = lines.slice(startLine, endLine).map(((line, index) => { + const lineSlice = line.slice(startColumn, endColumn); + let ellipsisPrefix = "", ellipsisSuffix = ""; + 0 !== startColumn && (ellipsisPrefix = startColumn > line.length - 1 ? " " : "…"), + endColumn < line.length - 1 && (ellipsisSuffix = "…"); + const number = startLine + 1 + index, gutter = ` ${number.toString().padStart(lineNumberWidth)} | `; + if (number === this.line) { + const gutterSpacing = gutter.replace(/[^|]/g, " "); + return `>${gutter}${ellipsisPrefix}${lineSlice}${ellipsisSuffix}\n ${gutterSpacing + (ellipsisPrefix + line.slice(startColumn, this.column - 1)).replace(/[^\t]/g, " ")}^`; + } + return ` ${gutter}${ellipsisPrefix}${lineSlice}${ellipsisSuffix}`; + })).join("\n"); + return `${this.name}: ${this.message}\n\n${code}\n`; + } +} + +const entityDeclaration = //g, config$4 = { + strict: !0, + trim: !1, + normalize: !1, + lowercase: !0, + xmlns: !0, + position: !0 +}; + +parser$4.parseSvg = (data, from) => { + const sax = SAX.parser(config$4.strict, config$4), root = { + type: "root", + children: [] + }; + let current = root; + const stack = [ root ], pushToContent = node => { + Object.defineProperty(node, "parentNode", { + writable: !0, + value: current + }), current.children.push(node); + }; + return sax.ondoctype = doctype => { + pushToContent({ + type: "doctype", + name: "svg", + data: { + doctype + } + }); + const subsetStart = doctype.indexOf("["); + if (subsetStart >= 0) { + entityDeclaration.lastIndex = subsetStart; + let entityMatch = entityDeclaration.exec(data); + for (;null != entityMatch; ) sax.ENTITIES[entityMatch[1]] = entityMatch[2] || entityMatch[3], + entityMatch = entityDeclaration.exec(data); + } + }, sax.onprocessinginstruction = data => { + const node = { + type: "instruction", + name: data.name, + value: data.body + }; + pushToContent(node); + }, sax.oncomment = comment => { + const node = { + type: "comment", + value: comment.trim() + }; + pushToContent(node); + }, sax.oncdata = cdata => { + pushToContent({ + type: "cdata", + value: cdata + }); + }, sax.onopentag = data => { + let element = { + type: "element", + name: data.name, + attributes: {}, + children: [] + }; + for (const [name, attr] of Object.entries(data.attributes)) element.attributes[name] = attr.value; + pushToContent(element), current = element, stack.push(element); + }, sax.ontext = text => { + if ("element" === current.type) if (textElems$1.includes(current.name)) { + pushToContent({ + type: "text", + value: text + }); + } else if (/\S/.test(text)) { + const node = { + type: "text", + value: text.trim() + }; + pushToContent(node); + } + }, sax.onclosetag = () => { + stack.pop(), current = stack[stack.length - 1]; + }, sax.onerror = e => { + const error = new SvgoParserError(e.reason, e.line + 1, e.column, data, from); + if (-1 === e.message.indexOf("Unexpected end")) throw error; + }, sax.write(data).close(), root; +}; + +var stringifier = {}; + +const {textElems} = _collections, defaults = { + doctypeStart: "", + procInstStart: "", + tagOpenStart: "<", + tagOpenEnd: ">", + tagCloseStart: "", + tagShortStart: "<", + tagShortEnd: "/>", + attrStart: '="', + attrEnd: '"', + commentStart: "\x3c!--", + commentEnd: "--\x3e", + cdataStart: "", + textStart: "", + textEnd: "", + indent: 4, + regEntities: /[&'"<>]/g, + regValEntities: /[&"<>]/g, + encodeEntity: c => entities[c], + pretty: !1, + useShortTags: !0, + eol: "lf", + finalNewline: !1 +}, entities = { + "&": "&", + "'": "'", + '"': """, + ">": ">", + "<": "<" +}; + +stringifier.stringifySvg = (data, userOptions = {}) => { + const config = { + ...defaults, + ...userOptions + }, indent = config.indent; + let newIndent = " "; + "number" == typeof indent && !1 === Number.isNaN(indent) ? newIndent = indent < 0 ? "\t" : " ".repeat(indent) : "string" == typeof indent && (newIndent = indent); + const state = { + indent: newIndent, + textContext: null, + indentLevel: 0 + }, eol = "crlf" === config.eol ? "\r\n" : "\n"; + config.pretty && (config.doctypeEnd += eol, config.procInstEnd += eol, config.commentEnd += eol, + config.cdataEnd += eol, config.tagShortEnd += eol, config.tagOpenEnd += eol, config.tagCloseEnd += eol, + config.textEnd += eol); + let svg = stringifyNode(data, config, state); + return config.finalNewline && svg.length > 0 && "\n" !== svg[svg.length - 1] && (svg += eol), + svg; +}; + +const stringifyNode = (data, config, state) => { + let svg = ""; + state.indentLevel += 1; + for (const item of data.children) "element" === item.type && (svg += stringifyElement(item, config, state)), + "text" === item.type && (svg += stringifyText(item, config, state)), "doctype" === item.type && (svg += stringifyDoctype(item, config)), + "instruction" === item.type && (svg += stringifyInstruction(item, config)), "comment" === item.type && (svg += stringifyComment(item, config)), + "cdata" === item.type && (svg += stringifyCdata(item, config, state)); + return state.indentLevel -= 1, svg; +}, createIndent = (config, state) => { + let indent = ""; + return config.pretty && null == state.textContext && (indent = state.indent.repeat(state.indentLevel - 1)), + indent; +}, stringifyDoctype = (node, config) => config.doctypeStart + node.data.doctype + config.doctypeEnd, stringifyInstruction = (node, config) => config.procInstStart + node.name + " " + node.value + config.procInstEnd, stringifyComment = (node, config) => config.commentStart + node.value + config.commentEnd, stringifyCdata = (node, config, state) => createIndent(config, state) + config.cdataStart + node.value + config.cdataEnd, stringifyElement = (node, config, state) => { + if (0 === node.children.length) return config.useShortTags ? createIndent(config, state) + config.tagShortStart + node.name + stringifyAttributes(node, config) + config.tagShortEnd : createIndent(config, state) + config.tagShortStart + node.name + stringifyAttributes(node, config) + config.tagOpenEnd + config.tagCloseStart + node.name + config.tagCloseEnd; + { + let tagOpenStart = config.tagOpenStart, tagOpenEnd = config.tagOpenEnd, tagCloseStart = config.tagCloseStart, tagCloseEnd = config.tagCloseEnd, openIndent = createIndent(config, state), closeIndent = createIndent(config, state); + state.textContext ? (tagOpenStart = defaults.tagOpenStart, tagOpenEnd = defaults.tagOpenEnd, + tagCloseStart = defaults.tagCloseStart, tagCloseEnd = defaults.tagCloseEnd, openIndent = "") : textElems.includes(node.name) && (tagOpenEnd = defaults.tagOpenEnd, + tagCloseStart = defaults.tagCloseStart, closeIndent = "", state.textContext = node); + const children = stringifyNode(node, config, state); + return state.textContext === node && (state.textContext = null), openIndent + tagOpenStart + node.name + stringifyAttributes(node, config) + tagOpenEnd + children + closeIndent + tagCloseStart + node.name + tagCloseEnd; + } +}, stringifyAttributes = (node, config) => { + let attrs = ""; + for (const [name, value] of Object.entries(node.attributes)) if (void 0 !== value) { + const encodedValue = value.toString().replace(config.regValEntities, config.encodeEntity); + attrs += " " + name + config.attrStart + encodedValue + config.attrEnd; + } else attrs += " " + name; + return attrs; +}, stringifyText = (node, config, state) => createIndent(config, state) + config.textStart + node.value.replace(config.regEntities, config.encodeEntity) + (state.textContext ? "" : config.textEnd); + +var plugins = {}, builtin$1 = {}, tools = {}, xast = {}, lib$6 = {}, lib$5 = {}, stringify$1 = {}, lib$4 = {}, lib$3 = {}; + +!function(exports) { + var ElementType; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0, + function(ElementType) { + ElementType.Root = "root", ElementType.Text = "text", ElementType.Directive = "directive", + ElementType.Comment = "comment", ElementType.Script = "script", ElementType.Style = "style", + ElementType.Tag = "tag", ElementType.CDATA = "cdata", ElementType.Doctype = "doctype"; + }(ElementType = exports.ElementType || (exports.ElementType = {})), exports.isTag = function(elem) { + return elem.type === ElementType.Tag || elem.type === ElementType.Script || elem.type === ElementType.Style; + }, exports.Root = ElementType.Root, exports.Text = ElementType.Text, exports.Directive = ElementType.Directive, + exports.Comment = ElementType.Comment, exports.Script = ElementType.Script, exports.Style = ElementType.Style, + exports.Tag = ElementType.Tag, exports.CDATA = ElementType.CDATA, exports.Doctype = ElementType.Doctype; +}(lib$3); + +var extendStatics, node$2 = {}, __extends = commonjsGlobal && commonjsGlobal.__extends || (extendStatics = function(d, b) { + return extendStatics = Object.setPrototypeOf || { + __proto__: [] + } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]); + }, extendStatics(d, b); +}, function(d, b) { + if ("function" != typeof b && null !== b) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + function __() { + this.constructor = d; + } + extendStatics(d, b), d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, + new __); +}), __assign$1 = commonjsGlobal && commonjsGlobal.__assign || function() { + return __assign$1 = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) for (var p in s = arguments[i]) Object.prototype.hasOwnProperty.call(s, p) && (t[p] = s[p]); + return t; + }, __assign$1.apply(this, arguments); +}; + +Object.defineProperty(node$2, "__esModule", { + value: !0 +}), node$2.cloneNode = node$2.hasChildren = node$2.isDocument = node$2.isDirective = node$2.isComment = node$2.isText = node$2.isCDATA = node$2.isTag = node$2.Element = node$2.Document = node$2.CDATA = node$2.NodeWithChildren = node$2.ProcessingInstruction = node$2.Comment = node$2.Text = node$2.DataNode = node$2.Node = void 0; + +var domelementtype_1$1 = lib$3, Node = function() { + function Node() { + this.parent = null, this.prev = null, this.next = null, this.startIndex = null, + this.endIndex = null; + } + return Object.defineProperty(Node.prototype, "parentNode", { + get: function() { + return this.parent; + }, + set: function(parent) { + this.parent = parent; + }, + enumerable: !1, + configurable: !0 + }), Object.defineProperty(Node.prototype, "previousSibling", { + get: function() { + return this.prev; + }, + set: function(prev) { + this.prev = prev; + }, + enumerable: !1, + configurable: !0 + }), Object.defineProperty(Node.prototype, "nextSibling", { + get: function() { + return this.next; + }, + set: function(next) { + this.next = next; + }, + enumerable: !1, + configurable: !0 + }), Node.prototype.cloneNode = function(recursive) { + return void 0 === recursive && (recursive = !1), cloneNode(this, recursive); + }, Node; +}(); + +node$2.Node = Node; + +var DataNode = function(_super) { + function DataNode(data) { + var _this = _super.call(this) || this; + return _this.data = data, _this; + } + return __extends(DataNode, _super), Object.defineProperty(DataNode.prototype, "nodeValue", { + get: function() { + return this.data; + }, + set: function(data) { + this.data = data; + }, + enumerable: !1, + configurable: !0 + }), DataNode; +}(Node); + +node$2.DataNode = DataNode; + +var Text = function(_super) { + function Text() { + var _this = null !== _super && _super.apply(this, arguments) || this; + return _this.type = domelementtype_1$1.ElementType.Text, _this; + } + return __extends(Text, _super), Object.defineProperty(Text.prototype, "nodeType", { + get: function() { + return 3; + }, + enumerable: !1, + configurable: !0 + }), Text; +}(DataNode); + +node$2.Text = Text; + +var Comment$a = function(_super) { + function Comment() { + var _this = null !== _super && _super.apply(this, arguments) || this; + return _this.type = domelementtype_1$1.ElementType.Comment, _this; + } + return __extends(Comment, _super), Object.defineProperty(Comment.prototype, "nodeType", { + get: function() { + return 8; + }, + enumerable: !1, + configurable: !0 + }), Comment; +}(DataNode); + +node$2.Comment = Comment$a; + +var ProcessingInstruction = function(_super) { + function ProcessingInstruction(name, data) { + var _this = _super.call(this, data) || this; + return _this.name = name, _this.type = domelementtype_1$1.ElementType.Directive, + _this; + } + return __extends(ProcessingInstruction, _super), Object.defineProperty(ProcessingInstruction.prototype, "nodeType", { + get: function() { + return 1; + }, + enumerable: !1, + configurable: !0 + }), ProcessingInstruction; +}(DataNode); + +node$2.ProcessingInstruction = ProcessingInstruction; + +var NodeWithChildren = function(_super) { + function NodeWithChildren(children) { + var _this = _super.call(this) || this; + return _this.children = children, _this; + } + return __extends(NodeWithChildren, _super), Object.defineProperty(NodeWithChildren.prototype, "firstChild", { + get: function() { + var _a; + return null !== (_a = this.children[0]) && void 0 !== _a ? _a : null; + }, + enumerable: !1, + configurable: !0 + }), Object.defineProperty(NodeWithChildren.prototype, "lastChild", { + get: function() { + return this.children.length > 0 ? this.children[this.children.length - 1] : null; + }, + enumerable: !1, + configurable: !0 + }), Object.defineProperty(NodeWithChildren.prototype, "childNodes", { + get: function() { + return this.children; + }, + set: function(children) { + this.children = children; + }, + enumerable: !1, + configurable: !0 + }), NodeWithChildren; +}(Node); + +node$2.NodeWithChildren = NodeWithChildren; + +var CDATA = function(_super) { + function CDATA() { + var _this = null !== _super && _super.apply(this, arguments) || this; + return _this.type = domelementtype_1$1.ElementType.CDATA, _this; + } + return __extends(CDATA, _super), Object.defineProperty(CDATA.prototype, "nodeType", { + get: function() { + return 4; + }, + enumerable: !1, + configurable: !0 + }), CDATA; +}(NodeWithChildren); + +node$2.CDATA = CDATA; + +var Document = function(_super) { + function Document() { + var _this = null !== _super && _super.apply(this, arguments) || this; + return _this.type = domelementtype_1$1.ElementType.Root, _this; + } + return __extends(Document, _super), Object.defineProperty(Document.prototype, "nodeType", { + get: function() { + return 9; + }, + enumerable: !1, + configurable: !0 + }), Document; +}(NodeWithChildren); + +node$2.Document = Document; + +var Element = function(_super) { + function Element(name, attribs, children, type) { + void 0 === children && (children = []), void 0 === type && (type = "script" === name ? domelementtype_1$1.ElementType.Script : "style" === name ? domelementtype_1$1.ElementType.Style : domelementtype_1$1.ElementType.Tag); + var _this = _super.call(this, children) || this; + return _this.name = name, _this.attribs = attribs, _this.type = type, _this; + } + return __extends(Element, _super), Object.defineProperty(Element.prototype, "nodeType", { + get: function() { + return 1; + }, + enumerable: !1, + configurable: !0 + }), Object.defineProperty(Element.prototype, "tagName", { + get: function() { + return this.name; + }, + set: function(name) { + this.name = name; + }, + enumerable: !1, + configurable: !0 + }), Object.defineProperty(Element.prototype, "attributes", { + get: function() { + var _this = this; + return Object.keys(this.attribs).map((function(name) { + var _a, _b; + return { + name, + value: _this.attribs[name], + namespace: null === (_a = _this["x-attribsNamespace"]) || void 0 === _a ? void 0 : _a[name], + prefix: null === (_b = _this["x-attribsPrefix"]) || void 0 === _b ? void 0 : _b[name] + }; + })); + }, + enumerable: !1, + configurable: !0 + }), Element; +}(NodeWithChildren); + +function isTag$1(node) { + return (0, domelementtype_1$1.isTag)(node); +} + +function isCDATA(node) { + return node.type === domelementtype_1$1.ElementType.CDATA; +} + +function isText(node) { + return node.type === domelementtype_1$1.ElementType.Text; +} + +function isComment(node) { + return node.type === domelementtype_1$1.ElementType.Comment; +} + +function isDirective(node) { + return node.type === domelementtype_1$1.ElementType.Directive; +} + +function isDocument(node) { + return node.type === domelementtype_1$1.ElementType.Root; +} + +function cloneNode(node, recursive) { + var result; + if (void 0 === recursive && (recursive = !1), isText(node)) result = new Text(node.data); else if (isComment(node)) result = new Comment$a(node.data); else if (isTag$1(node)) { + var children = recursive ? cloneChildren(node.children) : [], clone_1 = new Element(node.name, __assign$1({}, node.attribs), children); + children.forEach((function(child) { + return child.parent = clone_1; + })), null != node.namespace && (clone_1.namespace = node.namespace), node["x-attribsNamespace"] && (clone_1["x-attribsNamespace"] = __assign$1({}, node["x-attribsNamespace"])), + node["x-attribsPrefix"] && (clone_1["x-attribsPrefix"] = __assign$1({}, node["x-attribsPrefix"])), + result = clone_1; + } else if (isCDATA(node)) { + children = recursive ? cloneChildren(node.children) : []; + var clone_2 = new CDATA(children); + children.forEach((function(child) { + return child.parent = clone_2; + })), result = clone_2; + } else if (isDocument(node)) { + children = recursive ? cloneChildren(node.children) : []; + var clone_3 = new Document(children); + children.forEach((function(child) { + return child.parent = clone_3; + })), node["x-mode"] && (clone_3["x-mode"] = node["x-mode"]), result = clone_3; + } else { + if (!isDirective(node)) throw new Error("Not implemented yet: ".concat(node.type)); + var instruction = new ProcessingInstruction(node.name, node.data); + null != node["x-name"] && (instruction["x-name"] = node["x-name"], instruction["x-publicId"] = node["x-publicId"], + instruction["x-systemId"] = node["x-systemId"]), result = instruction; + } + return result.startIndex = node.startIndex, result.endIndex = node.endIndex, null != node.sourceCodeLocation && (result.sourceCodeLocation = node.sourceCodeLocation), + result; +} + +function cloneChildren(childs) { + for (var children = childs.map((function(child) { + return cloneNode(child, !0); + })), i = 1; i < children.length; i++) children[i].prev = children[i - 1], children[i - 1].next = children[i]; + return children; +} + +node$2.Element = Element, node$2.isTag = isTag$1, node$2.isCDATA = isCDATA, node$2.isText = isText, +node$2.isComment = isComment, node$2.isDirective = isDirective, node$2.isDocument = isDocument, +node$2.hasChildren = function(node) { + return Object.prototype.hasOwnProperty.call(node, "children"); +}, node$2.cloneNode = cloneNode, function(exports) { + var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) { + void 0 === k2 && (k2 = k); + var desc = Object.getOwnPropertyDescriptor(m, k); + desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = { + enumerable: !0, + get: function() { + return m[k]; + } + }), Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + void 0 === k2 && (k2 = k), o[k2] = m[k]; + }), __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports) { + for (var p in m) "default" === p || Object.prototype.hasOwnProperty.call(exports, p) || __createBinding(exports, m, p); + }; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), exports.DomHandler = void 0; + var domelementtype_1 = lib$3, node_js_1 = node$2; + __exportStar(node$2, exports); + var defaultOpts = { + withStartIndices: !1, + withEndIndices: !1, + xmlMode: !1 + }, DomHandler = function() { + function DomHandler(callback, options, elementCB) { + this.dom = [], this.root = new node_js_1.Document(this.dom), this.done = !1, this.tagStack = [ this.root ], + this.lastNode = null, this.parser = null, "function" == typeof options && (elementCB = options, + options = defaultOpts), "object" == typeof callback && (options = callback, callback = void 0), + this.callback = null != callback ? callback : null, this.options = null != options ? options : defaultOpts, + this.elementCB = null != elementCB ? elementCB : null; + } + return DomHandler.prototype.onparserinit = function(parser) { + this.parser = parser; + }, DomHandler.prototype.onreset = function() { + this.dom = [], this.root = new node_js_1.Document(this.dom), this.done = !1, this.tagStack = [ this.root ], + this.lastNode = null, this.parser = null; + }, DomHandler.prototype.onend = function() { + this.done || (this.done = !0, this.parser = null, this.handleCallback(null)); + }, DomHandler.prototype.onerror = function(error) { + this.handleCallback(error); + }, DomHandler.prototype.onclosetag = function() { + this.lastNode = null; + var elem = this.tagStack.pop(); + this.options.withEndIndices && (elem.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(elem); + }, DomHandler.prototype.onopentag = function(name, attribs) { + var type = this.options.xmlMode ? domelementtype_1.ElementType.Tag : void 0, element = new node_js_1.Element(name, attribs, void 0, type); + this.addNode(element), this.tagStack.push(element); + }, DomHandler.prototype.ontext = function(data) { + var lastNode = this.lastNode; + if (lastNode && lastNode.type === domelementtype_1.ElementType.Text) lastNode.data += data, + this.options.withEndIndices && (lastNode.endIndex = this.parser.endIndex); else { + var node = new node_js_1.Text(data); + this.addNode(node), this.lastNode = node; + } + }, DomHandler.prototype.oncomment = function(data) { + if (this.lastNode && this.lastNode.type === domelementtype_1.ElementType.Comment) this.lastNode.data += data; else { + var node = new node_js_1.Comment(data); + this.addNode(node), this.lastNode = node; + } + }, DomHandler.prototype.oncommentend = function() { + this.lastNode = null; + }, DomHandler.prototype.oncdatastart = function() { + var text = new node_js_1.Text(""), node = new node_js_1.CDATA([ text ]); + this.addNode(node), text.parent = node, this.lastNode = text; + }, DomHandler.prototype.oncdataend = function() { + this.lastNode = null; + }, DomHandler.prototype.onprocessinginstruction = function(name, data) { + var node = new node_js_1.ProcessingInstruction(name, data); + this.addNode(node); + }, DomHandler.prototype.handleCallback = function(error) { + if ("function" == typeof this.callback) this.callback(error, this.dom); else if (error) throw error; + }, DomHandler.prototype.addNode = function(node) { + var parent = this.tagStack[this.tagStack.length - 1], previousSibling = parent.children[parent.children.length - 1]; + this.options.withStartIndices && (node.startIndex = this.parser.startIndex), this.options.withEndIndices && (node.endIndex = this.parser.endIndex), + parent.children.push(node), previousSibling && (node.prev = previousSibling, previousSibling.next = node), + node.parent = parent, this.lastNode = null; + }, DomHandler; + }(); + exports.DomHandler = DomHandler, exports.default = DomHandler; +}(lib$4); + +var lib$2 = {}, lib$1 = {}, decode$6 = {}, decodeDataHtml = {}; + +Object.defineProperty(decodeDataHtml, "__esModule", { + value: !0 +}), decodeDataHtml.default = new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(c) { + return c.charCodeAt(0); +}))); + +var decodeDataXml = {}; + +Object.defineProperty(decodeDataXml, "__esModule", { + value: !0 +}), decodeDataXml.default = new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(c) { + return c.charCodeAt(0); +}))); + +var decode_codepoint = {}; + +!function(exports) { + var _a; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), exports.replaceCodePoint = exports.fromCodePoint = void 0; + var decodeMap = new Map([ [ 0, 65533 ], [ 128, 8364 ], [ 130, 8218 ], [ 131, 402 ], [ 132, 8222 ], [ 133, 8230 ], [ 134, 8224 ], [ 135, 8225 ], [ 136, 710 ], [ 137, 8240 ], [ 138, 352 ], [ 139, 8249 ], [ 140, 338 ], [ 142, 381 ], [ 145, 8216 ], [ 146, 8217 ], [ 147, 8220 ], [ 148, 8221 ], [ 149, 8226 ], [ 150, 8211 ], [ 151, 8212 ], [ 152, 732 ], [ 153, 8482 ], [ 154, 353 ], [ 155, 8250 ], [ 156, 339 ], [ 158, 382 ], [ 159, 376 ] ]); + function replaceCodePoint(codePoint) { + var _a; + return codePoint >= 0xd800 && codePoint <= 0xdfff || codePoint > 0x10ffff ? 0xfffd : null !== (_a = decodeMap.get(codePoint)) && void 0 !== _a ? _a : codePoint; + } + exports.fromCodePoint = null !== (_a = String.fromCodePoint) && void 0 !== _a ? _a : function(codePoint) { + var output = ""; + return codePoint > 0xffff && (codePoint -= 0x10000, output += String.fromCharCode(codePoint >>> 10 & 0x3ff | 0xd800), + codePoint = 0xdc00 | 0x3ff & codePoint), output += String.fromCharCode(codePoint); + }, exports.replaceCodePoint = replaceCodePoint, exports.default = function(codePoint) { + return (0, exports.fromCodePoint)(replaceCodePoint(codePoint)); + }; +}(decode_codepoint), function(exports) { + var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) { + void 0 === k2 && (k2 = k); + var desc = Object.getOwnPropertyDescriptor(m, k); + desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = { + enumerable: !0, + get: function() { + return m[k]; + } + }), Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + void 0 === k2 && (k2 = k), o[k2] = m[k]; + }), __setModuleDefault = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { + enumerable: !0, + value: v + }); + } : function(o, v) { + o.default = v; + }), __importStar = commonjsGlobal && commonjsGlobal.__importStar || function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (null != mod) for (var k in mod) "default" !== k && Object.prototype.hasOwnProperty.call(mod, k) && __createBinding(result, mod, k); + return __setModuleDefault(result, mod), result; + }, __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { + "default": mod + }; + }; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), exports.decodeXML = exports.decodeHTMLStrict = exports.decodeHTMLAttribute = exports.decodeHTML = exports.determineBranch = exports.EntityDecoder = exports.DecodingMode = exports.BinTrieFlags = exports.fromCodePoint = exports.replaceCodePoint = exports.decodeCodePoint = exports.xmlDecodeTree = exports.htmlDecodeTree = void 0; + var decode_data_html_js_1 = __importDefault(decodeDataHtml); + exports.htmlDecodeTree = decode_data_html_js_1.default; + var decode_data_xml_js_1 = __importDefault(decodeDataXml); + exports.xmlDecodeTree = decode_data_xml_js_1.default; + var decode_codepoint_js_1 = __importStar(decode_codepoint); + exports.decodeCodePoint = decode_codepoint_js_1.default; + var CharCodes, decode_codepoint_js_2 = decode_codepoint; + Object.defineProperty(exports, "replaceCodePoint", { + enumerable: !0, + get: function() { + return decode_codepoint_js_2.replaceCodePoint; + } + }), Object.defineProperty(exports, "fromCodePoint", { + enumerable: !0, + get: function() { + return decode_codepoint_js_2.fromCodePoint; + } + }), function(CharCodes) { + CharCodes[CharCodes.NUM = 35] = "NUM", CharCodes[CharCodes.SEMI = 59] = "SEMI", + CharCodes[CharCodes.EQUALS = 61] = "EQUALS", CharCodes[CharCodes.ZERO = 48] = "ZERO", + CharCodes[CharCodes.NINE = 57] = "NINE", CharCodes[CharCodes.LOWER_A = 97] = "LOWER_A", + CharCodes[CharCodes.LOWER_F = 102] = "LOWER_F", CharCodes[CharCodes.LOWER_X = 120] = "LOWER_X", + CharCodes[CharCodes.LOWER_Z = 122] = "LOWER_Z", CharCodes[CharCodes.UPPER_A = 65] = "UPPER_A", + CharCodes[CharCodes.UPPER_F = 70] = "UPPER_F", CharCodes[CharCodes.UPPER_Z = 90] = "UPPER_Z"; + }(CharCodes || (CharCodes = {})); + var BinTrieFlags, EntityDecoderState, DecodingMode; + function isNumber(code) { + return code >= CharCodes.ZERO && code <= CharCodes.NINE; + } + function isHexadecimalCharacter(code) { + return code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F; + } + function isEntityInAttributeInvalidEnd(code) { + return code === CharCodes.EQUALS || function(code) { + return code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z || isNumber(code); + }(code); + } + !function(BinTrieFlags) { + BinTrieFlags[BinTrieFlags.VALUE_LENGTH = 49152] = "VALUE_LENGTH", BinTrieFlags[BinTrieFlags.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", + BinTrieFlags[BinTrieFlags.JUMP_TABLE = 127] = "JUMP_TABLE"; + }(BinTrieFlags = exports.BinTrieFlags || (exports.BinTrieFlags = {})), function(EntityDecoderState) { + EntityDecoderState[EntityDecoderState.EntityStart = 0] = "EntityStart", EntityDecoderState[EntityDecoderState.NumericStart = 1] = "NumericStart", + EntityDecoderState[EntityDecoderState.NumericDecimal = 2] = "NumericDecimal", EntityDecoderState[EntityDecoderState.NumericHex = 3] = "NumericHex", + EntityDecoderState[EntityDecoderState.NamedEntity = 4] = "NamedEntity"; + }(EntityDecoderState || (EntityDecoderState = {})), function(DecodingMode) { + DecodingMode[DecodingMode.Legacy = 0] = "Legacy", DecodingMode[DecodingMode.Strict = 1] = "Strict", + DecodingMode[DecodingMode.Attribute = 2] = "Attribute"; + }(DecodingMode = exports.DecodingMode || (exports.DecodingMode = {})); + var EntityDecoder = function() { + function EntityDecoder(decodeTree, emitCodePoint, errors) { + this.decodeTree = decodeTree, this.emitCodePoint = emitCodePoint, this.errors = errors, + this.state = EntityDecoderState.EntityStart, this.consumed = 1, this.result = 0, + this.treeIndex = 0, this.excess = 1, this.decodeMode = DecodingMode.Strict; + } + return EntityDecoder.prototype.startEntity = function(decodeMode) { + this.decodeMode = decodeMode, this.state = EntityDecoderState.EntityStart, this.result = 0, + this.treeIndex = 0, this.excess = 1, this.consumed = 1; + }, EntityDecoder.prototype.write = function(str, offset) { + switch (this.state) { + case EntityDecoderState.EntityStart: + return str.charCodeAt(offset) === CharCodes.NUM ? (this.state = EntityDecoderState.NumericStart, + this.consumed += 1, this.stateNumericStart(str, offset + 1)) : (this.state = EntityDecoderState.NamedEntity, + this.stateNamedEntity(str, offset)); + + case EntityDecoderState.NumericStart: + return this.stateNumericStart(str, offset); + + case EntityDecoderState.NumericDecimal: + return this.stateNumericDecimal(str, offset); + + case EntityDecoderState.NumericHex: + return this.stateNumericHex(str, offset); + + case EntityDecoderState.NamedEntity: + return this.stateNamedEntity(str, offset); + } + }, EntityDecoder.prototype.stateNumericStart = function(str, offset) { + return offset >= str.length ? -1 : (32 | str.charCodeAt(offset)) === CharCodes.LOWER_X ? (this.state = EntityDecoderState.NumericHex, + this.consumed += 1, this.stateNumericHex(str, offset + 1)) : (this.state = EntityDecoderState.NumericDecimal, + this.stateNumericDecimal(str, offset)); + }, EntityDecoder.prototype.addToNumericResult = function(str, start, end, base) { + if (start !== end) { + var digitCount = end - start; + this.result = this.result * Math.pow(base, digitCount) + parseInt(str.substr(start, digitCount), base), + this.consumed += digitCount; + } + }, EntityDecoder.prototype.stateNumericHex = function(str, offset) { + for (var startIdx = offset; offset < str.length; ) { + var char = str.charCodeAt(offset); + if (!isNumber(char) && !isHexadecimalCharacter(char)) return this.addToNumericResult(str, startIdx, offset, 16), + this.emitNumericEntity(char, 3); + offset += 1; + } + return this.addToNumericResult(str, startIdx, offset, 16), -1; + }, EntityDecoder.prototype.stateNumericDecimal = function(str, offset) { + for (var startIdx = offset; offset < str.length; ) { + var char = str.charCodeAt(offset); + if (!isNumber(char)) return this.addToNumericResult(str, startIdx, offset, 10), + this.emitNumericEntity(char, 2); + offset += 1; + } + return this.addToNumericResult(str, startIdx, offset, 10), -1; + }, EntityDecoder.prototype.emitNumericEntity = function(lastCp, expectedLength) { + var _a; + if (this.consumed <= expectedLength) return null === (_a = this.errors) || void 0 === _a || _a.absenceOfDigitsInNumericCharacterReference(this.consumed), + 0; + if (lastCp === CharCodes.SEMI) this.consumed += 1; else if (this.decodeMode === DecodingMode.Strict) return 0; + return this.emitCodePoint((0, decode_codepoint_js_1.replaceCodePoint)(this.result), this.consumed), + this.errors && (lastCp !== CharCodes.SEMI && this.errors.missingSemicolonAfterCharacterReference(), + this.errors.validateNumericCharacterReference(this.result)), this.consumed; + }, EntityDecoder.prototype.stateNamedEntity = function(str, offset) { + for (var decodeTree = this.decodeTree, current = decodeTree[this.treeIndex], valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14; offset < str.length; offset++, + this.excess++) { + var char = str.charCodeAt(offset); + if (this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char), + this.treeIndex < 0) return 0 === this.result || this.decodeMode === DecodingMode.Attribute && (0 === valueLength || isEntityInAttributeInvalidEnd(char)) ? 0 : this.emitNotTerminatedNamedEntity(); + if (0 !== (valueLength = ((current = decodeTree[this.treeIndex]) & BinTrieFlags.VALUE_LENGTH) >> 14)) { + if (char === CharCodes.SEMI) return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess); + this.decodeMode !== DecodingMode.Strict && (this.result = this.treeIndex, this.consumed += this.excess, + this.excess = 0); + } + } + return -1; + }, EntityDecoder.prototype.emitNotTerminatedNamedEntity = function() { + var _a, result = this.result, valueLength = (this.decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14; + return this.emitNamedEntityData(result, valueLength, this.consumed), null === (_a = this.errors) || void 0 === _a || _a.missingSemicolonAfterCharacterReference(), + this.consumed; + }, EntityDecoder.prototype.emitNamedEntityData = function(result, valueLength, consumed) { + var decodeTree = this.decodeTree; + return this.emitCodePoint(1 === valueLength ? decodeTree[result] & ~BinTrieFlags.VALUE_LENGTH : decodeTree[result + 1], consumed), + 3 === valueLength && this.emitCodePoint(decodeTree[result + 2], consumed), consumed; + }, EntityDecoder.prototype.end = function() { + var _a; + switch (this.state) { + case EntityDecoderState.NamedEntity: + return 0 === this.result || this.decodeMode === DecodingMode.Attribute && this.result !== this.treeIndex ? 0 : this.emitNotTerminatedNamedEntity(); + + case EntityDecoderState.NumericDecimal: + return this.emitNumericEntity(0, 2); + + case EntityDecoderState.NumericHex: + return this.emitNumericEntity(0, 3); + + case EntityDecoderState.NumericStart: + return null === (_a = this.errors) || void 0 === _a || _a.absenceOfDigitsInNumericCharacterReference(this.consumed), + 0; + + case EntityDecoderState.EntityStart: + return 0; + } + }, EntityDecoder; + }(); + function getDecoder(decodeTree) { + var ret = "", decoder = new EntityDecoder(decodeTree, (function(str) { + return ret += (0, decode_codepoint_js_1.fromCodePoint)(str); + })); + return function(str, decodeMode) { + for (var lastIndex = 0, offset = 0; (offset = str.indexOf("&", offset)) >= 0; ) { + ret += str.slice(lastIndex, offset), decoder.startEntity(decodeMode); + var len = decoder.write(str, offset + 1); + if (len < 0) { + lastIndex = offset + decoder.end(); + break; + } + lastIndex = offset + len, offset = 0 === len ? lastIndex + 1 : lastIndex; + } + var result = ret + str.slice(lastIndex); + return ret = "", result; + }; + } + function determineBranch(decodeTree, current, nodeIdx, char) { + var branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7, jumpOffset = current & BinTrieFlags.JUMP_TABLE; + if (0 === branchCount) return 0 !== jumpOffset && char === jumpOffset ? nodeIdx : -1; + if (jumpOffset) { + var value = char - jumpOffset; + return value < 0 || value >= branchCount ? -1 : decodeTree[nodeIdx + value] - 1; + } + for (var lo = nodeIdx, hi = lo + branchCount - 1; lo <= hi; ) { + var mid = lo + hi >>> 1, midVal = decodeTree[mid]; + if (midVal < char) lo = mid + 1; else { + if (!(midVal > char)) return decodeTree[mid + branchCount]; + hi = mid - 1; + } + } + return -1; + } + exports.EntityDecoder = EntityDecoder, exports.determineBranch = determineBranch; + var htmlDecoder = getDecoder(decode_data_html_js_1.default), xmlDecoder = getDecoder(decode_data_xml_js_1.default); + exports.decodeHTML = function(str, mode) { + return void 0 === mode && (mode = DecodingMode.Legacy), htmlDecoder(str, mode); + }, exports.decodeHTMLAttribute = function(str) { + return htmlDecoder(str, DecodingMode.Attribute); + }, exports.decodeHTMLStrict = function(str) { + return htmlDecoder(str, DecodingMode.Strict); + }, exports.decodeXML = function(str) { + return xmlDecoder(str, DecodingMode.Strict); + }; +}(decode$6); + +var encode$6 = {}, encodeHtml = {}; + +function restoreDiff(arr) { + for (var i = 1; i < arr.length; i++) arr[i][0] += arr[i - 1][0] + 1; + return arr; +} + +Object.defineProperty(encodeHtml, "__esModule", { + value: !0 +}), encodeHtml.default = new Map(restoreDiff([ [ 9, " " ], [ 0, " " ], [ 22, "!" ], [ 0, """ ], [ 0, "#" ], [ 0, "$" ], [ 0, "%" ], [ 0, "&" ], [ 0, "'" ], [ 0, "(" ], [ 0, ")" ], [ 0, "*" ], [ 0, "+" ], [ 0, "," ], [ 1, "." ], [ 0, "/" ], [ 10, ":" ], [ 0, ";" ], [ 0, { + v: "<", + n: 8402, + o: "<⃒" +} ], [ 0, { + v: "=", + n: 8421, + o: "=⃥" +} ], [ 0, { + v: ">", + n: 8402, + o: ">⃒" +} ], [ 0, "?" ], [ 0, "@" ], [ 26, "[" ], [ 0, "\" ], [ 0, "]" ], [ 0, "^" ], [ 0, "_" ], [ 0, "`" ], [ 5, { + n: 106, + o: "fj" +} ], [ 20, "{" ], [ 0, "|" ], [ 0, "}" ], [ 34, " " ], [ 0, "¡" ], [ 0, "¢" ], [ 0, "£" ], [ 0, "¤" ], [ 0, "¥" ], [ 0, "¦" ], [ 0, "§" ], [ 0, "¨" ], [ 0, "©" ], [ 0, "ª" ], [ 0, "«" ], [ 0, "¬" ], [ 0, "­" ], [ 0, "®" ], [ 0, "¯" ], [ 0, "°" ], [ 0, "±" ], [ 0, "²" ], [ 0, "³" ], [ 0, "´" ], [ 0, "µ" ], [ 0, "¶" ], [ 0, "·" ], [ 0, "¸" ], [ 0, "¹" ], [ 0, "º" ], [ 0, "»" ], [ 0, "¼" ], [ 0, "½" ], [ 0, "¾" ], [ 0, "¿" ], [ 0, "À" ], [ 0, "Á" ], [ 0, "Â" ], [ 0, "Ã" ], [ 0, "Ä" ], [ 0, "Å" ], [ 0, "Æ" ], [ 0, "Ç" ], [ 0, "È" ], [ 0, "É" ], [ 0, "Ê" ], [ 0, "Ë" ], [ 0, "Ì" ], [ 0, "Í" ], [ 0, "Î" ], [ 0, "Ï" ], [ 0, "Ð" ], [ 0, "Ñ" ], [ 0, "Ò" ], [ 0, "Ó" ], [ 0, "Ô" ], [ 0, "Õ" ], [ 0, "Ö" ], [ 0, "×" ], [ 0, "Ø" ], [ 0, "Ù" ], [ 0, "Ú" ], [ 0, "Û" ], [ 0, "Ü" ], [ 0, "Ý" ], [ 0, "Þ" ], [ 0, "ß" ], [ 0, "à" ], [ 0, "á" ], [ 0, "â" ], [ 0, "ã" ], [ 0, "ä" ], [ 0, "å" ], [ 0, "æ" ], [ 0, "ç" ], [ 0, "è" ], [ 0, "é" ], [ 0, "ê" ], [ 0, "ë" ], [ 0, "ì" ], [ 0, "í" ], [ 0, "î" ], [ 0, "ï" ], [ 0, "ð" ], [ 0, "ñ" ], [ 0, "ò" ], [ 0, "ó" ], [ 0, "ô" ], [ 0, "õ" ], [ 0, "ö" ], [ 0, "÷" ], [ 0, "ø" ], [ 0, "ù" ], [ 0, "ú" ], [ 0, "û" ], [ 0, "ü" ], [ 0, "ý" ], [ 0, "þ" ], [ 0, "ÿ" ], [ 0, "Ā" ], [ 0, "ā" ], [ 0, "Ă" ], [ 0, "ă" ], [ 0, "Ą" ], [ 0, "ą" ], [ 0, "Ć" ], [ 0, "ć" ], [ 0, "Ĉ" ], [ 0, "ĉ" ], [ 0, "Ċ" ], [ 0, "ċ" ], [ 0, "Č" ], [ 0, "č" ], [ 0, "Ď" ], [ 0, "ď" ], [ 0, "Đ" ], [ 0, "đ" ], [ 0, "Ē" ], [ 0, "ē" ], [ 2, "Ė" ], [ 0, "ė" ], [ 0, "Ę" ], [ 0, "ę" ], [ 0, "Ě" ], [ 0, "ě" ], [ 0, "Ĝ" ], [ 0, "ĝ" ], [ 0, "Ğ" ], [ 0, "ğ" ], [ 0, "Ġ" ], [ 0, "ġ" ], [ 0, "Ģ" ], [ 1, "Ĥ" ], [ 0, "ĥ" ], [ 0, "Ħ" ], [ 0, "ħ" ], [ 0, "Ĩ" ], [ 0, "ĩ" ], [ 0, "Ī" ], [ 0, "ī" ], [ 2, "Į" ], [ 0, "į" ], [ 0, "İ" ], [ 0, "ı" ], [ 0, "IJ" ], [ 0, "ij" ], [ 0, "Ĵ" ], [ 0, "ĵ" ], [ 0, "Ķ" ], [ 0, "ķ" ], [ 0, "ĸ" ], [ 0, "Ĺ" ], [ 0, "ĺ" ], [ 0, "Ļ" ], [ 0, "ļ" ], [ 0, "Ľ" ], [ 0, "ľ" ], [ 0, "Ŀ" ], [ 0, "ŀ" ], [ 0, "Ł" ], [ 0, "ł" ], [ 0, "Ń" ], [ 0, "ń" ], [ 0, "Ņ" ], [ 0, "ņ" ], [ 0, "Ň" ], [ 0, "ň" ], [ 0, "ʼn" ], [ 0, "Ŋ" ], [ 0, "ŋ" ], [ 0, "Ō" ], [ 0, "ō" ], [ 2, "Ő" ], [ 0, "ő" ], [ 0, "Œ" ], [ 0, "œ" ], [ 0, "Ŕ" ], [ 0, "ŕ" ], [ 0, "Ŗ" ], [ 0, "ŗ" ], [ 0, "Ř" ], [ 0, "ř" ], [ 0, "Ś" ], [ 0, "ś" ], [ 0, "Ŝ" ], [ 0, "ŝ" ], [ 0, "Ş" ], [ 0, "ş" ], [ 0, "Š" ], [ 0, "š" ], [ 0, "Ţ" ], [ 0, "ţ" ], [ 0, "Ť" ], [ 0, "ť" ], [ 0, "Ŧ" ], [ 0, "ŧ" ], [ 0, "Ũ" ], [ 0, "ũ" ], [ 0, "Ū" ], [ 0, "ū" ], [ 0, "Ŭ" ], [ 0, "ŭ" ], [ 0, "Ů" ], [ 0, "ů" ], [ 0, "Ű" ], [ 0, "ű" ], [ 0, "Ų" ], [ 0, "ų" ], [ 0, "Ŵ" ], [ 0, "ŵ" ], [ 0, "Ŷ" ], [ 0, "ŷ" ], [ 0, "Ÿ" ], [ 0, "Ź" ], [ 0, "ź" ], [ 0, "Ż" ], [ 0, "ż" ], [ 0, "Ž" ], [ 0, "ž" ], [ 19, "ƒ" ], [ 34, "Ƶ" ], [ 63, "ǵ" ], [ 65, "ȷ" ], [ 142, "ˆ" ], [ 0, "ˇ" ], [ 16, "˘" ], [ 0, "˙" ], [ 0, "˚" ], [ 0, "˛" ], [ 0, "˜" ], [ 0, "˝" ], [ 51, "̑" ], [ 127, "Α" ], [ 0, "Β" ], [ 0, "Γ" ], [ 0, "Δ" ], [ 0, "Ε" ], [ 0, "Ζ" ], [ 0, "Η" ], [ 0, "Θ" ], [ 0, "Ι" ], [ 0, "Κ" ], [ 0, "Λ" ], [ 0, "Μ" ], [ 0, "Ν" ], [ 0, "Ξ" ], [ 0, "Ο" ], [ 0, "Π" ], [ 0, "Ρ" ], [ 1, "Σ" ], [ 0, "Τ" ], [ 0, "Υ" ], [ 0, "Φ" ], [ 0, "Χ" ], [ 0, "Ψ" ], [ 0, "Ω" ], [ 7, "α" ], [ 0, "β" ], [ 0, "γ" ], [ 0, "δ" ], [ 0, "ε" ], [ 0, "ζ" ], [ 0, "η" ], [ 0, "θ" ], [ 0, "ι" ], [ 0, "κ" ], [ 0, "λ" ], [ 0, "μ" ], [ 0, "ν" ], [ 0, "ξ" ], [ 0, "ο" ], [ 0, "π" ], [ 0, "ρ" ], [ 0, "ς" ], [ 0, "σ" ], [ 0, "τ" ], [ 0, "υ" ], [ 0, "φ" ], [ 0, "χ" ], [ 0, "ψ" ], [ 0, "ω" ], [ 7, "ϑ" ], [ 0, "ϒ" ], [ 2, "ϕ" ], [ 0, "ϖ" ], [ 5, "Ϝ" ], [ 0, "ϝ" ], [ 18, "ϰ" ], [ 0, "ϱ" ], [ 3, "ϵ" ], [ 0, "϶" ], [ 10, "Ё" ], [ 0, "Ђ" ], [ 0, "Ѓ" ], [ 0, "Є" ], [ 0, "Ѕ" ], [ 0, "І" ], [ 0, "Ї" ], [ 0, "Ј" ], [ 0, "Љ" ], [ 0, "Њ" ], [ 0, "Ћ" ], [ 0, "Ќ" ], [ 1, "Ў" ], [ 0, "Џ" ], [ 0, "А" ], [ 0, "Б" ], [ 0, "В" ], [ 0, "Г" ], [ 0, "Д" ], [ 0, "Е" ], [ 0, "Ж" ], [ 0, "З" ], [ 0, "И" ], [ 0, "Й" ], [ 0, "К" ], [ 0, "Л" ], [ 0, "М" ], [ 0, "Н" ], [ 0, "О" ], [ 0, "П" ], [ 0, "Р" ], [ 0, "С" ], [ 0, "Т" ], [ 0, "У" ], [ 0, "Ф" ], [ 0, "Х" ], [ 0, "Ц" ], [ 0, "Ч" ], [ 0, "Ш" ], [ 0, "Щ" ], [ 0, "Ъ" ], [ 0, "Ы" ], [ 0, "Ь" ], [ 0, "Э" ], [ 0, "Ю" ], [ 0, "Я" ], [ 0, "а" ], [ 0, "б" ], [ 0, "в" ], [ 0, "г" ], [ 0, "д" ], [ 0, "е" ], [ 0, "ж" ], [ 0, "з" ], [ 0, "и" ], [ 0, "й" ], [ 0, "к" ], [ 0, "л" ], [ 0, "м" ], [ 0, "н" ], [ 0, "о" ], [ 0, "п" ], [ 0, "р" ], [ 0, "с" ], [ 0, "т" ], [ 0, "у" ], [ 0, "ф" ], [ 0, "х" ], [ 0, "ц" ], [ 0, "ч" ], [ 0, "ш" ], [ 0, "щ" ], [ 0, "ъ" ], [ 0, "ы" ], [ 0, "ь" ], [ 0, "э" ], [ 0, "ю" ], [ 0, "я" ], [ 1, "ё" ], [ 0, "ђ" ], [ 0, "ѓ" ], [ 0, "є" ], [ 0, "ѕ" ], [ 0, "і" ], [ 0, "ї" ], [ 0, "ј" ], [ 0, "љ" ], [ 0, "њ" ], [ 0, "ћ" ], [ 0, "ќ" ], [ 1, "ў" ], [ 0, "џ" ], [ 7074, " " ], [ 0, " " ], [ 0, " " ], [ 0, " " ], [ 1, " " ], [ 0, " " ], [ 0, " " ], [ 0, " " ], [ 0, "​" ], [ 0, "‌" ], [ 0, "‍" ], [ 0, "‎" ], [ 0, "‏" ], [ 0, "‐" ], [ 2, "–" ], [ 0, "—" ], [ 0, "―" ], [ 0, "‖" ], [ 1, "‘" ], [ 0, "’" ], [ 0, "‚" ], [ 1, "“" ], [ 0, "”" ], [ 0, "„" ], [ 1, "†" ], [ 0, "‡" ], [ 0, "•" ], [ 2, "‥" ], [ 0, "…" ], [ 9, "‰" ], [ 0, "‱" ], [ 0, "′" ], [ 0, "″" ], [ 0, "‴" ], [ 0, "‵" ], [ 3, "‹" ], [ 0, "›" ], [ 3, "‾" ], [ 2, "⁁" ], [ 1, "⁃" ], [ 0, "⁄" ], [ 10, "⁏" ], [ 7, "⁗" ], [ 7, { + v: " ", + n: 8202, + o: "  " +} ], [ 0, "⁠" ], [ 0, "⁡" ], [ 0, "⁢" ], [ 0, "⁣" ], [ 72, "€" ], [ 46, "⃛" ], [ 0, "⃜" ], [ 37, "ℂ" ], [ 2, "℅" ], [ 4, "ℊ" ], [ 0, "ℋ" ], [ 0, "ℌ" ], [ 0, "ℍ" ], [ 0, "ℎ" ], [ 0, "ℏ" ], [ 0, "ℐ" ], [ 0, "ℑ" ], [ 0, "ℒ" ], [ 0, "ℓ" ], [ 1, "ℕ" ], [ 0, "№" ], [ 0, "℗" ], [ 0, "℘" ], [ 0, "ℙ" ], [ 0, "ℚ" ], [ 0, "ℛ" ], [ 0, "ℜ" ], [ 0, "ℝ" ], [ 0, "℞" ], [ 3, "™" ], [ 1, "ℤ" ], [ 2, "℧" ], [ 0, "ℨ" ], [ 0, "℩" ], [ 2, "ℬ" ], [ 0, "ℭ" ], [ 1, "ℯ" ], [ 0, "ℰ" ], [ 0, "ℱ" ], [ 1, "ℳ" ], [ 0, "ℴ" ], [ 0, "ℵ" ], [ 0, "ℶ" ], [ 0, "ℷ" ], [ 0, "ℸ" ], [ 12, "ⅅ" ], [ 0, "ⅆ" ], [ 0, "ⅇ" ], [ 0, "ⅈ" ], [ 10, "⅓" ], [ 0, "⅔" ], [ 0, "⅕" ], [ 0, "⅖" ], [ 0, "⅗" ], [ 0, "⅘" ], [ 0, "⅙" ], [ 0, "⅚" ], [ 0, "⅛" ], [ 0, "⅜" ], [ 0, "⅝" ], [ 0, "⅞" ], [ 49, "←" ], [ 0, "↑" ], [ 0, "→" ], [ 0, "↓" ], [ 0, "↔" ], [ 0, "↕" ], [ 0, "↖" ], [ 0, "↗" ], [ 0, "↘" ], [ 0, "↙" ], [ 0, "↚" ], [ 0, "↛" ], [ 1, { + v: "↝", + n: 824, + o: "↝̸" +} ], [ 0, "↞" ], [ 0, "↟" ], [ 0, "↠" ], [ 0, "↡" ], [ 0, "↢" ], [ 0, "↣" ], [ 0, "↤" ], [ 0, "↥" ], [ 0, "↦" ], [ 0, "↧" ], [ 1, "↩" ], [ 0, "↪" ], [ 0, "↫" ], [ 0, "↬" ], [ 0, "↭" ], [ 0, "↮" ], [ 1, "↰" ], [ 0, "↱" ], [ 0, "↲" ], [ 0, "↳" ], [ 1, "↵" ], [ 0, "↶" ], [ 0, "↷" ], [ 2, "↺" ], [ 0, "↻" ], [ 0, "↼" ], [ 0, "↽" ], [ 0, "↾" ], [ 0, "↿" ], [ 0, "⇀" ], [ 0, "⇁" ], [ 0, "⇂" ], [ 0, "⇃" ], [ 0, "⇄" ], [ 0, "⇅" ], [ 0, "⇆" ], [ 0, "⇇" ], [ 0, "⇈" ], [ 0, "⇉" ], [ 0, "⇊" ], [ 0, "⇋" ], [ 0, "⇌" ], [ 0, "⇍" ], [ 0, "⇎" ], [ 0, "⇏" ], [ 0, "⇐" ], [ 0, "⇑" ], [ 0, "⇒" ], [ 0, "⇓" ], [ 0, "⇔" ], [ 0, "⇕" ], [ 0, "⇖" ], [ 0, "⇗" ], [ 0, "⇘" ], [ 0, "⇙" ], [ 0, "⇚" ], [ 0, "⇛" ], [ 1, "⇝" ], [ 6, "⇤" ], [ 0, "⇥" ], [ 15, "⇵" ], [ 7, "⇽" ], [ 0, "⇾" ], [ 0, "⇿" ], [ 0, "∀" ], [ 0, "∁" ], [ 0, { + v: "∂", + n: 824, + o: "∂̸" +} ], [ 0, "∃" ], [ 0, "∄" ], [ 0, "∅" ], [ 1, "∇" ], [ 0, "∈" ], [ 0, "∉" ], [ 1, "∋" ], [ 0, "∌" ], [ 2, "∏" ], [ 0, "∐" ], [ 0, "∑" ], [ 0, "−" ], [ 0, "∓" ], [ 0, "∔" ], [ 1, "∖" ], [ 0, "∗" ], [ 0, "∘" ], [ 1, "√" ], [ 2, "∝" ], [ 0, "∞" ], [ 0, "∟" ], [ 0, { + v: "∠", + n: 8402, + o: "∠⃒" +} ], [ 0, "∡" ], [ 0, "∢" ], [ 0, "∣" ], [ 0, "∤" ], [ 0, "∥" ], [ 0, "∦" ], [ 0, "∧" ], [ 0, "∨" ], [ 0, { + v: "∩", + n: 65024, + o: "∩︀" +} ], [ 0, { + v: "∪", + n: 65024, + o: "∪︀" +} ], [ 0, "∫" ], [ 0, "∬" ], [ 0, "∭" ], [ 0, "∮" ], [ 0, "∯" ], [ 0, "∰" ], [ 0, "∱" ], [ 0, "∲" ], [ 0, "∳" ], [ 0, "∴" ], [ 0, "∵" ], [ 0, "∶" ], [ 0, "∷" ], [ 0, "∸" ], [ 1, "∺" ], [ 0, "∻" ], [ 0, { + v: "∼", + n: 8402, + o: "∼⃒" +} ], [ 0, { + v: "∽", + n: 817, + o: "∽̱" +} ], [ 0, { + v: "∾", + n: 819, + o: "∾̳" +} ], [ 0, "∿" ], [ 0, "≀" ], [ 0, "≁" ], [ 0, { + v: "≂", + n: 824, + o: "≂̸" +} ], [ 0, "≃" ], [ 0, "≄" ], [ 0, "≅" ], [ 0, "≆" ], [ 0, "≇" ], [ 0, "≈" ], [ 0, "≉" ], [ 0, "≊" ], [ 0, { + v: "≋", + n: 824, + o: "≋̸" +} ], [ 0, "≌" ], [ 0, { + v: "≍", + n: 8402, + o: "≍⃒" +} ], [ 0, { + v: "≎", + n: 824, + o: "≎̸" +} ], [ 0, { + v: "≏", + n: 824, + o: "≏̸" +} ], [ 0, { + v: "≐", + n: 824, + o: "≐̸" +} ], [ 0, "≑" ], [ 0, "≒" ], [ 0, "≓" ], [ 0, "≔" ], [ 0, "≕" ], [ 0, "≖" ], [ 0, "≗" ], [ 1, "≙" ], [ 0, "≚" ], [ 1, "≜" ], [ 2, "≟" ], [ 0, "≠" ], [ 0, { + v: "≡", + n: 8421, + o: "≡⃥" +} ], [ 0, "≢" ], [ 1, { + v: "≤", + n: 8402, + o: "≤⃒" +} ], [ 0, { + v: "≥", + n: 8402, + o: "≥⃒" +} ], [ 0, { + v: "≦", + n: 824, + o: "≦̸" +} ], [ 0, { + v: "≧", + n: 824, + o: "≧̸" +} ], [ 0, { + v: "≨", + n: 65024, + o: "≨︀" +} ], [ 0, { + v: "≩", + n: 65024, + o: "≩︀" +} ], [ 0, { + v: "≪", + n: new Map(restoreDiff([ [ 824, "≪̸" ], [ 7577, "≪⃒" ] ])) +} ], [ 0, { + v: "≫", + n: new Map(restoreDiff([ [ 824, "≫̸" ], [ 7577, "≫⃒" ] ])) +} ], [ 0, "≬" ], [ 0, "≭" ], [ 0, "≮" ], [ 0, "≯" ], [ 0, "≰" ], [ 0, "≱" ], [ 0, "≲" ], [ 0, "≳" ], [ 0, "≴" ], [ 0, "≵" ], [ 0, "≶" ], [ 0, "≷" ], [ 0, "≸" ], [ 0, "≹" ], [ 0, "≺" ], [ 0, "≻" ], [ 0, "≼" ], [ 0, "≽" ], [ 0, "≾" ], [ 0, { + v: "≿", + n: 824, + o: "≿̸" +} ], [ 0, "⊀" ], [ 0, "⊁" ], [ 0, { + v: "⊂", + n: 8402, + o: "⊂⃒" +} ], [ 0, { + v: "⊃", + n: 8402, + o: "⊃⃒" +} ], [ 0, "⊄" ], [ 0, "⊅" ], [ 0, "⊆" ], [ 0, "⊇" ], [ 0, "⊈" ], [ 0, "⊉" ], [ 0, { + v: "⊊", + n: 65024, + o: "⊊︀" +} ], [ 0, { + v: "⊋", + n: 65024, + o: "⊋︀" +} ], [ 1, "⊍" ], [ 0, "⊎" ], [ 0, { + v: "⊏", + n: 824, + o: "⊏̸" +} ], [ 0, { + v: "⊐", + n: 824, + o: "⊐̸" +} ], [ 0, "⊑" ], [ 0, "⊒" ], [ 0, { + v: "⊓", + n: 65024, + o: "⊓︀" +} ], [ 0, { + v: "⊔", + n: 65024, + o: "⊔︀" +} ], [ 0, "⊕" ], [ 0, "⊖" ], [ 0, "⊗" ], [ 0, "⊘" ], [ 0, "⊙" ], [ 0, "⊚" ], [ 0, "⊛" ], [ 1, "⊝" ], [ 0, "⊞" ], [ 0, "⊟" ], [ 0, "⊠" ], [ 0, "⊡" ], [ 0, "⊢" ], [ 0, "⊣" ], [ 0, "⊤" ], [ 0, "⊥" ], [ 1, "⊧" ], [ 0, "⊨" ], [ 0, "⊩" ], [ 0, "⊪" ], [ 0, "⊫" ], [ 0, "⊬" ], [ 0, "⊭" ], [ 0, "⊮" ], [ 0, "⊯" ], [ 0, "⊰" ], [ 1, "⊲" ], [ 0, "⊳" ], [ 0, { + v: "⊴", + n: 8402, + o: "⊴⃒" +} ], [ 0, { + v: "⊵", + n: 8402, + o: "⊵⃒" +} ], [ 0, "⊶" ], [ 0, "⊷" ], [ 0, "⊸" ], [ 0, "⊹" ], [ 0, "⊺" ], [ 0, "⊻" ], [ 1, "⊽" ], [ 0, "⊾" ], [ 0, "⊿" ], [ 0, "⋀" ], [ 0, "⋁" ], [ 0, "⋂" ], [ 0, "⋃" ], [ 0, "⋄" ], [ 0, "⋅" ], [ 0, "⋆" ], [ 0, "⋇" ], [ 0, "⋈" ], [ 0, "⋉" ], [ 0, "⋊" ], [ 0, "⋋" ], [ 0, "⋌" ], [ 0, "⋍" ], [ 0, "⋎" ], [ 0, "⋏" ], [ 0, "⋐" ], [ 0, "⋑" ], [ 0, "⋒" ], [ 0, "⋓" ], [ 0, "⋔" ], [ 0, "⋕" ], [ 0, "⋖" ], [ 0, "⋗" ], [ 0, { + v: "⋘", + n: 824, + o: "⋘̸" +} ], [ 0, { + v: "⋙", + n: 824, + o: "⋙̸" +} ], [ 0, { + v: "⋚", + n: 65024, + o: "⋚︀" +} ], [ 0, { + v: "⋛", + n: 65024, + o: "⋛︀" +} ], [ 2, "⋞" ], [ 0, "⋟" ], [ 0, "⋠" ], [ 0, "⋡" ], [ 0, "⋢" ], [ 0, "⋣" ], [ 2, "⋦" ], [ 0, "⋧" ], [ 0, "⋨" ], [ 0, "⋩" ], [ 0, "⋪" ], [ 0, "⋫" ], [ 0, "⋬" ], [ 0, "⋭" ], [ 0, "⋮" ], [ 0, "⋯" ], [ 0, "⋰" ], [ 0, "⋱" ], [ 0, "⋲" ], [ 0, "⋳" ], [ 0, "⋴" ], [ 0, { + v: "⋵", + n: 824, + o: "⋵̸" +} ], [ 0, "⋶" ], [ 0, "⋷" ], [ 1, { + v: "⋹", + n: 824, + o: "⋹̸" +} ], [ 0, "⋺" ], [ 0, "⋻" ], [ 0, "⋼" ], [ 0, "⋽" ], [ 0, "⋾" ], [ 6, "⌅" ], [ 0, "⌆" ], [ 1, "⌈" ], [ 0, "⌉" ], [ 0, "⌊" ], [ 0, "⌋" ], [ 0, "⌌" ], [ 0, "⌍" ], [ 0, "⌎" ], [ 0, "⌏" ], [ 0, "⌐" ], [ 1, "⌒" ], [ 0, "⌓" ], [ 1, "⌕" ], [ 0, "⌖" ], [ 5, "⌜" ], [ 0, "⌝" ], [ 0, "⌞" ], [ 0, "⌟" ], [ 2, "⌢" ], [ 0, "⌣" ], [ 9, "⌭" ], [ 0, "⌮" ], [ 7, "⌶" ], [ 6, "⌽" ], [ 1, "⌿" ], [ 60, "⍼" ], [ 51, "⎰" ], [ 0, "⎱" ], [ 2, "⎴" ], [ 0, "⎵" ], [ 0, "⎶" ], [ 37, "⏜" ], [ 0, "⏝" ], [ 0, "⏞" ], [ 0, "⏟" ], [ 2, "⏢" ], [ 4, "⏧" ], [ 59, "␣" ], [ 164, "Ⓢ" ], [ 55, "─" ], [ 1, "│" ], [ 9, "┌" ], [ 3, "┐" ], [ 3, "└" ], [ 3, "┘" ], [ 3, "├" ], [ 7, "┤" ], [ 7, "┬" ], [ 7, "┴" ], [ 7, "┼" ], [ 19, "═" ], [ 0, "║" ], [ 0, "╒" ], [ 0, "╓" ], [ 0, "╔" ], [ 0, "╕" ], [ 0, "╖" ], [ 0, "╗" ], [ 0, "╘" ], [ 0, "╙" ], [ 0, "╚" ], [ 0, "╛" ], [ 0, "╜" ], [ 0, "╝" ], [ 0, "╞" ], [ 0, "╟" ], [ 0, "╠" ], [ 0, "╡" ], [ 0, "╢" ], [ 0, "╣" ], [ 0, "╤" ], [ 0, "╥" ], [ 0, "╦" ], [ 0, "╧" ], [ 0, "╨" ], [ 0, "╩" ], [ 0, "╪" ], [ 0, "╫" ], [ 0, "╬" ], [ 19, "▀" ], [ 3, "▄" ], [ 3, "█" ], [ 8, "░" ], [ 0, "▒" ], [ 0, "▓" ], [ 13, "□" ], [ 8, "▪" ], [ 0, "▫" ], [ 1, "▭" ], [ 0, "▮" ], [ 2, "▱" ], [ 1, "△" ], [ 0, "▴" ], [ 0, "▵" ], [ 2, "▸" ], [ 0, "▹" ], [ 3, "▽" ], [ 0, "▾" ], [ 0, "▿" ], [ 2, "◂" ], [ 0, "◃" ], [ 6, "◊" ], [ 0, "○" ], [ 32, "◬" ], [ 2, "◯" ], [ 8, "◸" ], [ 0, "◹" ], [ 0, "◺" ], [ 0, "◻" ], [ 0, "◼" ], [ 8, "★" ], [ 0, "☆" ], [ 7, "☎" ], [ 49, "♀" ], [ 1, "♂" ], [ 29, "♠" ], [ 2, "♣" ], [ 1, "♥" ], [ 0, "♦" ], [ 3, "♪" ], [ 2, "♭" ], [ 0, "♮" ], [ 0, "♯" ], [ 163, "✓" ], [ 3, "✗" ], [ 8, "✠" ], [ 21, "✶" ], [ 33, "❘" ], [ 25, "❲" ], [ 0, "❳" ], [ 84, "⟈" ], [ 0, "⟉" ], [ 28, "⟦" ], [ 0, "⟧" ], [ 0, "⟨" ], [ 0, "⟩" ], [ 0, "⟪" ], [ 0, "⟫" ], [ 0, "⟬" ], [ 0, "⟭" ], [ 7, "⟵" ], [ 0, "⟶" ], [ 0, "⟷" ], [ 0, "⟸" ], [ 0, "⟹" ], [ 0, "⟺" ], [ 1, "⟼" ], [ 2, "⟿" ], [ 258, "⤂" ], [ 0, "⤃" ], [ 0, "⤄" ], [ 0, "⤅" ], [ 6, "⤌" ], [ 0, "⤍" ], [ 0, "⤎" ], [ 0, "⤏" ], [ 0, "⤐" ], [ 0, "⤑" ], [ 0, "⤒" ], [ 0, "⤓" ], [ 2, "⤖" ], [ 2, "⤙" ], [ 0, "⤚" ], [ 0, "⤛" ], [ 0, "⤜" ], [ 0, "⤝" ], [ 0, "⤞" ], [ 0, "⤟" ], [ 0, "⤠" ], [ 2, "⤣" ], [ 0, "⤤" ], [ 0, "⤥" ], [ 0, "⤦" ], [ 0, "⤧" ], [ 0, "⤨" ], [ 0, "⤩" ], [ 0, "⤪" ], [ 8, { + v: "⤳", + n: 824, + o: "⤳̸" +} ], [ 1, "⤵" ], [ 0, "⤶" ], [ 0, "⤷" ], [ 0, "⤸" ], [ 0, "⤹" ], [ 2, "⤼" ], [ 0, "⤽" ], [ 7, "⥅" ], [ 2, "⥈" ], [ 0, "⥉" ], [ 0, "⥊" ], [ 0, "⥋" ], [ 2, "⥎" ], [ 0, "⥏" ], [ 0, "⥐" ], [ 0, "⥑" ], [ 0, "⥒" ], [ 0, "⥓" ], [ 0, "⥔" ], [ 0, "⥕" ], [ 0, "⥖" ], [ 0, "⥗" ], [ 0, "⥘" ], [ 0, "⥙" ], [ 0, "⥚" ], [ 0, "⥛" ], [ 0, "⥜" ], [ 0, "⥝" ], [ 0, "⥞" ], [ 0, "⥟" ], [ 0, "⥠" ], [ 0, "⥡" ], [ 0, "⥢" ], [ 0, "⥣" ], [ 0, "⥤" ], [ 0, "⥥" ], [ 0, "⥦" ], [ 0, "⥧" ], [ 0, "⥨" ], [ 0, "⥩" ], [ 0, "⥪" ], [ 0, "⥫" ], [ 0, "⥬" ], [ 0, "⥭" ], [ 0, "⥮" ], [ 0, "⥯" ], [ 0, "⥰" ], [ 0, "⥱" ], [ 0, "⥲" ], [ 0, "⥳" ], [ 0, "⥴" ], [ 0, "⥵" ], [ 0, "⥶" ], [ 1, "⥸" ], [ 0, "⥹" ], [ 1, "⥻" ], [ 0, "⥼" ], [ 0, "⥽" ], [ 0, "⥾" ], [ 0, "⥿" ], [ 5, "⦅" ], [ 0, "⦆" ], [ 4, "⦋" ], [ 0, "⦌" ], [ 0, "⦍" ], [ 0, "⦎" ], [ 0, "⦏" ], [ 0, "⦐" ], [ 0, "⦑" ], [ 0, "⦒" ], [ 0, "⦓" ], [ 0, "⦔" ], [ 0, "⦕" ], [ 0, "⦖" ], [ 3, "⦚" ], [ 1, "⦜" ], [ 0, "⦝" ], [ 6, "⦤" ], [ 0, "⦥" ], [ 0, "⦦" ], [ 0, "⦧" ], [ 0, "⦨" ], [ 0, "⦩" ], [ 0, "⦪" ], [ 0, "⦫" ], [ 0, "⦬" ], [ 0, "⦭" ], [ 0, "⦮" ], [ 0, "⦯" ], [ 0, "⦰" ], [ 0, "⦱" ], [ 0, "⦲" ], [ 0, "⦳" ], [ 0, "⦴" ], [ 0, "⦵" ], [ 0, "⦶" ], [ 0, "⦷" ], [ 1, "⦹" ], [ 1, "⦻" ], [ 0, "⦼" ], [ 1, "⦾" ], [ 0, "⦿" ], [ 0, "⧀" ], [ 0, "⧁" ], [ 0, "⧂" ], [ 0, "⧃" ], [ 0, "⧄" ], [ 0, "⧅" ], [ 3, "⧉" ], [ 3, "⧍" ], [ 0, "⧎" ], [ 0, { + v: "⧏", + n: 824, + o: "⧏̸" +} ], [ 0, { + v: "⧐", + n: 824, + o: "⧐̸" +} ], [ 11, "⧜" ], [ 0, "⧝" ], [ 0, "⧞" ], [ 4, "⧣" ], [ 0, "⧤" ], [ 0, "⧥" ], [ 5, "⧫" ], [ 8, "⧴" ], [ 1, "⧶" ], [ 9, "⨀" ], [ 0, "⨁" ], [ 0, "⨂" ], [ 1, "⨄" ], [ 1, "⨆" ], [ 5, "⨌" ], [ 0, "⨍" ], [ 2, "⨐" ], [ 0, "⨑" ], [ 0, "⨒" ], [ 0, "⨓" ], [ 0, "⨔" ], [ 0, "⨕" ], [ 0, "⨖" ], [ 0, "⨗" ], [ 10, "⨢" ], [ 0, "⨣" ], [ 0, "⨤" ], [ 0, "⨥" ], [ 0, "⨦" ], [ 0, "⨧" ], [ 1, "⨩" ], [ 0, "⨪" ], [ 2, "⨭" ], [ 0, "⨮" ], [ 0, "⨯" ], [ 0, "⨰" ], [ 0, "⨱" ], [ 1, "⨳" ], [ 0, "⨴" ], [ 0, "⨵" ], [ 0, "⨶" ], [ 0, "⨷" ], [ 0, "⨸" ], [ 0, "⨹" ], [ 0, "⨺" ], [ 0, "⨻" ], [ 0, "⨼" ], [ 2, "⨿" ], [ 0, "⩀" ], [ 1, "⩂" ], [ 0, "⩃" ], [ 0, "⩄" ], [ 0, "⩅" ], [ 0, "⩆" ], [ 0, "⩇" ], [ 0, "⩈" ], [ 0, "⩉" ], [ 0, "⩊" ], [ 0, "⩋" ], [ 0, "⩌" ], [ 0, "⩍" ], [ 2, "⩐" ], [ 2, "⩓" ], [ 0, "⩔" ], [ 0, "⩕" ], [ 0, "⩖" ], [ 0, "⩗" ], [ 0, "⩘" ], [ 1, "⩚" ], [ 0, "⩛" ], [ 0, "⩜" ], [ 0, "⩝" ], [ 1, "⩟" ], [ 6, "⩦" ], [ 3, "⩪" ], [ 2, { + v: "⩭", + n: 824, + o: "⩭̸" +} ], [ 0, "⩮" ], [ 0, "⩯" ], [ 0, { + v: "⩰", + n: 824, + o: "⩰̸" +} ], [ 0, "⩱" ], [ 0, "⩲" ], [ 0, "⩳" ], [ 0, "⩴" ], [ 0, "⩵" ], [ 1, "⩷" ], [ 0, "⩸" ], [ 0, "⩹" ], [ 0, "⩺" ], [ 0, "⩻" ], [ 0, "⩼" ], [ 0, { + v: "⩽", + n: 824, + o: "⩽̸" +} ], [ 0, { + v: "⩾", + n: 824, + o: "⩾̸" +} ], [ 0, "⩿" ], [ 0, "⪀" ], [ 0, "⪁" ], [ 0, "⪂" ], [ 0, "⪃" ], [ 0, "⪄" ], [ 0, "⪅" ], [ 0, "⪆" ], [ 0, "⪇" ], [ 0, "⪈" ], [ 0, "⪉" ], [ 0, "⪊" ], [ 0, "⪋" ], [ 0, "⪌" ], [ 0, "⪍" ], [ 0, "⪎" ], [ 0, "⪏" ], [ 0, "⪐" ], [ 0, "⪑" ], [ 0, "⪒" ], [ 0, "⪓" ], [ 0, "⪔" ], [ 0, "⪕" ], [ 0, "⪖" ], [ 0, "⪗" ], [ 0, "⪘" ], [ 0, "⪙" ], [ 0, "⪚" ], [ 2, "⪝" ], [ 0, "⪞" ], [ 0, "⪟" ], [ 0, "⪠" ], [ 0, { + v: "⪡", + n: 824, + o: "⪡̸" +} ], [ 0, { + v: "⪢", + n: 824, + o: "⪢̸" +} ], [ 1, "⪤" ], [ 0, "⪥" ], [ 0, "⪦" ], [ 0, "⪧" ], [ 0, "⪨" ], [ 0, "⪩" ], [ 0, "⪪" ], [ 0, "⪫" ], [ 0, { + v: "⪬", + n: 65024, + o: "⪬︀" +} ], [ 0, { + v: "⪭", + n: 65024, + o: "⪭︀" +} ], [ 0, "⪮" ], [ 0, { + v: "⪯", + n: 824, + o: "⪯̸" +} ], [ 0, { + v: "⪰", + n: 824, + o: "⪰̸" +} ], [ 2, "⪳" ], [ 0, "⪴" ], [ 0, "⪵" ], [ 0, "⪶" ], [ 0, "⪷" ], [ 0, "⪸" ], [ 0, "⪹" ], [ 0, "⪺" ], [ 0, "⪻" ], [ 0, "⪼" ], [ 0, "⪽" ], [ 0, "⪾" ], [ 0, "⪿" ], [ 0, "⫀" ], [ 0, "⫁" ], [ 0, "⫂" ], [ 0, "⫃" ], [ 0, "⫄" ], [ 0, { + v: "⫅", + n: 824, + o: "⫅̸" +} ], [ 0, { + v: "⫆", + n: 824, + o: "⫆̸" +} ], [ 0, "⫇" ], [ 0, "⫈" ], [ 2, { + v: "⫋", + n: 65024, + o: "⫋︀" +} ], [ 0, { + v: "⫌", + n: 65024, + o: "⫌︀" +} ], [ 2, "⫏" ], [ 0, "⫐" ], [ 0, "⫑" ], [ 0, "⫒" ], [ 0, "⫓" ], [ 0, "⫔" ], [ 0, "⫕" ], [ 0, "⫖" ], [ 0, "⫗" ], [ 0, "⫘" ], [ 0, "⫙" ], [ 0, "⫚" ], [ 0, "⫛" ], [ 8, "⫤" ], [ 1, "⫦" ], [ 0, "⫧" ], [ 0, "⫨" ], [ 0, "⫩" ], [ 1, "⫫" ], [ 0, "⫬" ], [ 0, "⫭" ], [ 0, "⫮" ], [ 0, "⫯" ], [ 0, "⫰" ], [ 0, "⫱" ], [ 0, "⫲" ], [ 0, "⫳" ], [ 9, { + v: "⫽", + n: 8421, + o: "⫽⃥" +} ], [ 44343, { + n: new Map(restoreDiff([ [ 56476, "𝒜" ], [ 1, "𝒞" ], [ 0, "𝒟" ], [ 2, "𝒢" ], [ 2, "𝒥" ], [ 0, "𝒦" ], [ 2, "𝒩" ], [ 0, "𝒪" ], [ 0, "𝒫" ], [ 0, "𝒬" ], [ 1, "𝒮" ], [ 0, "𝒯" ], [ 0, "𝒰" ], [ 0, "𝒱" ], [ 0, "𝒲" ], [ 0, "𝒳" ], [ 0, "𝒴" ], [ 0, "𝒵" ], [ 0, "𝒶" ], [ 0, "𝒷" ], [ 0, "𝒸" ], [ 0, "𝒹" ], [ 1, "𝒻" ], [ 1, "𝒽" ], [ 0, "𝒾" ], [ 0, "𝒿" ], [ 0, "𝓀" ], [ 0, "𝓁" ], [ 0, "𝓂" ], [ 0, "𝓃" ], [ 1, "𝓅" ], [ 0, "𝓆" ], [ 0, "𝓇" ], [ 0, "𝓈" ], [ 0, "𝓉" ], [ 0, "𝓊" ], [ 0, "𝓋" ], [ 0, "𝓌" ], [ 0, "𝓍" ], [ 0, "𝓎" ], [ 0, "𝓏" ], [ 52, "𝔄" ], [ 0, "𝔅" ], [ 1, "𝔇" ], [ 0, "𝔈" ], [ 0, "𝔉" ], [ 0, "𝔊" ], [ 2, "𝔍" ], [ 0, "𝔎" ], [ 0, "𝔏" ], [ 0, "𝔐" ], [ 0, "𝔑" ], [ 0, "𝔒" ], [ 0, "𝔓" ], [ 0, "𝔔" ], [ 1, "𝔖" ], [ 0, "𝔗" ], [ 0, "𝔘" ], [ 0, "𝔙" ], [ 0, "𝔚" ], [ 0, "𝔛" ], [ 0, "𝔜" ], [ 1, "𝔞" ], [ 0, "𝔟" ], [ 0, "𝔠" ], [ 0, "𝔡" ], [ 0, "𝔢" ], [ 0, "𝔣" ], [ 0, "𝔤" ], [ 0, "𝔥" ], [ 0, "𝔦" ], [ 0, "𝔧" ], [ 0, "𝔨" ], [ 0, "𝔩" ], [ 0, "𝔪" ], [ 0, "𝔫" ], [ 0, "𝔬" ], [ 0, "𝔭" ], [ 0, "𝔮" ], [ 0, "𝔯" ], [ 0, "𝔰" ], [ 0, "𝔱" ], [ 0, "𝔲" ], [ 0, "𝔳" ], [ 0, "𝔴" ], [ 0, "𝔵" ], [ 0, "𝔶" ], [ 0, "𝔷" ], [ 0, "𝔸" ], [ 0, "𝔹" ], [ 1, "𝔻" ], [ 0, "𝔼" ], [ 0, "𝔽" ], [ 0, "𝔾" ], [ 1, "𝕀" ], [ 0, "𝕁" ], [ 0, "𝕂" ], [ 0, "𝕃" ], [ 0, "𝕄" ], [ 1, "𝕆" ], [ 3, "𝕊" ], [ 0, "𝕋" ], [ 0, "𝕌" ], [ 0, "𝕍" ], [ 0, "𝕎" ], [ 0, "𝕏" ], [ 0, "𝕐" ], [ 1, "𝕒" ], [ 0, "𝕓" ], [ 0, "𝕔" ], [ 0, "𝕕" ], [ 0, "𝕖" ], [ 0, "𝕗" ], [ 0, "𝕘" ], [ 0, "𝕙" ], [ 0, "𝕚" ], [ 0, "𝕛" ], [ 0, "𝕜" ], [ 0, "𝕝" ], [ 0, "𝕞" ], [ 0, "𝕟" ], [ 0, "𝕠" ], [ 0, "𝕡" ], [ 0, "𝕢" ], [ 0, "𝕣" ], [ 0, "𝕤" ], [ 0, "𝕥" ], [ 0, "𝕦" ], [ 0, "𝕧" ], [ 0, "𝕨" ], [ 0, "𝕩" ], [ 0, "𝕪" ], [ 0, "𝕫" ] ])) +} ], [ 8906, "ff" ], [ 0, "fi" ], [ 0, "fl" ], [ 0, "ffi" ], [ 0, "ffl" ] ])); + +var _escape = {}; + +!function(exports) { + Object.defineProperty(exports, "__esModule", { + value: !0 + }), exports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.getCodePoint = exports.xmlReplacer = void 0, + exports.xmlReplacer = /["&'<>$\x80-\uFFFF]/g; + var xmlCodeMap = new Map([ [ 34, """ ], [ 38, "&" ], [ 39, "'" ], [ 60, "<" ], [ 62, ">" ] ]); + function encodeXML(str) { + for (var match, ret = "", lastIdx = 0; null !== (match = exports.xmlReplacer.exec(str)); ) { + var i = match.index, char = str.charCodeAt(i), next = xmlCodeMap.get(char); + void 0 !== next ? (ret += str.substring(lastIdx, i) + next, lastIdx = i + 1) : (ret += "".concat(str.substring(lastIdx, i), "&#x").concat((0, + exports.getCodePoint)(str, i).toString(16), ";"), lastIdx = exports.xmlReplacer.lastIndex += Number(0xd800 == (0xfc00 & char))); + } + return ret + str.substr(lastIdx); + } + function getEscaper(regex, map) { + return function(data) { + for (var match, lastIdx = 0, result = ""; match = regex.exec(data); ) lastIdx !== match.index && (result += data.substring(lastIdx, match.index)), + result += map.get(match[0].charCodeAt(0)), lastIdx = match.index + 1; + return result + data.substring(lastIdx); + }; + } + exports.getCodePoint = null != String.prototype.codePointAt ? function(str, index) { + return str.codePointAt(index); + } : function(c, index) { + return 0xd800 == (0xfc00 & c.charCodeAt(index)) ? 0x400 * (c.charCodeAt(index) - 0xd800) + c.charCodeAt(index + 1) - 0xdc00 + 0x10000 : c.charCodeAt(index); + }, exports.encodeXML = encodeXML, exports.escape = encodeXML, exports.escapeUTF8 = getEscaper(/[&<>'"]/g, xmlCodeMap), + exports.escapeAttribute = getEscaper(/["&\u00A0]/g, new Map([ [ 34, """ ], [ 38, "&" ], [ 160, " " ] ])), + exports.escapeText = getEscaper(/[&<>\u00A0]/g, new Map([ [ 38, "&" ], [ 60, "<" ], [ 62, ">" ], [ 160, " " ] ])); +}(_escape); + +var __importDefault$4 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { + "default": mod + }; +}; + +Object.defineProperty(encode$6, "__esModule", { + value: !0 +}), encode$6.encodeNonAsciiHTML = encode$6.encodeHTML = void 0; + +var encode_html_js_1 = __importDefault$4(encodeHtml), escape_js_1 = _escape, htmlReplacer = /[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g; + +function encodeHTMLTrieRe(regExp, str) { + for (var match, ret = "", lastIdx = 0; null !== (match = regExp.exec(str)); ) { + var i = match.index; + ret += str.substring(lastIdx, i); + var char = str.charCodeAt(i), next = encode_html_js_1.default.get(char); + if ("object" == typeof next) { + if (i + 1 < str.length) { + var nextChar = str.charCodeAt(i + 1), value = "number" == typeof next.n ? next.n === nextChar ? next.o : void 0 : next.n.get(nextChar); + if (void 0 !== value) { + ret += value, lastIdx = regExp.lastIndex += 1; + continue; + } + } + next = next.v; + } + if (void 0 !== next) ret += next, lastIdx = i + 1; else { + var cp = (0, escape_js_1.getCodePoint)(str, i); + ret += "&#x".concat(cp.toString(16), ";"), lastIdx = regExp.lastIndex += Number(cp !== char); + } + } + return ret + str.substr(lastIdx); +} + +encode$6.encodeHTML = function(data) { + return encodeHTMLTrieRe(htmlReplacer, data); +}, encode$6.encodeNonAsciiHTML = function(data) { + return encodeHTMLTrieRe(escape_js_1.xmlReplacer, data); +}, function(exports) { + Object.defineProperty(exports, "__esModule", { + value: !0 + }), exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLAttribute = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.DecodingMode = exports.EntityDecoder = exports.encodeHTML5 = exports.encodeHTML4 = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = exports.EncodingMode = exports.EntityLevel = void 0; + var EntityLevel, EncodingMode, decode_js_1 = decode$6, encode_js_1 = encode$6, escape_js_1 = _escape; + function decode(data, options) { + if (void 0 === options && (options = EntityLevel.XML), ("number" == typeof options ? options : options.level) === EntityLevel.HTML) { + var mode = "object" == typeof options ? options.mode : void 0; + return (0, decode_js_1.decodeHTML)(data, mode); + } + return (0, decode_js_1.decodeXML)(data); + } + !function(EntityLevel) { + EntityLevel[EntityLevel.XML = 0] = "XML", EntityLevel[EntityLevel.HTML = 1] = "HTML"; + }(EntityLevel = exports.EntityLevel || (exports.EntityLevel = {})), function(EncodingMode) { + EncodingMode[EncodingMode.UTF8 = 0] = "UTF8", EncodingMode[EncodingMode.ASCII = 1] = "ASCII", + EncodingMode[EncodingMode.Extensive = 2] = "Extensive", EncodingMode[EncodingMode.Attribute = 3] = "Attribute", + EncodingMode[EncodingMode.Text = 4] = "Text"; + }(EncodingMode = exports.EncodingMode || (exports.EncodingMode = {})), exports.decode = decode, + exports.decodeStrict = function(data, options) { + var _a; + void 0 === options && (options = EntityLevel.XML); + var opts = "number" == typeof options ? { + level: options + } : options; + return null !== (_a = opts.mode) && void 0 !== _a || (opts.mode = decode_js_1.DecodingMode.Strict), + decode(data, opts); + }, exports.encode = function(data, options) { + void 0 === options && (options = EntityLevel.XML); + var opts = "number" == typeof options ? { + level: options + } : options; + return opts.mode === EncodingMode.UTF8 ? (0, escape_js_1.escapeUTF8)(data) : opts.mode === EncodingMode.Attribute ? (0, + escape_js_1.escapeAttribute)(data) : opts.mode === EncodingMode.Text ? (0, escape_js_1.escapeText)(data) : opts.level === EntityLevel.HTML ? opts.mode === EncodingMode.ASCII ? (0, + encode_js_1.encodeNonAsciiHTML)(data) : (0, encode_js_1.encodeHTML)(data) : (0, + escape_js_1.encodeXML)(data); + }; + var escape_js_2 = _escape; + Object.defineProperty(exports, "encodeXML", { + enumerable: !0, + get: function() { + return escape_js_2.encodeXML; + } + }), Object.defineProperty(exports, "escape", { + enumerable: !0, + get: function() { + return escape_js_2.escape; + } + }), Object.defineProperty(exports, "escapeUTF8", { + enumerable: !0, + get: function() { + return escape_js_2.escapeUTF8; + } + }), Object.defineProperty(exports, "escapeAttribute", { + enumerable: !0, + get: function() { + return escape_js_2.escapeAttribute; + } + }), Object.defineProperty(exports, "escapeText", { + enumerable: !0, + get: function() { + return escape_js_2.escapeText; + } + }); + var encode_js_2 = encode$6; + Object.defineProperty(exports, "encodeHTML", { + enumerable: !0, + get: function() { + return encode_js_2.encodeHTML; + } + }), Object.defineProperty(exports, "encodeNonAsciiHTML", { + enumerable: !0, + get: function() { + return encode_js_2.encodeNonAsciiHTML; + } + }), Object.defineProperty(exports, "encodeHTML4", { + enumerable: !0, + get: function() { + return encode_js_2.encodeHTML; + } + }), Object.defineProperty(exports, "encodeHTML5", { + enumerable: !0, + get: function() { + return encode_js_2.encodeHTML; + } + }); + var decode_js_2 = decode$6; + Object.defineProperty(exports, "EntityDecoder", { + enumerable: !0, + get: function() { + return decode_js_2.EntityDecoder; + } + }), Object.defineProperty(exports, "DecodingMode", { + enumerable: !0, + get: function() { + return decode_js_2.DecodingMode; + } + }), Object.defineProperty(exports, "decodeXML", { + enumerable: !0, + get: function() { + return decode_js_2.decodeXML; + } + }), Object.defineProperty(exports, "decodeHTML", { + enumerable: !0, + get: function() { + return decode_js_2.decodeHTML; + } + }), Object.defineProperty(exports, "decodeHTMLStrict", { + enumerable: !0, + get: function() { + return decode_js_2.decodeHTMLStrict; + } + }), Object.defineProperty(exports, "decodeHTMLAttribute", { + enumerable: !0, + get: function() { + return decode_js_2.decodeHTMLAttribute; + } + }), Object.defineProperty(exports, "decodeHTML4", { + enumerable: !0, + get: function() { + return decode_js_2.decodeHTML; + } + }), Object.defineProperty(exports, "decodeHTML5", { + enumerable: !0, + get: function() { + return decode_js_2.decodeHTML; + } + }), Object.defineProperty(exports, "decodeHTML4Strict", { + enumerable: !0, + get: function() { + return decode_js_2.decodeHTMLStrict; + } + }), Object.defineProperty(exports, "decodeHTML5Strict", { + enumerable: !0, + get: function() { + return decode_js_2.decodeHTMLStrict; + } + }), Object.defineProperty(exports, "decodeXMLStrict", { + enumerable: !0, + get: function() { + return decode_js_2.decodeXML; + } + }); +}(lib$1); + +var foreignNames = {}; + +Object.defineProperty(foreignNames, "__esModule", { + value: !0 +}), foreignNames.attributeNames = foreignNames.elementNames = void 0, foreignNames.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((function(val) { + return [ val.toLowerCase(), val ]; +}))), foreignNames.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((function(val) { + return [ val.toLowerCase(), val ]; +}))); + +var __assign = commonjsGlobal && commonjsGlobal.__assign || function() { + return __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) for (var p in s = arguments[i]) Object.prototype.hasOwnProperty.call(s, p) && (t[p] = s[p]); + return t; + }, __assign.apply(this, arguments); +}, __createBinding$1 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) { + void 0 === k2 && (k2 = k); + var desc = Object.getOwnPropertyDescriptor(m, k); + desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = { + enumerable: !0, + get: function() { + return m[k]; + } + }), Object.defineProperty(o, k2, desc); +} : function(o, m, k, k2) { + void 0 === k2 && (k2 = k), o[k2] = m[k]; +}), __setModuleDefault$1 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { + enumerable: !0, + value: v + }); +} : function(o, v) { + o.default = v; +}), __importStar$1 = commonjsGlobal && commonjsGlobal.__importStar || function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (null != mod) for (var k in mod) "default" !== k && Object.prototype.hasOwnProperty.call(mod, k) && __createBinding$1(result, mod, k); + return __setModuleDefault$1(result, mod), result; +}; + +Object.defineProperty(lib$2, "__esModule", { + value: !0 +}), lib$2.render = void 0; + +var ElementType = __importStar$1(lib$3), entities_1 = lib$1, foreignNames_js_1 = foreignNames, unencodedElements = new Set([ "style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript" ]); + +function replaceQuotes(value) { + return value.replace(/"/g, """); +} + +var singleTag = new Set([ "area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "meta", "param", "source", "track", "wbr" ]); + +function render(node, options) { + void 0 === options && (options = {}); + for (var nodes = ("length" in node ? node : [ node ]), output = "", i = 0; i < nodes.length; i++) output += renderNode(nodes[i], options); + return output; +} + +function renderNode(node, options) { + switch (node.type) { + case ElementType.Root: + return render(node.children, options); + + case ElementType.Doctype: + case ElementType.Directive: + return "<".concat(node.data, ">"); + + case ElementType.Comment: + return function(elem) { + return "\x3c!--".concat(elem.data, "--\x3e"); + }(node); + + case ElementType.CDATA: + return function(elem) { + return ""); + }(node); + + case ElementType.Script: + case ElementType.Style: + case ElementType.Tag: + return function(elem, opts) { + var _a; + "foreign" === opts.xmlMode && (elem.name = null !== (_a = foreignNames_js_1.elementNames.get(elem.name)) && void 0 !== _a ? _a : elem.name, + elem.parent && foreignModeIntegrationPoints.has(elem.parent.name) && (opts = __assign(__assign({}, opts), { + xmlMode: !1 + }))); + !opts.xmlMode && foreignElements.has(elem.name) && (opts = __assign(__assign({}, opts), { + xmlMode: "foreign" + })); + var tag = "<".concat(elem.name), attribs = function(attributes, opts) { + var _a; + if (attributes) { + var encode = !1 === (null !== (_a = opts.encodeEntities) && void 0 !== _a ? _a : opts.decodeEntities) ? replaceQuotes : opts.xmlMode || "utf8" !== opts.encodeEntities ? entities_1.encodeXML : entities_1.escapeAttribute; + return Object.keys(attributes).map((function(key) { + var _a, _b, value = null !== (_a = attributes[key]) && void 0 !== _a ? _a : ""; + return "foreign" === opts.xmlMode && (key = null !== (_b = foreignNames_js_1.attributeNames.get(key)) && void 0 !== _b ? _b : key), + opts.emptyAttrs || opts.xmlMode || "" !== value ? "".concat(key, '="').concat(encode(value), '"') : key; + })).join(" "); + } + }(elem.attribs, opts); + attribs && (tag += " ".concat(attribs)); + 0 === elem.children.length && (opts.xmlMode ? !1 !== opts.selfClosingTags : opts.selfClosingTags && singleTag.has(elem.name)) ? (opts.xmlMode || (tag += " "), + tag += "/>") : (tag += ">", elem.children.length > 0 && (tag += render(elem.children, opts)), + !opts.xmlMode && singleTag.has(elem.name) || (tag += ""))); + return tag; + }(node, options); + + case ElementType.Text: + return function(elem, opts) { + var _a, data = elem.data || ""; + !1 === (null !== (_a = opts.encodeEntities) && void 0 !== _a ? _a : opts.decodeEntities) || !opts.xmlMode && elem.parent && unencodedElements.has(elem.parent.name) || (data = opts.xmlMode || "utf8" !== opts.encodeEntities ? (0, + entities_1.encodeXML)(data) : (0, entities_1.escapeText)(data)); + return data; + }(node, options); + } +} + +lib$2.render = render, lib$2.default = render; + +var foreignModeIntegrationPoints = new Set([ "mi", "mo", "mn", "ms", "mtext", "annotation-xml", "foreignObject", "desc", "title" ]), foreignElements = new Set([ "svg", "math" ]); + +var __importDefault$3 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { + "default": mod + }; +}; + +Object.defineProperty(stringify$1, "__esModule", { + value: !0 +}), stringify$1.innerText = stringify$1.textContent = stringify$1.getText = stringify$1.getInnerHTML = stringify$1.getOuterHTML = void 0; + +var domhandler_1$3 = lib$4, dom_serializer_1 = __importDefault$3(lib$2), domelementtype_1 = lib$3; + +function getOuterHTML(node, options) { + return (0, dom_serializer_1.default)(node, options); +} + +stringify$1.getOuterHTML = getOuterHTML, stringify$1.getInnerHTML = function(node, options) { + return (0, domhandler_1$3.hasChildren)(node) ? node.children.map((function(node) { + return getOuterHTML(node, options); + })).join("") : ""; +}, stringify$1.getText = function getText$1(node) { + return Array.isArray(node) ? node.map(getText$1).join("") : (0, domhandler_1$3.isTag)(node) ? "br" === node.name ? "\n" : getText$1(node.children) : (0, + domhandler_1$3.isCDATA)(node) ? getText$1(node.children) : (0, domhandler_1$3.isText)(node) ? node.data : ""; +}, stringify$1.textContent = function textContent(node) { + return Array.isArray(node) ? node.map(textContent).join("") : (0, domhandler_1$3.hasChildren)(node) && !(0, + domhandler_1$3.isComment)(node) ? textContent(node.children) : (0, domhandler_1$3.isText)(node) ? node.data : ""; +}, stringify$1.innerText = function innerText(node) { + return Array.isArray(node) ? node.map(innerText).join("") : (0, domhandler_1$3.hasChildren)(node) && (node.type === domelementtype_1.ElementType.Tag || (0, + domhandler_1$3.isCDATA)(node)) ? innerText(node.children) : (0, domhandler_1$3.isText)(node) ? node.data : ""; +}; + +var traversal = {}; + +Object.defineProperty(traversal, "__esModule", { + value: !0 +}), traversal.prevElementSibling = traversal.nextElementSibling = traversal.getName = traversal.hasAttrib = traversal.getAttributeValue = traversal.getSiblings = traversal.getParent = traversal.getChildren = void 0; + +var domhandler_1$2 = lib$4; + +function getChildren$1(elem) { + return (0, domhandler_1$2.hasChildren)(elem) ? elem.children : []; +} + +function getParent$1(elem) { + return elem.parent || null; +} + +traversal.getChildren = getChildren$1, traversal.getParent = getParent$1, traversal.getSiblings = function(elem) { + var parent = getParent$1(elem); + if (null != parent) return getChildren$1(parent); + for (var siblings = [ elem ], prev = elem.prev, next = elem.next; null != prev; ) siblings.unshift(prev), + prev = prev.prev; + for (;null != next; ) siblings.push(next), next = next.next; + return siblings; +}, traversal.getAttributeValue = function(elem, name) { + var _a; + return null === (_a = elem.attribs) || void 0 === _a ? void 0 : _a[name]; +}, traversal.hasAttrib = function(elem, name) { + return null != elem.attribs && Object.prototype.hasOwnProperty.call(elem.attribs, name) && null != elem.attribs[name]; +}, traversal.getName = function(elem) { + return elem.name; +}, traversal.nextElementSibling = function(elem) { + for (var next = elem.next; null !== next && !(0, domhandler_1$2.isTag)(next); ) next = next.next; + return next; +}, traversal.prevElementSibling = function(elem) { + for (var prev = elem.prev; null !== prev && !(0, domhandler_1$2.isTag)(prev); ) prev = prev.prev; + return prev; +}; + +var manipulation = {}; + +function removeElement(elem) { + if (elem.prev && (elem.prev.next = elem.next), elem.next && (elem.next.prev = elem.prev), + elem.parent) { + var childs = elem.parent.children, childsIndex = childs.lastIndexOf(elem); + childsIndex >= 0 && childs.splice(childsIndex, 1); + } + elem.next = null, elem.prev = null, elem.parent = null; +} + +Object.defineProperty(manipulation, "__esModule", { + value: !0 +}), manipulation.prepend = manipulation.prependChild = manipulation.append = manipulation.appendChild = manipulation.replaceElement = manipulation.removeElement = void 0, +manipulation.removeElement = removeElement, manipulation.replaceElement = function(elem, replacement) { + var prev = replacement.prev = elem.prev; + prev && (prev.next = replacement); + var next = replacement.next = elem.next; + next && (next.prev = replacement); + var parent = replacement.parent = elem.parent; + if (parent) { + var childs = parent.children; + childs[childs.lastIndexOf(elem)] = replacement, elem.parent = null; + } +}, manipulation.appendChild = function(parent, child) { + if (removeElement(child), child.next = null, child.parent = parent, parent.children.push(child) > 1) { + var sibling = parent.children[parent.children.length - 2]; + sibling.next = child, child.prev = sibling; + } else child.prev = null; +}, manipulation.append = function(elem, next) { + removeElement(next); + var parent = elem.parent, currNext = elem.next; + if (next.next = currNext, next.prev = elem, elem.next = next, next.parent = parent, + currNext) { + if (currNext.prev = next, parent) { + var childs = parent.children; + childs.splice(childs.lastIndexOf(currNext), 0, next); + } + } else parent && parent.children.push(next); +}, manipulation.prependChild = function(parent, child) { + if (removeElement(child), child.parent = parent, child.prev = null, 1 !== parent.children.unshift(child)) { + var sibling = parent.children[1]; + sibling.prev = child, child.next = sibling; + } else child.next = null; +}, manipulation.prepend = function(elem, prev) { + removeElement(prev); + var parent = elem.parent; + if (parent) { + var childs = parent.children; + childs.splice(childs.indexOf(elem), 0, prev); + } + elem.prev && (elem.prev.next = prev), prev.parent = parent, prev.prev = elem.prev, + prev.next = elem, elem.prev = prev; +}; + +var querying = {}; + +Object.defineProperty(querying, "__esModule", { + value: !0 +}), querying.findAll = querying.existsOne = querying.findOne = querying.findOneChild = querying.find = querying.filter = void 0; + +var domhandler_1$1 = lib$4; + +function find$3(test, nodes, recurse, limit) { + for (var result = [], nodeStack = [ nodes ], indexStack = [ 0 ]; ;) if (indexStack[0] >= nodeStack[0].length) { + if (1 === indexStack.length) return result; + nodeStack.shift(), indexStack.shift(); + } else { + var elem = nodeStack[0][indexStack[0]++]; + if (test(elem) && (result.push(elem), --limit <= 0)) return result; + recurse && (0, domhandler_1$1.hasChildren)(elem) && elem.children.length > 0 && (indexStack.unshift(0), + nodeStack.unshift(elem.children)); + } +} + +querying.filter = function(test, node, recurse, limit) { + return void 0 === recurse && (recurse = !0), void 0 === limit && (limit = 1 / 0), + find$3(test, Array.isArray(node) ? node : [ node ], recurse, limit); +}, querying.find = find$3, querying.findOneChild = function(test, nodes) { + return nodes.find(test); +}, querying.findOne = function findOne$1(test, nodes, recurse) { + void 0 === recurse && (recurse = !0); + for (var elem = null, i = 0; i < nodes.length && !elem; i++) { + var node = nodes[i]; + (0, domhandler_1$1.isTag)(node) && (test(node) ? elem = node : recurse && node.children.length > 0 && (elem = findOne$1(test, node.children, !0))); + } + return elem; +}, querying.existsOne = function existsOne$1(test, nodes) { + return nodes.some((function(checked) { + return (0, domhandler_1$1.isTag)(checked) && (test(checked) || existsOne$1(test, checked.children)); + })); +}, querying.findAll = function(test, nodes) { + for (var result = [], nodeStack = [ nodes ], indexStack = [ 0 ]; ;) if (indexStack[0] >= nodeStack[0].length) { + if (1 === nodeStack.length) return result; + nodeStack.shift(), indexStack.shift(); + } else { + var elem = nodeStack[0][indexStack[0]++]; + (0, domhandler_1$1.isTag)(elem) && (test(elem) && result.push(elem), elem.children.length > 0 && (indexStack.unshift(0), + nodeStack.unshift(elem.children))); + } +}; + +var legacy = {}; + +Object.defineProperty(legacy, "__esModule", { + value: !0 +}), legacy.getElementsByTagType = legacy.getElementsByTagName = legacy.getElementById = legacy.getElements = legacy.testElement = void 0; + +var domhandler_1 = lib$4, querying_js_1 = querying, Checks = { + tag_name: function(name) { + return "function" == typeof name ? function(elem) { + return (0, domhandler_1.isTag)(elem) && name(elem.name); + } : "*" === name ? domhandler_1.isTag : function(elem) { + return (0, domhandler_1.isTag)(elem) && elem.name === name; + }; + }, + tag_type: function(type) { + return "function" == typeof type ? function(elem) { + return type(elem.type); + } : function(elem) { + return elem.type === type; + }; + }, + tag_contains: function(data) { + return "function" == typeof data ? function(elem) { + return (0, domhandler_1.isText)(elem) && data(elem.data); + } : function(elem) { + return (0, domhandler_1.isText)(elem) && elem.data === data; + }; + } +}; + +function getAttribCheck(attrib, value) { + return "function" == typeof value ? function(elem) { + return (0, domhandler_1.isTag)(elem) && value(elem.attribs[attrib]); + } : function(elem) { + return (0, domhandler_1.isTag)(elem) && elem.attribs[attrib] === value; + }; +} + +function combineFuncs(a, b) { + return function(elem) { + return a(elem) || b(elem); + }; +} + +function compileTest(options) { + var funcs = Object.keys(options).map((function(key) { + var value = options[key]; + return Object.prototype.hasOwnProperty.call(Checks, key) ? Checks[key](value) : getAttribCheck(key, value); + })); + return 0 === funcs.length ? null : funcs.reduce(combineFuncs); +} + +legacy.testElement = function(options, node) { + var test = compileTest(options); + return !test || test(node); +}, legacy.getElements = function(options, nodes, recurse, limit) { + void 0 === limit && (limit = 1 / 0); + var test = compileTest(options); + return test ? (0, querying_js_1.filter)(test, nodes, recurse, limit) : []; +}, legacy.getElementById = function(id, nodes, recurse) { + return void 0 === recurse && (recurse = !0), Array.isArray(nodes) || (nodes = [ nodes ]), + (0, querying_js_1.findOne)(getAttribCheck("id", id), nodes, recurse); +}, legacy.getElementsByTagName = function(tagName, nodes, recurse, limit) { + return void 0 === recurse && (recurse = !0), void 0 === limit && (limit = 1 / 0), + (0, querying_js_1.filter)(Checks.tag_name(tagName), nodes, recurse, limit); +}, legacy.getElementsByTagType = function(type, nodes, recurse, limit) { + return void 0 === recurse && (recurse = !0), void 0 === limit && (limit = 1 / 0), + (0, querying_js_1.filter)(Checks.tag_type(type), nodes, recurse, limit); +}; + +var helpers = {}; + +!function(exports) { + Object.defineProperty(exports, "__esModule", { + value: !0 + }), exports.uniqueSort = exports.compareDocumentPosition = exports.DocumentPosition = exports.removeSubsets = void 0; + var DocumentPosition, domhandler_1 = lib$4; + function compareDocumentPosition(nodeA, nodeB) { + var aParents = [], bParents = []; + if (nodeA === nodeB) return 0; + for (var current = (0, domhandler_1.hasChildren)(nodeA) ? nodeA : nodeA.parent; current; ) aParents.unshift(current), + current = current.parent; + for (current = (0, domhandler_1.hasChildren)(nodeB) ? nodeB : nodeB.parent; current; ) bParents.unshift(current), + current = current.parent; + for (var maxIdx = Math.min(aParents.length, bParents.length), idx = 0; idx < maxIdx && aParents[idx] === bParents[idx]; ) idx++; + if (0 === idx) return DocumentPosition.DISCONNECTED; + var sharedParent = aParents[idx - 1], siblings = sharedParent.children, aSibling = aParents[idx], bSibling = bParents[idx]; + return siblings.indexOf(aSibling) > siblings.indexOf(bSibling) ? sharedParent === nodeB ? DocumentPosition.FOLLOWING | DocumentPosition.CONTAINED_BY : DocumentPosition.FOLLOWING : sharedParent === nodeA ? DocumentPosition.PRECEDING | DocumentPosition.CONTAINS : DocumentPosition.PRECEDING; + } + exports.removeSubsets = function(nodes) { + for (var idx = nodes.length; --idx >= 0; ) { + var node = nodes[idx]; + if (idx > 0 && nodes.lastIndexOf(node, idx - 1) >= 0) nodes.splice(idx, 1); else for (var ancestor = node.parent; ancestor; ancestor = ancestor.parent) if (nodes.includes(ancestor)) { + nodes.splice(idx, 1); + break; + } + } + return nodes; + }, 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 = exports.DocumentPosition || (exports.DocumentPosition = {})), + exports.compareDocumentPosition = compareDocumentPosition, exports.uniqueSort = function(nodes) { + return nodes = nodes.filter((function(node, i, arr) { + return !arr.includes(node, i + 1); + })), nodes.sort((function(a, b) { + var relative = compareDocumentPosition(a, b); + return relative & DocumentPosition.PRECEDING ? -1 : relative & DocumentPosition.FOLLOWING ? 1 : 0; + })), nodes; + }; +}(helpers); + +var feeds = {}; + +Object.defineProperty(feeds, "__esModule", { + value: !0 +}), feeds.getFeed = void 0; + +var stringify_js_1 = stringify$1, legacy_js_1 = legacy; + +feeds.getFeed = function(doc) { + var feedRoot = getOneElement(isValidFeed, doc); + return feedRoot ? "feed" === feedRoot.name ? function(feedRoot) { + var _a, childs = feedRoot.children, feed = { + type: "atom", + items: (0, legacy_js_1.getElementsByTagName)("entry", childs).map((function(item) { + var _a, children = item.children, entry = { + media: getMediaElements(children) + }; + addConditionally(entry, "id", "id", children), addConditionally(entry, "title", "title", children); + var href = null === (_a = getOneElement("link", children)) || void 0 === _a ? void 0 : _a.attribs.href; + href && (entry.link = href); + var description = fetch("summary", children) || fetch("content", children); + description && (entry.description = description); + var pubDate = fetch("updated", children); + return pubDate && (entry.pubDate = new Date(pubDate)), entry; + })) + }; + addConditionally(feed, "id", "id", childs), addConditionally(feed, "title", "title", childs); + var href = null === (_a = getOneElement("link", childs)) || void 0 === _a ? void 0 : _a.attribs.href; + href && (feed.link = href); + addConditionally(feed, "description", "subtitle", childs); + var updated = fetch("updated", childs); + updated && (feed.updated = new Date(updated)); + return addConditionally(feed, "author", "email", childs, !0), feed; + }(feedRoot) : function(feedRoot) { + var _a, _b, childs = null !== (_b = null === (_a = getOneElement("channel", feedRoot.children)) || void 0 === _a ? void 0 : _a.children) && void 0 !== _b ? _b : [], feed = { + type: feedRoot.name.substr(0, 3), + id: "", + items: (0, legacy_js_1.getElementsByTagName)("item", feedRoot.children).map((function(item) { + var children = item.children, entry = { + media: getMediaElements(children) + }; + addConditionally(entry, "id", "guid", children), addConditionally(entry, "title", "title", children), + addConditionally(entry, "link", "link", children), addConditionally(entry, "description", "description", children); + var pubDate = fetch("pubDate", children) || fetch("dc:date", children); + return pubDate && (entry.pubDate = new Date(pubDate)), entry; + })) + }; + addConditionally(feed, "title", "title", childs), addConditionally(feed, "link", "link", childs), + addConditionally(feed, "description", "description", childs); + var updated = fetch("lastBuildDate", childs); + updated && (feed.updated = new Date(updated)); + return addConditionally(feed, "author", "managingEditor", childs, !0), feed; + }(feedRoot) : null; +}; + +var MEDIA_KEYS_STRING = [ "url", "type", "lang" ], MEDIA_KEYS_INT = [ "fileSize", "bitrate", "framerate", "samplingrate", "channels", "duration", "height", "width" ]; + +function getMediaElements(where) { + return (0, legacy_js_1.getElementsByTagName)("media:content", where).map((function(elem) { + for (var attribs = elem.attribs, media = { + medium: attribs.medium, + isDefault: !!attribs.isDefault + }, _i = 0, MEDIA_KEYS_STRING_1 = MEDIA_KEYS_STRING; _i < MEDIA_KEYS_STRING_1.length; _i++) { + attribs[attrib = MEDIA_KEYS_STRING_1[_i]] && (media[attrib] = attribs[attrib]); + } + for (var _a = 0, MEDIA_KEYS_INT_1 = MEDIA_KEYS_INT; _a < MEDIA_KEYS_INT_1.length; _a++) { + var attrib; + attribs[attrib = MEDIA_KEYS_INT_1[_a]] && (media[attrib] = parseInt(attribs[attrib], 10)); + } + return attribs.expression && (media.expression = attribs.expression), media; + })); +} + +function getOneElement(tagName, node) { + return (0, legacy_js_1.getElementsByTagName)(tagName, node, !0, 1)[0]; +} + +function fetch(tagName, where, recurse) { + return void 0 === recurse && (recurse = !1), (0, stringify_js_1.textContent)((0, + legacy_js_1.getElementsByTagName)(tagName, where, recurse, 1)).trim(); +} + +function addConditionally(obj, prop, tagName, where, recurse) { + void 0 === recurse && (recurse = !1); + var val = fetch(tagName, where, recurse); + val && (obj[prop] = val); +} + +function isValidFeed(value) { + return "rss" === value || "feed" === value || "rdf:RDF" === value; +} + +!function(exports) { + var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) { + void 0 === k2 && (k2 = k); + var desc = Object.getOwnPropertyDescriptor(m, k); + desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = { + enumerable: !0, + get: function() { + return m[k]; + } + }), Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + void 0 === k2 && (k2 = k), o[k2] = m[k]; + }), __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports) { + for (var p in m) "default" === p || Object.prototype.hasOwnProperty.call(exports, p) || __createBinding(exports, m, p); + }; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), exports.hasChildren = exports.isDocument = exports.isComment = exports.isText = exports.isCDATA = exports.isTag = void 0, + __exportStar(stringify$1, exports), __exportStar(traversal, exports), __exportStar(manipulation, exports), + __exportStar(querying, exports), __exportStar(legacy, exports), __exportStar(helpers, exports), + __exportStar(feeds, exports); + var domhandler_1 = lib$4; + Object.defineProperty(exports, "isTag", { + enumerable: !0, + get: function() { + return domhandler_1.isTag; + } + }), Object.defineProperty(exports, "isCDATA", { + enumerable: !0, + get: function() { + return domhandler_1.isCDATA; + } + }), Object.defineProperty(exports, "isText", { + enumerable: !0, + get: function() { + return domhandler_1.isText; + } + }), Object.defineProperty(exports, "isComment", { + enumerable: !0, + get: function() { + return domhandler_1.isComment; + } + }), Object.defineProperty(exports, "isDocument", { + enumerable: !0, + get: function() { + return domhandler_1.isDocument; + } + }), Object.defineProperty(exports, "hasChildren", { + enumerable: !0, + get: function() { + return domhandler_1.hasChildren; + } + }); +}(lib$5); + +var SelectorType, boolbase = { + trueFunc: function() { + return !0; + }, + falseFunc: function() { + return !1; + } +}, compile$3 = {}; + +!function(SelectorType) { + SelectorType.Attribute = "attribute", SelectorType.Pseudo = "pseudo", SelectorType.PseudoElement = "pseudo-element", + SelectorType.Tag = "tag", SelectorType.Universal = "universal", SelectorType.Adjacent = "adjacent", + SelectorType.Child = "child", SelectorType.Descendant = "descendant", SelectorType.Parent = "parent", + SelectorType.Sibling = "sibling", SelectorType.ColumnCombinator = "column-combinator"; +}(SelectorType || (SelectorType = {})); + +var AttributeAction; + +!function(AttributeAction) { + AttributeAction.Any = "any", AttributeAction.Element = "element", AttributeAction.End = "end", + AttributeAction.Equals = "equals", AttributeAction.Exists = "exists", AttributeAction.Hyphen = "hyphen", + AttributeAction.Not = "not", AttributeAction.Start = "start"; +}(AttributeAction || (AttributeAction = {})); + +const reName = /^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/, reEscape = /\\([\da-f]{1,6}\s?|(\s)|.)/gi, actionTypes = new Map([ [ 126, AttributeAction.Element ], [ 94, AttributeAction.Start ], [ 36, AttributeAction.End ], [ 42, AttributeAction.Any ], [ 33, AttributeAction.Not ], [ 124, AttributeAction.Hyphen ] ]), unpackPseudos = new Set([ "has", "not", "matches", "is", "where", "host", "host-context" ]); + +function isTraversal$1(selector) { + switch (selector.type) { + case SelectorType.Adjacent: + case SelectorType.Child: + case SelectorType.Descendant: + case SelectorType.Parent: + case SelectorType.Sibling: + case SelectorType.ColumnCombinator: + return !0; + + default: + return !1; + } +} + +const stripQuotesFromPseudos = new Set([ "contains", "icontains" ]); + +function funescape(_, escaped, escapedWhitespace) { + const high = parseInt(escaped, 16) - 0x10000; + return high != high || escapedWhitespace ? escaped : high < 0 ? String.fromCharCode(high + 0x10000) : String.fromCharCode(high >> 10 | 0xd800, 0x3ff & high | 0xdc00); +} + +function unescapeCSS(str) { + return str.replace(reEscape, funescape); +} + +function isQuote(c) { + return 39 === c || 34 === c; +} + +function isWhitespace(c) { + return 32 === c || 9 === c || 10 === c || 12 === c || 13 === c; +} + +function parseSelector(subselects, selector, selectorIndex) { + let tokens = []; + function getName(offset) { + const match = selector.slice(selectorIndex + offset).match(reName); + if (!match) throw new Error(`Expected name, found ${selector.slice(selectorIndex)}`); + const [name] = match; + return selectorIndex += offset + name.length, unescapeCSS(name); + } + function stripWhitespace(offset) { + for (selectorIndex += offset; selectorIndex < selector.length && isWhitespace(selector.charCodeAt(selectorIndex)); ) selectorIndex++; + } + function readValueWithParenthesis() { + const start = selectorIndex += 1; + let counter = 1; + for (;counter > 0 && selectorIndex < selector.length; selectorIndex++) 40 !== selector.charCodeAt(selectorIndex) || isEscaped(selectorIndex) ? 41 !== selector.charCodeAt(selectorIndex) || isEscaped(selectorIndex) || counter-- : counter++; + if (counter) throw new Error("Parenthesis not matched"); + return unescapeCSS(selector.slice(start, selectorIndex - 1)); + } + function isEscaped(pos) { + let slashCount = 0; + for (;92 === selector.charCodeAt(--pos); ) slashCount++; + return 1 == (1 & slashCount); + } + function ensureNotTraversal() { + if (tokens.length > 0 && isTraversal$1(tokens[tokens.length - 1])) throw new Error("Did not expect successive traversals."); + } + function addTraversal(type) { + tokens.length > 0 && tokens[tokens.length - 1].type === SelectorType.Descendant ? tokens[tokens.length - 1].type = type : (ensureNotTraversal(), + tokens.push({ + type + })); + } + function addSpecialAttribute(name, action) { + tokens.push({ + type: SelectorType.Attribute, + name, + action, + value: getName(1), + namespace: null, + ignoreCase: "quirks" + }); + } + function finalizeSubselector() { + if (tokens.length && tokens[tokens.length - 1].type === SelectorType.Descendant && tokens.pop(), + 0 === tokens.length) throw new Error("Empty sub-selector"); + subselects.push(tokens); + } + if (stripWhitespace(0), selector.length === selectorIndex) return selectorIndex; + loop: for (;selectorIndex < selector.length; ) { + const firstChar = selector.charCodeAt(selectorIndex); + switch (firstChar) { + case 32: + case 9: + case 10: + case 12: + case 13: + 0 !== tokens.length && tokens[0].type === SelectorType.Descendant || (ensureNotTraversal(), + tokens.push({ + type: SelectorType.Descendant + })), stripWhitespace(1); + break; + + case 62: + addTraversal(SelectorType.Child), stripWhitespace(1); + break; + + case 60: + addTraversal(SelectorType.Parent), stripWhitespace(1); + break; + + case 126: + addTraversal(SelectorType.Sibling), stripWhitespace(1); + break; + + case 43: + addTraversal(SelectorType.Adjacent), stripWhitespace(1); + break; + + case 46: + addSpecialAttribute("class", AttributeAction.Element); + break; + + case 35: + addSpecialAttribute("id", AttributeAction.Equals); + break; + + case 91: + { + let name; + stripWhitespace(1); + let namespace = null; + 124 === selector.charCodeAt(selectorIndex) ? name = getName(1) : selector.startsWith("*|", selectorIndex) ? (namespace = "*", + name = getName(2)) : (name = getName(0), 124 === selector.charCodeAt(selectorIndex) && 61 !== selector.charCodeAt(selectorIndex + 1) && (namespace = name, + name = getName(1))), stripWhitespace(0); + let action = AttributeAction.Exists; + const possibleAction = actionTypes.get(selector.charCodeAt(selectorIndex)); + if (possibleAction) { + if (action = possibleAction, 61 !== selector.charCodeAt(selectorIndex + 1)) throw new Error("Expected `=`"); + stripWhitespace(2); + } else 61 === selector.charCodeAt(selectorIndex) && (action = AttributeAction.Equals, + stripWhitespace(1)); + let value = "", ignoreCase = null; + if ("exists" !== action) { + if (isQuote(selector.charCodeAt(selectorIndex))) { + const quote = selector.charCodeAt(selectorIndex); + let sectionEnd = selectorIndex + 1; + for (;sectionEnd < selector.length && (selector.charCodeAt(sectionEnd) !== quote || isEscaped(sectionEnd)); ) sectionEnd += 1; + if (selector.charCodeAt(sectionEnd) !== quote) throw new Error("Attribute value didn't end"); + value = unescapeCSS(selector.slice(selectorIndex + 1, sectionEnd)), selectorIndex = sectionEnd + 1; + } else { + const valueStart = selectorIndex; + for (;selectorIndex < selector.length && (!isWhitespace(selector.charCodeAt(selectorIndex)) && 93 !== selector.charCodeAt(selectorIndex) || isEscaped(selectorIndex)); ) selectorIndex += 1; + value = unescapeCSS(selector.slice(valueStart, selectorIndex)); + } + stripWhitespace(0); + const forceIgnore = 0x20 | selector.charCodeAt(selectorIndex); + 115 === forceIgnore ? (ignoreCase = !1, stripWhitespace(1)) : 105 === forceIgnore && (ignoreCase = !0, + stripWhitespace(1)); + } + if (93 !== selector.charCodeAt(selectorIndex)) throw new Error("Attribute selector didn't terminate"); + selectorIndex += 1; + const attributeSelector = { + type: SelectorType.Attribute, + name, + action, + value, + namespace, + ignoreCase + }; + tokens.push(attributeSelector); + break; + } + + case 58: + { + if (58 === selector.charCodeAt(selectorIndex + 1)) { + tokens.push({ + type: SelectorType.PseudoElement, + name: getName(2).toLowerCase(), + data: 40 === selector.charCodeAt(selectorIndex) ? readValueWithParenthesis() : null + }); + continue; + } + const name = getName(1).toLowerCase(); + let data = null; + if (40 === selector.charCodeAt(selectorIndex)) if (unpackPseudos.has(name)) { + if (isQuote(selector.charCodeAt(selectorIndex + 1))) throw new Error(`Pseudo-selector ${name} cannot be quoted`); + if (data = [], selectorIndex = parseSelector(data, selector, selectorIndex + 1), + 41 !== selector.charCodeAt(selectorIndex)) throw new Error(`Missing closing parenthesis in :${name} (${selector})`); + selectorIndex += 1; + } else { + if (data = readValueWithParenthesis(), stripQuotesFromPseudos.has(name)) { + const quot = data.charCodeAt(0); + quot === data.charCodeAt(data.length - 1) && isQuote(quot) && (data = data.slice(1, -1)); + } + data = unescapeCSS(data); + } + tokens.push({ + type: SelectorType.Pseudo, + name, + data + }); + break; + } + + case 44: + finalizeSubselector(), tokens = [], stripWhitespace(1); + break; + + default: + { + if (selector.startsWith("/*", selectorIndex)) { + const endIndex = selector.indexOf("*/", selectorIndex + 2); + if (endIndex < 0) throw new Error("Comment was not terminated"); + selectorIndex = endIndex + 2, 0 === tokens.length && stripWhitespace(0); + break; + } + let name, namespace = null; + if (42 === firstChar) selectorIndex += 1, name = "*"; else if (124 === firstChar) { + if (name = "", 124 === selector.charCodeAt(selectorIndex + 1)) { + addTraversal(SelectorType.ColumnCombinator), stripWhitespace(2); + break; + } + } else { + if (!reName.test(selector.slice(selectorIndex))) break loop; + name = getName(0); + } + 124 === selector.charCodeAt(selectorIndex) && 124 !== selector.charCodeAt(selectorIndex + 1) && (namespace = name, + 42 === selector.charCodeAt(selectorIndex + 1) ? (name = "*", selectorIndex += 2) : name = getName(1)), + tokens.push("*" === name ? { + type: SelectorType.Universal, + namespace + } : { + type: SelectorType.Tag, + name, + namespace + }); + } + } + } + return finalizeSubselector(), selectorIndex; +} + +const attribValChars = [ "\\", '"' ], pseudoValChars = [ ...attribValChars, "(", ")" ], charsToEscapeInAttributeValue = new Set(attribValChars.map((c => c.charCodeAt(0)))), charsToEscapeInPseudoValue = new Set(pseudoValChars.map((c => c.charCodeAt(0)))), charsToEscapeInName = new Set([ ...pseudoValChars, "~", "^", "$", "*", "+", "!", "|", ":", "[", "]", " ", "." ].map((c => c.charCodeAt(0)))); + +function stringify(selector) { + return selector.map((token => token.map(stringifyToken).join(""))).join(", "); +} + +function stringifyToken(token, index, arr) { + switch (token.type) { + case SelectorType.Child: + return 0 === index ? "> " : " > "; + + case SelectorType.Parent: + return 0 === index ? "< " : " < "; + + case SelectorType.Sibling: + return 0 === index ? "~ " : " ~ "; + + case SelectorType.Adjacent: + return 0 === index ? "+ " : " + "; + + case SelectorType.Descendant: + return " "; + + case SelectorType.ColumnCombinator: + return 0 === index ? "|| " : " || "; + + case SelectorType.Universal: + return "*" === token.namespace && index + 1 < arr.length && "name" in arr[index + 1] ? "" : `${getNamespace(token.namespace)}*`; + + case SelectorType.Tag: + return getNamespacedName(token); + + case SelectorType.PseudoElement: + return `::${escapeName(token.name, charsToEscapeInName)}${null === token.data ? "" : `(${escapeName(token.data, charsToEscapeInPseudoValue)})`}`; + + case SelectorType.Pseudo: + return `:${escapeName(token.name, charsToEscapeInName)}${null === token.data ? "" : `(${"string" == typeof token.data ? escapeName(token.data, charsToEscapeInPseudoValue) : stringify(token.data)})`}`; + + case SelectorType.Attribute: + { + if ("id" === token.name && token.action === AttributeAction.Equals && "quirks" === token.ignoreCase && !token.namespace) return `#${escapeName(token.value, charsToEscapeInName)}`; + if ("class" === token.name && token.action === AttributeAction.Element && "quirks" === token.ignoreCase && !token.namespace) return `.${escapeName(token.value, charsToEscapeInName)}`; + const name = getNamespacedName(token); + return token.action === AttributeAction.Exists ? `[${name}]` : `[${name}${function(action) { + switch (action) { + case AttributeAction.Equals: + return ""; + + case AttributeAction.Element: + return "~"; + + case AttributeAction.Start: + return "^"; + + case AttributeAction.End: + return "$"; + + case AttributeAction.Any: + return "*"; + + case AttributeAction.Not: + return "!"; + + case AttributeAction.Hyphen: + return "|"; + + case AttributeAction.Exists: + throw new Error("Shouldn't be here"); + } + }(token.action)}="${escapeName(token.value, charsToEscapeInAttributeValue)}"${null === token.ignoreCase ? "" : token.ignoreCase ? " i" : " s"}]`; + } + } +} + +function getNamespacedName(token) { + return `${getNamespace(token.namespace)}${escapeName(token.name, charsToEscapeInName)}`; +} + +function getNamespace(namespace) { + return null !== namespace ? `${"*" === namespace ? "*" : escapeName(namespace, charsToEscapeInName)}|` : ""; +} + +function escapeName(str, charsToEscape) { + let lastIdx = 0, ret = ""; + for (let i = 0; i < str.length; i++) charsToEscape.has(str.charCodeAt(i)) && (ret += `${str.slice(lastIdx, i)}\\${str.charAt(i)}`, + lastIdx = i + 1); + return ret.length > 0 ? ret + str.slice(lastIdx) : str; +} + +var es = Object.freeze({ + __proto__: null, + get AttributeAction() { + return AttributeAction; + }, + IgnoreCaseMode: { + Unknown: null, + QuirksMode: "quirks", + IgnoreCase: !0, + CaseSensitive: !1 + }, + get SelectorType() { + return SelectorType; + }, + isTraversal: isTraversal$1, + parse: function(selector) { + const subselects = [], endIndex = parseSelector(subselects, `${selector}`, 0); + if (endIndex < selector.length) throw new Error(`Unmatched selector: ${selector.slice(endIndex)}`); + return subselects; + }, + stringify +}), require$$0 = getAugmentedNamespace(es), sort = {}; + +Object.defineProperty(sort, "__esModule", { + value: !0 +}), sort.isTraversal = void 0; + +var css_what_1$2 = require$$0, procedure = new Map([ [ css_what_1$2.SelectorType.Universal, 50 ], [ css_what_1$2.SelectorType.Tag, 30 ], [ css_what_1$2.SelectorType.Attribute, 1 ], [ css_what_1$2.SelectorType.Pseudo, 0 ] ]); + +sort.isTraversal = function(token) { + return !procedure.has(token.type); +}; + +var attributes$1 = new Map([ [ css_what_1$2.AttributeAction.Exists, 10 ], [ css_what_1$2.AttributeAction.Equals, 8 ], [ css_what_1$2.AttributeAction.Not, 7 ], [ css_what_1$2.AttributeAction.Start, 6 ], [ css_what_1$2.AttributeAction.End, 6 ], [ css_what_1$2.AttributeAction.Any, 5 ] ]); + +function getProcedure(token) { + var _a, _b, proc = null !== (_a = procedure.get(token.type)) && void 0 !== _a ? _a : -1; + return token.type === css_what_1$2.SelectorType.Attribute ? (proc = null !== (_b = attributes$1.get(token.action)) && void 0 !== _b ? _b : 4, + token.action === css_what_1$2.AttributeAction.Equals && "id" === token.name && (proc = 9), + token.ignoreCase && (proc >>= 1)) : token.type === css_what_1$2.SelectorType.Pseudo && (token.data ? "has" === token.name || "contains" === token.name ? proc = 0 : Array.isArray(token.data) ? (proc = Math.min.apply(Math, token.data.map((function(d) { + return Math.min.apply(Math, d.map(getProcedure)); + })))) < 0 && (proc = 0) : proc = 2 : proc = 3), proc; +} + +sort.default = function(arr) { + for (var procs = arr.map(getProcedure), i = 1; i < arr.length; i++) { + var procNew = procs[i]; + if (!(procNew < 0)) for (var j = i - 1; j >= 0 && procNew < procs[j]; j--) { + var token = arr[j + 1]; + arr[j + 1] = arr[j], arr[j] = token, procs[j + 1] = procs[j], procs[j] = procNew; + } + } +}; + +var general = {}, attributes = {}, __importDefault$2 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { + "default": mod + }; +}; + +Object.defineProperty(attributes, "__esModule", { + value: !0 +}), attributes.attributeRules = void 0; + +var boolbase_1$2 = __importDefault$2(boolbase), reChars = /[-[\]{}()*+?.,\\^$|#\s]/g; + +function escapeRegex(value) { + return value.replace(reChars, "\\$&"); +} + +var caseInsensitiveAttributes = new Set([ "accept", "accept-charset", "align", "alink", "axis", "bgcolor", "charset", "checked", "clear", "codetype", "color", "compact", "declare", "defer", "dir", "direction", "disabled", "enctype", "face", "frame", "hreflang", "http-equiv", "lang", "language", "link", "media", "method", "multiple", "nohref", "noresize", "noshade", "nowrap", "readonly", "rel", "rev", "rules", "scope", "scrolling", "selected", "shape", "target", "text", "type", "valign", "valuetype", "vlink" ]); + +function shouldIgnoreCase(selector, options) { + return "boolean" == typeof selector.ignoreCase ? selector.ignoreCase : "quirks" === selector.ignoreCase ? !!options.quirksMode : !options.xmlMode && caseInsensitiveAttributes.has(selector.name); +} + +attributes.attributeRules = { + equals: function(next, data, options) { + var adapter = options.adapter, name = data.name, value = data.value; + return shouldIgnoreCase(data, options) ? (value = value.toLowerCase(), function(elem) { + var attr = adapter.getAttributeValue(elem, name); + return null != attr && attr.length === value.length && attr.toLowerCase() === value && next(elem); + }) : function(elem) { + return adapter.getAttributeValue(elem, name) === value && next(elem); + }; + }, + hyphen: function(next, data, options) { + var adapter = options.adapter, name = data.name, value = data.value, len = value.length; + return shouldIgnoreCase(data, options) ? (value = value.toLowerCase(), function(elem) { + var attr = adapter.getAttributeValue(elem, name); + return null != attr && (attr.length === len || "-" === attr.charAt(len)) && attr.substr(0, len).toLowerCase() === value && next(elem); + }) : function(elem) { + var attr = adapter.getAttributeValue(elem, name); + return null != attr && (attr.length === len || "-" === attr.charAt(len)) && attr.substr(0, len) === value && next(elem); + }; + }, + element: function(next, data, options) { + var adapter = options.adapter, name = data.name, value = data.value; + if (/\s/.test(value)) return boolbase_1$2.default.falseFunc; + var regex = new RegExp("(?:^|\\s)".concat(escapeRegex(value), "(?:$|\\s)"), shouldIgnoreCase(data, options) ? "i" : ""); + return function(elem) { + var attr = adapter.getAttributeValue(elem, name); + return null != attr && attr.length >= value.length && regex.test(attr) && next(elem); + }; + }, + exists: function(next, _a, _b) { + var name = _a.name, adapter = _b.adapter; + return function(elem) { + return adapter.hasAttrib(elem, name) && next(elem); + }; + }, + start: function(next, data, options) { + var adapter = options.adapter, name = data.name, value = data.value, len = value.length; + return 0 === len ? boolbase_1$2.default.falseFunc : shouldIgnoreCase(data, options) ? (value = value.toLowerCase(), + function(elem) { + var attr = adapter.getAttributeValue(elem, name); + return null != attr && attr.length >= len && attr.substr(0, len).toLowerCase() === value && next(elem); + }) : function(elem) { + var _a; + return !!(null === (_a = adapter.getAttributeValue(elem, name)) || void 0 === _a ? void 0 : _a.startsWith(value)) && next(elem); + }; + }, + end: function(next, data, options) { + var adapter = options.adapter, name = data.name, value = data.value, len = -value.length; + return 0 === len ? boolbase_1$2.default.falseFunc : shouldIgnoreCase(data, options) ? (value = value.toLowerCase(), + function(elem) { + var _a; + return (null === (_a = adapter.getAttributeValue(elem, name)) || void 0 === _a ? void 0 : _a.substr(len).toLowerCase()) === value && next(elem); + }) : function(elem) { + var _a; + return !!(null === (_a = adapter.getAttributeValue(elem, name)) || void 0 === _a ? void 0 : _a.endsWith(value)) && next(elem); + }; + }, + any: function(next, data, options) { + var adapter = options.adapter, name = data.name, value = data.value; + if ("" === value) return boolbase_1$2.default.falseFunc; + if (shouldIgnoreCase(data, options)) { + var regex_1 = new RegExp(escapeRegex(value), "i"); + return function(elem) { + var attr = adapter.getAttributeValue(elem, name); + return null != attr && attr.length >= value.length && regex_1.test(attr) && next(elem); + }; + } + return function(elem) { + var _a; + return !!(null === (_a = adapter.getAttributeValue(elem, name)) || void 0 === _a ? void 0 : _a.includes(value)) && next(elem); + }; + }, + not: function(next, data, options) { + var adapter = options.adapter, name = data.name, value = data.value; + return "" === value ? function(elem) { + return !!adapter.getAttributeValue(elem, name) && next(elem); + } : shouldIgnoreCase(data, options) ? (value = value.toLowerCase(), function(elem) { + var attr = adapter.getAttributeValue(elem, name); + return (null == attr || attr.length !== value.length || attr.toLowerCase() !== value) && next(elem); + }) : function(elem) { + return adapter.getAttributeValue(elem, name) !== value && next(elem); + }; + } +}; + +var pseudoSelectors = {}, filters$1 = {}, lib = {}, parse$1w = {}; + +Object.defineProperty(parse$1w, "__esModule", { + value: !0 +}), parse$1w.parse = void 0; + +var whitespace = new Set([ 9, 10, 12, 13, 32 ]), ZERO = "0".charCodeAt(0), NINE = "9".charCodeAt(0); + +parse$1w.parse = function(formula) { + if ("even" === (formula = formula.trim().toLowerCase())) return [ 2, 0 ]; + if ("odd" === formula) return [ 2, 1 ]; + var idx = 0, a = 0, sign = readSign(), number = readNumber(); + if (idx < formula.length && "n" === formula.charAt(idx) && (idx++, a = sign * (null != number ? number : 1), + skipWhitespace(), idx < formula.length ? (sign = readSign(), skipWhitespace(), number = readNumber()) : sign = number = 0), + null === number || idx < formula.length) throw new Error("n-th rule couldn't be parsed ('".concat(formula, "')")); + return [ a, sign * number ]; + function readSign() { + return "-" === formula.charAt(idx) ? (idx++, -1) : ("+" === formula.charAt(idx) && idx++, + 1); + } + function readNumber() { + for (var start = idx, value = 0; idx < formula.length && formula.charCodeAt(idx) >= ZERO && formula.charCodeAt(idx) <= NINE; ) value = 10 * value + (formula.charCodeAt(idx) - ZERO), + idx++; + return idx === start ? null : value; + } + function skipWhitespace() { + for (;idx < formula.length && whitespace.has(formula.charCodeAt(idx)); ) idx++; + } +}; + +var compile$2 = {}, __importDefault$1 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { + "default": mod + }; +}; + +Object.defineProperty(compile$2, "__esModule", { + value: !0 +}), compile$2.generate = compile$2.compile = void 0; + +var boolbase_1$1 = __importDefault$1(boolbase); + +compile$2.compile = function(parsed) { + var a = parsed[0], b = parsed[1] - 1; + if (b < 0 && a <= 0) return boolbase_1$1.default.falseFunc; + if (-1 === a) return function(index) { + return index <= b; + }; + if (0 === a) return function(index) { + return index === b; + }; + if (1 === a) return b < 0 ? boolbase_1$1.default.trueFunc : function(index) { + return index >= b; + }; + var absA = Math.abs(a), bMod = (b % absA + absA) % absA; + return a > 1 ? function(index) { + return index >= b && index % absA === bMod; + } : function(index) { + return index <= b && index % absA === bMod; + }; +}, compile$2.generate = function(parsed) { + var a = parsed[0], b = parsed[1] - 1, n = 0; + if (a < 0) { + var aPos_1 = -a, minValue_1 = (b % aPos_1 + aPos_1) % aPos_1; + return function() { + var val = minValue_1 + aPos_1 * n++; + return val > b ? null : val; + }; + } + return 0 === a ? b < 0 ? function() { + return null; + } : function() { + return 0 == n++ ? b : null; + } : (b < 0 && (b += a * Math.ceil(-b / a)), function() { + return a * n++ + b; + }); +}, function(exports) { + Object.defineProperty(exports, "__esModule", { + value: !0 + }), exports.sequence = exports.generate = exports.compile = exports.parse = void 0; + var parse_js_1 = parse$1w; + Object.defineProperty(exports, "parse", { + enumerable: !0, + get: function() { + return parse_js_1.parse; + } + }); + var compile_js_1 = compile$2; + Object.defineProperty(exports, "compile", { + enumerable: !0, + get: function() { + return compile_js_1.compile; + } + }), Object.defineProperty(exports, "generate", { + enumerable: !0, + get: function() { + return compile_js_1.generate; + } + }), exports.default = function(formula) { + return (0, compile_js_1.compile)((0, parse_js_1.parse)(formula)); + }, exports.sequence = function(formula) { + return (0, compile_js_1.generate)((0, parse_js_1.parse)(formula)); + }; +}(lib), function(exports) { + var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { + "default": mod + }; + }; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), exports.filters = void 0; + var nth_check_1 = __importDefault(lib), boolbase_1 = __importDefault(boolbase); + function getChildFunc(next, adapter) { + return function(elem) { + var parent = adapter.getParent(elem); + return null != parent && adapter.isTag(parent) && next(elem); + }; + } + function dynamicStatePseudo(name) { + return function(next, _rule, _a) { + var func = _a.adapter[name]; + return "function" != typeof func ? boolbase_1.default.falseFunc : function(elem) { + return func(elem) && next(elem); + }; + }; + } + exports.filters = { + contains: function(next, text, _a) { + var adapter = _a.adapter; + return function(elem) { + return next(elem) && adapter.getText(elem).includes(text); + }; + }, + icontains: function(next, text, _a) { + var adapter = _a.adapter, itext = text.toLowerCase(); + return function(elem) { + return next(elem) && adapter.getText(elem).toLowerCase().includes(itext); + }; + }, + "nth-child": function(next, rule, _a) { + var adapter = _a.adapter, equals = _a.equals, func = (0, nth_check_1.default)(rule); + return func === boolbase_1.default.falseFunc ? boolbase_1.default.falseFunc : func === boolbase_1.default.trueFunc ? getChildFunc(next, adapter) : function(elem) { + for (var siblings = adapter.getSiblings(elem), pos = 0, i = 0; i < siblings.length && !equals(elem, siblings[i]); i++) adapter.isTag(siblings[i]) && pos++; + return func(pos) && next(elem); + }; + }, + "nth-last-child": function(next, rule, _a) { + var adapter = _a.adapter, equals = _a.equals, func = (0, nth_check_1.default)(rule); + return func === boolbase_1.default.falseFunc ? boolbase_1.default.falseFunc : func === boolbase_1.default.trueFunc ? getChildFunc(next, adapter) : function(elem) { + for (var siblings = adapter.getSiblings(elem), pos = 0, i = siblings.length - 1; i >= 0 && !equals(elem, siblings[i]); i--) adapter.isTag(siblings[i]) && pos++; + return func(pos) && next(elem); + }; + }, + "nth-of-type": function(next, rule, _a) { + var adapter = _a.adapter, equals = _a.equals, func = (0, nth_check_1.default)(rule); + return func === boolbase_1.default.falseFunc ? boolbase_1.default.falseFunc : func === boolbase_1.default.trueFunc ? getChildFunc(next, adapter) : function(elem) { + for (var siblings = adapter.getSiblings(elem), pos = 0, i = 0; i < siblings.length; i++) { + var currentSibling = siblings[i]; + if (equals(elem, currentSibling)) break; + adapter.isTag(currentSibling) && adapter.getName(currentSibling) === adapter.getName(elem) && pos++; + } + return func(pos) && next(elem); + }; + }, + "nth-last-of-type": function(next, rule, _a) { + var adapter = _a.adapter, equals = _a.equals, func = (0, nth_check_1.default)(rule); + return func === boolbase_1.default.falseFunc ? boolbase_1.default.falseFunc : func === boolbase_1.default.trueFunc ? getChildFunc(next, adapter) : function(elem) { + for (var siblings = adapter.getSiblings(elem), pos = 0, i = siblings.length - 1; i >= 0; i--) { + var currentSibling = siblings[i]; + if (equals(elem, currentSibling)) break; + adapter.isTag(currentSibling) && adapter.getName(currentSibling) === adapter.getName(elem) && pos++; + } + return func(pos) && next(elem); + }; + }, + root: function(next, _rule, _a) { + var adapter = _a.adapter; + return function(elem) { + var parent = adapter.getParent(elem); + return (null == parent || !adapter.isTag(parent)) && next(elem); + }; + }, + scope: function(next, rule, options, context) { + var equals = options.equals; + return context && 0 !== context.length ? 1 === context.length ? function(elem) { + return equals(context[0], elem) && next(elem); + } : function(elem) { + return context.includes(elem) && next(elem); + } : exports.filters.root(next, rule, options); + }, + hover: dynamicStatePseudo("isHovered"), + visited: dynamicStatePseudo("isVisited"), + active: dynamicStatePseudo("isActive") + }; +}(filters$1); + +var pseudos = {}; + +Object.defineProperty(pseudos, "__esModule", { + value: !0 +}), pseudos.verifyPseudoArgs = pseudos.pseudos = void 0, pseudos.pseudos = { + empty: function(elem, _a) { + var adapter = _a.adapter; + return !adapter.getChildren(elem).some((function(elem) { + return adapter.isTag(elem) || "" !== adapter.getText(elem); + })); + }, + "first-child": function(elem, _a) { + var adapter = _a.adapter, equals = _a.equals; + if (adapter.prevElementSibling) return null == adapter.prevElementSibling(elem); + var firstChild = adapter.getSiblings(elem).find((function(elem) { + return adapter.isTag(elem); + })); + return null != firstChild && equals(elem, firstChild); + }, + "last-child": function(elem, _a) { + for (var adapter = _a.adapter, equals = _a.equals, siblings = adapter.getSiblings(elem), i = siblings.length - 1; i >= 0; i--) { + if (equals(elem, siblings[i])) return !0; + if (adapter.isTag(siblings[i])) break; + } + return !1; + }, + "first-of-type": function(elem, _a) { + for (var adapter = _a.adapter, equals = _a.equals, siblings = adapter.getSiblings(elem), elemName = adapter.getName(elem), i = 0; i < siblings.length; i++) { + var currentSibling = siblings[i]; + if (equals(elem, currentSibling)) return !0; + if (adapter.isTag(currentSibling) && adapter.getName(currentSibling) === elemName) break; + } + return !1; + }, + "last-of-type": function(elem, _a) { + for (var adapter = _a.adapter, equals = _a.equals, siblings = adapter.getSiblings(elem), elemName = adapter.getName(elem), i = siblings.length - 1; i >= 0; i--) { + var currentSibling = siblings[i]; + if (equals(elem, currentSibling)) return !0; + if (adapter.isTag(currentSibling) && adapter.getName(currentSibling) === elemName) break; + } + return !1; + }, + "only-of-type": function(elem, _a) { + var adapter = _a.adapter, equals = _a.equals, elemName = adapter.getName(elem); + return adapter.getSiblings(elem).every((function(sibling) { + return equals(elem, sibling) || !adapter.isTag(sibling) || adapter.getName(sibling) !== elemName; + })); + }, + "only-child": function(elem, _a) { + var adapter = _a.adapter, equals = _a.equals; + return adapter.getSiblings(elem).every((function(sibling) { + return equals(elem, sibling) || !adapter.isTag(sibling); + })); + } +}, pseudos.verifyPseudoArgs = function(func, name, subselect, argIndex) { + if (null === subselect) { + if (func.length > argIndex) throw new Error("Pseudo-class :".concat(name, " requires an argument")); + } else if (func.length === argIndex) throw new Error("Pseudo-class :".concat(name, " doesn't have any arguments")); +}; + +var aliases = {}; + +Object.defineProperty(aliases, "__esModule", { + value: !0 +}), aliases.aliases = void 0, aliases.aliases = { + "any-link": ":is(a, area, link)[href]", + link: ":any-link:not(:visited)", + disabled: ":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )", + enabled: ":not(:disabled)", + checked: ":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)", + required: ":is(input, select, textarea)[required]", + optional: ":is(input, select, textarea):not([required])", + selected: "option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)", + checkbox: "[type=checkbox]", + file: "[type=file]", + password: "[type=password]", + radio: "[type=radio]", + reset: "[type=reset]", + image: "[type=image]", + submit: "[type=submit]", + parent: ":not(:empty)", + header: ":is(h1, h2, h3, h4, h5, h6)", + button: ":is(button, input[type=button])", + input: ":is(input, textarea, select, button)", + text: "input:is(:not([type!='']), [type=text])" +}; + +var subselects = {}; + +!function(exports) { + var __spreadArray = commonjsGlobal && commonjsGlobal.__spreadArray || function(to, from, pack) { + if (pack || 2 === arguments.length) for (var ar, i = 0, l = from.length; i < l; i++) !ar && i in from || (ar || (ar = Array.prototype.slice.call(from, 0, i)), + ar[i] = from[i]); + return to.concat(ar || Array.prototype.slice.call(from)); + }, __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { + "default": mod + }; + }; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), exports.subselects = exports.getNextSiblings = exports.ensureIsTag = exports.PLACEHOLDER_ELEMENT = void 0; + var boolbase_1 = __importDefault(boolbase), sort_js_1 = sort; + function ensureIsTag(next, adapter) { + return next === boolbase_1.default.falseFunc ? boolbase_1.default.falseFunc : function(elem) { + return adapter.isTag(elem) && next(elem); + }; + } + function getNextSiblings(elem, adapter) { + var siblings = adapter.getSiblings(elem); + if (siblings.length <= 1) return []; + var elemIndex = siblings.indexOf(elem); + return elemIndex < 0 || elemIndex === siblings.length - 1 ? [] : siblings.slice(elemIndex + 1).filter(adapter.isTag); + } + function copyOptions(options) { + return { + xmlMode: !!options.xmlMode, + lowerCaseAttributeNames: !!options.lowerCaseAttributeNames, + lowerCaseTags: !!options.lowerCaseTags, + quirksMode: !!options.quirksMode, + cacheResults: !!options.cacheResults, + pseudos: options.pseudos, + adapter: options.adapter, + equals: options.equals + }; + } + exports.PLACEHOLDER_ELEMENT = {}, exports.ensureIsTag = ensureIsTag, exports.getNextSiblings = getNextSiblings; + var is = function(next, token, options, context, compileToken) { + var func = compileToken(token, copyOptions(options), context); + return func === boolbase_1.default.trueFunc ? next : func === boolbase_1.default.falseFunc ? boolbase_1.default.falseFunc : function(elem) { + return func(elem) && next(elem); + }; + }; + exports.subselects = { + is, + matches: is, + where: is, + not: function(next, token, options, context, compileToken) { + var func = compileToken(token, copyOptions(options), context); + return func === boolbase_1.default.falseFunc ? next : func === boolbase_1.default.trueFunc ? boolbase_1.default.falseFunc : function(elem) { + return !func(elem) && next(elem); + }; + }, + has: function(next, subselect, options, _context, compileToken) { + var adapter = options.adapter, opts = copyOptions(options); + opts.relativeSelector = !0; + var context = subselect.some((function(s) { + return s.some(sort_js_1.isTraversal); + })) ? [ exports.PLACEHOLDER_ELEMENT ] : void 0, compiled = compileToken(subselect, opts, context); + if (compiled === boolbase_1.default.falseFunc) return boolbase_1.default.falseFunc; + var hasElement = ensureIsTag(compiled, adapter); + if (context && compiled !== boolbase_1.default.trueFunc) { + var _a = compiled.shouldTestNextSiblings, shouldTestNextSiblings_1 = void 0 !== _a && _a; + return function(elem) { + if (!next(elem)) return !1; + context[0] = elem; + var childs = adapter.getChildren(elem), nextElements = shouldTestNextSiblings_1 ? __spreadArray(__spreadArray([], childs, !0), getNextSiblings(elem, adapter), !0) : childs; + return adapter.existsOne(hasElement, nextElements); + }; + } + return function(elem) { + return next(elem) && adapter.existsOne(hasElement, adapter.getChildren(elem)); + }; + } + }; +}(subselects), function(exports) { + Object.defineProperty(exports, "__esModule", { + value: !0 + }), exports.compilePseudoSelector = exports.aliases = exports.pseudos = exports.filters = void 0; + var css_what_1 = require$$0, filters_js_1 = filters$1; + Object.defineProperty(exports, "filters", { + enumerable: !0, + get: function() { + return filters_js_1.filters; + } + }); + var pseudos_js_1 = pseudos; + Object.defineProperty(exports, "pseudos", { + enumerable: !0, + get: function() { + return pseudos_js_1.pseudos; + } + }); + var aliases_js_1 = aliases; + Object.defineProperty(exports, "aliases", { + enumerable: !0, + get: function() { + return aliases_js_1.aliases; + } + }); + var subselects_js_1 = subselects; + exports.compilePseudoSelector = function(next, selector, options, context, compileToken) { + var _a, name = selector.name, data = selector.data; + if (Array.isArray(data)) { + if (!(name in subselects_js_1.subselects)) throw new Error("Unknown pseudo-class :".concat(name, "(").concat(data, ")")); + return subselects_js_1.subselects[name](next, data, options, context, compileToken); + } + var userPseudo = null === (_a = options.pseudos) || void 0 === _a ? void 0 : _a[name], stringPseudo = "string" == typeof userPseudo ? userPseudo : aliases_js_1.aliases[name]; + if ("string" == typeof stringPseudo) { + if (null != data) throw new Error("Pseudo ".concat(name, " doesn't have any arguments")); + var alias = (0, css_what_1.parse)(stringPseudo); + return subselects_js_1.subselects.is(next, alias, options, context, compileToken); + } + if ("function" == typeof userPseudo) return (0, pseudos_js_1.verifyPseudoArgs)(userPseudo, name, data, 1), + function(elem) { + return userPseudo(elem, data) && next(elem); + }; + if (name in filters_js_1.filters) return filters_js_1.filters[name](next, data, options, context); + if (name in pseudos_js_1.pseudos) { + var pseudo_1 = pseudos_js_1.pseudos[name]; + return (0, pseudos_js_1.verifyPseudoArgs)(pseudo_1, name, data, 2), function(elem) { + return pseudo_1(elem, options, data) && next(elem); + }; + } + throw new Error("Unknown pseudo-class :".concat(name)); + }; +}(pseudoSelectors), Object.defineProperty(general, "__esModule", { + value: !0 +}), general.compileGeneralSelector = void 0; + +var attributes_js_1 = attributes, index_js_1 = pseudoSelectors, css_what_1$1 = require$$0; + +function getElementParent(node, adapter) { + var parent = adapter.getParent(node); + return parent && adapter.isTag(parent) ? parent : null; +} + +general.compileGeneralSelector = function(next, selector, options, context, compileToken) { + var adapter = options.adapter, equals = options.equals; + switch (selector.type) { + case css_what_1$1.SelectorType.PseudoElement: + throw new Error("Pseudo-elements are not supported by css-select"); + + case css_what_1$1.SelectorType.ColumnCombinator: + throw new Error("Column combinators are not yet supported by css-select"); + + case css_what_1$1.SelectorType.Attribute: + if (null != selector.namespace) throw new Error("Namespaced attributes are not yet supported by css-select"); + return options.xmlMode && !options.lowerCaseAttributeNames || (selector.name = selector.name.toLowerCase()), + attributes_js_1.attributeRules[selector.action](next, selector, options); + + case css_what_1$1.SelectorType.Pseudo: + return (0, index_js_1.compilePseudoSelector)(next, selector, options, context, compileToken); + + case css_what_1$1.SelectorType.Tag: + if (null != selector.namespace) throw new Error("Namespaced tag names are not yet supported by css-select"); + var name_1 = selector.name; + return options.xmlMode && !options.lowerCaseTags || (name_1 = name_1.toLowerCase()), + function(elem) { + return adapter.getName(elem) === name_1 && next(elem); + }; + + case css_what_1$1.SelectorType.Descendant: + if (!1 === options.cacheResults || "undefined" == typeof WeakSet) return function(elem) { + for (var current = elem; current = getElementParent(current, adapter); ) if (next(current)) return !0; + return !1; + }; + var isFalseCache_1 = new WeakSet; + return function(elem) { + for (var current = elem; current = getElementParent(current, adapter); ) if (!isFalseCache_1.has(current)) { + if (adapter.isTag(current) && next(current)) return !0; + isFalseCache_1.add(current); + } + return !1; + }; + + case "_flexibleDescendant": + return function(elem) { + var current = elem; + do { + if (next(current)) return !0; + } while (current = getElementParent(current, adapter)); + return !1; + }; + + case css_what_1$1.SelectorType.Parent: + return function(elem) { + return adapter.getChildren(elem).some((function(elem) { + return adapter.isTag(elem) && next(elem); + })); + }; + + case css_what_1$1.SelectorType.Child: + return function(elem) { + var parent = adapter.getParent(elem); + return null != parent && adapter.isTag(parent) && next(parent); + }; + + case css_what_1$1.SelectorType.Sibling: + return function(elem) { + for (var siblings = adapter.getSiblings(elem), i = 0; i < siblings.length; i++) { + var currentSibling = siblings[i]; + if (equals(elem, currentSibling)) break; + if (adapter.isTag(currentSibling) && next(currentSibling)) return !0; + } + return !1; + }; + + case css_what_1$1.SelectorType.Adjacent: + return adapter.prevElementSibling ? function(elem) { + var previous = adapter.prevElementSibling(elem); + return null != previous && next(previous); + } : function(elem) { + for (var lastElement, siblings = adapter.getSiblings(elem), i = 0; i < siblings.length; i++) { + var currentSibling = siblings[i]; + if (equals(elem, currentSibling)) break; + adapter.isTag(currentSibling) && (lastElement = currentSibling); + } + return !!lastElement && next(lastElement); + }; + + case css_what_1$1.SelectorType.Universal: + if (null != selector.namespace && "*" !== selector.namespace) throw new Error("Namespaced universal selectors are not yet supported by css-select"); + return next; + } +}; + +var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) { + void 0 === k2 && (k2 = k); + var desc = Object.getOwnPropertyDescriptor(m, k); + desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = { + enumerable: !0, + get: function() { + return m[k]; + } + }), Object.defineProperty(o, k2, desc); +} : function(o, m, k, k2) { + void 0 === k2 && (k2 = k), o[k2] = m[k]; +}), __setModuleDefault = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { + enumerable: !0, + value: v + }); +} : function(o, v) { + o.default = v; +}), __importStar = commonjsGlobal && commonjsGlobal.__importStar || function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (null != mod) for (var k in mod) "default" !== k && Object.prototype.hasOwnProperty.call(mod, k) && __createBinding(result, mod, k); + return __setModuleDefault(result, mod), result; +}, __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { + "default": mod + }; +}; + +Object.defineProperty(compile$3, "__esModule", { + value: !0 +}), compile$3.compileToken = compile$3.compileUnsafe = compile$3.compile = void 0; + +var css_what_1 = require$$0, boolbase_1 = __importDefault(boolbase), sort_js_1 = __importStar(sort), general_js_1 = general, subselects_js_1 = subselects; + +function compileUnsafe(selector, options, context) { + return compileToken("string" == typeof selector ? (0, css_what_1.parse)(selector) : selector, options, context); +} + +function includesScopePseudo(t) { + return t.type === css_what_1.SelectorType.Pseudo && ("scope" === t.name || Array.isArray(t.data) && t.data.some((function(data) { + return data.some(includesScopePseudo); + }))); +} + +compile$3.compile = function(selector, options, context) { + var next = compileUnsafe(selector, options, context); + return (0, subselects_js_1.ensureIsTag)(next, options.adapter); +}, compile$3.compileUnsafe = compileUnsafe; + +var DESCENDANT_TOKEN = { + type: css_what_1.SelectorType.Descendant +}, FLEXIBLE_DESCENDANT_TOKEN = { + type: "_flexibleDescendant" +}, SCOPE_TOKEN = { + type: css_what_1.SelectorType.Pseudo, + name: "scope", + data: null +}; + +function compileToken(token, options, context) { + var _a; + token.forEach(sort_js_1.default), context = null !== (_a = options.context) && void 0 !== _a ? _a : context; + var isArrayContext = Array.isArray(context), finalContext = context && (Array.isArray(context) ? context : [ context ]); + if (!1 !== options.relativeSelector) !function(token, _a, context) { + for (var adapter = _a.adapter, hasContext = !!(null == context ? void 0 : context.every((function(e) { + var parent = adapter.isTag(e) && adapter.getParent(e); + return e === subselects_js_1.PLACEHOLDER_ELEMENT || parent && adapter.isTag(parent); + }))), _i = 0, token_1 = token; _i < token_1.length; _i++) { + var t = token_1[_i]; + if (t.length > 0 && (0, sort_js_1.isTraversal)(t[0]) && t[0].type !== css_what_1.SelectorType.Descendant) ; else { + if (!hasContext || t.some(includesScopePseudo)) continue; + t.unshift(DESCENDANT_TOKEN); + } + t.unshift(SCOPE_TOKEN); + } + }(token, options, finalContext); else if (token.some((function(t) { + return t.length > 0 && (0, sort_js_1.isTraversal)(t[0]); + }))) throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled"); + var shouldTestNextSiblings = !1, query = token.map((function(rules) { + if (rules.length >= 2) { + var first = rules[0], second = rules[1]; + first.type !== css_what_1.SelectorType.Pseudo || "scope" !== first.name || (isArrayContext && second.type === css_what_1.SelectorType.Descendant ? rules[1] = FLEXIBLE_DESCENDANT_TOKEN : second.type !== css_what_1.SelectorType.Adjacent && second.type !== css_what_1.SelectorType.Sibling || (shouldTestNextSiblings = !0)); + } + return function(rules, options, context) { + var _a; + return rules.reduce((function(previous, rule) { + return previous === boolbase_1.default.falseFunc ? boolbase_1.default.falseFunc : (0, + general_js_1.compileGeneralSelector)(previous, rule, options, context, compileToken); + }), null !== (_a = options.rootFunc) && void 0 !== _a ? _a : boolbase_1.default.trueFunc); + }(rules, options, finalContext); + })).reduce(reduceRules, boolbase_1.default.falseFunc); + return query.shouldTestNextSiblings = shouldTestNextSiblings, query; +} + +function reduceRules(a, b) { + return b === boolbase_1.default.falseFunc || a === boolbase_1.default.trueFunc ? a : a === boolbase_1.default.falseFunc || b === boolbase_1.default.trueFunc ? b : function(elem) { + return a(elem) || b(elem); + }; +} + +compile$3.compileToken = compileToken, function(exports) { + var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) { + void 0 === k2 && (k2 = k); + var desc = Object.getOwnPropertyDescriptor(m, k); + desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = { + enumerable: !0, + get: function() { + return m[k]; + } + }), Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + void 0 === k2 && (k2 = k), o[k2] = m[k]; + }), __setModuleDefault = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v) { + Object.defineProperty(o, "default", { + enumerable: !0, + value: v + }); + } : function(o, v) { + o.default = v; + }), __importStar = commonjsGlobal && commonjsGlobal.__importStar || function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (null != mod) for (var k in mod) "default" !== k && Object.prototype.hasOwnProperty.call(mod, k) && __createBinding(result, mod, k); + return __setModuleDefault(result, mod), result; + }, __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { + "default": mod + }; + }; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), exports.aliases = exports.pseudos = exports.filters = exports.is = exports.selectOne = exports.selectAll = exports.prepareContext = exports._compileToken = exports._compileUnsafe = exports.compile = void 0; + var DomUtils = __importStar(lib$5), boolbase_1 = __importDefault(boolbase), compile_js_1 = compile$3, subselects_js_1 = subselects, defaultEquals = function(a, b) { + return a === b; + }, defaultOptions = { + adapter: DomUtils, + equals: defaultEquals + }; + function convertOptionFormats(options) { + var _a, _b, _c, _d, opts = null != options ? options : defaultOptions; + return null !== (_a = opts.adapter) && void 0 !== _a || (opts.adapter = DomUtils), + null !== (_b = opts.equals) && void 0 !== _b || (opts.equals = null !== (_d = null === (_c = opts.adapter) || void 0 === _c ? void 0 : _c.equals) && void 0 !== _d ? _d : defaultEquals), + opts; + } + function wrapCompile(func) { + return function(selector, options, context) { + var opts = convertOptionFormats(options); + return func(selector, opts, context); + }; + } + function getSelectorFunc(searchFunc) { + return function(query, elements, options) { + var opts = convertOptionFormats(options); + "function" != typeof query && (query = (0, compile_js_1.compileUnsafe)(query, opts, elements)); + var filteredElements = prepareContext(elements, opts.adapter, query.shouldTestNextSiblings); + return searchFunc(query, filteredElements, opts); + }; + } + function prepareContext(elems, adapter, shouldTestNextSiblings) { + return void 0 === shouldTestNextSiblings && (shouldTestNextSiblings = !1), shouldTestNextSiblings && (elems = function(elem, adapter) { + for (var elems = Array.isArray(elem) ? elem.slice(0) : [ elem ], elemsLength = elems.length, i = 0; i < elemsLength; i++) { + var nextSiblings = (0, subselects_js_1.getNextSiblings)(elems[i], adapter); + elems.push.apply(elems, nextSiblings); + } + return elems; + }(elems, adapter)), Array.isArray(elems) ? adapter.removeSubsets(elems) : adapter.getChildren(elems); + } + exports.compile = wrapCompile(compile_js_1.compile), exports._compileUnsafe = wrapCompile(compile_js_1.compileUnsafe), + exports._compileToken = wrapCompile(compile_js_1.compileToken), exports.prepareContext = prepareContext, + exports.selectAll = getSelectorFunc((function(query, elems, options) { + return query !== boolbase_1.default.falseFunc && elems && 0 !== elems.length ? options.adapter.findAll(query, elems) : []; + })), exports.selectOne = getSelectorFunc((function(query, elems, options) { + return query !== boolbase_1.default.falseFunc && elems && 0 !== elems.length ? options.adapter.findOne(query, elems) : null; + })), exports.is = function(elem, query, options) { + var opts = convertOptionFormats(options); + return ("function" == typeof query ? query : (0, compile_js_1.compile)(query, opts))(elem); + }, exports.default = exports.selectAll; + var index_js_1 = pseudoSelectors; + Object.defineProperty(exports, "filters", { + enumerable: !0, + get: function() { + return index_js_1.filters; + } + }), Object.defineProperty(exports, "pseudos", { + enumerable: !0, + get: function() { + return index_js_1.pseudos; + } + }), Object.defineProperty(exports, "aliases", { + enumerable: !0, + get: function() { + return index_js_1.aliases; + } + }); +}(lib$6); + +const isTag = node => "element" === node.type, existsOne = (test, elems) => elems.some((elem => !!isTag(elem) && (test(elem) || existsOne(test, getChildren(elem))))), getChildren = node => node.children || [], getParent = node => node.parentNode || null, findAll$3 = (test, elems) => { + const result = []; + for (const elem of elems) isTag(elem) && (test(elem) && result.push(elem), result.push(...findAll$3(test, getChildren(elem)))); + return result; +}, findOne = (test, elems) => { + for (const elem of elems) if (isTag(elem)) { + if (test(elem)) return elem; + const result = findOne(test, getChildren(elem)); + if (result) return result; + } + return null; +}, svgoCssSelectAdapter = { + isTag, + existsOne, + getAttributeValue: (elem, name) => elem.attributes[name], + getChildren, + getName: elemAst => elemAst.name, + getParent, + getSiblings: elem => { + var parent = getParent(elem); + return parent ? getChildren(parent) : []; + }, + getText: node => "text" === node.children[0].type && "cdata" === node.children[0].type ? node.children[0].value : "", + hasAttrib: (elem, name) => void 0 !== elem.attributes[name], + removeSubsets: nodes => { + let node, ancestor, replace, idx = nodes.length; + for (;--idx > -1; ) { + for (node = ancestor = nodes[idx], nodes[idx] = null, replace = !0; ancestor; ) { + if (nodes.includes(ancestor)) { + replace = !1, nodes.splice(idx, 1); + break; + } + ancestor = getParent(ancestor); + } + replace && (nodes[idx] = node); + } + return nodes; + }, + findAll: findAll$3, + findOne +}; + +var cssSelectAdapter = svgoCssSelectAdapter; + +const {selectAll, selectOne, is} = lib$6, cssSelectOptions = { + xmlMode: !0, + adapter: cssSelectAdapter +}; + +xast.querySelectorAll = (node, selector) => selectAll(selector, node, cssSelectOptions); + +xast.querySelector = (node, selector) => selectOne(selector, node, cssSelectOptions); + +xast.matches = (node, selector) => is(node, selector, cssSelectOptions); + +const visitSkip$7 = Symbol(); + +xast.visitSkip = visitSkip$7; + +const visit$7 = (node, visitor, parentNode) => { + const callbacks = visitor[node.type]; + if (callbacks && callbacks.enter) { + if (callbacks.enter(node, parentNode) === visitSkip$7) return; + } + if ("root" === node.type) for (const child of node.children) visit$7(child, visitor, node); + if ("element" === node.type && parentNode.children.includes(node)) for (const child of node.children) visit$7(child, visitor, node); + callbacks && callbacks.exit && callbacks.exit(node, parentNode); +}; + +xast.visit = visit$7; + +xast.detachNodeFromParent = (node, parentNode) => { + parentNode.children = parentNode.children.filter((child => child !== node)); +}; + +const {visit: visit$6} = xast; + +tools.encodeSVGDatauri = (str, type) => { + var prefix = "data:image/svg+xml"; + return type && "base64" !== type ? "enc" === type ? str = prefix + "," + encodeURIComponent(str) : "unenc" === type && (str = prefix + "," + str) : str = (prefix += ";base64,") + Buffer.from(str).toString("base64"), + str; +}, tools.decodeSVGDatauri = str => { + var match = /data:image\/svg\+xml(;charset=[^;,]*)?(;base64)?,(.*)/.exec(str); + if (!match) return str; + var data = match[3]; + return match[2] ? str = Buffer.from(data, "base64").toString("utf8") : "%" === data.charAt(0) ? str = decodeURIComponent(data) : "<" === data.charAt(0) && (str = data), + str; +}, tools.cleanupOutData = (data, params, command) => { + let delimiter, prev, str = ""; + return data.forEach(((item, i) => { + if (delimiter = " ", 0 == i && (delimiter = ""), params.noSpaceAfterFlags && ("A" == command || "a" == command)) { + var pos = i % 7; + 4 != pos && 5 != pos || (delimiter = ""); + } + const itemStr = params.leadingZero ? removeLeadingZero$4(item) : item.toString(); + params.negativeExtraSpace && "" != delimiter && (item < 0 || "." === itemStr.charAt(0) && prev % 1 != 0) && (delimiter = ""), + prev = item, str += delimiter + itemStr; + })), str; +}; + +const removeLeadingZero$4 = num => { + var strNum = num.toString(); + return 0 < num && num < 1 && "0" === strNum.charAt(0) ? strNum = strNum.slice(1) : -1 < num && num < 0 && "0" === strNum.charAt(1) && (strNum = strNum.charAt(0) + strNum.slice(2)), + strNum; +}; + +function invokePlugins$1(ast, info, plugins, overrides, globalOverrides) { + for (const plugin of plugins) { + const override = null == overrides ? null : overrides[plugin.name]; + if (!1 === override) continue; + const params = { + ...plugin.params, + ...globalOverrides, + ...override + }, visitor = plugin.fn(ast, params, info); + null != visitor && visit$6(ast, visitor); + } +} + +tools.removeLeadingZero = removeLeadingZero$4, tools.invokePlugins = invokePlugins$1, +tools.createPreset = function({name, plugins}) { + return { + name, + fn: (ast, params, info) => { + const {floatPrecision, overrides} = params, globalOverrides = {}; + null != floatPrecision && (globalOverrides.floatPrecision = floatPrecision), invokePlugins$1(ast, info, plugins, overrides, globalOverrides); + } + }; +}; + +var removeDoctype$2 = {}; + +const {detachNodeFromParent: detachNodeFromParent$l} = xast; + +removeDoctype$2.name = "removeDoctype", removeDoctype$2.description = "removes doctype declaration", +removeDoctype$2.fn = () => ({ + doctype: { + enter: (node, parentNode) => { + detachNodeFromParent$l(node, parentNode); + } + } +}); + +var removeXMLProcInst$2 = {}; + +const {detachNodeFromParent: detachNodeFromParent$k} = xast; + +removeXMLProcInst$2.name = "removeXMLProcInst", removeXMLProcInst$2.description = "removes XML processing instructions", +removeXMLProcInst$2.fn = () => ({ + instruction: { + enter: (node, parentNode) => { + "xml" === node.name && detachNodeFromParent$k(node, parentNode); + } + } +}); + +var removeComments$2 = {}; + +const {detachNodeFromParent: detachNodeFromParent$j} = xast; + +removeComments$2.name = "removeComments", removeComments$2.description = "removes comments", +removeComments$2.fn = () => ({ + comment: { + enter: (node, parentNode) => { + "!" !== node.value.charAt(0) && detachNodeFromParent$j(node, parentNode); + } + } +}); + +var removeMetadata$2 = {}; + +const {detachNodeFromParent: detachNodeFromParent$i} = xast; + +removeMetadata$2.name = "removeMetadata", removeMetadata$2.description = "removes ", +removeMetadata$2.fn = () => ({ + element: { + enter: (node, parentNode) => { + "metadata" === node.name && detachNodeFromParent$i(node, parentNode); + } + } +}); + +var removeEditorsNSData$2 = {}; + +const {detachNodeFromParent: detachNodeFromParent$h} = xast, {editorNamespaces} = _collections; + +removeEditorsNSData$2.name = "removeEditorsNSData", removeEditorsNSData$2.description = "removes editors namespaces, elements and attributes", +removeEditorsNSData$2.fn = (_root, params) => { + let namespaces = editorNamespaces; + Array.isArray(params.additionalNamespaces) && (namespaces = [ ...editorNamespaces, ...params.additionalNamespaces ]); + const prefixes = []; + return { + element: { + enter: (node, parentNode) => { + if ("svg" === node.name) for (const [name, value] of Object.entries(node.attributes)) name.startsWith("xmlns:") && namespaces.includes(value) && (prefixes.push(name.slice(6)), + delete node.attributes[name]); + for (const name of Object.keys(node.attributes)) if (name.includes(":")) { + const [prefix] = name.split(":"); + prefixes.includes(prefix) && delete node.attributes[name]; + } + if (node.name.includes(":")) { + const [prefix] = node.name.split(":"); + prefixes.includes(prefix) && detachNodeFromParent$h(node, parentNode); + } + } + } + }; +}; + +var cleanupAttrs$2 = { + name: "cleanupAttrs", + description: "cleanups attributes from newlines, trailing and repeating spaces" +}; + +const regNewlinesNeedSpace = /(\S)\r?\n(\S)/g, regNewlines = /\r?\n/g, regSpaces = /\s{2,}/g; + +cleanupAttrs$2.fn = (root, params) => { + const {newlines = !0, trim = !0, spaces = !0} = params; + return { + element: { + enter: node => { + for (const name of Object.keys(node.attributes)) newlines && (node.attributes[name] = node.attributes[name].replace(regNewlinesNeedSpace, ((match, p1, p2) => p1 + " " + p2)), + node.attributes[name] = node.attributes[name].replace(regNewlines, "")), trim && (node.attributes[name] = node.attributes[name].trim()), + spaces && (node.attributes[name] = node.attributes[name].replace(regSpaces, " ")); + } + } + }; +}; + +var mergeStyles$2 = {}; + +const {visitSkip: visitSkip$6, detachNodeFromParent: detachNodeFromParent$g} = xast; + +mergeStyles$2.name = "mergeStyles", mergeStyles$2.description = "merge multiple style elements into one", +mergeStyles$2.fn = () => { + let firstStyleElement = null, collectedStyles = "", styleContentType = "text"; + return { + element: { + enter: (node, parentNode) => { + if ("foreignObject" === node.name) return visitSkip$6; + if ("style" !== node.name) return; + if (null != node.attributes.type && "" !== node.attributes.type && "text/css" !== node.attributes.type) return; + let css = ""; + for (const child of node.children) "text" === child.type && (css += child.value), + "cdata" === child.type && (styleContentType = "cdata", css += child.value); + if (0 !== css.trim().length) if (null == node.attributes.media ? collectedStyles += css : (collectedStyles += `@media ${node.attributes.media}{${css}}`, + delete node.attributes.media), null == firstStyleElement) firstStyleElement = node; else { + detachNodeFromParent$g(node, parentNode); + const child = { + type: styleContentType, + value: collectedStyles + }; + Object.defineProperty(child, "parentNode", { + writable: !0, + value: firstStyleElement + }), firstStyleElement.children = [ child ]; + } else detachNodeFromParent$g(node, parentNode); + } + } + }; +}; + +var inlineStyles$2 = {}, cjs$2 = {}, tokenizer$5 = {}, types$1I = {}; + +types$1I.AtKeyword = 3, types$1I.BadString = 6, types$1I.BadUrl = 8, types$1I.CDC = 15, +types$1I.CDO = 14, types$1I.Colon = 16, types$1I.Comma = 18, types$1I.Comment = 25, +types$1I.Delim = 9, types$1I.Dimension = 12, types$1I.EOF = 0, types$1I.Function = 2, +types$1I.Hash = 4, types$1I.Ident = 1, types$1I.LeftCurlyBracket = 23, types$1I.LeftParenthesis = 21, +types$1I.LeftSquareBracket = 19, types$1I.Number = 10, types$1I.Percentage = 11, +types$1I.RightCurlyBracket = 24, types$1I.RightParenthesis = 22, types$1I.RightSquareBracket = 20, +types$1I.Semicolon = 17, types$1I.String = 5, types$1I.Url = 7, types$1I.WhiteSpace = 13; + +var charCodeDefinitions$p = {}; + +const EOF$2 = 0; + +function isDigit$2(code) { + return code >= 0x0030 && code <= 0x0039; +} + +function isUppercaseLetter$1(code) { + return code >= 0x0041 && code <= 0x005A; +} + +function isLowercaseLetter$1(code) { + return code >= 0x0061 && code <= 0x007A; +} + +function isLetter$1(code) { + return isUppercaseLetter$1(code) || isLowercaseLetter$1(code); +} + +function isNonAscii$1(code) { + return code >= 0x0080; +} + +function isNameStart$1(code) { + return isLetter$1(code) || isNonAscii$1(code) || 0x005F === code; +} + +function isNonPrintable$1(code) { + return code >= 0x0000 && code <= 0x0008 || 0x000B === code || code >= 0x000E && code <= 0x001F || 0x007F === code; +} + +function isNewline$1(code) { + return 0x000A === code || 0x000D === code || 0x000C === code; +} + +function isWhiteSpace$1(code) { + return isNewline$1(code) || 0x0020 === code || 0x0009 === code; +} + +function isValidEscape$1(first, second) { + return 0x005C === first && (!isNewline$1(second) && second !== EOF$2); +} + +const CATEGORY$1 = new Array(0x80); + +for (let i = 0; i < CATEGORY$1.length; i++) CATEGORY$1[i] = (isWhiteSpace$1(i) ? 130 : isDigit$2(i) && 131) || isNameStart$1(i) && 132 || isNonPrintable$1(i) && 133 || i || 128; + +charCodeDefinitions$p.DigitCategory = 131, charCodeDefinitions$p.EofCategory = 128, +charCodeDefinitions$p.NameStartCategory = 132, charCodeDefinitions$p.NonPrintableCategory = 133, +charCodeDefinitions$p.WhiteSpaceCategory = 130, charCodeDefinitions$p.charCodeCategory = function(code) { + return code < 0x80 ? CATEGORY$1[code] : 132; +}, charCodeDefinitions$p.isBOM = function(code) { + return 0xFEFF === code || 0xFFFE === code ? 1 : 0; +}, charCodeDefinitions$p.isDigit = isDigit$2, charCodeDefinitions$p.isHexDigit = function(code) { + return isDigit$2(code) || code >= 0x0041 && code <= 0x0046 || code >= 0x0061 && code <= 0x0066; +}, charCodeDefinitions$p.isIdentifierStart = function(first, second, third) { + return 0x002D === first ? isNameStart$1(second) || 0x002D === second || isValidEscape$1(second, third) : !!isNameStart$1(first) || 0x005C === first && isValidEscape$1(first, second); +}, charCodeDefinitions$p.isLetter = isLetter$1, charCodeDefinitions$p.isLowercaseLetter = isLowercaseLetter$1, +charCodeDefinitions$p.isName = function(code) { + return isNameStart$1(code) || isDigit$2(code) || 0x002D === code; +}, charCodeDefinitions$p.isNameStart = isNameStart$1, charCodeDefinitions$p.isNewline = isNewline$1, +charCodeDefinitions$p.isNonAscii = isNonAscii$1, charCodeDefinitions$p.isNonPrintable = isNonPrintable$1, +charCodeDefinitions$p.isNumberStart = function(first, second, third) { + return 0x002B === first || 0x002D === first ? isDigit$2(second) ? 2 : 0x002E === second && isDigit$2(third) ? 3 : 0 : 0x002E === first ? isDigit$2(second) ? 2 : 0 : isDigit$2(first) ? 1 : 0; +}, charCodeDefinitions$p.isUppercaseLetter = isUppercaseLetter$1, charCodeDefinitions$p.isValidEscape = isValidEscape$1, +charCodeDefinitions$p.isWhiteSpace = isWhiteSpace$1; + +var utils$u = {}; + +const charCodeDefinitions$o = charCodeDefinitions$p; + +function getCharCode$1(source, offset) { + return offset < source.length ? source.charCodeAt(offset) : 0; +} + +function getNewlineLength$1(source, offset, code) { + return 13 === code && 10 === getCharCode$1(source, offset + 1) ? 2 : 1; +} + +function cmpChar$1(testStr, offset, referenceCode) { + let code = testStr.charCodeAt(offset); + return charCodeDefinitions$o.isUppercaseLetter(code) && (code |= 32), code === referenceCode; +} + +function findDecimalNumberEnd$1(source, offset) { + for (;offset < source.length && charCodeDefinitions$o.isDigit(source.charCodeAt(offset)); offset++) ; + return offset; +} + +function consumeEscaped$1(source, offset) { + if (offset += 2, charCodeDefinitions$o.isHexDigit(getCharCode$1(source, offset - 1))) { + for (const maxOffset = Math.min(source.length, offset + 5); offset < maxOffset && charCodeDefinitions$o.isHexDigit(getCharCode$1(source, offset)); offset++) ; + const code = getCharCode$1(source, offset); + charCodeDefinitions$o.isWhiteSpace(code) && (offset += getNewlineLength$1(source, offset, code)); + } + return offset; +} + +utils$u.cmpChar = cmpChar$1, utils$u.cmpStr = function(testStr, start, end, referenceStr) { + if (end - start !== referenceStr.length) return !1; + if (start < 0 || end > testStr.length) return !1; + for (let i = start; i < end; i++) { + const referenceCode = referenceStr.charCodeAt(i - start); + let testCode = testStr.charCodeAt(i); + if (charCodeDefinitions$o.isUppercaseLetter(testCode) && (testCode |= 32), testCode !== referenceCode) return !1; + } + return !0; +}, utils$u.consumeBadUrlRemnants = function(source, offset) { + for (;offset < source.length; offset++) { + const code = source.charCodeAt(offset); + if (0x0029 === code) { + offset++; + break; + } + charCodeDefinitions$o.isValidEscape(code, getCharCode$1(source, offset + 1)) && (offset = consumeEscaped$1(source, offset)); + } + return offset; +}, utils$u.consumeEscaped = consumeEscaped$1, utils$u.consumeName = function(source, offset) { + for (;offset < source.length; offset++) { + const code = source.charCodeAt(offset); + if (!charCodeDefinitions$o.isName(code)) { + if (!charCodeDefinitions$o.isValidEscape(code, getCharCode$1(source, offset + 1))) break; + offset = consumeEscaped$1(source, offset) - 1; + } + } + return offset; +}, utils$u.consumeNumber = function(source, offset) { + let code = source.charCodeAt(offset); + if (0x002B !== code && 0x002D !== code || (code = source.charCodeAt(offset += 1)), + charCodeDefinitions$o.isDigit(code) && (offset = findDecimalNumberEnd$1(source, offset + 1), + code = source.charCodeAt(offset)), 0x002E === code && charCodeDefinitions$o.isDigit(source.charCodeAt(offset + 1)) && (offset = findDecimalNumberEnd$1(source, offset += 2)), + cmpChar$1(source, offset, 101)) { + let sign = 0; + code = source.charCodeAt(offset + 1), 0x002D !== code && 0x002B !== code || (sign = 1, + code = source.charCodeAt(offset + 2)), charCodeDefinitions$o.isDigit(code) && (offset = findDecimalNumberEnd$1(source, offset + 1 + sign + 1)); + } + return offset; +}, utils$u.decodeEscaped = function(escaped) { + if (1 === escaped.length && !charCodeDefinitions$o.isHexDigit(escaped.charCodeAt(0))) return escaped[0]; + let code = parseInt(escaped, 16); + return (0 === code || code >= 0xD800 && code <= 0xDFFF || code > 0x10FFFF) && (code = 0xFFFD), + String.fromCodePoint(code); +}, utils$u.findDecimalNumberEnd = findDecimalNumberEnd$1, utils$u.findWhiteSpaceEnd = function(source, offset) { + for (;offset < source.length && charCodeDefinitions$o.isWhiteSpace(source.charCodeAt(offset)); offset++) ; + return offset; +}, utils$u.findWhiteSpaceStart = function(source, offset) { + for (;offset >= 0 && charCodeDefinitions$o.isWhiteSpace(source.charCodeAt(offset)); offset--) ; + return offset + 1; +}, utils$u.getNewlineLength = getNewlineLength$1; + +var names$g = [ "EOF-token", "ident-token", "function-token", "at-keyword-token", "hash-token", "string-token", "bad-string-token", "url-token", "bad-url-token", "delim-token", "number-token", "percentage-token", "dimension-token", "whitespace-token", "CDO-token", "CDC-token", "colon-token", "semicolon-token", "comma-token", "[-token", "]-token", "(-token", ")-token", "{-token", "}-token" ], OffsetToLocation$7 = {}, adoptBuffer$7 = {}; + +adoptBuffer$7.adoptBuffer = function(buffer = null, size) { + return null === buffer || buffer.length < size ? new Uint32Array(Math.max(size + 1024, 16384)) : buffer; +}; + +const adoptBuffer$5 = adoptBuffer$7, charCodeDefinitions$n = charCodeDefinitions$p; + +function computeLinesAndColumns$1(host) { + const source = host.source, sourceLength = source.length, startOffset = source.length > 0 ? charCodeDefinitions$n.isBOM(source.charCodeAt(0)) : 0, lines = adoptBuffer$5.adoptBuffer(host.lines, sourceLength), columns = adoptBuffer$5.adoptBuffer(host.columns, sourceLength); + let line = host.startLine, column = host.startColumn; + for (let i = startOffset; i < sourceLength; i++) { + const code = source.charCodeAt(i); + lines[i] = line, columns[i] = column++, 10 !== code && 13 !== code && 12 !== code || (13 === code && i + 1 < sourceLength && 10 === source.charCodeAt(i + 1) && (i++, + lines[i] = line, columns[i] = column), line++, column = 1); + } + lines[sourceLength] = line, columns[sourceLength] = column, host.lines = lines, + host.columns = columns, host.computed = !0; +} + +OffsetToLocation$7.OffsetToLocation = class { + constructor() { + this.lines = null, this.columns = null, this.computed = !1; + } + setSource(source, startOffset = 0, startLine = 1, startColumn = 1) { + this.source = source, this.startOffset = startOffset, this.startLine = startLine, + this.startColumn = startColumn, this.computed = !1; + } + getLocation(offset, filename) { + return this.computed || computeLinesAndColumns$1(this), { + source: filename, + offset: this.startOffset + offset, + line: this.lines[offset], + column: this.columns[offset] + }; + } + getLocationRange(start, end, filename) { + return this.computed || computeLinesAndColumns$1(this), { + source: filename, + start: { + offset: this.startOffset + start, + line: this.lines[start], + column: this.columns[start] + }, + end: { + offset: this.startOffset + end, + line: this.lines[end], + column: this.columns[end] + } + }; + } +}; + +var TokenStream$9 = {}; + +const adoptBuffer$4 = adoptBuffer$7, utils$t = utils$u, names$f = names$g, types$1H = types$1I, balancePair$3 = new Map([ [ types$1H.Function, types$1H.RightParenthesis ], [ types$1H.LeftParenthesis, types$1H.RightParenthesis ], [ types$1H.LeftSquareBracket, types$1H.RightSquareBracket ], [ types$1H.LeftCurlyBracket, types$1H.RightCurlyBracket ] ]); + +TokenStream$9.TokenStream = class { + constructor(source, tokenize) { + this.setSource(source, tokenize); + } + reset() { + this.eof = !1, this.tokenIndex = -1, this.tokenType = 0, this.tokenStart = this.firstCharOffset, + this.tokenEnd = this.firstCharOffset; + } + setSource(source = "", tokenize = (() => {})) { + const sourceLength = (source = String(source || "")).length, offsetAndType = adoptBuffer$4.adoptBuffer(this.offsetAndType, source.length + 1), balance = adoptBuffer$4.adoptBuffer(this.balance, source.length + 1); + let tokenCount = 0, balanceCloseType = 0, balanceStart = 0, firstCharOffset = -1; + for (this.offsetAndType = null, this.balance = null, tokenize(source, ((type, start, end) => { + switch (type) { + default: + balance[tokenCount] = sourceLength; + break; + + case balanceCloseType: + { + let balancePrev = 16777215 & balanceStart; + for (balanceStart = balance[balancePrev], balanceCloseType = balanceStart >> 24, + balance[tokenCount] = balancePrev, balance[balancePrev++] = tokenCount; balancePrev < tokenCount; balancePrev++) balance[balancePrev] === sourceLength && (balance[balancePrev] = tokenCount); + break; + } + + case types$1H.LeftParenthesis: + case types$1H.Function: + case types$1H.LeftSquareBracket: + case types$1H.LeftCurlyBracket: + balance[tokenCount] = balanceStart, balanceCloseType = balancePair$3.get(type), + balanceStart = balanceCloseType << 24 | tokenCount; + } + offsetAndType[tokenCount++] = type << 24 | end, -1 === firstCharOffset && (firstCharOffset = start); + })), offsetAndType[tokenCount] = types$1H.EOF << 24 | sourceLength, balance[tokenCount] = sourceLength, + balance[sourceLength] = sourceLength; 0 !== balanceStart; ) { + const balancePrev = 16777215 & balanceStart; + balanceStart = balance[balancePrev], balance[balancePrev] = sourceLength; + } + this.source = source, this.firstCharOffset = -1 === firstCharOffset ? 0 : firstCharOffset, + this.tokenCount = tokenCount, this.offsetAndType = offsetAndType, this.balance = balance, + this.reset(), this.next(); + } + lookupType(offset) { + return (offset += this.tokenIndex) < this.tokenCount ? this.offsetAndType[offset] >> 24 : types$1H.EOF; + } + lookupOffset(offset) { + return (offset += this.tokenIndex) < this.tokenCount ? 16777215 & this.offsetAndType[offset - 1] : this.source.length; + } + lookupValue(offset, referenceStr) { + return (offset += this.tokenIndex) < this.tokenCount && utils$t.cmpStr(this.source, 16777215 & this.offsetAndType[offset - 1], 16777215 & this.offsetAndType[offset], referenceStr); + } + getTokenStart(tokenIndex) { + return tokenIndex === this.tokenIndex ? this.tokenStart : tokenIndex > 0 ? tokenIndex < this.tokenCount ? 16777215 & this.offsetAndType[tokenIndex - 1] : 16777215 & this.offsetAndType[this.tokenCount] : this.firstCharOffset; + } + substrToCursor(start) { + return this.source.substring(start, this.tokenStart); + } + isBalanceEdge(pos) { + return this.balance[this.tokenIndex] < pos; + } + isDelim(code, offset) { + return offset ? this.lookupType(offset) === types$1H.Delim && this.source.charCodeAt(this.lookupOffset(offset)) === code : this.tokenType === types$1H.Delim && this.source.charCodeAt(this.tokenStart) === code; + } + skip(tokenCount) { + let next = this.tokenIndex + tokenCount; + next < this.tokenCount ? (this.tokenIndex = next, this.tokenStart = 16777215 & this.offsetAndType[next - 1], + next = this.offsetAndType[next], this.tokenType = next >> 24, this.tokenEnd = 16777215 & next) : (this.tokenIndex = this.tokenCount, + this.next()); + } + next() { + let next = this.tokenIndex + 1; + next < this.tokenCount ? (this.tokenIndex = next, this.tokenStart = this.tokenEnd, + next = this.offsetAndType[next], this.tokenType = next >> 24, this.tokenEnd = 16777215 & next) : (this.eof = !0, + this.tokenIndex = this.tokenCount, this.tokenType = types$1H.EOF, this.tokenStart = this.tokenEnd = this.source.length); + } + skipSC() { + for (;this.tokenType === types$1H.WhiteSpace || this.tokenType === types$1H.Comment; ) this.next(); + } + skipUntilBalanced(startToken, stopConsume) { + let balanceEnd, offset, cursor = startToken; + loop: for (;cursor < this.tokenCount && (balanceEnd = this.balance[cursor], !(balanceEnd < startToken)); cursor++) switch (offset = cursor > 0 ? 16777215 & this.offsetAndType[cursor - 1] : this.firstCharOffset, + stopConsume(this.source.charCodeAt(offset))) { + case 1: + break loop; + + case 2: + cursor++; + break loop; + + default: + this.balance[balanceEnd] === cursor && (cursor = balanceEnd); + } + this.skip(cursor - this.tokenIndex); + } + forEachToken(fn) { + for (let i = 0, offset = this.firstCharOffset; i < this.tokenCount; i++) { + const start = offset, item = this.offsetAndType[i], end = 16777215 & item; + offset = end, fn(item >> 24, start, end, i); + } + } + dump() { + const tokens = new Array(this.tokenCount); + return this.forEachToken(((type, start, end, index) => { + tokens[index] = { + idx: index, + type: names$f[type], + chunk: this.source.substring(start, end), + balance: this.balance[index] + }; + })), tokens; + } +}; + +const types$1G = types$1I, charCodeDefinitions$m = charCodeDefinitions$p, utils$s = utils$u, names$e = names$g, OffsetToLocation$5 = OffsetToLocation$7, TokenStream$7 = TokenStream$9; + +tokenizer$5.AtKeyword = types$1G.AtKeyword, tokenizer$5.BadString = types$1G.BadString, +tokenizer$5.BadUrl = types$1G.BadUrl, tokenizer$5.CDC = types$1G.CDC, tokenizer$5.CDO = types$1G.CDO, +tokenizer$5.Colon = types$1G.Colon, tokenizer$5.Comma = types$1G.Comma, tokenizer$5.Comment = types$1G.Comment, +tokenizer$5.Delim = types$1G.Delim, tokenizer$5.Dimension = types$1G.Dimension, +tokenizer$5.EOF = types$1G.EOF, tokenizer$5.Function = types$1G.Function, tokenizer$5.Hash = types$1G.Hash, +tokenizer$5.Ident = types$1G.Ident, tokenizer$5.LeftCurlyBracket = types$1G.LeftCurlyBracket, +tokenizer$5.LeftParenthesis = types$1G.LeftParenthesis, tokenizer$5.LeftSquareBracket = types$1G.LeftSquareBracket, +tokenizer$5.Number = types$1G.Number, tokenizer$5.Percentage = types$1G.Percentage, +tokenizer$5.RightCurlyBracket = types$1G.RightCurlyBracket, tokenizer$5.RightParenthesis = types$1G.RightParenthesis, +tokenizer$5.RightSquareBracket = types$1G.RightSquareBracket, tokenizer$5.Semicolon = types$1G.Semicolon, +tokenizer$5.String = types$1G.String, tokenizer$5.Url = types$1G.Url, tokenizer$5.WhiteSpace = types$1G.WhiteSpace, +tokenizer$5.tokenTypes = types$1G, tokenizer$5.DigitCategory = charCodeDefinitions$m.DigitCategory, +tokenizer$5.EofCategory = charCodeDefinitions$m.EofCategory, tokenizer$5.NameStartCategory = charCodeDefinitions$m.NameStartCategory, +tokenizer$5.NonPrintableCategory = charCodeDefinitions$m.NonPrintableCategory, tokenizer$5.WhiteSpaceCategory = charCodeDefinitions$m.WhiteSpaceCategory, +tokenizer$5.charCodeCategory = charCodeDefinitions$m.charCodeCategory, tokenizer$5.isBOM = charCodeDefinitions$m.isBOM, +tokenizer$5.isDigit = charCodeDefinitions$m.isDigit, tokenizer$5.isHexDigit = charCodeDefinitions$m.isHexDigit, +tokenizer$5.isIdentifierStart = charCodeDefinitions$m.isIdentifierStart, tokenizer$5.isLetter = charCodeDefinitions$m.isLetter, +tokenizer$5.isLowercaseLetter = charCodeDefinitions$m.isLowercaseLetter, tokenizer$5.isName = charCodeDefinitions$m.isName, +tokenizer$5.isNameStart = charCodeDefinitions$m.isNameStart, tokenizer$5.isNewline = charCodeDefinitions$m.isNewline, +tokenizer$5.isNonAscii = charCodeDefinitions$m.isNonAscii, tokenizer$5.isNonPrintable = charCodeDefinitions$m.isNonPrintable, +tokenizer$5.isNumberStart = charCodeDefinitions$m.isNumberStart, tokenizer$5.isUppercaseLetter = charCodeDefinitions$m.isUppercaseLetter, +tokenizer$5.isValidEscape = charCodeDefinitions$m.isValidEscape, tokenizer$5.isWhiteSpace = charCodeDefinitions$m.isWhiteSpace, +tokenizer$5.cmpChar = utils$s.cmpChar, tokenizer$5.cmpStr = utils$s.cmpStr, tokenizer$5.consumeBadUrlRemnants = utils$s.consumeBadUrlRemnants, +tokenizer$5.consumeEscaped = utils$s.consumeEscaped, tokenizer$5.consumeName = utils$s.consumeName, +tokenizer$5.consumeNumber = utils$s.consumeNumber, tokenizer$5.decodeEscaped = utils$s.decodeEscaped, +tokenizer$5.findDecimalNumberEnd = utils$s.findDecimalNumberEnd, tokenizer$5.findWhiteSpaceEnd = utils$s.findWhiteSpaceEnd, +tokenizer$5.findWhiteSpaceStart = utils$s.findWhiteSpaceStart, tokenizer$5.getNewlineLength = utils$s.getNewlineLength, +tokenizer$5.tokenNames = names$e, tokenizer$5.OffsetToLocation = OffsetToLocation$5.OffsetToLocation, +tokenizer$5.TokenStream = TokenStream$7.TokenStream, tokenizer$5.tokenize = function(source, onToken) { + function getCharCode(offset) { + return offset < sourceLength ? source.charCodeAt(offset) : 0; + } + function consumeNumericToken() { + return offset = utils$s.consumeNumber(source, offset), charCodeDefinitions$m.isIdentifierStart(getCharCode(offset), getCharCode(offset + 1), getCharCode(offset + 2)) ? (type = types$1G.Dimension, + void (offset = utils$s.consumeName(source, offset))) : 0x0025 === getCharCode(offset) ? (type = types$1G.Percentage, + void offset++) : void (type = types$1G.Number); + } + function consumeIdentLikeToken() { + const nameStartOffset = offset; + return offset = utils$s.consumeName(source, offset), utils$s.cmpStr(source, nameStartOffset, offset, "url") && 0x0028 === getCharCode(offset) ? (offset = utils$s.findWhiteSpaceEnd(source, offset + 1), + 0x0022 === getCharCode(offset) || 0x0027 === getCharCode(offset) ? (type = types$1G.Function, + void (offset = nameStartOffset + 4)) : void function() { + for (type = types$1G.Url, offset = utils$s.findWhiteSpaceEnd(source, offset); offset < source.length; offset++) { + const code = source.charCodeAt(offset); + switch (charCodeDefinitions$m.charCodeCategory(code)) { + case 0x0029: + return void offset++; + + case charCodeDefinitions$m.WhiteSpaceCategory: + return offset = utils$s.findWhiteSpaceEnd(source, offset), 0x0029 === getCharCode(offset) || offset >= source.length ? void (offset < source.length && offset++) : (offset = utils$s.consumeBadUrlRemnants(source, offset), + void (type = types$1G.BadUrl)); + + case 0x0022: + case 0x0027: + case 0x0028: + case charCodeDefinitions$m.NonPrintableCategory: + return offset = utils$s.consumeBadUrlRemnants(source, offset), void (type = types$1G.BadUrl); + + case 0x005C: + if (charCodeDefinitions$m.isValidEscape(code, getCharCode(offset + 1))) { + offset = utils$s.consumeEscaped(source, offset) - 1; + break; + } + return offset = utils$s.consumeBadUrlRemnants(source, offset), void (type = types$1G.BadUrl); + } + } + }()) : 0x0028 === getCharCode(offset) ? (type = types$1G.Function, void offset++) : void (type = types$1G.Ident); + } + function consumeStringToken(endingCodePoint) { + for (endingCodePoint || (endingCodePoint = getCharCode(offset++)), type = types$1G.String; offset < source.length; offset++) { + const code = source.charCodeAt(offset); + switch (charCodeDefinitions$m.charCodeCategory(code)) { + case endingCodePoint: + return void offset++; + + case charCodeDefinitions$m.WhiteSpaceCategory: + if (charCodeDefinitions$m.isNewline(code)) return offset += utils$s.getNewlineLength(source, offset, code), + void (type = types$1G.BadString); + break; + + case 0x005C: + if (offset === source.length - 1) break; + const nextCode = getCharCode(offset + 1); + charCodeDefinitions$m.isNewline(nextCode) ? offset += utils$s.getNewlineLength(source, offset + 1, nextCode) : charCodeDefinitions$m.isValidEscape(code, nextCode) && (offset = utils$s.consumeEscaped(source, offset) - 1); + } + } + } + const sourceLength = (source = String(source || "")).length; + let type, start = charCodeDefinitions$m.isBOM(getCharCode(0)), offset = start; + for (;offset < sourceLength; ) { + const code = source.charCodeAt(offset); + switch (charCodeDefinitions$m.charCodeCategory(code)) { + case charCodeDefinitions$m.WhiteSpaceCategory: + type = types$1G.WhiteSpace, offset = utils$s.findWhiteSpaceEnd(source, offset + 1); + break; + + case 0x0022: + consumeStringToken(); + break; + + case 0x0023: + charCodeDefinitions$m.isName(getCharCode(offset + 1)) || charCodeDefinitions$m.isValidEscape(getCharCode(offset + 1), getCharCode(offset + 2)) ? (type = types$1G.Hash, + offset = utils$s.consumeName(source, offset + 1)) : (type = types$1G.Delim, offset++); + break; + + case 0x0027: + consumeStringToken(); + break; + + case 0x0028: + type = types$1G.LeftParenthesis, offset++; + break; + + case 0x0029: + type = types$1G.RightParenthesis, offset++; + break; + + case 0x002B: + charCodeDefinitions$m.isNumberStart(code, getCharCode(offset + 1), getCharCode(offset + 2)) ? consumeNumericToken() : (type = types$1G.Delim, + offset++); + break; + + case 0x002C: + type = types$1G.Comma, offset++; + break; + + case 0x002D: + charCodeDefinitions$m.isNumberStart(code, getCharCode(offset + 1), getCharCode(offset + 2)) ? consumeNumericToken() : 0x002D === getCharCode(offset + 1) && 0x003E === getCharCode(offset + 2) ? (type = types$1G.CDC, + offset += 3) : charCodeDefinitions$m.isIdentifierStart(code, getCharCode(offset + 1), getCharCode(offset + 2)) ? consumeIdentLikeToken() : (type = types$1G.Delim, + offset++); + break; + + case 0x002E: + charCodeDefinitions$m.isNumberStart(code, getCharCode(offset + 1), getCharCode(offset + 2)) ? consumeNumericToken() : (type = types$1G.Delim, + offset++); + break; + + case 0x002F: + 0x002A === getCharCode(offset + 1) ? (type = types$1G.Comment, offset = source.indexOf("*/", offset + 2), + offset = -1 === offset ? source.length : offset + 2) : (type = types$1G.Delim, offset++); + break; + + case 0x003A: + type = types$1G.Colon, offset++; + break; + + case 0x003B: + type = types$1G.Semicolon, offset++; + break; + + case 0x003C: + 0x0021 === getCharCode(offset + 1) && 0x002D === getCharCode(offset + 2) && 0x002D === getCharCode(offset + 3) ? (type = types$1G.CDO, + offset += 4) : (type = types$1G.Delim, offset++); + break; + + case 0x0040: + charCodeDefinitions$m.isIdentifierStart(getCharCode(offset + 1), getCharCode(offset + 2), getCharCode(offset + 3)) ? (type = types$1G.AtKeyword, + offset = utils$s.consumeName(source, offset + 1)) : (type = types$1G.Delim, offset++); + break; + + case 0x005B: + type = types$1G.LeftSquareBracket, offset++; + break; + + case 0x005C: + charCodeDefinitions$m.isValidEscape(code, getCharCode(offset + 1)) ? consumeIdentLikeToken() : (type = types$1G.Delim, + offset++); + break; + + case 0x005D: + type = types$1G.RightSquareBracket, offset++; + break; + + case 0x007B: + type = types$1G.LeftCurlyBracket, offset++; + break; + + case 0x007D: + type = types$1G.RightCurlyBracket, offset++; + break; + + case charCodeDefinitions$m.DigitCategory: + consumeNumericToken(); + break; + + case charCodeDefinitions$m.NameStartCategory: + consumeIdentLikeToken(); + break; + + default: + type = types$1G.Delim, offset++; + } + onToken(type, start, start = offset); + } +}; + +var create$e = {}, List$f = {}; + +let releasedCursors$1 = null, List$e = class List { + static createItem(data) { + return { + prev: null, + next: null, + data + }; + } + constructor() { + this.head = null, this.tail = null, this.cursor = null; + } + createItem(data) { + return List.createItem(data); + } + allocateCursor(prev, next) { + let cursor; + return null !== releasedCursors$1 ? (cursor = releasedCursors$1, releasedCursors$1 = releasedCursors$1.cursor, + cursor.prev = prev, cursor.next = next, cursor.cursor = this.cursor) : cursor = { + prev, + next, + cursor: this.cursor + }, this.cursor = cursor, cursor; + } + releaseCursor() { + const {cursor} = this; + this.cursor = cursor.cursor, cursor.prev = null, cursor.next = null, cursor.cursor = releasedCursors$1, + releasedCursors$1 = cursor; + } + updateCursors(prevOld, prevNew, nextOld, nextNew) { + let {cursor} = this; + for (;null !== cursor; ) cursor.prev === prevOld && (cursor.prev = prevNew), cursor.next === nextOld && (cursor.next = nextNew), + cursor = cursor.cursor; + } + * [Symbol.iterator]() { + for (let cursor = this.head; null !== cursor; cursor = cursor.next) yield cursor.data; + } + get size() { + let size = 0; + for (let cursor = this.head; null !== cursor; cursor = cursor.next) size++; + return size; + } + get isEmpty() { + return null === this.head; + } + get first() { + return this.head && this.head.data; + } + get last() { + return this.tail && this.tail.data; + } + fromArray(array) { + let cursor = null; + this.head = null; + for (let data of array) { + const item = List.createItem(data); + null !== cursor ? cursor.next = item : this.head = item, item.prev = cursor, cursor = item; + } + return this.tail = cursor, this; + } + toArray() { + return [ ...this ]; + } + toJSON() { + return [ ...this ]; + } + forEach(fn, thisArg = this) { + const cursor = this.allocateCursor(null, this.head); + for (;null !== cursor.next; ) { + const item = cursor.next; + cursor.next = item.next, fn.call(thisArg, item.data, item, this); + } + this.releaseCursor(); + } + forEachRight(fn, thisArg = this) { + const cursor = this.allocateCursor(this.tail, null); + for (;null !== cursor.prev; ) { + const item = cursor.prev; + cursor.prev = item.prev, fn.call(thisArg, item.data, item, this); + } + this.releaseCursor(); + } + reduce(fn, initialValue, thisArg = this) { + let item, cursor = this.allocateCursor(null, this.head), acc = initialValue; + for (;null !== cursor.next; ) item = cursor.next, cursor.next = item.next, acc = fn.call(thisArg, acc, item.data, item, this); + return this.releaseCursor(), acc; + } + reduceRight(fn, initialValue, thisArg = this) { + let item, cursor = this.allocateCursor(this.tail, null), acc = initialValue; + for (;null !== cursor.prev; ) item = cursor.prev, cursor.prev = item.prev, acc = fn.call(thisArg, acc, item.data, item, this); + return this.releaseCursor(), acc; + } + some(fn, thisArg = this) { + for (let cursor = this.head; null !== cursor; cursor = cursor.next) if (fn.call(thisArg, cursor.data, cursor, this)) return !0; + return !1; + } + map(fn, thisArg = this) { + const result = new List; + for (let cursor = this.head; null !== cursor; cursor = cursor.next) result.appendData(fn.call(thisArg, cursor.data, cursor, this)); + return result; + } + filter(fn, thisArg = this) { + const result = new List; + for (let cursor = this.head; null !== cursor; cursor = cursor.next) fn.call(thisArg, cursor.data, cursor, this) && result.appendData(cursor.data); + return result; + } + nextUntil(start, fn, thisArg = this) { + if (null === start) return; + const cursor = this.allocateCursor(null, start); + for (;null !== cursor.next; ) { + const item = cursor.next; + if (cursor.next = item.next, fn.call(thisArg, item.data, item, this)) break; + } + this.releaseCursor(); + } + prevUntil(start, fn, thisArg = this) { + if (null === start) return; + const cursor = this.allocateCursor(start, null); + for (;null !== cursor.prev; ) { + const item = cursor.prev; + if (cursor.prev = item.prev, fn.call(thisArg, item.data, item, this)) break; + } + this.releaseCursor(); + } + clear() { + this.head = null, this.tail = null; + } + copy() { + const result = new List; + for (let data of this) result.appendData(data); + return result; + } + prepend(item) { + return this.updateCursors(null, item, this.head, item), null !== this.head ? (this.head.prev = item, + item.next = this.head) : this.tail = item, this.head = item, this; + } + prependData(data) { + return this.prepend(List.createItem(data)); + } + append(item) { + return this.insert(item); + } + appendData(data) { + return this.insert(List.createItem(data)); + } + insert(item, before = null) { + if (null !== before) if (this.updateCursors(before.prev, item, before, item), null === before.prev) { + if (this.head !== before) throw new Error("before doesn't belong to list"); + this.head = item, before.prev = item, item.next = before, this.updateCursors(null, item); + } else before.prev.next = item, item.prev = before.prev, before.prev = item, item.next = before; else this.updateCursors(this.tail, item, null, item), + null !== this.tail ? (this.tail.next = item, item.prev = this.tail) : this.head = item, + this.tail = item; + return this; + } + insertData(data, before) { + return this.insert(List.createItem(data), before); + } + remove(item) { + if (this.updateCursors(item, item.prev, item, item.next), null !== item.prev) item.prev.next = item.next; else { + if (this.head !== item) throw new Error("item doesn't belong to list"); + this.head = item.next; + } + if (null !== item.next) item.next.prev = item.prev; else { + if (this.tail !== item) throw new Error("item doesn't belong to list"); + this.tail = item.prev; + } + return item.prev = null, item.next = null, item; + } + push(data) { + this.insert(List.createItem(data)); + } + pop() { + return null !== this.tail ? this.remove(this.tail) : null; + } + unshift(data) { + this.prepend(List.createItem(data)); + } + shift() { + return null !== this.head ? this.remove(this.head) : null; + } + prependList(list) { + return this.insertList(list, this.head); + } + appendList(list) { + return this.insertList(list); + } + insertList(list, before) { + return null === list.head || (null != before ? (this.updateCursors(before.prev, list.tail, before, list.head), + null !== before.prev ? (before.prev.next = list.head, list.head.prev = before.prev) : this.head = list.head, + before.prev = list.tail, list.tail.next = before) : (this.updateCursors(this.tail, list.tail, null, list.head), + null !== this.tail ? (this.tail.next = list.head, list.head.prev = this.tail) : this.head = list.head, + this.tail = list.tail), list.head = null, list.tail = null), this; + } + replace(oldItem, newItemOrList) { + "head" in newItemOrList ? this.insertList(newItemOrList, oldItem) : this.insert(newItemOrList, oldItem), + this.remove(oldItem); + } +}; + +List$f.List = List$e; + +var _SyntaxError$3 = {}, createCustomError$9 = {}; + +createCustomError$9.createCustomError = function(name, message) { + const error = Object.create(SyntaxError.prototype), errorStack = new Error; + return Object.assign(error, { + name, + message, + get stack() { + return (errorStack.stack || "").replace(/^(.+\n){1,3}/, `${name}: ${message}\n`); + } + }); +}; + +const createCustomError$7 = createCustomError$9, MAX_LINE_LENGTH$1 = 100, OFFSET_CORRECTION$1 = 60, TAB_REPLACEMENT$1 = " "; + +function sourceFragment$1({source, line, column}, extraLines) { + function processLines(start, end) { + return lines.slice(start, end).map(((line, idx) => String(start + idx + 1).padStart(maxNumLength) + " |" + line)).join("\n"); + } + const lines = source.split(/\r\n?|\n|\f/), startLine = Math.max(1, line - extraLines) - 1, endLine = Math.min(line + extraLines, lines.length + 1), maxNumLength = Math.max(4, String(endLine).length) + 1; + let cutLeft = 0; + (column += (TAB_REPLACEMENT$1.length - 1) * (lines[line - 1].substr(0, column - 1).match(/\t/g) || []).length) > MAX_LINE_LENGTH$1 && (cutLeft = column - OFFSET_CORRECTION$1 + 3, + column = OFFSET_CORRECTION$1 - 2); + for (let i = startLine; i <= endLine; i++) i >= 0 && i < lines.length && (lines[i] = lines[i].replace(/\t/g, TAB_REPLACEMENT$1), + lines[i] = (cutLeft > 0 && lines[i].length > cutLeft ? "…" : "") + lines[i].substr(cutLeft, MAX_LINE_LENGTH$1 - 2) + (lines[i].length > cutLeft + MAX_LINE_LENGTH$1 - 1 ? "…" : "")); + return [ processLines(startLine, line), new Array(column + maxNumLength + 2).join("-") + "^", processLines(line, endLine) ].filter(Boolean).join("\n"); +} + +_SyntaxError$3.SyntaxError = function(message, source, offset, line, column) { + return Object.assign(createCustomError$7.createCustomError("SyntaxError", message), { + source, + offset, + line, + column, + sourceFragment: extraLines => sourceFragment$1({ + source, + line, + column + }, isNaN(extraLines) ? 0 : extraLines), + get formattedMessage() { + return `Parse error: ${message}\n` + sourceFragment$1({ + source, + line, + column + }, 2); + } + }); +}; + +var sequence$3 = {}; + +const types$1F = types$1I; + +sequence$3.readSequence = function(recognizer) { + const children = this.createList(); + let space = !1; + const context = { + recognizer + }; + for (;!this.eof; ) { + switch (this.tokenType) { + case types$1F.Comment: + this.next(); + continue; + + case types$1F.WhiteSpace: + space = !0, this.next(); + continue; + } + let child = recognizer.getNode.call(this, context); + if (void 0 === child) break; + space && (recognizer.onWhiteSpace && recognizer.onWhiteSpace.call(this, child, children, context), + space = !1), children.push(child); + } + return space && recognizer.onWhiteSpace && recognizer.onWhiteSpace.call(this, null, children, context), + children; +}; + +const List$d = List$f, SyntaxError$9 = _SyntaxError$3, index$j = tokenizer$5, sequence$2 = sequence$3, OffsetToLocation$4 = OffsetToLocation$7, TokenStream$6 = TokenStream$9, utils$r = utils$u, types$1E = types$1I, names$d = names$g, NOOP$1 = () => {}; + +function createParseContext$1(name) { + return function() { + return this[name](); + }; +} + +function fetchParseValues$1(dict) { + const result = Object.create(null); + for (const name in dict) { + const item = dict[name], fn = item.parse || item; + fn && (result[name] = fn); + } + return result; +} + +create$e.createParser = function(config) { + let source = "", filename = "", needPositions = !1, onParseError = NOOP$1, onParseErrorThrow = !1; + const locationMap = new OffsetToLocation$4.OffsetToLocation, parser = Object.assign(new TokenStream$6.TokenStream, function(config) { + const parseConfig = { + context: Object.create(null), + scope: Object.assign(Object.create(null), config.scope), + atrule: fetchParseValues$1(config.atrule), + pseudo: fetchParseValues$1(config.pseudo), + node: fetchParseValues$1(config.node) + }; + for (const name in config.parseContext) switch (typeof config.parseContext[name]) { + case "function": + parseConfig.context[name] = config.parseContext[name]; + break; + + case "string": + parseConfig.context[name] = createParseContext$1(config.parseContext[name]); + } + return { + config: parseConfig, + ...parseConfig, + ...parseConfig.node + }; + }(config || {}), { + parseAtrulePrelude: !0, + parseRulePrelude: !0, + parseValue: !0, + parseCustomProperty: !1, + readSequence: sequence$2.readSequence, + consumeUntilBalanceEnd: () => 0, + consumeUntilLeftCurlyBracket: code => 123 === code ? 1 : 0, + consumeUntilLeftCurlyBracketOrSemicolon: code => 123 === code || 59 === code ? 1 : 0, + consumeUntilExclamationMarkOrSemicolon: code => 33 === code || 59 === code ? 1 : 0, + consumeUntilSemicolonIncluded: code => 59 === code ? 2 : 0, + createList: () => new List$d.List, + createSingleNodeList: node => (new List$d.List).appendData(node), + getFirstListNode: list => list && list.first, + getLastListNode: list => list && list.last, + parseWithFallback(consumer, fallback) { + const startToken = this.tokenIndex; + try { + return consumer.call(this); + } catch (e) { + if (onParseErrorThrow) throw e; + const fallbackNode = fallback.call(this, startToken); + return onParseErrorThrow = !0, onParseError(e, fallbackNode), onParseErrorThrow = !1, + fallbackNode; + } + }, + lookupNonWSType(offset) { + let type; + do { + if (type = this.lookupType(offset++), type !== types$1E.WhiteSpace) return type; + } while (0 !== type); + return 0; + }, + charCodeAt: offset => offset >= 0 && offset < source.length ? source.charCodeAt(offset) : 0, + substring: (offsetStart, offsetEnd) => source.substring(offsetStart, offsetEnd), + substrToCursor(start) { + return this.source.substring(start, this.tokenStart); + }, + cmpChar: (offset, charCode) => utils$r.cmpChar(source, offset, charCode), + cmpStr: (offsetStart, offsetEnd, str) => utils$r.cmpStr(source, offsetStart, offsetEnd, str), + consume(tokenType) { + const start = this.tokenStart; + return this.eat(tokenType), this.substrToCursor(start); + }, + consumeFunctionName() { + const name = source.substring(this.tokenStart, this.tokenEnd - 1); + return this.eat(types$1E.Function), name; + }, + consumeNumber(type) { + const number = source.substring(this.tokenStart, utils$r.consumeNumber(source, this.tokenStart)); + return this.eat(type), number; + }, + eat(tokenType) { + if (this.tokenType !== tokenType) { + const tokenName = names$d[tokenType].slice(0, -6).replace(/-/g, " ").replace(/^./, (m => m.toUpperCase())); + let message = `${/[[\](){}]/.test(tokenName) ? `"${tokenName}"` : tokenName} is expected`, offset = this.tokenStart; + switch (tokenType) { + case types$1E.Ident: + this.tokenType === types$1E.Function || this.tokenType === types$1E.Url ? (offset = this.tokenEnd - 1, + message = "Identifier is expected but function found") : message = "Identifier is expected"; + break; + + case types$1E.Hash: + this.isDelim(35) && (this.next(), offset++, message = "Name is expected"); + break; + + case types$1E.Percentage: + this.tokenType === types$1E.Number && (offset = this.tokenEnd, message = "Percent sign is expected"); + } + this.error(message, offset); + } + this.next(); + }, + eatIdent(name) { + this.tokenType === types$1E.Ident && !1 !== this.lookupValue(0, name) || this.error(`Identifier "${name}" is expected`), + this.next(); + }, + eatDelim(code) { + this.isDelim(code) || this.error(`Delim "${String.fromCharCode(code)}" is expected`), + this.next(); + }, + getLocation: (start, end) => needPositions ? locationMap.getLocationRange(start, end, filename) : null, + getLocationFromList(list) { + if (needPositions) { + const head = this.getFirstListNode(list), tail = this.getLastListNode(list); + return locationMap.getLocationRange(null !== head ? head.loc.start.offset - locationMap.startOffset : this.tokenStart, null !== tail ? tail.loc.end.offset - locationMap.startOffset : this.tokenStart, filename); + } + return null; + }, + error(message, offset) { + const location = void 0 !== offset && offset < source.length ? locationMap.getLocation(offset) : this.eof ? locationMap.getLocation(utils$r.findWhiteSpaceStart(source, source.length - 1)) : locationMap.getLocation(this.tokenStart); + throw new SyntaxError$9.SyntaxError(message || "Unexpected input", source, location.offset, location.line, location.column); + } + }); + return Object.assign((function(source_, options) { + source = source_, options = options || {}, parser.setSource(source, index$j.tokenize), + locationMap.setSource(source, options.offset, options.line, options.column), filename = options.filename || "", + needPositions = Boolean(options.positions), onParseError = "function" == typeof options.onParseError ? options.onParseError : NOOP$1, + onParseErrorThrow = !1, parser.parseAtrulePrelude = !("parseAtrulePrelude" in options) || Boolean(options.parseAtrulePrelude), + parser.parseRulePrelude = !("parseRulePrelude" in options) || Boolean(options.parseRulePrelude), + parser.parseValue = !("parseValue" in options) || Boolean(options.parseValue), parser.parseCustomProperty = "parseCustomProperty" in options && Boolean(options.parseCustomProperty); + const {context = "default", onComment} = options; + if (context in parser.context == !1) throw new Error("Unknown context `" + context + "`"); + "function" == typeof onComment && parser.forEachToken(((type, start, end) => { + if (type === types$1E.Comment) { + const loc = parser.getLocation(start, end), value = utils$r.cmpStr(source, end - 2, end, "*/") ? source.slice(start + 2, end - 2) : source.slice(start + 2, end); + onComment(value, loc); + } + })); + const ast = parser.context[context].call(parser, options); + return parser.eof || parser.error(), ast; + }), { + SyntaxError: SyntaxError$9.SyntaxError, + config: parser.config + }); +}; + +var create$d = {}, sourceMap$3 = {}, sourceMapGenerator = {}, base64Vlq = {}, base64$1 = {}, intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""); + +base64$1.encode = function(number) { + if (0 <= number && number < intToCharMap.length) return intToCharMap[number]; + throw new TypeError("Must be between 0 and 63: " + number); +}, base64$1.decode = function(charCode) { + return 65 <= charCode && charCode <= 90 ? charCode - 65 : 97 <= charCode && charCode <= 122 ? charCode - 97 + 26 : 48 <= charCode && charCode <= 57 ? charCode - 48 + 52 : 43 == charCode ? 62 : 47 == charCode ? 63 : -1; +}; + +var base64 = base64$1; + +base64Vlq.encode = function(aValue) { + var digit, encoded = "", vlq = function(aValue) { + return aValue < 0 ? 1 + (-aValue << 1) : 0 + (aValue << 1); + }(aValue); + do { + digit = 31 & vlq, (vlq >>>= 5) > 0 && (digit |= 32), encoded += base64.encode(digit); + } while (vlq > 0); + return encoded; +}, base64Vlq.decode = function(aStr, aIndex, aOutParam) { + var continuation, digit, aValue, shifted, strLen = aStr.length, result = 0, shift = 0; + do { + if (aIndex >= strLen) throw new Error("Expected more digits in base 64 VLQ value."); + if (-1 === (digit = base64.decode(aStr.charCodeAt(aIndex++)))) throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); + continuation = !!(32 & digit), result += (digit &= 31) << shift, shift += 5; + } while (continuation); + aOutParam.value = (shifted = (aValue = result) >> 1, 1 == (1 & aValue) ? -shifted : shifted), + aOutParam.rest = aIndex; +}; + +var util$3 = {}; + +!function(exports) { + exports.getArg = function(aArgs, aName, aDefaultValue) { + if (aName in aArgs) return aArgs[aName]; + if (3 === arguments.length) return aDefaultValue; + throw new Error('"' + aName + '" is a required argument.'); + }; + var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/, dataUrlRegexp = /^data:.+\,.+$/; + function urlParse(aUrl) { + var match = aUrl.match(urlRegexp); + return match ? { + scheme: match[1], + auth: match[2], + host: match[3], + port: match[4], + path: match[5] + } : null; + } + function urlGenerate(aParsedUrl) { + var url = ""; + return aParsedUrl.scheme && (url += aParsedUrl.scheme + ":"), url += "//", aParsedUrl.auth && (url += aParsedUrl.auth + "@"), + aParsedUrl.host && (url += aParsedUrl.host), aParsedUrl.port && (url += ":" + aParsedUrl.port), + aParsedUrl.path && (url += aParsedUrl.path), url; + } + exports.urlParse = urlParse, exports.urlGenerate = urlGenerate; + var f, cache, normalize = (f = function(aPath) { + var path = aPath, url = urlParse(aPath); + if (url) { + if (!url.path) return aPath; + path = url.path; + } + for (var isAbsolute = exports.isAbsolute(path), parts = [], start = 0, i = 0; ;) { + if (start = i, -1 === (i = path.indexOf("/", start))) { + parts.push(path.slice(start)); + break; + } + for (parts.push(path.slice(start, i)); i < path.length && "/" === path[i]; ) i++; + } + var part, up = 0; + for (i = parts.length - 1; i >= 0; i--) "." === (part = parts[i]) ? parts.splice(i, 1) : ".." === part ? up++ : up > 0 && ("" === part ? (parts.splice(i + 1, up), + up = 0) : (parts.splice(i, 2), up--)); + return "" === (path = parts.join("/")) && (path = isAbsolute ? "/" : "."), url ? (url.path = path, + urlGenerate(url)) : path; + }, cache = [], function(input) { + for (var i = 0; i < cache.length; i++) if (cache[i].input === input) { + var temp = cache[0]; + return cache[0] = cache[i], cache[i] = temp, cache[0].result; + } + var result = f(input); + return cache.unshift({ + input, + result + }), cache.length > 32 && cache.pop(), result; + }); + function join(aRoot, aPath) { + "" === aRoot && (aRoot = "."), "" === aPath && (aPath = "."); + var aPathUrl = urlParse(aPath), aRootUrl = urlParse(aRoot); + if (aRootUrl && (aRoot = aRootUrl.path || "/"), aPathUrl && !aPathUrl.scheme) return aRootUrl && (aPathUrl.scheme = aRootUrl.scheme), + urlGenerate(aPathUrl); + if (aPathUrl || aPath.match(dataUrlRegexp)) return aPath; + if (aRootUrl && !aRootUrl.host && !aRootUrl.path) return aRootUrl.host = aPath, + urlGenerate(aRootUrl); + var joined = "/" === aPath.charAt(0) ? aPath : normalize(aRoot.replace(/\/+$/, "") + "/" + aPath); + return aRootUrl ? (aRootUrl.path = joined, urlGenerate(aRootUrl)) : joined; + } + exports.normalize = normalize, exports.join = join, exports.isAbsolute = function(aPath) { + return "/" === aPath.charAt(0) || urlRegexp.test(aPath); + }, exports.relative = function(aRoot, aPath) { + "" === aRoot && (aRoot = "."), aRoot = aRoot.replace(/\/$/, ""); + for (var level = 0; 0 !== aPath.indexOf(aRoot + "/"); ) { + var index = aRoot.lastIndexOf("/"); + if (index < 0) return aPath; + if ((aRoot = aRoot.slice(0, index)).match(/^([^\/]+:\/)?\/*$/)) return aPath; + ++level; + } + return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); + }; + var supportsNullProto = !("__proto__" in Object.create(null)); + function identity(s) { + return s; + } + function isProtoString(s) { + if (!s) return !1; + var length = s.length; + if (length < 9) return !1; + if (95 !== s.charCodeAt(length - 1) || 95 !== s.charCodeAt(length - 2) || 111 !== s.charCodeAt(length - 3) || 116 !== s.charCodeAt(length - 4) || 111 !== s.charCodeAt(length - 5) || 114 !== s.charCodeAt(length - 6) || 112 !== s.charCodeAt(length - 7) || 95 !== s.charCodeAt(length - 8) || 95 !== s.charCodeAt(length - 9)) return !1; + for (var i = length - 10; i >= 0; i--) if (36 !== s.charCodeAt(i)) return !1; + return !0; + } + function strcmp(aStr1, aStr2) { + return aStr1 === aStr2 ? 0 : null === aStr1 ? 1 : null === aStr2 ? -1 : aStr1 > aStr2 ? 1 : -1; + } + exports.toSetString = supportsNullProto ? identity : function(aStr) { + return isProtoString(aStr) ? "$" + aStr : aStr; + }, exports.fromSetString = supportsNullProto ? identity : function(aStr) { + return isProtoString(aStr) ? aStr.slice(1) : aStr; + }, exports.compareByOriginalPositions = function(mappingA, mappingB, onlyCompareOriginal) { + var cmp = strcmp(mappingA.source, mappingB.source); + return 0 !== cmp || 0 !== (cmp = mappingA.originalLine - mappingB.originalLine) || 0 !== (cmp = mappingA.originalColumn - mappingB.originalColumn) || onlyCompareOriginal || 0 !== (cmp = mappingA.generatedColumn - mappingB.generatedColumn) || 0 !== (cmp = mappingA.generatedLine - mappingB.generatedLine) ? cmp : strcmp(mappingA.name, mappingB.name); + }, exports.compareByOriginalPositionsNoSource = function(mappingA, mappingB, onlyCompareOriginal) { + var cmp; + return 0 !== (cmp = mappingA.originalLine - mappingB.originalLine) || 0 !== (cmp = mappingA.originalColumn - mappingB.originalColumn) || onlyCompareOriginal || 0 !== (cmp = mappingA.generatedColumn - mappingB.generatedColumn) || 0 !== (cmp = mappingA.generatedLine - mappingB.generatedLine) ? cmp : strcmp(mappingA.name, mappingB.name); + }, exports.compareByGeneratedPositionsDeflated = function(mappingA, mappingB, onlyCompareGenerated) { + var cmp = mappingA.generatedLine - mappingB.generatedLine; + return 0 !== cmp || 0 !== (cmp = mappingA.generatedColumn - mappingB.generatedColumn) || onlyCompareGenerated || 0 !== (cmp = strcmp(mappingA.source, mappingB.source)) || 0 !== (cmp = mappingA.originalLine - mappingB.originalLine) || 0 !== (cmp = mappingA.originalColumn - mappingB.originalColumn) ? cmp : strcmp(mappingA.name, mappingB.name); + }, exports.compareByGeneratedPositionsDeflatedNoLine = function(mappingA, mappingB, onlyCompareGenerated) { + var cmp = mappingA.generatedColumn - mappingB.generatedColumn; + return 0 !== cmp || onlyCompareGenerated || 0 !== (cmp = strcmp(mappingA.source, mappingB.source)) || 0 !== (cmp = mappingA.originalLine - mappingB.originalLine) || 0 !== (cmp = mappingA.originalColumn - mappingB.originalColumn) ? cmp : strcmp(mappingA.name, mappingB.name); + }, exports.compareByGeneratedPositionsInflated = function(mappingA, mappingB) { + var cmp = mappingA.generatedLine - mappingB.generatedLine; + return 0 !== cmp || 0 !== (cmp = mappingA.generatedColumn - mappingB.generatedColumn) || 0 !== (cmp = strcmp(mappingA.source, mappingB.source)) || 0 !== (cmp = mappingA.originalLine - mappingB.originalLine) || 0 !== (cmp = mappingA.originalColumn - mappingB.originalColumn) ? cmp : strcmp(mappingA.name, mappingB.name); + }, exports.parseSourceMapInput = function(str) { + return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, "")); + }, exports.computeSourceURL = function(sourceRoot, sourceURL, sourceMapURL) { + if (sourceURL = sourceURL || "", sourceRoot && ("/" !== sourceRoot[sourceRoot.length - 1] && "/" !== sourceURL[0] && (sourceRoot += "/"), + sourceURL = sourceRoot + sourceURL), sourceMapURL) { + var parsed = urlParse(sourceMapURL); + if (!parsed) throw new Error("sourceMapURL could not be parsed"); + if (parsed.path) { + var index = parsed.path.lastIndexOf("/"); + index >= 0 && (parsed.path = parsed.path.substring(0, index + 1)); + } + sourceURL = join(urlGenerate(parsed), sourceURL); + } + return normalize(sourceURL); + }; +}(util$3); + +var arraySet = {}, util$2 = util$3, has = Object.prototype.hasOwnProperty, hasNativeMap = "undefined" != typeof Map; + +function ArraySet$1() { + this._array = [], this._set = hasNativeMap ? new Map : Object.create(null); +} + +ArraySet$1.fromArray = function(aArray, aAllowDuplicates) { + for (var set = new ArraySet$1, i = 0, len = aArray.length; i < len; i++) set.add(aArray[i], aAllowDuplicates); + return set; +}, ArraySet$1.prototype.size = function() { + return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; +}, ArraySet$1.prototype.add = function(aStr, aAllowDuplicates) { + var sStr = hasNativeMap ? aStr : util$2.toSetString(aStr), isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr), idx = this._array.length; + isDuplicate && !aAllowDuplicates || this._array.push(aStr), isDuplicate || (hasNativeMap ? this._set.set(aStr, idx) : this._set[sStr] = idx); +}, ArraySet$1.prototype.has = function(aStr) { + if (hasNativeMap) return this._set.has(aStr); + var sStr = util$2.toSetString(aStr); + return has.call(this._set, sStr); +}, ArraySet$1.prototype.indexOf = function(aStr) { + if (hasNativeMap) { + var idx = this._set.get(aStr); + if (idx >= 0) return idx; + } else { + var sStr = util$2.toSetString(aStr); + if (has.call(this._set, sStr)) return this._set[sStr]; + } + throw new Error('"' + aStr + '" is not in the set.'); +}, ArraySet$1.prototype.at = function(aIdx) { + if (aIdx >= 0 && aIdx < this._array.length) return this._array[aIdx]; + throw new Error("No element indexed by " + aIdx); +}, ArraySet$1.prototype.toArray = function() { + return this._array.slice(); +}, arraySet.ArraySet = ArraySet$1; + +var mappingList = {}, util$1 = util$3; + +function MappingList$1() { + this._array = [], this._sorted = !0, this._last = { + generatedLine: -1, + generatedColumn: 0 + }; +} + +MappingList$1.prototype.unsortedForEach = function(aCallback, aThisArg) { + this._array.forEach(aCallback, aThisArg); +}, MappingList$1.prototype.add = function(aMapping) { + var mappingA, mappingB, lineA, lineB, columnA, columnB; + mappingA = this._last, mappingB = aMapping, lineA = mappingA.generatedLine, lineB = mappingB.generatedLine, + columnA = mappingA.generatedColumn, columnB = mappingB.generatedColumn, lineB > lineA || lineB == lineA && columnB >= columnA || util$1.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0 ? (this._last = aMapping, + this._array.push(aMapping)) : (this._sorted = !1, this._array.push(aMapping)); +}, MappingList$1.prototype.toArray = function() { + return this._sorted || (this._array.sort(util$1.compareByGeneratedPositionsInflated), + this._sorted = !0), this._array; +}, mappingList.MappingList = MappingList$1; + +var base64VLQ = base64Vlq, util = util$3, ArraySet = arraySet.ArraySet, MappingList = mappingList.MappingList; + +function SourceMapGenerator(aArgs) { + aArgs || (aArgs = {}), this._file = util.getArg(aArgs, "file", null), this._sourceRoot = util.getArg(aArgs, "sourceRoot", null), + this._skipValidation = util.getArg(aArgs, "skipValidation", !1), this._sources = new ArraySet, + this._names = new ArraySet, this._mappings = new MappingList, this._sourcesContents = null; +} + +SourceMapGenerator.prototype._version = 3, SourceMapGenerator.fromSourceMap = function(aSourceMapConsumer) { + var sourceRoot = aSourceMapConsumer.sourceRoot, generator = new SourceMapGenerator({ + file: aSourceMapConsumer.file, + sourceRoot + }); + return aSourceMapConsumer.eachMapping((function(mapping) { + var newMapping = { + generated: { + line: mapping.generatedLine, + column: mapping.generatedColumn + } + }; + null != mapping.source && (newMapping.source = mapping.source, null != sourceRoot && (newMapping.source = util.relative(sourceRoot, newMapping.source)), + newMapping.original = { + line: mapping.originalLine, + column: mapping.originalColumn + }, null != mapping.name && (newMapping.name = mapping.name)), generator.addMapping(newMapping); + })), aSourceMapConsumer.sources.forEach((function(sourceFile) { + var sourceRelative = sourceFile; + null !== sourceRoot && (sourceRelative = util.relative(sourceRoot, sourceFile)), + generator._sources.has(sourceRelative) || generator._sources.add(sourceRelative); + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + null != content && generator.setSourceContent(sourceFile, content); + })), generator; +}, SourceMapGenerator.prototype.addMapping = function(aArgs) { + var generated = util.getArg(aArgs, "generated"), original = util.getArg(aArgs, "original", null), source = util.getArg(aArgs, "source", null), name = util.getArg(aArgs, "name", null); + this._skipValidation || this._validateMapping(generated, original, source, name), + null != source && (source = String(source), this._sources.has(source) || this._sources.add(source)), + null != name && (name = String(name), this._names.has(name) || this._names.add(name)), + this._mappings.add({ + generatedLine: generated.line, + generatedColumn: generated.column, + originalLine: null != original && original.line, + originalColumn: null != original && original.column, + source, + name + }); +}, SourceMapGenerator.prototype.setSourceContent = function(aSourceFile, aSourceContent) { + var source = aSourceFile; + null != this._sourceRoot && (source = util.relative(this._sourceRoot, source)), + null != aSourceContent ? (this._sourcesContents || (this._sourcesContents = Object.create(null)), + this._sourcesContents[util.toSetString(source)] = aSourceContent) : this._sourcesContents && (delete this._sourcesContents[util.toSetString(source)], + 0 === Object.keys(this._sourcesContents).length && (this._sourcesContents = null)); +}, SourceMapGenerator.prototype.applySourceMap = function(aSourceMapConsumer, aSourceFile, aSourceMapPath) { + var sourceFile = aSourceFile; + if (null == aSourceFile) { + if (null == aSourceMapConsumer.file) throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.'); + sourceFile = aSourceMapConsumer.file; + } + var sourceRoot = this._sourceRoot; + null != sourceRoot && (sourceFile = util.relative(sourceRoot, sourceFile)); + var newSources = new ArraySet, newNames = new ArraySet; + this._mappings.unsortedForEach((function(mapping) { + if (mapping.source === sourceFile && null != mapping.originalLine) { + var original = aSourceMapConsumer.originalPositionFor({ + line: mapping.originalLine, + column: mapping.originalColumn + }); + null != original.source && (mapping.source = original.source, null != aSourceMapPath && (mapping.source = util.join(aSourceMapPath, mapping.source)), + null != sourceRoot && (mapping.source = util.relative(sourceRoot, mapping.source)), + mapping.originalLine = original.line, mapping.originalColumn = original.column, + null != original.name && (mapping.name = original.name)); + } + var source = mapping.source; + null == source || newSources.has(source) || newSources.add(source); + var name = mapping.name; + null == name || newNames.has(name) || newNames.add(name); + }), this), this._sources = newSources, this._names = newNames, aSourceMapConsumer.sources.forEach((function(sourceFile) { + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + null != content && (null != aSourceMapPath && (sourceFile = util.join(aSourceMapPath, sourceFile)), + null != sourceRoot && (sourceFile = util.relative(sourceRoot, sourceFile)), this.setSourceContent(sourceFile, content)); + }), this); +}, SourceMapGenerator.prototype._validateMapping = function(aGenerated, aOriginal, aSource, aName) { + if (aOriginal && "number" != typeof aOriginal.line && "number" != typeof aOriginal.column) throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values."); + if ((!(aGenerated && "line" in aGenerated && "column" in aGenerated && aGenerated.line > 0 && aGenerated.column >= 0) || aOriginal || aSource || aName) && !(aGenerated && "line" in aGenerated && "column" in aGenerated && aOriginal && "line" in aOriginal && "column" in aOriginal && aGenerated.line > 0 && aGenerated.column >= 0 && aOriginal.line > 0 && aOriginal.column >= 0 && aSource)) throw new Error("Invalid mapping: " + JSON.stringify({ + generated: aGenerated, + source: aSource, + original: aOriginal, + name: aName + })); +}, SourceMapGenerator.prototype._serializeMappings = function() { + for (var next, mapping, nameIdx, sourceIdx, previousGeneratedColumn = 0, previousGeneratedLine = 1, previousOriginalColumn = 0, previousOriginalLine = 0, previousName = 0, previousSource = 0, result = "", mappings = this._mappings.toArray(), i = 0, len = mappings.length; i < len; i++) { + if (next = "", (mapping = mappings[i]).generatedLine !== previousGeneratedLine) for (previousGeneratedColumn = 0; mapping.generatedLine !== previousGeneratedLine; ) next += ";", + previousGeneratedLine++; else if (i > 0) { + if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) continue; + next += ","; + } + next += base64VLQ.encode(mapping.generatedColumn - previousGeneratedColumn), previousGeneratedColumn = mapping.generatedColumn, + null != mapping.source && (sourceIdx = this._sources.indexOf(mapping.source), next += base64VLQ.encode(sourceIdx - previousSource), + previousSource = sourceIdx, next += base64VLQ.encode(mapping.originalLine - 1 - previousOriginalLine), + previousOriginalLine = mapping.originalLine - 1, next += base64VLQ.encode(mapping.originalColumn - previousOriginalColumn), + previousOriginalColumn = mapping.originalColumn, null != mapping.name && (nameIdx = this._names.indexOf(mapping.name), + next += base64VLQ.encode(nameIdx - previousName), previousName = nameIdx)), result += next; + } + return result; +}, SourceMapGenerator.prototype._generateSourcesContent = function(aSources, aSourceRoot) { + return aSources.map((function(source) { + if (!this._sourcesContents) return null; + null != aSourceRoot && (source = util.relative(aSourceRoot, source)); + var key = util.toSetString(source); + return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) ? this._sourcesContents[key] : null; + }), this); +}, SourceMapGenerator.prototype.toJSON = function() { + var map = { + version: this._version, + sources: this._sources.toArray(), + names: this._names.toArray(), + mappings: this._serializeMappings() + }; + return null != this._file && (map.file = this._file), null != this._sourceRoot && (map.sourceRoot = this._sourceRoot), + this._sourcesContents && (map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot)), + map; +}, SourceMapGenerator.prototype.toString = function() { + return JSON.stringify(this.toJSON()); +}, sourceMapGenerator.SourceMapGenerator = SourceMapGenerator; + +const sourceMapGenerator_js$1 = sourceMapGenerator, trackNodes$1 = new Set([ "Atrule", "Selector", "Declaration" ]); + +sourceMap$3.generateSourceMap = function(handlers) { + const map = new sourceMapGenerator_js$1.SourceMapGenerator, generated = { + line: 1, + column: 0 + }, original = { + line: 0, + column: 0 + }, activatedGenerated = { + line: 1, + column: 0 + }, activatedMapping = { + generated: activatedGenerated + }; + let line = 1, column = 0, sourceMappingActive = !1; + const origHandlersNode = handlers.node; + handlers.node = function(node) { + if (node.loc && node.loc.start && trackNodes$1.has(node.type)) { + const nodeLine = node.loc.start.line, nodeColumn = node.loc.start.column - 1; + original.line === nodeLine && original.column === nodeColumn || (original.line = nodeLine, + original.column = nodeColumn, generated.line = line, generated.column = column, + sourceMappingActive && (sourceMappingActive = !1, generated.line === activatedGenerated.line && generated.column === activatedGenerated.column || map.addMapping(activatedMapping)), + sourceMappingActive = !0, map.addMapping({ + source: node.loc.source, + original, + generated + })); + } + origHandlersNode.call(this, node), sourceMappingActive && trackNodes$1.has(node.type) && (activatedGenerated.line = line, + activatedGenerated.column = column); + }; + const origHandlersEmit = handlers.emit; + handlers.emit = function(value, type, auto) { + for (let i = 0; i < value.length; i++) 10 === value.charCodeAt(i) ? (line++, column = 0) : column++; + origHandlersEmit(value, type, auto); + }; + const origHandlersResult = handlers.result; + return handlers.result = function() { + return sourceMappingActive && map.addMapping(activatedMapping), { + css: origHandlersResult(), + map + }; + }, handlers; +}; + +var tokenBefore$3 = {}; + +const types$1D = types$1I, code$1 = (type, value) => { + if (type === types$1D.Delim && (type = value), "string" == typeof type) { + const charCode = type.charCodeAt(0); + return charCode > 0x7F ? 0x8000 : charCode << 8; + } + return type; +}, specPairs$1 = [ [ types$1D.Ident, types$1D.Ident ], [ types$1D.Ident, types$1D.Function ], [ types$1D.Ident, types$1D.Url ], [ types$1D.Ident, types$1D.BadUrl ], [ types$1D.Ident, "-" ], [ types$1D.Ident, types$1D.Number ], [ types$1D.Ident, types$1D.Percentage ], [ types$1D.Ident, types$1D.Dimension ], [ types$1D.Ident, types$1D.CDC ], [ types$1D.Ident, types$1D.LeftParenthesis ], [ types$1D.AtKeyword, types$1D.Ident ], [ types$1D.AtKeyword, types$1D.Function ], [ types$1D.AtKeyword, types$1D.Url ], [ types$1D.AtKeyword, types$1D.BadUrl ], [ types$1D.AtKeyword, "-" ], [ types$1D.AtKeyword, types$1D.Number ], [ types$1D.AtKeyword, types$1D.Percentage ], [ types$1D.AtKeyword, types$1D.Dimension ], [ types$1D.AtKeyword, types$1D.CDC ], [ types$1D.Hash, types$1D.Ident ], [ types$1D.Hash, types$1D.Function ], [ types$1D.Hash, types$1D.Url ], [ types$1D.Hash, types$1D.BadUrl ], [ types$1D.Hash, "-" ], [ types$1D.Hash, types$1D.Number ], [ types$1D.Hash, types$1D.Percentage ], [ types$1D.Hash, types$1D.Dimension ], [ types$1D.Hash, types$1D.CDC ], [ types$1D.Dimension, types$1D.Ident ], [ types$1D.Dimension, types$1D.Function ], [ types$1D.Dimension, types$1D.Url ], [ types$1D.Dimension, types$1D.BadUrl ], [ types$1D.Dimension, "-" ], [ types$1D.Dimension, types$1D.Number ], [ types$1D.Dimension, types$1D.Percentage ], [ types$1D.Dimension, types$1D.Dimension ], [ types$1D.Dimension, types$1D.CDC ], [ "#", types$1D.Ident ], [ "#", types$1D.Function ], [ "#", types$1D.Url ], [ "#", types$1D.BadUrl ], [ "#", "-" ], [ "#", types$1D.Number ], [ "#", types$1D.Percentage ], [ "#", types$1D.Dimension ], [ "#", types$1D.CDC ], [ "-", types$1D.Ident ], [ "-", types$1D.Function ], [ "-", types$1D.Url ], [ "-", types$1D.BadUrl ], [ "-", "-" ], [ "-", types$1D.Number ], [ "-", types$1D.Percentage ], [ "-", types$1D.Dimension ], [ "-", types$1D.CDC ], [ types$1D.Number, types$1D.Ident ], [ types$1D.Number, types$1D.Function ], [ types$1D.Number, types$1D.Url ], [ types$1D.Number, types$1D.BadUrl ], [ types$1D.Number, types$1D.Number ], [ types$1D.Number, types$1D.Percentage ], [ types$1D.Number, types$1D.Dimension ], [ types$1D.Number, "%" ], [ types$1D.Number, types$1D.CDC ], [ "@", types$1D.Ident ], [ "@", types$1D.Function ], [ "@", types$1D.Url ], [ "@", types$1D.BadUrl ], [ "@", "-" ], [ "@", types$1D.CDC ], [ ".", types$1D.Number ], [ ".", types$1D.Percentage ], [ ".", types$1D.Dimension ], [ "+", types$1D.Number ], [ "+", types$1D.Percentage ], [ "+", types$1D.Dimension ], [ "/", "*" ] ], safePairs$1 = specPairs$1.concat([ [ types$1D.Ident, types$1D.Hash ], [ types$1D.Dimension, types$1D.Hash ], [ types$1D.Hash, types$1D.Hash ], [ types$1D.AtKeyword, types$1D.LeftParenthesis ], [ types$1D.AtKeyword, types$1D.String ], [ types$1D.AtKeyword, types$1D.Colon ], [ types$1D.Percentage, types$1D.Percentage ], [ types$1D.Percentage, types$1D.Dimension ], [ types$1D.Percentage, types$1D.Function ], [ types$1D.Percentage, "-" ], [ types$1D.RightParenthesis, types$1D.Ident ], [ types$1D.RightParenthesis, types$1D.Function ], [ types$1D.RightParenthesis, types$1D.Percentage ], [ types$1D.RightParenthesis, types$1D.Dimension ], [ types$1D.RightParenthesis, types$1D.Hash ], [ types$1D.RightParenthesis, "-" ] ]); + +function createMap$1(pairs) { + const isWhiteSpaceRequired = new Set(pairs.map((([prev, next]) => code$1(prev) << 16 | code$1(next)))); + return function(prevCode, type, value) { + const nextCode = code$1(type, value), nextCharCode = value.charCodeAt(0); + return (45 === nextCharCode && type !== types$1D.Ident && type !== types$1D.Function && type !== types$1D.CDC || 43 === nextCharCode ? isWhiteSpaceRequired.has(prevCode << 16 | nextCharCode << 8) : isWhiteSpaceRequired.has(prevCode << 16 | nextCode)) && this.emit(" ", types$1D.WhiteSpace, !0), + nextCode; + }; +} + +const spec$1 = createMap$1(specPairs$1), safe$2 = createMap$1(safePairs$1); + +tokenBefore$3.safe = safe$2, tokenBefore$3.spec = spec$1; + +const index$i = tokenizer$5, sourceMap$2 = sourceMap$3, tokenBefore$2 = tokenBefore$3, types$1C = types$1I; + +function processChildren$1(node, delimeter) { + if ("function" != typeof delimeter) node.children.forEach(this.node, this); else { + let prev = null; + node.children.forEach((node => { + null !== prev && delimeter.call(this, prev), this.node(node), prev = node; + })); + } +} + +function processChunk$1(chunk) { + index$i.tokenize(chunk, ((type, start, end) => { + this.token(type, chunk.slice(start, end)); + })); +} + +create$d.createGenerator = function(config) { + const types$1 = new Map; + for (let name in config.node) { + const item = config.node[name]; + "function" == typeof (item.generate || item) && types$1.set(name, item.generate || item); + } + return function(node, options) { + let buffer = "", prevCode = 0, handlers = { + node(node) { + if (!types$1.has(node.type)) throw new Error("Unknown node type: " + node.type); + types$1.get(node.type).call(publicApi, node); + }, + tokenBefore: tokenBefore$2.safe, + token(type, value) { + prevCode = this.tokenBefore(prevCode, type, value), this.emit(value, type, !1), + type === types$1C.Delim && 92 === value.charCodeAt(0) && this.emit("\n", types$1C.WhiteSpace, !0); + }, + emit(value) { + buffer += value; + }, + result: () => buffer + }; + options && ("function" == typeof options.decorator && (handlers = options.decorator(handlers)), + options.sourceMap && (handlers = sourceMap$2.generateSourceMap(handlers)), options.mode in tokenBefore$2 && (handlers.tokenBefore = tokenBefore$2[options.mode])); + const publicApi = { + node: node => handlers.node(node), + children: processChildren$1, + token: (type, value) => handlers.token(type, value), + tokenize: processChunk$1 + }; + return handlers.node(node), handlers.result(); + }; +}; + +var create$c = {}; + +const List$c = List$f; + +create$c.createConvertor = function(walk) { + return { + fromPlainObject: ast => (walk(ast, { + enter(node) { + node.children && node.children instanceof List$c.List == !1 && (node.children = (new List$c.List).fromArray(node.children)); + } + }), ast), + toPlainObject: ast => (walk(ast, { + leave(node) { + node.children && node.children instanceof List$c.List && (node.children = node.children.toArray()); + } + }), ast) + }; +}; + +var create$b = {}; + +const {hasOwnProperty: hasOwnProperty$d} = Object.prototype, noop$5 = function() {}; + +function ensureFunction$3(value) { + return "function" == typeof value ? value : noop$5; +} + +function invokeForType$1(fn, type) { + return function(node, item, list) { + node.type === type && fn.call(this, node, item, list); + }; +} + +function getWalkersFromStructure$1(name, nodeType) { + const structure = nodeType.structure, walkers = []; + for (const key in structure) { + if (!1 === hasOwnProperty$d.call(structure, key)) continue; + let fieldTypes = structure[key]; + const walker = { + name: key, + type: !1, + nullable: !1 + }; + Array.isArray(fieldTypes) || (fieldTypes = [ fieldTypes ]); + for (const fieldType of fieldTypes) null === fieldType ? walker.nullable = !0 : "string" == typeof fieldType ? walker.type = "node" : Array.isArray(fieldType) && (walker.type = "list"); + walker.type && walkers.push(walker); + } + return walkers.length ? { + context: nodeType.walkContext, + fields: walkers + } : null; +} + +function createTypeIterator$1(config, reverse) { + const fields = config.fields.slice(), contextName = config.context, useContext = "string" == typeof contextName; + return reverse && fields.reverse(), function(node, context, walk, walkReducer) { + let prevContextValue; + useContext && (prevContextValue = context[contextName], context[contextName] = node); + for (const field of fields) { + const ref = node[field.name]; + if (!field.nullable || ref) if ("list" === field.type) { + if (reverse ? ref.reduceRight(walkReducer, !1) : ref.reduce(walkReducer, !1)) return !0; + } else if (walk(ref)) return !0; + } + useContext && (context[contextName] = prevContextValue); + }; +} + +function createFastTraveralMap$1({StyleSheet, Atrule, Rule, Block, DeclarationList}) { + return { + Atrule: { + StyleSheet, + Atrule, + Rule, + Block + }, + Rule: { + StyleSheet, + Atrule, + Rule, + Block + }, + Declaration: { + StyleSheet, + Atrule, + Rule, + Block, + DeclarationList + } + }; +} + +create$b.createWalker = function(config) { + const types = function(config) { + const types = {}; + for (const name in config.node) if (hasOwnProperty$d.call(config.node, name)) { + const nodeType = config.node[name]; + if (!nodeType.structure) throw new Error("Missed `structure` field in `" + name + "` node type definition"); + types[name] = getWalkersFromStructure$1(0, nodeType); + } + return types; + }(config), iteratorsNatural = {}, iteratorsReverse = {}, breakWalk = Symbol("break-walk"), skipNode = Symbol("skip-node"); + for (const name in types) hasOwnProperty$d.call(types, name) && null !== types[name] && (iteratorsNatural[name] = createTypeIterator$1(types[name], !1), + iteratorsReverse[name] = createTypeIterator$1(types[name], !0)); + const fastTraversalIteratorsNatural = createFastTraveralMap$1(iteratorsNatural), fastTraversalIteratorsReverse = createFastTraveralMap$1(iteratorsReverse), walk = function(root, options) { + function walkNode(node, item, list) { + const enterRet = enter.call(context, node, item, list); + return enterRet === breakWalk || enterRet !== skipNode && (!(!iterators.hasOwnProperty(node.type) || !iterators[node.type](node, context, walkNode, walkReducer)) || leave.call(context, node, item, list) === breakWalk); + } + let enter = noop$5, leave = noop$5, iterators = iteratorsNatural, walkReducer = (ret, data, item, list) => ret || walkNode(data, item, list); + const context = { + break: breakWalk, + skip: skipNode, + root, + stylesheet: null, + atrule: null, + atrulePrelude: null, + rule: null, + selector: null, + block: null, + declaration: null, + function: null + }; + if ("function" == typeof options) enter = options; else if (options && (enter = ensureFunction$3(options.enter), + leave = ensureFunction$3(options.leave), options.reverse && (iterators = iteratorsReverse), + options.visit)) { + if (fastTraversalIteratorsNatural.hasOwnProperty(options.visit)) iterators = options.reverse ? fastTraversalIteratorsReverse[options.visit] : fastTraversalIteratorsNatural[options.visit]; else if (!types.hasOwnProperty(options.visit)) throw new Error("Bad value `" + options.visit + "` for `visit` option (should be: " + Object.keys(types).sort().join(", ") + ")"); + enter = invokeForType$1(enter, options.visit), leave = invokeForType$1(leave, options.visit); + } + if (enter === noop$5 && leave === noop$5) throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function"); + walkNode(root); + }; + return walk.break = breakWalk, walk.skip = skipNode, walk.find = function(ast, fn) { + let found = null; + return walk(ast, (function(node, item, list) { + if (fn.call(this, node, item, list)) return found = node, breakWalk; + })), found; + }, walk.findLast = function(ast, fn) { + let found = null; + return walk(ast, { + reverse: !0, + enter(node, item, list) { + if (fn.call(this, node, item, list)) return found = node, breakWalk; + } + }), found; + }, walk.findAll = function(ast, fn) { + const found = []; + return walk(ast, (function(node, item, list) { + fn.call(this, node, item, list) && found.push(node); + })), found; + }, walk; +}; + +var Lexer$7 = {}, error$4 = {}, generate$1u = {}; + +function noop$4(value) { + return value; +} + +function internalGenerate$1(node, decorate, forceBraces, compact) { + let result; + switch (node.type) { + case "Group": + result = function(node, decorate, forceBraces, compact) { + const combinator = " " === node.combinator || compact ? node.combinator : " " + node.combinator + " ", result = node.terms.map((term => internalGenerate$1(term, decorate, forceBraces, compact))).join(combinator); + return node.explicit || forceBraces ? (compact || "," === result[0] ? "[" : "[ ") + result + (compact ? "]" : " ]") : result; + }(node, decorate, forceBraces, compact) + (node.disallowEmpty ? "!" : ""); + break; + + case "Multiplier": + return internalGenerate$1(node.term, decorate, forceBraces, compact) + decorate(function(multiplier) { + const {min, max, comma} = multiplier; + return 0 === min && 0 === max ? comma ? "#?" : "*" : 0 === min && 1 === max ? "?" : 1 === min && 0 === max ? comma ? "#" : "+" : 1 === min && 1 === max ? "" : (comma ? "#" : "") + (min === max ? "{" + min + "}" : "{" + min + "," + (0 !== max ? max : "") + "}"); + }(node), node); + + case "Type": + result = "<" + node.name + (node.opts ? decorate(function(node) { + if ("Range" === node.type) return " [" + (null === node.min ? "-∞" : node.min) + "," + (null === node.max ? "∞" : node.max) + "]"; + throw new Error("Unknown node type `" + node.type + "`"); + }(node.opts), node.opts) : "") + ">"; + break; + + case "Property": + result = "<'" + node.name + "'>"; + break; + + case "Keyword": + result = node.name; + break; + + case "AtKeyword": + result = "@" + node.name; + break; + + case "Function": + result = node.name + "("; + break; + + case "String": + case "Token": + result = node.value; + break; + + case "Comma": + result = ","; + break; + + default: + throw new Error("Unknown node type `" + node.type + "`"); + } + return decorate(result, node); +} + +generate$1u.generate = function(node, options) { + let decorate = noop$4, forceBraces = !1, compact = !1; + return "function" == typeof options ? decorate = options : options && (forceBraces = Boolean(options.forceBraces), + compact = Boolean(options.compact), "function" == typeof options.decorate && (decorate = options.decorate)), + internalGenerate$1(node, decorate, forceBraces, compact); +}; + +const createCustomError$6 = createCustomError$9, generate$1s = generate$1u, defaultLoc$1 = { + offset: 0, + line: 1, + column: 1 +}; + +function fromLoc$1(node, point) { + const value = node && node.loc && node.loc[point]; + return value ? "line" in value ? buildLoc$1(value) : value : null; +} + +function buildLoc$1({offset, line, column}, extra) { + const loc = { + offset, + line, + column + }; + if (extra) { + const lines = extra.split(/\n|\r\n?|\f/); + loc.offset += extra.length, loc.line += lines.length - 1, loc.column = 1 === lines.length ? loc.column + extra.length : lines.pop().length + 1; + } + return loc; +} + +error$4.SyntaxMatchError = function(message, syntax, node, matchResult) { + const error = createCustomError$6.createCustomError("SyntaxMatchError", message), {css, mismatchOffset, mismatchLength, start, end} = function(matchResult, node) { + const tokens = matchResult.tokens, longestMatch = matchResult.longestMatch, mismatchNode = longestMatch < tokens.length && tokens[longestMatch].node || null, badNode = mismatchNode !== node ? mismatchNode : null; + let start, end, mismatchOffset = 0, mismatchLength = 0, entries = 0, css = ""; + for (let i = 0; i < tokens.length; i++) { + const token = tokens[i].value; + i === longestMatch && (mismatchLength = token.length, mismatchOffset = css.length), + null !== badNode && tokens[i].node === badNode && (i <= longestMatch ? entries++ : entries = 0), + css += token; + } + return longestMatch === tokens.length || entries > 1 ? (start = fromLoc$1(badNode || node, "end") || buildLoc$1(defaultLoc$1, css), + end = buildLoc$1(start)) : (start = fromLoc$1(badNode, "start") || buildLoc$1(fromLoc$1(node, "start") || defaultLoc$1, css.slice(0, mismatchOffset)), + end = fromLoc$1(badNode, "end") || buildLoc$1(start, css.substr(mismatchOffset, mismatchLength))), + { + css, + mismatchOffset, + mismatchLength, + start, + end + }; + }(matchResult, node); + return error.rawMessage = message, error.syntax = syntax ? generate$1s.generate(syntax) : "", + error.css = css, error.mismatchOffset = mismatchOffset, error.mismatchLength = mismatchLength, + error.message = message + "\n syntax: " + error.syntax + "\n value: " + (css || "") + "\n --------" + new Array(error.mismatchOffset + 1).join("-") + "^", + Object.assign(error, start), error.loc = { + source: node && node.loc && node.loc.source || "", + start, + end + }, error; +}, error$4.SyntaxReferenceError = function(type, referenceName) { + const error = createCustomError$6.createCustomError("SyntaxReferenceError", type + (referenceName ? " `" + referenceName + "`" : "")); + return error.reference = referenceName, error; +}; + +var names$c = {}; + +const keywords$1 = new Map, properties$1 = new Map, HYPHENMINUS$c = 45, keyword$1 = function(keyword) { + if (keywords$1.has(keyword)) return keywords$1.get(keyword); + const name = keyword.toLowerCase(); + let descriptor = keywords$1.get(name); + if (void 0 === descriptor) { + const custom = isCustomProperty$1(name, 0), vendor = custom ? "" : getVendorPrefix$1(name, 0); + descriptor = Object.freeze({ + basename: name.substr(vendor.length), + name, + prefix: vendor, + vendor, + custom + }); + } + return keywords$1.set(keyword, descriptor), descriptor; +}, property$1 = function(property) { + if (properties$1.has(property)) return properties$1.get(property); + let name = property, hack = property[0]; + "/" === hack ? hack = "/" === property[1] ? "//" : "/" : "_" !== hack && "*" !== hack && "$" !== hack && "#" !== hack && "+" !== hack && "&" !== hack && (hack = ""); + const custom = isCustomProperty$1(name, hack.length); + if (!custom && (name = name.toLowerCase(), properties$1.has(name))) { + const descriptor = properties$1.get(name); + return properties$1.set(property, descriptor), descriptor; + } + const vendor = custom ? "" : getVendorPrefix$1(name, hack.length), prefix = name.substr(0, hack.length + vendor.length), descriptor = Object.freeze({ + basename: name.substr(prefix.length), + name: name.substr(hack.length), + hack, + vendor, + prefix, + custom + }); + return properties$1.set(property, descriptor), descriptor; +}, vendorPrefix$1 = getVendorPrefix$1; + +function isCustomProperty$1(str, offset) { + return offset = offset || 0, str.length - offset >= 2 && str.charCodeAt(offset) === HYPHENMINUS$c && str.charCodeAt(offset + 1) === HYPHENMINUS$c; +} + +function getVendorPrefix$1(str, offset) { + if (offset = offset || 0, str.length - offset >= 3 && str.charCodeAt(offset) === HYPHENMINUS$c && str.charCodeAt(offset + 1) !== HYPHENMINUS$c) { + const secondDashIndex = str.indexOf("-", offset + 2); + if (-1 !== secondDashIndex) return str.substring(offset, secondDashIndex + 1); + } + return ""; +} + +names$c.isCustomProperty = isCustomProperty$1, names$c.keyword = keyword$1, names$c.property = property$1, +names$c.vendorPrefix = vendorPrefix$1; + +var genericConst$5 = {}; + +genericConst$5.cssWideKeywords = [ "initial", "inherit", "unset", "revert", "revert-layer" ]; + +var generic$3 = {}; + +const charCodeDefinitions$l = charCodeDefinitions$p, types$1B = types$1I, utils$q = utils$u, PLUSSIGN$i = 0x002B, HYPHENMINUS$b = 0x002D; + +function isDelim$3(token, code) { + return null !== token && token.type === types$1B.Delim && token.value.charCodeAt(0) === code; +} + +function skipSC$1(token, offset, getNextToken) { + for (;null !== token && (token.type === types$1B.WhiteSpace || token.type === types$1B.Comment); ) token = getNextToken(++offset); + return offset; +} + +function checkInteger$3(token, valueOffset, disallowSign, offset) { + if (!token) return 0; + const code = token.value.charCodeAt(valueOffset); + if (code === PLUSSIGN$i || code === HYPHENMINUS$b) { + if (disallowSign) return 0; + valueOffset++; + } + for (;valueOffset < token.value.length; valueOffset++) if (!charCodeDefinitions$l.isDigit(token.value.charCodeAt(valueOffset))) return 0; + return offset + 1; +} + +function consumeB$3(token, offset_, getNextToken) { + let sign = !1, offset = skipSC$1(token, offset_, getNextToken); + if (null === (token = getNextToken(offset))) return offset_; + if (token.type !== types$1B.Number) { + if (!isDelim$3(token, PLUSSIGN$i) && !isDelim$3(token, HYPHENMINUS$b)) return offset_; + if (sign = !0, offset = skipSC$1(getNextToken(++offset), offset, getNextToken), + null === (token = getNextToken(offset)) || token.type !== types$1B.Number) return 0; + } + if (!sign) { + const code = token.value.charCodeAt(0); + if (code !== PLUSSIGN$i && code !== HYPHENMINUS$b) return 0; + } + return checkInteger$3(token, sign ? 0 : 1, sign, offset); +} + +var genericAnPlusB$3 = function(token, getNextToken) { + let offset = 0; + if (!token) return 0; + if (token.type === types$1B.Number) return checkInteger$3(token, 0, false, offset); + if (token.type === types$1B.Ident && token.value.charCodeAt(0) === HYPHENMINUS$b) { + if (!utils$q.cmpChar(token.value, 1, 110)) return 0; + switch (token.value.length) { + case 2: + return consumeB$3(getNextToken(++offset), offset, getNextToken); + + case 3: + return token.value.charCodeAt(2) !== HYPHENMINUS$b ? 0 : (offset = skipSC$1(getNextToken(++offset), offset, getNextToken), + checkInteger$3(token = getNextToken(offset), 0, true, offset)); + + default: + return token.value.charCodeAt(2) !== HYPHENMINUS$b ? 0 : checkInteger$3(token, 3, true, offset); + } + } else if (token.type === types$1B.Ident || isDelim$3(token, PLUSSIGN$i) && getNextToken(offset + 1).type === types$1B.Ident) { + if (token.type !== types$1B.Ident && (token = getNextToken(++offset)), null === token || !utils$q.cmpChar(token.value, 0, 110)) return 0; + switch (token.value.length) { + case 1: + return consumeB$3(getNextToken(++offset), offset, getNextToken); + + case 2: + return token.value.charCodeAt(1) !== HYPHENMINUS$b ? 0 : (offset = skipSC$1(getNextToken(++offset), offset, getNextToken), + checkInteger$3(token = getNextToken(offset), 0, true, offset)); + + default: + return token.value.charCodeAt(1) !== HYPHENMINUS$b ? 0 : checkInteger$3(token, 2, true, offset); + } + } else if (token.type === types$1B.Dimension) { + let code = token.value.charCodeAt(0), sign = code === PLUSSIGN$i || code === HYPHENMINUS$b ? 1 : 0, i = sign; + for (;i < token.value.length && charCodeDefinitions$l.isDigit(token.value.charCodeAt(i)); i++) ; + return i === sign ? 0 : utils$q.cmpChar(token.value, i, 110) ? i + 1 === token.value.length ? consumeB$3(getNextToken(++offset), offset, getNextToken) : token.value.charCodeAt(i + 1) !== HYPHENMINUS$b ? 0 : i + 2 === token.value.length ? (offset = skipSC$1(getNextToken(++offset), offset, getNextToken), + checkInteger$3(token = getNextToken(offset), 0, true, offset)) : checkInteger$3(token, i + 2, true, offset) : 0; + } + return 0; +}; + +const charCodeDefinitions$k = charCodeDefinitions$p, types$1A = types$1I, utils$p = utils$u, HYPHENMINUS$a = 0x002D, QUESTIONMARK$5 = 0x003F; + +function isDelim$2(token, code) { + return null !== token && token.type === types$1A.Delim && token.value.charCodeAt(0) === code; +} + +function hexSequence$1(token, offset, allowDash) { + let hexlen = 0; + for (let pos = offset; pos < token.value.length; pos++) { + const code = token.value.charCodeAt(pos); + if (code === HYPHENMINUS$a && allowDash && 0 !== hexlen) return hexSequence$1(token, offset + hexlen + 1, !1), + 6; + if (!charCodeDefinitions$k.isHexDigit(code)) return 0; + if (++hexlen > 6) return 0; + } + return hexlen; +} + +function withQuestionMarkSequence$1(consumed, length, getNextToken) { + if (!consumed) return 0; + for (;isDelim$2(getNextToken(length), QUESTIONMARK$5); ) { + if (++consumed > 6) return 0; + length++; + } + return length; +} + +var genericUrange$3 = function(token, getNextToken) { + let length = 0; + if (null === token || token.type !== types$1A.Ident || !utils$p.cmpChar(token.value, 0, 117)) return 0; + if (null === (token = getNextToken(++length))) return 0; + if (isDelim$2(token, 43)) return null === (token = getNextToken(++length)) ? 0 : token.type === types$1A.Ident ? withQuestionMarkSequence$1(hexSequence$1(token, 0, !0), ++length, getNextToken) : isDelim$2(token, QUESTIONMARK$5) ? withQuestionMarkSequence$1(1, ++length, getNextToken) : 0; + if (token.type === types$1A.Number) { + const consumedHexLength = hexSequence$1(token, 1, !0); + return 0 === consumedHexLength ? 0 : null === (token = getNextToken(++length)) ? length : token.type === types$1A.Dimension || token.type === types$1A.Number ? function(token, code) { + return token.value.charCodeAt(0) === code; + }(token, HYPHENMINUS$a) && hexSequence$1(token, 1, !1) ? length + 1 : 0 : withQuestionMarkSequence$1(consumedHexLength, length, getNextToken); + } + return token.type === types$1A.Dimension ? withQuestionMarkSequence$1(hexSequence$1(token, 1, !0), ++length, getNextToken) : 0; +}; + +const genericConst$4 = genericConst$5, genericAnPlusB$2 = genericAnPlusB$3, genericUrange$2 = genericUrange$3, types$1z = types$1I, charCodeDefinitions$j = charCodeDefinitions$p, utils$o = utils$u, calcFunctionNames$1 = [ "calc(", "-moz-calc(", "-webkit-calc(" ], balancePair$2 = new Map([ [ types$1z.Function, types$1z.RightParenthesis ], [ types$1z.LeftParenthesis, types$1z.RightParenthesis ], [ types$1z.LeftSquareBracket, types$1z.RightSquareBracket ], [ types$1z.LeftCurlyBracket, types$1z.RightCurlyBracket ] ]); + +function charCodeAt$1(str, index) { + return index < str.length ? str.charCodeAt(index) : 0; +} + +function eqStr$1(actual, expected) { + return utils$o.cmpStr(actual, 0, actual.length, expected); +} + +function eqStrAny$1(actual, expected) { + for (let i = 0; i < expected.length; i++) if (eqStr$1(actual, expected[i])) return !0; + return !1; +} + +function isPostfixIeHack$1(str, offset) { + return offset === str.length - 2 && (0x005C === charCodeAt$1(str, offset) && charCodeDefinitions$j.isDigit(charCodeAt$1(str, offset + 1))); +} + +function outOfRange$1(opts, value, numEnd) { + if (opts && "Range" === opts.type) { + const num = Number(void 0 !== numEnd && numEnd !== value.length ? value.substr(0, numEnd) : value); + if (isNaN(num)) return !0; + if (null !== opts.min && num < opts.min && "string" != typeof opts.min) return !0; + if (null !== opts.max && num > opts.max && "string" != typeof opts.max) return !0; + } + return !1; +} + +function calc$1(next) { + return function(token, getNextToken, opts) { + return null === token ? 0 : token.type === types$1z.Function && eqStrAny$1(token.value, calcFunctionNames$1) ? function(token, getNextToken) { + let balanceCloseType = 0, balanceStash = [], length = 0; + scan: do { + switch (token.type) { + case types$1z.RightCurlyBracket: + case types$1z.RightParenthesis: + case types$1z.RightSquareBracket: + if (token.type !== balanceCloseType) break scan; + if (balanceCloseType = balanceStash.pop(), 0 === balanceStash.length) { + length++; + break scan; + } + break; + + case types$1z.Function: + case types$1z.LeftParenthesis: + case types$1z.LeftSquareBracket: + case types$1z.LeftCurlyBracket: + balanceStash.push(balanceCloseType), balanceCloseType = balancePair$2.get(token.type); + } + length++; + } while (token = getNextToken(length)); + return length; + }(token, getNextToken) : next(token, getNextToken, opts); + }; +} + +function tokenType$1(expectedTokenType) { + return function(token) { + return null === token || token.type !== expectedTokenType ? 0 : 1; + }; +} + +function dimension$1(type) { + return type && (type = new Set(type)), function(token, getNextToken, opts) { + if (null === token || token.type !== types$1z.Dimension) return 0; + const numberEnd = utils$o.consumeNumber(token.value, 0); + if (null !== type) { + const reverseSolidusOffset = token.value.indexOf("\\", numberEnd), unit = -1 !== reverseSolidusOffset && isPostfixIeHack$1(token.value, reverseSolidusOffset) ? token.value.substring(numberEnd, reverseSolidusOffset) : token.value.substr(numberEnd); + if (!1 === type.has(unit.toLowerCase())) return 0; + } + return outOfRange$1(opts, token.value, numberEnd) ? 0 : 1; + }; +} + +function zero$1(next) { + return "function" != typeof next && (next = function() { + return 0; + }), function(token, getNextToken, opts) { + return null !== token && token.type === types$1z.Number && 0 === Number(token.value) ? 1 : next(token, getNextToken, opts); + }; +} + +const tokenTypes = { + "ident-token": tokenType$1(types$1z.Ident), + "function-token": tokenType$1(types$1z.Function), + "at-keyword-token": tokenType$1(types$1z.AtKeyword), + "hash-token": tokenType$1(types$1z.Hash), + "string-token": tokenType$1(types$1z.String), + "bad-string-token": tokenType$1(types$1z.BadString), + "url-token": tokenType$1(types$1z.Url), + "bad-url-token": tokenType$1(types$1z.BadUrl), + "delim-token": tokenType$1(types$1z.Delim), + "number-token": tokenType$1(types$1z.Number), + "percentage-token": tokenType$1(types$1z.Percentage), + "dimension-token": tokenType$1(types$1z.Dimension), + "whitespace-token": tokenType$1(types$1z.WhiteSpace), + "CDO-token": tokenType$1(types$1z.CDO), + "CDC-token": tokenType$1(types$1z.CDC), + "colon-token": tokenType$1(types$1z.Colon), + "semicolon-token": tokenType$1(types$1z.Semicolon), + "comma-token": tokenType$1(types$1z.Comma), + "[-token": tokenType$1(types$1z.LeftSquareBracket), + "]-token": tokenType$1(types$1z.RightSquareBracket), + "(-token": tokenType$1(types$1z.LeftParenthesis), + ")-token": tokenType$1(types$1z.RightParenthesis), + "{-token": tokenType$1(types$1z.LeftCurlyBracket), + "}-token": tokenType$1(types$1z.RightCurlyBracket) +}, productionTypes = { + "string": tokenType$1(types$1z.String), + "ident": tokenType$1(types$1z.Ident), + "percentage": calc$1((function(token, getNextToken, opts) { + return null === token || token.type !== types$1z.Percentage || outOfRange$1(opts, token.value, token.value.length - 1) ? 0 : 1; + })), + "zero": zero$1(), + "number": calc$1((function(token, getNextToken, opts) { + if (null === token) return 0; + const numberEnd = utils$o.consumeNumber(token.value, 0); + return numberEnd === token.value.length || isPostfixIeHack$1(token.value, numberEnd) ? outOfRange$1(opts, token.value, numberEnd) ? 0 : 1 : 0; + })), + "integer": calc$1((function(token, getNextToken, opts) { + if (null === token || token.type !== types$1z.Number) return 0; + let i = 0x002B === charCodeAt$1(token.value, 0) || 0x002D === charCodeAt$1(token.value, 0) ? 1 : 0; + for (;i < token.value.length; i++) if (!charCodeDefinitions$j.isDigit(charCodeAt$1(token.value, i))) return 0; + return outOfRange$1(opts, token.value, i) ? 0 : 1; + })), + "custom-ident": function(token) { + if (null === token || token.type !== types$1z.Ident) return 0; + const name = token.value.toLowerCase(); + return eqStrAny$1(name, genericConst$4.cssWideKeywords) || eqStr$1(name, "default") ? 0 : 1; + }, + "custom-property-name": function(token) { + return null === token || token.type !== types$1z.Ident || 0x002D !== charCodeAt$1(token.value, 0) || 0x002D !== charCodeAt$1(token.value, 1) ? 0 : 1; + }, + "hex-color": function(token) { + if (null === token || token.type !== types$1z.Hash) return 0; + const length = token.value.length; + if (4 !== length && 5 !== length && 7 !== length && 9 !== length) return 0; + for (let i = 1; i < length; i++) if (!charCodeDefinitions$j.isHexDigit(charCodeAt$1(token.value, i))) return 0; + return 1; + }, + "id-selector": function(token) { + return null === token || token.type !== types$1z.Hash ? 0 : charCodeDefinitions$j.isIdentifierStart(charCodeAt$1(token.value, 1), charCodeAt$1(token.value, 2), charCodeAt$1(token.value, 3)) ? 1 : 0; + }, + "an-plus-b": genericAnPlusB$2, + "urange": genericUrange$2, + "declaration-value": function(token, getNextToken) { + if (!token) return 0; + let balanceCloseType = 0, balanceStash = [], length = 0; + scan: do { + switch (token.type) { + case types$1z.BadString: + case types$1z.BadUrl: + break scan; + + case types$1z.RightCurlyBracket: + case types$1z.RightParenthesis: + case types$1z.RightSquareBracket: + if (token.type !== balanceCloseType) break scan; + balanceCloseType = balanceStash.pop(); + break; + + case types$1z.Semicolon: + if (0 === balanceCloseType) break scan; + break; + + case types$1z.Delim: + if (0 === balanceCloseType && "!" === token.value) break scan; + break; + + case types$1z.Function: + case types$1z.LeftParenthesis: + case types$1z.LeftSquareBracket: + case types$1z.LeftCurlyBracket: + balanceStash.push(balanceCloseType), balanceCloseType = balancePair$2.get(token.type); + } + length++; + } while (token = getNextToken(length)); + return length; + }, + "any-value": function(token, getNextToken) { + if (!token) return 0; + let balanceCloseType = 0, balanceStash = [], length = 0; + scan: do { + switch (token.type) { + case types$1z.BadString: + case types$1z.BadUrl: + break scan; + + case types$1z.RightCurlyBracket: + case types$1z.RightParenthesis: + case types$1z.RightSquareBracket: + if (token.type !== balanceCloseType) break scan; + balanceCloseType = balanceStash.pop(); + break; + + case types$1z.Function: + case types$1z.LeftParenthesis: + case types$1z.LeftSquareBracket: + case types$1z.LeftCurlyBracket: + balanceStash.push(balanceCloseType), balanceCloseType = balancePair$2.get(token.type); + } + length++; + } while (token = getNextToken(length)); + return length; + } +}; + +function createDemensionTypes(units) { + const {angle, decibel, frequency, flex, length, resolution, semitones, time} = units || {}; + return { + "dimension": calc$1(dimension$1(null)), + "angle": calc$1(dimension$1(angle)), + "decibel": calc$1(dimension$1(decibel)), + "frequency": calc$1(dimension$1(frequency)), + "flex": calc$1(dimension$1(flex)), + "length": calc$1(zero$1(dimension$1(length))), + "resolution": calc$1(dimension$1(resolution)), + "semitones": calc$1(dimension$1(semitones)), + "time": calc$1(dimension$1(time)) + }; +} + +generic$3.createDemensionTypes = createDemensionTypes, generic$3.createGenericTypes = function(units) { + return { + ...tokenTypes, + ...productionTypes, + ...createDemensionTypes(units) + }; +}, generic$3.productionTypes = productionTypes, generic$3.tokenTypes = tokenTypes; + +var units$1 = {}; + +units$1.angle = [ "deg", "grad", "rad", "turn" ], units$1.decibel = [ "db" ], units$1.flex = [ "fr" ], +units$1.frequency = [ "hz", "khz" ], units$1.length = [ "cm", "mm", "q", "in", "pt", "pc", "px", "em", "rem", "ex", "rex", "cap", "rcap", "ch", "rch", "ic", "ric", "lh", "rlh", "vw", "svw", "lvw", "dvw", "vh", "svh", "lvh", "dvh", "vi", "svi", "lvi", "dvi", "vb", "svb", "lvb", "dvb", "vmin", "svmin", "lvmin", "dvmin", "vmax", "svmax", "lvmax", "dvmax", "cqw", "cqh", "cqi", "cqb", "cqmin", "cqmax" ], +units$1.resolution = [ "dpi", "dpcm", "dppx", "x" ], units$1.semitones = [ "st" ], +units$1.time = [ "s", "ms" ]; + +const index$h = tokenizer$5, astToTokens$1 = { + decorator(handlers) { + const tokens = []; + let curNode = null; + return { + ...handlers, + node(node) { + const tmp = curNode; + curNode = node, handlers.node.call(this, node), curNode = tmp; + }, + emit(value, type, auto) { + tokens.push({ + type, + value, + node: auto ? null : curNode + }); + }, + result: () => tokens + }; + } +}; + +var prepareTokens_1$1 = function(value, syntax) { + return "string" == typeof value ? function(str) { + const tokens = []; + return index$h.tokenize(str, ((type, start, end) => tokens.push({ + type, + value: str.slice(start, end), + node: null + }))), tokens; + }(value) : syntax.generate(value, astToTokens$1); +}, matchGraph$5 = {}, parse$1u = {}, tokenizer$4 = {}, _SyntaxError$2 = {}; + +const createCustomError$5 = createCustomError$9; + +_SyntaxError$2.SyntaxError = function(message, input, offset) { + return Object.assign(createCustomError$5.createCustomError("SyntaxError", message), { + input, + offset, + rawMessage: message, + message: message + "\n " + input + "\n--" + new Array((offset || input.length) + 1).join("-") + "^" + }); +}; + +const SyntaxError$7 = _SyntaxError$2; + +tokenizer$4.Tokenizer = class { + constructor(str) { + this.str = str, this.pos = 0; + } + charCodeAt(pos) { + return pos < this.str.length ? this.str.charCodeAt(pos) : 0; + } + charCode() { + return this.charCodeAt(this.pos); + } + nextCharCode() { + return this.charCodeAt(this.pos + 1); + } + nextNonWsCode(pos) { + return this.charCodeAt(this.findWsEnd(pos)); + } + findWsEnd(pos) { + for (;pos < this.str.length; pos++) { + const code = this.str.charCodeAt(pos); + if (13 !== code && 10 !== code && 12 !== code && 32 !== code && 9 !== code) break; + } + return pos; + } + substringToPos(end) { + return this.str.substring(this.pos, this.pos = end); + } + eat(code) { + this.charCode() !== code && this.error("Expect `" + String.fromCharCode(code) + "`"), + this.pos++; + } + peek() { + return this.pos < this.str.length ? this.str.charAt(this.pos++) : ""; + } + error(message) { + throw new SyntaxError$7.SyntaxError(message, this.str, this.pos); + } +}; + +const tokenizer$3 = tokenizer$4, TAB$2 = 9, N$6 = 10, F$3 = 12, R$3 = 13, SPACE$6 = 32, EXCLAMATIONMARK$6 = 33, NUMBERSIGN$8 = 35, AMPERSAND$7 = 38, APOSTROPHE$5 = 39, LEFTPARENTHESIS$5 = 40, RIGHTPARENTHESIS$5 = 41, ASTERISK$d = 42, PLUSSIGN$g = 43, COMMA$1 = 44, HYPERMINUS$1 = 45, LESSTHANSIGN$1 = 60, GREATERTHANSIGN$5 = 62, QUESTIONMARK$4 = 63, COMMERCIALAT$1 = 64, LEFTSQUAREBRACKET$1 = 91, RIGHTSQUAREBRACKET$1 = 93, LEFTCURLYBRACKET$2 = 123, VERTICALLINE$7 = 124, RIGHTCURLYBRACKET$1 = 125, INFINITY$1 = 8734, NAME_CHAR$1 = new Uint8Array(128).map(((_, idx) => /[a-zA-Z0-9\-]/.test(String.fromCharCode(idx)) ? 1 : 0)), COMBINATOR_PRECEDENCE$1 = { + " ": 1, + "&&": 2, + "||": 3, + "|": 4 +}; + +function scanSpaces$1(tokenizer) { + return tokenizer.substringToPos(tokenizer.findWsEnd(tokenizer.pos)); +} + +function scanWord$1(tokenizer) { + let end = tokenizer.pos; + for (;end < tokenizer.str.length; end++) { + const code = tokenizer.str.charCodeAt(end); + if (code >= 128 || 0 === NAME_CHAR$1[code]) break; + } + return tokenizer.pos === end && tokenizer.error("Expect a keyword"), tokenizer.substringToPos(end); +} + +function scanNumber$1(tokenizer) { + let end = tokenizer.pos; + for (;end < tokenizer.str.length; end++) { + const code = tokenizer.str.charCodeAt(end); + if (code < 48 || code > 57) break; + } + return tokenizer.pos === end && tokenizer.error("Expect a number"), tokenizer.substringToPos(end); +} + +function scanString$1(tokenizer) { + const end = tokenizer.str.indexOf("'", tokenizer.pos + 1); + return -1 === end && (tokenizer.pos = tokenizer.str.length, tokenizer.error("Expect an apostrophe")), + tokenizer.substringToPos(end + 1); +} + +function readMultiplierRange$1(tokenizer) { + let min = null, max = null; + return tokenizer.eat(LEFTCURLYBRACKET$2), min = scanNumber$1(tokenizer), tokenizer.charCode() === COMMA$1 ? (tokenizer.pos++, + tokenizer.charCode() !== RIGHTCURLYBRACKET$1 && (max = scanNumber$1(tokenizer))) : max = min, + tokenizer.eat(RIGHTCURLYBRACKET$1), { + min: Number(min), + max: max ? Number(max) : 0 + }; +} + +function maybeMultiplied$1(tokenizer, node) { + const multiplier = function(tokenizer) { + let range = null, comma = !1; + switch (tokenizer.charCode()) { + case ASTERISK$d: + tokenizer.pos++, range = { + min: 0, + max: 0 + }; + break; + + case PLUSSIGN$g: + tokenizer.pos++, range = { + min: 1, + max: 0 + }; + break; + + case QUESTIONMARK$4: + tokenizer.pos++, range = { + min: 0, + max: 1 + }; + break; + + case NUMBERSIGN$8: + tokenizer.pos++, comma = !0, tokenizer.charCode() === LEFTCURLYBRACKET$2 ? range = readMultiplierRange$1(tokenizer) : tokenizer.charCode() === QUESTIONMARK$4 ? (tokenizer.pos++, + range = { + min: 0, + max: 0 + }) : range = { + min: 1, + max: 0 + }; + break; + + case LEFTCURLYBRACKET$2: + range = readMultiplierRange$1(tokenizer); + break; + + default: + return null; + } + return { + type: "Multiplier", + comma, + min: range.min, + max: range.max, + term: null + }; + }(tokenizer); + return null !== multiplier ? (multiplier.term = node, tokenizer.charCode() === NUMBERSIGN$8 && tokenizer.charCodeAt(tokenizer.pos - 1) === PLUSSIGN$g ? maybeMultiplied$1(tokenizer, multiplier) : multiplier) : node; +} + +function maybeToken$1(tokenizer) { + const ch = tokenizer.peek(); + return "" === ch ? null : { + type: "Token", + value: ch + }; +} + +function readType$1(tokenizer) { + let name, opts = null; + return tokenizer.eat(LESSTHANSIGN$1), name = scanWord$1(tokenizer), tokenizer.charCode() === LEFTPARENTHESIS$5 && tokenizer.nextCharCode() === RIGHTPARENTHESIS$5 && (tokenizer.pos += 2, + name += "()"), tokenizer.charCodeAt(tokenizer.findWsEnd(tokenizer.pos)) === LEFTSQUAREBRACKET$1 && (scanSpaces$1(tokenizer), + opts = function(tokenizer) { + let min = null, max = null, sign = 1; + return tokenizer.eat(LEFTSQUAREBRACKET$1), tokenizer.charCode() === HYPERMINUS$1 && (tokenizer.peek(), + sign = -1), -1 == sign && tokenizer.charCode() === INFINITY$1 ? tokenizer.peek() : (min = sign * Number(scanNumber$1(tokenizer)), + 0 !== NAME_CHAR$1[tokenizer.charCode()] && (min += scanWord$1(tokenizer))), scanSpaces$1(tokenizer), + tokenizer.eat(COMMA$1), scanSpaces$1(tokenizer), tokenizer.charCode() === INFINITY$1 ? tokenizer.peek() : (sign = 1, + tokenizer.charCode() === HYPERMINUS$1 && (tokenizer.peek(), sign = -1), max = sign * Number(scanNumber$1(tokenizer)), + 0 !== NAME_CHAR$1[tokenizer.charCode()] && (max += scanWord$1(tokenizer))), tokenizer.eat(RIGHTSQUAREBRACKET$1), + { + type: "Range", + min, + max + }; + }(tokenizer)), tokenizer.eat(GREATERTHANSIGN$5), maybeMultiplied$1(tokenizer, { + type: "Type", + name, + opts + }); +} + +function regroupTerms$1(terms, combinators) { + function createGroup(terms, combinator) { + return { + type: "Group", + terms, + combinator, + disallowEmpty: !1, + explicit: !1 + }; + } + let combinator; + for (combinators = Object.keys(combinators).sort(((a, b) => COMBINATOR_PRECEDENCE$1[a] - COMBINATOR_PRECEDENCE$1[b])); combinators.length > 0; ) { + combinator = combinators.shift(); + let i = 0, subgroupStart = 0; + for (;i < terms.length; i++) { + const term = terms[i]; + "Combinator" === term.type && (term.value === combinator ? (-1 === subgroupStart && (subgroupStart = i - 1), + terms.splice(i, 1), i--) : (-1 !== subgroupStart && i - subgroupStart > 1 && (terms.splice(subgroupStart, i - subgroupStart, createGroup(terms.slice(subgroupStart, i), combinator)), + i = subgroupStart + 1), subgroupStart = -1)); + } + -1 !== subgroupStart && combinators.length && terms.splice(subgroupStart, i - subgroupStart, createGroup(terms.slice(subgroupStart, i), combinator)); + } + return combinator; +} + +function readImplicitGroup$1(tokenizer) { + const terms = [], combinators = {}; + let token, prevToken = null, prevTokenPos = tokenizer.pos; + for (;token = peek$1(tokenizer); ) "Spaces" !== token.type && ("Combinator" === token.type ? (null !== prevToken && "Combinator" !== prevToken.type || (tokenizer.pos = prevTokenPos, + tokenizer.error("Unexpected combinator")), combinators[token.value] = !0) : null !== prevToken && "Combinator" !== prevToken.type && (combinators[" "] = !0, + terms.push({ + type: "Combinator", + value: " " + })), terms.push(token), prevToken = token, prevTokenPos = tokenizer.pos); + return null !== prevToken && "Combinator" === prevToken.type && (tokenizer.pos -= prevTokenPos, + tokenizer.error("Unexpected combinator")), { + type: "Group", + terms, + combinator: regroupTerms$1(terms, combinators) || " ", + disallowEmpty: !1, + explicit: !1 + }; +} + +function peek$1(tokenizer) { + let code = tokenizer.charCode(); + if (code < 128 && 1 === NAME_CHAR$1[code]) return function(tokenizer) { + const name = scanWord$1(tokenizer); + return tokenizer.charCode() === LEFTPARENTHESIS$5 ? (tokenizer.pos++, { + type: "Function", + name + }) : maybeMultiplied$1(tokenizer, { + type: "Keyword", + name + }); + }(tokenizer); + switch (code) { + case RIGHTSQUAREBRACKET$1: + break; + + case LEFTSQUAREBRACKET$1: + return maybeMultiplied$1(tokenizer, function(tokenizer) { + let result; + return tokenizer.eat(LEFTSQUAREBRACKET$1), result = readImplicitGroup$1(tokenizer), + tokenizer.eat(RIGHTSQUAREBRACKET$1), result.explicit = !0, tokenizer.charCode() === EXCLAMATIONMARK$6 && (tokenizer.pos++, + result.disallowEmpty = !0), result; + }(tokenizer)); + + case LESSTHANSIGN$1: + return tokenizer.nextCharCode() === APOSTROPHE$5 ? function(tokenizer) { + let name; + return tokenizer.eat(LESSTHANSIGN$1), tokenizer.eat(APOSTROPHE$5), name = scanWord$1(tokenizer), + tokenizer.eat(APOSTROPHE$5), tokenizer.eat(GREATERTHANSIGN$5), maybeMultiplied$1(tokenizer, { + type: "Property", + name + }); + }(tokenizer) : readType$1(tokenizer); + + case VERTICALLINE$7: + return { + type: "Combinator", + value: tokenizer.substringToPos(tokenizer.pos + (tokenizer.nextCharCode() === VERTICALLINE$7 ? 2 : 1)) + }; + + case AMPERSAND$7: + return tokenizer.pos++, tokenizer.eat(AMPERSAND$7), { + type: "Combinator", + value: "&&" + }; + + case COMMA$1: + return tokenizer.pos++, { + type: "Comma" + }; + + case APOSTROPHE$5: + return maybeMultiplied$1(tokenizer, { + type: "String", + value: scanString$1(tokenizer) + }); + + case SPACE$6: + case TAB$2: + case N$6: + case R$3: + case F$3: + return { + type: "Spaces", + value: scanSpaces$1(tokenizer) + }; + + case COMMERCIALAT$1: + return code = tokenizer.nextCharCode(), code < 128 && 1 === NAME_CHAR$1[code] ? (tokenizer.pos++, + { + type: "AtKeyword", + name: scanWord$1(tokenizer) + }) : maybeToken$1(tokenizer); + + case ASTERISK$d: + case PLUSSIGN$g: + case QUESTIONMARK$4: + case NUMBERSIGN$8: + case EXCLAMATIONMARK$6: + break; + + case LEFTCURLYBRACKET$2: + if (code = tokenizer.nextCharCode(), code < 48 || code > 57) return maybeToken$1(tokenizer); + break; + + default: + return maybeToken$1(tokenizer); + } +} + +parse$1u.parse = function(source) { + const tokenizer$1 = new tokenizer$3.Tokenizer(source), result = readImplicitGroup$1(tokenizer$1); + return tokenizer$1.pos !== source.length && tokenizer$1.error("Unexpected input"), + 1 === result.terms.length && "Group" === result.terms[0].type ? result.terms[0] : result; +}; + +const parse$1s = parse$1u, MATCH$1 = { + type: "Match" +}, MISMATCH$1 = { + type: "Mismatch" +}, DISALLOW_EMPTY$1 = { + type: "DisallowEmpty" +}, LEFTPARENTHESIS$4 = 40, RIGHTPARENTHESIS$4 = 41; + +function createCondition$1(match, thenBranch, elseBranch) { + return thenBranch === MATCH$1 && elseBranch === MISMATCH$1 || match === MATCH$1 && thenBranch === MATCH$1 && elseBranch === MATCH$1 ? match : ("If" === match.type && match.else === MISMATCH$1 && thenBranch === MATCH$1 && (thenBranch = match.then, + match = match.match), { + type: "If", + match, + then: thenBranch, + else: elseBranch + }); +} + +function isFunctionType$1(name) { + return name.length > 2 && name.charCodeAt(name.length - 2) === LEFTPARENTHESIS$4 && name.charCodeAt(name.length - 1) === RIGHTPARENTHESIS$4; +} + +function isEnumCapatible$1(term) { + return "Keyword" === term.type || "AtKeyword" === term.type || "Function" === term.type || "Type" === term.type && isFunctionType$1(term.name); +} + +function buildGroupMatchGraph$1(combinator, terms, atLeastOneTermMatched) { + switch (combinator) { + case " ": + { + let result = MATCH$1; + for (let i = terms.length - 1; i >= 0; i--) { + result = createCondition$1(terms[i], result, MISMATCH$1); + } + return result; + } + + case "|": + { + let result = MISMATCH$1, map = null; + for (let i = terms.length - 1; i >= 0; i--) { + let term = terms[i]; + if (isEnumCapatible$1(term) && (null === map && i > 0 && isEnumCapatible$1(terms[i - 1]) && (map = Object.create(null), + result = createCondition$1({ + type: "Enum", + map + }, MATCH$1, result)), null !== map)) { + const key = (isFunctionType$1(term.name) ? term.name.slice(0, -1) : term.name).toLowerCase(); + if (key in map == !1) { + map[key] = term; + continue; + } + } + map = null, result = createCondition$1(term, MATCH$1, result); + } + return result; + } + + case "&&": + { + if (terms.length > 5) return { + type: "MatchOnce", + terms, + all: !0 + }; + let result = MISMATCH$1; + for (let i = terms.length - 1; i >= 0; i--) { + const term = terms[i]; + let thenClause; + thenClause = terms.length > 1 ? buildGroupMatchGraph$1(combinator, terms.filter((function(newGroupTerm) { + return newGroupTerm !== term; + })), !1) : MATCH$1, result = createCondition$1(term, thenClause, result); + } + return result; + } + + case "||": + { + if (terms.length > 5) return { + type: "MatchOnce", + terms, + all: !1 + }; + let result = atLeastOneTermMatched ? MATCH$1 : MISMATCH$1; + for (let i = terms.length - 1; i >= 0; i--) { + const term = terms[i]; + let thenClause; + thenClause = terms.length > 1 ? buildGroupMatchGraph$1(combinator, terms.filter((function(newGroupTerm) { + return newGroupTerm !== term; + })), !0) : MATCH$1, result = createCondition$1(term, thenClause, result); + } + return result; + } + } +} + +function buildMatchGraphInternal$1(node) { + if ("function" == typeof node) return { + type: "Generic", + fn: node + }; + switch (node.type) { + case "Group": + { + let result = buildGroupMatchGraph$1(node.combinator, node.terms.map(buildMatchGraphInternal$1), !1); + return node.disallowEmpty && (result = createCondition$1(result, DISALLOW_EMPTY$1, MISMATCH$1)), + result; + } + + case "Multiplier": + return function(node) { + let result = MATCH$1, matchTerm = buildMatchGraphInternal$1(node.term); + if (0 === node.max) matchTerm = createCondition$1(matchTerm, DISALLOW_EMPTY$1, MISMATCH$1), + result = createCondition$1(matchTerm, null, MISMATCH$1), result.then = createCondition$1(MATCH$1, MATCH$1, result), + node.comma && (result.then.else = createCondition$1({ + type: "Comma", + syntax: node + }, result, MISMATCH$1)); else for (let i = node.min || 1; i <= node.max; i++) node.comma && result !== MATCH$1 && (result = createCondition$1({ + type: "Comma", + syntax: node + }, result, MISMATCH$1)), result = createCondition$1(matchTerm, createCondition$1(MATCH$1, MATCH$1, result), MISMATCH$1); + if (0 === node.min) result = createCondition$1(MATCH$1, MATCH$1, result); else for (let i = 0; i < node.min - 1; i++) node.comma && result !== MATCH$1 && (result = createCondition$1({ + type: "Comma", + syntax: node + }, result, MISMATCH$1)), result = createCondition$1(matchTerm, result, MISMATCH$1); + return result; + }(node); + + case "Type": + case "Property": + return { + type: node.type, + name: node.name, + syntax: node + }; + + case "Keyword": + return { + type: node.type, + name: node.name.toLowerCase(), + syntax: node + }; + + case "AtKeyword": + return { + type: node.type, + name: "@" + node.name.toLowerCase(), + syntax: node + }; + + case "Function": + return { + type: node.type, + name: node.name.toLowerCase() + "(", + syntax: node + }; + + case "String": + return 3 === node.value.length ? { + type: "Token", + value: node.value.charAt(1), + syntax: node + } : { + type: node.type, + value: node.value.substr(1, node.value.length - 2).replace(/\\'/g, "'"), + syntax: node + }; + + case "Token": + return { + type: node.type, + value: node.value, + syntax: node + }; + + case "Comma": + return { + type: node.type, + syntax: node + }; + + default: + throw new Error("Unknown node type:", node.type); + } +} + +matchGraph$5.DISALLOW_EMPTY = DISALLOW_EMPTY$1, matchGraph$5.MATCH = MATCH$1, matchGraph$5.MISMATCH = MISMATCH$1, +matchGraph$5.buildMatchGraph = function(syntaxTree, ref) { + return "string" == typeof syntaxTree && (syntaxTree = parse$1s.parse(syntaxTree)), + { + type: "MatchGraph", + match: buildMatchGraphInternal$1(syntaxTree), + syntax: ref || null, + source: syntaxTree + }; +}; + +var match$3 = {}; + +const matchGraph$4 = matchGraph$5, types$1y = types$1I, {hasOwnProperty: hasOwnProperty$c} = Object.prototype, STUB$1 = 0, TOKEN$1 = 1, OPEN_SYNTAX$1 = 2, CLOSE_SYNTAX$1 = 3, EXIT_REASON_MATCH$1 = "Match", EXIT_REASON_MISMATCH$1 = "Mismatch", EXIT_REASON_ITERATION_LIMIT$1 = "Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)", ITERATION_LIMIT$1 = 15000; + +function reverseList$1(list) { + let prev = null, next = null, item = list; + for (;null !== item; ) next = item.prev, item.prev = prev, prev = item, item = next; + return prev; +} + +function areStringsEqualCaseInsensitive$1(testStr, referenceStr) { + if (testStr.length !== referenceStr.length) return !1; + for (let i = 0; i < testStr.length; i++) { + const referenceCode = referenceStr.charCodeAt(i); + let testCode = testStr.charCodeAt(i); + if (testCode >= 0x0041 && testCode <= 0x005A && (testCode |= 32), testCode !== referenceCode) return !1; + } + return !0; +} + +function isCommaContextStart$1(token) { + return null === token || (token.type === types$1y.Comma || token.type === types$1y.Function || token.type === types$1y.LeftParenthesis || token.type === types$1y.LeftSquareBracket || token.type === types$1y.LeftCurlyBracket || function(token) { + return token.type === types$1y.Delim && "?" !== token.value; + }(token)); +} + +function isCommaContextEnd$1(token) { + return null === token || (token.type === types$1y.RightParenthesis || token.type === types$1y.RightSquareBracket || token.type === types$1y.RightCurlyBracket || token.type === types$1y.Delim && "/" === token.value); +} + +function internalMatch$1(tokens, state, syntaxes) { + function moveToNextToken() { + do { + tokenIndex++, token = tokenIndex < tokens.length ? tokens[tokenIndex] : null; + } while (null !== token && (token.type === types$1y.WhiteSpace || token.type === types$1y.Comment)); + } + function getNextToken(offset) { + const nextIndex = tokenIndex + offset; + return nextIndex < tokens.length ? tokens[nextIndex] : null; + } + function stateSnapshotFromSyntax(nextState, prev) { + return { + nextState, + matchStack, + syntaxStack, + thenStack, + tokenIndex, + prev + }; + } + function pushThenStack(nextState) { + thenStack = { + nextState, + matchStack, + syntaxStack, + prev: thenStack + }; + } + function pushElseStack(nextState) { + elseStack = stateSnapshotFromSyntax(nextState, elseStack); + } + function addTokenToMatch() { + matchStack = { + type: TOKEN$1, + syntax: state.syntax, + token, + prev: matchStack + }, moveToNextToken(), syntaxStash = null, tokenIndex > longestMatch && (longestMatch = tokenIndex); + } + function closeSyntax() { + matchStack = matchStack.type === OPEN_SYNTAX$1 ? matchStack.prev : { + type: CLOSE_SYNTAX$1, + syntax: syntaxStack.syntax, + token: matchStack.token, + prev: matchStack + }, syntaxStack = syntaxStack.prev; + } + let syntaxStack = null, thenStack = null, elseStack = null, syntaxStash = null, iterationCount = 0, exitReason = null, token = null, tokenIndex = -1, longestMatch = 0, matchStack = { + type: STUB$1, + syntax: null, + token: null, + prev: null + }; + for (moveToNextToken(); null === exitReason && ++iterationCount < ITERATION_LIMIT$1; ) switch (state.type) { + case "Match": + if (null === thenStack) { + if (null !== token && (tokenIndex !== tokens.length - 1 || "\\0" !== token.value && "\\9" !== token.value)) { + state = matchGraph$4.MISMATCH; + break; + } + exitReason = EXIT_REASON_MATCH$1; + break; + } + if ((state = thenStack.nextState) === matchGraph$4.DISALLOW_EMPTY) { + if (thenStack.matchStack === matchStack) { + state = matchGraph$4.MISMATCH; + break; + } + state = matchGraph$4.MATCH; + } + for (;thenStack.syntaxStack !== syntaxStack; ) closeSyntax(); + thenStack = thenStack.prev; + break; + + case "Mismatch": + if (null !== syntaxStash && !1 !== syntaxStash) (null === elseStack || tokenIndex > elseStack.tokenIndex) && (elseStack = syntaxStash, + syntaxStash = !1); else if (null === elseStack) { + exitReason = EXIT_REASON_MISMATCH$1; + break; + } + state = elseStack.nextState, thenStack = elseStack.thenStack, syntaxStack = elseStack.syntaxStack, + matchStack = elseStack.matchStack, tokenIndex = elseStack.tokenIndex, token = tokenIndex < tokens.length ? tokens[tokenIndex] : null, + elseStack = elseStack.prev; + break; + + case "MatchGraph": + state = state.match; + break; + + case "If": + state.else !== matchGraph$4.MISMATCH && pushElseStack(state.else), state.then !== matchGraph$4.MATCH && pushThenStack(state.then), + state = state.match; + break; + + case "MatchOnce": + state = { + type: "MatchOnceBuffer", + syntax: state, + index: 0, + mask: 0 + }; + break; + + case "MatchOnceBuffer": + { + const terms = state.syntax.terms; + if (state.index === terms.length) { + if (0 === state.mask || state.syntax.all) { + state = matchGraph$4.MISMATCH; + break; + } + state = matchGraph$4.MATCH; + break; + } + if (state.mask === (1 << terms.length) - 1) { + state = matchGraph$4.MATCH; + break; + } + for (;state.index < terms.length; state.index++) { + const matchFlag = 1 << state.index; + if (0 == (state.mask & matchFlag)) { + pushElseStack(state), pushThenStack({ + type: "AddMatchOnce", + syntax: state.syntax, + mask: state.mask | matchFlag + }), state = terms[state.index++]; + break; + } + } + break; + } + + case "AddMatchOnce": + state = { + type: "MatchOnceBuffer", + syntax: state.syntax, + index: 0, + mask: state.mask + }; + break; + + case "Enum": + if (null !== token) { + let name = token.value.toLowerCase(); + if (-1 !== name.indexOf("\\") && (name = name.replace(/\\[09].*$/, "")), hasOwnProperty$c.call(state.map, name)) { + state = state.map[name]; + break; + } + } + state = matchGraph$4.MISMATCH; + break; + + case "Generic": + { + const opts = null !== syntaxStack ? syntaxStack.opts : null, lastTokenIndex = tokenIndex + Math.floor(state.fn(token, getNextToken, opts)); + if (!isNaN(lastTokenIndex) && lastTokenIndex > tokenIndex) { + for (;tokenIndex < lastTokenIndex; ) addTokenToMatch(); + state = matchGraph$4.MATCH; + } else state = matchGraph$4.MISMATCH; + break; + } + + case "Type": + case "Property": + { + const syntaxDict = "Type" === state.type ? "types" : "properties", dictSyntax = hasOwnProperty$c.call(syntaxes, syntaxDict) ? syntaxes[syntaxDict][state.name] : null; + if (!dictSyntax || !dictSyntax.match) throw new Error("Bad syntax reference: " + ("Type" === state.type ? "<" + state.name + ">" : "<'" + state.name + "'>")); + if (!1 !== syntaxStash && null !== token && "Type" === state.type) { + if ("custom-ident" === state.name && token.type === types$1y.Ident || "length" === state.name && "0" === token.value) { + null === syntaxStash && (syntaxStash = stateSnapshotFromSyntax(state, elseStack)), + state = matchGraph$4.MISMATCH; + break; + } + } + syntaxStack = { + syntax: state.syntax, + opts: state.syntax.opts || null !== syntaxStack && syntaxStack.opts || null, + prev: syntaxStack + }, matchStack = { + type: OPEN_SYNTAX$1, + syntax: state.syntax, + token: matchStack.token, + prev: matchStack + }, state = dictSyntax.match; + break; + } + + case "Keyword": + { + const name = state.name; + if (null !== token) { + let keywordName = token.value; + if (-1 !== keywordName.indexOf("\\") && (keywordName = keywordName.replace(/\\[09].*$/, "")), + areStringsEqualCaseInsensitive$1(keywordName, name)) { + addTokenToMatch(), state = matchGraph$4.MATCH; + break; + } + } + state = matchGraph$4.MISMATCH; + break; + } + + case "AtKeyword": + case "Function": + if (null !== token && areStringsEqualCaseInsensitive$1(token.value, state.name)) { + addTokenToMatch(), state = matchGraph$4.MATCH; + break; + } + state = matchGraph$4.MISMATCH; + break; + + case "Token": + if (null !== token && token.value === state.value) { + addTokenToMatch(), state = matchGraph$4.MATCH; + break; + } + state = matchGraph$4.MISMATCH; + break; + + case "Comma": + null !== token && token.type === types$1y.Comma ? isCommaContextStart$1(matchStack.token) ? state = matchGraph$4.MISMATCH : (addTokenToMatch(), + state = isCommaContextEnd$1(token) ? matchGraph$4.MISMATCH : matchGraph$4.MATCH) : state = isCommaContextStart$1(matchStack.token) || isCommaContextEnd$1(token) ? matchGraph$4.MATCH : matchGraph$4.MISMATCH; + break; + + case "String": + let string = "", lastTokenIndex = tokenIndex; + for (;lastTokenIndex < tokens.length && string.length < state.value.length; lastTokenIndex++) string += tokens[lastTokenIndex].value; + if (areStringsEqualCaseInsensitive$1(string, state.value)) { + for (;tokenIndex < lastTokenIndex; ) addTokenToMatch(); + state = matchGraph$4.MATCH; + } else state = matchGraph$4.MISMATCH; + break; + + default: + throw new Error("Unknown node type: " + state.type); + } + switch (exitReason) { + case null: + console.warn("[csstree-match] BREAK after " + ITERATION_LIMIT$1 + " iterations"), + exitReason = EXIT_REASON_ITERATION_LIMIT$1, matchStack = null; + break; + + case EXIT_REASON_MATCH$1: + for (;null !== syntaxStack; ) closeSyntax(); + break; + + default: + matchStack = null; + } + return { + tokens, + reason: exitReason, + iterations: iterationCount, + match: matchStack, + longestMatch + }; +} + +match$3.matchAsList = function(tokens, matchGraph, syntaxes) { + const matchResult = internalMatch$1(tokens, matchGraph, syntaxes || {}); + if (null !== matchResult.match) { + let item = reverseList$1(matchResult.match).prev; + for (matchResult.match = []; null !== item; ) { + switch (item.type) { + case OPEN_SYNTAX$1: + case CLOSE_SYNTAX$1: + matchResult.match.push({ + type: item.type, + syntax: item.syntax + }); + break; + + default: + matchResult.match.push({ + token: item.token.value, + node: item.token.node + }); + } + item = item.prev; + } + } + return matchResult; +}, match$3.matchAsTree = function(tokens, matchGraph, syntaxes) { + const matchResult = internalMatch$1(tokens, matchGraph, syntaxes || {}); + if (null === matchResult.match) return matchResult; + let item = matchResult.match, host = matchResult.match = { + syntax: matchGraph.syntax || null, + match: [] + }; + const hostStack = [ host ]; + for (item = reverseList$1(item).prev; null !== item; ) { + switch (item.type) { + case OPEN_SYNTAX$1: + host.match.push(host = { + syntax: item.syntax, + match: [] + }), hostStack.push(host); + break; + + case CLOSE_SYNTAX$1: + hostStack.pop(), host = hostStack[hostStack.length - 1]; + break; + + default: + host.match.push({ + syntax: item.syntax || null, + token: item.token.value, + node: item.token.node + }); + } + item = item.prev; + } + return matchResult; +}; + +var trace$3 = {}; + +function getTrace$1(node) { + function shouldPutToTrace(syntax) { + return null !== syntax && ("Type" === syntax.type || "Property" === syntax.type || "Keyword" === syntax.type); + } + let result = null; + return null !== this.matched && function hasMatch(matchNode) { + if (Array.isArray(matchNode.match)) { + for (let i = 0; i < matchNode.match.length; i++) if (hasMatch(matchNode.match[i])) return shouldPutToTrace(matchNode.syntax) && result.unshift(matchNode.syntax), + !0; + } else if (matchNode.node === node) return result = shouldPutToTrace(matchNode.syntax) ? [ matchNode.syntax ] : [], + !0; + return !1; + }(this.matched), result; +} + +function testNode$1(match, node, fn) { + const trace = getTrace$1.call(match, node); + return null !== trace && trace.some(fn); +} + +trace$3.getTrace = getTrace$1, trace$3.isKeyword = function(node) { + return testNode$1(this, node, (match => "Keyword" === match.type)); +}, trace$3.isProperty = function(node, property) { + return testNode$1(this, node, (match => "Property" === match.type && match.name === property)); +}, trace$3.isType = function(node, type) { + return testNode$1(this, node, (match => "Type" === match.type && match.name === type)); +}; + +var search$3 = {}; + +const List$b = List$f; + +function getFirstMatchNode$1(matchNode) { + return "node" in matchNode ? matchNode.node : getFirstMatchNode$1(matchNode.match[0]); +} + +function getLastMatchNode$1(matchNode) { + return "node" in matchNode ? matchNode.node : getLastMatchNode$1(matchNode.match[matchNode.match.length - 1]); +} + +search$3.matchFragments = function(lexer, ast, match, type, name) { + const fragments = []; + return null !== match.matched && function findFragments(matchNode) { + if (null !== matchNode.syntax && matchNode.syntax.type === type && matchNode.syntax.name === name) { + const start = getFirstMatchNode$1(matchNode), end = getLastMatchNode$1(matchNode); + lexer.syntax.walk(ast, (function(node, item, list) { + if (node === start) { + const nodes = new List$b.List; + do { + if (nodes.appendData(item.data), item.data === end) break; + item = item.next; + } while (null !== item); + fragments.push({ + parent: list, + nodes + }); + } + })); + } + Array.isArray(matchNode.match) && matchNode.match.forEach(findFragments); + }(match.matched), fragments; +}; + +var structure$1k = {}; + +const List$a = List$f, {hasOwnProperty: hasOwnProperty$b} = Object.prototype; + +function isValidNumber$1(value) { + return "number" == typeof value && isFinite(value) && Math.floor(value) === value && value >= 0; +} + +function isValidLocation$1(loc) { + return Boolean(loc) && isValidNumber$1(loc.offset) && isValidNumber$1(loc.line) && isValidNumber$1(loc.column); +} + +function createNodeStructureChecker$1(type, fields) { + return function(node, warn) { + if (!node || node.constructor !== Object) return warn(node, "Type of node should be an Object"); + for (let key in node) { + let valid = !0; + if (!1 !== hasOwnProperty$b.call(node, key)) { + if ("type" === key) node.type !== type && warn(node, "Wrong node type `" + node.type + "`, expected `" + type + "`"); else if ("loc" === key) { + if (null === node.loc) continue; + if (node.loc && node.loc.constructor === Object) if ("string" != typeof node.loc.source) key += ".source"; else if (isValidLocation$1(node.loc.start)) { + if (isValidLocation$1(node.loc.end)) continue; + key += ".end"; + } else key += ".start"; + valid = !1; + } else if (fields.hasOwnProperty(key)) { + valid = !1; + for (let i = 0; !valid && i < fields[key].length; i++) { + const fieldType = fields[key][i]; + switch (fieldType) { + case String: + valid = "string" == typeof node[key]; + break; + + case Boolean: + valid = "boolean" == typeof node[key]; + break; + + case null: + valid = null === node[key]; + break; + + default: + "string" == typeof fieldType ? valid = node[key] && node[key].type === fieldType : Array.isArray(fieldType) && (valid = node[key] instanceof List$a.List); + } + } + } else warn(node, "Unknown field `" + key + "` for " + type + " node type"); + valid || warn(node, "Bad value for `" + type + "." + key + "`"); + } + } + for (const key in fields) hasOwnProperty$b.call(fields, key) && !1 === hasOwnProperty$b.call(node, key) && warn(node, "Field `" + type + "." + key + "` is missed"); + }; +} + +function processStructure$1(name, nodeType) { + const structure = nodeType.structure, fields = { + type: String, + loc: !0 + }, docs = { + type: '"' + name + '"' + }; + for (const key in structure) { + if (!1 === hasOwnProperty$b.call(structure, key)) continue; + const docsTypes = [], fieldTypes = fields[key] = Array.isArray(structure[key]) ? structure[key].slice() : [ structure[key] ]; + for (let i = 0; i < fieldTypes.length; i++) { + const fieldType = fieldTypes[i]; + if (fieldType === String || fieldType === Boolean) docsTypes.push(fieldType.name); else if (null === fieldType) docsTypes.push("null"); else if ("string" == typeof fieldType) docsTypes.push("<" + fieldType + ">"); else { + if (!Array.isArray(fieldType)) throw new Error("Wrong value `" + fieldType + "` in `" + name + "." + key + "` structure definition"); + docsTypes.push("List"); + } + } + docs[key] = docsTypes.join(" | "); + } + return { + docs, + check: createNodeStructureChecker$1(name, fields) + }; +} + +structure$1k.getStructureFromConfig = function(config) { + const structure = {}; + if (config.node) for (const name in config.node) if (hasOwnProperty$b.call(config.node, name)) { + const nodeType = config.node[name]; + if (!nodeType.structure) throw new Error("Missed `structure` field in `" + name + "` node type definition"); + structure[name] = processStructure$1(name, nodeType); + } + return structure; +}; + +var walk$a = {}; + +const noop$3 = function() {}; + +function ensureFunction$2(value) { + return "function" == typeof value ? value : noop$3; +} + +walk$a.walk = function(node, options, context) { + let enter = noop$3, leave = noop$3; + if ("function" == typeof options ? enter = options : options && (enter = ensureFunction$2(options.enter), + leave = ensureFunction$2(options.leave)), enter === noop$3 && leave === noop$3) throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function"); + !function walk(node) { + switch (enter.call(context, node), node.type) { + case "Group": + node.terms.forEach(walk); + break; + + case "Multiplier": + walk(node.term); + break; + + case "Type": + case "Property": + case "Keyword": + case "AtKeyword": + case "Function": + case "String": + case "Token": + case "Comma": + break; + + default: + throw new Error("Unknown type: " + node.type); + } + leave.call(context, node); + }(node); +}; + +const error$3 = error$4, names$b = names$c, genericConst$3 = genericConst$5, generic$2 = generic$3, units = units$1, prepareTokens$2 = prepareTokens_1$1, matchGraph$3 = matchGraph$5, match$2 = match$3, trace$2 = trace$3, search$2 = search$3, structure$1j = structure$1k, parse$1r = parse$1u, generate$1r = generate$1u, walk$8 = walk$a, cssWideKeywordsSyntax$1 = matchGraph$3.buildMatchGraph(genericConst$3.cssWideKeywords.join(" | ")); + +function dumpMapSyntax$1(map, compact, syntaxAsAst) { + const result = {}; + for (const name in map) map[name].syntax && (result[name] = syntaxAsAst ? map[name].syntax : generate$1r.generate(map[name].syntax, { + compact + })); + return result; +} + +function dumpAtruleMapSyntax$1(map, compact, syntaxAsAst) { + const result = {}; + for (const [name, atrule] of Object.entries(map)) result[name] = { + prelude: atrule.prelude && (syntaxAsAst ? atrule.prelude.syntax : generate$1r.generate(atrule.prelude.syntax, { + compact + })), + descriptors: atrule.descriptors && dumpMapSyntax$1(atrule.descriptors, compact, syntaxAsAst) + }; + return result; +} + +function buildMatchResult$1(matched, error, iterations) { + return { + matched, + iterations, + error, + ...trace$2 + }; +} + +function matchSyntax$1(lexer, syntax, value, useCssWideKeywords) { + const tokens = prepareTokens$2(value, lexer.syntax); + let result; + return function(tokens) { + for (let i = 0; i < tokens.length; i++) if ("var(" === tokens[i].value.toLowerCase()) return !0; + return !1; + }(tokens) ? buildMatchResult$1(null, new Error("Matching for a tree with var() is not supported")) : (useCssWideKeywords && (result = match$2.matchAsTree(tokens, lexer.cssWideKeywordsSyntax, lexer)), + useCssWideKeywords && result.match || (result = match$2.matchAsTree(tokens, syntax.match, lexer), + result.match) ? buildMatchResult$1(result.match, null, result.iterations) : buildMatchResult$1(null, new error$3.SyntaxMatchError(result.reason, syntax.syntax, value, result), result.iterations)); +} + +function appendOrSet(a, b) { + return "string" == typeof b && /^\s*\|/.test(b) ? "string" == typeof a ? a + b : b.replace(/^\s*\|\s*/, "") : b || null; +} + +function sliceProps(obj, props) { + const result = Object.create(null); + for (const [key, value] of Object.entries(obj)) if (value) { + result[key] = {}; + for (const prop of Object.keys(value)) props.includes(prop) && (result[key][prop] = value[prop]); + } + return result; +} + +Lexer$7.Lexer = class { + constructor(config, syntax, structure$1) { + if (this.cssWideKeywordsSyntax = cssWideKeywordsSyntax$1, this.syntax = syntax, + this.generic = !1, this.units = { + ...units + }, this.atrules = Object.create(null), this.properties = Object.create(null), this.types = Object.create(null), + this.structure = structure$1 || structure$1j.getStructureFromConfig(config), config) { + if (config.units) for (const group of Object.keys(units)) Array.isArray(config.units[group]) && (this.units[group] = config.units[group]); + if (config.types) for (const name in config.types) this.addType_(name, config.types[name]); + if (config.generic) { + this.generic = !0; + for (const [name, value] of Object.entries(generic$2.createGenericTypes(this.units))) this.addType_(name, value); + } + if (config.atrules) for (const name in config.atrules) this.addAtrule_(name, config.atrules[name]); + if (config.properties) for (const name in config.properties) this.addProperty_(name, config.properties[name]); + } + } + checkStructure(ast) { + function collectWarning(node, message) { + warns.push({ + node, + message + }); + } + const structure = this.structure, warns = []; + return this.syntax.walk(ast, (function(node) { + structure.hasOwnProperty(node.type) ? structure[node.type].check(node, collectWarning) : collectWarning(node, "Unknown node type `" + node.type + "`"); + })), !!warns.length && warns; + } + createDescriptor(syntax, type, name, parent = null) { + const ref = { + type, + name + }, descriptor = { + type, + name, + parent, + serializable: "string" == typeof syntax || syntax && "string" == typeof syntax.type, + syntax: null, + match: null + }; + return "function" == typeof syntax ? descriptor.match = matchGraph$3.buildMatchGraph(syntax, ref) : ("string" == typeof syntax ? Object.defineProperty(descriptor, "syntax", { + get: () => (Object.defineProperty(descriptor, "syntax", { + value: parse$1r.parse(syntax) + }), descriptor.syntax) + }) : descriptor.syntax = syntax, Object.defineProperty(descriptor, "match", { + get: () => (Object.defineProperty(descriptor, "match", { + value: matchGraph$3.buildMatchGraph(descriptor.syntax, ref) + }), descriptor.match) + })), descriptor; + } + addAtrule_(name, syntax) { + syntax && (this.atrules[name] = { + type: "Atrule", + name, + prelude: syntax.prelude ? this.createDescriptor(syntax.prelude, "AtrulePrelude", name) : null, + descriptors: syntax.descriptors ? Object.keys(syntax.descriptors).reduce(((map, descName) => (map[descName] = this.createDescriptor(syntax.descriptors[descName], "AtruleDescriptor", descName, name), + map)), Object.create(null)) : null + }); + } + addProperty_(name, syntax) { + syntax && (this.properties[name] = this.createDescriptor(syntax, "Property", name)); + } + addType_(name, syntax) { + syntax && (this.types[name] = this.createDescriptor(syntax, "Type", name)); + } + checkAtruleName(atruleName) { + if (!this.getAtrule(atruleName)) return new error$3.SyntaxReferenceError("Unknown at-rule", "@" + atruleName); + } + checkAtrulePrelude(atruleName, prelude) { + const error = this.checkAtruleName(atruleName); + if (error) return error; + const atrule = this.getAtrule(atruleName); + return !atrule.prelude && prelude ? new SyntaxError("At-rule `@" + atruleName + "` should not contain a prelude") : !atrule.prelude || prelude || matchSyntax$1(this, atrule.prelude, "", !1).matched ? void 0 : new SyntaxError("At-rule `@" + atruleName + "` should contain a prelude"); + } + checkAtruleDescriptorName(atruleName, descriptorName) { + const error$1 = this.checkAtruleName(atruleName); + if (error$1) return error$1; + const atrule = this.getAtrule(atruleName), descriptor = names$b.keyword(descriptorName); + return atrule.descriptors ? atrule.descriptors[descriptor.name] || atrule.descriptors[descriptor.basename] ? void 0 : new error$3.SyntaxReferenceError("Unknown at-rule descriptor", descriptorName) : new SyntaxError("At-rule `@" + atruleName + "` has no known descriptors"); + } + checkPropertyName(propertyName) { + if (!this.getProperty(propertyName)) return new error$3.SyntaxReferenceError("Unknown property", propertyName); + } + matchAtrulePrelude(atruleName, prelude) { + const error = this.checkAtrulePrelude(atruleName, prelude); + if (error) return buildMatchResult$1(null, error); + const atrule = this.getAtrule(atruleName); + return atrule.prelude ? matchSyntax$1(this, atrule.prelude, prelude || "", !1) : buildMatchResult$1(null, null); + } + matchAtruleDescriptor(atruleName, descriptorName, value) { + const error = this.checkAtruleDescriptorName(atruleName, descriptorName); + if (error) return buildMatchResult$1(null, error); + const atrule = this.getAtrule(atruleName), descriptor = names$b.keyword(descriptorName); + return matchSyntax$1(this, atrule.descriptors[descriptor.name] || atrule.descriptors[descriptor.basename], value, !1); + } + matchDeclaration(node) { + return "Declaration" !== node.type ? buildMatchResult$1(null, new Error("Not a Declaration node")) : this.matchProperty(node.property, node.value); + } + matchProperty(propertyName, value) { + if (names$b.property(propertyName).custom) return buildMatchResult$1(null, new Error("Lexer matching doesn't applicable for custom properties")); + const error = this.checkPropertyName(propertyName); + return error ? buildMatchResult$1(null, error) : matchSyntax$1(this, this.getProperty(propertyName), value, !0); + } + matchType(typeName, value) { + const typeSyntax = this.getType(typeName); + return typeSyntax ? matchSyntax$1(this, typeSyntax, value, !1) : buildMatchResult$1(null, new error$3.SyntaxReferenceError("Unknown type", typeName)); + } + match(syntax, value) { + return "string" == typeof syntax || syntax && syntax.type ? ("string" != typeof syntax && syntax.match || (syntax = this.createDescriptor(syntax, "Type", "anonymous")), + matchSyntax$1(this, syntax, value, !1)) : buildMatchResult$1(null, new error$3.SyntaxReferenceError("Bad syntax")); + } + findValueFragments(propertyName, value, type, name) { + return search$2.matchFragments(this, value, this.matchProperty(propertyName, value), type, name); + } + findDeclarationValueFragments(declaration, type, name) { + return search$2.matchFragments(this, declaration.value, this.matchDeclaration(declaration), type, name); + } + findAllFragments(ast, type, name) { + const result = []; + return this.syntax.walk(ast, { + visit: "Declaration", + enter: declaration => { + result.push.apply(result, this.findDeclarationValueFragments(declaration, type, name)); + } + }), result; + } + getAtrule(atruleName, fallbackBasename = !0) { + const atrule = names$b.keyword(atruleName); + return (atrule.vendor && fallbackBasename ? this.atrules[atrule.name] || this.atrules[atrule.basename] : this.atrules[atrule.name]) || null; + } + getAtrulePrelude(atruleName, fallbackBasename = !0) { + const atrule = this.getAtrule(atruleName, fallbackBasename); + return atrule && atrule.prelude || null; + } + getAtruleDescriptor(atruleName, name) { + return this.atrules.hasOwnProperty(atruleName) && this.atrules.declarators && this.atrules[atruleName].declarators[name] || null; + } + getProperty(propertyName, fallbackBasename = !0) { + const property = names$b.property(propertyName); + return (property.vendor && fallbackBasename ? this.properties[property.name] || this.properties[property.basename] : this.properties[property.name]) || null; + } + getType(name) { + return hasOwnProperty.call(this.types, name) ? this.types[name] : null; + } + validate() { + function validate(syntax, name, broken, descriptor) { + if (broken.has(name)) return broken.get(name); + broken.set(name, !1), null !== descriptor.syntax && walk$8.walk(descriptor.syntax, (function(node) { + if ("Type" !== node.type && "Property" !== node.type) return; + const map = "Type" === node.type ? syntax.types : syntax.properties, brokenMap = "Type" === node.type ? brokenTypes : brokenProperties; + hasOwnProperty.call(map, node.name) && !validate(syntax, node.name, brokenMap, map[node.name]) || broken.set(name, !0); + }), this); + } + let brokenTypes = new Map, brokenProperties = new Map; + for (const key in this.types) validate(this, key, brokenTypes, this.types[key]); + for (const key in this.properties) validate(this, key, brokenProperties, this.properties[key]); + return brokenTypes = [ ...brokenTypes.keys() ].filter((name => brokenTypes.get(name))), + brokenProperties = [ ...brokenProperties.keys() ].filter((name => brokenProperties.get(name))), + brokenTypes.length || brokenProperties.length ? { + types: brokenTypes, + properties: brokenProperties + } : null; + } + dump(syntaxAsAst, pretty) { + return { + generic: this.generic, + units: this.units, + types: dumpMapSyntax$1(this.types, !pretty, syntaxAsAst), + properties: dumpMapSyntax$1(this.properties, !pretty, syntaxAsAst), + atrules: dumpAtruleMapSyntax$1(this.atrules, !pretty, syntaxAsAst) + }; + } + toString() { + return JSON.stringify(this.dump()); + } +}; + +var mix_1$1 = function(dest, src) { + const result = { + ...dest + }; + for (const [prop, value] of Object.entries(src)) switch (prop) { + case "generic": + result[prop] = Boolean(value); + break; + + case "units": + result[prop] = { + ...dest[prop] + }; + for (const [name, patch] of Object.entries(value)) result[prop][name] = Array.isArray(patch) ? patch : []; + break; + + case "atrules": + result[prop] = { + ...dest[prop] + }; + for (const [name, atrule] of Object.entries(value)) { + const exists = result[prop][name] || {}, current = result[prop][name] = { + prelude: exists.prelude || null, + descriptors: { + ...exists.descriptors + } + }; + if (atrule) { + current.prelude = atrule.prelude ? appendOrSet(current.prelude, atrule.prelude) : current.prelude || null; + for (const [descriptorName, descriptorValue] of Object.entries(atrule.descriptors || {})) current.descriptors[descriptorName] = descriptorValue ? appendOrSet(current.descriptors[descriptorName], descriptorValue) : null; + Object.keys(current.descriptors).length || (current.descriptors = null); + } + } + break; + + case "types": + case "properties": + result[prop] = { + ...dest[prop] + }; + for (const [name, syntax] of Object.entries(value)) result[prop][name] = appendOrSet(result[prop][name], syntax); + break; + + case "scope": + result[prop] = { + ...dest[prop] + }; + for (const [name, props] of Object.entries(value)) result[prop][name] = { + ...result[prop][name], + ...props + }; + break; + + case "parseContext": + result[prop] = { + ...dest[prop], + ...value + }; + break; + + case "atrule": + case "pseudo": + result[prop] = { + ...dest[prop], + ...sliceProps(value, [ "parse" ]) + }; + break; + + case "node": + result[prop] = { + ...dest[prop], + ...sliceProps(value, [ "name", "structure", "parse", "generate", "walkContext" ]) + }; + } + return result; +}; + +const index$g = tokenizer$5, create$a = create$e, create$2$2 = create$d, create$3$1 = create$c, create$1$2 = create$b, Lexer$5 = Lexer$7, mix$2 = mix_1$1; + +function createSyntax$2(config) { + const parse = create$a.createParser(config), walk = create$1$2.createWalker(config), generate = create$2$2.createGenerator(config), {fromPlainObject, toPlainObject} = create$3$1.createConvertor(walk), syntax = { + lexer: null, + createLexer: config => new Lexer$5.Lexer(config, syntax, syntax.lexer.structure), + tokenize: index$g.tokenize, + parse, + generate, + walk, + find: walk.find, + findLast: walk.findLast, + findAll: walk.findAll, + fromPlainObject, + toPlainObject, + fork(extension) { + const base = mix$2({}, config); + return createSyntax$2("function" == typeof extension ? extension(base, Object.assign) : mix$2(base, extension)); + } + }; + return syntax.lexer = new Lexer$5.Lexer({ + generic: !0, + units: config.units, + types: config.types, + atrules: config.atrules, + properties: config.properties, + node: config.node + }, syntax), syntax; +} + +var create_1$1 = config => createSyntax$2(mix$2({}, config)), node$1 = {}, AnPlusB$5 = {}; + +const types$1x = types$1I, charCodeDefinitions$i = charCodeDefinitions$p, PLUSSIGN$f = 0x002B, HYPHENMINUS$9 = 0x002D, N$5 = 0x006E, DISALLOW_SIGN$2 = !0; + +function checkInteger$2(offset, disallowSign) { + let pos = this.tokenStart + offset; + const code = this.charCodeAt(pos); + for (code !== PLUSSIGN$f && code !== HYPHENMINUS$9 || (disallowSign && this.error("Number sign is not allowed"), + pos++); pos < this.tokenEnd; pos++) charCodeDefinitions$i.isDigit(this.charCodeAt(pos)) || this.error("Integer is expected", pos); +} + +function checkTokenIsInteger$1(disallowSign) { + return checkInteger$2.call(this, 0, disallowSign); +} + +function expectCharCode$1(offset, code) { + if (!this.cmpChar(this.tokenStart + offset, code)) { + let msg = ""; + switch (code) { + case N$5: + msg = "N is expected"; + break; + + case HYPHENMINUS$9: + msg = "HyphenMinus is expected"; + } + this.error(msg, this.tokenStart + offset); + } +} + +function consumeB$2() { + let offset = 0, sign = 0, type = this.tokenType; + for (;type === types$1x.WhiteSpace || type === types$1x.Comment; ) type = this.lookupType(++offset); + if (type !== types$1x.Number) { + if (!this.isDelim(PLUSSIGN$f, offset) && !this.isDelim(HYPHENMINUS$9, offset)) return null; + sign = this.isDelim(PLUSSIGN$f, offset) ? PLUSSIGN$f : HYPHENMINUS$9; + do { + type = this.lookupType(++offset); + } while (type === types$1x.WhiteSpace || type === types$1x.Comment); + type !== types$1x.Number && (this.skip(offset), checkTokenIsInteger$1.call(this, DISALLOW_SIGN$2)); + } + return offset > 0 && this.skip(offset), 0 === sign && (type = this.charCodeAt(this.tokenStart), + type !== PLUSSIGN$f && type !== HYPHENMINUS$9 && this.error("Number sign is expected")), + checkTokenIsInteger$1.call(this, 0 !== sign), sign === HYPHENMINUS$9 ? "-" + this.consume(types$1x.Number) : this.consume(types$1x.Number); +} + +const structure$1i = { + a: [ String, null ], + b: [ String, null ] +}; + +AnPlusB$5.generate = function(node) { + if (node.a) { + const a = ("+1" === node.a || "1" === node.a ? "n" : "-1" === node.a && "-n") || node.a + "n"; + if (node.b) { + const b = "-" === node.b[0] || "+" === node.b[0] ? node.b : "+" + node.b; + this.tokenize(a + b); + } else this.tokenize(a); + } else this.tokenize(node.b); +}, AnPlusB$5.name = "AnPlusB", AnPlusB$5.parse = function() { + const start = this.tokenStart; + let a = null, b = null; + if (this.tokenType === types$1x.Number) checkTokenIsInteger$1.call(this, false), + b = this.consume(types$1x.Number); else if (this.tokenType === types$1x.Ident && this.cmpChar(this.tokenStart, HYPHENMINUS$9)) switch (a = "-1", + expectCharCode$1.call(this, 1, N$5), this.tokenEnd - this.tokenStart) { + case 2: + this.next(), b = consumeB$2.call(this); + break; + + case 3: + expectCharCode$1.call(this, 2, HYPHENMINUS$9), this.next(), this.skipSC(), checkTokenIsInteger$1.call(this, DISALLOW_SIGN$2), + b = "-" + this.consume(types$1x.Number); + break; + + default: + expectCharCode$1.call(this, 2, HYPHENMINUS$9), checkInteger$2.call(this, 3, DISALLOW_SIGN$2), + this.next(), b = this.substrToCursor(start + 2); + } else if (this.tokenType === types$1x.Ident || this.isDelim(PLUSSIGN$f) && this.lookupType(1) === types$1x.Ident) { + let sign = 0; + switch (a = "1", this.isDelim(PLUSSIGN$f) && (sign = 1, this.next()), expectCharCode$1.call(this, 0, N$5), + this.tokenEnd - this.tokenStart) { + case 1: + this.next(), b = consumeB$2.call(this); + break; + + case 2: + expectCharCode$1.call(this, 1, HYPHENMINUS$9), this.next(), this.skipSC(), checkTokenIsInteger$1.call(this, DISALLOW_SIGN$2), + b = "-" + this.consume(types$1x.Number); + break; + + default: + expectCharCode$1.call(this, 1, HYPHENMINUS$9), checkInteger$2.call(this, 2, DISALLOW_SIGN$2), + this.next(), b = this.substrToCursor(start + sign + 1); + } + } else if (this.tokenType === types$1x.Dimension) { + const code = this.charCodeAt(this.tokenStart), sign = code === PLUSSIGN$f || code === HYPHENMINUS$9; + let i = this.tokenStart + sign; + for (;i < this.tokenEnd && charCodeDefinitions$i.isDigit(this.charCodeAt(i)); i++) ; + i === this.tokenStart + sign && this.error("Integer is expected", this.tokenStart + sign), + expectCharCode$1.call(this, i - this.tokenStart, N$5), a = this.substring(start, i), + i + 1 === this.tokenEnd ? (this.next(), b = consumeB$2.call(this)) : (expectCharCode$1.call(this, i - this.tokenStart + 1, HYPHENMINUS$9), + i + 2 === this.tokenEnd ? (this.next(), this.skipSC(), checkTokenIsInteger$1.call(this, DISALLOW_SIGN$2), + b = "-" + this.consume(types$1x.Number)) : (checkInteger$2.call(this, i - this.tokenStart + 2, DISALLOW_SIGN$2), + this.next(), b = this.substrToCursor(i + 1))); + } else this.error(); + return null !== a && a.charCodeAt(0) === PLUSSIGN$f && (a = a.substr(1)), null !== b && b.charCodeAt(0) === PLUSSIGN$f && (b = b.substr(1)), + { + type: "AnPlusB", + loc: this.getLocation(start, this.tokenStart), + a, + b + }; +}, AnPlusB$5.structure = structure$1i; + +var Atrule$9 = {}; + +const types$1w = types$1I; + +function consumeRaw$b(startToken) { + return this.Raw(startToken, this.consumeUntilLeftCurlyBracketOrSemicolon, !0); +} + +function isDeclarationBlockAtrule$1() { + for (let type, offset = 1; type = this.lookupType(offset); offset++) { + if (type === types$1w.RightCurlyBracket) return !0; + if (type === types$1w.LeftCurlyBracket || type === types$1w.AtKeyword) return !1; + } + return !1; +} + +const structure$1h = { + name: String, + prelude: [ "AtrulePrelude", "Raw", null ], + block: [ "Block", null ] +}; + +Atrule$9.generate = function(node) { + this.token(types$1w.AtKeyword, "@" + node.name), null !== node.prelude && this.node(node.prelude), + node.block ? this.node(node.block) : this.token(types$1w.Semicolon, ";"); +}, Atrule$9.name = "Atrule", Atrule$9.parse = function(isDeclaration = !1) { + const start = this.tokenStart; + let name, nameLowerCase, prelude = null, block = null; + switch (this.eat(types$1w.AtKeyword), name = this.substrToCursor(start + 1), nameLowerCase = name.toLowerCase(), + this.skipSC(), !1 === this.eof && this.tokenType !== types$1w.LeftCurlyBracket && this.tokenType !== types$1w.Semicolon && (prelude = this.parseAtrulePrelude ? this.parseWithFallback(this.AtrulePrelude.bind(this, name, isDeclaration), consumeRaw$b) : consumeRaw$b.call(this, this.tokenIndex), + this.skipSC()), this.tokenType) { + case types$1w.Semicolon: + this.next(); + break; + + case types$1w.LeftCurlyBracket: + block = hasOwnProperty.call(this.atrule, nameLowerCase) && "function" == typeof this.atrule[nameLowerCase].block ? this.atrule[nameLowerCase].block.call(this, isDeclaration) : this.Block(isDeclarationBlockAtrule$1.call(this)); + } + return { + type: "Atrule", + loc: this.getLocation(start, this.tokenStart), + name, + prelude, + block + }; +}, Atrule$9.structure = structure$1h, Atrule$9.walkContext = "atrule"; + +var AtrulePrelude$5 = {}; + +const types$1v = types$1I; + +AtrulePrelude$5.generate = function(node) { + this.children(node); +}, AtrulePrelude$5.name = "AtrulePrelude", AtrulePrelude$5.parse = function(name) { + let children = null; + return null !== name && (name = name.toLowerCase()), this.skipSC(), children = hasOwnProperty.call(this.atrule, name) && "function" == typeof this.atrule[name].prelude ? this.atrule[name].prelude.call(this) : this.readSequence(this.scope.AtrulePrelude), + this.skipSC(), !0 !== this.eof && this.tokenType !== types$1v.LeftCurlyBracket && this.tokenType !== types$1v.Semicolon && this.error("Semicolon or block is expected"), + { + type: "AtrulePrelude", + loc: this.getLocationFromList(children), + children + }; +}, AtrulePrelude$5.structure = { + children: [ [] ] +}, AtrulePrelude$5.walkContext = "atrulePrelude"; + +var AttributeSelector$7 = {}; + +const types$1u = types$1I, DOLLARSIGN$3 = 0x0024, ASTERISK$c = 0x002A, EQUALSSIGN$1 = 0x003D, CIRCUMFLEXACCENT$1 = 0x005E, VERTICALLINE$6 = 0x007C, TILDE$5 = 0x007E; + +function getAttributeName$1() { + this.eof && this.error("Unexpected end of input"); + const start = this.tokenStart; + let expectIdent = !1; + return this.isDelim(ASTERISK$c) ? (expectIdent = !0, this.next()) : this.isDelim(VERTICALLINE$6) || this.eat(types$1u.Ident), + this.isDelim(VERTICALLINE$6) ? this.charCodeAt(this.tokenStart + 1) !== EQUALSSIGN$1 ? (this.next(), + this.eat(types$1u.Ident)) : expectIdent && this.error("Identifier is expected", this.tokenEnd) : expectIdent && this.error("Vertical line is expected"), + { + type: "Identifier", + loc: this.getLocation(start, this.tokenStart), + name: this.substrToCursor(start) + }; +} + +function getOperator$1() { + const start = this.tokenStart, code = this.charCodeAt(start); + return code !== EQUALSSIGN$1 && code !== TILDE$5 && code !== CIRCUMFLEXACCENT$1 && code !== DOLLARSIGN$3 && code !== ASTERISK$c && code !== VERTICALLINE$6 && this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"), + this.next(), code !== EQUALSSIGN$1 && (this.isDelim(EQUALSSIGN$1) || this.error("Equal sign is expected"), + this.next()), this.substrToCursor(start); +} + +const structure$1f = { + name: "Identifier", + matcher: [ String, null ], + value: [ "String", "Identifier", null ], + flags: [ String, null ] +}; + +AttributeSelector$7.generate = function(node) { + this.token(types$1u.Delim, "["), this.node(node.name), null !== node.matcher && (this.tokenize(node.matcher), + this.node(node.value)), null !== node.flags && this.token(types$1u.Ident, node.flags), + this.token(types$1u.Delim, "]"); +}, AttributeSelector$7.name = "AttributeSelector", AttributeSelector$7.parse = function() { + const start = this.tokenStart; + let name, matcher = null, value = null, flags = null; + return this.eat(types$1u.LeftSquareBracket), this.skipSC(), name = getAttributeName$1.call(this), + this.skipSC(), this.tokenType !== types$1u.RightSquareBracket && (this.tokenType !== types$1u.Ident && (matcher = getOperator$1.call(this), + this.skipSC(), value = this.tokenType === types$1u.String ? this.String() : this.Identifier(), + this.skipSC()), this.tokenType === types$1u.Ident && (flags = this.consume(types$1u.Ident), + this.skipSC())), this.eat(types$1u.RightSquareBracket), { + type: "AttributeSelector", + loc: this.getLocation(start, this.tokenStart), + name, + matcher, + value, + flags + }; +}, AttributeSelector$7.structure = structure$1f; + +var Block$5 = {}; + +const types$1t = types$1I; + +function consumeRaw$a(startToken) { + return this.Raw(startToken, null, !0); +} + +function consumeRule$1() { + return this.parseWithFallback(this.Rule, consumeRaw$a); +} + +function consumeRawDeclaration$1(startToken) { + return this.Raw(startToken, this.consumeUntilSemicolonIncluded, !0); +} + +function consumeDeclaration$1() { + if (this.tokenType === types$1t.Semicolon) return consumeRawDeclaration$1.call(this, this.tokenIndex); + const node = this.parseWithFallback(this.Declaration, consumeRawDeclaration$1); + return this.tokenType === types$1t.Semicolon && this.next(), node; +} + +Block$5.generate = function(node) { + this.token(types$1t.LeftCurlyBracket, "{"), this.children(node, (prev => { + "Declaration" === prev.type && this.token(types$1t.Semicolon, ";"); + })), this.token(types$1t.RightCurlyBracket, "}"); +}, Block$5.name = "Block", Block$5.parse = function(isStyleBlock) { + const consumer = isStyleBlock ? consumeDeclaration$1 : consumeRule$1, start = this.tokenStart; + let children = this.createList(); + this.eat(types$1t.LeftCurlyBracket); + scan: for (;!this.eof; ) switch (this.tokenType) { + case types$1t.RightCurlyBracket: + break scan; + + case types$1t.WhiteSpace: + case types$1t.Comment: + this.next(); + break; + + case types$1t.AtKeyword: + children.push(this.parseWithFallback(this.Atrule.bind(this, isStyleBlock), consumeRaw$a)); + break; + + default: + isStyleBlock && this.isDelim(38) ? children.push(consumeRule$1.call(this)) : children.push(consumer.call(this)); + } + return this.eof || this.eat(types$1t.RightCurlyBracket), { + type: "Block", + loc: this.getLocation(start, this.tokenStart), + children + }; +}, Block$5.structure = { + children: [ [ "Atrule", "Rule", "Declaration" ] ] +}, Block$5.walkContext = "block"; + +var Brackets$5 = {}; + +const types$1s = types$1I; + +Brackets$5.generate = function(node) { + this.token(types$1s.Delim, "["), this.children(node), this.token(types$1s.Delim, "]"); +}, Brackets$5.name = "Brackets", Brackets$5.parse = function(readSequence, recognizer) { + const start = this.tokenStart; + let children = null; + return this.eat(types$1s.LeftSquareBracket), children = readSequence.call(this, recognizer), + this.eof || this.eat(types$1s.RightSquareBracket), { + type: "Brackets", + loc: this.getLocation(start, this.tokenStart), + children + }; +}, Brackets$5.structure = { + children: [ [] ] +}; + +var CDC$6 = {}; + +const types$1r = types$1I; + +CDC$6.generate = function() { + this.token(types$1r.CDC, "--\x3e"); +}, CDC$6.name = "CDC", CDC$6.parse = function() { + const start = this.tokenStart; + return this.eat(types$1r.CDC), { + type: "CDC", + loc: this.getLocation(start, this.tokenStart) + }; +}, CDC$6.structure = []; + +var CDO$6 = {}; + +const types$1q = types$1I; + +CDO$6.generate = function() { + this.token(types$1q.CDO, "\x3c!--"); +}, CDO$6.name = "CDO", CDO$6.parse = function() { + const start = this.tokenStart; + return this.eat(types$1q.CDO), { + type: "CDO", + loc: this.getLocation(start, this.tokenStart) + }; +}, CDO$6.structure = []; + +var ClassSelector$5 = {}; + +const types$1p = types$1I, structure$1a = { + name: String +}; + +ClassSelector$5.generate = function(node) { + this.token(types$1p.Delim, "."), this.token(types$1p.Ident, node.name); +}, ClassSelector$5.name = "ClassSelector", ClassSelector$5.parse = function() { + return this.eatDelim(46), { + type: "ClassSelector", + loc: this.getLocation(this.tokenStart - 1, this.tokenEnd), + name: this.consume(types$1p.Ident) + }; +}, ClassSelector$5.structure = structure$1a; + +var Combinator$5 = {}; + +const types$1o = types$1I, structure$19 = { + name: String +}; + +Combinator$5.generate = function(node) { + this.tokenize(node.name); +}, Combinator$5.name = "Combinator", Combinator$5.parse = function() { + const start = this.tokenStart; + let name; + switch (this.tokenType) { + case types$1o.WhiteSpace: + name = " "; + break; + + case types$1o.Delim: + switch (this.charCodeAt(this.tokenStart)) { + case 62: + case 43: + case 126: + this.next(); + break; + + case 47: + this.next(), this.eatIdent("deep"), this.eatDelim(47); + break; + + default: + this.error("Combinator is expected"); + } + name = this.substrToCursor(start); + } + return { + type: "Combinator", + loc: this.getLocation(start, this.tokenStart), + name + }; +}, Combinator$5.structure = structure$19; + +var Comment$8 = {}; + +const types$1n = types$1I, structure$18 = { + value: String +}; + +Comment$8.generate = function(node) { + this.token(types$1n.Comment, "/*" + node.value + "*/"); +}, Comment$8.name = "Comment", Comment$8.parse = function() { + const start = this.tokenStart; + let end = this.tokenEnd; + return this.eat(types$1n.Comment), end - start + 2 >= 2 && 42 === this.charCodeAt(end - 2) && 47 === this.charCodeAt(end - 1) && (end -= 2), + { + type: "Comment", + loc: this.getLocation(start, this.tokenStart), + value: this.substring(start + 2, end) + }; +}, Comment$8.structure = structure$18; + +var Declaration$7 = {}; + +const names$a = names$c, types$1m = types$1I, EXCLAMATIONMARK$5 = 0x0021, NUMBERSIGN$7 = 0x0023, DOLLARSIGN$2 = 0x0024, AMPERSAND$5 = 0x0026, ASTERISK$a = 0x002A, PLUSSIGN$d = 0x002B, SOLIDUS$9 = 0x002F; + +function consumeValueRaw$1(startToken) { + return this.Raw(startToken, this.consumeUntilExclamationMarkOrSemicolon, !0); +} + +function consumeCustomPropertyRaw$1(startToken) { + return this.Raw(startToken, this.consumeUntilExclamationMarkOrSemicolon, !1); +} + +function consumeValue$1() { + const startValueToken = this.tokenIndex, value = this.Value(); + return "Raw" !== value.type && !1 === this.eof && this.tokenType !== types$1m.Semicolon && !1 === this.isDelim(EXCLAMATIONMARK$5) && !1 === this.isBalanceEdge(startValueToken) && this.error(), + value; +} + +const structure$17 = { + important: [ Boolean, String ], + property: String, + value: [ "Value", "Raw" ] +}; + +function readProperty$2() { + const start = this.tokenStart; + if (this.tokenType === types$1m.Delim) switch (this.charCodeAt(this.tokenStart)) { + case ASTERISK$a: + case DOLLARSIGN$2: + case PLUSSIGN$d: + case NUMBERSIGN$7: + case AMPERSAND$5: + this.next(); + break; + + case SOLIDUS$9: + this.next(), this.isDelim(SOLIDUS$9) && this.next(); + } + return this.tokenType === types$1m.Hash ? this.eat(types$1m.Hash) : this.eat(types$1m.Ident), + this.substrToCursor(start); +} + +function getImportant$1() { + this.eat(types$1m.Delim), this.skipSC(); + const important = this.consume(types$1m.Ident); + return "important" === important || important; +} + +Declaration$7.generate = function(node) { + this.token(types$1m.Ident, node.property), this.token(types$1m.Colon, ":"), this.node(node.value), + node.important && (this.token(types$1m.Delim, "!"), this.token(types$1m.Ident, !0 === node.important ? "important" : node.important)); +}, Declaration$7.name = "Declaration", Declaration$7.parse = function() { + const start = this.tokenStart, startToken = this.tokenIndex, property = readProperty$2.call(this), customProperty = names$a.isCustomProperty(property), parseValue = customProperty ? this.parseCustomProperty : this.parseValue, consumeRaw = customProperty ? consumeCustomPropertyRaw$1 : consumeValueRaw$1; + let value, important = !1; + this.skipSC(), this.eat(types$1m.Colon); + const valueStart = this.tokenIndex; + if (customProperty || this.skipSC(), value = parseValue ? this.parseWithFallback(consumeValue$1, consumeRaw) : consumeRaw.call(this, this.tokenIndex), + customProperty && "Value" === value.type && value.children.isEmpty) for (let offset = valueStart - this.tokenIndex; offset <= 0; offset++) if (this.lookupType(offset) === types$1m.WhiteSpace) { + value.children.appendData({ + type: "WhiteSpace", + loc: null, + value: " " + }); + break; + } + return this.isDelim(EXCLAMATIONMARK$5) && (important = getImportant$1.call(this), + this.skipSC()), !1 === this.eof && this.tokenType !== types$1m.Semicolon && !1 === this.isBalanceEdge(startToken) && this.error(), + { + type: "Declaration", + loc: this.getLocation(start, this.tokenStart), + important, + property, + value + }; +}, Declaration$7.structure = structure$17, Declaration$7.walkContext = "declaration"; + +var DeclarationList$5 = {}; + +const types$1l = types$1I; + +function consumeRaw$9(startToken) { + return this.Raw(startToken, this.consumeUntilSemicolonIncluded, !0); +} + +DeclarationList$5.generate = function(node) { + this.children(node, (prev => { + "Declaration" === prev.type && this.token(types$1l.Semicolon, ";"); + })); +}, DeclarationList$5.name = "DeclarationList", DeclarationList$5.parse = function() { + const children = this.createList(); + for (;!this.eof; ) switch (this.tokenType) { + case types$1l.WhiteSpace: + case types$1l.Comment: + case types$1l.Semicolon: + this.next(); + break; + + case types$1l.AtKeyword: + children.push(this.parseWithFallback(this.Atrule.bind(this, !0), consumeRaw$9)); + break; + + default: + this.isDelim(38) ? children.push(this.parseWithFallback(this.Rule, consumeRaw$9)) : children.push(this.parseWithFallback(this.Declaration, consumeRaw$9)); + } + return { + type: "DeclarationList", + loc: this.getLocationFromList(children), + children + }; +}, DeclarationList$5.structure = { + children: [ [ "Declaration", "Atrule", "Rule" ] ] +}; + +var Dimension$8 = {}; + +const types$1k = types$1I, structure$15 = { + value: String, + unit: String +}; + +Dimension$8.generate = function(node) { + this.token(types$1k.Dimension, node.value + node.unit); +}, Dimension$8.name = "Dimension", Dimension$8.parse = function() { + const start = this.tokenStart, value = this.consumeNumber(types$1k.Dimension); + return { + type: "Dimension", + loc: this.getLocation(start, this.tokenStart), + value, + unit: this.substring(start + value.length, this.tokenStart) + }; +}, Dimension$8.structure = structure$15; + +var _Function$1 = {}; + +const types$1j = types$1I, structure$14 = { + name: String, + children: [ [] ] +}; + +_Function$1.generate = function(node) { + this.token(types$1j.Function, node.name + "("), this.children(node), this.token(types$1j.RightParenthesis, ")"); +}, _Function$1.name = "Function", _Function$1.parse = function(readSequence, recognizer) { + const start = this.tokenStart, name = this.consumeFunctionName(), nameLowerCase = name.toLowerCase(); + let children; + return children = recognizer.hasOwnProperty(nameLowerCase) ? recognizer[nameLowerCase].call(this, recognizer) : readSequence.call(this, recognizer), + this.eof || this.eat(types$1j.RightParenthesis), { + type: "Function", + loc: this.getLocation(start, this.tokenStart), + name, + children + }; +}, _Function$1.structure = structure$14, _Function$1.walkContext = "function"; + +var Hash$6 = {}; + +const types$1i = types$1I, structure$13 = { + value: String +}; + +Hash$6.generate = function(node) { + this.token(types$1i.Hash, "#" + node.value); +}, Hash$6.name = "Hash", Hash$6.parse = function() { + const start = this.tokenStart; + return this.eat(types$1i.Hash), { + type: "Hash", + loc: this.getLocation(start, this.tokenStart), + value: this.substrToCursor(start + 1) + }; +}, Hash$6.structure = structure$13, Hash$6.xxx = "XXX"; + +var Identifier$5 = {}; + +const types$1h = types$1I, structure$12 = { + name: String +}; + +Identifier$5.generate = function(node) { + this.token(types$1h.Ident, node.name); +}, Identifier$5.name = "Identifier", Identifier$5.parse = function() { + return { + type: "Identifier", + loc: this.getLocation(this.tokenStart, this.tokenEnd), + name: this.consume(types$1h.Ident) + }; +}, Identifier$5.structure = structure$12; + +var IdSelector$5 = {}; + +const types$1g = types$1I, structure$11 = { + name: String +}; + +IdSelector$5.generate = function(node) { + this.token(types$1g.Delim, "#" + node.name); +}, IdSelector$5.name = "IdSelector", IdSelector$5.parse = function() { + const start = this.tokenStart; + return this.eat(types$1g.Hash), { + type: "IdSelector", + loc: this.getLocation(start, this.tokenStart), + name: this.substrToCursor(start + 1) + }; +}, IdSelector$5.structure = structure$11; + +var MediaFeature$5 = {}; + +const types$1f = types$1I, structure$10 = { + name: String, + value: [ "Identifier", "Number", "Dimension", "Ratio", null ] +}; + +MediaFeature$5.generate = function(node) { + this.token(types$1f.LeftParenthesis, "("), this.token(types$1f.Ident, node.name), + null !== node.value && (this.token(types$1f.Colon, ":"), this.node(node.value)), + this.token(types$1f.RightParenthesis, ")"); +}, MediaFeature$5.name = "MediaFeature", MediaFeature$5.parse = function() { + const start = this.tokenStart; + let name, value = null; + if (this.eat(types$1f.LeftParenthesis), this.skipSC(), name = this.consume(types$1f.Ident), + this.skipSC(), this.tokenType !== types$1f.RightParenthesis) { + switch (this.eat(types$1f.Colon), this.skipSC(), this.tokenType) { + case types$1f.Number: + value = this.lookupNonWSType(1) === types$1f.Delim ? this.Ratio() : this.Number(); + break; + + case types$1f.Dimension: + value = this.Dimension(); + break; + + case types$1f.Ident: + value = this.Identifier(); + break; + + default: + this.error("Number, dimension, ratio or identifier is expected"); + } + this.skipSC(); + } + return this.eat(types$1f.RightParenthesis), { + type: "MediaFeature", + loc: this.getLocation(start, this.tokenStart), + name, + value + }; +}, MediaFeature$5.structure = structure$10; + +var MediaQuery$5 = {}; + +const types$1e = types$1I; + +MediaQuery$5.generate = function(node) { + this.children(node); +}, MediaQuery$5.name = "MediaQuery", MediaQuery$5.parse = function() { + const children = this.createList(); + let child = null; + this.skipSC(); + scan: for (;!this.eof; ) { + switch (this.tokenType) { + case types$1e.Comment: + case types$1e.WhiteSpace: + this.next(); + continue; + + case types$1e.Ident: + child = this.Identifier(); + break; + + case types$1e.LeftParenthesis: + child = this.MediaFeature(); + break; + + default: + break scan; + } + children.push(child); + } + return null === child && this.error("Identifier or parenthesis is expected"), { + type: "MediaQuery", + loc: this.getLocationFromList(children), + children + }; +}, MediaQuery$5.structure = { + children: [ [ "Identifier", "MediaFeature", "WhiteSpace" ] ] +}; + +var MediaQueryList$5 = {}; + +const types$1d = types$1I; + +MediaQueryList$5.generate = function(node) { + this.children(node, (() => this.token(types$1d.Comma, ","))); +}, MediaQueryList$5.name = "MediaQueryList", MediaQueryList$5.parse = function() { + const children = this.createList(); + for (this.skipSC(); !this.eof && (children.push(this.MediaQuery()), this.tokenType === types$1d.Comma); ) this.next(); + return { + type: "MediaQueryList", + loc: this.getLocationFromList(children), + children + }; +}, MediaQueryList$5.structure = { + children: [ [ "MediaQuery" ] ] +}; + +var NestingSelector$2 = {}; + +const types$1c = types$1I; + +NestingSelector$2.generate = function() { + this.token(types$1c.Delim, "&"); +}, NestingSelector$2.name = "NestingSelector", NestingSelector$2.parse = function() { + const start = this.tokenStart; + return this.eatDelim(38), { + type: "NestingSelector", + loc: this.getLocation(start, this.tokenStart) + }; +}, NestingSelector$2.structure = {}; + +var Nth$5 = {}; + +const types$1b = types$1I; + +Nth$5.generate = function(node) { + this.node(node.nth), null !== node.selector && (this.token(types$1b.Ident, "of"), + this.node(node.selector)); +}, Nth$5.name = "Nth", Nth$5.parse = function() { + this.skipSC(); + const start = this.tokenStart; + let nth, end = start, selector = null; + return nth = this.lookupValue(0, "odd") || this.lookupValue(0, "even") ? this.Identifier() : this.AnPlusB(), + end = this.tokenStart, this.skipSC(), this.lookupValue(0, "of") && (this.next(), + selector = this.SelectorList(), end = this.tokenStart), { + type: "Nth", + loc: this.getLocation(start, end), + nth, + selector + }; +}, Nth$5.structure = { + nth: [ "AnPlusB", "Identifier" ], + selector: [ "SelectorList", null ] +}; + +var _Number$6 = {}; + +const types$1a = types$1I, structure$X = { + value: String +}; + +_Number$6.generate = function(node) { + this.token(types$1a.Number, node.value); +}, _Number$6.name = "Number", _Number$6.parse = function() { + return { + type: "Number", + loc: this.getLocation(this.tokenStart, this.tokenEnd), + value: this.consume(types$1a.Number) + }; +}, _Number$6.structure = structure$X; + +var Operator$5 = {}; + +const structure$W = { + value: String +}; + +Operator$5.generate = function(node) { + this.tokenize(node.value); +}, Operator$5.name = "Operator", Operator$5.parse = function() { + const start = this.tokenStart; + return this.next(), { + type: "Operator", + loc: this.getLocation(start, this.tokenStart), + value: this.substrToCursor(start) + }; +}, Operator$5.structure = structure$W; + +var Parentheses$5 = {}; + +const types$19 = types$1I; + +Parentheses$5.generate = function(node) { + this.token(types$19.LeftParenthesis, "("), this.children(node), this.token(types$19.RightParenthesis, ")"); +}, Parentheses$5.name = "Parentheses", Parentheses$5.parse = function(readSequence, recognizer) { + const start = this.tokenStart; + let children = null; + return this.eat(types$19.LeftParenthesis), children = readSequence.call(this, recognizer), + this.eof || this.eat(types$19.RightParenthesis), { + type: "Parentheses", + loc: this.getLocation(start, this.tokenStart), + children + }; +}, Parentheses$5.structure = { + children: [ [] ] +}; + +var Percentage$8 = {}; + +const types$18 = types$1I, structure$U = { + value: String +}; + +Percentage$8.generate = function(node) { + this.token(types$18.Percentage, node.value + "%"); +}, Percentage$8.name = "Percentage", Percentage$8.parse = function() { + return { + type: "Percentage", + loc: this.getLocation(this.tokenStart, this.tokenEnd), + value: this.consumeNumber(types$18.Percentage) + }; +}, Percentage$8.structure = structure$U; + +var PseudoClassSelector$5 = {}; + +const types$17 = types$1I, structure$T = { + name: String, + children: [ [ "Raw" ], null ] +}; + +PseudoClassSelector$5.generate = function(node) { + this.token(types$17.Colon, ":"), null === node.children ? this.token(types$17.Ident, node.name) : (this.token(types$17.Function, node.name + "("), + this.children(node), this.token(types$17.RightParenthesis, ")")); +}, PseudoClassSelector$5.name = "PseudoClassSelector", PseudoClassSelector$5.parse = function() { + const start = this.tokenStart; + let name, nameLowerCase, children = null; + return this.eat(types$17.Colon), this.tokenType === types$17.Function ? (name = this.consumeFunctionName(), + nameLowerCase = name.toLowerCase(), hasOwnProperty.call(this.pseudo, nameLowerCase) ? (this.skipSC(), + children = this.pseudo[nameLowerCase].call(this), this.skipSC()) : (children = this.createList(), + children.push(this.Raw(this.tokenIndex, null, !1))), this.eat(types$17.RightParenthesis)) : name = this.consume(types$17.Ident), + { + type: "PseudoClassSelector", + loc: this.getLocation(start, this.tokenStart), + name, + children + }; +}, PseudoClassSelector$5.structure = structure$T, PseudoClassSelector$5.walkContext = "function"; + +var PseudoElementSelector$5 = {}; + +const types$16 = types$1I, structure$S = { + name: String, + children: [ [ "Raw" ], null ] +}; + +PseudoElementSelector$5.generate = function(node) { + this.token(types$16.Colon, ":"), this.token(types$16.Colon, ":"), null === node.children ? this.token(types$16.Ident, node.name) : (this.token(types$16.Function, node.name + "("), + this.children(node), this.token(types$16.RightParenthesis, ")")); +}, PseudoElementSelector$5.name = "PseudoElementSelector", PseudoElementSelector$5.parse = function() { + const start = this.tokenStart; + let name, nameLowerCase, children = null; + return this.eat(types$16.Colon), this.eat(types$16.Colon), this.tokenType === types$16.Function ? (name = this.consumeFunctionName(), + nameLowerCase = name.toLowerCase(), hasOwnProperty.call(this.pseudo, nameLowerCase) ? (this.skipSC(), + children = this.pseudo[nameLowerCase].call(this), this.skipSC()) : (children = this.createList(), + children.push(this.Raw(this.tokenIndex, null, !1))), this.eat(types$16.RightParenthesis)) : name = this.consume(types$16.Ident), + { + type: "PseudoElementSelector", + loc: this.getLocation(start, this.tokenStart), + name, + children + }; +}, PseudoElementSelector$5.structure = structure$S, PseudoElementSelector$5.walkContext = "function"; + +var Ratio$5 = {}; + +const types$15 = types$1I, charCodeDefinitions$h = charCodeDefinitions$p, FULLSTOP$4 = 0x002E; + +function consumeNumber$2() { + this.skipSC(); + const value = this.consume(types$15.Number); + for (let i = 0; i < value.length; i++) { + const code = value.charCodeAt(i); + charCodeDefinitions$h.isDigit(code) || code === FULLSTOP$4 || this.error("Unsigned number is expected", this.tokenStart - value.length + i); + } + return 0 === Number(value) && this.error("Zero number is not allowed", this.tokenStart - value.length), + value; +} + +const structure$R = { + left: String, + right: String +}; + +Ratio$5.generate = function(node) { + this.token(types$15.Number, node.left), this.token(types$15.Delim, "/"), this.token(types$15.Number, node.right); +}, Ratio$5.name = "Ratio", Ratio$5.parse = function() { + const start = this.tokenStart, left = consumeNumber$2.call(this); + let right; + return this.skipSC(), this.eatDelim(47), right = consumeNumber$2.call(this), { + type: "Ratio", + loc: this.getLocation(start, this.tokenStart), + left, + right + }; +}, Ratio$5.structure = structure$R; + +var Raw$7 = {}; + +const types$14 = types$1I; + +function getOffsetExcludeWS$1() { + return this.tokenIndex > 0 && this.lookupType(-1) === types$14.WhiteSpace ? this.tokenIndex > 1 ? this.getTokenStart(this.tokenIndex - 1) : this.firstCharOffset : this.tokenStart; +} + +const structure$Q = { + value: String +}; + +Raw$7.generate = function(node) { + this.tokenize(node.value); +}, Raw$7.name = "Raw", Raw$7.parse = function(startToken, consumeUntil, excludeWhiteSpace) { + const startOffset = this.getTokenStart(startToken); + let endOffset; + return this.skipUntilBalanced(startToken, consumeUntil || this.consumeUntilBalanceEnd), + endOffset = excludeWhiteSpace && this.tokenStart > startOffset ? getOffsetExcludeWS$1.call(this) : this.tokenStart, + { + type: "Raw", + loc: this.getLocation(startOffset, endOffset), + value: this.substring(startOffset, endOffset) + }; +}, Raw$7.structure = structure$Q; + +var Rule$7 = {}; + +const types$13 = types$1I; + +function consumeRaw$8(startToken) { + return this.Raw(startToken, this.consumeUntilLeftCurlyBracket, !0); +} + +function consumePrelude$1() { + const prelude = this.SelectorList(); + return "Raw" !== prelude.type && !1 === this.eof && this.tokenType !== types$13.LeftCurlyBracket && this.error(), + prelude; +} + +Rule$7.generate = function(node) { + this.node(node.prelude), this.node(node.block); +}, Rule$7.name = "Rule", Rule$7.parse = function() { + const startToken = this.tokenIndex, startOffset = this.tokenStart; + let prelude, block; + return prelude = this.parseRulePrelude ? this.parseWithFallback(consumePrelude$1, consumeRaw$8) : consumeRaw$8.call(this, startToken), + block = this.Block(!0), { + type: "Rule", + loc: this.getLocation(startOffset, this.tokenStart), + prelude, + block + }; +}, Rule$7.structure = { + prelude: [ "SelectorList", "Raw" ], + block: [ "Block" ] +}, Rule$7.walkContext = "rule"; + +var Selector$7 = {}; + +Selector$7.generate = function(node) { + this.children(node); +}, Selector$7.name = "Selector", Selector$7.parse = function() { + const children = this.readSequence(this.scope.Selector); + return null === this.getFirstListNode(children) && this.error("Selector is expected"), + { + type: "Selector", + loc: this.getLocationFromList(children), + children + }; +}, Selector$7.structure = { + children: [ [ "TypeSelector", "IdSelector", "ClassSelector", "AttributeSelector", "PseudoClassSelector", "PseudoElementSelector", "Combinator", "WhiteSpace" ] ] +}; + +var SelectorList$5 = {}; + +const types$12 = types$1I; + +SelectorList$5.generate = function(node) { + this.children(node, (() => this.token(types$12.Comma, ","))); +}, SelectorList$5.name = "SelectorList", SelectorList$5.parse = function() { + const children = this.createList(); + for (;!this.eof && (children.push(this.Selector()), this.tokenType === types$12.Comma); ) this.next(); + return { + type: "SelectorList", + loc: this.getLocationFromList(children), + children + }; +}, SelectorList$5.structure = { + children: [ [ "Selector", "Raw" ] ] +}, SelectorList$5.walkContext = "selector"; + +var _String$1 = {}, string$7 = {}; + +const charCodeDefinitions$g = charCodeDefinitions$p, utils$n = utils$u; + +string$7.decode = function(str) { + const len = str.length, firstChar = str.charCodeAt(0), start = 34 === firstChar || 39 === firstChar ? 1 : 0, end = 1 === start && len > 1 && str.charCodeAt(len - 1) === firstChar ? len - 2 : len - 1; + let decoded = ""; + for (let i = start; i <= end; i++) { + let code = str.charCodeAt(i); + if (92 === code) { + if (i === end) { + i !== len - 1 && (decoded = str.substr(i + 1)); + break; + } + if (code = str.charCodeAt(++i), charCodeDefinitions$g.isValidEscape(92, code)) { + const escapeStart = i - 1, escapeEnd = utils$n.consumeEscaped(str, escapeStart); + i = escapeEnd - 1, decoded += utils$n.decodeEscaped(str.substring(escapeStart + 1, escapeEnd)); + } else 0x000d === code && 0x000a === str.charCodeAt(i + 1) && i++; + } else decoded += str[i]; + } + return decoded; +}, string$7.encode = function(str, apostrophe) { + const quote = apostrophe ? "'" : '"', quoteCode = apostrophe ? 39 : 34; + let encoded = "", wsBeforeHexIsNeeded = !1; + for (let i = 0; i < str.length; i++) { + const code = str.charCodeAt(i); + 0x0000 !== code ? code <= 0x001f || 0x007F === code ? (encoded += "\\" + code.toString(16), + wsBeforeHexIsNeeded = !0) : code === quoteCode || 92 === code ? (encoded += "\\" + str.charAt(i), + wsBeforeHexIsNeeded = !1) : (wsBeforeHexIsNeeded && (charCodeDefinitions$g.isHexDigit(code) || charCodeDefinitions$g.isWhiteSpace(code)) && (encoded += " "), + encoded += str.charAt(i), wsBeforeHexIsNeeded = !1) : encoded += "�"; + } + return quote + encoded + quote; +}; + +const string$6 = string$7, types$11 = types$1I, structure$M = { + value: String +}; + +_String$1.generate = function(node) { + this.token(types$11.String, string$6.encode(node.value)); +}, _String$1.name = "String", _String$1.parse = function() { + return { + type: "String", + loc: this.getLocation(this.tokenStart, this.tokenEnd), + value: string$6.decode(this.consume(types$11.String)) + }; +}, _String$1.structure = structure$M; + +var StyleSheet$5 = {}; + +const types$10 = types$1I; + +function consumeRaw$7(startToken) { + return this.Raw(startToken, null, !1); +} + +StyleSheet$5.generate = function(node) { + this.children(node); +}, StyleSheet$5.name = "StyleSheet", StyleSheet$5.parse = function() { + const start = this.tokenStart, children = this.createList(); + let child; + for (;!this.eof; ) { + switch (this.tokenType) { + case types$10.WhiteSpace: + this.next(); + continue; + + case types$10.Comment: + if (33 !== this.charCodeAt(this.tokenStart + 2)) { + this.next(); + continue; + } + child = this.Comment(); + break; + + case types$10.CDO: + child = this.CDO(); + break; + + case types$10.CDC: + child = this.CDC(); + break; + + case types$10.AtKeyword: + child = this.parseWithFallback(this.Atrule, consumeRaw$7); + break; + + default: + child = this.parseWithFallback(this.Rule, consumeRaw$7); + } + children.push(child); + } + return { + type: "StyleSheet", + loc: this.getLocation(start, this.tokenStart), + children + }; +}, StyleSheet$5.structure = { + children: [ [ "Comment", "CDO", "CDC", "Atrule", "Rule", "Raw" ] ] +}, StyleSheet$5.walkContext = "stylesheet"; + +var TypeSelector$7 = {}; + +const types$$ = types$1I, ASTERISK$9 = 0x002A; + +function eatIdentifierOrAsterisk$1() { + this.tokenType !== types$$.Ident && !1 === this.isDelim(ASTERISK$9) && this.error("Identifier or asterisk is expected"), + this.next(); +} + +const structure$K = { + name: String +}; + +TypeSelector$7.generate = function(node) { + this.tokenize(node.name); +}, TypeSelector$7.name = "TypeSelector", TypeSelector$7.parse = function() { + const start = this.tokenStart; + return this.isDelim(124) ? (this.next(), eatIdentifierOrAsterisk$1.call(this)) : (eatIdentifierOrAsterisk$1.call(this), + this.isDelim(124) && (this.next(), eatIdentifierOrAsterisk$1.call(this))), { + type: "TypeSelector", + loc: this.getLocation(start, this.tokenStart), + name: this.substrToCursor(start) + }; +}, TypeSelector$7.structure = structure$K; + +var UnicodeRange$5 = {}; + +const types$_ = types$1I, charCodeDefinitions$f = charCodeDefinitions$p, PLUSSIGN$c = 0x002B, HYPHENMINUS$8 = 0x002D, QUESTIONMARK$3 = 0x003F; + +function eatHexSequence$1(offset, allowDash) { + let len = 0; + for (let pos = this.tokenStart + offset; pos < this.tokenEnd; pos++) { + const code = this.charCodeAt(pos); + if (code === HYPHENMINUS$8 && allowDash && 0 !== len) return eatHexSequence$1.call(this, offset + len + 1, !1), + -1; + charCodeDefinitions$f.isHexDigit(code) || this.error(allowDash && 0 !== len ? "Hyphen minus" + (len < 6 ? " or hex digit" : "") + " is expected" : len < 6 ? "Hex digit is expected" : "Unexpected input", pos), + ++len > 6 && this.error("Too many hex digits", pos); + } + return this.next(), len; +} + +function eatQuestionMarkSequence$1(max) { + let count = 0; + for (;this.isDelim(QUESTIONMARK$3); ) ++count > max && this.error("Too many question marks"), + this.next(); +} + +function startsWith$2(code) { + this.charCodeAt(this.tokenStart) !== code && this.error((code === PLUSSIGN$c ? "Plus sign" : "Hyphen minus") + " is expected"); +} + +function scanUnicodeRange$1() { + let hexLength = 0; + switch (this.tokenType) { + case types$_.Number: + if (hexLength = eatHexSequence$1.call(this, 1, !0), this.isDelim(QUESTIONMARK$3)) { + eatQuestionMarkSequence$1.call(this, 6 - hexLength); + break; + } + if (this.tokenType === types$_.Dimension || this.tokenType === types$_.Number) { + startsWith$2.call(this, HYPHENMINUS$8), eatHexSequence$1.call(this, 1, !1); + break; + } + break; + + case types$_.Dimension: + hexLength = eatHexSequence$1.call(this, 1, !0), hexLength > 0 && eatQuestionMarkSequence$1.call(this, 6 - hexLength); + break; + + default: + if (this.eatDelim(PLUSSIGN$c), this.tokenType === types$_.Ident) { + hexLength = eatHexSequence$1.call(this, 0, !0), hexLength > 0 && eatQuestionMarkSequence$1.call(this, 6 - hexLength); + break; + } + if (this.isDelim(QUESTIONMARK$3)) { + this.next(), eatQuestionMarkSequence$1.call(this, 5); + break; + } + this.error("Hex digit or question mark is expected"); + } +} + +const structure$J = { + value: String +}; + +UnicodeRange$5.generate = function(node) { + this.tokenize(node.value); +}, UnicodeRange$5.name = "UnicodeRange", UnicodeRange$5.parse = function() { + const start = this.tokenStart; + return this.eatIdent("u"), scanUnicodeRange$1.call(this), { + type: "UnicodeRange", + loc: this.getLocation(start, this.tokenStart), + value: this.substrToCursor(start) + }; +}, UnicodeRange$5.structure = structure$J; + +var Url$8 = {}, url$5 = {}; + +const charCodeDefinitions$e = charCodeDefinitions$p, utils$m = utils$u; + +url$5.decode = function(str) { + const len = str.length; + let start = 4, end = 41 === str.charCodeAt(len - 1) ? len - 2 : len - 1, decoded = ""; + for (;start < end && charCodeDefinitions$e.isWhiteSpace(str.charCodeAt(start)); ) start++; + for (;start < end && charCodeDefinitions$e.isWhiteSpace(str.charCodeAt(end)); ) end--; + for (let i = start; i <= end; i++) { + let code = str.charCodeAt(i); + if (92 === code) { + if (i === end) { + i !== len - 1 && (decoded = str.substr(i + 1)); + break; + } + if (code = str.charCodeAt(++i), charCodeDefinitions$e.isValidEscape(92, code)) { + const escapeStart = i - 1, escapeEnd = utils$m.consumeEscaped(str, escapeStart); + i = escapeEnd - 1, decoded += utils$m.decodeEscaped(str.substring(escapeStart + 1, escapeEnd)); + } else 0x000d === code && 0x000a === str.charCodeAt(i + 1) && i++; + } else decoded += str[i]; + } + return decoded; +}, url$5.encode = function(str) { + let encoded = "", wsBeforeHexIsNeeded = !1; + for (let i = 0; i < str.length; i++) { + const code = str.charCodeAt(i); + 0x0000 !== code ? code <= 0x001f || 0x007F === code ? (encoded += "\\" + code.toString(16), + wsBeforeHexIsNeeded = !0) : 32 === code || 92 === code || 34 === code || 39 === code || 40 === code || 41 === code ? (encoded += "\\" + str.charAt(i), + wsBeforeHexIsNeeded = !1) : (wsBeforeHexIsNeeded && charCodeDefinitions$e.isHexDigit(code) && (encoded += " "), + encoded += str.charAt(i), wsBeforeHexIsNeeded = !1) : encoded += "�"; + } + return "url(" + encoded + ")"; +}; + +const url$4 = url$5, string$5 = string$7, types$Z = types$1I, structure$I = { + value: String +}; + +Url$8.generate = function(node) { + this.token(types$Z.Url, url$4.encode(node.value)); +}, Url$8.name = "Url", Url$8.parse = function() { + const start = this.tokenStart; + let value; + switch (this.tokenType) { + case types$Z.Url: + value = url$4.decode(this.consume(types$Z.Url)); + break; + + case types$Z.Function: + this.cmpStr(this.tokenStart, this.tokenEnd, "url(") || this.error("Function name must be `url`"), + this.eat(types$Z.Function), this.skipSC(), value = string$5.decode(this.consume(types$Z.String)), + this.skipSC(), this.eof || this.eat(types$Z.RightParenthesis); + break; + + default: + this.error("Url or Function is expected"); + } + return { + type: "Url", + loc: this.getLocation(start, this.tokenStart), + value + }; +}, Url$8.structure = structure$I; + +var Value$7 = {}; + +Value$7.generate = function(node) { + this.children(node); +}, Value$7.name = "Value", Value$7.parse = function() { + const start = this.tokenStart, children = this.readSequence(this.scope.Value); + return { + type: "Value", + loc: this.getLocation(start, this.tokenStart), + children + }; +}, Value$7.structure = { + children: [ [] ] +}; + +var WhiteSpace$8 = {}; + +const types$Y = types$1I, SPACE$4 = Object.freeze({ + type: "WhiteSpace", + loc: null, + value: " " +}), structure$G = { + value: String +}; + +WhiteSpace$8.generate = function(node) { + this.token(types$Y.WhiteSpace, node.value); +}, WhiteSpace$8.name = "WhiteSpace", WhiteSpace$8.parse = function() { + return this.eat(types$Y.WhiteSpace), SPACE$4; +}, WhiteSpace$8.structure = structure$G; + +const AnPlusB$4 = AnPlusB$5, Atrule$8 = Atrule$9, AtrulePrelude$4 = AtrulePrelude$5, AttributeSelector$6 = AttributeSelector$7, Block$4 = Block$5, Brackets$4 = Brackets$5, CDC$5 = CDC$6, CDO$5 = CDO$6, ClassSelector$4 = ClassSelector$5, Combinator$4 = Combinator$5, Comment$7 = Comment$8, Declaration$6 = Declaration$7, DeclarationList$4 = DeclarationList$5, Dimension$7 = Dimension$8, Function$5 = _Function$1, Hash$5 = Hash$6, Identifier$4 = Identifier$5, IdSelector$4 = IdSelector$5, MediaFeature$4 = MediaFeature$5, MediaQuery$4 = MediaQuery$5, MediaQueryList$4 = MediaQueryList$5, NestingSelector$1 = NestingSelector$2, Nth$4 = Nth$5, Number$1$2 = _Number$6, Operator$4 = Operator$5, Parentheses$4 = Parentheses$5, Percentage$7 = Percentage$8, PseudoClassSelector$4 = PseudoClassSelector$5, PseudoElementSelector$4 = PseudoElementSelector$5, Ratio$4 = Ratio$5, Raw$6 = Raw$7, Rule$6 = Rule$7, Selector$6 = Selector$7, SelectorList$4 = SelectorList$5, String$1$2 = _String$1, StyleSheet$4 = StyleSheet$5, TypeSelector$6 = TypeSelector$7, UnicodeRange$4 = UnicodeRange$5, Url$7 = Url$8, Value$6 = Value$7, WhiteSpace$7 = WhiteSpace$8; + +node$1.AnPlusB = AnPlusB$4, node$1.Atrule = Atrule$8, node$1.AtrulePrelude = AtrulePrelude$4, +node$1.AttributeSelector = AttributeSelector$6, node$1.Block = Block$4, node$1.Brackets = Brackets$4, +node$1.CDC = CDC$5, node$1.CDO = CDO$5, node$1.ClassSelector = ClassSelector$4, +node$1.Combinator = Combinator$4, node$1.Comment = Comment$7, node$1.Declaration = Declaration$6, +node$1.DeclarationList = DeclarationList$4, node$1.Dimension = Dimension$7, node$1.Function = Function$5, +node$1.Hash = Hash$5, node$1.Identifier = Identifier$4, node$1.IdSelector = IdSelector$4, +node$1.MediaFeature = MediaFeature$4, node$1.MediaQuery = MediaQuery$4, node$1.MediaQueryList = MediaQueryList$4, +node$1.NestingSelector = NestingSelector$1, node$1.Nth = Nth$4, node$1.Number = Number$1$2, +node$1.Operator = Operator$4, node$1.Parentheses = Parentheses$4, node$1.Percentage = Percentage$7, +node$1.PseudoClassSelector = PseudoClassSelector$4, node$1.PseudoElementSelector = PseudoElementSelector$4, +node$1.Ratio = Ratio$4, node$1.Raw = Raw$6, node$1.Rule = Rule$6, node$1.Selector = Selector$6, +node$1.SelectorList = SelectorList$4, node$1.String = String$1$2, node$1.StyleSheet = StyleSheet$4, +node$1.TypeSelector = TypeSelector$6, node$1.UnicodeRange = UnicodeRange$4, node$1.Url = Url$7, +node$1.Value = Value$6, node$1.WhiteSpace = WhiteSpace$7; + +var lexer$6 = { + generic: !0, + ...{ + "generic": !0, + "units": { + "angle": [ "deg", "grad", "rad", "turn" ], + "decibel": [ "db" ], + "flex": [ "fr" ], + "frequency": [ "hz", "khz" ], + "length": [ "cm", "mm", "q", "in", "pt", "pc", "px", "em", "rem", "ex", "rex", "cap", "rcap", "ch", "rch", "ic", "ric", "lh", "rlh", "vw", "svw", "lvw", "dvw", "vh", "svh", "lvh", "dvh", "vi", "svi", "lvi", "dvi", "vb", "svb", "lvb", "dvb", "vmin", "svmin", "lvmin", "dvmin", "vmax", "svmax", "lvmax", "dvmax", "cqw", "cqh", "cqi", "cqb", "cqmin", "cqmax" ], + "resolution": [ "dpi", "dpcm", "dppx", "x" ], + "semitones": [ "st" ], + "time": [ "s", "ms" ] + }, + "types": { + "abs()": "abs( )", + "absolute-size": "xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large", + "acos()": "acos( )", + "alpha-value": "|", + "angle-percentage": "|", + "angular-color-hint": "", + "angular-color-stop": "&&?", + "angular-color-stop-list": "[ [, ]?]# , ", + "animateable-feature": "scroll-position|contents|", + "asin()": "asin( )", + "atan()": "atan( )", + "atan2()": "atan2( , )", + "attachment": "scroll|fixed|local", + "attr()": "attr( ? [, ]? )", + "attr-matcher": "['~'|'|'|'^'|'$'|'*']? '='", + "attr-modifier": "i|s", + "attribute-selector": "'[' ']'|'[' [|] ? ']'", + "auto-repeat": "repeat( [auto-fill|auto-fit] , [? ]+ ? )", + "auto-track-list": "[? [|]]* ? [? [|]]* ?", + "axis": "block|inline|vertical|horizontal", + "baseline-position": "[first|last]? baseline", + "basic-shape": "||||", + "bg-image": "none|", + "bg-layer": "|| [/ ]?||||||||", + "bg-position": "[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]", + "bg-size": "[|auto]{1,2}|cover|contain", + "blur()": "blur( )", + "blend-mode": "normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity", + "box": "border-box|padding-box|content-box", + "brightness()": "brightness( )", + "calc()": "calc( )", + "calc-sum": " [['+'|'-'] ]*", + "calc-product": " ['*' |'/' ]*", + "calc-value": "||||( )", + "calc-constant": "e|pi|infinity|-infinity|NaN", + "cf-final-image": "|", + "cf-mixing-image": "?&&", + "circle()": "circle( []? [at ]? )", + "clamp()": "clamp( #{3} )", + "class-selector": "'.' ", + "clip-source": "", + "color": "|||||||||currentcolor|", + "color-stop": "|", + "color-stop-angle": "{1,2}", + "color-stop-length": "{1,2}", + "color-stop-list": "[ [, ]?]# , ", + "combinator": "'>'|'+'|'~'|['||']", + "common-lig-values": "[common-ligatures|no-common-ligatures]", + "compat-auto": "searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button", + "composite-style": "clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor", + "compositing-operator": "add|subtract|intersect|exclude", + "compound-selector": "[? * [ *]*]!", + "compound-selector-list": "#", + "complex-selector": " [? ]*", + "complex-selector-list": "#", + "conic-gradient()": "conic-gradient( [from ]? [at ]? , )", + "contextual-alt-values": "[contextual|no-contextual]", + "content-distribution": "space-between|space-around|space-evenly|stretch", + "content-list": "[|contents||||||]+", + "content-position": "center|start|end|flex-start|flex-end", + "content-replacement": "", + "contrast()": "contrast( [] )", + "cos()": "cos( )", + "counter": "|", + "counter()": "counter( , ? )", + "counter-name": "", + "counter-style": "|symbols( )", + "counter-style-name": "", + "counters()": "counters( , , ? )", + "cross-fade()": "cross-fade( , ? )", + "cubic-bezier-timing-function": "ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )", + "deprecated-system-color": "ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText", + "discretionary-lig-values": "[discretionary-ligatures|no-discretionary-ligatures]", + "display-box": "contents|none", + "display-inside": "flow|flow-root|table|flex|grid|ruby", + "display-internal": "table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container", + "display-legacy": "inline-block|inline-list-item|inline-table|inline-flex|inline-grid", + "display-listitem": "?&&[flow|flow-root]?&&list-item", + "display-outside": "block|inline|run-in", + "drop-shadow()": "drop-shadow( {2,3} ? )", + "east-asian-variant-values": "[jis78|jis83|jis90|jis04|simplified|traditional]", + "east-asian-width-values": "[full-width|proportional-width]", + "element()": "element( , [first|start|last|first-except]? )|element( )", + "ellipse()": "ellipse( [{2}]? [at ]? )", + "ending-shape": "circle|ellipse", + "env()": "env( , ? )", + "exp()": "exp( )", + "explicit-track-list": "[? ]+ ?", + "family-name": "|+", + "feature-tag-value": " [|on|off]?", + "feature-type": "@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation", + "feature-value-block": " '{' '}'", + "feature-value-block-list": "+", + "feature-value-declaration": " : + ;", + "feature-value-declaration-list": "", + "feature-value-name": "", + "fill-rule": "nonzero|evenodd", + "filter-function": "|||||||||", + "filter-function-list": "[|]+", + "final-bg-layer": "<'background-color'>|||| [/ ]?||||||||", + "fixed-breadth": "", + "fixed-repeat": "repeat( [] , [? ]+ ? )", + "fixed-size": "|minmax( , )|minmax( , )", + "font-stretch-absolute": "normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|", + "font-variant-css21": "[normal|small-caps]", + "font-weight-absolute": "normal|bold|", + "frequency-percentage": "|", + "general-enclosed": "[ )]|( )", + "generic-family": "serif|sans-serif|cursive|fantasy|monospace|-apple-system", + "generic-name": "serif|sans-serif|cursive|fantasy|monospace", + "geometry-box": "|fill-box|stroke-box|view-box", + "gradient": "||||||<-legacy-gradient>", + "grayscale()": "grayscale( )", + "grid-line": "auto||[&&?]|[span&&[||]]", + "historical-lig-values": "[historical-ligatures|no-historical-ligatures]", + "hsl()": "hsl( [/ ]? )|hsl( , , , ? )", + "hsla()": "hsla( [/ ]? )|hsla( , , , ? )", + "hue": "|", + "hue-rotate()": "hue-rotate( )", + "hwb()": "hwb( [|none] [|none] [|none] [/ [|none]]? )", + "hypot()": "hypot( # )", + "image": "||||||", + "image()": "image( ? [? , ?]! )", + "image-set()": "image-set( # )", + "image-set-option": "[|] [||type( )]", + "image-src": "|", + "image-tags": "ltr|rtl", + "inflexible-breadth": "|min-content|max-content|auto", + "inset()": "inset( {1,4} [round <'border-radius'>]? )", + "invert()": "invert( )", + "keyframes-name": "|", + "keyframe-block": "# { }", + "keyframe-block-list": "+", + "keyframe-selector": "from|to|", + "lab()": "lab( [||none] [||none] [||none] [/ [|none]]? )", + "layer()": "layer( )", + "layer-name": " ['.' ]*", + "lch()": "lch( [||none] [||none] [|none] [/ [|none]]? )", + "leader()": "leader( )", + "leader-type": "dotted|solid|space|", + "length-percentage": "|", + "line-names": "'[' * ']'", + "line-name-list": "[|]+", + "line-style": "none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset", + "line-width": "|thin|medium|thick", + "linear-color-hint": "", + "linear-color-stop": " ?", + "linear-gradient()": "linear-gradient( [|to ]? , )", + "log()": "log( , ? )", + "mask-layer": "|| [/ ]?||||||[|no-clip]||||", + "mask-position": "[|left|center|right] [|top|center|bottom]?", + "mask-reference": "none||", + "mask-source": "", + "masking-mode": "alpha|luminance|match-source", + "matrix()": "matrix( #{6} )", + "matrix3d()": "matrix3d( #{16} )", + "max()": "max( # )", + "media-and": " [and ]+", + "media-condition": "|||", + "media-condition-without-or": "||", + "media-feature": "( [||] )", + "media-in-parens": "( )||", + "media-not": "not ", + "media-or": " [or ]+", + "media-query": "|[not|only]? [and ]?", + "media-query-list": "#", + "media-type": "", + "mf-boolean": "", + "mf-name": "", + "mf-plain": " : ", + "mf-range": " ['<'|'>']? '='? | ['<'|'>']? '='? | '<' '='? '<' '='? | '>' '='? '>' '='? ", + "mf-value": "|||", + "min()": "min( # )", + "minmax()": "minmax( [|min-content|max-content|auto] , [||min-content|max-content|auto] )", + "mod()": "mod( , )", + "name-repeat": "repeat( [|auto-fill] , + )", + "named-color": "transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>", + "namespace-prefix": "", + "ns-prefix": "[|'*']? '|'", + "number-percentage": "|", + "numeric-figure-values": "[lining-nums|oldstyle-nums]", + "numeric-fraction-values": "[diagonal-fractions|stacked-fractions]", + "numeric-spacing-values": "[proportional-nums|tabular-nums]", + "nth": "|even|odd", + "opacity()": "opacity( [] )", + "overflow-position": "unsafe|safe", + "outline-radius": "|", + "page-body": "? [; ]?| ", + "page-margin-box": " '{' '}'", + "page-margin-box-type": "@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom", + "page-selector-list": "[#]?", + "page-selector": "+| *", + "page-size": "A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger", + "path()": "path( [ ,]? )", + "paint()": "paint( , ? )", + "perspective()": "perspective( [|none] )", + "polygon()": "polygon( ? , [ ]# )", + "position": "[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]", + "pow()": "pow( , )", + "pseudo-class-selector": "':' |':' ')'", + "pseudo-element-selector": "':' ", + "pseudo-page": ": [left|right|first|blank]", + "quote": "open-quote|close-quote|no-open-quote|no-close-quote", + "radial-gradient()": "radial-gradient( [||]? [at ]? , )", + "ratio": " [/ ]?", + "relative-selector": "? ", + "relative-selector-list": "#", + "relative-size": "larger|smaller", + "rem()": "rem( , )", + "repeat-style": "repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}", + "repeating-conic-gradient()": "repeating-conic-gradient( [from ]? [at ]? , )", + "repeating-linear-gradient()": "repeating-linear-gradient( [|to ]? , )", + "repeating-radial-gradient()": "repeating-radial-gradient( [||]? [at ]? , )", + "reversed-counter-name": "reversed( )", + "rgb()": "rgb( {3} [/ ]? )|rgb( {3} [/ ]? )|rgb( #{3} , ? )|rgb( #{3} , ? )", + "rgba()": "rgba( {3} [/ ]? )|rgba( {3} [/ ]? )|rgba( #{3} , ? )|rgba( #{3} , ? )", + "rotate()": "rotate( [|] )", + "rotate3d()": "rotate3d( , , , [|] )", + "rotateX()": "rotateX( [|] )", + "rotateY()": "rotateY( [|] )", + "rotateZ()": "rotateZ( [|] )", + "round()": "round( ? , , )", + "rounding-strategy": "nearest|up|down|to-zero", + "saturate()": "saturate( )", + "scale()": "scale( [|]#{1,2} )", + "scale3d()": "scale3d( [|]#{3} )", + "scaleX()": "scaleX( [|] )", + "scaleY()": "scaleY( [|] )", + "scaleZ()": "scaleZ( [|] )", + "scroller": "root|nearest", + "self-position": "center|start|end|self-start|self-end|flex-start|flex-end", + "shape-radius": "|closest-side|farthest-side", + "sign()": "sign( )", + "skew()": "skew( [|] , [|]? )", + "skewX()": "skewX( [|] )", + "skewY()": "skewY( [|] )", + "sepia()": "sepia( )", + "shadow": "inset?&&{2,4}&&?", + "shadow-t": "[{2,3}&&?]", + "shape": "rect( , , , )|rect( )", + "shape-box": "|margin-box", + "side-or-corner": "[left|right]||[top|bottom]", + "sin()": "sin( )", + "single-animation": "