@lousy-agents/lint 5.10.0
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/316.js +2961 -0
- package/dist/316.js.map +1 -0
- package/dist/511.js +1260 -0
- package/dist/511.js.map +1 -0
- package/dist/612.js +127 -0
- package/dist/612.js.map +1 -0
- package/dist/714.js +39 -0
- package/dist/714.js.map +1 -0
- package/dist/772.js +1765 -0
- package/dist/772.js.map +1 -0
- package/dist/829.js +41 -0
- package/dist/829.js.map +1 -0
- package/dist/908.js +272 -0
- package/dist/908.js.map +1 -0
- package/dist/998.js +56 -0
- package/dist/998.js.map +1 -0
- package/dist/index.d.ts +192 -0
- package/dist/index.js +46888 -0
- package/dist/index.js.map +1 -0
- package/package.json +46 -0
package/dist/908.js
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
export const __rspack_esm_id = "908";
|
|
2
|
+
export const __rspack_esm_ids = ["908"];
|
|
3
|
+
export const __webpack_modules__ = {
|
|
4
|
+
4327(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
|
|
6
|
+
// EXPORTS
|
|
7
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
8
|
+
parseTOML: () => (/* binding */ toml_i)
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
// UNUSED EXPORTS: stringifyTOML
|
|
12
|
+
|
|
13
|
+
// EXTERNAL MODULE: ../../node_modules/confbox/dist/_chunks/_format.mjs
|
|
14
|
+
var _format = __webpack_require__(5492);
|
|
15
|
+
;// CONCATENATED MODULE: ../../node_modules/confbox/dist/_chunks/libs/smol-toml.mjs
|
|
16
|
+
/*!
|
|
17
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
18
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
+
*
|
|
20
|
+
* Redistribution and use in source and binary forms, with or without
|
|
21
|
+
* modification, are permitted provided that the following conditions are met:
|
|
22
|
+
*
|
|
23
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
24
|
+
* list of conditions and the following disclaimer.
|
|
25
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
26
|
+
* this list of conditions and the following disclaimer in the
|
|
27
|
+
* documentation and/or other materials provided with the distribution.
|
|
28
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
29
|
+
* may be used to endorse or promote products derived from this software without
|
|
30
|
+
* specific prior written permission.
|
|
31
|
+
*
|
|
32
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
33
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
34
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
35
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
36
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
37
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
38
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
39
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
40
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
41
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
42
|
+
*/
|
|
43
|
+
function smol_toml_e(e,t){let n=e.slice(0,t).split(/\r\n|\n|\r/g);return[n.length,n.pop().length+1]}function smol_toml_t(e,t,n){let r=e.split(/\r\n|\n|\r/g),i=``,a=(Math.log10(t+1)|0)+1;for(let e=t-1;e<=t+1;e++){let o=r[e-1];o&&(i+=e.toString().padEnd(a,` `),i+=`: `,i+=o,i+=`
|
|
44
|
+
`,e===t&&(i+=` `.repeat(a+n+2),i+=`^
|
|
45
|
+
`))}return i}var smol_toml_n=class extends Error{line;column;codeblock;constructor(n,r){let[i,a]=smol_toml_e(r.toml,r.ptr),o=smol_toml_t(r.toml,i,a);super(`Invalid TOML document: ${n}\n\n${o}`,r),this.line=i,this.column=a,this.codeblock=o}};
|
|
46
|
+
/*!
|
|
47
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
48
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
|
+
*
|
|
50
|
+
* Redistribution and use in source and binary forms, with or without
|
|
51
|
+
* modification, are permitted provided that the following conditions are met:
|
|
52
|
+
*
|
|
53
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
54
|
+
* list of conditions and the following disclaimer.
|
|
55
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
56
|
+
* this list of conditions and the following disclaimer in the
|
|
57
|
+
* documentation and/or other materials provided with the distribution.
|
|
58
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
59
|
+
* may be used to endorse or promote products derived from this software without
|
|
60
|
+
* specific prior written permission.
|
|
61
|
+
*
|
|
62
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
63
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
64
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
65
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
66
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
67
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
68
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
69
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
70
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
71
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
72
|
+
*/
|
|
73
|
+
function smol_toml_r(e,t){let n=0;for(;e[t-++n]===`\\`;);return--n&&n%2}function smol_toml_i(e,t=0,n=e.length){let r=e.indexOf(`
|
|
74
|
+
`,t);return e[r-1]===`\r`&&r--,r<=n?r:-1}function smol_toml_a(e,t){for(let r=t;r<e.length;r++){let i=e[r];if(i===`
|
|
75
|
+
`)return r;if(i===`\r`&&e[r+1]===`
|
|
76
|
+
`)return r+1;if(i<` `&&i!==` `||i===``)throw new smol_toml_n(`control characters are not allowed in comments`,{toml:e,ptr:t})}return e.length}function smol_toml_o(e,t,n,r){let i;for(;(i=e[t])===` `||i===` `||!n&&(i===`
|
|
77
|
+
`||i===`\r`&&e[t+1]===`
|
|
78
|
+
`);)t++;return r||i!==`#`?t:smol_toml_o(e,smol_toml_a(e,t),n)}function smol_toml_s(e,t,r,a,o=!1){if(!a)return t=smol_toml_i(e,t),t<0?e.length:t;for(let n=t;n<e.length;n++){let t=e[n];if(t===`#`)n=smol_toml_i(e,n);else if(t===r)return n+1;else if(t===a||o&&(t===`
|
|
79
|
+
`||t===`\r`&&e[n+1]===`
|
|
80
|
+
`))return n}throw new smol_toml_n(`cannot find end of structure`,{toml:e,ptr:t})}function smol_toml_c(e,t){let n=e[t],i=n===e[t+1]&&e[t+1]===e[t+2]?e.slice(t,t+3):n;t+=i.length-1;do t=e.indexOf(i,++t);while(t>-1&&n!==`'`&&smol_toml_r(e,t));return t>-1&&(t+=i.length,i.length>1&&(e[t]===n&&t++,e[t]===n&&t++)),t}
|
|
81
|
+
/*!
|
|
82
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
83
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
84
|
+
*
|
|
85
|
+
* Redistribution and use in source and binary forms, with or without
|
|
86
|
+
* modification, are permitted provided that the following conditions are met:
|
|
87
|
+
*
|
|
88
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
89
|
+
* list of conditions and the following disclaimer.
|
|
90
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
91
|
+
* this list of conditions and the following disclaimer in the
|
|
92
|
+
* documentation and/or other materials provided with the distribution.
|
|
93
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
94
|
+
* may be used to endorse or promote products derived from this software without
|
|
95
|
+
* specific prior written permission.
|
|
96
|
+
*
|
|
97
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
98
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
99
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
100
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
101
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
102
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
103
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
104
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
105
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
106
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
107
|
+
*/
|
|
108
|
+
let smol_toml_l=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;var smol_toml_u=class e extends Date{#e=!1;#t=!1;#n=null;constructor(e){let t=!0,n=!0,r=`Z`;if(typeof e==`string`){let i=e.match(smol_toml_l);i?(i[1]||(t=!1,e=`0000-01-01T${e}`),n=!!i[2],n&&e[10]===` `&&(e=e.replace(` `,`T`)),i[2]&&+i[2]>23?e=``:(r=i[3]||null,e=e.toUpperCase(),!r&&n&&(e+=`Z`))):e=``}super(e),isNaN(this.getTime())||(this.#e=t,this.#t=n,this.#n=r)}isDateTime(){return this.#e&&this.#t}isLocal(){return!this.#e||!this.#t||!this.#n}isDate(){return this.#e&&!this.#t}isTime(){return this.#t&&!this.#e}isValid(){return this.#e||this.#t}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#n===null)return e.slice(0,-1);if(this.#n===`Z`)return e;let t=this.#n.slice(1,3)*60+ +this.#n.slice(4,6);return t=this.#n[0]===`-`?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#n}static wrapAsOffsetDateTime(t,n=`Z`){let r=new e(t);return r.#n=n,r}static wrapAsLocalDateTime(t){let n=new e(t);return n.#n=null,n}static wrapAsLocalDate(t){let n=new e(t);return n.#t=!1,n.#n=null,n}static wrapAsLocalTime(t){let n=new e(t);return n.#e=!1,n.#n=null,n}};
|
|
109
|
+
/*!
|
|
110
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
111
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
|
+
*
|
|
113
|
+
* Redistribution and use in source and binary forms, with or without
|
|
114
|
+
* modification, are permitted provided that the following conditions are met:
|
|
115
|
+
*
|
|
116
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
117
|
+
* list of conditions and the following disclaimer.
|
|
118
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
119
|
+
* this list of conditions and the following disclaimer in the
|
|
120
|
+
* documentation and/or other materials provided with the distribution.
|
|
121
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
122
|
+
* may be used to endorse or promote products derived from this software without
|
|
123
|
+
* specific prior written permission.
|
|
124
|
+
*
|
|
125
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
126
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
127
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
128
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
129
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
130
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
131
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
132
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
133
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
134
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
135
|
+
*/
|
|
136
|
+
let smol_toml_d=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,smol_toml_f=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,smol_toml_p=/^[+-]?0[0-9_]/,m=/^[0-9a-f]{2,8}$/i,h={b:`\b`,t:` `,n:`
|
|
137
|
+
`,f:`\f`,r:`\r`,e:`\x1B`,'"':`"`,"\\":`\\`};function g(e,t=0,r=e.length){let i=e[t]===`'`,a=e[t++]===e[t]&&e[t]===e[t+1];a&&(r-=2,e[t+=2]===`\r`&&t++,e[t]===`
|
|
138
|
+
`&&t++);let s=0,c,l=``,u=t;for(;t<r-1;){let r=e[t++];if(r===`
|
|
139
|
+
`||r===`\r`&&e[t]===`
|
|
140
|
+
`){if(!a)throw new smol_toml_n(`newlines are not allowed in strings`,{toml:e,ptr:t-1})}else if(r<` `&&r!==` `||r===``)throw new smol_toml_n(`control characters are not allowed in strings`,{toml:e,ptr:t-1});if(c){if(c=!1,r===`x`||r===`u`||r===`U`){let i=e.slice(t,t+=r===`x`?2:r===`u`?4:8);if(!m.test(i))throw new smol_toml_n(`invalid unicode escape`,{toml:e,ptr:s});try{l+=String.fromCodePoint(parseInt(i,16))}catch{throw new smol_toml_n(`invalid unicode escape`,{toml:e,ptr:s})}}else if(a&&(r===`
|
|
141
|
+
`||r===` `||r===` `||r===`\r`)){if(t=smol_toml_o(e,t-1,!0),e[t]!==`
|
|
142
|
+
`&&e[t]!==`\r`)throw new smol_toml_n(`invalid escape: only line-ending whitespace may be escaped`,{toml:e,ptr:s});t=smol_toml_o(e,t)}else if(r in h)l+=h[r];else throw new smol_toml_n(`unrecognized escape sequence`,{toml:e,ptr:s});u=t}else !i&&r===`\\`&&(s=t-1,c=!0,l+=e.slice(u,s))}return l+e.slice(u,r-1)}function _(e,t,r,i){if(e===`true`)return!0;if(e===`false`)return!1;if(e===`-inf`)return-1/0;if(e===`inf`||e===`+inf`)return 1/0;if(e===`nan`||e===`+nan`||e===`-nan`)return NaN;if(e===`-0`)return i?0n:0;let a=smol_toml_d.test(e);if(a||smol_toml_f.test(e)){if(smol_toml_p.test(e))throw new smol_toml_n(`leading zeroes are not allowed`,{toml:t,ptr:r});e=e.replace(/_/g,``);let o=+e;if(isNaN(o))throw new smol_toml_n(`invalid number`,{toml:t,ptr:r});if(a){if((a=!Number.isSafeInteger(o))&&!i)throw new smol_toml_n(`integer value cannot be represented losslessly`,{toml:t,ptr:r});(a||i===!0)&&(o=BigInt(e))}return o}let o=new smol_toml_u(e);if(!o.isValid())throw new smol_toml_n(`invalid value`,{toml:t,ptr:r});return o}
|
|
143
|
+
/*!
|
|
144
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
145
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
146
|
+
*
|
|
147
|
+
* Redistribution and use in source and binary forms, with or without
|
|
148
|
+
* modification, are permitted provided that the following conditions are met:
|
|
149
|
+
*
|
|
150
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
151
|
+
* list of conditions and the following disclaimer.
|
|
152
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
153
|
+
* this list of conditions and the following disclaimer in the
|
|
154
|
+
* documentation and/or other materials provided with the distribution.
|
|
155
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
156
|
+
* may be used to endorse or promote products derived from this software without
|
|
157
|
+
* specific prior written permission.
|
|
158
|
+
*
|
|
159
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
160
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
161
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
162
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
163
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
164
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
165
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
166
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
167
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
168
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
169
|
+
*/
|
|
170
|
+
function v(e,t,n){let r=e.slice(t,n),i=r.indexOf(`#`);return i>-1&&(smol_toml_a(e,i),r=r.slice(0,i)),[r.trimEnd(),i]}function y(e,t,r,i,a){if(i===0)throw new smol_toml_n(`document contains excessively nested structures. aborting.`,{toml:e,ptr:t});let l=e[t];if(l===`[`||l===`{`){let[s,c]=l===`[`?C(e,t,i,a):S(e,t,i,a);if(r){if(c=smol_toml_o(e,c),e[c]===`,`)c++;else if(e[c]!==r)throw new smol_toml_n(`expected comma or end of structure`,{toml:e,ptr:c})}return[s,c]}let u;if(l===`"`||l===`'`){u=smol_toml_c(e,t);let i=g(e,t,u);if(r){if(u=smol_toml_o(e,u),e[u]&&e[u]!==`,`&&e[u]!==r&&e[u]!==`
|
|
171
|
+
`&&e[u]!==`\r`)throw new smol_toml_n(`unexpected character encountered`,{toml:e,ptr:u});u+=+(e[u]===`,`)}return[i,u]}u=smol_toml_s(e,t,`,`,r);let d=v(e,t,u-+(e[u-1]===`,`));if(!d[0])throw new smol_toml_n(`incomplete key-value declaration: no value specified`,{toml:e,ptr:t});return r&&d[1]>-1&&(u=smol_toml_o(e,t+d[1]),u+=+(e[u]===`,`)),[_(d[0],e,t,a),u]}
|
|
172
|
+
/*!
|
|
173
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
174
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
175
|
+
*
|
|
176
|
+
* Redistribution and use in source and binary forms, with or without
|
|
177
|
+
* modification, are permitted provided that the following conditions are met:
|
|
178
|
+
*
|
|
179
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
180
|
+
* list of conditions and the following disclaimer.
|
|
181
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
182
|
+
* this list of conditions and the following disclaimer in the
|
|
183
|
+
* documentation and/or other materials provided with the distribution.
|
|
184
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
185
|
+
* may be used to endorse or promote products derived from this software without
|
|
186
|
+
* specific prior written permission.
|
|
187
|
+
*
|
|
188
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
189
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
190
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
191
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
192
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
193
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
194
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
195
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
196
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
197
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
198
|
+
*/
|
|
199
|
+
let b=/^[a-zA-Z0-9-_]+[ \t]*$/;function x(e,t,r=`=`){let a=t-1,s=[],l=e.indexOf(r,t);if(l<0)throw new smol_toml_n(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});do{let o=e[t=++a];if(o!==` `&&o!==` `)if(o===`"`||o===`'`){if(o===e[t+1]&&o===e[t+2])throw new smol_toml_n(`multiline strings are not allowed in keys`,{toml:e,ptr:t});let u=smol_toml_c(e,t);if(u<0)throw new smol_toml_n(`unfinished string encountered`,{toml:e,ptr:t});a=e.indexOf(`.`,u);let d=e.slice(u,a<0||a>l?l:a),f=smol_toml_i(d);if(f>-1)throw new smol_toml_n(`newlines are not allowed in keys`,{toml:e,ptr:t+a+f});if(d.trimStart())throw new smol_toml_n(`found extra tokens after the string part`,{toml:e,ptr:u});if(l<u&&(l=e.indexOf(r,u),l<0))throw new smol_toml_n(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});s.push(g(e,t,u))}else{a=e.indexOf(`.`,t);let r=e.slice(t,a<0||a>l?l:a);if(!b.test(r))throw new smol_toml_n(`only letter, numbers, dashes and underscores are allowed in keys`,{toml:e,ptr:t});s.push(r.trimEnd())}}while(a+1&&a<l);return[s,smol_toml_o(e,l+1,!0,!0)]}function S(e,t,r,i){let o={},s=new Set,c;for(t++;(c=e[t++])!==`}`&&c;)if(c===`,`)throw new smol_toml_n(`expected value, found comma`,{toml:e,ptr:t-1});else if(c===`#`)t=smol_toml_a(e,t);else if(c!==` `&&c!==` `&&c!==`
|
|
200
|
+
`&&c!==`\r`){let a,c=o,l=!1,[u,d]=x(e,t-1);for(let r=0;r<u.length;r++){if(r&&(c=l?c[a]:c[a]={}),a=u[r],(l=Object.hasOwn(c,a))&&(typeof c[a]!=`object`||s.has(c[a])))throw new smol_toml_n(`trying to redefine an already defined value`,{toml:e,ptr:t});!l&&a===`__proto__`&&Object.defineProperty(c,a,{enumerable:!0,configurable:!0,writable:!0})}if(l)throw new smol_toml_n(`trying to redefine an already defined value`,{toml:e,ptr:t});let[f,p]=y(e,d,`}`,r-1,i);s.add(f),c[a]=f,t=p}if(!c)throw new smol_toml_n(`unfinished table encountered`,{toml:e,ptr:t});return[o,t]}function C(e,t,r,i){let o=[],s;for(t++;(s=e[t++])!==`]`&&s;)if(s===`,`)throw new smol_toml_n(`expected value, found comma`,{toml:e,ptr:t-1});else if(s===`#`)t=smol_toml_a(e,t);else if(s!==` `&&s!==` `&&s!==`
|
|
201
|
+
`&&s!==`\r`){let n=y(e,t-1,`]`,r-1,i);o.push(n[0]),t=n[1]}if(!s)throw new smol_toml_n(`unfinished array encountered`,{toml:e,ptr:t});return[o,t]}
|
|
202
|
+
/*!
|
|
203
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
204
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
205
|
+
*
|
|
206
|
+
* Redistribution and use in source and binary forms, with or without
|
|
207
|
+
* modification, are permitted provided that the following conditions are met:
|
|
208
|
+
*
|
|
209
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
210
|
+
* list of conditions and the following disclaimer.
|
|
211
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
212
|
+
* this list of conditions and the following disclaimer in the
|
|
213
|
+
* documentation and/or other materials provided with the distribution.
|
|
214
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
215
|
+
* may be used to endorse or promote products derived from this software without
|
|
216
|
+
* specific prior written permission.
|
|
217
|
+
*
|
|
218
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
219
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
220
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
221
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
222
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
223
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
224
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
225
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
226
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
227
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
228
|
+
*/
|
|
229
|
+
function w(e,t,n,r){let i=t,a=n,o,s=!1,c;for(let t=0;t<e.length;t++){if(t){if(i=s?i[o]:i[o]={},a=(c=a[o]).c,r===0&&(c.t===1||c.t===2))return null;if(c.t===2){let e=i.length-1;i=i[e],a=a[e].c}}if(o=e[t],(s=Object.hasOwn(i,o))&&a[o]?.t===0&&a[o]?.d)return null;s||(o===`__proto__`&&(Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(a,o,{enumerable:!0,configurable:!0,writable:!0})),a[o]={t:t<e.length-1&&r===2?3:r,d:!1,i:0,c:{}})}if(c=a[o],c.t!==r&&!(r===1&&c.t===3)||(r===2&&(c.d||(c.d=!0,i[o]=[]),i[o].push(i={}),c.c[c.i++]=c={t:1,d:!1,i:0,c:{}}),c.d))return null;if(c.d=!0,r===1)i=s?i[o]:i[o]={};else if(r===0&&s)return null;return[o,i,c.c]}function T(e,{maxDepth:t=1e3,integersAsBigInt:r}={}){let i={},a={},s=i,c=a;for(let l=smol_toml_o(e,0);l<e.length;){if(e[l]===`[`){let t=e[++l]===`[`,r=x(e,l+=+t,`]`);if(t){if(e[r[1]-1]!==`]`)throw new smol_toml_n(`expected end of table declaration`,{toml:e,ptr:r[1]-1});r[1]++}let o=w(r[0],i,a,t?2:1);if(!o)throw new smol_toml_n(`trying to redefine an already defined table or value`,{toml:e,ptr:l});c=o[2],s=o[1],l=r[1]}else{let i=x(e,l),a=w(i[0],s,c,0);if(!a)throw new smol_toml_n(`trying to redefine an already defined table or value`,{toml:e,ptr:l});let o=y(e,i[1],void 0,t,r);a[1][a[0]]=o[0],l=o[1]}if(l=smol_toml_o(e,l,!0),e[l]&&e[l]!==`
|
|
230
|
+
`&&e[l]!==`\r`)throw new smol_toml_n(`each key-value declaration must be followed by an end-of-line`,{toml:e,ptr:l});l=smol_toml_o(e,l)}return i}
|
|
231
|
+
/*!
|
|
232
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
233
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
234
|
+
*
|
|
235
|
+
* Redistribution and use in source and binary forms, with or without
|
|
236
|
+
* modification, are permitted provided that the following conditions are met:
|
|
237
|
+
*
|
|
238
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
239
|
+
* list of conditions and the following disclaimer.
|
|
240
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
241
|
+
* this list of conditions and the following disclaimer in the
|
|
242
|
+
* documentation and/or other materials provided with the distribution.
|
|
243
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
244
|
+
* may be used to endorse or promote products derived from this software without
|
|
245
|
+
* specific prior written permission.
|
|
246
|
+
*
|
|
247
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
248
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
249
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
250
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
251
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
252
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
253
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
254
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
255
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
256
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
257
|
+
*/
|
|
258
|
+
let E=/^[a-z0-9-_]+$/i;function D(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`;if(e instanceof Date)return`date`}return t}function O(e){for(let t=0;t<e.length;t++)if(D(e[t])!==`object`)return!1;return e.length!=0}function k(e){return JSON.stringify(e).replace(/\x7f/g,`\\u007f`)}function A(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);if(t===`number`)return isNaN(e)?`nan`:e===1/0?`inf`:e===-1/0?`-inf`:r&&Number.isInteger(e)?e.toFixed(1):e.toString();if(t===`bigint`||t===`boolean`)return e.toString();if(t===`string`)return k(e);if(t===`date`){if(isNaN(e.getTime()))throw TypeError(`cannot serialize invalid date`);return e.toISOString()}if(t===`object`)return j(e,n,r);if(t===`array`)return M(e,n,r)}function j(e,t,n){let r=Object.keys(e);if(r.length===0)return`{}`;let i=`{ `;for(let a=0;a<r.length;a++){let o=r[a];a&&(i+=`, `),i+=E.test(o)?o:k(o),i+=` = `,i+=A(e[o],D(e[o]),t-1,n)}return i+` }`}function M(e,t,n){if(e.length===0)return`[]`;let r=`[ `;for(let i=0;i<e.length;i++){if(i&&(r+=`, `),e[i]===null||e[i]===void 0)throw TypeError(`arrays cannot contain null or undefined values`);r+=A(e[i],D(e[i]),t-1,n)}return r+` ]`}function N(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let i=``;for(let a=0;a<e.length;a++)i+=`${i&&`
|
|
259
|
+
`}[[${t}]]\n`,i+=P(0,e[a],t,n,r);return i}function P(e,t,n,r,i){if(r===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let a=``,o=``,s=Object.keys(t);for(let e=0;e<s.length;e++){let c=s[e];if(t[c]!==null&&t[c]!==void 0){let e=D(t[c]);if(e===`symbol`||e===`function`)throw TypeError(`cannot serialize values of type '${e}'`);let s=E.test(c)?c:k(c);if(e===`array`&&O(t[c]))o+=(o&&`
|
|
260
|
+
`)+N(t[c],n?`${n}.${s}`:s,r-1,i);else if(e===`object`){let e=n?`${n}.${s}`:s;o+=(o&&`
|
|
261
|
+
`)+P(e,t[c],e,r-1,i)}else a+=s,a+=` = `,a+=A(t[c],e,r,i),a+=`
|
|
262
|
+
`}}return e&&(a||!o)&&(a=a?`[${e}]\n${a}`:`[${e}]`),a&&o?`${a}\n${o}`:a||o}function F(e,{maxDepth:t=1e3,numbersAsFloat:n=!1}={}){if(D(e)!==`object`)throw TypeError(`stringify can only be called with an object`);let r=P(0,e,``,t,n);return r[r.length-1]===`
|
|
263
|
+
`?r:r+`
|
|
264
|
+
`}
|
|
265
|
+
;// CONCATENATED MODULE: ../../node_modules/confbox/dist/toml.mjs
|
|
266
|
+
function toml_i(t){let r=T(t);return (0,_format.n)(t,r,{preserveIndentation:!1}),r}function toml_a(e){let n=t(e,{preserveIndentation:!1}),i=r(e);return n.whitespace.start+i+n.whitespace.end}
|
|
267
|
+
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
//# sourceMappingURL=908.js.map
|
package/dist/908.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"908.js","sources":["webpack://@lousy-agents/lint/../../node_modules/confbox/dist/_chunks/libs/smol-toml.mjs","webpack://@lousy-agents/lint/../../node_modules/confbox/dist/toml.mjs"],"sourcesContent":["/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nfunction e(e,t){let n=e.slice(0,t).split(/\\r\\n|\\n|\\r/g);return[n.length,n.pop().length+1]}function t(e,t,n){let r=e.split(/\\r\\n|\\n|\\r/g),i=``,a=(Math.log10(t+1)|0)+1;for(let e=t-1;e<=t+1;e++){let o=r[e-1];o&&(i+=e.toString().padEnd(a,` `),i+=`: `,i+=o,i+=`\n`,e===t&&(i+=` `.repeat(a+n+2),i+=`^\n`))}return i}var n=class extends Error{line;column;codeblock;constructor(n,r){let[i,a]=e(r.toml,r.ptr),o=t(r.toml,i,a);super(`Invalid TOML document: ${n}\\n\\n${o}`,r),this.line=i,this.column=a,this.codeblock=o}};\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nfunction r(e,t){let n=0;for(;e[t-++n]===`\\\\`;);return--n&&n%2}function i(e,t=0,n=e.length){let r=e.indexOf(`\n`,t);return e[r-1]===`\\r`&&r--,r<=n?r:-1}function a(e,t){for(let r=t;r<e.length;r++){let i=e[r];if(i===`\n`)return r;if(i===`\\r`&&e[r+1]===`\n`)return r+1;if(i<` `&&i!==`\t`||i===``)throw new n(`control characters are not allowed in comments`,{toml:e,ptr:t})}return e.length}function o(e,t,n,r){let i;for(;(i=e[t])===` `||i===`\t`||!n&&(i===`\n`||i===`\\r`&&e[t+1]===`\n`);)t++;return r||i!==`#`?t:o(e,a(e,t),n)}function s(e,t,r,a,o=!1){if(!a)return t=i(e,t),t<0?e.length:t;for(let n=t;n<e.length;n++){let t=e[n];if(t===`#`)n=i(e,n);else if(t===r)return n+1;else if(t===a||o&&(t===`\n`||t===`\\r`&&e[n+1]===`\n`))return n}throw new n(`cannot find end of structure`,{toml:e,ptr:t})}function c(e,t){let n=e[t],i=n===e[t+1]&&e[t+1]===e[t+2]?e.slice(t,t+3):n;t+=i.length-1;do t=e.indexOf(i,++t);while(t>-1&&n!==`'`&&r(e,t));return t>-1&&(t+=i.length,i.length>1&&(e[t]===n&&t++,e[t]===n&&t++)),t}\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nlet l=/^(\\d{4}-\\d{2}-\\d{2})?[T ]?(?:(\\d{2}):\\d{2}(?::\\d{2}(?:\\.\\d+)?)?)?(Z|[-+]\\d{2}:\\d{2})?$/i;var u=class e extends Date{#e=!1;#t=!1;#n=null;constructor(e){let t=!0,n=!0,r=`Z`;if(typeof e==`string`){let i=e.match(l);i?(i[1]||(t=!1,e=`0000-01-01T${e}`),n=!!i[2],n&&e[10]===` `&&(e=e.replace(` `,`T`)),i[2]&&+i[2]>23?e=``:(r=i[3]||null,e=e.toUpperCase(),!r&&n&&(e+=`Z`))):e=``}super(e),isNaN(this.getTime())||(this.#e=t,this.#t=n,this.#n=r)}isDateTime(){return this.#e&&this.#t}isLocal(){return!this.#e||!this.#t||!this.#n}isDate(){return this.#e&&!this.#t}isTime(){return this.#t&&!this.#e}isValid(){return this.#e||this.#t}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#n===null)return e.slice(0,-1);if(this.#n===`Z`)return e;let t=this.#n.slice(1,3)*60+ +this.#n.slice(4,6);return t=this.#n[0]===`-`?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#n}static wrapAsOffsetDateTime(t,n=`Z`){let r=new e(t);return r.#n=n,r}static wrapAsLocalDateTime(t){let n=new e(t);return n.#n=null,n}static wrapAsLocalDate(t){let n=new e(t);return n.#t=!1,n.#n=null,n}static wrapAsLocalTime(t){let n=new e(t);return n.#e=!1,n.#n=null,n}};\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nlet d=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\\d(_?\\d)*))$/,f=/^[+-]?\\d(_?\\d)*(\\.\\d(_?\\d)*)?([eE][+-]?\\d(_?\\d)*)?$/,p=/^[+-]?0[0-9_]/,m=/^[0-9a-f]{2,8}$/i,h={b:`\\b`,t:`\t`,n:`\n`,f:`\\f`,r:`\\r`,e:`\\x1B`,'\"':`\"`,\"\\\\\":`\\\\`};function g(e,t=0,r=e.length){let i=e[t]===`'`,a=e[t++]===e[t]&&e[t]===e[t+1];a&&(r-=2,e[t+=2]===`\\r`&&t++,e[t]===`\n`&&t++);let s=0,c,l=``,u=t;for(;t<r-1;){let r=e[t++];if(r===`\n`||r===`\\r`&&e[t]===`\n`){if(!a)throw new n(`newlines are not allowed in strings`,{toml:e,ptr:t-1})}else if(r<` `&&r!==`\t`||r===``)throw new n(`control characters are not allowed in strings`,{toml:e,ptr:t-1});if(c){if(c=!1,r===`x`||r===`u`||r===`U`){let i=e.slice(t,t+=r===`x`?2:r===`u`?4:8);if(!m.test(i))throw new n(`invalid unicode escape`,{toml:e,ptr:s});try{l+=String.fromCodePoint(parseInt(i,16))}catch{throw new n(`invalid unicode escape`,{toml:e,ptr:s})}}else if(a&&(r===`\n`||r===` `||r===`\t`||r===`\\r`)){if(t=o(e,t-1,!0),e[t]!==`\n`&&e[t]!==`\\r`)throw new n(`invalid escape: only line-ending whitespace may be escaped`,{toml:e,ptr:s});t=o(e,t)}else if(r in h)l+=h[r];else throw new n(`unrecognized escape sequence`,{toml:e,ptr:s});u=t}else !i&&r===`\\\\`&&(s=t-1,c=!0,l+=e.slice(u,s))}return l+e.slice(u,r-1)}function _(e,t,r,i){if(e===`true`)return!0;if(e===`false`)return!1;if(e===`-inf`)return-1/0;if(e===`inf`||e===`+inf`)return 1/0;if(e===`nan`||e===`+nan`||e===`-nan`)return NaN;if(e===`-0`)return i?0n:0;let a=d.test(e);if(a||f.test(e)){if(p.test(e))throw new n(`leading zeroes are not allowed`,{toml:t,ptr:r});e=e.replace(/_/g,``);let o=+e;if(isNaN(o))throw new n(`invalid number`,{toml:t,ptr:r});if(a){if((a=!Number.isSafeInteger(o))&&!i)throw new n(`integer value cannot be represented losslessly`,{toml:t,ptr:r});(a||i===!0)&&(o=BigInt(e))}return o}let o=new u(e);if(!o.isValid())throw new n(`invalid value`,{toml:t,ptr:r});return o}\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nfunction v(e,t,n){let r=e.slice(t,n),i=r.indexOf(`#`);return i>-1&&(a(e,i),r=r.slice(0,i)),[r.trimEnd(),i]}function y(e,t,r,i,a){if(i===0)throw new n(`document contains excessively nested structures. aborting.`,{toml:e,ptr:t});let l=e[t];if(l===`[`||l===`{`){let[s,c]=l===`[`?C(e,t,i,a):S(e,t,i,a);if(r){if(c=o(e,c),e[c]===`,`)c++;else if(e[c]!==r)throw new n(`expected comma or end of structure`,{toml:e,ptr:c})}return[s,c]}let u;if(l===`\"`||l===`'`){u=c(e,t);let i=g(e,t,u);if(r){if(u=o(e,u),e[u]&&e[u]!==`,`&&e[u]!==r&&e[u]!==`\n`&&e[u]!==`\\r`)throw new n(`unexpected character encountered`,{toml:e,ptr:u});u+=+(e[u]===`,`)}return[i,u]}u=s(e,t,`,`,r);let d=v(e,t,u-+(e[u-1]===`,`));if(!d[0])throw new n(`incomplete key-value declaration: no value specified`,{toml:e,ptr:t});return r&&d[1]>-1&&(u=o(e,t+d[1]),u+=+(e[u]===`,`)),[_(d[0],e,t,a),u]}\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nlet b=/^[a-zA-Z0-9-_]+[ \\t]*$/;function x(e,t,r=`=`){let a=t-1,s=[],l=e.indexOf(r,t);if(l<0)throw new n(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});do{let o=e[t=++a];if(o!==` `&&o!==`\t`)if(o===`\"`||o===`'`){if(o===e[t+1]&&o===e[t+2])throw new n(`multiline strings are not allowed in keys`,{toml:e,ptr:t});let u=c(e,t);if(u<0)throw new n(`unfinished string encountered`,{toml:e,ptr:t});a=e.indexOf(`.`,u);let d=e.slice(u,a<0||a>l?l:a),f=i(d);if(f>-1)throw new n(`newlines are not allowed in keys`,{toml:e,ptr:t+a+f});if(d.trimStart())throw new n(`found extra tokens after the string part`,{toml:e,ptr:u});if(l<u&&(l=e.indexOf(r,u),l<0))throw new n(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});s.push(g(e,t,u))}else{a=e.indexOf(`.`,t);let r=e.slice(t,a<0||a>l?l:a);if(!b.test(r))throw new n(`only letter, numbers, dashes and underscores are allowed in keys`,{toml:e,ptr:t});s.push(r.trimEnd())}}while(a+1&&a<l);return[s,o(e,l+1,!0,!0)]}function S(e,t,r,i){let o={},s=new Set,c;for(t++;(c=e[t++])!==`}`&&c;)if(c===`,`)throw new n(`expected value, found comma`,{toml:e,ptr:t-1});else if(c===`#`)t=a(e,t);else if(c!==` `&&c!==`\t`&&c!==`\n`&&c!==`\\r`){let a,c=o,l=!1,[u,d]=x(e,t-1);for(let r=0;r<u.length;r++){if(r&&(c=l?c[a]:c[a]={}),a=u[r],(l=Object.hasOwn(c,a))&&(typeof c[a]!=`object`||s.has(c[a])))throw new n(`trying to redefine an already defined value`,{toml:e,ptr:t});!l&&a===`__proto__`&&Object.defineProperty(c,a,{enumerable:!0,configurable:!0,writable:!0})}if(l)throw new n(`trying to redefine an already defined value`,{toml:e,ptr:t});let[f,p]=y(e,d,`}`,r-1,i);s.add(f),c[a]=f,t=p}if(!c)throw new n(`unfinished table encountered`,{toml:e,ptr:t});return[o,t]}function C(e,t,r,i){let o=[],s;for(t++;(s=e[t++])!==`]`&&s;)if(s===`,`)throw new n(`expected value, found comma`,{toml:e,ptr:t-1});else if(s===`#`)t=a(e,t);else if(s!==` `&&s!==`\t`&&s!==`\n`&&s!==`\\r`){let n=y(e,t-1,`]`,r-1,i);o.push(n[0]),t=n[1]}if(!s)throw new n(`unfinished array encountered`,{toml:e,ptr:t});return[o,t]}\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nfunction w(e,t,n,r){let i=t,a=n,o,s=!1,c;for(let t=0;t<e.length;t++){if(t){if(i=s?i[o]:i[o]={},a=(c=a[o]).c,r===0&&(c.t===1||c.t===2))return null;if(c.t===2){let e=i.length-1;i=i[e],a=a[e].c}}if(o=e[t],(s=Object.hasOwn(i,o))&&a[o]?.t===0&&a[o]?.d)return null;s||(o===`__proto__`&&(Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(a,o,{enumerable:!0,configurable:!0,writable:!0})),a[o]={t:t<e.length-1&&r===2?3:r,d:!1,i:0,c:{}})}if(c=a[o],c.t!==r&&!(r===1&&c.t===3)||(r===2&&(c.d||(c.d=!0,i[o]=[]),i[o].push(i={}),c.c[c.i++]=c={t:1,d:!1,i:0,c:{}}),c.d))return null;if(c.d=!0,r===1)i=s?i[o]:i[o]={};else if(r===0&&s)return null;return[o,i,c.c]}function T(e,{maxDepth:t=1e3,integersAsBigInt:r}={}){let i={},a={},s=i,c=a;for(let l=o(e,0);l<e.length;){if(e[l]===`[`){let t=e[++l]===`[`,r=x(e,l+=+t,`]`);if(t){if(e[r[1]-1]!==`]`)throw new n(`expected end of table declaration`,{toml:e,ptr:r[1]-1});r[1]++}let o=w(r[0],i,a,t?2:1);if(!o)throw new n(`trying to redefine an already defined table or value`,{toml:e,ptr:l});c=o[2],s=o[1],l=r[1]}else{let i=x(e,l),a=w(i[0],s,c,0);if(!a)throw new n(`trying to redefine an already defined table or value`,{toml:e,ptr:l});let o=y(e,i[1],void 0,t,r);a[1][a[0]]=o[0],l=o[1]}if(l=o(e,l,!0),e[l]&&e[l]!==`\n`&&e[l]!==`\\r`)throw new n(`each key-value declaration must be followed by an end-of-line`,{toml:e,ptr:l});l=o(e,l)}return i}\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nlet E=/^[a-z0-9-_]+$/i;function D(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`;if(e instanceof Date)return`date`}return t}function O(e){for(let t=0;t<e.length;t++)if(D(e[t])!==`object`)return!1;return e.length!=0}function k(e){return JSON.stringify(e).replace(/\\x7f/g,`\\\\u007f`)}function A(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);if(t===`number`)return isNaN(e)?`nan`:e===1/0?`inf`:e===-1/0?`-inf`:r&&Number.isInteger(e)?e.toFixed(1):e.toString();if(t===`bigint`||t===`boolean`)return e.toString();if(t===`string`)return k(e);if(t===`date`){if(isNaN(e.getTime()))throw TypeError(`cannot serialize invalid date`);return e.toISOString()}if(t===`object`)return j(e,n,r);if(t===`array`)return M(e,n,r)}function j(e,t,n){let r=Object.keys(e);if(r.length===0)return`{}`;let i=`{ `;for(let a=0;a<r.length;a++){let o=r[a];a&&(i+=`, `),i+=E.test(o)?o:k(o),i+=` = `,i+=A(e[o],D(e[o]),t-1,n)}return i+` }`}function M(e,t,n){if(e.length===0)return`[]`;let r=`[ `;for(let i=0;i<e.length;i++){if(i&&(r+=`, `),e[i]===null||e[i]===void 0)throw TypeError(`arrays cannot contain null or undefined values`);r+=A(e[i],D(e[i]),t-1,n)}return r+` ]`}function N(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let i=``;for(let a=0;a<e.length;a++)i+=`${i&&`\n`}[[${t}]]\\n`,i+=P(0,e[a],t,n,r);return i}function P(e,t,n,r,i){if(r===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let a=``,o=``,s=Object.keys(t);for(let e=0;e<s.length;e++){let c=s[e];if(t[c]!==null&&t[c]!==void 0){let e=D(t[c]);if(e===`symbol`||e===`function`)throw TypeError(`cannot serialize values of type '${e}'`);let s=E.test(c)?c:k(c);if(e===`array`&&O(t[c]))o+=(o&&`\n`)+N(t[c],n?`${n}.${s}`:s,r-1,i);else if(e===`object`){let e=n?`${n}.${s}`:s;o+=(o&&`\n`)+P(e,t[c],e,r-1,i)}else a+=s,a+=` = `,a+=A(t[c],e,r,i),a+=`\n`}}return e&&(a||!o)&&(a=a?`[${e}]\\n${a}`:`[${e}]`),a&&o?`${a}\\n${o}`:a||o}function F(e,{maxDepth:t=1e3,numbersAsFloat:n=!1}={}){if(D(e)!==`object`)throw TypeError(`stringify can only be called with an object`);let r=P(0,e,``,t,n);return r[r.length-1]===`\n`?r:r+`\n`}export{T as n,F as t};","import{n as e,t}from\"./_chunks/_format.mjs\";import{n,t as r}from\"./_chunks/libs/smol-toml.mjs\";function i(t){let r=n(t);return e(t,r,{preserveIndentation:!1}),r}function a(e){let n=t(e,{preserveIndentation:!1}),i=r(e);return n.whitespace.start+i+n.whitespace.end}export{i as parseTOML,a as stringifyTOML};"],"names":[],"mappings":"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"}
|
package/dist/998.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export const __rspack_esm_id = "998";
|
|
2
|
+
export const __rspack_esm_ids = ["998"];
|
|
3
|
+
export const __webpack_modules__ = {
|
|
4
|
+
3653(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
|
|
6
|
+
// EXPORTS
|
|
7
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
8
|
+
parseYAML: () => (/* binding */ yaml_i)
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
// UNUSED EXPORTS: stringifyYAML
|
|
12
|
+
|
|
13
|
+
// EXTERNAL MODULE: ../../node_modules/confbox/dist/_chunks/_format.mjs
|
|
14
|
+
var _format = __webpack_require__(5492);
|
|
15
|
+
;// CONCATENATED MODULE: ../../node_modules/confbox/dist/_chunks/libs/js-yaml.mjs
|
|
16
|
+
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
17
|
+
function js_yaml_e(e){return e==null}function js_yaml_t(e){return typeof e==`object`&&!!e}function js_yaml_n(t){return Array.isArray(t)?t:js_yaml_e(t)?[]:[t]}function js_yaml_r(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function js_yaml_i(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}function js_yaml_a(e){return e===0&&1/e==-1/0}var js_yaml_o={isNothing:js_yaml_e,isObject:js_yaml_t,toArray:js_yaml_n,repeat:js_yaml_i,isNegativeZero:js_yaml_a,extend:js_yaml_r};function js_yaml_s(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
|
|
18
|
+
|
|
19
|
+
`+e.mark.snippet),r+` `+n):r}function js_yaml_c(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=js_yaml_s(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}js_yaml_c.prototype=Object.create(Error.prototype),js_yaml_c.prototype.constructor=js_yaml_c,js_yaml_c.prototype.toString=function(e){return this.name+`: `+js_yaml_s(this,e)};var js_yaml_l=js_yaml_c;function js_yaml_u(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function js_yaml_d(e,t){return js_yaml_o.repeat(` `,t-e.length)+e}function js_yaml_f(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,s=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var c=``,l,f,p=Math.min(e.line+t.linesAfter,i.length).toString().length,m=t.maxLength-(t.indent+p+3);for(l=1;l<=t.linesBefore&&!(s-l<0);l++)f=js_yaml_u(e.buffer,r[s-l],i[s-l],e.position-(r[s]-r[s-l]),m),c=js_yaml_o.repeat(` `,t.indent)+js_yaml_d((e.line-l+1).toString(),p)+` | `+f.str+`
|
|
20
|
+
`+c;for(f=js_yaml_u(e.buffer,r[s],i[s],e.position,m),c+=js_yaml_o.repeat(` `,t.indent)+js_yaml_d((e.line+1).toString(),p)+` | `+f.str+`
|
|
21
|
+
`,c+=js_yaml_o.repeat(`-`,t.indent+p+3+f.pos)+`^
|
|
22
|
+
`,l=1;l<=t.linesAfter&&!(s+l>=i.length);l++)f=js_yaml_u(e.buffer,r[s+l],i[s+l],e.position-(r[s]-r[s+l]),m),c+=js_yaml_o.repeat(` `,t.indent)+js_yaml_d((e.line+l+1).toString(),p)+` | `+f.str+`
|
|
23
|
+
`;return c.replace(/\n$/,``)}var js_yaml_p=js_yaml_f,js_yaml_m=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],js_yaml_h=[`scalar`,`sequence`,`mapping`];function js_yaml_g(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function js_yaml_(e,t){if(t||={},Object.keys(t).forEach(function(t){if(js_yaml_m.indexOf(t)===-1)throw new js_yaml_l(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=js_yaml_g(t.styleAliases||null),js_yaml_h.indexOf(this.kind)===-1)throw new js_yaml_l(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}var js_yaml_v=js_yaml_;function ee(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function te(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function y(e){return this.extend(e)}y.prototype.extend=function(e){var t=[],n=[];if(e instanceof js_yaml_v)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new js_yaml_l(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof js_yaml_v))throw new js_yaml_l(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new js_yaml_l(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new js_yaml_l(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),n.forEach(function(e){if(!(e instanceof js_yaml_v))throw new js_yaml_l(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(y.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=ee(r,`implicit`),r.compiledExplicit=ee(r,`explicit`),r.compiledTypeMap=te(r.compiledImplicit,r.compiledExplicit),r};var ne=new y({explicit:[new js_yaml_v(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),new js_yaml_v(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),new js_yaml_v(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}})]});function re(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function ie(){return null}function ae(e){return e===null}var oe=new js_yaml_v(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:re,construct:ie,predicate:ae,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`});function se(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function ce(e){return e===`true`||e===`True`||e===`TRUE`}function le(e){return Object.prototype.toString.call(e)===`[object Boolean]`}var ue=new js_yaml_v(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:se,construct:ce,predicate:le,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`});function de(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function fe(e){return 48<=e&&e<=55}function pe(e){return 48<=e&&e<=57}function me(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i===`-`||i===`+`)&&(i=e[++n]),i===`0`){if(n+1===t)return!0;if(i=e[++n],i===`b`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(i!==`0`&&i!==`1`)return!1;r=!0}return r&&i!==`_`}if(i===`x`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!de(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}if(i===`o`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!fe(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}}if(i===`_`)return!1;for(;n<t;n++)if(i=e[n],i!==`_`){if(!pe(e.charCodeAt(n)))return!1;r=!0}return!(!r||i===`_`)}function he(e){var t=e,n=1,r;if(t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function ge(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!js_yaml_o.isNegativeZero(e)}var _e=new js_yaml_v(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:me,construct:he,predicate:ge,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),ve=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function ye(e){return!(e===null||!ve.test(e)||e[e.length-1]===`_`)}function be(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}var xe=/^[-+]?[0-9]+e/;function Se(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(js_yaml_o.isNegativeZero(e))return`-0.0`;return n=e.toString(10),xe.test(n)?n.replace(`e`,`.e`):n}function Ce(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||js_yaml_o.isNegativeZero(e))}var we=new js_yaml_v(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:ye,construct:be,predicate:Ce,represent:Se,defaultStyle:`lowercase`}),Te=ne.extend({implicit:[oe,ue,_e,we]}),Ee=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),De=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function Oe(e){return e===null?!1:Ee.exec(e)!==null||De.exec(e)!==null}function ke(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=Ee.exec(e),t===null&&(t=De.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}function Ae(e){return e.toISOString()}var je=new js_yaml_v(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:Oe,construct:ke,instanceOf:Date,represent:Ae});function Me(e){return e===`<<`||e===null}var Ne=new js_yaml_v(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:Me}),b=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
24
|
+
\r`;function Pe(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=b;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}function Fe(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=b,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function Ie(e){var t=``,n=0,r,i,a=e.length,o=b;for(r=0;r<a;r++)r%3==0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Le(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}var Re=new js_yaml_v(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:Pe,construct:Fe,predicate:Le,represent:Ie}),ze=Object.prototype.hasOwnProperty,Be=Object.prototype.toString;function Ve(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,Be.call(i)!==`[object Object]`)return!1;for(a in i)if(ze.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function He(e){return e===null?[]:e}var Ue=new js_yaml_v(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:Ve,construct:He}),We=Object.prototype.toString;function Ge(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],We.call(r)!==`[object Object]`||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function Ke(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var qe=new js_yaml_v(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:Ge,construct:Ke}),Je=Object.prototype.hasOwnProperty;function Ye(e){if(e===null)return!0;var t,n=e;for(t in n)if(Je.call(n,t)&&n[t]!==null)return!1;return!0}function Xe(e){return e===null?{}:e}var Ze=new js_yaml_v(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:Ye,construct:Xe}),Qe=Te.extend({implicit:[je,Ne],explicit:[Re,Ue,qe,Ze]}),x=Object.prototype.hasOwnProperty,S=1,$e=2,et=3,C=4,w=1,tt=2,nt=3,rt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,it=/[\x85\u2028\u2029]/,at=/[,\[\]\{\}]/,ot=/^(?:!|!!|![a-z\-]+!)$/i,st=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ct(e){return Object.prototype.toString.call(e)}function T(e){return e===10||e===13}function E(e){return e===9||e===32}function D(e){return e===9||e===32||e===10||e===13}function O(e){return e===44||e===91||e===93||e===123||e===125}function lt(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function ut(e){return e===120?2:e===117?4:e===85?8:0}function dt(e){return 48<=e&&e<=57?e-48:-1}function ft(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?`
|
|
25
|
+
`:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`
`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}function pt(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function mt(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var ht=Array(256),gt=Array(256),k=0;k<256;k++)ht[k]=ft(k)?1:0,gt[k]=ft(k);function _t(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Qe,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function vt(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=js_yaml_p(n),new js_yaml_l(t,n)}function A(e,t){throw vt(e,t)}function j(e,t){e.onWarning&&e.onWarning.call(null,vt(e,t))}var yt={YAML:function(e,t,n){var r,i,a;e.version!==null&&A(e,`duplication of %YAML directive`),n.length!==1&&A(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&A(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&A(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&j(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,i;n.length!==2&&A(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],ot.test(r)||A(e,`ill-formed tag handle (first argument) of the TAG directive`),x.call(e.tagMap,r)&&A(e,`there is a previously declared suffix for "`+r+`" tag handle`),st.test(i)||A(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{A(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i}};function M(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||A(e,`expected valid JSON character`);else rt.test(s)&&A(e,`the stream contains non-printable characters`);e.result+=s}}function bt(e,t,n,r){var i,a,s,c;for(js_yaml_o.isObject(n)||A(e,`cannot merge mappings; the provided source object is unacceptable`),i=Object.keys(n),s=0,c=i.length;s<c;s+=1)a=i[s],x.call(t,a)||(mt(t,a,n[a]),r[a]=!0)}function N(e,t,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&A(e,`nested arrays are not supported inside keys`),typeof i==`object`&&ct(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(typeof i==`object`&&ct(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)bt(e,t,a[l],n);else bt(e,t,a,n);else !e.json&&!x.call(n,i)&&x.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,A(e,`duplicated mapping key`)),mt(t,i,a),delete n[i];return t}function P(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):A(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function F(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;E(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(T(i))for(P(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&j(e,`deficient indentation`),r}function I(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||D(n)))}function L(e,t){t===1?e.result+=` `:t>1&&(e.result+=js_yaml_o.repeat(`
|
|
26
|
+
`,t-1))}function xt(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(D(p)||O(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),D(i)||n&&O(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),D(i)||n&&O(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),D(r))break}else if(e.position===e.lineStart&&I(e)||n&&O(p))break;else if(T(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,F(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(M(e,a,o,!1),L(e,e.line-c),a=o=e.position,!1),E(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return M(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}function St(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(M(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else T(n)?(M(e,r,i,!0),L(e,F(e,!1,t)),r=i=e.position):e.position===e.lineStart&&I(e)?A(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);A(e,`unexpected end of the stream within a single quoted scalar`)}function Ct(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return M(e,n,e.position,!0),e.position++,!0;else if(s===92){if(M(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),T(s))F(e,!1,t);else if(s<256&&ht[s])e.result+=gt[s],e.position++;else if((o=ut(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=lt(s))>=0?a=(a<<4)+o:A(e,`expected hexadecimal character`);e.result+=pt(a),e.position++}else A(e,`unknown escape sequence`);n=r=e.position}else T(s)?(M(e,n,r,!0),L(e,F(e,!1,t)),n=r=e.position):e.position===e.lineStart&&I(e)?A(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);A(e,`unexpected end of the stream within a double quoted scalar`)}function wt(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(F(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&A(e,`expected the node content, but found ','`):A(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),D(l)&&(d=f=!0,e.position++,F(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,R(e,t,S,!1,!0),g=e.tag,h=e.result,F(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),F(e,!0,t),R(e,t,S,!1,!0),_=e.result),p?N(e,s,m,g,h,_,r,i,a):d?s.push(N(e,null,m,g,h,_,r,i,a)):s.push(h),F(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}A(e,`unexpected end of the stream within a flow collection`)}function Tt(e,t){var n,r,i=w,a=!1,s=!1,c=t,l=0,u=!1,d,f=e.input.charCodeAt(e.position);if(f===124)r=!1;else if(f===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)w===i?i=f===43?nt:tt:A(e,`repeat of a chomping mode identifier`);else if((d=dt(f))>=0)d===0?A(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):s?A(e,`repeat of an indentation width identifier`):(c=t+d-1,s=!0);else break;if(E(f)){do f=e.input.charCodeAt(++e.position);while(E(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!T(f)&&f!==0)}for(;f!==0;){for(P(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndent<c)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>c&&(c=e.lineIndent),T(f)){l++;continue}if(e.lineIndent<c){i===nt?e.result+=js_yaml_o.repeat(`
|
|
27
|
+
`,a?1+l:l):i===w&&a&&(e.result+=`
|
|
28
|
+
`);break}for(r?E(f)?(u=!0,e.result+=js_yaml_o.repeat(`
|
|
29
|
+
`,a?1+l:l)):u?(u=!1,e.result+=js_yaml_o.repeat(`
|
|
30
|
+
`,l+1)):l===0?a&&(e.result+=` `):e.result+=js_yaml_o.repeat(`
|
|
31
|
+
`,l):e.result+=js_yaml_o.repeat(`
|
|
32
|
+
`,a?1+l:l),a=!0,s=!0,l=0,n=e.position;!T(f)&&f!==0;)f=e.input.charCodeAt(++e.position);M(e,n,e.position,!1)}return!0}function Et(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,A(e,`tab characters must not be used in indentation`)),!(c!==45||(o=e.input.charCodeAt(e.position+1),!D(o))));){if(s=!0,e.position++,F(e,!0,-1)&&e.lineIndent<=t){a.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,R(e,t,et,!1,!0),a.push(e.result),F(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)A(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind=`sequence`,e.result=a,!0):!1}function Dt(e,t,n){var r,i,a,o,s,c,l=e.tag,u=e.anchor,d={},f=Object.create(null),p=null,m=null,h=null,g=!1,_=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),v=e.input.charCodeAt(e.position);v!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,A(e,`tab characters must not be used in indentation`)),r=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&D(r))v===63?(g&&(N(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!0,i=!0):g?(g=!1,i=!0):A(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=r;else{if(o=e.line,s=e.lineStart,c=e.position,!R(e,n,$e,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);E(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),D(v)||A(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(N(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!1,i=!1,p=e.tag,m=e.result;else if(_)A(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=l,e.anchor=u,!0}else if(_)A(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=l,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(g&&(o=e.line,s=e.lineStart,c=e.position),R(e,t,C,!0,i)&&(g?m=e.result:h=e.result),g||(N(e,d,f,p,m,h,o,s,c),p=m=h=null),F(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)A(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&N(e,d,f,p,m,null,o,s,c),_&&(e.tag=l,e.anchor=u,e.kind=`mapping`,e.result=d),_}function Ot(e){var t,n=!1,r=!1,i,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;if(e.tag!==null&&A(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i=`!!`,o=e.input.charCodeAt(++e.position)):i=`!`,t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):A(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!D(o);)o===33&&(r?A(e,`tag suffix cannot contain exclamation marks`):(i=e.input.slice(t-1,e.position+1),ot.test(i)||A(e,`named tag handle cannot contain such characters`),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),at.test(a)&&A(e,`tag suffix cannot contain flow indicator characters`)}a&&!st.test(a)&&A(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{A(e,`tag name is malformed: `+a)}return n?e.tag=a:x.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i===`!`?e.tag=`!`+a:i===`!!`?e.tag=`tag:yaml.org,2002:`+a:A(e,`undeclared tag handle "`+i+`"`),!0}function kt(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&A(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!D(n)&&!O(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&A(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}function At(e){var t,n,r=e.input.charCodeAt(e.position);if(r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!D(r)&&!O(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&A(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),x.call(e.anchorMap,n)||A(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],F(e,!0,-1),!0}function R(e,t,n,r,i){var a,o,s,c=1,l=!1,u=!1,d,f,p,m,h,g;if(e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=C===n||et===n,r&&F(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;Ot(e)||kt(e);)F(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1;if(s&&=l||i,(c===1||C===n)&&(h=S===n||$e===n?t:t+1,g=e.position-e.lineStart,c===1?s&&(Et(e,g)||Dt(e,g,h))||wt(e,h)?u=!0:(o&&Tt(e,h)||St(e,h)||Ct(e,h)?u=!0:At(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&A(e,`alias node should not have any properties`)):xt(e,h,S===n)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=s&&Et(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag===`?`){for(e.result!==null&&e.kind!==`scalar`&&A(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d<f;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!==`!`){if(x.call(e.typeMap[e.kind||`fallback`],e.tag))m=e.typeMap[e.kind||`fallback`][e.tag];else for(m=null,p=e.typeMap.multi[e.kind||`fallback`],d=0,f=p.length;d<f;d+=1)if(e.tag.slice(0,p[d].tag.length)===p[d].tag){m=p[d];break}m||A(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&m.kind!==e.kind&&A(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):A(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}function jt(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(F(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!D(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&A(e,`directive name must not be less than one character in length`);o!==0;){for(;E(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!T(o));break}if(T(o))break;for(n=e.position;o!==0&&!D(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&P(e),x.call(yt,r)?yt[r](e,r,i):j(e,`unknown document directive "`+r+`"`)}if(F(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,F(e,!0,-1)):a&&A(e,`directives end mark is expected`),R(e,e.lineIndent-1,C,!1,!0),F(e,!0,-1),e.checkLineBreaks&&it.test(e.input.slice(t,e.position))&&j(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&I(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,F(e,!0,-1));return}if(e.position<e.length-1)A(e,`end of the stream or a document separator is expected`);else return}function Mt(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
33
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new _t(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,A(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)jt(n);return n.documents}function Nt(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);var r=Mt(e,n);if(typeof t!=`function`)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function Pt(e,t){var n=Mt(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new js_yaml_l(`expected a single document in the stream, but found more`)}}var Ft={loadAll:Nt,load:Pt},It=Object.prototype.toString,Lt=Object.prototype.hasOwnProperty,z=65279,Rt=9,B=10,zt=13,Bt=32,Vt=33,Ht=34,V=35,Ut=37,Wt=38,Gt=39,Kt=42,qt=44,Jt=45,H=58,Yt=61,Xt=62,Zt=63,Qt=64,$t=91,en=93,tn=96,nn=123,rn=124,an=125,U={};U[0]=`\\0`,U[7]=`\\a`,U[8]=`\\b`,U[9]=`\\t`,U[10]=`\\n`,U[11]=`\\v`,U[12]=`\\f`,U[13]=`\\r`,U[27]=`\\e`,U[34]=`\\"`,U[92]=`\\\\`,U[133]=`\\N`,U[160]=`\\_`,U[8232]=`\\L`,U[8233]=`\\P`;var on=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],sn=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function cn(e,t){var n,r,i,a,o,s,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)o=r[i],s=String(t[o]),o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&Lt.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s;return n}function ln(e){var t=e.toString(16).toUpperCase(),n,r;if(e<=255)n=`x`,r=2;else if(e<=65535)n=`u`,r=4;else if(e<=4294967295)n=`U`,r=8;else throw new js_yaml_l(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+n+js_yaml_o.repeat(`0`,r-t.length)+t}var un=1,W=2;function dn(e){this.schema=e.schema||Qe,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=js_yaml_o.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=cn(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===`"`?W:un,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function fn(e,t){for(var n=js_yaml_o.repeat(` `,t),r=0,i=-1,a=``,s,c=e.length;r<c;)i=e.indexOf(`
|
|
34
|
+
`,r),i===-1?(s=e.slice(r),r=c):(s=e.slice(r,i+1),r=i+1),s.length&&s!==`
|
|
35
|
+
`&&(a+=n),a+=s;return a}function G(e,t){return`
|
|
36
|
+
`+js_yaml_o.repeat(` `,e.indent*t)}function pn(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function K(e){return e===Bt||e===Rt}function q(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==z||65536<=e&&e<=1114111}function mn(e){return q(e)&&e!==z&&e!==zt&&e!==B}function hn(e,t,n){var r=mn(e),i=r&&!K(e);return(n?r:r&&e!==qt&&e!==$t&&e!==en&&e!==nn&&e!==an)&&e!==V&&!(t===H&&!i)||mn(t)&&!K(t)&&e===V||t===H&&i}function gn(e){return q(e)&&e!==z&&!K(e)&&e!==Jt&&e!==Zt&&e!==H&&e!==qt&&e!==$t&&e!==en&&e!==nn&&e!==an&&e!==V&&e!==Wt&&e!==Kt&&e!==Vt&&e!==rn&&e!==Yt&&e!==Xt&&e!==Gt&&e!==Ht&&e!==Ut&&e!==Qt&&e!==tn}function _n(e){return!K(e)&&e!==H}function J(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function vn(e){return/^\n* /.test(e)}var yn=1,Y=2,bn=3,xn=4,X=5;function Sn(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=gn(J(e,0))&&_n(J(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=J(e,c),!q(l))return X;h&&=hn(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=J(e,c),l===B)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!q(l))return X;h&&=hn(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?yn:a===W?X:Y:n>9&&vn(e)?X:o?a===W?X:Y:f?xn:bn}function Cn(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===W?`""`:`''`;if(!e.noCompatMode&&(on.indexOf(t)!==-1||sn.test(t)))return e.quotingType===W?`"`+t+`"`:`'`+t+`'`;var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return pn(e,t)}switch(Sn(t,s,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,i)){case yn:return t;case Y:return`'`+t.replace(/'/g,`''`)+`'`;case bn:return`|`+wn(t,e.indent)+Tn(fn(t,a));case xn:return`>`+wn(t,e.indent)+Tn(fn(En(t,o),a));case X:return`"`+Dn(t)+`"`;default:throw new js_yaml_l(`impossible error: invalid scalar style`)}}()}function wn(e,t){var n=vn(e)?String(t):``,r=e[e.length-1]===`
|
|
37
|
+
`;return n+(r&&(e[e.length-2]===`
|
|
38
|
+
`||e===`
|
|
39
|
+
`)?`+`:r?``:`-`)+`
|
|
40
|
+
`}function Tn(e){return e[e.length-1]===`
|
|
41
|
+
`?e.slice(0,-1):e}function En(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var r=e.indexOf(`
|
|
42
|
+
`);return r=r===-1?e.length:r,n.lastIndex=r,Z(e.slice(0,r),t)}(),i=e[0]===`
|
|
43
|
+
`||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?`
|
|
44
|
+
`:``)+Z(c,t),i=a}return r}function Z(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
|
|
45
|
+
`+e.slice(i,a),i=a+1),o=s;return c+=`
|
|
46
|
+
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
47
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function Dn(e){for(var t=``,n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=J(e,i),r=U[n],!r&&q(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||ln(n);return t}function On(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(Q(e,t,s,!1,!1)||s===void 0&&Q(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=i,e.dump=`[`+r+`]`}function kn(e,t,n,r){var i=``,a=e.tag,o,s,c;for(o=0,s=n.length;o<s;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(Q(e,t+1,c,!0,!0,!1,!0)||c===void 0&&Q(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=G(e,t)),e.dump&&B===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump);e.tag=a,e.dump=i||`[]`}function An(e,t,n){var r=``,i=e.tag,a=Object.keys(n),o,s,c,l,u;for(o=0,s=a.length;o<s;o+=1)u=``,r!==``&&(u+=`, `),e.condenseFlow&&(u+=`"`),c=a[o],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),Q(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),Q(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}function jn(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,u,d,f,p;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new js_yaml_l(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s<c;s+=1)p=``,(!r||i!==``)&&(p+=G(e,t)),u=o[s],d=n[u],e.replacer&&(d=e.replacer.call(n,u,d)),Q(e,t+1,u,!0,!0,!0)&&(f=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,f&&(e.dump&&B===e.dump.charCodeAt(0)?p+=`?`:p+=`? `),p+=e.dump,f&&(p+=G(e,t)),Q(e,t+1,d,!0,f)&&(e.dump&&B===e.dump.charCodeAt(0)?p+=`:`:p+=`: `,p+=e.dump,i+=p));e.tag=a,e.dump=i||`{}`}function Mn(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t==`object`&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag=`?`,s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,It.call(s.represent)===`[object Function]`)r=s.represent(t,c);else if(Lt.call(s.represent,c))r=s.represent[c](t,c);else throw new js_yaml_l(`!<`+s.tag+`> tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}function Q(e,t,n,r,i,a,o){e.tag=null,e.dump=n,Mn(e,n,!1)||Mn(e,n,!0);var s=It.call(e.dump),c=r,u;r&&=e.flowLevel<0||e.flowLevel>t;var d=s===`[object Object]`||s===`[object Array]`,f,p;if(d&&(f=e.duplicates.indexOf(n),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(jn(e,t,e.dump,i),p&&(e.dump=`&ref_`+f+e.dump)):(An(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?kn(e,t-1,e.dump,i):kn(e,t,e.dump,i),p&&(e.dump=`&ref_`+f+e.dump)):(On(e,t,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&Cn(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new js_yaml_l(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(u=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),u=e.tag[0]===`!`?`!`+u:u.slice(0,18)===`tag:yaml.org,2002:`?`!!`+u.slice(18):`!<`+u+`>`,e.dump=u+` `+e.dump)}return!0}function Nn(e,t){var n=[],r=[],i,a;for($(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=Array(a)}function $(e,t,n){var r,i,a;if(typeof e==`object`&&e)if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)$(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)$(e[r[i]],t,n)}function Pn(e,t){t||={};var n=new dn(t);n.noRefs||Nn(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),Q(n,0,r,!0,!0)?n.dump+`
|
|
48
|
+
`:``}var Fn={dump:Pn},In=Ft.load;Ft.loadAll;var Ln=Fn.dump;
|
|
49
|
+
;// CONCATENATED MODULE: ../../node_modules/confbox/dist/yaml.mjs
|
|
50
|
+
function yaml_i(t,r){let i=In(t,r);return (0,_format.n)(t,i,r),i}function yaml_a(e,n){let i=t(e,{preserveIndentation:!1}),a=r(e,{indent:typeof i.indent==`string`?i.indent.length:i.indent,...n});return i.whitespace.start+a.trim()+i.whitespace.end}
|
|
51
|
+
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=998.js.map
|