@forsakringskassan/docs-generator 2.40.3 → 2.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{create-markdown-renderer-aMNI8hLC.mjs → create-markdown-renderer-Dr2VfIYy.mjs} +3 -3
- package/dist/{create-markdown-renderer-aMNI8hLC.mjs.map → create-markdown-renderer-Dr2VfIYy.mjs.map} +1 -1
- package/dist/{format-code.worker-hU0IS7DM.mjs → format-code.worker-CsOAnpUF.mjs} +2 -2
- package/dist/{format-code.worker-hU0IS7DM.mjs.map → format-code.worker-CsOAnpUF.mjs.map} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/markdown.mjs +2 -2
- package/dist/runtime.mjs +126 -64
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/{vendor-tIJeYoyt.mjs → vendor-DX88DJvo.mjs} +160 -23
- package/dist/{vendor-tIJeYoyt.mjs.map → vendor-DX88DJvo.mjs.map} +1 -1
- package/package.json +1 -1
|
@@ -16403,6 +16403,10 @@ function requireUtils$1 () {
|
|
|
16403
16403
|
const EOF = finalEOL ? EOL : '';
|
|
16404
16404
|
const str = JSON.stringify(obj, replacer, spaces);
|
|
16405
16405
|
|
|
16406
|
+
if (str === undefined) {
|
|
16407
|
+
throw new TypeError(`Converting ${typeof obj} value to JSON is not supported`)
|
|
16408
|
+
}
|
|
16409
|
+
|
|
16406
16410
|
return str.replace(/\n/g, EOL) + EOF
|
|
16407
16411
|
}
|
|
16408
16412
|
|
|
@@ -17038,6 +17042,7 @@ class Logger {
|
|
|
17038
17042
|
}
|
|
17039
17043
|
forward(args, lvl, prefix, debugOnly) {
|
|
17040
17044
|
if (debugOnly && !this.debug) return null;
|
|
17045
|
+
args = args.map(a => isString(a) ? a.replace(/[\r\n\x00-\x1F\x7F]/g, ' ') : a);
|
|
17041
17046
|
if (isString(args[0])) args[0] = `${prefix}${this.prefix} ${args[0]}`;
|
|
17042
17047
|
return this.logger[lvl](args);
|
|
17043
17048
|
}
|
|
@@ -17943,8 +17948,8 @@ class Interpolator {
|
|
|
17943
17948
|
this.prefix = prefix ? regexEscape(prefix) : prefixEscaped || '{{';
|
|
17944
17949
|
this.suffix = suffix ? regexEscape(suffix) : suffixEscaped || '}}';
|
|
17945
17950
|
this.formatSeparator = formatSeparator || ',';
|
|
17946
|
-
this.unescapePrefix = unescapeSuffix ? '' : unescapePrefix
|
|
17947
|
-
this.unescapeSuffix = this.unescapePrefix ? '' : unescapeSuffix
|
|
17951
|
+
this.unescapePrefix = unescapeSuffix ? '' : unescapePrefix ? regexEscape(unescapePrefix) : '-';
|
|
17952
|
+
this.unescapeSuffix = this.unescapePrefix ? '' : unescapeSuffix ? regexEscape(unescapeSuffix) : '';
|
|
17948
17953
|
this.nestingPrefix = nestingPrefix ? regexEscape(nestingPrefix) : nestingPrefixEscaped || regexEscape('$t(');
|
|
17949
17954
|
this.nestingSuffix = nestingSuffix ? regexEscape(nestingSuffix) : nestingSuffixEscaped || regexEscape(')');
|
|
17950
17955
|
this.nestingOptionsSeparator = nestingOptionsSeparator || ',';
|
|
@@ -17991,6 +17996,9 @@ class Interpolator {
|
|
|
17991
17996
|
});
|
|
17992
17997
|
};
|
|
17993
17998
|
this.resetRegExp();
|
|
17999
|
+
if (!this.escapeValue && typeof str === 'string' && /\$t\([^)]*\{[^}]*\{\{/.test(str)) {
|
|
18000
|
+
this.logger.warn('nesting options string contains interpolated variables with escapeValue: false — ' + 'if any of those values are attacker-controlled they can inject additional ' + 'nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing ' + 'it to t(), or keep escapeValue: true.');
|
|
18001
|
+
}
|
|
17994
18002
|
const missingInterpolationHandler = options?.missingInterpolationHandler || this.options.missingInterpolationHandler;
|
|
17995
18003
|
const skipOnVariables = options?.interpolation?.skipOnVariables !== undefined ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
17996
18004
|
const todos = [{
|
|
@@ -18669,7 +18677,7 @@ class I18n extends EventEmitter {
|
|
|
18669
18677
|
deferred.resolve(t);
|
|
18670
18678
|
callback(err, t);
|
|
18671
18679
|
};
|
|
18672
|
-
if (this.languages && !this.isInitialized) return finish(null, this.t.bind(this));
|
|
18680
|
+
if ((this.languages || this.isLanguageChangingTo) && !this.isInitialized) return finish(null, this.t.bind(this));
|
|
18673
18681
|
this.changeLanguage(this.options.lng, finish);
|
|
18674
18682
|
};
|
|
18675
18683
|
if (this.options.resources || !this.options.initAsync) {
|
|
@@ -21839,6 +21847,82 @@ function canonicalize(obj, stack, replacementStack, replacer, key) {
|
|
|
21839
21847
|
return canonicalizedObj;
|
|
21840
21848
|
}
|
|
21841
21849
|
|
|
21850
|
+
/**
|
|
21851
|
+
* Returns true if the filename contains characters that require C-style
|
|
21852
|
+
* quoting (as used by Git and GNU diffutils in diff output).
|
|
21853
|
+
*/
|
|
21854
|
+
function needsQuoting(s) {
|
|
21855
|
+
for (let i = 0; i < s.length; i++) {
|
|
21856
|
+
if (s[i] < '\x20' || s[i] > '\x7e' || s[i] === '"' || s[i] === '\\') {
|
|
21857
|
+
return true;
|
|
21858
|
+
}
|
|
21859
|
+
}
|
|
21860
|
+
return false;
|
|
21861
|
+
}
|
|
21862
|
+
/**
|
|
21863
|
+
* C-style quotes a filename, encoding special characters as escape sequences
|
|
21864
|
+
* and non-ASCII bytes as octal escapes. This is the inverse of
|
|
21865
|
+
* `parseQuotedFileName` in parse.ts.
|
|
21866
|
+
*
|
|
21867
|
+
* Non-ASCII bytes are encoded as UTF-8 before being emitted as octal escapes.
|
|
21868
|
+
* This matches the behaviour of both Git and GNU diffutils, which always emit
|
|
21869
|
+
* UTF-8 octal escapes regardless of the underlying filesystem encoding (e.g.
|
|
21870
|
+
* Git for Windows converts from NTFS's UTF-16 to UTF-8 internally).
|
|
21871
|
+
*
|
|
21872
|
+
* If the filename doesn't need quoting, returns it as-is.
|
|
21873
|
+
*/
|
|
21874
|
+
function quoteFileNameIfNeeded(s) {
|
|
21875
|
+
if (!needsQuoting(s)) {
|
|
21876
|
+
return s;
|
|
21877
|
+
}
|
|
21878
|
+
let result = '"';
|
|
21879
|
+
const bytes = new TextEncoder().encode(s);
|
|
21880
|
+
let i = 0;
|
|
21881
|
+
while (i < bytes.length) {
|
|
21882
|
+
const b = bytes[i];
|
|
21883
|
+
// See https://en.wikipedia.org/wiki/Escape_sequences_in_C#Escape_sequences
|
|
21884
|
+
if (b === 0x07) {
|
|
21885
|
+
result += '\\a';
|
|
21886
|
+
}
|
|
21887
|
+
else if (b === 0x08) {
|
|
21888
|
+
result += '\\b';
|
|
21889
|
+
}
|
|
21890
|
+
else if (b === 0x09) {
|
|
21891
|
+
result += '\\t';
|
|
21892
|
+
}
|
|
21893
|
+
else if (b === 0x0a) {
|
|
21894
|
+
result += '\\n';
|
|
21895
|
+
}
|
|
21896
|
+
else if (b === 0x0b) {
|
|
21897
|
+
result += '\\v';
|
|
21898
|
+
}
|
|
21899
|
+
else if (b === 0x0c) {
|
|
21900
|
+
result += '\\f';
|
|
21901
|
+
}
|
|
21902
|
+
else if (b === 0x0d) {
|
|
21903
|
+
result += '\\r';
|
|
21904
|
+
}
|
|
21905
|
+
else if (b === 0x22) {
|
|
21906
|
+
result += '\\"';
|
|
21907
|
+
}
|
|
21908
|
+
else if (b === 0x5c) {
|
|
21909
|
+
result += '\\\\';
|
|
21910
|
+
}
|
|
21911
|
+
else if (b >= 0x20 && b <= 0x7e) {
|
|
21912
|
+
// Just a printable ASCII character that is neither a double quote nor a
|
|
21913
|
+
// backslash; no need to escape it.
|
|
21914
|
+
result += String.fromCharCode(b);
|
|
21915
|
+
}
|
|
21916
|
+
else {
|
|
21917
|
+
// Either part of a non-ASCII character or a control character without a
|
|
21918
|
+
// special escape sequence; needs escaping as a 3-digit octal escape
|
|
21919
|
+
result += '\\' + b.toString(8).padStart(3, '0');
|
|
21920
|
+
}
|
|
21921
|
+
i++;
|
|
21922
|
+
}
|
|
21923
|
+
result += '"';
|
|
21924
|
+
return result;
|
|
21925
|
+
}
|
|
21842
21926
|
const INCLUDE_HEADERS = {
|
|
21843
21927
|
includeIndex: true,
|
|
21844
21928
|
includeUnderline: true,
|
|
@@ -21971,14 +22055,24 @@ function structuredPatch$1(oldFileName, newFileName, oldStr, newStr, oldHeader,
|
|
|
21971
22055
|
}
|
|
21972
22056
|
/**
|
|
21973
22057
|
* creates a unified diff patch.
|
|
21974
|
-
*
|
|
22058
|
+
*
|
|
22059
|
+
* @param patch either a single structured patch object (as returned by `structuredPatch`) or an
|
|
22060
|
+
* array of them (as returned by `parsePatch`).
|
|
22061
|
+
* @param headerOptions behaves the same as the `headerOptions` option of `createTwoFilesPatch`.
|
|
22062
|
+
* Ignored for patches where `isGit` is `true`.
|
|
22063
|
+
*
|
|
22064
|
+
* When a patch has `isGit: true`, `formatPatch` output is changed to more closely match Git's
|
|
22065
|
+
* output: it emits a `diff --git` header, emits Git extended headers as appropriate based on
|
|
22066
|
+
* properties like `isRename`, `isCreate`, `newMode`, etc, and will omit `---`/`+++` file
|
|
22067
|
+
* headers for patches with no hunks (e.g. renames without content changes).
|
|
21975
22068
|
*/
|
|
21976
22069
|
function formatPatch$1(patch, headerOptions) {
|
|
22070
|
+
var _a, _b, _c, _d, _e, _f;
|
|
21977
22071
|
if (!headerOptions) {
|
|
21978
22072
|
headerOptions = INCLUDE_HEADERS;
|
|
21979
22073
|
}
|
|
21980
22074
|
if (Array.isArray(patch)) {
|
|
21981
|
-
if (patch.length > 1 && !headerOptions.includeFileHeaders) {
|
|
22075
|
+
if (patch.length > 1 && !headerOptions.includeFileHeaders && !patch.every(p => p.isGit)) {
|
|
21982
22076
|
throw new Error('Cannot omit file headers on a multi-file patch. '
|
|
21983
22077
|
+ '(The result would be unparseable; how would a tool trying to apply '
|
|
21984
22078
|
+ 'the patch know which changes are to which file?)');
|
|
@@ -21986,29 +22080,72 @@ function formatPatch$1(patch, headerOptions) {
|
|
|
21986
22080
|
return patch.map(p => formatPatch$1(p, headerOptions)).join('\n');
|
|
21987
22081
|
}
|
|
21988
22082
|
const ret = [];
|
|
21989
|
-
|
|
21990
|
-
|
|
22083
|
+
// Git patches have a fixed header format (diff --git, extended headers,
|
|
22084
|
+
// and ---/+++ when hunks are present), so headerOptions is ignored.
|
|
22085
|
+
if (patch.isGit) {
|
|
22086
|
+
headerOptions = INCLUDE_HEADERS;
|
|
22087
|
+
// Emit Git-style diff --git header and extended headers.
|
|
22088
|
+
// Git never puts /dev/null in the "diff --git" line; for file
|
|
22089
|
+
// creations/deletions it uses the real filename on both sides.
|
|
22090
|
+
if (!patch.oldFileName) {
|
|
22091
|
+
throw new Error('oldFileName must be specified for Git patches');
|
|
22092
|
+
}
|
|
22093
|
+
if (!patch.newFileName) {
|
|
22094
|
+
throw new Error('newFileName must be specified for Git patches');
|
|
22095
|
+
}
|
|
22096
|
+
let gitOldName = patch.oldFileName;
|
|
22097
|
+
let gitNewName = patch.newFileName;
|
|
22098
|
+
if (patch.isCreate && gitOldName === '/dev/null') {
|
|
22099
|
+
gitOldName = gitNewName.replace(/^b\//, 'a/');
|
|
22100
|
+
}
|
|
22101
|
+
else if (patch.isDelete && gitNewName === '/dev/null') {
|
|
22102
|
+
gitNewName = gitOldName.replace(/^a\//, 'b/');
|
|
22103
|
+
}
|
|
22104
|
+
ret.push('diff --git ' + quoteFileNameIfNeeded(gitOldName) + ' ' + quoteFileNameIfNeeded(gitNewName));
|
|
22105
|
+
if (patch.isDelete) {
|
|
22106
|
+
ret.push('deleted file mode ' + ((_a = patch.oldMode) !== null && _a !== void 0 ? _a : '100644'));
|
|
22107
|
+
}
|
|
22108
|
+
if (patch.isCreate) {
|
|
22109
|
+
ret.push('new file mode ' + ((_b = patch.newMode) !== null && _b !== void 0 ? _b : '100644'));
|
|
22110
|
+
}
|
|
22111
|
+
if (patch.oldMode && patch.newMode && !patch.isDelete && !patch.isCreate) {
|
|
22112
|
+
ret.push('old mode ' + patch.oldMode);
|
|
22113
|
+
ret.push('new mode ' + patch.newMode);
|
|
22114
|
+
}
|
|
22115
|
+
if (patch.isRename) {
|
|
22116
|
+
ret.push('rename from ' + quoteFileNameIfNeeded(((_c = patch.oldFileName) !== null && _c !== void 0 ? _c : '').replace(/^a\//, '')));
|
|
22117
|
+
ret.push('rename to ' + quoteFileNameIfNeeded(((_d = patch.newFileName) !== null && _d !== void 0 ? _d : '').replace(/^b\//, '')));
|
|
22118
|
+
}
|
|
22119
|
+
if (patch.isCopy) {
|
|
22120
|
+
ret.push('copy from ' + quoteFileNameIfNeeded(((_e = patch.oldFileName) !== null && _e !== void 0 ? _e : '').replace(/^a\//, '')));
|
|
22121
|
+
ret.push('copy to ' + quoteFileNameIfNeeded(((_f = patch.newFileName) !== null && _f !== void 0 ? _f : '').replace(/^b\//, '')));
|
|
22122
|
+
}
|
|
21991
22123
|
}
|
|
21992
|
-
|
|
21993
|
-
|
|
22124
|
+
else {
|
|
22125
|
+
if (headerOptions.includeIndex && patch.oldFileName == patch.newFileName && patch.oldFileName !== undefined) {
|
|
22126
|
+
ret.push('Index: ' + patch.oldFileName);
|
|
22127
|
+
}
|
|
22128
|
+
if (headerOptions.includeUnderline) {
|
|
22129
|
+
ret.push('===================================================================');
|
|
22130
|
+
}
|
|
21994
22131
|
}
|
|
21995
|
-
|
|
21996
|
-
|
|
21997
|
-
|
|
22132
|
+
// Emit --- / +++ file headers. For Git patches with no hunks (e.g.
|
|
22133
|
+
// pure renames, mode-only changes), Git omits these, so we do too.
|
|
22134
|
+
const hasHunks = patch.hunks.length > 0;
|
|
22135
|
+
if (headerOptions.includeFileHeaders && patch.oldFileName !== undefined && patch.newFileName !== undefined
|
|
22136
|
+
&& (!patch.isGit || hasHunks)) {
|
|
22137
|
+
ret.push('--- ' + quoteFileNameIfNeeded(patch.oldFileName) + (patch.oldHeader ? '\t' + patch.oldHeader : ''));
|
|
22138
|
+
ret.push('+++ ' + quoteFileNameIfNeeded(patch.newFileName) + (patch.newHeader ? '\t' + patch.newHeader : ''));
|
|
21998
22139
|
}
|
|
21999
22140
|
for (let i = 0; i < patch.hunks.length; i++) {
|
|
22000
22141
|
const hunk = patch.hunks[i];
|
|
22001
22142
|
// Unified Diff Format quirk: If the chunk size is 0,
|
|
22002
22143
|
// the first number is one lower than one would expect.
|
|
22003
22144
|
// https://www.artima.com/weblogs/viewpost.jsp?thread=164293
|
|
22004
|
-
|
|
22005
|
-
|
|
22006
|
-
|
|
22007
|
-
|
|
22008
|
-
hunk.newStart -= 1;
|
|
22009
|
-
}
|
|
22010
|
-
ret.push('@@ -' + hunk.oldStart + ',' + hunk.oldLines
|
|
22011
|
-
+ ' +' + hunk.newStart + ',' + hunk.newLines
|
|
22145
|
+
const oldStart = hunk.oldLines === 0 ? hunk.oldStart - 1 : hunk.oldStart;
|
|
22146
|
+
const newStart = hunk.newLines === 0 ? hunk.newStart - 1 : hunk.newStart;
|
|
22147
|
+
ret.push('@@ -' + oldStart + ',' + hunk.oldLines
|
|
22148
|
+
+ ' +' + newStart + ',' + hunk.newLines
|
|
22012
22149
|
+ ' @@');
|
|
22013
22150
|
for (const line of hunk.lines) {
|
|
22014
22151
|
ret.push(line);
|
|
@@ -68843,7 +68980,7 @@ async function getParser(file, options8) {
|
|
|
68843
68980
|
var get_file_info_default = getFileInfo;
|
|
68844
68981
|
|
|
68845
68982
|
// src/main/version.evaluate.js
|
|
68846
|
-
var version_evaluate_default = "3.8.
|
|
68983
|
+
var version_evaluate_default = "3.8.3";
|
|
68847
68984
|
|
|
68848
68985
|
// src/utilities/public.js
|
|
68849
68986
|
var public_exports = {};
|
|
@@ -69723,7 +69860,7 @@ $1 $2
|
|
|
69723
69860
|
|
|
69724
69861
|
`)+i}var Gn=t=>Fn(ge$1(t).content),Yn=t=>$n(ge$1(t).content),Vn=t=>{let{frontMatter:e,content:s}=ge$1(t);return (e?e.raw+`
|
|
69725
69862
|
|
|
69726
|
-
`:"")+Wn(s)};var cc=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function zn(t){return t.findAncestor(e=>e.type==="css-decl")?.prop?.toLowerCase()}var fc=new Set(["initial","inherit","unset","revert"]);function jn$1(t){return fc.has(t.toLowerCase())}function Hn(t,e){return t.findAncestor(r=>r.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(e.toLowerCase())}function Ie(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function qe(t,e){return t.findAncestor(r=>r.type==="value-func")?.value?.toLowerCase()===e}function Kn$1(t){return t.hasAncestor(e=>{if(e.type!=="css-rule")return false;let s=e.raws?.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))})}function we(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function Qn(t){let{node:e}=t;return e.groups[0]?.value==="url"&&e.groups.length===2&&t.findAncestor(s=>s.type==="css-atrule")?.name==="import"}function Xn(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function Jn$1(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function Zn$1(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):false}function ei(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function ti(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function ri(t){return t.type==="value-word"&&t.value==="in"}function Lt(t){return t.type==="value-operator"&&t.value==="*"}function ve(t){return t?.type==="value-operator"&&t.value==="/"}function J(t){return t.type==="value-operator"&&t.value==="+"}function xe(t){return t.type==="value-operator"&&t.value==="-"}function pc(t){return t.type==="value-operator"&&t.value==="%"}function Dt(t){return Lt(t)||ve(t)||J(t)||xe(t)||pc(t)}function si(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function ni(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function Je(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function es(t){return t.raws?.params&&/^\(\s*\)$/u.test(t.raws.params)}function Mt(t){return t.name.startsWith("prettier-placeholder")}function ii(t){return t.prop.startsWith("@prettier-placeholder")}function oi(t,e){return t.value==="$$"&&t.type==="value-func"&&e?.type==="value-word"&&!e.raws.before}function ai(t){return t.value?.type==="value-root"&&t.value.group?.type==="value-value"&&t.prop.toLowerCase()==="composes"}function ui$1(t){return t.value?.group?.group?.type==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function Z(t){return t?.raws?.before===""}function Bt(t){return t.type==="value-comma_group"&&t.groups?.[1]?.type==="value-colon"}function Zr(t){return t.type==="value-paren_group"&&t.groups?.[0]&&Bt(t.groups[0])}function ts(t,e){if(e.parser!=="scss")return false;let{node:s}=t;if(s.groups.length===0)return false;let r=t.grandparent;return !Zr(s)&&!(r&&Zr(r))?false:!!(t.findAncestor(i=>i.type==="css-decl")?.prop?.startsWith("$")||Zr(r)||r.type==="value-func")}function Ze(t){return t.type==="value-comment"&&t.inline}function Ut$1(t){return t.type==="value-word"&&t.value==="#"}function rs(t){return t.type==="value-word"&&t.value==="{"}function Ft(t){return t.type==="value-word"&&t.value==="}"}function et(t){return ["value-word","value-atword"].includes(t.type)}function $t(t){return t?.type==="value-colon"}function li(t,e){if(!Bt(e))return false;let{groups:s}=e,r=s.indexOf(t);return r===-1?false:$t(s[r+1])}function ci(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function fi$1(t){return t.type!=="value-func"?false:cc.has(t.value.toLowerCase())}function Le(t){return /\/\//u.test(t.split(/[\n\r]/u).pop())}function tt(t){return t?.type==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function pi$1(t,e){if(t.open?.value!=="("||t.close?.value!==")"||t.groups.some(s=>s.type!=="value-comma_group"))return false;if(e.type==="value-comma_group"){let s=e.groups.indexOf(t)-1,r=e.groups[s];if(r?.type==="value-word"&&r.value==="with")return true}return false}function rt(t){return t.type==="value-paren_group"&&t.open?.value==="("&&t.close?.value===")"}function hc(t,e,s){let{node:r}=t,n=t.parent,i=t.grandparent,o=zn(t),u=o&&n.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),a=t.findAncestor(p=>p.type==="css-atrule"),l=a&&Je(a,e),f=r.groups.some(p=>Ze(p)),h=t.map(s,"groups"),c=[""],g=qe(t,"url"),b=false,d=false;for(let p=0;p<r.groups.length;++p){let m=r.groups[p-1],y=r.groups[p],v=r.groups[p+1],O=r.groups[p+2];if(Ze(y)&&!v){c.push([c.pop(),ln([" ",h[p]])]);continue}if(c.push([c.pop(),h[p]]),g){(v&&J(v)||J(y))&&c.push([c.pop()," "]);continue}if(we(t,"forward")&&y.type==="value-word"&&y.value&&m!==void 0&&m.type==="value-word"&&m.value==="as"&&v.type==="value-operator"&&v.value==="*"||we(t,"utility")&&y.type==="value-word"&&v&&v.type==="value-operator"&&v.value==="*"||!v||y.type==="value-word"&&tt(v)&&R(y)===P(v))continue;if(y.type==="value-string"&&y.quoted){let k=y.value.lastIndexOf("#{"),N=y.value.lastIndexOf("}");k!==-1&&N!==-1?b=k>N:k!==-1?b=true:N!==-1&&(b=false);}if(b||$t(y)||$t(v)||y.type==="value-atword"&&(y.value===""||y.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||y.value==="~"||e.parser==="less"&&(v?.type==="value-word"&&v.value==="["||y.type==="value-word"&&y.value==="["&&(v?.type==="value-atword"||v?.type==="value-word")||y.type==="value-word"&&y.value==="]["&&v?.type==="value-word")||y.type!=="value-string"&&y.value&&y.value.includes("\\")&&v&&v.type!=="value-comment"||m?.value&&m.value.indexOf("\\")===m.value.length-1&&y.type==="value-operator"&&y.value==="/"||y.value==="\\"||oi(y,v)||Ut$1(y)||rs(y)||Ft(v)||rs(v)&&Z(v)||Ft(y)&&Z(v)||y.value==="--"&&Ut$1(v))continue;let q=Dt(y),H=Dt(v);if((q&&Ut$1(v)||H&&Ft(y))&&Z(v)||!m&&ve(y)||qe(t,"calc")&&(J(y)||J(v)||xe(y)||xe(v))&&Z(v))continue;let ne=(J(y)||xe(y))&&p===0&&(v.type==="value-number"||v.isHex)&&i&&fi$1(i)&&!Z(v);if(e.parser==="scss"&&q&&y.value==="-"&&v.type==="value-func"&&R(y)!==P(v)){c.push([c.pop()," "]);continue}let W=O?.type==="value-func"||O&&et(O)||y.type==="value-func"||et(y),A=v.type==="value-func"||et(v)||m?.type==="value-func"||m&&et(m);if(!(!(Lt(v)||Lt(y))&&!qe(t,"calc")&&!ne&&(ve(v)&&!W||ve(y)&&!A||J(v)&&!W||J(y)&&!A||xe(v)||xe(y))&&(Z(v)||q&&(!m||m&&Dt(m))))&&!((e.parser==="scss"||e.parser==="less")&&q&&y.value==="-"&&rt(v)&&R(y)===P(v.open)&&v.open.value==="(")){if(Ze(y)){if(n.type==="value-paren_group"){c.push(le(T),"");continue}c.push(T,"");continue}if(l&&(si(v)||ni(v)||ti(v)||ri(y)||ei(y))){c.push([c.pop()," "]);continue}if(a&&a.name.toLowerCase()==="namespace"){c.push([c.pop()," "]);continue}if(u){y.source&&v.source&&y.source.start.line!==v.source.start.line?(c.push(T,""),d=true):c.push([c.pop()," "]);continue}if(!(o&&(o==="font"||o.startsWith("--"))&&(ve(v)&&Z(v)&&hi$1(y)||ve(y)&&Z(y)&&hi$1(m)))){if(H){c.push([c.pop()," "]);continue}if(v?.value!=="..."&&!(tt(y)&&tt(v)&&R(y)===P(v))){if(tt(y)&&rt(v)&&R(y)===P(v.open)){c.push(M,"");continue}if(y.value==="with"&&rt(v)){c=[[Pe(c)," "]];continue}if(!(y.value?.endsWith("#")&&v.value==="{"&&rt(v.group))&&!(Ze(v)&&!O)){if(!a&&y.type==="value-comment"&&!y.inline&&r.groups.slice(0,p).every(k=>k.type==="value-comment")){c.push(le(C$1),"");continue}c.push(C$1,"");}}}}}return f&&c.push([c.pop(),Ne]),d&&c.unshift("",T),l?D(L(c)):Qn(t)?D(Pe(c)):D(L(Pe(c)))}function hi$1(t){if(t?.type==="value-number")return true;if(t?.type!=="value-func")return false;let e=t.value.toLowerCase();return e==="var"||e==="calc"||e==="min"||e==="max"||e==="clamp"||e.startsWith("--")}var di$1=hc;function dc(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var mi$1=dc;var Wt=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function ss(t){let e=t.toLowerCase();return Wt.has(e)?Wt.get(e):t}var yi$1=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,mc=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,yc=/[a-z]+/giu,gc=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,wc=new RegExp(yi$1.source+`|(${gc.source})?(${mc.source})(${yc.source})?`,"giu");function V(t,e){return E(0,t,yi$1,s=>Nt(s,e))}function gi$1(t,e){let s=e.singleQuote?"'":'"',r="",n=t.match(/^(?<value>.+?)\s+(?<flag>[a-zA-Z])$/u);return n&&({value:t,flag:r}=n.groups),(t.includes('"')||t.includes("'")?t:s+t+s)+(r?` ${r}`:"")}function _e(t){return E(0,t,wc,(e,s,r,n,i)=>!r&&n&&(i??(i=""),i=i.toLowerCase(),!i||i==="n"||Wt.has(i))?ns(n)+(i?ss(i):""):e)}function ns(t){return mi$1(t).replace(/\.0(?=$|e)/u,"")}function wi(t){return t.trailingComma==="es5"||t.trailingComma==="all"}var vi$1=t=>t===`
|
|
69863
|
+
`:"")+Wn(s)};var cc=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function zn(t){return t.findAncestor(e=>e.type==="css-decl")?.prop?.toLowerCase()}var fc=new Set(["initial","inherit","unset","revert"]);function jn$1(t){return fc.has(t.toLowerCase())}function Hn(t,e){return t.findAncestor(r=>r.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(e.toLowerCase())}function Ie(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function qe(t,e){return t.findAncestor(r=>r.type==="value-func")?.value?.toLowerCase()===e}function Kn$1(t){return t.hasAncestor(e=>{if(e.type!=="css-rule")return false;let s=e.raws?.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))})}function we(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function Qn(t){let{node:e}=t;return e.groups[0]?.value==="url"&&e.groups.length===2&&t.findAncestor(s=>s.type==="css-atrule")?.name==="import"}function Xn(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function Jn$1(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function Zn$1(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):false}function ei(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function ti(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function ri(t){return t.type==="value-word"&&t.value==="in"}function Lt(t){return t.type==="value-operator"&&t.value==="*"}function ve(t){return t?.type==="value-operator"&&t.value==="/"}function J(t){return t.type==="value-operator"&&t.value==="+"}function xe(t){return t.type==="value-operator"&&t.value==="-"}function pc(t){return t.type==="value-operator"&&t.value==="%"}function Dt(t){return Lt(t)||ve(t)||J(t)||xe(t)||pc(t)}function si(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function ni(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function Je(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function es(t){return t.raws?.params&&/^\(\s*\)$/u.test(t.raws.params)}function Mt(t){return t.name.startsWith("prettier-placeholder")}function ii(t){return t.prop.startsWith("@prettier-placeholder")}function oi(t,e){return t.value==="$$"&&t.type==="value-func"&&e?.type==="value-word"&&!e.raws.before}function ai(t){return t.value?.type==="value-root"&&t.value.group?.type==="value-value"&&t.prop.toLowerCase()==="composes"}function ui$1(t){return t.value?.group?.group?.type==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function Z(t){return t?.raws?.before===""}function Bt(t){return t.type==="value-comma_group"&&t.groups?.[1]?.type==="value-colon"}function Zr(t){return t.type==="value-paren_group"&&t.groups?.[0]&&Bt(t.groups[0])}function ts(t,e){if(e.parser!=="scss")return false;let{node:s}=t;if(s.groups.length===0)return false;let r=t.parent;if(r&&r.type==="value-func"&&r.value==="if")return false;let n=t.grandparent;return !Zr(s)&&!(n&&Zr(n))?false:!!(t.findAncestor(o=>o.type==="css-decl")?.prop?.startsWith("$")||Zr(n)||n.type==="value-func")}function Ze(t){return t.type==="value-comment"&&t.inline}function Ut$1(t){return t.type==="value-word"&&t.value==="#"}function rs(t){return t.type==="value-word"&&t.value==="{"}function Ft(t){return t.type==="value-word"&&t.value==="}"}function et(t){return ["value-word","value-atword"].includes(t.type)}function $t(t){return t?.type==="value-colon"}function li(t,e){if(!Bt(e))return false;let{groups:s}=e,r=s.indexOf(t);return r===-1?false:$t(s[r+1])}function ci(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function fi$1(t){return t.type!=="value-func"?false:cc.has(t.value.toLowerCase())}function Le(t){return /\/\//u.test(t.split(/[\n\r]/u).pop())}function tt(t){return t?.type==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function pi$1(t,e){if(t.open?.value!=="("||t.close?.value!==")"||t.groups.some(s=>s.type!=="value-comma_group"))return false;if(e.type==="value-comma_group"){let s=e.groups.indexOf(t)-1,r=e.groups[s];if(r?.type==="value-word"&&r.value==="with")return true}return false}function rt(t){return t.type==="value-paren_group"&&t.open?.value==="("&&t.close?.value===")"}function hc(t,e,s){let{node:r}=t,n=t.parent,i=t.grandparent,o=zn(t),u=o&&n.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),a=t.findAncestor(p=>p.type==="css-atrule"),l=a&&Je(a,e),f=r.groups.some(p=>Ze(p)),h=t.map(s,"groups"),c=[""],g=qe(t,"url"),b=false,d=false;for(let p=0;p<r.groups.length;++p){let m=r.groups[p-1],y=r.groups[p],v=r.groups[p+1],O=r.groups[p+2];if(Ze(y)&&!v){c.push([c.pop(),ln([" ",h[p]])]);continue}if(c.push([c.pop(),h[p]]),g){(v&&J(v)||J(y))&&c.push([c.pop()," "]);continue}if(we(t,"forward")&&y.type==="value-word"&&y.value&&m!==void 0&&m.type==="value-word"&&m.value==="as"&&v.type==="value-operator"&&v.value==="*"||we(t,"utility")&&y.type==="value-word"&&v&&v.type==="value-operator"&&v.value==="*"||!v||y.type==="value-word"&&tt(v)&&R(y)===P(v))continue;if(y.type==="value-string"&&y.quoted){let k=y.value.lastIndexOf("#{"),N=y.value.lastIndexOf("}");k!==-1&&N!==-1?b=k>N:k!==-1?b=true:N!==-1&&(b=false);}if(b||$t(y)||$t(v)||y.type==="value-atword"&&(y.value===""||y.value.endsWith("["))||v.type==="value-word"&&v.value.startsWith("]")||y.value==="~"||e.parser==="less"&&(v?.type==="value-word"&&v.value==="["||y.type==="value-word"&&y.value==="["&&(v?.type==="value-atword"||v?.type==="value-word")||y.type==="value-word"&&y.value==="]["&&v?.type==="value-word")||y.type!=="value-string"&&y.value&&y.value.includes("\\")&&v&&v.type!=="value-comment"||m?.value&&m.value.indexOf("\\")===m.value.length-1&&y.type==="value-operator"&&y.value==="/"||y.value==="\\"||oi(y,v)||Ut$1(y)||rs(y)||Ft(v)||rs(v)&&Z(v)||Ft(y)&&Z(v)||y.value==="--"&&Ut$1(v))continue;let q=Dt(y),H=Dt(v);if((q&&Ut$1(v)||H&&Ft(y))&&Z(v)||!m&&ve(y)||qe(t,"calc")&&(J(y)||J(v)||xe(y)||xe(v))&&Z(v))continue;let ne=(J(y)||xe(y))&&p===0&&(v.type==="value-number"||v.isHex)&&i&&fi$1(i)&&!Z(v);if(e.parser==="scss"&&q&&y.value==="-"&&v.type==="value-func"&&R(y)!==P(v)){c.push([c.pop()," "]);continue}let W=O?.type==="value-func"||O&&et(O)||y.type==="value-func"||et(y),A=v.type==="value-func"||et(v)||m?.type==="value-func"||m&&et(m);if(!(!(Lt(v)||Lt(y))&&!qe(t,"calc")&&!ne&&(ve(v)&&!W||ve(y)&&!A||J(v)&&!W||J(y)&&!A||xe(v)||xe(y))&&(Z(v)||q&&(!m||m&&Dt(m))))&&!((e.parser==="scss"||e.parser==="less")&&q&&y.value==="-"&&rt(v)&&R(y)===P(v.open)&&v.open.value==="(")){if(Ze(y)){if(n.type==="value-paren_group"){c.push(le(T),"");continue}c.push(T,"");continue}if(l&&(si(v)||ni(v)||ti(v)||ri(y)||ei(y))){c.push([c.pop()," "]);continue}if(a&&a.name.toLowerCase()==="namespace"){c.push([c.pop()," "]);continue}if(u){y.source&&v.source&&y.source.start.line!==v.source.start.line?(c.push(T,""),d=true):c.push([c.pop()," "]);continue}if(!(o&&(o==="font"||o.startsWith("--"))&&(ve(v)&&Z(v)&&hi$1(y)||ve(y)&&Z(y)&&hi$1(m)))){if(H){c.push([c.pop()," "]);continue}if(v?.value!=="..."&&!(tt(y)&&tt(v)&&R(y)===P(v))){if(tt(y)&&rt(v)&&R(y)===P(v.open)){c.push(M,"");continue}if(y.value==="with"&&rt(v)){c=[[Pe(c)," "]];continue}if(!(y.value?.endsWith("#")&&v.value==="{"&&rt(v.group))&&!(Ze(v)&&!O)){if(!a&&y.type==="value-comment"&&!y.inline&&r.groups.slice(0,p).every(k=>k.type==="value-comment")){c.push(le(C$1),"");continue}c.push(C$1,"");}}}}}return f&&c.push([c.pop(),Ne]),d&&c.unshift("",T),l?D(L(c)):Qn(t)?D(Pe(c)):D(L(Pe(c)))}function hi$1(t){if(t?.type==="value-number")return true;if(t?.type!=="value-func")return false;let e=t.value.toLowerCase();return e==="var"||e==="calc"||e==="min"||e==="max"||e==="clamp"||e.startsWith("--")}var di$1=hc;function dc(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var mi$1=dc;var Wt=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function ss(t){let e=t.toLowerCase();return Wt.has(e)?Wt.get(e):t}var yi$1=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,mc=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,yc=/[a-z]+/giu,gc=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,wc=new RegExp(yi$1.source+`|(${gc.source})?(${mc.source})(${yc.source})?`,"giu");function V(t,e){return E(0,t,yi$1,s=>Nt(s,e))}function gi$1(t,e){let s=e.singleQuote?"'":'"',r="",n=t.match(/^(?<value>.+?)\s+(?<flag>[a-zA-Z])$/u);return n&&({value:t,flag:r}=n.groups),(t.includes('"')||t.includes("'")?t:s+t+s)+(r?` ${r}`:"")}function _e(t){return E(0,t,wc,(e,s,r,n,i)=>!r&&n&&(i??(i=""),i=i.toLowerCase(),!i||i==="n"||Wt.has(i))?ns(n)+(i?ss(i):""):e)}function ns(t){return mi$1(t).replace(/\.0(?=$|e)/u,"")}function wi(t){return t.trailingComma==="es5"||t.trailingComma==="all"}var vi$1=t=>t===`
|
|
69727
69864
|
`||t==="\r"||t==="\u2028"||t==="\u2029";function vc(t,e,s){let r=!!s?.backwards;if(e===false)return false;let n=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&n===`
|
|
69728
69865
|
`)return e-2;if(vi$1(n))return e-1}else {if(n==="\r"&&t.charAt(e+1)===`
|
|
69729
69866
|
`)return e+2;if(vi$1(n))return e+1}return e}var Gt=vc;function xc(t,e,s={}){let r=It(t,s.backwards?e-1:e,s),n=Gt(t,r,s);return r!==n}var Yt=xc;function _c(t,e){if(e===false)return false;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let s=e+2;s<t.length;++s)if(t.charAt(s)==="*"&&t.charAt(s+1)==="/")return s+2}return e}var xi$1=_c;function bc(t,e){return e===false?false:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?qt(t,e):e}var _i=bc;function Ec(t,e){let s=null,r=e;for(;r!==s;)s=r,r=bn(t,r),r=xi$1(t,r),r=It(t,r);return r=_i(t,r),r=Gt(t,r),r!==false&&Yt(t,r)}var Vt$1=Ec;function Sc({node:t,parent:e},s){return !!(t.source&&s.originalText.slice(P(t),P(e.close)).trimEnd().endsWith(","))}function kc(t,e){return Jn$1(t.grandparent)&&Sc(t,e)?",":t.node.type!=="value-comment"&&!(t.node.type==="value-comma_group"&&t.node.groups.every(s=>s.type==="value-comment"))&&wi(e)&&t.callParent(()=>ts(t,e))?Ct(","):""}function bi$1(t,e,s){let{node:r,parent:n}=t,i=t.map(({node:g})=>typeof g=="string"?g:s(),"groups");if(n&&Xn(n)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return [r.open?s("open"):"",Y(",",i),r.close?s("close"):""];if(!r.open){let g=is(t);let b=Ac(Y(",",i),2),d=Y(g?T:C$1,b);return L(g?[T,d]:D([Tc(t)?M:"",Pe(d)]))}let o=t.map(({node:g,isLast:b,index:d})=>{let p=i[d];Bt(g)&&g.type==="value-comma_group"&&g.groups&&g.groups[0].type!=="value-paren_group"&&g.groups[2]?.type==="value-paren_group"&&ue(p)===oe&&ue(p.contents)===ie$1&&ue(p.contents.contents)===ae&&(p=D(le(p)));let m=[p,b?kc(t,e):","];if(!b&&g.type==="value-comma_group"&&ce(g.groups)){let y=G(0,g.groups,-1);!y.source&&y.close&&(y=y.close),y.source&&Vt$1(e.originalText,R(y))&&m.push(T);}return m},"groups"),u=li(r,n),a=pi$1(r,n),l=ts(t,e),f=a||l&&!u,h=a||u,c=D([r.open?s("open"):"",L([M,Y(C$1,o)]),M,r.close?s("close"):""],{shouldBreak:f});return h?le(c):c}function is(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(s=>s.type==="value-comma_group"),(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function Tc(t){return t.match(e=>e.type==="value-paren_group"&&!e.open,(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&e.type==="css-decl")}function Ac(t,e){let s=[];for(let r=0;r<t.length;r+=e)s.push(t.slice(r,r+e));return s}function Oc(t,e,s){let r=[];return t.each(()=>{let{node:n,previous:i}=t;if(i?.type==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(P(n),R(n))):r.push(s()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Yt(e.originalText,P(o),{backwards:true})&&!Re(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?C$1:T),Vt$1(e.originalText,R(n))&&!Re(n)&&r.push(T));},"nodes"),r}var De=Oc;function Cc(t,e,s){let{node:r}=t;switch(r.type){case "css-root":{let n=De(t,e,s),i=r.raws.after.trim();return i.startsWith(";")&&(i=i.slice(1).trim()),[r.frontMatter?[s("frontMatter"),T,r.nodes.length>0?T:""]:"",n,i?` ${i}`:"",r.nodes.length>0?T:""]}case "css-comment":{let n=r.inline||r.raws.inline,i=e.originalText.slice(P(r),R(r));return n?i.trimEnd():i}case "css-rule":return [s("selector"),r.important?" !important":"",r.nodes?[r.selector?.type==="selector-unknown"&&Le(r.selector.value)?C$1:r.selector?" ":"","{",r.nodes.length>0?L([T,De(t,e,s)]):"",T,"}",Zn$1(r)?";":""]:";"];case "css-decl":{let n=t.parent,{between:i}=r.raws,o=i.trim(),u=o===":",a=typeof r.value=="string"&&/^ *$/u.test(r.value),l=typeof r.value=="string"?r.value:s("value");return l=ai(r)?on(l):l,!u&&Le(o)&&!t.call(()=>is(t),"value","group","group")&&(l=L([T,le(l)])),[E(0,r.raws.before,/[\s;]/gu,""),n.type==="css-atrule"&&n.variable||Kn$1(t)?r.prop:Ie(r.prop),o.startsWith("//")?" ":"",o,r.extend||a?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",s("selector"),")"]:"",l,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",L([M,De(t,e,s)]),M,"}"]:ii(r)&&!n.raws.semicolon&&e.originalText[R(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?Ct(";"):";"]}case "css-atrule":{let n=t.parent,i=Mt(r)&&!n.raws.semicolon&&e.originalText[R(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return [s("selector"),r.important?" !important":"",i?"":";"];if(r.function)return [r.name,typeof r.params=="string"?r.params:s("params"),i?"":";"];if(r.variable)return ["@",r.name,": ",r.value?s("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",L([r.nodes.length>0?M:"",De(t,e,s)]),M,"}"]:"",i?"":";"]}let o=r.name==="import"&&r.params?.type==="value-unknown"&&r.params.value.endsWith(";");return ["@",es(r)||r.name.endsWith(":")||Mt(r)?r.name:Ie(r.name),r.params?[es(r)?"":Mt(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(r.raws.afterName)?[T,T]:/^\s*\n/u.test(r.raws.afterName)?T:" ":" ",typeof r.params=="string"?r.params:s("params")]:"",r.selector?L([" ",s("selector")]):"",r.value?D([" ",s("value"),Je(r,e)?ui$1(r)?" ":C$1:""]):r.name==="else"?" ":"",r.nodes?[Je(r,e)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Le(r.selector.value)||!r.selector&&typeof r.params=="string"&&Le(r.params)?C$1:" ","{",L([r.nodes.length>0?M:"",De(t,e,s)]),M,"}"]:i||o?"":";"]}case "media-query-list":{let n=[];return t.each(({node:i})=>{i.type==="media-query"&&i.value===""||n.push(s());},"nodes"),D(L(Y(C$1,n)))}case "media-query":return [Y(" ",t.map(s,"nodes")),t.isLast?"":","];case "media-type":return _e(V(r.value,e));case "media-feature-expression":return r.nodes?["(",...t.map(s,"nodes"),")"]:r.value;case "media-feature":return Ie(V(E(0,r.value,/ +/gu," "),e));case "media-colon":return [r.value," "];case "media-value":return _e(V(r.value,e));case "media-keyword":return V(r.value,e);case "media-url":return V(E(0,E(0,r.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),e);case "media-unknown":return r.value;case "selector-root":return D([we(t,"custom-selector")?[t.findAncestor(n=>n.type==="css-atrule").customSelector,C$1]:"",Y([",",we(t,["extend","custom-selector","nest"])?C$1:T],t.map(s,"nodes"))]);case "selector-selector":{let n=r.nodes.length>2;return D((n?L:i=>i)(t.map(s,"nodes")))}case "selector-comment":return r.value;case "selector-string":return V(r.value,e);case "selector-tag":return [r.namespace?[r.namespace===true?"":r.namespace.trim(),"|"]:"",t.previous?.type==="selector-nesting"?r.value:_e(Hn(t,r.value)?r.value.toLowerCase():r.value)];case "selector-id":return ["#",r.value];case "selector-class":return [".",_e(V(r.value,e))];case "selector-attribute":return ["[",r.namespace?[r.namespace===true?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?gi$1(V(r.value.trim(),e),e):"",r.insensitive?" i":"","]"];case "selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let o=t.parent;return [o.type==="selector-selector"&&o.nodes[0]===r?"":C$1,r.value,t.isLast?"":" "]}let n=r.value.trim().startsWith("(")?C$1:"",i=_e(V(r.value.trim(),e))||C$1;return [n,i]}case "selector-universal":return [r.namespace?[r.namespace===true?"":r.namespace.trim(),"|"]:"",r.value];case "selector-pseudo":return [Ie(r.value),ce(r.nodes)?D(["(",L([M,Y([",",C$1],t.map(s,"nodes"))]),M,")"]):""];case "selector-nesting":return r.value;case "selector-unknown":{if(t.findAncestor(u=>u.type==="css-rule")?.isSCSSNesterProperty)return _e(V(Ie(r.value),e));let i=t.parent;if(i.raws?.selector){let u=P(i),a=u+i.raws.selector.length;return e.originalText.slice(u,a).trim()}let o=t.grandparent;if(i.type==="value-paren_group"&&o?.type==="value-func"&&o.value==="selector"){let u=R(i.open)+1,a=P(i.close),l=e.originalText.slice(u,a).trim();return Le(l)?[Ne,l]:l}return r.value}case "value-value":case "value-root":return s("group");case "value-comment":return e.originalText.slice(P(r),R(r));case "value-comma_group":return di$1(t,e,s);case "value-paren_group":return bi$1(t,e,s);case "value-func":return [r.value,we(t,"supports")&&ci(r)?" ":"",s("group")];case "value-paren":return r.value;case "value-number":return [ns(r.value),ss(r.unit)];case "value-operator":return r.value;case "value-word":return r.isColor&&r.isHex||jn$1(r.value)?r.value.toLowerCase():r.value;case "value-colon":{let{previous:n}=t;return D([r.value,typeof n?.value=="string"&&n.value.endsWith("\\")||qe(t,"url")?"":C$1])}case "value-string":return Nt(r.raws.quote+r.value+r.raws.quote,e);case "value-atword":return ["@",r.value];case "value-unicode-range":return r.value;case "value-unknown":return r.value;case "front-matter":case "value-comma":default:throw new dn$1(r,"PostCSS")}}var Nc={features:{experimental_frontMatterSupport:{massageAstNode:true,embed:true,print:true}},print:Cc,embed:wn$1,insertPragma:Vn,massageAstNode:yn,getVisitorKeys:_n},Ei=Nc;var Si$1=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}];var ki={singleQuote:{category:"Common",type:"boolean",default:false,description:"Use single quotes instead of double quotes."}};var Pc={singleQuote:ki.singleQuote},Ti$1=Pc;var en$1={};sn$1(en$1,{css:()=>Vy$1,less:()=>zy$1,scss:()=>jy$1});var dl$1=Te(ht()),ml$1=Te(qo()),yl$1=Te(da());function gp$1(t,e){let s=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(s,e)}var ma=gp$1;function wp$1(t){return t!==null&&typeof t=="object"}var Se=wp$1;var ba=Te(_a$1());function te(t,e,s){if(Se(t)){delete t.parent;for(let r in t)te(t[r],e,s),r==="type"&&typeof t[r]=="string"&&!t[r].startsWith(e)&&(!s||!s.test(t[r]))&&(t[r]=e+t[r]);}return t}function Bs(t){if(Se(t)){delete t.parent;for(let e in t)Bs(t[e]);!Array.isArray(t)&&t.value&&!t.type&&(t.type="unknown");}return t}var Np$1=ba.default.default;function Pp$1(t){let e;try{e=Np$1(t);}catch{return {type:"selector-unknown",value:t}}return te(Bs(e),"media-")}var Ea=Pp$1;var gu=Te(yu());function Vm$1(t){if(/\/[/*]/u.test(E(0,t,/"[^"]+"|'[^']+'/gu,"")))return {type:"selector-unknown",value:t.trim()};let e;try{new gu.default(s=>{e=s;}).process(t);}catch{return {type:"selector-unknown",value:t}}return te(e,"selector-")}var se=Vm$1;var cl$1=Te(nl());var Iy$1=t=>{for(;t.parent;)t=t.parent;return t},Gr=Iy$1;function qy(t){return Gr(t).text.slice(t.group.open.sourceIndex+1,t.group.close.sourceIndex).trim()}var il$1=qy;function Ly$1(t){if(ce(t)){for(let e=t.length-1;e>0;e--)if(t[e].type==="word"&&t[e].value==="{"&&t[e-1].type==="word"&&t[e-1].value.endsWith("#"))return true}return false}var ol$1=Ly$1;function Dy$1(t){return t.some(e=>e.type==="string"||e.type==="func"&&!e.value.endsWith("\\"))}var al$1=Dy$1;function My$1(t,e){return !!(e.parser==="scss"&&t?.type==="word"&&t.value.startsWith("$"))}var ul$1=My$1;var ll$1=t=>t.type==="paren"&&t.value===")";function By$1(t,e){let{nodes:s}=t,r={open:null,close:null,groups:[],type:"paren_group"},n=[r],i=r,o={groups:[],type:"comma_group"},u=[o];for(let a=0;a<s.length;++a){let l=s[a];if(e.parser==="scss"&&l.type==="number"&&l.unit===".."&&l.value.endsWith(".")&&(l.value=l.value.slice(0,-1),l.unit="..."),l.type==="func"&&l.value==="selector"&&(l.group.groups=[se(Gr(t).text.slice(l.group.open.sourceIndex+1,l.group.close.sourceIndex))]),l.type==="func"&&l.value==="url"){let f=l.group?.groups??[],h=[];for(let c=0;c<f.length;c++){let g=f[c];g.type==="comma_group"?h=[...h,...g.groups]:h.push(g);}(ol$1(h)||!al$1(h)&&!ul$1(h[0],e))&&(l.group.groups=[il$1(l)]);}if(l.type==="paren"&&l.value==="(")r={open:l,close:null,groups:[],type:"paren_group"},n.push(r),o={groups:[],type:"comma_group"},u.push(o);else if(ll$1(l)){if(o.groups.length>0&&r.groups.push(o),r.close=l,u.length===1)throw new Error("Unbalanced parenthesis");u.pop(),o=G(0,u,-1),o.groups.push(r),n.pop(),r=G(0,n,-1);}else if(l.type==="comma"){if(a===s.length-3&&s[a+1].type==="comment"&&ll$1(s[a+2]))continue;r.groups.push(o),o={groups:[],type:"comma_group"},u[u.length-1]=o;}else o.groups.push(l);}return o.groups.length>0&&r.groups.push(o),i}function Yr$1(t){return t.type==="paren_group"&&!t.open&&!t.close&&t.groups.length===1||t.type==="comma_group"&&t.groups.length===1?Yr$1(t.groups[0]):t.type==="paren_group"||t.type==="comma_group"?{...t,groups:t.groups.map(Yr$1)}:t}function fl$1(t,e){if(Se(t))for(let s in t)s!=="parent"&&(fl$1(t[s],e),s==="nodes"&&(t.group=Yr$1(By$1(t,e)),delete t[s]));return t}function Uy$1(t,e){if(e.parser==="less"&&t.startsWith("~`"))return {type:"value-unknown",value:t};let s=null;try{s=new cl$1.default(t,{loose:!0}).parse();}catch{return {type:"value-unknown",value:t}}s.text=t;let r=fl$1(s,e);return te(r,"value-",/^selector-/u)}var de=Uy$1;var Fy$1=new Set(["import","use","forward"]);function $y$1(t){return Fy$1.has(t)}var pl$1=$y$1;function Wy$1(t,e){return e.parser!=="scss"||!t.selector?false:t.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var hl$1=Wy$1;var Gy$1=/(\s*)(!default).*$/u,Yy$1=/(\s*)(!global).*$/u;function gl$1(t,e){if(Se(t)){delete t.parent;for(let i in t)gl$1(t[i],e);if(!t.type)return t;if(t.raws??(t.raws={}),t.type==="css-decl"&&typeof t.prop=="string"&&t.prop.startsWith("--")&&typeof t.value=="string"&&t.value.startsWith("{")){let i;if(t.value.trimEnd().endsWith("}")){let o=e.originalText.slice(0,t.source.start.offset),u="a".repeat(t.prop.length)+e.originalText.slice(t.source.start.offset+t.prop.length,t.source.end.offset),a=E(0,o,/[^\n]/gu," ")+u,l;e.parser==="scss"?l=xl$1:e.parser==="less"?l=vl$1:l=wl$1;let f;try{f=l(a,{...e});}catch{}f?.nodes?.length===1&&f.nodes[0].type==="css-rule"&&(i=f.nodes[0].nodes);}return i?t.value={type:"css-rule",nodes:i}:t.value={type:"value-unknown",value:t.raws.value.raw},t}let s="";typeof t.selector=="string"&&(s=t.raws.selector?t.raws.selector.scss??t.raws.selector.raw:t.selector,t.raws.between&&t.raws.between.trim().length>0&&(s+=t.raws.between),t.raws.selector=s);let r="";typeof t.value=="string"&&(r=t.raws.value?t.raws.value.scss??t.raws.value.raw:t.value,t.raws.value=r.trim());let n="";if(typeof t.params=="string"&&(n=t.raws.params?t.raws.params.scss??t.raws.params.raw:t.params,t.raws.afterName&&t.raws.afterName.trim().length>0&&(n=t.raws.afterName+n),t.raws.between&&t.raws.between.trim().length>0&&(n=n+t.raws.between),n=n.trim(),t.raws.params=n),s.trim().length>0)return s.startsWith("@")&&s.endsWith(":")?t:t.mixin?(t.selector=de(s,e),t):(hl$1(t,e)&&(t.isSCSSNesterProperty=true),t.selector=se(s),t);if(r.trim().length>0){let i=r.match(Gy$1);i&&(r=r.slice(0,i.index),t.scssDefault=true,i[0].trim()!=="!default"&&(t.raws.scssDefault=i[0]));let o=r.match(Yy$1);if(o&&(r=r.slice(0,o.index),t.scssGlobal=true,o[0].trim()!=="!global"&&(t.raws.scssGlobal=o[0])),r.startsWith("progid:"))return {type:"value-unknown",value:r};t.value=de(r,e);}if(e.parser==="less"&&t.type==="css-decl"&&r.startsWith("extend(")&&(t.extend||(t.extend=t.raws.between===":"),t.extend&&!t.selector&&(delete t.value,t.selector=se(r.slice(7,-1)))),t.type==="css-atrule"){if(e.parser==="less"){if(t.mixin){let i=t.raws.identifier+t.name+t.raws.afterName+t.raws.params;return t.selector=se(i),delete t.params,t}if(t.function)return t}if(e.parser==="css"&&t.name==="custom-selector"){let i=t.params.match(/:--\S+\s+/u)[0].trim();return t.customSelector=i,t.selector=se(t.params.slice(i.length).trim()),delete t.params,t}if(e.parser==="less"){if(t.name.includes(":")){t.variable=true;let i=t.name.split(":");t.name=i[0];let o=i.slice(1).join(":");t.params&&(o+=t.params),t.value=de(o,e);}if(!["page","nest","keyframes"].includes(t.name)&&t.params?.[0]===":"){t.variable=true;let i=t.params.slice(1);i&&(t.value=de(i,e)),t.raws.afterName+=":";}if(t.variable)return delete t.params,t.value||delete t.value,t}}if(t.type==="css-atrule"&&n.length>0){let{name:i}=t,o=t.name.toLowerCase();return i==="warn"||i==="error"?(t.params={type:"media-unknown",value:n},t):i==="extend"||i==="nest"?(t.selector=se(n),delete t.params,t):i==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(n)?t.params=de(n,e):(t.selector=se(n),delete t.params),t):pl$1(o)?(t.import=true,delete t.filename,t.params=de(n,e),t):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(i)?(n=n.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),n=n.replace(/^(?!if)([^"'\s(]+)(\s+)\(/u,"$1($2"),t.value=de(n,e),delete t.params,t):["media","custom-media"].includes(o)?n.includes("#{")?{type:"media-unknown",value:n}:(t.params=Ea(n),t):(t.params=n,t)}}return t}function Js(t,e,s){let{frontMatter:r,content:n}=ge$1(e),i;try{i=t(n,{map:!1});}catch(o){let{name:u,reason:a,line:l,column:f}=o;throw typeof l!="number"?o:ma(`${u}: ${a}`,{loc:{start:{line:l,column:f}},cause:o})}return s.originalText=e,i=gl$1(te(i,"css-"),s),Xr$1(i,e),r&&(i.frontMatter={...r,type:"front-matter",source:{startOffset:r.start.index,endOffset:r.end.index}}),i}function wl$1(t,e={}){return Js(dl$1.default.default,t,e)}function vl$1(t,e={}){return Js(s=>ml$1.default.parse(Tn(s)),t,e)}function xl$1(t,e={}){return Js(yl$1.default,t,e)}var Zs$1={astFormat:"postcss",hasPragma:Gn,hasIgnorePragma:Yn,locStart:P,locEnd:R},Vy$1={...Zs$1,parse:wl$1},zy$1={...Zs$1,parse:vl$1},jy$1={...Zs$1,parse:xl$1};var Hy$1={postcss:Ei};
|
|
@@ -69766,4 +69903,4 @@ var typescript = /*#__PURE__*/Object.freeze({
|
|
|
69766
69903
|
});
|
|
69767
69904
|
|
|
69768
69905
|
export { HighlightJS as H, MarkdownIt as M, Ze$a as Z, resolveConfig as a, createTwoFilesPatch$1 as b, createSyncFn as c, dedent$1 as d, deflist_plugin as e, format2 as f, closest as g, distance as h, fm$2 as i, isCI as j, cliProgress as k, tinylr as l, moduleImporter as m, createInstance as n, fse as o, inter as p, runAsWorker as r, ts$6 as t, watch$1 as w };
|
|
69769
|
-
//# sourceMappingURL=vendor-
|
|
69906
|
+
//# sourceMappingURL=vendor-DX88DJvo.mjs.map
|