1import { a as e, o as t, t as n } from "./rolldown-runtime-DAXXjFlN.js"; 2import { n as r, t as i } from "./dist-DUC9kpkj.js"; 3import { t as a } from "./preload-helper-CtT0-S4g.js"; 4import { n as o } from "./base64-oxnRbpjD.js"; 5import { a as s, c, i as l, t as u } from "./lib-BfAoLx_4.js"; 6import { t as d } from "./path-browserify-BXFVjck0.js"; 7let L, g, R, m, J, w, K, v, Y, p; 8let __tla = (async () => { 9 var f = t(d(), 1); 10 p = function(e2) { 11 try { 12 let t2 = new URL(e2); 13 return t2.protocol === `http:` || t2.protocol === `https:`; 14 } catch { 15 return false; 16 } 17 }; 18 m = async function(e2, t2, n2, r2 = {}) { 19 let i2; 20 if (e2.startsWith(`.`) || e2.startsWith(`/`)) return g(e2, t2, n2, r2); 21 if (n2 === `plugin`) { 22 e2.startsWith(`http`) || (e2 = `https://esm.sh/${e2}`); 23 try { 24 i2 = await h(e2, t2, n2); 25 } catch (t3) { 26 throw t3 instanceof Error ? Error(`The ${n2} file "${e2}" could not be loaded. ${t3.message}`) : Error(`The ${n2} file "${e2}" could not be loaded.`); 27 } 28 } 29 if (!i2) throw Error(`The ${n2} file "${e2}" is not a valid module.`); 30 return { 31 module: i2, 32 base: t2 33 }; 34 }; 35 async function h(e2, t2, n2) { 36 return await a(() => import(e2).then(async (m2) => { 37 await m2.__tla; 38 return m2; 39 }).then((e3) => e3.default ?? e3), [], import.meta.url); 40 } 41 g = async function(e2, t2 = `/`, n2, r2 = {}) { 42 t2 ?? (t2 = `/`); 43 let i2 = f.default.resolve(t2, e2); 44 if (!r2[i2]) throw Error(`The ${n2} file "${f.default.resolve(`/`, e2)}" does not exist in the volume.`); 45 let s2 = _(r2[i2], e2, r2); 46 return { 47 module: await a(() => import(`data:text/javascript;base64,${o(s2)}`).then(async (m2) => { 48 await m2.__tla; 49 return m2; 50 }).then((e3) => e3.default ?? e3), [], import.meta.url), 51 base: f.default.dirname(e2) 52 }; 53 }; 54 function _(e2, t2, n2 = {}) { 55 let r2 = e2.replace(/module.exports\s*=\s*/, `export default `).replace(/import\s+({[^}]+})\s+from\s+['"](.+)['"]/g, (e3, t3, n3) => `import ${t3.replace(/\n/g, ``)} from '${n3}'`).split(` 56`).map((e3) => e3.replace(/\bimport\s+(.+)\s+from\s+['"](.+)['"]/g, (e4, t3, n3) => (!n3.startsWith(`http`) && !n3.startsWith(`.`) && !n3.startsWith(`/`) && (n3 = `https://esm.sh/${n3}`), `const ${t3.indexOf(`{`) === -1 ? `{default: ${t3}}` : t3.replace(/\s+as\s+/, `: `)} = await import('${n3}')`)).replace(/\brequire\(['"]([^'"]*)['"]\)/g, (e4, t3) => (!t3.startsWith(`http`) && !t3.startsWith(`.`) && !t3.startsWith(`/`) && (t3 = `https://esm.sh/${t3}`), `(await import('${t3}')).default`))).join(` 57`), i2 = /import\s*(?:[^'"]*\s*from\s*)?['"]([^'"]+)['"]|import\(\s*['"]([^'"]+)['"]\s*\)/g, a2 = [], o2, s2 = 0; 58 for (; (o2 = i2.exec(r2)) !== null; ) { 59 let [e3, r3, i3] = o2, s3 = r3 || i3; 60 if (p(s3) || !s3.startsWith(`.`) && !s3.startsWith(`/`)) continue; 61 let c2 = f.default.resolve(f.default.dirname(t2), s3); 62 if (!n2[c2]) throw Error(`${t2}: The module file "${c2}" does not exist in the volume.`); 63 a2.push({ 64 start: o2.index + e3.indexOf(s3), 65 end: o2.index + e3.indexOf(s3) + s3.length, 66 replacement: new URL(s3, window.windpress.user_data.data_dir.url).href 67 }); 68 } 69 return a2.forEach(({ start: e3, end: t3, replacement: n3 }) => { 70 r2 = r2.slice(0, e3 + s2) + n3 + r2.slice(t3 + s2), s2 += n3.length - (t3 - e3); 71 }), r2; 72 } 73 let y, b, x, S, C, T, E, D, O, k, A, j, M, N, P, F, I, z, B, V, H, U, W, G, q; 74 v = n(((e2, t2) => { 75 var n2 = String, r2 = function() { 76 return { 77 isColorSupported: false, 78 reset: n2, 79 bold: n2, 80 dim: n2, 81 italic: n2, 82 underline: n2, 83 inverse: n2, 84 hidden: n2, 85 strikethrough: n2, 86 black: n2, 87 red: n2, 88 green: n2, 89 yellow: n2, 90 blue: n2, 91 magenta: n2, 92 cyan: n2, 93 white: n2, 94 gray: n2, 95 bgBlack: n2, 96 bgRed: n2, 97 bgGreen: n2, 98 bgYellow: n2, 99 bgBlue: n2, 100 bgMagenta: n2, 101 bgCyan: n2, 102 bgWhite: n2, 103 blackBright: n2, 104 redBright: n2, 105 greenBright: n2, 106 yellowBright: n2, 107 blueBright: n2, 108 magentaBright: n2, 109 cyanBright: n2, 110 whiteBright: n2, 111 bgBlackBright: n2, 112 bgRedBright: n2, 113 bgGreenBright: n2, 114 bgYellowBright: n2, 115 bgBlueBright: n2, 116 bgMagentaBright: n2, 117 bgCyanBright: n2, 118 bgWhiteBright: n2 119 }; 120 }; 121 t2.exports = r2(), t2.exports.createColors = r2; 122 })); 123 y = n(((e2, t2) => {
vendor: 61,249 bytes, lines 124-1724
124 var n2 = v(), r2 = c(), i2 = class e3 extends Error { 125 constructor(t3, n3, r3, i3, a2, o2) { 126 super(t3), this.name = `CssSyntaxError`, this.reason = t3, a2 && (this.file = a2), i3 && (this.source = i3), o2 && (this.plugin = o2), n3 !== void 0 && r3 !== void 0 && (typeof n3 == `number` ? (this.line = n3, this.column = r3) : (this.line = n3.line, this.column = n3.column, this.endLine = r3.line, this.endColumn = r3.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, e3); 127 } 128 setMessage() { 129 this.message = this.plugin ? this.plugin + `: ` : ``, this.message += this.file ? this.file : `<css input>`, this.line !== void 0 && (this.message += `:` + this.line + `:` + this.column), this.message += `: ` + this.reason; 130 } 131 showSourceCode(e4) { 132 if (!this.source) return ``; 133 let t3 = this.source; 134 e4 ?? (e4 = n2.isColorSupported); 135 let i3 = (e5) => e5, a2 = (e5) => e5, o2 = (e5) => e5; 136 if (e4) { 137 let { bold: e5, gray: t4, red: s3 } = n2.createColors(true); 138 a2 = (t5) => e5(s3(t5)), i3 = (e6) => t4(e6), r2 && (o2 = (e6) => r2(e6)); 139 } 140 let s2 = t3.split(/\r?\n/), c2 = Math.max(this.line - 3, 0), l2 = Math.min(this.line + 2, s2.length), u2 = String(l2).length; 141 return s2.slice(c2, l2).map((e5, t4) => { 142 let n3 = c2 + 1 + t4, r3 = ` ` + (` ` + n3).slice(-u2) + ` | `; 143 if (n3 === this.line) { 144 if (e5.length > 160) { 145 let t6 = Math.max(0, this.column - 20), n4 = Math.max(this.column + 20, this.endColumn + 20), s3 = e5.slice(t6, n4), c3 = i3(r3.replace(/\d/g, ` `)) + e5.slice(0, Math.min(this.column - 1, 19)).replace(/[^\t]/g, ` `); 146 return a2(`>`) + i3(r3) + o2(s3) + ` 147 ` + c3 + a2(`^`); 148 } 149 let t5 = i3(r3.replace(/\d/g, ` `)) + e5.slice(0, this.column - 1).replace(/[^\t]/g, ` `); 150 return a2(`>`) + i3(r3) + o2(e5) + ` 151 ` + t5 + a2(`^`); 152 } 153 return ` ` + i3(r3) + o2(e5); 154 }).join(` 155`); 156 } 157 toString() { 158 let e4 = this.showSourceCode(); 159 return e4 && (e4 = ` 160 161` + e4 + ` 162`), this.name + `: ` + this.message + e4; 163 } 164 }; 165 t2.exports = i2, i2.default = i2; 166 })); 167 b = n(((e2, t2) => { 168 var n2 = /(<)(\/?style\b)/gi, r2 = /(<)(!--)/g; 169 function i2(e3) { 170 return typeof e3 != `string` || !e3.includes(`<`) ? e3 : e3.replace(n2, `\\3c $2`).replace(r2, `\\3c $2`); 171 } 172 var a2 = { 173 after: ` 174`, 175 beforeClose: ` 176`, 177 beforeComment: ` 178`, 179 beforeDecl: ` 180`, 181 beforeOpen: ` `, 182 beforeRule: ` 183`, 184 colon: `: `, 185 commentLeft: ` `, 186 commentRight: ` `, 187 emptyBody: ``, 188 indent: ` `, 189 semicolon: false 190 }; 191 function o2(e3) { 192 return e3[0].toUpperCase() + e3.slice(1); 193 } 194 function s2(e3, t3) { 195 let n3 = `@` + t3.name, r3 = t3.params ? e3.rawValue(t3, `params`) : ``; 196 return t3.raws.afterName === void 0 ? r3 && (n3 += ` `) : n3 += t3.raws.afterName, n3 + r3; 197 } 198 function c2(e3, t3, n3) { 199 let r3 = n3.nodes, i3 = r3.length - 1; 200 for (; i3 > 0 && r3[i3].type === `comment`; ) --i3; 201 let a3 = e3.raw(n3, `semicolon`), o3 = n3.type === `document`; 202 for (let e4 = r3.length - 1; e4 >= 0; e4--) t3.push({ 203 document: o3, 204 node: r3[e4], 205 semicolon: i3 !== e4 || a3 206 }); 207 } 208 function l2(e3, t3, n3, r3) { 209 let a3 = e3.raw(n3, `between`, `beforeOpen`); 210 e3.builder(i2(r3 + a3) + `{`, n3, `start`); 211 let o3 = n3.nodes && n3.nodes.length, s3 = () => { 212 let t4 = o3 ? e3.raw(n3, `after`) : e3.raw(n3, `after`, `emptyBody`); 213 t4 && e3.builder(i2(t4)), e3.builder(`}`, n3, `end`), n3.type === `rule` && n3.raws.ownSemicolon && e3.builder(i2(n3.raws.ownSemicolon), n3, `end`); 214 }; 215 o3 ? (t3.push(s3), c2(e3, t3, n3)) : s3(); 216 } 217 var u2 = class e3 { 218 constructor(e4) { 219 this.builder = e4; 220 } 221 atrule(e4, t3) { 222 let n3 = s2(this, e4); 223 if (e4.nodes) this.block(e4, n3); 224 else { 225 let r3 = (e4.raws.between || ``) + (t3 ? `;` : ``); 226 this.builder(i2(n3 + r3), e4); 227 } 228 } 229 beforeAfter(e4, t3) { 230 let n3; 231 n3 = e4.type === `decl` ? this.raw(e4, null, `beforeDecl`) : e4.type === `comment` ? this.raw(e4, null, `beforeComment`) : t3 === `before` ? this.raw(e4, null, `beforeRule`) : this.raw(e4, null, `beforeClose`); 232 let r3 = e4.parent, i3 = 0; 233 for (; r3 && r3.type !== `root`; ) i3 += 1, r3 = r3.parent; 234 if (n3.includes(` 235`)) { 236 let t4 = this.raw(e4, null, `indent`); 237 if (t4.length) for (let e5 = 0; e5 < i3; e5++) n3 += t4; 238 } 239 return n3; 240 } 241 block(e4, t3) { 242 let n3 = this.raw(e4, `between`, `beforeOpen`); 243 this.builder(i2(t3 + n3) + `{`, e4, `start`); 244 let r3; 245 e4.nodes && e4.nodes.length ? (this.body(e4), r3 = this.raw(e4, `after`)) : r3 = this.raw(e4, `after`, `emptyBody`), r3 && this.builder(i2(r3)), this.builder(`}`, e4, `end`); 246 } 247 body(t3) { 248 let n3 = e3.prototype, r3 = [ 249 `atrule`, 250 `block`, 251 `body`, 252 `rule`, 253 `stringify` 254 ].every((e4) => this[e4] === n3[e4]), a3 = []; 255 for (c2(this, a3, t3); a3.length > 0; ) { 256 let e4 = a3.pop(); 257 if (typeof e4 == `function`) { 258 e4(); 259 continue; 260 } 261 let t4 = e4.node, n4 = this.raw(t4, `before`); 262 n4 && this.builder(e4.document ? n4 : i2(n4)), r3 && t4.type === `rule` ? l2(this, a3, t4, this.rawValue(t4, `selector`)) : r3 && t4.type === `atrule` && t4.nodes ? l2(this, a3, t4, s2(this, t4)) : this.stringify(t4, e4.semicolon); 263 } 264 } 265 comment(e4) { 266 let t3 = this.raw(e4, `left`, `commentLeft`), n3 = this.raw(e4, `right`, `commentRight`); 267 this.builder(i2(`/*` + t3 + e4.text + n3 + `*/`), e4); 268 } 269 decl(e4, t3) { 270 let n3 = e4.raws, r3 = this.raw(e4, `between`, `colon`), a3 = e4.prop + r3 + this.rawValue(e4, `value`); 271 e4.important && (a3 += n3.important || ` !important`), t3 && (a3 += `;`), this.builder(i2(a3), e4); 272 } 273 document(e4) { 274 this.body(e4); 275 } 276 raw(e4, t3, n3) { 277 let r3; 278 if (n3 || (n3 = t3), t3 && (r3 = e4.raws[t3], r3 !== void 0)) return r3; 279 let i3 = e4.parent; 280 if (n3 === `before` && (!i3 || i3.type === `root` && i3.first === e4 || i3 && i3.type === `document`)) return ``; 281 if (!i3) return a2[n3]; 282 let s3 = e4.root(), c3 = s3.rawCache || (s3.rawCache = {}); 283 if (c3[n3] !== void 0) return c3[n3]; 284 if (n3 === `before` || n3 === `after`) return this.beforeAfter(e4, n3); 285 { 286 let i4 = `raw` + o2(n3); 287 this[i4] ? r3 = this[i4](s3, e4) : s3.walk((e5) => { 288 if (r3 = e5.raws[t3], r3 !== void 0) return false; 289 }); 290 } 291 return r3 === void 0 && (r3 = a2[n3]), c3[n3] = r3, r3; 292 } 293 rawBeforeClose(e4) { 294 let t3; 295 return e4.walk((e5) => { 296 if (e5.nodes && e5.nodes.length > 0 && e5.raws.after !== void 0) return t3 = e5.raws.after, t3.includes(` 297`) && (t3 = t3.replace(/[^\n]+$/, ``)), false; 298 }), t3 && (t3 = t3.replace(/\S/g, ``)), t3; 299 } 300 rawBeforeComment(e4, t3) { 301 let n3; 302 return e4.walkComments((e5) => { 303 if (e5.raws.before !== void 0) return n3 = e5.raws.before, n3.includes(` 304`) && (n3 = n3.replace(/[^\n]+$/, ``)), false; 305 }), n3 === void 0 ? n3 = this.raw(t3, null, `beforeDecl`) : n3 && (n3 = n3.replace(/\S/g, ``)), n3; 306 } 307 rawBeforeDecl(e4, t3) { 308 let n3; 309 return e4.walkDecls((e5) => { 310 if (e5.raws.before !== void 0) return n3 = e5.raws.before, n3.includes(` 311`) && (n3 = n3.replace(/[^\n]+$/, ``)), false; 312 }), n3 === void 0 ? n3 = this.raw(t3, null, `beforeRule`) : n3 && (n3 = n3.replace(/\S/g, ``)), n3; 313 } 314 rawBeforeOpen(e4) { 315 let t3; 316 return e4.walk((e5) => { 317 if (e5.type !== `decl` && (t3 = e5.raws.between, t3 !== void 0)) return false; 318 }), t3; 319 } 320 rawBeforeRule(e4) { 321 let t3; 322 return e4.walk((n3) => { 323 if (n3.nodes && (n3.parent !== e4 || e4.first !== n3) && n3.raws.before !== void 0) return t3 = n3.raws.before, t3.includes(` 324`) && (t3 = t3.replace(/[^\n]+$/, ``)), false; 325 }), t3 && (t3 = t3.replace(/\S/g, ``)), t3; 326 } 327 rawColon(e4) { 328 let t3; 329 return e4.walkDecls((e5) => { 330 if (e5.raws.between !== void 0) return t3 = e5.raws.between.replace(/[^\s:]/g, ``), false; 331 }), t3; 332 } 333 rawEmptyBody(e4) { 334 let t3; 335 return e4.walk((e5) => { 336 if (e5.nodes && e5.nodes.length === 0 && (t3 = e5.raws.after, t3 !== void 0)) return false; 337 }), t3; 338 } 339 rawIndent(e4) { 340 if (e4.raws.indent) return e4.raws.indent; 341 let t3; 342 return e4.walk((n3) => { 343 let r3 = n3.parent; 344 if (r3 && r3 !== e4 && r3.parent && r3.parent === e4 && n3.raws.before !== void 0) { 345 let e5 = n3.raws.before.split(` 346`); 347 return t3 = e5[e5.length - 1], t3 = t3.replace(/\S/g, ``), false; 348 } 349 }), t3; 350 } 351 rawSemicolon(e4) { 352 let t3; 353 return e4.walk((e5) => { 354 if (e5.nodes && e5.nodes.length && e5.last.type === `decl` && (t3 = e5.raws.semicolon, t3 !== void 0)) return false; 355 }), t3; 356 } 357 rawValue(e4, t3) { 358 let n3 = e4[t3], r3 = e4.raws[t3]; 359 return r3 && r3.value === n3 ? r3.raw : n3; 360 } 361 root(e4) { 362 if (this.body(e4), e4.raws.after) { 363 let t3 = e4.raws.after, n3 = e4.parent && e4.parent.type === `document`; 364 this.builder(n3 ? t3 : i2(t3)); 365 } 366 } 367 rule(e4) { 368 this.block(e4, this.rawValue(e4, `selector`)), e4.raws.ownSemicolon && this.builder(i2(e4.raws.ownSemicolon), e4, `end`); 369 } 370 stringify(e4, t3) { 371 if (!this[e4.type]) throw Error(`Unknown AST node type ` + e4.type + `. Maybe you need to change PostCSS stringifier.`); 372 this[e4.type](e4, t3); 373 } 374 }; 375 t2.exports = u2, u2.default = u2; 376 })); 377 x = n(((e2, t2) => { 378 var n2 = b(); 379 function r2(e3, t3) { 380 new n2(t3).stringify(e3); 381 } 382 t2.exports = r2, r2.default = r2; 383 })); 384 S = n(((e2, t2) => { 385 t2.exports.isClean = /* @__PURE__ */ Symbol(`isClean`), t2.exports.my = /* @__PURE__ */ Symbol(`my`); 386 })); 387 C = n(((e2, t2) => { 388 var n2 = y(), r2 = b(), i2 = x(), { isClean: a2, my: o2 } = S(); 389 function s2(e3, t3) { 390 let n3 = new e3.constructor(), r3 = [ 391 [ 392 e3, 393 n3, 394 t3 395 ] 396 ]; 397 for (; r3.length > 0; ) { 398 let [e4, t4, n4] = r3.pop(); 399 for (let i3 in e4) { 400 if (!Object.prototype.hasOwnProperty.call(e4, i3) || i3 === `proxyCache`) continue; 401 let a3 = e4[i3], o3 = typeof a3; 402 if (i3 === `parent` && o3 === `object`) n4 && (t4[i3] = n4); 403 else if (i3 === `source`) t4[i3] = a3; 404 else if (Array.isArray(a3)) { 405 let e5 = []; 406 t4[i3] = e5; 407 for (let n5 of a3) { 408 let i4 = new n5.constructor(); 409 e5.push(i4), r3.push([ 410 n5, 411 i4, 412 t4 413 ]); 414 } 415 } else { 416 if (o3 === `object` && a3 !== null) { 417 let e5 = new a3.constructor(); 418 r3.push([ 419 a3, 420 e5, 421 void 0 422 ]), a3 = e5; 423 } 424 t4[i3] = a3; 425 } 426 } 427 } 428 return n3; 429 } 430 function c2(e3, t3) { 431 if (t3 && t3.offset !== void 0) return t3.offset; 432 let n3 = 1, r3 = 1, i3 = 0; 433 for (let a3 = 0; a3 < e3.length; a3++) { 434 if (r3 === t3.line && n3 === t3.column) { 435 i3 = a3; 436 break; 437 } 438 e3[a3] === ` 439` ? (n3 = 1, r3 += 1) : n3 += 1; 440 } 441 return i3; 442 } 443 var l2 = class e3 { 444 get proxyOf() { 445 return this; 446 } 447 constructor(e4 = {}) { 448 this.raws = {}, this[a2] = false, this[o2] = true; 449 for (let t3 of Object.keys(e4)) if (t3 !== `__proto__`) if (t3 === `nodes`) { 450 this.nodes = []; 451 for (let n3 of e4[t3]) typeof n3.clone == `function` && n3.parent ? this.append(n3.clone()) : this.append(n3); 452 } else this[t3] = e4[t3]; 453 } 454 addToError(e4) { 455 if (e4.postcssNode = this, e4.stack && this.source && /\n\s{4}at /.test(e4.stack)) { 456 let t3 = this.source; 457 e4.stack = e4.stack.replace(/\n\s{4}at /, `$&${t3.input.from}:${t3.start.line}:${t3.start.column}$&`); 458 } 459 return e4; 460 } 461 after(e4) { 462 return this.parent.insertAfter(this, e4), this; 463 } 464 assign(e4 = {}) { 465 for (let t3 in e4) this[t3] = e4[t3]; 466 return this; 467 } 468 before(e4) { 469 return this.parent.insertBefore(this, e4), this; 470 } 471 cleanRaws(e4) { 472 delete this.raws.before, delete this.raws.after, e4 || delete this.raws.between; 473 } 474 clone(e4 = {}) { 475 let t3 = s2(this); 476 for (let n3 in e4) t3[n3] = e4[n3]; 477 return t3; 478 } 479 cloneAfter(e4 = {}) { 480 let t3 = this.clone(e4); 481 return this.parent.insertAfter(this, t3), t3; 482 } 483 cloneBefore(e4 = {}) { 484 let t3 = this.clone(e4); 485 return this.parent.insertBefore(this, t3), t3; 486 } 487 error(e4, t3 = {}) { 488 if (this.source) { 489 let { end: n3, start: r3 } = this.rangeBy(t3); 490 return this.source.input.error(e4, { 491 column: r3.column, 492 line: r3.line 493 }, { 494 column: n3.column, 495 line: n3.line 496 }, t3); 497 } 498 return new n2(e4); 499 } 500 getProxyProcessor() { 501 return { 502 get(e4, t3) { 503 return t3 === `proxyOf` ? e4 : t3 === `root` ? () => e4.root().toProxy() : e4[t3]; 504 }, 505 set(e4, t3, n3) { 506 return e4[t3] === n3 ? true : (e4[t3] = n3, (t3 === `prop` || t3 === `value` || t3 === `name` || t3 === `params` || t3 === `important` || t3 === `text`) && e4.markDirty(), true); 507 } 508 }; 509 } 510 markClean() { 511 this[a2] = true; 512 } 513 markDirty() { 514 if (this[a2]) { 515 this[a2] = false; 516 let e4 = this; 517 for (; e4 = e4.parent; ) e4[a2] = false; 518 } 519 } 520 next() { 521 if (!this.parent) return; 522 let e4 = this.parent.index(this); 523 return this.parent.nodes[e4 + 1]; 524 } 525 positionBy(e4 = {}) { 526 let t3 = `document` in this.source.input ? this.source.input.document : this.source.input.css, n3 = { 527 column: this.source.start.column, 528 line: this.source.start.line, 529 offset: c2(t3, this.source.start) 530 }; 531 if (e4.index) n3 = this.positionInside(e4.index); 532 else if (e4.word) { 533 let r3 = t3.slice(c2(t3, this.source.start), c2(t3, this.source.end)).indexOf(e4.word); 534 r3 !== -1 && (n3 = this.positionInside(r3)); 535 } 536 return n3; 537 } 538 positionInside(e4) { 539 let t3 = this.source.start.column, n3 = this.source.start.line, r3 = `document` in this.source.input ? this.source.input.document : this.source.input.css, i3 = c2(r3, this.source.start), a3 = i3 + e4; 540 for (let e5 = i3; e5 < a3; e5++) r3[e5] === ` 541` ? (t3 = 1, n3 += 1) : t3 += 1; 542 return { 543 column: t3, 544 line: n3, 545 offset: a3 546 }; 547 } 548 prev() { 549 if (!this.parent) return; 550 let e4 = this.parent.index(this); 551 return this.parent.nodes[e4 - 1]; 552 } 553 rangeBy(e4 = {}) { 554 let t3 = `document` in this.source.input ? this.source.input.document : this.source.input.css, n3 = { 555 column: this.source.start.column, 556 line: this.source.start.line, 557 offset: c2(t3, this.source.start) 558 }, r3 = this.source.end ? { 559 column: this.source.end.column + 1, 560 line: this.source.end.line, 561 offset: typeof this.source.end.offset == `number` ? this.source.end.offset : c2(t3, this.source.end) + 1 562 } : { 563 column: n3.column + 1, 564 line: n3.line, 565 offset: n3.offset + 1 566 }; 567 if (e4.word) { 568 let i3 = t3.slice(c2(t3, this.source.start), c2(t3, this.source.end)).indexOf(e4.word); 569 i3 !== -1 && (n3 = this.positionInside(i3), r3 = this.positionInside(i3 + e4.word.length)); 570 } else e4.start ? n3 = { 571 column: e4.start.column, 572 line: e4.start.line, 573 offset: c2(t3, e4.start) 574 } : typeof e4.index == `number` && (n3 = this.positionInside(e4.index)), e4.end ? r3 = { 575 column: e4.end.column, 576 line: e4.end.line, 577 offset: c2(t3, e4.end) 578 } : typeof e4.endIndex == `number` ? r3 = this.positionInside(e4.endIndex) : typeof e4.index == `number` && (r3 = this.positionInside(e4.index + 1)); 579 return (r3.line < n3.line || r3.line === n3.line && r3.column <= n3.column) && (r3 = { 580 column: n3.column + 1, 581 line: n3.line, 582 offset: n3.offset + 1 583 }), { 584 end: r3, 585 start: n3 586 }; 587 } 588 raw(e4, t3) { 589 return new r2().raw(this, e4, t3); 590 } 591 remove() { 592 return this.parent && this.parent.removeChild(this), this.parent = void 0, this; 593 } 594 replaceWith(...e4) { 595 if (this.parent) { 596 let t3 = this, n3 = false; 597 for (let r3 of e4) r3 === this ? n3 = true : n3 ? (this.parent.insertAfter(t3, r3), t3 = r3) : this.parent.insertBefore(t3, r3); 598 n3 || this.remove(); 599 } 600 return this; 601 } 602 root() { 603 let e4 = this; 604 for (; e4.parent && e4.parent.type !== `document`; ) e4 = e4.parent; 605 return e4; 606 } 607 toJSON(t3, n3) { 608 let r3 = n3 == null; 609 n3 || (n3 = /* @__PURE__ */ new Map()); 610 let i3 = [], a3 = [ 611 [ 612 this, 613 i3, 614 0 615 ] 616 ]; 617 for (let t4 = 0; t4 < a3.length; t4++) { 618 let [r4, i4, o4] = a3[t4], s3 = {}; 619 i4[o4] = s3; 620 for (let t5 in r4) { 621 if (!Object.prototype.hasOwnProperty.call(r4, t5) || t5 === `parent` || t5 === `proxyCache`) continue; 622 let i5 = r4[t5]; 623 if (Array.isArray(i5)) { 624 let r5 = []; 625 s3[t5] = r5; 626 for (let t6 = 0; t6 < i5.length; t6++) { 627 let o5 = i5[t6]; 628 typeof o5 == `object` && o5.toJSON ? o5.toJSON === e3.prototype.toJSON ? a3.push([ 629 o5, 630 r5, 631 t6 632 ]) : r5[t6] = o5.toJSON(null, n3) : r5[t6] = o5; 633 } 634 } else if (typeof i5 == `object` && i5.toJSON) i5.toJSON === e3.prototype.toJSON ? a3.push([ 635 i5, 636 s3, 637 t5 638 ]) : s3[t5] = i5.toJSON(null, n3); 639 else if (t5 === `source`) { 640 if (i5 == null) continue; 641 let e4 = n3.get(i5.input); 642 e4 ?? (e4 = n3.size, n3.set(i5.input, e4)), s3[t5] = { 643 end: i5.end, 644 inputId: e4, 645 start: i5.start 646 }; 647 } else s3[t5] = i5; 648 } 649 } 650 let o3 = i3[0]; 651 return r3 && (o3.inputs = [ 652 ...n3.keys() 653 ].map((e4) => e4.toJSON())), o3; 654 } 655 toProxy() { 656 return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache; 657 } 658 toString(e4 = i2) { 659 e4.stringify && (e4 = e4.stringify); 660 let t3 = ``; 661 return e4(this, (e5) => { 662 t3 += e5; 663 }), t3; 664 } 665 warn(e4, t3, n3 = {}) { 666 let r3 = { 667 node: this 668 }; 669 for (let e5 in n3) r3[e5] = n3[e5]; 670 return e4.warn(t3, r3); 671 } 672 }; 673 t2.exports = l2, l2.default = l2; 674 })); 675 w = n(((e2, t2) => { 676 var n2 = C(), r2 = class extends n2 { 677 constructor(e3) { 678 super(e3), this.type = `comment`; 679 } 680 }; 681 t2.exports = r2, r2.default = r2; 682 })); 683 T = n(((e2, t2) => { 684 var n2 = C(), r2 = class extends n2 { 685 get variable() { 686 return this.prop.startsWith(`--`) || this.prop[0] === `$`; 687 } 688 constructor(e3) { 689 e3 && e3.value !== void 0 && typeof e3.value != `string` && (e3 = { 690 ...e3, 691 value: String(e3.value) 692 }), super(e3), this.type = `decl`; 693 } 694 }; 695 t2.exports = r2, r2.default = r2; 696 })); 697 E = n(((e2, t2) => { 698 var n2 = w(), r2 = T(), i2 = C(), { isClean: a2, my: o2 } = S(), s2, c2, l2, u2; 699 function d2(e3) { 700 let t3 = e3.slice(); 701 for (; t3.length > 0; ) { 702 let e4 = t3.pop(); 703 if (delete e4.source, e4.nodes) { 704 e4.nodes = e4.nodes.slice(); 705 for (let n3 of e4.nodes) t3.push(n3); 706 } 707 } 708 return e3.slice(); 709 } 710 function f2(e3) { 711 let t3 = [ 712 e3 713 ]; 714 for (; t3.length > 0; ) { 715 let e4 = t3.pop(); 716 if (e4[a2] = false, e4.proxyOf.nodes) for (let n3 of e4.proxyOf.nodes) t3.push(n3); 717 } 718 } 719 var p2 = class e3 extends i2 { 720 get first() { 721 if (this.proxyOf.nodes) return this.proxyOf.nodes[0]; 722 } 723 get last() { 724 if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1]; 725 } 726 append(...e4) { 727 for (let t3 of e4) { 728 let e5 = this.normalize(t3, this.last); 729 for (let t4 of e5) this.proxyOf.nodes.push(t4); 730 } 731 return this.markDirty(), this; 732 } 733 cleanRaws(t3) { 734 let n3 = [ 735 this 736 ]; 737 for (; n3.length > 0; ) { 738 let r3 = n3.pop(); 739 if (r3 !== this && r3.cleanRaws !== e3.prototype.cleanRaws) { 740 r3.cleanRaws(t3); 741 continue; 742 } 743 if (i2.prototype.cleanRaws.call(r3, t3), r3.nodes) for (let e4 of r3.nodes) n3.push(e4); 744 } 745 } 746 each(e4) { 747 if (!this.proxyOf.nodes) return; 748 let t3 = this.getIterator(), n3, r3; 749 for (; this.indexes[t3] < this.proxyOf.nodes.length && (n3 = this.indexes[t3], r3 = e4(this.proxyOf.nodes[n3], n3), r3 !== false); ) this.indexes[t3] += 1; 750 return delete this.indexes[t3], r3; 751 } 752 every(e4) { 753 return this.nodes.every(e4); 754 } 755 getIterator() { 756 this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1; 757 let e4 = this.lastEach; 758 return this.indexes[e4] = 0, e4; 759 } 760 getProxyProcessor() { 761 return { 762 get(e4, t3) { 763 return t3 === `proxyOf` ? e4 : e4[t3] ? t3 === `each` || typeof t3 == `string` && t3.startsWith(`walk`) ? (...n3) => e4[t3](...n3.map((e5) => typeof e5 == `function` ? (t4, n4) => e5(t4.toProxy(), n4) : e5)) : t3 === `every` || t3 === `some` ? (n3) => e4[t3]((e5, ...t4) => n3(e5.toProxy(), ...t4)) : t3 === `root` ? () => e4.root().toProxy() : t3 === `nodes` ? e4.nodes.map((e5) => e5.toProxy()) : t3 === `first` || t3 === `last` ? e4[t3].toProxy() : e4[t3] : e4[t3]; 764 }, 765 set(e4, t3, n3) { 766 return e4[t3] === n3 ? true : (e4[t3] = n3, (t3 === `name` || t3 === `params` || t3 === `selector`) && e4.markDirty(), true); 767 } 768 }; 769 } 770 index(e4) { 771 return typeof e4 == `number` ? e4 : (e4.proxyOf && (e4 = e4.proxyOf), this.proxyOf.nodes.indexOf(e4)); 772 } 773 insertAfter(e4, t3) { 774 let n3 = this.index(e4), r3 = this.normalize(t3, this.proxyOf.nodes[n3]).reverse(); 775 n3 = this.index(e4); 776 for (let e5 of r3) this.proxyOf.nodes.splice(n3 + 1, 0, e5); 777 let i3; 778 for (let e5 in this.indexes) i3 = this.indexes[e5], n3 < i3 && (this.indexes[e5] = i3 + r3.length); 779 return this.markDirty(), this; 780 } 781 insertBefore(e4, t3) { 782 let n3 = this.index(e4), r3 = n3 === 0 && `prepend`, i3 = this.normalize(t3, this.proxyOf.nodes[n3], r3).reverse(); 783 n3 = this.index(e4); 784 for (let e5 of i3) this.proxyOf.nodes.splice(n3, 0, e5); 785 let a3; 786 for (let e5 in this.indexes) a3 = this.indexes[e5], n3 <= a3 && (this.indexes[e5] = a3 + i3.length); 787 return this.markDirty(), this; 788 } 789 normalize(t3, i3) { 790 if (typeof t3 == `string`) t3 = d2(c2(t3).nodes); 791 else if (t3 === void 0) t3 = []; 792 else if (Array.isArray(t3)) { 793 t3 = t3.slice(0); 794 for (let e4 of t3) e4.parent && e4.parent.removeChild(e4, `ignore`); 795 } else if (t3.type === `root` && this.type !== `document`) { 796 t3 = t3.nodes.slice(0); 797 for (let e4 of t3) e4.parent && e4.parent.removeChild(e4, `ignore`); 798 } else if (t3.type) t3 = [ 799 t3 800 ]; 801 else if (t3.prop) { 802 if (t3.value === void 0) throw Error(`Value field is missed in node creation`); 803 typeof t3.value != `string` && (t3.value = String(t3.value)), t3 = [ 804 new r2(t3) 805 ]; 806 } else if (t3.selector || t3.selectors) t3 = [ 807 new u2(t3) 808 ]; 809 else if (t3.name) t3 = [ 810 new s2(t3) 811 ]; 812 else if (t3.text) t3 = [ 813 new n2(t3) 814 ]; 815 else throw Error(`Unknown node type in node creation`); 816 return t3.map((t4) => (t4[o2] || e3.rebuild(t4), t4 = t4.proxyOf, t4.parent && t4.parent.removeChild(t4), t4[a2] && f2(t4), t4.raws || (t4.raws = {}), t4.raws.before === void 0 && i3 && i3.raws.before !== void 0 && (t4.raws.before = i3.raws.before.replace(/\S/g, ``)), t4.parent = this.proxyOf, t4)); 817 } 818 prepend(...e4) { 819 e4 = e4.reverse(); 820 for (let t3 of e4) { 821 let e5 = this.normalize(t3, this.first, `prepend`).reverse(); 822 for (let t4 of e5) this.proxyOf.nodes.unshift(t4); 823 for (let t4 in this.indexes) this.indexes[t4] = this.indexes[t4] + e5.length; 824 } 825 return this.markDirty(), this; 826 } 827 push(e4) { 828 return e4.parent = this, this.proxyOf.nodes.push(e4), this; 829 } 830 removeAll() { 831 for (let e4 of this.proxyOf.nodes) e4.parent = void 0; 832 return this.proxyOf.nodes = [], this.markDirty(), this; 833 } 834 removeChild(e4) { 835 e4 = this.index(e4), this.proxyOf.nodes[e4].parent = void 0, this.proxyOf.nodes.splice(e4, 1); 836 let t3; 837 for (let n3 in this.indexes) t3 = this.indexes[n3], t3 >= e4 && (this.indexes[n3] = t3 - 1); 838 return this.markDirty(), this; 839 } 840 replaceValues(e4, t3, n3) { 841 return n3 || (n3 = t3, t3 = {}), this.walkDecls((r3) => { 842 t3.props && !t3.props.includes(r3.prop) || t3.fast && !r3.value.includes(t3.fast) || (r3.value = r3.value.replace(e4, n3)); 843 }), this.markDirty(), this; 844 } 845 some(e4) { 846 return this.nodes.some(e4); 847 } 848 walk(e4) { 849 if (!this.proxyOf.nodes) return; 850 let t3 = [ 851 { 852 iterator: this.getIterator(), 853 node: this.proxyOf 854 } 855 ]; 856 for (; t3.length > 0; ) { 857 let { iterator: n3, node: r3 } = t3[t3.length - 1], i3 = r3.indexes[n3]; 858 if (i3 >= r3.proxyOf.nodes.length) { 859 delete r3.indexes[n3], t3.pop(); 860 let e5 = t3[t3.length - 1]; 861 e5 && (e5.node.indexes[e5.iterator] += 1); 862 continue; 863 } 864 let a3 = r3.proxyOf.nodes[i3], o3; 865 try { 866 o3 = e4(a3, i3); 867 } catch (e5) { 868 throw a3.addToError(e5); 869 } 870 if (o3 === false) { 871 for (let e5 of t3) delete e5.node.indexes[e5.iterator]; 872 return false; 873 } 874 a3.walk && a3.proxyOf.nodes ? t3.push({ 875 iterator: a3.getIterator(), 876 node: a3 877 }) : r3.indexes[n3] += 1; 878 } 879 } 880 walkAtRules(e4, t3) { 881 return t3 ? e4 instanceof RegExp ? this.walk((n3, r3) => { 882 if (n3.type === `atrule` && e4.test(n3.name)) return t3(n3, r3); 883 }) : this.walk((n3, r3) => { 884 if (n3.type === `atrule` && n3.name === e4) return t3(n3, r3); 885 }) : (t3 = e4, this.walk((e5, n3) => { 886 if (e5.type === `atrule`) return t3(e5, n3); 887 })); 888 } 889 walkComments(e4) { 890 return this.walk((t3, n3) => { 891 if (t3.type === `comment`) return e4(t3, n3); 892 }); 893 } 894 walkDecls(e4, t3) { 895 return t3 ? e4 instanceof RegExp ? this.walk((n3, r3) => { 896 if (n3.type === `decl` && e4.test(n3.prop)) return t3(n3, r3); 897 }) : this.walk((n3, r3) => { 898 if (n3.type === `decl` && n3.prop === e4) return t3(n3, r3); 899 }) : (t3 = e4, this.walk((e5, n3) => { 900 if (e5.type === `decl`) return t3(e5, n3); 901 })); 902 } 903 walkRules(e4, t3) { 904 return t3 ? e4 instanceof RegExp ? this.walk((n3, r3) => { 905 if (n3.type === `rule` && e4.test(n3.selector)) return t3(n3, r3); 906 }) : this.walk((n3, r3) => { 907 if (n3.type === `rule` && n3.selector === e4) return t3(n3, r3); 908 }) : (t3 = e4, this.walk((e5, n3) => { 909 if (e5.type === `rule`) return t3(e5, n3); 910 })); 911 } 912 }; 913 p2.registerParse = (e3) => { 914 c2 = e3; 915 }, p2.registerRule = (e3) => { 916 u2 = e3; 917 }, p2.registerAtRule = (e3) => { 918 s2 = e3; 919 }, p2.registerRoot = (e3) => { 920 l2 = e3; 921 }, t2.exports = p2, p2.default = p2, p2.rebuild = (e3) => { 922 let t3 = [ 923 e3 924 ]; 925 for (; t3.length > 0; ) { 926 let e4 = t3.pop(); 927 if (e4.type === `atrule` ? Object.setPrototypeOf(e4, s2.prototype) : e4.type === `rule` ? Object.setPrototypeOf(e4, u2.prototype) : e4.type === `decl` ? Object.setPrototypeOf(e4, r2.prototype) : e4.type === `comment` ? Object.setPrototypeOf(e4, n2.prototype) : e4.type === `root` && Object.setPrototypeOf(e4, l2.prototype), e4[o2] = true, e4.nodes) for (let n3 of e4.nodes) t3.push(n3); 928 } 929 }; 930 })); 931 D = n(((e2, t2) => { 932 var n2 = E(), r2 = class extends n2 { 933 constructor(e3) { 934 super(e3), this.type = `atrule`; 935 } 936 append(...e3) { 937 return this.proxyOf.nodes || (this.nodes = []), super.append(...e3); 938 } 939 prepend(...e3) { 940 return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e3); 941 } 942 }; 943 t2.exports = r2, r2.default = r2, n2.registerAtRule(r2); 944 })); 945 O = n(((e2, t2) => { 946 var n2 = E(), r2, i2, a2 = class extends n2 { 947 constructor(e3) { 948 super({ 949 type: `document`, 950 ...e3 951 }), this.nodes || (this.nodes = []); 952 } 953 toResult(e3 = {}) { 954 return new r2(new i2(), this, e3).stringify(); 955 } 956 }; 957 a2.registerLazyResult = (e3) => { 958 r2 = e3; 959 }, a2.registerProcessor = (e3) => { 960 i2 = e3; 961 }, t2.exports = a2, a2.default = a2; 962 })); 963 k = n(((e2, t2) => { 964 t2.exports = { 965 nanoid: (e3 = 21) => { 966 let t3 = ``, n2 = e3 | 0; 967 for (; n2-- > 0; ) t3 += `useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`[Math.random() * 64 | 0]; 968 return t3; 969 }, 970 customAlphabet: (e3, t3 = 21) => (n2 = t3) => { 971 let r2 = ``, i2 = n2 | 0; 972 for (; i2-- > 0; ) r2 += e3[Math.random() * e3.length | 0]; 973 return r2; 974 } 975 }; 976 })); 977 A = n(((e2, t2) => { 978 r(); 979 var { existsSync: n2, readFileSync: a2 } = u(), { dirname: o2, isAbsolute: s2, join: l2, relative: f2, sep: p2 } = d(), { SourceMapConsumer: m2, SourceMapGenerator: h2 } = c(); 980 function g2(e3) { 981 return i ? i.from(e3, `base64`).toString() : window.atob(e3); 982 } 983 var _2 = class { 984 constructor(e3, t3) { 985 if (t3.map === false) return; 986 t3.unsafeMap && (this.unsafeMap = true), this.loadAnnotation(e3), this.inline = this.startWith(this.annotation, `data:`); 987 let n3 = t3.map ? t3.map.prev : void 0, r2 = this.loadMap(t3.from, n3); 988 !this.mapFile && t3.from && (this.mapFile = t3.from), this.mapFile && (this.root = o2(this.mapFile)), r2 && (this.text = r2); 989 } 990 consumer() { 991 return this.consumerCache || (this.consumerCache = new m2(this.json || this.text)), this.consumerCache; 992 } 993 decodeInline(e3) { 994 let t3 = /^data:application\/json;charset=utf-?8;base64,/, n3 = /^data:application\/json;base64,/, r2 = e3.match(/^data:application\/json;charset=utf-?8,/) || e3.match(/^data:application\/json,/); 995 if (r2) return decodeURIComponent(e3.substr(r2[0].length)); 996 let i2 = e3.match(t3) || e3.match(n3); 997 if (i2) return g2(e3.substr(i2[0].length)); 998 let a3 = e3.slice(22); 999 throw a3 = a3.slice(0, a3.indexOf(`,`)), Error(`Unsupported source map encoding ` + a3); 1000 } 1001 getAnnotationURL(e3) { 1002 return e3.replace(/^\/\*\s*# sourceMappingURL=/, ``).trim(); 1003 } 1004 isMap(e3) { 1005 return typeof e3 == `object` ? typeof e3.mappings == `string` || typeof e3._mappings == `string` || Array.isArray(e3.sections) : false; 1006 } 1007 loadAnnotation(e3) { 1008 let t3 = e3.match(/\/\*\s*# sourceMappingURL=/g); 1009 if (!t3) return; 1010 let n3 = e3.lastIndexOf(t3.pop()), r2 = e3.indexOf(`*/`, n3); 1011 n3 > -1 && r2 > -1 && (this.annotation = this.getAnnotationURL(e3.substring(n3, r2))); 1012 } 1013 loadFile(e3, t3, r2) { 1014 if (!r2 && !this.unsafeMap) { 1015 if (!/\.map$/i.test(e3)) return; 1016 if (t3) { 1017 let n3 = f2(o2(t3), e3); 1018 if (n3 === `..` || n3.startsWith(`..` + p2) || s2(n3)) return; 1019 } 1020 } 1021 if (this.root = o2(e3), n2(e3)) return this.mapFile = e3, a2(e3, `utf-8`).toString().trim(); 1022 } 1023 loadMap(e3, t3) { 1024 if (t3 === false) return false; 1025 if (t3) { 1026 if (typeof t3 == `string`) return t3; 1027 if (typeof t3 == `function`) { 1028 let n3 = t3(e3); 1029 if (n3) { 1030 let t4 = this.loadFile(n3, e3, true); 1031 if (!t4) throw Error(`Unable to load previous source map: ` + n3.toString()); 1032 return t4; 1033 } 1034 } else if (t3 instanceof m2) return h2.fromSourceMap(t3).toString(); 1035 else if (t3 instanceof h2) return t3.toString(); 1036 else if (this.isMap(t3)) return JSON.stringify(t3); 1037 else throw Error(`Unsupported previous source map format: ` + t3.toString()); 1038 } else if (this.inline) return this.decodeInline(this.annotation); 1039 else if (this.annotation) { 1040 let t4 = this.annotation; 1041 e3 && (t4 = l2(o2(e3), t4)); 1042 let n3 = this.loadFile(t4, e3, false); 1043 if (n3) try { 1044 this.json = JSON.parse(n3.replace(/^\)]}'[^\n]*\n/, ``)); 1045 } catch { 1046 return; 1047 } 1048 return n3; 1049 } 1050 } 1051 startWith(e3, t3) { 1052 return e3 ? e3.substr(0, t3.length) === t3 : false; 1053 } 1054 withContent() { 1055 return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0); 1056 } 1057 }; 1058 t2.exports = _2, _2.default = _2; 1059 })); 1060 j = n(((t2, n2) => { 1061 var { nanoid: r2 } = k(), { isAbsolute: i2, resolve: a2 } = d(), { SourceMapConsumer: o2, SourceMapGenerator: u2 } = c(), { fileURLToPath: f2, pathToFileURL: p2 } = (l(), e(s)), m2 = y(), h2 = A(), g2 = c(), _2 = /* @__PURE__ */ Symbol(`lineToIndexCache`), v2 = !!(o2 && u2), b2 = !!(a2 && i2); 1062 function x2(e2) { 1063 if (e2[_2]) return e2[_2]; 1064 let t3 = e2.css.split(` 1065`), n3 = Array(t3.length), r3 = 0; 1066 for (let e3 = 0, i3 = t3.length; e3 < i3; e3++) n3[e3] = r3, r3 += t3[e3].length + 1; 1067 return e2[_2] = n3, n3; 1068 } 1069 var S2 = class { 1070 get from() { 1071 return this.file || this.id; 1072 } 1073 constructor(e2, t3 = {}) { 1074 if (e2 == null || typeof e2 == `object` && !e2.toString) throw Error(`PostCSS received ${e2} instead of CSS string`); 1075 if (this.css = e2.toString(), this.css[0] === `\uFEFF` || this.css[0] === `\uFFFE` ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, t3.document && (this.document = t3.document.toString()), t3.from && (!b2 || /^\w+:\/\//.test(t3.from) || i2(t3.from) ? this.file = t3.from : this.file = a2(t3.from)), b2 && v2) { 1076 let e3 = new h2(this.css, t3); 1077 if (e3.text) { 1078 this.map = e3; 1079 let t4 = e3.consumer().file; 1080 !this.file && t4 && (this.file = this.mapResolve(t4)); 1081 } 1082 } 1083 this.file || (this.id = `<input css ` + r2(6) + `>`), this.map && (this.map.file = this.from); 1084 } 1085 error(e2, t3, n3, r3 = {}) { 1086 let i3, a3, o3, s2, c2; 1087 if (t3 && typeof t3 == `object`) { 1088 let e3 = t3, r4 = n3; 1089 if (typeof e3.offset == `number`) { 1090 s2 = e3.offset; 1091 let r5 = this.fromOffset(s2); 1092 t3 = r5.line, n3 = r5.col; 1093 } else t3 = e3.line, n3 = e3.column, s2 = this.fromLineAndColumn(t3, n3); 1094 if (typeof r4.offset == `number`) { 1095 o3 = r4.offset; 1096 let e4 = this.fromOffset(o3); 1097 a3 = e4.line, i3 = e4.col; 1098 } else a3 = r4.line, i3 = r4.column, o3 = this.fromLineAndColumn(r4.line, r4.column); 1099 } else if (n3) s2 = this.fromLineAndColumn(t3, n3); 1100 else { 1101 s2 = t3; 1102 let e3 = this.fromOffset(s2); 1103 t3 = e3.line, n3 = e3.col; 1104 } 1105 let l2 = this.origin(t3, n3, a3, i3); 1106 return c2 = l2 ? new m2(e2, l2.endLine === void 0 ? l2.line : { 1107 column: l2.column, 1108 line: l2.line 1109 }, l2.endLine === void 0 ? l2.column : { 1110 column: l2.endColumn, 1111 line: l2.endLine 1112 }, l2.source, l2.file, r3.plugin) : new m2(e2, a3 === void 0 ? t3 : { 1113 column: n3, 1114 line: t3 1115 }, a3 === void 0 ? n3 : { 1116 column: i3, 1117 line: a3 1118 }, this.css, this.file, r3.plugin), c2.input = { 1119 column: n3, 1120 endColumn: i3, 1121 endLine: a3, 1122 endOffset: o3, 1123 line: t3, 1124 offset: s2, 1125 source: this.css 1126 }, this.file && (p2 && (c2.input.url = p2(this.file).toString()), c2.input.file = this.file), c2; 1127 } 1128 fromLineAndColumn(e2, t3) { 1129 return x2(this)[e2 - 1] + t3 - 1; 1130 } 1131 fromOffset(e2) { 1132 let t3 = x2(this), n3 = t3[t3.length - 1], r3 = 0; 1133 if (e2 >= n3) r3 = t3.length - 1; 1134 else { 1135 let n4 = t3.length - 2, i3; 1136 for (; r3 < n4; ) if (i3 = r3 + (n4 - r3 >> 1), e2 < t3[i3]) n4 = i3 - 1; 1137 else if (e2 >= t3[i3 + 1]) r3 = i3 + 1; 1138 else { 1139 r3 = i3; 1140 break; 1141 } 1142 } 1143 return { 1144 col: e2 - t3[r3] + 1, 1145 line: r3 + 1 1146 }; 1147 } 1148 mapResolve(e2) { 1149 return /^\w+:\/\//.test(e2) ? e2 : a2(this.map.consumer().sourceRoot || this.map.root || `.`, e2); 1150 } 1151 origin(e2, t3, n3, r3) { 1152 if (!this.map) return false; 1153 let a3 = this.map.consumer(), o3 = a3.originalPositionFor({ 1154 column: t3 - 1, 1155 line: e2 1156 }); 1157 if (!o3.source) return false; 1158 let s2; 1159 if (typeof n3 == `number`) { 1160 let e3 = a3.originalPositionFor({ 1161 column: r3 - 1, 1162 line: n3 1163 }); 1164 e3.source && (s2 = e3); 1165 } 1166 let c2; 1167 c2 = i2(o3.source) ? p2(o3.source) : new URL(o3.source, this.map.consumer().sourceRoot || p2(this.map.mapFile)); 1168 let l2 = { 1169 column: o3.column + 1, 1170 endColumn: s2 && s2.column + 1, 1171 endLine: s2 && s2.line, 1172 line: o3.line, 1173 url: c2.toString() 1174 }; 1175 if (c2.protocol === `file:`) if (f2) l2.file = f2(c2); 1176 else throw Error(`file: protocol is not available in this PostCSS build`); 1177 let u3 = a3.sourceContentFor(o3.source); 1178 return u3 && (l2.source = u3), l2; 1179 } 1180 toJSON() { 1181 let e2 = {}; 1182 for (let t3 of [ 1183 `hasBOM`, 1184 `css`, 1185 `file`, 1186 `id` 1187 ]) this[t3] != null && (e2[t3] = this[t3]); 1188 return this.map && (e2.map = { 1189 ...this.map 1190 }, e2.map.consumerCache && (e2.map.consumerCache = void 0)), e2; 1191 } 1192 }; 1193 n2.exports = S2, S2.default = S2, g2 && g2.registerInput && g2.registerInput(S2); 1194 })); 1195 M = n(((e2, t2) => { 1196 var n2 = E(), r2, i2, a2 = class extends n2 { 1197 constructor(e3) { 1198 super(e3), this.type = `root`, this.nodes || (this.nodes = []); 1199 } 1200 normalize(e3, t3, n3) { 1201 let r3 = /* @__PURE__ */ new Set(); 1202 for (let t4 of Array.isArray(e3) ? e3 : [ 1203 e3 1204 ]) t4 && typeof t4 == `object` && !t4.parent && t4.raws && t4.raws.before !== void 0 && r3.add(t4.raws); 1205 let i3 = super.normalize(e3); 1206 if (t3) { 1207 if (n3 === `prepend`) this.nodes.length > 1 ? t3.raws.before = this.nodes[1].raws.before : delete t3.raws.before; 1208 else if (this.first !== t3) for (let e4 of i3) r3.has(e4.raws) || (e4.raws.before = t3.raws.before); 1209 } 1210 return i3; 1211 } 1212 removeChild(e3, t3) { 1213 let n3 = this.index(e3); 1214 return !t3 && n3 === 0 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[n3].raws.before), super.removeChild(e3); 1215 } 1216 toResult(e3 = {}) { 1217 return new r2(new i2(), this, e3).stringify(); 1218 } 1219 }; 1220 a2.registerLazyResult = (e3) => { 1221 r2 = e3; 1222 }, a2.registerProcessor = (e3) => { 1223 i2 = e3; 1224 }, t2.exports = a2, a2.default = a2, n2.registerRoot(a2); 1225 })); 1226 N = n(((e2, t2) => { 1227 var n2 = { 1228 comma(e3) { 1229 return n2.split(e3, [ 1230 `,` 1231 ], true); 1232 }, 1233 space(e3) { 1234 return n2.split(e3, [ 1235 ` `, 1236 ` 1237`, 1238 ` ` 1239 ]); 1240 }, 1241 split(e3, t3, n3) { 1242 let r2 = [], i2 = ``, a2 = false, o2 = 0, s2 = false, c2 = ``, l2 = false; 1243 for (let n4 of e3) l2 ? l2 = false : n4 === `\\` ? l2 = true : s2 ? n4 === c2 && (s2 = false) : n4 === `"` || n4 === `'` ? (s2 = true, c2 = n4) : n4 === `(` ? o2 += 1 : n4 === `)` ? o2 > 0 && --o2 : o2 === 0 && t3.includes(n4) && (a2 = true), a2 ? (i2 !== `` && r2.push(i2.trim()), i2 = ``, a2 = false) : i2 += n4; 1244 return (n3 || i2 !== ``) && r2.push(i2.trim()), r2; 1245 } 1246 }; 1247 t2.exports = n2, n2.default = n2; 1248 })); 1249 P = n(((e2, t2) => { 1250 var n2 = E(), r2 = N(), i2 = class extends n2 { 1251 get selectors() { 1252 return r2.comma(this.selector); 1253 } 1254 set selectors(e3) { 1255 let t3 = this.selector ? this.selector.match(/,\s*/) : null, n3 = t3 ? t3[0] : `,` + this.raw(`between`, `beforeOpen`); 1256 this.selector = e3.join(n3); 1257 } 1258 constructor(e3) { 1259 super(e3), this.type = `rule`, this.nodes || (this.nodes = []); 1260 } 1261 }; 1262 t2.exports = i2, i2.default = i2, n2.registerRule(i2); 1263 })); 1264 F = n(((e2, t2) => { 1265 var n2 = D(), r2 = w(), i2 = T(), a2 = j(), o2 = A(), s2 = M(), c2 = P(); 1266 function l2(e3, t3) { 1267 return e3.inputs ? e3.inputs.map((e4) => { 1268 let t4 = { 1269 ...e4, 1270 __proto__: a2.prototype 1271 }; 1272 return t4.map && (t4.map = { 1273 ...t4.map, 1274 __proto__: o2.prototype 1275 }), t4; 1276 }) : t3; 1277 } 1278 function u2(e3, t3, a3) { 1279 let o3 = { 1280 ...e3 1281 }; 1282 if (delete o3.inputs, delete o3.nodes, o3.source) { 1283 let { inputId: e4, ...n3 } = o3.source; 1284 o3.source = n3, e4 != null && (o3.source.input = t3[e4]); 1285 } 1286 let l3; 1287 if (o3.type === `root`) l3 = new s2(o3); 1288 else if (o3.type === `decl`) l3 = new i2(o3); 1289 else if (o3.type === `rule`) l3 = new c2(o3); 1290 else if (o3.type === `comment`) l3 = new r2(o3); 1291 else if (o3.type === `atrule`) l3 = new n2(o3); 1292 else throw Error(`Unknown node type: ` + e3.type); 1293 if (a3) { 1294 l3.nodes = a3; 1295 for (let e4 of a3) e4.parent = l3; 1296 } 1297 return l3; 1298 } 1299 function d2(e3, t3) { 1300 if (Array.isArray(e3)) return e3.map((e4) => d2(e4)); 1301 let n3, r3 = [ 1302 { 1303 childIndex: 0, 1304 children: [], 1305 inputs: l2(e3, t3), 1306 json: e3 1307 } 1308 ]; 1309 for (; r3.length > 0; ) { 1310 let e4 = r3[r3.length - 1], t4 = e4.json.nodes; 1311 if (t4 && e4.childIndex < t4.length) { 1312 let n4 = t4[e4.childIndex]; 1313 e4.childIndex += 1, r3.push({ 1314 childIndex: 0, 1315 children: [], 1316 inputs: l2(n4, e4.inputs), 1317 json: n4 1318 }); 1319 continue; 1320 } 1321 r3.pop(); 1322 let i3 = u2(e4.json, e4.inputs, t4 ? e4.children : void 0); 1323 r3.length > 0 ? r3[r3.length - 1].children.push(i3) : n3 = i3; 1324 } 1325 return n3; 1326 } 1327 t2.exports = d2, d2.default = d2; 1328 })); 1329 I = n(((t2, n2) => { 1330 r(); 1331 var { dirname: a2, relative: o2, resolve: u2, sep: f2 } = d(), { SourceMapConsumer: p2, SourceMapGenerator: m2 } = c(), { pathToFileURL: h2 } = (l(), e(s)), g2 = j(), _2 = !!(p2 && m2), v2 = !!(a2 && u2 && o2 && f2); 1332 n2.exports = class { 1333 constructor(e2, t3, n3, r2) { 1334 this.stringify = e2, this.mapOpts = n3.map || {}, this.root = t3, this.opts = n3, this.css = r2, this.originalCSS = r2, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map(); 1335 } 1336 addAnnotation() { 1337 let e2; 1338 e2 = this.isInline() ? `data:application/json;base64,` + this.toBase64(this.map.toString()) : typeof this.mapOpts.annotation == `string` ? this.mapOpts.annotation : typeof this.mapOpts.annotation == `function` ? this.mapOpts.annotation(this.opts.to, this.root) : this.outputFile() + `.map`; 1339 let t3 = ` 1340`; 1341 this.css.includes(`\r 1342`) && (t3 = `\r 1343`), this.css += t3 + `/*# sourceMappingURL=` + e2 + ` */`; 1344 } 1345 applyPrevMaps() { 1346 for (let e2 of this.previous()) { 1347 let t3 = this.toUrl(this.path(e2.file)), n3 = e2.root || a2(e2.file), r2; 1348 this.mapOpts.sourcesContent === false ? (r2 = new p2(e2.text), r2.sourcesContent && (r2.sourcesContent = null)) : r2 = e2.consumer(), this.map.applySourceMap(r2, t3, this.toUrl(this.path(n3))); 1349 } 1350 } 1351 clearAnnotation() { 1352 if (this.mapOpts.annotation !== false) { 1353 if (this.root) { 1354 let e2; 1355 for (let t3 = this.root.nodes.length - 1; t3 >= 0; t3--) e2 = this.root.nodes[t3], e2.type === `comment` && e2.text.startsWith(`# sourceMappingURL=`) && this.root.removeChild(t3); 1356 } else if (this.css) { 1357 let e2; 1358 for (; (e2 = this.css.lastIndexOf(`/*#`)) !== -1; ) { 1359 let t3 = this.css.indexOf(`*/`, e2 + 3); 1360 if (t3 === -1) break; 1361 for (; e2 > 0 && this.css[e2 - 1] === ` 1362`; ) e2--; 1363 this.css = this.css.slice(0, e2) + this.css.slice(t3 + 2); 1364 } 1365 } 1366 } 1367 } 1368 generate() { 1369 if (this.clearAnnotation(), v2 && _2 && this.isMap()) return this.generateMap(); 1370 { 1371 let e2 = ``; 1372 return this.stringify(this.root, (t3) => { 1373 e2 += t3; 1374 }), [ 1375 e2 1376 ]; 1377 } 1378 } 1379 generateMap() { 1380 if (this.root) this.generateString(); 1381 else if (this.previous().length === 1) { 1382 let e2 = this.previous()[0].consumer(); 1383 e2.file = this.outputFile(), this.map = m2.fromSourceMap(e2, { 1384 ignoreInvalidMapping: true 1385 }); 1386 } else this.map = new m2({ 1387 file: this.outputFile(), 1388 ignoreInvalidMapping: true 1389 }), this.map.addMapping({ 1390 generated: { 1391 column: 0, 1392 line: 1 1393 }, 1394 original: { 1395 column: 0, 1396 line: 1 1397 }, 1398 source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : `<no source>` 1399 }); 1400 return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [ 1401 this.css 1402 ] : [ 1403 this.css, 1404 this.map 1405 ]; 1406 } 1407 generateString() { 1408 this.css = ``, this.map = new m2({ 1409 file: this.outputFile(), 1410 ignoreInvalidMapping: true 1411 }); 1412 let e2 = 1, t3 = 1, n3 = `<no source>`, r2 = { 1413 generated: { 1414 column: 0, 1415 line: 0 1416 }, 1417 original: { 1418 column: 0, 1419 line: 0 1420 }, 1421 source: `` 1422 }, i2, a3; 1423 this.stringify(this.root, (o3, s2, c2) => { 1424 if (this.css += o3, s2 && c2 !== `end` && (r2.generated.line = e2, r2.generated.column = t3 - 1, s2.source && s2.source.start ? (r2.source = this.sourcePath(s2), r2.original.line = s2.source.start.line, r2.original.column = s2.source.start.column - 1, this.map.addMapping(r2)) : (r2.source = n3, r2.original.line = 1, r2.original.column = 0, this.map.addMapping(r2))), a3 = o3.match(/\n/g), a3 ? (e2 += a3.length, i2 = o3.lastIndexOf(` 1425`), t3 = o3.length - i2) : t3 += o3.length, s2 && c2 !== `start`) { 1426 let i3 = s2.parent || { 1427 raws: {} 1428 }; 1429 (!(s2.type === `decl` || s2.type === `atrule` && !s2.nodes) || s2 !== i3.last || i3.raws.semicolon) && (s2.source && s2.source.end ? (r2.source = this.sourcePath(s2), r2.original.line = s2.source.end.line, r2.original.column = s2.source.end.column - 1, r2.generated.line = e2, r2.generated.column = t3 - 2, this.map.addMapping(r2)) : (r2.source = n3, r2.original.line = 1, r2.original.column = 0, r2.generated.line = e2, r2.generated.column = t3 - 1, this.map.addMapping(r2))); 1430 } 1431 }); 1432 } 1433 isAnnotation() { 1434 return this.isInline() ? true : this.mapOpts.annotation === void 0 ? !this.previous().length || this.previous().some((e2) => e2.annotation) : this.mapOpts.annotation; 1435 } 1436 isInline() { 1437 if (this.mapOpts.inline !== void 0) return this.mapOpts.inline; 1438 let e2 = this.mapOpts.annotation; 1439 return e2 !== void 0 && e2 !== true ? false : !this.previous().length || this.previous().some((e3) => e3.inline); 1440 } 1441 isMap() { 1442 return this.opts.map === void 0 ? this.previous().length > 0 : !!this.opts.map; 1443 } 1444 isSourcesContent() { 1445 return this.mapOpts.sourcesContent === void 0 ? !this.previous().length || this.previous().some((e2) => e2.withContent()) : this.mapOpts.sourcesContent; 1446 } 1447 outputFile() { 1448 return this.opts.to ? this.path(this.opts.to) : this.opts.from ? this.path(this.opts.from) : `to.css`; 1449 } 1450 path(e2) { 1451 if (this.mapOpts.absolute || e2.charCodeAt(0) === 60 || /^\w+:\/\//.test(e2)) return e2; 1452 let t3 = this.memoizedPaths.get(e2); 1453 if (t3) return t3; 1454 let n3 = this.opts.to ? a2(this.opts.to) : `.`; 1455 typeof this.mapOpts.annotation == `string` && (n3 = a2(u2(n3, this.mapOpts.annotation))); 1456 let r2 = o2(n3, e2); 1457 return this.memoizedPaths.set(e2, r2), r2; 1458 } 1459 previous() { 1460 if (!this.previousMaps) if (this.previousMaps = [], this.root) this.root.walk((e2) => { 1461 if (e2.source && e2.source.input.map) { 1462 let t3 = e2.source.input.map; 1463 this.previousMaps.includes(t3) || this.previousMaps.push(t3); 1464 } 1465 }); 1466 else { 1467 let e2 = new g2(this.originalCSS, this.opts); 1468 e2.map && this.previousMaps.push(e2.map); 1469 } 1470 return this.previousMaps; 1471 } 1472 setSourcesContent() { 1473 let e2 = {}; 1474 if (this.root) this.root.walk((t3) => { 1475 if (t3.source) { 1476 let n3 = t3.source.input.from; 1477 if (n3 && !e2[n3]) { 1478 e2[n3] = true; 1479 let r2 = this.usesFileUrls ? this.toFileUrl(n3) : this.toUrl(this.path(n3)); 1480 this.map.setSourceContent(r2, t3.source.input.css); 1481 } 1482 } 1483 }); 1484 else if (this.css) { 1485 let e3 = this.opts.from ? this.toUrl(this.path(this.opts.from)) : `<no source>`; 1486 this.map.setSourceContent(e3, this.css); 1487 } 1488 } 1489 sourcePath(e2) { 1490 return this.mapOpts.from ? this.toUrl(this.mapOpts.from) : this.usesFileUrls ? this.toFileUrl(e2.source.input.from) : this.toUrl(this.path(e2.source.input.from)); 1491 } 1492 toBase64(e2) { 1493 return i ? i.from(e2).toString(`base64`) : window.btoa(unescape(encodeURIComponent(e2))); 1494 } 1495 toFileUrl(e2) { 1496 let t3 = this.memoizedFileURLs.get(e2); 1497 if (t3) return t3; 1498 if (h2) { 1499 let t4 = h2(e2).toString(); 1500 return this.memoizedFileURLs.set(e2, t4), t4; 1501 } else throw Error("`map.absolute` option is not available in this PostCSS build"); 1502 } 1503 toUrl(e2) { 1504 let t3 = this.memoizedURLs.get(e2); 1505 if (t3) return t3; 1506 f2 === `\\` && (e2 = e2.replace(/\\/g, `/`)); 1507 let n3 = encodeURI(e2).replace(/[#?]/g, encodeURIComponent); 1508 return this.memoizedURLs.set(e2, n3), n3; 1509 } 1510 }; 1511 })); 1512 L = n(((e2, t2) => { 1513 var n2 = /[\t\n\f\r "#'()/;[\\\]{}]/g, r2 = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, i2 = /.[\r\n"'(/\\]/, a2 = /[\da-f]/i; 1514 t2.exports = function(e3, t3 = {}) { 1515 let o2 = e3.css.valueOf(), s2 = t3.ignoreErrors, c2, l2, u2, d2, f2, p2, m2, h2, g2, _2, v2 = o2.length, y2 = 0, b2 = [], x2 = [], S2 = -1; 1516 function C2() { 1517 return y2; 1518 } 1519 function w2(t4) { 1520 throw e3.error(`Unclosed ` + t4, y2); 1521 } 1522 function T2() { 1523 return x2.length === 0 && y2 >= v2; 1524 } 1525 function E2(e4) { 1526 if (x2.length) return x2.pop(); 1527 if (y2 >= v2) return; 1528 let t4 = e4 ? e4.ignoreUnclosed : false; 1529 switch (c2 = o2.charCodeAt(y2), c2) { 1530 case 10: 1531 case 32: 1532 case 9: 1533 case 13: 1534 case 12: 1535 d2 = y2; 1536 do 1537 d2 += 1, c2 = o2.charCodeAt(d2); 1538 while (c2 === 32 || c2 === 10 || c2 === 9 || c2 === 13 || c2 === 12); 1539 p2 = [ 1540 `space`, 1541 o2.slice(y2, d2) 1542 ], y2 = d2 - 1; 1543 break; 1544 case 91: 1545 case 93: 1546 case 123: 1547 case 125: 1548 case 58: 1549 case 59: 1550 case 41: { 1551 let e5 = String.fromCharCode(c2); 1552 p2 = [ 1553 e5, 1554 e5, 1555 y2 1556 ]; 1557 break; 1558 } 1559 case 40: 1560 if (_2 = b2.length ? b2.pop()[1] : ``, g2 = o2.charCodeAt(y2 + 1), _2 === `url` && g2 !== 39 && g2 !== 34 && g2 !== 32 && g2 !== 10 && g2 !== 9 && g2 !== 12 && g2 !== 13) { 1561 d2 = y2; 1562 do { 1563 if (m2 = false, d2 = o2.indexOf(`)`, d2 + 1), d2 === -1) if (s2 || t4) { 1564 d2 = y2; 1565 break; 1566 } else w2(`bracket`); 1567 for (h2 = d2; o2.charCodeAt(h2 - 1) === 92; ) --h2, m2 = !m2; 1568 } while (m2); 1569 p2 = [ 1570 `brackets`, 1571 o2.slice(y2, d2 + 1), 1572 y2, 1573 d2 1574 ], y2 = d2; 1575 } else y2 <= S2 ? p2 = [ 1576 `(`, 1577 `(`, 1578 y2 1579 ] : (d2 = o2.indexOf(`)`, y2 + 1), l2 = o2.slice(y2, d2 + 1), d2 === -1 || i2.test(l2) ? (S2 = d2 === -1 ? v2 : d2, p2 = [ 1580 `(`, 1581 `(`, 1582 y2 1583 ]) : (p2 = [ 1584 `brackets`, 1585 l2, 1586 y2, 1587 d2 1588 ], y2 = d2)); 1589 break; 1590 case 39: 1591 case 34: 1592 f2 = c2 === 39 ? `'` : `"`, d2 = y2; 1593 do { 1594 if (m2 = false, d2 = o2.indexOf(f2, d2 + 1), d2 === -1) if (s2 || t4) { 1595 d2 = y2 + 1; 1596 break; 1597 } else w2(`string`); 1598 for (h2 = d2; o2.charCodeAt(h2 - 1) === 92; ) --h2, m2 = !m2; 1599 } while (m2); 1600 p2 = [ 1601 `string`, 1602 o2.slice(y2, d2 + 1), 1603 y2, 1604 d2 1605 ], y2 = d2; 1606 break; 1607 case 64: 1608 n2.lastIndex = y2 + 1, n2.test(o2), d2 = n2.lastIndex === 0 ? o2.length - 1 : n2.lastIndex - 2, p2 = [ 1609 `at-word`, 1610 o2.slice(y2, d2 + 1), 1611 y2, 1612 d2 1613 ], y2 = d2; 1614 break; 1615 case 92: 1616 for (d2 = y2, u2 = true; o2.charCodeAt(d2 + 1) === 92; ) d2 += 1, u2 = !u2; 1617 if (c2 = o2.charCodeAt(d2 + 1), u2 && c2 !== 47 && c2 !== 32 && c2 !== 10 && c2 !== 9 && c2 !== 13 && c2 !== 12 && (d2 += 1, a2.test(o2.charAt(d2)))) { 1618 for (; a2.test(o2.charAt(d2 + 1)); ) d2 += 1; 1619 o2.charCodeAt(d2 + 1) === 32 && (d2 += 1); 1620 } 1621 p2 = [ 1622 `word`, 1623 o2.slice(y2, d2 + 1), 1624 y2, 1625 d2 1626 ], y2 = d2; 1627 break; 1628 default: 1629 c2 === 47 && o2.charCodeAt(y2 + 1) === 42 ? (d2 = o2.indexOf(`*/`, y2 + 2) + 1, d2 === 0 && (s2 || t4 ? d2 = o2.length : w2(`comment`)), p2 = [ 1630 `comment`, 1631 o2.slice(y2, d2 + 1), 1632 y2, 1633 d2 1634 ], y2 = d2) : (r2.lastIndex = y2 + 1, r2.test(o2), d2 = r2.lastIndex === 0 ? o2.length - 1 : r2.lastIndex - 2, p2 = [ 1635 `word`, 1636 o2.slice(y2, d2 + 1), 1637 y2, 1638 d2 1639 ], b2.push(p2), y2 = d2); 1640 break; 1641 } 1642 return y2++, p2; 1643 } 1644 function D2(e4) { 1645 x2.push(e4); 1646 } 1647 return { 1648 back: D2, 1649 endOfFile: T2, 1650 nextToken: E2, 1651 position: C2 1652 }; 1653 }; 1654 })); 1655 R = n(((e2, t2) => { 1656 var n2 = D(), r2 = w(), i2 = T(), a2 = M(), o2 = P(), s2 = L(), c2 = { 1657 empty: true, 1658 space: true 1659 }; 1660 function l2(e3) { 1661 for (let t3 = e3.length - 1; t3 >= 0; t3--) { 1662 let n3 = e3[t3], r3 = n3[3] || n3[2]; 1663 if (r3) return r3; 1664 } 1665 } 1666 function u2(e3, t3, n3) { 1667 let r3 = ``; 1668 for (let i3 = t3; i3 < n3; i3++) r3 += e3[i3][1]; 1669 return r3; 1670 } 1671 t2.exports = class { 1672 constructor(e3) { 1673 this.input = e3, this.root = new a2(), this.current = this.root, this.spaces = ``, this.semicolon = false, this.createTokenizer(), this.root.source = { 1674 input: e3, 1675 start: { 1676 column: 1, 1677 line: 1, 1678 offset: 0 1679 } 1680 }; 1681 } 1682 atrule(e3) { 1683 let t3 = new n2(); 1684 t3.name = e3[1].slice(1), t3.name === `` && this.unnamedAtrule(t3, e3), this.init(t3, e3[2]); 1685 let r3, i3, a3, o3 = false, s3 = false, c3 = [], l3 = []; 1686 for (; !this.tokenizer.endOfFile(); ) { 1687 if (e3 = this.tokenizer.nextToken(), r3 = e3[0], r3 === `(` || r3 === `[` ? l3.push(r3 === `(` ? `)` : `]`) : r3 === `{` && l3.length > 0 ? l3.push(`}`) : r3 === l3[l3.length - 1] && l3.pop(), l3.length === 0) if (r3 === `;`) { 1688 t3.source.end = this.getPosition(e3[2]), t3.source.end.offset++, this.semicolon = true; 1689 break; 1690 } else if (r3 === `{`) { 1691 s3 = true; 1692 break; 1693 } else if (r3 === `}`) { 1694 if (c3.length > 0) { 1695 for (a3 = c3.length - 1, i3 = c3[a3]; i3 && i3[0] === `space`; ) i3 = c3[--a3]; 1696 i3 && (t3.source.end = this.getPosition(i3[3] || i3[2]), t3.source.end.offset++); 1697 } 1698 this.end(e3); 1699 break; 1700 } else c3.push(e3); 1701 else c3.push(e3); 1702 if (this.tokenizer.endOfFile()) { 1703 o3 = true; 1704 break; 1705 } 1706 } 1707 t3.raws.between = this.spacesAndCommentsFromEnd(c3), c3.length ? (t3.raws.afterName = this.spacesAndCommentsFromStart(c3), this.raw(t3, `params`, c3), o3 && (e3 = c3[c3.length - 1], t3.source.end = this.getPosition(e3[3] || e3[2]), t3.source.end.offset++, this.spaces = t3.raws.between, t3.raws.between = ``)) : (t3.raws.afterName = ``, t3.params = ``), s3 && (t3.nodes = [], this.current = t3); 1708 } 1709 checkMissedSemicolon(e3) { 1710 let t3 = this.colon(e3); 1711 if (t3 === false) return; 1712 let n3 = 0, r3; 1713 for (let i3 = t3 - 1; i3 >= 0 && (r3 = e3[i3], !(r3[0] !== `space` && (n3 += 1, n3 === 2))); i3--) ; 1714 throw this.input.error(`Missed semicolon`, r3[0] === `word` ? r3[3] + 1 : r3[2]); 1715 } 1716 colon(e3) { 1717 let t3 = 0, n3, r3, i3; 1718 for (let [a3, o3] of e3.entries()) { 1719 if (r3 = o3, i3 = r3[0], i3 === `(` && (t3 += 1), i3 === `)` && --t3, t3 === 0 && i3 === `:`) if (!n3) this.doubleColon(r3); 1720 else if (n3[0] === `word` && n3[1] === `progid`) continue; 1721 else return a3; 1722 n3 = r3; 1723 } 1724 return false;
vendor: 7,423 bytes, lines 1725-1894
1725 } 1726 comment(e3) { 1727 let t3 = new r2(); 1728 this.init(t3, e3[2]), t3.source.end = this.getPosition(e3[3] || e3[2]), t3.source.end.offset++; 1729 let n3 = e3[1].slice(2, -2); 1730 if (!n3.trim()) t3.text = ``, t3.raws.left = n3, t3.raws.right = ``; 1731 else { 1732 let e4 = n3.match(/^(\s*)([^]*\S)(\s*)$/); 1733 t3.text = e4[2], t3.raws.left = e4[1], t3.raws.right = e4[3]; 1734 } 1735 } 1736 createTokenizer() { 1737 this.tokenizer = s2(this.input); 1738 } 1739 decl(e3, t3) { 1740 let n3 = new i2(); 1741 this.init(n3, e3[0][2]); 1742 let r3 = e3[e3.length - 1]; 1743 r3[0] === `;` && (this.semicolon = true, e3.pop()), n3.source.end = this.getPosition(r3[3] || r3[2] || l2(e3)), n3.source.end.offset++; 1744 let a3 = 0; 1745 for (; e3[a3][0] !== `word`; ) a3 === e3.length - 1 && this.unknownWord([ 1746 e3[a3] 1747 ]), a3++; 1748 n3.raws.before += u2(e3, 0, a3), n3.source.start = this.getPosition(e3[a3][2]); 1749 let o3 = a3; 1750 for (; a3 < e3.length; ) { 1751 let t4 = e3[a3][0]; 1752 if (t4 === `:` || t4 === `space` || t4 === `comment`) break; 1753 a3++; 1754 } 1755 n3.prop = u2(e3, o3, a3); 1756 let s3 = a3, c3; 1757 for (; a3 < e3.length && (c3 = e3[a3], a3++, c3[0] !== `:`); ) c3[0] === `word` && /\w/.test(c3[1]) && this.unknownWord([ 1758 c3 1759 ]); 1760 n3.raws.between = u2(e3, s3, a3), (n3.prop[0] === `_` || n3.prop[0] === `*`) && (n3.raws.before += n3.prop[0], n3.prop = n3.prop.slice(1)); 1761 let d2 = a3; 1762 for (; a3 < e3.length; ) { 1763 let t4 = e3[a3][0]; 1764 if (t4 !== `space` && t4 !== `comment`) break; 1765 a3++; 1766 } 1767 let f2 = e3.slice(d2, a3); 1768 e3 = e3.slice(a3), this.precheckMissedSemicolon(e3); 1769 for (let t4 = e3.length - 1; t4 >= 0; t4--) { 1770 if (c3 = e3[t4], c3[1].toLowerCase() === `!important`) { 1771 n3.important = true; 1772 let r4 = this.stringFrom(e3, t4); 1773 r4 = this.spacesFromEnd(e3) + r4, r4 !== ` !important` && (n3.raws.important = r4); 1774 break; 1775 } else if (c3[1].toLowerCase() === `important`) { 1776 let r4 = e3.slice(0), i3 = ``; 1777 for (let e4 = t4; e4 > 0; e4--) { 1778 let t5 = r4[e4][0]; 1779 if (i3.trim().startsWith(`!`) && t5 !== `space`) break; 1780 i3 = r4.pop()[1] + i3; 1781 } 1782 i3.trim().startsWith(`!`) && (n3.important = true, n3.raws.important = i3, e3 = r4); 1783 } 1784 if (c3[0] !== `space` && c3[0] !== `comment`) break; 1785 } 1786 e3.some((e4) => e4[0] !== `space` && e4[0] !== `comment`) && (n3.raws.between += f2.map((e4) => e4[1]).join(``), f2 = []), this.raw(n3, `value`, f2.concat(e3), t3), n3.value.includes(`:`) && !t3 && this.checkMissedSemicolon(e3); 1787 } 1788 doubleColon(e3) { 1789 throw this.input.error(`Double colon`, { 1790 offset: e3[2] 1791 }, { 1792 offset: e3[2] + e3[1].length 1793 }); 1794 } 1795 emptyRule(e3) { 1796 let t3 = new o2(); 1797 this.init(t3, e3[2]), t3.selector = ``, t3.raws.between = ``, this.current = t3; 1798 } 1799 end(e3) { 1800 this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.semicolon = false, this.current.raws.after = (this.current.raws.after || ``) + this.spaces, this.spaces = ``, this.current.parent ? (this.current.source.end = this.getPosition(e3[2]), this.current.source.end.offset++, this.current = this.current.parent) : this.unexpectedClose(e3); 1801 } 1802 endFile() { 1803 this.current.parent && this.unclosedBlock(), this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.current.raws.after = (this.current.raws.after || ``) + this.spaces, this.root.source.end = this.getPosition(this.tokenizer.position()); 1804 } 1805 freeSemicolon(e3) { 1806 if (this.spaces += e3[1], this.current.nodes) { 1807 let t3 = this.current.nodes[this.current.nodes.length - 1]; 1808 t3 && t3.type === `rule` && !t3.raws.ownSemicolon && (t3.raws.ownSemicolon = this.spaces, this.spaces = ``, t3.source.end = this.getPosition(e3[2]), t3.source.end.offset += t3.raws.ownSemicolon.length); 1809 } 1810 } 1811 getPosition(e3) { 1812 let t3 = this.input.fromOffset(e3); 1813 return { 1814 column: t3.col, 1815 line: t3.line, 1816 offset: e3 1817 }; 1818 } 1819 init(e3, t3) { 1820 this.current.push(e3), e3.source = { 1821 input: this.input, 1822 start: this.getPosition(t3) 1823 }, e3.raws.before = this.spaces, this.spaces = ``, e3.type !== `comment` && (this.semicolon = false); 1824 } 1825 other(e3) { 1826 let t3 = false, n3 = null, r3 = false, i3 = null, a3 = [], o3 = e3[1].startsWith(`--`), s3 = [], c3 = e3; 1827 for (; c3; ) { 1828 if (n3 = c3[0], s3.push(c3), n3 === `(` || n3 === `[`) i3 || (i3 = c3), a3.push(n3 === `(` ? `)` : `]`); 1829 else if (o3 && r3 && n3 === `{`) i3 || (i3 = c3), a3.push(`}`); 1830 else if (a3.length === 0) if (n3 === `;`) if (r3) { 1831 this.decl(s3, o3); 1832 return; 1833 } else break; 1834 else if (n3 === `{`) { 1835 this.rule(s3); 1836 return; 1837 } else if (n3 === `}`) { 1838 this.tokenizer.back(s3.pop()), t3 = true; 1839 break; 1840 } else n3 === `:` && (r3 = true); 1841 else n3 === a3[a3.length - 1] && (a3.pop(), a3.length === 0 && (i3 = null)); 1842 c3 = this.tokenizer.nextToken(); 1843 } 1844 if (this.tokenizer.endOfFile() && (t3 = true), a3.length > 0 && this.unclosedBracket(i3), t3 && r3) { 1845 if (!o3) for (; s3.length && (c3 = s3[s3.length - 1][0], !(c3 !== `space` && c3 !== `comment`)); ) this.tokenizer.back(s3.pop()); 1846 this.decl(s3, o3); 1847 } else this.unknownWord(s3); 1848 } 1849 parse() { 1850 let e3; 1851 for (; !this.tokenizer.endOfFile(); ) switch (e3 = this.tokenizer.nextToken(), e3[0]) { 1852 case `space`: 1853 this.spaces += e3[1]; 1854 break; 1855 case `;`: 1856 this.freeSemicolon(e3); 1857 break; 1858 case `}`: 1859 this.end(e3); 1860 break; 1861 case `comment`: 1862 this.comment(e3); 1863 break; 1864 case `at-word`: 1865 this.atrule(e3); 1866 break; 1867 case `{`: 1868 this.emptyRule(e3); 1869 break; 1870 default: 1871 this.other(e3); 1872 break; 1873 } 1874 this.endFile(); 1875 } 1876 precheckMissedSemicolon() { 1877 } 1878 raw(e3, t3, n3, r3) { 1879 let i3, a3, o3 = n3.length, s3 = ``, l3 = true, u3, d2; 1880 for (let e4 = 0; e4 < o3; e4 += 1) i3 = n3[e4], a3 = i3[0], a3 === `space` && e4 === o3 - 1 && !r3 ? l3 = false : a3 === `comment` ? (d2 = n3[e4 - 1] ? n3[e4 - 1][0] : `empty`, u3 = n3[e4 + 1] ? n3[e4 + 1][0] : `empty`, !c2[d2] && !c2[u3] ? s3.slice(-1) === `,` ? l3 = false : s3 += i3[1] : l3 = false) : s3 += i3[1]; 1881 if (!l3) { 1882 let r4 = n3.reduce((e4, t4) => e4 + t4[1], ``); 1883 e3.raws[t3] = { 1884 raw: r4, 1885 value: s3 1886 }; 1887 } 1888 e3[t3] = s3; 1889 } 1890 rule(e3) { 1891 e3.pop(); 1892 let t3 = new o2(); 1893 this.init(t3, e3[0][2]), t3.raws.between = this.spacesAndCommentsFromEnd(e3), this.raw(t3, `selector`, e3), this.current = t3; 1894 }
vendor: 18,801 bytes, lines 1895-2472
1895 spacesAndCommentsFromEnd(e3) { 1896 let t3, n3 = ``; 1897 for (; e3.length && (t3 = e3[e3.length - 1][0], !(t3 !== `space` && t3 !== `comment`)); ) n3 = e3.pop()[1] + n3; 1898 return n3; 1899 } 1900 spacesAndCommentsFromStart(e3) { 1901 let t3, n3 = ``; 1902 for (; e3.length && (t3 = e3[0][0], !(t3 !== `space` && t3 !== `comment`)); ) n3 += e3.shift()[1]; 1903 return n3; 1904 } 1905 spacesFromEnd(e3) { 1906 let t3, n3 = ``; 1907 for (; e3.length && (t3 = e3[e3.length - 1][0], t3 === `space`); ) n3 = e3.pop()[1] + n3; 1908 return n3; 1909 } 1910 stringFrom(e3, t3) { 1911 let n3 = ``; 1912 for (let r3 = t3; r3 < e3.length; r3++) n3 += e3[r3][1]; 1913 return e3.splice(t3, e3.length - t3), n3; 1914 } 1915 unclosedBlock() { 1916 let e3 = this.current.source.start; 1917 throw this.input.error(`Unclosed block`, e3.line, e3.column); 1918 } 1919 unclosedBracket(e3) { 1920 throw this.input.error(`Unclosed bracket`, { 1921 offset: e3[2] 1922 }, { 1923 offset: e3[2] + 1 1924 }); 1925 } 1926 unexpectedClose(e3) { 1927 throw this.input.error(`Unexpected }`, { 1928 offset: e3[2] 1929 }, { 1930 offset: e3[2] + 1 1931 }); 1932 } 1933 unknownWord(e3) { 1934 throw this.input.error(`Unknown word ` + e3[0][1], { 1935 offset: e3[0][2] 1936 }, { 1937 offset: e3[0][2] + e3[0][1].length 1938 }); 1939 } 1940 unnamedAtrule(e3, t3) { 1941 throw this.input.error(`At-rule without name`, { 1942 offset: t3[2] 1943 }, { 1944 offset: t3[2] + t3[1].length 1945 }); 1946 } 1947 }; 1948 })); 1949 z = n(((e2, t2) => { 1950 var n2 = E(), r2 = j(), i2 = R(); 1951 function a2(e3, t3) { 1952 let n3 = new i2(new r2(e3, t3)); 1953 try { 1954 n3.parse(); 1955 } catch (e4) { 1956 throw e4; 1957 } 1958 return n3.root; 1959 } 1960 t2.exports = a2, a2.default = a2, n2.registerParse(a2); 1961 })); 1962 B = n(((e2, t2) => { 1963 var n2 = class { 1964 constructor(e3, t3 = {}) { 1965 if (this.type = `warning`, this.text = e3, t3.node && t3.node.source) { 1966 let e4 = t3.node.rangeBy(t3); 1967 this.line = e4.start.line, this.column = e4.start.column, this.endLine = e4.end.line, this.endColumn = e4.end.column; 1968 } 1969 for (let e4 in t3) this[e4] = t3[e4]; 1970 } 1971 toString() { 1972 return this.node ? this.node.error(this.text, { 1973 index: this.index, 1974 plugin: this.plugin, 1975 word: this.word 1976 }).message : this.plugin ? this.plugin + `: ` + this.text : this.text; 1977 } 1978 }; 1979 t2.exports = n2, n2.default = n2; 1980 })); 1981 V = n(((e2, t2) => { 1982 var n2 = B(), r2 = class { 1983 get content() { 1984 return this.css; 1985 } 1986 constructor(e3, t3, n3) { 1987 this.processor = e3, this.messages = [], this.root = t3, this.opts = n3, this.css = ``, this.map = void 0; 1988 } 1989 toString() { 1990 return this.css; 1991 } 1992 warn(e3, t3 = {}) { 1993 t3.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (t3.plugin = this.lastPlugin.postcssPlugin); 1994 let r3 = new n2(e3, t3); 1995 return this.messages.push(r3), r3; 1996 } 1997 warnings() { 1998 return this.messages.filter((e3) => e3.type === `warning`); 1999 } 2000 }; 2001 t2.exports = r2, r2.default = r2; 2002 })); 2003 H = n(((e2, t2) => { 2004 var n2 = {}; 2005 t2.exports = function(e3) { 2006 n2[e3] || (n2[e3] = true, typeof console < `u` && console.warn && console.warn(e3)); 2007 }; 2008 })); 2009 U = n(((e2, t2) => { 2010 var n2 = E(), r2 = O(), i2 = I(), a2 = z(), o2 = V(), s2 = M(), c2 = x(), { isClean: l2, my: u2 } = S(); 2011 H(); 2012 var d2 = { 2013 atrule: `AtRule`, 2014 comment: `Comment`, 2015 decl: `Declaration`, 2016 document: `Document`, 2017 root: `Root`, 2018 rule: `Rule` 2019 }, f2 = { 2020 AtRule: true, 2021 AtRuleExit: true, 2022 Comment: true, 2023 CommentExit: true, 2024 Declaration: true, 2025 DeclarationExit: true, 2026 Document: true, 2027 DocumentExit: true, 2028 Once: true, 2029 OnceExit: true, 2030 postcssPlugin: true, 2031 prepare: true, 2032 Root: true, 2033 RootExit: true, 2034 Rule: true, 2035 RuleExit: true 2036 }, p2 = { 2037 Once: true, 2038 postcssPlugin: true, 2039 prepare: true 2040 }, m2 = 0; 2041 function h2(e3) { 2042 return typeof e3 == `object` && typeof e3.then == `function`; 2043 } 2044 function g2(e3) { 2045 let t3 = false, n3 = d2[e3.type]; 2046 return e3.type === `decl` ? t3 = e3.prop.toLowerCase() : e3.type === `atrule` && (t3 = e3.name.toLowerCase()), t3 && e3.append ? [ 2047 n3, 2048 n3 + `-` + t3, 2049 m2, 2050 n3 + `Exit`, 2051 n3 + `Exit-` + t3 2052 ] : t3 ? [ 2053 n3, 2054 n3 + `-` + t3, 2055 n3 + `Exit`, 2056 n3 + `Exit-` + t3 2057 ] : e3.append ? [ 2058 n3, 2059 m2, 2060 n3 + `Exit` 2061 ] : [ 2062 n3, 2063 n3 + `Exit` 2064 ]; 2065 } 2066 function _2(e3) { 2067 let t3; 2068 return t3 = e3.type === `document` ? [ 2069 `Document`, 2070 m2, 2071 `DocumentExit` 2072 ] : e3.type === `root` ? [ 2073 `Root`, 2074 m2, 2075 `RootExit` 2076 ] : g2(e3), { 2077 eventIndex: 0, 2078 events: t3, 2079 iterator: 0, 2080 node: e3, 2081 visitorIndex: 0, 2082 visitors: [] 2083 }; 2084 } 2085 function v2(e3) { 2086 let t3 = [ 2087 e3 2088 ]; 2089 for (; t3.length > 0; ) { 2090 let e4 = t3.pop(); 2091 if (e4[l2] = false, e4.nodes) for (let n3 of e4.nodes) t3.push(n3); 2092 } 2093 return e3; 2094 } 2095 var y2 = {}, b2 = class e3 { 2096 get content() { 2097 return this.stringify().content; 2098 } 2099 get css() { 2100 return this.stringify().css; 2101 } 2102 get map() { 2103 return this.stringify().map; 2104 } 2105 get messages() { 2106 return this.sync().messages; 2107 } 2108 get opts() { 2109 return this.result.opts; 2110 } 2111 get processor() { 2112 return this.result.processor; 2113 } 2114 get root() { 2115 return this.sync().root; 2116 } 2117 get [Symbol.toStringTag]() { 2118 return `LazyResult`; 2119 } 2120 constructor(t3, r3, i3) { 2121 this.stringified = false, this.processed = false; 2122 let s3; 2123 if (typeof r3 == `object` && r3 && (r3.type === `root` || r3.type === `document`)) s3 = v2(r3); 2124 else if (r3 instanceof e3 || r3 instanceof o2) s3 = v2(r3.root), r3.map && (i3.map === void 0 && (i3.map = {}), i3.map.inline || (i3.map.inline = false), i3.map.prev = r3.map); 2125 else { 2126 let e4 = a2; 2127 i3.syntax && (e4 = i3.syntax.parse), i3.parser && (e4 = i3.parser), e4.parse && (e4 = e4.parse); 2128 try { 2129 s3 = e4(r3, i3); 2130 } catch (e5) { 2131 this.processed = true, this.error = e5; 2132 } 2133 s3 && !s3[u2] && n2.rebuild(s3); 2134 } 2135 this.result = new o2(t3, s3, i3), this.helpers = { 2136 ...y2, 2137 postcss: y2, 2138 result: this.result 2139 }, this.plugins = this.processor.plugins.map((e4) => typeof e4 == `object` && e4.prepare ? { 2140 ...e4, 2141 ...e4.prepare(this.result) 2142 } : e4); 2143 } 2144 async() { 2145 return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing); 2146 } 2147 catch(e4) { 2148 return this.async().catch(e4); 2149 } 2150 finally(e4) { 2151 return this.async().then(e4, e4); 2152 } 2153 getAsyncError() { 2154 throw Error(`Use process(css).then(cb) to work with async plugins`); 2155 } 2156 handleError(e4, t3) { 2157 let n3 = this.result.lastPlugin; 2158 try { 2159 t3 && t3.addToError(e4), this.error = e4, e4.name === `CssSyntaxError` && !e4.plugin ? (e4.plugin = n3.postcssPlugin, e4.setMessage()) : n3.postcssVersion; 2160 } catch (e5) { 2161 console && console.error && console.error(e5); 2162 } 2163 return e4; 2164 } 2165 prepareVisitors() { 2166 this.listeners = {}; 2167 let e4 = (e5, t3, n3) => { 2168 this.listeners[t3] || (this.listeners[t3] = []), this.listeners[t3].push([ 2169 e5, 2170 n3 2171 ]); 2172 }; 2173 for (let t3 of this.plugins) if (typeof t3 == `object`) for (let n3 in t3) { 2174 if (!f2[n3] && /^[A-Z]/.test(n3)) throw Error(`Unknown event ${n3} in ${t3.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`); 2175 if (!p2[n3]) if (typeof t3[n3] == `object`) for (let r3 in t3[n3]) r3 === `*` ? e4(t3, n3, t3[n3][r3]) : e4(t3, n3 + `-` + r3.toLowerCase(), t3[n3][r3]); 2176 else typeof t3[n3] == `function` && e4(t3, n3, t3[n3]); 2177 } 2178 this.hasListener = Object.keys(this.listeners).length > 0; 2179 } 2180 async runAsync() { 2181 this.plugin = 0; 2182 for (let e4 = 0; e4 < this.plugins.length; e4++) { 2183 let t3 = this.plugins[e4], n3 = this.runOnRoot(t3); 2184 if (h2(n3)) try { 2185 await n3; 2186 } catch (e5) { 2187 throw this.handleError(e5); 2188 } 2189 } 2190 if (this.prepareVisitors(), this.hasListener) { 2191 let e4 = this.result.root; 2192 for (; !e4[l2]; ) { 2193 e4[l2] = true; 2194 let t3 = [ 2195 _2(e4) 2196 ]; 2197 for (; t3.length > 0; ) { 2198 let e5 = this.visitTick(t3); 2199 if (h2(e5)) try { 2200 await e5; 2201 } catch (e6) { 2202 let n3 = t3[t3.length - 1].node; 2203 throw this.handleError(e6, n3); 2204 } 2205 } 2206 } 2207 if (this.listeners.OnceExit) for (let [t3, n3] of this.listeners.OnceExit) { 2208 this.result.lastPlugin = t3; 2209 try { 2210 if (e4.type === `document`) { 2211 let t4 = e4.nodes.map((e5) => n3(e5, this.helpers)); 2212 await Promise.all(t4); 2213 } else await n3(e4, this.helpers); 2214 } catch (e5) { 2215 throw this.handleError(e5); 2216 } 2217 } 2218 } 2219 return this.processed = true, this.stringify(); 2220 } 2221 runOnRoot(e4) { 2222 this.result.lastPlugin = e4; 2223 try { 2224 if (typeof e4 == `object` && e4.Once) { 2225 if (this.result.root.type === `document`) { 2226 let t3 = this.result.root.nodes.map((t4) => e4.Once(t4, this.helpers)); 2227 return h2(t3[0]) ? Promise.all(t3) : t3; 2228 } 2229 return e4.Once(this.result.root, this.helpers); 2230 } else if (typeof e4 == `function`) return e4(this.result.root, this.result); 2231 } catch (e5) { 2232 throw this.handleError(e5); 2233 } 2234 } 2235 stringify() { 2236 if (this.error) throw this.error; 2237 if (this.stringified) return this.result; 2238 this.stringified = true, this.sync(); 2239 let e4 = this.result.opts, t3 = c2; 2240 e4.syntax && (t3 = e4.syntax.stringify), e4.stringifier && (t3 = e4.stringifier), t3.stringify && (t3 = t3.stringify); 2241 let n3 = this.result.root.source; 2242 if (e4.map === void 0 && !(n3 && n3.input && n3.input.map)) { 2243 let e5 = ``; 2244 return t3(this.result.root, (t4) => { 2245 e5 += t4; 2246 }), this.result.css = e5, this.result; 2247 } 2248 let r3 = new i2(t3, this.result.root, this.result.opts).generate(); 2249 return this.result.css = r3[0], this.result.map = r3[1], this.result; 2250 } 2251 sync() { 2252 if (this.error) throw this.error; 2253 if (this.processed) return this.result; 2254 if (this.processed = true, this.processing) throw this.getAsyncError(); 2255 for (let e4 of this.plugins) if (h2(this.runOnRoot(e4))) throw this.getAsyncError(); 2256 if (this.prepareVisitors(), this.hasListener) { 2257 let e4 = this.result.root; 2258 for (; !e4[l2]; ) e4[l2] = true, this.walkSync(e4); 2259 if (this.listeners.OnceExit) if (e4.type === `document`) for (let t3 of e4.nodes) this.visitSync(this.listeners.OnceExit, t3); 2260 else this.visitSync(this.listeners.OnceExit, e4); 2261 } 2262 return this.result; 2263 } 2264 then(e4, t3) { 2265 return this.async().then(e4, t3); 2266 } 2267 toString() { 2268 return this.css; 2269 } 2270 visitSync(e4, t3) { 2271 for (let [n3, r3] of e4) { 2272 this.result.lastPlugin = n3; 2273 let e5; 2274 try { 2275 e5 = r3(t3, this.helpers); 2276 } catch (e6) { 2277 throw this.handleError(e6, t3.proxyOf); 2278 } 2279 if (t3.type !== `root` && t3.type !== `document` && !t3.parent) return true; 2280 if (h2(e5)) throw this.getAsyncError(); 2281 } 2282 } 2283 visitTick(e4) { 2284 let t3 = e4[e4.length - 1], { node: n3, visitors: r3 } = t3; 2285 if (n3.type !== `root` && n3.type !== `document` && !n3.parent) { 2286 e4.pop(); 2287 return; 2288 } 2289 if (r3.length > 0 && t3.visitorIndex < r3.length) { 2290 let [e5, i4] = r3[t3.visitorIndex]; 2291 t3.visitorIndex += 1, t3.visitorIndex === r3.length && (t3.visitors = [], t3.visitorIndex = 0), this.result.lastPlugin = e5; 2292 try { 2293 return i4(n3.toProxy(), this.helpers); 2294 } catch (e6) { 2295 throw this.handleError(e6, n3); 2296 } 2297 } 2298 if (t3.iterator !== 0) { 2299 let r4 = t3.iterator, i4; 2300 for (; i4 = n3.nodes[n3.indexes[r4]]; ) if (n3.indexes[r4] += 1, !i4[l2]) { 2301 i4[l2] = true, e4.push(_2(i4)); 2302 return; 2303 } 2304 t3.iterator = 0, delete n3.indexes[r4]; 2305 } 2306 let i3 = t3.events; 2307 for (; t3.eventIndex < i3.length; ) { 2308 let e5 = i3[t3.eventIndex]; 2309 if (t3.eventIndex += 1, e5 === m2) { 2310 n3.nodes && n3.nodes.length && (n3[l2] = true, t3.iterator = n3.getIterator()); 2311 return; 2312 } else if (this.listeners[e5]) { 2313 t3.visitors = this.listeners[e5]; 2314 return; 2315 } 2316 } 2317 e4.pop(); 2318 } 2319 walkSync(e4) { 2320 e4[l2] = true; 2321 let t3 = [ 2322 { 2323 eventIndex: 0, 2324 events: g2(e4), 2325 iterator: 0, 2326 node: e4 2327 } 2328 ]; 2329 for (; t3.length > 0; ) { 2330 let e5 = t3[t3.length - 1], n3 = e5.node; 2331 if (e5.iterator !== 0) { 2332 let r3 = e5.iterator, i3, a3 = false; 2333 for (; i3 = n3.nodes[n3.indexes[r3]]; ) if (n3.indexes[r3] += 1, !i3[l2]) { 2334 i3[l2] = true, t3.push({ 2335 eventIndex: 0, 2336 events: g2(i3), 2337 iterator: 0, 2338 node: i3 2339 }), a3 = true; 2340 break; 2341 } 2342 if (a3) continue; 2343 e5.iterator = 0, delete n3.indexes[r3]; 2344 } 2345 if (e5.eventIndex < e5.events.length) { 2346 let r3 = e5.events[e5.eventIndex]; 2347 if (e5.eventIndex += 1, r3 === m2) n3.nodes && n3.nodes.length && (e5.iterator = n3.getIterator()); 2348 else { 2349 let e6 = this.listeners[r3]; 2350 e6 && this.visitSync(e6, n3.toProxy()) && t3.pop(); 2351 } 2352 continue; 2353 } 2354 t3.pop(); 2355 } 2356 } 2357 warnings() { 2358 return this.sync().warnings(); 2359 } 2360 }; 2361 b2.registerPostcss = (e3) => { 2362 y2 = e3; 2363 }, t2.exports = b2, b2.default = b2, s2.registerLazyResult(b2), r2.registerLazyResult(b2); 2364 })); 2365 W = n(((e2, t2) => { 2366 var n2 = I(), r2 = z(), i2 = V(), a2 = x(); 2367 H(); 2368 var o2 = class { 2369 get content() { 2370 return this.result.css; 2371 } 2372 get css() { 2373 return this.result.css; 2374 } 2375 get map() { 2376 return this.result.map; 2377 } 2378 get messages() { 2379 return []; 2380 } 2381 get opts() { 2382 return this.result.opts; 2383 } 2384 get processor() { 2385 return this.result.processor; 2386 } 2387 get root() { 2388 if (this._root) return this._root; 2389 let e3, t3 = r2; 2390 try { 2391 e3 = t3(this._css, this._opts); 2392 } catch (e4) { 2393 this.error = e4; 2394 } 2395 if (this.error) throw this.error; 2396 return this._root = e3, e3; 2397 } 2398 get [Symbol.toStringTag]() { 2399 return `NoWorkResult`; 2400 } 2401 constructor(e3, t3, r3) { 2402 t3 = t3.toString(), this.stringified = false, this._processor = e3, this._css = t3, this._opts = r3, this._map = void 0; 2403 let o3 = a2; 2404 this.result = new i2(this._processor, void 0, this._opts), this.result.css = t3; 2405 let s2 = this; 2406 Object.defineProperty(this.result, "root", { 2407 get() { 2408 return s2.root; 2409 } 2410 }); 2411 let c2 = new n2(o3, void 0, this._opts, t3); 2412 if (c2.isMap()) { 2413 let [e4, t4] = c2.generate(); 2414 e4 && (this.result.css = e4), t4 && (this.result.map = t4); 2415 } else c2.clearAnnotation(), this.result.css = c2.css; 2416 } 2417 async() { 2418 return this.error ? Promise.reject(this.error) : Promise.resolve(this.result); 2419 } 2420 catch(e3) { 2421 return this.async().catch(e3); 2422 } 2423 finally(e3) { 2424 return this.async().then(e3, e3); 2425 } 2426 sync() { 2427 if (this.error) throw this.error; 2428 return this.result; 2429 } 2430 then(e3, t3) { 2431 return this.async().then(e3, t3); 2432 } 2433 toString() { 2434 return this._css; 2435 } 2436 warnings() { 2437 return []; 2438 } 2439 }; 2440 t2.exports = o2, o2.default = o2; 2441 })); 2442 G = n(((e2, t2) => { 2443 var n2 = O(), r2 = U(), i2 = W(), a2 = M(), o2 = class { 2444 constructor(e3 = []) { 2445 this.version = `8.5.19`, this.plugins = this.normalize(e3); 2446 } 2447 normalize(e3) { 2448 let t3 = []; 2449 for (let n3 of e3) if (n3.postcss === true ? n3 = n3() : n3.postcss && (n3 = n3.postcss), typeof n3 == `object` && Array.isArray(n3.plugins)) t3 = t3.concat(n3.plugins); 2450 else if (typeof n3 == `object` && n3.postcssPlugin) t3.push(n3); 2451 else if (typeof n3 == `function`) t3.push(n3); 2452 else if (!(typeof n3 == `object` && (n3.parse || n3.stringify))) throw Error(n3 + ` is not a PostCSS plugin`); 2453 return t3; 2454 } 2455 process(e3, t3 = {}) { 2456 return !this.plugins.length && !t3.parser && !t3.stringifier && !t3.syntax ? new i2(this, e3, t3) : new r2(this, e3, t3); 2457 } 2458 use(e3) { 2459 return this.plugins = this.plugins.concat(this.normalize([ 2460 e3 2461 ])), this; 2462 } 2463 }; 2464 t2.exports = o2, o2.default = o2, a2.registerProcessor(o2), n2.registerProcessor(o2); 2465 })); 2466 K = n(((e2, t2) => { 2467 var n2 = D(), r2 = w(), i2 = E(), a2 = y(), o2 = T(), s2 = O(), c2 = F(), l2 = j(), u2 = U(), d2 = N(), f2 = C(), p2 = z(), m2 = G(), h2 = V(), g2 = M(), _2 = P(), v2 = x(), b2 = B(); 2468 function S2(...e3) { 2469 return e3.length === 1 && Array.isArray(e3[0]) && (e3 = e3[0]), new m2(e3); 2470 } 2471 S2.plugin = function(e3, t3) { 2472 let n3 = false;
2473 function r3(...r4) { 2474 console && console.warn && !n3 && (n3 = true, console.warn(e3 + `: postcss.plugin was deprecated. Migration guide: 2475https://evilmartians.com/chronicles/postcss-8-plugin-migration`), {}.LANG && {}.LANG.startsWith(`cn`) && console.warn(e3 + `: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357: 2476https://www.w3ctech.com/topic/2226`)); 2477 let i4 = t3(...r4); 2478 return i4.postcssPlugin = e3, i4.postcssVersion = new m2().version, i4; 2479 } 2480 let i3; 2481 return Object.defineProperty(r3, "postcss", { 2482 get() { 2483 return i3 || (i3 = r3()), i3; 2484 } 2485 }), r3.process = function(e4, t4, n4) { 2486 return S2([ 2487 r3(n4) 2488 ]).process(e4, t4); 2489 }, r3; 2490 }, S2.stringify = v2, S2.parse = p2, S2.fromJSON = c2, S2.list = d2, S2.comment = (e3) => new r2(e3), S2.atRule = (e3) => new n2(e3), S2.decl = (e3) => new o2(e3), S2.rule = (e3) => new _2(e3), S2.root = (e3) => new g2(e3), S2.document = (e3) => new s2(e3), S2.CssSyntaxError = a2, S2.Declaration = o2, S2.Container = i2, S2.Processor = m2, S2.Document = s2, S2.Comment = r2, S2.Warning = b2, S2.AtRule = n2, S2.Result = h2, S2.Input = l2, S2.Rule = _2, S2.Root = g2, S2.Node = f2, u2.registerPostcss(S2), t2.exports = S2, S2.default = S2; 2491 })); 2492 q = t(K(), 1); 2493 J = q.default; 2494 q.default.stringify, q.default.fromJSON, q.default.plugin, q.default.parse, q.default.list, q.default.document, q.default.comment, q.default.atRule, q.default.rule, q.default.decl, q.default.root, q.default.CssSyntaxError, q.default.Declaration, q.default.Container, q.default.Processor, q.default.Document, q.default.Comment, q.default.Warning, q.default.AtRule, q.default.Result, q.default.Input, q.default.Rule, q.default.Root, q.default.Node; 2495 Y = n(((e2, t2) => { 2496 var n2 = {}.hasOwnProperty, r2 = function(e3, t3) { 2497 if (!e3) return t3; 2498 var r3 = {}; 2499 for (var i3 in t3) r3[i3] = n2.call(e3, i3) ? e3[i3] : t3[i3]; 2500 return r3; 2501 }, i2 = /[ -,\.\/:-@\[-\^`\{-~]/, a2 = /[ -,\.\/:-@\[\]\^`\{-~]/, o2 = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, s2 = function e3(t3, n3) { 2502 n3 = r2(n3, e3.options), n3.quotes != `single` && n3.quotes != `double` && (n3.quotes = `single`); 2503 for (var s3 = n3.quotes == `double` ? `"` : `'`, c2 = n3.isIdentifier, l2 = t3.charAt(0), u2 = ``, d2 = 0, f2 = t3.length; d2 < f2; ) { 2504 var p2 = t3.charAt(d2++), m2 = p2.charCodeAt(), h2 = void 0; 2505 if (m2 < 32 || m2 > 126) { 2506 if (m2 >= 55296 && m2 <= 56319 && d2 < f2) { 2507 var g2 = t3.charCodeAt(d2++); 2508 (g2 & 64512) == 56320 ? m2 = ((m2 & 1023) << 10) + (g2 & 1023) + 65536 : d2--; 2509 } 2510 h2 = `\\` + m2.toString(16).toUpperCase() + ` `; 2511 } else h2 = n3.escapeEverything ? i2.test(p2) ? `\\` + p2 : `\\` + m2.toString(16).toUpperCase() + ` ` : /[\t\n\f\r\x0B]/.test(p2) ? `\\` + m2.toString(16).toUpperCase() + ` ` : p2 == `\\` || !c2 && (p2 == `"` && s3 == p2 || p2 == `'` && s3 == p2) || c2 && a2.test(p2) ? `\\` + p2 : p2; 2512 u2 += h2; 2513 } 2514 return c2 && (/^-[-\d]/.test(u2) ? u2 = `\\-` + u2.slice(1) : /\d/.test(l2) && (u2 = `\\3` + l2 + ` `
2514+ u2.slice(1))), u2 = u2.replace(o2, function(e4, t4, n4) { 2515 return t4 && t4.length % 2 ? e4 : (t4 || ``) + n4; 2516 }), !c2 && n3.wrap ? s3 + u2 + s3 : u2; 2517 }; 2518 s2.options = { 2519 escapeEverything: false, 2520 isIdentifier: false, 2521 quotes: `single`, 2522 wrap: false 2523 }, s2.version = `3.0.0`, t2.exports = s2; 2524 })); 2525})(); 2526export { 2527 __tla, 2528 L as a, 2529 g as c, 2530 R as i, 2531 m as l, 2532 J as n, 2533 w as o, 2534 K as r, 2535 v as s, 2536 Y as t, 2537 p as u 2538};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.