run-and-notify 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +3 -0
- package/LICENSE +619 -0
- package/README.md +132 -0
- package/config.example.json +54 -0
- package/dist/bundle/run-and-notify.mjs +516 -0
- package/dist/bundle/run-and-notify.mjs.map +7 -0
- package/examples/apps/daily-digest-failure.mjs +17 -0
- package/examples/apps/daily-digest-html-success.mjs +14 -0
- package/examples/apps/daily-digest-success.mjs +16 -0
- package/examples/apps/full-html.mjs +14 -0
- package/examples/apps/full-markdown.mjs +19 -0
- package/examples/apps/full-raw.mjs +4 -0
- package/examples/apps/structured-jsonl-success.mjs +23 -0
- package/examples/config-html.json +8 -0
- package/examples/config-jsonl.json +8 -0
- package/examples/config-markdown.json +8 -0
- package/examples/config-raw.json +8 -0
- package/examples/daily-digest-html/config.json +46 -0
- package/examples/daily-digest-html/templates/error.email.html.hbs +9 -0
- package/examples/daily-digest-html/templates/error.slack.blocks.json.hbs +9 -0
- package/examples/daily-digest-html/templates/error.subject.hbs +1 -0
- package/examples/daily-digest-html/templates/error.text.hbs +7 -0
- package/examples/daily-digest-html/templates/success.email.html.hbs +1 -0
- package/examples/daily-digest-html/templates/success.slack.blocks.json.hbs +9 -0
- package/examples/daily-digest-html/templates/success.subject.hbs +1 -0
- package/examples/daily-digest-html/templates/success.text.hbs +1 -0
- package/examples/daily-digest-markdown/config.json +46 -0
- package/examples/daily-digest-markdown/templates/error.email.html.hbs +9 -0
- package/examples/daily-digest-markdown/templates/error.slack.blocks.json.hbs +16 -0
- package/examples/daily-digest-markdown/templates/error.subject.hbs +1 -0
- package/examples/daily-digest-markdown/templates/error.text.hbs +9 -0
- package/examples/daily-digest-markdown/templates/success.email.html.hbs +1 -0
- package/examples/daily-digest-markdown/templates/success.slack.blocks.json.hbs +9 -0
- package/examples/daily-digest-markdown/templates/success.subject.hbs +1 -0
- package/examples/daily-digest-markdown/templates/success.text.hbs +1 -0
- package/examples/full-html/config.json +46 -0
- package/examples/full-html/templates/email.html.hbs +22 -0
- package/examples/full-html/templates/slack.blocks.json.hbs +9 -0
- package/examples/full-html/templates/slack.text.hbs +1 -0
- package/examples/full-html/templates/subject.hbs +1 -0
- package/examples/full-html/templates/text.hbs +12 -0
- package/examples/full-markdown/config.json +46 -0
- package/examples/full-markdown/templates/email.html.hbs +1 -0
- package/examples/full-markdown/templates/slack.blocks.json.hbs +9 -0
- package/examples/full-markdown/templates/slack.text.hbs +1 -0
- package/examples/full-markdown/templates/subject.hbs +1 -0
- package/examples/full-markdown/templates/text.hbs +18 -0
- package/examples/full-raw/config.json +46 -0
- package/examples/full-raw/templates/email.html.hbs +22 -0
- package/examples/full-raw/templates/slack.blocks.json.hbs +16 -0
- package/examples/full-raw/templates/slack.text.hbs +1 -0
- package/examples/full-raw/templates/subject.hbs +1 -0
- package/examples/full-raw/templates/text.hbs +12 -0
- package/examples/minimal/config.json +20 -0
- package/examples/structured-jsonl-html/config.json +46 -0
- package/examples/structured-jsonl-html/templates/error.email.html.hbs +6 -0
- package/examples/structured-jsonl-html/templates/error.slack.blocks.json.hbs +9 -0
- package/examples/structured-jsonl-html/templates/error.subject.hbs +1 -0
- package/examples/structured-jsonl-html/templates/error.text.hbs +4 -0
- package/examples/structured-jsonl-html/templates/success.email.html.hbs +16 -0
- package/examples/structured-jsonl-html/templates/success.slack.blocks.json.hbs +9 -0
- package/examples/structured-jsonl-html/templates/success.subject.hbs +1 -0
- package/examples/structured-jsonl-html/templates/success.text.hbs +6 -0
- package/examples/structured-jsonl-markdown/config.json +46 -0
- package/examples/structured-jsonl-markdown/templates/error.email.html.hbs +9 -0
- package/examples/structured-jsonl-markdown/templates/error.slack.blocks.json.hbs +9 -0
- package/examples/structured-jsonl-markdown/templates/error.subject.hbs +1 -0
- package/examples/structured-jsonl-markdown/templates/error.text.hbs +9 -0
- package/examples/structured-jsonl-markdown/templates/success.email.html.hbs +1 -0
- package/examples/structured-jsonl-markdown/templates/success.slack.blocks.json.hbs +9 -0
- package/examples/structured-jsonl-markdown/templates/success.subject.hbs +1 -0
- package/examples/structured-jsonl-markdown/templates/success.text.hbs +19 -0
- package/package.json +79 -0
- package/schemas/config.schema.json +259 -0
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
3
|
+
const require = __createRequire(import.meta.url);
|
|
4
|
+
|
|
5
|
+
var HB=Object.create;var Fu=Object.defineProperty;var UB=Object.getOwnPropertyDescriptor;var VB=Object.getOwnPropertyNames;var GB=Object.getPrototypeOf,WB=Object.prototype.hasOwnProperty;var X=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var z=(e,t)=>()=>(e&&(t=e(e=0)),t);var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ll=(e,t)=>{for(var r in t)Fu(e,r,{get:t[r],enumerable:!0})},Ow=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of VB(t))!WB.call(e,i)&&i!==r&&Fu(e,i,{get:()=>t[i],enumerable:!(n=UB(t,i))||n.enumerable});return e};var Nr=(e,t,r)=>(r=e!=null?HB(GB(e)):{},Ow(t||!e||!e.__esModule?Fu(r,"default",{value:e,enumerable:!0}):r,e)),Iu=e=>Ow(Fu({},"__esModule",{value:!0}),e);var g,f=z(()=>{g={"_output-html.hbs":`{{#if (lookup this "raw")}}<pre style="white-space: pre-wrap; background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 14px 16px; overflow-x: auto;">{{{rawToHtml raw}}}</pre>{{/if}}{{#if (lookup this "markdown")}}{{{markdownToHtml markdown}}}{{/if}}{{#if (lookup this "html")}}{{{html}}}{{/if}}{{#if (lookup this "lines")}}<div style="display: grid; gap: 12px;">{{#each lines}}<article style="border: 1px solid #dbe3ef; border-radius: 12px; padding: 14px 16px; background: #ffffff;"><dl style="margin: 0; display: grid; gap: 8px;">{{#each this}}<div><dt style="font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; font-weight: 700;">{{@key}}</dt><dd style="margin: 2px 0 0; color: #18212f;">{{jsonValue this}}</dd></div>{{/each}}</dl></article>{{/each}}</div>{{/if}}
|
|
6
|
+
`,"_output-text.hbs":`{{#if (lookup this "raw")}}{{raw}}{{/if}}{{#if (lookup this "markdown")}}{{markdown}}{{/if}}{{#if (lookup this "html")}}{{htmlToMarkdown html}}{{/if}}{{#if (lookup this "lines")}}{{#each lines}}{{#each this}}{{@key}}: {{this}}{{#unless @last}}, {{/unless}}{{/each}}{{#unless @last}}
|
|
7
|
+
{{/unless}}{{/each}}{{/if}}
|
|
8
|
+
`,"default.email.html.hbs":`<!doctype html>
|
|
9
|
+
<html lang="en">
|
|
10
|
+
<body>
|
|
11
|
+
<main style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #18212f; line-height: 1.5;">
|
|
12
|
+
<section style="border: 1px solid #d9e2ec; border-radius: 16px; overflow: hidden;">
|
|
13
|
+
{{#unless (hideCommandIfSuccess)}}
|
|
14
|
+
<header style="background: {{#if status}}#7f1d1d{{else}}#0f172a{{/if}}; color: #f8fafc; padding: 20px 24px;">
|
|
15
|
+
<h1 style="margin: 0; font-size: 22px;">{{#if status}}Failed: {{/if}}{{config.name}}</h1>
|
|
16
|
+
</header>
|
|
17
|
+
<div style="padding: 20px 24px; background: #f8fafc;">
|
|
18
|
+
<p><strong>Command:</strong> <code>{{shellCommand command}}</code></p>
|
|
19
|
+
<p><strong>CWD:</strong> <code>{{shellToken cwd}}</code></p>
|
|
20
|
+
</div>
|
|
21
|
+
{{/unless}}
|
|
22
|
+
<section style="padding: 20px 24px;">
|
|
23
|
+
{{#unless (hideCommandIfSuccess)}}
|
|
24
|
+
<h2 style="margin-top: 0;">Output</h2>
|
|
25
|
+
{{/unless}}
|
|
26
|
+
{{> output-html stdout}}
|
|
27
|
+
</section>
|
|
28
|
+
{{#if (hasOutput stderr)}}
|
|
29
|
+
{{#if status}}
|
|
30
|
+
<section style="padding: 20px 24px; border-top: 1px solid #e2e8f0;">
|
|
31
|
+
<h2 style="margin-top: 0;">Errors</h2>
|
|
32
|
+
{{> output-html stderr}}
|
|
33
|
+
</section>
|
|
34
|
+
{{else}}
|
|
35
|
+
{{#if config.showStderrIfSuccess}}
|
|
36
|
+
<section style="padding: 20px 24px; border-top: 1px solid #e2e8f0;">
|
|
37
|
+
<h2 style="margin-top: 0;">Errors</h2>
|
|
38
|
+
{{> output-html stderr}}
|
|
39
|
+
</section>
|
|
40
|
+
{{/if}}
|
|
41
|
+
{{/if}}
|
|
42
|
+
{{/if}}
|
|
43
|
+
</section>
|
|
44
|
+
</main>
|
|
45
|
+
</body>
|
|
46
|
+
</html>
|
|
47
|
+
`,"default.slack.blocks.json.hbs":`{{{defaultSlackBlocks}}}
|
|
48
|
+
`,"default.text.hbs":`{{#unless (hideCommandIfSuccess)}}
|
|
49
|
+
# Command {{#if status}}failed{{else}}succeeded{{/if}}
|
|
50
|
+
|
|
51
|
+
- Status: \`{{status}}\`
|
|
52
|
+
- Command: \`{{shellCommand command}}\`
|
|
53
|
+
- CWD: \`{{shellToken cwd}}\`
|
|
54
|
+
|
|
55
|
+
## Output
|
|
56
|
+
{{/unless}}
|
|
57
|
+
{{> output-text stdout}}
|
|
58
|
+
{{#if (hasOutput stderr)}}
|
|
59
|
+
|
|
60
|
+
## Errors
|
|
61
|
+
{{> output-text stderr}}
|
|
62
|
+
{{/if}}
|
|
63
|
+
`,"error.slack.text.hbs":`Failed: {{config.name}}
|
|
64
|
+
`,"error.subject.hbs":`Failed: {{config.name}}
|
|
65
|
+
`,"success.slack.text.hbs":`{{config.name}}
|
|
66
|
+
`,"success.subject.hbs":`{{config.name}}
|
|
67
|
+
`}});var am=_((YDe,Iw)=>{"use strict";f();var cl=e=>e&&typeof e.message=="string",sm=e=>{if(!e)return;let t=e.cause;if(typeof t=="function"){let r=e.cause();return cl(r)?r:void 0}else return cl(t)?t:void 0},Nw=(e,t)=>{if(!cl(e))return"";let r=e.stack||"";if(t.has(e))return r+`
|
|
68
|
+
causes have become circular...`;let n=sm(e);return n?(t.add(e),r+`
|
|
69
|
+
caused by: `+Nw(n,t)):r},ZB=e=>Nw(e,new Set),Fw=(e,t,r)=>{if(!cl(e))return"";let n=r?"":e.message||"";if(t.has(e))return n+": ...";let i=sm(e);if(i){t.add(e);let s=typeof e.cause=="function";return n+(s?"":": ")+Fw(i,t,s)}else return n},JB=e=>Fw(e,new Set);Iw.exports={isErrorLike:cl,getErrorCause:sm,stackWithCauses:ZB,messageWithCauses:JB}});var om=_((eSe,Pw)=>{"use strict";f();var QB=Symbol("circular-ref-tag"),Lu=Symbol("pino-raw-err-ref"),Lw=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},aggregateErrors:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[Lu]},set:function(e){this[Lu]=e}}});Object.defineProperty(Lw,Lu,{writable:!0,value:{}});Pw.exports={pinoErrProto:Lw,pinoErrorSymbols:{seen:QB,rawSymbol:Lu}}});var qw=_((rSe,Mw)=>{"use strict";f();Mw.exports=cm;var{messageWithCauses:YB,stackWithCauses:XB,isErrorLike:Rw}=am(),{pinoErrProto:e$,pinoErrorSymbols:t$}=om(),{seen:lm}=t$,{toString:r$}=Object.prototype;function cm(e){if(!Rw(e))return e;e[lm]=void 0;let t=Object.create(e$);t.type=r$.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,t.message=YB(e),t.stack=XB(e),Array.isArray(e.errors)&&(t.aggregateErrors=e.errors.map(r=>cm(r)));for(let r in e)if(t[r]===void 0){let n=e[r];Rw(n)?r!=="cause"&&!Object.prototype.hasOwnProperty.call(n,lm)&&(t[r]=cm(n)):t[r]=n}return delete e[lm],t.raw=e,t}});var Bw=_((iSe,jw)=>{"use strict";f();jw.exports=Ru;var{isErrorLike:um}=am(),{pinoErrProto:n$,pinoErrorSymbols:i$}=om(),{seen:Pu}=i$,{toString:s$}=Object.prototype;function Ru(e){if(!um(e))return e;e[Pu]=void 0;let t=Object.create(n$);t.type=s$.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,t.message=e.message,t.stack=e.stack,Array.isArray(e.errors)&&(t.aggregateErrors=e.errors.map(r=>Ru(r))),um(e.cause)&&!Object.prototype.hasOwnProperty.call(e.cause,Pu)&&(t.cause=Ru(e.cause));for(let r in e)if(t[r]===void 0){let n=e[r];um(n)?Object.prototype.hasOwnProperty.call(n,Pu)||(t[r]=Ru(n)):t[r]=n}return delete e[Pu],t.raw=e,t}});var Uw=_((aSe,Hw)=>{"use strict";f();Hw.exports={mapHttpRequest:a$,reqSerializer:zw};var pm=Symbol("pino-raw-req-ref"),$w=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[pm]},set:function(e){this[pm]=e}}});Object.defineProperty($w,pm,{writable:!0,value:{}});function zw(e){let t=e.info||e.socket,r=Object.create($w);if(r.id=typeof e.id=="function"?e.id():e.id||(e.info?e.info.id:void 0),r.method=e.method,e.originalUrl)r.url=e.originalUrl;else{let n=e.path;r.url=typeof n=="string"?n:e.url?e.url.path||e.url:void 0}return e.query&&(r.query=e.query),e.params&&(r.params=e.params),r.headers=e.headers,r.remoteAddress=t&&t.remoteAddress,r.remotePort=t&&t.remotePort,r.raw=e.raw||e,r}function a$(e){return{req:zw(e)}}});var Kw=_((lSe,Ww)=>{"use strict";f();Ww.exports={mapHttpResponse:o$,resSerializer:Gw};var fm=Symbol("pino-raw-res-ref"),Vw=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[fm]},set:function(e){this[fm]=e}}});Object.defineProperty(Vw,fm,{writable:!0,value:{}});function Gw(e){let t=Object.create(Vw);return t.statusCode=e.headersSent?e.statusCode:null,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}function o$(e){return{res:Gw(e)}}});var hm=_((uSe,Zw)=>{"use strict";f();var dm=qw(),l$=Bw(),Mu=Uw(),qu=Kw();Zw.exports={err:dm,errWithCause:l$,mapHttpRequest:Mu.mapHttpRequest,mapHttpResponse:qu.mapHttpResponse,req:Mu.reqSerializer,res:qu.resSerializer,wrapErrorSerializer:function(t){return t===dm?t:function(n){return t(dm(n))}},wrapRequestSerializer:function(t){return t===Mu.reqSerializer?t:function(n){return t(Mu.reqSerializer(n))}},wrapResponseSerializer:function(t){return t===qu.resSerializer?t:function(n){return t(qu.resSerializer(n))}}}});var mm=_((fSe,Jw)=>{"use strict";f();function c$(e,t){return t}Jw.exports=function(){let t=Error.prepareStackTrace;Error.prepareStackTrace=c$;let r=new Error().stack;if(Error.prepareStackTrace=t,!Array.isArray(r))return;let n=r.slice(2),i=[];for(let s of n)s&&i.push(s.getFileName());return i}});var rE=_((hSe,tE)=>{"use strict";f();function gm(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array){let t=[];for(let r=0;r<e.length;r++)t[r]=gm(e[r]);return t}if(typeof e=="object"){let t=Object.create(Object.getPrototypeOf(e));for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=gm(e[r]));return t}return e}function Qw(e){let t=[],r="",n=!1,i=!1,s="";for(let a=0;a<e.length;a++){let o=e[a];!n&&o==="."?r&&(t.push(r),r=""):o==="["?(r&&(t.push(r),r=""),n=!0):o==="]"&&n?(t.push(r),r="",n=!1,i=!1):(o==='"'||o==="'")&&n?i?o===s?(i=!1,s=""):r+=o:(i=!0,s=o):r+=o}return r&&t.push(r),t}function Yw(e,t,r){let n=e;for(let s=0;s<t.length-1;s++){let a=t[s];if(typeof n!="object"||n===null||!(a in n)||typeof n[a]!="object"||n[a]===null)return!1;n=n[a]}let i=t[t.length-1];if(i==="*"){if(Array.isArray(n))for(let s=0;s<n.length;s++)n[s]=r;else if(typeof n=="object"&&n!==null)for(let s in n)Object.prototype.hasOwnProperty.call(n,s)&&(n[s]=r)}else typeof n=="object"&&n!==null&&i in n&&Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=r);return!0}function Xw(e,t){let r=e;for(let i=0;i<t.length-1;i++){let s=t[i];if(typeof r!="object"||r===null||!(s in r)||typeof r[s]!="object"||r[s]===null)return!1;r=r[s]}let n=t[t.length-1];if(n==="*"){if(Array.isArray(r))for(let i=0;i<r.length;i++)r[i]=void 0;else if(typeof r=="object"&&r!==null)for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&delete r[i]}else typeof r=="object"&&r!==null&&n in r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n];return!0}var ju=Symbol("PATH_NOT_FOUND");function u$(e,t){let r=e;for(let n of t){if(r==null||typeof r!="object"||r===null||!(n in r))return ju;r=r[n]}return r}function p$(e,t){let r=e;for(let n of t){if(r==null||typeof r!="object"||r===null)return;r=r[n]}return r}function f$(e,t,r,n=!1){for(let i of t){let s=Qw(i);if(s.includes("*"))eE(e,s,r,i,n);else if(n)Xw(e,s);else{let a=u$(e,s);if(a===ju)continue;let o=typeof r=="function"?r(a,s):r;Yw(e,s,o)}}}function eE(e,t,r,n,i=!1){let s=t.indexOf("*");if(s===t.length-1){let a=t.slice(0,-1),o=e;for(let l of a){if(o==null||typeof o!="object"||o===null)return;o=o[l]}if(Array.isArray(o))if(i)for(let l=0;l<o.length;l++)o[l]=void 0;else for(let l=0;l<o.length;l++){let c=[...a,l.toString()],p=typeof r=="function"?r(o[l],c):r;o[l]=p}else if(typeof o=="object"&&o!==null)if(i){let l=[];for(let c in o)Object.prototype.hasOwnProperty.call(o,c)&&l.push(c);for(let c of l)delete o[c]}else for(let l in o){let c=[...a,l],p=typeof r=="function"?r(o[l],c):r;o[l]=p}}else d$(e,t,r,s,n,i)}function d$(e,t,r,n,i,s=!1){let a=t.slice(0,n),o=t.slice(n+1),l=[];function c(p,u){if(u===a.length){if(Array.isArray(p))for(let h=0;h<p.length;h++)l[u]=h.toString(),c(p[h],u+1);else if(typeof p=="object"&&p!==null)for(let h in p)l[u]=h,c(p[h],u+1)}else if(u<a.length){let h=a[u];p&&typeof p=="object"&&p!==null&&h in p&&(l[u]=h,c(p[h],u+1))}else if(o.includes("*"))eE(p,o,typeof r=="function"?(d,m)=>{let b=[...l.slice(0,u),...m];return r(d,b)}:r,i,s);else if(s)Xw(p,o);else{let h=typeof r=="function"?r(p$(p,o),[...l.slice(0,u),...o]):r;Yw(p,o,h)}}if(a.length===0)c(e,0);else{let p=e;for(let u=0;u<a.length;u++){let h=a[u];if(p==null||typeof p!="object"||p===null)return;p=p[h],l[u]=h}p!=null&&c(p,a.length)}}function h$(e){if(e.length===0)return null;let t=new Map;for(let r of e){let n=Qw(r),i=t;for(let s=0;s<n.length;s++){let a=n[s];i.has(a)||i.set(a,new Map),i=i.get(a)}}return t}function m$(e,t){if(!t)return e;function r(n,i,s=0){if(!i||i.size===0||n===null||typeof n!="object")return n;if(n instanceof Date)return new Date(n.getTime());if(Array.isArray(n)){let o=[];for(let l=0;l<n.length;l++){let c=l.toString();i.has(c)||i.has("*")?o[l]=r(n[l],i.get(c)||i.get("*")):o[l]=n[l]}return o}let a=Object.create(Object.getPrototypeOf(n));for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i.has(o)||i.has("*")?a[o]=r(n[o],i.get(o)||i.get("*")):a[o]=n[o]);return a}return r(e,t)}function g$(e){if(typeof e!="string")throw new Error("Paths must be (non-empty) strings");if(e==="")throw new Error("Invalid redaction path ()");if(e.includes(".."))throw new Error(`Invalid redaction path (${e})`);if(e.includes(","))throw new Error(`Invalid redaction path (${e})`);let t=0,r=!1,n="";for(let i=0;i<e.length;i++){let s=e[i];if((s==='"'||s==="'")&&t>0)r?s===n&&(r=!1,n=""):(r=!0,n=s);else if(s==="["&&!r)t++;else if(s==="]"&&!r&&(t--,t<0))throw new Error(`Invalid redaction path (${e})`)}if(t!==0)throw new Error(`Invalid redaction path (${e})`)}function x$(e){if(!Array.isArray(e))throw new TypeError("paths must be an array");for(let t of e)g$(t)}function b$(e={}){let{paths:t=[],censor:r="[REDACTED]",serialize:n=JSON.stringify,strict:i=!0,remove:s=!1}=e;x$(t);let a=h$(t);return function(l){if(i&&(l===null||typeof l!="object")&&(l==null||typeof l!="object"))return n?n(l):l;let c=m$(l,a),p=l,u=r;return typeof r=="function"&&(u=r),f$(c,t,u,s),n===!1?(c.restore=function(){return gm(p)},c):typeof n=="function"?n(c):JSON.stringify(c)}}tE.exports=b$});var Na=_((gSe,nE)=>{"use strict";f();var y$=Symbol("pino.setLevel"),v$=Symbol("pino.getLevel"),_$=Symbol("pino.levelVal"),w$=Symbol("pino.levelComp"),E$=Symbol("pino.useLevelLabels"),D$=Symbol("pino.useOnlyCustomLevels"),S$=Symbol("pino.mixin"),k$=Symbol("pino.lsCache"),C$=Symbol("pino.chindings"),T$=Symbol("pino.asJson"),A$=Symbol("pino.write"),O$=Symbol("pino.redactFmt"),N$=Symbol("pino.time"),F$=Symbol("pino.timeSliceIndex"),I$=Symbol("pino.stream"),L$=Symbol("pino.stringify"),P$=Symbol("pino.stringifySafe"),R$=Symbol("pino.stringifiers"),M$=Symbol("pino.end"),q$=Symbol("pino.formatOpts"),j$=Symbol("pino.messageKey"),B$=Symbol("pino.errorKey"),$$=Symbol("pino.nestedKey"),z$=Symbol("pino.nestedKeyStr"),H$=Symbol("pino.mixinMergeStrategy"),U$=Symbol("pino.msgPrefix"),V$=Symbol("pino.wildcardFirst"),G$=Symbol.for("pino.serializers"),W$=Symbol.for("pino.formatters"),K$=Symbol.for("pino.hooks"),Z$=Symbol.for("pino.metadata");nE.exports={setLevelSym:y$,getLevelSym:v$,levelValSym:_$,levelCompSym:w$,useLevelLabelsSym:E$,mixinSym:S$,lsCacheSym:k$,chindingsSym:C$,asJsonSym:T$,writeSym:A$,serializersSym:G$,redactFmtSym:O$,timeSym:N$,timeSliceIndexSym:F$,streamSym:I$,stringifySym:L$,stringifySafeSym:P$,stringifiersSym:R$,endSym:M$,formatOptsSym:q$,messageKeySym:j$,errorKeySym:B$,nestedKeySym:$$,wildcardFirstSym:V$,needsMetadataGsym:Z$,useOnlyCustomLevelsSym:D$,formattersSym:W$,hooksSym:K$,nestedKeyStrSym:z$,mixinMergeStrategySym:H$,msgPrefixSym:U$}});var bm=_((bSe,oE)=>{"use strict";f();var iE=rE(),{redactFmtSym:J$,wildcardFirstSym:Bu}=Na(),xm=/[^.[\]]+|\[([^[\]]*?)\]/g,sE="[Redacted]",aE=!1;function Q$(e,t){let{paths:r,censor:n,remove:i}=Y$(e),s=r.reduce((l,c)=>{xm.lastIndex=0;let p=xm.exec(c),u=xm.exec(c),h=p[1]!==void 0?p[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):p[0];if(h==="*"&&(h=Bu),u===null)return l[h]=null,l;if(l[h]===null)return l;let{index:d}=u,m=`${c.substr(d,c.length-1)}`;return l[h]=l[h]||[],h!==Bu&&l[h].length===0&&l[h].push(...l[Bu]||[]),h===Bu&&Object.keys(l).forEach(function(b){l[b]&&l[b].push(m)}),l[h].push(m),l},{}),a={[J$]:iE({paths:r,censor:n,serialize:t,strict:aE,remove:i})},o=(...l)=>t(typeof n=="function"?n(...l):n);return[...Object.keys(s),...Object.getOwnPropertySymbols(s)].reduce((l,c)=>{if(s[c]===null)l[c]=p=>o(p,[c]);else{let p=typeof n=="function"?(u,h)=>n(u,[c,...h]):n;l[c]=iE({paths:s[c],censor:p,serialize:t,strict:aE,remove:i})}return l},a)}function Y$(e){if(Array.isArray(e))return e={paths:e,censor:sE},e;let{paths:t,censor:r=sE,remove:n}=e;if(Array.isArray(t)===!1)throw Error("pino \u2013 redact must contain an array of strings");return n===!0&&(r=void 0),{paths:t,censor:r,remove:n}}oE.exports=Q$});var uE=_((vSe,cE)=>{"use strict";f();var X$=()=>"",ez=()=>`,"time":${Date.now()}`,tz=()=>`,"time":${Math.round(Date.now()/1e3)}`,rz=()=>`,"time":"${new Date(Date.now()).toISOString()}"`,nz=1000000n,lE=1000000000n,iz=BigInt(Date.now())*nz,sz=process.hrtime.bigint(),az=()=>{let e=process.hrtime.bigint()-sz,t=iz+e,r=t/lE,n=t%lE,i=Number(r*1000n+n/1000000n),s=new Date(i),a=s.getUTCFullYear(),o=(s.getUTCMonth()+1).toString().padStart(2,"0"),l=s.getUTCDate().toString().padStart(2,"0"),c=s.getUTCHours().toString().padStart(2,"0"),p=s.getUTCMinutes().toString().padStart(2,"0"),u=s.getUTCSeconds().toString().padStart(2,"0");return`,"time":"${a}-${o}-${l}T${c}:${p}:${u}.${n.toString().padStart(9,"0")}Z"`};cE.exports={nullTime:X$,epochTime:ez,unixTime:tz,isoTime:rz,isoTimeNano:az}});var fE=_((wSe,pE)=>{"use strict";f();function oz(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}pE.exports=lz;function lz(e,t,r){var n=r&&r.stringify||oz,i=1;if(typeof e=="object"&&e!==null){var s=t.length+i;if(s===1)return e;var a=new Array(s);a[0]=n(e);for(var o=1;o<s;o++)a[o]=n(t[o]);return a.join(" ")}if(typeof e!="string")return e;var l=t.length;if(l===0)return e;for(var c="",p=1-i,u=-1,h=e&&e.length||0,d=0;d<h;){if(e.charCodeAt(d)===37&&d+1<h){switch(u=u>-1?u:0,e.charCodeAt(d+1)){case 100:case 102:if(p>=l||t[p]==null)break;u<d&&(c+=e.slice(u,d)),c+=Number(t[p]),u=d+2,d++;break;case 105:if(p>=l||t[p]==null)break;u<d&&(c+=e.slice(u,d)),c+=Math.floor(Number(t[p])),u=d+2,d++;break;case 79:case 111:case 106:if(p>=l||t[p]===void 0)break;u<d&&(c+=e.slice(u,d));var m=typeof t[p];if(m==="string"){c+="'"+t[p]+"'",u=d+2,d++;break}if(m==="function"){c+=t[p].name||"<anonymous>",u=d+2,d++;break}c+=n(t[p]),u=d+2,d++;break;case 115:if(p>=l)break;u<d&&(c+=e.slice(u,d)),c+=String(t[p]),u=d+2,d++;break;case 37:u<d&&(c+=e.slice(u,d)),c+="%",u=d+2,d++,p--;break}++p}++d}return u===-1?e:(u<h&&(c+=e.slice(u)),c)}});var vm=_((DSe,ym)=>{"use strict";f();if(typeof SharedArrayBuffer<"u"&&typeof Atomics<"u"){let t=function(r){if((r>0&&r<1/0)===!1)throw typeof r!="number"&&typeof r!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");Atomics.wait(e,0,0,Number(r))},e=new Int32Array(new SharedArrayBuffer(4));ym.exports=t}else{let e=function(t){if((t>0&&t<1/0)===!1)throw typeof t!="number"&&typeof t!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");let n=Date.now()+Number(t);for(;n>Date.now(););};ym.exports=e}});var vE=_((kSe,yE)=>{"use strict";f();var mt=X("fs"),cz=X("events"),uz=X("util").inherits,dE=X("path"),wm=vm(),pz=X("assert"),$u=100,zu=Buffer.allocUnsafe(0),fz=16*1024,hE="buffer",mE="utf8",[dz,hz]=(process.versions.node||"0.0").split(".").map(Number),mz=dz>=22&&hz>=7;function gE(e,t){t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;function r(s,a){if(s){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",s)}):t.emit("error",s);return}let o=t._reopening;t.fd=a,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),!t.destroyed&&(!t._writing&&t._len>t.minLength||t._flushPending?t._actualWrite():o&&process.nextTick(()=>t.emit("drain")))}let n=t.append?"a":"w",i=t.mode;if(t.sync)try{t.mkdir&&mt.mkdirSync(dE.dirname(e),{recursive:!0});let s=mt.openSync(e,n,i);r(null,s)}catch(s){throw r(s),s}else t.mkdir?mt.mkdir(dE.dirname(e),{recursive:!0},s=>{if(s)return r(s);mt.open(e,n,i,r)}):mt.open(e,n,i,r)}function mn(e){if(!(this instanceof mn))return new mn(e);let{fd:t,dest:r,minLength:n,maxLength:i,maxWrite:s,periodicFlush:a,sync:o,append:l=!0,mkdir:c,retryEAGAIN:p,fsync:u,contentMode:h,mode:d}=e||{};t=t||r,this._len=0,this.fd=-1,this._bufs=[],this._lens=[],this._writing=!1,this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._flushPending=!1,this._hwm=Math.max(n||0,16387),this.file=null,this.destroyed=!1,this.minLength=n||0,this.maxLength=i||0,this.maxWrite=s||fz,this._periodicFlush=a||0,this._periodicFlushTimer=void 0,this.sync=o||!1,this.writable=!0,this._fsync=u||!1,this.append=l||!1,this.mode=d,this.retryEAGAIN=p||(()=>!0),this.mkdir=c||!1;let m,b;if(h===hE)this._writingBuf=zu,this.write=bz,this.flush=vz,this.flushSync=wz,this._actualWrite=Dz,m=()=>mt.writeSync(this.fd,this._writingBuf),b=()=>mt.write(this.fd,this._writingBuf,this.release);else if(h===void 0||h===mE)this._writingBuf="",this.write=xz,this.flush=yz,this.flushSync=_z,this._actualWrite=Ez,m=()=>Buffer.isBuffer(this._writingBuf)?mt.writeSync(this.fd,this._writingBuf):mt.writeSync(this.fd,this._writingBuf,"utf8"),b=()=>Buffer.isBuffer(this._writingBuf)?mt.write(this.fd,this._writingBuf,this.release):mt.write(this.fd,this._writingBuf,"utf8",this.release);else throw new Error(`SonicBoom supports "${mE}" and "${hE}", but passed ${h}`);if(typeof t=="number")this.fd=t,process.nextTick(()=>this.emit("ready"));else if(typeof t=="string")gE(t,this);else throw new Error("SonicBoom supports only file descriptors and files");if(this.minLength>=this.maxWrite)throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);this.release=(v,w)=>{if(v){if((v.code==="EAGAIN"||v.code==="EBUSY")&&this.retryEAGAIN(v,this._writingBuf.length,this._len-this._writingBuf.length))if(this.sync)try{wm($u),this.release(void 0,0)}catch(O){this.release(O)}else setTimeout(b,$u);else this._writing=!1,this.emit("error",v);return}this.emit("write",w);let T=_m(this._writingBuf,this._len,w);if(this._len=T.len,this._writingBuf=T.writingBuf,this._writingBuf.length){if(!this.sync){b();return}try{do{let O=m(),P=_m(this._writingBuf,this._len,O);this._len=P.len,this._writingBuf=P.writingBuf}while(this._writingBuf.length)}catch(O){this.release(O);return}}this._fsync&&mt.fsyncSync(this.fd);let S=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):S>this.minLength?this._actualWrite():this._ending?S>0?this._actualWrite():(this._writing=!1,Hu(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(gz,this)):this.emit("drain"))},this.on("newListener",function(v){v==="drain"&&(this._asyncDrainScheduled=!1)}),this._periodicFlush!==0&&(this._periodicFlushTimer=setInterval(()=>this.flush(null),this._periodicFlush),this._periodicFlushTimer.unref())}function _m(e,t,r){return typeof e=="string"&&(e=Buffer.from(e)),t=Math.max(t-r,0),e=e.subarray(r),{writingBuf:e,len:t}}function gz(e){e.listenerCount("drain")>0&&(e._asyncDrainScheduled=!1,e.emit("drain"))}uz(mn,cz);function xE(e,t){return e.length===0?zu:e.length===1?e[0]:Buffer.concat(e,t)}function xz(e){if(this.destroyed)throw new Error("SonicBoom destroyed");e=""+e;let t=Buffer.byteLength(e),r=this._len+t,n=this._bufs;return this.maxLength&&r>this.maxLength?(this.emit("drop",e),this._len<this._hwm):(n.length===0||Buffer.byteLength(n[n.length-1])+t>this.maxWrite?n.push(e):n[n.length-1]+=e,this._len=r,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len<this._hwm)}function bz(e){if(this.destroyed)throw new Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs,n=this._lens;return this.maxLength&&t>this.maxLength?(this.emit("drop",e),this._len<this._hwm):(r.length===0||n[n.length-1]+e.length>this.maxWrite?(r.push([e]),n.push(e.length)):(r[r.length-1].push(e),n[n.length-1]+=e.length),this._len=t,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len<this._hwm)}function bE(e){this._flushPending=!0;let t=()=>{if(this._fsync)this._flushPending=!1,e();else try{mt.fsync(this.fd,n=>{this._flushPending=!1,e(n)})}catch(n){e(n)}this.off("error",r)},r=n=>{this._flushPending=!1,e(n),this.off("drain",t)};this.once("drain",t),this.once("error",r)}function yz(e){if(e!=null&&typeof e!="function")throw new Error("flush cb must be a function");if(this.destroyed){let t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}e&&bE.call(this,e),!this._writing&&(this._bufs.length===0&&this._bufs.push(""),this._actualWrite())}function vz(e){if(e!=null&&typeof e!="function")throw new Error("flush cb must be a function");if(this.destroyed){let t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}e&&bE.call(this,e),!this._writing&&(this._bufs.length===0&&(this._bufs.push([]),this._lens.push(0)),this._actualWrite())}mn.prototype.reopen=function(e){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(e&&(this.file=e),this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&mt.close(t,r=>{if(r)return this.emit("error",r)})}),gE(this.file,this)};mn.prototype.end=function(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}this._ending||(this._ending=!0,!this._writing&&(this._len>0&&this.fd>=0?this._actualWrite():Hu(this)))};function _z(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");let e="";for(;this._bufs.length||e.length;){e.length<=0&&(e=this._bufs[0]);try{let t=Buffer.isBuffer(e)?mt.writeSync(this.fd,e):mt.writeSync(this.fd,e,"utf8"),r=_m(e,this._len,t);e=r.writingBuf,this._len=r.len,e.length<=0&&this._bufs.shift()}catch(t){if((t.code==="EAGAIN"||t.code==="EBUSY")&&!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;wm($u)}}try{mt.fsyncSync(this.fd)}catch{}}function wz(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift([this._writingBuf]),this._writingBuf=zu);let e=zu;for(;this._bufs.length||e.length;){e.length<=0&&(e=xE(this._bufs[0],this._lens[0]));try{let t=mt.writeSync(this.fd,e);e=e.subarray(t),this._len=Math.max(this._len-t,0),e.length<=0&&(this._bufs.shift(),this._lens.shift())}catch(t){if((t.code==="EAGAIN"||t.code==="EBUSY")&&!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;wm($u)}}}mn.prototype.destroy=function(){this.destroyed||Hu(this)};function Ez(){let e=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:this._bufs.shift()||"",this.sync)try{let t=Buffer.isBuffer(this._writingBuf)?mt.writeSync(this.fd,this._writingBuf):mt.writeSync(this.fd,this._writingBuf,"utf8");e(null,t)}catch(t){e(t)}else mt.write(this.fd,this._writingBuf,e)}function Dz(){let e=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:xE(this._bufs.shift(),this._lens.shift()),this.sync)try{let t=mt.writeSync(this.fd,this._writingBuf);e(null,t)}catch(t){e(t)}else mz&&(this._writingBuf=Buffer.from(this._writingBuf)),mt.write(this.fd,this._writingBuf,e)}function Hu(e){if(e.fd===-1){e.once("ready",Hu.bind(null,e));return}e._periodicFlushTimer!==void 0&&clearInterval(e._periodicFlushTimer),e.destroyed=!0,e._bufs=[],e._lens=[],pz(typeof e.fd=="number",`sonic.fd must be a number, got ${typeof e.fd}`);try{mt.fsync(e.fd,t)}catch{}function t(){e.fd!==1&&e.fd!==2?mt.close(e.fd,r):r()}function r(n){if(n){e.emit("error",n);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}}mn.SonicBoom=mn;mn.default=mn;yE.exports=mn});var Em=_((TSe,SE)=>{"use strict";f();var gn={exit:[],beforeExit:[]},_E={exit:Cz,beforeExit:Tz},Fa;function Sz(){Fa===void 0&&(Fa=new FinalizationRegistry(Az))}function kz(e){gn[e].length>0||process.on(e,_E[e])}function wE(e){gn[e].length>0||(process.removeListener(e,_E[e]),gn.exit.length===0&&gn.beforeExit.length===0&&(Fa=void 0))}function Cz(){EE("exit")}function Tz(){EE("beforeExit")}function EE(e){for(let t of gn[e]){let r=t.deref(),n=t.fn;r!==void 0&&n(r,e)}gn[e]=[]}function Az(e){for(let t of["exit","beforeExit"]){let r=gn[t].indexOf(e);gn[t].splice(r,r+1),wE(t)}}function DE(e,t,r){if(t===void 0)throw new Error("the object can't be undefined");kz(e);let n=new WeakRef(t);n.fn=r,Sz(),Fa.register(t,n),gn[e].push(n)}function Oz(e,t){DE("exit",e,t)}function Nz(e,t){DE("beforeExit",e,t)}function Fz(e){if(Fa!==void 0){Fa.unregister(e);for(let t of["exit","beforeExit"])gn[t]=gn[t].filter(r=>{let n=r.deref();return n&&n!==e}),wE(t)}}SE.exports={register:Oz,registerBeforeExit:Nz,unregister:Fz}});var kE=_((OSe,Iz)=>{Iz.exports={name:"thread-stream",version:"4.2.0",description:"A streaming way to send data to a Node.js Worker Thread",main:"index.js",types:"index.d.ts",engines:{node:">=20"},dependencies:{"real-require":"^1.0.0"},devDependencies:{"@types/node":"^25.0.2","@yao-pkg/pkg":"^6.0.0",borp:"^1.0.0",desm:"^1.3.0",eslint:"^9.39.1",fastbench:"^1.0.1",neostandard:"^0.13.0","pino-elasticsearch":"^9.0.0","sonic-boom":"^5.0.0","ts-node":"^10.8.0",typescript:"~5.7.3"},scripts:{build:"tsc --noEmit",lint:"eslint",test:'npm run lint && npm run build && npm run transpile && borp --pattern "test/*.test.{js,mjs}"',"test:ci":'npm run lint && npm run transpile && borp --pattern "test/*.test.{js,mjs}"',"test:yarn":'npm run transpile && borp --pattern "test/*.test.js"',transpile:"sh ./test/ts/transpile.sh"},repository:{type:"git",url:"git+https://github.com/mcollina/thread-stream.git"},keywords:["worker","thread","threads","stream"],author:"Matteo Collina <hello@matteocollina.com>",license:"MIT",bugs:{url:"https://github.com/mcollina/thread-stream/issues"},homepage:"https://github.com/mcollina/thread-stream#readme"}});var TE=_((NSe,CE)=>{"use strict";f();function Lz(e,t,r,n,i){let s=n===1/0?1/0:Date.now()+n,a=()=>{let o=Atomics.load(e,t);if(o===r){i(null,"ok");return}if(s!==1/0&&Date.now()>s){i(null,"timed-out");return}let l=s===1/0?1e4:Math.min(1e4,Math.max(1,s-Date.now())),c=Atomics.waitAsync(e,t,o,l);c.async?c.value.then(a):setImmediate(a)};a()}function Pz(e,t,r,n,i){let s=n===1/0?1/0:Date.now()+n,a=()=>{if(Atomics.load(e,t)!==r){i(null,"ok");return}if(s!==1/0&&Date.now()>s){i(null,"timed-out");return}let l=s===1/0?1e4:Math.min(1e4,Math.max(1,s-Date.now())),c=Atomics.waitAsync(e,t,r,l);c.async?c.value.then(p=>{if(p==="ok"){i(null,"ok");return}a()}):setImmediate(a)};a()}CE.exports={wait:Lz,waitDiff:Pz}});var OE=_((ISe,AE)=>{"use strict";f();AE.exports={WRITE_INDEX:4,READ_INDEX:8,SEQ_INDEX:2}});var zE=_((PSe,$E)=>{"use strict";f();var{version:Rz}=kE(),{EventEmitter:Mz}=X("events"),{Worker:qz}=X("worker_threads"),{join:jz}=X("path"),{pathToFileURL:Bz}=X("url"),{wait:$z}=TE(),{WRITE_INDEX:oi,READ_INDEX:xs,SEQ_INDEX:Dm}=OE(),zz=X("buffer"),Hz=X("assert"),V=Symbol("kImpl"),Uz=zz.constants.MAX_STRING_LENGTH;function NE(){}function Tm(e,t){Atomics.add(e[V].state,Dm,1),t(),Atomics.add(e[V].state,Dm,1),Atomics.notify(e[V].state,Dm)}function FE(e){Tm(e,()=>{Atomics.store(e[V].state,xs,0),Atomics.store(e[V].state,oi,0)})}var ul=class{constructor(t){this._value=t}deref(){return this._value}},Uu=class{register(){}unregister(){}},Vz=process.env.NODE_V8_COVERAGE?Uu:global.FinalizationRegistry||Uu,Gz=process.env.NODE_V8_COVERAGE?ul:global.WeakRef||ul,IE=new Vz(e=>{e.exited||e.terminate()});function Wz(e,t){let{filename:r,workerData:n}=t,s=("__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{})["thread-stream-worker"]||jz(__dirname,"lib","worker.js"),a=new qz(s,{...t.workerOpts,name:t.workerOpts?.name||"thread-stream",trackUnmanagedFds:!1,workerData:{filename:r.indexOf("file://")===0?r:Bz(r).href,dataBuf:e[V].dataBuf,stateBuf:e[V].stateBuf,workerData:{$context:{threadStreamVersion:Rz},...n}}});return a.stream=new ul(e),a.on("message",Kz),a.on("exit",RE),IE.register(e,a),a}function LE(e){Hz(!e[V].sync),e[V].needDrain&&(e[V].needDrain=!1,e.emit("drain"))}function PE(e){for(;;){let t=Atomics.load(e[V].state,oi),r=e[V].data.length-t;if(r>0){if(e[V].bufLen===0){e[V].flushing=!1,e[V].ending?Am(e):e[V].needDrain&&process.nextTick(LE,e);return}jE(e,r,NE);continue}if(r===0){if(t===0&&e[V].bufLen===0)return;Vu(e,()=>{e.destroyed||(FE(e),PE(e))});return}Qr(e,new Error("overwritten"));return}}function Kz(e){let t=this.stream.deref();if(t===void 0){this.exited=!0,this.terminate();return}if(e?.code!=null)switch(e.code){case"READY":this.stream=new Gz(t),Vu(t,()=>{t[V].ready=!0,t.emit("ready")});break;case"ERROR":Qr(t,e.err);break;case"EVENT":Array.isArray(e.args)?t.emit(e.name,...e.args):t.emit(e.name,e.args);break;case"FLUSHED":{if(e.context!=="thread-stream"){Qr(t,new Error("this should not happen: "+e.code));break}let r=t[V].flushCallbacks.get(e.id);r&&(t[V].flushCallbacks.delete(e.id),process.nextTick(r));break}case"WARNING":process.emitWarning(e.err);break;default:Qr(t,new Error("this should not happen: "+e.code))}}function RE(e){let t=this.stream.deref();t!==void 0&&(IE.unregister(t),t.worker.exited=!0,t.worker.off("exit",RE),Qr(t,e!==0?new Error("the worker thread exited"):null))}var km=class extends Mz{constructor(t={}){if(super(),t.bufferSize<4)throw new Error("bufferSize must at least fit a 4-byte utf-8 char");this[V]={},this[V].stateBuf=new SharedArrayBuffer(128),this[V].state=new Int32Array(this[V].stateBuf),this[V].dataBuf=new SharedArrayBuffer(t.bufferSize||4*1024*1024),this[V].data=Buffer.from(this[V].dataBuf),this[V].sync=t.sync||!1,this[V].ending=!1,this[V].ended=!1,this[V].needDrain=!1,this[V].destroyed=!1,this[V].flushing=!1,this[V].ready=!1,this[V].finished=!1,this[V].errored=null,this[V].closed=!1,this[V].buf=[],this[V].bufHead=0,this[V].bufLen=0,this[V].flushCallbacks=new Map,this[V].nextFlushId=0,this.worker=Wz(this,t),this.on("message",(r,n)=>{this.worker.postMessage(r,n)})}write(t){let r=Buffer.isBuffer(t)?t:Buffer.from(t);if(this[V].destroyed)return Cm(this,new Error("the worker has exited")),!1;if(this[V].ending)return Cm(this,new Error("the worker is ending")),!1;if(this[V].flushing&&this[V].bufLen+r.length>=Uz)try{Sm(this),this[V].flushing=!0}catch(n){return Qr(this,n),!1}if(this[V].buf.push(r),this[V].bufLen+=r.length,this[V].sync)try{return Sm(this),!0}catch(n){return Qr(this,n),!1}return this[V].flushing||(this[V].flushing=!0,setImmediate(PE,this)),this[V].needDrain=this[V].data.length-this[V].bufLen-Atomics.load(this[V].state,oi)<=0,!this[V].needDrain}end(){this[V].destroyed||(this[V].ending=!0,Am(this))}flush(t){t=typeof t=="function"?t:NE,ME(this,r=>{if(r){process.nextTick(t,r);return}qE(this,t)})}flushSync(){this[V].destroyed||(Sm(this),BE(this))}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[V].ready}get destroyed(){return this[V].destroyed}get closed(){return this[V].closed}get writable(){return!this[V].destroyed&&!this[V].ending}get writableEnded(){return this[V].ending}get writableFinished(){return this[V].finished}get writableNeedDrain(){return this[V].needDrain}get writableObjectMode(){return!1}get writableErrored(){return this[V].errored}};function ME(e,t){if(e[V].destroyed){process.nextTick(t,new Error("the worker has exited"));return}if(!e[V].sync&&(e[V].flushing||e[V].bufLen>0)){setImmediate(ME,e,t);return}Vu(e,t)}function Vu(e,t){let r=Atomics.load(e[V].state,oi);$z(e[V].state,xs,r,1/0,(n,i)=>{if(n){Qr(e,n),t(n);return}if(i!=="ok"){Vu(e,t);return}t()})}function qE(e,t){if(e[V].destroyed){process.nextTick(t,new Error("the worker has exited"));return}if(!e[V].ready){let n=()=>{s(),qE(e,t)},i=()=>{s(),process.nextTick(t,new Error("the worker has exited"))},s=()=>{e.off("ready",n),e.off("close",i)};e.once("ready",n),e.once("close",i);return}let r=++e[V].nextFlushId;e[V].flushCallbacks.set(r,t);try{e.worker.postMessage({code:"FLUSH",context:"thread-stream",id:r})}catch(n){e[V].flushCallbacks.delete(r),Qr(e,n),process.nextTick(t,n)}}function Zz(e,t){let r=e[V].flushCallbacks;if(r.size===0)return;let n=t||new Error("the worker has exited");for(let i of r.values())process.nextTick(i,n);r.clear()}function Cm(e,t){setImmediate(()=>{e.emit("error",t)})}function Qr(e,t){e[V].destroyed||(e[V].destroyed=!0,Zz(e,t),t&&(e[V].errored=t,Cm(e,t)),e.worker.exited?setImmediate(()=>{e[V].closed=!0,e.emit("close")}):e.worker.terminate().catch(()=>{}).then(()=>{e[V].closed=!0,e.emit("close")}))}function jE(e,t,r){let i=Atomics.load(e[V].state,oi),s=t;for(;s>0&&e[V].bufLen!==0;){let a=e[V].bufHead,o=e[V].buf[a];if(o.length<=s){o.copy(e[V].data,i),i+=o.length,s-=o.length,e[V].bufLen-=o.length,e[V].bufHead=a+1,e[V].bufHead===e[V].buf.length?(e[V].buf.length=0,e[V].bufHead=0):e[V].bufHead>=1024&&e[V].bufHead*2>=e[V].buf.length&&(e[V].buf.splice(0,e[V].bufHead),e[V].bufHead=0);continue}o.copy(e[V].data,i,0,s),e[V].buf[a]=o.subarray(s),e[V].bufLen-=s,i+=s,s=0}return Tm(e,()=>{Atomics.store(e[V].state,oi,i)}),r(),!0}function Am(e){if(!(e[V].ended||!e[V].ending||e[V].flushing)){e[V].ended=!0;try{e.flushSync();let t=Atomics.load(e[V].state,xs);Tm(e,()=>{Atomics.store(e[V].state,oi,-1)});let r=0;for(;t!==-1;){if(Atomics.wait(e[V].state,xs,t,1e3),t=Atomics.load(e[V].state,xs),t===-2){Qr(e,new Error("end() failed"));return}if(++r===10){Qr(e,new Error("end() took too long (10s)"));return}}process.nextTick(()=>{e[V].finished=!0,e.emit("finish")})}catch(t){Qr(e,t)}}}function Sm(e){let t=()=>{e[V].ending?Am(e):e[V].needDrain&&process.nextTick(LE,e)};for(e[V].flushing=!1;e[V].bufLen!==0;){let r=Atomics.load(e[V].state,oi),n=e[V].data.length-r;if(n===0){BE(e),FE(e);continue}else if(n<0)throw new Error("overwritten");jE(e,n,t)}}function BE(e){if(e[V].flushing)throw new Error("unable to flush while flushing");let t=Atomics.load(e[V].state,oi),r=0;for(;;){let n=Atomics.load(e[V].state,xs);if(n===-2)throw Error("_flushSync failed");if(n!==t)Atomics.wait(e[V].state,xs,n,1e3);else break;if(++r===10)throw new Error("_flushSync took too long (10s)")}}$E.exports=km});var Fm=_((MSe,VE)=>{"use strict";f();var{createRequire:Jz}=X("module"),{existsSync:Qz}=X("node:fs"),Yz=mm(),{join:Om,isAbsolute:UE,sep:Xz}=X("node:path"),{fileURLToPath:eH}=X("node:url"),tH=vm(),Nm=Em(),rH=zE();function nH(e){Nm.register(e,lH),Nm.registerBeforeExit(e,cH),e.on("close",function(){Nm.unregister(e)})}function iH(){let e=process.execArgv;for(let t=0;t<e.length;t++){let r=e[t];if(r==="--import"||r==="--require"||r==="-r"||r.startsWith("--import=")||r.startsWith("--require=")||r.startsWith("-r="))return!0}return!1}function sH(e){let t=e.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g);if(!t)return e;let r=[],n=!1;for(let i=0;i<t.length;i++){let s=t[i];if(s==="--require"||s==="-r"||s==="--import"){let a=t[i+1];if(a&&HE(a)){n=!0,i++;continue}r.push(s),a&&(r.push(a),i++);continue}if(s.startsWith("--require=")||s.startsWith("-r=")||s.startsWith("--import=")){let a=s.slice(s.indexOf("=")+1);if(HE(a)){n=!0;continue}}r.push(s)}return n?r.join(" "):e}function HE(e){let t=aH(e);if(!t)return!1;let r=t;if(r.startsWith("file://"))try{r=eH(r)}catch{return!1}return UE(r)&&!Qz(r)}function aH(e){let t=e[0],r=e[e.length-1];return t==='"'&&r==='"'||t==="'"&&r==="'"?e.slice(1,-1):e}function oH(e,t,r,n,i){if(!r.execArgv&&iH()&&X.main===void 0&&(r={...r,execArgv:[]}),!r.env&&process.env.NODE_OPTIONS){let l=sH(process.env.NODE_OPTIONS);l!==process.env.NODE_OPTIONS&&(r={...r,env:{...process.env,NODE_OPTIONS:l}})}r={...r,name:i};let s=new rH({filename:e,workerData:t,workerOpts:r,sync:n});s.on("ready",a),s.on("close",function(){process.removeListener("exit",o)}),process.on("exit",o);function a(){process.removeListener("exit",o),s.unref(),r.autoEnd!==!1&&nH(s)}function o(){s.closed||(s.flushSync(),tH(100),s.end())}return s}function lH(e){e.ref(),e.flushSync(),e.end(),e.once("close",function(){e.unref()})}function cH(e){e.flushSync()}function uH(e){let{pipeline:t,targets:r,levels:n,dedupe:i,worker:s={},caller:a=Yz(),sync:o=!1}=e,l={...e.options},c=typeof a=="string"?[a]:a,p=typeof globalThis=="object"&&Object.prototype.hasOwnProperty.call(globalThis,"__bundlerPathsOverrides")&&globalThis.__bundlerPathsOverrides&&typeof globalThis.__bundlerPathsOverrides=="object"?globalThis.__bundlerPathsOverrides:Object.create(null),u=e.target;if(u&&r)throw new Error("only one of target or targets can be specified");r?(u=p["pino-worker"]||Om(__dirname,"worker.js"),l.targets=r.filter(m=>m.target).map(m=>({...m,target:d(m.target)})),l.pipelines=r.filter(m=>m.pipeline).map(m=>m.pipeline.map(b=>({...b,level:m.level,target:d(b.target)})))):t&&(u=p["pino-worker"]||Om(__dirname,"worker.js"),l.pipelines=[t.map(m=>({...m,target:d(m.target)}))]),n&&(l.levels=n),i&&(l.dedupe=i),l.pinoWillSendConfig=!0;let h=r||t?"pino.transport":u;return oH(d(u),l,s,o,h);function d(m){if(m=p[m]||m,UE(m)||m.indexOf("file://")===0)return m;if(m==="pino/file")return Om(__dirname,"..","file.js");let b;for(let v of c)try{let w=v==="node:repl"?process.cwd()+Xz:v;b=Jz(w).resolve(m);break}catch{continue}if(!b)throw new Error(`unable to determine transport target for "${m}"`);return b}}VE.exports=uH});var Ku=_((BSe,i1)=>{"use strict";f();var pH=X("node:diagnostics_channel"),GE=fE(),{mapHttpRequest:fH,mapHttpResponse:dH}=hm(),Lm=vE(),WE=Em(),{lsCacheSym:hH,chindingsSym:YE,writeSym:KE,serializersSym:XE,formatOptsSym:ZE,endSym:mH,stringifiersSym:e1,stringifySym:t1,stringifySafeSym:Pm,wildcardFirstSym:r1,nestedKeySym:gH,formattersSym:n1,messageKeySym:xH,errorKeySym:bH,nestedKeyStrSym:yH,msgPrefixSym:Gu}=Na(),{isMainThread:vH}=X("worker_threads"),_H=Fm(),[wH]=process.versions.node.split(".").map(e=>Number(e)),JE=pH.tracingChannel("pino_asJson"),Im=wH>=25?e=>JSON.stringify(e):DH;function Ia(){}function EH(e,t){if(!t)return r;return function(...i){t.call(this,i,r,e)};function r(n,...i){if(typeof n=="object"){let s=n;n!==null&&(n.method&&n.headers&&n.socket?n=fH(n):typeof n.setHeader=="function"&&(n=dH(n)));let a;s===null&&i.length===0?a=[null]:(s=i.shift(),a=i),typeof this[Gu]=="string"&&s!==void 0&&s!==null&&(s=this[Gu]+s),this[KE](n,GE(s,a,this[ZE]),e)}else{let s=n===void 0?i.shift():n;typeof this[Gu]=="string"&&s!==void 0&&s!==null&&(s=this[Gu]+s),this[KE](null,GE(s,i,this[ZE]),e)}}}function DH(e){let t="",r=0,n=!1,i=255,s=e.length;if(s>100)return JSON.stringify(e);for(var a=0;a<s&&i>=32;a++)i=e.charCodeAt(a),(i===34||i===92)&&(t+=e.slice(r,a)+"\\",r=a,n=!0);return n?t+=e.slice(r):t=e,i<32?JSON.stringify(e):'"'+t+'"'}function SH(e,t,r,n){if(JE.hasSubscribers===!1)return QE.call(this,e,t,r,n);let i={instance:this,arguments};return JE.traceSync(QE,i,this,e,t,r,n)}function QE(e,t,r,n){let i=this[t1],s=this[Pm],a=this[e1],o=this[mH],l=this[YE],c=this[XE],p=this[n1],u=this[xH],h=this[bH],d=this[hH][r]+n;d=d+l;let m;p.log&&(e=p.log(e));let b=a[r1],v="";for(let T in e)if(m=e[T],Object.prototype.hasOwnProperty.call(e,T)&&m!==void 0){c[T]?m=c[T](m):T===h&&c.err&&(m=c.err(m));let S=a[T]||b;switch(typeof m){case"undefined":case"function":continue;case"number":Number.isFinite(m)===!1&&(m=null);case"boolean":S&&(m=S(m));break;case"string":m=(S||Im)(m);break;default:m=(S||i)(m,s)}if(m===void 0)continue;let O=Im(T);v+=","+O+":"+m}let w="";if(t!==void 0){m=c[u]?c[u](t):t;let T=a[u]||b;switch(typeof m){case"function":break;case"number":Number.isFinite(m)===!1&&(m=null);case"boolean":T&&(m=T(m)),w=',"'+u+'":'+m;break;case"string":m=(T||Im)(m),w=',"'+u+'":'+m;break;default:m=(T||i)(m,s),w=',"'+u+'":'+m}}return this[gH]&&v?d+this[yH]+v.slice(1)+"}"+w+o:d+v+w+o}function kH(e,t){let r,n=e[YE],i=e[t1],s=e[Pm],a=e[e1],o=a[r1],l=e[XE],c=e[n1].bindings;t=c(t);for(let p in t)if(r=t[p],((p.length<5||p!=="level"&&p!=="serializers"&&p!=="formatters"&&p!=="customLevels")&&t.hasOwnProperty(p)&&r!==void 0)===!0){if(r=l[p]?l[p](r):r,r=(a[p]||o||i)(r,s),r===void 0)continue;n+=',"'+p+'":'+r}return n}function CH(e){return e.write!==e.constructor.prototype.write}function Wu(e){let t=new Lm(e);return t.on("error",r),!e.sync&&vH&&(WE.register(t,TH),t.on("close",function(){WE.unregister(t)})),t;function r(n){if(n.code==="EPIPE"){t.write=Ia,t.end=Ia,t.flushSync=Ia,t.destroy=Ia;return}t.removeListener("error",r),t.emit("error",n)}}function TH(e,t){e.destroyed||(t==="beforeExit"?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}function AH(e){return function(r,n,i={},s){if(typeof i=="string")s=Wu({dest:i}),i={};else if(typeof s=="string"){if(i&&i.transport)throw Error("only one of option.transport or stream can be specified");s=Wu({dest:s})}else if(i instanceof Lm||i.writable||i._writableState)s=i,i={};else if(i.transport){if(i.transport instanceof Lm||i.transport.writable||i.transport._writableState)throw Error("option.transport do not allow stream, please pass to option directly. e.g. pino(transport)");if(i.transport.targets&&i.transport.targets.length&&i.formatters&&typeof i.formatters.level=="function")throw Error("option.transport.targets do not allow custom level formatters");let l;i.customLevels&&(l=i.useOnlyCustomLevels?i.customLevels:Object.assign({},i.levels,i.customLevels)),s=_H({caller:n,...i.transport,levels:l})}if(i=Object.assign({},e,i),i.serializers=Object.assign({},e.serializers,i.serializers),i.formatters=Object.assign({},e.formatters,i.formatters),i.prettyPrint)throw new Error("prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)");let{enabled:a,onChild:o}=i;return a===!1&&(i.level="silent"),o||(i.onChild=Ia),s||(CH(process.stdout)?s=process.stdout:s=Wu({fd:process.stdout.fd||1})),{opts:i,stream:s}}}function OH(e,t){try{return JSON.stringify(e)}catch{try{return(t||this[Pm])(e)}catch{return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function NH(e,t,r){return{level:e,bindings:t,log:r}}function FH(e){let t=Number(e);return typeof e=="string"&&Number.isFinite(t)?t:e===void 0?1:e}i1.exports={noop:Ia,buildSafeSonicBoom:Wu,asChindings:kH,asJson:SH,genLog:EH,createArgsNormalizer:AH,stringify:OH,buildFormatters:NH,normalizeDestFileDescriptor:FH}});var Zu=_((zSe,s1)=>{f();var IH={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},LH={ASC:"ASC",DESC:"DESC"};s1.exports={DEFAULT_LEVELS:IH,SORTING_ORDER:LH}});var qm=_((USe,c1)=>{"use strict";f();var{lsCacheSym:PH,levelValSym:Rm,useOnlyCustomLevelsSym:RH,streamSym:MH,formattersSym:qH,hooksSym:jH,levelCompSym:a1}=Na(),{noop:BH,genLog:bs}=Ku(),{DEFAULT_LEVELS:Rn,SORTING_ORDER:o1}=Zu(),l1={fatal:e=>{let t=bs(Rn.fatal,e);return function(...r){let n=this[MH];if(t.call(this,...r),typeof n.flushSync=="function")try{n.flushSync()}catch{}}},error:e=>bs(Rn.error,e),warn:e=>bs(Rn.warn,e),info:e=>bs(Rn.info,e),debug:e=>bs(Rn.debug,e),trace:e=>bs(Rn.trace,e)},Mm=Object.keys(Rn).reduce((e,t)=>(e[Rn[t]]=t,e),{}),$H=Object.keys(Mm).reduce((e,t)=>(e[t]='{"level":'+Number(t),e),{});function zH(e){let t=e[qH].level,{labels:r}=e.levels,n={};for(let i in r){let s=t(r[i],Number(i));n[i]=JSON.stringify(s).slice(0,-1)}return e[PH]=n,e}function HH(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function UH(e){let{labels:t,values:r}=this.levels;if(typeof e=="number"){if(t[e]===void 0)throw Error("unknown level value"+e);e=t[e]}if(r[e]===void 0)throw Error("unknown level "+e);let n=this[Rm],i=this[Rm]=r[e],s=this[RH],a=this[a1],o=this[jH].logMethod;for(let l in r){if(a(r[l],i)===!1){this[l]=BH;continue}this[l]=HH(l,s)?l1[l](o):bs(r[l],o)}this.emit("level-change",e,i,t[n],n,this)}function VH(e){let{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""}function GH(e){let{values:t}=this.levels,r=t[e];return r!==void 0&&this[a1](r,this[Rm])}function WH(e,t,r){return e===o1.DESC?t<=r:t>=r}function KH(e){return typeof e=="string"?WH.bind(null,e):e}function ZH(e=null,t=!1){let r=e?Object.keys(e).reduce((s,a)=>(s[e[a]]=a,s),{}):null,n=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:Mm,r),i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:Rn,e);return{labels:n,values:i}}function JH(e,t,r){if(typeof e=="number"){if(![].concat(Object.keys(t||{}).map(s=>t[s]),r?[]:Object.keys(Mm).map(s=>+s),1/0).includes(e))throw Error(`default level:${e} must be included in custom levels`);return}let n=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:Rn,t);if(!(e in n))throw Error(`default level:${e} must be included in custom levels`)}function QH(e,t){let{labels:r,values:n}=e;for(let i in t){if(i in n)throw Error("levels cannot be overridden");if(t[i]in r)throw Error("pre-existing level values cannot be used for new levels")}}function YH(e){if(typeof e!="function"&&!(typeof e=="string"&&Object.values(o1).includes(e)))throw new Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}c1.exports={initialLsCache:$H,genLsCache:zH,levelMethods:l1,getLevel:VH,setLevel:UH,isLevelEnabled:GH,mappings:ZH,assertNoLevelCollisions:QH,assertDefaultLevelFound:JH,genLevelComparison:KH,assertLevelComparison:YH}});var jm=_((GSe,u1)=>{"use strict";f();u1.exports={version:"10.3.1"}});var b1=_((ZSe,x1)=>{"use strict";f();var{EventEmitter:XH}=X("node:events"),{lsCacheSym:eU,levelValSym:tU,setLevelSym:$m,getLevelSym:p1,chindingsSym:Qu,mixinSym:rU,asJsonSym:d1,writeSym:nU,mixinMergeStrategySym:iU,timeSym:sU,timeSliceIndexSym:aU,streamSym:h1,serializersSym:ys,formattersSym:pl,errorKeySym:oU,messageKeySym:lU,useOnlyCustomLevelsSym:cU,needsMetadataGsym:uU,redactFmtSym:pU,stringifySym:fU,formatOptsSym:dU,stringifiersSym:hU,msgPrefixSym:zm,hooksSym:mU}=Na(),{getLevel:gU,setLevel:xU,isLevelEnabled:bU,mappings:yU,initialLsCache:vU,genLsCache:_U,assertNoLevelCollisions:wU}=qm(),{asChindings:Hm,asJson:EU,buildFormatters:Bm,stringify:f1,noop:m1}=Ku(),{version:DU}=jm(),SU=bm(),kU=class{},g1={constructor:kU,child:CU,bindings:TU,setBindings:AU,flush:FU,isLevelEnabled:bU,version:DU,get level(){return this[p1]()},set level(e){this[$m](e)},get levelVal(){return this[tU]},set levelVal(e){throw Error("levelVal is read-only")},get msgPrefix(){return this[zm]},get[Symbol.toStringTag](){return"Pino"},[eU]:vU,[nU]:NU,[d1]:EU,[p1]:gU,[$m]:xU};Object.setPrototypeOf(g1,XH.prototype);x1.exports=function(){return Object.create(g1)};var Ju=e=>e;function CU(e,t){if(!e)throw Error("missing bindings for child Pino");let r=this[ys],n=this[pl],i=Object.create(this);if(t==null)return i[pl].bindings!==Ju&&(i[pl]=Bm(n.level,Ju,n.log)),i[Qu]=Hm(i,e),this.onChild!==m1&&this.onChild(i),i;if(t.hasOwnProperty("serializers")===!0){i[ys]=Object.create(null);for(let c in r)i[ys][c]=r[c];let o=Object.getOwnPropertySymbols(r);for(var s=0;s<o.length;s++){let c=o[s];i[ys][c]=r[c]}for(let c in t.serializers)i[ys][c]=t.serializers[c];let l=Object.getOwnPropertySymbols(t.serializers);for(var a=0;a<l.length;a++){let c=l[a];i[ys][c]=t.serializers[c]}}else i[ys]=r;if(t.hasOwnProperty("formatters")){let{level:o,bindings:l,log:c}=t.formatters;i[pl]=Bm(o||n.level,l||Ju,c||n.log)}else i[pl]=Bm(n.level,Ju,n.log);if(t.hasOwnProperty("customLevels")===!0&&(wU(this.levels,t.customLevels),i.levels=yU(t.customLevels,i[cU]),_U(i)),typeof t.redact=="object"&&t.redact!==null||Array.isArray(t.redact)){i.redact=t.redact;let o=SU(i.redact,f1),l={stringify:o[pU]};i[fU]=f1,i[hU]=o,i[dU]=l}if(typeof t.msgPrefix=="string"&&(i[zm]=(this[zm]||"")+t.msgPrefix),i[Qu]=Hm(i,e),t.level!==void 0&&t.level!==this.level||t.hasOwnProperty("customLevels")){let o=t.level||this.level;i[$m](o)}return this.onChild(i),i}function TU(){let t=`{${this[Qu].substr(1)}}`,r=JSON.parse(t);return delete r.pid,delete r.hostname,r}function AU(e){let t=Hm(this,e);this[Qu]=t}function OU(e,t){return Object.assign(t,e)}function NU(e,t,r){let n=this[sU](),i=this[rU],s=this[oU],a=this[lU],o=this[iU]||OU,l,c=this[mU].streamWrite;e==null?l={}:e instanceof Error?(l={[s]:e},t===void 0&&(t=e.message)):(l=e,t===void 0&&e[a]===void 0&&e[s]&&(t=e[s].message)),i&&(l=o(l,i(l,r,this)));let p=this[d1](l,t,r,n),u=this[h1];u[uU]===!0&&(u.lastLevel=r,u.lastObj=l,u.lastMsg=t,u.lastTime=n.slice(this[aU]),u.lastLogger=this),u.write(c?c(p):p)}function FU(e){if(e!=null&&typeof e!="function")throw Error("callback must be a function");let t=this[h1];typeof t.flush=="function"?t.flush(e||m1):e&&e()}});var w1=_((Wm,_1)=>{"use strict";f();var{hasOwnProperty:fl}=Object.prototype,_s=Gm();_s.configure=Gm;_s.stringify=_s;_s.default=_s;Wm.stringify=_s;Wm.configure=Gm;_1.exports=_s;var IU=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Li(e){return e.length<5e3&&!IU.test(e)?`"${e}"`:JSON.stringify(e)}function Um(e,t){if(e.length>200||t)return e.sort(t);for(let r=1;r<e.length;r++){let n=e[r],i=r;for(;i!==0&&e[i-1]>n;)e[i]=e[i-1],i--;e[i]=n}return e}var LU=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Vm(e){return LU.call(e)!==void 0&&e.length!==0}function y1(e,t,r){e.length<r&&(r=e.length);let n=t===","?"":" ",i=`"0":${n}${e[0]}`;for(let s=1;s<r;s++)i+=`${t}"${s}":${n}${e[s]}`;return i}function PU(e){if(fl.call(e,"circularValue")){let t=e.circularValue;if(typeof t=="string")return`"${t}"`;if(t==null)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function RU(e){let t;if(fl.call(e,"deterministic")&&(t=e.deterministic,typeof t!="boolean"&&typeof t!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return t===void 0?!0:t}function MU(e,t){let r;if(fl.call(e,t)&&(r=e[t],typeof r!="boolean"))throw new TypeError(`The "${t}" argument must be of type boolean`);return r===void 0?!0:r}function v1(e,t){let r;if(fl.call(e,t)){if(r=e[t],typeof r!="number")throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${t}" argument must be an integer`);if(r<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return r===void 0?1/0:r}function vs(e){return e===1?"1 item":`${e} items`}function qU(e){let t=new Set;for(let r of e)(typeof r=="string"||typeof r=="number")&&t.add(String(r));return t}function jU(e){if(fl.call(e,"strict")){let t=e.strict;if(typeof t!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(t)return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;throw typeof r!="function"&&(n+=` (${r.toString()})`),new Error(n)}}}function Gm(e){e={...e};let t=jU(e);t&&(e.bigint===void 0&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));let r=PU(e),n=MU(e,"bigint"),i=RU(e),s=typeof i=="function"?i:void 0,a=v1(e,"maximumDepth"),o=v1(e,"maximumBreadth");function l(d,m,b,v,w,T){let S=m[d];switch(typeof S=="object"&&S!==null&&typeof S.toJSON=="function"&&(S=S.toJSON(d)),S=v.call(m,d,S),typeof S){case"string":return Li(S);case"object":{if(S===null)return"null";if(b.indexOf(S)!==-1)return r;let O="",P=",",A=T;if(Array.isArray(S)){if(S.length===0)return"[]";if(a<b.length+1)return'"[Array]"';b.push(S),w!==""&&(T+=w,O+=`
|
|
70
|
+
${T}`,P=`,
|
|
71
|
+
${T}`);let $=Math.min(S.length,o),q=0;for(;q<$-1;q++){let H=l(String(q),S,b,v,w,T);O+=H!==void 0?H:"null",O+=P}let E=l(String(q),S,b,v,w,T);if(O+=E!==void 0?E:"null",S.length-1>o){let H=S.length-o-1;O+=`${P}"... ${vs(H)} not stringified"`}return w!==""&&(O+=`
|
|
72
|
+
${A}`),b.pop(),`[${O}]`}let K=Object.keys(S),ee=K.length;if(ee===0)return"{}";if(a<b.length+1)return'"[Object]"';let J="",L="";w!==""&&(T+=w,P=`,
|
|
73
|
+
${T}`,J=" ");let N=Math.min(ee,o);i&&!Vm(S)&&(K=Um(K,s)),b.push(S);for(let $=0;$<N;$++){let q=K[$],E=l(q,S,b,v,w,T);E!==void 0&&(O+=`${L}${Li(q)}:${J}${E}`,L=P)}if(ee>o){let $=ee-o;O+=`${L}"...":${J}"${vs($)} not stringified"`,L=P}return w!==""&&L.length>1&&(O=`
|
|
74
|
+
${T}${O}
|
|
75
|
+
${A}`),b.pop(),`{${O}}`}case"number":return isFinite(S)?String(S):t?t(S):"null";case"boolean":return S===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(S);default:return t?t(S):void 0}}function c(d,m,b,v,w,T){switch(typeof m=="object"&&m!==null&&typeof m.toJSON=="function"&&(m=m.toJSON(d)),typeof m){case"string":return Li(m);case"object":{if(m===null)return"null";if(b.indexOf(m)!==-1)return r;let S=T,O="",P=",";if(Array.isArray(m)){if(m.length===0)return"[]";if(a<b.length+1)return'"[Array]"';b.push(m),w!==""&&(T+=w,O+=`
|
|
76
|
+
${T}`,P=`,
|
|
77
|
+
${T}`);let ee=Math.min(m.length,o),J=0;for(;J<ee-1;J++){let N=c(String(J),m[J],b,v,w,T);O+=N!==void 0?N:"null",O+=P}let L=c(String(J),m[J],b,v,w,T);if(O+=L!==void 0?L:"null",m.length-1>o){let N=m.length-o-1;O+=`${P}"... ${vs(N)} not stringified"`}return w!==""&&(O+=`
|
|
78
|
+
${S}`),b.pop(),`[${O}]`}b.push(m);let A="";w!==""&&(T+=w,P=`,
|
|
79
|
+
${T}`,A=" ");let K="";for(let ee of v){let J=c(ee,m[ee],b,v,w,T);J!==void 0&&(O+=`${K}${Li(ee)}:${A}${J}`,K=P)}return w!==""&&K.length>1&&(O=`
|
|
80
|
+
${T}${O}
|
|
81
|
+
${S}`),b.pop(),`{${O}}`}case"number":return isFinite(m)?String(m):t?t(m):"null";case"boolean":return m===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(m);default:return t?t(m):void 0}}function p(d,m,b,v,w){switch(typeof m){case"string":return Li(m);case"object":{if(m===null)return"null";if(typeof m.toJSON=="function"){if(m=m.toJSON(d),typeof m!="object")return p(d,m,b,v,w);if(m===null)return"null"}if(b.indexOf(m)!==-1)return r;let T=w;if(Array.isArray(m)){if(m.length===0)return"[]";if(a<b.length+1)return'"[Array]"';b.push(m),w+=v;let J=`
|
|
82
|
+
${w}`,L=`,
|
|
83
|
+
${w}`,N=Math.min(m.length,o),$=0;for(;$<N-1;$++){let E=p(String($),m[$],b,v,w);J+=E!==void 0?E:"null",J+=L}let q=p(String($),m[$],b,v,w);if(J+=q!==void 0?q:"null",m.length-1>o){let E=m.length-o-1;J+=`${L}"... ${vs(E)} not stringified"`}return J+=`
|
|
84
|
+
${T}`,b.pop(),`[${J}]`}let S=Object.keys(m),O=S.length;if(O===0)return"{}";if(a<b.length+1)return'"[Object]"';w+=v;let P=`,
|
|
85
|
+
${w}`,A="",K="",ee=Math.min(O,o);Vm(m)&&(A+=y1(m,P,o),S=S.slice(m.length),ee-=m.length,K=P),i&&(S=Um(S,s)),b.push(m);for(let J=0;J<ee;J++){let L=S[J],N=p(L,m[L],b,v,w);N!==void 0&&(A+=`${K}${Li(L)}: ${N}`,K=P)}if(O>o){let J=O-o;A+=`${K}"...": "${vs(J)} not stringified"`,K=P}return K!==""&&(A=`
|
|
86
|
+
${w}${A}
|
|
87
|
+
${T}`),b.pop(),`{${A}}`}case"number":return isFinite(m)?String(m):t?t(m):"null";case"boolean":return m===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(m);default:return t?t(m):void 0}}function u(d,m,b){switch(typeof m){case"string":return Li(m);case"object":{if(m===null)return"null";if(typeof m.toJSON=="function"){if(m=m.toJSON(d),typeof m!="object")return u(d,m,b);if(m===null)return"null"}if(b.indexOf(m)!==-1)return r;let v="",w=m.length!==void 0;if(w&&Array.isArray(m)){if(m.length===0)return"[]";if(a<b.length+1)return'"[Array]"';b.push(m);let A=Math.min(m.length,o),K=0;for(;K<A-1;K++){let J=u(String(K),m[K],b);v+=J!==void 0?J:"null",v+=","}let ee=u(String(K),m[K],b);if(v+=ee!==void 0?ee:"null",m.length-1>o){let J=m.length-o-1;v+=`,"... ${vs(J)} not stringified"`}return b.pop(),`[${v}]`}let T=Object.keys(m),S=T.length;if(S===0)return"{}";if(a<b.length+1)return'"[Object]"';let O="",P=Math.min(S,o);w&&Vm(m)&&(v+=y1(m,",",o),T=T.slice(m.length),P-=m.length,O=","),i&&(T=Um(T,s)),b.push(m);for(let A=0;A<P;A++){let K=T[A],ee=u(K,m[K],b);ee!==void 0&&(v+=`${O}${Li(K)}:${ee}`,O=",")}if(S>o){let A=S-o;v+=`${O}"...":"${vs(A)} not stringified"`}return b.pop(),`{${v}}`}case"number":return isFinite(m)?String(m):t?t(m):"null";case"boolean":return m===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(m);default:return t?t(m):void 0}}function h(d,m,b){if(arguments.length>1){let v="";if(typeof b=="number"?v=" ".repeat(Math.min(b,10)):typeof b=="string"&&(v=b.slice(0,10)),m!=null){if(typeof m=="function")return l("",{"":d},[],m,v,"");if(Array.isArray(m))return c("",d,[],qU(m),v,"")}if(v.length!==0)return p("",d,[],v,"")}return u("",d,[])}return h}});var k1=_((YSe,S1)=>{"use strict";f();var Km=Symbol.for("pino.metadata"),{DEFAULT_LEVELS:D1}=Zu(),BU=D1.info;function $U(e,t){e=e||[],t=t||{dedupe:!1};let r=Object.create(D1);r.silent=1/0,t.levels&&typeof t.levels=="object"&&Object.keys(t.levels).forEach(u=>{r[u]=t.levels[u]});let n={write:i,add:o,remove:l,emit:s,flushSync:a,end:c,minLevel:0,lastId:0,streams:[],clone:p,[Km]:!0,streamLevels:r};return Array.isArray(e)?e.forEach(o,n):o.call(n,e),e=null,n;function i(u){let h,d=this.lastLevel,{streams:m}=this,b=0,v;for(let w=zU(m.length,t.dedupe);UU(w,m.length,t.dedupe);w=HU(w,t.dedupe))if(h=m[w],h.level<=d){if(b!==0&&b!==h.level)break;if(v=h.stream,v[Km]){let{lastTime:T,lastMsg:S,lastObj:O,lastLogger:P}=this;v.lastLevel=d,v.lastTime=T,v.lastMsg=S,v.lastObj=O,v.lastLogger=P}v.write(u),t.dedupe&&(b=h.level)}else if(!t.dedupe)break}function s(...u){for(let{stream:h}of this.streams)typeof h.emit=="function"&&h.emit(...u)}function a(){for(let{stream:u}of this.streams)typeof u.flushSync=="function"&&u.flushSync()}function o(u){if(!u)return n;let h=typeof u.write=="function"||u.stream,d=u.write?u:u.stream;if(!h)throw Error("stream object needs to implement either StreamEntry or DestinationStream interface");let{streams:m,streamLevels:b}=this,v;typeof u.levelVal=="number"?v=u.levelVal:typeof u.level=="string"?v=b[u.level]:typeof u.level=="number"?v=u.level:v=BU;let w={stream:d,level:v,levelVal:void 0,id:++n.lastId};return m.unshift(w),m.sort(E1),this.minLevel=m[0].level,n}function l(u){let{streams:h}=this,d=h.findIndex(m=>m.id===u);return d>=0&&(h.splice(d,1),h.sort(E1),this.minLevel=h.length>0?h[0].level:-1),n}function c(){for(let{stream:u}of this.streams)typeof u.flushSync=="function"&&u.flushSync(),u.end()}function p(u){let h=new Array(this.streams.length);for(let d=0;d<h.length;d++)h[d]={level:u,stream:this.streams[d].stream};return{write:i,add:o,remove:l,minLevel:u,streams:h,clone:p,emit:s,flushSync:a,[Km]:!0}}}function E1(e,t){return e.level-t.level}function zU(e,t){return t?e-1:0}function HU(e,t){return t?e-1:e+1}function UU(e,t,r){return r?e>=0:e<t}S1.exports=$U});var B1=_((eke,Yr)=>{"use strict";f();var VU=X("node:os"),L1=hm(),GU=mm(),WU=bm(),P1=uE(),KU=b1(),R1=Na(),{configure:ZU}=w1(),{assertDefaultLevelFound:JU,mappings:M1,genLsCache:QU,genLevelComparison:YU,assertLevelComparison:XU}=qm(),{DEFAULT_LEVELS:q1,SORTING_ORDER:eV}=Zu(),{createArgsNormalizer:tV,asChindings:rV,buildSafeSonicBoom:C1,buildFormatters:nV,stringify:Zm,normalizeDestFileDescriptor:T1,noop:iV}=Ku(),{version:sV}=jm(),{chindingsSym:A1,redactFmtSym:aV,serializersSym:O1,timeSym:oV,timeSliceIndexSym:lV,streamSym:cV,stringifySym:N1,stringifySafeSym:Jm,stringifiersSym:F1,setLevelSym:uV,endSym:pV,formatOptsSym:fV,messageKeySym:dV,errorKeySym:hV,nestedKeySym:mV,mixinSym:gV,levelCompSym:xV,useOnlyCustomLevelsSym:bV,formattersSym:I1,hooksSym:yV,nestedKeyStrSym:vV,mixinMergeStrategySym:_V,msgPrefixSym:wV}=R1,{epochTime:j1,nullTime:EV}=P1,{pid:DV}=process,SV=VU.hostname(),kV=L1.err,CV={level:"info",levelComparison:eV.ASC,levels:q1,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:!0,base:{pid:DV,hostname:SV},serializers:Object.assign(Object.create(null),{err:kV}),formatters:Object.assign(Object.create(null),{bindings(e){return e},level(e,t){return{level:t}}}),hooks:{logMethod:void 0,streamWrite:void 0},timestamp:j1,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100},TV=tV(CV),AV=Object.assign(Object.create(null),L1);function Qm(...e){let t={},{opts:r,stream:n}=TV(t,GU(),...e);r.level&&typeof r.level=="string"&&q1[r.level.toLowerCase()]!==void 0&&(r.level=r.level.toLowerCase());let{redact:i,crlf:s,serializers:a,timestamp:o,messageKey:l,errorKey:c,nestedKey:p,base:u,name:h,level:d,customLevels:m,levelComparison:b,mixin:v,mixinMergeStrategy:w,useOnlyCustomLevels:T,formatters:S,hooks:O,depthLimit:P,edgeLimit:A,onChild:K,msgPrefix:ee}=r,J=ZU({maximumDepth:P,maximumBreadth:A}),L=nV(S.level,S.bindings,S.log),N=Zm.bind({[Jm]:J}),$=i?WU(i,N):{},q=i?{stringify:$[aV]}:{stringify:N},E="}"+(s?`\r
|
|
88
|
+
`:`
|
|
89
|
+
`),H=rV.bind(null,{[A1]:"",[O1]:a,[F1]:$,[N1]:Zm,[Jm]:J,[I1]:L}),oe="";u!==null&&(h===void 0?oe=H(u):oe=H(Object.assign({},u,{name:h})));let de=o instanceof Function?o:o?j1:EV,Ie=de().indexOf(":")+1;if(T&&!m)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(v&&typeof v!="function")throw Error(`Unknown mixin type "${typeof v}" - expected "function"`);if(ee&&typeof ee!="string")throw Error(`Unknown msgPrefix type "${typeof ee}" - expected "string"`);JU(d,m,T);let ft=M1(m,T);typeof n.emit=="function"&&n.emit("message",{code:"PINO_CONFIG",config:{levels:ft,messageKey:l,errorKey:c}}),XU(b);let k=YU(b);return Object.assign(t,{levels:ft,[xV]:k,[bV]:T,[cV]:n,[oV]:de,[lV]:Ie,[N1]:Zm,[Jm]:J,[F1]:$,[pV]:E,[fV]:q,[dV]:l,[hV]:c,[mV]:p,[vV]:p?`,${JSON.stringify(p)}:{`:"",[O1]:a,[gV]:v,[_V]:w,[A1]:oe,[I1]:L,[yV]:O,silent:iV,onChild:K,[wV]:ee}),Object.setPrototypeOf(t,KU()),QU(t),t[uV](d),t}Yr.exports=Qm;Yr.exports.destination=(e=process.stdout.fd)=>typeof e=="object"?(e.dest=T1(e.dest||process.stdout.fd),C1(e)):C1({dest:T1(e),minLength:0});Yr.exports.transport=Fm();Yr.exports.multistream=k1();Yr.exports.levels=M1();Yr.exports.stdSerializers=AV;Yr.exports.stdTimeFunctions=Object.assign({},P1);Yr.exports.symbols=R1;Yr.exports.version=sV;Yr.exports.default=Qm;Yr.exports.pino=Qm});var gl=_(Ye=>{"use strict";f();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.regexpCode=Ye.getEsmExportName=Ye.getProperty=Ye.safeStringify=Ye.stringify=Ye.strConcat=Ye.addCodeArg=Ye.str=Ye._=Ye.nil=Ye._Code=Ye.Name=Ye.IDENTIFIER=Ye._CodeOrName=void 0;var hl=class{};Ye._CodeOrName=hl;Ye.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ws=class extends hl{constructor(t){if(super(),!Ye.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Ye.Name=ws;var Xr=class extends hl{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof ws&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Ye._Code=Xr;Ye.nil=new Xr("");function K1(e,...t){let r=[e[0]],n=0;for(;n<t.length;)e0(r,t[n]),r.push(e[++n]);return new Xr(r)}Ye._=K1;var Xm=new Xr("+");function Z1(e,...t){let r=[ml(e[0])],n=0;for(;n<t.length;)r.push(Xm),e0(r,t[n]),r.push(Xm,ml(e[++n]));return MV(r),new Xr(r)}Ye.str=Z1;function e0(e,t){t instanceof Xr?e.push(...t._items):t instanceof ws?e.push(t):e.push(BV(t))}Ye.addCodeArg=e0;function MV(e){let t=1;for(;t<e.length-1;){if(e[t]===Xm){let r=qV(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function qV(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof ws||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof ws))return`"${e}${t.slice(1)}`}function jV(e,t){return t.emptyStr()?e:e.emptyStr()?t:Z1`${e}${t}`}Ye.strConcat=jV;function BV(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ml(Array.isArray(e)?e.join(","):e)}function $V(e){return new Xr(ml(e))}Ye.stringify=$V;function ml(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ye.safeStringify=ml;function zV(e){return typeof e=="string"&&Ye.IDENTIFIER.test(e)?new Xr(`.${e}`):K1`[${e}]`}Ye.getProperty=zV;function HV(e){if(typeof e=="string"&&Ye.IDENTIFIER.test(e))return new Xr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Ye.getEsmExportName=HV;function UV(e){return new Xr(e.toString())}Ye.regexpCode=UV});var n0=_(Ir=>{"use strict";f();Object.defineProperty(Ir,"__esModule",{value:!0});Ir.ValueScope=Ir.ValueScopeName=Ir.Scope=Ir.varKinds=Ir.UsedValueState=void 0;var Fr=gl(),t0=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Yu;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Yu||(Ir.UsedValueState=Yu={}));Ir.varKinds={const:new Fr.Name("const"),let:new Fr.Name("let"),var:new Fr.Name("var")};var Xu=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Fr.Name?t:this.name(t)}name(t){return new Fr.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Ir.Scope=Xu;var ep=class extends Fr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Fr._)`.${new Fr.Name(r)}[${n}]`}};Ir.ValueScopeName=ep;var VV=(0,Fr._)`\n`,r0=class extends Xu{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?VV:Fr.nil}}get(){return this._scope}name(t){return new ep(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,o=this._values[s];if(o){let p=o.get(a);if(p)return p}else o=this._values[s]=new Map;o.set(a,i);let l=this._scope[s]||(this._scope[s]=[]),c=l.length;return l[c]=r.ref,i.setValue(r,{property:s,itemIndex:c}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Fr._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=Fr.nil;for(let a in t){let o=t[a];if(!o)continue;let l=n[a]=n[a]||new Map;o.forEach(c=>{if(l.has(c))return;l.set(c,Yu.Started);let p=r(c);if(p){let u=this.opts.es5?Ir.varKinds.var:Ir.varKinds.const;s=(0,Fr._)`${s}${u} ${c} = ${p};${this.opts._n}`}else if(p=i?.(c))s=(0,Fr._)`${s}${p}${this.opts._n}`;else throw new t0(c);l.set(c,Yu.Completed)})}return s}};Ir.ValueScope=r0});var qe=_(Re=>{"use strict";f();Object.defineProperty(Re,"__esModule",{value:!0});Re.or=Re.and=Re.not=Re.CodeGen=Re.operators=Re.varKinds=Re.ValueScopeName=Re.ValueScope=Re.Scope=Re.Name=Re.regexpCode=Re.stringify=Re.getProperty=Re.nil=Re.strConcat=Re.str=Re._=void 0;var Ge=gl(),xn=n0(),Pi=gl();Object.defineProperty(Re,"_",{enumerable:!0,get:function(){return Pi._}});Object.defineProperty(Re,"str",{enumerable:!0,get:function(){return Pi.str}});Object.defineProperty(Re,"strConcat",{enumerable:!0,get:function(){return Pi.strConcat}});Object.defineProperty(Re,"nil",{enumerable:!0,get:function(){return Pi.nil}});Object.defineProperty(Re,"getProperty",{enumerable:!0,get:function(){return Pi.getProperty}});Object.defineProperty(Re,"stringify",{enumerable:!0,get:function(){return Pi.stringify}});Object.defineProperty(Re,"regexpCode",{enumerable:!0,get:function(){return Pi.regexpCode}});Object.defineProperty(Re,"Name",{enumerable:!0,get:function(){return Pi.Name}});var ip=n0();Object.defineProperty(Re,"Scope",{enumerable:!0,get:function(){return ip.Scope}});Object.defineProperty(Re,"ValueScope",{enumerable:!0,get:function(){return ip.ValueScope}});Object.defineProperty(Re,"ValueScopeName",{enumerable:!0,get:function(){return ip.ValueScopeName}});Object.defineProperty(Re,"varKinds",{enumerable:!0,get:function(){return ip.varKinds}});Re.operators={GT:new Ge._Code(">"),GTE:new Ge._Code(">="),LT:new Ge._Code("<"),LTE:new Ge._Code("<="),EQ:new Ge._Code("==="),NEQ:new Ge._Code("!=="),NOT:new Ge._Code("!"),OR:new Ge._Code("||"),AND:new Ge._Code("&&"),ADD:new Ge._Code("+")};var ci=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},i0=class extends ci{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?xn.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Pa(this.rhs,t,r)),this}get names(){return this.rhs instanceof Ge._CodeOrName?this.rhs.names:{}}},tp=class extends ci{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof Ge.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Pa(this.rhs,t,r),this}get names(){let t=this.lhs instanceof Ge.Name?{}:{...this.lhs.names};return np(t,this.rhs)}},s0=class extends tp{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},a0=class extends ci{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},o0=class extends ci{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},l0=class extends ci{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},c0=class extends ci{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Pa(this.code,t,r),this}get names(){return this.code instanceof Ge._CodeOrName?this.code.names:{}}},xl=class extends ci{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(GV(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Ss(t,r.names),{})}},ui=class extends xl{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},u0=class extends xl{},La=class extends ui{};La.kind="else";var Es=class e extends ui{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new La(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(J1(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Pa(this.condition,t,r),this}get names(){let t=super.names;return np(t,this.condition),this.else&&Ss(t,this.else.names),t}};Es.kind="if";var Ds=class extends ui{};Ds.kind="for";var p0=class extends Ds{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Pa(this.iteration,t,r),this}get names(){return Ss(super.names,this.iteration.names)}},f0=class extends Ds{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?xn.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=np(super.names,this.from);return np(t,this.to)}},rp=class extends Ds{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Pa(this.iterable,t,r),this}get names(){return Ss(super.names,this.iterable.names)}},bl=class extends ui{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};bl.kind="func";var yl=class extends xl{render(t){return"return "+super.render(t)}};yl.kind="return";var d0=class extends ui{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Ss(t,this.catch.names),this.finally&&Ss(t,this.finally.names),t}},vl=class extends ui{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};vl.kind="catch";var _l=class extends ui{render(t){return"finally"+super.render(t)}};_l.kind="finally";var h0=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
90
|
+
`:""},this._extScope=t,this._scope=new xn.Scope({parent:t}),this._nodes=[new u0]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new i0(t,s,n)),s}const(t,r,n){return this._def(xn.varKinds.const,t,r,n)}let(t,r,n){return this._def(xn.varKinds.let,t,r,n)}var(t,r,n){return this._def(xn.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new tp(t,r,n))}add(t,r){return this._leafNode(new s0(t,Re.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==Ge.nil&&this._leafNode(new c0(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,Ge.addCodeArg)(r,i));return r.push("}"),new Ge._Code(r)}if(t,r,n){if(this._blockNode(new Es(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Es(t))}else(){return this._elseNode(new La)}endIf(){return this._endBlockNode(Es,La)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new p0(t),r)}forRange(t,r,n,i,s=this.opts.es5?xn.varKinds.var:xn.varKinds.let){let a=this._scope.toName(t);return this._for(new f0(s,a,r,n),()=>i(a))}forOf(t,r,n,i=xn.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof Ge.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Ge._)`${a}.length`,o=>{this.var(s,(0,Ge._)`${a}[${o}]`),n(s)})}return this._for(new rp("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?xn.varKinds.var:xn.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,Ge._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new rp("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Ds)}label(t){return this._leafNode(new a0(t))}break(t){return this._leafNode(new o0(t))}return(t){let r=new yl;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(yl)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new d0;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new vl(s),r(s)}return n&&(this._currNode=i.finally=new _l,this.code(n)),this._endBlockNode(vl,_l)}throw(t){return this._leafNode(new l0(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=Ge.nil,n,i){return this._blockNode(new bl(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(bl)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Es))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};Re.CodeGen=h0;function Ss(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function np(e,t){return t instanceof Ge._CodeOrName?Ss(e,t.names):e}function Pa(e,t,r){if(e instanceof Ge.Name)return n(e);if(!i(e))return e;return new Ge._Code(e._items.reduce((s,a)=>(a instanceof Ge.Name&&(a=n(a)),a instanceof Ge._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof Ge._Code&&s._items.some(a=>a instanceof Ge.Name&&t[a.str]===1&&r[a.str]!==void 0)}}function GV(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function J1(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Ge._)`!${m0(e)}`}Re.not=J1;var WV=Q1(Re.operators.AND);function KV(...e){return e.reduce(WV)}Re.and=KV;var ZV=Q1(Re.operators.OR);function JV(...e){return e.reduce(ZV)}Re.or=JV;function Q1(e){return(t,r)=>t===Ge.nil?r:r===Ge.nil?t:(0,Ge._)`${m0(t)} ${e} ${m0(r)}`}function m0(e){return e instanceof Ge.Name?e:(0,Ge._)`(${e})`}});var Ke=_(je=>{"use strict";f();Object.defineProperty(je,"__esModule",{value:!0});je.checkStrictMode=je.getErrorPath=je.Type=je.useFunc=je.setEvaluated=je.evaluatedPropsToName=je.mergeEvaluated=je.eachItem=je.unescapeJsonPointer=je.escapeJsonPointer=je.escapeFragment=je.unescapeFragment=je.schemaRefOrVal=je.schemaHasRulesButRef=je.schemaHasRules=je.checkUnknownRules=je.alwaysValidSchema=je.toHash=void 0;var pt=qe(),QV=gl();function YV(e){let t={};for(let r of e)t[r]=!0;return t}je.toHash=YV;function XV(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(eD(e,t),!tD(t,e.self.RULES.all))}je.alwaysValidSchema=XV;function eD(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||iD(e,`unknown keyword: "${s}"`)}je.checkUnknownRules=eD;function tD(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}je.schemaHasRules=tD;function eG(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}je.schemaHasRulesButRef=eG;function tG({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,pt._)`${r}`}return(0,pt._)`${e}${t}${(0,pt.getProperty)(n)}`}je.schemaRefOrVal=tG;function rG(e){return rD(decodeURIComponent(e))}je.unescapeFragment=rG;function nG(e){return encodeURIComponent(x0(e))}je.escapeFragment=nG;function x0(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}je.escapeJsonPointer=x0;function rD(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}je.unescapeJsonPointer=rD;function iG(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}je.eachItem=iG;function Y1({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,o)=>{let l=a===void 0?s:a instanceof pt.Name?(s instanceof pt.Name?e(i,s,a):t(i,s,a),a):s instanceof pt.Name?(t(i,a,s),s):r(s,a);return o===pt.Name&&!(l instanceof pt.Name)?n(i,l):l}}je.mergeEvaluated={props:Y1({mergeNames:(e,t,r)=>e.if((0,pt._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,pt._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,pt._)`${r} || {}`).code((0,pt._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,pt._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,pt._)`${r} || {}`),b0(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:nD}),items:Y1({mergeNames:(e,t,r)=>e.if((0,pt._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,pt._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,pt._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,pt._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function nD(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,pt._)`{}`);return t!==void 0&&b0(e,r,t),r}je.evaluatedPropsToName=nD;function b0(e,t,r){Object.keys(r).forEach(n=>e.assign((0,pt._)`${t}${(0,pt.getProperty)(n)}`,!0))}je.setEvaluated=b0;var X1={};function sG(e,t){return e.scopeValue("func",{ref:t,code:X1[t.code]||(X1[t.code]=new QV._Code(t.code))})}je.useFunc=sG;var g0;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(g0||(je.Type=g0={}));function aG(e,t,r){if(e instanceof pt.Name){let n=t===g0.Num;return r?n?(0,pt._)`"[" + ${e} + "]"`:(0,pt._)`"['" + ${e} + "']"`:n?(0,pt._)`"/" + ${e}`:(0,pt._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,pt.getProperty)(e).toString():"/"+x0(e)}je.getErrorPath=aG;function iD(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}je.checkStrictMode=iD});var pi=_(y0=>{"use strict";f();Object.defineProperty(y0,"__esModule",{value:!0});var ur=qe(),oG={data:new ur.Name("data"),valCxt:new ur.Name("valCxt"),instancePath:new ur.Name("instancePath"),parentData:new ur.Name("parentData"),parentDataProperty:new ur.Name("parentDataProperty"),rootData:new ur.Name("rootData"),dynamicAnchors:new ur.Name("dynamicAnchors"),vErrors:new ur.Name("vErrors"),errors:new ur.Name("errors"),this:new ur.Name("this"),self:new ur.Name("self"),scope:new ur.Name("scope"),json:new ur.Name("json"),jsonPos:new ur.Name("jsonPos"),jsonLen:new ur.Name("jsonLen"),jsonPart:new ur.Name("jsonPart")};y0.default=oG});var wl=_(pr=>{"use strict";f();Object.defineProperty(pr,"__esModule",{value:!0});pr.extendErrors=pr.resetErrorsCount=pr.reportExtraError=pr.reportError=pr.keyword$DataError=pr.keywordError=void 0;var Ze=qe(),sp=Ke(),wr=pi();pr.keywordError={message:({keyword:e})=>(0,Ze.str)`must pass "${e}" keyword validation`};pr.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,Ze.str)`"${e}" keyword must be ${t} ($data)`:(0,Ze.str)`"${e}" keyword is invalid ($data)`};function lG(e,t=pr.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:o}=i,l=oD(e,t,r);n??(a||o)?sD(s,l):aD(i,(0,Ze._)`[${l}]`)}pr.reportError=lG;function cG(e,t=pr.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,o=oD(e,t,r);sD(i,o),s||a||aD(n,wr.default.vErrors)}pr.reportExtraError=cG;function uG(e,t){e.assign(wr.default.errors,t),e.if((0,Ze._)`${wr.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Ze._)`${wr.default.vErrors}.length`,t),()=>e.assign(wr.default.vErrors,null)))}pr.resetErrorsCount=uG;function pG({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,wr.default.errors,o=>{e.const(a,(0,Ze._)`${wr.default.vErrors}[${o}]`),e.if((0,Ze._)`${a}.instancePath === undefined`,()=>e.assign((0,Ze._)`${a}.instancePath`,(0,Ze.strConcat)(wr.default.instancePath,s.errorPath))),e.assign((0,Ze._)`${a}.schemaPath`,(0,Ze.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,Ze._)`${a}.schema`,r),e.assign((0,Ze._)`${a}.data`,n))})}pr.extendErrors=pG;function sD(e,t){let r=e.const("err",t);e.if((0,Ze._)`${wr.default.vErrors} === null`,()=>e.assign(wr.default.vErrors,(0,Ze._)`[${r}]`),(0,Ze._)`${wr.default.vErrors}.push(${r})`),e.code((0,Ze._)`${wr.default.errors}++`)}function aD(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,Ze._)`new ${e.ValidationError}(${t})`):(r.assign((0,Ze._)`${n}.errors`,t),r.return(!1))}var ks={keyword:new Ze.Name("keyword"),schemaPath:new Ze.Name("schemaPath"),params:new Ze.Name("params"),propertyName:new Ze.Name("propertyName"),message:new Ze.Name("message"),schema:new Ze.Name("schema"),parentSchema:new Ze.Name("parentSchema")};function oD(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,Ze._)`{}`:fG(e,t,r)}function fG(e,t,r={}){let{gen:n,it:i}=e,s=[dG(i,r),hG(e,r)];return mG(e,t,s),n.object(...s)}function dG({errorPath:e},{instancePath:t}){let r=t?(0,Ze.str)`${e}${(0,sp.getErrorPath)(t,sp.Type.Str)}`:e;return[wr.default.instancePath,(0,Ze.strConcat)(wr.default.instancePath,r)]}function hG({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,Ze.str)`${t}/${e}`;return r&&(i=(0,Ze.str)`${i}${(0,sp.getErrorPath)(r,sp.Type.Str)}`),[ks.schemaPath,i]}function mG(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:o}=e,{opts:l,propertyName:c,topSchemaRef:p,schemaPath:u}=o;n.push([ks.keyword,i],[ks.params,typeof t=="function"?t(e):t||(0,Ze._)`{}`]),l.messages&&n.push([ks.message,typeof r=="function"?r(e):r]),l.verbose&&n.push([ks.schema,a],[ks.parentSchema,(0,Ze._)`${p}${u}`],[wr.default.data,s]),c&&n.push([ks.propertyName,c])}});var cD=_(Ra=>{"use strict";f();Object.defineProperty(Ra,"__esModule",{value:!0});Ra.boolOrEmptySchema=Ra.topBoolOrEmptySchema=void 0;var gG=wl(),xG=qe(),bG=pi(),yG={message:"boolean schema is false"};function vG(e){let{gen:t,schema:r,validateName:n}=e;r===!1?lD(e,!1):typeof r=="object"&&r.$async===!0?t.return(bG.default.data):(t.assign((0,xG._)`${n}.errors`,null),t.return(!0))}Ra.topBoolOrEmptySchema=vG;function _G(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),lD(e)):r.var(t,!0)}Ra.boolOrEmptySchema=_G;function lD(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,gG.reportError)(i,yG,void 0,t)}});var v0=_(Ma=>{"use strict";f();Object.defineProperty(Ma,"__esModule",{value:!0});Ma.getRules=Ma.isJSONType=void 0;var wG=["string","number","integer","boolean","null","object","array"],EG=new Set(wG);function DG(e){return typeof e=="string"&&EG.has(e)}Ma.isJSONType=DG;function SG(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Ma.getRules=SG});var _0=_(Ri=>{"use strict";f();Object.defineProperty(Ri,"__esModule",{value:!0});Ri.shouldUseRule=Ri.shouldUseGroup=Ri.schemaHasRulesForType=void 0;function kG({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&uD(e,n)}Ri.schemaHasRulesForType=kG;function uD(e,t){return t.rules.some(r=>pD(e,r))}Ri.shouldUseGroup=uD;function pD(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Ri.shouldUseRule=pD});var El=_(fr=>{"use strict";f();Object.defineProperty(fr,"__esModule",{value:!0});fr.reportTypeError=fr.checkDataTypes=fr.checkDataType=fr.coerceAndCheckDataType=fr.getJSONTypes=fr.getSchemaTypes=fr.DataType=void 0;var CG=v0(),TG=_0(),AG=wl(),Pe=qe(),fD=Ke(),qa;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(qa||(fr.DataType=qa={}));function OG(e){let t=dD(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}fr.getSchemaTypes=OG;function dD(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(CG.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}fr.getJSONTypes=dD;function NG(e,t){let{gen:r,data:n,opts:i}=e,s=FG(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,TG.schemaHasRulesForType)(e,t[0]));if(a){let o=E0(t,n,i.strictNumbers,qa.Wrong);r.if(o,()=>{s.length?IG(e,t,s):D0(e)})}return a}fr.coerceAndCheckDataType=NG;var hD=new Set(["string","number","integer","boolean","null"]);function FG(e,t){return t?e.filter(r=>hD.has(r)||t==="array"&&r==="array"):[]}function IG(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,Pe._)`typeof ${i}`),o=n.let("coerced",(0,Pe._)`undefined`);s.coerceTypes==="array"&&n.if((0,Pe._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,Pe._)`${i}[0]`).assign(a,(0,Pe._)`typeof ${i}`).if(E0(t,i,s.strictNumbers),()=>n.assign(o,i))),n.if((0,Pe._)`${o} !== undefined`);for(let c of r)(hD.has(c)||c==="array"&&s.coerceTypes==="array")&&l(c);n.else(),D0(e),n.endIf(),n.if((0,Pe._)`${o} !== undefined`,()=>{n.assign(i,o),LG(e,o)});function l(c){switch(c){case"string":n.elseIf((0,Pe._)`${a} == "number" || ${a} == "boolean"`).assign(o,(0,Pe._)`"" + ${i}`).elseIf((0,Pe._)`${i} === null`).assign(o,(0,Pe._)`""`);return;case"number":n.elseIf((0,Pe._)`${a} == "boolean" || ${i} === null
|
|
91
|
+
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(o,(0,Pe._)`+${i}`);return;case"integer":n.elseIf((0,Pe._)`${a} === "boolean" || ${i} === null
|
|
92
|
+
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(o,(0,Pe._)`+${i}`);return;case"boolean":n.elseIf((0,Pe._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(o,!1).elseIf((0,Pe._)`${i} === "true" || ${i} === 1`).assign(o,!0);return;case"null":n.elseIf((0,Pe._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(o,null);return;case"array":n.elseIf((0,Pe._)`${a} === "string" || ${a} === "number"
|
|
93
|
+
|| ${a} === "boolean" || ${i} === null`).assign(o,(0,Pe._)`[${i}]`)}}}function LG({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,Pe._)`${t} !== undefined`,()=>e.assign((0,Pe._)`${t}[${r}]`,n))}function w0(e,t,r,n=qa.Correct){let i=n===qa.Correct?Pe.operators.EQ:Pe.operators.NEQ,s;switch(e){case"null":return(0,Pe._)`${t} ${i} null`;case"array":s=(0,Pe._)`Array.isArray(${t})`;break;case"object":s=(0,Pe._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,Pe._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,Pe._)`typeof ${t} ${i} ${e}`}return n===qa.Correct?s:(0,Pe.not)(s);function a(o=Pe.nil){return(0,Pe.and)((0,Pe._)`typeof ${t} == "number"`,o,r?(0,Pe._)`isFinite(${t})`:Pe.nil)}}fr.checkDataType=w0;function E0(e,t,r,n){if(e.length===1)return w0(e[0],t,r,n);let i,s=(0,fD.toHash)(e);if(s.array&&s.object){let a=(0,Pe._)`typeof ${t} != "object"`;i=s.null?a:(0,Pe._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=Pe.nil;s.number&&delete s.integer;for(let a in s)i=(0,Pe.and)(i,w0(a,t,r,n));return i}fr.checkDataTypes=E0;var PG={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,Pe._)`{type: ${e}}`:(0,Pe._)`{type: ${t}}`};function D0(e){let t=RG(e);(0,AG.reportError)(t,PG)}fr.reportTypeError=D0;function RG(e){let{gen:t,data:r,schema:n}=e,i=(0,fD.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var gD=_(ap=>{"use strict";f();Object.defineProperty(ap,"__esModule",{value:!0});ap.assignDefaults=void 0;var ja=qe(),MG=Ke();function qG(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)mD(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>mD(e,s,i.default))}ap.assignDefaults=qG;function mD(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let o=(0,ja._)`${s}${(0,ja.getProperty)(t)}`;if(i){(0,MG.checkStrictMode)(e,`default is ignored for: ${o}`);return}let l=(0,ja._)`${o} === undefined`;a.useDefaults==="empty"&&(l=(0,ja._)`${l} || ${o} === null || ${o} === ""`),n.if(l,(0,ja._)`${o} = ${(0,ja.stringify)(r)}`)}});var en=_(ot=>{"use strict";f();Object.defineProperty(ot,"__esModule",{value:!0});ot.validateUnion=ot.validateArray=ot.usePattern=ot.callValidateCode=ot.schemaProperties=ot.allSchemaProperties=ot.noPropertyInData=ot.propertyInData=ot.isOwnProperty=ot.hasPropFunc=ot.reportMissingProp=ot.checkMissingProp=ot.checkReportMissingProp=void 0;var gt=qe(),S0=Ke(),Mi=pi(),jG=Ke();function BG(e,t){let{gen:r,data:n,it:i}=e;r.if(C0(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,gt._)`${t}`},!0),e.error()})}ot.checkReportMissingProp=BG;function $G({gen:e,data:t,it:{opts:r}},n,i){return(0,gt.or)(...n.map(s=>(0,gt.and)(C0(e,t,s,r.ownProperties),(0,gt._)`${i} = ${s}`)))}ot.checkMissingProp=$G;function zG(e,t){e.setParams({missingProperty:t},!0),e.error()}ot.reportMissingProp=zG;function xD(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,gt._)`Object.prototype.hasOwnProperty`})}ot.hasPropFunc=xD;function k0(e,t,r){return(0,gt._)`${xD(e)}.call(${t}, ${r})`}ot.isOwnProperty=k0;function HG(e,t,r,n){let i=(0,gt._)`${t}${(0,gt.getProperty)(r)} !== undefined`;return n?(0,gt._)`${i} && ${k0(e,t,r)}`:i}ot.propertyInData=HG;function C0(e,t,r,n){let i=(0,gt._)`${t}${(0,gt.getProperty)(r)} === undefined`;return n?(0,gt.or)(i,(0,gt.not)(k0(e,t,r))):i}ot.noPropertyInData=C0;function bD(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ot.allSchemaProperties=bD;function UG(e,t){return bD(t).filter(r=>!(0,S0.alwaysValidSchema)(e,t[r]))}ot.schemaProperties=UG;function VG({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},o,l,c){let p=c?(0,gt._)`${e}, ${t}, ${n}${i}`:t,u=[[Mi.default.instancePath,(0,gt.strConcat)(Mi.default.instancePath,s)],[Mi.default.parentData,a.parentData],[Mi.default.parentDataProperty,a.parentDataProperty],[Mi.default.rootData,Mi.default.rootData]];a.opts.dynamicRef&&u.push([Mi.default.dynamicAnchors,Mi.default.dynamicAnchors]);let h=(0,gt._)`${p}, ${r.object(...u)}`;return l!==gt.nil?(0,gt._)`${o}.call(${l}, ${h})`:(0,gt._)`${o}(${h})`}ot.callValidateCode=VG;var GG=(0,gt._)`new RegExp`;function WG({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,gt._)`${i.code==="new RegExp"?GG:(0,jG.useFunc)(e,i)}(${r}, ${n})`})}ot.usePattern=WG;function KG(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let o=t.let("valid",!0);return a(()=>t.assign(o,!1)),o}return t.var(s,!0),a(()=>t.break()),s;function a(o){let l=t.const("len",(0,gt._)`${r}.length`);t.forRange("i",0,l,c=>{e.subschema({keyword:n,dataProp:c,dataPropType:S0.Type.Num},s),t.if((0,gt.not)(s),o)})}}ot.validateArray=KG;function ZG(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(l=>(0,S0.alwaysValidSchema)(i,l))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),o=t.name("_valid");t.block(()=>r.forEach((l,c)=>{let p=e.subschema({keyword:n,schemaProp:c,compositeRule:!0},o);t.assign(a,(0,gt._)`${a} || ${o}`),e.mergeValidEvaluated(p,o)||t.if((0,gt.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}ot.validateUnion=ZG});var _D=_(Mn=>{"use strict";f();Object.defineProperty(Mn,"__esModule",{value:!0});Mn.validateKeywordUsage=Mn.validSchemaType=Mn.funcKeywordCode=Mn.macroKeywordCode=void 0;var Er=qe(),Cs=pi(),JG=en(),QG=wl();function YG(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,o=t.macro.call(a.self,i,s,a),l=vD(r,n,o);a.opts.validateSchema!==!1&&a.self.validateSchema(o,!0);let c=r.name("valid");e.subschema({schema:o,schemaPath:Er.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}Mn.macroKeywordCode=YG;function XG(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:o,it:l}=e;tW(l,t);let c=!o&&t.compile?t.compile.call(l.self,s,a,l):t.validate,p=vD(n,i,c),u=n.let("valid");e.block$data(u,h),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function h(){if(t.errors===!1)b(),t.modifying&&yD(e),v(()=>e.error());else{let w=t.async?d():m();t.modifying&&yD(e),v(()=>eW(e,w))}}function d(){let w=n.let("ruleErrs",null);return n.try(()=>b((0,Er._)`await `),T=>n.assign(u,!1).if((0,Er._)`${T} instanceof ${l.ValidationError}`,()=>n.assign(w,(0,Er._)`${T}.errors`),()=>n.throw(T))),w}function m(){let w=(0,Er._)`${p}.errors`;return n.assign(w,null),b(Er.nil),w}function b(w=t.async?(0,Er._)`await `:Er.nil){let T=l.opts.passContext?Cs.default.this:Cs.default.self,S=!("compile"in t&&!o||t.schema===!1);n.assign(u,(0,Er._)`${w}${(0,JG.callValidateCode)(e,p,T,S)}`,t.modifying)}function v(w){var T;n.if((0,Er.not)((T=t.valid)!==null&&T!==void 0?T:u),w)}}Mn.funcKeywordCode=XG;function yD(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Er._)`${n.parentData}[${n.parentDataProperty}]`))}function eW(e,t){let{gen:r}=e;r.if((0,Er._)`Array.isArray(${t})`,()=>{r.assign(Cs.default.vErrors,(0,Er._)`${Cs.default.vErrors} === null ? ${t} : ${Cs.default.vErrors}.concat(${t})`).assign(Cs.default.errors,(0,Er._)`${Cs.default.vErrors}.length`),(0,QG.extendErrors)(e)},()=>e.error())}function tW({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function vD(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Er.stringify)(r)})}function rW(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}Mn.validSchemaType=rW;function nW({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a?.some(o=>!Object.prototype.hasOwnProperty.call(e,o)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let l=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(l);else throw new Error(l)}}Mn.validateKeywordUsage=nW});var ED=_(qi=>{"use strict";f();Object.defineProperty(qi,"__esModule",{value:!0});qi.extendSubschemaMode=qi.extendSubschemaData=qi.getSubschema=void 0;var qn=qe(),wD=Ke();function iW(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let o=e.schema[t];return r===void 0?{schema:o,schemaPath:(0,qn._)`${e.schemaPath}${(0,qn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:(0,qn._)`${e.schemaPath}${(0,qn.getProperty)(t)}${(0,qn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,wD.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}qi.getSubschema=iW;function sW(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=t;if(r!==void 0){let{errorPath:c,dataPathArr:p,opts:u}=t,h=o.let("data",(0,qn._)`${t.data}${(0,qn.getProperty)(r)}`,!0);l(h),e.errorPath=(0,qn.str)`${c}${(0,wD.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,qn._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(i!==void 0){let c=i instanceof qn.Name?i:o.let("data",i,!0);l(c),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function l(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}qi.extendSubschemaData=sW;function aW(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}qi.extendSubschemaMode=aW});var T0=_((tCe,DD)=>{"use strict";f();DD.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}});var kD=_((nCe,SD)=>{"use strict";f();var ji=SD.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};op(t,n,i,e,"",e)};ji.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ji.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ji.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ji.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function op(e,t,r,n,i,s,a,o,l,c){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,o,l,c);for(var p in n){var u=n[p];if(Array.isArray(u)){if(p in ji.arrayKeywords)for(var h=0;h<u.length;h++)op(e,t,r,u[h],i+"/"+p+"/"+h,s,i,p,n,h)}else if(p in ji.propsKeywords){if(u&&typeof u=="object")for(var d in u)op(e,t,r,u[d],i+"/"+p+"/"+oW(d),s,i,p,n,d)}else(p in ji.keywords||e.allKeys&&!(p in ji.skipKeywords))&&op(e,t,r,u,i+"/"+p,s,i,p,n)}r(n,i,s,a,o,l,c)}}function oW(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Dl=_(Lr=>{"use strict";f();Object.defineProperty(Lr,"__esModule",{value:!0});Lr.getSchemaRefs=Lr.resolveUrl=Lr.normalizeId=Lr._getFullPath=Lr.getFullPath=Lr.inlineRef=void 0;var lW=Ke(),cW=T0(),uW=kD(),pW=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function fW(e,t=!0){return typeof e=="boolean"?!0:t===!0?!A0(e):t?CD(e)<=t:!1}Lr.inlineRef=fW;var dW=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function A0(e){for(let t in e){if(dW.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(A0)||typeof r=="object"&&A0(r))return!0}return!1}function CD(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!pW.has(r)&&(typeof e[r]=="object"&&(0,lW.eachItem)(e[r],n=>t+=CD(n)),t===1/0))return 1/0}return t}function TD(e,t="",r){r!==!1&&(t=Ba(t));let n=e.parse(t);return AD(e,n)}Lr.getFullPath=TD;function AD(e,t){return e.serialize(t).split("#")[0]+"#"}Lr._getFullPath=AD;var hW=/#\/?$/;function Ba(e){return e?e.replace(hW,""):""}Lr.normalizeId=Ba;function mW(e,t,r){return r=Ba(r),e.resolve(t,r)}Lr.resolveUrl=mW;var gW=/^[a-z_][-a-z0-9._]*$/i;function xW(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Ba(e[r]||t),s={"":i},a=TD(n,i,!1),o={},l=new Set;return uW(e,{allKeys:!0},(u,h,d,m)=>{if(m===void 0)return;let b=a+h,v=s[m];typeof u[r]=="string"&&(v=w.call(this,u[r])),T.call(this,u.$anchor),T.call(this,u.$dynamicAnchor),s[h]=v;function w(S){let O=this.opts.uriResolver.resolve;if(S=Ba(v?O(v,S):S),l.has(S))throw p(S);l.add(S);let P=this.refs[S];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?c(u,P.schema,S):S!==Ba(b)&&(S[0]==="#"?(c(u,o[S],S),o[S]=u):this.refs[S]=b),S}function T(S){if(typeof S=="string"){if(!gW.test(S))throw new Error(`invalid anchor "${S}"`);w.call(this,`#${S}`)}}}),o;function c(u,h,d){if(h!==void 0&&!cW(u,h))throw p(d)}function p(u){return new Error(`reference "${u}" resolves to more than one schema`)}}Lr.getSchemaRefs=xW});var Cl=_(Bi=>{"use strict";f();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.getData=Bi.KeywordCxt=Bi.validateFunctionCode=void 0;var LD=cD(),OD=El(),N0=_0(),lp=El(),bW=gD(),kl=_D(),O0=ED(),he=qe(),Te=pi(),yW=Dl(),fi=Ke(),Sl=wl();function vW(e){if(MD(e)&&(qD(e),RD(e))){EW(e);return}PD(e,()=>(0,LD.topBoolOrEmptySchema)(e))}Bi.validateFunctionCode=vW;function PD({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,he._)`${Te.default.data}, ${Te.default.valCxt}`,n.$async,()=>{e.code((0,he._)`"use strict"; ${ND(r,i)}`),wW(e,i),e.code(s)}):e.func(t,(0,he._)`${Te.default.data}, ${_W(i)}`,n.$async,()=>e.code(ND(r,i)).code(s))}function _W(e){return(0,he._)`{${Te.default.instancePath}="", ${Te.default.parentData}, ${Te.default.parentDataProperty}, ${Te.default.rootData}=${Te.default.data}${e.dynamicRef?(0,he._)`, ${Te.default.dynamicAnchors}={}`:he.nil}}={}`}function wW(e,t){e.if(Te.default.valCxt,()=>{e.var(Te.default.instancePath,(0,he._)`${Te.default.valCxt}.${Te.default.instancePath}`),e.var(Te.default.parentData,(0,he._)`${Te.default.valCxt}.${Te.default.parentData}`),e.var(Te.default.parentDataProperty,(0,he._)`${Te.default.valCxt}.${Te.default.parentDataProperty}`),e.var(Te.default.rootData,(0,he._)`${Te.default.valCxt}.${Te.default.rootData}`),t.dynamicRef&&e.var(Te.default.dynamicAnchors,(0,he._)`${Te.default.valCxt}.${Te.default.dynamicAnchors}`)},()=>{e.var(Te.default.instancePath,(0,he._)`""`),e.var(Te.default.parentData,(0,he._)`undefined`),e.var(Te.default.parentDataProperty,(0,he._)`undefined`),e.var(Te.default.rootData,Te.default.data),t.dynamicRef&&e.var(Te.default.dynamicAnchors,(0,he._)`{}`)})}function EW(e){let{schema:t,opts:r,gen:n}=e;PD(e,()=>{r.$comment&&t.$comment&&BD(e),TW(e),n.let(Te.default.vErrors,null),n.let(Te.default.errors,0),r.unevaluated&&DW(e),jD(e),NW(e)})}function DW(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,he._)`${r}.evaluated`),t.if((0,he._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,he._)`${e.evaluated}.props`,(0,he._)`undefined`)),t.if((0,he._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,he._)`${e.evaluated}.items`,(0,he._)`undefined`))}function ND(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,he._)`/*# sourceURL=${r} */`:he.nil}function SW(e,t){if(MD(e)&&(qD(e),RD(e))){kW(e,t);return}(0,LD.boolOrEmptySchema)(e,t)}function RD({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function MD(e){return typeof e.schema!="boolean"}function kW(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&BD(e),AW(e),OW(e);let s=n.const("_errs",Te.default.errors);jD(e,s),n.var(t,(0,he._)`${s} === ${Te.default.errors}`)}function qD(e){(0,fi.checkUnknownRules)(e),CW(e)}function jD(e,t){if(e.opts.jtd)return FD(e,[],!1,t);let r=(0,OD.getSchemaTypes)(e.schema),n=(0,OD.coerceAndCheckDataType)(e,r);FD(e,r,!n,t)}function CW(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,fi.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function TW(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,fi.checkStrictMode)(e,"default is ignored in the schema root")}function AW(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,yW.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function OW(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function BD({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,he._)`${Te.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,he.str)`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code((0,he._)`${Te.default.self}.opts.$comment(${s}, ${a}, ${o}.schema)`)}}function NW(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,he._)`${Te.default.errors} === 0`,()=>t.return(Te.default.data),()=>t.throw((0,he._)`new ${i}(${Te.default.vErrors})`)):(t.assign((0,he._)`${n}.errors`,Te.default.vErrors),s.unevaluated&&FW(e),t.return((0,he._)`${Te.default.errors} === 0`))}function FW({gen:e,evaluated:t,props:r,items:n}){r instanceof he.Name&&e.assign((0,he._)`${t}.props`,r),n instanceof he.Name&&e.assign((0,he._)`${t}.items`,n)}function FD(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:o,opts:l,self:c}=e,{RULES:p}=c;if(s.$ref&&(l.ignoreKeywordsWithRef||!(0,fi.schemaHasRulesButRef)(s,p))){i.block(()=>zD(e,"$ref",p.all.$ref.definition));return}l.jtd||IW(e,t),i.block(()=>{for(let h of p.rules)u(h);u(p.post)});function u(h){(0,N0.shouldUseGroup)(s,h)&&(h.type?(i.if((0,lp.checkDataType)(h.type,a,l.strictNumbers)),ID(e,h),t.length===1&&t[0]===h.type&&r&&(i.else(),(0,lp.reportTypeError)(e)),i.endIf()):ID(e,h),o||i.if((0,he._)`${Te.default.errors} === ${n||0}`))}}function ID(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,bW.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,N0.shouldUseRule)(n,s)&&zD(e,s.keyword,s.definition,t.type)})}function IW(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(LW(e,t),e.opts.allowUnionTypes||PW(e,t),RW(e,e.dataTypes))}function LW(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{$D(e.dataTypes,r)||F0(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),qW(e,t)}}function PW(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&F0(e,"use allowUnionTypes to allow union type keyword")}function RW(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,N0.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>MW(t,a))&&F0(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function MW(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function $D(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function qW(e,t){let r=[];for(let n of e.dataTypes)$D(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function F0(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,fi.checkStrictMode)(e,t,e.opts.strictTypes)}var cp=class{constructor(t,r,n){if((0,kl.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,fi.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",HD(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,kl.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Te.default.errors))}result(t,r,n){this.failResult((0,he.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,he.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,he._)`${r} !== undefined && (${(0,he.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Sl.reportExtraError:Sl.reportError)(this,this.def.error,r)}$dataError(){(0,Sl.reportError)(this,this.def.$dataError||Sl.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Sl.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=he.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=he.nil,r=he.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,he.or)((0,he._)`${i} === undefined`,r)),t!==he.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==he.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,he.or)(a(),o());function a(){if(n.length){if(!(r instanceof he.Name))throw new Error("ajv implementation error");let l=Array.isArray(n)?n:[n];return(0,he._)`${(0,lp.checkDataTypes)(l,r,s.opts.strictNumbers,lp.DataType.Wrong)}`}return he.nil}function o(){if(i.validateSchema){let l=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,he._)`!${l}(${r})`}return he.nil}}subschema(t,r){let n=(0,O0.getSubschema)(this.it,t);(0,O0.extendSubschemaData)(n,this.it,t),(0,O0.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return SW(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=fi.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=fi.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,he.Name)),!0}};Bi.KeywordCxt=cp;function zD(e,t,r,n){let i=new cp(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,kl.funcKeywordCode)(i,r):"macro"in r?(0,kl.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,kl.funcKeywordCode)(i,r)}var jW=/^\/(?:[^~]|~0|~1)*$/,BW=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function HD(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return Te.default.rootData;if(e[0]==="/"){if(!jW.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=Te.default.rootData}else{let c=BW.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+c[1];if(i=c[2],i==="#"){if(p>=t)throw new Error(l("property/index",p));return n[t-p]}if(p>t)throw new Error(l("data",p));if(s=r[t-p],!i)return s}let a=s,o=i.split("/");for(let c of o)c&&(s=(0,he._)`${s}${(0,he.getProperty)((0,fi.unescapeJsonPointer)(c))}`,a=(0,he._)`${a} && ${s}`);return a;function l(c,p){return`Cannot access ${c} ${p} levels up, current level is ${t}`}}Bi.getData=HD});var up=_(L0=>{"use strict";f();Object.defineProperty(L0,"__esModule",{value:!0});var I0=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};L0.default=I0});var Tl=_(M0=>{"use strict";f();Object.defineProperty(M0,"__esModule",{value:!0});var P0=Dl(),R0=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,P0.resolveUrl)(t,r,n),this.missingSchema=(0,P0.normalizeId)((0,P0.getFullPath)(t,this.missingRef))}};M0.default=R0});var fp=_(tn=>{"use strict";f();Object.defineProperty(tn,"__esModule",{value:!0});tn.resolveSchema=tn.getCompilingSchema=tn.resolveRef=tn.compileSchema=tn.SchemaEnv=void 0;var bn=qe(),$W=up(),Ts=pi(),yn=Dl(),UD=Ke(),zW=Cl(),$a=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,yn.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};tn.SchemaEnv=$a;function j0(e){let t=VD.call(this,e);if(t)return t;let r=(0,yn.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new bn.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),o;e.$async&&(o=a.scopeValue("Error",{ref:$W.default,code:(0,bn._)`require("ajv/dist/runtime/validation_error").default`}));let l=a.scopeName("validate");e.validateName=l;let c={gen:a,allErrors:this.opts.allErrors,data:Ts.default.data,parentData:Ts.default.parentData,parentDataProperty:Ts.default.parentDataProperty,dataNames:[Ts.default.data],dataPathArr:[bn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,bn.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:o,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:bn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,bn._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,zW.validateFunctionCode)(c),a.optimize(this.opts.code.optimize);let u=a.toString();p=`${a.scopeRefs(Ts.default.scope)}return ${u}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let d=new Function(`${Ts.default.self}`,`${Ts.default.scope}`,p)(this,this.scope.get());if(this.scope.value(l,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:l,validateCode:u,scopeValues:a._values}),this.opts.unevaluated){let{props:m,items:b}=c;d.evaluated={props:m instanceof bn.Name?void 0:m,items:b instanceof bn.Name?void 0:b,dynamicProps:m instanceof bn.Name,dynamicItems:b instanceof bn.Name},d.source&&(d.source.evaluated=(0,bn.stringify)(d.evaluated))}return e.validate=d,e}catch(u){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),u}finally{this._compilations.delete(e)}}tn.compileSchema=j0;function HW(e,t,r){var n;r=(0,yn.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=GW.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:o}=this.opts;a&&(s=new $a({schema:a,schemaId:o,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=UW.call(this,s)}tn.resolveRef=HW;function UW(e){return(0,yn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:j0.call(this,e)}function VD(e){for(let t of this._compilations)if(VW(t,e))return t}tn.getCompilingSchema=VD;function VW(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function GW(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||pp.call(this,e,t)}function pp(e,t){let r=this.opts.uriResolver.parse(t),n=(0,yn._getFullPath)(this.opts.uriResolver,r),i=(0,yn.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return q0.call(this,r,e);let s=(0,yn.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let o=pp.call(this,e,a);return typeof o?.schema!="object"?void 0:q0.call(this,r,o)}if(typeof a?.schema=="object"){if(a.validate||j0.call(this,a),s===(0,yn.normalizeId)(t)){let{schema:o}=a,{schemaId:l}=this.opts,c=o[l];return c&&(i=(0,yn.resolveUrl)(this.opts.uriResolver,i,c)),new $a({schema:o,schemaId:l,root:e,baseId:i})}return q0.call(this,r,a)}}tn.resolveSchema=pp;var WW=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function q0(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let o of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let l=r[(0,UD.unescapeFragment)(o)];if(l===void 0)return;r=l;let c=typeof r=="object"&&r[this.opts.schemaId];!WW.has(o)&&c&&(t=(0,yn.resolveUrl)(this.opts.uriResolver,t,c))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,UD.schemaHasRulesButRef)(r,this.RULES)){let o=(0,yn.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=pp.call(this,n,o)}let{schemaId:a}=this.opts;if(s=s||new $a({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}});var GD=_((mCe,KW)=>{KW.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var z0=_((gCe,YD)=>{"use strict";f();var ZW=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),KD=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),B0=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),ZD=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),JW=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function $0(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(r=e[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}var QW=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function WD(e){return e.length=0,!0}function YW(e,t,r){if(e.length){let n=$0(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function XW(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,o=YW;for(let l=0;l<e.length;l++){let c=e[l];if(!(c==="["||c==="]"))if(c===":"){if(s===!0&&(a=!0),!o(i,n,r))break;if(++t>7){r.error=!0;break}l>0&&e[l-1]===":"&&(s=!0),n.push(":");continue}else if(c==="%"){if(!o(i,n,r))break;o=WD}else{i.push(c);continue}}return i.length&&(o===WD?r.zone=i.join(""):a?n.push(i.join("")):n.push($0(i))),r.address=n.join(""),r}function JD(e){if(eK(e,":")<2)return{host:e,isIPV6:!1};let t=XW(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}function eK(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function tK(e){let t=e,r=[],n=-1,i=0;for(;i=t.length;){if(i===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(i===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(i===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}var rK={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},nK=/[@/?#:]/g,iK=/[@/?#]/g;function QD(e,t){let r=t?iK:nK;return r.lastIndex=0,e.replace(r,n=>rK[n])}function sK(e,t=!1){if(e.indexOf("%")===-1)return e;let r="";for(let n=0;n<e.length;n++){if(e[n]==="%"&&n+2<e.length){let i=e.slice(n+1,n+3);if(B0(i)){let s=i.toUpperCase(),a=String.fromCharCode(parseInt(s,16));t&&ZD(a)?r+=a:r+="%"+s,n+=2;continue}}r+=e[n]}return r}function aK(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(B0(n)){let i=n.toUpperCase(),s=String.fromCharCode(parseInt(i,16));s!=="."&&ZD(s)?t+=s:t+="%"+i,r+=2;continue}}JW(e[r])?t+=e[r]:t+=escape(e[r])}return t}function oK(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(B0(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function lK(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!KD(r)){let n=JD(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=QD(r,!1)}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}YD.exports={nonSimpleDomain:QW,recomposeAuthority:lK,reescapeHostDelimiters:QD,normalizePercentEncoding:sK,normalizePathEncoding:aK,escapePreservingEscapes:oK,removeDotSegments:tK,isIPv4:KD,isUUID:ZW,normalizeIPv6:JD,stringArrayToHexStripped:$0}});var nS=_((bCe,rS)=>{"use strict";f();var{isUUID:cK}=z0(),uK=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,pK=["http","https","ws","wss","urn","urn:uuid"];function fK(e){return pK.indexOf(e)!==-1}function H0(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function XD(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function eS(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function dK(e){return e.secure=H0(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function hK(e){if((e.port===(H0(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function mK(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(uK);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=U0(i);e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function gK(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=U0(i);s&&(e=s.serialize(e,t));let a=e,o=e.nss;return a.path=`${n||t.nid}:${o}`,t.skipEscape=!0,a}function xK(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!cK(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function bK(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var tS={scheme:"http",domainHost:!0,parse:XD,serialize:eS},yK={scheme:"https",domainHost:tS.domainHost,parse:XD,serialize:eS},dp={scheme:"ws",domainHost:!0,parse:dK,serialize:hK},vK={scheme:"wss",domainHost:dp.domainHost,parse:dp.parse,serialize:dp.serialize},_K={scheme:"urn",parse:mK,serialize:gK,skipNormalize:!0},wK={scheme:"urn:uuid",parse:xK,serialize:bK,skipNormalize:!0},hp={http:tS,https:yK,ws:dp,wss:vK,urn:_K,"urn:uuid":wK};Object.setPrototypeOf(hp,null);function U0(e){return e&&(hp[e]||hp[e.toLowerCase()])||void 0}rS.exports={wsIsSecure:H0,SCHEMES:hp,isValidSchemeName:fK,getSchemeHandler:U0}});var cS=_((vCe,mp)=>{"use strict";f();var{normalizeIPv6:EK,removeDotSegments:Al,recomposeAuthority:DK,normalizePercentEncoding:SK,normalizePathEncoding:kK,escapePreservingEscapes:CK,reescapeHostDelimiters:TK,isIPv4:AK,nonSimpleDomain:OK}=z0(),{SCHEMES:NK,getSchemeHandler:sS}=nS();function FK(e,t){return typeof e=="string"?e=MK(e,t):typeof e=="object"&&(e=za(As(e,t),t)),e}function IK(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},i=aS(za(e,n),za(t,n),n,!0);return n.skipEscape=!0,As(i,n)}function aS(e,t,r,n){let i={};return n||(e=za(As(e,r),r),t=za(As(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Al(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Al(t.path||""),i.query=t.query):(t.path?(t.path[0]==="/"?i.path=Al(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=Al(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function LK(e,t,r){let n=iS(e,r),i=iS(t,r);return n!==void 0&&i!==void 0&&n.toLowerCase()===i.toLowerCase()}function As(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],s=sS(n.scheme||r.scheme);s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=SK(r.path):(r.path=CK(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&i.push(r.scheme,":");let a=DK(r);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path[0]!=="/"&&i.push("/")),r.path!==void 0){let o=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(o=Al(o)),a===void 0&&o[0]==="/"&&o[1]==="/"&&(o="/%2F"+o.slice(2)),i.push(o)}return r.query!==void 0&&i.push("?",r.query),r.fragment!==void 0&&i.push("#",r.fragment),i.join("")}var PK=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function RK(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port=="number"&&(e.port<0||e.port>65535))return"URI port is malformed."}function oS(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=!1,s=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let a=e.match(PK);if(a){n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]);let o=RK(n,a);if(o!==void 0&&(n.error=n.error||o,i=!0),n.host)if(AK(n.host)===!1){let p=EK(n.host);n.host=p.host.toLowerCase(),s=p.isIPV6}else s=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let l=sS(r.scheme||n.scheme);if(!r.unicodeSupport&&(!l||!l.unicodeSupport)&&n.host&&(r.domainHost||l&&l.domainHost)&&s===!1&&OK(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}if((!l||l&&!l.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=TK(unescape(n.host),s))),n.path&&(n.path=kK(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}l&&l.parse&&l.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:i}}function za(e,t){return oS(e,t).parsed}function MK(e,t){return lS(e,t).normalized}function lS(e,t){let{parsed:r,malformedAuthorityOrPort:n}=oS(e,t);return{normalized:n?e:As(r,t),malformedAuthorityOrPort:n}}function iS(e,t){if(typeof e=="string"){let{normalized:r,malformedAuthorityOrPort:n}=lS(e,t);return n?void 0:r}if(typeof e=="object")return As(e,t)}var V0={SCHEMES:NK,normalize:FK,resolve:IK,resolveComponent:aS,equal:LK,serialize:As,parse:za};mp.exports=V0;mp.exports.default=V0;mp.exports.fastUri=V0});var pS=_(G0=>{"use strict";f();Object.defineProperty(G0,"__esModule",{value:!0});var uS=cS();uS.code='require("ajv/dist/runtime/uri").default';G0.default=uS});var yS=_(nr=>{"use strict";f();Object.defineProperty(nr,"__esModule",{value:!0});nr.CodeGen=nr.Name=nr.nil=nr.stringify=nr.str=nr._=nr.KeywordCxt=void 0;var qK=Cl();Object.defineProperty(nr,"KeywordCxt",{enumerable:!0,get:function(){return qK.KeywordCxt}});var Ha=qe();Object.defineProperty(nr,"_",{enumerable:!0,get:function(){return Ha._}});Object.defineProperty(nr,"str",{enumerable:!0,get:function(){return Ha.str}});Object.defineProperty(nr,"stringify",{enumerable:!0,get:function(){return Ha.stringify}});Object.defineProperty(nr,"nil",{enumerable:!0,get:function(){return Ha.nil}});Object.defineProperty(nr,"Name",{enumerable:!0,get:function(){return Ha.Name}});Object.defineProperty(nr,"CodeGen",{enumerable:!0,get:function(){return Ha.CodeGen}});var jK=up(),gS=Tl(),BK=v0(),Ol=fp(),$K=qe(),Nl=Dl(),gp=El(),K0=Ke(),fS=GD(),zK=pS(),xS=(e,t)=>new RegExp(e,t);xS.code="new RegExp";var HK=["removeAdditional","useDefaults","coerceTypes"],UK=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),VK={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},GK={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},dS=200;function WK(e){var t,r,n,i,s,a,o,l,c,p,u,h,d,m,b,v,w,T,S,O,P,A,K,ee,J;let L=e.strict,N=(t=e.code)===null||t===void 0?void 0:t.optimize,$=N===!0||N===void 0?1:N||0,q=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:xS,E=(i=e.uriResolver)!==null&&i!==void 0?i:zK.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:L)!==null&&a!==void 0?a:!0,strictNumbers:(l=(o=e.strictNumbers)!==null&&o!==void 0?o:L)!==null&&l!==void 0?l:!0,strictTypes:(p=(c=e.strictTypes)!==null&&c!==void 0?c:L)!==null&&p!==void 0?p:"log",strictTuples:(h=(u=e.strictTuples)!==null&&u!==void 0?u:L)!==null&&h!==void 0?h:"log",strictRequired:(m=(d=e.strictRequired)!==null&&d!==void 0?d:L)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:$,regExp:q}:{optimize:$,regExp:q},loopRequired:(b=e.loopRequired)!==null&&b!==void 0?b:dS,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:dS,meta:(w=e.meta)!==null&&w!==void 0?w:!0,messages:(T=e.messages)!==null&&T!==void 0?T:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(O=e.schemaId)!==null&&O!==void 0?O:"$id",addUsedSchema:(P=e.addUsedSchema)!==null&&P!==void 0?P:!0,validateSchema:(A=e.validateSchema)!==null&&A!==void 0?A:!0,validateFormats:(K=e.validateFormats)!==null&&K!==void 0?K:!0,unicodeRegExp:(ee=e.unicodeRegExp)!==null&&ee!==void 0?ee:!0,int32range:(J=e.int32range)!==null&&J!==void 0?J:!0,uriResolver:E}}var Fl=class{constructor(t={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...WK(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new $K.ValueScope({scope:{},prefixes:UK,es5:r,lines:n}),this.logger=XK(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,BK.getRules)(),hS.call(this,VK,t,"NOT SUPPORTED"),hS.call(this,GK,t,"DEPRECATED","warn"),this._metaOpts=QK.call(this),t.formats&&ZK.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&JK.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),KK.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=fS;n==="id"&&(i={...fS},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(p,u){await s.call(this,p.$schema);let h=this._addSchema(p,u);return h.validate||a.call(this,h)}async function s(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function a(p){try{return this._compileSchemaEnv(p)}catch(u){if(!(u instanceof gS.default))throw u;return o.call(this,u),await l.call(this,u.missingSchema),a.call(this,p)}}function o({missingSchema:p,missingRef:u}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${u} cannot be resolved`)}async function l(p){let u=await c.call(this,p);this.refs[p]||await s.call(this,u.$schema),this.refs[p]||this.addSchema(u,p,r)}async function c(p){let u=this._loading[p];if(u)return u;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Nl.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=mS.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Ol.SchemaEnv({schema:{},schemaId:n});if(r=Ol.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=mS.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Nl.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(tZ.call(this,n,r),!r)return(0,K0.eachItem)(n,s=>W0.call(this,s)),this;nZ.call(this,r);let i={...r,type:(0,gp.getJSONTypes)(r.type),schemaType:(0,gp.getJSONTypes)(r.schemaType)};return(0,K0.eachItem)(n,i.type.length===0?s=>W0.call(this,s,i):s=>i.type.forEach(a=>W0.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let o of s)a=a[o];for(let o in n){let l=n[o];if(typeof l!="object")continue;let{$data:c}=l.definition,p=a[o];c&&p&&(a[o]=bS(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId:o}=this.opts;if(typeof t=="object")a=t[o];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let l=this._cache.get(t);if(l!==void 0)return l;n=(0,Nl.normalizeId)(a||n);let c=Nl.getSchemaRefs.call(this,t,n);return l=new Ol.SchemaEnv({schema:t,schemaId:o,meta:r,baseId:n,localRefs:c}),this._cache.set(l.schema,l),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=l),i&&this.validateSchema(t,!0),l}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Ol.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Ol.compileSchema.call(this,t)}finally{this.opts=r}}};Fl.ValidationError=jK.default;Fl.MissingRefError=gS.default;nr.default=Fl;function hS(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}function mS(e){return e=(0,Nl.normalizeId)(e),this.schemas[e]||this.refs[e]}function KK(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function ZK(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function JK(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function QK(){let e={...this.opts};for(let t of HK)delete e[t];return e}var YK={log(){},warn(){},error(){}};function XK(e){if(e===!1)return YK;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var eZ=/^[a-z_$][a-z0-9_$:-]*$/i;function tZ(e,t){let{RULES:r}=this;if((0,K0.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!eZ.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function W0(e,t,r){var n;let i=t?.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:l})=>l===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let o={keyword:e,definition:{...t,type:(0,gp.getJSONTypes)(t.type),schemaType:(0,gp.getJSONTypes)(t.schemaType)}};t.before?rZ.call(this,a,o,t.before):a.rules.push(o),s.all[e]=o,(n=t.implements)===null||n===void 0||n.forEach(l=>this.addKeyword(l))}function rZ(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function nZ(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=bS(t)),e.validateSchema=this.compile(t,!0))}var iZ={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function bS(e){return{anyOf:[e,iZ]}}});var vS=_(Z0=>{"use strict";f();Object.defineProperty(Z0,"__esModule",{value:!0});var sZ={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Z0.default=sZ});var DS=_(Os=>{"use strict";f();Object.defineProperty(Os,"__esModule",{value:!0});Os.callRef=Os.getValidate=void 0;var aZ=Tl(),_S=en(),Pr=qe(),Ua=pi(),wS=fp(),xp=Ke(),oZ={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:o,self:l}=n,{root:c}=s;if((r==="#"||r==="#/")&&i===c.baseId)return u();let p=wS.resolveRef.call(l,c,i,r);if(p===void 0)throw new aZ.default(n.opts.uriResolver,i,r);if(p instanceof wS.SchemaEnv)return h(p);return d(p);function u(){if(s===c)return bp(e,a,s,s.$async);let m=t.scopeValue("root",{ref:c});return bp(e,(0,Pr._)`${m}.validate`,c,c.$async)}function h(m){let b=ES(e,m);bp(e,b,m,m.$async)}function d(m){let b=t.scopeValue("schema",o.code.source===!0?{ref:m,code:(0,Pr.stringify)(m)}:{ref:m}),v=t.name("valid"),w=e.subschema({schema:m,dataTypes:[],schemaPath:Pr.nil,topSchemaRef:b,errSchemaPath:r},v);e.mergeEvaluated(w),e.ok(v)}}};function ES(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Pr._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Os.getValidate=ES;function bp(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:o,opts:l}=s,c=l.passContext?Ua.default.this:Pr.nil;n?p():u();function p(){if(!o.$async)throw new Error("async schema referenced by sync schema");let m=i.let("valid");i.try(()=>{i.code((0,Pr._)`await ${(0,_S.callValidateCode)(e,t,c)}`),d(t),a||i.assign(m,!0)},b=>{i.if((0,Pr._)`!(${b} instanceof ${s.ValidationError})`,()=>i.throw(b)),h(b),a||i.assign(m,!1)}),e.ok(m)}function u(){e.result((0,_S.callValidateCode)(e,t,c),()=>d(t),()=>h(t))}function h(m){let b=(0,Pr._)`${m}.errors`;i.assign(Ua.default.vErrors,(0,Pr._)`${Ua.default.vErrors} === null ? ${b} : ${Ua.default.vErrors}.concat(${b})`),i.assign(Ua.default.errors,(0,Pr._)`${Ua.default.vErrors}.length`)}function d(m){var b;if(!s.opts.unevaluated)return;let v=(b=r?.validate)===null||b===void 0?void 0:b.evaluated;if(s.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(s.props=xp.mergeEvaluated.props(i,v.props,s.props));else{let w=i.var("props",(0,Pr._)`${m}.evaluated.props`);s.props=xp.mergeEvaluated.props(i,w,s.props,Pr.Name)}if(s.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(s.items=xp.mergeEvaluated.items(i,v.items,s.items));else{let w=i.var("items",(0,Pr._)`${m}.evaluated.items`);s.items=xp.mergeEvaluated.items(i,w,s.items,Pr.Name)}}}Os.callRef=bp;Os.default=oZ});var SS=_(J0=>{"use strict";f();Object.defineProperty(J0,"__esModule",{value:!0});var lZ=vS(),cZ=DS(),uZ=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",lZ.default,cZ.default];J0.default=uZ});var kS=_(Q0=>{"use strict";f();Object.defineProperty(Q0,"__esModule",{value:!0});var yp=qe(),$i=yp.operators,vp={maximum:{okStr:"<=",ok:$i.LTE,fail:$i.GT},minimum:{okStr:">=",ok:$i.GTE,fail:$i.LT},exclusiveMaximum:{okStr:"<",ok:$i.LT,fail:$i.GTE},exclusiveMinimum:{okStr:">",ok:$i.GT,fail:$i.LTE}},pZ={message:({keyword:e,schemaCode:t})=>(0,yp.str)`must be ${vp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,yp._)`{comparison: ${vp[e].okStr}, limit: ${t}}`},fZ={keyword:Object.keys(vp),type:"number",schemaType:"number",$data:!0,error:pZ,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,yp._)`${r} ${vp[t].fail} ${n} || isNaN(${r})`)}};Q0.default=fZ});var CS=_(Y0=>{"use strict";f();Object.defineProperty(Y0,"__esModule",{value:!0});var Il=qe(),dZ={message:({schemaCode:e})=>(0,Il.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Il._)`{multipleOf: ${e}}`},hZ={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:dZ,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),o=s?(0,Il._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Il._)`${a} !== parseInt(${a})`;e.fail$data((0,Il._)`(${n} === 0 || (${a} = ${r}/${n}, ${o}))`)}};Y0.default=hZ});var AS=_(X0=>{"use strict";f();Object.defineProperty(X0,"__esModule",{value:!0});function TS(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}X0.default=TS;TS.code='require("ajv/dist/runtime/ucs2length").default'});var OS=_(eg=>{"use strict";f();Object.defineProperty(eg,"__esModule",{value:!0});var Ns=qe(),mZ=Ke(),gZ=AS(),xZ={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Ns.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Ns._)`{limit: ${e}}`},bZ={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:xZ,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?Ns.operators.GT:Ns.operators.LT,a=i.opts.unicode===!1?(0,Ns._)`${r}.length`:(0,Ns._)`${(0,mZ.useFunc)(e.gen,gZ.default)}(${r})`;e.fail$data((0,Ns._)`${a} ${s} ${n}`)}};eg.default=bZ});var NS=_(tg=>{"use strict";f();Object.defineProperty(tg,"__esModule",{value:!0});var yZ=en(),vZ=Ke(),Va=qe(),_Z={message:({schemaCode:e})=>(0,Va.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Va._)`{pattern: ${e}}`},wZ={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:_Z,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e,o=a.opts.unicodeRegExp?"u":"";if(n){let{regExp:l}=a.opts.code,c=l.code==="new RegExp"?(0,Va._)`new RegExp`:(0,vZ.useFunc)(t,l),p=t.let("valid");t.try(()=>t.assign(p,(0,Va._)`${c}(${s}, ${o}).test(${r})`),()=>t.assign(p,!1)),e.fail$data((0,Va._)`!${p}`)}else{let l=(0,yZ.usePattern)(e,i);e.fail$data((0,Va._)`!${l}.test(${r})`)}}};tg.default=wZ});var FS=_(rg=>{"use strict";f();Object.defineProperty(rg,"__esModule",{value:!0});var Ll=qe(),EZ={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Ll.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Ll._)`{limit: ${e}}`},DZ={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:EZ,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Ll.operators.GT:Ll.operators.LT;e.fail$data((0,Ll._)`Object.keys(${r}).length ${i} ${n}`)}};rg.default=DZ});var IS=_(ng=>{"use strict";f();Object.defineProperty(ng,"__esModule",{value:!0});var Pl=en(),Rl=qe(),SZ=Ke(),kZ={message:({params:{missingProperty:e}})=>(0,Rl.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Rl._)`{missingProperty: ${e}}`},CZ={keyword:"required",type:"object",schemaType:"array",$data:!0,error:kZ,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:o}=a;if(!s&&r.length===0)return;let l=r.length>=o.loopRequired;if(a.allErrors?c():p(),o.strictRequired){let d=e.parentSchema.properties,{definedProperties:m}=e.it;for(let b of r)if(d?.[b]===void 0&&!m.has(b)){let v=a.schemaEnv.baseId+a.errSchemaPath,w=`required property "${b}" is not defined at "${v}" (strictRequired)`;(0,SZ.checkStrictMode)(a,w,a.opts.strictRequired)}}function c(){if(l||s)e.block$data(Rl.nil,u);else for(let d of r)(0,Pl.checkReportMissingProp)(e,d)}function p(){let d=t.let("missing");if(l||s){let m=t.let("valid",!0);e.block$data(m,()=>h(d,m)),e.ok(m)}else t.if((0,Pl.checkMissingProp)(e,r,d)),(0,Pl.reportMissingProp)(e,d),t.else()}function u(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Pl.noPropertyInData)(t,i,d,o.ownProperties),()=>e.error())})}function h(d,m){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(m,(0,Pl.propertyInData)(t,i,d,o.ownProperties)),t.if((0,Rl.not)(m),()=>{e.error(),t.break()})},Rl.nil)}}};ng.default=CZ});var LS=_(ig=>{"use strict";f();Object.defineProperty(ig,"__esModule",{value:!0});var Ml=qe(),TZ={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ml.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Ml._)`{limit: ${e}}`},AZ={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:TZ,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ml.operators.GT:Ml.operators.LT;e.fail$data((0,Ml._)`${r}.length ${i} ${n}`)}};ig.default=AZ});var _p=_(sg=>{"use strict";f();Object.defineProperty(sg,"__esModule",{value:!0});var PS=T0();PS.code='require("ajv/dist/runtime/equal").default';sg.default=PS});var RS=_(og=>{"use strict";f();Object.defineProperty(og,"__esModule",{value:!0});var ag=El(),ir=qe(),OZ=Ke(),NZ=_p(),FZ={message:({params:{i:e,j:t}})=>(0,ir.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,ir._)`{i: ${e}, j: ${t}}`},IZ={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:FZ,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:o}=e;if(!n&&!i)return;let l=t.let("valid"),c=s.items?(0,ag.getSchemaTypes)(s.items):[];e.block$data(l,p,(0,ir._)`${a} === false`),e.ok(l);function p(){let m=t.let("i",(0,ir._)`${r}.length`),b=t.let("j");e.setParams({i:m,j:b}),t.assign(l,!0),t.if((0,ir._)`${m} > 1`,()=>(u()?h:d)(m,b))}function u(){return c.length>0&&!c.some(m=>m==="object"||m==="array")}function h(m,b){let v=t.name("item"),w=(0,ag.checkDataTypes)(c,v,o.opts.strictNumbers,ag.DataType.Wrong),T=t.const("indices",(0,ir._)`{}`);t.for((0,ir._)`;${m}--;`,()=>{t.let(v,(0,ir._)`${r}[${m}]`),t.if(w,(0,ir._)`continue`),c.length>1&&t.if((0,ir._)`typeof ${v} == "string"`,(0,ir._)`${v} += "_"`),t.if((0,ir._)`typeof ${T}[${v}] == "number"`,()=>{t.assign(b,(0,ir._)`${T}[${v}]`),e.error(),t.assign(l,!1).break()}).code((0,ir._)`${T}[${v}] = ${m}`)})}function d(m,b){let v=(0,OZ.useFunc)(t,NZ.default),w=t.name("outer");t.label(w).for((0,ir._)`;${m}--;`,()=>t.for((0,ir._)`${b} = ${m}; ${b}--;`,()=>t.if((0,ir._)`${v}(${r}[${m}], ${r}[${b}])`,()=>{e.error(),t.assign(l,!1).break(w)})))}}};og.default=IZ});var MS=_(cg=>{"use strict";f();Object.defineProperty(cg,"__esModule",{value:!0});var lg=qe(),LZ=Ke(),PZ=_p(),RZ={message:"must be equal to constant",params:({schemaCode:e})=>(0,lg._)`{allowedValue: ${e}}`},MZ={keyword:"const",$data:!0,error:RZ,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,lg._)`!${(0,LZ.useFunc)(t,PZ.default)}(${r}, ${i})`):e.fail((0,lg._)`${s} !== ${r}`)}};cg.default=MZ});var qS=_(ug=>{"use strict";f();Object.defineProperty(ug,"__esModule",{value:!0});var ql=qe(),qZ=Ke(),jZ=_p(),BZ={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,ql._)`{allowedValues: ${e}}`},$Z={keyword:"enum",schemaType:"array",$data:!0,error:BZ,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let o=i.length>=a.opts.loopEnum,l,c=()=>l??(l=(0,qZ.useFunc)(t,jZ.default)),p;if(o||n)p=t.let("valid"),e.block$data(p,u);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=t.const("vSchema",s);p=(0,ql.or)(...i.map((m,b)=>h(d,b)))}e.pass(p);function u(){t.assign(p,!1),t.forOf("v",s,d=>t.if((0,ql._)`${c()}(${r}, ${d})`,()=>t.assign(p,!0).break()))}function h(d,m){let b=i[m];return typeof b=="object"&&b!==null?(0,ql._)`${c()}(${r}, ${d}[${m}])`:(0,ql._)`${r} === ${b}`}}};ug.default=$Z});var jS=_(pg=>{"use strict";f();Object.defineProperty(pg,"__esModule",{value:!0});var zZ=kS(),HZ=CS(),UZ=OS(),VZ=NS(),GZ=FS(),WZ=IS(),KZ=LS(),ZZ=RS(),JZ=MS(),QZ=qS(),YZ=[zZ.default,HZ.default,UZ.default,VZ.default,GZ.default,WZ.default,KZ.default,ZZ.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},JZ.default,QZ.default];pg.default=YZ});var dg=_(jl=>{"use strict";f();Object.defineProperty(jl,"__esModule",{value:!0});jl.validateAdditionalItems=void 0;var Fs=qe(),fg=Ke(),XZ={message:({params:{len:e}})=>(0,Fs.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Fs._)`{limit: ${e}}`},eJ={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:XZ,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,fg.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}BS(e,n)}};function BS(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let o=r.const("len",(0,Fs._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Fs._)`${o} <= ${t.length}`);else if(typeof n=="object"&&!(0,fg.alwaysValidSchema)(a,n)){let c=r.var("valid",(0,Fs._)`${o} <= ${t.length}`);r.if((0,Fs.not)(c),()=>l(c)),e.ok(c)}function l(c){r.forRange("i",t.length,o,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:fg.Type.Num},c),a.allErrors||r.if((0,Fs.not)(c),()=>r.break())})}}jl.validateAdditionalItems=BS;jl.default=eJ});var hg=_(Bl=>{"use strict";f();Object.defineProperty(Bl,"__esModule",{value:!0});Bl.validateTuple=void 0;var $S=qe(),wp=Ke(),tJ=en(),rJ={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return zS(e,"additionalItems",t);r.items=!0,!(0,wp.alwaysValidSchema)(r,t)&&e.ok((0,tJ.validateArray)(e))}};function zS(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:o}=e;p(i),o.opts.unevaluated&&r.length&&o.items!==!0&&(o.items=wp.mergeEvaluated.items(n,r.length,o.items));let l=n.name("valid"),c=n.const("len",(0,$S._)`${s}.length`);r.forEach((u,h)=>{(0,wp.alwaysValidSchema)(o,u)||(n.if((0,$S._)`${c} > ${h}`,()=>e.subschema({keyword:a,schemaProp:h,dataProp:h},l)),e.ok(l))});function p(u){let{opts:h,errSchemaPath:d}=o,m=r.length,b=m===u.minItems&&(m===u.maxItems||u[t]===!1);if(h.strictTuples&&!b){let v=`"${a}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,wp.checkStrictMode)(o,v,h.strictTuples)}}}Bl.validateTuple=zS;Bl.default=rJ});var HS=_(mg=>{"use strict";f();Object.defineProperty(mg,"__esModule",{value:!0});var nJ=hg(),iJ={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,nJ.validateTuple)(e,"items")};mg.default=iJ});var VS=_(gg=>{"use strict";f();Object.defineProperty(gg,"__esModule",{value:!0});var US=qe(),sJ=Ke(),aJ=en(),oJ=dg(),lJ={message:({params:{len:e}})=>(0,US.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,US._)`{limit: ${e}}`},cJ={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:lJ,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,sJ.alwaysValidSchema)(n,t)&&(i?(0,oJ.validateAdditionalItems)(e,i):e.ok((0,aJ.validateArray)(e)))}};gg.default=cJ});var GS=_(xg=>{"use strict";f();Object.defineProperty(xg,"__esModule",{value:!0});var rn=qe(),Ep=Ke(),uJ={message:({params:{min:e,max:t}})=>t===void 0?(0,rn.str)`must contain at least ${e} valid item(s)`:(0,rn.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,rn._)`{minContains: ${e}}`:(0,rn._)`{minContains: ${e}, maxContains: ${t}}`},pJ={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:uJ,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,o,{minContains:l,maxContains:c}=n;s.opts.next?(a=l===void 0?1:l,o=c):a=1;let p=t.const("len",(0,rn._)`${i}.length`);if(e.setParams({min:a,max:o}),o===void 0&&a===0){(0,Ep.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&a>o){(0,Ep.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Ep.alwaysValidSchema)(s,r)){let b=(0,rn._)`${p} >= ${a}`;o!==void 0&&(b=(0,rn._)`${b} && ${p} <= ${o}`),e.pass(b);return}s.items=!0;let u=t.name("valid");o===void 0&&a===1?d(u,()=>t.if(u,()=>t.break())):a===0?(t.let(u,!0),o!==void 0&&t.if((0,rn._)`${i}.length > 0`,h)):(t.let(u,!1),h()),e.result(u,()=>e.reset());function h(){let b=t.name("_valid"),v=t.let("count",0);d(b,()=>t.if(b,()=>m(v)))}function d(b,v){t.forRange("i",0,p,w=>{e.subschema({keyword:"contains",dataProp:w,dataPropType:Ep.Type.Num,compositeRule:!0},b),v()})}function m(b){t.code((0,rn._)`${b}++`),o===void 0?t.if((0,rn._)`${b} >= ${a}`,()=>t.assign(u,!0).break()):(t.if((0,rn._)`${b} > ${o}`,()=>t.assign(u,!1).break()),a===1?t.assign(u,!0):t.if((0,rn._)`${b} >= ${a}`,()=>t.assign(u,!0)))}}};xg.default=pJ});var ZS=_(jn=>{"use strict";f();Object.defineProperty(jn,"__esModule",{value:!0});jn.validateSchemaDeps=jn.validatePropertyDeps=jn.error=void 0;var bg=qe(),fJ=Ke(),$l=en();jn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,bg.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,bg._)`{property: ${e},
|
|
94
|
+
missingProperty: ${n},
|
|
95
|
+
depsCount: ${t},
|
|
96
|
+
deps: ${r}}`};var dJ={keyword:"dependencies",type:"object",schemaType:"object",error:jn.error,code(e){let[t,r]=hJ(e);WS(e,t),KS(e,r)}};function hJ({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}function WS(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let o=t[a];if(o.length===0)continue;let l=(0,$l.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:o.length,deps:o.join(", ")}),i.allErrors?r.if(l,()=>{for(let c of o)(0,$l.checkReportMissingProp)(e,c)}):(r.if((0,bg._)`${l} && (${(0,$l.checkMissingProp)(e,o,s)})`),(0,$l.reportMissingProp)(e,s),r.else())}}jn.validatePropertyDeps=WS;function KS(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let o in t)(0,fJ.alwaysValidSchema)(s,t[o])||(r.if((0,$l.propertyInData)(r,n,o,s.opts.ownProperties),()=>{let l=e.subschema({keyword:i,schemaProp:o},a);e.mergeValidEvaluated(l,a)},()=>r.var(a,!0)),e.ok(a))}jn.validateSchemaDeps=KS;jn.default=dJ});var QS=_(yg=>{"use strict";f();Object.defineProperty(yg,"__esModule",{value:!0});var JS=qe(),mJ=Ke(),gJ={message:"property name must be valid",params:({params:e})=>(0,JS._)`{propertyName: ${e.propertyName}}`},xJ={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:gJ,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,mJ.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,JS.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};yg.default=xJ});var _g=_(vg=>{"use strict";f();Object.defineProperty(vg,"__esModule",{value:!0});var Dp=en(),vn=qe(),bJ=pi(),Sp=Ke(),yJ={message:"must NOT have additional properties",params:({params:e})=>(0,vn._)`{additionalProperty: ${e.additionalProperty}}`},vJ={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:yJ,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:o,opts:l}=a;if(a.props=!0,l.removeAdditional!=="all"&&(0,Sp.alwaysValidSchema)(a,r))return;let c=(0,Dp.allSchemaProperties)(n.properties),p=(0,Dp.allSchemaProperties)(n.patternProperties);u(),e.ok((0,vn._)`${s} === ${bJ.default.errors}`);function u(){t.forIn("key",i,v=>{!c.length&&!p.length?m(v):t.if(h(v),()=>m(v))})}function h(v){let w;if(c.length>8){let T=(0,Sp.schemaRefOrVal)(a,n.properties,"properties");w=(0,Dp.isOwnProperty)(t,T,v)}else c.length?w=(0,vn.or)(...c.map(T=>(0,vn._)`${v} === ${T}`)):w=vn.nil;return p.length&&(w=(0,vn.or)(w,...p.map(T=>(0,vn._)`${(0,Dp.usePattern)(e,T)}.test(${v})`))),(0,vn.not)(w)}function d(v){t.code((0,vn._)`delete ${i}[${v}]`)}function m(v){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1){d(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),o||t.break();return}if(typeof r=="object"&&!(0,Sp.alwaysValidSchema)(a,r)){let w=t.name("valid");l.removeAdditional==="failing"?(b(v,w,!1),t.if((0,vn.not)(w),()=>{e.reset(),d(v)})):(b(v,w),o||t.if((0,vn.not)(w),()=>t.break()))}}function b(v,w,T){let S={keyword:"additionalProperties",dataProp:v,dataPropType:Sp.Type.Str};T===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,w)}}};vg.default=vJ});var ek=_(Eg=>{"use strict";f();Object.defineProperty(Eg,"__esModule",{value:!0});var _J=Cl(),YS=en(),wg=Ke(),XS=_g(),wJ={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&XS.default.code(new _J.KeywordCxt(s,XS.default,"additionalProperties"));let a=(0,YS.allSchemaProperties)(r);for(let u of a)s.definedProperties.add(u);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=wg.mergeEvaluated.props(t,(0,wg.toHash)(a),s.props));let o=a.filter(u=>!(0,wg.alwaysValidSchema)(s,r[u]));if(o.length===0)return;let l=t.name("valid");for(let u of o)c(u)?p(u):(t.if((0,YS.propertyInData)(t,i,u,s.opts.ownProperties)),p(u),s.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(u),e.ok(l);function c(u){return s.opts.useDefaults&&!s.compositeRule&&r[u].default!==void 0}function p(u){e.subschema({keyword:"properties",schemaProp:u,dataProp:u},l)}}};Eg.default=wJ});var ik=_(Dg=>{"use strict";f();Object.defineProperty(Dg,"__esModule",{value:!0});var tk=en(),kp=qe(),rk=Ke(),nk=Ke(),EJ={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,o=(0,tk.allSchemaProperties)(r),l=o.filter(b=>(0,rk.alwaysValidSchema)(s,r[b]));if(o.length===0||l.length===o.length&&(!s.opts.unevaluated||s.props===!0))return;let c=a.strictSchema&&!a.allowMatchingProperties&&i.properties,p=t.name("valid");s.props!==!0&&!(s.props instanceof kp.Name)&&(s.props=(0,nk.evaluatedPropsToName)(t,s.props));let{props:u}=s;h();function h(){for(let b of o)c&&d(b),s.allErrors?m(b):(t.var(p,!0),m(b),t.if(p))}function d(b){for(let v in c)new RegExp(b).test(v)&&(0,rk.checkStrictMode)(s,`property ${v} matches pattern ${b} (use allowMatchingProperties)`)}function m(b){t.forIn("key",n,v=>{t.if((0,kp._)`${(0,tk.usePattern)(e,b)}.test(${v})`,()=>{let w=l.includes(b);w||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:v,dataPropType:nk.Type.Str},p),s.opts.unevaluated&&u!==!0?t.assign((0,kp._)`${u}[${v}]`,!0):!w&&!s.allErrors&&t.if((0,kp.not)(p),()=>t.break())})})}}};Dg.default=EJ});var sk=_(Sg=>{"use strict";f();Object.defineProperty(Sg,"__esModule",{value:!0});var DJ=Ke(),SJ={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,DJ.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Sg.default=SJ});var ak=_(kg=>{"use strict";f();Object.defineProperty(kg,"__esModule",{value:!0});var kJ=en(),CJ={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:kJ.validateUnion,error:{message:"must match a schema in anyOf"}};kg.default=CJ});var ok=_(Cg=>{"use strict";f();Object.defineProperty(Cg,"__esModule",{value:!0});var Cp=qe(),TJ=Ke(),AJ={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Cp._)`{passingSchemas: ${e.passing}}`},OJ={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:AJ,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),o=t.let("passing",null),l=t.name("_valid");e.setParams({passing:o}),t.block(c),e.result(a,()=>e.reset(),()=>e.error(!0));function c(){s.forEach((p,u)=>{let h;(0,TJ.alwaysValidSchema)(i,p)?t.var(l,!0):h=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},l),u>0&&t.if((0,Cp._)`${l} && ${a}`).assign(a,!1).assign(o,(0,Cp._)`[${o}, ${u}]`).else(),t.if(l,()=>{t.assign(a,!0),t.assign(o,u),h&&e.mergeEvaluated(h,Cp.Name)})})}}};Cg.default=OJ});var lk=_(Tg=>{"use strict";f();Object.defineProperty(Tg,"__esModule",{value:!0});var NJ=Ke(),FJ={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,NJ.alwaysValidSchema)(n,s))return;let o=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(o)})}};Tg.default=FJ});var pk=_(Ag=>{"use strict";f();Object.defineProperty(Ag,"__esModule",{value:!0});var Tp=qe(),uk=Ke(),IJ={message:({params:e})=>(0,Tp.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Tp._)`{failingKeyword: ${e.ifClause}}`},LJ={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:IJ,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,uk.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=ck(n,"then"),s=ck(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),o=t.name("_valid");if(l(),e.reset(),i&&s){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(o,c("then",p),c("else",p))}else i?t.if(o,c("then")):t.if((0,Tp.not)(o),c("else"));e.pass(a,()=>e.error(!0));function l(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);e.mergeEvaluated(p)}function c(p,u){return()=>{let h=e.subschema({keyword:p},o);t.assign(a,o),e.mergeValidEvaluated(h,a),u?t.assign(u,(0,Tp._)`${p}`):e.setParams({ifClause:p})}}}};function ck(e,t){let r=e.schema[t];return r!==void 0&&!(0,uk.alwaysValidSchema)(e,r)}Ag.default=LJ});var fk=_(Og=>{"use strict";f();Object.defineProperty(Og,"__esModule",{value:!0});var PJ=Ke(),RJ={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,PJ.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Og.default=RJ});var dk=_(Ng=>{"use strict";f();Object.defineProperty(Ng,"__esModule",{value:!0});var MJ=dg(),qJ=HS(),jJ=hg(),BJ=VS(),$J=GS(),zJ=ZS(),HJ=QS(),UJ=_g(),VJ=ek(),GJ=ik(),WJ=sk(),KJ=ak(),ZJ=ok(),JJ=lk(),QJ=pk(),YJ=fk();function XJ(e=!1){let t=[WJ.default,KJ.default,ZJ.default,JJ.default,QJ.default,YJ.default,HJ.default,UJ.default,zJ.default,VJ.default,GJ.default];return e?t.push(qJ.default,BJ.default):t.push(MJ.default,jJ.default),t.push($J.default),t}Ng.default=XJ});var hk=_(Fg=>{"use strict";f();Object.defineProperty(Fg,"__esModule",{value:!0});var Rt=qe(),eQ={message:({schemaCode:e})=>(0,Rt.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Rt._)`{format: ${e}}`},tQ={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:eQ,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:o}=e,{opts:l,errSchemaPath:c,schemaEnv:p,self:u}=o;if(!l.validateFormats)return;i?h():d();function h(){let m=r.scopeValue("formats",{ref:u.formats,code:l.code.formats}),b=r.const("fDef",(0,Rt._)`${m}[${a}]`),v=r.let("fType"),w=r.let("format");r.if((0,Rt._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>r.assign(v,(0,Rt._)`${b}.type || "string"`).assign(w,(0,Rt._)`${b}.validate`),()=>r.assign(v,(0,Rt._)`"string"`).assign(w,b)),e.fail$data((0,Rt.or)(T(),S()));function T(){return l.strictSchema===!1?Rt.nil:(0,Rt._)`${a} && !${w}`}function S(){let O=p.$async?(0,Rt._)`(${b}.async ? await ${w}(${n}) : ${w}(${n}))`:(0,Rt._)`${w}(${n})`,P=(0,Rt._)`(typeof ${w} == "function" ? ${O} : ${w}.test(${n}))`;return(0,Rt._)`${w} && ${w} !== true && ${v} === ${t} && !${P}`}}function d(){let m=u.formats[s];if(!m){T();return}if(m===!0)return;let[b,v,w]=S(m);b===t&&e.pass(O());function T(){if(l.strictSchema===!1){u.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${s}" ignored in schema at path "${c}"`}}function S(P){let A=P instanceof RegExp?(0,Rt.regexpCode)(P):l.code.formats?(0,Rt._)`${l.code.formats}${(0,Rt.getProperty)(s)}`:void 0,K=r.scopeValue("formats",{key:s,ref:P,code:A});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,Rt._)`${K}.validate`]:["string",P,K]}function O(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Rt._)`await ${w}(${n})`}return typeof v=="function"?(0,Rt._)`${w}(${n})`:(0,Rt._)`${w}.test(${n})`}}}};Fg.default=tQ});var mk=_(Ig=>{"use strict";f();Object.defineProperty(Ig,"__esModule",{value:!0});var rQ=hk(),nQ=[rQ.default];Ig.default=nQ});var gk=_(Ga=>{"use strict";f();Object.defineProperty(Ga,"__esModule",{value:!0});Ga.contentVocabulary=Ga.metadataVocabulary=void 0;Ga.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ga.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var bk=_(Lg=>{"use strict";f();Object.defineProperty(Lg,"__esModule",{value:!0});var iQ=SS(),sQ=jS(),aQ=dk(),oQ=mk(),xk=gk(),lQ=[iQ.default,sQ.default,(0,aQ.default)(),oQ.default,xk.metadataVocabulary,xk.contentVocabulary];Lg.default=lQ});var vk=_(Ap=>{"use strict";f();Object.defineProperty(Ap,"__esModule",{value:!0});Ap.DiscrError=void 0;var yk;(function(e){e.Tag="tag",e.Mapping="mapping"})(yk||(Ap.DiscrError=yk={}))});var wk=_(Rg=>{"use strict";f();Object.defineProperty(Rg,"__esModule",{value:!0});var Wa=qe(),Pg=vk(),_k=fp(),cQ=Tl(),uQ=Ke(),pQ={message:({params:{discrError:e,tagName:t}})=>e===Pg.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Wa._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},fQ={keyword:"discriminator",type:"object",schemaType:"object",error:pQ,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let l=t.let("valid",!1),c=t.const("tag",(0,Wa._)`${r}${(0,Wa.getProperty)(o)}`);t.if((0,Wa._)`typeof ${c} == "string"`,()=>p(),()=>e.error(!1,{discrError:Pg.DiscrError.Tag,tag:c,tagName:o})),e.ok(l);function p(){let d=h();t.if(!1);for(let m in d)t.elseIf((0,Wa._)`${c} === ${m}`),t.assign(l,u(d[m]));t.else(),e.error(!1,{discrError:Pg.DiscrError.Mapping,tag:c,tagName:o}),t.endIf()}function u(d){let m=t.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:d},m);return e.mergeEvaluated(b,Wa.Name),m}function h(){var d;let m={},b=w(i),v=!0;for(let O=0;O<a.length;O++){let P=a[O];if(P?.$ref&&!(0,uQ.schemaHasRulesButRef)(P,s.self.RULES)){let K=P.$ref;if(P=_k.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,K),P instanceof _k.SchemaEnv&&(P=P.schema),P===void 0)throw new cQ.default(s.opts.uriResolver,s.baseId,K)}let A=(d=P?.properties)===null||d===void 0?void 0:d[o];if(typeof A!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${o}"`);v=v&&(b||w(P)),T(A,O)}if(!v)throw new Error(`discriminator: "${o}" must be required`);return m;function w({required:O}){return Array.isArray(O)&&O.includes(o)}function T(O,P){if(O.const)S(O.const,P);else if(O.enum)for(let A of O.enum)S(A,P);else throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`)}function S(O,P){if(typeof O!="string"||O in m)throw new Error(`discriminator: "${o}" values must be unique strings`);m[O]=P}}}};Rg.default=fQ});var Ek=_((JTe,dQ)=>{dQ.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Sk=_((xt,Mg)=>{"use strict";f();Object.defineProperty(xt,"__esModule",{value:!0});xt.MissingRefError=xt.ValidationError=xt.CodeGen=xt.Name=xt.nil=xt.stringify=xt.str=xt._=xt.KeywordCxt=xt.Ajv=void 0;var hQ=yS(),mQ=bk(),gQ=wk(),Dk=Ek(),xQ=["/properties"],Op="http://json-schema.org/draft-07/schema",Ka=class extends hQ.default{_addVocabularies(){super._addVocabularies(),mQ.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(gQ.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(Dk,xQ):Dk;this.addMetaSchema(t,Op,!1),this.refs["http://json-schema.org/schema"]=Op}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Op)?Op:void 0)}};xt.Ajv=Ka;Mg.exports=xt=Ka;Mg.exports.Ajv=Ka;Object.defineProperty(xt,"__esModule",{value:!0});xt.default=Ka;var bQ=Cl();Object.defineProperty(xt,"KeywordCxt",{enumerable:!0,get:function(){return bQ.KeywordCxt}});var Za=qe();Object.defineProperty(xt,"_",{enumerable:!0,get:function(){return Za._}});Object.defineProperty(xt,"str",{enumerable:!0,get:function(){return Za.str}});Object.defineProperty(xt,"stringify",{enumerable:!0,get:function(){return Za.stringify}});Object.defineProperty(xt,"nil",{enumerable:!0,get:function(){return Za.nil}});Object.defineProperty(xt,"Name",{enumerable:!0,get:function(){return Za.Name}});Object.defineProperty(xt,"CodeGen",{enumerable:!0,get:function(){return Za.CodeGen}});var yQ=up();Object.defineProperty(xt,"ValidationError",{enumerable:!0,get:function(){return yQ.default}});var vQ=Tl();Object.defineProperty(xt,"MissingRefError",{enumerable:!0,get:function(){return vQ.default}})});var Nk=_((YTe,di)=>{f();var qg=X("fs"),Np=X("path"),_Q=X("os"),wQ=X("crypto"),kk=["\u25C8 encrypted .env [www.dotenvx.com]","\u25C8 secrets for agents [www.dotenvx.com]","\u2301 auth for agents [www.vestauth.com]","\u2318 custom filepath { path: '/custom/path/.env' }","\u2318 enable debugging { debug: true }","\u2318 override existing { override: true }","\u2318 suppress logs { quiet: true }","\u2318 multiple files { path: ['.env.local', '.env'] }"];function EQ(){return kk[Math.floor(Math.random()*kk.length)]}function Ja(e){return typeof e=="string"?!["false","0","no","off",""].includes(e.toLowerCase()):!!e}function DQ(){return process.stdout.isTTY}function SQ(e){return DQ()?`\x1B[2m${e}\x1B[0m`:e}var kQ=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function CQ(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
|
|
97
|
+
`);let n;for(;(n=kQ.exec(r))!=null;){let i=n[1],s=n[2]||"";s=s.trim();let a=s[0];s=s.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),a==='"'&&(s=s.replace(/\\n/g,`
|
|
98
|
+
`),s=s.replace(/\\r/g,"\r")),t[i]=s}return t}function TQ(e){e=e||{};let t=Ok(e);e.path=t;let r=Vt.configDotenv(e);if(!r.parsed){let a=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);throw a.code="MISSING_DATA",a}let n=Ak(e).split(","),i=n.length,s;for(let a=0;a<i;a++)try{let o=n[a].trim(),l=OQ(r,o);s=Vt.decrypt(l.ciphertext,l.key);break}catch(o){if(a+1>=i)throw o}return Vt.parse(s)}function AQ(e){console.error(`\u26A0 ${e}`)}function zl(e){console.log(`\u2506 ${e}`)}function Tk(e){console.log(`\u25C7 ${e}`)}function Ak(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function OQ(e,t){let r;try{r=new URL(t)}catch(o){if(o.code==="ERR_INVALID_URL"){let l=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw l.code="INVALID_DOTENV_KEY",l}throw o}let n=r.password;if(!n){let o=new Error("INVALID_DOTENV_KEY: Missing key part");throw o.code="INVALID_DOTENV_KEY",o}let i=r.searchParams.get("environment");if(!i){let o=new Error("INVALID_DOTENV_KEY: Missing environment part");throw o.code="INVALID_DOTENV_KEY",o}let s=`DOTENV_VAULT_${i.toUpperCase()}`,a=e.parsed[s];if(!a){let o=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${s} in your .env.vault file.`);throw o.code="NOT_FOUND_DOTENV_ENVIRONMENT",o}return{ciphertext:a,key:n}}function Ok(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)qg.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=Np.resolve(process.cwd(),".env.vault");return qg.existsSync(t)?t:null}function Ck(e){return e[0]==="~"?Np.join(_Q.homedir(),e.slice(1)):e}function NQ(e){let t=Ja(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),r=Ja(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(t||!r)&&Tk("loading env from encrypted .env.vault");let n=Vt._parseVault(e),i=process.env;return e&&e.processEnv!=null&&(i=e.processEnv),Vt.populate(i,n,e),{parsed:n}}function FQ(e){let t=Np.resolve(process.cwd(),".env"),r="utf8",n=process.env;e&&e.processEnv!=null&&(n=e.processEnv);let i=Ja(n.DOTENV_CONFIG_DEBUG||e&&e.debug),s=Ja(n.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?r=e.encoding:i&&zl("no encoding is specified (UTF-8 is used by default)");let a=[t];if(e&&e.path)if(!Array.isArray(e.path))a=[Ck(e.path)];else{a=[];for(let p of e.path)a.push(Ck(p))}let o,l={};for(let p of a)try{let u=Vt.parse(qg.readFileSync(p,{encoding:r}));Vt.populate(l,u,e)}catch(u){i&&zl(`failed to load ${p} ${u.message}`),o=u}let c=Vt.populate(n,l,e);if(i=Ja(n.DOTENV_CONFIG_DEBUG||i),s=Ja(n.DOTENV_CONFIG_QUIET||s),i||!s){let p=Object.keys(c).length,u=[];for(let h of a)try{let d=Np.relative(process.cwd(),h);u.push(d)}catch(d){i&&zl(`failed to load ${h} ${d.message}`),o=d}Tk(`injected env (${p}) from ${u.join(",")} ${SQ(`// tip: ${EQ()}`)}`)}return o?{parsed:l,error:o}:{parsed:l}}function IQ(e){if(Ak(e).length===0)return Vt.configDotenv(e);let t=Ok(e);return t?Vt._configVault(e):(AQ(`you set DOTENV_KEY but you are missing a .env.vault file at ${t}`),Vt.configDotenv(e))}function LQ(e,t){let r=Buffer.from(t.slice(-64),"hex"),n=Buffer.from(e,"base64"),i=n.subarray(0,12),s=n.subarray(-16);n=n.subarray(12,-16);try{let a=wQ.createDecipheriv("aes-256-gcm",r,i);return a.setAuthTag(s),`${a.update(n)}${a.final()}`}catch(a){let o=a instanceof RangeError,l=a.message==="Invalid key length",c=a.message==="Unsupported state or unable to authenticate data";if(o||l){let p=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw p.code="INVALID_DOTENV_KEY",p}else if(c){let p=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw p.code="DECRYPTION_FAILED",p}else throw a}}function PQ(e,t,r={}){let n=!!(r&&r.debug),i=!!(r&&r.override),s={};if(typeof t!="object"){let a=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw a.code="OBJECT_REQUIRED",a}for(let a of Object.keys(t))Object.prototype.hasOwnProperty.call(e,a)?(i===!0&&(e[a]=t[a],s[a]=t[a]),n&&zl(i===!0?`"${a}" is already defined and WAS overwritten`:`"${a}" is already defined and was NOT overwritten`)):(e[a]=t[a],s[a]=t[a]);return s}var Vt={configDotenv:FQ,_configVault:NQ,_parseVault:TQ,config:IQ,decrypt:LQ,parse:CQ,populate:PQ};di.exports.configDotenv=Vt.configDotenv;di.exports._configVault=Vt._configVault;di.exports._parseVault=Vt._parseVault;di.exports.config=Vt.config;di.exports.decrypt=Vt.decrypt;di.exports.parse=Vt.parse;di.exports.populate=Vt.populate;di.exports=Vt});var Ik=_((eAe,Fk)=>{f();function RQ(){this.__data__=[],this.size=0}Fk.exports=RQ});var Hl=_((rAe,Lk)=>{f();function MQ(e,t){return e===t||e!==e&&t!==t}Lk.exports=MQ});var Ul=_((iAe,Pk)=>{f();var qQ=Hl();function jQ(e,t){for(var r=e.length;r--;)if(qQ(e[r][0],t))return r;return-1}Pk.exports=jQ});var Mk=_((aAe,Rk)=>{f();var BQ=Ul(),$Q=Array.prototype,zQ=$Q.splice;function HQ(e){var t=this.__data__,r=BQ(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():zQ.call(t,r,1),--this.size,!0}Rk.exports=HQ});var jk=_((lAe,qk)=>{f();var UQ=Ul();function VQ(e){var t=this.__data__,r=UQ(t,e);return r<0?void 0:t[r][1]}qk.exports=VQ});var $k=_((uAe,Bk)=>{f();var GQ=Ul();function WQ(e){return GQ(this.__data__,e)>-1}Bk.exports=WQ});var Hk=_((fAe,zk)=>{f();var KQ=Ul();function ZQ(e,t){var r=this.__data__,n=KQ(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}zk.exports=ZQ});var Vl=_((hAe,Uk)=>{f();var JQ=Ik(),QQ=Mk(),YQ=jk(),XQ=$k(),eY=Hk();function Qa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qa.prototype.clear=JQ;Qa.prototype.delete=QQ;Qa.prototype.get=YQ;Qa.prototype.has=XQ;Qa.prototype.set=eY;Uk.exports=Qa});var Gk=_((gAe,Vk)=>{f();var tY=Vl();function rY(){this.__data__=new tY,this.size=0}Vk.exports=rY});var Kk=_((bAe,Wk)=>{f();function nY(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}Wk.exports=nY});var Jk=_((vAe,Zk)=>{f();function iY(e){return this.__data__.get(e)}Zk.exports=iY});var Yk=_((wAe,Qk)=>{f();function sY(e){return this.__data__.has(e)}Qk.exports=sY});var jg=_((DAe,Xk)=>{f();var aY=typeof global=="object"&&global&&global.Object===Object&&global;Xk.exports=aY});var _n=_((kAe,eC)=>{f();var oY=jg(),lY=typeof self=="object"&&self&&self.Object===Object&&self,cY=oY||lY||Function("return this")();eC.exports=cY});var Gl=_((TAe,tC)=>{f();var uY=_n(),pY=uY.Symbol;tC.exports=pY});var sC=_((OAe,iC)=>{f();var rC=Gl(),nC=Object.prototype,fY=nC.hasOwnProperty,dY=nC.toString,Wl=rC?rC.toStringTag:void 0;function hY(e){var t=fY.call(e,Wl),r=e[Wl];try{e[Wl]=void 0;var n=!0}catch{}var i=dY.call(e);return n&&(t?e[Wl]=r:delete e[Wl]),i}iC.exports=hY});var oC=_((FAe,aC)=>{f();var mY=Object.prototype,gY=mY.toString;function xY(e){return gY.call(e)}aC.exports=xY});var Is=_((LAe,uC)=>{f();var lC=Gl(),bY=sC(),yY=oC(),vY="[object Null]",_Y="[object Undefined]",cC=lC?lC.toStringTag:void 0;function wY(e){return e==null?e===void 0?_Y:vY:cC&&cC in Object(e)?bY(e):yY(e)}uC.exports=wY});var hi=_((RAe,pC)=>{f();function EY(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}pC.exports=EY});var Fp=_((qAe,fC)=>{f();var DY=Is(),SY=hi(),kY="[object AsyncFunction]",CY="[object Function]",TY="[object GeneratorFunction]",AY="[object Proxy]";function OY(e){if(!SY(e))return!1;var t=DY(e);return t==CY||t==TY||t==kY||t==AY}fC.exports=OY});var hC=_((BAe,dC)=>{f();var NY=_n(),FY=NY["__core-js_shared__"];dC.exports=FY});var xC=_((zAe,gC)=>{f();var Bg=hC(),mC=(function(){var e=/[^.]+$/.exec(Bg&&Bg.keys&&Bg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function IY(e){return!!mC&&mC in e}gC.exports=IY});var $g=_((UAe,bC)=>{f();var LY=Function.prototype,PY=LY.toString;function RY(e){if(e!=null){try{return PY.call(e)}catch{}try{return e+""}catch{}}return""}bC.exports=RY});var vC=_((GAe,yC)=>{f();var MY=Fp(),qY=xC(),jY=hi(),BY=$g(),$Y=/[\\^$.*+?()[\]{}|]/g,zY=/^\[object .+?Constructor\]$/,HY=Function.prototype,UY=Object.prototype,VY=HY.toString,GY=UY.hasOwnProperty,WY=RegExp("^"+VY.call(GY).replace($Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function KY(e){if(!jY(e)||qY(e))return!1;var t=MY(e)?WY:zY;return t.test(BY(e))}yC.exports=KY});var wC=_((KAe,_C)=>{f();function ZY(e,t){return e?.[t]}_C.exports=ZY});var zi=_((JAe,EC)=>{f();var JY=vC(),QY=wC();function YY(e,t){var r=QY(e,t);return JY(r)?r:void 0}EC.exports=YY});var Ip=_((YAe,DC)=>{f();var XY=zi(),eX=_n(),tX=XY(eX,"Map");DC.exports=tX});var Kl=_((e3e,SC)=>{f();var rX=zi(),nX=rX(Object,"create");SC.exports=nX});var TC=_((r3e,CC)=>{f();var kC=Kl();function iX(){this.__data__=kC?kC(null):{},this.size=0}CC.exports=iX});var OC=_((i3e,AC)=>{f();function sX(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}AC.exports=sX});var FC=_((a3e,NC)=>{f();var aX=Kl(),oX="__lodash_hash_undefined__",lX=Object.prototype,cX=lX.hasOwnProperty;function uX(e){var t=this.__data__;if(aX){var r=t[e];return r===oX?void 0:r}return cX.call(t,e)?t[e]:void 0}NC.exports=uX});var LC=_((l3e,IC)=>{f();var pX=Kl(),fX=Object.prototype,dX=fX.hasOwnProperty;function hX(e){var t=this.__data__;return pX?t[e]!==void 0:dX.call(t,e)}IC.exports=hX});var RC=_((u3e,PC)=>{f();var mX=Kl(),gX="__lodash_hash_undefined__";function xX(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=mX&&t===void 0?gX:t,this}PC.exports=xX});var qC=_((f3e,MC)=>{f();var bX=TC(),yX=OC(),vX=FC(),_X=LC(),wX=RC();function Ya(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ya.prototype.clear=bX;Ya.prototype.delete=yX;Ya.prototype.get=vX;Ya.prototype.has=_X;Ya.prototype.set=wX;MC.exports=Ya});var $C=_((h3e,BC)=>{f();var jC=qC(),EX=Vl(),DX=Ip();function SX(){this.size=0,this.__data__={hash:new jC,map:new(DX||EX),string:new jC}}BC.exports=SX});var HC=_((g3e,zC)=>{f();function kX(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}zC.exports=kX});var Zl=_((b3e,UC)=>{f();var CX=HC();function TX(e,t){var r=e.__data__;return CX(t)?r[typeof t=="string"?"string":"hash"]:r.map}UC.exports=TX});var GC=_((v3e,VC)=>{f();var AX=Zl();function OX(e){var t=AX(this,e).delete(e);return this.size-=t?1:0,t}VC.exports=OX});var KC=_((w3e,WC)=>{f();var NX=Zl();function FX(e){return NX(this,e).get(e)}WC.exports=FX});var JC=_((D3e,ZC)=>{f();var IX=Zl();function LX(e){return IX(this,e).has(e)}ZC.exports=LX});var YC=_((k3e,QC)=>{f();var PX=Zl();function RX(e,t){var r=PX(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}QC.exports=RX});var zg=_((T3e,XC)=>{f();var MX=$C(),qX=GC(),jX=KC(),BX=JC(),$X=YC();function Xa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xa.prototype.clear=MX;Xa.prototype.delete=qX;Xa.prototype.get=jX;Xa.prototype.has=BX;Xa.prototype.set=$X;XC.exports=Xa});var tT=_((O3e,eT)=>{f();var zX=Vl(),HX=Ip(),UX=zg(),VX=200;function GX(e,t){var r=this.__data__;if(r instanceof zX){var n=r.__data__;if(!HX||n.length<VX-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new UX(n)}return r.set(e,t),this.size=r.size,this}eT.exports=GX});var Hg=_((F3e,rT)=>{f();var WX=Vl(),KX=Gk(),ZX=Kk(),JX=Jk(),QX=Yk(),YX=tT();function eo(e){var t=this.__data__=new WX(e);this.size=t.size}eo.prototype.clear=KX;eo.prototype.delete=ZX;eo.prototype.get=JX;eo.prototype.has=QX;eo.prototype.set=YX;rT.exports=eo});var iT=_((L3e,nT)=>{f();function XX(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}nT.exports=XX});var Ug=_((R3e,sT)=>{f();var eee=zi(),tee=(function(){try{var e=eee(Object,"defineProperty");return e({},"",{}),e}catch{}})();sT.exports=tee});var Lp=_((q3e,oT)=>{f();var aT=Ug();function ree(e,t,r){t=="__proto__"&&aT?aT(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}oT.exports=ree});var Vg=_((B3e,lT)=>{f();var nee=Lp(),iee=Hl(),see=Object.prototype,aee=see.hasOwnProperty;function oee(e,t,r){var n=e[t];(!(aee.call(e,t)&&iee(n,r))||r===void 0&&!(t in e))&&nee(e,t,r)}lT.exports=oee});var to=_((z3e,cT)=>{f();var lee=Vg(),cee=Lp();function uee(e,t,r,n){var i=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var o=t[s],l=n?n(r[o],e[o],o,r,e):void 0;l===void 0&&(l=e[o]),i?cee(r,o,l):lee(r,o,l)}return r}cT.exports=uee});var pT=_((U3e,uT)=>{f();function pee(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}uT.exports=pee});var mi=_((G3e,fT)=>{f();function fee(e){return e!=null&&typeof e=="object"}fT.exports=fee});var hT=_((K3e,dT)=>{f();var dee=Is(),hee=mi(),mee="[object Arguments]";function gee(e){return hee(e)&&dee(e)==mee}dT.exports=gee});var Gg=_((J3e,xT)=>{f();var mT=hT(),xee=mi(),gT=Object.prototype,bee=gT.hasOwnProperty,yee=gT.propertyIsEnumerable,vee=mT((function(){return arguments})())?mT:function(e){return xee(e)&&bee.call(e,"callee")&&!yee.call(e,"callee")};xT.exports=vee});var Hi=_((Y3e,bT)=>{f();var _ee=Array.isArray;bT.exports=_ee});var vT=_((eOe,yT)=>{f();function wee(){return!1}yT.exports=wee});var Pp=_((Jl,ro)=>{f();var Eee=_n(),Dee=vT(),ET=typeof Jl=="object"&&Jl&&!Jl.nodeType&&Jl,_T=ET&&typeof ro=="object"&&ro&&!ro.nodeType&&ro,See=_T&&_T.exports===ET,wT=See?Eee.Buffer:void 0,kee=wT?wT.isBuffer:void 0,Cee=kee||Dee;ro.exports=Cee});var Wg=_((nOe,DT)=>{f();var Tee=9007199254740991,Aee=/^(?:0|[1-9]\d*)$/;function Oee(e,t){var r=typeof e;return t=t??Tee,!!t&&(r=="number"||r!="symbol"&&Aee.test(e))&&e>-1&&e%1==0&&e<t}DT.exports=Oee});var Kg=_((sOe,ST)=>{f();var Nee=9007199254740991;function Fee(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Nee}ST.exports=Fee});var CT=_((oOe,kT)=>{f();var Iee=Is(),Lee=Kg(),Pee=mi(),Ree="[object Arguments]",Mee="[object Array]",qee="[object Boolean]",jee="[object Date]",Bee="[object Error]",$ee="[object Function]",zee="[object Map]",Hee="[object Number]",Uee="[object Object]",Vee="[object RegExp]",Gee="[object Set]",Wee="[object String]",Kee="[object WeakMap]",Zee="[object ArrayBuffer]",Jee="[object DataView]",Qee="[object Float32Array]",Yee="[object Float64Array]",Xee="[object Int8Array]",ete="[object Int16Array]",tte="[object Int32Array]",rte="[object Uint8Array]",nte="[object Uint8ClampedArray]",ite="[object Uint16Array]",ste="[object Uint32Array]",bt={};bt[Qee]=bt[Yee]=bt[Xee]=bt[ete]=bt[tte]=bt[rte]=bt[nte]=bt[ite]=bt[ste]=!0;bt[Ree]=bt[Mee]=bt[Zee]=bt[qee]=bt[Jee]=bt[jee]=bt[Bee]=bt[$ee]=bt[zee]=bt[Hee]=bt[Uee]=bt[Vee]=bt[Gee]=bt[Wee]=bt[Kee]=!1;function ate(e){return Pee(e)&&Lee(e.length)&&!!bt[Iee(e)]}kT.exports=ate});var Rp=_((cOe,TT)=>{f();function ote(e){return function(t){return e(t)}}TT.exports=ote});var Mp=_((Ql,no)=>{f();var lte=jg(),AT=typeof Ql=="object"&&Ql&&!Ql.nodeType&&Ql,Yl=AT&&typeof no=="object"&&no&&!no.nodeType&&no,cte=Yl&&Yl.exports===AT,Zg=cte&<e.process,ute=(function(){try{var e=Yl&&Yl.require&&Yl.require("util").types;return e||Zg&&Zg.binding&&Zg.binding("util")}catch{}})();no.exports=ute});var Jg=_((fOe,FT)=>{f();var pte=CT(),fte=Rp(),OT=Mp(),NT=OT&&OT.isTypedArray,dte=NT?fte(NT):pte;FT.exports=dte});var Qg=_((hOe,IT)=>{f();var hte=pT(),mte=Gg(),gte=Hi(),xte=Pp(),bte=Wg(),yte=Jg(),vte=Object.prototype,_te=vte.hasOwnProperty;function wte(e,t){var r=gte(e),n=!r&&mte(e),i=!r&&!n&&xte(e),s=!r&&!n&&!i&&yte(e),a=r||n||i||s,o=a?hte(e.length,String):[],l=o.length;for(var c in e)(t||_te.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||bte(c,l)))&&o.push(c);return o}IT.exports=wte});var qp=_((gOe,LT)=>{f();var Ete=Object.prototype;function Dte(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ete;return e===r}LT.exports=Dte});var Yg=_((bOe,PT)=>{f();function Ste(e,t){return function(r){return e(t(r))}}PT.exports=Ste});var MT=_((vOe,RT)=>{f();var kte=Yg(),Cte=kte(Object.keys,Object);RT.exports=Cte});var jT=_((wOe,qT)=>{f();var Tte=qp(),Ate=MT(),Ote=Object.prototype,Nte=Ote.hasOwnProperty;function Fte(e){if(!Tte(e))return Ate(e);var t=[];for(var r in Object(e))Nte.call(e,r)&&r!="constructor"&&t.push(r);return t}qT.exports=Fte});var Xl=_((DOe,BT)=>{f();var Ite=Fp(),Lte=Kg();function Pte(e){return e!=null&&Lte(e.length)&&!Ite(e)}BT.exports=Pte});var jp=_((kOe,$T)=>{f();var Rte=Qg(),Mte=jT(),qte=Xl();function jte(e){return qte(e)?Rte(e):Mte(e)}$T.exports=jte});var HT=_((TOe,zT)=>{f();var Bte=to(),$te=jp();function zte(e,t){return e&&Bte(t,$te(t),e)}zT.exports=zte});var VT=_((OOe,UT)=>{f();function Hte(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}UT.exports=Hte});var WT=_((FOe,GT)=>{f();var Ute=hi(),Vte=qp(),Gte=VT(),Wte=Object.prototype,Kte=Wte.hasOwnProperty;function Zte(e){if(!Ute(e))return Gte(e);var t=Vte(e),r=[];for(var n in e)n=="constructor"&&(t||!Kte.call(e,n))||r.push(n);return r}GT.exports=Zte});var io=_((LOe,KT)=>{f();var Jte=Qg(),Qte=WT(),Yte=Xl();function Xte(e){return Yte(e)?Jte(e,!0):Qte(e)}KT.exports=Xte});var JT=_((ROe,ZT)=>{f();var ere=to(),tre=io();function rre(e,t){return e&&ere(t,tre(t),e)}ZT.exports=rre});var Xg=_((ec,so)=>{f();var nre=_n(),eA=typeof ec=="object"&&ec&&!ec.nodeType&&ec,QT=eA&&typeof so=="object"&&so&&!so.nodeType&&so,ire=QT&&QT.exports===eA,YT=ire?nre.Buffer:void 0,XT=YT?YT.allocUnsafe:void 0;function sre(e,t){if(t)return e.slice();var r=e.length,n=XT?XT(r):new e.constructor(r);return e.copy(n),n}so.exports=sre});var ex=_((jOe,tA)=>{f();function are(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}tA.exports=are});var nA=_(($Oe,rA)=>{f();function ore(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[i++]=a)}return s}rA.exports=ore});var tx=_((HOe,iA)=>{f();function lre(){return[]}iA.exports=lre});var Bp=_((VOe,aA)=>{f();var cre=nA(),ure=tx(),pre=Object.prototype,fre=pre.propertyIsEnumerable,sA=Object.getOwnPropertySymbols,dre=sA?function(e){return e==null?[]:(e=Object(e),cre(sA(e),function(t){return fre.call(e,t)}))}:ure;aA.exports=dre});var lA=_((WOe,oA)=>{f();var hre=to(),mre=Bp();function gre(e,t){return hre(e,mre(e),t)}oA.exports=gre});var rx=_((ZOe,cA)=>{f();function xre(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}cA.exports=xre});var $p=_((QOe,uA)=>{f();var bre=Yg(),yre=bre(Object.getPrototypeOf,Object);uA.exports=yre});var nx=_((XOe,pA)=>{f();var vre=rx(),_re=$p(),wre=Bp(),Ere=tx(),Dre=Object.getOwnPropertySymbols,Sre=Dre?function(e){for(var t=[];e;)vre(t,wre(e)),e=_re(e);return t}:Ere;pA.exports=Sre});var dA=_((tNe,fA)=>{f();var kre=to(),Cre=nx();function Tre(e,t){return kre(e,Cre(e),t)}fA.exports=Tre});var ix=_((nNe,hA)=>{f();var Are=rx(),Ore=Hi();function Nre(e,t,r){var n=t(e);return Ore(e)?n:Are(n,r(e))}hA.exports=Nre});var gA=_((sNe,mA)=>{f();var Fre=ix(),Ire=Bp(),Lre=jp();function Pre(e){return Fre(e,Lre,Ire)}mA.exports=Pre});var bA=_((oNe,xA)=>{f();var Rre=ix(),Mre=nx(),qre=io();function jre(e){return Rre(e,qre,Mre)}xA.exports=jre});var vA=_((cNe,yA)=>{f();var Bre=zi(),$re=_n(),zre=Bre($re,"DataView");yA.exports=zre});var wA=_((pNe,_A)=>{f();var Hre=zi(),Ure=_n(),Vre=Hre(Ure,"Promise");_A.exports=Vre});var DA=_((dNe,EA)=>{f();var Gre=zi(),Wre=_n(),Kre=Gre(Wre,"Set");EA.exports=Kre});var kA=_((mNe,SA)=>{f();var Zre=zi(),Jre=_n(),Qre=Zre(Jre,"WeakMap");SA.exports=Qre});var zp=_((xNe,IA)=>{f();var sx=vA(),ax=Ip(),ox=wA(),lx=DA(),cx=kA(),FA=Is(),ao=$g(),CA="[object Map]",Yre="[object Object]",TA="[object Promise]",AA="[object Set]",OA="[object WeakMap]",NA="[object DataView]",Xre=ao(sx),ene=ao(ax),tne=ao(ox),rne=ao(lx),nne=ao(cx),Ls=FA;(sx&&Ls(new sx(new ArrayBuffer(1)))!=NA||ax&&Ls(new ax)!=CA||ox&&Ls(ox.resolve())!=TA||lx&&Ls(new lx)!=AA||cx&&Ls(new cx)!=OA)&&(Ls=function(e){var t=FA(e),r=t==Yre?e.constructor:void 0,n=r?ao(r):"";if(n)switch(n){case Xre:return NA;case ene:return CA;case tne:return TA;case rne:return AA;case nne:return OA}return t});IA.exports=Ls});var PA=_((yNe,LA)=>{f();var ine=Object.prototype,sne=ine.hasOwnProperty;function ane(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&sne.call(e,"index")&&(r.index=e.index,r.input=e.input),r}LA.exports=ane});var MA=_((_Ne,RA)=>{f();var one=_n(),lne=one.Uint8Array;RA.exports=lne});var Hp=_((ENe,jA)=>{f();var qA=MA();function cne(e){var t=new e.constructor(e.byteLength);return new qA(t).set(new qA(e)),t}jA.exports=cne});var $A=_((SNe,BA)=>{f();var une=Hp();function pne(e,t){var r=t?une(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}BA.exports=pne});var HA=_((CNe,zA)=>{f();var fne=/\w*$/;function dne(e){var t=new e.constructor(e.source,fne.exec(e));return t.lastIndex=e.lastIndex,t}zA.exports=dne});var KA=_((ANe,WA)=>{f();var UA=Gl(),VA=UA?UA.prototype:void 0,GA=VA?VA.valueOf:void 0;function hne(e){return GA?Object(GA.call(e)):{}}WA.exports=hne});var ux=_((NNe,ZA)=>{f();var mne=Hp();function gne(e,t){var r=t?mne(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}ZA.exports=gne});var QA=_((INe,JA)=>{f();var xne=Hp(),bne=$A(),yne=HA(),vne=KA(),_ne=ux(),wne="[object Boolean]",Ene="[object Date]",Dne="[object Map]",Sne="[object Number]",kne="[object RegExp]",Cne="[object Set]",Tne="[object String]",Ane="[object Symbol]",One="[object ArrayBuffer]",Nne="[object DataView]",Fne="[object Float32Array]",Ine="[object Float64Array]",Lne="[object Int8Array]",Pne="[object Int16Array]",Rne="[object Int32Array]",Mne="[object Uint8Array]",qne="[object Uint8ClampedArray]",jne="[object Uint16Array]",Bne="[object Uint32Array]";function $ne(e,t,r){var n=e.constructor;switch(t){case One:return xne(e);case wne:case Ene:return new n(+e);case Nne:return bne(e,r);case Fne:case Ine:case Lne:case Pne:case Rne:case Mne:case qne:case jne:case Bne:return _ne(e,r);case Dne:return new n;case Sne:case Tne:return new n(e);case kne:return yne(e);case Cne:return new n;case Ane:return vne(e)}}JA.exports=$ne});var e3=_((PNe,XA)=>{f();var zne=hi(),YA=Object.create,Hne=(function(){function e(){}return function(t){if(!zne(t))return{};if(YA)return YA(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();XA.exports=Hne});var px=_((MNe,t3)=>{f();var Une=e3(),Vne=$p(),Gne=qp();function Wne(e){return typeof e.constructor=="function"&&!Gne(e)?Une(Vne(e)):{}}t3.exports=Wne});var n3=_((jNe,r3)=>{f();var Kne=zp(),Zne=mi(),Jne="[object Map]";function Qne(e){return Zne(e)&&Kne(e)==Jne}r3.exports=Qne});var o3=_(($Ne,a3)=>{f();var Yne=n3(),Xne=Rp(),i3=Mp(),s3=i3&&i3.isMap,eie=s3?Xne(s3):Yne;a3.exports=eie});var c3=_((HNe,l3)=>{f();var tie=zp(),rie=mi(),nie="[object Set]";function iie(e){return rie(e)&&tie(e)==nie}l3.exports=iie});var d3=_((VNe,f3)=>{f();var sie=c3(),aie=Rp(),u3=Mp(),p3=u3&&u3.isSet,oie=p3?aie(p3):sie;f3.exports=oie});var b3=_((WNe,x3)=>{f();var lie=Hg(),cie=iT(),uie=Vg(),pie=HT(),fie=JT(),die=Xg(),hie=ex(),mie=lA(),gie=dA(),xie=gA(),bie=bA(),yie=zp(),vie=PA(),_ie=QA(),wie=px(),Eie=Hi(),Die=Pp(),Sie=o3(),kie=hi(),Cie=d3(),Tie=jp(),Aie=io(),Oie=1,Nie=2,Fie=4,h3="[object Arguments]",Iie="[object Array]",Lie="[object Boolean]",Pie="[object Date]",Rie="[object Error]",m3="[object Function]",Mie="[object GeneratorFunction]",qie="[object Map]",jie="[object Number]",g3="[object Object]",Bie="[object RegExp]",$ie="[object Set]",zie="[object String]",Hie="[object Symbol]",Uie="[object WeakMap]",Vie="[object ArrayBuffer]",Gie="[object DataView]",Wie="[object Float32Array]",Kie="[object Float64Array]",Zie="[object Int8Array]",Jie="[object Int16Array]",Qie="[object Int32Array]",Yie="[object Uint8Array]",Xie="[object Uint8ClampedArray]",ese="[object Uint16Array]",tse="[object Uint32Array]",ht={};ht[h3]=ht[Iie]=ht[Vie]=ht[Gie]=ht[Lie]=ht[Pie]=ht[Wie]=ht[Kie]=ht[Zie]=ht[Jie]=ht[Qie]=ht[qie]=ht[jie]=ht[g3]=ht[Bie]=ht[$ie]=ht[zie]=ht[Hie]=ht[Yie]=ht[Xie]=ht[ese]=ht[tse]=!0;ht[Rie]=ht[m3]=ht[Uie]=!1;function Up(e,t,r,n,i,s){var a,o=t&Oie,l=t&Nie,c=t&Fie;if(r&&(a=i?r(e,n,i,s):r(e)),a!==void 0)return a;if(!kie(e))return e;var p=Eie(e);if(p){if(a=vie(e),!o)return hie(e,a)}else{var u=yie(e),h=u==m3||u==Mie;if(Die(e))return die(e,o);if(u==g3||u==h3||h&&!i){if(a=l||h?{}:wie(e),!o)return l?gie(e,fie(a,e)):mie(e,pie(a,e))}else{if(!ht[u])return i?e:{};a=_ie(e,u,o)}}s||(s=new lie);var d=s.get(e);if(d)return d;s.set(e,a),Cie(e)?e.forEach(function(v){a.add(Up(v,t,r,v,e,s))}):Sie(e)&&e.forEach(function(v,w){a.set(w,Up(v,t,r,w,e,s))});var m=c?l?bie:xie:l?Aie:Tie,b=p?void 0:m(e);return cie(b||e,function(v,w){b&&(w=v,v=e[w]),uie(a,w,Up(v,t,r,w,e,s))}),a}x3.exports=Up});var v3=_((ZNe,y3)=>{f();var rse=b3(),nse=1,ise=4;function sse(e){return rse(e,nse|ise)}y3.exports=sse});var Vp=_((QNe,_3)=>{f();var ase=Is(),ose=mi(),lse="[object Symbol]";function cse(e){return typeof e=="symbol"||ose(e)&&ase(e)==lse}_3.exports=cse});var E3=_((XNe,w3)=>{f();var use=Hi(),pse=Vp(),fse=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dse=/^\w*$/;function hse(e,t){if(use(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||pse(e)?!0:dse.test(e)||!fse.test(e)||t!=null&&e in Object(t)}w3.exports=hse});var k3=_((tFe,S3)=>{f();var D3=zg(),mse="Expected a function";function fx(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(mse);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var a=e.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(fx.Cache||D3),r}fx.Cache=D3;S3.exports=fx});var T3=_((nFe,C3)=>{f();var gse=k3(),xse=500;function bse(e){var t=gse(e,function(n){return r.size===xse&&r.clear(),n}),r=t.cache;return t}C3.exports=bse});var O3=_((sFe,A3)=>{f();var yse=T3(),vse=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_se=/\\(\\)?/g,wse=yse(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(vse,function(r,n,i,s){t.push(i?s.replace(_se,"$1"):n||r)}),t});A3.exports=wse});var F3=_((oFe,N3)=>{f();function Ese(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}N3.exports=Ese});var q3=_((cFe,M3)=>{f();var I3=Gl(),Dse=F3(),Sse=Hi(),kse=Vp(),Cse=1/0,L3=I3?I3.prototype:void 0,P3=L3?L3.toString:void 0;function R3(e){if(typeof e=="string")return e;if(Sse(e))return Dse(e,R3)+"";if(kse(e))return P3?P3.call(e):"";var t=e+"";return t=="0"&&1/e==-Cse?"-0":t}M3.exports=R3});var Gp=_((pFe,j3)=>{f();var Tse=q3();function Ase(e){return e==null?"":Tse(e)}j3.exports=Ase});var $3=_((dFe,B3)=>{f();var Ose=Hi(),Nse=E3(),Fse=O3(),Ise=Gp();function Lse(e,t){return Ose(e)?e:Nse(e,t)?[e]:Fse(Ise(e))}B3.exports=Lse});var H3=_((mFe,z3)=>{f();var Pse=Vp(),Rse=1/0;function Mse(e){if(typeof e=="string"||Pse(e))return e;var t=e+"";return t=="0"&&1/e==-Rse?"-0":t}z3.exports=Mse});var V3=_((xFe,U3)=>{f();var qse=$3(),jse=H3();function Bse(e,t){t=qse(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[jse(t[r++])];return r&&r==n?e:void 0}U3.exports=Bse});var W3=_((yFe,G3)=>{f();var $se=V3();function zse(e,t,r){var n=e==null?void 0:$se(e,t);return n===void 0?r:n}G3.exports=zse});var Z3=_((_Fe,K3)=>{f();function Hse(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}K3.exports=Hse});var Q3=_((EFe,J3)=>{f();function Use(e){return function(t){return e?.[t]}}J3.exports=Use});var X3=_((SFe,Y3)=>{f();var Vse=Q3(),Gse={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Wse=Vse(Gse);Y3.exports=Wse});var tO=_((CFe,eO)=>{f();var Kse=X3(),Zse=Gp(),Jse=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qse="\\u0300-\\u036f",Yse="\\ufe20-\\ufe2f",Xse="\\u20d0-\\u20ff",eae=Qse+Yse+Xse,tae="["+eae+"]",rae=RegExp(tae,"g");function nae(e){return e=Zse(e),e&&e.replace(Jse,Kse).replace(rae,"")}eO.exports=nae});var nO=_((AFe,rO)=>{f();var iae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function sae(e){return e.match(iae)||[]}rO.exports=sae});var sO=_((NFe,iO)=>{f();var aae=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function oae(e){return aae.test(e)}iO.exports=oae});var DO=_((IFe,EO)=>{f();var uO="\\ud800-\\udfff",lae="\\u0300-\\u036f",cae="\\ufe20-\\ufe2f",uae="\\u20d0-\\u20ff",pae=lae+cae+uae,pO="\\u2700-\\u27bf",fO="a-z\\xdf-\\xf6\\xf8-\\xff",fae="\\xac\\xb1\\xd7\\xf7",dae="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hae="\\u2000-\\u206f",mae=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dO="A-Z\\xc0-\\xd6\\xd8-\\xde",gae="\\ufe0e\\ufe0f",hO=fae+dae+hae+mae,mO="['\u2019]",aO="["+hO+"]",xae="["+pae+"]",gO="\\d+",bae="["+pO+"]",xO="["+fO+"]",bO="[^"+uO+hO+gO+pO+fO+dO+"]",yae="\\ud83c[\\udffb-\\udfff]",vae="(?:"+xae+"|"+yae+")",_ae="[^"+uO+"]",yO="(?:\\ud83c[\\udde6-\\uddff]){2}",vO="[\\ud800-\\udbff][\\udc00-\\udfff]",oo="["+dO+"]",wae="\\u200d",oO="(?:"+xO+"|"+bO+")",Eae="(?:"+oo+"|"+bO+")",lO="(?:"+mO+"(?:d|ll|m|re|s|t|ve))?",cO="(?:"+mO+"(?:D|LL|M|RE|S|T|VE))?",_O=vae+"?",wO="["+gae+"]?",Dae="(?:"+wae+"(?:"+[_ae,yO,vO].join("|")+")"+wO+_O+")*",Sae="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kae="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cae=wO+_O+Dae,Tae="(?:"+[bae,yO,vO].join("|")+")"+Cae,Aae=RegExp([oo+"?"+xO+"+"+lO+"(?="+[aO,oo,"$"].join("|")+")",Eae+"+"+cO+"(?="+[aO,oo+oO,"$"].join("|")+")",oo+"?"+oO+"+"+lO,oo+"+"+cO,kae,Sae,gO,Tae].join("|"),"g");function Oae(e){return e.match(Aae)||[]}EO.exports=Oae});var kO=_((PFe,SO)=>{f();var Nae=nO(),Fae=sO(),Iae=Gp(),Lae=DO();function Pae(e,t,r){return e=Iae(e),t=r?void 0:t,t===void 0?Fae(e)?Lae(e):Nae(e):e.match(t)||[]}SO.exports=Pae});var TO=_((MFe,CO)=>{f();var Rae=Z3(),Mae=tO(),qae=kO(),jae="['\u2019]",Bae=RegExp(jae,"g");function $ae(e){return function(t){return Rae(qae(Mae(t).replace(Bae,"")),e,"")}}CO.exports=$ae});var OO=_((jFe,AO)=>{f();var zae=TO(),Hae=zae(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});AO.exports=Hae});var dx=_(($Fe,NO)=>{f();var Uae=Lp(),Vae=Hl();function Gae(e,t,r){(r!==void 0&&!Vae(e[t],r)||r===void 0&&!(t in e))&&Uae(e,t,r)}NO.exports=Gae});var IO=_((HFe,FO)=>{f();function Wae(e){return function(t,r,n){for(var i=-1,s=Object(t),a=n(t),o=a.length;o--;){var l=a[e?o:++i];if(r(s[l],l,s)===!1)break}return t}}FO.exports=Wae});var PO=_((VFe,LO)=>{f();var Kae=IO(),Zae=Kae();LO.exports=Zae});var MO=_((WFe,RO)=>{f();var Jae=Xl(),Qae=mi();function Yae(e){return Qae(e)&&Jae(e)}RO.exports=Yae});var BO=_((ZFe,jO)=>{f();var Xae=Is(),eoe=$p(),toe=mi(),roe="[object Object]",noe=Function.prototype,ioe=Object.prototype,qO=noe.toString,soe=ioe.hasOwnProperty,aoe=qO.call(Object);function ooe(e){if(!toe(e)||Xae(e)!=roe)return!1;var t=eoe(e);if(t===null)return!0;var r=soe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&qO.call(r)==aoe}jO.exports=ooe});var hx=_((QFe,$O)=>{f();function loe(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}$O.exports=loe});var HO=_((XFe,zO)=>{f();var coe=to(),uoe=io();function poe(e){return coe(e,uoe(e))}zO.exports=poe});var ZO=_((tIe,KO)=>{f();var UO=dx(),foe=Xg(),doe=ux(),hoe=ex(),moe=px(),VO=Gg(),GO=Hi(),goe=MO(),xoe=Pp(),boe=Fp(),yoe=hi(),voe=BO(),_oe=Jg(),WO=hx(),woe=HO();function Eoe(e,t,r,n,i,s,a){var o=WO(e,r),l=WO(t,r),c=a.get(l);if(c){UO(e,r,c);return}var p=s?s(o,l,r+"",e,t,a):void 0,u=p===void 0;if(u){var h=GO(l),d=!h&&xoe(l),m=!h&&!d&&_oe(l);p=l,h||d||m?GO(o)?p=o:goe(o)?p=hoe(o):d?(u=!1,p=foe(l,!0)):m?(u=!1,p=doe(l,!0)):p=[]:voe(l)||VO(l)?(p=o,VO(o)?p=woe(o):(!yoe(o)||boe(o))&&(p=moe(l))):u=!1}u&&(a.set(l,p),i(p,l,n,s,a),a.delete(l)),UO(e,r,p)}KO.exports=Eoe});var YO=_((nIe,QO)=>{f();var Doe=Hg(),Soe=dx(),koe=PO(),Coe=ZO(),Toe=hi(),Aoe=io(),Ooe=hx();function JO(e,t,r,n,i){e!==t&&koe(t,function(s,a){if(i||(i=new Doe),Toe(s))Coe(e,t,a,r,JO,n,i);else{var o=n?n(Ooe(e,a),s,a+"",e,t,i):void 0;o===void 0&&(o=s),Soe(e,a,o)}},Aoe)}QO.exports=JO});var mx=_((sIe,XO)=>{f();function Noe(e){return e}XO.exports=Noe});var tN=_((oIe,eN)=>{f();function Foe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}eN.exports=Foe});var iN=_((cIe,nN)=>{f();var Ioe=tN(),rN=Math.max;function Loe(e,t,r){return t=rN(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=rN(n.length-t,0),a=Array(s);++i<s;)a[i]=n[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=n[i];return o[t]=r(a),Ioe(e,this,o)}}nN.exports=Loe});var aN=_((pIe,sN)=>{f();function Poe(e){return function(){return e}}sN.exports=Poe});var cN=_((dIe,lN)=>{f();var Roe=aN(),oN=Ug(),Moe=mx(),qoe=oN?function(e,t){return oN(e,"toString",{configurable:!0,enumerable:!1,value:Roe(t),writable:!0})}:Moe;lN.exports=qoe});var pN=_((mIe,uN)=>{f();var joe=800,Boe=16,$oe=Date.now;function zoe(e){var t=0,r=0;return function(){var n=$oe(),i=Boe-(n-r);if(r=n,i>0){if(++t>=joe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}uN.exports=zoe});var dN=_((xIe,fN)=>{f();var Hoe=cN(),Uoe=pN(),Voe=Uoe(Hoe);fN.exports=Voe});var mN=_((yIe,hN)=>{f();var Goe=mx(),Woe=iN(),Koe=dN();function Zoe(e,t){return Koe(Woe(e,t,Goe),e+"")}hN.exports=Zoe});var xN=_((_Ie,gN)=>{f();var Joe=Hl(),Qoe=Xl(),Yoe=Wg(),Xoe=hi();function ele(e,t,r){if(!Xoe(r))return!1;var n=typeof t;return(n=="number"?Qoe(r)&&Yoe(t,r.length):n=="string"&&t in r)?Joe(r[t],e):!1}gN.exports=ele});var yN=_((EIe,bN)=>{f();var tle=mN(),rle=xN();function nle(e){return tle(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,a&&rle(r[0],r[1],a)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var o=r[n];o&&e(t,o,n,s)}return t})}bN.exports=nle});var _N=_((SIe,vN)=>{f();var ile=YO(),sle=yN(),ale=sle(function(e,t,r){ile(e,t,r)});vN.exports=ale});var GN=_((D4e,VN)=>{f();VN.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var cF=_((aLe,lF)=>{"use strict";f();lF.exports=function(t){if(t===void 0&&(t=2),t>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+t+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var r=Error.prepareStackTrace;Error.prepareStackTrace=function(i,s){return s};var n=new Error().stack;if(Error.prepareStackTrace=r,n!==null&&typeof n=="object")return n[t]?n[t].getFileName():void 0}});function Ji(e,t){let r=t||Pce,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return aI(e,n,i)}function aI(e,t,r){if(Rce(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return sI(e.children,t,r)}return Array.isArray(e)?sI(e,t,r):""}function sI(e,t,r){let n=[],i=-1;for(;++i<e.length;)n[i]=aI(e[i],t,r);return n.join("")}function Rce(e){return!!(e&&typeof e=="object")}var Pce,oI=z(()=>{f();Pce={}});var lI={};ll(lI,{toString:()=>Ji});var ac=z(()=>{f();oI()});var Qx,cI=z(()=>{f();Qx={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
99
|
+
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});function fo(e){return Mce.call(Qx,e)?Qx[e]:!1}var Mce,hf=z(()=>{f();cI();Mce={}.hasOwnProperty});function jt(e,t,r,n){let i=e.length,s=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);s<n.length;)a=n.slice(s,s+1e4),a.unshift(t,0),e.splice(...a),s+=1e4,t+=1e4}function Sr(e,t){return e.length>0?(jt(e,e.length,0,t),e):t}var xi=z(()=>{f()});function mf(e){let t={},r=-1;for(;++r<e.length;)qce(t,e[r]);return t}function qce(e,t){let r;for(r in t){let i=(Yx.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r],a;if(s)for(a in s){Yx.call(i,a)||(i[a]=[]);let o=s[a];jce(i[a],Array.isArray(o)?o:o?[o]:[])}}}function jce(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);jt(e,0,0,n)}function uI(e){let t={},r=-1;for(;++r<e.length;)Bce(t,e[r]);return t}function Bce(e,t){let r;for(r in t){let i=(Yx.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r],a;if(s)for(a in s)i[a]=s[a]}}var Yx,Xx=z(()=>{f();xi();Yx={}.hasOwnProperty});function gf(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}var eb=z(()=>{f()});function pI(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+$ce[r]+";"}}var $ce,fI=z(()=>{f();$ce={'"':"quot","&":"amp","<":"lt",">":"gt"}});function Gt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Js=z(()=>{f()});function Qs(e){return e!==null&&(e<32||e===127)}function ie(e){return e!==null&&e<-2}function Be(e){return e!==null&&(e<0||e===32)}function _e(e){return e===-2||e===-1||e===32}function Qi(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}var Wt,Nt,dI,oc,hI,mI,Ys,zn,Je=z(()=>{f();Wt=Qi(/[A-Za-z]/),Nt=Qi(/[\dA-Za-z]/),dI=Qi(/[#-'*+\--9=?A-Z^-~]/);oc=Qi(/\d/),hI=Qi(/[\dA-Fa-f]/),mI=Qi(/[!-/:-@[-`{-~]/);Ys=Qi(new RegExp("\\p{P}|\\p{S}","u")),zn=Qi(/\s/)});function lc(e,t){let r=pI(zce(e||""));if(!t)return r;let n=r.indexOf(":"),i=r.indexOf("?"),s=r.indexOf("#"),a=r.indexOf("/");return n<0||a>-1&&n>a||i>-1&&n>i||s>-1&&n>s||t.test(r.slice(0,n))?r:""}function zce(e){let t=[],r=-1,n=0,i=0;for(;++r<e.length;){let s=e.charCodeAt(r),a="";if(s===37&&Nt(e.charCodeAt(r+1))&&Nt(e.charCodeAt(r+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){let o=e.charCodeAt(r+1);s<56320&&o>56319&&o<57344?(a=String.fromCharCode(s,o),i=1):a="\uFFFD"}else a=String.fromCharCode(s);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+i+1,a=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}var tb=z(()=>{f();Je();fI()});function be(e,t,r,n){let i=n?n-1:Number.POSITIVE_INFINITY,s=0;return a;function a(l){return _e(l)?(e.enter(r),o(l)):t(l)}function o(l){return _e(l)&&s++<i?(e.consume(l),o):(e.exit(r),t(l))}}var Bt=z(()=>{f();Je()});function Hce(e){let t=e.attempt(this.parser.constructs.contentInitial,n,i),r;return t;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),be(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),s(o)}function s(o){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ie(o)?(e.consume(o),e.exit("chunkText"),s):(e.consume(o),a)}}var gI,xI=z(()=>{f();Bt();Je();gI={tokenize:Hce}});function Uce(e){let t=this,r=[],n=0,i,s,a;return o;function o(S){if(n<r.length){let O=r[n];return t.containerState=O[1],e.attempt(O[0].continuation,l,c)(S)}return c(S)}function l(S){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&T();let O=t.events.length,P=O,A;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){A=t.events[P][1].end;break}w(n);let K=O;for(;K<t.events.length;)t.events[K][1].end={...A},K++;return jt(t.events,P+1,0,t.events.slice(O)),t.events.length=K,c(S)}return o(S)}function c(S){if(n===r.length){if(!i)return h(S);if(i.currentConstruct&&i.currentConstruct.concrete)return m(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(bI,p,u)(S)}function p(S){return i&&T(),w(n),h(S)}function u(S){return t.parser.lazy[t.now().line]=n!==r.length,a=t.now().offset,m(S)}function h(S){return t.containerState={},e.attempt(bI,d,m)(S)}function d(S){return n++,r.push([t.currentConstruct,t.containerState]),h(S)}function m(S){if(S===null){i&&T(),w(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),b(S)}function b(S){if(S===null){v(e.exit("chunkFlow"),!0),w(0),e.consume(S);return}return ie(S)?(e.consume(S),v(e.exit("chunkFlow")),n=0,t.interrupt=void 0,o):(e.consume(S),b)}function v(S,O){let P=t.sliceStream(S);if(O&&P.push(null),S.previous=s,s&&(s.next=S),s=S,i.defineSkip(S.start),i.write(P),t.parser.lazy[S.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<a&&(!i.events[A][1].end||i.events[A][1].end.offset>a))return;let K=t.events.length,ee=K,J,L;for(;ee--;)if(t.events[ee][0]==="exit"&&t.events[ee][1].type==="chunkFlow"){if(J){L=t.events[ee][1].end;break}J=!0}for(w(n),A=K;A<t.events.length;)t.events[A][1].end={...L},A++;jt(t.events,ee+1,0,t.events.slice(K)),t.events.length=A}}function w(S){let O=r.length;for(;O-- >S;){let P=r[O];t.containerState=P[1],P[0].exit.call(t,e)}r.length=S}function T(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Vce(e,t,r){return be(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var yI,bI,vI=z(()=>{f();Bt();Je();xi();yI={tokenize:Uce},bI={tokenize:Vce}});function bi(e){if(e===null||Be(e)||zn(e))return 1;if(Ys(e))return 2}var xf=z(()=>{f();Je()});function Yi(e,t,r){let n=[],i=-1;for(;++i<e.length;){let s=e[i].resolveAll;s&&!n.includes(s)&&(t=s(t,r),n.push(s))}return t}var cc=z(()=>{f()});function Gce(e,t){let r=-1,n,i,s,a,o,l,c,p;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let u={...e[n][1].end},h={...e[r][1].start};_I(u,-l),_I(h,l),a={type:l>1?"strongSequence":"emphasisSequence",start:u,end:{...e[n][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:h},s={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[r][1].start={...o.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Sr(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Sr(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",s,t]]),c=Sr(c,Yi(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),c=Sr(c,[["exit",s,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(p=2,c=Sr(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):p=0,jt(e,n-1,r-n+3,c),r=n+c.length-p-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Wce(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=bi(n),s;return a;function a(l){return s=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===s)return e.consume(l),o;let c=e.exit("attentionSequence"),p=bi(l),u=!p||p===2&&i||r.includes(l),h=!i||i===2&&p||r.includes(n);return c._open=!!(s===42?u:u&&(i||!h)),c._close=!!(s===42?h:h&&(p||!u)),t(l)}}function _I(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var uc,wI=z(()=>{f();xi();xf();cc();uc={name:"attention",resolveAll:Gce,tokenize:Wce}});function Kce(e,t,r){let n=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(d){return Wt(d)?(e.consume(d),a):d===64?r(d):c(d)}function a(d){return d===43||d===45||d===46||Nt(d)?(n=1,o(d)):c(d)}function o(d){return d===58?(e.consume(d),n=0,l):(d===43||d===45||d===46||Nt(d))&&n++<32?(e.consume(d),o):(n=0,c(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Qs(d)?r(d):(e.consume(d),l)}function c(d){return d===64?(e.consume(d),p):dI(d)?(e.consume(d),c):r(d)}function p(d){return Nt(d)?u(d):r(d)}function u(d){return d===46?(e.consume(d),n=0,p):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):h(d)}function h(d){if((d===45||Nt(d))&&n++<63){let m=d===45?h:u;return e.consume(d),m}return r(d)}}var rb,EI=z(()=>{f();Je();rb={name:"autolink",tokenize:Kce}});function Zce(e,t,r){return n;function n(s){return _e(s)?be(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||ie(s)?t(s):r(s)}}var Hn,bf=z(()=>{f();Bt();Je();Hn={partial:!0,tokenize:Zce}});function Jce(e,t,r){let n=this;return i;function i(a){if(a===62){let o=n.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),s}return r(a)}function s(a){return _e(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Qce(e,t,r){let n=this;return i;function i(a){return _e(a)?be(e,s,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return e.attempt(yf,t,r)(a)}}function Yce(e){e.exit("blockQuote")}var yf,DI=z(()=>{f();Bt();Je();yf={continuation:{tokenize:Qce},exit:Yce,name:"blockQuote",tokenize:Jce}});function Xce(e,t,r){return n;function n(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return mI(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}var vf,SI=z(()=>{f();Je();vf={name:"characterEscape",tokenize:Xce}});function eue(e,t,r){let n=this,i=0,s,a;return o;function o(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),l}function l(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),s=31,a=Nt,p(u))}function c(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,a=hI,p):(e.enter("characterReferenceValue"),s=7,a=oc,p(u))}function p(u){if(u===59&&i){let h=e.exit("characterReferenceValue");return a===Nt&&!fo(n.sliceSerialize(h))?r(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(u)&&i++<s?(e.consume(u),p):r(u)}}var _f,kI=z(()=>{f();hf();Je();_f={name:"characterReference",tokenize:eue}});function tue(e,t,r){let n=this,i={partial:!0,tokenize:P},s=0,a=0,o;return l;function l(A){return c(A)}function c(A){let K=n.events[n.events.length-1];return s=K&&K[1].type==="linePrefix"?K[2].sliceSerialize(K[1],!0).length:0,o=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(A)}function p(A){return A===o?(a++,e.consume(A),p):a<3?r(A):(e.exit("codeFencedFenceSequence"),_e(A)?be(e,u,"whitespace")(A):u(A))}function u(A){return A===null||ie(A)?(e.exit("codeFencedFence"),n.interrupt?t(A):e.check(CI,b,O)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(A))}function h(A){return A===null||ie(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(A)):_e(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),be(e,d,"whitespace")(A)):A===96&&A===o?r(A):(e.consume(A),h)}function d(A){return A===null||ie(A)?u(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===null||ie(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(A)):A===96&&A===o?r(A):(e.consume(A),m)}function b(A){return e.attempt(i,O,v)(A)}function v(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),w}function w(A){return s>0&&_e(A)?be(e,T,"linePrefix",s+1)(A):T(A)}function T(A){return A===null||ie(A)?e.check(CI,b,O)(A):(e.enter("codeFlowValue"),S(A))}function S(A){return A===null||ie(A)?(e.exit("codeFlowValue"),T(A)):(e.consume(A),S)}function O(A){return e.exit("codeFenced"),t(A)}function P(A,K,ee){let J=0;return L;function L(H){return A.enter("lineEnding"),A.consume(H),A.exit("lineEnding"),N}function N(H){return A.enter("codeFencedFence"),_e(H)?be(A,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):$(H)}function $(H){return H===o?(A.enter("codeFencedFenceSequence"),q(H)):ee(H)}function q(H){return H===o?(J++,A.consume(H),q):J>=a?(A.exit("codeFencedFenceSequence"),_e(H)?be(A,E,"whitespace")(H):E(H)):ee(H)}function E(H){return H===null||ie(H)?(A.exit("codeFencedFence"),K(H)):ee(H)}}}function rue(e,t,r){let n=this;return i;function i(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s)}function s(a){return n.parser.lazy[n.now().line]?r(a):t(a)}}var CI,wf,TI=z(()=>{f();Bt();Je();CI={partial:!0,tokenize:rue},wf={concrete:!0,name:"codeFenced",tokenize:tue}});function iue(e,t,r){let n=this;return i;function i(c){return e.enter("codeIndented"),be(e,s,"linePrefix",5)(c)}function s(c){let p=n.events[n.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(c):r(c)}function a(c){return c===null?l(c):ie(c)?e.attempt(nue,a,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||ie(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}function sue(e,t,r){let n=this;return i;function i(a){return n.parser.lazy[n.now().line]?r(a):ie(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):be(e,s,"linePrefix",5)(a)}function s(a){let o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):ie(a)?i(a):r(a)}}var pc,nue,AI=z(()=>{f();Bt();Je();pc={name:"codeIndented",tokenize:iue},nue={partial:!0,tokenize:sue}});function aue(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function oue(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lue(e,t,r){let n=this,i=0,s,a;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),i++,l):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?r(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(a=e.enter("codeTextSequence"),s=0,u(h)):ie(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),p(h))}function p(h){return h===null||h===32||h===96||ie(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),p)}function u(h){return h===96?(e.consume(h),s++,u):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",p(h))}}var nb,OI=z(()=>{f();Je();nb={name:"codeText",previous:oue,resolve:aue,tokenize:lue}});function fc(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}var Ef,NI=z(()=>{f();Ef=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){let i=r||0;this.setCursor(Math.trunc(t));let s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&fc(this.left,n),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),fc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),fc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);fc(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);fc(this.left,r.reverse())}}}});function Df(e){let t={},r=-1,n,i,s,a,o,l,c,p=new Ef(e);for(;++r<p.length;){for(;r in t;)r=t[r];if(n=p.get(r),r&&n[1].type==="chunkFlow"&&p.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,cue(p,r)),r=t[r],c=!0);else if(n[1]._container){for(s=r,i=void 0;s--;)if(a=p.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(p.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(n[1].end={...p.get(i)[1].start},o=p.slice(i,r),o.unshift(n),p.splice(i,r-i+1,o))}}return jt(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}function cue(e,t){let r=e.get(t)[1],n=e.get(t)[2],i=t-1,s=[],a=r._tokenizer;a||(a=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let o=a.events,l=[],c={},p,u,h=-1,d=r,m=0,b=0,v=[b];for(;d;){for(;e.get(++i)[1]!==d;);s.push(i),d._tokenizer||(p=n.sliceStream(d),d.next||p.push(null),u&&a.defineSkip(d.start),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),u=d,d=d.next}for(d=r;++h<o.length;)o[h][0]==="exit"&&o[h-1][0]==="enter"&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(b=h+1,v.push(b),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(a.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),h=v.length;h--;){let w=o.slice(v[h],v[h+1]),T=s.pop();l.push([T,T+w.length-1]),e.splice(T,2,w)}for(l.reverse(),h=-1;++h<l.length;)c[m+l[h][0]]=m+l[h][1],m+=l[h][1]-l[h][0]-1;return c}var ib=z(()=>{f();xi();NI()});function pue(e){return Df(e),e}function fue(e,t){let r;return n;function n(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?s(o):ie(o)?e.check(uue,a,s)(o):(e.consume(o),i)}function s(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function a(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function due(e,t,r){let n=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),be(e,s,"linePrefix")}function s(a){if(a===null||ie(a))return r(a);let o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(n.parser.constructs.flow,r,t)(a)}}var sb,uue,FI=z(()=>{f();Bt();Je();ib();sb={resolve:pue,tokenize:fue},uue={partial:!0,tokenize:due}});function Sf(e,t,r,n,i,s,a,o,l){let c=l||Number.POSITIVE_INFINITY,p=0;return u;function u(w){return w===60?(e.enter(n),e.enter(i),e.enter(s),e.consume(w),e.exit(s),h):w===null||w===32||w===41||Qs(w)?r(w):(e.enter(n),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(w))}function h(w){return w===62?(e.enter(s),e.consume(w),e.exit(s),e.exit(i),e.exit(n),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(w))}function d(w){return w===62?(e.exit("chunkString"),e.exit(o),h(w)):w===null||w===60||ie(w)?r(w):(e.consume(w),w===92?m:d)}function m(w){return w===60||w===62||w===92?(e.consume(w),d):d(w)}function b(w){return!p&&(w===null||w===41||Be(w))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(n),t(w)):p<c&&w===40?(e.consume(w),p++,b):w===41?(e.consume(w),p--,b):w===null||w===32||w===40||Qs(w)?r(w):(e.consume(w),w===92?v:b)}function v(w){return w===40||w===41||w===92?(e.consume(w),b):b(w)}}var ab=z(()=>{f();Je()});function kf(e,t,r,n,i,s){let a=this,o=0,l;return c;function c(d){return e.enter(n),e.enter(i),e.consume(d),e.exit(i),e.enter(s),p}function p(d){return o>999||d===null||d===91||d===93&&!l||d===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):d===93?(e.exit(s),e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):ie(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===null||d===91||d===93||ie(d)||o++>999?(e.exit("chunkString"),p(d)):(e.consume(d),l||(l=!_e(d)),d===92?h:u)}function h(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}var ob=z(()=>{f();Je()});function Cf(e,t,r,n,i,s){let a;return o;function o(h){return h===34||h===39||h===40?(e.enter(n),e.enter(i),e.consume(h),e.exit(i),a=h===40?41:h,l):r(h)}function l(h){return h===a?(e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):(e.enter(s),c(h))}function c(h){return h===a?(e.exit(s),l(a)):h===null?r(h):ie(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),be(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===a||h===null||ie(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?u:p)}function u(h){return h===a||h===92?(e.consume(h),p):p(h)}}var lb=z(()=>{f();Bt();Je()});function Xs(e,t){let r;return n;function n(i){return ie(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):_e(i)?be(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}var cb=z(()=>{f();Bt();Je()});function mue(e,t,r){let n=this,i;return s;function s(d){return e.enter("definition"),a(d)}function a(d){return kf.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return i=Gt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):r(d)}function l(d){return Be(d)?Xs(e,c)(d):c(d)}function c(d){return Sf(e,p,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function p(d){return e.attempt(hue,u,u)(d)}function u(d){return _e(d)?be(e,h,"whitespace")(d):h(d)}function h(d){return d===null||ie(d)?(e.exit("definition"),n.parser.defined.push(i),t(d)):r(d)}}function gue(e,t,r){return n;function n(o){return Be(o)?Xs(e,i)(o):r(o)}function i(o){return Cf(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return _e(o)?be(e,a,"whitespace")(o):a(o)}function a(o){return o===null||ie(o)?t(o):r(o)}}var ub,hue,II=z(()=>{f();ab();ob();Bt();lb();cb();Je();Js();ub={name:"definition",tokenize:mue},hue={partial:!0,tokenize:gue}});function xue(e,t,r){return n;function n(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return ie(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}var pb,LI=z(()=>{f();Je();pb={name:"hardBreakEscape",tokenize:xue}});function bue(e,t){let r=e.length-2,n=3,i,s;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},s={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},jt(e,n,r-n+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function yue(e,t,r){let n=0;return i;function i(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&n++<6?(e.consume(p),a):p===null||Be(p)?(e.exit("atxHeadingSequence"),o(p)):r(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),l(p)):p===null||ie(p)?(e.exit("atxHeading"),t(p)):_e(p)?be(e,o,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function l(p){return p===35?(e.consume(p),l):(e.exit("atxHeadingSequence"),o(p))}function c(p){return p===null||p===35||Be(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),c)}}var fb,PI=z(()=>{f();Bt();Je();xi();fb={name:"headingAtx",resolve:bue,tokenize:yue}});var RI,db,MI=z(()=>{f();RI=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],db=["pre","script","style","textarea"]});function wue(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Eue(e,t,r){let n=this,i,s,a,o,l;return c;function c(F){return p(F)}function p(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),u}function u(F){return F===33?(e.consume(F),h):F===47?(e.consume(F),s=!0,b):F===63?(e.consume(F),i=3,n.interrupt?t:k):Wt(F)?(e.consume(F),a=String.fromCharCode(F),v):r(F)}function h(F){return F===45?(e.consume(F),i=2,d):F===91?(e.consume(F),i=5,o=0,m):Wt(F)?(e.consume(F),i=4,n.interrupt?t:k):r(F)}function d(F){return F===45?(e.consume(F),n.interrupt?t:k):r(F)}function m(F){let B="CDATA[";return F===B.charCodeAt(o++)?(e.consume(F),o===B.length?n.interrupt?t:$:m):r(F)}function b(F){return Wt(F)?(e.consume(F),a=String.fromCharCode(F),v):r(F)}function v(F){if(F===null||F===47||F===62||Be(F)){let B=F===47,zt=a.toLowerCase();return!B&&!s&&db.includes(zt)?(i=1,n.interrupt?t(F):$(F)):RI.includes(a.toLowerCase())?(i=6,B?(e.consume(F),w):n.interrupt?t(F):$(F)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(F):s?T(F):S(F))}return F===45||Nt(F)?(e.consume(F),a+=String.fromCharCode(F),v):r(F)}function w(F){return F===62?(e.consume(F),n.interrupt?t:$):r(F)}function T(F){return _e(F)?(e.consume(F),T):L(F)}function S(F){return F===47?(e.consume(F),L):F===58||F===95||Wt(F)?(e.consume(F),O):_e(F)?(e.consume(F),S):L(F)}function O(F){return F===45||F===46||F===58||F===95||Nt(F)?(e.consume(F),O):P(F)}function P(F){return F===61?(e.consume(F),A):_e(F)?(e.consume(F),P):S(F)}function A(F){return F===null||F===60||F===61||F===62||F===96?r(F):F===34||F===39?(e.consume(F),l=F,K):_e(F)?(e.consume(F),A):ee(F)}function K(F){return F===l?(e.consume(F),l=null,J):F===null||ie(F)?r(F):(e.consume(F),K)}function ee(F){return F===null||F===34||F===39||F===47||F===60||F===61||F===62||F===96||Be(F)?P(F):(e.consume(F),ee)}function J(F){return F===47||F===62||_e(F)?S(F):r(F)}function L(F){return F===62?(e.consume(F),N):r(F)}function N(F){return F===null||ie(F)?$(F):_e(F)?(e.consume(F),N):r(F)}function $(F){return F===45&&i===2?(e.consume(F),oe):F===60&&i===1?(e.consume(F),de):F===62&&i===4?(e.consume(F),dt):F===63&&i===3?(e.consume(F),k):F===93&&i===5?(e.consume(F),ft):ie(F)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(vue,_t,q)(F)):F===null||ie(F)?(e.exit("htmlFlowData"),q(F)):(e.consume(F),$)}function q(F){return e.check(_ue,E,_t)(F)}function E(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),H}function H(F){return F===null||ie(F)?q(F):(e.enter("htmlFlowData"),$(F))}function oe(F){return F===45?(e.consume(F),k):$(F)}function de(F){return F===47?(e.consume(F),a="",Ie):$(F)}function Ie(F){if(F===62){let B=a.toLowerCase();return db.includes(B)?(e.consume(F),dt):$(F)}return Wt(F)&&a.length<8?(e.consume(F),a+=String.fromCharCode(F),Ie):$(F)}function ft(F){return F===93?(e.consume(F),k):$(F)}function k(F){return F===62?(e.consume(F),dt):F===45&&i===2?(e.consume(F),k):$(F)}function dt(F){return F===null||ie(F)?(e.exit("htmlFlowData"),_t(F)):(e.consume(F),dt)}function _t(F){return e.exit("htmlFlow"),t(F)}}function Due(e,t,r){let n=this;return i;function i(a){return ie(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):r(a)}function s(a){return n.parser.lazy[n.now().line]?r(a):t(a)}}function Sue(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Hn,t,r)}}var hb,vue,_ue,qI=z(()=>{f();Je();MI();bf();hb={concrete:!0,name:"htmlFlow",resolveTo:wue,tokenize:Eue},vue={partial:!0,tokenize:Sue},_ue={partial:!0,tokenize:Due}});function kue(e,t,r){let n=this,i,s,a;return o;function o(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),l}function l(k){return k===33?(e.consume(k),c):k===47?(e.consume(k),P):k===63?(e.consume(k),S):Wt(k)?(e.consume(k),ee):r(k)}function c(k){return k===45?(e.consume(k),p):k===91?(e.consume(k),s=0,m):Wt(k)?(e.consume(k),T):r(k)}function p(k){return k===45?(e.consume(k),d):r(k)}function u(k){return k===null?r(k):k===45?(e.consume(k),h):ie(k)?(a=u,de(k)):(e.consume(k),u)}function h(k){return k===45?(e.consume(k),d):u(k)}function d(k){return k===62?oe(k):k===45?h(k):u(k)}function m(k){let dt="CDATA[";return k===dt.charCodeAt(s++)?(e.consume(k),s===dt.length?b:m):r(k)}function b(k){return k===null?r(k):k===93?(e.consume(k),v):ie(k)?(a=b,de(k)):(e.consume(k),b)}function v(k){return k===93?(e.consume(k),w):b(k)}function w(k){return k===62?oe(k):k===93?(e.consume(k),w):b(k)}function T(k){return k===null||k===62?oe(k):ie(k)?(a=T,de(k)):(e.consume(k),T)}function S(k){return k===null?r(k):k===63?(e.consume(k),O):ie(k)?(a=S,de(k)):(e.consume(k),S)}function O(k){return k===62?oe(k):S(k)}function P(k){return Wt(k)?(e.consume(k),A):r(k)}function A(k){return k===45||Nt(k)?(e.consume(k),A):K(k)}function K(k){return ie(k)?(a=K,de(k)):_e(k)?(e.consume(k),K):oe(k)}function ee(k){return k===45||Nt(k)?(e.consume(k),ee):k===47||k===62||Be(k)?J(k):r(k)}function J(k){return k===47?(e.consume(k),oe):k===58||k===95||Wt(k)?(e.consume(k),L):ie(k)?(a=J,de(k)):_e(k)?(e.consume(k),J):oe(k)}function L(k){return k===45||k===46||k===58||k===95||Nt(k)?(e.consume(k),L):N(k)}function N(k){return k===61?(e.consume(k),$):ie(k)?(a=N,de(k)):_e(k)?(e.consume(k),N):J(k)}function $(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),i=k,q):ie(k)?(a=$,de(k)):_e(k)?(e.consume(k),$):(e.consume(k),E)}function q(k){return k===i?(e.consume(k),i=void 0,H):k===null?r(k):ie(k)?(a=q,de(k)):(e.consume(k),q)}function E(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||Be(k)?J(k):(e.consume(k),E)}function H(k){return k===47||k===62||Be(k)?J(k):r(k)}function oe(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):r(k)}function de(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Ie}function Ie(k){return _e(k)?be(e,ft,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):ft(k)}function ft(k){return e.enter("htmlTextData"),a(k)}}var mb,jI=z(()=>{f();Bt();Je();mb={name:"htmlText",tokenize:kue}});function Oue(e){let t=-1,r=[];for(;++t<e.length;){let n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&jt(e,0,e.length,r),e}function Nue(e,t){let r=e.length,n=0,i,s,a,o;for(;r--;)if(i=e[r][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(a=r);let l={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[s][1].start},end:{...e[a][1].end}},p={type:"labelText",start:{...e[s+n+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=Sr(o,e.slice(s+1,s+n+3)),o=Sr(o,[["enter",p,t]]),o=Sr(o,Yi(t.parser.constructs.insideSpan.null,e.slice(s+n+4,a-3),t)),o=Sr(o,[["exit",p,t],e[a-2],e[a-1],["exit",c,t]]),o=Sr(o,e.slice(a+1)),o=Sr(o,[["exit",l,t]]),jt(e,s,e.length,o),e}function Fue(e,t,r){let n=this,i=n.events.length,s,a;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){s=n.events[i][1];break}return o;function o(h){return s?s._inactive?u(h):(a=n.parser.defined.includes(Gt(n.sliceSerialize({start:s.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):r(h)}function l(h){return h===40?e.attempt(Cue,p,a?p:u)(h):h===91?e.attempt(Tue,p,a?c:u)(h):a?p(h):u(h)}function c(h){return e.attempt(Aue,p,u)(h)}function p(h){return t(h)}function u(h){return s._balanced=!0,r(h)}}function Iue(e,t,r){return n;function n(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),i}function i(u){return Be(u)?Xs(e,s)(u):s(u)}function s(u){return u===41?p(u):Sf(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function a(u){return Be(u)?Xs(e,l)(u):p(u)}function o(u){return r(u)}function l(u){return u===34||u===39||u===40?Cf(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):p(u)}function c(u){return Be(u)?Xs(e,p)(u):p(u)}function p(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):r(u)}}function Lue(e,t,r){let n=this;return i;function i(o){return kf.call(n,e,s,a,"reference","referenceMarker","referenceString")(o)}function s(o){return n.parser.defined.includes(Gt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function a(o){return r(o)}}function Pue(e,t,r){return n;function n(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}var ea,Cue,Tue,Aue,Tf=z(()=>{f();ab();ob();lb();cb();Je();xi();Js();cc();ea={name:"labelEnd",resolveAll:Oue,resolveTo:Nue,tokenize:Fue},Cue={tokenize:Iue},Tue={tokenize:Lue},Aue={tokenize:Pue}});function Rue(e,t,r){let n=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),s}function s(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):r(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}var gb,BI=z(()=>{f();Tf();gb={name:"labelStartImage",resolveAll:ea.resolveAll,tokenize:Rue}});function Mue(e,t,r){let n=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):t(a)}}var xb,$I=z(()=>{f();Tf();xb={name:"labelStartLink",resolveAll:ea.resolveAll,tokenize:Mue}});function que(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),be(e,t,"linePrefix")}}var dc,zI=z(()=>{f();Bt();dc={name:"lineEnding",tokenize:que}});function jue(e,t,r){let n=0,i;return s;function s(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,o(c)}function o(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):n>=3&&(c===null||ie(c))?(e.exit("thematicBreak"),t(c)):r(c)}function l(c){return c===i?(e.consume(c),n++,l):(e.exit("thematicBreakSequence"),_e(c)?be(e,o,"whitespace")(c):o(c))}}var ta,bb=z(()=>{f();Bt();Je();ta={name:"thematicBreak",tokenize:jue}});function zue(e,t,r){let n=this,i=n.events[n.events.length-1],s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(d){let m=n.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||d===n.containerState.marker:oc(d)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(ta,r,c)(d):c(d);if(!n.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return r(d)}function l(d){return oc(d)&&++a<10?(e.consume(d),l):(!n.interrupt||a<2)&&(n.containerState.marker?d===n.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),c(d)):r(d)}function c(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||d,e.check(Hn,n.interrupt?r:p,e.attempt(Bue,h,u))}function p(d){return n.containerState.initialBlankLine=!0,s++,h(d)}function u(d){return _e(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),h):r(d)}function h(d){return n.containerState.size=s+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function Hue(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(Hn,i,s);function i(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,be(e,t,"listItemIndent",n.containerState.size+1)(o)}function s(o){return n.containerState.furtherBlankLines||!_e(o)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(o)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt($ue,t,a)(o))}function a(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,be(e,e.attempt(dr,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Uue(e,t,r){let n=this;return be(e,i,"listItemIndent",n.containerState.size+1);function i(s){let a=n.events[n.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===n.containerState.size?t(s):r(s)}}function Vue(e){e.exit(this.containerState.type)}function Gue(e,t,r){let n=this;return be(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){let a=n.events[n.events.length-1];return!_e(s)&&a&&a[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}var dr,Bue,$ue,HI=z(()=>{f();Bt();Je();bf();bb();dr={continuation:{tokenize:Hue},exit:Vue,name:"list",tokenize:zue},Bue={partial:!0,tokenize:Gue},$ue={partial:!0,tokenize:Uue}});function Wue(e,t){let r=e.length,n,i,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",a,t]),e.splice(s+1,0,["exit",e[n][1],t]),e[n][1].end={...e[s][1].end}):e[n][1]=a,e.push(["exit",a,t]),e}function Kue(e,t,r){let n=this,i;return s;function s(c){let p=n.events.length,u;for(;p--;)if(n.events[p][1].type!=="lineEnding"&&n.events[p][1].type!=="linePrefix"&&n.events[p][1].type!=="content"){u=n.events[p][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||u)?(e.enter("setextHeadingLine"),i=c,a(c)):r(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),_e(c)?be(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||ie(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}var Af,UI=z(()=>{f();Bt();Je();Af={name:"setextUnderline",resolveTo:Wue,tokenize:Kue}});var Of=z(()=>{f();wI();EI();bf();DI();SI();kI();TI();AI();OI();FI();II();LI();PI();qI();jI();Tf();BI();$I();zI();HI();UI();bb()});function Zue(e){let t=this,r=e.attempt(Hn,n,e.attempt(this.parser.constructs.flowInitial,i,be(e,e.attempt(this.parser.constructs.flow,i,e.attempt(sb,i)),"linePrefix")));return r;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var VI,GI=z(()=>{f();Of();Bt();VI={tokenize:Zue}});function JI(e){return{resolveAll:QI(e==="text"?Jue:void 0),tokenize:t};function t(r){let n=this,i=this.parser.constructs[e],s=r.attempt(i,a,o);return a;function a(p){return c(p)?s(p):o(p)}function o(p){if(p===null){r.consume(p);return}return r.enter("data"),r.consume(p),l}function l(p){return c(p)?(r.exit("data"),s(p)):(r.consume(p),l)}function c(p){if(p===null)return!0;let u=i[p],h=-1;if(u)for(;++h<u.length;){let d=u[h];if(!d.previous||d.previous.call(n,n.previous))return!0}return!1}}}function QI(e){return t;function t(r,n){let i=-1,s;for(;++i<=r.length;)s===void 0?r[i]&&r[i][1].type==="data"&&(s=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==s+2&&(r[s][1].end=r[i-1][1].end,r.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(r,n):r}}function Jue(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let n=e[r-1][1],i=t.sliceStream(n),s=i.length,a=-1,o=0,l;for(;s--;){let c=i[s];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(c===-2)l=!0,o++;else if(c!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){let c={type:r===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:n.start._bufferIndex+a,_index:n.start._index+s,line:n.end.line,column:n.end.column-o,offset:n.end.offset-o},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}var WI,KI,ZI,yb=z(()=>{f();WI={resolveAll:QI()},KI=JI("string"),ZI=JI("text")});var vb={};ll(vb,{attentionMarkers:()=>ipe,contentInitial:()=>Yue,disable:()=>spe,document:()=>Que,flow:()=>epe,flowInitial:()=>Xue,insideSpan:()=>npe,string:()=>tpe,text:()=>rpe});var Que,Yue,Xue,epe,tpe,rpe,npe,ipe,spe,YI=z(()=>{f();Of();yb();Que={42:dr,43:dr,45:dr,48:dr,49:dr,50:dr,51:dr,52:dr,53:dr,54:dr,55:dr,56:dr,57:dr,62:yf},Yue={91:ub},Xue={[-2]:pc,[-1]:pc,32:pc},epe={35:fb,42:ta,45:[Af,ta],60:hb,61:Af,95:ta,96:wf,126:wf},tpe={38:_f,92:vf},rpe={[-5]:dc,[-4]:dc,[-3]:dc,33:gb,38:_f,42:uc,60:[rb,mb],91:xb,92:[pb,vf],93:ea,95:uc,96:nb},npe={null:[uc,WI]},ipe={null:[42,95]},spe={null:[]}});function XI(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},i={},s=[],a=[],o=[],l=!0,c={attempt:J(K),check:J(ee),consume:O,enter:P,exit:A,interrupt:J(ee,{interrupt:!0})},p={code:null,containerState:{},defineSkip:w,events:[],now:v,parser:e,previous:null,sliceSerialize:m,sliceStream:b,write:d},u=t.tokenize.call(p,c),h;return t.resolveAll&&s.push(t),p;function d(q){return a=Sr(a,q),T(),a[a.length-1]!==null?[]:(L(t,0),p.events=Yi(s,p.events,p),p.events)}function m(q,E){return ope(b(q),E)}function b(q){return ape(a,q)}function v(){let{_bufferIndex:q,_index:E,line:H,column:oe,offset:de}=n;return{_bufferIndex:q,_index:E,line:H,column:oe,offset:de}}function w(q){i[q.line]=q.column,$()}function T(){let q;for(;n._index<a.length;){let E=a[n._index];if(typeof E=="string")for(q=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===q&&n._bufferIndex<E.length;)S(E.charCodeAt(n._bufferIndex));else S(E)}}function S(q){l=void 0,h=q,u=u(q)}function O(q){ie(q)?(n.line++,n.column=1,n.offset+=q===-3?2:1,$()):q!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++)),p.previous=q,l=!0}function P(q,E){let H=E||{};return H.type=q,H.start=v(),p.events.push(["enter",H,p]),o.push(H),H}function A(q){let E=o.pop();return E.end=v(),p.events.push(["exit",E,p]),E}function K(q,E){L(q,E.from)}function ee(q,E){E.restore()}function J(q,E){return H;function H(oe,de,Ie){let ft,k,dt,_t;return Array.isArray(oe)?B(oe):"tokenize"in oe?B([oe]):F(oe);function F(ne){return Fe;function Fe(Me){let et=Me!==null&&ne[Me],ct=Me!==null&&ne.null,er=[...Array.isArray(et)?et:et?[et]:[],...Array.isArray(ct)?ct:ct?[ct]:[]];return B(er)(Me)}}function B(ne){return ft=ne,k=0,ne.length===0?Ie:zt(ne[k])}function zt(ne){return Fe;function Fe(Me){return _t=N(),dt=ne,ne.partial||(p.currentConstruct=ne),ne.name&&p.parser.constructs.disable.null.includes(ne.name)?We(Me):ne.tokenize.call(E?Object.assign(Object.create(p),E):p,c,fe,We)(Me)}}function fe(ne){return l=!0,q(dt,_t),de}function We(ne){return l=!0,_t.restore(),++k<ft.length?zt(ft[k]):Ie}}}function L(q,E){q.resolveAll&&!s.includes(q)&&s.push(q),q.resolve&&jt(p.events,E,p.events.length-E,q.resolve(p.events.slice(E),p)),q.resolveTo&&(p.events=q.resolveTo(p.events,p))}function N(){let q=v(),E=p.previous,H=p.currentConstruct,oe=p.events.length,de=Array.from(o);return{from:oe,restore:Ie};function Ie(){n=q,p.previous=E,p.currentConstruct=H,p.events.length=oe,o=de,$()}}function $(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function ape(e,t){let r=t.start._index,n=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex,a;if(r===i)a=[e[r].slice(n,s)];else{if(a=e.slice(r,i),n>-1){let o=a[0];typeof o=="string"?a[0]=o.slice(n):a.shift()}s>0&&a.push(e[i].slice(0,s))}return a}function ope(e,t){let r=-1,n=[],i;for(;++r<e.length;){let s=e[r],a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=`
|
|
100
|
+
`;break}case-3:{a=`\r
|
|
101
|
+
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(s)}i=s===-2,n.push(a)}return n.join("")}var e4=z(()=>{f();Je();xi();cc()});function _b(e){let n={constructs:mf([vb,...(e||{}).extensions||[]]),content:i(gI),defined:[],document:i(yI),flow:i(VI),lazy:{},string:i(KI),text:i(ZI)};return n;function i(s){return a;function a(o){return XI(n,s,o)}}}var t4=z(()=>{f();Xx();xI();vI();GI();yb();YI();e4()});function wb(e){for(;!Df(e););return e}var r4=z(()=>{f();ib()});function Eb(){let e=1,t="",r=!0,n;return i;function i(s,a,o){let l=[],c,p,u,h,d;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),u=0,t="",r&&(s.charCodeAt(0)===65279&&u++,r=void 0);u<s.length;){if(n4.lastIndex=u,c=n4.exec(s),h=c&&c.index!==void 0?c.index:s.length,d=s.charCodeAt(h),!c){t=s.slice(u);break}if(d===10&&u===h&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),u<h&&(l.push(s.slice(u,h)),e+=h-u),d){case 0:{l.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,l.push(-2);e++<p;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}u=h+1}return o&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}var n4,i4=z(()=>{f();n4=/[\0\t\n\r]/g});var s4=z(()=>{f();t4();r4();i4()});function a4(e){return e.replace(lpe,cpe)}function cpe(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let i=r.charCodeAt(1),s=i===120||i===88;return gf(r.slice(s?2:1),s?16:10)}return fo(r)||e}var lpe,o4=z(()=>{f();hf();eb();lpe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi});function ho(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?l4(e.position):"start"in e||"end"in e?l4(e):"line"in e||"column"in e?Db(e):""}function Db(e){return c4(e&&e.line)+":"+c4(e&&e.column)}function l4(e){return Db(e&&e.start)+"-"+Db(e&&e.end)}function c4(e){return e&&typeof e=="number"?e:1}var u4=z(()=>{f()});var p4=z(()=>{f();u4()});function h4(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),upe(r)(wb(_b(r).document().write(Eb()(e,t,!0))))}function upe(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(M),autolinkProtocol:J,autolinkEmail:J,atxHeading:s(I),blockQuote:s(Me),characterEscape:J,characterReference:J,codeFenced:s(et),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(et,a),codeText:s(ct,a),codeTextData:J,data:J,codeFlowValue:J,definition:s(er),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(ki),hardBreakEscape:s(R),hardBreakTrailing:s(R),htmlFlow:s(Q,a),htmlFlowData:J,htmlText:s(Q,a),htmlTextData:J,image:s(W),label:a,link:s(M),listItem:s(te),listItemValue:h,listOrdered:s(ae,u),listUnordered:s(ae),paragraph:s(le),reference:F,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(I),strong:s(ve),thematicBreak:s(Or)},exit:{atxHeading:l(),atxHeadingSequence:P,autolink:l(),autolinkEmail:Fe,autolinkProtocol:ne,blockQuote:l(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:zt,characterReferenceMarkerNumeric:zt,characterReferenceValue:fe,characterReference:We,codeFenced:l(v),codeFencedFence:b,codeFencedFenceInfo:d,codeFencedFenceMeta:m,codeFlowValue:L,codeIndented:l(w),codeText:l(H),codeTextData:L,data:L,definition:l(),definitionDestinationString:O,definitionLabelString:T,definitionTitleString:S,emphasis:l(),hardBreakEscape:l($),hardBreakTrailing:l($),htmlFlow:l(q),htmlFlowData:L,htmlText:l(E),htmlTextData:L,image:l(de),label:ft,labelText:Ie,lineEnding:N,link:l(oe),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:B,resourceDestinationString:k,resourceTitleString:dt,resource:_t,setextHeading:l(ee),setextHeadingLineSequence:K,setextHeadingText:A,strong:l(),thematicBreak:l()}};m4(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(G){let Y={type:"root",children:[]},De={stack:[Y],tokenStack:[],config:t,enter:o,exit:c,buffer:a,resume:p,data:r},$e=[],ze=-1;for(;++ze<G.length;)if(G[ze][1].type==="listOrdered"||G[ze][1].type==="listUnordered")if(G[ze][0]==="enter")$e.push(ze);else{let Br=$e.pop();ze=i(G,Br,ze)}for(ze=-1;++ze<G.length;){let Br=t[G[ze][0]];d4.call(Br,G[ze][1].type)&&Br[G[ze][1].type].call(Object.assign({sliceSerialize:G[ze][2].sliceSerialize},De),G[ze][1])}if(De.tokenStack.length>0){let Br=De.tokenStack[De.tokenStack.length-1];(Br[1]||f4).call(De,void 0,Br[0])}for(Y.position={start:Xi(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:Xi(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},ze=-1;++ze<t.transforms.length;)Y=t.transforms[ze](Y)||Y;return Y}function i(G,Y,De){let $e=Y-1,ze=-1,Br=!1,si,Le,Ce,ut;for(;++$e<=De;){let wt=G[$e];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?ze++:ze--,ut=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(si&&!ut&&!ze&&!Ce&&(Ce=$e),ut=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ut=void 0}if(!ze&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||ze===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(si){let tr=$e;for(Le=void 0;tr--;){let vr=G[tr];if(vr[1].type==="lineEnding"||vr[1].type==="lineEndingBlank"){if(vr[0]==="exit")continue;Le&&(G[Le][1].type="lineEndingBlank",Br=!0),vr[1].type="lineEnding",Le=tr}else if(!(vr[1].type==="linePrefix"||vr[1].type==="blockQuotePrefix"||vr[1].type==="blockQuotePrefixWhitespace"||vr[1].type==="blockQuoteMarker"||vr[1].type==="listItemIndent"))break}Ce&&(!Le||Ce<Le)&&(si._spread=!0),si.end=Object.assign({},Le?G[Le][1].start:wt[1].end),G.splice(Le||$e,0,["exit",si,wt[2]]),$e++,De++}if(wt[1].type==="listItemPrefix"){let tr={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};si=tr,G.splice($e,0,["enter",tr,wt[2]]),$e++,De++,Ce=void 0,ut=!0}}}return G[Y][1]._spread=Br,De}function s(G,Y){return De;function De($e){o.call(this,G($e),$e),Y&&Y.call(this,$e)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(G,Y,De){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([Y,De||void 0]),G.position={start:Xi(Y.start),end:void 0}}function l(G){return Y;function Y(De){G&&G.call(this,De),c.call(this,De)}}function c(G,Y){let De=this.stack.pop(),$e=this.tokenStack.pop();if($e)$e[0].type!==G.type&&(Y?Y.call(this,G,$e[0]):($e[1]||f4).call(this,G,$e[0]));else throw new Error("Cannot close `"+G.type+"` ("+ho({start:G.start,end:G.end})+"): it\u2019s not open");De.position.end=Xi(G.end)}function p(){return Ji(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function h(G){if(this.data.expectingFirstListItemValue){let Y=this.stack[this.stack.length-2];Y.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function d(){let G=this.resume(),Y=this.stack[this.stack.length-1];Y.lang=G}function m(){let G=this.resume(),Y=this.stack[this.stack.length-1];Y.meta=G}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){let G=this.resume(),Y=this.stack[this.stack.length-1];Y.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){let G=this.resume(),Y=this.stack[this.stack.length-1];Y.value=G.replace(/(\r?\n|\r)$/g,"")}function T(G){let Y=this.resume(),De=this.stack[this.stack.length-1];De.label=Y,De.identifier=Gt(this.sliceSerialize(G)).toLowerCase()}function S(){let G=this.resume(),Y=this.stack[this.stack.length-1];Y.title=G}function O(){let G=this.resume(),Y=this.stack[this.stack.length-1];Y.url=G}function P(G){let Y=this.stack[this.stack.length-1];if(!Y.depth){let De=this.sliceSerialize(G).length;Y.depth=De}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function K(G){let Y=this.stack[this.stack.length-1];Y.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function J(G){let De=this.stack[this.stack.length-1].children,$e=De[De.length-1];(!$e||$e.type!=="text")&&($e=Ut(),$e.position={start:Xi(G.start),end:void 0},De.push($e)),this.stack.push($e)}function L(G){let Y=this.stack.pop();Y.value+=this.sliceSerialize(G),Y.position.end=Xi(G.end)}function N(G){let Y=this.stack[this.stack.length-1];if(this.data.atHardBreak){let De=Y.children[Y.children.length-1];De.position.end=Xi(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Y.type)&&(J.call(this,G),L.call(this,G))}function $(){this.data.atHardBreak=!0}function q(){let G=this.resume(),Y=this.stack[this.stack.length-1];Y.value=G}function E(){let G=this.resume(),Y=this.stack[this.stack.length-1];Y.value=G}function H(){let G=this.resume(),Y=this.stack[this.stack.length-1];Y.value=G}function oe(){let G=this.stack[this.stack.length-1];if(this.data.inReference){let Y=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=Y,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function de(){let G=this.stack[this.stack.length-1];if(this.data.inReference){let Y=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=Y,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function Ie(G){let Y=this.sliceSerialize(G),De=this.stack[this.stack.length-2];De.label=a4(Y),De.identifier=Gt(Y).toLowerCase()}function ft(){let G=this.stack[this.stack.length-1],Y=this.resume(),De=this.stack[this.stack.length-1];if(this.data.inReference=!0,De.type==="link"){let $e=G.children;De.children=$e}else De.alt=Y}function k(){let G=this.resume(),Y=this.stack[this.stack.length-1];Y.url=G}function dt(){let G=this.resume(),Y=this.stack[this.stack.length-1];Y.title=G}function _t(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function B(G){let Y=this.resume(),De=this.stack[this.stack.length-1];De.label=Y,De.identifier=Gt(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function zt(G){this.data.characterReferenceType=G.type}function fe(G){let Y=this.sliceSerialize(G),De=this.data.characterReferenceType,$e;De?($e=gf(Y,De==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$e=fo(Y);let ze=this.stack[this.stack.length-1];ze.value+=$e}function We(G){let Y=this.stack.pop();Y.position.end=Xi(G.end)}function ne(G){L.call(this,G);let Y=this.stack[this.stack.length-1];Y.url=this.sliceSerialize(G)}function Fe(G){L.call(this,G);let Y=this.stack[this.stack.length-1];Y.url="mailto:"+this.sliceSerialize(G)}function Me(){return{type:"blockquote",children:[]}}function et(){return{type:"code",lang:null,meta:null,value:""}}function ct(){return{type:"inlineCode",value:""}}function er(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ki(){return{type:"emphasis",children:[]}}function I(){return{type:"heading",depth:0,children:[]}}function R(){return{type:"break"}}function Q(){return{type:"html",value:""}}function W(){return{type:"image",title:null,url:"",alt:null}}function M(){return{type:"link",title:null,url:"",children:[]}}function ae(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function te(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function le(){return{type:"paragraph",children:[]}}function ve(){return{type:"strong",children:[]}}function Ut(){return{type:"text",value:""}}function Or(){return{type:"thematicBreak"}}}function Xi(e){return{line:e.line,column:e.column,offset:e.offset}}function m4(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?m4(e,n):ppe(e,n)}}function ppe(e,t){let r;for(r in t)if(d4.call(t,r))switch(r){case"canContainEols":{let n=t[r];n&&e[r].push(...n);break}case"transforms":{let n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{let n=t[r];n&&Object.assign(e[r],n);break}}}function f4(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ho({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ho({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ho({start:t.start,end:t.end})+") is still open")}var d4,g4=z(()=>{f();ac();s4();eb();o4();Js();hf();p4();d4={}.hasOwnProperty});var x4={};ll(x4,{fromMarkdown:()=>h4});var b4=z(()=>{f();g4()});function kb(){return{text:Un}}function hpe(e,t,r){let n=this,i,s;return a;function a(u){return!Sb(u)||!k4.call(n,n.previous)||Cb(n.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(u))}function o(u){return Sb(u)?(e.consume(u),o):u===64?(e.consume(u),l):r(u)}function l(u){return u===46?e.check(dpe,p,c)(u):u===45||u===95||Nt(u)?(s=!0,e.consume(u),l):p(u)}function c(u){return e.consume(u),i=!0,l}function p(u){return s&&i&&Wt(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(u)):r(u)}}function mpe(e,t,r){let n=this;return i;function i(a){return a!==87&&a!==119||!D4.call(n,n.previous)||Cb(n.events)?r(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(fpe,e.attempt(y4,e.attempt(v4,s),r),r)(a))}function s(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function gpe(e,t,r){let n=this,i="",s=!1;return a;function a(u){return(u===72||u===104)&&S4.call(n,n.previous)&&!Cb(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(u),e.consume(u),o):r(u)}function o(u){if(Wt(u)&&i.length<5)return i+=String.fromCodePoint(u),e.consume(u),o;if(u===58){let h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(u),l}return r(u)}function l(u){return u===47?(e.consume(u),s?c:(s=!0,l)):r(u)}function c(u){return u===null||Qs(u)||Be(u)||zn(u)||Ys(u)?r(u):e.attempt(y4,e.attempt(v4,p),r)(u)}function p(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(u)}}function xpe(e,t,r){let n=0;return i;function i(a){return(a===87||a===119)&&n<3?(n++,e.consume(a),i):a===46&&n===3?(e.consume(a),s):r(a)}function s(a){return a===null?r(a):t(a)}}function bpe(e,t,r){let n,i,s;return a;function a(c){return c===46||c===95?e.check(_4,l,o)(c):c===null||Be(c)||zn(c)||c!==45&&Ys(c)?l(c):(s=!0,e.consume(c),a)}function o(c){return c===95?n=!0:(i=n,n=void 0),e.consume(c),a}function l(c){return i||n||!s?r(c):t(c)}}function ype(e,t){let r=0,n=0;return i;function i(a){return a===40?(r++,e.consume(a),i):a===41&&n<r?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(_4,t,s)(a):a===null||Be(a)||zn(a)?t(a):(e.consume(a),i)}function s(a){return a===41&&n++,e.consume(a),i}}function vpe(e,t,r){return n;function n(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),n):o===38?(e.consume(o),s):o===93?(e.consume(o),i):o===60||o===null||Be(o)||zn(o)?t(o):r(o)}function i(o){return o===null||o===40||o===91||Be(o)||zn(o)?t(o):n(o)}function s(o){return Wt(o)?a(o):r(o)}function a(o){return o===59?(e.consume(o),n):Wt(o)?(e.consume(o),a):r(o)}}function _pe(e,t,r){return n;function n(s){return e.consume(s),i}function i(s){return Nt(s)?r(s):t(s)}}function D4(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Be(e)}function S4(e){return!Wt(e)}function k4(e){return!(e===47||Sb(e))}function Sb(e){return e===43||e===45||e===46||e===95||Nt(e)}function Cb(e){let t=e.length,r=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}var fpe,y4,v4,_4,dpe,w4,E4,yi,Un,ra,C4=z(()=>{f();Je();fpe={tokenize:xpe,partial:!0},y4={tokenize:bpe,partial:!0},v4={tokenize:ype,partial:!0},_4={tokenize:vpe,partial:!0},dpe={tokenize:_pe,partial:!0},w4={name:"wwwAutolink",tokenize:mpe,previous:D4},E4={name:"protocolAutolink",tokenize:gpe,previous:S4},yi={name:"emailAutolink",tokenize:hpe,previous:k4},Un={};ra=48;for(;ra<123;)Un[ra]=yi,ra++,ra===58?ra=65:ra===91&&(ra=97);Un[43]=yi;Un[45]=yi;Un[46]=yi;Un[95]=yi;Un[72]=[yi,E4];Un[104]=[yi,E4];Un[87]=[yi,w4];Un[119]=[yi,w4]});function Tb(){return{exit:{literalAutolinkEmail:Epe,literalAutolinkHttp:Dpe,literalAutolinkWww:wpe}}}function wpe(e){Ab.call(this,e,"http://")}function Epe(e){Ab.call(this,e,"mailto:")}function Dpe(e){Ab.call(this,e)}function Ab(e,t){let r=this.sliceSerialize(e);this.tag('<a href="'+lc((t||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}var T4=z(()=>{f();tb()});var A4=z(()=>{f();C4();T4()});function Ob(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ape,continuation:{tokenize:Ope},exit:Npe}},text:{91:{name:"gfmFootnoteCall",tokenize:Tpe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:kpe,resolveTo:Cpe}}}}function kpe(e,t,r){let n=this,i=n.events.length,s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),a;for(;i--;){let l=n.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!a||!a._balanced)return r(l);let c=Gt(n.sliceSerialize({start:a.end,end:n.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Cpe(e,t){let r=e.length,n;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",s,t],["exit",s,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function Tpe(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s=0,a;return o;function o(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),l}function l(u){return u!==94?r(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(s>999||u===93&&!a||u===null||u===91||Be(u))return r(u);if(u===93){e.exit("chunkString");let h=e.exit("gfmFootnoteCallString");return i.includes(Gt(n.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(u)}return Be(u)||(a=!0),s++,e.consume(u),u===92?p:c}function p(u){return u===91||u===92||u===93?(e.consume(u),s++,c):c(u)}}function Ape(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s,a=0,o;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):r(m)}function p(m){if(a>999||m===93&&!o||m===null||m===91||Be(m))return r(m);if(m===93){e.exit("chunkString");let b=e.exit("gfmFootnoteDefinitionLabelString");return s=Gt(n.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Be(m)||(o=!0),a++,e.consume(m),m===92?u:p}function u(m){return m===91||m===92||m===93?(e.consume(m),a++,p):p(m)}function h(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(s)||i.push(s),be(e,d,"gfmFootnoteDefinitionWhitespace")):r(m)}function d(m){return t(m)}}function Ope(e,t,r){return e.check(Hn,t,e.attempt(Spe,t,r))}function Npe(e){e.exit("gfmFootnoteDefinition")}function Fpe(e,t,r){let n=this;return be(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){let a=n.events[n.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(s):r(s)}}var Spe,O4=z(()=>{f();Of();Bt();Je();Js();Spe={tokenize:Fpe,partial:!0}});function N4(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Nb(e){let t=e||Lpe,r=t.label||"Footnotes",n=t.labelTagName||"h2",i=t.labelAttributes===null||t.labelAttributes===void 0?'class="sr-only"':t.labelAttributes,s=t.backLabel||N4,a=t.clobberPrefix===null||t.clobberPrefix===void 0?"user-content-":t.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData("tightStack").push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let o=this.getData("gfmFootnoteDefinitions"),l=this.getData("gfmFootnoteDefinitionStack"),c=this.getData("tightStack"),p=l.pop(),u=this.resume();o||this.setData("gfmFootnoteDefinitions",o={}),Ipe.call(o,p)||(o[p]=u),c.pop(),this.setData("slurpOneLineEnding",!0),this.setData("lastWasTag")},gfmFootnoteDefinitionLabelString(o){let l=this.getData("gfmFootnoteDefinitionStack");l||this.setData("gfmFootnoteDefinitionStack",l=[]),l.push(Gt(this.sliceSerialize(o))),this.resume(),this.buffer()},gfmFootnoteCallString(o){let l=this.getData("gfmFootnoteCallOrder"),c=this.getData("gfmFootnoteCallCounts"),p=Gt(this.sliceSerialize(o)),u;this.resume(),l||this.setData("gfmFootnoteCallOrder",l=[]),c||this.setData("gfmFootnoteCallCounts",c={});let h=l.indexOf(p),d=lc(p.toLowerCase());h===-1?(l.push(p),c[p]=1,u=l.length):(c[p]++,u=h+1);let m=c[p];this.tag('<sup><a href="#'+a+"fn-"+d+'" id="'+a+"fnref-"+d+(m>1?"-"+m:"")+'" data-footnote-ref="" aria-describedby="footnote-label">'+String(u)+"</a></sup>")},null(){let o=this.getData("gfmFootnoteCallOrder")||[],l=this.getData("gfmFootnoteCallCounts")||{},c=this.getData("gfmFootnoteDefinitions")||{},p=-1;for(o.length>0&&(this.lineEndingIfNeeded(),this.tag('<section data-footnotes="" class="footnotes"><'+n+' id="footnote-label"'+(i?" "+i:"")+">"),this.raw(this.encode(r)),this.tag("</"+n+">"),this.lineEndingIfNeeded(),this.tag("<ol>"));++p<o.length;){let u=o[p],h=lc(u.toLowerCase()),d=0,m=[];for(;++d<=l[u];)m.push('<a href="#'+a+"fnref-"+h+(d>1?"-"+d:"")+'" data-footnote-backref="" aria-label="'+this.encode(typeof s=="string"?s:s(p,d))+'" class="data-footnote-backref">\u21A9'+(d>1?"<sup>"+d+"</sup>":"")+"</a>");let b=m.join(" "),v=!1;this.lineEndingIfNeeded(),this.tag('<li id="'+a+"fn-"+h+'">'),this.lineEndingIfNeeded(),this.tag(c[u].replace(/<\/p>(?:\r?\n|\r)?$/,function(w){return v=!0," "+b+w})),v||(this.lineEndingIfNeeded(),this.tag(b)),this.lineEndingIfNeeded(),this.tag("</li>")}o.length>0&&(this.lineEndingIfNeeded(),this.tag("</ol>"),this.lineEndingIfNeeded(),this.tag("</section>"))}}}}var Ipe,Lpe,F4=z(()=>{f();Js();tb();Ipe={}.hasOwnProperty,Lpe={}});var I4=z(()=>{f();O4();F4()});function Fb(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}var L4=z(()=>{f()});function Ib(e){let r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:s,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(a,o){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let c=l;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[l][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";let p={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[l][1].end)},u={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[l][1].start)},h=[["enter",p,o],["enter",a[c][1],o],["exit",a[c][1],o],["enter",u,o]],d=o.parser.constructs.insideSpan.null;d&&jt(h,h.length,0,Yi(d,a.slice(c+1,l),o)),jt(h,h.length,0,[["exit",u,o],["enter",a[l][1],o],["exit",a[l][1],o],["exit",p,o]]),jt(a,c-1,l-c+3,h),l=c+h.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function s(a,o,l){let c=this.previous,p=this.events,u=0;return h;function h(m){return c===126&&p[p.length-1][1].type!=="characterEscape"?l(m):(a.enter("strikethroughSequenceTemporary"),d(m))}function d(m){let b=bi(c);if(m===126)return u>1?l(m):(a.consume(m),u++,d);if(u<2&&!r)return l(m);let v=a.exit("strikethroughSequenceTemporary"),w=bi(m);return v._open=!w||w===2&&!!b,v._close=!b||b===2&&!!w,o(m)}}}var P4=z(()=>{f();xi();xf();cc()});var R4=z(()=>{f();L4();P4()});function Pb(){return{enter:{table(e){let t=e._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",t)},tableBody(){this.tag("<tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=Lb[e[t]];r===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+r+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=Lb[e[t]];this.lineEndingIfNeeded(),this.tag("<th"+r+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(e){let t=this.sliceSerialize(e);this.getData("tableAlign")&&(t=t.replace(/\\([\\|])/g,Ppe)),this.raw(this.encode(t))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");t in e?(this.tag("</td>"),this.setData("tableColumn",t+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){let e=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",e+1)},tableRow(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");for(;t<e.length;)this.lineEndingIfNeeded(),this.tag("<td"+Lb[e[t]]+"></td>"),t++;this.setData("tableColumn",t),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}function Ppe(e,t){return t==="|"?t:e}var Lb,M4=z(()=>{f();Lb={none:"",left:' align="left"',right:' align="right"',center:' align="center"'}});function Rpe(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}var Nf,q4=z(()=>{f();Nf=class{constructor(){this.map=[]}add(t,r,n){Rpe(this,t,r,n)}consume(t){if(this.map.sort(function(s,a){return s[0]-a[0]}),this.map.length===0)return;let r=this.map.length,n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let i=n.pop();for(;i;){for(let s of i)t.push(s);i=n.pop()}this.map.length=0}}});function j4(e,t){let r=!1,n=[];for(;t<e.length;){let i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let s=n.length-1;n[s]=n[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}var B4=z(()=>{f()});function Rb(){return{flow:{null:{name:"table",tokenize:Mpe,resolveAll:qpe}}}}function Mpe(e,t,r){let n=this,i=0,s=0,a;return o;function o(L){let N=n.events.length-1;for(;N>-1;){let E=n.events[N][1].type;if(E==="lineEnding"||E==="linePrefix")N--;else break}let $=N>-1?n.events[N][1].type:null,q=$==="tableHead"||$==="tableRow"?A:l;return q===A&&n.parser.lazy[n.now().line]?r(L):q(L)}function l(L){return e.enter("tableHead"),e.enter("tableRow"),c(L)}function c(L){return L===124||(a=!0,s+=1),p(L)}function p(L){return L===null?r(L):ie(L)?s>1?(s=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),d):r(L):_e(L)?be(e,p,"whitespace")(L):(s+=1,a&&(a=!1,i+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),a=!0,p):(e.enter("data"),u(L)))}function u(L){return L===null||L===124||Be(L)?(e.exit("data"),p(L)):(e.consume(L),L===92?h:u)}function h(L){return L===92||L===124?(e.consume(L),u):u(L)}function d(L){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(L):(e.enter("tableDelimiterRow"),a=!1,_e(L)?be(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):m(L))}function m(L){return L===45||L===58?v(L):L===124?(a=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),b):P(L)}function b(L){return _e(L)?be(e,v,"whitespace")(L):v(L)}function v(L){return L===58?(s+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),w):L===45?(s+=1,w(L)):L===null||ie(L)?O(L):P(L)}function w(L){return L===45?(e.enter("tableDelimiterFiller"),T(L)):P(L)}function T(L){return L===45?(e.consume(L),T):L===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(L))}function S(L){return _e(L)?be(e,O,"whitespace")(L):O(L)}function O(L){return L===124?m(L):L===null||ie(L)?!a||i!==s?P(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(L)):P(L)}function P(L){return r(L)}function A(L){return e.enter("tableRow"),K(L)}function K(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),K):L===null||ie(L)?(e.exit("tableRow"),t(L)):_e(L)?be(e,K,"whitespace")(L):(e.enter("data"),ee(L))}function ee(L){return L===null||L===124||Be(L)?(e.exit("data"),K(L)):(e.consume(L),L===92?J:ee)}function J(L){return L===92||L===124?(e.consume(L),ee):ee(L)}}function qpe(e,t){let r=-1,n=!0,i=0,s=[0,0,0,0],a=[0,0,0,0],o=!1,l=0,c,p,u,h=new Nf;for(;++r<e.length;){let d=e[r],m=d[1];d[0]==="enter"?m.type==="tableHead"?(o=!1,l!==0&&($4(h,t,l,c,p),p=void 0,l=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},h.add(r,0,[["enter",c,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,u=void 0,s=[0,0,0,0],a=[0,r+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},h.add(r,0,[["enter",p,t]])),i=m.type==="tableDelimiterRow"?2:p?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],u=Ff(h,t,s,i,void 0,u),s=[0,0,0,0]),a[2]=r)):m.type==="tableCellDivider"&&(n?n=!1:(s[1]!==0&&(a[0]=a[1],u=Ff(h,t,s,i,void 0,u)),s=a,a=[s[1],r,0,0])):m.type==="tableHead"?(o=!0,l=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=r,s[1]!==0?(a[0]=a[1],u=Ff(h,t,s,i,r,u)):a[1]!==0&&(u=Ff(h,t,a,i,r,u)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(a[3]=r)}for(l!==0&&$4(h,t,l,c,p),h.consume(t.events),r=-1;++r<t.events.length;){let d=t.events[r];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=j4(t.events,r))}return e}function Ff(e,t,r,n,i,s){let a=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(s.end=Object.assign({},mo(t.events,r[0])),e.add(r[0],0,[["exit",s,t]]));let l=mo(t.events,r[1]);if(s={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",s,t]]),r[2]!==0){let c=mo(t.events,r[2]),p=mo(t.events,r[3]),u={type:o,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(r[2],0,[["enter",u,t]]),n!==2){let h=t.events[r[2]],d=t.events[r[3]];if(h[1].end=Object.assign({},d[1].end),h[1].type="chunkText",h[1].contentType="text",r[3]>r[2]+1){let m=r[2]+1,b=r[3]-r[2]-1;e.add(m,b,[])}}e.add(r[3]+1,0,[["exit",u,t]])}return i!==void 0&&(s.end=Object.assign({},mo(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function $4(e,t,r,n,i){let s=[],a=mo(t.events,r);i&&(i.end=Object.assign({},a),s.push(["exit",i,t])),n.end=Object.assign({},a),s.push(["exit",n,t]),e.add(r+1,0,s)}function mo(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var z4=z(()=>{f();Bt();Je();q4();B4()});var H4=z(()=>{f();M4();z4()});function Mb(){return{exit:{htmlFlowData(e){U4.call(this,e,V4)},htmlTextData(e){U4.call(this,e,jpe)}}}}function U4(e,t){let r=this.sliceSerialize(e);this.options.allowDangerousHtml&&(r=r.replace(t,"<$1$2")),this.raw(this.encode(r))}var V4,jpe,G4=z(()=>{f();V4=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,jpe=new RegExp("^"+V4.source,"i")});var W4=z(()=>{f();G4()});function qb(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}var K4=z(()=>{f()});function jb(){return{text:{91:Bpe}}}function $pe(e,t,r){let n=this;return i;function i(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),s)}function s(l){return Be(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):r(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(l)}function o(l){return ie(l)?t(l):_e(l)?e.check({tokenize:zpe},t,r)(l):r(l)}}function zpe(e,t,r){return be(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}var Bpe,Z4=z(()=>{f();Bt();Je();Bpe={name:"tasklistCheck",tokenize:$pe}});var J4=z(()=>{f();K4();Z4()});var Q4={};ll(Q4,{gfm:()=>Hpe,gfmHtml:()=>Upe});function Hpe(e){return mf([kb(),Ob(),Ib(e),Rb(),jb()])}function Upe(e){return uI([Tb(),Nb(e),Fb(),Pb(),Mb(),qb()])}var Y4=z(()=>{f();Xx();A4();I4();R4();H4();W4();J4()});function Bb(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}var X4=z(()=>{f()});function $b(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var eL=z(()=>{f()});function Vpe(e){let t=[],r=-1;for(;++r<e.length;)t[r]=es(e[r]);return If(n);function n(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function Gpe(e){let t=e;return If(r);function r(n){let i=n,s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function Wpe(e){return If(t);function t(r){return r&&r.type===e}}function If(e){return t;function t(r,n,i){return!!(Zpe(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function Kpe(){return!0}function Zpe(e){return e!==null&&typeof e=="object"&&"type"in e}var es,tL=z(()=>{f();es=(function(e){if(e==null)return Kpe;if(typeof e=="function")return If(e);if(typeof e=="object")return Array.isArray(e)?Vpe(e):Gpe(e);if(typeof e=="string")return Wpe(e);throw new Error("Expected function, string, or object as test")})});var Lf=z(()=>{f();tL()});function rL(e){return"\x1B[33m"+e+"\x1B[39m"}var nL=z(()=>{f()});function hc(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;let s=es(i),a=n?-1:1;o(e,void 0,[])();function o(l,c,p){let u=l&&typeof l=="object"?l:{};if(typeof u.type=="string"){let d=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(h,"name",{value:"node ("+rL(l.type+(d?"<"+d+">":""))+")"})}return h;function h(){let d=iL,m,b,v;if((!t||s(l,c,p[p.length-1]||void 0))&&(d=Jpe(r(l,p)),d[0]===na))return d;if("children"in l&&l.children){let w=l;if(w.children&&d[0]!==Rf)for(b=(n?w.children.length:-1)+a,v=p.concat(w);b>-1&&b<w.children.length;){let T=w.children[b];if(m=o(T,b,v)(),m[0]===na)return m;b=typeof m[1]=="number"?m[1]:b+a}}return d}}}function Jpe(e){return Array.isArray(e)?e:typeof e=="number"?[Pf,e]:e==null?iL:[e]}var iL,Pf,na,Rf,sL=z(()=>{f();Lf();nL();iL=[],Pf=!0,na=!1,Rf="skip"});var Mf=z(()=>{f();sL()});function zb(e,t,r){let i=es((r||{}).ignore||[]),s=Qpe(t),a=-1;for(;++a<s.length;)hc(e,"text",o);function o(c,p){let u=-1,h;for(;++u<p.length;){let d=p[u],m=h?h.children:void 0;if(i(d,m?m.indexOf(d):void 0,h))return;h=d}if(h)return l(c,p)}function l(c,p){let u=p[p.length-1],h=s[a][0],d=s[a][1],m=0,v=u.children.indexOf(c),w=!1,T=[];h.lastIndex=0;let S=h.exec(c.value);for(;S;){let O=S.index,P={index:S.index,input:S.input,stack:[...p,c]},A=d(...S,P);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?h.lastIndex=O+1:(m!==O&&T.push({type:"text",value:c.value.slice(m,O)}),Array.isArray(A)?T.push(...A):A&&T.push(A),m=O+S[0].length,w=!0),!h.global)break;S=h.exec(c.value)}return w?(m<c.value.length&&T.push({type:"text",value:c.value.slice(m)}),u.children.splice(v,1,...T)):T=[c],v+T.length}}function Qpe(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){let i=r[n];t.push([Ype(i[0]),Xpe(i[1])])}return t}function Ype(e){return typeof e=="string"?new RegExp($b(e),"g"):e}function Xpe(e){return typeof e=="function"?e:function(){return e}}var aL=z(()=>{f();eL();Mf();Lf()});var oL=z(()=>{f();aL()});function Gb(){return{transforms:[sfe],enter:{literalAutolink:efe,literalAutolinkEmail:Vb,literalAutolinkHttp:Vb,literalAutolinkWww:Vb},exit:{literalAutolink:ife,literalAutolinkEmail:nfe,literalAutolinkHttp:tfe,literalAutolinkWww:rfe}}}function Wb(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Hb,notInConstruct:Ub},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Hb,notInConstruct:Ub},{character:":",before:"[ps]",after:"\\/",inConstruct:Hb,notInConstruct:Ub}]}}function efe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vb(e){this.config.enter.autolinkProtocol.call(this,e)}function tfe(e){this.config.exit.autolinkProtocol.call(this,e)}function rfe(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function nfe(e){this.config.exit.autolinkEmail.call(this,e)}function ife(e){this.exit(e)}function sfe(e){zb(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,afe],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ofe]],{ignore:["link","linkReference"]})}function afe(e,t,r,n,i){let s="";if(!lL(i)||(/^w/i.test(t)&&(r=t+r,t="",s="http://"),!lfe(r)))return!1;let a=cfe(r+n);if(!a[0])return!1;let o={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function ofe(e,t,r,n){return!lL(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function lfe(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function cfe(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),i=Bb(e,"("),s=Bb(e,")");for(;n!==-1&&i>s;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),s++;return[e,r]}function lL(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||zn(r)||Ys(r))&&(!t||r!==47)}var Hb,Ub,cL=z(()=>{f();X4();Je();oL();Hb="phrasing",Ub=["autolink","link","image","label"]});var uL=z(()=>{f();cL()});function ufe(){this.buffer()}function pfe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ffe(){this.buffer()}function dfe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function hfe(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Gt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function mfe(e){this.exit(e)}function gfe(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Gt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function xfe(e){this.exit(e)}function bfe(){return"["}function pL(e,t,r,n){let i=r.createTracker(n),s=i.move("[^"),a=r.enter("footnoteReference"),o=r.enter("reference");return s+=i.move(r.safe(r.associationId(e),{after:"]",before:s})),o(),a(),s+=i.move("]"),s}function Kb(){return{enter:{gfmFootnoteCallString:ufe,gfmFootnoteCall:pfe,gfmFootnoteDefinitionLabelString:ffe,gfmFootnoteDefinition:dfe},exit:{gfmFootnoteCallString:hfe,gfmFootnoteCall:mfe,gfmFootnoteDefinitionLabelString:gfe,gfmFootnoteDefinition:xfe}}}function Zb(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:pL},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,i,s,a){let o=s.createTracker(a),l=o.move("[^"),c=s.enter("footnoteDefinition"),p=s.enter("label");return l+=o.move(s.safe(s.associationId(n),{before:l,after:"]"})),p(),l+=o.move("]:"),n.children&&n.children.length>0&&(o.shift(4),l+=o.move((t?`
|
|
102
|
+
`:" ")+s.indentLines(s.containerFlow(n,o.current()),t?fL:yfe))),c(),l}}function yfe(e,t,r){return t===0?e:fL(e,t,r)}function fL(e,t,r){return(r?"":" ")+e}var dL=z(()=>{f();Js();pL.peek=bfe});var hL=z(()=>{f();dL()});function Jb(){return{canContainEols:["delete"],enter:{strikethrough:_fe},exit:{strikethrough:wfe}}}function Qb(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:vfe}],handlers:{delete:mL}}}function _fe(e){this.enter({type:"delete",children:[]},e)}function wfe(e){this.exit(e)}function mL(e,t,r,n){let i=r.createTracker(n),s=r.enter("strikethrough"),a=i.move("~~");return a+=r.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function Efe(){return"~"}var vfe,gL=z(()=>{f();vfe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];mL.peek=Efe});var xL=z(()=>{f();gL()});function Dfe(e){return e.length}function yL(e,t){let r=t||{},n=(r.align||[]).concat(),i=r.stringLength||Dfe,s=[],a=[],o=[],l=[],c=0,p=-1;for(;++p<e.length;){let b=[],v=[],w=-1;for(e[p].length>c&&(c=e[p].length);++w<e[p].length;){let T=Sfe(e[p][w]);if(r.alignDelimiters!==!1){let S=i(T);v[w]=S,(l[w]===void 0||S>l[w])&&(l[w]=S)}b.push(T)}a[p]=b,o[p]=v}let u=-1;if(typeof n=="object"&&"length"in n)for(;++u<c;)s[u]=bL(n[u]);else{let b=bL(n);for(;++u<c;)s[u]=b}u=-1;let h=[],d=[];for(;++u<c;){let b=s[u],v="",w="";b===99?(v=":",w=":"):b===108?v=":":b===114&&(w=":");let T=r.alignDelimiters===!1?1:Math.max(1,l[u]-v.length-w.length),S=v+"-".repeat(T)+w;r.alignDelimiters!==!1&&(T=v.length+T+w.length,T>l[u]&&(l[u]=T),d[u]=T),h[u]=S}a.splice(1,0,h),o.splice(1,0,d),p=-1;let m=[];for(;++p<a.length;){let b=a[p],v=o[p];u=-1;let w=[];for(;++u<c;){let T=b[u]||"",S="",O="";if(r.alignDelimiters!==!1){let P=l[u]-(v[u]||0),A=s[u];A===114?S=" ".repeat(P):A===99?P%2?(S=" ".repeat(P/2+.5),O=" ".repeat(P/2-.5)):(S=" ".repeat(P/2),O=S):O=" ".repeat(P)}r.delimiterStart!==!1&&!u&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||u)&&w.push(" "),r.alignDelimiters!==!1&&w.push(S),w.push(T),r.alignDelimiters!==!1&&w.push(O),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||u!==c-1)&&w.push("|")}m.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return m.join(`
|
|
103
|
+
`)}function Sfe(e){return e==null?"":String(e)}function bL(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var vL=z(()=>{f()});function _L(e,t,r,n){let i=r.enter("blockquote"),s=r.createTracker(n);s.move("> "),s.shift(2);let a=r.indentLines(r.containerFlow(e,s.current()),kfe);return i(),a}function kfe(e,t,r){return">"+(r?"":" ")+e}var wL=z(()=>{f()});function DL(e,t){return EL(e,t.inConstruct,!0)&&!EL(e,t.notInConstruct,!1)}function EL(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}var SL=z(()=>{f()});function Yb(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
|
|
104
|
+
`&&DL(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
105
|
+
`}var kL=z(()=>{f();SL()});function CL(e,t){let r=String(e),n=r.indexOf(t),i=n,s=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++s>a&&(a=s):s=1,i=n+t.length,n=r.indexOf(t,i);return a}var TL=z(()=>{f()});function AL(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}var OL=z(()=>{f()});function NL(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}var FL=z(()=>{f()});function IL(e,t,r,n){let i=NL(r),s=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(AL(e,r)){let u=r.enter("codeIndented"),h=r.indentLines(s,Cfe);return u(),h}let o=r.createTracker(n),l=i.repeat(Math.max(CL(s,i)+1,3)),c=r.enter("codeFenced"),p=o.move(l);if(e.lang){let u=r.enter(`codeFencedLang${a}`);p+=o.move(r.safe(e.lang,{before:p,after:" ",encode:["`"],...o.current()})),u()}if(e.lang&&e.meta){let u=r.enter(`codeFencedMeta${a}`);p+=o.move(" "),p+=o.move(r.safe(e.meta,{before:p,after:`
|
|
106
|
+
`,encode:["`"],...o.current()})),u()}return p+=o.move(`
|
|
107
|
+
`),s&&(p+=o.move(s+`
|
|
108
|
+
`)),p+=o.move(l),c(),p}function Cfe(e,t,r){return(r?"":" ")+e}var LL=z(()=>{f();TL();OL();FL()});function go(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}var qf=z(()=>{f()});function PL(e,t,r,n){let i=go(r),s=i==='"'?"Quote":"Apostrophe",a=r.enter("definition"),o=r.enter("label"),l=r.createTracker(n),c=l.move("[");return c+=l.move(r.safe(r.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":`
|
|
109
|
+
`,...l.current()}))),o(),e.title&&(o=r.enter(`title${s}`),c+=l.move(" "+i),c+=l.move(r.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),o()),a(),c}var RL=z(()=>{f();qf()});function ML(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}var qL=z(()=>{f()});function ts(e){return"&#x"+e.toString(16).toUpperCase()+";"}var jf=z(()=>{f()});function xo(e,t,r){let n=bi(e),i=bi(t);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}var Xb=z(()=>{f();xf()});function ey(e,t,r,n){let i=ML(r),s=r.enter("emphasis"),a=r.createTracker(n),o=a.move(i),l=a.move(r.containerPhrasing(e,{after:i,before:o,...a.current()})),c=l.charCodeAt(0),p=xo(n.before.charCodeAt(n.before.length-1),c,i);p.inside&&(l=ts(c)+l.slice(1));let u=l.charCodeAt(l.length-1),h=xo(n.after.charCodeAt(0),u,i);h.inside&&(l=l.slice(0,-1)+ts(u));let d=a.move(i);return s(),r.attentionEncodeSurroundingInfo={after:h.outside,before:p.outside},o+l+d}function Tfe(e,t,r){return r.options.emphasis||"*"}var jL=z(()=>{f();qL();jf();Xb();ey.peek=Tfe});function ty(e,t,r,n){let i,s,a;typeof t=="function"&&typeof r!="function"?(s=void 0,a=t,i=r):(s=t,a=r,i=n),hc(e,s,o,i);function o(l,c){let p=c[c.length-1],u=p?p.children.indexOf(l):void 0;return a(l,u,p)}}var BL=z(()=>{f();Mf();Mf()});var $L=z(()=>{f();BL()});function zL(e,t){let r=!1;return ty(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,na}),!!((!e.depth||e.depth<3)&&Ji(e)&&(t.options.setext||r))}var HL=z(()=>{f();$L();ac()});function UL(e,t,r,n){let i=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(n);if(zL(e,r)){let p=r.enter("headingSetext"),u=r.enter("phrasing"),h=r.containerPhrasing(e,{...s.current(),before:`
|
|
110
|
+
`,after:`
|
|
111
|
+
`});return u(),p(),h+`
|
|
112
|
+
`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
113
|
+
`))+1))}let a="#".repeat(i),o=r.enter("headingAtx"),l=r.enter("phrasing");s.move(a+" ");let c=r.containerPhrasing(e,{before:"# ",after:`
|
|
114
|
+
`,...s.current()});return/^[\t ]/.test(c)&&(c=ts(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,r.options.closeAtx&&(c+=" "+a),l(),o(),c}var VL=z(()=>{f();jf();HL()});function ry(e){return e.value||""}function Afe(){return"<"}var GL=z(()=>{f();ry.peek=Afe});function ny(e,t,r,n){let i=go(r),s=i==='"'?"Quote":"Apostrophe",a=r.enter("image"),o=r.enter("label"),l=r.createTracker(n),c=l.move("![");return c+=l.move(r.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=r.enter(`title${s}`),c+=l.move(" "+i),c+=l.move(r.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),o()),c+=l.move(")"),a(),c}function Ofe(){return"!"}var WL=z(()=>{f();qf();ny.peek=Ofe});function iy(e,t,r,n){let i=e.referenceType,s=r.enter("imageReference"),a=r.enter("label"),o=r.createTracker(n),l=o.move("!["),c=r.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),a();let p=r.stack;r.stack=[],a=r.enter("reference");let u=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return a(),r.stack=p,s(),i==="full"||!c||c!==u?l+=o.move(u+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function Nfe(){return"!"}var KL=z(()=>{f();iy.peek=Nfe});function sy(e,t,r){let n=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++s<r.unsafe.length;){let a=r.unsafe[s],o=r.compilePattern(a),l;if(a.atBreak)for(;l=o.exec(n);){let c=l.index;n.charCodeAt(c)===10&&n.charCodeAt(c-1)===13&&c--,n=n.slice(0,c)+" "+n.slice(l.index+1)}}return i+n+i}function Ffe(){return"`"}var ZL=z(()=>{f();sy.peek=Ffe});function ay(e,t){let r=Ji(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}var JL=z(()=>{f();ac()});function oy(e,t,r,n){let i=go(r),s=i==='"'?"Quote":"Apostrophe",a=r.createTracker(n),o,l;if(ay(e,r)){let p=r.stack;r.stack=[],o=r.enter("autolink");let u=a.move("<");return u+=a.move(r.containerPhrasing(e,{before:u,after:">",...a.current()})),u+=a.move(">"),o(),r.stack=p,u}o=r.enter("link"),l=r.enter("label");let c=a.move("[");return c+=a.move(r.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(r.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=r.enter("destinationRaw"),c+=a.move(r.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=r.enter(`title${s}`),c+=a.move(" "+i),c+=a.move(r.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),o(),c}function Ife(e,t,r){return ay(e,r)?"<":"["}var QL=z(()=>{f();qf();JL();oy.peek=Ife});function ly(e,t,r,n){let i=e.referenceType,s=r.enter("linkReference"),a=r.enter("label"),o=r.createTracker(n),l=o.move("["),c=r.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),a();let p=r.stack;r.stack=[],a=r.enter("reference");let u=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return a(),r.stack=p,s(),i==="full"||!c||c!==u?l+=o.move(u+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function Lfe(){return"["}var YL=z(()=>{f();ly.peek=Lfe});function bo(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}var Bf=z(()=>{f()});function XL(e){let t=bo(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}var eP=z(()=>{f();Bf()});function tP(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}var rP=z(()=>{f()});function $f(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}var cy=z(()=>{f()});function nP(e,t,r,n){let i=r.enter("list"),s=r.bulletCurrent,a=e.ordered?tP(r):bo(r),o=e.ordered?a==="."?")":".":XL(r),l=t&&r.bulletLastUsed?a===r.bulletLastUsed:!1;if(!e.ordered){let p=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&p&&(!p.children||!p.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),$f(r)===a&&p){let u=-1;for(;++u<e.children.length;){let h=e.children[u];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=o),r.bulletCurrent=a;let c=r.containerFlow(e,n);return r.bulletLastUsed=a,r.bulletCurrent=s,i(),c}var iP=z(()=>{f();Bf();eP();rP();cy()});function sP(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}var aP=z(()=>{f()});function oP(e,t,r,n){let i=sP(r),s=r.bulletCurrent||bo(r);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let a=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);let o=r.createTracker(n);o.move(s+" ".repeat(a-s.length)),o.shift(a);let l=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,o.current()),p);return l(),c;function p(u,h,d){return h?(d?"":" ".repeat(a))+u:(d?s:s+" ".repeat(a-s.length))+u}}var lP=z(()=>{f();Bf();aP()});function cP(e,t,r,n){let i=r.enter("paragraph"),s=r.enter("phrasing"),a=r.containerPhrasing(e,n);return s(),i(),a}var uP=z(()=>{f()});var uy,pP=z(()=>{f();Lf();uy=es(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"])});var fP=z(()=>{f();pP()});function dP(e,t,r,n){return(e.children.some(function(a){return uy(a)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}var hP=z(()=>{f();fP()});function mP(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}var gP=z(()=>{f()});function py(e,t,r,n){let i=mP(r),s=r.enter("strong"),a=r.createTracker(n),o=a.move(i+i),l=a.move(r.containerPhrasing(e,{after:i,before:o,...a.current()})),c=l.charCodeAt(0),p=xo(n.before.charCodeAt(n.before.length-1),c,i);p.inside&&(l=ts(c)+l.slice(1));let u=l.charCodeAt(l.length-1),h=xo(n.after.charCodeAt(0),u,i);h.inside&&(l=l.slice(0,-1)+ts(u));let d=a.move(i+i);return s(),r.attentionEncodeSurroundingInfo={after:h.outside,before:p.outside},o+l+d}function Pfe(e,t,r){return r.options.strong||"*"}var xP=z(()=>{f();gP();jf();Xb();py.peek=Pfe});function bP(e,t,r,n){return r.safe(e.value,n)}var yP=z(()=>{f()});function vP(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}var _P=z(()=>{f()});function wP(e,t,r){let n=($f(r)+(r.options.ruleSpaces?" ":"")).repeat(vP(r));return r.options.ruleSpaces?n.slice(0,-1):n}var EP=z(()=>{f();_P();cy()});var mc,DP=z(()=>{f();wL();kL();LL();RL();jL();VL();GL();WL();KL();ZL();QL();YL();iP();lP();uP();hP();xP();yP();EP();mc={blockquote:_L,break:Yb,code:IL,definition:PL,emphasis:ey,hardBreak:Yb,heading:UL,html:ry,image:ny,imageReference:iy,inlineCode:sy,link:oy,linkReference:ly,list:nP,listItem:oP,paragraph:cP,root:dP,strong:py,text:bP,thematicBreak:wP}});var fy=z(()=>{f();DP()});function hy(){return{enter:{table:Rfe,tableData:SP,tableHeader:SP,tableRow:qfe},exit:{codeText:jfe,table:Mfe,tableData:dy,tableHeader:dy,tableRow:dy}}}function Rfe(e){let t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function Mfe(e){this.exit(e),this.data.inTable=void 0}function qfe(e){this.enter({type:"tableRow",children:[]},e)}function dy(e){this.exit(e)}function SP(e){this.enter({type:"tableCell",children:[]},e)}function jfe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Bfe));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function Bfe(e,t){return t==="|"?t:e}function my(e){let t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
115
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:a,tableCell:l,tableRow:o}};function a(d,m,b,v){return c(p(d,b,v),d.align)}function o(d,m,b,v){let w=u(d,b,v),T=c([w]);return T.slice(0,T.indexOf(`
|
|
116
|
+
`))}function l(d,m,b,v){let w=b.enter("tableCell"),T=b.enter("phrasing"),S=b.containerPhrasing(d,{...v,before:s,after:s});return T(),w(),S}function c(d,m){return yL(d,{align:m,alignDelimiters:n,padding:r,stringLength:i})}function p(d,m,b){let v=d.children,w=-1,T=[],S=m.enter("table");for(;++w<v.length;)T[w]=u(v[w],m,b);return S(),T}function u(d,m,b){let v=d.children,w=-1,T=[],S=m.enter("tableRow");for(;++w<v.length;)T[w]=l(v[w],d,m,b);return S(),T}function h(d,m,b){let v=mc.inlineCode(d,m,b);return b.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}var kP=z(()=>{f();vL();fy()});var CP=z(()=>{f();kP()});function gy(){return{exit:{taskListCheckValueChecked:TP,taskListCheckValueUnchecked:TP,paragraph:$fe}}}function xy(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:zfe}}}function TP(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function $fe(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let n=r.children[0];if(n&&n.type==="text"){let i=t.children,s=-1,a;for(;++s<i.length;){let o=i[s];if(o.type==="paragraph"){a=o;break}}a===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function zfe(e,t,r,n){let i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",o=r.createTracker(n);s&&o.move(a);let l=mc.listItem(e,t,r,{...n,...o.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(p){return p+a}}var AP=z(()=>{f();fy()});var OP=z(()=>{f();AP()});function NP(){return[Gb(),Kb(),Jb(),hy(),gy()]}function FP(e){return{extensions:[Wb(),Zb(e),Qb(),my(e),xy()]}}var IP=z(()=>{f();uL();hL();xL();CP();OP()});var LP={};ll(LP,{gfmFromMarkdown:()=>NP,gfmToMarkdown:()=>FP});var PP=z(()=>{f();IP()});var MP=_(_y=>{"use strict";f();Object.defineProperty(_y,"__esModule",{value:!0});_y.parseMarkdown=Kfe;var Hfe=(b4(),Iu(x4)),vy=(ac(),Iu(lI)),Ufe=(Y4(),Iu(Q4)),Vfe=(PP(),Iu(LP));function yo(e){return e.type==="text"||e.type==="html"||e.type==="emphasis"||e.type==="strong"||e.type==="delete"||e.type==="inlineCode"||e.type==="link"||e.type==="image"}function RP(e){return e.type==="paragraph"}function Gfe(e){return e.type==="list"}function Wfe(e){let t=e.split(`
|
|
117
|
+
`),r=[];for(let n of t){let i=n.trim(),s=/^(#{1,6})\s+(\*\*|\*|_|~)(\d+\.|\*|-|\+)(\s+)(.*?)\2$/,a=i.match(s);if(a){let[c,p,u,h,d,m]=a;r.push(`${h}${d}${u}${m}${u}`);continue}let o=/^(\*\*|\*|_|~)(\d+\.|\*|-|\+)(\s+)(.*?)\1$/,l=i.match(o);if(l){let[c,p,u,h,d]=l,m=n.match(/^\s*/)?.[0]||"";r.push(`${m}${u}${h}${p}${d}${p}`);continue}r.push(n)}return r.join(`
|
|
118
|
+
`)}function Kfe(e,t={}){let r=Wfe(e),n=(0,Hfe.fromMarkdown)(r,{extensions:[(0,Ufe.gfm)()],mdastExtensions:[(0,Vfe.gfmFromMarkdown)()]}),i=[],s=[],a=()=>{s.length>0&&(i.push({type:"rich_text",elements:[...s]}),s=[])};for(let o of n.children)if(o.type==="heading"){a();let l=(0,vy.toString)(o);o.depth<=2?i.push({type:"header",text:{type:"plain_text",text:l}}):t.preferSectionBlocks!==!1?i.push({type:"section",text:{type:"mrkdwn",text:`*${xc(o.children,t)}*`}}):i.push({type:"rich_text",elements:[{type:"rich_text_section",elements:[{type:"text",text:l,style:{bold:!0}}]}]})}else if(o.type==="paragraph")if(o.children.length===1&&o.children[0].type==="image"){a();let l=o.children[0];i.push({type:"image",image_url:l.url,alt_text:l.alt||"Image"})}else t.preferSectionBlocks!==!1?(a(),i.push({type:"section",text:{type:"mrkdwn",text:xc(o.children,t)}})):s.push({type:"rich_text_section",elements:o.children.flatMap(l=>yo(l)?gc(l,t):[])});else if(o.type==="list"){let l=(p,u)=>{let h=[],d=[];for(let m of p.children){let b=m.children.flatMap(w=>RP(w)?w.children.flatMap(T=>yo(T)?gc(T,t):[]):[]);b.length>0&&d.push({type:"rich_text_section",elements:b});let v=m.children.filter(Gfe);if(v.length>0){d.length>0&&(h.push({type:"rich_text_list",style:p.ordered?"ordered":"bullet",indent:u,elements:[...d]}),d.length=0);for(let w of v)h.push(...l(w,u+1))}}return d.length>0&&h.push({type:"rich_text_list",style:p.ordered?"ordered":"bullet",indent:u,elements:d}),h},c=l(o,0);for(let p of c)s.push(p);a()}else if(o.type==="code")s.push({type:"rich_text_preformatted",elements:[{type:"text",text:o.value}]}),a();else if(o.type==="blockquote")s.push({type:"rich_text_quote",elements:o.children.flatMap(l=>RP(l)?l.children.flatMap(c=>yo(c)?gc(c,t):[]):[])}),a();else if(o.type==="thematicBreak")a(),i.push({type:"divider"});else if(o.type==="image")a(),i.push({type:"image",image_url:o.url,alt_text:o.alt||"Image"});else if(o.type==="table"){a();let l=o.children.map(c=>c.children.map(p=>({type:"rich_text",elements:[{type:"rich_text_section",elements:p.children.flatMap(u=>yo(u)?gc(u,t):[])}]})));i.push({type:"table",rows:l})}else o.type==="html"&&s.push({type:"rich_text_section",elements:yy(o.value,{},t)});return a(),i}function gc(e,t){return e.type==="text"||e.type==="html"?yy(e.value,{},t):e.type==="emphasis"?by(e.children,{italic:!0},t):e.type==="strong"?by(e.children,{bold:!0},t):e.type==="delete"?by(e.children,{strike:!0},t):e.type==="inlineCode"?yy(e.value,{code:!0},t):e.type==="link"?[{type:"link",url:e.url,text:(0,vy.toString)(e)}]:e.type==="image"?[{type:"link",url:e.url,text:e.alt||"Image"}]:[]}function by(e,t,r){return e.flatMap(i=>yo(i)?gc(i,r):[]).map(i=>{let s={...i.style,...t};if(Object.keys(s).length>0)return{...i,style:s};let{style:a,...o}=i;return o})}function yy(e,t,r){if(t.code){let l={type:"text",text:e};return Object.keys(t).length>0&&(l.style=t),[l]}let n=/(<!here>|<!channel>|<!everyone>)|(<@([\w.-]+)>)|(#[0-9a-fA-F]{6})|(<#([\w.-]+)>)|(<!subteam\^([\w.-]+)>)|(<!date\^(\d+)\^([^|]+)\|([^>]+)>)|(:([\w+-]+):)|(@([\w.-]+))|(#([\w.-]+))/g,i=[],s=0,a,o=l=>{if(!l)return;let c={type:"text",text:l};Object.keys(t).length>0&&(c.style=t),i.push(c)};for(a=n.exec(e);a!==null;){let l=a[0],c=a.index;c>s&&o(e.substring(s,c));let p=u=>Object.keys(t).length>0?{...u,style:t}:u;if(a[1]){let u=a[1].substring(2,a[1].length-1);i.push(p({type:"broadcast",range:u}))}else if(a[3]){let u=a[3];i.push(p({type:"user",user_id:u}))}else if(a[4])r.detectColors!==!1?i.push(p({type:"color",value:a[4]})):o(l);else if(a[6]){let u=a[6];i.push(p({type:"channel",channel_id:u}))}else if(a[8]){let u=a[8];u.startsWith("S")?i.push(p({type:"usergroup",usergroup_id:u})):i.push(p({type:"team",team_id:u}))}else if(a[10]){let u=parseInt(a[10],10),h=a[11];i.push(p({type:"date",timestamp:u,format:h}))}else if(a[13]){let u=a[14];i.push(p({type:"emoji",name:u}))}else if(a[15]){let u=a[16],h=!1;["here","channel","everyone"].includes(u)?(i.push(p({type:"broadcast",range:u})),h=!0):r.mentions?.users?.[u]?(i.push(p({type:"user",user_id:r.mentions.users[u]})),h=!0):r.mentions?.userGroups?.[u]?(i.push(p({type:"usergroup",usergroup_id:r.mentions.userGroups[u]})),h=!0):r.mentions?.teams?.[u]&&(i.push(p({type:"team",team_id:r.mentions.teams[u]})),h=!0),h||o(l)}else if(a[17]){let u=a[18],h=!1;r.mentions?.channels?.[u]&&(i.push(p({type:"channel",channel_id:r.mentions.channels[u]})),h=!0),h||o(l)}s=n.lastIndex,a=n.exec(e)}return s<e.length&&o(e.substring(s)),i}function xc(e,t){return e.map(r=>yo(r)?Zfe(r,t):"").join("")}function Zfe(e,t){if(e.type==="text")return Jfe(e.value,t);if(e.type==="html")return e.value;if(e.type==="emphasis")return`_${xc(e.children,t)}_`;if(e.type==="strong")return`*${xc(e.children,t)}*`;if(e.type==="delete")return`~${xc(e.children,t)}~`;if(e.type==="inlineCode")return`\`${e.value}\``;if(e.type==="link"){let r=(0,vy.toString)(e);return`<${e.url}|${r}>`}else if(e.type==="image")return`<${e.url}|${e.alt||"Image"}>`;return""}function Jfe(e,t){let r=/(<!here>|<!channel>|<!everyone>)|(<@([\w.-]+)>)|(#[0-9a-fA-F]{6})|(<#([\w.-]+)>)|(<!subteam\^([\w.-]+)>)|(<!date\^(\d+)\^([^|]+)\|([^>]+)>)|(:([\w+-]+):)|(@([\w.-]+))|(#([\w.-]+))/g,n="",i=0,s=r.exec(e);for(;s!==null;){let a=s[0],o=s.index;if(o>i&&(n+=e.substring(i,o)),s[1])n+=a;else if(s[3])n+=a;else if(s[4])n+=a;else if(s[6])n+=a;else if(s[8])n+=a;else if(s[10])n+=a;else if(s[13])n+=a;else if(s[15]){let l=s[16];["here","channel","everyone"].includes(l)?n+=`<!${l}>`:t.mentions?.users?.[l]?n+=`<@${t.mentions.users[l]}>`:t.mentions?.userGroups?.[l]?n+=`<!subteam^${t.mentions.userGroups[l]}>`:t.mentions?.teams?.[l]?n+=`<!subteam^${t.mentions.teams[l]}>`:n+=a}else if(s[17]){let l=s[18];t.mentions?.channels?.[l]?n+=`<#${t.mentions.channels[l]}>`:n+=a}i=r.lastIndex,s=r.exec(e)}return i<e.length&&(n+=e.substring(i)),n}});var wy=_(Uf=>{"use strict";f();Object.defineProperty(Uf,"__esModule",{value:!0});Uf.validateOptions=Qfe;Uf.validateBlocksToMarkdownOptions=Yfe;function Qfe(e){if(!e?.mentions)return;let{users:t,channels:r,userGroups:n,teams:i}=e.mentions;t&&zf(t,/^[UW][A-Z0-9]+$/,"User",(s,a)=>`Invalid User ID for '${s}': '${a}'. Must start with U or W and contain only alphanumeric characters.`),r&&zf(r,/^C[A-Z0-9]+$/,"Channel",(s,a)=>`Invalid Channel ID for '${s}': '${a}'. Must start with C and contain only alphanumeric characters.`),n&&zf(n,/^S[A-Z0-9]+$/,"User Group",(s,a)=>`Invalid User Group ID for '${s}': '${a}'. Must start with S and contain only alphanumeric characters.`),i&&zf(i,/^T[A-Z0-9]+$/,"Team",(s,a)=>`Invalid Team ID for '${s}': '${a}'. Must start with T and contain only alphanumeric characters.`)}function Yfe(e){if(!e?.mentions)return;let{users:t,channels:r,userGroups:n,teams:i}=e.mentions;t&&Hf(t,/^[UW][A-Z0-9]+$/,s=>`Invalid User ID key '${s}'. Must start with U or W and contain only alphanumeric characters.`),r&&Hf(r,/^C[A-Z0-9]+$/,s=>`Invalid Channel ID key '${s}'. Must start with C and contain only alphanumeric characters.`),n&&Hf(n,/^S[A-Z0-9]+$/,s=>`Invalid User Group ID key '${s}'. Must start with S and contain only alphanumeric characters.`),i&&Hf(i,/^T[A-Z0-9]+$/,s=>`Invalid Team ID key '${s}'. Must start with T and contain only alphanumeric characters.`)}function zf(e,t,r,n){for(let[i,s]of Object.entries(e))if(!t.test(s))throw new Error(n(i,s))}function Hf(e,t,r){for(let n of Object.keys(e))if(!t.test(n))throw new Error(r(n))}});var jP=_(qP=>{"use strict";f();Object.defineProperty(qP,"__esModule",{value:!0})});var t8=_(vo=>{"use strict";f();Object.defineProperty(vo,"__esModule",{value:!0});vo.splitBlocks=$P;vo.splitBlocksWithText=rde;vo.blocksToMarkdown=cde;vo.blocksToPlainText=e8;var Xfe=wy(),ede=40,tde=12e3,BP=3e3;function $P(e,t){let r=t?.maxBlocks??ede,n=t?.maxCharacters??tde,i=[];for(let c of e)c.type==="section"?i.push(...ode(c,BP)):c.type==="header"?i.push(...lde(c,BP)):i.push(c);if(i.length===0)return[[]];if(i.length<=r&&JSON.stringify(i).length<=n)return[i];let s=[],a=[],o=(c,p)=>c.length+1>r?!1:JSON.stringify([...c,p]).length<=n,l=()=>{a.length>0&&(s.push(a),a=[])};for(let c of i){if(o(a,c)){a.push(c);continue}if(l(),o([],c)){a.push(c);continue}if(c.type==="rich_text"){let p=nde(c,n);for(let u of p)o(a,u)||l(),a.push(u)}else a.push(c)}return l(),s.length>0?s:[[]]}function rde(e,t){return $P(e,t).map(n=>({text:e8(n),blocks:n}))}function nde(e,t){let r=e.elements;if(r.length===0)return[e];let n=ide(r,t),i=[];for(let s of n)if(JSON.stringify(s).length<=t)i.push(s);else{let o=sde(s,t);i.push(...o)}return i}function ide(e,t){let r=[],n=[],i=s=>({type:"rich_text",elements:s});for(let s of e){let a=i([...n,s]);JSON.stringify(a).length<=t||n.length>0&&(r.push(i(n)),n=[]),n.push(s)}return n.length>0&&r.push(i(n)),r.length>0?r:[i([])]}function sde(e,t){let r=[];for(let n of e.elements)if(n.type==="rich_text_preformatted"){let i=ade(n,t);for(let s of i)r.push({type:"rich_text",elements:[s]})}else r.push({type:"rich_text",elements:[n]});return r.length>0?r:[e]}function ade(e,t){let r=e.elements.filter(c=>c.type==="text");if(r.length===0)return[e];let i=r.map(c=>c.type==="text"?c.text:"").join("").split(`
|
|
119
|
+
`);if(i.length<=1)return[e];let s=[],a=[],o=c=>({type:"rich_text_preformatted",elements:[{type:"text",text:c}],...e.border!==void 0?{border:e.border}:{}}),l=c=>JSON.stringify(o(c)).length;for(let c of i){let p=[...a,c].join(`
|
|
120
|
+
`);l(p)<=t||a.length>0&&(s.push(o(a.join(`
|
|
121
|
+
`))),a=[]),a.push(c)}return a.length>0&&s.push(o(a.join(`
|
|
122
|
+
`))),s.length>0?s:[e]}function ode(e,t){let r=e.text;if(!r||r.text.length<=t)return[e];let n=zP(r.text,t),i=[];return n.forEach((s,a)=>{let o={type:"section",text:{...r,text:s},...e.block_id&&a===0?{block_id:e.block_id}:{}};a===0&&(e.fields&&(o.fields=e.fields),e.accessory&&(o.accessory=e.accessory)),i.push(o)}),i}function lde(e,t){if(e.text.text.length<=t)return[e];let r=zP(e.text.text,t),n=[];n.push({type:"header",text:{...e.text,text:r[0]},...e.block_id?{block_id:e.block_id}:{}});for(let i=1;i<r.length;i++)n.push({type:"section",text:{type:"mrkdwn",text:r[i]}});return n}function zP(e,t){let r=[],n=e;for(;n.length>0;){if(n.length<=t){r.push(n);break}let i=t,s=n.lastIndexOf(`
|
|
123
|
+
`,t);if(s!==-1&&s>0){i=s,r.push(n.slice(0,i)),n=n.slice(i+1);continue}let a=n.lastIndexOf(" ",t);if(a!==-1&&a>t*.8){i=a,r.push(n.slice(0,i)),n=n.slice(i+1);continue}r.push(n.slice(0,t)),n=n.slice(t)}return r}function cde(e,t){(0,Xfe.validateBlocksToMarkdownOptions)(t);let r=[];for(let n of e){let i=ude(n,t).trim();i&&r.push(i)}return r.join(`
|
|
124
|
+
|
|
125
|
+
`)}function ude(e,t){switch(e.type){case"section":return pde(e,t);case"header":return`# ${e.text.text}`;case"context":return e.elements.map(r=>r.type==="image"?VP(r):Ey(r,t)).filter(Boolean).join(" ");case"rich_text":return HP(e,t);case"divider":return"---";case"image":return xde(e);case"table":return bde(e,t);default:return""}}function pde(e,t){let r=[],n=Ey(e.text,t);if(n&&r.push(n),e.fields?.length){let i=e.fields.map(s=>Ey(s,t)).filter(Boolean).join(`
|
|
126
|
+
`);i&&r.push(i)}return Tde(e.accessory)&&r.push(VP(e.accessory)),r.join(`
|
|
127
|
+
|
|
128
|
+
`)}function Ey(e,t){return e?e.type==="mrkdwn"?Sy(e.text,t):e.text:""}function HP(e,t){let r=fde(e);if(r)return r;let n=e.elements.map(s=>dde(s,t)).filter(s=>s.markdown.length>0);if(n.length===0)return"";let i=n[0].markdown;for(let s=1;s<n.length;s++){let a=n[s-1],o=n[s],l=a.kind==="list"&&o.kind==="list"?`
|
|
129
|
+
`:`
|
|
130
|
+
|
|
131
|
+
`;i+=l+o.markdown}return i}function fde(e){if(e.elements.length!==1)return"";let[t]=e.elements;if(t.type!=="rich_text_section"||t.elements.length!==1)return"";let[r]=t.elements;return r.type!=="text"||!r.style?.bold||r.style.italic||r.style.strike||r.style.code?"":`### ${r.text}`}function dde(e,t){switch(e.type){case"rich_text_section":return{kind:"section",markdown:Dy(e,t)};case"rich_text_list":return{kind:"list",markdown:hde(e,t)};case"rich_text_preformatted":return{kind:"preformatted",markdown:mde(e,t)};case"rich_text_quote":return{kind:"quote",markdown:gde(e,t)};default:return{kind:"section",markdown:""}}}function Dy(e,t){return e.elements.map(r=>UP(r,t)).join("")}function hde(e,t){let n=(e.style==="ordered"?" ":" ").repeat(e.indent??0),i=e.offset??1;return e.elements.map((s,a)=>{let o=e.style==="ordered"?`${i+a}. `:"- ",l=Dy(s,t);return _de(`${n}${o}`,l)}).join(`
|
|
132
|
+
`)}function mde(e,t){let r=e.elements.map(n=>UP(n,t)).join("");return vde(r)}function gde(e,t){return Dy({type:"rich_text_section",elements:e.elements},t).split(`
|
|
133
|
+
`).map(r=>`> ${r}`).join(`
|
|
134
|
+
`)}function UP(e,t){switch(e.type){case"text":return Vn(e.text,e.style);case"link":{let r=e.text&&e.text.length>0?`[${e.text}](<${e.url}>)`:e.url;return Vn(r,e.style)}case"emoji":return Vn(`:${e.name}:`,e.style);case"date":{let r=e.fallback??new Date(e.timestamp*1e3).toISOString(),n=`<!date^${e.timestamp}^${e.format}|${r}>`;return Vn(n,e.style)}case"user":return Vn(JP(e.user_id,t),e.style);case"usergroup":return Vn(YP(e.usergroup_id,t),e.style);case"team":return Vn(XP(e.team_id,t),e.style);case"channel":return Vn(QP(e.channel_id,t),e.style);case"broadcast":return Vn(`<!${e.range}>`,e.style);case"color":return Vn(e.value,e.style);default:return""}}function xde(e){let t=e.title?.text?` "${e.title.text.replace(/"/g,'\\"')}"`:"";return``}function VP(e){return``}function bde(e,t){if(e.rows.length===0||e.rows[0].length===0)return"";let r=e.rows.map(i=>`| ${i.map(s=>yde(s,t)).join(" | ")} |`),n=`| ${e.rows[0].map(()=>"---").join(" | ")} |`;return[r[0],n,...r.slice(1)].join(`
|
|
135
|
+
`)}function yde(e,t){return HP(e,t).replace(/\|/g,"\\|").replace(/\n/g,"\\n")}function Vn(e,t){if(!t)return e;let r=e;return t.code&&(r=GP(r)),t.bold&&(r=`**${r}**`),t.italic&&(r=`*${r}*`),t.strike&&(r=`~${r}~`),r}function GP(e){let t=WP(e,1);return`${t}${e}${t}`}function vde(e){let t=WP(e,3);return`${t}
|
|
136
|
+
${e}
|
|
137
|
+
${t}`}function WP(e,t){let n=e.match(/`+/g)?.reduce((i,s)=>Math.max(i,s.length),0)??0;return"`".repeat(Math.max(t,n+1))}function _de(e,t){let r=t.split(`
|
|
138
|
+
`);if(r.length===0)return e.trimEnd();let n=" ".repeat(e.length);return r.map((i,s)=>s===0?`${e}${i}`:`${n}${i}`).join(`
|
|
139
|
+
`)}function Sy(e,t){let r="";for(let n=0;n<e.length;n++){let i=e[n];if(i==="`"){let s=e.indexOf("`",n+1);if(s!==-1){r+=GP(e.slice(n+1,s)),n=s;continue}}if(i==="<"){let s=e.indexOf(">",n+1);if(s!==-1){r+=wde(e.slice(n,s+1),t),n=s;continue}}if(Ede(i)&&Dde(e,n)){let s=kde(e,n);if(s!==-1){let a=Sy(e.slice(n+1,s),t);r+=Cde(i,a),n=s;continue}}r+=i}return r}function wde(e,t){let r=e.match(/^<@([\w.-]+)>$/);if(r)return JP(r[1],t);let n=e.match(/^<#([\w.-]+)>$/);if(n)return QP(n[1],t);let i=e.match(/^<!subteam\^([\w.-]+)>$/);if(i){let o=i[1];return o.startsWith("S")?YP(o,t):XP(o,t)}if(e.startsWith("<!"))return e;let s=e.match(/^<([^|>]+)\|(.+)>$/);if(s){let[,o,l]=s;return`[${Sy(l,t)}](<${o}>)`}let a=e.match(/^<([^>]+)>$/);return a?a[1]:e}function Ede(e){return e==="*"||e==="_"||e==="~"}function Dde(e,t){let r=e[t-1],n=e[t+1];return KP(r)&&!ZP(n)}function Sde(e,t){let r=e[t-1],n=e[t+1];return!ZP(r)&&KP(n)}function kde(e,t){let r=e[t];for(let n=t+1;n<e.length;n++){let i=e[n];if(i==="`"){let s=e.indexOf("`",n+1);if(s===-1)return-1;n=s;continue}if(i==="<"){let s=e.indexOf(">",n+1);if(s===-1)return-1;n=s;continue}if(i===r&&Sde(e,n))return n}return-1}function Cde(e,t){return e==="*"?`**${t}**`:e==="_"?`*${t}*`:`~${t}~`}function KP(e){return e===void 0?!0:/[\s.,!?;:()[\]{}"'<>/-]/.test(e)}function ZP(e){return e!==void 0&&/\s/.test(e)}function JP(e,t){return Vf(t?.mentions?.users?.[e]??t?.mentions?.userGroups?.[e]??t?.mentions?.teams?.[e],`<@${e}>`)}function QP(e,t){return Vf(t?.mentions?.channels?.[e],`<#${e}>`,"#")}function YP(e,t){return Vf(t?.mentions?.userGroups?.[e],`<!subteam^${e}>`)}function XP(e,t){return Vf(t?.mentions?.teams?.[e],`<!subteam^${e}>`)}function Vf(e,t,r="@"){return e?`${r}${e}`:t}function Tde(e){if(!e||typeof e!="object")return!1;let t=e;return t.type==="image"&&typeof t.image_url=="string"&&typeof t.alt_text=="string"}function e8(e){let t=[],r=o=>o?.text??"",n=o=>{switch(o.type){case"text":return o.text;case"link":return o.text??o.url;case"emoji":return`:${o.name}:`;case"date":return o.fallback??new Date(o.timestamp*1e3).toISOString();case"user":return`<@${o.user_id}>`;case"usergroup":return`<!subteam^${o.usergroup_id}>`;case"team":return`<team:${o.team_id}>`;case"channel":return`<#${o.channel_id}>`;case"broadcast":return o.range==="here"?"<!here>":o.range==="channel"?"<!channel>":"<!everyone>";case"color":return o.value;default:return""}},i=o=>{switch(o.type){case"rich_text_section":return o.elements.map(n).filter(Boolean).join("");case"rich_text_list":return o.elements.map((l,c)=>(o.style==="ordered"?`${(o.offset??1)+c}. `:"- ")+l.elements.map(n).join("")).join(`
|
|
140
|
+
`);case"rich_text_preformatted":return o.elements.map(n).join("");case"rich_text_quote":return o.elements.map(n).map(l=>`> ${l}`).join(`
|
|
141
|
+
`);default:return""}},s=o=>o.elements.map(i).filter(Boolean).join(`
|
|
142
|
+
`),a=o=>{switch(o.type){case"section":return r(o.text);case"header":return r(o.text);case"context":return o.elements.map(l=>l.text??"").filter(Boolean).join(" ");case"rich_text":return s(o);case"divider":return"---";case"image":return o.title?.text??o.alt_text??"Image";case"table":return o.rows.map(l=>l.map(s).join(" | ")).join(`
|
|
143
|
+
`);default:return""}};for(let o of e){let l=a(o).trim();l&&t.push(l)}return t.join(`
|
|
144
|
+
|
|
145
|
+
`)}});var ky=_(hr=>{"use strict";f();var Ade=hr&&hr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Ode=hr&&hr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Ade(t,e,r)};Object.defineProperty(hr,"__esModule",{value:!0});hr.splitBlocksWithText=hr.splitBlocks=hr.blocksToPlainText=hr.blocksToMarkdown=void 0;hr.markdownToBlocks=Ide;var Nde=MP(),Fde=wy();Ode(jP(),hr);var Gf=t8();Object.defineProperty(hr,"blocksToMarkdown",{enumerable:!0,get:function(){return Gf.blocksToMarkdown}});Object.defineProperty(hr,"blocksToPlainText",{enumerable:!0,get:function(){return Gf.blocksToPlainText}});Object.defineProperty(hr,"splitBlocks",{enumerable:!0,get:function(){return Gf.splitBlocks}});Object.defineProperty(hr,"splitBlocksWithText",{enumerable:!0,get:function(){return Gf.splitBlocksWithText}});function Ide(e,t){return(0,Fde.validateOptions)(t),(0,Nde.parseMarkdown)(e,t)}});var kr=_(Vr=>{"use strict";f();Vr.__esModule=!0;Vr.extend=r8;Vr.indexOf=qde;Vr.escapeExpression=jde;Vr.isEmpty=Bde;Vr.createFrame=$de;Vr.blockParams=zde;Vr.appendContextPath=Hde;var Lde={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},Pde=/[&<>"'`=]/g,Rde=/[&<>"'`=]/;function Mde(e){return Lde[e]}function r8(e){for(var t=1;t<arguments.length;t++)for(var r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&(e[r]=arguments[t][r]);return e}var Ty=Object.prototype.toString;Vr.toString=Ty;var Cy=function(t){return typeof t=="function"};Cy(/x/)&&(Vr.isFunction=Cy=function(e){return typeof e=="function"&&Ty.call(e)==="[object Function]"});Vr.isFunction=Cy;var n8=Array.isArray||function(e){return e&&typeof e=="object"?Ty.call(e)==="[object Array]":!1};Vr.isArray=n8;function qde(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function jde(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return Rde.test(e)?e.replace(Pde,Mde):e}function Bde(e){return!e&&e!==0?!0:!!(n8(e)&&e.length===0)}function $de(e){var t=r8({},e);return t._parent=e,t}function zde(e,t){return e.path=t,e}function Hde(e,t){return(e?e+".":"")+t}});var Gr=_((Wf,i8)=>{"use strict";f();Wf.__esModule=!0;var Ay=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Oy(e,t){var r=t&&t.loc,n=void 0,i=void 0,s=void 0,a=void 0;r&&(n=r.start.line,i=r.end.line,s=r.start.column,a=r.end.column,e+=" - "+n+":"+s);for(var o=Error.prototype.constructor.call(this,e),l=0;l<Ay.length;l++)this[Ay[l]]=o[Ay[l]];Error.captureStackTrace&&Error.captureStackTrace(this,Oy);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=s,this.endColumn=a))}catch{}}Oy.prototype=new Error;Wf.default=Oy;i8.exports=Wf.default});var a8=_((Kf,s8)=>{"use strict";f();Kf.__esModule=!0;var Ny=kr();Kf.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var n=r.inverse,i=r.fn;if(t===!0)return i(this);if(t===!1||t==null)return n(this);if(Ny.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):n(this);if(r.data&&r.ids){var s=Ny.createFrame(r.data);s.contextPath=Ny.appendContextPath(r.data.contextPath,r.name),r={data:s}}return i(t,r)})};s8.exports=Kf.default});var l8=_((Zf,o8)=>{"use strict";f();Zf.__esModule=!0;function Ude(e){return e&&e.__esModule?e:{default:e}}var bc=kr(),Vde=Gr(),Gde=Ude(Vde);Zf.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new Gde.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,s=0,a="",o=void 0,l=void 0;r.data&&r.ids&&(l=bc.appendContextPath(r.data.contextPath,r.ids[0])+"."),bc.isFunction(t)&&(t=t.call(this)),r.data&&(o=bc.createFrame(r.data));function c(m,b,v){o&&(o.key=m,o.index=b,o.first=b===0,o.last=!!v,l&&(o.contextPath=l+m)),a=a+n(t[m],{data:o,blockParams:bc.blockParams([t[m],m],[l+m,null])})}if(t&&typeof t=="object")if(bc.isArray(t))for(var p=t.length;s<p;s++)s in t&&c(s,s,s===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var u=[],h=t[Symbol.iterator](),d=h.next();!d.done;d=h.next())u.push(d.value);t=u;for(var p=t.length;s<p;s++)c(s,s,s===t.length-1)}else(function(){var m=void 0;Object.keys(t).forEach(function(b){m!==void 0&&c(m,s-1),m=b,s++}),m!==void 0&&c(m,s-1,!0)})();return s===0&&(a=i(this)),a})};o8.exports=Zf.default});var u8=_((Jf,c8)=>{"use strict";f();Jf.__esModule=!0;function Wde(e){return e&&e.__esModule?e:{default:e}}var Kde=Gr(),Zde=Wde(Kde);Jf.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new Zde.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};c8.exports=Jf.default});var h8=_((Qf,d8)=>{"use strict";f();Qf.__esModule=!0;function Jde(e){return e&&e.__esModule?e:{default:e}}var p8=kr(),Qde=Gr(),f8=Jde(Qde);Qf.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new f8.default("#if requires exactly one argument");return p8.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||p8.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new f8.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};d8.exports=Qf.default});var g8=_((Yf,m8)=>{"use strict";f();Yf.__esModule=!0;Yf.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),t[0]=i,e.log.apply(e,t)})};m8.exports=Yf.default});var b8=_((Xf,x8)=>{"use strict";f();Xf.__esModule=!0;Xf.default=function(e){e.registerHelper("lookup",function(t,r,n){return t&&n.lookupProperty(t,r)})};x8.exports=Xf.default});var v8=_((ed,y8)=>{"use strict";f();ed.__esModule=!0;function Yde(e){return e&&e.__esModule?e:{default:e}}var yc=kr(),Xde=Gr(),ehe=Yde(Xde);ed.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new ehe.default("#with requires exactly one argument");yc.isFunction(t)&&(t=t.call(this));var n=r.fn;if(yc.isEmpty(t))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=yc.createFrame(r.data),i.contextPath=yc.appendContextPath(r.data.contextPath,r.ids[0])),n(t,{data:i,blockParams:yc.blockParams([t],[i&&i.contextPath])})})};y8.exports=ed.default});var Fy=_(td=>{"use strict";f();td.__esModule=!0;td.registerDefaultHelpers=mhe;td.moveHelperToHooks=ghe;function ia(e){return e&&e.__esModule?e:{default:e}}var the=a8(),rhe=ia(the),nhe=l8(),ihe=ia(nhe),she=u8(),ahe=ia(she),ohe=h8(),lhe=ia(ohe),che=g8(),uhe=ia(che),phe=b8(),fhe=ia(phe),dhe=v8(),hhe=ia(dhe);function mhe(e){rhe.default(e),ihe.default(e),ahe.default(e),lhe.default(e),uhe.default(e),fhe.default(e),hhe.default(e)}function ghe(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||(e.helpers[t]=void 0))}});var w8=_((rd,_8)=>{"use strict";f();rd.__esModule=!0;var xhe=kr();rd.default=function(e){e.registerDecorator("inline",function(t,r,n,i){var s=t;return r.partials||(r.partials={},s=function(a,o){var l=n.partials;n.partials=xhe.extend({},l,r.partials);var c=t(a,o);return n.partials=l,c}),r.partials[i.args[0]]=i.fn,s})};_8.exports=rd.default});var E8=_(Iy=>{"use strict";f();Iy.__esModule=!0;Iy.registerDefaultDecorators=_he;function bhe(e){return e&&e.__esModule?e:{default:e}}var yhe=w8(),vhe=bhe(yhe);function _he(e){vhe.default(e)}});var Ly=_((nd,D8)=>{"use strict";f();nd.__esModule=!0;var whe=kr(),_o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if(typeof t=="string"){var r=whe.indexOf(_o.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},log:function(t){if(t=_o.lookupLevel(t),typeof console<"u"&&_o.lookupLevel(_o.level)<=t){var r=_o.methodMap[t];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];console[r].apply(console,i)}}};nd.default=_o;D8.exports=nd.default});var Py=_(vc=>{"use strict";f();vc.__esModule=!0;vc.createProtoAccessControl=khe;vc.resultIsAllowed=Che;vc.resetLoggedProperties=Ahe;function Ehe(e){return e&&e.__esModule?e:{default:e}}var S8=kr(),Dhe=Ly(),She=Ehe(Dhe),id=Object.create(null);function khe(e){var t=Object.create(null);t.__proto__=!1,S8.extend(t,e.allowedProtoProperties);var r=Object.create(null);return r.constructor=!1,r.__defineGetter__=!1,r.__defineSetter__=!1,r.__lookupGetter__=!1,r.__lookupSetter__=!1,S8.extend(r,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:e.allowProtoMethodsByDefault}}}function Che(e,t,r){return k8(typeof e=="function"?t.methods:t.properties,r)}function k8(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(The(t),!1)}function The(e){id[e]!==!0&&(id[e]=!0,She.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
146
|
+
You can add a runtime option to disable the check or this warning:
|
|
147
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function Ahe(){Object.keys(id).forEach(function(e){delete id[e]})}});var ad=_(Gn=>{"use strict";f();Gn.__esModule=!0;Gn.HandlebarsEnvironment=qy;function C8(e){return e&&e.__esModule?e:{default:e}}var sa=kr(),Ohe=Gr(),Ry=C8(Ohe),Nhe=Fy(),Fhe=E8(),Ihe=Ly(),sd=C8(Ihe),Lhe=Py(),Phe="4.7.9";Gn.VERSION=Phe;var Rhe=8;Gn.COMPILER_REVISION=Rhe;var Mhe=7;Gn.LAST_COMPATIBLE_COMPILER_REVISION=Mhe;var qhe={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Gn.REVISION_CHANGES=qhe;var My="[object Object]";function qy(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},Nhe.registerDefaultHelpers(this),Fhe.registerDefaultDecorators(this)}qy.prototype={constructor:qy,logger:sd.default,log:sd.default.log,registerHelper:function(t,r){if(sa.toString.call(t)===My){if(r)throw new Ry.default("Arg not supported with multiple helpers");sa.extend(this.helpers,t)}else this.helpers[t]=r},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,r){if(sa.toString.call(t)===My)sa.extend(this.partials,t);else{if(typeof r>"u")throw new Ry.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,r){if(sa.toString.call(t)===My){if(r)throw new Ry.default("Arg not supported with multiple decorators");sa.extend(this.decorators,t)}else this.decorators[t]=r},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){Lhe.resetLoggedProperties()}};var jhe=sd.default.log;Gn.log=jhe;Gn.createFrame=sa.createFrame;Gn.logger=sd.default});var A8=_((od,T8)=>{"use strict";f();od.__esModule=!0;function jy(e){this.string=e}jy.prototype.toString=jy.prototype.toHTML=function(){return""+this.string};od.default=jy;T8.exports=od.default});var O8=_(By=>{"use strict";f();By.__esModule=!0;By.wrapHelper=Bhe;function Bhe(e,t){if(typeof e!="function")return e;var r=function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=t(i),e.apply(this,arguments)};return r}});var R8=_(rs=>{"use strict";f();rs.__esModule=!0;rs.checkRevision=Ghe;rs.template=Whe;rs.wrapProgram=ld;rs.resolvePartial=Khe;rs.invokePartial=Zhe;rs.noop=L8;function $he(e){return e&&e.__esModule?e:{default:e}}function zhe(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}var Hhe=kr(),wo=zhe(Hhe),Uhe=Gr(),vi=$he(Uhe),_i=ad(),N8=Fy(),Vhe=O8(),F8=Py();function Ghe(e){var t=e&&e[0]||1,r=_i.COMPILER_REVISION;if(!(t>=_i.LAST_COMPATIBLE_COMPILER_REVISION&&t<=_i.COMPILER_REVISION))if(t<_i.LAST_COMPATIBLE_COMPILER_REVISION){var n=_i.REVISION_CHANGES[r],i=_i.REVISION_CHANGES[t];throw new vi.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new vi.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}function Whe(e,t){if(!t)throw new vi.default("No environment passed to template");if(!e||!e.main)throw new vi.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var r=e.compiler&&e.compiler[0]===7;function n(a,o,l){l.hash&&(o=wo.extend({},o,l.hash),l.ids&&(l.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,o,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var c=t.VM.invokePartial.call(this,a,o,l);if(c==null&&t.compile&&(l.partials[l.name]=t.compile(a,e.compilerOptions,t),c=l.partials[l.name](o,l)),c!=null){if(l.indent){for(var p=c.split(`
|
|
148
|
+
`),u=0,h=p.length;u<h&&!(!p[u]&&u+1===h);u++)p[u]=l.indent+p[u];c=p.join(`
|
|
149
|
+
`)}return c}else throw new vi.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}var i={strict:function(o,l,c){if(!o||!(l in o))throw new vi.default('"'+l+'" not defined in '+o,{loc:c});return i.lookupProperty(o,l)},lookupProperty:function(o,l){var c=o[l];if(c==null||Object.prototype.hasOwnProperty.call(o,l)||F8.resultIsAllowed(c,i.protoAccessControl,l))return c},lookup:function(o,l){for(var c=o.length,p=0;p<c;p++){var u=o[p]&&i.lookupProperty(o[p],l);if(u!=null)return u}},lambda:function(o,l){return typeof o=="function"?o.call(l):o},escapeExpression:wo.escapeExpression,invokePartial:n,fn:function(o){var l=e[o];return l.decorator=e[o+"_d"],l},programs:[],program:function(o,l,c,p,u){var h=this.programs[o],d=this.fn(o);return l||u||p||c?h=ld(this,o,d,l,c,p,u):h||(h=this.programs[o]=ld(this,o,d)),h},data:function(o,l){for(;o&&l--;)o=o._parent;return o},mergeIfNeeded:function(o,l){var c=o||l;return o&&l&&o!==l&&(c=wo.extend({},l,o)),c},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(a){var o=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=o.data;s._setup(o),!o.partial&&e.useData&&(l=Jhe(a,l));var c=void 0,p=e.useBlockParams?[]:void 0;e.useDepths&&(o.depths?c=a!=o.depths[0]?[a].concat(o.depths):o.depths:c=[a]);function u(h){return""+e.main(i,h,i.helpers,i.partials,l,p,c)}return u=P8(e.main,u,i,o.depths||[],l,p),u(a,o)}return s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var o={};I8(o,t.helpers,i),I8(o,a.helpers,i),i.helpers=o,e.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=wo.extend({},t.decorators,a.decorators)),i.hooks={},i.protoAccessControl=F8.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;N8.moveHelperToHooks(i,"helperMissing",l),N8.moveHelperToHooks(i,"blockHelperMissing",l)}},s._child=function(a,o,l,c){if(e.useBlockParams&&!l)throw new vi.default("must pass block params");if(e.useDepths&&!c)throw new vi.default("must pass parent depths");return ld(i,a,e[a],o,0,l,c)},s}function ld(e,t,r,n,i,s,a){function o(l){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=a;return a&&l!=a[0]&&!(l===e.nullContext&&a[0]===null)&&(p=[l].concat(a)),r(e,l,e.helpers,e.partials,c.data||n,s&&[c.blockParams].concat(s),p)}return o=P8(r,o,e,a,n,s),o.program=t,o.depth=a?a.length:0,o.blockParams=i||0,o}function Khe(e,t,r){return e?!e.call&&!r.name&&(r.name=e,e=cd(r.partials,e)):r.name==="@partial-block"?e=cd(r.data,"partial-block"):e=cd(r.partials,r.name),e}function Zhe(e,t,r){var n=cd(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==L8&&(function(){r.data=_i.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=function(o){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=_i.createFrame(l.data),l.data["partial-block"]=n,s(o,l)},s.partials&&(r.partials=wo.extend({},r.partials,s.partials))})(),e===void 0&&i&&(e=i),e===void 0)throw new vi.default("The partial "+r.name+" could not be found");if(e instanceof Function)return e(t,r)}function L8(){return""}function cd(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function Jhe(e,t){return(!t||!("root"in t))&&(t=t?_i.createFrame(t):{},t.root=e),t}function P8(e,t,r,n,i,s){if(e.decorator){var a={};t=e.decorator(t,a,r,n&&n[0],i,s,n),wo.extend(t,a)}return t}function I8(e,t,r){t&&Object.keys(t).forEach(function(n){var i=t[n];e[n]=Qhe(i,r)})}function Qhe(e,t){var r=t.lookupProperty;return Vhe.wrapHelper(e,function(n){return n.lookupProperty=r,n})}});var $y=_((ud,M8)=>{"use strict";f();ud.__esModule=!0;ud.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};M8.exports=ud.default});var z8=_((pd,$8)=>{"use strict";f();pd.__esModule=!0;function Hy(e){return e&&e.__esModule?e:{default:e}}function Uy(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}var Yhe=ad(),q8=Uy(Yhe),Xhe=A8(),eme=Hy(Xhe),tme=Gr(),rme=Hy(tme),nme=kr(),zy=Uy(nme),ime=R8(),j8=Uy(ime),sme=$y(),ame=Hy(sme);function B8(){var e=new q8.HandlebarsEnvironment;return zy.extend(e,q8),e.SafeString=eme.default,e.Exception=rme.default,e.Utils=zy,e.escapeExpression=zy.escapeExpression,e.VM=j8,e.template=function(t){return j8.template(t,e)},e}var _c=B8();_c.create=B8;ame.default(_c);_c.default=_c;pd.default=_c;$8.exports=pd.default});var Vy=_((fd,U8)=>{"use strict";f();fd.__esModule=!0;var H8={helpers:{helperExpression:function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},scopedId:function(t){return/^\.|this\b/.test(t.original)},simpleId:function(t){return t.parts.length===1&&!H8.helpers.scopedId(t)&&!t.depth}}};fd.default=H8;U8.exports=fd.default});var G8=_((dd,V8)=>{"use strict";f();dd.__esModule=!0;var ome=(function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(i,s,a,o,l,c,p){var u=c.length-1;switch(l){case 1:return c[u-1];case 2:this.$=o.prepareProgram(c[u]);break;case 3:this.$=c[u];break;case 4:this.$=c[u];break;case 5:this.$=c[u];break;case 6:this.$=c[u];break;case 7:this.$=c[u];break;case 8:this.$=c[u];break;case 9:this.$={type:"CommentStatement",value:o.stripComment(c[u]),strip:o.stripFlags(c[u],c[u]),loc:o.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:c[u],value:c[u],loc:o.locInfo(this._$)};break;case 11:this.$=o.prepareRawBlock(c[u-2],c[u-1],c[u],this._$);break;case 12:this.$={path:c[u-3],params:c[u-2],hash:c[u-1]};break;case 13:this.$=o.prepareBlock(c[u-3],c[u-2],c[u-1],c[u],!1,this._$);break;case 14:this.$=o.prepareBlock(c[u-3],c[u-2],c[u-1],c[u],!0,this._$);break;case 15:this.$={open:c[u-5],path:c[u-4],params:c[u-3],hash:c[u-2],blockParams:c[u-1],strip:o.stripFlags(c[u-5],c[u])};break;case 16:this.$={path:c[u-4],params:c[u-3],hash:c[u-2],blockParams:c[u-1],strip:o.stripFlags(c[u-5],c[u])};break;case 17:this.$={path:c[u-4],params:c[u-3],hash:c[u-2],blockParams:c[u-1],strip:o.stripFlags(c[u-5],c[u])};break;case 18:this.$={strip:o.stripFlags(c[u-1],c[u-1]),program:c[u]};break;case 19:var h=o.prepareBlock(c[u-2],c[u-1],c[u],c[u],!1,this._$),d=o.prepareProgram([h],c[u-1].loc);d.chained=!0,this.$={strip:c[u-2].strip,program:d,chain:!0};break;case 20:this.$=c[u];break;case 21:this.$={path:c[u-1],strip:o.stripFlags(c[u-2],c[u])};break;case 22:this.$=o.prepareMustache(c[u-3],c[u-2],c[u-1],c[u-4],o.stripFlags(c[u-4],c[u]),this._$);break;case 23:this.$=o.prepareMustache(c[u-3],c[u-2],c[u-1],c[u-4],o.stripFlags(c[u-4],c[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:c[u-3],params:c[u-2],hash:c[u-1],indent:"",strip:o.stripFlags(c[u-4],c[u]),loc:o.locInfo(this._$)};break;case 25:this.$=o.preparePartialBlock(c[u-2],c[u-1],c[u],this._$);break;case 26:this.$={path:c[u-3],params:c[u-2],hash:c[u-1],strip:o.stripFlags(c[u-4],c[u])};break;case 27:this.$=c[u];break;case 28:this.$=c[u];break;case 29:this.$={type:"SubExpression",path:c[u-3],params:c[u-2],hash:c[u-1],loc:o.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:c[u],loc:o.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:o.id(c[u-2]),value:c[u],loc:o.locInfo(this._$)};break;case 32:this.$=o.id(c[u-1]);break;case 33:this.$=c[u];break;case 34:this.$=c[u];break;case 35:this.$={type:"StringLiteral",value:c[u],original:c[u],loc:o.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(c[u]),original:Number(c[u]),loc:o.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:c[u]==="true",original:c[u]==="true",loc:o.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:o.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:o.locInfo(this._$)};break;case 40:this.$=c[u];break;case 41:this.$=c[u];break;case 42:this.$=o.preparePath(!0,c[u],this._$);break;case 43:this.$=o.preparePath(!1,c[u],this._$);break;case 44:c[u-2].push({part:o.id(c[u]),original:c[u],separator:c[u-1]}),this.$=c[u-2];break;case 45:this.$=[{part:o.id(c[u]),original:c[u]}];break;case 46:this.$=[];break;case 47:c[u-1].push(c[u]);break;case 48:this.$=[];break;case 49:c[u-1].push(c[u]);break;case 50:this.$=[];break;case 51:c[u-1].push(c[u]);break;case 58:this.$=[];break;case 59:c[u-1].push(c[u]);break;case 64:this.$=[];break;case 65:c[u-1].push(c[u]);break;case 70:this.$=[];break;case 71:c[u-1].push(c[u]);break;case 78:this.$=[];break;case 79:c[u-1].push(c[u]);break;case 82:this.$=[];break;case 83:c[u-1].push(c[u]);break;case 86:this.$=[];break;case 87:c[u-1].push(c[u]);break;case 90:this.$=[];break;case 91:c[u-1].push(c[u]);break;case 94:this.$=[];break;case 95:c[u-1].push(c[u]);break;case 98:this.$=[c[u]];break;case 99:c[u-1].push(c[u]);break;case 100:this.$=[c[u]];break;case 101:c[u-1].push(c[u]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(i,s){throw new Error(i)},parse:function(i){var s=this,a=[0],o=[null],l=[],c=this.table,p="",u=0,h=0,d=0,m=2,b=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;l.push(v);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function T(oe){a.length=a.length-2*oe,o.length=o.length-oe,l.length=l.length-oe}function S(){var oe;return oe=s.lexer.lex()||1,typeof oe!="number"&&(oe=s.symbols_[oe]||oe),oe}for(var O,P,A,K,ee,J,L={},N,$,q,E;;){if(A=a[a.length-1],this.defaultActions[A]?K=this.defaultActions[A]:((O===null||typeof O>"u")&&(O=S()),K=c[A]&&c[A][O]),typeof K>"u"||!K.length||!K[0]){var H="";if(!d){E=[];for(N in c[A])this.terminals_[N]&&N>2&&E.push("'"+this.terminals_[N]+"'");this.lexer.showPosition?H="Parse error on line "+(u+1)+`:
|
|
150
|
+
`+this.lexer.showPosition()+`
|
|
151
|
+
Expecting `+E.join(", ")+", got '"+(this.terminals_[O]||O)+"'":H="Parse error on line "+(u+1)+": Unexpected "+(O==1?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(H,{text:this.lexer.match,token:this.terminals_[O]||O,line:this.lexer.yylineno,loc:v,expected:E})}}if(K[0]instanceof Array&&K.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+O);switch(K[0]){case 1:a.push(O),o.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(K[1]),O=null,P?(O=P,P=null):(h=this.lexer.yyleng,p=this.lexer.yytext,u=this.lexer.yylineno,v=this.lexer.yylloc,d>0&&d--);break;case 2:if($=this.productions_[K[1]][1],L.$=o[o.length-$],L._$={first_line:l[l.length-($||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-($||1)].first_column,last_column:l[l.length-1].last_column},w&&(L._$.range=[l[l.length-($||1)].range[0],l[l.length-1].range[1]]),J=this.performAction.call(L,p,h,u,this.yy,K[1],o,l),typeof J<"u")return J;$&&(a=a.slice(0,-1*$*2),o=o.slice(0,-1*$),l=l.slice(0,-1*$)),a.push(this.productions_[K[1]][0]),o.push(L.$),l.push(L._$),q=c[a[a.length-2]][a[a.length-1]],a.push(q);break;case 3:return!0}}return!0}},t=(function(){var n={EOF:1,parseError:function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var a=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var c=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===l.length?this.yylloc.first_column:0)+l[l.length-o.length].length-o[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-a]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
152
|
+
`+a+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,o,l,c,p;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),h=0;h<u.length&&(o=this._input.match(this.rules[u[h]]),!(o&&(!a||o[0].length>a[0].length)&&(a=o,l=h,!this.options.flex)));h++);return a?(p=a[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,u[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
153
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return n.options={},n.performAction=function(s,a,o,l){function c(u,h){return a.yytext=a.yytext.substring(u,a.yyleng-h+u)}var p=l;switch(o){case 0:if(a.yytext.slice(-2)==="\\\\"?(c(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(c(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(c(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=c(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=c(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();e.lexer=t;function r(){this.yy={}}return r.prototype=e,e.Parser=r,new r})();dd.default=ome;V8.exports=dd.default});var xd=_((gd,Z8)=>{"use strict";f();gd.__esModule=!0;function lme(e){return e&&e.__esModule?e:{default:e}}var cme=Gr(),Gy=lme(cme);function hd(){this.parents=[]}hd.prototype={constructor:hd,mutating:!1,acceptKey:function(t,r){var n=this.accept(t[r]);if(this.mutating){if(n&&!hd.prototype[n.type])throw new Gy.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+t.type);t[r]=n}},acceptRequired:function(t,r){if(this.acceptKey(t,r),!t[r])throw new Gy.default(t.type+" requires "+r)},acceptArray:function(t){for(var r=0,n=t.length;r<n;r++)this.acceptKey(t,r),t[r]||(t.splice(r,1),r--,n--)},accept:function(t){if(t){if(!this[t.type])throw new Gy.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var r=this[t.type](t);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return t}},Program:function(t){this.acceptArray(t.body)},MustacheStatement:md,Decorator:md,BlockStatement:W8,DecoratorBlock:W8,PartialStatement:K8,PartialBlockStatement:function(t){K8.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:md,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(t){this.acceptArray(t.pairs)},HashPair:function(t){this.acceptRequired(t,"value")}};function md(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function W8(e){md.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function K8(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}gd.default=hd;Z8.exports=gd.default});var Q8=_((bd,J8)=>{"use strict";f();bd.__esModule=!0;function ume(e){return e&&e.__esModule?e:{default:e}}var pme=xd(),fme=ume(pme);function Wn(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}Wn.prototype=new fme.default;Wn.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=e.body,i=0,s=n.length;i<s;i++){var a=n[i],o=this.accept(a);if(o){var l=Wy(n,i,r),c=Ky(n,i,r),p=o.openStandalone&&l,u=o.closeStandalone&&c,h=o.inlineStandalone&&l&&c;o.close&&aa(n,i,!0),o.open&&ns(n,i,!0),t&&h&&(aa(n,i),ns(n,i)&&a.type==="PartialStatement"&&(a.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),t&&p&&(aa((a.program||a.inverse).body),ns(n,i)),t&&u&&(aa(n,i),ns((a.inverse||a.program).body))}}return e};Wn.prototype.BlockStatement=Wn.prototype.DecoratorBlock=Wn.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,r=e.program&&e.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:Ky(t.body),closeStandalone:Wy((n||t).body)};if(e.openStrip.close&&aa(t.body,null,!0),r){var a=e.inverseStrip;a.open&&ns(t.body,null,!0),a.close&&aa(n.body,null,!0),e.closeStrip.open&&ns(i.body,null,!0),!this.options.ignoreStandalone&&Wy(t.body)&&Ky(n.body)&&(ns(t.body),aa(n.body))}else e.closeStrip.open&&ns(t.body,null,!0);return s};Wn.prototype.Decorator=Wn.prototype.MustacheStatement=function(e){return e.strip};Wn.prototype.PartialStatement=Wn.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function Wy(e,t,r){t===void 0&&(t=e.length);var n=e[t-1],i=e[t-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}function Ky(e,t,r){t===void 0&&(t=-1);var n=e[t+1],i=e[t+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}function aa(e,t,r){var n=e[t==null?0:t+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}function ns(e,t,r){var n=e[t==null?e.length-1:t-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}bd.default=Wn;J8.exports=bd.default});var Y8=_(ln=>{"use strict";f();ln.__esModule=!0;ln.SourceLocation=mme;ln.id=gme;ln.stripFlags=xme;ln.stripComment=bme;ln.preparePath=yme;ln.prepareMustache=vme;ln.prepareRawBlock=_me;ln.prepareBlock=wme;ln.prepareProgram=Eme;ln.preparePartialBlock=Dme;function dme(e){return e&&e.__esModule?e:{default:e}}var hme=Gr(),Zy=dme(hme);function Jy(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new Zy.default(e.path.original+" doesn't match "+t,r)}}function mme(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function gme(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function xme(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function bme(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function yme(e,t,r){r=this.locInfo(r);for(var n=e?"@":"",i=[],s=0,a=0,o=t.length;a<o;a++){var l=t[a].part,c=t[a].original!==l;if(n+=(t[a].separator||"")+l,!c&&(l===".."||l==="."||l==="this")){if(i.length>0)throw new Zy.default("Invalid path: "+n,{loc:r});l===".."&&s++}else i.push(l)}return{type:"PathExpression",data:e,depth:s,parts:i,original:n,loc:r}}function vme(e,t,r,n,i,s){var a=n.charAt(3)||n.charAt(2),o=a!=="{"&&a!=="&",l=/\*/.test(n);return{type:l?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:o,strip:i,loc:this.locInfo(s)}}function _me(e,t,r,n){Jy(e,r),n=this.locInfo(n);var i={type:"Program",body:t,strip:{},loc:n};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function wme(e,t,r,n,i,s){n&&n.path&&Jy(e,n);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var o=void 0,l=void 0;if(r){if(a)throw new Zy.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),l=r.strip,o=r.program}return i&&(i=o,o=t,t=i),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:o,openStrip:e.strip,inverseStrip:l,closeStrip:n&&n.strip,loc:this.locInfo(s)}}function Eme(e,t){if(!t&&e.length){var r=e[0].loc,n=e[e.length-1].loc;r&&n&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function Dme(e,t,r,n){return Jy(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}});var eR=_(Ec=>{"use strict";f();Ec.__esModule=!0;Ec.parseWithoutProcessing=X8;Ec.parse=Ime;function Sme(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function Xy(e){return e&&e.__esModule?e:{default:e}}var kme=G8(),Qy=Xy(kme),Cme=Q8(),Tme=Xy(Cme),Ame=Y8(),Ome=Sme(Ame),Nme=Gr(),wc=Xy(Nme),Fme=kr();Ec.parser=Qy.default;var yd={};Fme.extend(yd,Ome);function X8(e,t){if(e.type==="Program")return Lme(e),e;Qy.default.yy=yd,yd.locInfo=function(n){return new yd.SourceLocation(t&&t.srcName,n)};var r=Qy.default.parse(e);return r}function Ime(e,t){var r=X8(e,t),n=new Tme.default(t);return n.accept(r)}function Lme(e){Yy(e)}function Yy(e){if(e!=null){if(Array.isArray(e)){e.forEach(Yy);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!Pme(e.depth))throw new wc.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new wc.default("Invalid AST: PathExpression.parts must be an array");for(var t=0;t<e.parts.length;t++)if(typeof e.parts[t]!="string")throw new wc.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new wc.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new wc.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(r){r!=="loc"&&Yy(e[r])})}}}function Pme(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}});var iR=_(Cc=>{"use strict";f();Cc.__esModule=!0;Cc.Compiler=ev;Cc.precompile=jme;Cc.compile=Bme;function rR(e){return e&&e.__esModule?e:{default:e}}var Rme=Gr(),Sc=rR(Rme),kc=kr(),Mme=Vy(),Dc=rR(Mme),qme=[].slice;function ev(){}ev.prototype={compiler:ev,equals:function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],s=t.opcodes[n];if(i.opcode!==s.opcode||!nR(i.args,s.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},guid:0,compile:function(t,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=kc.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(t)},compileProgram:function(t){var r=new this.compiler,n=r.compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},accept:function(t){if(!this[t.type])throw new Sc.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var r=this[t.type](t);return this.sourceNode.shift(),r},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var r=t.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){tR(t);var r=t.program,n=t.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(t);i==="helper"?this.helperSexpr(t,r,n):i==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var r=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,r,void 0),i=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},PartialStatement:function(t){this.usePartial=!0;var r=t.program;r&&(r=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new Sc.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=t.name.original,s=t.name.type==="SubExpression";s&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",s,i,a),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){tR(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,r,n){var i=t.path,s=i.parts[0],a=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",s,a)},simpleSexpr:function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,r,n){var i=this.setupFullMustacheParams(t,r,n),s=t.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",i.length,a);else{if(this.options.knownHelpersOnly)throw new Sc.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",i.length,s.original,Dc.default.helpers.simpleId(s))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],n=Dc.default.helpers.scopedId(t),i=!t.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var r=t.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:qme.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var r=Dc.default.helpers.simpleId(t.path),n=r&&!!this.blockParamIndex(t.path.parts[0]),i=!n&&Dc.default.helpers.helperExpression(t),s=!n&&(i||r);if(s&&!i){var a=t.path.parts[0],o=this.options;o.knownHelpers[a]?i=!0:o.knownHelpersOnly&&(s=!1)}return i?"helper":s?"ambiguous":"simple"},pushParams:function(t){for(var r=0,n=t.length;r<n;r++)this.pushParam(t[r])},pushParam:function(t){var r=t.value!=null?t.value:t.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",r,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var n=void 0;if(t.parts&&!Dc.default.helpers.scopedId(t)&&!t.depth&&(n=this.blockParamIndex(t.parts[0])),n){var i=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=t.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,r)}this.accept(t)}},setupFullMustacheParams:function(t,r,n,i){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",r),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",i),s},blockParamIndex:function(t){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],s=i&&kc.indexOf(i,t);if(i&&s>=0)return[r,s]}}};function jme(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Sc.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=r.parse(e,t),i=new r.Compiler().compile(n,t);return new r.JavaScriptCompiler().compile(i,t)}function Bme(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Sc.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=kc.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var n=void 0;function i(){var a=r.parse(e,t),o=new r.Compiler().compile(a,t),l=new r.JavaScriptCompiler().compile(o,t,void 0,!0);return r.template(l)}function s(a,o){return n||(n=i()),n.call(this,a,o)}return s._setup=function(a){return n||(n=i()),n._setup(a)},s._child=function(a,o,l,c){return n||(n=i()),n._child(a,o,l,c)},s}function nR(e,t){if(e===t)return!0;if(kc.isArray(e)&&kc.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!nR(e[r],t[r]))return!1;return!0}}function tR(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}});var aR=_(tv=>{f();var sR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");tv.encode=function(e){if(0<=e&&e<sR.length)return sR[e];throw new TypeError("Must be between 0 and 63: "+e)};tv.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,o=43,l=47,c=26,p=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+c:s<=e&&e<=a?e-s+p:e==o?62:e==l?63:-1}});var iv=_(nv=>{f();var oR=aR(),rv=5,lR=1<<rv,cR=lR-1,uR=lR;function $me(e){return e<0?(-e<<1)+1:(e<<1)+0}function zme(e){var t=(e&1)===1,r=e>>1;return t?-r:r}nv.encode=function(t){var r="",n,i=$me(t);do n=i&cR,i>>>=rv,i>0&&(n|=uR),r+=oR.encode(n);while(i>0);return r};nv.decode=function(t,r,n){var i=t.length,s=0,a=0,o,l;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=oR.decode(t.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));o=!!(l&uR),l&=cR,s=s+(l<<a),a+=rv}while(o);n.value=zme(s),n.rest=r}});var So=_(mr=>{f();function Hme(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}mr.getArg=Hme;var pR=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Ume=/^data:.+\,.+$/;function Tc(e){var t=e.match(pR);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}mr.urlParse=Tc;function Eo(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}mr.urlGenerate=Eo;function sv(e){var t=e,r=Tc(e);if(r){if(!r.path)return e;t=r.path}for(var n=mr.isAbsolute(t),i=t.split(/\/+/),s,a=0,o=i.length-1;o>=0;o--)s=i[o],s==="."?i.splice(o,1):s===".."?a++:a>0&&(s===""?(i.splice(o+1,a),a=0):(i.splice(o,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Eo(r)):t}mr.normalize=sv;function fR(e,t){e===""&&(e="."),t===""&&(t=".");var r=Tc(t),n=Tc(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Eo(r);if(r||t.match(Ume))return t;if(n&&!n.host&&!n.path)return n.host=t,Eo(n);var i=t.charAt(0)==="/"?t:sv(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Eo(n)):i}mr.join=fR;mr.isAbsolute=function(e){return e.charAt(0)==="/"||pR.test(e)};function Vme(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}mr.relative=Vme;var dR=(function(){var e=Object.create(null);return!("__proto__"in e)})();function hR(e){return e}function Gme(e){return mR(e)?"$"+e:e}mr.toSetString=dR?hR:Gme;function Wme(e){return mR(e)?e.slice(1):e}mr.fromSetString=dR?hR:Wme;function mR(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function Kme(e,t,r){var n=Do(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:Do(e.name,t.name)}mr.compareByOriginalPositions=Kme;function Zme(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Do(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Do(e.name,t.name)}mr.compareByGeneratedPositionsDeflated=Zme;function Do(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function Jme(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Do(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Do(e.name,t.name)}mr.compareByGeneratedPositionsInflated=Jme;function Qme(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}mr.parseSourceMapInput=Qme;function Yme(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Tc(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=fR(Eo(n),t)}return sv(t)}mr.computeSourceURL=Yme});var lv=_(gR=>{f();var av=So(),ov=Object.prototype.hasOwnProperty,oa=typeof Map<"u";function wi(){this._array=[],this._set=oa?new Map:Object.create(null)}wi.fromArray=function(t,r){for(var n=new wi,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n};wi.prototype.size=function(){return oa?this._set.size:Object.getOwnPropertyNames(this._set).length};wi.prototype.add=function(t,r){var n=oa?t:av.toSetString(t),i=oa?this.has(t):ov.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(oa?this._set.set(t,s):this._set[n]=s)};wi.prototype.has=function(t){if(oa)return this._set.has(t);var r=av.toSetString(t);return ov.call(this._set,r)};wi.prototype.indexOf=function(t){if(oa){var r=this._set.get(t);if(r>=0)return r}else{var n=av.toSetString(t);if(ov.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')};wi.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};wi.prototype.toArray=function(){return this._array.slice()};gR.ArraySet=wi});var yR=_(bR=>{f();var xR=So();function Xme(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||xR.compareByGeneratedPositionsInflated(e,t)<=0}function vd(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}vd.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};vd.prototype.add=function(t){Xme(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};vd.prototype.toArray=function(){return this._sorted||(this._array.sort(xR.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};bR.MappingList=vd});var cv=_(vR=>{f();var Ac=iv(),Ht=So(),_d=lv().ArraySet,e0e=yR().MappingList;function cn(e){e||(e={}),this._file=Ht.getArg(e,"file",null),this._sourceRoot=Ht.getArg(e,"sourceRoot",null),this._skipValidation=Ht.getArg(e,"skipValidation",!1),this._sources=new _d,this._names=new _d,this._mappings=new e0e,this._sourcesContents=null}cn.prototype._version=3;cn.fromSourceMap=function(t){var r=t.sourceRoot,n=new cn({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=Ht.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=Ht.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n};cn.prototype.addMapping=function(t){var r=Ht.getArg(t,"generated"),n=Ht.getArg(t,"original",null),i=Ht.getArg(t,"source",null),s=Ht.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})};cn.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=Ht.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Ht.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Ht.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};cn.prototype.applySourceMap=function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=Ht.relative(s,i));var a=new _d,o=new _d;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var c=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});c.source!=null&&(l.source=c.source,n!=null&&(l.source=Ht.join(n,l.source)),s!=null&&(l.source=Ht.relative(s,l.source)),l.originalLine=c.line,l.originalColumn=c.column,c.name!=null&&(l.name=c.name))}var p=l.source;p!=null&&!a.has(p)&&a.add(p);var u=l.name;u!=null&&!o.has(u)&&o.add(u)},this),this._sources=a,this._names=o,t.sources.forEach(function(l){var c=t.sourceContentFor(l);c!=null&&(n!=null&&(l=Ht.join(n,l)),s!=null&&(l=Ht.relative(s,l)),this.setSourceContent(l,c))},this)};cn.prototype._validateMapping=function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}};cn.prototype._serializeMappings=function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,o="",l,c,p,u,h=this._mappings.toArray(),d=0,m=h.length;d<m;d++){if(c=h[d],l="",c.generatedLine!==r)for(t=0;c.generatedLine!==r;)l+=";",r++;else if(d>0){if(!Ht.compareByGeneratedPositionsInflated(c,h[d-1]))continue;l+=","}l+=Ac.encode(c.generatedColumn-t),t=c.generatedColumn,c.source!=null&&(u=this._sources.indexOf(c.source),l+=Ac.encode(u-a),a=u,l+=Ac.encode(c.originalLine-1-i),i=c.originalLine-1,l+=Ac.encode(c.originalColumn-n),n=c.originalColumn,c.name!=null&&(p=this._names.indexOf(c.name),l+=Ac.encode(p-s),s=p)),o+=l}return o};cn.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Ht.relative(r,n));var i=Ht.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};cn.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};cn.prototype.toString=function(){return JSON.stringify(this.toJSON())};vR.SourceMapGenerator=cn});var _R=_(la=>{f();la.GREATEST_LOWER_BOUND=1;la.LEAST_UPPER_BOUND=2;function uv(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,o=i(r,n[a],!0);return o===0?a:o>0?t-a>1?uv(a,t,r,n,i,s):s==la.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?uv(e,a,r,n,i,s):s==la.LEAST_UPPER_BOUND?a:e<0?-1:e}la.search=function(t,r,n,i){if(r.length===0)return-1;var s=uv(-1,r.length,t,r,n,i||la.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var ER=_(wR=>{f();function pv(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function t0e(e,t){return Math.round(e+Math.random()*(t-e))}function fv(e,t,r,n){if(r<n){var i=t0e(r,n),s=r-1;pv(e,i,n);for(var a=e[n],o=r;o<n;o++)t(e[o],a)<=0&&(s+=1,pv(e,s,o));pv(e,s+1,o);var l=s+1;fv(e,t,r,l-1),fv(e,t,l+1,n)}}wR.quickSort=function(e,t){fv(e,t,0,e.length-1)}});var SR=_(wd=>{f();var pe=So(),dv=_R(),ko=lv().ArraySet,r0e=iv(),Oc=ER().quickSort;function vt(e,t){var r=e;return typeof e=="string"&&(r=pe.parseSourceMapInput(e)),r.sections!=null?new Dn(r,t):new sr(r,t)}vt.fromSourceMap=function(e,t){return sr.fromSourceMap(e,t)};vt.prototype._version=3;vt.prototype.__generatedMappings=null;Object.defineProperty(vt.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});vt.prototype.__originalMappings=null;Object.defineProperty(vt.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});vt.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};vt.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};vt.GENERATED_ORDER=1;vt.ORIGINAL_ORDER=2;vt.GREATEST_LOWER_BOUND=1;vt.LEAST_UPPER_BOUND=2;vt.prototype.eachMapping=function(t,r,n){var i=r||null,s=n||vt.GENERATED_ORDER,a;switch(s){case vt.GENERATED_ORDER:a=this._generatedMappings;break;case vt.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;a.map(function(l){var c=l.source===null?null:this._sources.at(l.source);return c=pe.computeSourceURL(o,c,this._sourceMapURL),{source:c,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(t,i)};vt.prototype.allGeneratedPositionsFor=function(t){var r=pe.getArg(t,"line"),n={source:pe.getArg(t,"source"),originalLine:r,originalColumn:pe.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",pe.compareByOriginalPositions,dv.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var o=a.originalLine;a&&a.originalLine===o;)i.push({line:pe.getArg(a,"generatedLine",null),column:pe.getArg(a,"generatedColumn",null),lastColumn:pe.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var l=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==l;)i.push({line:pe.getArg(a,"generatedLine",null),column:pe.getArg(a,"generatedColumn",null),lastColumn:pe.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i};wd.SourceMapConsumer=vt;function sr(e,t){var r=e;typeof e=="string"&&(r=pe.parseSourceMapInput(e));var n=pe.getArg(r,"version"),i=pe.getArg(r,"sources"),s=pe.getArg(r,"names",[]),a=pe.getArg(r,"sourceRoot",null),o=pe.getArg(r,"sourcesContent",null),l=pe.getArg(r,"mappings"),c=pe.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=pe.normalize(a)),i=i.map(String).map(pe.normalize).map(function(p){return a&&pe.isAbsolute(a)&&pe.isAbsolute(p)?pe.relative(a,p):p}),this._names=ko.fromArray(s.map(String),!0),this._sources=ko.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return pe.computeSourceURL(a,p,t)}),this.sourceRoot=a,this.sourcesContent=o,this._mappings=l,this._sourceMapURL=t,this.file=c}sr.prototype=Object.create(vt.prototype);sr.prototype.consumer=vt;sr.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=pe.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};sr.fromSourceMap=function(t,r){var n=Object.create(sr.prototype),i=n._names=ko.fromArray(t._names.toArray(),!0),s=n._sources=ko.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(d){return pe.computeSourceURL(n.sourceRoot,d,r)});for(var a=t._mappings.toArray().slice(),o=n.__generatedMappings=[],l=n.__originalMappings=[],c=0,p=a.length;c<p;c++){var u=a[c],h=new DR;h.generatedLine=u.generatedLine,h.generatedColumn=u.generatedColumn,u.source&&(h.source=s.indexOf(u.source),h.originalLine=u.originalLine,h.originalColumn=u.originalColumn,u.name&&(h.name=i.indexOf(u.name)),l.push(h)),o.push(h)}return Oc(n.__originalMappings,pe.compareByOriginalPositions),n};sr.prototype._version=3;Object.defineProperty(sr.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function DR(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}sr.prototype._parseMappings=function(t,r){for(var n=1,i=0,s=0,a=0,o=0,l=0,c=t.length,p=0,u={},h={},d=[],m=[],b,v,w,T,S;p<c;)if(t.charAt(p)===";")n++,p++,i=0;else if(t.charAt(p)===",")p++;else{for(b=new DR,b.generatedLine=n,T=p;T<c&&!this._charIsMappingSeparator(t,T);T++);if(v=t.slice(p,T),w=u[v],w)p+=v.length;else{for(w=[];p<T;)r0e.decode(t,p,h),S=h.value,p=h.rest,w.push(S);if(w.length===2)throw new Error("Found a source, but no line and column");if(w.length===3)throw new Error("Found a source and line, but no column");u[v]=w}b.generatedColumn=i+w[0],i=b.generatedColumn,w.length>1&&(b.source=o+w[1],o+=w[1],b.originalLine=s+w[2],s=b.originalLine,b.originalLine+=1,b.originalColumn=a+w[3],a=b.originalColumn,w.length>4&&(b.name=l+w[4],l+=w[4])),m.push(b),typeof b.originalLine=="number"&&d.push(b)}Oc(m,pe.compareByGeneratedPositionsDeflated),this.__generatedMappings=m,Oc(d,pe.compareByOriginalPositions),this.__originalMappings=d};sr.prototype._findMapping=function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return dv.search(t,r,s,a)};sr.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};sr.prototype.originalPositionFor=function(t){var r={generatedLine:pe.getArg(t,"line"),generatedColumn:pe.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",pe.compareByGeneratedPositionsDeflated,pe.getArg(t,"bias",vt.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=pe.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=pe.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=pe.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:pe.getArg(i,"originalLine",null),column:pe.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};sr.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};sr.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=pe.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=pe.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};sr.prototype.generatedPositionFor=function(t){var r=pe.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:pe.getArg(t,"line"),originalColumn:pe.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",pe.compareByOriginalPositions,pe.getArg(t,"bias",vt.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:pe.getArg(s,"generatedLine",null),column:pe.getArg(s,"generatedColumn",null),lastColumn:pe.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};wd.BasicSourceMapConsumer=sr;function Dn(e,t){var r=e;typeof e=="string"&&(r=pe.parseSourceMapInput(e));var n=pe.getArg(r,"version"),i=pe.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new ko,this._names=new ko;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var o=pe.getArg(a,"offset"),l=pe.getArg(o,"line"),c=pe.getArg(o,"column");if(l<s.line||l===s.line&&c<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=o,{generatedOffset:{generatedLine:l+1,generatedColumn:c+1},consumer:new vt(pe.getArg(a,"map"),t)}})}Dn.prototype=Object.create(vt.prototype);Dn.prototype.constructor=vt;Dn.prototype._version=3;Object.defineProperty(Dn.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});Dn.prototype.originalPositionFor=function(t){var r={generatedLine:pe.getArg(t,"line"),generatedColumn:pe.getArg(t,"column")},n=dv.search(r,this._sections,function(s,a){var o=s.generatedLine-a.generatedOffset.generatedLine;return o||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};Dn.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Dn.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};Dn.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(pe.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};Dn.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var o=s[a],l=i.consumer._sources.at(o.source);l=pe.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var c=null;o.name&&(c=i.consumer._names.at(o.name),this._names.add(c),c=this._names.indexOf(c));var p={source:l,generatedLine:o.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(i.generatedOffset.generatedLine===o.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:c};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}Oc(this.__generatedMappings,pe.compareByGeneratedPositionsDeflated),Oc(this.__originalMappings,pe.compareByOriginalPositions)};wd.IndexedSourceMapConsumer=Dn});var CR=_(kR=>{f();var n0e=cv().SourceMapGenerator,Ed=So(),i0e=/(\r?\n)/,s0e=10,Co="$$$isSourceNode$$$";function Wr(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Co]=!0,n!=null&&this.add(n)}Wr.fromStringWithSourceMap=function(t,r,n){var i=new Wr,s=t.split(i0e),a=0,o=function(){var h=m(),d=m()||"";return h+d;function m(){return a<s.length?s[a++]:void 0}},l=1,c=0,p=null;return r.eachMapping(function(h){if(p!==null)if(l<h.generatedLine)u(p,o()),l++,c=0;else{var d=s[a]||"",m=d.substr(0,h.generatedColumn-c);s[a]=d.substr(h.generatedColumn-c),c=h.generatedColumn,u(p,m),p=h;return}for(;l<h.generatedLine;)i.add(o()),l++;if(c<h.generatedColumn){var d=s[a]||"";i.add(d.substr(0,h.generatedColumn)),s[a]=d.substr(h.generatedColumn),c=h.generatedColumn}p=h},this),a<s.length&&(p&&u(p,o()),i.add(s.splice(a).join(""))),r.sources.forEach(function(h){var d=r.sourceContentFor(h);d!=null&&(n!=null&&(h=Ed.join(n,h)),i.setSourceContent(h,d))}),i;function u(h,d){if(h===null||h.source===void 0)i.add(d);else{var m=n?Ed.join(n,h.source):h.source;i.add(new Wr(h.originalLine,h.originalColumn,m,d,h.name))}}};Wr.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Co]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Wr.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Co]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Wr.prototype.walk=function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Co]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Wr.prototype.join=function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this};Wr.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];return n[Co]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this};Wr.prototype.setSourceContent=function(t,r){this.sourceContents[Ed.toSetString(t)]=r};Wr.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Co]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Ed.fromSetString(i[r]),this.sourceContents[i[r]])};Wr.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};Wr.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new n0e(t),i=!1,s=null,a=null,o=null,l=null;return this.walk(function(c,p){r.code+=c,p.source!==null&&p.line!==null&&p.column!==null?((s!==p.source||a!==p.line||o!==p.column||l!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),s=p.source,a=p.line,o=p.column,l=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var u=0,h=c.length;u<h;u++)c.charCodeAt(u)===s0e?(r.line++,r.column=0,u+1===h?(s=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(c,p){n.setSourceContent(c,p)}),{code:r.code,map:n}};kR.SourceNode=Wr});var TR=_(Dd=>{f();Dd.SourceMapGenerator=cv().SourceMapGenerator;Dd.SourceMapConsumer=SR().SourceMapConsumer;Dd.SourceNode=CR().SourceNode});var FR=_((Sd,NR)=>{"use strict";f();Sd.__esModule=!0;var mv=kr(),ca=void 0;try{(typeof define!="function"||!define.amd)&&(AR=TR(),ca=AR.SourceNode)}catch{}var AR;ca||(ca=function(e,t,r,n){this.src="",n&&this.add(n)},ca.prototype={add:function(t){mv.isArray(t)&&(t=t.join("")),this.src+=t},prepend:function(t){mv.isArray(t)&&(t=t.join("")),this.src=t+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function hv(e,t,r){if(mv.isArray(e)){for(var n=[],i=0,s=e.length;i<s;i++)n.push(t.wrap(e[i],r));return n}else if(typeof e=="boolean"||typeof e=="number")return e+"";return e}function OR(e){this.srcFile=e,this.source=[]}OR.prototype={isEmpty:function(){return!this.source.length},prepend:function(t,r){this.source.unshift(this.wrap(t,r))},push:function(t,r){this.source.push(this.wrap(t,r))},merge:function(){var t=this.empty();return this.each(function(r){t.add([" ",r,`
|
|
154
|
+
`])}),t},each:function(t){for(var r=0,n=this.source.length;r<n;r++)t(this.source[r])},empty:function(){var t=this.currentLocation||{start:{}};return new ca(t.start.line,t.start.column,this.srcFile)},wrap:function(t){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return t instanceof ca?t:(t=hv(t,this,r),new ca(r.start.line,r.start.column,this.srcFile,t))},functionCall:function(t,r,n){return n=this.generateList(n),this.wrap([t,r?"."+r+"(":"(",n,")"])},quotedString:function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(t){var r=this,n=[];Object.keys(t).forEach(function(s){var a=hv(t[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},generateList:function(t){for(var r=this.empty(),n=0,i=t.length;n<i;n++)n&&r.add(","),r.add(hv(t[n],this));return r},generateArray:function(t){var r=this.generateList(t);return r.prepend("["),r.add("]"),r}};Sd.default=OR;NR.exports=Sd.default});var MR=_((kd,RR)=>{"use strict";f();kd.__esModule=!0;function PR(e){return e&&e.__esModule?e:{default:e}}var IR=ad(),a0e=Gr(),gv=PR(a0e),o0e=kr(),l0e=FR(),LR=PR(l0e);function To(e){this.value=e}function Ao(){}Ao.prototype={nameLookup:function(t,r){return this.internalNameLookup(t,r)},depthedLookup:function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},compilerInfo:function(){var t=IR.COMPILER_REVISION,r=IR.REVISION_CHANGES[t];return[t,r]},appendToBuffer:function(t,r,n){return o0e.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(t,r,n,i){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var s=t.opcodes,a=void 0,o=void 0,l=void 0,c=void 0;for(l=0,c=s.length;l<c;l++)a=s[l],this.source.currentLocation=a.loc,o=o||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=o,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new gv.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|
155
|
+
`]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
156
|
+
`),this.decorators.push(`}
|
|
157
|
+
`),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(i);if(this.isChild)return p;var u={compiler:this.compilerInfo(),main:p};this.decorators&&(u.main_d=this.decorators,u.useDecorators=!0);var h=this.context,d=h.programs,m=h.decorators;for(l=0,c=d.length;l<c;l++)u[l]=d[l],m[l]&&(u[l+"_d"]=m[l],u.useDecorators=!0);return this.environment.usePartial&&(u.usePartial=!0),this.options.data&&(u.useData=!0),this.useDepths&&(u.useDepths=!0),this.useBlockParams&&(u.useBlockParams=!0),this.options.compat&&(u.compat=!0),i?u.compilerOptions=this.options:(u.compiler=JSON.stringify(u.compiler),this.source.currentLocation={start:{line:1,column:0}},u=this.objectLiteral(u),r.srcName?(u=u.toStringWithSourceMap({file:r.destName}),u.map=u.map&&u.map.toString()):u=u.toString()),u},preamble:function(){this.lastContext=0,this.source=new LR.default(this.options.srcName),this.decorators=new LR.default(this.options.srcName)},createFunctionContext:function(t){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(l){var c=r.aliases[l];c.children&&c.referenceCount>1&&(n+=", alias"+ ++s+"="+l,c.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var o=this.mergeSource(n);return t?(a.push(o),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
|
158
|
+
`,o,"}"])},mergeSource:function(t){var r=this.environment.isSimple,n=!this.forceBuffer,i=void 0,s=void 0,a=void 0,o=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,o=l):(a&&(s?a.prepend("buffer += "):i=!0,o.add(";"),a=o=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),o.add(";")):s||this.source.push('return "";'):(t+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),o.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(i?"":`;
|
|
159
|
+
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
|
|
160
|
+
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
161
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
162
|
+
return parent[propertyName];
|
|
163
|
+
}
|
|
164
|
+
return undefined
|
|
165
|
+
}
|
|
166
|
+
`.trim()},blockValue:function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var i=this.popStack();n.splice(1,0,i),this.push(this.source.functionCall(r,"call",n))},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",r),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,r,n,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[s++])):this.pushContext(),this.resolvePath("context",t,s,r,n)},lookupBlockParam:function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(t,r,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},resolvePath:function(t,r,n,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(c0e(this.options.strict&&s,this,r,n,t));return}for(var o=r.length,l=function(p){a.replaceStack(function(u){var h=a.nameLookup(u,r[p],t);return i?[" && ",h]:[" != null ? ",h," : ",u]})},c=n;c<o;c++)l(c)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(t,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof t=="string"?this.pushString(t):this.pushStackLiteral(t))},emptyHash:function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},pushString:function(t){this.pushStackLiteral(this.quotedString(t))},pushLiteral:function(t){this.pushStackLiteral(t)},pushProgram:function(t){t!=null?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},registerDecorator:function(t,r){var n=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,t);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",i])," || fn;"])},invokeHelper:function(t,r,n){var i=this.popStack(),s=this.setupHelper(t,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var o=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(o,"call",s.callParams);this.push(l)},itemsSeparatedBy:function(t,r){var n=[];n.push(t[0]);for(var i=1;i<t.length;i++)n.push(r,t[i]);return n},invokeKnownHelper:function(t,r){var n=this.setupHelper(t,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},invokeAmbiguous:function(t,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var i=this.setupHelper(0,t,r),s=this.lastHelper=this.nameLookup("helpers",t,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},invokePartial:function(t,r,n){var i=[],s=this.setupParams(r,1,i);t&&(r=this.popStack(),delete s.name),n&&(s.indent=JSON.stringify(n)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),i.push(s),this.push(this.source.functionCall("container.invokePartial","",i))},assignToHash:function(t){var r=this.popStack(),n=void 0,i=void 0,s=void 0;this.trackIds&&(s=this.popStack()),this.stringParams&&(i=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[t]=n),i&&(a.types[t]=i),s&&(a.ids[t]=s),a.values[t]=r},pushId:function(t,r,n){t==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):t==="PathExpression"?this.pushString(r):t==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:Ao,compileChildren:function(t,r){for(var n=t.children,i=void 0,s=void 0,a=0,o=n.length;a<o;a++){i=n[a],s=new this.compiler;var l=this.matchExistingProgram(i);if(l==null){var c=this.context.programs.push("")-1;i.index=c,i.name="program"+c,this.context.programs[c]=s.compile(i,r,this.context,!this.precompile),this.context.decorators[c]=s.decorators,this.context.environments[c]=i,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,i.useDepths=this.useDepths,i.useBlockParams=this.useBlockParams}else i.index=l.index,i.name="program"+l.index,this.useDepths=this.useDepths||l.useDepths,this.useBlockParams=this.useBlockParams||l.useBlockParams}},matchExistingProgram:function(t){for(var r=0,n=this.context.environments.length;r<n;r++){var i=this.context.environments[r];if(i&&i.equals(t))return i}},programExpression:function(t){var r=this.environment.children[t],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},useRegister:function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},push:function(t){return t instanceof To||(t=this.source.wrap(t)),this.inlineStack.push(t),t},pushStackLiteral:function(t){this.push(new To(t))},pushSource:function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},replaceStack:function(t){var r=["("],n=void 0,i=void 0,s=void 0;if(!this.isInline())throw new gv.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof To)n=[a.value],r=["(",n],s=!0;else{i=!0;var o=this.incrStack();r=["((",this.push(o)," = ",a,")"],n=this.topStack()}var l=t.call(this,n);s||this.popStack(),i&&this.stackSlot--,this.push(r.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i instanceof To)this.compileStack.push(i);else{var s=this.incrStack();this.pushSource([s," = ",i,";"]),this.compileStack.push(s)}}},isInline:function(){return this.inlineStack.length},popStack:function(t){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof To)return n.value;if(!r){if(!this.stackSlot)throw new gv.default("Invalid stack pop");this.stackSlot--}return n},topStack:function(){var t=this.isInline()?this.inlineStack:this.compileStack,r=t[t.length-1];return r instanceof To?r.value:r},contextName:function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},quotedString:function(t){return this.source.quotedString(t)},objectLiteral:function(t){return this.source.objectLiteral(t)},aliasable:function(t){var r=this.aliases[t];return r?(r.referenceCount++,r):(r=this.aliases[t]=this.source.wrap(t),r.aliasable=!0,r.referenceCount=1,r)},setupHelper:function(t,r,n){var i=[],s=this.setupHelperArgs(r,t,i,n),a=this.nameLookup("helpers",r,"helper"),o=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:i,paramsInit:s,name:a,callParams:[o].concat(i)}},setupParams:function(t,r,n){var i={},s=[],a=[],o=[],l=!n,c=void 0;l&&(n=[]),i.name=this.quotedString(t),i.hash=this.popStack(),this.trackIds&&(i.hashIds=this.popStack()),this.stringParams&&(i.hashTypes=this.popStack(),i.hashContexts=this.popStack());var p=this.popStack(),u=this.popStack();(u||p)&&(i.fn=u||"container.noop",i.inverse=p||"container.noop");for(var h=r;h--;)c=this.popStack(),n[h]=c,this.trackIds&&(o[h]=this.popStack()),this.stringParams&&(a[h]=this.popStack(),s[h]=this.popStack());return l&&(i.args=this.source.generateArray(n)),this.trackIds&&(i.ids=this.source.generateArray(o)),this.stringParams&&(i.types=this.source.generateArray(a),i.contexts=this.source.generateArray(s)),this.options.data&&(i.data="data"),this.useBlockParams&&(i.blockParams="blockParams"),i},setupHelperArgs:function(t,r,n,i){var s=this.setupParams(t,r,n);return s.loc=JSON.stringify(this.source.currentLocation),s=this.objectLiteral(s),i?(this.useRegister("options"),n.push("options"),["options=",s]):n?(n.push(s),""):s}};(function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=Ao.RESERVED_WORDS={},r=0,n=e.length;r<n;r++)t[e[r]]=!0})();Ao.isValidJavaScriptVariableName=function(e){return!Ao.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};function c0e(e,t,r,n,i){var s=t.popStack(),a=r.length;e&&a--;for(var o=n;o<a;o++)s=t.nameLookup(s,r[o],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(r[a]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}kd.default=Ao;RR.exports=kd.default});var BR=_((Cd,jR)=>{"use strict";f();Cd.__esModule=!0;function Nc(e){return e&&e.__esModule?e:{default:e}}var u0e=z8(),p0e=Nc(u0e),f0e=Vy(),d0e=Nc(f0e),xv=eR(),bv=iR(),h0e=MR(),m0e=Nc(h0e),g0e=xd(),x0e=Nc(g0e),b0e=$y(),y0e=Nc(b0e),v0e=p0e.default.create;function qR(){var e=v0e();return e.compile=function(t,r){return bv.compile(t,r,e)},e.precompile=function(t,r){return bv.precompile(t,r,e)},e.AST=d0e.default,e.Compiler=bv.Compiler,e.JavaScriptCompiler=m0e.default,e.Parser=xv.parser,e.parse=xv.parse,e.parseWithoutProcessing=xv.parseWithoutProcessing,e}var Oo=qR();Oo.create=qR;y0e.default(Oo);Oo.Visitor=x0e.default;Oo.default=Oo;Cd.default=Oo;jR.exports=Cd.default});var $R=_(Td=>{"use strict";f();Td.__esModule=!0;Td.print=D0e;Td.PrintVisitor=Ft;function _0e(e){return e&&e.__esModule?e:{default:e}}var w0e=xd(),E0e=_0e(w0e);function D0e(e){return new Ft().accept(e)}function Ft(){this.padding=0}Ft.prototype=new E0e.default;Ft.prototype.pad=function(e){for(var t="",r=0,n=this.padding;r<n;r++)t+=" ";return t+=e+`
|
|
167
|
+
`,t};Ft.prototype.Program=function(e){var t="",r=e.body,n=void 0,i=void 0;if(e.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=e.blockParams.length;n<i;n++)s+=" "+e.blockParams[n];s+=" ]",t+=this.pad(s)}for(n=0,i=r.length;n<i;n++)t+=this.accept(r[n]);return this.padding--,t};Ft.prototype.MustacheStatement=function(e){return this.pad("{{ "+this.SubExpression(e)+" }}")};Ft.prototype.Decorator=function(e){return this.pad("{{ DIRECTIVE "+this.SubExpression(e)+" }}")};Ft.prototype.BlockStatement=Ft.prototype.DecoratorBlock=function(e){var t="";return t+=this.pad((e.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,t+=this.pad(this.SubExpression(e)),e.program&&(t+=this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--),e.inverse&&(e.program&&this.padding++,t+=this.pad("{{^}}"),this.padding++,t+=this.accept(e.inverse),this.padding--,e.program&&this.padding--),this.padding--,t};Ft.prototype.PartialStatement=function(e){var t="PARTIAL:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),this.pad("{{> "+t+" }}")};Ft.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};Ft.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Ft.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Ft.prototype.SubExpression=function(e){for(var t=e.params,r=[],n=void 0,i=0,s=t.length;i<s;i++)r.push(this.accept(t[i]));return t="["+r.join(", ")+"]",n=e.hash?" "+this.accept(e.hash):"",this.accept(e.path)+" "+t+n};Ft.prototype.PathExpression=function(e){var t=e.parts.join("/");return(e.data?"@":"")+"PATH:"+t};Ft.prototype.StringLiteral=function(e){return'"'+e.value+'"'};Ft.prototype.NumberLiteral=function(e){return"NUMBER{"+e.value+"}"};Ft.prototype.BooleanLiteral=function(e){return"BOOLEAN{"+e.value+"}"};Ft.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Ft.prototype.NullLiteral=function(){return"NULL"};Ft.prototype.Hash=function(e){for(var t=e.pairs,r=[],n=0,i=t.length;n<i;n++)r.push(this.accept(t[n]));return"HASH{"+r.join(", ")+"}"};Ft.prototype.HashPair=function(e){return e.key+"="+this.accept(e.value)}});var VR=_((eze,UR)=>{f();var Ad=BR().default,HR=$R();Ad.PrintVisitor=HR.PrintVisitor;Ad.print=HR.print;UR.exports=Ad;function zR(e,t){var r=X("fs"),n=r.readFileSync(t,"utf8");e.exports=Ad.compile(n)}typeof X<"u"&&X.extensions&&(X.extensions[".handlebars"]=zR,X.extensions[".hbs"]=zR)});var Fo=_((xze,lM)=>{"use strict";f();lM.exports=da;da.CAPTURING_PHASE=1;da.AT_TARGET=2;da.BUBBLING_PHASE=3;function da(e,t){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=da.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,e&&(this.type=e),t)for(var r in t)this[r]=t[r]}da.prototype=Object.create(Object.prototype,{constructor:{value:da},stopPropagation:{value:function(){this._propagationStopped=!0}},stopImmediatePropagation:{value:function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0}},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0)}},initEvent:{value:function(t,r,n){this._initialized=!0,!this._dispatching&&(this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=t,this.bubbles=r,this.cancelable=n)}}})});var Fv=_((yze,uM)=>{"use strict";f();var cM=Fo();uM.exports=Nv;function Nv(){cM.call(this),this.view=null,this.detail=0}Nv.prototype=Object.create(cM.prototype,{constructor:{value:Nv},initUIEvent:{value:function(e,t,r,n,i){this.initEvent(e,t,r),this.view=n,this.detail=i}}})});var Lv=_((_ze,fM)=>{"use strict";f();var pM=Fv();fM.exports=Iv;function Iv(){pM.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}Iv.prototype=Object.create(pM.prototype,{constructor:{value:Iv},initMouseEvent:{value:function(e,t,r,n,i,s,a,o,l,c,p,u,h,d,m){switch(this.initEvent(e,t,r,n,i),this.screenX=s,this.screenY=a,this.clientX=o,this.clientY=l,this.ctrlKey=c,this.altKey=p,this.shiftKey=u,this.metaKey=h,this.button=d,d){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0;break}this.relatedTarget=m}},getModifierState:{value:function(e){switch(e){case"Alt":return this.altKey;case"Control":return this.ctrlKey;case"Shift":return this.shiftKey;case"Meta":return this.metaKey;default:return!1}}}})});var qd=_((Eze,hM)=>{"use strict";f();hM.exports=Md;var fge=1,dge=3,hge=4,mge=5,gge=7,xge=8,bge=9,yge=11,vge=12,_ge=13,wge=14,Ege=15,Dge=17,Sge=18,kge=19,Cge=20,Tge=21,Age=22,Oge=23,Nge=24,Fge=25,Ige=[null,"INDEX_SIZE_ERR",null,"HIERARCHY_REQUEST_ERR","WRONG_DOCUMENT_ERR","INVALID_CHARACTER_ERR",null,"NO_MODIFICATION_ALLOWED_ERR","NOT_FOUND_ERR","NOT_SUPPORTED_ERR","INUSE_ATTRIBUTE_ERR","INVALID_STATE_ERR","SYNTAX_ERR","INVALID_MODIFICATION_ERR","NAMESPACE_ERR","INVALID_ACCESS_ERR",null,"TYPE_MISMATCH_ERR","SECURITY_ERR","NETWORK_ERR","ABORT_ERR","URL_MISMATCH_ERR","QUOTA_EXCEEDED_ERR","TIMEOUT_ERR","INVALID_NODE_TYPE_ERR","DATA_CLONE_ERR"],Lge=[null,"INDEX_SIZE_ERR (1): the index is not in the allowed range",null,"HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model","WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required","INVALID_CHARACTER_ERR (5): the string contains invalid characters",null,"NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified","NOT_FOUND_ERR (8): the object can not be found here","NOT_SUPPORTED_ERR (9): this operation is not supported","INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute","INVALID_STATE_ERR (11): the object is in an invalid state","SYNTAX_ERR (12): the string did not match the expected pattern","INVALID_MODIFICATION_ERR (13): the object can not be modified in this way","NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML","INVALID_ACCESS_ERR (15): the object does not support the operation or argument",null,"TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type","SECURITY_ERR (18): the operation is insecure","NETWORK_ERR (19): a network error occurred","ABORT_ERR (20): the user aborted an operation","URL_MISMATCH_ERR (21): the given URL does not match another URL","QUOTA_EXCEEDED_ERR (22): the quota has been exceeded","TIMEOUT_ERR (23): a timeout occurred","INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation","DATA_CLONE_ERR (25): the object can not be cloned."],dM={INDEX_SIZE_ERR:fge,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:dge,WRONG_DOCUMENT_ERR:hge,INVALID_CHARACTER_ERR:mge,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:gge,NOT_FOUND_ERR:xge,NOT_SUPPORTED_ERR:bge,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:yge,SYNTAX_ERR:vge,INVALID_MODIFICATION_ERR:_ge,NAMESPACE_ERR:wge,INVALID_ACCESS_ERR:Ege,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:Dge,SECURITY_ERR:Sge,NETWORK_ERR:kge,ABORT_ERR:Cge,URL_MISMATCH_ERR:Tge,QUOTA_EXCEEDED_ERR:Age,TIMEOUT_ERR:Oge,INVALID_NODE_TYPE_ERR:Nge,DATA_CLONE_ERR:Fge};function Md(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=e,this.message=Lge[e],this.name=Ige[e]}Md.prototype.__proto__=Error.prototype;for(Rd in dM)Pv={value:dM[Rd]},Object.defineProperty(Md,Rd,Pv),Object.defineProperty(Md.prototype,Rd,Pv);var Pv,Rd});var jd=_(mM=>{f();mM.isApiWritable=!globalThis.__domino_frozen__});var Lt=_(rt=>{"use strict";f();var It=qd(),$t=It,Pge=jd().isApiWritable;rt.NAMESPACE={HTML:"http://www.w3.org/1999/xhtml",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink"};rt.IndexSizeError=function(){throw new It($t.INDEX_SIZE_ERR)};rt.HierarchyRequestError=function(){throw new It($t.HIERARCHY_REQUEST_ERR)};rt.WrongDocumentError=function(){throw new It($t.WRONG_DOCUMENT_ERR)};rt.InvalidCharacterError=function(){throw new It($t.INVALID_CHARACTER_ERR)};rt.NoModificationAllowedError=function(){throw new It($t.NO_MODIFICATION_ALLOWED_ERR)};rt.NotFoundError=function(){throw new It($t.NOT_FOUND_ERR)};rt.NotSupportedError=function(){throw new It($t.NOT_SUPPORTED_ERR)};rt.InvalidStateError=function(){throw new It($t.INVALID_STATE_ERR)};rt.SyntaxError=function(){throw new It($t.SYNTAX_ERR)};rt.InvalidModificationError=function(){throw new It($t.INVALID_MODIFICATION_ERR)};rt.NamespaceError=function(){throw new It($t.NAMESPACE_ERR)};rt.InvalidAccessError=function(){throw new It($t.INVALID_ACCESS_ERR)};rt.TypeMismatchError=function(){throw new It($t.TYPE_MISMATCH_ERR)};rt.SecurityError=function(){throw new It($t.SECURITY_ERR)};rt.NetworkError=function(){throw new It($t.NETWORK_ERR)};rt.AbortError=function(){throw new It($t.ABORT_ERR)};rt.UrlMismatchError=function(){throw new It($t.URL_MISMATCH_ERR)};rt.QuotaExceededError=function(){throw new It($t.QUOTA_EXCEEDED_ERR)};rt.TimeoutError=function(){throw new It($t.TIMEOUT_ERR)};rt.InvalidNodeTypeError=function(){throw new It($t.INVALID_NODE_TYPE_ERR)};rt.DataCloneError=function(){throw new It($t.DATA_CLONE_ERR)};rt.nyi=function(){throw new Error("NotYetImplemented")};rt.shouldOverride=function(){throw new Error("Abstract function; should be overriding in subclass.")};rt.assert=function(e,t){if(!e)throw new Error("Assertion failed: "+(t||"")+`
|
|
168
|
+
`+new Error().stack)};rt.expose=function(e,t){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],writable:Pge})};rt.merge=function(e,t){for(var r in t)e[r]=t[r]};rt.documentOrder=function(e,t){return 3-(e.compareDocumentPosition(t)&6)};rt.toASCIILowerCase=function(e){return e.replace(/[A-Z]+/g,function(t){return t.toLowerCase()})};rt.toASCIIUpperCase=function(e){return e.replace(/[a-z]+/g,function(t){return t.toUpperCase()})}});var Rv=_((Aze,xM)=>{"use strict";f();var ha=Fo(),Rge=Lv(),Mge=Lt();xM.exports=gM;function gM(){}gM.prototype={addEventListener:function(t,r,n){if(r){n===void 0&&(n=!1),this._listeners||(this._listeners=Object.create(null)),this._listeners[t]||(this._listeners[t]=[]);for(var i=this._listeners[t],s=0,a=i.length;s<a;s++){var o=i[s];if(o.listener===r&&o.capture===n)return}var l={listener:r,capture:n};typeof r=="function"&&(l.f=r),i.push(l)}},removeEventListener:function(t,r,n){if(n===void 0&&(n=!1),this._listeners){var i=this._listeners[t];if(i)for(var s=0,a=i.length;s<a;s++){var o=i[s];if(o.listener===r&&o.capture===n){i.length===1?this._listeners[t]=void 0:i.splice(s,1);return}}}},dispatchEvent:function(t){return this._dispatchEvent(t,!1)},_dispatchEvent:function(t,r){typeof r!="boolean"&&(r=!1);function n(c,p){var u=p.type,h=p.eventPhase;if(p.currentTarget=c,h!==ha.CAPTURING_PHASE&&c._handlers&&c._handlers[u]){var d=c._handlers[u],m;if(typeof d=="function")m=d.call(p.currentTarget,p);else{var b=d.handleEvent;if(typeof b!="function")throw new TypeError("handleEvent property of event handler object isnot a function.");m=b.call(d,p)}p.type==="mouseover"?m===!0&&p.preventDefault():m===!1&&p.preventDefault()}var v=c._listeners&&c._listeners[u];if(v){v=v.slice();for(var w=0,T=v.length;w<T;w++){if(p._immediatePropagationStopped)return;var S=v[w];if(!(h===ha.CAPTURING_PHASE&&!S.capture||h===ha.BUBBLING_PHASE&&S.capture))if(S.f)S.f.call(p.currentTarget,p);else{var O=S.listener.handleEvent;if(typeof O!="function")throw new TypeError("handleEvent property of event listener object is not a function.");O.call(S.listener,p)}}}}(!t._initialized||t._dispatching)&&Mge.InvalidStateError(),t.isTrusted=r,t._dispatching=!0,t.target=this;for(var i=[],s=this.parentNode;s;s=s.parentNode)i.push(s);t.eventPhase=ha.CAPTURING_PHASE;for(var a=i.length-1;a>=0&&(n(i[a],t),!t._propagationStopped);a--);if(t._propagationStopped||(t.eventPhase=ha.AT_TARGET,n(this,t)),t.bubbles&&!t._propagationStopped){t.eventPhase=ha.BUBBLING_PHASE;for(var o=0,l=i.length;o<l&&(n(i[o],t),!t._propagationStopped);o++);}if(t._dispatching=!1,t.eventPhase=ha.AT_TARGET,t.currentTarget=null,r&&!t.defaultPrevented&&t instanceof Rge)switch(t.type){case"mousedown":this._armed={x:t.clientX,y:t.clientY,t:t.timeStamp};break;case"mouseout":case"mouseover":this._armed=null;break;case"mouseup":this._isClick(t)&&this._doClick(t),this._armed=null;break}return!t.defaultPrevented},_isClick:function(e){return this._armed!==null&&e.type==="mouseup"&&e.isTrusted&&e.button===0&&e.timeStamp-this._armed.t<1e3&&Math.abs(e.clientX-this._armed.x)<10&&Math.abs(e.clientY-this._armed.Y)<10},_doClick:function(e){if(!this._click_in_progress){this._click_in_progress=!0;for(var t=this;t&&!t._post_click_activation_steps;)t=t.parentNode;t&&t._pre_click_activation_steps&&t._pre_click_activation_steps();var r=this.ownerDocument.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,null);var n=this._dispatchEvent(r,!0);t&&(n?t._post_click_activation_steps&&t._post_click_activation_steps(r):t._cancelled_activation_steps&&t._cancelled_activation_steps())}},_setEventHandler:function(t,r){this._handlers||(this._handlers=Object.create(null)),this._handlers[t]=r},_getEventHandler:function(t){return this._handlers&&this._handlers[t]||null}}});var Mv=_((Nze,bM)=>{"use strict";f();var Ei=Lt(),un=bM.exports={valid:function(e){return Ei.assert(e,"list falsy"),Ei.assert(e._previousSibling,"previous falsy"),Ei.assert(e._nextSibling,"next falsy"),!0},insertBefore:function(e,t){Ei.assert(un.valid(e)&&un.valid(t));var r=e,n=e._previousSibling,i=t,s=t._previousSibling;r._previousSibling=s,n._nextSibling=i,s._nextSibling=r,i._previousSibling=n,Ei.assert(un.valid(e)&&un.valid(t))},replace:function(e,t){Ei.assert(un.valid(e)&&(t===null||un.valid(t))),t!==null&&un.insertBefore(t,e),un.remove(e),Ei.assert(un.valid(e)&&(t===null||un.valid(t)))},remove:function(e){Ei.assert(un.valid(e));var t=e._previousSibling;if(t!==e){var r=e._nextSibling;t._nextSibling=r,r._previousSibling=t,e._previousSibling=e._nextSibling=e,Ei.assert(un.valid(e))}}}});var qv=_((Ize,kM)=>{"use strict";f();kM.exports={serializeOne:Uge,\u0275escapeMatchingClosingTag:EM,\u0275escapeClosingCommentTag:DM,\u0275escapeProcessingInstructionContent:SM};var wM=Lt(),ma=wM.NAMESPACE,yM={STYLE:!0,SCRIPT:!0,XMP:!0,IFRAME:!0,NOEMBED:!0,NOFRAMES:!0,PLAINTEXT:!0},qge={area:!0,base:!0,basefont:!0,bgsound:!0,br:!0,col:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},jge={},vM=/[&<>\u00A0]/g,_M=/[&"<>\u00A0]/g;function Bge(e){return vM.test(e)?e.replace(vM,t=>{switch(t){case"&":return"&";case"<":return"<";case">":return">";case"\xA0":return" "}}):e}function $ge(e){return _M.test(e)?e.replace(_M,t=>{switch(t){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"\xA0":return" "}}):e}function zge(e){var t=e.namespaceURI;return t?t===ma.XML?"xml:"+e.localName:t===ma.XLINK?"xlink:"+e.localName:t===ma.XMLNS?e.localName==="xmlns"?"xmlns":"xmlns:"+e.localName:e.name:e.localName}function EM(e,t){let r="</"+t;if(!e.toLowerCase().includes(r))return e;let n=[...e],i=e.matchAll(new RegExp(r,"ig"));for(let s of i)n[s.index]="<";return n.join("")}var Hge=/--!?>/;function DM(e){return Hge.test(e)?e.replace(/(--\!?)>/g,"$1>"):e}function SM(e){return e.includes(">")?e.replaceAll(">",">"):e}function Uge(e,t){var r="";switch(e.nodeType){case 1:var n=e.namespaceURI,i=n===ma.HTML,s=i||n===ma.SVG||n===ma.MATHML?e.localName:e.tagName;r+="<"+s;for(var a=0,o=e._numattrs;a<o;a++){var l=e._attr(a);r+=" "+zge(l),l.value!==void 0&&(r+='="'+$ge(l.value)+'"')}if(r+=">",!(i&&qge[s])){var c=e.serialize();yM[s.toUpperCase()]&&(c=EM(c,s)),i&&jge[s]&&c.charAt(0)===`
|
|
169
|
+
`&&(r+=`
|
|
170
|
+
`),r+=c,r+="</"+s+">"}break;case 3:case 4:var p;t.nodeType===1&&t.namespaceURI===ma.HTML?p=t.tagName:p="",yM[p]||p==="NOSCRIPT"&&t.ownerDocument._scripting_enabled?r+=e.data:r+=Bge(e.data);break;case 8:r+="<!--"+DM(e.data)+"-->";break;case 7:let u=SM(e.data);r+="<?"+e.target+" "+u+"?>";break;case 10:r+="<!DOCTYPE "+e.name,r+=">";break;default:wM.InvalidStateError()}return r}});var ar=_((Pze,FM)=>{"use strict";f();FM.exports=Dt;var NM=Rv(),Bd=Mv(),CM=qv(),nt=Lt();function Dt(){NM.call(this),this.parentNode=null,this._nextSibling=this._previousSibling=this,this._index=void 0}var Mr=Dt.ELEMENT_NODE=1,jv=Dt.ATTRIBUTE_NODE=2,$d=Dt.TEXT_NODE=3,Vge=Dt.CDATA_SECTION_NODE=4,Gge=Dt.ENTITY_REFERENCE_NODE=5,Bv=Dt.ENTITY_NODE=6,TM=Dt.PROCESSING_INSTRUCTION_NODE=7,AM=Dt.COMMENT_NODE=8,Rc=Dt.DOCUMENT_NODE=9,pn=Dt.DOCUMENT_TYPE_NODE=10,is=Dt.DOCUMENT_FRAGMENT_NODE=11,$v=Dt.NOTATION_NODE=12,zv=Dt.DOCUMENT_POSITION_DISCONNECTED=1,Hv=Dt.DOCUMENT_POSITION_PRECEDING=2,Uv=Dt.DOCUMENT_POSITION_FOLLOWING=4,OM=Dt.DOCUMENT_POSITION_CONTAINS=8,Vv=Dt.DOCUMENT_POSITION_CONTAINED_BY=16,Gv=Dt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;Dt.prototype=Object.create(NM.prototype,{baseURI:{get:nt.nyi},parentElement:{get:function(){return this.parentNode&&this.parentNode.nodeType===Mr?this.parentNode:null}},hasChildNodes:{value:nt.shouldOverride},firstChild:{get:nt.shouldOverride},lastChild:{get:nt.shouldOverride},isConnected:{get:function(){let e=this;for(;e!=null;){if(e.nodeType===Dt.DOCUMENT_NODE)return!0;e=e.parentNode,e!=null&&e.nodeType===Dt.DOCUMENT_FRAGMENT_NODE&&(e=e.host)}return!1}},previousSibling:{get:function(){var e=this.parentNode;return!e||this===e.firstChild?null:this._previousSibling}},nextSibling:{get:function(){var e=this.parentNode,t=this._nextSibling;return!e||t===e.firstChild?null:t}},textContent:{get:function(){return null},set:function(e){}},innerText:{get:function(){return null},set:function(e){}},_countChildrenOfType:{value:function(e){for(var t=0,r=this.firstChild;r!==null;r=r.nextSibling)r.nodeType===e&&t++;return t}},_ensureInsertValid:{value:function(t,r,n){var i=this,s,a;if(!t.nodeType)throw new TypeError("not a node");switch(i.nodeType){case Rc:case is:case Mr:break;default:nt.HierarchyRequestError()}switch(t.isAncestor(i)&&nt.HierarchyRequestError(),(r!==null||!n)&&r.parentNode!==i&&nt.NotFoundError(),t.nodeType){case is:case pn:case Mr:case $d:case TM:case AM:break;default:nt.HierarchyRequestError()}if(i.nodeType===Rc)switch(t.nodeType){case $d:nt.HierarchyRequestError();break;case is:switch(t._countChildrenOfType($d)>0&&nt.HierarchyRequestError(),t._countChildrenOfType(Mr)){case 0:break;case 1:if(r!==null)for(n&&r.nodeType===pn&&nt.HierarchyRequestError(),a=r.nextSibling;a!==null;a=a.nextSibling)a.nodeType===pn&&nt.HierarchyRequestError();s=i._countChildrenOfType(Mr),n?s>0&&nt.HierarchyRequestError():(s>1||s===1&&r.nodeType!==Mr)&&nt.HierarchyRequestError();break;default:nt.HierarchyRequestError()}break;case Mr:if(r!==null)for(n&&r.nodeType===pn&&nt.HierarchyRequestError(),a=r.nextSibling;a!==null;a=a.nextSibling)a.nodeType===pn&&nt.HierarchyRequestError();s=i._countChildrenOfType(Mr),n?s>0&&nt.HierarchyRequestError():(s>1||s===1&&r.nodeType!==Mr)&&nt.HierarchyRequestError();break;case pn:if(r===null)i._countChildrenOfType(Mr)&&nt.HierarchyRequestError();else for(a=i.firstChild;a!==null&&a!==r;a=a.nextSibling)a.nodeType===Mr&&nt.HierarchyRequestError();s=i._countChildrenOfType(pn),n?s>0&&nt.HierarchyRequestError():(s>1||s===1&&r.nodeType!==pn)&&nt.HierarchyRequestError();break}else t.nodeType===pn&&nt.HierarchyRequestError()}},insertBefore:{value:function(t,r){var n=this;n._ensureInsertValid(t,r,!0);var i=r;return i===t&&(i=t.nextSibling),n.doc.adoptNode(t),t._insertOrReplace(n,i,!1),t}},appendChild:{value:function(e){return this.insertBefore(e,null)}},_appendChild:{value:function(e){e._insertOrReplace(this,null,!1)}},removeChild:{value:function(t){var r=this;if(!t.nodeType)throw new TypeError("not a node");return t.parentNode!==r&&nt.NotFoundError(),t.remove(),t}},replaceChild:{value:function(t,r){var n=this;return n._ensureInsertValid(t,r,!1),t.doc!==n.doc&&n.doc.adoptNode(t),t._insertOrReplace(n,r,!0),r}},contains:{value:function(t){return t===null?!1:this===t?!0:(this.compareDocumentPosition(t)&Vv)!==0}},compareDocumentPosition:{value:function(t){if(this===t)return 0;if(this.doc!==t.doc||this.rooted!==t.rooted)return zv+Gv;for(var r=[],n=[],i=this;i!==null;i=i.parentNode)r.push(i);for(i=t;i!==null;i=i.parentNode)n.push(i);if(r.reverse(),n.reverse(),r[0]!==n[0])return zv+Gv;i=Math.min(r.length,n.length);for(var s=1;s<i;s++)if(r[s]!==n[s])return r[s].index<n[s].index?Uv:Hv;return r.length<n.length?Uv+Vv:Hv+OM}},isSameNode:{value:function(t){return this===t}},isEqualNode:{value:function(t){if(!t||t.nodeType!==this.nodeType||!this.isEqual(t))return!1;for(var r=this.firstChild,n=t.firstChild;r&&n;r=r.nextSibling,n=n.nextSibling)if(!r.isEqualNode(n))return!1;return r===null&&n===null}},cloneNode:{value:function(e){var t=this.clone();if(e)for(var r=this.firstChild;r!==null;r=r.nextSibling)t._appendChild(r.cloneNode(!0));return t}},lookupPrefix:{value:function(t){var r;if(t===""||t===null||t===void 0)return null;switch(this.nodeType){case Mr:return this._lookupNamespacePrefix(t,this);case Rc:return r=this.documentElement,r?r.lookupPrefix(t):null;case Bv:case $v:case is:case pn:return null;case jv:return r=this.ownerElement,r?r.lookupPrefix(t):null;default:return r=this.parentElement,r?r.lookupPrefix(t):null}}},lookupNamespaceURI:{value:function(t){(t===""||t===void 0)&&(t=null);var r;switch(this.nodeType){case Mr:return nt.shouldOverride();case Rc:return r=this.documentElement,r?r.lookupNamespaceURI(t):null;case Bv:case $v:case pn:case is:return null;case jv:return r=this.ownerElement,r?r.lookupNamespaceURI(t):null;default:return r=this.parentElement,r?r.lookupNamespaceURI(t):null}}},isDefaultNamespace:{value:function(t){(t===""||t===void 0)&&(t=null);var r=this.lookupNamespaceURI(null);return r===t}},index:{get:function(){var e=this.parentNode;if(this===e.firstChild)return 0;var t=e.childNodes;if(this._index===void 0||t[this._index]!==this){for(var r=0;r<t.length;r++)t[r]._index=r;nt.assert(t[this._index]===this)}return this._index}},isAncestor:{value:function(e){if(this.doc!==e.doc||this.rooted!==e.rooted)return!1;for(var t=e;t;t=t.parentNode)if(t===this)return!0;return!1}},ensureSameDoc:{value:function(e){e.ownerDocument===null?e.ownerDocument=this.doc:e.ownerDocument!==this.doc&&nt.WrongDocumentError()}},removeChildren:{value:nt.shouldOverride},_insertOrReplace:{value:function(t,r,n){var i=this,s,a;if(i.nodeType===is&&i.rooted&&nt.HierarchyRequestError(),t._childNodes&&(s=r===null?t._childNodes.length:r.index,i.parentNode===t)){var o=i.index;o<s&&s--}n&&(r.rooted&&r.doc.mutateRemove(r),r.parentNode=null);var l=r;l===null&&(l=t.firstChild);var c=i.rooted&&t.rooted;if(i.nodeType===is){for(var p=[0,n?1:0],u,h=i.firstChild;h!==null;h=u)u=h.nextSibling,p.push(h),h.parentNode=t;var d=p.length;if(n?Bd.replace(l,d>2?p[2]:null):d>2&&l!==null&&Bd.insertBefore(p[2],l),t._childNodes)for(p[0]=r===null?t._childNodes.length:r._index,t._childNodes.splice.apply(t._childNodes,p),a=2;a<d;a++)p[a]._index=p[0]+(a-2);else t._firstChild===r&&(d>2?t._firstChild=p[2]:n&&(t._firstChild=null));if(i._childNodes?i._childNodes.length=0:i._firstChild=null,t.rooted)for(t.modify(),a=2;a<d;a++)t.doc.mutateInsert(p[a])}else{if(r===i)return;c?i._remove():i.parentNode&&i.remove(),i.parentNode=t,n?(Bd.replace(l,i),t._childNodes?(i._index=s,t._childNodes[s]=i):t._firstChild===r&&(t._firstChild=i)):(l!==null&&Bd.insertBefore(i,l),t._childNodes?(i._index=s,t._childNodes.splice(s,0,i)):t._firstChild===r&&(t._firstChild=i)),c?(t.modify(),t.doc.mutateMove(i)):t.rooted&&(t.modify(),t.doc.mutateInsert(i))}}},lastModTime:{get:function(){return this._lastModTime||(this._lastModTime=this.doc.modclock),this._lastModTime}},modify:{value:function(){if(this.doc.modclock)for(var e=++this.doc.modclock,t=this;t;t=t.parentElement)t._lastModTime&&(t._lastModTime=e)}},doc:{get:function(){return this.ownerDocument||this}},rooted:{get:function(){return!!this._nid}},normalize:{value:function(){for(var e,t=this.firstChild;t!==null;t=e)if(e=t.nextSibling,t.normalize&&t.normalize(),t.nodeType===Dt.TEXT_NODE){if(t.nodeValue===""){this.removeChild(t);continue}var r=t.previousSibling;r!==null&&r.nodeType===Dt.TEXT_NODE&&(r.appendData(t.nodeValue),this.removeChild(t))}}},serialize:{value:function(){if(this._innerHTML)return this._innerHTML;for(var e="",t=this.firstChild;t!==null;t=t.nextSibling)e+=CM.serializeOne(t,this);return e}},outerHTML:{get:function(){return CM.serializeOne(this,{nodeType:0})},set:nt.nyi},ELEMENT_NODE:{value:Mr},ATTRIBUTE_NODE:{value:jv},TEXT_NODE:{value:$d},CDATA_SECTION_NODE:{value:Vge},ENTITY_REFERENCE_NODE:{value:Gge},ENTITY_NODE:{value:Bv},PROCESSING_INSTRUCTION_NODE:{value:TM},COMMENT_NODE:{value:AM},DOCUMENT_NODE:{value:Rc},DOCUMENT_TYPE_NODE:{value:pn},DOCUMENT_FRAGMENT_NODE:{value:is},NOTATION_NODE:{value:$v},DOCUMENT_POSITION_DISCONNECTED:{value:zv},DOCUMENT_POSITION_PRECEDING:{value:Hv},DOCUMENT_POSITION_FOLLOWING:{value:Uv},DOCUMENT_POSITION_CONTAINS:{value:OM},DOCUMENT_POSITION_CONTAINED_BY:{value:Vv},DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:{value:Gv}})});var LM=_((qze,IM)=>{"use strict";f();IM.exports=class extends Array{constructor(t){if(super(t&&t.length||0),t)for(var r in t)this[r]=t[r]}item(t){return this[t]||null}}});var RM=_((Bze,PM)=>{"use strict";f();function Wge(e){return this[e]||null}function Kge(e){return e||(e=[]),e.item=Wge,e}PM.exports=Kge});var ga=_((zze,MM)=>{"use strict";f();var Wv;try{Wv=LM()}catch{Wv=RM()}MM.exports=Wv});var zd=_((Uze,BM)=>{"use strict";f();BM.exports=jM;var qM=ar(),Zge=ga();function jM(){qM.call(this),this._firstChild=this._childNodes=null}jM.prototype=Object.create(qM.prototype,{hasChildNodes:{value:function(){return this._childNodes?this._childNodes.length>0:this._firstChild!==null}},childNodes:{get:function(){return this._ensureChildNodes(),this._childNodes}},firstChild:{get:function(){return this._childNodes?this._childNodes.length===0?null:this._childNodes[0]:this._firstChild}},lastChild:{get:function(){var e=this._childNodes,t;return e?e.length===0?null:e[e.length-1]:(t=this._firstChild,t===null?null:t._previousSibling)}},_ensureChildNodes:{value:function(){if(!this._childNodes){var e=this._firstChild,t=e,r=this._childNodes=new Zge;if(e)do r.push(t),t=t._nextSibling;while(t!==e);this._firstChild=null}}},removeChildren:{value:function(){for(var t=this.rooted?this.ownerDocument:null,r=this.firstChild,n;r!==null;)n=r,r=n.nextSibling,t&&t.mutateRemove(n),n.parentNode=null;this._childNodes?this._childNodes.length=0:this._firstChild=null,this.modify()}}})});var Hd=_(Jv=>{"use strict";f();Jv.isValidName=rxe;Jv.isValidQName=nxe;var Jge=/^[_:A-Za-z][-.:\w]+$/,Qge=/^([_A-Za-z][-.\w]+|[_A-Za-z][-.\w]+:[_A-Za-z][-.\w]+)$/,Mc="_A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",qc="-._A-Za-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0300-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",xa="["+Mc+"]["+qc+"]*",Kv=Mc+":",Zv=qc+":",Yge=new RegExp("^["+Kv+"]["+Zv+"]*$"),Xge=new RegExp("^("+xa+"|"+xa+":"+xa+")$"),$M=/[\uD800-\uDB7F\uDC00-\uDFFF]/,zM=/[\uD800-\uDB7F\uDC00-\uDFFF]/g,HM=/[\uD800-\uDB7F][\uDC00-\uDFFF]/g;Mc+="\uD800-\u{EFC00}-\uDFFF";qc+="\uD800-\u{EFC00}-\uDFFF";xa="["+Mc+"]["+qc+"]*";Kv=Mc+":";Zv=qc+":";var exe=new RegExp("^["+Kv+"]["+Zv+"]*$"),txe=new RegExp("^("+xa+"|"+xa+":"+xa+")$");function rxe(e){if(Jge.test(e)||Yge.test(e))return!0;if(!$M.test(e)||!exe.test(e))return!1;var t=e.match(zM),r=e.match(HM);return r!==null&&2*r.length===t.length}function nxe(e){if(Qge.test(e)||Xge.test(e))return!0;if(!$M.test(e)||!txe.test(e))return!1;var t=e.match(zM),r=e.match(HM);return r!==null&&2*r.length===t.length}});var Yv=_(Qv=>{"use strict";f();var UM=Lt();Qv.property=function(e){if(Array.isArray(e.type)){var t=Object.create(null);e.type.forEach(function(i){t[i.value||i]=i.alias||i});var r=e.missing;r===void 0&&(r=null);var n=e.invalid;return n===void 0&&(n=r),{get:function(){var i=this._getattr(e.name);return i===null?r:(i=t[i.toLowerCase()],i!==void 0?i:n!==null?n:i)},set:function(i){this._setattr(e.name,i)}}}else{if(e.type===Boolean)return{get:function(){return this.hasAttribute(e.name)},set:function(i){i?this._setattr(e.name,""):this.removeAttribute(e.name)}};if(e.type===Number||e.type==="long"||e.type==="unsigned long"||e.type==="limited unsigned long with fallback")return ixe(e);if(!e.type||e.type===String)return{get:function(){return this._getattr(e.name)||""},set:function(i){e.treatNullAsEmptyString&&i===null&&(i=""),this._setattr(e.name,i)}};if(typeof e.type=="function")return e.type(e.name,e)}throw new Error("Invalid attribute definition")};function ixe(e){var t;typeof e.default=="function"?t=e.default:typeof e.default=="number"?t=function(){return e.default}:t=function(){UM.assert(!1,typeof e.default)};var r=e.type==="unsigned long",n=e.type==="long",i=e.type==="limited unsigned long with fallback",s=e.min,a=e.max,o=e.setmin;return s===void 0&&(r&&(s=0),n&&(s=-2147483648),i&&(s=1)),a===void 0&&(r||n||i)&&(a=2147483647),{get:function(){var l=this._getattr(e.name),c=e.float?parseFloat(l):parseInt(l,10);if(l===null||!isFinite(c)||s!==void 0&&c<s||a!==void 0&&c>a)return t.call(this);if(r||n||i){if(!/^[ \t\n\f\r]*[-+]?[0-9]/.test(l))return t.call(this);c=c|0}return c},set:function(l){e.float||(l=Math.floor(l)),o!==void 0&&l<o&&UM.IndexSizeError(e.name+" set to "+l),r?l=l<0||l>2147483647?t.call(this):l|0:i?l=l<1||l>2147483647?t.call(this):l|0:n&&(l=l<-2147483648||l>2147483647?t.call(this):l|0),this._setattr(e.name,String(l))}}}Qv.registerChangeHandler=function(e,t,r){var n=e.prototype;Object.prototype.hasOwnProperty.call(n,"_attributeChangeHandlers")||(n._attributeChangeHandlers=Object.create(n._attributeChangeHandlers||null)),n._attributeChangeHandlers[t]=r}});var WM=_((Jze,GM)=>{"use strict";f();GM.exports=VM;var sxe=ar();function VM(e,t){this.root=e,this.filter=t,this.lastModTime=e.lastModTime,this.done=!1,this.cache=[],this.traverse()}VM.prototype=Object.create(Object.prototype,{length:{get:function(){return this.checkcache(),this.done||this.traverse(),this.cache.length}},item:{value:function(e){return this.checkcache(),!this.done&&e>=this.cache.length&&this.traverse(),this.cache[e]}},checkcache:{value:function(){if(this.lastModTime!==this.root.lastModTime){for(var e=this.cache.length-1;e>=0;e--)this[e]=void 0;this.cache.length=0,this.done=!1,this.lastModTime=this.root.lastModTime}}},traverse:{value:function(e){e!==void 0&&e++;for(var t;(t=this.next())!==null;)if(this[this.cache.length]=t,this.cache.push(t),e&&this.cache.length===e)return;this.done=!0}},next:{value:function(){var e=this.cache.length===0?this.root:this.cache[this.cache.length-1],t;for(e.nodeType===sxe.DOCUMENT_NODE?t=e.documentElement:t=e.nextElement(this.root);t;){if(this.filter(t))return t;t=t.nextElement(this.root)}return null}}})});var e2=_((Yze,JM)=>{"use strict";f();var Xv=Lt();JM.exports=ZM;function ZM(e,t){this._getString=e,this._setString=t,this._length=0,this._lastStringValue="",this._update()}Object.defineProperties(ZM.prototype,{length:{get:function(){return this._length}},item:{value:function(e){var t=Io(this);return e<0||e>=t.length?null:t[e]}},contains:{value:function(e){e=String(e);var t=Io(this);return t.indexOf(e)>-1}},add:{value:function(){for(var e=Io(this),t=0,r=arguments.length;t<r;t++){var n=jc(arguments[t]);e.indexOf(n)<0&&e.push(n)}this._update(e)}},remove:{value:function(){for(var e=Io(this),t=0,r=arguments.length;t<r;t++){var n=jc(arguments[t]),i=e.indexOf(n);i>-1&&e.splice(i,1)}this._update(e)}},toggle:{value:function(t,r){return t=jc(t),this.contains(t)?r===void 0||r===!1?(this.remove(t),!1):!0:r===void 0||r===!0?(this.add(t),!0):!1}},replace:{value:function(t,r){String(r)===""&&Xv.SyntaxError(),t=jc(t),r=jc(r);var n=Io(this),i=n.indexOf(t);if(i<0)return!1;var s=n.indexOf(r);return s<0?n[i]=r:i<s?(n[i]=r,n.splice(s,1)):n.splice(i,1),this._update(n),!0}},toString:{value:function(){return this._getString()}},value:{get:function(){return this._getString()},set:function(e){this._setString(e),this._update()}},_update:{value:function(e){e?(KM(this,e),this._setString(e.join(" ").trim())):KM(this,Io(this)),this._lastStringValue=this._getString()}}});function KM(e,t){var r=e._length,n;for(e._length=t.length,n=0;n<t.length;n++)e[n]=t[n];for(;n<r;n++)e[n]=void 0}function jc(e){return e=String(e),e===""&&Xv.SyntaxError(),/[ \t\r\n\f]/.test(e)&&Xv.InvalidCharacterError(),e}function axe(e){for(var t=e._length,r=Array(t),n=0;n<t;n++)r[n]=e[n];return r}function Io(e){var t=e._getString();if(t===e._lastStringValue)return axe(e);var r=t.replace(/(^[ \t\r\n\f]+)|([ \t\r\n\f]+$)/g,"");if(r==="")return[];var n=Object.create(null);return r.split(/[ \t\r\n\f]+/g).filter(function(i){var s="$"+i;return n[s]?!1:(n[s]=!0,!0)})}});var Wd=_((Ro,r6)=>{"use strict";f();var Ud=Object.create(null,{location:{get:function(){throw new Error("window.location is not supported.")}}}),oxe=function(e,t){return e.compareDocumentPosition(t)},lxe=function(e,t){return oxe(e,t)&2?1:-1},Gd=function(e){for(;(e=e.nextSibling)&&e.nodeType!==1;);return e},Po=function(e){for(;(e=e.previousSibling)&&e.nodeType!==1;);return e},cxe=function(e){if(e=e.firstChild)for(;e.nodeType!==1&&(e=e.nextSibling););return e},uxe=function(e){if(e=e.lastChild)for(;e.nodeType!==1&&(e=e.previousSibling););return e},Lo=function(e){if(!e.parentNode)return!1;var t=e.parentNode.nodeType;return t===1||t===9},QM=function(e){if(!e)return e;var t=e[0];return t==='"'||t==="'"?(e[e.length-1]===t?e=e.slice(1,-1):e=e.slice(1),e.replace(ke.str_escape,function(r){var n=/^\\(?:([0-9A-Fa-f]+)|([\r\n\f]+))/.exec(r);if(!n)return r.slice(1);if(n[2])return"";var i=parseInt(n[1],16);return String.fromCodePoint?String.fromCodePoint(i):String.fromCharCode(i)})):ke.ident.test(e)?ss(e):e},ss=function(e){return e.replace(ke.escape,function(t){var r=/^\\([0-9A-Fa-f]+)/.exec(t);if(!r)return t[1];var n=parseInt(r[1],16);return String.fromCodePoint?String.fromCodePoint(n):String.fromCharCode(n)})},pxe=(function(){return Array.prototype.indexOf?Array.prototype.indexOf:function(e,t){for(var r=this.length;r--;)if(this[r]===t)return r;return-1}})(),XM=function(e,t){var r=ke.inside.source.replace(/</g,e).replace(/>/g,t);return new RegExp(r)},qr=function(e,t,r){return e=e.source,e=e.replace(t,r.source||r),new RegExp(e)},YM=function(e,t){return e.replace(/^(?:\w+:\/\/|\/+)/,"").replace(/(?:\/+|\/*#.*?)$/,"").split("/",t).join("/")},fxe=function(e,t){var r=e.replace(/\s+/g,""),n;return r==="even"?r="2n+0":r==="odd"?r="2n+1":r.indexOf("n")===-1&&(r="0n"+r),n=/^([+-])?(\d+)?n([+-])?(\d+)?$/.exec(r),{group:n[1]==="-"?-(n[2]||1):+(n[2]||1),offset:n[4]?n[3]==="-"?-n[4]:+n[4]:0}},t2=function(e,t,r){var n=fxe(e),i=n.group,s=n.offset,a=r?uxe:cxe,o=r?Po:Gd;return function(l){if(Lo(l))for(var c=a(l.parentNode),p=0;c;){if(t(c,l)&&p++,c===l)return p-=s,i&&p?p%i===0&&p<0==i<0:!p;c=o(c)}}},Qt={"*":(function(){return function(){return!0}})(),type:function(e){return e=e.toLowerCase(),function(t){return t.nodeName.toLowerCase()===e}},attr:function(e,t,r,n){return t=e6[t],function(i){var s;switch(e){case"for":s=i.htmlFor;break;case"class":s=i.className,s===""&&i.getAttribute("class")==null&&(s=null);break;case"href":case"src":s=i.getAttribute(e,2);break;case"title":s=i.getAttribute("title")||null;break;case"id":case"lang":case"dir":case"accessKey":case"hidden":case"tabIndex":case"style":if(i.getAttribute){s=i.getAttribute(e);break}default:if(i.hasAttribute&&!i.hasAttribute(e))break;s=i[e]!=null?i[e]:i.getAttribute&&i.getAttribute(e);break}if(s!=null)return s=s+"",n&&(s=s.toLowerCase(),r=r.toLowerCase()),t(s,r)}},":first-child":function(e){return!Po(e)&&Lo(e)},":last-child":function(e){return!Gd(e)&&Lo(e)},":only-child":function(e){return!Po(e)&&!Gd(e)&&Lo(e)},":nth-child":function(e,t){return t2(e,function(){return!0},t)},":nth-last-child":function(e){return Qt[":nth-child"](e,!0)},":root":function(e){return e.ownerDocument.documentElement===e},":empty":function(e){return!e.firstChild},":not":function(e){var t=n2(e);return function(r){return!t(r)}},":first-of-type":function(e){if(Lo(e)){for(var t=e.nodeName;e=Po(e);)if(e.nodeName===t)return;return!0}},":last-of-type":function(e){if(Lo(e)){for(var t=e.nodeName;e=Gd(e);)if(e.nodeName===t)return;return!0}},":only-of-type":function(e){return Qt[":first-of-type"](e)&&Qt[":last-of-type"](e)},":nth-of-type":function(e,t){return t2(e,function(r,n){return r.nodeName===n.nodeName},t)},":nth-last-of-type":function(e){return Qt[":nth-of-type"](e,!0)},":checked":function(e){return!!(e.checked||e.selected)},":indeterminate":function(e){return!Qt[":checked"](e)},":enabled":function(e){return!e.disabled&&e.type!=="hidden"},":disabled":function(e){return!!e.disabled},":target":function(e){return e.id===Ud.location.hash.substring(1)},":focus":function(e){return e===e.ownerDocument.activeElement},":is":function(e){return n2(e)},":matches":function(e){return Qt[":is"](e)},":nth-match":function(e,t){var r=e.split(/\s*,\s*/),n=r.shift(),i=n2(r.join(","));return t2(n,i,t)},":nth-last-match":function(e){return Qt[":nth-match"](e,!0)},":links-here":function(e){return e+""==Ud.location+""},":lang":function(e){return function(t){for(;t;){if(t.lang)return t.lang.indexOf(e)===0;t=t.parentNode}}},":dir":function(e){return function(t){for(;t;){if(t.dir)return t.dir===e;t=t.parentNode}}},":scope":function(e,t){var r=t||e.ownerDocument;return r.nodeType===9?e===r.documentElement:e===r},":any-link":function(e){return typeof e.href=="string"},":local-link":function(e){if(e.nodeName)return e.href&&e.host===Ud.location.host;var t=+e+1;return function(r){if(r.href){var n=Ud.location+"",i=r+"";return YM(n,t)===YM(i,t)}}},":default":function(e){return!!e.defaultSelected},":valid":function(e){return e.willValidate||e.validity&&e.validity.valid},":invalid":function(e){return!Qt[":valid"](e)},":in-range":function(e){return e.value>e.min&&e.value<=e.max},":out-of-range":function(e){return!Qt[":in-range"](e)},":required":function(e){return!!e.required},":optional":function(e){return!e.required},":read-only":function(e){if(e.readOnly)return!0;var t=e.getAttribute("contenteditable"),r=e.contentEditable,n=e.nodeName.toLowerCase();return n=n!=="input"&&n!=="textarea",(n||e.disabled)&&t==null&&r!=="true"},":read-write":function(e){return!Qt[":read-only"](e)},":hover":function(){throw new Error(":hover is not supported.")},":active":function(){throw new Error(":active is not supported.")},":link":function(){throw new Error(":link is not supported.")},":visited":function(){throw new Error(":visited is not supported.")},":column":function(){throw new Error(":column is not supported.")},":nth-column":function(){throw new Error(":nth-column is not supported.")},":nth-last-column":function(){throw new Error(":nth-last-column is not supported.")},":current":function(){throw new Error(":current is not supported.")},":past":function(){throw new Error(":past is not supported.")},":future":function(){throw new Error(":future is not supported.")},":contains":function(e){return function(t){var r=t.innerText||t.textContent||t.value||"";return r.indexOf(e)!==-1}},":has":function(e){return function(t){return t6(e,t).length>0}}},e6={"-":function(){return!0},"=":function(e,t){return e===t},"*=":function(e,t){return e.indexOf(t)!==-1},"~=":function(e,t){var r,n,i,s;for(n=0;;n=r+1){if(r=e.indexOf(t,n),r===-1)return!1;if(i=e[r-1],s=e[r+t.length],(!i||i===" ")&&(!s||s===" "))return!0}},"|=":function(e,t){var r=e.indexOf(t),n;if(r===0)return n=e[r+t.length],n==="-"||!n},"^=":function(e,t){return e.indexOf(t)===0},"$=":function(e,t){var r=e.lastIndexOf(t);return r!==-1&&r+t.length===e.length},"!=":function(e,t){return e!==t}},Bc={" ":function(e){return function(t){for(;t=t.parentNode;)if(e(t))return t}},">":function(e){return function(t){if(t=t.parentNode)return e(t)&&t}},"+":function(e){return function(t){if(t=Po(t))return e(t)&&t}},"~":function(e){return function(t){for(;t=Po(t);)if(e(t))return t}},noop:function(e){return function(t){return e(t)&&t}},ref:function(e,t){var r;function n(i){for(var s=i.ownerDocument,a=s.getElementsByTagName("*"),o=a.length;o--;)if(r=a[o],n.test(i))return r=null,!0;r=null}return n.combinator=function(i){if(!(!r||!r.getAttribute)){var s=r.getAttribute(t)||"";if(s[0]==="#"&&(s=s.substring(1)),s===i.id&&e(r))return r}},n}},ke={escape:/\\(?:[^0-9A-Fa-f\r\n]|[0-9A-Fa-f]{1,6}[\r\n\t ]?)/g,str_escape:/(escape)|\\(\n|\r\n?|\f)/g,nonascii:/[\u00A0-\uFFFF]/,cssid:/(?:(?!-?[0-9])(?:escape|nonascii|[-_a-zA-Z0-9])+)/,qname:/^ *(cssid|\*)/,simple:/^(?:([.#]cssid)|pseudo|attr)/,ref:/^ *\/(cssid)\/ */,combinator:/^(?: +([^ \w*.#\\]) +|( )+|([^ \w*.#\\]))(?! *$)/,attr:/^\[(cssid)(?:([^\w]?=)(inside))?\]/,pseudo:/^(:cssid)(?:\((inside)\))?/,inside:/(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|<[^"'>]*>|\\["'>]|[^"'>])*/,ident:/^(cssid)$/};ke.cssid=qr(ke.cssid,"nonascii",ke.nonascii);ke.cssid=qr(ke.cssid,"escape",ke.escape);ke.qname=qr(ke.qname,"cssid",ke.cssid);ke.simple=qr(ke.simple,"cssid",ke.cssid);ke.ref=qr(ke.ref,"cssid",ke.cssid);ke.attr=qr(ke.attr,"cssid",ke.cssid);ke.pseudo=qr(ke.pseudo,"cssid",ke.cssid);ke.inside=qr(ke.inside,`[^"'>]*`,ke.inside);ke.attr=qr(ke.attr,"inside",XM("\\[","\\]"));ke.pseudo=qr(ke.pseudo,"inside",XM("\\(","\\)"));ke.simple=qr(ke.simple,"pseudo",ke.pseudo);ke.simple=qr(ke.simple,"attr",ke.attr);ke.ident=qr(ke.ident,"cssid",ke.cssid);ke.str_escape=qr(ke.str_escape,"escape",ke.escape);var $c=function(e){for(var t=e.replace(/^\s+|\s+$/g,""),r,n=[],i=[],s,a,o,l,c;t;){if(o=ke.qname.exec(t))t=t.substring(o[0].length),a=ss(o[1]),i.push(Vd(a,!0));else if(o=ke.simple.exec(t))t=t.substring(o[0].length),a="*",i.push(Vd(a,!0)),i.push(Vd(o));else throw new SyntaxError("Invalid selector.");for(;o=ke.simple.exec(t);)t=t.substring(o[0].length),i.push(Vd(o));if(t[0]==="!"&&(t=t.substring(1),s=hxe(),s.qname=a,i.push(s.simple)),o=ke.ref.exec(t)){t=t.substring(o[0].length),c=Bc.ref(r2(i),ss(o[1])),n.push(c.combinator),i=[];continue}if(o=ke.combinator.exec(t)){if(t=t.substring(o[0].length),l=o[1]||o[2]||o[3],l===","){n.push(Bc.noop(r2(i)));break}}else l="noop";if(!Bc[l])throw new SyntaxError("Bad combinator.");n.push(Bc[l](r2(i))),i=[]}return r=dxe(n),r.qname=a,r.sel=t,s&&(s.lname=r.qname,s.test=r,s.qname=s.qname,s.sel=r.sel,r=s),c&&(c.test=r,c.qname=r.qname,c.sel=r.sel,r=c),r},Vd=function(e,t){if(t)return e==="*"?Qt["*"]:Qt.type(e);if(e[1])return e[1][0]==="."?Qt.attr("class","~=",ss(e[1].substring(1)),!1):Qt.attr("id","=",ss(e[1].substring(1)),!1);if(e[2])return e[3]?Qt[ss(e[2])](QM(e[3])):Qt[ss(e[2])];if(e[4]){var r=e[6],n=/["'\s]\s*I$/i.test(r);return n&&(r=r.replace(/\s*I$/i,"")),Qt.attr(ss(e[4]),e[5]||"-",QM(r),n)}throw new SyntaxError("Unknown Selector.")},r2=function(e){var t=e.length,r;return t<2?e[0]:function(n){if(n){for(r=0;r<t;r++)if(!e[r](n))return;return!0}}},dxe=function(e){return e.length<2?function(t){return!!e[0](t)}:function(t){for(var r=e.length;r--;)if(!(t=e[r](t)))return;return!0}},hxe=function(){var e;function t(r){for(var n=r.ownerDocument,i=n.getElementsByTagName(t.lname),s=i.length;s--;)if(t.test(i[s])&&e===r)return e=null,!0;e=null}return t.simple=function(r){return e=r,!0},t},n2=function(e){for(var t=$c(e),r=[t];t.sel;)t=$c(t.sel),r.push(t);return r.length<2?t:function(n){for(var i=r.length,s=0;s<i;s++)if(r[s](n))return!0}},t6=function(e,t){for(var r=[],n=$c(e),i=t.getElementsByTagName(n.qname),s=0,a;a=i[s++];)n(a)&&r.push(a);if(n.sel){for(;n.sel;)for(n=$c(n.sel),i=t.getElementsByTagName(n.qname),s=0;a=i[s++];)n(a)&&pxe.call(r,a)===-1&&r.push(a);r.sort(lxe)}return r};r6.exports=Ro=function(e,t){var r,n;if(t.nodeType!==11&&e.indexOf(" ")===-1){if(e[0]==="#"&&t.rooted&&/^#[A-Z_][-A-Z0-9_]*$/i.test(e)&&t.doc._hasMultipleElementsWithId&&(r=e.substring(1),!t.doc._hasMultipleElementsWithId(r)))return n=t.doc.getElementById(r),n?[n]:[];if(e[0]==="."&&/^\.\w+$/.test(e))return t.getElementsByClassName(e.substring(1));if(/^\w+$/.test(e))return t.getElementsByTagName(e)}return t6(e,t)};Ro.selectors=Qt;Ro.operators=e6;Ro.combinators=Bc;Ro.matches=function(e,t){var r={sel:t};do if(r=$c(r.sel),r(e))return!0;while(r.sel);return!1}});var Kd=_((tHe,n6)=>{"use strict";f();var mxe=ar(),gxe=Mv(),i2=function(e,t){for(var r=e.createDocumentFragment(),n=0;n<t.length;n++){var i=t[n],s=i instanceof mxe;r.appendChild(s?i:e.createTextNode(String(i)))}return r},xxe={after:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(s){return s===n});)n=n.nextSibling;var i=i2(this.doc,t);r.insertBefore(i,n)}}},before:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.previousSibling;if(r!==null){for(;n&&t.some(function(a){return a===n});)n=n.previousSibling;var i=i2(this.doc,t),s=n?n.nextSibling:r.firstChild;r.insertBefore(i,s)}}},remove:{value:function(){this.parentNode!==null&&(this.doc&&(this.doc._preremoveNodeIterators(this),this.rooted&&this.doc.mutateRemove(this)),this._remove(),this.parentNode=null)}},_remove:{value:function(){var t=this.parentNode;t!==null&&(t._childNodes?t._childNodes.splice(this.index,1):t._firstChild===this&&(this._nextSibling===this?t._firstChild=null:t._firstChild=this._nextSibling),gxe.remove(this),t.modify())}},replaceWith:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(s){return s===n});)n=n.nextSibling;var i=i2(this.doc,t);this.parentNode===r?r.replaceChild(i,this):r.insertBefore(i,n)}}}};n6.exports=xxe});var s2=_((nHe,s6)=>{"use strict";f();var i6=ar(),bxe={nextElementSibling:{get:function(){if(this.parentNode){for(var e=this.nextSibling;e!==null;e=e.nextSibling)if(e.nodeType===i6.ELEMENT_NODE)return e}return null}},previousElementSibling:{get:function(){if(this.parentNode){for(var e=this.previousSibling;e!==null;e=e.previousSibling)if(e.nodeType===i6.ELEMENT_NODE)return e}return null}}};s6.exports=bxe});var a2=_((sHe,o6)=>{"use strict";f();o6.exports=a6;var Mo=Lt();function a6(e){this.element=e}Object.defineProperties(a6.prototype,{length:{get:Mo.shouldOverride},item:{value:Mo.shouldOverride},getNamedItem:{value:function(t){return this.element.getAttributeNode(t)}},getNamedItemNS:{value:function(t,r){return this.element.getAttributeNodeNS(t,r)}},setNamedItem:{value:Mo.nyi},setNamedItemNS:{value:Mo.nyi},removeNamedItem:{value:function(t){var r=this.element.getAttributeNode(t);if(r)return this.element.removeAttribute(t),r;Mo.NotFoundError()}},removeNamedItemNS:{value:function(t,r){var n=this.element.getAttributeNodeNS(t,r);if(n)return this.element.removeAttributeNS(t,r),n;Mo.NotFoundError()}}})});var jo=_((oHe,f6)=>{"use strict";f();f6.exports=as;var o2=Hd(),Ct=Lt(),Zn=Ct.NAMESPACE,Jd=Yv(),Cn=ar(),l2=ga(),yxe=qv(),Zd=WM(),qo=qd(),vxe=e2(),c2=Wd(),c6=zd(),_xe=Kd(),wxe=s2(),u6=a2(),l6=Object.create(null);function as(e,t,r,n){c6.call(this),this.nodeType=Cn.ELEMENT_NODE,this.ownerDocument=e,this.localName=t,this.namespaceURI=r,this.prefix=n,this._tagName=void 0,this._attrsByQName=Object.create(null),this._attrsByLName=Object.create(null),this._attrKeys=[]}function u2(e,t){if(e.nodeType===Cn.TEXT_NODE)t.push(e._data);else for(var r=0,n=e.childNodes.length;r<n;r++)u2(e.childNodes[r],t)}as.prototype=Object.create(c6.prototype,{isHTML:{get:function(){return this.namespaceURI===Zn.HTML&&this.ownerDocument.isHTML}},tagName:{get:function(){if(this._tagName===void 0){var t;if(this.prefix===null?t=this.localName:t=this.prefix+":"+this.localName,this.isHTML){var r=l6[t];r||(l6[t]=r=Ct.toASCIIUpperCase(t)),t=r}this._tagName=t}return this._tagName}},nodeName:{get:function(){return this.tagName}},nodeValue:{get:function(){return null},set:function(){}},textContent:{get:function(){var e=[];return u2(this,e),e.join("")},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerText:{get:function(){var e=[];return u2(this,e),e.join("").replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerHTML:{get:function(){return this.serialize()},set:Ct.nyi},outerHTML:{get:function(){return yxe.serializeOne(this,{nodeType:0})},set:function(e){var t=this.ownerDocument,r=this.parentNode;if(r!==null){r.nodeType===Cn.DOCUMENT_NODE&&Ct.NoModificationAllowedError(),r.nodeType===Cn.DOCUMENT_FRAGMENT_NODE&&(r=r.ownerDocument.createElement("body"));var n=t.implementation.mozHTMLParser(t._address,r);n.parse(e===null?"":String(e),!0),this.replaceWith(n._asDocumentFragment())}}},_insertAdjacent:{value:function(t,r){var n=!1;switch(t){case"beforebegin":n=!0;case"afterend":var i=this.parentNode;return i===null?null:i.insertBefore(r,n?this:this.nextSibling);case"afterbegin":n=!0;case"beforeend":return this.insertBefore(r,n?this.firstChild:null);default:return Ct.SyntaxError()}}},insertAdjacentElement:{value:function(t,r){if(r.nodeType!==Cn.ELEMENT_NODE)throw new TypeError("not an element");return t=Ct.toASCIILowerCase(String(t)),this._insertAdjacent(t,r)}},insertAdjacentText:{value:function(t,r){var n=this.ownerDocument.createTextNode(r);t=Ct.toASCIILowerCase(String(t)),this._insertAdjacent(t,n)}},insertAdjacentHTML:{value:function(t,r){t=Ct.toASCIILowerCase(String(t)),r=String(r);var n;switch(t){case"beforebegin":case"afterend":n=this.parentNode,(n===null||n.nodeType===Cn.DOCUMENT_NODE)&&Ct.NoModificationAllowedError();break;case"afterbegin":case"beforeend":n=this;break;default:Ct.SyntaxError()}(!(n instanceof as)||n.ownerDocument.isHTML&&n.localName==="html"&&n.namespaceURI===Zn.HTML)&&(n=n.ownerDocument.createElementNS(Zn.HTML,"body"));var i=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,n);i.parse(r,!0),this._insertAdjacent(t,i._asDocumentFragment())}},children:{get:function(){return this._children||(this._children=new p6(this)),this._children}},attributes:{get:function(){return this._attributes||(this._attributes=new f2(this)),this._attributes}},firstElementChild:{get:function(){for(var e=this.firstChild;e!==null;e=e.nextSibling)if(e.nodeType===Cn.ELEMENT_NODE)return e;return null}},lastElementChild:{get:function(){for(var e=this.lastChild;e!==null;e=e.previousSibling)if(e.nodeType===Cn.ELEMENT_NODE)return e;return null}},childElementCount:{get:function(){return this.children.length}},nextElement:{value:function(e){e||(e=this.ownerDocument.documentElement);var t=this.firstElementChild;if(!t){if(this===e)return null;t=this.nextElementSibling}if(t)return t;for(var r=this.parentElement;r&&r!==e;r=r.parentElement)if(t=r.nextElementSibling,t)return t;return null}},getElementsByTagName:{value:function(t){var r;return t?(t==="*"?r=function(){return!0}:this.isHTML?r=Exe(t):r=p2(t),new Zd(this,r)):new l2}},getElementsByTagNameNS:{value:function(t,r){var n;return t==="*"&&r==="*"?n=function(){return!0}:t==="*"?n=p2(r):r==="*"?n=Dxe(t):n=Sxe(t,r),new Zd(this,n)}},getElementsByClassName:{value:function(t){if(t=String(t).trim(),t===""){var r=new l2;return r}return t=t.split(/[ \t\r\n\f]+/),new Zd(this,kxe(t))}},getElementsByName:{value:function(t){return new Zd(this,Cxe(String(t)))}},clone:{value:function(){var t;this.namespaceURI!==Zn.HTML||this.prefix||!this.ownerDocument.isHTML?t=this.ownerDocument.createElementNS(this.namespaceURI,this.prefix!==null?this.prefix+":"+this.localName:this.localName):t=this.ownerDocument.createElement(this.localName);for(var r=0,n=this._attrKeys.length;r<n;r++){var i=this._attrKeys[r],s=this._attrsByLName[i],a=s.cloneNode();a._setOwnerElement(t),t._attrsByLName[i]=a,t._addQName(a)}return t._attrKeys=this._attrKeys.concat(),t}},isEqual:{value:function(t){if(this.localName!==t.localName||this.namespaceURI!==t.namespaceURI||this.prefix!==t.prefix||this._numattrs!==t._numattrs)return!1;for(var r=0,n=this._numattrs;r<n;r++){var i=this._attr(r);if(!t.hasAttributeNS(i.namespaceURI,i.localName)||t.getAttributeNS(i.namespaceURI,i.localName)!==i.value)return!1}return!0}},_lookupNamespacePrefix:{value:function(t,r){if(this.namespaceURI&&this.namespaceURI===t&&this.prefix!==null&&r.lookupNamespaceURI(this.prefix)===t)return this.prefix;for(var n=0,i=this._numattrs;n<i;n++){var s=this._attr(n);if(s.prefix==="xmlns"&&s.value===t&&r.lookupNamespaceURI(s.localName)===t)return s.localName}var a=this.parentElement;return a?a._lookupNamespacePrefix(t,r):null}},lookupNamespaceURI:{value:function(t){if((t===""||t===void 0)&&(t=null),this.namespaceURI!==null&&this.prefix===t)return this.namespaceURI;for(var r=0,n=this._numattrs;r<n;r++){var i=this._attr(r);if(i.namespaceURI===Zn.XMLNS&&(i.prefix==="xmlns"&&i.localName===t||t===null&&i.prefix===null&&i.localName==="xmlns"))return i.value||null}var s=this.parentElement;return s?s.lookupNamespaceURI(t):null}},getAttribute:{value:function(t){var r=this.getAttributeNode(t);return r?r.value:null}},getAttributeNS:{value:function(t,r){var n=this.getAttributeNodeNS(t,r);return n?n.value:null}},getAttributeNode:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Ct.toASCIILowerCase(t));var r=this._attrsByQName[t];return r?(Array.isArray(r)&&(r=r[0]),r):null}},getAttributeNodeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=this._attrsByLName[t+"|"+r];return n||null}},hasAttribute:{value:function(t){return t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Ct.toASCIILowerCase(t)),this._attrsByQName[t]!==void 0}},hasAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r;return this._attrsByLName[n]!==void 0}},hasAttributes:{value:function(){return this._numattrs>0}},toggleAttribute:{value:function(t,r){t=String(t),o2.isValidName(t)||Ct.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=Ct.toASCIILowerCase(t));var n=this._attrsByQName[t];return n===void 0?r===void 0||r===!0?(this._setAttribute(t,""),!0):!1:r===void 0||r===!1?(this.removeAttribute(t),!1):!0}},_setAttribute:{value:function(t,r){var n=this._attrsByQName[t],i;n?Array.isArray(n)&&(n=n[0]):(n=this._newattr(t),i=!0),n.value=r,this._attributes&&(this._attributes[t]=n),i&&this._newattrhook&&this._newattrhook(t,r)}},setAttribute:{value:function(t,r){t=String(t),o2.isValidName(t)||Ct.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=Ct.toASCIILowerCase(t)),this._setAttribute(t,String(r))}},_setAttributeNS:{value:function(t,r,n){var i=r.indexOf(":"),s,a;i<0?(s=null,a=r):(s=r.substring(0,i),a=r.substring(i+1)),(t===""||t===void 0)&&(t=null);var o=(t===null?"":t)+"|"+a,l=this._attrsByLName[o],c;l||(l=new zc(this,a,s,t),c=!0,this._attrsByLName[o]=l,this._attributes&&(this._attributes[this._attrKeys.length]=l),this._attrKeys.push(o),this._addQName(l)),l.value=n,c&&this._newattrhook&&this._newattrhook(r,n)}},setAttributeNS:{value:function(t,r,n){t=t==null||t===""?null:String(t),r=String(r),o2.isValidQName(r)||Ct.InvalidCharacterError();var i=r.indexOf(":"),s=i<0?null:r.substring(0,i);(s!==null&&t===null||s==="xml"&&t!==Zn.XML||(r==="xmlns"||s==="xmlns")&&t!==Zn.XMLNS||t===Zn.XMLNS&&!(r==="xmlns"||s==="xmlns"))&&Ct.NamespaceError(),this._setAttributeNS(t,r,String(n))}},setAttributeNode:{value:function(t){if(t.ownerElement!==null&&t.ownerElement!==this)throw new qo(qo.INUSE_ATTRIBUTE_ERR);var r=null,n=this._attrsByQName[t.name];if(n){if(Array.isArray(n)||(n=[n]),n.some(function(i){return i===t}))return t;if(t.ownerElement!==null)throw new qo(qo.INUSE_ATTRIBUTE_ERR);n.forEach(function(i){this.removeAttributeNode(i)},this),r=n[0]}return this.setAttributeNodeNS(t),r}},setAttributeNodeNS:{value:function(t){if(t.ownerElement!==null)throw new qo(qo.INUSE_ATTRIBUTE_ERR);var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName,i=this._attrsByLName[n];return i&&this.removeAttributeNode(i),t._setOwnerElement(this),this._attrsByLName[n]=t,this._attributes&&(this._attributes[this._attrKeys.length]=t),this._attrKeys.push(n),this._addQName(t),this._newattrhook&&this._newattrhook(t.name,t.value),i||null}},removeAttribute:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Ct.toASCIILowerCase(t));var r=this._attrsByQName[t];if(r){Array.isArray(r)?r.length>2?r=r.shift():(this._attrsByQName[t]=r[1],r=r[0]):this._attrsByQName[t]=void 0;var n=r.namespaceURI,i=(n===null?"":n)+"|"+r.localName;this._attrsByLName[i]=void 0;var s=this._attrKeys.indexOf(i);this._attributes&&(Array.prototype.splice.call(this._attributes,s,1),this._attributes[t]=void 0),this._attrKeys.splice(s,1);var a=r.onchange;r._setOwnerElement(null),a&&a.call(r,this,r.localName,r.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(r)}}},removeAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r,i=this._attrsByLName[n];if(i){this._attrsByLName[n]=void 0;var s=this._attrKeys.indexOf(n);this._attributes&&Array.prototype.splice.call(this._attributes,s,1),this._attrKeys.splice(s,1),this._removeQName(i);var a=i.onchange;i._setOwnerElement(null),a&&a.call(i,this,i.localName,i.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(i)}}},removeAttributeNode:{value:function(t){var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName;return this._attrsByLName[n]!==t&&Ct.NotFoundError(),this.removeAttributeNS(r,t.localName),t}},getAttributeNames:{value:function(){var t=this;return this._attrKeys.map(function(r){return t._attrsByLName[r].name})}},_getattr:{value:function(t){var r=this._attrsByQName[t];return r?r.value:null}},_setattr:{value:function(t,r){var n=this._attrsByQName[t],i;n||(n=this._newattr(t),i=!0),n.value=String(r),this._attributes&&(this._attributes[t]=n),i&&this._newattrhook&&this._newattrhook(t,r)}},_newattr:{value:function(t){var r=new zc(this,t,null,null),n="|"+t;return this._attrsByQName[t]=r,this._attrsByLName[n]=r,this._attributes&&(this._attributes[this._attrKeys.length]=r),this._attrKeys.push(n),r}},_addQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];r?Array.isArray(r)?r.push(e):this._attrsByQName[t]=[r,e]:this._attrsByQName[t]=e,this._attributes&&(this._attributes[t]=e)}},_removeQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];if(Array.isArray(r)){var n=r.indexOf(e);Ct.assert(n!==-1),r.length===2?(this._attrsByQName[t]=r[1-n],this._attributes&&(this._attributes[t]=this._attrsByQName[t])):(r.splice(n,1),this._attributes&&this._attributes[t]===e&&(this._attributes[t]=r[0]))}else Ct.assert(r===e),this._attrsByQName[t]=void 0,this._attributes&&(this._attributes[t]=void 0)}},_numattrs:{get:function(){return this._attrKeys.length}},_attr:{value:function(e){return this._attrsByLName[this._attrKeys[e]]}},id:Jd.property({name:"id"}),className:Jd.property({name:"class"}),classList:{get:function(){var e=this;if(this._classList)return this._classList;var t=new vxe(function(){return e.className||""},function(r){e.className=r});return this._classList=t,t},set:function(e){this.className=e}},matches:{value:function(e){return c2.matches(this,e)}},closest:{value:function(e){var t=this;do{if(t.matches&&t.matches(e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===Cn.ELEMENT_NODE);return null}},querySelector:{value:function(e){return c2(e,this)[0]}},querySelectorAll:{value:function(e){var t=c2(e,this);return t.item?t:new l2(t)}}});Object.defineProperties(as.prototype,_xe);Object.defineProperties(as.prototype,wxe);Jd.registerChangeHandler(as,"id",function(e,t,r,n){e.rooted&&(r&&e.ownerDocument.delId(r,e),n&&e.ownerDocument.addId(n,e))});Jd.registerChangeHandler(as,"class",function(e,t,r,n){e._classList&&e._classList._update()});function zc(e,t,r,n,i){this.localName=t,this.prefix=r===null||r===""?null:""+r,this.namespaceURI=n===null||n===""?null:""+n,this.data=i,this._setOwnerElement(e)}zc.prototype=Object.create(Object.prototype,{ownerElement:{get:function(){return this._ownerElement}},_setOwnerElement:{value:function(t){this._ownerElement=t,this.prefix===null&&this.namespaceURI===null&&t?this.onchange=t._attributeChangeHandlers[this.localName]:this.onchange=null}},name:{get:function(){return this.prefix?this.prefix+":"+this.localName:this.localName}},specified:{get:function(){return!0}},value:{get:function(){return this.data},set:function(e){var t=this.data;e=e===void 0?"":e+"",e!==t&&(this.data=e,this.ownerElement&&(this.onchange&&this.onchange(this.ownerElement,this.localName,t,e),this.ownerElement.rooted&&this.ownerElement.ownerDocument.mutateAttr(this,t)))}},cloneNode:{value:function(t){return new zc(null,this.localName,this.prefix,this.namespaceURI,this.data)}},nodeType:{get:function(){return Cn.ATTRIBUTE_NODE}},nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return this.value},set:function(e){this.value=e}},textContent:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}},innerText:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}}});as._Attr=zc;function f2(e){u6.call(this,e);for(var t in e._attrsByQName)this[t]=e._attrsByQName[t];for(var r=0;r<e._attrKeys.length;r++)this[r]=e._attrsByLName[e._attrKeys[r]]}f2.prototype=Object.create(u6.prototype,{length:{get:function(){return this.element._attrKeys.length},set:function(){}},item:{value:function(e){return e=e>>>0,e>=this.length?null:this.element._attrsByLName[this.element._attrKeys[e]]}}});globalThis.Symbol?.iterator&&(f2.prototype[globalThis.Symbol.iterator]=function(){var e=0,t=this.length,r=this;return{next:function(){return e<t?{value:r.item(e++)}:{done:!0}}}});function p6(e){this.element=e,this.updateCache()}p6.prototype=Object.create(Object.prototype,{length:{get:function(){return this.updateCache(),this.childrenByNumber.length}},item:{value:function(t){return this.updateCache(),this.childrenByNumber[t]||null}},namedItem:{value:function(t){return this.updateCache(),this.childrenByName[t]||null}},namedItems:{get:function(){return this.updateCache(),this.childrenByName}},updateCache:{value:function(){var t=/^(a|applet|area|embed|form|frame|frameset|iframe|img|object)$/;if(this.lastModTime!==this.element.lastModTime){this.lastModTime=this.element.lastModTime;for(var r=this.childrenByNumber&&this.childrenByNumber.length||0,n=0;n<r;n++)this[n]=void 0;this.childrenByNumber=[],this.childrenByName=Object.create(null);for(var i=this.element.firstChild;i!==null;i=i.nextSibling)if(i.nodeType===Cn.ELEMENT_NODE){this[this.childrenByNumber.length]=i,this.childrenByNumber.push(i);var s=i.getAttribute("id");s&&!this.childrenByName[s]&&(this.childrenByName[s]=i);var a=i.getAttribute("name");a&&this.element.namespaceURI===Zn.HTML&&t.test(this.element.localName)&&!this.childrenByName[a]&&(this.childrenByName[s]=i)}}}}});function p2(e){return function(t){return t.localName===e}}function Exe(e){var t=Ct.toASCIILowerCase(e);return t===e?p2(e):function(r){return r.isHTML?r.localName===t:r.localName===e}}function Dxe(e){return function(t){return t.namespaceURI===e}}function Sxe(e,t){return function(r){return r.namespaceURI===e&&r.localName===t}}function kxe(e){return function(t){return e.every(function(r){return t.classList.contains(r)})}}function Cxe(e){return function(t){return t.namespaceURI!==Zn.HTML?!1:t.getAttribute("name")===e}}});var d2=_((cHe,x6)=>{"use strict";f();x6.exports=g6;var h6=ar(),Txe=ga(),m6=Lt(),d6=m6.HierarchyRequestError,Axe=m6.NotFoundError;function g6(){h6.call(this)}g6.prototype=Object.create(h6.prototype,{hasChildNodes:{value:function(){return!1}},firstChild:{value:null},lastChild:{value:null},insertBefore:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");d6()}},replaceChild:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");d6()}},removeChild:{value:function(e){if(!e.nodeType)throw new TypeError("not a node");Axe()}},removeChildren:{value:function(){}},childNodes:{get:function(){return this._childNodes||(this._childNodes=new Txe),this._childNodes}}})});var Hc=_((pHe,v6)=>{"use strict";f();v6.exports=Qd;var y6=d2(),b6=Lt(),Oxe=Kd(),Nxe=s2();function Qd(){y6.call(this)}Qd.prototype=Object.create(y6.prototype,{substringData:{value:function(t,r){if(arguments.length<2)throw new TypeError("Not enough arguments");return t=t>>>0,r=r>>>0,(t>this.data.length||t<0||r<0)&&b6.IndexSizeError(),this.data.substring(t,t+r)}},appendData:{value:function(t){if(arguments.length<1)throw new TypeError("Not enough arguments");this.data+=String(t)}},insertData:{value:function(t,r){return this.replaceData(t,0,r)}},deleteData:{value:function(t,r){return this.replaceData(t,r,"")}},replaceData:{value:function(t,r,n){var i=this.data,s=i.length;t=t>>>0,r=r>>>0,n=String(n),(t>s||t<0)&&b6.IndexSizeError(),t+r>s&&(r=s-t);var a=i.substring(0,t),o=i.substring(t+r);this.data=a+n+o}},isEqual:{value:function(t){return this._data===t._data}},length:{get:function(){return this.data.length}}});Object.defineProperties(Qd.prototype,Oxe);Object.defineProperties(Qd.prototype,Nxe)});var m2=_((dHe,D6)=>{"use strict";f();D6.exports=h2;var _6=Lt(),w6=ar(),E6=Hc();function h2(e,t){E6.call(this),this.nodeType=w6.TEXT_NODE,this.ownerDocument=e,this._data=t,this._index=void 0}var Uc={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),e!==this._data&&(this._data=e,this.rooted&&this.ownerDocument.mutateValue(this),this.parentNode&&this.parentNode._textchangehook&&this.parentNode._textchangehook(this))}};h2.prototype=Object.create(E6.prototype,{nodeName:{value:"#text"},nodeValue:Uc,textContent:Uc,innerText:Uc,data:{get:Uc.get,set:function(e){Uc.set.call(this,e===null?"":String(e))}},splitText:{value:function(t){(t>this._data.length||t<0)&&_6.IndexSizeError();var r=this._data.substring(t),n=this.ownerDocument.createTextNode(r);this.data=this.data.substring(0,t);var i=this.parentNode;return i!==null&&i.insertBefore(n,this.nextSibling),n}},wholeText:{get:function(){for(var t=this.textContent,r=this.nextSibling;r&&r.nodeType===w6.TEXT_NODE;r=r.nextSibling)t+=r.textContent;return t}},replaceWholeText:{value:_6.nyi},clone:{value:function(){return new h2(this.ownerDocument,this._data)}}})});var x2=_((mHe,k6)=>{"use strict";f();k6.exports=g2;var Fxe=ar(),S6=Hc();function g2(e,t){S6.call(this),this.nodeType=Fxe.COMMENT_NODE,this.ownerDocument=e,this._data=t}var Vc={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};g2.prototype=Object.create(S6.prototype,{nodeName:{value:"#comment"},nodeValue:Vc,textContent:Vc,innerText:Vc,data:{get:Vc.get,set:function(e){Vc.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new g2(this.ownerDocument,this._data)}}})});var y2=_((xHe,A6)=>{"use strict";f();A6.exports=b2;var Ixe=ar(),Lxe=ga(),T6=zd(),Yd=jo(),Pxe=Wd(),C6=Lt();function b2(e){T6.call(this),this.nodeType=Ixe.DOCUMENT_FRAGMENT_NODE,this.ownerDocument=e}b2.prototype=Object.create(T6.prototype,{nodeName:{value:"#document-fragment"},nodeValue:{get:function(){return null},set:function(){}},textContent:Object.getOwnPropertyDescriptor(Yd.prototype,"textContent"),innerText:Object.getOwnPropertyDescriptor(Yd.prototype,"innerText"),querySelector:{value:function(e){var t=this.querySelectorAll(e);return t.length?t[0]:null}},querySelectorAll:{value:function(e){var t=Object.create(this);t.isHTML=!0,t.getElementsByTagName=Yd.prototype.getElementsByTagName,t.nextElement=Object.getOwnPropertyDescriptor(Yd.prototype,"firstElementChild").get;var r=Pxe(e,t);return r.item?r:new Lxe(r)}},clone:{value:function(){return new b2(this.ownerDocument)}},isEqual:{value:function(t){return!0}},innerHTML:{get:function(){return this.serialize()},set:C6.nyi},outerHTML:{get:function(){return this.serialize()},set:C6.nyi}})});var _2=_((yHe,N6)=>{"use strict";f();N6.exports=v2;var Rxe=ar(),O6=Hc();function v2(e,t,r){O6.call(this),this.nodeType=Rxe.PROCESSING_INSTRUCTION_NODE,this.ownerDocument=e,this.target=t,this._data=r}var Gc={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};v2.prototype=Object.create(O6.prototype,{nodeName:{get:function(){return this.target}},nodeValue:Gc,textContent:Gc,innerText:Gc,data:{get:Gc.get,set:function(e){Gc.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new v2(this.ownerDocument,this.target,this._data)}},isEqual:{value:function(t){return this.target===t.target&&this._data===t._data}}})});var Wc=_((_He,F6)=>{"use strict";f();var w2={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:4294967295,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};F6.exports=w2.constructor=w2.prototype=w2});var D2=_((DHe,L6)=>{"use strict";f();var EHe=L6.exports={nextSkippingChildren:Mxe,nextAncestorSibling:E2,next:qxe,previous:jxe,deepLastChild:I6};function Mxe(e,t){return e===t?null:e.nextSibling!==null?e.nextSibling:E2(e,t)}function E2(e,t){for(e=e.parentNode;e!==null;e=e.parentNode){if(e===t)return null;if(e.nextSibling!==null)return e.nextSibling}return null}function qxe(e,t){var r;return r=e.firstChild,r!==null?r:e===t?null:(r=e.nextSibling,r!==null?r:E2(e,t))}function I6(e){for(;e.lastChild;)e=e.lastChild;return e}function jxe(e,t){var r;return r=e.previousSibling,r!==null?I6(r):(r=e.parentNode,r===t?null:r)}});var $6=_((kHe,B6)=>{"use strict";f();B6.exports=j6;var Bxe=ar(),or=Wc(),P6=D2(),q6=Lt(),S2={first:"firstChild",last:"lastChild",next:"firstChild",previous:"lastChild"},k2={first:"nextSibling",last:"previousSibling",next:"nextSibling",previous:"previousSibling"};function R6(e,t){var r,n,i,s,a;for(n=e._currentNode[S2[t]];n!==null;){if(s=e._internalFilter(n),s===or.FILTER_ACCEPT)return e._currentNode=n,n;if(s===or.FILTER_SKIP&&(r=n[S2[t]],r!==null)){n=r;continue}for(;n!==null;){if(a=n[k2[t]],a!==null){n=a;break}if(i=n.parentNode,i===null||i===e.root||i===e._currentNode)return null;n=i}}return null}function M6(e,t){var r,n,i;if(r=e._currentNode,r===e.root)return null;for(;;){for(i=r[k2[t]];i!==null;){if(r=i,n=e._internalFilter(r),n===or.FILTER_ACCEPT)return e._currentNode=r,r;i=r[S2[t]],(n===or.FILTER_REJECT||i===null)&&(i=r[k2[t]])}if(r=r.parentNode,r===null||r===e.root||e._internalFilter(r)===or.FILTER_ACCEPT)return null}}function j6(e,t,r){(!e||!e.nodeType)&&q6.NotSupportedError(),this._root=e,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,this._currentNode=e}Object.defineProperties(j6.prototype,{root:{get:function(){return this._root}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},currentNode:{get:function(){return this._currentNode},set:function(t){if(!(t instanceof Bxe))throw new TypeError("Not a Node");this._currentNode=t}},_internalFilter:{value:function(t){var r,n;if(this._active&&q6.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return or.FILTER_SKIP;if(n=this._filter,n===null)r=or.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},parentNode:{value:function(){for(var t=this._currentNode;t!==this.root;){if(t=t.parentNode,t===null)return null;if(this._internalFilter(t)===or.FILTER_ACCEPT)return this._currentNode=t,t}return null}},firstChild:{value:function(){return R6(this,"first")}},lastChild:{value:function(){return R6(this,"last")}},previousSibling:{value:function(){return M6(this,"previous")}},nextSibling:{value:function(){return M6(this,"next")}},previousNode:{value:function(){var t,r,n,i;for(t=this._currentNode;t!==this._root;){for(n=t.previousSibling;n;n=t.previousSibling)if(t=n,r=this._internalFilter(t),r!==or.FILTER_REJECT){for(i=t.lastChild;i&&(t=i,r=this._internalFilter(t),r!==or.FILTER_REJECT);i=t.lastChild);if(r===or.FILTER_ACCEPT)return this._currentNode=t,t}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this._internalFilter(t)===or.FILTER_ACCEPT)return this._currentNode=t,t}return null}},nextNode:{value:function(){var t,r,n,i;t=this._currentNode,r=or.FILTER_ACCEPT;e:for(;;){for(n=t.firstChild;n;n=t.firstChild){if(t=n,r=this._internalFilter(t),r===or.FILTER_ACCEPT)return this._currentNode=t,t;if(r===or.FILTER_REJECT)break}for(i=P6.nextSkippingChildren(t,this.root);i;i=P6.nextSkippingChildren(t,this.root)){if(t=i,r=this._internalFilter(t),r===or.FILTER_ACCEPT)return this._currentNode=t,t;if(r===or.FILTER_SKIP)continue e}return null}}},toString:{value:function(){return"[object TreeWalker]"}}})});var W6=_((THe,G6)=>{"use strict";f();G6.exports=V6;var C2=Wc(),T2=D2(),U6=Lt();function $xe(e,t,r){return r?T2.next(e,t):e===t?null:T2.previous(e,null)}function z6(e,t){for(;t;t=t.parentNode)if(e===t)return!0;return!1}function H6(e,t){var r,n;for(r=e._referenceNode,n=e._pointerBeforeReferenceNode;;){if(n===t)n=!n;else if(r=$xe(r,e._root,t),r===null)return null;var i=e._internalFilter(r);if(i===C2.FILTER_ACCEPT)break}return e._referenceNode=r,e._pointerBeforeReferenceNode=n,r}function V6(e,t,r){(!e||!e.nodeType)&&U6.NotSupportedError(),this._root=e,this._referenceNode=e,this._pointerBeforeReferenceNode=!0,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,e.doc._attachNodeIterator(this)}Object.defineProperties(V6.prototype,{root:{get:function(){return this._root}},referenceNode:{get:function(){return this._referenceNode}},pointerBeforeReferenceNode:{get:function(){return this._pointerBeforeReferenceNode}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},_internalFilter:{value:function(t){var r,n;if(this._active&&U6.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return C2.FILTER_SKIP;if(n=this._filter,n===null)r=C2.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},_preremove:{value:function(t){if(!z6(t,this._root)&&z6(t,this._referenceNode)){if(this._pointerBeforeReferenceNode){for(var r=t;r.lastChild;)r=r.lastChild;if(r=T2.next(r,this.root),r){this._referenceNode=r;return}this._pointerBeforeReferenceNode=!1}if(t.previousSibling===null)this._referenceNode=t.parentNode;else{this._referenceNode=t.previousSibling;var n;for(n=this._referenceNode.lastChild;n;n=this._referenceNode.lastChild)this._referenceNode=n}}}},nextNode:{value:function(){return H6(this,!0)}},previousNode:{value:function(){return H6(this,!1)}},detach:{value:function(){}},toString:{value:function(){return"[object NodeIterator]"}}})});var Xd=_((OHe,K6)=>{"use strict";f();K6.exports=lr;function lr(e){if(!e)return Object.create(lr.prototype);this.url=e.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"");var t=lr.pattern.exec(this.url);if(t){if(t[2]&&(this.scheme=t[2]),t[4]){var r=t[4].match(lr.userinfoPattern);if(r&&(this.username=r[1],this.password=r[3],t[4]=t[4].substring(r[0].length)),t[4].match(lr.portPattern)){var n=t[4].lastIndexOf(":");this.host=t[4].substring(0,n),this.port=t[4].substring(n+1)}else this.host=t[4]}t[5]&&(this.path=t[5]),t[6]&&(this.query=t[7]),t[8]&&(this.fragment=t[9])}}lr.pattern=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/;lr.userinfoPattern=/^([^@:]*)(:([^@]*))?@/;lr.portPattern=/:\d+$/;lr.authorityPattern=/^[^:\/?#]+:\/\//;lr.hierarchyPattern=/^[^:\/?#]+:\//;lr.percentEncode=function(t){var r=t.charCodeAt(0);if(r<256)return"%"+r.toString(16);throw Error("can't percent-encode codepoints > 255 yet")};lr.prototype={constructor:lr,isAbsolute:function(){return!!this.scheme},isAuthorityBased:function(){return lr.authorityPattern.test(this.url)},isHierarchical:function(){return lr.hierarchyPattern.test(this.url)},toString:function(){var e="";return this.scheme!==void 0&&(e+=this.scheme+":"),this.isAbsolute()&&(e+="//",(this.username||this.password)&&(e+=this.username||"",this.password&&(e+=":"+this.password),e+="@"),this.host&&(e+=this.host)),this.port!==void 0&&(e+=":"+this.port),this.path!==void 0&&(e+=this.path),this.query!==void 0&&(e+="?"+this.query),this.fragment!==void 0&&(e+="#"+this.fragment),e},resolve:function(e){var t=this,r=new lr(e),n=new lr;return r.scheme!==void 0?(n.scheme=r.scheme,n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=s(r.path),n.query=r.query):(n.scheme=t.scheme,r.host!==void 0?(n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=s(r.path),n.query=r.query):(n.username=t.username,n.password=t.password,n.host=t.host,n.port=t.port,r.path?(r.path.charAt(0)==="/"?n.path=s(r.path):(n.path=i(t.path,r.path),n.path=s(n.path)),n.query=r.query):(n.path=t.path,r.query!==void 0?n.query=r.query:n.query=t.query))),n.fragment=r.fragment,n.toString();function i(a,o){if(t.host!==void 0&&!t.path)return"/"+o;var l=a.lastIndexOf("/");return l===-1?o:a.substring(0,l+1)+o}function s(a){if(!a)return a;for(var o="";a.length>0;){if(a==="."||a===".."){a="";break}var l=a.substring(0,2),c=a.substring(0,3),p=a.substring(0,4);if(c==="../")a=a.substring(3);else if(l==="./")a=a.substring(2);else if(c==="/./")a="/"+a.substring(3);else if(l==="/."&&a.length===2)a="/";else if(p==="/../"||c==="/.."&&a.length===3)a="/"+a.substring(4),o=o.replace(/\/?[^\/]*$/,"");else{var u=a.match(/(\/?([^\/]*))/)[0];o+=u,a=a.substring(u.length)}}return o}}}});var Q6=_((FHe,J6)=>{"use strict";f();J6.exports=A2;var Z6=Fo();function A2(e,t){Z6.call(this,e,t)}A2.prototype=Object.create(Z6.prototype,{constructor:{value:A2}})});var O2=_((LHe,Y6)=>{"use strict";f();Y6.exports={Event:Fo(),UIEvent:Fv(),MouseEvent:Lv(),CustomEvent:Q6()}});var e5=_(Bo=>{"use strict";f();Object.defineProperty(Bo,"__esModule",{value:!0});Bo.hyphenate=Bo.parse=void 0;function zxe(e){let t=[],r=0,n=0,i=0,s=0,a=0,o=null;for(;r<e.length;)switch(e.charCodeAt(r++)){case 40:n++;break;case 41:n--;break;case 39:i===0?i=39:i===39&&e.charCodeAt(r-1)!==92&&(i=0);break;case 34:i===0?i=34:i===34&&e.charCodeAt(r-1)!==92&&(i=0);break;case 58:!o&&n===0&&i===0&&(o=X6(e.substring(a,r-1).trim()),s=r);break;case 59:if(o&&s>0&&n===0&&i===0){let c=e.substring(s,r-1).trim();t.push(o,c),a=r,s=0,o=null}break}if(o&&s){let l=e.slice(s).trim();t.push(o,l)}return t}Bo.parse=zxe;function X6(e){return e.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}Bo.hyphenate=X6});var eh=_((qHe,s5)=>{"use strict";f();var{parse:Hxe}=e5();s5.exports=function(e){let t=new i5(e),r={get:function(n,i){return i in n?n[i]:n.getPropertyValue(t5(i))},has:function(n,i){return!0},set:function(n,i,s){return i in n?n[i]=s:n.setProperty(t5(i),s??void 0),!0}};return new Proxy(t,r)};function t5(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function i5(e){this._element=e}var r5="!important";function n5(e){let t={property:{},priority:{}};if(!e)return t;let r=Hxe(e);if(r.length<2)return t;for(let n=0;n<r.length;n+=2){let i=r[n],s=r[n+1];s.endsWith(r5)&&(t.priority[i]="important",s=s.slice(0,-r5.length).trim()),t.property[i]=s}return t}var $o={};i5.prototype=Object.create(Object.prototype,{_parsed:{get:function(){if(!this._parsedStyles||this.cssText!==this._lastParsedText){var e=this.cssText;this._parsedStyles=n5(e),this._lastParsedText=e,delete this._names}return this._parsedStyles}},_serialize:{value:function(){var e=this._parsed,t="";for(var r in e.property)t&&(t+=" "),t+=r+": "+e.property[r],e.priority[r]&&(t+=" !"+e.priority[r]),t+=";";this.cssText=t,this._lastParsedText=t,delete this._names}},cssText:{get:function(){return this._element.getAttribute("style")},set:function(e){this._element.setAttribute("style",e)}},length:{get:function(){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names.length}},item:{value:function(e){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names[e]}},getPropertyValue:{value:function(e){return e=e.toLowerCase(),this._parsed.property[e]||""}},getPropertyPriority:{value:function(e){return e=e.toLowerCase(),this._parsed.priority[e]||""}},setProperty:{value:function(e,t,r){if(e=e.toLowerCase(),t==null&&(t=""),r==null&&(r=""),t!==$o&&(t=""+t),t=t.trim(),t===""){this.removeProperty(e);return}if(!(r!==""&&r!==$o&&!/^important$/i.test(r))){var n=this._parsed;if(t===$o){if(!n.property[e])return;r!==""?n.priority[e]="important":delete n.priority[e]}else{if(t.indexOf(";")!==-1)return;var i=n5(e+":"+t);if(Object.getOwnPropertyNames(i.property).length===0||Object.getOwnPropertyNames(i.priority).length!==0)return;for(var s in i.property)n.property[s]=i.property[s],r!==$o&&(r!==""?n.priority[s]="important":n.priority[s]&&delete n.priority[s])}this._serialize()}}},setPropertyValue:{value:function(e,t){return this.setProperty(e,t,$o)}},setPropertyPriority:{value:function(e,t){return this.setProperty(e,$o,t)}},removeProperty:{value:function(e){e=e.toLowerCase();var t=this._parsed;e in t.property&&(delete t.property[e],delete t.priority[e],this._serialize())}}})});var N2=_((BHe,a5)=>{"use strict";f();var Yt=Xd();a5.exports=Kc;function Kc(){}Kc.prototype=Object.create(Object.prototype,{_url:{get:function(){return new Yt(this.href)}},protocol:{get:function(){var e=this._url;return e&&e.scheme?e.scheme+":":":"},set:function(e){var t=this.href,r=new Yt(t);r.isAbsolute()&&(e=e.replace(/:+$/,""),e=e.replace(/[^-+\.a-zA-Z0-9]/g,Yt.percentEncode),e.length>0&&(r.scheme=e,t=r.toString())),this.href=t}},host:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host+(e.port?":"+e.port:""):""},set:function(e){var t=this.href,r=new Yt(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,Yt.percentEncode),e.length>0&&(r.host=e,delete r.port,t=r.toString())),this.href=t}},hostname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host:""},set:function(e){var t=this.href,r=new Yt(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/^\/+/,""),e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,Yt.percentEncode),e.length>0&&(r.host=e,t=r.toString())),this.href=t}},port:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()&&e.port!==void 0?e.port:""},set:function(e){var t=this.href,r=new Yt(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=""+e,e=e.replace(/[^0-9].*$/,""),e=e.replace(/^0+/,""),e.length===0&&(e="0"),parseInt(e,10)<=65535&&(r.port=e,t=r.toString())),this.href=t}},pathname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()?e.path:""},set:function(e){var t=this.href,r=new Yt(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)!=="/"&&(e="/"+e),e=e.replace(/[^-+\._~!$&'()*,;:=@\/a-zA-Z0-9]/g,Yt.percentEncode),r.path=e,t=r.toString()),this.href=t}},search:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()&&e.query!==void 0?"?"+e.query:""},set:function(e){var t=this.href,r=new Yt(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)==="?"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,Yt.percentEncode),r.query=e,t=r.toString()),this.href=t}},hash:{get:function(){var e=this._url;return e==null||e.fragment==null||e.fragment===""?"":"#"+e.fragment},set:function(e){var t=this.href,r=new Yt(t);e.charAt(0)==="#"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,Yt.percentEncode),r.fragment=e,t=r.toString(),this.href=t}},username:{get:function(){var e=this._url;return e.username||""},set:function(e){var t=this.href,r=new Yt(t);r.isAbsolute()&&(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\:]/g,Yt.percentEncode),r.username=e,t=r.toString()),this.href=t}},password:{get:function(){var e=this._url;return e.password||""},set:function(e){var t=this.href,r=new Yt(t);r.isAbsolute()&&(e===""?r.password=null:(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\]/g,Yt.percentEncode),r.password=e),t=r.toString()),this.href=t}},origin:{get:function(){var e=this._url;if(e==null)return"";var t=function(r){var n=[e.scheme,e.host,+e.port||r];return n[0]+"://"+n[1]+(n[2]===r?"":":"+n[2])};switch(e.scheme){case"ftp":return t(21);case"gopher":return t(70);case"http":case"ws":return t(80);case"https":case"wss":return t(443);default:return e.scheme+"://"}}}});Kc._inherit=function(e){Object.getOwnPropertyNames(Kc.prototype).forEach(function(t){if(!(t==="constructor"||t==="href")){var r=Object.getOwnPropertyDescriptor(Kc.prototype,t);Object.defineProperty(e,t,r)}})}});var F2=_((zHe,c5)=>{"use strict";f();var o5=Yv(),Uxe=jd().isApiWritable;c5.exports=function(e,t,r,n){var i=e.ctor;if(i){var s=e.props||{};if(e.attributes)for(var a in e.attributes){var o=e.attributes[a];(typeof o!="object"||Array.isArray(o))&&(o={type:o}),o.name||(o.name=a.toLowerCase()),s[a]=o5.property(o)}s.constructor={value:i,writable:Uxe},i.prototype=Object.create((e.superclass||t).prototype,s),e.events&&Gxe(i,e.events),r[e.name]=i}else i=t;return(e.tags||e.tag&&[e.tag]||[]).forEach(function(l){n[l]=i}),i};function l5(e,t,r,n){this.body=e,this.document=t,this.form=r,this.element=n}l5.prototype.build=function(){return()=>{}};function Vxe(e,t,r,n){var i=e.ownerDocument||Object.create(null),s=e.form||Object.create(null);e[t]=new l5(n,i,s,e).build()}function Gxe(e,t){var r=e.prototype;t.forEach(function(n){Object.defineProperty(r,"on"+n,{get:function(){return this._getEventHandler(n)},set:function(i){this._setEventHandler(n,i)}}),o5.registerChangeHandler(e,"on"+n,Vxe)})}});var nh=_(rh=>{"use strict";f();var I2=ar(),u5=jo(),Wxe=eh(),Kr=Lt(),p5=N2(),Kxe=F2(),Di=rh.elements={},Zc=Object.create(null);rh.createElement=function(e,t,r){var n=Zc[t]||Jxe;return new n(e,t,r)};function se(e){return Kxe(e,ge,Di,Zc)}function Pt(e){return{get:function(){var t=this._getattr(e);if(t===null)return"";var r=this.doc._resolve(t);return r===null?t:r},set:function(t){this._setattr(e,t)}}}function th(e){return{get:function(){var t=this._getattr(e);return t===null?null:t.toLowerCase()==="use-credentials"?"use-credentials":"anonymous"},set:function(t){t==null?this.removeAttribute(e):this._setattr(e,t)}}}var zo={type:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],missing:""},Zxe={A:!0,LINK:!0,BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,COMMAND:!0},Tn=function(e,t,r){ge.call(this,e,t,r),this._form=null},ge=rh.HTMLElement=se({superclass:u5,name:"HTMLElement",ctor:function(t,r,n){u5.call(this,t,r,Kr.NAMESPACE.HTML,n)},props:{dangerouslySetInnerHTML:{set:function(e){this._innerHTML=e}},innerHTML:{get:function(){return this.serialize()},set:function(e){var t=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,this);t.parse(e===null?"":String(e),!0);for(var r=this instanceof Zc.template?this.content:this;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(t._asDocumentFragment())}},style:{get:function(){return this._style||(this._style=new Wxe(this)),this._style},set:function(e){e==null&&(e=""),this._setattr("style",String(e))}},blur:{value:function(){}},focus:{value:function(){}},forceSpellCheck:{value:function(){}},click:{value:function(){if(!this._click_in_progress){this._click_in_progress=!0;try{this._pre_click_activation_steps&&this._pre_click_activation_steps();var e=this.ownerDocument.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);var t=this.dispatchEvent(e);t?this._post_click_activation_steps&&this._post_click_activation_steps(e):this._cancelled_activation_steps&&this._cancelled_activation_steps()}finally{this._click_in_progress=!1}}}},submit:{value:Kr.nyi}},attributes:{title:String,lang:String,dir:{type:["ltr","rtl","auto"],missing:""},draggable:{type:["true","false"],treatNullAsEmptyString:!0},spellcheck:{type:["true","false"],missing:""},enterKeyHint:{type:["enter","done","go","next","previous","search","send"],missing:""},autoCapitalize:{type:["off","on","none","sentences","words","characters"],missing:""},autoFocus:Boolean,accessKey:String,nonce:String,hidden:Boolean,translate:{type:["no","yes"],missing:""},tabIndex:{type:"long",default:function(){return this.tagName in Zxe||this.contentEditable?0:-1}}},events:["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"]}),Jxe=se({name:"HTMLUnknownElement",ctor:function(t,r,n){ge.call(this,t,r,n)}}),An={form:{get:function(){return this._form}}};se({tag:"a",name:"HTMLAnchorElement",ctor:function(t,r,n){ge.call(this,t,r,n)},props:{_post_click_activation_steps:{value:function(e){this.href&&(this.ownerDocument.defaultView.location=this.href)}}},attributes:{href:Pt,ping:String,download:String,target:String,rel:String,media:String,hreflang:String,type:String,referrerPolicy:zo,coords:String,charset:String,name:String,rev:String,shape:String}});p5._inherit(Zc.a.prototype);se({tag:"area",name:"HTMLAreaElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{alt:String,target:String,download:String,rel:String,media:String,href:Pt,hreflang:String,type:String,shape:String,coords:String,ping:String,referrerPolicy:zo,noHref:Boolean}});p5._inherit(Zc.area.prototype);se({tag:"br",name:"HTMLBRElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{clear:String}});se({tag:"base",name:"HTMLBaseElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{target:String}});se({tag:"body",name:"HTMLBodyElement",ctor:function(t,r,n){ge.call(this,t,r,n)},events:["afterprint","beforeprint","beforeunload","blur","error","focus","hashchange","load","message","offline","online","pagehide","pageshow","popstate","resize","scroll","storage","unload"],attributes:{text:{type:String,treatNullAsEmptyString:!0},link:{type:String,treatNullAsEmptyString:!0},vLink:{type:String,treatNullAsEmptyString:!0},aLink:{type:String,treatNullAsEmptyString:!0},bgColor:{type:String,treatNullAsEmptyString:!0},background:String}});se({tag:"button",name:"HTMLButtonElement",ctor:function(t,r,n){Tn.call(this,t,r,n)},props:An,attributes:{name:String,value:String,disabled:Boolean,autofocus:Boolean,type:{type:["submit","reset","button","menu"],missing:"submit"},formTarget:String,formAction:Pt,formNoValidate:Boolean,formMethod:{type:["get","post","dialog"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""}}});se({tag:"dl",name:"HTMLDListElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{compact:Boolean}});se({tag:"data",name:"HTMLDataElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{value:String}});se({tag:"datalist",name:"HTMLDataListElement",ctor:function(t,r,n){ge.call(this,t,r,n)}});se({tag:"details",name:"HTMLDetailsElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{open:Boolean}});se({tag:"div",name:"HTMLDivElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{align:String}});se({tag:"embed",name:"HTMLEmbedElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{src:Pt,type:String,width:String,height:String,align:String,name:String}});se({tag:"fieldset",name:"HTMLFieldSetElement",ctor:function(t,r,n){Tn.call(this,t,r,n)},props:An,attributes:{disabled:Boolean,name:String}});se({tag:"form",name:"HTMLFormElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{action:String,autocomplete:{type:["on","off"],missing:"on"},name:String,acceptCharset:{name:"accept-charset"},target:String,noValidate:Boolean,method:{type:["get","post","dialog"],invalid:"get",missing:"get"},enctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"},encoding:{name:"enctype",type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"}}});se({tag:"hr",name:"HTMLHRElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{align:String,color:String,noShade:Boolean,size:String,width:String}});se({tag:"head",name:"HTMLHeadElement",ctor:function(t,r,n){ge.call(this,t,r,n)}});se({tags:["h1","h2","h3","h4","h5","h6"],name:"HTMLHeadingElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{align:String}});se({tag:"html",name:"HTMLHtmlElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{xmlns:Pt,version:String}});se({tag:"iframe",name:"HTMLIFrameElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{src:Pt,srcdoc:String,name:String,width:String,height:String,seamless:Boolean,allow:Boolean,allowFullscreen:Boolean,allowUserMedia:Boolean,allowPaymentRequest:Boolean,referrerPolicy:zo,loading:{type:["eager","lazy"],treatNullAsEmptyString:!0},align:String,scrolling:String,frameBorder:String,longDesc:Pt,marginHeight:{type:String,treatNullAsEmptyString:!0},marginWidth:{type:String,treatNullAsEmptyString:!0}}});se({tag:"img",name:"HTMLImageElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{alt:String,src:Pt,srcset:String,crossOrigin:th,useMap:String,isMap:Boolean,sizes:String,height:{type:"unsigned long",default:0},width:{type:"unsigned long",default:0},referrerPolicy:zo,loading:{type:["eager","lazy"],missing:""},name:String,lowsrc:Pt,align:String,hspace:{type:"unsigned long",default:0},vspace:{type:"unsigned long",default:0},longDesc:Pt,border:{type:String,treatNullAsEmptyString:!0}}});se({tag:"input",name:"HTMLInputElement",ctor:function(t,r,n){Tn.call(this,t,r,n)},props:{form:An.form,_post_click_activation_steps:{value:function(e){if(this.type==="checkbox")this.checked=!this.checked;else if(this.type==="radio")for(var t=this.form.getElementsByName(this.name),r=t.length-1;r>=0;r--){var n=t[r];n.checked=n===this}}}},attributes:{name:String,disabled:Boolean,autofocus:Boolean,accept:String,alt:String,max:String,min:String,pattern:String,placeholder:String,step:String,dirName:String,defaultValue:{name:"value"},multiple:Boolean,required:Boolean,readOnly:Boolean,checked:Boolean,value:String,src:Pt,defaultChecked:{name:"checked",type:Boolean},size:{type:"unsigned long",default:20,min:1,setmin:1},width:{type:"unsigned long",min:0,setmin:0,default:0},height:{type:"unsigned long",min:0,setmin:0,default:0},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},autocomplete:String,type:{type:["text","hidden","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"],missing:"text"},formTarget:String,formNoValidate:Boolean,formMethod:{type:["get","post"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""},align:String,useMap:String}});se({tag:"keygen",name:"HTMLKeygenElement",ctor:function(t,r,n){Tn.call(this,t,r,n)},props:An,attributes:{name:String,disabled:Boolean,autofocus:Boolean,challenge:String,keytype:{type:["rsa"],missing:""}}});se({tag:"li",name:"HTMLLIElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{value:{type:"long",default:0},type:String}});se({tag:"label",name:"HTMLLabelElement",ctor:function(t,r,n){Tn.call(this,t,r,n)},props:An,attributes:{htmlFor:{name:"for",type:String}}});se({tag:"legend",name:"HTMLLegendElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{align:String}});se({tag:"link",name:"HTMLLinkElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{href:Pt,rel:String,media:String,hreflang:String,type:String,crossOrigin:th,nonce:String,integrity:String,referrerPolicy:zo,imageSizes:String,imageSrcset:String,charset:String,rev:String,target:String}});se({tag:"map",name:"HTMLMapElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{name:String}});se({tag:"menu",name:"HTMLMenuElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{type:{type:["context","popup","toolbar"],missing:"toolbar"},label:String,compact:Boolean}});se({tag:"meta",name:"HTMLMetaElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{name:String,content:String,httpEquiv:{name:"http-equiv",type:String},scheme:String}});se({tag:"meter",name:"HTMLMeterElement",ctor:function(t,r,n){Tn.call(this,t,r,n)},props:An});se({tags:["ins","del"],name:"HTMLModElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{cite:Pt,dateTime:String}});se({tag:"ol",name:"HTMLOListElement",ctor:function(t,r,n){ge.call(this,t,r,n)},props:{_numitems:{get:function(){var e=0;return this.childNodes.forEach(function(t){t.nodeType===I2.ELEMENT_NODE&&t.tagName==="LI"&&e++}),e}}},attributes:{type:String,reversed:Boolean,start:{type:"long",default:function(){return this.reversed?this._numitems:1}},compact:Boolean}});se({tag:"object",name:"HTMLObjectElement",ctor:function(t,r,n){Tn.call(this,t,r,n)},props:An,attributes:{data:Pt,type:String,name:String,useMap:String,typeMustMatch:Boolean,width:String,height:String,align:String,archive:String,code:String,declare:Boolean,hspace:{type:"unsigned long",default:0},standby:String,vspace:{type:"unsigned long",default:0},codeBase:Pt,codeType:String,border:{type:String,treatNullAsEmptyString:!0}}});se({tag:"optgroup",name:"HTMLOptGroupElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{disabled:Boolean,label:String}});se({tag:"option",name:"HTMLOptionElement",ctor:function(t,r,n){ge.call(this,t,r,n)},props:{form:{get:function(){for(var e=this.parentNode;e&&e.nodeType===I2.ELEMENT_NODE;){if(e.localName==="select")return e.form;e=e.parentNode}}},value:{get:function(){return this._getattr("value")||this.text},set:function(e){this._setattr("value",e)}},text:{get:function(){return this.textContent.replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.textContent=e}}},attributes:{disabled:Boolean,defaultSelected:{name:"selected",type:Boolean},label:String}});se({tag:"output",name:"HTMLOutputElement",ctor:function(t,r,n){Tn.call(this,t,r,n)},props:An,attributes:{name:String}});se({tag:"p",name:"HTMLParagraphElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{align:String}});se({tag:"param",name:"HTMLParamElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{name:String,value:String,type:String,valueType:String}});se({tags:["pre","listing","xmp"],name:"HTMLPreElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{width:{type:"long",default:0}}});se({tag:"progress",name:"HTMLProgressElement",ctor:function(t,r,n){Tn.call(this,t,r,n)},props:An,attributes:{max:{type:Number,float:!0,default:1,min:0}}});se({tags:["q","blockquote"],name:"HTMLQuoteElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{cite:Pt}});se({tag:"script",name:"HTMLScriptElement",ctor:function(t,r,n){ge.call(this,t,r,n)},props:{text:{get:function(){for(var e="",t=0,r=this.childNodes.length;t<r;t++){var n=this.childNodes[t];n.nodeType===I2.TEXT_NODE&&(e+=n._data)}return e},set:function(e){this.removeChildren(),e!==null&&e!==""&&this.appendChild(this.ownerDocument.createTextNode(e))}}},attributes:{src:Pt,type:String,charset:String,referrerPolicy:zo,defer:Boolean,async:Boolean,nomodule:Boolean,crossOrigin:th,nonce:String,integrity:String}});se({tag:"select",name:"HTMLSelectElement",ctor:function(t,r,n){Tn.call(this,t,r,n)},props:{form:An.form,options:{get:function(){return this.getElementsByTagName("option")}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,multiple:Boolean,required:Boolean,size:{type:"unsigned long",default:0}}});se({tag:"span",name:"HTMLSpanElement",ctor:function(t,r,n){ge.call(this,t,r,n)}});se({tag:"style",name:"HTMLStyleElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{media:String,type:String,scoped:Boolean}});se({tag:"caption",name:"HTMLTableCaptionElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{align:String}});se({name:"HTMLTableCellElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{colSpan:{type:"unsigned long",default:1},rowSpan:{type:"unsigned long",default:1},scope:{type:["row","col","rowgroup","colgroup"],missing:""},abbr:String,align:String,axis:String,height:String,width:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},noWrap:Boolean,vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});se({tags:["col","colgroup"],name:"HTMLTableColElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{span:{type:"limited unsigned long with fallback",default:1,min:1},align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,width:String}});se({tag:"table",name:"HTMLTableElement",ctor:function(t,r,n){ge.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,border:String,frame:String,rules:String,summary:String,width:String,bgColor:{type:String,treatNullAsEmptyString:!0},cellPadding:{type:String,treatNullAsEmptyString:!0},cellSpacing:{type:String,treatNullAsEmptyString:!0}}});se({tag:"template",name:"HTMLTemplateElement",ctor:function(t,r,n){ge.call(this,t,r,n),this._contentFragment=t._templateDoc.createDocumentFragment()},props:{content:{get:function(){return this._contentFragment}},serialize:{value:function(){return this.content.serialize()}}}});se({tag:"tr",name:"HTMLTableRowElement",ctor:function(t,r,n){ge.call(this,t,r,n)},props:{cells:{get:function(){return this.querySelectorAll("td,th")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});se({tags:["thead","tfoot","tbody"],name:"HTMLTableSectionElement",ctor:function(t,r,n){ge.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String}});se({tag:"textarea",name:"HTMLTextAreaElement",ctor:function(t,r,n){Tn.call(this,t,r,n)},props:{form:An.form,type:{get:function(){return"textarea"}},defaultValue:{get:function(){return this.textContent},set:function(e){this.textContent=e}},value:{get:function(){return this.defaultValue},set:function(e){this.defaultValue=e}},textLength:{get:function(){return this.value.length}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,placeholder:String,wrap:String,dirName:String,required:Boolean,readOnly:Boolean,rows:{type:"limited unsigned long with fallback",default:2},cols:{type:"limited unsigned long with fallback",default:20},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""}}});se({tag:"time",name:"HTMLTimeElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{dateTime:String,pubDate:Boolean}});se({tag:"title",name:"HTMLTitleElement",ctor:function(t,r,n){ge.call(this,t,r,n)},props:{text:{get:function(){return this.textContent}}}});se({tag:"ul",name:"HTMLUListElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{type:String,compact:Boolean}});se({name:"HTMLMediaElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{src:Pt,crossOrigin:th,preload:{type:["metadata","none","auto",{value:"",alias:"auto"}],missing:"auto"},loop:Boolean,autoplay:Boolean,mediaGroup:String,controls:Boolean,defaultMuted:{name:"muted",type:Boolean}}});se({name:"HTMLAudioElement",tag:"audio",superclass:Di.HTMLMediaElement,ctor:function(t,r,n){Di.HTMLMediaElement.call(this,t,r,n)}});se({name:"HTMLVideoElement",tag:"video",superclass:Di.HTMLMediaElement,ctor:function(t,r,n){Di.HTMLMediaElement.call(this,t,r,n)},attributes:{poster:Pt,width:{type:"unsigned long",min:0,default:0},height:{type:"unsigned long",min:0,default:0}}});se({tag:"td",name:"HTMLTableDataCellElement",superclass:Di.HTMLTableCellElement,ctor:function(t,r,n){Di.HTMLTableCellElement.call(this,t,r,n)}});se({tag:"th",name:"HTMLTableHeaderCellElement",superclass:Di.HTMLTableCellElement,ctor:function(t,r,n){Di.HTMLTableCellElement.call(this,t,r,n)}});se({tag:"frameset",name:"HTMLFrameSetElement",ctor:function(t,r,n){ge.call(this,t,r,n)}});se({tag:"frame",name:"HTMLFrameElement",ctor:function(t,r,n){ge.call(this,t,r,n)}});se({tag:"canvas",name:"HTMLCanvasElement",ctor:function(t,r,n){ge.call(this,t,r,n)},props:{getContext:{value:Kr.nyi},probablySupportsContext:{value:Kr.nyi},setContext:{value:Kr.nyi},transferControlToProxy:{value:Kr.nyi},toDataURL:{value:Kr.nyi},toBlob:{value:Kr.nyi}},attributes:{width:{type:"unsigned long",default:300},height:{type:"unsigned long",default:150}}});se({tag:"dialog",name:"HTMLDialogElement",ctor:function(t,r,n){ge.call(this,t,r,n)},props:{show:{value:Kr.nyi},showModal:{value:Kr.nyi},close:{value:Kr.nyi}},attributes:{open:Boolean,returnValue:String}});se({tag:"menuitem",name:"HTMLMenuItemElement",ctor:function(t,r,n){ge.call(this,t,r,n)},props:{_label:{get:function(){var e=this._getattr("label");return e!==null&&e!==""?e:(e=this.textContent,e.replace(/[ \t\n\f\r]+/g," ").trim())}},label:{get:function(){var e=this._getattr("label");return e!==null?e:this._label},set:function(e){this._setattr("label",e)}}},attributes:{type:{type:["command","checkbox","radio"],missing:"command"},icon:Pt,disabled:Boolean,checked:Boolean,radiogroup:String,default:Boolean}});se({tag:"source",name:"HTMLSourceElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{srcset:String,sizes:String,media:String,src:Pt,type:String,width:String,height:String}});se({tag:"track",name:"HTMLTrackElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{src:Pt,srclang:String,label:String,default:Boolean,kind:{type:["subtitles","captions","descriptions","chapters","metadata"],missing:"subtitles",invalid:"metadata"}},props:{NONE:{get:function(){return 0}},LOADING:{get:function(){return 1}},LOADED:{get:function(){return 2}},ERROR:{get:function(){return 3}},readyState:{get:Kr.nyi},track:{get:Kr.nyi}}});se({tag:"font",name:"HTMLFontElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{color:{type:String,treatNullAsEmptyString:!0},face:{type:String},size:{type:String}}});se({tag:"dir",name:"HTMLDirectoryElement",ctor:function(t,r,n){ge.call(this,t,r,n)},attributes:{compact:Boolean}});se({tags:["abbr","address","article","aside","b","bdi","bdo","cite","content","code","dd","dfn","dt","em","figcaption","figure","footer","header","hgroup","i","kbd","main","mark","nav","noscript","rb","rp","rt","rtc","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr","acronym","basefont","big","center","nobr","noembed","noframes","plaintext","strike","tt"]})});var R2=_(ih=>{"use strict";f();var f5=jo(),Qxe=F2(),Yxe=Lt(),Xxe=eh(),ebe=ih.elements={},d5=Object.create(null);ih.createElement=function(e,t,r){var n=d5[t]||P2;return new n(e,t,r)};function L2(e){return Qxe(e,P2,ebe,d5)}var P2=L2({superclass:f5,name:"SVGElement",ctor:function(t,r,n){f5.call(this,t,r,Yxe.NAMESPACE.SVG,n)},props:{style:{get:function(){return this._style||(this._style=new Xxe(this)),this._style}}}});L2({name:"SVGSVGElement",ctor:function(t,r,n){P2.call(this,t,r,n)},tag:"svg",props:{createSVGRect:{value:function(){return ih.createElement(this.ownerDocument,"rect",null)}}}});L2({tags:["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]})});var m5=_((KHe,h5)=>{"use strict";f();h5.exports={VALUE:1,ATTR:2,REMOVE_ATTR:3,REMOVE:4,MOVE:5,INSERT:6}});var ah=_((JHe,S5)=>{"use strict";f();S5.exports=Qc;var gr=ar(),tbe=ga(),_5=zd(),os=jo(),rbe=m2(),nbe=x2(),Jc=Fo(),ibe=y2(),sbe=_2(),abe=Yc(),obe=$6(),lbe=W6(),g5=Wc(),x5=Xd(),b5=Wd(),cbe=O2(),sh=Hd(),M2=nh(),ube=R2(),tt=Lt(),Ho=m5(),Vo=tt.NAMESPACE,q2=jd().isApiWritable;function Qc(e,t){_5.call(this),this.nodeType=gr.DOCUMENT_NODE,this.isHTML=e,this._address=t||"about:blank",this.readyState="loading",this.implementation=new abe(this),this.ownerDocument=null,this._contentType=e?"text/html":"application/xml",this.doctype=null,this.documentElement=null,this._templateDocCache=null,this._nodeIterators=null,this._nid=1,this._nextnid=2,this._nodes=[null,this],this.byId=Object.create(null),this.modclock=0}var pbe={event:"Event",customevent:"CustomEvent",uievent:"UIEvent",mouseevent:"MouseEvent"},fbe={events:"event",htmlevents:"event",mouseevents:"mouseevent",mutationevents:"mutationevent",uievents:"uievent"},Uo=function(e,t,r){return{get:function(){var n=e.call(this);return n?n[t]:r},set:function(n){var i=e.call(this);i&&(i[t]=n)}}};function y5(e,t){var r,n,i;return e===""&&(e=null),sh.isValidQName(t)||tt.InvalidCharacterError(),r=null,n=t,i=t.indexOf(":"),i>=0&&(r=t.substring(0,i),n=t.substring(i+1)),r!==null&&e===null&&tt.NamespaceError(),r==="xml"&&e!==Vo.XML&&tt.NamespaceError(),(r==="xmlns"||t==="xmlns")&&e!==Vo.XMLNS&&tt.NamespaceError(),e===Vo.XMLNS&&!(r==="xmlns"||t==="xmlns")&&tt.NamespaceError(),{namespace:e,prefix:r,localName:n}}Qc.prototype=Object.create(_5.prototype,{_setMutationHandler:{value:function(e){this.mutationHandler=e}},_dispatchRendererEvent:{value:function(e,t,r){var n=this._nodes[e];n&&n._dispatchEvent(new Jc(t,r),!0)}},nodeName:{value:"#document"},nodeValue:{get:function(){return null},set:function(){}},documentURI:{get:function(){return this._address},set:tt.nyi},compatMode:{get:function(){return this._quirks?"BackCompat":"CSS1Compat"}},createTextNode:{value:function(e){return new rbe(this,String(e))}},createComment:{value:function(e){return new nbe(this,e)}},createDocumentFragment:{value:function(){return new ibe(this)}},createProcessingInstruction:{value:function(e,t){return(!sh.isValidName(e)||t.indexOf("?>")!==-1)&&tt.InvalidCharacterError(),new sbe(this,e,t)}},createAttribute:{value:function(e){return e=String(e),sh.isValidName(e)||tt.InvalidCharacterError(),this.isHTML&&(e=tt.toASCIILowerCase(e)),new os._Attr(null,e,null,null,"")}},createAttributeNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=y5(e,t);return new os._Attr(null,r.localName,r.prefix,r.namespace,"")}},createElement:{value:function(e){return e=String(e),sh.isValidName(e)||tt.InvalidCharacterError(),this.isHTML?(/[A-Z]/.test(e)&&(e=tt.toASCIILowerCase(e)),M2.createElement(this,e,null)):this.contentType==="application/xhtml+xml"?M2.createElement(this,e,null):new os(this,e,null,null)},writable:q2},createElementNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=y5(e,t);return this._createElementNS(r.localName,r.namespace,r.prefix)},writable:q2},_createElementNS:{value:function(e,t,r){return t===Vo.HTML?M2.createElement(this,e,r):t===Vo.SVG?ube.createElement(this,e,r):new os(this,e,t,r)}},createEvent:{value:function(t){t=t.toLowerCase();var r=fbe[t]||t,n=cbe[pbe[r]];if(n){var i=new n;return i._initialized=!1,i}else tt.NotSupportedError()}},createTreeWalker:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof gr))throw new TypeError("root not a node");return t=t===void 0?g5.SHOW_ALL:+t,r=r===void 0?null:r,new obe(e,t,r)}},createNodeIterator:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof gr))throw new TypeError("root not a node");return t=t===void 0?g5.SHOW_ALL:+t,r=r===void 0?null:r,new lbe(e,t,r)}},_attachNodeIterator:{value:function(e){this._nodeIterators||(this._nodeIterators=[]),this._nodeIterators.push(e)}},_detachNodeIterator:{value:function(e){var t=this._nodeIterators.indexOf(e);this._nodeIterators.splice(t,1)}},_preremoveNodeIterators:{value:function(e){this._nodeIterators&&this._nodeIterators.forEach(function(t){t._preremove(e)})}},_updateDocTypeElement:{value:function(){this.doctype=this.documentElement=null;for(var t=this.firstChild;t!==null;t=t.nextSibling)t.nodeType===gr.DOCUMENT_TYPE_NODE?this.doctype=t:t.nodeType===gr.ELEMENT_NODE&&(this.documentElement=t)}},insertBefore:{value:function(t,r){return gr.prototype.insertBefore.call(this,t,r),this._updateDocTypeElement(),t}},replaceChild:{value:function(t,r){return gr.prototype.replaceChild.call(this,t,r),this._updateDocTypeElement(),r}},removeChild:{value:function(t){return gr.prototype.removeChild.call(this,t),this._updateDocTypeElement(),t}},getElementById:{value:function(e){var t=this.byId[e];return t?t instanceof Si?t.getFirst():t:null}},_hasMultipleElementsWithId:{value:function(e){return this.byId[e]instanceof Si}},getElementsByName:{value:os.prototype.getElementsByName},getElementsByTagName:{value:os.prototype.getElementsByTagName},getElementsByTagNameNS:{value:os.prototype.getElementsByTagNameNS},getElementsByClassName:{value:os.prototype.getElementsByClassName},adoptNode:{value:function(t){return t.nodeType===gr.DOCUMENT_NODE&&tt.NotSupportedError(),t.nodeType===gr.ATTRIBUTE_NODE||(t.parentNode&&t.parentNode.removeChild(t),t.ownerDocument!==this&&D5(t,this)),t}},importNode:{value:function(t,r){return this.adoptNode(t.cloneNode(r))},writable:q2},origin:{get:function(){return null}},characterSet:{get:function(){return"UTF-8"}},contentType:{get:function(){return this._contentType}},URL:{get:function(){return this._address}},domain:{get:tt.nyi,set:tt.nyi},referrer:{get:tt.nyi},cookie:{get:tt.nyi,set:tt.nyi},lastModified:{get:tt.nyi},location:{get:function(){return this.defaultView?this.defaultView.location:null},set:tt.nyi},_titleElement:{get:function(){return this.getElementsByTagName("title").item(0)||null}},title:{get:function(){var e=this._titleElement,t=e?e.textContent:"";return t.replace(/[ \t\n\r\f]+/g," ").replace(/(^ )|( $)/g,"")},set:function(e){var t=this._titleElement,r=this.head;!t&&!r||(t||(t=this.createElement("title"),r.appendChild(t)),t.textContent=e)}},dir:Uo(function(){var e=this.documentElement;if(e&&e.tagName==="HTML")return e},"dir",""),fgColor:Uo(function(){return this.body},"text",""),linkColor:Uo(function(){return this.body},"link",""),vlinkColor:Uo(function(){return this.body},"vLink",""),alinkColor:Uo(function(){return this.body},"aLink",""),bgColor:Uo(function(){return this.body},"bgColor",""),charset:{get:function(){return this.characterSet}},inputEncoding:{get:function(){return this.characterSet}},scrollingElement:{get:function(){return this._quirks?this.body:this.documentElement}},body:{get:function(){return v5(this.documentElement,"body")},set:tt.nyi},head:{get:function(){return v5(this.documentElement,"head")}},images:{get:tt.nyi},embeds:{get:tt.nyi},plugins:{get:tt.nyi},links:{get:tt.nyi},forms:{get:tt.nyi},scripts:{get:tt.nyi},applets:{get:function(){return[]}},activeElement:{get:function(){return null}},innerHTML:{get:function(){return this.serialize()},set:tt.nyi},outerHTML:{get:function(){return this.serialize()},set:tt.nyi},write:{value:function(e){if(this.isHTML||tt.InvalidStateError(),!!this._parser){this._parser;var t=arguments.join("");this._parser.parse(t)}}},writeln:{value:function(t){this.write(Array.prototype.join.call(arguments,"")+`
|
|
171
|
+
`)}},open:{value:function(){this.documentElement=null}},close:{value:function(){this.readyState="interactive",this._dispatchEvent(new Jc("readystatechange"),!0),this._dispatchEvent(new Jc("DOMContentLoaded"),!0),this.readyState="complete",this._dispatchEvent(new Jc("readystatechange"),!0),this.defaultView&&this.defaultView._dispatchEvent(new Jc("load"),!0)}},clone:{value:function(){var t=new Qc(this.isHTML,this._address);return t._quirks=this._quirks,t._contentType=this._contentType,t}},cloneNode:{value:function(t){var r=gr.prototype.cloneNode.call(this,!1);if(t)for(var n=this.firstChild;n!==null;n=n.nextSibling)r._appendChild(r.importNode(n,!0));return r._updateDocTypeElement(),r}},isEqual:{value:function(t){return!0}},mutateValue:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Ho.VALUE,target:e,data:e.data})}},mutateAttr:{value:function(e,t){this.mutationHandler&&this.mutationHandler({type:Ho.ATTR,target:e.ownerElement,attr:e})}},mutateRemoveAttr:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Ho.REMOVE_ATTR,target:e.ownerElement,attr:e})}},mutateRemove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Ho.REMOVE,target:e.parentNode,node:e}),E5(e)}},mutateInsert:{value:function(e){w5(e),this.mutationHandler&&this.mutationHandler({type:Ho.INSERT,target:e.parentNode,node:e})}},mutateMove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Ho.MOVE,target:e})}},addId:{value:function(t,r){var n=this.byId[t];n?(n instanceof Si||(n=new Si(n),this.byId[t]=n),n.add(r)):this.byId[t]=r}},delId:{value:function(t,r){var n=this.byId[t];tt.assert(n),n instanceof Si?(n.del(r),n.length===1&&(this.byId[t]=n.downgrade())):this.byId[t]=void 0}},_resolve:{value:function(e){return new x5(this._documentBaseURL).resolve(e)}},_documentBaseURL:{get:function(){var e=this._address;e==="about:blank"&&(e="/");var t=this.querySelector("base[href]");return t?new x5(e).resolve(t.getAttribute("href")):e}},_templateDoc:{get:function(){if(!this._templateDocCache){var e=new Qc(this.isHTML,this._address);this._templateDocCache=e._templateDocCache=e}return this._templateDocCache}},querySelector:{value:function(e){return b5(e,this)[0]}},querySelectorAll:{value:function(e){var t=b5(e,this);return t.item?t:new tbe(t)}}});var dbe=["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"];dbe.forEach(function(e){Object.defineProperty(Qc.prototype,"on"+e,{get:function(){return this._getEventHandler(e)},set:function(t){this._setEventHandler(e,t)}})});function v5(e,t){if(e&&e.isHTML){for(var r=e.firstChild;r!==null;r=r.nextSibling)if(r.nodeType===gr.ELEMENT_NODE&&r.localName===t&&r.namespaceURI===Vo.HTML)return r}return null}function hbe(e){if(e._nid=e.ownerDocument._nextnid++,e.ownerDocument._nodes[e._nid]=e,e.nodeType===gr.ELEMENT_NODE){var t=e.getAttribute("id");t&&e.ownerDocument.addId(t,e),e._roothook&&e._roothook()}}function mbe(e){if(e.nodeType===gr.ELEMENT_NODE){var t=e.getAttribute("id");t&&e.ownerDocument.delId(t,e)}e.ownerDocument._nodes[e._nid]=void 0,e._nid=void 0}function w5(e){if(hbe(e),e.nodeType===gr.ELEMENT_NODE)for(var t=e.firstChild;t!==null;t=t.nextSibling)w5(t)}function E5(e){mbe(e);for(var t=e.firstChild;t!==null;t=t.nextSibling)E5(t)}function D5(e,t){e.ownerDocument=t,e._lastModTime=void 0,Object.prototype.hasOwnProperty.call(e,"_tagName")&&(e._tagName=void 0);for(var r=e.firstChild;r!==null;r=r.nextSibling)D5(r,t)}function Si(e){this.nodes=Object.create(null),this.nodes[e._nid]=e,this.length=1,this.firstNode=void 0}Si.prototype.add=function(e){this.nodes[e._nid]||(this.nodes[e._nid]=e,this.length++,this.firstNode=void 0)};Si.prototype.del=function(e){this.nodes[e._nid]&&(delete this.nodes[e._nid],this.length--,this.firstNode=void 0)};Si.prototype.getFirst=function(){if(!this.firstNode){var e;for(e in this.nodes)(this.firstNode===void 0||this.firstNode.compareDocumentPosition(this.nodes[e])&gr.DOCUMENT_POSITION_PRECEDING)&&(this.firstNode=this.nodes[e])}return this.firstNode};Si.prototype.downgrade=function(){if(this.length===1){var e;for(e in this.nodes)return this.nodes[e]}return this}});var lh=_((YHe,C5)=>{"use strict";f();C5.exports=oh;var gbe=ar(),k5=d2(),xbe=Kd();function oh(e,t,r,n){k5.call(this),this.nodeType=gbe.DOCUMENT_TYPE_NODE,this.ownerDocument=e||null,this.name=t,this.publicId=r||"",this.systemId=n||""}oh.prototype=Object.create(k5.prototype,{nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return null},set:function(){}},clone:{value:function(){return new oh(this.ownerDocument,this.name,this.publicId,this.systemId)}},isEqual:{value:function(t){return this.name===t.name&&this.publicId===t.publicId&&this.systemId===t.systemId}}});Object.defineProperties(oh.prototype,xbe)});var mh=_((eUe,J5)=>{"use strict";f();J5.exports=Xe;var bbe=ah(),ybe=lh(),j2=ar(),ye=Lt().NAMESPACE,z5=nh(),st=z5.elements,ba=Function.prototype.apply.bind(Array.prototype.push),ch=-1,Go=1,xr=2,Ve=3,Jn=4,vbe=5,_be=[],wbe=/^HTML$|^-\/\/W3O\/\/DTD W3 HTML Strict 3\.0\/\/EN\/\/$|^-\/W3C\/DTD HTML 4\.0 Transitional\/EN$|^\+\/\/Silmaril\/\/dtd html Pro v0r11 19970101\/\/|^-\/\/AdvaSoft Ltd\/\/DTD HTML 3\.0 asWedit \+ extensions\/\/|^-\/\/AS\/\/DTD HTML 3\.0 asWedit \+ extensions\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Level 1\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Level 2\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict Level 1\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict Level 2\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict\/\/|^-\/\/IETF\/\/DTD HTML 2\.0\/\/|^-\/\/IETF\/\/DTD HTML 2\.1E\/\/|^-\/\/IETF\/\/DTD HTML 3\.0\/\/|^-\/\/IETF\/\/DTD HTML 3\.2 Final\/\/|^-\/\/IETF\/\/DTD HTML 3\.2\/\/|^-\/\/IETF\/\/DTD HTML 3\/\/|^-\/\/IETF\/\/DTD HTML Level 0\/\/|^-\/\/IETF\/\/DTD HTML Level 1\/\/|^-\/\/IETF\/\/DTD HTML Level 2\/\/|^-\/\/IETF\/\/DTD HTML Level 3\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 0\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 1\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 2\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 3\/\/|^-\/\/IETF\/\/DTD HTML Strict\/\/|^-\/\/IETF\/\/DTD HTML\/\/|^-\/\/Metrius\/\/DTD Metrius Presentational\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 HTML Strict\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 HTML\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 Tables\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 HTML Strict\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 HTML\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 Tables\/\/|^-\/\/Netscape Comm\. Corp\.\/\/DTD HTML\/\/|^-\/\/Netscape Comm\. Corp\.\/\/DTD Strict HTML\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML 2\.0\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML Extended 1\.0\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML Extended Relaxed 1\.0\/\/|^-\/\/SoftQuad Software\/\/DTD HoTMetaL PRO 6\.0::19990601::extensions to HTML 4\.0\/\/|^-\/\/SoftQuad\/\/DTD HoTMetaL PRO 4\.0::19971010::extensions to HTML 4\.0\/\/|^-\/\/Spyglass\/\/DTD HTML 2\.0 Extended\/\/|^-\/\/SQ\/\/DTD HTML 2\.0 HoTMetaL \+ extensions\/\/|^-\/\/Sun Microsystems Corp\.\/\/DTD HotJava HTML\/\/|^-\/\/Sun Microsystems Corp\.\/\/DTD HotJava Strict HTML\/\/|^-\/\/W3C\/\/DTD HTML 3 1995-03-24\/\/|^-\/\/W3C\/\/DTD HTML 3\.2 Draft\/\/|^-\/\/W3C\/\/DTD HTML 3\.2 Final\/\/|^-\/\/W3C\/\/DTD HTML 3\.2\/\/|^-\/\/W3C\/\/DTD HTML 3\.2S Draft\/\/|^-\/\/W3C\/\/DTD HTML 4\.0 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.0 Transitional\/\/|^-\/\/W3C\/\/DTD HTML Experimental 19960712\/\/|^-\/\/W3C\/\/DTD HTML Experimental 970421\/\/|^-\/\/W3C\/\/DTD W3 HTML\/\/|^-\/\/W3O\/\/DTD W3 HTML 3\.0\/\/|^-\/\/WebTechs\/\/DTD Mozilla HTML 2\.0\/\/|^-\/\/WebTechs\/\/DTD Mozilla HTML\/\//i,Ebe="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",T5=/^-\/\/W3C\/\/DTD HTML 4\.01 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.01 Transitional\/\//i,Dbe=/^-\/\/W3C\/\/DTD XHTML 1\.0 Frameset\/\/|^-\/\/W3C\/\/DTD XHTML 1\.0 Transitional\/\//i,va=Object.create(null);va[ye.HTML]={__proto__:null,address:!0,applet:!0,area:!0,article:!0,aside:!0,base:!0,basefont:!0,bgsound:!0,blockquote:!0,body:!0,br:!0,button:!0,caption:!0,center:!0,col:!0,colgroup:!0,dd:!0,details:!0,dir:!0,div:!0,dl:!0,dt:!0,embed:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,frame:!0,frameset:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,head:!0,header:!0,hgroup:!0,hr:!0,html:!0,iframe:!0,img:!0,input:!0,li:!0,link:!0,listing:!0,main:!0,marquee:!0,menu:!0,meta:!0,nav:!0,noembed:!0,noframes:!0,noscript:!0,object:!0,ol:!0,p:!0,param:!0,plaintext:!0,pre:!0,script:!0,section:!0,select:!0,source:!0,style:!0,summary:!0,table:!0,tbody:!0,td:!0,template:!0,textarea:!0,tfoot:!0,th:!0,thead:!0,title:!0,tr:!0,track:!0,ul:!0,wbr:!0,xmp:!0};va[ye.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};va[ye.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};var z2=Object.create(null);z2[ye.HTML]={__proto__:null,address:!0,div:!0,p:!0};var H5=Object.create(null);H5[ye.HTML]={__proto__:null,dd:!0,dt:!0};var Wo=Object.create(null);Wo[ye.HTML]={__proto__:null,table:!0,thead:!0,tbody:!0,tfoot:!0,tr:!0};var U5=Object.create(null);U5[ye.HTML]={__proto__:null,dd:!0,dt:!0,li:!0,menuitem:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0};var V5=Object.create(null);V5[ye.HTML]={__proto__:null,caption:!0,colgroup:!0,dd:!0,dt:!0,li:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0,tbody:!0,td:!0,tfoot:!0,th:!0,thead:!0,tr:!0};var fh=Object.create(null);fh[ye.HTML]={__proto__:null,table:!0,template:!0,html:!0};var dh=Object.create(null);dh[ye.HTML]={__proto__:null,tbody:!0,tfoot:!0,thead:!0,template:!0,html:!0};var H2=Object.create(null);H2[ye.HTML]={__proto__:null,tr:!0,template:!0,html:!0};var G5=Object.create(null);G5[ye.HTML]={__proto__:null,button:!0,fieldset:!0,input:!0,keygen:!0,object:!0,output:!0,select:!0,textarea:!0,img:!0};var Qn=Object.create(null);Qn[ye.HTML]={__proto__:null,applet:!0,caption:!0,html:!0,table:!0,td:!0,th:!0,marquee:!0,object:!0,template:!0};Qn[ye.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};Qn[ye.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var hh=Object.create(Qn);hh[ye.HTML]=Object.create(Qn[ye.HTML]);hh[ye.HTML].ol=!0;hh[ye.HTML].ul=!0;var U2=Object.create(Qn);U2[ye.HTML]=Object.create(Qn[ye.HTML]);U2[ye.HTML].button=!0;var W5=Object.create(null);W5[ye.HTML]={__proto__:null,html:!0,table:!0,template:!0};var Sbe=Object.create(null);Sbe[ye.HTML]={__proto__:null,optgroup:!0,option:!0};var K5=Object.create(null);K5[ye.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0};var Z5=Object.create(null);Z5[ye.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var A5={__proto__:null,"xlink:actuate":ye.XLINK,"xlink:arcrole":ye.XLINK,"xlink:href":ye.XLINK,"xlink:role":ye.XLINK,"xlink:show":ye.XLINK,"xlink:title":ye.XLINK,"xlink:type":ye.XLINK,"xml:base":ye.XML,"xml:lang":ye.XML,"xml:space":ye.XML,xmlns:ye.XMLNS,"xmlns:xlink":ye.XMLNS},O5={__proto__:null,attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},N5={__proto__:null,altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},F5={__proto__:null,0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},kbe={__proto__:null,AElig:198,"AElig;":198,AMP:38,"AMP;":38,Aacute:193,"Aacute;":193,"Abreve;":258,Acirc:194,"Acirc;":194,"Acy;":1040,"Afr;":[55349,56580],Agrave:192,"Agrave;":192,"Alpha;":913,"Amacr;":256,"And;":10835,"Aogon;":260,"Aopf;":[55349,56632],"ApplyFunction;":8289,Aring:197,"Aring;":197,"Ascr;":[55349,56476],"Assign;":8788,Atilde:195,"Atilde;":195,Auml:196,"Auml;":196,"Backslash;":8726,"Barv;":10983,"Barwed;":8966,"Bcy;":1041,"Because;":8757,"Bernoullis;":8492,"Beta;":914,"Bfr;":[55349,56581],"Bopf;":[55349,56633],"Breve;":728,"Bscr;":8492,"Bumpeq;":8782,"CHcy;":1063,COPY:169,"COPY;":169,"Cacute;":262,"Cap;":8914,"CapitalDifferentialD;":8517,"Cayleys;":8493,"Ccaron;":268,Ccedil:199,"Ccedil;":199,"Ccirc;":264,"Cconint;":8752,"Cdot;":266,"Cedilla;":184,"CenterDot;":183,"Cfr;":8493,"Chi;":935,"CircleDot;":8857,"CircleMinus;":8854,"CirclePlus;":8853,"CircleTimes;":8855,"ClockwiseContourIntegral;":8754,"CloseCurlyDoubleQuote;":8221,"CloseCurlyQuote;":8217,"Colon;":8759,"Colone;":10868,"Congruent;":8801,"Conint;":8751,"ContourIntegral;":8750,"Copf;":8450,"Coproduct;":8720,"CounterClockwiseContourIntegral;":8755,"Cross;":10799,"Cscr;":[55349,56478],"Cup;":8915,"CupCap;":8781,"DD;":8517,"DDotrahd;":10513,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Dagger;":8225,"Darr;":8609,"Dashv;":10980,"Dcaron;":270,"Dcy;":1044,"Del;":8711,"Delta;":916,"Dfr;":[55349,56583],"DiacriticalAcute;":180,"DiacriticalDot;":729,"DiacriticalDoubleAcute;":733,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"Diamond;":8900,"DifferentialD;":8518,"Dopf;":[55349,56635],"Dot;":168,"DotDot;":8412,"DotEqual;":8784,"DoubleContourIntegral;":8751,"DoubleDot;":168,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DoubleLeftRightArrow;":8660,"DoubleLeftTee;":10980,"DoubleLongLeftArrow;":10232,"DoubleLongLeftRightArrow;":10234,"DoubleLongRightArrow;":10233,"DoubleRightArrow;":8658,"DoubleRightTee;":8872,"DoubleUpArrow;":8657,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownArrow;":8595,"DownArrowBar;":10515,"DownArrowUpArrow;":8693,"DownBreve;":785,"DownLeftRightVector;":10576,"DownLeftTeeVector;":10590,"DownLeftVector;":8637,"DownLeftVectorBar;":10582,"DownRightTeeVector;":10591,"DownRightVector;":8641,"DownRightVectorBar;":10583,"DownTee;":8868,"DownTeeArrow;":8615,"Downarrow;":8659,"Dscr;":[55349,56479],"Dstrok;":272,"ENG;":330,ETH:208,"ETH;":208,Eacute:201,"Eacute;":201,"Ecaron;":282,Ecirc:202,"Ecirc;":202,"Ecy;":1069,"Edot;":278,"Efr;":[55349,56584],Egrave:200,"Egrave;":200,"Element;":8712,"Emacr;":274,"EmptySmallSquare;":9723,"EmptyVerySmallSquare;":9643,"Eogon;":280,"Eopf;":[55349,56636],"Epsilon;":917,"Equal;":10869,"EqualTilde;":8770,"Equilibrium;":8652,"Escr;":8496,"Esim;":10867,"Eta;":919,Euml:203,"Euml;":203,"Exists;":8707,"ExponentialE;":8519,"Fcy;":1060,"Ffr;":[55349,56585],"FilledSmallSquare;":9724,"FilledVerySmallSquare;":9642,"Fopf;":[55349,56637],"ForAll;":8704,"Fouriertrf;":8497,"Fscr;":8497,"GJcy;":1027,GT:62,"GT;":62,"Gamma;":915,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"Gcirc;":284,"Gcy;":1043,"Gdot;":288,"Gfr;":[55349,56586],"Gg;":8921,"Gopf;":[55349,56638],"GreaterEqual;":8805,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"GreaterGreater;":10914,"GreaterLess;":8823,"GreaterSlantEqual;":10878,"GreaterTilde;":8819,"Gscr;":[55349,56482],"Gt;":8811,"HARDcy;":1066,"Hacek;":711,"Hat;":94,"Hcirc;":292,"Hfr;":8460,"HilbertSpace;":8459,"Hopf;":8461,"HorizontalLine;":9472,"Hscr;":8459,"Hstrok;":294,"HumpDownHump;":8782,"HumpEqual;":8783,"IEcy;":1045,"IJlig;":306,"IOcy;":1025,Iacute:205,"Iacute;":205,Icirc:206,"Icirc;":206,"Icy;":1048,"Idot;":304,"Ifr;":8465,Igrave:204,"Igrave;":204,"Im;":8465,"Imacr;":298,"ImaginaryI;":8520,"Implies;":8658,"Int;":8748,"Integral;":8747,"Intersection;":8898,"InvisibleComma;":8291,"InvisibleTimes;":8290,"Iogon;":302,"Iopf;":[55349,56640],"Iota;":921,"Iscr;":8464,"Itilde;":296,"Iukcy;":1030,Iuml:207,"Iuml;":207,"Jcirc;":308,"Jcy;":1049,"Jfr;":[55349,56589],"Jopf;":[55349,56641],"Jscr;":[55349,56485],"Jsercy;":1032,"Jukcy;":1028,"KHcy;":1061,"KJcy;":1036,"Kappa;":922,"Kcedil;":310,"Kcy;":1050,"Kfr;":[55349,56590],"Kopf;":[55349,56642],"Kscr;":[55349,56486],"LJcy;":1033,LT:60,"LT;":60,"Lacute;":313,"Lambda;":923,"Lang;":10218,"Laplacetrf;":8466,"Larr;":8606,"Lcaron;":317,"Lcedil;":315,"Lcy;":1051,"LeftAngleBracket;":10216,"LeftArrow;":8592,"LeftArrowBar;":8676,"LeftArrowRightArrow;":8646,"LeftCeiling;":8968,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVector;":8643,"LeftDownVectorBar;":10585,"LeftFloor;":8970,"LeftRightArrow;":8596,"LeftRightVector;":10574,"LeftTee;":8867,"LeftTeeArrow;":8612,"LeftTeeVector;":10586,"LeftTriangle;":8882,"LeftTriangleBar;":10703,"LeftTriangleEqual;":8884,"LeftUpDownVector;":10577,"LeftUpTeeVector;":10592,"LeftUpVector;":8639,"LeftUpVectorBar;":10584,"LeftVector;":8636,"LeftVectorBar;":10578,"Leftarrow;":8656,"Leftrightarrow;":8660,"LessEqualGreater;":8922,"LessFullEqual;":8806,"LessGreater;":8822,"LessLess;":10913,"LessSlantEqual;":10877,"LessTilde;":8818,"Lfr;":[55349,56591],"Ll;":8920,"Lleftarrow;":8666,"Lmidot;":319,"LongLeftArrow;":10229,"LongLeftRightArrow;":10231,"LongRightArrow;":10230,"Longleftarrow;":10232,"Longleftrightarrow;":10234,"Longrightarrow;":10233,"Lopf;":[55349,56643],"LowerLeftArrow;":8601,"LowerRightArrow;":8600,"Lscr;":8466,"Lsh;":8624,"Lstrok;":321,"Lt;":8810,"Map;":10501,"Mcy;":1052,"MediumSpace;":8287,"Mellintrf;":8499,"Mfr;":[55349,56592],"MinusPlus;":8723,"Mopf;":[55349,56644],"Mscr;":8499,"Mu;":924,"NJcy;":1034,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ncy;":1053,"NegativeMediumSpace;":8203,"NegativeThickSpace;":8203,"NegativeThinSpace;":8203,"NegativeVeryThinSpace;":8203,"NestedGreaterGreater;":8811,"NestedLessLess;":8810,"NewLine;":10,"Nfr;":[55349,56593],"NoBreak;":8288,"NonBreakingSpace;":160,"Nopf;":8469,"Not;":10988,"NotCongruent;":8802,"NotCupCap;":8813,"NotDoubleVerticalBar;":8742,"NotElement;":8713,"NotEqual;":8800,"NotEqualTilde;":[8770,824],"NotExists;":8708,"NotGreater;":8815,"NotGreaterEqual;":8817,"NotGreaterFullEqual;":[8807,824],"NotGreaterGreater;":[8811,824],"NotGreaterLess;":8825,"NotGreaterSlantEqual;":[10878,824],"NotGreaterTilde;":8821,"NotHumpDownHump;":[8782,824],"NotHumpEqual;":[8783,824],"NotLeftTriangle;":8938,"NotLeftTriangleBar;":[10703,824],"NotLeftTriangleEqual;":8940,"NotLess;":8814,"NotLessEqual;":8816,"NotLessGreater;":8824,"NotLessLess;":[8810,824],"NotLessSlantEqual;":[10877,824],"NotLessTilde;":8820,"NotNestedGreaterGreater;":[10914,824],"NotNestedLessLess;":[10913,824],"NotPrecedes;":8832,"NotPrecedesEqual;":[10927,824],"NotPrecedesSlantEqual;":8928,"NotReverseElement;":8716,"NotRightTriangle;":8939,"NotRightTriangleBar;":[10704,824],"NotRightTriangleEqual;":8941,"NotSquareSubset;":[8847,824],"NotSquareSubsetEqual;":8930,"NotSquareSuperset;":[8848,824],"NotSquareSupersetEqual;":8931,"NotSubset;":[8834,8402],"NotSubsetEqual;":8840,"NotSucceeds;":8833,"NotSucceedsEqual;":[10928,824],"NotSucceedsSlantEqual;":8929,"NotSucceedsTilde;":[8831,824],"NotSuperset;":[8835,8402],"NotSupersetEqual;":8841,"NotTilde;":8769,"NotTildeEqual;":8772,"NotTildeFullEqual;":8775,"NotTildeTilde;":8777,"NotVerticalBar;":8740,"Nscr;":[55349,56489],Ntilde:209,"Ntilde;":209,"Nu;":925,"OElig;":338,Oacute:211,"Oacute;":211,Ocirc:212,"Ocirc;":212,"Ocy;":1054,"Odblac;":336,"Ofr;":[55349,56594],Ograve:210,"Ograve;":210,"Omacr;":332,"Omega;":937,"Omicron;":927,"Oopf;":[55349,56646],"OpenCurlyDoubleQuote;":8220,"OpenCurlyQuote;":8216,"Or;":10836,"Oscr;":[55349,56490],Oslash:216,"Oslash;":216,Otilde:213,"Otilde;":213,"Otimes;":10807,Ouml:214,"Ouml;":214,"OverBar;":8254,"OverBrace;":9182,"OverBracket;":9140,"OverParenthesis;":9180,"PartialD;":8706,"Pcy;":1055,"Pfr;":[55349,56595],"Phi;":934,"Pi;":928,"PlusMinus;":177,"Poincareplane;":8460,"Popf;":8473,"Pr;":10939,"Precedes;":8826,"PrecedesEqual;":10927,"PrecedesSlantEqual;":8828,"PrecedesTilde;":8830,"Prime;":8243,"Product;":8719,"Proportion;":8759,"Proportional;":8733,"Pscr;":[55349,56491],"Psi;":936,QUOT:34,"QUOT;":34,"Qfr;":[55349,56596],"Qopf;":8474,"Qscr;":[55349,56492],"RBarr;":10512,REG:174,"REG;":174,"Racute;":340,"Rang;":10219,"Rarr;":8608,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"Rcy;":1056,"Re;":8476,"ReverseElement;":8715,"ReverseEquilibrium;":8651,"ReverseUpEquilibrium;":10607,"Rfr;":8476,"Rho;":929,"RightAngleBracket;":10217,"RightArrow;":8594,"RightArrowBar;":8677,"RightArrowLeftArrow;":8644,"RightCeiling;":8969,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVector;":8642,"RightDownVectorBar;":10581,"RightFloor;":8971,"RightTee;":8866,"RightTeeArrow;":8614,"RightTeeVector;":10587,"RightTriangle;":8883,"RightTriangleBar;":10704,"RightTriangleEqual;":8885,"RightUpDownVector;":10575,"RightUpTeeVector;":10588,"RightUpVector;":8638,"RightUpVectorBar;":10580,"RightVector;":8640,"RightVectorBar;":10579,"Rightarrow;":8658,"Ropf;":8477,"RoundImplies;":10608,"Rrightarrow;":8667,"Rscr;":8475,"Rsh;":8625,"RuleDelayed;":10740,"SHCHcy;":1065,"SHcy;":1064,"SOFTcy;":1068,"Sacute;":346,"Sc;":10940,"Scaron;":352,"Scedil;":350,"Scirc;":348,"Scy;":1057,"Sfr;":[55349,56598],"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"ShortRightArrow;":8594,"ShortUpArrow;":8593,"Sigma;":931,"SmallCircle;":8728,"Sopf;":[55349,56650],"Sqrt;":8730,"Square;":9633,"SquareIntersection;":8851,"SquareSubset;":8847,"SquareSubsetEqual;":8849,"SquareSuperset;":8848,"SquareSupersetEqual;":8850,"SquareUnion;":8852,"Sscr;":[55349,56494],"Star;":8902,"Sub;":8912,"Subset;":8912,"SubsetEqual;":8838,"Succeeds;":8827,"SucceedsEqual;":10928,"SucceedsSlantEqual;":8829,"SucceedsTilde;":8831,"SuchThat;":8715,"Sum;":8721,"Sup;":8913,"Superset;":8835,"SupersetEqual;":8839,"Supset;":8913,THORN:222,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"TScy;":1062,"Tab;":9,"Tau;":932,"Tcaron;":356,"Tcedil;":354,"Tcy;":1058,"Tfr;":[55349,56599],"Therefore;":8756,"Theta;":920,"ThickSpace;":[8287,8202],"ThinSpace;":8201,"Tilde;":8764,"TildeEqual;":8771,"TildeFullEqual;":8773,"TildeTilde;":8776,"Topf;":[55349,56651],"TripleDot;":8411,"Tscr;":[55349,56495],"Tstrok;":358,Uacute:218,"Uacute;":218,"Uarr;":8607,"Uarrocir;":10569,"Ubrcy;":1038,"Ubreve;":364,Ucirc:219,"Ucirc;":219,"Ucy;":1059,"Udblac;":368,"Ufr;":[55349,56600],Ugrave:217,"Ugrave;":217,"Umacr;":362,"UnderBar;":95,"UnderBrace;":9183,"UnderBracket;":9141,"UnderParenthesis;":9181,"Union;":8899,"UnionPlus;":8846,"Uogon;":370,"Uopf;":[55349,56652],"UpArrow;":8593,"UpArrowBar;":10514,"UpArrowDownArrow;":8645,"UpDownArrow;":8597,"UpEquilibrium;":10606,"UpTee;":8869,"UpTeeArrow;":8613,"Uparrow;":8657,"Updownarrow;":8661,"UpperLeftArrow;":8598,"UpperRightArrow;":8599,"Upsi;":978,"Upsilon;":933,"Uring;":366,"Uscr;":[55349,56496],"Utilde;":360,Uuml:220,"Uuml;":220,"VDash;":8875,"Vbar;":10987,"Vcy;":1042,"Vdash;":8873,"Vdashl;":10982,"Vee;":8897,"Verbar;":8214,"Vert;":8214,"VerticalBar;":8739,"VerticalLine;":124,"VerticalSeparator;":10072,"VerticalTilde;":8768,"VeryThinSpace;":8202,"Vfr;":[55349,56601],"Vopf;":[55349,56653],"Vscr;":[55349,56497],"Vvdash;":8874,"Wcirc;":372,"Wedge;":8896,"Wfr;":[55349,56602],"Wopf;":[55349,56654],"Wscr;":[55349,56498],"Xfr;":[55349,56603],"Xi;":926,"Xopf;":[55349,56655],"Xscr;":[55349,56499],"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,Yacute:221,"Yacute;":221,"Ycirc;":374,"Ycy;":1067,"Yfr;":[55349,56604],"Yopf;":[55349,56656],"Yscr;":[55349,56500],"Yuml;":376,"ZHcy;":1046,"Zacute;":377,"Zcaron;":381,"Zcy;":1047,"Zdot;":379,"ZeroWidthSpace;":8203,"Zeta;":918,"Zfr;":8488,"Zopf;":8484,"Zscr;":[55349,56501],aacute:225,"aacute;":225,"abreve;":259,"ac;":8766,"acE;":[8766,819],"acd;":8767,acirc:226,"acirc;":226,acute:180,"acute;":180,"acy;":1072,aelig:230,"aelig;":230,"af;":8289,"afr;":[55349,56606],agrave:224,"agrave;":224,"alefsym;":8501,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,amp:38,"amp;":38,"and;":8743,"andand;":10837,"andd;":10844,"andslope;":10840,"andv;":10842,"ang;":8736,"ange;":10660,"angle;":8736,"angmsd;":8737,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrt;":8735,"angrtvb;":8894,"angrtvbd;":10653,"angsph;":8738,"angst;":197,"angzarr;":9084,"aogon;":261,"aopf;":[55349,56658],"ap;":8776,"apE;":10864,"apacir;":10863,"ape;":8778,"apid;":8779,"apos;":39,"approx;":8776,"approxeq;":8778,aring:229,"aring;":229,"ascr;":[55349,56502],"ast;":42,"asymp;":8776,"asympeq;":8781,atilde:227,"atilde;":227,auml:228,"auml;":228,"awconint;":8755,"awint;":10769,"bNot;":10989,"backcong;":8780,"backepsilon;":1014,"backprime;":8245,"backsim;":8765,"backsimeq;":8909,"barvee;":8893,"barwed;":8965,"barwedge;":8965,"bbrk;":9141,"bbrktbrk;":9142,"bcong;":8780,"bcy;":1073,"bdquo;":8222,"becaus;":8757,"because;":8757,"bemptyv;":10672,"bepsi;":1014,"bernou;":8492,"beta;":946,"beth;":8502,"between;":8812,"bfr;":[55349,56607],"bigcap;":8898,"bigcirc;":9711,"bigcup;":8899,"bigodot;":10752,"bigoplus;":10753,"bigotimes;":10754,"bigsqcup;":10758,"bigstar;":9733,"bigtriangledown;":9661,"bigtriangleup;":9651,"biguplus;":10756,"bigvee;":8897,"bigwedge;":8896,"bkarow;":10509,"blacklozenge;":10731,"blacksquare;":9642,"blacktriangle;":9652,"blacktriangledown;":9662,"blacktriangleleft;":9666,"blacktriangleright;":9656,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"bne;":[61,8421],"bnequiv;":[8801,8421],"bnot;":8976,"bopf;":[55349,56659],"bot;":8869,"bottom;":8869,"bowtie;":8904,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxH;":9552,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxV;":9553,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxbox;":10697,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxh;":9472,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxminus;":8863,"boxplus;":8862,"boxtimes;":8864,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxv;":9474,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"bprime;":8245,"breve;":728,brvbar:166,"brvbar;":166,"bscr;":[55349,56503],"bsemi;":8271,"bsim;":8765,"bsime;":8909,"bsol;":92,"bsolb;":10693,"bsolhsub;":10184,"bull;":8226,"bullet;":8226,"bump;":8782,"bumpE;":10926,"bumpe;":8783,"bumpeq;":8783,"cacute;":263,"cap;":8745,"capand;":10820,"capbrcup;":10825,"capcap;":10827,"capcup;":10823,"capdot;":10816,"caps;":[8745,65024],"caret;":8257,"caron;":711,"ccaps;":10829,"ccaron;":269,ccedil:231,"ccedil;":231,"ccirc;":265,"ccups;":10828,"ccupssm;":10832,"cdot;":267,cedil:184,"cedil;":184,"cemptyv;":10674,cent:162,"cent;":162,"centerdot;":183,"cfr;":[55349,56608],"chcy;":1095,"check;":10003,"checkmark;":10003,"chi;":967,"cir;":9675,"cirE;":10691,"circ;":710,"circeq;":8791,"circlearrowleft;":8634,"circlearrowright;":8635,"circledR;":174,"circledS;":9416,"circledast;":8859,"circledcirc;":8858,"circleddash;":8861,"cire;":8791,"cirfnint;":10768,"cirmid;":10991,"cirscir;":10690,"clubs;":9827,"clubsuit;":9827,"colon;":58,"colone;":8788,"coloneq;":8788,"comma;":44,"commat;":64,"comp;":8705,"compfn;":8728,"complement;":8705,"complexes;":8450,"cong;":8773,"congdot;":10861,"conint;":8750,"copf;":[55349,56660],"coprod;":8720,copy:169,"copy;":169,"copysr;":8471,"crarr;":8629,"cross;":10007,"cscr;":[55349,56504],"csub;":10959,"csube;":10961,"csup;":10960,"csupe;":10962,"ctdot;":8943,"cudarrl;":10552,"cudarrr;":10549,"cuepr;":8926,"cuesc;":8927,"cularr;":8630,"cularrp;":10557,"cup;":8746,"cupbrcap;":10824,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"cupor;":10821,"cups;":[8746,65024],"curarr;":8631,"curarrm;":10556,"curlyeqprec;":8926,"curlyeqsucc;":8927,"curlyvee;":8910,"curlywedge;":8911,curren:164,"curren;":164,"curvearrowleft;":8630,"curvearrowright;":8631,"cuvee;":8910,"cuwed;":8911,"cwconint;":8754,"cwint;":8753,"cylcty;":9005,"dArr;":8659,"dHar;":10597,"dagger;":8224,"daleth;":8504,"darr;":8595,"dash;":8208,"dashv;":8867,"dbkarow;":10511,"dblac;":733,"dcaron;":271,"dcy;":1076,"dd;":8518,"ddagger;":8225,"ddarr;":8650,"ddotseq;":10871,deg:176,"deg;":176,"delta;":948,"demptyv;":10673,"dfisht;":10623,"dfr;":[55349,56609],"dharl;":8643,"dharr;":8642,"diam;":8900,"diamond;":8900,"diamondsuit;":9830,"diams;":9830,"die;":168,"digamma;":989,"disin;":8946,"div;":247,divide:247,"divide;":247,"divideontimes;":8903,"divonx;":8903,"djcy;":1106,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"dopf;":[55349,56661],"dot;":729,"doteq;":8784,"doteqdot;":8785,"dotminus;":8760,"dotplus;":8724,"dotsquare;":8865,"doublebarwedge;":8966,"downarrow;":8595,"downdownarrows;":8650,"downharpoonleft;":8643,"downharpoonright;":8642,"drbkarow;":10512,"drcorn;":8991,"drcrop;":8972,"dscr;":[55349,56505],"dscy;":1109,"dsol;":10742,"dstrok;":273,"dtdot;":8945,"dtri;":9663,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"dwangle;":10662,"dzcy;":1119,"dzigrarr;":10239,"eDDot;":10871,"eDot;":8785,eacute:233,"eacute;":233,"easter;":10862,"ecaron;":283,"ecir;":8790,ecirc:234,"ecirc;":234,"ecolon;":8789,"ecy;":1101,"edot;":279,"ee;":8519,"efDot;":8786,"efr;":[55349,56610],"eg;":10906,egrave:232,"egrave;":232,"egs;":10902,"egsdot;":10904,"el;":10905,"elinters;":9191,"ell;":8467,"els;":10901,"elsdot;":10903,"emacr;":275,"empty;":8709,"emptyset;":8709,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"emsp;":8195,"eng;":331,"ensp;":8194,"eogon;":281,"eopf;":[55349,56662],"epar;":8917,"eparsl;":10723,"eplus;":10865,"epsi;":949,"epsilon;":949,"epsiv;":1013,"eqcirc;":8790,"eqcolon;":8789,"eqsim;":8770,"eqslantgtr;":10902,"eqslantless;":10901,"equals;":61,"equest;":8799,"equiv;":8801,"equivDD;":10872,"eqvparsl;":10725,"erDot;":8787,"erarr;":10609,"escr;":8495,"esdot;":8784,"esim;":8770,"eta;":951,eth:240,"eth;":240,euml:235,"euml;":235,"euro;":8364,"excl;":33,"exist;":8707,"expectation;":8496,"exponentiale;":8519,"fallingdotseq;":8786,"fcy;":1092,"female;":9792,"ffilig;":64259,"fflig;":64256,"ffllig;":64260,"ffr;":[55349,56611],"filig;":64257,"fjlig;":[102,106],"flat;":9837,"fllig;":64258,"fltns;":9649,"fnof;":402,"fopf;":[55349,56663],"forall;":8704,"fork;":8916,"forkv;":10969,"fpartint;":10765,frac12:189,"frac12;":189,"frac13;":8531,frac14:188,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,frac34:190,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"frasl;":8260,"frown;":8994,"fscr;":[55349,56507],"gE;":8807,"gEl;":10892,"gacute;":501,"gamma;":947,"gammad;":989,"gap;":10886,"gbreve;":287,"gcirc;":285,"gcy;":1075,"gdot;":289,"ge;":8805,"gel;":8923,"geq;":8805,"geqq;":8807,"geqslant;":10878,"ges;":10878,"gescc;":10921,"gesdot;":10880,"gesdoto;":10882,"gesdotol;":10884,"gesl;":[8923,65024],"gesles;":10900,"gfr;":[55349,56612],"gg;":8811,"ggg;":8921,"gimel;":8503,"gjcy;":1107,"gl;":8823,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gnap;":10890,"gnapprox;":10890,"gne;":10888,"gneq;":10888,"gneqq;":8809,"gnsim;":8935,"gopf;":[55349,56664],"grave;":96,"gscr;":8458,"gsim;":8819,"gsime;":10894,"gsiml;":10896,gt:62,"gt;":62,"gtcc;":10919,"gtcir;":10874,"gtdot;":8919,"gtlPar;":10645,"gtquest;":10876,"gtrapprox;":10886,"gtrarr;":10616,"gtrdot;":8919,"gtreqless;":8923,"gtreqqless;":10892,"gtrless;":8823,"gtrsim;":8819,"gvertneqq;":[8809,65024],"gvnE;":[8809,65024],"hArr;":8660,"hairsp;":8202,"half;":189,"hamilt;":8459,"hardcy;":1098,"harr;":8596,"harrcir;":10568,"harrw;":8621,"hbar;":8463,"hcirc;":293,"hearts;":9829,"heartsuit;":9829,"hellip;":8230,"hercon;":8889,"hfr;":[55349,56613],"hksearow;":10533,"hkswarow;":10534,"hoarr;":8703,"homtht;":8763,"hookleftarrow;":8617,"hookrightarrow;":8618,"hopf;":[55349,56665],"horbar;":8213,"hscr;":[55349,56509],"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,iacute:237,"iacute;":237,"ic;":8291,icirc:238,"icirc;":238,"icy;":1080,"iecy;":1077,iexcl:161,"iexcl;":161,"iff;":8660,"ifr;":[55349,56614],igrave:236,"igrave;":236,"ii;":8520,"iiiint;":10764,"iiint;":8749,"iinfin;":10716,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imagline;":8464,"imagpart;":8465,"imath;":305,"imof;":8887,"imped;":437,"in;":8712,"incare;":8453,"infin;":8734,"infintie;":10717,"inodot;":305,"int;":8747,"intcal;":8890,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"intprod;":10812,"iocy;":1105,"iogon;":303,"iopf;":[55349,56666],"iota;":953,"iprod;":10812,iquest:191,"iquest;":191,"iscr;":[55349,56510],"isin;":8712,"isinE;":8953,"isindot;":8949,"isins;":8948,"isinsv;":8947,"isinv;":8712,"it;":8290,"itilde;":297,"iukcy;":1110,iuml:239,"iuml;":239,"jcirc;":309,"jcy;":1081,"jfr;":[55349,56615],"jmath;":567,"jopf;":[55349,56667],"jscr;":[55349,56511],"jsercy;":1112,"jukcy;":1108,"kappa;":954,"kappav;":1008,"kcedil;":311,"kcy;":1082,"kfr;":[55349,56616],"kgreen;":312,"khcy;":1093,"kjcy;":1116,"kopf;":[55349,56668],"kscr;":[55349,56512],"lAarr;":8666,"lArr;":8656,"lAtail;":10523,"lBarr;":10510,"lE;":8806,"lEg;":10891,"lHar;":10594,"lacute;":314,"laemptyv;":10676,"lagran;":8466,"lambda;":955,"lang;":10216,"langd;":10641,"langle;":10216,"lap;":10885,laquo:171,"laquo;":171,"larr;":8592,"larrb;":8676,"larrbfs;":10527,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrsim;":10611,"larrtl;":8610,"lat;":10923,"latail;":10521,"late;":10925,"lates;":[10925,65024],"lbarr;":10508,"lbbrk;":10098,"lbrace;":123,"lbrack;":91,"lbrke;":10635,"lbrksld;":10639,"lbrkslu;":10637,"lcaron;":318,"lcedil;":316,"lceil;":8968,"lcub;":123,"lcy;":1083,"ldca;":10550,"ldquo;":8220,"ldquor;":8222,"ldrdhar;":10599,"ldrushar;":10571,"ldsh;":8626,"le;":8804,"leftarrow;":8592,"leftarrowtail;":8610,"leftharpoondown;":8637,"leftharpoonup;":8636,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftrightarrows;":8646,"leftrightharpoons;":8651,"leftrightsquigarrow;":8621,"leftthreetimes;":8907,"leg;":8922,"leq;":8804,"leqq;":8806,"leqslant;":10877,"les;":10877,"lescc;":10920,"lesdot;":10879,"lesdoto;":10881,"lesdotor;":10883,"lesg;":[8922,65024],"lesges;":10899,"lessapprox;":10885,"lessdot;":8918,"lesseqgtr;":8922,"lesseqqgtr;":10891,"lessgtr;":8822,"lesssim;":8818,"lfisht;":10620,"lfloor;":8970,"lfr;":[55349,56617],"lg;":8822,"lgE;":10897,"lhard;":8637,"lharu;":8636,"lharul;":10602,"lhblk;":9604,"ljcy;":1113,"ll;":8810,"llarr;":8647,"llcorner;":8990,"llhard;":10603,"lltri;":9722,"lmidot;":320,"lmoust;":9136,"lmoustache;":9136,"lnE;":8808,"lnap;":10889,"lnapprox;":10889,"lne;":10887,"lneq;":10887,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"longleftarrow;":10229,"longleftrightarrow;":10231,"longmapsto;":10236,"longrightarrow;":10230,"looparrowleft;":8619,"looparrowright;":8620,"lopar;":10629,"lopf;":[55349,56669],"loplus;":10797,"lotimes;":10804,"lowast;":8727,"lowbar;":95,"loz;":9674,"lozenge;":9674,"lozf;":10731,"lpar;":40,"lparlt;":10643,"lrarr;":8646,"lrcorner;":8991,"lrhar;":8651,"lrhard;":10605,"lrm;":8206,"lrtri;":8895,"lsaquo;":8249,"lscr;":[55349,56513],"lsh;":8624,"lsim;":8818,"lsime;":10893,"lsimg;":10895,"lsqb;":91,"lsquo;":8216,"lsquor;":8218,"lstrok;":322,lt:60,"lt;":60,"ltcc;":10918,"ltcir;":10873,"ltdot;":8918,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltquest;":10875,"ltrPar;":10646,"ltri;":9667,"ltrie;":8884,"ltrif;":9666,"lurdshar;":10570,"luruhar;":10598,"lvertneqq;":[8808,65024],"lvnE;":[8808,65024],"mDDot;":8762,macr:175,"macr;":175,"male;":9794,"malt;":10016,"maltese;":10016,"map;":8614,"mapsto;":8614,"mapstodown;":8615,"mapstoleft;":8612,"mapstoup;":8613,"marker;":9646,"mcomma;":10793,"mcy;":1084,"mdash;":8212,"measuredangle;":8737,"mfr;":[55349,56618],"mho;":8487,micro:181,"micro;":181,"mid;":8739,"midast;":42,"midcir;":10992,middot:183,"middot;":183,"minus;":8722,"minusb;":8863,"minusd;":8760,"minusdu;":10794,"mlcp;":10971,"mldr;":8230,"mnplus;":8723,"models;":8871,"mopf;":[55349,56670],"mp;":8723,"mscr;":[55349,56514],"mstpos;":8766,"mu;":956,"multimap;":8888,"mumap;":8888,"nGg;":[8921,824],"nGt;":[8811,8402],"nGtv;":[8811,824],"nLeftarrow;":8653,"nLeftrightarrow;":8654,"nLl;":[8920,824],"nLt;":[8810,8402],"nLtv;":[8810,824],"nRightarrow;":8655,"nVDash;":8879,"nVdash;":8878,"nabla;":8711,"nacute;":324,"nang;":[8736,8402],"nap;":8777,"napE;":[10864,824],"napid;":[8779,824],"napos;":329,"napprox;":8777,"natur;":9838,"natural;":9838,"naturals;":8469,nbsp:160,"nbsp;":160,"nbump;":[8782,824],"nbumpe;":[8783,824],"ncap;":10819,"ncaron;":328,"ncedil;":326,"ncong;":8775,"ncongdot;":[10861,824],"ncup;":10818,"ncy;":1085,"ndash;":8211,"ne;":8800,"neArr;":8663,"nearhk;":10532,"nearr;":8599,"nearrow;":8599,"nedot;":[8784,824],"nequiv;":8802,"nesear;":10536,"nesim;":[8770,824],"nexist;":8708,"nexists;":8708,"nfr;":[55349,56619],"ngE;":[8807,824],"nge;":8817,"ngeq;":8817,"ngeqq;":[8807,824],"ngeqslant;":[10878,824],"nges;":[10878,824],"ngsim;":8821,"ngt;":8815,"ngtr;":8815,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"ni;":8715,"nis;":8956,"nisd;":8954,"niv;":8715,"njcy;":1114,"nlArr;":8653,"nlE;":[8806,824],"nlarr;":8602,"nldr;":8229,"nle;":8816,"nleftarrow;":8602,"nleftrightarrow;":8622,"nleq;":8816,"nleqq;":[8806,824],"nleqslant;":[10877,824],"nles;":[10877,824],"nless;":8814,"nlsim;":8820,"nlt;":8814,"nltri;":8938,"nltrie;":8940,"nmid;":8740,"nopf;":[55349,56671],not:172,"not;":172,"notin;":8713,"notinE;":[8953,824],"notindot;":[8949,824],"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notni;":8716,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npar;":8742,"nparallel;":8742,"nparsl;":[11005,8421],"npart;":[8706,824],"npolint;":10772,"npr;":8832,"nprcue;":8928,"npre;":[10927,824],"nprec;":8832,"npreceq;":[10927,824],"nrArr;":8655,"nrarr;":8603,"nrarrc;":[10547,824],"nrarrw;":[8605,824],"nrightarrow;":8603,"nrtri;":8939,"nrtrie;":8941,"nsc;":8833,"nsccue;":8929,"nsce;":[10928,824],"nscr;":[55349,56515],"nshortmid;":8740,"nshortparallel;":8742,"nsim;":8769,"nsime;":8772,"nsimeq;":8772,"nsmid;":8740,"nspar;":8742,"nsqsube;":8930,"nsqsupe;":8931,"nsub;":8836,"nsubE;":[10949,824],"nsube;":8840,"nsubset;":[8834,8402],"nsubseteq;":8840,"nsubseteqq;":[10949,824],"nsucc;":8833,"nsucceq;":[10928,824],"nsup;":8837,"nsupE;":[10950,824],"nsupe;":8841,"nsupset;":[8835,8402],"nsupseteq;":8841,"nsupseteqq;":[10950,824],"ntgl;":8825,ntilde:241,"ntilde;":241,"ntlg;":8824,"ntriangleleft;":8938,"ntrianglelefteq;":8940,"ntriangleright;":8939,"ntrianglerighteq;":8941,"nu;":957,"num;":35,"numero;":8470,"numsp;":8199,"nvDash;":8877,"nvHarr;":10500,"nvap;":[8781,8402],"nvdash;":8876,"nvge;":[8805,8402],"nvgt;":[62,8402],"nvinfin;":10718,"nvlArr;":10498,"nvle;":[8804,8402],"nvlt;":[60,8402],"nvltrie;":[8884,8402],"nvrArr;":10499,"nvrtrie;":[8885,8402],"nvsim;":[8764,8402],"nwArr;":8662,"nwarhk;":10531,"nwarr;":8598,"nwarrow;":8598,"nwnear;":10535,"oS;":9416,oacute:243,"oacute;":243,"oast;":8859,"ocir;":8858,ocirc:244,"ocirc;":244,"ocy;":1086,"odash;":8861,"odblac;":337,"odiv;":10808,"odot;":8857,"odsold;":10684,"oelig;":339,"ofcir;":10687,"ofr;":[55349,56620],"ogon;":731,ograve:242,"ograve;":242,"ogt;":10689,"ohbar;":10677,"ohm;":937,"oint;":8750,"olarr;":8634,"olcir;":10686,"olcross;":10683,"oline;":8254,"olt;":10688,"omacr;":333,"omega;":969,"omicron;":959,"omid;":10678,"ominus;":8854,"oopf;":[55349,56672],"opar;":10679,"operp;":10681,"oplus;":8853,"or;":8744,"orarr;":8635,"ord;":10845,"order;":8500,"orderof;":8500,ordf:170,"ordf;":170,ordm:186,"ordm;":186,"origof;":8886,"oror;":10838,"orslope;":10839,"orv;":10843,"oscr;":8500,oslash:248,"oslash;":248,"osol;":8856,otilde:245,"otilde;":245,"otimes;":8855,"otimesas;":10806,ouml:246,"ouml;":246,"ovbar;":9021,"par;":8741,para:182,"para;":182,"parallel;":8741,"parsim;":10995,"parsl;":11005,"part;":8706,"pcy;":1087,"percnt;":37,"period;":46,"permil;":8240,"perp;":8869,"pertenk;":8241,"pfr;":[55349,56621],"phi;":966,"phiv;":981,"phmmat;":8499,"phone;":9742,"pi;":960,"pitchfork;":8916,"piv;":982,"planck;":8463,"planckh;":8462,"plankv;":8463,"plus;":43,"plusacir;":10787,"plusb;":8862,"pluscir;":10786,"plusdo;":8724,"plusdu;":10789,"pluse;":10866,plusmn:177,"plusmn;":177,"plussim;":10790,"plustwo;":10791,"pm;":177,"pointint;":10773,"popf;":[55349,56673],pound:163,"pound;":163,"pr;":8826,"prE;":10931,"prap;":10935,"prcue;":8828,"pre;":10927,"prec;":8826,"precapprox;":10935,"preccurlyeq;":8828,"preceq;":10927,"precnapprox;":10937,"precneqq;":10933,"precnsim;":8936,"precsim;":8830,"prime;":8242,"primes;":8473,"prnE;":10933,"prnap;":10937,"prnsim;":8936,"prod;":8719,"profalar;":9006,"profline;":8978,"profsurf;":8979,"prop;":8733,"propto;":8733,"prsim;":8830,"prurel;":8880,"pscr;":[55349,56517],"psi;":968,"puncsp;":8200,"qfr;":[55349,56622],"qint;":10764,"qopf;":[55349,56674],"qprime;":8279,"qscr;":[55349,56518],"quaternions;":8461,"quatint;":10774,"quest;":63,"questeq;":8799,quot:34,"quot;":34,"rAarr;":8667,"rArr;":8658,"rAtail;":10524,"rBarr;":10511,"rHar;":10596,"race;":[8765,817],"racute;":341,"radic;":8730,"raemptyv;":10675,"rang;":10217,"rangd;":10642,"range;":10661,"rangle;":10217,raquo:187,"raquo;":187,"rarr;":8594,"rarrap;":10613,"rarrb;":8677,"rarrbfs;":10528,"rarrc;":10547,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrsim;":10612,"rarrtl;":8611,"rarrw;":8605,"ratail;":10522,"ratio;":8758,"rationals;":8474,"rbarr;":10509,"rbbrk;":10099,"rbrace;":125,"rbrack;":93,"rbrke;":10636,"rbrksld;":10638,"rbrkslu;":10640,"rcaron;":345,"rcedil;":343,"rceil;":8969,"rcub;":125,"rcy;":1088,"rdca;":10551,"rdldhar;":10601,"rdquo;":8221,"rdquor;":8221,"rdsh;":8627,"real;":8476,"realine;":8475,"realpart;":8476,"reals;":8477,"rect;":9645,reg:174,"reg;":174,"rfisht;":10621,"rfloor;":8971,"rfr;":[55349,56623],"rhard;":8641,"rharu;":8640,"rharul;":10604,"rho;":961,"rhov;":1009,"rightarrow;":8594,"rightarrowtail;":8611,"rightharpoondown;":8641,"rightharpoonup;":8640,"rightleftarrows;":8644,"rightleftharpoons;":8652,"rightrightarrows;":8649,"rightsquigarrow;":8605,"rightthreetimes;":8908,"ring;":730,"risingdotseq;":8787,"rlarr;":8644,"rlhar;":8652,"rlm;":8207,"rmoust;":9137,"rmoustache;":9137,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"ropf;":[55349,56675],"roplus;":10798,"rotimes;":10805,"rpar;":41,"rpargt;":10644,"rppolint;":10770,"rrarr;":8649,"rsaquo;":8250,"rscr;":[55349,56519],"rsh;":8625,"rsqb;":93,"rsquo;":8217,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"rtri;":9657,"rtrie;":8885,"rtrif;":9656,"rtriltri;":10702,"ruluhar;":10600,"rx;":8478,"sacute;":347,"sbquo;":8218,"sc;":8827,"scE;":10932,"scap;":10936,"scaron;":353,"sccue;":8829,"sce;":10928,"scedil;":351,"scirc;":349,"scnE;":10934,"scnap;":10938,"scnsim;":8937,"scpolint;":10771,"scsim;":8831,"scy;":1089,"sdot;":8901,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searhk;":10533,"searr;":8600,"searrow;":8600,sect:167,"sect;":167,"semi;":59,"seswar;":10537,"setminus;":8726,"setmn;":8726,"sext;":10038,"sfr;":[55349,56624],"sfrown;":8994,"sharp;":9839,"shchcy;":1097,"shcy;":1096,"shortmid;":8739,"shortparallel;":8741,shy:173,"shy;":173,"sigma;":963,"sigmaf;":962,"sigmav;":962,"sim;":8764,"simdot;":10858,"sime;":8771,"simeq;":8771,"simg;":10910,"simgE;":10912,"siml;":10909,"simlE;":10911,"simne;":8774,"simplus;":10788,"simrarr;":10610,"slarr;":8592,"smallsetminus;":8726,"smashp;":10803,"smeparsl;":10724,"smid;":8739,"smile;":8995,"smt;":10922,"smte;":10924,"smtes;":[10924,65024],"softcy;":1100,"sol;":47,"solb;":10692,"solbar;":9023,"sopf;":[55349,56676],"spades;":9824,"spadesuit;":9824,"spar;":8741,"sqcap;":8851,"sqcaps;":[8851,65024],"sqcup;":8852,"sqcups;":[8852,65024],"sqsub;":8847,"sqsube;":8849,"sqsubset;":8847,"sqsubseteq;":8849,"sqsup;":8848,"sqsupe;":8850,"sqsupset;":8848,"sqsupseteq;":8850,"squ;":9633,"square;":9633,"squarf;":9642,"squf;":9642,"srarr;":8594,"sscr;":[55349,56520],"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"star;":9734,"starf;":9733,"straightepsilon;":1013,"straightphi;":981,"strns;":175,"sub;":8834,"subE;":10949,"subdot;":10941,"sube;":8838,"subedot;":10947,"submult;":10945,"subnE;":10955,"subne;":8842,"subplus;":10943,"subrarr;":10617,"subset;":8834,"subseteq;":8838,"subseteqq;":10949,"subsetneq;":8842,"subsetneqq;":10955,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succ;":8827,"succapprox;":10936,"succcurlyeq;":8829,"succeq;":10928,"succnapprox;":10938,"succneqq;":10934,"succnsim;":8937,"succsim;":8831,"sum;":8721,"sung;":9834,sup1:185,"sup1;":185,sup2:178,"sup2;":178,sup3:179,"sup3;":179,"sup;":8835,"supE;":10950,"supdot;":10942,"supdsub;":10968,"supe;":8839,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supnE;":10956,"supne;":8843,"supplus;":10944,"supset;":8835,"supseteq;":8839,"supseteqq;":10950,"supsetneq;":8843,"supsetneqq;":10956,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swArr;":8665,"swarhk;":10534,"swarr;":8601,"swarrow;":8601,"swnwar;":10538,szlig:223,"szlig;":223,"target;":8982,"tau;":964,"tbrk;":9140,"tcaron;":357,"tcedil;":355,"tcy;":1090,"tdot;":8411,"telrec;":8981,"tfr;":[55349,56625],"there4;":8756,"therefore;":8756,"theta;":952,"thetasym;":977,"thetav;":977,"thickapprox;":8776,"thicksim;":8764,"thinsp;":8201,"thkap;":8776,"thksim;":8764,thorn:254,"thorn;":254,"tilde;":732,times:215,"times;":215,"timesb;":8864,"timesbar;":10801,"timesd;":10800,"tint;":8749,"toea;":10536,"top;":8868,"topbot;":9014,"topcir;":10993,"topf;":[55349,56677],"topfork;":10970,"tosa;":10537,"tprime;":8244,"trade;":8482,"triangle;":9653,"triangledown;":9663,"triangleleft;":9667,"trianglelefteq;":8884,"triangleq;":8796,"triangleright;":9657,"trianglerighteq;":8885,"tridot;":9708,"trie;":8796,"triminus;":10810,"triplus;":10809,"trisb;":10701,"tritime;":10811,"trpezium;":9186,"tscr;":[55349,56521],"tscy;":1094,"tshcy;":1115,"tstrok;":359,"twixt;":8812,"twoheadleftarrow;":8606,"twoheadrightarrow;":8608,"uArr;":8657,"uHar;":10595,uacute:250,"uacute;":250,"uarr;":8593,"ubrcy;":1118,"ubreve;":365,ucirc:251,"ucirc;":251,"ucy;":1091,"udarr;":8645,"udblac;":369,"udhar;":10606,"ufisht;":10622,"ufr;":[55349,56626],ugrave:249,"ugrave;":249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ulcorn;":8988,"ulcorner;":8988,"ulcrop;":8975,"ultri;":9720,"umacr;":363,uml:168,"uml;":168,"uogon;":371,"uopf;":[55349,56678],"uparrow;":8593,"updownarrow;":8597,"upharpoonleft;":8639,"upharpoonright;":8638,"uplus;":8846,"upsi;":965,"upsih;":978,"upsilon;":965,"upuparrows;":8648,"urcorn;":8989,"urcorner;":8989,"urcrop;":8974,"uring;":367,"urtri;":9721,"uscr;":[55349,56522],"utdot;":8944,"utilde;":361,"utri;":9653,"utrif;":9652,"uuarr;":8648,uuml:252,"uuml;":252,"uwangle;":10663,"vArr;":8661,"vBar;":10984,"vBarv;":10985,"vDash;":8872,"vangrt;":10652,"varepsilon;":1013,"varkappa;":1008,"varnothing;":8709,"varphi;":981,"varpi;":982,"varpropto;":8733,"varr;":8597,"varrho;":1009,"varsigma;":962,"varsubsetneq;":[8842,65024],"varsubsetneqq;":[10955,65024],"varsupsetneq;":[8843,65024],"varsupsetneqq;":[10956,65024],"vartheta;":977,"vartriangleleft;":8882,"vartriangleright;":8883,"vcy;":1074,"vdash;":8866,"vee;":8744,"veebar;":8891,"veeeq;":8794,"vellip;":8942,"verbar;":124,"vert;":124,"vfr;":[55349,56627],"vltri;":8882,"vnsub;":[8834,8402],"vnsup;":[8835,8402],"vopf;":[55349,56679],"vprop;":8733,"vrtri;":8883,"vscr;":[55349,56523],"vsubnE;":[10955,65024],"vsubne;":[8842,65024],"vsupnE;":[10956,65024],"vsupne;":[8843,65024],"vzigzag;":10650,"wcirc;":373,"wedbar;":10847,"wedge;":8743,"wedgeq;":8793,"weierp;":8472,"wfr;":[55349,56628],"wopf;":[55349,56680],"wp;":8472,"wr;":8768,"wreath;":8768,"wscr;":[55349,56524],"xcap;":8898,"xcirc;":9711,"xcup;":8899,"xdtri;":9661,"xfr;":[55349,56629],"xhArr;":10234,"xharr;":10231,"xi;":958,"xlArr;":10232,"xlarr;":10229,"xmap;":10236,"xnis;":8955,"xodot;":10752,"xopf;":[55349,56681],"xoplus;":10753,"xotime;":10754,"xrArr;":10233,"xrarr;":10230,"xscr;":[55349,56525],"xsqcup;":10758,"xuplus;":10756,"xutri;":9651,"xvee;":8897,"xwedge;":8896,yacute:253,"yacute;":253,"yacy;":1103,"ycirc;":375,"ycy;":1099,yen:165,"yen;":165,"yfr;":[55349,56630],"yicy;":1111,"yopf;":[55349,56682],"yscr;":[55349,56526],"yucy;":1102,yuml:255,"yuml;":255,"zacute;":378,"zcaron;":382,"zcy;":1079,"zdot;":380,"zeetrf;":8488,"zeta;":950,"zfr;":[55349,56631],"zhcy;":1078,"zigrarr;":8669,"zopf;":[55349,56683],"zscr;":[55349,56527],"zwj;":8205,"zwnj;":8204},I5=/(A(?:Elig;?|MP;?|acute;?|breve;|c(?:irc;?|y;)|fr;|grave;?|lpha;|macr;|nd;|o(?:gon;|pf;)|pplyFunction;|ring;?|s(?:cr;|sign;)|tilde;?|uml;?)|B(?:a(?:ckslash;|r(?:v;|wed;))|cy;|e(?:cause;|rnoullis;|ta;)|fr;|opf;|reve;|scr;|umpeq;)|C(?:Hcy;|OPY;?|a(?:cute;|p(?:;|italDifferentialD;)|yleys;)|c(?:aron;|edil;?|irc;|onint;)|dot;|e(?:dilla;|nterDot;)|fr;|hi;|ircle(?:Dot;|Minus;|Plus;|Times;)|lo(?:ckwiseContourIntegral;|seCurly(?:DoubleQuote;|Quote;))|o(?:lon(?:;|e;)|n(?:gruent;|int;|tourIntegral;)|p(?:f;|roduct;)|unterClockwiseContourIntegral;)|ross;|scr;|up(?:;|Cap;))|D(?:D(?:;|otrahd;)|Jcy;|Scy;|Zcy;|a(?:gger;|rr;|shv;)|c(?:aron;|y;)|el(?:;|ta;)|fr;|i(?:a(?:critical(?:Acute;|Do(?:t;|ubleAcute;)|Grave;|Tilde;)|mond;)|fferentialD;)|o(?:pf;|t(?:;|Dot;|Equal;)|uble(?:ContourIntegral;|Do(?:t;|wnArrow;)|L(?:eft(?:Arrow;|RightArrow;|Tee;)|ong(?:Left(?:Arrow;|RightArrow;)|RightArrow;))|Right(?:Arrow;|Tee;)|Up(?:Arrow;|DownArrow;)|VerticalBar;)|wn(?:Arrow(?:;|Bar;|UpArrow;)|Breve;|Left(?:RightVector;|TeeVector;|Vector(?:;|Bar;))|Right(?:TeeVector;|Vector(?:;|Bar;))|Tee(?:;|Arrow;)|arrow;))|s(?:cr;|trok;))|E(?:NG;|TH;?|acute;?|c(?:aron;|irc;?|y;)|dot;|fr;|grave;?|lement;|m(?:acr;|pty(?:SmallSquare;|VerySmallSquare;))|o(?:gon;|pf;)|psilon;|qu(?:al(?:;|Tilde;)|ilibrium;)|s(?:cr;|im;)|ta;|uml;?|x(?:ists;|ponentialE;))|F(?:cy;|fr;|illed(?:SmallSquare;|VerySmallSquare;)|o(?:pf;|rAll;|uriertrf;)|scr;)|G(?:Jcy;|T;?|amma(?:;|d;)|breve;|c(?:edil;|irc;|y;)|dot;|fr;|g;|opf;|reater(?:Equal(?:;|Less;)|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|scr;|t;)|H(?:ARDcy;|a(?:cek;|t;)|circ;|fr;|ilbertSpace;|o(?:pf;|rizontalLine;)|s(?:cr;|trok;)|ump(?:DownHump;|Equal;))|I(?:Ecy;|Jlig;|Ocy;|acute;?|c(?:irc;?|y;)|dot;|fr;|grave;?|m(?:;|a(?:cr;|ginaryI;)|plies;)|n(?:t(?:;|e(?:gral;|rsection;))|visible(?:Comma;|Times;))|o(?:gon;|pf;|ta;)|scr;|tilde;|u(?:kcy;|ml;?))|J(?:c(?:irc;|y;)|fr;|opf;|s(?:cr;|ercy;)|ukcy;)|K(?:Hcy;|Jcy;|appa;|c(?:edil;|y;)|fr;|opf;|scr;)|L(?:Jcy;|T;?|a(?:cute;|mbda;|ng;|placetrf;|rr;)|c(?:aron;|edil;|y;)|e(?:ft(?:A(?:ngleBracket;|rrow(?:;|Bar;|RightArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|Right(?:Arrow;|Vector;)|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;|rightarrow;)|ss(?:EqualGreater;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;))|fr;|l(?:;|eftarrow;)|midot;|o(?:ng(?:Left(?:Arrow;|RightArrow;)|RightArrow;|left(?:arrow;|rightarrow;)|rightarrow;)|pf;|wer(?:LeftArrow;|RightArrow;))|s(?:cr;|h;|trok;)|t;)|M(?:ap;|cy;|e(?:diumSpace;|llintrf;)|fr;|inusPlus;|opf;|scr;|u;)|N(?:Jcy;|acute;|c(?:aron;|edil;|y;)|e(?:gative(?:MediumSpace;|Thi(?:ckSpace;|nSpace;)|VeryThinSpace;)|sted(?:GreaterGreater;|LessLess;)|wLine;)|fr;|o(?:Break;|nBreakingSpace;|pf;|t(?:;|C(?:ongruent;|upCap;)|DoubleVerticalBar;|E(?:lement;|qual(?:;|Tilde;)|xists;)|Greater(?:;|Equal;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|Hump(?:DownHump;|Equal;)|Le(?:ftTriangle(?:;|Bar;|Equal;)|ss(?:;|Equal;|Greater;|Less;|SlantEqual;|Tilde;))|Nested(?:GreaterGreater;|LessLess;)|Precedes(?:;|Equal;|SlantEqual;)|R(?:everseElement;|ightTriangle(?:;|Bar;|Equal;))|S(?:quareSu(?:bset(?:;|Equal;)|perset(?:;|Equal;))|u(?:bset(?:;|Equal;)|cceeds(?:;|Equal;|SlantEqual;|Tilde;)|perset(?:;|Equal;)))|Tilde(?:;|Equal;|FullEqual;|Tilde;)|VerticalBar;))|scr;|tilde;?|u;)|O(?:Elig;|acute;?|c(?:irc;?|y;)|dblac;|fr;|grave;?|m(?:acr;|ega;|icron;)|opf;|penCurly(?:DoubleQuote;|Quote;)|r;|s(?:cr;|lash;?)|ti(?:lde;?|mes;)|uml;?|ver(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;))|P(?:artialD;|cy;|fr;|hi;|i;|lusMinus;|o(?:incareplane;|pf;)|r(?:;|ecedes(?:;|Equal;|SlantEqual;|Tilde;)|ime;|o(?:duct;|portion(?:;|al;)))|s(?:cr;|i;))|Q(?:UOT;?|fr;|opf;|scr;)|R(?:Barr;|EG;?|a(?:cute;|ng;|rr(?:;|tl;))|c(?:aron;|edil;|y;)|e(?:;|verse(?:E(?:lement;|quilibrium;)|UpEquilibrium;))|fr;|ho;|ight(?:A(?:ngleBracket;|rrow(?:;|Bar;|LeftArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;)|o(?:pf;|undImplies;)|rightarrow;|s(?:cr;|h;)|uleDelayed;)|S(?:H(?:CHcy;|cy;)|OFTcy;|acute;|c(?:;|aron;|edil;|irc;|y;)|fr;|hort(?:DownArrow;|LeftArrow;|RightArrow;|UpArrow;)|igma;|mallCircle;|opf;|q(?:rt;|uare(?:;|Intersection;|Su(?:bset(?:;|Equal;)|perset(?:;|Equal;))|Union;))|scr;|tar;|u(?:b(?:;|set(?:;|Equal;))|c(?:ceeds(?:;|Equal;|SlantEqual;|Tilde;)|hThat;)|m;|p(?:;|erset(?:;|Equal;)|set;)))|T(?:HORN;?|RADE;|S(?:Hcy;|cy;)|a(?:b;|u;)|c(?:aron;|edil;|y;)|fr;|h(?:e(?:refore;|ta;)|i(?:ckSpace;|nSpace;))|ilde(?:;|Equal;|FullEqual;|Tilde;)|opf;|ripleDot;|s(?:cr;|trok;))|U(?:a(?:cute;?|rr(?:;|ocir;))|br(?:cy;|eve;)|c(?:irc;?|y;)|dblac;|fr;|grave;?|macr;|n(?:der(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;)|ion(?:;|Plus;))|o(?:gon;|pf;)|p(?:Arrow(?:;|Bar;|DownArrow;)|DownArrow;|Equilibrium;|Tee(?:;|Arrow;)|arrow;|downarrow;|per(?:LeftArrow;|RightArrow;)|si(?:;|lon;))|ring;|scr;|tilde;|uml;?)|V(?:Dash;|bar;|cy;|dash(?:;|l;)|e(?:e;|r(?:bar;|t(?:;|ical(?:Bar;|Line;|Separator;|Tilde;))|yThinSpace;))|fr;|opf;|scr;|vdash;)|W(?:circ;|edge;|fr;|opf;|scr;)|X(?:fr;|i;|opf;|scr;)|Y(?:Acy;|Icy;|Ucy;|acute;?|c(?:irc;|y;)|fr;|opf;|scr;|uml;)|Z(?:Hcy;|acute;|c(?:aron;|y;)|dot;|e(?:roWidthSpace;|ta;)|fr;|opf;|scr;)|a(?:acute;?|breve;|c(?:;|E;|d;|irc;?|ute;?|y;)|elig;?|f(?:;|r;)|grave;?|l(?:e(?:fsym;|ph;)|pha;)|m(?:a(?:cr;|lg;)|p;?)|n(?:d(?:;|and;|d;|slope;|v;)|g(?:;|e;|le;|msd(?:;|a(?:a;|b;|c;|d;|e;|f;|g;|h;))|rt(?:;|vb(?:;|d;))|s(?:ph;|t;)|zarr;))|o(?:gon;|pf;)|p(?:;|E;|acir;|e;|id;|os;|prox(?:;|eq;))|ring;?|s(?:cr;|t;|ymp(?:;|eq;))|tilde;?|uml;?|w(?:conint;|int;))|b(?:Not;|a(?:ck(?:cong;|epsilon;|prime;|sim(?:;|eq;))|r(?:vee;|wed(?:;|ge;)))|brk(?:;|tbrk;)|c(?:ong;|y;)|dquo;|e(?:caus(?:;|e;)|mptyv;|psi;|rnou;|t(?:a;|h;|ween;))|fr;|ig(?:c(?:ap;|irc;|up;)|o(?:dot;|plus;|times;)|s(?:qcup;|tar;)|triangle(?:down;|up;)|uplus;|vee;|wedge;)|karow;|l(?:a(?:ck(?:lozenge;|square;|triangle(?:;|down;|left;|right;))|nk;)|k(?:1(?:2;|4;)|34;)|ock;)|n(?:e(?:;|quiv;)|ot;)|o(?:pf;|t(?:;|tom;)|wtie;|x(?:D(?:L;|R;|l;|r;)|H(?:;|D;|U;|d;|u;)|U(?:L;|R;|l;|r;)|V(?:;|H;|L;|R;|h;|l;|r;)|box;|d(?:L;|R;|l;|r;)|h(?:;|D;|U;|d;|u;)|minus;|plus;|times;|u(?:L;|R;|l;|r;)|v(?:;|H;|L;|R;|h;|l;|r;)))|prime;|r(?:eve;|vbar;?)|s(?:cr;|emi;|im(?:;|e;)|ol(?:;|b;|hsub;))|u(?:ll(?:;|et;)|mp(?:;|E;|e(?:;|q;))))|c(?:a(?:cute;|p(?:;|and;|brcup;|c(?:ap;|up;)|dot;|s;)|r(?:et;|on;))|c(?:a(?:ps;|ron;)|edil;?|irc;|ups(?:;|sm;))|dot;|e(?:dil;?|mptyv;|nt(?:;|erdot;|))|fr;|h(?:cy;|eck(?:;|mark;)|i;)|ir(?:;|E;|c(?:;|eq;|le(?:arrow(?:left;|right;)|d(?:R;|S;|ast;|circ;|dash;)))|e;|fnint;|mid;|scir;)|lubs(?:;|uit;)|o(?:lon(?:;|e(?:;|q;))|m(?:ma(?:;|t;)|p(?:;|fn;|le(?:ment;|xes;)))|n(?:g(?:;|dot;)|int;)|p(?:f;|rod;|y(?:;|sr;|)))|r(?:arr;|oss;)|s(?:cr;|u(?:b(?:;|e;)|p(?:;|e;)))|tdot;|u(?:darr(?:l;|r;)|e(?:pr;|sc;)|larr(?:;|p;)|p(?:;|brcap;|c(?:ap;|up;)|dot;|or;|s;)|r(?:arr(?:;|m;)|ly(?:eq(?:prec;|succ;)|vee;|wedge;)|ren;?|vearrow(?:left;|right;))|vee;|wed;)|w(?:conint;|int;)|ylcty;)|d(?:Arr;|Har;|a(?:gger;|leth;|rr;|sh(?:;|v;))|b(?:karow;|lac;)|c(?:aron;|y;)|d(?:;|a(?:gger;|rr;)|otseq;)|e(?:g;?|lta;|mptyv;)|f(?:isht;|r;)|har(?:l;|r;)|i(?:am(?:;|ond(?:;|suit;)|s;)|e;|gamma;|sin;|v(?:;|ide(?:;|ontimes;|)|onx;))|jcy;|lc(?:orn;|rop;)|o(?:llar;|pf;|t(?:;|eq(?:;|dot;)|minus;|plus;|square;)|ublebarwedge;|wn(?:arrow;|downarrows;|harpoon(?:left;|right;)))|r(?:bkarow;|c(?:orn;|rop;))|s(?:c(?:r;|y;)|ol;|trok;)|t(?:dot;|ri(?:;|f;))|u(?:arr;|har;)|wangle;|z(?:cy;|igrarr;))|e(?:D(?:Dot;|ot;)|a(?:cute;?|ster;)|c(?:aron;|ir(?:;|c;?)|olon;|y;)|dot;|e;|f(?:Dot;|r;)|g(?:;|rave;?|s(?:;|dot;))|l(?:;|inters;|l;|s(?:;|dot;))|m(?:acr;|pty(?:;|set;|v;)|sp(?:1(?:3;|4;)|;))|n(?:g;|sp;)|o(?:gon;|pf;)|p(?:ar(?:;|sl;)|lus;|si(?:;|lon;|v;))|q(?:c(?:irc;|olon;)|s(?:im;|lant(?:gtr;|less;))|u(?:als;|est;|iv(?:;|DD;))|vparsl;)|r(?:Dot;|arr;)|s(?:cr;|dot;|im;)|t(?:a;|h;?)|u(?:ml;?|ro;)|x(?:cl;|ist;|p(?:ectation;|onentiale;)))|f(?:allingdotseq;|cy;|emale;|f(?:ilig;|l(?:ig;|lig;)|r;)|ilig;|jlig;|l(?:at;|lig;|tns;)|nof;|o(?:pf;|r(?:all;|k(?:;|v;)))|partint;|r(?:a(?:c(?:1(?:2;?|3;|4;?|5;|6;|8;)|2(?:3;|5;)|3(?:4;?|5;|8;)|45;|5(?:6;|8;)|78;)|sl;)|own;)|scr;)|g(?:E(?:;|l;)|a(?:cute;|mma(?:;|d;)|p;)|breve;|c(?:irc;|y;)|dot;|e(?:;|l;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|l;))|l(?:;|es;)))|fr;|g(?:;|g;)|imel;|jcy;|l(?:;|E;|a;|j;)|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|opf;|rave;|s(?:cr;|im(?:;|e;|l;))|t(?:;|c(?:c;|ir;)|dot;|lPar;|quest;|r(?:a(?:pprox;|rr;)|dot;|eq(?:less;|qless;)|less;|sim;)|)|v(?:ertneqq;|nE;))|h(?:Arr;|a(?:irsp;|lf;|milt;|r(?:dcy;|r(?:;|cir;|w;)))|bar;|circ;|e(?:arts(?:;|uit;)|llip;|rcon;)|fr;|ks(?:earow;|warow;)|o(?:arr;|mtht;|ok(?:leftarrow;|rightarrow;)|pf;|rbar;)|s(?:cr;|lash;|trok;)|y(?:bull;|phen;))|i(?:acute;?|c(?:;|irc;?|y;)|e(?:cy;|xcl;?)|f(?:f;|r;)|grave;?|i(?:;|i(?:int;|nt;)|nfin;|ota;)|jlig;|m(?:a(?:cr;|g(?:e;|line;|part;)|th;)|of;|ped;)|n(?:;|care;|fin(?:;|tie;)|odot;|t(?:;|cal;|e(?:gers;|rcal;)|larhk;|prod;))|o(?:cy;|gon;|pf;|ta;)|prod;|quest;?|s(?:cr;|in(?:;|E;|dot;|s(?:;|v;)|v;))|t(?:;|ilde;)|u(?:kcy;|ml;?))|j(?:c(?:irc;|y;)|fr;|math;|opf;|s(?:cr;|ercy;)|ukcy;)|k(?:appa(?:;|v;)|c(?:edil;|y;)|fr;|green;|hcy;|jcy;|opf;|scr;)|l(?:A(?:arr;|rr;|tail;)|Barr;|E(?:;|g;)|Har;|a(?:cute;|emptyv;|gran;|mbda;|ng(?:;|d;|le;)|p;|quo;?|rr(?:;|b(?:;|fs;)|fs;|hk;|lp;|pl;|sim;|tl;)|t(?:;|ail;|e(?:;|s;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|quo(?:;|r;)|r(?:dhar;|ushar;)|sh;)|e(?:;|ft(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|leftarrows;|right(?:arrow(?:;|s;)|harpoons;|squigarrow;)|threetimes;)|g;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|r;))|g(?:;|es;)|s(?:approx;|dot;|eq(?:gtr;|qgtr;)|gtr;|sim;)))|f(?:isht;|loor;|r;)|g(?:;|E;)|h(?:ar(?:d;|u(?:;|l;))|blk;)|jcy;|l(?:;|arr;|corner;|hard;|tri;)|m(?:idot;|oust(?:;|ache;))|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|o(?:a(?:ng;|rr;)|brk;|ng(?:left(?:arrow;|rightarrow;)|mapsto;|rightarrow;)|oparrow(?:left;|right;)|p(?:ar;|f;|lus;)|times;|w(?:ast;|bar;)|z(?:;|enge;|f;))|par(?:;|lt;)|r(?:arr;|corner;|har(?:;|d;)|m;|tri;)|s(?:aquo;|cr;|h;|im(?:;|e;|g;)|q(?:b;|uo(?:;|r;))|trok;)|t(?:;|c(?:c;|ir;)|dot;|hree;|imes;|larr;|quest;|r(?:Par;|i(?:;|e;|f;))|)|ur(?:dshar;|uhar;)|v(?:ertneqq;|nE;))|m(?:DDot;|a(?:cr;?|l(?:e;|t(?:;|ese;))|p(?:;|sto(?:;|down;|left;|up;))|rker;)|c(?:omma;|y;)|dash;|easuredangle;|fr;|ho;|i(?:cro;?|d(?:;|ast;|cir;|dot;?)|nus(?:;|b;|d(?:;|u;)))|l(?:cp;|dr;)|nplus;|o(?:dels;|pf;)|p;|s(?:cr;|tpos;)|u(?:;|ltimap;|map;))|n(?:G(?:g;|t(?:;|v;))|L(?:eft(?:arrow;|rightarrow;)|l;|t(?:;|v;))|Rightarrow;|V(?:Dash;|dash;)|a(?:bla;|cute;|ng;|p(?:;|E;|id;|os;|prox;)|tur(?:;|al(?:;|s;)))|b(?:sp;?|ump(?:;|e;))|c(?:a(?:p;|ron;)|edil;|ong(?:;|dot;)|up;|y;)|dash;|e(?:;|Arr;|ar(?:hk;|r(?:;|ow;))|dot;|quiv;|s(?:ear;|im;)|xist(?:;|s;))|fr;|g(?:E;|e(?:;|q(?:;|q;|slant;)|s;)|sim;|t(?:;|r;))|h(?:Arr;|arr;|par;)|i(?:;|s(?:;|d;)|v;)|jcy;|l(?:Arr;|E;|arr;|dr;|e(?:;|ft(?:arrow;|rightarrow;)|q(?:;|q;|slant;)|s(?:;|s;))|sim;|t(?:;|ri(?:;|e;)))|mid;|o(?:pf;|t(?:;|in(?:;|E;|dot;|v(?:a;|b;|c;))|ni(?:;|v(?:a;|b;|c;))|))|p(?:ar(?:;|allel;|sl;|t;)|olint;|r(?:;|cue;|e(?:;|c(?:;|eq;))))|r(?:Arr;|arr(?:;|c;|w;)|ightarrow;|tri(?:;|e;))|s(?:c(?:;|cue;|e;|r;)|hort(?:mid;|parallel;)|im(?:;|e(?:;|q;))|mid;|par;|qsu(?:be;|pe;)|u(?:b(?:;|E;|e;|set(?:;|eq(?:;|q;)))|cc(?:;|eq;)|p(?:;|E;|e;|set(?:;|eq(?:;|q;)))))|t(?:gl;|ilde;?|lg;|riangle(?:left(?:;|eq;)|right(?:;|eq;)))|u(?:;|m(?:;|ero;|sp;))|v(?:Dash;|Harr;|ap;|dash;|g(?:e;|t;)|infin;|l(?:Arr;|e;|t(?:;|rie;))|r(?:Arr;|trie;)|sim;)|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|near;))|o(?:S;|a(?:cute;?|st;)|c(?:ir(?:;|c;?)|y;)|d(?:ash;|blac;|iv;|ot;|sold;)|elig;|f(?:cir;|r;)|g(?:on;|rave;?|t;)|h(?:bar;|m;)|int;|l(?:arr;|c(?:ir;|ross;)|ine;|t;)|m(?:acr;|ega;|i(?:cron;|d;|nus;))|opf;|p(?:ar;|erp;|lus;)|r(?:;|arr;|d(?:;|er(?:;|of;)|f;?|m;?)|igof;|or;|slope;|v;)|s(?:cr;|lash;?|ol;)|ti(?:lde;?|mes(?:;|as;))|uml;?|vbar;)|p(?:ar(?:;|a(?:;|llel;|)|s(?:im;|l;)|t;)|cy;|er(?:cnt;|iod;|mil;|p;|tenk;)|fr;|h(?:i(?:;|v;)|mmat;|one;)|i(?:;|tchfork;|v;)|l(?:an(?:ck(?:;|h;)|kv;)|us(?:;|acir;|b;|cir;|d(?:o;|u;)|e;|mn;?|sim;|two;))|m;|o(?:intint;|pf;|und;?)|r(?:;|E;|ap;|cue;|e(?:;|c(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;))|ime(?:;|s;)|n(?:E;|ap;|sim;)|o(?:d;|f(?:alar;|line;|surf;)|p(?:;|to;))|sim;|urel;)|s(?:cr;|i;)|uncsp;)|q(?:fr;|int;|opf;|prime;|scr;|u(?:at(?:ernions;|int;)|est(?:;|eq;)|ot;?))|r(?:A(?:arr;|rr;|tail;)|Barr;|Har;|a(?:c(?:e;|ute;)|dic;|emptyv;|ng(?:;|d;|e;|le;)|quo;?|rr(?:;|ap;|b(?:;|fs;)|c;|fs;|hk;|lp;|pl;|sim;|tl;|w;)|t(?:ail;|io(?:;|nals;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|ldhar;|quo(?:;|r;)|sh;)|e(?:al(?:;|ine;|part;|s;)|ct;|g;?)|f(?:isht;|loor;|r;)|h(?:ar(?:d;|u(?:;|l;))|o(?:;|v;))|i(?:ght(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|left(?:arrows;|harpoons;)|rightarrows;|squigarrow;|threetimes;)|ng;|singdotseq;)|l(?:arr;|har;|m;)|moust(?:;|ache;)|nmid;|o(?:a(?:ng;|rr;)|brk;|p(?:ar;|f;|lus;)|times;)|p(?:ar(?:;|gt;)|polint;)|rarr;|s(?:aquo;|cr;|h;|q(?:b;|uo(?:;|r;)))|t(?:hree;|imes;|ri(?:;|e;|f;|ltri;))|uluhar;|x;)|s(?:acute;|bquo;|c(?:;|E;|a(?:p;|ron;)|cue;|e(?:;|dil;)|irc;|n(?:E;|ap;|sim;)|polint;|sim;|y;)|dot(?:;|b;|e;)|e(?:Arr;|ar(?:hk;|r(?:;|ow;))|ct;?|mi;|swar;|tm(?:inus;|n;)|xt;)|fr(?:;|own;)|h(?:arp;|c(?:hcy;|y;)|ort(?:mid;|parallel;)|y;?)|i(?:gma(?:;|f;|v;)|m(?:;|dot;|e(?:;|q;)|g(?:;|E;)|l(?:;|E;)|ne;|plus;|rarr;))|larr;|m(?:a(?:llsetminus;|shp;)|eparsl;|i(?:d;|le;)|t(?:;|e(?:;|s;)))|o(?:ftcy;|l(?:;|b(?:;|ar;))|pf;)|pa(?:des(?:;|uit;)|r;)|q(?:c(?:ap(?:;|s;)|up(?:;|s;))|su(?:b(?:;|e;|set(?:;|eq;))|p(?:;|e;|set(?:;|eq;)))|u(?:;|ar(?:e;|f;)|f;))|rarr;|s(?:cr;|etmn;|mile;|tarf;)|t(?:ar(?:;|f;)|r(?:aight(?:epsilon;|phi;)|ns;))|u(?:b(?:;|E;|dot;|e(?:;|dot;)|mult;|n(?:E;|e;)|plus;|rarr;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;)))|cc(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;)|m;|ng;|p(?:1;?|2;?|3;?|;|E;|d(?:ot;|sub;)|e(?:;|dot;)|hs(?:ol;|ub;)|larr;|mult;|n(?:E;|e;)|plus;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;))))|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|nwar;)|zlig;?)|t(?:a(?:rget;|u;)|brk;|c(?:aron;|edil;|y;)|dot;|elrec;|fr;|h(?:e(?:re(?:4;|fore;)|ta(?:;|sym;|v;))|i(?:ck(?:approx;|sim;)|nsp;)|k(?:ap;|sim;)|orn;?)|i(?:lde;|mes(?:;|b(?:;|ar;)|d;|)|nt;)|o(?:ea;|p(?:;|bot;|cir;|f(?:;|ork;))|sa;)|prime;|r(?:ade;|i(?:angle(?:;|down;|left(?:;|eq;)|q;|right(?:;|eq;))|dot;|e;|minus;|plus;|sb;|time;)|pezium;)|s(?:c(?:r;|y;)|hcy;|trok;)|w(?:ixt;|ohead(?:leftarrow;|rightarrow;)))|u(?:Arr;|Har;|a(?:cute;?|rr;)|br(?:cy;|eve;)|c(?:irc;?|y;)|d(?:arr;|blac;|har;)|f(?:isht;|r;)|grave;?|h(?:ar(?:l;|r;)|blk;)|l(?:c(?:orn(?:;|er;)|rop;)|tri;)|m(?:acr;|l;?)|o(?:gon;|pf;)|p(?:arrow;|downarrow;|harpoon(?:left;|right;)|lus;|si(?:;|h;|lon;)|uparrows;)|r(?:c(?:orn(?:;|er;)|rop;)|ing;|tri;)|scr;|t(?:dot;|ilde;|ri(?:;|f;))|u(?:arr;|ml;?)|wangle;)|v(?:Arr;|Bar(?:;|v;)|Dash;|a(?:ngrt;|r(?:epsilon;|kappa;|nothing;|p(?:hi;|i;|ropto;)|r(?:;|ho;)|s(?:igma;|u(?:bsetneq(?:;|q;)|psetneq(?:;|q;)))|t(?:heta;|riangle(?:left;|right;))))|cy;|dash;|e(?:e(?:;|bar;|eq;)|llip;|r(?:bar;|t;))|fr;|ltri;|nsu(?:b;|p;)|opf;|prop;|rtri;|s(?:cr;|u(?:bn(?:E;|e;)|pn(?:E;|e;)))|zigzag;)|w(?:circ;|e(?:d(?:bar;|ge(?:;|q;))|ierp;)|fr;|opf;|p;|r(?:;|eath;)|scr;)|x(?:c(?:ap;|irc;|up;)|dtri;|fr;|h(?:Arr;|arr;)|i;|l(?:Arr;|arr;)|map;|nis;|o(?:dot;|p(?:f;|lus;)|time;)|r(?:Arr;|arr;)|s(?:cr;|qcup;)|u(?:plus;|tri;)|vee;|wedge;)|y(?:ac(?:ute;?|y;)|c(?:irc;|y;)|en;?|fr;|icy;|opf;|scr;|u(?:cy;|ml;?))|z(?:acute;|c(?:aron;|y;)|dot;|e(?:etrf;|ta;)|fr;|hcy;|igrarr;|opf;|scr;|w(?:j;|nj;)))|[\s\S]/g,Cbe=32,Tbe=/[^\r"&\u0000]+/g,Abe=/[^\r'&\u0000]+/g,Obe=/[^\r\t\n\f &>\u0000]+/g,Nbe=/[^\r\t\n\f \/>A-Z\u0000]+/g,Fbe=/[^\r\t\n\f \/=>A-Z\u0000]+/g,Ibe=/[^\]\r\u0000\uffff]*/g,Lbe=/[^&<\r\u0000\uffff]*/g,L5=/[^<\r\u0000\uffff]*/g,Pbe=/[^\r\u0000\uffff]*/g,P5=/(?:(\/)?([a-z]+)>)|[\s\S]/g,R5=/(?:([-a-z]+)[ \t\n\f]*=[ \t\n\f]*('[^'&\r\u0000]*'|"[^"&\r\u0000]*"|[^\t\n\r\f "&'\u0000>][^&> \t\n\r\f\u0000]*[ \t\n\f]))|[\s\S]/g,uh=/[^\x09\x0A\x0C\x0D\x20]/,B2=/[^\x09\x0A\x0C\x0D\x20]/g,Rbe=/[^\x00\x09\x0A\x0C\x0D\x20]/,ya=/^[\x09\x0A\x0C\x0D\x20]+/,ph=/\x00/g;function br(e){var t=16384;if(e.length<t)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<e.length;n+=t)r+=String.fromCharCode.apply(String,e.slice(n,n+t));return r}function Mbe(e){for(var t=[],r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function at(e,t){if(typeof t=="string")return e.namespaceURI===ye.HTML&&e.localName===t;var r=t[e.namespaceURI];return r&&r[e.localName]}function M5(e){return at(e,K5)}function q5(e){if(at(e,Z5))return!0;if(e.namespaceURI===ye.MATHML&&e.localName==="annotation-xml"){var t=e.getAttribute("encoding");if(t&&(t=t.toLowerCase()),t==="text/html"||t==="application/xhtml+xml")return!0}return!1}function qbe(e){return e in N5?N5[e]:e}function j5(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in O5&&(e[t][0]=O5[e[t][0]])}function B5(e){for(var t=0,r=e.length;t<r;t++)if(e[t][0]==="definitionurl"){e[t][0]="definitionURL";break}}function $2(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in A5&&e[t].push(A5[e[t][0]])}function $5(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r][0],s=e[r][1];t.hasAttribute(i)||t._setAttribute(i,s)}}Xe.ElementStack=function(){this.elements=[],this.top=null};Xe.ElementStack.prototype.push=function(e){this.elements.push(e),this.top=e};Xe.ElementStack.prototype.pop=function(e){this.elements.pop(),this.top=this.elements[this.elements.length-1]};Xe.ElementStack.prototype.popTag=function(e){for(var t=this.elements.length-1;t>0;t--){var r=this.elements[t];if(at(r,e))break}this.elements.length=t,this.top=this.elements[t-1]};Xe.ElementStack.prototype.popElementType=function(e){for(var t=this.elements.length-1;t>0&&!(this.elements[t]instanceof e);t--);this.elements.length=t,this.top=this.elements[t-1]};Xe.ElementStack.prototype.popElement=function(e){for(var t=this.elements.length-1;t>0&&this.elements[t]!==e;t--);this.elements.length=t,this.top=this.elements[t-1]};Xe.ElementStack.prototype.removeElement=function(e){if(this.top===e)this.pop();else{var t=this.elements.lastIndexOf(e);t!==-1&&this.elements.splice(t,1)}};Xe.ElementStack.prototype.clearToContext=function(e){for(var t=this.elements.length-1;t>0&&!at(this.elements[t],e);t--);this.elements.length=t+1,this.top=this.elements[t]};Xe.ElementStack.prototype.contains=function(e){return this.inSpecificScope(e,Object.create(null))};Xe.ElementStack.prototype.inSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(at(n,e))return!0;if(at(n,t))return!1}return!1};Xe.ElementStack.prototype.elementInSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(n===e)return!0;if(at(n,t))return!1}return!1};Xe.ElementStack.prototype.elementTypeInSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(n instanceof e)return!0;if(at(n,t))return!1}return!1};Xe.ElementStack.prototype.inScope=function(e){return this.inSpecificScope(e,Qn)};Xe.ElementStack.prototype.elementInScope=function(e){return this.elementInSpecificScope(e,Qn)};Xe.ElementStack.prototype.elementTypeInScope=function(e){return this.elementTypeInSpecificScope(e,Qn)};Xe.ElementStack.prototype.inButtonScope=function(e){return this.inSpecificScope(e,U2)};Xe.ElementStack.prototype.inListItemScope=function(e){return this.inSpecificScope(e,hh)};Xe.ElementStack.prototype.inTableScope=function(e){return this.inSpecificScope(e,W5)};Xe.ElementStack.prototype.inSelectScope=function(e){for(var t=this.elements.length-1;t>=0;t--){var r=this.elements[t];if(r.namespaceURI!==ye.HTML)return!1;var n=r.localName;if(n===e)return!0;if(n!=="optgroup"&&n!=="option")return!1}return!1};Xe.ElementStack.prototype.generateImpliedEndTags=function(e,t){for(var r=t?V5:U5,n=this.elements.length-1;n>=0;n--){var i=this.elements[n];if(e&&at(i,e)||!at(this.elements[n],r))break}this.elements.length=n+1,this.top=this.elements[n]};Xe.ActiveFormattingElements=function(){this.list=[],this.attrs=[]};Xe.ActiveFormattingElements.prototype.MARKER={localName:"|"};Xe.ActiveFormattingElements.prototype.insertMarker=function(){this.list.push(this.MARKER),this.attrs.push(this.MARKER)};Xe.ActiveFormattingElements.prototype.push=function(e,t){for(var r=0,n=this.list.length-1;n>=0&&this.list[n]!==this.MARKER;n--)if(a(e,this.list[n],this.attrs[n])&&(r++,r===3)){this.list.splice(n,1),this.attrs.splice(n,1);break}this.list.push(e);for(var i=[],s=0;s<t.length;s++)i[s]=t[s];this.attrs.push(i);function a(o,l,c){if(o.localName!==l.localName||o._numattrs!==c.length)return!1;for(var p=0,u=c.length;p<u;p++){var h=c[p][0],d=c[p][1];if(!o.hasAttribute(h)||o.getAttribute(h)!==d)return!1}return!0}};Xe.ActiveFormattingElements.prototype.clearToMarker=function(){for(var e=this.list.length-1;e>=0&&this.list[e]!==this.MARKER;e--);e<0&&(e=0),this.list.length=e,this.attrs.length=e};Xe.ActiveFormattingElements.prototype.findElementByTag=function(e){for(var t=this.list.length-1;t>=0;t--){var r=this.list[t];if(r===this.MARKER)break;if(r.localName===e)return r}return null};Xe.ActiveFormattingElements.prototype.indexOf=function(e){return this.list.lastIndexOf(e)};Xe.ActiveFormattingElements.prototype.remove=function(e){var t=this.list.lastIndexOf(e);t!==-1&&(this.list.splice(t,1),this.attrs.splice(t,1))};Xe.ActiveFormattingElements.prototype.replace=function(e,t,r){var n=this.list.lastIndexOf(e);n!==-1&&(this.list[n]=t,this.attrs[n]=r)};Xe.ActiveFormattingElements.prototype.insertAfter=function(e,t){var r=this.list.lastIndexOf(e);r!==-1&&(this.list.splice(r,0,t),this.attrs.splice(r,0,t))};function Xe(e,t,r){var n=null,i=0,s=0,a=!1,o=!1,l=0,c=[],p="",u=!0,h=0,d=He,m,b,v="",w="",T=[],S="",O="",P=[],A=[],K=[],ee=[],J=[],L=!1,N=MB,$=null,q=[],E=new Xe.ElementStack,H=new Xe.ActiveFormattingElements,oe=t!==void 0,de=null,Ie=null,ft=!0;t&&(ft=t.ownerDocument._scripting_enabled),r&&r.scripting_enabled===!1&&(ft=!1);var k=!0,dt=!1,_t,F,B=[],zt=!1,fe=!1,We={document:function(){return ne},_asDocumentFragment:function(){for(var x=ne.createDocumentFragment(),y=ne.firstChild;y.hasChildNodes();)x.appendChild(y.firstChild);return x},pause:function(){h++},resume:function(){h--,this.parse("")},parse:function(x,y,C){var j;return h>0?(p+=x,!0):(l===0?(p&&(x=p+x,p=""),y&&(x+="\uFFFF",a=!0),n=x,i=x.length,s=0,u&&(u=!1,n.charCodeAt(0)===65279&&(s=1)),l++,j=et(C),p=n.substring(s,i),l--):(l++,c.push(n,i,s),n=x,i=x.length,s=0,et(),j=!1,p=n.substring(s,i),s=c.pop(),i=c.pop(),n=c.pop(),p&&(n=p+n.substring(s),i=n.length,s=0,p=""),l--),j)}},ne=new bbe(!0,e);if(ne._parser=We,ne._scripting_enabled=ft,t){if(t.ownerDocument._quirks&&(ne._quirks=!0),t.ownerDocument._limitedQuirks&&(ne._limitedQuirks=!0),t.namespaceURI===ye.HTML)switch(t.localName){case"title":case"textarea":d=Ti;break;case"style":case"xmp":case"iframe":case"noembed":case"noframes":case"script":case"plaintext":d=Wh;break}var Fe=ne.createElement("html");ne._appendChild(Fe),E.push(Fe),t instanceof st.HTMLTemplateElement&&q.push(nm),nl();for(var Me=t;Me!==null;Me=Me.parentElement)if(Me instanceof st.HTMLFormElement){Ie=Me;break}}function et(x){for(var y,C,j,U;s<i;){if(h>0||x&&x())return!0;switch(typeof d.lookahead){case"undefined":if(y=n.charCodeAt(s++),o&&(o=!1,y===10)){s++;continue}switch(y){case 13:s<i?n.charCodeAt(s)===10&&s++:o=!0,d(10);break;case 65535:if(a&&s===i){d(ch);break}default:d(y);break}break;case"number":y=n.charCodeAt(s);var re=d.lookahead,Ee=!0;if(re<0&&(Ee=!1,re=-re),re<i-s)C=Ee?n.substring(s,s+re):null,U=!1;else if(a)C=Ee?n.substring(s,i):null,U=!0,y===65535&&s===i-1&&(y=ch);else return!0;d(y,C,U);break;case"string":y=n.charCodeAt(s),j=d.lookahead;var Ue=n.indexOf(j,s);if(Ue!==-1)C=n.substring(s,Ue+j.length),U=!1;else{if(!a)return!0;C=n.substring(s,i),y===65535&&s===i-1&&(y=ch),U=!0}d(y,C,U);break}}return!1}function ct(x,y){for(var C=0;C<J.length;C++)if(J[C][0]===x)return;y!==void 0?J.push([x,y]):J.push([x])}function er(){R5.lastIndex=s-1;var x=R5.exec(n);if(!x)throw new Error("should never happen");var y=x[1];if(!y)return!1;var C=x[2],j=C.length;switch(C[0]){case'"':case"'":C=C.substring(1,j-1),s+=x[0].length-1,d=Qh;break;default:d=Pn,s+=x[0].length-1,C=C.substring(0,j-1);break}for(var U=0;U<J.length;U++)if(J[U][0]===y)return!0;return J.push([y,C]),!0}function ki(){L=!1,v="",J.length=0}function I(){L=!0,v="",J.length=0}function R(){T.length=0}function Q(){S=""}function W(){O=""}function M(){P.length=0}function ae(){A.length=0,K=null,ee=null}function te(){K=[]}function le(){ee=[]}function ve(){dt=!0}function Ut(){return E.top&&E.top.namespaceURI!=="http://www.w3.org/1999/xhtml"}function Or(x){return w===x}function G(){if(B.length>0){var x=br(B);if(B.length=0,fe&&(fe=!1,x[0]===`
|
|
172
|
+
`&&(x=x.substring(1)),x.length===0))return;ut(Go,x),zt=!1}fe=!1}function Y(x){x.lastIndex=s-1;var y=x.exec(n);if(y&&y.index===s-1)return y=y[0],s+=y.length-1,a&&s===i&&(y=y.slice(0,-1),s--),y;throw new Error("should never happen")}function De(x){x.lastIndex=s-1;var y=x.exec(n)[0];return y?($e(y),s+=y.length-1,!0):!1}function $e(x){B.length>0&&G(),!(fe&&(fe=!1,x[0]===`
|
|
173
|
+
`&&(x=x.substring(1)),x.length===0))&&ut(Go,x)}function ze(){if(L)ut(Ve,v);else{var x=v;v="",w=x,ut(xr,x,J)}}function Br(){if(s===i)return!1;P5.lastIndex=s;var x=P5.exec(n);if(!x)throw new Error("should never happen");var y=x[2];if(!y)return!1;var C=x[1];return C?(s+=y.length+2,ut(Ve,y)):(s+=y.length+1,w=y,ut(xr,y,_be)),!0}function si(){L?ut(Ve,v,null,!0):ut(xr,v,J,!0)}function Le(){ut(vbe,br(A),K?br(K):void 0,ee?br(ee):void 0)}function Ce(){G(),N(ch),ne.modclock=1}var ut=We.insertToken=function(y,C,j,U){G();var re=E.top;!re||re.namespaceURI===ye.HTML?N(y,C,j,U):y!==xr&&y!==Go?Aw(y,C,j,U):M5(re)&&(y===Go||y===xr&&C!=="mglyph"&&C!=="malignmark")||y===xr&&C==="svg"&&re.namespaceURI===ye.MATHML&&re.localName==="annotation-xml"||q5(re)?(F=!0,N(y,C,j,U),F=!1):Aw(y,C,j,U)};function wt(x){var y=E.top;Ci&&at(y,Wo)?xu(function(C){return C.createComment(x)}):(y instanceof st.HTMLTemplateElement&&(y=y.content),y._appendChild(y.ownerDocument.createComment(x)))}function tr(x){var y=E.top;if(Ci&&at(y,Wo))xu(function(j){return j.createTextNode(x)});else{y instanceof st.HTMLTemplateElement&&(y=y.content);var C=y.lastChild;C&&C.nodeType===j2.TEXT_NODE?C.appendData(x):y._appendChild(y.ownerDocument.createTextNode(x))}}function vr(x,y,C){var j=z5.createElement(x,y,null);if(C)for(var U=0,re=C.length;U<re;U++)j._setAttribute(C[U][0],C[U][1]);return j}var Ci=!1;function Oe(x,y){var C=gu(function(j){return vr(j,x,y)});return at(C,G5)&&(C._form=Ie),C}function gu(x){var y;return Ci&&at(E.top,Wo)?y=xu(x):E.top instanceof st.HTMLTemplateElement?(y=x(E.top.content.ownerDocument),E.top.content._appendChild(y)):(y=x(E.top.ownerDocument),E.top._appendChild(y)),E.push(y),y}function Vh(x,y,C){return gu(function(j){var U=j._createElementNS(x,C,null);if(y)for(var re=0,Ee=y.length;re<Ee;re++){var Ue=y[re];Ue.length===2?U._setAttribute(Ue[0],Ue[1]):U._setAttributeNS(Ue[2],Ue[0],Ue[1])}return U})}function hw(x){for(var y=E.elements.length-1;y>=0;y--)if(E.elements[y]instanceof x)return y;return-1}function xu(x){var y,C,j=-1,U=-1,re;if(j=hw(st.HTMLTableElement),U=hw(st.HTMLTemplateElement),U>=0&&(j<0||U>j)?y=E.elements[U]:j>=0&&(y=E.elements[j].parentNode,y?C=E.elements[j]:y=E.elements[j-1]),y||(y=E.elements[0]),y instanceof st.HTMLTemplateElement&&(y=y.content),re=x(y.ownerDocument),re.nodeType===j2.TEXT_NODE){var Ee;if(C?Ee=C.previousSibling:Ee=y.lastChild,Ee&&Ee.nodeType===j2.TEXT_NODE)return Ee.appendData(re.data),re}return C?y.insertBefore(re,C):y._appendChild(re),re}function nl(){for(var x=!1,y=E.elements.length-1;y>=0;y--){var C=E.elements[y];if(y===0&&(x=!0,oe&&(C=t)),C.namespaceURI===ye.HTML){var j=C.localName;switch(j){case"select":for(var U=y;U>0;){var re=E.elements[--U];if(re instanceof st.HTMLTemplateElement)break;if(re instanceof st.HTMLTableElement){N=Nu;return}}N=ai;return;case"tr":N=al;return;case"tbody":case"tfoot":case"thead":N=ms;return;case"caption":N=rm;return;case"colgroup":N=Ou;return;case"table":N=Zr;return;case"template":N=q[q.length-1];return;case"body":N=we;return;case"frameset":N=im;return;case"html":de===null?N=Tu:N=tm;return;default:if(!x){if(j==="head"){N=At;return}if(j==="td"||j==="th"){N=Oa;return}}}}if(x){N=we;return}}}function bu(x,y){Oe(x,y),d=il,$=N,N=Au}function Wj(x,y){Oe(x,y),d=Ti,$=N,N=Au}function Gh(x,y){return{elt:vr(x,H.list[y].localName,H.attrs[y]),attrs:H.attrs[y]}}function _r(){if(H.list.length!==0){var x=H.list[H.list.length-1];if(x!==H.MARKER&&E.elements.lastIndexOf(x)===-1){for(var y=H.list.length-2;y>=0&&(x=H.list[y],!(x===H.MARKER||E.elements.lastIndexOf(x)!==-1));y--);for(y=y+1;y<H.list.length;y++){var C=gu(function(j){return Gh(j,y).elt});H.list[y]=C}}}}var yu={localName:"BM"};function Kj(x){if(at(E.top,x)&&H.indexOf(E.top)===-1)return E.pop(),!0;for(var y=0;y<8;){y++;var C=H.findElementByTag(x);if(!C)return!1;var j=E.elements.lastIndexOf(C);if(j===-1)return H.remove(C),!0;if(!E.elementInScope(C))return!0;for(var U=null,re,Ee=j+1;Ee<E.elements.length;Ee++)if(at(E.elements[Ee],va)){U=E.elements[Ee],re=Ee;break}if(U){var Ue=E.elements[j-1];H.insertAfter(C,yu);for(var kt=U,rr=U,Jr=re,hn,gs=0;gs++,kt=E.elements[--Jr],kt!==C;){if(hn=H.indexOf(kt),gs>3&&hn!==-1&&(H.remove(kt),hn=-1),hn===-1){E.removeElement(kt);continue}var Ii=Gh(Ue.ownerDocument,hn);H.replace(kt,Ii.elt,Ii.attrs),E.elements[Jr]=Ii.elt,kt=Ii.elt,rr===U&&(H.remove(yu),H.insertAfter(Ii.elt,yu)),kt._appendChild(rr),rr=kt}Ci&&at(Ue,Wo)?xu(function(){return rr}):Ue instanceof st.HTMLTemplateElement?Ue.content._appendChild(rr):Ue._appendChild(rr);for(var ol=Gh(U.ownerDocument,H.indexOf(C));U.hasChildNodes();)ol.elt._appendChild(U.firstChild);U._appendChild(ol.elt),H.remove(C),H.replace(yu,ol.elt,ol.attrs),E.removeElement(C);var zB=E.elements.lastIndexOf(U);E.elements.splice(zB+1,0,ol.elt)}else return E.popElement(C),H.remove(C),!0}return!0}function Zj(){E.pop(),N=$}function fs(){delete ne._parser,E.elements.length=0,ne.defaultView&&ne.defaultView.dispatchEvent(new st.Event("load",{}))}function xe(x,y){d=y,s--}function He(x){switch(x){case 38:m=He,d=sl;break;case 60:if(Br())break;d=Jj;break;case 0:B.push(x),zt=!0;break;case-1:Ce();break;default:De(Lbe)||B.push(x);break}}function Ti(x){switch(x){case 38:m=Ti,d=sl;break;case 60:d=Yj;break;case 0:B.push(65533),zt=!0;break;case-1:Ce();break;default:B.push(x);break}}function il(x){switch(x){case 60:d=tB;break;case 0:B.push(65533);break;case-1:Ce();break;default:De(L5)||B.push(x);break}}function Ai(x){switch(x){case 60:d=iB;break;case 0:B.push(65533);break;case-1:Ce();break;default:De(L5)||B.push(x);break}}function Wh(x){switch(x){case 0:B.push(65533);break;case-1:Ce();break;default:De(Pbe)||B.push(x);break}}function Jj(x){switch(x){case 33:d=bw;break;case 47:d=Qj;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ki(),xe(x,mw);break;case 63:xe(x,Eu);break;default:B.push(60),xe(x,He);break}}function Qj(x){switch(x){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:I(),xe(x,mw);break;case 62:d=He;break;case-1:B.push(60),B.push(47),Ce();break;default:xe(x,Eu);break}}function mw(x){switch(x){case 9:case 10:case 12:case 32:d=Pn;break;case 47:d=Ni;break;case 62:d=He,ze();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:v+=String.fromCharCode(x+32);break;case 0:v+="\uFFFD";break;case-1:Ce();break;default:v+=Y(Nbe);break}}function Yj(x){x===47?(R(),d=Xj):(B.push(60),xe(x,Ti))}function Xj(x){switch(x){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:I(),xe(x,eB);break;default:B.push(60),B.push(47),xe(x,Ti);break}}function eB(x){switch(x){case 9:case 10:case 12:case 32:if(Or(v)){d=Pn;return}break;case 47:if(Or(v)){d=Ni;return}break;case 62:if(Or(v)){d=He,ze();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:v+=String.fromCharCode(x+32),T.push(x);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:v+=String.fromCharCode(x),T.push(x);return;default:break}B.push(60),B.push(47),ba(B,T),xe(x,Ti)}function tB(x){x===47?(R(),d=rB):(B.push(60),xe(x,il))}function rB(x){switch(x){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:I(),xe(x,nB);break;default:B.push(60),B.push(47),xe(x,il);break}}function nB(x){switch(x){case 9:case 10:case 12:case 32:if(Or(v)){d=Pn;return}break;case 47:if(Or(v)){d=Ni;return}break;case 62:if(Or(v)){d=He,ze();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:v+=String.fromCharCode(x+32),T.push(x);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:v+=String.fromCharCode(x),T.push(x);return;default:break}B.push(60),B.push(47),ba(B,T),xe(x,il)}function iB(x){switch(x){case 47:R(),d=sB;break;case 33:d=oB,B.push(60),B.push(33);break;default:B.push(60),xe(x,Ai);break}}function sB(x){switch(x){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:I(),xe(x,aB);break;default:B.push(60),B.push(47),xe(x,Ai);break}}function aB(x){switch(x){case 9:case 10:case 12:case 32:if(Or(v)){d=Pn;return}break;case 47:if(Or(v)){d=Ni;return}break;case 62:if(Or(v)){d=He,ze();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:v+=String.fromCharCode(x+32),T.push(x);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:v+=String.fromCharCode(x),T.push(x);return;default:break}B.push(60),B.push(47),ba(B,T),xe(x,Ai)}function oB(x){x===45?(d=lB,B.push(45)):xe(x,Ai)}function lB(x){x===45?(d=gw,B.push(45)):xe(x,Ai)}function Ln(x){switch(x){case 45:d=cB,B.push(45);break;case 60:d=Kh;break;case 0:B.push(65533);break;case-1:Ce();break;default:B.push(x);break}}function cB(x){switch(x){case 45:d=gw,B.push(45);break;case 60:d=Kh;break;case 0:d=Ln,B.push(65533);break;case-1:Ce();break;default:d=Ln,B.push(x);break}}function gw(x){switch(x){case 45:B.push(45);break;case 60:d=Kh;break;case 62:d=Ai,B.push(62);break;case 0:d=Ln,B.push(65533);break;case-1:Ce();break;default:d=Ln,B.push(x);break}}function Kh(x){switch(x){case 47:R(),d=uB;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:R(),B.push(60),xe(x,fB);break;default:B.push(60),xe(x,Ln);break}}function uB(x){switch(x){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:I(),xe(x,pB);break;default:B.push(60),B.push(47),xe(x,Ln);break}}function pB(x){switch(x){case 9:case 10:case 12:case 32:if(Or(v)){d=Pn;return}break;case 47:if(Or(v)){d=Ni;return}break;case 62:if(Or(v)){d=He,ze();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:v+=String.fromCharCode(x+32),T.push(x);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:v+=String.fromCharCode(x),T.push(x);return;default:break}B.push(60),B.push(47),ba(B,T),xe(x,Ln)}function fB(x){switch(x){case 9:case 10:case 12:case 32:case 47:case 62:br(T)==="script"?d=Oi:d=Ln,B.push(x);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:T.push(x+32),B.push(x);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:T.push(x),B.push(x);break;default:xe(x,Ln);break}}function Oi(x){switch(x){case 45:d=dB,B.push(45);break;case 60:d=Zh,B.push(60);break;case 0:B.push(65533);break;case-1:Ce();break;default:B.push(x);break}}function dB(x){switch(x){case 45:d=hB,B.push(45);break;case 60:d=Zh,B.push(60);break;case 0:d=Oi,B.push(65533);break;case-1:Ce();break;default:d=Oi,B.push(x);break}}function hB(x){switch(x){case 45:B.push(45);break;case 60:d=Zh,B.push(60);break;case 62:d=Ai,B.push(62);break;case 0:d=Oi,B.push(65533);break;case-1:Ce();break;default:d=Oi,B.push(x);break}}function Zh(x){x===47?(R(),d=mB,B.push(47)):xe(x,Oi)}function mB(x){switch(x){case 9:case 10:case 12:case 32:case 47:case 62:br(T)==="script"?d=Ln:d=Oi,B.push(x);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:T.push(x+32),B.push(x);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:T.push(x),B.push(x);break;default:xe(x,Oi);break}}function Pn(x){switch(x){case 9:case 10:case 12:case 32:break;case 47:d=Ni;break;case 62:d=He,ze();break;case-1:Ce();break;case 61:Q(),S+=String.fromCharCode(x),d=Jh;break;default:if(er())break;Q(),xe(x,Jh);break}}function Jh(x){switch(x){case 9:case 10:case 12:case 32:case 47:case 62:case-1:xe(x,gB);break;case 61:d=xw;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:S+=String.fromCharCode(x+32);break;case 0:S+="\uFFFD";break;default:S+=Y(Fbe);break}}function gB(x){switch(x){case 9:case 10:case 12:case 32:break;case 47:ct(S),d=Ni;break;case 61:d=xw;break;case 62:d=He,ct(S),ze();break;case-1:ct(S),Ce();break;default:ct(S),Q(),xe(x,Jh);break}}function xw(x){switch(x){case 9:case 10:case 12:case 32:break;case 34:W(),d=vu;break;case 39:W(),d=_u;break;default:W(),xe(x,wu);break}}function vu(x){switch(x){case 34:ct(S,O),d=Qh;break;case 38:m=vu,d=sl;break;case 0:O+="\uFFFD";break;case-1:Ce();break;case 10:O+=String.fromCharCode(x);break;default:O+=Y(Tbe);break}}function _u(x){switch(x){case 39:ct(S,O),d=Qh;break;case 38:m=_u,d=sl;break;case 0:O+="\uFFFD";break;case-1:Ce();break;case 10:O+=String.fromCharCode(x);break;default:O+=Y(Abe);break}}function wu(x){switch(x){case 9:case 10:case 12:case 32:ct(S,O),d=Pn;break;case 38:m=wu,d=sl;break;case 62:ct(S,O),d=He,ze();break;case 0:O+="\uFFFD";break;case-1:s--,d=He;break;default:O+=Y(Obe);break}}function Qh(x){switch(x){case 9:case 10:case 12:case 32:d=Pn;break;case 47:d=Ni;break;case 62:d=He,ze();break;case-1:Ce();break;default:xe(x,Pn);break}}function Ni(x){switch(x){case 62:d=He,si(!0);break;case-1:Ce();break;default:xe(x,Pn);break}}function Eu(x,y,C){var j=y.length;C?s+=j-1:s+=j;var U=y.substring(0,j-1);U=U.replace(/\u0000/g,"\uFFFD"),U=U.replace(/\u000D\u000A/g,`
|
|
174
|
+
`),U=U.replace(/\u000D/g,`
|
|
175
|
+
`),ut(Jn,U),d=He}Eu.lookahead=">";function bw(x,y,C){if(y[0]==="-"&&y[1]==="-"){s+=2,M(),d=xB;return}y.toUpperCase()==="DOCTYPE"?(s+=7,d=DB):y==="[CDATA["&&Ut()?(s+=7,d=em):d=Eu}bw.lookahead=7;function xB(x){switch(M(),x){case 45:d=bB;break;case 62:d=He,ut(Jn,br(P));break;default:xe(x,ds);break}}function bB(x){switch(x){case 45:d=Du;break;case 62:d=He,ut(Jn,br(P));break;case-1:ut(Jn,br(P)),Ce();break;default:P.push(45),xe(x,ds);break}}function ds(x){switch(x){case 60:P.push(x),d=yB;break;case 45:d=Yh;break;case 0:P.push(65533);break;case-1:ut(Jn,br(P)),Ce();break;default:P.push(x);break}}function yB(x){switch(x){case 33:P.push(x),d=vB;break;case 60:P.push(x);break;default:xe(x,ds);break}}function vB(x){x===45?d=_B:xe(x,ds)}function _B(x){x===45?d=wB:xe(x,Yh)}function wB(x){switch(x){case 62:case-1:xe(x,Du);break;default:xe(x,Du);break}}function Yh(x){switch(x){case 45:d=Du;break;case-1:ut(Jn,br(P)),Ce();break;default:P.push(45),xe(x,ds);break}}function Du(x){switch(x){case 62:d=He,ut(Jn,br(P));break;case 33:d=EB;break;case 45:P.push(45);break;case-1:ut(Jn,br(P)),Ce();break;default:P.push(45),P.push(45),xe(x,ds);break}}function EB(x){switch(x){case 45:P.push(45),P.push(45),P.push(33),d=Yh;break;case 62:d=He,ut(Jn,br(P));break;case-1:ut(Jn,br(P)),Ce();break;default:P.push(45),P.push(45),P.push(33),xe(x,ds);break}}function DB(x){switch(x){case 9:case 10:case 12:case 32:d=yw;break;case-1:ae(),ve(),Le(),Ce();break;default:xe(x,yw);break}}function yw(x){switch(x){case 9:case 10:case 12:case 32:break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:ae(),A.push(x+32),d=Xh;break;case 0:ae(),A.push(65533),d=Xh;break;case 62:ae(),ve(),d=He,Le();break;case-1:ae(),ve(),Le(),Ce();break;default:ae(),A.push(x),d=Xh;break}}function Xh(x){switch(x){case 9:case 10:case 12:case 32:d=vw;break;case 62:d=He,Le();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:A.push(x+32);break;case 0:A.push(65533);break;case-1:ve(),Le(),Ce();break;default:A.push(x);break}}function vw(x,y,C){switch(x){case 9:case 10:case 12:case 32:s+=1;break;case 62:d=He,s+=1,Le();break;case-1:ve(),Le(),Ce();break;default:y=y.toUpperCase(),y==="PUBLIC"?(s+=6,d=SB):y==="SYSTEM"?(s+=6,d=TB):(ve(),d=Fi);break}}vw.lookahead=6;function SB(x){switch(x){case 9:case 10:case 12:case 32:d=kB;break;case 34:te(),d=_w;break;case 39:te(),d=ww;break;case 62:ve(),d=He,Le();break;case-1:ve(),Le(),Ce();break;default:ve(),d=Fi;break}}function kB(x){switch(x){case 9:case 10:case 12:case 32:break;case 34:te(),d=_w;break;case 39:te(),d=ww;break;case 62:ve(),d=He,Le();break;case-1:ve(),Le(),Ce();break;default:ve(),d=Fi;break}}function _w(x){switch(x){case 34:d=Ew;break;case 0:K.push(65533);break;case 62:ve(),d=He,Le();break;case-1:ve(),Le(),Ce();break;default:K.push(x);break}}function ww(x){switch(x){case 39:d=Ew;break;case 0:K.push(65533);break;case 62:ve(),d=He,Le();break;case-1:ve(),Le(),Ce();break;default:K.push(x);break}}function Ew(x){switch(x){case 9:case 10:case 12:case 32:d=CB;break;case 62:d=He,Le();break;case 34:le(),d=Su;break;case 39:le(),d=ku;break;case-1:ve(),Le(),Ce();break;default:ve(),d=Fi;break}}function CB(x){switch(x){case 9:case 10:case 12:case 32:break;case 62:d=He,Le();break;case 34:le(),d=Su;break;case 39:le(),d=ku;break;case-1:ve(),Le(),Ce();break;default:ve(),d=Fi;break}}function TB(x){switch(x){case 9:case 10:case 12:case 32:d=AB;break;case 34:le(),d=Su;break;case 39:le(),d=ku;break;case 62:ve(),d=He,Le();break;case-1:ve(),Le(),Ce();break;default:ve(),d=Fi;break}}function AB(x){switch(x){case 9:case 10:case 12:case 32:break;case 34:le(),d=Su;break;case 39:le(),d=ku;break;case 62:ve(),d=He,Le();break;case-1:ve(),Le(),Ce();break;default:ve(),d=Fi;break}}function Su(x){switch(x){case 34:d=Dw;break;case 0:ee.push(65533);break;case 62:ve(),d=He,Le();break;case-1:ve(),Le(),Ce();break;default:ee.push(x);break}}function ku(x){switch(x){case 39:d=Dw;break;case 0:ee.push(65533);break;case 62:ve(),d=He,Le();break;case-1:ve(),Le(),Ce();break;default:ee.push(x);break}}function Dw(x){switch(x){case 9:case 10:case 12:case 32:break;case 62:d=He,Le();break;case-1:ve(),Le(),Ce();break;default:d=Fi;break}}function Fi(x){switch(x){case 62:d=He,Le();break;case-1:Le(),Ce();break;default:break}}function em(x){switch(x){case 93:d=OB;break;case-1:Ce();break;case 0:zt=!0;default:De(Ibe)||B.push(x);break}}function OB(x){x===93?d=NB:(B.push(93),xe(x,em))}function NB(x){switch(x){case 93:B.push(93);break;case 62:G(),d=He;break;default:B.push(93),B.push(93),xe(x,em);break}}function sl(x){switch(R(),T.push(38),x){case 9:case 10:case 12:case 32:case 60:case 38:case-1:xe(x,hs);break;case 35:T.push(x),d=FB;break;default:xe(x,Sw);break}}function Sw(x){I5.lastIndex=s;var y=I5.exec(n);if(!y)throw new Error("should never happen");var C=y[1];if(!C){d=hs;return}switch(s+=C.length,ba(T,Mbe(C)),m){case vu:case _u:case wu:if(C[C.length-1]!==";"&&/[=A-Za-z0-9]/.test(n[s])){d=hs;return}break;default:break}R();var j=kbe[C];typeof j=="number"?T.push(j):ba(T,j),d=hs}Sw.lookahead=-Cbe;function FB(x){switch(b=0,x){case 120:case 88:T.push(x),d=IB;break;default:xe(x,LB);break}}function IB(x){switch(x){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 66:case 67:case 68:case 69:case 70:case 97:case 98:case 99:case 100:case 101:case 102:xe(x,PB);break;default:xe(x,hs);break}}function LB(x){switch(x){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:xe(x,RB);break;default:xe(x,hs);break}}function PB(x){switch(x){case 65:case 66:case 67:case 68:case 69:case 70:b*=16,b+=x-55;break;case 97:case 98:case 99:case 100:case 101:case 102:b*=16,b+=x-87;break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:b*=16,b+=x-48;break;case 59:d=Cu;break;default:xe(x,Cu);break}}function RB(x){switch(x){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:b*=10,b+=x-48;break;case 59:d=Cu;break;default:xe(x,Cu);break}}function Cu(x){b in F5?b=F5[b]:(b>1114111||b>=55296&&b<57344)&&(b=65533),R(),b<=65535?T.push(b):(b=b-65536,T.push(55296+(b>>10)),T.push(56320+(b&1023))),xe(x,hs)}function hs(x){switch(m){case vu:case _u:case wu:O+=br(T);break;default:ba(B,T);break}xe(x,m)}function MB(x,y,C,j){switch(x){case 1:if(y=y.replace(ya,""),y.length===0)return;break;case 4:ne._appendChild(ne.createComment(y));return;case 5:var U=y,re=C,Ee=j;ne.appendChild(new ybe(ne,U,re,Ee)),dt||U.toLowerCase()!=="html"||wbe.test(re)||Ee&&Ee.toLowerCase()===Ebe||Ee===void 0&&T5.test(re)?ne._quirks=!0:(Dbe.test(re)||Ee!==void 0&&T5.test(re))&&(ne._limitedQuirks=!0),N=kw;return}ne._quirks=!0,N=kw,N(x,y,C,j)}function kw(x,y,C,j){var U;switch(x){case 1:if(y=y.replace(ya,""),y.length===0)return;break;case 5:return;case 4:ne._appendChild(ne.createComment(y));return;case 2:if(y==="html"){U=vr(ne,y,C),E.push(U),ne.appendChild(U),N=Tu;return}break;case 3:switch(y){case"html":case"head":case"body":case"br":break;default:return}}U=vr(ne,"html",null),E.push(U),ne.appendChild(U),N=Tu,N(x,y,C,j)}function Tu(x,y,C,j){switch(x){case 1:if(y=y.replace(ya,""),y.length===0)return;break;case 5:return;case 4:wt(y);return;case 2:switch(y){case"html":we(x,y,C,j);return;case"head":var U=Oe(y,C);de=U,N=At;return}break;case 3:switch(y){case"html":case"head":case"body":case"br":break;default:return}}Tu(xr,"head",null),N(x,y,C,j)}function At(x,y,C,j){switch(x){case 1:var U=y.match(ya);if(U&&(tr(U[0]),y=y.substring(U[0].length)),y.length===0)return;break;case 4:wt(y);return;case 5:return;case 2:switch(y){case"html":we(x,y,C,j);return;case"meta":case"base":case"basefont":case"bgsound":case"link":Oe(y,C),E.pop();return;case"title":Wj(y,C);return;case"noscript":if(!ft){Oe(y,C),N=Cw;return}case"noframes":case"style":bu(y,C);return;case"script":gu(function(re){var Ee=vr(re,y,C);return Ee._parser_inserted=!0,Ee._force_async=!1,oe&&(Ee._already_started=!0),G(),Ee}),d=Ai,$=N,N=Au;return;case"template":Oe(y,C),H.insertMarker(),k=!1,N=nm,q.push(N);return;case"head":return}break;case 3:switch(y){case"head":E.pop(),N=tm;return;case"body":case"html":case"br":break;case"template":if(!E.contains("template"))return;E.generateImpliedEndTags(null,"thorough"),E.popTag("template"),H.clearToMarker(),q.pop(),nl();return;default:return}break}At(Ve,"head",null),N(x,y,C,j)}function Cw(x,y,C,j){switch(x){case 5:return;case 4:At(x,y);return;case 1:var U=y.match(ya);if(U&&(At(x,U[0]),y=y.substring(U[0].length)),y.length===0)return;break;case 2:switch(y){case"html":we(x,y,C,j);return;case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"style":At(x,y,C);return;case"head":case"noscript":return}break;case 3:switch(y){case"noscript":E.pop(),N=At;return;case"br":break;default:return}break}Cw(Ve,"noscript",null),N(x,y,C,j)}function tm(x,y,C,j){switch(x){case 1:var U=y.match(ya);if(U&&(tr(U[0]),y=y.substring(U[0].length)),y.length===0)return;break;case 4:wt(y);return;case 5:return;case 2:switch(y){case"html":we(x,y,C,j);return;case"body":Oe(y,C),k=!1,N=we;return;case"frameset":Oe(y,C),N=im;return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":E.push(de),At(xr,y,C),E.removeElement(de);return;case"head":return}break;case 3:switch(y){case"template":return At(x,y,C,j);case"body":case"html":case"br":break;default:return}break}tm(xr,"body",null),k=!0,N(x,y,C,j)}function we(x,y,C,j){var U,re,Ee,Ue;switch(x){case 1:if(zt&&(y=y.replace(ph,""),y.length===0))return;k&&uh.test(y)&&(k=!1),_r(),tr(y);return;case 5:return;case 4:wt(y);return;case-1:if(q.length)return nm(x);fs();return;case 2:switch(y){case"html":if(E.contains("template"))return;$5(C,E.elements[0]);return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":At(xr,y,C);return;case"body":if(U=E.elements[1],!U||!(U instanceof st.HTMLBodyElement)||E.contains("template"))return;k=!1,$5(C,U);return;case"frameset":if(!k||(U=E.elements[1],!U||!(U instanceof st.HTMLBodyElement)))return;for(U.parentNode&&U.parentNode.removeChild(U);!(E.top instanceof st.HTMLHtmlElement);)E.pop();Oe(y,C),N=im;return;case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"nav":case"ol":case"p":case"section":case"summary":case"ul":E.inButtonScope("p")&&we(Ve,"p"),Oe(y,C);return;case"menu":E.inButtonScope("p")&&we(Ve,"p"),at(E.top,"menuitem")&&E.pop(),Oe(y,C);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":E.inButtonScope("p")&&we(Ve,"p"),E.top instanceof st.HTMLHeadingElement&&E.pop(),Oe(y,C);return;case"pre":case"listing":E.inButtonScope("p")&&we(Ve,"p"),Oe(y,C),fe=!0,k=!1;return;case"form":if(Ie&&!E.contains("template"))return;E.inButtonScope("p")&&we(Ve,"p"),Ue=Oe(y,C),E.contains("template")||(Ie=Ue);return;case"li":for(k=!1,re=E.elements.length-1;re>=0;re--){if(Ee=E.elements[re],Ee instanceof st.HTMLLIElement){we(Ve,"li");break}if(at(Ee,va)&&!at(Ee,z2))break}E.inButtonScope("p")&&we(Ve,"p"),Oe(y,C);return;case"dd":case"dt":for(k=!1,re=E.elements.length-1;re>=0;re--){if(Ee=E.elements[re],at(Ee,H5)){we(Ve,Ee.localName);break}if(at(Ee,va)&&!at(Ee,z2))break}E.inButtonScope("p")&&we(Ve,"p"),Oe(y,C);return;case"plaintext":E.inButtonScope("p")&&we(Ve,"p"),Oe(y,C),d=Wh;return;case"button":E.inScope("button")?(we(Ve,"button"),N(x,y,C,j)):(_r(),Oe(y,C),k=!1);return;case"a":var kt=H.findElementByTag("a");kt&&(we(Ve,y),H.remove(kt),E.removeElement(kt));case"b":case"big":case"code":case"em":case"font":case"i":case"s":case"small":case"strike":case"strong":case"tt":case"u":_r(),H.push(Oe(y,C),C);return;case"nobr":_r(),E.inScope(y)&&(we(Ve,y),_r()),H.push(Oe(y,C),C);return;case"applet":case"marquee":case"object":_r(),Oe(y,C),H.insertMarker(),k=!1;return;case"table":!ne._quirks&&E.inButtonScope("p")&&we(Ve,"p"),Oe(y,C),k=!1,N=Zr;return;case"area":case"br":case"embed":case"img":case"keygen":case"wbr":_r(),Oe(y,C),E.pop(),k=!1;return;case"input":_r(),Ue=Oe(y,C),E.pop();var rr=Ue.getAttribute("type");(!rr||rr.toLowerCase()!=="hidden")&&(k=!1);return;case"param":case"source":case"track":Oe(y,C),E.pop();return;case"hr":E.inButtonScope("p")&&we(Ve,"p"),at(E.top,"menuitem")&&E.pop(),Oe(y,C),E.pop(),k=!1;return;case"image":we(xr,"img",C,j);return;case"textarea":Oe(y,C),fe=!0,k=!1,d=Ti,$=N,N=Au;return;case"xmp":E.inButtonScope("p")&&we(Ve,"p"),_r(),k=!1,bu(y,C);return;case"iframe":k=!1,bu(y,C);return;case"noembed":bu(y,C);return;case"select":_r(),Oe(y,C),k=!1,N===Zr||N===rm||N===ms||N===al||N===Oa?N=Nu:N=ai;return;case"optgroup":case"option":E.top instanceof st.HTMLOptionElement&&we(Ve,"option"),_r(),Oe(y,C);return;case"menuitem":at(E.top,"menuitem")&&E.pop(),_r(),Oe(y,C);return;case"rb":case"rtc":E.inScope("ruby")&&E.generateImpliedEndTags(),Oe(y,C);return;case"rp":case"rt":E.inScope("ruby")&&E.generateImpliedEndTags("rtc"),Oe(y,C);return;case"math":_r(),B5(C),$2(C),Vh(y,C,ye.MATHML),j&&E.pop();return;case"svg":_r(),j5(C),$2(C),Vh(y,C,ye.SVG),j&&E.pop();return;case"caption":case"col":case"colgroup":case"frame":case"head":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}_r(),Oe(y,C);return;case 3:switch(y){case"template":At(Ve,y,C);return;case"body":if(!E.inScope("body"))return;N=Tw;return;case"html":if(!E.inScope("body"))return;N=Tw,N(x,y,C);return;case"address":case"article":case"aside":case"blockquote":case"button":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"listing":case"main":case"menu":case"nav":case"ol":case"pre":case"section":case"summary":case"ul":if(!E.inScope(y))return;E.generateImpliedEndTags(),E.popTag(y);return;case"form":if(E.contains("template")){if(!E.inScope("form"))return;E.generateImpliedEndTags(),E.popTag("form")}else{var Jr=Ie;if(Ie=null,!Jr||!E.elementInScope(Jr))return;E.generateImpliedEndTags(),E.removeElement(Jr)}return;case"p":E.inButtonScope(y)?(E.generateImpliedEndTags(y),E.popTag(y)):(we(xr,y,null),N(x,y,C,j));return;case"li":if(!E.inListItemScope(y))return;E.generateImpliedEndTags(y),E.popTag(y);return;case"dd":case"dt":if(!E.inScope(y))return;E.generateImpliedEndTags(y),E.popTag(y);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":if(!E.elementTypeInScope(st.HTMLHeadingElement))return;E.generateImpliedEndTags(),E.popElementType(st.HTMLHeadingElement);return;case"sarcasm":break;case"a":case"b":case"big":case"code":case"em":case"font":case"i":case"nobr":case"s":case"small":case"strike":case"strong":case"tt":case"u":var hn=Kj(y);if(hn)return;break;case"applet":case"marquee":case"object":if(!E.inScope(y))return;E.generateImpliedEndTags(),E.popTag(y),H.clearToMarker();return;case"br":we(xr,y,null);return}for(re=E.elements.length-1;re>=0;re--)if(Ee=E.elements[re],at(Ee,y)){E.generateImpliedEndTags(y),E.popElement(Ee);break}else if(at(Ee,va))return;return}}function Au(x,y,C,j){switch(x){case 1:tr(y);return;case-1:E.top instanceof st.HTMLScriptElement&&(E.top._already_started=!0),E.pop(),N=$,N(x);return;case 3:y==="script"?Zj():(E.pop(),N=$);return;default:return}}function Zr(x,y,C,j){function U(Ee){for(var Ue=0,kt=Ee.length;Ue<kt;Ue++)if(Ee[Ue][0]==="type")return Ee[Ue][1].toLowerCase();return null}switch(x){case 1:if(F){we(x,y,C,j);return}else if(at(E.top,Wo)){_t=[],$=N,N=qB,N(x,y,C,j);return}break;case 4:wt(y);return;case 5:return;case 2:switch(y){case"caption":E.clearToContext(fh),H.insertMarker(),Oe(y,C),N=rm;return;case"colgroup":E.clearToContext(fh),Oe(y,C),N=Ou;return;case"col":Zr(xr,"colgroup",null),N(x,y,C,j);return;case"tbody":case"tfoot":case"thead":E.clearToContext(fh),Oe(y,C),N=ms;return;case"td":case"th":case"tr":Zr(xr,"tbody",null),N(x,y,C,j);return;case"table":if(!E.inTableScope(y))return;Zr(Ve,y),N(x,y,C,j);return;case"style":case"script":case"template":At(x,y,C,j);return;case"input":var re=U(C);if(re!=="hidden")break;Oe(y,C),E.pop();return;case"form":if(Ie||E.contains("template"))return;Ie=Oe(y,C),E.popElement(Ie);return}break;case 3:switch(y){case"table":if(!E.inTableScope(y))return;E.popTag(y),nl();return;case"body":case"caption":case"col":case"colgroup":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return;case"template":At(x,y,C,j);return}break;case-1:we(x,y,C,j);return}Ci=!0,we(x,y,C,j),Ci=!1}function qB(x,y,C,j){if(x===Go){if(zt&&(y=y.replace(ph,""),y.length===0))return;_t.push(y)}else{var U=_t.join("");_t.length=0,uh.test(U)?(Ci=!0,we(Go,U),Ci=!1):tr(U),N=$,N(x,y,C,j)}}function rm(x,y,C,j){function U(){return E.inTableScope("caption")?(E.generateImpliedEndTags(),E.popTag("caption"),H.clearToMarker(),N=Zr,!0):!1}switch(x){case 2:switch(y){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":U()&&N(x,y,C,j);return}break;case 3:switch(y){case"caption":U();return;case"table":U()&&N(x,y,C,j);return;case"body":case"col":case"colgroup":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}break}we(x,y,C,j)}function Ou(x,y,C,j){switch(x){case 1:var U=y.match(ya);if(U&&(tr(U[0]),y=y.substring(U[0].length)),y.length===0)return;break;case 4:wt(y);return;case 5:return;case 2:switch(y){case"html":we(x,y,C,j);return;case"col":Oe(y,C),E.pop();return;case"template":At(x,y,C,j);return}break;case 3:switch(y){case"colgroup":if(!at(E.top,"colgroup"))return;E.pop(),N=Zr;return;case"col":return;case"template":At(x,y,C,j);return}break;case-1:we(x,y,C,j);return}at(E.top,"colgroup")&&(Ou(Ve,"colgroup"),N(x,y,C,j))}function ms(x,y,C,j){function U(){!E.inTableScope("tbody")&&!E.inTableScope("thead")&&!E.inTableScope("tfoot")||(E.clearToContext(dh),ms(Ve,E.top.localName,null),N(x,y,C,j))}switch(x){case 2:switch(y){case"tr":E.clearToContext(dh),Oe(y,C),N=al;return;case"th":case"td":ms(xr,"tr",null),N(x,y,C,j);return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":U();return}break;case 3:switch(y){case"table":U();return;case"tbody":case"tfoot":case"thead":E.inTableScope(y)&&(E.clearToContext(dh),E.pop(),N=Zr);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":case"tr":return}break}Zr(x,y,C,j)}function al(x,y,C,j){function U(){return E.inTableScope("tr")?(E.clearToContext(H2),E.pop(),N=ms,!0):!1}switch(x){case 2:switch(y){case"th":case"td":E.clearToContext(H2),Oe(y,C),N=Oa,H.insertMarker();return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":case"tr":U()&&N(x,y,C,j);return}break;case 3:switch(y){case"tr":U();return;case"table":U()&&N(x,y,C,j);return;case"tbody":case"tfoot":case"thead":E.inTableScope(y)&&U()&&N(x,y,C,j);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":return}break}Zr(x,y,C,j)}function Oa(x,y,C,j){switch(x){case 2:switch(y){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":E.inTableScope("td")?(Oa(Ve,"td"),N(x,y,C,j)):E.inTableScope("th")&&(Oa(Ve,"th"),N(x,y,C,j));return}break;case 3:switch(y){case"td":case"th":if(!E.inTableScope(y))return;E.generateImpliedEndTags(),E.popTag(y),H.clearToMarker(),N=al;return;case"body":case"caption":case"col":case"colgroup":case"html":return;case"table":case"tbody":case"tfoot":case"thead":case"tr":if(!E.inTableScope(y))return;Oa(Ve,E.inTableScope("td")?"td":"th"),N(x,y,C,j);return}break}we(x,y,C,j)}function ai(x,y,C,j){switch(x){case 1:if(zt&&(y=y.replace(ph,""),y.length===0))return;tr(y);return;case 4:wt(y);return;case 5:return;case-1:we(x,y,C,j);return;case 2:switch(y){case"html":we(x,y,C,j);return;case"option":E.top instanceof st.HTMLOptionElement&&ai(Ve,y),Oe(y,C);return;case"optgroup":E.top instanceof st.HTMLOptionElement&&ai(Ve,"option"),E.top instanceof st.HTMLOptGroupElement&&ai(Ve,y),Oe(y,C);return;case"select":ai(Ve,y);return;case"input":case"keygen":case"textarea":if(!E.inSelectScope("select"))return;ai(Ve,"select"),N(x,y,C,j);return;case"script":case"template":At(x,y,C,j);return}break;case 3:switch(y){case"optgroup":E.top instanceof st.HTMLOptionElement&&E.elements[E.elements.length-2]instanceof st.HTMLOptGroupElement&&ai(Ve,"option"),E.top instanceof st.HTMLOptGroupElement&&E.pop();return;case"option":E.top instanceof st.HTMLOptionElement&&E.pop();return;case"select":if(!E.inSelectScope(y))return;E.popTag(y),nl();return;case"template":At(x,y,C,j);return}break}}function Nu(x,y,C,j){switch(y){case"caption":case"table":case"tbody":case"tfoot":case"thead":case"tr":case"td":case"th":switch(x){case 2:Nu(Ve,"select"),N(x,y,C,j);return;case 3:E.inTableScope(y)&&(Nu(Ve,"select"),N(x,y,C,j));return}}ai(x,y,C,j)}function nm(x,y,C,j){function U(re){N=re,q[q.length-1]=N,N(x,y,C,j)}switch(x){case 1:case 4:case 5:we(x,y,C,j);return;case-1:E.contains("template")?(E.popTag("template"),H.clearToMarker(),q.pop(),nl(),N(x,y,C,j)):fs();return;case 2:switch(y){case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":At(x,y,C,j);return;case"caption":case"colgroup":case"tbody":case"tfoot":case"thead":U(Zr);return;case"col":U(Ou);return;case"tr":U(ms);return;case"td":case"th":U(al);return}U(we);return;case 3:if(y==="template"){At(x,y,C,j);return}else return}}function Tw(x,y,C,j){switch(x){case 1:if(uh.test(y))break;we(x,y);return;case 4:E.elements[0]._appendChild(ne.createComment(y));return;case 5:return;case-1:fs();return;case 2:if(y==="html"){we(x,y,C,j);return}break;case 3:if(y==="html"){if(oe)return;N=BB;return}break}N=we,N(x,y,C,j)}function im(x,y,C,j){switch(x){case 1:y=y.replace(B2,""),y.length>0&&tr(y);return;case 4:wt(y);return;case 5:return;case-1:fs();return;case 2:switch(y){case"html":we(x,y,C,j);return;case"frameset":Oe(y,C);return;case"frame":Oe(y,C),E.pop();return;case"noframes":At(x,y,C,j);return}break;case 3:if(y==="frameset"){if(oe&&E.top instanceof st.HTMLHtmlElement)return;E.pop(),!oe&&!(E.top instanceof st.HTMLFrameSetElement)&&(N=jB);return}break}}function jB(x,y,C,j){switch(x){case 1:y=y.replace(B2,""),y.length>0&&tr(y);return;case 4:wt(y);return;case 5:return;case-1:fs();return;case 2:switch(y){case"html":we(x,y,C,j);return;case"noframes":At(x,y,C,j);return}break;case 3:if(y==="html"){N=$B;return}break}}function BB(x,y,C,j){switch(x){case 1:if(uh.test(y))break;we(x,y,C,j);return;case 4:ne._appendChild(ne.createComment(y));return;case 5:we(x,y,C,j);return;case-1:fs();return;case 2:if(y==="html"){we(x,y,C,j);return}break}N=we,N(x,y,C,j)}function $B(x,y,C,j){switch(x){case 1:y=y.replace(B2,""),y.length>0&&we(x,y,C,j);return;case 4:ne._appendChild(ne.createComment(y));return;case 5:we(x,y,C,j);return;case-1:fs();return;case 2:switch(y){case"html":we(x,y,C,j);return;case"noframes":At(x,y,C,j);return}break}}function Aw(x,y,C,j){function U(kt){for(var rr=0,Jr=kt.length;rr<Jr;rr++)switch(kt[rr][0]){case"color":case"face":case"size":return!0}return!1}var re;switch(x){case 1:k&&Rbe.test(y)&&(k=!1),zt&&(y=y.replace(ph,"\uFFFD")),tr(y);return;case 4:wt(y);return;case 5:return;case 2:switch(y){case"font":if(!U(C))break;case"b":case"big":case"blockquote":case"body":case"br":case"center":case"code":case"dd":case"div":case"dl":case"dt":case"em":case"embed":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"head":case"hr":case"i":case"img":case"li":case"listing":case"menu":case"meta":case"nobr":case"ol":case"p":case"pre":case"ruby":case"s":case"small":case"span":case"strong":case"strike":case"sub":case"sup":case"table":case"tt":case"u":case"ul":case"var":if(oe)break;do E.pop(),re=E.top;while(re.namespaceURI!==ye.HTML&&!M5(re)&&!q5(re));ut(x,y,C,j);return}re=E.elements.length===1&&oe?t:E.top,re.namespaceURI===ye.MATHML?B5(C):re.namespaceURI===ye.SVG&&(y=qbe(y),j5(C)),$2(C),Vh(y,C,re.namespaceURI),j&&(y==="script"&&(re.namespaceURI,ye.SVG),E.pop());return;case 3:if(re=E.top,y==="script"&&re.namespaceURI===ye.SVG&&re.localName==="script")E.pop();else for(var Ee=E.elements.length-1,Ue=E.elements[Ee];;){if(Ue.localName.toLowerCase()===y){E.popElement(Ue);break}if(Ue=E.elements[--Ee],Ue.namespaceURI===ye.HTML){N(x,y,C,j);break}}return}}return We.testTokenizer=function(x,y,C,j){var U=[];switch(y){case"PCDATA state":d=He;break;case"RCDATA state":d=Ti;break;case"RAWTEXT state":d=il;break;case"PLAINTEXT state":d=Wh;break}if(C&&(w=C),ut=function(Ee,Ue,kt,rr){switch(G(),Ee){case 1:U.length>0&&U[U.length-1][0]==="Character"?U[U.length-1][1]+=Ue:U.push(["Character",Ue]);break;case 4:U.push(["Comment",Ue]);break;case 5:U.push(["DOCTYPE",Ue,kt===void 0?null:kt,rr===void 0?null:rr,!dt]);break;case 2:for(var Jr=Object.create(null),hn=0;hn<kt.length;hn++){var gs=kt[hn];gs.length===1?Jr[gs[0]]="":Jr[gs[0]]=gs[1]}var Ii=["StartTag",Ue,Jr];rr&&Ii.push(!0),U.push(Ii);break;case 3:U.push(["EndTag",Ue]);break;case-1:break}},!j)this.parse(x,!0);else{for(var re=0;re<x.length;re++)this.parse(x[re]);this.parse("",!0)}return U},We}});var Yc=_((rUe,eq)=>{"use strict";f();eq.exports=X5;var Q5=ah(),Y5=lh(),jbe=mh(),gh=Lt(),Bbe=Hd();function X5(e){this.contextObject=e}var $be={xml:{"":!0,"1.0":!0,"2.0":!0},core:{"":!0,"2.0":!0},html:{"":!0,"1.0":!0,"2.0":!0},xhtml:{"":!0,"1.0":!0,"2.0":!0}};X5.prototype={hasFeature:function(t,r){var n=$be[(t||"").toLowerCase()];return n&&n[r||""]||!1},createDocumentType:function(t,r,n){return Bbe.isValidQName(t)||gh.InvalidCharacterError(),new Y5(this.contextObject,t,r,n)},createDocument:function(t,r,n){var i=new Q5(!1,null),s;return r?s=i.createElementNS(t,r):s=null,n&&i.appendChild(n),s&&i.appendChild(s),t===gh.NAMESPACE.HTML?i._contentType="application/xhtml+xml":t===gh.NAMESPACE.SVG?i._contentType="image/svg+xml":i._contentType="application/xml",i},createHTMLDocument:function(t){var r=new Q5(!0,null);r.appendChild(new Y5(r,"html"));var n=r.createElement("html");r.appendChild(n);var i=r.createElement("head");if(n.appendChild(i),t!==void 0){var s=r.createElement("title");i.appendChild(s),s.appendChild(r.createTextNode(t))}return n.appendChild(r.createElement("body")),r.modclock=1,r},mozSetOutputMutationHandler:function(e,t){e.mutationHandler=t},mozGetInputMutationHandler:function(e){gh.nyi()},mozHTMLParser:jbe}});var rq=_((iUe,tq)=>{"use strict";f();var zbe=Xd(),Hbe=N2();tq.exports=V2;function V2(e,t){this._window=e,this._href=t}V2.prototype=Object.create(Hbe.prototype,{constructor:{value:V2},href:{get:function(){return this._href},set:function(e){this.assign(e)}},assign:{value:function(e){var t=new zbe(this._href),r=t.resolve(e);this._href=r}},replace:{value:function(e){this.assign(e)}},reload:{value:function(){this.assign(this.href)}},toString:{value:function(){return this.href}}})});var iq=_((aUe,nq)=>{"use strict";f();var Ube=Object.create(null,{appCodeName:{value:"Mozilla"},appName:{value:"Netscape"},appVersion:{value:"4.0"},platform:{value:""},product:{value:"Gecko"},productSub:{value:"20100101"},userAgent:{value:""},vendor:{value:""},vendorSub:{value:""},taintEnabled:{value:function(){return!1}}});nq.exports=Ube});var aq=_((lUe,sq)=>{"use strict";f();var Vbe={setTimeout,clearTimeout,setInterval,clearInterval};sq.exports=Vbe});var W2=_((Xc,oq)=>{"use strict";f();var G2=Lt();Xc=oq.exports={CSSStyleDeclaration:eh(),CharacterData:Hc(),Comment:x2(),DOMException:qd(),DOMImplementation:Yc(),DOMTokenList:e2(),Document:ah(),DocumentFragment:y2(),DocumentType:lh(),Element:jo(),HTMLParser:mh(),NamedNodeMap:a2(),Node:ar(),NodeList:ga(),NodeFilter:Wc(),ProcessingInstruction:_2(),Text:m2(),Window:K2()};G2.merge(Xc,O2());G2.merge(Xc,nh().elements);G2.merge(Xc,R2().elements)});var K2=_((pUe,lq)=>{"use strict";f();var Gbe=Yc(),Wbe=Rv(),Kbe=rq(),eu=Lt();lq.exports=xh;function xh(e){this.document=e||new Gbe(null).createHTMLDocument(""),this.document._scripting_enabled=!0,this.document.defaultView=this,this.location=new Kbe(this,this.document._address||"about:blank")}xh.prototype=Object.create(Wbe.prototype,{console:{value:console},history:{value:{back:eu.nyi,forward:eu.nyi,go:eu.nyi}},navigator:{value:iq()},window:{get:function(){return this}},self:{get:function(){return this}},frames:{get:function(){return this}},parent:{get:function(){return this}},top:{get:function(){return this}},length:{value:0},frameElement:{value:null},opener:{value:null},onload:{get:function(){return this._getEventHandler("load")},set:function(e){this._setEventHandler("load",e)}},getComputedStyle:{value:function(t){return t.style}}});eu.expose(aq(),xh);eu.expose(W2(),xh)});var fq=_(_a=>{"use strict";f();var cq=Yc(),uq=mh(),dUe=K2(),pq=W2();_a.createDOMImplementation=function(){return new cq(null)};_a.createDocument=function(e,t){if(e||t){var r=new uq;return r.parse(e||"",!0),r.document()}return new cq(null).createHTMLDocument("")};_a.createIncrementalHTMLParser=function(){var e=new uq;return{write:function(t){t.length>0&&e.parse(t,!1,function(){return!0})},end:function(t){e.parse(t||"",!0,function(){return!0})},process:function(t){return e.parse("",!1,t)},document:function(){return e.document()}}};_a.createWindow=function(e,t){var r=_a.createDocument(e);return t!==void 0&&(r._address=t),new pq.Window(r)};_a.impl=pq});var Tq=_((gUe,Cq)=>{"use strict";f();function Zbe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}function Y2(e,t){return Array(t+1).join(e)}function mq(e){return e.replace(/^\n*/,"")}function gq(e){for(var t=e.length;t>0&&e[t-1]===`
|
|
176
|
+
`;)t--;return e.substring(0,t)}function xq(e){return gq(mq(e))}var Jbe=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function X2(e){return e_(e,Jbe)}var bq=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function yq(e){return e_(e,bq)}function Qbe(e){return _q(e,bq)}var vq=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function Ybe(e){return e_(e,vq)}function Xbe(e){return _q(e,vq)}function e_(e,t){return t.indexOf(e.nodeName)>=0}function _q(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var eye=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function wq(e){return eye.reduce(function(t,r){return t.replace(r[0],r[1])},e)}var yr={};yr.paragraph={filter:"p",replacement:function(e){return`
|
|
177
|
+
|
|
178
|
+
`+e+`
|
|
179
|
+
|
|
180
|
+
`}};yr.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+`
|
|
181
|
+
`}};yr.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var n=Number(t.nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var i=Y2(n===1?"=":"-",e.length);return`
|
|
182
|
+
|
|
183
|
+
`+e+`
|
|
184
|
+
`+i+`
|
|
185
|
+
|
|
186
|
+
`}else return`
|
|
187
|
+
|
|
188
|
+
`+Y2("#",n)+" "+e+`
|
|
189
|
+
|
|
190
|
+
`}};yr.blockquote={filter:"blockquote",replacement:function(e){return e=xq(e).replace(/^/gm,"> "),`
|
|
191
|
+
|
|
192
|
+
`+e+`
|
|
193
|
+
|
|
194
|
+
`}};yr.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return r.nodeName==="LI"&&r.lastElementChild===t?`
|
|
195
|
+
`+e:`
|
|
196
|
+
|
|
197
|
+
`+e+`
|
|
198
|
+
|
|
199
|
+
`}};yr.listItem={filter:"li",replacement:function(e,t,r){var n=r.bulletListMarker+" ",i=t.parentNode;if(i.nodeName==="OL"){var s=i.getAttribute("start"),a=Array.prototype.indexOf.call(i.children,t);n=(s?Number(s)+a:a+1)+". "}var o=/\n$/.test(e);return e=xq(e)+(o?`
|
|
200
|
+
`:""),e=e.replace(/\n/gm,`
|
|
201
|
+
`+" ".repeat(n.length)),n+e+(t.nextSibling?`
|
|
202
|
+
`:"")}};yr.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){return`
|
|
203
|
+
|
|
204
|
+
`+t.firstChild.textContent.replace(/\n/g,`
|
|
205
|
+
`)+`
|
|
206
|
+
|
|
207
|
+
`}};yr.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",i=(n.match(/language-(\S+)/)||[null,""])[1],s=t.firstChild.textContent,a=r.fence.charAt(0),o=3,l=new RegExp("^"+a+"{3,}","gm"),c;c=l.exec(s);)c[0].length>=o&&(o=c[0].length+1);var p=Y2(a,o);return`
|
|
208
|
+
|
|
209
|
+
`+p+i+`
|
|
210
|
+
`+s.replace(/\n$/,"")+`
|
|
211
|
+
`+p+`
|
|
212
|
+
|
|
213
|
+
`}};yr.horizontalRule={filter:"hr",replacement:function(e,t,r){return`
|
|
214
|
+
|
|
215
|
+
`+r.hr+`
|
|
216
|
+
|
|
217
|
+
`}};yr.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var r=t_(t.getAttribute("href")),n=r_(bh(t.getAttribute("title"))),i=n?' "'+n+'"':"";return"["+e+"]("+r+i+")"}};yr.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,r){var n=t_(t.getAttribute("href")),i=bh(t.getAttribute("title"));i&&(i=' "'+r_(i)+'"');var s,a;switch(r.linkReferenceStyle){case"collapsed":s="["+e+"][]",a="["+e+"]: "+n+i;break;case"shortcut":s="["+e+"]",a="["+e+"]: "+n+i;break;default:var o=this.references.length+1;s="["+e+"]["+o+"]",a="["+o+"]: "+n+i}return this.references.push(a),s},references:[],append:function(e){var t="";return this.references.length&&(t=`
|
|
218
|
+
|
|
219
|
+
`+this.references.join(`
|
|
220
|
+
`)+`
|
|
221
|
+
|
|
222
|
+
`,this.references=[]),t}};yr.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}};yr.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}};yr.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r}};yr.image={filter:"img",replacement:function(e,t){var r=wq(bh(t.getAttribute("alt"))),n=t_(t.getAttribute("src")||""),i=bh(t.getAttribute("title")),s=i?' "'+r_(i)+'"':"";return n?"":""}};function bh(e){return e?e.replace(/(\n+\s*)+/g,`
|
|
223
|
+
`):""}function t_(e){var t=e.replace(/([<>()])/g,"\\$1");return t.indexOf(" ")>=0?"<"+t+">":t}function r_(e){return e.replace(/"/g,'\\"')}function Eq(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}Eq.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=Z2(this.array,e,this.options))||(t=Z2(this._keep,e,this.options))||(t=Z2(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function Z2(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];if(tye(i,t,r))return i}}function tye(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function rye(e){var t=e.element,r=e.isBlock,n=e.isVoid,i=e.isPre||function(u){return u.nodeName==="PRE"};if(!(!t.firstChild||i(t))){for(var s=null,a=!1,o=null,l=dq(o,t,i);l!==t;){if(l.nodeType===3||l.nodeType===4){var c=l.data.replace(/[ \r\n\t]+/g," ");if((!s||/ $/.test(s.data))&&!a&&c[0]===" "&&(c=c.substr(1)),!c){l=J2(l);continue}l.data=c,s=l}else if(l.nodeType===1)r(l)||l.nodeName==="BR"?(s&&(s.data=s.data.replace(/ $/,"")),s=null,a=!1):n(l)||i(l)?(s=null,a=!0):s&&(a=!1);else{l=J2(l);continue}var p=dq(o,l,i);o=l,l=p}s&&(s.data=s.data.replace(/ $/,""),s.data||J2(s))}}function J2(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function dq(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var Dq=typeof window<"u"?window:{};function nye(){var e=Dq.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function iye(){var e=function(){};{var t=fq();e.prototype.parseFromString=function(r){return t.createDocument(r)}}return e}var sye=nye()?Dq.DOMParser:iye();function aye(e,t){var r;if(typeof e=="string"){var n=oye().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return rye({element:r,isBlock:X2,isVoid:yq,isPre:t.preformattedCode?lye:null}),r}var Q2;function oye(){return Q2=Q2||new sye,Q2}function lye(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function cye(e,t){return e.isBlock=X2(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=uye(e),e.flankingWhitespace=pye(e,t),e}function uye(e){return!yq(e)&&!Ybe(e)&&/^\s*$/i.test(e.textContent)&&!Qbe(e)&&!Xbe(e)}function pye(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=fye(e.textContent);return r.leadingAscii&&hq("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&hq("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function fye(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function hq(e,t,r){var n,i,s;return e==="left"?(n=t.previousSibling,i=/ $/):(n=t.nextSibling,i=/^ /),n&&(n.nodeType===3?s=i.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?s=!1:n.nodeType===1&&!X2(n)&&(s=i.test(n.textContent))),s}var dye=Array.prototype.reduce;function yh(e){if(!(this instanceof yh))return new yh(e);var t={rules:yr,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
|
|
224
|
+
|
|
225
|
+
`:""},keepReplacement:function(r,n){return n.isBlock?`
|
|
226
|
+
|
|
227
|
+
`+n.outerHTML+`
|
|
228
|
+
|
|
229
|
+
`:n.outerHTML},defaultReplacement:function(r,n){return n.isBlock?`
|
|
230
|
+
|
|
231
|
+
`+r+`
|
|
232
|
+
|
|
233
|
+
`:r}};this.options=Zbe({},t,e),this.rules=new Eq(this.options)}yh.prototype={turndown:function(e){if(!gye(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=Sq.call(this,new aye(e,this.options));return hye.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return wq(e)}};function Sq(e){var t=this;return dye.call(e.childNodes,function(r,n){n=new cye(n,t.options);var i="";return n.nodeType===3?i=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(i=mye.call(t,n)),kq(r,i)},"")}function hye(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=kq(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function mye(e){var t=this.rules.forNode(e),r=Sq.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function kq(e,t){var r=gq(e),n=mq(t),i=Math.max(e.length-r.length,t.length-n.length),s=`
|
|
234
|
+
|
|
235
|
+
`.substring(0,i);return r+s+n}function gye(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}Cq.exports=yh});var Hq=_((TUe,zq)=>{"use strict";f();var Bq=X("url"),$q=1800,s_=class{constructor(t){this.options=t||{},this.cookies=[]}set(t,r){let n=Bq.parse(r||""),i=this.parse(t),s;return i.domain?(s=i.domain.replace(/^\./,""),(n.hostname.length<s.length||("."+n.hostname).substr(-s.length+1)!=="."+s)&&(i.domain=n.hostname)):i.domain=n.hostname,i.path||(i.path=this.getPath(n.pathname)),i.expires||(i.expires=new Date(Date.now()+(Number(this.options.sessionTimeout||$q)||$q)*1e3)),this.add(i)}get(t){return this.list(t).map(r=>r.name+"="+r.value).join("; ")}list(t){let r=[];for(let n=this.cookies.length-1;n>=0;n--){let i=this.cookies[n];if(this.isExpired(i)){this.cookies.splice(n,1);continue}this.match(i,t)&&r.unshift(i)}return r}parse(t){let r={};return(t||"").toString().split(";").forEach(n=>{let i=n.split("="),s=i.shift().trim().toLowerCase(),a=i.join("=").trim(),o;if(s)switch(s){case"expires":a=new Date(a),a.toString()!=="Invalid Date"&&(r.expires=a);break;case"path":r.path=a;break;case"domain":o=a.toLowerCase(),o.length&&o.charAt(0)!=="."&&(o="."+o),r.domain=o;break;case"max-age":r.expires=new Date(Date.now()+(Number(a)||0)*1e3);break;case"secure":r.secure=!0;break;case"httponly":r.httponly=!0;break;default:r.name||(r.name=s,r.value=a)}}),r}match(t,r){let n=Bq.parse(r||"");return!(n.hostname!==t.domain&&(t.domain.charAt(0)!=="."||("."+n.hostname).substr(-t.domain.length)!==t.domain)||this.getPath(n.pathname).substr(0,t.path.length)!==t.path||t.secure&&n.protocol!=="https:")}add(t){if(!t||!t.name)return!1;for(let r=0,n=this.cookies.length;r<n;r++)if(this.compare(this.cookies[r],t))return this.isExpired(t)?(this.cookies.splice(r,1),!1):(this.cookies[r]=t,!0);return this.isExpired(t)||this.cookies.push(t),!0}compare(t,r){return t.name===r.name&&t.path===r.path&&t.domain===r.domain&&t.secure===r.secure&&t.httponly===r.httponly}isExpired(t){return t.expires&&t.expires<new Date||!t.value}getPath(t){let r=(t||"/").split("/");return r.pop(),r=r.join("/").trim(),r.charAt(0)!=="/"&&(r="/"+r),r.substr(-1)!=="/"&&(r+="/"),r}};zq.exports=s_});var On=_((OUe,Eye)=>{Eye.exports={name:"nodemailer",version:"8.0.7",description:"Easy as cake e-mail sending from your Node.js applications",main:"lib/nodemailer.js",scripts:{test:"node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js","test:coverage":"c8 node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js",format:'prettier --write "**/*.{js,json,md}"',"format:check":'prettier --check "**/*.{js,json,md}"',lint:"eslint .","lint:fix":"eslint . --fix",update:"rm -rf node_modules/ package-lock.json && ncu -u && npm install","test:syntax":'docker run --rm -v "$PWD:/app:ro" -w /app node:6-alpine node test/syntax-compat.js'},repository:{type:"git",url:"https://github.com/nodemailer/nodemailer.git"},keywords:["Nodemailer"],author:"Andris Reinman",license:"MIT-0",bugs:{url:"https://github.com/nodemailer/nodemailer/issues"},homepage:"https://nodemailer.com/",devDependencies:{"@aws-sdk/client-sesv2":"3.1037.0",bunyan:"1.8.15",c8:"11.0.0",eslint:"10.2.1","eslint-config-prettier":"10.1.8",globals:"17.5.0",libbase64:"1.3.0",libmime:"5.3.8",libqp:"2.1.1",prettier:"3.8.3",proxy:"1.0.2","proxy-test-server":"1.0.0","smtp-server":"3.18.4"},engines:{node:">=6.0.0"}}});var Nn=_((NUe,a_)=>{"use strict";f();var Uq={ECONNECTION:"Connection closed unexpectedly",ETIMEDOUT:"Connection or operation timed out",ESOCKET:"Socket-level error",EDNS:"DNS resolution failed",ETLS:"TLS handshake or STARTTLS failed",EREQUIRETLS:"REQUIRETLS not supported by server (RFC 8689)",EPROTOCOL:"Invalid SMTP server response",EENVELOPE:"Invalid mail envelope (sender or recipients)",EMESSAGE:"Message delivery error",ESTREAM:"Stream processing error",EAUTH:"Authentication failed",ENOAUTH:"Authentication credentials not provided",EOAUTH2:"OAuth2 token generation or refresh error",EMAXLIMIT:"Pool resource limit reached (max messages per connection)",ESENDMAIL:"Sendmail command error",ESES:"AWS SES transport error",ECONFIG:"Invalid configuration",EPROXY:"Proxy connection error",EFILEACCESS:"File access rejected (disableFileAccess is set)",EURLACCESS:"URL access rejected (disableUrlAccess is set)",EFETCH:"HTTP fetch error"};a_.exports={ERROR_CODES:Uq};for(let e of Object.keys(Uq))a_.exports[e]=e});var ru=_((IUe,o_)=>{"use strict";f();var Dye=X("http"),Sye=X("https"),Vq=X("url"),kye=X("zlib"),{PassThrough:Cye}=X("stream"),Gq=Hq(),Tye=On(),Aye=X("net"),Yn=Nn(),Oye=5;o_.exports=function(e,t){return Wq(e,t)};o_.exports.Cookies=Gq;function Wq(e,t){t=t||{},t.fetchRes=t.fetchRes||new Cye,t.cookies=t.cookies||new Gq,t.redirects=t.redirects||0,t.maxRedirects=isNaN(t.maxRedirects)?Oye:t.maxRedirects,t.cookie&&([].concat(t.cookie||[]).forEach(h=>{t.cookies.set(h,e)}),t.cookie=!1);let r=t.fetchRes,n=Vq.parse(e),i=(t.method||"").toString().trim().toUpperCase()||"GET",s=!1,a,o,l=n.protocol==="https:"?Sye:Dye,c={"accept-encoding":"gzip,deflate","user-agent":"nodemailer/"+Tye.version};if(Object.keys(t.headers||{}).forEach(h=>{c[h.toLowerCase().trim()]=t.headers[h]}),t.userAgent&&(c["user-agent"]=t.userAgent),n.auth&&(c.Authorization="Basic "+Buffer.from(n.auth).toString("base64")),(a=t.cookies.get(e))&&(c.cookie=a),t.body){if(t.contentType!==!1&&(c["Content-Type"]=t.contentType||"application/x-www-form-urlencoded"),typeof t.body.pipe=="function")c["Transfer-Encoding"]="chunked",o=t.body,o.on("error",h=>{s||(s=!0,h.code=Yn.EFETCH,h.sourceUrl=e,r.emit("error",h))});else{if(t.body instanceof Buffer)o=t.body;else if(typeof t.body=="object")try{o=Buffer.from(Object.keys(t.body).map(h=>{let d=t.body[h].toString().trim();return encodeURIComponent(h)+"="+encodeURIComponent(d)}).join("&"))}catch(h){if(s)return;s=!0,h.code=Yn.EFETCH,h.sourceUrl=e,r.emit("error",h);return}else o=Buffer.from(t.body.toString().trim());c["Content-Type"]=t.contentType||"application/x-www-form-urlencoded",c["Content-Length"]=o.length}i=(t.method||"").toString().trim().toUpperCase()||"POST"}let p,u={method:i,host:n.hostname,path:n.path,port:n.port?n.port:n.protocol==="https:"?443:80,headers:c,rejectUnauthorized:!1,agent:!1};t.tls&&Object.assign(u,t.tls),n.protocol==="https:"&&n.hostname&&n.hostname!==u.host&&!Aye.isIP(n.hostname)&&!u.servername&&(u.servername=n.hostname);try{p=l.request(u)}catch(h){return s=!0,setImmediate(()=>{h.code=Yn.EFETCH,h.sourceUrl=e,r.emit("error",h)}),r}return t.timeout&&p.setTimeout(t.timeout,()=>{if(s)return;s=!0,p.abort();let h=new Error("Request Timeout");h.code=Yn.EFETCH,h.sourceUrl=e,r.emit("error",h)}),p.on("error",h=>{s||(s=!0,h.code=Yn.EFETCH,h.sourceUrl=e,r.emit("error",h))}),p.on("response",h=>{let d;if(!s){switch(h.headers["content-encoding"]){case"gzip":case"deflate":d=kye.createUnzip();break}if(h.headers["set-cookie"]&&[].concat(h.headers["set-cookie"]||[]).forEach(m=>{t.cookies.set(m,e)}),[301,302,303,307,308].includes(h.statusCode)&&h.headers.location){if(t.redirects++,t.redirects>t.maxRedirects){s=!0;let m=new Error("Maximum redirect count exceeded");m.code=Yn.EFETCH,m.sourceUrl=e,r.emit("error",m),p.abort();return}return t.method="GET",t.body=!1,Wq(Vq.resolve(e,h.headers.location),t)}if(r.statusCode=h.statusCode,r.headers=h.headers,h.statusCode>=300&&!t.allowErrorResponse){s=!0;let m=new Error("Invalid status code "+h.statusCode);m.code=Yn.EFETCH,m.sourceUrl=e,r.emit("error",m),p.abort();return}h.on("error",m=>{s||(s=!0,m.code=Yn.EFETCH,m.sourceUrl=e,r.emit("error",m),p.abort())}),d?(h.pipe(d).pipe(r),d.on("error",m=>{s||(s=!0,m.code=Yn.EFETCH,m.sourceUrl=e,r.emit("error",m),p.abort())})):h.pipe(r)}}),setImmediate(()=>{if(o)try{if(typeof o.pipe=="function")return o.pipe(p);p.write(o)}catch(h){s=!0,h.code=Yn.EFETCH,h.sourceUrl=e,r.emit("error",h);return}p.end()}),r}});var Tr=_((PUe,Xt)=>{"use strict";f();var Nye=X("url"),Fye=X("util"),Iye=X("fs"),Lye=ru(),Xn=X("dns"),Pye=X("net"),Rye=X("os"),nu=300*1e3,Mye=30*1e3,Kq=1e3,Sh=0;Xt.exports._lastCacheCleanup=()=>Sh;Xt.exports._resetCacheCleanup=()=>{Sh=0};var Jq;try{Jq=Rye.networkInterfaces()}catch{}Xt.exports.networkInterfaces=Jq;var Qq=(e,t)=>{let r=Xt.exports.networkInterfaces;return r?Object.keys(r).map(n=>r[n]).reduce((n,i)=>n.concat(i),[]).filter(n=>!n.internal||t).some(n=>n.family==="IPv"+e||n.family===e):!0},Zq=(e,t,r,n)=>{if(r=r||{},!Qq(e,r.allowInternalNetworkInterfaces))return n(null,[]);(Xn.Resolver?new Xn.Resolver(r):Xn)["resolve"+e](t,(s,a)=>{if(s){switch(s.code){case Xn.NODATA:case Xn.NOTFOUND:case Xn.NOTIMP:case Xn.SERVFAIL:case Xn.CONNREFUSED:case Xn.REFUSED:case"EAI_AGAIN":return n(null,[])}return n(s)}return n(null,Array.isArray(a)?a:[].concat(a||[]))})},fn=Xt.exports.dnsCache=new Map,ls=(e,t)=>{if(!e)return Object.assign({},t||{});let r=e.addresses||[],n=r.length>0?r[Math.floor(Math.random()*r.length)]:null;return Object.assign({servername:e.servername,host:n,_addresses:r},t||{})};Xt.exports.resolveHostname=(e,t)=>{if(e=e||{},!e.host&&e.servername&&(e.host=e.servername),!e.host||Pye.isIP(e.host)){let o={addresses:[e.host],servername:e.servername||!1};return t(null,ls(o,{cached:!1}))}let r;if(fn.has(e.host)){r=fn.get(e.host);let o=Date.now();if(o-Sh>Mye){Sh=o;for(let[l,c]of fn.entries())c.expires&&c.expires<o&&fn.delete(l);if(fn.size>Kq){let l=Math.floor(Kq*.1);Array.from(fn.keys()).slice(0,l).forEach(p=>fn.delete(p))}}if(!r.expires||r.expires>=o)return t(null,ls(r.value,{cached:!0}))}let n=[],i=[],s=null,a=null;Zq(4,e.host,e,(o,l)=>{o?s=o:n=l||[],Zq(6,e.host,e,(c,p)=>{c?a=c:i=p||[];let u=n.concat(i);if(u.length){let h={addresses:u,servername:e.servername||e.host};return fn.set(e.host,{value:h,expires:Date.now()+(e.dnsTtl||nu)}),t(null,ls(h,{cached:!1}))}if(s&&a&&r)return fn.set(e.host,{value:r.value,expires:Date.now()+(e.dnsTtl||nu)}),t(null,ls(r.value,{cached:!0,error:s}));try{Xn.lookup(e.host,{all:!0},(h,d)=>{if(h)return r?(fn.set(e.host,{value:r.value,expires:Date.now()+(e.dnsTtl||nu)}),t(null,ls(r.value,{cached:!0,error:h}))):t(h);let m=d?d.filter(v=>Qq(v.family)).map(v=>v.address):[];if(d&&d.length&&!m.length&&console.warn(`Failed to resolve IPv${d[0].family} addresses with current network`),!m.length&&r)return t(null,ls(r.value,{cached:!0}));let b={addresses:m.length?m:[e.host],servername:e.servername||e.host};return fn.set(e.host,{value:b,expires:Date.now()+(e.dnsTtl||nu)}),t(null,ls(b,{cached:!1}))})}catch(h){return r?(fn.set(e.host,{value:r.value,expires:Date.now()+(e.dnsTtl||nu)}),t(null,ls(r.value,{cached:!0,error:h}))):t(s||a||h)}})})};Xt.exports.parseConnectionUrl=e=>{e=e||"";let t={},r=Nye.parse(e,!0);switch(r.protocol){case"smtp:":t.secure=!1;break;case"smtps:":t.secure=!0;break;case"direct:":t.direct=!0;break}if(!isNaN(r.port)&&Number(r.port)&&(t.port=Number(r.port)),r.hostname&&(t.host=r.hostname),r.auth){let n=r.auth.split(":");t.auth={user:n.shift(),pass:n.join(":")}}return Object.keys(r.query||{}).forEach(n=>{let i=t,s=n,a=r.query[n];switch(isNaN(a)||(a=Number(a)),a){case"true":a=!0;break;case"false":a=!1;break}if(n.indexOf("tls.")===0)s=n.substr(4),t.tls||(t.tls={}),i=t.tls;else if(n.indexOf(".")>=0)return;s in i||(i[s]=a)}),t};Xt.exports._logFunc=(e,t,r,n,i,...s)=>{let a=Object.assign({},r||{},n||{});delete a.level,e[t](a,i,...s)};Xt.exports.getLogger=(e,t)=>{e=e||{};let r={},n=["trace","debug","info","warn","error","fatal"];if(!e.logger)return n.forEach(s=>{r[s]=()=>!1}),r;let i=e.logger===!0?qye(n):e.logger;return n.forEach(s=>{r[s]=(a,o,...l)=>{Xt.exports._logFunc(i,s,t,a,o,...l)}}),r};Xt.exports.callbackPromise=(e,t)=>function(){let r=Array.from(arguments),n=r.shift();n?t(n):e(...r)};Xt.exports.parseDataURI=e=>{if(typeof e!="string"||!e.startsWith("data:"))return null;let t=e.indexOf(",");if(t===-1)return null;let r=e.substring(t+1),n=e.substring(5,t),i,s=n.split(";");if(s.length>0){let c=s[s.length-1].toLowerCase().trim();["base64","utf8","utf-8"].includes(c)&&c.indexOf("=")===-1&&(i=c,s.pop())}let a=s.length>0?s.shift():"application/octet-stream",o={};for(let c=0;c<s.length;c++){let p=s[c],u=p.indexOf("=");if(u>0){let h=p.substring(0,u).trim(),d=p.substring(u+1).trim();h&&(o[h]=d)}}let l;try{if(i==="base64")l=Buffer.from(r,"base64");else try{l=Buffer.from(decodeURIComponent(r))}catch{l=Buffer.from(r)}}catch{l=Buffer.alloc(0)}return{data:l,encoding:i||null,contentType:a||"application/octet-stream",params:o}};Xt.exports.resolveContent=(e,t,r)=>{let n;r||(n=new Promise((a,o)=>{r=Xt.exports.callbackPromise(a,o)}));let i=e&&e[t]&&e[t].content||e[t],s=(typeof e[t]=="object"&&e[t].encoding||"utf8").toString().toLowerCase().replace(/[-_\s]/g,"");if(!i)return r(null,i);if(typeof i=="object"){if(typeof i.pipe=="function")return l_(i,(a,o)=>{if(a)return r(a);e[t].content?e[t].content=o:e[t]=o,r(null,o)});if(/^https?:\/\//i.test(i.path||i.href))return l_(Lye(i.path||i.href),r);if(/^data:/i.test(i.path||i.href)){let a=Xt.exports.parseDataURI(i.path||i.href);return!a||!a.data?r(null,Buffer.from(0)):r(null,a.data)}else if(i.path)return l_(Iye.createReadStream(i.path),r)}return typeof e[t].content=="string"&&!["utf8","usascii","ascii"].includes(s)&&(i=Buffer.from(e[t].content,s)),setImmediate(()=>r(null,i)),n};Xt.exports.assign=function(){let e=Array.from(arguments),t=e.shift()||{};return e.forEach(r=>{Object.keys(r||{}).forEach(n=>{["tls","auth"].includes(n)&&r[n]&&typeof r[n]=="object"?t[n]=Object.assign(t[n]||{},r[n]):t[n]=r[n]})}),t};Xt.exports.encodeXText=e=>{if(!/[^\x21-\x2A\x2C-\x3C\x3E-\x7E]/.test(e))return e;let t=Buffer.from(e),r="";for(let n=0,i=t.length;n<i;n++){let s=t[n];s<33||s>126||s===43||s===61?r+="+"+(s<16?"0":"")+s.toString(16).toUpperCase():r+=String.fromCharCode(s)}return r};function l_(e,t){let r=!1,n=[],i=0;e.on("error",s=>{r||(r=!0,t(s))}),e.on("readable",()=>{let s;for(;(s=e.read())!==null;)n.push(s),i+=s.length}),e.on("end",()=>{if(r)return;r=!0;let s;try{s=Buffer.concat(n,i)}catch(a){return t(a)}t(null,s)})}function qye(e){let t=e.reduce((s,a)=>Math.max(s,a.length),0),r=new Map;e.forEach(s=>{let a=s.toUpperCase();a.length<t&&(a+=" ".repeat(t-a.length)),r.set(s,a)});let n=(s,a,o,...l)=>{let c="";a&&(a.tnx==="server"?c="S: ":a.tnx==="client"&&(c="C: "),a.sid&&(c="["+a.sid+"] "+c),a.cid&&(c="[#"+a.cid+"] "+c)),o=Fye.format(o,...l),o.split(/\r?\n/).forEach(p=>{console.log("[%s] %s %s",new Date().toISOString().substr(0,19).replace(/T/," "),r.get(s),c+p)})},i={};return e.forEach(s=>{i[s]=n.bind(null,s)}),i}});var c_=_((MUe,t9)=>{"use strict";f();var jye=X("path"),Yq="application/octet-stream",Bye="bin",Xq=new Map([["application/acad","dwg"],["application/applixware","aw"],["application/arj","arj"],["application/atom+xml","xml"],["application/atomcat+xml","atomcat"],["application/atomsvc+xml","atomsvc"],["application/base64",["mm","mme"]],["application/binhex","hqx"],["application/binhex4","hqx"],["application/book",["book","boo"]],["application/ccxml+xml,","ccxml"],["application/cdf","cdf"],["application/cdmi-capability","cdmia"],["application/cdmi-container","cdmic"],["application/cdmi-domain","cdmid"],["application/cdmi-object","cdmio"],["application/cdmi-queue","cdmiq"],["application/clariscad","ccad"],["application/commonground","dp"],["application/cu-seeme","cu"],["application/davmount+xml","davmount"],["application/drafting","drw"],["application/dsptype","tsp"],["application/dssc+der","dssc"],["application/dssc+xml","xdssc"],["application/dxf","dxf"],["application/ecmascript",["js","es"]],["application/emma+xml","emma"],["application/envoy","evy"],["application/epub+zip","epub"],["application/excel",["xls","xl","xla","xlb","xlc","xld","xlk","xll","xlm","xlt","xlv","xlw"]],["application/exi","exi"],["application/font-tdpfr","pfr"],["application/fractals","fif"],["application/freeloader","frl"],["application/futuresplash","spl"],["application/geo+json","geojson"],["application/gnutar","tgz"],["application/groupwise","vew"],["application/hlp","hlp"],["application/hta","hta"],["application/hyperstudio","stk"],["application/i-deas","unv"],["application/iges",["iges","igs"]],["application/inf","inf"],["application/internet-property-stream","acx"],["application/ipfix","ipfix"],["application/java","class"],["application/java-archive","jar"],["application/java-byte-code","class"],["application/java-serialized-object","ser"],["application/java-vm","class"],["application/javascript","js"],["application/json","json"],["application/lha","lha"],["application/lzx","lzx"],["application/mac-binary","bin"],["application/mac-binhex","hqx"],["application/mac-binhex40","hqx"],["application/mac-compactpro","cpt"],["application/macbinary","bin"],["application/mads+xml","mads"],["application/marc","mrc"],["application/marcxml+xml","mrcx"],["application/mathematica","ma"],["application/mathml+xml","mathml"],["application/mbedlet","mbd"],["application/mbox","mbox"],["application/mcad","mcd"],["application/mediaservercontrol+xml","mscml"],["application/metalink4+xml","meta4"],["application/mets+xml","mets"],["application/mime","aps"],["application/mods+xml","mods"],["application/mp21","m21"],["application/mp4","mp4"],["application/mspowerpoint",["ppt","pot","pps","ppz"]],["application/msword",["doc","dot","w6w","wiz","word"]],["application/mswrite","wri"],["application/mxf","mxf"],["application/netmc","mcp"],["application/octet-stream",["*"]],["application/oda","oda"],["application/oebps-package+xml","opf"],["application/ogg","ogx"],["application/olescript","axs"],["application/onenote","onetoc"],["application/patch-ops-error+xml","xer"],["application/pdf","pdf"],["application/pgp-encrypted","asc"],["application/pgp-signature","pgp"],["application/pics-rules","prf"],["application/pkcs-12","p12"],["application/pkcs-crl","crl"],["application/pkcs10","p10"],["application/pkcs7-mime",["p7c","p7m"]],["application/pkcs7-signature","p7s"],["application/pkcs8","p8"],["application/pkix-attr-cert","ac"],["application/pkix-cert",["cer","crt"]],["application/pkix-crl","crl"],["application/pkix-pkipath","pkipath"],["application/pkixcmp","pki"],["application/plain","text"],["application/pls+xml","pls"],["application/postscript",["ps","ai","eps"]],["application/powerpoint","ppt"],["application/pro_eng",["part","prt"]],["application/prs.cww","cww"],["application/pskc+xml","pskcxml"],["application/rdf+xml","rdf"],["application/reginfo+xml","rif"],["application/relax-ng-compact-syntax","rnc"],["application/resource-lists+xml","rl"],["application/resource-lists-diff+xml","rld"],["application/ringing-tones","rng"],["application/rls-services+xml","rs"],["application/rsd+xml","rsd"],["application/rss+xml","xml"],["application/rtf",["rtf","rtx"]],["application/sbml+xml","sbml"],["application/scvp-cv-request","scq"],["application/scvp-cv-response","scs"],["application/scvp-vp-request","spq"],["application/scvp-vp-response","spp"],["application/sdp","sdp"],["application/sea","sea"],["application/set","set"],["application/set-payment-initiation","setpay"],["application/set-registration-initiation","setreg"],["application/shf+xml","shf"],["application/sla","stl"],["application/smil",["smi","smil"]],["application/smil+xml","smi"],["application/solids","sol"],["application/sounder","sdr"],["application/sparql-query","rq"],["application/sparql-results+xml","srx"],["application/srgs","gram"],["application/srgs+xml","grxml"],["application/sru+xml","sru"],["application/ssml+xml","ssml"],["application/step",["step","stp"]],["application/streamingmedia","ssm"],["application/tei+xml","tei"],["application/thraud+xml","tfi"],["application/timestamped-data","tsd"],["application/toolbook","tbk"],["application/vda","vda"],["application/vnd.3gpp.pic-bw-large","plb"],["application/vnd.3gpp.pic-bw-small","psb"],["application/vnd.3gpp.pic-bw-var","pvb"],["application/vnd.3gpp2.tcap","tcap"],["application/vnd.3m.post-it-notes","pwn"],["application/vnd.accpac.simply.aso","aso"],["application/vnd.accpac.simply.imp","imp"],["application/vnd.acucobol","acu"],["application/vnd.acucorp","atc"],["application/vnd.adobe.air-application-installer-package+zip","air"],["application/vnd.adobe.fxp","fxp"],["application/vnd.adobe.xdp+xml","xdp"],["application/vnd.adobe.xfdf","xfdf"],["application/vnd.ahead.space","ahead"],["application/vnd.airzip.filesecure.azf","azf"],["application/vnd.airzip.filesecure.azs","azs"],["application/vnd.amazon.ebook","azw"],["application/vnd.americandynamics.acc","acc"],["application/vnd.amiga.ami","ami"],["application/vnd.android.package-archive","apk"],["application/vnd.anser-web-certificate-issue-initiation","cii"],["application/vnd.anser-web-funds-transfer-initiation","fti"],["application/vnd.antix.game-component","atx"],["application/vnd.apple.installer+xml","mpkg"],["application/vnd.apple.mpegurl","m3u8"],["application/vnd.aristanetworks.swi","swi"],["application/vnd.audiograph","aep"],["application/vnd.blueice.multipass","mpm"],["application/vnd.bmi","bmi"],["application/vnd.businessobjects","rep"],["application/vnd.chemdraw+xml","cdxml"],["application/vnd.chipnuts.karaoke-mmd","mmd"],["application/vnd.cinderella","cdy"],["application/vnd.claymore","cla"],["application/vnd.cloanto.rp9","rp9"],["application/vnd.clonk.c4group","c4g"],["application/vnd.cluetrust.cartomobile-config","c11amc"],["application/vnd.cluetrust.cartomobile-config-pkg","c11amz"],["application/vnd.commonspace","csp"],["application/vnd.contact.cmsg","cdbcmsg"],["application/vnd.cosmocaller","cmc"],["application/vnd.crick.clicker","clkx"],["application/vnd.crick.clicker.keyboard","clkk"],["application/vnd.crick.clicker.palette","clkp"],["application/vnd.crick.clicker.template","clkt"],["application/vnd.crick.clicker.wordbank","clkw"],["application/vnd.criticaltools.wbs+xml","wbs"],["application/vnd.ctc-posml","pml"],["application/vnd.cups-ppd","ppd"],["application/vnd.curl.car","car"],["application/vnd.curl.pcurl","pcurl"],["application/vnd.data-vision.rdz","rdz"],["application/vnd.denovo.fcselayout-link","fe_launch"],["application/vnd.dna","dna"],["application/vnd.dolby.mlp","mlp"],["application/vnd.dpgraph","dpg"],["application/vnd.dreamfactory","dfac"],["application/vnd.dvb.ait","ait"],["application/vnd.dvb.service","svc"],["application/vnd.dynageo","geo"],["application/vnd.ecowin.chart","mag"],["application/vnd.enliven","nml"],["application/vnd.epson.esf","esf"],["application/vnd.epson.msf","msf"],["application/vnd.epson.quickanime","qam"],["application/vnd.epson.salt","slt"],["application/vnd.epson.ssf","ssf"],["application/vnd.eszigno3+xml","es3"],["application/vnd.ezpix-album","ez2"],["application/vnd.ezpix-package","ez3"],["application/vnd.fdf","fdf"],["application/vnd.fdsn.seed","seed"],["application/vnd.flographit","gph"],["application/vnd.fluxtime.clip","ftc"],["application/vnd.framemaker","fm"],["application/vnd.frogans.fnc","fnc"],["application/vnd.frogans.ltf","ltf"],["application/vnd.fsc.weblaunch","fsc"],["application/vnd.fujitsu.oasys","oas"],["application/vnd.fujitsu.oasys2","oa2"],["application/vnd.fujitsu.oasys3","oa3"],["application/vnd.fujitsu.oasysgp","fg5"],["application/vnd.fujitsu.oasysprs","bh2"],["application/vnd.fujixerox.ddd","ddd"],["application/vnd.fujixerox.docuworks","xdw"],["application/vnd.fujixerox.docuworks.binder","xbd"],["application/vnd.fuzzysheet","fzs"],["application/vnd.genomatix.tuxedo","txd"],["application/vnd.geogebra.file","ggb"],["application/vnd.geogebra.tool","ggt"],["application/vnd.geometry-explorer","gex"],["application/vnd.geonext","gxt"],["application/vnd.geoplan","g2w"],["application/vnd.geospace","g3w"],["application/vnd.gmx","gmx"],["application/vnd.google-earth.kml+xml","kml"],["application/vnd.google-earth.kmz","kmz"],["application/vnd.grafeq","gqf"],["application/vnd.groove-account","gac"],["application/vnd.groove-help","ghf"],["application/vnd.groove-identity-message","gim"],["application/vnd.groove-injector","grv"],["application/vnd.groove-tool-message","gtm"],["application/vnd.groove-tool-template","tpl"],["application/vnd.groove-vcard","vcg"],["application/vnd.hal+xml","hal"],["application/vnd.handheld-entertainment+xml","zmm"],["application/vnd.hbci","hbci"],["application/vnd.hhe.lesson-player","les"],["application/vnd.hp-hpgl",["hgl","hpg","hpgl"]],["application/vnd.hp-hpid","hpid"],["application/vnd.hp-hps","hps"],["application/vnd.hp-jlyt","jlt"],["application/vnd.hp-pcl","pcl"],["application/vnd.hp-pclxl","pclxl"],["application/vnd.hydrostatix.sof-data","sfd-hdstx"],["application/vnd.hzn-3d-crossword","x3d"],["application/vnd.ibm.minipay","mpy"],["application/vnd.ibm.modcap","afp"],["application/vnd.ibm.rights-management","irm"],["application/vnd.ibm.secure-container","sc"],["application/vnd.iccprofile","icc"],["application/vnd.igloader","igl"],["application/vnd.immervision-ivp","ivp"],["application/vnd.immervision-ivu","ivu"],["application/vnd.insors.igm","igm"],["application/vnd.intercon.formnet","xpw"],["application/vnd.intergeo","i2g"],["application/vnd.intu.qbo","qbo"],["application/vnd.intu.qfx","qfx"],["application/vnd.ipunplugged.rcprofile","rcprofile"],["application/vnd.irepository.package+xml","irp"],["application/vnd.is-xpr","xpr"],["application/vnd.isac.fcs","fcs"],["application/vnd.jam","jam"],["application/vnd.jcp.javame.midlet-rms","rms"],["application/vnd.jisp","jisp"],["application/vnd.joost.joda-archive","joda"],["application/vnd.kahootz","ktz"],["application/vnd.kde.karbon","karbon"],["application/vnd.kde.kchart","chrt"],["application/vnd.kde.kformula","kfo"],["application/vnd.kde.kivio","flw"],["application/vnd.kde.kontour","kon"],["application/vnd.kde.kpresenter","kpr"],["application/vnd.kde.kspread","ksp"],["application/vnd.kde.kword","kwd"],["application/vnd.kenameaapp","htke"],["application/vnd.kidspiration","kia"],["application/vnd.kinar","kne"],["application/vnd.koan","skp"],["application/vnd.kodak-descriptor","sse"],["application/vnd.las.las+xml","lasxml"],["application/vnd.llamagraphics.life-balance.desktop","lbd"],["application/vnd.llamagraphics.life-balance.exchange+xml","lbe"],["application/vnd.lotus-1-2-3","123"],["application/vnd.lotus-approach","apr"],["application/vnd.lotus-freelance","pre"],["application/vnd.lotus-notes","nsf"],["application/vnd.lotus-organizer","org"],["application/vnd.lotus-screencam","scm"],["application/vnd.lotus-wordpro","lwp"],["application/vnd.macports.portpkg","portpkg"],["application/vnd.mcd","mcd"],["application/vnd.medcalcdata","mc1"],["application/vnd.mediastation.cdkey","cdkey"],["application/vnd.mfer","mwf"],["application/vnd.mfmp","mfm"],["application/vnd.micrografx.flo","flo"],["application/vnd.micrografx.igx","igx"],["application/vnd.mif","mif"],["application/vnd.mobius.daf","daf"],["application/vnd.mobius.dis","dis"],["application/vnd.mobius.mbk","mbk"],["application/vnd.mobius.mqy","mqy"],["application/vnd.mobius.msl","msl"],["application/vnd.mobius.plc","plc"],["application/vnd.mobius.txf","txf"],["application/vnd.mophun.application","mpn"],["application/vnd.mophun.certificate","mpc"],["application/vnd.mozilla.xul+xml","xul"],["application/vnd.ms-artgalry","cil"],["application/vnd.ms-cab-compressed","cab"],["application/vnd.ms-excel",["xls","xla","xlc","xlm","xlt","xlw","xlb","xll"]],["application/vnd.ms-excel.addin.macroenabled.12","xlam"],["application/vnd.ms-excel.sheet.binary.macroenabled.12","xlsb"],["application/vnd.ms-excel.sheet.macroenabled.12","xlsm"],["application/vnd.ms-excel.template.macroenabled.12","xltm"],["application/vnd.ms-fontobject","eot"],["application/vnd.ms-htmlhelp","chm"],["application/vnd.ms-ims","ims"],["application/vnd.ms-lrm","lrm"],["application/vnd.ms-officetheme","thmx"],["application/vnd.ms-outlook","msg"],["application/vnd.ms-pki.certstore","sst"],["application/vnd.ms-pki.pko","pko"],["application/vnd.ms-pki.seccat","cat"],["application/vnd.ms-pki.stl","stl"],["application/vnd.ms-pkicertstore","sst"],["application/vnd.ms-pkiseccat","cat"],["application/vnd.ms-pkistl","stl"],["application/vnd.ms-powerpoint",["ppt","pot","pps","ppa","pwz"]],["application/vnd.ms-powerpoint.addin.macroenabled.12","ppam"],["application/vnd.ms-powerpoint.presentation.macroenabled.12","pptm"],["application/vnd.ms-powerpoint.slide.macroenabled.12","sldm"],["application/vnd.ms-powerpoint.slideshow.macroenabled.12","ppsm"],["application/vnd.ms-powerpoint.template.macroenabled.12","potm"],["application/vnd.ms-project","mpp"],["application/vnd.ms-word.document.macroenabled.12","docm"],["application/vnd.ms-word.template.macroenabled.12","dotm"],["application/vnd.ms-works",["wks","wcm","wdb","wps"]],["application/vnd.ms-wpl","wpl"],["application/vnd.ms-xpsdocument","xps"],["application/vnd.mseq","mseq"],["application/vnd.musician","mus"],["application/vnd.muvee.style","msty"],["application/vnd.neurolanguage.nlu","nlu"],["application/vnd.noblenet-directory","nnd"],["application/vnd.noblenet-sealer","nns"],["application/vnd.noblenet-web","nnw"],["application/vnd.nokia.configuration-message","ncm"],["application/vnd.nokia.n-gage.data","ngdat"],["application/vnd.nokia.n-gage.symbian.install","n-gage"],["application/vnd.nokia.radio-preset","rpst"],["application/vnd.nokia.radio-presets","rpss"],["application/vnd.nokia.ringing-tone","rng"],["application/vnd.novadigm.edm","edm"],["application/vnd.novadigm.edx","edx"],["application/vnd.novadigm.ext","ext"],["application/vnd.oasis.opendocument.chart","odc"],["application/vnd.oasis.opendocument.chart-template","otc"],["application/vnd.oasis.opendocument.database","odb"],["application/vnd.oasis.opendocument.formula","odf"],["application/vnd.oasis.opendocument.formula-template","odft"],["application/vnd.oasis.opendocument.graphics","odg"],["application/vnd.oasis.opendocument.graphics-template","otg"],["application/vnd.oasis.opendocument.image","odi"],["application/vnd.oasis.opendocument.image-template","oti"],["application/vnd.oasis.opendocument.presentation","odp"],["application/vnd.oasis.opendocument.presentation-template","otp"],["application/vnd.oasis.opendocument.spreadsheet","ods"],["application/vnd.oasis.opendocument.spreadsheet-template","ots"],["application/vnd.oasis.opendocument.text","odt"],["application/vnd.oasis.opendocument.text-master","odm"],["application/vnd.oasis.opendocument.text-template","ott"],["application/vnd.oasis.opendocument.text-web","oth"],["application/vnd.olpc-sugar","xo"],["application/vnd.oma.dd2+xml","dd2"],["application/vnd.openofficeorg.extension","oxt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","pptx"],["application/vnd.openxmlformats-officedocument.presentationml.slide","sldx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","ppsx"],["application/vnd.openxmlformats-officedocument.presentationml.template","potx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","xltx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","dotx"],["application/vnd.osgeo.mapguide.package","mgp"],["application/vnd.osgi.dp","dp"],["application/vnd.palm","pdb"],["application/vnd.pawaafile","paw"],["application/vnd.pg.format","str"],["application/vnd.pg.osasli","ei6"],["application/vnd.picsel","efif"],["application/vnd.pmi.widget","wg"],["application/vnd.pocketlearn","plf"],["application/vnd.powerbuilder6","pbd"],["application/vnd.previewsystems.box","box"],["application/vnd.proteus.magazine","mgz"],["application/vnd.publishare-delta-tree","qps"],["application/vnd.pvi.ptid1","ptid"],["application/vnd.quark.quarkxpress","qxd"],["application/vnd.realvnc.bed","bed"],["application/vnd.recordare.musicxml","mxl"],["application/vnd.recordare.musicxml+xml","musicxml"],["application/vnd.rig.cryptonote","cryptonote"],["application/vnd.rim.cod","cod"],["application/vnd.rn-realmedia","rm"],["application/vnd.rn-realplayer","rnx"],["application/vnd.route66.link66+xml","link66"],["application/vnd.sailingtracker.track","st"],["application/vnd.seemail","see"],["application/vnd.sema","sema"],["application/vnd.semd","semd"],["application/vnd.semf","semf"],["application/vnd.shana.informed.formdata","ifm"],["application/vnd.shana.informed.formtemplate","itp"],["application/vnd.shana.informed.interchange","iif"],["application/vnd.shana.informed.package","ipk"],["application/vnd.simtech-mindmapper","twd"],["application/vnd.smaf","mmf"],["application/vnd.smart.teacher","teacher"],["application/vnd.solent.sdkm+xml","sdkm"],["application/vnd.spotfire.dxp","dxp"],["application/vnd.spotfire.sfs","sfs"],["application/vnd.stardivision.calc","sdc"],["application/vnd.stardivision.draw","sda"],["application/vnd.stardivision.impress","sdd"],["application/vnd.stardivision.math","smf"],["application/vnd.stardivision.writer","sdw"],["application/vnd.stardivision.writer-global","sgl"],["application/vnd.stepmania.stepchart","sm"],["application/vnd.sun.xml.calc","sxc"],["application/vnd.sun.xml.calc.template","stc"],["application/vnd.sun.xml.draw","sxd"],["application/vnd.sun.xml.draw.template","std"],["application/vnd.sun.xml.impress","sxi"],["application/vnd.sun.xml.impress.template","sti"],["application/vnd.sun.xml.math","sxm"],["application/vnd.sun.xml.writer","sxw"],["application/vnd.sun.xml.writer.global","sxg"],["application/vnd.sun.xml.writer.template","stw"],["application/vnd.sus-calendar","sus"],["application/vnd.svd","svd"],["application/vnd.symbian.install","sis"],["application/vnd.syncml+xml","xsm"],["application/vnd.syncml.dm+wbxml","bdm"],["application/vnd.syncml.dm+xml","xdm"],["application/vnd.tao.intent-module-archive","tao"],["application/vnd.tmobile-livetv","tmo"],["application/vnd.trid.tpt","tpt"],["application/vnd.triscape.mxs","mxs"],["application/vnd.trueapp","tra"],["application/vnd.ufdl","ufd"],["application/vnd.uiq.theme","utz"],["application/vnd.umajin","umj"],["application/vnd.unity","unityweb"],["application/vnd.uoml+xml","uoml"],["application/vnd.vcx","vcx"],["application/vnd.visio","vsd"],["application/vnd.visionary","vis"],["application/vnd.vsf","vsf"],["application/vnd.wap.wbxml","wbxml"],["application/vnd.wap.wmlc","wmlc"],["application/vnd.wap.wmlscriptc","wmlsc"],["application/vnd.webturbo","wtb"],["application/vnd.wolfram.player","nbp"],["application/vnd.wordperfect","wpd"],["application/vnd.wqd","wqd"],["application/vnd.wt.stf","stf"],["application/vnd.xara",["web","xar"]],["application/vnd.xfdl","xfdl"],["application/vnd.yamaha.hv-dic","hvd"],["application/vnd.yamaha.hv-script","hvs"],["application/vnd.yamaha.hv-voice","hvp"],["application/vnd.yamaha.openscoreformat","osf"],["application/vnd.yamaha.openscoreformat.osfpvg+xml","osfpvg"],["application/vnd.yamaha.smaf-audio","saf"],["application/vnd.yamaha.smaf-phrase","spf"],["application/vnd.yellowriver-custom-menu","cmp"],["application/vnd.zul","zir"],["application/vnd.zzazz.deck+xml","zaz"],["application/vocaltec-media-desc","vmd"],["application/vocaltec-media-file","vmf"],["application/voicexml+xml","vxml"],["application/widget","wgt"],["application/winhlp","hlp"],["application/wordperfect",["wp","wp5","wp6","wpd"]],["application/wordperfect6.0",["w60","wp5"]],["application/wordperfect6.1","w61"],["application/wsdl+xml","wsdl"],["application/wspolicy+xml","wspolicy"],["application/x-123","wk1"],["application/x-7z-compressed","7z"],["application/x-abiword","abw"],["application/x-ace-compressed","ace"],["application/x-aim","aim"],["application/x-authorware-bin","aab"],["application/x-authorware-map","aam"],["application/x-authorware-seg","aas"],["application/x-bcpio","bcpio"],["application/x-binary","bin"],["application/x-binhex40","hqx"],["application/x-bittorrent","torrent"],["application/x-bsh",["bsh","sh","shar"]],["application/x-bytecode.elisp","elc"],["application/x-bytecode.python","pyc"],["application/x-bzip","bz"],["application/x-bzip2",["boz","bz2"]],["application/x-cdf","cdf"],["application/x-cdlink","vcd"],["application/x-chat",["cha","chat"]],["application/x-chess-pgn","pgn"],["application/x-cmu-raster","ras"],["application/x-cocoa","cco"],["application/x-compactpro","cpt"],["application/x-compress","z"],["application/x-compressed",["tgz","gz","z","zip"]],["application/x-conference","nsc"],["application/x-cpio","cpio"],["application/x-cpt","cpt"],["application/x-csh","csh"],["application/x-debian-package","deb"],["application/x-deepv","deepv"],["application/x-director",["dir","dcr","dxr"]],["application/x-doom","wad"],["application/x-dtbncx+xml","ncx"],["application/x-dtbook+xml","dtb"],["application/x-dtbresource+xml","res"],["application/x-dvi","dvi"],["application/x-elc","elc"],["application/x-envoy",["env","evy"]],["application/x-esrehber","es"],["application/x-excel",["xls","xla","xlb","xlc","xld","xlk","xll","xlm","xlt","xlv","xlw"]],["application/x-font-bdf","bdf"],["application/x-font-ghostscript","gsf"],["application/x-font-linux-psf","psf"],["application/x-font-otf","otf"],["application/x-font-pcf","pcf"],["application/x-font-snf","snf"],["application/x-font-ttf","ttf"],["application/x-font-type1","pfa"],["application/x-font-woff","woff"],["application/x-frame","mif"],["application/x-freelance","pre"],["application/x-futuresplash","spl"],["application/x-gnumeric","gnumeric"],["application/x-gsp","gsp"],["application/x-gss","gss"],["application/x-gtar","gtar"],["application/x-gzip",["gz","gzip"]],["application/x-hdf","hdf"],["application/x-helpfile",["help","hlp"]],["application/x-httpd-imap","imap"],["application/x-ima","ima"],["application/x-internet-signup",["ins","isp"]],["application/x-internett-signup","ins"],["application/x-inventor","iv"],["application/x-ip2","ip"],["application/x-iphone","iii"],["application/x-java-class","class"],["application/x-java-commerce","jcm"],["application/x-java-jnlp-file","jnlp"],["application/x-javascript","js"],["application/x-koan",["skd","skm","skp","skt"]],["application/x-ksh","ksh"],["application/x-latex",["latex","ltx"]],["application/x-lha","lha"],["application/x-lisp","lsp"],["application/x-livescreen","ivy"],["application/x-lotus","wq1"],["application/x-lotusscreencam","scm"],["application/x-lzh","lzh"],["application/x-lzx","lzx"],["application/x-mac-binhex40","hqx"],["application/x-macbinary","bin"],["application/x-magic-cap-package-1.0","mc$"],["application/x-mathcad","mcd"],["application/x-meme","mm"],["application/x-midi",["mid","midi"]],["application/x-mif","mif"],["application/x-mix-transfer","nix"],["application/x-mobipocket-ebook","prc"],["application/x-mplayer2","asx"],["application/x-ms-application","application"],["application/x-ms-wmd","wmd"],["application/x-ms-wmz","wmz"],["application/x-ms-xbap","xbap"],["application/x-msaccess","mdb"],["application/x-msbinder","obd"],["application/x-mscardfile","crd"],["application/x-msclip","clp"],["application/x-msdownload",["exe","dll"]],["application/x-msexcel",["xls","xla","xlw"]],["application/x-msmediaview",["mvb","m13","m14"]],["application/x-msmetafile","wmf"],["application/x-msmoney","mny"],["application/x-mspowerpoint","ppt"],["application/x-mspublisher","pub"],["application/x-msschedule","scd"],["application/x-msterminal","trm"],["application/x-mswrite","wri"],["application/x-navi-animation","ani"],["application/x-navidoc","nvd"],["application/x-navimap","map"],["application/x-navistyle","stl"],["application/x-netcdf",["cdf","nc"]],["application/x-newton-compatible-pkg","pkg"],["application/x-nokia-9000-communicator-add-on-software","aos"],["application/x-omc","omc"],["application/x-omcdatamaker","omcd"],["application/x-omcregerator","omcr"],["application/x-pagemaker",["pm4","pm5"]],["application/x-pcl","pcl"],["application/x-perfmon",["pma","pmc","pml","pmr","pmw"]],["application/x-pixclscript","plx"],["application/x-pkcs10","p10"],["application/x-pkcs12",["p12","pfx"]],["application/x-pkcs7-certificates",["p7b","spc"]],["application/x-pkcs7-certreqresp","p7r"],["application/x-pkcs7-mime",["p7m","p7c"]],["application/x-pkcs7-signature",["p7s","p7a"]],["application/x-pointplus","css"],["application/x-portable-anymap","pnm"],["application/x-project",["mpc","mpt","mpv","mpx"]],["application/x-qpro","wb1"],["application/x-rar-compressed","rar"],["application/x-rtf","rtf"],["application/x-sdp","sdp"],["application/x-sea","sea"],["application/x-seelogo","sl"],["application/x-sh","sh"],["application/x-shar",["shar","sh"]],["application/x-shockwave-flash","swf"],["application/x-silverlight-app","xap"],["application/x-sit","sit"],["application/x-sprite",["spr","sprite"]],["application/x-stuffit","sit"],["application/x-stuffitx","sitx"],["application/x-sv4cpio","sv4cpio"],["application/x-sv4crc","sv4crc"],["application/x-tar","tar"],["application/x-tbook",["sbk","tbk"]],["application/x-tcl","tcl"],["application/x-tex","tex"],["application/x-tex-tfm","tfm"],["application/x-texinfo",["texi","texinfo"]],["application/x-troff",["roff","t","tr"]],["application/x-troff-man","man"],["application/x-troff-me","me"],["application/x-troff-ms","ms"],["application/x-troff-msvideo","avi"],["application/x-ustar","ustar"],["application/x-visio",["vsd","vst","vsw"]],["application/x-vnd.audioexplosion.mzz","mzz"],["application/x-vnd.ls-xpix","xpix"],["application/x-vrml","vrml"],["application/x-wais-source",["src","wsrc"]],["application/x-winhelp","hlp"],["application/x-wintalk","wtk"],["application/x-world",["wrl","svr"]],["application/x-wpwin","wpd"],["application/x-wri","wri"],["application/x-x509-ca-cert",["cer","crt","der"]],["application/x-x509-user-cert","crt"],["application/x-xfig","fig"],["application/x-xpinstall","xpi"],["application/x-zip-compressed","zip"],["application/xcap-diff+xml","xdf"],["application/xenc+xml","xenc"],["application/xhtml+xml","xhtml"],["application/xml","xml"],["application/xml-dtd","dtd"],["application/xop+xml","xop"],["application/xslt+xml","xslt"],["application/xspf+xml","xspf"],["application/xv+xml","mxml"],["application/yang","yang"],["application/yin+xml","yin"],["application/ynd.ms-pkipko","pko"],["application/zip","zip"],["audio/adpcm","adp"],["audio/aiff",["aiff","aif","aifc"]],["audio/basic",["snd","au"]],["audio/it","it"],["audio/make",["funk","my","pfunk"]],["audio/make.my.funk","pfunk"],["audio/mid",["mid","rmi"]],["audio/midi",["midi","kar","mid"]],["audio/mod","mod"],["audio/mp4","mp4a"],["audio/mpeg",["mpga","mp3","m2a","mp2","mpa","mpg"]],["audio/mpeg3","mp3"],["audio/nspaudio",["la","lma"]],["audio/ogg","oga"],["audio/s3m","s3m"],["audio/tsp-audio","tsi"],["audio/tsplayer","tsp"],["audio/vnd.dece.audio","uva"],["audio/vnd.digital-winds","eol"],["audio/vnd.dra","dra"],["audio/vnd.dts","dts"],["audio/vnd.dts.hd","dtshd"],["audio/vnd.lucent.voice","lvp"],["audio/vnd.ms-playready.media.pya","pya"],["audio/vnd.nuera.ecelp4800","ecelp4800"],["audio/vnd.nuera.ecelp7470","ecelp7470"],["audio/vnd.nuera.ecelp9600","ecelp9600"],["audio/vnd.qcelp","qcp"],["audio/vnd.rip","rip"],["audio/voc","voc"],["audio/voxware","vox"],["audio/wav","wav"],["audio/webm","weba"],["audio/x-aac","aac"],["audio/x-adpcm","snd"],["audio/x-aiff",["aiff","aif","aifc"]],["audio/x-au","au"],["audio/x-gsm",["gsd","gsm"]],["audio/x-jam","jam"],["audio/x-liveaudio","lam"],["audio/x-mid",["mid","midi"]],["audio/x-midi",["midi","mid"]],["audio/x-mod","mod"],["audio/x-mpeg","mp2"],["audio/x-mpeg-3","mp3"],["audio/x-mpegurl","m3u"],["audio/x-mpequrl","m3u"],["audio/x-ms-wax","wax"],["audio/x-ms-wma","wma"],["audio/x-nspaudio",["la","lma"]],["audio/x-pn-realaudio",["ra","ram","rm","rmm","rmp"]],["audio/x-pn-realaudio-plugin",["ra","rmp","rpm"]],["audio/x-psid","sid"],["audio/x-realaudio","ra"],["audio/x-twinvq","vqf"],["audio/x-twinvq-plugin",["vqe","vql"]],["audio/x-vnd.audioexplosion.mjuicemediafile","mjf"],["audio/x-voc","voc"],["audio/x-wav","wav"],["audio/xm","xm"],["chemical/x-cdx","cdx"],["chemical/x-cif","cif"],["chemical/x-cmdf","cmdf"],["chemical/x-cml","cml"],["chemical/x-csml","csml"],["chemical/x-pdb",["pdb","xyz"]],["chemical/x-xyz","xyz"],["drawing/x-dwf","dwf"],["i-world/i-vrml","ivr"],["image/bmp",["bmp","bm"]],["image/cgm","cgm"],["image/cis-cod","cod"],["image/cmu-raster",["ras","rast"]],["image/fif","fif"],["image/florian",["flo","turbot"]],["image/g3fax","g3"],["image/gif","gif"],["image/ief",["ief","iefs"]],["image/jpeg",["jpeg","jpe","jpg","jfif","jfif-tbnl"]],["image/jutvision","jut"],["image/ktx","ktx"],["image/naplps",["nap","naplps"]],["image/pict",["pic","pict"]],["image/pipeg","jfif"],["image/pjpeg",["jfif","jpe","jpeg","jpg"]],["image/png",["png","x-png"]],["image/prs.btif","btif"],["image/svg+xml","svg"],["image/tiff",["tif","tiff"]],["image/vasa","mcf"],["image/vnd.adobe.photoshop","psd"],["image/vnd.dece.graphic","uvi"],["image/vnd.djvu","djvu"],["image/vnd.dvb.subtitle","sub"],["image/vnd.dwg",["dwg","dxf","svf"]],["image/vnd.dxf","dxf"],["image/vnd.fastbidsheet","fbs"],["image/vnd.fpx","fpx"],["image/vnd.fst","fst"],["image/vnd.fujixerox.edmics-mmr","mmr"],["image/vnd.fujixerox.edmics-rlc","rlc"],["image/vnd.ms-modi","mdi"],["image/vnd.net-fpx",["fpx","npx"]],["image/vnd.rn-realflash","rf"],["image/vnd.rn-realpix","rp"],["image/vnd.wap.wbmp","wbmp"],["image/vnd.xiff","xif"],["image/webp","webp"],["image/x-cmu-raster","ras"],["image/x-cmx","cmx"],["image/x-dwg",["dwg","dxf","svf"]],["image/x-freehand","fh"],["image/x-icon","ico"],["image/x-jg","art"],["image/x-jps","jps"],["image/x-niff",["niff","nif"]],["image/x-pcx","pcx"],["image/x-pict",["pct","pic"]],["image/x-portable-anymap","pnm"],["image/x-portable-bitmap","pbm"],["image/x-portable-graymap","pgm"],["image/x-portable-greymap","pgm"],["image/x-portable-pixmap","ppm"],["image/x-quicktime",["qif","qti","qtif"]],["image/x-rgb","rgb"],["image/x-tiff",["tif","tiff"]],["image/x-windows-bmp","bmp"],["image/x-xbitmap","xbm"],["image/x-xbm","xbm"],["image/x-xpixmap",["xpm","pm"]],["image/x-xwd","xwd"],["image/x-xwindowdump","xwd"],["image/xbm","xbm"],["image/xpm","xpm"],["message/rfc822",["eml","mht","mhtml","nws","mime"]],["model/iges",["iges","igs"]],["model/mesh","msh"],["model/vnd.collada+xml","dae"],["model/vnd.dwf","dwf"],["model/vnd.gdl","gdl"],["model/vnd.gtw","gtw"],["model/vnd.mts","mts"],["model/vnd.vtu","vtu"],["model/vrml",["vrml","wrl","wrz"]],["model/x-pov","pov"],["multipart/x-gzip","gzip"],["multipart/x-ustar","ustar"],["multipart/x-zip","zip"],["music/crescendo",["mid","midi"]],["music/x-karaoke","kar"],["paleovu/x-pv","pvu"],["text/asp","asp"],["text/calendar","ics"],["text/css","css"],["text/csv","csv"],["text/ecmascript","js"],["text/h323","323"],["text/html",["html","htm","stm","acgi","htmls","htx","shtml"]],["text/iuls","uls"],["text/javascript","js"],["text/mcf","mcf"],["text/n3","n3"],["text/pascal","pas"],["text/plain",["txt","bas","c","h","c++","cc","com","conf","cxx","def","f","f90","for","g","hh","idc","jav","java","list","log","lst","m","mar","pl","sdml","text"]],["text/plain-bas","par"],["text/prs.lines.tag","dsc"],["text/richtext",["rtx","rt","rtf"]],["text/scriplet","wsc"],["text/scriptlet","sct"],["text/sgml",["sgm","sgml"]],["text/tab-separated-values","tsv"],["text/troff","t"],["text/turtle","ttl"],["text/uri-list",["uni","unis","uri","uris"]],["text/vnd.abc","abc"],["text/vnd.curl","curl"],["text/vnd.curl.dcurl","dcurl"],["text/vnd.curl.mcurl","mcurl"],["text/vnd.curl.scurl","scurl"],["text/vnd.fly","fly"],["text/vnd.fmi.flexstor","flx"],["text/vnd.graphviz","gv"],["text/vnd.in3d.3dml","3dml"],["text/vnd.in3d.spot","spot"],["text/vnd.rn-realtext","rt"],["text/vnd.sun.j2me.app-descriptor","jad"],["text/vnd.wap.wml","wml"],["text/vnd.wap.wmlscript","wmls"],["text/webviewhtml","htt"],["text/x-asm",["asm","s"]],["text/x-audiosoft-intra","aip"],["text/x-c",["c","cc","cpp"]],["text/x-component","htc"],["text/x-fortran",["for","f","f77","f90"]],["text/x-h",["h","hh"]],["text/x-java-source",["java","jav"]],["text/x-java-source,java","java"],["text/x-la-asf","lsx"],["text/x-m","m"],["text/x-pascal","p"],["text/x-script","hlb"],["text/x-script.csh","csh"],["text/x-script.elisp","el"],["text/x-script.guile","scm"],["text/x-script.ksh","ksh"],["text/x-script.lisp","lsp"],["text/x-script.perl","pl"],["text/x-script.perl-module","pm"],["text/x-script.phyton","py"],["text/x-script.rexx","rexx"],["text/x-script.scheme","scm"],["text/x-script.sh","sh"],["text/x-script.tcl","tcl"],["text/x-script.tcsh","tcsh"],["text/x-script.zsh","zsh"],["text/x-server-parsed-html",["shtml","ssi"]],["text/x-setext","etx"],["text/x-sgml",["sgm","sgml"]],["text/x-speech",["spc","talk"]],["text/x-uil","uil"],["text/x-uuencode",["uu","uue"]],["text/x-vcalendar","vcs"],["text/x-vcard","vcf"],["text/xml","xml"],["video/3gpp","3gp"],["video/3gpp2","3g2"],["video/animaflex","afl"],["video/avi","avi"],["video/avs-video","avs"],["video/dl","dl"],["video/fli","fli"],["video/gl","gl"],["video/h261","h261"],["video/h263","h263"],["video/h264","h264"],["video/jpeg","jpgv"],["video/jpm","jpm"],["video/mj2","mj2"],["video/mp4","mp4"],["video/mpeg",["mpeg","mp2","mpa","mpe","mpg","mpv2","m1v","m2v","mp3"]],["video/msvideo","avi"],["video/ogg","ogv"],["video/quicktime",["mov","qt","moov"]],["video/vdo","vdo"],["video/vivo",["viv","vivo"]],["video/vnd.dece.hd","uvh"],["video/vnd.dece.mobile","uvm"],["video/vnd.dece.pd","uvp"],["video/vnd.dece.sd","uvs"],["video/vnd.dece.video","uvv"],["video/vnd.fvt","fvt"],["video/vnd.mpegurl","mxu"],["video/vnd.ms-playready.media.pyv","pyv"],["video/vnd.rn-realvideo","rv"],["video/vnd.uvvu.mp4","uvu"],["video/vnd.vivo",["viv","vivo"]],["video/vosaic","vos"],["video/webm","webm"],["video/x-amt-demorun","xdr"],["video/x-amt-showrun","xsr"],["video/x-atomic3d-feature","fmf"],["video/x-dl","dl"],["video/x-dv",["dif","dv"]],["video/x-f4v","f4v"],["video/x-fli","fli"],["video/x-flv","flv"],["video/x-gl","gl"],["video/x-isvideo","isu"],["video/x-la-asf",["lsf","lsx"]],["video/x-m4v","m4v"],["video/x-motion-jpeg","mjpg"],["video/x-mpeg",["mp3","mp2"]],["video/x-mpeq2a","mp2"],["video/x-ms-asf",["asf","asr","asx"]],["video/x-ms-asf-plugin","asx"],["video/x-ms-wm","wm"],["video/x-ms-wmv","wmv"],["video/x-ms-wmx","wmx"],["video/x-ms-wvx","wvx"],["video/x-msvideo","avi"],["video/x-qtc","qtc"],["video/x-scm","scm"],["video/x-sgi-movie",["movie","mv"]],["windows/metafile","wmf"],["www/mime","mime"],["x-conference/x-cooltalk","ice"],["x-music/x-midi",["mid","midi"]],["x-world/x-3dmf",["3dm","3dmf","qd3","qd3d"]],["x-world/x-svr","svr"],["x-world/x-vrml",["flr","vrml","wrl","wrz","xaf","xof"]],["x-world/x-vrt","vrt"],["xgl/drawing","xgz"],["xgl/movie","xmz"]]),e9=new Map([["123","application/vnd.lotus-1-2-3"],["323","text/h323"],["*","application/octet-stream"],["3dm","x-world/x-3dmf"],["3dmf","x-world/x-3dmf"],["3dml","text/vnd.in3d.3dml"],["3g2","video/3gpp2"],["3gp","video/3gpp"],["7z","application/x-7z-compressed"],["a","application/octet-stream"],["aab","application/x-authorware-bin"],["aac","audio/x-aac"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abc","text/vnd.abc"],["abw","application/x-abiword"],["ac","application/pkix-attr-cert"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acgi","text/html"],["acu","application/vnd.acucobol"],["acx","application/internet-property-stream"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afl","video/animaflex"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/postscript"],["aif",["audio/aiff","audio/x-aiff"]],["aifc",["audio/aiff","audio/x-aiff"]],["aiff",["audio/aiff","audio/x-aiff"]],["aim","application/x-aim"],["aip","text/x-audiosoft-intra"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["ani","application/x-navi-animation"],["aos","application/x-nokia-9000-communicator-add-on-software"],["apk","application/vnd.android.package-archive"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["aps","application/mime"],["arc","application/octet-stream"],["arj",["application/arj","application/octet-stream"]],["art","image/x-jg"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asp","text/asp"],["asr","video/x-ms-asf"],["asx",["video/x-ms-asf","application/x-mplayer2","video/x-ms-asf-plugin"]],["atc","application/vnd.acucorp"],["atomcat","application/atomcat+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au",["audio/basic","audio/x-au"]],["avi",["video/avi","video/msvideo","application/x-troff-msvideo","video/x-msvideo"]],["avs","video/avs-video"],["aw","application/applixware"],["axs","application/olescript"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azw","application/vnd.amazon.ebook"],["bas","text/plain"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin",["application/octet-stream","application/mac-binary","application/macbinary","application/x-macbinary","application/x-binary"]],["bm","image/bmp"],["bmi","application/vnd.bmi"],["bmp",["image/bmp","image/x-windows-bmp"]],["boo","application/book"],["book","application/book"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bsh","application/x-bsh"],["btif","image/prs.btif"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c",["text/plain","text/x-c"]],["c++","text/plain"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["c4g","application/vnd.clonk.c4group"],["cab","application/vnd.ms-cab-compressed"],["car","application/vnd.curl.car"],["cat",["application/vnd.ms-pkiseccat","application/vnd.ms-pki.seccat"]],["cc",["text/plain","text/x-c"]],["ccad","application/clariscad"],["cco","application/x-cocoa"],["ccxml","application/ccxml+xml,"],["cdbcmsg","application/vnd.contact.cmsg"],["cdf",["application/cdf","application/x-cdf","application/x-netcdf"]],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer",["application/pkix-cert","application/x-x509-ca-cert"]],["cgm","image/cgm"],["cha","application/x-chat"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cla","application/vnd.claymore"],["class",["application/octet-stream","application/java","application/java-byte-code","application/java-vm","application/x-java-class"]],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod",["image/cis-cod","application/vnd.rim.cod"]],["com",["application/octet-stream","text/plain"]],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt",["application/mac-compactpro","application/x-compactpro","application/x-cpt"]],["crd","application/x-mscardfile"],["crl",["application/pkix-crl","application/pkcs-crl"]],["crt",["application/pkix-cert","application/x-x509-user-cert","application/x-x509-ca-cert"]],["cryptonote","application/vnd.rig.cryptonote"],["csh",["text/x-script.csh","application/x-csh"]],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["css",["text/css","application/x-pointplus"]],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxx","text/plain"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["davmount","application/davmount+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["deb","application/x-debian-package"],["deepv","application/x-deepv"],["def","text/plain"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dif","video/x-dv"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["djvu","image/vnd.djvu"],["dl",["video/dl","video/x-dl"]],["dll","application/x-msdownload"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.document.macroenabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroenabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp",["application/commonground","application/vnd.osgi.dp"]],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drw","application/drafting"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dv","video/x-dv"],["dvi","application/x-dvi"],["dwf",["model/vnd.dwf","drawing/x-dwf"]],["dwg",["application/acad","image/vnd.dwg","image/x-dwg"]],["dxf",["application/dxf","image/vnd.dwg","image/vnd.dxf","image/x-dwg"]],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["el","text/x-script.elisp"],["elc",["application/x-elc","application/x-bytecode.elisp"]],["eml","message/rfc822"],["emma","application/emma+xml"],["env","application/x-envoy"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es",["application/ecmascript","application/x-esrehber"]],["es3","application/vnd.eszigno3+xml"],["esf","application/vnd.epson.esf"],["etx","text/x-setext"],["evy",["application/envoy","application/x-envoy"]],["exe",["application/octet-stream","application/x-msdownload"]],["exi","application/exi"],["ext","application/vnd.novadigm.ext"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f",["text/plain","text/x-fortran"]],["f4v","video/x-f4v"],["f77","text/x-fortran"],["f90",["text/plain","text/x-fortran"]],["fbs","image/vnd.fastbidsheet"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fh","image/x-freehand"],["fif",["application/fractals","image/fif"]],["fig","application/x-xfig"],["fli",["video/fli","video/x-fli"]],["flo",["image/florian","application/vnd.micrografx.flo"]],["flr","x-world/x-vrml"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fmf","video/x-atomic3d-feature"],["fnc","application/vnd.frogans.fnc"],["for",["text/plain","text/x-fortran"]],["fpx",["image/vnd.fpx","image/vnd.net-fpx"]],["frl","application/freeloader"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["funk","audio/make"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g","text/plain"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gdl","model/vnd.gdl"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["gl",["video/gl","video/x-gl"]],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gph","application/vnd.flographit"],["gqf","application/vnd.grafeq"],["gram","application/srgs"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsd","audio/x-gsm"],["gsf","application/x-font-ghostscript"],["gsm","audio/x-gsm"],["gsp","application/x-gsp"],["gss","application/x-gss"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxt","application/vnd.geonext"],["gz",["application/x-gzip","application/x-compressed"]],["gzip",["multipart/x-gzip","application/x-gzip"]],["h",["text/plain","text/x-h"]],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hdf","application/x-hdf"],["help","application/x-helpfile"],["hgl","application/vnd.hp-hpgl"],["hh",["text/plain","text/x-h"]],["hlb","text/x-script"],["hlp",["application/winhlp","application/hlp","application/x-helpfile","application/x-winhelp"]],["hpg","application/vnd.hp-hpgl"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx",["application/mac-binhex40","application/binhex","application/binhex4","application/mac-binhex","application/x-binhex40","application/x-mac-binhex40"]],["hta","application/hta"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["htmls","text/html"],["htt","text/webviewhtml"],["htx","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["ico","image/x-icon"],["ics","text/calendar"],["idc","text/plain"],["ief","image/ief"],["iefs","image/ief"],["ifm","application/vnd.shana.informed.formdata"],["iges",["application/iges","model/iges"]],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs",["application/iges","model/iges"]],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["iii","application/x-iphone"],["ima","application/x-ima"],["imap","application/x-httpd-imap"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["inf","application/inf"],["ins",["application/x-internet-signup","application/x-internett-signup"]],["ip","application/x-ip2"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["isp","application/x-internet-signup"],["isu","video/x-isvideo"],["it","audio/it"],["itp","application/vnd.shana.informed.formtemplate"],["iv","application/x-inventor"],["ivp","application/vnd.immervision-ivp"],["ivr","i-world/i-vrml"],["ivu","application/vnd.immervision-ivu"],["ivy","application/x-livescreen"],["jad","text/vnd.sun.j2me.app-descriptor"],["jam",["application/vnd.jam","audio/x-jam"]],["jar","application/java-archive"],["jav",["text/plain","text/x-java-source"]],["java",["text/plain","text/x-java-source,java","text/x-java-source"]],["jcm","application/x-java-commerce"],["jfif",["image/pipeg","image/jpeg","image/pjpeg"]],["jfif-tbnl","image/jpeg"],["jisp","application/vnd.jisp"],["jlt","application/vnd.hp-jlyt"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jpe",["image/jpeg","image/pjpeg"]],["jpeg",["image/jpeg","image/pjpeg"]],["jpg",["image/jpeg","image/pjpeg"]],["jpgv","video/jpeg"],["jpm","video/jpm"],["jps","image/x-jps"],["js",["application/javascript","application/ecmascript","text/javascript","text/ecmascript","application/x-javascript"]],["json","application/json"],["jut","image/jutvision"],["kar",["audio/midi","music/x-karaoke"]],["karbon","application/vnd.kde.karbon"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["ksh",["application/x-ksh","text/x-script.ksh"]],["ksp","application/vnd.kde.kspread"],["ktx","image/ktx"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["la",["audio/nspaudio","audio/x-nspaudio"]],["lam","audio/x-liveaudio"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["lha",["application/octet-stream","application/lha","application/x-lha"]],["lhx","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["lma",["audio/nspaudio","audio/x-nspaudio"]],["log","text/plain"],["lrm","application/vnd.ms-lrm"],["lsf","video/x-la-asf"],["lsp",["application/x-lisp","text/x-script.lisp"]],["lst","text/plain"],["lsx",["video/x-la-asf","text/x-la-asf"]],["ltf","application/vnd.frogans.ltf"],["ltx","application/x-latex"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh",["application/octet-stream","application/x-lzh"]],["lzx",["application/lzx","application/octet-stream","application/x-lzx"]],["m",["text/plain","text/x-m"]],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m1v","video/mpeg"],["m21","application/mp21"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3u",["audio/x-mpegurl","audio/x-mpequrl"]],["m3u8","application/vnd.apple.mpegurl"],["m4v","video/x-m4v"],["ma","application/mathematica"],["mads","application/mads+xml"],["mag","application/vnd.ecowin.chart"],["man","application/x-troff-man"],["map","application/x-navimap"],["mar","text/plain"],["mathml","application/mathml+xml"],["mbd","application/mbedlet"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc$","application/x-magic-cap-package-1.0"],["mc1","application/vnd.medcalcdata"],["mcd",["application/mcad","application/vnd.mcd","application/x-mathcad"]],["mcf",["image/vasa","text/mcf"]],["mcp","application/netmc"],["mcurl","text/vnd.curl.mcurl"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["me","application/x-troff-me"],["meta4","application/metalink4+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mht","message/rfc822"],["mhtml","message/rfc822"],["mid",["audio/mid","audio/midi","music/crescendo","x-music/x-midi","audio/x-midi","application/x-midi","audio/x-mid"]],["midi",["audio/midi","music/crescendo","x-music/x-midi","audio/x-midi","application/x-midi","audio/x-mid"]],["mif",["application/vnd.mif","application/x-mif","application/x-frame"]],["mime",["message/rfc822","www/mime"]],["mj2","video/mj2"],["mjf","audio/x-vnd.audioexplosion.mjuicemediafile"],["mjpg","video/x-motion-jpeg"],["mlp","application/vnd.dolby.mlp"],["mm",["application/base64","application/x-meme"]],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mme","application/base64"],["mmf","application/vnd.smaf"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mny","application/x-msmoney"],["mod",["audio/mod","audio/x-mod"]],["mods","application/mods+xml"],["moov","video/quicktime"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2",["video/mpeg","audio/mpeg","video/x-mpeg","audio/x-mpeg","video/x-mpeq2a"]],["mp3",["audio/mpeg","audio/mpeg3","video/mpeg","audio/x-mpeg-3","video/x-mpeg"]],["mp4",["video/mp4","application/mp4"]],["mp4a","audio/mp4"],["mpa",["video/mpeg","audio/mpeg"]],["mpc",["application/vnd.mophun.certificate","application/x-project"]],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg",["video/mpeg","audio/mpeg"]],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/x-project"],["mpv","application/x-project"],["mpv2","video/mpeg"],["mpx","application/x-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","application/x-troff-ms"],["mscml","application/mediaservercontrol+xml"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msl","application/vnd.mobius.msl"],["msty","application/vnd.muvee.style"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musicxml","application/vnd.recordare.musicxml+xml"],["mv","video/x-sgi-movie"],["mvb","application/x-msmediaview"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["my","audio/make"],["mzz","application/x-vnd.audioexplosion.mzz"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nap","image/naplps"],["naplps","image/naplps"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncm","application/vnd.nokia.configuration-message"],["ncx","application/x-dtbncx+xml"],["ngdat","application/vnd.nokia.n-gage.data"],["nif","image/x-niff"],["niff","image/x-niff"],["nix","application/x-mix-transfer"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nvd","application/x-navidoc"],["nws","message/rfc822"],["o","application/octet-stream"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omc","application/x-omc"],["omcd","application/x-omcdatamaker"],["omcr","application/x-omcregerator"],["onetoc","application/onenote"],["opf","application/oebps-package+xml"],["org","application/vnd.lotus-organizer"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","application/x-font-otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p10",["application/pkcs10","application/x-pkcs10"]],["p12",["application/pkcs-12","application/x-pkcs12"]],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c",["application/pkcs7-mime","application/x-pkcs7-mime"]],["p7m",["application/pkcs7-mime","application/x-pkcs7-mime"]],["p7r","application/x-pkcs7-certreqresp"],["p7s",["application/pkcs7-signature","application/x-pkcs7-signature"]],["p8","application/pkcs8"],["par","text/plain-bas"],["part","application/pro_eng"],["pas","text/pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcf","application/x-font-pcf"],["pcl",["application/vnd.hp-pcl","application/x-pcl"]],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb",["application/vnd.palm","chemical/x-pdb"]],["pdf","application/pdf"],["pfa","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfunk",["audio/make","audio/make.my.funk"]],["pfx","application/x-pkcs12"],["pgm",["image/x-portable-graymap","image/x-portable-greymap"]],["pgn","application/x-chess-pgn"],["pgp","application/pgp-signature"],["pic",["image/pict","image/x-pict"]],["pict","image/pict"],["pkg","application/x-newton-compatible-pkg"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pko",["application/ynd.ms-pkipko","application/vnd.ms-pki.pko"]],["pl",["text/plain","text/x-script.perl"]],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["plx","application/x-pixclscript"],["pm",["text/x-script.perl-module","image/x-xpixmap"]],["pm4","application/x-pagemaker"],["pm5","application/x-pagemaker"],["pma","application/x-perfmon"],["pmc","application/x-perfmon"],["pml",["application/vnd.ctc-posml","application/x-perfmon"]],["pmr","application/x-perfmon"],["pmw","application/x-perfmon"],["png","image/png"],["pnm",["application/x-portable-anymap","image/x-portable-anymap"]],["portpkg","application/vnd.macports.portpkg"],["pot",["application/vnd.ms-powerpoint","application/mspowerpoint"]],["potm","application/vnd.ms-powerpoint.template.macroenabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["pov","model/x-pov"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroenabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps",["application/vnd.ms-powerpoint","application/mspowerpoint"]],["ppsm","application/vnd.ms-powerpoint.slideshow.macroenabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt",["application/vnd.ms-powerpoint","application/mspowerpoint","application/powerpoint","application/x-mspowerpoint"]],["pptm","application/vnd.ms-powerpoint.presentation.macroenabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["ppz","application/mspowerpoint"],["prc","application/x-mobipocket-ebook"],["pre",["application/vnd.lotus-freelance","application/x-freelance"]],["prf","application/pics-rules"],["prt","application/pro_eng"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd",["application/octet-stream","image/vnd.adobe.photoshop"]],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pvu","paleovu/x-pv"],["pwn","application/vnd.3m.post-it-notes"],["pwz","application/vnd.ms-powerpoint"],["py","text/x-script.phyton"],["pya","audio/vnd.ms-playready.media.pya"],["pyc","application/x-bytecode.python"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qcp","audio/vnd.qcelp"],["qd3","x-world/x-3dmf"],["qd3d","x-world/x-3dmf"],["qfx","application/vnd.intu.qfx"],["qif","image/x-quicktime"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qtc","video/x-qtc"],["qti","image/x-quicktime"],["qtif","image/x-quicktime"],["qxd","application/vnd.quark.quarkxpress"],["ra",["audio/x-realaudio","audio/x-pn-realaudio","audio/x-pn-realaudio-plugin"]],["ram","audio/x-pn-realaudio"],["rar","application/x-rar-compressed"],["ras",["image/cmu-raster","application/x-cmu-raster","image/x-cmu-raster"]],["rast","image/cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rexx","text/x-script.rexx"],["rf","image/vnd.rn-realflash"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm",["application/vnd.rn-realmedia","audio/x-pn-realaudio"]],["rmi","audio/mid"],["rmm","audio/x-pn-realaudio"],["rmp",["audio/x-pn-realaudio-plugin","audio/x-pn-realaudio"]],["rms","application/vnd.jcp.javame.midlet-rms"],["rnc","application/relax-ng-compact-syntax"],["rng",["application/ringing-tones","application/vnd.nokia.ringing-tone"]],["rnx","application/vnd.rn-realplayer"],["roff","application/x-troff"],["rp","image/vnd.rn-realpix"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsd","application/rsd+xml"],["rt",["text/richtext","text/vnd.rn-realtext"]],["rtf",["application/rtf","text/richtext","application/x-rtf"]],["rtx",["text/richtext","application/rtf"]],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["saveme","application/octet-stream"],["sbk","application/x-tbook"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm",["application/vnd.lotus-screencam","video/x-scm","text/x-script.guile","application/x-lotusscreencam","text/x-script.scheme"]],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["sct","text/scriptlet"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkm","application/vnd.solent.sdkm+xml"],["sdml","text/plain"],["sdp",["application/sdp","application/x-sdp"]],["sdr","application/sounder"],["sdw","application/vnd.stardivision.writer"],["sea",["application/sea","application/x-sea"]],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["ser","application/java-serialized-object"],["set","application/set"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sgl","application/vnd.stardivision.writer-global"],["sgm",["text/sgml","text/x-sgml"]],["sgml",["text/sgml","text/x-sgml"]],["sh",["application/x-shar","application/x-bsh","application/x-sh","text/x-script.sh"]],["shar",["application/x-bsh","application/x-shar"]],["shf","application/shf+xml"],["shtml",["text/html","text/x-server-parsed-html"]],["sid","audio/x-psid"],["sis","application/vnd.symbian.install"],["sit",["application/x-stuffit","application/x-sit"]],["sitx","application/x-stuffitx"],["skd","application/x-koan"],["skm","application/x-koan"],["skp",["application/vnd.koan","application/x-koan"]],["skt","application/x-koan"],["sl","application/x-seelogo"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi",["application/smil","application/smil+xml"]],["smil","application/smil"],["snd",["audio/basic","audio/x-adpcm"]],["snf","application/x-font-snf"],["sol","application/solids"],["spc",["text/x-speech","application/x-pkcs7-certificates"]],["spf","application/vnd.yamaha.smaf-phrase"],["spl",["application/futuresplash","application/x-futuresplash"]],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spr","application/x-sprite"],["sprite","application/x-sprite"],["src","application/x-wais-source"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssi","text/x-server-parsed-html"],["ssm","application/streamingmedia"],["ssml","application/ssml+xml"],["sst",["application/vnd.ms-pkicertstore","application/vnd.ms-pki.certstore"]],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["step","application/step"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl",["application/vnd.ms-pkistl","application/sla","application/vnd.ms-pki.stl","application/x-navistyle"]],["stm","text/html"],["stp","application/step"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["sub","image/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svf",["image/vnd.dwg","image/x-dwg"]],["svg","image/svg+xml"],["svr",["x-world/x-svr","application/x-world"]],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t",["text/troff","application/x-troff"]],["talk","text/x-speech"],["tao","application/vnd.tao.intent-module-archive"],["tar","application/x-tar"],["tbk",["application/toolbook","application/x-tbook"]],["tcap","application/vnd.3gpp2.tcap"],["tcl",["text/x-script.tcl","application/x-tcl"]],["tcsh","text/x-script.tcsh"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text",["application/plain","text/plain"]],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tgz",["application/gnutar","application/x-compressed"]],["thmx","application/vnd.ms-officetheme"],["tif",["image/tiff","image/x-tiff"]],["tiff",["image/tiff","image/x-tiff"]],["tmo","application/vnd.tmobile-livetv"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","application/x-troff"],["tra","application/vnd.trueapp"],["trm","application/x-msterminal"],["tsd","application/timestamped-data"],["tsi","audio/tsp-audio"],["tsp",["application/dsptype","audio/tsplayer"]],["tsv","text/tab-separated-values"],["ttf","application/x-font-ttf"],["ttl","text/turtle"],["turbot","image/florian"],["twd","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["ufd","application/vnd.ufdl"],["uil","text/x-uil"],["uls","text/iuls"],["umj","application/vnd.umajin"],["uni","text/uri-list"],["unis","text/uri-list"],["unityweb","application/vnd.unity"],["unv","application/i-deas"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["ustar",["application/x-ustar","multipart/x-ustar"]],["utz","application/vnd.uiq.theme"],["uu",["application/octet-stream","text/x-uuencode"]],["uue","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vda","application/vda"],["vdo","video/vdo"],["vew","application/groupwise"],["vis","application/vnd.visionary"],["viv",["video/vivo","video/vnd.vivo"]],["vivo",["video/vivo","video/vnd.vivo"]],["vmd","application/vocaltec-media-desc"],["vmf","application/vocaltec-media-file"],["voc",["audio/voc","audio/x-voc"]],["vos","video/vosaic"],["vox","audio/voxware"],["vqe","audio/x-twinvq-plugin"],["vqf","audio/x-twinvq"],["vql","audio/x-twinvq-plugin"],["vrml",["model/vrml","x-world/x-vrml","application/x-vrml"]],["vrt","x-world/x-vrt"],["vsd",["application/vnd.visio","application/x-visio"]],["vsf","application/vnd.vsf"],["vst","application/x-visio"],["vsw","application/x-visio"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w60","application/wordperfect6.0"],["w61","application/wordperfect6.1"],["w6w","application/msword"],["wad","application/x-doom"],["wav",["audio/wav","audio/x-wav"]],["wax","audio/x-ms-wax"],["wb1","application/x-qpro"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/vnd.wap.wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["web","application/vnd.xara"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wiz","application/msword"],["wk1","application/x-123"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf",["windows/metafile","application/x-msmetafile"]],["wml","text/vnd.wap.wml"],["wmlc","application/vnd.wap.wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-ms-wmz"],["woff","application/x-font-woff"],["word","application/msword"],["wp","application/wordperfect"],["wp5",["application/wordperfect","application/wordperfect6.0"]],["wp6","application/wordperfect"],["wpd",["application/wordperfect","application/vnd.wordperfect","application/x-wpwin"]],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wq1","application/x-lotus"],["wqd","application/vnd.wqd"],["wri",["application/mswrite","application/x-wri","application/x-mswrite"]],["wrl",["model/vrml","x-world/x-vrml","application/x-world"]],["wrz",["model/vrml","x-world/x-vrml"]],["wsc","text/scriplet"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wsrc","application/x-wais-source"],["wtb","application/vnd.webturbo"],["wtk","application/x-wintalk"],["wvx","video/x-ms-wvx"],["x-png","image/png"],["x3d","application/vnd.hzn-3d-crossword"],["xaf","x-world/x-vrml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm",["image/xbm","image/x-xbm","image/x-xbitmap"]],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdr","video/x-amt-demorun"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xgz","xgl/drawing"],["xhtml","application/xhtml+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla",["application/vnd.ms-excel","application/excel","application/x-msexcel","application/x-excel"]],["xlam","application/vnd.ms-excel.addin.macroenabled.12"],["xlb",["application/excel","application/vnd.ms-excel","application/x-excel"]],["xlc",["application/vnd.ms-excel","application/excel","application/x-excel"]],["xld",["application/excel","application/x-excel"]],["xlk",["application/excel","application/x-excel"]],["xll",["application/excel","application/vnd.ms-excel","application/x-excel"]],["xlm",["application/vnd.ms-excel","application/excel","application/x-excel"]],["xls",["application/vnd.ms-excel","application/excel","application/x-msexcel","application/x-excel"]],["xlsb","application/vnd.ms-excel.sheet.binary.macroenabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroenabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt",["application/vnd.ms-excel","application/excel","application/x-excel"]],["xltm","application/vnd.ms-excel.template.macroenabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlv",["application/excel","application/x-excel"]],["xlw",["application/vnd.ms-excel","application/excel","application/x-msexcel","application/x-excel"]],["xm","audio/xm"],["xml",["application/xml","text/xml","application/atom+xml","application/rss+xml"]],["xmz","xgl/movie"],["xo","application/vnd.olpc-sugar"],["xof","x-world/x-vrml"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpix","application/x-vnd.ls-xpix"],["xpm",["image/xpm","image/x-xpixmap"]],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xsr","video/x-amt-showrun"],["xul","application/vnd.mozilla.xul+xml"],["xwd",["image/x-xwd","image/x-xwindowdump"]],["xyz",["chemical/x-xyz","chemical/x-pdb"]],["yang","application/yang"],["yin","application/yin+xml"],["z",["application/x-compressed","application/x-compress"]],["zaz","application/vnd.zzazz.deck+xml"],["zip",["application/zip","multipart/x-zip","application/x-zip-compressed","application/x-compressed"]],["zir","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zoo","application/octet-stream"],["zsh","text/x-script.zsh"]]);t9.exports={detectMimeType(e){if(!e)return Yq;let t=jye.parse(e),r=(t.ext.substr(1)||t.name||"").split("?").shift().trim().toLowerCase(),n=e9.has(r)?e9.get(r):Yq;return Array.isArray(n)?n[0]:n},detectExtension(e){if(!e)return Bye;let t=(e||"").toLowerCase().trim().split("/"),r=t.shift().trim(),n=t.join("/").trim();if(Xq.has(r+"/"+n)){let i=Xq.get(r+"/"+n);return Array.isArray(i)?i[0]:i}return r==="text"?"txt":"bin"}}});var f_=_((jUe,l9)=>{"use strict";f();var $ye=/^xn--/,zye=/[^\0-\x7F]/,Hye=/[\x2E\u3002\uFF0E\uFF61]/g,Uye={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u_=35,ei=Math.floor,p_=String.fromCharCode;function cs(e){throw new RangeError(Uye[e])}function Vye(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r}function n9(e,t){let r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(Hye,".");let i=e.split("."),s=Vye(i,t).join(".");return n+s}function i9(e){let t=[],r=0,n=e.length;for(;r<n;){let i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){let s=e.charCodeAt(r++);(s&64512)==56320?t.push(((i&1023)<<10)+(s&1023)+65536):(t.push(i),r--)}else t.push(i)}return t}var Gye=e=>String.fromCodePoint(...e),Wye=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},r9=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},s9=function(e,t,r){let n=0;for(e=r?ei(e/700):e>>1,e+=ei(e/t);e>u_*26>>1;n+=36)e=ei(e/u_);return ei(n+(u_+1)*e/(e+38))},a9=function(e){let t=[],r=e.length,n=0,i=128,s=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let o=0;o<a;++o)e.charCodeAt(o)>=128&&cs("not-basic"),t.push(e.charCodeAt(o));for(let o=a>0?a+1:0;o<r;){let l=n;for(let p=1,u=36;;u+=36){o>=r&&cs("invalid-input");let h=Wye(e.charCodeAt(o++));h>=36&&cs("invalid-input"),h>ei((2147483647-n)/p)&&cs("overflow"),n+=h*p;let d=u<=s?1:u>=s+26?26:u-s;if(h<d)break;let m=36-d;p>ei(2147483647/m)&&cs("overflow"),p*=m}let c=t.length+1;s=s9(n-l,c,l==0),ei(n/c)>2147483647-i&&cs("overflow"),i+=ei(n/c),n%=c,t.splice(n++,0,i)}return String.fromCodePoint(...t)},o9=function(e){let t=[];e=i9(e);let r=e.length,n=128,i=0,s=72;for(let l of e)l<128&&t.push(p_(l));let a=t.length,o=a;for(a&&t.push("-");o<r;){let l=2147483647;for(let p of e)p>=n&&p<l&&(l=p);let c=o+1;l-n>ei((2147483647-i)/c)&&cs("overflow"),i+=(l-n)*c,n=l;for(let p of e)if(p<n&&++i>2147483647&&cs("overflow"),p===n){let u=i;for(let h=36;;h+=36){let d=h<=s?1:h>=s+26?26:h-s;if(u<d)break;let m=u-d,b=36-d;t.push(p_(r9(d+m%b,0))),u=ei(m/b)}t.push(p_(r9(u,0))),s=s9(i,c,o===a),i=0,++o}++i,++n}return t.join("")},Kye=function(e){return n9(e,function(t){return $ye.test(t)?a9(t.slice(4).toLowerCase()):t})},Zye=function(e){return n9(e,function(t){return zye.test(t)?"xn--"+o9(t):t})},Jye={version:"2.3.1",ucs2:{decode:i9,encode:Gye},decode:a9,encode:o9,toASCII:Zye,toUnicode:Kye};l9.exports=Jye});var g_=_(($Ue,c9)=>{"use strict";f();var{Transform:Qye}=X("stream");function d_(e){return typeof e=="string"&&(e=Buffer.from(e,"utf-8")),e.toString("base64")}function h_(e,t){if(e=(e||"").toString(),t=t||76,e.length<=t)return e;let r=[],n=0,i=t*1024,s=new RegExp(".{"+t+"}","g");for(;n<e.length;){let a=e.substr(n,i).replace(s,`$&\r
|
|
236
|
+
`).trim();r.push(a),n+=i}return r.join(`\r
|
|
237
|
+
`).trim()}var m_=class extends Qye{constructor(t){super(),this.options=t||{},this.options.lineLength!==!1&&(this.options.lineLength=this.options.lineLength||76),this._curLine="",this._remainingBytes=!1,this.inputBytes=0,this.outputBytes=0}_transform(t,r,n){if(r!=="buffer"&&(t=Buffer.from(t,r)),!t||!t.length)return setImmediate(n);this.inputBytes+=t.length,this._remainingBytes&&this._remainingBytes.length&&(t=Buffer.concat([this._remainingBytes,t],this._remainingBytes.length+t.length),this._remainingBytes=!1),t.length%3?(this._remainingBytes=t.slice(t.length-t.length%3),t=t.slice(0,t.length-t.length%3)):this._remainingBytes=!1;let i=this._curLine+d_(t);if(this.options.lineLength){i=h_(i,this.options.lineLength);let s=i.lastIndexOf(`
|
|
238
|
+
`);s<0?(this._curLine=i,i=""):s===i.length-1?this._curLine="":(this._curLine=i.substring(s+1),i=i.substring(0,s+1))}i&&(this.outputBytes+=i.length,this.push(Buffer.from(i,"ascii"))),setImmediate(n)}_flush(t){this._remainingBytes&&this._remainingBytes.length&&(this._curLine+=d_(this._remainingBytes)),this._curLine&&(this._curLine=h_(this._curLine,this.options.lineLength),this.outputBytes+=this._curLine.length,this.push(Buffer.from(this._curLine,"ascii")),this._curLine=""),t()}};c9.exports={encode:d_,wrap:h_,Encoder:m_}});var y_=_((HUe,p9)=>{"use strict";f();var{Transform:Yye}=X("stream"),Xye=[[9],[10],[13],[32,60],[62,126]];function x_(e){typeof e=="string"&&(e=Buffer.from(e,"utf-8"));let t="",r;for(let n=0,i=e.length;n<i;n++){if(r=e[n],eve(r,Xye)&&!((r===32||r===9)&&(n===i-1||e[n+1]===10||e[n+1]===13))){t+=String.fromCharCode(r);continue}t+="="+(r<16?"0":"")+r.toString(16).toUpperCase()}return t}function u9(e,t){if(e=(e||"").toString(),t=t||76,e.length<=t)return e;let r=0,n=e.length,i,s,a,o=Math.floor(t/3),l="";for(;r<n;){if(a=e.substr(r,t),i=a.match(/\r\n/)){a=a.substr(0,i.index+i[0].length),l+=a,r+=a.length;continue}if(a.substr(-1)===`
|
|
239
|
+
`){l+=a,r+=a.length;continue}if(i=a.substr(-o).match(/\n.*?$/)){a=a.substr(0,a.length-(i[0].length-1)),l+=a,r+=a.length;continue}if(a.length>t-o&&(i=a.substr(-o).match(/[ \t.,!?][^ \t.,!?]*$/)))a=a.substr(0,a.length-(i[0].length-1));else if(a.match(/[=][\da-f]{0,2}$/i))for((i=a.match(/[=][\da-f]{0,1}$/i))&&(a=a.substr(0,a.length-i[0].length));a.length>3&&a.length<n-r&&!a.match(/^(?:=[\da-f]{2}){1,4}$/i)&&(i=a.match(/[=][\da-f]{2}$/gi))&&(s=parseInt(i[0].substr(1,2),16),!(s<128||(a=a.substr(0,a.length-3),s>=192))););r+a.length<n&&a.substr(-1)!==`
|
|
240
|
+
`?(a.length===t&&a.match(/[=][\da-f]{2}$/i)?a=a.substr(0,a.length-3):a.length===t&&(a=a.substr(0,a.length-1)),r+=a.length,a+=`=\r
|
|
241
|
+
`):r+=a.length,l+=a}return l}function eve(e,t){for(let r=t.length-1;r>=0;r--){let n=t[r];if(n.length&&(n.length===1&&e===n[0]||n.length===2&&e>=n[0]&&e<=n[1]))return!0}return!1}var b_=class extends Yye{constructor(t){super(),this.options=t||{},this.options.lineLength!==!1&&(this.options.lineLength=this.options.lineLength||76),this._curLine="",this.inputBytes=0,this.outputBytes=0}_transform(t,r,n){let i;if(r!=="buffer"&&(t=Buffer.from(t,r)),!t||!t.length)return n();this.inputBytes+=t.length,this.options.lineLength?(i=this._curLine+x_(t),i=u9(i,this.options.lineLength),i=i.replace(/(^|\n)([^\n]*)$/,(s,a,o)=>(this._curLine=o,a)),i&&(this.outputBytes+=i.length,this.push(i))):(i=x_(t),this.outputBytes+=i.length,this.push(i,"ascii")),n()}_flush(t){this._curLine&&(this.outputBytes+=this._curLine.length,this.push(this._curLine,"ascii")),t()}};p9.exports={encode:x_,wrap:u9,Encoder:b_}});var su=_((VUe,d9)=>{"use strict";f();var iu=g_(),tve=y_(),f9=c_();d9.exports={isPlainText(e,t){return typeof e=="string"&&!(t?/[\x00-\x08\x0b\x0c\x0e-\x1f"\u0080-\uFFFF]/:/[\x00-\x08\x0b\x0c\x0e-\x1f\u0080-\uFFFF]/).test(e)},hasLongerLines(e,t){return e.length>128*1024?!0:new RegExp("^.{"+(t+1)+",}","m").test(e)},encodeWord(e,t,r){t=(t||"Q").toString().toUpperCase().trim().charAt(0),r=r||0;let n,i="UTF-8";if(r&&r>7+i.length&&(r-=7+i.length),t==="Q"?n=tve.encode(e).replace(/[^a-z0-9!*+\-/=]/gi,s=>{let a=s.charCodeAt(0).toString(16).toUpperCase();return s===" "?"_":"="+(a.length===1?"0"+a:a)}):t==="B"&&(n=typeof e=="string"?e:iu.encode(e),r=r?Math.max(3,(r-r%4)/4*3):0),r&&(t!=="B"?n:iu.encode(e)).length>r)if(t==="Q")n=this.splitMimeEncodedString(n,r).join("?= =?"+i+"?"+t+"?");else{let s=[],a="";for(let o=0,l=n.length;o<l;o++){let c=n.charAt(o);/[\ud83c\ud83d\ud83e]/.test(c)&&o<l-1&&(c+=n.charAt(++o)),Buffer.byteLength(a+c)<=r||o===0?a+=c:(s.push(iu.encode(a)),a=c)}a&&s.push(iu.encode(a)),s.length>1?n=s.join("?= =?"+i+"?"+t+"?"):n=s.join("")}else t==="B"&&(n=iu.encode(e));return"=?"+i+"?"+t+"?"+n+(n.substr(-2)==="?="?"":"?=")},encodeWords(e,t,r,n){r=r||0;let i=e.match(/(?:^|\s)([^\s]*["\u0080-\uFFFF])/);if(!i)return e;if(n)return this.encodeWord(e,t,r);let s=e.match(/(["\u0080-\uFFFF][^\s]*)[^"\u0080-\uFFFF]*$/);if(!s)return e;let a=i.index+(i[0].match(/[^\s]/)||{index:0}).index,o=s.index+(s[1]||"").length;return(a?e.substr(0,a):"")+this.encodeWord(e.substring(a,o),t||"Q",r)+(o<e.length?e.substr(o):"")},buildHeaderValue(e){let t=[];return Object.keys(e.params||{}).forEach(r=>{let n=e.params[r];!this.isPlainText(n,!0)||n.length>=75?this.buildHeaderParam(r,n,50).forEach(i=>{!/[\s"\\;:/=(),<>@[\]?]|^[-']|'$/.test(i.value)||i.key.substr(-1)==="*"?t.push(i.key+"="+i.value):t.push(i.key+"="+JSON.stringify(i.value))}):/[\s'"\\;:/=(),<>@[\]?]|^-/.test(n)?t.push(r+"="+JSON.stringify(n)):t.push(r+"="+n)}),e.value+(t.length?"; "+t.join("; "):"")},buildHeaderParam(e,t,r){let n=[],i=typeof t=="string"?t:(t||"").toString(),s,a,o,l=0,c,p;if(r=r||50,this.isPlainText(t,!0)){if(i.length<=r)return[{key:e,value:i}];i=i.replace(new RegExp(".{"+r+"}","g"),u=>(n.push({line:u}),"")),i&&n.push({line:i})}else{if(/[\uD800-\uDBFF]/.test(i)){let h=[];for(c=0,p=i.length;c<p;c++)s=i.charAt(c),a=s.charCodeAt(0),a>=55296&&a<=56319&&c<p-1?(s+=i.charAt(c+1),h.push(s),c++):h.push(s);i=h}o="utf-8''";let u=!0;for(l=0,c=0,p=i.length;c<p;c++){if(s=i[c],u)s=this.safeEncodeURIComponent(s);else if(s=s===" "?s:this.safeEncodeURIComponent(s),s!==i[c])if((this.safeEncodeURIComponent(o)+s).length>=r)n.push({line:o,encoded:u}),o="",l=c-1;else{u=!0,c=l,o="";continue}(o+s).length>=r?(n.push({line:o,encoded:u}),o=s=i[c]===" "?" ":this.safeEncodeURIComponent(i[c]),s===i[c]?(u=!1,l=c-1):u=!0):o+=s}o&&n.push({line:o,encoded:u})}return n.map((u,h)=>({key:e+"*"+h+(u.encoded?"*":""),value:u.line}))},parseHeaderValue(e){let t={value:!1,params:{}},r=!1,n="",i="value",s=!1,a=!1,o;for(let l=0,c=e.length;l<c;l++)if(o=e.charAt(l),i==="key"){if(o==="="){r=n.trim().toLowerCase(),i="value",n="";continue}n+=o}else{if(a)n+=o;else if(o==="\\"){a=!0;continue}else s&&o===s?s=!1:!s&&o==='"'?s=o:!s&&o===";"?(r===!1?t.value=n.trim():t.params[r]=n.trim(),i="key",n=""):n+=o;a=!1}return i==="value"?r===!1?t.value=n.trim():t.params[r]=n.trim():n.trim()&&(t.params[n.trim().toLowerCase()]=""),Object.keys(t.params).forEach(l=>{let c,p,u,h;(u=l.match(/(\*(\d+)|\*(\d+)\*|\*)$/))&&(c=l.substr(0,u.index),p=Number(u[2]||u[3])||0,(!t.params[c]||typeof t.params[c]!="object")&&(t.params[c]={charset:!1,values:[]}),h=t.params[l],p===0&&u[0].substr(-1)==="*"&&(u=h.match(/^([^']*)'[^']*'(.*)$/))&&(t.params[c].charset=u[1]||"iso-8859-1",h=u[2]),t.params[c].values[p]=h,delete t.params[l])}),Object.keys(t.params).forEach(l=>{let c;t.params[l]&&Array.isArray(t.params[l].values)&&(c=t.params[l].values.map(p=>p||"").join(""),t.params[l].charset?t.params[l]="=?"+t.params[l].charset+"?Q?"+c.replace(/[=?_\s]/g,p=>{let u=p.charCodeAt(0).toString(16);return p===" "?"_":"%"+(u.length<2?"0":"")+u}).replace(/%/g,"=")+"?=":t.params[l]=c)}),t},detectExtension:e=>f9.detectExtension(e),detectMimeType:e=>f9.detectMimeType(e),foldLines(e,t,r){e=(e||"").toString(),t=t||76;let n=0,i=e.length,s="",a,o;for(;n<i;){if(a=e.substr(n,t),a.length<t){s+=a;break}if(o=a.match(/^[^\n\r]*(\r?\n|\r)/)){a=o[0],s+=a,n+=a.length;continue}else(o=a.match(/(\s+)[^\s]*$/))&&o[0].length-(r?(o[1]||"").length:0)<a.length?a=a.substr(0,a.length-(o[0].length-(r?(o[1]||"").length:0))):(o=e.substr(n+a.length).match(/^[^\s]+(\s*)/))&&(a=a+o[0].substr(0,o[0].length-(r?0:(o[1]||"").length)));s+=a,n+=a.length,n<i&&(s+=`\r
|
|
242
|
+
`)}return s},splitMimeEncodedString:(e,t)=>{let r=[],n,i,s,a;for(t=Math.max(t||0,12);e.length;){for(n=e.substr(0,t),(i=n.match(/[=][0-9A-F]?$/i))&&(n=n.substr(0,i.index)),a=!1;!a;)a=!0,(i=e.substr(n.length).match(/^[=]([0-9A-F]{2})/i))&&(s=parseInt(i[1],16),s<194&&s>127&&(n=n.substr(0,n.length-3),a=!1));n.length&&r.push(n),e=e.substr(n.length)}return r},encodeURICharComponent:e=>{let t="",r=e.charCodeAt(0).toString(16).toUpperCase();if(r.length%2&&(r="0"+r),r.length>2)for(let n=0,i=r.length/2;n<i;n++)t+="%"+r.substr(n,2);else t+="%"+r;return t},safeEncodeURIComponent(e){e=(e||"").toString();try{e=encodeURIComponent(e)}catch{return e.replace(/[^\x00-\x1F *'()<>@,;:\\"[\]?=\u007F-\uFFFF]+/g,"")}return e.replace(/[\x00-\x1F *'()<>@,;:\\"[\]?=\u007F-\uFFFF]/g,t=>this.encodeURICharComponent(t))}}});var g9=_((WUe,m9)=>{"use strict";f();function rve(e,t){let r=!1,n="text",i=[],s={address:[],comment:[],group:[],text:[],textWasQuoted:[]},a=!1;for(let o=0,l=e.length;o<l;o++){let c=e[o],p=o?e[o-1]:null;if(c.type==="operator")switch(c.value){case"<":n="address",a=!1;break;case"(":n="comment",a=!1;break;case":":n="group",r=!0,a=!1;break;case'"':a=!a,n="text";break;default:n="text",a=!1;break}else c.value&&(n==="address"&&(c.value=c.value.replace(/^[^<]*<\s*/,"")),p&&p.noBreak&&s[n].length?(s[n][s[n].length-1]+=c.value,n==="text"&&a&&(s.textWasQuoted[s.textWasQuoted.length-1]=!0)):(s[n].push(c.value),n==="text"&&s.textWasQuoted.push(a)))}if(!s.text.length&&s.comment.length&&(s.text=s.comment,s.comment=[]),r){s.text=s.text.join(" ");let o=[];s.group.length&&h9(s.group.join(","),{_depth:t+1}).forEach(c=>{c.group?o=o.concat(c.group):o.push(c)}),i.push({name:s.text||"",group:o})}else{if(!s.address.length&&s.text.length){for(let l=s.text.length-1;l>=0;l--)if(!s.textWasQuoted[l]&&/^[^@\s]+@[^@\s]+$/.test(s.text[l])){s.address=s.text.splice(l,1),s.textWasQuoted.splice(l,1);break}if(!s.address.length){let l=!1;for(let c=s.text.length-1;c>=0&&!(!s.textWasQuoted[c]&&(s.text[c]=s.text[c].replace(/\s*\b[^@\s]+@[^\s]+\b\s*/,p=>l?p:(s.address=[p.trim()],l=!0," ")).trim(),l));c--);}}!s.text.length&&s.comment.length&&(s.text=s.comment,s.comment=[]),s.address.length>1&&(s.text=s.text.concat(s.address.splice(1))),s.text=s.text.join(" "),s.address=s.address.join(" ");let o={address:s.address||s.text||"",name:s.text||s.address||""};o.address===o.name&&(/@/.test(o.address||"")?o.name="":o.address=""),i.push(o)}return i}var v_=class{constructor(t){this.str=(t||"").toString(),this.operatorCurrent="",this.operatorExpecting="",this.node=null,this.escaped=!1,this.list=[],this.operators={'"':'"',"(":")","<":">",",":"",":":";",";":""}}tokenize(){let t=[];for(let r=0,n=this.str.length;r<n;r++){let i=this.str.charAt(r),s=r<n-1?this.str.charAt(r+1):null;this.checkChar(i,s)}return this.list.forEach(r=>{r.value=(r.value||"").toString().trim(),r.value&&t.push(r)}),t}checkChar(t,r){if(!this.escaped){if(t===this.operatorExpecting){this.node={type:"operator",value:t},r&&![" "," ","\r",`
|
|
243
|
+
`,",",";"].includes(r)&&(this.node.noBreak=!0),this.list.push(this.node),this.node=null,this.operatorExpecting="",this.escaped=!1;return}else if(!this.operatorExpecting&&t in this.operators){this.node={type:"operator",value:t},this.list.push(this.node),this.node=null,this.operatorExpecting=this.operators[t],this.escaped=!1;return}else if(['"',"'"].includes(this.operatorExpecting)&&t==="\\"){this.escaped=!0;return}}this.node||(this.node={type:"text",value:""},this.list.push(this.node)),t===`
|
|
244
|
+
`&&(t=" "),(t.charCodeAt(0)>=33||[" "," "].includes(t))&&(this.node.value+=t),this.escaped=!1}},nve=50;function h9(e,t){t=t||{};let r=t._depth||0;if(r>nve)return[];let i=new v_(e).tokenize(),s=[],a=[],o=[];i.forEach(l=>{l.type==="operator"&&(l.value===","||l.value===";")?(a.length&&s.push(a),a=[]):a.push(l)}),a.length&&s.push(a),s.forEach(l=>{let c=rve(l,r);c.length&&(o=o.concat(c))});for(let l=o.length-2;l>=0;l--){let c=o[l],p=o[l+1];c.address===""&&c.name&&!c.group&&p.address&&p.name&&(p.name=c.name+", "+p.name,o.splice(l,1))}if(t.flatten){let l=[],c=p=>{p.forEach(u=>{if(u.group)return c(u.group);l.push(u)})};return c(o),l}return o}m9.exports=h9});var b9=_((ZUe,x9)=>{"use strict";f();var{Transform:ive}=X("stream"),__=class extends ive{constructor(){super(),this.lastByte=!1}_transform(t,r,n){t.length&&(this.lastByte=t[t.length-1]),this.push(t),n()}_flush(t){return this.lastByte===10?t():this.lastByte===13?(this.push(Buffer.from(`
|
|
245
|
+
`)),t()):(this.push(Buffer.from(`\r
|
|
246
|
+
`)),t())}};x9.exports=__});var E_=_((QUe,y9)=>{"use strict";f();var{Transform:sve}=X("stream"),w_=class extends sve{constructor(t){super(t),this.lastByte=!1}_transform(t,r,n){let i,s=0;for(let a=0,o=t.length;a<o;a++)t[a]===10&&(a&&t[a-1]!==13||!a&&this.lastByte!==13)&&(a>s&&(i=t.slice(s,a),this.push(i)),this.push(Buffer.from(`\r
|
|
247
|
+
`)),s=a+1);s&&s<t.length?(i=t.slice(s),this.push(i)):s||this.push(t),this.lastByte=t[t.length-1],n()}};y9.exports=w_});var _9=_((XUe,v9)=>{"use strict";f();var{Transform:ave}=X("stream"),D_=class extends ave{constructor(t){super(t)}_transform(t,r,n){let i,s=0;for(let a=0,o=t.length;a<o;a++)t[a]===13&&(i=t.slice(s,a),s=a+1,this.push(i));s&&s<t.length?(i=t.slice(s),this.push(i)):s||this.push(t),n()}};v9.exports=D_});var kh=_((tVe,D9)=>{"use strict";f();var S_=X("crypto"),ove=X("fs"),w9=f_(),{PassThrough:au}=X("stream"),lve=Tr(),Fn=su(),cve=y_(),uve=g_(),pve=g9(),fve=ru(),E9=Nn(),dve=b9(),hve=E_(),mve=_9(),gve=["From","Sender","To","Cc","Bcc","Reply-To","Date","References"],k_=class e{constructor(t,r){this.nodeCounter=0,r=r||{},this.baseBoundary=r.baseBoundary||S_.randomBytes(8).toString("hex"),this.boundaryPrefix=r.boundaryPrefix||"--_NmP",this.disableFileAccess=!!r.disableFileAccess,this.disableUrlAccess=!!r.disableUrlAccess,this.normalizeHeaderKey=r.normalizeHeaderKey,this.date=r.parentNode?null:new Date,this.rootNode=r.rootNode||this,this.keepBcc=!!r.keepBcc,r.filename&&(this.filename=r.filename,t||(t=Fn.detectMimeType(this.filename.split(".").pop()))),this.textEncoding=(r.textEncoding||"").toString().trim().charAt(0).toUpperCase(),this.parentNode=r.parentNode,this.hostname=r.hostname,this.newline=r.newline,this.childNodes=[],this._nodeId=++this.rootNode.nodeCounter,this._headers=[],this._isPlainText=!1,this._hasLongLines=!1,this._envelope=!1,this._raw=!1,this._transforms=[],this._processFuncs=[],t&&this.setHeader("Content-Type",t)}createChild(t,r){!r&&typeof t=="object"&&(r=t,t=void 0);let n=new e(t,r);return this.appendChild(n),n}appendChild(t){return t.rootNode!==this.rootNode&&(t.rootNode=this.rootNode,t._nodeId=++this.rootNode.nodeCounter),t.parentNode=this,this.childNodes.push(t),t}replace(t){return t===this?this:(this.parentNode.childNodes.forEach((r,n)=>{r===this&&(t.rootNode=this.rootNode,t.parentNode=this.parentNode,t._nodeId=this._nodeId,this.rootNode=this,this.parentNode=void 0,t.parentNode.childNodes[n]=t)}),t)}remove(){if(!this.parentNode)return this;for(let t=this.parentNode.childNodes.length-1;t>=0;t--)if(this.parentNode.childNodes[t]===this)return this.parentNode.childNodes.splice(t,1),this.parentNode=void 0,this.rootNode=this,this}setHeader(t,r){let n=!1;if(!r&&t&&typeof t=="object")return t.key&&"value"in t?this.setHeader(t.key,t.value):Array.isArray(t)?t.forEach(s=>{this.setHeader(s.key,s.value)}):Object.keys(t).forEach(s=>{this.setHeader(s,t[s])}),this;t=this._normalizeHeaderKey(t);let i={key:t,value:r};for(let s=0,a=this._headers.length;s<a;s++)this._headers[s].key===t&&(n?(this._headers.splice(s,1),s--,a--):(this._headers[s]=i,n=!0));return n||this._headers.push(i),this}addHeader(t,r){return!r&&t&&typeof t=="object"?(t.key&&t.value?this.addHeader(t.key,t.value):Array.isArray(t)?t.forEach(n=>{this.addHeader(n.key,n.value)}):Object.keys(t).forEach(n=>{this.addHeader(n,t[n])}),this):Array.isArray(r)?(r.forEach(n=>{this.addHeader(t,n)}),this):(this._headers.push({key:this._normalizeHeaderKey(t),value:r}),this)}getHeader(t){t=this._normalizeHeaderKey(t);for(let r=0,n=this._headers.length;r<n;r++)if(this._headers[r].key===t)return this._headers[r].value}setContent(t){return this.content=t,typeof this.content.pipe=="function"?(this._contentErrorHandler=r=>{this.content.removeListener("error",this._contentErrorHandler),this.content=r},this.content.once("error",this._contentErrorHandler)):typeof this.content=="string"&&(this._isPlainText=Fn.isPlainText(this.content),this._isPlainText&&Fn.hasLongerLines(this.content,76)&&(this._hasLongLines=!0)),this}build(t){let r;t||(r=new Promise((o,l)=>{t=lve.callbackPromise(o,l)}));let n=this.createReadStream(),i=[],s=0,a=!1;return n.on("readable",()=>{let o;for(;(o=n.read())!==null;)i.push(o),s+=o.length}),n.once("error",o=>{if(!a)return a=!0,t(o)}),n.once("end",o=>{if(!a)return a=!0,o&&o.length&&(i.push(o),s+=o.length),t(null,Buffer.concat(i,s))}),r}getTransferEncoding(){let t=!1,r=(this.getHeader("Content-Type")||"").toString().toLowerCase().trim();return this.content&&(t=(this.getHeader("Content-Transfer-Encoding")||"").toString().toLowerCase().trim(),(!t||!["base64","quoted-printable"].includes(t))&&(/^text\//i.test(r)?this._isPlainText&&!this._hasLongLines?t="7bit":typeof this.content=="string"||this.content instanceof Buffer?t=this._getTextEncoding(this.content)==="Q"?"quoted-printable":"base64":t=this.textEncoding==="B"?"base64":"quoted-printable":/^(multipart|message)\//i.test(r)||(t=t||"base64"))),t}buildHeaders(){let t=this.getTransferEncoding(),r=[];if(t&&this.setHeader("Content-Transfer-Encoding",t),this.filename&&!this.getHeader("Content-Disposition")&&this.setHeader("Content-Disposition","attachment"),this.rootNode===this){this.getHeader("Date")||this.setHeader("Date",this.date.toUTCString().replace(/GMT/,"+0000")),this.messageId(),this.getHeader("MIME-Version")||this.setHeader("MIME-Version","1.0");for(let n=this._headers.length-2;n>=0;n--){let i=this._headers[n];i.key==="Content-Type"&&(this._headers.splice(n,1),this._headers.push(i))}}return this._headers.forEach(n=>{let i=n.key,s=n.value,a,o,l={};if(!(s&&typeof s=="object"&&!gve.includes(i)&&(Object.keys(s).forEach(p=>{p!=="value"&&(l[p]=s[p])}),s=(s.value||"").toString(),!s.trim()))){if(l.prepared){l.foldLines?r.push(Fn.foldLines(i+": "+s)):r.push(i+": "+s);return}switch(n.key){case"Content-Disposition":a=Fn.parseHeaderValue(s),this.filename&&(a.params.filename=this.filename),s=Fn.buildHeaderValue(a);break;case"Content-Type":a=Fn.parseHeaderValue(s),this._handleContentType(a),a.value.match(/^text\/plain\b/)&&typeof this.content=="string"&&/[\u0080-\uFFFF]/.test(this.content)&&(a.params.charset="utf-8"),s=Fn.buildHeaderValue(a),this.filename&&(o=this._encodeWords(this.filename),(o!==this.filename||/[\s'"\\;:/=(),<>@[\]?]|^-/.test(o))&&(o='"'+o+'"'),s+="; name="+o);break;case"Bcc":if(!this.keepBcc)return;break}if(s=this._encodeHeaderValue(i,s),!!(s||"").toString().trim()){if(typeof this.normalizeHeaderKey=="function"){let p=this.normalizeHeaderKey(i,s);p&&typeof p=="string"&&p.length&&(i=p)}r.push(Fn.foldLines(i+": "+s,76))}}}),r.join(`\r
|
|
248
|
+
`)}createReadStream(t){t=t||{};let r=new au(t),n=r,i;this.stream(r,t,s=>{if(s){n.emit("error",s);return}r.end()});for(let s=0,a=this._transforms.length;s<a;s++)i=typeof this._transforms[s]=="function"?this._transforms[s]():this._transforms[s],n.once("error",o=>{i.emit("error",o)}),n=n.pipe(i);i=new dve,n.once("error",s=>{i.emit("error",s)}),n=n.pipe(i);for(let s=0,a=this._processFuncs.length;s<a;s++)i=this._processFuncs[s],n=i(n);if(this.newline){let a=["win","windows","dos",`\r
|
|
249
|
+
`].includes(this.newline.toString().toLowerCase())?new hve:new mve,o=n.pipe(a);return n.on("error",l=>o.emit("error",l)),o}return n}transform(t){this._transforms.push(t)}processFunc(t){this._processFuncs.push(t)}stream(t,r,n){let i=this.getTransferEncoding(),s,a,o=!1,l=u=>{o||(o=!0,n(u))},c=()=>{let u=0,h=()=>{if(u>=this.childNodes.length)return t.write(`\r
|
|
250
|
+
--`+this.boundary+`--\r
|
|
251
|
+
`),l();let d=this.childNodes[u++];t.write((u>1?`\r
|
|
252
|
+
`:"")+"--"+this.boundary+`\r
|
|
253
|
+
`),d.stream(t,r,m=>{if(m)return l(m);setImmediate(h)})};if(this.multipart)setImmediate(h);else return l()},p=()=>{if(this.content){if(Object.prototype.toString.call(this.content)==="[object Error]")return l(this.content);typeof this.content.pipe=="function"&&(this.content.removeListener("error",this._contentErrorHandler),this._contentErrorHandler=h=>l(h),this.content.once("error",this._contentErrorHandler));let u=()=>{["quoted-printable","base64"].includes(i)?(s=new(i==="base64"?uve:cve).Encoder(r),s.pipe(t,{end:!1}),s.once("end",c),s.once("error",h=>l(h)),a=this._getStream(this.content),a.pipe(s)):(a=this._getStream(this.content),a.pipe(t,{end:!1}),a.once("end",c)),a.once("error",h=>l(h))};if(this.content._resolve){let h=[],d=0,m=!1,b=this._getStream(this.content);b.on("error",v=>{m||(m=!0,l(v))}),b.on("readable",()=>{let v;for(;(v=b.read())!==null;)h.push(v),d+=v.length}),b.on("end",()=>{m||(m=!0,this.content._resolve=!1,this.content._resolvedValue=Buffer.concat(h,d),setImmediate(u))})}else setImmediate(u);return}return setImmediate(c)};this._raw?setImmediate(()=>{if(Object.prototype.toString.call(this._raw)==="[object Error]")return l(this._raw);typeof this._raw.pipe=="function"&&this._raw.removeListener("error",this._contentErrorHandler);let u=this._getStream(this._raw);u.pipe(t,{end:!1}),u.on("error",h=>t.emit("error",h)),u.on("end",c)}):(t.write(this.buildHeaders()+`\r
|
|
254
|
+
\r
|
|
255
|
+
`),setImmediate(p))}setEnvelope(t){let r;this._envelope={from:!1,to:[]},t.from&&(r=[],this._convertAddresses(this._parseAddresses(t.from),r),r=r.filter(i=>i&&i.address),r.length&&r[0]&&(this._envelope.from=r[0].address)),["to","cc","bcc"].forEach(i=>{t[i]&&this._convertAddresses(this._parseAddresses(t[i]),this._envelope.to)}),this._envelope.to=this._envelope.to.map(i=>i.address).filter(i=>i);let n=["to","cc","bcc","from"];return Object.keys(t).forEach(i=>{n.includes(i)||(this._envelope[i]=t[i])}),this}getAddresses(){let t={};return this._headers.forEach(r=>{let n=r.key.toLowerCase();["from","sender","reply-to","to","cc","bcc"].includes(n)&&(Array.isArray(t[n])||(t[n]=[]),this._convertAddresses(this._parseAddresses(r.value),t[n]))}),t}getEnvelope(){if(this._envelope)return this._envelope;let t={from:!1,to:[]};return this._headers.forEach(r=>{let n=[];r.key==="From"||!t.from&&["Reply-To","Sender"].includes(r.key)?(this._convertAddresses(this._parseAddresses(r.value),n),n.length&&n[0]&&(t.from=n[0].address)):["To","Cc","Bcc"].includes(r.key)&&this._convertAddresses(this._parseAddresses(r.value),t.to)}),t.to=t.to.map(r=>r.address),t}messageId(){let t=this.getHeader("Message-ID");return t||(t=this._generateMessageId(),this.setHeader("Message-ID",t)),t}setRaw(t){return this._raw=t,this._raw&&typeof this._raw.pipe=="function"&&(this._contentErrorHandler=r=>{this._raw.removeListener("error",this._contentErrorHandler),this._raw=r},this._raw.once("error",this._contentErrorHandler)),this}_getStream(t){let r;return t._resolvedValue?(r=new au,setImmediate(()=>{try{r.end(t._resolvedValue)}catch(n){r.emit("error",n)}}),r):typeof t.pipe=="function"?t:t&&typeof t.path=="string"&&!t.href?this.disableFileAccess?(r=new au,setImmediate(()=>{let n=new Error("File access rejected for "+t.path);n.code=E9.EFILEACCESS,r.emit("error",n)}),r):ove.createReadStream(t.path):t&&typeof t.href=="string"?this.disableUrlAccess?(r=new au,setImmediate(()=>{let n=new Error("Url access rejected for "+t.href);n.code=E9.EURLACCESS,r.emit("error",n)}),r):fve(t.href,{headers:t.httpHeaders}):(r=new au,setImmediate(()=>{try{r.end(t||"")}catch(n){r.emit("error",n)}}),r)}_parseAddresses(t){return[].concat.apply([],[].concat(t).map(r=>r&&r.address?(r.address=this._normalizeAddress(r.address),r.name=r.name||"",[r]):pve(r)))}_normalizeHeaderKey(t){return t=(t||"").toString().replace(/\r?\n|\r/g," ").trim().toLowerCase().replace(/^X-SMTPAPI$|^(MIME|DKIM|ARC|BIMI)\b|^[a-z]|-(SPF|FBL|ID|MD5)$|-[a-z]/gi,r=>r.toUpperCase()).replace(/^Content-Features$/i,"Content-features"),t}_handleContentType(t){this.contentType=t.value.trim().toLowerCase(),this.multipart=/^multipart\//i.test(this.contentType)?this.contentType.substr(this.contentType.indexOf("/")+1):!1,this.multipart?this.boundary=t.params.boundary=t.params.boundary||this.boundary||this._generateBoundary():this.boundary=!1}_generateBoundary(){return this.rootNode.boundaryPrefix+"-"+this.rootNode.baseBoundary+"-Part_"+this._nodeId}_encodeHeaderValue(t,r){switch(t=this._normalizeHeaderKey(t),t){case"From":case"Sender":case"To":case"Cc":case"Bcc":case"Reply-To":return this._convertAddresses(this._parseAddresses(r));case"Message-ID":case"In-Reply-To":case"Content-Id":return r=(r||"").toString().replace(/\r?\n|\r/g," "),r.charAt(0)!=="<"&&(r="<"+r),r.charAt(r.length-1)!==">"&&(r=r+">"),r;case"References":return r=[].concat.apply([],[].concat(r||"").map(n=>(n=(n||"").toString().replace(/\r?\n|\r/g," ").trim(),n.replace(/<[^>]*>/g,i=>i.replace(/\s/g,"")).split(/\s+/)))).map(n=>(n.charAt(0)!=="<"&&(n="<"+n),n.charAt(n.length-1)!==">"&&(n=n+">"),n)),r.join(" ").trim();case"Date":return Object.prototype.toString.call(r)==="[object Date]"?r.toUTCString().replace(/GMT/,"+0000"):(r=(r||"").toString().replace(/\r?\n|\r/g," "),this._encodeWords(r));case"Content-Type":case"Content-Disposition":return(r||"").toString().replace(/\r?\n|\r/g," ");default:return r=(r||"").toString().replace(/\r?\n|\r/g," "),this._encodeWords(r)}}_convertAddresses(t,r){let n=[];return r=r||[],[].concat(t||[]).forEach(i=>{if(i.address)i.address=this._normalizeAddress(i.address),i.name?n.push(`${this._encodeAddressName(i.name)} <${i.address}>`):n.push(i.address.indexOf(" ")>=0?`<${i.address}>`:`${i.address}`),r.some(s=>s.address===i.address)||r.push(i);else if(i.group){let s=(i.group.length?this._convertAddresses(i.group,r):"").trim();n.push(`${this._encodeAddressName(i.name)}:${s};`)}}),n.join(", ")}_normalizeAddress(t){t=(t||"").toString().replace(/[\x00-\x1F<>]+/g," ").trim();let r=t.lastIndexOf("@");if(r<0)return t;let n=t.substr(0,r),i=t.substr(r+1),s=i;try{/[\x80-\uFFFF]/.test(n)?s=w9.toUnicode(i.toLowerCase()):s=w9.toASCII(i.toLowerCase())}catch{}return n.indexOf(" ")>=0&&(n.charAt(0)!=='"'&&(n='"'+n),n.substr(-1)!=='"'&&(n=n+'"')),`${n}@${s}`}_encodeAddressName(t){return/^[\w ]*$/.test(t)?t:/^[\x20-\x7e]*$/.test(t)?'"'+t.replace(/([\\"])/g,"\\$1")+'"':Fn.encodeWord(t,this._getTextEncoding(t),52)}_encodeWords(t){return Fn.encodeWords(t,this._getTextEncoding(t),52,!0)}_getTextEncoding(t){if(t=(t||"").toString(),this.textEncoding)return this.textEncoding;let r=0,n=0;for(let i=0,s=t.length;i<s;i++){let a=t.charCodeAt(i);a>=0&&a<=8||a===11||a===12||a>=14&&a<=31||a>=128?r++:(a>=65&&a<=90||a>=97&&a<=122)&&n++}return r<n?"Q":"B"}_generateMessageId(){return"<"+[2,2,2,6].reduce((t,r)=>t+"-"+S_.randomBytes(r).toString("hex"),S_.randomBytes(4).toString("hex"))+"@"+(this.getEnvelope().from||this.hostname||"localhost").split("@").pop()+">"}};D9.exports=k_});var k9=_((nVe,S9)=>{"use strict";f();var ou=kh(),C_=su(),{parseDataURI:xve}=Tr(),T_=class{constructor(t){this.mail=t||{},this.message=!1}compile(){return this._alternatives=this.getAlternatives(),this._htmlNode=this._alternatives.filter(t=>/^text\/html\b/i.test(t.contentType)).pop(),this._attachments=this.getAttachments(!!this._htmlNode),this._useRelated=!!(this._htmlNode&&this._attachments.related.length),this._useAlternative=this._alternatives.length>1,this._useMixed=this._attachments.attached.length>1||this._alternatives.length&&this._attachments.attached.length===1,this.mail.raw?this.message=new ou("message/rfc822",{newline:this.mail.newline}).setRaw(this.mail.raw):this._useMixed?this.message=this._createMixed():this._useAlternative?this.message=this._createAlternative():this._useRelated?this.message=this._createRelated():this.message=this._createContentNode(!1,[].concat(this._alternatives||[]).concat(this._attachments.attached||[]).shift()||{contentType:"text/plain",content:""}),this.mail.headers&&this.message.addHeader(this.mail.headers),["from","sender","to","cc","bcc","reply-to","in-reply-to","references","subject","message-id","date"].forEach(t=>{let r=t.replace(/-(\w)/g,(n,i)=>i.toUpperCase());this.mail[r]&&this.message.setHeader(t,this.mail[r])}),this.mail.envelope&&this.message.setEnvelope(this.mail.envelope),this.message.messageId(),this.message}getAttachments(t){let r,n,i=[].concat(this.mail.attachments||[]).map((s,a)=>{/^data:/i.test(s.path||s.href)&&(s=this._processDataUrl(s));let o=s.contentType||C_.detectMimeType(s.filename||s.path||s.href||"bin"),l=/^image\//i.test(o),c=/^message\//i.test(o),p=s.contentDisposition||(c||l&&s.cid?"inline":"attachment"),u;"contentTransferEncoding"in s?u=s.contentTransferEncoding:c?u="8bit":u="base64";let h={contentType:o,contentDisposition:p,contentTransferEncoding:u};return s.filename?h.filename=s.filename:!c&&s.filename!==!1&&(h.filename=(s.path||s.href||"").split("/").pop().split("?").shift()||"attachment-"+(a+1),h.filename.indexOf(".")<0&&(h.filename+="."+C_.detectExtension(h.contentType))),/^https?:\/\//i.test(s.path)&&(s.href=s.path,s.path=void 0),s.cid&&(h.cid=s.cid),s.raw?h.raw=s.raw:s.path?h.content={path:s.path}:s.href?h.content={href:s.href,httpHeaders:s.httpHeaders}:h.content=s.content||"",s.encoding&&(h.encoding=s.encoding),s.headers&&(h.headers=s.headers),h});return this.mail.icalEvent&&(typeof this.mail.icalEvent=="object"&&(this.mail.icalEvent.content||this.mail.icalEvent.path||this.mail.icalEvent.href||this.mail.icalEvent.raw)?r=this.mail.icalEvent:r={content:this.mail.icalEvent},n=Object.assign({},r),n.contentType="application/ics",n.headers||(n.headers={}),n.filename=n.filename||"invite.ics",n.headers["Content-Disposition"]="attachment",n.headers["Content-Transfer-Encoding"]="base64"),t?{attached:i.filter(s=>!s.cid).concat(n||[]),related:i.filter(s=>!!s.cid)}:{attached:i.concat(n||[]),related:[]}}getAlternatives(){let t=[],r,n,i,s,a,o;return this.mail.text&&(typeof this.mail.text=="object"&&(this.mail.text.content||this.mail.text.path||this.mail.text.href||this.mail.text.raw)?r=this.mail.text:r={content:this.mail.text},r.contentType="text/plain; charset=utf-8"),this.mail.watchHtml&&(typeof this.mail.watchHtml=="object"&&(this.mail.watchHtml.content||this.mail.watchHtml.path||this.mail.watchHtml.href||this.mail.watchHtml.raw)?i=this.mail.watchHtml:i={content:this.mail.watchHtml},i.contentType="text/watch-html; charset=utf-8"),this.mail.amp&&(typeof this.mail.amp=="object"&&(this.mail.amp.content||this.mail.amp.path||this.mail.amp.href||this.mail.amp.raw)?s=this.mail.amp:s={content:this.mail.amp},s.contentType="text/x-amp-html; charset=utf-8"),this.mail.icalEvent&&(typeof this.mail.icalEvent=="object"&&(this.mail.icalEvent.content||this.mail.icalEvent.path||this.mail.icalEvent.href||this.mail.icalEvent.raw)?a=this.mail.icalEvent:a={content:this.mail.icalEvent},o=Object.assign({},a),o.content&&typeof o.content=="object"&&(o.content._resolve=!0),o.filename=!1,o.contentType="text/calendar; charset=utf-8; method="+(o.method||"PUBLISH").toString().trim().toUpperCase(),o.headers||(o.headers={})),this.mail.html&&(typeof this.mail.html=="object"&&(this.mail.html.content||this.mail.html.path||this.mail.html.href||this.mail.html.raw)?n=this.mail.html:n={content:this.mail.html},n.contentType="text/html; charset=utf-8"),[].concat(r||[]).concat(i||[]).concat(s||[]).concat(n||[]).concat(o||[]).concat(this.mail.alternatives||[]).forEach(l=>{/^data:/i.test(l.path||l.href)&&(l=this._processDataUrl(l));let c={contentType:l.contentType||C_.detectMimeType(l.filename||l.path||l.href||"txt"),contentTransferEncoding:l.contentTransferEncoding};l.filename&&(c.filename=l.filename),/^https?:\/\//i.test(l.path)&&(l.href=l.path,l.path=void 0),l.raw?c.raw=l.raw:l.path?c.content={path:l.path}:l.href?c.content={href:l.href}:c.content=l.content||"",l.encoding&&(c.encoding=l.encoding),l.headers&&(c.headers=l.headers),t.push(c)}),t}_createMixed(t){let r=t?t.createChild("multipart/mixed",{disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):new ou("multipart/mixed",{baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline});return this._useAlternative?this._createAlternative(r):this._useRelated&&this._createRelated(r),[].concat(!this._useAlternative&&this._alternatives||[]).concat(this._attachments.attached||[]).forEach(n=>{(!this._useRelated||n!==this._htmlNode)&&this._createContentNode(r,n)}),r}_createAlternative(t){let r=t?t.createChild("multipart/alternative",{disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):new ou("multipart/alternative",{baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline});return this._alternatives.forEach(n=>{this._useRelated&&this._htmlNode===n?this._createRelated(r):this._createContentNode(r,n)}),r}_createRelated(t){let r=t?t.createChild('multipart/related; type="text/html"',{disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):new ou('multipart/related; type="text/html"',{baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline});return this._createContentNode(r,this._htmlNode),this._attachments.related.forEach(n=>this._createContentNode(r,n)),r}_createContentNode(t,r){r=r||{},r.content=r.content||"";let n=(r.encoding||"utf8").toString().toLowerCase().replace(/[-_\s]/g,""),i=t?t.createChild(r.contentType,{filename:r.filename,textEncoding:this.mail.textEncoding,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):new ou(r.contentType,{filename:r.filename,baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline});return r.headers&&i.addHeader(r.headers),r.cid&&i.setHeader("Content-Id","<"+r.cid.replace(/[<>]/g,"")+">"),r.contentTransferEncoding?i.setHeader("Content-Transfer-Encoding",r.contentTransferEncoding):this.mail.encoding&&/^text\//i.test(r.contentType)&&i.setHeader("Content-Transfer-Encoding",this.mail.encoding),(!/^text\//i.test(r.contentType)||r.contentDisposition)&&i.setHeader("Content-Disposition",r.contentDisposition||(r.cid&&/^image\//i.test(r.contentType)?"inline":"attachment")),typeof r.content=="string"&&!["utf8","usascii","ascii"].includes(n)&&(r.content=Buffer.from(r.content,n)),r.raw?i.setRaw(r.raw):i.setContent(r.content),i}_processDataUrl(t){let r=t.path||t.href;if(!r||typeof r!="string"||!r.startsWith("data:"))return t;if(r.length>52428800){let i="application/octet-stream",s=r.indexOf(",");if(s>0&&s<200){let o=r.substring(5,s).split(";");o[0]&&o[0].includes("/")&&(i=o[0].trim())}return Object.assign({},t,{path:!1,href:!1,content:Buffer.alloc(0),contentType:t.contentType||i})}let n;try{n=xve(r)}catch{return t}return n&&(t.content=n.data,t.contentType=t.contentType||n.contentType,"path"in t&&(t.path=!1),"href"in t&&(t.href=!1)),t}};S9.exports=T_});var T9=_((sVe,C9)=>{"use strict";f();var{Transform:bve}=X("stream"),A_=class extends bve{constructor(t){super(t),this.lastBytes=Buffer.alloc(4),this.headersParsed=!1,this.headerBytes=0,this.headerChunks=[],this.rawHeaders=!1,this.bodySize=0}updateLastBytes(t){let r=this.lastBytes.length,n=Math.min(t.length,r);for(let i=0,s=r-n;i<s;i++)this.lastBytes[i]=this.lastBytes[i+n];for(let i=1;i<=n;i++)this.lastBytes[r-i]=t[t.length-i]}checkHeaders(t){if(this.headersParsed)return!0;let r=this.lastBytes.length,n=0;for(let i=0,s=this.lastBytes.length+t.length;i<s;i++){let a;if(i<r?a=this.lastBytes[i]:a=t[i-r],a===10&&i){let o=i-1<r?this.lastBytes[i-1]:t[i-1-r],l=i>1?i-2<r?this.lastBytes[i-2]:t[i-2-r]:!1;if(o===10){this.headersParsed=!0,n=i-r+1,this.headerBytes+=n;break}else if(o===13&&l===10){this.headersParsed=!0,n=i-r+1,this.headerBytes+=n;break}}}if(this.headersParsed){if(this.headerChunks.push(t.slice(0,n)),this.rawHeaders=Buffer.concat(this.headerChunks,this.headerBytes),this.headerChunks=null,this.emit("headers",this.parseHeaders()),t.length-1>n){let i=t.slice(n);this.bodySize+=i.length,setImmediate(()=>this.push(i))}return!1}return this.headerBytes+=t.length,this.headerChunks.push(t),this.updateLastBytes(t),!1}_transform(t,r,n){if(!t||!t.length)return n();typeof t=="string"&&(t=Buffer.from(t,r));let i;try{i=this.checkHeaders(t)}catch(s){return n(s)}i&&(this.bodySize+=t.length,this.push(t)),setImmediate(n)}_flush(t){if(this.headerChunks){let r=Buffer.concat(this.headerChunks,this.headerBytes);this.bodySize+=r.length,this.push(r),this.headerChunks=null}t()}parseHeaders(){let t=(this.rawHeaders||"").toString().split(/\r?\n/);for(let r=t.length-1;r>0;r--)/^\s/.test(t[r])&&(t[r-1]+=`
|
|
256
|
+
`+t[r],t.splice(r,1));return t.filter(r=>r.trim()).map(r=>({key:r.substr(0,r.indexOf(":")).trim().toLowerCase(),line:r}))}};C9.exports=A_});var O9=_((oVe,A9)=>{"use strict";f();var{Transform:yve}=X("stream"),vve=X("crypto"),O_=class extends yve{constructor(t){super(),t=t||{},this.chunkBuffer=[],this.chunkBufferLen=0,this.bodyHash=vve.createHash(t.hashAlgo||"sha1"),this.remainder="",this.byteLength=0,this.debug=t.debug,this._debugBody=t.debug?[]:!1}updateHash(t){let r,n="",i="file";for(let a=t.length-1;a>=0;a--){let o=t[a];if(!(i==="file"&&(o===10||o===13))){if(i==="file"&&(o===9||o===32))i="line";else if(!(i==="line"&&(o===9||o===32))){if((i==="file"||i==="line")&&(i="body",a===t.length-1))break}}if(a===0){if(i==="file"&&(!this.remainder||/[\r\n]$/.test(this.remainder))||i==="line"&&(!this.remainder||/[ \t]$/.test(this.remainder))){this.remainder+=t.toString("binary");return}else if(i==="line"||i==="file"){n=t.toString("binary"),t=!1;break}}if(i==="body"){n=t.slice(a+1).toString("binary"),t=t.slice(0,a+1);break}}let s=!!this.remainder;if(t&&!s){for(let a=0,o=t.length;a<o;a++)if(a&&t[a]===10&&t[a-1]!==13){s=!0;break}else if(a&&t[a]===13&&t[a-1]===32){s=!0;break}else if(a&&t[a]===32&&t[a-1]===32){s=!0;break}else if(t[a]===9){s=!0;break}}s?(r=this.remainder+(t?t.toString("binary"):""),this.remainder=n,r=r.replace(/\r?\n/g,`
|
|
257
|
+
`).replace(/[ \t]*$/gm,"").replace(/[ \t]+/gm," ").replace(/\n/g,`\r
|
|
258
|
+
`),t=Buffer.from(r,"binary")):n&&(this.remainder=n),this.debug&&this._debugBody.push(t),this.bodyHash.update(t)}_transform(t,r,n){if(!t||!t.length)return n();typeof t=="string"&&(t=Buffer.from(t,r)),this.updateHash(t),this.byteLength+=t.length,this.push(t),n()}_flush(t){/[\r\n]$/.test(this.remainder)&&this.byteLength>2&&this.bodyHash.update(Buffer.from(`\r
|
|
259
|
+
`)),this.byteLength||this.push(Buffer.from(`\r
|
|
260
|
+
`)),this.emit("hash",this.bodyHash.digest("base64"),this.debug?Buffer.concat(this._debugBody):!1),t()}};A9.exports=O_});var I9=_((cVe,N_)=>{"use strict";f();var _ve=f_(),wve=su(),Eve=X("crypto");N_.exports=(e,t,r,n)=>{n=n||{};let s=n.headerFieldNames||"From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive",a=N9(e,s,n.skipFields),o=Dve(n.domainName,n.keySelector,a.fieldNames,t,r);a.headers+="dkim-signature:"+F9(o);let l=Eve.createSign(("rsa-"+t).toUpperCase());l.update(a.headers);let c;try{c=l.sign(n.privateKey,"base64")}catch{return!1}return o+c.replace(/(^.{73}|.{75}(?!\r?\n|\r))/g,`$&\r
|
|
261
|
+
`).trim()};N_.exports.relaxedHeaders=N9;function Dve(e,t,r,n,i){let s=["v=1","a=rsa-"+n,"c=relaxed/relaxed","d="+_ve.toASCII(e),"q=dns/txt","s="+t,"bh="+i,"h="+r].join("; ");return wve.foldLines("DKIM-Signature: "+s,76)+`;\r
|
|
262
|
+
b=`}function N9(e,t,r){let n=new Set,i=new Set,s=new Map;(r||"").toLowerCase().split(":").forEach(l=>{i.add(l.trim())}),(t||"").toLowerCase().split(":").filter(l=>!i.has(l.trim())).forEach(l=>{n.add(l.trim())});for(let l=e.length-1;l>=0;l--){let c=e[l];n.has(c.key)&&!s.has(c.key)&&s.set(c.key,F9(c.line))}let a=[],o=[];return n.forEach(l=>{s.has(l)&&(o.push(l),a.push(l+":"+s.get(l)))}),{headers:a.join(`\r
|
|
263
|
+
`)+`\r
|
|
264
|
+
`,fieldNames:o.join(":")}}function F9(e){return e.substr(e.indexOf(":")+1).replace(/\r?\n/g,"").replace(/\s+/g," ").trim()}});var P9=_((pVe,L9)=>{"use strict";f();var Sve=T9(),kve=O9(),Cve=I9(),{PassThrough:F_}=X("stream"),I_=X("fs"),Tve=X("path"),Ave=X("crypto"),Ove="sha256",Nve=2*1024*1024,L_=class{constructor(t,r,n,i){this.options=t||{},this.keys=r,this.cacheTreshold=Number(this.options.cacheTreshold)||Nve,this.hashAlgo=this.options.hashAlgo||Ove,this.cacheDir=this.options.cacheDir||!1,this.chunks=[],this.chunklen=0,this.readPos=0,this.cachePath=this.cacheDir?Tve.join(this.cacheDir,"message."+Date.now()+"-"+Ave.randomBytes(14).toString("hex")):!1,this.cache=!1,this.headers=!1,this.bodyHash=!1,this.parser=!1,this.relaxedBody=!1,this.input=n,this.output=i,this.output.usingCache=!1,this.hasErrored=!1,this.input.on("error",s=>{this.hasErrored=!0,this.cleanup(),i.emit("error",s)})}cleanup(){!this.cache||!this.cachePath||I_.unlink(this.cachePath,()=>!1)}createReadCache(){this.cache=I_.createReadStream(this.cachePath),this.cache.once("error",t=>{this.cleanup(),this.output.emit("error",t)}),this.cache.once("close",()=>{this.cleanup()}),this.cache.pipe(this.output)}sendNextChunk(){if(this.hasErrored)return;if(this.readPos>=this.chunks.length)return this.cache?this.createReadCache():this.output.end();let t=this.chunks[this.readPos++];if(this.output.write(t)===!1)return this.output.once("drain",()=>{this.sendNextChunk()});setImmediate(()=>this.sendNextChunk())}sendSignedOutput(){let t=0,r=()=>{if(t>=this.keys.length)return this.output.write(this.parser.rawHeaders),setImmediate(()=>this.sendNextChunk());let n=this.keys[t++],i=Cve(this.headers,this.hashAlgo,this.bodyHash,{domainName:n.domainName,keySelector:n.keySelector,privateKey:n.privateKey,headerFieldNames:this.options.headerFieldNames,skipFields:this.options.skipFields});return i&&this.output.write(Buffer.from(i+`\r
|
|
265
|
+
`)),setImmediate(r)};if(this.bodyHash&&this.headers)return r();this.output.write(this.parser.rawHeaders),this.sendNextChunk()}createWriteCache(){this.output.usingCache=!0,this.cache=I_.createWriteStream(this.cachePath),this.cache.once("error",t=>{this.cleanup(),this.relaxedBody.unpipe(this.cache),this.relaxedBody.on("readable",()=>{for(;this.relaxedBody.read()!==null;);}),this.hasErrored=!0,this.output.emit("error",t)}),this.cache.once("close",()=>{this.sendSignedOutput()}),this.relaxedBody.removeAllListeners("readable"),this.relaxedBody.pipe(this.cache)}signStream(){this.parser=new Sve,this.relaxedBody=new kve({hashAlgo:this.hashAlgo}),this.parser.on("headers",t=>{this.headers=t}),this.relaxedBody.on("hash",t=>{this.bodyHash=t}),this.relaxedBody.on("readable",()=>{let t;if(!this.cache){for(;(t=this.relaxedBody.read())!==null;)if(this.chunks.push(t),this.chunklen+=t.length,this.chunklen>=this.cacheTreshold&&this.cachePath)return this.createWriteCache()}}),this.relaxedBody.on("end",()=>{this.cache||this.sendSignedOutput()}),this.parser.pipe(this.relaxedBody),setImmediate(()=>this.input.pipe(this.parser))}},P_=class{constructor(t){this.options=t||{},this.keys=[].concat(this.options.keys||{domainName:t.domainName,keySelector:t.keySelector,privateKey:t.privateKey})}sign(t,r){let n=new F_,i=t,s=!1;Buffer.isBuffer(t)?(s=t,i=new F_):typeof t=="string"&&(s=Buffer.from(t),i=new F_);let a=this.options;r&&Object.keys(r).length&&(a=Object.assign({},r,this.options));let o=new L_(a,this.keys,i,n);return setImmediate(()=>{o.signStream(),s&&setImmediate(()=>{i.end(s)})}),n}};L9.exports=P_});var B9=_((dVe,j9)=>{"use strict";f();var R9=X("net"),M9=X("tls"),Fve=X("url"),Ive=Nn();function q9(e,t,r,n){let i=Fve.parse(e),s={host:i.hostname,port:Number(i.port)?Number(i.port):i.protocol==="https:"?443:80},a;i.protocol==="https:"?(s.rejectUnauthorized=!1,a=M9.connect.bind(M9)):a=R9.connect.bind(R9);let o,l=!1,c=u=>{if(!l){l=!0;try{o.destroy()}catch{}n(u)}},p=()=>{let u=new Error("Proxy socket timed out");u.code="ETIMEDOUT",c(u)};o=a(s,()=>{if(l)return;let u={Host:r+":"+t,Connection:"close"};i.auth&&(u["Proxy-Authorization"]="Basic "+Buffer.from(i.auth).toString("base64")),o.write("CONNECT "+r+":"+t+` HTTP/1.1\r
|
|
266
|
+
`+Object.keys(u).map(m=>m+": "+u[m]).join(`\r
|
|
267
|
+
`)+`\r
|
|
268
|
+
\r
|
|
269
|
+
`);let h="",d=m=>{let b,v;if(!l&&(h+=m.toString("binary"),b=h.match(/\r\n\r\n/))){if(o.removeListener("data",d),v=h.substr(b.index+b[0].length),h=h.substr(0,b.index),v&&o.unshift(Buffer.from(v,"binary")),l=!0,b=h.match(/^HTTP\/\d+\.\d+ (\d+)/i),!b||(b[1]||"").charAt(0)!=="2"){try{o.destroy()}catch{}let w=new Error("Invalid response from proxy"+(b&&": "+b[1]||""));return w.code=Ive.EPROXY,n(w)}return o.removeListener("error",c),o.removeListener("timeout",p),o.setTimeout(0),n(null,o)}};o.on("data",d)}),o.setTimeout(q9.timeout||30*1e3),o.on("timeout",p),o.once("error",c)}j9.exports=q9});var H9=_((mVe,z9)=>{"use strict";f();var $9=Tr(),Lve=kh(),Jo=su(),R_=class{constructor(t,r){this.mailer=t,this.data={},this.message=null,r=r||{};let n=t.options||{},i=t._defaults||{};Object.assign(this.data,r),this.data.headers=this.data.headers||{},Object.keys(i).forEach(s=>{s in this.data?s==="headers"&&Object.keys(i.headers).forEach(a=>{a in this.data.headers||(this.data.headers[a]=i.headers[a])}):this.data[s]=i[s]}),["disableFileAccess","disableUrlAccess","normalizeHeaderKey"].forEach(s=>{s in n&&(this.data[s]=n[s])})}resolveContent(...t){return $9.resolveContent(...t)}resolveAll(t){let r=[[this.data,"html"],[this.data,"text"],[this.data,"watchHtml"],[this.data,"amp"],[this.data,"icalEvent"]];this.data.alternatives&&this.data.alternatives.length&&this.data.alternatives.forEach((l,c)=>{r.push([this.data.alternatives,c])}),this.data.attachments&&this.data.attachments.length&&this.data.attachments.forEach((l,c)=>{l.filename||(l.filename=(l.path||l.href||"").split("/").pop().split("?").shift()||"attachment-"+(c+1),l.filename.indexOf(".")<0&&(l.filename+="."+Jo.detectExtension(l.contentType))),l.contentType||(l.contentType=Jo.detectMimeType(l.filename||l.path||l.href||"bin")),r.push([this.data.attachments,c])});let n=new Lve;["from","to","cc","bcc","sender","replyTo"].forEach(l=>{let c;this.message?c=[].concat(n._parseAddresses(this.message.getHeader(l==="replyTo"?"reply-to":l))||[]):this.data[l]&&(c=[].concat(n._parseAddresses(this.data[l])||[])),c&&c.length?this.data[l]=c:l in this.data&&(this.data[l]=null)}),["from","sender"].forEach(l=>{this.data[l]&&(this.data[l]=this.data[l].shift())});let a=0,o=()=>{if(a>=r.length)return t(null,this.data);let l=r[a++];if(!l[0]||!l[0][l[1]])return o();$9.resolveContent(...l,(c,p)=>{if(c)return t(c);let u={content:p};l[0][l[1]]&&typeof l[0][l[1]]=="object"&&!Buffer.isBuffer(l[0][l[1]])&&Object.keys(l[0][l[1]]).forEach(h=>{!(h in u)&&!["content","path","href","raw"].includes(h)&&(u[h]=l[0][l[1]][h])}),l[0][l[1]]=u,o()})};setImmediate(()=>o())}normalize(t){let r=this.data.envelope||this.message.getEnvelope(),n=this.message.messageId();this.resolveAll((i,s)=>i?t(i):(s.envelope=r,s.messageId=n,["html","text","watchHtml","amp"].forEach(a=>{s[a]&&s[a].content&&(typeof s[a].content=="string"?s[a]=s[a].content:Buffer.isBuffer(s[a].content)&&(s[a]=s[a].content.toString()))}),s.icalEvent&&Buffer.isBuffer(s.icalEvent.content)&&(s.icalEvent.content=s.icalEvent.content.toString("base64"),s.icalEvent.encoding="base64"),s.alternatives&&s.alternatives.length&&s.alternatives.forEach(a=>{a&&a.content&&Buffer.isBuffer(a.content)&&(a.content=a.content.toString("base64"),a.encoding="base64")}),s.attachments&&s.attachments.length&&s.attachments.forEach(a=>{a&&a.content&&Buffer.isBuffer(a.content)&&(a.content=a.content.toString("base64"),a.encoding="base64")}),s.normalizedHeaders={},Object.keys(s.headers||{}).forEach(a=>{let o=[].concat(s.headers[a]||[]).shift();o=o&&o.value||o,o&&(["references","in-reply-to","message-id","content-id"].includes(a)&&(o=this.message._encodeHeaderValue(a,o)),s.normalizedHeaders[a]=o)}),s.list&&typeof s.list=="object"&&this._getListHeaders(s.list).forEach(o=>{s.normalizedHeaders[o.key]=o.value.map(l=>l&&l.value||l).join(", ")}),s.references&&(s.normalizedHeaders.references=this.message._encodeHeaderValue("references",s.references)),s.inReplyTo&&(s.normalizedHeaders["in-reply-to"]=this.message._encodeHeaderValue("in-reply-to",s.inReplyTo)),t(null,s)))}setMailerHeader(){!this.message||!this.data.xMailer||this.message.setHeader("X-Mailer",this.data.xMailer)}setPriorityHeaders(){if(!(!this.message||!this.data.priority))switch((this.data.priority||"").toString().toLowerCase()){case"high":this.message.setHeader("X-Priority","1 (Highest)"),this.message.setHeader("X-MSMail-Priority","High"),this.message.setHeader("Importance","High");break;case"low":this.message.setHeader("X-Priority","5 (Lowest)"),this.message.setHeader("X-MSMail-Priority","Low"),this.message.setHeader("Importance","Low");break;default:}}setListHeaders(){!this.message||!this.data.list||typeof this.data.list!="object"||this._getListHeaders(this.data.list).forEach(t=>{t.value.forEach(r=>{this.message.addHeader(t.key,r)})})}_getListHeaders(t){return Object.keys(t).map(r=>({key:"list-"+r.toLowerCase().trim(),value:[].concat(t[r]||[]).map(n=>({prepared:!0,foldLines:!0,value:[].concat(n||[]).map(i=>{if(typeof i=="string"&&(i={url:i}),i&&i.url){if(r.toLowerCase().trim()==="id"){let a=i.comment||"";return Jo.isPlainText(a)?a='"'+a+'"':a=Jo.encodeWord(a),(i.comment?a+" ":"")+this._formatListUrl(i.url).replace(/^<[^:]+\/{,2}/,"")}let s=i.comment||"";return Jo.isPlainText(s)||(s=Jo.encodeWord(s)),this._formatListUrl(i.url)+(i.comment?" ("+s+")":"")}return""}).filter(i=>i).join(", ")}))}))}_formatListUrl(t){return t=t.replace(/[\s<]+|[\s>]+/g,""),/^(https?|mailto|ftp):/.test(t)?"<"+t+">":/^[^@]+@[^@]+$/.test(t)?"<mailto:"+t+">":"<http://"+t+">"}};z9.exports=R_});var K9=_((xVe,W9)=>{"use strict";f();var Pve=X("events"),U9=Tr(),Rve=c_(),Mve=k9(),V9=P9(),qve=B9(),G9=Nn(),jve=X("util"),Bve=X("url"),M_=On(),$ve=H9(),zve=X("net"),Hve=X("dns"),Uve=X("crypto"),q_=class extends Pve{constructor(t,r,n){super(),this.options=r||{},this._defaults=n||{},this._defaultPlugins={compile:[(...i)=>this._convertDataImages(...i)],stream:[]},this._userPlugins={compile:[],stream:[]},this.meta=new Map,this.dkim=this.options.dkim?new V9(this.options.dkim):!1,this.transporter=t,this.transporter.mailer=this,this.logger=U9.getLogger(this.options,{component:this.options.component||"mail"}),this.logger.debug({tnx:"create"},"Creating transport: %s",this.getVersionString()),typeof this.transporter.on=="function"&&(this.transporter.on("log",i=>{this.logger.debug({tnx:"transport"},"%s: %s",i.type,i.message)}),this.transporter.on("error",i=>{this.logger.error({err:i,tnx:"transport"},"Transport Error: %s",i.message),this.emit("error",i)}),this.transporter.on("idle",(...i)=>{this.emit("idle",...i)}),this.transporter.on("clear",(...i)=>{this.emit("clear",...i)})),["close","isIdle","verify"].forEach(i=>{this[i]=(...s)=>typeof this.transporter[i]=="function"?(i==="verify"&&typeof this.getSocket=="function"&&(this.transporter.getSocket=this.getSocket,this.getSocket=!1),this.transporter[i](...s)):(this.logger.warn({tnx:"transport",methodName:i},"Non existing method %s called for transport",i),!1)}),this.options.proxy&&typeof this.options.proxy=="string"&&this.setupProxy(this.options.proxy)}use(t,r){return t=(t||"").toString(),this._userPlugins.hasOwnProperty(t)?this._userPlugins[t].push(r):this._userPlugins[t]=[r],this}sendMail(t,r=null){let n;r||(n=new Promise((s,a)=>{r=U9.callbackPromise(s,a)})),typeof this.getSocket=="function"&&(this.transporter.getSocket=this.getSocket,this.getSocket=!1);let i=new $ve(this,t);return this.logger.debug({tnx:"transport",name:this.transporter.name,version:this.transporter.version,action:"send"},"Sending mail using %s/%s",this.transporter.name,this.transporter.version),this._processPlugins("compile",i,s=>{if(s)return this.logger.error({err:s,tnx:"plugin",action:"compile"},"PluginCompile Error: %s",s.message),r(s);i.message=new Mve(i.data).compile(),i.setMailerHeader(),i.setPriorityHeaders(),i.setListHeaders(),this._processPlugins("stream",i,a=>{if(a)return this.logger.error({err:a,tnx:"plugin",action:"stream"},"PluginStream Error: %s",a.message),r(a);(i.data.dkim||this.dkim)&&i.message.processFunc(o=>{let l=i.data.dkim?new V9(i.data.dkim):this.dkim;return this.logger.debug({tnx:"DKIM",messageId:i.message.messageId(),dkimDomains:l.keys.map(c=>c.keySelector+"."+c.domainName).join(", ")},"Signing outgoing message with %s keys",l.keys.length),l.sign(o,i.data._dkim)}),this.transporter.send(i,(...o)=>{o[0]&&this.logger.error({err:o[0],tnx:"transport",action:"send"},"Send Error: %s",o[0].message),r(...o)})})}),n}getVersionString(){return jve.format("%s (%s; +%s; %s/%s)",M_.name,M_.version,M_.homepage,this.transporter.name,this.transporter.version)}_processPlugins(t,r,n){if(t=(t||"").toString(),!this._userPlugins.hasOwnProperty(t))return n();let i=this._userPlugins[t]||[],s=this._defaultPlugins[t]||[];if(i.length&&this.logger.debug({tnx:"transaction",pluginCount:i.length,step:t},"Using %s plugins for %s",i.length,t),i.length+s.length===0)return n();let a=0,o="default",l=()=>{let c=o==="default"?s:i;if(a>=c.length)if(o==="default"&&i.length)o="user",a=0,c=i;else return n();let p=c[a++];p(r,u=>{if(u)return n(u);l()})};l()}setupProxy(t){let r=Bve.parse(t);this.getSocket=(n,i)=>{let s=r.protocol.replace(/:$/,"").toLowerCase();if(this.meta.has("proxy_handler_"+s))return this.meta.get("proxy_handler_"+s)(r,n,i);switch(s){case"http":case"https":qve(r.href,n.port,n.host,(o,l)=>o?i(o):i(null,{connection:l}));return;case"socks":case"socks5":case"socks4":case"socks4a":{if(!this.meta.has("proxy_socks_module")){let l=new Error("Socks module not loaded");return l.code=G9.EPROXY,i(l)}let o=l=>{let c=!!this.meta.get("proxy_socks_module").SocksClient,p=c?this.meta.get("proxy_socks_module").SocksClient:this.meta.get("proxy_socks_module"),u=Number(r.protocol.replace(/\D/g,""))||5,h={proxy:{ipaddress:l,port:Number(r.port),type:u},[c?"destination":"target"]:{host:n.host,port:n.port},command:"connect"};if(r.auth){let d=decodeURIComponent(r.auth.split(":").shift()),m=decodeURIComponent(r.auth.split(":").pop());c?(h.proxy.userId=d,h.proxy.password=m):u===4?h.userid=d:h.authentication={username:d,password:m}}p.createConnection(h,(d,m)=>d?i(d):i(null,{connection:m.socket||m}))};return zve.isIP(r.hostname)?o(r.hostname):Hve.resolve(r.hostname,(l,c)=>{if(l)return i(l);o(Array.isArray(c)?c[0]:c)})}}let a=new Error("Unknown proxy configuration");a.code=G9.EPROXY,i(a)}}_convertDataImages(t,r){if(!this.options.attachDataUrls&&!t.data.attachDataUrls||!t.data.html)return r();t.resolveContent(t.data,"html",(n,i)=>{if(n)return r(n);let s=0;i=(i||"").toString().replace(/(<img\b[^<>]{0,1024} src\s{0,20}=[\s"']{0,20})(data:([^;]+);[^"'>\s]+)/gi,(a,o,l,c)=>{let p=Uve.randomBytes(10).toString("hex")+"@localhost";return t.data.attachments||(t.data.attachments=[]),Array.isArray(t.data.attachments)||(t.data.attachments=[].concat(t.data.attachments||[])),t.data.attachments.push({path:l,cid:p,filename:"image-"+ ++s+"."+Rve.detectExtension(c)}),o+"cid:"+p}),t.data.html=i,r()})}set(t,r){return this.meta.set(t,r)}get(t){return this.meta.get(t)}};W9.exports=q_});var J9=_((yVe,Z9)=>{"use strict";f();var{Transform:Vve}=X("stream"),j_=class extends Vve{constructor(t){super(t),this.options=t||{},this.inByteCount=0,this.outByteCount=0,this.lastByte=!1}_transform(t,r,n){let i=[],s=0,a,o,l=0,c;if(!t||!t.length)return n();for(typeof t=="string"&&(t=Buffer.from(t)),this.inByteCount+=t.length,a=0,o=t.length;a<o;a++)t[a]===46?(a&&t[a-1]===10||!a&&(!this.lastByte||this.lastByte===10))&&(c=t.slice(l,a+1),i.push(c),i.push(Buffer.from(".")),s+=c.length+1,l=a+1):t[a]===10&&(a&&t[a-1]!==13||!a&&this.lastByte!==13)&&(a>l?(c=t.slice(l,a),i.push(c),s+=c.length+2):s+=2,i.push(Buffer.from(`\r
|
|
270
|
+
`)),l=a+1);s?(l<t.length&&(c=t.slice(l),i.push(c),s+=c.length),this.outByteCount+=s,this.push(Buffer.concat(i,s))):(this.outByteCount+=t.length,this.push(t)),this.lastByte=t[t.length-1],n()}_flush(t){let r;this.lastByte===10?r=Buffer.from(`.\r
|
|
271
|
+
`):this.lastByte===13?r=Buffer.from(`
|
|
272
|
+
.\r
|
|
273
|
+
`):r=Buffer.from(`\r
|
|
274
|
+
.\r
|
|
275
|
+
`),this.outByteCount+=r.length,this.push(r),t()}};Z9.exports=j_});var Ch=_((_Ve,n7)=>{"use strict";f();var Gve=On(),{EventEmitter:Wve}=X("events"),Q9=X("net"),Y9=X("tls"),Kve=X("os"),X9=X("crypto"),Zve=J9(),{PassThrough:e7}=X("stream"),Ea=Tr(),Jve=120*1e3,t7=600*1e3,Qve=30*1e3,Yve=30*1e3,Xve=()=>{};function r7(e){if(!e)return e;let t=Buffer.from(e,"binary").toString("utf8");return t.includes("\uFFFD")?e:t}var B_=class extends Wve{constructor(t){super(t),this.id=X9.randomBytes(8).toString("base64").replace(/\W/g,""),this.stage="init",this.options=t||{},this.secureConnection=!!this.options.secure,this.alreadySecured=!!this.options.secured,this.port=Number(this.options.port)||(this.secureConnection?465:587),this.host=this.options.host||"localhost",this.servername=this.options.servername?this.options.servername:Q9.isIP(this.host)?!1:this.host,this.allowInternalNetworkInterfaces=this.options.allowInternalNetworkInterfaces||!1,typeof this.options.secure>"u"&&this.port===465&&(this.secureConnection=!0),this.name=(this.options.name||this._getHostname()).toString().replace(/[\r\n]+/g,""),this.logger=Ea.getLogger(this.options,{component:this.options.component||"smtp-connection",sid:this.id}),this.customAuth=new Map;for(let r of Object.keys(this.options.customAuth||{})){let n=(r||"").toString().trim().toUpperCase();n&&this.customAuth.set(n,this.options.customAuth[r])}this.version=Gve.version,this.authenticated=!1,this.destroyed=!1,this.secure=!!this.secureConnection,this._remainder="",this._responseQueue=[],this.lastServerResponse=!1,this._socket=!1,this._supportedAuth=[],this.allowsAuth=!1,this._envelope=!1,this._supportedExtensions=[],this._maxAllowedSize=0,this._responseActions=[],this._recipientQueue=[],this._greetingTimeout=!1,this._connectionTimeout=!1,this._destroyed=!1,this._closing=!1,this._onSocketData=r=>this._onData(r),this._onSocketError=r=>this._onError(r,"ESOCKET",!1,"CONN"),this._onSocketClose=()=>this._onClose(),this._onSocketEnd=()=>this._onEnd(),this._onSocketTimeout=()=>this._onTimeout(),this._onConnectionSocketError=r=>this._onConnectionError(r,"ESOCKET"),this._connectionAttemptId=0}connect(t){if(typeof t=="function"){this.once("connect",()=>{this.logger.debug({tnx:"smtp"},"SMTP handshake finished"),t()});let n=this._isDestroyedMessage("connect");if(n)return t(this._formatError(n,"ECONNECTION",!1,"CONN"))}let r={port:this.port,host:this.host,allowInternalNetworkInterfaces:this.allowInternalNetworkInterfaces,timeout:this.options.dnsTimeout||Yve};if(this.options.localAddress&&(r.localAddress=this.options.localAddress),this.options.connection){this._socket=this.options.connection,this._setupConnectionHandlers(),this.secureConnection&&!this.alreadySecured?setImmediate(()=>this._upgradeConnection(n=>{if(n){this._onError(new Error("Error initiating TLS - "+(n.message||n)),"ETLS",!1,"CONN");return}this._onConnect()})):setImmediate(()=>this._onConnect());return}else return this.options.socket?(this._socket=this.options.socket,this._resolveAndConnect(r,n=>{try{this._socket.connect(this.port,this.host,()=>{this._socket.setKeepAlive(!0),this._onConnect()}),this._setupConnectionHandlers()}catch(i){return setImmediate(()=>this._onError(i,"ECONNECTION",!1,"CONN"))}})):(this.secureConnection&&(Object.assign(r,this.options.tls||{}),this.servername&&!r.servername&&(r.servername=this.servername)),this._resolveAndConnect(r,n=>{this._fallbackAddresses=(n._addresses||[]).filter(i=>i!==r.host),this._connectOpts=Object.assign({},r),this._connectToHost(r,this.secureConnection)}))}_resolveAndConnect(t,r){return Ea.resolveHostname(t,(n,i)=>{if(n)return setImmediate(()=>this._onError(n,"EDNS",!1,"CONN"));this.logger.debug({tnx:"dns",source:t.host,resolved:i.host,cached:!!i.cached},"Resolved %s as %s [cache %s]",t.host,i.host,i.cached?"hit":"miss");for(let s of Object.keys(i))s.charAt(0)!=="_"&&i[s]&&(t[s]=i[s]);r(i)})}_connectToHost(t,r){this._connectionAttemptId++;let n=this._connectionAttemptId,i=r?Y9.connect:Q9.connect;try{this._socket=i(t,()=>{this._connectionAttemptId===n&&(this._socket.setKeepAlive(!0),this._onConnect())}),this._setupConnectionHandlers()}catch(s){return setImmediate(()=>this._onError(s,"ECONNECTION",!1,"CONN"))}}_setupConnectionHandlers(){this._connectionTimeout=setTimeout(()=>{this._onConnectionError("Connection timeout","ETIMEDOUT")},this.options.connectionTimeout||Jve),this._socket.on("error",this._onConnectionSocketError)}_onConnectionError(t,r){if(clearTimeout(this._connectionTimeout),!(this._fallbackAddresses&&this._fallbackAddresses.length&&this.stage==="init"&&!this._destroyed)){this._onError(t,r,!1,"CONN");return}let i=this._fallbackAddresses.shift();if(this.logger.info({tnx:"network",failedHost:this._connectOpts.host,nextHost:i,error:t.message||t},"Connection to %s failed, trying %s",this._connectOpts.host,i),this._socket){try{this._socket.removeListener("error",this._onConnectionSocketError),this._socket.destroy()}catch{}this._socket=null}this._connectOpts.host=i,this._connectToHost(this._connectOpts,this.secureConnection)}quit(){this._sendCommand("QUIT"),this._responseActions.push(this.close)}close(){if(clearTimeout(this._connectionTimeout),clearTimeout(this._greetingTimeout),this._responseActions=[],this._closing)return;this._closing=!0;let t=this.stage==="init"?"destroy":"end";this.logger.debug({tnx:"smtp"},'Closing connection to the server using "%s"',t);let r=this._socket&&this._socket.socket||this._socket;if(r&&!r.destroyed)try{r.setTimeout(0),r.removeListener("data",this._onSocketData),r.removeListener("timeout",this._onSocketTimeout),r.removeListener("close",this._onSocketClose),r.removeListener("end",this._onSocketEnd),r.removeListener("error",this._onSocketError),r.removeListener("error",this._onConnectionSocketError),r.on("error",Xve),r[t]()}catch{}this._destroy()}login(t,r){let n=this._isDestroyedMessage("login");if(n)return r(this._formatError(n,"ECONNECTION",!1,"API"));if(this._auth=t||{},this._authMethod=(this._auth.method||"").toString().trim().toUpperCase()||!1,!this._authMethod&&this._auth.oauth2&&!this._auth.credentials?this._authMethod="XOAUTH2":(!this._authMethod||this._authMethod==="XOAUTH2"&&!this._auth.oauth2)&&(this._authMethod=(this._supportedAuth[0]||"PLAIN").toUpperCase().trim()),this._authMethod!=="XOAUTH2"&&(!this._auth.credentials||!this._auth.credentials.user||!this._auth.credentials.pass))if(this._auth.user&&this._auth.pass||this.customAuth.has(this._authMethod))this._auth.credentials={user:this._auth.user,pass:this._auth.pass,options:this._auth.options};else return r(this._formatError('Missing credentials for "'+this._authMethod+'"',"EAUTH",!1,"API"));if(this.customAuth.has(this._authMethod)){let i=this.customAuth.get(this._authMethod),s,a=!1,o=()=>{a||(a=!0,this.logger.info({tnx:"smtp",username:this._auth.user,action:"authenticated",method:this._authMethod},"User %s authenticated",JSON.stringify(this._auth.user)),this.authenticated=!0,r(null,!0))},l=p=>{a||(a=!0,r(this._formatError(p,"EAUTH",s,"AUTH "+this._authMethod)))},c=i({auth:this._auth,method:this._authMethod,extensions:[].concat(this._supportedExtensions),authMethods:[].concat(this._supportedAuth),maxAllowedSize:this._maxAllowedSize||!1,sendCommand:(p,u)=>{let h;return u||(h=new Promise((d,m)=>{u=Ea.callbackPromise(d,m)})),this._responseActions.push(d=>{s=d;let m=d.match(/^(\d+)(?:\s(\d+\.\d+\.\d+))?\s/),b={command:p,response:d};m?(b.status=Number(m[1])||0,m[2]&&(b.code=m[2]),b.text=d.substr(m[0].length)):(b.text=d,b.status=0),u(null,b)}),setImmediate(()=>this._sendCommand(p)),h},resolve:o,reject:l});c&&typeof c.catch=="function"&&c.then(o).catch(l);return}switch(this._authMethod){case"XOAUTH2":this._handleXOauth2Token(!1,r);return;case"LOGIN":this._responseActions.push(i=>{this._actionAUTH_LOGIN_USER(i,r)}),this._sendCommand("AUTH LOGIN");return;case"PLAIN":this._responseActions.push(i=>{this._actionAUTHComplete(i,r)}),this._sendCommand("AUTH PLAIN "+Buffer.from("\0"+this._auth.credentials.user+"\0"+this._auth.credentials.pass,"utf-8").toString("base64"),"AUTH PLAIN "+Buffer.from("\0"+this._auth.credentials.user+"\0/* secret */","utf-8").toString("base64"));return;case"CRAM-MD5":this._responseActions.push(i=>{this._actionAUTH_CRAM_MD5(i,r)}),this._sendCommand("AUTH CRAM-MD5");return}return r(this._formatError('Unknown authentication method "'+this._authMethod+'"',"EAUTH",!1,"API"))}send(t,r,n){if(!r)return n(this._formatError("Empty message","EMESSAGE",!1,"API"));let i=this._isDestroyedMessage("send message");if(i)return n(this._formatError(i,"ECONNECTION",!1,"API"));if(this._maxAllowedSize&&t.size>this._maxAllowedSize)return setImmediate(()=>{n(this._formatError("Message size larger than allowed "+this._maxAllowedSize,"EMESSAGE",!1,"MAIL FROM"))});let s=!1,a=function(){s||(s=!0,n(...arguments))};typeof r.on=="function"&&r.on("error",l=>a(this._formatError(l,"ESTREAM",!1,"API")));let o=Date.now();this._setEnvelope(t,(l,c)=>{if(l){let h=new e7;return typeof r.pipe=="function"?r.pipe(h):(h.write(r),h.end()),a(l)}let p=Date.now(),u=this._createSendStream((h,d)=>h?a(h):(c.envelopeTime=p-o,c.messageTime=Date.now()-p,c.messageSize=u.outByteCount,c.response=d,a(null,c)));typeof r.pipe=="function"?r.pipe(u):(u.write(r),u.end())})}reset(t){this._sendCommand("RSET"),this._responseActions.push(r=>r.charAt(0)!=="2"?t(this._formatError("Could not reset session state. response="+r,"EPROTOCOL",r,"RSET")):(this._envelope=!1,t(null,!0)))}_onConnect(){if(clearTimeout(this._connectionTimeout),this.logger.info({tnx:"network",localAddress:this._socket.localAddress,localPort:this._socket.localPort,remoteAddress:this._socket.remoteAddress,remotePort:this._socket.remotePort},"%s established to %s:%s",this.secure?"Secure connection":"Connection",this._socket.remoteAddress,this._socket.remotePort),this._destroyed){this.close();return}this.stage="connected",this._socket.removeListener("data",this._onSocketData),this._socket.removeListener("timeout",this._onSocketTimeout),this._socket.removeListener("close",this._onSocketClose),this._socket.removeListener("end",this._onSocketEnd),this._socket.removeListener("error",this._onConnectionSocketError),this._socket.on("error",this._onSocketError),this._socket.on("data",this._onSocketData),this._socket.once("close",this._onSocketClose),this._socket.once("end",this._onSocketEnd),this._socket.setTimeout(this.options.socketTimeout||t7),this._socket.on("timeout",this._onSocketTimeout),this._greetingTimeout=setTimeout(()=>{this._socket&&!this._destroyed&&this._responseActions[0]===this._actionGreeting&&this._onError("Greeting never received","ETIMEDOUT",!1,"CONN")},this.options.greetingTimeout||Qve),this._responseActions.push(this._actionGreeting),this._socket.resume()}_onData(t){if(this._destroyed||!t||!t.length)return;let r=(t||"").toString("binary"),n=(this._remainder+r).split(/\r?\n/),i;this._remainder=n.pop();for(let s=0,a=n.length;s<a;s++){if(this._responseQueue.length&&(i=this._responseQueue[this._responseQueue.length-1],/^\d+-/.test(i.split(`
|
|
276
|
+
`).pop()))){this._responseQueue[this._responseQueue.length-1]+=`
|
|
277
|
+
`+n[s];continue}this._responseQueue.push(n[s])}this._responseQueue.length&&(i=this._responseQueue[this._responseQueue.length-1],/^\d+-/.test(i.split(`
|
|
278
|
+
`).pop()))||this._processResponse()}_onError(t,r,n,i){if(clearTimeout(this._connectionTimeout),clearTimeout(this._greetingTimeout),this._destroyed)return;t=this._formatError(t,r,n,i),["ETIMEDOUT","ESOCKET","ECONNECTION"].includes(t.code)?this.logger.warn(n,t.message):this.logger.error(n,t.message),this.emit("error",t),this.close()}_formatError(t,r,n,i){let s;/Error\]$/i.test(Object.prototype.toString.call(t))?s=t:s=new Error(t),r&&r!=="Error"&&(s.code=r),n&&(s.response=n,s.message+=": "+n);let a=typeof n=="string"&&Number((n.match(/^\d+/)||[])[0])||!1;return a&&(s.responseCode=a),i&&(s.command=i),s}_onClose(){let t=!1;if(this._remainder&&this._remainder.trim()&&(this.lastServerResponse=t=r7(this._remainder.trim()),(this.options.debug||this.options.transactionLog)&&this.logger.debug({tnx:"server"},t)),this.logger.info({tnx:"network"},"Connection closed"),this.upgrading&&!this._destroyed)return this._onError(new Error("Connection closed unexpectedly"),"ETLS",t,"CONN");if(![this._actionGreeting,this.close].includes(this._responseActions[0])&&!this._destroyed)return this._onError(new Error("Connection closed unexpectedly"),"ECONNECTION",t,"CONN");if(/^[45]\d{2}\b/.test(t))return this._onError(new Error("Connection closed unexpectedly"),"ECONNECTION",t,"CONN");this._destroy()}_onEnd(){this._socket&&!this._socket.destroyed&&this._socket.destroy()}_onTimeout(){return this._onError(new Error("Timeout"),"ETIMEDOUT",!1,"CONN")}_destroy(){this._destroyed||(this._destroyed=!0,this.emit("end"))}_upgradeConnection(t){this._socket.removeListener("data",this._onSocketData),this._socket.removeListener("timeout",this._onSocketTimeout);let r=this._socket,n=Object.assign({socket:this._socket,host:this.host},this.options.tls||{});this.servername&&!n.servername&&(n.servername=this.servername),this.upgrading=!0;try{this._socket=Y9.connect(n,()=>(this.secure=!0,this.upgrading=!1,this._socket.on("data",this._onSocketData),r.removeListener("close",this._onSocketClose),r.removeListener("end",this._onSocketEnd),r.removeListener("error",this._onSocketError),t(null,!0)))}catch(i){return t(i)}this._socket.on("error",this._onSocketError),this._socket.once("close",this._onSocketClose),this._socket.once("end",this._onSocketEnd),this._socket.setTimeout(this.options.socketTimeout||t7),this._socket.on("timeout",this._onSocketTimeout),r.resume()}_processResponse(){if(!this._responseQueue.length)return!1;let t=this.lastServerResponse=r7((this._responseQueue.shift()||"").toString());if(/^\d+-/.test(t.split(`
|
|
279
|
+
`).pop()))return;(this.options.debug||this.options.transactionLog)&&this.logger.debug({tnx:"server"},t.replace(/\r?\n$/,"")),t.trim()||setImmediate(()=>this._processResponse());let r=this._responseActions.shift();if(typeof r=="function")r.call(this,t),setImmediate(()=>this._processResponse());else return this._onError(new Error("Unexpected Response"),"EPROTOCOL",t,"CONN")}_sendCommand(t,r){if(!this._destroyed){if(this._socket.destroyed)return this.close();(this.options.debug||this.options.transactionLog)&&this.logger.debug({tnx:"client"},(r||t||"").toString().replace(/\r?\n$/,"")),this._socket.write(Buffer.from(t+`\r
|
|
280
|
+
`,"utf-8"))}}_setEnvelope(t,r){let n=[],i=!1;if(this._envelope=t||{},this._envelope.from=(this._envelope.from&&this._envelope.from.address||this._envelope.from||"").toString().trim(),this._envelope.to=[].concat(this._envelope.to||[]).map(s=>(s&&s.address||s||"").toString().trim()),!this._envelope.to.length)return r(this._formatError("No recipients defined","EENVELOPE",!1,"API"));if(this._envelope.from&&/[\r\n<>]/.test(this._envelope.from))return r(this._formatError("Invalid sender "+JSON.stringify(this._envelope.from),"EENVELOPE",!1,"API"));/[\x80-\uFFFF]/.test(this._envelope.from)&&(i=!0);for(let s=0,a=this._envelope.to.length;s<a;s++){if(!this._envelope.to[s]||/[\r\n<>]/.test(this._envelope.to[s]))return r(this._formatError("Invalid recipient "+JSON.stringify(this._envelope.to[s]),"EENVELOPE",!1,"API"));/[\x80-\uFFFF]/.test(this._envelope.to[s])&&(i=!0)}if(this._envelope.rcptQueue=[].concat(this._envelope.to||[]),this._envelope.rejected=[],this._envelope.rejectedErrors=[],this._envelope.accepted=[],this._envelope.dsn)try{this._envelope.dsn=this._setDsnEnvelope(this._envelope.dsn)}catch(s){return r(this._formatError("Invalid DSN "+s.message,"EENVELOPE",!1,"API"))}if(this._responseActions.push(s=>{this._actionMAIL(s,r)}),i&&this._supportedExtensions.includes("SMTPUTF8")&&(n.push("SMTPUTF8"),this._usingSmtpUtf8=!0),this._envelope.use8BitMime&&this._supportedExtensions.includes("8BITMIME")&&(n.push("BODY=8BITMIME"),this._using8BitMime=!0),this._envelope.size&&this._supportedExtensions.includes("SIZE")){let s=Number(this._envelope.size)||0;s>0&&n.push("SIZE="+s)}if(this._envelope.dsn&&this._supportedExtensions.includes("DSN")&&(this._envelope.dsn.ret&&n.push("RET="+Ea.encodeXText(this._envelope.dsn.ret)),this._envelope.dsn.envid&&n.push("ENVID="+Ea.encodeXText(this._envelope.dsn.envid))),this._envelope.requireTLSExtensionEnabled){if(!this.secure)return r(this._formatError("REQUIRETLS can only be used over TLS connections (RFC 8689)","EREQUIRETLS",!1,"MAIL FROM"));if(!this._supportedExtensions.includes("REQUIRETLS"))return r(this._formatError("Server does not support REQUIRETLS extension (RFC 8689)","EREQUIRETLS",!1,"MAIL FROM"));n.push("REQUIRETLS")}this._sendCommand("MAIL FROM:<"+this._envelope.from+">"+(n.length?" "+n.join(" "):""))}_setDsnEnvelope(t){let r=(t.ret||t.return||"").toString().toUpperCase()||null;if(r)switch(r){case"HDRS":case"HEADERS":r="HDRS";break;case"FULL":case"BODY":r="FULL";break}if(r&&!["FULL","HDRS"].includes(r))throw new Error("ret: "+JSON.stringify(r));let n=(t.envid||t.id||"").toString()||null,i=t.notify||null;if(i){typeof i=="string"&&(i=i.split(",")),i=i.map(l=>l.trim().toUpperCase());let a=["NEVER","SUCCESS","FAILURE","DELAY"];if(i.filter(l=>!a.includes(l)).length||i.length>1&&i.includes("NEVER"))throw new Error("notify: "+JSON.stringify(i.join(",")));i=i.join(",")}let s=(t.recipient||t.orcpt||"").toString()||null;return s&&s.indexOf(";")<0&&(s="rfc822;"+s),{ret:r,envid:n,notify:i,orcpt:s}}_getDsnRcptToArgs(){let t=[];return this._envelope.dsn&&this._supportedExtensions.includes("DSN")&&(this._envelope.dsn.notify&&t.push("NOTIFY="+Ea.encodeXText(this._envelope.dsn.notify)),this._envelope.dsn.orcpt&&t.push("ORCPT="+Ea.encodeXText(this._envelope.dsn.orcpt))),t.length?" "+t.join(" "):""}_createSendStream(t){let r=new Zve;if(this.options.lmtp?this._envelope.accepted.forEach((n,i)=>{let s=i===this._envelope.accepted.length-1;this._responseActions.push(a=>{this._actionLMTPStream(n,s,a,t)})}):this._responseActions.push(n=>{this._actionSMTPStream(n,t)}),r.pipe(this._socket,{end:!1}),this.options.debug){let n=new e7;n.on("readable",()=>{let i;for(;i=n.read();)this.logger.debug({tnx:"message"},i.toString("binary").replace(/\r?\n$/,""))}),r.pipe(n)}return r.once("end",()=>{this.logger.info({tnx:"message",inByteCount:r.inByteCount,outByteCount:r.outByteCount},"<%s bytes encoded mime message (source size %s bytes)>",r.outByteCount,r.inByteCount)}),r}_actionGreeting(t){if(clearTimeout(this._greetingTimeout),t.substr(0,3)!=="220"){this._onError(new Error("Invalid greeting. response="+t),"EPROTOCOL",t,"CONN");return}this.options.lmtp?(this._responseActions.push(this._actionLHLO),this._sendCommand("LHLO "+this.name)):(this._responseActions.push(this._actionEHLO),this._sendCommand("EHLO "+this.name))}_actionLHLO(t){if(t.charAt(0)!=="2"){this._onError(new Error("Invalid LHLO. response="+t),"EPROTOCOL",t,"LHLO");return}this._actionEHLO(t)}_actionEHLO(t){let r;if(t.substr(0,3)==="421"){this._onError(new Error("Server terminates connection. response="+t),"ECONNECTION",t,"EHLO");return}if(t.charAt(0)!=="2"){if(this.options.requireTLS){this._onError(new Error("EHLO failed but HELO does not support required STARTTLS. response="+t),"ECONNECTION",t,"EHLO");return}this._responseActions.push(this._actionHELO),this._sendCommand("HELO "+this.name);return}if(this._ehloLines=t.split(/\r?\n/).map(n=>n.replace(/^\d+[ -]/,"").trim()).filter(n=>n).slice(1),!this.secure&&!this.options.ignoreTLS&&(/[ -]STARTTLS\b/im.test(t)||this.options.requireTLS)){this._sendCommand("STARTTLS"),this._responseActions.push(this._actionSTARTTLS);return}/[ -]SMTPUTF8\b/im.test(t)&&this._supportedExtensions.push("SMTPUTF8"),/[ -]DSN\b/im.test(t)&&this._supportedExtensions.push("DSN"),/[ -]8BITMIME\b/im.test(t)&&this._supportedExtensions.push("8BITMIME"),/[ -]REQUIRETLS\b/im.test(t)&&this._supportedExtensions.push("REQUIRETLS"),/[ -]PIPELINING\b/im.test(t)&&this._supportedExtensions.push("PIPELINING"),/[ -]AUTH\b/i.test(t)&&(this.allowsAuth=!0),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)PLAIN/i.test(t)&&this._supportedAuth.push("PLAIN"),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)LOGIN/i.test(t)&&this._supportedAuth.push("LOGIN"),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)CRAM-MD5/i.test(t)&&this._supportedAuth.push("CRAM-MD5"),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)XOAUTH2/i.test(t)&&this._supportedAuth.push("XOAUTH2"),(r=t.match(/[ -]SIZE(?:[ \t]+(\d+))?/im))&&(this._supportedExtensions.push("SIZE"),this._maxAllowedSize=Number(r[1])||0),this.emit("connect")}_actionHELO(t){if(t.charAt(0)!=="2"){this._onError(new Error("Invalid HELO. response="+t),"EPROTOCOL",t,"HELO");return}this.allowsAuth=!0,this.emit("connect")}_actionSTARTTLS(t){if(t.charAt(0)!=="2"){if(this.options.opportunisticTLS)return this.logger.info({tnx:"smtp"},"Failed STARTTLS upgrade, continuing unencrypted"),this.emit("connect");this._onError(new Error("Error upgrading connection with STARTTLS"),"ETLS",t,"STARTTLS");return}this._upgradeConnection((r,n)=>{if(r){this._onError(new Error("Error initiating TLS - "+(r.message||r)),"ETLS",!1,"STARTTLS");return}this.logger.info({tnx:"smtp"},"Connection upgraded with STARTTLS"),n?this.options.lmtp?(this._responseActions.push(this._actionLHLO),this._sendCommand("LHLO "+this.name)):(this._responseActions.push(this._actionEHLO),this._sendCommand("EHLO "+this.name)):this.emit("connect")})}_actionAUTH_LOGIN_USER(t,r){if(!/^334[ -]/.test(t)){r(this._formatError('Invalid login sequence while waiting for "334 VXNlcm5hbWU6"',"EAUTH",t,"AUTH LOGIN"));return}this._responseActions.push(n=>{this._actionAUTH_LOGIN_PASS(n,r)}),this._sendCommand(Buffer.from(this._auth.credentials.user+"","utf-8").toString("base64"))}_actionAUTH_CRAM_MD5(t,r){let n=t.match(/^334\s+(.+)$/);if(!n)return r(this._formatError("Invalid login sequence while waiting for server challenge string","EAUTH",t,"AUTH CRAM-MD5"));let i=Buffer.from(n[1],"base64").toString("ascii"),s=X9.createHmac("md5",this._auth.credentials.pass);s.update(i);let a=this._auth.credentials.user+" "+s.digest("hex");this._responseActions.push(o=>{this._actionAUTH_CRAM_MD5_PASS(o,r)}),this._sendCommand(Buffer.from(a).toString("base64"),Buffer.from(this._auth.credentials.user+" /* secret */").toString("base64"))}_actionAUTH_CRAM_MD5_PASS(t,r){if(!t.match(/^235\s+/))return r(this._formatError('Invalid login sequence while waiting for "235"',"EAUTH",t,"AUTH CRAM-MD5"));this.logger.info({tnx:"smtp",username:this._auth.user,action:"authenticated",method:this._authMethod},"User %s authenticated",JSON.stringify(this._auth.user)),this.authenticated=!0,r(null,!0)}_actionAUTH_LOGIN_PASS(t,r){if(!/^334[ -]/.test(t))return r(this._formatError('Invalid login sequence while waiting for "334 UGFzc3dvcmQ6"',"EAUTH",t,"AUTH LOGIN"));this._responseActions.push(n=>{this._actionAUTHComplete(n,r)}),this._sendCommand(Buffer.from((this._auth.credentials.pass||"").toString(),"utf-8").toString("base64"),Buffer.from("/* secret */","utf-8").toString("base64"))}_actionAUTHComplete(t,r,n){if(!n&&typeof r=="function"&&(n=r,r=!1),t.substr(0,3)==="334"){this._responseActions.push(i=>{r||this._authMethod!=="XOAUTH2"?this._actionAUTHComplete(i,!0,n):setImmediate(()=>this._handleXOauth2Token(!0,n))}),this._sendCommand("");return}if(t.charAt(0)!=="2")return this.logger.info({tnx:"smtp",username:this._auth.user,action:"authfail",method:this._authMethod},"User %s failed to authenticate",JSON.stringify(this._auth.user)),n(this._formatError("Invalid login","EAUTH",t,"AUTH "+this._authMethod));this.logger.info({tnx:"smtp",username:this._auth.user,action:"authenticated",method:this._authMethod},"User %s authenticated",JSON.stringify(this._auth.user)),this.authenticated=!0,n(null,!0)}_actionMAIL(t,r){if(Number(t.charAt(0))!==2){let i=this._usingSmtpUtf8&&/^550 /.test(t)&&/[\x80-\uFFFF]/.test(this._envelope.from)?"Internationalized mailbox name not allowed":"Mail command failed";return r(this._formatError(i,"EENVELOPE",t,"MAIL FROM"))}if(!this._envelope.rcptQueue.length)return r(this._formatError("Can't send mail - no recipients defined","EENVELOPE",!1,"API"));this._recipientQueue=[];let n=this._supportedExtensions.includes("PIPELINING");do{let i=this._envelope.rcptQueue.shift();this._recipientQueue.push(i),this._responseActions.push(s=>{this._actionRCPT(s,r)}),this._sendCommand("RCPT TO:<"+i+">"+this._getDsnRcptToArgs())}while(n&&this._envelope.rcptQueue.length)}_actionRCPT(t,r){let n,i=this._recipientQueue.shift();if(Number(t.charAt(0))!==2){let s=this._usingSmtpUtf8&&/^553 /.test(t)&&/[\x80-\uFFFF]/.test(i)?"Internationalized mailbox name not allowed":"Recipient command failed";this._envelope.rejected.push(i),n=this._formatError(s,"EENVELOPE",t,"RCPT TO"),n.recipient=i,this._envelope.rejectedErrors.push(n)}else this._envelope.accepted.push(i);if(!this._envelope.rcptQueue.length&&!this._recipientQueue.length)if(this._envelope.rejected.length<this._envelope.to.length)this._responseActions.push(s=>{this._actionDATA(s,r)}),this._sendCommand("DATA");else return n=this._formatError("Can't send mail - all recipients were rejected","EENVELOPE",t,"RCPT TO"),n.rejected=this._envelope.rejected,n.rejectedErrors=this._envelope.rejectedErrors,r(n);else if(this._envelope.rcptQueue.length){let s=this._envelope.rcptQueue.shift();this._recipientQueue.push(s),this._responseActions.push(a=>{this._actionRCPT(a,r)}),this._sendCommand("RCPT TO:<"+s+">"+this._getDsnRcptToArgs())}}_actionDATA(t,r){if(!/^[23]/.test(t))return r(this._formatError("Data command failed","EENVELOPE",t,"DATA"));let n={accepted:this._envelope.accepted,rejected:this._envelope.rejected};this._ehloLines&&this._ehloLines.length&&(n.ehlo=this._ehloLines),this._envelope.rejectedErrors.length&&(n.rejectedErrors=this._envelope.rejectedErrors),r(null,n)}_actionSMTPStream(t,r){return Number(t.charAt(0))!==2?r(this._formatError("Message failed","EMESSAGE",t,"DATA")):r(null,t)}_actionLMTPStream(t,r,n,i){let s;if(Number(n.charAt(0))!==2){s=this._formatError("Message failed for recipient "+t,"EMESSAGE",n,"DATA"),s.recipient=t,this._envelope.rejected.push(t),this._envelope.rejectedErrors.push(s);for(let a=0,o=this._envelope.accepted.length;a<o;a++)this._envelope.accepted[a]===t&&this._envelope.accepted.splice(a,1)}if(r)return i(null,n)}_handleXOauth2Token(t,r){this._auth.oauth2.getToken(t,(n,i)=>{if(n)return this.logger.info({tnx:"smtp",username:this._auth.user,action:"authfail",method:this._authMethod},"User %s failed to authenticate",JSON.stringify(this._auth.user)),r(this._formatError(n,"EAUTH",!1,"AUTH XOAUTH2"));this._responseActions.push(s=>{this._actionAUTHComplete(s,t,r)}),this._sendCommand("AUTH XOAUTH2 "+this._auth.oauth2.buildXOAuth2Token(i),"AUTH XOAUTH2 "+this._auth.oauth2.buildXOAuth2Token("/* secret */"))})}_isDestroyedMessage(t){if(this._destroyed)return"Cannot "+t+" - smtp connection is already destroyed.";if(this._socket){if(this._socket.destroyed)return"Cannot "+t+" - smtp connection socket is already destroyed.";if(!this._socket.writable)return"Cannot "+t+" - smtp connection socket is already half-closed."}}_getHostname(){let t;try{t=Kve.hostname()||""}catch{t="localhost"}return(!t||t.indexOf(".")<0)&&(t="[127.0.0.1]"),t.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)&&(t="["+t+"]"),t}};n7.exports=B_});var z_=_((EVe,i7)=>{"use strict";f();var{Stream:e2e}=X("stream"),t2e=ru(),r2e=X("crypto"),n2e=Tr(),Da=Nn(),$_=class extends e2e{constructor(t,r){if(super(),this.options=t||{},t&&t.serviceClient){if(!t.privateKey||!t.user){let i=new Error('Options "privateKey" and "user" are required for service account!');i.code=Da.EOAUTH2,setImmediate(()=>this.emit("error",i));return}let n=Math.min(Math.max(Number(this.options.serviceRequestTimeout)||0,0),3600);this.options.serviceRequestTimeout=n||300}if(this.logger=n2e.getLogger({logger:r},{component:this.options.component||"OAuth2"}),this.provisionCallback=typeof this.options.provisionCallback=="function"?this.options.provisionCallback:!1,this.options.accessUrl=this.options.accessUrl||"https://accounts.google.com/o/oauth2/token",this.options.customHeaders=this.options.customHeaders||{},this.options.customParams=this.options.customParams||{},this.accessToken=this.options.accessToken||!1,this.options.expires&&Number(this.options.expires))this.expires=this.options.expires;else{let n=Math.max(Number(this.options.timeout)||0,0);this.expires=n&&Date.now()+n*1e3||0}this.renewing=!1,this.renewalQueue=[]}getToken(t,r){if(!t&&this.accessToken&&(!this.expires||this.expires>Date.now()))return this.logger.debug({tnx:"OAUTH2",user:this.options.user,action:"reuse"},"Reusing existing access token for %s",this.options.user),r(null,this.accessToken);if(!this.provisionCallback&&!this.options.refreshToken&&!this.options.serviceClient){if(this.accessToken)return this.logger.debug({tnx:"OAUTH2",user:this.options.user,action:"reuse"},"Reusing existing access token (no refresh capability) for %s",this.options.user),r(null,this.accessToken);this.logger.error({tnx:"OAUTH2",user:this.options.user,action:"renew"},"Cannot renew access token for %s: No refresh mechanism available",this.options.user);let i=new Error("Can't create new access token for user");return i.code=Da.EOAUTH2,r(i)}if(this.renewing)return this.renewalQueue.push({renew:t,callback:r});this.renewing=!0;let n=(i,s)=>{this.renewalQueue.forEach(a=>a.callback(i,s)),this.renewalQueue=[],this.renewing=!1,i?this.logger.error({err:i,tnx:"OAUTH2",user:this.options.user,action:"renew"},"Failed generating new Access Token for %s",this.options.user):this.logger.info({tnx:"OAUTH2",user:this.options.user,action:"renew"},"Generated new Access Token for %s",this.options.user),r(i,s)};this.provisionCallback?this.provisionCallback(this.options.user,!!t,(i,s,a)=>{!i&&s&&(this.accessToken=s,this.expires=a||0),n(i,s)}):this.generateToken(n)}updateToken(t,r){this.accessToken=t,r=Math.max(Number(r)||0,0),this.expires=r&&Date.now()+r*1e3||0,this.emit("token",{user:this.options.user,accessToken:t||"",expires:this.expires})}generateToken(t){let r,n;if(this.options.serviceClient){let i=Math.floor(Date.now()/1e3),s={iss:this.options.serviceClient,scope:this.options.scope||"https://mail.google.com/",sub:this.options.user,aud:this.options.accessUrl,iat:i,exp:i+this.options.serviceRequestTimeout},a;try{a=this.jwtSignRS256(s)}catch{let l=new Error("Can't generate token. Check your auth options");return l.code=Da.EOAUTH2,t(l)}r={grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:a},n={grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:s}}else{if(!this.options.refreshToken){let i=new Error("Can't create new access token for user");return i.code=Da.EOAUTH2,t(i)}r={client_id:this.options.clientId||"",client_secret:this.options.clientSecret||"",refresh_token:this.options.refreshToken,grant_type:"refresh_token"},n={client_id:this.options.clientId||"",client_secret:(this.options.clientSecret||"").substr(0,6)+"...",refresh_token:(this.options.refreshToken||"").substr(0,6)+"...",grant_type:"refresh_token"}}Object.assign(r,this.options.customParams),Object.assign(n,this.options.customParams),this.logger.debug({tnx:"OAUTH2",user:this.options.user,action:"generate"},"Requesting token using: %s",JSON.stringify(n)),this.postRequest(this.options.accessUrl,r,this.options,(i,s)=>{let a;if(i)return t(i);try{a=JSON.parse(s.toString())}catch(c){return t(c)}if(!a||typeof a!="object"){this.logger.debug({tnx:"OAUTH2",user:this.options.user,action:"post"},"Response: %s",(s||"").toString());let c=new Error("Invalid authentication response");return c.code=Da.EOAUTH2,t(c)}let o=Object.assign({},a);if(o.access_token&&(o.access_token=(o.access_token||"").toString().substr(0,6)+"..."),this.logger.debug({tnx:"OAUTH2",user:this.options.user,action:"post"},"Response: %s",JSON.stringify(o)),a.error){let c=a.error;a.error_description&&(c+=": "+a.error_description),a.error_uri&&(c+=" ("+a.error_uri+")");let p=new Error(c);return p.code=Da.EOAUTH2,t(p)}if(a.access_token)return this.updateToken(a.access_token,a.expires_in),t(null,this.accessToken);let l=new Error("No access token");return l.code=Da.EOAUTH2,t(l)})}buildXOAuth2Token(t){let r=["user="+(this.options.user||""),"auth=Bearer "+(t||this.accessToken),"",""];return Buffer.from(r.join(""),"utf-8").toString("base64")}postRequest(t,r,n,i){let s=!1,a=[],o=0,l=t2e(t,{method:"post",headers:n.customHeaders,body:r,allowErrorResponse:!0});l.on("readable",()=>{let c;for(;(c=l.read())!==null;)a.push(c),o+=c.length}),l.once("error",c=>{if(!s)return s=!0,i(c)}),l.once("end",()=>{if(!s)return s=!0,i(null,Buffer.concat(a,o))})}toBase64URL(t){return typeof t=="string"&&(t=Buffer.from(t)),t.toString("base64").replace(/[=]+/g,"").replace(/\+/g,"-").replace(/\//g,"_")}jwtSignRS256(t){t=['{"alg":"RS256","typ":"JWT"}',JSON.stringify(t)].map(n=>this.toBase64URL(n)).join(".");let r=r2e.createSign("RSA-SHA256").update(t).sign(this.options.privateKey);return t+"."+this.toBase64URL(r)}};i7.exports=$_});var o7=_((SVe,a7)=>{"use strict";f();var i2e=Ch(),s2e=Tr().assign,a2e=z_(),s7=Nn(),o2e=X("events"),H_=class extends o2e{constructor(t){if(super(),this.pool=t,this.options=t.options,this.logger=this.pool.logger,this.options.auth)switch((this.options.auth.type||"").toString().toUpperCase()){case"OAUTH2":{let r=new a2e(this.options.auth,this.logger);r.provisionCallback=this.pool.mailer&&this.pool.mailer.get("oauth2_provision_cb")||r.provisionCallback,this.auth={type:"OAUTH2",user:this.options.auth.user,oauth2:r,method:"XOAUTH2"},r.on("token",n=>this.pool.mailer.emit("token",n)),r.on("error",n=>this.emit("error",n));break}default:if(!this.options.auth.user&&!this.options.auth.pass)break;this.auth={type:(this.options.auth.type||"").toString().toUpperCase()||"LOGIN",user:this.options.auth.user,credentials:{user:this.options.auth.user||"",pass:this.options.auth.pass,options:this.options.auth.options},method:(this.options.auth.method||"").trim().toUpperCase()||this.options.authMethod||!1}}this._connection=!1,this._connected=!1,this.messages=0,this.available=!0}connect(t){this.pool.getSocket(this.options,(r,n)=>{if(r)return t(r);let i=!1,s=this.options;n&&n.connection&&(this.logger.info({tnx:"proxy",remoteAddress:n.connection.remoteAddress,remotePort:n.connection.remotePort,destHost:s.host||"",destPort:s.port||"",action:"connected"},"Using proxied socket from %s:%s to %s:%s",n.connection.remoteAddress,n.connection.remotePort,s.host||"",s.port||""),s=Object.assign(s2e(!1,s),n)),this.connection=new i2e(s),this.connection.once("error",a=>{if(this.emit("error",a),!i)return i=!0,t(a)}),this.connection.once("end",()=>{if(this.close(),i)return;i=!0;let a=setTimeout(()=>{if(i)return;let o=new Error("Unexpected socket close");this.connection&&this.connection._socket&&this.connection._socket.upgrading&&(o.code=s7.ETLS),t(o)},1e3);try{a.unref()}catch{}}),this.connection.connect(()=>{if(!i)if(this.auth&&(this.connection.allowsAuth||s.forceAuth))this.connection.login(this.auth,a=>{if(!i){if(i=!0,a)return this.connection.close(),this.emit("error",a),t(a);this._connected=!0,t(null,!0)}});else return i=!0,this._connected=!0,t(null,!0)})})}send(t,r){if(!this._connected)return this.connect(a=>a?r(a):this.send(t,r));let n=t.message.getEnvelope(),i=t.message.messageId(),s=[].concat(n.to||[]);s.length>3&&s.push("...and "+s.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:i,cid:this.id},"Sending message %s using #%s to <%s>",i,this.id,s.join(", ")),t.data.dsn&&(n.dsn=t.data.dsn),t.data.requireTLSExtensionEnabled&&(n.requireTLSExtensionEnabled=t.data.requireTLSExtensionEnabled),this.connection.send(n,t.message.createReadStream(),(a,o)=>{if(this.messages++,a)return this.connection.close(),this.emit("error",a),r(a);o.envelope={from:n.from,to:n.to},o.messageId=i,setImmediate(()=>{if(this.messages>=this.options.maxMessages){let l=new Error("Resource exhausted");l.code=s7.EMAXLIMIT,this.connection.close(),this.emit("error",l)}else this.pool._checkRateLimit(()=>{this.available=!0,this.emit("available")})}),r(null,o)})}close(){this._connected=!1,this.auth&&this.auth.oauth2&&this.auth.oauth2.removeAllListeners(),this.connection&&this.connection.close(),this.emit("close")}};a7.exports=H_});var l7=_((CVe,l2e)=>{l2e.exports={"1und1":{description:"1&1 Mail (German hosting provider)",host:"smtp.1und1.de",port:465,secure:!0,authMethod:"LOGIN"},"126":{description:"126 Mail (NetEase)",host:"smtp.126.com",port:465,secure:!0},"163":{description:"163 Mail (NetEase)",host:"smtp.163.com",port:465,secure:!0},Aliyun:{description:"Alibaba Cloud Mail",domains:["aliyun.com"],host:"smtp.aliyun.com",port:465,secure:!0},AliyunQiye:{description:"Alibaba Cloud Enterprise Mail",host:"smtp.qiye.aliyun.com",port:465,secure:!0},AOL:{description:"AOL Mail",domains:["aol.com"],host:"smtp.aol.com",port:587},Aruba:{description:"Aruba PEC (Italian email provider)",domains:["aruba.it","pec.aruba.it"],aliases:["Aruba PEC"],host:"smtps.aruba.it",port:465,secure:!0,authMethod:"LOGIN"},Bluewin:{description:"Bluewin (Swiss email provider)",host:"smtpauths.bluewin.ch",domains:["bluewin.ch"],port:465},BOL:{description:"BOL Mail (Brazilian provider)",domains:["bol.com.br"],host:"smtp.bol.com.br",port:587,requireTLS:!0},DebugMail:{description:"DebugMail (email testing service)",host:"debugmail.io",port:25},Disroot:{description:"Disroot (privacy-focused provider)",domains:["disroot.org"],host:"disroot.org",port:587,secure:!1,authMethod:"LOGIN"},DynectEmail:{description:"Dyn Email Delivery",aliases:["Dynect"],host:"smtp.dynect.net",port:25},ElasticEmail:{description:"Elastic Email",aliases:["Elastic Email"],host:"smtp.elasticemail.com",port:465,secure:!0},Ethereal:{description:"Ethereal Email (email testing service)",aliases:["ethereal.email"],host:"smtp.ethereal.email",port:587},FastMail:{description:"FastMail",domains:["fastmail.fm"],host:"smtp.fastmail.com",port:465,secure:!0},"Feishu Mail":{description:"Feishu Mail (Lark)",aliases:["Feishu","FeishuMail"],domains:["www.feishu.cn"],host:"smtp.feishu.cn",port:465,secure:!0},"Forward Email":{description:"Forward Email (email forwarding service)",aliases:["FE","ForwardEmail"],domains:["forwardemail.net"],host:"smtp.forwardemail.net",port:465,secure:!0},GandiMail:{description:"Gandi Mail",aliases:["Gandi","Gandi Mail"],host:"mail.gandi.net",port:587},Gmail:{description:"Gmail",aliases:["Google Mail"],domains:["gmail.com","googlemail.com"],host:"smtp.gmail.com",port:465,secure:!0},GmailWorkspace:{description:"Gmail Workspace",aliases:["Google Workspace Mail"],host:"smtp-relay.gmail.com",port:465,secure:!0},GMX:{description:"GMX Mail",domains:["gmx.com","gmx.net","gmx.de"],host:"mail.gmx.com",port:587},Godaddy:{description:"GoDaddy Email (US)",host:"smtpout.secureserver.net",port:25},GodaddyAsia:{description:"GoDaddy Email (Asia)",host:"smtp.asia.secureserver.net",port:25},GodaddyEurope:{description:"GoDaddy Email (Europe)",host:"smtp.europe.secureserver.net",port:25},"hot.ee":{description:"Hot.ee (Estonian email provider)",host:"mail.hot.ee"},Hotmail:{description:"Outlook.com / Hotmail",aliases:["Outlook","Outlook.com","Hotmail.com"],domains:["hotmail.com","outlook.com"],host:"smtp-mail.outlook.com",port:587},iCloud:{description:"iCloud Mail",aliases:["Me","Mac"],domains:["me.com","mac.com"],host:"smtp.mail.me.com",port:587},Infomaniak:{description:"Infomaniak Mail (Swiss hosting provider)",host:"mail.infomaniak.com",domains:["ik.me","ikmail.com","etik.com"],port:587},KolabNow:{description:"KolabNow (secure email service)",domains:["kolabnow.com"],aliases:["Kolab"],host:"smtp.kolabnow.com",port:465,secure:!0,authMethod:"LOGIN"},Loopia:{description:"Loopia (Swedish hosting provider)",host:"mailcluster.loopia.se",port:465},Loops:{description:"Loops",host:"smtp.loops.so",port:587},"mail.ee":{description:"Mail.ee (Estonian email provider)",host:"smtp.mail.ee"},"Mail.ru":{description:"Mail.ru",host:"smtp.mail.ru",port:465,secure:!0},"Mailcatch.app":{description:"Mailcatch (email testing service)",host:"sandbox-smtp.mailcatch.app",port:2525},Maildev:{description:"MailDev (local email testing)",port:1025,ignoreTLS:!0},MailerSend:{description:"MailerSend",host:"smtp.mailersend.net",port:587},Mailgun:{description:"Mailgun",host:"smtp.mailgun.org",port:465,secure:!0},Mailjet:{description:"Mailjet",host:"in.mailjet.com",port:587},Mailosaur:{description:"Mailosaur (email testing service)",host:"mailosaur.io",port:25},Mailtrap:{description:"Mailtrap",host:"live.smtp.mailtrap.io",port:587},Mandrill:{description:"Mandrill (by Mailchimp)",host:"smtp.mandrillapp.com",port:587},Naver:{description:"Naver Mail (Korean email provider)",host:"smtp.naver.com",port:587},OhMySMTP:{description:"OhMySMTP (email delivery service)",host:"smtp.ohmysmtp.com",port:587,secure:!1},One:{description:"One.com Email",host:"send.one.com",port:465,secure:!0},OpenMailBox:{description:"OpenMailBox",aliases:["OMB","openmailbox.org"],host:"smtp.openmailbox.org",port:465,secure:!0},Outlook365:{description:"Microsoft 365 / Office 365",host:"smtp.office365.com",port:587,secure:!1},Postmark:{description:"Postmark",aliases:["PostmarkApp"],host:"smtp.postmarkapp.com",port:2525},Proton:{description:"Proton Mail",aliases:["ProtonMail","Proton.me","Protonmail.com","Protonmail.ch"],domains:["proton.me","protonmail.com","pm.me","protonmail.ch"],host:"smtp.protonmail.ch",port:587,requireTLS:!0},"qiye.aliyun":{description:"Alibaba Mail Enterprise Edition",host:"smtp.mxhichina.com",port:"465",secure:!0},QQ:{description:"QQ Mail",domains:["qq.com"],host:"smtp.qq.com",port:465,secure:!0},QQex:{description:"QQ Enterprise Mail",aliases:["QQ Enterprise"],domains:["exmail.qq.com"],host:"smtp.exmail.qq.com",port:465,secure:!0},Resend:{description:"Resend",host:"smtp.resend.com",port:465,secure:!0},Runbox:{description:"Runbox (Norwegian email provider)",domains:["runbox.com"],host:"smtp.runbox.com",port:465,secure:!0},SendCloud:{description:"SendCloud (Chinese email delivery)",host:"smtp.sendcloud.net",port:2525},SendGrid:{description:"SendGrid",host:"smtp.sendgrid.net",port:587},SendinBlue:{description:"Brevo (formerly Sendinblue)",aliases:["Brevo"],host:"smtp-relay.brevo.com",port:587},SendPulse:{description:"SendPulse",host:"smtp-pulse.com",port:465,secure:!0},SES:{description:"AWS SES US East (N. Virginia)",host:"email-smtp.us-east-1.amazonaws.com",port:465,secure:!0},"SES-AP-NORTHEAST-1":{description:"AWS SES Asia Pacific (Tokyo)",host:"email-smtp.ap-northeast-1.amazonaws.com",port:465,secure:!0},"SES-AP-NORTHEAST-2":{description:"AWS SES Asia Pacific (Seoul)",host:"email-smtp.ap-northeast-2.amazonaws.com",port:465,secure:!0},"SES-AP-NORTHEAST-3":{description:"AWS SES Asia Pacific (Osaka)",host:"email-smtp.ap-northeast-3.amazonaws.com",port:465,secure:!0},"SES-AP-SOUTH-1":{description:"AWS SES Asia Pacific (Mumbai)",host:"email-smtp.ap-south-1.amazonaws.com",port:465,secure:!0},"SES-AP-SOUTHEAST-1":{description:"AWS SES Asia Pacific (Singapore)",host:"email-smtp.ap-southeast-1.amazonaws.com",port:465,secure:!0},"SES-AP-SOUTHEAST-2":{description:"AWS SES Asia Pacific (Sydney)",host:"email-smtp.ap-southeast-2.amazonaws.com",port:465,secure:!0},"SES-CA-CENTRAL-1":{description:"AWS SES Canada (Central)",host:"email-smtp.ca-central-1.amazonaws.com",port:465,secure:!0},"SES-EU-CENTRAL-1":{description:"AWS SES Europe (Frankfurt)",host:"email-smtp.eu-central-1.amazonaws.com",port:465,secure:!0},"SES-EU-NORTH-1":{description:"AWS SES Europe (Stockholm)",host:"email-smtp.eu-north-1.amazonaws.com",port:465,secure:!0},"SES-EU-WEST-1":{description:"AWS SES Europe (Ireland)",host:"email-smtp.eu-west-1.amazonaws.com",port:465,secure:!0},"SES-EU-WEST-2":{description:"AWS SES Europe (London)",host:"email-smtp.eu-west-2.amazonaws.com",port:465,secure:!0},"SES-EU-WEST-3":{description:"AWS SES Europe (Paris)",host:"email-smtp.eu-west-3.amazonaws.com",port:465,secure:!0},"SES-SA-EAST-1":{description:"AWS SES South America (S\xE3o Paulo)",host:"email-smtp.sa-east-1.amazonaws.com",port:465,secure:!0},"SES-US-EAST-1":{description:"AWS SES US East (N. Virginia)",host:"email-smtp.us-east-1.amazonaws.com",port:465,secure:!0},"SES-US-EAST-2":{description:"AWS SES US East (Ohio)",host:"email-smtp.us-east-2.amazonaws.com",port:465,secure:!0},"SES-US-GOV-EAST-1":{description:"AWS SES GovCloud (US-East)",host:"email-smtp.us-gov-east-1.amazonaws.com",port:465,secure:!0},"SES-US-GOV-WEST-1":{description:"AWS SES GovCloud (US-West)",host:"email-smtp.us-gov-west-1.amazonaws.com",port:465,secure:!0},"SES-US-WEST-1":{description:"AWS SES US West (N. California)",host:"email-smtp.us-west-1.amazonaws.com",port:465,secure:!0},"SES-US-WEST-2":{description:"AWS SES US West (Oregon)",host:"email-smtp.us-west-2.amazonaws.com",port:465,secure:!0},Seznam:{description:"Seznam Email (Czech email provider)",aliases:["Seznam Email"],domains:["seznam.cz","email.cz","post.cz","spoluzaci.cz"],host:"smtp.seznam.cz",port:465,secure:!0},SMTP2GO:{description:"SMTP2GO",host:"mail.smtp2go.com",port:2525},Sparkpost:{description:"SparkPost",aliases:["SparkPost","SparkPost Mail"],domains:["sparkpost.com"],host:"smtp.sparkpostmail.com",port:587,secure:!1},Tipimail:{description:"Tipimail (email delivery service)",host:"smtp.tipimail.com",port:587},Tutanota:{description:"Tutanota (Tuta Mail)",domains:["tutanota.com","tuta.com","tutanota.de","tuta.io"],host:"smtp.tutanota.com",port:465,secure:!0},Yahoo:{description:"Yahoo Mail",domains:["yahoo.com"],host:"smtp.mail.yahoo.com",port:465,secure:!0},Yandex:{description:"Yandex Mail",domains:["yandex.ru"],host:"smtp.yandex.ru",port:465,secure:!0},Zimbra:{description:"Zimbra Mail Server",aliases:["Zimbra Collaboration"],host:"smtp.zimbra.com",port:587,requireTLS:!0},Zoho:{description:"Zoho Mail",host:"smtp.zoho.com",port:465,secure:!0,authMethod:"LOGIN"}}});var U_=_((TVe,u7)=>{"use strict";f();var c7=l7(),Th={};Object.keys(c7).forEach(e=>{let t=c7[e],r=c2e(t);Th[Ah(e)]=r,[].concat(t.aliases||[]).forEach(n=>{Th[Ah(n)]=r}),[].concat(t.domains||[]).forEach(n=>{Th[Ah(n)]=r})});function Ah(e){return e.replace(/[^a-zA-Z0-9.-]/g,"").toLowerCase()}function c2e(e){let t={};return Object.keys(e).forEach(r=>{["domains","aliases"].includes(r)||(t[r]=e[r])}),t}u7.exports=function(e){return e=Ah(e.split("@").pop()),Th[e]||!1}});var m7=_((OVe,h7)=>{"use strict";f();var u2e=X("events"),p7=o7(),p2e=Ch(),f2e=U_(),lu=Tr(),f7=Nn(),d7=On(),V_=class extends u2e{constructor(t){super(),t=t||{},typeof t=="string"&&(t={url:t});let r,n=t.service;typeof t.getSocket=="function"&&(this.getSocket=t.getSocket),t.url&&(r=lu.parseConnectionUrl(t.url),n=n||r.service),this.options=lu.assign(!1,t,r,n&&f2e(n)),this.options.maxConnections=this.options.maxConnections||5,this.options.maxMessages=this.options.maxMessages||100,this.logger=lu.getLogger(this.options,{component:this.options.component||"smtp-pool"}),this.name="SMTP (pool)",this.version=d7.version+"[client:"+d7.version+"]",this._rateLimit={counter:0,timeout:null,waiting:[],checkpoint:!1,delta:Number(this.options.rateDelta)||1e3,limit:Number(this.options.rateLimit)||0},this._closed=!1,this._queue=[],this._connections=[],this._connectionCounter=0,this.idling=!0,setImmediate(()=>{this.idling&&this.emit("idle")})}getSocket(t,r){return setImmediate(()=>r(null,!1))}send(t,r){return this._closed?!1:(this._queue.push({mail:t,requeueAttempts:0,callback:r}),this.idling&&this._queue.length>=this.options.maxConnections&&(this.idling=!1),setImmediate(()=>this._processMessages()),!0)}close(){let t,r=this._connections.length;if(this._closed=!0,clearTimeout(this._rateLimit.timeout),!r&&!this._queue.length)return;for(let i=r-1;i>=0;i--)this._connections[i]&&this._connections[i].available&&(t=this._connections[i],t.close(),this.logger.info({tnx:"connection",cid:t.id,action:"removed"},"Connection #%s removed",t.id));if(r&&!this._connections.length&&this.logger.debug({tnx:"connection"},"All connections removed"),!this._queue.length)return;let n=()=>{if(!this._queue.length){this.logger.debug({tnx:"connection"},"Pending queue entries cleared");return}let i=this._queue.shift();if(i&&typeof i.callback=="function")try{i.callback(new Error("Connection pool was closed"))}catch(s){this.logger.error({err:s,tnx:"callback",cid:t.id},"Callback error for #%s: %s",t.id,s.message)}setImmediate(n)};setImmediate(n)}_processMessages(){if(this._closed)return;if(!this._queue.length){this.idling||(this.idling=!0,this.emit("idle"));return}let t=this._connections.find(n=>n.available);if(!t&&this._connections.length<this.options.maxConnections&&(t=this._createConnection()),!t){this.idling=!1;return}!this.idling&&this._queue.length<this.options.maxConnections&&(this.idling=!0,this.emit("idle"));let r=t.queueEntry=this._queue.shift();r.messageId=(t.queueEntry.mail.message.getHeader("message-id")||"").replace(/[<>\s]/g,""),t.available=!1,this.logger.debug({tnx:"pool",cid:t.id,messageId:r.messageId,action:"assign"},"Assigned message <%s> to #%s (%s)",r.messageId,t.id,t.messages+1),this._rateLimit.limit&&(this._rateLimit.counter++,this._rateLimit.checkpoint||(this._rateLimit.checkpoint=Date.now())),t.send(r.mail,(n,i)=>{if(r===t.queueEntry){try{r.callback(n,i)}catch(s){this.logger.error({err:s,tnx:"callback",cid:t.id},"Callback error for #%s: %s",t.id,s.message)}t.queueEntry=!1}})}_createConnection(){let t=new p7(this);return t.id=++this._connectionCounter,this.logger.info({tnx:"pool",cid:t.id,action:"conection"},"Created new pool resource #%s",t.id),t.on("available",()=>{this.logger.debug({tnx:"connection",cid:t.id,action:"available"},"Connection #%s became available",t.id),this._closed?this.close():this._processMessages()}),t.once("error",r=>{if(r.code!==f7.EMAXLIMIT?this.logger.warn({err:r,tnx:"pool",cid:t.id},"Pool Error for #%s: %s",t.id,r.message):this.logger.debug({tnx:"pool",cid:t.id,action:"maxlimit"},"Max messages limit exchausted for #%s",t.id),t.queueEntry){try{t.queueEntry.callback(r)}catch(n){this.logger.error({err:n,tnx:"callback",cid:t.id},"Callback error for #%s: %s",t.id,n.message)}t.queueEntry=!1}this._removeConnection(t),this._continueProcessing()}),t.once("close",()=>{this.logger.info({tnx:"connection",cid:t.id,action:"closed"},"Connection #%s was closed",t.id),this._removeConnection(t),t.queueEntry?setTimeout(()=>{t.queueEntry&&(this._shouldRequeuOnConnectionClose(t.queueEntry)?this._requeueEntryOnConnectionClose(t):this._failDeliveryOnConnectionClose(t)),this._continueProcessing()},50):(!this._closed&&this.idling&&!this._connections.length&&this.emit("clear"),this._continueProcessing())}),this._connections.push(t),t}_shouldRequeuOnConnectionClose(t){return this.options.maxRequeues===void 0||this.options.maxRequeues<0?!0:t.requeueAttempts<this.options.maxRequeues}_failDeliveryOnConnectionClose(t){if(t.queueEntry&&t.queueEntry.callback){try{t.queueEntry.callback(new Error("Reached maximum number of retries after connection was closed"))}catch(r){this.logger.error({err:r,tnx:"callback",messageId:t.queueEntry.messageId,cid:t.id},"Callback error for #%s: %s",t.id,r.message)}t.queueEntry=!1}}_requeueEntryOnConnectionClose(t){t.queueEntry.requeueAttempts+=1,this.logger.debug({tnx:"pool",cid:t.id,messageId:t.queueEntry.messageId,action:"requeue"},"Re-queued message <%s> for #%s. Attempt: #%s",t.queueEntry.messageId,t.id,t.queueEntry.requeueAttempts),this._queue.unshift(t.queueEntry),t.queueEntry=!1}_continueProcessing(){this._closed?this.close():setTimeout(()=>this._processMessages(),100)}_removeConnection(t){let r=this._connections.indexOf(t);r!==-1&&this._connections.splice(r,1)}_checkRateLimit(t){if(!this._rateLimit.limit)return t();let r=Date.now();if(this._rateLimit.counter<this._rateLimit.limit)return t();if(this._rateLimit.waiting.push(t),this._rateLimit.checkpoint<=r-this._rateLimit.delta)return this._clearRateLimit();this._rateLimit.timeout||(this._rateLimit.timeout=setTimeout(()=>this._clearRateLimit(),this._rateLimit.delta-(r-this._rateLimit.checkpoint)),this._rateLimit.checkpoint=r)}_clearRateLimit(){for(clearTimeout(this._rateLimit.timeout),this._rateLimit.timeout=null,this._rateLimit.counter=0,this._rateLimit.checkpoint=!1;this._rateLimit.waiting.length;){let t=this._rateLimit.waiting.shift();setImmediate(t)}}isIdle(){return this.idling}verify(t){let r;t||(r=new Promise((i,s)=>{t=lu.callbackPromise(i,s)}));let n=new p7(this).auth;return this.getSocket(this.options,(i,s)=>{if(i)return t(i);let a=this.options;s&&s.connection&&(this.logger.info({tnx:"proxy",remoteAddress:s.connection.remoteAddress,remotePort:s.connection.remotePort,destHost:a.host||"",destPort:a.port||"",action:"connected"},"Using proxied socket from %s:%s to %s:%s",s.connection.remoteAddress,s.connection.remotePort,a.host||"",a.port||""),a=Object.assign(lu.assign(!1,a),s));let o=new p2e(a),l=!1;o.once("error",p=>{if(!l)return l=!0,o.close(),t(p)}),o.once("end",()=>{if(!l)return l=!0,t(new Error("Connection closed"))});let c=()=>{if(!l)return l=!0,o.quit(),t(null,!0)};o.connect(()=>{if(!l)if(n&&(o.allowsAuth||a.forceAuth))o.login(n,p=>{if(!l){if(p)return l=!0,o.close(),t(p);c()}});else if(!n&&o.allowsAuth&&a.forceAuth){let p=new Error("Authentication info was not provided");return p.code=f7.ENOAUTH,l=!0,o.close(),t(p)}else c()})}),r}};h7.exports=V_});var v7=_((FVe,y7)=>{"use strict";f();var d2e=X("events"),g7=Ch(),h2e=U_(),Qo=Tr(),m2e=z_(),x7=Nn(),b7=On(),G_=class extends d2e{constructor(t){super(),t=t||{},typeof t=="string"&&(t={url:t});let r,n=t.service;typeof t.getSocket=="function"&&(this.getSocket=t.getSocket),t.url&&(r=Qo.parseConnectionUrl(t.url),n=n||r.service),this.options=Qo.assign(!1,t,r,n&&h2e(n)),this.logger=Qo.getLogger(this.options,{component:this.options.component||"smtp-transport"}),this.name="SMTP",this.version=b7.version+"[client:"+b7.version+"]",this.options.auth&&(this.auth=this.getAuth({}))}getSocket(t,r){return setImmediate(()=>r(null,!1))}getAuth(t){if(!t)return this.auth;let r=Object.assign({},this.options.auth&&typeof this.options.auth=="object"?this.options.auth:{},t&&typeof t=="object"?t:{});if(Object.keys(r).length===0)return!1;switch((r.type||"").toString().toUpperCase()){case"OAUTH2":{if(!r.service&&!r.user)return!1;let n=new m2e(r,this.logger);return n.provisionCallback=this.mailer&&this.mailer.get("oauth2_provision_cb")||n.provisionCallback,n.on("token",i=>this.mailer.emit("token",i)),n.on("error",i=>this.emit("error",i)),{type:"OAUTH2",user:r.user,oauth2:n,method:"XOAUTH2"}}default:return{type:(r.type||"").toString().toUpperCase()||"LOGIN",user:r.user,credentials:{user:r.user||"",pass:r.pass,options:r.options},method:(r.method||"").trim().toUpperCase()||this.options.authMethod||!1}}}send(t,r){this.getSocket(this.options,(n,i)=>{if(n)return r(n);let s=!1,a=this.options;i&&i.connection&&(this.logger.info({tnx:"proxy",remoteAddress:i.connection.remoteAddress,remotePort:i.connection.remotePort,destHost:a.host||"",destPort:a.port||"",action:"connected"},"Using proxied socket from %s:%s to %s:%s",i.connection.remoteAddress,i.connection.remotePort,a.host||"",a.port||""),a=Object.assign(Qo.assign(!1,a),i));let o=new g7(a);o.once("error",c=>{if(!s)return s=!0,o.close(),r(c)}),o.once("end",()=>{if(s)return;let c=setTimeout(()=>{if(s)return;s=!0;let p=new Error("Unexpected socket close");o&&o._socket&&o._socket.upgrading&&(p.code=x7.ETLS),r(p)},1e3);try{c.unref()}catch{}});let l=()=>{let c=t.message.getEnvelope(),p=t.message.messageId(),u=[].concat(c.to||[]);u.length>3&&u.push("...and "+u.splice(2).length+" more"),t.data.dsn&&(c.dsn=t.data.dsn),t.data.requireTLSExtensionEnabled&&(c.requireTLSExtensionEnabled=t.data.requireTLSExtensionEnabled),this.logger.info({tnx:"send",messageId:p},"Sending message %s to <%s>",p,u.join(", ")),o.send(c,t.message.createReadStream(),(h,d)=>{if(s=!0,o.close(),h)return this.logger.error({err:h,tnx:"send"},"Send error for %s: %s",p,h.message),r(h);d.envelope={from:c.from,to:c.to},d.messageId=p;try{return r(null,d)}catch(m){this.logger.error({err:m,tnx:"callback"},"Callback error for %s: %s",p,m.message)}})};o.connect(()=>{if(s)return;let c=this.getAuth(t.data.auth);c&&(o.allowsAuth||a.forceAuth)?o.login(c,p=>{if(c&&c!==this.auth&&c.oauth2&&c.oauth2.removeAllListeners(),!s){if(p)return s=!0,o.close(),r(p);l()}}):l()})})}verify(t){let r;return t||(r=new Promise((n,i)=>{t=Qo.callbackPromise(n,i)})),this.getSocket(this.options,(n,i)=>{if(n)return t(n);let s=this.options;i&&i.connection&&(this.logger.info({tnx:"proxy",remoteAddress:i.connection.remoteAddress,remotePort:i.connection.remotePort,destHost:s.host||"",destPort:s.port||"",action:"connected"},"Using proxied socket from %s:%s to %s:%s",i.connection.remoteAddress,i.connection.remotePort,s.host||"",s.port||""),s=Object.assign(Qo.assign(!1,s),i));let a=new g7(s),o=!1;a.once("error",c=>{if(!o)return o=!0,a.close(),t(c)}),a.once("end",()=>{if(!o)return o=!0,t(new Error("Connection closed"))});let l=()=>{if(!o)return o=!0,a.quit(),t(null,!0)};a.connect(()=>{if(o)return;let c=this.getAuth({});if(c&&(a.allowsAuth||s.forceAuth))a.login(c,p=>{if(!o){if(p)return o=!0,a.close(),t(p);l()}});else if(!c&&a.allowsAuth&&s.forceAuth){let p=new Error("Authentication info was not provided");return p.code=x7.ENOAUTH,o=!0,a.close(),t(p)}else l()})}),r}close(){this.auth&&this.auth.oauth2&&this.auth.oauth2.removeAllListeners(),this.emit("close")}};y7.exports=G_});var w7=_((LVe,_7)=>{"use strict";f();var{spawn:g2e}=X("child_process"),x2e=On(),b2e=Tr(),W_=Nn(),K_=class{constructor(t){t=t||{},this._spawn=g2e,this.options=t,this.name="Sendmail",this.version=x2e.version,this.path="sendmail",this.args=!1,this.logger=b2e.getLogger(this.options,{component:this.options.component||"sendmail"}),typeof t=="string"?this.path=t:typeof t=="object"&&(t.path&&(this.path=t.path),Array.isArray(t.args)&&(this.args=t.args))}send(t,r){t.message.keepBcc=!0;let n=t.data.envelope||t.message.getEnvelope(),i=t.message.messageId(),s;if([].concat(n.from||[]).concat(n.to||[]).some(p=>/^-/.test(p))){let p=new Error("Can not send mail. Invalid envelope addresses.");return p.code=W_.ESENDMAIL,r(p)}let o=this.args?["-i"].concat(this.args).concat(n.to):["-i"].concat(n.from?["-f",n.from]:[]).concat(n.to),l=p=>{if(!s&&(s=!0,typeof r=="function"))return p?r(p):r(null,{envelope:n,messageId:i,response:"Messages queued for delivery"})},c;try{c=this._spawn(this.path,o)}catch(p){return this.logger.error({err:p,tnx:"spawn",messageId:i},"Error occurred while spawning sendmail. %s",p.message),l(p)}if(c){c.on("error",h=>{this.logger.error({err:h,tnx:"spawn",messageId:i},"Error occurred when sending message %s. %s",i,h.message),l(h)}),c.once("exit",h=>{if(!h)return l();let d=new Error(h===127?"Sendmail command not found, process exited with code "+h:"Sendmail exited with code "+h);d.code=W_.ESENDMAIL,this.logger.error({err:d,tnx:"stdin",messageId:i},"Error sending message %s to sendmail. %s",i,d.message),l(d)}),c.once("close",l),c.stdin.on("error",h=>{this.logger.error({err:h,tnx:"stdin",messageId:i},"Error occurred when piping message %s to sendmail. %s",i,h.message),l(h)});let p=[].concat(n.to||[]);p.length>3&&p.push("...and "+p.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:i},"Sending message %s to <%s>",i,p.join(", "));let u=t.message.createReadStream();u.once("error",h=>{this.logger.error({err:h,tnx:"stdin",messageId:i},"Error occurred when generating message %s. %s",i,h.message),c.kill("SIGINT"),l(h)}),u.pipe(c.stdin)}else{let p=new Error("sendmail was not found");return p.code=W_.ESENDMAIL,l(p)}}};_7.exports=K_});var D7=_((RVe,E7)=>{"use strict";f();var y2e=On(),v2e=Tr(),Z_=class{constructor(t){t=t||{},this.options=t,this.name="StreamTransport",this.version=y2e.version,this.logger=v2e.getLogger(this.options,{component:this.options.component||"stream-transport"}),this.winbreak=["win","windows","dos",`\r
|
|
281
|
+
`].includes((t.newline||"").toString().toLowerCase())}send(t,r){t.message.keepBcc=!0;let n=t.data.envelope||t.message.getEnvelope(),i=t.message.messageId(),s=[].concat(n.to||[]);s.length>3&&s.push("...and "+s.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:i},"Sending message %s to <%s> using %s line breaks",i,s.join(", "),this.winbreak?"<CR><LF>":"<LF>"),setImmediate(()=>{let a;try{a=t.message.createReadStream()}catch(c){return this.logger.error({err:c,tnx:"send",messageId:i},"Creating send stream failed for %s. %s",i,c.message),r(c)}if(!this.options.buffer)return a.once("error",c=>{this.logger.error({err:c,tnx:"send",messageId:i},"Failed creating message for %s. %s",i,c.message)}),r(null,{envelope:n,messageId:i,message:a});let o=[],l=0;a.on("readable",()=>{let c;for(;(c=a.read())!==null;)o.push(c),l+=c.length}),a.once("error",c=>(this.logger.error({err:c,tnx:"send",messageId:i},"Failed creating message for %s. %s",i,c.message),r(c))),a.on("end",()=>r(null,{envelope:n,messageId:i,message:Buffer.concat(o,l)}))})}};E7.exports=Z_});var k7=_((qVe,S7)=>{"use strict";f();var _2e=On(),w2e=Tr(),J_=class{constructor(t){t=t||{},this.options=t,this.name="JSONTransport",this.version=_2e.version,this.logger=w2e.getLogger(this.options,{component:this.options.component||"json-transport"})}send(t,r){t.message.keepBcc=!0;let n=t.data.envelope||t.message.getEnvelope(),i=t.message.messageId(),s=[].concat(n.to||[]);s.length>3&&s.push("...and "+s.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:i},"Composing JSON structure of %s to <%s>",i,s.join(", ")),setImmediate(()=>{t.normalize((a,o)=>a?(this.logger.error({err:a,tnx:"send",messageId:i},"Failed building JSON structure for %s. %s",i,a.message),r(a)):(delete o.envelope,delete o.normalizedHeaders,r(null,{envelope:n,messageId:i,message:this.options.skipEncoding?o:JSON.stringify(o)})))})}};S7.exports=J_});var A7=_((BVe,T7)=>{"use strict";f();var E2e=X("events"),D2e=On(),C7=Tr(),S2e=E_(),k2e=kh(),Q_=class extends E2e{constructor(t){super(),t=t||{},this.options=t,this.ses=this.options.SES,this.name="SESTransport",this.version=D2e.version,this.logger=C7.getLogger(this.options,{component:this.options.component||"ses-transport"})}getRegion(t){return this.ses.sesClient.config&&typeof this.ses.sesClient.config.region=="function"?this.ses.sesClient.config.region().then(r=>t(null,r)).catch(r=>t(r)):t(null,!1)}send(t,r){let n=t.message._headers.find(l=>/^from$/i.test(l.key));if(n){let l=new k2e("text/plain");n=l._convertAddresses(l._parseAddresses(n.value))}let i=t.data.envelope||t.message.getEnvelope(),s=t.message.messageId(),a=[].concat(i.to||[]);a.length>3&&a.push("...and "+a.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:s},"Sending message %s to <%s>",s,a.join(", "));let o=l=>{t.data._dkim||(t.data._dkim={}),t.data._dkim.skipFields&&typeof t.data._dkim.skipFields=="string"?t.data._dkim.skipFields+=":date:message-id":t.data._dkim.skipFields="date:message-id";let c=t.message.createReadStream(),p=c.pipe(new S2e),u=[],h=0;p.on("readable",()=>{let d;for(;(d=p.read())!==null;)u.push(d),h+=d.length}),c.once("error",d=>p.emit("error",d)),p.once("error",d=>l(d)),p.once("end",()=>l(null,Buffer.concat(u,h)))};setImmediate(()=>o((l,c)=>{if(l)return this.logger.error({err:l,tnx:"send",messageId:s},"Failed creating message for %s. %s",s,l.message),r(l);let p=Object.assign({Content:{Raw:{Data:c}},FromEmailAddress:n||i.from,Destination:{ToAddresses:i.to}},t.data.ses||{});this.getRegion((u,h)=>{(u||!h)&&(h="us-east-1");let d=new this.ses.SendEmailCommand(p);this.ses.sesClient.send(d).then(b=>{h==="us-east-1"&&(h="email"),r(null,{envelope:{from:i.from,to:i.to},messageId:"<"+b.MessageId+(/@/.test(b.MessageId)?"":"@"+h+".amazonses.com")+">",response:b.MessageId,raw:c})}).catch(b=>{this.logger.error({err:b,tnx:"send"},"Send error for %s: %s",s,b.message),r(b)})})}))}verify(t){let r;t||(r=new Promise((s,a)=>{t=C7.callbackPromise(s,a)}));let n=s=>s&&!["InvalidParameterValue","MessageRejected"].includes(s.code||s.Code||s.name)?t(s):t(null,!0),i={Content:{Raw:{Data:Buffer.from(`From: <invalid@invalid>\r
|
|
282
|
+
To: <invalid@invalid>\r
|
|
283
|
+
Subject: Invalid\r
|
|
284
|
+
\r
|
|
285
|
+
Invalid`)}},FromEmailAddress:"invalid@invalid",Destination:{ToAddresses:["invalid@invalid"]}};return this.getRegion((s,a)=>{(s||!a)&&(a="us-east-1");let o=new this.ses.SendEmailCommand(i);this.ses.sesClient.send(o).then(c=>n(null,c)).catch(c=>n(c))}),r}};T7.exports=Q_});var I7=_((zVe,Oh)=>{"use strict";f();var C2e=K9(),F7=Tr(),T2e=m7(),A2e=v7(),O2e=w7(),N2e=D7(),F2e=k7(),I2e=A7(),L2e=Nn(),P2e=ru(),O7=On(),R2e=(process.env.ETHEREAL_API||"https://api.nodemailer.com").replace(/\/+$/,""),M2e=(process.env.ETHEREAL_WEB||"https://ethereal.email").replace(/\/+$/,""),N7=(process.env.ETHEREAL_API_KEY||"").replace(/\s*/g,"")||null,q2e=["true","yes","y","1"].includes((process.env.ETHEREAL_CACHE||"yes").toString().trim().toLowerCase()),cu=!1;Oh.exports.createTransport=function(e,t){let r;if(typeof e=="object"&&typeof e.send!="function"||typeof e=="string"&&/^(smtps?|direct):/i.test(e)){let n=typeof e=="string"?e:e.url;if(n?r=F7.parseConnectionUrl(n):r=e,r.pool)e=new T2e(r);else if(r.sendmail)e=new O2e(r);else if(r.streamTransport)e=new N2e(r);else if(r.jsonTransport)e=new F2e(r);else if(r.SES){if(r.SES.ses&&r.SES.aws){let i=new Error("Using legacy SES configuration, expecting @aws-sdk/client-sesv2, see https://nodemailer.com/transports/ses/");throw i.code=L2e.ECONFIG,i}e=new I2e(r)}else e=new A2e(r)}return new C2e(e,r,t)};Oh.exports.createTestAccount=function(e,t){let r;if(!t&&typeof e=="function"&&(t=e,e=!1),t||(r=new Promise((l,c)=>{t=F7.callbackPromise(l,c)})),q2e&&cu)return setImmediate(()=>t(null,cu)),r;e=e||R2e;let n=[],i=0,s={},a={requestor:O7.name,version:O7.version};N7&&(s.Authorization="Bearer "+N7);let o=P2e(e+"/user",{contentType:"application/json",method:"POST",headers:s,body:Buffer.from(JSON.stringify(a))});return o.on("readable",()=>{let l;for(;(l=o.read())!==null;)n.push(l),i+=l.length}),o.once("error",l=>t(l)),o.once("end",()=>{let l=Buffer.concat(n,i),c;try{c=JSON.parse(l.toString())}catch(p){return t(p)}if(c.status!=="success"||c.error)return t(new Error(c.error||"Request failed"));delete c.status,cu=c,t(null,cu)}),r};Oh.exports.getTestMessageUrl=function(e){if(!e||!e.response)return!1;let t=new Map;return e.response.replace(/\[([^\]]+)\]$/,(r,n)=>{n.replace(/\b([A-Z0-9]+)=([^\s]+)/g,(i,s,a)=>{t.set(s,a)})}),t.has("STATUS")&&t.has("MSGID")?(cu.web||M2e)+"/message/"+t.get("MSGID"):!1}});f();import mu from"node:process";f();import{spawn as PV}from"node:child_process";import RV from"node:process";f();var $1=Nr(B1(),1),OV=process.env,li=(0,$1.default)({level:OV.RUN_AND_NOTIFY_LOG_LEVEL??"info"});f();f();var NV=e=>e.replace(/\r\n/g,`
|
|
286
|
+
`).replace(/\r/g,`
|
|
287
|
+
`).replace(/\n$/,""),z1=e=>({format:"html",html:NV(e)});f();f();var H1=e=>e.length===0?[]:e.replace(/\r\n/g,`
|
|
288
|
+
`).replace(/\r/g,`
|
|
289
|
+
`).replace(/\n$/,"").split(`
|
|
290
|
+
`);var U1=e=>({format:"jsonl",lines:H1(e).map(t=>{try{let r=JSON.parse(t);return r!==null&&typeof r=="object"&&!Array.isArray(r)?r:{value:r}}catch{return{raw:t}}})});f();var FV=e=>e.replace(/\r\n/g,`
|
|
291
|
+
`).replace(/\r/g,`
|
|
292
|
+
`).replace(/\n$/,""),V1=e=>({format:"markdown",markdown:FV(e)});f();var IV=e=>e.replace(/\r\n/g,`
|
|
293
|
+
`).replace(/\r/g,`
|
|
294
|
+
`).replace(/\n$/,""),G1=e=>({format:"raw",raw:IV(e)});var LV={html:z1,jsonl:U1,markdown:V1,raw:G1},Ym=(e,t)=>LV[t.format](e,t),dl=e=>{switch(e.format){case"raw":return e.raw;case"markdown":return e.markdown;case"html":return e.html;case"jsonl":return e.lines.map(t=>JSON.stringify(t).replace(/([,:])/g,"$1 ")).join(`
|
|
295
|
+
`)}};var W1=async(e,t,r)=>{if(e.length===0)throw new Error("No command provided. Pass the command after --.");let[n="",...i]=e,s=t.cwd??RV.cwd(),a=new Date().toISOString(),o="",l="",c=!1,p=li.child({executable:n,args:i});p.info("spawn %o %o",n,i);let u=PV(n,i,{cwd:s,env:r.env,shell:!1,stdio:["ignore","pipe","pipe"]}),h=Date.now(),d=()=>(Date.now()-h)/1e3;p=p.child({pid:u.pid}),u.stdout.setEncoding("utf8"),u.stderr.setEncoding("utf8"),u.stdout.on("data",b=>{p.debug("stdout: %o",b),o+=b}),u.stderr.on("data",b=>{p.debug("stderr: %o",b),l+=b});let m=t.timeoutSeconds>0?setTimeout(()=>{let b=d();p.warn({elapsedSeconds:b},"timed out waiting for child process %s after %s seconds",u.pid,b),c=!0,u.kill("SIGTERM")},t.timeoutSeconds*1e3):void 0;return await new Promise((b,v)=>{u.on("error",w=>{let T=d();p.error({err:w,elapsedSeconds:T},"error: %s",w),m!==void 0&&clearTimeout(m),v(w)}),u.on("close",(w,T)=>{let S=d();p.info({code:w,signal:T,elapsedSeconds:S},"close: code=%s, signal=%s, time=%s seconds",w,T,S),m!==void 0&&clearTimeout(m),b({command:e,cwd:s,status:c?124:w??1,...T!==null?{signal:T}:{},timedOut:c,executedAt:a,elapsedSeconds:S,stdout:Ym(o,t.stdout),stderr:Ym(l,t.stderr)})})})};f();var Kx=Nr(Sk(),1),ZF=Nr(Nk(),1),JF=Nr(v3(),1),Zx=Nr(W3(),1),QF=Nr(OO(),1),YF=Nr(_N(),1);import Ece from"node:fs";import Dce from"node:process";f();f();f();var Mt=class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};var gx=[],tc;function rc(e,t,r,n){tc=n;let i={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!="string")return i;let s=/\.json|\..*rc$/.test(e.extends),a=null;if(s)a=lle(t,e.extends);else try{a=import.meta.resolve(e.extends)}catch{return e}ole(a),gx.push(a),i=s?JSON.parse(tc.readFileSync(a,"utf8")):n.require(e.extends),delete e.extends,i=rc(i,tc.path.dirname(a),r,tc)}return gx=[],r?wN(i,e):Object.assign({},i,e)}function ole(e){if(gx.indexOf(e)>-1)throw new Mt(`Circular extended configurations: '${e}'.`)}function lle(e,t){return tc.path.resolve(e,t)}function wN(e,t){let r={};function n(i){return i&&typeof i=="object"&&!Array.isArray(i)}Object.assign(r,e);for(let i of Object.keys(t))n(t[i])&&n(r[i])?r[i]=wN(e[i],t[i]):r[i]=t[i];return r}f();function EN(){return cle()?0:1}function cle(){return ule()&&!process.defaultApp}function ule(){return!!process.versions.electron}function xx(e){return e.slice(EN()+1)}function DN(){return process.argv[EN()]}f();import{format as dle}from"util";import{normalize as hle,resolve as mle}from"path";f();function Ps(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let a=e.charAt(s);n&&(n=!1,a=a.toUpperCase()),s!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}function Wp(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),a=e.charAt(i);s!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}function Kp(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}f();f();function SN(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let a=0;a<e.length;a++){if(r=n,n=e.charAt(a),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}f();var nn;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(nn||(nn={}));var gi,Zp=class{constructor(t){gi=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=SN(t),s=typeof t=="string",a=ple(Object.assign(Object.create(null),n.alias)),o=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),l=Object.assign(Object.create(null),n.default),c=n.configObjects||[],p=n.envPrefix,u=o["populate--"],h=u?"--":"_",d=Object.create(null),m=Object.create(null),b=n.__||gi.format,v={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},w=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,T=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(I){let R=typeof I=="object"?I.key:I,Q=Object.keys(I).map(function(W){return{boolean:"bools",string:"strings",number:"numbers"}[W]}).filter(Boolean).pop();Q&&(v[Q][R]=!0),v.arrays[R]=!0,v.keys.push(R)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(I){v.bools[I]=!0,v.keys.push(I)}),[].concat(n.string||[]).filter(Boolean).forEach(function(I){v.strings[I]=!0,v.keys.push(I)}),[].concat(n.number||[]).filter(Boolean).forEach(function(I){v.numbers[I]=!0,v.keys.push(I)}),[].concat(n.count||[]).filter(Boolean).forEach(function(I){v.counts[I]=!0,v.keys.push(I)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(I){v.normalize[I]=!0,v.keys.push(I)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([I,R])=>{typeof R=="number"&&(v.nargs[I]=R,v.keys.push(I))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([I,R])=>{typeof R=="function"&&(v.coercions[I]=R,v.keys.push(I))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(I){v.configs[I]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([I,R])=>{(typeof R=="boolean"||typeof R=="function")&&(v.configs[I]=R)})),F(n.key,a,n.default,v.arrays),Object.keys(l).forEach(function(I){(v.aliases[I]||[]).forEach(function(R){l[R]=l[I]})});let S=null;ki();let O=[],P=Object.assign(Object.create(null),{_:[]}),A={};for(let I=0;I<i.length;I++){let R=i[I],Q=R.replace(/^-{3,}/,"---"),W,M,ae,te,le,ve;if(R!=="--"&&/^-/.test(R)&&ne(R))K(R);else if(Q.match(/^---+(=|$)/)){K(R);continue}else if(R.match(/^--.+=/)||!o["short-option-groups"]&&R.match(/^-.+=/))te=R.match(/^--?([^=]+)=([\s\S]*)$/),te!==null&&Array.isArray(te)&&te.length>=3&&(B(te[1],v.arrays)?I=J(I,te[1],i,te[2]):B(te[1],v.nargs)!==!1?I=ee(I,te[1],i,te[2]):L(te[1],te[2],!0));else if(R.match(T)&&o["boolean-negation"])te=R.match(T),te!==null&&Array.isArray(te)&&te.length>=2&&(M=te[1],L(M,B(M,v.arrays)?[!1]:!1));else if(R.match(/^--.+/)||!o["short-option-groups"]&&R.match(/^-[^-]+/))te=R.match(/^--?(.+)/),te!==null&&Array.isArray(te)&&te.length>=2&&(M=te[1],B(M,v.arrays)?I=J(I,M,i):B(M,v.nargs)!==!1?I=ee(I,M,i):(le=i[I+1],le!==void 0&&(!le.match(/^-/)||le.match(w))&&!B(M,v.bools)&&!B(M,v.counts)||/^(true|false)$/.test(le)?(L(M,le),I++):L(M,Me(M))));else if(R.match(/^-.\..+=/))te=R.match(/^-([^=]+)=([\s\S]*)$/),te!==null&&Array.isArray(te)&&te.length>=3&&L(te[1],te[2]);else if(R.match(/^-.\..+/)&&!R.match(w))le=i[I+1],te=R.match(/^-(.\..+)/),te!==null&&Array.isArray(te)&&te.length>=2&&(M=te[1],le!==void 0&&!le.match(/^-/)&&!B(M,v.bools)&&!B(M,v.counts)?(L(M,le),I++):L(M,Me(M)));else if(R.match(/^-[^-]+/)&&!R.match(w)){ae=R.slice(1,-1).split(""),W=!1;for(let Ut=0;Ut<ae.length;Ut++){if(le=R.slice(Ut+2),ae[Ut+1]&&ae[Ut+1]==="="){ve=R.slice(Ut+3),M=ae[Ut],B(M,v.arrays)?I=J(I,M,i,ve):B(M,v.nargs)!==!1?I=ee(I,M,i,ve):L(M,ve),W=!0;break}if(le==="-"){L(ae[Ut],le);continue}if(/[A-Za-z]/.test(ae[Ut])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(le)&&B(le,v.bools)===!1){L(ae[Ut],le),W=!0;break}if(ae[Ut+1]&&ae[Ut+1].match(/\W/)){L(ae[Ut],le),W=!0;break}else L(ae[Ut],Me(ae[Ut]))}M=R.slice(-1)[0],!W&&M!=="-"&&(B(M,v.arrays)?I=J(I,M,i):B(M,v.nargs)!==!1?I=ee(I,M,i):(le=i[I+1],le!==void 0&&(!/^(-|--)[^-]/.test(le)||le.match(w))&&!B(M,v.bools)&&!B(M,v.counts)||/^(true|false)$/.test(le)?(L(M,le),I++):L(M,Me(M))))}else if(R.match(/^-[0-9]$/)&&R.match(w)&&B(R.slice(1),v.bools))M=R.slice(1),L(M,Me(M));else if(R==="--"){O=i.slice(I+1);break}else if(o["halt-at-non-option"]){O=i.slice(I);break}else K(R)}de(P,!0),de(P,!1),E(P),oe(),k(P,v.aliases,l,!0),Ie(P),o["set-placeholder-key"]&&ft(P),Object.keys(v.counts).forEach(function(I){dt(P,I.split("."))||L(I,0)}),u&&O.length&&(P[h]=[]),O.forEach(function(I){P[h].push(I)}),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(P).filter(I=>I!=="--"&&I.includes("-")).forEach(I=>{delete P[I]}),o["strip-aliased"]&&[].concat(...Object.keys(a).map(I=>a[I])).forEach(I=>{o["camel-case-expansion"]&&I.includes("-")&&delete P[I.split(".").map(R=>Ps(R)).join(".")],delete P[I]});function K(I){let R=q("_",I);(typeof R=="string"||typeof R=="number")&&P._.push(R)}function ee(I,R,Q,W){let M,ae=B(R,v.nargs);if(ae=typeof ae!="number"||isNaN(ae)?1:ae,ae===0)return er(W)||(S=Error(b("Argument unexpected for: %s",R))),L(R,Me(R)),I;let te=er(W)?0:1;if(o["nargs-eats-options"])Q.length-(I+1)+te<ae&&(S=Error(b("Not enough arguments following: %s",R))),te=ae;else{for(M=I+1;M<Q.length&&(!Q[M].match(/^-[^0-9]/)||Q[M].match(w)||ne(Q[M]));M++)te++;te<ae&&(S=Error(b("Not enough arguments following: %s",R)))}let le=Math.min(te,ae);for(!er(W)&&le>0&&(L(R,W),le--),M=I+1;M<le+I+1;M++)L(R,Q[M]);return I+le}function J(I,R,Q,W){let M=[],ae=W||Q[I+1],te=B(R,v.nargs);if(B(R,v.bools)&&!/^(true|false)$/.test(ae))M.push(!0);else if(er(ae)||er(W)&&/^-/.test(ae)&&!w.test(ae)&&!ne(ae)){if(l[R]!==void 0){let le=l[R];M=Array.isArray(le)?le:[le]}}else{er(W)||M.push($(R,W,!0));for(let le=I+1;le<Q.length&&!(!o["greedy-arrays"]&&M.length>0||te&&typeof te=="number"&&M.length>=te||(ae=Q[le],/^-/.test(ae)&&!w.test(ae)&&!ne(ae)));le++)I=le,M.push($(R,ae,s))}return typeof te=="number"&&(te&&M.length<te||isNaN(te)&&M.length===0)&&(S=Error(b("Not enough arguments following: %s",R))),L(R,M),I}function L(I,R,Q=s){if(/-/.test(I)&&o["camel-case-expansion"]){let ae=I.split(".").map(function(te){return Ps(te)}).join(".");N(I,ae)}let W=$(I,R,Q),M=I.split(".");_t(P,M,W),v.aliases[I]&&v.aliases[I].forEach(function(ae){let te=ae.split(".");_t(P,te,W)}),M.length>1&&o["dot-notation"]&&(v.aliases[M[0]]||[]).forEach(function(ae){let te=ae.split("."),le=[].concat(M);le.shift(),te=te.concat(le),(v.aliases[I]||[]).includes(te.join("."))||_t(P,te,W)}),B(I,v.normalize)&&!B(I,v.arrays)&&[I].concat(v.aliases[I]||[]).forEach(function(te){Object.defineProperty(A,te,{enumerable:!0,get(){return R},set(le){R=typeof le=="string"?gi.normalize(le):le}})})}function N(I,R){v.aliases[I]&&v.aliases[I].length||(v.aliases[I]=[R],d[R]=!0),v.aliases[R]&&v.aliases[R].length||N(R,I)}function $(I,R,Q){Q&&(R=fle(R)),(B(I,v.bools)||B(I,v.counts))&&typeof R=="string"&&(R=R==="true");let W=Array.isArray(R)?R.map(function(M){return q(I,M)}):q(I,R);return B(I,v.counts)&&(er(W)||typeof W=="boolean")&&(W=bx()),B(I,v.normalize)&&B(I,v.arrays)&&(Array.isArray(R)?W=R.map(M=>gi.normalize(M)):W=gi.normalize(R)),W}function q(I,R){return!o["parse-positional-numbers"]&&I==="_"||!B(I,v.strings)&&!B(I,v.bools)&&!Array.isArray(R)&&(Kp(R)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${R}`)))||!er(R)&&B(I,v.numbers))&&(R=Number(R)),R}function E(I){let R=Object.create(null);k(R,v.aliases,l),Object.keys(v.configs).forEach(function(Q){let W=I[Q]||R[Q];if(W)try{let M=null,ae=gi.resolve(gi.cwd(),W),te=v.configs[Q];if(typeof te=="function"){try{M=te(ae)}catch(le){M=le}if(M instanceof Error){S=M;return}}else M=gi.require(ae);H(M)}catch(M){M.name==="PermissionDenied"?S=M:I[Q]&&(S=Error(b("Invalid JSON config file: %s",W)))}})}function H(I,R){Object.keys(I).forEach(function(Q){let W=I[Q],M=R?R+"."+Q:Q;typeof W=="object"&&W!==null&&!Array.isArray(W)&&o["dot-notation"]?H(W,M):(!dt(P,M.split("."))||B(M,v.arrays)&&o["combine-arrays"])&&L(M,W)})}function oe(){typeof c<"u"&&c.forEach(function(I){H(I)})}function de(I,R){if(typeof p>"u")return;let Q=typeof p=="string"?p:"",W=gi.env();Object.keys(W).forEach(function(M){if(Q===""||M.lastIndexOf(Q,0)===0){let ae=M.split("__").map(function(te,le){return le===0&&(te=te.substring(Q.length)),Ps(te)});(R&&v.configs[ae.join(".")]||!R)&&!dt(I,ae)&&L(ae.join("."),W[M])}})}function Ie(I){let R,Q=new Set;Object.keys(I).forEach(function(W){if(!Q.has(W)&&(R=B(W,v.coercions),typeof R=="function"))try{let M=q(W,R(I[W]));[].concat(v.aliases[W]||[],W).forEach(ae=>{Q.add(ae),I[ae]=M})}catch(M){S=M}})}function ft(I){return v.keys.forEach(R=>{~R.indexOf(".")||typeof I[R]>"u"&&(I[R]=void 0)}),I}function k(I,R,Q,W=!1){Object.keys(Q).forEach(function(M){dt(I,M.split("."))||(_t(I,M.split("."),Q[M]),W&&(m[M]=!0),(R[M]||[]).forEach(function(ae){dt(I,ae.split("."))||_t(I,ae.split("."),Q[M])}))})}function dt(I,R){let Q=I;o["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(M){Q=Q[M]||{}});let W=R[R.length-1];return typeof Q!="object"?!1:W in Q}function _t(I,R,Q){let W=I;o["dot-notation"]||(R=[R.join(".")]),R.slice(0,-1).forEach(function(ve){ve=kN(ve),typeof W=="object"&&W[ve]===void 0&&(W[ve]={}),typeof W[ve]!="object"||Array.isArray(W[ve])?(Array.isArray(W[ve])?W[ve].push({}):W[ve]=[W[ve],{}],W=W[ve][W[ve].length-1]):W=W[ve]});let M=kN(R[R.length-1]),ae=B(R.join("."),v.arrays),te=Array.isArray(Q),le=o["duplicate-arguments-array"];!le&&B(M,v.nargs)&&(le=!0,(!er(W[M])&&v.nargs[M]===1||Array.isArray(W[M])&&W[M].length===v.nargs[M])&&(W[M]=void 0)),Q===bx()?W[M]=bx(W[M]):Array.isArray(W[M])?le&&ae&&te?W[M]=o["flatten-duplicate-arrays"]?W[M].concat(Q):(Array.isArray(W[M][0])?W[M]:[W[M]]).concat([Q]):!le&&!!ae==!!te?W[M]=Q:W[M]=W[M].concat([Q]):W[M]===void 0&&ae?W[M]=te?Q:[Q]:le&&!(W[M]===void 0||B(M,v.counts)||B(M,v.bools))?W[M]=[W[M],Q]:W[M]=Q}function F(...I){I.forEach(function(R){Object.keys(R||{}).forEach(function(Q){v.aliases[Q]||(v.aliases[Q]=[].concat(a[Q]||[]),v.aliases[Q].concat(Q).forEach(function(W){if(/-/.test(W)&&o["camel-case-expansion"]){let M=Ps(W);M!==Q&&v.aliases[Q].indexOf(M)===-1&&(v.aliases[Q].push(M),d[M]=!0)}}),v.aliases[Q].concat(Q).forEach(function(W){if(W.length>1&&/[A-Z]/.test(W)&&o["camel-case-expansion"]){let M=Wp(W,"-");M!==Q&&v.aliases[Q].indexOf(M)===-1&&(v.aliases[Q].push(M),d[M]=!0)}}),v.aliases[Q].forEach(function(W){v.aliases[W]=[Q].concat(v.aliases[Q].filter(function(M){return W!==M}))}))})})}function B(I,R){let Q=[].concat(v.aliases[I]||[],I),W=Object.keys(R),M=Q.find(ae=>W.includes(ae));return M?R[M]:!1}function zt(I){let R=Object.keys(v);return[].concat(R.map(W=>v[W])).some(function(W){return Array.isArray(W)?W.includes(I):W[I]})}function fe(I,...R){return[].concat(...R).some(function(W){let M=I.match(W);return M&&zt(M[1])})}function We(I){if(I.match(w)||!I.match(/^-[^-]+/))return!1;let R=!0,Q,W=I.slice(1).split("");for(let M=0;M<W.length;M++){if(Q=I.slice(M+2),!zt(W[M])){R=!1;break}if(W[M+1]&&W[M+1]==="="||Q==="-"||/[A-Za-z]/.test(W[M])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(Q)||W[M+1]&&W[M+1].match(/\W/))break}return R}function ne(I){return o["unknown-options-as-args"]&&Fe(I)}function Fe(I){return I=I.replace(/^-{3,}/,"--"),I.match(w)||We(I)?!1:!fe(I,/^-+([^=]+?)=[\s\S]*$/,T,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function Me(I){return!B(I,v.bools)&&!B(I,v.counts)&&`${I}`in l?l[I]:et(ct(I))}function et(I){return{[nn.BOOLEAN]:!0,[nn.STRING]:"",[nn.NUMBER]:void 0,[nn.ARRAY]:[]}[I]}function ct(I){let R=nn.BOOLEAN;return B(I,v.strings)?R=nn.STRING:B(I,v.numbers)?R=nn.NUMBER:B(I,v.bools)?R=nn.BOOLEAN:B(I,v.arrays)&&(R=nn.ARRAY),R}function er(I){return I===void 0}function ki(){Object.keys(v.counts).find(I=>B(I,v.arrays)?(S=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",I)),!0):B(I,v.nargs)?(S=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",I)),!0):!1)}return{aliases:Object.assign({},v.aliases),argv:Object.assign(A,P),configuration:o,defaulted:Object.assign({},m),error:S,newAliases:Object.assign({},d)}}};function ple(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(o){return t[s].indexOf(o)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(a,o,l){return l.indexOf(a)===o});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function bx(e){return e!==void 0?e+1:1}function kN(e){return e==="__proto__"?"___proto___":e}function fle(e){return typeof e=="string"&&(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?e.substring(1,e.length-1):e}import{readFileSync as gle}from"fs";import{createRequire as CN}from"node:module";var yx,vx,_x,TN=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):20,AN=(vx=(yx=process==null?void 0:process.versions)===null||yx===void 0?void 0:yx.node)!==null&&vx!==void 0?vx:(_x=process==null?void 0:process.version)===null||_x===void 0?void 0:_x.slice(1);if(AN&&Number(AN.match(/^([^.]+)/)[1])<TN)throw Error(`yargs parser supports a minimum Node.js version of ${TN}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var xle=process?process.env:{},ON=CN?CN(import.meta.url):void 0,NN=new Zp({cwd:process.cwd,env:()=>xle,format:dle,normalize:hle,resolve:mle,require:e=>{if(typeof ON<"u")return ON(e);if(e.match(/\.json$/))return JSON.parse(gle(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),nc=function(t,r){return NN.parse(t.slice(),r).argv};nc.detailed=function(e,t){return NN.parse(e.slice(),t)};nc.camelCase=Ps;nc.decamelize=Wp;nc.looksLikeNumber=Kp;var wx=nc;f();import{notStrictEqual as Qle,strictEqual as Yle}from"assert";f();f();var ble={right:Ele,center:Dle},yle=0,Jp=1,vle=2,Qp=3,Ex=class{constructor(t){var r;this.width=t.width,this.wrap=(r=t.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...t){let r=this.div(...t);r.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let r=t.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let r=t.split(`
|
|
296
|
+
`).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&$r.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),$r.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,a)=>({text:s.trim(),padding:this.measurePadding(s),width:a===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let r=$r.stripAnsi(t);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(r=>{this.rowToString(r,t)}),t.filter(r=>!r.hidden).map(r=>r.text).join(`
|
|
297
|
+
`)}rowToString(t,r){return this.rasterize(t).forEach((n,i)=>{let s="";n.forEach((a,o)=>{let{width:l}=t[o],c=this.negatePadding(t[o]),p=a;if(c>$r.stringWidth(a)&&(p+=" ".repeat(c-$r.stringWidth(a))),t[o].align&&t[o].align!=="left"&&this.wrap){let h=ble[t[o].align];p=h(p,c),$r.stringWidth(p)<c&&(p+=" ".repeat((l||0)-$r.stringWidth(p)-1))}let u=t[o].padding||[0,0,0,0];u[Qp]&&(s+=" ".repeat(u[Qp])),s+=FN(t[o],p,"| "),s+=p,s+=FN(t[o],p," |"),u[Jp]&&(s+=" ".repeat(u[Jp])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:t.span})}),r}renderInline(t,r){let n=t.match(/^ */),i=n?n[0].length:0,s=r.text,a=$r.stringWidth(s.trimRight());return r.span?this.wrap?i<a?t:(r.hidden=!0,s.trimRight()+" ".repeat(i-a)+t.trimLeft()):(r.hidden=!0,s+t):t}rasterize(t){let r=[],n=this.columnWidths(t),i;return t.forEach((s,a)=>{s.width=n[a],this.wrap?i=$r.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
|
|
298
|
+
`):i=s.text.split(`
|
|
299
|
+
`),s.border&&(i.unshift("."+"-".repeat(this.negatePadding(s)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(s)+2)+"'")),s.padding&&(i.unshift(...new Array(s.padding[yle]||0).fill("")),i.push(...new Array(s.padding[vle]||0).fill(""))),i.forEach((o,l)=>{r[l]||r.push([]);let c=r[l];for(let p=0;p<a;p++)c[p]===void 0&&c.push("");c.push(o)})}),r}negatePadding(t){let r=t.width||0;return t.padding&&(r-=(t.padding[Qp]||0)+(t.padding[Jp]||0)),t.border&&(r-=4),r}columnWidths(t){if(!this.wrap)return t.map(a=>a.width||$r.stringWidth(a.text));let r=t.length,n=this.width,i=t.map(a=>{if(a.width)return r--,n-=a.width,a.width}),s=r?Math.floor(n/r):0;return i.map((a,o)=>a===void 0?Math.max(s,_le(t[o])):a)}};function FN(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":t.trim().length!==0?r:" ":""}function _le(e){let t=e.padding||[],r=1+(t[Qp]||0)+(t[Jp]||0);return e.border?r+4:r}function wle(){return typeof process=="object"&&process.stdout&&process.stdout.columns?process.stdout.columns:80}function Ele(e,t){e=e.trim();let r=$r.stringWidth(e);return r<t?" ".repeat(t-r)+e:e}function Dle(e,t){e=e.trim();let r=$r.stringWidth(e);return r>=t?e:" ".repeat(t-r>>1)+e}var $r;function IN(e,t){return $r=t,new Ex({width:e?.width||wle(),wrap:e?.wrap})}f();f();f();function Dx({onlyFirst:e=!1}={}){let i="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(i,e?void 0:"g")}var Sle=Dx();function Rs(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(Sle,"")}f();f();f();var LN=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],PN=12288,RN=65510,MN=[12288,12288,65281,65376,65504,65510];var qN=4352,jN=262141,Sx=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];f();var Yp=(e,t)=>{let r=0,n=Math.floor(e.length/2)-1;for(;r<=n;){let i=Math.floor((r+n)/2),s=i*2;if(t<e[s])n=i-1;else if(t>e[s+1])r=i+1;else return!0}return!1};var BN=19968,[Tle,Ale]=Ole(Sx);function Ole(e){let t=e[0],r=e[1];for(let n=0;n<e.length;n+=2){let i=e[n],s=e[n+1];if(BN>=i&&BN<=s)return[i,s];s-i>r-t&&(t=i,r=s)}return[t,r]}var $N=e=>e<161||e>1114109?!1:Yp(LN,e),zN=e=>e<PN||e>RN?!1:Yp(MN,e);var HN=e=>e>=Tle&&e<=Ale?!0:e<qN||e>jN?!1:Yp(Sx,e);function Nle(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function UN(e,{ambiguousAsWide:t=!1}={}){return Nle(e),zN(e)||HN(e)||t&&$N(e)?2:1}var WN=Nr(GN(),1),Fle=new Intl.Segmenter,Ile=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function wn(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=Rs(e)),e.length===0)return 0;let i=0,s={ambiguousAsWide:!r};for(let{segment:a}of Fle.segment(e)){let o=a.codePointAt(0);if(!(o<=31||o>=127&&o<=159)&&!(o>=8203&&o<=8207||o===65279)&&!(o>=768&&o<=879||o>=6832&&o<=6911||o>=7616&&o<=7679||o>=8400&&o<=8447||o>=65056&&o<=65071)&&!(o>=55296&&o<=57343)&&!(o>=65024&&o<=65039)&&!Ile.test(a)){if((0,WN.default)().test(a)){i+=2;continue}i+=UN(o,s)}}return i}f();f();var KN=(e=0)=>t=>`\x1B[${t+e}m`,ZN=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,JN=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,Et={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},O4e=Object.keys(Et.modifier),Lle=Object.keys(Et.color),Ple=Object.keys(Et.bgColor),N4e=[...Lle,...Ple];function Rle(){let e=new Map;for(let[t,r]of Object.entries(Et)){for(let[n,i]of Object.entries(r))Et[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Et[n],e.set(i[0],i[1]);Object.defineProperty(Et,t,{value:r,enumerable:!1})}return Object.defineProperty(Et,"codes",{value:e,enumerable:!1}),Et.color.close="\x1B[39m",Et.bgColor.close="\x1B[49m",Et.color.ansi=KN(),Et.color.ansi256=ZN(),Et.color.ansi16m=JN(),Et.bgColor.ansi=KN(10),Et.bgColor.ansi256=ZN(10),Et.bgColor.ansi16m=JN(10),Object.defineProperties(Et,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>Et.rgbToAnsi256(...Et.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let o=t%36;r=Math.floor(t/36)/5,n=Math.floor(o/6)/5,i=o%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let a=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>Et.ansi256ToAnsi(Et.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>Et.ansi256ToAnsi(Et.hexToAnsi256(t)),enumerable:!1}}),Et}var Mle=Rle(),QN=Mle;var ef=new Set(["\x1B","\x9B"]),qle=39,Cx="\x07",eF="[",jle="]",tF="m",Xp=`${jle}8;;`,YN=e=>`${ef.values().next().value}${eF}${e}${tF}`,XN=e=>`${ef.values().next().value}${Xp}${e}${Cx}`,Ble=e=>e.split(" ").map(t=>wn(t)),kx=(e,t,r)=>{let n=[...t],i=!1,s=!1,a=wn(Rs(e.at(-1)));for(let[o,l]of n.entries()){let c=wn(l);if(a+c<=r?e[e.length-1]+=l:(e.push(l),a=0),ef.has(l)&&(i=!0,s=n.slice(o+1,o+1+Xp.length).join("")===Xp),i){s?l===Cx&&(i=!1,s=!1):l===tF&&(i=!1);continue}a+=c,a===r&&o<n.length-1&&(e.push(""),a=0)}!a&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},$le=e=>{let t=e.split(" "),r=t.length;for(;r>0&&!(wn(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},zle=(e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let n="",i,s,a=Ble(e),o=[""];for(let[u,h]of e.split(" ").entries()){r.trim!==!1&&(o[o.length-1]=o.at(-1).trimStart());let d=wn(o.at(-1));if(u!==0&&(d>=t&&(r.wordWrap===!1||r.trim===!1)&&(o.push(""),d=0),(d>0||r.trim===!1)&&(o[o.length-1]+=" ",d++)),r.hard&&a[u]>t){let m=t-d,b=1+Math.floor((a[u]-m-1)/t);Math.floor((a[u]-1)/t)<b&&o.push(""),kx(o,h,t);continue}if(d+a[u]>t&&d>0&&a[u]>0){if(r.wordWrap===!1&&d<t){kx(o,h,t);continue}o.push("")}if(d+a[u]>t&&r.wordWrap===!1){kx(o,h,t);continue}o[o.length-1]+=h}r.trim!==!1&&(o=o.map(u=>$le(u)));let l=o.join(`
|
|
300
|
+
`),c=[...l],p=0;for(let[u,h]of c.entries()){if(n+=h,ef.has(h)){let{groups:m}=new RegExp(`(?:\\${eF}(?<code>\\d+)m|\\${Xp}(?<uri>.*)${Cx})`).exec(l.slice(p))||{groups:{}};if(m.code!==void 0){let b=Number.parseFloat(m.code);i=b===qle?void 0:b}else m.uri!==void 0&&(s=m.uri.length===0?void 0:m.uri)}let d=QN.codes.get(Number(i));c[u+1]===`
|
|
301
|
+
`?(s&&(n+=XN("")),i&&d&&(n+=YN(d))):h===`
|
|
302
|
+
`&&(i&&d&&(n+=YN(i)),s&&(n+=XN(s))),p+=h.length}return n};function Tx(e,t,r){return String(e).normalize().replaceAll(`\r
|
|
303
|
+
`,`
|
|
304
|
+
`).split(`
|
|
305
|
+
`).map(n=>zle(n,t,r)).join(`
|
|
306
|
+
`)}function Ax(e){return IN(e,{stringWidth:wn,stripAnsi:Rs,wrap:Tx})}f();import{dirname as rF,resolve as nF}from"path";import{readdirSync as Hle,statSync as Ule}from"fs";function iF(e,t){let r=nF(".",e),n;for(Ule(r).isDirectory()||(r=rF(r));;){if(n=t(r,Hle(r)),n)return nF(r,n);if(r=rF(n=r),n===r)break}}import{inspect as Xle}from"util";import{fileURLToPath as pF}from"url";import{basename as ece,dirname as tce,extname as rce,relative as nce,resolve as uF,join as ice}from"path";f();f();import{readFileSync as Vle,statSync as Gle,writeFile as Wle}from"fs";import{format as Kle}from"util";import{resolve as Zle}from"path";var sF={fs:{readFileSync:Vle,writeFile:Wle},format:Kle,resolve:Zle,exists:e=>{try{return Gle(e).isFile()}catch{return!1}}};f();var En,Ox=class{constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles=typeof t.updateFiles=="boolean"?t.updateFiles:!0,this.locale=t.locale||"en",this.fallbackToLanguage=typeof t.fallbackToLanguage=="boolean"?t.fallbackToLanguage:!0,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if(typeof arguments[0]!="string")return this._taggedLiteral(arguments[0],...arguments);let r=t.shift(),n=function(){};return typeof t[t.length-1]=="function"&&(n=t.pop()),n=n||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]=r,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:n})):n(),En.format.apply(En.format,[this.cache[this.locale][r]||r].concat(t))}__n(){let t=Array.prototype.slice.call(arguments),r=t.shift(),n=t.shift(),i=t.shift(),s=function(){};typeof t[t.length-1]=="function"&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let a=i===1?r:n;this.cache[this.locale][r]&&(a=this.cache[this.locale][r][i===1?"one":"other"]),!this.cache[this.locale][r]&&this.updateFiles?(this.cache[this.locale][r]={one:r,other:n},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();let o=[a];return~a.indexOf("%d")&&o.push(i),En.format.apply(En.format,o.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this.cache[this.locale][r]=t[r])}_taggedLiteral(t,...r){let n="";return t.forEach(function(i,s){let a=r[s+1];n+=i,typeof a<"u"&&(n+="%s")}),this.__.apply(this,[n].concat([].slice.call(r,1)))}_enqueueWrite(t){this.writeQueue.push(t),this.writeQueue.length===1&&this._processWriteQueue()}_processWriteQueue(){let t=this,r=this.writeQueue[0],n=r.directory,i=r.locale,s=r.cb,a=this._resolveLocaleFile(n,i),o=JSON.stringify(this.cache[i],null,2);En.fs.writeFile(a,o,"utf-8",function(l){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(l)})}_readLocaleFile(){let t={},r=this._resolveLocaleFile(this.directory,this.locale);try{En.fs.readFileSync&&(t=JSON.parse(En.fs.readFileSync(r,"utf-8")))}catch(n){if(n instanceof SyntaxError&&(n.message="syntax error in "+r),n.code==="ENOENT")t={};else throw n}this.cache[this.locale]=t}_resolveLocaleFile(t,r){let n=En.resolve(t,"./",r+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(n)&&~r.lastIndexOf("_")){let i=En.resolve(t,"./",r.split("_")[0]+".json");this._fileExistsSync(i)&&(n=i)}return n}_fileExistsSync(t){return En.exists(t)}};function aF(e,t){En=t;let r=new Ox(e);return{__:r.__.bind(r),__n:r.__n.bind(r),setLocale:r.setLocale.bind(r),getLocale:r.getLocale.bind(r),updateLocale:r.updateLocale.bind(r),locale:r.locale}}var Jle=e=>aF(e,sF),oF=Jle;var fF=Nr(cF(),1);import{createRequire as sce}from"node:module";import{readFileSync as ace,readdirSync as oce}from"node:fs";var Nx=pF(import.meta.url),lce=Nx.substring(0,Nx.lastIndexOf("node_modules")),cce=sce(import.meta.url),Fx={assert:{notStrictEqual:Qle,strictEqual:Yle},cliui:Ax,findUp:iF,getEnv:e=>process.env[e],inspect:Xle,getProcessArgvBin:DN,mainFilename:lce||process.cwd(),Parser:wx,path:{basename:ece,dirname:tce,extname:rce,relative:nce,resolve:uF,join:ice},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(e,t)=>process.emitWarning(e,t),execPath:()=>process.execPath,exit:e=>{process.exit(e)},nextTick:process.nextTick,stdColumns:typeof process.stdout.columns<"u"?process.stdout.columns:null},readFileSync:ace,readdirSync:oce,require:cce,getCallerFile:()=>{let e=(0,fF.default)(3);return e.match(/^file:\/\//)?pF(e):e},stringWidth:wn,y18n:oF({directory:uF(Nx,"../../../locales"),updateFiles:!1})};f();f();f();f();function Dr(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function Ix(e,t){t.assert.strictEqual(typeof e,"string")}function lo(e){return Object.keys(e)}f();function yt(e){return!!e&&!!e.then&&typeof e.then=="function"}f();f();f();function Ui(e){let r=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),n=/\.*[\][<>]/g,i=r.shift();if(!i)throw new Error(`No command found in: ${e}`);let s={cmd:i.replace(n,""),demanded:[],optional:[]};return r.forEach((a,o)=>{let l=!1;a=a.replace(/\s/g,""),/\.+[\]>]/.test(a)&&o===r.length-1&&(l=!0),/^\[/.test(a)?s.optional.push({cmd:a.replace(n,"").split("|"),variadic:l}):s.demanded.push({cmd:a.replace(n,"").split("|"),variadic:l})}),s}var uce=["first","second","third","fourth","fifth","sixth"];function ce(e,t,r){function n(){return typeof e=="object"?[{demanded:[],optional:[]},e,t]:[Ui(`cmd ${e}`),t,r]}try{let i=0,[s,a,o]=n(),l=[].slice.call(a);for(;l.length&&l[l.length-1]===void 0;)l.pop();let c=o||l.length;if(c<s.demanded.length)throw new Mt(`Not enough arguments provided. Expected ${s.demanded.length} but received ${l.length}.`);let p=s.demanded.length+s.optional.length;if(c>p)throw new Mt(`Too many arguments provided. Expected max ${p} but received ${c}.`);s.demanded.forEach(u=>{let h=l.shift(),d=dF(h);u.cmd.filter(b=>b===d||b==="*").length===0&&hF(d,u.cmd,i),i+=1}),s.optional.forEach(u=>{if(l.length===0)return;let h=l.shift(),d=dF(h);u.cmd.filter(b=>b===d||b==="*").length===0&&hF(d,u.cmd,i),i+=1})}catch(i){console.warn(i.stack)}}function dF(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function hF(e,t,r){throw new Mt(`Invalid ${uce[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}var tf=class{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,r,n=!0,i=!1){if(ce("<array|function> [boolean] [boolean] [boolean]",[t,r,n],arguments.length),Array.isArray(t)){for(let s=0;s<t.length;s++){if(typeof t[s]!="function")throw Error("middleware must be a function");let a=t[s];a.applyBeforeValidation=r,a.global=n}Array.prototype.push.apply(this.globalMiddleware,t)}else if(typeof t=="function"){let s=t;s.applyBeforeValidation=r,s.global=n,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,r){let n=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter(i=>{let s=[...n[r]||[],r];return i.option?!s.includes(i.option):!0}),t.option=r,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){let t=this.frozens.pop();t!==void 0&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter(t=>t.global)}};function mF(e){return e?e.map(t=>(t.applyBeforeValidation=!1,t)):[]}function Ms(e,t,r,n){return r.reduce((i,s)=>{if(s.applyBeforeValidation!==n)return i;if(s.mutates){if(s.applied)return i;s.applied=!0}if(yt(i))return i.then(a=>Promise.all([a,s(a,t)])).then(([a,o])=>Object.assign(a,o));{let a=s(i,t);return yt(a)?a.then(o=>Object.assign(i,o)):Object.assign(i,a)}},e)}f();function qs(e,t,r=n=>{throw n}){try{let n=pce(e)?e():e;return yt(n)?n.then(i=>t(i)):t(n)}catch(n){return r(n)}}function pce(e){return typeof e=="function"}var co=/(^\*)|(^\$0)/,Lx=class{constructor(t,r,n,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=n,this.validation=r}addDirectory(t,r,n,i){i=i||{},this.requireCache.add(n);let s=this.shim.path.resolve(this.shim.path.dirname(n),t),a=this.shim.readdirSync(s,{recursive:!!i.recurse});Array.isArray(i.extensions)||(i.extensions=["js"]);let o=typeof i.visit=="function"?i.visit:l=>l;for(let l of a){let c=l.toString();if(i.exclude){let u=!1;if(typeof i.exclude=="function"?u=i.exclude(c):u=i.exclude.test(c),u)continue}if(i.include){let u=!1;if(typeof i.include=="function"?u=i.include(c):u=i.include.test(c),!u)continue}let p=!1;for(let u of i.extensions)c.endsWith(u)&&(p=!0);if(p){let u=this.shim.path.join(s,c),h=r(u),d=Object.create(null,Object.getOwnPropertyDescriptors({...h}));if(o(d,u,c)){if(this.requireCache.has(u))continue;this.requireCache.add(u),d.command||(d.command=this.shim.path.basename(u,this.shim.path.extname(u))),this.addHandler(d)}}}}addHandler(t,r,n,i,s,a){let o=[],l=mF(s);if(i=i||(()=>{}),Array.isArray(t))if(fce(t))[t,...o]=t;else for(let c of t)this.addHandler(c);else if(hce(t)){let c=Array.isArray(t.command)||typeof t.command=="string"?t.command:null;if(c===null)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);t.aliases&&(c=[].concat(c).concat(t.aliases)),this.addHandler(c,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated);return}else if(gF(n)){this.addHandler([t].concat(o),r,n.builder,n.handler,n.middlewares,n.deprecated);return}if(typeof t=="string"){let c=Ui(t);o=o.map(h=>Ui(h).cmd);let p=!1,u=[c.cmd].concat(o).filter(h=>co.test(h)?(p=!0,!1):!0);u.length===0&&p&&u.push("$0"),p&&(c.cmd=u[0],o=u.slice(1),t=t.replace(co,c.cmd)),o.forEach(h=>{this.aliasMap[h]=c.cmd}),r!==!1&&this.usage.command(t,r,p,o,a),this.handlers[c.cmd]={original:t,description:r,handler:i,builder:n||{},middlewares:l,deprecated:a,demanded:c.demanded,optional:c.optional},p&&(this.defaultCommand=this.handlers[c.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,r,n,i,s,a){let o=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,l=r.getInternalMethods().getContext(),c=l.commands.slice(),p=!t;t&&(l.commands.push(t),l.fullCommands.push(o.original));let u=this.applyBuilderUpdateUsageAndParse(p,o,r,n.aliases,c,i,s,a);return yt(u)?u.then(h=>this.applyMiddlewareAndGetResult(p,o,h.innerArgv,l,s,h.aliases,r)):this.applyMiddlewareAndGetResult(p,o,u.innerArgv,l,s,u.aliases,r)}applyBuilderUpdateUsageAndParse(t,r,n,i,s,a,o,l){let c=r.builder,p=n;if(rf(c)){n.getInternalMethods().getUsageInstance().freeze();let u=c(n.getInternalMethods().reset(i),l);if(yt(u))return u.then(h=>(p=bF(h)?h:n,this.parseAndUpdateUsage(t,r,p,s,a,o)))}else dce(c)&&(n.getInternalMethods().getUsageInstance().freeze(),p=n.getInternalMethods().reset(i),Object.keys(r.builder).forEach(u=>{p.option(u,c[u])}));return this.parseAndUpdateUsage(t,r,p,s,a,o)}parseAndUpdateUsage(t,r,n,i,s,a){t&&n.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(n)&&n.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,r),r.description);let o=n.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,a);return yt(o)?o.then(l=>({aliases:n.parsed.aliases,innerArgv:l})):{aliases:n.parsed.aliases,innerArgv:o}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&t.getInternalMethods().getUsageInstance().getUsage().length===0}usageFromParentCommandsCommandHandler(t,r){let n=co.test(r.original)?r.original.replace(co,"").trim():r.original,i=t.filter(s=>!co.test(s));return i.push(n),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,r,n,i,s,a,o,l){if(!a.getInternalMethods().getHasOutput()){let c=a.getInternalMethods().runValidation(s,l,a.parsed.error,t);n=qs(n,p=>(c(p),p))}if(r.handler&&!a.getInternalMethods().getHasOutput()){a.getInternalMethods().setHasOutput();let c=!!a.getOptions().configuration["populate--"];a.getInternalMethods().postProcess(n,c,!1,!1),n=Ms(n,a,o,!1),n=qs(n,p=>{let u=r.handler(p);return yt(u)?u.then(()=>p):p}),t||a.getInternalMethods().getUsageInstance().cacheHelpMessage(),yt(n)&&!a.getInternalMethods().hasParseCallback()&&n.catch(p=>{try{a.getInternalMethods().getUsageInstance().fail(null,p)}catch{}})}return t||(i.commands.pop(),i.fullCommands.pop()),n}applyMiddlewareAndGetResult(t,r,n,i,s,a,o){let l={};if(s)return n;o.getInternalMethods().getHasOutput()||(l=this.populatePositionals(r,n,i,o));let c=this.globalMiddleware.getMiddleware().slice(0).concat(r.middlewares),p=Ms(n,o,c,!0);return yt(p)?p.then(u=>this.handleValidationAndGetResult(t,r,u,i,a,o,c,l)):this.handleValidationAndGetResult(t,r,p,i,a,o,c,l)}populatePositionals(t,r,n,i){r._=r._.slice(n.commands.length);let s=t.demanded.slice(0),a=t.optional.slice(0),o={};for(this.validation.positionalCount(s.length,r._.length);s.length;){let l=s.shift();this.populatePositional(l,r,o)}for(;a.length;){let l=a.shift();this.populatePositional(l,r,o)}return r._=n.commands.concat(r._.map(l=>""+l)),this.postProcessPositionals(r,o,this.cmdToParseOptions(t.original),i),o}populatePositional(t,r,n){let i=t.cmd[0];t.variadic?n[i]=r._.splice(0).map(String):r._.length&&(n[i]=[String(r._.shift())])}cmdToParseOptions(t){let r={array:[],default:{},alias:{},demand:{}},n=Ui(t);return n.demanded.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a,r.demand[s]=!0}),n.optional.forEach(i=>{let[s,...a]=i.cmd;i.variadic&&(r.array.push(s),r.default[s]=[]),r.alias[s]=a}),r}postProcessPositionals(t,r,n,i){let s=Object.assign({},i.getOptions());s.default=Object.assign(n.default,s.default);for(let c of Object.keys(n.alias))s.alias[c]=(s.alias[c]||[]).concat(n.alias[c]);s.array=s.array.concat(n.array),s.config={};let a=[];if(Object.keys(r).forEach(c=>{r[c].map(p=>{s.configuration["unknown-options-as-args"]&&(s.key[c]=!0),a.push(`--${c}`),a.push(p)})}),!a.length)return;let o=Object.assign({},s.configuration,{"populate--":!1}),l=this.shim.Parser.detailed(a,Object.assign({},s,{configuration:o}));if(l.error)i.getInternalMethods().getUsageInstance().fail(l.error.message,l.error);else{let c=Object.keys(r);Object.keys(r).forEach(p=>{c.push(...l.aliases[p])}),Object.keys(l.argv).forEach(p=>{c.includes(p)&&(r[p]||(r[p]=l.argv[p]),!this.isInConfigs(i,p)&&!this.isDefaulted(i,p)&&Object.prototype.hasOwnProperty.call(t,p)&&Object.prototype.hasOwnProperty.call(l.argv,p)&&(Array.isArray(t[p])||Array.isArray(l.argv[p]))?t[p]=[].concat(t[p],l.argv[p]):t[p]=l.argv[p])})}}isDefaulted(t,r){let{default:n}=t.getOptions();return Object.prototype.hasOwnProperty.call(n,r)||Object.prototype.hasOwnProperty.call(n,this.shim.Parser.camelCase(r))}isInConfigs(t,r){let{configObjects:n}=t.getOptions();return n.some(i=>Object.prototype.hasOwnProperty.call(i,r))||n.some(i=>Object.prototype.hasOwnProperty.call(i,this.shim.Parser.camelCase(r)))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){let n=co.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(n,this.defaultCommand.description)}let r=this.defaultCommand.builder;if(rf(r))return r(t,!0);gF(r)||Object.keys(r).forEach(n=>{t.option(n,r[n])})}extractDesc({describe:t,description:r,desc:n}){for(let i of[t,r,n]){if(typeof i=="string"||i===!1)return i;Dr(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){let t=this.frozens.pop();Dr(t,void 0,this.shim),{handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}};function xF(e,t,r,n){return new Lx(e,t,r,n)}function gF(e){return typeof e=="object"&&!!e.builder&&typeof e.handler=="function"}function fce(e){return e.every(t=>typeof t=="string")}function rf(e){return typeof e=="function"}function dce(e){return typeof e=="object"}function hce(e){return typeof e=="object"&&!Array.isArray(e)}f();f();function Vi(e={},t=()=>!0){let r={};return lo(e).forEach(n=>{t(n,e[n])&&(r[n]=e[n])}),r}f();function Gi(e){typeof process>"u"||[process.stdout,process.stderr].forEach(t=>{let r=t;r._handle&&r.isTTY&&typeof r._handle.setBlocking=="function"&&r._handle.setBlocking(e)})}function mce(e){return typeof e=="boolean"}function vF(e,t){let r=t.y18n.__,n={},i=[];n.failFn=function($){i.push($)};let s=null,a=null,o=!0;n.showHelpOnFail=function($=!0,q){let[E,H]=typeof $=="string"?[!0,$]:[$,q];return e.getInternalMethods().isGlobalContext()&&(a=H),s=H,o=E,n};let l=!1;n.fail=function($,q){let E=e.getInternalMethods().getLoggerInstance();if(i.length)for(let H=i.length-1;H>=0;--H){let oe=i[H];if(mce(oe)){if(q)throw q;if($)throw Error($)}else oe($,q,n)}else{if(e.getExitProcess()&&Gi(!0),!l){l=!0,o&&(e.showHelp("error"),E.error()),($||q)&&E.error($||q);let H=s||a;H&&(($||q)&&E.error(""),E.error(H))}if(q=q||new Mt($),e.getExitProcess())return e.exit(1);if(e.getInternalMethods().hasParseCallback())return e.exit(1,q);throw q}};let c=[],p=!1;n.usage=(N,$)=>N===null?(p=!0,c=[],n):(p=!1,c.push([N,$||""]),n),n.getUsage=()=>c,n.getUsageDisabled=()=>p,n.getPositionalGroupName=()=>r("Positionals:");let u=[];n.example=(N,$)=>{u.push([N,$||""])};let h=[];n.command=function($,q,E,H,oe=!1){E&&(h=h.map(de=>(de[2]=!1,de))),h.push([$,q||"",E,H,oe])},n.getCommands=()=>h;let d={};n.describe=function($,q){Array.isArray($)?$.forEach(E=>{n.describe(E,q)}):typeof $=="object"?Object.keys($).forEach(E=>{n.describe(E,$[E])}):d[$]=q},n.getDescriptions=()=>d;let m=[];n.epilog=N=>{m.push(N)};let b=!1,v;n.wrap=N=>{b=!0,v=N},n.getWrap=()=>t.getEnv("YARGS_DISABLE_WRAP")?null:(b||(v=ee(),b=!0),v);let w="__yargsString__:";n.deferY18nLookup=N=>w+N,n.help=function(){if(O)return O;S();let $=e.customScriptName?e.$0:t.path.basename(e.$0),q=e.getDemandedOptions(),E=e.getDemandedCommands(),H=e.getDeprecatedOptions(),oe=e.getGroups(),de=e.getOptions(),Ie=[];Ie=Ie.concat(Object.keys(d)),Ie=Ie.concat(Object.keys(q)),Ie=Ie.concat(Object.keys(E)),Ie=Ie.concat(Object.keys(de.default)),Ie=Ie.filter(A),Ie=Object.keys(Ie.reduce((fe,We)=>(We!=="_"&&(fe[We]=!0),fe),{}));let ft=n.getWrap(),k=t.cliui({width:ft,wrap:!!ft});if(!p){if(c.length)c.forEach(fe=>{k.div({text:`${fe[0].replace(/\$0/g,$)}`}),fe[1]&&k.div({text:`${fe[1]}`,padding:[1,0,0,0]})}),k.div();else if(h.length){let fe=null;E._?fe=`${$} <${r("command")}>
|
|
307
|
+
`:fe=`${$} [${r("command")}]
|
|
308
|
+
`,k.div(`${fe}`)}}if(h.length>1||h.length===1&&!h[0][2]){k.div(r("Commands:"));let fe=e.getInternalMethods().getContext(),We=fe.commands.length?`${fe.commands.join(" ")} `:"";e.getInternalMethods().getParserConfiguration()["sort-commands"]===!0&&(h=h.sort((Fe,Me)=>Fe[0].localeCompare(Me[0])));let ne=$?`${$} `:"";h.forEach(Fe=>{let Me=`${ne}${We}${Fe[0].replace(/^\$0 ?/,"")}`;k.span({text:Me,padding:[0,2,0,2],width:T(h,ft,`${$}${We}`)+4},{text:Fe[1]});let et=[];Fe[2]&&et.push(`[${r("default")}]`),Fe[3]&&Fe[3].length&&et.push(`[${r("aliases:")} ${Fe[3].join(", ")}]`),Fe[4]&&(typeof Fe[4]=="string"?et.push(`[${r("deprecated: %s",Fe[4])}]`):et.push(`[${r("deprecated")}]`)),et.length?k.div({text:et.join(" "),padding:[0,0,0,2],align:"right"}):k.div()}),k.div()}let dt=(Object.keys(de.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);Ie=Ie.filter(fe=>!e.parsed.newAliases[fe]&&dt.every(We=>(de.alias[We]||[]).indexOf(fe)===-1));let _t=r("Options:");oe[_t]||(oe[_t]=[]),P(Ie,de.alias,oe,_t);let F=fe=>/^--/.test(nf(fe)),B=Object.keys(oe).filter(fe=>oe[fe].length>0).map(fe=>{let We=oe[fe].filter(A).map(ne=>{if(dt.includes(ne))return ne;for(let Fe=0,Me;(Me=dt[Fe])!==void 0;Fe++)if((de.alias[Me]||[]).includes(ne))return Me;return ne});return{groupName:fe,normalizedKeys:We}}).filter(({normalizedKeys:fe})=>fe.length>0).map(({groupName:fe,normalizedKeys:We})=>{let ne=We.reduce((Fe,Me)=>(Fe[Me]=[Me].concat(de.alias[Me]||[]).map(et=>fe===n.getPositionalGroupName()?et:(/^[0-9]$/.test(et)?de.boolean.includes(Me)?"-":"--":et.length>1?"--":"-")+et).sort((et,ct)=>F(et)===F(ct)?0:F(et)?1:-1).join(", "),Fe),{});return{groupName:fe,normalizedKeys:We,switches:ne}});if(B.filter(({groupName:fe})=>fe!==n.getPositionalGroupName()).some(({normalizedKeys:fe,switches:We})=>!fe.every(ne=>F(We[ne])))&&B.filter(({groupName:fe})=>fe!==n.getPositionalGroupName()).forEach(({normalizedKeys:fe,switches:We})=>{fe.forEach(ne=>{F(We[ne])&&(We[ne]=gce(We[ne],4))})}),B.forEach(({groupName:fe,normalizedKeys:We,switches:ne})=>{k.div(fe),We.forEach(Fe=>{let Me=ne[Fe],et=d[Fe]||"",ct=null;et.includes(w)&&(et=r(et.substring(w.length))),de.boolean.includes(Fe)&&(ct=`[${r("boolean")}]`),de.count.includes(Fe)&&(ct=`[${r("count")}]`),de.string.includes(Fe)&&(ct=`[${r("string")}]`),de.normalize.includes(Fe)&&(ct=`[${r("string")}]`),de.array.includes(Fe)&&(ct=`[${r("array")}]`),de.number.includes(Fe)&&(ct=`[${r("number")}]`);let er=R=>typeof R=="string"?`[${r("deprecated: %s",R)}]`:`[${r("deprecated")}]`,ki=[Fe in H?er(H[Fe]):null,ct,Fe in q?`[${r("required")}]`:null,de.choices&&de.choices[Fe]?`[${r("choices:")} ${n.stringifiedValues(de.choices[Fe])}]`:null,K(de.default[Fe],de.defaultDescription[Fe])].filter(Boolean).join(" ");k.span({text:nf(Me),padding:[0,2,0,2+yF(Me)],width:T(ne,ft)+4},et);let I=e.getInternalMethods().getUsageConfiguration()["hide-types"]===!0;ki&&!I?k.div({text:ki,padding:[0,0,0,2],align:"right"}):k.div()}),k.div()}),u.length&&(k.div(r("Examples:")),u.forEach(fe=>{fe[0]=fe[0].replace(/\$0/g,$)}),u.forEach(fe=>{fe[1]===""?k.div({text:fe[0],padding:[0,2,0,2]}):k.div({text:fe[0],padding:[0,2,0,2],width:T(u,ft)+4},{text:fe[1]})}),k.div()),m.length>0){let fe=m.map(We=>We.replace(/\$0/g,$)).join(`
|
|
309
|
+
`);k.div(`${fe}
|
|
310
|
+
`)}return k.toString().replace(/\s*$/,"")};function T(N,$,q){let E=0;return Array.isArray(N)||(N=Object.values(N).map(H=>[H])),N.forEach(H=>{E=Math.max(t.stringWidth(q?`${q} ${nf(H[0])}`:nf(H[0]))+yF(H[0]),E)}),$&&(E=Math.min(E,parseInt(($*.5).toString(),10))),E}function S(){let N=e.getDemandedOptions(),$=e.getOptions();(Object.keys($.alias)||[]).forEach(q=>{$.alias[q].forEach(E=>{d[E]&&n.describe(q,d[E]),E in N&&e.demandOption(q,N[E]),$.boolean.includes(E)&&e.boolean(q),$.count.includes(E)&&e.count(q),$.string.includes(E)&&e.string(q),$.normalize.includes(E)&&e.normalize(q),$.array.includes(E)&&e.array(q),$.number.includes(E)&&e.number(q)})})}let O;n.cacheHelpMessage=function(){O=this.help()},n.clearCachedHelpMessage=function(){O=void 0},n.hasCachedHelpMessage=function(){return!!O};function P(N,$,q,E){let H=[],oe=null;return Object.keys(q).forEach(de=>{H=H.concat(q[de])}),N.forEach(de=>{oe=[de].concat($[de]),oe.some(Ie=>H.indexOf(Ie)!==-1)||q[E].push(de)}),H}function A(N){return e.getOptions().hiddenOptions.indexOf(N)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}n.showHelp=N=>{let $=e.getInternalMethods().getLoggerInstance();N||(N="error"),(typeof N=="function"?N:$[N])(n.help())},n.functionDescription=N=>["(",N.name?t.Parser.decamelize(N.name,"-"):r("generated-value"),")"].join(""),n.stringifiedValues=function($,q){let E="",H=q||", ",oe=[].concat($);return!$||!oe.length||oe.forEach(de=>{E.length&&(E+=H),E+=JSON.stringify(de)}),E};function K(N,$){let q=`[${r("default:")} `;if(N===void 0&&!$)return null;if($)q+=$;else switch(typeof N){case"string":q+=`"${N}"`;break;case"object":q+=JSON.stringify(N);break;default:q+=N}return`${q}]`}function ee(){return t.process.stdColumns?Math.min(80,t.process.stdColumns):80}let J=null;n.version=N=>{J=N},n.showVersion=N=>{let $=e.getInternalMethods().getLoggerInstance();N||(N="error"),(typeof N=="function"?N:$[N])(J)},n.reset=function($){return s=null,l=!1,c=[],p=!1,m=[],u=[],h=[],d=Vi(d,q=>!$[q]),n};let L=[];return n.freeze=function(){L.push({failMessage:s,failureOutput:l,usages:c,usageDisabled:p,epilogs:m,examples:u,commands:h,descriptions:d})},n.unfreeze=function($=!1){let q=L.pop();q&&($?(d={...q.descriptions,...d},h=[...q.commands,...h],c=[...q.usages,...c],u=[...q.examples,...u],m=[...q.epilogs,...m]):{failMessage:s,failureOutput:l,usages:c,usageDisabled:p,epilogs:m,examples:u,commands:h,descriptions:d}=q)},n}function Px(e){return typeof e=="object"}function gce(e,t){return Px(e)?{text:e.text,indentation:e.indentation+t}:{text:e,indentation:t}}function yF(e){return Px(e)?e.indentation:0}function nf(e){return Px(e)?e.text:e}f();f();var _F=`###-begin-{{app_name}}-completions-###
|
|
311
|
+
#
|
|
312
|
+
# yargs command completion script
|
|
313
|
+
#
|
|
314
|
+
# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc
|
|
315
|
+
# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.
|
|
316
|
+
#
|
|
317
|
+
_{{app_name}}_yargs_completions()
|
|
318
|
+
{
|
|
319
|
+
local cur_word args type_list
|
|
320
|
+
|
|
321
|
+
cur_word="\${COMP_WORDS[COMP_CWORD]}"
|
|
322
|
+
args=("\${COMP_WORDS[@]}")
|
|
323
|
+
|
|
324
|
+
# ask yargs to generate completions.
|
|
325
|
+
# see https://stackoverflow.com/a/40944195/7080036 for the spaces-handling awk
|
|
326
|
+
mapfile -t type_list < <({{app_path}} --get-yargs-completions "\${args[@]}")
|
|
327
|
+
mapfile -t COMPREPLY < <(compgen -W "$( printf '%q ' "\${type_list[@]}" )" -- "\${cur_word}" |
|
|
328
|
+
awk '/ / { print "\\""$0"\\"" } /^[^ ]+$/ { print $0 }')
|
|
329
|
+
|
|
330
|
+
# if no match was found, fall back to filename completion
|
|
331
|
+
if [ \${#COMPREPLY[@]} -eq 0 ]; then
|
|
332
|
+
COMPREPLY=()
|
|
333
|
+
fi
|
|
334
|
+
|
|
335
|
+
return 0
|
|
336
|
+
}
|
|
337
|
+
complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
|
|
338
|
+
###-end-{{app_name}}-completions-###
|
|
339
|
+
`,wF=`#compdef {{app_name}}
|
|
340
|
+
###-begin-{{app_name}}-completions-###
|
|
341
|
+
#
|
|
342
|
+
# yargs command completion script
|
|
343
|
+
#
|
|
344
|
+
# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc
|
|
345
|
+
# or {{app_path}} {{completion_command}} >> ~/.zprofile on OSX.
|
|
346
|
+
#
|
|
347
|
+
_{{app_name}}_yargs_completions()
|
|
348
|
+
{
|
|
349
|
+
local reply
|
|
350
|
+
local si=$IFS
|
|
351
|
+
IFS=$'
|
|
352
|
+
' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "\${words[@]}"))
|
|
353
|
+
IFS=$si
|
|
354
|
+
if [[ \${#reply} -gt 0 ]]; then
|
|
355
|
+
_describe 'values' reply
|
|
356
|
+
else
|
|
357
|
+
_default
|
|
358
|
+
fi
|
|
359
|
+
}
|
|
360
|
+
if [[ "'\${zsh_eval_context[-1]}" == "loadautofunc" ]]; then
|
|
361
|
+
_{{app_name}}_yargs_completions "$@"
|
|
362
|
+
else
|
|
363
|
+
compdef _{{app_name}}_yargs_completions {{app_name}}
|
|
364
|
+
fi
|
|
365
|
+
###-end-{{app_name}}-completions-###
|
|
366
|
+
`;var Rx=class{constructor(t,r,n,i){var s,a,o;this.yargs=t,this.usage=r,this.command=n,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=(o=((s=this.shim.getEnv("SHELL"))===null||s===void 0?void 0:s.includes("zsh"))||((a=this.shim.getEnv("ZSH_NAME"))===null||a===void 0?void 0:a.includes("zsh")))!==null&&o!==void 0?o:!1}defaultCompletion(t,r,n,i){let s=this.command.getCommandHandlers();for(let o=0,l=t.length;o<l;++o)if(s[t[o]]&&s[t[o]].builder){let c=s[t[o]].builder;if(rf(c)){this.indexAfterLastReset=o+1;let p=this.yargs.getInternalMethods().reset();return c(p,!0),p.argv}}let a=[];this.commandCompletions(a,t,n),this.optionCompletions(a,t,r,n),this.choicesFromOptionsCompletions(a,t,r,n),this.choicesFromPositionalsCompletions(a,t,r,n),i(null,a)}commandCompletions(t,r,n){let i=this.yargs.getInternalMethods().getContext().commands;!n.match(/^-/)&&i[i.length-1]!==n&&!this.previousArgHasChoices(r)&&this.usage.getCommands().forEach(s=>{let a=Ui(s[0]).cmd;if(r.indexOf(a)===-1)if(!this.zshShell)t.push(a);else{let o=s[1]||"";t.push(a.replace(/:/g,"\\:")+":"+o)}})}optionCompletions(t,r,n,i){if((i.match(/^-/)||i===""&&t.length===0)&&!this.previousArgHasChoices(r)){let s=this.yargs.getOptions(),a=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(s.key).forEach(o=>{let l=!!s.configuration["boolean-negation"]&&s.boolean.includes(o);!a.includes(o)&&!s.hiddenOptions.includes(o)&&!this.argsContainKey(r,o,l)&&this.completeOptionKey(o,t,i,l&&!!s.default[o])})}}choicesFromOptionsCompletions(t,r,n,i){if(this.previousArgHasChoices(r)){let s=this.getPreviousArgChoices(r);s&&s.length>0&&t.push(...s.map(a=>a.replace(/:/g,"\\:")))}}choicesFromPositionalsCompletions(t,r,n,i){if(i===""&&t.length>0&&this.previousArgHasChoices(r))return;let s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],a=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),o=s[n._.length-a-1];if(!o)return;let l=this.yargs.getOptions().choices[o]||[];for(let c of l)c.startsWith(i)&&t.push(c.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let r=t[t.length-1],n="";if(!r.startsWith("-")&&t.length>1&&(n=r,r=t[t.length-2]),!r.startsWith("-"))return;let i=r.replace(/^-+/,""),s=this.yargs.getOptions(),a=[i,...this.yargs.getAliases()[i]||[]],o;for(let l of a)if(Object.prototype.hasOwnProperty.call(s.key,l)&&Array.isArray(s.choices[l])){o=s.choices[l];break}if(o)return o.filter(l=>!n||l.startsWith(n))}previousArgHasChoices(t){let r=this.getPreviousArgChoices(t);return r!==void 0&&r.length>0}argsContainKey(t,r,n){let i=s=>t.indexOf((/^[^0-9]$/.test(s)?"-":"--")+s)!==-1;if(i(r)||n&&i(`no-${r}`))return!0;if(this.aliases){for(let s of this.aliases[r])if(i(s))return!0}return!1}completeOptionKey(t,r,n,i){var s,a,o,l;let c=t;if(this.zshShell){let d=this.usage.getDescriptions(),m=(a=(s=this===null||this===void 0?void 0:this.aliases)===null||s===void 0?void 0:s[t])===null||a===void 0?void 0:a.find(w=>{let T=d[w];return typeof T=="string"&&T.length>0}),b=m?d[m]:void 0,v=(l=(o=d[t])!==null&&o!==void 0?o:b)!==null&&l!==void 0?l:"";c=`${t.replace(/:/g,"\\:")}:${v.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}let p=d=>/^--/.test(d),u=d=>/^[^0-9]$/.test(d),h=!p(n)&&u(t)?"-":"--";r.push(h+c),i&&r.push(h+"no-"+c)}customCompletion(t,r,n,i){if(Dr(this.customCompletionFunction,null,this.shim),bce(this.customCompletionFunction)){let s=this.customCompletionFunction(n,r);return yt(s)?s.then(a=>{this.shim.process.nextTick(()=>{i(null,a)})}).catch(a=>{this.shim.process.nextTick(()=>{i(a,void 0)})}):i(null,s)}else return yce(this.customCompletionFunction)?this.customCompletionFunction(n,r,(s=i)=>this.defaultCompletion(t,r,n,s),s=>{i(null,s)}):this.customCompletionFunction(n,r,s=>{i(null,s)})}getCompletion(t,r){let n=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),s=this.customCompletionFunction?a=>this.customCompletion(t,a,n,r):a=>this.defaultCompletion(t,a,n,r);return yt(i)?i.then(s):s(i)}generateCompletionScript(t,r){let n=this.zshShell?wF:_F,i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),n=n.replace(/{{app_name}}/g,i),n=n.replace(/{{completion_command}}/g,r),n.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}};function EF(e,t,r,n){return new Rx(e,t,r,n)}function bce(e){return e.length<3}function yce(e){return e.length>3}f();f();function DF(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let r=[],n;for(n=0;n<=t.length;n++)r[n]=[n];let i;for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:n>1&&i>1&&t.charAt(n-2)===e.charAt(i-1)&&t.charAt(n-1)===e.charAt(i-2)?r[n][i]=r[n-2][i-2]+1:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}var SF=["$0","--","_"];function kF(e,t,r){let n=r.y18n.__,i=r.y18n.__n,s={};s.nonOptionCount=function(u){let h=e.getDemandedCommands(),m=u._.length+(u["--"]?u["--"].length:0)-e.getInternalMethods().getContext().commands.length;h._&&(m<h._.min||m>h._.max)&&(m<h._.min?h._.minMsg!==void 0?t.fail(h._.minMsg?h._.minMsg.replace(/\$0/g,m.toString()).replace(/\$1/,h._.min.toString()):null):t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",m,m.toString(),h._.min.toString())):m>h._.max&&(h._.maxMsg!==void 0?t.fail(h._.maxMsg?h._.maxMsg.replace(/\$0/g,m.toString()).replace(/\$1/,h._.max.toString()):null):t.fail(i("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",m,m.toString(),h._.max.toString()))))},s.positionalCount=function(u,h){h<u&&t.fail(i("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",h,h+"",u+""))},s.requiredArguments=function(u,h){let d=null;for(let m of Object.keys(h))(!Object.prototype.hasOwnProperty.call(u,m)||typeof u[m]>"u")&&(d=d||{},d[m]=h[m]);if(d){let m=[];for(let v of Object.keys(d)){let w=d[v];w&&m.indexOf(w)<0&&m.push(w)}let b=m.length?`
|
|
367
|
+
${m.join(`
|
|
368
|
+
`)}`:"";t.fail(i("Missing required argument: %s","Missing required arguments: %s",Object.keys(d).length,Object.keys(d).join(", ")+b))}},s.unknownArguments=function(u,h,d,m,b=!0){var v;let w=e.getInternalMethods().getCommandInstance().getCommands(),T=[],S=e.getInternalMethods().getContext();if(Object.keys(u).forEach(O=>{!SF.includes(O)&&!Object.prototype.hasOwnProperty.call(d,O)&&!Object.prototype.hasOwnProperty.call(e.getInternalMethods().getParseContext(),O)&&!s.isValidAndSomeAliasIsNotNew(O,h)&&T.push(O)}),b&&(S.commands.length>0||w.length>0||m)&&u._.slice(S.commands.length).forEach(O=>{w.includes(""+O)||T.push(""+O)}),b){let P=((v=e.getDemandedCommands()._)===null||v===void 0?void 0:v.max)||0,A=S.commands.length+P;A<u._.length&&u._.slice(A).forEach(K=>{K=String(K),!S.commands.includes(K)&&!T.includes(K)&&T.push(K)})}T.length&&t.fail(i("Unknown argument: %s","Unknown arguments: %s",T.length,T.map(O=>O.trim()?O:`"${O}"`).join(", ")))},s.unknownCommands=function(u){let h=e.getInternalMethods().getCommandInstance().getCommands(),d=[],m=e.getInternalMethods().getContext();return(m.commands.length>0||h.length>0)&&u._.slice(m.commands.length).forEach(b=>{h.includes(""+b)||d.push(""+b)}),d.length>0?(t.fail(i("Unknown command: %s","Unknown commands: %s",d.length,d.join(", "))),!0):!1},s.isValidAndSomeAliasIsNotNew=function(u,h){if(!Object.prototype.hasOwnProperty.call(h,u))return!1;let d=e.parsed.newAliases;return[u,...h[u]].some(m=>!Object.prototype.hasOwnProperty.call(d,m)||!d[u])},s.limitedChoices=function(u){let h=e.getOptions(),d={};if(!Object.keys(h.choices).length)return;Object.keys(u).forEach(v=>{SF.indexOf(v)===-1&&Object.prototype.hasOwnProperty.call(h.choices,v)&&[].concat(u[v]).forEach(w=>{h.choices[v].indexOf(w)===-1&&w!==void 0&&(d[v]=(d[v]||[]).concat(w))})});let m=Object.keys(d);if(!m.length)return;let b=n("Invalid values:");m.forEach(v=>{b+=`
|
|
369
|
+
${n("Argument: %s, Given: %s, Choices: %s",v,t.stringifiedValues(d[v]),t.stringifiedValues(h.choices[v]))}`}),t.fail(b)};let a={};s.implies=function(u,h){ce("<string|object> [array|number|string]",[u,h],arguments.length),typeof u=="object"?Object.keys(u).forEach(d=>{s.implies(d,u[d])}):(e.global(u),a[u]||(a[u]=[]),Array.isArray(h)?h.forEach(d=>s.implies(u,d)):(Dr(h,void 0,r),a[u].push(h)))},s.getImplied=function(){return a};function o(p,u){let h=Number(u);return u=isNaN(h)?u:h,typeof u=="number"?u=p._.length>=u:u.match(/^--no-.+/)?(u=u.match(/^--no-(.+)/)[1],u=!Object.prototype.hasOwnProperty.call(p,u)):u=Object.prototype.hasOwnProperty.call(p,u),u}s.implications=function(u){let h=[];if(Object.keys(a).forEach(d=>{let m=d;(a[d]||[]).forEach(b=>{let v=m,w=b;v=o(u,v),b=o(u,b),v&&!b&&h.push(` ${m} -> ${w}`)})}),h.length){let d=`${n("Implications failed:")}
|
|
370
|
+
`;h.forEach(m=>{d+=m}),t.fail(d)}};let l={};s.conflicts=function(u,h){ce("<string|object> [array|string]",[u,h],arguments.length),typeof u=="object"?Object.keys(u).forEach(d=>{s.conflicts(d,u[d])}):(e.global(u),l[u]||(l[u]=[]),Array.isArray(h)?h.forEach(d=>s.conflicts(u,d)):l[u].push(h))},s.getConflicting=()=>l,s.conflicting=function(u){Object.keys(u).forEach(h=>{l[h]&&l[h].forEach(d=>{d&&u[h]!==void 0&&u[d]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",h,d))})}),e.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(l).forEach(h=>{l[h].forEach(d=>{d&&u[r.Parser.camelCase(h)]!==void 0&&u[r.Parser.camelCase(d)]!==void 0&&t.fail(n("Arguments %s and %s are mutually exclusive",h,d))})})},s.recommendCommands=function(u,h){h=h.sort((v,w)=>w.length-v.length);let m=null,b=1/0;for(let v=0,w;(w=h[v])!==void 0;v++){let T=DF(u,w);T<=3&&T<b&&(b=T,m=w)}m&&t.fail(n("Did you mean %s?",m))},s.reset=function(u){return a=Vi(a,h=>!u[h]),l=Vi(l,h=>!u[h]),s};let c=[];return s.freeze=function(){c.push({implied:a,conflicting:l})},s.unfreeze=function(){let u=c.pop();Dr(u,void 0,r),{implied:a,conflicting:l}=u},s}var ue=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},D=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},qt,js,ic,Rr,zr,sf,Wi,Bs,af,sn,of,an,Bn,Hr,on,lf,$s,Jt,me,cf,uf,Ur,zs,uo,Hs,Ki,pf,Se,Us,Vs,Gs,Ne,ff,$n,Ot;function GF(e){return(t=[],r=e.process.cwd(),n)=>{let i=new Wx(t,r,n,e);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i}}var CF=Symbol("copyDoubleDash"),TF=Symbol("copyDoubleDash"),Mx=Symbol("deleteFromParserHintObject"),AF=Symbol("emitWarning"),OF=Symbol("freeze"),NF=Symbol("getDollarZero"),Ws=Symbol("getParserConfiguration"),FF=Symbol("getUsageConfiguration"),qx=Symbol("guessLocale"),IF=Symbol("guessVersion"),LF=Symbol("parsePositionalNumbers"),jx=Symbol("pkgUp"),Zi=Symbol("populateParserHintArray"),po=Symbol("populateParserHintSingleValueDictionary"),Bx=Symbol("populateParserHintArrayDictionary"),$x=Symbol("populateParserHintDictionary"),zx=Symbol("sanitizeKey"),Hx=Symbol("setKey"),Ux=Symbol("unfreeze"),PF=Symbol("validateAsync"),RF=Symbol("getCommandInstance"),MF=Symbol("getContext"),qF=Symbol("getHasOutput"),jF=Symbol("getLoggerInstance"),BF=Symbol("getParseContext"),$F=Symbol("getUsageInstance"),zF=Symbol("getValidationInstance"),df=Symbol("hasParseCallback"),HF=Symbol("isGlobalContext"),Ks=Symbol("postProcess"),UF=Symbol("rebase"),Vx=Symbol("reset"),sc=Symbol("runYargsParserAndExecuteCommands"),Gx=Symbol("runValidation"),VF=Symbol("setHasOutput"),Zs=Symbol("kTrackManuallySetKeys"),vce="en_US",Wx=class{constructor(t=[],r,n,i){this.customScriptName=!1,this.parsed=!1,qt.set(this,void 0),js.set(this,void 0),ic.set(this,{commands:[],fullCommands:[]}),Rr.set(this,null),zr.set(this,null),sf.set(this,"show-hidden"),Wi.set(this,null),Bs.set(this,!0),af.set(this,{}),sn.set(this,!0),of.set(this,[]),an.set(this,void 0),Bn.set(this,{}),Hr.set(this,!1),on.set(this,null),lf.set(this,!0),$s.set(this,void 0),Jt.set(this,""),me.set(this,void 0),cf.set(this,void 0),uf.set(this,{}),Ur.set(this,null),zs.set(this,null),uo.set(this,{}),Hs.set(this,{}),Ki.set(this,void 0),pf.set(this,!1),Se.set(this,void 0),Us.set(this,!1),Vs.set(this,!1),Gs.set(this,!1),Ne.set(this,void 0),ff.set(this,{}),$n.set(this,null),Ot.set(this,void 0),ue(this,Se,i,"f"),ue(this,Ki,t,"f"),ue(this,js,r,"f"),ue(this,cf,n,"f"),ue(this,an,new tf(this),"f"),this.$0=this[NF](),this[Vx](),ue(this,qt,D(this,qt,"f"),"f"),ue(this,Ne,D(this,Ne,"f"),"f"),ue(this,Ot,D(this,Ot,"f"),"f"),ue(this,me,D(this,me,"f"),"f"),D(this,me,"f").showHiddenOpt=D(this,sf,"f"),ue(this,$s,this[TF](),"f"),D(this,Se,"f").y18n.setLocale(vce)}addHelpOpt(t,r){let n="help";return ce("[string|boolean] [string]",[t,r],arguments.length),D(this,on,"f")&&(this[Mx](D(this,on,"f")),ue(this,on,null,"f")),t===!1&&r===void 0?this:(ue(this,on,typeof t=="string"?t:n,"f"),this.boolean(D(this,on,"f")),this.describe(D(this,on,"f"),r||D(this,Ne,"f").deferY18nLookup("Show help")),this)}help(t,r){return this.addHelpOpt(t,r)}addShowHiddenOpt(t,r){if(ce("[string|boolean] [string]",[t,r],arguments.length),t===!1&&r===void 0)return this;let n=typeof t=="string"?t:D(this,sf,"f");return this.boolean(n),this.describe(n,r||D(this,Ne,"f").deferY18nLookup("Show hidden options")),D(this,me,"f").showHiddenOpt=n,this}showHidden(t,r){return this.addShowHiddenOpt(t,r)}alias(t,r){return ce("<object|string|array> [string|array]",[t,r],arguments.length),this[Bx](this.alias.bind(this),"alias",t,r),this}array(t){return ce("<array|string>",[t],arguments.length),this[Zi]("array",t),this[Zs](t),this}boolean(t){return ce("<array|string>",[t],arguments.length),this[Zi]("boolean",t),this[Zs](t),this}check(t,r){return ce("<function> [boolean]",[t,r],arguments.length),this.middleware((n,i)=>qs(()=>t(n,i.getOptions()),s=>(s?(typeof s=="string"||s instanceof Error)&&D(this,Ne,"f").fail(s.toString(),s):D(this,Ne,"f").fail(D(this,Se,"f").y18n.__("Argument check failed: %s",t.toString())),n),s=>(D(this,Ne,"f").fail(s.message?s.message:s.toString(),s),n)),!1,r),this}choices(t,r){return ce("<object|string|array> [string|array]",[t,r],arguments.length),this[Bx](this.choices.bind(this),"choices",t,r),this}coerce(t,r){if(ce("<object|string|array> [function]",[t,r],arguments.length),Array.isArray(t)){if(!r)throw new Mt("coerce callback must be provided");for(let i of t)this.coerce(i,r);return this}else if(typeof t=="object"){for(let i of Object.keys(t))this.coerce(i,t[i]);return this}if(!r)throw new Mt("coerce callback must be provided");let n=t;return D(this,me,"f").key[n]=!0,D(this,an,"f").addCoerceMiddleware((i,s)=>{var a;let o=(a=s.getAliases()[n])!==null&&a!==void 0?a:[],l=[n,...o].filter(c=>Object.prototype.hasOwnProperty.call(i,c));return l.length===0?i:qs(()=>r(i[l[0]]),c=>(l.forEach(p=>{i[p]=c}),i),c=>{throw new Mt(c.message)})},n),this}conflicts(t,r){return ce("<string|object> [string|array]",[t,r],arguments.length),D(this,Ot,"f").conflicts(t,r),this}config(t="config",r,n){return ce("[object|string] [string|function] [function]",[t,r,n],arguments.length),typeof t=="object"&&!Array.isArray(t)?(t=rc(t,D(this,js,"f"),this[Ws]()["deep-merge-config"]||!1,D(this,Se,"f")),D(this,me,"f").configObjects=(D(this,me,"f").configObjects||[]).concat(t),this):(typeof r=="function"&&(n=r,r=void 0),this.describe(t,r||D(this,Ne,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach(i=>{D(this,me,"f").config[i]=n||!0}),this)}completion(t,r,n){return ce("[string] [string|boolean|function] [function]",[t,r,n],arguments.length),typeof r=="function"&&(n=r,r=void 0),ue(this,zr,t||D(this,zr,"f")||"completion","f"),!r&&r!==!1&&(r="generate completion script"),this.command(D(this,zr,"f"),r),n&&D(this,Rr,"f").registerFunction(n),this}command(t,r,n,i,s,a){return ce("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,r,n,i,s,a],arguments.length),D(this,qt,"f").addHandler(t,r,n,i,s,a),this}commands(t,r,n,i,s,a){return this.command(t,r,n,i,s,a)}commandDir(t,r){ce("<string> [object]",[t,r],arguments.length);let n=D(this,cf,"f")||D(this,Se,"f").require;return D(this,qt,"f").addDirectory(t,n,D(this,Se,"f").getCallerFile(),r),this}count(t){return ce("<array|string>",[t],arguments.length),this[Zi]("count",t),this[Zs](t),this}default(t,r,n){return ce("<object|string|array> [*] [string]",[t,r,n],arguments.length),n&&(Ix(t,D(this,Se,"f")),D(this,me,"f").defaultDescription[t]=n),typeof r=="function"&&(Ix(t,D(this,Se,"f")),D(this,me,"f").defaultDescription[t]||(D(this,me,"f").defaultDescription[t]=D(this,Ne,"f").functionDescription(r)),r=r.call()),this[po](this.default.bind(this),"default",t,r),this}defaults(t,r,n){return this.default(t,r,n)}demandCommand(t=1,r,n,i){return ce("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,r,n,i],arguments.length),typeof r!="number"&&(n=r,r=1/0),this.global("_",!1),D(this,me,"f").demandedCommands._={min:t,max:r,minMsg:n,maxMsg:i},this}demand(t,r,n){return Array.isArray(r)?(r.forEach(i=>{Dr(n,!0,D(this,Se,"f")),this.demandOption(i,n)}),r=1/0):typeof r!="number"&&(n=r,r=1/0),typeof t=="number"?(Dr(n,!0,D(this,Se,"f")),this.demandCommand(t,r,n,n)):Array.isArray(t)?t.forEach(i=>{Dr(n,!0,D(this,Se,"f")),this.demandOption(i,n)}):typeof n=="string"?this.demandOption(t,n):(n===!0||typeof n>"u")&&this.demandOption(t),this}demandOption(t,r){return ce("<object|string|array> [string]",[t,r],arguments.length),this[po](this.demandOption.bind(this),"demandedOptions",t,r),this}deprecateOption(t,r){return ce("<string> [string|boolean]",[t,r],arguments.length),D(this,me,"f").deprecatedOptions[t]=r,this}describe(t,r){return ce("<object|string|array> [string]",[t,r],arguments.length),this[Hx](t,!0),D(this,Ne,"f").describe(t,r),this}detectLocale(t){return ce("<boolean>",[t],arguments.length),ue(this,Bs,t,"f"),this}env(t){return ce("[string|boolean]",[t],arguments.length),t===!1?delete D(this,me,"f").envPrefix:D(this,me,"f").envPrefix=t||"",this}epilogue(t){return ce("<string>",[t],arguments.length),D(this,Ne,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,r){return ce("<string|array> [string]",[t,r],arguments.length),Array.isArray(t)?t.forEach(n=>this.example(...n)):D(this,Ne,"f").example(t,r),this}exit(t,r){ue(this,Hr,!0,"f"),ue(this,Wi,r,"f"),D(this,sn,"f")&&D(this,Se,"f").process.exit(t)}exitProcess(t=!0){return ce("[boolean]",[t],arguments.length),ue(this,sn,t,"f"),this}fail(t){if(ce("<function|boolean>",[t],arguments.length),typeof t=="boolean"&&t!==!1)throw new Mt("Invalid first argument. Expected function or boolean 'false'");return D(this,Ne,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,r){return ce("<array> [function]",[t,r],arguments.length),r?D(this,Rr,"f").getCompletion(t,r):new Promise((n,i)=>{D(this,Rr,"f").getCompletion(t,(s,a)=>{s?i(s):n(a)})})}getDemandedOptions(){return ce([],0),D(this,me,"f").demandedOptions}getDemandedCommands(){return ce([],0),D(this,me,"f").demandedCommands}getDeprecatedOptions(){return ce([],0),D(this,me,"f").deprecatedOptions}getDetectLocale(){return D(this,Bs,"f")}getExitProcess(){return D(this,sn,"f")}getGroups(){return Object.assign({},D(this,Bn,"f"),D(this,Hs,"f"))}getHelp(){if(ue(this,Hr,!0,"f"),!D(this,Ne,"f").hasCachedHelpMessage()){if(!this.parsed){let r=this[sc](D(this,Ki,"f"),void 0,void 0,0,!0);if(yt(r))return r.then(()=>D(this,Ne,"f").help())}let t=D(this,qt,"f").runDefaultBuilderOn(this);if(yt(t))return t.then(()=>D(this,Ne,"f").help())}return Promise.resolve(D(this,Ne,"f").help())}getOptions(){return D(this,me,"f")}getStrict(){return D(this,Us,"f")}getStrictCommands(){return D(this,Vs,"f")}getStrictOptions(){return D(this,Gs,"f")}global(t,r){return ce("<string|array> [boolean]",[t,r],arguments.length),t=[].concat(t),r!==!1?D(this,me,"f").local=D(this,me,"f").local.filter(n=>t.indexOf(n)===-1):t.forEach(n=>{D(this,me,"f").local.includes(n)||D(this,me,"f").local.push(n)}),this}group(t,r){ce("<string|array> <string>",[t,r],arguments.length);let n=D(this,Hs,"f")[r]||D(this,Bn,"f")[r];D(this,Hs,"f")[r]&&delete D(this,Hs,"f")[r];let i={};return D(this,Bn,"f")[r]=(n||[]).concat(t).filter(s=>i[s]?!1:i[s]=!0),this}hide(t){return ce("<string>",[t],arguments.length),D(this,me,"f").hiddenOptions.push(t),this}implies(t,r){return ce("<string|object> [number|string|array]",[t,r],arguments.length),D(this,Ot,"f").implies(t,r),this}locale(t){return ce("[string]",[t],arguments.length),t===void 0?(this[qx](),D(this,Se,"f").y18n.getLocale()):(ue(this,Bs,!1,"f"),D(this,Se,"f").y18n.setLocale(t),this)}middleware(t,r,n){return D(this,an,"f").addMiddleware(t,!!r,n)}nargs(t,r){return ce("<string|object|array> [number]",[t,r],arguments.length),this[po](this.nargs.bind(this),"narg",t,r),this}normalize(t){return ce("<array|string>",[t],arguments.length),this[Zi]("normalize",t),this}number(t){return ce("<array|string>",[t],arguments.length),this[Zi]("number",t),this[Zs](t),this}option(t,r){if(ce("<string|object> [object]",[t,r],arguments.length),typeof t=="object")Object.keys(t).forEach(n=>{this.options(n,t[n])});else{typeof r!="object"&&(r={}),this[Zs](t),D(this,$n,"f")&&(t==="version"||r?.alias==="version")&&this[AF](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
|
|
371
|
+
`),void 0,"versionWarning"),D(this,me,"f").key[t]=!0,r.alias&&this.alias(t,r.alias);let n=r.deprecate||r.deprecated;n&&this.deprecateOption(t,n);let i=r.demand||r.required||r.require;i&&this.demand(t,i),r.demandOption&&this.demandOption(t,typeof r.demandOption=="string"?r.demandOption:void 0),r.conflicts&&this.conflicts(t,r.conflicts),"default"in r&&this.default(t,r.default),r.implies!==void 0&&this.implies(t,r.implies),r.nargs!==void 0&&this.nargs(t,r.nargs),r.config&&this.config(t,r.configParser),r.normalize&&this.normalize(t),r.choices&&this.choices(t,r.choices),r.coerce&&this.coerce(t,r.coerce),r.group&&this.group(t,r.group),(r.boolean||r.type==="boolean")&&(this.boolean(t),r.alias&&this.boolean(r.alias)),(r.array||r.type==="array")&&(this.array(t),r.alias&&this.array(r.alias)),(r.number||r.type==="number")&&(this.number(t),r.alias&&this.number(r.alias)),(r.string||r.type==="string")&&(this.string(t),r.alias&&this.string(r.alias)),(r.count||r.type==="count")&&this.count(t),typeof r.global=="boolean"&&this.global(t,r.global),r.defaultDescription&&(D(this,me,"f").defaultDescription[t]=r.defaultDescription),r.skipValidation&&this.skipValidation(t);let s=r.describe||r.description||r.desc,a=D(this,Ne,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(a,t)||typeof s=="string")&&this.describe(t,s),r.hidden&&this.hide(t),r.requiresArg&&this.requiresArg(t)}return this}options(t,r){return this.option(t,r)}parse(t,r,n){ce("[string|array] [function|boolean|object] [function]",[t,r,n],arguments.length),this[OF](),typeof t>"u"&&(t=D(this,Ki,"f")),typeof r=="object"&&(ue(this,zs,r,"f"),r=n),typeof r=="function"&&(ue(this,Ur,r,"f"),r=!1),r||ue(this,Ki,t,"f"),D(this,Ur,"f")&&ue(this,sn,!1,"f");let i=this[sc](t,!!r),s=this.parsed;return D(this,Rr,"f").setParsed(this.parsed),yt(i)?i.then(a=>(D(this,Ur,"f")&&D(this,Ur,"f").call(this,D(this,Wi,"f"),a,D(this,Jt,"f")),a)).catch(a=>{throw D(this,Ur,"f")&&D(this,Ur,"f")(a,this.parsed.argv,D(this,Jt,"f")),a}).finally(()=>{this[Ux](),this.parsed=s}):(D(this,Ur,"f")&&D(this,Ur,"f").call(this,D(this,Wi,"f"),i,D(this,Jt,"f")),this[Ux](),this.parsed=s,i)}parseAsync(t,r,n){let i=this.parse(t,r,n);return yt(i)?i:Promise.resolve(i)}parseSync(t,r,n){let i=this.parse(t,r,n);if(yt(i))throw new Mt(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return ce("<object>",[t],arguments.length),ue(this,uf,t,"f"),this}pkgConf(t,r){ce("<string> [string]",[t,r],arguments.length);let n=null,i=this[jx](r||D(this,js,"f"));return i[t]&&typeof i[t]=="object"&&(n=rc(i[t],r||D(this,js,"f"),this[Ws]()["deep-merge-config"]||!1,D(this,Se,"f")),D(this,me,"f").configObjects=(D(this,me,"f").configObjects||[]).concat(n)),this}positional(t,r){ce("<string> <object>",[t,r],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];r=Vi(r,(a,o)=>a==="type"&&!["string","number","boolean"].includes(o)?!1:n.includes(a));let i=D(this,ic,"f").fullCommands[D(this,ic,"f").fullCommands.length-1],s=i?D(this,qt,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return lo(s).forEach(a=>{let o=s[a];Array.isArray(o)?o.indexOf(t)!==-1&&(r[a]=!0):o[t]&&!(a in r)&&(r[a]=o[t])}),this.group(t,D(this,Ne,"f").getPositionalGroupName()),this.option(t,r)}recommendCommands(t=!0){return ce("[boolean]",[t],arguments.length),ue(this,pf,t,"f"),this}required(t,r,n){return this.demand(t,r,n)}require(t,r,n){return this.demand(t,r,n)}requiresArg(t){return ce("<array|string|object> [number]",[t],arguments.length),typeof t=="string"&&D(this,me,"f").narg[t]?this:(this[po](this.requiresArg.bind(this),"narg",t,NaN),this)}showCompletionScript(t,r){return ce("[string] [string]",[t,r],arguments.length),t=t||this.$0,D(this,$s,"f").log(D(this,Rr,"f").generateCompletionScript(t,r||D(this,zr,"f")||"completion")),this}showHelp(t){if(ce("[string|function]",[t],arguments.length),ue(this,Hr,!0,"f"),!D(this,Ne,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[sc](D(this,Ki,"f"),void 0,void 0,0,!0);if(yt(n))return n.then(()=>{D(this,Ne,"f").showHelp(t)}),this}let r=D(this,qt,"f").runDefaultBuilderOn(this);if(yt(r))return r.then(()=>{D(this,Ne,"f").showHelp(t)}),this}return D(this,Ne,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,r){return ce("[boolean|string] [string]",[t,r],arguments.length),D(this,Ne,"f").showHelpOnFail(t,r),this}showVersion(t){return ce("[string|function]",[t],arguments.length),D(this,Ne,"f").showVersion(t),this}skipValidation(t){return ce("<array|string>",[t],arguments.length),this[Zi]("skipValidation",t),this}strict(t){return ce("[boolean]",[t],arguments.length),ue(this,Us,t!==!1,"f"),this}strictCommands(t){return ce("[boolean]",[t],arguments.length),ue(this,Vs,t!==!1,"f"),this}strictOptions(t){return ce("[boolean]",[t],arguments.length),ue(this,Gs,t!==!1,"f"),this}string(t){return ce("<array|string>",[t],arguments.length),this[Zi]("string",t),this[Zs](t),this}terminalWidth(){return ce([],0),D(this,Se,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return ce("<object>",[t],arguments.length),ue(this,Bs,!1,"f"),D(this,Se,"f").y18n.updateLocale(t),this}usage(t,r,n,i){if(ce("<string|null|undefined> [string|boolean] [function|object] [function]",[t,r,n,i],arguments.length),r!==void 0){if(Dr(t,null,D(this,Se,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,r,n,i);throw new Mt(".usage() description must start with $0 if being used as alias for .command()")}else return D(this,Ne,"f").usage(t),this}usageConfiguration(t){return ce("<object>",[t],arguments.length),ue(this,ff,t,"f"),this}version(t,r,n){let i="version";if(ce("[boolean|string] [string] [string]",[t,r,n],arguments.length),D(this,$n,"f")&&(this[Mx](D(this,$n,"f")),D(this,Ne,"f").version(void 0),ue(this,$n,null,"f")),arguments.length===0)n=this[IF](),t=i;else if(arguments.length===1){if(t===!1)return this;n=t,t=i}else arguments.length===2&&(n=r,r=void 0);return ue(this,$n,typeof t=="string"?t:i,"f"),r=r||D(this,Ne,"f").deferY18nLookup("Show version number"),D(this,Ne,"f").version(n||void 0),this.boolean(D(this,$n,"f")),this.describe(D(this,$n,"f"),r),this}wrap(t){return ce("<number|null|undefined>",[t],arguments.length),D(this,Ne,"f").wrap(t),this}[(qt=new WeakMap,js=new WeakMap,ic=new WeakMap,Rr=new WeakMap,zr=new WeakMap,sf=new WeakMap,Wi=new WeakMap,Bs=new WeakMap,af=new WeakMap,sn=new WeakMap,of=new WeakMap,an=new WeakMap,Bn=new WeakMap,Hr=new WeakMap,on=new WeakMap,lf=new WeakMap,$s=new WeakMap,Jt=new WeakMap,me=new WeakMap,cf=new WeakMap,uf=new WeakMap,Ur=new WeakMap,zs=new WeakMap,uo=new WeakMap,Hs=new WeakMap,Ki=new WeakMap,pf=new WeakMap,Se=new WeakMap,Us=new WeakMap,Vs=new WeakMap,Gs=new WeakMap,Ne=new WeakMap,ff=new WeakMap,$n=new WeakMap,Ot=new WeakMap,CF)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch{}return t}[TF](){return{log:(...t)=>{this[df]()||console.log(...t),ue(this,Hr,!0,"f"),D(this,Jt,"f").length&&ue(this,Jt,D(this,Jt,"f")+`
|
|
372
|
+
`,"f"),ue(this,Jt,D(this,Jt,"f")+t.join(" "),"f")},error:(...t)=>{this[df]()||console.error(...t),ue(this,Hr,!0,"f"),D(this,Jt,"f").length&&ue(this,Jt,D(this,Jt,"f")+`
|
|
373
|
+
`,"f"),ue(this,Jt,D(this,Jt,"f")+t.join(" "),"f")}}}[Mx](t){lo(D(this,me,"f")).forEach(r=>{if((i=>i==="configObjects")(r))return;let n=D(this,me,"f")[r];Array.isArray(n)?n.includes(t)&&n.splice(n.indexOf(t),1):typeof n=="object"&&delete n[t]}),delete D(this,Ne,"f").getDescriptions()[t]}[AF](t,r,n){D(this,af,"f")[n]||(D(this,Se,"f").process.emitWarning(t,r),D(this,af,"f")[n]=!0)}[OF](){D(this,of,"f").push({options:D(this,me,"f"),configObjects:D(this,me,"f").configObjects.slice(0),exitProcess:D(this,sn,"f"),groups:D(this,Bn,"f"),strict:D(this,Us,"f"),strictCommands:D(this,Vs,"f"),strictOptions:D(this,Gs,"f"),completionCommand:D(this,zr,"f"),output:D(this,Jt,"f"),exitError:D(this,Wi,"f"),hasOutput:D(this,Hr,"f"),parsed:this.parsed,parseFn:D(this,Ur,"f"),parseContext:D(this,zs,"f")}),D(this,Ne,"f").freeze(),D(this,Ot,"f").freeze(),D(this,qt,"f").freeze(),D(this,an,"f").freeze()}[NF](){let t="",r;return/\b(node|iojs|electron)(\.exe)?$/.test(D(this,Se,"f").process.argv()[0])?r=D(this,Se,"f").process.argv().slice(1,2):r=D(this,Se,"f").process.argv().slice(0,1),t=r.map(n=>{let i=this[UF](D(this,js,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&i.length<n.length?i:n}).join(" ").trim(),D(this,Se,"f").getEnv("_")&&D(this,Se,"f").getProcessArgvBin()===D(this,Se,"f").getEnv("_")&&(t=D(this,Se,"f").getEnv("_").replace(`${D(this,Se,"f").path.dirname(D(this,Se,"f").process.execPath())}/`,"")),t}[Ws](){return D(this,uf,"f")}[FF](){return D(this,ff,"f")}[qx](){if(!D(this,Bs,"f"))return;let t=D(this,Se,"f").getEnv("LC_ALL")||D(this,Se,"f").getEnv("LC_MESSAGES")||D(this,Se,"f").getEnv("LANG")||D(this,Se,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[IF](){return this[jx]().version||"unknown"}[LF](t){let r=t["--"]?t["--"]:t._;for(let n=0,i;(i=r[n])!==void 0;n++)D(this,Se,"f").Parser.looksLikeNumber(i)&&Number.isSafeInteger(Math.floor(parseFloat(`${i}`)))&&(r[n]=Number(i));return t}[jx](t){let r=t||"*";if(D(this,uo,"f")[r])return D(this,uo,"f")[r];let n={};try{let i=t||D(this,Se,"f").mainFilename;D(this,Se,"f").path.extname(i)&&(i=D(this,Se,"f").path.dirname(i));let s=D(this,Se,"f").findUp(i,(a,o)=>{if(o.includes("package.json"))return"package.json"});Dr(s,void 0,D(this,Se,"f")),n=JSON.parse(D(this,Se,"f").readFileSync(s,"utf8"))}catch{}return D(this,uo,"f")[r]=n||{},D(this,uo,"f")[r]}[Zi](t,r){r=[].concat(r),r.forEach(n=>{n=this[zx](n),D(this,me,"f")[t].push(n)})}[po](t,r,n,i){this[$x](t,r,n,i,(s,a,o)=>{D(this,me,"f")[s][a]=o})}[Bx](t,r,n,i){this[$x](t,r,n,i,(s,a,o)=>{D(this,me,"f")[s][a]=(D(this,me,"f")[s][a]||[]).concat(o)})}[$x](t,r,n,i,s){if(Array.isArray(n))n.forEach(a=>{t(a,i)});else if((a=>typeof a=="object")(n))for(let a of lo(n))t(a,n[a]);else s(r,this[zx](n),i)}[zx](t){return t==="__proto__"?"___proto___":t}[Hx](t,r){return this[po](this[Hx].bind(this),"key",t,r),this}[Ux](){var t,r,n,i,s,a,o,l,c,p,u,h;let d=D(this,of,"f").pop();Dr(d,void 0,D(this,Se,"f"));let m;t=this,r=this,n=this,i=this,s=this,a=this,o=this,l=this,c=this,p=this,u=this,h=this,{options:{set value(b){ue(t,me,b,"f")}}.value,configObjects:m,exitProcess:{set value(b){ue(r,sn,b,"f")}}.value,groups:{set value(b){ue(n,Bn,b,"f")}}.value,output:{set value(b){ue(i,Jt,b,"f")}}.value,exitError:{set value(b){ue(s,Wi,b,"f")}}.value,hasOutput:{set value(b){ue(a,Hr,b,"f")}}.value,parsed:this.parsed,strict:{set value(b){ue(o,Us,b,"f")}}.value,strictCommands:{set value(b){ue(l,Vs,b,"f")}}.value,strictOptions:{set value(b){ue(c,Gs,b,"f")}}.value,completionCommand:{set value(b){ue(p,zr,b,"f")}}.value,parseFn:{set value(b){ue(u,Ur,b,"f")}}.value,parseContext:{set value(b){ue(h,zs,b,"f")}}.value}=d,D(this,me,"f").configObjects=m,D(this,Ne,"f").unfreeze(),D(this,Ot,"f").unfreeze(),D(this,qt,"f").unfreeze(),D(this,an,"f").unfreeze()}[PF](t,r){return qs(r,n=>(t(n),n))}getInternalMethods(){return{getCommandInstance:this[RF].bind(this),getContext:this[MF].bind(this),getHasOutput:this[qF].bind(this),getLoggerInstance:this[jF].bind(this),getParseContext:this[BF].bind(this),getParserConfiguration:this[Ws].bind(this),getUsageConfiguration:this[FF].bind(this),getUsageInstance:this[$F].bind(this),getValidationInstance:this[zF].bind(this),hasParseCallback:this[df].bind(this),isGlobalContext:this[HF].bind(this),postProcess:this[Ks].bind(this),reset:this[Vx].bind(this),runValidation:this[Gx].bind(this),runYargsParserAndExecuteCommands:this[sc].bind(this),setHasOutput:this[VF].bind(this)}}[RF](){return D(this,qt,"f")}[MF](){return D(this,ic,"f")}[qF](){return D(this,Hr,"f")}[jF](){return D(this,$s,"f")}[BF](){return D(this,zs,"f")||{}}[$F](){return D(this,Ne,"f")}[zF](){return D(this,Ot,"f")}[df](){return!!D(this,Ur,"f")}[HF](){return D(this,lf,"f")}[Ks](t,r,n,i){return n||yt(t)||(r||(t=this[CF](t)),(this[Ws]()["parse-positional-numbers"]||this[Ws]()["parse-positional-numbers"]===void 0)&&(t=this[LF](t)),i&&(t=Ms(t,this,D(this,an,"f").getMiddleware(),!1))),t}[Vx](t={}){ue(this,me,D(this,me,"f")||{},"f");let r={};r.local=D(this,me,"f").local||[],r.configObjects=D(this,me,"f").configObjects||[];let n={};r.local.forEach(a=>{n[a]=!0,(t[a]||[]).forEach(o=>{n[o]=!0})}),Object.assign(D(this,Hs,"f"),Object.keys(D(this,Bn,"f")).reduce((a,o)=>{let l=D(this,Bn,"f")[o].filter(c=>!(c in n));return l.length>0&&(a[o]=l),a},{})),ue(this,Bn,{},"f");let i=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],s=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return i.forEach(a=>{r[a]=(D(this,me,"f")[a]||[]).filter(o=>!n[o])}),s.forEach(a=>{r[a]=Vi(D(this,me,"f")[a],o=>!n[o])}),r.envPrefix=D(this,me,"f").envPrefix,ue(this,me,r,"f"),ue(this,Ne,D(this,Ne,"f")?D(this,Ne,"f").reset(n):vF(this,D(this,Se,"f")),"f"),ue(this,Ot,D(this,Ot,"f")?D(this,Ot,"f").reset(n):kF(this,D(this,Ne,"f"),D(this,Se,"f")),"f"),ue(this,qt,D(this,qt,"f")?D(this,qt,"f").reset():xF(D(this,Ne,"f"),D(this,Ot,"f"),D(this,an,"f"),D(this,Se,"f")),"f"),D(this,Rr,"f")||ue(this,Rr,EF(this,D(this,Ne,"f"),D(this,qt,"f"),D(this,Se,"f")),"f"),D(this,an,"f").reset(),ue(this,zr,null,"f"),ue(this,Jt,"","f"),ue(this,Wi,null,"f"),ue(this,Hr,!1,"f"),this.parsed=!1,this}[UF](t,r){return D(this,Se,"f").path.relative(t,r)}[sc](t,r,n,i=0,s=!1){var a,o,l,c;let p=!!n||s;t=t||D(this,Ki,"f"),D(this,me,"f").__=D(this,Se,"f").y18n.__,D(this,me,"f").configuration=this[Ws]();let u=!!D(this,me,"f").configuration["populate--"],h=Object.assign({},D(this,me,"f").configuration,{"populate--":!0}),d=D(this,Se,"f").Parser.detailed(t,Object.assign({},D(this,me,"f"),{configuration:{"parse-positional-numbers":!1,...h}})),m=Object.assign(d.argv,D(this,zs,"f")),b,v=d.aliases,w=!1,T=!1;Object.keys(m).forEach(S=>{S===D(this,on,"f")&&m[S]?w=!0:S===D(this,$n,"f")&&m[S]&&(T=!0)}),m.$0=this.$0,this.parsed=d,i===0&&D(this,Ne,"f").clearCachedHelpMessage();try{if(this[qx](),r)return this[Ks](m,u,!!n,!1);D(this,on,"f")&&[D(this,on,"f")].concat(v[D(this,on,"f")]||[]).filter(K=>K.length>1).includes(""+m._[m._.length-1])&&(m._.pop(),w=!0),ue(this,lf,!1,"f");let S=D(this,qt,"f").getCommands(),O=!((a=D(this,Rr,"f"))===null||a===void 0)&&a.completionKey?[(o=D(this,Rr,"f"))===null||o===void 0?void 0:o.completionKey,...(c=this.getAliases()[(l=D(this,Rr,"f"))===null||l===void 0?void 0:l.completionKey])!==null&&c!==void 0?c:[]].some(A=>Object.prototype.hasOwnProperty.call(m,A)):!1,P=w||O||s;if(m._.length){if(S.length){let A;for(let K=i||0,ee;m._[K]!==void 0;K++)if(ee=String(m._[K]),S.includes(ee)&&ee!==D(this,zr,"f")){let J=D(this,qt,"f").runCommand(ee,this,d,K+1,s,w||T||s);return this[Ks](J,u,!!n,!1)}else if(!A&&ee!==D(this,zr,"f")){A=ee;break}!D(this,qt,"f").hasDefaultCommand()&&D(this,pf,"f")&&A&&!P&&D(this,Ot,"f").recommendCommands(A,S)}D(this,zr,"f")&&m._.includes(D(this,zr,"f"))&&!O&&(D(this,sn,"f")&&Gi(!0),this.showCompletionScript(),this.exit(0))}if(D(this,qt,"f").hasDefaultCommand()&&!P){let A=D(this,qt,"f").runCommand(null,this,d,0,s,w||T||s);return this[Ks](A,u,!!n,!1)}if(O){D(this,sn,"f")&&Gi(!0),t=[].concat(t);let A=t.slice(t.indexOf(`--${D(this,Rr,"f").completionKey}`)+1);return D(this,Rr,"f").getCompletion(A,(K,ee)=>{if(K)throw new Mt(K.message);(ee||[]).forEach(J=>{D(this,$s,"f").log(J)}),this.exit(0)}),this[Ks](m,!u,!!n,!1)}if(D(this,Hr,"f")||(w?(D(this,sn,"f")&&Gi(!0),p=!0,this.showHelp(A=>{D(this,$s,"f").log(A),this.exit(0)})):T&&(D(this,sn,"f")&&Gi(!0),p=!0,D(this,Ne,"f").showVersion("log"),this.exit(0))),!p&&D(this,me,"f").skipValidation.length>0&&(p=Object.keys(m).some(A=>D(this,me,"f").skipValidation.indexOf(A)>=0&&m[A]===!0)),!p){if(d.error)throw new Mt(d.error.message);if(!O){let A=this[Gx](v,{},d.error);n||(b=Ms(m,this,D(this,an,"f").getMiddleware(),!0)),b=this[PF](A,b??m),yt(b)&&!n&&(b=b.then(()=>Ms(m,this,D(this,an,"f").getMiddleware(),!1)))}}}catch(S){if(S instanceof Mt)D(this,Ne,"f").fail(S.message,S);else throw S}return this[Ks](b??m,u,!!n,!0)}[Gx](t,r,n,i){let s={...this.getDemandedOptions()};return a=>{if(n)throw new Mt(n.message);D(this,Ot,"f").nonOptionCount(a),D(this,Ot,"f").requiredArguments(a,s);let o=!1;D(this,Vs,"f")&&(o=D(this,Ot,"f").unknownCommands(a)),D(this,Us,"f")&&!o?D(this,Ot,"f").unknownArguments(a,t,r,!!i):D(this,Gs,"f")&&D(this,Ot,"f").unknownArguments(a,t,{},!1,!1),D(this,Ot,"f").limitedChoices(a),D(this,Ot,"f").implications(a),D(this,Ot,"f").conflicting(a)}}[VF](){ue(this,Hr,!0,"f")}[Zs](t){if(typeof t=="string")D(this,me,"f").key[t]=!0;else for(let r of t)D(this,me,"f").key[r]=!0}};function bF(e){return!!e&&typeof e.getInternalMethods=="function"}var _ce=GF(Fx),WF=_ce;var KF={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://github.com/barbieri/run-and-notify/schemas/config.schema.json",title:"run-and-notify configuration",type:"object",additionalProperties:!1,properties:{name:{type:"string",description:"Human-readable name of the automation used in default notification titles and subjects. Defaults to the command with arguments",minLength:1},locale:{type:"string",description:"BCP 47 locale used by date and time template helpers.",default:"en-US",minLength:1},cwd:{type:"string",description:"Working directory used to execute the command. CLI override: --cwd=/path."},dryRun:{type:"boolean",description:"Render and log notifications without sending through configured transports. It DOES EXECUTE the target command, just does not send the notifications!",default:!1},propagateExitCode:{type:"boolean",description:"When true, the run-and-notify process exits with the target command status after notifications are delivered.",default:!0},timeoutSeconds:{type:"integer",description:"Command timeout in seconds. A value of 0 disables the timeout.",default:0,minimum:0},showStderrIfSuccess:{type:"boolean",description:"When false, success templates should not render stderr.",default:!1},hideCommandIfSuccess:{type:"boolean",description:"When true, success templates should render only command output content and omit command metadata, visible separators, and output headings.",default:!1},templatesDir:{type:"string",description:"Directory containing Handlebars templates and partials. When omitted, built-in templates are used.",minLength:1},stdout:{type:"object",description:"Parsing configuration for command stdout.",additionalProperties:!1,properties:{format:{type:"string",description:"How stdout is exposed to templates.",default:"raw",enum:["raw","jsonl","markdown","html"]}},required:["format"]},stderr:{type:"object",description:"Parsing configuration for command stderr.",additionalProperties:!1,properties:{format:{type:"string",description:"How stderr is exposed to templates.",default:"raw",enum:["raw","jsonl","markdown","html"]}},required:["format"]},transports:{type:"object",description:"Better-Notify transport configuration.",default:{},additionalProperties:!1,properties:{smtp:{type:"object",description:"SMTP email transport configuration.",additionalProperties:!1,properties:{enabled:{type:"boolean",description:"Enable SMTP email notifications.",default:!0},host:{type:"string",description:"SMTP server host.",minLength:1},port:{type:"integer",description:"SMTP server port.",minimum:1,maximum:65535},secure:{type:"boolean",description:"Use TLS from connection start instead of STARTTLS.",default:!1},from:{type:"string",description:"Email sender address.",minLength:1},to:{type:"array",description:"Email recipient addresses.",items:{type:"string",minLength:1},minItems:1},auth:{type:"object",description:"SMTP authentication configuration.",additionalProperties:!1,properties:{user:{type:"string",description:"SMTP username."},passEnvVar:{type:"string",description:"Environment variable containing the SMTP password.",minLength:1}}}},required:["enabled","host","port","from","to"]},slack:{type:"object",description:"Better-Notify Slack transport configuration.",additionalProperties:!1,properties:{enabled:{type:"boolean",description:"Enable Slack notifications.",default:!0},tokenEnvVar:{type:"string",description:"Environment variable containing the Slack bot token used by @betternotify/slack slackTransport().",minLength:1},defaultChannel:{type:"string",description:"Default Slack channel ID or name used when Slack templates do not set a destination."}},required:["enabled","tokenEnvVar"]}}},success:{$ref:"#/definitions/notification",description:"Templates used when the command exits with status 0.",default:{email:{subject:"success.subject.hbs",html:"default.email.html.hbs",text:"default.text.hbs"},slack:{blocks:"default.slack.blocks.json.hbs"}}},error:{$ref:"#/definitions/notification",description:"Templates used when the command exits with a non-zero status.",default:{email:{subject:"error.subject.hbs",html:"default.email.html.hbs",text:"default.text.hbs"},slack:{blocks:"default.slack.blocks.json.hbs"}}}},required:["locale","dryRun","propagateExitCode","timeoutSeconds","showStderrIfSuccess","hideCommandIfSuccess","stdout","stderr","transports","success","error"],definitions:{emailTemplates:{type:"object",additionalProperties:!1,properties:{subject:{type:"string",description:"Handlebars template filename used for email subject."},html:{type:"string",description:"Handlebars template filename used for email HTML."},text:{type:"string",description:"Handlebars template filename used for plain text email."}}},slackTemplates:{type:"object",additionalProperties:!1,properties:{text:{type:"string",description:"Optional Handlebars template filename used for Slack fallback text. When omitted, fallback text is generated from command and status."},blocks:{type:"string",description:"Handlebars template filename that renders a JSON array of Slack blocks."}}},notification:{type:"object",additionalProperties:!1,properties:{email:{$ref:"#/definitions/emailTemplates"},slack:{$ref:"#/definitions/slackTemplates"}}}}};var Sce=()=>KF,XF=e=>{if(e.default!==void 0)return(0,JF.default)(e.default);if(e.type==="object"){let t={};for(let[r,n]of Object.entries(e.properties??{})){let i=XF(n);i!==void 0&&(t[r]=i)}return t}},eI=(e,t)=>{if(e.$ref===void 0)return e;let r="#/definitions/";if(!e.$ref.startsWith(r))throw new Error(`Unsupported schema ref ${e.$ref}`);let n=e.$ref.slice(r.length),i=t.definitions?.[n];if(i===void 0)throw new Error(`Schema ref ${e.$ref} was not found`);return i},kce=e=>{if(e.type==="integer"||e.type==="number")return"number";if(e.type==="array"||e.type==="boolean"||e.type==="string")return e.type},Jx=e=>e.map(QF.default).join("."),Cce=e=>{if(!e.startsWith("--")||e==="--")return;let[t=""]=e.slice(2).split("=",1);return t.startsWith("no-")?t.slice(3):t},Tce=e=>{let t=e.getOptions(),r=new Set(Object.keys(t.key));for(let[n,i]of Object.entries(t.alias)){r.add(n);for(let s of i)r.add(s)}return r},Ace=(e,t)=>{let r=Tce(t);for(let n of e){if(n==="--"||!n.startsWith("-"))break;if(n==="-c"||n==="-h")continue;let i=Cce(n);if(i!==void 0&&!r.has(i)&&!r.has(Jx([i])))return i}},Oce=(e,t,r,n,i)=>{let s=kce(r);if(s===void 0)return e;let a=(0,Zx.default)(n,t);return e.option(Jx(t),{...s==="array"?{array:!0,nargs:1}:{type:s},...r.enum?.length?{choices:r.enum}:{},...a!==void 0?{default:a}:{},describe:r.description,demandOption:i&&a===void 0,requiresArg:s!=="boolean"})},tI=(e,t,r,n)=>{if(typeof e!="object"||!e||Array.isArray(e))return e;let i=Object.entries(e).filter(([a,o])=>o!==void 0);if(i.length===0)return n?{}:void 0;let s=t.properties??{};return Object.fromEntries(i.flatMap(([a,o])=>{let l=s[a];if(l===void 0)return[];let c=eI(l,r),p=n&&!!t.required?.includes(a);return[[a,tI(o,c,r,p)]]}))},rI=(e,t,r,n,i,s)=>{let a=Jx(s),o=s.length===0?e:e.option(a,{default:(0,Zx.default)(n,s),hidden:!0});for(let[l,c]of Object.entries(t.properties??{})){let p=eI(c,r),u=i&&!!t.required?.includes(l),h=s.concat(l);if(p.type==="object"){o=rI(o,p,r,n,u,h);continue}o=Oce(o,h,p,n,u)}return o},Nce=e=>{try{return JSON.parse(Ece.readFileSync(e,"utf8"))}catch(t){if(t.code==="ENOENT")return{};throw t}},Fce=e=>e.map(t=>JSON.stringify(t)).join(", "),Ice=e=>{let t=e.instancePath,r=e.keyword==="enum"?e.params.allowedValues:void 0,n=r===void 0?"":`; allowed values: ${Fce(r)}`;return`${t} ${e.message}${n}`},nI=e=>e.map(Ice).join(`
|
|
374
|
+
`),Lce=(e,t,r)=>{let n=Nce(e),i=(0,YF.default)({},r,n);(typeof i.name!="string"||i.name==="")&&(i.name="run-and-notify");let a=new Kx.Ajv({allErrors:!0,strict:!1}).compile(t);if(!a(i)){let o=nI(a.errors);throw new Error(`Invalid configuration:
|
|
375
|
+
${o}`)}return i},iI=async(e=xx(Dce.argv),t=Sce())=>{let r=XF(t),n,i;i=rI(WF(e).scriptName("run-and-notify").usage("$0 [options] <command> [args...]").command("$0 [command..]","Execute a command and send notifications.",p=>p.positional("command",{array:!0,describe:"Command and arguments to execute.",type:"string"})).config(r).config("config",p=>Lce(p,t,r)).alias("config","c").option("dry-run",{describe:"Render and log notifications without sending through transports.",type:"boolean"}).help(!1).option("help",{alias:"h",describe:"Show help.",type:"boolean"}).parserConfiguration({"camel-case-expansion":!0,"strip-dashed":!0,"dot-notation":!0,"boolean-negation":!0,"halt-at-non-option":!0}).strict().fail(p=>{n=p}),t,t,r,!0,[]);let s=await i.parse();if(n!==void 0)return console.error(await i.getHelp()),console.error(n),{kind:"failed"};let a=Ace(e,i);if(a)return console.error(await i.getHelp()),console.error(`Unknown option: ${a}`),{kind:"failed"};if(s.help)return console.error(await i.getHelp()),{kind:"help"};ZF.default.config({quiet:!0}),s.name||(s.name=s._.map(p=>p.includes(" ")?`'${p}'`:p).join(" ")||"run-and-notify");let o=tI(s,t,t,!0),c=new Kx.Ajv({allErrors:!0,strict:!1}).compile(t);if(!c(o)){let p=nI(c.errors);throw new Error(`Invalid configuration:
|
|
376
|
+
${p}`)}return{kind:"parsed",config:o,command:s._}};f();var Uj=Nr(ky(),1);f();var Iq=Nr(VR(),1),Lq=Nr(ky(),1);import n_ from"node:fs/promises";import _h from"node:path";f();function wv(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var fa=wv();function YR(e){fa=e}var ua={exec:()=>null};function Qe(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(i,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(Cr.caret,"$1"),r=r.replace(i,a),n},getRegex:()=>new RegExp(r,t)};return n}var S0e=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Cr={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)}}>`)},k0e=/^(?:[ \t]*(?:\n|$))+/,C0e=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,T0e=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Pc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,A0e=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ev=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,XR=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,eM=Qe(XR).replace(/bull/g,Ev).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(),O0e=Qe(XR).replace(/bull/g,Ev).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(),Dv=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,N0e=/^[^\n]+/,Sv=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,F0e=Qe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Sv).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),I0e=Qe(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ev).getRegex(),Ld="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",kv=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,L0e=Qe("^ {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",kv).replace("tag",Ld).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tM=Qe(Dv).replace("hr",Pc).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",Ld).getRegex(),P0e=Qe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",tM).getRegex(),Cv={blockquote:P0e,code:C0e,def:F0e,fences:T0e,heading:A0e,hr:Pc,html:L0e,lheading:eM,list:I0e,newline:k0e,paragraph:tM,table:ua,text:N0e},GR=Qe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Pc).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",Ld).getRegex(),R0e={...Cv,lheading:O0e,table:GR,paragraph:Qe(Dv).replace("hr",Pc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",GR).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",Ld).getRegex()},M0e={...Cv,html:Qe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",kv).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:ua,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Qe(Dv).replace("hr",Pc).replace("heading",` *#{1,6} *[^
|
|
377
|
+
]`).replace("lheading",eM).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},q0e=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,j0e=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rM=/^( {2,}|\\)\n(?!\s*$)/,B0e=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,No=/[\p{P}\p{S}]/u,Pd=/[\s\p{P}\p{S}]/u,Tv=/[^\s\p{P}\p{S}]/u,$0e=Qe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Pd).getRegex(),nM=/(?!~)[\p{P}\p{S}]/u,z0e=/(?!~)[\s\p{P}\p{S}]/u,H0e=/(?:[^\s\p{P}\p{S}]|~)/u,U0e=Qe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",S0e?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),iM=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,V0e=Qe(iM,"u").replace(/punct/g,No).getRegex(),G0e=Qe(iM,"u").replace(/punct/g,nM).getRegex(),sM="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",W0e=Qe(sM,"gu").replace(/notPunctSpace/g,Tv).replace(/punctSpace/g,Pd).replace(/punct/g,No).getRegex(),K0e=Qe(sM,"gu").replace(/notPunctSpace/g,H0e).replace(/punctSpace/g,z0e).replace(/punct/g,nM).getRegex(),Z0e=Qe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Tv).replace(/punctSpace/g,Pd).replace(/punct/g,No).getRegex(),J0e=Qe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,No).getRegex(),Q0e="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Y0e=Qe(Q0e,"gu").replace(/notPunctSpace/g,Tv).replace(/punctSpace/g,Pd).replace(/punct/g,No).getRegex(),X0e=Qe(/\\(punct)/,"gu").replace(/punct/g,No).getRegex(),ege=Qe(/^<(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(),tge=Qe(kv).replace("(?:-->|$)","-->").getRegex(),rge=Qe("^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",tge).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Nd=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,nge=Qe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Nd).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),aM=Qe(/^!?\[(label)\]\[(ref)\]/).replace("label",Nd).replace("ref",Sv).getRegex(),oM=Qe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Sv).getRegex(),ige=Qe("reflink|nolink(?!\\()","g").replace("reflink",aM).replace("nolink",oM).getRegex(),WR=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Av={_backpedal:ua,anyPunctuation:X0e,autolink:ege,blockSkip:U0e,br:rM,code:j0e,del:ua,delLDelim:ua,delRDelim:ua,emStrongLDelim:V0e,emStrongRDelimAst:W0e,emStrongRDelimUnd:Z0e,escape:q0e,link:nge,nolink:oM,punctuation:$0e,reflink:aM,reflinkSearch:ige,tag:rge,text:B0e,url:ua},sge={...Av,link:Qe(/^!?\[(label)\]\((.*?)\)/).replace("label",Nd).getRegex(),reflink:Qe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Nd).getRegex()},yv={...Av,emStrongRDelimAst:K0e,emStrongLDelim:G0e,delLDelim:J0e,delRDelim:Y0e,url:Qe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",WR).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:Qe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",WR).getRegex()},age={...yv,br:Qe(rM).replace("{2,}","*").getRegex(),text:Qe(yv.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Od={normal:Cv,gfm:R0e,pedantic:M0e},Fc={normal:Av,gfm:yv,breaks:age,pedantic:sge},oge={"&":"&","<":"<",">":">",'"':""","'":"'"},KR=e=>oge[e];function Kn(e,t){if(t){if(Cr.escapeTest.test(e))return e.replace(Cr.escapeReplace,KR)}else if(Cr.escapeTestNoEncode.test(e))return e.replace(Cr.escapeReplaceNoEncode,KR);return e}function ZR(e){try{e=encodeURI(e).replace(Cr.percentDecode,"%")}catch{return null}return e}function JR(e,t){let r=e.replace(Cr.findPipe,(s,a,o)=>{let l=!1,c=a;for(;--c>=0&&o[c]==="\\";)l=!l;return l?"|":" |"}),n=r.split(Cr.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Cr.slashPipe,"|");return n}function Ic(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n;){let s=e.charAt(n-i-1);if(s===t&&!r)i++;else if(s!==t&&r)i++;else break}return e.slice(0,n-i)}function lge(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function cge(e,t=0){let r=t,n="";for(let i of e)if(i===" "){let s=4-r%4;n+=" ".repeat(s),r+=s}else n+=i,r++;return n}function QR(e,t,r,n,i){let s=t.href,a=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:a,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}function uge(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
|
|
378
|
+
`).map(s=>{let a=s.match(r.other.beginningSpace);if(a===null)return s;let[o]=a;return o.length>=i.length?s.slice(i.length):s}).join(`
|
|
379
|
+
`)}var Fd=class{options;rules;lexer;constructor(e){this.options=e||fa}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Ic(r,`
|
|
380
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],n=uge(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let n=Ic(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ic(t[0],`
|
|
381
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Ic(t[0],`
|
|
382
|
+
`).split(`
|
|
383
|
+
`),n="",i="",s=[];for(;r.length>0;){let a=!1,o=[],l;for(l=0;l<r.length;l++)if(this.rules.other.blockquoteStart.test(r[l]))o.push(r[l]),a=!0;else if(!a)o.push(r[l]);else break;r=r.slice(l);let c=o.join(`
|
|
384
|
+
`),p=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
385
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
386
|
+
${c}`:c,i=i?`${i}
|
|
387
|
+
${p}`:p;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,s,!0),this.lexer.state.top=u,r.length===0)break;let h=s.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let d=h,m=d.raw+`
|
|
388
|
+
`+r.join(`
|
|
389
|
+
`),b=this.blockquote(m);s[s.length-1]=b,n=n.substring(0,n.length-d.raw.length)+b.raw,i=i.substring(0,i.length-d.text.length)+b.text;break}else if(h?.type==="list"){let d=h,m=d.raw+`
|
|
390
|
+
`+r.join(`
|
|
391
|
+
`),b=this.list(m);s[s.length-1]=b,n=n.substring(0,n.length-h.raw.length)+b.raw,i=i.substring(0,i.length-d.raw.length)+b.raw,r=m.substring(s.at(-1).raw.length).split(`
|
|
392
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:s,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let s=this.rules.other.listItemRegex(r),a=!1;for(;e;){let l=!1,c="",p="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let u=cge(t[2].split(`
|
|
393
|
+
`,1)[0],t[1].length),h=e.split(`
|
|
394
|
+
`,1)[0],d=!u.trim(),m=0;if(this.options.pedantic?(m=2,p=u.trimStart()):d?m=t[1].length+1:(m=u.search(this.rules.other.nonSpaceChar),m=m>4?1:m,p=u.slice(m),m+=t[1].length),d&&this.rules.other.blankLine.test(h)&&(c+=h+`
|
|
395
|
+
`,e=e.substring(h.length+1),l=!0),!l){let b=this.rules.other.nextBulletRegex(m),v=this.rules.other.hrRegex(m),w=this.rules.other.fencesBeginRegex(m),T=this.rules.other.headingBeginRegex(m),S=this.rules.other.htmlBeginRegex(m),O=this.rules.other.blockquoteBeginRegex(m);for(;e;){let P=e.split(`
|
|
396
|
+
`,1)[0],A;if(h=P,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),A=h):A=h.replace(this.rules.other.tabCharGlobal," "),w.test(h)||T.test(h)||S.test(h)||O.test(h)||b.test(h)||v.test(h))break;if(A.search(this.rules.other.nonSpaceChar)>=m||!h.trim())p+=`
|
|
397
|
+
`+A.slice(m);else{if(d||u.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||w.test(u)||T.test(u)||v.test(u))break;p+=`
|
|
398
|
+
`+h}d=!h.trim(),c+=P+`
|
|
399
|
+
`,e=e.substring(P.length+1),u=A.slice(m)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(a=!0)),i.items.push({type:"list_item",raw:c,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),i.raw+=c}let o=i.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let l of i.items){if(this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]),l.task){if(l.text=l.text.replace(this.rules.other.listReplaceTask,""),l.tokens[0]?.type==="text"||l.tokens[0]?.type==="paragraph"){l.tokens[0].raw=l.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),l.tokens[0].text=l.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let c=this.rules.other.listTaskCheckbox.exec(l.raw);if(c){let p={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};l.checked=p.checked,i.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=p.raw+l.tokens[0].raw,l.tokens[0].text=p.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(p)):l.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):l.tokens.unshift(p)}}if(!i.loose){let c=l.tokens.filter(u=>u.type==="space"),p=c.length>0&&c.some(u=>this.rules.other.anyLine.test(u.raw));i.loose=p}}if(i.loose)for(let l of i.items){l.loose=!0;for(let c of l.tokens)c.type==="text"&&(c.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=JR(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
400
|
+
`):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let a of n)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<r.length;a++)s.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:s.align[a]});for(let a of i)s.rows.push(JR(a,s.header.length).map((o,l)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:s.align[l]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let r=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
|
|
401
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=Ic(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=lge(t[2],"()");if(s===-2)return;if(s>-1){let a=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),QR(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[n.toLowerCase()];if(!i){let s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return QR(r,i,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,s,a,o=i,l=0,c=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+i);(n=c.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(a=[...s].length,n[3]||n[4]){o+=a;continue}else if((n[5]||n[6])&&i%3&&!((i+a)%3)){l+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+l);let p=[...n[0]][0].length,u=e.slice(0,i+n.index+p+a);if(Math.min(i,a)%2){let d=u.slice(1,-1);return{type:"em",raw:u,text:d,tokens:this.lexer.inlineTokens(d)}}let h=u.slice(2,-2);return{type:"strong",raw:u,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,r=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,s,a,o=i,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+i);(n=l.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s||(a=[...s].length,a!==i))continue;if(n[3]||n[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let c=[...n[0]][0].length,p=e.slice(0,i+n.index+c+a),u=p.slice(i,-i);return{type:"del",raw:p,text:u,tokens:this.lexer.inlineTokens(u)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=t[1],n="mailto:"+r):(r=t[1],n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let r,n;if(t[2]==="@")r=t[0],n="mailto:"+r;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);r=t[0],t[1]==="www."?n="http://"+t[0]:n=t[0]}return{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},Sn=class vv{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||fa,this.options.tokenizer=this.options.tokenizer||new Fd,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Cr,block:Od.normal,inline:Fc.normal};this.options.pedantic?(r.block=Od.pedantic,r.inline=Fc.pedantic):this.options.gfm&&(r.block=Od.gfm,this.options.breaks?r.inline=Fc.breaks:r.inline=Fc.gfm),this.tokenizer.rules=r}static get rules(){return{block:Od,inline:Fc}}static lex(t,r){return new vv(r).lex(t)}static lexInline(t,r){return new vv(r).inlineTokens(t)}lex(t){t=t.replace(Cr.carriageReturn,`
|
|
402
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Cr.tabCharGlobal," ").replace(Cr.spaceLine,""));t;){let i;if(this.options.extensions?.block?.some(a=>(i=a.call({lexer:this},t,r))?(t=t.substring(i.raw.length),r.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let a=r.at(-1);i.raw.length===1&&a!==void 0?a.raw+=`
|
|
403
|
+
`:r.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
|
|
404
|
+
`)?"":`
|
|
405
|
+
`)+i.raw,a.text+=`
|
|
406
|
+
`+i.text,this.inlineQueue.at(-1).src=a.text):r.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
|
|
407
|
+
`)?"":`
|
|
408
|
+
`)+i.raw,a.text+=`
|
|
409
|
+
`+i.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},r.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),r.push(i);continue}let s=t;if(this.options.extensions?.startBlock){let a=1/0,o=t.slice(1),l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},o),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(s=t.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(s))){let a=r.at(-1);n&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
|
|
410
|
+
`)?"":`
|
|
411
|
+
`)+i.raw,a.text+=`
|
|
412
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(i),n=s.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let a=r.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
|
|
413
|
+
`)?"":`
|
|
414
|
+
`)+i.raw,a.text+=`
|
|
415
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(i);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){this.tokenizer.lexer=this;let n=t,i=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)l.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)s=i[2]?i[2].length:0,n=n.slice(0,i.index+s)+"["+"a".repeat(i[0].length-s-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o="";for(;t;){a||(o=""),a=!1;let l;if(this.options.extensions?.inline?.some(p=>(l=p.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let p=r.at(-1);l.type==="text"&&p?.type==="text"?(p.raw+=l.raw,p.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(t,n,o)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(t,n,o)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),r.push(l);continue}let c=t;if(this.options.extensions?.startInline){let p=1/0,u=t.slice(1),h;this.options.extensions.startInline.forEach(d=>{h=d.call({lexer:this},u),typeof h=="number"&&h>=0&&(p=Math.min(p,h))}),p<1/0&&p>=0&&(c=t.substring(0,p+1))}if(l=this.tokenizer.inlineText(c)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),a=!0;let p=r.at(-1);p?.type==="text"?(p.raw+=l.raw,p.text+=l.text):r.push(l);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return r}},Id=class{options;parser;constructor(e){this.options=e||fa}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(Cr.notSpaceStart)?.[0],i=e.replace(Cr.endingNewline,"")+`
|
|
416
|
+
`;return n?'<pre><code class="language-'+Kn(n)+'">'+(r?i:Kn(i,!0))+`</code></pre>
|
|
417
|
+
`:"<pre><code>"+(r?i:Kn(i,!0))+`</code></pre>
|
|
418
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
419
|
+
${this.parser.parse(e)}</blockquote>
|
|
420
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
421
|
+
`}hr(e){return`<hr>
|
|
422
|
+
`}list(e){let t=e.ordered,r=e.start,n="";for(let a=0;a<e.items.length;a++){let o=e.items[a];n+=this.listitem(o)}let i=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
|
|
423
|
+
`+n+"</"+i+`>
|
|
424
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
425
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
426
|
+
`}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){let s=e.rows[i];r="";for(let a=0;a<s.length;a++)r+=this.tablecell(s[a]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
427
|
+
<thead>
|
|
428
|
+
`+t+`</thead>
|
|
429
|
+
`+n+`</table>
|
|
430
|
+
`}tablerow({text:e}){return`<tr>
|
|
431
|
+
${e}</tr>
|
|
432
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
|
|
433
|
+
`}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>${Kn(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=ZR(e);if(i===null)return n;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+Kn(t)+'"'),s+=">"+n+"</a>",s}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=ZR(e);if(i===null)return Kn(r);e=i;let s=`<img src="${e}" alt="${Kn(r)}"`;return t&&(s+=` title="${Kn(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Kn(e.text)}},Ov=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}},kn=class _v{options;renderer;textRenderer;constructor(t){this.options=t||fa,this.options.renderer=this.options.renderer||new Id,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ov}static parse(t,r){return new _v(r).parse(t)}static parseInline(t,r){return new _v(r).parseInline(t)}parse(t){this.renderer.parser=this;let r="";for(let n=0;n<t.length;n++){let i=t[n];if(this.options.extensions?.renderers?.[i.type]){let a=i,o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){r+=o||"";continue}}let s=i;switch(s.type){case"space":{r+=this.renderer.space(s);break}case"hr":{r+=this.renderer.hr(s);break}case"heading":{r+=this.renderer.heading(s);break}case"code":{r+=this.renderer.code(s);break}case"table":{r+=this.renderer.table(s);break}case"blockquote":{r+=this.renderer.blockquote(s);break}case"list":{r+=this.renderer.list(s);break}case"checkbox":{r+=this.renderer.checkbox(s);break}case"html":{r+=this.renderer.html(s);break}case"def":{r+=this.renderer.def(s);break}case"paragraph":{r+=this.renderer.paragraph(s);break}case"text":{r+=this.renderer.text(s);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(t,r=this.renderer){this.renderer.parser=this;let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions?.renderers?.[s.type]){let o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=o||"";continue}}let a=s;switch(a.type){case"escape":{n+=r.text(a);break}case"html":{n+=r.html(a);break}case"link":{n+=r.link(a);break}case"image":{n+=r.image(a);break}case"checkbox":{n+=r.checkbox(a);break}case"strong":{n+=r.strong(a);break}case"em":{n+=r.em(a);break}case"codespan":{n+=r.codespan(a);break}case"br":{n+=r.br(a);break}case"del":{n+=r.del(a);break}case"text":{n+=r.text(a);break}default:{let o='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}},Lc=class{options;block;constructor(e){this.options=e||fa}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(e=this.block){return e?Sn.lex:Sn.lexInline}provideParser(e=this.block){return e?kn.parse:kn.parseInline}},pge=class{defaults=wv();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=kn;Renderer=Id;TextRenderer=Ov;Lexer=Sn;Tokenizer=Fd;Hooks=Lc;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":{let i=n;for(let s of i.header)r=r.concat(this.walkTokens(s.tokens,t));for(let s of i.rows)for(let a of s)r=r.concat(this.walkTokens(a.tokens,t));break}case"list":{let i=n;r=r.concat(this.walkTokens(i.items,t));break}default:{let i=n;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(s=>{let a=i[s].flat(1/0);r=r.concat(this.walkTokens(a,t))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=t.renderers[i.name];s?t.renderers[i.name]=function(...a){let o=i.renderer.apply(this,a);return o===!1&&(o=s.apply(this,a)),o}:t.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 s=t[i.level];s?s.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),n.extensions=t),r.renderer){let i=this.defaults.renderer||new Id(this.defaults);for(let s in r.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,o=r.renderer[a],l=i[a];i[a]=(...c)=>{let p=o.apply(i,c);return p===!1&&(p=l.apply(i,c)),p||""}}n.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new Fd(this.defaults);for(let s in r.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,o=r.tokenizer[a],l=i[a];i[a]=(...c)=>{let p=o.apply(i,c);return p===!1&&(p=l.apply(i,c)),p}}n.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new Lc;for(let s in r.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,o=r.hooks[a],l=i[a];Lc.passThroughHooks.has(s)?i[a]=c=>{if(this.defaults.async&&Lc.passThroughHooksRespectAsync.has(s))return(async()=>{let u=await o.call(i,c);return l.call(i,u)})();let p=o.call(i,c);return l.call(i,p)}:i[a]=(...c)=>{if(this.defaults.async)return(async()=>{let u=await o.apply(i,c);return u===!1&&(u=await l.apply(i,c)),u})();let p=o.apply(i,c);return p===!1&&(p=l.apply(i,c)),p}}n.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,s=r.walkTokens;n.walkTokens=function(a){let o=[];return o.push(s.call(this,a)),i&&(o=o.concat(i.call(this,a))),o}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Sn.lex(e,t??this.defaults)}parser(e,t){return kn.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&n.async===!1)return s(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 t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let a=i.hooks?await i.hooks.preprocess(t):t,o=await(i.hooks?await i.hooks.provideLexer(e):e?Sn.lex:Sn.lexInline)(a,i),l=i.hooks?await i.hooks.processAllTokens(o):o;i.walkTokens&&await Promise.all(this.walkTokens(l,i.walkTokens));let c=await(i.hooks?await i.hooks.provideParser(e):e?kn.parse:kn.parseInline)(l,i);return i.hooks?await i.hooks.postprocess(c):c})().catch(s);try{i.hooks&&(t=i.hooks.preprocess(t));let a=(i.hooks?i.hooks.provideLexer(e):e?Sn.lex:Sn.lexInline)(t,i);i.hooks&&(a=i.hooks.processAllTokens(a)),i.walkTokens&&this.walkTokens(a,i.walkTokens);let o=(i.hooks?i.hooks.provideParser(e):e?kn.parse:kn.parseInline)(a,i);return i.hooks&&(o=i.hooks.postprocess(o)),o}catch(a){return s(a)}}}onError(e,t){return r=>{if(r.message+=`
|
|
434
|
+
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+Kn(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},pa=new pge;function it(e,t){return pa.parse(e,t)}it.options=it.setOptions=function(e){return pa.setOptions(e),it.defaults=pa.defaults,YR(it.defaults),it};it.getDefaults=wv;it.defaults=fa;it.use=function(...e){return pa.use(...e),it.defaults=pa.defaults,YR(it.defaults),it};it.walkTokens=function(e,t){return pa.walkTokens(e,t)};it.parseInline=pa.parseInline;it.Parser=kn;it.parser=kn.parse;it.Renderer=Id;it.TextRenderer=Ov;it.Lexer=Sn;it.lexer=Sn.lex;it.Tokenizer=Fd;it.Hooks=Lc;it.parse=it;var nze=it.options,ize=it.setOptions,sze=it.use,aze=it.walkTokens,oze=it.parseInline;var lze=kn.parse,cze=Sn.lex;var Pq=Nr(Tq(),1);f();import xye from"node:fs";var Aq;try{Aq=g}catch{}var bye=e=>{let t=Aq?.[e];return t||xye.readFileSync(new URL(`./builtin-templates/${e}`,import.meta.url),"utf8")},vh=Object.fromEntries(["_output-html.hbs","_output-text.hbs","default.email.html.hbs","default.text.hbs","default.slack.blocks.json.hbs","success.slack.text.hbs","error.slack.text.hbs","success.subject.hbs","error.subject.hbs"].map(e=>[e,bye(e)]));var i_=new Pq.default({codeBlockStyle:"fenced"});i_.addRule("table",{filter:"table",replacement:(e,t)=>{let n=Array.from(t.querySelectorAll("tr")).map(o=>Array.from(o.querySelectorAll("th,td")).map(l=>l.textContent.replace(/\s+/g," ").trim())),[i,...s]=n;if(i===void 0)return"";let a=i.map(()=>"---");return`
|
|
435
|
+
|
|
436
|
+
${[i,a,...s].map(o=>`| ${o.map(l=>l.replace(/\|/g,"\\|")).join(" | ")} |`).join(`
|
|
437
|
+
`)}
|
|
438
|
+
|
|
439
|
+
`}});var Oq=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),wa=e=>e.replace(/([\\`*_{}[\]()#+\-.!|>])/g,"\\$1"),jr=e=>e==null?"":String(e),Eh=e=>{let t=jr(e);return/\s/.test(t)?`'${t.replace(/'/g,"'\\''")}'`:t},Dh=e=>Array.isArray(e)?e.map(Eh).join(" "):Eh(e),Rq=e=>`\`\`\`
|
|
440
|
+
${e!==null&&typeof e=="object"&&"format"in e?dl(e):jr(e)}
|
|
441
|
+
\`\`\``,wh=e=>typeof e=="string"?e:JSON.stringify(e),yye=e=>{let t=Object.entries(e);if(t.length===0)return"- message:";if(t.length===1)return`- ${wa(wh(t[0]?.[1]))}`;let r=t.find(([s])=>s==="msg"||s==="message"),n=r??["message",""],i=r===void 0?t:t.filter(([s])=>s!==n[0]);return[`- **${wa(n[0])}:** ${wa(wh(n[1]))}`,...i.map(([s,a])=>` - **${wa(s)}:** ${wa(wh(a))}`)].join(`
|
|
442
|
+
`)},tu=e=>e.format==="raw"?Rq(e.raw):e.format==="markdown"?e.markdown:e.format==="html"?i_.turndown(e.html):e.lines.map(yye).join(`
|
|
443
|
+
`),Mq=e=>e.status===0&&e.config.hideCommandIfSuccess,vye=e=>{if(Mq(e)){let i=[tu(e.stdout)];return dl(e.stderr).length>0&&e.config.showStderrIfSuccess&&i.push("**Errors**",tu(e.stderr)),i.join(`
|
|
444
|
+
|
|
445
|
+
`)}let r=e.status===0?e.config.name:`Failed: ${e.config.name}`,n=[`**${wa(r)}**`,`**Status:** ${e.status}`,`**Command:** \`${Dh(e.command)}\``,`**CWD:** \`${Eh(e.cwd)}\``,"---","**Output**",tu(e.stdout)];return dl(e.stderr).length>0&&(e.status!==0||e.config.showStderrIfSuccess)&&n.push("**Errors**",tu(e.stderr)),n.join(`
|
|
446
|
+
|
|
447
|
+
`)},_ye=e=>(0,Lq.markdownToBlocks)(vye(e)),Ko=(e,t,r)=>new Intl.DateTimeFormat(t,r).format(e),Zo=(e,t)=>e!==null&&typeof e=="object"&&"config"in e?e.config.locale:t.data?.root?.config.locale??"en-US",Nq=(e,t,r)=>{let n=t.replace(/\.hbs$/,"");e.registerPartial(n,r),n.startsWith("_")&&e.registerPartial(n.slice(1),r)},qq=async e=>{let t=Iq.default.create();for(let[n,i]of Object.entries(vh))Nq(t,n,i);if(e===void 0)return Fq(t);let r=await n_.readdir(e,{withFileTypes:!0}).catch(n=>{if(n.code==="ENOENT")return[];throw n});for(let n of r){if(!n.isFile()||!n.name.endsWith(".hbs"))continue;let i=_h.join(e,n.name),s=await n_.readFile(i,"utf8");Nq(t,n.name,s)}return Fq(t)},Fq=e=>(e.registerHelper("dateFromISO8601",function(t,r){return Ko(new Date(jr(t)),Zo(this,r),{dateStyle:"medium"})}),e.registerHelper("timeFromISO8601",function(t,r){return Ko(new Date(jr(t)),Zo(this,r),{timeStyle:"medium"})}),e.registerHelper("datetimeFromISO8601",function(t,r){return Ko(new Date(jr(t)),Zo(this,r),{dateStyle:"medium",timeStyle:"medium"})}),e.registerHelper("dateFromUnixEpoch",function(t,r){return Ko(new Date(Number(t)*1e3),Zo(this,r),{dateStyle:"medium"})}),e.registerHelper("timeFromUnixEpoch",function(t,r){return Ko(new Date(Number(t)*1e3),Zo(this,r),{timeStyle:"medium"})}),e.registerHelper("datetimeFromUnixEpoch",function(t,r){return Ko(new Date(Number(t)*1e3),Zo(this,r),{dateStyle:"medium",timeStyle:"medium"})}),e.registerHelper("markdownToHtml",t=>it.parse(jr(t),{async:!1})),e.registerHelper("htmlToMarkdown",t=>i_.turndown(jr(t))),e.registerHelper("rawToHtml",t=>Oq(jr(t)).replace(/\n/g,`<br>
|
|
448
|
+
`)),e.registerHelper("escapeHtml",t=>Oq(jr(t))),e.registerHelper("escapeMarkdown",t=>wa(jr(t))),e.registerHelper("json",t=>JSON.stringify(t).replace(/([,:])/g,"$1 ")),e.registerHelper("jsonValue",t=>wh(t)),e.registerHelper("jsonString",t=>JSON.stringify(jr(t))),e.registerHelper("shellToken",t=>Eh(t)),e.registerHelper("shellCommand",t=>Dh(t)),e.registerHelper("slackCodeBlock",t=>Rq(t)),e.registerHelper("nl",()=>`
|
|
449
|
+
`),e.registerHelper("concat",(...t)=>t.slice(0,-1).map(jr).join("")),e.registerHelper("outputToSlack",t=>t!==null&&typeof t=="object"&&"format"in t?tu(t):jr(t)),e.registerHelper("defaultSlackBlocks",function(){return JSON.stringify(_ye(this))}),e.registerHelper("hideCommandIfSuccess",function(){return Mq(this)}),e.registerHelper("hasOutput",t=>t!==null&&typeof t=="object"&&"format"in t?dl(t).length>0:jr(t).length>0),e),wye=async(e,t)=>{if(e===void 0){let i=vh[t];if(i===void 0)throw new Error(`Built-in template ${t} was not found`);return i}let r=_h.resolve(e,t),n=_h.resolve(e);if(!r.startsWith(`${n}${_h.sep}`)&&r!==n)throw new Error(`Template ${t} resolves outside templatesDir`);try{return await n_.readFile(r,"utf8")}catch(i){if(i.code==="ENOENT"){let a=vh[t];if(a!==void 0)return a}throw i}},jq=async(e,t,r,n)=>{let i=await wye(t,r);return e.compile(i)(n)};f();f();var Z7=Nr(I7(),1);f();f();f();f();var Yo=class extends Error{code;route;messageId;constructor(e){super(e.message,{cause:e.cause}),this.name="NotifyRpcError",this.code=e.code??"UNKNOWN",this.route=e.route,this.messageId=e.messageId}toJSON(){return{name:this.name,message:this.message,code:this.code,route:this.route,messageId:this.messageId}}};var ti=class extends Yo{provider;httpStatus;providerCode;retryAfterMs;retriable;constructor(e){super({...e,code:e.code??"PROVIDER"}),this.name="NotifyRpcProviderError",this.provider=e.provider,this.httpStatus=e.httpStatus,this.providerCode=e.providerCode,this.retryAfterMs=e.retryAfterMs,this.retriable=e.retriable}toJSON(){return{...super.toJSON(),provider:this.provider,httpStatus:this.httpStatus,providerCode:this.providerCode,retryAfterMs:this.retryAfterMs,retriable:this.retriable}}};f();import{inspect as j2e}from"node:util";var L7={debug:10,info:20,warn:30,error:40},P7=e=>e instanceof Error?{type:e.name,message:e.message,stack:e.stack,...e.cause!==void 0?{cause:P7(e.cause)}:{},...e.code!==void 0?{code:e.code}:{}}:e,B2e=e=>{if(!e)return{};let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r]=r==="err"?P7(n):n);return t},$2e=e=>{let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r]=n);return t},ri={reset:"\x1B[0m",dim:"\x1B[2m",gray:"\x1B[90m",cyan:"\x1B[36m",yellow:"\x1B[33m",red:"\x1B[31m"},z2e={debug:ri.gray,info:ri.cyan,warn:ri.yellow,error:ri.red},H2e=typeof process<"u"&&process.stdout?.isTTY===!0,Xo=(e,t)=>H2e?`${e}${t}${ri.reset}`:t,U2e=e=>`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}:${String(e.getSeconds()).padStart(2,"0")}.${String(e.getMilliseconds()).padStart(3,"0")}`,Y_=(e,t)=>e==="durationMs"&&typeof t=="number"?`${t<10?t.toFixed(2):t.toFixed(0)}ms`:e==="messageId"&&typeof t=="string"&&t.length>12?`\u2026${t.slice(-8)}`:typeof t=="string"?t:typeof t=="number"||typeof t=="boolean"?String(t):t===null?"null":j2e(t,{colors:!1,depth:4,breakLength:1/0,compact:!0}),R7=e=>{if(!e||typeof e!="object")return[` err: ${Y_("err",e)}`];let t=e,r=[],n=Xo(ri.red,`${t.type??"Error"}: ${t.message??""}`);if(r.push(` err: ${n}`),t.code!==void 0&&r.push(` code: ${Y_("code",t.code)}`),typeof t.stack=="string")for(let i of t.stack.split(`
|
|
450
|
+
`).slice(1))r.push(Xo(ri.dim,` ${i.trim()}`));if(t.cause!==void 0){r.push(" cause:");for(let i of R7(t.cause))r.push(` ${i}`)}return r},V2e=(e,t,r)=>{let n=Xo(ri.dim,`[${U2e(new Date)}]`),i=Xo(z2e[e],e.toUpperCase().padEnd(5)),{component:s,route:a,...o}=r,l=[s,a].filter(u=>typeof u=="string"&&u.length>0).join("/"),c=`${n} ${i}${l?Xo(ri.cyan,` (${l})`):""}: ${t}`,p=[];for(let[u,h]of Object.entries(o)){if(u==="err"){for(let d of R7(h))p.push(d);continue}p.push(` ${Xo(ri.dim,u+":")} ${Y_(u,h)}`)}return p.length>0?`${c}
|
|
451
|
+
${p.join(`
|
|
452
|
+
`)}`:c},M7=(e,t)=>{let r=L7[e],n=(i,s)=>(a,o)=>{L7[i]<r||s(V2e(i,a,$2e({...t,...B2e(o)})))};return{debug:n("debug",i=>console.debug(i)),info:n("info",i=>console.info(i)),warn:n("warn",i=>console.warn(i)),error:n("error",i=>console.error(i)),child(i){return M7(e,{...t,...i})}}},uu=e=>M7(e?.level??"warn",{});f();var Sa=e=>e.then(t=>[null,t]).catch(t=>[t,null]);var G2e=Object.defineProperty,W2e=Object.defineProperties,K2e=Object.getOwnPropertyDescriptors,q7=Object.getOwnPropertySymbols,Z2e=Object.prototype.hasOwnProperty,J2e=Object.prototype.propertyIsEnumerable,j7=(e,t,r)=>t in e?G2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,In=(e,t)=>{for(var r in t||(t={}))Z2e.call(t,r)&&j7(e,r,t[r]);if(q7)for(var r of q7(t))J2e.call(t,r)&&j7(e,r,t[r]);return e},ni=(e,t)=>W2e(e,K2e(t)),Q2e=class extends Error{constructor(e,t,r){super(t||e.toString(),{cause:r}),this.status=e,this.statusText=t,this.error=r,Error.captureStackTrace(this,this.constructor)}},Y2e=async(e,t)=>{var r,n,i,s,a,o;let l=t||{},c={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:l,hooks:c};for(let p of t?.plugins||[]){if(p.init){let u=await((r=p.init)==null?void 0:r.call(p,e.toString(),t));l=u.options||l,e=u.url}c.onRequest.push((n=p.hooks)==null?void 0:n.onRequest),c.onResponse.push((i=p.hooks)==null?void 0:i.onResponse),c.onSuccess.push((s=p.hooks)==null?void 0:s.onSuccess),c.onError.push((a=p.hooks)==null?void 0:a.onError),c.onRetry.push((o=p.hooks)==null?void 0:o.onRetry)}return{url:e,options:l,hooks:c}},B7=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},X2e=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function e_e(e){if(typeof e=="number")return new B7({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new B7(e);case"exponential":return new X2e(e);default:throw new Error("Invalid retry strategy")}}var t_e=async e=>{let t={},r=async n=>typeof n=="function"?await n():n;if(e?.auth){if(e.auth.type==="Bearer"){let n=await r(e.auth.token);if(!n)return t;t.authorization=`Bearer ${n}`}else if(e.auth.type==="Basic"){let[n,i]=await Promise.all([r(e.auth.username),r(e.auth.password)]);if(!n||!i)return t;t.authorization=`Basic ${btoa(`${n}:${i}`)}`}else if(e.auth.type==="Custom"){let[n,i]=await Promise.all([r(e.auth.prefix),r(e.auth.value)]);if(!i)return t;t.authorization=`${n??""} ${i}`}}return t},r_e=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function n_e(e){let t=e.headers.get("content-type"),r=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";let n=t.split(";").shift()||"";return r_e.test(n)?"json":r.has(n)||n.startsWith("text/")?"text":"blob"}function i_e(e){try{return JSON.parse(e),!0}catch{return!1}}function ew(e){if(e===void 0)return!1;let t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function $7(e){try{return JSON.parse(e)}catch{return e}}function z7(e){return typeof e=="function"}function s_e(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&z7(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&z7(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function a_e(e){let t=new Headers(e?.headers),r=await t_e(e);for(let[n,i]of Object.entries(r||{}))t.set(n,i);if(!t.has("content-type")){let n=o_e(e?.body);n&&t.set("content-type",n)}return t}function o_e(e){return ew(e)?"application/json":null}function l_e(e){if(!e?.body)return null;let t=new Headers(e?.headers);if(ew(e.body)&&!t.has("content-type")){for(let[r,n]of Object.entries(e?.body))n instanceof Date&&(e.body[r]=n.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&ew(e.body)?new URLSearchParams(e.body).toString():e.body}function c_e(e,t){var r;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){let n=(r=e.split("@")[1])==null?void 0:r.split("/")[0];return V7.includes(n)?n.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function u_e(e,t){let r;return!e?.signal&&e?.timeout&&(r=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:r,clearTimeout:()=>{r&&clearTimeout(r)}}}var p_e=class U7 extends Error{constructor(t,r){super(r||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,U7.prototype)}};async function Nh(e,t){let r=await e["~standard"].validate(t);if(r.issues)throw new p_e(r.issues);return r.value}var V7=["get","post","put","patch","delete"],f_e=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,r){var n,i,s,a;let o=((i=(n=e.plugins)==null?void 0:n.find(l=>{var c;return(c=l.schema)!=null&&c.config?t.startsWith(l.schema.config.baseURL||"")||t.startsWith(l.schema.config.prefix||""):!1}))==null?void 0:i.schema)||e.schema;if(o){let l=t;(s=o.config)!=null&&s.prefix&&l.startsWith(o.config.prefix)&&(l=l.replace(o.config.prefix,""),o.config.baseURL&&(t=t.replace(o.config.prefix,o.config.baseURL))),(a=o.config)!=null&&a.baseURL&&l.startsWith(o.config.baseURL)&&(l=l.replace(o.config.baseURL,""));let c=o.schema[l];if(c){let p=ni(In({},r),{method:c.method,output:c.output});return r?.disableValidation||(p=ni(In({},p),{body:c.input?await Nh(c.input,r?.body):r?.body,params:c.params?await Nh(c.params,r?.params):r?.params,query:c.query?await Nh(c.query,r?.query):r?.query})),{url:t,options:p}}}return{url:t,options:r}}}),d_e=e=>{async function t(r,n){let i=ni(In(In({},e),n),{plugins:[...e?.plugins||[],f_e(e||{}),...n?.plugins||[]]});if(e?.catchAllError)try{return await tw(r,i)}catch(s){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:s}}}return await tw(r,i)}return t};function h_e(e,t){let{baseURL:r,params:n,query:i}=t||{query:{},params:{},baseURL:""},s=e.startsWith("http")?e.split("/").slice(0,3).join("/"):r||"";if(e.startsWith("@")){let p=e.toString().split("@")[1].split("/")[0];V7.includes(p)&&(e=e.replace(`@${p}/`,"/"))}s.endsWith("/")||(s+="/");let[a,o]=e.replace(s,"").split("?"),l=new URLSearchParams(o);for(let[p,u]of Object.entries(i||{})){if(u==null)continue;let h;if(typeof u=="string")h=u;else if(Array.isArray(u)){for(let d of u)l.append(p,d);continue}else h=JSON.stringify(u);l.set(p,h)}if(n)if(Array.isArray(n)){let p=a.split("/").filter(u=>u.startsWith(":"));for(let[u,h]of p.entries()){let d=n[u];a=a.replace(h,d)}}else for(let[p,u]of Object.entries(n))a=a.replace(`:${p}`,String(u));a=a.split("/").map(encodeURIComponent).join("/"),a.startsWith("/")&&(a=a.slice(1));let c=l.toString();return c=c.length>0?`?${c}`.replace(/\+/g,"%20"):"",s.startsWith("http")?new URL(`${a}${c}`,s):`${s}${a}${c}`}var tw=async(e,t)=>{var r,n,i,s,a,o,l,c;let{hooks:p,url:u,options:h}=await Y2e(e,t),d=s_e(h),m=new AbortController,b=(r=h.signal)!=null?r:m.signal,v=h_e(u,h),w=l_e(h),T=await a_e(h),S=c_e(u,h),O=ni(In({},h),{url:v,headers:T,body:w,method:S,signal:b});for(let q of p.onRequest)if(q){let E=await q(O);typeof E=="object"&&E!==null&&(O=E)}("pipeTo"in O&&typeof O.pipeTo=="function"||typeof((n=t?.body)==null?void 0:n.pipe)=="function")&&("duplex"in O||(O.duplex="half"));let{clearTimeout:P}=u_e(h,m),A=await d(O.url,O);P();let K={response:A,request:O};for(let q of p.onResponse)if(q){let E=await q(ni(In({},K),{response:(i=t?.hookOptions)!=null&&i.cloneResponse?A.clone():A}));E instanceof Response?A=E:typeof E=="object"&&E!==null&&(A=E.response)}if(A.ok){if(O.method==="HEAD")return{data:"",error:null};let q=n_e(A),E={data:null,response:A,request:O};if(q==="json"||q==="text"){let H=await A.text();E.data=await((s=O.jsonParser)!=null?s:$7)(H)}else E.data=await A[q]();O?.output&&O.output&&!O.disableValidation&&(E.data=await Nh(O.output,E.data));for(let H of p.onSuccess)H&&await H(ni(In({},E),{response:(a=t?.hookOptions)!=null&&a.cloneResponse?A.clone():A}));return t?.throw?E.data:{data:E.data,error:null}}let ee=(o=t?.jsonParser)!=null?o:$7,J=await A.text(),L=i_e(J),N=L?await ee(J):null,$={response:A,responseText:J,request:O,error:ni(In({},N),{status:A.status,statusText:A.statusText})};for(let q of p.onError)q&&await q(ni(In({},$),{response:(l=t?.hookOptions)!=null&&l.cloneResponse?A.clone():A}));if(t?.retry){let q=e_e(t.retry),E=(c=t.retryAttempt)!=null?c:0;if(await q.shouldAttemptRetry(E,A)){for(let oe of p.onRetry)oe&&await oe(K);let H=q.getDelay(E);return await new Promise(oe=>setTimeout(oe,H)),await tw(e,ni(In({},t),{retryAttempt:E+1}))}}if(t?.throw)throw new Q2e(A.status,A.statusText,L?N:J);return{data:null,error:ni(In({},N),{status:A.status,statusText:A.statusText})}},H7=(e,t)=>async r=>{let n=r;if(e){let i=await e(n);i instanceof Response?n={...n,response:i}:typeof i=="object"&&i!==null&&(n=i)}return t?await t(n)??n:n},X_=(e,t)=>async r=>{await e?.(r),await t?.(r)},m_e=(e,t)=>{let r={hookOptions:{...e.hookOptions,...t.hookOptions}};return(e.onRequest||t.onRequest)&&(r.onRequest=H7(e.onRequest,t.onRequest)),(e.onResponse||t.onResponse)&&(r.onResponse=H7(e.onResponse,t.onResponse)),(e.onSuccess||t.onSuccess)&&(r.onSuccess=X_(e.onSuccess,t.onSuccess)),(e.onError||t.onError)&&(r.onError=X_(e.onError,t.onError)),(e.onRetry||t.onRetry)&&(r.onRetry=X_(e.onRetry,t.onRetry)),r},G7=(e={})=>{let t=d_e({baseURL:e.baseUrl,headers:e.headers,timeout:e.timeoutMs??3e4,jsonParser:n=>{let i=n.trim();return i?JSON.parse(i):null}});return{request:async(n,i={})=>{let s={...e.headers,...i.headers},a=m_e(e,i),[o,l]=await Sa(t(n,{method:i.method??"GET",body:i.body??void 0,headers:s,retry:i.retry??e.retry,retryAttempt:i.retryAttempt??e.retryAttempt,...a}));if(o)return{ok:!1,kind:"network",timedOut:o.name==="AbortError"||o.name==="TimeoutError",cause:o};let{data:c,error:p}=l;if(p){let{status:u,statusText:h,...d}=p;return{ok:!1,kind:"http",status:u,statusText:h,body:d}}return{ok:!0,data:c??null}}}},W7=e=>({name:e.name,send:e.send,verify:e.verify??(async()=>({ok:!0})),close:e.close??(async()=>{})});var K7={CONTINUE:100,SWITCHING_PROTOCOLS:101,PROCESSING:102,OK:200,CREATED:201,ACCEPTED:202,NO_CONTENT:204,MOVED_PERMANENTLY:301,FOUND:302,NOT_MODIFIED:304,TEMPORARY_REDIRECT:307,PERMANENT_REDIRECT:308,BAD_REQUEST:400,UNAUTHORIZED:401,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,CONFLICT:409,GONE:410,UNPROCESSABLE_ENTITY:422,TOO_MANY_REQUESTS:429,INTERNAL_SERVER_ERROR:500,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504};var ka=e=>typeof e=="string"?e:e.name?`"${e.name}" <${e.email}>`:e.email,rw=e=>typeof e=="string"?e:e.email;f();var g_e=new Set(["EAUTH"]),x_e=new Set(["ESOCKET","ECONNECTION","ETIMEDOUT","ECONNREFUSED"]),b_e=e=>{if(!(e instanceof Error))return{code:"PROVIDER",retriable:!0};let t=e;return t.code&&g_e.has(t.code)?{code:"CONFIG",retriable:!1}:t.code&&x_e.has(t.code)?{code:"PROVIDER",retriable:!0}:t.responseCode?{code:"PROVIDER",retriable:t.responseCode>=400&&t.responseCode<500,providerCode:t.responseCode}:{code:"PROVIDER",retriable:!0}},y_e=e=>{if(e){if(typeof e=="string")return e;if(e.email)return e.name?{name:e.name,email:e.email}:{email:e.email}}},J7=e=>{let t={host:e.host,port:e.port,secure:e.secure,auth:e.auth,pool:e.pool,maxConnections:e.maxConnections,maxMessages:e.maxMessages,dkim:e.dkim,...e?.nodemailer},r=Z7.default.createTransport(t),n=(e.logger??uu()).child({component:"smtp"}),i=new Set,s=e.auth?.user;return{name:"smtp",async send(a,o){let l=y_e(a.from??s);if(!l)throw new Yo({message:'SMTP transport: no "from" address. Set it on the channel default, route `.from()` resolver, per-call args, or supply `auth.user` on smtpTransport.',code:"CONFIG",route:o.route,messageId:o.messageId});if(e.auth?.user){let u=rw(l);u!==e.auth.user&&!i.has(u)&&(i.add(u),n.warn("From address differs from SMTP auth user; many providers will rewrite this",{fromAddress:u,authUser:e.auth.user,route:o.route}))}let[c,p]=await Sa(r.sendMail({from:ka(l),to:a.to.map(ka),cc:a.cc?.map(ka),bcc:a.bcc?.map(ka),replyTo:a.replyTo?ka(a.replyTo):void 0,subject:a.subject,html:a.html,text:a.text,headers:a.headers,attachments:a.attachments?.map(u=>({filename:u.filename,content:u.content,contentType:u.contentType,cid:u.cid}))}));if(c){let{code:u,retriable:h,providerCode:d}=b_e(c);return{ok:!1,error:new ti({message:`SMTP transport: ${c.message}`,code:u,provider:"smtp",providerCode:d,retriable:h,route:o.route,messageId:o.messageId,cause:c})}}return{ok:!0,data:{transportMessageId:p.messageId,accepted:p.accepted.map(String),rejected:p.rejected.map(String),raw:p}}},async verify(){return{ok:await r.verify()}},async close(){r.close()}}};var v_e=e=>{let t=process.env[e];if(t===void 0||t==="")throw new Error(`Missing required environment variable ${e}`);return t},Q7=e=>{let{auth:t}=e,r={host:e.host,port:e.port,...e.secure!==void 0?{secure:e.secure}:{}};return t!==void 0&&(t.user!==void 0||t.passEnvVar!==void 0)&&(r.auth={...t.user!==void 0?{user:t.user}:{},...t.passEnvVar!==void 0?{pass:v_e(t.passEnvVar)}:{}}),J7(r)};f();f();var Y7;function Z(e,t,r){function n(o,l){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),o._zod.traits.has(e))return;o._zod.traits.add(e),t(o,l);let c=a.prototype,p=Object.keys(c);for(let u=0;u<p.length;u++){let h=p[u];h in o||(o[h]=c[h].bind(o))}}let i=r?.Parent??Object;class s extends i{}Object.defineProperty(s,"name",{value:e});function a(o){var l;let c=r?.Parent?new s:this;n(c,o),(l=c._zod).deferred??(l.deferred=[]);for(let p of c._zod.deferred)p();return c}return Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:o=>r?.Parent&&o instanceof r.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var tl=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},bj=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Y7=globalThis).__zod_globalConfig??(Y7.__zod_globalConfig={});var Ph=globalThis.__zod_globalConfig;function Ca(e){return e&&Object.assign(Ph,e),Ph}function yj(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,n])=>t.indexOf(+r)===-1).map(([r,n])=>n)}function nw(e,t){return typeof t=="bigint"?t.toString():t}function ow(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw new Error("cached value already set")}}}function lw(e){return e==null}function cw(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}var X7=Symbol("evaluating");function lt(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==X7)return n===void 0&&(n=X7,n=r()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function Aa(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function us(...e){let t={};for(let r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function ej(e){return JSON.stringify(e)}function __e(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var vj="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Rh(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var w_e=ow(()=>{if(Ph.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function fu(e){if(Rh(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Rh(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function _j(e){return fu(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var E_e=new Set(["string","number","symbol"]);function Bh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ps(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function Ae(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function D_e(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,-Number.MAX_VALUE,Number.MAX_VALUE;function S_e(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return ps(e,us(e._zod.def,{get shape(){let i={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(i[s]=r.shape[s])}return Aa(this,"shape",i),i},checks:[]}))}function k_e(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");return ps(e,us(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete i[s]}return Aa(this,"shape",i),i},checks:[]}))}function C_e(e,t){if(!fu(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let n=e._zod.def.shape;for(let i in t)if(Object.getOwnPropertyDescriptor(n,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ps(e,us(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Aa(this,"shape",n),n}}))}function T_e(e,t){if(!fu(t))throw new Error("Invalid input to safeExtend: expected a plain object");return ps(e,us(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return Aa(this,"shape",r),r}}))}function A_e(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");return ps(e,us(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return Aa(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function O_e(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");return ps(t,us(t._zod.def,{get shape(){let i=t._zod.def.shape,s={...i};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(s[a]=e?new e({type:"optional",innerType:i[a]}):i[a])}else for(let a in i)s[a]=e?new e({type:"optional",innerType:i[a]}):i[a];return Aa(this,"shape",s),s},checks:[]}))}function N_e(e,t,r){return ps(t,us(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new e({type:"nonoptional",innerType:n[s]}))}else for(let s in n)i[s]=new e({type:"nonoptional",innerType:n[s]});return Aa(this,"shape",i),i}}))}function el(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function F_e(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function wj(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Fh(e){return typeof e=="string"?e:e?.message}function Ta(e,t,r){let n=e.message?e.message:Fh(e.inst?._zod.def?.error?.(e))??Fh(t?.error?.(e))??Fh(r.customError?.(e))??Fh(r.localeError?.(e))??"Invalid input",{inst:i,continue:s,input:a,...o}=e;return o.path??(o.path=[]),o.message=n,t?.reportInput&&(o.input=a),o}function uw(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function du(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}var Ej=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,nw,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Dj=Z("$ZodError",Ej),Sj=Z("$ZodError",Ej,{Parent:Error});function I_e(e,t=r=>r.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function L_e(e,t=r=>r.message){let r={_errors:[]},n=(i,s=[])=>{for(let a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>n({issues:o},[...s,...a.path]));else if(a.code==="invalid_key")n({issues:a.issues},[...s,...a.path]);else if(a.code==="invalid_element")n({issues:a.issues},[...s,...a.path]);else{let o=[...s,...a.path];if(o.length===0)r._errors.push(t(a));else{let l=r,c=0;for(;c<o.length;){let p=o[c];c!==o.length-1?l[p]=l[p]||{_errors:[]}:(l[p]=l[p]||{_errors:[]},l[p]._errors.push(t(a))),l=l[p],c++}}}};return n(e),r}var pw=e=>(t,r,n,i)=>{let s=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new tl;if(a.issues.length){let o=new(i?.Err??e)(a.issues.map(l=>Ta(l,s,Ca())));throw vj(o,i?.callee),o}return a.value},fw=e=>async(t,r,n,i)=>{let s=n?{...n,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let o=new(i?.Err??e)(a.issues.map(l=>Ta(l,s,Ca())));throw vj(o,i?.callee),o}return a.value},$h=e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new tl;return s.issues.length?{success:!1,error:new(e??Dj)(s.issues.map(a=>Ta(a,i,Ca())))}:{success:!0,data:s.value}},P_e=$h(Sj),zh=e=>async(t,r,n)=>{let i=n?{...n,async:!0}:{async:!0},s=t._zod.run({value:r,issues:[]},i);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(a=>Ta(a,i,Ca())))}:{success:!0,data:s.value}},R_e=zh(Sj),M_e=e=>(t,r,n)=>{let i=n?{...n,direction:"backward"}:{direction:"backward"};return pw(e)(t,r,i)},q_e=e=>(t,r,n)=>pw(e)(t,r,n),j_e=e=>async(t,r,n)=>{let i=n?{...n,direction:"backward"}:{direction:"backward"};return fw(e)(t,r,i)},B_e=e=>async(t,r,n)=>fw(e)(t,r,n),$_e=e=>(t,r,n)=>{let i=n?{...n,direction:"backward"}:{direction:"backward"};return $h(e)(t,r,i)},z_e=e=>(t,r,n)=>$h(e)(t,r,n),H_e=e=>async(t,r,n)=>{let i=n?{...n,direction:"backward"}:{direction:"backward"};return zh(e)(t,r,i)},U_e=e=>async(t,r,n)=>zh(e)(t,r,n),V_e=/^[cC][0-9a-z]{6,}$/,G_e=/^[0-9a-z]+$/,W_e=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,K_e=/^[0-9a-vA-V]{20}$/,Z_e=/^[A-Za-z0-9]{27}$/,J_e=/^[a-zA-Z0-9_-]{21}$/,Q_e=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Y_e=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,tj=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,X_e=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ewe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function twe(){return new RegExp(ewe,"u")}var rwe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,nwe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,iwe=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,swe=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,awe=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,kj=/^[A-Za-z0-9_-]*$/,owe=/^https?$/,lwe=/^\+[1-9]\d{6,14}$/,Cj="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",cwe=new RegExp(`^${Cj}$`);function Tj(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function uwe(e){return new RegExp(`^${Tj(e)}$`)}function pwe(e){let t=Tj({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return new RegExp(`^${Cj}T(?:${n})$`)}var fwe=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},dwe=/^[^A-Z]*$/,hwe=/^[^a-z]*$/,ii=Z("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),mwe=Z("$ZodCheckMaxLength",(e,t)=>{var r;ii.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!lw(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let i=n.value;if(i.length<=t.maximum)return;let s=uw(i);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),gwe=Z("$ZodCheckMinLength",(e,t)=>{var r;ii.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!lw(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let i=n.value;if(i.length>=t.minimum)return;let s=uw(i);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),xwe=Z("$ZodCheckLengthEquals",(e,t)=>{var r;ii.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!lw(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=n=>{let i=n.value,s=i.length;if(s===t.length)return;let a=uw(i),o=s>t.length;n.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Hh=Z("$ZodCheckStringFormat",(e,t)=>{var r,n;ii.init(e,t),e._zod.onattach.push(i=>{let s=i._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),bwe=Z("$ZodCheckRegex",(e,t)=>{Hh.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ywe=Z("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=dwe),Hh.init(e,t)}),vwe=Z("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=hwe),Hh.init(e,t)}),_we=Z("$ZodCheckIncludes",(e,t)=>{ii.init(e,t);let r=Bh(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(i=>{let s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),wwe=Z("$ZodCheckStartsWith",(e,t)=>{ii.init(e,t);let r=new RegExp(`^${Bh(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Ewe=Z("$ZodCheckEndsWith",(e,t)=>{ii.init(e,t);let r=new RegExp(`.*${Bh(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Dwe=Z("$ZodCheckOverwrite",(e,t)=>{ii.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}}),Swe=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split(`
|
|
453
|
+
`).filter(i=>i),r=Math.min(...t.map(i=>i.length-i.trimStart().length)),n=t.map(i=>i.slice(r)).map(i=>" ".repeat(this.indent*2)+i);for(let i of n)this.content.push(i)}compile(){let e=Function,t=this?.args,r=[...(this?.content??[""]).map(n=>` ${n}`)];return new e(...t,r.join(`
|
|
454
|
+
`))}},kwe={major:4,minor:4,patch:3},Kt=Z("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=kwe;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let i of n)for(let s of i._zod.onattach)s(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(a,o,l)=>{let c=el(a),p;for(let u of o){if(u._zod.def.when){if(F_e(a)||!u._zod.def.when(a))continue}else if(c)continue;let h=a.issues.length,d=u._zod.check(a);if(d instanceof Promise&&l?.async===!1)throw new tl;if(p||d instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await d,a.issues.length!==h&&(c||(c=el(a,h)))});else{if(a.issues.length===h)continue;c||(c=el(a,h))}}return p?p.then(()=>a):a},s=(a,o,l)=>{if(el(a))return a.aborted=!0,a;let c=i(o,n,l);if(c instanceof Promise){if(l.async===!1)throw new tl;return c.then(p=>e._zod.parse(p,l))}return e._zod.parse(c,l)};e._zod.run=(a,o)=>{if(o.skipChecks)return e._zod.parse(a,o);if(o.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...o,skipChecks:!0});return c instanceof Promise?c.then(p=>s(p,a,o)):s(c,a,o)}let l=e._zod.parse(a,o);if(l instanceof Promise){if(o.async===!1)throw new tl;return l.then(c=>i(c,n,o))}return i(l,n,o)}}lt(e,"~standard",()=>({validate:i=>{try{let s=P_e(e,i);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return R_e(e,i).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),dw=Z("$ZodString",(e,t)=>{Kt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??fwe(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),St=Z("$ZodStringFormat",(e,t)=>{Hh.init(e,t),dw.init(e,t)}),Cwe=Z("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Y_e),St.init(e,t)}),Twe=Z("$ZodUUID",(e,t)=>{if(t.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=tj(r))}else t.pattern??(t.pattern=tj());St.init(e,t)}),Awe=Z("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=X_e),St.init(e,t)}),Owe=Z("$ZodURL",(e,t)=>{St.init(e,t),e._zod.check=r=>{try{let n=r.value.trim();if(!t.normalize&&t.protocol?.source===owe.source&&!/^https?:\/\//i.test(n)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Nwe=Z("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=twe()),St.init(e,t)}),Fwe=Z("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=J_e),St.init(e,t)}),Iwe=Z("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=V_e),St.init(e,t)}),Lwe=Z("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=G_e),St.init(e,t)}),Pwe=Z("$ZodULID",(e,t)=>{t.pattern??(t.pattern=W_e),St.init(e,t)}),Rwe=Z("$ZodXID",(e,t)=>{t.pattern??(t.pattern=K_e),St.init(e,t)}),Mwe=Z("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Z_e),St.init(e,t)}),qwe=Z("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=pwe(t)),St.init(e,t)}),jwe=Z("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=cwe),St.init(e,t)}),Bwe=Z("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=uwe(t)),St.init(e,t)}),$we=Z("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Q_e),St.init(e,t)}),zwe=Z("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=rwe),St.init(e,t),e._zod.bag.format="ipv4"}),Hwe=Z("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=nwe),St.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Uwe=Z("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=iwe),St.init(e,t)}),Vwe=Z("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=swe),St.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(n.length!==2)throw new Error;let[i,s]=n;if(!s)throw new Error;let a=Number(s);if(`${a}`!==s)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Aj(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Gwe=Z("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=awe),St.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Aj(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Wwe(e){if(!kj.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/");return Aj(t.padEnd(Math.ceil(t.length/4)*4,"="))}var Kwe=Z("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=kj),St.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Wwe(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Zwe=Z("$ZodE164",(e,t)=>{t.pattern??(t.pattern=lwe),St.init(e,t)});function Jwe(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var Qwe=Z("$ZodJWT",(e,t)=>{St.init(e,t),e._zod.check=r=>{Jwe(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Ywe=Z("$ZodUnknown",(e,t)=>{Kt.init(e,t),e._zod.parse=r=>r}),Xwe=Z("$ZodNever",(e,t)=>{Kt.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function rj(e,t,r){e.issues.length&&t.issues.push(...wj(r,e.issues)),t.value[r]=e.value}var eEe=Z("$ZodArray",(e,t)=>{Kt.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let s=[];for(let a=0;a<i.length;a++){let o=i[a],l=t.element._zod.run({value:o,issues:[]},n);l instanceof Promise?s.push(l.then(c=>rj(c,r,a))):rj(l,r,a)}return s.length?Promise.all(s).then(()=>r):r}});function Mh(e,t,r,n,i,s){let a=r in n;if(e.issues.length){if(i&&s&&!a)return;t.issues.push(...wj(r,e.issues))}if(!a&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function Oj(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=D_e(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Nj(e,t,r,n,i,s){let a=[],o=i.keySet,l=i.catchall._zod,c=l.def.type,p=l.optin==="optional",u=l.optout==="optional";for(let h in t){if(h==="__proto__"||o.has(h))continue;if(c==="never"){a.push(h);continue}let d=l.run({value:t[h],issues:[]},n);d instanceof Promise?e.push(d.then(m=>Mh(m,r,h,t,p,u))):Mh(d,r,h,t,p,u)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:s}),e.length?Promise.all(e).then(()=>r):r}var tEe=Z("$ZodObject",(e,t)=>{if(Kt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let a=t.shape;Object.defineProperty(t,"shape",{get:()=>{let o={...a};return Object.defineProperty(t,"shape",{value:o}),o}})}let r=ow(()=>Oj(t));lt(e._zod,"propValues",()=>{let a=t.shape,o={};for(let l in a){let c=a[l]._zod;if(c.values){o[l]??(o[l]=new Set);for(let p of c.values)o[l].add(p)}}return o});let n=Rh,i=t.catchall,s;e._zod.parse=(a,o)=>{s??(s=r.value);let l=a.value;if(!n(l))return a.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),a;a.value={};let c=[],p=s.shape;for(let u of s.keys){let h=p[u],d=h._zod.optin==="optional",m=h._zod.optout==="optional",b=h._zod.run({value:l[u],issues:[]},o);b instanceof Promise?c.push(b.then(v=>Mh(v,a,u,l,d,m))):Mh(b,a,u,l,d,m)}return i?Nj(c,l,a,o,r.value,e):c.length?Promise.all(c).then(()=>a):a}}),rEe=Z("$ZodObjectJIT",(e,t)=>{tEe.init(e,t);let r=e._zod.parse,n=ow(()=>Oj(t)),i=u=>{let h=new Swe(["shape","payload","ctx"]),d=n.value,m=T=>{let S=ej(T);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};h.write("const input = payload.value;");let b=Object.create(null),v=0;for(let T of d.keys)b[T]=`key_${v++}`;h.write("const newResult = {};");for(let T of d.keys){let S=b[T],O=ej(T),P=u[T],A=P?._zod?.optin==="optional",K=P?._zod?.optout==="optional";h.write(`const ${S} = ${m(T)};`),A&&K?h.write(`
|
|
455
|
+
if (${S}.issues.length) {
|
|
456
|
+
if (${O} in input) {
|
|
457
|
+
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
458
|
+
...iss,
|
|
459
|
+
path: iss.path ? [${O}, ...iss.path] : [${O}]
|
|
460
|
+
})));
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
if (${S}.value === undefined) {
|
|
465
|
+
if (${O} in input) {
|
|
466
|
+
newResult[${O}] = undefined;
|
|
467
|
+
}
|
|
468
|
+
} else {
|
|
469
|
+
newResult[${O}] = ${S}.value;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
`):A?h.write(`
|
|
473
|
+
if (${S}.issues.length) {
|
|
474
|
+
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
475
|
+
...iss,
|
|
476
|
+
path: iss.path ? [${O}, ...iss.path] : [${O}]
|
|
477
|
+
})));
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
if (${S}.value === undefined) {
|
|
481
|
+
if (${O} in input) {
|
|
482
|
+
newResult[${O}] = undefined;
|
|
483
|
+
}
|
|
484
|
+
} else {
|
|
485
|
+
newResult[${O}] = ${S}.value;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
`):h.write(`
|
|
489
|
+
const ${S}_present = ${O} in input;
|
|
490
|
+
if (${S}.issues.length) {
|
|
491
|
+
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
492
|
+
...iss,
|
|
493
|
+
path: iss.path ? [${O}, ...iss.path] : [${O}]
|
|
494
|
+
})));
|
|
495
|
+
}
|
|
496
|
+
if (!${S}_present && !${S}.issues.length) {
|
|
497
|
+
payload.issues.push({
|
|
498
|
+
code: "invalid_type",
|
|
499
|
+
expected: "nonoptional",
|
|
500
|
+
input: undefined,
|
|
501
|
+
path: [${O}]
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
if (${S}_present) {
|
|
506
|
+
if (${S}.value === undefined) {
|
|
507
|
+
newResult[${O}] = undefined;
|
|
508
|
+
} else {
|
|
509
|
+
newResult[${O}] = ${S}.value;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
`)}h.write("payload.value = newResult;"),h.write("return payload;");let w=h.compile();return(T,S)=>w(u,T,S)},s,a=Rh,o=!Ph.jitless,l=o&&w_e.value,c=t.catchall,p;e._zod.parse=(u,h)=>{p??(p=n.value);let d=u.value;return a(d)?o&&l&&h?.async===!1&&h.jitless!==!0?(s||(s=i(t.shape)),u=s(u,h),c?Nj([],d,u,h,p,e):u):r(u,h):(u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u)}});function nj(e,t,r,n){for(let s of e)if(s.issues.length===0)return t.value=s.value,t;let i=e.filter(s=>!el(s));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(a=>Ta(a,n,Ca())))}),t)}var nEe=Z("$ZodUnion",(e,t)=>{Kt.init(e,t),lt(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),lt(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),lt(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),lt(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>cw(i.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(n,i)=>{if(r)return r(n,i);let s=!1,a=[];for(let o of t.options){let l=o._zod.run({value:n.value,issues:[]},i);if(l instanceof Promise)a.push(l),s=!0;else{if(l.issues.length===0)return l;a.push(l)}}return s?Promise.all(a).then(o=>nj(o,n,e,i)):nj(a,n,e,i)}}),iEe=Z("$ZodIntersection",(e,t)=>{Kt.init(e,t),e._zod.parse=(r,n)=>{let i=r.value,s=t.left._zod.run({value:i,issues:[]},n),a=t.right._zod.run({value:i,issues:[]},n);return s instanceof Promise||a instanceof Promise?Promise.all([s,a]).then(([o,l])=>ij(r,o,l)):ij(r,s,a)}});function iw(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(fu(e)&&fu(t)){let r=Object.keys(t),n=Object.keys(e).filter(s=>r.indexOf(s)!==-1),i={...e,...t};for(let s of n){let a=iw(e[s],t[s]);if(!a.valid)return{valid:!1,mergeErrorPath:[s,...a.mergeErrorPath]};i[s]=a.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;n<e.length;n++){let i=e[n],s=t[n],a=iw(i,s);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function ij(e,t,r){let n=new Map,i;for(let o of t.issues)if(o.code==="unrecognized_keys"){i??(i=o);for(let l of o.keys)n.has(l)||n.set(l,{}),n.get(l).l=!0}else e.issues.push(o);for(let o of r.issues)if(o.code==="unrecognized_keys")for(let l of o.keys)n.has(l)||n.set(l,{}),n.get(l).r=!0;else e.issues.push(o);let s=[...n].filter(([,o])=>o.l&&o.r).map(([o])=>o);if(s.length&&i&&e.issues.push({...i,keys:s}),el(e))return e;let a=iw(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var sEe=Z("$ZodEnum",(e,t)=>{Kt.init(e,t);let r=yj(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>E_e.has(typeof i)).map(i=>typeof i=="string"?Bh(i):i.toString()).join("|")})$`),e._zod.parse=(i,s)=>{let a=i.value;return n.has(a)||i.issues.push({code:"invalid_value",values:r,input:a,inst:e}),i}}),aEe=Z("$ZodTransform",(e,t)=>{Kt.init(e,t),e._zod.optin="optional",e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new bj(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(s=>(r.value=s,r.fallback=!0,r));if(i instanceof Promise)throw new tl;return r.value=i,r.fallback=!0,r}});function sj(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Fj=Z("$ZodOptional",(e,t)=>{Kt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",lt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),lt(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${cw(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let i=r.value,s=t.innerType._zod.run(r,n);return s instanceof Promise?s.then(a=>sj(a,i)):sj(s,i)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),oEe=Z("$ZodExactOptional",(e,t)=>{Fj.init(e,t),lt(e._zod,"values",()=>t.innerType._zod.values),lt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),lEe=Z("$ZodNullable",(e,t)=>{Kt.init(e,t),lt(e._zod,"optin",()=>t.innerType._zod.optin),lt(e._zod,"optout",()=>t.innerType._zod.optout),lt(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${cw(r.source)}|null)$`):void 0}),lt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),cEe=Z("$ZodDefault",(e,t)=>{Kt.init(e,t),e._zod.optin="optional",lt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>aj(s,t)):aj(i,t)}});function aj(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var uEe=Z("$ZodPrefault",(e,t)=>{Kt.init(e,t),e._zod.optin="optional",lt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),pEe=Z("$ZodNonOptional",(e,t)=>{Kt.init(e,t),lt(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>oj(s,e)):oj(i,e)}});function oj(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var fEe=Z("$ZodCatch",(e,t)=>{Kt.init(e,t),e._zod.optin="optional",lt(e._zod,"optout",()=>t.innerType._zod.optout),lt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(s=>(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(a=>Ta(a,n,Ca()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(s=>Ta(s,n,Ca()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),dEe=Z("$ZodPipe",(e,t)=>{Kt.init(e,t),lt(e._zod,"values",()=>t.in._zod.values),lt(e._zod,"optin",()=>t.in._zod.optin),lt(e._zod,"optout",()=>t.out._zod.optout),lt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let s=t.out._zod.run(r,n);return s instanceof Promise?s.then(a=>Ih(a,t.in,n)):Ih(s,t.in,n)}let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(s=>Ih(s,t.out,n)):Ih(i,t.out,n)}});function Ih(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}var hEe=Z("$ZodReadonly",(e,t)=>{Kt.init(e,t),lt(e._zod,"propValues",()=>t.innerType._zod.propValues),lt(e._zod,"values",()=>t.innerType._zod.values),lt(e._zod,"optin",()=>t.innerType?._zod?.optin),lt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(lj):lj(i)}});function lj(e){return e.value=Object.freeze(e.value),e}var mEe=Z("$ZodCustom",(e,t)=>{ii.init(e,t),Kt.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(s=>cj(s,r,n,e));cj(i,r,n,e)}});function cj(e,t,r,n){if(!e){let i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(du(i))}}var uj,gEe=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];return this._map.set(e,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let n={...r,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function xEe(){return new gEe}(uj=globalThis).__zod_globalRegistry??(uj.__zod_globalRegistry=xEe());var pu=globalThis.__zod_globalRegistry;function bEe(e,t){return new e({type:"string",...Ae(t)})}function yEe(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ae(t)})}function pj(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ae(t)})}function vEe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ae(t)})}function _Ee(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ae(t)})}function wEe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ae(t)})}function EEe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ae(t)})}function DEe(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ae(t)})}function SEe(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ae(t)})}function kEe(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ae(t)})}function CEe(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ae(t)})}function TEe(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ae(t)})}function AEe(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ae(t)})}function OEe(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ae(t)})}function NEe(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ae(t)})}function FEe(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ae(t)})}function IEe(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ae(t)})}function LEe(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ae(t)})}function PEe(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ae(t)})}function REe(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ae(t)})}function MEe(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ae(t)})}function qEe(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ae(t)})}function jEe(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ae(t)})}function BEe(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ae(t)})}function $Ee(e,t){return new e({type:"string",format:"date",check:"string_format",...Ae(t)})}function zEe(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ae(t)})}function HEe(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ae(t)})}function UEe(e){return new e({type:"unknown"})}function VEe(e,t){return new e({type:"never",...Ae(t)})}function Ij(e,t){return new mwe({check:"max_length",...Ae(t),maximum:e})}function qh(e,t){return new gwe({check:"min_length",...Ae(t),minimum:e})}function Lj(e,t){return new xwe({check:"length_equals",...Ae(t),length:e})}function GEe(e,t){return new bwe({check:"string_format",format:"regex",...Ae(t),pattern:e})}function WEe(e){return new ywe({check:"string_format",format:"lowercase",...Ae(e)})}function KEe(e){return new vwe({check:"string_format",format:"uppercase",...Ae(e)})}function ZEe(e,t){return new _we({check:"string_format",format:"includes",...Ae(t),includes:e})}function JEe(e,t){return new wwe({check:"string_format",format:"starts_with",...Ae(t),prefix:e})}function QEe(e,t){return new Ewe({check:"string_format",format:"ends_with",...Ae(t),suffix:e})}function rl(e){return new Dwe({check:"overwrite",tx:e})}function YEe(e){return rl(t=>t.normalize(e))}function XEe(){return rl(e=>e.trim())}function e1e(){return rl(e=>e.toLowerCase())}function t1e(){return rl(e=>e.toUpperCase())}function r1e(){return rl(e=>__e(e))}function n1e(e,t,r){return new e({type:"array",element:t,...Ae(r)})}function i1e(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Ae(r)})}function s1e(e,t){let r=a1e(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(du(i,n.value,r._zod.def));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=r),s.continue??(s.continue=!r._zod.def.abort),n.issues.push(du(s))}},e(n.value,n)),t);return r}function a1e(e,t){let r=new ii({check:"custom",...Ae(t)});return r._zod.check=e,r}function Pj(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??pu,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function cr(e,t,r={path:[],schemaPath:[]}){var n;let i=e._zod.def,s=t.seen.get(e);if(s)return s.count++,r.schemaPath.includes(e)&&(s.cycle=r.path),s.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let o=e._zod.toJSONSchema?.();if(o)a.schema=o;else{let c={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,c);else{let u=a.schema,h=t.processors[i.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);h(e,t,u,c)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),cr(p,t,c),t.seen.get(p).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&Ar(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Rj(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let a of e.seen.entries()){let o=e.metadataRegistry.get(a[0])?.id;if(o){let l=n.get(o);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${o}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(o,a[0])}}let i=a=>{let o=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,u=e.external.uri??(d=>d);if(p)return{ref:u(p)};let h=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=h,{defId:h,ref:`${u("__shared")}#/${o}/${h}`}}if(a[1]===r)return{ref:"#"};let l=`#/${o}/`,c=a[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:l+c}},s=a=>{if(a[1].schema.$ref)return;let o=a[1],{ref:l,defId:c}=i(a);o.def={...o.schema},c&&(o.defId=c);let p=o.schema;for(let u in p)delete p[u];p.$ref=l};if(e.cycles==="throw")for(let a of e.seen.entries()){let o=a[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/<root>
|
|
514
|
+
|
|
515
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let o=a[1];if(t===a[0]){s(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){s(a);continue}}if(e.metadataRegistry.get(a[0])?.id){s(a);continue}if(o.cycle){s(a);continue}if(o.count>1&&e.reused==="ref"){s(a);continue}}}function Mj(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=o=>{let l=e.seen.get(o);if(l.ref===null)return;let c=l.def??l.schema,p={...c},u=l.ref;if(l.ref=null,u){n(u);let d=e.seen.get(u),m=d.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(m)):Object.assign(c,m),Object.assign(c,p),o._zod.parent===u)for(let b in c)b==="$ref"||b==="allOf"||b in p||delete c[b];if(m.$ref&&d.def)for(let b in c)b==="$ref"||b==="allOf"||b in d.def&&JSON.stringify(c[b])===JSON.stringify(d.def[b])&&delete c[b]}let h=o._zod.parent;if(h&&h!==u){n(h);let d=e.seen.get(h);if(d?.schema.$ref&&(c.$ref=d.schema.$ref,d.def))for(let m in c)m==="$ref"||m==="allOf"||m in d.def&&JSON.stringify(c[m])===JSON.stringify(d.def[m])&&delete c[m]}e.override({zodSchema:o,jsonSchema:c,path:l.path??[]})};for(let o of[...e.seen.entries()].reverse())n(o[0]);let i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let o=e.external.registry.get(t)?.id;if(!o)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(o)}Object.assign(i,r.def??r.schema);let s=e.metadataRegistry.get(t)?.id;s!==void 0&&i.id===s&&delete i.id;let a=e.external?.defs??{};for(let o of e.seen.entries()){let l=o[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,a[l.defId]=l.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?i.$defs=a:i.definitions=a);try{let o=JSON.parse(JSON.stringify(i));return Object.defineProperty(o,"~standard",{value:{...t["~standard"],jsonSchema:{input:jh(t,"input",e.processors),output:jh(t,"output",e.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function Ar(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return Ar(n.element,r);if(n.type==="set")return Ar(n.valueType,r);if(n.type==="lazy")return Ar(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Ar(n.innerType,r);if(n.type==="intersection")return Ar(n.left,r)||Ar(n.right,r);if(n.type==="record"||n.type==="map")return Ar(n.keyType,r)||Ar(n.valueType,r);if(n.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ar(n.in,r)||Ar(n.out,r);if(n.type==="object"){for(let i in n.shape)if(Ar(n.shape[i],r))return!0;return!1}if(n.type==="union"){for(let i of n.options)if(Ar(i,r))return!0;return!1}if(n.type==="tuple"){for(let i of n.items)if(Ar(i,r))return!0;return!!(n.rest&&Ar(n.rest,r))}return!1}var o1e=(e,t={})=>r=>{let n=Pj({...r,processors:t});return cr(e,n),Rj(n,e),Mj(n,e)},jh=(e,t,r={})=>n=>{let{libraryOptions:i,target:s}=n??{},a=Pj({...i??{},target:s,io:t,processors:r});return cr(e,a),Rj(a,e),Mj(a,e)},l1e={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},c1e=(e,t,r,n)=>{let i=r;i.type="string";let{minimum:s,maximum:a,format:o,patterns:l,contentEncoding:c}=e._zod.bag;if(typeof s=="number"&&(i.minLength=s),typeof a=="number"&&(i.maxLength=a),o&&(i.format=l1e[o]??o,i.format===""&&delete i.format,o==="time"&&delete i.format),c&&(i.contentEncoding=c),l&&l.size>0){let p=[...l];p.length===1?i.pattern=p[0].source:p.length>1&&(i.allOf=[...p.map(u=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:u.source}))])}},u1e=(e,t,r,n)=>{r.not={}},p1e=(e,t,r,n)=>{let i=e._zod.def,s=yj(i.entries);s.every(a=>typeof a=="number")&&(r.type="number"),s.every(a=>typeof a=="string")&&(r.type="string"),r.enum=s},f1e=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},d1e=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},h1e=(e,t,r,n)=>{let i=r,s=e._zod.def,{minimum:a,maximum:o}=e._zod.bag;typeof a=="number"&&(i.minItems=a),typeof o=="number"&&(i.maxItems=o),i.type="array",i.items=cr(s.element,t,{...n,path:[...n.path,"items"]})},m1e=(e,t,r,n)=>{let i=r,s=e._zod.def;i.type="object",i.properties={};let a=s.shape;for(let c in a)i.properties[c]=cr(a[c],t,{...n,path:[...n.path,"properties",c]});let o=new Set(Object.keys(a)),l=new Set([...o].filter(c=>{let p=s.shape[c]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));l.size>0&&(i.required=Array.from(l)),s.catchall?._zod.def.type==="never"?i.additionalProperties=!1:s.catchall?s.catchall&&(i.additionalProperties=cr(s.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},g1e=(e,t,r,n)=>{let i=e._zod.def,s=i.inclusive===!1,a=i.options.map((o,l)=>cr(o,t,{...n,path:[...n.path,s?"oneOf":"anyOf",l]}));s?r.oneOf=a:r.anyOf=a},x1e=(e,t,r,n)=>{let i=e._zod.def,s=cr(i.left,t,{...n,path:[...n.path,"allOf",0]}),a=cr(i.right,t,{...n,path:[...n.path,"allOf",1]}),o=l=>"allOf"in l&&Object.keys(l).length===1;r.allOf=[...o(s)?s.allOf:[s],...o(a)?a.allOf:[a]]},b1e=(e,t,r,n)=>{let i=e._zod.def,s=cr(i.innerType,t,n),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=i.innerType,r.nullable=!0):r.anyOf=[s,{type:"null"}]},y1e=(e,t,r,n)=>{let i=e._zod.def;cr(i.innerType,t,n);let s=t.seen.get(e);s.ref=i.innerType},v1e=(e,t,r,n)=>{let i=e._zod.def;cr(i.innerType,t,n);let s=t.seen.get(e);s.ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},_1e=(e,t,r,n)=>{let i=e._zod.def;cr(i.innerType,t,n);let s=t.seen.get(e);s.ref=i.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},w1e=(e,t,r,n)=>{let i=e._zod.def;cr(i.innerType,t,n);let s=t.seen.get(e);s.ref=i.innerType;let a;try{a=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},E1e=(e,t,r,n)=>{let i=e._zod.def,s=i.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?s?i.out:i.in:i.out;cr(a,t,n);let o=t.seen.get(e);o.ref=a},D1e=(e,t,r,n)=>{let i=e._zod.def;cr(i.innerType,t,n);let s=t.seen.get(e);s.ref=i.innerType,r.readOnly=!0},qj=(e,t,r,n)=>{let i=e._zod.def;cr(i.innerType,t,n);let s=t.seen.get(e);s.ref=i.innerType},S1e=Z("ZodISODateTime",(e,t)=>{qwe.init(e,t),Tt.init(e,t)});function k1e(e){return BEe(S1e,e)}var C1e=Z("ZodISODate",(e,t)=>{jwe.init(e,t),Tt.init(e,t)});function T1e(e){return $Ee(C1e,e)}var A1e=Z("ZodISOTime",(e,t)=>{Bwe.init(e,t),Tt.init(e,t)});function O1e(e){return zEe(A1e,e)}var N1e=Z("ZodISODuration",(e,t)=>{$we.init(e,t),Tt.init(e,t)});function F1e(e){return HEe(N1e,e)}var I1e=(e,t)=>{Dj.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>L_e(e,r)},flatten:{value:r=>I_e(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,nw,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,nw,2)}},isEmpty:{get(){return e.issues.length===0}}})},dn=Z("ZodError",I1e,{Parent:Error}),L1e=pw(dn),P1e=fw(dn),R1e=$h(dn),M1e=zh(dn),q1e=M_e(dn),j1e=q_e(dn),B1e=j_e(dn),$1e=B_e(dn),z1e=$_e(dn),H1e=z_e(dn),U1e=H_e(dn),V1e=U_e(dn),fj=new WeakMap;function Uh(e,t,r){let n=Object.getPrototypeOf(e),i=fj.get(n);if(i||(i=new Set,fj.set(n,i)),!i.has(t)){i.add(t);for(let s in r){let a=r[s];Object.defineProperty(n,s,{configurable:!0,enumerable:!1,get(){let o=a.bind(this);return Object.defineProperty(this,s,{configurable:!0,writable:!0,enumerable:!0,value:o}),o},set(o){Object.defineProperty(this,s,{configurable:!0,writable:!0,enumerable:!0,value:o})}})}}}var Zt=Z("ZodType",(e,t)=>(Kt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:jh(e,"input"),output:jh(e,"output")}}),e.toJSONSchema=o1e(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,n)=>L1e(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>R1e(e,r,n),e.parseAsync=async(r,n)=>P1e(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>M1e(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>q1e(e,r,n),e.decode=(r,n)=>j1e(e,r,n),e.encodeAsync=async(r,n)=>B1e(e,r,n),e.decodeAsync=async(r,n)=>$1e(e,r,n),e.safeEncode=(r,n)=>z1e(e,r,n),e.safeDecode=(r,n)=>H1e(e,r,n),e.safeEncodeAsync=async(r,n)=>U1e(e,r,n),e.safeDecodeAsync=async(r,n)=>V1e(e,r,n),Uh(e,"ZodType",{check(...r){let n=this.def;return this.clone(us(n,{checks:[...n.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,n){return ps(this,r,n)},brand(){return this},register(r,n){return r.add(this,n),this},refine(r,n){return this.check(qDe(r,n))},superRefine(r,n){return this.check(jDe(r,n))},overwrite(r){return this.check(rl(r))},optional(){return mj(this)},exactOptional(){return SDe(this)},nullable(){return gj(this)},nullish(){return mj(gj(this))},nonoptional(r){return NDe(this,r)},array(){return hDe(this)},or(r){return bDe([this,r])},and(r){return vDe(this,r)},transform(r){return xj(this,EDe(r))},default(r){return TDe(this,r)},prefault(r){return ODe(this,r)},catch(r){return IDe(this,r)},pipe(r){return xj(this,r)},readonly(){return RDe(this)},describe(r){let n=this.clone();return pu.add(n,{description:r}),n},meta(...r){if(r.length===0)return pu.get(this);let n=this.clone();return pu.add(n,r[0]),n},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return pu.get(e)?.description},configurable:!0}),e)),jj=Z("_ZodString",(e,t)=>{dw.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(n,i,s)=>c1e(e,n,i,s);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Uh(e,"_ZodString",{regex(...n){return this.check(GEe(...n))},includes(...n){return this.check(ZEe(...n))},startsWith(...n){return this.check(JEe(...n))},endsWith(...n){return this.check(QEe(...n))},min(...n){return this.check(qh(...n))},max(...n){return this.check(Ij(...n))},length(...n){return this.check(Lj(...n))},nonempty(...n){return this.check(qh(1,...n))},lowercase(n){return this.check(WEe(n))},uppercase(n){return this.check(KEe(n))},trim(){return this.check(XEe())},normalize(...n){return this.check(YEe(...n))},toLowerCase(){return this.check(e1e())},toUpperCase(){return this.check(t1e())},slugify(){return this.check(r1e())}})}),G1e=Z("ZodString",(e,t)=>{dw.init(e,t),jj.init(e,t),e.email=r=>e.check(yEe(W1e,r)),e.url=r=>e.check(DEe(K1e,r)),e.jwt=r=>e.check(jEe(cDe,r)),e.emoji=r=>e.check(SEe(Z1e,r)),e.guid=r=>e.check(pj(hj,r)),e.uuid=r=>e.check(vEe(Lh,r)),e.uuidv4=r=>e.check(_Ee(Lh,r)),e.uuidv6=r=>e.check(wEe(Lh,r)),e.uuidv7=r=>e.check(EEe(Lh,r)),e.nanoid=r=>e.check(kEe(J1e,r)),e.guid=r=>e.check(pj(hj,r)),e.cuid=r=>e.check(CEe(Q1e,r)),e.cuid2=r=>e.check(TEe(Y1e,r)),e.ulid=r=>e.check(AEe(X1e,r)),e.base64=r=>e.check(REe(aDe,r)),e.base64url=r=>e.check(MEe(oDe,r)),e.xid=r=>e.check(OEe(eDe,r)),e.ksuid=r=>e.check(NEe(tDe,r)),e.ipv4=r=>e.check(FEe(rDe,r)),e.ipv6=r=>e.check(IEe(nDe,r)),e.cidrv4=r=>e.check(LEe(iDe,r)),e.cidrv6=r=>e.check(PEe(sDe,r)),e.e164=r=>e.check(qEe(lDe,r)),e.datetime=r=>e.check(k1e(r)),e.date=r=>e.check(T1e(r)),e.time=r=>e.check(O1e(r)),e.duration=r=>e.check(F1e(r))});function dj(e){return bEe(G1e,e)}var Tt=Z("ZodStringFormat",(e,t)=>{St.init(e,t),jj.init(e,t)}),W1e=Z("ZodEmail",(e,t)=>{Awe.init(e,t),Tt.init(e,t)}),hj=Z("ZodGUID",(e,t)=>{Cwe.init(e,t),Tt.init(e,t)}),Lh=Z("ZodUUID",(e,t)=>{Twe.init(e,t),Tt.init(e,t)}),K1e=Z("ZodURL",(e,t)=>{Owe.init(e,t),Tt.init(e,t)}),Z1e=Z("ZodEmoji",(e,t)=>{Nwe.init(e,t),Tt.init(e,t)}),J1e=Z("ZodNanoID",(e,t)=>{Fwe.init(e,t),Tt.init(e,t)}),Q1e=Z("ZodCUID",(e,t)=>{Iwe.init(e,t),Tt.init(e,t)}),Y1e=Z("ZodCUID2",(e,t)=>{Lwe.init(e,t),Tt.init(e,t)}),X1e=Z("ZodULID",(e,t)=>{Pwe.init(e,t),Tt.init(e,t)}),eDe=Z("ZodXID",(e,t)=>{Rwe.init(e,t),Tt.init(e,t)}),tDe=Z("ZodKSUID",(e,t)=>{Mwe.init(e,t),Tt.init(e,t)}),rDe=Z("ZodIPv4",(e,t)=>{zwe.init(e,t),Tt.init(e,t)}),nDe=Z("ZodIPv6",(e,t)=>{Hwe.init(e,t),Tt.init(e,t)}),iDe=Z("ZodCIDRv4",(e,t)=>{Uwe.init(e,t),Tt.init(e,t)}),sDe=Z("ZodCIDRv6",(e,t)=>{Vwe.init(e,t),Tt.init(e,t)}),aDe=Z("ZodBase64",(e,t)=>{Gwe.init(e,t),Tt.init(e,t)}),oDe=Z("ZodBase64URL",(e,t)=>{Kwe.init(e,t),Tt.init(e,t)}),lDe=Z("ZodE164",(e,t)=>{Zwe.init(e,t),Tt.init(e,t)}),cDe=Z("ZodJWT",(e,t)=>{Qwe.init(e,t),Tt.init(e,t)}),uDe=Z("ZodUnknown",(e,t)=>{Ywe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>{}});function sw(){return UEe(uDe)}var pDe=Z("ZodNever",(e,t)=>{Xwe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>u1e(e,r,n,i)});function fDe(e){return VEe(pDe,e)}var dDe=Z("ZodArray",(e,t)=>{eEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>h1e(e,r,n,i),e.element=t.element,Uh(e,"ZodArray",{min(r,n){return this.check(qh(r,n))},nonempty(r){return this.check(qh(1,r))},max(r,n){return this.check(Ij(r,n))},length(r,n){return this.check(Lj(r,n))},unwrap(){return this.element}})});function hDe(e,t){return n1e(dDe,e,t)}var mDe=Z("ZodObject",(e,t)=>{rEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>m1e(e,r,n,i),lt(e,"shape",()=>t.shape),Uh(e,"ZodObject",{keyof(){return _De(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:sw()})},loose(){return this.clone({...this._zod.def,catchall:sw()})},strict(){return this.clone({...this._zod.def,catchall:fDe()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return C_e(this,r)},safeExtend(r){return T_e(this,r)},merge(r){return A_e(this,r)},pick(r){return S_e(this,r)},omit(r){return k_e(this,r)},partial(...r){return O_e(Bj,this,r[0])},required(...r){return N_e($j,this,r[0])}})});function gDe(e,t){return new mDe({type:"object",shape:e??{},...Ae(t)})}var xDe=Z("ZodUnion",(e,t)=>{nEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>g1e(e,r,n,i),e.options=t.options});function bDe(e,t){return new xDe({type:"union",options:e,...Ae(t)})}var yDe=Z("ZodIntersection",(e,t)=>{iEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>x1e(e,r,n,i)});function vDe(e,t){return new yDe({type:"intersection",left:e,right:t})}var aw=Z("ZodEnum",(e,t)=>{sEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(n,i,s)=>p1e(e,n,i,s),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(n,i)=>{let s={};for(let a of n)if(r.has(a))s[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new aw({...t,checks:[],...Ae(i),entries:s})},e.exclude=(n,i)=>{let s={...t.entries};for(let a of n)if(r.has(a))delete s[a];else throw new Error(`Key ${a} not found in enum`);return new aw({...t,checks:[],...Ae(i),entries:s})}});function _De(e,t){return new aw({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e,...Ae(t)})}var wDe=Z("ZodTransform",(e,t)=>{aEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>d1e(e,r,n,i),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new bj(e.constructor.name);r.addIssue=s=>{if(typeof s=="string")r.issues.push(du(s,r.value,t));else{let a=s;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(du(a))}};let i=t.transform(r.value,r);return i instanceof Promise?i.then(s=>(r.value=s,r.fallback=!0,r)):(r.value=i,r.fallback=!0,r)}});function EDe(e){return new wDe({type:"transform",transform:e})}var Bj=Z("ZodOptional",(e,t)=>{Fj.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>qj(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function mj(e){return new Bj({type:"optional",innerType:e})}var DDe=Z("ZodExactOptional",(e,t)=>{oEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>qj(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function SDe(e){return new DDe({type:"optional",innerType:e})}var kDe=Z("ZodNullable",(e,t)=>{lEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>b1e(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function gj(e){return new kDe({type:"nullable",innerType:e})}var CDe=Z("ZodDefault",(e,t)=>{cEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>v1e(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function TDe(e,t){return new CDe({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():_j(t)}})}var ADe=Z("ZodPrefault",(e,t)=>{uEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>_1e(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function ODe(e,t){return new ADe({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():_j(t)}})}var $j=Z("ZodNonOptional",(e,t)=>{pEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>y1e(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function NDe(e,t){return new $j({type:"nonoptional",innerType:e,...Ae(t)})}var FDe=Z("ZodCatch",(e,t)=>{fEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>w1e(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function IDe(e,t){return new FDe({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var LDe=Z("ZodPipe",(e,t)=>{dEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>E1e(e,r,n,i),e.in=t.in,e.out=t.out});function xj(e,t){return new LDe({type:"pipe",in:e,out:t})}var PDe=Z("ZodReadonly",(e,t)=>{hEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>D1e(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});function RDe(e){return new PDe({type:"readonly",innerType:e})}var MDe=Z("ZodCustom",(e,t)=>{mEe.init(e,t),Zt.init(e,t),e._zod.processJSONSchema=(r,n,i)=>f1e(e,r,n,i)});function qDe(e,t={}){return i1e(MDe,e,t)}function jDe(e,t){return s1e(e,t)}var IGe=gDe({to:dj().min(1).optional(),threadTs:dj().optional(),input:sw()});var BDe=3e4,$De=new Set(["invalid_auth","token_revoked","not_authed","account_inactive","missing_scope"]),zDe=new Set(["channel_not_found","no_text","invalid_blocks","invalid_arguments","msg_too_long"]),HDe=e=>$De.has(e)?{code:"CONFIG",retriable:!1}:zDe.has(e)?{code:"VALIDATION",retriable:!1}:{code:"PROVIDER",retriable:!0},zj=e=>{let t=e.baseUrl??"https://slack.com/api",r=e.http?.timeoutMs??BDe,n=(e.logger??uu()).child({component:"slack"}),i=G7({...e.http,timeoutMs:r}),s=async(o,l,c="json")=>{let p=c==="form",u=await i.request(`${t}/${o}`,{method:"POST",headers:{Authorization:`Bearer ${e.token}`,"Content-Type":p?"application/x-www-form-urlencoded":"application/json"},body:p?new URLSearchParams(Object.entries(l).map(([h,d])=>[h,String(d)])).toString():JSON.stringify(l)});if(!u.ok){let h=u.kind==="network"&&u.timedOut,d=u.kind==="network";throw new ti({message:`Slack ${o}: ${d?h?"request timed out":`network error: ${u.cause.message}`:`HTTP ${u.status} ${u.statusText}: ${JSON.stringify(u.body)}`}`,code:h?"TIMEOUT":"PROVIDER",provider:"slack",httpStatus:d?void 0:u.status,retriable:!0,cause:d?u.cause:void 0})}if(!u.data)throw new ti({message:`Slack ${o}: empty response body`,code:"PROVIDER",provider:"slack",retriable:!0});return u.data},a=(o,l,c)=>{let{code:p,retriable:u}=HDe(l);return n.error("Slack API error",{err:new Error(l),route:c.route}),new ti({message:`Slack ${o} failed: ${l}`,code:p,provider:"slack",providerCode:l,retriable:u,route:c.route,messageId:c.messageId})};return W7({name:"slack",async send(o,l){let c=o.to??e.defaultChannel;if(!c)return{ok:!1,error:new Yo({message:'No channel resolved: set "to" in send args or "defaultChannel" in transport options',code:"VALIDATION",route:l.route,messageId:l.messageId})};if(o.file){n.debug("uploading file to Slack",{filename:o.file.filename,channel:c});let h=await s("files.getUploadURLExternal",{filename:o.file.filename,length:o.file.data.byteLength,...o.file.altText?{alt_txt:o.file.altText}:{}},"form");if(!h.ok)return{ok:!1,error:a("files.getUploadURLExternal",h.error??"unknown_error",l)};let d=h.upload_url,m=h.file_id;if(!d||!m)return{ok:!1,error:new ti({message:"Slack files.getUploadURLExternal returned incomplete upload metadata",code:"PROVIDER",provider:"slack",retriable:!0,route:l.route,messageId:l.messageId})};let[b,v]=await Sa(fetch(d,{method:"POST",signal:AbortSignal.timeout(r),headers:{"Content-Type":"application/octet-stream"},body:o.file.data}));if(b){let S=b.name==="AbortError"||b.name==="TimeoutError";return{ok:!1,error:new ti({message:`Slack file upload: ${S?"request timed out":`network error: ${b.message}`}`,code:S?"TIMEOUT":"PROVIDER",provider:"slack",retriable:!0,route:l.route,messageId:l.messageId,cause:b})}}if(!v.ok)return{ok:!1,error:new ti({message:`Slack file upload failed with HTTP ${v.status}`,code:"PROVIDER",provider:"slack",httpStatus:v.status,retriable:v.status>=K7.INTERNAL_SERVER_ERROR,route:l.route,messageId:l.messageId})};let w={files:[{id:m,title:o.file.title??o.file.filename}],channel_id:c};o.text&&(w.initial_comment=o.text),o.threadTs&&(w.thread_ts=o.threadTs);let T=await s("files.completeUploadExternal",w);return T.ok?{ok:!0,data:{ts:T.ts??"",channel:c}}:{ok:!1,error:a("files.completeUploadExternal",T.error??"unknown_error",l)}}let p={channel:c,text:o.text};o.blocks&&(p.blocks=o.blocks),o.threadTs&&(p.thread_ts=o.threadTs),n.debug("calling Slack API",{method:"chat.postMessage",channel:c});let u=await s("chat.postMessage",p);return u.ok?{ok:!0,data:{ts:u.ts??"",channel:u.channel??""}}:{ok:!1,error:a("chat.postMessage",u.error??"unknown_error",l)}},async verify(){let o=await s("auth.test",{});if(!o.ok)return{ok:!1,details:o.error??"unknown_error"};let{ok:l,...c}=o;return{ok:!0,details:c}}})};var UDe=e=>{let t=process.env[e];if(t===void 0||t==="")throw new Error(`Missing required environment variable ${e}`);return t},Hj=e=>zj({token:UDe(e.tokenEnvVar),...e.defaultChannel!==void 0?{defaultChannel:e.defaultChannel}:{}});var VDe=(e,t)=>{if(e!==null&&typeof e=="object"&&"ok"in e&&e.ok===!1){let r="error"in e?e.error:void 0,n=r instanceof Error?r.message:JSON.stringify(r);throw new Error(`${t} transport failed: ${n}`)}},hu=async(e,t)=>{if(e===void 0)return;let r=await qq(t.config.templatesDir);return jq(r,t.config.templatesDir,e,t)},GDe=async e=>{let t=e.status===0?e.config.success:e.config.error,r=e.config.transports.smtp;if(r?.enabled!==!0||t.email===void 0)return;let n=await hu(t.email.html,e),i=await hu(t.email.subject,e),s=await hu(t.email.text,e);if(n===void 0||i===void 0)throw new Error("Email notification requires subject and html templates");let a={from:r.from,to:r.to.map(o=>({email:o})),subject:i.trim(),html:n};return s!==void 0&&(a.text=s),{channel:"emailSmtp",payload:a}},WDe=async e=>{let t=e.status===0?e.config.success:e.config.error,r=e.config.transports.slack;if(r?.enabled!==!0||t.slack===void 0)return[];let n=await hu(t.slack.blocks,e),i=e.status===0?"succeeded":"failed",a=(await hu(t.slack.text,e))?.trim()??`${e.status===0?e.config.name:`Failed: ${e.config.name}`} (${i} ${e.status}): ${Dh(e.command)}`;if(n===void 0||n.trim()===""){let l={text:a};return r.defaultChannel!==void 0&&(l.to=r.defaultChannel),[{channel:"slack",payload:l}]}let o=JSON.parse(n);if(!Array.isArray(o))throw new Error("Slack blocks template must render a JSON array");return(0,Uj.splitBlocksWithText)(o).map((l,c)=>{let p={text:c===0?a:l.text,blocks:l.blocks};return r.defaultChannel!==void 0&&(p.to=r.defaultChannel),{channel:"slack",payload:p}})},KDe=async e=>{let[t,r]=await Promise.all([GDe(e),WDe(e)]);return[t,...r].filter(n=>n!==void 0)},Vj=async e=>{let t={};if(e.transports.smtp?.enabled===!0&&(t.emailSmtp=Q7(e.transports.smtp)),e.transports.slack?.enabled===!0&&(t.slack=Hj(e.transports.slack)),!!Object.keys(t).length)return t},Gj=async(e,t)=>{let r=await KDe(e);if(e.dryRun)return li.info({payloads:r},"dry run enabled, skipping %d sends",r.length),r;for(let n of r){let i=t[n.channel];if(i===void 0)throw new Error(`No transport configured for ${n.channel}`);li.info({channel:n.channel,payload:n.payload},"sending %s notification",n.channel);let s=await i.send(n.payload,{route:e.status===0?"run.success":"run.error",channel:n.channel,input:e});VDe(s,n.channel)}return r};var ZDe=async(e=mu.argv.slice(2))=>{let t={...mu.env},r=await iI(e);if(r.kind==="help")return 0;if(r.kind==="failed")return 1;let n;try{let a=await Vj(r.config);if(a===void 0)throw new Error("No enabled transports configured");n=a}catch(a){return li.fatal({err:a},"transport failure: %s",a),1}let i=await W1(r.command,r.config,{env:t}),s={config:r.config,stdout:i.stdout,stderr:i.stderr,status:i.status,command:i.command,cwd:i.cwd,timedOut:i.timedOut,executedAt:i.executedAt,dryRun:r.config.dryRun};try{await Gj(s,n)}catch(a){return li.fatal({err:a},"transport failure: %s",a),1}return r.config.propagateExitCode?i.status:0};import.meta.url===`file://${mu.argv[1]}`&&ZDe().then(e=>{mu.exitCode=e}).catch(e=>{li.fatal({err:e},"crashed: %s",e),mu.exitCode=1});export{ZDe as main};
|
|
516
|
+
//# sourceMappingURL=run-and-notify.mjs.map
|