UNPKG

@mapcss/config

Version:

Definition of MapCSS config, loader

764 lines 70.3 kB
/* esm.sh - esbuild bundle(postcss-selector-parser@6.0.9) deno production */ import __util_deprecate$ from "../../util-deprecate@1.0.2/deno/util-deprecate.js"; import __cssesc$ from "../../cssesc@3.0.0/deno/cssesc.js"; var Fr = Object.create; var Le = Object.defineProperty; var Rr = Object.getOwnPropertyDescriptor; var Cr = Object.getOwnPropertyNames; var Ur = Object.getPrototypeOf, Wr = Object.prototype.hasOwnProperty; var Qr = e => Le(e, "__esModule", { value: !0 }); var ge = (e => typeof require != "undefined" ? require : typeof Proxy != "undefined" ? new Proxy(e, { get: (n, i) => (typeof require != "undefined" ? require : n)[i] }) : e)(function (e) { if (typeof require != "undefined") return require.apply(this, arguments); throw new Error('Dynamic require of "' + e + '" is not supported'); }); var T = (e, n) => () => (n || e((n = { exports: {} }).exports, n), n.exports); var Yr = (e, n, i, t) => { if (n && typeof n == "object" || typeof n == "function") for (let r of Cr(n)) !Wr.call(e, r) && (i || r !== "default") && Le(e, r, { get: () => n[r], enumerable: !(t = Rr(n, r)) || t.enumerable }); return e; }, wt = (e, n) => Yr(Qr(Le(e != null ? Fr(Ur(e)) : {}, "default", !n && e && e.__esModule ? { get: () => e.default, enumerable: !0 } : { value: e, enumerable: !0 })), e); var be = T((Te, Pt) => { "use strict"; Te.__esModule = !0; Te.default = Vr; function Br(e) { for (var n = e.toLowerCase(), i = "", t = !1, r = 0; r < 6 && n[r] !== void 0; r++) { var s = n.charCodeAt(r), a = s >= 97 && s <= 102 || s >= 48 && s <= 57; if (t = s === 32, !a) break; i += n[r]; } if (i.length !== 0) { var u = parseInt(i, 16), h = u >= 55296 && u <= 57343; return h || u === 0 || u > 1114111 ? ["\uFFFD", i.length + (t ? 1 : 0)] : [String.fromCodePoint(u), i.length + (t ? 1 : 0)]; } } var Gr = /\\/; function Vr(e) { var n = Gr.test(e); if (!n) return e; for (var i = "", t = 0; t < e.length; t++) { if (e[t] === "\\") { var r = Br(e.slice(t + 1, t + 7)); if (r !== void 0) { i += r[0], t += r[1]; continue; } if (e[t + 1] === "\\") { i += "\\", t++; continue; } e.length === t + 1 && (i += e[t]); continue; } i += e[t]; } return i; } Pt.exports = Te.default; }); var It = T((Oe, kt) => { "use strict"; Oe.__esModule = !0; Oe.default = $r; function $r(e) { for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), t = 1; t < n; t++) i[t - 1] = arguments[t]; for (; i.length > 0;) { var r = i.shift(); if (!e[r]) return; e = e[r]; } return e; } kt.exports = Oe.default; }); var Dt = T((ye, qt) => { "use strict"; ye.__esModule = !0; ye.default = Hr; function Hr(e) { for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), t = 1; t < n; t++) i[t - 1] = arguments[t]; for (; i.length > 0;) { var r = i.shift(); e[r] || (e[r] = {}), e = e[r]; } } qt.exports = ye.default; }); var bt = T((Ee, Lt) => { "use strict"; Ee.__esModule = !0; Ee.default = Kr; function Kr(e) { for (var n = "", i = e.indexOf("/*"), t = 0; i >= 0;) { n = n + e.slice(t, i); var r = e.indexOf("*/", i + 2); if (r < 0) return n; t = r + 2, i = e.indexOf("/*", t); } return n = n + e.slice(t), n; } Lt.exports = Ee.default; }); var J = T(U => { "use strict"; U.__esModule = !0; U.stripComments = U.ensureObject = U.getProp = U.unesc = void 0; var zr = me(be()); U.unesc = zr.default; var Jr = me(It()); U.getProp = Jr.default; var Xr = me(Dt()); U.ensureObject = Xr.default; var Zr = me(bt()); U.stripComments = Zr.default; function me(e) { return e && e.__esModule ? e : { default: e }; } }); var W = T((X, Mt) => { "use strict"; X.__esModule = !0; X.default = void 0; var At = J(); function xt(e, n) { for (var i = 0; i < n.length; i++) { var t = n[i]; t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(e, t.key, t); } } function jr(e, n, i) { return n && xt(e.prototype, n), i && xt(e, i), e; } var en = function e(n, i) { if (typeof n != "object" || n === null) return n; var t = new n.constructor; for (var r in n) if (!!n.hasOwnProperty(r)) { var s = n[r], a = typeof s; r === "parent" && a === "object" ? i && (t[r] = i) : s instanceof Array ? t[r] = s.map(function (u) { return e(u, t); }) : t[r] = e(s, t); } return t; }, tn = function () { function e(i) { i === void 0 && (i = {}), Object.assign(this, i), this.spaces = this.spaces || {}, this.spaces.before = this.spaces.before || "", this.spaces.after = this.spaces.after || ""; } var n = e.prototype; return n.remove = function () { return this.parent && this.parent.removeChild(this), this.parent = void 0, this; }, n.replaceWith = function () { if (this.parent) { for (var t in arguments) this.parent.insertBefore(this, arguments[t]); this.remove(); } return this; }, n.next = function () { return this.parent.at(this.parent.index(this) + 1); }, n.prev = function () { return this.parent.at(this.parent.index(this) - 1); }, n.clone = function (t) { t === void 0 && (t = {}); var r = en(this); for (var s in t) r[s] = t[s]; return r; }, n.appendToPropertyAndEscape = function (t, r, s) { this.raws || (this.raws = {}); var a = this[t], u = this.raws[t]; this[t] = a + r, u || s !== r ? this.raws[t] = (u || a) + s : delete this.raws[t]; }, n.setPropertyAndEscape = function (t, r, s) { this.raws || (this.raws = {}), this[t] = r, this.raws[t] = s; }, n.setPropertyWithoutEscape = function (t, r) { this[t] = r, this.raws && delete this.raws[t]; }, n.isAtPosition = function (t, r) { if (this.source && this.source.start && this.source.end) return !(this.source.start.line > t || this.source.end.line < t || this.source.start.line === t && this.source.start.column > r || this.source.end.line === t && this.source.end.column < r); }, n.stringifyProperty = function (t) { return this.raws && this.raws[t] || this[t]; }, n.valueToString = function () { return String(this.stringifyProperty("value")); }, n.toString = function () { return [this.rawSpaceBefore, this.valueToString(), this.rawSpaceAfter].join(""); }, jr(e, [{ key: "rawSpaceBefore", get: function () { var t = this.raws && this.raws.spaces && this.raws.spaces.before; return t === void 0 && (t = this.spaces && this.spaces.before), t || ""; }, set: function (t) { (0, At.ensureObject)(this, "raws", "spaces"), this.raws.spaces.before = t; } }, { key: "rawSpaceAfter", get: function () { var t = this.raws && this.raws.spaces && this.raws.spaces.after; return t === void 0 && (t = this.spaces.after), t || ""; }, set: function (t) { (0, At.ensureObject)(this, "raws", "spaces"), this.raws.spaces.after = t; } }]), e; }(); X.default = tn; Mt.exports = X.default; }); var L = T(m => { "use strict"; m.__esModule = !0; m.UNIVERSAL = m.ATTRIBUTE = m.CLASS = m.COMBINATOR = m.COMMENT = m.ID = m.NESTING = m.PSEUDO = m.ROOT = m.SELECTOR = m.STRING = m.TAG = void 0; var rn = "tag"; m.TAG = rn; var nn = "string"; m.STRING = nn; var sn = "selector"; m.SELECTOR = sn; var an = "root"; m.ROOT = an; var un = "pseudo"; m.PSEUDO = un; var on = "nesting"; m.NESTING = on; var cn = "id"; m.ID = cn; var fn = "comment"; m.COMMENT = fn; var ln = "combinator"; m.COMBINATOR = ln; var hn = "class"; m.CLASS = hn; var pn = "attribute"; m.ATTRIBUTE = pn; var dn = "universal"; m.UNIVERSAL = dn; }); var we = T((Z, Ct) => { "use strict"; Z.__esModule = !0; Z.default = void 0; var vn = Sn(W()), Q = _n(L()); function Rt() { if (typeof WeakMap != "function") return null; var e = new WeakMap; return Rt = function () { return e; }, e; } function _n(e) { if (e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; var n = Rt(); if (n && n.has(e)) return n.get(e); var i = {}, t = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { var s = t ? Object.getOwnPropertyDescriptor(e, r) : null; s && (s.get || s.set) ? Object.defineProperty(i, r, s) : i[r] = e[r]; } return i.default = e, n && n.set(e, i), i; } function Sn(e) { return e && e.__esModule ? e : { default: e }; } function gn(e, n) { var i; if (typeof Symbol > "u" || e[Symbol.iterator] == null) { if (Array.isArray(e) || (i = Tn(e)) || n && e && typeof e.length == "number") { i && (e = i); var t = 0; return function () { return t >= e.length ? { done: !0 } : { done: !1, value: e[t++] }; }; } throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } return i = e[Symbol.iterator](), i.next.bind(i); } function Tn(e, n) { if (!!e) { if (typeof e == "string") return Nt(e, n); var i = Object.prototype.toString.call(e).slice(8, -1); if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set") return Array.from(e); if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Nt(e, n); } } function Nt(e, n) { (n == null || n > e.length) && (n = e.length); for (var i = 0, t = new Array(n); i < n; i++) t[i] = e[i]; return t; } function Ft(e, n) { for (var i = 0; i < n.length; i++) { var t = n[i]; t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(e, t.key, t); } } function On(e, n, i) { return n && Ft(e.prototype, n), i && Ft(e, i), e; } function yn(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, Ae(e, n); } function Ae(e, n) { return Ae = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, Ae(e, n); } var En = function (e) { yn(n, e); function n(t) { var r; return r = e.call(this, t) || this, r.nodes || (r.nodes = []), r; } var i = n.prototype; return i.append = function (r) { return r.parent = this, this.nodes.push(r), this; }, i.prepend = function (r) { return r.parent = this, this.nodes.unshift(r), this; }, i.at = function (r) { return this.nodes[r]; }, i.index = function (r) { return typeof r == "number" ? r : this.nodes.indexOf(r); }, i.removeChild = function (r) { r = this.index(r), this.at(r).parent = void 0, this.nodes.splice(r, 1); var s; for (var a in this.indexes) s = this.indexes[a], s >= r && (this.indexes[a] = s - 1); return this; }, i.removeAll = function () { for (var r = gn(this.nodes), s; !(s = r()).done;) { var a = s.value; a.parent = void 0; } return this.nodes = [], this; }, i.empty = function () { return this.removeAll(); }, i.insertAfter = function (r, s) { s.parent = this; var a = this.index(r); this.nodes.splice(a + 1, 0, s), s.parent = this; var u; for (var h in this.indexes) u = this.indexes[h], a <= u && (this.indexes[h] = u + 1); return this; }, i.insertBefore = function (r, s) { s.parent = this; var a = this.index(r); this.nodes.splice(a, 0, s), s.parent = this; var u; for (var h in this.indexes) u = this.indexes[h], u <= a && (this.indexes[h] = u + 1); return this; }, i._findChildAtPosition = function (r, s) { var a = void 0; return this.each(function (u) { if (u.atPosition) { var h = u.atPosition(r, s); if (h) return a = h, !1; } else if (u.isAtPosition(r, s)) return a = u, !1; }), a; }, i.atPosition = function (r, s) { if (this.isAtPosition(r, s)) return this._findChildAtPosition(r, s) || this; }, i._inferEndPosition = function () { this.last && this.last.source && this.last.source.end && (this.source = this.source || {}, this.source.end = this.source.end || {}, Object.assign(this.source.end, this.last.source.end)); }, i.each = function (r) { this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach++; var s = this.lastEach; if (this.indexes[s] = 0, !!this.length) { for (var a, u; this.indexes[s] < this.length && (a = this.indexes[s], u = r(this.at(a), a), u !== !1);) this.indexes[s] += 1; if (delete this.indexes[s], u === !1) return !1; } }, i.walk = function (r) { return this.each(function (s, a) { var u = r(s, a); if (u !== !1 && s.length && (u = s.walk(r)), u === !1) return !1; }); }, i.walkAttributes = function (r) { var s = this; return this.walk(function (a) { if (a.type === Q.ATTRIBUTE) return r.call(s, a); }); }, i.walkClasses = function (r) { var s = this; return this.walk(function (a) { if (a.type === Q.CLASS) return r.call(s, a); }); }, i.walkCombinators = function (r) { var s = this; return this.walk(function (a) { if (a.type === Q.COMBINATOR) return r.call(s, a); }); }, i.walkComments = function (r) { var s = this; return this.walk(function (a) { if (a.type === Q.COMMENT) return r.call(s, a); }); }, i.walkIds = function (r) { var s = this; return this.walk(function (a) { if (a.type === Q.ID) return r.call(s, a); }); }, i.walkNesting = function (r) { var s = this; return this.walk(function (a) { if (a.type === Q.NESTING) return r.call(s, a); }); }, i.walkPseudos = function (r) { var s = this; return this.walk(function (a) { if (a.type === Q.PSEUDO) return r.call(s, a); }); }, i.walkTags = function (r) { var s = this; return this.walk(function (a) { if (a.type === Q.TAG) return r.call(s, a); }); }, i.walkUniversals = function (r) { var s = this; return this.walk(function (a) { if (a.type === Q.UNIVERSAL) return r.call(s, a); }); }, i.split = function (r) { var s = this, a = []; return this.reduce(function (u, h, l) { var d = r.call(s, h); return a.push(h), d ? (u.push(a), a = []) : l === s.length - 1 && u.push(a), u; }, []); }, i.map = function (r) { return this.nodes.map(r); }, i.reduce = function (r, s) { return this.nodes.reduce(r, s); }, i.every = function (r) { return this.nodes.every(r); }, i.some = function (r) { return this.nodes.some(r); }, i.filter = function (r) { return this.nodes.filter(r); }, i.sort = function (r) { return this.nodes.sort(r); }, i.toString = function () { return this.map(String).join(""); }, On(n, [{ key: "first", get: function () { return this.at(0); } }, { key: "last", get: function () { return this.at(this.length - 1); } }, { key: "length", get: function () { return this.nodes.length; } }]), n; }(vn.default); Z.default = En; Ct.exports = Z.default; }); var Me = T((j, Wt) => { "use strict"; j.__esModule = !0; j.default = void 0; var mn = Pn(we()), wn = L(); function Pn(e) { return e && e.__esModule ? e : { default: e }; } function Ut(e, n) { for (var i = 0; i < n.length; i++) { var t = n[i]; t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(e, t.key, t); } } function kn(e, n, i) { return n && Ut(e.prototype, n), i && Ut(e, i), e; } function In(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, xe(e, n); } function xe(e, n) { return xe = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, xe(e, n); } var qn = function (e) { In(n, e); function n(t) { var r; return r = e.call(this, t) || this, r.type = wn.ROOT, r; } var i = n.prototype; return i.toString = function () { var r = this.reduce(function (s, a) { return s.push(String(a)), s; }, []).join(","); return this.trailingComma ? r + "," : r; }, i.error = function (r, s) { return this._error ? this._error(r, s) : new Error(r); }, kn(n, [{ key: "errorGenerator", set: function (r) { this._error = r; } }]), n; }(mn.default); j.default = qn; Wt.exports = j.default; }); var Fe = T((ee, Qt) => { "use strict"; ee.__esModule = !0; ee.default = void 0; var Dn = bn(we()), Ln = L(); function bn(e) { return e && e.__esModule ? e : { default: e }; } function An(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, Ne(e, n); } function Ne(e, n) { return Ne = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, Ne(e, n); } var xn = function (e) { An(n, e); function n(i) { var t; return t = e.call(this, i) || this, t.type = Ln.SELECTOR, t; } return n; }(Dn.default); ee.default = xn; Qt.exports = ee.default; }); var Ce = T((te, Gt) => { "use strict"; te.__esModule = !0; te.default = void 0; var Mn = Bt(__cssesc$), Nn = J(), Fn = Bt(W()), Rn = L(); function Bt(e) { return e && e.__esModule ? e : { default: e }; } function Yt(e, n) { for (var i = 0; i < n.length; i++) { var t = n[i]; t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(e, t.key, t); } } function Cn(e, n, i) { return n && Yt(e.prototype, n), i && Yt(e, i), e; } function Un(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, Re(e, n); } function Re(e, n) { return Re = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, Re(e, n); } var Wn = function (e) { Un(n, e); function n(t) { var r; return r = e.call(this, t) || this, r.type = Rn.CLASS, r._constructed = !0, r; } var i = n.prototype; return i.valueToString = function () { return "." + e.prototype.valueToString.call(this); }, Cn(n, [{ key: "value", get: function () { return this._value; }, set: function (r) { if (this._constructed) { var s = (0, Mn.default)(r, { isIdentifier: !0 }); s !== r ? ((0, Nn.ensureObject)(this, "raws"), this.raws.value = s) : this.raws && delete this.raws.value; } this._value = r; } }]), n; }(Fn.default); te.default = Wn; Gt.exports = te.default; }); var We = T((re, Vt) => { "use strict"; re.__esModule = !0; re.default = void 0; var Qn = Bn(W()), Yn = L(); function Bn(e) { return e && e.__esModule ? e : { default: e }; } function Gn(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, Ue(e, n); } function Ue(e, n) { return Ue = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, Ue(e, n); } var Vn = function (e) { Gn(n, e); function n(i) { var t; return t = e.call(this, i) || this, t.type = Yn.COMMENT, t; } return n; }(Qn.default); re.default = Vn; Vt.exports = re.default; }); var Ye = T((ne, $t) => { "use strict"; ne.__esModule = !0; ne.default = void 0; var $n = Kn(W()), Hn = L(); function Kn(e) { return e && e.__esModule ? e : { default: e }; } function zn(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, Qe(e, n); } function Qe(e, n) { return Qe = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, Qe(e, n); } var Jn = function (e) { zn(n, e); function n(t) { var r; return r = e.call(this, t) || this, r.type = Hn.ID, r; } var i = n.prototype; return i.valueToString = function () { return "#" + e.prototype.valueToString.call(this); }, n; }($n.default); ne.default = Jn; $t.exports = ne.default; }); var Pe = T((ie, zt) => { "use strict"; ie.__esModule = !0; ie.default = void 0; var Xn = Kt(__cssesc$), Zn = J(), jn = Kt(W()); function Kt(e) { return e && e.__esModule ? e : { default: e }; } function Ht(e, n) { for (var i = 0; i < n.length; i++) { var t = n[i]; t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(e, t.key, t); } } function ei(e, n, i) { return n && Ht(e.prototype, n), i && Ht(e, i), e; } function ti(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, Be(e, n); } function Be(e, n) { return Be = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, Be(e, n); } var ri = function (e) { ti(n, e); function n() { return e.apply(this, arguments) || this; } var i = n.prototype; return i.qualifiedName = function (r) { return this.namespace ? this.namespaceString + "|" + r : r; }, i.valueToString = function () { return this.qualifiedName(e.prototype.valueToString.call(this)); }, ei(n, [{ key: "namespace", get: function () { return this._namespace; }, set: function (r) { if (r === !0 || r === "*" || r === "&") { this._namespace = r, this.raws && delete this.raws.namespace; return; } var s = (0, Xn.default)(r, { isIdentifier: !0 }); this._namespace = r, s !== r ? ((0, Zn.ensureObject)(this, "raws"), this.raws.namespace = s) : this.raws && delete this.raws.namespace; } }, { key: "ns", get: function () { return this._namespace; }, set: function (r) { this.namespace = r; } }, { key: "namespaceString", get: function () { if (this.namespace) { var r = this.stringifyProperty("namespace"); return r === !0 ? "" : r; } else return ""; } }]), n; }(jn.default); ie.default = ri; zt.exports = ie.default; }); var Ve = T((se, Jt) => { "use strict"; se.__esModule = !0; se.default = void 0; var ni = si(Pe()), ii = L(); function si(e) { return e && e.__esModule ? e : { default: e }; } function ai(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, Ge(e, n); } function Ge(e, n) { return Ge = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, Ge(e, n); } var ui = function (e) { ai(n, e); function n(i) { var t; return t = e.call(this, i) || this, t.type = ii.TAG, t; } return n; }(ni.default); se.default = ui; Jt.exports = se.default; }); var He = T((ae, Xt) => { "use strict"; ae.__esModule = !0; ae.default = void 0; var oi = fi(W()), ci = L(); function fi(e) { return e && e.__esModule ? e : { default: e }; } function li(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, $e(e, n); } function $e(e, n) { return $e = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, $e(e, n); } var hi = function (e) { li(n, e); function n(i) { var t; return t = e.call(this, i) || this, t.type = ci.STRING, t; } return n; }(oi.default); ae.default = hi; Xt.exports = ae.default; }); var ze = T((ue, Zt) => { "use strict"; ue.__esModule = !0; ue.default = void 0; var pi = vi(we()), di = L(); function vi(e) { return e && e.__esModule ? e : { default: e }; } function _i(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, Ke(e, n); } function Ke(e, n) { return Ke = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, Ke(e, n); } var Si = function (e) { _i(n, e); function n(t) { var r; return r = e.call(this, t) || this, r.type = di.PSEUDO, r; } var i = n.prototype; return i.toString = function () { var r = this.length ? "(" + this.map(String).join(",") + ")" : ""; return [this.rawSpaceBefore, this.stringifyProperty("value"), r, this.rawSpaceAfter].join(""); }, n; }(pi.default); ue.default = Si; Zt.exports = ue.default; }); var tt = T(fe => { "use strict"; fe.__esModule = !0; fe.unescapeValue = et; fe.default = void 0; var oe = je(__cssesc$), gi = je(be()), Ti = je(Pe()), Oi = L(), Je; function je(e) { return e && e.__esModule ? e : { default: e }; } function jt(e, n) { for (var i = 0; i < n.length; i++) { var t = n[i]; t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(e, t.key, t); } } function yi(e, n, i) { return n && jt(e.prototype, n), i && jt(e, i), e; } function Ei(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, Ze(e, n); } function Ze(e, n) { return Ze = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, Ze(e, n); } var ce = __util_deprecate$, mi = /^('|")([^]*)\1$/, wi = ce(function () { }, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."), Pi = ce(function () { }, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."), ki = ce(function () { }, "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now."); function et(e) { var n = !1, i = null, t = e, r = t.match(mi); return r && (i = r[1], t = r[2]), t = (0, gi.default)(t), t !== e && (n = !0), { deprecatedUsage: n, unescaped: t, quoteMark: i }; } function Ii(e) { if (e.quoteMark !== void 0 || e.value === void 0) return e; ki(); var n = et(e.value), i = n.quoteMark, t = n.unescaped; return e.raws || (e.raws = {}), e.raws.value === void 0 && (e.raws.value = e.value), e.value = t, e.quoteMark = i, e; } var ke = function (e) { Ei(n, e); function n(t) { var r; return t === void 0 && (t = {}), r = e.call(this, Ii(t)) || this, r.type = Oi.ATTRIBUTE, r.raws = r.raws || {}, Object.defineProperty(r.raws, "unquoted", { get: ce(function () { return r.value; }, "attr.raws.unquoted is deprecated. Call attr.value instead."), set: ce(function () { return r.value; }, "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.") }), r._constructed = !0, r; } var i = n.prototype; return i.getQuotedValue = function (r) { r === void 0 && (r = {}); var s = this._determineQuoteMark(r), a = Xe[s], u = (0, oe.default)(this._value, a); return u; }, i._determineQuoteMark = function (r) { return r.smart ? this.smartQuoteMark(r) : this.preferredQuoteMark(r); }, i.setValue = function (r, s) { s === void 0 && (s = {}), this._value = r, this._quoteMark = this._determineQuoteMark(s), this._syncRawValue(); }, i.smartQuoteMark = function (r) { var s = this.value, a = s.replace(/[^']/g, "").length, u = s.replace(/[^"]/g, "").length; if (a + u === 0) { var h = (0, oe.default)(s, { isIdentifier: !0 }); if (h === s) return n.NO_QUOTE; var l = this.preferredQuoteMark(r); if (l === n.NO_QUOTE) { var d = this.quoteMark || r.quoteMark || n.DOUBLE_QUOTE, S = Xe[d], O = (0, oe.default)(s, S); if (O.length < h.length) return d; } return l; } else return u === a ? this.preferredQuoteMark(r) : u < a ? n.DOUBLE_QUOTE : n.SINGLE_QUOTE; }, i.preferredQuoteMark = function (r) { var s = r.preferCurrentQuoteMark ? this.quoteMark : r.quoteMark; return s === void 0 && (s = r.preferCurrentQuoteMark ? r.quoteMark : this.quoteMark), s === void 0 && (s = n.DOUBLE_QUOTE), s; }, i._syncRawValue = function () { var r = (0, oe.default)(this._value, Xe[this.quoteMark]); r === this._value ? this.raws && delete this.raws.value : this.raws.value = r; }, i._handleEscapes = function (r, s) { if (this._constructed) { var a = (0, oe.default)(s, { isIdentifier: !0 }); a !== s ? this.raws[r] = a : delete this.raws[r]; } }, i._spacesFor = function (r) { var s = { before: "", after: "" }, a = this.spaces[r] || {}, u = this.raws.spaces && this.raws.spaces[r] || {}; return Object.assign(s, a, u); }, i._stringFor = function (r, s, a) { s === void 0 && (s = r), a === void 0 && (a = er); var u = this._spacesFor(s); return a(this.stringifyProperty(r), u); }, i.offsetOf = function (r) { var s = 1, a = this._spacesFor("attribute"); if (s += a.before.length, r === "namespace" || r === "ns") return this.namespace ? s : -1; if (r === "attributeNS" || (s += this.namespaceString.length, this.namespace && (s += 1), r === "attribute")) return s; s += this.stringifyProperty("attribute").length, s += a.after.length; var u = this._spacesFor("operator"); s += u.before.length; var h = this.stringifyProperty("operator"); if (r === "operator") return h ? s : -1; s += h.length, s += u.after.length; var l = this._spacesFor("value"); s += l.before.length; var d = this.stringifyProperty("value"); if (r === "value") return d ? s : -1; s += d.length, s += l.after.length; var S = this._spacesFor("insensitive"); return s += S.before.length, r === "insensitive" && this.insensitive ? s : -1; }, i.toString = function () { var r = this, s = [this.rawSpaceBefore, "["]; return s.push(this._stringFor("qualifiedAttribute", "attribute")), this.operator && (this.value || this.value === "") && (s.push(this._stringFor("operator")), s.push(this._stringFor("value")), s.push(this._stringFor("insensitiveFlag", "insensitive", function (a, u) { return a.length > 0 && !r.quoted && u.before.length === 0 && !(r.spaces.value && r.spaces.value.after) && (u.before = " "), er(a, u); }))), s.push("]"), s.push(this.rawSpaceAfter), s.join(""); }, yi(n, [{ key: "quoted", get: function () { var r = this.quoteMark; return r === "'" || r === '"'; }, set: function (r) { Pi(); } }, { key: "quoteMark", get: function () { return this._quoteMark; }, set: function (r) { if (!this._constructed) { this._quoteMark = r; return; } this._quoteMark !== r && (this._quoteMark = r, this._syncRawValue()); } }, { key: "qualifiedAttribute", get: function () { return this.qualifiedName(this.raws.attribute || this.attribute); } }, { key: "insensitiveFlag", get: function () { return this.insensitive ? "i" : ""; } }, { key: "value", get: function () { return this._value; }, set: function (r) { if (this._constructed) { var s = et(r), a = s.deprecatedUsage, u = s.unescaped, h = s.quoteMark; if (a && wi(), u === this._value && h === this._quoteMark) return; this._value = u, this._quoteMark = h, this._syncRawValue(); } else this._value = r; } }, { key: "attribute", get: function () { return this._attribute; }, set: function (r) { this._handleEscapes("attribute", r), this._attribute = r; } }]), n; }(Ti.default); fe.default = ke; ke.NO_QUOTE = null; ke.SINGLE_QUOTE = "'"; ke.DOUBLE_QUOTE = '"'; var Xe = (Je = { "'": { quotes: "single", wrap: !0 }, '"': { quotes: "double", wrap: !0 } }, Je[null] = { isIdentifier: !0 }, Je); function er(e, n) { return "" + n.before + e + n.after; } }); var nt = T((le, tr) => { "use strict"; le.__esModule = !0; le.default = void 0; var qi = Li(Pe()), Di = L(); function Li(e) { return e && e.__esModule ? e : { default: e }; } function bi(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, rt(e, n); } function rt(e, n) { return rt = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, rt(e, n); } var Ai = function (e) { bi(n, e); function n(i) { var t; return t = e.call(this, i) || this, t.type = Di.UNIVERSAL, t.value = "*", t; } return n; }(qi.default); le.default = Ai; tr.exports = le.default; }); var st = T((he, rr) => { "use strict"; he.__esModule = !0; he.default = void 0; var xi = Ni(W()), Mi = L(); function Ni(e) { return e && e.__esModule ? e : { default: e }; } function Fi(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, it(e, n); } function it(e, n) { return it = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, it(e, n); } var Ri = function (e) { Fi(n, e); function n(i) { var t; return t = e.call(this, i) || this, t.type = Mi.COMBINATOR, t; } return n; }(xi.default); he.default = Ri; rr.exports = he.default; }); var ut = T((pe, nr) => { "use strict"; pe.__esModule = !0; pe.default = void 0; var Ci = Wi(W()), Ui = L(); function Wi(e) { return e && e.__esModule ? e : { default: e }; } function Qi(e, n) { e.prototype = Object.create(n.prototype), e.prototype.constructor = e, at(e, n); } function at(e, n) { return at = Object.setPrototypeOf || function (t, r) { return t.__proto__ = r, t; }, at(e, n); } var Yi = function (e) { Qi(n, e); function n(i) { var t; return t = e.call(this, i) || this, t.type = Ui.NESTING, t.value = "&", t; } return n; }(Ci.default); pe.default = Yi; nr.exports = pe.default; }); var sr = T((Ie, ir) => { "use strict"; Ie.__esModule = !0; Ie.default = Bi; function Bi(e) { return e.sort(function (n, i) { return n - i; }); } ir.exports = Ie.default; }); var ot = T(p => { "use strict"; p.__esModule = !0; p.combinator = p.word = p.comment = p.str = p.tab = p.newline = p.feed = p.cr = p.backslash = p.bang = p.slash = p.doubleQuote = p.singleQuote = p.space = p.greaterThan = p.pipe = p.equals = p.plus = p.caret = p.tilde = p.dollar = p.closeSquare = p.openSquare = p.closeParenthesis = p.openParenthesis = p.semicolon = p.colon = p.comma = p.at = p.asterisk = p.ampersand = void 0; var Gi = 38; p.ampersand = Gi; var Vi = 42; p.asterisk = Vi; var $i = 64; p.at = $i; var Hi = 44; p.comma = Hi; var Ki = 58; p.colon = Ki; var zi = 59; p.semicolon = zi; var Ji = 40; p.openParenthesis = Ji; var Xi = 41; p.closeParenthesis = Xi; var Zi = 91; p.openSquare = Zi; var ji = 93; p.closeSquare = ji; var es = 36; p.dollar = es; var ts = 126; p.tilde = ts; var rs = 94; p.caret = rs; var ns = 43; p.plus = ns; var is = 61; p.equals = is; var ss = 124; p.pipe = ss; var as = 62; p.greaterThan = as; var us = 32; p.space = us; var ar = 39; p.singleQuote = ar; var os = 34; p.doubleQuote = os; var cs = 47; p.slash = cs; var fs = 33; p.bang = fs; var ls = 92; p.backslash = ls; var hs = 13; p.cr = hs; var ps = 12; p.feed = ps; var ds = 10; p.newline = ds; var vs = 9; p.tab = vs; var _s = ar; p.str = _s; var Ss = -1; p.comment = Ss; var gs = -2; p.word = gs; var Ts = -3; p.combinator = Ts; }); var cr = T(de => { "use strict"; de.__esModule = !0; de.default = ks; de.FIELDS = void 0; var c = Os(ot()), H, y; function or() { if (typeof WeakMap != "function") return null; var e = new WeakMap; return or = function () { return e; }, e; } function Os(e) { if (e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; var n = or(); if (n && n.has(e)) return n.get(e); var i = {}, t = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { var s = t ? Object.getOwnPropertyDescriptor(e, r) : null; s && (s.get || s.set) ? Object.defineProperty(i, r, s) : i[r] = e[r]; } return i.default = e, n && n.set(e, i), i; } var ys = (H = {}, H[c.tab] = !0, H[c.newline] = !0, H[c.cr] = !0, H[c.feed] = !0, H), Es = (y = {}, y[c.space] = !0, y[c.tab] = !0, y[c.newline] = !0, y[c.cr] = !0, y[c.feed] = !0, y[c.ampersand] = !0, y[c.asterisk] = !0, y[c.bang] = !0, y[c.comma] = !0, y[c.colon] = !0, y[c.semicolon] = !0, y[c.openParenthesis] = !0, y[c.closeParenthesis] = !0, y[c.openSquare] = !0, y[c.closeSquare] = !0, y[c.singleQuote] = !0, y[c.doubleQuote] = !0, y[c.plus] = !0, y[c.pipe] = !0, y[c.tilde] = !0, y[c.greaterThan] = !0, y[c.equals] = !0, y[c.dollar] = !0, y[c.caret] = !0, y[c.slash] = !0, y), ct = {}, ur = "0123456789abcdefABCDEF"; for (qe = 0; qe < ur.length; qe++) ct[ur.charCodeAt(qe)] = !0; var qe; function ms(e, n) { var i = n, t; do { if (t = e.charCodeAt(i), Es[t]) return i - 1; t === c.backslash ? i = ws(e, i) + 1 : i++; } while (i < e.length); return i - 1; } function ws(e, n) { var i = n, t = e.charCodeAt(i + 1); if (!ys[t]) if (ct[t]) { var r = 0; do i++, r++, t = e.charCodeAt(i + 1); while (ct[t] && r < 6); r < 6 && t === c.space && i++; } else i++; return i; } var Ps = { TYPE: 0, START_LINE: 1, START_COL: 2, END_LINE: 3, END_COL: 4, START_POS: 5, END_POS: 6 }; de.FIELDS = Ps; function ks(e) { var n = [], i = e.css.valueOf(), t = i, r = t.length, s = -1, a = 1, u = 0, h = 0, l, d, S, O, v, E, A, x, _, I, q, b, D; function Y($, B) { if (e.safe) i += B, _ = i.length - 1; else throw e.error("Unclosed " + $, a, u - s, u); } for (; u < r;) { switch (l = i.charCodeAt(u), l === c.newline && (s = u, a += 1), l) { case c.space: case c.tab: case c.newline: case c.cr: case c.feed: _ = u; do _ += 1, l = i.charCodeAt(_), l === c.newline && (s = _, a += 1); while (l === c.space || l === c.newline || l === c.tab || l === c.cr || l === c.feed); D = c.space, O = a, S = _ - s - 1, h = _; break; case c.plus: case c.greaterThan: case c.tilde: case c.pipe: _ = u; do _ += 1, l = i.charCodeAt(_); while (l === c.plus || l === c.greaterThan || l === c.tilde || l === c.pipe); D = c.combinator, O = a, S = u - s, h = _; break; case c.asterisk: case c.ampersand: case c.bang: case c.comma: case c.equals: case c.dollar: case c.caret: case c.openSquare: case c.closeSquare: case c.colon: case c.semicolon: case c.openParenthesis: case c.closeParenthesis: _ = u, D = l, O = a, S = u - s, h = _ + 1; break; case c.singleQuote: case c.doubleQuote: b = l === c.singleQuote ? "'" : '"', _ = u; do for (v = !1, _ = i.indexOf(b, _ + 1), _ === -1 && Y("quote", b), E = _; i.charCodeAt(E - 1) === c.backslash;) E -= 1, v = !v; while (v); D = c.str, O = a, S = u - s, h = _ + 1; break; default: l === c.slash && i.charCodeAt(u + 1) === c.asterisk ? (_ = i.indexOf("*/", u + 2) + 1, _ === 0 && Y("comment", "*/"), d = i.slice(u, _ + 1), x = d.split(` `), A = x.length - 1, A > 0 ? (I = a + A, q = _ - x[A].length) : (I = a, q = s), D = c.comment, a = I, O = I, S = _ - q) : l === c.slash ? (_ = u, D = l, O = a, S = u - s, h = _ + 1) : (_ = ms(i, u), D = c.word, O = a, S = _ - s), h = _ + 1; break; } n.push([D, a, u - s, O, S, u, h]), q && (s = q, q = null), u = h; } return n; } }); var Sr = T((ve, _r) => { "use strict"; ve.__esModule = !0; ve.default = void 0; var Is = N(Me()), ft = N(Fe()), qs = N(Ce()), fr = N(We()), Ds = N(Ye()), Ls = N(Ve()), lt = N(He()), bs = N(ze()), lr = De(tt()), As = N(nt()), ht = N(st()), xs = N(ut()), Ms = N(sr()), o = De(cr()), f = De(ot()), Ns = De(L()), P = J(), G, pt; function vr() { if (typeof WeakMap != "function") return null; var e = new WeakMap; return vr = function () { return e; }, e; } function De(e) { if (e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; var n = vr(); if (n && n.has(e)) return n.get(e); var i = {}, t = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { var s = t ? Object.getOwnPropertyDescriptor(e, r) : null; s && (s.get || s.set) ? Object.defineProperty(i, r, s) : i[r] = e[r]; } return i.default = e, n && n.set(e, i), i; } function N(e) { return e && e.__esModule ? e : { default: e }; } function hr(e, n) { for (var i = 0; i < n.length; i++) { var t = n[i]; t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(e, t.key, t); } } function Fs(e, n, i) { return n && hr(e.prototype, n), i && hr(e, i), e; } var _t = (G = {}, G[f.space] = !0, G[f.cr] = !0, G[f.feed] = !0, G[f.newline] = !0, G[f.tab] = !0, G), Rs = Object.assign({}, _t, (pt = {}, pt[f.comment] = !0, pt)); function pr(e) { return { line: e[o.FIELDS.START_LINE], column: e[o.FIELDS.START_COL] }; } function dr(e) { return { line: e[o.FIELDS.END_LINE], column: e[o.FIELDS.END_COL] }; } function V(e, n, i, t) { return { start: { line: e, column: n }, end: { line: i, column: t } }; } function K(e) { return V(e[o.FIELDS.START_LINE], e[o.FIELDS.START_COL], e[o.FIELDS.END_LINE], e[o.FIELDS.END_COL]); } function dt(e, n) { if (!!e) return V(e[o.FIELDS.START_LINE], e[o.FIELDS.START_COL], n[o.FIELDS.END_LINE], n[o.FIELDS.END_COL]); } function z(e, n) { var i = e[n]; if (typeof i == "string") return i.indexOf("\\") !== -1 && ((0, P.ensureObject)(e, "raws"), e[n] = (0, P.unesc)(i), e.raws[n] === void 0 && (e.raws[n] = i)), e; } function vt(e, n) { for (var i = -1, t = []; (i = e.indexOf(n, i + 1)) !== -1;) t.push(i); return t; } function Cs() { var e = Array.prototype.concat.apply([], arguments); return e.filter(function (n, i) { return i === e.indexOf(n); }); } var Us = function () { function e(i, t) { t === void 0 && (t = {}), this.rule = i, this.options = Object.assign({ lossy: !1, safe: !1 }, t), this.position = 0, this.css = typeof this.rule == "string" ? this.rule : this.rule.selector, this.tokens = (0, o.default)({ css: this.css, error: this._errorGenerator(), safe: this.options.safe }); var r = dt(this.tokens[0], this.tokens[this.tokens.length - 1]); this.root = new Is.default({ source: r }), this.root.errorGenerator = this._errorGenerator(); var s = new ft.default({ source: { start: { line: 1, column: 1 } } }); this.root.append(s), this.current = s, this.loop(); } var n = e.prototype; return n._errorGenerator = function () { var t = this; return function (r, s) { return typeof t.rule == "string" ? new Error(r) : t.rule.error(r, s); }; }, n.attribute = function () { var t = [], r = this.currToken; for (this.position++; this.position < this.tokens.length && this.currToken[o.FIELDS.TYPE] !== f.closeSquare;) t.push(this.currToken), this.position++; if (this.currToken[o.FIELDS.TYPE] !== f.closeSquare) return this.expected("closing square bracket", this.currToken[o.FIELDS.START_POS]); var s = t.length, a = { source: V(r[1], r[2], this.currToken[3], this.currToken[4]), sourceIndex: r[o.FIELDS.START_POS] }; if (s === 1 && !~[f.word].indexOf(t[0][o.FIELDS.TYPE])) return this.expected("attribute", t[0][o.FIELDS.START_POS]); for (var u = 0, h = "", l = "", d = null, S = !1; u < s;) { var O = t[u], v = this.content(O), E = t[u + 1]; switch (O[o.FIELDS.TYPE]) { case f.space: if (S = !0, this.options.lossy) break; if (d) { (0, P.ensureObject)(a, "spaces", d); var A = a.spaces[d].after || ""; a.spaces[d].after = A + v; var x = (0, P.getProp)(a, "raws", "spaces", d, "after") || null; x && (a.raws.spaces[d].after = x + v); } else h = h + v, l = l + v; break; case f.asterisk: if (E[o.FIELDS.TYPE] === f.equals) a.operator = v, d = "operator"; else if ((!a.namespace || d === "namespace" && !S) && E) { h && ((0, P.ensureObject)(a, "spaces", "attribute"), a.spaces.attribute.before = h, h = ""), l && ((0, P.ensureObject)(a, "raws", "spaces", "attribute"), a.raws.spaces.attribute.before = h, l = ""), a.namespace = (a.namespace || "") + v; var _ = (0, P.getProp)(a, "raws", "namespace") || null; _ && (a.raws.namespace += v), d = "namespace"; } S = !1; break; case f.dollar: if (d === "value") { var I = (0, P.getProp)(a, "raws", "value"); a.value += "$", I && (a.raws.value = I + "$"); break; } case f.caret: E[o.FIELDS.TYPE] === f.equals && (a.operator = v, d = "operator"), S = !1; break; case f.combinator: if (v === "~" && E[o.FIELDS.TYPE] === f.equals && (a.operator = v, d = "operator"), v !== "|") { S = !1; break; } E[o.FIELDS.TYPE] === f.equals ? (a.operator = v, d = "operator") : !a.namespace && !a.attribute && (a.namespace = !0), S = !1; break; case f.word: if (E && this.content(E) === "|" && t[u + 2] && t[u + 2][o.FIELDS.TYPE] !== f.equals && !a.operator && !a.namespace) a.namespace = v, d = "namespace"; else if (!a.attribute || d === "attribute" && !S) { h && ((0, P.ensureObject)(a, "spaces", "attribute"), a.spaces.attribute.before = h, h = ""), l && ((0, P.ensureObject)(a, "raws", "spaces", "attribute"), a.raws.spaces.attribute.before = l, l = ""), a.attribute = (a.attribute || "") + v; var q = (0, P.getProp)(a, "raws", "attribute") || null; q && (a.raws.attribute += v), d = "attribute"; } else if (!a.value && a.value !== "" || d === "value" && !S) { var b = (0, P.unesc)(v), D = (0, P.getProp)(a, "raws", "value") || "", Y = a.value || ""; a.value = Y + b, a.quoteMark = null, (b !== v || D) && ((0, P.ensureObject)(a, "raws"), a.raws.value = (D || Y) + v), d = "value"; } else { var $ = v === "i" || v === "I"; (a.value || a.value === "") && (a.quoteMark || S) ? (a.insensitive = $, (!$ || v === "I") && ((0, P.ensureObject)(a, "raws"), a.raws.insensitiveFlag = v), d = "insensitive", h && ((0, P.ensureObject)(a, "spaces", "insensitive"), a.spaces.insensitive.before = h, h = ""), l && ((0, P.ensureObject)(a, "raws", "spaces", "insensitive"), a.raws.spaces.insensitive.before = l, l = "")) : (a.value || a.value === "") && (d = "value", a.value += v, a.raws.value && (a.raws.value += v)); } S = !1; break; case f.str: if (!a.attribute || !a.operator) return this.error("Expected an attribute followed by an operator preceding the string.", { index: O[o.FIELDS.START_POS] }); var B = (0, lr.unescapeValue)(v), Lr = B.unescaped, br = B.quoteMark; a.value = Lr, a.quoteMark = br, d = "value", (0, P.ensureObject)(a, "raws"), a.raws.value = v, S = !1; break; case f.equals: if (!a.attribute) return this.expected("attribute", O[o.FIELDS.START_POS], v); if (a.value) return this.error('Unexpected "=" found; an operator was already defined.', { index: O[o.FIELDS.START_POS] }); a.operator = a.operator ? a.operator + v : v, d = "operator", S = !1; break; case f.comment: if (d) if (S || E && E[o.FIELDS.TYPE] === f.space || d === "insensitive") { var Ar = (0, P.getProp)(a, "spaces", d, "after") || "", xr = (0, P.getProp)(a, "raws", "spaces", d, "after") || Ar; (0, P.ensureObject)(a, "raws", "spaces", d), a.raws.spaces[d].after = xr + v; } else { var Mr = a[d] || "", Nr = (0, P.getProp)(a, "raws", d) || Mr; (0, P.ensureObject)(a, "raws"), a.raws[d] = Nr + v; } else l = l + v; break; default: return this.error('Unexpected "' + v + '" found.', { index: O[o.FIELDS.START_POS] }); } u++; } z(a, "attribute"), z(a, "namespace"), this.newNode(new lr.default(a)), this.position++; }, n.parseWhitespaceEquivalentTokens = function (t) { t < 0 && (t = this.tokens.length); var r = this.position, s = [], a = "", u = void 0; do if (_t[this.currToken[o.FIELDS.TYPE]]) this.options.lossy || (a += this.content()); else if (this.currToken[o.FIELDS.TYPE] === f.comment) { var h = {}; a && (h.before = a, a = ""), u = new fr.default({ value: this.content(), source: K(this.currToken), sourceIndex: this.currToken[o.FIELDS.START_POS], spaces: h }), s.push(u); } while (++this.position < t); if