markedin-parser 0.4.0 → 0.4.2

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/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [2026] [Jason Stonebraker]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,8 @@
1
+ Markedin
2
+ Copyright 2026 Jason Stonebraker
3
+
4
+ This product includes software developed by Jason Stonebraker
5
+ (https://markedin.dev/).
6
+
7
+ "Markedin" is a trademark of Jason Stonebraker, not licensed under Apache 2.0
8
+ (see Section 6). See TRADEMARK.md.
package/README.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # markedin-parser
2
2
 
3
- Markedin (`.mi`) is a file format for both machines and humans. YAML frontmatter + templated Markdown.
3
+ The Markedin parser for `.mi` files structured data (YAML) plus a Markdown document that renders from it.
4
4
 
5
- `markedin-parser` parses and renders `.mi` (markedin) files. No framework required. Perfect for file-based agentic systems.
5
+ `.mi` is a file format that binds a Markdown body to structured data (YAML) through inline template expressions, in one file the data is the single source of truth; the document is rendered from it. Agents edit the data; humans read the document.
6
+
7
+ *Markedin* takes its name from **Markdown** — a Markdown file with the data marked in.
8
+
9
+ No framework required. Perfect for file-based agentic systems.
6
10
 
7
11
  Full documentation at [markedin.dev](https://markedin.dev)
8
12
 
@@ -12,7 +16,7 @@ Full documentation at [markedin.dev](https://markedin.dev)
12
16
  npm install markedin-parser
13
17
  ```
14
18
 
15
- ## Markedin .mi Format
19
+ ## The `.mi` Format
16
20
 
17
21
  A `.mi` file has YAML frontmatter between `---` delimiters and a Markdown body that renders from it.
18
22
 
@@ -64,7 +68,7 @@ First note: {{notes[0]}}
64
68
  | `{{> key}}` | Inline a frontmatter string as raw text |
65
69
  | `\{{key}}` | Render `{{key}}` literally (escape) |
66
70
 
67
- ## Parsing and Rendering a Markedin File
71
+ ## Parsing and Rendering an `.mi` File
68
72
 
69
73
  ```javascript
70
74
  const fs = require("fs");
@@ -4053,7 +4053,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
4053
4053
  // parse.js
4054
4054
  var require_parse = __commonJS({
4055
4055
  "parse.js"(exports, module) {
4056
- var SPEC_VERSION = "0.4.0";
4056
+ var SPEC_VERSION = "0.4.2";
4057
4057
  var yaml = require_js_yaml();
4058
4058
  var { marked } = (init_marked_esm(), __toCommonJS(marked_esm_exports));
4059
4059
  function parse(source) {
@@ -4093,6 +4093,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
4093
4093
  if (typeof val === "object") return JSON.stringify(val);
4094
4094
  return String(val);
4095
4095
  }
4096
+ function htmlEscape(str) {
4097
+ return str.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
4098
+ }
4096
4099
  function isStandalone(str, tagStart, tagEnd) {
4097
4100
  let lineStart = tagStart;
4098
4101
  while (lineStart > 0 && str[lineStart - 1] !== "\n") lineStart--;
@@ -4245,7 +4248,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
4245
4248
  const arr = resolvePath(ctx, key);
4246
4249
  if (!Array.isArray(arr)) return protect("");
4247
4250
  return protect(arr.map((item, i) => {
4248
- const itemCtx = { ...ctx, this: item, "@index": i, "@first": i === 0, "@last": i === arr.length - 1 };
4251
+ const itemCtx = { this: item, "@index": i, "@first": i === 0, "@last": i === arr.length - 1 };
4249
4252
  if (item && typeof item === "object" && !Array.isArray(item)) Object.assign(itemCtx, item);
4250
4253
  return renderTemplate(inner, itemCtx, false);
4251
4254
  }).join(""));
@@ -4284,7 +4287,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
4284
4287
  out = out.replace(/\{\{([\w.[\]@]+)\}\}/g, (_2, path) => {
4285
4288
  const val = resolvePath(ctx, path);
4286
4289
  if (val == null) return "";
4287
- return protect(formatValue(val));
4290
+ return protect(htmlEscape(formatValue(val)));
4288
4291
  });
4289
4292
  return isRoot ? restore(out) : out;
4290
4293
  }
@@ -1,11 +1,11 @@
1
- var markedin=(()=>{var Ce=Object.defineProperty;var ci=Object.getOwnPropertyDescriptor;var pi=Object.getOwnPropertyNames;var hi=Object.prototype.hasOwnProperty;var fi=(e,r)=>()=>(e&&(r=e(e=0)),r);var y=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),di=(e,r)=>{for(var n in r)Ce(e,n,{get:r[n],enumerable:!0})},gi=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of pi(r))!hi.call(e,i)&&i!==n&&Ce(e,i,{get:()=>r[i],enumerable:!(t=ci(r,i))||t.enumerable});return e};var xi=e=>gi(Ce({},"__esModule",{value:!0}),e);var H=y((Po,P)=>{"use strict";function wr(e){return typeof e>"u"||e===null}function mi(e){return typeof e=="object"&&e!==null}function ki(e){return Array.isArray(e)?e:wr(e)?[]:[e]}function bi(e,r){var n,t,i,o;if(r)for(o=Object.keys(r),n=0,t=o.length;n<t;n+=1)i=o[n],e[i]=r[i];return e}function wi(e,r){var n="",t;for(t=0;t<r;t+=1)n+=e;return n}function yi(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}P.exports.isNothing=wr;P.exports.isObject=mi;P.exports.toArray=ki;P.exports.repeat=wi;P.exports.isNegativeZero=yi;P.exports.extend=bi});var j=y((Mo,Ar)=>{"use strict";function yr(e,r){var n="",t=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
1
+ var markedin=(()=>{var Ce=Object.defineProperty;var ci=Object.getOwnPropertyDescriptor;var pi=Object.getOwnPropertyNames;var hi=Object.prototype.hasOwnProperty;var fi=(e,r)=>()=>(e&&(r=e(e=0)),r);var y=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),di=(e,r)=>{for(var n in r)Ce(e,n,{get:r[n],enumerable:!0})},gi=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of pi(r))!hi.call(e,i)&&i!==n&&Ce(e,i,{get:()=>r[i],enumerable:!(t=ci(r,i))||t.enumerable});return e};var xi=e=>gi(Ce({},"__esModule",{value:!0}),e);var H=y((Mo,P)=>{"use strict";function wr(e){return typeof e>"u"||e===null}function mi(e){return typeof e=="object"&&e!==null}function ki(e){return Array.isArray(e)?e:wr(e)?[]:[e]}function bi(e,r){var n,t,i,o;if(r)for(o=Object.keys(r),n=0,t=o.length;n<t;n+=1)i=o[n],e[i]=r[i];return e}function wi(e,r){var n="",t;for(t=0;t<r;t+=1)n+=e;return n}function yi(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}P.exports.isNothing=wr;P.exports.isObject=mi;P.exports.toArray=ki;P.exports.repeat=wi;P.exports.isNegativeZero=yi;P.exports.extend=bi});var j=y((Do,Ar)=>{"use strict";function yr(e,r){var n="",t=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
2
2
 
3
- `+e.mark.snippet),t+" "+n):t}function X(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=yr(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}X.prototype=Object.create(Error.prototype);X.prototype.constructor=X;X.prototype.toString=function(r){return this.name+": "+yr(this,r)};Ar.exports=X});var vr=y((Do,Sr)=>{"use strict";var V=H();function Ee(e,r,n,t,i){var o="",l="",a=Math.floor(i/2)-1;return t-r>a&&(o=" ... ",r=t-a+o.length),n-t>a&&(l=" ...",n=t+a-l.length),{str:o+e.slice(r,n).replace(/\t/g,"\u2192")+l,pos:t-r+o.length}}function Re(e,r){return V.repeat(" ",r-e.length)+e}function Ai(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var n=/\r?\n|\r|\0/g,t=[0],i=[],o,l=-1;o=n.exec(e.buffer);)i.push(o.index),t.push(o.index+o[0].length),e.position<=o.index&&l<0&&(l=t.length-2);l<0&&(l=t.length-1);var a="",s,u,c=Math.min(e.line+r.linesAfter,i.length).toString().length,p=r.maxLength-(r.indent+c+3);for(s=1;s<=r.linesBefore&&!(l-s<0);s++)u=Ee(e.buffer,t[l-s],i[l-s],e.position-(t[l]-t[l-s]),p),a=V.repeat(" ",r.indent)+Re((e.line-s+1).toString(),c)+" | "+u.str+`
3
+ `+e.mark.snippet),t+" "+n):t}function X(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=yr(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}X.prototype=Object.create(Error.prototype);X.prototype.constructor=X;X.prototype.toString=function(r){return this.name+": "+yr(this,r)};Ar.exports=X});var vr=y((Bo,Sr)=>{"use strict";var V=H();function Ee(e,r,n,t,i){var o="",l="",a=Math.floor(i/2)-1;return t-r>a&&(o=" ... ",r=t-a+o.length),n-t>a&&(l=" ...",n=t+a-l.length),{str:o+e.slice(r,n).replace(/\t/g,"\u2192")+l,pos:t-r+o.length}}function Re(e,r){return V.repeat(" ",r-e.length)+e}function Ai(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var n=/\r?\n|\r|\0/g,t=[0],i=[],o,l=-1;o=n.exec(e.buffer);)i.push(o.index),t.push(o.index+o[0].length),e.position<=o.index&&l<0&&(l=t.length-2);l<0&&(l=t.length-1);var a="",s,u,c=Math.min(e.line+r.linesAfter,i.length).toString().length,p=r.maxLength-(r.indent+c+3);for(s=1;s<=r.linesBefore&&!(l-s<0);s++)u=Ee(e.buffer,t[l-s],i[l-s],e.position-(t[l]-t[l-s]),p),a=V.repeat(" ",r.indent)+Re((e.line-s+1).toString(),c)+" | "+u.str+`
4
4
  `+a;for(u=Ee(e.buffer,t[l],i[l],e.position,p),a+=V.repeat(" ",r.indent)+Re((e.line+1).toString(),c)+" | "+u.str+`
5
5
  `,a+=V.repeat("-",r.indent+c+3+u.pos)+`^
6
6
  `,s=1;s<=r.linesAfter&&!(l+s>=i.length);s++)u=Ee(e.buffer,t[l+s],i[l+s],e.position-(t[l]-t[l+s]),p),a+=V.repeat(" ",r.indent)+Re((e.line+s+1).toString(),c)+" | "+u.str+`
7
- `;return a.replace(/\n$/,"")}Sr.exports=Ai});var v=y((Bo,_r)=>{"use strict";var Tr=j(),Si=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],vi=["scalar","sequence","mapping"];function Ti(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(t){r[String(t)]=n})}),r}function _i(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(Si.indexOf(n)===-1)throw new Tr('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=Ti(r.styleAliases||null),vi.indexOf(this.kind)===-1)throw new Tr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}_r.exports=_i});var Fe=y((zo,Er)=>{"use strict";var J=j(),Ie=v();function Cr(e,r){var n=[];return e[r].forEach(function(t){var i=n.length;n.forEach(function(o,l){o.tag===t.tag&&o.kind===t.kind&&o.multi===t.multi&&(i=l)}),n[i]=t}),n}function Ci(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function t(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(t);return e}function Le(e){return this.extend(e)}Le.prototype.extend=function(r){var n=[],t=[];if(r instanceof Ie)t.push(r);else if(Array.isArray(r))t=t.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(t=t.concat(r.explicit));else throw new J("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof Ie))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new J("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new J("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(o){if(!(o instanceof Ie))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Le.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(t),i.compiledImplicit=Cr(i,"implicit"),i.compiledExplicit=Cr(i,"explicit"),i.compiledTypeMap=Ci(i.compiledImplicit,i.compiledExplicit),i};Er.exports=Le});var Oe=y((Yo,Rr)=>{"use strict";var Ei=v();Rr.exports=new Ei("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var qe=y((Ho,Ir)=>{"use strict";var Ri=v();Ir.exports=new Ri("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var $e=y((jo,Lr)=>{"use strict";var Ii=v();Lr.exports=new Ii("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Ne=y((Uo,Fr)=>{"use strict";var Li=Fe();Fr.exports=new Li({explicit:[Oe(),qe(),$e()]})});var Pe=y((Go,Or)=>{"use strict";var Fi=v();function Oi(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function qi(){return null}function $i(e){return e===null}Or.exports=new Fi("tag:yaml.org,2002:null",{kind:"scalar",resolve:Oi,construct:qi,predicate:$i,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Me=y((Ko,qr)=>{"use strict";var Ni=v();function Pi(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function Mi(e){return e==="true"||e==="True"||e==="TRUE"}function Di(e){return Object.prototype.toString.call(e)==="[object Boolean]"}qr.exports=new Ni("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Pi,construct:Mi,predicate:Di,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var De=y((Zo,$r)=>{"use strict";var Bi=H(),zi=v();function Yi(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Hi(e){return 48<=e&&e<=55}function ji(e){return 48<=e&&e<=57}function Ui(e){if(e===null)return!1;var r=e.length,n=0,t=!1,i;if(!r)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===r)return!0;if(i=e[++n],i==="b"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;t=!0}return t&&i!=="_"}if(i==="x"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!Yi(e.charCodeAt(n)))return!1;t=!0}return t&&i!=="_"}if(i==="o"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!Hi(e.charCodeAt(n)))return!1;t=!0}return t&&i!=="_"}}if(i==="_")return!1;for(;n<r;n++)if(i=e[n],i!=="_"){if(!ji(e.charCodeAt(n)))return!1;t=!0}return!(!t||i==="_")}function Gi(e){var r=e,n=1,t;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),t=r[0],(t==="-"||t==="+")&&(t==="-"&&(n=-1),r=r.slice(1),t=r[0]),r==="0")return 0;if(t==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function Ki(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Bi.isNegativeZero(e)}$r.exports=new zi("tag:yaml.org,2002:int",{kind:"scalar",resolve:Ui,construct:Gi,predicate:Ki,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"]}})});var Be=y((Qo,Pr)=>{"use strict";var Nr=H(),Zi=v(),Qi=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Wi(e){return!(e===null||!Qi.test(e)||e[e.length-1]==="_")}function Xi(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var Vi=/^[-+]?[0-9]+e/;function Ji(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Nr.isNegativeZero(e))return"-0.0";return n=e.toString(10),Vi.test(n)?n.replace("e",".e"):n}function et(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Nr.isNegativeZero(e))}Pr.exports=new Zi("tag:yaml.org,2002:float",{kind:"scalar",resolve:Wi,construct:Xi,predicate:et,represent:Ji,defaultStyle:"lowercase"})});var ze=y((Wo,Mr)=>{"use strict";Mr.exports=Ne().extend({implicit:[Pe(),Me(),De(),Be()]})});var Ye=y((Xo,Dr)=>{"use strict";Dr.exports=ze()});var He=y((Vo,Yr)=>{"use strict";var rt=v(),Br=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),zr=new 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 nt(e){return e===null?!1:Br.exec(e)!==null||zr.exec(e)!==null}function it(e){var r,n,t,i,o,l,a,s=0,u=null,c,p,h;if(r=Br.exec(e),r===null&&(r=zr.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],t=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(n,t,i));if(o=+r[4],l=+r[5],a=+r[6],r[7]){for(s=r[7].slice(0,3);s.length<3;)s+="0";s=+s}return r[9]&&(c=+r[10],p=+(r[11]||0),u=(c*60+p)*6e4,r[9]==="-"&&(u=-u)),h=new Date(Date.UTC(n,t,i,o,l,a,s)),u&&h.setTime(h.getTime()-u),h}function tt(e){return e.toISOString()}Yr.exports=new rt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:nt,construct:it,instanceOf:Date,represent:tt})});var je=y((Jo,Hr)=>{"use strict";var lt=v();function ot(e){return e==="<<"||e===null}Hr.exports=new lt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ot})});var Ge=y((es,jr)=>{"use strict";var st=v(),Ue=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
8
- \r`;function at(e){if(e===null)return!1;var r,n,t=0,i=e.length,o=Ue;for(n=0;n<i;n++)if(r=o.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;t+=6}return t%8===0}function ut(e){var r,n,t=e.replace(/[\r\n=]/g,""),i=t.length,o=Ue,l=0,a=[];for(r=0;r<i;r++)r%4===0&&r&&(a.push(l>>16&255),a.push(l>>8&255),a.push(l&255)),l=l<<6|o.indexOf(t.charAt(r));return n=i%4*6,n===0?(a.push(l>>16&255),a.push(l>>8&255),a.push(l&255)):n===18?(a.push(l>>10&255),a.push(l>>2&255)):n===12&&a.push(l>>4&255),new Uint8Array(a)}function ct(e){var r="",n=0,t,i,o=e.length,l=Ue;for(t=0;t<o;t++)t%3===0&&t&&(r+=l[n>>18&63],r+=l[n>>12&63],r+=l[n>>6&63],r+=l[n&63]),n=(n<<8)+e[t];return i=o%3,i===0?(r+=l[n>>18&63],r+=l[n>>12&63],r+=l[n>>6&63],r+=l[n&63]):i===2?(r+=l[n>>10&63],r+=l[n>>4&63],r+=l[n<<2&63],r+=l[64]):i===1&&(r+=l[n>>2&63],r+=l[n<<4&63],r+=l[64],r+=l[64]),r}function pt(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}jr.exports=new st("tag:yaml.org,2002:binary",{kind:"scalar",resolve:at,construct:ut,predicate:pt,represent:ct})});var Ke=y((rs,Ur)=>{"use strict";var ht=v(),ft=Object.prototype.hasOwnProperty,dt=Object.prototype.toString;function gt(e){if(e===null)return!0;var r=[],n,t,i,o,l,a=e;for(n=0,t=a.length;n<t;n+=1){if(i=a[n],l=!1,dt.call(i)!=="[object Object]")return!1;for(o in i)if(ft.call(i,o))if(!l)l=!0;else return!1;if(!l)return!1;if(r.indexOf(o)===-1)r.push(o);else return!1}return!0}function xt(e){return e!==null?e:[]}Ur.exports=new ht("tag:yaml.org,2002:omap",{kind:"sequence",resolve:gt,construct:xt})});var Ze=y((ns,Gr)=>{"use strict";var mt=v(),kt=Object.prototype.toString;function bt(e){if(e===null)return!0;var r,n,t,i,o,l=e;for(o=new Array(l.length),r=0,n=l.length;r<n;r+=1){if(t=l[r],kt.call(t)!=="[object Object]"||(i=Object.keys(t),i.length!==1))return!1;o[r]=[i[0],t[i[0]]]}return!0}function wt(e){if(e===null)return[];var r,n,t,i,o,l=e;for(o=new Array(l.length),r=0,n=l.length;r<n;r+=1)t=l[r],i=Object.keys(t),o[r]=[i[0],t[i[0]]];return o}Gr.exports=new mt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:bt,construct:wt})});var Qe=y((is,Kr)=>{"use strict";var yt=v(),At=Object.prototype.hasOwnProperty;function St(e){if(e===null)return!0;var r,n=e;for(r in n)if(At.call(n,r)&&n[r]!==null)return!1;return!0}function vt(e){return e!==null?e:{}}Kr.exports=new yt("tag:yaml.org,2002:set",{kind:"mapping",resolve:St,construct:vt})});var he=y((ts,Zr)=>{"use strict";Zr.exports=Ye().extend({implicit:[He(),je()],explicit:[Ge(),Ke(),Ze(),Qe()]})});var hn=y((ls,Je)=>{"use strict";var D=H(),rn=j(),Tt=vr(),_t=he(),$=Object.prototype.hasOwnProperty,fe=1,nn=2,tn=3,de=4,We=1,Ct=2,Qr=3,Et=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Rt=/[\x85\u2028\u2029]/,It=/[,\[\]\{\}]/,ln=/^(?:!|!!|![a-z\-]+!)$/i,on=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Wr(e){return Object.prototype.toString.call(e)}function L(e){return e===10||e===13}function B(e){return e===9||e===32}function E(e){return e===9||e===32||e===10||e===13}function U(e){return e===44||e===91||e===93||e===123||e===125}function Lt(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function Ft(e){return e===120?2:e===117?4:e===85?8:0}function Ot(e){return 48<=e&&e<=57?e-48:-1}function Xr(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
7
+ `;return a.replace(/\n$/,"")}Sr.exports=Ai});var v=y((zo,_r)=>{"use strict";var Tr=j(),Si=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],vi=["scalar","sequence","mapping"];function Ti(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(t){r[String(t)]=n})}),r}function _i(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(Si.indexOf(n)===-1)throw new Tr('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=Ti(r.styleAliases||null),vi.indexOf(this.kind)===-1)throw new Tr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}_r.exports=_i});var Fe=y((Yo,Er)=>{"use strict";var J=j(),Ie=v();function Cr(e,r){var n=[];return e[r].forEach(function(t){var i=n.length;n.forEach(function(o,l){o.tag===t.tag&&o.kind===t.kind&&o.multi===t.multi&&(i=l)}),n[i]=t}),n}function Ci(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function t(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(t);return e}function Le(e){return this.extend(e)}Le.prototype.extend=function(r){var n=[],t=[];if(r instanceof Ie)t.push(r);else if(Array.isArray(r))t=t.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(t=t.concat(r.explicit));else throw new J("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof Ie))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new J("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new J("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(o){if(!(o instanceof Ie))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Le.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(t),i.compiledImplicit=Cr(i,"implicit"),i.compiledExplicit=Cr(i,"explicit"),i.compiledTypeMap=Ci(i.compiledImplicit,i.compiledExplicit),i};Er.exports=Le});var Oe=y((Ho,Rr)=>{"use strict";var Ei=v();Rr.exports=new Ei("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var qe=y((jo,Ir)=>{"use strict";var Ri=v();Ir.exports=new Ri("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var $e=y((Uo,Lr)=>{"use strict";var Ii=v();Lr.exports=new Ii("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Ne=y((Go,Fr)=>{"use strict";var Li=Fe();Fr.exports=new Li({explicit:[Oe(),qe(),$e()]})});var Pe=y((Ko,Or)=>{"use strict";var Fi=v();function Oi(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function qi(){return null}function $i(e){return e===null}Or.exports=new Fi("tag:yaml.org,2002:null",{kind:"scalar",resolve:Oi,construct:qi,predicate:$i,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Me=y((Zo,qr)=>{"use strict";var Ni=v();function Pi(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function Mi(e){return e==="true"||e==="True"||e==="TRUE"}function Di(e){return Object.prototype.toString.call(e)==="[object Boolean]"}qr.exports=new Ni("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Pi,construct:Mi,predicate:Di,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var De=y((Qo,$r)=>{"use strict";var Bi=H(),zi=v();function Yi(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Hi(e){return 48<=e&&e<=55}function ji(e){return 48<=e&&e<=57}function Ui(e){if(e===null)return!1;var r=e.length,n=0,t=!1,i;if(!r)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===r)return!0;if(i=e[++n],i==="b"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;t=!0}return t&&i!=="_"}if(i==="x"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!Yi(e.charCodeAt(n)))return!1;t=!0}return t&&i!=="_"}if(i==="o"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!Hi(e.charCodeAt(n)))return!1;t=!0}return t&&i!=="_"}}if(i==="_")return!1;for(;n<r;n++)if(i=e[n],i!=="_"){if(!ji(e.charCodeAt(n)))return!1;t=!0}return!(!t||i==="_")}function Gi(e){var r=e,n=1,t;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),t=r[0],(t==="-"||t==="+")&&(t==="-"&&(n=-1),r=r.slice(1),t=r[0]),r==="0")return 0;if(t==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function Ki(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Bi.isNegativeZero(e)}$r.exports=new zi("tag:yaml.org,2002:int",{kind:"scalar",resolve:Ui,construct:Gi,predicate:Ki,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"]}})});var Be=y((Wo,Pr)=>{"use strict";var Nr=H(),Zi=v(),Qi=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Wi(e){return!(e===null||!Qi.test(e)||e[e.length-1]==="_")}function Xi(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var Vi=/^[-+]?[0-9]+e/;function Ji(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Nr.isNegativeZero(e))return"-0.0";return n=e.toString(10),Vi.test(n)?n.replace("e",".e"):n}function et(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Nr.isNegativeZero(e))}Pr.exports=new Zi("tag:yaml.org,2002:float",{kind:"scalar",resolve:Wi,construct:Xi,predicate:et,represent:Ji,defaultStyle:"lowercase"})});var ze=y((Xo,Mr)=>{"use strict";Mr.exports=Ne().extend({implicit:[Pe(),Me(),De(),Be()]})});var Ye=y((Vo,Dr)=>{"use strict";Dr.exports=ze()});var He=y((Jo,Yr)=>{"use strict";var rt=v(),Br=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),zr=new 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 nt(e){return e===null?!1:Br.exec(e)!==null||zr.exec(e)!==null}function it(e){var r,n,t,i,o,l,a,s=0,u=null,c,p,h;if(r=Br.exec(e),r===null&&(r=zr.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],t=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(n,t,i));if(o=+r[4],l=+r[5],a=+r[6],r[7]){for(s=r[7].slice(0,3);s.length<3;)s+="0";s=+s}return r[9]&&(c=+r[10],p=+(r[11]||0),u=(c*60+p)*6e4,r[9]==="-"&&(u=-u)),h=new Date(Date.UTC(n,t,i,o,l,a,s)),u&&h.setTime(h.getTime()-u),h}function tt(e){return e.toISOString()}Yr.exports=new rt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:nt,construct:it,instanceOf:Date,represent:tt})});var je=y((es,Hr)=>{"use strict";var lt=v();function ot(e){return e==="<<"||e===null}Hr.exports=new lt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ot})});var Ge=y((rs,jr)=>{"use strict";var st=v(),Ue=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
8
+ \r`;function at(e){if(e===null)return!1;var r,n,t=0,i=e.length,o=Ue;for(n=0;n<i;n++)if(r=o.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;t+=6}return t%8===0}function ut(e){var r,n,t=e.replace(/[\r\n=]/g,""),i=t.length,o=Ue,l=0,a=[];for(r=0;r<i;r++)r%4===0&&r&&(a.push(l>>16&255),a.push(l>>8&255),a.push(l&255)),l=l<<6|o.indexOf(t.charAt(r));return n=i%4*6,n===0?(a.push(l>>16&255),a.push(l>>8&255),a.push(l&255)):n===18?(a.push(l>>10&255),a.push(l>>2&255)):n===12&&a.push(l>>4&255),new Uint8Array(a)}function ct(e){var r="",n=0,t,i,o=e.length,l=Ue;for(t=0;t<o;t++)t%3===0&&t&&(r+=l[n>>18&63],r+=l[n>>12&63],r+=l[n>>6&63],r+=l[n&63]),n=(n<<8)+e[t];return i=o%3,i===0?(r+=l[n>>18&63],r+=l[n>>12&63],r+=l[n>>6&63],r+=l[n&63]):i===2?(r+=l[n>>10&63],r+=l[n>>4&63],r+=l[n<<2&63],r+=l[64]):i===1&&(r+=l[n>>2&63],r+=l[n<<4&63],r+=l[64],r+=l[64]),r}function pt(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}jr.exports=new st("tag:yaml.org,2002:binary",{kind:"scalar",resolve:at,construct:ut,predicate:pt,represent:ct})});var Ke=y((ns,Ur)=>{"use strict";var ht=v(),ft=Object.prototype.hasOwnProperty,dt=Object.prototype.toString;function gt(e){if(e===null)return!0;var r=[],n,t,i,o,l,a=e;for(n=0,t=a.length;n<t;n+=1){if(i=a[n],l=!1,dt.call(i)!=="[object Object]")return!1;for(o in i)if(ft.call(i,o))if(!l)l=!0;else return!1;if(!l)return!1;if(r.indexOf(o)===-1)r.push(o);else return!1}return!0}function xt(e){return e!==null?e:[]}Ur.exports=new ht("tag:yaml.org,2002:omap",{kind:"sequence",resolve:gt,construct:xt})});var Ze=y((is,Gr)=>{"use strict";var mt=v(),kt=Object.prototype.toString;function bt(e){if(e===null)return!0;var r,n,t,i,o,l=e;for(o=new Array(l.length),r=0,n=l.length;r<n;r+=1){if(t=l[r],kt.call(t)!=="[object Object]"||(i=Object.keys(t),i.length!==1))return!1;o[r]=[i[0],t[i[0]]]}return!0}function wt(e){if(e===null)return[];var r,n,t,i,o,l=e;for(o=new Array(l.length),r=0,n=l.length;r<n;r+=1)t=l[r],i=Object.keys(t),o[r]=[i[0],t[i[0]]];return o}Gr.exports=new mt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:bt,construct:wt})});var Qe=y((ts,Kr)=>{"use strict";var yt=v(),At=Object.prototype.hasOwnProperty;function St(e){if(e===null)return!0;var r,n=e;for(r in n)if(At.call(n,r)&&n[r]!==null)return!1;return!0}function vt(e){return e!==null?e:{}}Kr.exports=new yt("tag:yaml.org,2002:set",{kind:"mapping",resolve:St,construct:vt})});var he=y((ls,Zr)=>{"use strict";Zr.exports=Ye().extend({implicit:[He(),je()],explicit:[Ge(),Ke(),Ze(),Qe()]})});var hn=y((os,Je)=>{"use strict";var D=H(),rn=j(),Tt=vr(),_t=he(),$=Object.prototype.hasOwnProperty,fe=1,nn=2,tn=3,de=4,We=1,Ct=2,Qr=3,Et=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Rt=/[\x85\u2028\u2029]/,It=/[,\[\]\{\}]/,ln=/^(?:!|!!|![a-z\-]+!)$/i,on=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Wr(e){return Object.prototype.toString.call(e)}function L(e){return e===10||e===13}function B(e){return e===9||e===32}function E(e){return e===9||e===32||e===10||e===13}function U(e){return e===44||e===91||e===93||e===123||e===125}function Lt(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function Ft(e){return e===120?2:e===117?4:e===85?8:0}function Ot(e){return 48<=e&&e<=57?e-48:-1}function Xr(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
9
9
  `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function qt(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function sn(e,r,n){r==="__proto__"?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[r]=n}var an=new Array(256),un=new Array(256);for(M=0;M<256;M++)an[M]=Xr(M)?1:0,un[M]=Xr(M);var M;function $t(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||_t,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.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 cn(e,r){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=Tt(n),new rn(r,n)}function g(e,r){throw cn(e,r)}function ge(e,r){e.onWarning&&e.onWarning.call(null,cn(e,r))}var Vr={YAML:function(r,n,t){var i,o,l;r.version!==null&&g(r,"duplication of %YAML directive"),t.length!==1&&g(r,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),i===null&&g(r,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),l=parseInt(i[2],10),o!==1&&g(r,"unacceptable YAML version of the document"),r.version=t[0],r.checkLineBreaks=l<2,l!==1&&l!==2&&ge(r,"unsupported YAML version of the document")},TAG:function(r,n,t){var i,o;t.length!==2&&g(r,"TAG directive accepts exactly two arguments"),i=t[0],o=t[1],ln.test(i)||g(r,"ill-formed tag handle (first argument) of the TAG directive"),$.call(r.tagMap,i)&&g(r,'there is a previously declared suffix for "'+i+'" tag handle'),on.test(o)||g(r,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{g(r,"tag prefix is malformed: "+o)}r.tagMap[i]=o}};function q(e,r,n,t){var i,o,l,a;if(r<n){if(a=e.input.slice(r,n),t)for(i=0,o=a.length;i<o;i+=1)l=a.charCodeAt(i),l===9||32<=l&&l<=1114111||g(e,"expected valid JSON character");else Et.test(a)&&g(e,"the stream contains non-printable characters");e.result+=a}}function Jr(e,r,n,t){var i,o,l,a;for(D.isObject(n)||g(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),l=0,a=i.length;l<a;l+=1)o=i[l],$.call(r,o)||(sn(r,o,n[o]),t[o]=!0)}function G(e,r,n,t,i,o,l,a,s){var u,c;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,c=i.length;u<c;u+=1)Array.isArray(i[u])&&g(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Wr(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Wr(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),t==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(u=0,c=o.length;u<c;u+=1)Jr(e,r,o[u],n);else Jr(e,r,o,n);else!e.json&&!$.call(n,i)&&$.call(r,i)&&(e.line=l||e.line,e.lineStart=a||e.lineStart,e.position=s||e.position,g(e,"duplicated mapping key")),sn(r,i,o),delete n[i];return r}function Xe(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):g(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function A(e,r,n){for(var t=0,i=e.input.charCodeAt(e.position);i!==0;){for(;B(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(L(i))for(Xe(e),i=e.input.charCodeAt(e.position),t++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&t!==0&&e.lineIndent<n&&ge(e,"deficient indentation"),t}function xe(e){var r=e.position,n;return n=e.input.charCodeAt(r),!!((n===45||n===46)&&n===e.input.charCodeAt(r+1)&&n===e.input.charCodeAt(r+2)&&(r+=3,n=e.input.charCodeAt(r),n===0||E(n)))}function Ve(e,r){r===1?e.result+=" ":r>1&&(e.result+=D.repeat(`
10
10
  `,r-1))}function Nt(e,r,n){var t,i,o,l,a,s,u,c,p=e.kind,h=e.result,f;if(f=e.input.charCodeAt(e.position),E(f)||U(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(i=e.input.charCodeAt(e.position+1),E(i)||n&&U(i)))return!1;for(e.kind="scalar",e.result="",o=l=e.position,a=!1;f!==0;){if(f===58){if(i=e.input.charCodeAt(e.position+1),E(i)||n&&U(i))break}else if(f===35){if(t=e.input.charCodeAt(e.position-1),E(t))break}else{if(e.position===e.lineStart&&xe(e)||n&&U(f))break;if(L(f))if(s=e.line,u=e.lineStart,c=e.lineIndent,A(e,!1,-1),e.lineIndent>=r){a=!0,f=e.input.charCodeAt(e.position);continue}else{e.position=l,e.line=s,e.lineStart=u,e.lineIndent=c;break}}a&&(q(e,o,l,!1),Ve(e,e.line-s),o=l=e.position,a=!1),B(f)||(l=e.position+1),f=e.input.charCodeAt(++e.position)}return q(e,o,l,!1),e.result?!0:(e.kind=p,e.result=h,!1)}function Pt(e,r){var n,t,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,t=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(q(e,t,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)t=e.position,e.position++,i=e.position;else return!0;else L(n)?(q(e,t,i,!0),Ve(e,A(e,!1,r)),t=i=e.position):e.position===e.lineStart&&xe(e)?g(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);g(e,"unexpected end of the stream within a single quoted scalar")}function Mt(e,r){var n,t,i,o,l,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=t=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return q(e,n,e.position,!0),e.position++,!0;if(a===92){if(q(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),L(a))A(e,!1,r);else if(a<256&&an[a])e.result+=un[a],e.position++;else if((l=Ft(a))>0){for(i=l,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(l=Lt(a))>=0?o=(o<<4)+l:g(e,"expected hexadecimal character");e.result+=qt(o),e.position++}else g(e,"unknown escape sequence");n=t=e.position}else L(a)?(q(e,n,t,!0),Ve(e,A(e,!1,r)),n=t=e.position):e.position===e.lineStart&&xe(e)?g(e,"unexpected end of the document within a double quoted scalar"):(e.position++,t=e.position)}g(e,"unexpected end of the stream within a double quoted scalar")}function Dt(e,r){var n=!0,t,i,o,l=e.tag,a,s=e.anchor,u,c,p,h,f,d=Object.create(null),x,w,S,m;if(m=e.input.charCodeAt(e.position),m===91)c=93,f=!1,a=[];else if(m===123)c=125,f=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),m=e.input.charCodeAt(++e.position);m!==0;){if(A(e,!0,r),m=e.input.charCodeAt(e.position),m===c)return e.position++,e.tag=l,e.anchor=s,e.kind=f?"mapping":"sequence",e.result=a,!0;n?m===44&&g(e,"expected the node content, but found ','"):g(e,"missed comma between flow collection entries"),w=x=S=null,p=h=!1,m===63&&(u=e.input.charCodeAt(e.position+1),E(u)&&(p=h=!0,e.position++,A(e,!0,r))),t=e.line,i=e.lineStart,o=e.position,K(e,r,fe,!1,!0),w=e.tag,x=e.result,A(e,!0,r),m=e.input.charCodeAt(e.position),(h||e.line===t)&&m===58&&(p=!0,m=e.input.charCodeAt(++e.position),A(e,!0,r),K(e,r,fe,!1,!0),S=e.result),f?G(e,a,d,w,x,S,t,i,o):p?a.push(G(e,null,d,w,x,S,t,i,o)):a.push(x),A(e,!0,r),m=e.input.charCodeAt(e.position),m===44?(n=!0,m=e.input.charCodeAt(++e.position)):n=!1}g(e,"unexpected end of the stream within a flow collection")}function Bt(e,r){var n,t,i=We,o=!1,l=!1,a=r,s=0,u=!1,c,p;if(p=e.input.charCodeAt(e.position),p===124)t=!1;else if(p===62)t=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)We===i?i=p===43?Qr:Ct:g(e,"repeat of a chomping mode identifier");else if((c=Ot(p))>=0)c===0?g(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?g(e,"repeat of an indentation width identifier"):(a=r+c-1,l=!0);else break;if(B(p)){do p=e.input.charCodeAt(++e.position);while(B(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!L(p)&&p!==0)}for(;p!==0;){for(Xe(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!l||e.lineIndent<a)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>a&&(a=e.lineIndent),L(p)){s++;continue}if(e.lineIndent<a){i===Qr?e.result+=D.repeat(`
11
11
  `,o?1+s:s):i===We&&o&&(e.result+=`
@@ -14,7 +14,7 @@ var markedin=(()=>{var Ce=Object.defineProperty;var ci=Object.getOwnPropertyDesc
14
14
  `,s+1)):s===0?o&&(e.result+=" "):e.result+=D.repeat(`
15
15
  `,s):e.result+=D.repeat(`
16
16
  `,o?1+s:s),o=!0,l=!0,s=0,n=e.position;!L(p)&&p!==0;)p=e.input.charCodeAt(++e.position);q(e,n,e.position,!1)}return!0}function en(e,r){var n,t=e.tag,i=e.anchor,o=[],l,a=!1,s;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),s=e.input.charCodeAt(e.position);s!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,g(e,"tab characters must not be used in indentation")),!(s!==45||(l=e.input.charCodeAt(e.position+1),!E(l))));){if(a=!0,e.position++,A(e,!0,-1)&&e.lineIndent<=r){o.push(null),s=e.input.charCodeAt(e.position);continue}if(n=e.line,K(e,r,tn,!1,!0),o.push(e.result),A(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>r)&&s!==0)g(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return a?(e.tag=t,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function zt(e,r,n){var t,i,o,l,a,s,u=e.tag,c=e.anchor,p={},h=Object.create(null),f=null,d=null,x=null,w=!1,S=!1,m;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),m=e.input.charCodeAt(e.position);m!==0;){if(!w&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,g(e,"tab characters must not be used in indentation")),t=e.input.charCodeAt(e.position+1),o=e.line,(m===63||m===58)&&E(t))m===63?(w&&(G(e,p,h,f,d,null,l,a,s),f=d=x=null),S=!0,w=!0,i=!0):w?(w=!1,i=!0):g(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,m=t;else{if(l=e.line,a=e.lineStart,s=e.position,!K(e,n,nn,!1,!0))break;if(e.line===o){for(m=e.input.charCodeAt(e.position);B(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),E(m)||g(e,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(G(e,p,h,f,d,null,l,a,s),f=d=x=null),S=!0,w=!1,i=!1,f=e.tag,d=e.result;else if(S)g(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=c,!0}else if(S)g(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=c,!0}if((e.line===o||e.lineIndent>r)&&(w&&(l=e.line,a=e.lineStart,s=e.position),K(e,r,de,!0,i)&&(w?d=e.result:x=e.result),w||(G(e,p,h,f,d,x,l,a,s),f=d=x=null),A(e,!0,-1),m=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>r)&&m!==0)g(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return w&&G(e,p,h,f,d,null,l,a,s),S&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=p),S}function Yt(e){var r,n=!1,t=!1,i,o,l;if(l=e.input.charCodeAt(e.position),l!==33)return!1;if(e.tag!==null&&g(e,"duplication of a tag property"),l=e.input.charCodeAt(++e.position),l===60?(n=!0,l=e.input.charCodeAt(++e.position)):l===33?(t=!0,i="!!",l=e.input.charCodeAt(++e.position)):i="!",r=e.position,n){do l=e.input.charCodeAt(++e.position);while(l!==0&&l!==62);e.position<e.length?(o=e.input.slice(r,e.position),l=e.input.charCodeAt(++e.position)):g(e,"unexpected end of the stream within a verbatim tag")}else{for(;l!==0&&!E(l);)l===33&&(t?g(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),ln.test(i)||g(e,"named tag handle cannot contain such characters"),t=!0,r=e.position+1)),l=e.input.charCodeAt(++e.position);o=e.input.slice(r,e.position),It.test(o)&&g(e,"tag suffix cannot contain flow indicator characters")}o&&!on.test(o)&&g(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{g(e,"tag name is malformed: "+o)}return n?e.tag=o:$.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:g(e,'undeclared tag handle "'+i+'"'),!0}function Ht(e){var r,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&g(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!E(n)&&!U(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&g(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function jt(e){var r,n,t;if(t=e.input.charCodeAt(e.position),t!==42)return!1;for(t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!E(t)&&!U(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&g(e,"name of an alias node must contain at least one character"),n=e.input.slice(r,e.position),$.call(e.anchorMap,n)||g(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],A(e,!0,-1),!0}function K(e,r,n,t,i){var o,l,a,s=1,u=!1,c=!1,p,h,f,d,x,w;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=l=a=de===n||tn===n,t&&A(e,!0,-1)&&(u=!0,e.lineIndent>r?s=1:e.lineIndent===r?s=0:e.lineIndent<r&&(s=-1)),s===1)for(;Yt(e)||Ht(e);)A(e,!0,-1)?(u=!0,a=o,e.lineIndent>r?s=1:e.lineIndent===r?s=0:e.lineIndent<r&&(s=-1)):a=!1;if(a&&(a=u||i),(s===1||de===n)&&(fe===n||nn===n?x=r:x=r+1,w=e.position-e.lineStart,s===1?a&&(en(e,w)||zt(e,w,x))||Dt(e,x)?c=!0:(l&&Bt(e,x)||Pt(e,x)||Mt(e,x)?c=!0:jt(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&g(e,"alias node should not have any properties")):Nt(e,x,fe===n)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):s===0&&(c=a&&en(e,w))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&g(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,h=e.implicitTypes.length;p<h;p+=1)if(d=e.implicitTypes[p],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if($.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,f=e.typeMap.multi[e.kind||"fallback"],p=0,h=f.length;p<h;p+=1)if(e.tag.slice(0,f[p].tag.length)===f[p].tag){d=f[p];break}d||g(e,"unknown tag !<"+e.tag+">"),e.result!==null&&d.kind!==e.kind&&g(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):g(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function Ut(e){var r=e.position,n,t,i,o=!1,l;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(l=e.input.charCodeAt(e.position))!==0&&(A(e,!0,-1),l=e.input.charCodeAt(e.position),!(e.lineIndent>0||l!==37));){for(o=!0,l=e.input.charCodeAt(++e.position),n=e.position;l!==0&&!E(l);)l=e.input.charCodeAt(++e.position);for(t=e.input.slice(n,e.position),i=[],t.length<1&&g(e,"directive name must not be less than one character in length");l!==0;){for(;B(l);)l=e.input.charCodeAt(++e.position);if(l===35){do l=e.input.charCodeAt(++e.position);while(l!==0&&!L(l));break}if(L(l))break;for(n=e.position;l!==0&&!E(l);)l=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}l!==0&&Xe(e),$.call(Vr,t)?Vr[t](e,t,i):ge(e,'unknown document directive "'+t+'"')}if(A(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,A(e,!0,-1)):o&&g(e,"directives end mark is expected"),K(e,e.lineIndent-1,de,!1,!0),A(e,!0,-1),e.checkLineBreaks&&Rt.test(e.input.slice(r,e.position))&&ge(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&xe(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,A(e,!0,-1));return}if(e.position<e.length-1)g(e,"end of the stream or a document separator is expected");else return}function pn(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
17
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new $t(e,r),t=e.indexOf("\0");for(t!==-1&&(n.position=t,g(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;)Ut(n);return n.documents}function Gt(e,r,n){r!==null&&typeof r=="object"&&typeof n>"u"&&(n=r,r=null);var t=pn(e,n);if(typeof r!="function")return t;for(var i=0,o=t.length;i<o;i+=1)r(t[i])}function Kt(e,r){var n=pn(e,r);if(n.length!==0){if(n.length===1)return n[0];throw new rn("expected a single document in the stream, but found more")}}Je.exports.loadAll=Gt;Je.exports.load=Kt});var On=y((os,Fn)=>{"use strict";var be=H(),te=j(),Zt=he(),yn=Object.prototype.toString,An=Object.prototype.hasOwnProperty,tr=65279,Qt=9,re=10,Wt=13,Xt=32,Vt=33,Jt=34,er=35,el=37,rl=38,nl=39,il=42,Sn=44,tl=45,me=58,ll=61,ol=62,sl=63,al=64,vn=91,Tn=93,ul=96,_n=123,cl=124,Cn=125,T={};T[0]="\\0";T[7]="\\a";T[8]="\\b";T[9]="\\t";T[10]="\\n";T[11]="\\v";T[12]="\\f";T[13]="\\r";T[27]="\\e";T[34]='\\"';T[92]="\\\\";T[133]="\\N";T[160]="\\_";T[8232]="\\L";T[8233]="\\P";var pl=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],hl=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function fl(e,r){var n,t,i,o,l,a,s;if(r===null)return{};for(n={},t=Object.keys(r),i=0,o=t.length;i<o;i+=1)l=t[i],a=String(r[l]),l.slice(0,2)==="!!"&&(l="tag:yaml.org,2002:"+l.slice(2)),s=e.compiledTypeMap.fallback[l],s&&An.call(s.styleAliases,a)&&(a=s.styleAliases[a]),n[l]=a;return n}function dl(e){var r,n,t;if(r=e.toString(16).toUpperCase(),e<=255)n="x",t=2;else if(e<=65535)n="u",t=4;else if(e<=4294967295)n="U",t=8;else throw new te("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+be.repeat("0",t-r.length)+r}var gl=1,ne=2;function xl(e){this.schema=e.schema||Zt,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=be.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=fl(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==='"'?ne:gl,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,r){for(var n=be.repeat(" ",r),t=0,i=-1,o="",l,a=e.length;t<a;)i=e.indexOf(`
17
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new $t(e,r),t=e.indexOf("\0");for(t!==-1&&(n.position=t,g(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;)Ut(n);return n.documents}function Gt(e,r,n){r!==null&&typeof r=="object"&&typeof n>"u"&&(n=r,r=null);var t=pn(e,n);if(typeof r!="function")return t;for(var i=0,o=t.length;i<o;i+=1)r(t[i])}function Kt(e,r){var n=pn(e,r);if(n.length!==0){if(n.length===1)return n[0];throw new rn("expected a single document in the stream, but found more")}}Je.exports.loadAll=Gt;Je.exports.load=Kt});var On=y((ss,Fn)=>{"use strict";var be=H(),te=j(),Zt=he(),yn=Object.prototype.toString,An=Object.prototype.hasOwnProperty,tr=65279,Qt=9,re=10,Wt=13,Xt=32,Vt=33,Jt=34,er=35,el=37,rl=38,nl=39,il=42,Sn=44,tl=45,me=58,ll=61,ol=62,sl=63,al=64,vn=91,Tn=93,ul=96,_n=123,cl=124,Cn=125,T={};T[0]="\\0";T[7]="\\a";T[8]="\\b";T[9]="\\t";T[10]="\\n";T[11]="\\v";T[12]="\\f";T[13]="\\r";T[27]="\\e";T[34]='\\"';T[92]="\\\\";T[133]="\\N";T[160]="\\_";T[8232]="\\L";T[8233]="\\P";var pl=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],hl=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function fl(e,r){var n,t,i,o,l,a,s;if(r===null)return{};for(n={},t=Object.keys(r),i=0,o=t.length;i<o;i+=1)l=t[i],a=String(r[l]),l.slice(0,2)==="!!"&&(l="tag:yaml.org,2002:"+l.slice(2)),s=e.compiledTypeMap.fallback[l],s&&An.call(s.styleAliases,a)&&(a=s.styleAliases[a]),n[l]=a;return n}function dl(e){var r,n,t;if(r=e.toString(16).toUpperCase(),e<=255)n="x",t=2;else if(e<=65535)n="u",t=4;else if(e<=4294967295)n="U",t=8;else throw new te("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+be.repeat("0",t-r.length)+r}var gl=1,ne=2;function xl(e){this.schema=e.schema||Zt,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=be.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=fl(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==='"'?ne:gl,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,r){for(var n=be.repeat(" ",r),t=0,i=-1,o="",l,a=e.length;t<a;)i=e.indexOf(`
18
18
  `,t),i===-1?(l=e.slice(t),t=a):(l=e.slice(t,i+1),t=i+1),l.length&&l!==`
19
19
  `&&(o+=n),o+=l;return o}function rr(e,r){return`
20
20
  `+be.repeat(" ",e.indent*r)}function ml(e,r){var n,t,i;for(n=0,t=e.implicitTypes.length;n<t;n+=1)if(i=e.implicitTypes[n],i.resolve(r))return!0;return!1}function ke(e){return e===Xt||e===Qt}function ie(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==tr||65536<=e&&e<=1114111}function dn(e){return ie(e)&&e!==tr&&e!==Wt&&e!==re}function gn(e,r,n){var t=dn(e),i=t&&!ke(e);return(n?t:t&&e!==Sn&&e!==vn&&e!==Tn&&e!==_n&&e!==Cn)&&e!==er&&!(r===me&&!i)||dn(r)&&!ke(r)&&e===er||r===me&&i}function kl(e){return ie(e)&&e!==tr&&!ke(e)&&e!==tl&&e!==sl&&e!==me&&e!==Sn&&e!==vn&&e!==Tn&&e!==_n&&e!==Cn&&e!==er&&e!==rl&&e!==il&&e!==Vt&&e!==cl&&e!==ll&&e!==ol&&e!==nl&&e!==Jt&&e!==el&&e!==al&&e!==ul}function bl(e){return!ke(e)&&e!==me}function ee(e,r){var n=e.charCodeAt(r),t;return n>=55296&&n<=56319&&r+1<e.length&&(t=e.charCodeAt(r+1),t>=56320&&t<=57343)?(n-55296)*1024+t-56320+65536:n}function En(e){var r=/^\n* /;return r.test(e)}var Rn=1,nr=2,In=3,Ln=4,Z=5;function wl(e,r,n,t,i,o,l,a){var s,u=0,c=null,p=!1,h=!1,f=t!==-1,d=-1,x=kl(ee(e,0))&&bl(ee(e,e.length-1));if(r||l)for(s=0;s<e.length;u>=65536?s+=2:s++){if(u=ee(e,s),!ie(u))return Z;x=x&&gn(u,c,a),c=u}else{for(s=0;s<e.length;u>=65536?s+=2:s++){if(u=ee(e,s),u===re)p=!0,f&&(h=h||s-d-1>t&&e[d+1]!==" ",d=s);else if(!ie(u))return Z;x=x&&gn(u,c,a),c=u}h=h||f&&s-d-1>t&&e[d+1]!==" "}return!p&&!h?x&&!l&&!i(e)?Rn:o===ne?Z:nr:n>9&&En(e)?Z:l?o===ne?Z:nr:h?Ln:In}function yl(e,r,n,t,i){e.dump=(function(){if(r.length===0)return e.quotingType===ne?'""':"''";if(!e.noCompatMode&&(pl.indexOf(r)!==-1||hl.test(r)))return e.quotingType===ne?'"'+r+'"':"'"+r+"'";var o=e.indent*Math.max(1,n),l=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=t||e.flowLevel>-1&&n>=e.flowLevel;function s(u){return ml(e,u)}switch(wl(r,a,e.indent,l,s,e.quotingType,e.forceQuotes&&!t,i)){case Rn:return r;case nr:return"'"+r.replace(/'/g,"''")+"'";case In:return"|"+xn(r,e.indent)+mn(fn(r,o));case Ln:return">"+xn(r,e.indent)+mn(fn(Al(r,l),o));case Z:return'"'+Sl(r,l)+'"';default:throw new te("impossible error: invalid scalar style")}})()}function xn(e,r){var n=En(e)?String(r):"",t=e[e.length-1]===`
@@ -29,7 +29,7 @@ var markedin=(()=>{var Ce=Object.defineProperty;var ci=Object.getOwnPropertyDesc
29
29
  `+e.slice(i,o),i=o+1),l=a;return s+=`
30
30
  `,e.length-i>r&&l>i?s+=e.slice(i,l)+`
31
31
  `+e.slice(l+1):s+=e.slice(i),s.slice(1)}function Sl(e){for(var r="",n=0,t,i=0;i<e.length;n>=65536?i+=2:i++)n=ee(e,i),t=T[n],!t&&ie(n)?(r+=e[i],n>=65536&&(r+=e[i+1])):r+=t||dl(n);return r}function vl(e,r,n){var t="",i=e.tag,o,l,a;for(o=0,l=n.length;o<l;o+=1)a=n[o],e.replacer&&(a=e.replacer.call(n,String(o),a)),(O(e,r,a,!1,!1)||typeof a>"u"&&O(e,r,null,!1,!1))&&(t!==""&&(t+=","+(e.condenseFlow?"":" ")),t+=e.dump);e.tag=i,e.dump="["+t+"]"}function bn(e,r,n,t){var i="",o=e.tag,l,a,s;for(l=0,a=n.length;l<a;l+=1)s=n[l],e.replacer&&(s=e.replacer.call(n,String(l),s)),(O(e,r+1,s,!0,!0,!1,!0)||typeof s>"u"&&O(e,r+1,null,!0,!0,!1,!0))&&((!t||i!=="")&&(i+=rr(e,r)),e.dump&&re===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function Tl(e,r,n){var t="",i=e.tag,o=Object.keys(n),l,a,s,u,c;for(l=0,a=o.length;l<a;l+=1)c="",t!==""&&(c+=", "),e.condenseFlow&&(c+='"'),s=o[l],u=n[s],e.replacer&&(u=e.replacer.call(n,s,u)),O(e,r,s,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),O(e,r,u,!1,!1)&&(c+=e.dump,t+=c));e.tag=i,e.dump="{"+t+"}"}function _l(e,r,n,t){var i="",o=e.tag,l=Object.keys(n),a,s,u,c,p,h;if(e.sortKeys===!0)l.sort();else if(typeof e.sortKeys=="function")l.sort(e.sortKeys);else if(e.sortKeys)throw new te("sortKeys must be a boolean or a function");for(a=0,s=l.length;a<s;a+=1)h="",(!t||i!=="")&&(h+=rr(e,r)),u=l[a],c=n[u],e.replacer&&(c=e.replacer.call(n,u,c)),O(e,r+1,u,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&re===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,p&&(h+=rr(e,r)),O(e,r+1,c,!0,p)&&(e.dump&&re===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=o,e.dump=i||"{}"}function wn(e,r,n){var t,i,o,l,a,s;for(i=n?e.explicitTypes:e.implicitTypes,o=0,l=i.length;o<l;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof r=="object"&&r instanceof a.instanceOf)&&(!a.predicate||a.predicate(r))){if(n?a.multi&&a.representName?e.tag=a.representName(r):e.tag=a.tag:e.tag="?",a.represent){if(s=e.styleMap[a.tag]||a.defaultStyle,yn.call(a.represent)==="[object Function]")t=a.represent(r,s);else if(An.call(a.represent,s))t=a.represent[s](r,s);else throw new te("!<"+a.tag+'> tag resolver accepts not "'+s+'" style');e.dump=t}return!0}return!1}function O(e,r,n,t,i,o,l){e.tag=null,e.dump=n,wn(e,n,!1)||wn(e,n,!0);var a=yn.call(e.dump),s=t,u;t&&(t=e.flowLevel<0||e.flowLevel>r);var c=a==="[object Object]"||a==="[object Array]",p,h;if(c&&(p=e.duplicates.indexOf(n),h=p!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&r>0)&&(i=!1),h&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(c&&h&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),a==="[object Object]")t&&Object.keys(e.dump).length!==0?(_l(e,r,e.dump,i),h&&(e.dump="&ref_"+p+e.dump)):(Tl(e,r,e.dump),h&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object Array]")t&&e.dump.length!==0?(e.noArrayIndent&&!l&&r>0?bn(e,r-1,e.dump,i):bn(e,r,e.dump,i),h&&(e.dump="&ref_"+p+e.dump)):(vl(e,r,e.dump),h&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&yl(e,e.dump,r,o,s);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new te("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function Cl(e,r){var n=[],t=[],i,o;for(ir(e,n,t),i=0,o=t.length;i<o;i+=1)r.duplicates.push(n[t[i]]);r.usedDuplicates=new Array(o)}function ir(e,r,n){var t,i,o;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(r.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)ir(e[i],r,n);else for(t=Object.keys(e),i=0,o=t.length;i<o;i+=1)ir(e[t[i]],r,n)}function El(e,r){r=r||{};var n=new xl(r);n.noRefs||Cl(e,n);var t=e;return n.replacer&&(t=n.replacer.call({"":t},"",t)),O(n,0,t,!0,!0)?n.dump+`
32
- `:""}Fn.exports.dump=El});var $n=y((ss,_)=>{"use strict";var qn=hn(),Rl=On();function lr(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}_.exports.Type=v();_.exports.Schema=Fe();_.exports.FAILSAFE_SCHEMA=Ne();_.exports.JSON_SCHEMA=ze();_.exports.CORE_SCHEMA=Ye();_.exports.DEFAULT_SCHEMA=he();_.exports.load=qn.load;_.exports.loadAll=qn.loadAll;_.exports.dump=Rl.dump;_.exports.YAMLException=j();_.exports.types={binary:Ge(),float:Be(),map:$e(),null:Pe(),pairs:Ze(),set:Qe(),timestamp:He(),bool:Me(),int:De(),merge:je(),omap:Ke(),seq:qe(),str:Oe()};_.exports.safeLoad=lr("safeLoad","load");_.exports.safeLoadAll=lr("safeLoadAll","loadAll");_.exports.safeDump=lr("safeDump","dump")});var ri={};di(ri,{Hooks:()=>Q,Lexer:()=>R,Marked:()=>ei,Parser:()=>I,Renderer:()=>ae,TextRenderer:()=>Te,Tokenizer:()=>se,defaults:()=>N,getDefaults:()=>Ae,lexer:()=>_o,marked:()=>b,options:()=>bo,parse:()=>vo,parseInline:()=>So,parser:()=>To,setOptions:()=>wo,use:()=>yo,walkTokens:()=>Ao});function Ae(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function Yn(e){N=e}function k(e,r=""){let n=typeof e=="string"?e:e.source,t={replace:(i,o)=>{let l=typeof o=="string"?o:o.source;return l=l.replace(C.caret,"$1"),n=n.replace(i,l),t},getRegex:()=>new RegExp(n,r)};return t}function F(e,r){if(r){if(C.escapeTest.test(e))return e.replace(C.escapeReplace,Mn)}else if(C.escapeTestNoEncode.test(e))return e.replace(C.escapeReplaceNoEncode,Mn);return e}function Dn(e){try{e=encodeURI(e).replace(C.percentDecode,"%")}catch{return null}return e}function Bn(e,r){let n=e.replace(C.findPipe,(o,l,a)=>{let s=!1,u=l;for(;--u>=0&&a[u]==="\\";)s=!s;return s?"|":" |"}),t=n.split(C.splitPipe),i=0;if(t[0].trim()||t.shift(),t.length>0&&!t.at(-1)?.trim()&&t.pop(),r)if(t.length>r)t.splice(r);else for(;t.length<r;)t.push("");for(;i<t.length;i++)t[i]=t[i].trim().replace(C.slashPipe,"|");return t}function oe(e,r,n){let t=e.length;if(t===0)return"";let i=0;for(;i<t;){let o=e.charAt(t-i-1);if(o===r&&!n)i++;else if(o!==r&&n)i++;else break}return e.slice(0,t-i)}function xo(e,r){if(e.indexOf(r[1])===-1)return-1;let n=0;for(let t=0;t<e.length;t++)if(e[t]==="\\")t++;else if(e[t]===r[0])n++;else if(e[t]===r[1]&&(n--,n<0))return t;return n>0?-2:-1}function mo(e,r=0){let n=r,t="";for(let i of e)if(i===" "){let o=4-n%4;t+=" ".repeat(o),n+=o}else t+=i,n++;return t}function zn(e,r,n,t,i){let o=r.href,l=r.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1");t.state.inLink=!0;let s={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:l,text:a,tokens:t.inlineTokens(a)};return t.state.inLink=!1,s}function ko(e,r,n){let t=e.match(n.other.indentCodeCompensation);if(t===null)return r;let i=t[1];return r.split(`
32
+ `:""}Fn.exports.dump=El});var $n=y((as,_)=>{"use strict";var qn=hn(),Rl=On();function lr(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}_.exports.Type=v();_.exports.Schema=Fe();_.exports.FAILSAFE_SCHEMA=Ne();_.exports.JSON_SCHEMA=ze();_.exports.CORE_SCHEMA=Ye();_.exports.DEFAULT_SCHEMA=he();_.exports.load=qn.load;_.exports.loadAll=qn.loadAll;_.exports.dump=Rl.dump;_.exports.YAMLException=j();_.exports.types={binary:Ge(),float:Be(),map:$e(),null:Pe(),pairs:Ze(),set:Qe(),timestamp:He(),bool:Me(),int:De(),merge:je(),omap:Ke(),seq:qe(),str:Oe()};_.exports.safeLoad=lr("safeLoad","load");_.exports.safeLoadAll=lr("safeLoadAll","loadAll");_.exports.safeDump=lr("safeDump","dump")});var ri={};di(ri,{Hooks:()=>Q,Lexer:()=>R,Marked:()=>ei,Parser:()=>I,Renderer:()=>ae,TextRenderer:()=>Te,Tokenizer:()=>se,defaults:()=>N,getDefaults:()=>Ae,lexer:()=>_o,marked:()=>b,options:()=>bo,parse:()=>vo,parseInline:()=>So,parser:()=>To,setOptions:()=>wo,use:()=>yo,walkTokens:()=>Ao});function Ae(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function Yn(e){N=e}function k(e,r=""){let n=typeof e=="string"?e:e.source,t={replace:(i,o)=>{let l=typeof o=="string"?o:o.source;return l=l.replace(C.caret,"$1"),n=n.replace(i,l),t},getRegex:()=>new RegExp(n,r)};return t}function F(e,r){if(r){if(C.escapeTest.test(e))return e.replace(C.escapeReplace,Mn)}else if(C.escapeTestNoEncode.test(e))return e.replace(C.escapeReplaceNoEncode,Mn);return e}function Dn(e){try{e=encodeURI(e).replace(C.percentDecode,"%")}catch{return null}return e}function Bn(e,r){let n=e.replace(C.findPipe,(o,l,a)=>{let s=!1,u=l;for(;--u>=0&&a[u]==="\\";)s=!s;return s?"|":" |"}),t=n.split(C.splitPipe),i=0;if(t[0].trim()||t.shift(),t.length>0&&!t.at(-1)?.trim()&&t.pop(),r)if(t.length>r)t.splice(r);else for(;t.length<r;)t.push("");for(;i<t.length;i++)t[i]=t[i].trim().replace(C.slashPipe,"|");return t}function oe(e,r,n){let t=e.length;if(t===0)return"";let i=0;for(;i<t;){let o=e.charAt(t-i-1);if(o===r&&!n)i++;else if(o!==r&&n)i++;else break}return e.slice(0,t-i)}function xo(e,r){if(e.indexOf(r[1])===-1)return-1;let n=0;for(let t=0;t<e.length;t++)if(e[t]==="\\")t++;else if(e[t]===r[0])n++;else if(e[t]===r[1]&&(n--,n<0))return t;return n>0?-2:-1}function mo(e,r=0){let n=r,t="";for(let i of e)if(i===" "){let o=4-n%4;t+=" ".repeat(o),n+=o}else t+=i,n++;return t}function zn(e,r,n,t,i){let o=r.href,l=r.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1");t.state.inLink=!0;let s={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:l,text:a,tokens:t.inlineTokens(a)};return t.state.inLink=!1,s}function ko(e,r,n){let t=e.match(n.other.indentCodeCompensation);if(t===null)return r;let i=t[1];return r.split(`
33
33
  `).map(o=>{let l=o.match(n.other.beginningSpace);if(l===null)return o;let[a]=l;return a.length>=i.length?o.slice(i.length):o}).join(`
34
34
  `)}function b(e,r){return Y.parse(e,r)}var N,z,Il,C,Ll,Fl,Ol,ue,ql,ur,Hn,jn,$l,cr,Nl,pr,Pl,Ml,Se,hr,Dl,Un,Bl,fr,Nn,zl,Yl,Hl,jl,Gn,Ul,ve,dr,Kn,Gl,Zn,Kl,Zl,Qn,Ql,Wl,Xl,Wn,Vl,Jl,Xn,eo,ro,no,io,to,lo,oo,so,ao,uo,ye,co,Vn,Jn,po,Pn,gr,ho,or,fo,we,le,go,Mn,se,R,ae,Te,I,Q,ei,Y,bo,wo,yo,Ao,So,vo,To,_o,ni=fi(()=>{N=Ae();z={exec:()=>null};Il=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),C={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},Ll=/^(?:[ \t]*(?:\n|$))+/,Fl=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ol=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ue=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ql=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ur=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Hn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,jn=k(Hn).replace(/bull/g,ur).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),$l=k(Hn).replace(/bull/g,ur).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),cr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Nl=/^[^\n]+/,pr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Pl=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",pr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ml=k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ur).getRegex(),Se="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",hr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Dl=k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",hr).replace("tag",Se).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Un=k(cr).replace("hr",ue).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Se).getRegex(),Bl=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Un).getRegex(),fr={blockquote:Bl,code:Fl,def:Pl,fences:Ol,heading:ql,hr:ue,html:Dl,lheading:jn,list:Ml,newline:Ll,paragraph:Un,table:z,text:Nl},Nn=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ue).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Se).getRegex(),zl={...fr,lheading:$l,table:Nn,paragraph:k(cr).replace("hr",ue).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Se).getRegex()},Yl={...fr,html:k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",hr).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:z,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(cr).replace("hr",ue).replace("heading",` *#{1,6} *[^
35
35
  ]`).replace("lheading",jn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Hl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,jl=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Gn=/^( {2,}|\\)\n(?!\s*$)/,Ul=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ve=/[\p{P}\p{S}]/u,dr=/[\s\p{P}\p{S}]/u,Kn=/[^\s\p{P}\p{S}]/u,Gl=k(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,dr).getRegex(),Zn=/(?!~)[\p{P}\p{S}]/u,Kl=/(?!~)[\s\p{P}\p{S}]/u,Zl=/(?:[^\s\p{P}\p{S}]|~)/u,Qn=/(?![*_])[\p{P}\p{S}]/u,Ql=/(?![*_])[\s\p{P}\p{S}]/u,Wl=/(?:[^\s\p{P}\p{S}]|[*_])/u,Xl=k(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Il?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Wn=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Vl=k(Wn,"u").replace(/punct/g,ve).getRegex(),Jl=k(Wn,"u").replace(/punct/g,Zn).getRegex(),Xn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",eo=k(Xn,"gu").replace(/notPunctSpace/g,Kn).replace(/punctSpace/g,dr).replace(/punct/g,ve).getRegex(),ro=k(Xn,"gu").replace(/notPunctSpace/g,Zl).replace(/punctSpace/g,Kl).replace(/punct/g,Zn).getRegex(),no=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Kn).replace(/punctSpace/g,dr).replace(/punct/g,ve).getRegex(),io=k(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Qn).getRegex(),to="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",lo=k(to,"gu").replace(/notPunctSpace/g,Wl).replace(/punctSpace/g,Ql).replace(/punct/g,Qn).getRegex(),oo=k(/\\(punct)/,"gu").replace(/punct/g,ve).getRegex(),so=k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ao=k(hr).replace("(?:-->|$)","-->").getRegex(),uo=k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ao).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ye=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,co=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ye).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Vn=k(/^!?\[(label)\]\[(ref)\]/).replace("label",ye).replace("ref",pr).getRegex(),Jn=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",pr).getRegex(),po=k("reflink|nolink(?!\\()","g").replace("reflink",Vn).replace("nolink",Jn).getRegex(),Pn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,gr={_backpedal:z,anyPunctuation:oo,autolink:so,blockSkip:Xl,br:Gn,code:jl,del:z,delLDelim:z,delRDelim:z,emStrongLDelim:Vl,emStrongRDelimAst:eo,emStrongRDelimUnd:no,escape:Hl,link:co,nolink:Jn,punctuation:Gl,reflink:Vn,reflinkSearch:po,tag:uo,text:Ul,url:z},ho={...gr,link:k(/^!?\[(label)\]\((.*?)\)/).replace("label",ye).getRegex(),reflink:k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ye).getRegex()},or={...gr,emStrongRDelimAst:ro,emStrongLDelim:Jl,delLDelim:io,delRDelim:lo,url:k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Pn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Pn).getRegex()},fo={...or,br:k(Gn).replace("{2,}","*").getRegex(),text:k(or.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},we={normal:fr,gfm:zl,pedantic:Yl},le={normal:gr,gfm:or,breaks:fo,pedantic:ho},go={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Mn=e=>go[e];se=class{options;rules;lexer;constructor(e){this.options=e||N}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:oe(n,`
@@ -87,18 +87,18 @@ ${this.parser.parse(e)}</blockquote>
87
87
  ${e}</tr>
88
88
  `}tablecell(e){let r=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+r+`</${n}>
89
89
  `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${F(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:r,tokens:n}){let t=this.parser.parseInline(n),i=Dn(e);if(i===null)return t;e=i;let o='<a href="'+e+'"';return r&&(o+=' title="'+F(r)+'"'),o+=">"+t+"</a>",o}image({href:e,title:r,text:n,tokens:t}){t&&(n=this.parser.parseInline(t,this.parser.textRenderer));let i=Dn(e);if(i===null)return F(n);e=i;let o=`<img src="${e}" alt="${F(n)}"`;return r&&(o+=` title="${F(r)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:F(e.text)}},Te=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},I=class ar{options;renderer;textRenderer;constructor(r){this.options=r||N,this.options.renderer=this.options.renderer||new ae,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Te}static parse(r,n){return new ar(n).parse(r)}static parseInline(r,n){return new ar(n).parseInline(r)}parse(r){let n="";for(let t=0;t<r.length;t++){let i=r[t];if(this.options.extensions?.renderers?.[i.type]){let l=i,a=this.options.extensions.renderers[l.type].call({parser:this},l);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=a||"";continue}}let o=i;switch(o.type){case"space":{n+=this.renderer.space(o);break}case"hr":{n+=this.renderer.hr(o);break}case"heading":{n+=this.renderer.heading(o);break}case"code":{n+=this.renderer.code(o);break}case"table":{n+=this.renderer.table(o);break}case"blockquote":{n+=this.renderer.blockquote(o);break}case"list":{n+=this.renderer.list(o);break}case"checkbox":{n+=this.renderer.checkbox(o);break}case"html":{n+=this.renderer.html(o);break}case"def":{n+=this.renderer.def(o);break}case"paragraph":{n+=this.renderer.paragraph(o);break}case"text":{n+=this.renderer.text(o);break}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(r,n=this.renderer){let t="";for(let i=0;i<r.length;i++){let o=r[i];if(this.options.extensions?.renderers?.[o.type]){let a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){t+=a||"";continue}}let l=o;switch(l.type){case"escape":{t+=n.text(l);break}case"html":{t+=n.html(l);break}case"link":{t+=n.link(l);break}case"image":{t+=n.image(l);break}case"checkbox":{t+=n.checkbox(l);break}case"strong":{t+=n.strong(l);break}case"em":{t+=n.em(l);break}case"codespan":{t+=n.codespan(l);break}case"br":{t+=n.br(l);break}case"del":{t+=n.del(l);break}case"text":{t+=n.text(l);break}default:{let a='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return t}},Q=class{options;block;constructor(e){this.options=e||N}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?R.lex:R.lexInline}provideParser(){return this.block?I.parse:I.parseInline}},ei=class{defaults=Ae();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=I;Renderer=ae;TextRenderer=Te;Lexer=R;Tokenizer=se;Hooks=Q;constructor(...e){this.use(...e)}walkTokens(e,r){let n=[];for(let t of e)switch(n=n.concat(r.call(this,t)),t.type){case"table":{let i=t;for(let o of i.header)n=n.concat(this.walkTokens(o.tokens,r));for(let o of i.rows)for(let l of o)n=n.concat(this.walkTokens(l.tokens,r));break}case"list":{let i=t;n=n.concat(this.walkTokens(i.items,r));break}default:{let i=t;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(o=>{let l=i[o].flat(1/0);n=n.concat(this.walkTokens(l,r))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,r)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let t={...n};if(t.async=this.defaults.async||t.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let o=r.renderers[i.name];o?r.renderers[i.name]=function(...l){let a=i.renderer.apply(this,l);return a===!1&&(a=o.apply(this,l)),a}:r.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=r[i.level];o?o.unshift(i.tokenizer):r[i.level]=[i.tokenizer],i.start&&(i.level==="block"?r.startBlock?r.startBlock.push(i.start):r.startBlock=[i.start]:i.level==="inline"&&(r.startInline?r.startInline.push(i.start):r.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(r.childTokens[i.name]=i.childTokens)}),t.extensions=r),n.renderer){let i=this.defaults.renderer||new ae(this.defaults);for(let o in n.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let l=o,a=n.renderer[l],s=i[l];i[l]=(...u)=>{let c=a.apply(i,u);return c===!1&&(c=s.apply(i,u)),c||""}}t.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new se(this.defaults);for(let o in n.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let l=o,a=n.tokenizer[l],s=i[l];i[l]=(...u)=>{let c=a.apply(i,u);return c===!1&&(c=s.apply(i,u)),c}}t.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new Q;for(let o in n.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let l=o,a=n.hooks[l],s=i[l];Q.passThroughHooks.has(o)?i[l]=u=>{if(this.defaults.async&&Q.passThroughHooksRespectAsync.has(o))return(async()=>{let p=await a.call(i,u);return s.call(i,p)})();let c=a.call(i,u);return s.call(i,c)}:i[l]=(...u)=>{if(this.defaults.async)return(async()=>{let p=await a.apply(i,u);return p===!1&&(p=await s.apply(i,u)),p})();let c=a.apply(i,u);return c===!1&&(c=s.apply(i,u)),c}}t.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,o=n.walkTokens;t.walkTokens=function(l){let a=[];return a.push(o.call(this,l)),i&&(a=a.concat(i.call(this,l))),a}}this.defaults={...this.defaults,...t}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return R.lex(e,r??this.defaults)}parser(e,r){return I.parse(e,r??this.defaults)}parseMarkdown(e){return(r,n)=>{let t={...n},i={...this.defaults,...t},o=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&t.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let l=i.hooks?await i.hooks.preprocess(r):r,a=await(i.hooks?await i.hooks.provideLexer():e?R.lex:R.lexInline)(l,i),s=i.hooks?await i.hooks.processAllTokens(a):a;i.walkTokens&&await Promise.all(this.walkTokens(s,i.walkTokens));let u=await(i.hooks?await i.hooks.provideParser():e?I.parse:I.parseInline)(s,i);return i.hooks?await i.hooks.postprocess(u):u})().catch(o);try{i.hooks&&(r=i.hooks.preprocess(r));let l=(i.hooks?i.hooks.provideLexer():e?R.lex:R.lexInline)(r,i);i.hooks&&(l=i.hooks.processAllTokens(l)),i.walkTokens&&this.walkTokens(l,i.walkTokens);let a=(i.hooks?i.hooks.provideParser():e?I.parse:I.parseInline)(l,i);return i.hooks&&(a=i.hooks.postprocess(a)),a}catch(l){return o(l)}}}onError(e,r){return n=>{if(n.message+=`
90
- Please report this to https://github.com/markedjs/marked.`,e){let t="<p>An error occurred:</p><pre>"+F(n.message+"",!0)+"</pre>";return r?Promise.resolve(t):t}if(r)return Promise.reject(n);throw n}}},Y=new ei;b.options=b.setOptions=function(e){return Y.setOptions(e),b.defaults=Y.defaults,Yn(b.defaults),b};b.getDefaults=Ae;b.defaults=N;b.use=function(...e){return Y.use(...e),b.defaults=Y.defaults,Yn(b.defaults),b};b.walkTokens=function(e,r){return Y.walkTokens(e,r)};b.parseInline=Y.parseInline;b.Parser=I;b.parser=I.parse;b.Renderer=ae;b.TextRenderer=Te;b.Lexer=R;b.lexer=R.lex;b.Tokenizer=se;b.Hooks=Q;b.parse=b;bo=b.options,wo=b.setOptions,yo=b.use,Ao=b.walkTokens,So=b.parseInline,vo=b,To=I.parse,_o=R.lex});var $o=y((fs,si)=>{var Co="0.4.0",li=$n(),{marked:kr}=(ni(),xi(ri));function br(e){let r=/^---\r?\n---\r?\n?([\s\S]*)$/,n=e.match(r);if(n)return{data:{},body:n[1]};let t=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/,i=e.match(t);if(!i)return{data:{},body:e};let o=li.load(i[1])??{},l=i[2];return{data:o,body:l}}function ce(e,r){let n=r.replace(/\[(\d+)\]/g,".$1").split("."),t=e;for(let i of n){if(t==null)return;t=t[i]}return t}function Eo(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="number"?e!==0:typeof e=="string"?e!=="":Array.isArray(e)?e.length>0:typeof e=="object"?Object.keys(e).length>0:!0}function Ro(e){return e==null?"":Array.isArray(e)?e.join(", "):typeof e=="object"?JSON.stringify(e):String(e)}function mr(e,r,n){let t=r;for(;t>0&&e[t-1]!==`
90
+ Please report this to https://github.com/markedjs/marked.`,e){let t="<p>An error occurred:</p><pre>"+F(n.message+"",!0)+"</pre>";return r?Promise.resolve(t):t}if(r)return Promise.reject(n);throw n}}},Y=new ei;b.options=b.setOptions=function(e){return Y.setOptions(e),b.defaults=Y.defaults,Yn(b.defaults),b};b.getDefaults=Ae;b.defaults=N;b.use=function(...e){return Y.use(...e),b.defaults=Y.defaults,Yn(b.defaults),b};b.walkTokens=function(e,r){return Y.walkTokens(e,r)};b.parseInline=Y.parseInline;b.Parser=I;b.parser=I.parse;b.Renderer=ae;b.TextRenderer=Te;b.Lexer=R;b.lexer=R.lex;b.Tokenizer=se;b.Hooks=Q;b.parse=b;bo=b.options,wo=b.setOptions,yo=b.use,Ao=b.walkTokens,So=b.parseInline,vo=b,To=I.parse,_o=R.lex});var No=y((ds,si)=>{var Co="0.4.2",li=$n(),{marked:kr}=(ni(),xi(ri));function br(e){let r=/^---\r?\n---\r?\n?([\s\S]*)$/,n=e.match(r);if(n)return{data:{},body:n[1]};let t=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/,i=e.match(t);if(!i)return{data:{},body:e};let o=li.load(i[1])??{},l=i[2];return{data:o,body:l}}function ce(e,r){let n=r.replace(/\[(\d+)\]/g,".$1").split("."),t=e;for(let i of n){if(t==null)return;t=t[i]}return t}function Eo(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="number"?e!==0:typeof e=="string"?e!=="":Array.isArray(e)?e.length>0:typeof e=="object"?Object.keys(e).length>0:!0}function Ro(e){return e==null?"":Array.isArray(e)?e.join(", "):typeof e=="object"?JSON.stringify(e):String(e)}function Io(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function mr(e,r,n){let t=r;for(;t>0&&e[t-1]!==`
91
91
  `;)t--;for(let o=t;o<r;o++)if(e[o]!==" "&&e[o]!==" ")return null;let i=n;for(;i<e.length&&e[i]!==`
92
92
  `&&e[i]!=="\r";){if(e[i]!==" "&&e[i]!==" ")return null;i++}return i<e.length&&e[i]==="\r"&&i++,i<e.length&&e[i]===`
93
- `&&i++,{lineStart:t,lineEnd:i}}function Io(e,r,n,t){let i=1,o=t;for(;i>0;){let l=e.indexOf(n,o);if(l===-1)return-1;r.lastIndex=o;let a;for(;(a=r.exec(e))!==null&&a.index<l;)i++;if(--i===0)return l;o=l+n.length}return-1}function Lo(e){let r=/\{\{#if [\w.[\]]+\}\}|\{\{\/if\}\}|\{\{else\}\}/g,n=0,t;for(;(t=r.exec(e))!==null;)if(t[0].startsWith("{{#if "))n++;else if(t[0]==="{{/if}}")n--;else if(t[0]==="{{else}}"&&n===0)return t.index;return-1}function ii(e,r,n,t,i){let o="",l=0,a;for(;(a=r.exec(e))!==null;){let s=a.index,u=a.index+a[0].length,c=Io(e,n,t,u);if(c===-1)continue;let p=c+t.length,h=s,f=p,d=u,x=c,w=mr(e,s,u);w&&(h=w.lineStart,d=w.lineEnd);let S=mr(e,c,p);S&&(f=S.lineEnd);let m=e.slice(d,x);o+=e.slice(l,h),o+=i(a[1],m),l=f,r.lastIndex=l}return o+e.slice(l)}function oi(e,{embed:r=!1}={}){let{data:n,body:t}=br(e),i=pe(t,n);return r&&(i=i.trimEnd()+`
93
+ `&&i++,{lineStart:t,lineEnd:i}}function Lo(e,r,n,t){let i=1,o=t;for(;i>0;){let l=e.indexOf(n,o);if(l===-1)return-1;r.lastIndex=o;let a;for(;(a=r.exec(e))!==null&&a.index<l;)i++;if(--i===0)return l;o=l+n.length}return-1}function Fo(e){let r=/\{\{#if [\w.[\]]+\}\}|\{\{\/if\}\}|\{\{else\}\}/g,n=0,t;for(;(t=r.exec(e))!==null;)if(t[0].startsWith("{{#if "))n++;else if(t[0]==="{{/if}}")n--;else if(t[0]==="{{else}}"&&n===0)return t.index;return-1}function ii(e,r,n,t,i){let o="",l=0,a;for(;(a=r.exec(e))!==null;){let s=a.index,u=a.index+a[0].length,c=Lo(e,n,t,u);if(c===-1)continue;let p=c+t.length,h=s,f=p,d=u,x=c,w=mr(e,s,u);w&&(h=w.lineStart,d=w.lineEnd);let S=mr(e,c,p);S&&(f=S.lineEnd);let m=e.slice(d,x);o+=e.slice(l,h),o+=i(a[1],m),l=f,r.lastIndex=l}return o+e.slice(l)}function oi(e,{embed:r=!1}={}){let{data:n,body:t}=br(e),i=pe(t,n);return r&&(i=i.trimEnd()+`
94
94
 
95
95
  <!-- frontmatter
96
96
  `+JSON.stringify(n,null,2)+`
97
97
  -->
98
- `),i}function Fo(e){let r=oi(e);return kr.parse(r,{gfm:!0})}function Oo(e,{embed:r=!1}={}){let{data:n,body:t}=br(e),i=pe(t,n),o=kr.parse(i,{gfm:!0}),l=n.title||"",a="";return r&&(a=`
98
+ `),i}function Oo(e){let r=oi(e);return kr.parse(r,{gfm:!0})}function qo(e,{embed:r=!1}={}){let{data:n,body:t}=br(e),i=pe(t,n),o=kr.parse(i,{gfm:!0}),l=n.title||"",a="";return r&&(a=`
99
99
  <script type="application/json" id="frontmatter">
100
100
  `+JSON.stringify(n,null,2)+`
101
- <\/script>`),qo.replace("%TITLE%",l).replace("%DATA_BLOCK%",a).replace("%BODY%",o)}var qo=`<!doctype html>
101
+ <\/script>`),$o.replace("%TITLE%",l).replace("%DATA_BLOCK%",a).replace("%BODY%",o)}var $o=`<!doctype html>
102
102
  <html lang="en">
103
103
  <head>
104
104
  <meta charset="UTF-8" />
@@ -123,4 +123,4 @@ Please report this to https://github.com/markedjs/marked.`,e){let t="<p>An error
123
123
  <body>
124
124
  %BODY%
125
125
  </body>
126
- </html>`,xr,ti;function pe(e,r,n){let t=n!==!1;t&&(xr=new Map,ti=0);function i(a){let s=`${ti++}`;return xr.set(s,a),s}function o(a){let s=a;for(let[u,c]of[...xr.entries()].reverse())s=s.split(u).join(c);return s}let l=e;return l=l.replace(/\\\{\{/g,()=>i("{{")),l=ii(l,/\{\{#each ([\w.[\]]+)\}\}/g,/\{\{#each [\w.[\]]+\}\}/g,"{{/each}}",(a,s)=>{let u=ce(r,a);return Array.isArray(u)?i(u.map((c,p)=>{let h={...r,this:c,"@index":p,"@first":p===0,"@last":p===u.length-1};return c&&typeof c=="object"&&!Array.isArray(c)&&Object.assign(h,c),pe(s,h,!1)}).join("")):i("")}),l=ii(l,/\{\{#if ([\w.[\]]+)\}\}/g,/\{\{#if [\w.[\]]+\}\}/g,"{{/if}}",(a,s)=>{let u=ce(r,a),c=Lo(s),p,h;if(c===-1)p=s,h="";else{let f=c+8,d=mr(s,c,f);d?(p=s.slice(0,d.lineStart),h=s.slice(d.lineEnd)):(p=s.slice(0,c),h=s.slice(f))}return i(pe(Eo(u)?p:h,r,!1))}),l=l.replace(/\{\{> ?([\w.[\]]+)\}\}/g,(a,s)=>{let u=ce(r,s);return u!=null?i(String(u)):""}),l=l.replace(/\{\{([\w.[\]@]+)\}\}/g,(a,s)=>{let u=ce(r,s);return u==null?"":i(Ro(u))}),t?o(l):l}si.exports={SPEC_VERSION:Co,parse:br,render:oi,renderHtmlFrag:Fo,renderHtml:Oo,renderTemplate:pe,resolvePath:ce,yaml:li,marked:kr}});return $o();})();
126
+ </html>`,xr,ti;function pe(e,r,n){let t=n!==!1;t&&(xr=new Map,ti=0);function i(a){let s=`${ti++}`;return xr.set(s,a),s}function o(a){let s=a;for(let[u,c]of[...xr.entries()].reverse())s=s.split(u).join(c);return s}let l=e;return l=l.replace(/\\\{\{/g,()=>i("{{")),l=ii(l,/\{\{#each ([\w.[\]]+)\}\}/g,/\{\{#each [\w.[\]]+\}\}/g,"{{/each}}",(a,s)=>{let u=ce(r,a);return Array.isArray(u)?i(u.map((c,p)=>{let h={this:c,"@index":p,"@first":p===0,"@last":p===u.length-1};return c&&typeof c=="object"&&!Array.isArray(c)&&Object.assign(h,c),pe(s,h,!1)}).join("")):i("")}),l=ii(l,/\{\{#if ([\w.[\]]+)\}\}/g,/\{\{#if [\w.[\]]+\}\}/g,"{{/if}}",(a,s)=>{let u=ce(r,a),c=Fo(s),p,h;if(c===-1)p=s,h="";else{let f=c+8,d=mr(s,c,f);d?(p=s.slice(0,d.lineStart),h=s.slice(d.lineEnd)):(p=s.slice(0,c),h=s.slice(f))}return i(pe(Eo(u)?p:h,r,!1))}),l=l.replace(/\{\{> ?([\w.[\]]+)\}\}/g,(a,s)=>{let u=ce(r,s);return u!=null?i(String(u)):""}),l=l.replace(/\{\{([\w.[\]@]+)\}\}/g,(a,s)=>{let u=ce(r,s);return u==null?"":i(Io(Ro(u)))}),t?o(l):l}si.exports={SPEC_VERSION:Co,parse:br,render:oi,renderHtmlFrag:Oo,renderHtml:qo,renderTemplate:pe,resolvePath:ce,yaml:li,marked:kr}});return No();})();
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "markedin-parser",
3
- "version": "0.4.0",
4
- "description": "Parse and render .mi (markedin) files — YAML frontmatter + templated Markdown",
3
+ "version": "0.4.2",
4
+ "description": "The Markedin parser for .mi files — structured data (YAML) plus a Markdown document that renders from it.",
5
5
  "main": "parse.js",
6
6
  "files": [
7
7
  "parse.js",
8
- "dist/"
8
+ "dist/",
9
+ "LICENSE",
10
+ "NOTICE"
9
11
  ],
10
12
  "scripts": {
11
13
  "build": "esbuild parse.js --bundle --format=iife --global-name=markedin --outfile=dist/markedin.browser.js && esbuild parse.js --bundle --format=iife --global-name=markedin --minify --outfile=dist/markedin.browser.min.js",
@@ -21,7 +23,7 @@
21
23
  "url": "https://github.com/stonebraker/markedin/issues"
22
24
  },
23
25
  "author": "Jason Stonebraker",
24
- "license": "MIT",
26
+ "license": "Apache-2.0",
25
27
  "keywords": [
26
28
  "markedin",
27
29
  "mi",
@@ -33,5 +35,8 @@
33
35
  "dependencies": {
34
36
  "js-yaml": "^4.1.1",
35
37
  "marked": "^17.0.4"
38
+ },
39
+ "devDependencies": {
40
+ "esbuild": "^0.28.0"
36
41
  }
37
42
  }
package/parse.js CHANGED
@@ -12,7 +12,7 @@
12
12
  * {{> partial_key}} — inline another frontmatter string as markdown
13
13
  */
14
14
 
15
- const SPEC_VERSION = '0.4.0';
15
+ const SPEC_VERSION = '0.4.2';
16
16
 
17
17
  const yaml = require('js-yaml');
18
18
  const { marked } = require('marked');
@@ -71,6 +71,19 @@ function formatValue(val) {
71
71
  return String(val);
72
72
  }
73
73
 
74
+ // ─── HTML escape ─────────────────────────────────────────────────────────────
75
+ // Applied to scalar substitutions ({{key}}) per SPEC.md 0.4.2.
76
+ // {{> key}} is the raw form and bypasses this.
77
+
78
+ function htmlEscape(str) {
79
+ return str
80
+ .replace(/&/g, '&amp;')
81
+ .replace(/</g, '&lt;')
82
+ .replace(/>/g, '&gt;')
83
+ .replace(/"/g, '&quot;')
84
+ .replace(/'/g, '&#39;');
85
+ }
86
+
74
87
  // ─── Standalone tag detection ────────────────────────────────────────────────
75
88
 
76
89
  function isStandalone(str, tagStart, tagEnd) {
@@ -246,6 +259,9 @@ function renderTemplate(template, ctx, _isRoot) {
246
259
  out = out.replace(/\\\{\{/g, () => protect('{{'));
247
260
 
248
261
  // 1. {{#each key}} ... {{/each}}
262
+ // Scope per SPEC.md 0.4.2: lookups inside the block resolve against the
263
+ // current iteration item only — no fall-through to an enclosing or root
264
+ // scope. itemCtx therefore intentionally does NOT spread the outer ctx.
249
265
  out = processBlocks(out,
250
266
  /\{\{#each ([\w.[\]]+)\}\}/g,
251
267
  /\{\{#each [\w.[\]]+\}\}/g,
@@ -254,7 +270,7 @@ function renderTemplate(template, ctx, _isRoot) {
254
270
  const arr = resolvePath(ctx, key);
255
271
  if (!Array.isArray(arr)) return protect('');
256
272
  return protect(arr.map((item, i) => {
257
- const itemCtx = { ...ctx, this: item, '@index': i, '@first': i === 0, '@last': i === arr.length - 1 };
273
+ const itemCtx = { this: item, '@index': i, '@first': i === 0, '@last': i === arr.length - 1 };
258
274
  if (item && typeof item === 'object' && !Array.isArray(item)) Object.assign(itemCtx, item);
259
275
  return renderTemplate(inner, itemCtx, false);
260
276
  }).join(''));
@@ -294,11 +310,11 @@ function renderTemplate(template, ctx, _isRoot) {
294
310
  return val != null ? protect(String(val)) : '';
295
311
  });
296
312
 
297
- // 4. {{key}} — scalar interpolation
313
+ // 4. {{key}} — scalar interpolation (HTML-escaped per SPEC.md 0.4.2)
298
314
  out = out.replace(/\{\{([\w.[\]@]+)\}\}/g, (_, path) => {
299
315
  const val = resolvePath(ctx, path);
300
316
  if (val == null) return '';
301
- return protect(formatValue(val));
317
+ return protect(htmlEscape(formatValue(val)));
302
318
  });
303
319
 
304
320
  return isRoot ? restore(out) : out;