@mintlify/cli 4.1.30 → 4.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/start.js CHANGED
@@ -522,16 +522,16 @@ throw Error(`String.prototype.endsWith is undefined, see https://github.com/davi
522
522
  /* c8 ignore next 3 */
523
523
  if(r.type===`JSXSpreadChild`)throw Error(`JSX spread children are not supported`);this[r.type](r,t)}e.closingElement&&this[e.closingElement.type](e.closingElement,t)}function uTe(){}function dTe(e,t){t.write(`{`),this[e.expression.type](e.expression,t),t.write(`}`)}function fTe(e,t){let n=-1;if(this[e.openingFragment.type](e.openingFragment,t),e.children)for(;++n<e.children.length;){let r=e.children[n];
524
524
  /* c8 ignore next 3 */
525
- if(r.type===`JSXSpreadChild`)throw Error(`JSX spread children are not supported`);this[r.type](r,t)}this[e.closingFragment.type](e.closingFragment,t)}function pTe(e,t){t.write(e.name,e)}function mTe(e,t){this[e.object.type](e.object,t),t.write(`.`),this[e.property.type](e.property,t)}function hTe(e,t){this[e.namespace.type](e.namespace,t),t.write(`:`),this[e.name.type](e.name,t)}function gTe(e,t){let n=-1;if(t.write(`<`),this[e.name.type](e.name,t),e.attributes)for(;++n<e.attributes.length;)t.write(` `),this[e.attributes[n].type](e.attributes[n],t);t.write(e.selfClosing?` />`:`>`)}function _Te(e,t){t.write(`<>`,e)}function vTe(e,t){t.write(`{`),this.SpreadElement(e,t),t.write(`}`)}function yTe(e,t){t.write(bTe(e.value).replace(/[<>{}]/g,xTe),e)}function bTe(e){return e.replace(/&(?=[#a-z])/gi,`&amp;`)}function xTe(e){return e===`<`?`&lt;`:e===`>`?`&gt;`:e===`{`?`&#123;`:`&#125;`}const WT=e=>{let t=[];return p(e,e=>{if(st(e)&&lt(e))for(let n of e.data.estree.body)f(n)&&typeof n.source.value==`string`&&t.push(n.source.value)}),t},STe=e=>e.startsWith(`./`)||e.startsWith(`../`),CTe=e=>e.startsWith(`/`)||STe(e),GT=(e,t)=>{if(!CTe(e))return null;let n;if(e.startsWith(`/`))n=Et.normalize(e);else{let r=Et.dirname(t.startsWith(`/`)?t:`/`+t);n=Et.resolve(r,e)}return n},wTe=[`.jsx`,`.tsx`],TTe=[`.mdx`,...wTe,`.md`],KT=e=>{let t=e.startsWith(`.`)?e:`.${e}`;return TTe.includes(t)};function qT(e,t,n){let r=fe(n||t),i=!0;t&&typeof t==`object`&&`cascade`in t&&typeof t.cascade==`boolean`&&(i=t.cascade),a(e);function a(t,n,o){if(t!==e&&r(t,n,o))return!1;if(`children`in t&&Array.isArray(t.children)){let n=t,r=n.children,o=-1,s=0;if(r.length>0){for(;++o<r.length;)a(r[o],o,n)&&(r[s++]=r[o]);if(t!==e&&i&&!s)return!1;r.length=s}}return!0}}const JT=e=>e.type===`Identifier`?e.name:String(e.value),YT=e=>/^[\p{ID_Start}$_][\p{ID_Continue}$\u200C\u200D]*$/u.test(e),ETe=e=>JT(e.imported),XT=e=>{if(!st(e)||!e.data?.estree?.body||e.data.estree.sourceType!==`module`)return!1;for(let t of e.data.estree.body)if(ue(t.type))return!0;return!1},DTe=e=>{if(e)return e.startsWith(`export`)?e:`export ${e}`},ZT=e=>{let t={};p(e,n=>{if(XT(n)){for(let r of n.data.estree.body)if(r.type===`ExportDefaultDeclaration`){if(r.declaration.type===`Identifier`){let e=ATe(r.declaration.name,n);if(e){let r=structuredClone(n);r.data.estree.body=[e];let i=HT(r.data.estree,{handlers:UT}).value;t.default=i;continue}}let e=structuredClone(n);e.data.estree.body=[r];let i=HT(e.data.estree,{handlers:UT}).value;t.default=i}else if(r.type===`ExportNamedDeclaration`&&r.specifiers.length>0)for(let i of r.specifiers){let r=i.local.name,a=JT(i.exported),o=ATe(r,n)??kTe(r,e);if(o){let e=structuredClone(n);e.data.estree.body=[o];let r=HT(e.data.estree,{handlers:UT}).value;t[a]=r}}else if(r.type===`ExportNamedDeclaration`&&r.declaration){if(r.declaration.type===`VariableDeclaration`)for(let e of r.declaration.declarations){if(e.init==null)continue;let i=structuredClone(n);i.data.estree.body=[r];let a=HT(i.data.estree,{handlers:UT}).value;for(let n of OTe(e.id))t[n]=a}else if(r.declaration.type===`FunctionDeclaration`&&r.declaration.id){let e=structuredClone(n);e.data.estree.body=[r];let i=HT(e.data.estree,{handlers:UT}).value;t[r.declaration.id.name]=i}else if(r.declaration.type===`ClassDeclaration`&&r.declaration.id){let e=structuredClone(n);e.data.estree.body=[r];let i=HT(e.data.estree,{handlers:UT}).value;t[r.declaration.id.name]=i}}}});for(let[e,n]of Object.entries(t))t[e]=DTe(n)??``;return t};function OTe(e){let t=/* @__PURE__ */ new Set;return pt(e,t),t}function kTe(e,t){let n=null;return p(t,t=>{if(n===null&&XT(t))for(let r of t.data.estree.body){if(r.type!==`ExportNamedDeclaration`||r.declaration==null)continue;let t=r.declaration;if(t.type===`VariableDeclaration`?t.declarations.some(t=>OTe(t.id).has(e)):t.id?.name===e){n=r;return}}}),n}function ATe(e,t){for(let n of t.data.estree.body)if(n.type===`VariableDeclaration`){for(let t of n.declarations)if(t.id.type===`Identifier`&&t.id.name===e)return n}else if(n.type===`FunctionDeclaration`&&n.id?.name===e)return n;else if(n.type===`ClassDeclaration`&&n.id?.name===e)return n;return null}const jTe=e=>{let t=ZT(e);return qT(e,e=>XT(e)?(e.value=``,!0):!1),t};function MTe(e,t){let n=(t||{}).force||!1;p(e,r);function r(e){n?delete e.position:e.position=void 0}}var NTe=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const QT=e=>NTe(void 0,void 0,void 0,function*(){let t={};return qT(e,e=>{var n;if(st(e)&&lt(e)){let r=[];for(let i of e.data.estree.body)if(f(i)&&typeof i.source.value==`string`){let e={source:i.source.value,specifiers:i.specifiers.map(e=>{let t=e.type===`ImportSpecifier`?ETe(e):void 0,n=t!==void 0&&t!=e.local.name;return Object.assign({type:n?Fh.RenamedImportSpecifier:e.type,name:n?t:e.local.name},n&&{renamedName:e.local.name})})};t[e.source]==null?t[e.source]=e.specifiers:(n=t[e.source])==null||n.push(...e.specifiers)}else r.push(i);return r.length==0||(e.data.estree.body=r,e.value=``,MTe(e),e.value=HT(e.data.estree,{handlers:UT}).value,!1)}}),{importMap:t,tree:e}}),$T=e=>Object.keys(e.importMap).length>0,eE=(e,t)=>{let n=Dh(e).toLowerCase();return t.has(n)&&!n.startsWith(`/snippets/`)&&!n.startsWith(`/_snippets/`)},PTe=e=>{let t=e.data;return t&&`snippetFile`in t&&typeof t.snippetFile==`string`?t.snippetFile:void 0},FTe=/^[a-z][a-z\d+.-]*:/i,ITe=[`/`,`./`,`../`,`#`],LTe=[`react`,`react-dom`],tE=e=>e===``||e===`.`||e===`..`||ITe.some(t=>e.startsWith(t))?!1:!FTe.test(e),nE=e=>{if(!tE(e))return;let t=e.split(`/`);if(t.some(e=>e===`.`||e===`..`))return;let[n=``,r]=t;if(!n.startsWith(`@`))return n;if(n!==`@`&&r)return`${n}/${r}`},RTe=e=>{let t=nE(e);return LTe.some(e=>e===t)},rE=e=>({type:`Identifier`,name:e}),zTe=e=>rE(YT(e)?e:JSON.stringify(e)),BTe=e=>YT(e)?rE(e):{type:`Literal`,value:e},iE=(e,t)=>{if(!tE(e)||RTe(e))return!1;let n=nE(e);return n!==void 0&&t.has(n)},aE=e=>tE(e)&&!RTe(e),VTe=(e,t)=>{let n=PTe(e);return n===void 0?t:`/_snippets/${n}`},oE=e=>{let t=e.startsWith(`/`)?e:`/${e}`;return t.startsWith(`/snippets/`)&&cC(t)},HTe=e=>{let t=[];for(let n of e.children)if(st(n))for(let e of n.data?.estree?.body??[]){if(e.type!==`ImportDeclaration`&&e.type!==`ExportNamedDeclaration`&&e.type!==`ExportAllDeclaration`)continue;let n=e.source?.value;typeof n==`string`&&t.push(n)}return t},UTe=e=>{let t=/* @__PURE__ */ new Map;for(let{filename:n,tree:r}of e){let e=n.startsWith(`/`)?n:`/${n}`;oE(e)&&t.set(e,HTe(r))}let n=/* @__PURE__ */ new Set,r=!0;for(;r;){r=!1;for(let[e,i]of t)n.has(e)||i.some(t=>aE(t)||n.has(GT(t,e)??``))&&(n.add(e),r=!0)}return n},WTe=e=>e.type===Fh.ImportNamespaceSpecifier?null:e.type===Fh.ImportDefaultSpecifier?`default`:e.name,GTe=(e,t)=>`${t===null?`*`:YT(t)?t:JSON.stringify(t)} from "${e}"`,KTe=e=>{let t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Set,i=[];for(let[a,o]of e){o.length===0&&!t.has(a)&&t.set(a,[]);for(let e of o){let o=e.renamedName??e.name,s=WTe(e),c=JSON.stringify([o,a,s]);if(r.has(c))continue;r.add(c);let l=GTe(a,s),u=n.get(o);u===void 0?n.set(o,l):i.push({local:o,first:u,second:l}),t.set(a,[...t.get(a)??[],e])}}return{imports:[...t],conflicts:i}},qTe=(e,t,n)=>{let r=t=>({type:`ImportDeclaration`,specifiers:t,source:{type:`Literal`,value:e}}),i=[],a=[];for(let e of t)switch(e.type){case Fh.ImportDefaultSpecifier:i.some(e=>e.type===`ImportDefaultSpecifier`)?a.push(r([{type:`ImportDefaultSpecifier`,local:rE(e.name)}])):i.unshift({type:`ImportDefaultSpecifier`,local:rE(e.name)});break;case Fh.ImportNamespaceSpecifier:a.push(r([{type:`ImportNamespaceSpecifier`,local:rE(e.name)}]));break;default:i.push({type:`ImportSpecifier`,imported:n(e.name),local:rE(e.renamedName??e.name)})}return[...i.length>0||t.length===0?[r(i)]:[],...a]},JTe=e=>{let t=t=>({type:`Program`,sourceType:`module`,body:e.flatMap(([e,n])=>qTe(e,n,t))});return{type:`mdxjsEsm`,value:HT(t(zTe),{handlers:UT}).value.trim(),data:{estree:t(BTe)}}},YTe=e=>e.replace(/\s+/g,` `).trim(),XTe=(e,t)=>YTe(e)===YTe(t),sE=(e,t,n,r)=>{XTe(t,n)||r?.({type:`export-collision`,message:`"${e}" is declared twice with different definitions; the first one is kept. Import one of them under another name: import { ${e} as Other${e} } from '…'`})};var ZTe=class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,n,r){e&&t&&(n==null?e[t]=r:e[t][n]=r)}remove(e,t,n){e&&t&&(n==null?delete e[t]:e[t].splice(n,1))}},QTe=class extends ZTe{constructor(e,t){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e},this.enter=e,this.leave=t}visit(e,t,n,r){if(e){if(this.enter){let i=this.should_skip,a=this.should_remove,o=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);let s=this.should_skip,c=this.should_remove;if(this.should_skip=i,this.should_remove=a,this.replacement=o,s)return e;if(c)return null}let i;for(i in e){let t=e[i];if(t&&typeof t==`object`){if(Array.isArray(t)){let n=t;for(let t=0;t<n.length;t+=1){let r=n[t];$Te(r)&&(this.visit(r,e,i,t)||t--)}}else $Te(t)&&this.visit(t,e,i,null)}}if(this.leave){let i=this.replacement,a=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);let o=this.should_remove;if(this.replacement=i,this.should_remove=a,o)return null}}return e}};function $Te(e){return typeof e==`object`&&!!e&&`type`in e&&typeof e.type==`string`}function cE(e,{enter:t,leave:n}){return new QTe(t,n).visit(e,null)}const eEe=(e,t,n)=>{let r;return p(t,XT,t=>{for(let i of t.data.estree.body)if(i.type===`ExportDefaultDeclaration`){if(e==="default"){let e=structuredClone(t);return e.data.estree.body=[i],n&&i.declaration.type===`Identifier`&&(i.declaration.name=n),r=HT(e.data.estree,{handlers:UT}).value,!1}}else if(i.type===`ExportNamedDeclaration`&&i.specifiers.length>0){for(let a of i.specifiers)if(JT(a.exported)===e){let i=a.local.name,o=tEe(i,t);if(o){let a=structuredClone(o),s=n??(YT(e)&&rEe(a,i,e)?e:i);s!==i&&nEe(a,i,s);let c=structuredClone(t);return c.data.estree.body=[a],r=HT(c.data.estree,{handlers:UT}).value,!1}}}else{if(i.type===`ExportNamedDeclaration`&&i.declaration&&i.declaration.type===`VariableDeclaration`){for(let a of i.declaration.declarations)if(a.id.type===`Identifier`&&a.id.name===e){n&&(a.id.name=n);let e=structuredClone(t);return e.data.estree.body=[i],r=HT(e.data.estree,{handlers:UT}).value,!1}}if(i.type===`ExportNamedDeclaration`&&i.declaration&&(i.declaration.type===`FunctionDeclaration`||i.declaration.type===`ClassDeclaration`)&&i.declaration.id&&i.declaration.id.name===e){n&&(i.declaration.id.name=n);let e=structuredClone(t);return e.data.estree.body=[i],r=HT(e.data.estree,{handlers:UT}).value,!1}}}),DTe(r)};function tEe(e,t){for(let n of t.data.estree.body)if(n.type===`VariableDeclaration`){for(let t of n.declarations)if(t.id.type===`Identifier`&&t.id.name===e)return n}else if(n.type===`FunctionDeclaration`&&n.id?.name===e)return n;else if(n.type===`ClassDeclaration`&&n.id?.name===e)return n;return null}function nEe(e,t,n){if(e.type===`VariableDeclaration`)for(let r of e.declarations)r.id.type===`Identifier`&&r.id.name===t&&(r.id.name=n);else(e.type===`FunctionDeclaration`&&e.id?.name===t||e.type===`ClassDeclaration`&&e.id?.name===t)&&(e.id.name=n)}function rEe(e,t,n){if(e.type===`VariableDeclaration`&&(e.declarations.length!==1||e.declarations[0]?.id.type!==`Identifier`))return!1;let r=0,i=0;return cE(e,{enter(e){(e.type===`Identifier`||e.type===`JSXIdentifier`)&&(e.name===t&&(r+=1),e.name===n&&(i+=1))}}),r===1&&i===0}const iEe=(e,t)=>{e.children[0]?.type===`yaml`?e.children.splice(1,0,...t):e.children.unshift(...t)},aEe=e=>{e.children.length>0&&e.children[0]?.type===`yaml`&&e.children.shift()};function lE(e){let t=/* @__PURE__ */ new Set,n=e.type===`ExportNamedDeclaration`?e.declaration:e;if(n==null)return t;if(n.type===`VariableDeclaration`)for(let e of n.declarations)pt(e.id,t);else(n.type===`FunctionDeclaration`||n.type===`ClassDeclaration`)&&n.id!=null&&t.add(n.id.name);return t}function oEe(e,t){for(let n of e.children)if(st(n)&&lt(n))for(let e of n.data.estree.body){if(e.type!==`ExportNamedDeclaration`||e.declaration?.type!==`VariableDeclaration`)continue;let r=e.declaration.declarations.find(e=>e.id.type===`Identifier`&&e.id.name===t);if(r===void 0)continue;let i=Object.assign(Object.assign({},n.data.estree),{body:[Object.assign(Object.assign({},e),{declaration:Object.assign(Object.assign({},e.declaration),{declarations:[r]})})]});return FT(HT(i,{handlers:UT}).value)}return e}function uE(e){let t=/* @__PURE__ */ new Set;for(let n of e.children)if(st(n)&&lt(n)){for(let e of n.data.estree.body)if(e.type===`ExportDefaultDeclaration`)t.add(`default`);else if(e.type===`ExportNamedDeclaration`){for(let n of e.specifiers)t.add(JT(n.exported));for(let n of lE(e))t.add(n)}}return t}function sEe(e){let t=/* @__PURE__ */ new Set;for(let n of e.children)if(st(n)&&lt(n))for(let e of n.data.estree.body){let n=e.type===`ExportNamedDeclaration`?e.declaration:e;if(n?.type===`VariableDeclaration`||n?.type===`ClassDeclaration`)for(let n of lE(e))t.add(n)}return t}function dE(e){let t=/* @__PURE__ */ new Set;for(let n of e.children)if(st(n)&&lt(n))for(let e of n.data.estree.body)if(e.type===`ImportDeclaration`)for(let n of e.specifiers)t.add(n.local.name);else if(e.type===`ExportNamedDeclaration`||e.type===`VariableDeclaration`||e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`)for(let n of lE(e))t.add(n);else e.type===`ExportDefaultDeclaration`&&(e.declaration.type===`FunctionDeclaration`||e.declaration.type===`ClassDeclaration`)&&e.declaration.id!=null&&t.add(e.declaration.id.name);return t}function fE(e,t){if(Array.isArray(e))for(let n of e)fE(n,t);else We(e)&&(e.type===`Property`&&e.shorthand===!0&&t(e),u(e,e=>fE(e,t)))}function cEe(e){if(We(e))return e.type===`AssignmentPattern`&&We(e.left)?e.left.name:e.name}function pE(e,t){if(!We(e)||typeof e.name!=`string`)return;let n=t.get(e.name);n!==void 0&&(e.name=n)}function mE(e,t){if(We(e))switch(e.type){case`Identifier`:pE(e,t);return;case`AssignmentPattern`:mE(e.left,t);return;case`RestElement`:mE(e.argument,t);return;case`ObjectPattern`:{let n=Array.isArray(e.properties)?e.properties:[];for(let e of n)We(e)&&mE(e.type===`RestElement`?e.argument:e.value,t);return}case`ArrayPattern`:{let n=Array.isArray(e.elements)?e.elements:[];for(let e of n)mE(e,t);return}default:return}}function hE(e,t,n){if(fE(e,e=>{We(e.key)&&(e.key=Object.assign({},e.key))}),he(e,/* @__PURE__ */ new Set,{reference:e=>pE(e,t)}),n&&We(e)){if(e.type===`VariableDeclaration`&&Array.isArray(e.declarations))for(let n of e.declarations)We(n)&&mE(n.id,t);else pE(e.id,t)}fE(e,e=>{We(e.key)&&cEe(e.value)!==e.key.name&&(e.shorthand=!1)})}function lEe(e,t){let n=new Map(e.map((e,t)=>[e,t])),r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Map,a=[],o=/* @__PURE__ */ new Set,s=[],c=e=>{let l=r.size;r.set(e,l),i.set(e,l),a.push(e),o.add(e);for(let a of t(e))n.has(a)&&(r.has(a)?o.has(a)&&i.set(e,Math.min(i.get(e)??l,r.get(a)??l)):(c(a),i.set(e,Math.min(i.get(e)??l,i.get(a)??l))));if(i.get(e)!==l)return;let u=[];for(let t=a.pop();t!==void 0&&(o.delete(t),u.push(t),t!==e);t=a.pop());u.sort((e,t)=>(n.get(e)??0)-(n.get(t)??0)),s.push(...u)};for(let t of e)r.has(t)||c(t);return s}function uEe(e,t){let n=/* @__PURE__ */ new Map;for(let e of t.values())n.has(e)||n.set(e,n.size);return lEe([...e].sort((e,t)=>(n.get(e)??0)-(n.get(t)??0)),e=>[...M(e.declaration,!0)].flatMap(e=>{let n=t.get(e);return n===void 0?[]:[n]}))}function dEe(e,t){return HT(Object.assign(Object.assign({},e),{body:[t]}),{handlers:UT}).value}function gE(e){let t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Map,r=(e,n)=>{let r=n.type===`VariableDeclaration`?n.declarations.map(e=>Object.assign(Object.assign({},n),{declarations:[e]})):[n];for(let n of r){let r=lE(n);if(r.size===0)continue;let i=M(n);for(let e of r)i.delete(e);let a={names:r,references:i,declaration:n,program:e};for(let e of r)t.has(e)||t.set(e,a)}};for(let t of e.children){if(!st(t)||!lt(t))continue;let e=t.data.estree;for(let t of e.body)if(t.type===`VariableDeclaration`||t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`)r(e,t);else if(t.type===`ExportDefaultDeclaration`){let n=t.declaration;(n.type===`FunctionDeclaration`||n.type===`ClassDeclaration`)&&n.id!=null&&r(e,n)}else if(t.type===`ExportNamedDeclaration`){if(t.declaration!=null)r(e,t.declaration);else if(t.source==null)for(let e of t.specifiers)e.local.type===`Identifier`&&n.set(JT(e.exported),e.local.name)}}return{units:t,aliases:n}}function fEe(e,t){return gE(e).aliases.get(t)??t}function _E(e,t){let n=gE(e).units.get(t);return n===void 0?void 0:dEe(n.program,n.declaration)}function vE(e){let t=/* @__PURE__ */ new Set;for(let n of FT(e).children)if(st(n)&&lt(n))for(let e of n.data.estree.body)for(let n of lE(e))t.add(n);return t}function pEe(e,t,n=()=>!1){let r=FT(e),[i]=r.children;if(i===void 0||!st(i)||!lt(i))return;let a=i.data.estree,[o]=a.body;if(a.body.length!==1||o?.type!==`ExportNamedDeclaration`||o.declaration?.type!==`VariableDeclaration`)return;let s=o.declaration,c=[...s.declarations],l=e=>{let n=/* @__PURE__ */ new Set;return pt(e.id,n),n.size===0||![...n].every(e=>t.has(e))?!1:!c.filter(t=>t!==e).some(e=>[...M(e)].some(e=>n.has(e)))};for(let e=c.find(l);e!==void 0;)c=c.filter(t=>t!==e),e=c.find(l);if(c.length===0)return;s.declarations=c;let u=xE(r),d=/* @__PURE__ */ new Map;for(let e of t){let t=`${yE}${e}_${u}`,r=t;for(let e=1;n(r);e++)r=`${t}_${e}`;d.set(e,r)}return hE(s,d,!0),HT(a,{handlers:UT}).value}const yE=`__snippet_`;function bE(e){return e.startsWith(yE)}function xE(e){let t=2166136261;for(let n of e.children)if(st(n))for(let e=0;e<n.value.length;e++)t=Math.imul(t^n.value.charCodeAt(e),16777619)>>>0;return t.toString(36)}function mEe(e,t){let n=sEe(e),r=new Map(e.children.map((e,t)=>[e,t])),i=[],a=/* @__PURE__ */ new Map,o=t=>{let r=a.get(t);if(r!==void 0)return r;a.set(t,!0);let s=e.children.find(e=>st(e)&&lt(e)&&e.data.estree.body.some(e=>lE(e).has(t)));if(s===void 0||!st(s)||!lt(s))return!0;let c=M(s.data.estree,!0),l=![...c].some(e=>!bE(e)&&n.has(e));for(let e of M(s.data.estree))bE(e)&&!o(e)&&c.has(e)&&(l=!1);if(a.set(t,l),!l)return!1;let u=e.children.indexOf(s);if(u===-1)return!0;e.children.splice(u,1);let d=new Set(s.data.estree.body.flatMap(e=>[...lE(e)]));return i.push({node:s,declared:d,eager:c}),!0};for(let e of t)o(e);i.sort((e,t)=>(r.get(e.node)??0)-(r.get(t.node)??0));let s=/* @__PURE__ */ new Map;for(let e of i)for(let t of e.declared)s.set(t,e);return lEe(i,e=>[...e.eager].flatMap(e=>{let t=s.get(e);return t===void 0?[]:[t]})).map(e=>e.node)}function SE(e,t){let n=+(e.children[0]?.type===`yaml`);for(let r of t){let t=st(r)&&lt(r)?M(r.data.estree,!0):/* @__PURE__ */ new Set,i=n;e.children.forEach((e,n)=>{n<i||!st(e)||!lt(e)||e.data.estree.body.some(e=>{let n=e.type===`ExportNamedDeclaration`?e.declaration:e;return n?.type!==`VariableDeclaration`&&n?.type!==`ClassDeclaration`?!1:[...lE(e)].some(e=>t.has(e))})&&(i=n+1)}),e.children.splice(i,0,r),i===n&&n++}}function hEe(e,t){let n=gE(e).units.get(t),r=xE(e),i=/* @__PURE__ */ new Map;for(let e of n?.names??[])e!==t&&i.set(e,`${yE}${e}_${r}`);return i}function gEe(e,t,n,r,i=/* @__PURE__ */ new Map){let{units:a,aliases:o}=gE(t),s=o.get(r.name)??r.name,c=dE(n),l=new Set([...c].map(e=>e===r.localName?s:e)),u=/* @__PURE__ */ new Map;s!==r.localName&&c.has(r.localName)&&u.set(s,r.localName);let d=dE(e),f=xE(t),p=/* @__PURE__ */ new Set,m=[],h=e=>{if(l.has(e))return;let t=a.get(e);if(t!==void 0&&[...t.names].every(e=>i.has(e)))for(let e of t.names){let t=i.get(e);t!==void 0&&u.set(e,t)}else if(!(t===void 0||p.has(t))){p.add(t);for(let e of t.names)u.set(e,`${yE}${e}_${f}`);for(let e of t.references)h(e);m.push(t)}},g=n.children.flatMap(e=>st(e)&&lt(e)?[e.data.estree]:[]),_=M(g);for(let e of _)h(e);let v=e=>{let t=structuredClone(e.declaration);return hE(t,u,!0),FT(dEe(e.program,{type:`ExportNamedDeclaration`,declaration:t,specifiers:[],source:null}))},y=[],b=[];for(let t of m){let n=new Map([...t.names].map(e=>[e,u.get(e)??e]));for(let r=0;;r++){let i=[];for(let[e,t]of n){let n=r===0?t:`${t}_${r}`;u.set(e,n),i.push(n)}if(i.some(e=>c.has(e)))continue;let a=v(t),o=i.find(e=>d.has(e));if(o===void 0){b.push(t);break}if(_E(e,o)===_E(a,o)){y.push(...i);break}}}let x=new Set(l),S=/* @__PURE__ */ new Set;for(let e=!0;e;){e=!1;for(let t of b)if(!S.has(t)&&[...M(t.declaration,!0)].some(e=>x.has(e))){S.add(t);for(let e of t.names)x.add(e);e=!0}}let C=e=>e.flatMap(e=>v(e).children),w=uEe(b,a),T=[...mEe(e,y),...C(w.filter(e=>!S.has(e)))],E=C(w.filter(e=>S.has(e))),D=/* @__PURE__ */ new Map;for(let e of m)for(let t of e.names){let e=u.get(t);e!==void 0&&D.set(t,e)}if(![..._].some(e=>u.has(e)))return{siblings:T,statement:n,trailing:E,privateNames:D};let O=g.map(e=>{let t=structuredClone(e);return hE(t,u,!1),HT(t,{handlers:UT}).value});return{siblings:T,statement:FT(O.join(`
526
- `)),trailing:E,privateNames:D}}var _Ee=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const vEe=(e,t,n,r,i)=>_Ee(void 0,void 0,void 0,function*(){let a=structuredClone(n);aEe(a);let o=jTe(a),s=a;return p(e,g,(n,i,a)=>{if(n.name===t&&a&&i!=null){let c=structuredClone(s),l=o.default&&(o[t]===void 0||Object.keys(o).length===1),u,d=[];if(!l){n.name=null;let t=yEe(n,s,r,o);d=t.variableDeclarationNodes,u=t.snippetNodesToInject,a.children.splice(i,1,...u),e.children.splice(+(e.children[0]?.type===`yaml`),0,...d)}s=c}}),OEe(e,r,o,i),e}),yEe=(e,t,n,r)=>{let i={},a={},o=EEe(e),s=new Set(e.attributes.flatMap(e=>e.type===`mdxJsxAttribute`?[e.name]:[]));DEe(t,o);let c=e=>{let t=i[e];if(t!=null)return t;let o=0,s=Oe(e,o);for(;n[s]||r[s];)o+=1,s=Oe(e,o);return a[s]={type:`unknown`,value:`undefined`},i[e]=s,s},l=/* @__PURE__ */ new WeakSet,u=(e,t)=>{cE(e,{enter(e,n){if(e.type!==`Identifier`||l.has(e)||r[e.name]!=null||!s.has(e.name)&&TEe(e.name)||n?.type===`MemberExpression`&&n.property===e&&!n.computed||n?.type===`Property`&&n.shorthand&&n.value===e)return;if(n?.type===`Property`&&n.key===e&&!n.computed){if(!n.shorthand)return;let r=c(e.name);t?.push(Object.assign(Object.assign({},xEe(e)),{text:`${e.name}: ${r}`})),n.shorthand=!1;let i=Object.assign(Object.assign({},e),{name:r});l.add(i),n.value=i;return}let i=c(e.name);t?.push(Object.assign(Object.assign({},xEe(e)),{text:i})),e.name=i,l.add(e)}})},d=e=>(u(e),CE(e)),f=e=>{d(e);let t=CEe(e);return t?`...${CE(SEe(t.argument))}`:CE(e)},m=(e,t,n=!1)=>{let r=n?`{${e}}`:e,i=bEe(r);if(!i)return n?f(t):d(t);let a=[];u(i,a),u(t);let o=r;for(let e of a.sort((e,t)=>t.start-e.start))o=o.slice(0,e.start)+e.text+o.slice(e.end);return n?o.slice(1,-1):o};p(t,e=>{if((e.type===`mdxTextExpression`||e.type===`mdxFlowExpression`)&&e.data?.estree)e.value=m(e.value,e.data.estree);else if(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)for(let t of e.attributes)t.type===`mdxJsxExpressionAttribute`&&t.data?.estree?t.value=m(t.value,t.data.estree,!0):t.type===`mdxJsxAttribute`&&t.value&&typeof t.value==`object`&&t.value.data?.estree&&(t.value.value=m(t.value.value,t.value.data.estree))}),e.attributes.forEach(e=>{if(e.type===`mdxJsxAttribute`&&e.value){let t=i[e.name];t!=null&&(a[t]=typeof e.value==`string`?{type:`string`,value:e.value}:{type:`unknown`,value:e.value.value})}});let h=[];return Object.entries(a).map(([e,t])=>{let r=`export const ${e} = ${t.type===`string`?JSON.stringify(t.value):t.value}`;n[e]=r,h.push(...FT(r).children)}),{variableDeclarationNodes:h,snippetNodesToInject:t.children}},CE=e=>HT(e,{handlers:UT}).value.replace(/;\s*$/,``),bEe=e=>{try{let t=Rg.parseExpressionAt(e,0,{ecmaVersion:`latest`,sourceType:`module`,preserveParens:!0});return e.slice(t.end).trim()===``?t:void 0}catch{return}},xEe=e=>{let{start:t,end:n}=e;return{start:t,end:n}},SEe=e=>({type:`Program`,sourceType:`module`,body:[{type:`ExpressionStatement`,expression:e}],comments:[]}),CEe=e=>{let[t]=e.body;if(t?.type!==`ExpressionStatement`)return;let{expression:n}=t;if(n.type!==`ObjectExpression`||n.properties.length!==1)return;let[r]=n.properties;return r?.type===`SpreadElement`?r:void 0},wEe=/* @__PURE__ */ new Set([`window`,`document`,`navigator`,`location`,`localStorage`]),TEe=e=>e in globalThis||wEe.has(e),EEe=e=>{let t={};return e.attributes.forEach(e=>{e.type===`mdxJsxAttribute`&&e.value&&typeof e.value==`string`&&(t[e.name]=e.value)}),t},DEe=(e,t)=>{p(e,e=>{e.type===`code`&&typeof e.value==`string`&&(e.value=e.value.replace(/\{\s*([A-Za-z_$][\w$]*)\s*\}/g,(e,n)=>n in t?t[n]??e:e))})},OEe=(e,t,n,r)=>{let i=[],a=/* @__PURE__ */ new Set;for(let[o,s]of Object.entries(n)){let c=t[o],l=o==="default"||vE(s).has(o);if(c==null&&!l){let e=[...vE(s)];if(e.every(e=>t[e]===void 0&&n[e]===void 0)&&!a.has(s)){i.push(...FT(s).children),a.add(s);for(let n of e)t[n]=s}}else if(c==null){let e=new Set([...vE(s)].filter(e=>e!==o&&t[e]!==void 0&&t[e]!==s)),n=e.size===0?s:pEe(s,e,e=>t[e]!==void 0);if(n===void 0){for(let n of e)sE(n,t[n]??``,s,r);continue}a.has(n)||i.push(...FT(n).children),a.add(n),t[o]=s}else bE(o)&&XTe(c,s)?i.push(...mEe(e,[o])):sE(o,c,s,r)}i.length>0&&SE(e,i)};var kEe=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const AEe=[Fh.ImportSpecifier,Fh.RenamedImportSpecifier],jEe=()=>({bindings:/* @__PURE__ */ new Map,contexts:/* @__PURE__ */ new Map});function MEe(e,t){let n=e.bindings.get(t)??/* @__PURE__ */ new Map;return e.bindings.set(t,n),n}function NEe(e,t){let n=e.contexts.get(t);if(n!==void 0)return n;let r=w(t);return e.contexts.set(t,r),r}const PEe=[Fh.ImportDefaultSpecifier,Fh.ImportNamespaceSpecifier],FEe=(e,t,n,r,i,...a)=>kEe(void 0,[e,t,n,r,i,...a],void 0,function*(e,t,n,r,i,a=jEe()){if(AEe.includes(e.type)){let o=e.renamedName??e.name,s=dE(t),c=uE(t),l=e=>{let n=r[o];return n===void 0?!s.has(o)&&!c.has(o)?!1:(sE(o,_E(t,o)??``,_E(FT(e),o)??e,i),!0):(sE(o,n,e,i),!0)},u=fEe(n,e.name),d=MEe(a,n),f=d.get(u);if(f!==void 0&&f!==o){let e=`export const ${o} = ${f};`;return l(e)||(SE(t,FT(e).children),r[o]=e),t}let p=eEe(e.name,structuredClone(n),e.renamedName);if(p==null){let i=NEe(a,n).moduleScope;if(!uE(n).has(e.name)||!i.has(u))throw Error(`Could not find export ${e.name} in snippet`);let s=e=>{let t=i.get(e);return A(t===void 0?void 0:t)},c=`export const ${o} = ${s(u)};`;if(l(c))return t;let f=[];for(let[e,t]of hEe(n,u)){if(d.has(e)||!i.has(e))continue;let n=`export const ${t} = ${s(e)};`;f.push(n),r[t]??(r[t]=n),d.set(e,t)}return iEe(t,FT([...f,c].join(`
527
- `)).children),r[o]=c,d.set(u,o),t}if(l(p))return t;let m=FT(p),h=dE(m),g=h.has(u)?u:o,_=g===o?[]:FT(`export const ${o} = ${g};`).children,{siblings:v,statement:y,trailing:b,privateNames:x}=gEe(t,n,[...h].some(e=>e!==g&&(e===o||d.has(e)||s.has(e)||c.has(e)))?oEe(m,g):m,{name:e.name,localName:o},d),S={type:`root`,children:[...v,...y.children,..._,...b]};SE(t,S.children);let C=dE(y);C.has(u)?d.set(u,u):C.has(o)&&d.set(u,o);let w=dE(n);for(let e of C)e!==o&&w.has(e)&&!d.has(e)&&d.set(e,e);for(let[e,t]of x)d.has(e)||d.set(e,t);for(let[e,t]of Object.entries(ZT(S)))r[e]??(r[e]=t);return t}if(PEe.includes(e.type))return yield vEe(t,e.name,n,r,i)});var wE=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const IEe=e=>st(e)&&lt(e)&&e.data.estree.body.some(f),LEe=e=>wE(void 0,void 0,void 0,function*(){let t=/* @__PURE__ */ new Set;if(p(e,e=>{IEe(e)&&t.add(e)}),t.size===0)return{};let{importMap:n,tree:r}=yield QT({type:`root`,children:[...t]}),i=new Set(r.children);return qT(e,{cascade:!1},e=>t.has(e)&&!i.has(e)),n}),REe=e=>wE(void 0,void 0,void 0,function*(){let t=e.children.filter(IEe);if(t.length===0)return{tree:Object.assign(Object.assign({},e),{children:[...e.children]}),importMap:{}};let{importMap:n}=yield QT({type:`root`,children:structuredClone(t)}),r=new Set(t);return{tree:Object.assign(Object.assign({},e),{children:e.children.filter(e=>!r.has(e))}),importMap:n}}),zEe=e=>`value`in e?String(e.value):e.name,BEe=({local:e,exported:t})=>{let n=zEe(e),r=zEe(t);if(r!=="default")return n==="default"?{type:Fh.ImportDefaultSpecifier,name:r}:n===r?{type:Fh.ImportSpecifier,name:n}:{type:Fh.RenamedImportSpecifier,name:n,renamedName:r}},VEe=(e,t)=>e.type===`ExportNamedDeclaration`&&typeof e.source?.value==`string`&&aE(e.source.value)&&iE(e.source.value,t),HEe=(e,t)=>{let n=[];return e.children=e.children.flatMap(e=>{if(!st(e)||!lt(e))return[e];let r=e.data.estree.body,i=r.filter(e=>VEe(e,t));for(let e of i)e.type===`ExportNamedDeclaration`&&typeof e.source?.value==`string`&&n.push([e.source.value,e.specifiers.flatMap(e=>BEe(e)??[])]);let a=r.filter(e=>!i.includes(e));if(a.length===r.length)return[e];if(a.length===0)return[];let o=Object.assign(Object.assign({},e.data.estree),{body:a});return[Object.assign(Object.assign({},e),{value:HT(o,{handlers:UT}).value,data:Object.assign(Object.assign({},e.data),{estree:o})})]}),n},UEe=(e,t)=>Object.entries(e.importMap??{}).flatMap(([n,r])=>{let i=GT(n,e.filename);return i==null?aE(n)&&iE(n,t.packageNames)?[[n,r]]:[]:t.packageSnippets?.has(i)?[[i,r]]:[]}),TE=e=>wE(void 0,void 0,void 0,function*(){let{snippets:t,fileWithImports:n,onWarning:r,packages:i}=e,a=bh(n.filename),o=n.tree,s=i&&/\.mdx?$/.test(n.filename)?HEe(o,i.packageNames):[],c=ZT(o),l=jEe(),u=/* @__PURE__ */ new Map;for(let e of Object.keys(n.importMap)){let d=GT(e,n.filename);if(i&&d==null&&aE(e)){if(iE(e,i.packageNames)){s.push([e,n.importMap[e]??[]]);continue}let t=`Package ${nE(e)??e} imported in ${n.filename} is not declared in package.json dependencies.`;r?r({type:`undeclared-package`,message:t,file:a}):console.log(t);continue}if(d!=null&&(i?.packageSnippets)?.has(d)){s.push([d,n.importMap[e]??[]]);continue}if(d==null){let t=`Invalid import path ${e} in ${n.filename}. Only local imports are supported.`;r?r({type:`invalid-import-path`,message:t,file:a}):console.log(t);continue}let f=t.find(e=>e.filename===d);if(f==null){let e=`Could not find file ${d} - imported from ${n.filename}`;r?r({type:`missing-file`,message:e,file:a}):console.log(e);continue}let p=u.get(f)??f;if(i&&!u.has(f)){let{tree:e,importMap:t}=yield REe(f.tree);p=Object.assign(Object.assign({},f),{tree:e}),u.set(f,p),s.push(...Object.entries(t),...UEe(f,i)),/\.mdx?$/.test(f.filename)&&s.push(...HEe(e,i.packageNames))}let m=ZT(p.tree),h=n.importMap[e];if(h!=null)for(let t of h){if(t.type===Fh.ImportDefaultSpecifier&&!(`default`in m)&&Object.keys(m).length>0&&p.tree.children.every(e=>e.type===`yaml`||e.type===`mdxjsEsm`)){let i=`Default import "${t.name}" in ${n.filename} will not render — ${d} has no default export. Use a named import instead: import { ExportName } from '${e}'`;r?r({type:`default-import-no-default-export`,message:i,file:a}):console.log(i)}try{let e=yield FEe(t,o,p.tree,c,e=>{let t=Object.assign(Object.assign({},e),{message:`${e.message} (in ${n.filename}, importing ${d})`,file:a});r?r(t):console.log(t.message)},l);if(e==null)throw Error(`Import failed to resolve`);o=e}catch(e){let i=`Error resolving import "${t.name}" in ${n.filename}: ${e instanceof Error?e.message:String(e)}`;r?r({type:`import-resolution-error`,message:i,file:a}):console.log(i)}}}if(i&&s.push(...Object.entries(yield LEe(o))),!i||s.length===0)return o;let{imports:d,conflicts:f}=KTe(s.filter(([e,t])=>t.length>0||iE(e,i.packageNames)||i.packageSnippets?.has(e)));for(let{local:e,first:t,second:i}of f){let o=`${e} is imported twice in ${n.filename}, as ${t} and as ${i}. Snippets inlined into a page share its imports, so import one of them under another name.`;r?r({type:`package-import-conflict`,message:o,file:a}):console.log(o)}return iEe(o,[JTe(d)]),o});function EE(e){let t=/* @__PURE__ */ new Set,n=[];function r(i){t.add(i);for(let n of e[i]||[])t.has(n)||r(n);n.push(i)}for(let n in e)t.has(n)||r(n);return n.reverse()}var WEe=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const GEe=(e,...t)=>WEe(void 0,[e,...t],void 0,function*(e,{packages:t,onWarning:n,skip:r}={}){let i={};for(let t of e)i[t.filename]=Object.keys(t.importMap).flatMap(e=>GT(e,t.filename)??[]);let a=new Map(e.map(e=>[e.filename,e])),o=EE(i).reverse().flatMap(e=>a.get(e)??[]);for(let e of o)$T(e)&&!r?.(e.filename)&&(e.tree=yield TE(Object.assign(Object.assign({snippets:o,fileWithImports:e},n&&{onWarning:t=>n(t,e.filename)}),t&&{packages:t})));return e}),KEe=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`];var DE=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};DE.prototype.normal={},DE.prototype.property={},DE.prototype.space=void 0;function qEe(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new DE(n,r,t)}function OE(e){return e.toLowerCase()}var kE=class{constructor(e,t){this.attribute=t,this.property=e}};kE.prototype.attribute=``,kE.prototype.booleanish=!1,kE.prototype.boolean=!1,kE.prototype.commaOrSpaceSeparated=!1,kE.prototype.commaSeparated=!1,kE.prototype.defined=!1,kE.prototype.mustUseProperty=!1,kE.prototype.number=!1,kE.prototype.overloadedBoolean=!1,kE.prototype.property=``,kE.prototype.spaceSeparated=!1,kE.prototype.space=void 0;var AE=/* @__PURE__ */ i({boolean:()=>jE,booleanish:()=>ME,commaOrSpaceSeparated:()=>LE,commaSeparated:()=>IE,number:()=>PE,overloadedBoolean:()=>NE,spaceSeparated:()=>FE});let JEe=0;const jE=RE(),ME=RE(),NE=RE(),PE=RE(),FE=RE(),IE=RE(),LE=RE();function RE(){return 2**++JEe}const zE=Object.keys(AE);var BE=class extends kE{constructor(e,t,n,r){let i=-1;if(super(e,t),YEe(this,`space`,r),typeof n==`number`)for(;++i<zE.length;){let e=zE[i];YEe(this,zE[i],(n&AE[e])===AE[e])}}};BE.prototype.defined=!0;function YEe(e,t,n){n&&(e[t]=n)}function VE(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new BE(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[OE(r)]=r,n[OE(a.attribute)]=r}return new DE(t,n,e.space)}const XEe=VE({properties:{ariaActiveDescendant:null,ariaAtomic:ME,ariaAutoComplete:null,ariaBusy:ME,ariaChecked:ME,ariaColCount:PE,ariaColIndex:PE,ariaColSpan:PE,ariaControls:FE,ariaCurrent:null,ariaDescribedBy:FE,ariaDetails:null,ariaDisabled:ME,ariaDropEffect:FE,ariaErrorMessage:null,ariaExpanded:ME,ariaFlowTo:FE,ariaGrabbed:ME,ariaHasPopup:null,ariaHidden:ME,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:FE,ariaLevel:PE,ariaLive:null,ariaModal:ME,ariaMultiLine:ME,ariaMultiSelectable:ME,ariaOrientation:null,ariaOwns:FE,ariaPlaceholder:null,ariaPosInSet:PE,ariaPressed:ME,ariaReadOnly:ME,ariaRelevant:null,ariaRequired:ME,ariaRoleDescription:FE,ariaRowCount:PE,ariaRowIndex:PE,ariaRowSpan:PE,ariaSelected:ME,ariaSetSize:PE,ariaSort:null,ariaValueMax:PE,ariaValueMin:PE,ariaValueNow:PE,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function ZEe(e,t){return t in e?e[t]:t}function QEe(e,t){return ZEe(e,t.toLowerCase())}const $Ee=VE({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:IE,acceptCharset:FE,accessKey:FE,action:null,allow:null,allowFullScreen:jE,allowPaymentRequest:jE,allowUserMedia:jE,alt:null,as:null,async:jE,autoCapitalize:null,autoComplete:FE,autoFocus:jE,autoPlay:jE,blocking:FE,capture:null,charSet:null,checked:jE,cite:null,className:FE,cols:PE,colSpan:null,content:null,contentEditable:ME,controls:jE,controlsList:FE,coords:PE|IE,crossOrigin:null,data:null,dateTime:null,decoding:null,default:jE,defer:jE,dir:null,dirName:null,disabled:jE,download:NE,draggable:ME,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:jE,formTarget:null,headers:FE,height:PE,hidden:NE,high:PE,href:null,hrefLang:null,htmlFor:FE,httpEquiv:FE,id:null,imageSizes:null,imageSrcSet:null,inert:jE,inputMode:null,integrity:null,is:null,isMap:jE,itemId:null,itemProp:FE,itemRef:FE,itemScope:jE,itemType:FE,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:jE,low:PE,manifest:null,max:null,maxLength:PE,media:null,method:null,min:null,minLength:PE,multiple:jE,muted:jE,name:null,nonce:null,noModule:jE,noValidate:jE,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:jE,optimum:PE,pattern:null,ping:FE,placeholder:null,playsInline:jE,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:jE,referrerPolicy:null,rel:FE,required:jE,reversed:jE,rows:PE,rowSpan:PE,sandbox:FE,scope:null,scoped:jE,seamless:jE,selected:jE,shadowRootClonable:jE,shadowRootDelegatesFocus:jE,shadowRootMode:null,shape:null,size:PE,sizes:null,slot:null,span:PE,spellCheck:ME,src:null,srcDoc:null,srcLang:null,srcSet:null,start:PE,step:null,style:null,tabIndex:PE,target:null,title:null,translate:null,type:null,typeMustMatch:jE,useMap:null,value:ME,width:PE,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:FE,axis:null,background:null,bgColor:null,border:PE,borderColor:null,bottomMargin:PE,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:jE,declare:jE,event:null,face:null,frame:null,frameBorder:null,hSpace:PE,leftMargin:PE,link:null,longDesc:null,lowSrc:null,marginHeight:PE,marginWidth:PE,noResize:jE,noHref:jE,noShade:jE,noWrap:jE,object:null,profile:null,prompt:null,rev:null,rightMargin:PE,rules:null,scheme:null,scrolling:ME,standby:null,summary:null,text:null,topMargin:PE,valueType:null,version:null,vAlign:null,vLink:null,vSpace:PE,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:jE,disableRemotePlayback:jE,prefix:null,property:null,results:PE,security:null,unselectable:null},space:`html`,transform:QEe}),eDe=VE({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:LE,accentHeight:PE,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:PE,amplitude:PE,arabicForm:null,ascent:PE,attributeName:null,attributeType:null,azimuth:PE,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:PE,by:null,calcMode:null,capHeight:PE,className:FE,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:PE,diffuseConstant:PE,direction:null,display:null,dur:null,divisor:PE,dominantBaseline:null,download:jE,dx:null,dy:null,edgeMode:null,editable:null,elevation:PE,enableBackground:null,end:null,event:null,exponent:PE,externalResourcesRequired:null,fill:null,fillOpacity:PE,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:IE,g2:IE,glyphName:IE,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:PE,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:PE,horizOriginX:PE,horizOriginY:PE,id:null,ideographic:PE,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:PE,k:PE,k1:PE,k2:PE,k3:PE,k4:PE,kernelMatrix:LE,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:PE,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:PE,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:PE,overlineThickness:PE,paintOrder:null,panose1:null,path:null,pathLength:PE,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:FE,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:PE,pointsAtY:PE,pointsAtZ:PE,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:LE,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:LE,rev:LE,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:LE,requiredFeatures:LE,requiredFonts:LE,requiredFormats:LE,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:PE,specularExponent:PE,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:PE,strikethroughThickness:PE,string:null,stroke:null,strokeDashArray:LE,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:PE,strokeOpacity:PE,strokeWidth:null,style:null,surfaceScale:PE,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:LE,tabIndex:PE,tableValues:null,target:null,targetX:PE,targetY:PE,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:LE,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:PE,underlineThickness:PE,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:PE,values:null,vAlphabetic:PE,vMathematical:PE,vectorEffect:null,vHanging:PE,vIdeographic:PE,version:null,vertAdvY:PE,vertOriginX:PE,vertOriginY:PE,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:PE,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:ZEe}),tDe=VE({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),nDe=VE({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:QEe}),rDe=VE({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),iDe=/[A-Z]/g,aDe=/-[a-z]/g,oDe=/^data[-\w.:]+$/i;function sDe(e,t){let n=OE(t),r=t,i=kE;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&oDe.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(aDe,lDe);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!aDe.test(e)){let n=e.replace(iDe,cDe);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=BE}return new i(r,t)}function cDe(e){return`-`+e.toLowerCase()}function lDe(e){return e.charAt(1).toUpperCase()}const HE=qEe([XEe,$Ee,tDe,nDe,rDe],`html`),UE=qEe([XEe,eDe,tDe,nDe,rDe],`svg`);function uDe(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function dDe(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}const fDe=/[ \t\n\f\r]/g;function pDe(e){return typeof e==`object`?e.type===`text`&&mDe(e.value):mDe(e)}function mDe(e){return e.replace(fDe,``)===``}function hDe(e){return encodeURIComponent(e.toLowerCase().trim().replace(/\s+/g,`-`))}const WE=e=>e.type===`text`?e.value:e.type===`element`?e.children.map(WE).join(``):``,gDe=[[`ß`,`ss`],[`ẞ`,`Ss`],[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`À`,`A`],[`Á`,`A`],[`Â`,`A`],[`Ã`,`A`],[`Ä`,`Ae`],[`Å`,`A`],[`Æ`,`AE`],[`Ç`,`C`],[`È`,`E`],[`É`,`E`],[`Ê`,`E`],[`Ë`,`E`],[`Ì`,`I`],[`Í`,`I`],[`Î`,`I`],[`Ï`,`I`],[`Ð`,`D`],[`Ñ`,`N`],[`Ò`,`O`],[`Ó`,`O`],[`Ô`,`O`],[`Õ`,`O`],[`Ö`,`Oe`],[`Ő`,`O`],[`Ø`,`O`],[`Ù`,`U`],[`Ú`,`U`],[`Û`,`U`],[`Ü`,`Ue`],[`Ű`,`U`],[`Ý`,`Y`],[`Þ`,`TH`],[`ß`,`ss`],[`à`,`a`],[`á`,`a`],[`â`,`a`],[`ã`,`a`],[`ä`,`ae`],[`å`,`a`],[`æ`,`ae`],[`ç`,`c`],[`è`,`e`],[`é`,`e`],[`ê`,`e`],[`ë`,`e`],[`ì`,`i`],[`í`,`i`],[`î`,`i`],[`ï`,`i`],[`ð`,`d`],[`ñ`,`n`],[`ò`,`o`],[`ó`,`o`],[`ô`,`o`],[`õ`,`o`],[`ö`,`oe`],[`ő`,`o`],[`ø`,`o`],[`ù`,`u`],[`ú`,`u`],[`û`,`u`],[`ü`,`ue`],[`ű`,`u`],[`ý`,`y`],[`þ`,`th`],[`ÿ`,`y`],[`ẞ`,`SS`],[`à`,`a`],[`À`,`A`],[`á`,`a`],[`Á`,`A`],[`â`,`a`],[`Â`,`A`],[`ã`,`a`],[`Ã`,`A`],[`è`,`e`],[`È`,`E`],[`é`,`e`],[`É`,`E`],[`ê`,`e`],[`Ê`,`E`],[`ì`,`i`],[`Ì`,`I`],[`í`,`i`],[`Í`,`I`],[`ò`,`o`],[`Ò`,`O`],[`ó`,`o`],[`Ó`,`O`],[`ô`,`o`],[`Ô`,`O`],[`õ`,`o`],[`Õ`,`O`],[`ù`,`u`],[`Ù`,`U`],[`ú`,`u`],[`Ú`,`U`],[`ý`,`y`],[`Ý`,`Y`],[`ă`,`a`],[`Ă`,`A`],[`Đ`,`D`],[`đ`,`d`],[`ĩ`,`i`],[`Ĩ`,`I`],[`ũ`,`u`],[`Ũ`,`U`],[`ơ`,`o`],[`Ơ`,`O`],[`ư`,`u`],[`Ư`,`U`],[`ạ`,`a`],[`Ạ`,`A`],[`ả`,`a`],[`Ả`,`A`],[`ấ`,`a`],[`Ấ`,`A`],[`ầ`,`a`],[`Ầ`,`A`],[`ẩ`,`a`],[`Ẩ`,`A`],[`ẫ`,`a`],[`Ẫ`,`A`],[`ậ`,`a`],[`Ậ`,`A`],[`ắ`,`a`],[`Ắ`,`A`],[`ằ`,`a`],[`Ằ`,`A`],[`ẳ`,`a`],[`Ẳ`,`A`],[`ẵ`,`a`],[`Ẵ`,`A`],[`ặ`,`a`],[`Ặ`,`A`],[`ẹ`,`e`],[`Ẹ`,`E`],[`ẻ`,`e`],[`Ẻ`,`E`],[`ẽ`,`e`],[`Ẽ`,`E`],[`ế`,`e`],[`Ế`,`E`],[`ề`,`e`],[`Ề`,`E`],[`ể`,`e`],[`Ể`,`E`],[`ễ`,`e`],[`Ễ`,`E`],[`ệ`,`e`],[`Ệ`,`E`],[`ỉ`,`i`],[`Ỉ`,`I`],[`ị`,`i`],[`Ị`,`I`],[`ọ`,`o`],[`Ọ`,`O`],[`ỏ`,`o`],[`Ỏ`,`O`],[`ố`,`o`],[`Ố`,`O`],[`ồ`,`o`],[`Ồ`,`O`],[`ổ`,`o`],[`Ổ`,`O`],[`ỗ`,`o`],[`Ỗ`,`O`],[`ộ`,`o`],[`Ộ`,`O`],[`ớ`,`o`],[`Ớ`,`O`],[`ờ`,`o`],[`Ờ`,`O`],[`ở`,`o`],[`Ở`,`O`],[`ỡ`,`o`],[`Ỡ`,`O`],[`ợ`,`o`],[`Ợ`,`O`],[`ụ`,`u`],[`Ụ`,`U`],[`ủ`,`u`],[`Ủ`,`U`],[`ứ`,`u`],[`Ứ`,`U`],[`ừ`,`u`],[`Ừ`,`U`],[`ử`,`u`],[`Ử`,`U`],[`ữ`,`u`],[`Ữ`,`U`],[`ự`,`u`],[`Ự`,`U`],[`ỳ`,`y`],[`Ỳ`,`Y`],[`ỵ`,`y`],[`Ỵ`,`Y`],[`ỷ`,`y`],[`Ỷ`,`Y`],[`ỹ`,`y`],[`Ỹ`,`Y`],[`ء`,`e`],[`آ`,`a`],[`أ`,`a`],[`ؤ`,`w`],[`إ`,`i`],[`ئ`,`y`],[`ا`,`a`],[`ب`,`b`],[`ة`,`t`],[`ت`,`t`],[`ث`,`th`],[`ج`,`j`],[`ح`,`h`],[`خ`,`kh`],[`د`,`d`],[`ذ`,`dh`],[`ر`,`r`],[`ز`,`z`],[`س`,`s`],[`ش`,`sh`],[`ص`,`s`],[`ض`,`d`],[`ط`,`t`],[`ظ`,`z`],[`ع`,`e`],[`غ`,`gh`],[`ـ`,`_`],[`ف`,`f`],[`ق`,`q`],[`ك`,`k`],[`ل`,`l`],[`م`,`m`],[`ن`,`n`],[`ه`,`h`],[`و`,`w`],[`ى`,`a`],[`ي`,`y`],[`َ‎`,`a`],[`ُ`,`u`],[`ِ‎`,`i`],[`٠`,`0`],[`١`,`1`],[`٢`,`2`],[`٣`,`3`],[`٤`,`4`],[`٥`,`5`],[`٦`,`6`],[`٧`,`7`],[`٨`,`8`],[`٩`,`9`],[`چ`,`ch`],[`ک`,`k`],[`گ`,`g`],[`پ`,`p`],[`ژ`,`zh`],[`ی`,`y`],[`۰`,`0`],[`۱`,`1`],[`۲`,`2`],[`۳`,`3`],[`۴`,`4`],[`۵`,`5`],[`۶`,`6`],[`۷`,`7`],[`۸`,`8`],[`۹`,`9`],[`ټ`,`p`],[`ځ`,`z`],[`څ`,`c`],[`ډ`,`d`],[`ﺫ`,`d`],[`ﺭ`,`r`],[`ړ`,`r`],[`ﺯ`,`z`],[`ږ`,`g`],[`ښ`,`x`],[`ګ`,`g`],[`ڼ`,`n`],[`ۀ`,`e`],[`ې`,`e`],[`ۍ`,`ai`],[`ٹ`,`t`],[`ڈ`,`d`],[`ڑ`,`r`],[`ں`,`n`],[`ہ`,`h`],[`ھ`,`h`],[`ے`,`e`],[`А`,`A`],[`а`,`a`],[`Б`,`B`],[`б`,`b`],[`В`,`V`],[`в`,`v`],[`Г`,`G`],[`г`,`g`],[`Д`,`D`],[`д`,`d`],[`ъе`,`ye`],[`Ъе`,`Ye`],[`ъЕ`,`yE`],[`ЪЕ`,`YE`],[`Е`,`E`],[`е`,`e`],[`Ё`,`Yo`],[`ё`,`yo`],[`Ж`,`Zh`],[`ж`,`zh`],[`З`,`Z`],[`з`,`z`],[`И`,`I`],[`и`,`i`],[`ый`,`iy`],[`Ый`,`Iy`],[`ЫЙ`,`IY`],[`ыЙ`,`iY`],[`Й`,`Y`],[`й`,`y`],[`К`,`K`],[`к`,`k`],[`Л`,`L`],[`л`,`l`],[`М`,`M`],[`м`,`m`],[`Н`,`N`],[`н`,`n`],[`О`,`O`],[`о`,`o`],[`П`,`P`],[`п`,`p`],[`Р`,`R`],[`р`,`r`],[`С`,`S`],[`с`,`s`],[`Т`,`T`],[`т`,`t`],[`У`,`U`],[`у`,`u`],[`Ф`,`F`],[`ф`,`f`],[`Х`,`Kh`],[`х`,`kh`],[`Ц`,`Ts`],[`ц`,`ts`],[`Ч`,`Ch`],[`ч`,`ch`],[`Ш`,`Sh`],[`ш`,`sh`],[`Щ`,`Sch`],[`щ`,`sch`],[`Ъ`,``],[`ъ`,``],[`Ы`,`Y`],[`ы`,`y`],[`Ь`,``],[`ь`,``],[`Э`,`E`],[`э`,`e`],[`Ю`,`Yu`],[`ю`,`yu`],[`Я`,`Ya`],[`я`,`ya`],[`ă`,`a`],[`Ă`,`A`],[`ș`,`s`],[`Ș`,`S`],[`ț`,`t`],[`Ț`,`T`],[`ţ`,`t`],[`Ţ`,`T`],[`ş`,`s`],[`Ş`,`S`],[`ç`,`c`],[`Ç`,`C`],[`ğ`,`g`],[`Ğ`,`G`],[`ı`,`i`],[`İ`,`I`],[`ա`,`a`],[`Ա`,`A`],[`բ`,`b`],[`Բ`,`B`],[`գ`,`g`],[`Գ`,`G`],[`դ`,`d`],[`Դ`,`D`],[`ե`,`ye`],[`Ե`,`Ye`],[`զ`,`z`],[`Զ`,`Z`],[`է`,`e`],[`Է`,`E`],[`ը`,`y`],[`Ը`,`Y`],[`թ`,`t`],[`Թ`,`T`],[`ժ`,`zh`],[`Ժ`,`Zh`],[`ի`,`i`],[`Ի`,`I`],[`լ`,`l`],[`Լ`,`L`],[`խ`,`kh`],[`Խ`,`Kh`],[`ծ`,`ts`],[`Ծ`,`Ts`],[`կ`,`k`],[`Կ`,`K`],[`հ`,`h`],[`Հ`,`H`],[`ձ`,`dz`],[`Ձ`,`Dz`],[`ղ`,`gh`],[`Ղ`,`Gh`],[`ճ`,`tch`],[`Ճ`,`Tch`],[`մ`,`m`],[`Մ`,`M`],[`յ`,`y`],[`Յ`,`Y`],[`ն`,`n`],[`Ն`,`N`],[`շ`,`sh`],[`Շ`,`Sh`],[`ո`,`vo`],[`Ո`,`Vo`],[`չ`,`ch`],[`Չ`,`Ch`],[`պ`,`p`],[`Պ`,`P`],[`ջ`,`j`],[`Ջ`,`J`],[`ռ`,`r`],[`Ռ`,`R`],[`ս`,`s`],[`Ս`,`S`],[`վ`,`v`],[`Վ`,`V`],[`տ`,`t`],[`Տ`,`T`],[`ր`,`r`],[`Ր`,`R`],[`ց`,`c`],[`Ց`,`C`],[`ու`,`u`],[`ՈՒ`,`U`],[`Ու`,`U`],[`փ`,`p`],[`Փ`,`P`],[`ք`,`q`],[`Ք`,`Q`],[`օ`,`o`],[`Օ`,`O`],[`ֆ`,`f`],[`Ֆ`,`F`],[`և`,`yev`],[`ა`,`a`],[`ბ`,`b`],[`გ`,`g`],[`დ`,`d`],[`ე`,`e`],[`ვ`,`v`],[`ზ`,`z`],[`თ`,`t`],[`ი`,`i`],[`კ`,`k`],[`ლ`,`l`],[`მ`,`m`],[`ნ`,`n`],[`ო`,`o`],[`პ`,`p`],[`ჟ`,`zh`],[`რ`,`r`],[`ს`,`s`],[`ტ`,`t`],[`უ`,`u`],[`ფ`,`ph`],[`ქ`,`q`],[`ღ`,`gh`],[`ყ`,`k`],[`შ`,`sh`],[`ჩ`,`ch`],[`ც`,`ts`],[`ძ`,`dz`],[`წ`,`ts`],[`ჭ`,`tch`],[`ხ`,`kh`],[`ჯ`,`j`],[`ჰ`,`h`],[`č`,`c`],[`ď`,`d`],[`ě`,`e`],[`ň`,`n`],[`ř`,`r`],[`š`,`s`],[`ť`,`t`],[`ů`,`u`],[`ž`,`z`],[`Č`,`C`],[`Ď`,`D`],[`Ě`,`E`],[`Ň`,`N`],[`Ř`,`R`],[`Š`,`S`],[`Ť`,`T`],[`Ů`,`U`],[`Ž`,`Z`],[`ހ`,`h`],[`ށ`,`sh`],[`ނ`,`n`],[`ރ`,`r`],[`ބ`,`b`],[`ޅ`,`lh`],[`ކ`,`k`],[`އ`,`a`],[`ވ`,`v`],[`މ`,`m`],[`ފ`,`f`],[`ދ`,`dh`],[`ތ`,`th`],[`ލ`,`l`],[`ގ`,`g`],[`ޏ`,`gn`],[`ސ`,`s`],[`ޑ`,`d`],[`ޒ`,`z`],[`ޓ`,`t`],[`ޔ`,`y`],[`ޕ`,`p`],[`ޖ`,`j`],[`ޗ`,`ch`],[`ޘ`,`tt`],[`ޙ`,`hh`],[`ޚ`,`kh`],[`ޛ`,`th`],[`ޜ`,`z`],[`ޝ`,`sh`],[`ޞ`,`s`],[`ޟ`,`d`],[`ޠ`,`t`],[`ޡ`,`z`],[`ޢ`,`a`],[`ޣ`,`gh`],[`ޤ`,`q`],[`ޥ`,`w`],[`ަ`,`a`],[`ާ`,`aa`],[`ި`,`i`],[`ީ`,`ee`],[`ު`,`u`],[`ޫ`,`oo`],[`ެ`,`e`],[`ޭ`,`ey`],[`ޮ`,`o`],[`ޯ`,`oa`],[`ް`,``],[`α`,`a`],[`β`,`v`],[`γ`,`g`],[`δ`,`d`],[`ε`,`e`],[`ζ`,`z`],[`η`,`i`],[`θ`,`th`],[`ι`,`i`],[`κ`,`k`],[`λ`,`l`],[`μ`,`m`],[`ν`,`n`],[`ξ`,`ks`],[`ο`,`o`],[`π`,`p`],[`ρ`,`r`],[`σ`,`s`],[`τ`,`t`],[`υ`,`y`],[`φ`,`f`],[`χ`,`x`],[`ψ`,`ps`],[`ω`,`o`],[`ά`,`a`],[`έ`,`e`],[`ί`,`i`],[`ό`,`o`],[`ύ`,`y`],[`ή`,`i`],[`ώ`,`o`],[`ς`,`s`],[`ϊ`,`i`],[`ΰ`,`y`],[`ϋ`,`y`],[`ΐ`,`i`],[`Α`,`A`],[`Β`,`B`],[`Γ`,`G`],[`Δ`,`D`],[`Ε`,`E`],[`Ζ`,`Z`],[`Η`,`I`],[`Θ`,`TH`],[`Ι`,`I`],[`Κ`,`K`],[`Λ`,`L`],[`Μ`,`M`],[`Ν`,`N`],[`Ξ`,`KS`],[`Ο`,`O`],[`Π`,`P`],[`Ρ`,`R`],[`Σ`,`S`],[`Τ`,`T`],[`Υ`,`Y`],[`Φ`,`F`],[`Χ`,`X`],[`Ψ`,`PS`],[`Ω`,`O`],[`Ά`,`A`],[`Έ`,`E`],[`Ί`,`I`],[`Ό`,`O`],[`Ύ`,`Y`],[`Ή`,`I`],[`Ώ`,`O`],[`Ϊ`,`I`],[`Ϋ`,`Y`],[`ā`,`a`],[`ē`,`e`],[`ģ`,`g`],[`ī`,`i`],[`ķ`,`k`],[`ļ`,`l`],[`ņ`,`n`],[`ū`,`u`],[`Ā`,`A`],[`Ē`,`E`],[`Ģ`,`G`],[`Ī`,`I`],[`Ķ`,`K`],[`Ļ`,`L`],[`Ņ`,`N`],[`Ū`,`U`],[`č`,`c`],[`š`,`s`],[`ž`,`z`],[`Č`,`C`],[`Š`,`S`],[`Ž`,`Z`],[`ą`,`a`],[`č`,`c`],[`ę`,`e`],[`ė`,`e`],[`į`,`i`],[`š`,`s`],[`ų`,`u`],[`ū`,`u`],[`ž`,`z`],[`Ą`,`A`],[`Č`,`C`],[`Ę`,`E`],[`Ė`,`E`],[`Į`,`I`],[`Š`,`S`],[`Ų`,`U`],[`Ū`,`U`],[`Ќ`,`Kj`],[`ќ`,`kj`],[`Љ`,`Lj`],[`љ`,`lj`],[`Њ`,`Nj`],[`њ`,`nj`],[`Тс`,`Ts`],[`тс`,`ts`],[`ą`,`a`],[`ć`,`c`],[`ę`,`e`],[`ł`,`l`],[`ń`,`n`],[`ś`,`s`],[`ź`,`z`],[`ż`,`z`],[`Ą`,`A`],[`Ć`,`C`],[`Ę`,`E`],[`Ł`,`L`],[`Ń`,`N`],[`Ś`,`S`],[`Ź`,`Z`],[`Ż`,`Z`],[`Є`,`Ye`],[`І`,`I`],[`Ї`,`Yi`],[`Ґ`,`G`],[`є`,`ye`],[`і`,`i`],[`ї`,`yi`],[`ґ`,`g`],[`IJ`,`IJ`],[`ij`,`ij`],[`¢`,`c`],[`¥`,`Y`],[`߿`,`b`],[`৳`,`t`],[`૱`,`Bo`],[`฿`,`B`],[`₠`,`CE`],[`₡`,`C`],[`₢`,`Cr`],[`₣`,`F`],[`₥`,`m`],[`₦`,`N`],[`₧`,`Pt`],[`₨`,`Rs`],[`₩`,`W`],[`₫`,`s`],[`€`,`E`],[`₭`,`K`],[`₮`,`T`],[`₯`,`Dp`],[`₰`,`S`],[`₱`,`P`],[`₲`,`G`],[`₳`,`A`],[`₴`,`S`],[`₵`,`C`],[`₶`,`tt`],[`₷`,`S`],[`₸`,`T`],[`₹`,`R`],[`₺`,`L`],[`₽`,`P`],[`₿`,`B`],[`﹩`,`$`],[`¢`,`c`],[`¥`,`Y`],[`₩`,`W`],[`𝐀`,`A`],[`𝐁`,`B`],[`𝐂`,`C`],[`𝐃`,`D`],[`𝐄`,`E`],[`𝐅`,`F`],[`𝐆`,`G`],[`𝐇`,`H`],[`𝐈`,`I`],[`𝐉`,`J`],[`𝐊`,`K`],[`𝐋`,`L`],[`𝐌`,`M`],[`𝐍`,`N`],[`𝐎`,`O`],[`𝐏`,`P`],[`𝐐`,`Q`],[`𝐑`,`R`],[`𝐒`,`S`],[`𝐓`,`T`],[`𝐔`,`U`],[`𝐕`,`V`],[`𝐖`,`W`],[`𝐗`,`X`],[`𝐘`,`Y`],[`𝐙`,`Z`],[`𝐚`,`a`],[`𝐛`,`b`],[`𝐜`,`c`],[`𝐝`,`d`],[`𝐞`,`e`],[`𝐟`,`f`],[`𝐠`,`g`],[`𝐡`,`h`],[`𝐢`,`i`],[`𝐣`,`j`],[`𝐤`,`k`],[`𝐥`,`l`],[`𝐦`,`m`],[`𝐧`,`n`],[`𝐨`,`o`],[`𝐩`,`p`],[`𝐪`,`q`],[`𝐫`,`r`],[`𝐬`,`s`],[`𝐭`,`t`],[`𝐮`,`u`],[`𝐯`,`v`],[`𝐰`,`w`],[`𝐱`,`x`],[`𝐲`,`y`],[`𝐳`,`z`],[`𝐴`,`A`],[`𝐵`,`B`],[`𝐶`,`C`],[`𝐷`,`D`],[`𝐸`,`E`],[`𝐹`,`F`],[`𝐺`,`G`],[`𝐻`,`H`],[`𝐼`,`I`],[`𝐽`,`J`],[`𝐾`,`K`],[`𝐿`,`L`],[`𝑀`,`M`],[`𝑁`,`N`],[`𝑂`,`O`],[`𝑃`,`P`],[`𝑄`,`Q`],[`𝑅`,`R`],[`𝑆`,`S`],[`𝑇`,`T`],[`𝑈`,`U`],[`𝑉`,`V`],[`𝑊`,`W`],[`𝑋`,`X`],[`𝑌`,`Y`],[`𝑍`,`Z`],[`𝑎`,`a`],[`𝑏`,`b`],[`𝑐`,`c`],[`𝑑`,`d`],[`𝑒`,`e`],[`𝑓`,`f`],[`𝑔`,`g`],[`𝑖`,`i`],[`𝑗`,`j`],[`𝑘`,`k`],[`𝑙`,`l`],[`𝑚`,`m`],[`𝑛`,`n`],[`𝑜`,`o`],[`𝑝`,`p`],[`𝑞`,`q`],[`𝑟`,`r`],[`𝑠`,`s`],[`𝑡`,`t`],[`𝑢`,`u`],[`𝑣`,`v`],[`𝑤`,`w`],[`𝑥`,`x`],[`𝑦`,`y`],[`𝑧`,`z`],[`𝑨`,`A`],[`𝑩`,`B`],[`𝑪`,`C`],[`𝑫`,`D`],[`𝑬`,`E`],[`𝑭`,`F`],[`𝑮`,`G`],[`𝑯`,`H`],[`𝑰`,`I`],[`𝑱`,`J`],[`𝑲`,`K`],[`𝑳`,`L`],[`𝑴`,`M`],[`𝑵`,`N`],[`𝑶`,`O`],[`𝑷`,`P`],[`𝑸`,`Q`],[`𝑹`,`R`],[`𝑺`,`S`],[`𝑻`,`T`],[`𝑼`,`U`],[`𝑽`,`V`],[`𝑾`,`W`],[`𝑿`,`X`],[`𝒀`,`Y`],[`𝒁`,`Z`],[`𝒂`,`a`],[`𝒃`,`b`],[`𝒄`,`c`],[`𝒅`,`d`],[`𝒆`,`e`],[`𝒇`,`f`],[`𝒈`,`g`],[`𝒉`,`h`],[`𝒊`,`i`],[`𝒋`,`j`],[`𝒌`,`k`],[`𝒍`,`l`],[`𝒎`,`m`],[`𝒏`,`n`],[`𝒐`,`o`],[`𝒑`,`p`],[`𝒒`,`q`],[`𝒓`,`r`],[`𝒔`,`s`],[`𝒕`,`t`],[`𝒖`,`u`],[`𝒗`,`v`],[`𝒘`,`w`],[`𝒙`,`x`],[`𝒚`,`y`],[`𝒛`,`z`],[`𝒜`,`A`],[`𝒞`,`C`],[`𝒟`,`D`],[`𝒢`,`g`],[`𝒥`,`J`],[`𝒦`,`K`],[`𝒩`,`N`],[`𝒪`,`O`],[`𝒫`,`P`],[`𝒬`,`Q`],[`𝒮`,`S`],[`𝒯`,`T`],[`𝒰`,`U`],[`𝒱`,`V`],[`𝒲`,`W`],[`𝒳`,`X`],[`𝒴`,`Y`],[`𝒵`,`Z`],[`𝒶`,`a`],[`𝒷`,`b`],[`𝒸`,`c`],[`𝒹`,`d`],[`𝒻`,`f`],[`𝒽`,`h`],[`𝒾`,`i`],[`𝒿`,`j`],[`𝓀`,`h`],[`𝓁`,`l`],[`𝓂`,`m`],[`𝓃`,`n`],[`𝓅`,`p`],[`𝓆`,`q`],[`𝓇`,`r`],[`𝓈`,`s`],[`𝓉`,`t`],[`𝓊`,`u`],[`𝓋`,`v`],[`𝓌`,`w`],[`𝓍`,`x`],[`𝓎`,`y`],[`𝓏`,`z`],[`𝓐`,`A`],[`𝓑`,`B`],[`𝓒`,`C`],[`𝓓`,`D`],[`𝓔`,`E`],[`𝓕`,`F`],[`𝓖`,`G`],[`𝓗`,`H`],[`𝓘`,`I`],[`𝓙`,`J`],[`𝓚`,`K`],[`𝓛`,`L`],[`𝓜`,`M`],[`𝓝`,`N`],[`𝓞`,`O`],[`𝓟`,`P`],[`𝓠`,`Q`],[`𝓡`,`R`],[`𝓢`,`S`],[`𝓣`,`T`],[`𝓤`,`U`],[`𝓥`,`V`],[`𝓦`,`W`],[`𝓧`,`X`],[`𝓨`,`Y`],[`𝓩`,`Z`],[`𝓪`,`a`],[`𝓫`,`b`],[`𝓬`,`c`],[`𝓭`,`d`],[`𝓮`,`e`],[`𝓯`,`f`],[`𝓰`,`g`],[`𝓱`,`h`],[`𝓲`,`i`],[`𝓳`,`j`],[`𝓴`,`k`],[`𝓵`,`l`],[`𝓶`,`m`],[`𝓷`,`n`],[`𝓸`,`o`],[`𝓹`,`p`],[`𝓺`,`q`],[`𝓻`,`r`],[`𝓼`,`s`],[`𝓽`,`t`],[`𝓾`,`u`],[`𝓿`,`v`],[`𝔀`,`w`],[`𝔁`,`x`],[`𝔂`,`y`],[`𝔃`,`z`],[`𝔄`,`A`],[`𝔅`,`B`],[`𝔇`,`D`],[`𝔈`,`E`],[`𝔉`,`F`],[`𝔊`,`G`],[`𝔍`,`J`],[`𝔎`,`K`],[`𝔏`,`L`],[`𝔐`,`M`],[`𝔑`,`N`],[`𝔒`,`O`],[`𝔓`,`P`],[`𝔔`,`Q`],[`𝔖`,`S`],[`𝔗`,`T`],[`𝔘`,`U`],[`𝔙`,`V`],[`𝔚`,`W`],[`𝔛`,`X`],[`𝔜`,`Y`],[`𝔞`,`a`],[`𝔟`,`b`],[`𝔠`,`c`],[`𝔡`,`d`],[`𝔢`,`e`],[`𝔣`,`f`],[`𝔤`,`g`],[`𝔥`,`h`],[`𝔦`,`i`],[`𝔧`,`j`],[`𝔨`,`k`],[`𝔩`,`l`],[`𝔪`,`m`],[`𝔫`,`n`],[`𝔬`,`o`],[`𝔭`,`p`],[`𝔮`,`q`],[`𝔯`,`r`],[`𝔰`,`s`],[`𝔱`,`t`],[`𝔲`,`u`],[`𝔳`,`v`],[`𝔴`,`w`],[`𝔵`,`x`],[`𝔶`,`y`],[`𝔷`,`z`],[`𝔸`,`A`],[`𝔹`,`B`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`𝕆`,`N`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`],[`𝕬`,`A`],[`𝕭`,`B`],[`𝕮`,`C`],[`𝕯`,`D`],[`𝕰`,`E`],[`𝕱`,`F`],[`𝕲`,`G`],[`𝕳`,`H`],[`𝕴`,`I`],[`𝕵`,`J`],[`𝕶`,`K`],[`𝕷`,`L`],[`𝕸`,`M`],[`𝕹`,`N`],[`𝕺`,`O`],[`𝕻`,`P`],[`𝕼`,`Q`],[`𝕽`,`R`],[`𝕾`,`S`],[`𝕿`,`T`],[`𝖀`,`U`],[`𝖁`,`V`],[`𝖂`,`W`],[`𝖃`,`X`],[`𝖄`,`Y`],[`𝖅`,`Z`],[`𝖆`,`a`],[`𝖇`,`b`],[`𝖈`,`c`],[`𝖉`,`d`],[`𝖊`,`e`],[`𝖋`,`f`],[`𝖌`,`g`],[`𝖍`,`h`],[`𝖎`,`i`],[`𝖏`,`j`],[`𝖐`,`k`],[`𝖑`,`l`],[`𝖒`,`m`],[`𝖓`,`n`],[`𝖔`,`o`],[`𝖕`,`p`],[`𝖖`,`q`],[`𝖗`,`r`],[`𝖘`,`s`],[`𝖙`,`t`],[`𝖚`,`u`],[`𝖛`,`v`],[`𝖜`,`w`],[`𝖝`,`x`],[`𝖞`,`y`],[`𝖟`,`z`],[`𝖠`,`A`],[`𝖡`,`B`],[`𝖢`,`C`],[`𝖣`,`D`],[`𝖤`,`E`],[`𝖥`,`F`],[`𝖦`,`G`],[`𝖧`,`H`],[`𝖨`,`I`],[`𝖩`,`J`],[`𝖪`,`K`],[`𝖫`,`L`],[`𝖬`,`M`],[`𝖭`,`N`],[`𝖮`,`O`],[`𝖯`,`P`],[`𝖰`,`Q`],[`𝖱`,`R`],[`𝖲`,`S`],[`𝖳`,`T`],[`𝖴`,`U`],[`𝖵`,`V`],[`𝖶`,`W`],[`𝖷`,`X`],[`𝖸`,`Y`],[`𝖹`,`Z`],[`𝖺`,`a`],[`𝖻`,`b`],[`𝖼`,`c`],[`𝖽`,`d`],[`𝖾`,`e`],[`𝖿`,`f`],[`𝗀`,`g`],[`𝗁`,`h`],[`𝗂`,`i`],[`𝗃`,`j`],[`𝗄`,`k`],[`𝗅`,`l`],[`𝗆`,`m`],[`𝗇`,`n`],[`𝗈`,`o`],[`𝗉`,`p`],[`𝗊`,`q`],[`𝗋`,`r`],[`𝗌`,`s`],[`𝗍`,`t`],[`𝗎`,`u`],[`𝗏`,`v`],[`𝗐`,`w`],[`𝗑`,`x`],[`𝗒`,`y`],[`𝗓`,`z`],[`𝗔`,`A`],[`𝗕`,`B`],[`𝗖`,`C`],[`𝗗`,`D`],[`𝗘`,`E`],[`𝗙`,`F`],[`𝗚`,`G`],[`𝗛`,`H`],[`𝗜`,`I`],[`𝗝`,`J`],[`𝗞`,`K`],[`𝗟`,`L`],[`𝗠`,`M`],[`𝗡`,`N`],[`𝗢`,`O`],[`𝗣`,`P`],[`𝗤`,`Q`],[`𝗥`,`R`],[`𝗦`,`S`],[`𝗧`,`T`],[`𝗨`,`U`],[`𝗩`,`V`],[`𝗪`,`W`],[`𝗫`,`X`],[`𝗬`,`Y`],[`𝗭`,`Z`],[`𝗮`,`a`],[`𝗯`,`b`],[`𝗰`,`c`],[`𝗱`,`d`],[`𝗲`,`e`],[`𝗳`,`f`],[`𝗴`,`g`],[`𝗵`,`h`],[`𝗶`,`i`],[`𝗷`,`j`],[`𝗸`,`k`],[`𝗹`,`l`],[`𝗺`,`m`],[`𝗻`,`n`],[`𝗼`,`o`],[`𝗽`,`p`],[`𝗾`,`q`],[`𝗿`,`r`],[`𝘀`,`s`],[`𝘁`,`t`],[`𝘂`,`u`],[`𝘃`,`v`],[`𝘄`,`w`],[`𝘅`,`x`],[`𝘆`,`y`],[`𝘇`,`z`],[`𝘈`,`A`],[`𝘉`,`B`],[`𝘊`,`C`],[`𝘋`,`D`],[`𝘌`,`E`],[`𝘍`,`F`],[`𝘎`,`G`],[`𝘏`,`H`],[`𝘐`,`I`],[`𝘑`,`J`],[`𝘒`,`K`],[`𝘓`,`L`],[`𝘔`,`M`],[`𝘕`,`N`],[`𝘖`,`O`],[`𝘗`,`P`],[`𝘘`,`Q`],[`𝘙`,`R`],[`𝘚`,`S`],[`𝘛`,`T`],[`𝘜`,`U`],[`𝘝`,`V`],[`𝘞`,`W`],[`𝘟`,`X`],[`𝘠`,`Y`],[`𝘡`,`Z`],[`𝘢`,`a`],[`𝘣`,`b`],[`𝘤`,`c`],[`𝘥`,`d`],[`𝘦`,`e`],[`𝘧`,`f`],[`𝘨`,`g`],[`𝘩`,`h`],[`𝘪`,`i`],[`𝘫`,`j`],[`𝘬`,`k`],[`𝘭`,`l`],[`𝘮`,`m`],[`𝘯`,`n`],[`𝘰`,`o`],[`𝘱`,`p`],[`𝘲`,`q`],[`𝘳`,`r`],[`𝘴`,`s`],[`𝘵`,`t`],[`𝘶`,`u`],[`𝘷`,`v`],[`𝘸`,`w`],[`𝘹`,`x`],[`𝘺`,`y`],[`𝘻`,`z`],[`𝘼`,`A`],[`𝘽`,`B`],[`𝘾`,`C`],[`𝘿`,`D`],[`𝙀`,`E`],[`𝙁`,`F`],[`𝙂`,`G`],[`𝙃`,`H`],[`𝙄`,`I`],[`𝙅`,`J`],[`𝙆`,`K`],[`𝙇`,`L`],[`𝙈`,`M`],[`𝙉`,`N`],[`𝙊`,`O`],[`𝙋`,`P`],[`𝙌`,`Q`],[`𝙍`,`R`],[`𝙎`,`S`],[`𝙏`,`T`],[`𝙐`,`U`],[`𝙑`,`V`],[`𝙒`,`W`],[`𝙓`,`X`],[`𝙔`,`Y`],[`𝙕`,`Z`],[`𝙖`,`a`],[`𝙗`,`b`],[`𝙘`,`c`],[`𝙙`,`d`],[`𝙚`,`e`],[`𝙛`,`f`],[`𝙜`,`g`],[`𝙝`,`h`],[`𝙞`,`i`],[`𝙟`,`j`],[`𝙠`,`k`],[`𝙡`,`l`],[`𝙢`,`m`],[`𝙣`,`n`],[`𝙤`,`o`],[`𝙥`,`p`],[`𝙦`,`q`],[`𝙧`,`r`],[`𝙨`,`s`],[`𝙩`,`t`],[`𝙪`,`u`],[`𝙫`,`v`],[`𝙬`,`w`],[`𝙭`,`x`],[`𝙮`,`y`],[`𝙯`,`z`],[`𝙰`,`A`],[`𝙱`,`B`],[`𝙲`,`C`],[`𝙳`,`D`],[`𝙴`,`E`],[`𝙵`,`F`],[`𝙶`,`G`],[`𝙷`,`H`],[`𝙸`,`I`],[`𝙹`,`J`],[`𝙺`,`K`],[`𝙻`,`L`],[`𝙼`,`M`],[`𝙽`,`N`],[`𝙾`,`O`],[`𝙿`,`P`],[`𝚀`,`Q`],[`𝚁`,`R`],[`𝚂`,`S`],[`𝚃`,`T`],[`𝚄`,`U`],[`𝚅`,`V`],[`𝚆`,`W`],[`𝚇`,`X`],[`𝚈`,`Y`],[`𝚉`,`Z`],[`𝚊`,`a`],[`𝚋`,`b`],[`𝚌`,`c`],[`𝚍`,`d`],[`𝚎`,`e`],[`𝚏`,`f`],[`𝚐`,`g`],[`𝚑`,`h`],[`𝚒`,`i`],[`𝚓`,`j`],[`𝚔`,`k`],[`𝚕`,`l`],[`𝚖`,`m`],[`𝚗`,`n`],[`𝚘`,`o`],[`𝚙`,`p`],[`𝚚`,`q`],[`𝚛`,`r`],[`𝚜`,`s`],[`𝚝`,`t`],[`𝚞`,`u`],[`𝚟`,`v`],[`𝚠`,`w`],[`𝚡`,`x`],[`𝚢`,`y`],[`𝚣`,`z`],[`𝚤`,`l`],[`𝚥`,`j`],[`𝛢`,`A`],[`𝛣`,`B`],[`𝛤`,`G`],[`𝛥`,`D`],[`𝛦`,`E`],[`𝛧`,`Z`],[`𝛨`,`I`],[`𝛩`,`TH`],[`𝛪`,`I`],[`𝛫`,`K`],[`𝛬`,`L`],[`𝛭`,`M`],[`𝛮`,`N`],[`𝛯`,`KS`],[`𝛰`,`O`],[`𝛱`,`P`],[`𝛲`,`R`],[`𝛳`,`TH`],[`𝛴`,`S`],[`𝛵`,`T`],[`𝛶`,`Y`],[`𝛷`,`F`],[`𝛸`,`x`],[`𝛹`,`PS`],[`𝛺`,`O`],[`𝛻`,`D`],[`𝛼`,`a`],[`𝛽`,`b`],[`𝛾`,`g`],[`𝛿`,`d`],[`𝜀`,`e`],[`𝜁`,`z`],[`𝜂`,`i`],[`𝜃`,`th`],[`𝜄`,`i`],[`𝜅`,`k`],[`𝜆`,`l`],[`𝜇`,`m`],[`𝜈`,`n`],[`𝜉`,`ks`],[`𝜊`,`o`],[`𝜋`,`p`],[`𝜌`,`r`],[`𝜍`,`s`],[`𝜎`,`s`],[`𝜏`,`t`],[`𝜐`,`y`],[`𝜑`,`f`],[`𝜒`,`x`],[`𝜓`,`ps`],[`𝜔`,`o`],[`𝜕`,`d`],[`𝜖`,`E`],[`𝜗`,`TH`],[`𝜘`,`K`],[`𝜙`,`f`],[`𝜚`,`r`],[`𝜛`,`p`],[`𝜜`,`A`],[`𝜝`,`V`],[`𝜞`,`G`],[`𝜟`,`D`],[`𝜠`,`E`],[`𝜡`,`Z`],[`𝜢`,`I`],[`𝜣`,`TH`],[`𝜤`,`I`],[`𝜥`,`K`],[`𝜦`,`L`],[`𝜧`,`M`],[`𝜨`,`N`],[`𝜩`,`KS`],[`𝜪`,`O`],[`𝜫`,`P`],[`𝜬`,`S`],[`𝜭`,`TH`],[`𝜮`,`S`],[`𝜯`,`T`],[`𝜰`,`Y`],[`𝜱`,`F`],[`𝜲`,`X`],[`𝜳`,`PS`],[`𝜴`,`O`],[`𝜵`,`D`],[`𝜶`,`a`],[`𝜷`,`v`],[`𝜸`,`g`],[`𝜹`,`d`],[`𝜺`,`e`],[`𝜻`,`z`],[`𝜼`,`i`],[`𝜽`,`th`],[`𝜾`,`i`],[`𝜿`,`k`],[`𝝀`,`l`],[`𝝁`,`m`],[`𝝂`,`n`],[`𝝃`,`ks`],[`𝝄`,`o`],[`𝝅`,`p`],[`𝝆`,`r`],[`𝝇`,`s`],[`𝝈`,`s`],[`𝝉`,`t`],[`𝝊`,`y`],[`𝝋`,`f`],[`𝝌`,`x`],[`𝝍`,`ps`],[`𝝎`,`o`],[`𝝏`,`a`],[`𝝐`,`e`],[`𝝑`,`i`],[`𝝒`,`k`],[`𝝓`,`f`],[`𝝔`,`r`],[`𝝕`,`p`],[`𝝖`,`A`],[`𝝗`,`B`],[`𝝘`,`G`],[`𝝙`,`D`],[`𝝚`,`E`],[`𝝛`,`Z`],[`𝝜`,`I`],[`𝝝`,`TH`],[`𝝞`,`I`],[`𝝟`,`K`],[`𝝠`,`L`],[`𝝡`,`M`],[`𝝢`,`N`],[`𝝣`,`KS`],[`𝝤`,`O`],[`𝝥`,`P`],[`𝝦`,`R`],[`𝝧`,`TH`],[`𝝨`,`S`],[`𝝩`,`T`],[`𝝪`,`Y`],[`𝝫`,`F`],[`𝝬`,`X`],[`𝝭`,`PS`],[`𝝮`,`O`],[`𝝯`,`D`],[`𝝰`,`a`],[`𝝱`,`v`],[`𝝲`,`g`],[`𝝳`,`d`],[`𝝴`,`e`],[`𝝵`,`z`],[`𝝶`,`i`],[`𝝷`,`th`],[`𝝸`,`i`],[`𝝹`,`k`],[`𝝺`,`l`],[`𝝻`,`m`],[`𝝼`,`n`],[`𝝽`,`ks`],[`𝝾`,`o`],[`𝝿`,`p`],[`𝞀`,`r`],[`𝞁`,`s`],[`𝞂`,`s`],[`𝞃`,`t`],[`𝞄`,`y`],[`𝞅`,`f`],[`𝞆`,`x`],[`𝞇`,`ps`],[`𝞈`,`o`],[`𝞉`,`a`],[`𝞊`,`e`],[`𝞋`,`i`],[`𝞌`,`k`],[`𝞍`,`f`],[`𝞎`,`r`],[`𝞏`,`p`],[`𝞐`,`A`],[`𝞑`,`V`],[`𝞒`,`G`],[`𝞓`,`D`],[`𝞔`,`E`],[`𝞕`,`Z`],[`𝞖`,`I`],[`𝞗`,`TH`],[`𝞘`,`I`],[`𝞙`,`K`],[`𝞚`,`L`],[`𝞛`,`M`],[`𝞜`,`N`],[`𝞝`,`KS`],[`𝞞`,`O`],[`𝞟`,`P`],[`𝞠`,`S`],[`𝞡`,`TH`],[`𝞢`,`S`],[`𝞣`,`T`],[`𝞤`,`Y`],[`𝞥`,`F`],[`𝞦`,`X`],[`𝞧`,`PS`],[`𝞨`,`O`],[`𝞩`,`D`],[`𝞪`,`av`],[`𝞫`,`g`],[`𝞬`,`d`],[`𝞭`,`e`],[`𝞮`,`z`],[`𝞯`,`i`],[`𝞰`,`i`],[`𝞱`,`th`],[`𝞲`,`i`],[`𝞳`,`k`],[`𝞴`,`l`],[`𝞵`,`m`],[`𝞶`,`n`],[`𝞷`,`ks`],[`𝞸`,`o`],[`𝞹`,`p`],[`𝞺`,`r`],[`𝞻`,`s`],[`𝞼`,`s`],[`𝞽`,`t`],[`𝞾`,`y`],[`𝞿`,`f`],[`𝟀`,`x`],[`𝟁`,`ps`],[`𝟂`,`o`],[`𝟃`,`a`],[`𝟄`,`e`],[`𝟅`,`i`],[`𝟆`,`k`],[`𝟇`,`f`],[`𝟈`,`r`],[`𝟉`,`p`],[`𝟊`,`F`],[`𝟋`,`f`],[`⒜`,`(a)`],[`⒝`,`(b)`],[`⒞`,`(c)`],[`⒟`,`(d)`],[`⒠`,`(e)`],[`⒡`,`(f)`],[`⒢`,`(g)`],[`⒣`,`(h)`],[`⒤`,`(i)`],[`⒥`,`(j)`],[`⒦`,`(k)`],[`⒧`,`(l)`],[`⒨`,`(m)`],[`⒩`,`(n)`],[`⒪`,`(o)`],[`⒫`,`(p)`],[`⒬`,`(q)`],[`⒭`,`(r)`],[`⒮`,`(s)`],[`⒯`,`(t)`],[`⒰`,`(u)`],[`⒱`,`(v)`],[`⒲`,`(w)`],[`⒳`,`(x)`],[`⒴`,`(y)`],[`⒵`,`(z)`],[`Ⓐ`,`(A)`],[`Ⓑ`,`(B)`],[`Ⓒ`,`(C)`],[`Ⓓ`,`(D)`],[`Ⓔ`,`(E)`],[`Ⓕ`,`(F)`],[`Ⓖ`,`(G)`],[`Ⓗ`,`(H)`],[`Ⓘ`,`(I)`],[`Ⓙ`,`(J)`],[`Ⓚ`,`(K)`],[`Ⓛ`,`(L)`],[`Ⓝ`,`(N)`],[`Ⓞ`,`(O)`],[`Ⓟ`,`(P)`],[`Ⓠ`,`(Q)`],[`Ⓡ`,`(R)`],[`Ⓢ`,`(S)`],[`Ⓣ`,`(T)`],[`Ⓤ`,`(U)`],[`Ⓥ`,`(V)`],[`Ⓦ`,`(W)`],[`Ⓧ`,`(X)`],[`Ⓨ`,`(Y)`],[`Ⓩ`,`(Z)`],[`ⓐ`,`(a)`],[`ⓑ`,`(b)`],[`ⓒ`,`(b)`],[`ⓓ`,`(c)`],[`ⓔ`,`(e)`],[`ⓕ`,`(f)`],[`ⓖ`,`(g)`],[`ⓗ`,`(h)`],[`ⓘ`,`(i)`],[`ⓙ`,`(j)`],[`ⓚ`,`(k)`],[`ⓛ`,`(l)`],[`ⓜ`,`(m)`],[`ⓝ`,`(n)`],[`ⓞ`,`(o)`],[`ⓟ`,`(p)`],[`ⓠ`,`(q)`],[`ⓡ`,`(r)`],[`ⓢ`,`(s)`],[`ⓣ`,`(t)`],[`ⓤ`,`(u)`],[`ⓥ`,`(v)`],[`ⓦ`,`(w)`],[`ⓧ`,`(x)`],[`ⓨ`,`(y)`],[`ⓩ`,`(z)`],[`Ċ`,`C`],[`ċ`,`c`],[`Ġ`,`G`],[`ġ`,`g`],[`Ħ`,`H`],[`ħ`,`h`],[`Ż`,`Z`],[`ż`,`z`],[`𝟎`,`0`],[`𝟏`,`1`],[`𝟐`,`2`],[`𝟑`,`3`],[`𝟒`,`4`],[`𝟓`,`5`],[`𝟔`,`6`],[`𝟕`,`7`],[`𝟖`,`8`],[`𝟗`,`9`],[`𝟘`,`0`],[`𝟙`,`1`],[`𝟚`,`2`],[`𝟛`,`3`],[`𝟜`,`4`],[`𝟝`,`5`],[`𝟞`,`6`],[`𝟟`,`7`],[`𝟠`,`8`],[`𝟡`,`9`],[`𝟢`,`0`],[`𝟣`,`1`],[`𝟤`,`2`],[`𝟥`,`3`],[`𝟦`,`4`],[`𝟧`,`5`],[`𝟨`,`6`],[`𝟩`,`7`],[`𝟪`,`8`],[`𝟫`,`9`],[`𝟬`,`0`],[`𝟭`,`1`],[`𝟮`,`2`],[`𝟯`,`3`],[`𝟰`,`4`],[`𝟱`,`5`],[`𝟲`,`6`],[`𝟳`,`7`],[`𝟴`,`8`],[`𝟵`,`9`],[`𝟶`,`0`],[`𝟷`,`1`],[`𝟸`,`2`],[`𝟹`,`3`],[`𝟺`,`4`],[`𝟻`,`5`],[`𝟼`,`6`],[`𝟽`,`7`],[`𝟾`,`8`],[`𝟿`,`9`],[`①`,`1`],[`②`,`2`],[`③`,`3`],[`④`,`4`],[`⑤`,`5`],[`⑥`,`6`],[`⑦`,`7`],[`⑧`,`8`],[`⑨`,`9`],[`⑩`,`10`],[`⑪`,`11`],[`⑫`,`12`],[`⑬`,`13`],[`⑭`,`14`],[`⑮`,`15`],[`⑯`,`16`],[`⑰`,`17`],[`⑱`,`18`],[`⑲`,`19`],[`⑳`,`20`],[`⑴`,`1`],[`⑵`,`2`],[`⑶`,`3`],[`⑷`,`4`],[`⑸`,`5`],[`⑹`,`6`],[`⑺`,`7`],[`⑻`,`8`],[`⑼`,`9`],[`⑽`,`10`],[`⑾`,`11`],[`⑿`,`12`],[`⒀`,`13`],[`⒁`,`14`],[`⒂`,`15`],[`⒃`,`16`],[`⒄`,`17`],[`⒅`,`18`],[`⒆`,`19`],[`⒇`,`20`],[`⒈`,`1.`],[`⒉`,`2.`],[`⒊`,`3.`],[`⒋`,`4.`],[`⒌`,`5.`],[`⒍`,`6.`],[`⒎`,`7.`],[`⒏`,`8.`],[`⒐`,`9.`],[`⒑`,`10.`],[`⒒`,`11.`],[`⒓`,`12.`],[`⒔`,`13.`],[`⒕`,`14.`],[`⒖`,`15.`],[`⒗`,`16.`],[`⒘`,`17.`],[`⒙`,`18.`],[`⒚`,`19.`],[`⒛`,`20.`],[`⓪`,`0`],[`⓫`,`11`],[`⓬`,`12`],[`⓭`,`13`],[`⓮`,`14`],[`⓯`,`15`],[`⓰`,`16`],[`⓱`,`17`],[`⓲`,`18`],[`⓳`,`19`],[`⓴`,`20`],[`⓵`,`1`],[`⓶`,`2`],[`⓷`,`3`],[`⓸`,`4`],[`⓹`,`5`],[`⓺`,`6`],[`⓻`,`7`],[`⓼`,`8`],[`⓽`,`9`],[`⓾`,`10`],[`⓿`,`0`],[`🙰`,`&`],[`🙱`,`&`],[`🙲`,`&`],[`🙳`,`&`],[`🙴`,`&`],[`🙵`,`&`],[`🙶`,`"`],[`🙷`,`"`],[`🙸`,`"`],[`‽`,`?!`],[`🙹`,`?!`],[`🙺`,`?!`],[`🙻`,`?!`],[`🙼`,`/`],[`🙽`,`\\`],[`🜇`,`AR`],[`🜈`,`V`],[`🜉`,`V`],[`🜆`,`VR`],[`🜅`,`VF`],[`🜩`,`2`],[`🜪`,`5`],[`🝡`,`f`],[`🝢`,`W`],[`🝣`,`U`],[`🝧`,`V`],[`🝨`,`T`],[`🝪`,`V`],[`🝫`,`MB`],[`🝬`,`VB`],[`🝲`,`3B`],[`🝳`,`3B`],[`💯`,`100`],[`🔙`,`BACK`],[`🔚`,`END`],[`🔛`,`ON!`],[`🔜`,`SOON`],[`🔝`,`TOP`],[`🔞`,`18`],[`🔤`,`abc`],[`🔠`,`ABCD`],[`🔡`,`abcd`],[`🔢`,`1234`],[`🔣`,`T&@%`],[`#️⃣`,`#`],[`*️⃣`,`*`],[`0️⃣`,`0`],[`1️⃣`,`1`],[`2️⃣`,`2`],[`3️⃣`,`3`],[`4️⃣`,`4`],[`5️⃣`,`5`],[`6️⃣`,`6`],[`7️⃣`,`7`],[`8️⃣`,`8`],[`9️⃣`,`9`],[`🔟`,`10`],[`🅰️`,`A`],[`🅱️`,`B`],[`🆎`,`AB`],[`🆑`,`CL`],[`🅾️`,`O`],[`🅿`,`P`],[`🆘`,`SOS`],[`🅲`,`C`],[`🅳`,`D`],[`🅴`,`E`],[`🅵`,`F`],[`🅶`,`G`],[`🅷`,`H`],[`🅸`,`I`],[`🅹`,`J`],[`🅺`,`K`],[`🅻`,`L`],[`🅼`,`M`],[`🅽`,`N`],[`🆀`,`Q`],[`🆁`,`R`],[`🆂`,`S`],[`🆃`,`T`],[`🆄`,`U`],[`🆅`,`V`],[`🆆`,`W`],[`🆇`,`X`],[`🆈`,`Y`],[`🆉`,`Z`]],_De=(e,t)=>{for(let[n,r]of t)e.includes(n)&&(e=e.replace(new RegExp(Re(n),`g`),r));return e},GE=e=>/^[\u0000-\u007F]*$/.test(e),KE=/* @__PURE__ */ new Map,vDe=e=>{let t=JSON.stringify([...e]),n=KE.get(t);if(!n){let r=[...new Map([...gDe,...e])],i=r.filter(([e])=>GE(e));n={all:r,ascii:i.every(([,e])=>GE(e))?i:void 0},KE.size>=100&&KE.clear(),KE.set(t,n)}return n};function yDe(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let{all:n,ascii:r}=vDe(t.customReplacements);return e=e.normalize(),e=_De(e,r&&GE(e)?r:n),e=e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).normalize(),e}const bDe=[[`&`,` and `],[`🦄`,` unicorn `],[`♥`,` love `]],xDe=e=>e.replace(/([A-Z]{2,})(\d+)/g,`$1 $2`).replace(/([a-z\d]+)([A-Z]{2,})/g,`$1 $2`).replace(/([a-z\d])([A-Z])/g,`$1 $2`).replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,`$1 $2`),SDe=(e,t)=>{let n=Re(t);return e.replace(RegExp(`${n}{2,}`,`g`),t).replace(RegExp(`^${n}|${n}$`,`g`),``)},CDe=e=>{let t=`a-z\\d`;if(t+=e.lowercase?``:`A-Z`,e.preserveCharacters.length>0)for(let n of e.preserveCharacters){if(n===e.separator)throw Error(`The separator character \`${e.separator}\` cannot be included in preserved characters: ${e.preserveCharacters}`);t+=Re(n)}return RegExp(`[^${t}]+`,`g`)};function wDe(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={separator:`-`,lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...t};let n=t.preserveLeadingUnderscore&&e.startsWith(`_`),r=t.preserveTrailingDash&&e.endsWith(`-`),i=new Map([...bDe,...t.customReplacements]);e=yDe(e,{customReplacements:i}),t.decamelize&&(e=xDe(e));let a=CDe(t);return t.lowercase&&(e=e.toLowerCase()),e=e.replace(a,t.separator),e=e.replace(/\\/g,``),e=e.replace(/([a-zA-Z\d]+)-([ts])(-|$)/g,`$1$2$3`),t.separator&&(e=SDe(e,t.separator)),n&&(e=`_${e}`),r&&(e=`${e}-`),e}const qE=e=>decodeURIComponent(typeof e==`string`?e.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`):e).replace(/[?,;:!'"()[\]{}]/g,``).replace(/\p{Emoji_Modifier}|\p{Emoji_Modifier_Base}|\p{Emoji_Presentation}|\p{Extended_Pictographic}|[\u200D\uFE0E\uFE0F]/gu,``),JE=e=>{try{return qE(e)}catch{return e}},YE=/* @__PURE__ */ new Map;function XE(e,t){let n=`${JSON.stringify(t??null)}\u0000${e}`,r=YE.get(n);if(r!==void 0)return r;let i=wDe(e,t);return YE.size>=2e4&&YE.clear(),YE.set(n,i),i}function ZE(){let e=/* @__PURE__ */ new Map,t=(t,n)=>{if(t=XE(t,n),!t)return``;let r=t.toLowerCase(),i=e.get(r.replace(/(?:-\d+?)+?$/,``))||0,a=e.get(r);e.set(r,typeof a==`number`?a+1:1);let o=e.get(r)||2;return(o>=2||i>2)&&(t=`${t}-${o}`),t};return t.reset=()=>{e.clear()},t}function QE(e,t=ZE()){let n=hDe(e);return/%[0-9A-F]{2}/.test(n)?t(n,{decamelize:!1,preserveCharacters:[`%`,`_`],lowercase:!1}):t(n,{decamelize:!1,preserveCharacters:[`_`]})}function TDe(e,t){return XE(`param-${e}${t>0?`_${t}`:``}`,{decamelize:!0,separator:`-`})}const EDe=/[#.]/g;function DDe(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){EDe.lastIndex=i;let e=EDe.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}const ODe=/* @__PURE__ */ new Set([`button`,`menu`,`reset`,`submit`]),$E={}.hasOwnProperty;function kDe(e,t,n){let r=n&&PDe(n);function i(n,i,...a){let o=-1,s;if(n==null){s={type:`root`,children:[]};let e=i;a.unshift(e)}else if(s=DDe(n,t),s.tagName=s.tagName.toLowerCase(),r&&$E.call(r,s.tagName)&&(s.tagName=r[s.tagName]),ADe(i,s.tagName)){let t;for(t in i)$E.call(i,t)&&jDe(e,s.properties,t,i[t])}else a.unshift(i);for(;++o<a.length;)eD(s.children,a[o]);return s.type===`element`&&s.tagName===`template`&&(s.content={type:`root`,children:s.children},s.children=[]),s}return i}function ADe(e,t){return typeof e!=`object`||!e||Array.isArray(e)?!1:t===`input`||!e.type||typeof e.type!=`string`?!0:`children`in e&&Array.isArray(e.children)?!1:t===`button`?ODe.has(e.type.toLowerCase()):!(`value`in e)}function jDe(e,t,n,r){let i=sDe(e,n),a=-1,o;if(r!=null){if(typeof r==`number`){if(Number.isNaN(r))return;o=r}else o=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?dDe(r):i.commaSeparated?uDe(r):i.commaOrSpaceSeparated?dDe(uDe(r).join(` `)):MDe(i,i.property,r):Array.isArray(r)?r.concat():i.property===`style`?NDe(r):String(r);if(Array.isArray(o)){let e=[];for(;++a<o.length;){let t=MDe(i,i.property,o[a]);e[a]=t}o=e}if(i.property===`className`&&Array.isArray(t.className)){let e=o;o=t.className.concat(e)}t[i.property]=o}}function eD(e,t){let n=-1;if(t!=null){if(typeof t==`string`||typeof t==`number`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)eD(e,t[n]);else if(typeof t==`object`&&`type`in t)t.type===`root`?eD(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}}function MDe(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||OE(n)===OE(t)))return!0}return n}function NDe(e){let t=[],n;for(n in e)$E.call(e,n)&&t.push([n,e[n]].join(`: `));return t.join(`; `)}function PDe(e){let t={},n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const FDe=/* @__PURE__ */ `altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath`.split(`.`),IDe=kDe(HE,`div`),LDe=kDe(UE,`g`,FDe),tD=/\r?\n|\r/g;function RDe(e){let t=String(e),n=[];for(tD.lastIndex=0;tD.test(t);)n.push(tD.lastIndex);return n.push(t.length+1),{toPoint:r,toOffset:i};function r(e){let t=-1;if(typeof e==`number`&&e>-1&&e<n[n.length-1]){for(;++t<n.length;)if(n[t]>e)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}}}function i(e){let t=e&&e.line,r=e&&e.column;if(typeof t==`number`&&typeof r==`number`&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){let e=(n[t-2]||0)+r-1||0;if(e>-1&&e<n[n.length-1])return e}}}const zDe={html:`http://www.w3.org/1999/xhtml`,mathml:`http://www.w3.org/1998/Math/MathML`,svg:`http://www.w3.org/2000/svg`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`},BDe={}.hasOwnProperty,VDe=Object.prototype;function HDe(e,t){let n=t||{};return nD({file:n.file||void 0,location:!1,schema:n.space===`svg`?UE:HE,verbose:n.verbose||!1},e)}function nD(e,t){let n;switch(t.nodeName){case`#comment`:{let r=t;return n={type:`comment`,value:r.data},rD(e,r,n),n}case`#document`:case`#document-fragment`:{let r=t,i=`mode`in r?r.mode===`quirks`||r.mode===`limited-quirks`:!1;if(n={type:`root`,children:UDe(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){let t=String(e.file),r=RDe(t),i=r.toPoint(0),a=r.toPoint(t.length);n.position={start:i,end:a}}return n}case`#documentType`:{let r=t;return n={type:`doctype`},rD(e,r,n),n}case`#text`:{let r=t;return n={type:`text`,value:r.value},rD(e,r,n),n}default:return n=WDe(e,t),n}}function UDe(e,t){let n=-1,r=[];for(;++n<t.length;){let i=nD(e,t[n]);r.push(i)}return r}function WDe(e,t){let n=e.schema;e.schema=t.namespaceURI===zDe.svg?UE:HE;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+`:`:``)+e.name;BDe.call(VDe,n)||(i[n]=e.value)}let a=(e.schema.space===`svg`?LDe:IDe)(t.tagName,i,UDe(e,t.childNodes));if(rD(e,t,a),a.tagName===`template`){let n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&iD(r.startTag),o=r&&r.endTag&&iD(r.endTag),s=nD(e,n.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=n,a}function rD(e,t,n){if(`sourceCodeLocation`in t&&t.sourceCodeLocation&&e.file){let r=GDe(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function GDe(e,t,n){let r=iD(n);if(t.type===`element`){let i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){let r={},i;if(n.attrs)for(i in n.attrs)BDe.call(n.attrs,i)&&(r[sDe(e.schema,i).property]=iD(n.attrs[i]));n.startTag;let a=iD(n.startTag),o=n.endTag?iD(n.endTag):void 0,s={opening:a};o&&(s.closing=o),s.properties=r,t.data={position:s}}}return r}function iD(e){let t=KDe({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=KDe({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function KDe(e){return e.line&&e.column?e:void 0}const qDe=/* @__PURE__ */ new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);var Y;(function(e){e[e.EOF=-1]=`EOF`,e[e.NULL=0]=`NULL`,e[e.TABULATION=9]=`TABULATION`,e[e.CARRIAGE_RETURN=13]=`CARRIAGE_RETURN`,e[e.LINE_FEED=10]=`LINE_FEED`,e[e.FORM_FEED=12]=`FORM_FEED`,e[e.SPACE=32]=`SPACE`,e[e.EXCLAMATION_MARK=33]=`EXCLAMATION_MARK`,e[e.QUOTATION_MARK=34]=`QUOTATION_MARK`,e[e.NUMBER_SIGN=35]=`NUMBER_SIGN`,e[e.AMPERSAND=38]=`AMPERSAND`,e[e.APOSTROPHE=39]=`APOSTROPHE`,e[e.HYPHEN_MINUS=45]=`HYPHEN_MINUS`,e[e.SOLIDUS=47]=`SOLIDUS`,e[e.DIGIT_0=48]=`DIGIT_0`,e[e.DIGIT_9=57]=`DIGIT_9`,e[e.SEMICOLON=59]=`SEMICOLON`,e[e.LESS_THAN_SIGN=60]=`LESS_THAN_SIGN`,e[e.EQUALS_SIGN=61]=`EQUALS_SIGN`,e[e.GREATER_THAN_SIGN=62]=`GREATER_THAN_SIGN`,e[e.QUESTION_MARK=63]=`QUESTION_MARK`,e[e.LATIN_CAPITAL_A=65]=`LATIN_CAPITAL_A`,e[e.LATIN_CAPITAL_F=70]=`LATIN_CAPITAL_F`,e[e.LATIN_CAPITAL_X=88]=`LATIN_CAPITAL_X`,e[e.LATIN_CAPITAL_Z=90]=`LATIN_CAPITAL_Z`,e[e.RIGHT_SQUARE_BRACKET=93]=`RIGHT_SQUARE_BRACKET`,e[e.GRAVE_ACCENT=96]=`GRAVE_ACCENT`,e[e.LATIN_SMALL_A=97]=`LATIN_SMALL_A`,e[e.LATIN_SMALL_F=102]=`LATIN_SMALL_F`,e[e.LATIN_SMALL_X=120]=`LATIN_SMALL_X`,e[e.LATIN_SMALL_Z=122]=`LATIN_SMALL_Z`,e[e.REPLACEMENT_CHARACTER=65533]=`REPLACEMENT_CHARACTER`})(Y=Y||={});const aD={DASH_DASH:`--`,CDATA_START:`[CDATA[`,DOCTYPE:`doctype`,SCRIPT:`script`,PUBLIC:`public`,SYSTEM:`system`};function JDe(e){return e>=55296&&e<=57343}function YDe(e){return e>=56320&&e<=57343}function XDe(e,t){return(e-55296)*1024+9216+t}function ZDe(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function QDe(e){return e>=64976&&e<=65007||qDe.has(e)}var oD;(function(e){e.controlCharacterInInputStream=`control-character-in-input-stream`,e.noncharacterInInputStream=`noncharacter-in-input-stream`,e.surrogateInInputStream=`surrogate-in-input-stream`,e.nonVoidHtmlElementStartTagWithTrailingSolidus=`non-void-html-element-start-tag-with-trailing-solidus`,e.endTagWithAttributes=`end-tag-with-attributes`,e.endTagWithTrailingSolidus=`end-tag-with-trailing-solidus`,e.unexpectedSolidusInTag=`unexpected-solidus-in-tag`,e.unexpectedNullCharacter=`unexpected-null-character`,e.unexpectedQuestionMarkInsteadOfTagName=`unexpected-question-mark-instead-of-tag-name`,e.invalidFirstCharacterOfTagName=`invalid-first-character-of-tag-name`,e.unexpectedEqualsSignBeforeAttributeName=`unexpected-equals-sign-before-attribute-name`,e.missingEndTagName=`missing-end-tag-name`,e.unexpectedCharacterInAttributeName=`unexpected-character-in-attribute-name`,e.unknownNamedCharacterReference=`unknown-named-character-reference`,e.missingSemicolonAfterCharacterReference=`missing-semicolon-after-character-reference`,e.unexpectedCharacterAfterDoctypeSystemIdentifier=`unexpected-character-after-doctype-system-identifier`,e.unexpectedCharacterInUnquotedAttributeValue=`unexpected-character-in-unquoted-attribute-value`,e.eofBeforeTagName=`eof-before-tag-name`,e.eofInTag=`eof-in-tag`,e.missingAttributeValue=`missing-attribute-value`,e.missingWhitespaceBetweenAttributes=`missing-whitespace-between-attributes`,e.missingWhitespaceAfterDoctypePublicKeyword=`missing-whitespace-after-doctype-public-keyword`,e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers=`missing-whitespace-between-doctype-public-and-system-identifiers`,e.missingWhitespaceAfterDoctypeSystemKeyword=`missing-whitespace-after-doctype-system-keyword`,e.missingQuoteBeforeDoctypePublicIdentifier=`missing-quote-before-doctype-public-identifier`,e.missingQuoteBeforeDoctypeSystemIdentifier=`missing-quote-before-doctype-system-identifier`,e.missingDoctypePublicIdentifier=`missing-doctype-public-identifier`,e.missingDoctypeSystemIdentifier=`missing-doctype-system-identifier`,e.abruptDoctypePublicIdentifier=`abrupt-doctype-public-identifier`,e.abruptDoctypeSystemIdentifier=`abrupt-doctype-system-identifier`,e.cdataInHtmlContent=`cdata-in-html-content`,e.incorrectlyOpenedComment=`incorrectly-opened-comment`,e.eofInScriptHtmlCommentLikeText=`eof-in-script-html-comment-like-text`,e.eofInDoctype=`eof-in-doctype`,e.nestedComment=`nested-comment`,e.abruptClosingOfEmptyComment=`abrupt-closing-of-empty-comment`,e.eofInComment=`eof-in-comment`,e.incorrectlyClosedComment=`incorrectly-closed-comment`,e.eofInCdata=`eof-in-cdata`,e.absenceOfDigitsInNumericCharacterReference=`absence-of-digits-in-numeric-character-reference`,e.nullCharacterReference=`null-character-reference`,e.surrogateCharacterReference=`surrogate-character-reference`,e.characterReferenceOutsideUnicodeRange=`character-reference-outside-unicode-range`,e.controlCharacterReference=`control-character-reference`,e.noncharacterCharacterReference=`noncharacter-character-reference`,e.missingWhitespaceBeforeDoctypeName=`missing-whitespace-before-doctype-name`,e.missingDoctypeName=`missing-doctype-name`,e.invalidCharacterSequenceAfterDoctypeName=`invalid-character-sequence-after-doctype-name`,e.duplicateAttribute=`duplicate-attribute`,e.nonConformingDoctype=`non-conforming-doctype`,e.missingDoctype=`missing-doctype`,e.misplacedDoctype=`misplaced-doctype`,e.endTagWithoutMatchingOpenElement=`end-tag-without-matching-open-element`,e.closingOfElementWithOpenChildElements=`closing-of-element-with-open-child-elements`,e.disallowedContentInNoscriptInHead=`disallowed-content-in-noscript-in-head`,e.openElementsLeftAfterEof=`open-elements-left-after-eof`,e.abandonedHeadElementChild=`abandoned-head-element-child`,e.misplacedStartTagForHeadElement=`misplaced-start-tag-for-head-element`,e.nestedNoscriptInHead=`nested-noscript-in-head`,e.eofInElementThatCanContainOnlyText=`eof-in-element-that-can-contain-only-text`})(oD=oD||={});var $De=class{constructor(e){this.handler=e,this.html=``,this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){let{line:t,col:n,offset:r}=this;return{code:e,startLine:t,endLine:t,startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(YDe(t))return this.pos++,this._addGap(),XDe(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Y.EOF;return this._err(oD.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((this.html.charCodeAt(this.pos+t)|32)!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Y.EOF;let n=this.html.charCodeAt(t);return n===Y.CARRIAGE_RETURN?Y.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Y.EOF;let e=this.html.charCodeAt(this.pos);return e===Y.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Y.LINE_FEED):e===Y.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,JDe(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===Y.LINE_FEED||e===Y.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){ZDe(e)?this._err(oD.controlCharacterInInputStream):QDe(e)&&this._err(oD.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}},sD;(function(e){e[e.CHARACTER=0]=`CHARACTER`,e[e.NULL_CHARACTER=1]=`NULL_CHARACTER`,e[e.WHITESPACE_CHARACTER=2]=`WHITESPACE_CHARACTER`,e[e.START_TAG=3]=`START_TAG`,e[e.END_TAG=4]=`END_TAG`,e[e.COMMENT=5]=`COMMENT`,e[e.DOCTYPE=6]=`DOCTYPE`,e[e.EOF=7]=`EOF`,e[e.HIBERNATION=8]=`HIBERNATION`})(sD=sD||={});function eOe(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var cD=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0)));new Uint16Array(`Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢`.split(``).map(e=>e.charCodeAt(0))),String.fromCodePoint;var tOe;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.To_LOWER_BIT=32]=`To_LOWER_BIT`})(tOe||={});var lD;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(lD||={});function nOe(e,t,n,r){let i=(t&lD.BRANCH_LENGTH)>>7,a=t&lD.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}var uD;(function(e){e.HTML=`http://www.w3.org/1999/xhtml`,e.MATHML=`http://www.w3.org/1998/Math/MathML`,e.SVG=`http://www.w3.org/2000/svg`,e.XLINK=`http://www.w3.org/1999/xlink`,e.XML=`http://www.w3.org/XML/1998/namespace`,e.XMLNS=`http://www.w3.org/2000/xmlns/`})(uD=uD||={});var dD;(function(e){e.TYPE=`type`,e.ACTION=`action`,e.ENCODING=`encoding`,e.PROMPT=`prompt`,e.NAME=`name`,e.COLOR=`color`,e.FACE=`face`,e.SIZE=`size`})(dD=dD||={});var fD;(function(e){e.NO_QUIRKS=`no-quirks`,e.QUIRKS=`quirks`,e.LIMITED_QUIRKS=`limited-quirks`})(fD=fD||={});var pD;(function(e){e.A=`a`,e.ADDRESS=`address`,e.ANNOTATION_XML=`annotation-xml`,e.APPLET=`applet`,e.AREA=`area`,e.ARTICLE=`article`,e.ASIDE=`aside`,e.B=`b`,e.BASE=`base`,e.BASEFONT=`basefont`,e.BGSOUND=`bgsound`,e.BIG=`big`,e.BLOCKQUOTE=`blockquote`,e.BODY=`body`,e.BR=`br`,e.BUTTON=`button`,e.CAPTION=`caption`,e.CENTER=`center`,e.CODE=`code`,e.COL=`col`,e.COLGROUP=`colgroup`,e.DD=`dd`,e.DESC=`desc`,e.DETAILS=`details`,e.DIALOG=`dialog`,e.DIR=`dir`,e.DIV=`div`,e.DL=`dl`,e.DT=`dt`,e.EM=`em`,e.EMBED=`embed`,e.FIELDSET=`fieldset`,e.FIGCAPTION=`figcaption`,e.FIGURE=`figure`,e.FONT=`font`,e.FOOTER=`footer`,e.FOREIGN_OBJECT=`foreignObject`,e.FORM=`form`,e.FRAME=`frame`,e.FRAMESET=`frameset`,e.H1=`h1`,e.H2=`h2`,e.H3=`h3`,e.H4=`h4`,e.H5=`h5`,e.H6=`h6`,e.HEAD=`head`,e.HEADER=`header`,e.HGROUP=`hgroup`,e.HR=`hr`,e.HTML=`html`,e.I=`i`,e.IMG=`img`,e.IMAGE=`image`,e.INPUT=`input`,e.IFRAME=`iframe`,e.KEYGEN=`keygen`,e.LABEL=`label`,e.LI=`li`,e.LINK=`link`,e.LISTING=`listing`,e.MAIN=`main`,e.MALIGNMARK=`malignmark`,e.MARQUEE=`marquee`,e.MATH=`math`,e.MENU=`menu`,e.META=`meta`,e.MGLYPH=`mglyph`,e.MI=`mi`,e.MO=`mo`,e.MN=`mn`,e.MS=`ms`,e.MTEXT=`mtext`,e.NAV=`nav`,e.NOBR=`nobr`,e.NOFRAMES=`noframes`,e.NOEMBED=`noembed`,e.NOSCRIPT=`noscript`,e.OBJECT=`object`,e.OL=`ol`,e.OPTGROUP=`optgroup`,e.OPTION=`option`,e.P=`p`,e.PARAM=`param`,e.PLAINTEXT=`plaintext`,e.PRE=`pre`,e.RB=`rb`,e.RP=`rp`,e.RT=`rt`,e.RTC=`rtc`,e.RUBY=`ruby`,e.S=`s`,e.SCRIPT=`script`,e.SECTION=`section`,e.SELECT=`select`,e.SOURCE=`source`,e.SMALL=`small`,e.SPAN=`span`,e.STRIKE=`strike`,e.STRONG=`strong`,e.STYLE=`style`,e.SUB=`sub`,e.SUMMARY=`summary`,e.SUP=`sup`,e.TABLE=`table`,e.TBODY=`tbody`,e.TEMPLATE=`template`,e.TEXTAREA=`textarea`,e.TFOOT=`tfoot`,e.TD=`td`,e.TH=`th`,e.THEAD=`thead`,e.TITLE=`title`,e.TR=`tr`,e.TRACK=`track`,e.TT=`tt`,e.U=`u`,e.UL=`ul`,e.SVG=`svg`,e.VAR=`var`,e.WBR=`wbr`,e.XMP=`xmp`})(pD=pD||={});var X;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.A=1]=`A`,e[e.ADDRESS=2]=`ADDRESS`,e[e.ANNOTATION_XML=3]=`ANNOTATION_XML`,e[e.APPLET=4]=`APPLET`,e[e.AREA=5]=`AREA`,e[e.ARTICLE=6]=`ARTICLE`,e[e.ASIDE=7]=`ASIDE`,e[e.B=8]=`B`,e[e.BASE=9]=`BASE`,e[e.BASEFONT=10]=`BASEFONT`,e[e.BGSOUND=11]=`BGSOUND`,e[e.BIG=12]=`BIG`,e[e.BLOCKQUOTE=13]=`BLOCKQUOTE`,e[e.BODY=14]=`BODY`,e[e.BR=15]=`BR`,e[e.BUTTON=16]=`BUTTON`,e[e.CAPTION=17]=`CAPTION`,e[e.CENTER=18]=`CENTER`,e[e.CODE=19]=`CODE`,e[e.COL=20]=`COL`,e[e.COLGROUP=21]=`COLGROUP`,e[e.DD=22]=`DD`,e[e.DESC=23]=`DESC`,e[e.DETAILS=24]=`DETAILS`,e[e.DIALOG=25]=`DIALOG`,e[e.DIR=26]=`DIR`,e[e.DIV=27]=`DIV`,e[e.DL=28]=`DL`,e[e.DT=29]=`DT`,e[e.EM=30]=`EM`,e[e.EMBED=31]=`EMBED`,e[e.FIELDSET=32]=`FIELDSET`,e[e.FIGCAPTION=33]=`FIGCAPTION`,e[e.FIGURE=34]=`FIGURE`,e[e.FONT=35]=`FONT`,e[e.FOOTER=36]=`FOOTER`,e[e.FOREIGN_OBJECT=37]=`FOREIGN_OBJECT`,e[e.FORM=38]=`FORM`,e[e.FRAME=39]=`FRAME`,e[e.FRAMESET=40]=`FRAMESET`,e[e.H1=41]=`H1`,e[e.H2=42]=`H2`,e[e.H3=43]=`H3`,e[e.H4=44]=`H4`,e[e.H5=45]=`H5`,e[e.H6=46]=`H6`,e[e.HEAD=47]=`HEAD`,e[e.HEADER=48]=`HEADER`,e[e.HGROUP=49]=`HGROUP`,e[e.HR=50]=`HR`,e[e.HTML=51]=`HTML`,e[e.I=52]=`I`,e[e.IMG=53]=`IMG`,e[e.IMAGE=54]=`IMAGE`,e[e.INPUT=55]=`INPUT`,e[e.IFRAME=56]=`IFRAME`,e[e.KEYGEN=57]=`KEYGEN`,e[e.LABEL=58]=`LABEL`,e[e.LI=59]=`LI`,e[e.LINK=60]=`LINK`,e[e.LISTING=61]=`LISTING`,e[e.MAIN=62]=`MAIN`,e[e.MALIGNMARK=63]=`MALIGNMARK`,e[e.MARQUEE=64]=`MARQUEE`,e[e.MATH=65]=`MATH`,e[e.MENU=66]=`MENU`,e[e.META=67]=`META`,e[e.MGLYPH=68]=`MGLYPH`,e[e.MI=69]=`MI`,e[e.MO=70]=`MO`,e[e.MN=71]=`MN`,e[e.MS=72]=`MS`,e[e.MTEXT=73]=`MTEXT`,e[e.NAV=74]=`NAV`,e[e.NOBR=75]=`NOBR`,e[e.NOFRAMES=76]=`NOFRAMES`,e[e.NOEMBED=77]=`NOEMBED`,e[e.NOSCRIPT=78]=`NOSCRIPT`,e[e.OBJECT=79]=`OBJECT`,e[e.OL=80]=`OL`,e[e.OPTGROUP=81]=`OPTGROUP`,e[e.OPTION=82]=`OPTION`,e[e.P=83]=`P`,e[e.PARAM=84]=`PARAM`,e[e.PLAINTEXT=85]=`PLAINTEXT`,e[e.PRE=86]=`PRE`,e[e.RB=87]=`RB`,e[e.RP=88]=`RP`,e[e.RT=89]=`RT`,e[e.RTC=90]=`RTC`,e[e.RUBY=91]=`RUBY`,e[e.S=92]=`S`,e[e.SCRIPT=93]=`SCRIPT`,e[e.SECTION=94]=`SECTION`,e[e.SELECT=95]=`SELECT`,e[e.SOURCE=96]=`SOURCE`,e[e.SMALL=97]=`SMALL`,e[e.SPAN=98]=`SPAN`,e[e.STRIKE=99]=`STRIKE`,e[e.STRONG=100]=`STRONG`,e[e.STYLE=101]=`STYLE`,e[e.SUB=102]=`SUB`,e[e.SUMMARY=103]=`SUMMARY`,e[e.SUP=104]=`SUP`,e[e.TABLE=105]=`TABLE`,e[e.TBODY=106]=`TBODY`,e[e.TEMPLATE=107]=`TEMPLATE`,e[e.TEXTAREA=108]=`TEXTAREA`,e[e.TFOOT=109]=`TFOOT`,e[e.TD=110]=`TD`,e[e.TH=111]=`TH`,e[e.THEAD=112]=`THEAD`,e[e.TITLE=113]=`TITLE`,e[e.TR=114]=`TR`,e[e.TRACK=115]=`TRACK`,e[e.TT=116]=`TT`,e[e.U=117]=`U`,e[e.UL=118]=`UL`,e[e.SVG=119]=`SVG`,e[e.VAR=120]=`VAR`,e[e.WBR=121]=`WBR`,e[e.XMP=122]=`XMP`})(X=X||={});const rOe=/* @__PURE__ */ new Map([[pD.A,X.A],[pD.ADDRESS,X.ADDRESS],[pD.ANNOTATION_XML,X.ANNOTATION_XML],[pD.APPLET,X.APPLET],[pD.AREA,X.AREA],[pD.ARTICLE,X.ARTICLE],[pD.ASIDE,X.ASIDE],[pD.B,X.B],[pD.BASE,X.BASE],[pD.BASEFONT,X.BASEFONT],[pD.BGSOUND,X.BGSOUND],[pD.BIG,X.BIG],[pD.BLOCKQUOTE,X.BLOCKQUOTE],[pD.BODY,X.BODY],[pD.BR,X.BR],[pD.BUTTON,X.BUTTON],[pD.CAPTION,X.CAPTION],[pD.CENTER,X.CENTER],[pD.CODE,X.CODE],[pD.COL,X.COL],[pD.COLGROUP,X.COLGROUP],[pD.DD,X.DD],[pD.DESC,X.DESC],[pD.DETAILS,X.DETAILS],[pD.DIALOG,X.DIALOG],[pD.DIR,X.DIR],[pD.DIV,X.DIV],[pD.DL,X.DL],[pD.DT,X.DT],[pD.EM,X.EM],[pD.EMBED,X.EMBED],[pD.FIELDSET,X.FIELDSET],[pD.FIGCAPTION,X.FIGCAPTION],[pD.FIGURE,X.FIGURE],[pD.FONT,X.FONT],[pD.FOOTER,X.FOOTER],[pD.FOREIGN_OBJECT,X.FOREIGN_OBJECT],[pD.FORM,X.FORM],[pD.FRAME,X.FRAME],[pD.FRAMESET,X.FRAMESET],[pD.H1,X.H1],[pD.H2,X.H2],[pD.H3,X.H3],[pD.H4,X.H4],[pD.H5,X.H5],[pD.H6,X.H6],[pD.HEAD,X.HEAD],[pD.HEADER,X.HEADER],[pD.HGROUP,X.HGROUP],[pD.HR,X.HR],[pD.HTML,X.HTML],[pD.I,X.I],[pD.IMG,X.IMG],[pD.IMAGE,X.IMAGE],[pD.INPUT,X.INPUT],[pD.IFRAME,X.IFRAME],[pD.KEYGEN,X.KEYGEN],[pD.LABEL,X.LABEL],[pD.LI,X.LI],[pD.LINK,X.LINK],[pD.LISTING,X.LISTING],[pD.MAIN,X.MAIN],[pD.MALIGNMARK,X.MALIGNMARK],[pD.MARQUEE,X.MARQUEE],[pD.MATH,X.MATH],[pD.MENU,X.MENU],[pD.META,X.META],[pD.MGLYPH,X.MGLYPH],[pD.MI,X.MI],[pD.MO,X.MO],[pD.MN,X.MN],[pD.MS,X.MS],[pD.MTEXT,X.MTEXT],[pD.NAV,X.NAV],[pD.NOBR,X.NOBR],[pD.NOFRAMES,X.NOFRAMES],[pD.NOEMBED,X.NOEMBED],[pD.NOSCRIPT,X.NOSCRIPT],[pD.OBJECT,X.OBJECT],[pD.OL,X.OL],[pD.OPTGROUP,X.OPTGROUP],[pD.OPTION,X.OPTION],[pD.P,X.P],[pD.PARAM,X.PARAM],[pD.PLAINTEXT,X.PLAINTEXT],[pD.PRE,X.PRE],[pD.RB,X.RB],[pD.RP,X.RP],[pD.RT,X.RT],[pD.RTC,X.RTC],[pD.RUBY,X.RUBY],[pD.S,X.S],[pD.SCRIPT,X.SCRIPT],[pD.SECTION,X.SECTION],[pD.SELECT,X.SELECT],[pD.SOURCE,X.SOURCE],[pD.SMALL,X.SMALL],[pD.SPAN,X.SPAN],[pD.STRIKE,X.STRIKE],[pD.STRONG,X.STRONG],[pD.STYLE,X.STYLE],[pD.SUB,X.SUB],[pD.SUMMARY,X.SUMMARY],[pD.SUP,X.SUP],[pD.TABLE,X.TABLE],[pD.TBODY,X.TBODY],[pD.TEMPLATE,X.TEMPLATE],[pD.TEXTAREA,X.TEXTAREA],[pD.TFOOT,X.TFOOT],[pD.TD,X.TD],[pD.TH,X.TH],[pD.THEAD,X.THEAD],[pD.TITLE,X.TITLE],[pD.TR,X.TR],[pD.TRACK,X.TRACK],[pD.TT,X.TT],[pD.U,X.U],[pD.UL,X.UL],[pD.SVG,X.SVG],[pD.VAR,X.VAR],[pD.WBR,X.WBR],[pD.XMP,X.XMP]]);function mD(e){return rOe.get(e)??X.UNKNOWN}const hD=X,iOe={[uD.HTML]:/* @__PURE__ */ new Set([hD.ADDRESS,hD.APPLET,hD.AREA,hD.ARTICLE,hD.ASIDE,hD.BASE,hD.BASEFONT,hD.BGSOUND,hD.BLOCKQUOTE,hD.BODY,hD.BR,hD.BUTTON,hD.CAPTION,hD.CENTER,hD.COL,hD.COLGROUP,hD.DD,hD.DETAILS,hD.DIR,hD.DIV,hD.DL,hD.DT,hD.EMBED,hD.FIELDSET,hD.FIGCAPTION,hD.FIGURE,hD.FOOTER,hD.FORM,hD.FRAME,hD.FRAMESET,hD.H1,hD.H2,hD.H3,hD.H4,hD.H5,hD.H6,hD.HEAD,hD.HEADER,hD.HGROUP,hD.HR,hD.HTML,hD.IFRAME,hD.IMG,hD.INPUT,hD.LI,hD.LINK,hD.LISTING,hD.MAIN,hD.MARQUEE,hD.MENU,hD.META,hD.NAV,hD.NOEMBED,hD.NOFRAMES,hD.NOSCRIPT,hD.OBJECT,hD.OL,hD.P,hD.PARAM,hD.PLAINTEXT,hD.PRE,hD.SCRIPT,hD.SECTION,hD.SELECT,hD.SOURCE,hD.STYLE,hD.SUMMARY,hD.TABLE,hD.TBODY,hD.TD,hD.TEMPLATE,hD.TEXTAREA,hD.TFOOT,hD.TH,hD.THEAD,hD.TITLE,hD.TR,hD.TRACK,hD.UL,hD.WBR,hD.XMP]),[uD.MATHML]:/* @__PURE__ */ new Set([hD.MI,hD.MO,hD.MN,hD.MS,hD.MTEXT,hD.ANNOTATION_XML]),[uD.SVG]:/* @__PURE__ */ new Set([hD.TITLE,hD.FOREIGN_OBJECT,hD.DESC]),[uD.XLINK]:/* @__PURE__ */ new Set,[uD.XML]:/* @__PURE__ */ new Set,[uD.XMLNS]:/* @__PURE__ */ new Set};function aOe(e){return e===hD.H1||e===hD.H2||e===hD.H3||e===hD.H4||e===hD.H5||e===hD.H6}pD.STYLE,pD.SCRIPT,pD.XMP,pD.IFRAME,pD.NOEMBED,pD.NOFRAMES,pD.PLAINTEXT;const oOe=/* @__PURE__ */ new Map([[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]]);var Z;(function(e){e[e.DATA=0]=`DATA`,e[e.RCDATA=1]=`RCDATA`,e[e.RAWTEXT=2]=`RAWTEXT`,e[e.SCRIPT_DATA=3]=`SCRIPT_DATA`,e[e.PLAINTEXT=4]=`PLAINTEXT`,e[e.TAG_OPEN=5]=`TAG_OPEN`,e[e.END_TAG_OPEN=6]=`END_TAG_OPEN`,e[e.TAG_NAME=7]=`TAG_NAME`,e[e.RCDATA_LESS_THAN_SIGN=8]=`RCDATA_LESS_THAN_SIGN`,e[e.RCDATA_END_TAG_OPEN=9]=`RCDATA_END_TAG_OPEN`,e[e.RCDATA_END_TAG_NAME=10]=`RCDATA_END_TAG_NAME`,e[e.RAWTEXT_LESS_THAN_SIGN=11]=`RAWTEXT_LESS_THAN_SIGN`,e[e.RAWTEXT_END_TAG_OPEN=12]=`RAWTEXT_END_TAG_OPEN`,e[e.RAWTEXT_END_TAG_NAME=13]=`RAWTEXT_END_TAG_NAME`,e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]=`SCRIPT_DATA_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_END_TAG_OPEN=15]=`SCRIPT_DATA_END_TAG_OPEN`,e[e.SCRIPT_DATA_END_TAG_NAME=16]=`SCRIPT_DATA_END_TAG_NAME`,e[e.SCRIPT_DATA_ESCAPE_START=17]=`SCRIPT_DATA_ESCAPE_START`,e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]=`SCRIPT_DATA_ESCAPE_START_DASH`,e[e.SCRIPT_DATA_ESCAPED=19]=`SCRIPT_DATA_ESCAPED`,e[e.SCRIPT_DATA_ESCAPED_DASH=20]=`SCRIPT_DATA_ESCAPED_DASH`,e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]=`SCRIPT_DATA_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]=`SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]=`SCRIPT_DATA_ESCAPED_END_TAG_OPEN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]=`SCRIPT_DATA_ESCAPED_END_TAG_NAME`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]=`SCRIPT_DATA_DOUBLE_ESCAPE_START`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]=`SCRIPT_DATA_DOUBLE_ESCAPED`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]=`SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]=`SCRIPT_DATA_DOUBLE_ESCAPE_END`,e[e.BEFORE_ATTRIBUTE_NAME=31]=`BEFORE_ATTRIBUTE_NAME`,e[e.ATTRIBUTE_NAME=32]=`ATTRIBUTE_NAME`,e[e.AFTER_ATTRIBUTE_NAME=33]=`AFTER_ATTRIBUTE_NAME`,e[e.BEFORE_ATTRIBUTE_VALUE=34]=`BEFORE_ATTRIBUTE_VALUE`,e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]=`ATTRIBUTE_VALUE_DOUBLE_QUOTED`,e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]=`ATTRIBUTE_VALUE_SINGLE_QUOTED`,e[e.ATTRIBUTE_VALUE_UNQUOTED=37]=`ATTRIBUTE_VALUE_UNQUOTED`,e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]=`AFTER_ATTRIBUTE_VALUE_QUOTED`,e[e.SELF_CLOSING_START_TAG=39]=`SELF_CLOSING_START_TAG`,e[e.BOGUS_COMMENT=40]=`BOGUS_COMMENT`,e[e.MARKUP_DECLARATION_OPEN=41]=`MARKUP_DECLARATION_OPEN`,e[e.COMMENT_START=42]=`COMMENT_START`,e[e.COMMENT_START_DASH=43]=`COMMENT_START_DASH`,e[e.COMMENT=44]=`COMMENT`,e[e.COMMENT_LESS_THAN_SIGN=45]=`COMMENT_LESS_THAN_SIGN`,e[e.COMMENT_LESS_THAN_SIGN_BANG=46]=`COMMENT_LESS_THAN_SIGN_BANG`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]=`COMMENT_LESS_THAN_SIGN_BANG_DASH`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]=`COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH`,e[e.COMMENT_END_DASH=49]=`COMMENT_END_DASH`,e[e.COMMENT_END=50]=`COMMENT_END`,e[e.COMMENT_END_BANG=51]=`COMMENT_END_BANG`,e[e.DOCTYPE=52]=`DOCTYPE`,e[e.BEFORE_DOCTYPE_NAME=53]=`BEFORE_DOCTYPE_NAME`,e[e.DOCTYPE_NAME=54]=`DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_NAME=55]=`AFTER_DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]=`AFTER_DOCTYPE_PUBLIC_KEYWORD`,e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]=`BEFORE_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]=`DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]=`DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]=`AFTER_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]=`BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS`,e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]=`AFTER_DOCTYPE_SYSTEM_KEYWORD`,e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]=`BEFORE_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]=`DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]=`DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]=`AFTER_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.BOGUS_DOCTYPE=67]=`BOGUS_DOCTYPE`,e[e.CDATA_SECTION=68]=`CDATA_SECTION`,e[e.CDATA_SECTION_BRACKET=69]=`CDATA_SECTION_BRACKET`,e[e.CDATA_SECTION_END=70]=`CDATA_SECTION_END`,e[e.CHARACTER_REFERENCE=71]=`CHARACTER_REFERENCE`,e[e.NAMED_CHARACTER_REFERENCE=72]=`NAMED_CHARACTER_REFERENCE`,e[e.AMBIGUOUS_AMPERSAND=73]=`AMBIGUOUS_AMPERSAND`,e[e.NUMERIC_CHARACTER_REFERENCE=74]=`NUMERIC_CHARACTER_REFERENCE`,e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]=`HEXADEMICAL_CHARACTER_REFERENCE_START`,e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]=`HEXADEMICAL_CHARACTER_REFERENCE`,e[e.DECIMAL_CHARACTER_REFERENCE=77]=`DECIMAL_CHARACTER_REFERENCE`,e[e.NUMERIC_CHARACTER_REFERENCE_END=78]=`NUMERIC_CHARACTER_REFERENCE_END`})(Z||={});const gD={DATA:Z.DATA,RCDATA:Z.RCDATA,RAWTEXT:Z.RAWTEXT,SCRIPT_DATA:Z.SCRIPT_DATA,PLAINTEXT:Z.PLAINTEXT,CDATA_SECTION:Z.CDATA_SECTION};function _D(e){return e>=Y.DIGIT_0&&e<=Y.DIGIT_9}function vD(e){return e>=Y.LATIN_CAPITAL_A&&e<=Y.LATIN_CAPITAL_Z}function sOe(e){return e>=Y.LATIN_SMALL_A&&e<=Y.LATIN_SMALL_Z}function yD(e){return sOe(e)||vD(e)}function bD(e){return yD(e)||_D(e)}function cOe(e){return e>=Y.LATIN_CAPITAL_A&&e<=Y.LATIN_CAPITAL_F}function lOe(e){return e>=Y.LATIN_SMALL_A&&e<=Y.LATIN_SMALL_F}function uOe(e){return _D(e)||cOe(e)||lOe(e)}function xD(e){return e+32}function dOe(e){return e===Y.SPACE||e===Y.LINE_FEED||e===Y.TABULATION||e===Y.FORM_FEED}function fOe(e){return e===Y.EQUALS_SIGN||bD(e)}function pOe(e){return dOe(e)||e===Y.SOLIDUS||e===Y.GREATER_THAN_SIGN}var mOe=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName=``,this.active=!1,this.state=Z.DATA,this.returnState=Z.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:``,value:``},this.preprocessor=new $De(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,n;(n=(t=this.handler).onParseError)==null||n.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error(`Parser was already resumed`);this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return this.preprocessor.startsWith(e,t)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:sD.START_TAG,tagName:``,tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:sD.END_TAG,tagName:``,tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:sD.COMMENT,data:``,location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:sD.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:``},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e;let t=this.currentToken;if(eOe(t,this.currentAttr.name)===null){if(t.attrs.push(this.currentAttr),t.location&&this.currentLocation){let n=(e=t.location).attrs??(e.attrs=Object.create(null));n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(oD.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=mD(e.tagName),e.type===sD.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(oD.endTagWithAttributes),e.selfClosing&&this._err(oD.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case sD.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case sD.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case sD.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:sD.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type!==e)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=t;return}}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=dOe(e)?sD.WHITESPACE_CHARACTER:e===Y.NULL?sD.NULL_CHARACTER:sD.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(sD.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,n=0,r=!1;for(let i=0,a=cD[0];i>=0&&(i=nOe(cD,a,i+1,e),!(i<0));e=this._consume()){n+=1,a=cD[i];let o=a&lD.VALUE_LENGTH;if(o){let a=(o>>14)-1;if(e!==Y.SEMICOLON&&this._isCharacterReferenceInAttribute()&&fOe(this.preprocessor.peek(1))?(t=[Y.AMPERSAND],i+=a):(t=a===0?[cD[i]&~lD.VALUE_LENGTH]:a===1?[cD[++i]]:[cD[++i],cD[++i]],n=0,r=e!==Y.SEMICOLON),a===0){this._consume();break}}}return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(oD.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Z.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Z.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Z.DATA:this._stateData(e);break;case Z.RCDATA:this._stateRcdata(e);break;case Z.RAWTEXT:this._stateRawtext(e);break;case Z.SCRIPT_DATA:this._stateScriptData(e);break;case Z.PLAINTEXT:this._statePlaintext(e);break;case Z.TAG_OPEN:this._stateTagOpen(e);break;case Z.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Z.TAG_NAME:this._stateTagName(e);break;case Z.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Z.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Z.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Z.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Z.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Z.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Z.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Z.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Z.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Z.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Z.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Z.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Z.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Z.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Z.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Z.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Z.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Z.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Z.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Z.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Z.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Z.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Z.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Z.BOGUS_COMMENT:this._stateBogusComment(e);break;case Z.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Z.COMMENT_START:this._stateCommentStart(e);break;case Z.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Z.COMMENT:this._stateComment(e);break;case Z.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Z.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Z.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Z.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Z.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Z.COMMENT_END:this._stateCommentEnd(e);break;case Z.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Z.DOCTYPE:this._stateDoctype(e);break;case Z.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Z.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Z.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Z.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Z.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Z.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Z.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Z.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Z.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Z.CDATA_SECTION:this._stateCdataSection(e);break;case Z.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Z.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Z.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case Z.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case Z.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case Z.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case Z.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case Z.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case Z.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case Z.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw Error(`Unknown state`)}}_stateData(e){switch(e){case Y.LESS_THAN_SIGN:this.state=Z.TAG_OPEN;break;case Y.AMPERSAND:this.returnState=Z.DATA,this.state=Z.CHARACTER_REFERENCE;break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this._emitCodePoint(e);break;case Y.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Y.AMPERSAND:this.returnState=Z.RCDATA,this.state=Z.CHARACTER_REFERENCE;break;case Y.LESS_THAN_SIGN:this.state=Z.RCDATA_LESS_THAN_SIGN;break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this._emitChars(`�`);break;case Y.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Y.LESS_THAN_SIGN:this.state=Z.RAWTEXT_LESS_THAN_SIGN;break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this._emitChars(`�`);break;case Y.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_LESS_THAN_SIGN;break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this._emitChars(`�`);break;case Y.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Y.NULL:this._err(oD.unexpectedNullCharacter),this._emitChars(`�`);break;case Y.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(yD(e))this._createStartTagToken(),this.state=Z.TAG_NAME,this._stateTagName(e);else switch(e){case Y.EXCLAMATION_MARK:this.state=Z.MARKUP_DECLARATION_OPEN;break;case Y.SOLIDUS:this.state=Z.END_TAG_OPEN;break;case Y.QUESTION_MARK:this._err(oD.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(e);break;case Y.EOF:this._err(oD.eofBeforeTagName),this._emitChars(`<`),this._emitEOFToken();break;default:this._err(oD.invalidFirstCharacterOfTagName),this._emitChars(`<`),this.state=Z.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(yD(e))this._createEndTagToken(),this.state=Z.TAG_NAME,this._stateTagName(e);else switch(e){case Y.GREATER_THAN_SIGN:this._err(oD.missingEndTagName),this.state=Z.DATA;break;case Y.EOF:this._err(oD.eofBeforeTagName),this._emitChars(`</`),this._emitEOFToken();break;default:this._err(oD.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this.state=Z.BEFORE_ATTRIBUTE_NAME;break;case Y.SOLIDUS:this.state=Z.SELF_CLOSING_START_TAG;break;case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentTagToken();break;case Y.NULL:this._err(oD.unexpectedNullCharacter),t.tagName+=`�`;break;case Y.EOF:this._err(oD.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(vD(e)?xD(e):e)}}_stateRcdataLessThanSign(e){e===Y.SOLIDUS?this.state=Z.RCDATA_END_TAG_OPEN:(this._emitChars(`<`),this.state=Z.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){yD(e)?(this.state=Z.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars(`</`),this.state=Z.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Z.BEFORE_ATTRIBUTE_NAME,!1;case Y.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Z.SELF_CLOSING_START_TAG,!1;case Y.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Z.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Z.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===Y.SOLIDUS?this.state=Z.RAWTEXT_END_TAG_OPEN:(this._emitChars(`<`),this.state=Z.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){yD(e)?(this.state=Z.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars(`</`),this.state=Z.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Z.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case Y.SOLIDUS:this.state=Z.SCRIPT_DATA_END_TAG_OPEN;break;case Y.EXCLAMATION_MARK:this.state=Z.SCRIPT_DATA_ESCAPE_START,this._emitChars(`<!`);break;default:this._emitChars(`<`),this.state=Z.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){yD(e)?(this.state=Z.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars(`</`),this.state=Z.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Z.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===Y.HYPHEN_MINUS?(this.state=Z.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars(`-`)):(this.state=Z.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===Y.HYPHEN_MINUS?(this.state=Z.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`)):(this.state=Z.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case Y.HYPHEN_MINUS:this.state=Z.SCRIPT_DATA_ESCAPED_DASH,this._emitChars(`-`);break;case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this._emitChars(`�`);break;case Y.EOF:this._err(oD.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case Y.HYPHEN_MINUS:this.state=Z.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case Y.EOF:this._err(oD.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Z.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case Y.HYPHEN_MINUS:this._emitChars(`-`);break;case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Y.GREATER_THAN_SIGN:this.state=Z.SCRIPT_DATA,this._emitChars(`>`);break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case Y.EOF:this._err(oD.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Z.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Y.SOLIDUS?this.state=Z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:yD(e)?(this._emitChars(`<`),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars(`<`),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){yD(e)?(this.state=Z.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars(`</`),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(aD.SCRIPT,!1)&&pOe(this.preprocessor.peek(aD.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<aD.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case Y.HYPHEN_MINUS:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars(`-`);break;case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this._emitChars(`�`);break;case Y.EOF:this._err(oD.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Y.HYPHEN_MINUS:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case Y.EOF:this._err(oD.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Y.HYPHEN_MINUS:this._emitChars(`-`);break;case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case Y.GREATER_THAN_SIGN:this.state=Z.SCRIPT_DATA,this._emitChars(`>`);break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case Y.EOF:this._err(oD.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Y.SOLIDUS?(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars(`/`)):(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(aD.SCRIPT,!1)&&pOe(this.preprocessor.peek(aD.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<aD.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=Z.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.SOLIDUS:case Y.GREATER_THAN_SIGN:case Y.EOF:this.state=Z.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Y.EQUALS_SIGN:this._err(oD.unexpectedEqualsSignBeforeAttributeName),this._createAttr(`=`),this.state=Z.ATTRIBUTE_NAME;break;default:this._createAttr(``),this.state=Z.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:case Y.SOLIDUS:case Y.GREATER_THAN_SIGN:case Y.EOF:this._leaveAttrName(),this.state=Z.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Y.EQUALS_SIGN:this._leaveAttrName(),this.state=Z.BEFORE_ATTRIBUTE_VALUE;break;case Y.QUOTATION_MARK:case Y.APOSTROPHE:case Y.LESS_THAN_SIGN:this._err(oD.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this.currentAttr.name+=`�`;break;default:this.currentAttr.name+=String.fromCodePoint(vD(e)?xD(e):e)}}_stateAfterAttributeName(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.SOLIDUS:this.state=Z.SELF_CLOSING_START_TAG;break;case Y.EQUALS_SIGN:this.state=Z.BEFORE_ATTRIBUTE_VALUE;break;case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentTagToken();break;case Y.EOF:this._err(oD.eofInTag),this._emitEOFToken();break;default:this._createAttr(``),this.state=Z.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.QUOTATION_MARK:this.state=Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Y.APOSTROPHE:this.state=Z.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Y.GREATER_THAN_SIGN:this._err(oD.missingAttributeValue),this.state=Z.DATA,this.emitCurrentTagToken();break;default:this.state=Z.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Y.QUOTATION_MARK:this.state=Z.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Y.AMPERSAND:this.returnState=Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=Z.CHARACTER_REFERENCE;break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case Y.EOF:this._err(oD.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Y.APOSTROPHE:this.state=Z.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Y.AMPERSAND:this.returnState=Z.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=Z.CHARACTER_REFERENCE;break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case Y.EOF:this._err(oD.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this._leaveAttrValue(),this.state=Z.BEFORE_ATTRIBUTE_NAME;break;case Y.AMPERSAND:this.returnState=Z.ATTRIBUTE_VALUE_UNQUOTED,this.state=Z.CHARACTER_REFERENCE;break;case Y.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Z.DATA,this.emitCurrentTagToken();break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case Y.QUOTATION_MARK:case Y.APOSTROPHE:case Y.LESS_THAN_SIGN:case Y.EQUALS_SIGN:case Y.GRAVE_ACCENT:this._err(oD.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case Y.EOF:this._err(oD.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this._leaveAttrValue(),this.state=Z.BEFORE_ATTRIBUTE_NAME;break;case Y.SOLIDUS:this._leaveAttrValue(),this.state=Z.SELF_CLOSING_START_TAG;break;case Y.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Z.DATA,this.emitCurrentTagToken();break;case Y.EOF:this._err(oD.eofInTag),this._emitEOFToken();break;default:this._err(oD.missingWhitespaceBetweenAttributes),this.state=Z.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Y.GREATER_THAN_SIGN:{let e=this.currentToken;e.selfClosing=!0,this.state=Z.DATA,this.emitCurrentTagToken();break}case Y.EOF:this._err(oD.eofInTag),this._emitEOFToken();break;default:this._err(oD.unexpectedSolidusInTag),this.state=Z.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentComment(t);break;case Y.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Y.NULL:this._err(oD.unexpectedNullCharacter),t.data+=`�`;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(aD.DASH_DASH,!0)?(this._createCommentToken(aD.DASH_DASH.length+1),this.state=Z.COMMENT_START):this._consumeSequenceIfMatch(aD.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(aD.DOCTYPE.length+1),this.state=Z.DOCTYPE):this._consumeSequenceIfMatch(aD.CDATA_START,!0)?this.inForeignNode?this.state=Z.CDATA_SECTION:(this._err(oD.cdataInHtmlContent),this._createCommentToken(aD.CDATA_START.length+1),this.currentToken.data=`[CDATA[`,this.state=Z.BOGUS_COMMENT):this._ensureHibernation()||(this._err(oD.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Y.HYPHEN_MINUS:this.state=Z.COMMENT_START_DASH;break;case Y.GREATER_THAN_SIGN:{this._err(oD.abruptClosingOfEmptyComment),this.state=Z.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=Z.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case Y.HYPHEN_MINUS:this.state=Z.COMMENT_END;break;case Y.GREATER_THAN_SIGN:this._err(oD.abruptClosingOfEmptyComment),this.state=Z.DATA,this.emitCurrentComment(t);break;case Y.EOF:this._err(oD.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=Z.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case Y.HYPHEN_MINUS:this.state=Z.COMMENT_END_DASH;break;case Y.LESS_THAN_SIGN:t.data+=`<`,this.state=Z.COMMENT_LESS_THAN_SIGN;break;case Y.NULL:this._err(oD.unexpectedNullCharacter),t.data+=`�`;break;case Y.EOF:this._err(oD.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case Y.EXCLAMATION_MARK:t.data+=`!`,this.state=Z.COMMENT_LESS_THAN_SIGN_BANG;break;case Y.LESS_THAN_SIGN:t.data+=`<`;break;default:this.state=Z.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Y.HYPHEN_MINUS?this.state=Z.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Z.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Y.HYPHEN_MINUS?this.state=Z.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Z.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Y.GREATER_THAN_SIGN&&e!==Y.EOF&&this._err(oD.nestedComment),this.state=Z.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case Y.HYPHEN_MINUS:this.state=Z.COMMENT_END;break;case Y.EOF:this._err(oD.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=Z.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentComment(t);break;case Y.EXCLAMATION_MARK:this.state=Z.COMMENT_END_BANG;break;case Y.HYPHEN_MINUS:t.data+=`-`;break;case Y.EOF:this._err(oD.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--`,this.state=Z.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case Y.HYPHEN_MINUS:t.data+=`--!`,this.state=Z.COMMENT_END_DASH;break;case Y.GREATER_THAN_SIGN:this._err(oD.incorrectlyClosedComment),this.state=Z.DATA,this.emitCurrentComment(t);break;case Y.EOF:this._err(oD.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--!`,this.state=Z.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this.state=Z.BEFORE_DOCTYPE_NAME;break;case Y.GREATER_THAN_SIGN:this.state=Z.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case Y.EOF:{this._err(oD.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(oD.missingWhitespaceBeforeDoctypeName),this.state=Z.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(vD(e))this._createDoctypeToken(String.fromCharCode(xD(e))),this.state=Z.DOCTYPE_NAME;else switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.NULL:this._err(oD.unexpectedNullCharacter),this._createDoctypeToken(`�`),this.state=Z.DOCTYPE_NAME;break;case Y.GREATER_THAN_SIGN:{this._err(oD.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Z.DATA;break}case Y.EOF:{this._err(oD.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=Z.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this.state=Z.AFTER_DOCTYPE_NAME;break;case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.NULL:this._err(oD.unexpectedNullCharacter),t.name+=`�`;break;case Y.EOF:this._err(oD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(vD(e)?xD(e):e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.EOF:this._err(oD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(aD.PUBLIC,!1)?this.state=Z.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(aD.SYSTEM,!1)?this.state=Z.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(oD.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this.state=Z.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Y.QUOTATION_MARK:this._err(oD.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Y.APOSTROPHE:this._err(oD.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Y.GREATER_THAN_SIGN:this._err(oD.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.EOF:this._err(oD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(oD.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.QUOTATION_MARK:t.publicId=``,this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Y.APOSTROPHE:t.publicId=``,this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Y.GREATER_THAN_SIGN:this._err(oD.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.EOF:this._err(oD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(oD.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case Y.QUOTATION_MARK:this.state=Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Y.NULL:this._err(oD.unexpectedNullCharacter),t.publicId+=`�`;break;case Y.GREATER_THAN_SIGN:this._err(oD.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.EOF:this._err(oD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case Y.APOSTROPHE:this.state=Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Y.NULL:this._err(oD.unexpectedNullCharacter),t.publicId+=`�`;break;case Y.GREATER_THAN_SIGN:this._err(oD.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.EOF:this._err(oD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this.state=Z.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.QUOTATION_MARK:this._err(oD.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Y.APOSTROPHE:this._err(oD.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Y.EOF:this._err(oD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(oD.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.QUOTATION_MARK:t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Y.APOSTROPHE:t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Y.EOF:this._err(oD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(oD.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this.state=Z.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Y.QUOTATION_MARK:this._err(oD.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Y.APOSTROPHE:this._err(oD.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Y.GREATER_THAN_SIGN:this._err(oD.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.EOF:this._err(oD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(oD.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.QUOTATION_MARK:t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Y.APOSTROPHE:t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Y.GREATER_THAN_SIGN:this._err(oD.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.EOF:this._err(oD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(oD.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case Y.QUOTATION_MARK:this.state=Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Y.NULL:this._err(oD.unexpectedNullCharacter),t.systemId+=`�`;break;case Y.GREATER_THAN_SIGN:this._err(oD.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.EOF:this._err(oD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case Y.APOSTROPHE:this.state=Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Y.NULL:this._err(oD.unexpectedNullCharacter),t.systemId+=`�`;break;case Y.GREATER_THAN_SIGN:this._err(oD.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.EOF:this._err(oD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.EOF:this._err(oD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(oD.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case Y.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.NULL:this._err(oD.unexpectedNullCharacter);break;case Y.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case Y.RIGHT_SQUARE_BRACKET:this.state=Z.CDATA_SECTION_BRACKET;break;case Y.EOF:this._err(oD.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Y.RIGHT_SQUARE_BRACKET?this.state=Z.CDATA_SECTION_END:(this._emitChars(`]`),this.state=Z.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Y.GREATER_THAN_SIGN:this.state=Z.DATA;break;case Y.RIGHT_SQUARE_BRACKET:this._emitChars(`]`);break;default:this._emitChars(`]]`),this.state=Z.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===Y.NUMBER_SIGN?this.state=Z.NUMERIC_CHARACTER_REFERENCE:bD(e)?(this.state=Z.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(Y.AMPERSAND),this._reconsumeInState(this.returnState,e))}_stateNamedCharacterReference(e){let t=this._matchNamedCharacterReference(e);if(!this._ensureHibernation()){if(t){for(let e=0;e<t.length;e++)this._flushCodePointConsumedAsCharacterReference(t[e]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(Y.AMPERSAND),this.state=Z.AMBIGUOUS_AMPERSAND}}_stateAmbiguousAmpersand(e){bD(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===Y.SEMICOLON&&this._err(oD.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,e))}_stateNumericCharacterReference(e){this.charRefCode=0,e===Y.LATIN_SMALL_X||e===Y.LATIN_CAPITAL_X?this.state=Z.HEXADEMICAL_CHARACTER_REFERENCE_START:_D(e)?(this.state=Z.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):(this._err(oD.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(Y.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(Y.NUMBER_SIGN),this._reconsumeInState(this.returnState,e))}_stateHexademicalCharacterReferenceStart(e){uOe(e)?(this.state=Z.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(e)):(this._err(oD.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(Y.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(Y.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(e){cOe(e)?this.charRefCode=this.charRefCode*16+e-55:lOe(e)?this.charRefCode=this.charRefCode*16+e-87:_D(e)?this.charRefCode=this.charRefCode*16+e-48:e===Y.SEMICOLON?this.state=Z.NUMERIC_CHARACTER_REFERENCE_END:(this._err(oD.missingSemicolonAfterCharacterReference),this.state=Z.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateDecimalCharacterReference(e){_D(e)?this.charRefCode=this.charRefCode*10+e-48:e===Y.SEMICOLON?this.state=Z.NUMERIC_CHARACTER_REFERENCE_END:(this._err(oD.missingSemicolonAfterCharacterReference),this.state=Z.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateNumericCharacterReferenceEnd(e){if(this.charRefCode===Y.NULL)this._err(oD.nullCharacterReference),this.charRefCode=Y.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(oD.characterReferenceOutsideUnicodeRange),this.charRefCode=Y.REPLACEMENT_CHARACTER;else if(JDe(this.charRefCode))this._err(oD.surrogateCharacterReference),this.charRefCode=Y.REPLACEMENT_CHARACTER;else if(QDe(this.charRefCode))this._err(oD.noncharacterCharacterReference);else if(ZDe(this.charRefCode)||this.charRefCode===Y.CARRIAGE_RETURN){this._err(oD.controlCharacterReference);let e=oOe.get(this.charRefCode);e!==void 0&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}};const hOe=/* @__PURE__ */ new Set([X.DD,X.DT,X.LI,X.OPTGROUP,X.OPTION,X.P,X.RB,X.RP,X.RT,X.RTC]),gOe=/* @__PURE__ */ new Set([...hOe,X.CAPTION,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR]),SD=/* @__PURE__ */ new Map([[X.APPLET,uD.HTML],[X.CAPTION,uD.HTML],[X.HTML,uD.HTML],[X.MARQUEE,uD.HTML],[X.OBJECT,uD.HTML],[X.TABLE,uD.HTML],[X.TD,uD.HTML],[X.TEMPLATE,uD.HTML],[X.TH,uD.HTML],[X.ANNOTATION_XML,uD.MATHML],[X.MI,uD.MATHML],[X.MN,uD.MATHML],[X.MO,uD.MATHML],[X.MS,uD.MATHML],[X.MTEXT,uD.MATHML],[X.DESC,uD.SVG],[X.FOREIGN_OBJECT,uD.SVG],[X.TITLE,uD.SVG]]),_Oe=[X.H1,X.H2,X.H3,X.H4,X.H5,X.H6],vOe=[X.TR,X.TEMPLATE,X.HTML],yOe=[X.TBODY,X.TFOOT,X.THEAD,X.TEMPLATE,X.HTML],bOe=[X.TABLE,X.TEMPLATE,X.HTML],xOe=[X.TD,X.TH];var SOe=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=X.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===X.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===uD.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==uD.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&--this.tmplCount,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(_Oe,uD.HTML)}popUntilTableCellPopped(){this.popUntilPopped(xOe,uD.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(bOe,uD.HTML)}clearBackToTableBodyContext(){this.clearBackTo(yOe,uD.HTML)}clearBackToTableRowContext(){this.clearBackTo(vOe,uD.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===X.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===X.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===uD.HTML)return!0;if(SD.get(n)===r)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if(aOe(t)&&n===uD.HTML)return!0;if(SD.get(t)===n)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===uD.HTML)return!0;if((n===X.UL||n===X.OL)&&r===uD.HTML||SD.get(n)===r)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===uD.HTML)return!0;if(n===X.BUTTON&&r===uD.HTML||SD.get(n)===r)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===uD.HTML){if(n===e)return!0;if(n===X.TABLE||n===X.TEMPLATE||n===X.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===uD.HTML){if(t===X.TBODY||t===X.THEAD||t===X.TFOOT)return!0;if(t===X.TABLE||t===X.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===uD.HTML){if(n===e)return!0;if(n!==X.OPTION&&n!==X.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;hOe.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;gOe.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&gOe.has(this.currentTagId);)this.pop()}},CD;(function(e){e[e.Marker=0]=`Marker`,e[e.Element=1]=`Element`})(CD=CD||={});const COe={type:CD.Marker};var wOe=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===CD.Marker)break;let{element:o}=t;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===a){let t=this.treeAdapter.getAttrList(o);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;let r=new Map(t.map(e=>[e.name,e.value])),i=0;for(let e=0;e<n.length;e++){let t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(i+=1,i>=3&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(COe)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:CD.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:CD.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(COe);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===CD.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===CD.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===CD.Element&&t.element===e)}};function TOe(e){return{nodeName:`#text`,value:e,parentNode:null}}const wD={createDocument(){return{nodeName:`#document`,mode:fD.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:`#document-fragment`,childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:`#comment`,data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>e.nodeName===`#documentType`);if(i)i.name=t,i.publicId=n,i.systemId=r;else{let i={nodeName:`#documentType`,name:t,publicId:n,systemId:r,parentNode:null};wD.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(wD.isTextNode(n)){n.value+=t;return}}wD.appendChild(e,TOe(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&wD.isTextNode(r)?r.value+=t:wD.insertBefore(e,TOe(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName===`#text`},isCommentNode(e){return e.nodeName===`#comment`},isDocumentTypeNode(e){return e.nodeName===`#documentType`},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,`tagName`)},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},EOe=`html`,DOe=/* @__PURE__ */ `+//silmaril//dtd html pro v0r11 19970101//,-//as//dtd html 3.0 aswedit + extensions//,-//advasoft ltd//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//,-//sq//dtd html 2.0 hotmetal + extensions//,-//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//,-//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//`.split(`,`),OOe=[...DOe,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`],kOe=/* @__PURE__ */ new Set([`-//w3o//dtd w3 html strict 3.0//en//`,`-/w3c/dtd html 4.0 transitional/en`,`html`]),AOe=[`-//w3c//dtd xhtml 1.0 frameset//`,`-//w3c//dtd xhtml 1.0 transitional//`],jOe=[...AOe,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`];function MOe(e,t){return t.some(t=>e.startsWith(t))}function NOe(e){return e.name===EOe&&e.publicId===null&&(e.systemId===null||e.systemId===`about:legacy-compat`)}function POe(e){if(e.name!==EOe)return fD.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===`http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd`)return fD.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),kOe.has(n))return fD.QUIRKS;let e=t===null?OOe:DOe;if(MOe(n,e))return fD.QUIRKS;if(e=t===null?AOe:jOe,MOe(n,e))return fD.LIMITED_QUIRKS}return fD.NO_QUIRKS}const FOe={TEXT_HTML:`text/html`,APPLICATION_XML:`application/xhtml+xml`},IOe=new Map((/* @__PURE__ */ `attributeName.attributeType.baseFrequency.baseProfile.calcMode.clipPathUnits.diffuseConstant.edgeMode.filterUnits.glyphRef.gradientTransform.gradientUnits.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.limitingConeAngle.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.numOctaves.pathLength.patternContentUnits.patternTransform.patternUnits.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.refX.refY.repeatCount.repeatDur.requiredExtensions.requiredFeatures.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.surfaceScale.systemLanguage.tableValues.targetX.targetY.textLength.viewBox.viewTarget.xChannelSelector.yChannelSelector.zoomAndPan`.split(`.`)).map(e=>[e.toLowerCase(),e])),LOe=/* @__PURE__ */ new Map([[`xlink:actuate`,{prefix:`xlink`,name:`actuate`,namespace:uD.XLINK}],[`xlink:arcrole`,{prefix:`xlink`,name:`arcrole`,namespace:uD.XLINK}],[`xlink:href`,{prefix:`xlink`,name:`href`,namespace:uD.XLINK}],[`xlink:role`,{prefix:`xlink`,name:`role`,namespace:uD.XLINK}],[`xlink:show`,{prefix:`xlink`,name:`show`,namespace:uD.XLINK}],[`xlink:title`,{prefix:`xlink`,name:`title`,namespace:uD.XLINK}],[`xlink:type`,{prefix:`xlink`,name:`type`,namespace:uD.XLINK}],[`xml:base`,{prefix:`xml`,name:`base`,namespace:uD.XML}],[`xml:lang`,{prefix:`xml`,name:`lang`,namespace:uD.XML}],[`xml:space`,{prefix:`xml`,name:`space`,namespace:uD.XML}],[`xmlns`,{prefix:``,name:`xmlns`,namespace:uD.XMLNS}],[`xmlns:xlink`,{prefix:`xmlns`,name:`xlink`,namespace:uD.XMLNS}]]),ROe=new Map((/* @__PURE__ */ `altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.textPath`.split(`.`)).map(e=>[e.toLowerCase(),e])),zOe=/* @__PURE__ */ new Set([X.B,X.BIG,X.BLOCKQUOTE,X.BODY,X.BR,X.CENTER,X.CODE,X.DD,X.DIV,X.DL,X.DT,X.EM,X.EMBED,X.H1,X.H2,X.H3,X.H4,X.H5,X.H6,X.HEAD,X.HR,X.I,X.IMG,X.LI,X.LISTING,X.MENU,X.META,X.NOBR,X.OL,X.P,X.PRE,X.RUBY,X.S,X.SMALL,X.SPAN,X.STRONG,X.STRIKE,X.SUB,X.SUP,X.TABLE,X.TT,X.U,X.UL,X.VAR]);function BOe(e){let t=e.tagID;return t===X.FONT&&e.attrs.some(({name:e})=>e===dD.COLOR||e===dD.SIZE||e===dD.FACE)||zOe.has(t)}function VOe(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===`definitionurl`){e.attrs[t].name=`definitionURL`;break}}function HOe(e){for(let t=0;t<e.attrs.length;t++){let n=IOe.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function TD(e){for(let t=0;t<e.attrs.length;t++){let n=LOe.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function UOe(e){let t=ROe.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=mD(e.tagName))}function WOe(e,t){return t===uD.MATHML&&(e===X.MI||e===X.MO||e===X.MN||e===X.MS||e===X.MTEXT)}function GOe(e,t,n){if(t===uD.MATHML&&e===X.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===dD.ENCODING){let t=n[e].value.toLowerCase();return t===FOe.TEXT_HTML||t===FOe.APPLICATION_XML}}return t===uD.SVG&&(e===X.FOREIGN_OBJECT||e===X.DESC||e===X.TITLE)}function KOe(e,t,n,r){return(!r||r===uD.HTML)&&GOe(e,t,n)||(!r||r===uD.MATHML)&&WOe(e,t)}var ED;(function(e){e[e.INITIAL=0]=`INITIAL`,e[e.BEFORE_HTML=1]=`BEFORE_HTML`,e[e.BEFORE_HEAD=2]=`BEFORE_HEAD`,e[e.IN_HEAD=3]=`IN_HEAD`,e[e.IN_HEAD_NO_SCRIPT=4]=`IN_HEAD_NO_SCRIPT`,e[e.AFTER_HEAD=5]=`AFTER_HEAD`,e[e.IN_BODY=6]=`IN_BODY`,e[e.TEXT=7]=`TEXT`,e[e.IN_TABLE=8]=`IN_TABLE`,e[e.IN_TABLE_TEXT=9]=`IN_TABLE_TEXT`,e[e.IN_CAPTION=10]=`IN_CAPTION`,e[e.IN_COLUMN_GROUP=11]=`IN_COLUMN_GROUP`,e[e.IN_TABLE_BODY=12]=`IN_TABLE_BODY`,e[e.IN_ROW=13]=`IN_ROW`,e[e.IN_CELL=14]=`IN_CELL`,e[e.IN_SELECT=15]=`IN_SELECT`,e[e.IN_SELECT_IN_TABLE=16]=`IN_SELECT_IN_TABLE`,e[e.IN_TEMPLATE=17]=`IN_TEMPLATE`,e[e.AFTER_BODY=18]=`AFTER_BODY`,e[e.IN_FRAMESET=19]=`IN_FRAMESET`,e[e.AFTER_FRAMESET=20]=`AFTER_FRAMESET`,e[e.AFTER_AFTER_BODY=21]=`AFTER_AFTER_BODY`,e[e.AFTER_AFTER_FRAMESET=22]=`AFTER_AFTER_FRAMESET`})(ED||={});const qOe={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},JOe=/* @__PURE__ */ new Set([X.TABLE,X.TBODY,X.TFOOT,X.THEAD,X.TR]),YOe={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:wD,onParseError:null};var XOe=class{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=ED.INITIAL,this.originalInsertionMode=ED.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...YOe,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new mOe(this.options,this),this.activeFormattingElements=new wOe(this.treeAdapter),this.fragmentContextID=n?mD(this.treeAdapter.getTagName(n)):X.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new SOe(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...YOe,...t};e??=n.treeAdapter.createElement(pD.TEMPLATE,uD.HTML,[]);let r=n.treeAdapter.createElement(`documentmock`,uD.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===X.TEMPLATE&&i.tmplInsertionModeStack.unshift(ED.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){if(!this.onParseError)return;let r=e.location??qOe,i={code:t,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:n?r.startLine:r.endLine,endCol:n?r.startCol:r.endCol,endOffset:n?r.startOffset:r.endOffset};this.onParseError(i)}onItemPush(e,t,n){var r,i;(i=(r=this.treeAdapter).onItemPush)==null||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(r=(n=this.treeAdapter).onItemPop)==null||r.call(n,e,this.openElements.current),t){let e,t;this.openElements.stackTop===0&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||this.treeAdapter.getNamespaceURI(e)===uD.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,uD.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=ED.TEXT}switchToPlaintextParsing(){this.insertionMode=ED.TEXT,this.originalInsertionMode=ED.IN_BODY,this.tokenizer.state=gD.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===pD.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===uD.HTML)switch(this.fragmentContextID){case X.TITLE:case X.TEXTAREA:this.tokenizer.state=gD.RCDATA;break;case X.STYLE:case X.XMP:case X.IFRAME:case X.NOEMBED:case X.NOFRAMES:case X.NOSCRIPT:this.tokenizer.state=gD.RAWTEXT;break;case X.SCRIPT:this.tokenizer.state=gD.SCRIPT_DATA;break;case X.PLAINTEXT:this.tokenizer.state=gD.PLAINTEXT}}_setDocumentType(e){let t=e.name||``,n=e.publicId||``,r=e.systemId||``;if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,uD.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,uD.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(pD.HTML,uD.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,X.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=r[(n?r.lastIndexOf(n):r.length)-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===sD.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,e.tagID===X.SVG&&this.treeAdapter.getTagName(t)===pD.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===uD.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===X.MGLYPH||e.tagID===X.MALIGNMARK)&&!this._isIntegrationPoint(n,t,uD.HTML)}_processToken(e){switch(e.type){case sD.CHARACTER:this.onCharacter(e);break;case sD.NULL_CHARACTER:this.onNullCharacter(e);break;case sD.COMMENT:this.onComment(e);break;case sD.DOCTYPE:this.onDoctype(e);break;case sD.START_TAG:this._processStartTag(e);break;case sD.END_TAG:this.onEndTag(e);break;case sD.EOF:this.onEof(e);break;case sD.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return KOe(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===CD.Marker||this.openElements.contains(e.element)),n=t<0?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ED.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(X.P),this.openElements.popUntilTagNamePopped(X.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case X.TR:this.insertionMode=ED.IN_ROW;return;case X.TBODY:case X.THEAD:case X.TFOOT:this.insertionMode=ED.IN_TABLE_BODY;return;case X.CAPTION:this.insertionMode=ED.IN_CAPTION;return;case X.COLGROUP:this.insertionMode=ED.IN_COLUMN_GROUP;return;case X.TABLE:this.insertionMode=ED.IN_TABLE;return;case X.BODY:this.insertionMode=ED.IN_BODY;return;case X.FRAMESET:this.insertionMode=ED.IN_FRAMESET;return;case X.SELECT:this._resetInsertionModeForSelect(e);return;case X.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case X.HTML:this.insertionMode=this.headElement?ED.AFTER_HEAD:ED.BEFORE_HEAD;return;case X.TD:case X.TH:if(e>0){this.insertionMode=ED.IN_CELL;return}break;case X.HEAD:if(e>0){this.insertionMode=ED.IN_HEAD;return}}this.insertionMode=ED.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===X.TEMPLATE)break;if(e===X.TABLE){this.insertionMode=ED.IN_SELECT_IN_TABLE;return}}this.insertionMode=ED.IN_SELECT}_isElementCausesFosterParenting(e){return JOe.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case X.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===uD.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case X.TABLE:{let n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){let n=this.treeAdapter.getNamespaceURI(e);return iOe[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)HAe(this,e);else switch(this.insertionMode){case ED.INITIAL:AD(this,e);break;case ED.BEFORE_HTML:jD(this,e);break;case ED.BEFORE_HEAD:MD(this,e);break;case ED.IN_HEAD:FD(this,e);break;case ED.IN_HEAD_NO_SCRIPT:ID(this,e);break;case ED.AFTER_HEAD:LD(this,e);break;case ED.IN_BODY:case ED.IN_CAPTION:case ED.IN_CELL:case ED.IN_TEMPLATE:gke(this,e);break;case ED.TEXT:case ED.IN_SELECT:case ED.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case ED.IN_TABLE:case ED.IN_TABLE_BODY:case ED.IN_ROW:VD(this,e);break;case ED.IN_TABLE_TEXT:vAe(this,e);break;case ED.IN_COLUMN_GROUP:qD(this,e);break;case ED.AFTER_BODY:ZD(this,e);break;case ED.AFTER_AFTER_BODY:QD(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)VAe(this,e);else switch(this.insertionMode){case ED.INITIAL:AD(this,e);break;case ED.BEFORE_HTML:jD(this,e);break;case ED.BEFORE_HEAD:MD(this,e);break;case ED.IN_HEAD:FD(this,e);break;case ED.IN_HEAD_NO_SCRIPT:ID(this,e);break;case ED.AFTER_HEAD:LD(this,e);break;case ED.TEXT:this._insertCharacters(e);break;case ED.IN_TABLE:case ED.IN_TABLE_BODY:case ED.IN_ROW:VD(this,e);break;case ED.IN_COLUMN_GROUP:qD(this,e);break;case ED.AFTER_BODY:ZD(this,e);break;case ED.AFTER_AFTER_BODY:QD(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)OD(this,e);else switch(this.insertionMode){case ED.INITIAL:case ED.BEFORE_HTML:case ED.BEFORE_HEAD:case ED.IN_HEAD:case ED.IN_HEAD_NO_SCRIPT:case ED.AFTER_HEAD:case ED.IN_BODY:case ED.IN_TABLE:case ED.IN_CAPTION:case ED.IN_COLUMN_GROUP:case ED.IN_TABLE_BODY:case ED.IN_ROW:case ED.IN_CELL:case ED.IN_SELECT:case ED.IN_SELECT_IN_TABLE:case ED.IN_TEMPLATE:case ED.IN_FRAMESET:case ED.AFTER_FRAMESET:OD(this,e);break;case ED.IN_TABLE_TEXT:GD(this,e);break;case ED.AFTER_BODY:rke(this,e);break;case ED.AFTER_AFTER_BODY:case ED.AFTER_AFTER_FRAMESET:ike(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case ED.INITIAL:ake(this,e);break;case ED.BEFORE_HEAD:case ED.IN_HEAD:case ED.IN_HEAD_NO_SCRIPT:case ED.AFTER_HEAD:this._err(e,oD.misplacedDoctype);break;case ED.IN_TABLE_TEXT:GD(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,oD.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?WAe(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case ED.INITIAL:AD(this,e);break;case ED.BEFORE_HTML:oke(this,e);break;case ED.BEFORE_HEAD:cke(this,e);break;case ED.IN_HEAD:ND(this,e);break;case ED.IN_HEAD_NO_SCRIPT:dke(this,e);break;case ED.AFTER_HEAD:pke(this,e);break;case ED.IN_BODY:zD(this,e);break;case ED.IN_TABLE:HD(this,e);break;case ED.IN_TABLE_TEXT:GD(this,e);break;case ED.IN_CAPTION:bAe(this,e);break;case ED.IN_COLUMN_GROUP:KD(this,e);break;case ED.IN_TABLE_BODY:JD(this,e);break;case ED.IN_ROW:XD(this,e);break;case ED.IN_CELL:wAe(this,e);break;case ED.IN_SELECT:EAe(this,e);break;case ED.IN_SELECT_IN_TABLE:OAe(this,e);break;case ED.IN_TEMPLATE:AAe(this,e);break;case ED.AFTER_BODY:NAe(this,e);break;case ED.IN_FRAMESET:FAe(this,e);break;case ED.AFTER_FRAMESET:LAe(this,e);break;case ED.AFTER_AFTER_BODY:zAe(this,e);break;case ED.AFTER_AFTER_FRAMESET:BAe(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?GAe(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case ED.INITIAL:AD(this,e);break;case ED.BEFORE_HTML:ske(this,e);break;case ED.BEFORE_HEAD:lke(this,e);break;case ED.IN_HEAD:uke(this,e);break;case ED.IN_HEAD_NO_SCRIPT:fke(this,e);break;case ED.AFTER_HEAD:mke(this,e);break;case ED.IN_BODY:BD(this,e);break;case ED.TEXT:sAe(this,e);break;case ED.IN_TABLE:UD(this,e);break;case ED.IN_TABLE_TEXT:GD(this,e);break;case ED.IN_CAPTION:xAe(this,e);break;case ED.IN_COLUMN_GROUP:SAe(this,e);break;case ED.IN_TABLE_BODY:YD(this,e);break;case ED.IN_ROW:CAe(this,e);break;case ED.IN_CELL:TAe(this,e);break;case ED.IN_SELECT:DAe(this,e);break;case ED.IN_SELECT_IN_TABLE:kAe(this,e);break;case ED.IN_TEMPLATE:jAe(this,e);break;case ED.AFTER_BODY:PAe(this,e);break;case ED.IN_FRAMESET:IAe(this,e);break;case ED.AFTER_FRAMESET:RAe(this,e);break;case ED.AFTER_AFTER_BODY:QD(this,e)}}onEof(e){switch(this.insertionMode){case ED.INITIAL:AD(this,e);break;case ED.BEFORE_HTML:jD(this,e);break;case ED.BEFORE_HEAD:MD(this,e);break;case ED.IN_HEAD:FD(this,e);break;case ED.IN_HEAD_NO_SCRIPT:ID(this,e);break;case ED.AFTER_HEAD:LD(this,e);break;case ED.IN_BODY:case ED.IN_TABLE:case ED.IN_CAPTION:case ED.IN_COLUMN_GROUP:case ED.IN_TABLE_BODY:case ED.IN_ROW:case ED.IN_CELL:case ED.IN_SELECT:case ED.IN_SELECT_IN_TABLE:oAe(this,e);break;case ED.TEXT:cAe(this,e);break;case ED.IN_TABLE_TEXT:GD(this,e);break;case ED.IN_TEMPLATE:MAe(this,e);break;case ED.AFTER_BODY:case ED.IN_FRAMESET:case ED.AFTER_FRAMESET:case ED.AFTER_AFTER_BODY:case ED.AFTER_AFTER_FRAMESET:kD(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Y.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case ED.IN_HEAD:case ED.IN_HEAD_NO_SCRIPT:case ED.AFTER_HEAD:case ED.TEXT:case ED.IN_COLUMN_GROUP:case ED.IN_SELECT:case ED.IN_SELECT_IN_TABLE:case ED.IN_FRAMESET:case ED.AFTER_FRAMESET:this._insertCharacters(e);break;case ED.IN_BODY:case ED.IN_CAPTION:case ED.IN_CELL:case ED.IN_TEMPLATE:case ED.AFTER_BODY:case ED.AFTER_AFTER_BODY:case ED.AFTER_AFTER_FRAMESET:hke(this,e);break;case ED.IN_TABLE:case ED.IN_TABLE_BODY:case ED.IN_ROW:VD(this,e);break;case ED.IN_TABLE_TEXT:_Ae(this,e)}}};function ZOe(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):aAe(e,t),n}function QOe(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function $Oe(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=eke(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function eke(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function tke(e,t,n){let r=mD(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===X.TEMPLATE&&i===uD.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function nke(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function DD(e,t){for(let n=0;n<8;n++){let n=ZOe(e,t);if(!n)break;let r=QOe(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=$Oe(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&tke(e,a,i),nke(e,r,n)}}function OD(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function rke(e,t){e._appendCommentNode(t,e.openElements.items[0])}function ike(e,t){e._appendCommentNode(t,e.document)}function kD(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function ake(e,t){e._setDocumentType(t);let n=t.forceQuirks?fD.QUIRKS:POe(t);NOe(t)||e._err(t,oD.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=ED.BEFORE_HTML}function AD(e,t){e._err(t,oD.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,fD.QUIRKS),e.insertionMode=ED.BEFORE_HTML,e._processToken(t)}function oke(e,t){t.tagID===X.HTML?(e._insertElement(t,uD.HTML),e.insertionMode=ED.BEFORE_HEAD):jD(e,t)}function ske(e,t){let n=t.tagID;(n===X.HTML||n===X.HEAD||n===X.BODY||n===X.BR)&&jD(e,t)}function jD(e,t){e._insertFakeRootElement(),e.insertionMode=ED.BEFORE_HEAD,e._processToken(t)}function cke(e,t){switch(t.tagID){case X.HTML:zD(e,t);break;case X.HEAD:e._insertElement(t,uD.HTML),e.headElement=e.openElements.current,e.insertionMode=ED.IN_HEAD;break;default:MD(e,t)}}function lke(e,t){let n=t.tagID;n===X.HEAD||n===X.BODY||n===X.HTML||n===X.BR?MD(e,t):e._err(t,oD.endTagWithoutMatchingOpenElement)}function MD(e,t){e._insertFakeElement(pD.HEAD,X.HEAD),e.headElement=e.openElements.current,e.insertionMode=ED.IN_HEAD,e._processToken(t)}function ND(e,t){switch(t.tagID){case X.HTML:zD(e,t);break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:e._appendElement(t,uD.HTML),t.ackSelfClosing=!0;break;case X.TITLE:e._switchToTextParsing(t,gD.RCDATA);break;case X.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,gD.RAWTEXT):(e._insertElement(t,uD.HTML),e.insertionMode=ED.IN_HEAD_NO_SCRIPT);break;case X.NOFRAMES:case X.STYLE:e._switchToTextParsing(t,gD.RAWTEXT);break;case X.SCRIPT:e._switchToTextParsing(t,gD.SCRIPT_DATA);break;case X.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ED.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(ED.IN_TEMPLATE);break;case X.HEAD:e._err(t,oD.misplacedStartTagForHeadElement);break;default:FD(e,t)}}function uke(e,t){switch(t.tagID){case X.HEAD:e.openElements.pop(),e.insertionMode=ED.AFTER_HEAD;break;case X.BODY:case X.BR:case X.HTML:FD(e,t);break;case X.TEMPLATE:PD(e,t);break;default:e._err(t,oD.endTagWithoutMatchingOpenElement)}}function PD(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==X.TEMPLATE&&e._err(t,oD.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,oD.endTagWithoutMatchingOpenElement)}function FD(e,t){e.openElements.pop(),e.insertionMode=ED.AFTER_HEAD,e._processToken(t)}function dke(e,t){switch(t.tagID){case X.HTML:zD(e,t);break;case X.BASEFONT:case X.BGSOUND:case X.HEAD:case X.LINK:case X.META:case X.NOFRAMES:case X.STYLE:ND(e,t);break;case X.NOSCRIPT:e._err(t,oD.nestedNoscriptInHead);break;default:ID(e,t)}}function fke(e,t){switch(t.tagID){case X.NOSCRIPT:e.openElements.pop(),e.insertionMode=ED.IN_HEAD;break;case X.BR:ID(e,t);break;default:e._err(t,oD.endTagWithoutMatchingOpenElement)}}function ID(e,t){let n=t.type===sD.EOF?oD.openElementsLeftAfterEof:oD.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=ED.IN_HEAD,e._processToken(t)}function pke(e,t){switch(t.tagID){case X.HTML:zD(e,t);break;case X.BODY:e._insertElement(t,uD.HTML),e.framesetOk=!1,e.insertionMode=ED.IN_BODY;break;case X.FRAMESET:e._insertElement(t,uD.HTML),e.insertionMode=ED.IN_FRAMESET;break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:e._err(t,oD.abandonedHeadElementChild),e.openElements.push(e.headElement,X.HEAD),ND(e,t),e.openElements.remove(e.headElement);break;case X.HEAD:e._err(t,oD.misplacedStartTagForHeadElement);break;default:LD(e,t)}}function mke(e,t){switch(t.tagID){case X.BODY:case X.HTML:case X.BR:LD(e,t);break;case X.TEMPLATE:PD(e,t);break;default:e._err(t,oD.endTagWithoutMatchingOpenElement)}}function LD(e,t){e._insertFakeElement(pD.BODY,X.BODY),e.insertionMode=ED.IN_BODY,RD(e,t)}function RD(e,t){switch(t.type){case sD.CHARACTER:gke(e,t);break;case sD.WHITESPACE_CHARACTER:hke(e,t);break;case sD.COMMENT:OD(e,t);break;case sD.START_TAG:zD(e,t);break;case sD.END_TAG:BD(e,t);break;case sD.EOF:oAe(e,t)}}function hke(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function gke(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function _ke(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function vke(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function yke(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,uD.HTML),e.insertionMode=ED.IN_FRAMESET)}function bke(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,uD.HTML)}function xke(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),aOe(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,uD.HTML)}function Ske(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,uD.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Cke(e,t){let n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,uD.HTML),n||(e.formElement=e.openElements.current))}function wke(e,t){e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===X.LI&&r===X.LI||(n===X.DD||n===X.DT)&&(r===X.DD||r===X.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==X.ADDRESS&&r!==X.DIV&&r!==X.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,uD.HTML)}function Tke(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,uD.HTML),e.tokenizer.state=gD.PLAINTEXT}function Eke(e,t){e.openElements.hasInScope(X.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,uD.HTML),e.framesetOk=!1}function Dke(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(pD.A);n&&(DD(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,uD.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Oke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,uD.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function kke(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(X.NOBR)&&(DD(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,uD.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ake(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,uD.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function jke(e,t){e.treeAdapter.getDocumentMode(e.document)!==fD.QUIRKS&&e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,uD.HTML),e.framesetOk=!1,e.insertionMode=ED.IN_TABLE}function Mke(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,uD.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Nke(e){let t=eOe(e,dD.TYPE);return t!=null&&t.toLowerCase()===`hidden`}function Pke(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,uD.HTML),Nke(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Fke(e,t){e._appendElement(t,uD.HTML),t.ackSelfClosing=!0}function Ike(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._appendElement(t,uD.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Lke(e,t){t.tagName=pD.IMG,t.tagID=X.IMG,Mke(e,t)}function Rke(e,t){e._insertElement(t,uD.HTML),e.skipNextNewLine=!0,e.tokenizer.state=gD.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ED.TEXT}function zke(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,gD.RAWTEXT)}function Bke(e,t){e.framesetOk=!1,e._switchToTextParsing(t,gD.RAWTEXT)}function Vke(e,t){e._switchToTextParsing(t,gD.RAWTEXT)}function Hke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,uD.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===ED.IN_TABLE||e.insertionMode===ED.IN_CAPTION||e.insertionMode===ED.IN_TABLE_BODY||e.insertionMode===ED.IN_ROW||e.insertionMode===ED.IN_CELL?ED.IN_SELECT_IN_TABLE:ED.IN_SELECT}function Uke(e,t){e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,uD.HTML)}function Wke(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,uD.HTML)}function Gke(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(X.RTC),e._insertElement(t,uD.HTML)}function Kke(e,t){e._reconstructActiveFormattingElements(),VOe(t),TD(t),t.selfClosing?e._appendElement(t,uD.MATHML):e._insertElement(t,uD.MATHML),t.ackSelfClosing=!0}function qke(e,t){e._reconstructActiveFormattingElements(),HOe(t),TD(t),t.selfClosing?e._appendElement(t,uD.SVG):e._insertElement(t,uD.SVG),t.ackSelfClosing=!0}function Jke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,uD.HTML)}function zD(e,t){switch(t.tagID){case X.I:case X.S:case X.B:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.SMALL:case X.STRIKE:case X.STRONG:Oke(e,t);break;case X.A:Dke(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:xke(e,t);break;case X.P:case X.DL:case X.OL:case X.UL:case X.DIV:case X.DIR:case X.NAV:case X.MAIN:case X.MENU:case X.ASIDE:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.DETAILS:case X.ADDRESS:case X.ARTICLE:case X.SECTION:case X.SUMMARY:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:bke(e,t);break;case X.LI:case X.DD:case X.DT:wke(e,t);break;case X.BR:case X.IMG:case X.WBR:case X.AREA:case X.EMBED:case X.KEYGEN:Mke(e,t);break;case X.HR:Ike(e,t);break;case X.RB:case X.RTC:Wke(e,t);break;case X.RT:case X.RP:Gke(e,t);break;case X.PRE:case X.LISTING:Ske(e,t);break;case X.XMP:zke(e,t);break;case X.SVG:qke(e,t);break;case X.HTML:_ke(e,t);break;case X.BASE:case X.LINK:case X.META:case X.STYLE:case X.TITLE:case X.SCRIPT:case X.BGSOUND:case X.BASEFONT:case X.TEMPLATE:ND(e,t);break;case X.BODY:vke(e,t);break;case X.FORM:Cke(e,t);break;case X.NOBR:kke(e,t);break;case X.MATH:Kke(e,t);break;case X.TABLE:jke(e,t);break;case X.INPUT:Pke(e,t);break;case X.PARAM:case X.TRACK:case X.SOURCE:Fke(e,t);break;case X.IMAGE:Lke(e,t);break;case X.BUTTON:Eke(e,t);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:Ake(e,t);break;case X.IFRAME:Bke(e,t);break;case X.SELECT:Hke(e,t);break;case X.OPTION:case X.OPTGROUP:Uke(e,t);break;case X.NOEMBED:Vke(e,t);break;case X.FRAMESET:yke(e,t);break;case X.TEXTAREA:Rke(e,t);break;case X.NOSCRIPT:e.options.scriptingEnabled?Vke(e,t):Jke(e,t);break;case X.PLAINTEXT:Tke(e,t);break;case X.COL:case X.TH:case X.TD:case X.TR:case X.HEAD:case X.FRAME:case X.TBODY:case X.TFOOT:case X.THEAD:case X.CAPTION:case X.COLGROUP:break;default:Jke(e,t)}}function Yke(e,t){if(e.openElements.hasInScope(X.BODY)&&(e.insertionMode=ED.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Xke(e,t){e.openElements.hasInScope(X.BODY)&&(e.insertionMode=ED.AFTER_BODY,PAe(e,t))}function Zke(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Qke(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(X.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(X.FORM):n&&e.openElements.remove(n))}function $ke(e){e.openElements.hasInButtonScope(X.P)||e._insertFakeElement(pD.P,X.P),e._closePElement()}function eAe(e){e.openElements.hasInListItemScope(X.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(X.LI),e.openElements.popUntilTagNamePopped(X.LI))}function tAe(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function nAe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function rAe(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function iAe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(pD.BR,X.BR),e.openElements.pop(),e.framesetOk=!1}function aAe(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==X.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function BD(e,t){switch(t.tagID){case X.A:case X.B:case X.I:case X.S:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.NOBR:case X.SMALL:case X.STRIKE:case X.STRONG:DD(e,t);break;case X.P:$ke(e);break;case X.DL:case X.UL:case X.OL:case X.DIR:case X.DIV:case X.NAV:case X.PRE:case X.MAIN:case X.MENU:case X.ASIDE:case X.BUTTON:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.ADDRESS:case X.ARTICLE:case X.DETAILS:case X.SECTION:case X.SUMMARY:case X.LISTING:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:Zke(e,t);break;case X.LI:eAe(e);break;case X.DD:case X.DT:tAe(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:nAe(e);break;case X.BR:iAe(e);break;case X.BODY:Yke(e,t);break;case X.HTML:Xke(e,t);break;case X.FORM:Qke(e);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:rAe(e,t);break;case X.TEMPLATE:PD(e,t);break;default:aAe(e,t)}}function oAe(e,t){e.tmplInsertionModeStack.length>0?MAe(e,t):kD(e,t)}function sAe(e,t){var n;t.tagID===X.SCRIPT&&((n=e.scriptHandler)==null||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function cAe(e,t){e._err(t,oD.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function VD(e,t){if(JOe.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ED.IN_TABLE_TEXT,t.type){case sD.CHARACTER:vAe(e,t);break;case sD.WHITESPACE_CHARACTER:_Ae(e,t)}else WD(e,t)}function lAe(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,uD.HTML),e.insertionMode=ED.IN_CAPTION}function uAe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,uD.HTML),e.insertionMode=ED.IN_COLUMN_GROUP}function dAe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(pD.COLGROUP,X.COLGROUP),e.insertionMode=ED.IN_COLUMN_GROUP,KD(e,t)}function fAe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,uD.HTML),e.insertionMode=ED.IN_TABLE_BODY}function pAe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(pD.TBODY,X.TBODY),e.insertionMode=ED.IN_TABLE_BODY,JD(e,t)}function mAe(e,t){e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function hAe(e,t){Nke(t)?e._appendElement(t,uD.HTML):WD(e,t),t.ackSelfClosing=!0}function gAe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,uD.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function HD(e,t){switch(t.tagID){case X.TD:case X.TH:case X.TR:pAe(e,t);break;case X.STYLE:case X.SCRIPT:case X.TEMPLATE:ND(e,t);break;case X.COL:dAe(e,t);break;case X.FORM:gAe(e,t);break;case X.TABLE:mAe(e,t);break;case X.TBODY:case X.TFOOT:case X.THEAD:fAe(e,t);break;case X.INPUT:hAe(e,t);break;case X.CAPTION:lAe(e,t);break;case X.COLGROUP:uAe(e,t);break;default:WD(e,t)}}function UD(e,t){switch(t.tagID){case X.TABLE:e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode());break;case X.TEMPLATE:PD(e,t);break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:WD(e,t)}}function WD(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,RD(e,t),e.fosterParentingEnabled=n}function _Ae(e,t){e.pendingCharacterTokens.push(t)}function vAe(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function GD(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)WD(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const yAe=/* @__PURE__ */ new Set([X.CAPTION,X.COL,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR]);function bAe(e,t){let n=t.tagID;yAe.has(n)?e.openElements.hasInTableScope(X.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ED.IN_TABLE,HD(e,t)):zD(e,t)}function xAe(e,t){let n=t.tagID;switch(n){case X.CAPTION:case X.TABLE:e.openElements.hasInTableScope(X.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ED.IN_TABLE,n===X.TABLE&&UD(e,t));break;case X.BODY:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:BD(e,t)}}function KD(e,t){switch(t.tagID){case X.HTML:zD(e,t);break;case X.COL:e._appendElement(t,uD.HTML),t.ackSelfClosing=!0;break;case X.TEMPLATE:ND(e,t);break;default:qD(e,t)}}function SAe(e,t){switch(t.tagID){case X.COLGROUP:e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=ED.IN_TABLE);break;case X.TEMPLATE:PD(e,t);break;case X.COL:break;default:qD(e,t)}}function qD(e,t){e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=ED.IN_TABLE,e._processToken(t))}function JD(e,t){switch(t.tagID){case X.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,uD.HTML),e.insertionMode=ED.IN_ROW;break;case X.TH:case X.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(pD.TR,X.TR),e.insertionMode=ED.IN_ROW,XD(e,t);break;case X.CAPTION:case X.COL:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ED.IN_TABLE,HD(e,t));break;default:HD(e,t)}}function YD(e,t){let n=t.tagID;switch(t.tagID){case X.TBODY:case X.TFOOT:case X.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ED.IN_TABLE);break;case X.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ED.IN_TABLE,UD(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TD:case X.TH:case X.TR:break;default:UD(e,t)}}function XD(e,t){switch(t.tagID){case X.TH:case X.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,uD.HTML),e.insertionMode=ED.IN_CELL,e.activeFormattingElements.insertMarker();break;case X.CAPTION:case X.COL:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:case X.TR:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ED.IN_TABLE_BODY,JD(e,t));break;default:HD(e,t)}}function CAe(e,t){switch(t.tagID){case X.TR:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ED.IN_TABLE_BODY);break;case X.TABLE:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ED.IN_TABLE_BODY,YD(e,t));break;case X.TBODY:case X.TFOOT:case X.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(X.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ED.IN_TABLE_BODY,YD(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TD:case X.TH:break;default:UD(e,t)}}function wAe(e,t){let n=t.tagID;yAe.has(n)?(e.openElements.hasInTableScope(X.TD)||e.openElements.hasInTableScope(X.TH))&&(e._closeTableCell(),XD(e,t)):zD(e,t)}function TAe(e,t){let n=t.tagID;switch(n){case X.TD:case X.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ED.IN_ROW);break;case X.TABLE:case X.TBODY:case X.TFOOT:case X.THEAD:case X.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),CAe(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:break;default:BD(e,t)}}function EAe(e,t){switch(t.tagID){case X.HTML:zD(e,t);break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._insertElement(t,uD.HTML);break;case X.OPTGROUP:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop(),e._insertElement(t,uD.HTML);break;case X.INPUT:case X.KEYGEN:case X.TEXTAREA:case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),t.tagID!==X.SELECT&&e._processStartTag(t));break;case X.SCRIPT:case X.TEMPLATE:ND(e,t)}}function DAe(e,t){switch(t.tagID){case X.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===X.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===X.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop();break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop();break;case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode());break;case X.TEMPLATE:PD(e,t)}}function OAe(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e._processStartTag(t)):EAe(e,t)}function kAe(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e.onEndTag(t)):DAe(e,t)}function AAe(e,t){switch(t.tagID){case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:ND(e,t);break;case X.CAPTION:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.tmplInsertionModeStack[0]=ED.IN_TABLE,e.insertionMode=ED.IN_TABLE,HD(e,t);break;case X.COL:e.tmplInsertionModeStack[0]=ED.IN_COLUMN_GROUP,e.insertionMode=ED.IN_COLUMN_GROUP,KD(e,t);break;case X.TR:e.tmplInsertionModeStack[0]=ED.IN_TABLE_BODY,e.insertionMode=ED.IN_TABLE_BODY,JD(e,t);break;case X.TD:case X.TH:e.tmplInsertionModeStack[0]=ED.IN_ROW,e.insertionMode=ED.IN_ROW,XD(e,t);break;default:e.tmplInsertionModeStack[0]=ED.IN_BODY,e.insertionMode=ED.IN_BODY,zD(e,t)}}function jAe(e,t){t.tagID===X.TEMPLATE&&PD(e,t)}function MAe(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):kD(e,t)}function NAe(e,t){t.tagID===X.HTML?zD(e,t):ZD(e,t)}function PAe(e,t){if(t.tagID===X.HTML){if(e.fragmentContext||(e.insertionMode=ED.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===X.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!e.treeAdapter.getNodeSourceCodeLocation(n)?.endTag&&e._setEndLocation(n,t)}}else ZD(e,t)}function ZD(e,t){e.insertionMode=ED.IN_BODY,RD(e,t)}function FAe(e,t){switch(t.tagID){case X.HTML:zD(e,t);break;case X.FRAMESET:e._insertElement(t,uD.HTML);break;case X.FRAME:e._appendElement(t,uD.HTML),t.ackSelfClosing=!0;break;case X.NOFRAMES:ND(e,t)}}function IAe(e,t){t.tagID===X.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==X.FRAMESET&&(e.insertionMode=ED.AFTER_FRAMESET))}function LAe(e,t){switch(t.tagID){case X.HTML:zD(e,t);break;case X.NOFRAMES:ND(e,t)}}function RAe(e,t){t.tagID===X.HTML&&(e.insertionMode=ED.AFTER_AFTER_FRAMESET)}function zAe(e,t){t.tagID===X.HTML?zD(e,t):QD(e,t)}function QD(e,t){e.insertionMode=ED.IN_BODY,RD(e,t)}function BAe(e,t){switch(t.tagID){case X.HTML:zD(e,t);break;case X.NOFRAMES:ND(e,t)}}function VAe(e,t){t.chars=`�`,e._insertCharacters(t)}function HAe(e,t){e._insertCharacters(t),e.framesetOk=!1}function UAe(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==uD.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function WAe(e,t){if(BOe(t))UAe(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===uD.MATHML?VOe(t):r===uD.SVG&&(UOe(t),HOe(t)),TD(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function GAe(e,t){if(t.tagID===X.P||t.tagID===X.BR)UAe(e),e._endTagOutsideForeignContent(t);else for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===uD.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}pD.AREA,pD.BASE,pD.BASEFONT,pD.BGSOUND,pD.BR,pD.COL,pD.EMBED,pD.FRAME,pD.HR,pD.IMG,pD.INPUT,pD.KEYGEN,pD.LINK,pD.META,pD.PARAM,pD.SOURCE,pD.TRACK,pD.WBR;function KAe(e,t){return XOe.parse(e,t)}function qAe(e,t,n){typeof e==`string`&&(n=t,t=e,e=null);let r=XOe.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}const JAe={abandonedHeadElementChild:{reason:`Unexpected metadata element after head`,description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:`Unexpected abruptly closed empty comment`,description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:`Unexpected abruptly closed public identifier`,description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:`Unexpected abruptly closed system identifier`,description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:`Unexpected non-digit at start of numeric character reference`,description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:`Unexpected CDATA section in HTML`,description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:`Unexpected too big numeric character reference`,description:`Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)`},closingOfElementWithOpenChildElements:{reason:`Unexpected closing tag with open child elements`,description:`Unexpectedly closing tag. Expected other tags to be closed first`,url:!1},controlCharacterInInputStream:{reason:`Unexpected control character`,description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:`Unexpected control character reference`,description:`Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace`},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:`Unexpected duplicate attribute`,description:`Unexpectedly double attribute. Expected attributes to occur only once`},endTagWithAttributes:{reason:`Unexpected attribute on closing tag`,description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:`Unexpected slash at end of closing tag`,description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:`Unexpected unopened end tag`,description:`Unexpected end tag. Expected no end tag or another end tag`,url:!1},eofBeforeTagName:{reason:`Unexpected end of file`,description:`Unexpected end of file. Expected tag name instead`},eofInCdata:{reason:`Unexpected end of file in CDATA`,description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:`Unexpected end of file in comment`,description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:`Unexpected end of file in doctype`,description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:`Unexpected end of file in element that can only contain text`,description:`Unexpected end of file. Expected text or a closing tag`,url:!1},eofInScriptHtmlCommentLikeText:{reason:`Unexpected end of file in comment inside script`,description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:`Unexpected end of file in tag`,description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:`Incorrectly closed comment`,description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:`Incorrectly opened comment`,description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:`Invalid sequence after doctype name`,description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:`Invalid first character in tag name`,description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:`Misplaced doctype`,description:`Unexpected doctype. Expected doctype before head`,url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:`Missing attribute value`,description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:`Missing doctype before other content`,description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:`Missing doctype name`,description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:`Missing public identifier in doctype`,description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:`Missing system identifier in doctype`,description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:`Missing name in end tag`,description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:`Missing quote before public identifier in doctype`,description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:`Missing quote before system identifier in doctype`,description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:`Missing semicolon after character reference`,description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:`Missing whitespace after public identifier in doctype`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:`Missing whitespace after system identifier in doctype`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:`Missing whitespace before doctype name`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:`Missing whitespace between attributes`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:`Missing whitespace between public and system identifiers in doctype`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:`Unexpected nested comment`,description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:`Unexpected non-conforming doctype declaration`,description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:`Unexpected trailing slash on start tag of non-void element`,description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:`Unexpected noncharacter code point referenced by character reference`,description:`Unexpected code point. Do not use noncharacters in HTML`},noncharacterInInputStream:{reason:`Unexpected noncharacter character`,description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:`Unexpected NULL character referenced by character reference`,description:`Unexpected code point. Do not use NULL characters in HTML`},openElementsLeftAfterEof:{reason:`Unexpected end of file`,description:`Unexpected end of file. Expected closing tag instead`,url:!1},surrogateCharacterReference:{reason:`Unexpected surrogate character referenced by character reference`,description:`Unexpected code point. Do not use lone surrogate characters in HTML`},surrogateInInputStream:{reason:`Unexpected surrogate character`,description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:`Invalid character after system identifier in doctype`,description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:`Unexpected character in attribute name`,description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:`Unexpected character in unquoted attribute value`,description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:`Unexpected equals sign before attribute name`,description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:`Unexpected NULL character`,description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:`Unexpected question mark instead of tag name`,description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:`Unexpected slash in tag`,description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:`Unexpected unknown named character reference`,description:`Unexpected character reference. Expected known named character references`}},YAe=/-[a-z]/g,XAe=/%c(?:([-+])(\d+))?/g,ZAe=/%x/g,QAe={2:!0,1:!1,0:null},$Ae={};function eje(e,t){let n=t||$Ae,r=n.onerror,i=e instanceof et?e:new et(e),a=n.fragment?qAe:KAe,o=String(i);return HDe(a(o,{sourceCodeLocationInfo:!0,onParseError:n.onerror?s:null,scriptingEnabled:!1}),{file:i,space:n.space,verbose:n.verbose});function s(e){let t=e.code,a=tje(t),s=n[a]??!0,c=typeof s==`number`?s:+!!s;if(c){let n=JAe[a],o=new Be(l(n.reason),{place:{start:{line:e.startLine,column:e.startCol,offset:e.startOffset},end:{line:e.endLine,column:e.endCol,offset:e.endOffset}},ruleId:t,source:`hast-util-from-html`});i.path&&(o.file=i.path,o.name=i.path+`:`+o.name),o.fatal=QAe[c],o.note=l(n.description),o.url=n.url===!1?void 0:`https://html.spec.whatwg.org/multipage/parsing.html#parse-error-`+t,r(o)}function l(t){return t.replace(XAe,n).replace(ZAe,r);function n(t,n,r){let i=(r?Number.parseInt(r,10):0)*(n===`-`?-1:1);return rje(o.charAt(e.startOffset+i))}function r(){return ije(o.charCodeAt(e.startOffset))}}}}function tje(e){return e.replace(YAe,nje)}function nje(e){return e.charAt(1).toUpperCase()}function rje(e){return e==="`"?"` ` `":e}function ije(e){return`0x`+e.toString(16).toUpperCase()}var aje=/* @__PURE__ */ a(((e,t)=>{let n=process||{},r=n.argv||[],i=n.env||{},a=!(i.NO_COLOR||r.includes(`--no-color`))&&(!!i.FORCE_COLOR||r.includes(`--color`)||n.platform===`win32`||(n.stdout||{}).isTTY&&i.TERM!==`dumb`||!!i.CI),o=(e,t,n=e)=>r=>{let i=``+r,a=i.indexOf(t,e.length);return~a?e+s(i,t,n,a)+t:e+i+t},s=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},c=(e=a)=>{let t=e?o:()=>String;return{isColorSupported:e,reset:t(`\x1B[0m`,`\x1B[0m`),bold:t(`\x1B[1m`,`\x1B[22m`,`\x1B[22m\x1B[1m`),dim:t(`\x1B[2m`,`\x1B[22m`,`\x1B[22m\x1B[2m`),italic:t(`\x1B[3m`,`\x1B[23m`),underline:t(`\x1B[4m`,`\x1B[24m`),inverse:t(`\x1B[7m`,`\x1B[27m`),hidden:t(`\x1B[8m`,`\x1B[28m`),strikethrough:t(`\x1B[9m`,`\x1B[29m`),black:t(`\x1B[30m`,`\x1B[39m`),red:t(`\x1B[31m`,`\x1B[39m`),green:t(`\x1B[32m`,`\x1B[39m`),yellow:t(`\x1B[33m`,`\x1B[39m`),blue:t(`\x1B[34m`,`\x1B[39m`),magenta:t(`\x1B[35m`,`\x1B[39m`),cyan:t(`\x1B[36m`,`\x1B[39m`),white:t(`\x1B[37m`,`\x1B[39m`),gray:t(`\x1B[90m`,`\x1B[39m`),bgBlack:t(`\x1B[40m`,`\x1B[49m`),bgRed:t(`\x1B[41m`,`\x1B[49m`),bgGreen:t(`\x1B[42m`,`\x1B[49m`),bgYellow:t(`\x1B[43m`,`\x1B[49m`),bgBlue:t(`\x1B[44m`,`\x1B[49m`),bgMagenta:t(`\x1B[45m`,`\x1B[49m`),bgCyan:t(`\x1B[46m`,`\x1B[49m`),bgWhite:t(`\x1B[47m`,`\x1B[49m`),blackBright:t(`\x1B[90m`,`\x1B[39m`),redBright:t(`\x1B[91m`,`\x1B[39m`),greenBright:t(`\x1B[92m`,`\x1B[39m`),yellowBright:t(`\x1B[93m`,`\x1B[39m`),blueBright:t(`\x1B[94m`,`\x1B[39m`),magentaBright:t(`\x1B[95m`,`\x1B[39m`),cyanBright:t(`\x1B[96m`,`\x1B[39m`),whiteBright:t(`\x1B[97m`,`\x1B[39m`),bgBlackBright:t(`\x1B[100m`,`\x1B[49m`),bgRedBright:t(`\x1B[101m`,`\x1B[49m`),bgGreenBright:t(`\x1B[102m`,`\x1B[49m`),bgYellowBright:t(`\x1B[103m`,`\x1B[49m`),bgBlueBright:t(`\x1B[104m`,`\x1B[49m`),bgMagentaBright:t(`\x1B[105m`,`\x1B[49m`),bgCyanBright:t(`\x1B[106m`,`\x1B[49m`),bgWhiteBright:t(`\x1B[107m`,`\x1B[49m`)}};t.exports=c(),t.exports.createColors=c})),oje=/* @__PURE__ */ a(((e,t)=>{let n=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,a=/[\da-f]/i;t.exports=function(e,t={}){let o=e.css.valueOf(),s=t.ignoreErrors,c,l,u,d,f,p,m,h,g,_,v=o.length,y=0,b=[],x=[],S=-1;function C(){return y}function w(t){throw e.error(`Unclosed `+t,y)}function T(){return x.length===0&&y>=v}function E(e){if(x.length)return x.pop();if(y>=v)return;let t=e?e.ignoreUnclosed:!1;switch(c=o.charCodeAt(y),c){case 10:case 32:case 9:case 13:case 12:d=y;do d+=1,c=o.charCodeAt(d);while(c===32||c===10||c===9||c===13||c===12);p=[`space`,o.slice(y,d)],y=d-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(c);p=[e,e,y];break}case 40:if(_=b.length?b.pop()[1]:``,g=o.charCodeAt(y+1),_===`url`&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){d=y;do{if(m=!1,d=o.indexOf(`)`,d+1),d===-1){if(s||t){d=y;break}w(`bracket`)}for(h=d;o.charCodeAt(h-1)===92;)--h,m=!m}while(m);p=[`brackets`,o.slice(y,d+1),y,d],y=d}else y<=S?p=[`(`,`(`,y]:(d=o.indexOf(`)`,y+1),l=o.slice(y,d+1),d===-1||i.test(l)?(S=d===-1?v:d,p=[`(`,`(`,y]):(p=[`brackets`,l,y,d],y=d));break;case 39:case 34:f=c===39?`'`:`"`,d=y;do{if(m=!1,d=o.indexOf(f,d+1),d===-1){if(s||t){d=y+1;break}w(`string`)}for(h=d;o.charCodeAt(h-1)===92;)--h,m=!m}while(m);p=[`string`,o.slice(y,d+1),y,d],y=d;break;case 64:n.lastIndex=y+1,n.test(o),d=n.lastIndex===0?o.length-1:n.lastIndex-2,p=[`at-word`,o.slice(y,d+1),y,d],y=d;break;case 92:for(d=y,u=!0;o.charCodeAt(d+1)===92;)d+=1,u=!u;if(c=o.charCodeAt(d+1),u&&c!==47&&c!==32&&c!==10&&c!==9&&c!==13&&c!==12&&(d+=1,a.test(o.charAt(d)))){for(;a.test(o.charAt(d+1));)d+=1;o.charCodeAt(d+1)===32&&(d+=1)}p=[`word`,o.slice(y,d+1),y,d],y=d;break;default:c===47&&o.charCodeAt(y+1)===42?(d=o.indexOf(`*/`,y+2)+1,d===0&&(s||t?d=o.length:w(`comment`)),p=[`comment`,o.slice(y,d+1),y,d],y=d):(r.lastIndex=y+1,r.test(o),d=r.lastIndex===0?o.length-1:r.lastIndex-2,p=[`word`,o.slice(y,d+1),y,d],b.push(p),y=d)}return y++,p}function D(e){x.push(e)}return{back:D,endOfFile:T,nextToken:E,position:C}}})),sje=/* @__PURE__ */ a(((e,t)=>{let n=aje(),r=oje(),i;function a(e){i=e}let o={";":n.yellow,":":n.yellow,"(":n.cyan,")":n.cyan,"[":n.yellow,"]":n.yellow,"{":n.yellow,"}":n.yellow,"at-word":n.cyan,brackets:n.cyan,call:n.cyan,class:n.yellow,comment:n.gray,hash:n.magenta,string:n.green};function s([e,t],n){if(e===`word`){if(t[0]===`.`)return`class`;if(t[0]===`#`)return`hash`}if(!n.endOfFile()){let e=n.nextToken();if(n.back(e),e[0]===`brackets`||e[0]===`(`)return`call`}return e}function c(e){let t=r(new i(e),{ignoreErrors:!0}),n=``;for(;!t.endOfFile();){let e=t.nextToken(),r=o[s(e,t)];n+=r?e[1].split(/\r?\n/).map(e=>r(e)).join(`
528
- `):e[1]}return n}c.registerInput=a,t.exports=c})),$D=/* @__PURE__ */ a(((e,t)=>{let n=aje(),r=sje();var i=class e extends Error{constructor(t,n,r,i,a,o){super(t),this.name=`CssSyntaxError`,this.reason=t,a&&(this.file=a),i&&(this.source=i),o&&(this.plugin=o),n!==void 0&&r!==void 0&&(typeof n==`number`?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason}showSourceCode(e){if(!this.source)return``;let t=this.source;e??=n.isColorSupported;let i=e=>e,a=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:s}=n.createColors(!0);a=t=>e(s(t)),i=e=>t(e),r&&(o=e=>r(e))}let s=t.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length;return s.slice(c,l).map((e,t)=>{let n=c+1+t,r=` `+(` `+n).slice(-u)+` | `;if(n===this.line){if(e.length>160){let t=Math.max(0,this.column-20),n=Math.max(this.column+20,this.endColumn+20),s=e.slice(t,n),c=i(r.replace(/\d/g,` `))+e.slice(0,Math.min(this.column-1,19)).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(s)+`
525
+ if(r.type===`JSXSpreadChild`)throw Error(`JSX spread children are not supported`);this[r.type](r,t)}this[e.closingFragment.type](e.closingFragment,t)}function pTe(e,t){t.write(e.name,e)}function mTe(e,t){this[e.object.type](e.object,t),t.write(`.`),this[e.property.type](e.property,t)}function hTe(e,t){this[e.namespace.type](e.namespace,t),t.write(`:`),this[e.name.type](e.name,t)}function gTe(e,t){let n=-1;if(t.write(`<`),this[e.name.type](e.name,t),e.attributes)for(;++n<e.attributes.length;)t.write(` `),this[e.attributes[n].type](e.attributes[n],t);t.write(e.selfClosing?` />`:`>`)}function _Te(e,t){t.write(`<>`,e)}function vTe(e,t){t.write(`{`),this.SpreadElement(e,t),t.write(`}`)}function yTe(e,t){t.write(bTe(e.value).replace(/[<>{}]/g,xTe),e)}function bTe(e){return e.replace(/&(?=[#a-z])/gi,`&amp;`)}function xTe(e){return e===`<`?`&lt;`:e===`>`?`&gt;`:e===`{`?`&#123;`:`&#125;`}function WT(e){return typeof e==`string`?e.endsWith(`/index`)?e.slice(0,-6):e===`index`?``:e:e}const STe=e=>e.startsWith(`./`)||e.startsWith(`../`),CTe=(e,t,n)=>{let r=t.search(/[#?]/),i=r===-1?t:t.slice(0,r),a=r===-1?``:t.slice(r),o=Et.normalize(Et.join(e,i)),s=o.startsWith(`/`)&&!o.startsWith(`//`)?o:`/${o}`;if(n){let e=s.replace(/\.mdx?$/i,``);e!==s&&(s=WT(e)||`/`)}return s+a},wTe=e=>{let t=Et.dirname(e.replace(/^\/+/,``).replace(/\.mdx?$/i,``));return t===`.`||t===``?`/`:`/${t}`},TTe=(e,t,n)=>STe(t)?CTe(wTe(e),t,n):t,GT=e=>{let t=[];return p(e,e=>{if(st(e)&&lt(e))for(let n of e.data.estree.body)f(n)&&typeof n.source.value==`string`&&t.push(n.source.value)}),t},ETe=e=>e.startsWith(`./`)||e.startsWith(`../`),DTe=e=>e.startsWith(`/`)||ETe(e),KT=(e,t)=>{if(!DTe(e))return null;let n;if(e.startsWith(`/`))n=Et.normalize(e);else{let r=Et.dirname(t.startsWith(`/`)?t:`/`+t);n=Et.resolve(r,e)}return n},OTe=[`.jsx`,`.tsx`],kTe=[`.mdx`,...OTe,`.md`],qT=e=>{let t=e.startsWith(`.`)?e:`.${e}`;return kTe.includes(t)};function JT(e,t,n){let r=fe(n||t),i=!0;t&&typeof t==`object`&&`cascade`in t&&typeof t.cascade==`boolean`&&(i=t.cascade),a(e);function a(t,n,o){if(t!==e&&r(t,n,o))return!1;if(`children`in t&&Array.isArray(t.children)){let n=t,r=n.children,o=-1,s=0;if(r.length>0){for(;++o<r.length;)a(r[o],o,n)&&(r[s++]=r[o]);if(t!==e&&i&&!s)return!1;r.length=s}}return!0}}const YT=e=>e.type===`Identifier`?e.name:String(e.value),XT=e=>/^[\p{ID_Start}$_][\p{ID_Continue}$\u200C\u200D]*$/u.test(e),ATe=e=>YT(e.imported),ZT=e=>{if(!st(e)||!e.data?.estree?.body||e.data.estree.sourceType!==`module`)return!1;for(let t of e.data.estree.body)if(ue(t.type))return!0;return!1},jTe=e=>{if(e)return e.startsWith(`export`)?e:`export ${e}`},QT=e=>{let t={};p(e,n=>{if(ZT(n)){for(let r of n.data.estree.body)if(r.type===`ExportDefaultDeclaration`){if(r.declaration.type===`Identifier`){let e=PTe(r.declaration.name,n);if(e){let r=structuredClone(n);r.data.estree.body=[e];let i=HT(r.data.estree,{handlers:UT}).value;t.default=i;continue}}let e=structuredClone(n);e.data.estree.body=[r];let i=HT(e.data.estree,{handlers:UT}).value;t.default=i}else if(r.type===`ExportNamedDeclaration`&&r.specifiers.length>0)for(let i of r.specifiers){let r=i.local.name,a=YT(i.exported),o=PTe(r,n)??NTe(r,e);if(o){let e=structuredClone(n);e.data.estree.body=[o];let r=HT(e.data.estree,{handlers:UT}).value;t[a]=r}}else if(r.type===`ExportNamedDeclaration`&&r.declaration){if(r.declaration.type===`VariableDeclaration`)for(let e of r.declaration.declarations){if(e.init==null)continue;let i=structuredClone(n);i.data.estree.body=[r];let a=HT(i.data.estree,{handlers:UT}).value;for(let n of MTe(e.id))t[n]=a}else if(r.declaration.type===`FunctionDeclaration`&&r.declaration.id){let e=structuredClone(n);e.data.estree.body=[r];let i=HT(e.data.estree,{handlers:UT}).value;t[r.declaration.id.name]=i}else if(r.declaration.type===`ClassDeclaration`&&r.declaration.id){let e=structuredClone(n);e.data.estree.body=[r];let i=HT(e.data.estree,{handlers:UT}).value;t[r.declaration.id.name]=i}}}});for(let[e,n]of Object.entries(t))t[e]=jTe(n)??``;return t};function MTe(e){let t=/* @__PURE__ */ new Set;return pt(e,t),t}function NTe(e,t){let n=null;return p(t,t=>{if(n===null&&ZT(t))for(let r of t.data.estree.body){if(r.type!==`ExportNamedDeclaration`||r.declaration==null)continue;let t=r.declaration;if(t.type===`VariableDeclaration`?t.declarations.some(t=>MTe(t.id).has(e)):t.id?.name===e){n=r;return}}}),n}function PTe(e,t){for(let n of t.data.estree.body)if(n.type===`VariableDeclaration`){for(let t of n.declarations)if(t.id.type===`Identifier`&&t.id.name===e)return n}else if(n.type===`FunctionDeclaration`&&n.id?.name===e)return n;else if(n.type===`ClassDeclaration`&&n.id?.name===e)return n;return null}const FTe=e=>{let t=QT(e);return JT(e,e=>ZT(e)?(e.value=``,!0):!1),t};function ITe(e,t){let n=(t||{}).force||!1;p(e,r);function r(e){n?delete e.position:e.position=void 0}}var LTe=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const $T=e=>LTe(void 0,void 0,void 0,function*(){let t={};return JT(e,e=>{var n;if(st(e)&&lt(e)){let r=[];for(let i of e.data.estree.body)if(f(i)&&typeof i.source.value==`string`){let e={source:i.source.value,specifiers:i.specifiers.map(e=>{let t=e.type===`ImportSpecifier`?ATe(e):void 0,n=t!==void 0&&t!=e.local.name;return Object.assign({type:n?Fh.RenamedImportSpecifier:e.type,name:n?t:e.local.name},n&&{renamedName:e.local.name})})};t[e.source]==null?t[e.source]=e.specifiers:(n=t[e.source])==null||n.push(...e.specifiers)}else r.push(i);return r.length==0||(e.data.estree.body=r,e.value=``,ITe(e),e.value=HT(e.data.estree,{handlers:UT}).value,!1)}}),{importMap:t,tree:e}}),eE=e=>Object.keys(e.importMap).length>0,tE=(e,t)=>{let n=Dh(e).toLowerCase();return t.has(n)&&!n.startsWith(`/snippets/`)&&!n.startsWith(`/_snippets/`)},RTe=e=>{let t=e.data;return t&&`snippetFile`in t&&typeof t.snippetFile==`string`?t.snippetFile:void 0},zTe=/^[a-z][a-z\d+.-]*:/i,BTe=[`/`,`./`,`../`,`#`],VTe=[`react`,`react-dom`],nE=e=>e===``||e===`.`||e===`..`||BTe.some(t=>e.startsWith(t))?!1:!zTe.test(e),rE=e=>{if(!nE(e))return;let t=e.split(`/`);if(t.some(e=>e===`.`||e===`..`))return;let[n=``,r]=t;if(!n.startsWith(`@`))return n;if(n!==`@`&&r)return`${n}/${r}`},HTe=e=>{let t=rE(e);return VTe.some(e=>e===t)},iE=e=>({type:`Identifier`,name:e}),UTe=e=>iE(XT(e)?e:JSON.stringify(e)),WTe=e=>XT(e)?iE(e):{type:`Literal`,value:e},aE=(e,t)=>{if(!nE(e)||HTe(e))return!1;let n=rE(e);return n!==void 0&&t.has(n)},oE=e=>nE(e)&&!HTe(e),GTe=(e,t)=>{let n=RTe(e);return n===void 0?t:`/_snippets/${n}`},sE=e=>{let t=e.startsWith(`/`)?e:`/${e}`;return t.startsWith(`/snippets/`)&&cC(t)},KTe=e=>{let t=[];for(let n of e.children)if(st(n))for(let e of n.data?.estree?.body??[]){if(e.type!==`ImportDeclaration`&&e.type!==`ExportNamedDeclaration`&&e.type!==`ExportAllDeclaration`)continue;let n=e.source?.value;typeof n==`string`&&t.push(n)}return t},qTe=e=>{let t=/* @__PURE__ */ new Map;for(let{filename:n,tree:r}of e){let e=n.startsWith(`/`)?n:`/${n}`;sE(e)&&t.set(e,KTe(r))}let n=/* @__PURE__ */ new Set,r=!0;for(;r;){r=!1;for(let[e,i]of t)n.has(e)||i.some(t=>oE(t)||n.has(KT(t,e)??``))&&(n.add(e),r=!0)}return n},JTe=e=>e.type===Fh.ImportNamespaceSpecifier?null:e.type===Fh.ImportDefaultSpecifier?`default`:e.name,YTe=(e,t)=>`${t===null?`*`:XT(t)?t:JSON.stringify(t)} from "${e}"`,XTe=e=>{let t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Set,i=[];for(let[a,o]of e){o.length===0&&!t.has(a)&&t.set(a,[]);for(let e of o){let o=e.renamedName??e.name,s=JTe(e),c=JSON.stringify([o,a,s]);if(r.has(c))continue;r.add(c);let l=YTe(a,s),u=n.get(o);u===void 0?n.set(o,l):i.push({local:o,first:u,second:l}),t.set(a,[...t.get(a)??[],e])}}return{imports:[...t],conflicts:i}},ZTe=(e,t,n)=>{let r=t=>({type:`ImportDeclaration`,specifiers:t,source:{type:`Literal`,value:e}}),i=[],a=[];for(let e of t)switch(e.type){case Fh.ImportDefaultSpecifier:i.some(e=>e.type===`ImportDefaultSpecifier`)?a.push(r([{type:`ImportDefaultSpecifier`,local:iE(e.name)}])):i.unshift({type:`ImportDefaultSpecifier`,local:iE(e.name)});break;case Fh.ImportNamespaceSpecifier:a.push(r([{type:`ImportNamespaceSpecifier`,local:iE(e.name)}]));break;default:i.push({type:`ImportSpecifier`,imported:n(e.name),local:iE(e.renamedName??e.name)})}return[...i.length>0||t.length===0?[r(i)]:[],...a]},QTe=e=>{let t=t=>({type:`Program`,sourceType:`module`,body:e.flatMap(([e,n])=>ZTe(e,n,t))});return{type:`mdxjsEsm`,value:HT(t(UTe),{handlers:UT}).value.trim(),data:{estree:t(WTe)}}},$Te=e=>e.replace(/\s+/g,` `).trim(),eEe=(e,t)=>$Te(e)===$Te(t),cE=(e,t,n,r)=>{eEe(t,n)||r?.({type:`export-collision`,message:`"${e}" is declared twice with different definitions; the first one is kept. Import one of them under another name: import { ${e} as Other${e} } from '…'`})};var tEe=class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,n,r){e&&t&&(n==null?e[t]=r:e[t][n]=r)}remove(e,t,n){e&&t&&(n==null?delete e[t]:e[t].splice(n,1))}},nEe=class extends tEe{constructor(e,t){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e},this.enter=e,this.leave=t}visit(e,t,n,r){if(e){if(this.enter){let i=this.should_skip,a=this.should_remove,o=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);let s=this.should_skip,c=this.should_remove;if(this.should_skip=i,this.should_remove=a,this.replacement=o,s)return e;if(c)return null}let i;for(i in e){let t=e[i];if(t&&typeof t==`object`){if(Array.isArray(t)){let n=t;for(let t=0;t<n.length;t+=1){let r=n[t];rEe(r)&&(this.visit(r,e,i,t)||t--)}}else rEe(t)&&this.visit(t,e,i,null)}}if(this.leave){let i=this.replacement,a=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);let o=this.should_remove;if(this.replacement=i,this.should_remove=a,o)return null}}return e}};function rEe(e){return typeof e==`object`&&!!e&&`type`in e&&typeof e.type==`string`}function lE(e,{enter:t,leave:n}){return new nEe(t,n).visit(e,null)}const iEe=(e,t,n)=>{let r;return p(t,ZT,t=>{for(let i of t.data.estree.body)if(i.type===`ExportDefaultDeclaration`){if(e==="default"){let e=structuredClone(t);return e.data.estree.body=[i],n&&i.declaration.type===`Identifier`&&(i.declaration.name=n),r=HT(e.data.estree,{handlers:UT}).value,!1}}else if(i.type===`ExportNamedDeclaration`&&i.specifiers.length>0){for(let a of i.specifiers)if(YT(a.exported)===e){let i=a.local.name,o=aEe(i,t);if(o){let a=structuredClone(o),s=n??(XT(e)&&sEe(a,i,e)?e:i);s!==i&&oEe(a,i,s);let c=structuredClone(t);return c.data.estree.body=[a],r=HT(c.data.estree,{handlers:UT}).value,!1}}}else{if(i.type===`ExportNamedDeclaration`&&i.declaration&&i.declaration.type===`VariableDeclaration`){for(let a of i.declaration.declarations)if(a.id.type===`Identifier`&&a.id.name===e){n&&(a.id.name=n);let e=structuredClone(t);return e.data.estree.body=[i],r=HT(e.data.estree,{handlers:UT}).value,!1}}if(i.type===`ExportNamedDeclaration`&&i.declaration&&(i.declaration.type===`FunctionDeclaration`||i.declaration.type===`ClassDeclaration`)&&i.declaration.id&&i.declaration.id.name===e){n&&(i.declaration.id.name=n);let e=structuredClone(t);return e.data.estree.body=[i],r=HT(e.data.estree,{handlers:UT}).value,!1}}}),jTe(r)};function aEe(e,t){for(let n of t.data.estree.body)if(n.type===`VariableDeclaration`){for(let t of n.declarations)if(t.id.type===`Identifier`&&t.id.name===e)return n}else if(n.type===`FunctionDeclaration`&&n.id?.name===e)return n;else if(n.type===`ClassDeclaration`&&n.id?.name===e)return n;return null}function oEe(e,t,n){if(e.type===`VariableDeclaration`)for(let r of e.declarations)r.id.type===`Identifier`&&r.id.name===t&&(r.id.name=n);else(e.type===`FunctionDeclaration`&&e.id?.name===t||e.type===`ClassDeclaration`&&e.id?.name===t)&&(e.id.name=n)}function sEe(e,t,n){if(e.type===`VariableDeclaration`&&(e.declarations.length!==1||e.declarations[0]?.id.type!==`Identifier`))return!1;let r=0,i=0;return lE(e,{enter(e){(e.type===`Identifier`||e.type===`JSXIdentifier`)&&(e.name===t&&(r+=1),e.name===n&&(i+=1))}}),r===1&&i===0}const cEe=(e,t)=>{e.children[0]?.type===`yaml`?e.children.splice(1,0,...t):e.children.unshift(...t)},lEe=e=>{e.children.length>0&&e.children[0]?.type===`yaml`&&e.children.shift()};function uE(e){let t=/* @__PURE__ */ new Set,n=e.type===`ExportNamedDeclaration`?e.declaration:e;if(n==null)return t;if(n.type===`VariableDeclaration`)for(let e of n.declarations)pt(e.id,t);else(n.type===`FunctionDeclaration`||n.type===`ClassDeclaration`)&&n.id!=null&&t.add(n.id.name);return t}function uEe(e,t){for(let n of e.children)if(st(n)&&lt(n))for(let e of n.data.estree.body){if(e.type!==`ExportNamedDeclaration`||e.declaration?.type!==`VariableDeclaration`)continue;let r=e.declaration.declarations.find(e=>e.id.type===`Identifier`&&e.id.name===t);if(r===void 0)continue;let i=Object.assign(Object.assign({},n.data.estree),{body:[Object.assign(Object.assign({},e),{declaration:Object.assign(Object.assign({},e.declaration),{declarations:[r]})})]});return FT(HT(i,{handlers:UT}).value)}return e}function dE(e){let t=/* @__PURE__ */ new Set;for(let n of e.children)if(st(n)&&lt(n)){for(let e of n.data.estree.body)if(e.type===`ExportDefaultDeclaration`)t.add(`default`);else if(e.type===`ExportNamedDeclaration`){for(let n of e.specifiers)t.add(YT(n.exported));for(let n of uE(e))t.add(n)}}return t}function dEe(e){let t=/* @__PURE__ */ new Set;for(let n of e.children)if(st(n)&&lt(n))for(let e of n.data.estree.body){let n=e.type===`ExportNamedDeclaration`?e.declaration:e;if(n?.type===`VariableDeclaration`||n?.type===`ClassDeclaration`)for(let n of uE(e))t.add(n)}return t}function fE(e){let t=/* @__PURE__ */ new Set;for(let n of e.children)if(st(n)&&lt(n))for(let e of n.data.estree.body)if(e.type===`ImportDeclaration`)for(let n of e.specifiers)t.add(n.local.name);else if(e.type===`ExportNamedDeclaration`||e.type===`VariableDeclaration`||e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`)for(let n of uE(e))t.add(n);else e.type===`ExportDefaultDeclaration`&&(e.declaration.type===`FunctionDeclaration`||e.declaration.type===`ClassDeclaration`)&&e.declaration.id!=null&&t.add(e.declaration.id.name);return t}function pE(e,t){if(Array.isArray(e))for(let n of e)pE(n,t);else We(e)&&(e.type===`Property`&&e.shorthand===!0&&t(e),u(e,e=>pE(e,t)))}function fEe(e){if(We(e))return e.type===`AssignmentPattern`&&We(e.left)?e.left.name:e.name}function mE(e,t){if(!We(e)||typeof e.name!=`string`)return;let n=t.get(e.name);n!==void 0&&(e.name=n)}function hE(e,t){if(We(e))switch(e.type){case`Identifier`:mE(e,t);return;case`AssignmentPattern`:hE(e.left,t);return;case`RestElement`:hE(e.argument,t);return;case`ObjectPattern`:{let n=Array.isArray(e.properties)?e.properties:[];for(let e of n)We(e)&&hE(e.type===`RestElement`?e.argument:e.value,t);return}case`ArrayPattern`:{let n=Array.isArray(e.elements)?e.elements:[];for(let e of n)hE(e,t);return}default:return}}function gE(e,t,n){if(pE(e,e=>{We(e.key)&&(e.key=Object.assign({},e.key))}),he(e,/* @__PURE__ */ new Set,{reference:e=>mE(e,t)}),n&&We(e)){if(e.type===`VariableDeclaration`&&Array.isArray(e.declarations))for(let n of e.declarations)We(n)&&hE(n.id,t);else mE(e.id,t)}pE(e,e=>{We(e.key)&&fEe(e.value)!==e.key.name&&(e.shorthand=!1)})}function pEe(e,t){let n=new Map(e.map((e,t)=>[e,t])),r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Map,a=[],o=/* @__PURE__ */ new Set,s=[],c=e=>{let l=r.size;r.set(e,l),i.set(e,l),a.push(e),o.add(e);for(let a of t(e))n.has(a)&&(r.has(a)?o.has(a)&&i.set(e,Math.min(i.get(e)??l,r.get(a)??l)):(c(a),i.set(e,Math.min(i.get(e)??l,i.get(a)??l))));if(i.get(e)!==l)return;let u=[];for(let t=a.pop();t!==void 0&&(o.delete(t),u.push(t),t!==e);t=a.pop());u.sort((e,t)=>(n.get(e)??0)-(n.get(t)??0)),s.push(...u)};for(let t of e)r.has(t)||c(t);return s}function mEe(e,t){let n=/* @__PURE__ */ new Map;for(let e of t.values())n.has(e)||n.set(e,n.size);return pEe([...e].sort((e,t)=>(n.get(e)??0)-(n.get(t)??0)),e=>[...M(e.declaration,!0)].flatMap(e=>{let n=t.get(e);return n===void 0?[]:[n]}))}function hEe(e,t){return HT(Object.assign(Object.assign({},e),{body:[t]}),{handlers:UT}).value}function _E(e){let t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Map,r=(e,n)=>{let r=n.type===`VariableDeclaration`?n.declarations.map(e=>Object.assign(Object.assign({},n),{declarations:[e]})):[n];for(let n of r){let r=uE(n);if(r.size===0)continue;let i=M(n);for(let e of r)i.delete(e);let a={names:r,references:i,declaration:n,program:e};for(let e of r)t.has(e)||t.set(e,a)}};for(let t of e.children){if(!st(t)||!lt(t))continue;let e=t.data.estree;for(let t of e.body)if(t.type===`VariableDeclaration`||t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`)r(e,t);else if(t.type===`ExportDefaultDeclaration`){let n=t.declaration;(n.type===`FunctionDeclaration`||n.type===`ClassDeclaration`)&&n.id!=null&&r(e,n)}else if(t.type===`ExportNamedDeclaration`){if(t.declaration!=null)r(e,t.declaration);else if(t.source==null)for(let e of t.specifiers)e.local.type===`Identifier`&&n.set(YT(e.exported),e.local.name)}}return{units:t,aliases:n}}function gEe(e,t){return _E(e).aliases.get(t)??t}function vE(e,t){let n=_E(e).units.get(t);return n===void 0?void 0:hEe(n.program,n.declaration)}function yE(e){let t=/* @__PURE__ */ new Set;for(let n of FT(e).children)if(st(n)&&lt(n))for(let e of n.data.estree.body)for(let n of uE(e))t.add(n);return t}function _Ee(e,t,n=()=>!1){let r=FT(e),[i]=r.children;if(i===void 0||!st(i)||!lt(i))return;let a=i.data.estree,[o]=a.body;if(a.body.length!==1||o?.type!==`ExportNamedDeclaration`||o.declaration?.type!==`VariableDeclaration`)return;let s=o.declaration,c=[...s.declarations],l=e=>{let n=/* @__PURE__ */ new Set;return pt(e.id,n),n.size===0||![...n].every(e=>t.has(e))?!1:!c.filter(t=>t!==e).some(e=>[...M(e)].some(e=>n.has(e)))};for(let e=c.find(l);e!==void 0;)c=c.filter(t=>t!==e),e=c.find(l);if(c.length===0)return;s.declarations=c;let u=SE(r),d=/* @__PURE__ */ new Map;for(let e of t){let t=`${bE}${e}_${u}`,r=t;for(let e=1;n(r);e++)r=`${t}_${e}`;d.set(e,r)}return gE(s,d,!0),HT(a,{handlers:UT}).value}const bE=`__snippet_`;function xE(e){return e.startsWith(bE)}function SE(e){let t=2166136261;for(let n of e.children)if(st(n))for(let e=0;e<n.value.length;e++)t=Math.imul(t^n.value.charCodeAt(e),16777619)>>>0;return t.toString(36)}function vEe(e,t){let n=dEe(e),r=new Map(e.children.map((e,t)=>[e,t])),i=[],a=/* @__PURE__ */ new Map,o=t=>{let r=a.get(t);if(r!==void 0)return r;a.set(t,!0);let s=e.children.find(e=>st(e)&&lt(e)&&e.data.estree.body.some(e=>uE(e).has(t)));if(s===void 0||!st(s)||!lt(s))return!0;let c=M(s.data.estree,!0),l=![...c].some(e=>!xE(e)&&n.has(e));for(let e of M(s.data.estree))xE(e)&&!o(e)&&c.has(e)&&(l=!1);if(a.set(t,l),!l)return!1;let u=e.children.indexOf(s);if(u===-1)return!0;e.children.splice(u,1);let d=new Set(s.data.estree.body.flatMap(e=>[...uE(e)]));return i.push({node:s,declared:d,eager:c}),!0};for(let e of t)o(e);i.sort((e,t)=>(r.get(e.node)??0)-(r.get(t.node)??0));let s=/* @__PURE__ */ new Map;for(let e of i)for(let t of e.declared)s.set(t,e);return pEe(i,e=>[...e.eager].flatMap(e=>{let t=s.get(e);return t===void 0?[]:[t]})).map(e=>e.node)}function CE(e,t){let n=+(e.children[0]?.type===`yaml`);for(let r of t){let t=st(r)&&lt(r)?M(r.data.estree,!0):/* @__PURE__ */ new Set,i=n;e.children.forEach((e,n)=>{n<i||!st(e)||!lt(e)||e.data.estree.body.some(e=>{let n=e.type===`ExportNamedDeclaration`?e.declaration:e;return n?.type!==`VariableDeclaration`&&n?.type!==`ClassDeclaration`?!1:[...uE(e)].some(e=>t.has(e))})&&(i=n+1)}),e.children.splice(i,0,r),i===n&&n++}}function yEe(e,t){let n=_E(e).units.get(t),r=SE(e),i=/* @__PURE__ */ new Map;for(let e of n?.names??[])e!==t&&i.set(e,`${bE}${e}_${r}`);return i}function bEe(e,t,n,r,i=/* @__PURE__ */ new Map){let{units:a,aliases:o}=_E(t),s=o.get(r.name)??r.name,c=fE(n),l=new Set([...c].map(e=>e===r.localName?s:e)),u=/* @__PURE__ */ new Map;s!==r.localName&&c.has(r.localName)&&u.set(s,r.localName);let d=fE(e),f=SE(t),p=/* @__PURE__ */ new Set,m=[],h=e=>{if(l.has(e))return;let t=a.get(e);if(t!==void 0&&[...t.names].every(e=>i.has(e)))for(let e of t.names){let t=i.get(e);t!==void 0&&u.set(e,t)}else if(!(t===void 0||p.has(t))){p.add(t);for(let e of t.names)u.set(e,`${bE}${e}_${f}`);for(let e of t.references)h(e);m.push(t)}},g=n.children.flatMap(e=>st(e)&&lt(e)?[e.data.estree]:[]),_=M(g);for(let e of _)h(e);let v=e=>{let t=structuredClone(e.declaration);return gE(t,u,!0),FT(hEe(e.program,{type:`ExportNamedDeclaration`,declaration:t,specifiers:[],source:null}))},y=[],b=[];for(let t of m){let n=new Map([...t.names].map(e=>[e,u.get(e)??e]));for(let r=0;;r++){let i=[];for(let[e,t]of n){let n=r===0?t:`${t}_${r}`;u.set(e,n),i.push(n)}if(i.some(e=>c.has(e)))continue;let a=v(t),o=i.find(e=>d.has(e));if(o===void 0){b.push(t);break}if(vE(e,o)===vE(a,o)){y.push(...i);break}}}let x=new Set(l),S=/* @__PURE__ */ new Set;for(let e=!0;e;){e=!1;for(let t of b)if(!S.has(t)&&[...M(t.declaration,!0)].some(e=>x.has(e))){S.add(t);for(let e of t.names)x.add(e);e=!0}}let C=e=>e.flatMap(e=>v(e).children),w=mEe(b,a),T=[...vEe(e,y),...C(w.filter(e=>!S.has(e)))],E=C(w.filter(e=>S.has(e))),D=/* @__PURE__ */ new Map;for(let e of m)for(let t of e.names){let e=u.get(t);e!==void 0&&D.set(t,e)}if(![..._].some(e=>u.has(e)))return{siblings:T,statement:n,trailing:E,privateNames:D};let O=g.map(e=>{let t=structuredClone(e);return gE(t,u,!1),HT(t,{handlers:UT}).value});return{siblings:T,statement:FT(O.join(`
526
+ `)),trailing:E,privateNames:D}}var xEe=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const SEe=(e,t,n,r,i)=>xEe(void 0,void 0,void 0,function*(){let a=structuredClone(n);lEe(a);let o=FTe(a),s=a;return p(e,g,(n,i,a)=>{if(n.name===t&&a&&i!=null){let c=structuredClone(s),l=o.default&&(o[t]===void 0||Object.keys(o).length===1),u,d=[];if(!l){n.name=null;let t=CEe(n,s,r,o);d=t.variableDeclarationNodes,u=t.snippetNodesToInject,a.children.splice(i,1,...u),e.children.splice(+(e.children[0]?.type===`yaml`),0,...d)}s=c}}),MEe(e,r,o,i),e}),CEe=(e,t,n,r)=>{let i={},a={},o=AEe(e),s=new Set(e.attributes.flatMap(e=>e.type===`mdxJsxAttribute`?[e.name]:[]));jEe(t,o);let c=e=>{let t=i[e];if(t!=null)return t;let o=0,s=Oe(e,o);for(;n[s]||r[s];)o+=1,s=Oe(e,o);return a[s]={type:`unknown`,value:`undefined`},i[e]=s,s},l=/* @__PURE__ */ new WeakSet,u=(e,t)=>{lE(e,{enter(e,n){if(e.type!==`Identifier`||l.has(e)||r[e.name]!=null||!s.has(e.name)&&kEe(e.name)||n?.type===`MemberExpression`&&n.property===e&&!n.computed||n?.type===`Property`&&n.shorthand&&n.value===e)return;if(n?.type===`Property`&&n.key===e&&!n.computed){if(!n.shorthand)return;let r=c(e.name);t?.push(Object.assign(Object.assign({},TEe(e)),{text:`${e.name}: ${r}`})),n.shorthand=!1;let i=Object.assign(Object.assign({},e),{name:r});l.add(i),n.value=i;return}let i=c(e.name);t?.push(Object.assign(Object.assign({},TEe(e)),{text:i})),e.name=i,l.add(e)}})},d=e=>(u(e),wE(e)),f=e=>{d(e);let t=DEe(e);return t?`...${wE(EEe(t.argument))}`:wE(e)},m=(e,t,n=!1)=>{let r=n?`{${e}}`:e,i=wEe(r);if(!i)return n?f(t):d(t);let a=[];u(i,a),u(t);let o=r;for(let e of a.sort((e,t)=>t.start-e.start))o=o.slice(0,e.start)+e.text+o.slice(e.end);return n?o.slice(1,-1):o};p(t,e=>{if((e.type===`mdxTextExpression`||e.type===`mdxFlowExpression`)&&e.data?.estree)e.value=m(e.value,e.data.estree);else if(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)for(let t of e.attributes)t.type===`mdxJsxExpressionAttribute`&&t.data?.estree?t.value=m(t.value,t.data.estree,!0):t.type===`mdxJsxAttribute`&&t.value&&typeof t.value==`object`&&t.value.data?.estree&&(t.value.value=m(t.value.value,t.value.data.estree))}),e.attributes.forEach(e=>{if(e.type===`mdxJsxAttribute`&&e.value){let t=i[e.name];t!=null&&(a[t]=typeof e.value==`string`?{type:`string`,value:e.value}:{type:`unknown`,value:e.value.value})}});let h=[];return Object.entries(a).map(([e,t])=>{let r=`export const ${e} = ${t.type===`string`?JSON.stringify(t.value):t.value}`;n[e]=r,h.push(...FT(r).children)}),{variableDeclarationNodes:h,snippetNodesToInject:t.children}},wE=e=>HT(e,{handlers:UT}).value.replace(/;\s*$/,``),wEe=e=>{try{let t=Rg.parseExpressionAt(e,0,{ecmaVersion:`latest`,sourceType:`module`,preserveParens:!0});return e.slice(t.end).trim()===``?t:void 0}catch{return}},TEe=e=>{let{start:t,end:n}=e;return{start:t,end:n}},EEe=e=>({type:`Program`,sourceType:`module`,body:[{type:`ExpressionStatement`,expression:e}],comments:[]}),DEe=e=>{let[t]=e.body;if(t?.type!==`ExpressionStatement`)return;let{expression:n}=t;if(n.type!==`ObjectExpression`||n.properties.length!==1)return;let[r]=n.properties;return r?.type===`SpreadElement`?r:void 0},OEe=/* @__PURE__ */ new Set([`window`,`document`,`navigator`,`location`,`localStorage`]),kEe=e=>e in globalThis||OEe.has(e),AEe=e=>{let t={};return e.attributes.forEach(e=>{e.type===`mdxJsxAttribute`&&e.value&&typeof e.value==`string`&&(t[e.name]=e.value)}),t},jEe=(e,t)=>{p(e,e=>{e.type===`code`&&typeof e.value==`string`&&(e.value=e.value.replace(/\{\s*([A-Za-z_$][\w$]*)\s*\}/g,(e,n)=>n in t?t[n]??e:e))})},MEe=(e,t,n,r)=>{let i=[],a=/* @__PURE__ */ new Set;for(let[o,s]of Object.entries(n)){let c=t[o],l=o==="default"||yE(s).has(o);if(c==null&&!l){let e=[...yE(s)];if(e.every(e=>t[e]===void 0&&n[e]===void 0)&&!a.has(s)){i.push(...FT(s).children),a.add(s);for(let n of e)t[n]=s}}else if(c==null){let e=new Set([...yE(s)].filter(e=>e!==o&&t[e]!==void 0&&t[e]!==s)),n=e.size===0?s:_Ee(s,e,e=>t[e]!==void 0);if(n===void 0){for(let n of e)cE(n,t[n]??``,s,r);continue}a.has(n)||i.push(...FT(n).children),a.add(n),t[o]=s}else xE(o)&&eEe(c,s)?i.push(...vEe(e,[o])):cE(o,c,s,r)}i.length>0&&CE(e,i)};var NEe=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const PEe=[Fh.ImportSpecifier,Fh.RenamedImportSpecifier],FEe=()=>({bindings:/* @__PURE__ */ new Map,contexts:/* @__PURE__ */ new Map});function IEe(e,t){let n=e.bindings.get(t)??/* @__PURE__ */ new Map;return e.bindings.set(t,n),n}function LEe(e,t){let n=e.contexts.get(t);if(n!==void 0)return n;let r=w(t);return e.contexts.set(t,r),r}const REe=[Fh.ImportDefaultSpecifier,Fh.ImportNamespaceSpecifier],zEe=(e,t,n,r,i,...a)=>NEe(void 0,[e,t,n,r,i,...a],void 0,function*(e,t,n,r,i,a=FEe()){if(PEe.includes(e.type)){let o=e.renamedName??e.name,s=fE(t),c=dE(t),l=e=>{let n=r[o];return n===void 0?!s.has(o)&&!c.has(o)?!1:(cE(o,vE(t,o)??``,vE(FT(e),o)??e,i),!0):(cE(o,n,e,i),!0)},u=gEe(n,e.name),d=IEe(a,n),f=d.get(u);if(f!==void 0&&f!==o){let e=`export const ${o} = ${f};`;return l(e)||(CE(t,FT(e).children),r[o]=e),t}let p=iEe(e.name,structuredClone(n),e.renamedName);if(p==null){let i=LEe(a,n).moduleScope;if(!dE(n).has(e.name)||!i.has(u))throw Error(`Could not find export ${e.name} in snippet`);let s=e=>{let t=i.get(e);return A(t===void 0?void 0:t)},c=`export const ${o} = ${s(u)};`;if(l(c))return t;let f=[];for(let[e,t]of yEe(n,u)){if(d.has(e)||!i.has(e))continue;let n=`export const ${t} = ${s(e)};`;f.push(n),r[t]??(r[t]=n),d.set(e,t)}return cEe(t,FT([...f,c].join(`
527
+ `)).children),r[o]=c,d.set(u,o),t}if(l(p))return t;let m=FT(p),h=fE(m),g=h.has(u)?u:o,_=g===o?[]:FT(`export const ${o} = ${g};`).children,{siblings:v,statement:y,trailing:b,privateNames:x}=bEe(t,n,[...h].some(e=>e!==g&&(e===o||d.has(e)||s.has(e)||c.has(e)))?uEe(m,g):m,{name:e.name,localName:o},d),S={type:`root`,children:[...v,...y.children,..._,...b]};CE(t,S.children);let C=fE(y);C.has(u)?d.set(u,u):C.has(o)&&d.set(u,o);let w=fE(n);for(let e of C)e!==o&&w.has(e)&&!d.has(e)&&d.set(e,e);for(let[e,t]of x)d.has(e)||d.set(e,t);for(let[e,t]of Object.entries(QT(S)))r[e]??(r[e]=t);return t}if(REe.includes(e.type))return yield SEe(t,e.name,n,r,i)});var TE=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const BEe=e=>st(e)&&lt(e)&&e.data.estree.body.some(f),VEe=e=>TE(void 0,void 0,void 0,function*(){let t=/* @__PURE__ */ new Set;if(p(e,e=>{BEe(e)&&t.add(e)}),t.size===0)return{};let{importMap:n,tree:r}=yield $T({type:`root`,children:[...t]}),i=new Set(r.children);return JT(e,{cascade:!1},e=>t.has(e)&&!i.has(e)),n}),HEe=e=>TE(void 0,void 0,void 0,function*(){let t=e.children.filter(BEe);if(t.length===0)return{tree:Object.assign(Object.assign({},e),{children:[...e.children]}),importMap:{}};let{importMap:n}=yield $T({type:`root`,children:structuredClone(t)}),r=new Set(t);return{tree:Object.assign(Object.assign({},e),{children:e.children.filter(e=>!r.has(e))}),importMap:n}}),UEe=e=>`value`in e?String(e.value):e.name,WEe=({local:e,exported:t})=>{let n=UEe(e),r=UEe(t);if(r!=="default")return n==="default"?{type:Fh.ImportDefaultSpecifier,name:r}:n===r?{type:Fh.ImportSpecifier,name:n}:{type:Fh.RenamedImportSpecifier,name:n,renamedName:r}},GEe=(e,t)=>e.type===`ExportNamedDeclaration`&&typeof e.source?.value==`string`&&oE(e.source.value)&&aE(e.source.value,t),KEe=(e,t)=>{let n=[];return e.children=e.children.flatMap(e=>{if(!st(e)||!lt(e))return[e];let r=e.data.estree.body,i=r.filter(e=>GEe(e,t));for(let e of i)e.type===`ExportNamedDeclaration`&&typeof e.source?.value==`string`&&n.push([e.source.value,e.specifiers.flatMap(e=>WEe(e)??[])]);let a=r.filter(e=>!i.includes(e));if(a.length===r.length)return[e];if(a.length===0)return[];let o=Object.assign(Object.assign({},e.data.estree),{body:a});return[Object.assign(Object.assign({},e),{value:HT(o,{handlers:UT}).value,data:Object.assign(Object.assign({},e.data),{estree:o})})]}),n},qEe=(e,t)=>Object.entries(e.importMap??{}).flatMap(([n,r])=>{let i=KT(n,e.filename);return i==null?oE(n)&&aE(n,t.packageNames)?[[n,r]]:[]:t.packageSnippets?.has(i)?[[i,r]]:[]}),EE=e=>TE(void 0,void 0,void 0,function*(){let{snippets:t,fileWithImports:n,onWarning:r,packages:i}=e,a=bh(n.filename),o=n.tree,s=i&&/\.mdx?$/.test(n.filename)?KEe(o,i.packageNames):[],c=QT(o),l=FEe(),u=/* @__PURE__ */ new Map;for(let e of Object.keys(n.importMap)){let d=KT(e,n.filename);if(i&&d==null&&oE(e)){if(aE(e,i.packageNames)){s.push([e,n.importMap[e]??[]]);continue}let t=`Package ${rE(e)??e} imported in ${n.filename} is not declared in package.json dependencies.`;r?r({type:`undeclared-package`,message:t,file:a}):console.log(t);continue}if(d!=null&&(i?.packageSnippets)?.has(d)){s.push([d,n.importMap[e]??[]]);continue}if(d==null){let t=`Invalid import path ${e} in ${n.filename}. Only local imports are supported.`;r?r({type:`invalid-import-path`,message:t,file:a}):console.log(t);continue}let f=t.find(e=>e.filename===d);if(f==null){let e=`Could not find file ${d} - imported from ${n.filename}`;r?r({type:`missing-file`,message:e,file:a}):console.log(e);continue}let p=u.get(f)??f;if(i&&!u.has(f)){let{tree:e,importMap:t}=yield HEe(f.tree);p=Object.assign(Object.assign({},f),{tree:e}),u.set(f,p),s.push(...Object.entries(t),...qEe(f,i)),/\.mdx?$/.test(f.filename)&&s.push(...KEe(e,i.packageNames))}let m=QT(p.tree),h=n.importMap[e];if(h!=null)for(let t of h){if(t.type===Fh.ImportDefaultSpecifier&&!(`default`in m)&&Object.keys(m).length>0&&p.tree.children.every(e=>e.type===`yaml`||e.type===`mdxjsEsm`)){let i=`Default import "${t.name}" in ${n.filename} will not render — ${d} has no default export. Use a named import instead: import { ExportName } from '${e}'`;r?r({type:`default-import-no-default-export`,message:i,file:a}):console.log(i)}try{let e=yield zEe(t,o,p.tree,c,e=>{let t=Object.assign(Object.assign({},e),{message:`${e.message} (in ${n.filename}, importing ${d})`,file:a});r?r(t):console.log(t.message)},l);if(e==null)throw Error(`Import failed to resolve`);o=e}catch(e){let i=`Error resolving import "${t.name}" in ${n.filename}: ${e instanceof Error?e.message:String(e)}`;r?r({type:`import-resolution-error`,message:i,file:a}):console.log(i)}}}if(i&&s.push(...Object.entries(yield VEe(o))),!i||s.length===0)return o;let{imports:d,conflicts:f}=XTe(s.filter(([e,t])=>t.length>0||aE(e,i.packageNames)||i.packageSnippets?.has(e)));for(let{local:e,first:t,second:i}of f){let o=`${e} is imported twice in ${n.filename}, as ${t} and as ${i}. Snippets inlined into a page share its imports, so import one of them under another name.`;r?r({type:`package-import-conflict`,message:o,file:a}):console.log(o)}return cEe(o,[QTe(d)]),o});function DE(e){let t=/* @__PURE__ */ new Set,n=[];function r(i){t.add(i);for(let n of e[i]||[])t.has(n)||r(n);n.push(i)}for(let n in e)t.has(n)||r(n);return n.reverse()}var JEe=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const YEe=(e,...t)=>JEe(void 0,[e,...t],void 0,function*(e,{packages:t,onWarning:n,skip:r}={}){let i={};for(let t of e)i[t.filename]=Object.keys(t.importMap).flatMap(e=>KT(e,t.filename)??[]);let a=new Map(e.map(e=>[e.filename,e])),o=DE(i).reverse().flatMap(e=>a.get(e)??[]);for(let e of o)eE(e)&&!r?.(e.filename)&&(e.tree=yield EE(Object.assign(Object.assign({snippets:o,fileWithImports:e},n&&{onWarning:t=>n(t,e.filename)}),t&&{packages:t})));return e}),XEe=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`];var OE=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};OE.prototype.normal={},OE.prototype.property={},OE.prototype.space=void 0;function ZEe(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new OE(n,r,t)}function kE(e){return e.toLowerCase()}var AE=class{constructor(e,t){this.attribute=t,this.property=e}};AE.prototype.attribute=``,AE.prototype.booleanish=!1,AE.prototype.boolean=!1,AE.prototype.commaOrSpaceSeparated=!1,AE.prototype.commaSeparated=!1,AE.prototype.defined=!1,AE.prototype.mustUseProperty=!1,AE.prototype.number=!1,AE.prototype.overloadedBoolean=!1,AE.prototype.property=``,AE.prototype.spaceSeparated=!1,AE.prototype.space=void 0;var jE=/* @__PURE__ */ i({boolean:()=>ME,booleanish:()=>NE,commaOrSpaceSeparated:()=>RE,commaSeparated:()=>LE,number:()=>FE,overloadedBoolean:()=>PE,spaceSeparated:()=>IE});let QEe=0;const ME=zE(),NE=zE(),PE=zE(),FE=zE(),IE=zE(),LE=zE(),RE=zE();function zE(){return 2**++QEe}const BE=Object.keys(jE);var VE=class extends AE{constructor(e,t,n,r){let i=-1;if(super(e,t),$Ee(this,`space`,r),typeof n==`number`)for(;++i<BE.length;){let e=BE[i];$Ee(this,BE[i],(n&jE[e])===jE[e])}}};VE.prototype.defined=!0;function $Ee(e,t,n){n&&(e[t]=n)}function HE(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new VE(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[kE(r)]=r,n[kE(a.attribute)]=r}return new OE(t,n,e.space)}const eDe=HE({properties:{ariaActiveDescendant:null,ariaAtomic:NE,ariaAutoComplete:null,ariaBusy:NE,ariaChecked:NE,ariaColCount:FE,ariaColIndex:FE,ariaColSpan:FE,ariaControls:IE,ariaCurrent:null,ariaDescribedBy:IE,ariaDetails:null,ariaDisabled:NE,ariaDropEffect:IE,ariaErrorMessage:null,ariaExpanded:NE,ariaFlowTo:IE,ariaGrabbed:NE,ariaHasPopup:null,ariaHidden:NE,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:IE,ariaLevel:FE,ariaLive:null,ariaModal:NE,ariaMultiLine:NE,ariaMultiSelectable:NE,ariaOrientation:null,ariaOwns:IE,ariaPlaceholder:null,ariaPosInSet:FE,ariaPressed:NE,ariaReadOnly:NE,ariaRelevant:null,ariaRequired:NE,ariaRoleDescription:IE,ariaRowCount:FE,ariaRowIndex:FE,ariaRowSpan:FE,ariaSelected:NE,ariaSetSize:FE,ariaSort:null,ariaValueMax:FE,ariaValueMin:FE,ariaValueNow:FE,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function tDe(e,t){return t in e?e[t]:t}function nDe(e,t){return tDe(e,t.toLowerCase())}const rDe=HE({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:LE,acceptCharset:IE,accessKey:IE,action:null,allow:null,allowFullScreen:ME,allowPaymentRequest:ME,allowUserMedia:ME,alt:null,as:null,async:ME,autoCapitalize:null,autoComplete:IE,autoFocus:ME,autoPlay:ME,blocking:IE,capture:null,charSet:null,checked:ME,cite:null,className:IE,cols:FE,colSpan:null,content:null,contentEditable:NE,controls:ME,controlsList:IE,coords:FE|LE,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ME,defer:ME,dir:null,dirName:null,disabled:ME,download:PE,draggable:NE,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ME,formTarget:null,headers:IE,height:FE,hidden:PE,high:FE,href:null,hrefLang:null,htmlFor:IE,httpEquiv:IE,id:null,imageSizes:null,imageSrcSet:null,inert:ME,inputMode:null,integrity:null,is:null,isMap:ME,itemId:null,itemProp:IE,itemRef:IE,itemScope:ME,itemType:IE,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ME,low:FE,manifest:null,max:null,maxLength:FE,media:null,method:null,min:null,minLength:FE,multiple:ME,muted:ME,name:null,nonce:null,noModule:ME,noValidate:ME,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ME,optimum:FE,pattern:null,ping:IE,placeholder:null,playsInline:ME,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ME,referrerPolicy:null,rel:IE,required:ME,reversed:ME,rows:FE,rowSpan:FE,sandbox:IE,scope:null,scoped:ME,seamless:ME,selected:ME,shadowRootClonable:ME,shadowRootDelegatesFocus:ME,shadowRootMode:null,shape:null,size:FE,sizes:null,slot:null,span:FE,spellCheck:NE,src:null,srcDoc:null,srcLang:null,srcSet:null,start:FE,step:null,style:null,tabIndex:FE,target:null,title:null,translate:null,type:null,typeMustMatch:ME,useMap:null,value:NE,width:FE,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:IE,axis:null,background:null,bgColor:null,border:FE,borderColor:null,bottomMargin:FE,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ME,declare:ME,event:null,face:null,frame:null,frameBorder:null,hSpace:FE,leftMargin:FE,link:null,longDesc:null,lowSrc:null,marginHeight:FE,marginWidth:FE,noResize:ME,noHref:ME,noShade:ME,noWrap:ME,object:null,profile:null,prompt:null,rev:null,rightMargin:FE,rules:null,scheme:null,scrolling:NE,standby:null,summary:null,text:null,topMargin:FE,valueType:null,version:null,vAlign:null,vLink:null,vSpace:FE,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ME,disableRemotePlayback:ME,prefix:null,property:null,results:FE,security:null,unselectable:null},space:`html`,transform:nDe}),iDe=HE({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:RE,accentHeight:FE,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:FE,amplitude:FE,arabicForm:null,ascent:FE,attributeName:null,attributeType:null,azimuth:FE,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:FE,by:null,calcMode:null,capHeight:FE,className:IE,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:FE,diffuseConstant:FE,direction:null,display:null,dur:null,divisor:FE,dominantBaseline:null,download:ME,dx:null,dy:null,edgeMode:null,editable:null,elevation:FE,enableBackground:null,end:null,event:null,exponent:FE,externalResourcesRequired:null,fill:null,fillOpacity:FE,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:LE,g2:LE,glyphName:LE,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:FE,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:FE,horizOriginX:FE,horizOriginY:FE,id:null,ideographic:FE,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:FE,k:FE,k1:FE,k2:FE,k3:FE,k4:FE,kernelMatrix:RE,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:FE,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:FE,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:FE,overlineThickness:FE,paintOrder:null,panose1:null,path:null,pathLength:FE,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:IE,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:FE,pointsAtY:FE,pointsAtZ:FE,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:RE,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:RE,rev:RE,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:RE,requiredFeatures:RE,requiredFonts:RE,requiredFormats:RE,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:FE,specularExponent:FE,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:FE,strikethroughThickness:FE,string:null,stroke:null,strokeDashArray:RE,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:FE,strokeOpacity:FE,strokeWidth:null,style:null,surfaceScale:FE,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:RE,tabIndex:FE,tableValues:null,target:null,targetX:FE,targetY:FE,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:RE,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:FE,underlineThickness:FE,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:FE,values:null,vAlphabetic:FE,vMathematical:FE,vectorEffect:null,vHanging:FE,vIdeographic:FE,version:null,vertAdvY:FE,vertOriginX:FE,vertOriginY:FE,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:FE,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:tDe}),aDe=HE({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),oDe=HE({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:nDe}),sDe=HE({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),cDe=/[A-Z]/g,lDe=/-[a-z]/g,uDe=/^data[-\w.:]+$/i;function dDe(e,t){let n=kE(t),r=t,i=AE;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&uDe.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(lDe,pDe);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!lDe.test(e)){let n=e.replace(cDe,fDe);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=VE}return new i(r,t)}function fDe(e){return`-`+e.toLowerCase()}function pDe(e){return e.charAt(1).toUpperCase()}const UE=ZEe([eDe,rDe,aDe,oDe,sDe],`html`),WE=ZEe([eDe,iDe,aDe,oDe,sDe],`svg`);function mDe(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function hDe(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}const gDe=/[ \t\n\f\r]/g;function _De(e){return typeof e==`object`?e.type===`text`&&vDe(e.value):vDe(e)}function vDe(e){return e.replace(gDe,``)===``}function yDe(e){return encodeURIComponent(e.toLowerCase().trim().replace(/\s+/g,`-`))}const GE=e=>e.type===`text`?e.value:e.type===`element`?e.children.map(GE).join(``):``,bDe=[[`ß`,`ss`],[`ẞ`,`Ss`],[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`À`,`A`],[`Á`,`A`],[`Â`,`A`],[`Ã`,`A`],[`Ä`,`Ae`],[`Å`,`A`],[`Æ`,`AE`],[`Ç`,`C`],[`È`,`E`],[`É`,`E`],[`Ê`,`E`],[`Ë`,`E`],[`Ì`,`I`],[`Í`,`I`],[`Î`,`I`],[`Ï`,`I`],[`Ð`,`D`],[`Ñ`,`N`],[`Ò`,`O`],[`Ó`,`O`],[`Ô`,`O`],[`Õ`,`O`],[`Ö`,`Oe`],[`Ő`,`O`],[`Ø`,`O`],[`Ù`,`U`],[`Ú`,`U`],[`Û`,`U`],[`Ü`,`Ue`],[`Ű`,`U`],[`Ý`,`Y`],[`Þ`,`TH`],[`ß`,`ss`],[`à`,`a`],[`á`,`a`],[`â`,`a`],[`ã`,`a`],[`ä`,`ae`],[`å`,`a`],[`æ`,`ae`],[`ç`,`c`],[`è`,`e`],[`é`,`e`],[`ê`,`e`],[`ë`,`e`],[`ì`,`i`],[`í`,`i`],[`î`,`i`],[`ï`,`i`],[`ð`,`d`],[`ñ`,`n`],[`ò`,`o`],[`ó`,`o`],[`ô`,`o`],[`õ`,`o`],[`ö`,`oe`],[`ő`,`o`],[`ø`,`o`],[`ù`,`u`],[`ú`,`u`],[`û`,`u`],[`ü`,`ue`],[`ű`,`u`],[`ý`,`y`],[`þ`,`th`],[`ÿ`,`y`],[`ẞ`,`SS`],[`à`,`a`],[`À`,`A`],[`á`,`a`],[`Á`,`A`],[`â`,`a`],[`Â`,`A`],[`ã`,`a`],[`Ã`,`A`],[`è`,`e`],[`È`,`E`],[`é`,`e`],[`É`,`E`],[`ê`,`e`],[`Ê`,`E`],[`ì`,`i`],[`Ì`,`I`],[`í`,`i`],[`Í`,`I`],[`ò`,`o`],[`Ò`,`O`],[`ó`,`o`],[`Ó`,`O`],[`ô`,`o`],[`Ô`,`O`],[`õ`,`o`],[`Õ`,`O`],[`ù`,`u`],[`Ù`,`U`],[`ú`,`u`],[`Ú`,`U`],[`ý`,`y`],[`Ý`,`Y`],[`ă`,`a`],[`Ă`,`A`],[`Đ`,`D`],[`đ`,`d`],[`ĩ`,`i`],[`Ĩ`,`I`],[`ũ`,`u`],[`Ũ`,`U`],[`ơ`,`o`],[`Ơ`,`O`],[`ư`,`u`],[`Ư`,`U`],[`ạ`,`a`],[`Ạ`,`A`],[`ả`,`a`],[`Ả`,`A`],[`ấ`,`a`],[`Ấ`,`A`],[`ầ`,`a`],[`Ầ`,`A`],[`ẩ`,`a`],[`Ẩ`,`A`],[`ẫ`,`a`],[`Ẫ`,`A`],[`ậ`,`a`],[`Ậ`,`A`],[`ắ`,`a`],[`Ắ`,`A`],[`ằ`,`a`],[`Ằ`,`A`],[`ẳ`,`a`],[`Ẳ`,`A`],[`ẵ`,`a`],[`Ẵ`,`A`],[`ặ`,`a`],[`Ặ`,`A`],[`ẹ`,`e`],[`Ẹ`,`E`],[`ẻ`,`e`],[`Ẻ`,`E`],[`ẽ`,`e`],[`Ẽ`,`E`],[`ế`,`e`],[`Ế`,`E`],[`ề`,`e`],[`Ề`,`E`],[`ể`,`e`],[`Ể`,`E`],[`ễ`,`e`],[`Ễ`,`E`],[`ệ`,`e`],[`Ệ`,`E`],[`ỉ`,`i`],[`Ỉ`,`I`],[`ị`,`i`],[`Ị`,`I`],[`ọ`,`o`],[`Ọ`,`O`],[`ỏ`,`o`],[`Ỏ`,`O`],[`ố`,`o`],[`Ố`,`O`],[`ồ`,`o`],[`Ồ`,`O`],[`ổ`,`o`],[`Ổ`,`O`],[`ỗ`,`o`],[`Ỗ`,`O`],[`ộ`,`o`],[`Ộ`,`O`],[`ớ`,`o`],[`Ớ`,`O`],[`ờ`,`o`],[`Ờ`,`O`],[`ở`,`o`],[`Ở`,`O`],[`ỡ`,`o`],[`Ỡ`,`O`],[`ợ`,`o`],[`Ợ`,`O`],[`ụ`,`u`],[`Ụ`,`U`],[`ủ`,`u`],[`Ủ`,`U`],[`ứ`,`u`],[`Ứ`,`U`],[`ừ`,`u`],[`Ừ`,`U`],[`ử`,`u`],[`Ử`,`U`],[`ữ`,`u`],[`Ữ`,`U`],[`ự`,`u`],[`Ự`,`U`],[`ỳ`,`y`],[`Ỳ`,`Y`],[`ỵ`,`y`],[`Ỵ`,`Y`],[`ỷ`,`y`],[`Ỷ`,`Y`],[`ỹ`,`y`],[`Ỹ`,`Y`],[`ء`,`e`],[`آ`,`a`],[`أ`,`a`],[`ؤ`,`w`],[`إ`,`i`],[`ئ`,`y`],[`ا`,`a`],[`ب`,`b`],[`ة`,`t`],[`ت`,`t`],[`ث`,`th`],[`ج`,`j`],[`ح`,`h`],[`خ`,`kh`],[`د`,`d`],[`ذ`,`dh`],[`ر`,`r`],[`ز`,`z`],[`س`,`s`],[`ش`,`sh`],[`ص`,`s`],[`ض`,`d`],[`ط`,`t`],[`ظ`,`z`],[`ع`,`e`],[`غ`,`gh`],[`ـ`,`_`],[`ف`,`f`],[`ق`,`q`],[`ك`,`k`],[`ل`,`l`],[`م`,`m`],[`ن`,`n`],[`ه`,`h`],[`و`,`w`],[`ى`,`a`],[`ي`,`y`],[`َ‎`,`a`],[`ُ`,`u`],[`ِ‎`,`i`],[`٠`,`0`],[`١`,`1`],[`٢`,`2`],[`٣`,`3`],[`٤`,`4`],[`٥`,`5`],[`٦`,`6`],[`٧`,`7`],[`٨`,`8`],[`٩`,`9`],[`چ`,`ch`],[`ک`,`k`],[`گ`,`g`],[`پ`,`p`],[`ژ`,`zh`],[`ی`,`y`],[`۰`,`0`],[`۱`,`1`],[`۲`,`2`],[`۳`,`3`],[`۴`,`4`],[`۵`,`5`],[`۶`,`6`],[`۷`,`7`],[`۸`,`8`],[`۹`,`9`],[`ټ`,`p`],[`ځ`,`z`],[`څ`,`c`],[`ډ`,`d`],[`ﺫ`,`d`],[`ﺭ`,`r`],[`ړ`,`r`],[`ﺯ`,`z`],[`ږ`,`g`],[`ښ`,`x`],[`ګ`,`g`],[`ڼ`,`n`],[`ۀ`,`e`],[`ې`,`e`],[`ۍ`,`ai`],[`ٹ`,`t`],[`ڈ`,`d`],[`ڑ`,`r`],[`ں`,`n`],[`ہ`,`h`],[`ھ`,`h`],[`ے`,`e`],[`А`,`A`],[`а`,`a`],[`Б`,`B`],[`б`,`b`],[`В`,`V`],[`в`,`v`],[`Г`,`G`],[`г`,`g`],[`Д`,`D`],[`д`,`d`],[`ъе`,`ye`],[`Ъе`,`Ye`],[`ъЕ`,`yE`],[`ЪЕ`,`YE`],[`Е`,`E`],[`е`,`e`],[`Ё`,`Yo`],[`ё`,`yo`],[`Ж`,`Zh`],[`ж`,`zh`],[`З`,`Z`],[`з`,`z`],[`И`,`I`],[`и`,`i`],[`ый`,`iy`],[`Ый`,`Iy`],[`ЫЙ`,`IY`],[`ыЙ`,`iY`],[`Й`,`Y`],[`й`,`y`],[`К`,`K`],[`к`,`k`],[`Л`,`L`],[`л`,`l`],[`М`,`M`],[`м`,`m`],[`Н`,`N`],[`н`,`n`],[`О`,`O`],[`о`,`o`],[`П`,`P`],[`п`,`p`],[`Р`,`R`],[`р`,`r`],[`С`,`S`],[`с`,`s`],[`Т`,`T`],[`т`,`t`],[`У`,`U`],[`у`,`u`],[`Ф`,`F`],[`ф`,`f`],[`Х`,`Kh`],[`х`,`kh`],[`Ц`,`Ts`],[`ц`,`ts`],[`Ч`,`Ch`],[`ч`,`ch`],[`Ш`,`Sh`],[`ш`,`sh`],[`Щ`,`Sch`],[`щ`,`sch`],[`Ъ`,``],[`ъ`,``],[`Ы`,`Y`],[`ы`,`y`],[`Ь`,``],[`ь`,``],[`Э`,`E`],[`э`,`e`],[`Ю`,`Yu`],[`ю`,`yu`],[`Я`,`Ya`],[`я`,`ya`],[`ă`,`a`],[`Ă`,`A`],[`ș`,`s`],[`Ș`,`S`],[`ț`,`t`],[`Ț`,`T`],[`ţ`,`t`],[`Ţ`,`T`],[`ş`,`s`],[`Ş`,`S`],[`ç`,`c`],[`Ç`,`C`],[`ğ`,`g`],[`Ğ`,`G`],[`ı`,`i`],[`İ`,`I`],[`ա`,`a`],[`Ա`,`A`],[`բ`,`b`],[`Բ`,`B`],[`գ`,`g`],[`Գ`,`G`],[`դ`,`d`],[`Դ`,`D`],[`ե`,`ye`],[`Ե`,`Ye`],[`զ`,`z`],[`Զ`,`Z`],[`է`,`e`],[`Է`,`E`],[`ը`,`y`],[`Ը`,`Y`],[`թ`,`t`],[`Թ`,`T`],[`ժ`,`zh`],[`Ժ`,`Zh`],[`ի`,`i`],[`Ի`,`I`],[`լ`,`l`],[`Լ`,`L`],[`խ`,`kh`],[`Խ`,`Kh`],[`ծ`,`ts`],[`Ծ`,`Ts`],[`կ`,`k`],[`Կ`,`K`],[`հ`,`h`],[`Հ`,`H`],[`ձ`,`dz`],[`Ձ`,`Dz`],[`ղ`,`gh`],[`Ղ`,`Gh`],[`ճ`,`tch`],[`Ճ`,`Tch`],[`մ`,`m`],[`Մ`,`M`],[`յ`,`y`],[`Յ`,`Y`],[`ն`,`n`],[`Ն`,`N`],[`շ`,`sh`],[`Շ`,`Sh`],[`ո`,`vo`],[`Ո`,`Vo`],[`չ`,`ch`],[`Չ`,`Ch`],[`պ`,`p`],[`Պ`,`P`],[`ջ`,`j`],[`Ջ`,`J`],[`ռ`,`r`],[`Ռ`,`R`],[`ս`,`s`],[`Ս`,`S`],[`վ`,`v`],[`Վ`,`V`],[`տ`,`t`],[`Տ`,`T`],[`ր`,`r`],[`Ր`,`R`],[`ց`,`c`],[`Ց`,`C`],[`ու`,`u`],[`ՈՒ`,`U`],[`Ու`,`U`],[`փ`,`p`],[`Փ`,`P`],[`ք`,`q`],[`Ք`,`Q`],[`օ`,`o`],[`Օ`,`O`],[`ֆ`,`f`],[`Ֆ`,`F`],[`և`,`yev`],[`ა`,`a`],[`ბ`,`b`],[`გ`,`g`],[`დ`,`d`],[`ე`,`e`],[`ვ`,`v`],[`ზ`,`z`],[`თ`,`t`],[`ი`,`i`],[`კ`,`k`],[`ლ`,`l`],[`მ`,`m`],[`ნ`,`n`],[`ო`,`o`],[`პ`,`p`],[`ჟ`,`zh`],[`რ`,`r`],[`ს`,`s`],[`ტ`,`t`],[`უ`,`u`],[`ფ`,`ph`],[`ქ`,`q`],[`ღ`,`gh`],[`ყ`,`k`],[`შ`,`sh`],[`ჩ`,`ch`],[`ც`,`ts`],[`ძ`,`dz`],[`წ`,`ts`],[`ჭ`,`tch`],[`ხ`,`kh`],[`ჯ`,`j`],[`ჰ`,`h`],[`č`,`c`],[`ď`,`d`],[`ě`,`e`],[`ň`,`n`],[`ř`,`r`],[`š`,`s`],[`ť`,`t`],[`ů`,`u`],[`ž`,`z`],[`Č`,`C`],[`Ď`,`D`],[`Ě`,`E`],[`Ň`,`N`],[`Ř`,`R`],[`Š`,`S`],[`Ť`,`T`],[`Ů`,`U`],[`Ž`,`Z`],[`ހ`,`h`],[`ށ`,`sh`],[`ނ`,`n`],[`ރ`,`r`],[`ބ`,`b`],[`ޅ`,`lh`],[`ކ`,`k`],[`އ`,`a`],[`ވ`,`v`],[`މ`,`m`],[`ފ`,`f`],[`ދ`,`dh`],[`ތ`,`th`],[`ލ`,`l`],[`ގ`,`g`],[`ޏ`,`gn`],[`ސ`,`s`],[`ޑ`,`d`],[`ޒ`,`z`],[`ޓ`,`t`],[`ޔ`,`y`],[`ޕ`,`p`],[`ޖ`,`j`],[`ޗ`,`ch`],[`ޘ`,`tt`],[`ޙ`,`hh`],[`ޚ`,`kh`],[`ޛ`,`th`],[`ޜ`,`z`],[`ޝ`,`sh`],[`ޞ`,`s`],[`ޟ`,`d`],[`ޠ`,`t`],[`ޡ`,`z`],[`ޢ`,`a`],[`ޣ`,`gh`],[`ޤ`,`q`],[`ޥ`,`w`],[`ަ`,`a`],[`ާ`,`aa`],[`ި`,`i`],[`ީ`,`ee`],[`ު`,`u`],[`ޫ`,`oo`],[`ެ`,`e`],[`ޭ`,`ey`],[`ޮ`,`o`],[`ޯ`,`oa`],[`ް`,``],[`α`,`a`],[`β`,`v`],[`γ`,`g`],[`δ`,`d`],[`ε`,`e`],[`ζ`,`z`],[`η`,`i`],[`θ`,`th`],[`ι`,`i`],[`κ`,`k`],[`λ`,`l`],[`μ`,`m`],[`ν`,`n`],[`ξ`,`ks`],[`ο`,`o`],[`π`,`p`],[`ρ`,`r`],[`σ`,`s`],[`τ`,`t`],[`υ`,`y`],[`φ`,`f`],[`χ`,`x`],[`ψ`,`ps`],[`ω`,`o`],[`ά`,`a`],[`έ`,`e`],[`ί`,`i`],[`ό`,`o`],[`ύ`,`y`],[`ή`,`i`],[`ώ`,`o`],[`ς`,`s`],[`ϊ`,`i`],[`ΰ`,`y`],[`ϋ`,`y`],[`ΐ`,`i`],[`Α`,`A`],[`Β`,`B`],[`Γ`,`G`],[`Δ`,`D`],[`Ε`,`E`],[`Ζ`,`Z`],[`Η`,`I`],[`Θ`,`TH`],[`Ι`,`I`],[`Κ`,`K`],[`Λ`,`L`],[`Μ`,`M`],[`Ν`,`N`],[`Ξ`,`KS`],[`Ο`,`O`],[`Π`,`P`],[`Ρ`,`R`],[`Σ`,`S`],[`Τ`,`T`],[`Υ`,`Y`],[`Φ`,`F`],[`Χ`,`X`],[`Ψ`,`PS`],[`Ω`,`O`],[`Ά`,`A`],[`Έ`,`E`],[`Ί`,`I`],[`Ό`,`O`],[`Ύ`,`Y`],[`Ή`,`I`],[`Ώ`,`O`],[`Ϊ`,`I`],[`Ϋ`,`Y`],[`ā`,`a`],[`ē`,`e`],[`ģ`,`g`],[`ī`,`i`],[`ķ`,`k`],[`ļ`,`l`],[`ņ`,`n`],[`ū`,`u`],[`Ā`,`A`],[`Ē`,`E`],[`Ģ`,`G`],[`Ī`,`I`],[`Ķ`,`K`],[`Ļ`,`L`],[`Ņ`,`N`],[`Ū`,`U`],[`č`,`c`],[`š`,`s`],[`ž`,`z`],[`Č`,`C`],[`Š`,`S`],[`Ž`,`Z`],[`ą`,`a`],[`č`,`c`],[`ę`,`e`],[`ė`,`e`],[`į`,`i`],[`š`,`s`],[`ų`,`u`],[`ū`,`u`],[`ž`,`z`],[`Ą`,`A`],[`Č`,`C`],[`Ę`,`E`],[`Ė`,`E`],[`Į`,`I`],[`Š`,`S`],[`Ų`,`U`],[`Ū`,`U`],[`Ќ`,`Kj`],[`ќ`,`kj`],[`Љ`,`Lj`],[`љ`,`lj`],[`Њ`,`Nj`],[`њ`,`nj`],[`Тс`,`Ts`],[`тс`,`ts`],[`ą`,`a`],[`ć`,`c`],[`ę`,`e`],[`ł`,`l`],[`ń`,`n`],[`ś`,`s`],[`ź`,`z`],[`ż`,`z`],[`Ą`,`A`],[`Ć`,`C`],[`Ę`,`E`],[`Ł`,`L`],[`Ń`,`N`],[`Ś`,`S`],[`Ź`,`Z`],[`Ż`,`Z`],[`Є`,`Ye`],[`І`,`I`],[`Ї`,`Yi`],[`Ґ`,`G`],[`є`,`ye`],[`і`,`i`],[`ї`,`yi`],[`ґ`,`g`],[`IJ`,`IJ`],[`ij`,`ij`],[`¢`,`c`],[`¥`,`Y`],[`߿`,`b`],[`৳`,`t`],[`૱`,`Bo`],[`฿`,`B`],[`₠`,`CE`],[`₡`,`C`],[`₢`,`Cr`],[`₣`,`F`],[`₥`,`m`],[`₦`,`N`],[`₧`,`Pt`],[`₨`,`Rs`],[`₩`,`W`],[`₫`,`s`],[`€`,`E`],[`₭`,`K`],[`₮`,`T`],[`₯`,`Dp`],[`₰`,`S`],[`₱`,`P`],[`₲`,`G`],[`₳`,`A`],[`₴`,`S`],[`₵`,`C`],[`₶`,`tt`],[`₷`,`S`],[`₸`,`T`],[`₹`,`R`],[`₺`,`L`],[`₽`,`P`],[`₿`,`B`],[`﹩`,`$`],[`¢`,`c`],[`¥`,`Y`],[`₩`,`W`],[`𝐀`,`A`],[`𝐁`,`B`],[`𝐂`,`C`],[`𝐃`,`D`],[`𝐄`,`E`],[`𝐅`,`F`],[`𝐆`,`G`],[`𝐇`,`H`],[`𝐈`,`I`],[`𝐉`,`J`],[`𝐊`,`K`],[`𝐋`,`L`],[`𝐌`,`M`],[`𝐍`,`N`],[`𝐎`,`O`],[`𝐏`,`P`],[`𝐐`,`Q`],[`𝐑`,`R`],[`𝐒`,`S`],[`𝐓`,`T`],[`𝐔`,`U`],[`𝐕`,`V`],[`𝐖`,`W`],[`𝐗`,`X`],[`𝐘`,`Y`],[`𝐙`,`Z`],[`𝐚`,`a`],[`𝐛`,`b`],[`𝐜`,`c`],[`𝐝`,`d`],[`𝐞`,`e`],[`𝐟`,`f`],[`𝐠`,`g`],[`𝐡`,`h`],[`𝐢`,`i`],[`𝐣`,`j`],[`𝐤`,`k`],[`𝐥`,`l`],[`𝐦`,`m`],[`𝐧`,`n`],[`𝐨`,`o`],[`𝐩`,`p`],[`𝐪`,`q`],[`𝐫`,`r`],[`𝐬`,`s`],[`𝐭`,`t`],[`𝐮`,`u`],[`𝐯`,`v`],[`𝐰`,`w`],[`𝐱`,`x`],[`𝐲`,`y`],[`𝐳`,`z`],[`𝐴`,`A`],[`𝐵`,`B`],[`𝐶`,`C`],[`𝐷`,`D`],[`𝐸`,`E`],[`𝐹`,`F`],[`𝐺`,`G`],[`𝐻`,`H`],[`𝐼`,`I`],[`𝐽`,`J`],[`𝐾`,`K`],[`𝐿`,`L`],[`𝑀`,`M`],[`𝑁`,`N`],[`𝑂`,`O`],[`𝑃`,`P`],[`𝑄`,`Q`],[`𝑅`,`R`],[`𝑆`,`S`],[`𝑇`,`T`],[`𝑈`,`U`],[`𝑉`,`V`],[`𝑊`,`W`],[`𝑋`,`X`],[`𝑌`,`Y`],[`𝑍`,`Z`],[`𝑎`,`a`],[`𝑏`,`b`],[`𝑐`,`c`],[`𝑑`,`d`],[`𝑒`,`e`],[`𝑓`,`f`],[`𝑔`,`g`],[`𝑖`,`i`],[`𝑗`,`j`],[`𝑘`,`k`],[`𝑙`,`l`],[`𝑚`,`m`],[`𝑛`,`n`],[`𝑜`,`o`],[`𝑝`,`p`],[`𝑞`,`q`],[`𝑟`,`r`],[`𝑠`,`s`],[`𝑡`,`t`],[`𝑢`,`u`],[`𝑣`,`v`],[`𝑤`,`w`],[`𝑥`,`x`],[`𝑦`,`y`],[`𝑧`,`z`],[`𝑨`,`A`],[`𝑩`,`B`],[`𝑪`,`C`],[`𝑫`,`D`],[`𝑬`,`E`],[`𝑭`,`F`],[`𝑮`,`G`],[`𝑯`,`H`],[`𝑰`,`I`],[`𝑱`,`J`],[`𝑲`,`K`],[`𝑳`,`L`],[`𝑴`,`M`],[`𝑵`,`N`],[`𝑶`,`O`],[`𝑷`,`P`],[`𝑸`,`Q`],[`𝑹`,`R`],[`𝑺`,`S`],[`𝑻`,`T`],[`𝑼`,`U`],[`𝑽`,`V`],[`𝑾`,`W`],[`𝑿`,`X`],[`𝒀`,`Y`],[`𝒁`,`Z`],[`𝒂`,`a`],[`𝒃`,`b`],[`𝒄`,`c`],[`𝒅`,`d`],[`𝒆`,`e`],[`𝒇`,`f`],[`𝒈`,`g`],[`𝒉`,`h`],[`𝒊`,`i`],[`𝒋`,`j`],[`𝒌`,`k`],[`𝒍`,`l`],[`𝒎`,`m`],[`𝒏`,`n`],[`𝒐`,`o`],[`𝒑`,`p`],[`𝒒`,`q`],[`𝒓`,`r`],[`𝒔`,`s`],[`𝒕`,`t`],[`𝒖`,`u`],[`𝒗`,`v`],[`𝒘`,`w`],[`𝒙`,`x`],[`𝒚`,`y`],[`𝒛`,`z`],[`𝒜`,`A`],[`𝒞`,`C`],[`𝒟`,`D`],[`𝒢`,`g`],[`𝒥`,`J`],[`𝒦`,`K`],[`𝒩`,`N`],[`𝒪`,`O`],[`𝒫`,`P`],[`𝒬`,`Q`],[`𝒮`,`S`],[`𝒯`,`T`],[`𝒰`,`U`],[`𝒱`,`V`],[`𝒲`,`W`],[`𝒳`,`X`],[`𝒴`,`Y`],[`𝒵`,`Z`],[`𝒶`,`a`],[`𝒷`,`b`],[`𝒸`,`c`],[`𝒹`,`d`],[`𝒻`,`f`],[`𝒽`,`h`],[`𝒾`,`i`],[`𝒿`,`j`],[`𝓀`,`h`],[`𝓁`,`l`],[`𝓂`,`m`],[`𝓃`,`n`],[`𝓅`,`p`],[`𝓆`,`q`],[`𝓇`,`r`],[`𝓈`,`s`],[`𝓉`,`t`],[`𝓊`,`u`],[`𝓋`,`v`],[`𝓌`,`w`],[`𝓍`,`x`],[`𝓎`,`y`],[`𝓏`,`z`],[`𝓐`,`A`],[`𝓑`,`B`],[`𝓒`,`C`],[`𝓓`,`D`],[`𝓔`,`E`],[`𝓕`,`F`],[`𝓖`,`G`],[`𝓗`,`H`],[`𝓘`,`I`],[`𝓙`,`J`],[`𝓚`,`K`],[`𝓛`,`L`],[`𝓜`,`M`],[`𝓝`,`N`],[`𝓞`,`O`],[`𝓟`,`P`],[`𝓠`,`Q`],[`𝓡`,`R`],[`𝓢`,`S`],[`𝓣`,`T`],[`𝓤`,`U`],[`𝓥`,`V`],[`𝓦`,`W`],[`𝓧`,`X`],[`𝓨`,`Y`],[`𝓩`,`Z`],[`𝓪`,`a`],[`𝓫`,`b`],[`𝓬`,`c`],[`𝓭`,`d`],[`𝓮`,`e`],[`𝓯`,`f`],[`𝓰`,`g`],[`𝓱`,`h`],[`𝓲`,`i`],[`𝓳`,`j`],[`𝓴`,`k`],[`𝓵`,`l`],[`𝓶`,`m`],[`𝓷`,`n`],[`𝓸`,`o`],[`𝓹`,`p`],[`𝓺`,`q`],[`𝓻`,`r`],[`𝓼`,`s`],[`𝓽`,`t`],[`𝓾`,`u`],[`𝓿`,`v`],[`𝔀`,`w`],[`𝔁`,`x`],[`𝔂`,`y`],[`𝔃`,`z`],[`𝔄`,`A`],[`𝔅`,`B`],[`𝔇`,`D`],[`𝔈`,`E`],[`𝔉`,`F`],[`𝔊`,`G`],[`𝔍`,`J`],[`𝔎`,`K`],[`𝔏`,`L`],[`𝔐`,`M`],[`𝔑`,`N`],[`𝔒`,`O`],[`𝔓`,`P`],[`𝔔`,`Q`],[`𝔖`,`S`],[`𝔗`,`T`],[`𝔘`,`U`],[`𝔙`,`V`],[`𝔚`,`W`],[`𝔛`,`X`],[`𝔜`,`Y`],[`𝔞`,`a`],[`𝔟`,`b`],[`𝔠`,`c`],[`𝔡`,`d`],[`𝔢`,`e`],[`𝔣`,`f`],[`𝔤`,`g`],[`𝔥`,`h`],[`𝔦`,`i`],[`𝔧`,`j`],[`𝔨`,`k`],[`𝔩`,`l`],[`𝔪`,`m`],[`𝔫`,`n`],[`𝔬`,`o`],[`𝔭`,`p`],[`𝔮`,`q`],[`𝔯`,`r`],[`𝔰`,`s`],[`𝔱`,`t`],[`𝔲`,`u`],[`𝔳`,`v`],[`𝔴`,`w`],[`𝔵`,`x`],[`𝔶`,`y`],[`𝔷`,`z`],[`𝔸`,`A`],[`𝔹`,`B`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`𝕆`,`N`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`],[`𝕬`,`A`],[`𝕭`,`B`],[`𝕮`,`C`],[`𝕯`,`D`],[`𝕰`,`E`],[`𝕱`,`F`],[`𝕲`,`G`],[`𝕳`,`H`],[`𝕴`,`I`],[`𝕵`,`J`],[`𝕶`,`K`],[`𝕷`,`L`],[`𝕸`,`M`],[`𝕹`,`N`],[`𝕺`,`O`],[`𝕻`,`P`],[`𝕼`,`Q`],[`𝕽`,`R`],[`𝕾`,`S`],[`𝕿`,`T`],[`𝖀`,`U`],[`𝖁`,`V`],[`𝖂`,`W`],[`𝖃`,`X`],[`𝖄`,`Y`],[`𝖅`,`Z`],[`𝖆`,`a`],[`𝖇`,`b`],[`𝖈`,`c`],[`𝖉`,`d`],[`𝖊`,`e`],[`𝖋`,`f`],[`𝖌`,`g`],[`𝖍`,`h`],[`𝖎`,`i`],[`𝖏`,`j`],[`𝖐`,`k`],[`𝖑`,`l`],[`𝖒`,`m`],[`𝖓`,`n`],[`𝖔`,`o`],[`𝖕`,`p`],[`𝖖`,`q`],[`𝖗`,`r`],[`𝖘`,`s`],[`𝖙`,`t`],[`𝖚`,`u`],[`𝖛`,`v`],[`𝖜`,`w`],[`𝖝`,`x`],[`𝖞`,`y`],[`𝖟`,`z`],[`𝖠`,`A`],[`𝖡`,`B`],[`𝖢`,`C`],[`𝖣`,`D`],[`𝖤`,`E`],[`𝖥`,`F`],[`𝖦`,`G`],[`𝖧`,`H`],[`𝖨`,`I`],[`𝖩`,`J`],[`𝖪`,`K`],[`𝖫`,`L`],[`𝖬`,`M`],[`𝖭`,`N`],[`𝖮`,`O`],[`𝖯`,`P`],[`𝖰`,`Q`],[`𝖱`,`R`],[`𝖲`,`S`],[`𝖳`,`T`],[`𝖴`,`U`],[`𝖵`,`V`],[`𝖶`,`W`],[`𝖷`,`X`],[`𝖸`,`Y`],[`𝖹`,`Z`],[`𝖺`,`a`],[`𝖻`,`b`],[`𝖼`,`c`],[`𝖽`,`d`],[`𝖾`,`e`],[`𝖿`,`f`],[`𝗀`,`g`],[`𝗁`,`h`],[`𝗂`,`i`],[`𝗃`,`j`],[`𝗄`,`k`],[`𝗅`,`l`],[`𝗆`,`m`],[`𝗇`,`n`],[`𝗈`,`o`],[`𝗉`,`p`],[`𝗊`,`q`],[`𝗋`,`r`],[`𝗌`,`s`],[`𝗍`,`t`],[`𝗎`,`u`],[`𝗏`,`v`],[`𝗐`,`w`],[`𝗑`,`x`],[`𝗒`,`y`],[`𝗓`,`z`],[`𝗔`,`A`],[`𝗕`,`B`],[`𝗖`,`C`],[`𝗗`,`D`],[`𝗘`,`E`],[`𝗙`,`F`],[`𝗚`,`G`],[`𝗛`,`H`],[`𝗜`,`I`],[`𝗝`,`J`],[`𝗞`,`K`],[`𝗟`,`L`],[`𝗠`,`M`],[`𝗡`,`N`],[`𝗢`,`O`],[`𝗣`,`P`],[`𝗤`,`Q`],[`𝗥`,`R`],[`𝗦`,`S`],[`𝗧`,`T`],[`𝗨`,`U`],[`𝗩`,`V`],[`𝗪`,`W`],[`𝗫`,`X`],[`𝗬`,`Y`],[`𝗭`,`Z`],[`𝗮`,`a`],[`𝗯`,`b`],[`𝗰`,`c`],[`𝗱`,`d`],[`𝗲`,`e`],[`𝗳`,`f`],[`𝗴`,`g`],[`𝗵`,`h`],[`𝗶`,`i`],[`𝗷`,`j`],[`𝗸`,`k`],[`𝗹`,`l`],[`𝗺`,`m`],[`𝗻`,`n`],[`𝗼`,`o`],[`𝗽`,`p`],[`𝗾`,`q`],[`𝗿`,`r`],[`𝘀`,`s`],[`𝘁`,`t`],[`𝘂`,`u`],[`𝘃`,`v`],[`𝘄`,`w`],[`𝘅`,`x`],[`𝘆`,`y`],[`𝘇`,`z`],[`𝘈`,`A`],[`𝘉`,`B`],[`𝘊`,`C`],[`𝘋`,`D`],[`𝘌`,`E`],[`𝘍`,`F`],[`𝘎`,`G`],[`𝘏`,`H`],[`𝘐`,`I`],[`𝘑`,`J`],[`𝘒`,`K`],[`𝘓`,`L`],[`𝘔`,`M`],[`𝘕`,`N`],[`𝘖`,`O`],[`𝘗`,`P`],[`𝘘`,`Q`],[`𝘙`,`R`],[`𝘚`,`S`],[`𝘛`,`T`],[`𝘜`,`U`],[`𝘝`,`V`],[`𝘞`,`W`],[`𝘟`,`X`],[`𝘠`,`Y`],[`𝘡`,`Z`],[`𝘢`,`a`],[`𝘣`,`b`],[`𝘤`,`c`],[`𝘥`,`d`],[`𝘦`,`e`],[`𝘧`,`f`],[`𝘨`,`g`],[`𝘩`,`h`],[`𝘪`,`i`],[`𝘫`,`j`],[`𝘬`,`k`],[`𝘭`,`l`],[`𝘮`,`m`],[`𝘯`,`n`],[`𝘰`,`o`],[`𝘱`,`p`],[`𝘲`,`q`],[`𝘳`,`r`],[`𝘴`,`s`],[`𝘵`,`t`],[`𝘶`,`u`],[`𝘷`,`v`],[`𝘸`,`w`],[`𝘹`,`x`],[`𝘺`,`y`],[`𝘻`,`z`],[`𝘼`,`A`],[`𝘽`,`B`],[`𝘾`,`C`],[`𝘿`,`D`],[`𝙀`,`E`],[`𝙁`,`F`],[`𝙂`,`G`],[`𝙃`,`H`],[`𝙄`,`I`],[`𝙅`,`J`],[`𝙆`,`K`],[`𝙇`,`L`],[`𝙈`,`M`],[`𝙉`,`N`],[`𝙊`,`O`],[`𝙋`,`P`],[`𝙌`,`Q`],[`𝙍`,`R`],[`𝙎`,`S`],[`𝙏`,`T`],[`𝙐`,`U`],[`𝙑`,`V`],[`𝙒`,`W`],[`𝙓`,`X`],[`𝙔`,`Y`],[`𝙕`,`Z`],[`𝙖`,`a`],[`𝙗`,`b`],[`𝙘`,`c`],[`𝙙`,`d`],[`𝙚`,`e`],[`𝙛`,`f`],[`𝙜`,`g`],[`𝙝`,`h`],[`𝙞`,`i`],[`𝙟`,`j`],[`𝙠`,`k`],[`𝙡`,`l`],[`𝙢`,`m`],[`𝙣`,`n`],[`𝙤`,`o`],[`𝙥`,`p`],[`𝙦`,`q`],[`𝙧`,`r`],[`𝙨`,`s`],[`𝙩`,`t`],[`𝙪`,`u`],[`𝙫`,`v`],[`𝙬`,`w`],[`𝙭`,`x`],[`𝙮`,`y`],[`𝙯`,`z`],[`𝙰`,`A`],[`𝙱`,`B`],[`𝙲`,`C`],[`𝙳`,`D`],[`𝙴`,`E`],[`𝙵`,`F`],[`𝙶`,`G`],[`𝙷`,`H`],[`𝙸`,`I`],[`𝙹`,`J`],[`𝙺`,`K`],[`𝙻`,`L`],[`𝙼`,`M`],[`𝙽`,`N`],[`𝙾`,`O`],[`𝙿`,`P`],[`𝚀`,`Q`],[`𝚁`,`R`],[`𝚂`,`S`],[`𝚃`,`T`],[`𝚄`,`U`],[`𝚅`,`V`],[`𝚆`,`W`],[`𝚇`,`X`],[`𝚈`,`Y`],[`𝚉`,`Z`],[`𝚊`,`a`],[`𝚋`,`b`],[`𝚌`,`c`],[`𝚍`,`d`],[`𝚎`,`e`],[`𝚏`,`f`],[`𝚐`,`g`],[`𝚑`,`h`],[`𝚒`,`i`],[`𝚓`,`j`],[`𝚔`,`k`],[`𝚕`,`l`],[`𝚖`,`m`],[`𝚗`,`n`],[`𝚘`,`o`],[`𝚙`,`p`],[`𝚚`,`q`],[`𝚛`,`r`],[`𝚜`,`s`],[`𝚝`,`t`],[`𝚞`,`u`],[`𝚟`,`v`],[`𝚠`,`w`],[`𝚡`,`x`],[`𝚢`,`y`],[`𝚣`,`z`],[`𝚤`,`l`],[`𝚥`,`j`],[`𝛢`,`A`],[`𝛣`,`B`],[`𝛤`,`G`],[`𝛥`,`D`],[`𝛦`,`E`],[`𝛧`,`Z`],[`𝛨`,`I`],[`𝛩`,`TH`],[`𝛪`,`I`],[`𝛫`,`K`],[`𝛬`,`L`],[`𝛭`,`M`],[`𝛮`,`N`],[`𝛯`,`KS`],[`𝛰`,`O`],[`𝛱`,`P`],[`𝛲`,`R`],[`𝛳`,`TH`],[`𝛴`,`S`],[`𝛵`,`T`],[`𝛶`,`Y`],[`𝛷`,`F`],[`𝛸`,`x`],[`𝛹`,`PS`],[`𝛺`,`O`],[`𝛻`,`D`],[`𝛼`,`a`],[`𝛽`,`b`],[`𝛾`,`g`],[`𝛿`,`d`],[`𝜀`,`e`],[`𝜁`,`z`],[`𝜂`,`i`],[`𝜃`,`th`],[`𝜄`,`i`],[`𝜅`,`k`],[`𝜆`,`l`],[`𝜇`,`m`],[`𝜈`,`n`],[`𝜉`,`ks`],[`𝜊`,`o`],[`𝜋`,`p`],[`𝜌`,`r`],[`𝜍`,`s`],[`𝜎`,`s`],[`𝜏`,`t`],[`𝜐`,`y`],[`𝜑`,`f`],[`𝜒`,`x`],[`𝜓`,`ps`],[`𝜔`,`o`],[`𝜕`,`d`],[`𝜖`,`E`],[`𝜗`,`TH`],[`𝜘`,`K`],[`𝜙`,`f`],[`𝜚`,`r`],[`𝜛`,`p`],[`𝜜`,`A`],[`𝜝`,`V`],[`𝜞`,`G`],[`𝜟`,`D`],[`𝜠`,`E`],[`𝜡`,`Z`],[`𝜢`,`I`],[`𝜣`,`TH`],[`𝜤`,`I`],[`𝜥`,`K`],[`𝜦`,`L`],[`𝜧`,`M`],[`𝜨`,`N`],[`𝜩`,`KS`],[`𝜪`,`O`],[`𝜫`,`P`],[`𝜬`,`S`],[`𝜭`,`TH`],[`𝜮`,`S`],[`𝜯`,`T`],[`𝜰`,`Y`],[`𝜱`,`F`],[`𝜲`,`X`],[`𝜳`,`PS`],[`𝜴`,`O`],[`𝜵`,`D`],[`𝜶`,`a`],[`𝜷`,`v`],[`𝜸`,`g`],[`𝜹`,`d`],[`𝜺`,`e`],[`𝜻`,`z`],[`𝜼`,`i`],[`𝜽`,`th`],[`𝜾`,`i`],[`𝜿`,`k`],[`𝝀`,`l`],[`𝝁`,`m`],[`𝝂`,`n`],[`𝝃`,`ks`],[`𝝄`,`o`],[`𝝅`,`p`],[`𝝆`,`r`],[`𝝇`,`s`],[`𝝈`,`s`],[`𝝉`,`t`],[`𝝊`,`y`],[`𝝋`,`f`],[`𝝌`,`x`],[`𝝍`,`ps`],[`𝝎`,`o`],[`𝝏`,`a`],[`𝝐`,`e`],[`𝝑`,`i`],[`𝝒`,`k`],[`𝝓`,`f`],[`𝝔`,`r`],[`𝝕`,`p`],[`𝝖`,`A`],[`𝝗`,`B`],[`𝝘`,`G`],[`𝝙`,`D`],[`𝝚`,`E`],[`𝝛`,`Z`],[`𝝜`,`I`],[`𝝝`,`TH`],[`𝝞`,`I`],[`𝝟`,`K`],[`𝝠`,`L`],[`𝝡`,`M`],[`𝝢`,`N`],[`𝝣`,`KS`],[`𝝤`,`O`],[`𝝥`,`P`],[`𝝦`,`R`],[`𝝧`,`TH`],[`𝝨`,`S`],[`𝝩`,`T`],[`𝝪`,`Y`],[`𝝫`,`F`],[`𝝬`,`X`],[`𝝭`,`PS`],[`𝝮`,`O`],[`𝝯`,`D`],[`𝝰`,`a`],[`𝝱`,`v`],[`𝝲`,`g`],[`𝝳`,`d`],[`𝝴`,`e`],[`𝝵`,`z`],[`𝝶`,`i`],[`𝝷`,`th`],[`𝝸`,`i`],[`𝝹`,`k`],[`𝝺`,`l`],[`𝝻`,`m`],[`𝝼`,`n`],[`𝝽`,`ks`],[`𝝾`,`o`],[`𝝿`,`p`],[`𝞀`,`r`],[`𝞁`,`s`],[`𝞂`,`s`],[`𝞃`,`t`],[`𝞄`,`y`],[`𝞅`,`f`],[`𝞆`,`x`],[`𝞇`,`ps`],[`𝞈`,`o`],[`𝞉`,`a`],[`𝞊`,`e`],[`𝞋`,`i`],[`𝞌`,`k`],[`𝞍`,`f`],[`𝞎`,`r`],[`𝞏`,`p`],[`𝞐`,`A`],[`𝞑`,`V`],[`𝞒`,`G`],[`𝞓`,`D`],[`𝞔`,`E`],[`𝞕`,`Z`],[`𝞖`,`I`],[`𝞗`,`TH`],[`𝞘`,`I`],[`𝞙`,`K`],[`𝞚`,`L`],[`𝞛`,`M`],[`𝞜`,`N`],[`𝞝`,`KS`],[`𝞞`,`O`],[`𝞟`,`P`],[`𝞠`,`S`],[`𝞡`,`TH`],[`𝞢`,`S`],[`𝞣`,`T`],[`𝞤`,`Y`],[`𝞥`,`F`],[`𝞦`,`X`],[`𝞧`,`PS`],[`𝞨`,`O`],[`𝞩`,`D`],[`𝞪`,`av`],[`𝞫`,`g`],[`𝞬`,`d`],[`𝞭`,`e`],[`𝞮`,`z`],[`𝞯`,`i`],[`𝞰`,`i`],[`𝞱`,`th`],[`𝞲`,`i`],[`𝞳`,`k`],[`𝞴`,`l`],[`𝞵`,`m`],[`𝞶`,`n`],[`𝞷`,`ks`],[`𝞸`,`o`],[`𝞹`,`p`],[`𝞺`,`r`],[`𝞻`,`s`],[`𝞼`,`s`],[`𝞽`,`t`],[`𝞾`,`y`],[`𝞿`,`f`],[`𝟀`,`x`],[`𝟁`,`ps`],[`𝟂`,`o`],[`𝟃`,`a`],[`𝟄`,`e`],[`𝟅`,`i`],[`𝟆`,`k`],[`𝟇`,`f`],[`𝟈`,`r`],[`𝟉`,`p`],[`𝟊`,`F`],[`𝟋`,`f`],[`⒜`,`(a)`],[`⒝`,`(b)`],[`⒞`,`(c)`],[`⒟`,`(d)`],[`⒠`,`(e)`],[`⒡`,`(f)`],[`⒢`,`(g)`],[`⒣`,`(h)`],[`⒤`,`(i)`],[`⒥`,`(j)`],[`⒦`,`(k)`],[`⒧`,`(l)`],[`⒨`,`(m)`],[`⒩`,`(n)`],[`⒪`,`(o)`],[`⒫`,`(p)`],[`⒬`,`(q)`],[`⒭`,`(r)`],[`⒮`,`(s)`],[`⒯`,`(t)`],[`⒰`,`(u)`],[`⒱`,`(v)`],[`⒲`,`(w)`],[`⒳`,`(x)`],[`⒴`,`(y)`],[`⒵`,`(z)`],[`Ⓐ`,`(A)`],[`Ⓑ`,`(B)`],[`Ⓒ`,`(C)`],[`Ⓓ`,`(D)`],[`Ⓔ`,`(E)`],[`Ⓕ`,`(F)`],[`Ⓖ`,`(G)`],[`Ⓗ`,`(H)`],[`Ⓘ`,`(I)`],[`Ⓙ`,`(J)`],[`Ⓚ`,`(K)`],[`Ⓛ`,`(L)`],[`Ⓝ`,`(N)`],[`Ⓞ`,`(O)`],[`Ⓟ`,`(P)`],[`Ⓠ`,`(Q)`],[`Ⓡ`,`(R)`],[`Ⓢ`,`(S)`],[`Ⓣ`,`(T)`],[`Ⓤ`,`(U)`],[`Ⓥ`,`(V)`],[`Ⓦ`,`(W)`],[`Ⓧ`,`(X)`],[`Ⓨ`,`(Y)`],[`Ⓩ`,`(Z)`],[`ⓐ`,`(a)`],[`ⓑ`,`(b)`],[`ⓒ`,`(b)`],[`ⓓ`,`(c)`],[`ⓔ`,`(e)`],[`ⓕ`,`(f)`],[`ⓖ`,`(g)`],[`ⓗ`,`(h)`],[`ⓘ`,`(i)`],[`ⓙ`,`(j)`],[`ⓚ`,`(k)`],[`ⓛ`,`(l)`],[`ⓜ`,`(m)`],[`ⓝ`,`(n)`],[`ⓞ`,`(o)`],[`ⓟ`,`(p)`],[`ⓠ`,`(q)`],[`ⓡ`,`(r)`],[`ⓢ`,`(s)`],[`ⓣ`,`(t)`],[`ⓤ`,`(u)`],[`ⓥ`,`(v)`],[`ⓦ`,`(w)`],[`ⓧ`,`(x)`],[`ⓨ`,`(y)`],[`ⓩ`,`(z)`],[`Ċ`,`C`],[`ċ`,`c`],[`Ġ`,`G`],[`ġ`,`g`],[`Ħ`,`H`],[`ħ`,`h`],[`Ż`,`Z`],[`ż`,`z`],[`𝟎`,`0`],[`𝟏`,`1`],[`𝟐`,`2`],[`𝟑`,`3`],[`𝟒`,`4`],[`𝟓`,`5`],[`𝟔`,`6`],[`𝟕`,`7`],[`𝟖`,`8`],[`𝟗`,`9`],[`𝟘`,`0`],[`𝟙`,`1`],[`𝟚`,`2`],[`𝟛`,`3`],[`𝟜`,`4`],[`𝟝`,`5`],[`𝟞`,`6`],[`𝟟`,`7`],[`𝟠`,`8`],[`𝟡`,`9`],[`𝟢`,`0`],[`𝟣`,`1`],[`𝟤`,`2`],[`𝟥`,`3`],[`𝟦`,`4`],[`𝟧`,`5`],[`𝟨`,`6`],[`𝟩`,`7`],[`𝟪`,`8`],[`𝟫`,`9`],[`𝟬`,`0`],[`𝟭`,`1`],[`𝟮`,`2`],[`𝟯`,`3`],[`𝟰`,`4`],[`𝟱`,`5`],[`𝟲`,`6`],[`𝟳`,`7`],[`𝟴`,`8`],[`𝟵`,`9`],[`𝟶`,`0`],[`𝟷`,`1`],[`𝟸`,`2`],[`𝟹`,`3`],[`𝟺`,`4`],[`𝟻`,`5`],[`𝟼`,`6`],[`𝟽`,`7`],[`𝟾`,`8`],[`𝟿`,`9`],[`①`,`1`],[`②`,`2`],[`③`,`3`],[`④`,`4`],[`⑤`,`5`],[`⑥`,`6`],[`⑦`,`7`],[`⑧`,`8`],[`⑨`,`9`],[`⑩`,`10`],[`⑪`,`11`],[`⑫`,`12`],[`⑬`,`13`],[`⑭`,`14`],[`⑮`,`15`],[`⑯`,`16`],[`⑰`,`17`],[`⑱`,`18`],[`⑲`,`19`],[`⑳`,`20`],[`⑴`,`1`],[`⑵`,`2`],[`⑶`,`3`],[`⑷`,`4`],[`⑸`,`5`],[`⑹`,`6`],[`⑺`,`7`],[`⑻`,`8`],[`⑼`,`9`],[`⑽`,`10`],[`⑾`,`11`],[`⑿`,`12`],[`⒀`,`13`],[`⒁`,`14`],[`⒂`,`15`],[`⒃`,`16`],[`⒄`,`17`],[`⒅`,`18`],[`⒆`,`19`],[`⒇`,`20`],[`⒈`,`1.`],[`⒉`,`2.`],[`⒊`,`3.`],[`⒋`,`4.`],[`⒌`,`5.`],[`⒍`,`6.`],[`⒎`,`7.`],[`⒏`,`8.`],[`⒐`,`9.`],[`⒑`,`10.`],[`⒒`,`11.`],[`⒓`,`12.`],[`⒔`,`13.`],[`⒕`,`14.`],[`⒖`,`15.`],[`⒗`,`16.`],[`⒘`,`17.`],[`⒙`,`18.`],[`⒚`,`19.`],[`⒛`,`20.`],[`⓪`,`0`],[`⓫`,`11`],[`⓬`,`12`],[`⓭`,`13`],[`⓮`,`14`],[`⓯`,`15`],[`⓰`,`16`],[`⓱`,`17`],[`⓲`,`18`],[`⓳`,`19`],[`⓴`,`20`],[`⓵`,`1`],[`⓶`,`2`],[`⓷`,`3`],[`⓸`,`4`],[`⓹`,`5`],[`⓺`,`6`],[`⓻`,`7`],[`⓼`,`8`],[`⓽`,`9`],[`⓾`,`10`],[`⓿`,`0`],[`🙰`,`&`],[`🙱`,`&`],[`🙲`,`&`],[`🙳`,`&`],[`🙴`,`&`],[`🙵`,`&`],[`🙶`,`"`],[`🙷`,`"`],[`🙸`,`"`],[`‽`,`?!`],[`🙹`,`?!`],[`🙺`,`?!`],[`🙻`,`?!`],[`🙼`,`/`],[`🙽`,`\\`],[`🜇`,`AR`],[`🜈`,`V`],[`🜉`,`V`],[`🜆`,`VR`],[`🜅`,`VF`],[`🜩`,`2`],[`🜪`,`5`],[`🝡`,`f`],[`🝢`,`W`],[`🝣`,`U`],[`🝧`,`V`],[`🝨`,`T`],[`🝪`,`V`],[`🝫`,`MB`],[`🝬`,`VB`],[`🝲`,`3B`],[`🝳`,`3B`],[`💯`,`100`],[`🔙`,`BACK`],[`🔚`,`END`],[`🔛`,`ON!`],[`🔜`,`SOON`],[`🔝`,`TOP`],[`🔞`,`18`],[`🔤`,`abc`],[`🔠`,`ABCD`],[`🔡`,`abcd`],[`🔢`,`1234`],[`🔣`,`T&@%`],[`#️⃣`,`#`],[`*️⃣`,`*`],[`0️⃣`,`0`],[`1️⃣`,`1`],[`2️⃣`,`2`],[`3️⃣`,`3`],[`4️⃣`,`4`],[`5️⃣`,`5`],[`6️⃣`,`6`],[`7️⃣`,`7`],[`8️⃣`,`8`],[`9️⃣`,`9`],[`🔟`,`10`],[`🅰️`,`A`],[`🅱️`,`B`],[`🆎`,`AB`],[`🆑`,`CL`],[`🅾️`,`O`],[`🅿`,`P`],[`🆘`,`SOS`],[`🅲`,`C`],[`🅳`,`D`],[`🅴`,`E`],[`🅵`,`F`],[`🅶`,`G`],[`🅷`,`H`],[`🅸`,`I`],[`🅹`,`J`],[`🅺`,`K`],[`🅻`,`L`],[`🅼`,`M`],[`🅽`,`N`],[`🆀`,`Q`],[`🆁`,`R`],[`🆂`,`S`],[`🆃`,`T`],[`🆄`,`U`],[`🆅`,`V`],[`🆆`,`W`],[`🆇`,`X`],[`🆈`,`Y`],[`🆉`,`Z`]],xDe=(e,t)=>{for(let[n,r]of t)e.includes(n)&&(e=e.replace(new RegExp(Re(n),`g`),r));return e},KE=e=>/^[\u0000-\u007F]*$/.test(e),qE=/* @__PURE__ */ new Map,SDe=e=>{let t=JSON.stringify([...e]),n=qE.get(t);if(!n){let r=[...new Map([...bDe,...e])],i=r.filter(([e])=>KE(e));n={all:r,ascii:i.every(([,e])=>KE(e))?i:void 0},qE.size>=100&&qE.clear(),qE.set(t,n)}return n};function CDe(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let{all:n,ascii:r}=SDe(t.customReplacements);return e=e.normalize(),e=xDe(e,r&&KE(e)?r:n),e=e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).normalize(),e}const wDe=[[`&`,` and `],[`🦄`,` unicorn `],[`♥`,` love `]],TDe=e=>e.replace(/([A-Z]{2,})(\d+)/g,`$1 $2`).replace(/([a-z\d]+)([A-Z]{2,})/g,`$1 $2`).replace(/([a-z\d])([A-Z])/g,`$1 $2`).replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,`$1 $2`),EDe=(e,t)=>{let n=Re(t);return e.replace(RegExp(`${n}{2,}`,`g`),t).replace(RegExp(`^${n}|${n}$`,`g`),``)},DDe=e=>{let t=`a-z\\d`;if(t+=e.lowercase?``:`A-Z`,e.preserveCharacters.length>0)for(let n of e.preserveCharacters){if(n===e.separator)throw Error(`The separator character \`${e.separator}\` cannot be included in preserved characters: ${e.preserveCharacters}`);t+=Re(n)}return RegExp(`[^${t}]+`,`g`)};function ODe(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={separator:`-`,lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...t};let n=t.preserveLeadingUnderscore&&e.startsWith(`_`),r=t.preserveTrailingDash&&e.endsWith(`-`),i=new Map([...wDe,...t.customReplacements]);e=CDe(e,{customReplacements:i}),t.decamelize&&(e=TDe(e));let a=DDe(t);return t.lowercase&&(e=e.toLowerCase()),e=e.replace(a,t.separator),e=e.replace(/\\/g,``),e=e.replace(/([a-zA-Z\d]+)-([ts])(-|$)/g,`$1$2$3`),t.separator&&(e=EDe(e,t.separator)),n&&(e=`_${e}`),r&&(e=`${e}-`),e}const JE=e=>decodeURIComponent(typeof e==`string`?e.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`):e).replace(/[?,;:!'"()[\]{}]/g,``).replace(/\p{Emoji_Modifier}|\p{Emoji_Modifier_Base}|\p{Emoji_Presentation}|\p{Extended_Pictographic}|[\u200D\uFE0E\uFE0F]/gu,``),YE=e=>{try{return JE(e)}catch{return e}},XE=/* @__PURE__ */ new Map;function ZE(e,t){let n=`${JSON.stringify(t??null)}\u0000${e}`,r=XE.get(n);if(r!==void 0)return r;let i=ODe(e,t);return XE.size>=2e4&&XE.clear(),XE.set(n,i),i}function QE(){let e=/* @__PURE__ */ new Map,t=(t,n)=>{if(t=ZE(t,n),!t)return``;let r=t.toLowerCase(),i=e.get(r.replace(/(?:-\d+?)+?$/,``))||0,a=e.get(r);e.set(r,typeof a==`number`?a+1:1);let o=e.get(r)||2;return(o>=2||i>2)&&(t=`${t}-${o}`),t};return t.reset=()=>{e.clear()},t}function $E(e,t=QE()){let n=yDe(e);return/%[0-9A-F]{2}/.test(n)?t(n,{decamelize:!1,preserveCharacters:[`%`,`_`],lowercase:!1}):t(n,{decamelize:!1,preserveCharacters:[`_`]})}function kDe(e,t){return ZE(`param-${e}${t>0?`_${t}`:``}`,{decamelize:!0,separator:`-`})}const ADe=/[#.]/g;function jDe(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){ADe.lastIndex=i;let e=ADe.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}const MDe=/* @__PURE__ */ new Set([`button`,`menu`,`reset`,`submit`]),eD={}.hasOwnProperty;function NDe(e,t,n){let r=n&&RDe(n);function i(n,i,...a){let o=-1,s;if(n==null){s={type:`root`,children:[]};let e=i;a.unshift(e)}else if(s=jDe(n,t),s.tagName=s.tagName.toLowerCase(),r&&eD.call(r,s.tagName)&&(s.tagName=r[s.tagName]),PDe(i,s.tagName)){let t;for(t in i)eD.call(i,t)&&FDe(e,s.properties,t,i[t])}else a.unshift(i);for(;++o<a.length;)tD(s.children,a[o]);return s.type===`element`&&s.tagName===`template`&&(s.content={type:`root`,children:s.children},s.children=[]),s}return i}function PDe(e,t){return typeof e!=`object`||!e||Array.isArray(e)?!1:t===`input`||!e.type||typeof e.type!=`string`?!0:`children`in e&&Array.isArray(e.children)?!1:t===`button`?MDe.has(e.type.toLowerCase()):!(`value`in e)}function FDe(e,t,n,r){let i=dDe(e,n),a=-1,o;if(r!=null){if(typeof r==`number`){if(Number.isNaN(r))return;o=r}else o=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?hDe(r):i.commaSeparated?mDe(r):i.commaOrSpaceSeparated?hDe(mDe(r).join(` `)):IDe(i,i.property,r):Array.isArray(r)?r.concat():i.property===`style`?LDe(r):String(r);if(Array.isArray(o)){let e=[];for(;++a<o.length;){let t=IDe(i,i.property,o[a]);e[a]=t}o=e}if(i.property===`className`&&Array.isArray(t.className)){let e=o;o=t.className.concat(e)}t[i.property]=o}}function tD(e,t){let n=-1;if(t!=null){if(typeof t==`string`||typeof t==`number`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)tD(e,t[n]);else if(typeof t==`object`&&`type`in t)t.type===`root`?tD(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}}function IDe(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||kE(n)===kE(t)))return!0}return n}function LDe(e){let t=[],n;for(n in e)eD.call(e,n)&&t.push([n,e[n]].join(`: `));return t.join(`; `)}function RDe(e){let t={},n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const zDe=/* @__PURE__ */ `altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath`.split(`.`),BDe=NDe(UE,`div`),VDe=NDe(WE,`g`,zDe),nD=/\r?\n|\r/g;function HDe(e){let t=String(e),n=[];for(nD.lastIndex=0;nD.test(t);)n.push(nD.lastIndex);return n.push(t.length+1),{toPoint:r,toOffset:i};function r(e){let t=-1;if(typeof e==`number`&&e>-1&&e<n[n.length-1]){for(;++t<n.length;)if(n[t]>e)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}}}function i(e){let t=e&&e.line,r=e&&e.column;if(typeof t==`number`&&typeof r==`number`&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){let e=(n[t-2]||0)+r-1||0;if(e>-1&&e<n[n.length-1])return e}}}const UDe={html:`http://www.w3.org/1999/xhtml`,mathml:`http://www.w3.org/1998/Math/MathML`,svg:`http://www.w3.org/2000/svg`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`},WDe={}.hasOwnProperty,GDe=Object.prototype;function KDe(e,t){let n=t||{};return rD({file:n.file||void 0,location:!1,schema:n.space===`svg`?WE:UE,verbose:n.verbose||!1},e)}function rD(e,t){let n;switch(t.nodeName){case`#comment`:{let r=t;return n={type:`comment`,value:r.data},iD(e,r,n),n}case`#document`:case`#document-fragment`:{let r=t,i=`mode`in r?r.mode===`quirks`||r.mode===`limited-quirks`:!1;if(n={type:`root`,children:qDe(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){let t=String(e.file),r=HDe(t),i=r.toPoint(0),a=r.toPoint(t.length);n.position={start:i,end:a}}return n}case`#documentType`:{let r=t;return n={type:`doctype`},iD(e,r,n),n}case`#text`:{let r=t;return n={type:`text`,value:r.value},iD(e,r,n),n}default:return n=JDe(e,t),n}}function qDe(e,t){let n=-1,r=[];for(;++n<t.length;){let i=rD(e,t[n]);r.push(i)}return r}function JDe(e,t){let n=e.schema;e.schema=t.namespaceURI===UDe.svg?WE:UE;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+`:`:``)+e.name;WDe.call(GDe,n)||(i[n]=e.value)}let a=(e.schema.space===`svg`?VDe:BDe)(t.tagName,i,qDe(e,t.childNodes));if(iD(e,t,a),a.tagName===`template`){let n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&aD(r.startTag),o=r&&r.endTag&&aD(r.endTag),s=rD(e,n.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=n,a}function iD(e,t,n){if(`sourceCodeLocation`in t&&t.sourceCodeLocation&&e.file){let r=YDe(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function YDe(e,t,n){let r=aD(n);if(t.type===`element`){let i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){let r={},i;if(n.attrs)for(i in n.attrs)WDe.call(n.attrs,i)&&(r[dDe(e.schema,i).property]=aD(n.attrs[i]));n.startTag;let a=aD(n.startTag),o=n.endTag?aD(n.endTag):void 0,s={opening:a};o&&(s.closing=o),s.properties=r,t.data={position:s}}}return r}function aD(e){let t=XDe({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=XDe({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function XDe(e){return e.line&&e.column?e:void 0}const ZDe=/* @__PURE__ */ new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);var Y;(function(e){e[e.EOF=-1]=`EOF`,e[e.NULL=0]=`NULL`,e[e.TABULATION=9]=`TABULATION`,e[e.CARRIAGE_RETURN=13]=`CARRIAGE_RETURN`,e[e.LINE_FEED=10]=`LINE_FEED`,e[e.FORM_FEED=12]=`FORM_FEED`,e[e.SPACE=32]=`SPACE`,e[e.EXCLAMATION_MARK=33]=`EXCLAMATION_MARK`,e[e.QUOTATION_MARK=34]=`QUOTATION_MARK`,e[e.NUMBER_SIGN=35]=`NUMBER_SIGN`,e[e.AMPERSAND=38]=`AMPERSAND`,e[e.APOSTROPHE=39]=`APOSTROPHE`,e[e.HYPHEN_MINUS=45]=`HYPHEN_MINUS`,e[e.SOLIDUS=47]=`SOLIDUS`,e[e.DIGIT_0=48]=`DIGIT_0`,e[e.DIGIT_9=57]=`DIGIT_9`,e[e.SEMICOLON=59]=`SEMICOLON`,e[e.LESS_THAN_SIGN=60]=`LESS_THAN_SIGN`,e[e.EQUALS_SIGN=61]=`EQUALS_SIGN`,e[e.GREATER_THAN_SIGN=62]=`GREATER_THAN_SIGN`,e[e.QUESTION_MARK=63]=`QUESTION_MARK`,e[e.LATIN_CAPITAL_A=65]=`LATIN_CAPITAL_A`,e[e.LATIN_CAPITAL_F=70]=`LATIN_CAPITAL_F`,e[e.LATIN_CAPITAL_X=88]=`LATIN_CAPITAL_X`,e[e.LATIN_CAPITAL_Z=90]=`LATIN_CAPITAL_Z`,e[e.RIGHT_SQUARE_BRACKET=93]=`RIGHT_SQUARE_BRACKET`,e[e.GRAVE_ACCENT=96]=`GRAVE_ACCENT`,e[e.LATIN_SMALL_A=97]=`LATIN_SMALL_A`,e[e.LATIN_SMALL_F=102]=`LATIN_SMALL_F`,e[e.LATIN_SMALL_X=120]=`LATIN_SMALL_X`,e[e.LATIN_SMALL_Z=122]=`LATIN_SMALL_Z`,e[e.REPLACEMENT_CHARACTER=65533]=`REPLACEMENT_CHARACTER`})(Y=Y||={});const oD={DASH_DASH:`--`,CDATA_START:`[CDATA[`,DOCTYPE:`doctype`,SCRIPT:`script`,PUBLIC:`public`,SYSTEM:`system`};function QDe(e){return e>=55296&&e<=57343}function $De(e){return e>=56320&&e<=57343}function eOe(e,t){return(e-55296)*1024+9216+t}function tOe(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function nOe(e){return e>=64976&&e<=65007||ZDe.has(e)}var sD;(function(e){e.controlCharacterInInputStream=`control-character-in-input-stream`,e.noncharacterInInputStream=`noncharacter-in-input-stream`,e.surrogateInInputStream=`surrogate-in-input-stream`,e.nonVoidHtmlElementStartTagWithTrailingSolidus=`non-void-html-element-start-tag-with-trailing-solidus`,e.endTagWithAttributes=`end-tag-with-attributes`,e.endTagWithTrailingSolidus=`end-tag-with-trailing-solidus`,e.unexpectedSolidusInTag=`unexpected-solidus-in-tag`,e.unexpectedNullCharacter=`unexpected-null-character`,e.unexpectedQuestionMarkInsteadOfTagName=`unexpected-question-mark-instead-of-tag-name`,e.invalidFirstCharacterOfTagName=`invalid-first-character-of-tag-name`,e.unexpectedEqualsSignBeforeAttributeName=`unexpected-equals-sign-before-attribute-name`,e.missingEndTagName=`missing-end-tag-name`,e.unexpectedCharacterInAttributeName=`unexpected-character-in-attribute-name`,e.unknownNamedCharacterReference=`unknown-named-character-reference`,e.missingSemicolonAfterCharacterReference=`missing-semicolon-after-character-reference`,e.unexpectedCharacterAfterDoctypeSystemIdentifier=`unexpected-character-after-doctype-system-identifier`,e.unexpectedCharacterInUnquotedAttributeValue=`unexpected-character-in-unquoted-attribute-value`,e.eofBeforeTagName=`eof-before-tag-name`,e.eofInTag=`eof-in-tag`,e.missingAttributeValue=`missing-attribute-value`,e.missingWhitespaceBetweenAttributes=`missing-whitespace-between-attributes`,e.missingWhitespaceAfterDoctypePublicKeyword=`missing-whitespace-after-doctype-public-keyword`,e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers=`missing-whitespace-between-doctype-public-and-system-identifiers`,e.missingWhitespaceAfterDoctypeSystemKeyword=`missing-whitespace-after-doctype-system-keyword`,e.missingQuoteBeforeDoctypePublicIdentifier=`missing-quote-before-doctype-public-identifier`,e.missingQuoteBeforeDoctypeSystemIdentifier=`missing-quote-before-doctype-system-identifier`,e.missingDoctypePublicIdentifier=`missing-doctype-public-identifier`,e.missingDoctypeSystemIdentifier=`missing-doctype-system-identifier`,e.abruptDoctypePublicIdentifier=`abrupt-doctype-public-identifier`,e.abruptDoctypeSystemIdentifier=`abrupt-doctype-system-identifier`,e.cdataInHtmlContent=`cdata-in-html-content`,e.incorrectlyOpenedComment=`incorrectly-opened-comment`,e.eofInScriptHtmlCommentLikeText=`eof-in-script-html-comment-like-text`,e.eofInDoctype=`eof-in-doctype`,e.nestedComment=`nested-comment`,e.abruptClosingOfEmptyComment=`abrupt-closing-of-empty-comment`,e.eofInComment=`eof-in-comment`,e.incorrectlyClosedComment=`incorrectly-closed-comment`,e.eofInCdata=`eof-in-cdata`,e.absenceOfDigitsInNumericCharacterReference=`absence-of-digits-in-numeric-character-reference`,e.nullCharacterReference=`null-character-reference`,e.surrogateCharacterReference=`surrogate-character-reference`,e.characterReferenceOutsideUnicodeRange=`character-reference-outside-unicode-range`,e.controlCharacterReference=`control-character-reference`,e.noncharacterCharacterReference=`noncharacter-character-reference`,e.missingWhitespaceBeforeDoctypeName=`missing-whitespace-before-doctype-name`,e.missingDoctypeName=`missing-doctype-name`,e.invalidCharacterSequenceAfterDoctypeName=`invalid-character-sequence-after-doctype-name`,e.duplicateAttribute=`duplicate-attribute`,e.nonConformingDoctype=`non-conforming-doctype`,e.missingDoctype=`missing-doctype`,e.misplacedDoctype=`misplaced-doctype`,e.endTagWithoutMatchingOpenElement=`end-tag-without-matching-open-element`,e.closingOfElementWithOpenChildElements=`closing-of-element-with-open-child-elements`,e.disallowedContentInNoscriptInHead=`disallowed-content-in-noscript-in-head`,e.openElementsLeftAfterEof=`open-elements-left-after-eof`,e.abandonedHeadElementChild=`abandoned-head-element-child`,e.misplacedStartTagForHeadElement=`misplaced-start-tag-for-head-element`,e.nestedNoscriptInHead=`nested-noscript-in-head`,e.eofInElementThatCanContainOnlyText=`eof-in-element-that-can-contain-only-text`})(sD=sD||={});var rOe=class{constructor(e){this.handler=e,this.html=``,this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){let{line:t,col:n,offset:r}=this;return{code:e,startLine:t,endLine:t,startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if($De(t))return this.pos++,this._addGap(),eOe(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Y.EOF;return this._err(sD.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((this.html.charCodeAt(this.pos+t)|32)!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Y.EOF;let n=this.html.charCodeAt(t);return n===Y.CARRIAGE_RETURN?Y.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Y.EOF;let e=this.html.charCodeAt(this.pos);return e===Y.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Y.LINE_FEED):e===Y.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,QDe(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===Y.LINE_FEED||e===Y.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){tOe(e)?this._err(sD.controlCharacterInInputStream):nOe(e)&&this._err(sD.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}},cD;(function(e){e[e.CHARACTER=0]=`CHARACTER`,e[e.NULL_CHARACTER=1]=`NULL_CHARACTER`,e[e.WHITESPACE_CHARACTER=2]=`WHITESPACE_CHARACTER`,e[e.START_TAG=3]=`START_TAG`,e[e.END_TAG=4]=`END_TAG`,e[e.COMMENT=5]=`COMMENT`,e[e.DOCTYPE=6]=`DOCTYPE`,e[e.EOF=7]=`EOF`,e[e.HIBERNATION=8]=`HIBERNATION`})(cD=cD||={});function iOe(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var lD=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0)));new Uint16Array(`Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢`.split(``).map(e=>e.charCodeAt(0))),String.fromCodePoint;var aOe;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.To_LOWER_BIT=32]=`To_LOWER_BIT`})(aOe||={});var uD;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(uD||={});function oOe(e,t,n,r){let i=(t&uD.BRANCH_LENGTH)>>7,a=t&uD.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}var dD;(function(e){e.HTML=`http://www.w3.org/1999/xhtml`,e.MATHML=`http://www.w3.org/1998/Math/MathML`,e.SVG=`http://www.w3.org/2000/svg`,e.XLINK=`http://www.w3.org/1999/xlink`,e.XML=`http://www.w3.org/XML/1998/namespace`,e.XMLNS=`http://www.w3.org/2000/xmlns/`})(dD=dD||={});var fD;(function(e){e.TYPE=`type`,e.ACTION=`action`,e.ENCODING=`encoding`,e.PROMPT=`prompt`,e.NAME=`name`,e.COLOR=`color`,e.FACE=`face`,e.SIZE=`size`})(fD=fD||={});var pD;(function(e){e.NO_QUIRKS=`no-quirks`,e.QUIRKS=`quirks`,e.LIMITED_QUIRKS=`limited-quirks`})(pD=pD||={});var mD;(function(e){e.A=`a`,e.ADDRESS=`address`,e.ANNOTATION_XML=`annotation-xml`,e.APPLET=`applet`,e.AREA=`area`,e.ARTICLE=`article`,e.ASIDE=`aside`,e.B=`b`,e.BASE=`base`,e.BASEFONT=`basefont`,e.BGSOUND=`bgsound`,e.BIG=`big`,e.BLOCKQUOTE=`blockquote`,e.BODY=`body`,e.BR=`br`,e.BUTTON=`button`,e.CAPTION=`caption`,e.CENTER=`center`,e.CODE=`code`,e.COL=`col`,e.COLGROUP=`colgroup`,e.DD=`dd`,e.DESC=`desc`,e.DETAILS=`details`,e.DIALOG=`dialog`,e.DIR=`dir`,e.DIV=`div`,e.DL=`dl`,e.DT=`dt`,e.EM=`em`,e.EMBED=`embed`,e.FIELDSET=`fieldset`,e.FIGCAPTION=`figcaption`,e.FIGURE=`figure`,e.FONT=`font`,e.FOOTER=`footer`,e.FOREIGN_OBJECT=`foreignObject`,e.FORM=`form`,e.FRAME=`frame`,e.FRAMESET=`frameset`,e.H1=`h1`,e.H2=`h2`,e.H3=`h3`,e.H4=`h4`,e.H5=`h5`,e.H6=`h6`,e.HEAD=`head`,e.HEADER=`header`,e.HGROUP=`hgroup`,e.HR=`hr`,e.HTML=`html`,e.I=`i`,e.IMG=`img`,e.IMAGE=`image`,e.INPUT=`input`,e.IFRAME=`iframe`,e.KEYGEN=`keygen`,e.LABEL=`label`,e.LI=`li`,e.LINK=`link`,e.LISTING=`listing`,e.MAIN=`main`,e.MALIGNMARK=`malignmark`,e.MARQUEE=`marquee`,e.MATH=`math`,e.MENU=`menu`,e.META=`meta`,e.MGLYPH=`mglyph`,e.MI=`mi`,e.MO=`mo`,e.MN=`mn`,e.MS=`ms`,e.MTEXT=`mtext`,e.NAV=`nav`,e.NOBR=`nobr`,e.NOFRAMES=`noframes`,e.NOEMBED=`noembed`,e.NOSCRIPT=`noscript`,e.OBJECT=`object`,e.OL=`ol`,e.OPTGROUP=`optgroup`,e.OPTION=`option`,e.P=`p`,e.PARAM=`param`,e.PLAINTEXT=`plaintext`,e.PRE=`pre`,e.RB=`rb`,e.RP=`rp`,e.RT=`rt`,e.RTC=`rtc`,e.RUBY=`ruby`,e.S=`s`,e.SCRIPT=`script`,e.SECTION=`section`,e.SELECT=`select`,e.SOURCE=`source`,e.SMALL=`small`,e.SPAN=`span`,e.STRIKE=`strike`,e.STRONG=`strong`,e.STYLE=`style`,e.SUB=`sub`,e.SUMMARY=`summary`,e.SUP=`sup`,e.TABLE=`table`,e.TBODY=`tbody`,e.TEMPLATE=`template`,e.TEXTAREA=`textarea`,e.TFOOT=`tfoot`,e.TD=`td`,e.TH=`th`,e.THEAD=`thead`,e.TITLE=`title`,e.TR=`tr`,e.TRACK=`track`,e.TT=`tt`,e.U=`u`,e.UL=`ul`,e.SVG=`svg`,e.VAR=`var`,e.WBR=`wbr`,e.XMP=`xmp`})(mD=mD||={});var X;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.A=1]=`A`,e[e.ADDRESS=2]=`ADDRESS`,e[e.ANNOTATION_XML=3]=`ANNOTATION_XML`,e[e.APPLET=4]=`APPLET`,e[e.AREA=5]=`AREA`,e[e.ARTICLE=6]=`ARTICLE`,e[e.ASIDE=7]=`ASIDE`,e[e.B=8]=`B`,e[e.BASE=9]=`BASE`,e[e.BASEFONT=10]=`BASEFONT`,e[e.BGSOUND=11]=`BGSOUND`,e[e.BIG=12]=`BIG`,e[e.BLOCKQUOTE=13]=`BLOCKQUOTE`,e[e.BODY=14]=`BODY`,e[e.BR=15]=`BR`,e[e.BUTTON=16]=`BUTTON`,e[e.CAPTION=17]=`CAPTION`,e[e.CENTER=18]=`CENTER`,e[e.CODE=19]=`CODE`,e[e.COL=20]=`COL`,e[e.COLGROUP=21]=`COLGROUP`,e[e.DD=22]=`DD`,e[e.DESC=23]=`DESC`,e[e.DETAILS=24]=`DETAILS`,e[e.DIALOG=25]=`DIALOG`,e[e.DIR=26]=`DIR`,e[e.DIV=27]=`DIV`,e[e.DL=28]=`DL`,e[e.DT=29]=`DT`,e[e.EM=30]=`EM`,e[e.EMBED=31]=`EMBED`,e[e.FIELDSET=32]=`FIELDSET`,e[e.FIGCAPTION=33]=`FIGCAPTION`,e[e.FIGURE=34]=`FIGURE`,e[e.FONT=35]=`FONT`,e[e.FOOTER=36]=`FOOTER`,e[e.FOREIGN_OBJECT=37]=`FOREIGN_OBJECT`,e[e.FORM=38]=`FORM`,e[e.FRAME=39]=`FRAME`,e[e.FRAMESET=40]=`FRAMESET`,e[e.H1=41]=`H1`,e[e.H2=42]=`H2`,e[e.H3=43]=`H3`,e[e.H4=44]=`H4`,e[e.H5=45]=`H5`,e[e.H6=46]=`H6`,e[e.HEAD=47]=`HEAD`,e[e.HEADER=48]=`HEADER`,e[e.HGROUP=49]=`HGROUP`,e[e.HR=50]=`HR`,e[e.HTML=51]=`HTML`,e[e.I=52]=`I`,e[e.IMG=53]=`IMG`,e[e.IMAGE=54]=`IMAGE`,e[e.INPUT=55]=`INPUT`,e[e.IFRAME=56]=`IFRAME`,e[e.KEYGEN=57]=`KEYGEN`,e[e.LABEL=58]=`LABEL`,e[e.LI=59]=`LI`,e[e.LINK=60]=`LINK`,e[e.LISTING=61]=`LISTING`,e[e.MAIN=62]=`MAIN`,e[e.MALIGNMARK=63]=`MALIGNMARK`,e[e.MARQUEE=64]=`MARQUEE`,e[e.MATH=65]=`MATH`,e[e.MENU=66]=`MENU`,e[e.META=67]=`META`,e[e.MGLYPH=68]=`MGLYPH`,e[e.MI=69]=`MI`,e[e.MO=70]=`MO`,e[e.MN=71]=`MN`,e[e.MS=72]=`MS`,e[e.MTEXT=73]=`MTEXT`,e[e.NAV=74]=`NAV`,e[e.NOBR=75]=`NOBR`,e[e.NOFRAMES=76]=`NOFRAMES`,e[e.NOEMBED=77]=`NOEMBED`,e[e.NOSCRIPT=78]=`NOSCRIPT`,e[e.OBJECT=79]=`OBJECT`,e[e.OL=80]=`OL`,e[e.OPTGROUP=81]=`OPTGROUP`,e[e.OPTION=82]=`OPTION`,e[e.P=83]=`P`,e[e.PARAM=84]=`PARAM`,e[e.PLAINTEXT=85]=`PLAINTEXT`,e[e.PRE=86]=`PRE`,e[e.RB=87]=`RB`,e[e.RP=88]=`RP`,e[e.RT=89]=`RT`,e[e.RTC=90]=`RTC`,e[e.RUBY=91]=`RUBY`,e[e.S=92]=`S`,e[e.SCRIPT=93]=`SCRIPT`,e[e.SECTION=94]=`SECTION`,e[e.SELECT=95]=`SELECT`,e[e.SOURCE=96]=`SOURCE`,e[e.SMALL=97]=`SMALL`,e[e.SPAN=98]=`SPAN`,e[e.STRIKE=99]=`STRIKE`,e[e.STRONG=100]=`STRONG`,e[e.STYLE=101]=`STYLE`,e[e.SUB=102]=`SUB`,e[e.SUMMARY=103]=`SUMMARY`,e[e.SUP=104]=`SUP`,e[e.TABLE=105]=`TABLE`,e[e.TBODY=106]=`TBODY`,e[e.TEMPLATE=107]=`TEMPLATE`,e[e.TEXTAREA=108]=`TEXTAREA`,e[e.TFOOT=109]=`TFOOT`,e[e.TD=110]=`TD`,e[e.TH=111]=`TH`,e[e.THEAD=112]=`THEAD`,e[e.TITLE=113]=`TITLE`,e[e.TR=114]=`TR`,e[e.TRACK=115]=`TRACK`,e[e.TT=116]=`TT`,e[e.U=117]=`U`,e[e.UL=118]=`UL`,e[e.SVG=119]=`SVG`,e[e.VAR=120]=`VAR`,e[e.WBR=121]=`WBR`,e[e.XMP=122]=`XMP`})(X=X||={});const sOe=/* @__PURE__ */ new Map([[mD.A,X.A],[mD.ADDRESS,X.ADDRESS],[mD.ANNOTATION_XML,X.ANNOTATION_XML],[mD.APPLET,X.APPLET],[mD.AREA,X.AREA],[mD.ARTICLE,X.ARTICLE],[mD.ASIDE,X.ASIDE],[mD.B,X.B],[mD.BASE,X.BASE],[mD.BASEFONT,X.BASEFONT],[mD.BGSOUND,X.BGSOUND],[mD.BIG,X.BIG],[mD.BLOCKQUOTE,X.BLOCKQUOTE],[mD.BODY,X.BODY],[mD.BR,X.BR],[mD.BUTTON,X.BUTTON],[mD.CAPTION,X.CAPTION],[mD.CENTER,X.CENTER],[mD.CODE,X.CODE],[mD.COL,X.COL],[mD.COLGROUP,X.COLGROUP],[mD.DD,X.DD],[mD.DESC,X.DESC],[mD.DETAILS,X.DETAILS],[mD.DIALOG,X.DIALOG],[mD.DIR,X.DIR],[mD.DIV,X.DIV],[mD.DL,X.DL],[mD.DT,X.DT],[mD.EM,X.EM],[mD.EMBED,X.EMBED],[mD.FIELDSET,X.FIELDSET],[mD.FIGCAPTION,X.FIGCAPTION],[mD.FIGURE,X.FIGURE],[mD.FONT,X.FONT],[mD.FOOTER,X.FOOTER],[mD.FOREIGN_OBJECT,X.FOREIGN_OBJECT],[mD.FORM,X.FORM],[mD.FRAME,X.FRAME],[mD.FRAMESET,X.FRAMESET],[mD.H1,X.H1],[mD.H2,X.H2],[mD.H3,X.H3],[mD.H4,X.H4],[mD.H5,X.H5],[mD.H6,X.H6],[mD.HEAD,X.HEAD],[mD.HEADER,X.HEADER],[mD.HGROUP,X.HGROUP],[mD.HR,X.HR],[mD.HTML,X.HTML],[mD.I,X.I],[mD.IMG,X.IMG],[mD.IMAGE,X.IMAGE],[mD.INPUT,X.INPUT],[mD.IFRAME,X.IFRAME],[mD.KEYGEN,X.KEYGEN],[mD.LABEL,X.LABEL],[mD.LI,X.LI],[mD.LINK,X.LINK],[mD.LISTING,X.LISTING],[mD.MAIN,X.MAIN],[mD.MALIGNMARK,X.MALIGNMARK],[mD.MARQUEE,X.MARQUEE],[mD.MATH,X.MATH],[mD.MENU,X.MENU],[mD.META,X.META],[mD.MGLYPH,X.MGLYPH],[mD.MI,X.MI],[mD.MO,X.MO],[mD.MN,X.MN],[mD.MS,X.MS],[mD.MTEXT,X.MTEXT],[mD.NAV,X.NAV],[mD.NOBR,X.NOBR],[mD.NOFRAMES,X.NOFRAMES],[mD.NOEMBED,X.NOEMBED],[mD.NOSCRIPT,X.NOSCRIPT],[mD.OBJECT,X.OBJECT],[mD.OL,X.OL],[mD.OPTGROUP,X.OPTGROUP],[mD.OPTION,X.OPTION],[mD.P,X.P],[mD.PARAM,X.PARAM],[mD.PLAINTEXT,X.PLAINTEXT],[mD.PRE,X.PRE],[mD.RB,X.RB],[mD.RP,X.RP],[mD.RT,X.RT],[mD.RTC,X.RTC],[mD.RUBY,X.RUBY],[mD.S,X.S],[mD.SCRIPT,X.SCRIPT],[mD.SECTION,X.SECTION],[mD.SELECT,X.SELECT],[mD.SOURCE,X.SOURCE],[mD.SMALL,X.SMALL],[mD.SPAN,X.SPAN],[mD.STRIKE,X.STRIKE],[mD.STRONG,X.STRONG],[mD.STYLE,X.STYLE],[mD.SUB,X.SUB],[mD.SUMMARY,X.SUMMARY],[mD.SUP,X.SUP],[mD.TABLE,X.TABLE],[mD.TBODY,X.TBODY],[mD.TEMPLATE,X.TEMPLATE],[mD.TEXTAREA,X.TEXTAREA],[mD.TFOOT,X.TFOOT],[mD.TD,X.TD],[mD.TH,X.TH],[mD.THEAD,X.THEAD],[mD.TITLE,X.TITLE],[mD.TR,X.TR],[mD.TRACK,X.TRACK],[mD.TT,X.TT],[mD.U,X.U],[mD.UL,X.UL],[mD.SVG,X.SVG],[mD.VAR,X.VAR],[mD.WBR,X.WBR],[mD.XMP,X.XMP]]);function hD(e){return sOe.get(e)??X.UNKNOWN}const gD=X,cOe={[dD.HTML]:/* @__PURE__ */ new Set([gD.ADDRESS,gD.APPLET,gD.AREA,gD.ARTICLE,gD.ASIDE,gD.BASE,gD.BASEFONT,gD.BGSOUND,gD.BLOCKQUOTE,gD.BODY,gD.BR,gD.BUTTON,gD.CAPTION,gD.CENTER,gD.COL,gD.COLGROUP,gD.DD,gD.DETAILS,gD.DIR,gD.DIV,gD.DL,gD.DT,gD.EMBED,gD.FIELDSET,gD.FIGCAPTION,gD.FIGURE,gD.FOOTER,gD.FORM,gD.FRAME,gD.FRAMESET,gD.H1,gD.H2,gD.H3,gD.H4,gD.H5,gD.H6,gD.HEAD,gD.HEADER,gD.HGROUP,gD.HR,gD.HTML,gD.IFRAME,gD.IMG,gD.INPUT,gD.LI,gD.LINK,gD.LISTING,gD.MAIN,gD.MARQUEE,gD.MENU,gD.META,gD.NAV,gD.NOEMBED,gD.NOFRAMES,gD.NOSCRIPT,gD.OBJECT,gD.OL,gD.P,gD.PARAM,gD.PLAINTEXT,gD.PRE,gD.SCRIPT,gD.SECTION,gD.SELECT,gD.SOURCE,gD.STYLE,gD.SUMMARY,gD.TABLE,gD.TBODY,gD.TD,gD.TEMPLATE,gD.TEXTAREA,gD.TFOOT,gD.TH,gD.THEAD,gD.TITLE,gD.TR,gD.TRACK,gD.UL,gD.WBR,gD.XMP]),[dD.MATHML]:/* @__PURE__ */ new Set([gD.MI,gD.MO,gD.MN,gD.MS,gD.MTEXT,gD.ANNOTATION_XML]),[dD.SVG]:/* @__PURE__ */ new Set([gD.TITLE,gD.FOREIGN_OBJECT,gD.DESC]),[dD.XLINK]:/* @__PURE__ */ new Set,[dD.XML]:/* @__PURE__ */ new Set,[dD.XMLNS]:/* @__PURE__ */ new Set};function lOe(e){return e===gD.H1||e===gD.H2||e===gD.H3||e===gD.H4||e===gD.H5||e===gD.H6}mD.STYLE,mD.SCRIPT,mD.XMP,mD.IFRAME,mD.NOEMBED,mD.NOFRAMES,mD.PLAINTEXT;const uOe=/* @__PURE__ */ new Map([[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]]);var Z;(function(e){e[e.DATA=0]=`DATA`,e[e.RCDATA=1]=`RCDATA`,e[e.RAWTEXT=2]=`RAWTEXT`,e[e.SCRIPT_DATA=3]=`SCRIPT_DATA`,e[e.PLAINTEXT=4]=`PLAINTEXT`,e[e.TAG_OPEN=5]=`TAG_OPEN`,e[e.END_TAG_OPEN=6]=`END_TAG_OPEN`,e[e.TAG_NAME=7]=`TAG_NAME`,e[e.RCDATA_LESS_THAN_SIGN=8]=`RCDATA_LESS_THAN_SIGN`,e[e.RCDATA_END_TAG_OPEN=9]=`RCDATA_END_TAG_OPEN`,e[e.RCDATA_END_TAG_NAME=10]=`RCDATA_END_TAG_NAME`,e[e.RAWTEXT_LESS_THAN_SIGN=11]=`RAWTEXT_LESS_THAN_SIGN`,e[e.RAWTEXT_END_TAG_OPEN=12]=`RAWTEXT_END_TAG_OPEN`,e[e.RAWTEXT_END_TAG_NAME=13]=`RAWTEXT_END_TAG_NAME`,e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]=`SCRIPT_DATA_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_END_TAG_OPEN=15]=`SCRIPT_DATA_END_TAG_OPEN`,e[e.SCRIPT_DATA_END_TAG_NAME=16]=`SCRIPT_DATA_END_TAG_NAME`,e[e.SCRIPT_DATA_ESCAPE_START=17]=`SCRIPT_DATA_ESCAPE_START`,e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]=`SCRIPT_DATA_ESCAPE_START_DASH`,e[e.SCRIPT_DATA_ESCAPED=19]=`SCRIPT_DATA_ESCAPED`,e[e.SCRIPT_DATA_ESCAPED_DASH=20]=`SCRIPT_DATA_ESCAPED_DASH`,e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]=`SCRIPT_DATA_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]=`SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]=`SCRIPT_DATA_ESCAPED_END_TAG_OPEN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]=`SCRIPT_DATA_ESCAPED_END_TAG_NAME`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]=`SCRIPT_DATA_DOUBLE_ESCAPE_START`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]=`SCRIPT_DATA_DOUBLE_ESCAPED`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]=`SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]=`SCRIPT_DATA_DOUBLE_ESCAPE_END`,e[e.BEFORE_ATTRIBUTE_NAME=31]=`BEFORE_ATTRIBUTE_NAME`,e[e.ATTRIBUTE_NAME=32]=`ATTRIBUTE_NAME`,e[e.AFTER_ATTRIBUTE_NAME=33]=`AFTER_ATTRIBUTE_NAME`,e[e.BEFORE_ATTRIBUTE_VALUE=34]=`BEFORE_ATTRIBUTE_VALUE`,e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]=`ATTRIBUTE_VALUE_DOUBLE_QUOTED`,e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]=`ATTRIBUTE_VALUE_SINGLE_QUOTED`,e[e.ATTRIBUTE_VALUE_UNQUOTED=37]=`ATTRIBUTE_VALUE_UNQUOTED`,e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]=`AFTER_ATTRIBUTE_VALUE_QUOTED`,e[e.SELF_CLOSING_START_TAG=39]=`SELF_CLOSING_START_TAG`,e[e.BOGUS_COMMENT=40]=`BOGUS_COMMENT`,e[e.MARKUP_DECLARATION_OPEN=41]=`MARKUP_DECLARATION_OPEN`,e[e.COMMENT_START=42]=`COMMENT_START`,e[e.COMMENT_START_DASH=43]=`COMMENT_START_DASH`,e[e.COMMENT=44]=`COMMENT`,e[e.COMMENT_LESS_THAN_SIGN=45]=`COMMENT_LESS_THAN_SIGN`,e[e.COMMENT_LESS_THAN_SIGN_BANG=46]=`COMMENT_LESS_THAN_SIGN_BANG`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]=`COMMENT_LESS_THAN_SIGN_BANG_DASH`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]=`COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH`,e[e.COMMENT_END_DASH=49]=`COMMENT_END_DASH`,e[e.COMMENT_END=50]=`COMMENT_END`,e[e.COMMENT_END_BANG=51]=`COMMENT_END_BANG`,e[e.DOCTYPE=52]=`DOCTYPE`,e[e.BEFORE_DOCTYPE_NAME=53]=`BEFORE_DOCTYPE_NAME`,e[e.DOCTYPE_NAME=54]=`DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_NAME=55]=`AFTER_DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]=`AFTER_DOCTYPE_PUBLIC_KEYWORD`,e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]=`BEFORE_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]=`DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]=`DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]=`AFTER_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]=`BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS`,e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]=`AFTER_DOCTYPE_SYSTEM_KEYWORD`,e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]=`BEFORE_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]=`DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]=`DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]=`AFTER_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.BOGUS_DOCTYPE=67]=`BOGUS_DOCTYPE`,e[e.CDATA_SECTION=68]=`CDATA_SECTION`,e[e.CDATA_SECTION_BRACKET=69]=`CDATA_SECTION_BRACKET`,e[e.CDATA_SECTION_END=70]=`CDATA_SECTION_END`,e[e.CHARACTER_REFERENCE=71]=`CHARACTER_REFERENCE`,e[e.NAMED_CHARACTER_REFERENCE=72]=`NAMED_CHARACTER_REFERENCE`,e[e.AMBIGUOUS_AMPERSAND=73]=`AMBIGUOUS_AMPERSAND`,e[e.NUMERIC_CHARACTER_REFERENCE=74]=`NUMERIC_CHARACTER_REFERENCE`,e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]=`HEXADEMICAL_CHARACTER_REFERENCE_START`,e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]=`HEXADEMICAL_CHARACTER_REFERENCE`,e[e.DECIMAL_CHARACTER_REFERENCE=77]=`DECIMAL_CHARACTER_REFERENCE`,e[e.NUMERIC_CHARACTER_REFERENCE_END=78]=`NUMERIC_CHARACTER_REFERENCE_END`})(Z||={});const _D={DATA:Z.DATA,RCDATA:Z.RCDATA,RAWTEXT:Z.RAWTEXT,SCRIPT_DATA:Z.SCRIPT_DATA,PLAINTEXT:Z.PLAINTEXT,CDATA_SECTION:Z.CDATA_SECTION};function vD(e){return e>=Y.DIGIT_0&&e<=Y.DIGIT_9}function yD(e){return e>=Y.LATIN_CAPITAL_A&&e<=Y.LATIN_CAPITAL_Z}function dOe(e){return e>=Y.LATIN_SMALL_A&&e<=Y.LATIN_SMALL_Z}function bD(e){return dOe(e)||yD(e)}function xD(e){return bD(e)||vD(e)}function fOe(e){return e>=Y.LATIN_CAPITAL_A&&e<=Y.LATIN_CAPITAL_F}function pOe(e){return e>=Y.LATIN_SMALL_A&&e<=Y.LATIN_SMALL_F}function mOe(e){return vD(e)||fOe(e)||pOe(e)}function SD(e){return e+32}function hOe(e){return e===Y.SPACE||e===Y.LINE_FEED||e===Y.TABULATION||e===Y.FORM_FEED}function gOe(e){return e===Y.EQUALS_SIGN||xD(e)}function _Oe(e){return hOe(e)||e===Y.SOLIDUS||e===Y.GREATER_THAN_SIGN}var vOe=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName=``,this.active=!1,this.state=Z.DATA,this.returnState=Z.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:``,value:``},this.preprocessor=new rOe(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,n;(n=(t=this.handler).onParseError)==null||n.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error(`Parser was already resumed`);this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return this.preprocessor.startsWith(e,t)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:cD.START_TAG,tagName:``,tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:cD.END_TAG,tagName:``,tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:cD.COMMENT,data:``,location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:cD.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:``},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e;let t=this.currentToken;if(iOe(t,this.currentAttr.name)===null){if(t.attrs.push(this.currentAttr),t.location&&this.currentLocation){let n=(e=t.location).attrs??(e.attrs=Object.create(null));n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(sD.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=hD(e.tagName),e.type===cD.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(sD.endTagWithAttributes),e.selfClosing&&this._err(sD.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case cD.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case cD.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case cD.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:cD.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type!==e)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=t;return}}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=hOe(e)?cD.WHITESPACE_CHARACTER:e===Y.NULL?cD.NULL_CHARACTER:cD.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(cD.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,n=0,r=!1;for(let i=0,a=lD[0];i>=0&&(i=oOe(lD,a,i+1,e),!(i<0));e=this._consume()){n+=1,a=lD[i];let o=a&uD.VALUE_LENGTH;if(o){let a=(o>>14)-1;if(e!==Y.SEMICOLON&&this._isCharacterReferenceInAttribute()&&gOe(this.preprocessor.peek(1))?(t=[Y.AMPERSAND],i+=a):(t=a===0?[lD[i]&~uD.VALUE_LENGTH]:a===1?[lD[++i]]:[lD[++i],lD[++i]],n=0,r=e!==Y.SEMICOLON),a===0){this._consume();break}}}return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(sD.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Z.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Z.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Z.DATA:this._stateData(e);break;case Z.RCDATA:this._stateRcdata(e);break;case Z.RAWTEXT:this._stateRawtext(e);break;case Z.SCRIPT_DATA:this._stateScriptData(e);break;case Z.PLAINTEXT:this._statePlaintext(e);break;case Z.TAG_OPEN:this._stateTagOpen(e);break;case Z.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Z.TAG_NAME:this._stateTagName(e);break;case Z.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Z.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Z.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Z.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Z.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Z.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Z.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Z.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Z.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Z.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Z.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Z.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Z.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Z.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Z.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Z.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Z.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Z.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Z.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Z.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Z.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Z.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Z.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Z.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Z.BOGUS_COMMENT:this._stateBogusComment(e);break;case Z.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Z.COMMENT_START:this._stateCommentStart(e);break;case Z.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Z.COMMENT:this._stateComment(e);break;case Z.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Z.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Z.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Z.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Z.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Z.COMMENT_END:this._stateCommentEnd(e);break;case Z.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Z.DOCTYPE:this._stateDoctype(e);break;case Z.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Z.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Z.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Z.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Z.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Z.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Z.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Z.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Z.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Z.CDATA_SECTION:this._stateCdataSection(e);break;case Z.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Z.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Z.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case Z.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case Z.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case Z.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case Z.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case Z.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case Z.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case Z.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw Error(`Unknown state`)}}_stateData(e){switch(e){case Y.LESS_THAN_SIGN:this.state=Z.TAG_OPEN;break;case Y.AMPERSAND:this.returnState=Z.DATA,this.state=Z.CHARACTER_REFERENCE;break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this._emitCodePoint(e);break;case Y.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Y.AMPERSAND:this.returnState=Z.RCDATA,this.state=Z.CHARACTER_REFERENCE;break;case Y.LESS_THAN_SIGN:this.state=Z.RCDATA_LESS_THAN_SIGN;break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this._emitChars(`�`);break;case Y.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Y.LESS_THAN_SIGN:this.state=Z.RAWTEXT_LESS_THAN_SIGN;break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this._emitChars(`�`);break;case Y.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_LESS_THAN_SIGN;break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this._emitChars(`�`);break;case Y.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Y.NULL:this._err(sD.unexpectedNullCharacter),this._emitChars(`�`);break;case Y.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(bD(e))this._createStartTagToken(),this.state=Z.TAG_NAME,this._stateTagName(e);else switch(e){case Y.EXCLAMATION_MARK:this.state=Z.MARKUP_DECLARATION_OPEN;break;case Y.SOLIDUS:this.state=Z.END_TAG_OPEN;break;case Y.QUESTION_MARK:this._err(sD.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(e);break;case Y.EOF:this._err(sD.eofBeforeTagName),this._emitChars(`<`),this._emitEOFToken();break;default:this._err(sD.invalidFirstCharacterOfTagName),this._emitChars(`<`),this.state=Z.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(bD(e))this._createEndTagToken(),this.state=Z.TAG_NAME,this._stateTagName(e);else switch(e){case Y.GREATER_THAN_SIGN:this._err(sD.missingEndTagName),this.state=Z.DATA;break;case Y.EOF:this._err(sD.eofBeforeTagName),this._emitChars(`</`),this._emitEOFToken();break;default:this._err(sD.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this.state=Z.BEFORE_ATTRIBUTE_NAME;break;case Y.SOLIDUS:this.state=Z.SELF_CLOSING_START_TAG;break;case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentTagToken();break;case Y.NULL:this._err(sD.unexpectedNullCharacter),t.tagName+=`�`;break;case Y.EOF:this._err(sD.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(yD(e)?SD(e):e)}}_stateRcdataLessThanSign(e){e===Y.SOLIDUS?this.state=Z.RCDATA_END_TAG_OPEN:(this._emitChars(`<`),this.state=Z.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){bD(e)?(this.state=Z.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars(`</`),this.state=Z.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Z.BEFORE_ATTRIBUTE_NAME,!1;case Y.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Z.SELF_CLOSING_START_TAG,!1;case Y.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Z.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Z.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===Y.SOLIDUS?this.state=Z.RAWTEXT_END_TAG_OPEN:(this._emitChars(`<`),this.state=Z.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){bD(e)?(this.state=Z.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars(`</`),this.state=Z.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Z.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case Y.SOLIDUS:this.state=Z.SCRIPT_DATA_END_TAG_OPEN;break;case Y.EXCLAMATION_MARK:this.state=Z.SCRIPT_DATA_ESCAPE_START,this._emitChars(`<!`);break;default:this._emitChars(`<`),this.state=Z.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){bD(e)?(this.state=Z.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars(`</`),this.state=Z.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Z.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===Y.HYPHEN_MINUS?(this.state=Z.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars(`-`)):(this.state=Z.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===Y.HYPHEN_MINUS?(this.state=Z.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`)):(this.state=Z.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case Y.HYPHEN_MINUS:this.state=Z.SCRIPT_DATA_ESCAPED_DASH,this._emitChars(`-`);break;case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this._emitChars(`�`);break;case Y.EOF:this._err(sD.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case Y.HYPHEN_MINUS:this.state=Z.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case Y.EOF:this._err(sD.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Z.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case Y.HYPHEN_MINUS:this._emitChars(`-`);break;case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Y.GREATER_THAN_SIGN:this.state=Z.SCRIPT_DATA,this._emitChars(`>`);break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case Y.EOF:this._err(sD.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Z.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Y.SOLIDUS?this.state=Z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:bD(e)?(this._emitChars(`<`),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars(`<`),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){bD(e)?(this.state=Z.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars(`</`),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(oD.SCRIPT,!1)&&_Oe(this.preprocessor.peek(oD.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<oD.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case Y.HYPHEN_MINUS:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars(`-`);break;case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this._emitChars(`�`);break;case Y.EOF:this._err(sD.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Y.HYPHEN_MINUS:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case Y.EOF:this._err(sD.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Y.HYPHEN_MINUS:this._emitChars(`-`);break;case Y.LESS_THAN_SIGN:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case Y.GREATER_THAN_SIGN:this.state=Z.SCRIPT_DATA,this._emitChars(`>`);break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case Y.EOF:this._err(sD.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Y.SOLIDUS?(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars(`/`)):(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(oD.SCRIPT,!1)&&_Oe(this.preprocessor.peek(oD.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<oD.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=Z.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Z.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.SOLIDUS:case Y.GREATER_THAN_SIGN:case Y.EOF:this.state=Z.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Y.EQUALS_SIGN:this._err(sD.unexpectedEqualsSignBeforeAttributeName),this._createAttr(`=`),this.state=Z.ATTRIBUTE_NAME;break;default:this._createAttr(``),this.state=Z.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:case Y.SOLIDUS:case Y.GREATER_THAN_SIGN:case Y.EOF:this._leaveAttrName(),this.state=Z.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Y.EQUALS_SIGN:this._leaveAttrName(),this.state=Z.BEFORE_ATTRIBUTE_VALUE;break;case Y.QUOTATION_MARK:case Y.APOSTROPHE:case Y.LESS_THAN_SIGN:this._err(sD.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this.currentAttr.name+=`�`;break;default:this.currentAttr.name+=String.fromCodePoint(yD(e)?SD(e):e)}}_stateAfterAttributeName(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.SOLIDUS:this.state=Z.SELF_CLOSING_START_TAG;break;case Y.EQUALS_SIGN:this.state=Z.BEFORE_ATTRIBUTE_VALUE;break;case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentTagToken();break;case Y.EOF:this._err(sD.eofInTag),this._emitEOFToken();break;default:this._createAttr(``),this.state=Z.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.QUOTATION_MARK:this.state=Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Y.APOSTROPHE:this.state=Z.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Y.GREATER_THAN_SIGN:this._err(sD.missingAttributeValue),this.state=Z.DATA,this.emitCurrentTagToken();break;default:this.state=Z.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Y.QUOTATION_MARK:this.state=Z.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Y.AMPERSAND:this.returnState=Z.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=Z.CHARACTER_REFERENCE;break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case Y.EOF:this._err(sD.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Y.APOSTROPHE:this.state=Z.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Y.AMPERSAND:this.returnState=Z.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=Z.CHARACTER_REFERENCE;break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case Y.EOF:this._err(sD.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this._leaveAttrValue(),this.state=Z.BEFORE_ATTRIBUTE_NAME;break;case Y.AMPERSAND:this.returnState=Z.ATTRIBUTE_VALUE_UNQUOTED,this.state=Z.CHARACTER_REFERENCE;break;case Y.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Z.DATA,this.emitCurrentTagToken();break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case Y.QUOTATION_MARK:case Y.APOSTROPHE:case Y.LESS_THAN_SIGN:case Y.EQUALS_SIGN:case Y.GRAVE_ACCENT:this._err(sD.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case Y.EOF:this._err(sD.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this._leaveAttrValue(),this.state=Z.BEFORE_ATTRIBUTE_NAME;break;case Y.SOLIDUS:this._leaveAttrValue(),this.state=Z.SELF_CLOSING_START_TAG;break;case Y.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Z.DATA,this.emitCurrentTagToken();break;case Y.EOF:this._err(sD.eofInTag),this._emitEOFToken();break;default:this._err(sD.missingWhitespaceBetweenAttributes),this.state=Z.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Y.GREATER_THAN_SIGN:{let e=this.currentToken;e.selfClosing=!0,this.state=Z.DATA,this.emitCurrentTagToken();break}case Y.EOF:this._err(sD.eofInTag),this._emitEOFToken();break;default:this._err(sD.unexpectedSolidusInTag),this.state=Z.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentComment(t);break;case Y.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Y.NULL:this._err(sD.unexpectedNullCharacter),t.data+=`�`;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(oD.DASH_DASH,!0)?(this._createCommentToken(oD.DASH_DASH.length+1),this.state=Z.COMMENT_START):this._consumeSequenceIfMatch(oD.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(oD.DOCTYPE.length+1),this.state=Z.DOCTYPE):this._consumeSequenceIfMatch(oD.CDATA_START,!0)?this.inForeignNode?this.state=Z.CDATA_SECTION:(this._err(sD.cdataInHtmlContent),this._createCommentToken(oD.CDATA_START.length+1),this.currentToken.data=`[CDATA[`,this.state=Z.BOGUS_COMMENT):this._ensureHibernation()||(this._err(sD.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Z.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Y.HYPHEN_MINUS:this.state=Z.COMMENT_START_DASH;break;case Y.GREATER_THAN_SIGN:{this._err(sD.abruptClosingOfEmptyComment),this.state=Z.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=Z.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case Y.HYPHEN_MINUS:this.state=Z.COMMENT_END;break;case Y.GREATER_THAN_SIGN:this._err(sD.abruptClosingOfEmptyComment),this.state=Z.DATA,this.emitCurrentComment(t);break;case Y.EOF:this._err(sD.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=Z.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case Y.HYPHEN_MINUS:this.state=Z.COMMENT_END_DASH;break;case Y.LESS_THAN_SIGN:t.data+=`<`,this.state=Z.COMMENT_LESS_THAN_SIGN;break;case Y.NULL:this._err(sD.unexpectedNullCharacter),t.data+=`�`;break;case Y.EOF:this._err(sD.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case Y.EXCLAMATION_MARK:t.data+=`!`,this.state=Z.COMMENT_LESS_THAN_SIGN_BANG;break;case Y.LESS_THAN_SIGN:t.data+=`<`;break;default:this.state=Z.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Y.HYPHEN_MINUS?this.state=Z.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Z.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Y.HYPHEN_MINUS?this.state=Z.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Z.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Y.GREATER_THAN_SIGN&&e!==Y.EOF&&this._err(sD.nestedComment),this.state=Z.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case Y.HYPHEN_MINUS:this.state=Z.COMMENT_END;break;case Y.EOF:this._err(sD.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=Z.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentComment(t);break;case Y.EXCLAMATION_MARK:this.state=Z.COMMENT_END_BANG;break;case Y.HYPHEN_MINUS:t.data+=`-`;break;case Y.EOF:this._err(sD.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--`,this.state=Z.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case Y.HYPHEN_MINUS:t.data+=`--!`,this.state=Z.COMMENT_END_DASH;break;case Y.GREATER_THAN_SIGN:this._err(sD.incorrectlyClosedComment),this.state=Z.DATA,this.emitCurrentComment(t);break;case Y.EOF:this._err(sD.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--!`,this.state=Z.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this.state=Z.BEFORE_DOCTYPE_NAME;break;case Y.GREATER_THAN_SIGN:this.state=Z.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case Y.EOF:{this._err(sD.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(sD.missingWhitespaceBeforeDoctypeName),this.state=Z.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(yD(e))this._createDoctypeToken(String.fromCharCode(SD(e))),this.state=Z.DOCTYPE_NAME;else switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.NULL:this._err(sD.unexpectedNullCharacter),this._createDoctypeToken(`�`),this.state=Z.DOCTYPE_NAME;break;case Y.GREATER_THAN_SIGN:{this._err(sD.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Z.DATA;break}case Y.EOF:{this._err(sD.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=Z.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this.state=Z.AFTER_DOCTYPE_NAME;break;case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.NULL:this._err(sD.unexpectedNullCharacter),t.name+=`�`;break;case Y.EOF:this._err(sD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(yD(e)?SD(e):e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.EOF:this._err(sD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(oD.PUBLIC,!1)?this.state=Z.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(oD.SYSTEM,!1)?this.state=Z.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(sD.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this.state=Z.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Y.QUOTATION_MARK:this._err(sD.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Y.APOSTROPHE:this._err(sD.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Y.GREATER_THAN_SIGN:this._err(sD.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.EOF:this._err(sD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sD.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.QUOTATION_MARK:t.publicId=``,this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Y.APOSTROPHE:t.publicId=``,this.state=Z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Y.GREATER_THAN_SIGN:this._err(sD.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.EOF:this._err(sD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sD.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case Y.QUOTATION_MARK:this.state=Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Y.NULL:this._err(sD.unexpectedNullCharacter),t.publicId+=`�`;break;case Y.GREATER_THAN_SIGN:this._err(sD.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.EOF:this._err(sD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case Y.APOSTROPHE:this.state=Z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Y.NULL:this._err(sD.unexpectedNullCharacter),t.publicId+=`�`;break;case Y.GREATER_THAN_SIGN:this._err(sD.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.EOF:this._err(sD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this.state=Z.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case Y.GREATER_THAN_SIGN:this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.QUOTATION_MARK:this._err(sD.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Y.APOSTROPHE:this._err(sD.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Y.EOF:this._err(sD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sD.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.QUOTATION_MARK:t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Y.APOSTROPHE:t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Y.EOF:this._err(sD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sD.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:this.state=Z.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Y.QUOTATION_MARK:this._err(sD.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Y.APOSTROPHE:this._err(sD.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Y.GREATER_THAN_SIGN:this._err(sD.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.EOF:this._err(sD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sD.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.QUOTATION_MARK:t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Y.APOSTROPHE:t.systemId=``,this.state=Z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Y.GREATER_THAN_SIGN:this._err(sD.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Z.DATA,this.emitCurrentDoctype(t);break;case Y.EOF:this._err(sD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sD.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case Y.QUOTATION_MARK:this.state=Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Y.NULL:this._err(sD.unexpectedNullCharacter),t.systemId+=`�`;break;case Y.GREATER_THAN_SIGN:this._err(sD.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.EOF:this._err(sD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case Y.APOSTROPHE:this.state=Z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Y.NULL:this._err(sD.unexpectedNullCharacter),t.systemId+=`�`;break;case Y.GREATER_THAN_SIGN:this._err(sD.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.EOF:this._err(sD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case Y.SPACE:case Y.LINE_FEED:case Y.TABULATION:case Y.FORM_FEED:break;case Y.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.EOF:this._err(sD.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(sD.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Z.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case Y.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Z.DATA;break;case Y.NULL:this._err(sD.unexpectedNullCharacter);break;case Y.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case Y.RIGHT_SQUARE_BRACKET:this.state=Z.CDATA_SECTION_BRACKET;break;case Y.EOF:this._err(sD.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Y.RIGHT_SQUARE_BRACKET?this.state=Z.CDATA_SECTION_END:(this._emitChars(`]`),this.state=Z.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Y.GREATER_THAN_SIGN:this.state=Z.DATA;break;case Y.RIGHT_SQUARE_BRACKET:this._emitChars(`]`);break;default:this._emitChars(`]]`),this.state=Z.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===Y.NUMBER_SIGN?this.state=Z.NUMERIC_CHARACTER_REFERENCE:xD(e)?(this.state=Z.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(Y.AMPERSAND),this._reconsumeInState(this.returnState,e))}_stateNamedCharacterReference(e){let t=this._matchNamedCharacterReference(e);if(!this._ensureHibernation()){if(t){for(let e=0;e<t.length;e++)this._flushCodePointConsumedAsCharacterReference(t[e]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(Y.AMPERSAND),this.state=Z.AMBIGUOUS_AMPERSAND}}_stateAmbiguousAmpersand(e){xD(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===Y.SEMICOLON&&this._err(sD.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,e))}_stateNumericCharacterReference(e){this.charRefCode=0,e===Y.LATIN_SMALL_X||e===Y.LATIN_CAPITAL_X?this.state=Z.HEXADEMICAL_CHARACTER_REFERENCE_START:vD(e)?(this.state=Z.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):(this._err(sD.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(Y.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(Y.NUMBER_SIGN),this._reconsumeInState(this.returnState,e))}_stateHexademicalCharacterReferenceStart(e){mOe(e)?(this.state=Z.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(e)):(this._err(sD.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(Y.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(Y.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(e){fOe(e)?this.charRefCode=this.charRefCode*16+e-55:pOe(e)?this.charRefCode=this.charRefCode*16+e-87:vD(e)?this.charRefCode=this.charRefCode*16+e-48:e===Y.SEMICOLON?this.state=Z.NUMERIC_CHARACTER_REFERENCE_END:(this._err(sD.missingSemicolonAfterCharacterReference),this.state=Z.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateDecimalCharacterReference(e){vD(e)?this.charRefCode=this.charRefCode*10+e-48:e===Y.SEMICOLON?this.state=Z.NUMERIC_CHARACTER_REFERENCE_END:(this._err(sD.missingSemicolonAfterCharacterReference),this.state=Z.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateNumericCharacterReferenceEnd(e){if(this.charRefCode===Y.NULL)this._err(sD.nullCharacterReference),this.charRefCode=Y.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(sD.characterReferenceOutsideUnicodeRange),this.charRefCode=Y.REPLACEMENT_CHARACTER;else if(QDe(this.charRefCode))this._err(sD.surrogateCharacterReference),this.charRefCode=Y.REPLACEMENT_CHARACTER;else if(nOe(this.charRefCode))this._err(sD.noncharacterCharacterReference);else if(tOe(this.charRefCode)||this.charRefCode===Y.CARRIAGE_RETURN){this._err(sD.controlCharacterReference);let e=uOe.get(this.charRefCode);e!==void 0&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}};const yOe=/* @__PURE__ */ new Set([X.DD,X.DT,X.LI,X.OPTGROUP,X.OPTION,X.P,X.RB,X.RP,X.RT,X.RTC]),bOe=/* @__PURE__ */ new Set([...yOe,X.CAPTION,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR]),CD=/* @__PURE__ */ new Map([[X.APPLET,dD.HTML],[X.CAPTION,dD.HTML],[X.HTML,dD.HTML],[X.MARQUEE,dD.HTML],[X.OBJECT,dD.HTML],[X.TABLE,dD.HTML],[X.TD,dD.HTML],[X.TEMPLATE,dD.HTML],[X.TH,dD.HTML],[X.ANNOTATION_XML,dD.MATHML],[X.MI,dD.MATHML],[X.MN,dD.MATHML],[X.MO,dD.MATHML],[X.MS,dD.MATHML],[X.MTEXT,dD.MATHML],[X.DESC,dD.SVG],[X.FOREIGN_OBJECT,dD.SVG],[X.TITLE,dD.SVG]]),xOe=[X.H1,X.H2,X.H3,X.H4,X.H5,X.H6],SOe=[X.TR,X.TEMPLATE,X.HTML],COe=[X.TBODY,X.TFOOT,X.THEAD,X.TEMPLATE,X.HTML],wOe=[X.TABLE,X.TEMPLATE,X.HTML],TOe=[X.TD,X.TH];var EOe=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=X.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===X.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===dD.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==dD.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&--this.tmplCount,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(xOe,dD.HTML)}popUntilTableCellPopped(){this.popUntilPopped(TOe,dD.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(wOe,dD.HTML)}clearBackToTableBodyContext(){this.clearBackTo(COe,dD.HTML)}clearBackToTableRowContext(){this.clearBackTo(SOe,dD.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===X.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===X.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===dD.HTML)return!0;if(CD.get(n)===r)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if(lOe(t)&&n===dD.HTML)return!0;if(CD.get(t)===n)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===dD.HTML)return!0;if((n===X.UL||n===X.OL)&&r===dD.HTML||CD.get(n)===r)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===dD.HTML)return!0;if(n===X.BUTTON&&r===dD.HTML||CD.get(n)===r)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===dD.HTML){if(n===e)return!0;if(n===X.TABLE||n===X.TEMPLATE||n===X.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===dD.HTML){if(t===X.TBODY||t===X.THEAD||t===X.TFOOT)return!0;if(t===X.TABLE||t===X.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===dD.HTML){if(n===e)return!0;if(n!==X.OPTION&&n!==X.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;yOe.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;bOe.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&bOe.has(this.currentTagId);)this.pop()}},wD;(function(e){e[e.Marker=0]=`Marker`,e[e.Element=1]=`Element`})(wD=wD||={});const DOe={type:wD.Marker};var OOe=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===wD.Marker)break;let{element:o}=t;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===a){let t=this.treeAdapter.getAttrList(o);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;let r=new Map(t.map(e=>[e.name,e.value])),i=0;for(let e=0;e<n.length;e++){let t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(i+=1,i>=3&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(DOe)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:wD.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:wD.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(DOe);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===wD.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===wD.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===wD.Element&&t.element===e)}};function kOe(e){return{nodeName:`#text`,value:e,parentNode:null}}const TD={createDocument(){return{nodeName:`#document`,mode:pD.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:`#document-fragment`,childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:`#comment`,data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>e.nodeName===`#documentType`);if(i)i.name=t,i.publicId=n,i.systemId=r;else{let i={nodeName:`#documentType`,name:t,publicId:n,systemId:r,parentNode:null};TD.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(TD.isTextNode(n)){n.value+=t;return}}TD.appendChild(e,kOe(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&TD.isTextNode(r)?r.value+=t:TD.insertBefore(e,kOe(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName===`#text`},isCommentNode(e){return e.nodeName===`#comment`},isDocumentTypeNode(e){return e.nodeName===`#documentType`},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,`tagName`)},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},AOe=`html`,jOe=/* @__PURE__ */ `+//silmaril//dtd html pro v0r11 19970101//,-//as//dtd html 3.0 aswedit + extensions//,-//advasoft ltd//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//,-//sq//dtd html 2.0 hotmetal + extensions//,-//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//,-//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//`.split(`,`),MOe=[...jOe,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`],NOe=/* @__PURE__ */ new Set([`-//w3o//dtd w3 html strict 3.0//en//`,`-/w3c/dtd html 4.0 transitional/en`,`html`]),POe=[`-//w3c//dtd xhtml 1.0 frameset//`,`-//w3c//dtd xhtml 1.0 transitional//`],FOe=[...POe,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`];function IOe(e,t){return t.some(t=>e.startsWith(t))}function LOe(e){return e.name===AOe&&e.publicId===null&&(e.systemId===null||e.systemId===`about:legacy-compat`)}function ROe(e){if(e.name!==AOe)return pD.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===`http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd`)return pD.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),NOe.has(n))return pD.QUIRKS;let e=t===null?MOe:jOe;if(IOe(n,e))return pD.QUIRKS;if(e=t===null?POe:FOe,IOe(n,e))return pD.LIMITED_QUIRKS}return pD.NO_QUIRKS}const zOe={TEXT_HTML:`text/html`,APPLICATION_XML:`application/xhtml+xml`},BOe=new Map((/* @__PURE__ */ `attributeName.attributeType.baseFrequency.baseProfile.calcMode.clipPathUnits.diffuseConstant.edgeMode.filterUnits.glyphRef.gradientTransform.gradientUnits.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.limitingConeAngle.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.numOctaves.pathLength.patternContentUnits.patternTransform.patternUnits.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.refX.refY.repeatCount.repeatDur.requiredExtensions.requiredFeatures.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.surfaceScale.systemLanguage.tableValues.targetX.targetY.textLength.viewBox.viewTarget.xChannelSelector.yChannelSelector.zoomAndPan`.split(`.`)).map(e=>[e.toLowerCase(),e])),VOe=/* @__PURE__ */ new Map([[`xlink:actuate`,{prefix:`xlink`,name:`actuate`,namespace:dD.XLINK}],[`xlink:arcrole`,{prefix:`xlink`,name:`arcrole`,namespace:dD.XLINK}],[`xlink:href`,{prefix:`xlink`,name:`href`,namespace:dD.XLINK}],[`xlink:role`,{prefix:`xlink`,name:`role`,namespace:dD.XLINK}],[`xlink:show`,{prefix:`xlink`,name:`show`,namespace:dD.XLINK}],[`xlink:title`,{prefix:`xlink`,name:`title`,namespace:dD.XLINK}],[`xlink:type`,{prefix:`xlink`,name:`type`,namespace:dD.XLINK}],[`xml:base`,{prefix:`xml`,name:`base`,namespace:dD.XML}],[`xml:lang`,{prefix:`xml`,name:`lang`,namespace:dD.XML}],[`xml:space`,{prefix:`xml`,name:`space`,namespace:dD.XML}],[`xmlns`,{prefix:``,name:`xmlns`,namespace:dD.XMLNS}],[`xmlns:xlink`,{prefix:`xmlns`,name:`xlink`,namespace:dD.XMLNS}]]),HOe=new Map((/* @__PURE__ */ `altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.textPath`.split(`.`)).map(e=>[e.toLowerCase(),e])),UOe=/* @__PURE__ */ new Set([X.B,X.BIG,X.BLOCKQUOTE,X.BODY,X.BR,X.CENTER,X.CODE,X.DD,X.DIV,X.DL,X.DT,X.EM,X.EMBED,X.H1,X.H2,X.H3,X.H4,X.H5,X.H6,X.HEAD,X.HR,X.I,X.IMG,X.LI,X.LISTING,X.MENU,X.META,X.NOBR,X.OL,X.P,X.PRE,X.RUBY,X.S,X.SMALL,X.SPAN,X.STRONG,X.STRIKE,X.SUB,X.SUP,X.TABLE,X.TT,X.U,X.UL,X.VAR]);function WOe(e){let t=e.tagID;return t===X.FONT&&e.attrs.some(({name:e})=>e===fD.COLOR||e===fD.SIZE||e===fD.FACE)||UOe.has(t)}function GOe(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===`definitionurl`){e.attrs[t].name=`definitionURL`;break}}function KOe(e){for(let t=0;t<e.attrs.length;t++){let n=BOe.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function ED(e){for(let t=0;t<e.attrs.length;t++){let n=VOe.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function qOe(e){let t=HOe.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=hD(e.tagName))}function JOe(e,t){return t===dD.MATHML&&(e===X.MI||e===X.MO||e===X.MN||e===X.MS||e===X.MTEXT)}function YOe(e,t,n){if(t===dD.MATHML&&e===X.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===fD.ENCODING){let t=n[e].value.toLowerCase();return t===zOe.TEXT_HTML||t===zOe.APPLICATION_XML}}return t===dD.SVG&&(e===X.FOREIGN_OBJECT||e===X.DESC||e===X.TITLE)}function XOe(e,t,n,r){return(!r||r===dD.HTML)&&YOe(e,t,n)||(!r||r===dD.MATHML)&&JOe(e,t)}var DD;(function(e){e[e.INITIAL=0]=`INITIAL`,e[e.BEFORE_HTML=1]=`BEFORE_HTML`,e[e.BEFORE_HEAD=2]=`BEFORE_HEAD`,e[e.IN_HEAD=3]=`IN_HEAD`,e[e.IN_HEAD_NO_SCRIPT=4]=`IN_HEAD_NO_SCRIPT`,e[e.AFTER_HEAD=5]=`AFTER_HEAD`,e[e.IN_BODY=6]=`IN_BODY`,e[e.TEXT=7]=`TEXT`,e[e.IN_TABLE=8]=`IN_TABLE`,e[e.IN_TABLE_TEXT=9]=`IN_TABLE_TEXT`,e[e.IN_CAPTION=10]=`IN_CAPTION`,e[e.IN_COLUMN_GROUP=11]=`IN_COLUMN_GROUP`,e[e.IN_TABLE_BODY=12]=`IN_TABLE_BODY`,e[e.IN_ROW=13]=`IN_ROW`,e[e.IN_CELL=14]=`IN_CELL`,e[e.IN_SELECT=15]=`IN_SELECT`,e[e.IN_SELECT_IN_TABLE=16]=`IN_SELECT_IN_TABLE`,e[e.IN_TEMPLATE=17]=`IN_TEMPLATE`,e[e.AFTER_BODY=18]=`AFTER_BODY`,e[e.IN_FRAMESET=19]=`IN_FRAMESET`,e[e.AFTER_FRAMESET=20]=`AFTER_FRAMESET`,e[e.AFTER_AFTER_BODY=21]=`AFTER_AFTER_BODY`,e[e.AFTER_AFTER_FRAMESET=22]=`AFTER_AFTER_FRAMESET`})(DD||={});const ZOe={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},QOe=/* @__PURE__ */ new Set([X.TABLE,X.TBODY,X.TFOOT,X.THEAD,X.TR]),$Oe={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:TD,onParseError:null};var eke=class{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=DD.INITIAL,this.originalInsertionMode=DD.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...$Oe,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new vOe(this.options,this),this.activeFormattingElements=new OOe(this.treeAdapter),this.fragmentContextID=n?hD(this.treeAdapter.getTagName(n)):X.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new EOe(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...$Oe,...t};e??=n.treeAdapter.createElement(mD.TEMPLATE,dD.HTML,[]);let r=n.treeAdapter.createElement(`documentmock`,dD.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===X.TEMPLATE&&i.tmplInsertionModeStack.unshift(DD.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){if(!this.onParseError)return;let r=e.location??ZOe,i={code:t,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:n?r.startLine:r.endLine,endCol:n?r.startCol:r.endCol,endOffset:n?r.startOffset:r.endOffset};this.onParseError(i)}onItemPush(e,t,n){var r,i;(i=(r=this.treeAdapter).onItemPush)==null||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(r=(n=this.treeAdapter).onItemPop)==null||r.call(n,e,this.openElements.current),t){let e,t;this.openElements.stackTop===0&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||this.treeAdapter.getNamespaceURI(e)===dD.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,dD.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=DD.TEXT}switchToPlaintextParsing(){this.insertionMode=DD.TEXT,this.originalInsertionMode=DD.IN_BODY,this.tokenizer.state=_D.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===mD.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===dD.HTML)switch(this.fragmentContextID){case X.TITLE:case X.TEXTAREA:this.tokenizer.state=_D.RCDATA;break;case X.STYLE:case X.XMP:case X.IFRAME:case X.NOEMBED:case X.NOFRAMES:case X.NOSCRIPT:this.tokenizer.state=_D.RAWTEXT;break;case X.SCRIPT:this.tokenizer.state=_D.SCRIPT_DATA;break;case X.PLAINTEXT:this.tokenizer.state=_D.PLAINTEXT}}_setDocumentType(e){let t=e.name||``,n=e.publicId||``,r=e.systemId||``;if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,dD.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,dD.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(mD.HTML,dD.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,X.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=r[(n?r.lastIndexOf(n):r.length)-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===cD.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,e.tagID===X.SVG&&this.treeAdapter.getTagName(t)===mD.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===dD.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===X.MGLYPH||e.tagID===X.MALIGNMARK)&&!this._isIntegrationPoint(n,t,dD.HTML)}_processToken(e){switch(e.type){case cD.CHARACTER:this.onCharacter(e);break;case cD.NULL_CHARACTER:this.onNullCharacter(e);break;case cD.COMMENT:this.onComment(e);break;case cD.DOCTYPE:this.onDoctype(e);break;case cD.START_TAG:this._processStartTag(e);break;case cD.END_TAG:this.onEndTag(e);break;case cD.EOF:this.onEof(e);break;case cD.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return XOe(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===wD.Marker||this.openElements.contains(e.element)),n=t<0?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=DD.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(X.P),this.openElements.popUntilTagNamePopped(X.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case X.TR:this.insertionMode=DD.IN_ROW;return;case X.TBODY:case X.THEAD:case X.TFOOT:this.insertionMode=DD.IN_TABLE_BODY;return;case X.CAPTION:this.insertionMode=DD.IN_CAPTION;return;case X.COLGROUP:this.insertionMode=DD.IN_COLUMN_GROUP;return;case X.TABLE:this.insertionMode=DD.IN_TABLE;return;case X.BODY:this.insertionMode=DD.IN_BODY;return;case X.FRAMESET:this.insertionMode=DD.IN_FRAMESET;return;case X.SELECT:this._resetInsertionModeForSelect(e);return;case X.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case X.HTML:this.insertionMode=this.headElement?DD.AFTER_HEAD:DD.BEFORE_HEAD;return;case X.TD:case X.TH:if(e>0){this.insertionMode=DD.IN_CELL;return}break;case X.HEAD:if(e>0){this.insertionMode=DD.IN_HEAD;return}}this.insertionMode=DD.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===X.TEMPLATE)break;if(e===X.TABLE){this.insertionMode=DD.IN_SELECT_IN_TABLE;return}}this.insertionMode=DD.IN_SELECT}_isElementCausesFosterParenting(e){return QOe.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case X.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===dD.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case X.TABLE:{let n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){let n=this.treeAdapter.getNamespaceURI(e);return cOe[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)KAe(this,e);else switch(this.insertionMode){case DD.INITIAL:jD(this,e);break;case DD.BEFORE_HTML:MD(this,e);break;case DD.BEFORE_HEAD:ND(this,e);break;case DD.IN_HEAD:ID(this,e);break;case DD.IN_HEAD_NO_SCRIPT:LD(this,e);break;case DD.AFTER_HEAD:RD(this,e);break;case DD.IN_BODY:case DD.IN_CAPTION:case DD.IN_CELL:case DD.IN_TEMPLATE:bke(this,e);break;case DD.TEXT:case DD.IN_SELECT:case DD.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case DD.IN_TABLE:case DD.IN_TABLE_BODY:case DD.IN_ROW:HD(this,e);break;case DD.IN_TABLE_TEXT:SAe(this,e);break;case DD.IN_COLUMN_GROUP:JD(this,e);break;case DD.AFTER_BODY:QD(this,e);break;case DD.AFTER_AFTER_BODY:$D(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)GAe(this,e);else switch(this.insertionMode){case DD.INITIAL:jD(this,e);break;case DD.BEFORE_HTML:MD(this,e);break;case DD.BEFORE_HEAD:ND(this,e);break;case DD.IN_HEAD:ID(this,e);break;case DD.IN_HEAD_NO_SCRIPT:LD(this,e);break;case DD.AFTER_HEAD:RD(this,e);break;case DD.TEXT:this._insertCharacters(e);break;case DD.IN_TABLE:case DD.IN_TABLE_BODY:case DD.IN_ROW:HD(this,e);break;case DD.IN_COLUMN_GROUP:JD(this,e);break;case DD.AFTER_BODY:QD(this,e);break;case DD.AFTER_AFTER_BODY:$D(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)kD(this,e);else switch(this.insertionMode){case DD.INITIAL:case DD.BEFORE_HTML:case DD.BEFORE_HEAD:case DD.IN_HEAD:case DD.IN_HEAD_NO_SCRIPT:case DD.AFTER_HEAD:case DD.IN_BODY:case DD.IN_TABLE:case DD.IN_CAPTION:case DD.IN_COLUMN_GROUP:case DD.IN_TABLE_BODY:case DD.IN_ROW:case DD.IN_CELL:case DD.IN_SELECT:case DD.IN_SELECT_IN_TABLE:case DD.IN_TEMPLATE:case DD.IN_FRAMESET:case DD.AFTER_FRAMESET:kD(this,e);break;case DD.IN_TABLE_TEXT:KD(this,e);break;case DD.AFTER_BODY:ske(this,e);break;case DD.AFTER_AFTER_BODY:case DD.AFTER_AFTER_FRAMESET:cke(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case DD.INITIAL:lke(this,e);break;case DD.BEFORE_HEAD:case DD.IN_HEAD:case DD.IN_HEAD_NO_SCRIPT:case DD.AFTER_HEAD:this._err(e,sD.misplacedDoctype);break;case DD.IN_TABLE_TEXT:KD(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,sD.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?JAe(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case DD.INITIAL:jD(this,e);break;case DD.BEFORE_HTML:uke(this,e);break;case DD.BEFORE_HEAD:fke(this,e);break;case DD.IN_HEAD:PD(this,e);break;case DD.IN_HEAD_NO_SCRIPT:hke(this,e);break;case DD.AFTER_HEAD:_ke(this,e);break;case DD.IN_BODY:BD(this,e);break;case DD.IN_TABLE:UD(this,e);break;case DD.IN_TABLE_TEXT:KD(this,e);break;case DD.IN_CAPTION:wAe(this,e);break;case DD.IN_COLUMN_GROUP:qD(this,e);break;case DD.IN_TABLE_BODY:YD(this,e);break;case DD.IN_ROW:ZD(this,e);break;case DD.IN_CELL:OAe(this,e);break;case DD.IN_SELECT:AAe(this,e);break;case DD.IN_SELECT_IN_TABLE:MAe(this,e);break;case DD.IN_TEMPLATE:PAe(this,e);break;case DD.AFTER_BODY:LAe(this,e);break;case DD.IN_FRAMESET:zAe(this,e);break;case DD.AFTER_FRAMESET:VAe(this,e);break;case DD.AFTER_AFTER_BODY:UAe(this,e);break;case DD.AFTER_AFTER_FRAMESET:WAe(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?YAe(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case DD.INITIAL:jD(this,e);break;case DD.BEFORE_HTML:dke(this,e);break;case DD.BEFORE_HEAD:pke(this,e);break;case DD.IN_HEAD:mke(this,e);break;case DD.IN_HEAD_NO_SCRIPT:gke(this,e);break;case DD.AFTER_HEAD:vke(this,e);break;case DD.IN_BODY:VD(this,e);break;case DD.TEXT:dAe(this,e);break;case DD.IN_TABLE:WD(this,e);break;case DD.IN_TABLE_TEXT:KD(this,e);break;case DD.IN_CAPTION:TAe(this,e);break;case DD.IN_COLUMN_GROUP:EAe(this,e);break;case DD.IN_TABLE_BODY:XD(this,e);break;case DD.IN_ROW:DAe(this,e);break;case DD.IN_CELL:kAe(this,e);break;case DD.IN_SELECT:jAe(this,e);break;case DD.IN_SELECT_IN_TABLE:NAe(this,e);break;case DD.IN_TEMPLATE:FAe(this,e);break;case DD.AFTER_BODY:RAe(this,e);break;case DD.IN_FRAMESET:BAe(this,e);break;case DD.AFTER_FRAMESET:HAe(this,e);break;case DD.AFTER_AFTER_BODY:$D(this,e)}}onEof(e){switch(this.insertionMode){case DD.INITIAL:jD(this,e);break;case DD.BEFORE_HTML:MD(this,e);break;case DD.BEFORE_HEAD:ND(this,e);break;case DD.IN_HEAD:ID(this,e);break;case DD.IN_HEAD_NO_SCRIPT:LD(this,e);break;case DD.AFTER_HEAD:RD(this,e);break;case DD.IN_BODY:case DD.IN_TABLE:case DD.IN_CAPTION:case DD.IN_COLUMN_GROUP:case DD.IN_TABLE_BODY:case DD.IN_ROW:case DD.IN_CELL:case DD.IN_SELECT:case DD.IN_SELECT_IN_TABLE:uAe(this,e);break;case DD.TEXT:fAe(this,e);break;case DD.IN_TABLE_TEXT:KD(this,e);break;case DD.IN_TEMPLATE:IAe(this,e);break;case DD.AFTER_BODY:case DD.IN_FRAMESET:case DD.AFTER_FRAMESET:case DD.AFTER_AFTER_BODY:case DD.AFTER_AFTER_FRAMESET:AD(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Y.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case DD.IN_HEAD:case DD.IN_HEAD_NO_SCRIPT:case DD.AFTER_HEAD:case DD.TEXT:case DD.IN_COLUMN_GROUP:case DD.IN_SELECT:case DD.IN_SELECT_IN_TABLE:case DD.IN_FRAMESET:case DD.AFTER_FRAMESET:this._insertCharacters(e);break;case DD.IN_BODY:case DD.IN_CAPTION:case DD.IN_CELL:case DD.IN_TEMPLATE:case DD.AFTER_BODY:case DD.AFTER_AFTER_BODY:case DD.AFTER_AFTER_FRAMESET:yke(this,e);break;case DD.IN_TABLE:case DD.IN_TABLE_BODY:case DD.IN_ROW:HD(this,e);break;case DD.IN_TABLE_TEXT:xAe(this,e)}}};function tke(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):lAe(e,t),n}function nke(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function rke(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=ike(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function ike(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function ake(e,t,n){let r=hD(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===X.TEMPLATE&&i===dD.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function oke(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function OD(e,t){for(let n=0;n<8;n++){let n=tke(e,t);if(!n)break;let r=nke(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=rke(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&ake(e,a,i),oke(e,r,n)}}function kD(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function ske(e,t){e._appendCommentNode(t,e.openElements.items[0])}function cke(e,t){e._appendCommentNode(t,e.document)}function AD(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function lke(e,t){e._setDocumentType(t);let n=t.forceQuirks?pD.QUIRKS:ROe(t);LOe(t)||e._err(t,sD.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=DD.BEFORE_HTML}function jD(e,t){e._err(t,sD.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,pD.QUIRKS),e.insertionMode=DD.BEFORE_HTML,e._processToken(t)}function uke(e,t){t.tagID===X.HTML?(e._insertElement(t,dD.HTML),e.insertionMode=DD.BEFORE_HEAD):MD(e,t)}function dke(e,t){let n=t.tagID;(n===X.HTML||n===X.HEAD||n===X.BODY||n===X.BR)&&MD(e,t)}function MD(e,t){e._insertFakeRootElement(),e.insertionMode=DD.BEFORE_HEAD,e._processToken(t)}function fke(e,t){switch(t.tagID){case X.HTML:BD(e,t);break;case X.HEAD:e._insertElement(t,dD.HTML),e.headElement=e.openElements.current,e.insertionMode=DD.IN_HEAD;break;default:ND(e,t)}}function pke(e,t){let n=t.tagID;n===X.HEAD||n===X.BODY||n===X.HTML||n===X.BR?ND(e,t):e._err(t,sD.endTagWithoutMatchingOpenElement)}function ND(e,t){e._insertFakeElement(mD.HEAD,X.HEAD),e.headElement=e.openElements.current,e.insertionMode=DD.IN_HEAD,e._processToken(t)}function PD(e,t){switch(t.tagID){case X.HTML:BD(e,t);break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:e._appendElement(t,dD.HTML),t.ackSelfClosing=!0;break;case X.TITLE:e._switchToTextParsing(t,_D.RCDATA);break;case X.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,_D.RAWTEXT):(e._insertElement(t,dD.HTML),e.insertionMode=DD.IN_HEAD_NO_SCRIPT);break;case X.NOFRAMES:case X.STYLE:e._switchToTextParsing(t,_D.RAWTEXT);break;case X.SCRIPT:e._switchToTextParsing(t,_D.SCRIPT_DATA);break;case X.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=DD.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(DD.IN_TEMPLATE);break;case X.HEAD:e._err(t,sD.misplacedStartTagForHeadElement);break;default:ID(e,t)}}function mke(e,t){switch(t.tagID){case X.HEAD:e.openElements.pop(),e.insertionMode=DD.AFTER_HEAD;break;case X.BODY:case X.BR:case X.HTML:ID(e,t);break;case X.TEMPLATE:FD(e,t);break;default:e._err(t,sD.endTagWithoutMatchingOpenElement)}}function FD(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==X.TEMPLATE&&e._err(t,sD.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,sD.endTagWithoutMatchingOpenElement)}function ID(e,t){e.openElements.pop(),e.insertionMode=DD.AFTER_HEAD,e._processToken(t)}function hke(e,t){switch(t.tagID){case X.HTML:BD(e,t);break;case X.BASEFONT:case X.BGSOUND:case X.HEAD:case X.LINK:case X.META:case X.NOFRAMES:case X.STYLE:PD(e,t);break;case X.NOSCRIPT:e._err(t,sD.nestedNoscriptInHead);break;default:LD(e,t)}}function gke(e,t){switch(t.tagID){case X.NOSCRIPT:e.openElements.pop(),e.insertionMode=DD.IN_HEAD;break;case X.BR:LD(e,t);break;default:e._err(t,sD.endTagWithoutMatchingOpenElement)}}function LD(e,t){let n=t.type===cD.EOF?sD.openElementsLeftAfterEof:sD.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=DD.IN_HEAD,e._processToken(t)}function _ke(e,t){switch(t.tagID){case X.HTML:BD(e,t);break;case X.BODY:e._insertElement(t,dD.HTML),e.framesetOk=!1,e.insertionMode=DD.IN_BODY;break;case X.FRAMESET:e._insertElement(t,dD.HTML),e.insertionMode=DD.IN_FRAMESET;break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:e._err(t,sD.abandonedHeadElementChild),e.openElements.push(e.headElement,X.HEAD),PD(e,t),e.openElements.remove(e.headElement);break;case X.HEAD:e._err(t,sD.misplacedStartTagForHeadElement);break;default:RD(e,t)}}function vke(e,t){switch(t.tagID){case X.BODY:case X.HTML:case X.BR:RD(e,t);break;case X.TEMPLATE:FD(e,t);break;default:e._err(t,sD.endTagWithoutMatchingOpenElement)}}function RD(e,t){e._insertFakeElement(mD.BODY,X.BODY),e.insertionMode=DD.IN_BODY,zD(e,t)}function zD(e,t){switch(t.type){case cD.CHARACTER:bke(e,t);break;case cD.WHITESPACE_CHARACTER:yke(e,t);break;case cD.COMMENT:kD(e,t);break;case cD.START_TAG:BD(e,t);break;case cD.END_TAG:VD(e,t);break;case cD.EOF:uAe(e,t)}}function yke(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function bke(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function xke(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Ske(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Cke(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,dD.HTML),e.insertionMode=DD.IN_FRAMESET)}function wke(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,dD.HTML)}function Tke(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),lOe(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,dD.HTML)}function Eke(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,dD.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Dke(e,t){let n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,dD.HTML),n||(e.formElement=e.openElements.current))}function Oke(e,t){e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===X.LI&&r===X.LI||(n===X.DD||n===X.DT)&&(r===X.DD||r===X.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==X.ADDRESS&&r!==X.DIV&&r!==X.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,dD.HTML)}function kke(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,dD.HTML),e.tokenizer.state=_D.PLAINTEXT}function Ake(e,t){e.openElements.hasInScope(X.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,dD.HTML),e.framesetOk=!1}function jke(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(mD.A);n&&(OD(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,dD.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Mke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,dD.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Nke(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(X.NOBR)&&(OD(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,dD.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Pke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,dD.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Fke(e,t){e.treeAdapter.getDocumentMode(e.document)!==pD.QUIRKS&&e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,dD.HTML),e.framesetOk=!1,e.insertionMode=DD.IN_TABLE}function Ike(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,dD.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Lke(e){let t=iOe(e,fD.TYPE);return t!=null&&t.toLowerCase()===`hidden`}function Rke(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,dD.HTML),Lke(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function zke(e,t){e._appendElement(t,dD.HTML),t.ackSelfClosing=!0}function Bke(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._appendElement(t,dD.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Vke(e,t){t.tagName=mD.IMG,t.tagID=X.IMG,Ike(e,t)}function Hke(e,t){e._insertElement(t,dD.HTML),e.skipNextNewLine=!0,e.tokenizer.state=_D.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=DD.TEXT}function Uke(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,_D.RAWTEXT)}function Wke(e,t){e.framesetOk=!1,e._switchToTextParsing(t,_D.RAWTEXT)}function Gke(e,t){e._switchToTextParsing(t,_D.RAWTEXT)}function Kke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,dD.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===DD.IN_TABLE||e.insertionMode===DD.IN_CAPTION||e.insertionMode===DD.IN_TABLE_BODY||e.insertionMode===DD.IN_ROW||e.insertionMode===DD.IN_CELL?DD.IN_SELECT_IN_TABLE:DD.IN_SELECT}function qke(e,t){e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,dD.HTML)}function Jke(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,dD.HTML)}function Yke(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(X.RTC),e._insertElement(t,dD.HTML)}function Xke(e,t){e._reconstructActiveFormattingElements(),GOe(t),ED(t),t.selfClosing?e._appendElement(t,dD.MATHML):e._insertElement(t,dD.MATHML),t.ackSelfClosing=!0}function Zke(e,t){e._reconstructActiveFormattingElements(),KOe(t),ED(t),t.selfClosing?e._appendElement(t,dD.SVG):e._insertElement(t,dD.SVG),t.ackSelfClosing=!0}function Qke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,dD.HTML)}function BD(e,t){switch(t.tagID){case X.I:case X.S:case X.B:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.SMALL:case X.STRIKE:case X.STRONG:Mke(e,t);break;case X.A:jke(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:Tke(e,t);break;case X.P:case X.DL:case X.OL:case X.UL:case X.DIV:case X.DIR:case X.NAV:case X.MAIN:case X.MENU:case X.ASIDE:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.DETAILS:case X.ADDRESS:case X.ARTICLE:case X.SECTION:case X.SUMMARY:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:wke(e,t);break;case X.LI:case X.DD:case X.DT:Oke(e,t);break;case X.BR:case X.IMG:case X.WBR:case X.AREA:case X.EMBED:case X.KEYGEN:Ike(e,t);break;case X.HR:Bke(e,t);break;case X.RB:case X.RTC:Jke(e,t);break;case X.RT:case X.RP:Yke(e,t);break;case X.PRE:case X.LISTING:Eke(e,t);break;case X.XMP:Uke(e,t);break;case X.SVG:Zke(e,t);break;case X.HTML:xke(e,t);break;case X.BASE:case X.LINK:case X.META:case X.STYLE:case X.TITLE:case X.SCRIPT:case X.BGSOUND:case X.BASEFONT:case X.TEMPLATE:PD(e,t);break;case X.BODY:Ske(e,t);break;case X.FORM:Dke(e,t);break;case X.NOBR:Nke(e,t);break;case X.MATH:Xke(e,t);break;case X.TABLE:Fke(e,t);break;case X.INPUT:Rke(e,t);break;case X.PARAM:case X.TRACK:case X.SOURCE:zke(e,t);break;case X.IMAGE:Vke(e,t);break;case X.BUTTON:Ake(e,t);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:Pke(e,t);break;case X.IFRAME:Wke(e,t);break;case X.SELECT:Kke(e,t);break;case X.OPTION:case X.OPTGROUP:qke(e,t);break;case X.NOEMBED:Gke(e,t);break;case X.FRAMESET:Cke(e,t);break;case X.TEXTAREA:Hke(e,t);break;case X.NOSCRIPT:e.options.scriptingEnabled?Gke(e,t):Qke(e,t);break;case X.PLAINTEXT:kke(e,t);break;case X.COL:case X.TH:case X.TD:case X.TR:case X.HEAD:case X.FRAME:case X.TBODY:case X.TFOOT:case X.THEAD:case X.CAPTION:case X.COLGROUP:break;default:Qke(e,t)}}function $ke(e,t){if(e.openElements.hasInScope(X.BODY)&&(e.insertionMode=DD.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function eAe(e,t){e.openElements.hasInScope(X.BODY)&&(e.insertionMode=DD.AFTER_BODY,RAe(e,t))}function tAe(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function nAe(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(X.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(X.FORM):n&&e.openElements.remove(n))}function rAe(e){e.openElements.hasInButtonScope(X.P)||e._insertFakeElement(mD.P,X.P),e._closePElement()}function iAe(e){e.openElements.hasInListItemScope(X.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(X.LI),e.openElements.popUntilTagNamePopped(X.LI))}function aAe(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function oAe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function sAe(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function cAe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(mD.BR,X.BR),e.openElements.pop(),e.framesetOk=!1}function lAe(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==X.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function VD(e,t){switch(t.tagID){case X.A:case X.B:case X.I:case X.S:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.NOBR:case X.SMALL:case X.STRIKE:case X.STRONG:OD(e,t);break;case X.P:rAe(e);break;case X.DL:case X.UL:case X.OL:case X.DIR:case X.DIV:case X.NAV:case X.PRE:case X.MAIN:case X.MENU:case X.ASIDE:case X.BUTTON:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.ADDRESS:case X.ARTICLE:case X.DETAILS:case X.SECTION:case X.SUMMARY:case X.LISTING:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:tAe(e,t);break;case X.LI:iAe(e);break;case X.DD:case X.DT:aAe(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:oAe(e);break;case X.BR:cAe(e);break;case X.BODY:$ke(e,t);break;case X.HTML:eAe(e,t);break;case X.FORM:nAe(e);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:sAe(e,t);break;case X.TEMPLATE:FD(e,t);break;default:lAe(e,t)}}function uAe(e,t){e.tmplInsertionModeStack.length>0?IAe(e,t):AD(e,t)}function dAe(e,t){var n;t.tagID===X.SCRIPT&&((n=e.scriptHandler)==null||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function fAe(e,t){e._err(t,sD.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function HD(e,t){if(QOe.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=DD.IN_TABLE_TEXT,t.type){case cD.CHARACTER:SAe(e,t);break;case cD.WHITESPACE_CHARACTER:xAe(e,t)}else GD(e,t)}function pAe(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,dD.HTML),e.insertionMode=DD.IN_CAPTION}function mAe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,dD.HTML),e.insertionMode=DD.IN_COLUMN_GROUP}function hAe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(mD.COLGROUP,X.COLGROUP),e.insertionMode=DD.IN_COLUMN_GROUP,qD(e,t)}function gAe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,dD.HTML),e.insertionMode=DD.IN_TABLE_BODY}function _Ae(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(mD.TBODY,X.TBODY),e.insertionMode=DD.IN_TABLE_BODY,YD(e,t)}function vAe(e,t){e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function yAe(e,t){Lke(t)?e._appendElement(t,dD.HTML):GD(e,t),t.ackSelfClosing=!0}function bAe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,dD.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function UD(e,t){switch(t.tagID){case X.TD:case X.TH:case X.TR:_Ae(e,t);break;case X.STYLE:case X.SCRIPT:case X.TEMPLATE:PD(e,t);break;case X.COL:hAe(e,t);break;case X.FORM:bAe(e,t);break;case X.TABLE:vAe(e,t);break;case X.TBODY:case X.TFOOT:case X.THEAD:gAe(e,t);break;case X.INPUT:yAe(e,t);break;case X.CAPTION:pAe(e,t);break;case X.COLGROUP:mAe(e,t);break;default:GD(e,t)}}function WD(e,t){switch(t.tagID){case X.TABLE:e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode());break;case X.TEMPLATE:FD(e,t);break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:GD(e,t)}}function GD(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,zD(e,t),e.fosterParentingEnabled=n}function xAe(e,t){e.pendingCharacterTokens.push(t)}function SAe(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function KD(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)GD(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const CAe=/* @__PURE__ */ new Set([X.CAPTION,X.COL,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR]);function wAe(e,t){let n=t.tagID;CAe.has(n)?e.openElements.hasInTableScope(X.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=DD.IN_TABLE,UD(e,t)):BD(e,t)}function TAe(e,t){let n=t.tagID;switch(n){case X.CAPTION:case X.TABLE:e.openElements.hasInTableScope(X.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=DD.IN_TABLE,n===X.TABLE&&WD(e,t));break;case X.BODY:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:VD(e,t)}}function qD(e,t){switch(t.tagID){case X.HTML:BD(e,t);break;case X.COL:e._appendElement(t,dD.HTML),t.ackSelfClosing=!0;break;case X.TEMPLATE:PD(e,t);break;default:JD(e,t)}}function EAe(e,t){switch(t.tagID){case X.COLGROUP:e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=DD.IN_TABLE);break;case X.TEMPLATE:FD(e,t);break;case X.COL:break;default:JD(e,t)}}function JD(e,t){e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=DD.IN_TABLE,e._processToken(t))}function YD(e,t){switch(t.tagID){case X.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,dD.HTML),e.insertionMode=DD.IN_ROW;break;case X.TH:case X.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(mD.TR,X.TR),e.insertionMode=DD.IN_ROW,ZD(e,t);break;case X.CAPTION:case X.COL:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=DD.IN_TABLE,UD(e,t));break;default:UD(e,t)}}function XD(e,t){let n=t.tagID;switch(t.tagID){case X.TBODY:case X.TFOOT:case X.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=DD.IN_TABLE);break;case X.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=DD.IN_TABLE,WD(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TD:case X.TH:case X.TR:break;default:WD(e,t)}}function ZD(e,t){switch(t.tagID){case X.TH:case X.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,dD.HTML),e.insertionMode=DD.IN_CELL,e.activeFormattingElements.insertMarker();break;case X.CAPTION:case X.COL:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:case X.TR:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=DD.IN_TABLE_BODY,YD(e,t));break;default:UD(e,t)}}function DAe(e,t){switch(t.tagID){case X.TR:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=DD.IN_TABLE_BODY);break;case X.TABLE:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=DD.IN_TABLE_BODY,XD(e,t));break;case X.TBODY:case X.TFOOT:case X.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(X.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=DD.IN_TABLE_BODY,XD(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TD:case X.TH:break;default:WD(e,t)}}function OAe(e,t){let n=t.tagID;CAe.has(n)?(e.openElements.hasInTableScope(X.TD)||e.openElements.hasInTableScope(X.TH))&&(e._closeTableCell(),ZD(e,t)):BD(e,t)}function kAe(e,t){let n=t.tagID;switch(n){case X.TD:case X.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=DD.IN_ROW);break;case X.TABLE:case X.TBODY:case X.TFOOT:case X.THEAD:case X.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),DAe(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:break;default:VD(e,t)}}function AAe(e,t){switch(t.tagID){case X.HTML:BD(e,t);break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._insertElement(t,dD.HTML);break;case X.OPTGROUP:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop(),e._insertElement(t,dD.HTML);break;case X.INPUT:case X.KEYGEN:case X.TEXTAREA:case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),t.tagID!==X.SELECT&&e._processStartTag(t));break;case X.SCRIPT:case X.TEMPLATE:PD(e,t)}}function jAe(e,t){switch(t.tagID){case X.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===X.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===X.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop();break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop();break;case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode());break;case X.TEMPLATE:FD(e,t)}}function MAe(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e._processStartTag(t)):AAe(e,t)}function NAe(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e.onEndTag(t)):jAe(e,t)}function PAe(e,t){switch(t.tagID){case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:PD(e,t);break;case X.CAPTION:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.tmplInsertionModeStack[0]=DD.IN_TABLE,e.insertionMode=DD.IN_TABLE,UD(e,t);break;case X.COL:e.tmplInsertionModeStack[0]=DD.IN_COLUMN_GROUP,e.insertionMode=DD.IN_COLUMN_GROUP,qD(e,t);break;case X.TR:e.tmplInsertionModeStack[0]=DD.IN_TABLE_BODY,e.insertionMode=DD.IN_TABLE_BODY,YD(e,t);break;case X.TD:case X.TH:e.tmplInsertionModeStack[0]=DD.IN_ROW,e.insertionMode=DD.IN_ROW,ZD(e,t);break;default:e.tmplInsertionModeStack[0]=DD.IN_BODY,e.insertionMode=DD.IN_BODY,BD(e,t)}}function FAe(e,t){t.tagID===X.TEMPLATE&&FD(e,t)}function IAe(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):AD(e,t)}function LAe(e,t){t.tagID===X.HTML?BD(e,t):QD(e,t)}function RAe(e,t){if(t.tagID===X.HTML){if(e.fragmentContext||(e.insertionMode=DD.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===X.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!e.treeAdapter.getNodeSourceCodeLocation(n)?.endTag&&e._setEndLocation(n,t)}}else QD(e,t)}function QD(e,t){e.insertionMode=DD.IN_BODY,zD(e,t)}function zAe(e,t){switch(t.tagID){case X.HTML:BD(e,t);break;case X.FRAMESET:e._insertElement(t,dD.HTML);break;case X.FRAME:e._appendElement(t,dD.HTML),t.ackSelfClosing=!0;break;case X.NOFRAMES:PD(e,t)}}function BAe(e,t){t.tagID===X.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==X.FRAMESET&&(e.insertionMode=DD.AFTER_FRAMESET))}function VAe(e,t){switch(t.tagID){case X.HTML:BD(e,t);break;case X.NOFRAMES:PD(e,t)}}function HAe(e,t){t.tagID===X.HTML&&(e.insertionMode=DD.AFTER_AFTER_FRAMESET)}function UAe(e,t){t.tagID===X.HTML?BD(e,t):$D(e,t)}function $D(e,t){e.insertionMode=DD.IN_BODY,zD(e,t)}function WAe(e,t){switch(t.tagID){case X.HTML:BD(e,t);break;case X.NOFRAMES:PD(e,t)}}function GAe(e,t){t.chars=`�`,e._insertCharacters(t)}function KAe(e,t){e._insertCharacters(t),e.framesetOk=!1}function qAe(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==dD.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function JAe(e,t){if(WOe(t))qAe(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===dD.MATHML?GOe(t):r===dD.SVG&&(qOe(t),KOe(t)),ED(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function YAe(e,t){if(t.tagID===X.P||t.tagID===X.BR)qAe(e),e._endTagOutsideForeignContent(t);else for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===dD.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}mD.AREA,mD.BASE,mD.BASEFONT,mD.BGSOUND,mD.BR,mD.COL,mD.EMBED,mD.FRAME,mD.HR,mD.IMG,mD.INPUT,mD.KEYGEN,mD.LINK,mD.META,mD.PARAM,mD.SOURCE,mD.TRACK,mD.WBR;function XAe(e,t){return eke.parse(e,t)}function ZAe(e,t,n){typeof e==`string`&&(n=t,t=e,e=null);let r=eke.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}const QAe={abandonedHeadElementChild:{reason:`Unexpected metadata element after head`,description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:`Unexpected abruptly closed empty comment`,description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:`Unexpected abruptly closed public identifier`,description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:`Unexpected abruptly closed system identifier`,description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:`Unexpected non-digit at start of numeric character reference`,description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:`Unexpected CDATA section in HTML`,description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:`Unexpected too big numeric character reference`,description:`Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)`},closingOfElementWithOpenChildElements:{reason:`Unexpected closing tag with open child elements`,description:`Unexpectedly closing tag. Expected other tags to be closed first`,url:!1},controlCharacterInInputStream:{reason:`Unexpected control character`,description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:`Unexpected control character reference`,description:`Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace`},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:`Unexpected duplicate attribute`,description:`Unexpectedly double attribute. Expected attributes to occur only once`},endTagWithAttributes:{reason:`Unexpected attribute on closing tag`,description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:`Unexpected slash at end of closing tag`,description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:`Unexpected unopened end tag`,description:`Unexpected end tag. Expected no end tag or another end tag`,url:!1},eofBeforeTagName:{reason:`Unexpected end of file`,description:`Unexpected end of file. Expected tag name instead`},eofInCdata:{reason:`Unexpected end of file in CDATA`,description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:`Unexpected end of file in comment`,description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:`Unexpected end of file in doctype`,description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:`Unexpected end of file in element that can only contain text`,description:`Unexpected end of file. Expected text or a closing tag`,url:!1},eofInScriptHtmlCommentLikeText:{reason:`Unexpected end of file in comment inside script`,description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:`Unexpected end of file in tag`,description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:`Incorrectly closed comment`,description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:`Incorrectly opened comment`,description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:`Invalid sequence after doctype name`,description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:`Invalid first character in tag name`,description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:`Misplaced doctype`,description:`Unexpected doctype. Expected doctype before head`,url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:`Missing attribute value`,description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:`Missing doctype before other content`,description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:`Missing doctype name`,description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:`Missing public identifier in doctype`,description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:`Missing system identifier in doctype`,description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:`Missing name in end tag`,description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:`Missing quote before public identifier in doctype`,description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:`Missing quote before system identifier in doctype`,description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:`Missing semicolon after character reference`,description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:`Missing whitespace after public identifier in doctype`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:`Missing whitespace after system identifier in doctype`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:`Missing whitespace before doctype name`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:`Missing whitespace between attributes`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:`Missing whitespace between public and system identifiers in doctype`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:`Unexpected nested comment`,description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:`Unexpected non-conforming doctype declaration`,description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:`Unexpected trailing slash on start tag of non-void element`,description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:`Unexpected noncharacter code point referenced by character reference`,description:`Unexpected code point. Do not use noncharacters in HTML`},noncharacterInInputStream:{reason:`Unexpected noncharacter character`,description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:`Unexpected NULL character referenced by character reference`,description:`Unexpected code point. Do not use NULL characters in HTML`},openElementsLeftAfterEof:{reason:`Unexpected end of file`,description:`Unexpected end of file. Expected closing tag instead`,url:!1},surrogateCharacterReference:{reason:`Unexpected surrogate character referenced by character reference`,description:`Unexpected code point. Do not use lone surrogate characters in HTML`},surrogateInInputStream:{reason:`Unexpected surrogate character`,description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:`Invalid character after system identifier in doctype`,description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:`Unexpected character in attribute name`,description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:`Unexpected character in unquoted attribute value`,description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:`Unexpected equals sign before attribute name`,description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:`Unexpected NULL character`,description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:`Unexpected question mark instead of tag name`,description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:`Unexpected slash in tag`,description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:`Unexpected unknown named character reference`,description:`Unexpected character reference. Expected known named character references`}},$Ae=/-[a-z]/g,eje=/%c(?:([-+])(\d+))?/g,tje=/%x/g,nje={2:!0,1:!1,0:null},rje={};function ije(e,t){let n=t||rje,r=n.onerror,i=e instanceof et?e:new et(e),a=n.fragment?ZAe:XAe,o=String(i);return KDe(a(o,{sourceCodeLocationInfo:!0,onParseError:n.onerror?s:null,scriptingEnabled:!1}),{file:i,space:n.space,verbose:n.verbose});function s(e){let t=e.code,a=aje(t),s=n[a]??!0,c=typeof s==`number`?s:+!!s;if(c){let n=QAe[a],o=new Be(l(n.reason),{place:{start:{line:e.startLine,column:e.startCol,offset:e.startOffset},end:{line:e.endLine,column:e.endCol,offset:e.endOffset}},ruleId:t,source:`hast-util-from-html`});i.path&&(o.file=i.path,o.name=i.path+`:`+o.name),o.fatal=nje[c],o.note=l(n.description),o.url=n.url===!1?void 0:`https://html.spec.whatwg.org/multipage/parsing.html#parse-error-`+t,r(o)}function l(t){return t.replace(eje,n).replace(tje,r);function n(t,n,r){let i=(r?Number.parseInt(r,10):0)*(n===`-`?-1:1);return sje(o.charAt(e.startOffset+i))}function r(){return cje(o.charCodeAt(e.startOffset))}}}}function aje(e){return e.replace($Ae,oje)}function oje(e){return e.charAt(1).toUpperCase()}function sje(e){return e==="`"?"` ` `":e}function cje(e){return`0x`+e.toString(16).toUpperCase()}var lje=/* @__PURE__ */ a(((e,t)=>{let n=process||{},r=n.argv||[],i=n.env||{},a=!(i.NO_COLOR||r.includes(`--no-color`))&&(!!i.FORCE_COLOR||r.includes(`--color`)||n.platform===`win32`||(n.stdout||{}).isTTY&&i.TERM!==`dumb`||!!i.CI),o=(e,t,n=e)=>r=>{let i=``+r,a=i.indexOf(t,e.length);return~a?e+s(i,t,n,a)+t:e+i+t},s=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},c=(e=a)=>{let t=e?o:()=>String;return{isColorSupported:e,reset:t(`\x1B[0m`,`\x1B[0m`),bold:t(`\x1B[1m`,`\x1B[22m`,`\x1B[22m\x1B[1m`),dim:t(`\x1B[2m`,`\x1B[22m`,`\x1B[22m\x1B[2m`),italic:t(`\x1B[3m`,`\x1B[23m`),underline:t(`\x1B[4m`,`\x1B[24m`),inverse:t(`\x1B[7m`,`\x1B[27m`),hidden:t(`\x1B[8m`,`\x1B[28m`),strikethrough:t(`\x1B[9m`,`\x1B[29m`),black:t(`\x1B[30m`,`\x1B[39m`),red:t(`\x1B[31m`,`\x1B[39m`),green:t(`\x1B[32m`,`\x1B[39m`),yellow:t(`\x1B[33m`,`\x1B[39m`),blue:t(`\x1B[34m`,`\x1B[39m`),magenta:t(`\x1B[35m`,`\x1B[39m`),cyan:t(`\x1B[36m`,`\x1B[39m`),white:t(`\x1B[37m`,`\x1B[39m`),gray:t(`\x1B[90m`,`\x1B[39m`),bgBlack:t(`\x1B[40m`,`\x1B[49m`),bgRed:t(`\x1B[41m`,`\x1B[49m`),bgGreen:t(`\x1B[42m`,`\x1B[49m`),bgYellow:t(`\x1B[43m`,`\x1B[49m`),bgBlue:t(`\x1B[44m`,`\x1B[49m`),bgMagenta:t(`\x1B[45m`,`\x1B[49m`),bgCyan:t(`\x1B[46m`,`\x1B[49m`),bgWhite:t(`\x1B[47m`,`\x1B[49m`),blackBright:t(`\x1B[90m`,`\x1B[39m`),redBright:t(`\x1B[91m`,`\x1B[39m`),greenBright:t(`\x1B[92m`,`\x1B[39m`),yellowBright:t(`\x1B[93m`,`\x1B[39m`),blueBright:t(`\x1B[94m`,`\x1B[39m`),magentaBright:t(`\x1B[95m`,`\x1B[39m`),cyanBright:t(`\x1B[96m`,`\x1B[39m`),whiteBright:t(`\x1B[97m`,`\x1B[39m`),bgBlackBright:t(`\x1B[100m`,`\x1B[49m`),bgRedBright:t(`\x1B[101m`,`\x1B[49m`),bgGreenBright:t(`\x1B[102m`,`\x1B[49m`),bgYellowBright:t(`\x1B[103m`,`\x1B[49m`),bgBlueBright:t(`\x1B[104m`,`\x1B[49m`),bgMagentaBright:t(`\x1B[105m`,`\x1B[49m`),bgCyanBright:t(`\x1B[106m`,`\x1B[49m`),bgWhiteBright:t(`\x1B[107m`,`\x1B[49m`)}};t.exports=c(),t.exports.createColors=c})),uje=/* @__PURE__ */ a(((e,t)=>{let n=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,a=/[\da-f]/i;t.exports=function(e,t={}){let o=e.css.valueOf(),s=t.ignoreErrors,c,l,u,d,f,p,m,h,g,_,v=o.length,y=0,b=[],x=[],S=-1;function C(){return y}function w(t){throw e.error(`Unclosed `+t,y)}function T(){return x.length===0&&y>=v}function E(e){if(x.length)return x.pop();if(y>=v)return;let t=e?e.ignoreUnclosed:!1;switch(c=o.charCodeAt(y),c){case 10:case 32:case 9:case 13:case 12:d=y;do d+=1,c=o.charCodeAt(d);while(c===32||c===10||c===9||c===13||c===12);p=[`space`,o.slice(y,d)],y=d-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(c);p=[e,e,y];break}case 40:if(_=b.length?b.pop()[1]:``,g=o.charCodeAt(y+1),_===`url`&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){d=y;do{if(m=!1,d=o.indexOf(`)`,d+1),d===-1){if(s||t){d=y;break}w(`bracket`)}for(h=d;o.charCodeAt(h-1)===92;)--h,m=!m}while(m);p=[`brackets`,o.slice(y,d+1),y,d],y=d}else y<=S?p=[`(`,`(`,y]:(d=o.indexOf(`)`,y+1),l=o.slice(y,d+1),d===-1||i.test(l)?(S=d===-1?v:d,p=[`(`,`(`,y]):(p=[`brackets`,l,y,d],y=d));break;case 39:case 34:f=c===39?`'`:`"`,d=y;do{if(m=!1,d=o.indexOf(f,d+1),d===-1){if(s||t){d=y+1;break}w(`string`)}for(h=d;o.charCodeAt(h-1)===92;)--h,m=!m}while(m);p=[`string`,o.slice(y,d+1),y,d],y=d;break;case 64:n.lastIndex=y+1,n.test(o),d=n.lastIndex===0?o.length-1:n.lastIndex-2,p=[`at-word`,o.slice(y,d+1),y,d],y=d;break;case 92:for(d=y,u=!0;o.charCodeAt(d+1)===92;)d+=1,u=!u;if(c=o.charCodeAt(d+1),u&&c!==47&&c!==32&&c!==10&&c!==9&&c!==13&&c!==12&&(d+=1,a.test(o.charAt(d)))){for(;a.test(o.charAt(d+1));)d+=1;o.charCodeAt(d+1)===32&&(d+=1)}p=[`word`,o.slice(y,d+1),y,d],y=d;break;default:c===47&&o.charCodeAt(y+1)===42?(d=o.indexOf(`*/`,y+2)+1,d===0&&(s||t?d=o.length:w(`comment`)),p=[`comment`,o.slice(y,d+1),y,d],y=d):(r.lastIndex=y+1,r.test(o),d=r.lastIndex===0?o.length-1:r.lastIndex-2,p=[`word`,o.slice(y,d+1),y,d],b.push(p),y=d)}return y++,p}function D(e){x.push(e)}return{back:D,endOfFile:T,nextToken:E,position:C}}})),dje=/* @__PURE__ */ a(((e,t)=>{let n=lje(),r=uje(),i;function a(e){i=e}let o={";":n.yellow,":":n.yellow,"(":n.cyan,")":n.cyan,"[":n.yellow,"]":n.yellow,"{":n.yellow,"}":n.yellow,"at-word":n.cyan,brackets:n.cyan,call:n.cyan,class:n.yellow,comment:n.gray,hash:n.magenta,string:n.green};function s([e,t],n){if(e===`word`){if(t[0]===`.`)return`class`;if(t[0]===`#`)return`hash`}if(!n.endOfFile()){let e=n.nextToken();if(n.back(e),e[0]===`brackets`||e[0]===`(`)return`call`}return e}function c(e){let t=r(new i(e),{ignoreErrors:!0}),n=``;for(;!t.endOfFile();){let e=t.nextToken(),r=o[s(e,t)];n+=r?e[1].split(/\r?\n/).map(e=>r(e)).join(`
528
+ `):e[1]}return n}c.registerInput=a,t.exports=c})),eO=/* @__PURE__ */ a(((e,t)=>{let n=lje(),r=dje();var i=class e extends Error{constructor(t,n,r,i,a,o){super(t),this.name=`CssSyntaxError`,this.reason=t,a&&(this.file=a),i&&(this.source=i),o&&(this.plugin=o),n!==void 0&&r!==void 0&&(typeof n==`number`?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason}showSourceCode(e){if(!this.source)return``;let t=this.source;e??=n.isColorSupported;let i=e=>e,a=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:s}=n.createColors(!0);a=t=>e(s(t)),i=e=>t(e),r&&(o=e=>r(e))}let s=t.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length;return s.slice(c,l).map((e,t)=>{let n=c+1+t,r=` `+(` `+n).slice(-u)+` | `;if(n===this.line){if(e.length>160){let t=Math.max(0,this.column-20),n=Math.max(this.column+20,this.endColumn+20),s=e.slice(t,n),c=i(r.replace(/\d/g,` `))+e.slice(0,Math.min(this.column-1,19)).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(s)+`
529
529
  `+c+a(`^`)}let t=i(r.replace(/\d/g,` `))+e.slice(0,this.column-1).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(e)+`
530
530
  `+t+a(`^`)}return` `+i(r)+o(e)}).join(`
531
531
  `)}toString(){let e=this.showSourceCode();return e&&=`
532
532
 
533
533
  `+e+`
534
- `,this.name+`: `+this.message+e}};t.exports=i,i.default=i})),cje=/* @__PURE__ */ a(((e,t)=>{let n=/(<)(\/?style\b)/gi,r=/(<)(!--)/g,i=/[\t\n\f\r "#'()/;[\\\]{}]/;function a(e){return typeof e!=`string`||!e.includes(`<`)?e:e.replace(n,`\\3c $2`).replace(r,`\\3c $2`)}let o={after:`
534
+ `,this.name+`: `+this.message+e}};t.exports=i,i.default=i})),fje=/* @__PURE__ */ a(((e,t)=>{let n=/(<)(\/?style\b)/gi,r=/(<)(!--)/g,i=/[\t\n\f\r "#'()/;[\\\]{}]/;function a(e){return typeof e!=`string`||!e.includes(`<`)?e:e.replace(n,`\\3c $2`).replace(r,`\\3c $2`)}let o={after:`
535
535
  `,beforeClose:`
536
536
  `,beforeComment:`
537
537
  `,beforeDecl:`
@@ -546,41 +546,41 @@ if(r.type===`JSXSpreadChild`)throw Error(`JSX spread children are not supported`
546
546
  /* c8 ignore start */
547
547
  if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);
548
548
  /* c8 ignore stop */
549
- this[e.type](e,t)}};t.exports=d,d.default=d})),eO=/* @__PURE__ */ a(((e,t)=>{let n=cje();function r(e,t){new n(t).stringify(e)}t.exports=r,r.default=r})),tO=/* @__PURE__ */ a(((e,t)=>{t.exports.isClean=Symbol(`isClean`),t.exports.my=Symbol(`my`)})),nO=/* @__PURE__ */ a(((e,t)=>{let n=$D(),r=cje(),i=eO(),{isClean:a,my:o}=tO();function s(e,t){let n=new e.constructor,r=[[e,n,t]];for(;r.length>0;){let[e,t,n]=r.pop();for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||i===`proxyCache`)continue;let a=e[i],o=typeof a;if(i===`parent`&&o===`object`)n&&(t[i]=n);else if(i===`source`)t[i]=a;else if(Array.isArray(a)){let e=[];t[i]=e;for(let n of a){let i=new n.constructor;e.push(i),r.push([n,i,t])}}else{if(o===`object`&&a!==null){let e=new a.constructor;r.push([a,e,void 0]),a=e}t[i]=a}}}return n}function c(e,t){if(t&&t.offset!==void 0)return t.offset;let n=1,r=1,i=0;for(let a=0;a<e.length;a++){if(r===t.line&&n===t.column){i=a;break}e[a]===`
549
+ this[e.type](e,t)}};t.exports=d,d.default=d})),tO=/* @__PURE__ */ a(((e,t)=>{let n=fje();function r(e,t){new n(t).stringify(e)}t.exports=r,r.default=r})),nO=/* @__PURE__ */ a(((e,t)=>{t.exports.isClean=Symbol(`isClean`),t.exports.my=Symbol(`my`)})),rO=/* @__PURE__ */ a(((e,t)=>{let n=eO(),r=fje(),i=tO(),{isClean:a,my:o}=nO();function s(e,t){let n=new e.constructor,r=[[e,n,t]];for(;r.length>0;){let[e,t,n]=r.pop();for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||i===`proxyCache`)continue;let a=e[i],o=typeof a;if(i===`parent`&&o===`object`)n&&(t[i]=n);else if(i===`source`)t[i]=a;else if(Array.isArray(a)){let e=[];t[i]=e;for(let n of a){let i=new n.constructor;e.push(i),r.push([n,i,t])}}else{if(o===`object`&&a!==null){let e=new a.constructor;r.push([a,e,void 0]),a=e}t[i]=a}}}return n}function c(e,t){if(t&&t.offset!==void 0)return t.offset;let n=1,r=1,i=0;for(let a=0;a<e.length;a++){if(r===t.line&&n===t.column){i=a;break}e[a]===`
550
550
  `?(n=1,r+=1):n+=1}return i}var l=class e{get proxyOf(){return this}constructor(e={}){this.raws={},this[a]=!1,this[o]=!0;for(let t of Object.keys(e))if(t!==`__proto__`){if(t===`nodes`){this.nodes=[];for(let n of e[t])typeof n.clone==`function`&&n.parent?this.append(n.clone()):this.append(n)}else this[t]=e[t]}}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=s(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:t===`root`?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||
551
551
  /* c8 ignore next */
552
552
  t===`text`)&&e.markDirty()),!0}}}
553
553
  /* c8 ignore next 3 */
554
554
  markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)};if(e.index)n=this.positionInside(e.index);else if(e.word){let r=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);r!==-1&&(n=this.positionInside(r))}return n}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r=`document`in this.source.input?this.source.input.document:this.source.input.css,i=c(r,this.source.start),a=i+e;for(let e=i;e<a;e++)r[e]===`
555
- `?(t=1,n+=1):t+=1;return{column:t,line:n,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==`number`?this.source.end.offset:c(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),r=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:typeof e.index==`number`&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:typeof e.endIndex==`number`?r=this.positionInside(e.endIndex):typeof e.index==`number`&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line,offset:n.offset+1}),{end:r,start:n}}raw(e,t){return new r().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(t,n){let r=n==null;n||=/* @__PURE__ */ new Map;let i=[],a=[[this,i,0]];for(let t=0;t<a.length;t++){let[r,i,o]=a[t],s={};i[o]=s;for(let t in r){if(!Object.prototype.hasOwnProperty.call(r,t)||t===`parent`||t===`proxyCache`)continue;let i=r[t];if(Array.isArray(i)){let r=[];s[t]=r;for(let t=0;t<i.length;t++){let o=i[t];typeof o==`object`&&o.toJSON?o.toJSON===e.prototype.toJSON?a.push([o,r,t]):r[t]=o.toJSON(null,n):r[t]=o}}else if(typeof i==`object`&&i.toJSON)i.toJSON===e.prototype.toJSON?a.push([i,s,t]):s[t]=i.toJSON(null,n);else if(t===`source`){if(i==null)continue;let e=n.get(i.input);e??(e=n.size,n.set(i.input,e)),s[t]={end:i.end,inputId:e,start:i.start}}else s[t]=i}}let o=i[0];return r&&(o.inputs=[...n.keys()].map(e=>e.toJSON())),o}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}};t.exports=l,l.default=l})),rO=/* @__PURE__ */ a(((e,t)=>{let n=nO();var r=class extends n{constructor(e){super(e),this.type=`comment`}};t.exports=r,r.default=r})),iO=/* @__PURE__ */ a(((e,t)=>{let n=nO();var r=class extends n{get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}constructor(e){e&&e.value!==void 0&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}};t.exports=r,r.default=r})),aO=/* @__PURE__ */ a(((e,t)=>{let n=rO(),r=iO(),i=nO(),{isClean:a,my:o}=tO(),s,c,l,u;function d(e){let t=e.slice();for(;t.length>0;){let e=t.pop();if(delete e.source,e.nodes){e.nodes=e.nodes.slice();for(let n of e.nodes)t.push(n)}}return e.slice()}function f(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[a]=!1,e.proxyOf.nodes)for(let n of e.proxyOf.nodes)t.push(n)}}var p=class e extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(t){let n=[this];for(;n.length>0;){let r=n.pop();if(r!==this&&r.cleanRaws!==e.prototype.cleanRaws)r.cleanRaws(t);else if(i.prototype.cleanRaws.call(r,t),r.nodes)for(let e of r.nodes)n.push(e)}}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty()),!0}}}index(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0&&`prepend`,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(t,i){if(typeof t==`string`)t=d(c(t).nodes);else if(t===void 0)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type===`root`&&this.type!==`document`){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type)t=[t];else if(t.prop){if(t.value===void 0)throw Error(`Value field is missed in node creation`);typeof t.value!=`string`&&(t.value=String(t.value)),t=[new r(t)]}else if(t.selector||t.selectors)t=[new u(t)];else if(t.name)t=[new s(t)];else if(t.text)t=[new n(t)];else throw Error(`Unknown node type in node creation`);return t.map(t=>(t[o]||e.rebuild(t),t=t.proxyOf,t.parent&&t.parent.removeChild(t),t[a]&&f(t),t.raws||(t.raws={}),t.raws.before===void 0&&i&&i.raws.before!==void 0&&(t.raws.before=i.raws.before.replace(/\S/g,``)),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,`prepend`).reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{(!t.props||t.props.includes(r.prop))&&(!t.fast||r.value.includes(t.fast))&&(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:n,node:r}=t[t.length-1],i=r.indexes[n];if(i>=r.proxyOf.nodes.length){delete r.indexes[n],t.pop();let e=t[t.length-1];e&&(e.node.indexes[e.iterator]+=1);continue}let a=r.proxyOf.nodes[i],o;try{o=e(a,i)}catch(e){throw a.addToError(e)}if(o===!1){for(let e of t)delete e.node.indexes[e.iterator];return!1}a.walk&&a.proxyOf.nodes?t.push({iterator:a.getIterator(),node:a}):r.indexes[n]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}};
555
+ `?(t=1,n+=1):t+=1;return{column:t,line:n,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==`number`?this.source.end.offset:c(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),r=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:typeof e.index==`number`&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:typeof e.endIndex==`number`?r=this.positionInside(e.endIndex):typeof e.index==`number`&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line,offset:n.offset+1}),{end:r,start:n}}raw(e,t){return new r().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(t,n){let r=n==null;n||=/* @__PURE__ */ new Map;let i=[],a=[[this,i,0]];for(let t=0;t<a.length;t++){let[r,i,o]=a[t],s={};i[o]=s;for(let t in r){if(!Object.prototype.hasOwnProperty.call(r,t)||t===`parent`||t===`proxyCache`)continue;let i=r[t];if(Array.isArray(i)){let r=[];s[t]=r;for(let t=0;t<i.length;t++){let o=i[t];typeof o==`object`&&o.toJSON?o.toJSON===e.prototype.toJSON?a.push([o,r,t]):r[t]=o.toJSON(null,n):r[t]=o}}else if(typeof i==`object`&&i.toJSON)i.toJSON===e.prototype.toJSON?a.push([i,s,t]):s[t]=i.toJSON(null,n);else if(t===`source`){if(i==null)continue;let e=n.get(i.input);e??(e=n.size,n.set(i.input,e)),s[t]={end:i.end,inputId:e,start:i.start}}else s[t]=i}}let o=i[0];return r&&(o.inputs=[...n.keys()].map(e=>e.toJSON())),o}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}};t.exports=l,l.default=l})),iO=/* @__PURE__ */ a(((e,t)=>{let n=rO();var r=class extends n{constructor(e){super(e),this.type=`comment`}};t.exports=r,r.default=r})),aO=/* @__PURE__ */ a(((e,t)=>{let n=rO();var r=class extends n{get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}constructor(e){e&&e.value!==void 0&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}};t.exports=r,r.default=r})),oO=/* @__PURE__ */ a(((e,t)=>{let n=iO(),r=aO(),i=rO(),{isClean:a,my:o}=nO(),s,c,l,u;function d(e){let t=e.slice();for(;t.length>0;){let e=t.pop();if(delete e.source,e.nodes){e.nodes=e.nodes.slice();for(let n of e.nodes)t.push(n)}}return e.slice()}function f(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[a]=!1,e.proxyOf.nodes)for(let n of e.proxyOf.nodes)t.push(n)}}var p=class e extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(t){let n=[this];for(;n.length>0;){let r=n.pop();if(r!==this&&r.cleanRaws!==e.prototype.cleanRaws)r.cleanRaws(t);else if(i.prototype.cleanRaws.call(r,t),r.nodes)for(let e of r.nodes)n.push(e)}}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty()),!0}}}index(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0&&`prepend`,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(t,i){if(typeof t==`string`)t=d(c(t).nodes);else if(t===void 0)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type===`root`&&this.type!==`document`){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type)t=[t];else if(t.prop){if(t.value===void 0)throw Error(`Value field is missed in node creation`);typeof t.value!=`string`&&(t.value=String(t.value)),t=[new r(t)]}else if(t.selector||t.selectors)t=[new u(t)];else if(t.name)t=[new s(t)];else if(t.text)t=[new n(t)];else throw Error(`Unknown node type in node creation`);return t.map(t=>(t[o]||e.rebuild(t),t=t.proxyOf,t.parent&&t.parent.removeChild(t),t[a]&&f(t),t.raws||(t.raws={}),t.raws.before===void 0&&i&&i.raws.before!==void 0&&(t.raws.before=i.raws.before.replace(/\S/g,``)),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,`prepend`).reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{(!t.props||t.props.includes(r.prop))&&(!t.fast||r.value.includes(t.fast))&&(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:n,node:r}=t[t.length-1],i=r.indexes[n];if(i>=r.proxyOf.nodes.length){delete r.indexes[n],t.pop();let e=t[t.length-1];e&&(e.node.indexes[e.iterator]+=1);continue}let a=r.proxyOf.nodes[i],o;try{o=e(a,i)}catch(e){throw a.addToError(e)}if(o===!1){for(let e of t)delete e.node.indexes[e.iterator];return!1}a.walk&&a.proxyOf.nodes?t.push({iterator:a.getIterator(),node:a}):r.indexes[n]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}};
556
556
  /* c8 ignore start */
557
- p.registerParse=e=>{c=e},p.registerRule=e=>{u=e},p.registerAtRule=e=>{s=e},p.registerRoot=e=>{l=e},t.exports=p,p.default=p,p.rebuild=e=>{let t=[e];for(;t.length>0;){let e=t.pop();if(e.type===`atrule`?Object.setPrototypeOf(e,s.prototype):e.type===`rule`?Object.setPrototypeOf(e,u.prototype):e.type===`decl`?Object.setPrototypeOf(e,r.prototype):e.type===`comment`?Object.setPrototypeOf(e,n.prototype):e.type===`root`&&Object.setPrototypeOf(e,l.prototype),e[o]=!0,e.nodes)for(let n of e.nodes)t.push(n)}}})),oO=/* @__PURE__ */ a(((e,t)=>{let n=aO();var r=class extends n{constructor(e){super(e),this.type=`atrule`}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};t.exports=r,r.default=r,n.registerAtRule(r)})),sO=/* @__PURE__ */ a(((e,t)=>{let n=aO(),r,i;var a=class extends n{constructor(e){super({type:`document`,...e}),this.nodes||=[]}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a})),lje=/* @__PURE__ */ a(((e,t)=>{t.exports={nanoid:(e=21)=>{let t=``,n=e|0;for(;n-->0;)t+=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r=``,i=n|0;for(;i-->0;)r+=e[Math.random()*e.length|0];return r}}})),uje=/* @__PURE__ */ a((e=>{var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}})),dje=/* @__PURE__ */ a((e=>{var t=uje(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}e.encode=function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},e.decode=function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r}})),cO=/* @__PURE__ */ a((e=>{function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(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}e.urlGenerate=a;var o=32;function s(e){var t=[];return function(n){for(var r=0;r<t.length;r++)if(t[r].input===n){var i=t[0];return t[0]=t[r],t[r]=i,t[0].result}var a=e(n);return t.unshift({input:n,result:a}),t.length>o&&t.pop(),a}}var c=s(function(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=[],c=0,l=0;;){if(c=l,l=n.indexOf(`/`,c),l===-1){s.push(n.slice(c));break}for(s.push(n.slice(c,l));l<n.length&&n[l]===`/`;)l++}for(var u,d=0,l=s.length-1;l>=0;l--)u=s[l],u===`.`?s.splice(l,1):u===`..`?d++:d>0&&(u===``?(s.splice(l+1,d),d=0):(s.splice(l,2),d--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n});e.normalize=c;function l(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),o=i(e);if(o&&(e=o.path||`/`),n&&!n.scheme)return o&&(n.scheme=o.scheme),a(n);if(n||t.match(r))return t;if(o&&!o.host&&!o.path)return o.host=t,a(o);var s=t.charAt(0)===`/`?t:c(e.replace(/\/+$/,``)+`/`+t);return o?(o.path=s,a(o)):s}e.join=l,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function u(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=u;var d=function(){return!(`__proto__`in Object.create(null))}();function f(e){return e}function p(e){return h(e)?`$`+e:e}e.toSetString=d?f:p;function m(e){return h(e)?e.slice(1):e}e.fromSetString=d?f:m;function h(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 n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function g(e,t,n){var r=b(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositions=g;function _(e,t,n){var r=e.originalLine-t.originalLine;return r!==0||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositionsNoSource=_;function v(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflated=v;function y(e,t,n){var r=e.generatedColumn-t.generatedColumn;return r!==0||n||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflatedNoLine=y;function b(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function x(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=b(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:b(e.name,t.name)}e.compareByGeneratedPositionsInflated=x;function S(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}e.parseSourceMapInput=S;function C(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var o=r.path.lastIndexOf(`/`);o>=0&&(r.path=r.path.substring(0,o+1))}t=l(a(r),t)}return c(t)}e.computeSourceURL=C})),fje=/* @__PURE__ */ a((e=>{var t=cO(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?/* @__PURE__ */ new Map:Object.create(null)}i.fromArray=function(e,t){for(var n=new i,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},i.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,i){var a=r?e:t.toSetString(e),o=r?this.has(e):n.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(e),o||(r?this._set.set(e,s):this._set[a]=s)},i.prototype.has=function(e){if(r)return this._set.has(e);var i=t.toSetString(e);return n.call(this._set,i)},i.prototype.indexOf=function(e){if(r){var i=this._set.get(e);if(i>=0)return i}else{var a=t.toSetString(e);if(n.call(this._set,a))return this._set[a]}throw Error(`"`+e+`" is not in the set.`)},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i})),pje=/* @__PURE__ */ a((e=>{var t=cO();function n(e,n){var r=e.generatedLine,i=n.generatedLine,a=e.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||t.compareByGeneratedPositionsInflated(e,n)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},e.MappingList=r})),mje=/* @__PURE__ */ a((e=>{var t=dje(),n=cO(),r=fje().ArraySet,i=pje().MappingList;function a(e){e||={},this._file=n.getArg(e,`file`,null),this._sourceRoot=n.getArg(e,`sourceRoot`,null),this._skipValidation=n.getArg(e,`skipValidation`,!1),this._ignoreInvalidMapping=n.getArg(e,`ignoreInvalidMapping`,!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e,t){var r=e.sourceRoot,i=new a(Object.assign(t||{},{file:e.file,sourceRoot:r}));return e.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(t.source=e.source,r!=null&&(t.source=n.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(t.name=e.name)),i.addMapping(t)}),e.sources.forEach(function(t){var a=t;r!==null&&(a=n.relative(r,t)),i._sources.has(a)||i._sources.add(a);var o=e.sourceContentFor(t);o!=null&&i.setSourceContent(t,o)}),i},a.prototype.addMapping=function(e){var t=n.getArg(e,`generated`),r=n.getArg(e,`original`,null),i=n.getArg(e,`source`,null),a=n.getArg(e,`name`,null);(this._skipValidation||this._validateMapping(t,r,i,a)!==!1)&&(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a}))},a.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=n.relative(this._sourceRoot,r)),t==null?this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[n.toSetString(r)]=t)},a.prototype.applySourceMap=function(e,t,i){var a=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=n.relative(o,a));var s=new r,c=new r;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});r.source!=null&&(t.source=r.source,i!=null&&(t.source=n.join(i,t.source)),o!=null&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,r.name!=null&&(t.name=r.name))}var l=t.source;l!=null&&!s.has(l)&&s.add(l);var u=t.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r!=null&&(i!=null&&(t=n.join(i,t)),o!=null&&(t=n.relative(o,t)),this.setSourceContent(t,r))},this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`){var i=`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(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)){var i=`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r});if(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}},a.prototype._serializeMappings=function(){for(var e=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!n.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=t.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=t.encode(f-s),s=f,l+=t.encode(u.originalLine-1-a),a=u.originalLine-1,l+=t.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=t.encode(d-o),o=d)),c+=l}return c},a.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t!=null&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=a})),hje=/* @__PURE__ */ a((e=>{e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.search=function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o}})),gje=/* @__PURE__ */ a((e=>{function t(e){function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return Math.round(e+Math.random()*(t-e))}function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l,!1)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}return r}function n(e){let n=t.toString();return Function(`return ${n}`)()(e)}let r=/* @__PURE__ */ new WeakMap;e.quickSort=function(e,t,i=0){let a=r.get(t);a===void 0&&(a=n(t),r.set(t,a)),a(e,t,i,e.length-1)}})),_je=/* @__PURE__ */ a((e=>{var t=cO(),n=hje(),r=fje().ArraySet,i=dje(),a=gje().quickSort;function o(e,n){var r=e;return typeof e==`string`&&(r=t.parseSourceMapInput(e)),r.sections==null?new s(r,n):new d(r,n)}o.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},o.prototype._parseMappings=function(e,t){throw Error(`Subclasses must implement _parseMappings`)},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}for(var c=this.sourceRoot,l=e.bind(i),u=this._names,d=this._sources,f=this._sourceMapURL,p=0,m=s.length;p<m;p++){var h=s[p],g=h.source===null?null:d.at(h.source);g!==null&&(g=t.computeSourceURL(c,g,f)),l({source:g,generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:h.name===null?null:u.at(h.name)})}},o.prototype.allGeneratedPositionsFor=function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},e.SourceMapConsumer=o;function s(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),o=t.getArg(i,`sources`),s=t.getArg(i,`names`,[]),c=t.getArg(i,`sourceRoot`,null),l=t.getArg(i,`sourcesContent`,null),u=t.getArg(i,`mappings`),d=t.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=t.normalize(c),o=o.map(String).map(t.normalize).map(function(e){return c&&t.isAbsolute(c)&&t.isAbsolute(e)?t.relative(c,e):e}),this._names=r.fromArray(s.map(String),!0),this._sources=r.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(c,e,n)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=n,this.file=d}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(e){var n=e;if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(var r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1},s.fromSourceMap=function(e,n){var i=Object.create(s.prototype),o=i._names=r.fromArray(e._names.toArray(),!0),l=i._sources=r.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=n,i._absoluteSources=i._sources.toArray().map(function(e){return t.computeSourceURL(i.sourceRoot,e,n)});for(var u=e._mappings.toArray().slice(),d=i.__generatedMappings=[],f=i.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new c;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=o.indexOf(h.name)),f.push(g)),d.push(g)}return a(i.__originalMappings,t.compareByOriginalPositions),i},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let l=t.compareByGeneratedPositionsDeflatedNoLine;function u(e,t){let n=e.length,r=e.length-t;if(!(r<=1)){if(r==2){let n=e[t],r=e[t+1];l(n,r)>0&&(e[t]=r,e[t+1]=n)}else if(r<20)for(let r=t;r<n;r++)for(let n=r;n>t;n--){let t=e[n-1],r=e[n];if(l(t,r)<=0)break;e[n-1]=r,e[n]=t}else a(e,l,t)}}s.prototype._parseMappings=function(e,n){var r=1,o=0,s=0,l=0,d=0,f=0,p=e.length,m=0,h={},g=[],_=[],v,y,b,x;let S=0;for(;m<p;)if(e.charAt(m)===`;`)r++,m++,o=0,u(_,S),S=_.length;else if(e.charAt(m)===`,`)m++;else{for(v=new c,v.generatedLine=r,b=m;b<p&&!this._charIsMappingSeparator(e,b);b++);for(e.slice(m,b),y=[];m<b;)i.decode(e,m,h),x=h.value,m=h.rest,y.push(x);if(y.length===2)throw Error(`Found a source, but no line and column`);if(y.length===3)throw Error(`Found a source and line, but no column`);if(v.generatedColumn=o+y[0],o=v.generatedColumn,y.length>1&&(v.source=d+y[1],d+=y[1],v.originalLine=s+y[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+y[3],l=v.originalColumn,y.length>4&&(v.name=f+y[4],f+=y[4])),_.push(v),typeof v.originalLine==`number`){let e=v.source;for(;g.length<=e;)g.push(null);g[e]===null&&(g[e]=[]),g[e].push(v)}}u(_,S),this.__generatedMappings=_;for(var C=0;C<g.length;C++)g[C]!=null&&a(g[C],t.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...g)},s.prototype._findMapping=function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),a=t.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},s.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=t.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=t.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},s.prototype.generatedPositionFor=function(e){var n=t.getArg(e,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=s;function d(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),s=t.getArg(i,`sections`);if(a!=this._version)throw Error(`Unsupported version: `+a);this._sources=new r,this._names=new r;var c={line:-1,column:0};this._sections=s.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var r=t.getArg(e,`offset`),i=t.getArg(r,`line`),a=t.getArg(r,`column`);if(i<c.line||i===c.line&&a<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new o(t.getArg(e,`map`),n)}})}d.prototype=Object.create(o.prototype),d.prototype.constructor=o,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r||r===``)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},d.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);l!==null&&(l=t.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=d})),vje=/* @__PURE__ */ a((e=>{var t=mje().SourceMapGenerator,n=cO(),r=/(\r?\n)/,i=10,a=`$$$isSourceNode$$$`;function o(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[a]=!0,r!=null&&this.add(r)}o.fromStringWithSourceMap=function(e,t,i){var a=new o,s=e.split(r),c=0,l=function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},u=1,d=0,f=null;return t.eachMapping(function(e){if(f!==null){if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}}for(;u<e.generatedLine;)a.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;a.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),a.add(s.splice(c).join(``))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);r!=null&&(i!=null&&(e=n.join(i,e)),a.setSourceContent(e,r))}),a;function p(e,t){if(e===null||e.source===void 0)a.add(t);else{var r=i?n.join(i,e.source):e.source;a.add(new o(e.originalLine,e.originalColumn,r,t,e.name))}}},o.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[a]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[a]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},o.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},o.prototype.setSourceContent=function(e,t){this.sourceContents[n.toSetString(e)]=t},o.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},o.prototype.toString=function(){var e=``;return this.walk(function(t){e+=t}),e},o.prototype.toStringWithSourceMap=function(e){var n={code:``,line:1,column:0},r=new t(e),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(r.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===i?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:n.code,map:r}},e.SourceNode=o})),lO=/* @__PURE__ */ a((e=>{e.SourceMapGenerator=mje().SourceMapGenerator,e.SourceMapConsumer=_je().SourceMapConsumer,e.SourceNode=vje().SourceNode})),yje=/* @__PURE__ */ a(((e,n)=>{let{existsSync:r,readFileSync:i}=t(`fs`),{dirname:a,isAbsolute:o,join:s,relative:c,sep:l}=t(`path`),{SourceMapConsumer:u,SourceMapGenerator:d}=lO();function f(e){
557
+ p.registerParse=e=>{c=e},p.registerRule=e=>{u=e},p.registerAtRule=e=>{s=e},p.registerRoot=e=>{l=e},t.exports=p,p.default=p,p.rebuild=e=>{let t=[e];for(;t.length>0;){let e=t.pop();if(e.type===`atrule`?Object.setPrototypeOf(e,s.prototype):e.type===`rule`?Object.setPrototypeOf(e,u.prototype):e.type===`decl`?Object.setPrototypeOf(e,r.prototype):e.type===`comment`?Object.setPrototypeOf(e,n.prototype):e.type===`root`&&Object.setPrototypeOf(e,l.prototype),e[o]=!0,e.nodes)for(let n of e.nodes)t.push(n)}}})),sO=/* @__PURE__ */ a(((e,t)=>{let n=oO();var r=class extends n{constructor(e){super(e),this.type=`atrule`}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};t.exports=r,r.default=r,n.registerAtRule(r)})),cO=/* @__PURE__ */ a(((e,t)=>{let n=oO(),r,i;var a=class extends n{constructor(e){super({type:`document`,...e}),this.nodes||=[]}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a})),pje=/* @__PURE__ */ a(((e,t)=>{t.exports={nanoid:(e=21)=>{let t=``,n=e|0;for(;n-->0;)t+=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r=``,i=n|0;for(;i-->0;)r+=e[Math.random()*e.length|0];return r}}})),mje=/* @__PURE__ */ a((e=>{var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}})),hje=/* @__PURE__ */ a((e=>{var t=mje(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}e.encode=function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},e.decode=function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r}})),lO=/* @__PURE__ */ a((e=>{function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(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}e.urlGenerate=a;var o=32;function s(e){var t=[];return function(n){for(var r=0;r<t.length;r++)if(t[r].input===n){var i=t[0];return t[0]=t[r],t[r]=i,t[0].result}var a=e(n);return t.unshift({input:n,result:a}),t.length>o&&t.pop(),a}}var c=s(function(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=[],c=0,l=0;;){if(c=l,l=n.indexOf(`/`,c),l===-1){s.push(n.slice(c));break}for(s.push(n.slice(c,l));l<n.length&&n[l]===`/`;)l++}for(var u,d=0,l=s.length-1;l>=0;l--)u=s[l],u===`.`?s.splice(l,1):u===`..`?d++:d>0&&(u===``?(s.splice(l+1,d),d=0):(s.splice(l,2),d--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n});e.normalize=c;function l(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),o=i(e);if(o&&(e=o.path||`/`),n&&!n.scheme)return o&&(n.scheme=o.scheme),a(n);if(n||t.match(r))return t;if(o&&!o.host&&!o.path)return o.host=t,a(o);var s=t.charAt(0)===`/`?t:c(e.replace(/\/+$/,``)+`/`+t);return o?(o.path=s,a(o)):s}e.join=l,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function u(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=u;var d=function(){return!(`__proto__`in Object.create(null))}();function f(e){return e}function p(e){return h(e)?`$`+e:e}e.toSetString=d?f:p;function m(e){return h(e)?e.slice(1):e}e.fromSetString=d?f:m;function h(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 n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function g(e,t,n){var r=b(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositions=g;function _(e,t,n){var r=e.originalLine-t.originalLine;return r!==0||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositionsNoSource=_;function v(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflated=v;function y(e,t,n){var r=e.generatedColumn-t.generatedColumn;return r!==0||n||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflatedNoLine=y;function b(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function x(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=b(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:b(e.name,t.name)}e.compareByGeneratedPositionsInflated=x;function S(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}e.parseSourceMapInput=S;function C(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var o=r.path.lastIndexOf(`/`);o>=0&&(r.path=r.path.substring(0,o+1))}t=l(a(r),t)}return c(t)}e.computeSourceURL=C})),gje=/* @__PURE__ */ a((e=>{var t=lO(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?/* @__PURE__ */ new Map:Object.create(null)}i.fromArray=function(e,t){for(var n=new i,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},i.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,i){var a=r?e:t.toSetString(e),o=r?this.has(e):n.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(e),o||(r?this._set.set(e,s):this._set[a]=s)},i.prototype.has=function(e){if(r)return this._set.has(e);var i=t.toSetString(e);return n.call(this._set,i)},i.prototype.indexOf=function(e){if(r){var i=this._set.get(e);if(i>=0)return i}else{var a=t.toSetString(e);if(n.call(this._set,a))return this._set[a]}throw Error(`"`+e+`" is not in the set.`)},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i})),_je=/* @__PURE__ */ a((e=>{var t=lO();function n(e,n){var r=e.generatedLine,i=n.generatedLine,a=e.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||t.compareByGeneratedPositionsInflated(e,n)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},e.MappingList=r})),vje=/* @__PURE__ */ a((e=>{var t=hje(),n=lO(),r=gje().ArraySet,i=_je().MappingList;function a(e){e||={},this._file=n.getArg(e,`file`,null),this._sourceRoot=n.getArg(e,`sourceRoot`,null),this._skipValidation=n.getArg(e,`skipValidation`,!1),this._ignoreInvalidMapping=n.getArg(e,`ignoreInvalidMapping`,!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e,t){var r=e.sourceRoot,i=new a(Object.assign(t||{},{file:e.file,sourceRoot:r}));return e.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(t.source=e.source,r!=null&&(t.source=n.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(t.name=e.name)),i.addMapping(t)}),e.sources.forEach(function(t){var a=t;r!==null&&(a=n.relative(r,t)),i._sources.has(a)||i._sources.add(a);var o=e.sourceContentFor(t);o!=null&&i.setSourceContent(t,o)}),i},a.prototype.addMapping=function(e){var t=n.getArg(e,`generated`),r=n.getArg(e,`original`,null),i=n.getArg(e,`source`,null),a=n.getArg(e,`name`,null);(this._skipValidation||this._validateMapping(t,r,i,a)!==!1)&&(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a}))},a.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=n.relative(this._sourceRoot,r)),t==null?this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[n.toSetString(r)]=t)},a.prototype.applySourceMap=function(e,t,i){var a=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=n.relative(o,a));var s=new r,c=new r;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});r.source!=null&&(t.source=r.source,i!=null&&(t.source=n.join(i,t.source)),o!=null&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,r.name!=null&&(t.name=r.name))}var l=t.source;l!=null&&!s.has(l)&&s.add(l);var u=t.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r!=null&&(i!=null&&(t=n.join(i,t)),o!=null&&(t=n.relative(o,t)),this.setSourceContent(t,r))},this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`){var i=`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(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)){var i=`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r});if(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}},a.prototype._serializeMappings=function(){for(var e=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!n.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=t.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=t.encode(f-s),s=f,l+=t.encode(u.originalLine-1-a),a=u.originalLine-1,l+=t.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=t.encode(d-o),o=d)),c+=l}return c},a.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t!=null&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=a})),yje=/* @__PURE__ */ a((e=>{e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.search=function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o}})),bje=/* @__PURE__ */ a((e=>{function t(e){function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return Math.round(e+Math.random()*(t-e))}function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l,!1)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}return r}function n(e){let n=t.toString();return Function(`return ${n}`)()(e)}let r=/* @__PURE__ */ new WeakMap;e.quickSort=function(e,t,i=0){let a=r.get(t);a===void 0&&(a=n(t),r.set(t,a)),a(e,t,i,e.length-1)}})),xje=/* @__PURE__ */ a((e=>{var t=lO(),n=yje(),r=gje().ArraySet,i=hje(),a=bje().quickSort;function o(e,n){var r=e;return typeof e==`string`&&(r=t.parseSourceMapInput(e)),r.sections==null?new s(r,n):new d(r,n)}o.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},o.prototype._parseMappings=function(e,t){throw Error(`Subclasses must implement _parseMappings`)},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}for(var c=this.sourceRoot,l=e.bind(i),u=this._names,d=this._sources,f=this._sourceMapURL,p=0,m=s.length;p<m;p++){var h=s[p],g=h.source===null?null:d.at(h.source);g!==null&&(g=t.computeSourceURL(c,g,f)),l({source:g,generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:h.name===null?null:u.at(h.name)})}},o.prototype.allGeneratedPositionsFor=function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},e.SourceMapConsumer=o;function s(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),o=t.getArg(i,`sources`),s=t.getArg(i,`names`,[]),c=t.getArg(i,`sourceRoot`,null),l=t.getArg(i,`sourcesContent`,null),u=t.getArg(i,`mappings`),d=t.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=t.normalize(c),o=o.map(String).map(t.normalize).map(function(e){return c&&t.isAbsolute(c)&&t.isAbsolute(e)?t.relative(c,e):e}),this._names=r.fromArray(s.map(String),!0),this._sources=r.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(c,e,n)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=n,this.file=d}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(e){var n=e;if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(var r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1},s.fromSourceMap=function(e,n){var i=Object.create(s.prototype),o=i._names=r.fromArray(e._names.toArray(),!0),l=i._sources=r.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=n,i._absoluteSources=i._sources.toArray().map(function(e){return t.computeSourceURL(i.sourceRoot,e,n)});for(var u=e._mappings.toArray().slice(),d=i.__generatedMappings=[],f=i.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new c;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=o.indexOf(h.name)),f.push(g)),d.push(g)}return a(i.__originalMappings,t.compareByOriginalPositions),i},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let l=t.compareByGeneratedPositionsDeflatedNoLine;function u(e,t){let n=e.length,r=e.length-t;if(!(r<=1)){if(r==2){let n=e[t],r=e[t+1];l(n,r)>0&&(e[t]=r,e[t+1]=n)}else if(r<20)for(let r=t;r<n;r++)for(let n=r;n>t;n--){let t=e[n-1],r=e[n];if(l(t,r)<=0)break;e[n-1]=r,e[n]=t}else a(e,l,t)}}s.prototype._parseMappings=function(e,n){var r=1,o=0,s=0,l=0,d=0,f=0,p=e.length,m=0,h={},g=[],_=[],v,y,b,x;let S=0;for(;m<p;)if(e.charAt(m)===`;`)r++,m++,o=0,u(_,S),S=_.length;else if(e.charAt(m)===`,`)m++;else{for(v=new c,v.generatedLine=r,b=m;b<p&&!this._charIsMappingSeparator(e,b);b++);for(e.slice(m,b),y=[];m<b;)i.decode(e,m,h),x=h.value,m=h.rest,y.push(x);if(y.length===2)throw Error(`Found a source, but no line and column`);if(y.length===3)throw Error(`Found a source and line, but no column`);if(v.generatedColumn=o+y[0],o=v.generatedColumn,y.length>1&&(v.source=d+y[1],d+=y[1],v.originalLine=s+y[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+y[3],l=v.originalColumn,y.length>4&&(v.name=f+y[4],f+=y[4])),_.push(v),typeof v.originalLine==`number`){let e=v.source;for(;g.length<=e;)g.push(null);g[e]===null&&(g[e]=[]),g[e].push(v)}}u(_,S),this.__generatedMappings=_;for(var C=0;C<g.length;C++)g[C]!=null&&a(g[C],t.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...g)},s.prototype._findMapping=function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),a=t.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},s.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=t.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=t.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},s.prototype.generatedPositionFor=function(e){var n=t.getArg(e,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=s;function d(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),s=t.getArg(i,`sections`);if(a!=this._version)throw Error(`Unsupported version: `+a);this._sources=new r,this._names=new r;var c={line:-1,column:0};this._sections=s.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var r=t.getArg(e,`offset`),i=t.getArg(r,`line`),a=t.getArg(r,`column`);if(i<c.line||i===c.line&&a<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new o(t.getArg(e,`map`),n)}})}d.prototype=Object.create(o.prototype),d.prototype.constructor=o,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r||r===``)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},d.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);l!==null&&(l=t.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=d})),Sje=/* @__PURE__ */ a((e=>{var t=vje().SourceMapGenerator,n=lO(),r=/(\r?\n)/,i=10,a=`$$$isSourceNode$$$`;function o(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[a]=!0,r!=null&&this.add(r)}o.fromStringWithSourceMap=function(e,t,i){var a=new o,s=e.split(r),c=0,l=function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},u=1,d=0,f=null;return t.eachMapping(function(e){if(f!==null){if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}}for(;u<e.generatedLine;)a.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;a.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),a.add(s.splice(c).join(``))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);r!=null&&(i!=null&&(e=n.join(i,e)),a.setSourceContent(e,r))}),a;function p(e,t){if(e===null||e.source===void 0)a.add(t);else{var r=i?n.join(i,e.source):e.source;a.add(new o(e.originalLine,e.originalColumn,r,t,e.name))}}},o.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[a]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[a]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},o.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},o.prototype.setSourceContent=function(e,t){this.sourceContents[n.toSetString(e)]=t},o.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},o.prototype.toString=function(){var e=``;return this.walk(function(t){e+=t}),e},o.prototype.toStringWithSourceMap=function(e){var n={code:``,line:1,column:0},r=new t(e),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(r.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===i?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:n.code,map:r}},e.SourceNode=o})),uO=/* @__PURE__ */ a((e=>{e.SourceMapGenerator=vje().SourceMapGenerator,e.SourceMapConsumer=xje().SourceMapConsumer,e.SourceNode=Sje().SourceNode})),Cje=/* @__PURE__ */ a(((e,n)=>{let{existsSync:r,readFileSync:i}=t(`fs`),{dirname:a,isAbsolute:o,join:s,relative:c,sep:l}=t(`path`),{SourceMapConsumer:u,SourceMapGenerator:d}=uO();function f(e){
558
558
  /* c8 ignore next 2 */
559
559
  return Buffer?Buffer.from(e,`base64`).toString():window.atob(e)}var p=class{constructor(e,t){if(t.map===!1)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=a(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||=new u(this.json||this.text),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,r=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(r)return decodeURIComponent(e.substr(r[0].length));let i=e.match(t)||e.match(n);if(i)return f(e.substr(i[0].length));let a=e.slice(22);throw a=a.slice(0,a.indexOf(`,`)),Error(`Unsupported source map encoding `+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()}isMap(e){return typeof e==`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e,t,n){if(!n&&!this.unsafeMap){if(!/\.map$/i.test(e)||!t)return;let n=c(a(t),e);if(n===`..`||n.startsWith(`..`+l)||o(n))return}if(this.root=a(e),r(e))return this.mapFile=e,i(e,`utf-8`).toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t==`string`)return t;if(typeof t==`function`){let n=t(e);if(n){let t=this.loadFile(n,e,!0);if(!t)throw Error(`Unable to load previous source map: `+n.toString());return t}}else if(t instanceof u)return d.fromSourceMap(t).toString();else if(t instanceof d)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;e&&(t=s(a(e),t));let n=this.loadFile(t,e,!1);if(n)try{
560
560
  /* c8 ignore next 4 */
561
- this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,``))}catch{return}return n}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};n.exports=p,p.default=p})),uO=/* @__PURE__ */ a(((e,n)=>{let{nanoid:r}=lje(),{isAbsolute:i,resolve:a}=t(`path`),{SourceMapConsumer:o,SourceMapGenerator:s}=lO(),{fileURLToPath:c,pathToFileURL:l}=t(`url`),u=$D(),d=yje(),f=sje(),p=Symbol(`lineToIndexCache`),m=!!(o&&s),h=!!(a&&i);function g(e){if(e[p])return e[p];let t=e.css.split(`
561
+ this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,``))}catch{return}return n}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};n.exports=p,p.default=p})),dO=/* @__PURE__ */ a(((e,n)=>{let{nanoid:r}=pje(),{isAbsolute:i,resolve:a}=t(`path`),{SourceMapConsumer:o,SourceMapGenerator:s}=uO(),{fileURLToPath:c,pathToFileURL:l}=t(`url`),u=eO(),d=Cje(),f=dje(),p=Symbol(`lineToIndexCache`),m=!!(o&&s),h=!!(a&&i);function g(e){if(e[p])return e[p];let t=e.css.split(`
562
562
  `),n=Array(t.length),r=0;for(let e=0,i=t.length;e<i;e++)n[e]=r,r+=t[e].length+1;return e[p]=n,n}var _=class{get from(){return this.file||this.id}constructor(e,t={}){if(e==null||typeof e==`object`&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(this.file=!h||/^\w+:\/\//.test(t.from)||i(t.from)?t.from:a(t.from)),h&&m){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=`<input css `+r(6)+`>`),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,a,o,s,c;if(t&&typeof t==`object`){let e=t,r=n;if(typeof e.offset==`number`){s=e.offset;let r=this.fromOffset(s);t=r.line,n=r.col}else t=e.line,n=e.column,s=this.fromLineAndColumn(t,n);if(typeof r.offset==`number`){o=r.offset;let e=this.fromOffset(o);a=e.line,i=e.col}else a=r.line,i=r.column,o=this.fromLineAndColumn(r.line,r.column)}else if(n)s=this.fromLineAndColumn(t,n);else{s=t;let e=this.fromOffset(s);t=e.line,n=e.col}let d=this.origin(t,n,a,i);return c=d?new u(e,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,r.plugin):new u(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:i,line:a},this.css,this.file,r.plugin),c.input={column:n,endColumn:i,endLine:a,endOffset:o,line:t,offset:s,source:this.css},this.file&&(l&&(c.input.url=l(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return g(this)[e-1]+t-1}fromOffset(e){let t=g(this),n=t[t.length-1],r=0;if(e>=n)r=t.length-1;else{let n=t.length-2,i;for(;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||`.`,e)}origin(e,t,n,r){if(!this.map)return!1;let a=this.map.consumer(),o=a.originalPositionFor({column:t-1,line:e});if(!o.source)return!1;let s;if(typeof n==`number`){let e=a.originalPositionFor({column:r-1,line:n});e.source&&(s=e)}let u;u=i(o.source)?l(o.source):new URL(o.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let d={column:o.column+1,endColumn:s&&s.column+1,endLine:s&&s.line,line:o.line,url:u.toString()};if(u.protocol===`file:`){if(c)d.file=c(u);else
563
563
  /* c8 ignore next 2 */
564
- throw Error(`file: protocol is not available in this PostCSS build`)}let f=a.sourceContentFor(o.source);return f&&(d.source=f),d}toJSON(){let e={};for(let t of[`hasBOM`,`css`,`file`,`id`])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};n.exports=_,_.default=_,f&&f.registerInput&&f.registerInput(_)})),dO=/* @__PURE__ */ a(((e,t)=>{let n=aO(),r,i;var a=class extends n{constructor(e){super(e),this.type=`root`,this.nodes||=[]}normalize(e,t,n){let r=/* @__PURE__ */ new Set;for(let t of Array.isArray(e)?e:[e])t&&typeof t==`object`&&!t.parent&&t.raws&&t.raws.before!==void 0&&r.add(t.raws);let i=super.normalize(e);if(t){if(n===`prepend`)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)r.has(e.raws)||(e.raws.before=t.raws.before)}return i}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a,n.registerRoot(a)})),bje=/* @__PURE__ */ a(((e,t)=>{let n={comma(e){return n.split(e,[`,`],!0)},space(e){return n.split(e,[` `,`
565
- `,` `])},split(e,t,n){let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1;for(let n of e)l?l=!1:n===`\\`?l=!0:s?n===c&&(s=!1):n===`"`||n===`'`?(s=!0,c=n):n===`(`?o+=1:n===`)`?o>0&&--o:o===0&&t.includes(n)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=n;return(n||i!==``)&&r.push(i.trim()),r}};t.exports=n,n.default=n})),fO=/* @__PURE__ */ a(((e,t)=>{let n=aO(),r=bje();var i=class extends n{get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}constructor(e){super(e),this.type=`rule`,this.nodes||=[]}};t.exports=i,i.default=i,n.registerRule(i)})),xje=/* @__PURE__ */ a(((e,t)=>{let n=oO(),r=rO(),i=iO(),a=uO(),o=yje(),s=dO(),c=fO();function l(e,t){return e.inputs?e.inputs.map(e=>{let t={...e,__proto__:a.prototype};return t.map&&={...t.map,__proto__:o.prototype},t}):t}function u(e,t,a){let o={...e};if(delete o.inputs,delete o.nodes,o.source){let{inputId:e,...n}=o.source;o.source=n,e!=null&&(o.source.input=t[e])}let l;if(o.type===`root`)l=new s(o);else if(o.type===`decl`)l=new i(o);else if(o.type===`rule`)l=new c(o);else if(o.type===`comment`)l=new r(o);else if(o.type===`atrule`)l=new n(o);else throw Error(`Unknown node type: `+e.type);if(a){l.nodes=a;for(let e of a)e.parent=l}return l}function d(e,t){if(Array.isArray(e))return e.map(e=>d(e));let n,r=[{childIndex:0,children:[],inputs:l(e,t),json:e}];for(;r.length>0;){let e=r[r.length-1],t=e.json.nodes;if(t&&e.childIndex<t.length){let n=t[e.childIndex];e.childIndex+=1,r.push({childIndex:0,children:[],inputs:l(n,e.inputs),json:n});continue}r.pop();let i=u(e.json,e.inputs,t?e.children:void 0);r.length>0?r[r.length-1].children.push(i):n=i}return n}t.exports=d,d.default=d})),Sje=/* @__PURE__ */ a(((e,n)=>{let{dirname:r,relative:i,resolve:a,sep:o}=t(`path`),{SourceMapConsumer:s,SourceMapGenerator:c}=lO(),{pathToFileURL:l}=t(`url`),u=uO(),d=!!(s&&c),f=!!(r&&a&&i&&o);n.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=/* @__PURE__ */ new Map,this.memoizedPaths=/* @__PURE__ */ new Map,this.memoizedURLs=/* @__PURE__ */ new Map}addAnnotation(){let e;e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`;let t=`
564
+ throw Error(`file: protocol is not available in this PostCSS build`)}let f=a.sourceContentFor(o.source);return f&&(d.source=f),d}toJSON(){let e={};for(let t of[`hasBOM`,`css`,`file`,`id`])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};n.exports=_,_.default=_,f&&f.registerInput&&f.registerInput(_)})),fO=/* @__PURE__ */ a(((e,t)=>{let n=oO(),r,i;var a=class extends n{constructor(e){super(e),this.type=`root`,this.nodes||=[]}normalize(e,t,n){let r=/* @__PURE__ */ new Set;for(let t of Array.isArray(e)?e:[e])t&&typeof t==`object`&&!t.parent&&t.raws&&t.raws.before!==void 0&&r.add(t.raws);let i=super.normalize(e);if(t){if(n===`prepend`)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)r.has(e.raws)||(e.raws.before=t.raws.before)}return i}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a,n.registerRoot(a)})),wje=/* @__PURE__ */ a(((e,t)=>{let n={comma(e){return n.split(e,[`,`],!0)},space(e){return n.split(e,[` `,`
565
+ `,` `])},split(e,t,n){let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1;for(let n of e)l?l=!1:n===`\\`?l=!0:s?n===c&&(s=!1):n===`"`||n===`'`?(s=!0,c=n):n===`(`?o+=1:n===`)`?o>0&&--o:o===0&&t.includes(n)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=n;return(n||i!==``)&&r.push(i.trim()),r}};t.exports=n,n.default=n})),pO=/* @__PURE__ */ a(((e,t)=>{let n=oO(),r=wje();var i=class extends n{get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}constructor(e){super(e),this.type=`rule`,this.nodes||=[]}};t.exports=i,i.default=i,n.registerRule(i)})),Tje=/* @__PURE__ */ a(((e,t)=>{let n=sO(),r=iO(),i=aO(),a=dO(),o=Cje(),s=fO(),c=pO();function l(e,t){return e.inputs?e.inputs.map(e=>{let t={...e,__proto__:a.prototype};return t.map&&={...t.map,__proto__:o.prototype},t}):t}function u(e,t,a){let o={...e};if(delete o.inputs,delete o.nodes,o.source){let{inputId:e,...n}=o.source;o.source=n,e!=null&&(o.source.input=t[e])}let l;if(o.type===`root`)l=new s(o);else if(o.type===`decl`)l=new i(o);else if(o.type===`rule`)l=new c(o);else if(o.type===`comment`)l=new r(o);else if(o.type===`atrule`)l=new n(o);else throw Error(`Unknown node type: `+e.type);if(a){l.nodes=a;for(let e of a)e.parent=l}return l}function d(e,t){if(Array.isArray(e))return e.map(e=>d(e));let n,r=[{childIndex:0,children:[],inputs:l(e,t),json:e}];for(;r.length>0;){let e=r[r.length-1],t=e.json.nodes;if(t&&e.childIndex<t.length){let n=t[e.childIndex];e.childIndex+=1,r.push({childIndex:0,children:[],inputs:l(n,e.inputs),json:n});continue}r.pop();let i=u(e.json,e.inputs,t?e.children:void 0);r.length>0?r[r.length-1].children.push(i):n=i}return n}t.exports=d,d.default=d})),Eje=/* @__PURE__ */ a(((e,n)=>{let{dirname:r,relative:i,resolve:a,sep:o}=t(`path`),{SourceMapConsumer:s,SourceMapGenerator:c}=uO(),{pathToFileURL:l}=t(`url`),u=dO(),d=!!(s&&c),f=!!(r&&a&&i&&o);n.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=/* @__PURE__ */ new Map,this.memoizedPaths=/* @__PURE__ */ new Map,this.memoizedURLs=/* @__PURE__ */ new Map}addAnnotation(){let e;e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`;let t=`
566
566
  `;this.css.includes(`\r
567
567
  `)&&(t=`\r
568
568
  `),this.css+=t+`/*# sourceMappingURL=`+e+` */`}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||r(e.file),i;this.mapOpts.sourcesContent===!1?(i=new s(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.startsWith(`# sourceMappingURL=`)&&this.root.removeChild(t)}else if(this.css){let e;for(;(e=this.css.lastIndexOf(`/*#`))!==-1;){let t=this.css.indexOf(`*/`,e+3);if(t===-1)break;for(;e>0&&this.css[e-1]===`
569
569
  `;)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}}generate(){if(this.clearAnnotation(),f&&d&&this.isMap())return this.generateMap();{let e=``;return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=c.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css=``,this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,n=`<no source>`,r={generated:{column:0,line:0},original:{column:0,line:0},source:``},i,a;this.stringify(this.root,(o,s,c)=>{if(this.css+=o,s&&c!==`end`&&(r.generated.line=e,r.generated.column=t-1,s.source&&s.source.start?(r.source=this.sourcePath(s),r.original.line=s.source.start.line,r.original.column=s.source.start.column-1,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,this.map.addMapping(r))),a=o.match(/\n/g),a?(e+=a.length,i=o.lastIndexOf(`
570
- `),t=o.length-i):t+=o.length,s&&c!==`start`){let i=s.parent||{raws:{}};(!(s.type===`decl`||s.type===`atrule`&&!s.nodes)||s!==i.last||i.raws.semicolon)&&(s.source&&s.source.end?(r.source=this.sourcePath(s),r.original.line=s.source.end.line,r.original.column=s.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:this.mapOpts.annotation===void 0?!this.previous().length||this.previous().some(e=>e.annotation):this.mapOpts.annotation}isInline(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;let e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:!this.previous().length||this.previous().some(e=>e.inline)}isMap(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map}isSourcesContent(){return this.mapOpts.sourcesContent===void 0?!this.previous().length||this.previous().some(e=>e.withContent()):this.mapOpts.sourcesContent}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?r(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(n=r(a(n,this.mapOpts.annotation)));let o=i(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(l){let t=l(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;o===`\\`&&(e=e.replace(/\\/g,`/`));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}})),Cje=/* @__PURE__ */ a(((e,t)=>{let n=oO(),r=rO(),i=iO(),a=dO(),o=fO(),s=oje(),c={empty:!0,space:!0};function l(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}function u(e,t,n){let r=``;for(let i=t;i<n;i++)r+=e[i][1];return r}t.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new n;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r===`(`||r===`[`?l.push(r===`(`?`)`:`]`):r===`{`&&l.length>0?l.push(`}`):r===l[l.length-1]&&l.pop(),l.length===0){if(r===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if(r===`{`){s=!0;break}if(r===`}`){if(c.length>0){for(a=c.length-1,i=c[a];i&&i[0]===`space`;)i=c[--a];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}c.push(e)}else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(t.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(t,`params`,c),o&&(e=c[c.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),s&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[a,o]of e.entries()){if(r=o,i=r[0],i===`(`&&(t+=1),i===`)`&&--t,t===0&&i===`:`){if(!n)this.doubleColon(r);else if(n[0]===`word`&&n[1]===`progid`)continue;else return a}n=r}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(!n.trim())t.text=``,t.raws.left=n,t.raws.right=``;else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(e,t){let n=new i;this.init(n,e[0][2]);let r=e[e.length-1];r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||l(e)),n.source.end.offset++;let a=0;for(;e[a][0]!==`word`;)a===e.length-1&&this.unknownWord([e[a]]),a++;n.raws.before+=u(e,0,a),n.source.start=this.getPosition(e[a][2]);let o=a;for(;a<e.length;){let t=e[a][0];if(t===`:`||t===`space`||t===`comment`)break;a++}n.prop=u(e,o,a);let s=a,c;for(;a<e.length&&(c=e[a],a++,c[0]!==`:`);)c[0]===`word`&&/\w/.test(c[1])&&this.unknownWord([c]);n.raws.between=u(e,s,a),(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let d=a;for(;a<e.length;){let t=e[a][0];if(t!==`space`&&t!==`comment`)break;a++}let f=e.slice(d,a);e=e.slice(a),this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(c=e[t],c[1].toLowerCase()===`!important`){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r,r!==` !important`&&(n.raws.important=r);break}if(c[1].toLowerCase()===`important`){let r=e.slice(0),i=``;for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith(`!`)&&t!==`space`)break;i=r.pop()[1]+i}i.trim().startsWith(`!`)&&(n.important=!0,n.raws.important=i,e=r)}if(c[0]!==`space`&&c[0]!==`comment`)break}e.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(n.raws.between+=f.map(e=>e[1]).join(``),f=[]),this.raw(n,`value`,f.concat(e),t),n.value.includes(`:`)&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new o;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.spaces=``,this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type===`rule`&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=``,t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0){if(n===`;`){if(r){this.decl(s,o);return}break}if(n===`{`){this.rule(s);return}if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}n===`:`&&(r=!0)}else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],c===`space`||c===`comment`);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,a,o=n.length,s=``,l=!0,u,d;for(let e=0;e<o;e+=1)i=n[e],a=i[0],a===`space`&&e===o-1&&!r?l=!1:a===`comment`?(d=n[e-1]?n[e-1][0]:`empty`,u=n[e+1]?n[e+1][0]:`empty`,!c[d]&&!c[u]?s.slice(-1)===`,`?l=!1:s+=i[1]:l=!1):s+=i[1];if(!l){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:s}}e[t]=s}rule(e){e.pop();let t=new o;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`||t===`comment`);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=``;for(;e.length&&(t=e[0][0],t===`space`||t===`comment`);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=``;for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error(`Unclosed block`,e.line,e.column)}unclosedBracket(e){throw this.input.error(`Unclosed bracket`,{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error(`Unexpected }`,{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error(`Unknown word `+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})}}})),pO=/* @__PURE__ */ a(((e,t)=>{let n=aO(),r=uO(),i=Cje();function a(e,t){let n=new r(e,t),a=new i(n);try{a.parse()}catch(e){throw e}return a.root}t.exports=a,a.default=a,n.registerParse(a)})),wje=/* @__PURE__ */ a(((e,t)=>{let n=aO(),{my:r}=tO();var i=class{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){t.node[r]||n.rebuild(t.node);let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text}};t.exports=i,i.default=i})),mO=/* @__PURE__ */ a(((e,t)=>{let n=wje();var r=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=``,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}};t.exports=r,r.default=r})),Tje=/* @__PURE__ */ a(((e,t)=>{let n={};t.exports=function(e){n[e]||(n[e]=!0,typeof console<`u`&&console.warn&&console.warn(e))}})),Eje=/* @__PURE__ */ a(((e,t)=>{let n=aO(),r=sO(),i=Sje(),a=pO(),o=mO(),s=dO(),c=eO(),{isClean:l,my:u}=tO();Tje();let d={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0};function m(e){return typeof e==`object`&&typeof e.then==`function`}function h(e){let t=!1,n=d[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,0,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,0,n+`Exit`]:[n,n+`Exit`]}function g(e){let t;return t=e.type===`document`?[`Document`,0,`DocumentExit`]:e.type===`root`?[`Root`,0,`RootExit`]:h(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function _(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[l]=!1,e.nodes)for(let n of e.nodes)t.push(n)}return e}let v={};var y=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return`LazyResult`}constructor(t,r,i){this.stringified=!1,this.processed=!1;let s;if(typeof r==`object`&&r&&(r.type===`root`||r.type===`document`))s=_(r);else if(r instanceof e||r instanceof o)s=_(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[u]&&
570
+ `),t=o.length-i):t+=o.length,s&&c!==`start`){let i=s.parent||{raws:{}};(!(s.type===`decl`||s.type===`atrule`&&!s.nodes)||s!==i.last||i.raws.semicolon)&&(s.source&&s.source.end?(r.source=this.sourcePath(s),r.original.line=s.source.end.line,r.original.column=s.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:this.mapOpts.annotation===void 0?!this.previous().length||this.previous().some(e=>e.annotation):this.mapOpts.annotation}isInline(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;let e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:!this.previous().length||this.previous().some(e=>e.inline)}isMap(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map}isSourcesContent(){return this.mapOpts.sourcesContent===void 0?!this.previous().length||this.previous().some(e=>e.withContent()):this.mapOpts.sourcesContent}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?r(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(n=r(a(n,this.mapOpts.annotation)));let o=i(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(l){let t=l(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;o===`\\`&&(e=e.replace(/\\/g,`/`));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}})),Dje=/* @__PURE__ */ a(((e,t)=>{let n=sO(),r=iO(),i=aO(),a=fO(),o=pO(),s=uje(),c={empty:!0,space:!0};function l(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}function u(e,t,n){let r=``;for(let i=t;i<n;i++)r+=e[i][1];return r}t.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new n;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r===`(`||r===`[`?l.push(r===`(`?`)`:`]`):r===`{`&&l.length>0?l.push(`}`):r===l[l.length-1]&&l.pop(),l.length===0){if(r===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if(r===`{`){s=!0;break}if(r===`}`){if(c.length>0){for(a=c.length-1,i=c[a];i&&i[0]===`space`;)i=c[--a];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}c.push(e)}else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(t.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(t,`params`,c),o&&(e=c[c.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),s&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[a,o]of e.entries()){if(r=o,i=r[0],i===`(`&&(t+=1),i===`)`&&--t,t===0&&i===`:`){if(!n)this.doubleColon(r);else if(n[0]===`word`&&n[1]===`progid`)continue;else return a}n=r}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(!n.trim())t.text=``,t.raws.left=n,t.raws.right=``;else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(e,t){let n=new i;this.init(n,e[0][2]);let r=e[e.length-1];r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||l(e)),n.source.end.offset++;let a=0;for(;e[a][0]!==`word`;)a===e.length-1&&this.unknownWord([e[a]]),a++;n.raws.before+=u(e,0,a),n.source.start=this.getPosition(e[a][2]);let o=a;for(;a<e.length;){let t=e[a][0];if(t===`:`||t===`space`||t===`comment`)break;a++}n.prop=u(e,o,a);let s=a,c;for(;a<e.length&&(c=e[a],a++,c[0]!==`:`);)c[0]===`word`&&/\w/.test(c[1])&&this.unknownWord([c]);n.raws.between=u(e,s,a),(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let d=a;for(;a<e.length;){let t=e[a][0];if(t!==`space`&&t!==`comment`)break;a++}let f=e.slice(d,a);e=e.slice(a),this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(c=e[t],c[1].toLowerCase()===`!important`){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r,r!==` !important`&&(n.raws.important=r);break}if(c[1].toLowerCase()===`important`){let r=e.slice(0),i=``;for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith(`!`)&&t!==`space`)break;i=r.pop()[1]+i}i.trim().startsWith(`!`)&&(n.important=!0,n.raws.important=i,e=r)}if(c[0]!==`space`&&c[0]!==`comment`)break}e.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(n.raws.between+=f.map(e=>e[1]).join(``),f=[]),this.raw(n,`value`,f.concat(e),t),n.value.includes(`:`)&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new o;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.spaces=``,this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type===`rule`&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=``,t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0){if(n===`;`){if(r){this.decl(s,o);return}break}if(n===`{`){this.rule(s);return}if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}n===`:`&&(r=!0)}else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],c===`space`||c===`comment`);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,a,o=n.length,s=``,l=!0,u,d;for(let e=0;e<o;e+=1)i=n[e],a=i[0],a===`space`&&e===o-1&&!r?l=!1:a===`comment`?(d=n[e-1]?n[e-1][0]:`empty`,u=n[e+1]?n[e+1][0]:`empty`,!c[d]&&!c[u]?s.slice(-1)===`,`?l=!1:s+=i[1]:l=!1):s+=i[1];if(!l){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:s}}e[t]=s}rule(e){e.pop();let t=new o;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`||t===`comment`);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=``;for(;e.length&&(t=e[0][0],t===`space`||t===`comment`);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=``;for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error(`Unclosed block`,e.line,e.column)}unclosedBracket(e){throw this.input.error(`Unclosed bracket`,{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error(`Unexpected }`,{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error(`Unknown word `+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})}}})),mO=/* @__PURE__ */ a(((e,t)=>{let n=oO(),r=dO(),i=Dje();function a(e,t){let n=new r(e,t),a=new i(n);try{a.parse()}catch(e){throw e}return a.root}t.exports=a,a.default=a,n.registerParse(a)})),Oje=/* @__PURE__ */ a(((e,t)=>{let n=oO(),{my:r}=nO();var i=class{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){t.node[r]||n.rebuild(t.node);let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text}};t.exports=i,i.default=i})),hO=/* @__PURE__ */ a(((e,t)=>{let n=Oje();var r=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=``,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}};t.exports=r,r.default=r})),kje=/* @__PURE__ */ a(((e,t)=>{let n={};t.exports=function(e){n[e]||(n[e]=!0,typeof console<`u`&&console.warn&&console.warn(e))}})),Aje=/* @__PURE__ */ a(((e,t)=>{let n=oO(),r=cO(),i=Eje(),a=mO(),o=hO(),s=fO(),c=tO(),{isClean:l,my:u}=nO();kje();let d={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0};function m(e){return typeof e==`object`&&typeof e.then==`function`}function h(e){let t=!1,n=d[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,0,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,0,n+`Exit`]:[n,n+`Exit`]}function g(e){let t;return t=e.type===`document`?[`Document`,0,`DocumentExit`]:e.type===`root`?[`Root`,0,`RootExit`]:h(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function _(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[l]=!1,e.nodes)for(let n of e.nodes)t.push(n)}return e}let v={};var y=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return`LazyResult`}constructor(t,r,i){this.stringified=!1,this.processed=!1;let s;if(typeof r==`object`&&r&&(r.type===`root`||r.type===`document`))s=_(r);else if(r instanceof e||r instanceof o)s=_(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[u]&&
571
571
  /* c8 ignore next 2 */
572
572
  n.rebuild(s)}this.result=new o(t,s,i),this.helpers={...v,postcss:v,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(e){
573
573
  /* c8 ignore next 3 */
574
- console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!f[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n]){if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(m(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[g(e)];for(;t.length>0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=this.result.root.source;if(e.map===void 0&&!(n&&n.input&&n.input.map)){let e=``;return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let r=new i(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(m(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!0,this.walkSync(e);if(this.listeners.OnceExit){if(e.type===`document`)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator,i;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[l]){i[l]=!0,e.push(g(i));return}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===0){n.nodes&&n.nodes.length&&(n[l]=!0,t.iterator=n.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[l]=!0;let t=[{eventIndex:0,events:h(e),iterator:0,node:e}];for(;t.length>0;){let e=t[t.length-1],n=e.node;if(e.iterator!==0){let r=e.iterator,i,a=!1;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[l]){i[l]=!0,t.push({eventIndex:0,events:h(i),iterator:0,node:i}),a=!0;break}if(a)continue;e.iterator=0,delete n.indexes[r]}if(e.eventIndex<e.events.length){let r=e.events[e.eventIndex];if(e.eventIndex+=1,r===0)n.nodes&&n.nodes.length&&(e.iterator=n.getIterator());else{let e=this.listeners[r];e&&this.visitSync(e,n.toProxy())&&t.pop()}}else t.pop()}}warnings(){return this.sync().warnings()}};y.registerPostcss=e=>{v=e},t.exports=y,y.default=y,s.registerLazyResult(y),r.registerLazyResult(y)})),Dje=/* @__PURE__ */ a(((e,t)=>{let n=Sje(),r=pO(),i=mO(),a=eO();Tje();var o=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let o=a;this.result=new i(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let c=new n(o,void 0,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};t.exports=o,o.default=o})),Oje=/* @__PURE__ */ a(((e,t)=>{let n=sO(),r=Eje(),i=Dje(),a=dO();var o=class{constructor(e=[]){this.version=`8.5.23`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(typeof n!=`object`||!n.parse&&!n.stringify)throw Error(n+` is not a PostCSS plugin`);return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,a.registerProcessor(o),n.registerProcessor(o)})),hO=/* @__PURE__ */ r((/* @__PURE__ */ a(((e,t)=>{let n=oO(),r=rO(),i=aO(),a=$D(),o=iO(),s=sO(),c=xje(),l=uO(),u=Eje(),d=bje(),f=nO(),p=pO(),m=Oje(),h=mO(),g=dO(),_=fO(),v=eO(),y=wje();function b(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new m(e)}b.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
574
+ console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!f[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n]){if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(m(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[g(e)];for(;t.length>0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=this.result.root.source;if(e.map===void 0&&!(n&&n.input&&n.input.map)){let e=``;return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let r=new i(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(m(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!0,this.walkSync(e);if(this.listeners.OnceExit){if(e.type===`document`)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator,i;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[l]){i[l]=!0,e.push(g(i));return}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===0){n.nodes&&n.nodes.length&&(n[l]=!0,t.iterator=n.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[l]=!0;let t=[{eventIndex:0,events:h(e),iterator:0,node:e}];for(;t.length>0;){let e=t[t.length-1],n=e.node;if(e.iterator!==0){let r=e.iterator,i,a=!1;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[l]){i[l]=!0,t.push({eventIndex:0,events:h(i),iterator:0,node:i}),a=!0;break}if(a)continue;e.iterator=0,delete n.indexes[r]}if(e.eventIndex<e.events.length){let r=e.events[e.eventIndex];if(e.eventIndex+=1,r===0)n.nodes&&n.nodes.length&&(e.iterator=n.getIterator());else{let e=this.listeners[r];e&&this.visitSync(e,n.toProxy())&&t.pop()}}else t.pop()}}warnings(){return this.sync().warnings()}};y.registerPostcss=e=>{v=e},t.exports=y,y.default=y,s.registerLazyResult(y),r.registerLazyResult(y)})),jje=/* @__PURE__ */ a(((e,t)=>{let n=Eje(),r=mO(),i=hO(),a=tO();kje();var o=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let o=a;this.result=new i(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let c=new n(o,void 0,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};t.exports=o,o.default=o})),Mje=/* @__PURE__ */ a(((e,t)=>{let n=cO(),r=Aje(),i=jje(),a=fO();var o=class{constructor(e=[]){this.version=`8.5.23`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(typeof n!=`object`||!n.parse&&!n.stringify)throw Error(n+` is not a PostCSS plugin`);return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,a.registerProcessor(o),n.registerProcessor(o)})),gO=/* @__PURE__ */ r((/* @__PURE__ */ a(((e,t)=>{let n=sO(),r=iO(),i=oO(),a=eO(),o=aO(),s=cO(),c=Tje(),l=dO(),u=Aje(),d=wje(),f=rO(),p=mO(),m=Mje(),h=hO(),g=fO(),_=pO(),v=tO(),y=Oje();function b(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new m(e)}b.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
575
575
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith(`cn`)&&
576
576
  /* c8 ignore next 7 */
577
577
  console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
578
- https://www.w3ctech.com/topic/2226`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new m().version,i}let i;return Object.defineProperty(r,"postcss",{get(){return i||=r(),i}}),r.process=function(e,t,n){return b([r(n)]).process(e,t)},r},b.stringify=v,b.parse=p,b.fromJSON=c,b.list=d,b.comment=e=>new r(e),b.atRule=e=>new n(e),b.decl=e=>new o(e),b.rule=e=>new _(e),b.root=e=>new g(e),b.document=e=>new s(e),b.CssSyntaxError=a,b.Declaration=o,b.Container=i,b.Processor=m,b.Document=s,b.Comment=r,b.Warning=y,b.AtRule=n,b.Result=h,b.Input=l,b.Rule=_,b.Root=g,b.Node=f,u.registerPostcss(b),t.exports=b,b.default=b})))(),1),kje=hO.default;hO.default.stringify,hO.default.fromJSON,hO.default.plugin,hO.default.parse,hO.default.list,hO.default.document,hO.default.comment,hO.default.atRule,hO.default.rule,hO.default.decl,hO.default.root,hO.default.CssSyntaxError,hO.default.Declaration,hO.default.Container,hO.default.Processor,hO.default.Document,hO.default.Comment,hO.default.Warning,hO.default.AtRule,hO.default.Result,hO.default.Input,hO.default.Rule,hO.default.Root,hO.default.Node;const Aje=/^--[a-zA-Z0-9_-]+$/,jje=/-([a-z])/g,Mje=/^-ms-/,Nje=e=>Aje.test(e)?e:e.includes(`-`)?e.toLowerCase().replace(Mje,`ms-`).replace(jje,(e,t)=>t.toUpperCase()):e.toLowerCase(),Pje=e=>{try{let t={};for(let n of kje.parse(e,{from:void 0}).nodes)n.type===`decl`&&n.value&&(t[Nje(n.prop)]=n.value);return t}catch{return{}}},Fje=()=>{let e=/* @__PURE__ */ new Map;return{claim:t=>{let n=e.get(t)??0;if(e.set(t,n+1),n===0)return t;let r=n+1,i=`${t}-${r}`;for(;e.has(i);)r+=1,i=`${t}-${r}`;return e.set(i,1),i},reserve:t=>{e.set(t,(e.get(t)??0)+1)}}};function gO(e,t){let n=XE(e.replace(`:`,`-`),{decamelize:!1});return t!=null&&t>0?`${n}-${t}`:n}const _O=[1,2,3,4],vO=[`custom`,`frame`],Ije=e=>t=>{let n=ZE(),r=ZE(),i=vO.includes(e?.mode??``);p(t,`heading`,e=>{if(!i&&_O.includes(e.depth)){let t=QE(Ue(e),n);e.attributes=[ae(`level`,e.depth),ae(`id`,t)],e.type=`mdxJsxFlowElement`,e.name=`Heading`}});let a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Set;p(t,`mdxJsxFlowElement`,e=>{if(e.name!==`Tab`)return;let t=e.attributes.find(e=>`name`in e&&e.name===`id`)?.value;t&&typeof t==`string`&&s.add(t)});let l=e=>{if(e.type===`mdxJsxFlowElement`&&e.name===`Tab`){let t=e.attributes.find(e=>`name`in e&&e.name===`id`)?.value;if(t&&typeof t==`string`)a.set(e,t);else{let t=e.attributes.find(e=>`name`in e&&e.name===`title`)?.value;if(t&&typeof t==`string`){let n=c(e,t),i=QE(n,r);for(;s.has(i);)i=QE(n,r);s.add(i),a.set(e,i)}}}else if(e.type===`mdxJsxFlowElement`&&(e.name===`Heading`||[`h1`,`h2`,`h3`,`h4`].includes(e.name??``))){let t=e.attributes.find(e=>`name`in e&&e.name===`id`)?.value;t&&typeof t==`string`&&o.set(e,t)}if(`children`in e)for(let t of e.children)l(t)},u=e=>{if(e.type===`mdxJsxFlowElement`&&e.name===`Tab`){let t=a.get(e);if(t){e.attributes.some(e=>`name`in e&&e.name===`id`)||e.attributes.push(ae(`id`,t));let n=[];for(let t of e.children){let e=f(t,`Tab`);n.push(...e)}if(n.length>0)try{e.attributes.push(ae(`data-child-tab-ids`,JSON.stringify(n)))}catch{}let r=f(e,`Heading`);if(r.length>0)try{e.attributes.push(ae(`data-child-heading-ids`,JSON.stringify(r)))}catch{}}for(let t of e.children)u(t)}else if(`children`in e)for(let t of e.children)u(t)},d=e=>e.type===`mdxJsxFlowElement`&&(e.name===`Heading`||[`h1`,`h2`,`h3`,`h4`].includes(e.name??``)),f=(e,t)=>{let n=[];if(e.type===`mdxJsxFlowElement`&&(t===`Tab`?e.name===`Tab`:d(e))){let r=t===`Tab`?a.get(e):o.get(e);r&&n.push(r)}else if(`children`in e)for(let r of e.children)n.push(...f(r,t));return n};l(t),u(t);let m=/* @__PURE__ */ new Map;p(t,`mdxJsxFlowElement`,e=>{if(e.name!==`Accordion`)return;let t=e.attributes.find(e=>`name`in e&&e.name===`title`);if(!t||typeof t.value!=`string`||!t.value||e.attributes.some(e=>`name`in e&&e.name===`id`))return;let n=c(e,t.value),r=gO(n),i=m.get(r)??0;m.set(r,i+1),e.attributes.push(ae(`id`,gO(n,i)))});let h=/* @__PURE__ */ new Map;p(t,`mdxJsxFlowElement`,e=>{if(e.name!==`View`)return;let t=e.attributes.find(e=>`name`in e&&e.name===`title`);if(!t||typeof t.value!=`string`||!t.value||e.attributes.some(e=>`name`in e&&e.name===`id`))return;let n=t.value,r=gO(n),i=h.get(r)??0;h.set(r,i+1),e.attributes.push(ae(`id`,gO(n,i)))})};function Lje(e){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===`Variation`}function Rje(e){let t=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===`is`);if(!t)return{kind:`missing`};if(typeof t.value==`string`){let e=t.value.trim();return e?{kind:`valid`,ids:[e]}:{kind:`invalid`}}if(!t.value)return{kind:`invalid`};let n=t.value.data?.estree,r=n?.body[0],i=r?.type===`ExpressionStatement`?r.expression:void 0;if(i?.type===`Literal`&&typeof i.value==`string`){let e=i.value.trim();return e?{kind:`valid`,ids:[e]}:{kind:`invalid`}}if(i?.type===`TemplateLiteral`&&i.expressions.length===0){let e=(i.quasis[0]?.value.cooked)?.trim();return e?{kind:`valid`,ids:[e]}:{kind:`invalid`}}if(i?.type===`ArrayExpression`){let e=[];for(let t of i.elements){if(t?.type!==`Literal`||typeof t.value!=`string`)return{kind:`invalid`};let n=t.value.trim();if(!n)return{kind:`invalid`};e.push(n)}return e.length>0?{kind:`valid`,ids:[...new Set(e)]}:{kind:`invalid`}}if(n)return{kind:`invalid`};let a=t.value.value.trim().match(/^(["'`])([\s\S]*)\1$/);return(a?.[2])?.trim()?{kind:`valid`,ids:[a[2].trim()]}:{kind:`invalid`}}const zje=[`h1`,`h2`,`h3`,`h4`],Bje=[`Accordion`,`AccordionGroup`,`Expandable`,`Update`,`Prompt`];function yO(e,t){let n=e.find(e=>`name`in e&&e.name===t);if(n&&`value`in n&&typeof n.value==`string`)return n.value}const Vje=e=>e&&[...e].sort(),Hje=e=>{if(typeof e==`string`)return e;let t=oe(v(e.groups));return JSON.stringify([Vje(t?.includes),Vje(t?.excludes)])},Uje=(e,t)=>{if(t===void 0)return!0;let n=new Set(e?.map(Hje));return t.every(e=>n.has(Hje(e)))},Wje=(e,t)=>{let n=Fje();return r=>{let i=[],a=!1,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,l=/* @__PURE__ */ new Map,u=/* @__PURE__ */ new Map,d=/* @__PURE__ */ new Map,f=/* @__PURE__ */ new Set,h=vO.includes(t?.mode??``);p(r,e=>{if(e.type===`mdxJsxFlowElement`&&e.name===`_MintIsland`)for(let t of e.data?.islandHeadings??[])n.reserve(t.slug);e.type===`mdxJsxFlowElement`&&e.name&&Bje.includes(e.name)&&p(e,t=>{t!==e&&f.add(t)});let t=e;if(te(t)){let n=re(t),r=j(n);Ve(n)?p(e,t=>{t!==e&&f.add(t)}):r&&p(e,t=>{t!==e&&u.set(t,[...u.get(t)??[],r])})}if(e.type===`mdxJsxFlowElement`&&e.name===`Steps`){let t=yO(e.attributes,`titleSize`);if(t){let n=e=>{for(let r of e)r.type===`mdxJsxFlowElement`&&(r.name===`Step`?d.set(r,t):m(r)&&n(r.children))};n(e.children)}}if(e.type===`mdxJsxFlowElement`&&e.name===`Tab`){let t=yO(e.attributes,`id`),n=yO(e.attributes,`title`),r=t??(n?QE(c(e,n)):void 0);r&&p(e,e=>{o.set(e,r)})}if(e.type===`mdxJsxFlowElement`&&e.name===`View`){let t=yO(e.attributes,`title`);t&&p(e,e=>{s.set(e,t)})}let r=e;if(Lje(r)){let t=Rje(r),n=t.kind===`valid`?t.ids:[];p(e,e=>{let t=l.get(e);l.set(e,t?t.filter(e=>n.includes(e)):n)})}});let g=(e,t)=>{if(!e.title.trim())return;if(t!==void 0&&Number(t)<=2){a=!0,i.push(e);return}let n=i;if(a){let t=i.at(-1);t&&!(t.depth>2&&t.depth>=e.depth)&&(t.tabId===void 0||t.tabId===e.tabId)&&(t.viewId===void 0||t.viewId===e.viewId)&&(t.variationIds===void 0||e.variationIds!==void 0&&e.variationIds.every(e=>t.variationIds?.includes(e)))&&Uje(e.authRules,t.authRules)&&(n=t.children)}n.push(e)};p(r,e=>{if(f.has(e))return;let t=o.get(e),r=s.get(e),i=l.get(e),a=u.get(e);if(e.type===`mdxFlowExpression`||e.type===`mdxTextExpression`){let o=e.data?.tableOfContents;if(!o?.length)return;let s=e=>{for(let t of e)n.reserve(t.slug),s(t.children)};s(o);for(let e of o)g(Object.assign(Object.assign({},e),{tabId:t,viewId:r,variationIds:i,authRules:a||e.authRules?[...a??[],...e.authRules??[]]:void 0}),e.depth);return}if(e.type===`mdxJsxFlowElement`&&e.name===`_MintIsland`){if(h)return;for(let{title:n,slug:o,depth:s}of e.data?.islandHeadings??[])g({title:n,slug:o,depth:s,children:[],tabId:t,viewId:r,variationIds:i,authRules:a},s);return}let p=e.type===`heading`&&_O.includes(e.depth),m=e.type===`mdxJsxFlowElement`&&zje.includes(e.name??``),_=e.type===`mdxJsxFlowElement`&&e.name===`Heading`,v=e.type===`mdxJsxFlowElement`&&e.name===`Update`&&e.attributes.some(e=>`name`in e&&e.name===`label`),y=e.type===`mdxJsxFlowElement`&&e.name===`Step`?yO(e.attributes,`titleSize`)??d.get(e):void 0,b=e.type===`mdxJsxFlowElement`&&e.attributes.some(e=>`name`in e&&e.name===`noAnchor`&&(e.value==null||e.value===`true`||typeof e.value==`object`&&e.value.value===`true`)),x=e.type===`mdxJsxFlowElement`&&e.name===`Step`?c(e,yO(e.attributes,`title`)??``):void 0,S=e.type===`mdxJsxFlowElement`&&e.name===`Step`&&!b&&[`h2`,`h3`].includes(y??``)&&x?.trim()!==``,C=e.type===`mdxJsxFlowElement`&&e.attributes.some(e=>`name`in e&&e.name===`id`);if(!p&&!m&&!_&&!v&&!S||h&&(p||m))return;let w;if(`name`in e&&e.name===`Update`)w=1,e.depth=1;else if(`name`in e&&e.name===`Step`)w={h2:2,h3:3,h4:4}[y??``]??3,e.depth=w;else if(`depth`in e)w=e.depth;else if(`name`in e&&e.name===`Heading`){let t=e.attributes.find(e=>`name`in e&&e.name===`level`);t&&`value`in t&&typeof t.value==`number`&&(w=t.value)}else if(`name`in e&&e.name?.[1]){let t=Number(e.name[1]);w=isNaN(t)?void 0:t,w!==void 0&&(e.depth=w)}let T=x??Ue(e),E,D=`name`in e&&(e.name===`Heading`||e.name===`Step`||e.name===`Update`)||C?yO(e.attributes,`id`):void 0;E=D?n.claim(JE(D)||QE(T)):n.claim(QE(T));let O;if(`name`in e&&e.name===`Update`){let t=yO(e.attributes,`id`);O=t?t===E?e.attributes:e.attributes.map(e=>`name`in e&&e.name===`id`?ae(`id`,E):e):[...e.attributes,ae(`id`,E)]}else if(`name`in e&&e.name===`Step`){let t=yO(e.attributes,`id`);O=t?t===E?e.attributes:e.attributes.map(e=>`name`in e&&e.name===`id`?ae(`id`,E):e):[...e.attributes,ae(`id`,E)]}else if(`name`in e&&e.name===`Heading`)O=D&&E!==D?e.attributes.map(e=>`name`in e&&e.name===`id`?ae(`id`,E):e):e.attributes;else if(w!==void 0&&C){let t=D&&E!==D?e.attributes.map(e=>`name`in e&&e.name===`id`?ae(`id`,E):e):e.attributes;O=[ae(`level`,w),...t]}else w!==void 0&&!C&&(O=[ae(`level`,w),ae(`id`,E)],m&&e.attributes.length>0&&O.push(...e.attributes));e.attributes=O,e.type=`mdxJsxFlowElement`,e.name=e.name===`Update`?`Update`:e.name===`Step`?`Step`:`Heading`;let k=e.depth;g({title:T,slug:E,depth:k,children:[],tabId:t,viewId:r,variationIds:i,authRules:a},w)}),e&&(e.tableOfContents=i)}},Gje=qje(`end`),Kje=qje(`start`);function qje(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Jje(e){let t=Kje(e),n=Gje(e);if(t&&n)return{start:t,end:n}}const Yje=typeof self==`object`?self:globalThis,Xje=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(/* @__PURE__ */ new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(/* @__PURE__ */ new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new Yje[e](t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i)}return n(new Yje[a](o),i)};return r},Zje=e=>Xje(/* @__PURE__ */ new Map,e)(0),{toString:Qje}={},{keys:$je}=Object,bO=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Qje.call(e).slice(8,-1);switch(n){case`Array`:return[1,``];case`Object`:return[2,``];case`Date`:return[3,``];case`RegExp`:return[4,``];case`Map`:return[5,``];case`Set`:return[6,``]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},xO=([e,t])=>e===0&&(t===`function`||t===`symbol`),eMe=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=bO(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s)return i([s,[...r]],r);let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of $je(r))(e||!xO(bO(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(xO(bO(n))||xO(bO(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!xO(bO(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},tMe=(e,{json:t,lossy:n}={})=>{let r=[];return eMe(!(t||n),!!t,/* @__PURE__ */ new Map,r)(e),r};var nMe=typeof structuredClone==`function`?
578
+ https://www.w3ctech.com/topic/2226`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new m().version,i}let i;return Object.defineProperty(r,"postcss",{get(){return i||=r(),i}}),r.process=function(e,t,n){return b([r(n)]).process(e,t)},r},b.stringify=v,b.parse=p,b.fromJSON=c,b.list=d,b.comment=e=>new r(e),b.atRule=e=>new n(e),b.decl=e=>new o(e),b.rule=e=>new _(e),b.root=e=>new g(e),b.document=e=>new s(e),b.CssSyntaxError=a,b.Declaration=o,b.Container=i,b.Processor=m,b.Document=s,b.Comment=r,b.Warning=y,b.AtRule=n,b.Result=h,b.Input=l,b.Rule=_,b.Root=g,b.Node=f,u.registerPostcss(b),t.exports=b,b.default=b})))(),1),Nje=gO.default;gO.default.stringify,gO.default.fromJSON,gO.default.plugin,gO.default.parse,gO.default.list,gO.default.document,gO.default.comment,gO.default.atRule,gO.default.rule,gO.default.decl,gO.default.root,gO.default.CssSyntaxError,gO.default.Declaration,gO.default.Container,gO.default.Processor,gO.default.Document,gO.default.Comment,gO.default.Warning,gO.default.AtRule,gO.default.Result,gO.default.Input,gO.default.Rule,gO.default.Root,gO.default.Node;const Pje=/^--[a-zA-Z0-9_-]+$/,Fje=/-([a-z])/g,Ije=/^-ms-/,Lje=e=>Pje.test(e)?e:e.includes(`-`)?e.toLowerCase().replace(Ije,`ms-`).replace(Fje,(e,t)=>t.toUpperCase()):e.toLowerCase(),Rje=e=>{try{let t={};for(let n of Nje.parse(e,{from:void 0}).nodes)n.type===`decl`&&n.value&&(t[Lje(n.prop)]=n.value);return t}catch{return{}}},zje=()=>{let e=/* @__PURE__ */ new Map;return{claim:t=>{let n=e.get(t)??0;if(e.set(t,n+1),n===0)return t;let r=n+1,i=`${t}-${r}`;for(;e.has(i);)r+=1,i=`${t}-${r}`;return e.set(i,1),i},reserve:t=>{e.set(t,(e.get(t)??0)+1)}}};function _O(e,t){let n=ZE(e.replace(`:`,`-`),{decamelize:!1});return t!=null&&t>0?`${n}-${t}`:n}const vO=[1,2,3,4],yO=[`custom`,`frame`],Bje=e=>t=>{let n=QE(),r=QE(),i=yO.includes(e?.mode??``);p(t,`heading`,e=>{if(!i&&vO.includes(e.depth)){let t=$E(Ue(e),n);e.attributes=[ae(`level`,e.depth),ae(`id`,t)],e.type=`mdxJsxFlowElement`,e.name=`Heading`}});let a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Set;p(t,`mdxJsxFlowElement`,e=>{if(e.name!==`Tab`)return;let t=e.attributes.find(e=>`name`in e&&e.name===`id`)?.value;t&&typeof t==`string`&&s.add(t)});let l=e=>{if(e.type===`mdxJsxFlowElement`&&e.name===`Tab`){let t=e.attributes.find(e=>`name`in e&&e.name===`id`)?.value;if(t&&typeof t==`string`)a.set(e,t);else{let t=e.attributes.find(e=>`name`in e&&e.name===`title`)?.value;if(t&&typeof t==`string`){let n=c(e,t),i=$E(n,r);for(;s.has(i);)i=$E(n,r);s.add(i),a.set(e,i)}}}else if(e.type===`mdxJsxFlowElement`&&(e.name===`Heading`||[`h1`,`h2`,`h3`,`h4`].includes(e.name??``))){let t=e.attributes.find(e=>`name`in e&&e.name===`id`)?.value;t&&typeof t==`string`&&o.set(e,t)}if(`children`in e)for(let t of e.children)l(t)},u=e=>{if(e.type===`mdxJsxFlowElement`&&e.name===`Tab`){let t=a.get(e);if(t){e.attributes.some(e=>`name`in e&&e.name===`id`)||e.attributes.push(ae(`id`,t));let n=[];for(let t of e.children){let e=f(t,`Tab`);n.push(...e)}if(n.length>0)try{e.attributes.push(ae(`data-child-tab-ids`,JSON.stringify(n)))}catch{}let r=f(e,`Heading`);if(r.length>0)try{e.attributes.push(ae(`data-child-heading-ids`,JSON.stringify(r)))}catch{}}for(let t of e.children)u(t)}else if(`children`in e)for(let t of e.children)u(t)},d=e=>e.type===`mdxJsxFlowElement`&&(e.name===`Heading`||[`h1`,`h2`,`h3`,`h4`].includes(e.name??``)),f=(e,t)=>{let n=[];if(e.type===`mdxJsxFlowElement`&&(t===`Tab`?e.name===`Tab`:d(e))){let r=t===`Tab`?a.get(e):o.get(e);r&&n.push(r)}else if(`children`in e)for(let r of e.children)n.push(...f(r,t));return n};l(t),u(t);let m=/* @__PURE__ */ new Map;p(t,`mdxJsxFlowElement`,e=>{if(e.name!==`Accordion`)return;let t=e.attributes.find(e=>`name`in e&&e.name===`title`);if(!t||typeof t.value!=`string`||!t.value||e.attributes.some(e=>`name`in e&&e.name===`id`))return;let n=c(e,t.value),r=_O(n),i=m.get(r)??0;m.set(r,i+1),e.attributes.push(ae(`id`,_O(n,i)))});let h=/* @__PURE__ */ new Map;p(t,`mdxJsxFlowElement`,e=>{if(e.name!==`View`)return;let t=e.attributes.find(e=>`name`in e&&e.name===`title`);if(!t||typeof t.value!=`string`||!t.value||e.attributes.some(e=>`name`in e&&e.name===`id`))return;let n=t.value,r=_O(n),i=h.get(r)??0;h.set(r,i+1),e.attributes.push(ae(`id`,_O(n,i)))})};function Vje(e){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===`Variation`}function Hje(e){let t=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===`is`);if(!t)return{kind:`missing`};if(typeof t.value==`string`){let e=t.value.trim();return e?{kind:`valid`,ids:[e]}:{kind:`invalid`}}if(!t.value)return{kind:`invalid`};let n=t.value.data?.estree,r=n?.body[0],i=r?.type===`ExpressionStatement`?r.expression:void 0;if(i?.type===`Literal`&&typeof i.value==`string`){let e=i.value.trim();return e?{kind:`valid`,ids:[e]}:{kind:`invalid`}}if(i?.type===`TemplateLiteral`&&i.expressions.length===0){let e=(i.quasis[0]?.value.cooked)?.trim();return e?{kind:`valid`,ids:[e]}:{kind:`invalid`}}if(i?.type===`ArrayExpression`){let e=[];for(let t of i.elements){if(t?.type!==`Literal`||typeof t.value!=`string`)return{kind:`invalid`};let n=t.value.trim();if(!n)return{kind:`invalid`};e.push(n)}return e.length>0?{kind:`valid`,ids:[...new Set(e)]}:{kind:`invalid`}}if(n)return{kind:`invalid`};let a=t.value.value.trim().match(/^(["'`])([\s\S]*)\1$/);return(a?.[2])?.trim()?{kind:`valid`,ids:[a[2].trim()]}:{kind:`invalid`}}const Uje=[`h1`,`h2`,`h3`,`h4`],Wje=[`Accordion`,`AccordionGroup`,`Expandable`,`Update`,`Prompt`];function bO(e,t){let n=e.find(e=>`name`in e&&e.name===t);if(n&&`value`in n&&typeof n.value==`string`)return n.value}const Gje=e=>e&&[...e].sort(),Kje=e=>{if(typeof e==`string`)return e;let t=oe(v(e.groups));return JSON.stringify([Gje(t?.includes),Gje(t?.excludes)])},qje=(e,t)=>{if(t===void 0)return!0;let n=new Set(e?.map(Kje));return t.every(e=>n.has(Kje(e)))},Jje=(e,t)=>{let n=zje();return r=>{let i=[],a=!1,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,l=/* @__PURE__ */ new Map,u=/* @__PURE__ */ new Map,d=/* @__PURE__ */ new Map,f=/* @__PURE__ */ new Set,h=yO.includes(t?.mode??``);p(r,e=>{if(e.type===`mdxJsxFlowElement`&&e.name===`_MintIsland`)for(let t of e.data?.islandHeadings??[])n.reserve(t.slug);e.type===`mdxJsxFlowElement`&&e.name&&Wje.includes(e.name)&&p(e,t=>{t!==e&&f.add(t)});let t=e;if(te(t)){let n=re(t),r=j(n);Ve(n)?p(e,t=>{t!==e&&f.add(t)}):r&&p(e,t=>{t!==e&&u.set(t,[...u.get(t)??[],r])})}if(e.type===`mdxJsxFlowElement`&&e.name===`Steps`){let t=bO(e.attributes,`titleSize`);if(t){let n=e=>{for(let r of e)r.type===`mdxJsxFlowElement`&&(r.name===`Step`?d.set(r,t):m(r)&&n(r.children))};n(e.children)}}if(e.type===`mdxJsxFlowElement`&&e.name===`Tab`){let t=bO(e.attributes,`id`),n=bO(e.attributes,`title`),r=t??(n?$E(c(e,n)):void 0);r&&p(e,e=>{o.set(e,r)})}if(e.type===`mdxJsxFlowElement`&&e.name===`View`){let t=bO(e.attributes,`title`);t&&p(e,e=>{s.set(e,t)})}let r=e;if(Vje(r)){let t=Hje(r),n=t.kind===`valid`?t.ids:[];p(e,e=>{let t=l.get(e);l.set(e,t?t.filter(e=>n.includes(e)):n)})}});let g=(e,t)=>{if(!e.title.trim())return;if(t!==void 0&&Number(t)<=2){a=!0,i.push(e);return}let n=i;if(a){let t=i.at(-1);t&&!(t.depth>2&&t.depth>=e.depth)&&(t.tabId===void 0||t.tabId===e.tabId)&&(t.viewId===void 0||t.viewId===e.viewId)&&(t.variationIds===void 0||e.variationIds!==void 0&&e.variationIds.every(e=>t.variationIds?.includes(e)))&&qje(e.authRules,t.authRules)&&(n=t.children)}n.push(e)};p(r,e=>{if(f.has(e))return;let t=o.get(e),r=s.get(e),i=l.get(e),a=u.get(e);if(e.type===`mdxFlowExpression`||e.type===`mdxTextExpression`){let o=e.data?.tableOfContents;if(!o?.length)return;let s=e=>{for(let t of e)n.reserve(t.slug),s(t.children)};s(o);for(let e of o)g(Object.assign(Object.assign({},e),{tabId:t,viewId:r,variationIds:i,authRules:a||e.authRules?[...a??[],...e.authRules??[]]:void 0}),e.depth);return}if(e.type===`mdxJsxFlowElement`&&e.name===`_MintIsland`){if(h)return;for(let{title:n,slug:o,depth:s}of e.data?.islandHeadings??[])g({title:n,slug:o,depth:s,children:[],tabId:t,viewId:r,variationIds:i,authRules:a},s);return}let p=e.type===`heading`&&vO.includes(e.depth),m=e.type===`mdxJsxFlowElement`&&Uje.includes(e.name??``),_=e.type===`mdxJsxFlowElement`&&e.name===`Heading`,v=e.type===`mdxJsxFlowElement`&&e.name===`Update`&&e.attributes.some(e=>`name`in e&&e.name===`label`),y=e.type===`mdxJsxFlowElement`&&e.name===`Step`?bO(e.attributes,`titleSize`)??d.get(e):void 0,b=e.type===`mdxJsxFlowElement`&&e.attributes.some(e=>`name`in e&&e.name===`noAnchor`&&(e.value==null||e.value===`true`||typeof e.value==`object`&&e.value.value===`true`)),x=e.type===`mdxJsxFlowElement`&&e.name===`Step`?c(e,bO(e.attributes,`title`)??``):void 0,S=e.type===`mdxJsxFlowElement`&&e.name===`Step`&&!b&&[`h2`,`h3`].includes(y??``)&&x?.trim()!==``,C=e.type===`mdxJsxFlowElement`&&e.attributes.some(e=>`name`in e&&e.name===`id`);if(!p&&!m&&!_&&!v&&!S||h&&(p||m))return;let w;if(`name`in e&&e.name===`Update`)w=1,e.depth=1;else if(`name`in e&&e.name===`Step`)w={h2:2,h3:3,h4:4}[y??``]??3,e.depth=w;else if(`depth`in e)w=e.depth;else if(`name`in e&&e.name===`Heading`){let t=e.attributes.find(e=>`name`in e&&e.name===`level`);t&&`value`in t&&typeof t.value==`number`&&(w=t.value)}else if(`name`in e&&e.name?.[1]){let t=Number(e.name[1]);w=isNaN(t)?void 0:t,w!==void 0&&(e.depth=w)}let T=x??Ue(e),E,D=`name`in e&&(e.name===`Heading`||e.name===`Step`||e.name===`Update`)||C?bO(e.attributes,`id`):void 0;E=D?n.claim(YE(D)||$E(T)):n.claim($E(T));let O;if(`name`in e&&e.name===`Update`){let t=bO(e.attributes,`id`);O=t?t===E?e.attributes:e.attributes.map(e=>`name`in e&&e.name===`id`?ae(`id`,E):e):[...e.attributes,ae(`id`,E)]}else if(`name`in e&&e.name===`Step`){let t=bO(e.attributes,`id`);O=t?t===E?e.attributes:e.attributes.map(e=>`name`in e&&e.name===`id`?ae(`id`,E):e):[...e.attributes,ae(`id`,E)]}else if(`name`in e&&e.name===`Heading`)O=D&&E!==D?e.attributes.map(e=>`name`in e&&e.name===`id`?ae(`id`,E):e):e.attributes;else if(w!==void 0&&C){let t=D&&E!==D?e.attributes.map(e=>`name`in e&&e.name===`id`?ae(`id`,E):e):e.attributes;O=[ae(`level`,w),...t]}else w!==void 0&&!C&&(O=[ae(`level`,w),ae(`id`,E)],m&&e.attributes.length>0&&O.push(...e.attributes));e.attributes=O,e.type=`mdxJsxFlowElement`,e.name=e.name===`Update`?`Update`:e.name===`Step`?`Step`:`Heading`;let k=e.depth;g({title:T,slug:E,depth:k,children:[],tabId:t,viewId:r,variationIds:i,authRules:a},w)}),e&&(e.tableOfContents=i)}},Yje=Zje(`end`),Xje=Zje(`start`);function Zje(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Qje(e){let t=Xje(e),n=Yje(e);if(t&&n)return{start:t,end:n}}const $je=typeof self==`object`?self:globalThis,eMe=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(/* @__PURE__ */ new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(/* @__PURE__ */ new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new $je[e](t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i)}return n(new $je[a](o),i)};return r},tMe=e=>eMe(/* @__PURE__ */ new Map,e)(0),{toString:nMe}={},{keys:rMe}=Object,xO=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=nMe.call(e).slice(8,-1);switch(n){case`Array`:return[1,``];case`Object`:return[2,``];case`Date`:return[3,``];case`RegExp`:return[4,``];case`Map`:return[5,``];case`Set`:return[6,``]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},SO=([e,t])=>e===0&&(t===`function`||t===`symbol`),iMe=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=xO(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s)return i([s,[...r]],r);let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of rMe(r))(e||!SO(xO(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(SO(xO(n))||SO(xO(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!SO(xO(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},aMe=(e,{json:t,lossy:n}={})=>{let r=[];return iMe(!(t||n),!!t,/* @__PURE__ */ new Map,r)(e),r};var oMe=typeof structuredClone==`function`?
579
579
  /* c8 ignore start */
580
- (e,t)=>t&&(`json`in t||`lossy`in t)?Zje(tMe(e,t)):structuredClone(e):(e,t)=>Zje(tMe(e,t));const SO=/* @__PURE__ */ new Set([`__proto__`,`constructor`,`prototype`]);function CO(e){return typeof e==`string`?e.endsWith(`/index`)?e.slice(0,-6):e===`index`?``:e:e}const rMe=e=>e.startsWith(`./`)||e.startsWith(`../`),iMe=(e,t,n)=>{let r=t.search(/[#?]/),i=r===-1?t:t.slice(0,r),a=r===-1?``:t.slice(r),o=Et.normalize(Et.join(e,i)),s=o.startsWith(`/`)&&!o.startsWith(`//`)?o:`/${o}`;if(n){let e=s.replace(/\.mdx?$/i,``);e!==s&&(s=CO(e)||`/`)}return s+a},aMe=e=>{let t=Et.dirname(e.replace(/^\/+/,``).replace(/\.mdx?$/i,``));return t===`.`||t===``?`/`:`/${t}`},oMe=(e,t,n)=>rMe(t)?iMe(aMe(e),t,n):t;var sMe=/* @__PURE__ */ a((e=>{function t(){var e={};return e[`align-content`]=!1,e[`align-items`]=!1,e[`align-self`]=!1,e[`alignment-adjust`]=!1,e[`alignment-baseline`]=!1,e.all=!1,e[`anchor-point`]=!1,e.animation=!1,e[`animation-delay`]=!1,e[`animation-direction`]=!1,e[`animation-duration`]=!1,e[`animation-fill-mode`]=!1,e[`animation-iteration-count`]=!1,e[`animation-name`]=!1,e[`animation-play-state`]=!1,e[`animation-timing-function`]=!1,e.azimuth=!1,e[`backface-visibility`]=!1,e.background=!0,e[`background-attachment`]=!0,e[`background-clip`]=!0,e[`background-color`]=!0,e[`background-image`]=!0,e[`background-origin`]=!0,e[`background-position`]=!0,e[`background-repeat`]=!0,e[`background-size`]=!0,e[`baseline-shift`]=!1,e.binding=!1,e.bleed=!1,e[`bookmark-label`]=!1,e[`bookmark-level`]=!1,e[`bookmark-state`]=!1,e.border=!0,e[`border-bottom`]=!0,e[`border-bottom-color`]=!0,e[`border-bottom-left-radius`]=!0,e[`border-bottom-right-radius`]=!0,e[`border-bottom-style`]=!0,e[`border-bottom-width`]=!0,e[`border-collapse`]=!0,e[`border-color`]=!0,e[`border-image`]=!0,e[`border-image-outset`]=!0,e[`border-image-repeat`]=!0,e[`border-image-slice`]=!0,e[`border-image-source`]=!0,e[`border-image-width`]=!0,e[`border-left`]=!0,e[`border-left-color`]=!0,e[`border-left-style`]=!0,e[`border-left-width`]=!0,e[`border-radius`]=!0,e[`border-right`]=!0,e[`border-right-color`]=!0,e[`border-right-style`]=!0,e[`border-right-width`]=!0,e[`border-spacing`]=!0,e[`border-style`]=!0,e[`border-top`]=!0,e[`border-top-color`]=!0,e[`border-top-left-radius`]=!0,e[`border-top-right-radius`]=!0,e[`border-top-style`]=!0,e[`border-top-width`]=!0,e[`border-width`]=!0,e.bottom=!1,e[`box-decoration-break`]=!0,e[`box-shadow`]=!0,e[`box-sizing`]=!0,e[`box-snap`]=!0,e[`box-suppress`]=!0,e[`break-after`]=!0,e[`break-before`]=!0,e[`break-inside`]=!0,e[`caption-side`]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e[`clip-path`]=!1,e[`clip-rule`]=!1,e.color=!0,e[`color-interpolation-filters`]=!0,e[`column-count`]=!1,e[`column-fill`]=!1,e[`column-gap`]=!1,e[`column-rule`]=!1,e[`column-rule-color`]=!1,e[`column-rule-style`]=!1,e[`column-rule-width`]=!1,e[`column-span`]=!1,e[`column-width`]=!1,e.columns=!1,e.contain=!1,e.content=!1,e[`counter-increment`]=!1,e[`counter-reset`]=!1,e[`counter-set`]=!1,e.crop=!1,e.cue=!1,e[`cue-after`]=!1,e[`cue-before`]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e[`display-inside`]=!0,e[`display-list`]=!0,e[`display-outside`]=!0,e[`dominant-baseline`]=!1,e.elevation=!1,e[`empty-cells`]=!1,e.filter=!1,e.flex=!1,e[`flex-basis`]=!1,e[`flex-direction`]=!1,e[`flex-flow`]=!1,e[`flex-grow`]=!1,e[`flex-shrink`]=!1,e[`flex-wrap`]=!1,e.float=!1,e[`float-offset`]=!1,e[`flood-color`]=!1,e[`flood-opacity`]=!1,e[`flow-from`]=!1,e[`flow-into`]=!1,e.font=!0,e[`font-family`]=!0,e[`font-feature-settings`]=!0,e[`font-kerning`]=!0,e[`font-language-override`]=!0,e[`font-size`]=!0,e[`font-size-adjust`]=!0,e[`font-stretch`]=!0,e[`font-style`]=!0,e[`font-synthesis`]=!0,e[`font-variant`]=!0,e[`font-variant-alternates`]=!0,e[`font-variant-caps`]=!0,e[`font-variant-east-asian`]=!0,e[`font-variant-ligatures`]=!0,e[`font-variant-numeric`]=!0,e[`font-variant-position`]=!0,e[`font-weight`]=!0,e.grid=!1,e[`grid-area`]=!1,e[`grid-auto-columns`]=!1,e[`grid-auto-flow`]=!1,e[`grid-auto-rows`]=!1,e[`grid-column`]=!1,e[`grid-column-end`]=!1,e[`grid-column-start`]=!1,e[`grid-row`]=!1,e[`grid-row-end`]=!1,e[`grid-row-start`]=!1,e[`grid-template`]=!1,e[`grid-template-areas`]=!1,e[`grid-template-columns`]=!1,e[`grid-template-rows`]=!1,e[`hanging-punctuation`]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e[`image-orientation`]=!1,e[`image-resolution`]=!1,e[`ime-mode`]=!1,e[`initial-letters`]=!1,e[`inline-box-align`]=!1,e[`justify-content`]=!1,e[`justify-items`]=!1,e[`justify-self`]=!1,e.left=!1,e[`letter-spacing`]=!0,e[`lighting-color`]=!0,e[`line-box-contain`]=!1,e[`line-break`]=!1,e[`line-grid`]=!1,e[`line-height`]=!1,e[`line-snap`]=!1,e[`line-stacking`]=!1,e[`line-stacking-ruby`]=!1,e[`line-stacking-shift`]=!1,e[`line-stacking-strategy`]=!1,e[`list-style`]=!0,e[`list-style-image`]=!0,e[`list-style-position`]=!0,e[`list-style-type`]=!0,e.margin=!0,e[`margin-bottom`]=!0,e[`margin-left`]=!0,e[`margin-right`]=!0,e[`margin-top`]=!0,e[`marker-offset`]=!1,e[`marker-side`]=!1,e.marks=!1,e.mask=!1,e[`mask-box`]=!1,e[`mask-box-outset`]=!1,e[`mask-box-repeat`]=!1,e[`mask-box-slice`]=!1,e[`mask-box-source`]=!1,e[`mask-box-width`]=!1,e[`mask-clip`]=!1,e[`mask-image`]=!1,e[`mask-origin`]=!1,e[`mask-position`]=!1,e[`mask-repeat`]=!1,e[`mask-size`]=!1,e[`mask-source-type`]=!1,e[`mask-type`]=!1,e[`max-height`]=!0,e[`max-lines`]=!1,e[`max-width`]=!0,e[`min-height`]=!0,e[`min-width`]=!0,e[`move-to`]=!1,e[`nav-down`]=!1,e[`nav-index`]=!1,e[`nav-left`]=!1,e[`nav-right`]=!1,e[`nav-up`]=!1,e[`object-fit`]=!1,e[`object-position`]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e[`outline-color`]=!1,e[`outline-offset`]=!1,e[`outline-style`]=!1,e[`outline-width`]=!1,e.overflow=!1,e[`overflow-wrap`]=!1,e[`overflow-x`]=!1,e[`overflow-y`]=!1,e.padding=!0,e[`padding-bottom`]=!0,e[`padding-left`]=!0,e[`padding-right`]=!0,e[`padding-top`]=!0,e.page=!1,e[`page-break-after`]=!1,e[`page-break-before`]=!1,e[`page-break-inside`]=!1,e[`page-policy`]=!1,e.pause=!1,e[`pause-after`]=!1,e[`pause-before`]=!1,e.perspective=!1,e[`perspective-origin`]=!1,e.pitch=!1,e[`pitch-range`]=!1,e[`play-during`]=!1,e.position=!1,e[`presentation-level`]=!1,e.quotes=!1,e[`region-fragment`]=!1,e.resize=!1,e.rest=!1,e[`rest-after`]=!1,e[`rest-before`]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e[`rotation-point`]=!1,e[`ruby-align`]=!1,e[`ruby-merge`]=!1,e[`ruby-position`]=!1,e[`shape-image-threshold`]=!1,e[`shape-outside`]=!1,e[`shape-margin`]=!1,e.size=!1,e.speak=!1,e[`speak-as`]=!1,e[`speak-header`]=!1,e[`speak-numeral`]=!1,e[`speak-punctuation`]=!1,e[`speech-rate`]=!1,e.stress=!1,e[`string-set`]=!1,e[`tab-size`]=!1,e[`table-layout`]=!1,e[`text-align`]=!0,e[`text-align-last`]=!0,e[`text-combine-upright`]=!0,e[`text-decoration`]=!0,e[`text-decoration-color`]=!0,e[`text-decoration-line`]=!0,e[`text-decoration-skip`]=!0,e[`text-decoration-style`]=!0,e[`text-emphasis`]=!0,e[`text-emphasis-color`]=!0,e[`text-emphasis-position`]=!0,e[`text-emphasis-style`]=!0,e[`text-height`]=!0,e[`text-indent`]=!0,e[`text-justify`]=!0,e[`text-orientation`]=!0,e[`text-overflow`]=!0,e[`text-shadow`]=!0,e[`text-space-collapse`]=!0,e[`text-transform`]=!0,e[`text-underline-position`]=!0,e[`text-wrap`]=!0,e.top=!1,e.transform=!1,e[`transform-origin`]=!1,e[`transform-style`]=!1,e.transition=!1,e[`transition-delay`]=!1,e[`transition-duration`]=!1,e[`transition-property`]=!1,e[`transition-timing-function`]=!1,e[`unicode-bidi`]=!1,e[`vertical-align`]=!1,e.visibility=!1,e[`voice-balance`]=!1,e[`voice-duration`]=!1,e[`voice-family`]=!1,e[`voice-pitch`]=!1,e[`voice-range`]=!1,e[`voice-rate`]=!1,e[`voice-stress`]=!1,e[`voice-volume`]=!1,e.volume=!1,e[`white-space`]=!1,e.widows=!1,e.width=!0,e[`will-change`]=!1,e[`word-break`]=!0,e[`word-spacing`]=!0,e[`word-wrap`]=!0,e[`wrap-flow`]=!1,e[`wrap-through`]=!1,e[`writing-mode`]=!1,e[`z-index`]=!1,e}function n(e,t,n){}function r(e,t,n){}var i=/javascript\s*\:/gim;function a(e,t){return i.test(t)?``:t}e.whiteList=t(),e.getDefaultWhiteList=t,e.onAttr=n,e.onIgnoreAttr=r,e.safeAttrValue=a})),cMe=/* @__PURE__ */ a(((e,t)=>{t.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,``)},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,``)}}})),lMe=/* @__PURE__ */ a(((e,t)=>{var n=cMe();function r(e,t){e=n.trimRight(e),e[e.length-1]!==`;`&&(e+=`;`);var r=e.length,i=!1,a=0,o=0,s=``;function c(){if(!i){var r=n.trim(e.slice(a,o)),c=r.indexOf(`:`);if(c!==-1){var l=n.trim(r.slice(0,c)),u=n.trim(r.slice(c+1));if(l){var d=t(a,s.length,l,u,r);d&&(s+=d+`; `)}}}a=o+1}for(;o<r;o++){var l=e[o];if(l===`/`&&e[o+1]===`*`){var u=e.indexOf(`*/`,o+2);if(u===-1)break;o=u+1,a=o+1,i=!1}else l===`(`?i=!0:l===`)`?i=!1:l===`;`?i||c():l===`
581
- `&&c()}return n.trim(s)}t.exports=r})),uMe=/* @__PURE__ */ a(((e,t)=>{var n=sMe(),r=lMe();cMe();function i(e){return e==null}function a(e){var t={};for(var n in e)t[n]=e[n];return t}function o(e){e=a(e||{}),e.whiteList=e.whiteList||n.whiteList,e.onAttr=e.onAttr||n.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||n.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||n.safeAttrValue,this.options=e}o.prototype.process=function(e){if(e||=``,e=e.toString(),!e)return``;var t=this.options,n=t.whiteList,a=t.onAttr,o=t.onIgnoreAttr,s=t.safeAttrValue;return r(e,function(e,t,r,c,l){var u=n[r],d=!1;if(u===!0?d=u:typeof u==`function`?d=u(c):u instanceof RegExp&&(d=u.test(c)),d!==!0&&(d=!1),c=s(r,c),c){var f={position:t,sourcePosition:e,source:l,isWhite:d};if(d){var p=a(r,c,f);return i(p)?r+`:`+c:p}var p=o(r,c,f);if(!i(p))return p}})},t.exports=o})),wO=/* @__PURE__ */ a(((e,t)=>{var n=sMe(),r=uMe();function i(e,t){return new r(t).process(e)}for(var a in e=t.exports=i,e.FilterCSS=r,n)e[a]=n[a];typeof window<`u`&&(window.filterCSS=t.exports)})),TO=/* @__PURE__ */ a(((e,t)=>{t.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,``)},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}}})),dMe=/* @__PURE__ */ a((e=>{var t=wO().FilterCSS,n=wO().getDefaultWhiteList,r=TO();function i(){return{a:[`target`,`href`,`title`],abbr:[`title`],address:[],area:[`shape`,`coords`,`href`,`alt`],article:[],aside:[],audio:[`autoplay`,`controls`,`crossorigin`,`loop`,`muted`,`preload`,`src`],b:[],bdi:[`dir`],bdo:[`dir`],big:[],blockquote:[`cite`],br:[],caption:[],center:[],cite:[],code:[],col:[`align`,`valign`,`span`,`width`],colgroup:[`align`,`valign`,`span`,`width`],dd:[],del:[`datetime`],details:[`open`],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:[`color`,`size`,`face`],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:[`src`,`alt`,`title`,`width`,`height`,`loading`],ins:[`datetime`],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:[`width`,`border`,`align`,`valign`],tbody:[`align`,`valign`],td:[`width`,`rowspan`,`colspan`,`align`,`valign`],tfoot:[`align`,`valign`],th:[`width`,`rowspan`,`colspan`,`align`,`valign`],thead:[`align`,`valign`],tr:[`rowspan`,`align`,`valign`],tt:[],u:[],ul:[],video:[`autoplay`,`controls`,`crossorigin`,`loop`,`muted`,`playsinline`,`poster`,`preload`,`src`,`height`,`width`]}}var a=new t;function o(e,t,n){}function s(e,t,n){}function c(e,t,n){}function l(e,t,n){}function u(e){return e.replace(f,`&lt;`).replace(p,`&gt;`)}function d(e,t,n,i){if(n=D(n),t===`href`||t===`src`){if(n=r.trim(n),n===`#`)return`#`;if(n.substr(0,7)!==`http://`&&n.substr(0,8)!==`https://`&&n.substr(0,7)!==`mailto:`&&n.substr(0,4)!==`tel:`&&n.substr(0,11)!==`data:image/`&&n.substr(0,6)!==`ftp://`&&n.substr(0,2)!==`./`&&n.substr(0,3)!==`../`&&n[0]!==`#`&&n[0]!==`/`)return``}else if(t===`background`){if(y.lastIndex=0,y.test(n))return``}else if(t===`style`){if(b.lastIndex=0,b.test(n)||(x.lastIndex=0,x.test(n)&&(y.lastIndex=0,y.test(n))))return``;i!==!1&&(i||=a,n=i.process(n))}return n=O(n),n}var f=/</g,p=/>/g,m=/"/g,h=/&quot;/g,g=/&#([a-zA-Z0-9]*);?/gim,_=/&colon;?/gim,v=/&newline;?/gim,y=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,b=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,x=/u\s*r\s*l\s*\(.*/gi;function S(e){return e.replace(m,`&quot;`)}function C(e){return e.replace(h,`"`)}function w(e){return e.replace(g,function(e,t){return t[0]===`x`||t[0]===`X`?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})}function T(e){return e.replace(_,`:`).replace(v,` `)}function E(e){for(var t=``,n=0,i=e.length;n<i;n++)t+=e.charCodeAt(n)<32?` `:e.charAt(n);return r.trim(t)}function D(e){return e=C(e),e=w(e),e=T(e),e=E(e),e}function O(e){return e=S(e),e=u(e),e}function k(){return``}function A(e,t){typeof t!=`function`&&(t=function(){});var n=!Array.isArray(e);function i(t){return n?!0:r.indexOf(e,t)!==-1}var a=[],o=!1;return{onIgnoreTag:function(e,n,r){if(i(e)){if(r.isClosing){var s=`[/removed]`,c=r.position+s.length;return a.push([o===!1?r.position:o,c]),o=!1,s}return o||=r.position,`[removed]`}return t(e,n,r)},remove:function(e){var t=``,n=0;return r.forEach(a,function(r){t+=e.slice(n,r[0]),n=r[1]}),t+=e.slice(n),t}}}function ee(e){for(var t=``,n=0;n<e.length;){var r=e.indexOf(`<!--`,n);if(r===-1){t+=e.slice(n);break}t+=e.slice(n,r);var i=e.indexOf(`-->`,r);if(i===-1)break;n=i+3}return t}function te(e){var t=e.split(``);return t=t.filter(function(e){var t=e.charCodeAt(0);return t===127?!1:t<=31?t===10||t===13:!0}),t.join(``)}e.whiteList=i(),e.getDefaultWhiteList=i,e.onTag=o,e.onIgnoreTag=s,e.onTagAttr=c,e.onIgnoreTagAttr=l,e.safeAttrValue=d,e.escapeHtml=u,e.escapeQuote=S,e.unescapeQuote=C,e.escapeHtmlEntities=w,e.escapeDangerHtml5Entities=T,e.clearNonPrintableCharacter=E,e.friendlyAttrValue=D,e.escapeAttrValue=O,e.onIgnoreTagStripAll=k,e.StripTagBody=A,e.stripCommentTag=ee,e.stripBlankChar=te,e.attributeWrapSign=`"`,e.cssFilter=a,e.getDefaultCSSWhiteList=n})),fMe=/* @__PURE__ */ a((e=>{var t=TO();function n(e){var n=t.spaceIndex(e),r=n===-1?e.slice(1,-1):e.slice(1,n+1);return r=t.trim(r).toLowerCase(),r.slice(0,1)===`/`&&(r=r.slice(1)),r.slice(-1)===`/`&&(r=r.slice(0,-1)),r}function r(e){return e.slice(0,2)===`</`}function i(e,t,i){var a=``,o=0,s=!1,c=!1,l=0,u=e.length,d=``,f=``;chariterator:for(l=0;l<u;l++){var p=e.charAt(l);if(s===!1){if(p===`<`){s=l;continue}}else if(c===!1){if(p===`<`){a+=i(e.slice(o,l)),s=l,o=l;continue}if(p===`>`||l===u-1){a+=i(e.slice(o,s)),f=e.slice(s,l+1),d=n(f),a+=t(s,a.length,d,f,r(f)),o=l+1,s=!1;continue}if(p===`"`||p===`'`)for(var m=1,h=e.charAt(l-m);h.trim()===``||h===`=`;){if(h===`=`){c=p;continue chariterator}h=e.charAt(l-++m)}}else if(p===c){c=!1;continue}}return o<u&&(a+=i(e.substr(o))),a}var a=/[^a-zA-Z0-9\\_:.-]/gim;function o(e,n){var r=0,i=0,o=[],u=!1,f=e.length;function p(e,r){if(e=t.trim(e),e=e.replace(a,``).toLowerCase(),!(e.length<1)){var i=n(e,r||``);i&&o.push(i)}}for(var m=0;m<f;m++){var h=e.charAt(m),g,_;if(u===!1&&h===`=`)u=e.slice(r,m),r=m+1,i=e.charAt(r)===`"`||e.charAt(r)===`'`?r:c(e,m+1);else if(u!==!1&&m===i){if(_=e.indexOf(h,m+1),_===-1)break;g=t.trim(e.slice(i+1,_)),p(u,g),u=!1,m=_,r=m+1}else if(/\s|\n|\t/.test(h)){if(e=e.replace(/\s|\n|\t/g,` `),u===!1){if(_=s(e,m),_===-1){g=t.trim(e.slice(r,m)),p(g),u=!1,r=m+1;continue}m=_-1;continue}if(_=l(e,m-1),_===-1){g=t.trim(e.slice(r,m)),g=d(g),p(u,g),u=!1,r=m+1;continue}}}return r<e.length&&(u===!1?p(e.slice(r)):p(u,d(t.trim(e.slice(r))))),t.trim(o.join(` `))}function s(e,t){for(;t<e.length;t++){var n=e[t];if(n!==` `)return n===`=`?t:-1}}function c(e,t){for(;t<e.length;t++){var n=e[t];if(n!==` `)return n===`'`||n===`"`?t:-1}}function l(e,t){for(;t>0;t--){var n=e[t];if(n!==` `)return n===`=`?t:-1}}function u(e){return e[0]===`"`&&e[e.length-1]===`"`||e[0]===`'`&&e[e.length-1]===`'`}function d(e){return u(e)?e.substr(1,e.length-2):e}e.parseTag=i,e.parseAttr=o})),pMe=/* @__PURE__ */ a(((e,t)=>{var n=wO().FilterCSS,r=dMe(),i=fMe(),a=i.parseTag,o=i.parseAttr,s=TO();function c(e){return e==null}function l(e){var t=s.spaceIndex(e);if(t===-1)return{html:``,closing:e[e.length-2]===`/`};e=s.trim(e.slice(t+1,-1));var n=e[e.length-1]===`/`;return n&&(e=s.trim(e.slice(0,-1))),{html:e,closing:n}}function u(e){var t={};for(var n in e)t[n]=e[n];return t}function d(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map(function(e){return e.toLowerCase()}):t[n.toLowerCase()]=e[n];return t}function f(e){e=u(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error(`Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time`),e.onIgnoreTag=r.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=d(e.whiteList||e.allowList):e.whiteList=r.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?`'`:r.attributeWrapSign,e.onTag=e.onTag||r.onTag,e.onTagAttr=e.onTagAttr||r.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||r.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||r.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,e.escapeHtml=e.escapeHtml||r.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new n(e.css))}f.prototype.process=function(e){if(e||=``,e=e.toString(),!e)return``;var t=this,n=t.options,i=n.whiteList,u=n.onTag,d=n.onIgnoreTag,f=n.onTagAttr,p=n.onIgnoreTagAttr,m=n.safeAttrValue,h=n.escapeHtml,g=t.attributeWrapSign,_=t.cssFilter;n.stripBlankChar&&(e=r.stripBlankChar(e)),n.allowCommentTag||(e=r.stripCommentTag(e));var v=!1;n.stripIgnoreTagBody&&(v=r.StripTagBody(n.stripIgnoreTagBody,d),d=v.onIgnoreTag);var y=a(e,function(e,t,n,r,a){var v={sourcePosition:e,position:t,isClosing:a,isWhite:Object.prototype.hasOwnProperty.call(i,n)},y=u(n,r,v);if(!c(y))return y;if(v.isWhite){if(v.isClosing)return`</`+n+`>`;var b=l(r),x=i[n],S=o(b.html,function(e,t){var r=s.indexOf(x,e)!==-1,i=f(n,e,t,r);return c(i)?r?(t=m(n,e,t,_),t?e+`=`+g+t+g:e):(i=p(n,e,t,r),c(i)?void 0:i):i});return r=`<`+n,S&&(r+=` `+S),b.closing&&(r+=` /`),r+=`>`,r}return y=d(n,r,v),c(y)?h(r):y},h);return v&&(y=v.remove(y)),y},t.exports=f})),mMe=/* @__PURE__ */ r((/* @__PURE__ */ a(((e,t)=>{var n=dMe(),r=fMe(),i=pMe();function a(e,t){return new i(t).process(e)}e=t.exports=a,e.filterXSS=a,e.FilterXSS=i,(function(){for(var t in n)e[t]=n[t];for(var i in r)e[i]=r[i]})(),typeof window<`u`&&(window.filterXSS=t.exports);function o(){return typeof self<`u`&&typeof DedicatedWorkerGlobalScope<`u`&&self instanceof DedicatedWorkerGlobalScope}o()&&(self.filterXSS=t.exports)})))(),1);const hMe=/\{\{\s*([\w.\-]+)\s*\}\}/g,gMe=[`script`,`style`,`iframe`,`object`,`embed`,`form`,`link`,`meta`,`base`];function _Me(e){return(0,mMe.default)(e,{whiteList:{},stripIgnoreTag:!0,stripIgnoreTagBody:gMe})}function EO(e,t){return!t||Object.keys(t).length===0||!e.includes(`{{`)?e:e.replace(hMe,(e,n)=>{let r=t[n];return r===void 0?e:_Me(r)})}const DO=/^[A-Za-z_$][\w$]*$/,OO=e=>({type:`Literal`,value:e}),kO=e=>({type:`Identifier`,name:e}),vMe=e=>e.type===`ParenthesizedExpression`?vMe(e.expression):e,AO=(e,t,n)=>{if(!e)return{ok:!1,reason:`expression`};switch(e.type){case`ParenthesizedExpression`:return AO(e.expression,t,n);case`Literal`:{if(`regex`in e||`bigint`in e)return{ok:!1,reason:`expression`};let{value:t}=e;return t===null||typeof t==`string`||typeof t==`boolean`||typeof t==`number`&&Number.isFinite(t)?{ok:!0,expression:OO(t)}:{ok:!1,reason:`expression`}}case`TemplateLiteral`:return e.expressions.length>0?{ok:!1,reason:`expression`}:{ok:!0,expression:OO(e.quasis.map(e=>e.value.cooked??e.value.raw).join(``))};case`UnaryExpression`:{let t=vMe(e.argument);return e.operator===`-`&&t.type===`Literal`&&typeof t.value==`number`&&Number.isFinite(t.value)?{ok:!0,expression:{type:`UnaryExpression`,operator:`-`,prefix:!0,argument:OO(t.value)}}:{ok:!1,reason:`expression`}}case`ArrayExpression`:{let r=[];for(let i of e.elements){if(!i||i.type===`SpreadElement`)return{ok:!1,reason:`expression`};let e=AO(i,t,n);if(!e.ok)return e;r.push(e.expression)}return{ok:!0,expression:{type:`ArrayExpression`,elements:r}}}case`ObjectExpression`:{let r=[];for(let i of e.properties){if(i.type===`SpreadElement`||i.computed)return{ok:!1,reason:`expression`};if(i.kind!==`init`||i.method)return{ok:!1,reason:`function`};let e;if(i.key.type===`Identifier`?e=i.key.name:i.key.type===`Literal`&&(typeof i.key.value==`string`||typeof i.key.value==`number`)&&(e=String(i.key.value)),e===void 0)return{ok:!1,reason:`expression`};if(SO.has(e))return{ok:!1,reason:`key`,name:e};let a=AO(i.value,t,n);if(!a.ok)return a;let o={type:`Property`,key:DO.test(e)?kO(e):OO(e),value:a.expression,kind:`init`,method:!1,shorthand:!1,computed:!1};r.push(o)}return{ok:!0,expression:{type:`ObjectExpression`,properties:r}}}case`Identifier`:{if(e.name===`undefined`)return{ok:!0,expression:kO(`undefined`)};let r=t?.get(e.name);return r?r.expression?(n.add(e.name),{ok:!0,expression:kO(e.name)}):{ok:!1,reason:`const`,name:e.name}:{ok:!1,reason:`identifier`,name:e.name}}case`ArrowFunctionExpression`:case`FunctionExpression`:return{ok:!1,reason:`function`};case`JSXElement`:case`JSXFragment`:return{ok:!1,reason:`jsx`};default:return{ok:!1,reason:`expression`}}},jO=(e,t=0)=>{if(!(t>32)){if(e===void 0)return kO(`undefined`);if(e===null||typeof e==`string`||typeof e==`boolean`)return OO(e);if(typeof e==`number`)return Number.isFinite(e)?e<0||Object.is(e,-0)?{type:`UnaryExpression`,operator:`-`,prefix:!0,argument:OO(-e)}:OO(e):void 0;if(Array.isArray(e)){let n=[];for(let r of e){let e=jO(r,t+1);if(!e)return;n.push(e)}return{type:`ArrayExpression`,elements:n}}if(typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype){let n=[];for(let[r,i]of Object.entries(e)){if(SO.has(r))return;let e=jO(i,t+1);if(!e)return;n.push({type:`Property`,key:DO.test(r)?kO(r):OO(r),value:e,kind:`init`,method:!1,shorthand:!1,computed:!1})}return{type:`ObjectExpression`,properties:n}}}},MO=e=>e.position?.start.line,yMe=e=>{if(e.type===`ImportDefaultSpecifier`)return{imported:`default`};if(e.type===`ImportNamespaceSpecifier`)return{imported:`*`};let t=ETe(e);return YT(t)?{imported:t}:{imported:t,invalidName:!0}},bMe=(e,t)=>{let n=[],r=e=>{if(st(e)){let r=VTe(e,t);for(let t of e.data?.estree?.body??[])n.push({statement:t,line:t.loc?.start.line??MO(e),importer:r})}else if(`children`in e)for(let t of e.children)r(t)};return r(e),n},xMe=(e,t)=>`${e===`*`||YT(e)?e:JSON.stringify(e)} from "${t}"`,SMe=(e,t)=>{let n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Map,i=[],a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Set,s=/* @__PURE__ */ new Map,c=/* @__PURE__ */ new Set,l=(e,t,n,r)=>{let a=s.get(e);if(!a){s.set(e,{described:t,island:n});return}let o=JSON.stringify([e,t]);a.described!==t&&(a.island||n)&&!c.has(o)&&(c.add(o),i.push({line:r,message:`${e} is imported twice on this page, as ${a.described} and as ${t}. Snippets on a page share its imports, so import one of them under another name.`}))};for(let{statement:i,importer:s,line:c}of e){if(i.type!==`ImportDeclaration`)continue;let e=i.source.value;if(typeof e!=`string`)continue;let u=iE(e,t.packageNames),d=!u&&aE(e),f=u||d?null:GT(e,s),p=f!==null&&(t.packageSnippets?t.packageSnippets.has(f):oE(f)),m=p?f:e;(u||p)&&(o.add(m),i.specifiers.length===0&&!a.has(m)&&a.set(m,c));for(let t of i.specifiers){let i=t.local.name,a=yMe(t);l(i,xMe(a.imported,m),u||d||p,c),d?r.set(i,e):(u||p)&&n.set(i,Object.assign({source:m,kind:u?`package`:`snippet`,local:i},a))}}return{bindings:n,undeclared:r,conflicts:i,sideEffects:a,order:[...o]}},CMe=(e,t)=>{let n=/* @__PURE__ */ new Map;for(let[e,r]of Object.entries(t.exportedConsts??{}))DO.test(e)&&n.set(e,{expression:jO(r)});let r=/* @__PURE__ */ new Set;for(let{statement:t}of e){if(t.type!==`ExportNamedDeclaration`)continue;let e=t.declaration;if(e?.type===`VariableDeclaration`)for(let t of e.declarations){if(t.id.type!==`Identifier`)continue;let i=e.kind===`const`?AO(t.init,void 0,r):void 0;n.set(t.id.name,{expression:i?.ok?i.expression:void 0})}}return n},wMe=e=>e.includes(`:`)?void 0:e.split(`.`)[0],TMe=(e,t)=>{let n=[];return cE(e,{enter(e,r,i){if(e.type===`JSXIdentifier`){if(r?.type===`JSXAttribute`||r?.type===`JSXMemberExpression`&&i===`property`||r?.type===`JSXNamespacedName`)return;t.has(e.name)&&n.push({name:e.name,jsx:!0,line:e.loc?.start.line})}else e.type===`Identifier`&&t.has(e.name)&&(r?.type!==`MemberExpression`||i!==`property`||r.computed)&&(r?.type!==`Property`||i!==`key`||r.computed)&&r?.type!==`ImportSpecifier`&&r?.type!==`ImportDefaultSpecifier`&&r?.type!==`ImportNamespaceSpecifier`&&n.push({name:e.name,jsx:!1,line:e.loc?.start.line})}}),n},EMe=/* @__PURE__ */ new Set([`table`,`thead`,`tbody`,`tfoot`,`tr`,`colgroup`,`svg`]),DMe=/* @__PURE__ */ new Set([`foreignObject`,`desc`,`title`]),OMe=/* @__PURE__ */ new Set([`head`,`script`]),kMe=e=>e.spread===null||e.spread===void 0?e.children.length>1:e.spread,AMe=e=>!!e.spread||e.children.some(kMe),NO=e=>/^[a-z]/.test(e)&&!e.includes(`.`),jMe=(e,t)=>e===`p`?`p`:!e||!NO(e)||t===`p`||t===`paragraph`||t&&OMe.has(t)?t:OMe.has(e)?e:t===`svg`?!DMe.has(e)&&t:EMe.has(e)?e:e===`form`&&t,MMe=e=>e.type===`JSXIdentifier`?e.name:e.type===`JSXNamespacedName`?`${e.namespace.name}:${e.name.name}`:`${MMe(e.object)}.${e.property.name}`,PO=e=>e.type===`FunctionDeclaration`||e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`,FO=(e,t)=>{if(!t&&e.type===`Identifier`)return e.name;if(e.type===`Literal`&&typeof e.value==`string`)return e.value},IO=(e,t,n)=>{if(e.type===`Identifier`)n.set(e.name,t);else if(e.type===`AssignmentPattern`)IO(e.left,t,n);else if(e.type===`RestElement`)IO(e.argument,t,n);else if(e.type===`ArrayPattern`)for(let t of e.elements)t&&IO(t,!1,n);else if(e.type===`ObjectPattern`){let r=e.properties.some(e=>e.type===`Property`&&FO(e.key,e.computed)===`children`);for(let i of e.properties)if(i.type===`RestElement`)IO(i.argument,t===`props`&&!r&&`props`,n);else{let e=t===`props`&&FO(i.key,i.computed)===`children`&&`children`;IO(i.value,e,n)}}},NMe=(e,t)=>{for(let n=t.length-1;n>=0;n--){let r=t[n];if(r?.has(e))return r.get(e)??!1}return!1},LO=(e,t)=>e?.type===`Identifier`?NMe(e.name,t):e?.type===`ChainExpression`?LO(e.expression,t):e?.type===`MemberExpression`&&LO(e.object,t)===`props`&&FO(e.property,e.computed)===`children`&&`children`,PMe=e=>{let t=/* @__PURE__ */ new Map;for(let n of e.body)if(n.type===`VariableDeclaration`)for(let e of n.declarations)IO(e.id,!1,t);else(n.type===`FunctionDeclaration`||n.type===`ClassDeclaration`)&&n.id&&t.set(n.id.name,!1);return t},FMe=(e,t)=>{if(e.children.some(e=>e.type!==`JSXText`||e.value.trim().length>0))return!1;let n=e.openingElement.attributes,r=n.indexOf(t);return!n.slice(r+1).some(e=>e.type===`JSXAttribute`&&e.name.name===`children`)},IMe=e=>{let t=[],n=[],r=[],i=[],a=[];return cE(e,{enter(o,s,c){if(PO(o)){if(o!==e&&n.length===0){this.skip();return}let r=/* @__PURE__ */ new Map;for(let[t,n]of o.params.entries())IO(n,o===e&&t===0&&`props`,r);t.push(r)}else if(o.type===`BlockStatement`)t.push(PMe(o));else if(o.type===`CatchClause`){let e=/* @__PURE__ */ new Map;o.param&&IO(o.param,!1,e),t.push(e)}else if(o.type===`VariableDeclarator`){let e=t.at(-1);e&&IO(o.id,LO(o.init,t),e)}else if(o.type===`JSXElement`)n.push(MMe(o.openingElement.name)),r.push(o);else if(o.type===`JSXFragment`)n.push(null),r.push(null);else if(o.type===`JSXExpressionContainer`)i.push(s?.type===`JSXElement`||s?.type===`JSXFragment`||s?.type===`JSXAttribute`&&s.name.name===`children`);else if(o.type===`JSXSpreadAttribute`){let e=r.at(-1);e&&LO(o.argument,t)===`props`&&FMe(e,o)&&a.push([...n])}else i.at(-1)&&n.length>0&&LO(o,t)===`children`&&(s?.type!==`Property`||c!==`key`||s.computed)&&(s?.type!==`MemberExpression`||c!==`property`||s.computed)&&a.push([...n])},leave(e){PO(e)||e.type===`BlockStatement`||e.type===`CatchClause`?t.pop():e.type===`JSXElement`||e.type===`JSXFragment`?(n.pop(),r.pop()):e.type===`JSXExpressionContainer`&&i.pop()}}),a},LMe=e=>{let t=/* @__PURE__ */ new Map;for(let{statement:n}of e){if(n.type!==`ExportNamedDeclaration`)continue;let e=n.declaration;if(e?.type===`FunctionDeclaration`&&e.id){let n=IMe(e);n.length>0&&t.set(e.id.name,n)}else if(e?.type===`VariableDeclaration`)for(let n of e.declarations){if(n.id.type!==`Identifier`||!n.init||!PO(n.init))continue;let e=IMe(n.init);e.length>0&&t.set(n.id.name,e)}}return t},RMe=(e,t,n,r=/* @__PURE__ */ new Set)=>{if(e===null||NO(e))return jMe(e,t);let i=/* @__PURE__ */ new Set([...r,e]);for(let a of r.has(e)?[]:n.get(e)??[]){let e=a.reduce((e,t)=>RMe(t,e,n,i),t);if(e)return e}return t},zMe=/* @__PURE__ */ new Set([`script`,`style`,`iframe`,`object`,`embed`,`form`,`base`,`meta`,`link`,`foreignobject`]),RO=`Move this into a snippet.`,BMe=new Set(dt),VMe=/* @__PURE__ */ new Map([[`a`,`href`],[`img`,`src`],[`source`,`src`]]),zO=e=>({type:`JSXExpressionContainer`,expression:e}),BO=e=>{if(e.includes(`:`)){let[t=``,n=``]=e.split(`:`);return{type:`JSXNamespacedName`,namespace:{type:`JSXIdentifier`,name:t},name:{type:`JSXIdentifier`,name:n}}}let[t=``,...n]=e.split(`.`),r={type:`JSXIdentifier`,name:t};for(let e of n)r={type:`JSXMemberExpression`,object:r,property:{type:`JSXIdentifier`,name:e}};return r},VO=(e,t,n)=>{let r=BO(e),i=n.length===0;return{type:`JSXElement`,openingElement:{type:`JSXOpeningElement`,name:r,attributes:t,selfClosing:i},closingElement:i?null:{type:`JSXClosingElement`,name:BO(e)},children:n}},HO=(e,t)=>{let n=BO(e);return{type:`JSXAttribute`,name:n.type===`JSXMemberExpression`?{type:`JSXIdentifier`,name:e}:n,value:t?zO(t):null}},UO=()=>zO(OO(`
582
- `)),HMe=e=>[UO(),...e.flatMap((e,t)=>t>0?[UO(),...e]:e),...e.length>0?[UO()]:[]],UMe=e=>e.replace(/[\t ]*(\r?\n|\r)[\t ]*/g,`$1`),WO=e=>e.replace(/^[\t ]+/,``),WMe=e=>e.replace(/\r?\n|\r/g,` `),GMe=e=>{switch(e.type){case`text`:return Object.assign(Object.assign({},e),{value:WO(e.value)});case`inlineCode`:return Object.assign(Object.assign({},e),{value:WO(WMe(e.value))});case`strong`:case`emphasis`:case`delete`:case`link`:{let[t,...n]=e.children;return t?.type===`text`?Object.assign(Object.assign({},e),{children:[Object.assign(Object.assign({},t),{value:WO(t.value)}),...n]}):e}default:return e}},KMe=e=>e.type===`mdxJsxTextElement`||e.type===`mdxTextExpression`,GO=e=>e.flatMap(e=>e.type===`paragraph`&&e.children.some(KMe)&&e.children.every(e=>KMe(e)||e.type===`text`&&/^[\t\n\v\f\r ]*$/.test(e.value))?e.children.filter(e=>e.type!==`text`||!/^[\t\r\n ]+$/.test(e.value)):[e]),KO=(e,t,n)=>{let r=(n===void 0?void 0:JE(n))||QE(t);return r?e.claim(r):void 0},qMe=new Map(_O.map(e=>[`h${e}`,e])),JMe=(e,t=40)=>e.length>t?`${e.slice(0,t-1)}…`:e;var YMe=class{constructor(e,t,n,r,i,a,o,s){this.rootName=e,this.pagePath=t,this.bindings=n,this.undeclared=r,this.consts=i,this.sideEffects=a,this.order=o,this.headingSlugs=s,this.usedBindings=/* @__PURE__ */ new Map,this.usedConsts=/* @__PURE__ */ new Set,this.errors=[],this.headings=[]}url(e,t){return OO(oMe(this.pagePath,e,t))}fail(e,t){this.errors.push({line:MO(e),message:t})}insideRoot(){return`the package component <${this.rootName}>`}element(e){if(!e.name)return{type:`JSXFragment`,openingFragment:{type:`JSXOpeningFragment`},closingFragment:{type:`JSXClosingFragment`},children:this.children(e.children)};let t=e.name,n=wMe(t),r=n===void 0?void 0:this.bindings.get(n);if(r?.invalidName){this.fail(e,`<${t}> is imported from "${r.source}" by the string name ${JSON.stringify(r.imported)}, which isn't a valid identifier. Import it by an identifier name, or move this into a snippet.`);return}if(r&&n!==void 0)this.usedBindings.set(n,r);else if(NO(t)){if(zMe.has(t.toLowerCase())){this.fail(e,`<${t}> isn't allowed inside ${this.insideRoot()}.`);return}}else if(n!==void 0&&this.undeclared.has(n)){this.fail(e,`<${t}> is imported from "${this.undeclared.get(n)}", which isn't listed in package.json dependencies.`);return}else if(BMe.has(t)){this.fail(e,`<${t}> is a Mintlify component and can't render inside ${this.insideRoot()}. Move <${t}> outside <${this.rootName}>.`);return}else{this.fail(e,`<${t}> isn't imported from a package or a package snippet, so it can't render inside ${this.insideRoot()}. ${RO}`);return}let i=[];for(let n of e.attributes){let r=this.attribute(e,t,n);r&&i.push(r)}let a=qMe.get(t);return a!==void 0&&this.addHeadingId(e,a,i),VO(t,i,this.children(e.children))}addHeadingId(e,t,n){let r=n.findIndex(e=>e.name.type===`JSXIdentifier`&&e.name.name===`id`),i;if(r!==-1){let e=n[r]?.value;if(e?.type!==`JSXExpressionContainer`||e.expression.type!==`Literal`||typeof e.expression.value!=`string`)return;i=e.expression.value}let a=this.headingTitle(e),o=KO(this.headingSlugs,a,i);if(o===void 0)return;let s=HO(`id`,OO(JE(o)));r===-1?n.unshift(s):n[r]=s,a.trim()&&this.headings.push({title:a,slug:o,depth:t})}headingTitle(e){return`children`in e?e.children.map((e,t,n)=>{if(e.type!==`mdxTextExpression`&&e.type!==`mdxFlowExpression`)return`children`in e?this.headingTitle(e):Ue(e,t,n);let r=(e.data?.estree)?.body[0];if(r?.type!==`ExpressionStatement`)return``;let i=AO(r.expression,this.consts,/* @__PURE__ */ new Set);if(!i.ok)return``;let a=i.expression.type===`Identifier`?this.consts.get(i.expression.name)?.expression:i.expression;return a?.type===`Literal`&&(typeof a.value==`string`||typeof a.value==`number`)?String(a.value):``}).join(``):Ue(e)}attribute(e,t,n){let r=n.position?n:e;if(n.type===`mdxJsxExpressionAttribute`){this.fail(r,`<${t}> spreads props ({...}), which can't be evaluated at build time. ${RO}`);return}let i=`Prop "${n.name}" on <${t}>`;if(/^on[A-Z]/.test(n.name)||NO(t)&&/^on/i.test(n.name)){this.fail(r,`${i} is an event handler, and package components in MDX only take static props. ${RO}`);return}if(n.name===`dangerouslySetInnerHTML`||n.name===`ref`){this.fail(r,`${i} isn't allowed inside ${this.insideRoot()}.`);return}if(n.value===null||n.value===void 0)return HO(n.name,null);if(typeof n.value==`string`){if(n.name===`style`&&NO(t)){let e=Pje(n.value),t=jO(e);if(t)return HO(`style`,t);let a=Object.keys(e).find(e=>SO.has(e));this.fail(r,this.propFailure(i,{reason:`key`,name:a}));return}return HO(n.name,VMe.get(t)===n.name?this.url(n.value,n.name===`href`):OO(n.value))}let a=n.value.data?.estree,o=a?.body[0];if(!a||a.body.length!==1||o?.type!==`ExpressionStatement`){this.fail(r,`${i} is an expression that can't be evaluated at build time. ${RO}`);return}let s=AO(o.expression,this.consts,this.usedConsts);if(s.ok)return HO(n.name,s.expression);this.fail(r,this.propFailure(i,s))}propFailure(e,t){switch(t.reason){case`function`:return`${e} is a function, and package components in MDX only take static props. ${RO}`;case`jsx`:return`${e} is JSX, and package components in MDX only take static props. ${RO}`;case`identifier`:return`${e} uses "${t.name}", which isn't a literal \`export const\` in this page. ${RO}`;case`const`:return`${e} uses \`export const ${t.name}\`, whose value isn't a literal (strings, numbers, booleans, arrays and objects only). ${RO}`;case`key`:return`${e} uses the object key "${t.name}", which isn't allowed.`;case`expression`:return`${e} is an expression that can't be evaluated at build time. ${RO}`}}intrinsic(e,t,n=[]){return VO(e,n,this.children(t))}children(e){let t=[],n=!1;for(let r of GO(e)){let e=this.child(n?GMe(r):r);n=r.type===`break`,e&&t.push(...e)}return t}child(e){switch(e.type){case`mdxJsxFlowElement`:case`mdxJsxTextElement`:{let t=this.element(e);return t?[t]:void 0}case`text`:{let t=UMe(e.value);return t===``?[]:[zO(OO(t))]}case`paragraph`:return[this.intrinsic(`p`,e.children)];case`strong`:return[this.intrinsic(`strong`,e.children)];case`emphasis`:return[this.intrinsic(`em`,e.children)];case`delete`:return[this.intrinsic(`del`,e.children)];case`inlineCode`:return[VO(`code`,[],[zO(OO(WMe(e.value)))])];case`break`:return[VO(`br`,[],[]),UO()];case`thematicBreak`:return[VO(`hr`,[],[])];case`blockquote`:return[VO(`blockquote`,[],HMe(GO(e.children).map(e=>this.child(e)??[])))];case`heading`:{let t=[];return _O.includes(e.depth)&&this.addHeadingId(e,e.depth,t),[this.intrinsic(`h${e.depth}`,e.children,t)]}case`link`:{let t=[HO(`href`,this.url(e.url,!0))];return e.title&&t.push(HO(`title`,OO(e.title))),[this.intrinsic(`a`,e.children,t)]}case`image`:{let t=[HO(`src`,this.url(e.url,!1)),HO(`alt`,OO(e.alt??``))];return e.title&&t.push(HO(`title`,OO(e.title))),[VO(`img`,t,[])]}case`code`:{let t=e.lang?[HO(`className`,OO(`language-${e.lang}`))]:[];return[VO(`pre`,[],[VO(`code`,t,[zO(OO(e.value))])])]}case`list`:{let t=AMe(e),n=e.ordered&&typeof e.start==`number`&&e.start!==1?[HO(`start`,OO(e.start))]:[];return e.children.some(e=>typeof e.checked==`boolean`)&&n.push(HO(`className`,OO(`contains-task-list`))),[VO(e.ordered?`ol`:`ul`,n,HMe(e.children.map(e=>[this.listItem(e,t)])))]}case`table`:{let[t,...n]=e.children,r=(e,t)=>VO(`tr`,[],e.map(e=>this.intrinsic(t,`children`in e?e.children:[]))),i=[];return t&&i.push(VO(`thead`,[],[r(t.children,`th`)])),n.length>0&&i.push(VO(`tbody`,[],n.map(e=>r(e.children,`td`)))),[VO(`table`,[],i)]}case`mdxFlowExpression`:case`mdxTextExpression`:{let t=e.data?.estree;if(t&&t.body.length===0)return[];let n=t?.body[0];if(t?.body.length===1&&n?.type===`ExpressionStatement`){let e=AO(n.expression,this.consts,this.usedConsts);if(e.ok&&this.isRenderableText(e.expression))return[zO(e.expression)]}this.fail(e,`{${JMe(e.value.trim())}} inside ${this.insideRoot()} can't be evaluated at build time. ${RO}`);return}default:this.fail(e,`Markdown ${e.type} content isn't supported inside ${this.insideRoot()}. ${RO}`);return}}listItem(e,t){let n=GO(e.children).map(e=>e.type===`paragraph`?{p:!0,empty:e.children.length===0,children:this.children(e.children)}:{p:!1,empty:!1,children:this.child(e)??[]}),r=[];if(typeof e.checked==`boolean`){let t=VO(`input`,[HO(`type`,OO(`checkbox`)),HO(`checked`,OO(e.checked)),HO(`disabled`,null)],[]),[i]=n;i?.p?i.children.unshift(t,...i.empty?[]:[zO(OO(` `))]):n.unshift({p:!0,empty:!0,children:[t]}),r.push(HO(`className`,OO(`task-list-item`)))}let i=n.flatMap(({p:e,children:n},r)=>[...t||r>0||!e?[UO()]:[],...e&&t?[VO(`p`,[],n)]:n]),a=n.at(-1);return a&&(t||!a.p)&&i.push(UO()),VO(`li`,r,i)}isRenderableText(e){if(e.type===`Literal`)return typeof e.value==`string`||typeof e.value==`number`;if(e.type===`UnaryExpression`)return!0;if(e.type!==`Identifier`||e.name===`undefined`)return!1;let t=this.consts.get(e.name)?.expression;return t!==void 0&&this.isRenderableText(t)&&t.type!==`Identifier`}module(e){let t=[],n=/* @__PURE__ */ new Map;for(let e of[...this.usedBindings.values()].sort((e,t)=>qO(e.local,t.local)))n.set(e.source,[...n.get(e.source)??[],e]);let r=this.sideEffects.size===0?[...n.keys()].sort(qO):this.order.filter(e=>n.has(e)||this.sideEffects.has(e));for(let e of r){let r=n.get(e)??[],i=t=>({type:`ImportDeclaration`,specifiers:t,source:{type:`Literal`,value:e}}),[a,...o]=r.filter(e=>e.imported==="default"),s=r.filter(e=>e.imported!=="default"&&e.imported!==`*`),c=[];a&&c.push({type:`ImportDefaultSpecifier`,local:kO(a.local)});for(let e of s)c.push({type:`ImportSpecifier`,imported:kO(e.imported),local:kO(e.local)});(c.length>0||r.length===0)&&t.push(i(c));for(let e of o)t.push(i([{type:`ImportDefaultSpecifier`,local:kO(e.local)}]));for(let e of r.filter(e=>e.imported===`*`))t.push(i([{type:`ImportNamespaceSpecifier`,local:kO(e.local)}]))}for(let e of[...this.usedConsts].sort(qO)){let n=this.consts.get(e)?.expression;n&&t.push({type:`VariableDeclaration`,kind:`const`,declarations:[{type:`VariableDeclarator`,id:kO(e),init:n}]})}let i=/* @__PURE__ */ new Set([...this.usedBindings.keys(),...this.usedConsts]),a=`Island`;for(;i.has(a);)a=`${a}_`;return t.push({type:`ExportDefaultDeclaration`,declaration:{type:`FunctionDeclaration`,id:kO(a),params:[],generator:!1,async:!1,body:{type:`BlockStatement`,body:[{type:`ReturnStatement`,argument:e}]}}}),HT({type:`Program`,sourceType:`module`,body:t},{handlers:UT}).value}imports(){return[...this.usedBindings.values()].map(({local:e,source:t,imported:n})=>({local:e,pkg:t,imported:n})).sort((e,t)=>qO(e.local,t.local))}};const qO=(e,t)=>e<t?-1:+(e>t),XMe=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),JO=(e,t)=>e>>>t|e<<32-t,YO=(e,t)=>e[t]??0,ZMe=e=>{let t=new TextEncoder().encode(e),n=t.length*8,r=Math.ceil((t.length+9)/64)*64,i=new Uint8Array(r);i.set(t),i[t.length]=128;let a=new DataView(i.buffer);a.setUint32(r-8,Math.floor(n/4294967296)),a.setUint32(r-4,n>>>0);let o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=/* @__PURE__ */ new Uint32Array(64);for(let e=0;e<r;e+=64){for(let t=0;t<16;t++)s[t]=a.getUint32(e+t*4);for(let e=16;e<64;e++){let t=YO(s,e-15),n=YO(s,e-2),r=JO(t,7)^JO(t,18)^t>>>3,i=JO(n,17)^JO(n,19)^n>>>10;s[e]=YO(s,e-16)+r+YO(s,e-7)+i>>>0}let t=YO(o,0),n=YO(o,1),r=YO(o,2),i=YO(o,3),c=YO(o,4),l=YO(o,5),u=YO(o,6),d=YO(o,7);for(let e=0;e<64;e++){let a=JO(c,6)^JO(c,11)^JO(c,25),o=c&l^~c&u,f=d+a+o+YO(XMe,e)+YO(s,e)>>>0,p=(JO(t,2)^JO(t,13)^JO(t,22))+(t&n^t&r^n&r)>>>0;d=u,u=l,l=c,c=i+f>>>0,i=r,r=n,n=t,t=f+p>>>0}o[0]=YO(o,0)+t>>>0,o[1]=YO(o,1)+n>>>0,o[2]=YO(o,2)+r>>>0,o[3]=YO(o,3)+i>>>0,o[4]=YO(o,4)+c>>>0,o[5]=YO(o,5)+l>>>0,o[6]=YO(o,6)+u>>>0,o[7]=YO(o,7)+d>>>0}return Array.from(o,e=>e.toString(16).padStart(8,`0`)).join(``)},QMe=/\.css(?:[?#].*)?$/,$Me=e=>`i${ZMe(e).slice(0,16)}`,eNe=(e,t)=>`${e.endsWith(`
583
- `)?e:`${e}\n`}// placement ${t}\n`,tNe=e=>{let t=e.children.filter(e=>e.type!==`text`||e.value.trim()!==``);return t.length===1?t[0]:void 0},nNe=(e,t)=>{let n=bMe(e,t.pagePath),{bindings:r,undeclared:i,conflicts:a,sideEffects:o,order:s}=SMe(n,t),c=/* @__PURE__ */ new Map,l=[...a],u=[],d=()=>l.length>0||u.length>0?[]:[...o].map(([e,t])=>({line:t,code:`side-effect-import-without-island`,message:QMe.test(e)?`"${e}" is imported on a page without package components, so it never loads. Use a package component on this page or remove this import.`:`"${e}" is imported on a page without package components, so it never runs. Use a package component on this page or remove this import.`}));if(r.size===0&&i.size===0)return{islands:[],errors:[...l,...d()],roots:u};let f=CMe(n,t),p=LMe(n),m=(e,t)=>{for(let n of TMe(e,r)){let e=r.get(n.name),i=e?`"${e.source}"`:`a package`;l.push({line:n.line??t,message:n.jsx?`<${n.name}> (from ${i}) is used inside JavaScript. Package components can only be written as JSX directly in MDX. ${RO}`:`${n.name} (from ${i}) is used inside JavaScript. Package components can only be written as JSX directly in MDX. ${RO}`})}};for(let{statement:e,line:t}of n)e.type!==`ImportDeclaration`&&m(e,t);let h=Fje(),g=/* @__PURE__ */ new WeakSet,_=/* @__PURE__ */ new Map,v=(e,n,a=n,d)=>{for(let y of e.children)if(y.type===`mdxJsxFlowElement`||y.type===`mdxJsxTextElement`){let g=y.name?wMe(y.name):void 0,b=g===void 0?void 0:r.get(g);if(y.name&&b){let p=e.type===`paragraph`&&tNe(e)===y?a:n;if(p){let e;e=p===`paragraph`?`<${y.name}> is inside a line of text. Package components render as a block, so put <${y.name}> on its own line.`:d?`<${y.name}> is inside <${d}>, which renders it inside a <${p}>. Package components render as a block, so move <${y.name}> out of <${d}>.`:`<${y.name}> is inside a <${p}>. Package components render as a block, so move <${y.name}> out of the <${p}>.`,l.push({line:MO(y),message:e});continue}let m=new YMe(y.name,t.pagePath,r,i,f,o,s,h),g=m.element(y);if(m.errors.length>0||!g){l.push(...m.errors);continue}let v=m.module(g),x=$Me(v),S=(_.get(x)??0)+1;_.set(x,S);let C=S===1?v:eNe(v,S),w=S===1?x:$Me(C);c.has(w)||c.set(w,{id:w,pagePath:t.pagePath,kind:b.kind===`snippet`?`snippet`:`inline`,imports:m.imports(),module:C}),u.push({id:w,name:y.name,node:y,parent:e,headings:m.headings});continue}if(y.name&&g!==void 0&&i.has(g)){l.push({line:MO(y),message:`<${y.name}> is imported from "${i.get(g)}", which isn't listed in package.json dependencies.`});continue}if(y.name&&qMe.has(y.name)){let e=y.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===`id`);(e===void 0||typeof e.value==`string`)&&KO(h,Ue(y),typeof e?.value==`string`?e.value:void 0)}for(let e of y.attributes){let t;e.type===`mdxJsxExpressionAttribute`?t=e.data?.estree:typeof e.value==`object`&&(t=e.value?.data?.estree),t&&m(t,MO(y))}let x=RMe(y.name,n,p),S;x===n?S=d:y.name&&!NO(y.name)&&(S=y.name),v(y,x,x,S)}else if(y.type===`mdxFlowExpression`||y.type===`mdxTextExpression`)y.data?.estree&&m(y.data.estree,MO(y));else{if(y.type===`heading`&&_O.includes(y.depth)&&KO(h,Ue(y)),y.type===`list`&&!AMe(y))for(let e of y.children)g.add(e);if(y.type===`paragraph`){let t=!(e.type===`listItem`&&g.has(e));v(y,n===`p`||!t?n:`paragraph`,n,d)}else`children`in y&&v(y,n,n,d)}};return v(e,!1),{islands:[...c.values()],errors:[...l,...d()],roots:u}};var rNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const iNe=e=>`mi-${e}-`,aNe=(e,t)=>O(Py(EO(e,t))),oNe=(e,t)=>nNe(PT().parse(e),t),sNe=e=>{var{content:t,variables:n}=e,r=rNe(e,[`content`,`variables`]);return oNe(aNe(t,n),r)},cNe=e=>e.split(/[\\/]/).filter(e=>e!==``),lNe=/* @__PURE__ */ new Set([`codeFenced`,`codeText`,`yaml`,`toml`]),uNe=[Fe([`yaml`,`toml`]),je(),{disable:{null:[`autolink`,`codeIndented`,`htmlFlow`,`htmlText`]}}],dNe=e=>{let t=+!!e.startsWith(``),n=ft(ke({extensions:uNe}).document().write(ot()(e.slice(t),void 0,!0))),r=[];for(let[e,i]of n)e===`enter`&&lNe.has(i.type)&&r.push([i.start.offset+t,i.end.offset+t]);return r},fNe=/* @__PURE__ */ new Set(/* @__PURE__ */ `Info.Warning.Note.Tip.Check.Danger.Callout.AccordionGroup.Card.CardGroup.Tabs.CodeGroup.Column.Columns.CustomCode.CustomComponent.DynamicCustomComponent.Expandable.Frame.GitHub.Github.Icon.Latex.Mermaid.Panel.Popup.Prompt.RequestExample.ResponseExample.SnippetGroup.Steps.Tile.Tooltip.Tree.FileTree.Variation.Visibility.MDX.Badge.Color.ZoomImage`.split(`.`)),pNe=/* @__PURE__ */ new Set([`Heading`,`Step`,`Update`]),mNe=[`Example`,`Snippet`],hNe=e=>dt.includes(e)||mNe.includes(e),gNe=e=>typeof e==`object`&&!!e&&!Array.isArray(e),_Ne=e=>{let t;try{t=JSON.parse(e)}catch(e){let t=e instanceof Error?e.message:String(e);return{packageNames:/* @__PURE__ */ new Set,error:`is not valid JSON: ${t}`}}if(!gNe(t))return{packageNames:/* @__PURE__ */ new Set,error:`is not a JSON object`};let{dependencies:n}=t;return{packageNames:new Set(gNe(n)?Object.keys(n):[])}},vNe=[`readme`,`license`,`contributing`,`contribute`],yNe=[`llms.txt`,`robots.txt`,`sitemap.xml`,`llms-full.txt`],bNe=[`package.json`,`package-lock.json`,`pnpm-lock.yaml`],xNe=e=>{let t=xh(e);return bNe.some(e=>e===t)},SNe=[`.jpeg`,`.jpg`,`.jfif`,`.pjpeg`,`.pjp`,`.png`,`.svg`,`.svgz`,`.ico`,`.webp`,`.gif`,`.apng`,`.avif`,`.bmp`,`.tiff`,`.tif`],CNe=[`.mp4`,`.webm`,`.ogg`,`.avi`,`.mov`,`.wmv`,`.flv`,`.mkv`,`.m4v`],wNe=[`.mp3`,`.wav`,`.flac`,`.aac`,`.ogg`,`.wma`,`.m4a`],TNe=[`.pdf`,`.txt`,`.doc`,`.docx`,`.xls`,`.xlsx`,`.ppt`,`.pptx`,`.rtf`,`.odt`,`.ods`,`.odp`],ENe=[`.csv`,`.tsv`,`.xml`],DNe=[`.woff`,`.woff2`,`.ttf`,`.eot`,`.otf`],ONe=[`.zip`,`.rar`,`.7z`,`.tar`,`.gz`,`.bz2`],kNe=[...SNe,...CNe,...wNe,...TNe,...ENe,...DNe,...ONe];[...TNe,...ENe,...ONe];const XO=(e,t)=>{let n=xh(e.toLowerCase()),r=Tt(n);if(r.base===`mint.json`)return`mintConfig`;if(r.base===`docs.json`)return`docsConfig`;if(r.base===`.mintignore`)return`mintIgnore`;let i=r.name,a=r.ext;if(yNe.includes(r.base))return`generatedStaticFile`;if(n===`skill.md`||n.startsWith(`.mintlify/skills/`)&&r.base===`skill.md`)return`skillFile`;if((n.startsWith(`_snippets/`)||n.startsWith(`snippets/`))&&TTe.some(e=>a===e)){if(n.startsWith(`_snippets/`))return`snippet`;if(n.startsWith(`snippets/`))return`snippet-v2`}else if(a===`.mdx`)return t?.importedFiles!=null&&eE(e,t.importedFiles)?`snippet-v2`:`page`;else if(a===`.md`)return vNe.includes(i)?null:t?.importedFiles!=null&&eE(e,t.importedFiles)?`snippet-v2`:`page`;else if(a===`.jsx`||a===`.tsx`)return`snippet-v2`;else if(a===`.yaml`||a===`.yml`)return`potentialYamlOpenApiSpec`;else if(a===`.json`)return`potentialJsonOpenApiSpec`;else if(a===`.css`)return`css`;else if(a===`.js`)return`js`;else if(kNe.includes(a))return`staticFile`;return null},ANe=/\bfrom\s*['"]([^'"\n]+)['"]|\bimport\s*['"]([^'"\n]+)['"]/g,jNe=(e,t)=>e<t?-1:+(e>t),MNe=e=>e instanceof Error?e.message:String(e),NNe=(e,t)=>{try{return FT(e,t)}catch(e){return MNe(e)}},PNe=/* @__PURE__ */ new Set([`ImportDeclaration`]),FNe=/* @__PURE__ */ new Set([`ImportDeclaration`,`ExportNamedDeclaration`,`ExportAllDeclaration`]),INe=(e,t=PNe)=>e.children.flatMap(e=>st(e)?(e.data?.estree?.body??[]).flatMap(n=>!t.has(n.type)||!(`source`in n)||typeof n.source?.value!=`string`?[]:[{source:n.source.value,line:n.loc?.start.line??e.position?.start.line}]):[]),LNe=(e,{packageNames:t,variables:n,normalizeImportSource:r=e=>e})=>{let i=(e,t)=>GT(r(e,t),t),a=(e,n)=>{let i=r(e,n);if(iE(i,t))return!0;let a=GT(i,n);return a!==null&&oE(a)},o=({path:e,content:t})=>[...EO(t,n).matchAll(ANe)].some(([,t,n])=>a(t??n??``,e)),s=[],c=[];for(let t of[...e].sort((e,t)=>jNe(e.path,t.path))){let e=NNe(EO(t.content,n),t.path);typeof e==`string`?c.push(Object.assign(Object.assign({},t),{message:e})):s.push(Object.assign(Object.assign({},t),{tree:e,imports:INe(e)}))}let l=/* @__PURE__ */ new Set;for(let e of s)for(let t of WT(e.tree)){let n=i(t,e.path);n!==null&&l.add(n.toLowerCase())}let u=e=>{let t=XO(e,{importedFiles:l});return t===`page`?`page`:t===`snippet-v2`?`snippet`:t===`snippet`?`legacySnippet`:`other`},d={pages:[],snippets:[],unparsed:[],errors:[]};for(let e of c){let t=u(e.path);d.unparsed.push({path:e.path,content:e.content,category:t}),o(e)&&d.errors.push({file:e.path,message:e.message})}for(let e of s){let n=u(e.path);if(n===`legacySnippet`&&INe(e.tree,FNe).some(({source:t})=>a(t,e.path))&&d.errors.push({file:e.path,message:`uses npm package components, which don't work in files included with <Snippet>. Import it into the page instead.`}),n===`page`||n===`snippet`){(n===`page`?d.pages:d.snippets).push(e);for(let{source:n,line:i}of e.imports){let a=r(n,e.path);aE(a)&&!iE(a,t)&&d.errors.push(Object.assign(Object.assign({file:e.path},i!==void 0&&{line:i}),{message:`imports "${nE(a)??a}", which isn't listed in package.json dependencies.`}))}}}return d},RNe=e=>e.replace(/\.mdx?$/,``),zNe=({path:e,content:t,packageNames:n,packageSnippets:r,variables:i,resolvedTree:a})=>{let o={packageNames:n,packageSnippets:r,pagePath:RNe(e)},s;try{s=sNe(Object.assign(Object.assign({},o),{content:t,variables:i}))}catch(t){return{islands:[],ids:[],errors:[{file:e,message:`can't be parsed after resolving imports: ${MNe(t)}`}]}}let c=a&&s.errors.length>0&&!s.errors.some(e=>e.code)?nNe(a,o).errors.filter(e=>!e.code):[];return{islands:s.islands,ids:s.roots.map(e=>e.id),errors:(c.length>0?c:s.errors).map(({line:t,message:n})=>Object.assign(Object.assign({file:e},t!==void 0&&{line:t}),{message:n}))}},BNe=e=>{let t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Map;for(let r of e)for(let e of r.islands)t.has(e.id)||t.set(e.id,e),n.set(e.id,(n.get(e.id)??/* @__PURE__ */ new Set).add(e.pagePath));return{islands:[...t.values()],islandPages:Object.fromEntries([...n].map(([e,t])=>[e,[...t].sort(jNe)]))}},VNe=e=>e.split(/(?=[A-Z])/).map(e=>e.toLowerCase()).map((e,t)=>t===0?e.charAt(0).toUpperCase()+e.slice(1):e).join(` `),HNe=(e,t)=>{let n=jce(e);if(n==null)return;let{channelId:r,filename:i}=n,a;for(let e of t){let t=e.spec,n=r&&t.allChannels().has(r),o=!i||i===e.filename||i===e.originalFileLocation;n&&o&&(a=e)}if(a==null)return;let o=r?a.spec.channels().get(r):void 0,s=o?.title()||VNe(r),c=o?.description()||o?.summary()||``;return{channelId:r,filename:a.filename,title:s,description:c}};function UNe(e,t){if(!t)return;let n=jce(t);if(n?.filename&&Ice(n.filename)){if(Th(n.filename))return`${n.filename} ${n.channelId}`;let t=Tt(e).dir;return`${bh(t,n.filename)} ${n.channelId}`}return t}var ZO=/* @__PURE__ */ a(((e,t)=>{function n(e){return e==null}function r(e){return typeof e==`object`&&!!e}function i(e){return Array.isArray(e)?e:n(e)?[]:[e]}function a(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function o(e,t){for(var n=``,r=0;r<t;r+=1)n+=e;return n}function s(e){return e===0&&1/e==-1/0}t.exports.isNothing=n,t.exports.isObject=r,t.exports.toArray=i,t.exports.repeat=o,t.exports.isNegativeZero=s,t.exports.extend=a})),QO=/* @__PURE__ */ a(((e,t)=>{function n(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=(this.reason||`(unknown reason)`)+(this.mark?` `+this.mark.toString():``),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(/* @__PURE__ */ Error()).stack||``}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(e){var t=this.name+`: `;return t+=this.reason||`(unknown reason)`,!e&&this.mark&&(t+=` `+this.mark.toString()),t},t.exports=n})),WNe=/* @__PURE__ */ a(((e,t)=>{var n=ZO();function r(e,t,n,r,i){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=i}r.prototype.getSnippet=function(e,t){var r,i,a,o,s;if(!this.buffer)return null;for(e||=4,t||=75,r=``,i=this.position;i>0&&`\0\r
580
+ (e,t)=>t&&(`json`in t||`lossy`in t)?tMe(aMe(e,t)):structuredClone(e):(e,t)=>tMe(aMe(e,t));const CO=/* @__PURE__ */ new Set([`__proto__`,`constructor`,`prototype`]);var sMe=/* @__PURE__ */ a((e=>{function t(){var e={};return e[`align-content`]=!1,e[`align-items`]=!1,e[`align-self`]=!1,e[`alignment-adjust`]=!1,e[`alignment-baseline`]=!1,e.all=!1,e[`anchor-point`]=!1,e.animation=!1,e[`animation-delay`]=!1,e[`animation-direction`]=!1,e[`animation-duration`]=!1,e[`animation-fill-mode`]=!1,e[`animation-iteration-count`]=!1,e[`animation-name`]=!1,e[`animation-play-state`]=!1,e[`animation-timing-function`]=!1,e.azimuth=!1,e[`backface-visibility`]=!1,e.background=!0,e[`background-attachment`]=!0,e[`background-clip`]=!0,e[`background-color`]=!0,e[`background-image`]=!0,e[`background-origin`]=!0,e[`background-position`]=!0,e[`background-repeat`]=!0,e[`background-size`]=!0,e[`baseline-shift`]=!1,e.binding=!1,e.bleed=!1,e[`bookmark-label`]=!1,e[`bookmark-level`]=!1,e[`bookmark-state`]=!1,e.border=!0,e[`border-bottom`]=!0,e[`border-bottom-color`]=!0,e[`border-bottom-left-radius`]=!0,e[`border-bottom-right-radius`]=!0,e[`border-bottom-style`]=!0,e[`border-bottom-width`]=!0,e[`border-collapse`]=!0,e[`border-color`]=!0,e[`border-image`]=!0,e[`border-image-outset`]=!0,e[`border-image-repeat`]=!0,e[`border-image-slice`]=!0,e[`border-image-source`]=!0,e[`border-image-width`]=!0,e[`border-left`]=!0,e[`border-left-color`]=!0,e[`border-left-style`]=!0,e[`border-left-width`]=!0,e[`border-radius`]=!0,e[`border-right`]=!0,e[`border-right-color`]=!0,e[`border-right-style`]=!0,e[`border-right-width`]=!0,e[`border-spacing`]=!0,e[`border-style`]=!0,e[`border-top`]=!0,e[`border-top-color`]=!0,e[`border-top-left-radius`]=!0,e[`border-top-right-radius`]=!0,e[`border-top-style`]=!0,e[`border-top-width`]=!0,e[`border-width`]=!0,e.bottom=!1,e[`box-decoration-break`]=!0,e[`box-shadow`]=!0,e[`box-sizing`]=!0,e[`box-snap`]=!0,e[`box-suppress`]=!0,e[`break-after`]=!0,e[`break-before`]=!0,e[`break-inside`]=!0,e[`caption-side`]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e[`clip-path`]=!1,e[`clip-rule`]=!1,e.color=!0,e[`color-interpolation-filters`]=!0,e[`column-count`]=!1,e[`column-fill`]=!1,e[`column-gap`]=!1,e[`column-rule`]=!1,e[`column-rule-color`]=!1,e[`column-rule-style`]=!1,e[`column-rule-width`]=!1,e[`column-span`]=!1,e[`column-width`]=!1,e.columns=!1,e.contain=!1,e.content=!1,e[`counter-increment`]=!1,e[`counter-reset`]=!1,e[`counter-set`]=!1,e.crop=!1,e.cue=!1,e[`cue-after`]=!1,e[`cue-before`]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e[`display-inside`]=!0,e[`display-list`]=!0,e[`display-outside`]=!0,e[`dominant-baseline`]=!1,e.elevation=!1,e[`empty-cells`]=!1,e.filter=!1,e.flex=!1,e[`flex-basis`]=!1,e[`flex-direction`]=!1,e[`flex-flow`]=!1,e[`flex-grow`]=!1,e[`flex-shrink`]=!1,e[`flex-wrap`]=!1,e.float=!1,e[`float-offset`]=!1,e[`flood-color`]=!1,e[`flood-opacity`]=!1,e[`flow-from`]=!1,e[`flow-into`]=!1,e.font=!0,e[`font-family`]=!0,e[`font-feature-settings`]=!0,e[`font-kerning`]=!0,e[`font-language-override`]=!0,e[`font-size`]=!0,e[`font-size-adjust`]=!0,e[`font-stretch`]=!0,e[`font-style`]=!0,e[`font-synthesis`]=!0,e[`font-variant`]=!0,e[`font-variant-alternates`]=!0,e[`font-variant-caps`]=!0,e[`font-variant-east-asian`]=!0,e[`font-variant-ligatures`]=!0,e[`font-variant-numeric`]=!0,e[`font-variant-position`]=!0,e[`font-weight`]=!0,e.grid=!1,e[`grid-area`]=!1,e[`grid-auto-columns`]=!1,e[`grid-auto-flow`]=!1,e[`grid-auto-rows`]=!1,e[`grid-column`]=!1,e[`grid-column-end`]=!1,e[`grid-column-start`]=!1,e[`grid-row`]=!1,e[`grid-row-end`]=!1,e[`grid-row-start`]=!1,e[`grid-template`]=!1,e[`grid-template-areas`]=!1,e[`grid-template-columns`]=!1,e[`grid-template-rows`]=!1,e[`hanging-punctuation`]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e[`image-orientation`]=!1,e[`image-resolution`]=!1,e[`ime-mode`]=!1,e[`initial-letters`]=!1,e[`inline-box-align`]=!1,e[`justify-content`]=!1,e[`justify-items`]=!1,e[`justify-self`]=!1,e.left=!1,e[`letter-spacing`]=!0,e[`lighting-color`]=!0,e[`line-box-contain`]=!1,e[`line-break`]=!1,e[`line-grid`]=!1,e[`line-height`]=!1,e[`line-snap`]=!1,e[`line-stacking`]=!1,e[`line-stacking-ruby`]=!1,e[`line-stacking-shift`]=!1,e[`line-stacking-strategy`]=!1,e[`list-style`]=!0,e[`list-style-image`]=!0,e[`list-style-position`]=!0,e[`list-style-type`]=!0,e.margin=!0,e[`margin-bottom`]=!0,e[`margin-left`]=!0,e[`margin-right`]=!0,e[`margin-top`]=!0,e[`marker-offset`]=!1,e[`marker-side`]=!1,e.marks=!1,e.mask=!1,e[`mask-box`]=!1,e[`mask-box-outset`]=!1,e[`mask-box-repeat`]=!1,e[`mask-box-slice`]=!1,e[`mask-box-source`]=!1,e[`mask-box-width`]=!1,e[`mask-clip`]=!1,e[`mask-image`]=!1,e[`mask-origin`]=!1,e[`mask-position`]=!1,e[`mask-repeat`]=!1,e[`mask-size`]=!1,e[`mask-source-type`]=!1,e[`mask-type`]=!1,e[`max-height`]=!0,e[`max-lines`]=!1,e[`max-width`]=!0,e[`min-height`]=!0,e[`min-width`]=!0,e[`move-to`]=!1,e[`nav-down`]=!1,e[`nav-index`]=!1,e[`nav-left`]=!1,e[`nav-right`]=!1,e[`nav-up`]=!1,e[`object-fit`]=!1,e[`object-position`]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e[`outline-color`]=!1,e[`outline-offset`]=!1,e[`outline-style`]=!1,e[`outline-width`]=!1,e.overflow=!1,e[`overflow-wrap`]=!1,e[`overflow-x`]=!1,e[`overflow-y`]=!1,e.padding=!0,e[`padding-bottom`]=!0,e[`padding-left`]=!0,e[`padding-right`]=!0,e[`padding-top`]=!0,e.page=!1,e[`page-break-after`]=!1,e[`page-break-before`]=!1,e[`page-break-inside`]=!1,e[`page-policy`]=!1,e.pause=!1,e[`pause-after`]=!1,e[`pause-before`]=!1,e.perspective=!1,e[`perspective-origin`]=!1,e.pitch=!1,e[`pitch-range`]=!1,e[`play-during`]=!1,e.position=!1,e[`presentation-level`]=!1,e.quotes=!1,e[`region-fragment`]=!1,e.resize=!1,e.rest=!1,e[`rest-after`]=!1,e[`rest-before`]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e[`rotation-point`]=!1,e[`ruby-align`]=!1,e[`ruby-merge`]=!1,e[`ruby-position`]=!1,e[`shape-image-threshold`]=!1,e[`shape-outside`]=!1,e[`shape-margin`]=!1,e.size=!1,e.speak=!1,e[`speak-as`]=!1,e[`speak-header`]=!1,e[`speak-numeral`]=!1,e[`speak-punctuation`]=!1,e[`speech-rate`]=!1,e.stress=!1,e[`string-set`]=!1,e[`tab-size`]=!1,e[`table-layout`]=!1,e[`text-align`]=!0,e[`text-align-last`]=!0,e[`text-combine-upright`]=!0,e[`text-decoration`]=!0,e[`text-decoration-color`]=!0,e[`text-decoration-line`]=!0,e[`text-decoration-skip`]=!0,e[`text-decoration-style`]=!0,e[`text-emphasis`]=!0,e[`text-emphasis-color`]=!0,e[`text-emphasis-position`]=!0,e[`text-emphasis-style`]=!0,e[`text-height`]=!0,e[`text-indent`]=!0,e[`text-justify`]=!0,e[`text-orientation`]=!0,e[`text-overflow`]=!0,e[`text-shadow`]=!0,e[`text-space-collapse`]=!0,e[`text-transform`]=!0,e[`text-underline-position`]=!0,e[`text-wrap`]=!0,e.top=!1,e.transform=!1,e[`transform-origin`]=!1,e[`transform-style`]=!1,e.transition=!1,e[`transition-delay`]=!1,e[`transition-duration`]=!1,e[`transition-property`]=!1,e[`transition-timing-function`]=!1,e[`unicode-bidi`]=!1,e[`vertical-align`]=!1,e.visibility=!1,e[`voice-balance`]=!1,e[`voice-duration`]=!1,e[`voice-family`]=!1,e[`voice-pitch`]=!1,e[`voice-range`]=!1,e[`voice-rate`]=!1,e[`voice-stress`]=!1,e[`voice-volume`]=!1,e.volume=!1,e[`white-space`]=!1,e.widows=!1,e.width=!0,e[`will-change`]=!1,e[`word-break`]=!0,e[`word-spacing`]=!0,e[`word-wrap`]=!0,e[`wrap-flow`]=!1,e[`wrap-through`]=!1,e[`writing-mode`]=!1,e[`z-index`]=!1,e}function n(e,t,n){}function r(e,t,n){}var i=/javascript\s*\:/gim;function a(e,t){return i.test(t)?``:t}e.whiteList=t(),e.getDefaultWhiteList=t,e.onAttr=n,e.onIgnoreAttr=r,e.safeAttrValue=a})),cMe=/* @__PURE__ */ a(((e,t)=>{t.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,``)},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,``)}}})),lMe=/* @__PURE__ */ a(((e,t)=>{var n=cMe();function r(e,t){e=n.trimRight(e),e[e.length-1]!==`;`&&(e+=`;`);var r=e.length,i=!1,a=0,o=0,s=``;function c(){if(!i){var r=n.trim(e.slice(a,o)),c=r.indexOf(`:`);if(c!==-1){var l=n.trim(r.slice(0,c)),u=n.trim(r.slice(c+1));if(l){var d=t(a,s.length,l,u,r);d&&(s+=d+`; `)}}}a=o+1}for(;o<r;o++){var l=e[o];if(l===`/`&&e[o+1]===`*`){var u=e.indexOf(`*/`,o+2);if(u===-1)break;o=u+1,a=o+1,i=!1}else l===`(`?i=!0:l===`)`?i=!1:l===`;`?i||c():l===`
581
+ `&&c()}return n.trim(s)}t.exports=r})),uMe=/* @__PURE__ */ a(((e,t)=>{var n=sMe(),r=lMe();cMe();function i(e){return e==null}function a(e){var t={};for(var n in e)t[n]=e[n];return t}function o(e){e=a(e||{}),e.whiteList=e.whiteList||n.whiteList,e.onAttr=e.onAttr||n.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||n.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||n.safeAttrValue,this.options=e}o.prototype.process=function(e){if(e||=``,e=e.toString(),!e)return``;var t=this.options,n=t.whiteList,a=t.onAttr,o=t.onIgnoreAttr,s=t.safeAttrValue;return r(e,function(e,t,r,c,l){var u=n[r],d=!1;if(u===!0?d=u:typeof u==`function`?d=u(c):u instanceof RegExp&&(d=u.test(c)),d!==!0&&(d=!1),c=s(r,c),c){var f={position:t,sourcePosition:e,source:l,isWhite:d};if(d){var p=a(r,c,f);return i(p)?r+`:`+c:p}var p=o(r,c,f);if(!i(p))return p}})},t.exports=o})),wO=/* @__PURE__ */ a(((e,t)=>{var n=sMe(),r=uMe();function i(e,t){return new r(t).process(e)}for(var a in e=t.exports=i,e.FilterCSS=r,n)e[a]=n[a];typeof window<`u`&&(window.filterCSS=t.exports)})),TO=/* @__PURE__ */ a(((e,t)=>{t.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,``)},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}}})),dMe=/* @__PURE__ */ a((e=>{var t=wO().FilterCSS,n=wO().getDefaultWhiteList,r=TO();function i(){return{a:[`target`,`href`,`title`],abbr:[`title`],address:[],area:[`shape`,`coords`,`href`,`alt`],article:[],aside:[],audio:[`autoplay`,`controls`,`crossorigin`,`loop`,`muted`,`preload`,`src`],b:[],bdi:[`dir`],bdo:[`dir`],big:[],blockquote:[`cite`],br:[],caption:[],center:[],cite:[],code:[],col:[`align`,`valign`,`span`,`width`],colgroup:[`align`,`valign`,`span`,`width`],dd:[],del:[`datetime`],details:[`open`],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:[`color`,`size`,`face`],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:[`src`,`alt`,`title`,`width`,`height`,`loading`],ins:[`datetime`],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:[`width`,`border`,`align`,`valign`],tbody:[`align`,`valign`],td:[`width`,`rowspan`,`colspan`,`align`,`valign`],tfoot:[`align`,`valign`],th:[`width`,`rowspan`,`colspan`,`align`,`valign`],thead:[`align`,`valign`],tr:[`rowspan`,`align`,`valign`],tt:[],u:[],ul:[],video:[`autoplay`,`controls`,`crossorigin`,`loop`,`muted`,`playsinline`,`poster`,`preload`,`src`,`height`,`width`]}}var a=new t;function o(e,t,n){}function s(e,t,n){}function c(e,t,n){}function l(e,t,n){}function u(e){return e.replace(f,`&lt;`).replace(p,`&gt;`)}function d(e,t,n,i){if(n=D(n),t===`href`||t===`src`){if(n=r.trim(n),n===`#`)return`#`;if(n.substr(0,7)!==`http://`&&n.substr(0,8)!==`https://`&&n.substr(0,7)!==`mailto:`&&n.substr(0,4)!==`tel:`&&n.substr(0,11)!==`data:image/`&&n.substr(0,6)!==`ftp://`&&n.substr(0,2)!==`./`&&n.substr(0,3)!==`../`&&n[0]!==`#`&&n[0]!==`/`)return``}else if(t===`background`){if(y.lastIndex=0,y.test(n))return``}else if(t===`style`){if(b.lastIndex=0,b.test(n)||(x.lastIndex=0,x.test(n)&&(y.lastIndex=0,y.test(n))))return``;i!==!1&&(i||=a,n=i.process(n))}return n=O(n),n}var f=/</g,p=/>/g,m=/"/g,h=/&quot;/g,g=/&#([a-zA-Z0-9]*);?/gim,_=/&colon;?/gim,v=/&newline;?/gim,y=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,b=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,x=/u\s*r\s*l\s*\(.*/gi;function S(e){return e.replace(m,`&quot;`)}function C(e){return e.replace(h,`"`)}function w(e){return e.replace(g,function(e,t){return t[0]===`x`||t[0]===`X`?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})}function T(e){return e.replace(_,`:`).replace(v,` `)}function E(e){for(var t=``,n=0,i=e.length;n<i;n++)t+=e.charCodeAt(n)<32?` `:e.charAt(n);return r.trim(t)}function D(e){return e=C(e),e=w(e),e=T(e),e=E(e),e}function O(e){return e=S(e),e=u(e),e}function k(){return``}function A(e,t){typeof t!=`function`&&(t=function(){});var n=!Array.isArray(e);function i(t){return n?!0:r.indexOf(e,t)!==-1}var a=[],o=!1;return{onIgnoreTag:function(e,n,r){if(i(e)){if(r.isClosing){var s=`[/removed]`,c=r.position+s.length;return a.push([o===!1?r.position:o,c]),o=!1,s}return o||=r.position,`[removed]`}return t(e,n,r)},remove:function(e){var t=``,n=0;return r.forEach(a,function(r){t+=e.slice(n,r[0]),n=r[1]}),t+=e.slice(n),t}}}function ee(e){for(var t=``,n=0;n<e.length;){var r=e.indexOf(`<!--`,n);if(r===-1){t+=e.slice(n);break}t+=e.slice(n,r);var i=e.indexOf(`-->`,r);if(i===-1)break;n=i+3}return t}function te(e){var t=e.split(``);return t=t.filter(function(e){var t=e.charCodeAt(0);return t===127?!1:t<=31?t===10||t===13:!0}),t.join(``)}e.whiteList=i(),e.getDefaultWhiteList=i,e.onTag=o,e.onIgnoreTag=s,e.onTagAttr=c,e.onIgnoreTagAttr=l,e.safeAttrValue=d,e.escapeHtml=u,e.escapeQuote=S,e.unescapeQuote=C,e.escapeHtmlEntities=w,e.escapeDangerHtml5Entities=T,e.clearNonPrintableCharacter=E,e.friendlyAttrValue=D,e.escapeAttrValue=O,e.onIgnoreTagStripAll=k,e.StripTagBody=A,e.stripCommentTag=ee,e.stripBlankChar=te,e.attributeWrapSign=`"`,e.cssFilter=a,e.getDefaultCSSWhiteList=n})),fMe=/* @__PURE__ */ a((e=>{var t=TO();function n(e){var n=t.spaceIndex(e),r=n===-1?e.slice(1,-1):e.slice(1,n+1);return r=t.trim(r).toLowerCase(),r.slice(0,1)===`/`&&(r=r.slice(1)),r.slice(-1)===`/`&&(r=r.slice(0,-1)),r}function r(e){return e.slice(0,2)===`</`}function i(e,t,i){var a=``,o=0,s=!1,c=!1,l=0,u=e.length,d=``,f=``;chariterator:for(l=0;l<u;l++){var p=e.charAt(l);if(s===!1){if(p===`<`){s=l;continue}}else if(c===!1){if(p===`<`){a+=i(e.slice(o,l)),s=l,o=l;continue}if(p===`>`||l===u-1){a+=i(e.slice(o,s)),f=e.slice(s,l+1),d=n(f),a+=t(s,a.length,d,f,r(f)),o=l+1,s=!1;continue}if(p===`"`||p===`'`)for(var m=1,h=e.charAt(l-m);h.trim()===``||h===`=`;){if(h===`=`){c=p;continue chariterator}h=e.charAt(l-++m)}}else if(p===c){c=!1;continue}}return o<u&&(a+=i(e.substr(o))),a}var a=/[^a-zA-Z0-9\\_:.-]/gim;function o(e,n){var r=0,i=0,o=[],u=!1,f=e.length;function p(e,r){if(e=t.trim(e),e=e.replace(a,``).toLowerCase(),!(e.length<1)){var i=n(e,r||``);i&&o.push(i)}}for(var m=0;m<f;m++){var h=e.charAt(m),g,_;if(u===!1&&h===`=`)u=e.slice(r,m),r=m+1,i=e.charAt(r)===`"`||e.charAt(r)===`'`?r:c(e,m+1);else if(u!==!1&&m===i){if(_=e.indexOf(h,m+1),_===-1)break;g=t.trim(e.slice(i+1,_)),p(u,g),u=!1,m=_,r=m+1}else if(/\s|\n|\t/.test(h)){if(e=e.replace(/\s|\n|\t/g,` `),u===!1){if(_=s(e,m),_===-1){g=t.trim(e.slice(r,m)),p(g),u=!1,r=m+1;continue}m=_-1;continue}if(_=l(e,m-1),_===-1){g=t.trim(e.slice(r,m)),g=d(g),p(u,g),u=!1,r=m+1;continue}}}return r<e.length&&(u===!1?p(e.slice(r)):p(u,d(t.trim(e.slice(r))))),t.trim(o.join(` `))}function s(e,t){for(;t<e.length;t++){var n=e[t];if(n!==` `)return n===`=`?t:-1}}function c(e,t){for(;t<e.length;t++){var n=e[t];if(n!==` `)return n===`'`||n===`"`?t:-1}}function l(e,t){for(;t>0;t--){var n=e[t];if(n!==` `)return n===`=`?t:-1}}function u(e){return e[0]===`"`&&e[e.length-1]===`"`||e[0]===`'`&&e[e.length-1]===`'`}function d(e){return u(e)?e.substr(1,e.length-2):e}e.parseTag=i,e.parseAttr=o})),pMe=/* @__PURE__ */ a(((e,t)=>{var n=wO().FilterCSS,r=dMe(),i=fMe(),a=i.parseTag,o=i.parseAttr,s=TO();function c(e){return e==null}function l(e){var t=s.spaceIndex(e);if(t===-1)return{html:``,closing:e[e.length-2]===`/`};e=s.trim(e.slice(t+1,-1));var n=e[e.length-1]===`/`;return n&&(e=s.trim(e.slice(0,-1))),{html:e,closing:n}}function u(e){var t={};for(var n in e)t[n]=e[n];return t}function d(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map(function(e){return e.toLowerCase()}):t[n.toLowerCase()]=e[n];return t}function f(e){e=u(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error(`Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time`),e.onIgnoreTag=r.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=d(e.whiteList||e.allowList):e.whiteList=r.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?`'`:r.attributeWrapSign,e.onTag=e.onTag||r.onTag,e.onTagAttr=e.onTagAttr||r.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||r.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||r.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,e.escapeHtml=e.escapeHtml||r.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new n(e.css))}f.prototype.process=function(e){if(e||=``,e=e.toString(),!e)return``;var t=this,n=t.options,i=n.whiteList,u=n.onTag,d=n.onIgnoreTag,f=n.onTagAttr,p=n.onIgnoreTagAttr,m=n.safeAttrValue,h=n.escapeHtml,g=t.attributeWrapSign,_=t.cssFilter;n.stripBlankChar&&(e=r.stripBlankChar(e)),n.allowCommentTag||(e=r.stripCommentTag(e));var v=!1;n.stripIgnoreTagBody&&(v=r.StripTagBody(n.stripIgnoreTagBody,d),d=v.onIgnoreTag);var y=a(e,function(e,t,n,r,a){var v={sourcePosition:e,position:t,isClosing:a,isWhite:Object.prototype.hasOwnProperty.call(i,n)},y=u(n,r,v);if(!c(y))return y;if(v.isWhite){if(v.isClosing)return`</`+n+`>`;var b=l(r),x=i[n],S=o(b.html,function(e,t){var r=s.indexOf(x,e)!==-1,i=f(n,e,t,r);return c(i)?r?(t=m(n,e,t,_),t?e+`=`+g+t+g:e):(i=p(n,e,t,r),c(i)?void 0:i):i});return r=`<`+n,S&&(r+=` `+S),b.closing&&(r+=` /`),r+=`>`,r}return y=d(n,r,v),c(y)?h(r):y},h);return v&&(y=v.remove(y)),y},t.exports=f})),mMe=/* @__PURE__ */ r((/* @__PURE__ */ a(((e,t)=>{var n=dMe(),r=fMe(),i=pMe();function a(e,t){return new i(t).process(e)}e=t.exports=a,e.filterXSS=a,e.FilterXSS=i,(function(){for(var t in n)e[t]=n[t];for(var i in r)e[i]=r[i]})(),typeof window<`u`&&(window.filterXSS=t.exports);function o(){return typeof self<`u`&&typeof DedicatedWorkerGlobalScope<`u`&&self instanceof DedicatedWorkerGlobalScope}o()&&(self.filterXSS=t.exports)})))(),1);const hMe=/\{\{\s*([\w.\-]+)\s*\}\}/g,gMe=[`script`,`style`,`iframe`,`object`,`embed`,`form`,`link`,`meta`,`base`];function _Me(e){return(0,mMe.default)(e,{whiteList:{},stripIgnoreTag:!0,stripIgnoreTagBody:gMe})}function EO(e,t){return!t||Object.keys(t).length===0||!e.includes(`{{`)?e:e.replace(hMe,(e,n)=>{let r=t[n];return r===void 0?e:_Me(r)})}const DO=/^[A-Za-z_$][\w$]*$/,OO=e=>({type:`Literal`,value:e}),kO=e=>({type:`Identifier`,name:e}),vMe=e=>e.type===`ParenthesizedExpression`?vMe(e.expression):e,AO=(e,t,n)=>{if(!e)return{ok:!1,reason:`expression`};switch(e.type){case`ParenthesizedExpression`:return AO(e.expression,t,n);case`Literal`:{if(`regex`in e||`bigint`in e)return{ok:!1,reason:`expression`};let{value:t}=e;return t===null||typeof t==`string`||typeof t==`boolean`||typeof t==`number`&&Number.isFinite(t)?{ok:!0,expression:OO(t)}:{ok:!1,reason:`expression`}}case`TemplateLiteral`:return e.expressions.length>0?{ok:!1,reason:`expression`}:{ok:!0,expression:OO(e.quasis.map(e=>e.value.cooked??e.value.raw).join(``))};case`UnaryExpression`:{let t=vMe(e.argument);return e.operator===`-`&&t.type===`Literal`&&typeof t.value==`number`&&Number.isFinite(t.value)?{ok:!0,expression:{type:`UnaryExpression`,operator:`-`,prefix:!0,argument:OO(t.value)}}:{ok:!1,reason:`expression`}}case`ArrayExpression`:{let r=[];for(let i of e.elements){if(!i||i.type===`SpreadElement`)return{ok:!1,reason:`expression`};let e=AO(i,t,n);if(!e.ok)return e;r.push(e.expression)}return{ok:!0,expression:{type:`ArrayExpression`,elements:r}}}case`ObjectExpression`:{let r=[];for(let i of e.properties){if(i.type===`SpreadElement`||i.computed)return{ok:!1,reason:`expression`};if(i.kind!==`init`||i.method)return{ok:!1,reason:`function`};let e;if(i.key.type===`Identifier`?e=i.key.name:i.key.type===`Literal`&&(typeof i.key.value==`string`||typeof i.key.value==`number`)&&(e=String(i.key.value)),e===void 0)return{ok:!1,reason:`expression`};if(CO.has(e))return{ok:!1,reason:`key`,name:e};let a=AO(i.value,t,n);if(!a.ok)return a;let o={type:`Property`,key:DO.test(e)?kO(e):OO(e),value:a.expression,kind:`init`,method:!1,shorthand:!1,computed:!1};r.push(o)}return{ok:!0,expression:{type:`ObjectExpression`,properties:r}}}case`Identifier`:{if(e.name===`undefined`)return{ok:!0,expression:kO(`undefined`)};let r=t?.get(e.name);return r?r.expression?(n.add(e.name),{ok:!0,expression:kO(e.name)}):{ok:!1,reason:`const`,name:e.name}:{ok:!1,reason:`identifier`,name:e.name}}case`ArrowFunctionExpression`:case`FunctionExpression`:return{ok:!1,reason:`function`};case`JSXElement`:case`JSXFragment`:return{ok:!1,reason:`jsx`};default:return{ok:!1,reason:`expression`}}},jO=(e,t=0)=>{if(!(t>32)){if(e===void 0)return kO(`undefined`);if(e===null||typeof e==`string`||typeof e==`boolean`)return OO(e);if(typeof e==`number`)return Number.isFinite(e)?e<0||Object.is(e,-0)?{type:`UnaryExpression`,operator:`-`,prefix:!0,argument:OO(-e)}:OO(e):void 0;if(Array.isArray(e)){let n=[];for(let r of e){let e=jO(r,t+1);if(!e)return;n.push(e)}return{type:`ArrayExpression`,elements:n}}if(typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype){let n=[];for(let[r,i]of Object.entries(e)){if(CO.has(r))return;let e=jO(i,t+1);if(!e)return;n.push({type:`Property`,key:DO.test(r)?kO(r):OO(r),value:e,kind:`init`,method:!1,shorthand:!1,computed:!1})}return{type:`ObjectExpression`,properties:n}}}},MO=e=>e.position?.start.line,yMe=e=>{if(e.type===`ImportDefaultSpecifier`)return{imported:`default`};if(e.type===`ImportNamespaceSpecifier`)return{imported:`*`};let t=ATe(e);return XT(t)?{imported:t}:{imported:t,invalidName:!0}},bMe=(e,t)=>{let n=[],r=e=>{if(st(e)){let r=GTe(e,t);for(let t of e.data?.estree?.body??[])n.push({statement:t,line:t.loc?.start.line??MO(e),importer:r})}else if(`children`in e)for(let t of e.children)r(t)};return r(e),n},xMe=(e,t)=>`${e===`*`||XT(e)?e:JSON.stringify(e)} from "${t}"`,SMe=(e,t)=>{let n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Map,i=[],a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Set,s=/* @__PURE__ */ new Map,c=/* @__PURE__ */ new Set,l=(e,t,n,r)=>{let a=s.get(e);if(!a){s.set(e,{described:t,island:n});return}let o=JSON.stringify([e,t]);a.described!==t&&(a.island||n)&&!c.has(o)&&(c.add(o),i.push({line:r,message:`${e} is imported twice on this page, as ${a.described} and as ${t}. Snippets on a page share its imports, so import one of them under another name.`}))};for(let{statement:i,importer:s,line:c}of e){if(i.type!==`ImportDeclaration`)continue;let e=i.source.value;if(typeof e!=`string`)continue;let u=aE(e,t.packageNames),d=!u&&oE(e),f=u||d?null:KT(e,s),p=f!==null&&(t.packageSnippets?t.packageSnippets.has(f):sE(f)),m=p?f:e;(u||p)&&(o.add(m),i.specifiers.length===0&&!a.has(m)&&a.set(m,c));for(let t of i.specifiers){let i=t.local.name,a=yMe(t);l(i,xMe(a.imported,m),u||d||p,c),d?r.set(i,e):(u||p)&&n.set(i,Object.assign({source:m,kind:u?`package`:`snippet`,local:i},a))}}return{bindings:n,undeclared:r,conflicts:i,sideEffects:a,order:[...o]}},CMe=(e,t)=>{let n=/* @__PURE__ */ new Map;for(let[e,r]of Object.entries(t.exportedConsts??{}))DO.test(e)&&n.set(e,{expression:jO(r)});let r=/* @__PURE__ */ new Set;for(let{statement:t}of e){if(t.type!==`ExportNamedDeclaration`)continue;let e=t.declaration;if(e?.type===`VariableDeclaration`)for(let t of e.declarations){if(t.id.type!==`Identifier`)continue;let i=e.kind===`const`?AO(t.init,void 0,r):void 0;n.set(t.id.name,{expression:i?.ok?i.expression:void 0})}}return n},wMe=e=>e.includes(`:`)?void 0:e.split(`.`)[0],TMe=(e,t)=>{let n=[];return lE(e,{enter(e,r,i){if(e.type===`JSXIdentifier`){if(r?.type===`JSXAttribute`||r?.type===`JSXMemberExpression`&&i===`property`||r?.type===`JSXNamespacedName`)return;t.has(e.name)&&n.push({name:e.name,jsx:!0,line:e.loc?.start.line})}else e.type===`Identifier`&&t.has(e.name)&&(r?.type!==`MemberExpression`||i!==`property`||r.computed)&&(r?.type!==`Property`||i!==`key`||r.computed)&&r?.type!==`ImportSpecifier`&&r?.type!==`ImportDefaultSpecifier`&&r?.type!==`ImportNamespaceSpecifier`&&n.push({name:e.name,jsx:!1,line:e.loc?.start.line})}}),n},EMe=/* @__PURE__ */ new Set([`table`,`thead`,`tbody`,`tfoot`,`tr`,`colgroup`,`svg`]),DMe=/* @__PURE__ */ new Set([`foreignObject`,`desc`,`title`]),OMe=/* @__PURE__ */ new Set([`head`,`script`]),kMe=e=>e.spread===null||e.spread===void 0?e.children.length>1:e.spread,AMe=e=>!!e.spread||e.children.some(kMe),NO=e=>/^[a-z]/.test(e)&&!e.includes(`.`),jMe=(e,t)=>e===`p`?`p`:!e||!NO(e)||t===`p`||t===`paragraph`||t&&OMe.has(t)?t:OMe.has(e)?e:t===`svg`?!DMe.has(e)&&t:EMe.has(e)?e:e===`form`&&t,MMe=e=>e.type===`JSXIdentifier`?e.name:e.type===`JSXNamespacedName`?`${e.namespace.name}:${e.name.name}`:`${MMe(e.object)}.${e.property.name}`,PO=e=>e.type===`FunctionDeclaration`||e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`,FO=(e,t)=>{if(!t&&e.type===`Identifier`)return e.name;if(e.type===`Literal`&&typeof e.value==`string`)return e.value},IO=(e,t,n)=>{if(e.type===`Identifier`)n.set(e.name,t);else if(e.type===`AssignmentPattern`)IO(e.left,t,n);else if(e.type===`RestElement`)IO(e.argument,t,n);else if(e.type===`ArrayPattern`)for(let t of e.elements)t&&IO(t,!1,n);else if(e.type===`ObjectPattern`){let r=e.properties.some(e=>e.type===`Property`&&FO(e.key,e.computed)===`children`);for(let i of e.properties)if(i.type===`RestElement`)IO(i.argument,t===`props`&&!r&&`props`,n);else{let e=t===`props`&&FO(i.key,i.computed)===`children`&&`children`;IO(i.value,e,n)}}},NMe=(e,t)=>{for(let n=t.length-1;n>=0;n--){let r=t[n];if(r?.has(e))return r.get(e)??!1}return!1},LO=(e,t)=>e?.type===`Identifier`?NMe(e.name,t):e?.type===`ChainExpression`?LO(e.expression,t):e?.type===`MemberExpression`&&LO(e.object,t)===`props`&&FO(e.property,e.computed)===`children`&&`children`,PMe=e=>{let t=/* @__PURE__ */ new Map;for(let n of e.body)if(n.type===`VariableDeclaration`)for(let e of n.declarations)IO(e.id,!1,t);else(n.type===`FunctionDeclaration`||n.type===`ClassDeclaration`)&&n.id&&t.set(n.id.name,!1);return t},FMe=(e,t)=>{if(e.children.some(e=>e.type!==`JSXText`||e.value.trim().length>0))return!1;let n=e.openingElement.attributes,r=n.indexOf(t);return!n.slice(r+1).some(e=>e.type===`JSXAttribute`&&e.name.name===`children`)},IMe=e=>{let t=[],n=[],r=[],i=[],a=[];return lE(e,{enter(o,s,c){if(PO(o)){if(o!==e&&n.length===0){this.skip();return}let r=/* @__PURE__ */ new Map;for(let[t,n]of o.params.entries())IO(n,o===e&&t===0&&`props`,r);t.push(r)}else if(o.type===`BlockStatement`)t.push(PMe(o));else if(o.type===`CatchClause`){let e=/* @__PURE__ */ new Map;o.param&&IO(o.param,!1,e),t.push(e)}else if(o.type===`VariableDeclarator`){let e=t.at(-1);e&&IO(o.id,LO(o.init,t),e)}else if(o.type===`JSXElement`)n.push(MMe(o.openingElement.name)),r.push(o);else if(o.type===`JSXFragment`)n.push(null),r.push(null);else if(o.type===`JSXExpressionContainer`)i.push(s?.type===`JSXElement`||s?.type===`JSXFragment`||s?.type===`JSXAttribute`&&s.name.name===`children`);else if(o.type===`JSXSpreadAttribute`){let e=r.at(-1);e&&LO(o.argument,t)===`props`&&FMe(e,o)&&a.push([...n])}else i.at(-1)&&n.length>0&&LO(o,t)===`children`&&(s?.type!==`Property`||c!==`key`||s.computed)&&(s?.type!==`MemberExpression`||c!==`property`||s.computed)&&a.push([...n])},leave(e){PO(e)||e.type===`BlockStatement`||e.type===`CatchClause`?t.pop():e.type===`JSXElement`||e.type===`JSXFragment`?(n.pop(),r.pop()):e.type===`JSXExpressionContainer`&&i.pop()}}),a},LMe=e=>{let t=/* @__PURE__ */ new Map;for(let{statement:n}of e){if(n.type!==`ExportNamedDeclaration`)continue;let e=n.declaration;if(e?.type===`FunctionDeclaration`&&e.id){let n=IMe(e);n.length>0&&t.set(e.id.name,n)}else if(e?.type===`VariableDeclaration`)for(let n of e.declarations){if(n.id.type!==`Identifier`||!n.init||!PO(n.init))continue;let e=IMe(n.init);e.length>0&&t.set(n.id.name,e)}}return t},RMe=(e,t,n,r=/* @__PURE__ */ new Set)=>{if(e===null||NO(e))return jMe(e,t);let i=/* @__PURE__ */ new Set([...r,e]);for(let a of r.has(e)?[]:n.get(e)??[]){let e=a.reduce((e,t)=>RMe(t,e,n,i),t);if(e)return e}return t},zMe=/* @__PURE__ */ new Set([`script`,`style`,`iframe`,`object`,`embed`,`form`,`base`,`meta`,`link`,`foreignobject`]),RO=`Move this into a snippet.`,BMe=new Set(dt),VMe=/* @__PURE__ */ new Map([[`a`,`href`],[`img`,`src`],[`source`,`src`]]),zO=e=>({type:`JSXExpressionContainer`,expression:e}),BO=e=>{if(e.includes(`:`)){let[t=``,n=``]=e.split(`:`);return{type:`JSXNamespacedName`,namespace:{type:`JSXIdentifier`,name:t},name:{type:`JSXIdentifier`,name:n}}}let[t=``,...n]=e.split(`.`),r={type:`JSXIdentifier`,name:t};for(let e of n)r={type:`JSXMemberExpression`,object:r,property:{type:`JSXIdentifier`,name:e}};return r},VO=(e,t,n)=>{let r=BO(e),i=n.length===0;return{type:`JSXElement`,openingElement:{type:`JSXOpeningElement`,name:r,attributes:t,selfClosing:i},closingElement:i?null:{type:`JSXClosingElement`,name:BO(e)},children:n}},HO=(e,t)=>{let n=BO(e);return{type:`JSXAttribute`,name:n.type===`JSXMemberExpression`?{type:`JSXIdentifier`,name:e}:n,value:t?zO(t):null}},UO=()=>zO(OO(`
582
+ `)),HMe=e=>[UO(),...e.flatMap((e,t)=>t>0?[UO(),...e]:e),...e.length>0?[UO()]:[]],UMe=e=>e.replace(/[\t ]*(\r?\n|\r)[\t ]*/g,`$1`),WO=e=>e.replace(/^[\t ]+/,``),WMe=e=>e.replace(/\r?\n|\r/g,` `),GMe=e=>{switch(e.type){case`text`:return Object.assign(Object.assign({},e),{value:WO(e.value)});case`inlineCode`:return Object.assign(Object.assign({},e),{value:WO(WMe(e.value))});case`strong`:case`emphasis`:case`delete`:case`link`:{let[t,...n]=e.children;return t?.type===`text`?Object.assign(Object.assign({},e),{children:[Object.assign(Object.assign({},t),{value:WO(t.value)}),...n]}):e}default:return e}},KMe=e=>e.type===`mdxJsxTextElement`||e.type===`mdxTextExpression`,GO=e=>e.flatMap(e=>e.type===`paragraph`&&e.children.some(KMe)&&e.children.every(e=>KMe(e)||e.type===`text`&&/^[\t\n\v\f\r ]*$/.test(e.value))?e.children.filter(e=>e.type!==`text`||!/^[\t\r\n ]+$/.test(e.value)):[e]),KO=(e,t,n)=>{let r=(n===void 0?void 0:YE(n))||$E(t);return r?e.claim(r):void 0},qMe=new Map(vO.map(e=>[`h${e}`,e])),JMe=(e,t=40)=>e.length>t?`${e.slice(0,t-1)}…`:e;var YMe=class{constructor(e,t,n,r,i,a,o,s){this.rootName=e,this.pagePath=t,this.bindings=n,this.undeclared=r,this.consts=i,this.sideEffects=a,this.order=o,this.headingSlugs=s,this.usedBindings=/* @__PURE__ */ new Map,this.usedConsts=/* @__PURE__ */ new Set,this.errors=[],this.headings=[]}url(e,t){return OO(TTe(this.pagePath,e,t))}fail(e,t){this.errors.push({line:MO(e),message:t})}insideRoot(){return`the package component <${this.rootName}>`}element(e){if(!e.name)return{type:`JSXFragment`,openingFragment:{type:`JSXOpeningFragment`},closingFragment:{type:`JSXClosingFragment`},children:this.children(e.children)};let t=e.name,n=wMe(t),r=n===void 0?void 0:this.bindings.get(n);if(r?.invalidName){this.fail(e,`<${t}> is imported from "${r.source}" by the string name ${JSON.stringify(r.imported)}, which isn't a valid identifier. Import it by an identifier name, or move this into a snippet.`);return}if(r&&n!==void 0)this.usedBindings.set(n,r);else if(NO(t)){if(zMe.has(t.toLowerCase())){this.fail(e,`<${t}> isn't allowed inside ${this.insideRoot()}.`);return}}else if(n!==void 0&&this.undeclared.has(n)){this.fail(e,`<${t}> is imported from "${this.undeclared.get(n)}", which isn't listed in package.json dependencies.`);return}else if(BMe.has(t)){this.fail(e,`<${t}> is a Mintlify component and can't render inside ${this.insideRoot()}. Move <${t}> outside <${this.rootName}>.`);return}else{this.fail(e,`<${t}> isn't imported from a package or a package snippet, so it can't render inside ${this.insideRoot()}. ${RO}`);return}let i=[];for(let n of e.attributes){let r=this.attribute(e,t,n);r&&i.push(r)}let a=qMe.get(t);return a!==void 0&&this.addHeadingId(e,a,i),VO(t,i,this.children(e.children))}addHeadingId(e,t,n){let r=n.findIndex(e=>e.name.type===`JSXIdentifier`&&e.name.name===`id`),i;if(r!==-1){let e=n[r]?.value;if(e?.type!==`JSXExpressionContainer`||e.expression.type!==`Literal`||typeof e.expression.value!=`string`)return;i=e.expression.value}let a=this.headingTitle(e),o=KO(this.headingSlugs,a,i);if(o===void 0)return;let s=HO(`id`,OO(YE(o)));r===-1?n.unshift(s):n[r]=s,a.trim()&&this.headings.push({title:a,slug:o,depth:t})}headingTitle(e){return`children`in e?e.children.map((e,t,n)=>{if(e.type!==`mdxTextExpression`&&e.type!==`mdxFlowExpression`)return`children`in e?this.headingTitle(e):Ue(e,t,n);let r=(e.data?.estree)?.body[0];if(r?.type!==`ExpressionStatement`)return``;let i=AO(r.expression,this.consts,/* @__PURE__ */ new Set);if(!i.ok)return``;let a=i.expression.type===`Identifier`?this.consts.get(i.expression.name)?.expression:i.expression;return a?.type===`Literal`&&(typeof a.value==`string`||typeof a.value==`number`)?String(a.value):``}).join(``):Ue(e)}attribute(e,t,n){let r=n.position?n:e;if(n.type===`mdxJsxExpressionAttribute`){this.fail(r,`<${t}> spreads props ({...}), which can't be evaluated at build time. ${RO}`);return}let i=`Prop "${n.name}" on <${t}>`;if(/^on[A-Z]/.test(n.name)||NO(t)&&/^on/i.test(n.name)){this.fail(r,`${i} is an event handler, and package components in MDX only take static props. ${RO}`);return}if(n.name===`dangerouslySetInnerHTML`||n.name===`ref`){this.fail(r,`${i} isn't allowed inside ${this.insideRoot()}.`);return}if(n.value===null||n.value===void 0)return HO(n.name,null);if(typeof n.value==`string`){if(n.name===`style`&&NO(t)){let e=Rje(n.value),t=jO(e);if(t)return HO(`style`,t);let a=Object.keys(e).find(e=>CO.has(e));this.fail(r,this.propFailure(i,{reason:`key`,name:a}));return}return HO(n.name,VMe.get(t)===n.name?this.url(n.value,n.name===`href`):OO(n.value))}let a=n.value.data?.estree,o=a?.body[0];if(!a||a.body.length!==1||o?.type!==`ExpressionStatement`){this.fail(r,`${i} is an expression that can't be evaluated at build time. ${RO}`);return}let s=AO(o.expression,this.consts,this.usedConsts);if(s.ok)return HO(n.name,s.expression);this.fail(r,this.propFailure(i,s))}propFailure(e,t){switch(t.reason){case`function`:return`${e} is a function, and package components in MDX only take static props. ${RO}`;case`jsx`:return`${e} is JSX, and package components in MDX only take static props. ${RO}`;case`identifier`:return`${e} uses "${t.name}", which isn't a literal \`export const\` in this page. ${RO}`;case`const`:return`${e} uses \`export const ${t.name}\`, whose value isn't a literal (strings, numbers, booleans, arrays and objects only). ${RO}`;case`key`:return`${e} uses the object key "${t.name}", which isn't allowed.`;case`expression`:return`${e} is an expression that can't be evaluated at build time. ${RO}`}}intrinsic(e,t,n=[]){return VO(e,n,this.children(t))}children(e){let t=[],n=!1;for(let r of GO(e)){let e=this.child(n?GMe(r):r);n=r.type===`break`,e&&t.push(...e)}return t}child(e){switch(e.type){case`mdxJsxFlowElement`:case`mdxJsxTextElement`:{let t=this.element(e);return t?[t]:void 0}case`text`:{let t=UMe(e.value);return t===``?[]:[zO(OO(t))]}case`paragraph`:return[this.intrinsic(`p`,e.children)];case`strong`:return[this.intrinsic(`strong`,e.children)];case`emphasis`:return[this.intrinsic(`em`,e.children)];case`delete`:return[this.intrinsic(`del`,e.children)];case`inlineCode`:return[VO(`code`,[],[zO(OO(WMe(e.value)))])];case`break`:return[VO(`br`,[],[]),UO()];case`thematicBreak`:return[VO(`hr`,[],[])];case`blockquote`:return[VO(`blockquote`,[],HMe(GO(e.children).map(e=>this.child(e)??[])))];case`heading`:{let t=[];return vO.includes(e.depth)&&this.addHeadingId(e,e.depth,t),[this.intrinsic(`h${e.depth}`,e.children,t)]}case`link`:{let t=[HO(`href`,this.url(e.url,!0))];return e.title&&t.push(HO(`title`,OO(e.title))),[this.intrinsic(`a`,e.children,t)]}case`image`:{let t=[HO(`src`,this.url(e.url,!1)),HO(`alt`,OO(e.alt??``))];return e.title&&t.push(HO(`title`,OO(e.title))),[VO(`img`,t,[])]}case`code`:{let t=e.lang?[HO(`className`,OO(`language-${e.lang}`))]:[];return[VO(`pre`,[],[VO(`code`,t,[zO(OO(e.value))])])]}case`list`:{let t=AMe(e),n=e.ordered&&typeof e.start==`number`&&e.start!==1?[HO(`start`,OO(e.start))]:[];return e.children.some(e=>typeof e.checked==`boolean`)&&n.push(HO(`className`,OO(`contains-task-list`))),[VO(e.ordered?`ol`:`ul`,n,HMe(e.children.map(e=>[this.listItem(e,t)])))]}case`table`:{let[t,...n]=e.children,r=(e,t)=>VO(`tr`,[],e.map(e=>this.intrinsic(t,`children`in e?e.children:[]))),i=[];return t&&i.push(VO(`thead`,[],[r(t.children,`th`)])),n.length>0&&i.push(VO(`tbody`,[],n.map(e=>r(e.children,`td`)))),[VO(`table`,[],i)]}case`mdxFlowExpression`:case`mdxTextExpression`:{let t=e.data?.estree;if(t&&t.body.length===0)return[];let n=t?.body[0];if(t?.body.length===1&&n?.type===`ExpressionStatement`){let e=AO(n.expression,this.consts,this.usedConsts);if(e.ok&&this.isRenderableText(e.expression))return[zO(e.expression)]}this.fail(e,`{${JMe(e.value.trim())}} inside ${this.insideRoot()} can't be evaluated at build time. ${RO}`);return}default:this.fail(e,`Markdown ${e.type} content isn't supported inside ${this.insideRoot()}. ${RO}`);return}}listItem(e,t){let n=GO(e.children).map(e=>e.type===`paragraph`?{p:!0,empty:e.children.length===0,children:this.children(e.children)}:{p:!1,empty:!1,children:this.child(e)??[]}),r=[];if(typeof e.checked==`boolean`){let t=VO(`input`,[HO(`type`,OO(`checkbox`)),HO(`checked`,OO(e.checked)),HO(`disabled`,null)],[]),[i]=n;i?.p?i.children.unshift(t,...i.empty?[]:[zO(OO(` `))]):n.unshift({p:!0,empty:!0,children:[t]}),r.push(HO(`className`,OO(`task-list-item`)))}let i=n.flatMap(({p:e,children:n},r)=>[...t||r>0||!e?[UO()]:[],...e&&t?[VO(`p`,[],n)]:n]),a=n.at(-1);return a&&(t||!a.p)&&i.push(UO()),VO(`li`,r,i)}isRenderableText(e){if(e.type===`Literal`)return typeof e.value==`string`||typeof e.value==`number`;if(e.type===`UnaryExpression`)return!0;if(e.type!==`Identifier`||e.name===`undefined`)return!1;let t=this.consts.get(e.name)?.expression;return t!==void 0&&this.isRenderableText(t)&&t.type!==`Identifier`}module(e){let t=[],n=/* @__PURE__ */ new Map;for(let e of[...this.usedBindings.values()].sort((e,t)=>qO(e.local,t.local)))n.set(e.source,[...n.get(e.source)??[],e]);let r=this.sideEffects.size===0?[...n.keys()].sort(qO):this.order.filter(e=>n.has(e)||this.sideEffects.has(e));for(let e of r){let r=n.get(e)??[],i=t=>({type:`ImportDeclaration`,specifiers:t,source:{type:`Literal`,value:e}}),[a,...o]=r.filter(e=>e.imported==="default"),s=r.filter(e=>e.imported!=="default"&&e.imported!==`*`),c=[];a&&c.push({type:`ImportDefaultSpecifier`,local:kO(a.local)});for(let e of s)c.push({type:`ImportSpecifier`,imported:kO(e.imported),local:kO(e.local)});(c.length>0||r.length===0)&&t.push(i(c));for(let e of o)t.push(i([{type:`ImportDefaultSpecifier`,local:kO(e.local)}]));for(let e of r.filter(e=>e.imported===`*`))t.push(i([{type:`ImportNamespaceSpecifier`,local:kO(e.local)}]))}for(let e of[...this.usedConsts].sort(qO)){let n=this.consts.get(e)?.expression;n&&t.push({type:`VariableDeclaration`,kind:`const`,declarations:[{type:`VariableDeclarator`,id:kO(e),init:n}]})}let i=/* @__PURE__ */ new Set([...this.usedBindings.keys(),...this.usedConsts]),a=`Island`;for(;i.has(a);)a=`${a}_`;return t.push({type:`ExportDefaultDeclaration`,declaration:{type:`FunctionDeclaration`,id:kO(a),params:[],generator:!1,async:!1,body:{type:`BlockStatement`,body:[{type:`ReturnStatement`,argument:e}]}}}),HT({type:`Program`,sourceType:`module`,body:t},{handlers:UT}).value}imports(){return[...this.usedBindings.values()].map(({local:e,source:t,imported:n})=>({local:e,pkg:t,imported:n})).sort((e,t)=>qO(e.local,t.local))}};const qO=(e,t)=>e<t?-1:+(e>t),XMe=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),JO=(e,t)=>e>>>t|e<<32-t,YO=(e,t)=>e[t]??0,ZMe=e=>{let t=new TextEncoder().encode(e),n=t.length*8,r=Math.ceil((t.length+9)/64)*64,i=new Uint8Array(r);i.set(t),i[t.length]=128;let a=new DataView(i.buffer);a.setUint32(r-8,Math.floor(n/4294967296)),a.setUint32(r-4,n>>>0);let o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=/* @__PURE__ */ new Uint32Array(64);for(let e=0;e<r;e+=64){for(let t=0;t<16;t++)s[t]=a.getUint32(e+t*4);for(let e=16;e<64;e++){let t=YO(s,e-15),n=YO(s,e-2),r=JO(t,7)^JO(t,18)^t>>>3,i=JO(n,17)^JO(n,19)^n>>>10;s[e]=YO(s,e-16)+r+YO(s,e-7)+i>>>0}let t=YO(o,0),n=YO(o,1),r=YO(o,2),i=YO(o,3),c=YO(o,4),l=YO(o,5),u=YO(o,6),d=YO(o,7);for(let e=0;e<64;e++){let a=JO(c,6)^JO(c,11)^JO(c,25),o=c&l^~c&u,f=d+a+o+YO(XMe,e)+YO(s,e)>>>0,p=(JO(t,2)^JO(t,13)^JO(t,22))+(t&n^t&r^n&r)>>>0;d=u,u=l,l=c,c=i+f>>>0,i=r,r=n,n=t,t=f+p>>>0}o[0]=YO(o,0)+t>>>0,o[1]=YO(o,1)+n>>>0,o[2]=YO(o,2)+r>>>0,o[3]=YO(o,3)+i>>>0,o[4]=YO(o,4)+c>>>0,o[5]=YO(o,5)+l>>>0,o[6]=YO(o,6)+u>>>0,o[7]=YO(o,7)+d>>>0}return Array.from(o,e=>e.toString(16).padStart(8,`0`)).join(``)},QMe=/\.css(?:[?#].*)?$/,$Me=e=>`i${ZMe(e).slice(0,16)}`,eNe=(e,t)=>`${e.endsWith(`
583
+ `)?e:`${e}\n`}// placement ${t}\n`,tNe=e=>{let t=e.children.filter(e=>e.type!==`text`||e.value.trim()!==``);return t.length===1?t[0]:void 0},nNe=(e,t)=>{let n=bMe(e,t.pagePath),{bindings:r,undeclared:i,conflicts:a,sideEffects:o,order:s}=SMe(n,t),c=/* @__PURE__ */ new Map,l=[...a],u=[],d=()=>l.length>0||u.length>0?[]:[...o].map(([e,t])=>({line:t,code:`side-effect-import-without-island`,message:QMe.test(e)?`"${e}" is imported on a page without package components, so it never loads. Use a package component on this page or remove this import.`:`"${e}" is imported on a page without package components, so it never runs. Use a package component on this page or remove this import.`}));if(r.size===0&&i.size===0)return{islands:[],errors:[...l,...d()],roots:u};let f=CMe(n,t),p=LMe(n),m=(e,t)=>{for(let n of TMe(e,r)){let e=r.get(n.name),i=e?`"${e.source}"`:`a package`;l.push({line:n.line??t,message:n.jsx?`<${n.name}> (from ${i}) is used inside JavaScript. Package components can only be written as JSX directly in MDX. ${RO}`:`${n.name} (from ${i}) is used inside JavaScript. Package components can only be written as JSX directly in MDX. ${RO}`})}};for(let{statement:e,line:t}of n)e.type!==`ImportDeclaration`&&m(e,t);let h=zje(),g=/* @__PURE__ */ new WeakSet,_=/* @__PURE__ */ new Map,v=(e,n,a=n,d)=>{for(let y of e.children)if(y.type===`mdxJsxFlowElement`||y.type===`mdxJsxTextElement`){let g=y.name?wMe(y.name):void 0,b=g===void 0?void 0:r.get(g);if(y.name&&b){let p=e.type===`paragraph`&&tNe(e)===y?a:n;if(p){let e;e=p===`paragraph`?`<${y.name}> is inside a line of text. Package components render as a block, so put <${y.name}> on its own line.`:d?`<${y.name}> is inside <${d}>, which renders it inside a <${p}>. Package components render as a block, so move <${y.name}> out of <${d}>.`:`<${y.name}> is inside a <${p}>. Package components render as a block, so move <${y.name}> out of the <${p}>.`,l.push({line:MO(y),message:e});continue}let m=new YMe(y.name,t.pagePath,r,i,f,o,s,h),g=m.element(y);if(m.errors.length>0||!g){l.push(...m.errors);continue}let v=m.module(g),x=$Me(v),S=(_.get(x)??0)+1;_.set(x,S);let C=S===1?v:eNe(v,S),w=S===1?x:$Me(C);c.has(w)||c.set(w,{id:w,pagePath:t.pagePath,kind:b.kind===`snippet`?`snippet`:`inline`,imports:m.imports(),module:C}),u.push({id:w,name:y.name,node:y,parent:e,headings:m.headings});continue}if(y.name&&g!==void 0&&i.has(g)){l.push({line:MO(y),message:`<${y.name}> is imported from "${i.get(g)}", which isn't listed in package.json dependencies.`});continue}if(y.name&&qMe.has(y.name)){let e=y.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===`id`);(e===void 0||typeof e.value==`string`)&&KO(h,Ue(y),typeof e?.value==`string`?e.value:void 0)}for(let e of y.attributes){let t;e.type===`mdxJsxExpressionAttribute`?t=e.data?.estree:typeof e.value==`object`&&(t=e.value?.data?.estree),t&&m(t,MO(y))}let x=RMe(y.name,n,p),S;x===n?S=d:y.name&&!NO(y.name)&&(S=y.name),v(y,x,x,S)}else if(y.type===`mdxFlowExpression`||y.type===`mdxTextExpression`)y.data?.estree&&m(y.data.estree,MO(y));else{if(y.type===`heading`&&vO.includes(y.depth)&&KO(h,Ue(y)),y.type===`list`&&!AMe(y))for(let e of y.children)g.add(e);if(y.type===`paragraph`){let t=!(e.type===`listItem`&&g.has(e));v(y,n===`p`||!t?n:`paragraph`,n,d)}else`children`in y&&v(y,n,n,d)}};return v(e,!1),{islands:[...c.values()],errors:[...l,...d()],roots:u}};var rNe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const iNe=e=>`mi-${e}-`,aNe=(e,t)=>O(Py(EO(e,t))),oNe=(e,t)=>nNe(PT().parse(e),t),sNe=e=>{var{content:t,variables:n}=e,r=rNe(e,[`content`,`variables`]);return oNe(aNe(t,n),r)},cNe=e=>e.split(/[\\/]/).filter(e=>e!==``),lNe=/* @__PURE__ */ new Set([`codeFenced`,`codeText`,`yaml`,`toml`]),uNe=[Fe([`yaml`,`toml`]),je(),{disable:{null:[`autolink`,`codeIndented`,`htmlFlow`,`htmlText`]}}],dNe=e=>{let t=+!!e.startsWith(``),n=ft(ke({extensions:uNe}).document().write(ot()(e.slice(t),void 0,!0))),r=[];for(let[e,i]of n)e===`enter`&&lNe.has(i.type)&&r.push([i.start.offset+t,i.end.offset+t]);return r},fNe=/* @__PURE__ */ new Set(/* @__PURE__ */ `Info.Warning.Note.Tip.Check.Danger.Callout.AccordionGroup.Card.CardGroup.Tabs.CodeGroup.Column.Columns.CustomCode.CustomComponent.DynamicCustomComponent.Expandable.Frame.GitHub.Github.Icon.Latex.Mermaid.Panel.Popup.Prompt.RequestExample.ResponseExample.SnippetGroup.Steps.Tile.Tooltip.Tree.FileTree.Variation.Visibility.MDX.Badge.Color.ZoomImage`.split(`.`)),pNe=/* @__PURE__ */ new Set([`Heading`,`Step`,`Update`]),mNe=[`Example`,`Snippet`],hNe=e=>dt.includes(e)||mNe.includes(e),gNe=e=>typeof e==`object`&&!!e&&!Array.isArray(e),_Ne=e=>{let t;try{t=JSON.parse(e)}catch(e){let t=e instanceof Error?e.message:String(e);return{packageNames:/* @__PURE__ */ new Set,error:`is not valid JSON: ${t}`}}if(!gNe(t))return{packageNames:/* @__PURE__ */ new Set,error:`is not a JSON object`};let{dependencies:n}=t;return{packageNames:new Set(gNe(n)?Object.keys(n):[])}},vNe=[`readme`,`license`,`contributing`,`contribute`],yNe=[`llms.txt`,`robots.txt`,`sitemap.xml`,`llms-full.txt`],bNe=[`package.json`,`package-lock.json`,`pnpm-lock.yaml`],xNe=e=>{let t=xh(e);return bNe.some(e=>e===t)},SNe=[`.jpeg`,`.jpg`,`.jfif`,`.pjpeg`,`.pjp`,`.png`,`.svg`,`.svgz`,`.ico`,`.webp`,`.gif`,`.apng`,`.avif`,`.bmp`,`.tiff`,`.tif`],CNe=[`.mp4`,`.webm`,`.ogg`,`.avi`,`.mov`,`.wmv`,`.flv`,`.mkv`,`.m4v`],wNe=[`.mp3`,`.wav`,`.flac`,`.aac`,`.ogg`,`.wma`,`.m4a`],TNe=[`.pdf`,`.txt`,`.doc`,`.docx`,`.xls`,`.xlsx`,`.ppt`,`.pptx`,`.rtf`,`.odt`,`.ods`,`.odp`],ENe=[`.csv`,`.tsv`,`.xml`],DNe=[`.woff`,`.woff2`,`.ttf`,`.eot`,`.otf`],ONe=[`.zip`,`.rar`,`.7z`,`.tar`,`.gz`,`.bz2`],kNe=[...SNe,...CNe,...wNe,...TNe,...ENe,...DNe,...ONe];[...TNe,...ENe,...ONe];const XO=(e,t)=>{let n=xh(e.toLowerCase()),r=Tt(n);if(r.base===`mint.json`)return`mintConfig`;if(r.base===`docs.json`)return`docsConfig`;if(r.base===`.mintignore`)return`mintIgnore`;let i=r.name,a=r.ext;if(yNe.includes(r.base))return`generatedStaticFile`;if(n===`skill.md`||n.startsWith(`.mintlify/skills/`)&&r.base===`skill.md`)return`skillFile`;if((n.startsWith(`_snippets/`)||n.startsWith(`snippets/`))&&kTe.some(e=>a===e)){if(n.startsWith(`_snippets/`))return`snippet`;if(n.startsWith(`snippets/`))return`snippet-v2`}else if(a===`.mdx`)return t?.importedFiles!=null&&tE(e,t.importedFiles)?`snippet-v2`:`page`;else if(a===`.md`)return vNe.includes(i)?null:t?.importedFiles!=null&&tE(e,t.importedFiles)?`snippet-v2`:`page`;else if(a===`.jsx`||a===`.tsx`)return`snippet-v2`;else if(a===`.yaml`||a===`.yml`)return`potentialYamlOpenApiSpec`;else if(a===`.json`)return`potentialJsonOpenApiSpec`;else if(a===`.css`)return`css`;else if(a===`.js`)return`js`;else if(kNe.includes(a))return`staticFile`;return null},ANe=/\bfrom\s*['"]([^'"\n]+)['"]|\bimport\s*['"]([^'"\n]+)['"]/g,jNe=(e,t)=>e<t?-1:+(e>t),MNe=e=>e instanceof Error?e.message:String(e),NNe=(e,t)=>{try{return FT(e,t)}catch(e){return MNe(e)}},PNe=/* @__PURE__ */ new Set([`ImportDeclaration`]),FNe=/* @__PURE__ */ new Set([`ImportDeclaration`,`ExportNamedDeclaration`,`ExportAllDeclaration`]),INe=(e,t=PNe)=>e.children.flatMap(e=>st(e)?(e.data?.estree?.body??[]).flatMap(n=>!t.has(n.type)||!(`source`in n)||typeof n.source?.value!=`string`?[]:[{source:n.source.value,line:n.loc?.start.line??e.position?.start.line}]):[]),LNe=(e,{packageNames:t,variables:n,normalizeImportSource:r=e=>e})=>{let i=(e,t)=>KT(r(e,t),t),a=(e,n)=>{let i=r(e,n);if(aE(i,t))return!0;let a=KT(i,n);return a!==null&&sE(a)},o=({path:e,content:t})=>[...EO(t,n).matchAll(ANe)].some(([,t,n])=>a(t??n??``,e)),s=[],c=[];for(let t of[...e].sort((e,t)=>jNe(e.path,t.path))){let e=NNe(EO(t.content,n),t.path);typeof e==`string`?c.push(Object.assign(Object.assign({},t),{message:e})):s.push(Object.assign(Object.assign({},t),{tree:e,imports:INe(e)}))}let l=/* @__PURE__ */ new Set;for(let e of s)for(let t of GT(e.tree)){let n=i(t,e.path);n!==null&&l.add(n.toLowerCase())}let u=e=>{let t=XO(e,{importedFiles:l});return t===`page`?`page`:t===`snippet-v2`?`snippet`:t===`snippet`?`legacySnippet`:`other`},d={pages:[],snippets:[],unparsed:[],errors:[]};for(let e of c){let t=u(e.path);d.unparsed.push({path:e.path,content:e.content,category:t}),o(e)&&d.errors.push({file:e.path,message:e.message})}for(let e of s){let n=u(e.path);if(n===`legacySnippet`&&INe(e.tree,FNe).some(({source:t})=>a(t,e.path))&&d.errors.push({file:e.path,message:`uses npm package components, which don't work in files included with <Snippet>. Import it into the page instead.`}),n===`page`||n===`snippet`){(n===`page`?d.pages:d.snippets).push(e);for(let{source:n,line:i}of e.imports){let a=r(n,e.path);oE(a)&&!aE(a,t)&&d.errors.push(Object.assign(Object.assign({file:e.path},i!==void 0&&{line:i}),{message:`imports "${rE(a)??a}", which isn't listed in package.json dependencies.`}))}}}return d},RNe=e=>e.replace(/\.mdx?$/,``),zNe=({path:e,content:t,packageNames:n,packageSnippets:r,variables:i,resolvedTree:a})=>{let o={packageNames:n,packageSnippets:r,pagePath:RNe(e)},s;try{s=sNe(Object.assign(Object.assign({},o),{content:t,variables:i}))}catch(t){return{islands:[],ids:[],errors:[{file:e,message:`can't be parsed after resolving imports: ${MNe(t)}`}]}}let c=a&&s.errors.length>0&&!s.errors.some(e=>e.code)?nNe(a,o).errors.filter(e=>!e.code):[];return{islands:s.islands,ids:s.roots.map(e=>e.id),errors:(c.length>0?c:s.errors).map(({line:t,message:n})=>Object.assign(Object.assign({file:e},t!==void 0&&{line:t}),{message:n}))}},BNe=e=>{let t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Map;for(let r of e)for(let e of r.islands)t.has(e.id)||t.set(e.id,e),n.set(e.id,(n.get(e.id)??/* @__PURE__ */ new Set).add(e.pagePath));return{islands:[...t.values()],islandPages:Object.fromEntries([...n].map(([e,t])=>[e,[...t].sort(jNe)]))}},VNe=e=>e.split(/(?=[A-Z])/).map(e=>e.toLowerCase()).map((e,t)=>t===0?e.charAt(0).toUpperCase()+e.slice(1):e).join(` `),HNe=(e,t)=>{let n=jce(e);if(n==null)return;let{channelId:r,filename:i}=n,a;for(let e of t){let t=e.spec,n=r&&t.allChannels().has(r),o=!i||i===e.filename||i===e.originalFileLocation;n&&o&&(a=e)}if(a==null)return;let o=r?a.spec.channels().get(r):void 0,s=o?.title()||VNe(r),c=o?.description()||o?.summary()||``;return{channelId:r,filename:a.filename,title:s,description:c}};function UNe(e,t){if(!t)return;let n=jce(t);if(n?.filename&&Ice(n.filename)){if(Th(n.filename))return`${n.filename} ${n.channelId}`;let t=Tt(e).dir;return`${bh(t,n.filename)} ${n.channelId}`}return t}var ZO=/* @__PURE__ */ a(((e,t)=>{function n(e){return e==null}function r(e){return typeof e==`object`&&!!e}function i(e){return Array.isArray(e)?e:n(e)?[]:[e]}function a(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function o(e,t){for(var n=``,r=0;r<t;r+=1)n+=e;return n}function s(e){return e===0&&1/e==-1/0}t.exports.isNothing=n,t.exports.isObject=r,t.exports.toArray=i,t.exports.repeat=o,t.exports.isNegativeZero=s,t.exports.extend=a})),QO=/* @__PURE__ */ a(((e,t)=>{function n(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=(this.reason||`(unknown reason)`)+(this.mark?` `+this.mark.toString():``),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(/* @__PURE__ */ Error()).stack||``}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(e){var t=this.name+`: `;return t+=this.reason||`(unknown reason)`,!e&&this.mark&&(t+=` `+this.mark.toString()),t},t.exports=n})),WNe=/* @__PURE__ */ a(((e,t)=>{var n=ZO();function r(e,t,n,r,i){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=i}r.prototype.getSnippet=function(e,t){var r,i,a,o,s;if(!this.buffer)return null;for(e||=4,t||=75,r=``,i=this.position;i>0&&`\0\r
584
584
  …\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(--i,this.position-i>t/2-1){r=` ... `,i+=5;break}for(a=``,o=this.position;o<this.buffer.length&&`\0\r
585
585
  …\u2028\u2029`.indexOf(this.buffer.charAt(o))===-1;)if(o+=1,o-this.position>t/2-1){a=` ... `,o-=5;break}return s=this.buffer.slice(i,o),n.repeat(` `,e)+r+s+a+`
586
586
  `+n.repeat(` `,e+this.position-i+r.length)+`^`},r.prototype.toString=function(e){var t,n=``;return this.name&&(n+=`in "`+this.name+`" `),n+=`at line `+(this.line+1)+`, column `+(this.column+1),e||(t=this.getSnippet(),t&&(n+=`:
@@ -634,7 +634,7 @@ return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index
634
634
  `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function Ce(e){for(var t=``,n,r,i,a=0;a<e.length;a++)n=e.charCodeAt(a),n>=55296&&n<=56319&&(r=e.charCodeAt(a+1),r>=56320&&r<=57343)?(t+=ie((n-55296)*1024+r-56320+65536),a++):(i=te[n],t+=!i&&le(n)?e[a]:i||ie(n));return t}function P(e,t,n){for(var r=``,i=e.tag,a=0,o=n.length;a<o;a+=1)Oe(e,t,n[a],!1,!1)&&(a!==0&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=i,e.dump=`[`+r+`]`}function we(e,t,n,r){for(var i=``,a=e.tag,o=0,s=n.length;o<s;o+=1)Oe(e,t+1,n[o],!0,!0)&&((!r||o!==0)&&(i+=j(e,t)),e.dump&&l===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump);e.tag=a,e.dump=i||`[]`}function Te(e,t,n){for(var r=``,i=e.tag,a=Object.keys(n),o=0,s=a.length,c,l,u;o<s;o+=1)u=``,o!==0&&(u+=`, `),e.condenseFlow&&(u+=`"`),c=a[o],l=n[c],Oe(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),Oe(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}function Ee(e,t,n,i){var a=``,o=e.tag,s=Object.keys(n),c,u,d,f,p,m;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new r(`sortKeys must be a boolean or a function`);for(c=0,u=s.length;c<u;c+=1)m=``,(!i||c!==0)&&(m+=j(e,t)),d=s[c],f=n[d],Oe(e,t+1,d,!0,!0,!0)&&(p=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,p&&(e.dump&&l===e.dump.charCodeAt(0)?m+=`?`:m+=`? `),m+=e.dump,p&&(m+=j(e,t)),Oe(e,t+1,f,!0,p)&&(e.dump&&l===e.dump.charCodeAt(0)?m+=`:`:m+=`: `,m+=e.dump,a+=m));e.tag=o,e.dump=a||`{}`}function De(e,t,n){for(var i,a=n?e.explicitTypes:e.implicitTypes,c=0,l=a.length,u,d;c<l;c+=1)if(u=a[c],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof t==`object`&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=n?u.tag:`?`,u.represent){if(d=e.styleMap[u.tag]||u.defaultStyle,o.call(u.represent)===`[object Function]`)i=u.represent(t,d);else if(s.call(u.represent,d))i=u.represent[d](t,d);else throw new r(`!<`+u.tag+`> tag resolver accepts not "`+d+`" style`);e.dump=i}return!0}return!1}function Oe(e,t,n,i,a,s){e.tag=null,e.dump=n,De(e,n,!1)||De(e,n,!0);var c=o.call(e.dump);i&&=e.flowLevel<0||e.flowLevel>t;var l=c===`[object Object]`||c===`[object Array]`,u,d;if(l&&(u=e.duplicates.indexOf(n),d=u!==-1),(e.tag!==null&&e.tag!==`?`||d||e.indent!==2&&t>0)&&(a=!1),d&&e.usedDuplicates[u])e.dump=`*ref_`+u;else{if(l&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),c===`[object Object]`)i&&Object.keys(e.dump).length!==0?(Ee(e,t,e.dump,a),d&&(e.dump=`&ref_`+u+e.dump)):(Te(e,t,e.dump),d&&(e.dump=`&ref_`+u+` `+e.dump));else if(c===`[object Array]`){var f=e.noArrayIndent&&t>0?t-1:t;i&&e.dump.length!==0?(we(e,f,e.dump,a),d&&(e.dump=`&ref_`+u+e.dump)):(P(e,f,e.dump),d&&(e.dump=`&ref_`+u+` `+e.dump))}else if(c===`[object String]`)e.tag!==`?`&&ve(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new r(`unacceptable kind of an object to dump `+c)}e.tag!==null&&e.tag!==`?`&&(e.dump=`!<`+e.tag+`> `+e.dump)}return!0}function ke(e,t){var n=[],r=[],i,a;for(Ae(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=Array(a)}function Ae(e,t,n){var r,i,a;if(typeof e==`object`&&e){if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)Ae(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)Ae(e[r[i]],t,n)}}function je(e,t){t||={};var n=new ae(t);return n.noRefs||ke(e,n),Oe(n,0,e,!0,!0)?n.dump+`
635
635
  `:``}function Me(e,t){return je(e,n.extend({schema:a},t))}t.exports.dump=je,t.exports.safeDump=Me})),fPe=/* @__PURE__ */ a(((e,t)=>{var n=uPe(),r=dPe();function i(e){return function(){throw Error(`Function `+e+` is deprecated and cannot be used.`)}}t.exports.Type=$O(),t.exports.Schema=ek(),t.exports.FAILSAFE_SCHEMA=tk(),t.exports.JSON_SCHEMA=QNe(),t.exports.CORE_SCHEMA=$Ne(),t.exports.DEFAULT_SAFE_SCHEMA=nk(),t.exports.DEFAULT_FULL_SCHEMA=rk(),t.exports.load=n.load,t.exports.loadAll=n.loadAll,t.exports.safeLoad=n.safeLoad,t.exports.safeLoadAll=n.safeLoadAll,t.exports.dump=r.dump,t.exports.safeDump=r.safeDump,t.exports.YAMLException=QO(),t.exports.MINIMAL_SCHEMA=tk(),t.exports.SAFE_SCHEMA=nk(),t.exports.DEFAULT_SCHEMA=rk(),t.exports.scan=i(`scan`),t.exports.parse=i(`parse`),t.exports.compose=i(`compose`),t.exports.addConstructor=i(`addConstructor`)})),pPe=/* @__PURE__ */ a(((e,t)=>{t.exports=fPe()}));const mPe=(/* @__PURE__ */ r((/* @__PURE__ */ a(((e,t)=>{var n=pPe(),r=`\\ufeff?`,i=typeof process<`u`?process.platform:``,a=`^(`+r+`(= yaml =|---)$([\\s\\S]*?)^(?:\\2|\\.\\.\\.)\\s*$`+(i===`win32`?`\\r?`:``)+`(?:\\n)?)`,o=new RegExp(a,`m`);t.exports=s,t.exports.test=u;function s(e,t){e||=``;var n={allowUnsafe:!1};t=t instanceof Object?{...n,...t}:n,t.allowUnsafe=!!t.allowUnsafe;var r=e.split(/(\r?\n)/);return r[0]&&/= yaml =|---/.test(r[0])?l(e,t.allowUnsafe):{attributes:{},body:e,bodyBegin:1}}function c(e,t){for(var n=1,r=t.indexOf(`
636
636
  `),i=e.index+e[0].length;r!==-1;){if(r>=i)return n;n++,r=t.indexOf(`
637
- `,r+1)}return n}function l(e,t){var r=o.exec(e);if(!r)return{attributes:{},body:e,bodyBegin:1};var i=t?n.load:n.safeLoad,a=r[r.length-1].replace(/^\s+|\s+$/g,``);return{attributes:i(a)||{},body:e.replace(r[0],``),bodyBegin:c(r,e),frontmatter:a}}function u(e){return e||=``,o.test(e)}})))(),1)).default,hPe=/^?(---|\+\+\+)\r?\n[\s\S]*?\r?\n\1[ \t]*(?=\r?\n|$)/;function ik(e){return mPe(e)}const ak=e=>cNe(e).join(`/`);function ok(e){return e.replaceAll(`\\`,`/`)}const gPe=e=>e.replace(/\.mdx?$/,``),_Pe=[`api`,`openapi`,`asyncapi`];var vPe=class extends Error{constructor(){super(...arguments),this.name=`InvalidEndpointFrontmatterError`}};const sk=(e,t,n,r)=>{let i={};try{i=ik(t).attributes}catch(t){if(t&&typeof t==`object`&&`mark`in t&&t.mark&&typeof t.mark==`object`&&`line`in t.mark&&typeof t.mark.line==`number`){let n=`column`in t.mark&&t.mark.column!==0?`, column ${t.mark.column}`:``;throw Error(`There is a syntax error in your frontmatter on line ${t.mark.line}${n} in ${e}`)}throw Error(`Unable to parse page metadata in ${e}`)}for(let t of _Pe){let n=i[t];if(n!=null&&typeof n!=`string`)throw new vPe(`Invalid "${t}" frontmatter in ${e}: expected a single endpoint string (e.g. "GET /users"), received ${Array.isArray(n)?`an array`:typeof n}`)}let a=gPe(e),o=Ah(a),s,c;if(i.openapi){let{title:e,description:t}=vae(n,i.openapi);s=e,c=t}if(i.asyncapi){i.asyncapi=UNe(e,i.asyncapi);let t=HNe(i.asyncapi,r);s=t?.title,c=t?.description}return{pageMetadata:Object.assign(Object.assign({title:s??o,description:c},i),{href:Dh(a)}),slug:ak(a)}},ck=e=>e.hasOwnProperty(`href`)&&e.hasOwnProperty(`title`);function lk(e,t){if(!(t in e))return;let n=e[t];if(!Array.isArray(n))return;let r=[];for(let e of n)typeof e==`object`&&e&&r.push(e);return r}function uk(e,t,n){let r=lk(e,t);if(r)for(let e of r)n(e)}const yPe=/* @__PURE__ */ new Set([`versions`,`languages`]);function dk(e,t){if(!(t in e))return``;let n=Reflect.get(e,t);return typeof n==`string`?n:``}function bPe(e,t){return t===`groups`?dk(e,`group`):t===`products`?dk(e,`name`)||dk(e,`product`):dk(e,ws[t])}function xPe(e){let t=e.find(e=>Reflect.get(e,`default`)===!0)??e[0];return t?dk(t,`language`):``}function SPe(e,{language:t,isDefaultLanguage:n,version:r}){return t?(r?[`${t}/`,`${r}/${t}/`]:[`${t}/`]).some(t=>e.startsWith(t))?2:+!!n:0}function CPe(e,t,n,r){if(e===`languages`){let e=dk(t,`language`);return Object.assign(Object.assign({},n),{language:e,isDefaultLanguage:e===r})}return e===`versions`?Object.assign(Object.assign({},n),{version:dk(t,`version`)}):n}function wPe(e){let t=/* @__PURE__ */ new Map;return TPe(e,t,[],/* @__PURE__ */ new Map),t}function TPe(e,t,n,r,i={}){`pages`in e&&EPe(e.pages,n,t,0,r,i);for(let a of[...Ss,`groups`])if(a in e){let o=e[a];if(!Array.isArray(o))continue;let s=a===`groups`||!yPe.has(a),c=a===`languages`?xPe(o):void 0;for(let e of o){let o=s?bPe(e,a):``;TPe(e,t,o?[...n,o]:n,r,CPe(a,e,i,c))}}}function EPe(e,t,n,r=0,i=/* @__PURE__ */ new Map,a={}){if(!(r>=100))for(let o of e)if(typeof o==`string`){let e=SPe(o,a);if((i.get(o)??-1)>e)continue;let r=t.filter(e=>!!e.trim());n.set(o,[...r]),i.set(o,e)}else{if(!(`group`in o))continue;t.push(o.group),`pages`in o&&Array.isArray(o.pages)&&EPe(o.pages,t,n,r+1,i,a),t.pop()}}function fk(e,t=[]){if(`pages`in e)return`root`in e&&typeof e.root==`string`&&pk(e.root,t),e.pages.forEach(e=>pk(e,t)),t;for(let n of[`groups`,...Ss]){let r=lk(e,n);r&&r.forEach(e=>fk(e,t))}return t}function pk(e,t){typeof e==`string`?t.push(e):`pages`in e&&Array.isArray(e.pages)&&(`root`in e&&typeof e.root==`object`&&pk(e.root,t),e.pages.forEach(e=>{pk(e,t)}))}function DPe(e){return ck(e)?[]:`languages`in e?e.languages:`versions`in e?e.versions:`products`in e?e.products:`tabs`in e?e.tabs:`anchors`in e?e.anchors:`dropdowns`in e?e.dropdowns:[]}function OPe(e){return ck(e)?[]:`group`in e?e.root?[e.root,...e.pages]:e.pages:`pages`in e?e.pages:`groups`in e?e.groups:`menu`in e?e.menu:[]}function kPe(e,t=[]){return mk(e,t),t}function mk(e,t){if(ck(e)){let n=APe(e.href);n!==void 0&&t.push(n)}else if(e.root!=null&&typeof e.root==`object`&&mk(e.root,t),Array.isArray(e.pages))e.pages.forEach(e=>mk(e,t));else for(let n of[`groups`,...Ss]){let r=e[n];Array.isArray(r)&&r.forEach(e=>mk(e,t))}}function APe(e){if(!(!e||e.startsWith(`#`)||e.startsWith(`//`)||_m(e)))return xh(e)}function jPe(e,t,n=!1,r=!0){return r&&e.hidden?!1:n?!0:_(e.groups,t)}function MPe(e){if(e===``)return`index`;if(e===`index`)return e;if(e.endsWith(`/index`)){let t=CO(e);return t===``?`index`:t}return e}function NPe(e,t){return e==null||t==null||typeof e!=`string`||typeof t!=`string`?!1:PPe(e)===PPe(t)}function PPe(e){return MPe(kh(Oh(e)))}function FPe(e){let t=/* @__PURE__ */ new Map;return hk(t,e,!1),t}function hk(e,t,n){if(typeof t!=`object`)return;let r=`hidden`in t&&typeof t.hidden==`boolean`,i=r&&t.hidden===!0,a=`searchable`in t&&t.searchable===!0,o;if(o=i?!a:!r&&n,ck(t)){let n=xh(t.href);(t.hidden??o)&&!e.has(n)&&e.set(n,!0)}if(`pages`in t&&Array.isArray(t.pages)){`root`in t&&typeof t.root==`object`&&hk(e,t.root,o);for(let n of t.pages)typeof n==`object`&&hk(e,n,o)}for(let n of[`groups`,...Ss])uk(t,n,t=>hk(e,t,o))}function IPe(e){let t=/* @__PURE__ */ new Map;return gk(t,e),t}function gk(e,t,n){if(typeof t==`object`){if(ck(t)){let r=xh(t.href),i=e.get(r);e.has(r)?i!==void 0&&i!==n&&e.set(r,void 0):e.set(r,n)}if(`pages`in t&&Array.isArray(t.pages)){`root`in t&&typeof t.root==`object`&&gk(e,t.root,n);for(let r of t.pages)typeof r==`object`&&gk(e,r,n)}for(let r of[`groups`,...Ss])uk(t,r,t=>{let i=n;r===`versions`&&(i=t.version),gk(e,t,i)})}}function LPe(e){let t=/* @__PURE__ */ new Map;return RPe(t,e,void 0),t}function RPe(e,t,n){let r=`language`in t?t.language:n;if(`pages`in t)`root`in t&&typeof t.root==`object`&&_k(e,t.root,r),t.pages.forEach(t=>_k(e,t,r));else for(let n of[`groups`,...Ss])uk(t,n,t=>RPe(e,t,r))}function _k(e,t,n){if(`pages`in t)`root`in t&&typeof t.root==`object`&&_k(e,t.root,n),t.pages.forEach(t=>_k(e,t,n));else if(`href`in t){let r=xh(t.href),i=e.get(r);e.has(r)?i!==n&&i!==void 0&&e.set(r,void 0):e.set(r,n)}}var zPe,BPe,vk,VPe,HPe,yk=n((()=>{(function(e){e.None=`none`,e.Declared=`declared`,e.InheritedFromService=`inheritedFromService`})(zPe||={}),(function(e){e.Unspecified=`unspecified`,e.Simple=`simple`,e.Matrix=`matrix`,e.Label=`label`,e.Form=`form`,e.CommaDelimited=`commaDelimited`,e.SpaceDelimited=`spaceDelimited`,e.PipeDelimited=`pipeDelimited`,e.DeepObject=`deepObject`,e.TabDelimited=`tabDelimited`})(BPe||={}),(function(e){e[e.Error=0]=`Error`,e[e.Warning=1]=`Warning`,e[e.Information=2]=`Information`,e[e.Hint=3]=`Hint`})(vk||={}),(function(e){e.Article=`article`,e.HttpService=`http_service`,e.HttpServer=`http_server`,e.HttpOperation=`http_operation`,e.HttpCallback=`http_callback`,e.Model=`model`,e.Generic=`generic`,e.Unknown=`unknown`,e.TableOfContents=`table_of_contents`,e.SpectralRuleset=`spectral_ruleset`,e.Styleguide=`styleguide`,e.Image=`image`,e.StoplightResolutions=`stoplight_resolutions`,e.StoplightOverride=`stoplight_override`})(VPe||={}),(function(e){e.Json=`json`,e.Markdown=`markdown`,e.Yaml=`yaml`,e.Javascript=`javascript`,e.Apng=`apng`,e.Avif=`avif`,e.Bmp=`bmp`,e.Gif=`gif`,e.Jpeg=`jpeg`,e.Png=`png`,e.Svg=`svg`,e.Webp=`webp`})(HPe||={})})),bk=class{constructor(e,t={}){this._json=e,this._meta=t}json(e){return e===void 0||this._json===null||this._json===void 0?this._json:this._json[e]}meta(e){if(e===void 0)return this._meta;if(this._meta)return this._meta[e]}jsonPath(e){return typeof e==`string`?`${this._meta.pointer}/${e}`:this._meta.pointer}createModel(e,t,n){return new e(t,Object.assign(Object.assign({},n),{asyncapi:this._meta.asyncapi}))}},xk=class extends Array{constructor(e,t={}){super(...e),this.collections=e,this._meta=t}has(e){return this.get(e)!==void 0}all(){return this.collections}isEmpty(){return this.collections.length===0}filterBy(e){return this.collections.filter(e)}meta(e){if(e===void 0)return this._meta;if(this._meta)return this._meta[String(e)]}},UPe=class extends xk{get(e){return e=e.startsWith(`x-`)?e:`x-${e}`,this.collections.find(t=>t.id()===e)}},WPe=class extends bk{id(){return this._meta.id}value(){return this._json}},Sk;(function(e){e.NEW_SCHEMA=`NEW_SCHEMA`,e.END_SCHEMA=`END_SCHEMA`})(Sk||={});var Ck;(function(e){e.Parameters=`parameters`,e.Payloads=`payloads`,e.Headers=`headers`,e.Components=`components`,e.Objects=`objects`,e.Arrays=`arrays`,e.OneOfs=`oneOfs`,e.AllOfs=`allOfs`,e.AnyOfs=`anyOfs`,e.Nots=`nots`,e.PropertyNames=`propertyNames`,e.PatternProperties=`patternProperties`,e.Contains=`contains`,e.Ifs=`ifs`,e.Thenes=`thenes`,e.Elses=`elses`,e.Dependencies=`dependencies`,e.Definitions=`definitions`})(Ck||={});function GPe(e,t,n=[]){n.length===0&&(n=Object.values(Ck));let r={callback:t,schemaTypesToIterate:n,seenSchemas:/* @__PURE__ */ new Set};if(e.channels().isEmpty()||e.channels().all().forEach(e=>{JPe(e,r)}),n.includes(Ck.Components)&&!e.components().isEmpty()){let t=e.components();Object.values(t.messages().all()||{}).forEach(e=>{YPe(e,r)}),Object.values(t.schemas().all()||{}).forEach(e=>{wk(e,null,r)}),n.includes(Ck.Parameters)&&Object.values(t.channelParameters().filterBy(e=>e.hasSchema())).forEach(e=>{wk(e.schema(),null,r)}),Object.values(t.messageTraits().all()||{}).forEach(e=>{XPe(e,r)})}}function wk(e,t,n){if(!e)return;let{schemaTypesToIterate:r,callback:i,seenSchemas:a}=n,o=e.json();if(a.has(o))return;a.add(o);let s=e.type()||[];Array.isArray(s)||(s=[s]),(r.includes(Ck.Objects)||!s.includes(`object`))&&(r.includes(Ck.Arrays)||!s.includes(`array`))&&i(e,t,Sk.NEW_SCHEMA)!==!1&&(r.includes(Ck.Objects)&&s.includes(`object`)&&KPe(e,n),r.includes(Ck.Arrays)&&s.includes(`array`)&&qPe(e,n),r.includes(Ck.OneOfs)&&(e.oneOf()||[]).forEach((e,t)=>{wk(e,t,n)}),r.includes(Ck.AnyOfs)&&(e.anyOf()||[]).forEach((e,t)=>{wk(e,t,n)}),r.includes(Ck.AllOfs)&&(e.allOf()||[]).forEach((e,t)=>{wk(e,t,n)}),r.includes(Ck.Nots)&&e.not()&&wk(e.not(),null,n),r.includes(Ck.Ifs)&&e.if()&&wk(e.if(),null,n),r.includes(Ck.Thenes)&&e.then()&&wk(e.then(),null,n),r.includes(Ck.Elses)&&e.else()&&wk(e.else(),null,n),r.includes(Ck.Dependencies)&&Object.entries(e.dependencies()||{}).forEach(([e,t])=>{t&&!Array.isArray(t)&&wk(t,e,n)}),r.includes(Ck.Definitions)&&Object.entries(e.definitions()||{}).forEach(([e,t])=>{wk(t,e,n)}),i(e,t,Sk.END_SCHEMA),a.delete(o))}function KPe(e,t){Object.entries(e.properties()||{}).forEach(([e,n])=>{wk(n,e,t)});let n=e.additionalProperties();typeof n==`object`&&wk(n,null,t);let r=t.schemaTypesToIterate;r.includes(Ck.PropertyNames)&&e.propertyNames()&&wk(e.propertyNames(),null,t),r.includes(Ck.PatternProperties)&&Object.entries(e.patternProperties()||{}).forEach(([e,n])=>{wk(n,e,t)})}function qPe(e,t){let n=e.items();n&&(Array.isArray(n)?n.forEach((e,n)=>{wk(e,n,t)}):wk(n,null,t));let r=e.additionalItems();typeof r==`object`&&wk(r,null,t),t.schemaTypesToIterate.includes(`contains`)&&e.contains()&&wk(e.contains(),null,t)}function JPe(e,t){if(!e)return;let{schemaTypesToIterate:n}=t;n.includes(Ck.Parameters)&&Object.values(e.parameters().filterBy(e=>e.hasSchema())||{}).forEach(e=>{wk(e.schema(),null,t)}),e.messages().all().forEach(e=>{YPe(e,t)})}function YPe(e,t){if(!e)return;let{schemaTypesToIterate:n}=t;n.includes(Ck.Headers)&&e.hasHeaders()&&wk(e.headers(),null,t),n.includes(Ck.Payloads)&&e.hasPayload()&&wk(e.payload(),null,t)}function XPe(e,t){if(!e)return;let{schemaTypesToIterate:n}=t;n.includes(Ck.Headers)&&e.hasHeaders()&&wk(e.headers(),null,t)}function Tk(e,t,n,r){return new e(t,Object.assign(Object.assign({},n),{asyncapi:n.asyncapi||r?.meta().asyncapi}))}function Ek(e,t,n){let r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Set;function a(e){r.has(e.json())||(r.add(e.json()),i.add(e))}let o=Object.values(Ck);return n||(o=o.filter(e=>e!==Ck.Components)),GPe(e,a,o),new t(Array.from(i))}var ZPe=/* @__PURE__ */ a(((e,t)=>{t.exports={$id:`http://asyncapi.com/definitions/2.0.0/asyncapi.json`,$schema:`http://json-schema.org/draft-07/schema`,title:`AsyncAPI 2.0.0 schema.`,type:`object`,required:[`asyncapi`,`info`,`channels`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{asyncapi:{type:`string`,enum:[`2.0.0`],description:`The AsyncAPI specification version of this document.`},id:{type:`string`,description:`A unique id representing the application.`,format:`uri`},info:{$ref:`http://asyncapi.com/definitions/2.0.0/info.json`},servers:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/server.json`}},defaultContentType:{type:`string`},channels:{$ref:`http://asyncapi.com/definitions/2.0.0/channels.json`},components:{$ref:`http://asyncapi.com/definitions/2.0.0/components.json`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`}},definitions:{"http://asyncapi.com/definitions/2.0.0/specificationExtension.json":{$id:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`,description:`Any property starting with x- is valid.`,additionalProperties:!0,additionalItems:!0},"http://asyncapi.com/definitions/2.0.0/info.json":{$id:`http://asyncapi.com/definitions/2.0.0/info.json`,type:`object`,description:`General information about the API.`,required:[`version`,`title`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{title:{type:`string`,description:`A unique and precise title of the API.`},version:{type:`string`,description:`A semantic version number of the API.`},description:{type:`string`,description:`A longer description of the API. Should be different from the title. CommonMark is allowed.`},termsOfService:{type:`string`,description:`A URL to the Terms of Service for the API. MUST be in the format of a URL.`,format:`uri`},contact:{$ref:`http://asyncapi.com/definitions/2.0.0/contact.json`},license:{$ref:`http://asyncapi.com/definitions/2.0.0/license.json`}}},"http://asyncapi.com/definitions/2.0.0/contact.json":{$id:`http://asyncapi.com/definitions/2.0.0/contact.json`,type:`object`,description:`Contact information for the owners of the API.`,additionalProperties:!1,properties:{name:{type:`string`,description:`The identifying name of the contact person/organization.`},url:{type:`string`,description:`The URL pointing to the contact information.`,format:`uri`},email:{type:`string`,description:`The email address of the contact person/organization.`,format:`email`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.0.0/license.json":{$id:`http://asyncapi.com/definitions/2.0.0/license.json`,type:`object`,required:[`name`],additionalProperties:!1,properties:{name:{type:`string`,description:`The name of the license type. It's encouraged to use an OSI compatible license.`},url:{type:`string`,description:`The URL pointing to the license.`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.0.0/server.json":{$id:`http://asyncapi.com/definitions/2.0.0/server.json`,type:`object`,description:`An object representing a Server.`,required:[`url`,`protocol`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{url:{type:`string`},description:{type:`string`},protocol:{type:`string`,description:`The transfer protocol.`},protocolVersion:{type:`string`},variables:{$ref:`http://asyncapi.com/definitions/2.0.0/serverVariables.json`},security:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/SecurityRequirement.json`}},bindings:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.0.0/serverVariables.json":{$id:`http://asyncapi.com/definitions/2.0.0/serverVariables.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/serverVariable.json`}},"http://asyncapi.com/definitions/2.0.0/serverVariable.json":{$id:`http://asyncapi.com/definitions/2.0.0/serverVariable.json`,type:`object`,description:`An object representing a Server Variable for server URL template substitution.`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{enum:{type:`array`,items:{type:`string`},uniqueItems:!0},default:{type:`string`},description:{type:`string`},examples:{type:`array`,items:{type:`string`}}}},"http://asyncapi.com/definitions/2.0.0/SecurityRequirement.json":{$id:`http://asyncapi.com/definitions/2.0.0/SecurityRequirement.json`,type:`object`,additionalProperties:{type:`array`,items:{type:`string`},uniqueItems:!0}},"http://asyncapi.com/definitions/2.0.0/bindingsObject.json":{$id:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`,type:`object`,additionalProperties:!0,properties:{http:{},ws:{},amqp:{},amqp1:{},mqtt:{},mqtt5:{},kafka:{},nats:{},jms:{},sns:{},sqs:{},stomp:{},redis:{}}},"http://asyncapi.com/definitions/2.0.0/channels.json":{$id:`http://asyncapi.com/definitions/2.0.0/channels.json`,type:`object`,propertyNames:{type:`string`,format:`uri-template`,minLength:1},additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/channelItem.json`}},"http://asyncapi.com/definitions/2.0.0/channelItem.json":{$id:`http://asyncapi.com/definitions/2.0.0/channelItem.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{$ref:{$ref:`http://asyncapi.com/definitions/2.0.0/ReferenceObject.json`},parameters:{$ref:`http://asyncapi.com/definitions/2.0.0/parameters.json`},description:{type:`string`,description:`A description of the channel.`},publish:{$ref:`http://asyncapi.com/definitions/2.0.0/operation.json`},subscribe:{$ref:`http://asyncapi.com/definitions/2.0.0/operation.json`},deprecated:{type:`boolean`,default:!1},bindings:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.0.0/ReferenceObject.json":{$id:`http://asyncapi.com/definitions/2.0.0/ReferenceObject.json`,type:`string`,format:`uri-reference`},"http://asyncapi.com/definitions/2.0.0/parameters.json":{$id:`http://asyncapi.com/definitions/2.0.0/parameters.json`,type:`object`,additionalProperties:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/parameter.json`}]},description:`JSON objects describing re-usable channel parameters.`},"http://asyncapi.com/definitions/2.0.0/Reference.json":{$id:`http://asyncapi.com/definitions/2.0.0/Reference.json`,type:`object`,required:[`$ref`],properties:{$ref:{$ref:`http://asyncapi.com/definitions/2.0.0/ReferenceObject.json`}}},"http://asyncapi.com/definitions/2.0.0/parameter.json":{$id:`http://asyncapi.com/definitions/2.0.0/parameter.json`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{description:{type:`string`,description:`A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.`},schema:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},location:{type:`string`,description:`A runtime expression that specifies the location of the parameter value`,pattern:`^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*`},$ref:{$ref:`http://asyncapi.com/definitions/2.0.0/ReferenceObject.json`}}},"http://asyncapi.com/definitions/2.0.0/schema.json":{$id:`http://asyncapi.com/definitions/2.0.0/schema.json`,allOf:[{$ref:`http://json-schema.org/draft-07/schema#`},{patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{additionalProperties:{anyOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},{type:`boolean`}],default:{}},items:{anyOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`}}],default:{}},allOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`}},oneOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`}},anyOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`}},not:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},properties:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},default:{}},propertyNames:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},contains:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},discriminator:{type:`string`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1}}}]},"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},writeOnly:{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},"http://asyncapi.com/definitions/2.0.0/externalDocs.json":{$id:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`,type:`object`,additionalProperties:!1,description:`information about external documentation`,required:[`url`],properties:{description:{type:`string`},url:{type:`string`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.0.0/operation.json":{$id:`http://asyncapi.com/definitions/2.0.0/operation.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{traits:{type:`array`,items:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/operationTrait.json`}]}},summary:{type:`string`},description:{type:`string`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`},operationId:{type:`string`},bindings:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`},message:{$ref:`http://asyncapi.com/definitions/2.0.0/message.json`}}},"http://asyncapi.com/definitions/2.0.0/operationTrait.json":{$id:`http://asyncapi.com/definitions/2.0.0/operationTrait.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{summary:{type:`string`},description:{type:`string`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`},operationId:{type:`string`},bindings:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.0.0/tag.json":{$id:`http://asyncapi.com/definitions/2.0.0/tag.json`,type:`object`,additionalProperties:!1,required:[`name`],properties:{name:{type:`string`},description:{type:`string`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.0.0/message.json":{$id:`http://asyncapi.com/definitions/2.0.0/message.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{oneOf:[{type:`object`,required:[`oneOf`],additionalProperties:!1,properties:{oneOf:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/message.json`}}}},{type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{schemaFormat:{type:`string`},contentType:{type:`string`},headers:{allOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},{properties:{type:{const:`object`}}}]},payload:{},correlationId:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/correlationId.json`}]},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/tag.json`},uniqueItems:!0},summary:{type:`string`,description:`A brief summary of the message.`},name:{type:`string`,description:`Name of the message.`},title:{type:`string`,description:`A human-friendly title for the message.`},description:{type:`string`,description:`A longer description of the message. CommonMark is allowed.`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1},examples:{type:`array`,items:{type:`object`,additionalProperties:!1,properties:{headers:{type:`object`},payload:{}}}},bindings:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`},traits:{type:`array`,items:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/messageTrait.json`}]}}},allOf:[{if:{not:{required:[`schemaFormat`]}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.aai.asyncapi;version=2.0.0`,`application/vnd.aai.asyncapi+json;version=2.0.0`,`application/vnd.aai.asyncapi+yaml;version=2.0.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/schema+json;version=draft-07`,`application/schema+yaml;version=draft-07`]}}},then:{properties:{payload:{$ref:`http://json-schema.org/draft-07/schema`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.oai.openapi;version=3.0.0`,`application/vnd.oai.openapi+json;version=3.0.0`,`application/vnd.oai.openapi+yaml;version=3.0.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.0.0/openapiSchema_3_0.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.apache.avro;version=1.9.0`,`application/vnd.apache.avro+json;version=1.9.0`,`application/vnd.apache.avro+yaml;version=1.9.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.0.0/avroSchema_v1.json`}}}}]}]}]},"http://asyncapi.com/definitions/2.0.0/correlationId.json":{$id:`http://asyncapi.com/definitions/2.0.0/correlationId.json`,type:`object`,required:[`location`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{description:{type:`string`,description:`A optional description of the correlation ID. GitHub Flavored Markdown is allowed.`},location:{type:`string`,description:`A runtime expression that specifies the location of the correlation ID`,pattern:`^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*`}}},"http://asyncapi.com/definitions/2.0.0/messageTrait.json":{$id:`http://asyncapi.com/definitions/2.0.0/messageTrait.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{schemaFormat:{type:`string`},contentType:{type:`string`},headers:{allOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},{properties:{type:{const:`object`}}}]},correlationId:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/correlationId.json`}]},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/tag.json`},uniqueItems:!0},summary:{type:`string`,description:`A brief summary of the message.`},name:{type:`string`,description:`Name of the message.`},title:{type:`string`,description:`A human-friendly title for the message.`},description:{type:`string`,description:`A longer description of the message. CommonMark is allowed.`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1},examples:{type:`array`,items:{type:`object`}},bindings:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.0.0/openapiSchema_3_0.json":{$id:`http://asyncapi.com/definitions/2.0.0/openapiSchema_3_0.json`,type:`object`,definitions:{ExternalDocumentation:{type:`object`,required:[`url`],properties:{description:{type:`string`},url:{type:`string`,format:`uri-reference`}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:`object`,required:[`propertyName`],properties:{propertyName:{type:`string`},mapping:{type:`object`,additionalProperties:{type:`string`}}}},Reference:{type:`object`,required:[`$ref`],patternProperties:{"^\\$ref$":{type:`string`,format:`uri-reference`}}},XML:{type:`object`,properties:{name:{type:`string`},namespace:{type:`string`,format:`uri`},prefix:{type:`string`},attribute:{type:`boolean`,default:!1},wrapped:{type:`boolean`,default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1}},properties:{title:{type:`string`},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`boolean`,default:!1},minimum:{type:`number`},exclusiveMinimum:{type:`boolean`,default:!1},maxLength:{type:`integer`,minimum:0},minLength:{type:`integer`,minimum:0,default:0},pattern:{type:`string`,format:`regex`},maxItems:{type:`integer`,minimum:0},minItems:{type:`integer`,minimum:0,default:0},uniqueItems:{type:`boolean`,default:!1},maxProperties:{type:`integer`,minimum:0},minProperties:{type:`integer`,minimum:0,default:0},required:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0},enum:{type:`array`,items:!0,minItems:1,uniqueItems:!1},type:{type:`string`,enum:[`array`,`boolean`,`integer`,`number`,`object`,`string`]},not:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]},allOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},oneOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},anyOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]},properties:{type:`object`,additionalProperties:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},additionalProperties:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`},{type:`boolean`}],default:!0},description:{type:`string`},format:{type:`string`},default:!0,nullable:{type:`boolean`,default:!1},discriminator:{$ref:`#/definitions/Discriminator`},readOnly:{type:`boolean`,default:!1},writeOnly:{type:`boolean`,default:!1},example:!0,externalDocs:{$ref:`#/definitions/ExternalDocumentation`},deprecated:{type:`boolean`,default:!1},xml:{$ref:`#/definitions/XML`}},patternProperties:{"^x-":!0},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/avroSchema_v1.json":{$id:`http://asyncapi.com/definitions/2.0.0/avroSchema_v1.json`,definitions:{avroSchema:{title:`Avro Schema`,description:`Root Schema`,oneOf:[{$ref:`#/definitions/types`}]},types:{title:`Avro Types`,description:`Allowed Avro types`,oneOf:[{$ref:`#/definitions/primitiveType`},{$ref:`#/definitions/primitiveTypeWithMetadata`},{$ref:`#/definitions/customTypeReference`},{$ref:`#/definitions/avroRecord`},{$ref:`#/definitions/avroEnum`},{$ref:`#/definitions/avroArray`},{$ref:`#/definitions/avroMap`},{$ref:`#/definitions/avroFixed`},{$ref:`#/definitions/avroUnion`}]},primitiveType:{title:`Primitive Type`,description:`Basic type primitives.`,type:`string`,enum:[`null`,`boolean`,`int`,`long`,`float`,`double`,`bytes`,`string`]},primitiveTypeWithMetadata:{title:`Primitive Type With Metadata`,description:`A primitive type with metadata attached.`,type:`object`,properties:{type:{$ref:`#/definitions/primitiveType`}},required:[`type`]},customTypeReference:{title:`Custom Type`,description:`Reference to a ComplexType`,not:{$ref:`#/definitions/primitiveType`},type:`string`,pattern:`^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$`},avroUnion:{title:`Union`,description:`A Union of types`,type:`array`,items:{$ref:`#/definitions/avroSchema`},minItems:1},avroField:{title:`Field`,description:`A field within a Record`,type:`object`,properties:{name:{$ref:`#/definitions/name`},type:{$ref:`#/definitions/types`},doc:{type:`string`},default:!0,order:{enum:[`ascending`,`descending`,`ignore`]},aliases:{type:`array`,items:{$ref:`#/definitions/name`}}},required:[`name`,`type`]},avroRecord:{title:`Record`,description:`A Record`,type:`object`,properties:{type:{type:`string`,const:`record`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},fields:{type:`array`,items:{$ref:`#/definitions/avroField`}}},required:[`type`,`name`,`fields`]},avroEnum:{title:`Enum`,description:`An enumeration`,type:`object`,properties:{type:{type:`string`,const:`enum`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},symbols:{type:`array`,items:{$ref:`#/definitions/name`}}},required:[`type`,`name`,`symbols`]},avroArray:{title:`Array`,description:`An array`,type:`object`,properties:{type:{type:`string`,const:`array`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},items:{$ref:`#/definitions/types`}},required:[`type`,`items`]},avroMap:{title:`Map`,description:`A map of values`,type:`object`,properties:{type:{type:`string`,const:`map`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},values:{$ref:`#/definitions/types`}},required:[`type`,`values`]},avroFixed:{title:`Fixed`,description:`A fixed sized array of bytes`,type:`object`,properties:{type:{type:`string`,const:`fixed`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},size:{type:`number`}},required:[`type`,`name`,`size`]},name:{type:`string`,pattern:`^[A-Za-z_][A-Za-z0-9_]*$`},namespace:{type:`string`,pattern:`^([A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*)*$`}},description:`Json-Schema definition for Avro AVSC files.`,oneOf:[{$ref:`#/definitions/avroSchema`}],title:`Avro Schema Definition`},"http://asyncapi.com/definitions/2.0.0/components.json":{$id:`http://asyncapi.com/definitions/2.0.0/components.json`,type:`object`,description:`An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{schemas:{$ref:`http://asyncapi.com/definitions/2.0.0/schemas.json`},messages:{$ref:`http://asyncapi.com/definitions/2.0.0/messages.json`},securitySchemes:{type:`object`,patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/SecurityScheme.json`}]}}},parameters:{$ref:`http://asyncapi.com/definitions/2.0.0/parameters.json`},correlationIds:{type:`object`,patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/correlationId.json`}]}}},operationTraits:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/operationTrait.json`}},messageTraits:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/messageTrait.json`}},serverBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}},channelBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}},operationBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}},messageBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}}}},"http://asyncapi.com/definitions/2.0.0/schemas.json":{$id:`http://asyncapi.com/definitions/2.0.0/schemas.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},description:`JSON objects describing schemas the API uses.`},"http://asyncapi.com/definitions/2.0.0/messages.json":{$id:`http://asyncapi.com/definitions/2.0.0/messages.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/message.json`},description:`JSON objects describing the messages being consumed and produced by the API.`},"http://asyncapi.com/definitions/2.0.0/SecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.0.0/SecurityScheme.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/userPassword.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/apiKey.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/X509.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/symmetricEncryption.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/asymmetricEncryption.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/HTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/oauth2Flows.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/openIdConnect.json`}]},"http://asyncapi.com/definitions/2.0.0/userPassword.json":{$id:`http://asyncapi.com/definitions/2.0.0/userPassword.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`userPassword`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/apiKey.json":{$id:`http://asyncapi.com/definitions/2.0.0/apiKey.json`,type:`object`,required:[`type`,`in`],properties:{type:{type:`string`,enum:[`apiKey`]},in:{type:`string`,enum:[`user`,`password`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/X509.json":{$id:`http://asyncapi.com/definitions/2.0.0/X509.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`X509`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/symmetricEncryption.json":{$id:`http://asyncapi.com/definitions/2.0.0/symmetricEncryption.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`symmetricEncryption`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/asymmetricEncryption.json":{$id:`http://asyncapi.com/definitions/2.0.0/asymmetricEncryption.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`asymmetricEncryption`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/HTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.0.0/HTTPSecurityScheme.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/NonBearerHTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/BearerHTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/APIKeyHTTPSecurityScheme.json`}]},"http://asyncapi.com/definitions/2.0.0/NonBearerHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.0.0/NonBearerHTTPSecurityScheme.json`,not:{type:`object`,properties:{scheme:{type:`string`,enum:[`bearer`]}}},type:`object`,required:[`scheme`,`type`],properties:{scheme:{type:`string`},description:{type:`string`},type:{type:`string`,enum:[`http`]}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/BearerHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.0.0/BearerHTTPSecurityScheme.json`,type:`object`,required:[`type`,`scheme`],properties:{scheme:{type:`string`,enum:[`bearer`]},bearerFormat:{type:`string`},type:{type:`string`,enum:[`http`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/APIKeyHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.0.0/APIKeyHTTPSecurityScheme.json`,type:`object`,required:[`type`,`name`,`in`],properties:{type:{type:`string`,enum:[`httpApiKey`]},name:{type:`string`},in:{type:`string`,enum:[`header`,`query`,`cookie`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/oauth2Flows.json":{$id:`http://asyncapi.com/definitions/2.0.0/oauth2Flows.json`,type:`object`,required:[`type`,`flows`],properties:{type:{type:`string`,enum:[`oauth2`]},description:{type:`string`},flows:{type:`object`,properties:{implicit:{allOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/oauth2Flow.json`},{required:[`authorizationUrl`,`scopes`]},{not:{required:[`tokenUrl`]}}]},password:{allOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/oauth2Flow.json`},{required:[`tokenUrl`,`scopes`]},{not:{required:[`authorizationUrl`]}}]},clientCredentials:{allOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/oauth2Flow.json`},{required:[`tokenUrl`,`scopes`]},{not:{required:[`authorizationUrl`]}}]},authorizationCode:{allOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/oauth2Flow.json`},{required:[`authorizationUrl`,`tokenUrl`,`scopes`]}]}},additionalProperties:!1}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json":{$id:`http://asyncapi.com/definitions/2.0.0/oauth2Flow.json`,type:`object`,properties:{authorizationUrl:{type:`string`,format:`uri`},tokenUrl:{type:`string`,format:`uri`},refreshUrl:{type:`string`,format:`uri`},scopes:{$ref:`http://asyncapi.com/definitions/2.0.0/oauth2Scopes.json`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/oauth2Scopes.json":{$id:`http://asyncapi.com/definitions/2.0.0/oauth2Scopes.json`,type:`object`,additionalProperties:{type:`string`}},"http://asyncapi.com/definitions/2.0.0/openIdConnect.json":{$id:`http://asyncapi.com/definitions/2.0.0/openIdConnect.json`,type:`object`,required:[`type`,`openIdConnectUrl`],properties:{type:{type:`string`,enum:[`openIdConnect`]},description:{type:`string`},openIdConnectUrl:{type:`string`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1}},description:`!!Auto generated!!
637
+ `,r+1)}return n}function l(e,t){var r=o.exec(e);if(!r)return{attributes:{},body:e,bodyBegin:1};var i=t?n.load:n.safeLoad,a=r[r.length-1].replace(/^\s+|\s+$/g,``);return{attributes:i(a)||{},body:e.replace(r[0],``),bodyBegin:c(r,e),frontmatter:a}}function u(e){return e||=``,o.test(e)}})))(),1)).default,hPe=/^?(---|\+\+\+)\r?\n[\s\S]*?\r?\n\1[ \t]*(?=\r?\n|$)/;function ik(e){return mPe(e)}const ak=e=>cNe(e).join(`/`);function ok(e){return e.replaceAll(`\\`,`/`)}const gPe=e=>e.replace(/\.mdx?$/,``),_Pe=[`api`,`openapi`,`asyncapi`];var vPe=class extends Error{constructor(){super(...arguments),this.name=`InvalidEndpointFrontmatterError`}};const sk=(e,t,n,r)=>{let i={};try{i=ik(t).attributes}catch(t){if(t&&typeof t==`object`&&`mark`in t&&t.mark&&typeof t.mark==`object`&&`line`in t.mark&&typeof t.mark.line==`number`){let n=`column`in t.mark&&t.mark.column!==0?`, column ${t.mark.column}`:``;throw Error(`There is a syntax error in your frontmatter on line ${t.mark.line}${n} in ${e}`)}throw Error(`Unable to parse page metadata in ${e}`)}for(let t of _Pe){let n=i[t];if(n!=null&&typeof n!=`string`)throw new vPe(`Invalid "${t}" frontmatter in ${e}: expected a single endpoint string (e.g. "GET /users"), received ${Array.isArray(n)?`an array`:typeof n}`)}let a=gPe(e),o=Ah(a),s,c;if(i.openapi){let{title:e,description:t}=vae(n,i.openapi);s=e,c=t}if(i.asyncapi){i.asyncapi=UNe(e,i.asyncapi);let t=HNe(i.asyncapi,r);s=t?.title,c=t?.description}return{pageMetadata:Object.assign(Object.assign({title:s??o,description:c},i),{href:Dh(a)}),slug:ak(a)}},ck=e=>e.hasOwnProperty(`href`)&&e.hasOwnProperty(`title`);function lk(e,t){if(!(t in e))return;let n=e[t];if(!Array.isArray(n))return;let r=[];for(let e of n)typeof e==`object`&&e&&r.push(e);return r}function uk(e,t,n){let r=lk(e,t);if(r)for(let e of r)n(e)}const yPe=/* @__PURE__ */ new Set([`versions`,`languages`]);function dk(e,t){if(!(t in e))return``;let n=Reflect.get(e,t);return typeof n==`string`?n:``}function bPe(e,t){return t===`groups`?dk(e,`group`):t===`products`?dk(e,`name`)||dk(e,`product`):dk(e,ws[t])}function xPe(e){let t=e.find(e=>Reflect.get(e,`default`)===!0)??e[0];return t?dk(t,`language`):``}function SPe(e,{language:t,isDefaultLanguage:n,version:r}){return t?(r?[`${t}/`,`${r}/${t}/`]:[`${t}/`]).some(t=>e.startsWith(t))?2:+!!n:0}function CPe(e,t,n,r){if(e===`languages`){let e=dk(t,`language`);return Object.assign(Object.assign({},n),{language:e,isDefaultLanguage:e===r})}return e===`versions`?Object.assign(Object.assign({},n),{version:dk(t,`version`)}):n}function wPe(e){let t=/* @__PURE__ */ new Map;return TPe(e,t,[],/* @__PURE__ */ new Map),t}function TPe(e,t,n,r,i={}){`pages`in e&&EPe(e.pages,n,t,0,r,i);for(let a of[...Ss,`groups`])if(a in e){let o=e[a];if(!Array.isArray(o))continue;let s=a===`groups`||!yPe.has(a),c=a===`languages`?xPe(o):void 0;for(let e of o){let o=s?bPe(e,a):``;TPe(e,t,o?[...n,o]:n,r,CPe(a,e,i,c))}}}function EPe(e,t,n,r=0,i=/* @__PURE__ */ new Map,a={}){if(!(r>=100))for(let o of e)if(typeof o==`string`){let e=SPe(o,a);if((i.get(o)??-1)>e)continue;let r=t.filter(e=>!!e.trim());n.set(o,[...r]),i.set(o,e)}else{if(!(`group`in o))continue;t.push(o.group),`pages`in o&&Array.isArray(o.pages)&&EPe(o.pages,t,n,r+1,i,a),t.pop()}}function fk(e,t=[]){if(`pages`in e)return`root`in e&&typeof e.root==`string`&&pk(e.root,t),e.pages.forEach(e=>pk(e,t)),t;for(let n of[`groups`,...Ss]){let r=lk(e,n);r&&r.forEach(e=>fk(e,t))}return t}function pk(e,t){typeof e==`string`?t.push(e):`pages`in e&&Array.isArray(e.pages)&&(`root`in e&&typeof e.root==`object`&&pk(e.root,t),e.pages.forEach(e=>{pk(e,t)}))}function DPe(e){return ck(e)?[]:`languages`in e?e.languages:`versions`in e?e.versions:`products`in e?e.products:`tabs`in e?e.tabs:`anchors`in e?e.anchors:`dropdowns`in e?e.dropdowns:[]}function OPe(e){return ck(e)?[]:`group`in e?e.root?[e.root,...e.pages]:e.pages:`pages`in e?e.pages:`groups`in e?e.groups:`menu`in e?e.menu:[]}function kPe(e,t=[]){return mk(e,t),t}function mk(e,t){if(ck(e)){let n=APe(e.href);n!==void 0&&t.push(n)}else if(e.root!=null&&typeof e.root==`object`&&mk(e.root,t),Array.isArray(e.pages))e.pages.forEach(e=>mk(e,t));else for(let n of[`groups`,...Ss]){let r=e[n];Array.isArray(r)&&r.forEach(e=>mk(e,t))}}function APe(e){if(!(!e||e.startsWith(`#`)||e.startsWith(`//`)||_m(e)))return xh(e)}function jPe(e,t,n=!1,r=!0){return r&&e.hidden?!1:n?!0:_(e.groups,t)}function MPe(e){if(e===``)return`index`;if(e===`index`)return e;if(e.endsWith(`/index`)){let t=WT(e);return t===``?`index`:t}return e}function NPe(e,t){return e==null||t==null||typeof e!=`string`||typeof t!=`string`?!1:PPe(e)===PPe(t)}function PPe(e){return MPe(kh(Oh(e)))}function FPe(e){let t=/* @__PURE__ */ new Map;return hk(t,e,!1),t}function hk(e,t,n){if(typeof t!=`object`)return;let r=`hidden`in t&&typeof t.hidden==`boolean`,i=r&&t.hidden===!0,a=`searchable`in t&&t.searchable===!0,o;if(o=i?!a:!r&&n,ck(t)){let n=xh(t.href);(t.hidden??o)&&!e.has(n)&&e.set(n,!0)}if(`pages`in t&&Array.isArray(t.pages)){`root`in t&&typeof t.root==`object`&&hk(e,t.root,o);for(let n of t.pages)typeof n==`object`&&hk(e,n,o)}for(let n of[`groups`,...Ss])uk(t,n,t=>hk(e,t,o))}function IPe(e){let t=/* @__PURE__ */ new Map;return gk(t,e),t}function gk(e,t,n){if(typeof t==`object`){if(ck(t)){let r=xh(t.href),i=e.get(r);e.has(r)?i!==void 0&&i!==n&&e.set(r,void 0):e.set(r,n)}if(`pages`in t&&Array.isArray(t.pages)){`root`in t&&typeof t.root==`object`&&gk(e,t.root,n);for(let r of t.pages)typeof r==`object`&&gk(e,r,n)}for(let r of[`groups`,...Ss])uk(t,r,t=>{let i=n;r===`versions`&&(i=t.version),gk(e,t,i)})}}function LPe(e){let t=/* @__PURE__ */ new Map;return RPe(t,e,void 0),t}function RPe(e,t,n){let r=`language`in t?t.language:n;if(`pages`in t)`root`in t&&typeof t.root==`object`&&_k(e,t.root,r),t.pages.forEach(t=>_k(e,t,r));else for(let n of[`groups`,...Ss])uk(t,n,t=>RPe(e,t,r))}function _k(e,t,n){if(`pages`in t)`root`in t&&typeof t.root==`object`&&_k(e,t.root,n),t.pages.forEach(t=>_k(e,t,n));else if(`href`in t){let r=xh(t.href),i=e.get(r);e.has(r)?i!==n&&i!==void 0&&e.set(r,void 0):e.set(r,n)}}var zPe,BPe,vk,VPe,HPe,yk=n((()=>{(function(e){e.None=`none`,e.Declared=`declared`,e.InheritedFromService=`inheritedFromService`})(zPe||={}),(function(e){e.Unspecified=`unspecified`,e.Simple=`simple`,e.Matrix=`matrix`,e.Label=`label`,e.Form=`form`,e.CommaDelimited=`commaDelimited`,e.SpaceDelimited=`spaceDelimited`,e.PipeDelimited=`pipeDelimited`,e.DeepObject=`deepObject`,e.TabDelimited=`tabDelimited`})(BPe||={}),(function(e){e[e.Error=0]=`Error`,e[e.Warning=1]=`Warning`,e[e.Information=2]=`Information`,e[e.Hint=3]=`Hint`})(vk||={}),(function(e){e.Article=`article`,e.HttpService=`http_service`,e.HttpServer=`http_server`,e.HttpOperation=`http_operation`,e.HttpCallback=`http_callback`,e.Model=`model`,e.Generic=`generic`,e.Unknown=`unknown`,e.TableOfContents=`table_of_contents`,e.SpectralRuleset=`spectral_ruleset`,e.Styleguide=`styleguide`,e.Image=`image`,e.StoplightResolutions=`stoplight_resolutions`,e.StoplightOverride=`stoplight_override`})(VPe||={}),(function(e){e.Json=`json`,e.Markdown=`markdown`,e.Yaml=`yaml`,e.Javascript=`javascript`,e.Apng=`apng`,e.Avif=`avif`,e.Bmp=`bmp`,e.Gif=`gif`,e.Jpeg=`jpeg`,e.Png=`png`,e.Svg=`svg`,e.Webp=`webp`})(HPe||={})})),bk=class{constructor(e,t={}){this._json=e,this._meta=t}json(e){return e===void 0||this._json===null||this._json===void 0?this._json:this._json[e]}meta(e){if(e===void 0)return this._meta;if(this._meta)return this._meta[e]}jsonPath(e){return typeof e==`string`?`${this._meta.pointer}/${e}`:this._meta.pointer}createModel(e,t,n){return new e(t,Object.assign(Object.assign({},n),{asyncapi:this._meta.asyncapi}))}},xk=class extends Array{constructor(e,t={}){super(...e),this.collections=e,this._meta=t}has(e){return this.get(e)!==void 0}all(){return this.collections}isEmpty(){return this.collections.length===0}filterBy(e){return this.collections.filter(e)}meta(e){if(e===void 0)return this._meta;if(this._meta)return this._meta[String(e)]}},UPe=class extends xk{get(e){return e=e.startsWith(`x-`)?e:`x-${e}`,this.collections.find(t=>t.id()===e)}},WPe=class extends bk{id(){return this._meta.id}value(){return this._json}},Sk;(function(e){e.NEW_SCHEMA=`NEW_SCHEMA`,e.END_SCHEMA=`END_SCHEMA`})(Sk||={});var Ck;(function(e){e.Parameters=`parameters`,e.Payloads=`payloads`,e.Headers=`headers`,e.Components=`components`,e.Objects=`objects`,e.Arrays=`arrays`,e.OneOfs=`oneOfs`,e.AllOfs=`allOfs`,e.AnyOfs=`anyOfs`,e.Nots=`nots`,e.PropertyNames=`propertyNames`,e.PatternProperties=`patternProperties`,e.Contains=`contains`,e.Ifs=`ifs`,e.Thenes=`thenes`,e.Elses=`elses`,e.Dependencies=`dependencies`,e.Definitions=`definitions`})(Ck||={});function GPe(e,t,n=[]){n.length===0&&(n=Object.values(Ck));let r={callback:t,schemaTypesToIterate:n,seenSchemas:/* @__PURE__ */ new Set};if(e.channels().isEmpty()||e.channels().all().forEach(e=>{JPe(e,r)}),n.includes(Ck.Components)&&!e.components().isEmpty()){let t=e.components();Object.values(t.messages().all()||{}).forEach(e=>{YPe(e,r)}),Object.values(t.schemas().all()||{}).forEach(e=>{wk(e,null,r)}),n.includes(Ck.Parameters)&&Object.values(t.channelParameters().filterBy(e=>e.hasSchema())).forEach(e=>{wk(e.schema(),null,r)}),Object.values(t.messageTraits().all()||{}).forEach(e=>{XPe(e,r)})}}function wk(e,t,n){if(!e)return;let{schemaTypesToIterate:r,callback:i,seenSchemas:a}=n,o=e.json();if(a.has(o))return;a.add(o);let s=e.type()||[];Array.isArray(s)||(s=[s]),(r.includes(Ck.Objects)||!s.includes(`object`))&&(r.includes(Ck.Arrays)||!s.includes(`array`))&&i(e,t,Sk.NEW_SCHEMA)!==!1&&(r.includes(Ck.Objects)&&s.includes(`object`)&&KPe(e,n),r.includes(Ck.Arrays)&&s.includes(`array`)&&qPe(e,n),r.includes(Ck.OneOfs)&&(e.oneOf()||[]).forEach((e,t)=>{wk(e,t,n)}),r.includes(Ck.AnyOfs)&&(e.anyOf()||[]).forEach((e,t)=>{wk(e,t,n)}),r.includes(Ck.AllOfs)&&(e.allOf()||[]).forEach((e,t)=>{wk(e,t,n)}),r.includes(Ck.Nots)&&e.not()&&wk(e.not(),null,n),r.includes(Ck.Ifs)&&e.if()&&wk(e.if(),null,n),r.includes(Ck.Thenes)&&e.then()&&wk(e.then(),null,n),r.includes(Ck.Elses)&&e.else()&&wk(e.else(),null,n),r.includes(Ck.Dependencies)&&Object.entries(e.dependencies()||{}).forEach(([e,t])=>{t&&!Array.isArray(t)&&wk(t,e,n)}),r.includes(Ck.Definitions)&&Object.entries(e.definitions()||{}).forEach(([e,t])=>{wk(t,e,n)}),i(e,t,Sk.END_SCHEMA),a.delete(o))}function KPe(e,t){Object.entries(e.properties()||{}).forEach(([e,n])=>{wk(n,e,t)});let n=e.additionalProperties();typeof n==`object`&&wk(n,null,t);let r=t.schemaTypesToIterate;r.includes(Ck.PropertyNames)&&e.propertyNames()&&wk(e.propertyNames(),null,t),r.includes(Ck.PatternProperties)&&Object.entries(e.patternProperties()||{}).forEach(([e,n])=>{wk(n,e,t)})}function qPe(e,t){let n=e.items();n&&(Array.isArray(n)?n.forEach((e,n)=>{wk(e,n,t)}):wk(n,null,t));let r=e.additionalItems();typeof r==`object`&&wk(r,null,t),t.schemaTypesToIterate.includes(`contains`)&&e.contains()&&wk(e.contains(),null,t)}function JPe(e,t){if(!e)return;let{schemaTypesToIterate:n}=t;n.includes(Ck.Parameters)&&Object.values(e.parameters().filterBy(e=>e.hasSchema())||{}).forEach(e=>{wk(e.schema(),null,t)}),e.messages().all().forEach(e=>{YPe(e,t)})}function YPe(e,t){if(!e)return;let{schemaTypesToIterate:n}=t;n.includes(Ck.Headers)&&e.hasHeaders()&&wk(e.headers(),null,t),n.includes(Ck.Payloads)&&e.hasPayload()&&wk(e.payload(),null,t)}function XPe(e,t){if(!e)return;let{schemaTypesToIterate:n}=t;n.includes(Ck.Headers)&&e.hasHeaders()&&wk(e.headers(),null,t)}function Tk(e,t,n,r){return new e(t,Object.assign(Object.assign({},n),{asyncapi:n.asyncapi||r?.meta().asyncapi}))}function Ek(e,t,n){let r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Set;function a(e){r.has(e.json())||(r.add(e.json()),i.add(e))}let o=Object.values(Ck);return n||(o=o.filter(e=>e!==Ck.Components)),GPe(e,a,o),new t(Array.from(i))}var ZPe=/* @__PURE__ */ a(((e,t)=>{t.exports={$id:`http://asyncapi.com/definitions/2.0.0/asyncapi.json`,$schema:`http://json-schema.org/draft-07/schema`,title:`AsyncAPI 2.0.0 schema.`,type:`object`,required:[`asyncapi`,`info`,`channels`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{asyncapi:{type:`string`,enum:[`2.0.0`],description:`The AsyncAPI specification version of this document.`},id:{type:`string`,description:`A unique id representing the application.`,format:`uri`},info:{$ref:`http://asyncapi.com/definitions/2.0.0/info.json`},servers:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/server.json`}},defaultContentType:{type:`string`},channels:{$ref:`http://asyncapi.com/definitions/2.0.0/channels.json`},components:{$ref:`http://asyncapi.com/definitions/2.0.0/components.json`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`}},definitions:{"http://asyncapi.com/definitions/2.0.0/specificationExtension.json":{$id:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`,description:`Any property starting with x- is valid.`,additionalProperties:!0,additionalItems:!0},"http://asyncapi.com/definitions/2.0.0/info.json":{$id:`http://asyncapi.com/definitions/2.0.0/info.json`,type:`object`,description:`General information about the API.`,required:[`version`,`title`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{title:{type:`string`,description:`A unique and precise title of the API.`},version:{type:`string`,description:`A semantic version number of the API.`},description:{type:`string`,description:`A longer description of the API. Should be different from the title. CommonMark is allowed.`},termsOfService:{type:`string`,description:`A URL to the Terms of Service for the API. MUST be in the format of a URL.`,format:`uri`},contact:{$ref:`http://asyncapi.com/definitions/2.0.0/contact.json`},license:{$ref:`http://asyncapi.com/definitions/2.0.0/license.json`}}},"http://asyncapi.com/definitions/2.0.0/contact.json":{$id:`http://asyncapi.com/definitions/2.0.0/contact.json`,type:`object`,description:`Contact information for the owners of the API.`,additionalProperties:!1,properties:{name:{type:`string`,description:`The identifying name of the contact person/organization.`},url:{type:`string`,description:`The URL pointing to the contact information.`,format:`uri`},email:{type:`string`,description:`The email address of the contact person/organization.`,format:`email`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.0.0/license.json":{$id:`http://asyncapi.com/definitions/2.0.0/license.json`,type:`object`,required:[`name`],additionalProperties:!1,properties:{name:{type:`string`,description:`The name of the license type. It's encouraged to use an OSI compatible license.`},url:{type:`string`,description:`The URL pointing to the license.`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.0.0/server.json":{$id:`http://asyncapi.com/definitions/2.0.0/server.json`,type:`object`,description:`An object representing a Server.`,required:[`url`,`protocol`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{url:{type:`string`},description:{type:`string`},protocol:{type:`string`,description:`The transfer protocol.`},protocolVersion:{type:`string`},variables:{$ref:`http://asyncapi.com/definitions/2.0.0/serverVariables.json`},security:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/SecurityRequirement.json`}},bindings:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.0.0/serverVariables.json":{$id:`http://asyncapi.com/definitions/2.0.0/serverVariables.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/serverVariable.json`}},"http://asyncapi.com/definitions/2.0.0/serverVariable.json":{$id:`http://asyncapi.com/definitions/2.0.0/serverVariable.json`,type:`object`,description:`An object representing a Server Variable for server URL template substitution.`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{enum:{type:`array`,items:{type:`string`},uniqueItems:!0},default:{type:`string`},description:{type:`string`},examples:{type:`array`,items:{type:`string`}}}},"http://asyncapi.com/definitions/2.0.0/SecurityRequirement.json":{$id:`http://asyncapi.com/definitions/2.0.0/SecurityRequirement.json`,type:`object`,additionalProperties:{type:`array`,items:{type:`string`},uniqueItems:!0}},"http://asyncapi.com/definitions/2.0.0/bindingsObject.json":{$id:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`,type:`object`,additionalProperties:!0,properties:{http:{},ws:{},amqp:{},amqp1:{},mqtt:{},mqtt5:{},kafka:{},nats:{},jms:{},sns:{},sqs:{},stomp:{},redis:{}}},"http://asyncapi.com/definitions/2.0.0/channels.json":{$id:`http://asyncapi.com/definitions/2.0.0/channels.json`,type:`object`,propertyNames:{type:`string`,format:`uri-template`,minLength:1},additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/channelItem.json`}},"http://asyncapi.com/definitions/2.0.0/channelItem.json":{$id:`http://asyncapi.com/definitions/2.0.0/channelItem.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{$ref:{$ref:`http://asyncapi.com/definitions/2.0.0/ReferenceObject.json`},parameters:{$ref:`http://asyncapi.com/definitions/2.0.0/parameters.json`},description:{type:`string`,description:`A description of the channel.`},publish:{$ref:`http://asyncapi.com/definitions/2.0.0/operation.json`},subscribe:{$ref:`http://asyncapi.com/definitions/2.0.0/operation.json`},deprecated:{type:`boolean`,default:!1},bindings:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.0.0/ReferenceObject.json":{$id:`http://asyncapi.com/definitions/2.0.0/ReferenceObject.json`,type:`string`,format:`uri-reference`},"http://asyncapi.com/definitions/2.0.0/parameters.json":{$id:`http://asyncapi.com/definitions/2.0.0/parameters.json`,type:`object`,additionalProperties:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/parameter.json`}]},description:`JSON objects describing re-usable channel parameters.`},"http://asyncapi.com/definitions/2.0.0/Reference.json":{$id:`http://asyncapi.com/definitions/2.0.0/Reference.json`,type:`object`,required:[`$ref`],properties:{$ref:{$ref:`http://asyncapi.com/definitions/2.0.0/ReferenceObject.json`}}},"http://asyncapi.com/definitions/2.0.0/parameter.json":{$id:`http://asyncapi.com/definitions/2.0.0/parameter.json`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{description:{type:`string`,description:`A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.`},schema:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},location:{type:`string`,description:`A runtime expression that specifies the location of the parameter value`,pattern:`^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*`},$ref:{$ref:`http://asyncapi.com/definitions/2.0.0/ReferenceObject.json`}}},"http://asyncapi.com/definitions/2.0.0/schema.json":{$id:`http://asyncapi.com/definitions/2.0.0/schema.json`,allOf:[{$ref:`http://json-schema.org/draft-07/schema#`},{patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{additionalProperties:{anyOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},{type:`boolean`}],default:{}},items:{anyOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`}}],default:{}},allOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`}},oneOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`}},anyOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`}},not:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},properties:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},default:{}},propertyNames:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},contains:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},discriminator:{type:`string`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1}}}]},"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},writeOnly:{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},"http://asyncapi.com/definitions/2.0.0/externalDocs.json":{$id:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`,type:`object`,additionalProperties:!1,description:`information about external documentation`,required:[`url`],properties:{description:{type:`string`},url:{type:`string`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.0.0/operation.json":{$id:`http://asyncapi.com/definitions/2.0.0/operation.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{traits:{type:`array`,items:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/operationTrait.json`}]}},summary:{type:`string`},description:{type:`string`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`},operationId:{type:`string`},bindings:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`},message:{$ref:`http://asyncapi.com/definitions/2.0.0/message.json`}}},"http://asyncapi.com/definitions/2.0.0/operationTrait.json":{$id:`http://asyncapi.com/definitions/2.0.0/operationTrait.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{summary:{type:`string`},description:{type:`string`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`},operationId:{type:`string`},bindings:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.0.0/tag.json":{$id:`http://asyncapi.com/definitions/2.0.0/tag.json`,type:`object`,additionalProperties:!1,required:[`name`],properties:{name:{type:`string`},description:{type:`string`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.0.0/message.json":{$id:`http://asyncapi.com/definitions/2.0.0/message.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{oneOf:[{type:`object`,required:[`oneOf`],additionalProperties:!1,properties:{oneOf:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/message.json`}}}},{type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{schemaFormat:{type:`string`},contentType:{type:`string`},headers:{allOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},{properties:{type:{const:`object`}}}]},payload:{},correlationId:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/correlationId.json`}]},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/tag.json`},uniqueItems:!0},summary:{type:`string`,description:`A brief summary of the message.`},name:{type:`string`,description:`Name of the message.`},title:{type:`string`,description:`A human-friendly title for the message.`},description:{type:`string`,description:`A longer description of the message. CommonMark is allowed.`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1},examples:{type:`array`,items:{type:`object`,additionalProperties:!1,properties:{headers:{type:`object`},payload:{}}}},bindings:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`},traits:{type:`array`,items:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/messageTrait.json`}]}}},allOf:[{if:{not:{required:[`schemaFormat`]}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.aai.asyncapi;version=2.0.0`,`application/vnd.aai.asyncapi+json;version=2.0.0`,`application/vnd.aai.asyncapi+yaml;version=2.0.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/schema+json;version=draft-07`,`application/schema+yaml;version=draft-07`]}}},then:{properties:{payload:{$ref:`http://json-schema.org/draft-07/schema`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.oai.openapi;version=3.0.0`,`application/vnd.oai.openapi+json;version=3.0.0`,`application/vnd.oai.openapi+yaml;version=3.0.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.0.0/openapiSchema_3_0.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.apache.avro;version=1.9.0`,`application/vnd.apache.avro+json;version=1.9.0`,`application/vnd.apache.avro+yaml;version=1.9.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.0.0/avroSchema_v1.json`}}}}]}]}]},"http://asyncapi.com/definitions/2.0.0/correlationId.json":{$id:`http://asyncapi.com/definitions/2.0.0/correlationId.json`,type:`object`,required:[`location`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{description:{type:`string`,description:`A optional description of the correlation ID. GitHub Flavored Markdown is allowed.`},location:{type:`string`,description:`A runtime expression that specifies the location of the correlation ID`,pattern:`^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*`}}},"http://asyncapi.com/definitions/2.0.0/messageTrait.json":{$id:`http://asyncapi.com/definitions/2.0.0/messageTrait.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{schemaFormat:{type:`string`},contentType:{type:`string`},headers:{allOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},{properties:{type:{const:`object`}}}]},correlationId:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/correlationId.json`}]},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.0.0/tag.json`},uniqueItems:!0},summary:{type:`string`,description:`A brief summary of the message.`},name:{type:`string`,description:`Name of the message.`},title:{type:`string`,description:`A human-friendly title for the message.`},description:{type:`string`,description:`A longer description of the message. CommonMark is allowed.`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.0.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1},examples:{type:`array`,items:{type:`object`}},bindings:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.0.0/openapiSchema_3_0.json":{$id:`http://asyncapi.com/definitions/2.0.0/openapiSchema_3_0.json`,type:`object`,definitions:{ExternalDocumentation:{type:`object`,required:[`url`],properties:{description:{type:`string`},url:{type:`string`,format:`uri-reference`}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:`object`,required:[`propertyName`],properties:{propertyName:{type:`string`},mapping:{type:`object`,additionalProperties:{type:`string`}}}},Reference:{type:`object`,required:[`$ref`],patternProperties:{"^\\$ref$":{type:`string`,format:`uri-reference`}}},XML:{type:`object`,properties:{name:{type:`string`},namespace:{type:`string`,format:`uri`},prefix:{type:`string`},attribute:{type:`boolean`,default:!1},wrapped:{type:`boolean`,default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1}},properties:{title:{type:`string`},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`boolean`,default:!1},minimum:{type:`number`},exclusiveMinimum:{type:`boolean`,default:!1},maxLength:{type:`integer`,minimum:0},minLength:{type:`integer`,minimum:0,default:0},pattern:{type:`string`,format:`regex`},maxItems:{type:`integer`,minimum:0},minItems:{type:`integer`,minimum:0,default:0},uniqueItems:{type:`boolean`,default:!1},maxProperties:{type:`integer`,minimum:0},minProperties:{type:`integer`,minimum:0,default:0},required:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0},enum:{type:`array`,items:!0,minItems:1,uniqueItems:!1},type:{type:`string`,enum:[`array`,`boolean`,`integer`,`number`,`object`,`string`]},not:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]},allOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},oneOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},anyOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]},properties:{type:`object`,additionalProperties:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},additionalProperties:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`},{type:`boolean`}],default:!0},description:{type:`string`},format:{type:`string`},default:!0,nullable:{type:`boolean`,default:!1},discriminator:{$ref:`#/definitions/Discriminator`},readOnly:{type:`boolean`,default:!1},writeOnly:{type:`boolean`,default:!1},example:!0,externalDocs:{$ref:`#/definitions/ExternalDocumentation`},deprecated:{type:`boolean`,default:!1},xml:{$ref:`#/definitions/XML`}},patternProperties:{"^x-":!0},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/avroSchema_v1.json":{$id:`http://asyncapi.com/definitions/2.0.0/avroSchema_v1.json`,definitions:{avroSchema:{title:`Avro Schema`,description:`Root Schema`,oneOf:[{$ref:`#/definitions/types`}]},types:{title:`Avro Types`,description:`Allowed Avro types`,oneOf:[{$ref:`#/definitions/primitiveType`},{$ref:`#/definitions/primitiveTypeWithMetadata`},{$ref:`#/definitions/customTypeReference`},{$ref:`#/definitions/avroRecord`},{$ref:`#/definitions/avroEnum`},{$ref:`#/definitions/avroArray`},{$ref:`#/definitions/avroMap`},{$ref:`#/definitions/avroFixed`},{$ref:`#/definitions/avroUnion`}]},primitiveType:{title:`Primitive Type`,description:`Basic type primitives.`,type:`string`,enum:[`null`,`boolean`,`int`,`long`,`float`,`double`,`bytes`,`string`]},primitiveTypeWithMetadata:{title:`Primitive Type With Metadata`,description:`A primitive type with metadata attached.`,type:`object`,properties:{type:{$ref:`#/definitions/primitiveType`}},required:[`type`]},customTypeReference:{title:`Custom Type`,description:`Reference to a ComplexType`,not:{$ref:`#/definitions/primitiveType`},type:`string`,pattern:`^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$`},avroUnion:{title:`Union`,description:`A Union of types`,type:`array`,items:{$ref:`#/definitions/avroSchema`},minItems:1},avroField:{title:`Field`,description:`A field within a Record`,type:`object`,properties:{name:{$ref:`#/definitions/name`},type:{$ref:`#/definitions/types`},doc:{type:`string`},default:!0,order:{enum:[`ascending`,`descending`,`ignore`]},aliases:{type:`array`,items:{$ref:`#/definitions/name`}}},required:[`name`,`type`]},avroRecord:{title:`Record`,description:`A Record`,type:`object`,properties:{type:{type:`string`,const:`record`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},fields:{type:`array`,items:{$ref:`#/definitions/avroField`}}},required:[`type`,`name`,`fields`]},avroEnum:{title:`Enum`,description:`An enumeration`,type:`object`,properties:{type:{type:`string`,const:`enum`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},symbols:{type:`array`,items:{$ref:`#/definitions/name`}}},required:[`type`,`name`,`symbols`]},avroArray:{title:`Array`,description:`An array`,type:`object`,properties:{type:{type:`string`,const:`array`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},items:{$ref:`#/definitions/types`}},required:[`type`,`items`]},avroMap:{title:`Map`,description:`A map of values`,type:`object`,properties:{type:{type:`string`,const:`map`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},values:{$ref:`#/definitions/types`}},required:[`type`,`values`]},avroFixed:{title:`Fixed`,description:`A fixed sized array of bytes`,type:`object`,properties:{type:{type:`string`,const:`fixed`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},size:{type:`number`}},required:[`type`,`name`,`size`]},name:{type:`string`,pattern:`^[A-Za-z_][A-Za-z0-9_]*$`},namespace:{type:`string`,pattern:`^([A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*)*$`}},description:`Json-Schema definition for Avro AVSC files.`,oneOf:[{$ref:`#/definitions/avroSchema`}],title:`Avro Schema Definition`},"http://asyncapi.com/definitions/2.0.0/components.json":{$id:`http://asyncapi.com/definitions/2.0.0/components.json`,type:`object`,description:`An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},properties:{schemas:{$ref:`http://asyncapi.com/definitions/2.0.0/schemas.json`},messages:{$ref:`http://asyncapi.com/definitions/2.0.0/messages.json`},securitySchemes:{type:`object`,patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/SecurityScheme.json`}]}}},parameters:{$ref:`http://asyncapi.com/definitions/2.0.0/parameters.json`},correlationIds:{type:`object`,patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/correlationId.json`}]}}},operationTraits:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/operationTrait.json`}},messageTraits:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/messageTrait.json`}},serverBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}},channelBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}},operationBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}},messageBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/bindingsObject.json`}}}},"http://asyncapi.com/definitions/2.0.0/schemas.json":{$id:`http://asyncapi.com/definitions/2.0.0/schemas.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/schema.json`},description:`JSON objects describing schemas the API uses.`},"http://asyncapi.com/definitions/2.0.0/messages.json":{$id:`http://asyncapi.com/definitions/2.0.0/messages.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.0.0/message.json`},description:`JSON objects describing the messages being consumed and produced by the API.`},"http://asyncapi.com/definitions/2.0.0/SecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.0.0/SecurityScheme.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/userPassword.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/apiKey.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/X509.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/symmetricEncryption.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/asymmetricEncryption.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/HTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/oauth2Flows.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/openIdConnect.json`}]},"http://asyncapi.com/definitions/2.0.0/userPassword.json":{$id:`http://asyncapi.com/definitions/2.0.0/userPassword.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`userPassword`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/apiKey.json":{$id:`http://asyncapi.com/definitions/2.0.0/apiKey.json`,type:`object`,required:[`type`,`in`],properties:{type:{type:`string`,enum:[`apiKey`]},in:{type:`string`,enum:[`user`,`password`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/X509.json":{$id:`http://asyncapi.com/definitions/2.0.0/X509.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`X509`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/symmetricEncryption.json":{$id:`http://asyncapi.com/definitions/2.0.0/symmetricEncryption.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`symmetricEncryption`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/asymmetricEncryption.json":{$id:`http://asyncapi.com/definitions/2.0.0/asymmetricEncryption.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`asymmetricEncryption`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/HTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.0.0/HTTPSecurityScheme.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/NonBearerHTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/BearerHTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.0.0/APIKeyHTTPSecurityScheme.json`}]},"http://asyncapi.com/definitions/2.0.0/NonBearerHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.0.0/NonBearerHTTPSecurityScheme.json`,not:{type:`object`,properties:{scheme:{type:`string`,enum:[`bearer`]}}},type:`object`,required:[`scheme`,`type`],properties:{scheme:{type:`string`},description:{type:`string`},type:{type:`string`,enum:[`http`]}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/BearerHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.0.0/BearerHTTPSecurityScheme.json`,type:`object`,required:[`type`,`scheme`],properties:{scheme:{type:`string`,enum:[`bearer`]},bearerFormat:{type:`string`},type:{type:`string`,enum:[`http`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/APIKeyHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.0.0/APIKeyHTTPSecurityScheme.json`,type:`object`,required:[`type`,`name`,`in`],properties:{type:{type:`string`,enum:[`httpApiKey`]},name:{type:`string`},in:{type:`string`,enum:[`header`,`query`,`cookie`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/oauth2Flows.json":{$id:`http://asyncapi.com/definitions/2.0.0/oauth2Flows.json`,type:`object`,required:[`type`,`flows`],properties:{type:{type:`string`,enum:[`oauth2`]},description:{type:`string`},flows:{type:`object`,properties:{implicit:{allOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/oauth2Flow.json`},{required:[`authorizationUrl`,`scopes`]},{not:{required:[`tokenUrl`]}}]},password:{allOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/oauth2Flow.json`},{required:[`tokenUrl`,`scopes`]},{not:{required:[`authorizationUrl`]}}]},clientCredentials:{allOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/oauth2Flow.json`},{required:[`tokenUrl`,`scopes`]},{not:{required:[`authorizationUrl`]}}]},authorizationCode:{allOf:[{$ref:`http://asyncapi.com/definitions/2.0.0/oauth2Flow.json`},{required:[`authorizationUrl`,`tokenUrl`,`scopes`]}]}},additionalProperties:!1}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json":{$id:`http://asyncapi.com/definitions/2.0.0/oauth2Flow.json`,type:`object`,properties:{authorizationUrl:{type:`string`,format:`uri`},tokenUrl:{type:`string`,format:`uri`},refreshUrl:{type:`string`,format:`uri`},scopes:{$ref:`http://asyncapi.com/definitions/2.0.0/oauth2Scopes.json`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.0.0/oauth2Scopes.json":{$id:`http://asyncapi.com/definitions/2.0.0/oauth2Scopes.json`,type:`object`,additionalProperties:{type:`string`}},"http://asyncapi.com/definitions/2.0.0/openIdConnect.json":{$id:`http://asyncapi.com/definitions/2.0.0/openIdConnect.json`,type:`object`,required:[`type`,`openIdConnectUrl`],properties:{type:{type:`string`,enum:[`openIdConnect`]},description:{type:`string`},openIdConnectUrl:{type:`string`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.0.0/specificationExtension.json`}},additionalProperties:!1}},description:`!!Auto generated!!
638
638
  Do not manually edit. `}})),QPe=/* @__PURE__ */ a(((e,t)=>{t.exports={$id:`http://asyncapi.com/definitions/2.1.0/asyncapi.json`,$schema:`http://json-schema.org/draft-07/schema`,title:`AsyncAPI 2.1.0 schema.`,type:`object`,required:[`asyncapi`,`info`,`channels`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},properties:{asyncapi:{type:`string`,enum:[`2.1.0`],description:`The AsyncAPI specification version of this document.`},id:{type:`string`,description:`A unique id representing the application.`,format:`uri`},info:{$ref:`http://asyncapi.com/definitions/2.1.0/info.json`},servers:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.1.0/server.json`}},defaultContentType:{type:`string`},channels:{$ref:`http://asyncapi.com/definitions/2.1.0/channels.json`},components:{$ref:`http://asyncapi.com/definitions/2.1.0/components.json`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.1.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.1.0/externalDocs.json`}},definitions:{"http://asyncapi.com/definitions/2.1.0/specificationExtension.json":{$id:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`,description:`Any property starting with x- is valid.`,additionalProperties:!0,additionalItems:!0},"http://asyncapi.com/definitions/2.1.0/info.json":{$id:`http://asyncapi.com/definitions/2.1.0/info.json`,type:`object`,description:`General information about the API.`,required:[`version`,`title`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},properties:{title:{type:`string`,description:`A unique and precise title of the API.`},version:{type:`string`,description:`A semantic version number of the API.`},description:{type:`string`,description:`A longer description of the API. Should be different from the title. CommonMark is allowed.`},termsOfService:{type:`string`,description:`A URL to the Terms of Service for the API. MUST be in the format of a URL.`,format:`uri`},contact:{$ref:`http://asyncapi.com/definitions/2.1.0/contact.json`},license:{$ref:`http://asyncapi.com/definitions/2.1.0/license.json`}}},"http://asyncapi.com/definitions/2.1.0/contact.json":{$id:`http://asyncapi.com/definitions/2.1.0/contact.json`,type:`object`,description:`Contact information for the owners of the API.`,additionalProperties:!1,properties:{name:{type:`string`,description:`The identifying name of the contact person/organization.`},url:{type:`string`,description:`The URL pointing to the contact information.`,format:`uri`},email:{type:`string`,description:`The email address of the contact person/organization.`,format:`email`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.1.0/license.json":{$id:`http://asyncapi.com/definitions/2.1.0/license.json`,type:`object`,required:[`name`],additionalProperties:!1,properties:{name:{type:`string`,description:`The name of the license type. It's encouraged to use an OSI compatible license.`},url:{type:`string`,description:`The URL pointing to the license.`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.1.0/server.json":{$id:`http://asyncapi.com/definitions/2.1.0/server.json`,type:`object`,description:`An object representing a Server.`,required:[`url`,`protocol`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},properties:{url:{type:`string`},description:{type:`string`},protocol:{type:`string`,description:`The transfer protocol.`},protocolVersion:{type:`string`},variables:{$ref:`http://asyncapi.com/definitions/2.1.0/serverVariables.json`},security:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.1.0/SecurityRequirement.json`}},bindings:{$ref:`http://asyncapi.com/definitions/2.1.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.1.0/serverVariables.json":{$id:`http://asyncapi.com/definitions/2.1.0/serverVariables.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.1.0/serverVariable.json`}},"http://asyncapi.com/definitions/2.1.0/serverVariable.json":{$id:`http://asyncapi.com/definitions/2.1.0/serverVariable.json`,type:`object`,description:`An object representing a Server Variable for server URL template substitution.`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},properties:{enum:{type:`array`,items:{type:`string`},uniqueItems:!0},default:{type:`string`},description:{type:`string`},examples:{type:`array`,items:{type:`string`}}}},"http://asyncapi.com/definitions/2.1.0/SecurityRequirement.json":{$id:`http://asyncapi.com/definitions/2.1.0/SecurityRequirement.json`,type:`object`,additionalProperties:{type:`array`,items:{type:`string`},uniqueItems:!0}},"http://asyncapi.com/definitions/2.1.0/bindingsObject.json":{$id:`http://asyncapi.com/definitions/2.1.0/bindingsObject.json`,type:`object`,additionalProperties:!0,properties:{http:{},ws:{},amqp:{},amqp1:{},mqtt:{},mqtt5:{},kafka:{},nats:{},jms:{},sns:{},sqs:{},stomp:{},redis:{},ibmmq:{}}},"http://asyncapi.com/definitions/2.1.0/channels.json":{$id:`http://asyncapi.com/definitions/2.1.0/channels.json`,type:`object`,propertyNames:{type:`string`,format:`uri-template`,minLength:1},additionalProperties:{$ref:`http://asyncapi.com/definitions/2.1.0/channelItem.json`}},"http://asyncapi.com/definitions/2.1.0/channelItem.json":{$id:`http://asyncapi.com/definitions/2.1.0/channelItem.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},properties:{$ref:{$ref:`http://asyncapi.com/definitions/2.1.0/ReferenceObject.json`},parameters:{$ref:`http://asyncapi.com/definitions/2.1.0/parameters.json`},description:{type:`string`,description:`A description of the channel.`},publish:{$ref:`http://asyncapi.com/definitions/2.1.0/operation.json`},subscribe:{$ref:`http://asyncapi.com/definitions/2.1.0/operation.json`},deprecated:{type:`boolean`,default:!1},bindings:{$ref:`http://asyncapi.com/definitions/2.1.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.1.0/ReferenceObject.json":{$id:`http://asyncapi.com/definitions/2.1.0/ReferenceObject.json`,type:`string`,format:`uri-reference`},"http://asyncapi.com/definitions/2.1.0/parameters.json":{$id:`http://asyncapi.com/definitions/2.1.0/parameters.json`,type:`object`,additionalProperties:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/parameter.json`}]},description:`JSON objects describing re-usable channel parameters.`},"http://asyncapi.com/definitions/2.1.0/Reference.json":{$id:`http://asyncapi.com/definitions/2.1.0/Reference.json`,type:`object`,required:[`$ref`],properties:{$ref:{$ref:`http://asyncapi.com/definitions/2.1.0/ReferenceObject.json`}}},"http://asyncapi.com/definitions/2.1.0/parameter.json":{$id:`http://asyncapi.com/definitions/2.1.0/parameter.json`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},properties:{description:{type:`string`,description:`A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.`},schema:{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`},location:{type:`string`,description:`A runtime expression that specifies the location of the parameter value`,pattern:`^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*`},$ref:{$ref:`http://asyncapi.com/definitions/2.1.0/ReferenceObject.json`}}},"http://asyncapi.com/definitions/2.1.0/schema.json":{$id:`http://asyncapi.com/definitions/2.1.0/schema.json`,allOf:[{$ref:`http://json-schema.org/draft-07/schema#`},{patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},properties:{additionalProperties:{anyOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`},{type:`boolean`}],default:{}},items:{anyOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`},{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`}}],default:{}},allOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`}},oneOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`}},anyOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`}},not:{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`},properties:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`},default:{}},propertyNames:{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`},contains:{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`},discriminator:{type:`string`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.1.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1}}}]},"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},writeOnly:{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},"http://asyncapi.com/definitions/2.1.0/externalDocs.json":{$id:`http://asyncapi.com/definitions/2.1.0/externalDocs.json`,type:`object`,additionalProperties:!1,description:`information about external documentation`,required:[`url`],properties:{description:{type:`string`},url:{type:`string`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.1.0/operation.json":{$id:`http://asyncapi.com/definitions/2.1.0/operation.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},properties:{traits:{type:`array`,items:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/operationTrait.json`}]}},summary:{type:`string`},description:{type:`string`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.1.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.1.0/externalDocs.json`},operationId:{type:`string`},bindings:{$ref:`http://asyncapi.com/definitions/2.1.0/bindingsObject.json`},message:{$ref:`http://asyncapi.com/definitions/2.1.0/message.json`}}},"http://asyncapi.com/definitions/2.1.0/operationTrait.json":{$id:`http://asyncapi.com/definitions/2.1.0/operationTrait.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},properties:{summary:{type:`string`},description:{type:`string`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.1.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.1.0/externalDocs.json`},operationId:{type:`string`},bindings:{$ref:`http://asyncapi.com/definitions/2.1.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.1.0/tag.json":{$id:`http://asyncapi.com/definitions/2.1.0/tag.json`,type:`object`,additionalProperties:!1,required:[`name`],properties:{name:{type:`string`},description:{type:`string`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.1.0/externalDocs.json`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.1.0/message.json":{$id:`http://asyncapi.com/definitions/2.1.0/message.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/Reference.json`},{oneOf:[{type:`object`,required:[`oneOf`],additionalProperties:!1,properties:{oneOf:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.1.0/message.json`}}}},{type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},properties:{schemaFormat:{type:`string`},contentType:{type:`string`},headers:{allOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`},{properties:{type:{const:`object`}}}]},payload:{},correlationId:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/correlationId.json`}]},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.1.0/tag.json`},uniqueItems:!0},summary:{type:`string`,description:`A brief summary of the message.`},name:{type:`string`,description:`Name of the message.`},title:{type:`string`,description:`A human-friendly title for the message.`},description:{type:`string`,description:`A longer description of the message. CommonMark is allowed.`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.1.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1},examples:{type:`array`,items:{type:`object`,additionalProperties:!1,anyOf:[{required:[`payload`]},{required:[`headers`]}],properties:{name:{type:`string`,description:`Machine readable name of the message example.`},summary:{type:`string`,description:`A brief summary of the message example.`},headers:{type:`object`},payload:{}}}},bindings:{$ref:`http://asyncapi.com/definitions/2.1.0/bindingsObject.json`},traits:{type:`array`,items:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/messageTrait.json`}]}}},allOf:[{if:{not:{required:[`schemaFormat`]}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.aai.asyncapi;version=2.0.0`,`application/vnd.aai.asyncapi+json;version=2.0.0`,`application/vnd.aai.asyncapi+yaml;version=2.0.0`,`application/vnd.aai.asyncapi;version=2.1.0`,`application/vnd.aai.asyncapi+json;version=2.1.0`,`application/vnd.aai.asyncapi+yaml;version=2.1.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/schema+json;version=draft-07`,`application/schema+yaml;version=draft-07`]}}},then:{properties:{payload:{$ref:`http://json-schema.org/draft-07/schema`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.oai.openapi;version=3.0.0`,`application/vnd.oai.openapi+json;version=3.0.0`,`application/vnd.oai.openapi+yaml;version=3.0.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.1.0/openapiSchema_3_0.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.apache.avro;version=1.9.0`,`application/vnd.apache.avro+json;version=1.9.0`,`application/vnd.apache.avro+yaml;version=1.9.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.1.0/avroSchema_v1.json`}}}}]}]}]},"http://asyncapi.com/definitions/2.1.0/correlationId.json":{$id:`http://asyncapi.com/definitions/2.1.0/correlationId.json`,type:`object`,required:[`location`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},properties:{description:{type:`string`,description:`A optional description of the correlation ID. GitHub Flavored Markdown is allowed.`},location:{type:`string`,description:`A runtime expression that specifies the location of the correlation ID`,pattern:`^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*`}}},"http://asyncapi.com/definitions/2.1.0/messageTrait.json":{$id:`http://asyncapi.com/definitions/2.1.0/messageTrait.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},properties:{schemaFormat:{type:`string`},contentType:{type:`string`},headers:{allOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`},{properties:{type:{const:`object`}}}]},correlationId:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/correlationId.json`}]},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.1.0/tag.json`},uniqueItems:!0},summary:{type:`string`,description:`A brief summary of the message.`},name:{type:`string`,description:`Name of the message.`},title:{type:`string`,description:`A human-friendly title for the message.`},description:{type:`string`,description:`A longer description of the message. CommonMark is allowed.`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.1.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1},examples:{type:`array`,items:{type:`object`,additionalProperties:!1,anyOf:[{required:[`payload`]},{required:[`headers`]}],properties:{name:{type:`string`,description:`Machine readable name of the message example.`},summary:{type:`string`,description:`A brief summary of the message example.`},headers:{type:`object`},payload:{}}}},bindings:{$ref:`http://asyncapi.com/definitions/2.1.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.1.0/openapiSchema_3_0.json":{$id:`http://asyncapi.com/definitions/2.1.0/openapiSchema_3_0.json`,type:`object`,definitions:{ExternalDocumentation:{type:`object`,required:[`url`],properties:{description:{type:`string`},url:{type:`string`,format:`uri-reference`}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:`object`,required:[`propertyName`],properties:{propertyName:{type:`string`},mapping:{type:`object`,additionalProperties:{type:`string`}}}},Reference:{type:`object`,required:[`$ref`],patternProperties:{"^\\$ref$":{type:`string`,format:`uri-reference`}}},XML:{type:`object`,properties:{name:{type:`string`},namespace:{type:`string`,format:`uri`},prefix:{type:`string`},attribute:{type:`boolean`,default:!1},wrapped:{type:`boolean`,default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1}},properties:{title:{type:`string`},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`boolean`,default:!1},minimum:{type:`number`},exclusiveMinimum:{type:`boolean`,default:!1},maxLength:{type:`integer`,minimum:0},minLength:{type:`integer`,minimum:0,default:0},pattern:{type:`string`,format:`regex`},maxItems:{type:`integer`,minimum:0},minItems:{type:`integer`,minimum:0,default:0},uniqueItems:{type:`boolean`,default:!1},maxProperties:{type:`integer`,minimum:0},minProperties:{type:`integer`,minimum:0,default:0},required:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0},enum:{type:`array`,items:!0,minItems:1,uniqueItems:!1},type:{type:`string`,enum:[`array`,`boolean`,`integer`,`number`,`object`,`string`]},not:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]},allOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},oneOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},anyOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]},properties:{type:`object`,additionalProperties:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},additionalProperties:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`},{type:`boolean`}],default:!0},description:{type:`string`},format:{type:`string`},default:!0,nullable:{type:`boolean`,default:!1},discriminator:{$ref:`#/definitions/Discriminator`},readOnly:{type:`boolean`,default:!1},writeOnly:{type:`boolean`,default:!1},example:!0,externalDocs:{$ref:`#/definitions/ExternalDocumentation`},deprecated:{type:`boolean`,default:!1},xml:{$ref:`#/definitions/XML`}},patternProperties:{"^x-":!0},additionalProperties:!1},"http://asyncapi.com/definitions/2.1.0/avroSchema_v1.json":{$id:`http://asyncapi.com/definitions/2.1.0/avroSchema_v1.json`,definitions:{avroSchema:{title:`Avro Schema`,description:`Root Schema`,oneOf:[{$ref:`#/definitions/types`}]},types:{title:`Avro Types`,description:`Allowed Avro types`,oneOf:[{$ref:`#/definitions/primitiveType`},{$ref:`#/definitions/primitiveTypeWithMetadata`},{$ref:`#/definitions/customTypeReference`},{$ref:`#/definitions/avroRecord`},{$ref:`#/definitions/avroEnum`},{$ref:`#/definitions/avroArray`},{$ref:`#/definitions/avroMap`},{$ref:`#/definitions/avroFixed`},{$ref:`#/definitions/avroUnion`}]},primitiveType:{title:`Primitive Type`,description:`Basic type primitives.`,type:`string`,enum:[`null`,`boolean`,`int`,`long`,`float`,`double`,`bytes`,`string`]},primitiveTypeWithMetadata:{title:`Primitive Type With Metadata`,description:`A primitive type with metadata attached.`,type:`object`,properties:{type:{$ref:`#/definitions/primitiveType`}},required:[`type`]},customTypeReference:{title:`Custom Type`,description:`Reference to a ComplexType`,not:{$ref:`#/definitions/primitiveType`},type:`string`,pattern:`^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$`},avroUnion:{title:`Union`,description:`A Union of types`,type:`array`,items:{$ref:`#/definitions/avroSchema`},minItems:1},avroField:{title:`Field`,description:`A field within a Record`,type:`object`,properties:{name:{$ref:`#/definitions/name`},type:{$ref:`#/definitions/types`},doc:{type:`string`},default:!0,order:{enum:[`ascending`,`descending`,`ignore`]},aliases:{type:`array`,items:{$ref:`#/definitions/name`}}},required:[`name`,`type`]},avroRecord:{title:`Record`,description:`A Record`,type:`object`,properties:{type:{type:`string`,const:`record`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},fields:{type:`array`,items:{$ref:`#/definitions/avroField`}}},required:[`type`,`name`,`fields`]},avroEnum:{title:`Enum`,description:`An enumeration`,type:`object`,properties:{type:{type:`string`,const:`enum`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},symbols:{type:`array`,items:{$ref:`#/definitions/name`}}},required:[`type`,`name`,`symbols`]},avroArray:{title:`Array`,description:`An array`,type:`object`,properties:{type:{type:`string`,const:`array`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},items:{$ref:`#/definitions/types`}},required:[`type`,`items`]},avroMap:{title:`Map`,description:`A map of values`,type:`object`,properties:{type:{type:`string`,const:`map`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},values:{$ref:`#/definitions/types`}},required:[`type`,`values`]},avroFixed:{title:`Fixed`,description:`A fixed sized array of bytes`,type:`object`,properties:{type:{type:`string`,const:`fixed`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},size:{type:`number`}},required:[`type`,`name`,`size`]},name:{type:`string`,pattern:`^[A-Za-z_][A-Za-z0-9_]*$`},namespace:{type:`string`,pattern:`^([A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*)*$`}},description:`Json-Schema definition for Avro AVSC files.`,oneOf:[{$ref:`#/definitions/avroSchema`}],title:`Avro Schema Definition`},"http://asyncapi.com/definitions/2.1.0/components.json":{$id:`http://asyncapi.com/definitions/2.1.0/components.json`,type:`object`,description:`An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},properties:{schemas:{$ref:`http://asyncapi.com/definitions/2.1.0/schemas.json`},messages:{$ref:`http://asyncapi.com/definitions/2.1.0/messages.json`},securitySchemes:{type:`object`,patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/SecurityScheme.json`}]}}},parameters:{$ref:`http://asyncapi.com/definitions/2.1.0/parameters.json`},correlationIds:{type:`object`,patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/correlationId.json`}]}}},operationTraits:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.1.0/operationTrait.json`}},messageTraits:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.1.0/messageTrait.json`}},serverBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.1.0/bindingsObject.json`}},channelBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.1.0/bindingsObject.json`}},operationBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.1.0/bindingsObject.json`}},messageBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.1.0/bindingsObject.json`}}}},"http://asyncapi.com/definitions/2.1.0/schemas.json":{$id:`http://asyncapi.com/definitions/2.1.0/schemas.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.1.0/schema.json`},description:`JSON objects describing schemas the API uses.`},"http://asyncapi.com/definitions/2.1.0/messages.json":{$id:`http://asyncapi.com/definitions/2.1.0/messages.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.1.0/message.json`},description:`JSON objects describing the messages being consumed and produced by the API.`},"http://asyncapi.com/definitions/2.1.0/SecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.1.0/SecurityScheme.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/userPassword.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/apiKey.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/X509.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/symmetricEncryption.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/asymmetricEncryption.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/HTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/oauth2Flows.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/openIdConnect.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/SaslSecurityScheme.json`}]},"http://asyncapi.com/definitions/2.1.0/userPassword.json":{$id:`http://asyncapi.com/definitions/2.1.0/userPassword.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`userPassword`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.1.0/apiKey.json":{$id:`http://asyncapi.com/definitions/2.1.0/apiKey.json`,type:`object`,required:[`type`,`in`],properties:{type:{type:`string`,enum:[`apiKey`]},in:{type:`string`,enum:[`user`,`password`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.1.0/X509.json":{$id:`http://asyncapi.com/definitions/2.1.0/X509.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`X509`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.1.0/symmetricEncryption.json":{$id:`http://asyncapi.com/definitions/2.1.0/symmetricEncryption.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`symmetricEncryption`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.1.0/asymmetricEncryption.json":{$id:`http://asyncapi.com/definitions/2.1.0/asymmetricEncryption.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`asymmetricEncryption`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.1.0/HTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.1.0/HTTPSecurityScheme.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/NonBearerHTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/BearerHTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/APIKeyHTTPSecurityScheme.json`}]},"http://asyncapi.com/definitions/2.1.0/NonBearerHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.1.0/NonBearerHTTPSecurityScheme.json`,not:{type:`object`,properties:{scheme:{type:`string`,enum:[`bearer`]}}},type:`object`,required:[`scheme`,`type`],properties:{scheme:{type:`string`},description:{type:`string`},type:{type:`string`,enum:[`http`]}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.1.0/BearerHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.1.0/BearerHTTPSecurityScheme.json`,type:`object`,required:[`type`,`scheme`],properties:{scheme:{type:`string`,enum:[`bearer`]},bearerFormat:{type:`string`},type:{type:`string`,enum:[`http`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.1.0/APIKeyHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.1.0/APIKeyHTTPSecurityScheme.json`,type:`object`,required:[`type`,`name`,`in`],properties:{type:{type:`string`,enum:[`httpApiKey`]},name:{type:`string`},in:{type:`string`,enum:[`header`,`query`,`cookie`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.1.0/oauth2Flows.json":{$id:`http://asyncapi.com/definitions/2.1.0/oauth2Flows.json`,type:`object`,required:[`type`,`flows`],properties:{type:{type:`string`,enum:[`oauth2`]},description:{type:`string`},flows:{type:`object`,properties:{implicit:{allOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/oauth2Flow.json`},{required:[`authorizationUrl`,`scopes`]},{not:{required:[`tokenUrl`]}}]},password:{allOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/oauth2Flow.json`},{required:[`tokenUrl`,`scopes`]},{not:{required:[`authorizationUrl`]}}]},clientCredentials:{allOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/oauth2Flow.json`},{required:[`tokenUrl`,`scopes`]},{not:{required:[`authorizationUrl`]}}]},authorizationCode:{allOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/oauth2Flow.json`},{required:[`authorizationUrl`,`tokenUrl`,`scopes`]}]}},additionalProperties:!1}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.1.0/oauth2Flow.json":{$id:`http://asyncapi.com/definitions/2.1.0/oauth2Flow.json`,type:`object`,properties:{authorizationUrl:{type:`string`,format:`uri`},tokenUrl:{type:`string`,format:`uri`},refreshUrl:{type:`string`,format:`uri`},scopes:{$ref:`http://asyncapi.com/definitions/2.1.0/oauth2Scopes.json`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.1.0/oauth2Scopes.json":{$id:`http://asyncapi.com/definitions/2.1.0/oauth2Scopes.json`,type:`object`,additionalProperties:{type:`string`}},"http://asyncapi.com/definitions/2.1.0/openIdConnect.json":{$id:`http://asyncapi.com/definitions/2.1.0/openIdConnect.json`,type:`object`,required:[`type`,`openIdConnectUrl`],properties:{type:{type:`string`,enum:[`openIdConnect`]},description:{type:`string`},openIdConnectUrl:{type:`string`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.1.0/SaslSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.1.0/SaslSecurityScheme.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.1.0/SaslPlainSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/SaslScramSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.1.0/SaslGssapiSecurityScheme.json`}]},"http://asyncapi.com/definitions/2.1.0/SaslPlainSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.1.0/SaslPlainSecurityScheme.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`plain`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.1.0/SaslScramSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.1.0/SaslScramSecurityScheme.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`scramSha256`,`scramSha512`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.1.0/SaslGssapiSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.1.0/SaslGssapiSecurityScheme.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`gssapi`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.1.0/specificationExtension.json`}},additionalProperties:!1}},description:`!!Auto generated!!
639
639
  Do not manually edit. `}})),$Pe=/* @__PURE__ */ a(((e,t)=>{t.exports={$id:`http://asyncapi.com/definitions/2.2.0/asyncapi.json`,$schema:`http://json-schema.org/draft-07/schema`,title:`AsyncAPI 2.2.0 schema.`,type:`object`,required:[`asyncapi`,`info`,`channels`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},properties:{asyncapi:{type:`string`,enum:[`2.2.0`],description:`The AsyncAPI specification version of this document.`},id:{type:`string`,description:`A unique id representing the application.`,format:`uri`},info:{$ref:`http://asyncapi.com/definitions/2.2.0/info.json`},servers:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.2.0/server.json`}},defaultContentType:{type:`string`},channels:{$ref:`http://asyncapi.com/definitions/2.2.0/channels.json`},components:{$ref:`http://asyncapi.com/definitions/2.2.0/components.json`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.2.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.2.0/externalDocs.json`}},definitions:{"http://asyncapi.com/definitions/2.2.0/specificationExtension.json":{$id:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`,description:`Any property starting with x- is valid.`,additionalProperties:!0,additionalItems:!0},"http://asyncapi.com/definitions/2.2.0/info.json":{$id:`http://asyncapi.com/definitions/2.2.0/info.json`,type:`object`,description:`General information about the API.`,required:[`version`,`title`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},properties:{title:{type:`string`,description:`A unique and precise title of the API.`},version:{type:`string`,description:`A semantic version number of the API.`},description:{type:`string`,description:`A longer description of the API. Should be different from the title. CommonMark is allowed.`},termsOfService:{type:`string`,description:`A URL to the Terms of Service for the API. MUST be in the format of a URL.`,format:`uri`},contact:{$ref:`http://asyncapi.com/definitions/2.2.0/contact.json`},license:{$ref:`http://asyncapi.com/definitions/2.2.0/license.json`}}},"http://asyncapi.com/definitions/2.2.0/contact.json":{$id:`http://asyncapi.com/definitions/2.2.0/contact.json`,type:`object`,description:`Contact information for the owners of the API.`,additionalProperties:!1,properties:{name:{type:`string`,description:`The identifying name of the contact person/organization.`},url:{type:`string`,description:`The URL pointing to the contact information.`,format:`uri`},email:{type:`string`,description:`The email address of the contact person/organization.`,format:`email`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.2.0/license.json":{$id:`http://asyncapi.com/definitions/2.2.0/license.json`,type:`object`,required:[`name`],additionalProperties:!1,properties:{name:{type:`string`,description:`The name of the license type. It's encouraged to use an OSI compatible license.`},url:{type:`string`,description:`The URL pointing to the license.`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.2.0/server.json":{$id:`http://asyncapi.com/definitions/2.2.0/server.json`,type:`object`,description:`An object representing a Server.`,required:[`url`,`protocol`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},properties:{url:{type:`string`},description:{type:`string`},protocol:{type:`string`,description:`The transfer protocol.`},protocolVersion:{type:`string`},variables:{$ref:`http://asyncapi.com/definitions/2.2.0/serverVariables.json`},security:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.2.0/SecurityRequirement.json`}},bindings:{$ref:`http://asyncapi.com/definitions/2.2.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.2.0/serverVariables.json":{$id:`http://asyncapi.com/definitions/2.2.0/serverVariables.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.2.0/serverVariable.json`}},"http://asyncapi.com/definitions/2.2.0/serverVariable.json":{$id:`http://asyncapi.com/definitions/2.2.0/serverVariable.json`,type:`object`,description:`An object representing a Server Variable for server URL template substitution.`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},properties:{enum:{type:`array`,items:{type:`string`},uniqueItems:!0},default:{type:`string`},description:{type:`string`},examples:{type:`array`,items:{type:`string`}}}},"http://asyncapi.com/definitions/2.2.0/SecurityRequirement.json":{$id:`http://asyncapi.com/definitions/2.2.0/SecurityRequirement.json`,type:`object`,additionalProperties:{type:`array`,items:{type:`string`},uniqueItems:!0}},"http://asyncapi.com/definitions/2.2.0/bindingsObject.json":{$id:`http://asyncapi.com/definitions/2.2.0/bindingsObject.json`,type:`object`,additionalProperties:!0,properties:{http:{},ws:{},amqp:{},amqp1:{},mqtt:{},mqtt5:{},kafka:{},anypointmq:{},nats:{},jms:{},sns:{},sqs:{},stomp:{},redis:{},ibmmq:{}}},"http://asyncapi.com/definitions/2.2.0/channels.json":{$id:`http://asyncapi.com/definitions/2.2.0/channels.json`,type:`object`,propertyNames:{type:`string`,format:`uri-template`,minLength:1},additionalProperties:{$ref:`http://asyncapi.com/definitions/2.2.0/channelItem.json`}},"http://asyncapi.com/definitions/2.2.0/channelItem.json":{$id:`http://asyncapi.com/definitions/2.2.0/channelItem.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},properties:{$ref:{$ref:`http://asyncapi.com/definitions/2.2.0/ReferenceObject.json`},parameters:{$ref:`http://asyncapi.com/definitions/2.2.0/parameters.json`},description:{type:`string`,description:`A description of the channel.`},servers:{type:`array`,description:`The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.`,items:{type:`string`},uniqueItems:!0},publish:{$ref:`http://asyncapi.com/definitions/2.2.0/operation.json`},subscribe:{$ref:`http://asyncapi.com/definitions/2.2.0/operation.json`},deprecated:{type:`boolean`,default:!1},bindings:{$ref:`http://asyncapi.com/definitions/2.2.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.2.0/ReferenceObject.json":{$id:`http://asyncapi.com/definitions/2.2.0/ReferenceObject.json`,type:`string`,format:`uri-reference`},"http://asyncapi.com/definitions/2.2.0/parameters.json":{$id:`http://asyncapi.com/definitions/2.2.0/parameters.json`,type:`object`,additionalProperties:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/parameter.json`}]},description:`JSON objects describing re-usable channel parameters.`},"http://asyncapi.com/definitions/2.2.0/Reference.json":{$id:`http://asyncapi.com/definitions/2.2.0/Reference.json`,type:`object`,required:[`$ref`],properties:{$ref:{$ref:`http://asyncapi.com/definitions/2.2.0/ReferenceObject.json`}}},"http://asyncapi.com/definitions/2.2.0/parameter.json":{$id:`http://asyncapi.com/definitions/2.2.0/parameter.json`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},properties:{description:{type:`string`,description:`A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.`},schema:{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`},location:{type:`string`,description:`A runtime expression that specifies the location of the parameter value`,pattern:`^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*`},$ref:{$ref:`http://asyncapi.com/definitions/2.2.0/ReferenceObject.json`}}},"http://asyncapi.com/definitions/2.2.0/schema.json":{$id:`http://asyncapi.com/definitions/2.2.0/schema.json`,allOf:[{$ref:`http://json-schema.org/draft-07/schema#`},{patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},properties:{additionalProperties:{anyOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`},{type:`boolean`}],default:{}},items:{anyOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`},{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`}}],default:{}},allOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`}},oneOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`}},anyOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`}},not:{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`},properties:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`},default:{}},propertyNames:{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`},contains:{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`},discriminator:{type:`string`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.2.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1}}}]},"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},writeOnly:{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},"http://asyncapi.com/definitions/2.2.0/externalDocs.json":{$id:`http://asyncapi.com/definitions/2.2.0/externalDocs.json`,type:`object`,additionalProperties:!1,description:`information about external documentation`,required:[`url`],properties:{description:{type:`string`},url:{type:`string`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.2.0/operation.json":{$id:`http://asyncapi.com/definitions/2.2.0/operation.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},properties:{traits:{type:`array`,items:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/operationTrait.json`}]}},summary:{type:`string`},description:{type:`string`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.2.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.2.0/externalDocs.json`},operationId:{type:`string`},bindings:{$ref:`http://asyncapi.com/definitions/2.2.0/bindingsObject.json`},message:{$ref:`http://asyncapi.com/definitions/2.2.0/message.json`}}},"http://asyncapi.com/definitions/2.2.0/operationTrait.json":{$id:`http://asyncapi.com/definitions/2.2.0/operationTrait.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},properties:{summary:{type:`string`},description:{type:`string`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.2.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.2.0/externalDocs.json`},operationId:{type:`string`},bindings:{$ref:`http://asyncapi.com/definitions/2.2.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.2.0/tag.json":{$id:`http://asyncapi.com/definitions/2.2.0/tag.json`,type:`object`,additionalProperties:!1,required:[`name`],properties:{name:{type:`string`},description:{type:`string`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.2.0/externalDocs.json`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.2.0/message.json":{$id:`http://asyncapi.com/definitions/2.2.0/message.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/Reference.json`},{oneOf:[{type:`object`,required:[`oneOf`],additionalProperties:!1,properties:{oneOf:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.2.0/message.json`}}}},{type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},properties:{schemaFormat:{type:`string`},contentType:{type:`string`},headers:{allOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`},{properties:{type:{const:`object`}}}]},payload:{},correlationId:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/correlationId.json`}]},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.2.0/tag.json`},uniqueItems:!0},summary:{type:`string`,description:`A brief summary of the message.`},name:{type:`string`,description:`Name of the message.`},title:{type:`string`,description:`A human-friendly title for the message.`},description:{type:`string`,description:`A longer description of the message. CommonMark is allowed.`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.2.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1},examples:{type:`array`,items:{type:`object`,additionalProperties:!1,anyOf:[{required:[`payload`]},{required:[`headers`]}],properties:{name:{type:`string`,description:`Machine readable name of the message example.`},summary:{type:`string`,description:`A brief summary of the message example.`},headers:{type:`object`},payload:{}}}},bindings:{$ref:`http://asyncapi.com/definitions/2.2.0/bindingsObject.json`},traits:{type:`array`,items:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/messageTrait.json`}]}}},allOf:[{if:{not:{required:[`schemaFormat`]}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.aai.asyncapi;version=2.0.0`,`application/vnd.aai.asyncapi+json;version=2.0.0`,`application/vnd.aai.asyncapi+yaml;version=2.0.0`,`application/vnd.aai.asyncapi;version=2.1.0`,`application/vnd.aai.asyncapi+json;version=2.1.0`,`application/vnd.aai.asyncapi+yaml;version=2.1.0`,`application/vnd.aai.asyncapi;version=2.2.0`,`application/vnd.aai.asyncapi+json;version=2.2.0`,`application/vnd.aai.asyncapi+yaml;version=2.2.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/schema+json;version=draft-07`,`application/schema+yaml;version=draft-07`]}}},then:{properties:{payload:{$ref:`http://json-schema.org/draft-07/schema`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.oai.openapi;version=3.0.0`,`application/vnd.oai.openapi+json;version=3.0.0`,`application/vnd.oai.openapi+yaml;version=3.0.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.2.0/openapiSchema_3_0.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.apache.avro;version=1.9.0`,`application/vnd.apache.avro+json;version=1.9.0`,`application/vnd.apache.avro+yaml;version=1.9.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.2.0/avroSchema_v1.json`}}}}]}]}]},"http://asyncapi.com/definitions/2.2.0/correlationId.json":{$id:`http://asyncapi.com/definitions/2.2.0/correlationId.json`,type:`object`,required:[`location`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},properties:{description:{type:`string`,description:`A optional description of the correlation ID. GitHub Flavored Markdown is allowed.`},location:{type:`string`,description:`A runtime expression that specifies the location of the correlation ID`,pattern:`^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*`}}},"http://asyncapi.com/definitions/2.2.0/messageTrait.json":{$id:`http://asyncapi.com/definitions/2.2.0/messageTrait.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},properties:{schemaFormat:{type:`string`},contentType:{type:`string`},headers:{allOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`},{properties:{type:{const:`object`}}}]},correlationId:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/correlationId.json`}]},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.2.0/tag.json`},uniqueItems:!0},summary:{type:`string`,description:`A brief summary of the message.`},name:{type:`string`,description:`Name of the message.`},title:{type:`string`,description:`A human-friendly title for the message.`},description:{type:`string`,description:`A longer description of the message. CommonMark is allowed.`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.2.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1},examples:{type:`array`,items:{type:`object`}},bindings:{$ref:`http://asyncapi.com/definitions/2.2.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.2.0/openapiSchema_3_0.json":{$id:`http://asyncapi.com/definitions/2.2.0/openapiSchema_3_0.json`,type:`object`,definitions:{ExternalDocumentation:{type:`object`,required:[`url`],properties:{description:{type:`string`},url:{type:`string`,format:`uri-reference`}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:`object`,required:[`propertyName`],properties:{propertyName:{type:`string`},mapping:{type:`object`,additionalProperties:{type:`string`}}}},Reference:{type:`object`,required:[`$ref`],patternProperties:{"^\\$ref$":{type:`string`,format:`uri-reference`}}},XML:{type:`object`,properties:{name:{type:`string`},namespace:{type:`string`,format:`uri`},prefix:{type:`string`},attribute:{type:`boolean`,default:!1},wrapped:{type:`boolean`,default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1}},properties:{title:{type:`string`},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`boolean`,default:!1},minimum:{type:`number`},exclusiveMinimum:{type:`boolean`,default:!1},maxLength:{type:`integer`,minimum:0},minLength:{type:`integer`,minimum:0,default:0},pattern:{type:`string`,format:`regex`},maxItems:{type:`integer`,minimum:0},minItems:{type:`integer`,minimum:0,default:0},uniqueItems:{type:`boolean`,default:!1},maxProperties:{type:`integer`,minimum:0},minProperties:{type:`integer`,minimum:0,default:0},required:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0},enum:{type:`array`,items:!0,minItems:1,uniqueItems:!1},type:{type:`string`,enum:[`array`,`boolean`,`integer`,`number`,`object`,`string`]},not:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]},allOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},oneOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},anyOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]},properties:{type:`object`,additionalProperties:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},additionalProperties:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`},{type:`boolean`}],default:!0},description:{type:`string`},format:{type:`string`},default:!0,nullable:{type:`boolean`,default:!1},discriminator:{$ref:`#/definitions/Discriminator`},readOnly:{type:`boolean`,default:!1},writeOnly:{type:`boolean`,default:!1},example:!0,externalDocs:{$ref:`#/definitions/ExternalDocumentation`},deprecated:{type:`boolean`,default:!1},xml:{$ref:`#/definitions/XML`}},patternProperties:{"^x-":!0},additionalProperties:!1},"http://asyncapi.com/definitions/2.2.0/avroSchema_v1.json":{$id:`http://asyncapi.com/definitions/2.2.0/avroSchema_v1.json`,definitions:{avroSchema:{title:`Avro Schema`,description:`Root Schema`,oneOf:[{$ref:`#/definitions/types`}]},types:{title:`Avro Types`,description:`Allowed Avro types`,oneOf:[{$ref:`#/definitions/primitiveType`},{$ref:`#/definitions/primitiveTypeWithMetadata`},{$ref:`#/definitions/customTypeReference`},{$ref:`#/definitions/avroRecord`},{$ref:`#/definitions/avroEnum`},{$ref:`#/definitions/avroArray`},{$ref:`#/definitions/avroMap`},{$ref:`#/definitions/avroFixed`},{$ref:`#/definitions/avroUnion`}]},primitiveType:{title:`Primitive Type`,description:`Basic type primitives.`,type:`string`,enum:[`null`,`boolean`,`int`,`long`,`float`,`double`,`bytes`,`string`]},primitiveTypeWithMetadata:{title:`Primitive Type With Metadata`,description:`A primitive type with metadata attached.`,type:`object`,properties:{type:{$ref:`#/definitions/primitiveType`}},required:[`type`]},customTypeReference:{title:`Custom Type`,description:`Reference to a ComplexType`,not:{$ref:`#/definitions/primitiveType`},type:`string`,pattern:`^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$`},avroUnion:{title:`Union`,description:`A Union of types`,type:`array`,items:{$ref:`#/definitions/avroSchema`},minItems:1},avroField:{title:`Field`,description:`A field within a Record`,type:`object`,properties:{name:{$ref:`#/definitions/name`},type:{$ref:`#/definitions/types`},doc:{type:`string`},default:!0,order:{enum:[`ascending`,`descending`,`ignore`]},aliases:{type:`array`,items:{$ref:`#/definitions/name`}}},required:[`name`,`type`]},avroRecord:{title:`Record`,description:`A Record`,type:`object`,properties:{type:{type:`string`,const:`record`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},fields:{type:`array`,items:{$ref:`#/definitions/avroField`}}},required:[`type`,`name`,`fields`]},avroEnum:{title:`Enum`,description:`An enumeration`,type:`object`,properties:{type:{type:`string`,const:`enum`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},symbols:{type:`array`,items:{$ref:`#/definitions/name`}}},required:[`type`,`name`,`symbols`]},avroArray:{title:`Array`,description:`An array`,type:`object`,properties:{type:{type:`string`,const:`array`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},items:{$ref:`#/definitions/types`}},required:[`type`,`items`]},avroMap:{title:`Map`,description:`A map of values`,type:`object`,properties:{type:{type:`string`,const:`map`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},values:{$ref:`#/definitions/types`}},required:[`type`,`values`]},avroFixed:{title:`Fixed`,description:`A fixed sized array of bytes`,type:`object`,properties:{type:{type:`string`,const:`fixed`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},size:{type:`number`}},required:[`type`,`name`,`size`]},name:{type:`string`,pattern:`^[A-Za-z_][A-Za-z0-9_]*$`},namespace:{type:`string`,pattern:`^([A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*)*$`}},description:`Json-Schema definition for Avro AVSC files.`,oneOf:[{$ref:`#/definitions/avroSchema`}],title:`Avro Schema Definition`},"http://asyncapi.com/definitions/2.2.0/components.json":{$id:`http://asyncapi.com/definitions/2.2.0/components.json`,type:`object`,description:`An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},properties:{schemas:{$ref:`http://asyncapi.com/definitions/2.2.0/schemas.json`},messages:{$ref:`http://asyncapi.com/definitions/2.2.0/messages.json`},securitySchemes:{type:`object`,patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/SecurityScheme.json`}]}}},parameters:{$ref:`http://asyncapi.com/definitions/2.2.0/parameters.json`},correlationIds:{type:`object`,patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/correlationId.json`}]}}},operationTraits:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.2.0/operationTrait.json`}},messageTraits:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.2.0/messageTrait.json`}},serverBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.2.0/bindingsObject.json`}},channelBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.2.0/bindingsObject.json`}},operationBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.2.0/bindingsObject.json`}},messageBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.2.0/bindingsObject.json`}}}},"http://asyncapi.com/definitions/2.2.0/schemas.json":{$id:`http://asyncapi.com/definitions/2.2.0/schemas.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.2.0/schema.json`},description:`JSON objects describing schemas the API uses.`},"http://asyncapi.com/definitions/2.2.0/messages.json":{$id:`http://asyncapi.com/definitions/2.2.0/messages.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.2.0/message.json`},description:`JSON objects describing the messages being consumed and produced by the API.`},"http://asyncapi.com/definitions/2.2.0/SecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.2.0/SecurityScheme.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/userPassword.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/apiKey.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/X509.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/symmetricEncryption.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/asymmetricEncryption.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/HTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/oauth2Flows.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/openIdConnect.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/SaslSecurityScheme.json`}]},"http://asyncapi.com/definitions/2.2.0/userPassword.json":{$id:`http://asyncapi.com/definitions/2.2.0/userPassword.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`userPassword`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.2.0/apiKey.json":{$id:`http://asyncapi.com/definitions/2.2.0/apiKey.json`,type:`object`,required:[`type`,`in`],properties:{type:{type:`string`,enum:[`apiKey`]},in:{type:`string`,enum:[`user`,`password`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.2.0/X509.json":{$id:`http://asyncapi.com/definitions/2.2.0/X509.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`X509`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.2.0/symmetricEncryption.json":{$id:`http://asyncapi.com/definitions/2.2.0/symmetricEncryption.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`symmetricEncryption`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.2.0/asymmetricEncryption.json":{$id:`http://asyncapi.com/definitions/2.2.0/asymmetricEncryption.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`asymmetricEncryption`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.2.0/HTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.2.0/HTTPSecurityScheme.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/NonBearerHTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/BearerHTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/APIKeyHTTPSecurityScheme.json`}]},"http://asyncapi.com/definitions/2.2.0/NonBearerHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.2.0/NonBearerHTTPSecurityScheme.json`,not:{type:`object`,properties:{scheme:{type:`string`,enum:[`bearer`]}}},type:`object`,required:[`scheme`,`type`],properties:{scheme:{type:`string`},description:{type:`string`},type:{type:`string`,enum:[`http`]}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.2.0/BearerHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.2.0/BearerHTTPSecurityScheme.json`,type:`object`,required:[`type`,`scheme`],properties:{scheme:{type:`string`,enum:[`bearer`]},bearerFormat:{type:`string`},type:{type:`string`,enum:[`http`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.2.0/APIKeyHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.2.0/APIKeyHTTPSecurityScheme.json`,type:`object`,required:[`type`,`name`,`in`],properties:{type:{type:`string`,enum:[`httpApiKey`]},name:{type:`string`},in:{type:`string`,enum:[`header`,`query`,`cookie`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.2.0/oauth2Flows.json":{$id:`http://asyncapi.com/definitions/2.2.0/oauth2Flows.json`,type:`object`,required:[`type`,`flows`],properties:{type:{type:`string`,enum:[`oauth2`]},description:{type:`string`},flows:{type:`object`,properties:{implicit:{allOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/oauth2Flow.json`},{required:[`authorizationUrl`,`scopes`]},{not:{required:[`tokenUrl`]}}]},password:{allOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/oauth2Flow.json`},{required:[`tokenUrl`,`scopes`]},{not:{required:[`authorizationUrl`]}}]},clientCredentials:{allOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/oauth2Flow.json`},{required:[`tokenUrl`,`scopes`]},{not:{required:[`authorizationUrl`]}}]},authorizationCode:{allOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/oauth2Flow.json`},{required:[`authorizationUrl`,`tokenUrl`,`scopes`]}]}},additionalProperties:!1}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.2.0/oauth2Flow.json":{$id:`http://asyncapi.com/definitions/2.2.0/oauth2Flow.json`,type:`object`,properties:{authorizationUrl:{type:`string`,format:`uri`},tokenUrl:{type:`string`,format:`uri`},refreshUrl:{type:`string`,format:`uri`},scopes:{$ref:`http://asyncapi.com/definitions/2.2.0/oauth2Scopes.json`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.2.0/oauth2Scopes.json":{$id:`http://asyncapi.com/definitions/2.2.0/oauth2Scopes.json`,type:`object`,additionalProperties:{type:`string`}},"http://asyncapi.com/definitions/2.2.0/openIdConnect.json":{$id:`http://asyncapi.com/definitions/2.2.0/openIdConnect.json`,type:`object`,required:[`type`,`openIdConnectUrl`],properties:{type:{type:`string`,enum:[`openIdConnect`]},description:{type:`string`},openIdConnectUrl:{type:`string`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.2.0/SaslSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.2.0/SaslSecurityScheme.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.2.0/SaslPlainSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/SaslScramSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.2.0/SaslGssapiSecurityScheme.json`}]},"http://asyncapi.com/definitions/2.2.0/SaslPlainSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.2.0/SaslPlainSecurityScheme.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`plain`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.2.0/SaslScramSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.2.0/SaslScramSecurityScheme.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`scramSha256`,`scramSha512`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.2.0/SaslGssapiSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.2.0/SaslGssapiSecurityScheme.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`gssapi`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.2.0/specificationExtension.json`}},additionalProperties:!1}},description:`!!Auto generated!!
640
640
  Do not manually edit. `}})),eFe=/* @__PURE__ */ a(((e,t)=>{t.exports={$id:`http://asyncapi.com/definitions/2.3.0/asyncapi.json`,$schema:`http://json-schema.org/draft-07/schema`,title:`AsyncAPI 2.3.0 schema.`,type:`object`,required:[`asyncapi`,`info`,`channels`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},properties:{asyncapi:{type:`string`,enum:[`2.3.0`],description:`The AsyncAPI specification version of this document.`},id:{type:`string`,description:`A unique id representing the application.`,format:`uri`},info:{$ref:`http://asyncapi.com/definitions/2.3.0/info.json`},servers:{$ref:`http://asyncapi.com/definitions/2.3.0/servers.json`},defaultContentType:{type:`string`},channels:{$ref:`http://asyncapi.com/definitions/2.3.0/channels.json`},components:{$ref:`http://asyncapi.com/definitions/2.3.0/components.json`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.3.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.3.0/externalDocs.json`}},definitions:{"http://asyncapi.com/definitions/2.3.0/specificationExtension.json":{$id:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`,description:`Any property starting with x- is valid.`,additionalProperties:!0,additionalItems:!0},"http://asyncapi.com/definitions/2.3.0/info.json":{$id:`http://asyncapi.com/definitions/2.3.0/info.json`,type:`object`,description:`General information about the API.`,required:[`version`,`title`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},properties:{title:{type:`string`,description:`A unique and precise title of the API.`},version:{type:`string`,description:`A semantic version number of the API.`},description:{type:`string`,description:`A longer description of the API. Should be different from the title. CommonMark is allowed.`},termsOfService:{type:`string`,description:`A URL to the Terms of Service for the API. MUST be in the format of a URL.`,format:`uri`},contact:{$ref:`http://asyncapi.com/definitions/2.3.0/contact.json`},license:{$ref:`http://asyncapi.com/definitions/2.3.0/license.json`}}},"http://asyncapi.com/definitions/2.3.0/contact.json":{$id:`http://asyncapi.com/definitions/2.3.0/contact.json`,type:`object`,description:`Contact information for the owners of the API.`,additionalProperties:!1,properties:{name:{type:`string`,description:`The identifying name of the contact person/organization.`},url:{type:`string`,description:`The URL pointing to the contact information.`,format:`uri`},email:{type:`string`,description:`The email address of the contact person/organization.`,format:`email`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.3.0/license.json":{$id:`http://asyncapi.com/definitions/2.3.0/license.json`,type:`object`,required:[`name`],additionalProperties:!1,properties:{name:{type:`string`,description:`The name of the license type. It's encouraged to use an OSI compatible license.`},url:{type:`string`,description:`The URL pointing to the license.`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.3.0/servers.json":{$id:`http://asyncapi.com/definitions/2.3.0/servers.json`,description:`An object representing multiple servers.`,type:`object`,additionalProperties:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/server.json`}]}},"http://asyncapi.com/definitions/2.3.0/Reference.json":{$id:`http://asyncapi.com/definitions/2.3.0/Reference.json`,type:`object`,required:[`$ref`],properties:{$ref:{$ref:`http://asyncapi.com/definitions/2.3.0/ReferenceObject.json`}}},"http://asyncapi.com/definitions/2.3.0/ReferenceObject.json":{$id:`http://asyncapi.com/definitions/2.3.0/ReferenceObject.json`,type:`string`,format:`uri-reference`},"http://asyncapi.com/definitions/2.3.0/server.json":{$id:`http://asyncapi.com/definitions/2.3.0/server.json`,type:`object`,description:`An object representing a Server.`,required:[`url`,`protocol`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},properties:{url:{type:`string`},description:{type:`string`},protocol:{type:`string`,description:`The transfer protocol.`},protocolVersion:{type:`string`},variables:{$ref:`http://asyncapi.com/definitions/2.3.0/serverVariables.json`},security:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.3.0/SecurityRequirement.json`}},bindings:{$ref:`http://asyncapi.com/definitions/2.3.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.3.0/serverVariables.json":{$id:`http://asyncapi.com/definitions/2.3.0/serverVariables.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.3.0/serverVariable.json`}},"http://asyncapi.com/definitions/2.3.0/serverVariable.json":{$id:`http://asyncapi.com/definitions/2.3.0/serverVariable.json`,type:`object`,description:`An object representing a Server Variable for server URL template substitution.`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},properties:{enum:{type:`array`,items:{type:`string`},uniqueItems:!0},default:{type:`string`},description:{type:`string`},examples:{type:`array`,items:{type:`string`}}}},"http://asyncapi.com/definitions/2.3.0/SecurityRequirement.json":{$id:`http://asyncapi.com/definitions/2.3.0/SecurityRequirement.json`,type:`object`,additionalProperties:{type:`array`,items:{type:`string`},uniqueItems:!0}},"http://asyncapi.com/definitions/2.3.0/bindingsObject.json":{$id:`http://asyncapi.com/definitions/2.3.0/bindingsObject.json`,type:`object`,additionalProperties:!0,properties:{http:{},ws:{},amqp:{},amqp1:{},mqtt:{},mqtt5:{},kafka:{},anypointmq:{},nats:{},jms:{},sns:{},sqs:{},stomp:{},redis:{},ibmmq:{},solace:{}}},"http://asyncapi.com/definitions/2.3.0/channels.json":{$id:`http://asyncapi.com/definitions/2.3.0/channels.json`,type:`object`,propertyNames:{type:`string`,format:`uri-template`,minLength:1},additionalProperties:{$ref:`http://asyncapi.com/definitions/2.3.0/channelItem.json`}},"http://asyncapi.com/definitions/2.3.0/channelItem.json":{$id:`http://asyncapi.com/definitions/2.3.0/channelItem.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},properties:{$ref:{$ref:`http://asyncapi.com/definitions/2.3.0/ReferenceObject.json`},parameters:{$ref:`http://asyncapi.com/definitions/2.3.0/parameters.json`},description:{type:`string`,description:`A description of the channel.`},servers:{type:`array`,description:`The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.`,items:{type:`string`},uniqueItems:!0},publish:{$ref:`http://asyncapi.com/definitions/2.3.0/operation.json`},subscribe:{$ref:`http://asyncapi.com/definitions/2.3.0/operation.json`},deprecated:{type:`boolean`,default:!1},bindings:{$ref:`http://asyncapi.com/definitions/2.3.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.3.0/parameters.json":{$id:`http://asyncapi.com/definitions/2.3.0/parameters.json`,type:`object`,additionalProperties:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/parameter.json`}]},description:`JSON objects describing re-usable channel parameters.`},"http://asyncapi.com/definitions/2.3.0/parameter.json":{$id:`http://asyncapi.com/definitions/2.3.0/parameter.json`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},properties:{description:{type:`string`,description:`A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.`},schema:{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`},location:{type:`string`,description:`A runtime expression that specifies the location of the parameter value`,pattern:`^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*`},$ref:{$ref:`http://asyncapi.com/definitions/2.3.0/ReferenceObject.json`}}},"http://asyncapi.com/definitions/2.3.0/schema.json":{$id:`http://asyncapi.com/definitions/2.3.0/schema.json`,allOf:[{$ref:`http://json-schema.org/draft-07/schema#`},{patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},properties:{additionalProperties:{anyOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`},{type:`boolean`}],default:{}},items:{anyOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`},{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`}}],default:{}},allOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`}},oneOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`}},anyOf:{type:`array`,minItems:1,items:{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`}},not:{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`},properties:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`},default:{}},propertyNames:{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`},contains:{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`},discriminator:{type:`string`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.3.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1}}}]},"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},writeOnly:{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},"http://asyncapi.com/definitions/2.3.0/externalDocs.json":{$id:`http://asyncapi.com/definitions/2.3.0/externalDocs.json`,type:`object`,additionalProperties:!1,description:`information about external documentation`,required:[`url`],properties:{description:{type:`string`},url:{type:`string`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.3.0/operation.json":{$id:`http://asyncapi.com/definitions/2.3.0/operation.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},properties:{traits:{type:`array`,items:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/operationTrait.json`}]}},summary:{type:`string`},description:{type:`string`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.3.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.3.0/externalDocs.json`},operationId:{type:`string`},bindings:{$ref:`http://asyncapi.com/definitions/2.3.0/bindingsObject.json`},message:{$ref:`http://asyncapi.com/definitions/2.3.0/message.json`}}},"http://asyncapi.com/definitions/2.3.0/operationTrait.json":{$id:`http://asyncapi.com/definitions/2.3.0/operationTrait.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},properties:{summary:{type:`string`},description:{type:`string`},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.3.0/tag.json`},uniqueItems:!0},externalDocs:{$ref:`http://asyncapi.com/definitions/2.3.0/externalDocs.json`},operationId:{type:`string`},bindings:{$ref:`http://asyncapi.com/definitions/2.3.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.3.0/tag.json":{$id:`http://asyncapi.com/definitions/2.3.0/tag.json`,type:`object`,additionalProperties:!1,required:[`name`],properties:{name:{type:`string`},description:{type:`string`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.3.0/externalDocs.json`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.3.0/message.json":{$id:`http://asyncapi.com/definitions/2.3.0/message.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/Reference.json`},{oneOf:[{type:`object`,required:[`oneOf`],additionalProperties:!1,properties:{oneOf:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.3.0/message.json`}}}},{type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},properties:{schemaFormat:{type:`string`},contentType:{type:`string`},headers:{allOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`},{properties:{type:{const:`object`}}}]},payload:{},correlationId:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/correlationId.json`}]},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.3.0/tag.json`},uniqueItems:!0},summary:{type:`string`,description:`A brief summary of the message.`},name:{type:`string`,description:`Name of the message.`},title:{type:`string`,description:`A human-friendly title for the message.`},description:{type:`string`,description:`A longer description of the message. CommonMark is allowed.`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.3.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1},examples:{type:`array`,items:{type:`object`,additionalProperties:!1,anyOf:[{required:[`payload`]},{required:[`headers`]}],properties:{name:{type:`string`,description:`Machine readable name of the message example.`},summary:{type:`string`,description:`A brief summary of the message example.`},headers:{type:`object`},payload:{}}}},bindings:{$ref:`http://asyncapi.com/definitions/2.3.0/bindingsObject.json`},traits:{type:`array`,items:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/messageTrait.json`}]}}},allOf:[{if:{not:{required:[`schemaFormat`]}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.aai.asyncapi;version=2.0.0`,`application/vnd.aai.asyncapi+json;version=2.0.0`,`application/vnd.aai.asyncapi+yaml;version=2.0.0`,`application/vnd.aai.asyncapi;version=2.1.0`,`application/vnd.aai.asyncapi+json;version=2.1.0`,`application/vnd.aai.asyncapi+yaml;version=2.1.0`,`application/vnd.aai.asyncapi;version=2.2.0`,`application/vnd.aai.asyncapi+json;version=2.2.0`,`application/vnd.aai.asyncapi+yaml;version=2.2.0`,`application/vnd.aai.asyncapi;version=2.3.0`,`application/vnd.aai.asyncapi+json;version=2.3.0`,`application/vnd.aai.asyncapi+yaml;version=2.3.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/schema+json;version=draft-07`,`application/schema+yaml;version=draft-07`]}}},then:{properties:{payload:{$ref:`http://json-schema.org/draft-07/schema`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.oai.openapi;version=3.0.0`,`application/vnd.oai.openapi+json;version=3.0.0`,`application/vnd.oai.openapi+yaml;version=3.0.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.3.0/openapiSchema_3_0.json`}}}},{if:{required:[`schemaFormat`],properties:{schemaFormat:{enum:[`application/vnd.apache.avro;version=1.9.0`,`application/vnd.apache.avro+json;version=1.9.0`,`application/vnd.apache.avro+yaml;version=1.9.0`]}}},then:{properties:{payload:{$ref:`http://asyncapi.com/definitions/2.3.0/avroSchema_v1.json`}}}}]}]}]},"http://asyncapi.com/definitions/2.3.0/correlationId.json":{$id:`http://asyncapi.com/definitions/2.3.0/correlationId.json`,type:`object`,required:[`location`],additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},properties:{description:{type:`string`,description:`A optional description of the correlation ID. GitHub Flavored Markdown is allowed.`},location:{type:`string`,description:`A runtime expression that specifies the location of the correlation ID`,pattern:`^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*`}}},"http://asyncapi.com/definitions/2.3.0/messageTrait.json":{$id:`http://asyncapi.com/definitions/2.3.0/messageTrait.json`,type:`object`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},properties:{schemaFormat:{type:`string`},contentType:{type:`string`},headers:{allOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`},{properties:{type:{const:`object`}}}]},correlationId:{oneOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/correlationId.json`}]},tags:{type:`array`,items:{$ref:`http://asyncapi.com/definitions/2.3.0/tag.json`},uniqueItems:!0},summary:{type:`string`,description:`A brief summary of the message.`},name:{type:`string`,description:`Name of the message.`},title:{type:`string`,description:`A human-friendly title for the message.`},description:{type:`string`,description:`A longer description of the message. CommonMark is allowed.`},externalDocs:{$ref:`http://asyncapi.com/definitions/2.3.0/externalDocs.json`},deprecated:{type:`boolean`,default:!1},examples:{type:`array`,items:{type:`object`}},bindings:{$ref:`http://asyncapi.com/definitions/2.3.0/bindingsObject.json`}}},"http://asyncapi.com/definitions/2.3.0/openapiSchema_3_0.json":{$id:`http://asyncapi.com/definitions/2.3.0/openapiSchema_3_0.json`,type:`object`,definitions:{ExternalDocumentation:{type:`object`,required:[`url`],properties:{description:{type:`string`},url:{type:`string`,format:`uri-reference`}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:`object`,required:[`propertyName`],properties:{propertyName:{type:`string`},mapping:{type:`object`,additionalProperties:{type:`string`}}}},Reference:{type:`object`,required:[`$ref`],patternProperties:{"^\\$ref$":{type:`string`,format:`uri-reference`}}},XML:{type:`object`,properties:{name:{type:`string`},namespace:{type:`string`,format:`uri`},prefix:{type:`string`},attribute:{type:`boolean`,default:!1},wrapped:{type:`boolean`,default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1}},properties:{title:{type:`string`},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`boolean`,default:!1},minimum:{type:`number`},exclusiveMinimum:{type:`boolean`,default:!1},maxLength:{type:`integer`,minimum:0},minLength:{type:`integer`,minimum:0,default:0},pattern:{type:`string`,format:`regex`},maxItems:{type:`integer`,minimum:0},minItems:{type:`integer`,minimum:0,default:0},uniqueItems:{type:`boolean`,default:!1},maxProperties:{type:`integer`,minimum:0},minProperties:{type:`integer`,minimum:0,default:0},required:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0},enum:{type:`array`,items:!0,minItems:1,uniqueItems:!1},type:{type:`string`,enum:[`array`,`boolean`,`integer`,`number`,`object`,`string`]},not:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]},allOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},oneOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},anyOf:{type:`array`,items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},items:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]},properties:{type:`object`,additionalProperties:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`}]}},additionalProperties:{oneOf:[{$ref:`#`},{$ref:`#/definitions/Reference`},{type:`boolean`}],default:!0},description:{type:`string`},format:{type:`string`},default:!0,nullable:{type:`boolean`,default:!1},discriminator:{$ref:`#/definitions/Discriminator`},readOnly:{type:`boolean`,default:!1},writeOnly:{type:`boolean`,default:!1},example:!0,externalDocs:{$ref:`#/definitions/ExternalDocumentation`},deprecated:{type:`boolean`,default:!1},xml:{$ref:`#/definitions/XML`}},patternProperties:{"^x-":!0},additionalProperties:!1},"http://asyncapi.com/definitions/2.3.0/avroSchema_v1.json":{$id:`http://asyncapi.com/definitions/2.3.0/avroSchema_v1.json`,definitions:{avroSchema:{title:`Avro Schema`,description:`Root Schema`,oneOf:[{$ref:`#/definitions/types`}]},types:{title:`Avro Types`,description:`Allowed Avro types`,oneOf:[{$ref:`#/definitions/primitiveType`},{$ref:`#/definitions/primitiveTypeWithMetadata`},{$ref:`#/definitions/customTypeReference`},{$ref:`#/definitions/avroRecord`},{$ref:`#/definitions/avroEnum`},{$ref:`#/definitions/avroArray`},{$ref:`#/definitions/avroMap`},{$ref:`#/definitions/avroFixed`},{$ref:`#/definitions/avroUnion`}]},primitiveType:{title:`Primitive Type`,description:`Basic type primitives.`,type:`string`,enum:[`null`,`boolean`,`int`,`long`,`float`,`double`,`bytes`,`string`]},primitiveTypeWithMetadata:{title:`Primitive Type With Metadata`,description:`A primitive type with metadata attached.`,type:`object`,properties:{type:{$ref:`#/definitions/primitiveType`}},required:[`type`]},customTypeReference:{title:`Custom Type`,description:`Reference to a ComplexType`,not:{$ref:`#/definitions/primitiveType`},type:`string`,pattern:`^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$`},avroUnion:{title:`Union`,description:`A Union of types`,type:`array`,items:{$ref:`#/definitions/avroSchema`},minItems:1},avroField:{title:`Field`,description:`A field within a Record`,type:`object`,properties:{name:{$ref:`#/definitions/name`},type:{$ref:`#/definitions/types`},doc:{type:`string`},default:!0,order:{enum:[`ascending`,`descending`,`ignore`]},aliases:{type:`array`,items:{$ref:`#/definitions/name`}}},required:[`name`,`type`]},avroRecord:{title:`Record`,description:`A Record`,type:`object`,properties:{type:{type:`string`,const:`record`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},fields:{type:`array`,items:{$ref:`#/definitions/avroField`}}},required:[`type`,`name`,`fields`]},avroEnum:{title:`Enum`,description:`An enumeration`,type:`object`,properties:{type:{type:`string`,const:`enum`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},symbols:{type:`array`,items:{$ref:`#/definitions/name`}}},required:[`type`,`name`,`symbols`]},avroArray:{title:`Array`,description:`An array`,type:`object`,properties:{type:{type:`string`,const:`array`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},items:{$ref:`#/definitions/types`}},required:[`type`,`items`]},avroMap:{title:`Map`,description:`A map of values`,type:`object`,properties:{type:{type:`string`,const:`map`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},values:{$ref:`#/definitions/types`}},required:[`type`,`values`]},avroFixed:{title:`Fixed`,description:`A fixed sized array of bytes`,type:`object`,properties:{type:{type:`string`,const:`fixed`},name:{$ref:`#/definitions/name`},namespace:{$ref:`#/definitions/namespace`},doc:{type:`string`},aliases:{type:`array`,items:{$ref:`#/definitions/name`}},size:{type:`number`}},required:[`type`,`name`,`size`]},name:{type:`string`,pattern:`^[A-Za-z_][A-Za-z0-9_]*$`},namespace:{type:`string`,pattern:`^([A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*)*$`}},description:`Json-Schema definition for Avro AVSC files.`,oneOf:[{$ref:`#/definitions/avroSchema`}],title:`Avro Schema Definition`},"http://asyncapi.com/definitions/2.3.0/components.json":{$id:`http://asyncapi.com/definitions/2.3.0/components.json`,type:`object`,description:`An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.`,additionalProperties:!1,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},properties:{schemas:{$ref:`http://asyncapi.com/definitions/2.3.0/schemas.json`},servers:{$ref:`http://asyncapi.com/definitions/2.3.0/servers.json`},channels:{$ref:`http://asyncapi.com/definitions/2.3.0/channels.json`},messages:{$ref:`http://asyncapi.com/definitions/2.3.0/messages.json`},securitySchemes:{type:`object`,patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/SecurityScheme.json`}]}}},parameters:{$ref:`http://asyncapi.com/definitions/2.3.0/parameters.json`},correlationIds:{type:`object`,patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/Reference.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/correlationId.json`}]}}},operationTraits:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.3.0/operationTrait.json`}},messageTraits:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.3.0/messageTrait.json`}},serverBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.3.0/bindingsObject.json`}},channelBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.3.0/bindingsObject.json`}},operationBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.3.0/bindingsObject.json`}},messageBindings:{type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.3.0/bindingsObject.json`}}}},"http://asyncapi.com/definitions/2.3.0/schemas.json":{$id:`http://asyncapi.com/definitions/2.3.0/schemas.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.3.0/schema.json`},description:`JSON objects describing schemas the API uses.`},"http://asyncapi.com/definitions/2.3.0/messages.json":{$id:`http://asyncapi.com/definitions/2.3.0/messages.json`,type:`object`,additionalProperties:{$ref:`http://asyncapi.com/definitions/2.3.0/message.json`},description:`JSON objects describing the messages being consumed and produced by the API.`},"http://asyncapi.com/definitions/2.3.0/SecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.3.0/SecurityScheme.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/userPassword.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/apiKey.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/X509.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/symmetricEncryption.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/asymmetricEncryption.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/HTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/oauth2Flows.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/openIdConnect.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/SaslSecurityScheme.json`}]},"http://asyncapi.com/definitions/2.3.0/userPassword.json":{$id:`http://asyncapi.com/definitions/2.3.0/userPassword.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`userPassword`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.3.0/apiKey.json":{$id:`http://asyncapi.com/definitions/2.3.0/apiKey.json`,type:`object`,required:[`type`,`in`],properties:{type:{type:`string`,enum:[`apiKey`]},in:{type:`string`,enum:[`user`,`password`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.3.0/X509.json":{$id:`http://asyncapi.com/definitions/2.3.0/X509.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`X509`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.3.0/symmetricEncryption.json":{$id:`http://asyncapi.com/definitions/2.3.0/symmetricEncryption.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`symmetricEncryption`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.3.0/asymmetricEncryption.json":{$id:`http://asyncapi.com/definitions/2.3.0/asymmetricEncryption.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`asymmetricEncryption`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.3.0/HTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.3.0/HTTPSecurityScheme.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/NonBearerHTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/BearerHTTPSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/APIKeyHTTPSecurityScheme.json`}]},"http://asyncapi.com/definitions/2.3.0/NonBearerHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.3.0/NonBearerHTTPSecurityScheme.json`,not:{type:`object`,properties:{scheme:{type:`string`,enum:[`bearer`]}}},type:`object`,required:[`scheme`,`type`],properties:{scheme:{type:`string`},description:{type:`string`},type:{type:`string`,enum:[`http`]}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.3.0/BearerHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.3.0/BearerHTTPSecurityScheme.json`,type:`object`,required:[`type`,`scheme`],properties:{scheme:{type:`string`,enum:[`bearer`]},bearerFormat:{type:`string`},type:{type:`string`,enum:[`http`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.3.0/APIKeyHTTPSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.3.0/APIKeyHTTPSecurityScheme.json`,type:`object`,required:[`type`,`name`,`in`],properties:{type:{type:`string`,enum:[`httpApiKey`]},name:{type:`string`},in:{type:`string`,enum:[`header`,`query`,`cookie`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.3.0/oauth2Flows.json":{$id:`http://asyncapi.com/definitions/2.3.0/oauth2Flows.json`,type:`object`,required:[`type`,`flows`],properties:{type:{type:`string`,enum:[`oauth2`]},description:{type:`string`},flows:{type:`object`,properties:{implicit:{allOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/oauth2Flow.json`},{required:[`authorizationUrl`,`scopes`]},{not:{required:[`tokenUrl`]}}]},password:{allOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/oauth2Flow.json`},{required:[`tokenUrl`,`scopes`]},{not:{required:[`authorizationUrl`]}}]},clientCredentials:{allOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/oauth2Flow.json`},{required:[`tokenUrl`,`scopes`]},{not:{required:[`authorizationUrl`]}}]},authorizationCode:{allOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/oauth2Flow.json`},{required:[`authorizationUrl`,`tokenUrl`,`scopes`]}]}},additionalProperties:!1}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}}},"http://asyncapi.com/definitions/2.3.0/oauth2Flow.json":{$id:`http://asyncapi.com/definitions/2.3.0/oauth2Flow.json`,type:`object`,properties:{authorizationUrl:{type:`string`,format:`uri`},tokenUrl:{type:`string`,format:`uri`},refreshUrl:{type:`string`,format:`uri`},scopes:{$ref:`http://asyncapi.com/definitions/2.3.0/oauth2Scopes.json`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.3.0/oauth2Scopes.json":{$id:`http://asyncapi.com/definitions/2.3.0/oauth2Scopes.json`,type:`object`,additionalProperties:{type:`string`}},"http://asyncapi.com/definitions/2.3.0/openIdConnect.json":{$id:`http://asyncapi.com/definitions/2.3.0/openIdConnect.json`,type:`object`,required:[`type`,`openIdConnectUrl`],properties:{type:{type:`string`,enum:[`openIdConnect`]},description:{type:`string`},openIdConnectUrl:{type:`string`,format:`uri`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.3.0/SaslSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.3.0/SaslSecurityScheme.json`,oneOf:[{$ref:`http://asyncapi.com/definitions/2.3.0/SaslPlainSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/SaslScramSecurityScheme.json`},{$ref:`http://asyncapi.com/definitions/2.3.0/SaslGssapiSecurityScheme.json`}]},"http://asyncapi.com/definitions/2.3.0/SaslPlainSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.3.0/SaslPlainSecurityScheme.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`plain`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.3.0/SaslScramSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.3.0/SaslScramSecurityScheme.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`scramSha256`,`scramSha512`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},additionalProperties:!1},"http://asyncapi.com/definitions/2.3.0/SaslGssapiSecurityScheme.json":{$id:`http://asyncapi.com/definitions/2.3.0/SaslGssapiSecurityScheme.json`,type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`gssapi`]},description:{type:`string`}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:`http://asyncapi.com/definitions/2.3.0/specificationExtension.json`}},additionalProperties:!1}},description:`!!Auto generated!!
@@ -875,18 +875,18 @@ GFS4: `),console.error(e)}),r[c]||(d(r,global[c]||[]),r.close=(function(e){funct
875
875
 
876
876
  see https://github.com/jprichardson/node-fs-extra/issues/269`,`Warning`,`fs-extra-WARN0002`);let{srcStat:o,destStat:c}=s.checkPathsSync(e,t,`copy`,n);if(s.checkParentPathsSync(e,o,t,`copy`),n.filter&&!n.filter(e,t))return;let u=i.dirname(t);return r.existsSync(u)||a(u),l(c,e,t,n)}function l(e,t,n,i){let a=(i.dereference?r.statSync:r.lstatSync)(t);if(a.isDirectory())return v(a,e,t,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return u(a,e,t,n,i);if(a.isSymbolicLink())return S(e,t,n,i);throw a.isSocket()?Error(`Cannot copy a socket file: ${t}`):a.isFIFO()?Error(`Cannot copy a FIFO pipe: ${t}`):Error(`Unknown file: ${t}`)}function u(e,t,n,r,i){return t?d(e,n,r,i):f(e,n,r,i)}function d(e,t,n,i){if(i.overwrite)return r.unlinkSync(n),f(e,t,n,i);if(i.errorOnExist)throw Error(`'${n}' already exists`)}function f(e,t,n,i){return r.copyFileSync(t,n),i.preserveTimestamps&&p(e.mode,t,n),g(n,e.mode)}function p(e,t,n){return m(e)&&h(n,e),_(t,n)}function m(e){return!(e&128)}function h(e,t){return g(e,t|128)}function g(e,t){return r.chmodSync(e,t)}function _(e,t){let n=r.statSync(e);return o(t,n.atime,n.mtime)}function v(e,t,n,r,i){return t?b(n,r,i):y(e.mode,n,r,i)}function y(e,t,n,i){return r.mkdirSync(n),b(t,n,i),g(n,e)}function b(e,t,n){r.readdirSync(e).forEach(r=>x(r,e,t,n))}function x(e,t,n,r){let a=i.join(t,e),o=i.join(n,e);if(r.filter&&!r.filter(a,o))return;let{destStat:c}=s.checkPathsSync(a,o,`copy`,r);return l(c,a,o,r)}function S(e,t,n,a){let o=r.readlinkSync(t);if(a.dereference&&(o=i.resolve(process.cwd(),o)),e){let e;try{e=r.readlinkSync(n)}catch(e){if(e.code===`EINVAL`||e.code===`UNKNOWN`)return r.symlinkSync(o,n);throw e}if(a.dereference&&(e=i.resolve(process.cwd(),e)),s.isSrcSubdir(o,e))throw Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(s.isSrcSubdir(e,o))throw Error(`Cannot overwrite '${e}' with '${o}'.`);return C(o,n)}return r.symlinkSync(o,n)}function C(e,t){return r.unlinkSync(t),r.symlinkSync(e,t)}n.exports=c})),rF=/* @__PURE__ */ a(((e,t)=>{let n=ZP().fromCallback;t.exports={copy:n(qYe()),copySync:JYe()}})),iF=/* @__PURE__ */ a(((e,t)=>{let n=QP(),r=ZP().fromCallback;function i(e,t){n.rm(e,{recursive:!0,force:!0},t)}function a(e){n.rmSync(e,{recursive:!0,force:!0})}t.exports={remove:r(i),removeSync:a}})),YYe=/* @__PURE__ */ a(((e,n)=>{let r=ZP().fromPromise,i=$P(),a=t(`path`),o=eF(),s=iF(),c=r(async function(e){let t;try{t=await i.readdir(e)}catch{return o.mkdirs(e)}return Promise.all(t.map(t=>s.remove(a.join(e,t))))});function l(e){let t;try{t=i.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach(t=>{t=a.join(e,t),s.removeSync(t)})}n.exports={emptyDirSync:l,emptydirSync:l,emptyDir:c,emptydir:c}})),XYe=/* @__PURE__ */ a(((e,n)=>{let r=ZP().fromCallback,i=t(`path`),a=QP(),o=eF();function s(e,t){function n(){a.writeFile(e,``,e=>{if(e)return t(e);t()})}a.stat(e,(r,s)=>{if(!r&&s.isFile())return t();let c=i.dirname(e);a.stat(c,(e,r)=>{if(e)return e.code===`ENOENT`?o.mkdirs(c,e=>{if(e)return t(e);n()}):t(e);r.isDirectory()?n():a.readdir(c,e=>{if(e)return t(e)})})})}function c(e){let t;try{t=a.statSync(e)}catch{}if(t&&t.isFile())return;let n=i.dirname(e);try{a.statSync(n).isDirectory()||a.readdirSync(n)}catch(e){if(e&&e.code===`ENOENT`)o.mkdirsSync(n);else throw e}a.writeFileSync(e,``)}n.exports={createFile:r(s),createFileSync:c}})),ZYe=/* @__PURE__ */ a(((e,n)=>{let r=ZP().fromCallback,i=t(`path`),a=QP(),o=eF(),s=tF().pathExists,{areIdentical:c}=nF();function l(e,t,n){function r(e,t){a.link(e,t,e=>{if(e)return n(e);n(null)})}a.lstat(t,(l,u)=>{a.lstat(e,(a,l)=>{if(a)return a.message=a.message.replace(`lstat`,`ensureLink`),n(a);if(u&&c(l,u))return n(null);let d=i.dirname(t);s(d,(i,a)=>{if(i)return n(i);if(a)return r(e,t);o.mkdirs(d,i=>{if(i)return n(i);r(e,t)})})})})}function u(e,t){let n;try{n=a.lstatSync(t)}catch{}try{let t=a.lstatSync(e);if(n&&c(t,n))return}catch(e){throw e.message=e.message.replace(`lstat`,`ensureLink`),e}let r=i.dirname(t);return a.existsSync(r)||o.mkdirsSync(r),a.linkSync(e,t)}n.exports={createLink:r(l),createLinkSync:u}})),QYe=/* @__PURE__ */ a(((e,n)=>{let r=t(`path`),i=QP(),a=tF().pathExists;function o(e,t,n){if(r.isAbsolute(e))return i.lstat(e,t=>t?(t.message=t.message.replace(`lstat`,`ensureSymlink`),n(t)):n(null,{toCwd:e,toDst:e}));{let o=r.dirname(t),s=r.join(o,e);return a(s,(t,a)=>t?n(t):a?n(null,{toCwd:s,toDst:e}):i.lstat(e,t=>t?(t.message=t.message.replace(`lstat`,`ensureSymlink`),n(t)):n(null,{toCwd:e,toDst:r.relative(o,e)})))}}function s(e,t){let n;if(r.isAbsolute(e)){if(n=i.existsSync(e),!n)throw Error(`absolute srcpath does not exist`);return{toCwd:e,toDst:e}}{let a=r.dirname(t),o=r.join(a,e);if(n=i.existsSync(o),n)return{toCwd:o,toDst:e};if(n=i.existsSync(e),!n)throw Error(`relative srcpath does not exist`);return{toCwd:e,toDst:r.relative(a,e)}}}n.exports={symlinkPaths:o,symlinkPathsSync:s}})),$Ye=/* @__PURE__ */ a(((e,t)=>{let n=QP();function r(e,t,r){if(r=typeof t==`function`?t:r,t=typeof t!=`function`&&t,t)return r(null,t);n.lstat(e,(e,n)=>{if(e)return r(null,`file`);t=n&&n.isDirectory()?`dir`:`file`,r(null,t)})}function i(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return`file`}return r&&r.isDirectory()?`dir`:`file`}t.exports={symlinkType:r,symlinkTypeSync:i}})),eXe=/* @__PURE__ */ a(((e,n)=>{let r=ZP().fromCallback,i=t(`path`),a=$P(),o=eF(),s=o.mkdirs,c=o.mkdirsSync,l=QYe(),u=l.symlinkPaths,d=l.symlinkPathsSync,f=$Ye(),p=f.symlinkType,m=f.symlinkTypeSync,h=tF().pathExists,{areIdentical:g}=nF();function _(e,t,n,r){r=typeof n==`function`?n:r,n=typeof n!=`function`&&n,a.lstat(t,(i,o)=>{!i&&o.isSymbolicLink()?Promise.all([a.stat(e),a.stat(t)]).then(([i,a])=>{if(g(i,a))return r(null);v(e,t,n,r)}):v(e,t,n,r)})}function v(e,t,n,r){u(e,t,(o,c)=>{if(o)return r(o);e=c.toDst,p(c.toCwd,n,(n,o)=>{if(n)return r(n);let c=i.dirname(t);h(c,(n,i)=>{if(n)return r(n);if(i)return a.symlink(e,t,o,r);s(c,n=>{if(n)return r(n);a.symlink(e,t,o,r)})})})})}function y(e,t,n){let r;try{r=a.lstatSync(t)}catch{}if(r&&r.isSymbolicLink()){let n=a.statSync(e),r=a.statSync(t);if(g(n,r))return}let o=d(e,t);e=o.toDst,n=m(o.toCwd,n);let s=i.dirname(t);return a.existsSync(s)||c(s),a.symlinkSync(e,t,n)}n.exports={createSymlink:r(_),createSymlinkSync:y}})),tXe=/* @__PURE__ */ a(((e,t)=>{let{createFile:n,createFileSync:r}=XYe(),{createLink:i,createLinkSync:a}=ZYe(),{createSymlink:o,createSymlinkSync:s}=eXe();t.exports={createFile:n,createFileSync:r,ensureFile:n,ensureFileSync:r,createLink:i,createLinkSync:a,ensureLink:i,ensureLinkSync:a,createSymlink:o,createSymlinkSync:s,ensureSymlink:o,ensureSymlinkSync:s}})),aF=/* @__PURE__ */ a(((e,t)=>{function n(e,{EOL:t=`
877
877
  `,finalEOL:n=!0,replacer:r=null,spaces:i}={}){let a=n?t:``;return JSON.stringify(e,r,i).replace(/\n/g,t)+a}function r(e){return Buffer.isBuffer(e)&&(e=e.toString(`utf8`)),e.replace(/^\uFEFF/,``)}t.exports={stringify:n,stripBom:r}})),oF=/* @__PURE__ */ a(((e,n)=>{let r;try{r=QP()}catch{r=t(`fs`)}let i=ZP(),{stringify:a,stripBom:o}=aF();async function s(e,t={}){typeof t==`string`&&(t={encoding:t});let n=t.fs||r,a=`throws`in t?t.throws:!0,s=await i.fromCallback(n.readFile)(e,t);s=o(s);let c;try{c=JSON.parse(s,t?t.reviver:null)}catch(t){if(a)throw t.message=`${e}: ${t.message}`,t;return null}return c}let c=i.fromPromise(s);function l(e,t={}){typeof t==`string`&&(t={encoding:t});let n=t.fs||r,i=`throws`in t?t.throws:!0;try{let r=n.readFileSync(e,t);return r=o(r),JSON.parse(r,t.reviver)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}}async function u(e,t,n={}){let o=n.fs||r,s=a(t,n);await i.fromCallback(o.writeFile)(e,s,n)}let d=i.fromPromise(u);function f(e,t,n={}){let i=n.fs||r,o=a(t,n);return i.writeFileSync(e,o,n)}n.exports={readFile:c,readFileSync:l,writeFile:d,writeFileSync:f}})),nXe=/* @__PURE__ */ a(((e,t)=>{let n=oF();t.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}})),sF=/* @__PURE__ */ a(((e,n)=>{let r=ZP().fromCallback,i=QP(),a=t(`path`),o=eF(),s=tF().pathExists;function c(e,t,n,r){typeof n==`function`&&(r=n,n=`utf8`);let c=a.dirname(e);s(c,(a,s)=>{if(a)return r(a);if(s)return i.writeFile(e,t,n,r);o.mkdirs(c,a=>{if(a)return r(a);i.writeFile(e,t,n,r)})})}function l(e,...t){let n=a.dirname(e);if(i.existsSync(n))return i.writeFileSync(e,...t);o.mkdirsSync(n),i.writeFileSync(e,...t)}n.exports={outputFile:r(c),outputFileSync:l}})),rXe=/* @__PURE__ */ a(((e,t)=>{let{stringify:n}=aF(),{outputFile:r}=sF();async function i(e,t,i={}){let a=n(t,i);await r(e,a,i)}t.exports=i})),iXe=/* @__PURE__ */ a(((e,t)=>{let{stringify:n}=aF(),{outputFileSync:r}=sF();function i(e,t,i){let a=n(t,i);r(e,a,i)}t.exports=i})),aXe=/* @__PURE__ */ a(((e,t)=>{let n=ZP().fromPromise,r=nXe();r.outputJson=n(rXe()),r.outputJsonSync=iXe(),r.outputJSON=r.outputJson,r.outputJSONSync=r.outputJsonSync,r.writeJSON=r.writeJson,r.writeJSONSync=r.writeJsonSync,r.readJSON=r.readJson,r.readJSONSync=r.readJsonSync,t.exports=r})),oXe=/* @__PURE__ */ a(((e,n)=>{let r=QP(),i=t(`path`),a=rF().copy,o=iF().remove,s=eF().mkdirp,c=tF().pathExists,l=nF();function u(e,t,n,r){typeof n==`function`&&(r=n,n={}),n||={};let a=n.overwrite||n.clobber||!1;l.checkPaths(e,t,`move`,n,(n,o)=>{if(n)return r(n);let{srcStat:c,isChangingCase:u=!1}=o;l.checkParentPaths(e,c,t,`move`,n=>{if(n)return r(n);if(d(t))return f(e,t,a,u,r);s(i.dirname(t),n=>n?r(n):f(e,t,a,u,r))})})}function d(e){let t=i.dirname(e);return i.parse(t).root===t}function f(e,t,n,r,i){if(r)return p(e,t,n,i);if(n)return o(t,r=>r?i(r):p(e,t,n,i));c(t,(r,a)=>r?i(r):a?i(/* @__PURE__ */ Error(`dest already exists.`)):p(e,t,n,i))}function p(e,t,n,i){r.rename(e,t,r=>r?r.code===`EXDEV`?m(e,t,n,i):i(r):i())}function m(e,t,n,r){a(e,t,{overwrite:n,errorOnExist:!0},t=>t?r(t):o(e,r))}n.exports=u})),sXe=/* @__PURE__ */ a(((e,n)=>{let r=QP(),i=t(`path`),a=rF().copySync,o=iF().removeSync,s=eF().mkdirpSync,c=nF();function l(e,t,n){n||={};let r=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:o=!1}=c.checkPathsSync(e,t,`move`,n);return c.checkParentPathsSync(e,a,t,`move`),u(t)||s(i.dirname(t)),d(e,t,r,o)}function u(e){let t=i.dirname(e);return i.parse(t).root===t}function d(e,t,n,i){if(i)return f(e,t,n);if(n)return o(t),f(e,t,n);if(r.existsSync(t))throw Error(`dest already exists.`);return f(e,t,n)}function f(e,t,n){try{r.renameSync(e,t)}catch(r){if(r.code!==`EXDEV`)throw r;return p(e,t,n)}}function p(e,t,n){return a(e,t,{overwrite:n,errorOnExist:!0}),o(e)}n.exports=l})),cXe=/* @__PURE__ */ a(((e,t)=>{let n=ZP().fromCallback;t.exports={move:n(oXe()),moveSync:sXe()}})),lXe=/* @__PURE__ */ a(((e,t)=>{t.exports={...$P(),...rF(),...YYe(),...tXe(),...aXe(),...eF(),...cXe(),...sF(),...tF(),...iF()}}));async function cF(e,t){return mne(e,e=>yn(vt.join(t,e),`utf-8`))}var lF=/* @__PURE__ */ r(lXe(),1);const uF=e=>{let t=vt.parse(e);return t.ext?t.ext.slice(1):e},dF=async(e,t)=>{let n=vt.join(e,`${t}.json`);return await lF.default.pathExists(n)?n:null},uXe=async e=>{let t=vt.join(e,`.mintignore`);return await lF.default.pathExists(t)?t:null},fF=async e=>{let t=await uXe(e);return t?wP(await lF.default.readFile(t,`utf-8`)):[]},pF=async(e,t)=>{let n=await dF(e,t);if(!n)return null;let r=await lF.default.readFile(n),{resolved:i}=await cF(JSON.parse(r.toString()),e);return i},mF=e=>{let t=e;if(typeof t.line==`number`)return{line:t.line,column:t.column};let n=t.position?.start;if(typeof n?.line==`number`)return n;let r=typeof t.reason==`string`?t.reason:``,i=r.lastIndexOf(`(`);if(i!==-1&&r.endsWith(`)`)){let[e,t]=(r.slice(i+1,-1).split(`-`)[0]||``).split(`:`),n=Number(e);if(!isNaN(n)&&n>0)return{line:n,column:Number(t)||void 0}}return null},dXe=(e,t,n)=>{let r=(St(e)?Dt(t,e):e).split(kt).join(`/`).replace(/^\.?\//,``),i=n&&typeof n==`object`?mF(n):null;return{file:r,...i?.line!=null&&{line:i.line,...i.column!=null&&{column:i.column}}}},fXe=(e,t,n)=>{if(St(e)&&(e=Dt(t,e)),!e.startsWith(`.${kt}`)&&!St(e)&&(e=`.${kt}${e}`),n&&typeof n==`object`){let t=mF(n);t?.line!=null&&(e+=`:${t.line}`,t.column!=null&&(e+=`:${t.column}`))}return e},hF=(e,t,n)=>{if(typeof e!=`object`||!e)return`\n${KP.red.bold(`parsing error`)} ${t} - ${e}`;let r=fXe(t,n,e),i=`reason`in e&&e.reason!=null?e.reason:e;return`\n${KP.red.bold(`parsing error`)} ${r} - ${i}`},pXe=/^import\s/m,mXe=/import\s+(?:[\w$*{},\s]+?\s+from\s+)?['"]([^'"]+)['"]/g,hXe=/^\uFEFF?---\r?\n[\s\S]*?\r?\n---(?:\r?\n|$)/,gXe=/^(`{3,}|~{3,})/,_Xe=e=>{let t=[],n=!1,r;for(let i of e.split(`
878
- `)){let e=i.trimStart(),a=gXe.exec(e)?.[1];if(r!==void 0){a!==void 0&&a.charAt(0)===r.char&&a.length>=r.length&&(r=void 0);continue}if(a!==void 0){r={char:a.charAt(0),length:a.length};continue}if(!i.startsWith(`import `)&&!i.startsWith(`import `))continue;let o=Array.from(i.matchAll(mXe));if(o.length===0)n=!0;else for(let e of o){let n=e[1];n&&t.push(n)}}return{sources:t,needsAst:n}},vXe=(e,t)=>{if(!pXe.test(e))return[];let{sources:n,needsAst:r}=_Xe(e);if(!r)return n;try{return WT(FT(e,t))}catch{return n}},yXe=async(e,t,n)=>{let r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Map,o=Array(t.length),s=t.map((e,t)=>({filename:e,index:t}));await Promise.all(Array.from({length:Math.min(16,s.length)},async()=>{let t=s.shift();for(;t;){let{filename:c,index:l}=t,u=_t.join(e,c);try{let e=await yn(u,`utf8`),t=/* @__PURE__ */ new Set;for(let n of vXe(e,u)){let e=GT(n,c);if(e){let n=e.toLowerCase();r.add(n),t.add(n)}}i.set(c.toLowerCase(),t),n&&a.set(c,{frontmatter:hXe.exec(e)?.[0]??``,rssCandidate:e.includes(`<Update`)}),o[l]=c}catch(t){console.error(hF(t,u,e))}t=s.shift()}}));let c=[];for(let e of o)e!==void 0&&c.push(e);let l=[],u=[],d=[];for(let e of c)switch(XO(e,{importedFiles:r})){case`snippet`:u.push(e);break;case`snippet-v2`:d.push(e);break;case`page`:l.push(e)}return{contentFilenames:l,snippets:u,snippetsV2:d,fileImportsMap:i,pageScans:a}},bXe=async(e,t=[])=>{let n=[],r=[];for await(let i of MP(e,e,t)){let e=uF(i);KT(e)?n.push(i):r.push({filename:i,extension:e})}return{mdxCandidates:n,nonMdxFiles:r}},gF=async(e,t=[],n,r,i)=>{let{mdxCandidates:a,nonMdxFiles:o}=await bXe(e,t),{contentFilenames:s,snippets:c,snippetsV2:l,fileImportsMap:u,pageScans:d}=await yXe(e,a,r),f=[],p=[],m=[],h=[],g=[],_=[];for(let{filename:t,extension:r}of o)switch(r){case`json`:case`yaml`:case`yml`:let r=_t.join(e,t),i=await yn(r,`utf8`),a;try{a=ne.load(i)}catch(e){h.push({originalFileLocation:t,reason:`Invalid JSON or YAML syntax: ${e instanceof Error?e.message:String(e)}`,kind:`syntax`});break}if(!a||typeof a!=`object`)break;if(pf(a)){let e=ym(t);try{let t=xm(a,e);g.push({location:e,document:t,resolvedExtends:t.extends==null?void 0:bm(e,t.extends)})}catch(e){h.push({originalFileLocation:t,reason:e instanceof Error?e.message:String(e),kind:`overlay`})}break}let o=Object.keys(a).includes(`openapi`),s=Object.keys(a).includes(`asyncapi`),c=_t.parse(t).name;if(o&&!n&&_.push({filename:t,fileName:c,obj:a,str:i}),s)try{let{document:e}=await xP(i);e&&m.push({filename:c,spec:e,originalFileLocation:t})}catch(e){h.push({originalFileLocation:t,reason:e instanceof Error?e.message:String(e),kind:`asyncapi`})}break;default:f.push(t)}let v=Sm({explicit:i?.explicitOverlays,discovered:g,localSchema:i?.localSchema,loadLocalDocument:async t=>{let{resolvedPath:n}=mf(t,e),r=await yn(n,`utf8`);return ne.load(r)}});for(let{filename:e,fileName:t,obj:n}of _)try{let r=await Cm(v,e),i=r.length>0?gm(n,r):n;if(typeof i!=`object`||!i)throw Error(`Applying overlays produced an invalid OpenAPI document`);let{schema:a}=await vh(i);a&&p.push({filename:t,spec:i,originalFileLocation:e})}catch(t){h.push({originalFileLocation:e,reason:t instanceof Error?t.message:String(t),kind:`openapi`})}return{contentFilenames:s,staticFilenames:f,openApiFiles:p,asyncApiFiles:m,invalidSpecFiles:h,overlayFiles:g,overlayRegistry:v,snippets:c,snippetsV2:l,fileImportsMap:u,pageScans:d}},_F=(e,t)=>e?.find(e=>bh(e.originalFileLocation)===bh(t)),xXe=e=>{for(let t of e??[])JP({type:`openapi`,message:t.kind===`syntax`?`Error parsing ${t.originalFileLocation}: ${t.reason}`:`Error validating ${t.kind===`asyncapi`?`AsyncAPI`:t.kind===`overlay`?`OpenAPI Overlay`:`OpenAPI`} file ${t.originalFileLocation}: ${t.reason}`,file:bh(t.originalFileLocation)})},{readFile:SXe}=Zt;function CXe(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&typeof e.sourceRef==`string`}function vF(e){return Array.isArray(e)?e.some(vF):typeof e!=`object`||!e?!1:CXe(e)?!0:Object.values(e).some(vF)}var wXe=class{constructor(e){this.validateConfigJsonString=async(e,t,n,r={})=>{let i=this.parseConfigJson(e,n);return this.validateConfigObj(i,t,n,r)},this.validateConfigObj=async(e,t,n,r={})=>{let i=vF(e),a=this.type===`docs`&&r.allowSourceRefs;if(a&&i){let t=Aee(e);if(!t.success){let e=`🚨 Invalid ${this.type}.json:`,r=t.error.issues.map(e=>Pd(e));throw n?(n(e),r.forEach(e=>n(e))):(console.error(KP.red(e)),r.forEach(e=>console.error(KP.red(e)))),Error()}}let o=a&&i?Ad(e):e,s=this.type===`mint`?jd(e):Md(o);if(!s.success){let e=`🚨 Invalid ${this.type}.json:`,t=s.error.issues.map(e=>Pd(e));throw n?(n(e),t.forEach(e=>n(e))):(console.error(KP.red(e)),t.forEach(e=>console.error(KP.red(e)))),Error()}if(this.type===`docs`&&r.allowSourceRefs&&i){let e=`⚠️ sourceRef entries are resolved during multi-repository deployments and are omitted from local preview.`;n?n(e):console.warn(KP.yellow(e))}if(`warnings`in s&&s.warnings.length>0){let e=`⚠️ Warnings found in ${this.type}.json:`,r=s.warnings.map(e=>Pd(e));if(n)n(e),r.forEach(e=>n(e));else if(console.warn(KP.yellow(e)),r.forEach(e=>console.warn(KP.yellow(e))),t)throw Error(`Validation warnings treated as errors in strict mode`)}return{...s,data:s.data}},this.readConfigFile=async e=>{let t;try{t=await SXe(e,`utf-8`)}catch(e){throw Error(`Unable to read ${this.type}.json: ${e}`)}return t},this.writeConfigFile=async(e,t)=>{try{await(0,lF.outputFile)(Ct(t??``,`src/_props/${this.type}.json`),JSON.stringify(e,null,2),{flag:`w`})}catch(e){throw Error(`Unable to write ${this.type}.json: ${e}`)}},this.parseConfigJson=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){if(typeof e==`object`&&e){if(`name`in e&&e.name===`SyntaxError`){let e=`🚨 ${this.type}.json has invalid JSON. You are likely missing a comma or a bracket. You can paste your ${this.type}.json file into https://jsonlint.com/ to get a more specific error message.`;t?t(e):console.error(KP.red(e))}else if(`message`in e){let n=`🚨 ${e.message}`;t?t(n):console.error(KP.red(n))}}throw Error()}return n},this.type=e}getConfigType(){return this.type}async getConfig(e,t,n,r,i={}){let a=await this.readConfigFile(e),o=this.parseConfigJson(a,r),s=o;if(n)try{let{resolved:e}=await cF(o,n);s=e}catch(e){let t=`Error resolving $ref in ${this.type}.json: ${e instanceof Error?e.message:String(e)}`;throw r&&r(t),Error(t)}let{data:c}=await this.validateConfigObj(s,t,r,i);return c}};const yF=new wXe(`mint`),bF=new wXe(`docs`);var xF=/* @__PURE__ */ a((e=>{let t=ZP().fromCallback,n=QP(),r=(/* @__PURE__ */ `access.appendFile.chmod.chown.close.copyFile.fchmod.fchown.fdatasync.fstat.fsync.ftruncate.futimes.lchmod.lchown.link.lstat.mkdir.mkdtemp.open.opendir.readdir.readFile.readlink.realpath.rename.rm.rmdir.stat.symlink.truncate.unlink.utimes.writeFile`.split(`.`)).filter(e=>typeof n[e]==`function`);Object.assign(e,n),r.forEach(r=>{e[r]=t(n[r])}),e.exists=function(e,t){return typeof t==`function`?n.exists(e,t):new Promise(t=>n.exists(e,t))},e.read=function(e,t,r,i,a,o){return typeof o==`function`?n.read(e,t,r,i,a,o):new Promise((o,s)=>{n.read(e,t,r,i,a,(e,t,n)=>{if(e)return s(e);o({bytesRead:t,buffer:n})})})},e.write=function(e,t,...r){return typeof r[r.length-1]==`function`?n.write(e,t,...r):new Promise((i,a)=>{n.write(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffer:n})})})},e.readv=function(e,t,...r){return typeof r[r.length-1]==`function`?n.readv(e,t,...r):new Promise((i,a)=>{n.readv(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesRead:t,buffers:n})})})},e.writev=function(e,t,...r){return typeof r[r.length-1]==`function`?n.writev(e,t,...r):new Promise((i,a)=>{n.writev(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffers:n})})})},typeof n.realpath.native==`function`?e.realpath.native=t(n.realpath.native):process.emitWarning(`fs.realpath.native is not a function. Is fs being monkey-patched?`,`Warning`,`fs-extra-WARN0003`)})),TXe=/* @__PURE__ */ a(((e,n)=>{let r=t(`path`);n.exports.checkPath=function(e){if(process.platform===`win32`&&/[<>:"|?*]/.test(e.replace(r.parse(e).root,``))){let t=/* @__PURE__ */ Error(`Path contains invalid characters: ${e}`);throw t.code=`EINVAL`,t}}})),EXe=/* @__PURE__ */ a(((e,t)=>{let n=xF(),{checkPath:r}=TXe(),i=e=>typeof e==`number`?e:{mode:511,...e}.mode;t.exports.makeDir=async(e,t)=>(r(e),n.mkdir(e,{mode:i(t),recursive:!0})),t.exports.makeDirSync=(e,t)=>(r(e),n.mkdirSync(e,{mode:i(t),recursive:!0}))})),SF=/* @__PURE__ */ a(((e,t)=>{let n=ZP().fromPromise,{makeDir:r,makeDirSync:i}=EXe(),a=n(r);t.exports={mkdirs:a,mkdirsSync:i,mkdirp:a,mkdirpSync:i,ensureDir:a,ensureDirSync:i}})),CF=/* @__PURE__ */ a(((e,t)=>{let n=ZP().fromPromise,r=xF();function i(e){return r.access(e).then(()=>!0).catch(()=>!1)}t.exports={pathExists:n(i),pathExistsSync:r.existsSync}})),DXe=/* @__PURE__ */ a(((e,t)=>{let n=QP();function r(e,t,r,i){n.open(e,`r+`,(e,a)=>{if(e)return i(e);n.futimes(a,t,r,e=>{n.close(a,t=>{i&&i(e||t)})})})}function i(e,t,r){let i=n.openSync(e,`r+`);return n.futimesSync(i,t,r),n.closeSync(i)}t.exports={utimesMillis:r,utimesMillisSync:i}})),wF=/* @__PURE__ */ a(((e,n)=>{let r=xF(),i=t(`path`),a=t(`util`);function o(e,t,n){let i=n.dereference?e=>r.stat(e,{bigint:!0}):e=>r.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch(e=>{if(e.code===`ENOENT`)return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}function s(e,t,n){let i,a=n.dereference?e=>r.statSync(e,{bigint:!0}):e=>r.lstatSync(e,{bigint:!0}),o=a(e);try{i=a(t)}catch(e){if(e.code===`ENOENT`)return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:i}}function c(e,t,n,r,s){a.callbackify(o)(e,t,r,(r,a)=>{if(r)return s(r);let{srcStat:o,destStat:c}=a;if(c){if(f(o,c)){let r=i.basename(e),a=i.basename(t);return n===`move`&&r!==a&&r.toLowerCase()===a.toLowerCase()?s(null,{srcStat:o,destStat:c,isChangingCase:!0}):s(/* @__PURE__ */ Error(`Source and destination must not be the same.`))}if(o.isDirectory()&&!c.isDirectory())return s(/* @__PURE__ */ Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!o.isDirectory()&&c.isDirectory())return s(/* @__PURE__ */ Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return o.isDirectory()&&p(e,t)?s(Error(m(e,t,n))):s(null,{srcStat:o,destStat:c})})}function l(e,t,n,r){let{srcStat:a,destStat:o}=s(e,t,r);if(o){if(f(a,o)){let r=i.basename(e),s=i.basename(t);if(n===`move`&&r!==s&&r.toLowerCase()===s.toLowerCase())return{srcStat:a,destStat:o,isChangingCase:!0};throw Error(`Source and destination must not be the same.`)}if(a.isDirectory()&&!o.isDirectory())throw Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!a.isDirectory()&&o.isDirectory())throw Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(a.isDirectory()&&p(e,t))throw Error(m(e,t,n));return{srcStat:a,destStat:o}}function u(e,t,n,a,o){let s=i.resolve(i.dirname(e)),c=i.resolve(i.dirname(n));if(c===s||c===i.parse(c).root)return o();r.stat(c,{bigint:!0},(r,i)=>r?r.code===`ENOENT`?o():o(r):f(t,i)?o(Error(m(e,n,a))):u(e,t,c,a,o))}function d(e,t,n,a){let o=i.resolve(i.dirname(e)),s=i.resolve(i.dirname(n));if(s===o||s===i.parse(s).root)return;let c;try{c=r.statSync(s,{bigint:!0})}catch(e){if(e.code===`ENOENT`)return;throw e}if(f(t,c))throw Error(m(e,n,a));return d(e,t,s,a)}function f(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function p(e,t){let n=i.resolve(e).split(i.sep).filter(e=>e),r=i.resolve(t).split(i.sep).filter(e=>e);return n.reduce((e,t,n)=>e&&r[n]===t,!0)}function m(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}n.exports={checkPaths:c,checkPathsSync:l,checkParentPaths:u,checkParentPathsSync:d,isSrcSubdir:p,areIdentical:f}})),OXe=/* @__PURE__ */ a(((e,n)=>{let r=QP(),i=t(`path`),a=SF().mkdirs,o=CF().pathExists,s=DXe().utimesMillis,c=wF();function l(e,t,n,r){typeof n==`function`&&!r?(r=n,n={}):typeof n==`function`&&(n={filter:n}),r||=function(){},n||={},n.clobber=`clobber`in n?!!n.clobber:!0,n.overwrite=`overwrite`in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch===`ia32`&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
878
+ `)){let e=i.trimStart(),a=gXe.exec(e)?.[1];if(r!==void 0){a!==void 0&&a.charAt(0)===r.char&&a.length>=r.length&&(r=void 0);continue}if(a!==void 0){r={char:a.charAt(0),length:a.length};continue}if(!i.startsWith(`import `)&&!i.startsWith(`import `))continue;let o=Array.from(i.matchAll(mXe));if(o.length===0)n=!0;else for(let e of o){let n=e[1];n&&t.push(n)}}return{sources:t,needsAst:n}},vXe=(e,t)=>{if(!pXe.test(e))return[];let{sources:n,needsAst:r}=_Xe(e);if(!r)return n;try{return GT(FT(e,t))}catch{return n}},yXe=async(e,t,n)=>{let r=/* @__PURE__ */ new Set,i=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Map,o=Array(t.length),s=t.map((e,t)=>({filename:e,index:t}));await Promise.all(Array.from({length:Math.min(16,s.length)},async()=>{let t=s.shift();for(;t;){let{filename:c,index:l}=t,u=_t.join(e,c);try{let e=await yn(u,`utf8`),t=/* @__PURE__ */ new Set;for(let n of vXe(e,u)){let e=KT(n,c);if(e){let n=e.toLowerCase();r.add(n),t.add(n)}}i.set(c.toLowerCase(),t),n&&a.set(c,{frontmatter:hXe.exec(e)?.[0]??``,rssCandidate:e.includes(`<Update`)}),o[l]=c}catch(t){console.error(hF(t,u,e))}t=s.shift()}}));let c=[];for(let e of o)e!==void 0&&c.push(e);let l=[],u=[],d=[];for(let e of c)switch(XO(e,{importedFiles:r})){case`snippet`:u.push(e);break;case`snippet-v2`:d.push(e);break;case`page`:l.push(e)}return{contentFilenames:l,snippets:u,snippetsV2:d,fileImportsMap:i,pageScans:a}},bXe=async(e,t=[])=>{let n=[],r=[];for await(let i of MP(e,e,t)){let e=uF(i);qT(e)?n.push(i):r.push({filename:i,extension:e})}return{mdxCandidates:n,nonMdxFiles:r}},gF=async(e,t=[],n,r,i)=>{let{mdxCandidates:a,nonMdxFiles:o}=await bXe(e,t),{contentFilenames:s,snippets:c,snippetsV2:l,fileImportsMap:u,pageScans:d}=await yXe(e,a,r),f=[],p=[],m=[],h=[],g=[],_=[];for(let{filename:t,extension:r}of o)switch(r){case`json`:case`yaml`:case`yml`:let r=_t.join(e,t),i=await yn(r,`utf8`),a;try{a=ne.load(i)}catch(e){h.push({originalFileLocation:t,reason:`Invalid JSON or YAML syntax: ${e instanceof Error?e.message:String(e)}`,kind:`syntax`});break}if(!a||typeof a!=`object`)break;if(pf(a)){let e=ym(t);try{let t=xm(a,e);g.push({location:e,document:t,resolvedExtends:t.extends==null?void 0:bm(e,t.extends)})}catch(e){h.push({originalFileLocation:t,reason:e instanceof Error?e.message:String(e),kind:`overlay`})}break}let o=Object.keys(a).includes(`openapi`),s=Object.keys(a).includes(`asyncapi`),c=_t.parse(t).name;if(o&&!n&&_.push({filename:t,fileName:c,obj:a,str:i}),s)try{let{document:e}=await xP(i);e&&m.push({filename:c,spec:e,originalFileLocation:t})}catch(e){h.push({originalFileLocation:t,reason:e instanceof Error?e.message:String(e),kind:`asyncapi`})}break;default:f.push(t)}let v=Sm({explicit:i?.explicitOverlays,discovered:g,localSchema:i?.localSchema,loadLocalDocument:async t=>{let{resolvedPath:n}=mf(t,e),r=await yn(n,`utf8`);return ne.load(r)}});for(let{filename:e,fileName:t,obj:n}of _)try{let r=await Cm(v,e),i=r.length>0?gm(n,r):n;if(typeof i!=`object`||!i)throw Error(`Applying overlays produced an invalid OpenAPI document`);let{schema:a}=await vh(i);a&&p.push({filename:t,spec:i,originalFileLocation:e})}catch(t){h.push({originalFileLocation:e,reason:t instanceof Error?t.message:String(t),kind:`openapi`})}return{contentFilenames:s,staticFilenames:f,openApiFiles:p,asyncApiFiles:m,invalidSpecFiles:h,overlayFiles:g,overlayRegistry:v,snippets:c,snippetsV2:l,fileImportsMap:u,pageScans:d}},_F=(e,t)=>e?.find(e=>bh(e.originalFileLocation)===bh(t)),xXe=e=>{for(let t of e??[])JP({type:`openapi`,message:t.kind===`syntax`?`Error parsing ${t.originalFileLocation}: ${t.reason}`:`Error validating ${t.kind===`asyncapi`?`AsyncAPI`:t.kind===`overlay`?`OpenAPI Overlay`:`OpenAPI`} file ${t.originalFileLocation}: ${t.reason}`,file:bh(t.originalFileLocation)})},{readFile:SXe}=Zt;function CXe(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&typeof e.sourceRef==`string`}function vF(e){return Array.isArray(e)?e.some(vF):typeof e!=`object`||!e?!1:CXe(e)?!0:Object.values(e).some(vF)}var wXe=class{constructor(e){this.validateConfigJsonString=async(e,t,n,r={})=>{let i=this.parseConfigJson(e,n);return this.validateConfigObj(i,t,n,r)},this.validateConfigObj=async(e,t,n,r={})=>{let i=vF(e),a=this.type===`docs`&&r.allowSourceRefs;if(a&&i){let t=Aee(e);if(!t.success){let e=`🚨 Invalid ${this.type}.json:`,r=t.error.issues.map(e=>Pd(e));throw n?(n(e),r.forEach(e=>n(e))):(console.error(KP.red(e)),r.forEach(e=>console.error(KP.red(e)))),Error()}}let o=a&&i?Ad(e):e,s=this.type===`mint`?jd(e):Md(o);if(!s.success){let e=`🚨 Invalid ${this.type}.json:`,t=s.error.issues.map(e=>Pd(e));throw n?(n(e),t.forEach(e=>n(e))):(console.error(KP.red(e)),t.forEach(e=>console.error(KP.red(e)))),Error()}if(this.type===`docs`&&r.allowSourceRefs&&i){let e=`⚠️ sourceRef entries are resolved during multi-repository deployments and are omitted from local preview.`;n?n(e):console.warn(KP.yellow(e))}if(`warnings`in s&&s.warnings.length>0){let e=`⚠️ Warnings found in ${this.type}.json:`,r=s.warnings.map(e=>Pd(e));if(n)n(e),r.forEach(e=>n(e));else if(console.warn(KP.yellow(e)),r.forEach(e=>console.warn(KP.yellow(e))),t)throw Error(`Validation warnings treated as errors in strict mode`)}return{...s,data:s.data}},this.readConfigFile=async e=>{let t;try{t=await SXe(e,`utf-8`)}catch(e){throw Error(`Unable to read ${this.type}.json: ${e}`)}return t},this.writeConfigFile=async(e,t)=>{try{await(0,lF.outputFile)(Ct(t??``,`src/_props/${this.type}.json`),JSON.stringify(e,null,2),{flag:`w`})}catch(e){throw Error(`Unable to write ${this.type}.json: ${e}`)}},this.parseConfigJson=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){if(typeof e==`object`&&e){if(`name`in e&&e.name===`SyntaxError`){let e=`🚨 ${this.type}.json has invalid JSON. You are likely missing a comma or a bracket. You can paste your ${this.type}.json file into https://jsonlint.com/ to get a more specific error message.`;t?t(e):console.error(KP.red(e))}else if(`message`in e){let n=`🚨 ${e.message}`;t?t(n):console.error(KP.red(n))}}throw Error()}return n},this.type=e}getConfigType(){return this.type}async getConfig(e,t,n,r,i={}){let a=await this.readConfigFile(e),o=this.parseConfigJson(a,r),s=o;if(n)try{let{resolved:e}=await cF(o,n);s=e}catch(e){let t=`Error resolving $ref in ${this.type}.json: ${e instanceof Error?e.message:String(e)}`;throw r&&r(t),Error(t)}let{data:c}=await this.validateConfigObj(s,t,r,i);return c}};const yF=new wXe(`mint`),bF=new wXe(`docs`);var xF=/* @__PURE__ */ a((e=>{let t=ZP().fromCallback,n=QP(),r=(/* @__PURE__ */ `access.appendFile.chmod.chown.close.copyFile.fchmod.fchown.fdatasync.fstat.fsync.ftruncate.futimes.lchmod.lchown.link.lstat.mkdir.mkdtemp.open.opendir.readdir.readFile.readlink.realpath.rename.rm.rmdir.stat.symlink.truncate.unlink.utimes.writeFile`.split(`.`)).filter(e=>typeof n[e]==`function`);Object.assign(e,n),r.forEach(r=>{e[r]=t(n[r])}),e.exists=function(e,t){return typeof t==`function`?n.exists(e,t):new Promise(t=>n.exists(e,t))},e.read=function(e,t,r,i,a,o){return typeof o==`function`?n.read(e,t,r,i,a,o):new Promise((o,s)=>{n.read(e,t,r,i,a,(e,t,n)=>{if(e)return s(e);o({bytesRead:t,buffer:n})})})},e.write=function(e,t,...r){return typeof r[r.length-1]==`function`?n.write(e,t,...r):new Promise((i,a)=>{n.write(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffer:n})})})},e.readv=function(e,t,...r){return typeof r[r.length-1]==`function`?n.readv(e,t,...r):new Promise((i,a)=>{n.readv(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesRead:t,buffers:n})})})},e.writev=function(e,t,...r){return typeof r[r.length-1]==`function`?n.writev(e,t,...r):new Promise((i,a)=>{n.writev(e,t,...r,(e,t,n)=>{if(e)return a(e);i({bytesWritten:t,buffers:n})})})},typeof n.realpath.native==`function`?e.realpath.native=t(n.realpath.native):process.emitWarning(`fs.realpath.native is not a function. Is fs being monkey-patched?`,`Warning`,`fs-extra-WARN0003`)})),TXe=/* @__PURE__ */ a(((e,n)=>{let r=t(`path`);n.exports.checkPath=function(e){if(process.platform===`win32`&&/[<>:"|?*]/.test(e.replace(r.parse(e).root,``))){let t=/* @__PURE__ */ Error(`Path contains invalid characters: ${e}`);throw t.code=`EINVAL`,t}}})),EXe=/* @__PURE__ */ a(((e,t)=>{let n=xF(),{checkPath:r}=TXe(),i=e=>typeof e==`number`?e:{mode:511,...e}.mode;t.exports.makeDir=async(e,t)=>(r(e),n.mkdir(e,{mode:i(t),recursive:!0})),t.exports.makeDirSync=(e,t)=>(r(e),n.mkdirSync(e,{mode:i(t),recursive:!0}))})),SF=/* @__PURE__ */ a(((e,t)=>{let n=ZP().fromPromise,{makeDir:r,makeDirSync:i}=EXe(),a=n(r);t.exports={mkdirs:a,mkdirsSync:i,mkdirp:a,mkdirpSync:i,ensureDir:a,ensureDirSync:i}})),CF=/* @__PURE__ */ a(((e,t)=>{let n=ZP().fromPromise,r=xF();function i(e){return r.access(e).then(()=>!0).catch(()=>!1)}t.exports={pathExists:n(i),pathExistsSync:r.existsSync}})),DXe=/* @__PURE__ */ a(((e,t)=>{let n=QP();function r(e,t,r,i){n.open(e,`r+`,(e,a)=>{if(e)return i(e);n.futimes(a,t,r,e=>{n.close(a,t=>{i&&i(e||t)})})})}function i(e,t,r){let i=n.openSync(e,`r+`);return n.futimesSync(i,t,r),n.closeSync(i)}t.exports={utimesMillis:r,utimesMillisSync:i}})),wF=/* @__PURE__ */ a(((e,n)=>{let r=xF(),i=t(`path`),a=t(`util`);function o(e,t,n){let i=n.dereference?e=>r.stat(e,{bigint:!0}):e=>r.lstat(e,{bigint:!0});return Promise.all([i(e),i(t).catch(e=>{if(e.code===`ENOENT`)return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}function s(e,t,n){let i,a=n.dereference?e=>r.statSync(e,{bigint:!0}):e=>r.lstatSync(e,{bigint:!0}),o=a(e);try{i=a(t)}catch(e){if(e.code===`ENOENT`)return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:i}}function c(e,t,n,r,s){a.callbackify(o)(e,t,r,(r,a)=>{if(r)return s(r);let{srcStat:o,destStat:c}=a;if(c){if(f(o,c)){let r=i.basename(e),a=i.basename(t);return n===`move`&&r!==a&&r.toLowerCase()===a.toLowerCase()?s(null,{srcStat:o,destStat:c,isChangingCase:!0}):s(/* @__PURE__ */ Error(`Source and destination must not be the same.`))}if(o.isDirectory()&&!c.isDirectory())return s(/* @__PURE__ */ Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!o.isDirectory()&&c.isDirectory())return s(/* @__PURE__ */ Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return o.isDirectory()&&p(e,t)?s(Error(m(e,t,n))):s(null,{srcStat:o,destStat:c})})}function l(e,t,n,r){let{srcStat:a,destStat:o}=s(e,t,r);if(o){if(f(a,o)){let r=i.basename(e),s=i.basename(t);if(n===`move`&&r!==s&&r.toLowerCase()===s.toLowerCase())return{srcStat:a,destStat:o,isChangingCase:!0};throw Error(`Source and destination must not be the same.`)}if(a.isDirectory()&&!o.isDirectory())throw Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!a.isDirectory()&&o.isDirectory())throw Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(a.isDirectory()&&p(e,t))throw Error(m(e,t,n));return{srcStat:a,destStat:o}}function u(e,t,n,a,o){let s=i.resolve(i.dirname(e)),c=i.resolve(i.dirname(n));if(c===s||c===i.parse(c).root)return o();r.stat(c,{bigint:!0},(r,i)=>r?r.code===`ENOENT`?o():o(r):f(t,i)?o(Error(m(e,n,a))):u(e,t,c,a,o))}function d(e,t,n,a){let o=i.resolve(i.dirname(e)),s=i.resolve(i.dirname(n));if(s===o||s===i.parse(s).root)return;let c;try{c=r.statSync(s,{bigint:!0})}catch(e){if(e.code===`ENOENT`)return;throw e}if(f(t,c))throw Error(m(e,n,a));return d(e,t,s,a)}function f(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function p(e,t){let n=i.resolve(e).split(i.sep).filter(e=>e),r=i.resolve(t).split(i.sep).filter(e=>e);return n.reduce((e,t,n)=>e&&r[n]===t,!0)}function m(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}n.exports={checkPaths:c,checkPathsSync:l,checkParentPaths:u,checkParentPathsSync:d,isSrcSubdir:p,areIdentical:f}})),OXe=/* @__PURE__ */ a(((e,n)=>{let r=QP(),i=t(`path`),a=SF().mkdirs,o=CF().pathExists,s=DXe().utimesMillis,c=wF();function l(e,t,n,r){typeof n==`function`&&!r?(r=n,n={}):typeof n==`function`&&(n={filter:n}),r||=function(){},n||={},n.clobber=`clobber`in n?!!n.clobber:!0,n.overwrite=`overwrite`in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch===`ia32`&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
879
879
 
880
880
  see https://github.com/jprichardson/node-fs-extra/issues/269`,`Warning`,`fs-extra-WARN0001`),c.checkPaths(e,t,`copy`,n,(i,a)=>{if(i)return r(i);let{srcStat:o,destStat:s}=a;c.checkParentPaths(e,o,t,`copy`,i=>{if(i)return r(i);d(e,t,n,(i,a)=>{if(i)return r(i);if(!a)return r();u(s,e,t,n,r)})})})}function u(e,t,n,r,s){let c=i.dirname(n);o(c,(i,o)=>{if(i)return s(i);if(o)return f(e,t,n,r,s);a(c,i=>i?s(i):f(e,t,n,r,s))})}function d(e,t,n,r){if(!n.filter)return r(null,!0);Promise.resolve(n.filter(e,t)).then(e=>r(null,e),e=>r(e))}function f(e,t,n,i,a){(i.dereference?r.stat:r.lstat)(t,(r,o)=>r?a(r):o.isDirectory()?S(o,e,t,n,i,a):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?p(o,e,t,n,i,a):o.isSymbolicLink()?D(e,t,n,i,a):o.isSocket()?a(/* @__PURE__ */ Error(`Cannot copy a socket file: ${t}`)):o.isFIFO()?a(/* @__PURE__ */ Error(`Cannot copy a FIFO pipe: ${t}`)):a(/* @__PURE__ */ Error(`Unknown file: ${t}`)))}function p(e,t,n,r,i,a){return t?m(e,n,r,i,a):h(e,n,r,i,a)}function m(e,t,n,i,a){if(i.overwrite)r.unlink(n,r=>r?a(r):h(e,t,n,i,a));else if(i.errorOnExist)return a(/* @__PURE__ */ Error(`'${n}' already exists`));else return a()}function h(e,t,n,i,a){r.copyFile(t,n,r=>r?a(r):i.preserveTimestamps?g(e.mode,t,n,a):b(n,e.mode,a))}function g(e,t,n,r){return _(e)?v(n,e,i=>i?r(i):y(e,t,n,r)):y(e,t,n,r)}function _(e){return!(e&128)}function v(e,t,n){return b(e,t|128,n)}function y(e,t,n,r){x(t,n,t=>t?r(t):b(n,e,r))}function b(e,t,n){return r.chmod(e,t,n)}function x(e,t,n){r.stat(e,(e,r)=>e?n(e):s(t,r.atime,r.mtime,n))}function S(e,t,n,r,i,a){return t?w(n,r,i,a):C(e.mode,n,r,i,a)}function C(e,t,n,i,a){r.mkdir(n,r=>{if(r)return a(r);w(t,n,i,t=>t?a(t):b(n,e,a))})}function w(e,t,n,i){r.readdir(e,(r,a)=>r?i(r):T(a,e,t,n,i))}function T(e,t,n,r,i){let a=e.pop();return a?E(e,a,t,n,r,i):i()}function E(e,t,n,r,a,o){let s=i.join(n,t),l=i.join(r,t);d(s,l,a,(t,i)=>{if(t)return o(t);if(!i)return T(e,n,r,a,o);c.checkPaths(s,l,`copy`,a,(t,i)=>{if(t)return o(t);let{destStat:c}=i;f(c,s,l,a,t=>t?o(t):T(e,n,r,a,o))})})}function D(e,t,n,a,o){r.readlink(t,(t,s)=>{if(t)return o(t);if(a.dereference&&(s=i.resolve(process.cwd(),s)),e)r.readlink(n,(e,t)=>e?e.code===`EINVAL`||e.code===`UNKNOWN`?r.symlink(s,n,o):o(e):(a.dereference&&(t=i.resolve(process.cwd(),t)),c.isSrcSubdir(s,t)?o(/* @__PURE__ */ Error(`Cannot copy '${s}' to a subdirectory of itself, '${t}'.`)):c.isSrcSubdir(t,s)?o(/* @__PURE__ */ Error(`Cannot overwrite '${t}' with '${s}'.`)):O(s,n,o)));else return r.symlink(s,n,o)})}function O(e,t,n){r.unlink(t,i=>i?n(i):r.symlink(e,t,n))}n.exports=l})),kXe=/* @__PURE__ */ a(((e,n)=>{let r=QP(),i=t(`path`),a=SF().mkdirsSync,o=DXe().utimesMillisSync,s=wF();function c(e,t,n){typeof n==`function`&&(n={filter:n}),n||={},n.clobber=`clobber`in n?!!n.clobber:!0,n.overwrite=`overwrite`in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch===`ia32`&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
881
881
 
882
882
  see https://github.com/jprichardson/node-fs-extra/issues/269`,`Warning`,`fs-extra-WARN0002`);let{srcStat:o,destStat:c}=s.checkPathsSync(e,t,`copy`,n);if(s.checkParentPathsSync(e,o,t,`copy`),n.filter&&!n.filter(e,t))return;let u=i.dirname(t);return r.existsSync(u)||a(u),l(c,e,t,n)}function l(e,t,n,i){let a=(i.dereference?r.statSync:r.lstatSync)(t);if(a.isDirectory())return v(a,e,t,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return u(a,e,t,n,i);if(a.isSymbolicLink())return S(e,t,n,i);throw a.isSocket()?Error(`Cannot copy a socket file: ${t}`):a.isFIFO()?Error(`Cannot copy a FIFO pipe: ${t}`):Error(`Unknown file: ${t}`)}function u(e,t,n,r,i){return t?d(e,n,r,i):f(e,n,r,i)}function d(e,t,n,i){if(i.overwrite)return r.unlinkSync(n),f(e,t,n,i);if(i.errorOnExist)throw Error(`'${n}' already exists`)}function f(e,t,n,i){return r.copyFileSync(t,n),i.preserveTimestamps&&p(e.mode,t,n),g(n,e.mode)}function p(e,t,n){return m(e)&&h(n,e),_(t,n)}function m(e){return!(e&128)}function h(e,t){return g(e,t|128)}function g(e,t){return r.chmodSync(e,t)}function _(e,t){let n=r.statSync(e);return o(t,n.atime,n.mtime)}function v(e,t,n,r,i){return t?b(n,r,i):y(e.mode,n,r,i)}function y(e,t,n,i){return r.mkdirSync(n),b(t,n,i),g(n,e)}function b(e,t,n){r.readdirSync(e).forEach(r=>x(r,e,t,n))}function x(e,t,n,r){let a=i.join(t,e),o=i.join(n,e);if(r.filter&&!r.filter(a,o))return;let{destStat:c}=s.checkPathsSync(a,o,`copy`,r);return l(c,a,o,r)}function S(e,t,n,a){let o=r.readlinkSync(t);if(a.dereference&&(o=i.resolve(process.cwd(),o)),e){let e;try{e=r.readlinkSync(n)}catch(e){if(e.code===`EINVAL`||e.code===`UNKNOWN`)return r.symlinkSync(o,n);throw e}if(a.dereference&&(e=i.resolve(process.cwd(),e)),s.isSrcSubdir(o,e))throw Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`);if(s.isSrcSubdir(e,o))throw Error(`Cannot overwrite '${e}' with '${o}'.`);return C(o,n)}return r.symlinkSync(o,n)}function C(e,t){return r.unlinkSync(t),r.symlinkSync(e,t)}n.exports=c})),TF=/* @__PURE__ */ a(((e,t)=>{let n=ZP().fromCallback;t.exports={copy:n(OXe()),copySync:kXe()}})),EF=/* @__PURE__ */ a(((e,t)=>{let n=QP(),r=ZP().fromCallback;function i(e,t){n.rm(e,{recursive:!0,force:!0},t)}function a(e){n.rmSync(e,{recursive:!0,force:!0})}t.exports={remove:r(i),removeSync:a}})),AXe=/* @__PURE__ */ a(((e,n)=>{let r=ZP().fromPromise,i=xF(),a=t(`path`),o=SF(),s=EF(),c=r(async function(e){let t;try{t=await i.readdir(e)}catch{return o.mkdirs(e)}return Promise.all(t.map(t=>s.remove(a.join(e,t))))});function l(e){let t;try{t=i.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach(t=>{t=a.join(e,t),s.removeSync(t)})}n.exports={emptyDirSync:l,emptydirSync:l,emptyDir:c,emptydir:c}})),jXe=/* @__PURE__ */ a(((e,n)=>{let r=ZP().fromCallback,i=t(`path`),a=QP(),o=SF();function s(e,t){function n(){a.writeFile(e,``,e=>{if(e)return t(e);t()})}a.stat(e,(r,s)=>{if(!r&&s.isFile())return t();let c=i.dirname(e);a.stat(c,(e,r)=>{if(e)return e.code===`ENOENT`?o.mkdirs(c,e=>{if(e)return t(e);n()}):t(e);r.isDirectory()?n():a.readdir(c,e=>{if(e)return t(e)})})})}function c(e){let t;try{t=a.statSync(e)}catch{}if(t&&t.isFile())return;let n=i.dirname(e);try{a.statSync(n).isDirectory()||a.readdirSync(n)}catch(e){if(e&&e.code===`ENOENT`)o.mkdirsSync(n);else throw e}a.writeFileSync(e,``)}n.exports={createFile:r(s),createFileSync:c}})),MXe=/* @__PURE__ */ a(((e,n)=>{let r=ZP().fromCallback,i=t(`path`),a=QP(),o=SF(),s=CF().pathExists,{areIdentical:c}=wF();function l(e,t,n){function r(e,t){a.link(e,t,e=>{if(e)return n(e);n(null)})}a.lstat(t,(l,u)=>{a.lstat(e,(a,l)=>{if(a)return a.message=a.message.replace(`lstat`,`ensureLink`),n(a);if(u&&c(l,u))return n(null);let d=i.dirname(t);s(d,(i,a)=>{if(i)return n(i);if(a)return r(e,t);o.mkdirs(d,i=>{if(i)return n(i);r(e,t)})})})})}function u(e,t){let n;try{n=a.lstatSync(t)}catch{}try{let t=a.lstatSync(e);if(n&&c(t,n))return}catch(e){throw e.message=e.message.replace(`lstat`,`ensureLink`),e}let r=i.dirname(t);return a.existsSync(r)||o.mkdirsSync(r),a.linkSync(e,t)}n.exports={createLink:r(l),createLinkSync:u}})),NXe=/* @__PURE__ */ a(((e,n)=>{let r=t(`path`),i=QP(),a=CF().pathExists;function o(e,t,n){if(r.isAbsolute(e))return i.lstat(e,t=>t?(t.message=t.message.replace(`lstat`,`ensureSymlink`),n(t)):n(null,{toCwd:e,toDst:e}));{let o=r.dirname(t),s=r.join(o,e);return a(s,(t,a)=>t?n(t):a?n(null,{toCwd:s,toDst:e}):i.lstat(e,t=>t?(t.message=t.message.replace(`lstat`,`ensureSymlink`),n(t)):n(null,{toCwd:e,toDst:r.relative(o,e)})))}}function s(e,t){let n;if(r.isAbsolute(e)){if(n=i.existsSync(e),!n)throw Error(`absolute srcpath does not exist`);return{toCwd:e,toDst:e}}{let a=r.dirname(t),o=r.join(a,e);if(n=i.existsSync(o),n)return{toCwd:o,toDst:e};if(n=i.existsSync(e),!n)throw Error(`relative srcpath does not exist`);return{toCwd:e,toDst:r.relative(a,e)}}}n.exports={symlinkPaths:o,symlinkPathsSync:s}})),PXe=/* @__PURE__ */ a(((e,t)=>{let n=QP();function r(e,t,r){if(r=typeof t==`function`?t:r,t=typeof t!=`function`&&t,t)return r(null,t);n.lstat(e,(e,n)=>{if(e)return r(null,`file`);t=n&&n.isDirectory()?`dir`:`file`,r(null,t)})}function i(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return`file`}return r&&r.isDirectory()?`dir`:`file`}t.exports={symlinkType:r,symlinkTypeSync:i}})),FXe=/* @__PURE__ */ a(((e,n)=>{let r=ZP().fromCallback,i=t(`path`),a=xF(),o=SF(),s=o.mkdirs,c=o.mkdirsSync,l=NXe(),u=l.symlinkPaths,d=l.symlinkPathsSync,f=PXe(),p=f.symlinkType,m=f.symlinkTypeSync,h=CF().pathExists,{areIdentical:g}=wF();function _(e,t,n,r){r=typeof n==`function`?n:r,n=typeof n!=`function`&&n,a.lstat(t,(i,o)=>{!i&&o.isSymbolicLink()?Promise.all([a.stat(e),a.stat(t)]).then(([i,a])=>{if(g(i,a))return r(null);v(e,t,n,r)}):v(e,t,n,r)})}function v(e,t,n,r){u(e,t,(o,c)=>{if(o)return r(o);e=c.toDst,p(c.toCwd,n,(n,o)=>{if(n)return r(n);let c=i.dirname(t);h(c,(n,i)=>{if(n)return r(n);if(i)return a.symlink(e,t,o,r);s(c,n=>{if(n)return r(n);a.symlink(e,t,o,r)})})})})}function y(e,t,n){let r;try{r=a.lstatSync(t)}catch{}if(r&&r.isSymbolicLink()){let n=a.statSync(e),r=a.statSync(t);if(g(n,r))return}let o=d(e,t);e=o.toDst,n=m(o.toCwd,n);let s=i.dirname(t);return a.existsSync(s)||c(s),a.symlinkSync(e,t,n)}n.exports={createSymlink:r(_),createSymlinkSync:y}})),IXe=/* @__PURE__ */ a(((e,t)=>{let{createFile:n,createFileSync:r}=jXe(),{createLink:i,createLinkSync:a}=MXe(),{createSymlink:o,createSymlinkSync:s}=FXe();t.exports={createFile:n,createFileSync:r,ensureFile:n,ensureFileSync:r,createLink:i,createLinkSync:a,ensureLink:i,ensureLinkSync:a,createSymlink:o,createSymlinkSync:s,ensureSymlink:o,ensureSymlinkSync:s}})),LXe=/* @__PURE__ */ a(((e,t)=>{let n=oF();t.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}})),DF=/* @__PURE__ */ a(((e,n)=>{let r=ZP().fromCallback,i=QP(),a=t(`path`),o=SF(),s=CF().pathExists;function c(e,t,n,r){typeof n==`function`&&(r=n,n=`utf8`);let c=a.dirname(e);s(c,(a,s)=>{if(a)return r(a);if(s)return i.writeFile(e,t,n,r);o.mkdirs(c,a=>{if(a)return r(a);i.writeFile(e,t,n,r)})})}function l(e,...t){let n=a.dirname(e);if(i.existsSync(n))return i.writeFileSync(e,...t);o.mkdirsSync(n),i.writeFileSync(e,...t)}n.exports={outputFile:r(c),outputFileSync:l}})),RXe=/* @__PURE__ */ a(((e,t)=>{let{stringify:n}=aF(),{outputFile:r}=DF();async function i(e,t,i={}){let a=n(t,i);await r(e,a,i)}t.exports=i})),zXe=/* @__PURE__ */ a(((e,t)=>{let{stringify:n}=aF(),{outputFileSync:r}=DF();function i(e,t,i){let a=n(t,i);r(e,a,i)}t.exports=i})),BXe=/* @__PURE__ */ a(((e,t)=>{let n=ZP().fromPromise,r=LXe();r.outputJson=n(RXe()),r.outputJsonSync=zXe(),r.outputJSON=r.outputJson,r.outputJSONSync=r.outputJsonSync,r.writeJSON=r.writeJson,r.writeJSONSync=r.writeJsonSync,r.readJSON=r.readJson,r.readJSONSync=r.readJsonSync,t.exports=r})),VXe=/* @__PURE__ */ a(((e,n)=>{let r=QP(),i=t(`path`),a=TF().copy,o=EF().remove,s=SF().mkdirp,c=CF().pathExists,l=wF();function u(e,t,n,r){typeof n==`function`&&(r=n,n={}),n||={};let a=n.overwrite||n.clobber||!1;l.checkPaths(e,t,`move`,n,(n,o)=>{if(n)return r(n);let{srcStat:c,isChangingCase:u=!1}=o;l.checkParentPaths(e,c,t,`move`,n=>{if(n)return r(n);if(d(t))return f(e,t,a,u,r);s(i.dirname(t),n=>n?r(n):f(e,t,a,u,r))})})}function d(e){let t=i.dirname(e);return i.parse(t).root===t}function f(e,t,n,r,i){if(r)return p(e,t,n,i);if(n)return o(t,r=>r?i(r):p(e,t,n,i));c(t,(r,a)=>r?i(r):a?i(/* @__PURE__ */ Error(`dest already exists.`)):p(e,t,n,i))}function p(e,t,n,i){r.rename(e,t,r=>r?r.code===`EXDEV`?m(e,t,n,i):i(r):i())}function m(e,t,n,r){a(e,t,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0},t=>t?r(t):o(e,r))}n.exports=u})),HXe=/* @__PURE__ */ a(((e,n)=>{let r=QP(),i=t(`path`),a=TF().copySync,o=EF().removeSync,s=SF().mkdirpSync,c=wF();function l(e,t,n){n||={};let r=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:o=!1}=c.checkPathsSync(e,t,`move`,n);return c.checkParentPathsSync(e,a,t,`move`),u(t)||s(i.dirname(t)),d(e,t,r,o)}function u(e){let t=i.dirname(e);return i.parse(t).root===t}function d(e,t,n,i){if(i)return f(e,t,n);if(n)return o(t),f(e,t,n);if(r.existsSync(t))throw Error(`dest already exists.`);return f(e,t,n)}function f(e,t,n){try{r.renameSync(e,t)}catch(r){if(r.code!==`EXDEV`)throw r;return p(e,t,n)}}function p(e,t,n){return a(e,t,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),o(e)}n.exports=l})),UXe=/* @__PURE__ */ a(((e,t)=>{let n=ZP().fromCallback;t.exports={move:n(VXe()),moveSync:HXe()}})),OF=/* @__PURE__ */ r((/* @__PURE__ */ a(((e,t)=>{t.exports={...xF(),...TF(),...AXe(),...IXe(),...BXe(),...SF(),...UXe(),...DF(),...CF(),...EF()}})))(),1);const kF=`stdout`in process&&`hasColors`in process.stdout&&process.stdout.hasColors()?{red:`\x1B[31m`,green:`\x1B[32m`,yellow:`\x1B[33m`,blue:`\x1B[34m`,magenta:`\x1B[35m`,cyan:`\x1B[36m`,grey:`\x1B[90m`,default:`\x1B[0m`,bold:`\x1B[1m`,dim:`\x1B[2m`,italic:`\x1B[3m`}:{red:``,green:``,yellow:``,blue:``,magenta:``,cyan:``,grey:``,default:``,bold:``,dim:``,italic:``};function WXe(e,t=void 0,n={}){let r=kF.blue,i=`INFO`,a=`ⓘ `,o=typeof e==`string`?e.toLowerCase():``;switch(t||=o.includes(`fail`)||o.includes(`error`)||o.includes(`could not`)||o.includes(`couldn't`)||o.includes(`did not`)||o.includes(`invalid`)||o.includes(`didn't`)?`error`:o.includes(`success`)||o.includes(`downloaded`)||o.includes(`written`)||o.includes(`added`)?`success`:o.includes(`warn`)?`warn`:void 0,t){case void 0:case`info`:break;case`success`:r=kF.green,i=`SUCCESS`,a=`✔ `;break;case`warn`:case`warning`:r=kF.yellow,i=`WARNING`,a=`⚠ `;break;case`failure`:case`error`:r=kF.red,i=`ERROR`,a=`✘ `}n.omitIcon&&(a=``),n.omitStatusMessage&&(i=``);let s=n.omitStatusMessage||n.omitIcon?``:` - `;n.leadingNewLine&&console.log(),console[t===`error`||t===`failure`?`error`:t===`warn`||t===`warning`?`warn`:`log`](`${r}${a}${a?` `:``}${i}${kF.default}${s}${typeof e==`string`||typeof e==`bigint`||typeof e==`number`||typeof e==`boolean`?e:JSON.stringify(e,void 0,2)}`),n.trailingNewLine&&console.log()}const AF={vendor:void 0,version:void 0};function GXe(e){return e instanceof Error?`: ${e.message}`:``}async function KXe(e){try{let t=await(await vm(async()=>{let t=await fetch(e);if(!t.ok)throw Error(`${t.status} ${t.statusText}`);return t})).text();return ne.load(t)}catch(t){let n=GXe(t);throw Error(`${e} - failed to retrieve OpenAPI file from source${n}`)}}async function qXe(e){try{let{document:t,errorMessage:n}=await xP(await(await vm(async()=>{let t=await fetch(e);if(!t.ok)throw Error(`${t.status} ${t.statusText}`);return t})).text());if(!t)throw Error(`${e} - this document is not a valid AsyncAPI document - ${n}`);return t}catch(t){let n=GXe(t);throw Error(`${e} - failed to retrieve AsyncAPI file from source - ${n}`)}}const JXe=async(e,t,n)=>{let r=!1;if(typeof e==`string`){if(e.startsWith(`http:`)&&!t)throw Error(`Only HTTPS URLs are supported. HTTP URLs are only supported with the cli option --local-schema.`);try{e=new URL(e)}catch{let t=vt.join(process.cwd(),e.toString()),n=await vn.readFile(t,`utf-8`);e=ne.load(n),r=!0}}let i=e instanceof URL;if(e instanceof URL){if(!Eh(e.toString(),t))throw Error(`Only HTTPS URLs are supported. HTTP URLs are only supported with the cli option --local-schema.`);e=await KXe(e),r=!0}return r&&n&&n.length>0&&(e=gm(e,n)),{document:e,isUrl:i}},jF=({openApiMetaTag:e,version:t,deprecated:n,metadata:r,extraContent:i})=>{let a=`---\nopenapi: ${e}`;if(r&&`version`in r?a+=`\nversion: ${r.version}`:t&&(a+=`\nversion: ${t}`),r&&`deprecated`in r?a+=`\ndeprecated: ${r.deprecated}`:n&&(a+=`\ndeprecated: ${n}`),r){let e=/* @__PURE__ */ new Set([`openapi`,`version`,`deprecated`]);Object.entries(r).filter(([t])=>!e.has(t)).forEach(([e,t])=>{let n=typeof t==`string`?ne.dump(t,{lineWidth:-1}).trimEnd():t;a+=`\n${e}: ${n}`})}return a+=`
883
883
  ---`,i?`${a}\n\n${i}`:a},YXe=async({filename:e,...t})=>{await(0,OF.outputFile)(e,jF(t))},MF=e=>e[`x-hidden`],XXe=e=>e[`x-excluded`];function NF(e,t,n,r,i,a,o,s,c){let l=s.openApiFilePath?Dh(s.openApiFilePath):void 0,u=[],d=s.resolveTags??mh(n),f=s.resolveBadge??hh(n),p=ph(n);return Nl(t).forEach(([m,g])=>{if(XXe(g))return;let _=g?.[`x-mint`],v=ZXe({pathObject:t,operationObject:g});_?.href&&(_.href=Dh(_.href));let y=d(g?.tags),b=y.at(-1)?.name,x=Nce({slugSource:s.slug,operationId:g?.operationId,summary:g?.summary,fallback:()=>`${m.toLowerCase()}-${Sh(e)}`}),S=Sh(b)??``,C=Et.join(s.outDir??``,S,x);if(_?.href){let e=Oh(_.href);x=Et.parse(e).name,S=Et.parse(e).dir,C=Et.join(s.mountPath??``,S,x)}let w=MF(g),T=w&&p?[]:gh(r,y,c),E=w&&p?[]:gh(i,y,c),D=Ch(p?o:T,C),O=Oce({filePath:l,method:m,path:e}),{title:k,description:A}=vae([{filename:s.openApiFilePath?Tt(s.openApiFilePath).name:`filler-filename`,spec:n,originalFileLocation:l}],O),ee=_?.metadata;v.length>0&&(ee={...ee,groups:h(ee?.groups,v)});let te=f(g?.tags);te!==void 0&&ee?.tag===void 0&&(ee={...ee,tag:te});let ne=Ah(D),re={title:k??ne,description:A,deprecated:g?.deprecated,version:s.version,..._?.href&&k&&s.openApiFilePath?{sidebarTitle:ne}:{},...ee,openapi:O,href:Et.resolve(`/`,D)};MF(g)||(T.push(D),E.push(re)),o[D]=re,u.push(D),s.writeFiles||Ace(D,_?.content);let ie=s.outDirBasePath?Ct(s.outDirBasePath,`${D}.mdx`):`${D}.mdx`;if(s.writeFiles&&(!OF.default.pathExistsSync(ie)||s.overwrite)){let e={openApiMetaTag:O,version:s.version,deprecated:g?.deprecated,metadata:ee,extraContent:_?.content};a.push(s.writeFile?Promise.resolve(s.writeFile(ie,jF(e))):YXe({filename:ie,...e}))}}),u}function PF(e,t,n,r,i,a,o,s,c){let l=s.openApiFilePath?Dh(s.openApiFilePath):void 0,u=[],d=s.resolveTags??mh(n),f=s.resolveBadge??hh(n),p=ph(n);return Nl(t).forEach(([,t])=>{if(XXe(t))return;let n=t?.[`x-mint`];n?.href&&(n.href=Dh(n.href));let m=d(t?.tags),h=m.at(-1)?.name,g=Sh(t?.summary),_=Nce({slugSource:s.slug,operationId:t?.operationId,summary:t?.summary,fallback:()=>`${Sh(e)}`}),v=Sh(h)??``,y=Et.join(s.outDir??``,v,_);if(n?.href){let e=Oh(n.href);_=Et.parse(e).name,v=Et.parse(e).dir,y=Et.join(s.mountPath??``,v,_)}let b=MF(t),x=b&&p?[]:gh(r,m,c),S=b&&p?[]:gh(i,m,c),C=Ch(p?o:x,y),w=Oce({filePath:l,method:`webhook`,path:e}),T=f(t?.tags),E=T!==void 0&&n?.metadata?.tag===void 0?{...n?.metadata,tag:T}:n?.metadata,D={title:Ah(s.slug===`operationId`&&g?g:C),description:t?.description,version:s.version,deprecated:t?.deprecated,...E,openapi:w,href:Et.resolve(`/`,C)};MF(t)||(x.push(C),S.push(D)),o[C]=D,u.push(C),s.writeFiles||Ace(C,n?.content);let O=s.outDirBasePath?Ct(s.outDirBasePath,`${C}.mdx`):`${C}.mdx`;if(s.writeFiles&&(!OF.default.pathExistsSync(O)||s.overwrite)){let e={openApiMetaTag:w,version:s.version,deprecated:t?.deprecated,metadata:E,extraContent:n?.content};a.push(s.writeFile?Promise.resolve(s.writeFile(O,jF(e))):YXe({filename:O,...e}))}}),u}const ZXe=({pathObject:e,operationObject:t})=>{let n=[];return`x-mint`in e&&e[`x-mint`]&&typeof e[`x-mint`]==`object`&&`groups`in e[`x-mint`]&&Array.isArray(e[`x-mint`].groups)&&n.push(...e[`x-mint`].groups),t&&`x-mint`in t&&t[`x-mint`]&&typeof t[`x-mint`]==`object`&&`groups`in t[`x-mint`]&&Array.isArray(t[`x-mint`].groups)&&n.push(...t[`x-mint`].groups),n};async function QXe(e,t){let{document:n,isUrl:r}=await JXe(e,t?.localSchema,t?.overlays),{schema:i}=await vh(n);if(i?.openapi?.startsWith(`3.0.`)&&(i.paths===void 0||Object.keys(i.paths).length===0))throw Error(`No paths defined.`);if((i?.openapi?.startsWith(`3.1.`)||i?.openapi?.startsWith(`3.2.`))&&(i.paths===void 0||Object.keys(i.paths).length===0)&&(i.webhooks===void 0||Object.keys(i.webhooks).length===0))throw Error(`No paths or webhooks defined.`);let a={...t,resolveTags:mh(i),resolveBadge:hh(i)},o=[],s=[],c=[],l={};return i?.paths&&Object.entries(i.paths).forEach(([e,t])=>{t&&typeof t==`object`&&NF(e,t,i,o,s,c,l,a,eZe)}),i?.webhooks&&Object.entries(i.webhooks).forEach(([e,t])=>{t&&typeof t==`object`&&PF(e,t,i,o,s,c,l,a,eZe)}),await Promise.all(c),{nav:o,decoratedNav:s,spec:i,pagesAcc:l,isUrl:r}}const $Xe=/* @__PURE__ */ new WeakMap,eZe=(e,t=Pce,n)=>{let r=e.find(e=>typeof e==`object`&&`group`in e&&e.group===t&&(n===void 0||$Xe.get(e)===n));if(r===void 0){let r={group:t,pages:[]};return n!==void 0&&$Xe.set(r,n),e.push(r),r.pages}return r.pages};async function tZe(e,t){let{document:n,isUrl:r}=await JXe(e,t?.localSchema,t?.overlays),{schema:i}=await vh(n);if(i?.openapi?.startsWith(`3.0.`)&&(i.paths===void 0||Object.keys(i.paths).length===0))throw Error(`No paths defined.`);if((i?.openapi?.startsWith(`3.1.`)||i?.openapi?.startsWith(`3.2.`))&&(i.paths===void 0||Object.keys(i.paths).length===0)&&(i.webhooks===void 0||Object.keys(i.webhooks).length===0))throw Error(`No paths or webhooks defined.`);let a={...t,resolveTags:mh(i),resolveBadge:hh(i)},o=[],s=[],c=[],l={};return i?.paths&&Object.entries(i.paths).forEach(([e,t])=>{t&&typeof t==`object`&&NF(e,t,i,o,s,c,l,a,wh)}),i?.webhooks&&Object.entries(i.webhooks).forEach(([e,t])=>{t&&typeof t==`object`&&PF(e,t,i,o,s,c,l,a,wh)}),await Promise.all(c),{nav:o,decoratedNav:s,spec:i,pagesAcc:l,isUrl:r}}const nZe=async(e,t)=>{let n;if(typeof e==`string`){if(e.startsWith(`http:`)&&!t)throw Error(`Only HTTPS URLs are supported. HTTP URLs are only supported with the cli option --local-schema.`);try{e=new URL(e)}catch{let t=_t.join(process.cwd(),e.toString());try{let{document:e,errorMessage:r}=await xP(await _n.readFile(t,`utf-8`));if(!e)throw Error(`${t} - this document is not a valid AsyncAPI document - ${r}`);n=e}catch(e){throw Error(`Failed to read file ${t} - ${e}`)}}}let r=e instanceof URL;if(e instanceof URL){if(!Eh(e.toString(),t))throw Error(`Only HTTPS URLs are supported. HTTP URLs are only supported with the cli option --local-schema.`);n=await qXe(e)}return{document:n,isUrl:r}},rZe=({channel:e,nav:t,decoratedNav:n,writePromises:r,pagesAcc:i,opts:a,findNavGroup:o})=>{let s=a?.asyncApiFilePath?Dh(a.asyncApiFilePath):void 0,c=e.tags().all()[0]?.name()??`Websockets`,l=e.id(),u=e.title()??l,d=Sh(u)??``,f=e.description()??e.summary()??``,p=Sh(c)??``,m=Ct(a?.outDir??``,p,d),h=o(t,c),g=o(n,c),_=Ch(h,m),v=`${s?`${s} `:``}${l}`;h.push(_);let y={asyncapi:v,href:Ot(`/`,_),title:u===l?VNe(u):u,description:f,version:a?.version};g.push(y),i[_]=y;let b=a?.outDirBasePath?Ct(a.outDirBasePath,`${_}.mdx`):`${_}.mdx`;if(a?.writeFiles&&(!OF.default.pathExistsSync(b)||a.overwrite)){let e=iZe(v,a.version);r.push(a.writeFile?Promise.resolve(a.writeFile(b,e)):(0,OF.outputFile)(b,e))}},iZe=(e,t)=>`---
884
884
  asyncapi: ${e}${t?`\nversion: ${t}`:``}
885
- ---`;async function aZe(e,t){let n,r;if(typeof e==`string`||e instanceof URL){let{document:i,isUrl:a}=await nZe(e,t?.localSchema);i&&(n=i),r=a}else{let{valid:t,errorMessage:i,document:a}=await xP(e);if(!t&&i)throw Error(i);n=a,r=!1}if(!n)throw Error(`No document defined`);let i=n.channels();if(i.isEmpty())throw Error(`No channels defined`);let a=[],o=[],s=[],c={};return i.all().forEach(e=>{rZe({channel:e,nav:a,decoratedNav:o,writePromises:s,pagesAcc:c,opts:t,findNavGroup:wh})}),await Promise.all(s),{nav:a,decoratedNav:o,spec:n,pagesAcc:c,isUrl:r}}const FF=[`Accordion`,`AccordionGroup`,`Note`,`Warning`,`Info`,`Tip`,`Check`,`Card`,`CardGroup`,`CodeGroup`,`Frame`,`Icon`,`Steps`,`Step`,`Tabs`,`Tab`,`Tooltip`],IF=` `.repeat(13);`${IF}${IF}`,`${IF}${IF}`;const oZe={};function sZe(e){let t=this,n=e||oZe,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Ze(n)),a.push(E()),o.push(xe(n))}function cZe(){return function(e){return p(e,`heading`,function(e){p(e,`link`,function(e,t,n){e.url.startsWith(`#`)&&e.title==null&&n&&typeof t==`number`&&n.children.splice(t,1)})}),e}}const lZe=C(s());function LF(e){if(e==null)throw Error(`Value is nullable.`)}function uZe(e){lZe.parse(e)}const RF=(function(e,t,n,r,i){let a=zF(t);if(n!=null&&(typeof n!=`number`||n<0||n===1/0))throw Error("Expected positive finite `index`");if(r!=null&&(!r.type||!r.children))throw Error("Expected valid `parent`");if(n==null!=(r==null))throw Error("Expected both `index` and `parent`");return mZe(e)?a.call(i,e,n,r):!1}),zF=(function(e){if(e==null)return pZe;if(typeof e==`string`)return fZe(e);if(typeof e==`object`)return dZe(e);if(typeof e==`function`)return BF(e);throw Error("Expected function, string, or array as `test`")});function dZe(e){let t=[],n=-1;for(;++n<e.length;)t[n]=zF(e[n]);return BF(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function fZe(e){return BF(t);function t(t){return t.tagName===e}}function BF(e){return t;function t(t,n,r){return!!(mZe(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function pZe(e){return!!(e&&typeof e==`object`&&`type`in e&&e.type===`element`&&`tagName`in e&&typeof e.tagName==`string`)}function mZe(e){return typeof e==`object`&&!!e&&`type`in e&&`tagName`in e}const hZe=zF(function(e){return e.tagName===`audio`||e.tagName===`canvas`||e.tagName===`embed`||e.tagName===`iframe`||e.tagName===`img`||e.tagName===`math`||e.tagName===`object`||e.tagName===`picture`||e.tagName===`svg`||e.tagName===`video`}),gZe=/* @__PURE__ */ `address.article.aside.blockquote.body.br.caption.center.col.colgroup.dd.dialog.dir.div.dl.dt.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.legend.li.li.listing.main.menu.nav.ol.optgroup.option.p.plaintext.pre.section.summary.table.tbody.td.td.tfoot.th.th.thead.tr.ul.wbr.xmp`.split(`.`),_Ze=[`button`,`input`,`select`,`textarea`],vZe=[`area`,`base`,`basefont`,`dialog`,`datalist`,`head`,`link`,`meta`,`noembed`,`noframes`,`param`,`rp`,`script`,`source`,`style`,`template`,`track`,`title`],yZe={},VF=fe([`comment`,`doctype`]);function bZe(e,t){xZe(e,{collapse:MZe((t||yZe).newlines?AZe:jZe),whitespace:`normal`})}function xZe(e,t){if(`children`in e){let n={...t};return(e.type===`root`||DZe(e))&&(n.before=!0,n.after=!0),n.whitespace=NZe(e,t),CZe(e,n)}if(e.type===`text`){if(t.whitespace===`normal`)return SZe(e,t);t.whitespace===`nowrap`&&(e.value=t.collapse(e.value))}return{ignore:VF(e),stripAtStart:!1,remove:!1}}function SZe(e,t){let n=t.collapse(e.value),r={ignore:!1,stripAtStart:!1,remove:!1},i=0,a=n.length;return t.before&&kZe(n.charAt(0))&&i++,i!==a&&kZe(n.charAt(a-1))&&(t.after?a--:r.stripAtStart=!0),i===a?r.remove=!0:e.value=n.slice(i,a),r}function CZe(e,t){let n=t.before,r=t.after,i=e.children,a=i.length,o=-1;for(;++o<a;){let e=xZe(i[o],{...t,after:wZe(i,o,r),before:n});e.remove?(i.splice(o,1),o--,a--):e.ignore||(n=e.stripAtStart),EZe(i[o])&&(n=!1)}return{ignore:!1,stripAtStart:!!(n||r),remove:!1}}function wZe(e,t,n){for(;++t<e.length;){let n=e[t],r=TZe(n);if(r===void 0&&`children`in n&&!OZe(n)&&(r=wZe(n.children,-1)),typeof r==`boolean`)return r}return n}function TZe(e){if(e.type===`element`){if(EZe(e))return!1;if(DZe(e))return!0}else if(e.type===`text`){if(!pDe(e))return!1}else if(!VF(e))return!1}function EZe(e){return hZe(e)||RF(e,_Ze)}function DZe(e){return RF(e,gZe)}function OZe(e){return!!(e.type===`element`&&e.properties.hidden)||VF(e)||RF(e,vZe)}function kZe(e){return e===` `||e===`
885
+ ---`;async function aZe(e,t){let n,r;if(typeof e==`string`||e instanceof URL){let{document:i,isUrl:a}=await nZe(e,t?.localSchema);i&&(n=i),r=a}else{let{valid:t,errorMessage:i,document:a}=await xP(e);if(!t&&i)throw Error(i);n=a,r=!1}if(!n)throw Error(`No document defined`);let i=n.channels();if(i.isEmpty())throw Error(`No channels defined`);let a=[],o=[],s=[],c={};return i.all().forEach(e=>{rZe({channel:e,nav:a,decoratedNav:o,writePromises:s,pagesAcc:c,opts:t,findNavGroup:wh})}),await Promise.all(s),{nav:a,decoratedNav:o,spec:n,pagesAcc:c,isUrl:r}}const FF=[`Accordion`,`AccordionGroup`,`Note`,`Warning`,`Info`,`Tip`,`Check`,`Card`,`CardGroup`,`CodeGroup`,`Frame`,`Icon`,`Steps`,`Step`,`Tabs`,`Tab`,`Tooltip`],IF=` `.repeat(13);`${IF}${IF}`,`${IF}${IF}`;const oZe={};function sZe(e){let t=this,n=e||oZe,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Ze(n)),a.push(E()),o.push(xe(n))}function cZe(){return function(e){return p(e,`heading`,function(e){p(e,`link`,function(e,t,n){e.url.startsWith(`#`)&&e.title==null&&n&&typeof t==`number`&&n.children.splice(t,1)})}),e}}const lZe=C(s());function LF(e){if(e==null)throw Error(`Value is nullable.`)}function uZe(e){lZe.parse(e)}const RF=(function(e,t,n,r,i){let a=zF(t);if(n!=null&&(typeof n!=`number`||n<0||n===1/0))throw Error("Expected positive finite `index`");if(r!=null&&(!r.type||!r.children))throw Error("Expected valid `parent`");if(n==null!=(r==null))throw Error("Expected both `index` and `parent`");return mZe(e)?a.call(i,e,n,r):!1}),zF=(function(e){if(e==null)return pZe;if(typeof e==`string`)return fZe(e);if(typeof e==`object`)return dZe(e);if(typeof e==`function`)return BF(e);throw Error("Expected function, string, or array as `test`")});function dZe(e){let t=[],n=-1;for(;++n<e.length;)t[n]=zF(e[n]);return BF(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function fZe(e){return BF(t);function t(t){return t.tagName===e}}function BF(e){return t;function t(t,n,r){return!!(mZe(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function pZe(e){return!!(e&&typeof e==`object`&&`type`in e&&e.type===`element`&&`tagName`in e&&typeof e.tagName==`string`)}function mZe(e){return typeof e==`object`&&!!e&&`type`in e&&`tagName`in e}const hZe=zF(function(e){return e.tagName===`audio`||e.tagName===`canvas`||e.tagName===`embed`||e.tagName===`iframe`||e.tagName===`img`||e.tagName===`math`||e.tagName===`object`||e.tagName===`picture`||e.tagName===`svg`||e.tagName===`video`}),gZe=/* @__PURE__ */ `address.article.aside.blockquote.body.br.caption.center.col.colgroup.dd.dialog.dir.div.dl.dt.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.legend.li.li.listing.main.menu.nav.ol.optgroup.option.p.plaintext.pre.section.summary.table.tbody.td.td.tfoot.th.th.thead.tr.ul.wbr.xmp`.split(`.`),_Ze=[`button`,`input`,`select`,`textarea`],vZe=[`area`,`base`,`basefont`,`dialog`,`datalist`,`head`,`link`,`meta`,`noembed`,`noframes`,`param`,`rp`,`script`,`source`,`style`,`template`,`track`,`title`],yZe={},VF=fe([`comment`,`doctype`]);function bZe(e,t){xZe(e,{collapse:MZe((t||yZe).newlines?AZe:jZe),whitespace:`normal`})}function xZe(e,t){if(`children`in e){let n={...t};return(e.type===`root`||DZe(e))&&(n.before=!0,n.after=!0),n.whitespace=NZe(e,t),CZe(e,n)}if(e.type===`text`){if(t.whitespace===`normal`)return SZe(e,t);t.whitespace===`nowrap`&&(e.value=t.collapse(e.value))}return{ignore:VF(e),stripAtStart:!1,remove:!1}}function SZe(e,t){let n=t.collapse(e.value),r={ignore:!1,stripAtStart:!1,remove:!1},i=0,a=n.length;return t.before&&kZe(n.charAt(0))&&i++,i!==a&&kZe(n.charAt(a-1))&&(t.after?a--:r.stripAtStart=!0),i===a?r.remove=!0:e.value=n.slice(i,a),r}function CZe(e,t){let n=t.before,r=t.after,i=e.children,a=i.length,o=-1;for(;++o<a;){let e=xZe(i[o],{...t,after:wZe(i,o,r),before:n});e.remove?(i.splice(o,1),o--,a--):e.ignore||(n=e.stripAtStart),EZe(i[o])&&(n=!1)}return{ignore:!1,stripAtStart:!!(n||r),remove:!1}}function wZe(e,t,n){for(;++t<e.length;){let n=e[t],r=TZe(n);if(r===void 0&&`children`in n&&!OZe(n)&&(r=wZe(n.children,-1)),typeof r==`boolean`)return r}return n}function TZe(e){if(e.type===`element`){if(EZe(e))return!1;if(DZe(e))return!0}else if(e.type===`text`){if(!_De(e))return!1}else if(!VF(e))return!1}function EZe(e){return hZe(e)||RF(e,_Ze)}function DZe(e){return RF(e,gZe)}function OZe(e){return!!(e.type===`element`&&e.properties.hidden)||VF(e)||RF(e,vZe)}function kZe(e){return e===` `||e===`
886
886
  `}function AZe(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:` `}function jZe(){return` `}function MZe(e){return t;function t(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}function NZe(e,t){if(`tagName`in e&&e.properties)switch(e.tagName){case`listing`:case`plaintext`:case`script`:case`style`:case`xmp`:return`pre`;case`nobr`:return`nowrap`;case`pre`:return e.properties.wrap?`pre-wrap`:`pre`;case`td`:case`th`:return e.properties.noWrap?`nowrap`:t.whitespace;case`textarea`:return`pre-wrap`}return t.whitespace}function PZe(e){return function(t){bZe(t,e)}}function FZe(e,t){let n=t.properties||{},r=e.all(t),i={type:`link`,url:e.resolve(String(n.href||``)||null),title:n.title?String(n.title):null,children:r};return e.patch(t,i),i}function IZe(e,t){e.baseFound||=(e.frozenBaseUrl=String(t.properties&&t.properties.href||``)||void 0,!0)}function LZe(e,t){let n={type:`blockquote`,children:e.toFlow(e.all(t))};return e.patch(t,n),n}function RZe(e,t){let n={type:`break`};return e.patch(t,n),n}const zZe=(function(e,t,n){let r=fe(n);if(!e||!e.type||!e.children)throw Error(`Expected parent node`);if(typeof t==`number`){if(t<0||t===1/0)throw Error(`Expected positive finite number as index`)}else if(t=e.children.indexOf(t),t<0)throw Error(`Expected child node or index`);for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]}),BZe=/\n/g,VZe=/[\t ]+/g,HF=zF(`br`),HZe=zF(eQe),UZe=zF(`p`),WZe=zF(`tr`),GZe=zF([`datalist`,`head`,`noembed`,`noframes`,`noscript`,`rp`,`script`,`style`,`template`,`title`,$Ze,tQe]),KZe=zF(/* @__PURE__ */ `address.article.aside.blockquote.body.caption.center.dd.dialog.dir.dl.dt.div.figure.figcaption.footer.form,.h1.h2.h3.h4.h5.h6.header.hgroup.hr.html.legend.listing.main.menu.nav.ol.p.plaintext.pre.section.ul.xmp`.split(`.`));function UF(e,t={}){let n=`children`in e?e.children:[],r=KZe(e),i=QZe(e,{whitespace:t.whitespace||`normal`,breakBefore:!1,breakAfter:!1}),a=[];(e.type===`text`||e.type===`comment`)&&a.push(...YZe(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<n.length;)a.push(...qZe(n[o],e,{whitespace:i,breakBefore:o?void 0:r,breakAfter:o<n.length-1?HF(n[o+1]):r}));let s=[],c;for(o=-1;++o<a.length;){let e=a[o];typeof e==`number`?c!==void 0&&e>c&&(c=e):e&&(c!==void 0&&c>-1&&s.push(`
887
887
  `.repeat(c)||` `),c=-1,s.push(e))}return s.join(``)}function qZe(e,t,n){return e.type===`element`?JZe(e,t,n):e.type===`text`?n.whitespace===`normal`?YZe(e,n):XZe(e):[]}function JZe(e,t,n){let r=QZe(e,n),i=e.children||[],a=-1,o=[];if(GZe(e))return o;let s,c;for(HF(e)||WZe(e)&&zZe(t,e,WZe)?c=`
888
- `:UZe(e)?(s=2,c=2):KZe(e)&&(s=1,c=1);++a<i.length;)o=o.concat(qZe(i[a],e,{whitespace:r,breakBefore:a?void 0:s,breakAfter:a<i.length-1?HF(i[a+1]):c}));return HZe(e)&&zZe(t,e,HZe)&&o.push(` `),s&&o.unshift(s),c&&o.push(c),o}function YZe(e,t){let n=String(e.value),r=[],i=[],a=0;for(;a<=n.length;){BZe.lastIndex=a;let e=BZe.exec(n),i=e&&`index`in e?e.index:n.length;r.push(ZZe(n.slice(a,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,``),a!==0||t.breakBefore,i!==n.length||t.breakAfter)),a=i+1}let o=-1,s;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),s=void 0):r[o]?(typeof s==`number`&&i.push(s),i.push(r[o]),s=0):(o===0||o===r.length-1)&&i.push(0);return i}function XZe(e){return[String(e.value)]}function ZZe(e,t,n){let r=[],i=0,a;for(;i<e.length;){VZe.lastIndex=i;let n=VZe.exec(e);a=n?n.index:e.length,!i&&!a&&n&&!t&&r.push(``),i!==a&&r.push(e.slice(i,a)),i=n?a+n[0].length:a}return i!==a&&!n&&r.push(``),r.join(` `)}function QZe(e,t){if(e.type===`element`){let n=e.properties||{};switch(e.tagName){case`listing`:case`plaintext`:case`xmp`:return`pre`;case`nobr`:return`nowrap`;case`pre`:return n.wrap?`pre-wrap`:`pre`;case`td`:case`th`:return n.noWrap?`nowrap`:t.whitespace;case`textarea`:return`pre-wrap`}}return t.whitespace}function $Ze(e){return!!(e.properties||{}).hidden}function eQe(e){return e.tagName===`td`||e.tagName===`th`}function tQe(e){return e.tagName===`dialog`&&!(e.properties||{}).open}function nQe(e){let t=String(e),n=t.length;for(;n>0;){let e=t.codePointAt(n-1);if(e!==void 0&&(e===10||e===13))n--;else break}return t.slice(0,n)}function WF(e,t){let n=t.children,r=-1,i,a;if(t.tagName===`pre`)for(;++r<n.length;){let e=n[r];if(e.type===`element`&&e.tagName===`code`&&e.properties&&e.properties.className&&Array.isArray(e.properties.className)){i=e.properties.className;break}}if(i){for(r=-1;++r<i.length;)if(String(i[r]).slice(0,9)===`language-`){a=String(i[r]).slice(9);break}}let o={type:`code`,lang:a||null,meta:null,value:nQe(UF(t))};return e.patch(t,o),o}function rQe(e,t){let n={type:`html`,value:`<!--`+t.value+`-->`};return e.patch(t,n),n}function GF(e,t){let n={type:`delete`,children:e.all(t)};return e.patch(t,n),n}function KF(e){let t=-1;if(e.length>1){for(;++t<e.length;)if(e[t].spread)return!0}return!1}function iQe(e,t){let n=[],r=[],i=-1;for(;++i<t.children.length;){let e=t.children[i];e.type===`element`&&e.tagName===`div`?n.push(...e.children):n.push(e)}let a={definitions:[],titles:[]};for(i=-1;++i<n.length;){let e=n[i];if(e.type===`element`&&e.tagName===`dt`){let t=n[i-1];t&&t.type===`element`&&t.tagName===`dd`&&(r.push(a),a={definitions:[],titles:[]}),a.titles.push(e)}else a.definitions.push(e)}r.push(a),i=-1;let o=[];for(;++i<r.length;){let t=[...aQe(e,r[i].titles),...aQe(e,r[i].definitions)];t.length>0&&o.push({type:`listItem`,spread:t.length>1,checked:null,children:t})}if(o.length>0){let n={type:`list`,ordered:!1,start:null,spread:KF(o),children:o};return e.patch(t,n),n}}function aQe(e,t){let n=e.all({type:`root`,children:t}),r=e.toSpecificContent(n,oQe);return r.length===0?[]:r.length===1?r[0].children:[{type:`list`,ordered:!1,start:null,spread:KF(r),children:r}]}function oQe(){return{type:`listItem`,spread:!1,checked:null,children:[]}}function qF(e,t){let n={type:`emphasis`,children:e.all(t)};return e.patch(t,n),n}function JF(e,t){let n={type:`heading`,depth:Number(t.tagName.charAt(1))||1,children:e.all(t)};return e.patch(t,n),n}function sQe(e,t){let n={type:`thematicBreak`};return e.patch(t,n),n}function cQe(e,t){let n=t.properties||{},r=String(n.src||``),i=String(n.title||``);if(r&&i){let n={type:`link`,title:null,url:e.resolve(r),children:[{type:`text`,value:i}]};return e.patch(t,n),n}}function lQe(e,t){let n=t.properties||{},r={type:`image`,url:e.resolve(String(n.src||``)||null),title:n.title?String(n.title):null,alt:n.alt?String(n.alt):``};return e.patch(t,r),r}function YF(e,t){let n={type:`inlineCode`,value:UF(t)};return e.patch(t,n),n}function uQe(e,t){let n=[],r=[],i=t||e.properties||{},a=dQe(e),o=Math.min(Number.parseInt(String(i.size),10),0)||(i.multiple?4:1),s=-1;for(;++s<a.length;){let e=a[s];e&&e.properties&&e.properties.selected&&n.push(e)}let c=n.length>0?n:a,l=c.length>o?o:c.length;for(s=-1;++s<l;){let e=c[s],t=e.properties||{},n=UF(e),i=n||String(t.label||``),a=String(t.value||``)||n;r.push([a,i===a?void 0:i])}return r}function dQe(e){let t=[],n=-1;for(;++n<e.children.length;){let r=e.children[n];`children`in r&&Array.isArray(r.children)&&t.push(...dQe(r)),r.type===`element`&&r.tagName===`option`&&(!r.properties||!r.properties.disabled)&&t.push(r)}return t}function fQe(e,t){let n=t.properties||{},r=String(n.value||n.placeholder||``);if(n.disabled||n.type===`hidden`||n.type===`file`)return;if(n.type===`checkbox`||n.type===`radio`){let r={type:`text`,value:n.checked?e.options.checked||`[x]`:e.options.unchecked||`[ ]`};return e.patch(t,r),r}if(n.type===`image`){let i=n.alt||r;if(i){let r={type:`image`,url:e.resolve(String(n.src||``)||null),title:String(n.title||``)||null,alt:String(i)};return e.patch(t,r),r}return}let i=[];if(r)i=[[r,void 0]];else if(n.type!==`button`&&n.type!==`file`&&n.type!==`password`&&n.type!==`reset`&&n.type!==`submit`&&n.list){let t=String(n.list),r=e.elementById.get(t);r&&r.tagName===`datalist`&&(i=uQe(r,n))}if(i.length===0)return;if(n.type===`password`&&(i[0]=[`•`.repeat(i[0][0].length),void 0]),n.type===`email`||n.type===`url`){let t=[],r=-1;for(;++r<i.length;){let a=e.resolve(i[r][0]),o={type:`link`,title:null,url:n.type===`email`?`mailto:`+a:a,children:[{type:`text`,value:i[r][1]||a}]};t.push(o),r!==i.length-1&&t.push({type:`text`,value:`, `})}return t}let a=[],o=-1;for(;++o<i.length;)a.push(i[o][1]?i[o][1]+` (`+i[o][0]+`)`:i[o][0]);let s={type:`text`,value:a.join(`, `)};return e.patch(t,s),s}const pQe={}.hasOwnProperty;function mQe(e,t){let n=e.type===`element`&&pQe.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const hQe=/* @__PURE__ */ new Set([`pingback`,`prefetch`,`stylesheet`]);function gQe(e){if(e.type!==`element`||e.tagName!==`link`)return!1;if(e.properties.itemProp)return!0;let t=e.properties.rel,n=-1;if(!Array.isArray(t)||t.length===0)return!1;for(;++n<t.length;)if(!hQe.has(String(t[n])))return!1;return!0}const _Qe=zF(/* @__PURE__ */ `a.abbr.area.b.bdi.bdo.br.button.cite.code.data.datalist.del.dfn.em.i.input.ins.kbd.keygen.label.map.mark.meter.noscript.output.progress.q.ruby.s.samp.script.select.small.span.strong.sub.sup.template.textarea.time.u.var.wbr`.split(`.`)),vQe=zF(`meta`);function yQe(e){return!!(e.type===`text`||_Qe(e)||hZe(e)||gQe(e)||vQe(e)&&mQe(e,`itemProp`))}function XF(e,t){let{rest:n,checkbox:r}=xQe(t),i=r?!!r.properties.checked:null,a={type:`listItem`,spread:bQe(n),checked:i,children:e.toFlow(e.all(n))};return e.patch(t,a),a}function bQe(e){let t=-1,n=!1;for(;++t<e.children.length;){let r=e.children[t];if(r.type===`element`){if(yQe(r))continue;if(r.tagName===`p`||n||bQe(r))return!0;n=!0}}return!1}function xQe(e){let t=e.children[0];if(t&&t.type===`element`&&t.tagName===`input`&&t.properties&&(t.properties.type===`checkbox`||t.properties.type===`radio`))return{checkbox:t,rest:{...e,children:e.children.slice(1)}};if(t&&t.type===`element`&&t.tagName===`p`){let{checkbox:n,rest:r}=xQe(t);if(n)return{checkbox:n,rest:{...e,children:[r,...e.children.slice(1)]}}}return{checkbox:void 0,rest:e}}function ZF(e,t){let n=t.tagName===`ol`,r=e.toSpecificContent(e.all(t),SQe),i=null;n&&(i=t.properties&&t.properties.start?Number.parseInt(String(t.properties.start),10):1);let a={type:`list`,ordered:n,start:i,spread:KF(r),children:r};return e.patch(t,a),a}function SQe(){return{type:`listItem`,spread:!1,checked:null,children:[]}}function QF(e){let t=-1;for(;++t<e.length;){let n=e[t];if(!DQe(n)||`children`in n&&QF(n.children))return!0}return!1}function CQe(e){return TQe(e,t,function(e){return e});function t(e){return e.every(function(e){return e.type===`text`&&pDe(e.value)})?[]:[{type:`paragraph`,children:e}]}}function wQe(e){return TQe(e.children,t,n);function t(t){let n=$F(e);return n.children=t,[n]}function n(t){if(`children`in t&&`children`in e){let n=$F(e),r=$F(t);return n.children=t.children,r.children.push(n),r}return{...t}}}function TQe(e,t,n){let r=EQe(e),i=[],a=[],o=-1;for(;++o<r.length;){let e=r[o];DQe(e)?a.push(e):(a.length>0&&(i.push(...t(a)),a=[]),i.push(n(e)))}return a.length>0&&(i.push(...t(a)),a=[]),i}function EQe(e){let t=[],n=-1;for(;++n<e.length;){let r=e[n];(r.type===`delete`||r.type===`link`)&&QF(r.children)?t.push(...wQe(r)):t.push(r)}return t}function DQe(e){let t=e.data&&e.data.hName;return t?yQe({type:`element`,tagName:t,properties:{},children:[]}):Ne(e)}function $F(e){return nMe({...e,children:[]})}function OQe(e,t){let n=t.properties||{},r=t.tagName===`video`?String(n.poster||``):``,i=String(n.src||``),a=-1,o=!1,s=e.all(t);if(p({type:`root`,children:s},function(e){if(e.type===`link`)return o=!0,!1}),o||QF(s))return s;for(;!i&&++a<t.children.length;){let e=t.children[a];e.type===`element`&&e.tagName===`source`&&e.properties&&(i=String(e.properties.src||``))}if(r){let n={type:`image`,title:null,url:e.resolve(r),alt:ut(s)};e.patch(t,n),s=[n]}let c=s,l={type:`link`,title:n.title?String(n.title):null,url:e.resolve(i),children:c};return e.patch(t,l),l}function kQe(e,t){let n=e.all(t);if(n.length>0){let r={type:`paragraph`,children:n};return e.patch(t,r),r}}const AQe=[`"`];function jQe(e,t){let n=e.options.quotes||AQe;e.qNesting++;let r=e.all(t);e.qNesting--;let i=n[e.qNesting%n.length],a=r[0],o=r[r.length-1],s=i.charAt(0),c=i.length>1?i.charAt(1):i;return a&&a.type===`text`?a.value=s+a.value:r.unshift({type:`text`,value:s}),o&&o.type===`text`?o.value+=c:r.push({type:`text`,value:c}),r}function MQe(e,t){let n=e.all(t);(e.options.document||QF(n))&&(n=CQe(n));let r={type:`root`,children:n};return e.patch(t,r),r}function NQe(e,t){let n=uQe(t),r=-1,i=[];for(;++r<n.length;){let e=n[r];i.push(e[1]?e[1]+` (`+e[0]+`)`:e[0])}if(i.length>0){let n={type:`text`,value:i.join(`, `)};return e.patch(t,n),n}}function PQe(e,t){let n={type:`strong`,children:e.all(t)};return e.patch(t,n),n}function FQe(e,t){let n={type:`tableCell`,children:e.all(t)};if(e.patch(t,n),t.properties){let e=t.properties.rowSpan,r=t.properties.colSpan;if(e||r){let t=n.data||={};e&&(t.hastUtilToMdastTemporaryRowSpan=e),r&&(t.hastUtilToMdastTemporaryColSpan=r)}}return n}function IQe(e,t){let n={type:`tableRow`,children:e.toSpecificContent(e.all(t),LQe)};return e.patch(t,n),n}function LQe(){return{type:`tableCell`,children:[]}}function RQe(e,t){if(e.inTable){let n={type:`text`,value:UF(t)};return e.patch(t,n),n}e.inTable=!0;let{align:n,headless:r}=zQe(t),i=e.toSpecificContent(e.all(t),VQe);r&&i.unshift(VQe());let a=-1;for(;++a<i.length;){let t=i[a];t.children=e.toSpecificContent(t.children,BQe)}let o=1;for(a=-1;++a<i.length;){let e=i[a].children,t=-1;for(;++t<e.length;){let n=e[t];if(n.data){let e=n.data,r=Number.parseInt(String(e.hastUtilToMdastTemporaryColSpan),10)||1,o=Number.parseInt(String(e.hastUtilToMdastTemporaryRowSpan),10)||1;if(r>1||o>1){let e=a-1;for(;++e<a+o;){let n=t-1;for(;++n<t+r&&i[e];){let r=[];(e!==a||n!==t)&&r.push({type:`tableCell`,children:[]}),i[e].children.splice(n,0,...r)}}}`hastUtilToMdastTemporaryColSpan`in n.data&&delete n.data.hastUtilToMdastTemporaryColSpan,`hastUtilToMdastTemporaryRowSpan`in n.data&&delete n.data.hastUtilToMdastTemporaryRowSpan,Object.keys(n.data).length===0&&delete n.data}}e.length>o&&(o=e.length)}for(a=-1;++a<i.length;){let e=i[a].children,t=e.length-1;for(;++t<o;)e.push({type:`tableCell`,children:[]})}let s=n.length-1;for(;++s<o;)n.push(null);e.inTable=!1;let c={type:`table`,align:n,children:i};return e.patch(t,c),c}function zQe(e){let t={align:[null],headless:!0},n=0,r=0;return p(e,function(i){if(i.type===`element`){if(i.tagName===`table`&&e!==i)return ct;if((i.tagName===`th`||i.tagName===`td`)&&i.properties){if(!t.align[r]){let e=String(i.properties.align||``)||null;(e===`center`||e===`left`||e===`right`||e===null)&&(t.align[r]=e)}t.headless&&n<2&&i.tagName===`th`&&(t.headless=!1),r++}else i.tagName===`thead`?t.headless=!1:i.tagName===`tr`&&(n++,r=0)}}),t}function BQe(){return{type:`tableCell`,children:[]}}function VQe(){return{type:`tableRow`,children:[]}}function HQe(e,t){let n={type:`text`,value:t.value};return e.patch(t,n),n}function UQe(e,t){let n={type:`text`,value:UF(t)};return e.patch(t,n),n}function WQe(e,t){let n={type:`text`,value:`​`};return e.patch(t,n),n}const GQe={comment:rQe,doctype:rI,root:MQe,text:HQe},eI={applet:rI,area:rI,basefont:rI,bgsound:rI,caption:rI,col:rI,colgroup:rI,command:rI,content:rI,datalist:rI,dialog:rI,element:rI,embed:rI,frame:rI,frameset:rI,isindex:rI,keygen:rI,link:rI,math:rI,menu:rI,menuitem:rI,meta:rI,nextid:rI,noembed:rI,noframes:rI,optgroup:rI,option:rI,param:rI,script:rI,shadow:rI,source:rI,spacer:rI,style:rI,svg:rI,template:rI,title:rI,track:rI,abbr:tI,acronym:tI,bdi:tI,bdo:tI,big:tI,blink:tI,button:tI,canvas:tI,cite:tI,data:tI,details:tI,dfn:tI,font:tI,ins:tI,label:tI,map:tI,marquee:tI,meter:tI,nobr:tI,noscript:tI,object:tI,output:tI,progress:tI,rb:tI,rbc:tI,rp:tI,rt:tI,rtc:tI,ruby:tI,slot:tI,small:tI,span:tI,sup:tI,sub:tI,tbody:tI,tfoot:tI,thead:tI,time:tI,address:nI,article:nI,aside:nI,body:nI,center:nI,div:nI,fieldset:nI,figcaption:nI,figure:nI,form:nI,footer:nI,header:nI,hgroup:nI,html:nI,legend:nI,main:nI,multicol:nI,nav:nI,picture:nI,section:nI,a:FZe,audio:OQe,b:PQe,base:IZe,blockquote:LZe,br:RZe,code:YF,dir:ZF,dl:iQe,dt:XF,dd:XF,del:GF,em:qF,h1:JF,h2:JF,h3:JF,h4:JF,h5:JF,h6:JF,hr:sQe,i:qF,iframe:cQe,img:lQe,image:lQe,input:fQe,kbd:YF,li:XF,listing:WF,mark:qF,ol:ZF,p:kQe,plaintext:WF,pre:WF,q:jQe,s:GF,samp:YF,select:NQe,strike:GF,strong:PQe,summary:kQe,table:RQe,td:FQe,textarea:UQe,th:FQe,tr:IQe,tt:YF,u:qF,ul:ZF,var:YF,video:OQe,wbr:WQe,xmp:WF};function tI(e,t){return e.all(t)}function nI(e,t){return e.toFlow(e.all(t))}function rI(){}const KQe={}.hasOwnProperty;function qQe(e){return{all:JQe,baseFound:!1,elementById:/* @__PURE__ */ new Map,frozenBaseUrl:void 0,handlers:{...eI,...e.handlers},inTable:!1,nodeHandlers:{...GQe,...e.nodeHandlers},one:YQe,options:e,patch:XQe,qNesting:0,resolve:ZQe,toFlow:QQe,toSpecificContent:$Qe}}function JQe(e){let t=e.children||[],n=[],r=-1;for(;++r<t.length;){let i=t[r],a=this.one(i,e);Array.isArray(a)?n.push(...a):a&&n.push(a)}let i=0,a=n.length;for(;i<a&&n[i].type===`break`;)i++;for(;a>i&&n[a-1].type===`break`;)a--;return i===0&&a===n.length?n:n.slice(i,a)}function YQe(e,t){if(e.type===`element`){if(e.properties&&e.properties.dataMdast===`ignore`)return;if(KQe.call(this.handlers,e.tagName))return this.handlers[e.tagName](this,e,t)||void 0}else if(KQe.call(this.nodeHandlers,e.type))return this.nodeHandlers[e.type](this,e,t)||void 0;if(`value`in e&&typeof e.value==`string`){let t={type:`text`,value:e.value};return this.patch(e,t),t}if(`children`in e)return this.all(e)}function XQe(e,t){e.position&&(t.position=Jje(e))}function ZQe(e){let t=this.frozenBaseUrl;return e==null?``:t?String(new URL(e,t)):e}function QQe(e){return CQe(e)}function $Qe(e,t){let n=t(),r=[],i=[],a=-1;for(;++a<e.length;){let t=e[a];if(o(t))i.length>0&&(t.children.unshift(...i),i=[]),r.push(t);else{let e=t;i.push(e)}}if(i.length>0){let e=r[r.length-1];e||(e=t(),r.push(e)),e.children.push(...i),i=[]}return r;function o(e){return e.type===n.type}}const e$e={};function t$e(e,t){let n=nMe(e),r=t||e$e,i=PZe({newlines:r.newlines===!0}),a=qQe(r),o;i(n),p(n,function(e){if(e&&e.type===`element`&&e.properties){let t=String(e.properties.id||``)||void 0;t&&!a.elementById.has(t)&&a.elementById.set(t,e)}});let s=a.one(n,void 0);return o=s?Array.isArray(s)?{type:`root`,children:s}:s:{type:`root`,children:[]},p(o,function(e,t,n){if(e.type===`text`&&t!==void 0&&n){let r=n.children[t-1];if(r&&r.type===e.type)return r.value+=e.value,n.children.splice(t,1),r.position&&e.position&&(r.position.end=e.position.end),t-1;if(e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,`$1`),n&&(n.type===`heading`||n.type===`paragraph`||n.type===`root`)&&(t||(e.value=e.value.replace(/^[\t ]+/,``)),t===n.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,``))),!e.value)return n.children.splice(t,1),t}}),o}function iI(e,t){return{type:`mdxJsxFlowElement`,name:t.tagName,attributes:Object.entries(t.properties??{}).map(([e,t])=>({type:`mdxJsxAttribute`,name:e,value:t})),children:t.children}}function n$e(){let e={...eI};return FF.forEach(t=>{e[t]=iI}),e.mdxJsxFlowElement=iI,function(t){return t$e(t,{handlers:e})}}function aI(e,t={jsxImages:!1}){let n={type:`root`,children:e},r={...eI};t.jsxImages&&(r.img=function(e,t){return Object.keys(t.properties).forEach(e=>{e!==`src`&&delete t.properties[e]}),iI(e,t)}),FF.forEach(e=>{r[e]=function(e,t){return iI(e,t)}});let i=Je().use(function(){return function(e){return t$e(e,{handlers:r})}}).runSync(n);return i.children.forEach((e,t)=>{e.type===`html`&&i.children.splice(t,1)}),i.children}function r$e(e,t,n){if(e.tagName!==`div`||!Array.isArray(e.properties.className)||!e.properties.className.join(` `).startsWith(`px-4 py-4 transition-colors rounded-md straight-corners:rounded-none bg-gradient-to-b`))return;uZe(e.properties.className);let r=e.properties.className.find(e=>/^from-[a-z]+\/[0-9]$/.test(e))?.replace(/^from-|\/[0-9]$/g,``)||null,i=`Note`;switch(r){case`periwinkle`:i=`Info`;break;case`teal`:i=`Check`;break;case`yellow`:case`pomegranate`:i=`Warning`;break;default:i=`Info`}return{type:`element`,tagName:i,properties:{},children:aI(e.children)}}function i$e(e,t,n){if(e.tagName!==`blockquote`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`callout`))return;e.children.shift(),uZe(e.properties.className);let r=e.properties.className.filter(e=>e.includes(`callout_`)),i=r[0]?r[0]:`callout_info`,a=`Note`;switch(i){case`callout_default`:case`callout_info`:a=`Info`;break;case`callout_warn`:case`callout_error`:a=`Warning`;break;case`callout_okay`:a=`Check`;break;default:a=`Info`}return{type:`element`,tagName:a,properties:{},children:aI(e.children)}}function a$e(e,t,n){if(e.tagName!==`div`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`admonition`)&&!e.properties.className.includes(`theme-admonition`))return;e.children.shift();let r=e.properties.className.filter(e=>typeof e==`string`&&e.includes(`alert--`)),i=r.length?r[0]:`alert--info`,a=`Note`;switch(i){case`alert--info`:a=`Info`;break;case`alert--secondary`:a=`Note`;break;case`alert--danger`:case`alert--warning`:a=`Warning`;break;case`alert--success`:a=`Check`;break;default:a=`Info`}return{type:`element`,tagName:a,properties:{},children:aI(e.children)}}function o$e(e){if(!e)return!1;let t=0,n=0;return p(e,`element`,function(e){if(e.properties.role!==`tabpanel`)return!0;t++,e.children[0]&&e.children[0].type===`element`&&e.children[0].children.length===1&&e.children[0].children[0]&&e.children[0].children[0].type===`element`&&e.children[0].children[0].children.length>1&&e.children[0].children[0].children.find(e=>e.type===`element`&&(e.tagName===`pre`||e.tagName===`code`))!==void 0&&n++}),n===t&&t>0}function s$e(e,t,n){if(e.tagName===`div`&&Array.isArray(e.properties.className)&&e.properties.className.includes(`group/codeblock`)&&e.children.length===2&&e.children[0]&&e.children[1]&&e.children[1].type===`element`&&(e.children[1].tagName===`pre`||e.children[1].tagName===`code`)){let t=``;if(p(e.children[0],`text`,function(e){return t=e.value,!1}),!t)return;let n=aI([e.children[1]]);return{type:`element`,tagName:`CodeGroup`,properties:{},children:[{type:`code`,lang:`bash`,meta:t,value:n[0].value}]}}if(e.tagName!==`div`||e.properties.role!==`tablist`||!o$e(n))return;LF(n);let r=[];p(e,`element`,function(e){if(e.tagName!==`button`)return!0;p(e,`text`,function(e){return r.push(e.value),!1})}),n.children.shift();let i=[];p(n,`element`,function(e){e.tagName===`div`&&`id`in e.properties&&e.properties.role===`tabpanel`&&i.push(e.properties.id)});let a=aI(n.children),o=[];a.forEach((e,t)=>{let n=i[t]||`bash`,a=r[t]||n;o.push({type:`code`,lang:n,meta:a,value:e.value})});let s={type:`element`,tagName:`CodeGroup`,properties:{},children:o};return n.children.length=0,s}function c$e(e,t,n){if(e.tagName!==`div`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`CodeTabs`))return;let r;return p(e,`element`,function(e){if(e.tagName!==`div`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`CodeTabs-inner`))return!0;let t=[],n=[];p(e,`element`,function(e){if(e.tagName!==`code`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`rdmd-code`))return!0;t.push(e.properties.dataLang??``),n.push(e.properties.name??``)});let i=aI(e.children),a=[];return i.forEach((e,r)=>{let i=t[r]||`bash`,o=n[r]||i;a.push({type:`code`,lang:i,meta:o,value:e.value})}),r={type:`element`,tagName:`CodeGroup`,properties:{},children:a},!1}),r}function l$e(e,t,n){if(e.tagName!==`div`&&e.tagName!==`ul`||e.properties.role!==`tablist`||!o$e(e))return;LF(n);let r=[];p(e,`element`,function(e){if(e.tagName!==`li`)return!0;p(e,`text`,function(e){return r.push(e.value),!1})}),n.children.shift();let i=[];p(n,`element`,function(e){if(e.tagName===`div`&&Array.isArray(e.properties.className)&&e.properties.className.find(e=>e.toString().includes(`language-`))){let t=e.properties.className.find(e=>e.toString().includes(`language-`));i.push(t?.toString().replace(`language-`,``)??``)}});let a=aI(n.children),o=[];a.forEach((e,t)=>{let n=i[t]||`bash`,a=r[t]||n;o.push({type:`code`,lang:n,meta:a,value:e.value})});let s={type:`element`,tagName:`CodeGroup`,properties:{},children:o};return n.children.length=0,s}function u$e(e,t,n){if(e.tagName!==`div`||!e.properties.role||e.properties.role!==`tablist`)return;let r=[];p(e,`element`,function(e){if(e.tagName!==`button`)return!0;p(e,`text`,function(e){return r.push(e.value),!1})}),LF(n),n.children.shift();let i=aI(n.children),a=[];for(let e=0;e<i.length;e++){let t=i[e];t&&a.push({type:`element`,tagName:`Tab`,properties:{title:r[e]},children:[t]})}return{type:`element`,tagName:`Tabs`,properties:{},children:a}}function d$e(e,t,n){if(e.tagName!==`div`&&e.tagName!==`a`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`tabbed-component`)&&!e.properties.className.includes(`tabs`)&&!e.properties.className.includes(`Tabs`)||!e.children[0]||!e.children[1])return;let r=[],i=[];if(e.children.length!==2)p(e,`element`,function(e){if(e.tagName!==`label`&&e.tagName!==`button`)return!0;let t=``;p(e,`text`,function(e){t+=e.value}),r.push(t.trim().replace(`
889
- `,``))}),i.push(...e.children.filter(e=>!!(e.type===`element`&&Array.isArray(e.properties.className)&&(e.properties.className.includes(`tab`)||e.properties.className.includes(`Tab`)||e.properties.className.includes(`tabbed-content`)||e.properties.className.includes(`tab-content`)))));else{let t=e.children[0];p(t,`element`,function(e){p(e,`text`,function(e){return r.push(e.value),!1})}),e.children.shift(),e.children[0].type===`element`&&i.push(...e.children[0].children)}let a=[];return i.forEach((e,t)=>{if(!r[t])return;let n=aI([e]);a.push({type:`element`,tagName:`Tab`,properties:{title:r[t]},children:n})}),{type:`element`,tagName:`Tabs`,properties:{},children:a}}function f$e(e,t,n){if(e.tagName!==`div`&&e.tagName!==`ul`||e.properties.role!==`tablist`)return;let r=[];p(e,`element`,function(e){if(e.tagName!==`li`)return!0;p(e,`text`,function(e){return r.push(e.value),!1})}),LF(n),n.children.shift();let i=aI(n.children),a=[];for(let e=0;e<i.length;e++){let t=i[e];t&&a.push({type:`element`,tagName:`Tab`,properties:{title:r[e]},children:[t]})}return{type:`element`,tagName:`Tabs`,properties:{},children:a}}function oI(e,t,n){return function(r){return p(r,`element`,function(r,i,a){if(r.tagName===`code`||r.tagName===`pre`)return ct;let o;switch(AF.vendor){case`gitbook`:o=e(r,i,a);break;case`readme`:o=t(r,i,a);break;case`docusaurus`:o=n(r,i,a);break;default:return WXe(`Invalid documentation vendor requested: `+AF.vendor),ct}return o&&a&&typeof i==`number`?(a.children[i]=o,ct):!0})}}function p$e(){return oI(s$e,c$e,l$e)}function m$e(){return oI(u$e,d$e,f$e)}function h$e(){return oI(r$e,i$e,a$e)}function g$e(){return function(e){return p(e,`element`,function(e,t,n){if(FF.includes(e.tagName)){let r={type:`mdxJsxFlowElement`,name:e.tagName,attributes:Object.entries(e.properties||{}).map(([e,t])=>({type:`mdxJsxAttribute`,name:e,value:t})),children:e.children};n&&typeof t==`number`&&(n.children[t]=r)}}),e}}function _$e(){return function(e){return v$e(e)}}function v$e(e){return p(e,`element`,function(e,t,n){e.tagName===`br`&&n&&typeof t==`number`&&n.children.splice(t,1)})}function y$e(){return function(e){return b$e(e)}}function b$e(e){return p(e,`element`,function(e){`properties`in e&&delete e.properties.className})}function x$e(){return function(e){return S$e(e)}}function S$e(e){p(e,`element`,function(e,t,n){if(e.tagName!==`button`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`group-hover/codeblock:opacity-[1]`))return!0;let r=!1;if(p(e,`text`,function(e){if(e.value===`Copy`||e.value===`copy`)return r=!0,!1}),r){if(!n||typeof t!=`number`)return!0;n.children.splice(t,1)}})}function C$e(){return function(e){return w$e(e)}}function w$e(e){p(e,function(e,t,n){if(e.type!==`emphasis`&&e.type!==`strong`)return!0;if(e.children.length===0){if(!n||typeof t!=`number`)return!0;n.children.splice(t,1)}})}function T$e(){return function(e){return E$e(e)}}function E$e(e){return p(e,`paragraph`,function(e,t,n){let r=0;for(let t of e.children)`children`in t&&t.children.length===0&&r++;r===e.children.length&&n&&typeof t==`number`&&n.children.splice(t,1)})}function D$e(){return function(e){return k$e(e)}}const O$e={type:`text`,value:` `};function k$e(e){p(e,[`emphasis`,`strong`],function(e,t,n){if(e.type!==`emphasis`&&e.type!==`strong`||e.children.length!==1||!e.children[0]||e.children[0].type!==`text`||!n||typeof t!=`number`)return!0;let r=e.children[0];(r.value.startsWith(` `)||r.value.endsWith(` `))&&(t!==0&&r.value.startsWith(` `)&&n.children.splice(t,0,O$e),n.children.length>t+1&&r.value.endsWith(` `)&&n.children.splice(t+1,0,O$e),r.value=r.value.trim(),e.children[0]=r)})}function sI(e){p(e,`comment`,function(e,t,n){if(n&&typeof t==`number`)return n.children.splice(t,1),[!0,t]})}function A$e(){return function(e){return sI(e)}}function j$e(){return function(e){return M$e(e)}}function M$e(e){return p(e,`list`,(e,t,n)=>{if(!n||typeof t!=`number`)return!0;t&&t>0&&n.children[t-1]?.type===`list`&&n.children.splice(t,0,{type:`paragraph`,children:[{type:`text`,value:``}]})})}function N$e(){return function(e){return P$e(e)}}function P$e(e){p(e,`root`,function(e,t,n){if(!n)return!0;n.children=e.children})}function F$e(){return function(e){return I$e(e)}}function I$e(e){return p(e,function(e){delete e.position})}const L$e={abandonedHeadElementChild:{reason:`Unexpected metadata element after head`,description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:`Unexpected abruptly closed empty comment`,description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:`Unexpected abruptly closed public identifier`,description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:`Unexpected abruptly closed system identifier`,description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:`Unexpected non-digit at start of numeric character reference`,description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:`Unexpected CDATA section in HTML`,description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:`Unexpected too big numeric character reference`,description:`Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)`},closingOfElementWithOpenChildElements:{reason:`Unexpected closing tag with open child elements`,description:`Unexpectedly closing tag. Expected other tags to be closed first`,url:!1},controlCharacterInInputStream:{reason:`Unexpected control character`,description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:`Unexpected control character reference`,description:`Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace`},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:`Unexpected duplicate attribute`,description:`Unexpectedly double attribute. Expected attributes to occur only once`},endTagWithAttributes:{reason:`Unexpected attribute on closing tag`,description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:`Unexpected slash at end of closing tag`,description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:`Unexpected unopened end tag`,description:`Unexpected end tag. Expected no end tag or another end tag`,url:!1},eofBeforeTagName:{reason:`Unexpected end of file`,description:`Unexpected end of file. Expected tag name instead`},eofInCdata:{reason:`Unexpected end of file in CDATA`,description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:`Unexpected end of file in comment`,description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:`Unexpected end of file in doctype`,description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:`Unexpected end of file in element that can only contain text`,description:`Unexpected end of file. Expected text or a closing tag`,url:!1},eofInScriptHtmlCommentLikeText:{reason:`Unexpected end of file in comment inside script`,description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:`Unexpected end of file in tag`,description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:`Incorrectly closed comment`,description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:`Incorrectly opened comment`,description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:`Invalid sequence after doctype name`,description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:`Invalid first character in tag name`,description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:`Misplaced doctype`,description:`Unexpected doctype. Expected doctype before head`,url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:`Missing attribute value`,description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:`Missing doctype before other content`,description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:`Missing doctype name`,description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:`Missing public identifier in doctype`,description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:`Missing system identifier in doctype`,description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:`Missing name in end tag`,description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:`Missing quote before public identifier in doctype`,description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:`Missing quote before system identifier in doctype`,description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:`Missing semicolon after character reference`,description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:`Missing whitespace after public identifier in doctype`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:`Missing whitespace after system identifier in doctype`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:`Missing whitespace before doctype name`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:`Missing whitespace between attributes`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:`Missing whitespace between public and system identifiers in doctype`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:`Unexpected nested comment`,description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:`Unexpected non-conforming doctype declaration`,description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:`Unexpected trailing slash on start tag of non-void element`,description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:`Unexpected noncharacter code point referenced by character reference`,description:`Unexpected code point. Do not use noncharacters in HTML`},noncharacterInInputStream:{reason:`Unexpected noncharacter character`,description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:`Unexpected NULL character referenced by character reference`,description:`Unexpected code point. Do not use NULL characters in HTML`},openElementsLeftAfterEof:{reason:`Unexpected end of file`,description:`Unexpected end of file. Expected closing tag instead`,url:!1},surrogateCharacterReference:{reason:`Unexpected surrogate character referenced by character reference`,description:`Unexpected code point. Do not use lone surrogate characters in HTML`},surrogateInInputStream:{reason:`Unexpected surrogate character`,description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:`Invalid character after system identifier in doctype`,description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:`Unexpected character in attribute name`,description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:`Unexpected character in unquoted attribute value`,description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:`Unexpected equals sign before attribute name`,description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:`Unexpected NULL character`,description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:`Unexpected question mark instead of tag name`,description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:`Unexpected slash in tag`,description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:`Unexpected unknown named character reference`,description:`Unexpected character reference. Expected known named character references`}},R$e=/-[a-z]/g,z$e=/%c(?:([-+])(\d+))?/g,B$e=/%x/g,V$e={2:!0,1:!1,0:null},H$e={};function U$e(e,t){let n=t||H$e,r=n.onerror,i=e instanceof et?e:new et(e),a=n.fragment?qAe:KAe,o=String(i);return HDe(a(o,{sourceCodeLocationInfo:!0,onParseError:n.onerror?s:null,scriptingEnabled:!1}),{file:i,space:n.space,verbose:n.verbose});function s(e){let t=e.code,a=W$e(t),s=n[a]??!0,c=typeof s==`number`?s:+!!s;if(c){let n=L$e[a],o=new Be(l(n.reason),{place:{start:{line:e.startLine,column:e.startCol,offset:e.startOffset},end:{line:e.endLine,column:e.endCol,offset:e.endOffset}},ruleId:t,source:`hast-util-from-html`});i.path&&(o.file=i.path,o.name=i.path+`:`+o.name),o.fatal=V$e[c],o.note=l(n.description),o.url=n.url===!1?void 0:`https://html.spec.whatwg.org/multipage/parsing.html#parse-error-`+t,r(o)}function l(t){return t.replace(z$e,n).replace(B$e,r);function n(t,n,r){let i=(r?Number.parseInt(r,10):0)*(n===`-`?-1:1);return K$e(o.charAt(e.startOffset+i))}function r(){return q$e(o.charCodeAt(e.startOffset))}}}}function W$e(e){return e.replace(R$e,G$e)}function G$e(e){return e.charAt(1).toUpperCase()}function K$e(e){return e==="`"?"` ` `":e}function q$e(e){return`0x`+e.toString(16).toUpperCase()}function J$e(e){let t=this,{emitParseErrors:n,...r}={...t.data(`settings`),...e};t.parser=i;function i(e,t){return U$e(e,{...r,onerror:n?function(e){t.path&&(e.name=t.path+`:`+e.name,e.file=t.path),t.messages.push(e)}:void 0})}}function cI(e){return Je().use(J$e).use(F$e).use(A$e).parse(e)}function lI(e,t){if(!e)throw Error(t)}function uI(e){return typeof e==`object`&&!!e}function dI(e,t){if(!e)throw Error(t??`Unexpected invariant triggered.`)}const Y$e=/\r\n|[\n\r]/g;function fI(e,t){let n=0,r=1;for(let i of e.body.matchAll(Y$e)){if(typeof i.index==`number`||dI(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function X$e(e){return Z$e(e.source,fI(e.source,e.start))}function Z$e(e,t){let n=e.locationOffset.column-1,r=``.padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${o}:${c}\n`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return l+Q$e([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>[`|`,e]),[`|`,`^`.padStart(t)],[`|`,n[e+1]]])}return l+Q$e([[`${o-1} |`,u[i-1]],[`${o} |`,d],[`|`,`^`.padStart(c)],[`${o+1} |`,u[i+1]]])}function Q$e(e){let t=e.filter(([e,t])=>t!==void 0),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?` `+t:``)).join(`
888
+ `:UZe(e)?(s=2,c=2):KZe(e)&&(s=1,c=1);++a<i.length;)o=o.concat(qZe(i[a],e,{whitespace:r,breakBefore:a?void 0:s,breakAfter:a<i.length-1?HF(i[a+1]):c}));return HZe(e)&&zZe(t,e,HZe)&&o.push(` `),s&&o.unshift(s),c&&o.push(c),o}function YZe(e,t){let n=String(e.value),r=[],i=[],a=0;for(;a<=n.length;){BZe.lastIndex=a;let e=BZe.exec(n),i=e&&`index`in e?e.index:n.length;r.push(ZZe(n.slice(a,i).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,``),a!==0||t.breakBefore,i!==n.length||t.breakAfter)),a=i+1}let o=-1,s;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),s=void 0):r[o]?(typeof s==`number`&&i.push(s),i.push(r[o]),s=0):(o===0||o===r.length-1)&&i.push(0);return i}function XZe(e){return[String(e.value)]}function ZZe(e,t,n){let r=[],i=0,a;for(;i<e.length;){VZe.lastIndex=i;let n=VZe.exec(e);a=n?n.index:e.length,!i&&!a&&n&&!t&&r.push(``),i!==a&&r.push(e.slice(i,a)),i=n?a+n[0].length:a}return i!==a&&!n&&r.push(``),r.join(` `)}function QZe(e,t){if(e.type===`element`){let n=e.properties||{};switch(e.tagName){case`listing`:case`plaintext`:case`xmp`:return`pre`;case`nobr`:return`nowrap`;case`pre`:return n.wrap?`pre-wrap`:`pre`;case`td`:case`th`:return n.noWrap?`nowrap`:t.whitespace;case`textarea`:return`pre-wrap`}}return t.whitespace}function $Ze(e){return!!(e.properties||{}).hidden}function eQe(e){return e.tagName===`td`||e.tagName===`th`}function tQe(e){return e.tagName===`dialog`&&!(e.properties||{}).open}function nQe(e){let t=String(e),n=t.length;for(;n>0;){let e=t.codePointAt(n-1);if(e!==void 0&&(e===10||e===13))n--;else break}return t.slice(0,n)}function WF(e,t){let n=t.children,r=-1,i,a;if(t.tagName===`pre`)for(;++r<n.length;){let e=n[r];if(e.type===`element`&&e.tagName===`code`&&e.properties&&e.properties.className&&Array.isArray(e.properties.className)){i=e.properties.className;break}}if(i){for(r=-1;++r<i.length;)if(String(i[r]).slice(0,9)===`language-`){a=String(i[r]).slice(9);break}}let o={type:`code`,lang:a||null,meta:null,value:nQe(UF(t))};return e.patch(t,o),o}function rQe(e,t){let n={type:`html`,value:`<!--`+t.value+`-->`};return e.patch(t,n),n}function GF(e,t){let n={type:`delete`,children:e.all(t)};return e.patch(t,n),n}function KF(e){let t=-1;if(e.length>1){for(;++t<e.length;)if(e[t].spread)return!0}return!1}function iQe(e,t){let n=[],r=[],i=-1;for(;++i<t.children.length;){let e=t.children[i];e.type===`element`&&e.tagName===`div`?n.push(...e.children):n.push(e)}let a={definitions:[],titles:[]};for(i=-1;++i<n.length;){let e=n[i];if(e.type===`element`&&e.tagName===`dt`){let t=n[i-1];t&&t.type===`element`&&t.tagName===`dd`&&(r.push(a),a={definitions:[],titles:[]}),a.titles.push(e)}else a.definitions.push(e)}r.push(a),i=-1;let o=[];for(;++i<r.length;){let t=[...aQe(e,r[i].titles),...aQe(e,r[i].definitions)];t.length>0&&o.push({type:`listItem`,spread:t.length>1,checked:null,children:t})}if(o.length>0){let n={type:`list`,ordered:!1,start:null,spread:KF(o),children:o};return e.patch(t,n),n}}function aQe(e,t){let n=e.all({type:`root`,children:t}),r=e.toSpecificContent(n,oQe);return r.length===0?[]:r.length===1?r[0].children:[{type:`list`,ordered:!1,start:null,spread:KF(r),children:r}]}function oQe(){return{type:`listItem`,spread:!1,checked:null,children:[]}}function qF(e,t){let n={type:`emphasis`,children:e.all(t)};return e.patch(t,n),n}function JF(e,t){let n={type:`heading`,depth:Number(t.tagName.charAt(1))||1,children:e.all(t)};return e.patch(t,n),n}function sQe(e,t){let n={type:`thematicBreak`};return e.patch(t,n),n}function cQe(e,t){let n=t.properties||{},r=String(n.src||``),i=String(n.title||``);if(r&&i){let n={type:`link`,title:null,url:e.resolve(r),children:[{type:`text`,value:i}]};return e.patch(t,n),n}}function lQe(e,t){let n=t.properties||{},r={type:`image`,url:e.resolve(String(n.src||``)||null),title:n.title?String(n.title):null,alt:n.alt?String(n.alt):``};return e.patch(t,r),r}function YF(e,t){let n={type:`inlineCode`,value:UF(t)};return e.patch(t,n),n}function uQe(e,t){let n=[],r=[],i=t||e.properties||{},a=dQe(e),o=Math.min(Number.parseInt(String(i.size),10),0)||(i.multiple?4:1),s=-1;for(;++s<a.length;){let e=a[s];e&&e.properties&&e.properties.selected&&n.push(e)}let c=n.length>0?n:a,l=c.length>o?o:c.length;for(s=-1;++s<l;){let e=c[s],t=e.properties||{},n=UF(e),i=n||String(t.label||``),a=String(t.value||``)||n;r.push([a,i===a?void 0:i])}return r}function dQe(e){let t=[],n=-1;for(;++n<e.children.length;){let r=e.children[n];`children`in r&&Array.isArray(r.children)&&t.push(...dQe(r)),r.type===`element`&&r.tagName===`option`&&(!r.properties||!r.properties.disabled)&&t.push(r)}return t}function fQe(e,t){let n=t.properties||{},r=String(n.value||n.placeholder||``);if(n.disabled||n.type===`hidden`||n.type===`file`)return;if(n.type===`checkbox`||n.type===`radio`){let r={type:`text`,value:n.checked?e.options.checked||`[x]`:e.options.unchecked||`[ ]`};return e.patch(t,r),r}if(n.type===`image`){let i=n.alt||r;if(i){let r={type:`image`,url:e.resolve(String(n.src||``)||null),title:String(n.title||``)||null,alt:String(i)};return e.patch(t,r),r}return}let i=[];if(r)i=[[r,void 0]];else if(n.type!==`button`&&n.type!==`file`&&n.type!==`password`&&n.type!==`reset`&&n.type!==`submit`&&n.list){let t=String(n.list),r=e.elementById.get(t);r&&r.tagName===`datalist`&&(i=uQe(r,n))}if(i.length===0)return;if(n.type===`password`&&(i[0]=[`•`.repeat(i[0][0].length),void 0]),n.type===`email`||n.type===`url`){let t=[],r=-1;for(;++r<i.length;){let a=e.resolve(i[r][0]),o={type:`link`,title:null,url:n.type===`email`?`mailto:`+a:a,children:[{type:`text`,value:i[r][1]||a}]};t.push(o),r!==i.length-1&&t.push({type:`text`,value:`, `})}return t}let a=[],o=-1;for(;++o<i.length;)a.push(i[o][1]?i[o][1]+` (`+i[o][0]+`)`:i[o][0]);let s={type:`text`,value:a.join(`, `)};return e.patch(t,s),s}const pQe={}.hasOwnProperty;function mQe(e,t){let n=e.type===`element`&&pQe.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const hQe=/* @__PURE__ */ new Set([`pingback`,`prefetch`,`stylesheet`]);function gQe(e){if(e.type!==`element`||e.tagName!==`link`)return!1;if(e.properties.itemProp)return!0;let t=e.properties.rel,n=-1;if(!Array.isArray(t)||t.length===0)return!1;for(;++n<t.length;)if(!hQe.has(String(t[n])))return!1;return!0}const _Qe=zF(/* @__PURE__ */ `a.abbr.area.b.bdi.bdo.br.button.cite.code.data.datalist.del.dfn.em.i.input.ins.kbd.keygen.label.map.mark.meter.noscript.output.progress.q.ruby.s.samp.script.select.small.span.strong.sub.sup.template.textarea.time.u.var.wbr`.split(`.`)),vQe=zF(`meta`);function yQe(e){return!!(e.type===`text`||_Qe(e)||hZe(e)||gQe(e)||vQe(e)&&mQe(e,`itemProp`))}function XF(e,t){let{rest:n,checkbox:r}=xQe(t),i=r?!!r.properties.checked:null,a={type:`listItem`,spread:bQe(n),checked:i,children:e.toFlow(e.all(n))};return e.patch(t,a),a}function bQe(e){let t=-1,n=!1;for(;++t<e.children.length;){let r=e.children[t];if(r.type===`element`){if(yQe(r))continue;if(r.tagName===`p`||n||bQe(r))return!0;n=!0}}return!1}function xQe(e){let t=e.children[0];if(t&&t.type===`element`&&t.tagName===`input`&&t.properties&&(t.properties.type===`checkbox`||t.properties.type===`radio`))return{checkbox:t,rest:{...e,children:e.children.slice(1)}};if(t&&t.type===`element`&&t.tagName===`p`){let{checkbox:n,rest:r}=xQe(t);if(n)return{checkbox:n,rest:{...e,children:[r,...e.children.slice(1)]}}}return{checkbox:void 0,rest:e}}function ZF(e,t){let n=t.tagName===`ol`,r=e.toSpecificContent(e.all(t),SQe),i=null;n&&(i=t.properties&&t.properties.start?Number.parseInt(String(t.properties.start),10):1);let a={type:`list`,ordered:n,start:i,spread:KF(r),children:r};return e.patch(t,a),a}function SQe(){return{type:`listItem`,spread:!1,checked:null,children:[]}}function QF(e){let t=-1;for(;++t<e.length;){let n=e[t];if(!DQe(n)||`children`in n&&QF(n.children))return!0}return!1}function CQe(e){return TQe(e,t,function(e){return e});function t(e){return e.every(function(e){return e.type===`text`&&_De(e.value)})?[]:[{type:`paragraph`,children:e}]}}function wQe(e){return TQe(e.children,t,n);function t(t){let n=$F(e);return n.children=t,[n]}function n(t){if(`children`in t&&`children`in e){let n=$F(e),r=$F(t);return n.children=t.children,r.children.push(n),r}return{...t}}}function TQe(e,t,n){let r=EQe(e),i=[],a=[],o=-1;for(;++o<r.length;){let e=r[o];DQe(e)?a.push(e):(a.length>0&&(i.push(...t(a)),a=[]),i.push(n(e)))}return a.length>0&&(i.push(...t(a)),a=[]),i}function EQe(e){let t=[],n=-1;for(;++n<e.length;){let r=e[n];(r.type===`delete`||r.type===`link`)&&QF(r.children)?t.push(...wQe(r)):t.push(r)}return t}function DQe(e){let t=e.data&&e.data.hName;return t?yQe({type:`element`,tagName:t,properties:{},children:[]}):Ne(e)}function $F(e){return oMe({...e,children:[]})}function OQe(e,t){let n=t.properties||{},r=t.tagName===`video`?String(n.poster||``):``,i=String(n.src||``),a=-1,o=!1,s=e.all(t);if(p({type:`root`,children:s},function(e){if(e.type===`link`)return o=!0,!1}),o||QF(s))return s;for(;!i&&++a<t.children.length;){let e=t.children[a];e.type===`element`&&e.tagName===`source`&&e.properties&&(i=String(e.properties.src||``))}if(r){let n={type:`image`,title:null,url:e.resolve(r),alt:ut(s)};e.patch(t,n),s=[n]}let c=s,l={type:`link`,title:n.title?String(n.title):null,url:e.resolve(i),children:c};return e.patch(t,l),l}function kQe(e,t){let n=e.all(t);if(n.length>0){let r={type:`paragraph`,children:n};return e.patch(t,r),r}}const AQe=[`"`];function jQe(e,t){let n=e.options.quotes||AQe;e.qNesting++;let r=e.all(t);e.qNesting--;let i=n[e.qNesting%n.length],a=r[0],o=r[r.length-1],s=i.charAt(0),c=i.length>1?i.charAt(1):i;return a&&a.type===`text`?a.value=s+a.value:r.unshift({type:`text`,value:s}),o&&o.type===`text`?o.value+=c:r.push({type:`text`,value:c}),r}function MQe(e,t){let n=e.all(t);(e.options.document||QF(n))&&(n=CQe(n));let r={type:`root`,children:n};return e.patch(t,r),r}function NQe(e,t){let n=uQe(t),r=-1,i=[];for(;++r<n.length;){let e=n[r];i.push(e[1]?e[1]+` (`+e[0]+`)`:e[0])}if(i.length>0){let n={type:`text`,value:i.join(`, `)};return e.patch(t,n),n}}function PQe(e,t){let n={type:`strong`,children:e.all(t)};return e.patch(t,n),n}function FQe(e,t){let n={type:`tableCell`,children:e.all(t)};if(e.patch(t,n),t.properties){let e=t.properties.rowSpan,r=t.properties.colSpan;if(e||r){let t=n.data||={};e&&(t.hastUtilToMdastTemporaryRowSpan=e),r&&(t.hastUtilToMdastTemporaryColSpan=r)}}return n}function IQe(e,t){let n={type:`tableRow`,children:e.toSpecificContent(e.all(t),LQe)};return e.patch(t,n),n}function LQe(){return{type:`tableCell`,children:[]}}function RQe(e,t){if(e.inTable){let n={type:`text`,value:UF(t)};return e.patch(t,n),n}e.inTable=!0;let{align:n,headless:r}=zQe(t),i=e.toSpecificContent(e.all(t),VQe);r&&i.unshift(VQe());let a=-1;for(;++a<i.length;){let t=i[a];t.children=e.toSpecificContent(t.children,BQe)}let o=1;for(a=-1;++a<i.length;){let e=i[a].children,t=-1;for(;++t<e.length;){let n=e[t];if(n.data){let e=n.data,r=Number.parseInt(String(e.hastUtilToMdastTemporaryColSpan),10)||1,o=Number.parseInt(String(e.hastUtilToMdastTemporaryRowSpan),10)||1;if(r>1||o>1){let e=a-1;for(;++e<a+o;){let n=t-1;for(;++n<t+r&&i[e];){let r=[];(e!==a||n!==t)&&r.push({type:`tableCell`,children:[]}),i[e].children.splice(n,0,...r)}}}`hastUtilToMdastTemporaryColSpan`in n.data&&delete n.data.hastUtilToMdastTemporaryColSpan,`hastUtilToMdastTemporaryRowSpan`in n.data&&delete n.data.hastUtilToMdastTemporaryRowSpan,Object.keys(n.data).length===0&&delete n.data}}e.length>o&&(o=e.length)}for(a=-1;++a<i.length;){let e=i[a].children,t=e.length-1;for(;++t<o;)e.push({type:`tableCell`,children:[]})}let s=n.length-1;for(;++s<o;)n.push(null);e.inTable=!1;let c={type:`table`,align:n,children:i};return e.patch(t,c),c}function zQe(e){let t={align:[null],headless:!0},n=0,r=0;return p(e,function(i){if(i.type===`element`){if(i.tagName===`table`&&e!==i)return ct;if((i.tagName===`th`||i.tagName===`td`)&&i.properties){if(!t.align[r]){let e=String(i.properties.align||``)||null;(e===`center`||e===`left`||e===`right`||e===null)&&(t.align[r]=e)}t.headless&&n<2&&i.tagName===`th`&&(t.headless=!1),r++}else i.tagName===`thead`?t.headless=!1:i.tagName===`tr`&&(n++,r=0)}}),t}function BQe(){return{type:`tableCell`,children:[]}}function VQe(){return{type:`tableRow`,children:[]}}function HQe(e,t){let n={type:`text`,value:t.value};return e.patch(t,n),n}function UQe(e,t){let n={type:`text`,value:UF(t)};return e.patch(t,n),n}function WQe(e,t){let n={type:`text`,value:`​`};return e.patch(t,n),n}const GQe={comment:rQe,doctype:rI,root:MQe,text:HQe},eI={applet:rI,area:rI,basefont:rI,bgsound:rI,caption:rI,col:rI,colgroup:rI,command:rI,content:rI,datalist:rI,dialog:rI,element:rI,embed:rI,frame:rI,frameset:rI,isindex:rI,keygen:rI,link:rI,math:rI,menu:rI,menuitem:rI,meta:rI,nextid:rI,noembed:rI,noframes:rI,optgroup:rI,option:rI,param:rI,script:rI,shadow:rI,source:rI,spacer:rI,style:rI,svg:rI,template:rI,title:rI,track:rI,abbr:tI,acronym:tI,bdi:tI,bdo:tI,big:tI,blink:tI,button:tI,canvas:tI,cite:tI,data:tI,details:tI,dfn:tI,font:tI,ins:tI,label:tI,map:tI,marquee:tI,meter:tI,nobr:tI,noscript:tI,object:tI,output:tI,progress:tI,rb:tI,rbc:tI,rp:tI,rt:tI,rtc:tI,ruby:tI,slot:tI,small:tI,span:tI,sup:tI,sub:tI,tbody:tI,tfoot:tI,thead:tI,time:tI,address:nI,article:nI,aside:nI,body:nI,center:nI,div:nI,fieldset:nI,figcaption:nI,figure:nI,form:nI,footer:nI,header:nI,hgroup:nI,html:nI,legend:nI,main:nI,multicol:nI,nav:nI,picture:nI,section:nI,a:FZe,audio:OQe,b:PQe,base:IZe,blockquote:LZe,br:RZe,code:YF,dir:ZF,dl:iQe,dt:XF,dd:XF,del:GF,em:qF,h1:JF,h2:JF,h3:JF,h4:JF,h5:JF,h6:JF,hr:sQe,i:qF,iframe:cQe,img:lQe,image:lQe,input:fQe,kbd:YF,li:XF,listing:WF,mark:qF,ol:ZF,p:kQe,plaintext:WF,pre:WF,q:jQe,s:GF,samp:YF,select:NQe,strike:GF,strong:PQe,summary:kQe,table:RQe,td:FQe,textarea:UQe,th:FQe,tr:IQe,tt:YF,u:qF,ul:ZF,var:YF,video:OQe,wbr:WQe,xmp:WF};function tI(e,t){return e.all(t)}function nI(e,t){return e.toFlow(e.all(t))}function rI(){}const KQe={}.hasOwnProperty;function qQe(e){return{all:JQe,baseFound:!1,elementById:/* @__PURE__ */ new Map,frozenBaseUrl:void 0,handlers:{...eI,...e.handlers},inTable:!1,nodeHandlers:{...GQe,...e.nodeHandlers},one:YQe,options:e,patch:XQe,qNesting:0,resolve:ZQe,toFlow:QQe,toSpecificContent:$Qe}}function JQe(e){let t=e.children||[],n=[],r=-1;for(;++r<t.length;){let i=t[r],a=this.one(i,e);Array.isArray(a)?n.push(...a):a&&n.push(a)}let i=0,a=n.length;for(;i<a&&n[i].type===`break`;)i++;for(;a>i&&n[a-1].type===`break`;)a--;return i===0&&a===n.length?n:n.slice(i,a)}function YQe(e,t){if(e.type===`element`){if(e.properties&&e.properties.dataMdast===`ignore`)return;if(KQe.call(this.handlers,e.tagName))return this.handlers[e.tagName](this,e,t)||void 0}else if(KQe.call(this.nodeHandlers,e.type))return this.nodeHandlers[e.type](this,e,t)||void 0;if(`value`in e&&typeof e.value==`string`){let t={type:`text`,value:e.value};return this.patch(e,t),t}if(`children`in e)return this.all(e)}function XQe(e,t){e.position&&(t.position=Qje(e))}function ZQe(e){let t=this.frozenBaseUrl;return e==null?``:t?String(new URL(e,t)):e}function QQe(e){return CQe(e)}function $Qe(e,t){let n=t(),r=[],i=[],a=-1;for(;++a<e.length;){let t=e[a];if(o(t))i.length>0&&(t.children.unshift(...i),i=[]),r.push(t);else{let e=t;i.push(e)}}if(i.length>0){let e=r[r.length-1];e||(e=t(),r.push(e)),e.children.push(...i),i=[]}return r;function o(e){return e.type===n.type}}const e$e={};function t$e(e,t){let n=oMe(e),r=t||e$e,i=PZe({newlines:r.newlines===!0}),a=qQe(r),o;i(n),p(n,function(e){if(e&&e.type===`element`&&e.properties){let t=String(e.properties.id||``)||void 0;t&&!a.elementById.has(t)&&a.elementById.set(t,e)}});let s=a.one(n,void 0);return o=s?Array.isArray(s)?{type:`root`,children:s}:s:{type:`root`,children:[]},p(o,function(e,t,n){if(e.type===`text`&&t!==void 0&&n){let r=n.children[t-1];if(r&&r.type===e.type)return r.value+=e.value,n.children.splice(t,1),r.position&&e.position&&(r.position.end=e.position.end),t-1;if(e.value=e.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,`$1`),n&&(n.type===`heading`||n.type===`paragraph`||n.type===`root`)&&(t||(e.value=e.value.replace(/^[\t ]+/,``)),t===n.children.length-1&&(e.value=e.value.replace(/[\t ]+$/,``))),!e.value)return n.children.splice(t,1),t}}),o}function iI(e,t){return{type:`mdxJsxFlowElement`,name:t.tagName,attributes:Object.entries(t.properties??{}).map(([e,t])=>({type:`mdxJsxAttribute`,name:e,value:t})),children:t.children}}function n$e(){let e={...eI};return FF.forEach(t=>{e[t]=iI}),e.mdxJsxFlowElement=iI,function(t){return t$e(t,{handlers:e})}}function aI(e,t={jsxImages:!1}){let n={type:`root`,children:e},r={...eI};t.jsxImages&&(r.img=function(e,t){return Object.keys(t.properties).forEach(e=>{e!==`src`&&delete t.properties[e]}),iI(e,t)}),FF.forEach(e=>{r[e]=function(e,t){return iI(e,t)}});let i=Je().use(function(){return function(e){return t$e(e,{handlers:r})}}).runSync(n);return i.children.forEach((e,t)=>{e.type===`html`&&i.children.splice(t,1)}),i.children}function r$e(e,t,n){if(e.tagName!==`div`||!Array.isArray(e.properties.className)||!e.properties.className.join(` `).startsWith(`px-4 py-4 transition-colors rounded-md straight-corners:rounded-none bg-gradient-to-b`))return;uZe(e.properties.className);let r=e.properties.className.find(e=>/^from-[a-z]+\/[0-9]$/.test(e))?.replace(/^from-|\/[0-9]$/g,``)||null,i=`Note`;switch(r){case`periwinkle`:i=`Info`;break;case`teal`:i=`Check`;break;case`yellow`:case`pomegranate`:i=`Warning`;break;default:i=`Info`}return{type:`element`,tagName:i,properties:{},children:aI(e.children)}}function i$e(e,t,n){if(e.tagName!==`blockquote`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`callout`))return;e.children.shift(),uZe(e.properties.className);let r=e.properties.className.filter(e=>e.includes(`callout_`)),i=r[0]?r[0]:`callout_info`,a=`Note`;switch(i){case`callout_default`:case`callout_info`:a=`Info`;break;case`callout_warn`:case`callout_error`:a=`Warning`;break;case`callout_okay`:a=`Check`;break;default:a=`Info`}return{type:`element`,tagName:a,properties:{},children:aI(e.children)}}function a$e(e,t,n){if(e.tagName!==`div`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`admonition`)&&!e.properties.className.includes(`theme-admonition`))return;e.children.shift();let r=e.properties.className.filter(e=>typeof e==`string`&&e.includes(`alert--`)),i=r.length?r[0]:`alert--info`,a=`Note`;switch(i){case`alert--info`:a=`Info`;break;case`alert--secondary`:a=`Note`;break;case`alert--danger`:case`alert--warning`:a=`Warning`;break;case`alert--success`:a=`Check`;break;default:a=`Info`}return{type:`element`,tagName:a,properties:{},children:aI(e.children)}}function o$e(e){if(!e)return!1;let t=0,n=0;return p(e,`element`,function(e){if(e.properties.role!==`tabpanel`)return!0;t++,e.children[0]&&e.children[0].type===`element`&&e.children[0].children.length===1&&e.children[0].children[0]&&e.children[0].children[0].type===`element`&&e.children[0].children[0].children.length>1&&e.children[0].children[0].children.find(e=>e.type===`element`&&(e.tagName===`pre`||e.tagName===`code`))!==void 0&&n++}),n===t&&t>0}function s$e(e,t,n){if(e.tagName===`div`&&Array.isArray(e.properties.className)&&e.properties.className.includes(`group/codeblock`)&&e.children.length===2&&e.children[0]&&e.children[1]&&e.children[1].type===`element`&&(e.children[1].tagName===`pre`||e.children[1].tagName===`code`)){let t=``;if(p(e.children[0],`text`,function(e){return t=e.value,!1}),!t)return;let n=aI([e.children[1]]);return{type:`element`,tagName:`CodeGroup`,properties:{},children:[{type:`code`,lang:`bash`,meta:t,value:n[0].value}]}}if(e.tagName!==`div`||e.properties.role!==`tablist`||!o$e(n))return;LF(n);let r=[];p(e,`element`,function(e){if(e.tagName!==`button`)return!0;p(e,`text`,function(e){return r.push(e.value),!1})}),n.children.shift();let i=[];p(n,`element`,function(e){e.tagName===`div`&&`id`in e.properties&&e.properties.role===`tabpanel`&&i.push(e.properties.id)});let a=aI(n.children),o=[];a.forEach((e,t)=>{let n=i[t]||`bash`,a=r[t]||n;o.push({type:`code`,lang:n,meta:a,value:e.value})});let s={type:`element`,tagName:`CodeGroup`,properties:{},children:o};return n.children.length=0,s}function c$e(e,t,n){if(e.tagName!==`div`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`CodeTabs`))return;let r;return p(e,`element`,function(e){if(e.tagName!==`div`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`CodeTabs-inner`))return!0;let t=[],n=[];p(e,`element`,function(e){if(e.tagName!==`code`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`rdmd-code`))return!0;t.push(e.properties.dataLang??``),n.push(e.properties.name??``)});let i=aI(e.children),a=[];return i.forEach((e,r)=>{let i=t[r]||`bash`,o=n[r]||i;a.push({type:`code`,lang:i,meta:o,value:e.value})}),r={type:`element`,tagName:`CodeGroup`,properties:{},children:a},!1}),r}function l$e(e,t,n){if(e.tagName!==`div`&&e.tagName!==`ul`||e.properties.role!==`tablist`||!o$e(e))return;LF(n);let r=[];p(e,`element`,function(e){if(e.tagName!==`li`)return!0;p(e,`text`,function(e){return r.push(e.value),!1})}),n.children.shift();let i=[];p(n,`element`,function(e){if(e.tagName===`div`&&Array.isArray(e.properties.className)&&e.properties.className.find(e=>e.toString().includes(`language-`))){let t=e.properties.className.find(e=>e.toString().includes(`language-`));i.push(t?.toString().replace(`language-`,``)??``)}});let a=aI(n.children),o=[];a.forEach((e,t)=>{let n=i[t]||`bash`,a=r[t]||n;o.push({type:`code`,lang:n,meta:a,value:e.value})});let s={type:`element`,tagName:`CodeGroup`,properties:{},children:o};return n.children.length=0,s}function u$e(e,t,n){if(e.tagName!==`div`||!e.properties.role||e.properties.role!==`tablist`)return;let r=[];p(e,`element`,function(e){if(e.tagName!==`button`)return!0;p(e,`text`,function(e){return r.push(e.value),!1})}),LF(n),n.children.shift();let i=aI(n.children),a=[];for(let e=0;e<i.length;e++){let t=i[e];t&&a.push({type:`element`,tagName:`Tab`,properties:{title:r[e]},children:[t]})}return{type:`element`,tagName:`Tabs`,properties:{},children:a}}function d$e(e,t,n){if(e.tagName!==`div`&&e.tagName!==`a`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`tabbed-component`)&&!e.properties.className.includes(`tabs`)&&!e.properties.className.includes(`Tabs`)||!e.children[0]||!e.children[1])return;let r=[],i=[];if(e.children.length!==2)p(e,`element`,function(e){if(e.tagName!==`label`&&e.tagName!==`button`)return!0;let t=``;p(e,`text`,function(e){t+=e.value}),r.push(t.trim().replace(`
889
+ `,``))}),i.push(...e.children.filter(e=>!!(e.type===`element`&&Array.isArray(e.properties.className)&&(e.properties.className.includes(`tab`)||e.properties.className.includes(`Tab`)||e.properties.className.includes(`tabbed-content`)||e.properties.className.includes(`tab-content`)))));else{let t=e.children[0];p(t,`element`,function(e){p(e,`text`,function(e){return r.push(e.value),!1})}),e.children.shift(),e.children[0].type===`element`&&i.push(...e.children[0].children)}let a=[];return i.forEach((e,t)=>{if(!r[t])return;let n=aI([e]);a.push({type:`element`,tagName:`Tab`,properties:{title:r[t]},children:n})}),{type:`element`,tagName:`Tabs`,properties:{},children:a}}function f$e(e,t,n){if(e.tagName!==`div`&&e.tagName!==`ul`||e.properties.role!==`tablist`)return;let r=[];p(e,`element`,function(e){if(e.tagName!==`li`)return!0;p(e,`text`,function(e){return r.push(e.value),!1})}),LF(n),n.children.shift();let i=aI(n.children),a=[];for(let e=0;e<i.length;e++){let t=i[e];t&&a.push({type:`element`,tagName:`Tab`,properties:{title:r[e]},children:[t]})}return{type:`element`,tagName:`Tabs`,properties:{},children:a}}function oI(e,t,n){return function(r){return p(r,`element`,function(r,i,a){if(r.tagName===`code`||r.tagName===`pre`)return ct;let o;switch(AF.vendor){case`gitbook`:o=e(r,i,a);break;case`readme`:o=t(r,i,a);break;case`docusaurus`:o=n(r,i,a);break;default:return WXe(`Invalid documentation vendor requested: `+AF.vendor),ct}return o&&a&&typeof i==`number`?(a.children[i]=o,ct):!0})}}function p$e(){return oI(s$e,c$e,l$e)}function m$e(){return oI(u$e,d$e,f$e)}function h$e(){return oI(r$e,i$e,a$e)}function g$e(){return function(e){return p(e,`element`,function(e,t,n){if(FF.includes(e.tagName)){let r={type:`mdxJsxFlowElement`,name:e.tagName,attributes:Object.entries(e.properties||{}).map(([e,t])=>({type:`mdxJsxAttribute`,name:e,value:t})),children:e.children};n&&typeof t==`number`&&(n.children[t]=r)}}),e}}function _$e(){return function(e){return v$e(e)}}function v$e(e){return p(e,`element`,function(e,t,n){e.tagName===`br`&&n&&typeof t==`number`&&n.children.splice(t,1)})}function y$e(){return function(e){return b$e(e)}}function b$e(e){return p(e,`element`,function(e){`properties`in e&&delete e.properties.className})}function x$e(){return function(e){return S$e(e)}}function S$e(e){p(e,`element`,function(e,t,n){if(e.tagName!==`button`||!Array.isArray(e.properties.className)||!e.properties.className.includes(`group-hover/codeblock:opacity-[1]`))return!0;let r=!1;if(p(e,`text`,function(e){if(e.value===`Copy`||e.value===`copy`)return r=!0,!1}),r){if(!n||typeof t!=`number`)return!0;n.children.splice(t,1)}})}function C$e(){return function(e){return w$e(e)}}function w$e(e){p(e,function(e,t,n){if(e.type!==`emphasis`&&e.type!==`strong`)return!0;if(e.children.length===0){if(!n||typeof t!=`number`)return!0;n.children.splice(t,1)}})}function T$e(){return function(e){return E$e(e)}}function E$e(e){return p(e,`paragraph`,function(e,t,n){let r=0;for(let t of e.children)`children`in t&&t.children.length===0&&r++;r===e.children.length&&n&&typeof t==`number`&&n.children.splice(t,1)})}function D$e(){return function(e){return k$e(e)}}const O$e={type:`text`,value:` `};function k$e(e){p(e,[`emphasis`,`strong`],function(e,t,n){if(e.type!==`emphasis`&&e.type!==`strong`||e.children.length!==1||!e.children[0]||e.children[0].type!==`text`||!n||typeof t!=`number`)return!0;let r=e.children[0];(r.value.startsWith(` `)||r.value.endsWith(` `))&&(t!==0&&r.value.startsWith(` `)&&n.children.splice(t,0,O$e),n.children.length>t+1&&r.value.endsWith(` `)&&n.children.splice(t+1,0,O$e),r.value=r.value.trim(),e.children[0]=r)})}function sI(e){p(e,`comment`,function(e,t,n){if(n&&typeof t==`number`)return n.children.splice(t,1),[!0,t]})}function A$e(){return function(e){return sI(e)}}function j$e(){return function(e){return M$e(e)}}function M$e(e){return p(e,`list`,(e,t,n)=>{if(!n||typeof t!=`number`)return!0;t&&t>0&&n.children[t-1]?.type===`list`&&n.children.splice(t,0,{type:`paragraph`,children:[{type:`text`,value:``}]})})}function N$e(){return function(e){return P$e(e)}}function P$e(e){p(e,`root`,function(e,t,n){if(!n)return!0;n.children=e.children})}function F$e(){return function(e){return I$e(e)}}function I$e(e){return p(e,function(e){delete e.position})}const L$e={abandonedHeadElementChild:{reason:`Unexpected metadata element after head`,description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:`Unexpected abruptly closed empty comment`,description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:`Unexpected abruptly closed public identifier`,description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:`Unexpected abruptly closed system identifier`,description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:`Unexpected non-digit at start of numeric character reference`,description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:`Unexpected CDATA section in HTML`,description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:`Unexpected too big numeric character reference`,description:`Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)`},closingOfElementWithOpenChildElements:{reason:`Unexpected closing tag with open child elements`,description:`Unexpectedly closing tag. Expected other tags to be closed first`,url:!1},controlCharacterInInputStream:{reason:`Unexpected control character`,description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:`Unexpected control character reference`,description:`Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace`},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:`Unexpected duplicate attribute`,description:`Unexpectedly double attribute. Expected attributes to occur only once`},endTagWithAttributes:{reason:`Unexpected attribute on closing tag`,description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:`Unexpected slash at end of closing tag`,description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:`Unexpected unopened end tag`,description:`Unexpected end tag. Expected no end tag or another end tag`,url:!1},eofBeforeTagName:{reason:`Unexpected end of file`,description:`Unexpected end of file. Expected tag name instead`},eofInCdata:{reason:`Unexpected end of file in CDATA`,description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:`Unexpected end of file in comment`,description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:`Unexpected end of file in doctype`,description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:`Unexpected end of file in element that can only contain text`,description:`Unexpected end of file. Expected text or a closing tag`,url:!1},eofInScriptHtmlCommentLikeText:{reason:`Unexpected end of file in comment inside script`,description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:`Unexpected end of file in tag`,description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:`Incorrectly closed comment`,description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:`Incorrectly opened comment`,description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:`Invalid sequence after doctype name`,description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:`Invalid first character in tag name`,description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:`Misplaced doctype`,description:`Unexpected doctype. Expected doctype before head`,url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:`Missing attribute value`,description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:`Missing doctype before other content`,description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:`Missing doctype name`,description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:`Missing public identifier in doctype`,description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:`Missing system identifier in doctype`,description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:`Missing name in end tag`,description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:`Missing quote before public identifier in doctype`,description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:`Missing quote before system identifier in doctype`,description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:`Missing semicolon after character reference`,description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:`Missing whitespace after public identifier in doctype`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:`Missing whitespace after system identifier in doctype`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:`Missing whitespace before doctype name`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:`Missing whitespace between attributes`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:`Missing whitespace between public and system identifiers in doctype`,description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:`Unexpected nested comment`,description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:`Unexpected non-conforming doctype declaration`,description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:`Unexpected trailing slash on start tag of non-void element`,description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:`Unexpected noncharacter code point referenced by character reference`,description:`Unexpected code point. Do not use noncharacters in HTML`},noncharacterInInputStream:{reason:`Unexpected noncharacter character`,description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:`Unexpected NULL character referenced by character reference`,description:`Unexpected code point. Do not use NULL characters in HTML`},openElementsLeftAfterEof:{reason:`Unexpected end of file`,description:`Unexpected end of file. Expected closing tag instead`,url:!1},surrogateCharacterReference:{reason:`Unexpected surrogate character referenced by character reference`,description:`Unexpected code point. Do not use lone surrogate characters in HTML`},surrogateInInputStream:{reason:`Unexpected surrogate character`,description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:`Invalid character after system identifier in doctype`,description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:`Unexpected character in attribute name`,description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:`Unexpected character in unquoted attribute value`,description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:`Unexpected equals sign before attribute name`,description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:`Unexpected NULL character`,description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:`Unexpected question mark instead of tag name`,description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:`Unexpected slash in tag`,description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:`Unexpected unknown named character reference`,description:`Unexpected character reference. Expected known named character references`}},R$e=/-[a-z]/g,z$e=/%c(?:([-+])(\d+))?/g,B$e=/%x/g,V$e={2:!0,1:!1,0:null},H$e={};function U$e(e,t){let n=t||H$e,r=n.onerror,i=e instanceof et?e:new et(e),a=n.fragment?ZAe:XAe,o=String(i);return KDe(a(o,{sourceCodeLocationInfo:!0,onParseError:n.onerror?s:null,scriptingEnabled:!1}),{file:i,space:n.space,verbose:n.verbose});function s(e){let t=e.code,a=W$e(t),s=n[a]??!0,c=typeof s==`number`?s:+!!s;if(c){let n=L$e[a],o=new Be(l(n.reason),{place:{start:{line:e.startLine,column:e.startCol,offset:e.startOffset},end:{line:e.endLine,column:e.endCol,offset:e.endOffset}},ruleId:t,source:`hast-util-from-html`});i.path&&(o.file=i.path,o.name=i.path+`:`+o.name),o.fatal=V$e[c],o.note=l(n.description),o.url=n.url===!1?void 0:`https://html.spec.whatwg.org/multipage/parsing.html#parse-error-`+t,r(o)}function l(t){return t.replace(z$e,n).replace(B$e,r);function n(t,n,r){let i=(r?Number.parseInt(r,10):0)*(n===`-`?-1:1);return K$e(o.charAt(e.startOffset+i))}function r(){return q$e(o.charCodeAt(e.startOffset))}}}}function W$e(e){return e.replace(R$e,G$e)}function G$e(e){return e.charAt(1).toUpperCase()}function K$e(e){return e==="`"?"` ` `":e}function q$e(e){return`0x`+e.toString(16).toUpperCase()}function J$e(e){let t=this,{emitParseErrors:n,...r}={...t.data(`settings`),...e};t.parser=i;function i(e,t){return U$e(e,{...r,onerror:n?function(e){t.path&&(e.name=t.path+`:`+e.name,e.file=t.path),t.messages.push(e)}:void 0})}}function cI(e){return Je().use(J$e).use(F$e).use(A$e).parse(e)}function lI(e,t){if(!e)throw Error(t)}function uI(e){return typeof e==`object`&&!!e}function dI(e,t){if(!e)throw Error(t??`Unexpected invariant triggered.`)}const Y$e=/\r\n|[\n\r]/g;function fI(e,t){let n=0,r=1;for(let i of e.body.matchAll(Y$e)){if(typeof i.index==`number`||dI(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function X$e(e){return Z$e(e.source,fI(e.source,e.start))}function Z$e(e,t){let n=e.locationOffset.column-1,r=``.padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${o}:${c}\n`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return l+Q$e([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>[`|`,e]),[`|`,`^`.padStart(t)],[`|`,n[e+1]]])}return l+Q$e([[`${o-1} |`,u[i-1]],[`${o} |`,d],[`|`,`^`.padStart(c)],[`${o+1} |`,u[i+1]]])}function Q$e(e){let t=e.filter(([e,t])=>t!==void 0),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?` `+t:``)).join(`
890
890
  `)}function $$e(e){let t=e[0];return t==null||`kind`in t||`length`in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var pI=class e extends Error{constructor(t,...n){let{nodes:r,source:i,positions:a,path:o,originalError:s,extensions:c}=$$e(n);super(t),this.name=`GraphQLError`,this.path=o??void 0,this.originalError=s??void 0,this.nodes=e1e(Array.isArray(r)?r:r?[r]:void 0);let l=e1e(this.nodes?.map(e=>e.loc).filter(e=>e!=null));this.source=i??l?.[0]?.source,this.positions=a??l?.map(e=>e.start),this.locations=a&&i?a.map(e=>fI(i,e)):l?.map(e=>fI(e.source,e.start));let u=uI(s?.extensions)?s?.extensions:void 0;
891
891
  /* c8 ignore start */
892
892
  this.extensions=c??u??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),s!=null&&s.stack?Object.defineProperty(this,"stack",{value:s.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})
@@ -1011,10 +1011,10 @@ dI(!1,`Unexpected type: `+OI(e))}function m(e){let t=e.toConfig(),n=i[t.name]??[
1011
1011
 
1012
1012
  `);r&&t.push(lR(this.resolveInline(r)));let i=mz(e,`deprecated`)[0];if(i){let e=i[`@_description`]?`: ${lR(this.resolveInline(i[`@_description`]))}`:``;t.push(`<Warning>Deprecated${e}</Warning>`)}return t.filter(Boolean).join(`
1013
1013
 
1014
- `)}seeLink(e){let t=e[`@_link`]||e[`@_description`]||``;if(!t)return``;if(/^https?:/.test(t))return`[${e[`@_description`]||t}](${t})`;let n=this.resolve(t);return n?`[${t.replace(/^\\/,``)}](/${n})`:`\`${t}\``}resolveInline(e){return e.replace(/\{@(?:see|link)\s+([^\s}]+)\s*([^}]*)\}/g,(e,t,n)=>{let r=n.trim()||t.replace(/^\\/,``);if(/^https?:/.test(t))return`[${r}](${t})`;let i=this.resolve(t);return i?`[${r}](/${i})`:`\`${t}\``})}resolve(e){let t=e.replace(/^\\/,``).split(`::`)[0]??``;return this.slugByName.get(t)}firstSentence(e){let t=[e?.description??``,e?.[`long-description`]??``].join(` `).replace(/\{@(?:see|link)\s+([^\s}]+)[^}]*\}/g,`$1`).replace(/\s+/g,` `).trim();return t?gR(t.split(/(?<=\.)\s/)[0]??t,160):void 0}typeTokens(e){return W4e(e,/\\?[A-Za-z_]\w*(?:\\[A-Za-z_]\w*)*/g,e=>{let t=this.resolve(e);return{text:e,href:t?`/${t}`:void 0}})}typeLink(e){let t=[];for(let n of this.typeTokens(e)){let e=t.at(-1);e&&!e.href&&!n.href?e.text+=n.text:t.push({...n})}return t.map(({text:e,href:t})=>t?`[${_R(e)}](${t})`:_R(e)).join(``)}codeBlock(e){return`\`\`\`php\n${e}\n\`\`\``}};function K8e(e){return e.replace(/`/g,``)}function q8e(e,t,n){let r=Rt.posix.relative(Rt.posix.dirname(n),Rt.posix.dirname(t));r&&p(e,`element`,e=>{if(e.tagName!==`img`||typeof e.properties.src!=`string`)return;let t=mR(e.properties.src);if(!t||t.startsWith(`/`)||t.startsWith(`#`)||/^[a-z][a-z0-9+.-]*:/i.test(t))return;let n=t.search(/[?#]/),i=n===-1?t:t.slice(0,n);if(!i)return;let a=n===-1?``:t.slice(n),o=Rt.posix.join(r,i);e.properties.src=`${o.startsWith(`../`)?o:`./${o}`}${a}`})}function J8e(e){let t=new Set(e.map(e=>e.slug)),n=[];for(let r of e){let e=Y8e(cI(r.body)).sort((e,t)=>e.start-t.start),i=e.map(e=>`${r.slug}/${e.name}`);if(e.length<2||new Set(i).size!==i.length||i.some(e=>t.has(e))){n.push(r);continue}let a=``,o=0,s=/* @__PURE__ */ new Set,c=[];for(let n of e){let e=`${r.slug}/${n.name}`,i=Z8e(n.node)||n.name;a+=r.body.slice(o,n.start);for(let e of Q8e(n.node))s.has(e)||(s.add(e),a+=`<span id="${gz(e)}"></span>`);a+=`<div class="toctree-wrapper"><ul><li><a class="reference internal" href="/${gz(e)}">${gz(i)}</a></li></ul></div>`,o=n.end,t.add(e),c.push({slug:e,title:i,body:r.body.slice(n.start,n.end),tag:`MODULE`,sourceSlug:r.slug,parents:[{link:`/${r.slug}`}]})}a+=r.body.slice(o),n.push({...r,body:a,tag:`MODULE`},...c)}return n}function Y8e(e){let t=[],n=[];for(let r of e.children){if(r.type!==`element`)continue;let e=X8e(r);if(e){let n=r.position?.start.offset,i=r.position?.end.offset;typeof n==`number`&&typeof i==`number`&&t.push({node:r,name:e,start:n,end:i})}else n.push(r)}let r=n.flatMap(Y8e);return t.length>1?[...t,...r]:r}function X8e(e){let t=e.properties.id;if(typeof t!=`string`||!t.startsWith(`module-`)||e.tagName!==`section`&&e.tagName!==`div`||e.tagName===`div`&&!e5e(e).includes(`section`))return;let n=t.slice(7);if(/^[\p{ID_Start}_][\p{ID_Continue}]*(?:\.[\p{ID_Start}_][\p{ID_Continue}]*)*$/u.test(n))return n}function Z8e(e){for(let t of e.children)if(t.type===`element`&&/^h[1-6]$/.test(t.tagName))return $8e(t).replace(/\s+/g,` `).trim()}function Q8e(e){let t=[];typeof e.properties.id==`string`&&t.push(e.properties.id);for(let n of e.children)n.type===`element`&&t.push(...Q8e(n));return t}function $8e(e){return e.type===`text`?e.value:e.type!==`element`||e5e(e).includes(`headerlink`)?``:e.children.map($8e).join(``)}function e5e(e){let t=e.properties.className;return Array.isArray(t)?t.map(String):typeof t==`string`?t.split(/\s+/):[]}function gz(e){return e.replaceAll(`&`,`&amp;`).replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`).replaceAll(`"`,`&quot;`)}function t5e(e){let t=new Map(e.map(e=>[e.slug,e])),n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Set,a=/* @__PURE__ */ new Set;function o(e,t){if(e===t)return;let i=n.get(e)??[];i.includes(t)||i.push(t),n.set(e,i);let a=r.get(t)??[];a.includes(e)||a.push(e),r.set(t,a)}for(let n of e){let e=cI(n.body);s5e(e)?a.add(n.slug):c5e(e)&&i.add(n.slug);let r=i5e(e);!r.length&&n.toc&&r.push(cI(n.toc));function s(e,r){let i=r;if(e.type===`element`&&e.tagName===`li`){let a=a5e(e),s=a?o5e(a,n.slug,t):void 0;s&&(o(r,s),i=s)}for(let t of e.children)t.type===`element`&&s(t,i)}for(let e of r)s(e,n.slug)}for(let n of e){if(r.has(n.slug))continue;let e=n.parents?.map(e=>o5e(e.link,n.slug,t)).filter(e=>e!==void 0).pop();e&&o(e,n.slug)}let s=/* @__PURE__ */ new Map;for(let t of e)if(!r.has(t.slug))for(let e of r5e(t.slug))s.set(e,(s.get(e)??0)+1);let c=/* @__PURE__ */ new Set;for(let[e,n]of s)n<2||t.has(e)||(c.add(e),t.set(e,{slug:e,title:Rt.posix.basename(e),body:``}));let l=[...t.values()].sort((e,t)=>e.slug.localeCompare(t.slug));for(let e of l){if(r.has(e.slug))continue;let n=r5e(e.slug).reverse().find(e=>t.has(e));n&&o(n,e.slug)}let u=new Set(e.filter(e=>e.tag||a.has(e.slug)).map(e=>e.slug)),d=!0;for(;d;){d=!1;for(let e of l){let t=n.get(e.slug)??[];!u.has(e.slug)&&t.length&&t.every(e=>u.has(e))&&!i.has(e.slug)&&(u.add(e.slug),d=!0)}}let f=[...l].sort((e,t)=>e.slug===`index`?-1:t.slug===`index`?1:e.slug.localeCompare(t.slug));function p(e,r,i){if(i.has(e)||!c.has(e)&&u.has(e)!==r)return[];let a=t.get(e);if(!a)return[];i.add(e);let o=(n.get(e)??[]).flatMap(e=>p(e,r,i));return c.has(e)?o.length<2?o:[{group:a.title,pages:o}]:o.length?[{group:a.title,pages:[e,...o]}]:[e]}let m=[];for(let e of[!1,!0]){let t=/* @__PURE__ */ new Set,n=[],i=f.filter(t=>c.has(t.slug)||u.has(t.slug)===e),a=i.filter(t=>!(r.get(t.slug)??[]).some(t=>c.has(t)||u.has(t)===e));for(let r of[...a,...i])n.push(...p(r.slug,e,t));let o=e?`API Reference`:`Getting Started`,s=n5e(n,o);s.length&&m.push({group:o,pages:s})}return m}function n5e(e,t){return e.flatMap(e=>{if(typeof e==`string`)return[e];let n=n5e(e.pages,t);return e.group===t?n:[{...e,pages:n}]})}function r5e(e){return[...e.matchAll(/[/.]/g)].map(t=>e.slice(0,t.index))}function i5e(e){let t=[];for(let n of e.children)n.type===`element`&&(u5e(n).includes(`toctree-wrapper`)?t.push(n):t.push(...i5e(n)));return t}function a5e(e){for(let t of e.children){if(t.type!==`element`||[`ul`,`ol`].includes(t.tagName))continue;if(t.tagName===`a`&&typeof t.properties.href==`string`)return t.properties.href;let e=a5e(t);if(e)return e}}function o5e(e,t,n){if(!e||e.includes(`#`)||/^(?:[a-z][\w+.-]*:|\/\/)/i.test(e))return;let r=e.split(`?`)[0]??``;try{r=decodeURIComponent(r)}catch{return}let i;if(r.startsWith(`/`))i=[r.slice(1)];else{let e=Rt.posix.join(Rt.posix.dirname(t),r),n=Rt.posix.join(t,r);i=r.endsWith(`/`)&&t!==`index`&&!t.endsWith(`/index`)?[n,e]:[e,n]}for(let e of i){let t=Rt.posix.normalize(e).replace(/\.(?:html?|fjson)$/,``).replace(/\/$/,``);if((!t||t===`.`)&&(t=`index`),n.has(t))return t;let r=Rt.posix.join(t,`index`);if(n.has(r))return r}}function s5e(e){if(e.type===`element`){let{id:t,href:n}=e.properties;if(typeof t==`string`&&t.startsWith(`module-`)||typeof n==`string`&&/github\.com\/readthedocs\/sphinx-autoapi/.test(n))return!0}return e.children.some(e=>e.type===`element`&&s5e(e))}function c5e(e){if(e.type===`element`){if(u5e(e).includes(`toctree-wrapper`))return!1;if([`p`,`pre`,`table`,`dl`].includes(e.tagName))return e.children.some(e=>l5e(e).trim())}return e.children.some(e=>e.type===`element`&&c5e(e))}function l5e(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(l5e).join(``):``}function u5e(e){let t=e.properties.className;return Array.isArray(t)?t.map(String):typeof t==`string`?t.split(/\s+/):[]}function d5e(e){return hR(yR(vR(e.children)))}function f5e(e,t){let n=WE(e).replace(/\s+/g,` `).trim(),r="`".repeat(Math.max(3,...(n.match(/`+/g)??[]).map(e=>e.length+1))),i=[`${r}python\n${n}\n${r}`],a=m5e(t),o=_z(e,`sig-param`).map(e=>p5e(e,a)).filter(e=>e!==void 0);o.length&&i.push(`**Parameters**`,...o);let s=_z(e,`sig-return-typehint`)[0];if(s){let e=yR(vR(s.children)),t=e.map(e=>e.text).join(``);t&&!a.returns.some(t=>v5e(e,t))&&i.push(`**Returns:** ${hR(e)??_R(t)}`)}return i.join(`
1014
+ `)}seeLink(e){let t=e[`@_link`]||e[`@_description`]||``;if(!t)return``;if(/^https?:/.test(t))return`[${e[`@_description`]||t}](${t})`;let n=this.resolve(t);return n?`[${t.replace(/^\\/,``)}](/${n})`:`\`${t}\``}resolveInline(e){return e.replace(/\{@(?:see|link)\s+([^\s}]+)\s*([^}]*)\}/g,(e,t,n)=>{let r=n.trim()||t.replace(/^\\/,``);if(/^https?:/.test(t))return`[${r}](${t})`;let i=this.resolve(t);return i?`[${r}](/${i})`:`\`${t}\``})}resolve(e){let t=e.replace(/^\\/,``).split(`::`)[0]??``;return this.slugByName.get(t)}firstSentence(e){let t=[e?.description??``,e?.[`long-description`]??``].join(` `).replace(/\{@(?:see|link)\s+([^\s}]+)[^}]*\}/g,`$1`).replace(/\s+/g,` `).trim();return t?gR(t.split(/(?<=\.)\s/)[0]??t,160):void 0}typeTokens(e){return W4e(e,/\\?[A-Za-z_]\w*(?:\\[A-Za-z_]\w*)*/g,e=>{let t=this.resolve(e);return{text:e,href:t?`/${t}`:void 0}})}typeLink(e){let t=[];for(let n of this.typeTokens(e)){let e=t.at(-1);e&&!e.href&&!n.href?e.text+=n.text:t.push({...n})}return t.map(({text:e,href:t})=>t?`[${_R(e)}](${t})`:_R(e)).join(``)}codeBlock(e){return`\`\`\`php\n${e}\n\`\`\``}};function K8e(e){return e.replace(/`/g,``)}function q8e(e,t,n){let r=Rt.posix.relative(Rt.posix.dirname(n),Rt.posix.dirname(t));r&&p(e,`element`,e=>{if(e.tagName!==`img`||typeof e.properties.src!=`string`)return;let t=mR(e.properties.src);if(!t||t.startsWith(`/`)||t.startsWith(`#`)||/^[a-z][a-z0-9+.-]*:/i.test(t))return;let n=t.search(/[?#]/),i=n===-1?t:t.slice(0,n);if(!i)return;let a=n===-1?``:t.slice(n),o=Rt.posix.join(r,i);e.properties.src=`${o.startsWith(`../`)?o:`./${o}`}${a}`})}function J8e(e){let t=new Set(e.map(e=>e.slug)),n=[];for(let r of e){let e=Y8e(cI(r.body)).sort((e,t)=>e.start-t.start),i=e.map(e=>`${r.slug}/${e.name}`);if(e.length<2||new Set(i).size!==i.length||i.some(e=>t.has(e))){n.push(r);continue}let a=``,o=0,s=/* @__PURE__ */ new Set,c=[];for(let n of e){let e=`${r.slug}/${n.name}`,i=Z8e(n.node)||n.name;a+=r.body.slice(o,n.start);for(let e of Q8e(n.node))s.has(e)||(s.add(e),a+=`<span id="${gz(e)}"></span>`);a+=`<div class="toctree-wrapper"><ul><li><a class="reference internal" href="/${gz(e)}">${gz(i)}</a></li></ul></div>`,o=n.end,t.add(e),c.push({slug:e,title:i,body:r.body.slice(n.start,n.end),tag:`MODULE`,sourceSlug:r.slug,parents:[{link:`/${r.slug}`}]})}a+=r.body.slice(o),n.push({...r,body:a,tag:`MODULE`},...c)}return n}function Y8e(e){let t=[],n=[];for(let r of e.children){if(r.type!==`element`)continue;let e=X8e(r);if(e){let n=r.position?.start.offset,i=r.position?.end.offset;typeof n==`number`&&typeof i==`number`&&t.push({node:r,name:e,start:n,end:i})}else n.push(r)}let r=n.flatMap(Y8e);return t.length>1?[...t,...r]:r}function X8e(e){let t=e.properties.id;if(typeof t!=`string`||!t.startsWith(`module-`)||e.tagName!==`section`&&e.tagName!==`div`||e.tagName===`div`&&!e5e(e).includes(`section`))return;let n=t.slice(7);if(/^[\p{ID_Start}_][\p{ID_Continue}]*(?:\.[\p{ID_Start}_][\p{ID_Continue}]*)*$/u.test(n))return n}function Z8e(e){for(let t of e.children)if(t.type===`element`&&/^h[1-6]$/.test(t.tagName))return $8e(t).replace(/\s+/g,` `).trim()}function Q8e(e){let t=[];typeof e.properties.id==`string`&&t.push(e.properties.id);for(let n of e.children)n.type===`element`&&t.push(...Q8e(n));return t}function $8e(e){return e.type===`text`?e.value:e.type!==`element`||e5e(e).includes(`headerlink`)?``:e.children.map($8e).join(``)}function e5e(e){let t=e.properties.className;return Array.isArray(t)?t.map(String):typeof t==`string`?t.split(/\s+/):[]}function gz(e){return e.replaceAll(`&`,`&amp;`).replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`).replaceAll(`"`,`&quot;`)}function t5e(e){let t=new Map(e.map(e=>[e.slug,e])),n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Set,a=/* @__PURE__ */ new Set;function o(e,t){if(e===t)return;let i=n.get(e)??[];i.includes(t)||i.push(t),n.set(e,i);let a=r.get(t)??[];a.includes(e)||a.push(e),r.set(t,a)}for(let n of e){let e=cI(n.body);s5e(e)?a.add(n.slug):c5e(e)&&i.add(n.slug);let r=i5e(e);!r.length&&n.toc&&r.push(cI(n.toc));function s(e,r){let i=r;if(e.type===`element`&&e.tagName===`li`){let a=a5e(e),s=a?o5e(a,n.slug,t):void 0;s&&(o(r,s),i=s)}for(let t of e.children)t.type===`element`&&s(t,i)}for(let e of r)s(e,n.slug)}for(let n of e){if(r.has(n.slug))continue;let e=n.parents?.map(e=>o5e(e.link,n.slug,t)).filter(e=>e!==void 0).pop();e&&o(e,n.slug)}let s=/* @__PURE__ */ new Map;for(let t of e)if(!r.has(t.slug))for(let e of r5e(t.slug))s.set(e,(s.get(e)??0)+1);let c=/* @__PURE__ */ new Set;for(let[e,n]of s)n<2||t.has(e)||(c.add(e),t.set(e,{slug:e,title:Rt.posix.basename(e),body:``}));let l=[...t.values()].sort((e,t)=>e.slug.localeCompare(t.slug));for(let e of l){if(r.has(e.slug))continue;let n=r5e(e.slug).reverse().find(e=>t.has(e));n&&o(n,e.slug)}let u=new Set(e.filter(e=>e.tag||a.has(e.slug)).map(e=>e.slug)),d=!0;for(;d;){d=!1;for(let e of l){let t=n.get(e.slug)??[];!u.has(e.slug)&&t.length&&t.every(e=>u.has(e))&&!i.has(e.slug)&&(u.add(e.slug),d=!0)}}let f=[...l].sort((e,t)=>e.slug===`index`?-1:t.slug===`index`?1:e.slug.localeCompare(t.slug));function p(e,r,i){if(i.has(e)||!c.has(e)&&u.has(e)!==r)return[];let a=t.get(e);if(!a)return[];i.add(e);let o=(n.get(e)??[]).flatMap(e=>p(e,r,i));return c.has(e)?o.length<2?o:[{group:a.title,pages:o}]:o.length?[{group:a.title,pages:[e,...o]}]:[e]}let m=[];for(let e of[!1,!0]){let t=/* @__PURE__ */ new Set,n=[],i=f.filter(t=>c.has(t.slug)||u.has(t.slug)===e),a=i.filter(t=>!(r.get(t.slug)??[]).some(t=>c.has(t)||u.has(t)===e));for(let r of[...a,...i])n.push(...p(r.slug,e,t));let o=e?`API Reference`:`Getting Started`,s=n5e(n,o);s.length&&m.push({group:o,pages:s})}return m}function n5e(e,t){return e.flatMap(e=>{if(typeof e==`string`)return[e];let n=n5e(e.pages,t);return e.group===t?n:[{...e,pages:n}]})}function r5e(e){return[...e.matchAll(/[/.]/g)].map(t=>e.slice(0,t.index))}function i5e(e){let t=[];for(let n of e.children)n.type===`element`&&(u5e(n).includes(`toctree-wrapper`)?t.push(n):t.push(...i5e(n)));return t}function a5e(e){for(let t of e.children){if(t.type!==`element`||[`ul`,`ol`].includes(t.tagName))continue;if(t.tagName===`a`&&typeof t.properties.href==`string`)return t.properties.href;let e=a5e(t);if(e)return e}}function o5e(e,t,n){if(!e||e.includes(`#`)||/^(?:[a-z][\w+.-]*:|\/\/)/i.test(e))return;let r=e.split(`?`)[0]??``;try{r=decodeURIComponent(r)}catch{return}let i;if(r.startsWith(`/`))i=[r.slice(1)];else{let e=Rt.posix.join(Rt.posix.dirname(t),r),n=Rt.posix.join(t,r);i=r.endsWith(`/`)&&t!==`index`&&!t.endsWith(`/index`)?[n,e]:[e,n]}for(let e of i){let t=Rt.posix.normalize(e).replace(/\.(?:html?|fjson)$/,``).replace(/\/$/,``);if((!t||t===`.`)&&(t=`index`),n.has(t))return t;let r=Rt.posix.join(t,`index`);if(n.has(r))return r}}function s5e(e){if(e.type===`element`){let{id:t,href:n}=e.properties;if(typeof t==`string`&&t.startsWith(`module-`)||typeof n==`string`&&/github\.com\/readthedocs\/sphinx-autoapi/.test(n))return!0}return e.children.some(e=>e.type===`element`&&s5e(e))}function c5e(e){if(e.type===`element`){if(u5e(e).includes(`toctree-wrapper`))return!1;if([`p`,`pre`,`table`,`dl`].includes(e.tagName))return e.children.some(e=>l5e(e).trim())}return e.children.some(e=>e.type===`element`&&c5e(e))}function l5e(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(l5e).join(``):``}function u5e(e){let t=e.properties.className;return Array.isArray(t)?t.map(String):typeof t==`string`?t.split(/\s+/):[]}function d5e(e){return hR(yR(vR(e.children)))}function f5e(e,t){let n=GE(e).replace(/\s+/g,` `).trim(),r="`".repeat(Math.max(3,...(n.match(/`+/g)??[]).map(e=>e.length+1))),i=[`${r}python\n${n}\n${r}`],a=m5e(t),o=_z(e,`sig-param`).map(e=>p5e(e,a)).filter(e=>e!==void 0);o.length&&i.push(`**Parameters**`,...o);let s=_z(e,`sig-return-typehint`)[0];if(s){let e=yR(vR(s.children)),t=e.map(e=>e.text).join(``);t&&!a.returns.some(t=>v5e(e,t))&&i.push(`**Returns:** ${hR(e)??_R(t)}`)}return i.join(`
1015
1015
 
1016
- `)}function p5e(e,t){let n=vR(e.children),r=n.map(e=>e.text).join(``),i=xR(r,`:`);if(i===-1)return;let a=r.slice(0,i).trim();if(!a)return;let o=xR(r,`=`),s=o===-1?r.length:o,c=yR(bR(n,i+1,s));if(c.map(e=>e.text).join(``)&&!t.parameters.get(a)?.some(e=>v5e(c,e)))return SR(a,c,o!==-1||a.startsWith(`*`))}function m5e(e){let t={parameters:/* @__PURE__ */ new Map,returns:[]};if(!e)return t;for(let n of h5e(e)){let e=``;for(let r of n.children)r.type===`element`&&(r.tagName===`dt`?e=WE(r).trim().replace(/:\s*$/,``).replace(/\s+/g,` `).toLowerCase():r.tagName===`dd`&&(e===`return type`||e===`rtype`?t.returns.push(yR(vR(r.children))):(e===`parameter`||e===`parameters`)&&g5e(r,t.parameters)))}return t}function h5e(e){let t=[];for(let n of e.children){if(n.type!==`element`)continue;let e=n.properties.className,r=Array.isArray(e)?e.map(String):String(e??``).split(` `);n.tagName===`dl`&&r.includes(`py`)||(n.tagName===`dl`&&r.includes(`field-list`)?t.push(n):t.push(...h5e(n)))}return t}function g5e(e,t){for(let n of e.children){if(n.type!==`element`)continue;if(n.tagName!==`p`){g5e(n,t);continue}let e=n.children.find(e=>e.type!==`text`||e.value.trim()!==``);if(e?.type!==`element`||e.tagName!==`strong`)continue;let r=WE(e).trim(),i=vR(n.children),a=i.map(e=>e.text).join(``),o=a.indexOf(r)+r.length,s=a.indexOf(`(`,o);if(s===-1||a.slice(o,s).trim()!==``)continue;let c=_5e(a,s);if(c===-1)continue;let l=t.get(r)??[];l.push(yR(bR(i,s+1,c))),t.set(r,l)}}function _5e(e,t){let n=0,r,i=!1;for(let a=t;a<e.length;a+=1){let t=e[a];if(i)i=!1;else if(r)t===`\\`?i=!0:t===r&&(r=void 0);else if(t===`"`||t===`'`)r=t;else if(t===`(`)n+=1;else if(t===`)`&&(--n,n===0))return a}return-1}function v5e(e,t){let n=e=>JSON.stringify(e.map(e=>e.href?[`href`,e.href]:[`text`,e.text.replace(/\s+/g,``)]).filter(([,e])=>e));return n(e)===n(t)}function _z(e,t){let n=[];for(let r of e.children){if(r.type!==`element`)continue;let e=r.properties.className;Array.isArray(e)&&e.includes(t)||typeof e==`string`&&e.split(` `).includes(t)?n.push(r):n.push(..._z(r,t))}return n}const y5e=/* @__PURE__ */ new Set([`genindex`,`search`,`py-modindex`]),b5e=/(`{3,})[^\S\n]*\n[> ]*@@mintlang:([\w+-]+)@@[^\S\n]*\n/g,x5e={note:`Note`,hint:`Tip`,tip:`Tip`,important:`Info`,seealso:`Info`,warning:`Warning`,caution:`Warning`,danger:`Warning`,error:`Warning`,attention:`Warning`};async function S5e(e){let t=J8e(await w5e(e)),n=new Set(t.map(e=>e.slug)),r=C5e(t),i=t.map(e=>E5e(e,n,r)),[a,...o]=t5e(t),[s,...c]=a?.pages??[];return a?.group===`Getting Started`&&typeof s==`string`&&!c.length?{pages:i,groups:o,overview:s}:{pages:i,groups:a?[a,...o]:[]}}function C5e(e){let t=/* @__PURE__ */ new Map,n=[...e.filter(e=>!e.sourceSlug),...e.filter(e=>e.sourceSlug)];for(let e of n){let n=e.sourceSlug??e.slug,r=t.get(n)??/* @__PURE__ */ new Map;p(cI(e.body),`element`,t=>{typeof t.properties.id==`string`&&r.set(vz(t.properties.id),e.slug)}),t.set(n,r)}return t}async function w5e(e){let t=[];for(let n of await T5e(e)){let r=await OF.default.readJson(n);if(!r||typeof r!=`object`||!(`body`in r)||typeof r.body!=`string`||!r.body.trim())continue;let i=`current_page_name`in r&&typeof r.current_page_name==`string`?r.current_page_name:Rt.relative(e,n).split(Rt.sep).join(`/`).replace(/\.fjson$/,``);if(y5e.has(i)||i.startsWith(`_modules`))continue;let a=[];if(`parents`in r&&Array.isArray(r.parents))for(let e of r.parents)e&&typeof e==`object`&&`link`in e&&typeof e.link==`string`&&a.push({link:e.link});t.push({slug:i,title:L5e(`title`in r&&typeof r.title==`string`?r.title:i),body:r.body,tag:/<dl class="py[ "]/.test(r.body)?`MODULE`:void 0,toc:`toc`in r&&typeof r.toc==`string`?r.toc:void 0,parents:a})}return t}async function T5e(e){let t=[];for(let n of await OF.default.readdir(e,{withFileTypes:!0})){if(n.name.startsWith(`_`))continue;let r=Rt.join(e,n.name);n.isDirectory()?t.push(...await T5e(r)):n.name.endsWith(`.fjson`)&&t.push(r)}return t.sort()}function E5e(e,t,n){let r=cI(e.body),i=/* @__PURE__ */ new Map,a=`MINTSPHINX${In().replaceAll(`-`,``)}`;function o(e){let t=`${a}BLOCK${i.size}END`;return i.set(t,e),t}function s(e){return{type:`element`,tagName:`p`,properties:{},children:[{type:`text`,value:o(e)}]}}sI(r),D5e(r,e.title);let c=I5e(r);O5e(r,e,t,n),q8e(r,e.sourceSlug??e.slug,e.slug),N5e(r),A5e(r,s),yz(r,0,s),j5e(r,o),M5e(r);let l=oR(r).replace(b5e,`$1$2
1017
- `).replace(/^[> ]*@@mintlang:[\w+-]+@@\n?/gm,``);for(let[e,t]of i)l=l.replaceAll(e,()=>t);return{slug:e.slug,title:e.title,description:c,tag:e.tag,content:l}}function D5e(e,t){p(e,`element`,(e,t,n)=>{if(!n||typeof t!=`number`)return;let r=e.tagName===`a`&&bz(e).includes(`headerlink`),i=e.tagName===`a`&&e.children.some(e=>e.type===`element`&&bz(e).includes(`viewcode-link`));if(r||i)return n.children.splice(t,1),t});let n=!1;p(e,`element`,(e,r,i)=>{if(!n&&i&&typeof r==`number`&&(e.tagName===`h1`||/^h[1-6]$/.test(e.tagName)&&L5e(WE(e))===t))return n=!0,i.children.splice(r,1),r})}function O5e(e,t,n,r){p(e,`element`,e=>{if(e.tagName!==`a`||typeof e.properties.href!=`string`)return;let i=k5e(e.properties.href,t,n,r);i===void 0?delete e.properties.href:e.properties.href=i})}function k5e(e,t,n,r){let i=t.sourceSlug??t.slug,a=mR(e);if(a===void 0||/^(https?:|mailto:)/i.test(a))return a;let o=a.indexOf(`#`),s=o<0?``:`#${vz(a.slice(o+1))}`,c=o<0?a:a.slice(0,o),l=c.indexOf(`?`),u=l<0?``:c.slice(l),d=l<0?c:c.slice(0,l);function f(e){let n=e;return s.length>1&&(n=r.get(e)?.get(s.slice(1))??e),!d&&n===t.slug?`${u}${s}`:`/${n}${u}${s}`}if(!d)return f(i);try{d=decodeURIComponent(d)}catch{return}let p=Rt.posix.dirname(i),m=[Rt.posix.join(p,d),Rt.posix.join(i,d)];d.endsWith(`/`)&&Rt.posix.basename(i)!==`index`&&m.reverse(),d.startsWith(`/`)&&(m=[d.slice(1)]);for(let e of m){let t=Rt.posix.normalize(e).replace(/\.(?:html?|fjson)$/,``).replace(/\/$/,``);if((t===`.`||t===``)&&(t=`index`),n.has(t))return f(t);let r=Rt.posix.join(t,`index`);if(n.has(r))return f(r)}}function vz(e){return JE(e).replace(/[<>"&]/g,``).replace(/\s+/g,`-`)}function A5e(e,t){let n=[];for(let r of e.children){if(r.type===`element`){let e=r.properties.id;typeof e==`string`&&!(r.tagName===`dt`&&bz(r).includes(`sig`))&&n.push(t(`<span id=${dR(vz(e))} />`)),A5e(r,t)}r.type!==`doctype`&&r.type!==`mdxjsEsm`&&n.push(r)}e.children=n}function j5e(e,t){let n=[];for(let r of e.children){if(r.type===`element`){if(r.tagName===`code`){let e=d5e(r);if(e){n.push({type:`text`,value:t(e)});continue}}r.tagName!==`pre`&&j5e(r,t)}r.type!==`doctype`&&r.type!==`mdxjsEsm`&&n.push(r)}e.children=n}function M5e(e){p(e,`element`,e=>{if(e.tagName!==`div`||!bz(e).includes(`admonition`))return;let t=bz(e).find(e=>e in x5e),n=e.children.filter(e=>!(e.type===`element`&&bz(e).includes(`admonition-title`)));return e.tagName=x5e[t??``]??`Note`,e.properties={},e.children=aI(n),ct})}function N5e(e){p(e,`element`,e=>{let t=bz(e).find(e=>e.startsWith(`highlight-`))?.slice(10);if(t&&t!=="default"&&t!==`none`)return p(e,`element`,e=>{if(e.tagName===`pre`)return e.children.unshift({type:`text`,value:`@@mintlang:${t}@@\n`}),ct}),ct})}function yz(e,t,n){let r=[];for(let i of e.children)i.type===`element`&&i.tagName===`dl`&&bz(i).includes(`py`)?r.push(...P5e(i,t,n)):(i.type===`element`&&yz(i,t,n),i.type!==`doctype`&&i.type!==`mdxjsEsm`&&r.push(i));e.children=r}function P5e(e,t,n){let r=bz(e).some(e=>[`method`,`function`].includes(e)),i=[];for(let[a,o]of e.children.entries())if(o.type===`element`){if(o.tagName===`dt`&&bz(o).includes(`sig`)){let s=F5e(o);if(s){let e=z4e(r?`${s}()`:s),a=o.properties.id,c=typeof a==`string`?` {#${vz(a)}}`:``;i.push(n(`${`#`.repeat(Math.min(3+t,6))} ${e}${c}`))}let c=e.children.slice(a+1).find(e=>e.type===`element`&&e.tagName===`dd`);i.push(n(f5e(o,c)))}else o.tagName===`dd`&&(yz(o,t+1,n),i.push(...o.children))}return i}function F5e(e){let t;return p(e,`element`,e=>{if(bz(e).includes(`descname`))return t=WE(e).trim(),ct}),t}function I5e(e){let t;return p(e,`element`,(e,n,r)=>{if(t||e.tagName!==`p`)return;if(r&&r.type===`element`&&r.tagName===`li`)return ct;let i=WE(e).replace(/\s+/g,` `).trim();if(!i||i.startsWith(`Bases:`))return;let a=i.split(/(?<=\.)\s/)[0]??i;t=a.length>160?`${a.slice(0,159)}…`:a}),t}function bz(e){let t=e.properties.className;return Array.isArray(t)?t.map(String):typeof t==`string`?t.split(` `):[]}function L5e(e){return e.replace(/<[^>]+>/g,``).replace(/&amp;/g,`&`).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`).replace(/&quot;/g,`"`).replace(/&#(\d+);/g,(e,t)=>{let n=Number(t);return n<=1114111?String.fromCodePoint(n):`&#${t};`}).replace(/\s+/g,` `).trim()}const xz={project:1,module:2,namespace:4,enum:8,enumMember:16,variable:32,function:64,class:128,interface:256,constructor:512,property:1024,method:2048,callSignature:4096,indexSignature:8192,constructorSignature:16384,parameter:32768,typeLiteral:65536,accessor:262144,getSignature:524288,setSignature:1048576,typeAlias:2097152},Sz=[{kind:xz.class,group:`Classes`,dir:`classes`,tag:`CLASS`,symbolKind:`class`},{kind:xz.interface,group:`Interfaces`,dir:`interfaces`,tag:`INTERFACE`,symbolKind:`interface`},{kind:xz.enum,group:`Enumerations`,dir:`enums`,tag:`ENUM`,symbolKind:`enum`},{kind:xz.function,group:`Functions`,dir:`functions`,tag:`FUNCTION`,symbolKind:`function`},{kind:xz.typeAlias,group:`Type Aliases`,dir:`types`,tag:`TYPE`,symbolKind:`type`},{kind:xz.variable,group:`Variables`,dir:`variables`,tag:`VARIABLE`,symbolKind:`variable`}],R5e=/* @__PURE__ */ new Set([xz.property,xz.accessor]);function Cz(e,t){if(t||R5e.has(e.kind))return XE(`${t?`member`:`property`}-${e.name}`,{decamelize:!0});if(e.kind===xz.method)return QE(`${e.name}()`)}const z5e=/* @__PURE__ */ new Set([xz.constructor,xz.property,xz.accessor,xz.method]),B5e=new Map([...Sz.map(e=>[e.kind,e.group]),[xz.namespace,`Namespaces`],[xz.constructor,`Constructors`],[xz.property,`Properties`],[xz.accessor,`Accessors`],[xz.method,`Methods`]]);function V5e(e){let t=new Map((e.children??[]).map(e=>[e.id,e.kind]));return(e.groups??[]).some(e=>e.categories?.length||(e.children??[]).some(n=>{let r=B5e.get(t.get(n)??-1);return r!==void 0&&r!==e.title}))}async function H5e(e){let t=await OF.default.readJson(e),n=t.children?.some(e=>e.kind===xz.module)===!0?t.children?.filter(e=>e.kind===xz.module)??[]:[t],r=n.length>1,i=/* @__PURE__ */ new Map;for(let e of n){let t=r?Ez(e.name):``;for(let{node:n,namespacePath:r}of Tz(e)){let e=Sz.find(e=>e.kind===n.kind);e&&!n.flags?.isPrivate&&i.set(n.id,Rt.posix.join(t,...r.map(Ez),e.dir,Ez(n.name)))}}let a=/* @__PURE__ */ new Map;for(let e of n)for(let{node:t}of Tz(e)){let e=i.get(t.id);if(e)for(let n of t.children??[]){if(n.flags?.isPrivate)continue;let r=Cz(n,t.kind===xz.enum);r&&a.set(n.id,`${e}#${r}`)}}let o=new q5e(i,a),s=[],c=[],l=/* @__PURE__ */ new Map;for(let e of n){let t=Tz(e),n=[];for(let a of Sz){let c=t.filter(({node:e})=>e.kind===a.kind&&!e.flags?.isPrivate).sort((e,t)=>wz(e).localeCompare(wz(t)));if(c.length===0)continue;let l=c.map(e=>o.renderPage(e.node,a,wz(e)));s.push(...l);for(let t of c){if(t.node.kind!==xz.class&&t.node.kind!==xz.interface)continue;let n=i.get(t.node.id)??Rt.posix.join(r?Ez(e.name):``,...t.namespacePath.map(Ez),a.dir,Ez(t.node.name));s.push(...o.renderMemberPages(t.node,n,wz(t)))}n.push({group:a.group,pages:l.map(e=>e.slug)})}let a=U5e(e)?W5e(e,i):[],u=a.length?a:n;r?l.set(e.id,{path:e.name.split(`/`),group:{group:e.name,pages:u}}):c.push(...u)}let u=[],d=[],f,p=new Set(s.map(e=>e.slug.toLowerCase())),m=[t,...n.filter(e=>e!==t)],h=[];for(let e of m){if(!e.readme?.some(e=>e.text.trim()))continue;let n=e===t?``:Ez(e.name).replace(/^\.+$/,`item`),r=Rt.posix.join(n,`package-overview`),a=r,o=2;for(;p.has(a.toLowerCase());)a=`${r}-${o}`,o+=1;p.add(a.toLowerCase()),i.set(e.id,a),h.push({node:e,slug:a})}for(let{node:e,slug:n}of h){let r=e===t,a=new Set(Tz(e).map(({node:e})=>i.get(e.id))),c=s.filter(e=>!e.target?.parent&&(r||a.has(e.slug))),p=o.renderOverview(e,n,c,r?void 0:t.name);u.push(p);let m=l.get(e.id)?.group;r?f=n:m?m.pages.unshift(n):f?d.push({group:`${e.name} Overview`,pages:[n]}):f=n}return{pages:[...u,...s],groups:[...d,...c,...CR([...l.values()].filter(({group:e})=>e.pages.length))],...f?{overview:f}:{}}}function U5e(e){return e.categories?.length||V5e(e)?!0:(e.children??[]).some(e=>e.kind===xz.namespace&&U5e(e))}function W5e(e,t){return G5e(e,t,/* @__PURE__ */ new Map).filter(e=>typeof e!=`string`)}function G5e(e,t,n){let r=new Map((e.children??[]).map(e=>[e.id,e])),i=(e=[])=>[...new Set(e)].flatMap(e=>{let i=r.get(e);if(!i)return[];let o=n.get(e)??0;if(i.kind===xz.namespace)return o>0?[]:(n.set(e,1),a(i.name,G5e(i,t,n)));let s=t.get(e);if(!s)return[];if(o>=8)throw Error(`TypeDoc declaration "${gR(i.name,64)}" is listed in more than 8 navigation groups`);return n.set(e,o+1),[s]}),a=(e,t)=>{let n=K5e(e);return n&&t.length?[{group:n,pages:t}]:[]};return e.categories?.length?e.categories.flatMap(e=>a(e.title,i(e.children))):(e.groups??[]).flatMap(e=>a(e.title,e.categories?.length?e.categories.flatMap(e=>a(e.title,i(e.children))):i(e.children)))}function wz({node:e,namespacePath:t}){return[...t,e.name].join(`.`)}function Tz(e,t=[]){let n=[];for(let r of e.children??[])r.kind===xz.namespace?n.push(...Tz(r,[...t,r.name])):n.push({node:r,namespacePath:t});return n}function K5e(e){return String(e??``).replace(/\s+/g,` `).trim()}function Ez(e){if(e.length>512)throw Error(`TypeDoc declaration name "${gR(e,64)}" exceeds 512 characters`);return e.replace(/[^a-zA-Z0-9-_.]+/g,`-`).replace(/^-+|-+$/g,``)||`item`}var q5e=class{constructor(e,t=/* @__PURE__ */ new Map){this.slugById=e,this.memberSlugById=t}renderOverview(e,t,n,r){let i=c3e(this.partsMarkdown(e.readme??[]));I4e(i,e=>mR(e.url));let a=[];for(let e of Sz){let t=n.filter(t=>t.target?.kind===e.symbolKind);t.length!==0&&a.push(`## ${e.group}`,t.map(e=>`- [${_R(e.title)}](/${e.slug})`).join(`
1016
+ `)}function p5e(e,t){let n=vR(e.children),r=n.map(e=>e.text).join(``),i=xR(r,`:`);if(i===-1)return;let a=r.slice(0,i).trim();if(!a)return;let o=xR(r,`=`),s=o===-1?r.length:o,c=yR(bR(n,i+1,s));if(c.map(e=>e.text).join(``)&&!t.parameters.get(a)?.some(e=>v5e(c,e)))return SR(a,c,o!==-1||a.startsWith(`*`))}function m5e(e){let t={parameters:/* @__PURE__ */ new Map,returns:[]};if(!e)return t;for(let n of h5e(e)){let e=``;for(let r of n.children)r.type===`element`&&(r.tagName===`dt`?e=GE(r).trim().replace(/:\s*$/,``).replace(/\s+/g,` `).toLowerCase():r.tagName===`dd`&&(e===`return type`||e===`rtype`?t.returns.push(yR(vR(r.children))):(e===`parameter`||e===`parameters`)&&g5e(r,t.parameters)))}return t}function h5e(e){let t=[];for(let n of e.children){if(n.type!==`element`)continue;let e=n.properties.className,r=Array.isArray(e)?e.map(String):String(e??``).split(` `);n.tagName===`dl`&&r.includes(`py`)||(n.tagName===`dl`&&r.includes(`field-list`)?t.push(n):t.push(...h5e(n)))}return t}function g5e(e,t){for(let n of e.children){if(n.type!==`element`)continue;if(n.tagName!==`p`){g5e(n,t);continue}let e=n.children.find(e=>e.type!==`text`||e.value.trim()!==``);if(e?.type!==`element`||e.tagName!==`strong`)continue;let r=GE(e).trim(),i=vR(n.children),a=i.map(e=>e.text).join(``),o=a.indexOf(r)+r.length,s=a.indexOf(`(`,o);if(s===-1||a.slice(o,s).trim()!==``)continue;let c=_5e(a,s);if(c===-1)continue;let l=t.get(r)??[];l.push(yR(bR(i,s+1,c))),t.set(r,l)}}function _5e(e,t){let n=0,r,i=!1;for(let a=t;a<e.length;a+=1){let t=e[a];if(i)i=!1;else if(r)t===`\\`?i=!0:t===r&&(r=void 0);else if(t===`"`||t===`'`)r=t;else if(t===`(`)n+=1;else if(t===`)`&&(--n,n===0))return a}return-1}function v5e(e,t){let n=e=>JSON.stringify(e.map(e=>e.href?[`href`,e.href]:[`text`,e.text.replace(/\s+/g,``)]).filter(([,e])=>e));return n(e)===n(t)}function _z(e,t){let n=[];for(let r of e.children){if(r.type!==`element`)continue;let e=r.properties.className;Array.isArray(e)&&e.includes(t)||typeof e==`string`&&e.split(` `).includes(t)?n.push(r):n.push(..._z(r,t))}return n}const y5e=/* @__PURE__ */ new Set([`genindex`,`search`,`py-modindex`]),b5e=/(`{3,})[^\S\n]*\n[> ]*@@mintlang:([\w+-]+)@@[^\S\n]*\n/g,x5e={note:`Note`,hint:`Tip`,tip:`Tip`,important:`Info`,seealso:`Info`,warning:`Warning`,caution:`Warning`,danger:`Warning`,error:`Warning`,attention:`Warning`};async function S5e(e){let t=J8e(await w5e(e)),n=new Set(t.map(e=>e.slug)),r=C5e(t),i=t.map(e=>E5e(e,n,r)),[a,...o]=t5e(t),[s,...c]=a?.pages??[];return a?.group===`Getting Started`&&typeof s==`string`&&!c.length?{pages:i,groups:o,overview:s}:{pages:i,groups:a?[a,...o]:[]}}function C5e(e){let t=/* @__PURE__ */ new Map,n=[...e.filter(e=>!e.sourceSlug),...e.filter(e=>e.sourceSlug)];for(let e of n){let n=e.sourceSlug??e.slug,r=t.get(n)??/* @__PURE__ */ new Map;p(cI(e.body),`element`,t=>{typeof t.properties.id==`string`&&r.set(vz(t.properties.id),e.slug)}),t.set(n,r)}return t}async function w5e(e){let t=[];for(let n of await T5e(e)){let r=await OF.default.readJson(n);if(!r||typeof r!=`object`||!(`body`in r)||typeof r.body!=`string`||!r.body.trim())continue;let i=`current_page_name`in r&&typeof r.current_page_name==`string`?r.current_page_name:Rt.relative(e,n).split(Rt.sep).join(`/`).replace(/\.fjson$/,``);if(y5e.has(i)||i.startsWith(`_modules`))continue;let a=[];if(`parents`in r&&Array.isArray(r.parents))for(let e of r.parents)e&&typeof e==`object`&&`link`in e&&typeof e.link==`string`&&a.push({link:e.link});t.push({slug:i,title:L5e(`title`in r&&typeof r.title==`string`?r.title:i),body:r.body,tag:/<dl class="py[ "]/.test(r.body)?`MODULE`:void 0,toc:`toc`in r&&typeof r.toc==`string`?r.toc:void 0,parents:a})}return t}async function T5e(e){let t=[];for(let n of await OF.default.readdir(e,{withFileTypes:!0})){if(n.name.startsWith(`_`))continue;let r=Rt.join(e,n.name);n.isDirectory()?t.push(...await T5e(r)):n.name.endsWith(`.fjson`)&&t.push(r)}return t.sort()}function E5e(e,t,n){let r=cI(e.body),i=/* @__PURE__ */ new Map,a=`MINTSPHINX${In().replaceAll(`-`,``)}`;function o(e){let t=`${a}BLOCK${i.size}END`;return i.set(t,e),t}function s(e){return{type:`element`,tagName:`p`,properties:{},children:[{type:`text`,value:o(e)}]}}sI(r),D5e(r,e.title);let c=I5e(r);O5e(r,e,t,n),q8e(r,e.sourceSlug??e.slug,e.slug),N5e(r),A5e(r,s),yz(r,0,s),j5e(r,o),M5e(r);let l=oR(r).replace(b5e,`$1$2
1017
+ `).replace(/^[> ]*@@mintlang:[\w+-]+@@\n?/gm,``);for(let[e,t]of i)l=l.replaceAll(e,()=>t);return{slug:e.slug,title:e.title,description:c,tag:e.tag,content:l}}function D5e(e,t){p(e,`element`,(e,t,n)=>{if(!n||typeof t!=`number`)return;let r=e.tagName===`a`&&bz(e).includes(`headerlink`),i=e.tagName===`a`&&e.children.some(e=>e.type===`element`&&bz(e).includes(`viewcode-link`));if(r||i)return n.children.splice(t,1),t});let n=!1;p(e,`element`,(e,r,i)=>{if(!n&&i&&typeof r==`number`&&(e.tagName===`h1`||/^h[1-6]$/.test(e.tagName)&&L5e(GE(e))===t))return n=!0,i.children.splice(r,1),r})}function O5e(e,t,n,r){p(e,`element`,e=>{if(e.tagName!==`a`||typeof e.properties.href!=`string`)return;let i=k5e(e.properties.href,t,n,r);i===void 0?delete e.properties.href:e.properties.href=i})}function k5e(e,t,n,r){let i=t.sourceSlug??t.slug,a=mR(e);if(a===void 0||/^(https?:|mailto:)/i.test(a))return a;let o=a.indexOf(`#`),s=o<0?``:`#${vz(a.slice(o+1))}`,c=o<0?a:a.slice(0,o),l=c.indexOf(`?`),u=l<0?``:c.slice(l),d=l<0?c:c.slice(0,l);function f(e){let n=e;return s.length>1&&(n=r.get(e)?.get(s.slice(1))??e),!d&&n===t.slug?`${u}${s}`:`/${n}${u}${s}`}if(!d)return f(i);try{d=decodeURIComponent(d)}catch{return}let p=Rt.posix.dirname(i),m=[Rt.posix.join(p,d),Rt.posix.join(i,d)];d.endsWith(`/`)&&Rt.posix.basename(i)!==`index`&&m.reverse(),d.startsWith(`/`)&&(m=[d.slice(1)]);for(let e of m){let t=Rt.posix.normalize(e).replace(/\.(?:html?|fjson)$/,``).replace(/\/$/,``);if((t===`.`||t===``)&&(t=`index`),n.has(t))return f(t);let r=Rt.posix.join(t,`index`);if(n.has(r))return f(r)}}function vz(e){return YE(e).replace(/[<>"&]/g,``).replace(/\s+/g,`-`)}function A5e(e,t){let n=[];for(let r of e.children){if(r.type===`element`){let e=r.properties.id;typeof e==`string`&&!(r.tagName===`dt`&&bz(r).includes(`sig`))&&n.push(t(`<span id=${dR(vz(e))} />`)),A5e(r,t)}r.type!==`doctype`&&r.type!==`mdxjsEsm`&&n.push(r)}e.children=n}function j5e(e,t){let n=[];for(let r of e.children){if(r.type===`element`){if(r.tagName===`code`){let e=d5e(r);if(e){n.push({type:`text`,value:t(e)});continue}}r.tagName!==`pre`&&j5e(r,t)}r.type!==`doctype`&&r.type!==`mdxjsEsm`&&n.push(r)}e.children=n}function M5e(e){p(e,`element`,e=>{if(e.tagName!==`div`||!bz(e).includes(`admonition`))return;let t=bz(e).find(e=>e in x5e),n=e.children.filter(e=>!(e.type===`element`&&bz(e).includes(`admonition-title`)));return e.tagName=x5e[t??``]??`Note`,e.properties={},e.children=aI(n),ct})}function N5e(e){p(e,`element`,e=>{let t=bz(e).find(e=>e.startsWith(`highlight-`))?.slice(10);if(t&&t!=="default"&&t!==`none`)return p(e,`element`,e=>{if(e.tagName===`pre`)return e.children.unshift({type:`text`,value:`@@mintlang:${t}@@\n`}),ct}),ct})}function yz(e,t,n){let r=[];for(let i of e.children)i.type===`element`&&i.tagName===`dl`&&bz(i).includes(`py`)?r.push(...P5e(i,t,n)):(i.type===`element`&&yz(i,t,n),i.type!==`doctype`&&i.type!==`mdxjsEsm`&&r.push(i));e.children=r}function P5e(e,t,n){let r=bz(e).some(e=>[`method`,`function`].includes(e)),i=[];for(let[a,o]of e.children.entries())if(o.type===`element`){if(o.tagName===`dt`&&bz(o).includes(`sig`)){let s=F5e(o);if(s){let e=z4e(r?`${s}()`:s),a=o.properties.id,c=typeof a==`string`?` {#${vz(a)}}`:``;i.push(n(`${`#`.repeat(Math.min(3+t,6))} ${e}${c}`))}let c=e.children.slice(a+1).find(e=>e.type===`element`&&e.tagName===`dd`);i.push(n(f5e(o,c)))}else o.tagName===`dd`&&(yz(o,t+1,n),i.push(...o.children))}return i}function F5e(e){let t;return p(e,`element`,e=>{if(bz(e).includes(`descname`))return t=GE(e).trim(),ct}),t}function I5e(e){let t;return p(e,`element`,(e,n,r)=>{if(t||e.tagName!==`p`)return;if(r&&r.type===`element`&&r.tagName===`li`)return ct;let i=GE(e).replace(/\s+/g,` `).trim();if(!i||i.startsWith(`Bases:`))return;let a=i.split(/(?<=\.)\s/)[0]??i;t=a.length>160?`${a.slice(0,159)}…`:a}),t}function bz(e){let t=e.properties.className;return Array.isArray(t)?t.map(String):typeof t==`string`?t.split(` `):[]}function L5e(e){return e.replace(/<[^>]+>/g,``).replace(/&amp;/g,`&`).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`).replace(/&quot;/g,`"`).replace(/&#(\d+);/g,(e,t)=>{let n=Number(t);return n<=1114111?String.fromCodePoint(n):`&#${t};`}).replace(/\s+/g,` `).trim()}const xz={project:1,module:2,namespace:4,enum:8,enumMember:16,variable:32,function:64,class:128,interface:256,constructor:512,property:1024,method:2048,callSignature:4096,indexSignature:8192,constructorSignature:16384,parameter:32768,typeLiteral:65536,accessor:262144,getSignature:524288,setSignature:1048576,typeAlias:2097152},Sz=[{kind:xz.class,group:`Classes`,dir:`classes`,tag:`CLASS`,symbolKind:`class`},{kind:xz.interface,group:`Interfaces`,dir:`interfaces`,tag:`INTERFACE`,symbolKind:`interface`},{kind:xz.enum,group:`Enumerations`,dir:`enums`,tag:`ENUM`,symbolKind:`enum`},{kind:xz.function,group:`Functions`,dir:`functions`,tag:`FUNCTION`,symbolKind:`function`},{kind:xz.typeAlias,group:`Type Aliases`,dir:`types`,tag:`TYPE`,symbolKind:`type`},{kind:xz.variable,group:`Variables`,dir:`variables`,tag:`VARIABLE`,symbolKind:`variable`}],R5e=/* @__PURE__ */ new Set([xz.property,xz.accessor]);function Cz(e,t){if(t||R5e.has(e.kind))return ZE(`${t?`member`:`property`}-${e.name}`,{decamelize:!0});if(e.kind===xz.method)return $E(`${e.name}()`)}const z5e=/* @__PURE__ */ new Set([xz.constructor,xz.property,xz.accessor,xz.method]),B5e=new Map([...Sz.map(e=>[e.kind,e.group]),[xz.namespace,`Namespaces`],[xz.constructor,`Constructors`],[xz.property,`Properties`],[xz.accessor,`Accessors`],[xz.method,`Methods`]]);function V5e(e){let t=new Map((e.children??[]).map(e=>[e.id,e.kind]));return(e.groups??[]).some(e=>e.categories?.length||(e.children??[]).some(n=>{let r=B5e.get(t.get(n)??-1);return r!==void 0&&r!==e.title}))}async function H5e(e){let t=await OF.default.readJson(e),n=t.children?.some(e=>e.kind===xz.module)===!0?t.children?.filter(e=>e.kind===xz.module)??[]:[t],r=n.length>1,i=/* @__PURE__ */ new Map;for(let e of n){let t=r?Ez(e.name):``;for(let{node:n,namespacePath:r}of Tz(e)){let e=Sz.find(e=>e.kind===n.kind);e&&!n.flags?.isPrivate&&i.set(n.id,Rt.posix.join(t,...r.map(Ez),e.dir,Ez(n.name)))}}let a=/* @__PURE__ */ new Map;for(let e of n)for(let{node:t}of Tz(e)){let e=i.get(t.id);if(e)for(let n of t.children??[]){if(n.flags?.isPrivate)continue;let r=Cz(n,t.kind===xz.enum);r&&a.set(n.id,`${e}#${r}`)}}let o=new q5e(i,a),s=[],c=[],l=/* @__PURE__ */ new Map;for(let e of n){let t=Tz(e),n=[];for(let a of Sz){let c=t.filter(({node:e})=>e.kind===a.kind&&!e.flags?.isPrivate).sort((e,t)=>wz(e).localeCompare(wz(t)));if(c.length===0)continue;let l=c.map(e=>o.renderPage(e.node,a,wz(e)));s.push(...l);for(let t of c){if(t.node.kind!==xz.class&&t.node.kind!==xz.interface)continue;let n=i.get(t.node.id)??Rt.posix.join(r?Ez(e.name):``,...t.namespacePath.map(Ez),a.dir,Ez(t.node.name));s.push(...o.renderMemberPages(t.node,n,wz(t)))}n.push({group:a.group,pages:l.map(e=>e.slug)})}let a=U5e(e)?W5e(e,i):[],u=a.length?a:n;r?l.set(e.id,{path:e.name.split(`/`),group:{group:e.name,pages:u}}):c.push(...u)}let u=[],d=[],f,p=new Set(s.map(e=>e.slug.toLowerCase())),m=[t,...n.filter(e=>e!==t)],h=[];for(let e of m){if(!e.readme?.some(e=>e.text.trim()))continue;let n=e===t?``:Ez(e.name).replace(/^\.+$/,`item`),r=Rt.posix.join(n,`package-overview`),a=r,o=2;for(;p.has(a.toLowerCase());)a=`${r}-${o}`,o+=1;p.add(a.toLowerCase()),i.set(e.id,a),h.push({node:e,slug:a})}for(let{node:e,slug:n}of h){let r=e===t,a=new Set(Tz(e).map(({node:e})=>i.get(e.id))),c=s.filter(e=>!e.target?.parent&&(r||a.has(e.slug))),p=o.renderOverview(e,n,c,r?void 0:t.name);u.push(p);let m=l.get(e.id)?.group;r?f=n:m?m.pages.unshift(n):f?d.push({group:`${e.name} Overview`,pages:[n]}):f=n}return{pages:[...u,...s],groups:[...d,...c,...CR([...l.values()].filter(({group:e})=>e.pages.length))],...f?{overview:f}:{}}}function U5e(e){return e.categories?.length||V5e(e)?!0:(e.children??[]).some(e=>e.kind===xz.namespace&&U5e(e))}function W5e(e,t){return G5e(e,t,/* @__PURE__ */ new Map).filter(e=>typeof e!=`string`)}function G5e(e,t,n){let r=new Map((e.children??[]).map(e=>[e.id,e])),i=(e=[])=>[...new Set(e)].flatMap(e=>{let i=r.get(e);if(!i)return[];let o=n.get(e)??0;if(i.kind===xz.namespace)return o>0?[]:(n.set(e,1),a(i.name,G5e(i,t,n)));let s=t.get(e);if(!s)return[];if(o>=8)throw Error(`TypeDoc declaration "${gR(i.name,64)}" is listed in more than 8 navigation groups`);return n.set(e,o+1),[s]}),a=(e,t)=>{let n=K5e(e);return n&&t.length?[{group:n,pages:t}]:[]};return e.categories?.length?e.categories.flatMap(e=>a(e.title,i(e.children))):(e.groups??[]).flatMap(e=>a(e.title,e.categories?.length?e.categories.flatMap(e=>a(e.title,i(e.children))):i(e.children)))}function wz({node:e,namespacePath:t}){return[...t,e.name].join(`.`)}function Tz(e,t=[]){let n=[];for(let r of e.children??[])r.kind===xz.namespace?n.push(...Tz(r,[...t,r.name])):n.push({node:r,namespacePath:t});return n}function K5e(e){return String(e??``).replace(/\s+/g,` `).trim()}function Ez(e){if(e.length>512)throw Error(`TypeDoc declaration name "${gR(e,64)}" exceeds 512 characters`);return e.replace(/[^a-zA-Z0-9-_.]+/g,`-`).replace(/^-+|-+$/g,``)||`item`}var q5e=class{constructor(e,t=/* @__PURE__ */ new Map){this.slugById=e,this.memberSlugById=t}renderOverview(e,t,n,r){let i=c3e(this.partsMarkdown(e.readme??[]));I4e(i,e=>mR(e.url));let a=[];for(let e of Sz){let t=n.filter(t=>t.target?.kind===e.symbolKind);t.length!==0&&a.push(`## ${e.group}`,t.map(e=>`- [${_R(e.title)}](/${e.slug})`).join(`
1018
1018
  `))}return{slug:t,title:e.name,intro:uR(i),content:a.join(`
1019
1019
 
1020
1020
  `),target:{kind:`package`,name:e.name,...r?{namespace:r}:{}}}}renderPage(e,t,n){let r=this.slugById.get(e.id)??Rt.posix.join(t.dir,Ez(e.name)),i=[],a=this.comment(e.comment);switch(a&&i.push(a),e.kind){case xz.class:case xz.interface:i.push(...this.renderClassLike(e));break;case xz.enum:i.push(...this.renderEnum(e));break;case xz.function:i.push(...this.renderSignatures(e,2));break;case xz.typeAlias:case xz.variable:i.push(this.codeBlock(`${e.kind===xz.variable?`const`:`type`} ${e.name}${e.kind===xz.typeAlias?` =`:`:`} ${this.type(e.type)}`))}let o={kind:t.symbolKind,name:e.name};return{slug:r,title:n??e.name,description:this.firstSentence(e.comment),tag:t.tag,content:i.filter(Boolean).join(`
@@ -1044,7 +1044,7 @@ dI(!1,`Unexpected type: `+OI(e))}function m(e){let t=e.toConfig(),n=i[t.name]??[
1044
1044
  `)}\n---\n\n`}const r9e=`{/* mintlify:sdk-generated */}`;function i9e(e){let t=e.indexOf(r9e);return(t===-1?e:e.slice(0,t)).trim()}function a9e(e){let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=r);return`---\n${ne.dump(t,{lineWidth:-1}).trimEnd()}\n---\n\n`}function tB(e,t,n=`.mdx`){let r=Rt.resolve(e??``,`src`,`_props`),i=Rt.resolve(r,`${t}${n}`),a=Rt.relative(r,i);if(!(a.startsWith(`..${Rt.sep}`)||a===`..`||Rt.isAbsolute(a)))return i}async function o9e({contentDirectoryPath:e,inheritedSdkBySlug:t,pageMetadataBySlug:n,loadReference:r,targetDir:i}){let a=/* @__PURE__ */ new Map,o=e=>{let t=`${e.format}:${e.source}`,n=a.get(t);return n||(n=r(e),a.set(t,n)),n},s=/* @__PURE__ */ new Set([...Object.keys(n),...Object.keys(t)]),c=await lF.default.realpath(e);await Promise.all([...s].map(async e=>{let r=e.replace(/^\//,``).replace(/\.mdx?$/,``),a=n[r]??n[`/${r}`],s=t[r]??t[`/${r}`];if(!a||OP({sdk:a.sdk},s)===void 0)return;let l=await W7e(c,r);if(!l)return;let{content:u,extension:d}=l,f,p,m;try{let e=ik(u).attributes;f=e.title,p=e.description,m=e.tag}catch{}let h=await U7e({slug:r,authorContent:u,metadata:{sdk:a.sdk,title:f,description:p,tag:m},loadReference:o,inherited:s});if(!h)return;let g=tB(i,h.slug,d);if(!g)return;let _={},v=i9e(eB(u)),y=!1;if(await lF.default.pathExists(g))try{let e=await lF.default.readFile(g,`utf8`);_=ik(e).attributes,v=i9e(eB(e)),y=!0}catch{try{_=ik(u).attributes}catch{}}else try{_=ik(u).attributes}catch{}if(!y&&/^import\s/m.test(v))return;h.sdk&&(_.sdk=h.sdk),(typeof _.title!=`string`||_.title.length===0)&&(_.title=h.title),(typeof _.description!=`string`||_.description.length===0)&&h.description&&(_.description=h.description),(typeof _.tag!=`string`||_.tag.length===0)&&h.tag&&(_.tag=h.tag);let b=h.generatedBody??h.content,x=[v,`${r9e}\n\n${b}`].filter(Boolean).join(`
1045
1045
 
1046
1046
  `);await lF.default.outputFile(g,`${a9e(_)}${x}\n`,{flag:`w`})}))}async function s9e(e,t){let n=Rt.resolve(t??``,`src`,`_props`),r=Rt.join(n,`sdk-data.json`),i=[];try{let e=JSON.parse(await lF.default.readFile(r,`utf8`));Array.isArray(e.pages)&&(i=e.pages.filter(e=>typeof e==`string`))}catch{}await Promise.all(i.map(async e=>{let n=tB(t,e);if(n)try{await lF.default.remove(n)}catch(t){console.warn(`Failed to remove stale SDK reference page ${e}: ${t instanceof Error?t.message:String(t)}`)}})),await lF.default.remove(r),e.generatedPages.length!==0&&(await lF.default.outputFile(r,JSON.stringify({pages:e.generatedRoutes}),{flag:`w`}),await Promise.all(e.generatedPages.map(e=>{let n=tB(t,e.slug);if(!n)throw Error(`SDK reference page "${e.slug}" resolves outside the output directory`);return lF.default.outputFile(n,`${n9e(e)}${e.content}\n`,{flag:`w`})})))}function nB(e,t=/* @__PURE__ */ new Set){if(typeof e==`string`)return t.add(e.replace(/^\//,``).replace(/\.mdx?$/,``)),t;if(Array.isArray(e))return e.forEach(e=>nB(e,t)),t;if(!We(e))return t;`root`in e&&nB(e.root,t),`pages`in e&&nB(e.pages,t),`groups`in e&&nB(e.groups,t);for(let n of[`tabs`,`anchors`,`dropdowns`,`versions`,`languages`,`products`,`menu`])n in e&&nB(e[n],t);return t}async function c9e(e,t,n){let r=await lF.default.realpath(e),i={},a=nB(t),o=a.values();return await Promise.all(Array.from({length:Math.min(16,a.size)},async()=>{for(let e of o)try{let t=await W7e(r,e,n);if(t===void 0)continue;let{attributes:a}=ik(t.content);a.sdk!==void 0&&(i[e]={sdk:a.sdk})}catch{}})),i}const l9e=async(e,t)=>{let n=e.api?.asyncapi,r=[];async function i(e){try{let t=await bJe(e);r.push({filename:e,spec:t,originalFileLocation:e})}catch(e){throw console.error(e),e}}if(n){if(typeof n==`string`&&Eh(n,t))await i(n);else if(Array.isArray(n))for(let e of n)typeof e==`string`&&Eh(e,t)&&await i(e);else typeof n==`object`&&`source`in n&&Eh(n.source,t)&&await i(n.source)}return r},u9e=`api-reference`,d9e=async(e,t,n,r)=>{let{overwrite:i,writeFiles:a,targetDir:o,localSchema:s,writeFile:c}=r,l=[];async function u(e){let r=u9e,u=[];if(`asyncapi`in e&&(typeof e.asyncapi==`string`?u=[e.asyncapi]:Array.isArray(e.asyncapi)?u=e.asyncapi:typeof e.asyncapi==`object`&&`source`in e.asyncapi&&(u=[e.asyncapi.source],r=e.asyncapi.directory??u9e)),u.length>0){let d=[];for(let n of u){let r;if(Eh(n,s)?(r=await h9e(n),l.push(r)):r=t.find(e=>e.originalFileLocation===Dh(n)),!r)throw n===u[0]&&t.length>0&&!t[0]?.spec.channels().length?Error(`No channels defined`):Error(`AsyncAPI file ${n} defined in ${m9e(e)?.division} in your docs.json does not exist`);d.push(r)}let f=[];for(let e of d){let{pagesAcc:t,nav:l}=await aZe(e.spec,{asyncApiFilePath:e.originalFileLocation,writeFiles:a,outDir:r,outDirBasePath:_t.join(o??``,`src`,`_props`),overwrite:i,localSchema:s,writeFile:c});Object.entries(t).forEach(([e,t])=>{n[e]=t}),f=[...f,...l]}let p=m9e(e);if(p?.division){let e=p.nav;return`group`in e?{...e,pages:`pages`in e&&Array.isArray(e.pages)?[...e.pages,...f]:f}:{...e,groups:`groups`in e?[...e.groups,...f]:f}}}return null}async function d(e){let t=await u(e);if(t)return t;let n={...e};if(`pages`in n){let e=await Promise.all(n.pages.map(async e=>typeof e==`object`&&e&&`group`in e?d(e):e));n.pages=e}for(let e of[`groups`,...Ss]){let t=lk(n,e);t&&(n=Object.assign({},n,{[e]:await Promise.all(t.map(e=>d(e)))}))}return n}let f=await d(e);if(!p9e(f))throw Error(`AsyncAPI page generation produced a non-top-level navigation node`);return e=f,{newNav:f,newAsyncApiFiles:l}},f9e=[`group`,`tab`,`anchor`,`version`,`language`,`dropdown`,`product`,`item`];function p9e(e){return f9e.every(t=>!(t in e))}function m9e(e){if(`asyncapi`in e){let{asyncapi:t,...n}=e,r={group:`group`,anchor:`anchor`,tab:`tab`,version:`version`,language:`language`,dropdown:`dropdown`,product:`product`,item:`item`},i=Object.keys(r).find(e=>e in n);return{division:r[i],name:n[i],nav:n}}}async function h9e(e){try{return{filename:e,spec:await bJe(e),originalFileLocation:e}}catch(e){throw console.error(e),e}}const g9e=async(e,t,n,r,i,a=!0,o=!1)=>{let s=await l9e(e,r),c={},l=[],u=a&&(o||i!=null&&Object.keys(i).length>0),{newNav:d,newAsyncApiFiles:f}=await d9e(e.navigation,t,c,{overwrite:!0,writeFiles:a,targetDir:n,localSchema:r,...u?{writeFile:(e,t)=>{l.push({filename:e,content:t})}}:{}}),p=async()=>{await Promise.all(l.map(({filename:e,content:t})=>lF.default.outputFile(e,t)))};return i&&Yz({label:`GraphQL`,pages:i},{label:`AsyncAPI`,pages:c}),o||await p(),{newDocsConfig:{...e,navigation:d},pagesAcc:c,asyncApiFiles:[...t,...s,...f],flushWrites:p}};var _9e=/* @__PURE__ */ a(((e,t)=>{function n(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}t.exports=n})),v9e=/* @__PURE__ */ a(((e,t)=>{function n(e){return function(t){return e?.[t]}}t.exports=n})),y9e=/* @__PURE__ */ a(((e,t)=>{t.exports=v9e()({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`})})),b9e=/* @__PURE__ */ a(((e,t)=>{var n=y9e(),r=Rd(),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function o(e){return e=r(e),e&&e.replace(i,n).replace(a,``)}t.exports=o})),x9e=/* @__PURE__ */ a(((e,t)=>{var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function r(e){return e.match(n)||[]}t.exports=r})),S9e=/* @__PURE__ */ a(((e,t)=>{var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function r(e){return n.test(e)}t.exports=r})),C9e=/* @__PURE__ */ a(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\u2700-\\u27bf`,a=`a-z\\xdf-\\xf6\\xf8-\\xff`,o=`\\xac\\xb1\\xd7\\xf7`,s=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,c=`\\u2000-\\u206f`,l=` \\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`,u=`A-Z\\xc0-\\xd6\\xd8-\\xde`,d=`\\ufe0e\\ufe0f`,f=o+s+c+l,p=`['’]`,m=`[`+f+`]`,h=`[`+r+`]`,g=`\\d+`,_=`[`+i+`]`,v=`[`+a+`]`,y=`[^`+n+f+g+i+a+u+`]`,b=`(?:`+h+`|\\ud83c[\\udffb-\\udfff])`,x=`[^`+n+`]`,S=`(?:\\ud83c[\\udde6-\\uddff]){2}`,C=`[\\ud800-\\udbff][\\udc00-\\udfff]`,w=`[`+u+`]`,T=`\\u200d`,E=`(?:`+v+`|`+y+`)`,D=`(?:`+w+`|`+y+`)`,O=`(?:`+p+`(?:d|ll|m|re|s|t|ve))?`,k=`(?:`+p+`(?:D|LL|M|RE|S|T|VE))?`,A=b+`?`,ee=`[`+d+`]?`,te=`(?:`+T+`(?:`+[x,S,C].join(`|`)+`)`+ee+A+`)*`,ne=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,re=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,ie=ee+A+te,ae=`(?:`+[_,S,C].join(`|`)+`)`+ie,oe=RegExp([w+`?`+v+`+`+O+`(?=`+[m,w,`$`].join(`|`)+`)`,D+`+`+k+`(?=`+[m,w+E,`$`].join(`|`)+`)`,w+`?`+E+`+`+O,w+`+`+k,re,ne,g,ae].join(`|`),`g`);function j(e){return e.match(oe)||[]}t.exports=j})),w9e=/* @__PURE__ */ a(((e,t)=>{var n=x9e(),r=S9e(),i=Rd(),a=C9e();function o(e,t,o){return e=i(e),t=o?void 0:t,t===void 0?r(e)?a(e):n(e):e.match(t)||[]}t.exports=o})),T9e=/* @__PURE__ */ a(((e,t)=>{var n=_9e(),r=b9e(),i=w9e(),a=RegExp(`['’]`,`g`);function o(e){return function(t){return n(i(r(t).replace(a,``)),e,``)}}t.exports=o})),E9e=/* @__PURE__ */ r((/* @__PURE__ */ a(((e,t)=>{t.exports=T9e()(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()})})))(),1);const D9e=`graphql-reference`,rB=(e,t)=>e.name.localeCompare(t.name),O9e=Jz;function k9e(e){return typeof e==`string`?{source:e,directory:D9e}:{source:e.source,directory:e.directory??D9e}}function A9e(e){let t=/* @__PURE__ */ new Map;for(let n of e){let e=n.toLowerCase(),r=t.get(e);(r===void 0||n<r)&&t.set(e,n)}let n=e.filter(e=>t.get(e.toLowerCase())!==e),r=/* @__PURE__ */ new Map;for(let e of n){let t=(0,E9e.default)(e);r.set(t,(r.get(t)??0)+1)}return new Map(e.map(e=>{let n=t.get(e.toLowerCase());if(n===e)return[e,e];let i=(0,E9e.default)(e),a=i.includes(`-`)&&r.get(i)===1?i:`${i?`${i}-`:``}${Pn(`sha256`).update(e).digest(`hex`).slice(0,6)}`;return JP({type:`graphql`,message:`GraphQL name "${e}" shares its URL with "${n}", so its page uses "${a}"`}),[e,a]}))}const j9e=/* @__PURE__ */ new WeakMap,M9e=/* @__PURE__ */ new WeakMap;function N9e(e,t){let n=j9e.get(e);return n||(n=A9e(e.types.filter(t=>aB(e,t)).map(e=>e.name)),j9e.set(e,n)),n.get(t)}function P9e(e,t){let n=M9e.get(e);return n||(n=A9e(e.map(e=>e.name)),M9e.set(e,n)),n.get(t)}function F9e(e,t,n){let r=t;return Rt.posix.join(...n.split(`.`).map(t=>{let n=e.types.find(e=>e.name===r),i=n?.kind===`object`||n?.kind===`interface`?n.fields:[],a=i.find(e=>e.name===t);return r=a?SP(a.type):void 0,P9e(i,t)??t}))}function iB(e,t,n,r,i,a){let o=r===`query`?`queries`:r===`mutation`?`mutations`:`types`,s=Rt.posix.join(n,o),c=r===`type`?N9e(e,i)??i:F9e(e,r===`query`?e.queryType:e.mutationType,i);return{slug:Rt.posix.join(s,c),directory:Rt.posix.dirname(s),title:i.slice(i.lastIndexOf(`.`)+1),...`description`in a&&a.description?{description:a.description}:{},...r!==`type`&&`deprecationReason`in a&&a.deprecationReason!=null?{deprecated:!0}:{},tag:r===`type`&&`kind`in a?a.kind.toUpperCase():r.toUpperCase(),target:{source:t,kind:r,name:i}}}const I9e=[`object`,`input`,`interface`,`union`,`enum`,`scalar`];function L9e(e,t){return e.types.some(e=>`fields`in e&&e.fields.some(e=>SP(e.type)===t||`arguments`in e&&e.arguments.some(e=>SP(e.type)===t))||`possibleTypes`in e&&e.possibleTypes.includes(t))}function aB(e,t){return t.name===e.queryType||t.name===e.mutationType||t.name===e.subscriptionType&&!L9e(e,t.name)?!1:I9e.includes(t.kind)}function R9e(e,t,n,r){let i=`GraphQL ${r.kind} ${r.name}`;if(r.kind===`type`){let a=e.types.find(({name:e})=>e===r.name);if(!a||!aB(e,a))throw Error(`${i} not found in ${t}`);return iB(e,t,n,`type`,r.name,a)}let a=wJe(e,r);if(!a)throw Error(`${i} not found in ${t}`);return iB(e,t,n,r.kind,r.name,a.field)}function z9e(e,t,n){let r=new Map(e.types.map(e=>[e.name,e])),i=e.queryType?r.get(e.queryType):void 0,a=e.mutationType?r.get(e.mutationType):void 0,o=e.queryType&&i?.kind===`object`?i.fields:[],s=e.mutationType&&a?.kind===`object`?a.fields:[];return{queries:o.slice().sort(rB).map(r=>iB(e,t,n,`query`,r.name,r)),mutations:s.slice().sort(rB).map(r=>iB(e,t,n,`mutation`,r.name,r)),types:e.types.filter(t=>aB(e,t)).slice().sort(rB).map(r=>iB(e,t,n,`type`,r.name,r))}}function B9e(e){return`---\n${[`title: ${JSON.stringify(e.title)}`,...e.description?[`description: ${JSON.stringify(e.description)}`]:[],...e.deprecated?[`deprecated: true`]:[],`tag: ${JSON.stringify(e.tag)}`,`graphql: ${JSON.stringify(e.target)}`].join(`
1047
- `)}\n---\n`}async function oB(e,t,{onSourceError:n}={}){let r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Set;async function s(e){let a=r.get(e);if(!a){let o=t(e).then(t=>{let n=T4e(t);return i.set(e,n),n});a=n?o.catch(t=>{n(e,t)}):o,r.set(e,a)}return a}function c(e){let t=O9e(e.slug),n=a.get(t);if(n&&(n.slug!==e.slug||n.target.source!==e.target.source||n.target.kind!==e.target.kind||n.target.name!==e.target.name))throw Error(`Multiple GraphQL references generate colliding routes "${n.slug}" and "${e.slug}"`);a.set(t,e)}async function l(e,t){if(!t)return e;let n=CJe(e);if(!n)return e;let r=await s(t.source);if(!r)return e;let i=R9e(r,t.source,t.directory,n);return c(i),o.add(t.owner),i.slug}async function u(e,t){return Object.fromEntries(await Promise.all(Object.entries(e).map(async([e,n])=>e!==`pages`||!Array.isArray(n)?[e,await d(n,t)]:[e,await Promise.all(n.map(e=>typeof e==`string`?l(e,t):d(e,t)))])))}async function d(e,t){if(Array.isArray(e))return Promise.all(e.map(e=>d(e,t)));if(typeof e!=`object`||!e)return e;let{graphql:n,...r}=e;if(n===void 0)return u(r,t);let{source:i,directory:a}=k9e(n),l=await u(r,{source:i,directory:a,owner:e});if(o.has(e))return l;let f=await s(i);if(!f)return l;let p=z9e(f,i,a),m=[{group:`Queries`,pages:p.queries.map(({slug:e})=>e)},{group:`Mutations`,pages:p.mutations.map(({slug:e})=>e)},{group:`Types`,pages:p.types.map(({slug:e})=>e)}].filter(({pages:e})=>e.length>0);if([...p.queries,...p.mutations,...p.types].forEach(c),`group`in l){let e=Array.isArray(l.pages)?l.pages:[];return{...l,pages:[...e,...m]}}let h=Array.isArray(l.groups)?l.groups:[];return{...l,groups:[...h,...m]}}let f=await d(e.navigation),p=[...a.values()].sort((e,t)=>Jz(e.slug).localeCompare(Jz(t.slug))||e.slug.localeCompare(t.slug)),m=Object.fromEntries(p.map(e=>[e.slug,{href:`/${e.slug}`,title:e.title,...e.description?{description:e.description}:{},...e.deprecated?{deprecated:!0}:{},tag:e.tag,graphql:e.target}]));return{navigation:f,newDocsConfig:{...e,navigation:f},pagesAcc:m,generatedPages:p,generatedRoutes:p.map(({slug:e})=>e),parsedReferences:Object.fromEntries([...i].sort(([e],[t])=>e.localeCompare(t)))}}async function sB(e,t){if(Rt.isAbsolute(e)||Rt.win32.isAbsolute(e))throw Error(`Unable to load GraphQL schema ${e}: path must be relative`);let n;try{n=new URL(e)}catch{}if(n){if(n.protocol===`https:`)return N7e(n.href);throw Error(`Unable to load GraphQL schema ${e}: URL must use HTTPS`)}try{let n=await lF.default.realpath(t),r=Rt.resolve(n,e),i=Rt.relative(n,r);if(i===`..`||i.startsWith(`..${Rt.sep}`)||Rt.isAbsolute(i))throw Error(`path escapes the content directory`);let a=await lF.default.realpath(r),o=Rt.relative(n,a);if(o===`..`||o.startsWith(`..${Rt.sep}`)||Rt.isAbsolute(o))throw Error(`path resolves outside the content directory`);let s=await qn(a,`r`);try{if((await s.stat()).size>5242880)throw Error(`schema exceeds the ${O7e} byte limit`);let e=new TextDecoder,t=``,n=0;for await(let r of s.createReadStream({autoClose:!1})){if(n+=r.length,n>5242880)throw Error(`schema exceeds the ${O7e} byte limit`);t+=e.decode(r,{stream:!0})}return t+e.decode()}finally{await s.close()}}catch(t){let n=t instanceof Error?`: ${t.message}`:``;throw Error(`Unable to load GraphQL schema ${e}${n}`)}}const V9e=e=>{try{return new URL(e).protocol===`https:`}catch{return!1}};function H9e(e,t){let n=Rt.resolve(e??``,`src`,`_props`),r=Rt.resolve(n,`${t}.mdx`),i=Rt.relative(n,r);if(!(i.startsWith(`..${Rt.sep}`)||i===`..`||Rt.isAbsolute(i)))return r}async function U9e(e,t){let n=Rt.resolve(t??``,`src`,`_props`),r=Rt.join(n,`graphql-data.json`);try{let e=JSON.parse(await lF.default.readFile(r,`utf8`));e.pages!=null&&typeof e.pages==`object`&&!Array.isArray(e.pages)&&await Promise.all(Object.keys(e.pages).flatMap(e=>{let n=H9e(t,e);return n?[lF.default.remove(n)]:[]}))}catch{}if(await lF.default.remove(r),Object.keys(e.parsedReferences).length===0&&e.generatedRoutes.length===0)return;let i={references:e.parsedReferences,pages:Object.fromEntries(e.generatedPages.map(t=>{let n=Object.fromEntries(e.generatedPages.filter(e=>e.target.source===t.target.source&&e.target.kind===`type`&&e.directory===t.directory).map(e=>[e.target.name,`/${e.slug}`]));return[t.slug,{target:t.target,routes:n}]}))};await lF.default.outputFile(r,JSON.stringify(i),{flag:`w`}),await Promise.all(e.generatedPages.map(e=>lF.default.outputFile(Rt.join(t??``,`src`,`_props`,`${e.slug}.mdx`),B9e(e),{flag:`w`})))}const cB=async(e,t,n,r,i)=>{let a;a=e===`docs`?t.api?.openapi:t.openapi;let o=[];async function s(e){let t=r?await Cm(r,e):void 0,n=await yh(e,{overlays:t,fetchRemoteDocument:i});o.push({filename:e,spec:n,originalFileLocation:e})}for(let e of Ka(a))Eh(e.source,n)&&await s(e.source);return o},lB=`api-reference`,W9e=/* @__PURE__ */ new WeakMap,G9e=e=>{let t=W9e.get(e);if(t)return t;let n={resolveTags:mh(e),resolveBadge:hh(e)};return W9e.set(e,n),n},K9e=e=>e.replace(/^\/+|\/+$/g,``),q9e=(e,t)=>{if(!e)return``;let n=e.replace(/^\/+/,``);return t.map(K9e).filter(Boolean).sort((e,t)=>t.length-e.length).find(e=>n===e||n.startsWith(`${e}/`))??``},uB=(e,t,n)=>q9e(e,n)||q9e(t,n),J9e=async(e,t,n,r)=>{let{overwrite:i,writeFiles:a,targetDir:o,localSchema:s,invalidSpecFiles:c,mountPaths:l=[],writeFile:u,overlayRegistry:d,fetchRemoteDocument:f}=r,p=[],m=/* @__PURE__ */ new Map;async function h(e){let r=lB,h,g;if(`openapi`in e){if(typeof e.openapi==`string`)h=e.openapi;else if(Array.isArray(e.openapi)&&e.openapi.length>0){let t=e.openapi[0];typeof t==`string`?h=t:t!=null&&(h=t.source,r=t.directory??lB,g=t.slug)}else typeof e.openapi==`object`&&`source`in e.openapi&&(h=e.openapi.source,r=e.openapi.directory??lB,g=e.openapi.slug)}if(h){let _;if(Eh(h,s)){if(m.has(h))_=await m.get(h);else{let e=Z9e(h,d,f);m.set(h,e),_=await e,p.push(_)}}else _=t.find(e=>e.originalFileLocation!=null&&e.originalFileLocation===Dh(h));if(!_){let t=_F(c,h);throw Error(t?`Openapi file ${h} defined in ${dB(e)?.division} in your docs.json exists but is invalid: ${t.reason}`:`Openapi file ${h} defined in ${dB(e)?.division} in your docs.json does not exist`)}let{pagesAcc:v,nav:y}=await tZe(_.spec,{openApiFilePath:_.originalFileLocation,writeFiles:a,outDir:r,outDirBasePath:_t.join(o??``,`src`,`_props`),slug:g,mountPath:uB(_.originalFileLocation,r,l),overwrite:i,localSchema:s,writeFile:u});Object.entries(v).forEach(([e,t])=>{n[e]=t});let b=dB(e);if(b?.division){let e=b.nav;return`group`in e?{...e,pages:`pages`in e&&Array.isArray(e.pages)?[...e.pages,...y]:y}:{...e,groups:`groups`in e?[...e.groups,...y]:y}}}return null}function g(e){let t={source:void 0,directory:void 0,slug:void 0};if(`openapi`in e&&e.openapi!==null){let n=e.openapi;if(typeof n==`string`)return{...t,source:n};if(Array.isArray(n)&&n.length>0){let e=n[0];return typeof e==`string`?{...t,source:e}:e==null?t:{source:e.source,directory:e.directory,slug:e.slug}}if(typeof n==`object`&&`source`in n&&typeof n.source==`string`)return{source:n.source,directory:`directory`in n&&typeof n.directory==`string`?n.directory:void 0,slug:`slug`in n?n.slug:void 0}}return t}let _=/* @__PURE__ */ new Set,v=/* @__PURE__ */ new Set,y=0;async function b(e,r,h,x,S){let C=y++,w=g(e),T=w.source??r,E=w.source?w.directory:w.directory??h,D=w.source?w.slug:w.slug??S,O=w.source?C:x,k=e;if(`pages`in k){let e=await Promise.all(k.pages.map(async e=>{if(typeof e==`object`&&e&&`group`in e)return b(e,T,E,O,D);if(typeof e!=`string`)return e;let r=Ff(e);if(r){let{filename:e,method:h,endpoint:g}=r,_=e??T;if(_){let r;if(_){if(Eh(_,s)){if(m.has(_))r=await m.get(_);else{let e=Z9e(_,d,f);m.set(_,e),r=await e,p.push(r)}}else r=t.find(e=>e.originalFileLocation!=null&&e.originalFileLocation===Dh(_))}if(!r){let e=_F(c,_);throw Error(e?`Openapi file ${_} referenced in docs.json exists but is invalid: ${e.reason}`:`Openapi file ${_} referenced in docs.json does not exist`)}let y=r.spec,b=h.toLowerCase()===`webhook`,x=[],S=[],C=[],w=[];if(b){let e=y.webhooks,t=Pf(e,g);if(!t)throw Error(`Webhook ${g} not found in ${_}. ${e?`Available webhooks: ${Object.keys(e).join(`, `)}`:``}`.trim());w=PF(t.pathKey,t.pathItem,y,x,S,C,n,{openApiFilePath:r.originalFileLocation,writeFiles:a,outDir:E??lB,outDirBasePath:_t.join(o??``,`src`,`_props`),slug:D,mountPath:uB(r.originalFileLocation,E,l),overwrite:i,localSchema:s,writeFile:u,...G9e(y)},wh)}else{let e=Pf(y.paths,g);if(!e){let e=Object.keys(y.paths??{}).join(`, `);throw Error(`Endpoint ${g} not found in ${_}.${e?` Available paths: ${e}`:``}`)}let t=h===`webhook`?void 0:Pl(e.pathItem,h);if(!t)throw Error(`Method ${h.toUpperCase()} for endpoint ${e.pathKey} not found in ${_}`);let c=Dl(h)?{[h]:t}:{additionalOperations:{[h]:t}};w=NF(e.pathKey,c,y,x,S,C,n,{openApiFilePath:r.originalFileLocation,writeFiles:a,outDir:E??lB,outDirBasePath:_t.join(o??``,`src`,`_props`),slug:D,mountPath:uB(r.originalFileLocation,E,l),overwrite:i,localSchema:s,writeFile:u,...G9e(y)},wh)}await Promise.all(C);let T=w[0];if(!T)throw Error(`Failed to generate OpenAPI endpoint page for ${h.toUpperCase()} ${g} in ${_}`);return O&&!e&&v.add(O),T}}return e}));k.pages=e}for(let e of[`groups`,...Ss])if(e in k){let t=k[e];k={...k,[e]:await Promise.all(t.map(e=>b(e,T,E,O,D)))}}return v.has(C)&&_.add(k),k}let x=await b(e,void 0,void 0,void 0);async function S(e){let t=e;if(g(t).source&&!_.has(t)){let e=await h(t);e&&(t=e)}if(`pages`in t&&t.pages){let e=await Promise.all(t.pages.map(async e=>typeof e==`object`&&e&&`group`in e?S(e):e));t.pages=e}for(let e of[`groups`,...Ss]){let n=lk(t,e);n&&(t=Object.assign({},t,{[e]:await Promise.all(n.map(e=>S(e)))}))}return t}let C=await S(x);if(!X9e(C))throw Error(`OpenAPI page generation produced a non-top-level navigation node`);return e=C,{newNav:C,newOpenApiFiles:p}},Y9e=[`group`,`tab`,`anchor`,`version`,`language`,`dropdown`,`product`,`item`];function X9e(e){return Y9e.every(t=>!(t in e))}function dB(e){if(`openapi`in e){let{openapi:t,...n}=e,r={group:`group`,anchor:`anchor`,tab:`tab`,version:`version`,language:`language`,dropdown:`dropdown`,product:`product`,item:`item`},i=Object.keys(r).find(e=>e in n);return{division:r[i],name:n[i],nav:n}}}async function Z9e(e,t,n){try{let r=t?await Cm(t,e):void 0;return{filename:e,spec:await yh(e,{overlays:r,fetchRemoteDocument:n}),originalFileLocation:e}}catch(e){throw console.error(e),e}}const Q9e=async(e,t,n,r,i,a,o=!1,s)=>{let c=await cB(`docs`,e,r,s);t.push(...c);let l={},u=[],d=o||a!=null&&Object.keys(a).length>0,{newNav:f,newOpenApiFiles:p}=await J9e(e.navigation,t,l,{overwrite:!0,writeFiles:!0,targetDir:n,localSchema:r,invalidSpecFiles:i,overlayRegistry:s,...d?{writeFile:(e,t)=>{u.push({filename:e,content:t})}}:{}}),m=async()=>{await Promise.all(u.map(({filename:e,content:t})=>lF.default.outputFile(e,t)))};return a&&Yz({label:`GraphQL`,pages:a},{label:`OpenAPI`,pages:l}),o||await m(),{newDocsConfig:{...e,navigation:f},pagesAcc:l,openApiFiles:[...t,...p],flushWrites:m}},$9e=(e,t)=>{let n=_t.relative(e,t);return n!==`..`&&!n.startsWith(`..${_t.sep}`)&&!_t.isAbsolute(n)},eet=async(e,t)=>{let n=_t.join(e,t);return $9e(e,n)?lF.default.existsSync(n)?$9e(await xn(e),await xn(n))?{content:await yn(n,`utf8`)}:`outside`:`missing`:`outside`};async function tet({config:e,contentDirectoryPath:t}){let n=typeof e.styling?.codeblocks==`object`&&e.styling.codeblocks.languages?.custom?e.styling.codeblocks.languages.custom:[];if(n.length===0)return[];let r=_t.resolve(t);return await Promise.all(n.map(async e=>{let t=await eet(r,e);if(t===`outside`)console.error(`Custom language file "${e}" defined in docs.json is outside the docs directory`);else if(t===`missing`)console.error(`Custom language file "${_t.join(r,e)}" defined in docs.json is not found`);else return{content:t.content,filePath:e}})).then(e=>e.filter(e=>e!==void 0))}async function net({contentDirectoryPath:e,openApiFiles:t,asyncApiFiles:n,docsConfig:r,localSchema:i,disableOpenApi:a,strict:o,invalidSpecFiles:s,allowSourceRefs:c,overlayRegistry:l,pageScans:u}){let d=await dF(e,`docs`);if(d==null&&r==null||(r==null&&d&&(r=await bF.getConfig(d,o,e,void 0,{allowSourceRefs:c})),r==null))throw Error(`must be run in a directory where a docs.json file exists.`);let f=await tet({config:r,contentDirectoryPath:e}),p=await oB(r,t=>sB(t,e)),{newDocsConfig:m,pagesAcc:h}=p,{newDocsConfig:g,pagesAcc:_,openApiFiles:v,flushWrites:y}=a?{newDocsConfig:m,pagesAcc:{},openApiFiles:t,flushWrites:async()=>{}}:await Q9e(m,t,void 0,i,s,h,!0,l),{newDocsConfig:b,pagesAcc:x,asyncApiFiles:S,flushWrites:C}=await g9e(g,n,void 0,i,h,!0,!0),w=await c9e(e,b.navigation,u),T=await H7e(b,t=>X7e(t,e),{pageMetadataBySlug:w}),{newDocsConfig:E,pagesAcc:D}=T,O={label:`SDK`,pages:D};Yz({label:`GraphQL`,pages:h},O),Yz({label:`OpenAPI`,pages:_},O),Yz({label:`AsyncAPI`,pages:x},O);let k={..._,...x,...h,...D};return await Promise.all([y(),C()]),await U9e(p),await s9e(T),await bF.writeConfigFile(E),{docsConfig:E,pagesAcc:k,newOpenApiFiles:v,newAsyncApiFiles:S,customLanguages:f,inheritedSdkBySlug:T.inheritedSdkBySlug,pageMetadataBySlug:w}}const ret=async(e,t,n,r,i)=>{let a=await cB(`mint`,e);t.push(...a);let o={},[s,c]=await Promise.all([iet(e.anchors,t,o,{overwrite:!0,writeFiles:!0,targetDir:n,localSchema:r,invalidSpecFiles:i}),iet(e.tabs,t,o,{overwrite:!0,writeFiles:!0,targetDir:n,localSchema:r,invalidSpecFiles:i})]),l=[...e.navigation,...s.newNavItems,...c.newNavItems];return{mintConfig:{...e,navigation:l},pagesAcc:o,openApiFiles:[...t,...s.newOpenApiFiles,...c.newOpenApiFiles]}},iet=async(e,t,n,r)=>{let{overwrite:i,writeFiles:a,targetDir:o,localSchema:s,invalidSpecFiles:c,fetchRemoteDocument:l}=r,u=[],d=[];if(e==null)return{newNavItems:u,newOpenApiFiles:d};let f=[];for(let[r,p]of e.entries()){if(p.openapi==null)continue;let e;if(Eh(p.openapi,s))try{let t=await yh(p.openapi,{fetchRemoteDocument:l});e={filename:`openapi-from-anchor-url-${r}`,spec:t},d.push(e)}catch(e){throw console.error(e),e}else e=t.find(e=>e.originalFileLocation!=null&&e.originalFileLocation===p.openapi);if(e==null){let e=_F(c,p.openapi);throw Error(e?`Openapi file "${p.openapi}" defined in the anchor or tab array at index ${r} in your mint.json exists but is invalid: ${e.reason}`:`Openapi file "${p.openapi}" defined in the anchor or tab array at index ${r} in your mint.json does not exist`)}f.push((async()=>{let{pagesAcc:t,nav:r}=await QXe(e.spec,{openApiFilePath:e.originalFileLocation,version:p.version,writeFiles:a,outDir:p.url,outDirBasePath:_t.join(o??``,`src`,`_props`),overwrite:i,localSchema:s});Object.entries(t).forEach(([e,t])=>{n[e]=t}),u.push(...r)})())}return await Promise.all(f),{newNavItems:u,newOpenApiFiles:d}};async function aet(e,t,n,r,i){let a=await dF(e,`mint`);if(a==null)return null;let o=await yF.getConfig(a,r,e),{mintConfig:s,pagesAcc:c,openApiFiles:l}=await ret(o,t,void 0,n,i);return await yF.writeConfigFile(s),{mintConfig:s,pagesAcc:c,openApiFiles:l,originalMintConfig:o}}const fB=e=>{let t=/* @__PURE__ */ new Map;for(let[n,r]of Object.entries(e))if(r.graphql!=null){let e=Jz(n);t.has(e)||t.set(e,n)}return t},pB=(e,t,n,r,i=fB(r))=>{let a=Jz(t),o=i.get(a);if(o!==void 0)throw Error(`User page route "${t}" collides with generated GraphQL route "${o}"`);let s=r[t];if(s)try{let t=ik(e).attributes;!t.title&&s.title&&(n.title=s.title),!t.description&&s.description&&(n.description=s.description),!t.sidebarTitle&&s.sidebarTitle&&(n.sidebarTitle=s.sidebarTitle)}catch{}r[t]=n,n.graphql!=null&&i.set(a,t)},{readFile:oet}=Zt,set=e=>{try{return ik(e).attributes.rss===!0}catch{return!1}},cet=async({contentDirectoryPath:e,openApiFiles:t,asyncApiFiles:n,contentFilenames:r,pagesAcc:i,pageScans:a})=>{let o=[],s=[...r],c=fB(i),l=async r=>{let s=a?.get(r),l=s?.frontmatter??await oet(Ct(e,r),`utf8`),{slug:u,pageMetadata:d}=sk(r,l,t,n);pB(l,u,d,i,c),(s?s.rssCandidate||set(l):l.includes(`<Update`)||set(l))&&o.push(r)};return await Promise.all(Array.from({length:Math.min(16,s.length)},async()=>{let t=s.shift();for(;t!==void 0;){try{await l(t)}catch(n){if(n instanceof vPe)throw n;let r=n instanceof Error?n.message:`Unknown error occurred reading page metadata.`;console.error(`${Ct(e,t)}: ${r}`)}t=s.shift()}})),{rssCandidateFilenames:o}},uet=async(e,t,n,r)=>{try{return String(await PT().process(O(Py(e))))}catch(e){let i=hF(e,n,t);return r?r(i,dXe(n,t,e)):console.log(i),`🚧 A parsing error occurred. Please contact the owner of this website.`}},mB=async(e,t,n,r)=>{try{return FT(e,n)}catch(e){let i=hF(e,n,t);return r?r(i,dXe(n,t,e)):console.error(i),FT(`🚧 A parsing error occurred. Please contact the owner of this website.`)}},{readFile:det}=Zt,fet=async({contentDirectoryPath:e,openApiFiles:t,asyncApiFiles:n,contentFilenames:r,pagesAcc:i})=>{let a=[],o=[],s=[...r],c=fB(i),l=async r=>{let s=Ct(e,r),l=Ct(`src`,`_props`,r),u;try{let d=(await det(s)).toString(),f=await mB(d,e,s,kYe),p=await QT(f);if($T(p)){let t;try{t=ik(d).attributes}catch{}a.push({...p,filename:r,metadata:t,contentDirectoryPath:e});return}let{slug:m,pageMetadata:h}=sk(r,d,t,n);if(pB(d,m,h,i,c),h.rss===!0||CP(f)){o.push({targetPath:l,sourcePath:s,tree:f,metadata:h});return}u=f}catch(e){let t=e instanceof Error?e.message:`Unknown error occurred reading and parsing file.`;throw console.error(`${s}: ${t}`),Error(`Failed to parse MDX files, please correct errors before continuing`)}await(0,lF.outputFile)(l,IT(u),{flag:`w`})},u=async()=>{let e=s.shift();for(;e!==void 0;)await l(e),e=s.shift()},d=Math.min(8,s.length);return await Promise.all(Array.from({length:d},u)),{mdxFilesWithNoImports:o,pagesAcc:i,filesWithImports:a}},pet=(e,t,n)=>{let r=t.map(async t=>{let r=Ct(e,t),i=EO(await det(r,`utf8`),n);return{filename:t,tree:await mB(i,e,r,kYe)}});return Promise.all(r)},met=async e=>{try{let t=await yn(Ct(e,`package.json`),`utf8`);return _Ne(t).packageNames}catch{return/* @__PURE__ */ new Set}},het=async({openApiFiles:e,asyncApiFiles:t,pagesAcc:n,snippetsV2:r,filesWithImports:i,packageNames:a})=>{let o=a&&{packageNames:a,packageSnippets:UTe(r)},s=await get(r,o),c=await _et(s),l=await vet({openApiFiles:e,asyncApiFiles:t,snippetsWithResolvedImports:s,filesWithImports:i,pagesAcc:n,packages:o}),u=yet(l);await Promise.all([...c,...u])},get=async(e,t)=>{let n=e.map(async e=>({...await QT(e.tree),filename:e.filename})),r=await Promise.all(n);return GEe(r,{onWarning:JP,packages:t})},_et=async e=>e.map(async e=>{let t=Ct(`public`,e.filename);await(0,lF.outputFile)(t,IT(e.tree),{flag:`w`})}),vet=async({openApiFiles:e,asyncApiFiles:t,snippetsWithResolvedImports:n,filesWithImports:r,pagesAcc:i,packages:a})=>{let o=fB(i),s=r.map(async r=>{let s=await TE({snippets:n,fileWithImports:r,onWarning:JP,...a&&{packages:a}}),c=IT(s),{slug:l,pageMetadata:u}=sk(r.filename,c,e,t);return pB(c,l,u,i,o),{targetPath:Ct(`src`,`_props`,r.filename),tree:s}});return await Promise.all(s)},yet=e=>e.map(async({targetPath:e,tree:t})=>{await(0,lF.outputFile)(e,IT(t),{flag:`w`})});
1047
+ `)}\n---\n`}async function oB(e,t,{onSourceError:n}={}){let r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Set;async function s(e){let a=r.get(e);if(!a){let o=t(e).then(t=>{let n=T4e(t);return i.set(e,n),n});a=n?o.catch(t=>{n(e,t)}):o,r.set(e,a)}return a}function c(e){let t=O9e(e.slug),n=a.get(t);if(n&&(n.slug!==e.slug||n.target.source!==e.target.source||n.target.kind!==e.target.kind||n.target.name!==e.target.name))throw Error(`Multiple GraphQL references generate colliding routes "${n.slug}" and "${e.slug}"`);a.set(t,e)}async function l(e,t){if(!t)return e;let n=CJe(e);if(!n)return e;let r=await s(t.source);if(!r)return e;let i=R9e(r,t.source,t.directory,n);return c(i),o.add(t.owner),i.slug}async function u(e,t){return Object.fromEntries(await Promise.all(Object.entries(e).map(async([e,n])=>e!==`pages`||!Array.isArray(n)?[e,await d(n,t)]:[e,await Promise.all(n.map(e=>typeof e==`string`?l(e,t):d(e,t)))])))}async function d(e,t){if(Array.isArray(e))return Promise.all(e.map(e=>d(e,t)));if(typeof e!=`object`||!e)return e;let{graphql:n,...r}=e;if(n===void 0)return u(r,t);let{source:i,directory:a}=k9e(n),l=await u(r,{source:i,directory:a,owner:e});if(o.has(e))return l;let f=await s(i);if(!f)return l;let p=z9e(f,i,a),m=[{group:`Queries`,pages:p.queries.map(({slug:e})=>e)},{group:`Mutations`,pages:p.mutations.map(({slug:e})=>e)},{group:`Types`,pages:p.types.map(({slug:e})=>e)}].filter(({pages:e})=>e.length>0);if([...p.queries,...p.mutations,...p.types].forEach(c),`group`in l){let e=Array.isArray(l.pages)?l.pages:[];return{...l,pages:[...e,...m]}}let h=Array.isArray(l.groups)?l.groups:[];return{...l,groups:[...h,...m]}}let f=await d(e.navigation),p=[...a.values()].sort((e,t)=>Jz(e.slug).localeCompare(Jz(t.slug))||e.slug.localeCompare(t.slug)),m=Object.fromEntries(p.map(e=>[e.slug,{href:`/${e.slug}`,title:e.title,...e.description?{description:e.description}:{},...e.deprecated?{deprecated:!0}:{},tag:e.tag,graphql:e.target}]));return{navigation:f,newDocsConfig:{...e,navigation:f},pagesAcc:m,generatedPages:p,generatedRoutes:p.map(({slug:e})=>e),parsedReferences:Object.fromEntries([...i].sort(([e],[t])=>e.localeCompare(t)))}}async function sB(e,t){if(Rt.isAbsolute(e)||Rt.win32.isAbsolute(e))throw Error(`Unable to load GraphQL schema ${e}: path must be relative`);let n;try{n=new URL(e)}catch{}if(n){if(n.protocol===`https:`)return N7e(n.href);throw Error(`Unable to load GraphQL schema ${e}: URL must use HTTPS`)}try{let n=await lF.default.realpath(t),r=Rt.resolve(n,e),i=Rt.relative(n,r);if(i===`..`||i.startsWith(`..${Rt.sep}`)||Rt.isAbsolute(i))throw Error(`path escapes the content directory`);let a=await lF.default.realpath(r),o=Rt.relative(n,a);if(o===`..`||o.startsWith(`..${Rt.sep}`)||Rt.isAbsolute(o))throw Error(`path resolves outside the content directory`);let s=await qn(a,`r`);try{if((await s.stat()).size>5242880)throw Error(`schema exceeds the ${O7e} byte limit`);let e=new TextDecoder,t=``,n=0;for await(let r of s.createReadStream({autoClose:!1})){if(n+=r.length,n>5242880)throw Error(`schema exceeds the ${O7e} byte limit`);t+=e.decode(r,{stream:!0})}return t+e.decode()}finally{await s.close()}}catch(t){let n=t instanceof Error?`: ${t.message}`:``;throw Error(`Unable to load GraphQL schema ${e}${n}`)}}const V9e=e=>{try{return new URL(e).protocol===`https:`}catch{return!1}};function H9e(e,t){let n=Rt.resolve(e??``,`src`,`_props`),r=Rt.resolve(n,`${t}.mdx`),i=Rt.relative(n,r);if(!(i.startsWith(`..${Rt.sep}`)||i===`..`||Rt.isAbsolute(i)))return r}async function U9e(e,t){let n=Rt.resolve(t??``,`src`,`_props`),r=Rt.join(n,`graphql-data.json`);try{let e=JSON.parse(await lF.default.readFile(r,`utf8`));e.pages!=null&&typeof e.pages==`object`&&!Array.isArray(e.pages)&&await Promise.all(Object.keys(e.pages).flatMap(e=>{let n=H9e(t,e);return n?[lF.default.remove(n)]:[]}))}catch{}if(await lF.default.remove(r),Object.keys(e.parsedReferences).length===0&&e.generatedRoutes.length===0)return;let i={references:e.parsedReferences,pages:Object.fromEntries(e.generatedPages.map(t=>{let n=Object.fromEntries(e.generatedPages.filter(e=>e.target.source===t.target.source&&e.target.kind===`type`&&e.directory===t.directory).map(e=>[e.target.name,`/${e.slug}`]));return[t.slug,{target:t.target,routes:n}]}))};await lF.default.outputFile(r,JSON.stringify(i),{flag:`w`}),await Promise.all(e.generatedPages.map(e=>lF.default.outputFile(Rt.join(t??``,`src`,`_props`,`${e.slug}.mdx`),B9e(e),{flag:`w`})))}const cB=async(e,t,n,r,i)=>{let a;a=e===`docs`?t.api?.openapi:t.openapi;let o=[];async function s(e){let t=r?await Cm(r,e):void 0,n=await yh(e,{overlays:t,fetchRemoteDocument:i});o.push({filename:e,spec:n,originalFileLocation:e})}for(let e of Ka(a))Eh(e.source,n)&&await s(e.source);return o},lB=`api-reference`,W9e=/* @__PURE__ */ new WeakMap,G9e=e=>{let t=W9e.get(e);if(t)return t;let n={resolveTags:mh(e),resolveBadge:hh(e)};return W9e.set(e,n),n},K9e=e=>e.replace(/^\/+|\/+$/g,``),q9e=(e,t)=>{if(!e)return``;let n=e.replace(/^\/+/,``);return t.map(K9e).filter(Boolean).sort((e,t)=>t.length-e.length).find(e=>n===e||n.startsWith(`${e}/`))??``},uB=(e,t,n)=>q9e(e,n)||q9e(t,n),J9e=async(e,t,n,r)=>{let{overwrite:i,writeFiles:a,targetDir:o,localSchema:s,invalidSpecFiles:c,mountPaths:l=[],writeFile:u,overlayRegistry:d,fetchRemoteDocument:f}=r,p=[],m=/* @__PURE__ */ new Map;async function h(e){let r=lB,h,g;if(`openapi`in e){if(typeof e.openapi==`string`)h=e.openapi;else if(Array.isArray(e.openapi)&&e.openapi.length>0){let t=e.openapi[0];typeof t==`string`?h=t:t!=null&&(h=t.source,r=t.directory??lB,g=t.slug)}else typeof e.openapi==`object`&&`source`in e.openapi&&(h=e.openapi.source,r=e.openapi.directory??lB,g=e.openapi.slug)}if(h){let _;if(Eh(h,s)){if(m.has(h))_=await m.get(h);else{let e=Z9e(h,d,f);m.set(h,e),_=await e,p.push(_)}}else _=t.find(e=>e.originalFileLocation!=null&&e.originalFileLocation===Dh(h));if(!_){let t=_F(c,h);throw Error(t?`Openapi file ${h} defined in ${dB(e)?.division} in your docs.json exists but is invalid: ${t.reason}`:`Openapi file ${h} defined in ${dB(e)?.division} in your docs.json does not exist`)}let{pagesAcc:v,nav:y}=await tZe(_.spec,{openApiFilePath:_.originalFileLocation,writeFiles:a,outDir:r,outDirBasePath:_t.join(o??``,`src`,`_props`),slug:g,mountPath:uB(_.originalFileLocation,r,l),overwrite:i,localSchema:s,writeFile:u});Object.entries(v).forEach(([e,t])=>{n[e]=t});let b=dB(e);if(b?.division){let e=b.nav;return`group`in e?{...e,pages:`pages`in e&&Array.isArray(e.pages)?[...e.pages,...y]:y}:{...e,groups:`groups`in e?[...e.groups,...y]:y}}}return null}function g(e){let t={source:void 0,directory:void 0,slug:void 0};if(`openapi`in e&&e.openapi!==null){let n=e.openapi;if(typeof n==`string`)return{...t,source:n};if(Array.isArray(n)&&n.length>0){let e=n[0];return typeof e==`string`?{...t,source:e}:e==null?t:{source:e.source,directory:e.directory,slug:e.slug}}if(typeof n==`object`&&`source`in n&&typeof n.source==`string`)return{source:n.source,directory:`directory`in n&&typeof n.directory==`string`?n.directory:void 0,slug:`slug`in n?n.slug:void 0}}return t}let _=/* @__PURE__ */ new Set,v=/* @__PURE__ */ new Set,y=0;async function b(e,r,h,x,S){let C=y++,w=g(e),T=w.source??r,E=w.source?w.directory:w.directory??h,D=w.source?w.slug:w.slug??S,O=w.source?C:x,k=e;if(`pages`in k){let e=await Promise.all(k.pages.map(async e=>{if(typeof e==`object`&&e&&`group`in e)return b(e,T,E,O,D);if(typeof e!=`string`)return e;let r=Ff(e);if(r){let{filename:e,method:h,endpoint:g}=r,_=e??T;if(_){let r;if(_){if(Eh(_,s)){if(m.has(_))r=await m.get(_);else{let e=Z9e(_,d,f);m.set(_,e),r=await e,p.push(r)}}else r=t.find(e=>e.originalFileLocation!=null&&e.originalFileLocation===Dh(_))}if(!r){let e=_F(c,_);throw Error(e?`Openapi file ${_} referenced in docs.json exists but is invalid: ${e.reason}`:`Openapi file ${_} referenced in docs.json does not exist`)}let y=r.spec,b=h.toLowerCase()===`webhook`,x=[],S=[],C=[],w=[];if(b){let e=y.webhooks,t=Pf(e,g);if(!t)throw Error(`Webhook ${g} not found in ${_}. ${e?`Available webhooks: ${Object.keys(e).join(`, `)}`:``}`.trim());w=PF(t.pathKey,t.pathItem,y,x,S,C,n,{openApiFilePath:r.originalFileLocation,writeFiles:a,outDir:E??lB,outDirBasePath:_t.join(o??``,`src`,`_props`),slug:D,mountPath:uB(r.originalFileLocation,E,l),overwrite:i,localSchema:s,writeFile:u,...G9e(y)},wh)}else{let e=Pf(y.paths,g);if(!e){let e=Object.keys(y.paths??{}).join(`, `);throw Error(`Endpoint ${g} not found in ${_}.${e?` Available paths: ${e}`:``}`)}let t=h===`webhook`?void 0:Pl(e.pathItem,h);if(!t)throw Error(`Method ${h.toUpperCase()} for endpoint ${e.pathKey} not found in ${_}`);let c=Dl(h)?{[h]:t}:{additionalOperations:{[h]:t}};w=NF(e.pathKey,c,y,x,S,C,n,{openApiFilePath:r.originalFileLocation,writeFiles:a,outDir:E??lB,outDirBasePath:_t.join(o??``,`src`,`_props`),slug:D,mountPath:uB(r.originalFileLocation,E,l),overwrite:i,localSchema:s,writeFile:u,...G9e(y)},wh)}await Promise.all(C);let T=w[0];if(!T)throw Error(`Failed to generate OpenAPI endpoint page for ${h.toUpperCase()} ${g} in ${_}`);return O&&!e&&v.add(O),T}}return e}));k.pages=e}for(let e of[`groups`,...Ss])if(e in k){let t=k[e];k={...k,[e]:await Promise.all(t.map(e=>b(e,T,E,O,D)))}}return v.has(C)&&_.add(k),k}let x=await b(e,void 0,void 0,void 0);async function S(e){let t=e;if(g(t).source&&!_.has(t)){let e=await h(t);e&&(t=e)}if(`pages`in t&&t.pages){let e=await Promise.all(t.pages.map(async e=>typeof e==`object`&&e&&`group`in e?S(e):e));t.pages=e}for(let e of[`groups`,...Ss]){let n=lk(t,e);n&&(t=Object.assign({},t,{[e]:await Promise.all(n.map(e=>S(e)))}))}return t}let C=await S(x);if(!X9e(C))throw Error(`OpenAPI page generation produced a non-top-level navigation node`);return e=C,{newNav:C,newOpenApiFiles:p}},Y9e=[`group`,`tab`,`anchor`,`version`,`language`,`dropdown`,`product`,`item`];function X9e(e){return Y9e.every(t=>!(t in e))}function dB(e){if(`openapi`in e){let{openapi:t,...n}=e,r={group:`group`,anchor:`anchor`,tab:`tab`,version:`version`,language:`language`,dropdown:`dropdown`,product:`product`,item:`item`},i=Object.keys(r).find(e=>e in n);return{division:r[i],name:n[i],nav:n}}}async function Z9e(e,t,n){try{let r=t?await Cm(t,e):void 0;return{filename:e,spec:await yh(e,{overlays:r,fetchRemoteDocument:n}),originalFileLocation:e}}catch(e){throw console.error(e),e}}const Q9e=async(e,t,n,r,i,a,o=!1,s)=>{let c=await cB(`docs`,e,r,s);t.push(...c);let l={},u=[],d=o||a!=null&&Object.keys(a).length>0,{newNav:f,newOpenApiFiles:p}=await J9e(e.navigation,t,l,{overwrite:!0,writeFiles:!0,targetDir:n,localSchema:r,invalidSpecFiles:i,overlayRegistry:s,...d?{writeFile:(e,t)=>{u.push({filename:e,content:t})}}:{}}),m=async()=>{await Promise.all(u.map(({filename:e,content:t})=>lF.default.outputFile(e,t)))};return a&&Yz({label:`GraphQL`,pages:a},{label:`OpenAPI`,pages:l}),o||await m(),{newDocsConfig:{...e,navigation:f},pagesAcc:l,openApiFiles:[...t,...p],flushWrites:m}},$9e=(e,t)=>{let n=_t.relative(e,t);return n!==`..`&&!n.startsWith(`..${_t.sep}`)&&!_t.isAbsolute(n)},eet=async(e,t)=>{let n=_t.join(e,t);return $9e(e,n)?lF.default.existsSync(n)?$9e(await xn(e),await xn(n))?{content:await yn(n,`utf8`)}:`outside`:`missing`:`outside`};async function tet({config:e,contentDirectoryPath:t}){let n=typeof e.styling?.codeblocks==`object`&&e.styling.codeblocks.languages?.custom?e.styling.codeblocks.languages.custom:[];if(n.length===0)return[];let r=_t.resolve(t);return await Promise.all(n.map(async e=>{let t=await eet(r,e);if(t===`outside`)console.error(`Custom language file "${e}" defined in docs.json is outside the docs directory`);else if(t===`missing`)console.error(`Custom language file "${_t.join(r,e)}" defined in docs.json is not found`);else return{content:t.content,filePath:e}})).then(e=>e.filter(e=>e!==void 0))}async function net({contentDirectoryPath:e,openApiFiles:t,asyncApiFiles:n,docsConfig:r,localSchema:i,disableOpenApi:a,strict:o,invalidSpecFiles:s,allowSourceRefs:c,overlayRegistry:l,pageScans:u}){let d=await dF(e,`docs`);if(d==null&&r==null||(r==null&&d&&(r=await bF.getConfig(d,o,e,void 0,{allowSourceRefs:c})),r==null))throw Error(`must be run in a directory where a docs.json file exists.`);let f=await tet({config:r,contentDirectoryPath:e}),p=await oB(r,t=>sB(t,e)),{newDocsConfig:m,pagesAcc:h}=p,{newDocsConfig:g,pagesAcc:_,openApiFiles:v,flushWrites:y}=a?{newDocsConfig:m,pagesAcc:{},openApiFiles:t,flushWrites:async()=>{}}:await Q9e(m,t,void 0,i,s,h,!0,l),{newDocsConfig:b,pagesAcc:x,asyncApiFiles:S,flushWrites:C}=await g9e(g,n,void 0,i,h,!0,!0),w=await c9e(e,b.navigation,u),T=await H7e(b,t=>X7e(t,e),{pageMetadataBySlug:w}),{newDocsConfig:E,pagesAcc:D}=T,O={label:`SDK`,pages:D};Yz({label:`GraphQL`,pages:h},O),Yz({label:`OpenAPI`,pages:_},O),Yz({label:`AsyncAPI`,pages:x},O);let k={..._,...x,...h,...D};return await Promise.all([y(),C()]),await U9e(p),await s9e(T),await bF.writeConfigFile(E),{docsConfig:E,pagesAcc:k,newOpenApiFiles:v,newAsyncApiFiles:S,customLanguages:f,inheritedSdkBySlug:T.inheritedSdkBySlug,pageMetadataBySlug:w}}const ret=async(e,t,n,r,i)=>{let a=await cB(`mint`,e);t.push(...a);let o={},[s,c]=await Promise.all([iet(e.anchors,t,o,{overwrite:!0,writeFiles:!0,targetDir:n,localSchema:r,invalidSpecFiles:i}),iet(e.tabs,t,o,{overwrite:!0,writeFiles:!0,targetDir:n,localSchema:r,invalidSpecFiles:i})]),l=[...e.navigation,...s.newNavItems,...c.newNavItems];return{mintConfig:{...e,navigation:l},pagesAcc:o,openApiFiles:[...t,...s.newOpenApiFiles,...c.newOpenApiFiles]}},iet=async(e,t,n,r)=>{let{overwrite:i,writeFiles:a,targetDir:o,localSchema:s,invalidSpecFiles:c,fetchRemoteDocument:l}=r,u=[],d=[];if(e==null)return{newNavItems:u,newOpenApiFiles:d};let f=[];for(let[r,p]of e.entries()){if(p.openapi==null)continue;let e;if(Eh(p.openapi,s))try{let t=await yh(p.openapi,{fetchRemoteDocument:l});e={filename:`openapi-from-anchor-url-${r}`,spec:t},d.push(e)}catch(e){throw console.error(e),e}else e=t.find(e=>e.originalFileLocation!=null&&e.originalFileLocation===p.openapi);if(e==null){let e=_F(c,p.openapi);throw Error(e?`Openapi file "${p.openapi}" defined in the anchor or tab array at index ${r} in your mint.json exists but is invalid: ${e.reason}`:`Openapi file "${p.openapi}" defined in the anchor or tab array at index ${r} in your mint.json does not exist`)}f.push((async()=>{let{pagesAcc:t,nav:r}=await QXe(e.spec,{openApiFilePath:e.originalFileLocation,version:p.version,writeFiles:a,outDir:p.url,outDirBasePath:_t.join(o??``,`src`,`_props`),overwrite:i,localSchema:s});Object.entries(t).forEach(([e,t])=>{n[e]=t}),u.push(...r)})())}return await Promise.all(f),{newNavItems:u,newOpenApiFiles:d}};async function aet(e,t,n,r,i){let a=await dF(e,`mint`);if(a==null)return null;let o=await yF.getConfig(a,r,e),{mintConfig:s,pagesAcc:c,openApiFiles:l}=await ret(o,t,void 0,n,i);return await yF.writeConfigFile(s),{mintConfig:s,pagesAcc:c,openApiFiles:l,originalMintConfig:o}}const fB=e=>{let t=/* @__PURE__ */ new Map;for(let[n,r]of Object.entries(e))if(r.graphql!=null){let e=Jz(n);t.has(e)||t.set(e,n)}return t},pB=(e,t,n,r,i=fB(r))=>{let a=Jz(t),o=i.get(a);if(o!==void 0)throw Error(`User page route "${t}" collides with generated GraphQL route "${o}"`);let s=r[t];if(s)try{let t=ik(e).attributes;!t.title&&s.title&&(n.title=s.title),!t.description&&s.description&&(n.description=s.description),!t.sidebarTitle&&s.sidebarTitle&&(n.sidebarTitle=s.sidebarTitle)}catch{}r[t]=n,n.graphql!=null&&i.set(a,t)},{readFile:oet}=Zt,set=e=>{try{return ik(e).attributes.rss===!0}catch{return!1}},cet=async({contentDirectoryPath:e,openApiFiles:t,asyncApiFiles:n,contentFilenames:r,pagesAcc:i,pageScans:a})=>{let o=[],s=[...r],c=fB(i),l=async r=>{let s=a?.get(r),l=s?.frontmatter??await oet(Ct(e,r),`utf8`),{slug:u,pageMetadata:d}=sk(r,l,t,n);pB(l,u,d,i,c),(s?s.rssCandidate||set(l):l.includes(`<Update`)||set(l))&&o.push(r)};return await Promise.all(Array.from({length:Math.min(16,s.length)},async()=>{let t=s.shift();for(;t!==void 0;){try{await l(t)}catch(n){if(n instanceof vPe)throw n;let r=n instanceof Error?n.message:`Unknown error occurred reading page metadata.`;console.error(`${Ct(e,t)}: ${r}`)}t=s.shift()}})),{rssCandidateFilenames:o}},uet=async(e,t,n,r)=>{try{return String(await PT().process(O(Py(e))))}catch(e){let i=hF(e,n,t);return r?r(i,dXe(n,t,e)):console.log(i),`🚧 A parsing error occurred. Please contact the owner of this website.`}},mB=async(e,t,n,r)=>{try{return FT(e,n)}catch(e){let i=hF(e,n,t);return r?r(i,dXe(n,t,e)):console.error(i),FT(`🚧 A parsing error occurred. Please contact the owner of this website.`)}},{readFile:det}=Zt,fet=async({contentDirectoryPath:e,openApiFiles:t,asyncApiFiles:n,contentFilenames:r,pagesAcc:i})=>{let a=[],o=[],s=[...r],c=fB(i),l=async r=>{let s=Ct(e,r),l=Ct(`src`,`_props`,r),u;try{let d=(await det(s)).toString(),f=await mB(d,e,s,kYe),p=await $T(f);if(eE(p)){let t;try{t=ik(d).attributes}catch{}a.push({...p,filename:r,metadata:t,contentDirectoryPath:e});return}let{slug:m,pageMetadata:h}=sk(r,d,t,n);if(pB(d,m,h,i,c),h.rss===!0||CP(f)){o.push({targetPath:l,sourcePath:s,tree:f,metadata:h});return}u=f}catch(e){let t=e instanceof Error?e.message:`Unknown error occurred reading and parsing file.`;throw console.error(`${s}: ${t}`),Error(`Failed to parse MDX files, please correct errors before continuing`)}await(0,lF.outputFile)(l,IT(u),{flag:`w`})},u=async()=>{let e=s.shift();for(;e!==void 0;)await l(e),e=s.shift()},d=Math.min(8,s.length);return await Promise.all(Array.from({length:d},u)),{mdxFilesWithNoImports:o,pagesAcc:i,filesWithImports:a}},pet=(e,t,n)=>{let r=t.map(async t=>{let r=Ct(e,t),i=EO(await det(r,`utf8`),n);return{filename:t,tree:await mB(i,e,r,kYe)}});return Promise.all(r)},met=async e=>{try{let t=await yn(Ct(e,`package.json`),`utf8`);return _Ne(t).packageNames}catch{return/* @__PURE__ */ new Set}},het=async({openApiFiles:e,asyncApiFiles:t,pagesAcc:n,snippetsV2:r,filesWithImports:i,packageNames:a})=>{let o=a&&{packageNames:a,packageSnippets:qTe(r)},s=await get(r,o),c=await _et(s),l=await vet({openApiFiles:e,asyncApiFiles:t,snippetsWithResolvedImports:s,filesWithImports:i,pagesAcc:n,packages:o}),u=yet(l);await Promise.all([...c,...u])},get=async(e,t)=>{let n=e.map(async e=>({...await $T(e.tree),filename:e.filename})),r=await Promise.all(n);return YEe(r,{onWarning:JP,packages:t})},_et=async e=>e.map(async e=>{let t=Ct(`public`,e.filename);await(0,lF.outputFile)(t,IT(e.tree),{flag:`w`})}),vet=async({openApiFiles:e,asyncApiFiles:t,snippetsWithResolvedImports:n,filesWithImports:r,pagesAcc:i,packages:a})=>{let o=fB(i),s=r.map(async r=>{let s=await EE({snippets:n,fileWithImports:r,onWarning:JP,...a&&{packages:a}}),c=IT(s),{slug:l,pageMetadata:u}=sk(r.filename,c,e,t);return pB(c,l,u,i,o),{targetPath:Ct(`src`,`_props`,r.filename),tree:s}});return await Promise.all(s)},yet=e=>e.map(async({targetPath:e,tree:t})=>{await(0,lF.outputFile)(e,IT(t),{flag:`w`})});
1048
1048
  /*!
1049
1049
  * escape-html
1050
1050
  * Copyright(c) 2012-2013 TJ Holowaychuk
@@ -1070,7 +1070,7 @@ String.fromCodePoint||(function(){var e=String.fromCharCode,t=Math.floor,n=funct
1070
1070
  Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n})()})(e===void 0?r.sax={}:e)})),Let=/* @__PURE__ */ a(((e,t,n)=>{(function(){e.stripBOM=function(e){return e[0]===``?e.substring(1):e}}).call(n)})),Ret=/* @__PURE__ */ a(((e,t,n)=>{(function(){var t=/* @__PURE__ */ new RegExp(/(?!xmlns)^.*:/);e.normalize=function(e){return e.toLowerCase()},e.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},e.stripPrefix=function(e){return e.replace(t,``)},e.parseNumbers=function(e){return isNaN(e)||(e=e%1==0?parseInt(e,10):parseFloat(e)),e},e.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e=e.toLowerCase()===`true`),e}}).call(n)})),zet=/* @__PURE__ */ a(((e,n,r)=>{(function(){var n,r,i,a,o,s,c,l,u,d=function(e,t){return function(){return e.apply(t,arguments)}},f=function(e,t){for(var n in t)p.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},p={}.hasOwnProperty;l=Iet(),a=t(`events`),n=Let(),c=Ret(),u=t(`timers`).setImmediate,r=gB().defaults,o=function(e){return typeof e==`object`&&!!e&&Object.keys(e).length===0},s=function(e,t,n){for(var r=0,i=e.length,a;r<i;r++)a=e[r],t=a(t,n);return t},i=function(e,t,n){var r=Object.create(null);return r.value=n,r.writable=!0,r.enumerable=!0,r.configurable=!0,Object.defineProperty(e,t,r)},e.Parser=(function(t){f(a,t);function a(t){this.parseStringPromise=d(this.parseStringPromise,this),this.parseString=d(this.parseString,this),this.reset=d(this.reset,this),this.assignOrPush=d(this.assignOrPush,this),this.processAsync=d(this.processAsync,this);var n,i,a;if(!(this instanceof e.Parser))return new e.Parser(t);for(n in this.options={},i=r[`0.2`],i)p.call(i,n)&&(a=i[n],this.options[n]=a);for(n in t)p.call(t,n)&&(a=t[n],this.options[n]=a);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+`ns`),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(c.normalize)),this.reset()}return a.prototype.processAsync=function(){var e,t;try{return this.remaining.length<=this.options.chunkSize?(e=this.remaining,this.remaining=``,this.saxParser=this.saxParser.write(e),this.saxParser.close()):(e=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(e),u(this.processAsync))}catch(e){if(t=e,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(t)}},a.prototype.assignOrPush=function(e,t,n){return t in e?(e[t]instanceof Array||i(e,t,[e[t]]),e[t].push(n)):this.options.explicitArray?i(e,t,[n]):i(e,t,n)},a.prototype.reset=function(){var e,t,n,r;return this.removeAllListeners(),this.saxParser=l.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(function(e){return function(t){if(e.saxParser.resume(),!e.saxParser.errThrown)return e.saxParser.errThrown=!0,e.emit(`error`,t)}})(this),this.saxParser.onend=(function(e){return function(){if(!e.saxParser.ended)return e.saxParser.ended=!0,e.emit(`end`,e.resultObject)}})(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,r=[],e=this.options.attrkey,t=this.options.charkey,this.saxParser.onopentag=(function(n){return function(a){var o,c,l={},u,d;if(l[t]=``,!n.options.ignoreAttrs)for(o in d=a.attributes,d)p.call(d,o)&&(!(e in l)&&!n.options.mergeAttrs&&(l[e]={}),c=n.options.attrValueProcessors?s(n.options.attrValueProcessors,a.attributes[o],o):a.attributes[o],u=n.options.attrNameProcessors?s(n.options.attrNameProcessors,o):o,n.options.mergeAttrs?n.assignOrPush(l,u,c):i(l[e],u,c));return l[`#name`]=n.options.tagNameProcessors?s(n.options.tagNameProcessors,a.name):a.name,n.options.xmlns&&(l[n.options.xmlnskey]={uri:a.uri,local:a.local}),r.push(l)}})(this),this.saxParser.onclosetag=(function(e){return function(){var n,a,c,l,u,d=r.pop(),f,m,h,g;if(u=d[`#name`],(!e.options.explicitChildren||!e.options.preserveChildrenOrder)&&delete d[`#name`],d.cdata===!0&&(n=d.cdata,delete d.cdata),h=r[r.length-1],d[t].match(/^\s*$/)&&!n?(a=d[t],delete d[t]):(e.options.trim&&(d[t]=d[t].trim()),e.options.normalize&&(d[t]=d[t].replace(/\s{2,}/g,` `).trim()),d[t]=e.options.valueProcessors?s(e.options.valueProcessors,d[t],u):d[t],Object.keys(d).length===1&&t in d&&!e.EXPLICIT_CHARKEY&&(d=d[t])),o(d)&&(d=typeof e.options.emptyTag==`function`?e.options.emptyTag():e.options.emptyTag===``?a:e.options.emptyTag),e.options.validator!=null&&(g=`/`+(function(){var e,t,n=[];for(e=0,t=r.length;e<t;e++)l=r[e],n.push(l[`#name`]);return n})().concat(u).join(`/`),(function(){var t;try{return d=e.options.validator(g,h&&h[u],d)}catch(n){return t=n,e.emit(`error`,t)}})()),e.options.explicitChildren&&!e.options.mergeAttrs&&typeof d==`object`){if(!e.options.preserveChildrenOrder)l={},e.options.attrkey in d&&(l[e.options.attrkey]=d[e.options.attrkey],delete d[e.options.attrkey]),!e.options.charsAsChildren&&e.options.charkey in d&&(l[e.options.charkey]=d[e.options.charkey],delete d[e.options.charkey]),Object.getOwnPropertyNames(d).length>0&&(l[e.options.childkey]=d),d=l;else if(h){for(c in h[e.options.childkey]=h[e.options.childkey]||[],f={},d)p.call(d,c)&&i(f,c,d[c]);h[e.options.childkey].push(f),delete d[`#name`],Object.keys(d).length===1&&t in d&&!e.EXPLICIT_CHARKEY&&(d=d[t])}}return r.length>0?e.assignOrPush(h,u,d):(e.options.explicitRoot&&(m=d,d={},i(d,u,m)),e.resultObject=d,e.saxParser.ended=!0,e.emit(`end`,e.resultObject))}})(this),n=(function(e){return function(n){var i,a=r[r.length-1];if(a)return a[t]+=n,e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||n.replace(/\\n/g,``).trim()!==``)&&(a[e.options.childkey]=a[e.options.childkey]||[],i={"#name":`__text__`},i[t]=n,e.options.normalize&&(i[t]=i[t].replace(/\s{2,}/g,` `).trim()),a[e.options.childkey].push(i)),a}})(this),this.saxParser.ontext=n,this.saxParser.oncdata=(function(e){return function(e){var t=n(e);if(t)return t.cdata=!0}})(this)},a.prototype.parseString=function(e,t){var r;t!=null&&typeof t==`function`&&(this.on(`end`,function(e){return this.reset(),t(null,e)}),this.on(`error`,function(e){return this.reset(),t(e)}));try{return e=e.toString(),e.trim()===``?(this.emit(`end`,null),!0):(e=n.stripBOM(e),this.options.async?(this.remaining=e,u(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(e){if(r=e,!(this.saxParser.errThrown||this.saxParser.ended))return this.emit(`error`,r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},a.prototype.parseStringPromise=function(e){return new Promise((function(t){return function(n,r){return t.parseString(e,function(e,t){return e?r(e):n(t)})}})(this))},a})(a),e.parseString=function(t,n,r){var i,a,o;return r==null?(typeof n==`function`&&(i=n),a={}):(typeof r==`function`&&(i=r),typeof n==`object`&&(a=n)),o=new e.Parser(a),o.parseString(t,i)},e.parseStringPromise=function(t,n){var r,i;return typeof n==`object`&&(r=n),i=new e.Parser(r),i.parseStringPromise(t)}}).call(r)})),Bet=/* @__PURE__ */ a(((e,t,n)=>{(function(){var t,n,r,i,a=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=gB(),t=Fet(),r=zet(),i=Ret(),e.defaults=n.defaults,e.processors=i,e.ValidationError=(function(e){a(t,e);function t(e){this.message=e}return t})(Error),e.Builder=t.Builder,e.Parser=r.Parser,e.parseString=r.parseString,e.parseStringPromise=r.parseStringPromise}).call(n)})),IB=/* @__PURE__ */ r(hB(),1),Vet=/* @__PURE__ */ r(Bet(),1);const LB={path:`/`,appName:null,appShortName:null,appDescription:null,developerName:null,developerURL:null,cacheBustingQueryParam:null,dir:`auto`,lang:`en-US`,background:`#fff`,theme_color:`#fff`,appleStatusBarStyle:`black-translucent`,display:`standalone`,orientation:`any`,start_url:`/?homescreen=1`,version:`1.0`,pixel_art:!1,loadManifestWithCredentials:!1,manifestRelativePaths:!1,manifestMaskable:!1,preferRelatedApplications:!1,icons:{android:!0,appleIcon:!0,appleStartup:!0,favicons:!0,windows:!0,yandex:!0},output:{images:!0,files:!0,html:!0}};function Het(e){let t=Buffer.alloc(6);return t.writeUInt16LE(0,0),t.writeUInt16LE(1,2),t.writeUInt16LE(e,4),t}function Uet(e,t){let n=Buffer.alloc(16),{width:r,height:i}=e.info,a=r*i*4+40;return n.writeUInt8(r===256?0:r,0),n.writeUInt8(i===256?0:i,1),n.writeUInt8(0,2),n.writeUInt8(0,3),n.writeUInt16LE(1,4),n.writeUInt16LE(32,6),n.writeUInt32LE(a,8),n.writeUInt32LE(t,12),n}function Wet(e,t){let n=Buffer.alloc(40),{width:r,height:i}=e.info;return n.writeUInt32LE(40,0),n.writeInt32LE(r,4),n.writeInt32LE(i*2,8),n.writeUInt16LE(1,12),n.writeUInt16LE(32,14),n.writeUInt32LE(t,16),n.writeUInt32LE(r*i,20),n.writeInt32LE(0,24),n.writeInt32LE(0,28),n.writeUInt32LE(0,32),n.writeUInt32LE(0,36),n}function Get(e){let{width:t,height:n}=e.info,r=e.data,i=Buffer.alloc(t*n*4);for(let e=0;e<n;++e)for(let a=0;a<n;++a){let o=(e*t+a)*4,s=r.readUInt8(o),c=r.readUInt8(o+1),l=r.readUInt8(o+2),u=r.readUInt8(o+3),d=(n-e-1)*t+a;i.writeUInt8(l,d*4),i.writeUInt8(c,d*4+1),i.writeUInt8(s,d*4+2),i.writeUInt8(u,d*4+3)}return i}function Ket(e){let t=[Het(e.length)],n=6+16*e.length,r=e.map(e=>{let t=Wet(e,0),n=Get(e);return Buffer.concat([t,n])});for(let i=0;i<e.length;++i){let a=e[i],o=r[i],s=Uet(a,n);t.push(s),n+=o.length}return t=[...t,...r],Buffer.concat(t)}function qet(e,t,n){if(!e.width||!e.height)return;let r=e.density??72;return Math.min(Math.max(1,r,r*t/e.width,r*n/e.height),1e5)}function Jet(e,t){let n=[e].flat(1/0),r=[t].flat(1/0);for(let e=0;e<Math.max(n.length,r.length);++e){if(e>=n.length)return-1;if(e>=r.length)return 1;if(n[e]!==r[e])return n[e]<r[e]?-1:1}return 0}function Yet(e,t){return e.reduce((e,n)=>t(e,n)<0?e:n)}function Xet(e,t){return Yet(e,(e,n)=>Jet(t(e),t(n)))}function Zet(e){return typeof e==`string`||e instanceof String?e.toString():void 0}async function RB(e){if(Buffer.isBuffer(e))try{return[{data:e,metadata:await Xn(e).metadata()}]}catch{return Promise.reject(/* @__PURE__ */ Error(`Invalid image buffer`))}if(typeof e==`string`)return await RB(await yn(e));if(Array.isArray(e)&&!e.some(Array.isArray)){if(!e.length)throw Error(`No source provided`);return(await Promise.all(e.map(RB))).flat()}throw Error(`Invalid source type provided`)}function Qet(e){return e.sizes.map(t=>({...t,offset:e.offset??0,pixelArt:e.pixelArt??!1,background:Zet(e.background),transparent:e.transparent,rotate:e.rotate}))}function zB(e,t){if(!e)return t;let n=e.endsWith(`/`)?e:`${e}/`,r=new URL(t,new URL(n,`resolve://`));return r.protocol===`resolve:`?r.pathname:r.toString()}function $et(e,t,n){let r=Math.max(t,n);return Xet(e,e=>{let t=Math.max(e.metadata.width,e.metadata.height);return[e.metadata.format===`svg`?0:1,t>=r?0:1,Math.abs(t-r)]})}async function ett(e,t,n,r){if(e.metadata.format===`svg`){let r={density:qet(e.metadata,t,n)};return await Xn(e.data,r).resize({width:t,height:n,fit:Xn.fit.contain,background:`#00000000`}).toBuffer()}return await Xn(e.data).ensureAlpha().resize({width:t,height:n,fit:Xn.fit.contain,background:`#00000000`,kernel:r&&t>=e.metadata.width&&n>=e.metadata.height?`nearest`:`lanczos3`}).toBuffer()}function ttt(e,t,n){let r=!n||n===`transparent`,i=Xn({create:{width:e,height:t,channels:r?4:3,background:r?`#00000000`:n}});return r&&(i=i.ensureAlpha()),i}async function BB(e,t){let n=Math.round(Math.max(t.width,t.height)*t.offset/100)||0,r=t.width-n*2,i=t.height-n*2,a=await ett($et(e,r,i),r,i,t.pixelArt),o=ttt(t.width,t.height,t.background).composite([{input:a,left:n,top:n}]);return t.rotate&&(o=o.rotate(90)),o}function ntt(e){return e.toColorspace(`srgb`).raw({depth:`uchar`}).toBuffer({resolveWithObject:!0})}function rtt(e){return e.png().toBuffer()}async function itt(e,t){let{width:n,height:r}=t,i=$et(e,n,r);if(i.metadata.format===`svg`)return i.data;{let i=(await rtt(await BB(e,t))).toString(`base64`);return Buffer.from(`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 ${n} ${r}" width="${n}" height="${r}">
1071
1071
  <image width="${n}" height="${r}" xlink:href="data:image/png;base64,${i}"/>
1072
1072
  </svg>`)}}async function VB(e,t,n){let r=Qet(n),i=xt(t);return i===`.ico`||r.length!==1?{name:t,contents:Ket(await Promise.all(r.map(t=>BB(e,t).then(ntt))))}:i===`.svg`?{name:t,contents:await itt(e,r[0])}:{name:t,contents:await BB(e,r[0]).then(rtt)}}function HB(e,t){return{sizes:[{width:e,height:t??e}],offset:0,background:!1,transparent:!0,rotate:!1}}function att(...e){return{sizes:e.map(e=>({width:e,height:e})),offset:0,background:!1,transparent:!0,rotate:!1}}function UB(e,t){return{sizes:[{width:e,height:t??e}],offset:0,background:!0,transparent:!1,rotate:!1}}function WB(e){return{...e,purpose:`maskable`}}var ott=Object.defineProperty,stt=(e,t,n)=>t in e?ott(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ctt=(e,t,n)=>(stt(e,typeof t==`symbol`?t:t+``,n),n);function GB(e,t,n){let r=[];if(Array.isArray(t)){let e=Object.fromEntries(t.map(e=>typeof e==`object`?[e.name,e]:[e,{name:e}]));r=n.filter(t=>t.name in e).map(t=>({...t,...e[t.name]}))}else r=typeof t==`object`?n.filter(e=>!e.optional).map(e=>({...e,...t})):n.filter(e=>!e.optional);return r.map(t=>({pixelArt:e.pixel_art,...t,background:t.background===!0?e.background:Zet(t.background)}))}var KB=class{constructor(e,t){ctt(this,`options`),ctt(this,`iconOptions`),this.options=e,this.iconOptions=t}async create(e){let{output:t}=this.options;return{images:t.images?await this.createImages(e):[],files:t.files?await this.createFiles():[],html:t.html?await this.createHtml():[]}}async createImages(e){return await Promise.all(this.iconOptions.map(t=>VB(e,t.name,t)))}async createFiles(){return[]}async createHtml(){return[]}relative(e){return zB(this.options.path,e)}cacheBusting(e){if(typeof this.options.cacheBustingQueryParam!=`string`)return e;let t=this.options.cacheBustingQueryParam.split(`=`);if(t.length===1)return e;let n=new URL(e,`https://cache.busting`);return n.searchParams.set(t[0],t.slice(1).join(`=`)),n.origin===`https://cache.busting`?n.pathname+n.search:n.toString()}};const ltt=[{name:`android-chrome-36x36.png`,...HB(36)},{name:`android-chrome-48x48.png`,...HB(48)},{name:`android-chrome-72x72.png`,...HB(72)},{name:`android-chrome-96x96.png`,...HB(96)},{name:`android-chrome-144x144.png`,...HB(144)},{name:`android-chrome-192x192.png`,...HB(192)},{name:`android-chrome-256x256.png`,...HB(256)},{name:`android-chrome-384x384.png`,...HB(384)},{name:`android-chrome-512x512.png`,...HB(512)}],utt=[{name:`android-chrome-maskable-36x36.png`,...WB(HB(36))},{name:`android-chrome-maskable-48x48.png`,...WB(HB(48))},{name:`android-chrome-maskable-72x72.png`,...WB(HB(72))},{name:`android-chrome-maskable-96x96.png`,...WB(HB(96))},{name:`android-chrome-maskable-144x144.png`,...WB(HB(144))},{name:`android-chrome-maskable-192x192.png`,...WB(HB(192))},{name:`android-chrome-maskable-256x256.png`,...WB(HB(256))},{name:`android-chrome-maskable-384x384.png`,...WB(HB(384))},{name:`android-chrome-maskable-512x512.png`,...WB(HB(512))}],dtt={"36x36.png":HB(36),"48x48.png":HB(48),"72x72.png":HB(72),"96x96.png":HB(96),"144x144.png":HB(144),"192x192.png":HB(192)};var ftt=class extends KB{constructor(e){super(e,GB(e,e.icons.android,ltt))}async createImages(e){let t=await Promise.all(this.iconOptions.map(t=>VB(e,t.name,t)));if(this.options.manifestMaskable&&typeof this.options.manifestMaskable!=`boolean`){let e=await RB(this.options.manifestMaskable),n=await Promise.all(utt.map(t=>VB(e,t.name,t)));t=[...t,...n]}return Array.isArray(this.options.shortcuts)&&this.options.shortcuts.length>0&&(t=[...t,...await this.shortcutIcons()]),t}async createFiles(){return[this.manifest()]}async createHtml(){return[this.options.loadManifestWithCredentials?`<link rel="manifest" href="${this.cacheBusting(this.relative(this.manifestFileName()))}" crossOrigin="use-credentials">`:`<link rel="manifest" href="${this.cacheBusting(this.relative(this.manifestFileName()))}">`,`<meta name="mobile-web-app-capable" content="yes">`,`<meta name="theme-color" content="${this.options.theme_color||this.options.background}">`,this.options.appName?`<meta name="application-name" content="${(0,IB.default)(this.options.appName)}">`:`<meta name="application-name">`]}async shortcutIcons(){return(await Promise.all(this.options.shortcuts.map(async(e,t)=>{if(!e.name||!e.url||!e.icon)return null;let n=await RB(e.icon);return Promise.all(Object.entries(dtt).map(([e,r])=>VB(n,`shortcut${t+1}-${e}`,r)))}))).flat()}manifestFileName(){return this.options.files?.android?.manifestFileName??`manifest.webmanifest`}manifest(){let{options:e}=this,t=e.manifestRelativePaths?null:e.path,n={name:e.appName,short_name:e.appShortName||e.appName,description:e.appDescription,dir:e.dir,lang:e.lang,display:e.display,orientation:e.orientation,scope:e.scope,start_url:e.start_url,background_color:e.background,theme_color:e.theme_color};e.preferRelatedApplications&&(n.prefer_related_applications=e.preferRelatedApplications),Array.isArray(e.relatedApplications)&&e.relatedApplications.length>0&&(n.related_applications=e.relatedApplications);let r=this.iconOptions;e.manifestMaskable&&typeof e.manifestMaskable!=`boolean`&&(r=[...r,...utt]);let i=e.manifestMaskable===!0?`any maskable`:`any`;return n.icons=r.map(e=>{let{width:n,height:r}=e.sizes[0];return{src:this.cacheBusting(zB(t,e.name)),sizes:`${n}x${r}`,type:`image/png`,purpose:e.purpose??i}}),Array.isArray(e.shortcuts)&&e.shortcuts.length>0&&(n.shortcuts=this.manifestShortcuts(t)),{name:this.manifestFileName(),contents:JSON.stringify(n,null,2)}}manifestShortcuts(e){return this.options.shortcuts.map((t,n)=>!t.name||!t.url?null:{name:t.name,short_name:t.short_name||t.name,description:t.description,url:t.url,icons:t.icon?Object.entries(dtt).map(([t,r])=>{let{width:i,height:a}=r.sizes[0];return{src:this.cacheBusting(zB(e,`shortcut${n+1}-${t}`)),sizes:`${i}x${a}`,type:`image/png`}}):void 0}).filter(e=>e!==null)}};const ptt=[{name:`apple-touch-icon-57x57.png`,...UB(57)},{name:`apple-touch-icon-60x60.png`,...UB(60)},{name:`apple-touch-icon-72x72.png`,...UB(72)},{name:`apple-touch-icon-76x76.png`,...UB(76)},{name:`apple-touch-icon-114x114.png`,...UB(114)},{name:`apple-touch-icon-120x120.png`,...UB(120)},{name:`apple-touch-icon-144x144.png`,...UB(144)},{name:`apple-touch-icon-152x152.png`,...UB(152)},{name:`apple-touch-icon-167x167.png`,...UB(167)},{name:`apple-touch-icon-180x180.png`,...UB(180)},{name:`apple-touch-icon-1024x1024.png`,...UB(1024)},{name:`apple-touch-icon.png`,...UB(180)},{name:`apple-touch-icon-precomposed.png`,...UB(180)}];var mtt=class extends KB{constructor(e){super(e,GB(e,e.icons.appleIcon,ptt))}async createHtml(){let e=this.iconOptions.filter(({name:e})=>/\d/.test(e)).map(e=>{let{width:t,height:n}=e.sizes[0];return`<link rel="apple-touch-icon" sizes="${t}x${n}" href="${this.cacheBusting(this.relative(e.name))}">`}),t=this.options.appShortName||this.options.appName;return[...e,`<meta name="apple-mobile-web-app-capable" content="yes">`,`<meta name="apple-mobile-web-app-status-bar-style" content="${this.options.appleStatusBarStyle}">`,t?`<meta name="apple-mobile-web-app-title" content="${(0,IB.default)(t)}">`:`<meta name="apple-mobile-web-app-title">`]}};const htt=[{deviceWidth:320,deviceHeight:568,pixelRatio:2},{deviceWidth:375,deviceHeight:667,pixelRatio:2},{deviceWidth:375,deviceHeight:812,pixelRatio:3},{deviceWidth:390,deviceHeight:844,pixelRatio:3},{deviceWidth:393,deviceHeight:852,pixelRatio:3},{deviceWidth:414,deviceHeight:896,pixelRatio:2},{deviceWidth:414,deviceHeight:896,pixelRatio:3},{deviceWidth:414,deviceHeight:736,pixelRatio:3},{deviceWidth:414,deviceHeight:736,pixelRatio:3},{deviceWidth:428,deviceHeight:926,pixelRatio:3},{deviceWidth:430,deviceHeight:932,pixelRatio:3},{deviceWidth:744,deviceHeight:1133,pixelRatio:2},{deviceWidth:768,deviceHeight:1024,pixelRatio:2},{deviceWidth:810,deviceHeight:1080,pixelRatio:2},{deviceWidth:820,deviceHeight:1080,pixelRatio:2},{deviceWidth:834,deviceHeight:1194,pixelRatio:2},{deviceWidth:834,deviceHeight:1112,pixelRatio:2},{deviceWidth:1024,deviceHeight:1366,pixelRatio:2}];function gtt(){let e={};for(let t of htt){let n=t.deviceWidth*t.pixelRatio,r=t.deviceHeight*t.pixelRatio,i=`apple-touch-startup-image-${n}x${r}.png`;e[i]={name:i,...UB(n,r),...t,orientation:`portrait`};let a=`apple-touch-startup-image-${r}x${n}.png`;e[a]={name:a,...UB(r,n),...t,orientation:`landscape`}}return Object.values(e)}const _tt=gtt();var vtt=class extends KB{constructor(e){super(e,GB(e,e.icons.appleStartup,_tt))}async createHtml(){return this.iconOptions.map(e=>`<link rel="apple-touch-startup-image" media="(device-width: ${e.deviceWidth}px) and (device-height: ${e.deviceHeight}px) and (-webkit-device-pixel-ratio: ${e.pixelRatio}) and (orientation: ${e.orientation})" href="${this.cacheBusting(this.relative(e.name))}">`)}};const ytt=[{name:`favicon.ico`,...att(16,24,32,48,64)},{name:`favicon-16x16.png`,...HB(16)},{name:`favicon-32x32.png`,...HB(32)},{name:`favicon-48x48.png`,...HB(48)},{name:`favicon.svg`,...HB(1024),optional:!0}];var btt=class extends KB{constructor(e){super(e,GB(e,e.icons.favicons,ytt))}async createHtml(){return this.iconOptions.map(({name:e,...t})=>{if(e.endsWith(`.ico`))return`<link rel="icon" type="image/x-icon" href="${this.cacheBusting(this.relative(e))}">`;if(e.endsWith(`.svg`))return`<link rel="icon" type="image/svg+xml" href="${this.cacheBusting(this.relative(e))}">`;let{width:n,height:r}=t.sizes[0];return`<link rel="icon" type="image/png" sizes="${n}x${r}" href="${this.cacheBusting(this.relative(e))}">`})}};const xtt=[{name:`mstile-70x70.png`,...HB(70)},{name:`mstile-144x144.png`,...HB(144)},{name:`mstile-150x150.png`,...HB(150)},{name:`mstile-310x150.png`,...HB(310,150)},{name:`mstile-310x310.png`,...HB(310)}],Stt=[{name:`square70x70logo`,width:70,height:70},{name:`square150x150logo`,width:150,height:150},{name:`wide310x150logo`,width:310,height:150},{name:`square310x310logo`,width:310,height:310}];function Ctt(e,t){return t.sizes.length===1&&t.sizes[0].width===e.width&&t.sizes[0].height===e.height}var wtt=class extends KB{constructor(e){if(super(e,GB(e,e.icons.windows,xtt)),!this.options.background)throw Error("`background` is required for Windows icons")}async createFiles(){return[this.browserConfig()]}async createHtml(){let e=`mstile-144x144.png`;return[`<meta name="msapplication-TileColor" content="${this.options.background}">`,this.iconOptions.find(t=>t.name===e)?`<meta name="msapplication-TileImage" content="${this.cacheBusting(this.relative(e))}">`:``,`<meta name="msapplication-config" content="${this.cacheBusting(this.relative(this.manifestFileName()))}">`]}manifestFileName(){return this.options.files?.windows?.manifestFileName??`browserconfig.xml`}browserConfig(){let e=this.options.manifestRelativePaths?null:this.options.path,t={};for(let{name:n,...r}of Stt){let i=this.iconOptions.find(e=>Ctt(r,e));i&&(t[n]={$:{src:this.cacheBusting(zB(e,i.name))}})}let n={browserconfig:{msapplication:{tile:{...t,TileColor:{_:this.options.background}}}}},r=new Vet.Builder({xmldec:{version:`1.0`,encoding:`utf-8`,standalone:null}}).buildObject(n);return{name:this.manifestFileName(),contents:r}}};const Ttt=[{name:`yandex-browser-50x50.png`,...HB(50)}];var Ett=class extends KB{constructor(e){super(e,GB(e,e.icons.yandex,Ttt))}async createFiles(){return[this.manifest()]}async createHtml(){return[`<link rel="yandex-tableau-widget" href="${this.cacheBusting(this.relative(this.manifestFileName()))}">`]}manifestFileName(){return this.options.files?.yandex?.manifestFileName??`yandex-browser-manifest.json`}manifest(){let e=this.options.manifestRelativePaths?null:this.options.path,t=this.iconOptions[0].name,n={version:this.options.version,api_version:1,layout:{logo:this.cacheBusting(zB(e,t)),color:this.options.background,show_title:!0}};return{name:this.manifestFileName(),contents:JSON.stringify(n,null,2)}}};function Dtt(e,t){switch(e){case`android`:return new ftt(t);case`appleIcon`:return new mtt(t);case`appleStartup`:return new vtt(t);case`favicons`:return new btt(t);case`windows`:return new wtt(t);case`yandex`:return new Ett(t);default:throw Error(`Unsupported platform ${e}`)}}async function qB(e,t={}){t={...LB,...t,icons:{...LB.icons,...t.icons},output:{...LB.output,...t.output}};let n=await RB(e),r=Object.keys(t.icons).filter(e=>t.icons[e]).sort((e,t)=>e===`favicons`?-1:t===`favicons`?1:e.localeCompare(t)),i=[];for(let e of r){let r=Dtt(e,t);i.push(await r.create(n))}return{images:i.flatMap(e=>e.images),files:i.flatMap(e=>e.files),html:i.flatMap(e=>e.html)}}var Ott=/* @__PURE__ */ a(((e,t)=>{t.exports=function(e){if(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new DataView(e.buffer,e.byteOffset,e.byteLength);if(e instanceof ArrayBuffer)return new DataView(e);throw TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}})),ktt=/* @__PURE__ */ a(((e,t)=>{let n=/* @__PURE__ */ new WeakMap,r=/* @__PURE__ */ new WeakMap;var i=class{constructor(e,t,...i){if(arguments.length<2)throw TypeError(`Failed to construct 'ImageData': 2 arguments required, but only ${arguments.length} present.`);if(typeof e==`object`){if(!(e instanceof Uint8ClampedArray))throw TypeError(`Failed to construct 'ImageData': parameter 1 is not of type 'Uint8ClampedArray'.`);if(typeof t!=`number`||t===0)throw Error(`Failed to construct 'ImageData': The source width is zero or not a number.`);if(t>>>=0,t*4>e.length)throw Error(`Failed to construct 'ImageData': The requested image size exceeds the supported range.`);if(e.length%4!=0)throw Error(`Failed to construct 'ImageData': The input data length is not a multiple of 4.`);if(e.length%(4*t)!=0)throw Error(`Failed to construct 'ImageData': The input data length is not a multiple of (4 * width).`);if(i[0]!==void 0){if(typeof i[0]!=`number`||i[0]===0)throw Error(`Failed to construct 'ImageData': The source height is zero or not a number.`);if(i[0]>>>=0,e.length%(4*t*i[0])!=0)throw Error(`Failed to construct 'ImageData': The input data length is not equal to (4 * width * height).`)}n.set(this,t),r.set(this,i[0]===void 0?e.byteLength/t/4:i[0]),Object.defineProperty(this,"data",{configurable:!0,enumerable:!0,value:e,writable:!1})}else{if(typeof e!=`number`||e===0)throw Error(`Failed to construct 'ImageData': The source width is zero or not a number.`);if(e>>>=0,typeof t!=`number`||t===0)throw Error(`Failed to construct 'ImageData': The source height is zero or not a number.`);if(t>>>=0,e*t>=1<<30)throw Error(`Failed to construct 'ImageData': The requested image size exceeds the supported range.`);n.set(this,e),r.set(this,t),Object.defineProperty(this,"data",{configurable:!0,enumerable:!0,value:new Uint8ClampedArray(e*t*4),writable:!1})}}};Object.defineProperty(i.prototype,"width",{enumerable:!0,configurable:!0,get(){return n.get(this)}}),Object.defineProperty(i.prototype,"height",{enumerable:!0,configurable:!0,get(){return r.get(this)}}),t.exports=i})),Att=/* @__PURE__ */ a(((e,t)=>{let n=Ott(),r=ktt();function i(e){let t=e%4;return t?e+4-t:e}var a=class{constructor(e,t,{width:n,height:r,colorDepth:a,format:o}){if(this.format=o,this.offset=t,this.depth=a,this.stride=i(n*this.depth/8),this.size=this.stride*r,this.data=e.slice(this.offset,this.offset+this.size),this.size!==this.data.byteLength)throw Error(`Truncated bitmap data`)}get(e,t,n){let r=this.format.indexOf(n);return this.depth===1?(this.data[t*this.stride+(e/8|0)]&1<<7-e%8*1)>>7-e%8*1:this.depth===2?(this.data[t*this.stride+(e/4|0)]&3<<6-e%4*2)>>>6-e%4*2:this.depth===4?(this.data[t*this.stride+(e/2|0)]&15<<4-e%2*4)>>>4-e%2*4:this.data[t*this.stride+e*(this.depth/8)+r]}};function o(e,{width:t,height:n,colorDepth:r,icon:i}){if(r!==32&&r!==24)throw Error(`A color depth of ${r} is not supported`);let o=new a(e,0,{width:t,height:n,colorDepth:r,format:`BGRA`}),s=r===24&&i?new a(e,o.offset+o.size,{width:t,height:n,colorDepth:1,format:`A`}):null,c=new Uint8Array(t*n*4),l=0;for(let e=0;e<n;e++)for(let i=0;i<t;i++)c[l++]=o.get(i,n-e-1,`R`),c[l++]=o.get(i,n-e-1,`G`),c[l++]=o.get(i,n-e-1,`B`),r===32?c[l++]=o.get(i,n-e-1,`A`):c[l++]=s&&s.get(i,n-e-1,`A`)?0:255;return new Uint8ClampedArray(c.buffer,c.byteOffset,c.byteLength)}function s(e,{width:t,height:n,colorDepth:r,colorCount:i,icon:o}){if(r!==8&&r!==4&&r!==2&&r!==1)throw Error(`A color depth of ${r} is not supported`);let s=new a(e,0,{width:i,height:1,colorDepth:32,format:`BGRA`}),c=new a(e,s.offset+s.size,{width:t,height:n,colorDepth:r,format:`C`}),l=o?new a(e,c.offset+c.size,{width:t,height:n,colorDepth:1,format:`A`}):null,u=new Uint8Array(t*n*4),d=0;for(let e=0;e<n;e++)for(let r=0;r<t;r++){let t=c.get(r,n-e-1,`C`);u[d++]=s.get(t,0,`R`),u[d++]=s.get(t,0,`G`),u[d++]=s.get(t,0,`B`),u[d++]=l&&l.get(r,n-e-1,`A`)?0:255}return new Uint8ClampedArray(u.buffer,u.byteOffset,u.byteLength)}function c(e){if(e!==19778)throw Error(`Invalid magic byte 0x${e.toString(16)}`)}t.exports=function(e,{width:t=0,height:i=0,icon:a=!1}={}){let l=n(e),u,d,f,p,m;a?(u=l.getUint32(0,!0),d=l.getUint32(4,!0)/1|0,f=l.getUint32(8,!0)/2|0,p=l.getUint16(14,!0),m=l.getUint32(32,!0)):(c(l.getUint16(0,!0)),u=14+l.getUint32(14,!0),d=l.getUint32(18,!0),f=l.getUint32(22,!0),p=l.getUint16(28,!0),m=l.getUint32(46,!0)),m===0&&p<=8&&(m=1<<p);let h=d===0?t:d,g=f===0?i:f,_=new Uint8Array(l.buffer,l.byteOffset+u,l.byteLength-u),v=m?s(_,{width:h,height:g,colorDepth:p,colorCount:m,icon:a}):o(_,{width:h,height:g,colorDepth:p,icon:a});return Object.assign(new r(v,h,g),{colorDepth:p})}})),jtt=/* @__PURE__ */ a(((e,t)=>{let n=Ott(),r=Att(),i=ktt();function a(e,t){return e.getUint32(t+0)===2303741511&&e.getUint32(t+4)===218765834}function o(e,t){let n=e.getUint8(t+24),r=e.getUint8(t+25);if(r===0)return n*1;if(r===2)return n*3;if(r===3)return n*1;if(r===4)return n*2;if(r===6)return n*4;throw Error(`Invalid PNG colorType`)}function s(e,t){return e.getUint32(t+16,!1)}function c(e,t){return e.getUint32(t+20,!1)}t.exports=function(e){let t=n(e);if(t.byteLength<6)throw Error(`Truncated header`);if(a(t,0))return[{bpp:o(t,0),data:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),height:c(t,0),hotspot:null,type:`png`,width:s(t,0)}];if(t.getUint16(0,!0)!==0)throw Error(`Invalid magic bytes`);let l=t.getUint16(2,!0);if(l!==1&&l!==2)throw Error(`Invalid image type`);let u=t.getUint16(4,!0);if(t.byteLength<6+16*u)throw Error(`Truncated image list`);return Array.from({length:u},(e,n)=>{let u=t.getUint8(6+16*n+0),d=t.getUint8(6+16*n+1),f=t.getUint32(6+16*n+8,!0),p=t.getUint32(6+16*n+12,!0),m=l===2?{x:t.getUint16(6+16*n+4,!0),y:t.getUint16(6+16*n+6,!0)}:null;if(a(t,p))return{bpp:o(t,p),data:new Uint8Array(t.buffer,t.byteOffset+p,f),height:c(t,p),hotspot:m,type:`png`,width:s(t,p)};let h=new Uint8Array(t.buffer,t.byteOffset+p,f),g=r(h,{width:u,height:d,icon:!0}),_={bpp:g.colorDepth,hotspot:m,type:`bmp`};return Object.assign(new i(g.data,g.width,g.height),_)})}})),Mtt=/* @__PURE__ */ a(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):r((n||=self).icoEndec={})})(n,(function(e){class t{constructor(e){this._imageBuffers=e.map(e=>{if(e instanceof ArrayBuffer)return Buffer.from(new Uint8Array(e));if(e instanceof Buffer)return e;throw`Encoder requires ArrayBuffers or Buffers`})}get buffer(){return this._buffer}encode(){this._buffer=Buffer.alloc(0),this._bufferOffset=0,this._imageOffset=0,this._writeICONDIR();for(let e=0;e<this._imageBuffers.length;e++)this._writeICONDIRENTRY(e);for(let e=0;e<this._imageBuffers.length;e++)this._writeICONDATA(e);return this._buffer}_writeICONDIR(){let e=Buffer.alloc(6);e.writeUInt16LE(0,0),e.writeUInt16LE(1,2),e.writeUInt16LE(this._imageBuffers.length,4),this._imageOffset+=6,this._buffer=Buffer.concat([this._buffer,e])}_writeICONDIRENTRY(e){let t=this._imageBuffers[e];t[0]===137&&t[1]===80&&t[2]===78&&t[3]===71?this._writeICONDIRENTRY_png(e):this._writeICONDIRENTRY_bmp(e)}_writeICONDIRENTRY_png(e){let t=this._imageBuffers[e],n=Buffer.alloc(16);if(t[12]!==73&&t[13]!==72&&t[14]!==68&&t[15]!==82)throw`PNG's first chunk must be an IHDR`;let r=t.readUInt32BE(16),i=t.readUInt32BE(20),a=t.readUInt8(24),o=0;if(t.readUInt8(25)===3){if(t[29]!==`P`&&t[30]!==`L`&&t[31]!==`T`&&t[32]!==`E`)throw`PNG's second chunk must be a PLTE if indexed`;o=Math.ceil(t.readUInt32BE(25)/3)}if(r>256)throw`PNG width must not exceed 256`;if(r===256&&(r=0),i>256)throw`PNG height must not exceed 256`;i===256&&(i=0),n.writeUInt8(r,0),n.writeUInt8(i,1),n.writeUInt8(o,2),n.writeUInt8(0,3),n.writeUInt16LE(1,4),n.writeUInt16LE(a,6),n.writeUInt32LE(t.length,8),this._imageOffset+=16,this._buffer=Buffer.concat([this._buffer,n])}_writeICONDIRENTRY_bmp(e){let t=this._imageBuffers[e],n=Buffer.alloc(16),r=t.readInt32LE(18),i=t.readInt32LE(22),a=t.readUInt16LE(26),o=t.readUInt32LE(46),s=t.readUInt16LE(28);if(r>256)throw`BMP width must not exceed 256`;if(r===256&&(r=0),i>256)throw`BMP height must not exceed 256`;if(i===256&&(i=0),a!==1)throw`BMP color planes must be 1`;o===0&&s!==32&&(o=2**s),o>256?o=0:o===256&&(o=255),n.writeUInt8(r,0),n.writeUInt8(i,1),n.writeUInt8(o,2),n.writeUInt8(0,3),n.writeUInt16LE(a,4),n.writeUInt16LE(s,6),n.writeUInt32LE(t.length-14,8),this._imageOffset+=16,this._buffer=Buffer.concat([this._buffer,n])}_writeICONDATA(e){let t=6+16*e+12;this._buffer.writeUInt32LE(this._imageOffset,t);let n=this._imageBuffers[e];n[0]===137&&n[1]===80&&n[2]===78&&n[3]===71?(this._buffer=Buffer.concat([this._buffer,n]),this._imageOffset+=n.length):(this._buffer=Buffer.concat([this._buffer,n.slice(14)]),this._imageOffset+=n.length-14)}}class n{constructor(){this._width=-1,this._height=-1,this._colors=-1,this._colorPlanes=-1,this._bitsPerPixel=-1,this._horizontalHotspot=-1,this._verticalHotspot=-1,this._imageSize=-1,this._imageOffset=-1,this._imageType=-1,this._imageData=null}get width(){return this._width}get height(){return this._height}get colors(){return this._colors}get colorPlanes(){return this._colorPlanes}get bitsPerPixel(){return this._bitsPerPixel}get horizontalHotspot(){return this._horizontalHotspot}get verticalHotspot(){return this._verticalHotspot}get imageSize(){return this._imageSize}get imageOffset(){return this._imageOffset}get imageType(){return this._imageType}get imageData(){return this._imageData}}class r{constructor(e){this._bufferOffset=0,this._buffer=Buffer.from(e),this._iconEntries=[]}decode(){this._readICONDIR();for(let e=0;e<this._imageCount;e++)this._iconEntries[e]=new n,this._readICONDIRENTRY(e),this._readICONDATA(e);return this._iconEntries}_readICONDIR(){let e;if(e=this._buffer.readUInt16LE(this._bufferOffset),this._bufferOffset+=2,e!==0)throw`Reserved must be 0`;if(e=this._buffer.readUInt16LE(this._bufferOffset),this._bufferOffset+=2,e!==1&&e!==2)throw`image type must be ICO or CUR`;this._type=e,e=this._buffer.readUInt16LE(this._bufferOffset),this._bufferOffset+=2,this._imageCount=e}_readICONDIRENTRY(e){let t;if(t=this._buffer.readUInt8(this._bufferOffset),this._bufferOffset++,this._iconEntries[e]._width=t===0?256:t,t=this._buffer.readUInt8(this._bufferOffset),this._bufferOffset++,this._iconEntries[e]._height=t===0?256:t,t=this._buffer.readUInt8(this._bufferOffset),this._bufferOffset++,this._iconEntries[e]._colors=t,t=this._buffer.readUInt8(this._bufferOffset),this._bufferOffset++,t!==0)throw`Reserved must be 0`;if(t=this._buffer.readUInt16LE(this._bufferOffset),this._bufferOffset+=2,this._type===1){if(t!==0&&t!==1)throw`Color plane was ${t}, should be 0 or 1`;this._iconEntries[e]._colorPlanes=t}else this._type===formatCUR&&(this._iconEntries[e]._horizontalHotspot=t);t=this._buffer.readUInt16LE(this._bufferOffset),this._bufferOffset+=2,this._type===1?this._iconEntries[e]._bitsPerPixel=t:this._type===formatCUR&&(this._iconEntries[e]._verticalHotspot=t),t=this._buffer.readUInt32LE(this._bufferOffset),this._bufferOffset+=4,this._iconEntries[e]._imageSize=t,t=this._buffer.readUInt32LE(this._bufferOffset),this._bufferOffset+=4,this._iconEntries[e]._imageOffset=t}_readICONDATA(e){let t=this._iconEntries[e],n=this._buffer.slice(t.imageOffset,t.imageOffset+t.imageSize);if(n[0]===137&&n[1]===80&&n[2]===78&&n[3]===71)t._imageData=n,t._imageType=`png`;else{t._imageType=`bmp`;let e=n.readUInt32LE(0);n.writeInt32LE(t.width,4),n.writeInt32LE(t.height,8);let r=n.readUInt16LE(14),i=n.readUInt32LE(16)===3,a=n.readUInt32LE(32);a===0&&r!==32&&(a=2**r);let o=e+(i?12:0)+a*(e===12?3:4),s=Buffer.alloc(14);s.writeUInt8(66,0),s.writeUInt8(77,1),s.writeUInt32LE(t.imageSize+14,2),s.writeUInt32LE(o+14,10),t._imageData=Buffer.concat([s,n])}}}e.Decoder=r,e.Encoder=t,e.decode=e=>new r(e).decode(),e.encode=e=>(Array.isArray(e)||(e=[e]),new t(e).encode()),Object.defineProperty(e,"__esModule",{value:!0})}))})),Ntt=(/* @__PURE__ */ a(((e,n)=>{let r=t(`fs`),i=t(`sharp`),a=jtt(),o=Mtt();function s(e){return a(e)}function c(e){return o.encode(e)}function l(e,t,n=!1){let o=typeof e==`string`?r.readFileSync(e):e;return a(o).map(e=>{let r=e.type===`png`?i(e.data,t||{}):i(e.data,{...t,raw:{width:e.width,height:e.height,channels:4}});return n?Object.assign(e,{image:r}):r})}async function u(e,{sizes:t,resizeOptions:n}){if(t==="default")t=[256,128,64,48,32,24,16];else if(!Array.isArray(t))return Promise.reject(`sizes must be an array of number`);let r=[],i={},a=[];return await Promise.all(e.map(e=>e.metadata().then(({width:t})=>{i[t]=e,a.push(t)}))),a.sort((e,t)=>e-t),t.forEach(e=>{let t=a.find(t=>t>e)||a[a.length-1],o=i[t].clone().resize({fit:`contain`,background:{r:0,g:0,b:0,alpha:0},...n,width:e,height:e});r.push(o)}),r}async function d(e,t,n){n&&(e=await u(e,n));let i=await Promise.all(e.map(e=>e.toFormat(`png`).toBuffer({resolveWithObject:!0})));try{let e=c(i.map(e=>e.data));return r.writeFileSync(t,e),{width:Math.max(...i.map(e=>e.info.width)),height:Math.max(...i.map(e=>e.info.height)),size:e.length}}catch(e){return Promise.reject(e)}}n.exports={encode:c,decode:s,sharpsFromIco:l,sharpsToIco:d}})))();const JB=async e=>{if(e.endsWith(`.ico`)){let t=await yn(e),n=(0,Ntt.sharpsFromIco)(t),r=await Promise.all(n.map(async e=>{let t=`data`in e?await Xn(e.data).png().toBuffer():await e.png().toBuffer();return{buf:t,len:t.length}}));return r.sort((e,t)=>t.len-e.len),r[0]?.buf??null}return await yn(e)};async function Ptt(e,t){if(e.favicon==null)return;let n=Ftt(e.name);try{if(typeof e.favicon==`string`){let r=await JB(Ct(t,e.favicon));return r?[await qB(r,n)]:void 0}{let r=Ct(t,e.favicon.light),i=Ct(t,e.favicon.dark),a=await JB(r),o=await JB(i);if(!a||!o)return;let[s,c]=await Promise.all([qB(a,n),qB(o,{...n,path:`/favicons-dark`})]);return[s,c]}}catch(e){e instanceof Error&&console.log(`Error generating favicons: `,e.message)}}function Ftt(e){return{path:`/favicons`,appName:e,appShortName:e,dir:`auto`,lang:`en-US`,background:`transparent`,theme_color:`transparent`,appleStatusBarStyle:`black-translucent`,display:`standalone`,orientation:`any`,scope:`/`,start_url:`/?homescreen=1`,preferRelatedApplications:!1,version:`1.0`,pixel_art:!1,loadManifestWithCredentials:!0,manifestMaskable:!1,icons:{android:[`android-chrome-192x192.png`,`android-chrome-256x256.png`],appleIcon:[`apple-touch-icon.png`],appleStartup:!1,favicons:!0,windows:[`mstile-150x150.png`],yandex:!1}}}const Itt=async(e,t)=>{let n=await Ptt(e,t);if(!n)return;let r=[];n.forEach(e=>{e.images.forEach(e=>{r.push((async()=>{let t=vt.join(`public`,`favicons`,e.name);await(0,lF.outputFile)(t,e.contents,{flag:`w`})})())})}),n.forEach(e=>{e.files.forEach(e=>{r.push((async()=>{let t=vt.join(`public`,`favicons`,e.name);await(0,lF.outputFile)(t,e.contents,{flag:`w`})})())})}),await Promise.all(r)},Ltt=async(e,t)=>{let n=NYe(e,t),r=vt.join(`src`,`_props`,`generatedNav.json`);await(0,lF.outputFile)(r,JSON.stringify(n,null,2),{flag:`w`})},Rtt=async(e,t)=>{let n=YP(e,t),r=vt.join(`src`,`_props`,`generatedDocsNav.json`);await(0,lF.outputFile)(r,JSON.stringify(n,null,2),{flag:`w`})},ztt=async e=>{let t=`src/_props/asyncApiFiles.json`,n=e.map(({filename:e,spec:t,originalFileLocation:n})=>{let r=t._meta.asyncapi.input;return{filename:e,spec:He(r),originalFileLocation:n}});await lF.default.remove(t),await lF.default.outputFile(t,JSON.stringify(n),{flag:`w`})},Btt=async(e,t)=>{try{let[n,r]=await Promise.all([lF.default.stat(e),lF.default.stat(t)]);return n.isFile()&&r.isFile()&&n.size===r.size&&Math.abs(n.mtimeMs-r.mtimeMs)<2}catch{return!1}},Vtt=(e,t,n)=>{let r=[];return n.forEach(n=>{r.push((async()=>{let r=vt.join(e,n),i=vt.join(t,n);await Btt(r,i)||(await lF.default.remove(i),await lF.default.copy(r,i,{preserveTimestamps:!0}))})())}),r},Htt=async(e,t)=>{await lF.default.remove(t),await lF.default.outputFile(t,JSON.stringify(e),{flag:`w`})},Utt=async e=>{let t=`src/_props/openApiData`;await lF.default.remove(t);let n=`${t}/openApiDataFiles.json`,r={},i={};for(let n of e){let e=vf(),a=`${t}/${e}.json`,o=n.originalFileLocation||n.filename,s=_m(o)?o:ak(o);if(rne(n.spec)){let t=JSON.parse(JSON.stringify(n.spec)),o=nne({spec:t,originalFileLocation:s});r[s]=e,i[e]={originalFileLocation:s,filename:n.filename,refs:o.spec.refUuidMap},await lF.default.outputFile(a,JSON.stringify(o),{flag:`w`})}}let a={files:r,refs:i};await lF.default.outputFile(n,JSON.stringify(a),{flag:`w`})},Wtt=hn(er),Gtt=async(e,t)=>{try{let n=e.startsWith(t)?e.substring(t.length+1):e,{stdout:r}=await Wtt(`git`,[`blame`,`--line-porcelain`,`--`,n],{cwd:t,maxBuffer:10485760}),i={},a=r.split(`
1073
- `);for(let e=0;e<a.length;e++){let t=a[e];if(!t)continue;let n=t.match(/^[0-9a-f]{40}\s+\d+\s+(\d+)/);if(n&&n[1]){let t=parseInt(n[1],10),r;for(let t=e+1;t<a.length&&t<e+15;t++){let e=a[t];if(e){if(e.startsWith(`author-time `)){let t=parseInt(e.substring(12),10);r=(/* @__PURE__ */ new Date(t*1e3)).toISOString();break}if(e.startsWith(` `))break}}r&&(i[t]=r)}}return i}catch{return{}}},Ktt=e=>({orgName:e.name,orgDescription:e.description}),qtt=e=>{let t,n;if(TJe(e.children[0])){let r=ne.load(e.children[0].value);t=r.title||void 0,n=r.description||void 0}return{title:t,description:n}},Jtt=e=>e.replace(`src/_props/`,``).replace(`.mdx`,`/rss.xml`),Ytt=async(e,t)=>{if(!t||t.length===0)return[];let n=structuredClone(e),{importMap:r}=await QT(n);if(Object.keys(r).length===0)return[];let i=[];for(let e of Object.keys(r)){let n=e.startsWith(`/`)?e.slice(1):e,r=t.find(e=>e.filename===n);r&&i.push({path:r.filename,content:IT(r.tree)})}return i},Xtt=async(e,t,n,r)=>{let{orgName:i,orgDescription:a}=Ktt(e),o=`src/_props/rssFiles.json`,s=t.map(async e=>{let{targetPath:t,sourcePath:o,tree:s,snippets:c}=e,{title:l,description:u}=qtt(s),d=Jtt(t),f=IT(s),p={};try{p=await Gtt(o,n)}catch{}let m;m=c&&c.length>0?c.map(e=>({path:e.filename,content:IT(e.tree),importNames:e.importNames})):await Ytt(s,r);let h=o.substring(n.length+1);return{version:`v4`,rssPath:d,orgName:i,orgDescription:a,title:l,description:u,filePath:h,content:f,lineBlame:p,snippets:m.length>0?m:void 0}}),c=await Promise.all(s);await lF.default.remove(o),await lF.default.outputFile(o,JSON.stringify(c,null,2),{flag:`w`})},Ztt=(e,t,n,r)=>{let i=/* @__PURE__ */ new Set;for(let[e,t]of r)t.rssCandidate&&i.add(e.toLowerCase());let a=i.size>0;for(;a;){a=!1;for(let[e,t]of n)if(!i.has(e)){for(let n of t)if(i.has(n)){i.add(e),a=!0;break}}}let o=new Set(e);for(let e of t)i.has(e.toLowerCase())&&o.add(e);return[...o]},Qtt=(e,t,n)=>{let r=/* @__PURE__ */ new Set,i=t.map(e=>e.toLowerCase()),a=i.pop();for(;a!==void 0;){for(let e of n.get(a)??[])r.has(e)||(r.add(e),i.push(e));a=i.pop()}return e.filter(e=>r.has(e.toLowerCase()))},$tt=async({contentDirectoryPath:e,staticFilenames:t,openApiFiles:n,asyncApiFiles:r,contentFilenames:i,snippets:a,snippetV2Filenames:o,docsConfigPath:s,localSchema:c,groups:l,mintIgnore:u,disableOpenApi:d,disablePrefetch:f,strict:p,skipStaticFiles:m,invalidSpecFiles:h,allowSourceRefs:g,lazyPages:_,pageScans:v,fileImportsMap:y,overlayRegistry:b,nativePackages:x})=>{let S=await aet(e,n,c,p,h),C=S==null?void 0:lf(S.originalMintConfig),{docsConfig:w,pagesAcc:T,newOpenApiFiles:E,newAsyncApiFiles:D,customLanguages:O,inheritedSdkBySlug:k,pageMetadataBySlug:A}=await net({contentDirectoryPath:e,openApiFiles:n,asyncApiFiles:r,docsConfig:s?void 0:C,localSchema:c,disableOpenApi:d,strict:p,invalidSpecFiles:h,allowSourceRefs:g,overlayRegistry:b,pageScans:v}),ee=i;if(_){let{rssCandidateFilenames:t}=await cet({contentDirectoryPath:e,openApiFiles:E,asyncApiFiles:D,contentFilenames:i,pagesAcc:T,pageScans:v});ee=y&&v?Ztt(t,i,y,v):t;let n=i.filter(e=>{let t=e.replace(/^\//,``).replace(/\.mdx?$/,``),n=A[t];return n?OP({sdk:n.sdk},k[t])!==void 0:!1});ee=[.../* @__PURE__ */ new Set([...ee,...n])]}let te=fet({contentDirectoryPath:e,openApiFiles:E,asyncApiFiles:D,contentFilenames:ee,pagesAcc:T}),ne=_&&y?Qtt(o,ee,y):o,re=pet(e,ne,w.variables??void 0),[ie,{mdxFilesWithNoImports:ae,filesWithImports:oe}]=await Promise.all([re,te]),j=ae.filter(e=>e.metadata.rss===!0||CP(e.tree)),se=oe.filter(e=>e.metadata?.rss===!0||CP(e.tree)?!0:Object.keys(e.importMap).map(e=>ie.find(t=>t.filename===e)).some(e=>e&&CP(e.tree))).map(t=>{let n=[];for(let[e,r]of Object.entries(t.importMap)){let t=ie.find(t=>t.filename===e);if(t){let e=r.map(e=>e.name);n.push({...t,importNames:e})}}return{targetPath:Ct(`src`,`_props`,t.filename),sourcePath:Ct(e,t.filename),tree:t.tree,metadata:t.metadata,snippets:n}}),ce=[...j,...se],le=l?(0,lF.outputFile)(`src/_props/dev-groups.json`,JSON.stringify({groups:l},null,2),{flag:`w`}):Promise.resolve(),M=f?(0,lF.outputFile)(`src/_props/dev-flags.json`,JSON.stringify({disablePrefetch:f},null,2),{flag:`w`}):Promise.resolve(),N=u&&u.length>0?(0,lF.outputFile)(`src/_props/mint-ignore.json`,JSON.stringify(u,null,2),{flag:`w`}):Promise.resolve(),ue=x&&w.packages!==void 0?await met(e):void 0;return await Promise.all([le,M,N,het({openApiFiles:E,asyncApiFiles:D,pagesAcc:T,snippetsV2:ie,filesWithImports:oe,packageNames:ue}),Htt(O,`src/_props/customLanguages.json`),Utt(E),ztt(D),Xtt(w,ce,e,ie),Itt(w,e),...ent(ae),...Vtt(e,`public`,[...m?[]:t,...a])]),await o9e({contentDirectoryPath:e,inheritedSdkBySlug:k,pageMetadataBySlug:A,loadReference:t=>X7e(t,e)}),await Rtt(T,w.navigation),S?.mintConfig&&await Ltt(T,S.mintConfig.navigation),w},ent=e=>e.map(async e=>{let{targetPath:t,tree:n}=e;await(0,lF.outputFile)(t,IT(n),{flag:`w`})}),YB=async(e,t=[])=>{let n=[];for await(let r of MP(e,e,t)){let t=uF(r);if(t!==`json`&&t!==`yaml`&&t!==`yml`)continue;let i;try{i=ne.load(await yn(_t.join(e,r),`utf8`))}catch{continue}if(!pf(i))continue;let a=ym(r);try{let e=xm(i,a);n.push({location:a,document:e,resolvedExtends:e.extends==null?void 0:bm(a,e.extends)})}catch(e){JP({type:`openapi`,message:`Error validating OpenAPI Overlay file ${r}: ${e}`,file:bh(r)})}}return n},tnt=async(e,{explicitOverlays:t,mintIgnore:n,localSchema:r,fetchRemoteDocument:i}={})=>Sm({explicit:t,discovered:await YB(e,n),fetchRemoteDocument:i,localSchema:r,loadLocalDocument:async t=>{let{resolvedPath:n}=mf(t,e);return ne.load(await yn(n,`utf8`))}}),nnt=async(e,{mintIgnore:t=[],disableOpenApi:n=!1,explicitOverlays:r,localSchema:i,fetchRemoteDocument:a}={})=>{if(n)return[];let o=MP(e,e,t),s=[],c=[],l=[];for await(let t of o){let n=uF(t);if(n!==`json`&&n!==`yaml`&&n!==`yml`)continue;let r=_t.join(e,t),i=await yn(r,`utf8`),a=ne.load(i);if(a&&typeof a==`object`){if(pf(a)){let e=ym(t);try{let t=xm(a,e);c.push({location:e,document:t,resolvedExtends:t.extends==null?void 0:bm(e,t.extends)})}catch(e){JP({type:`openapi`,message:`Error validating OpenAPI Overlay file ${t}: ${e}`,file:bh(t)})}}else Object.keys(a).includes(`openapi`)&&l.push({filename:t,obj:a})}}let u=Sm({explicit:r,discovered:c,localSchema:i,fetchRemoteDocument:a,loadLocalDocument:async t=>{let{resolvedPath:n}=mf(t,e),r=await yn(n,`utf8`);return ne.load(r)}});for(let{filename:e,obj:t}of l)try{let n=await Cm(u,e),r=n.length>0?gm(t,n):t;if(typeof r!=`object`||!r)throw Error(`Applying overlays produced an invalid OpenAPI document`);let{schema:i}=await vh(r);i&&s.push({filename:_t.parse(e).name,spec:r,originalFileLocation:e})}catch(t){JP({type:`openapi`,message:`Error validating OpenAPI file ${e}: ${t}`,file:bh(e)})}return s},XB=async(e,t,n,r,i,a)=>{let o,s;try{let{pageMetadata:c,slug:l}=sk(e,t,r,i);o=c,s=l,t=await uet(t,n,e,a)}catch(t){let r=`\n ⚠️ Parsing error in the frontmatter: ${fXe(e,n,t)}: `;throw a?a(r):console.log(r),t}return{pageMetadata:o,pageContent:t,slug:s}},rnt=async e=>{if(e==null)return;let t;try{t=JSON.parse(await yn(e,`utf8`))}catch(t){JP({type:`openapi`,message:`Error reading OpenAPI overlay configuration from ${e}: ${t instanceof Error?t.message:String(t)}`,file:_t.basename(e)});return}try{t=(await cF(t,_t.dirname(e))).resolved}catch{}return df(t)},ZB=async(e,{localSchema:t,groups:n,disableOpenApi:r,disablePrefetch:i,strict:a,skipStaticFiles:o,allowSourceRefs:s,lazyPages:c,nativePackages:l}={})=>{if(process.env.IS_MULTI_TENANT===`true`){console.log(`Skipping prebuild in multi-tenant mode.`);return}EYe();let u=await dF(e,`docs`),d=await dF(e,`mint`);if(d==null&&u==null)throw Error(`must be run in a directory where a docs.json file exists.`);let f=await fF(e),p=await rnt(u??d),{contentFilenames:m,staticFilenames:h,openApiFiles:g,asyncApiFiles:_,invalidSpecFiles:v,overlayRegistry:y,snippets:b,snippetsV2:x,fileImportsMap:S,pageScans:C}=await gF(e,f,r,c,{explicitOverlays:p,localSchema:t});return await $tt({contentDirectoryPath:e,staticFilenames:h,openApiFiles:g,asyncApiFiles:_,contentFilenames:m,snippets:b,snippetV2Filenames:x,docsConfigPath:u,localSchema:t,groups:n,mintIgnore:f,disableOpenApi:r,disablePrefetch:i,strict:a,skipStaticFiles:o,invalidSpecFiles:v,allowSourceRefs:s,lazyPages:c,pageScans:C,fileImportsMap:S,overlayRegistry:y,nativePackages:l}),xXe(v),jYe(a),{fileImportsMap:S}};
1073
+ `);for(let e=0;e<a.length;e++){let t=a[e];if(!t)continue;let n=t.match(/^[0-9a-f]{40}\s+\d+\s+(\d+)/);if(n&&n[1]){let t=parseInt(n[1],10),r;for(let t=e+1;t<a.length&&t<e+15;t++){let e=a[t];if(e){if(e.startsWith(`author-time `)){let t=parseInt(e.substring(12),10);r=(/* @__PURE__ */ new Date(t*1e3)).toISOString();break}if(e.startsWith(` `))break}}r&&(i[t]=r)}}return i}catch{return{}}},Ktt=e=>({orgName:e.name,orgDescription:e.description}),qtt=e=>{let t,n;if(TJe(e.children[0])){let r=ne.load(e.children[0].value);t=r.title||void 0,n=r.description||void 0}return{title:t,description:n}},Jtt=e=>e.replace(`src/_props/`,``).replace(`.mdx`,`/rss.xml`),Ytt=async(e,t)=>{if(!t||t.length===0)return[];let n=structuredClone(e),{importMap:r}=await $T(n);if(Object.keys(r).length===0)return[];let i=[];for(let e of Object.keys(r)){let n=e.startsWith(`/`)?e.slice(1):e,r=t.find(e=>e.filename===n);r&&i.push({path:r.filename,content:IT(r.tree)})}return i},Xtt=async(e,t,n,r)=>{let{orgName:i,orgDescription:a}=Ktt(e),o=`src/_props/rssFiles.json`,s=t.map(async e=>{let{targetPath:t,sourcePath:o,tree:s,snippets:c}=e,{title:l,description:u}=qtt(s),d=Jtt(t),f=IT(s),p={};try{p=await Gtt(o,n)}catch{}let m;m=c&&c.length>0?c.map(e=>({path:e.filename,content:IT(e.tree),importNames:e.importNames})):await Ytt(s,r);let h=o.substring(n.length+1);return{version:`v4`,rssPath:d,orgName:i,orgDescription:a,title:l,description:u,filePath:h,content:f,lineBlame:p,snippets:m.length>0?m:void 0}}),c=await Promise.all(s);await lF.default.remove(o),await lF.default.outputFile(o,JSON.stringify(c,null,2),{flag:`w`})},Ztt=(e,t,n,r)=>{let i=/* @__PURE__ */ new Set;for(let[e,t]of r)t.rssCandidate&&i.add(e.toLowerCase());let a=i.size>0;for(;a;){a=!1;for(let[e,t]of n)if(!i.has(e)){for(let n of t)if(i.has(n)){i.add(e),a=!0;break}}}let o=new Set(e);for(let e of t)i.has(e.toLowerCase())&&o.add(e);return[...o]},Qtt=(e,t,n)=>{let r=/* @__PURE__ */ new Set,i=t.map(e=>e.toLowerCase()),a=i.pop();for(;a!==void 0;){for(let e of n.get(a)??[])r.has(e)||(r.add(e),i.push(e));a=i.pop()}return e.filter(e=>r.has(e.toLowerCase()))},$tt=async({contentDirectoryPath:e,staticFilenames:t,openApiFiles:n,asyncApiFiles:r,contentFilenames:i,snippets:a,snippetV2Filenames:o,docsConfigPath:s,localSchema:c,groups:l,mintIgnore:u,disableOpenApi:d,disablePrefetch:f,strict:p,skipStaticFiles:m,invalidSpecFiles:h,allowSourceRefs:g,lazyPages:_,pageScans:v,fileImportsMap:y,overlayRegistry:b,nativePackages:x})=>{let S=await aet(e,n,c,p,h),C=S==null?void 0:lf(S.originalMintConfig),{docsConfig:w,pagesAcc:T,newOpenApiFiles:E,newAsyncApiFiles:D,customLanguages:O,inheritedSdkBySlug:k,pageMetadataBySlug:A}=await net({contentDirectoryPath:e,openApiFiles:n,asyncApiFiles:r,docsConfig:s?void 0:C,localSchema:c,disableOpenApi:d,strict:p,invalidSpecFiles:h,allowSourceRefs:g,overlayRegistry:b,pageScans:v}),ee=i;if(_){let{rssCandidateFilenames:t}=await cet({contentDirectoryPath:e,openApiFiles:E,asyncApiFiles:D,contentFilenames:i,pagesAcc:T,pageScans:v});ee=y&&v?Ztt(t,i,y,v):t;let n=i.filter(e=>{let t=e.replace(/^\//,``).replace(/\.mdx?$/,``),n=A[t];return n?OP({sdk:n.sdk},k[t])!==void 0:!1});ee=[.../* @__PURE__ */ new Set([...ee,...n])]}let te=fet({contentDirectoryPath:e,openApiFiles:E,asyncApiFiles:D,contentFilenames:ee,pagesAcc:T}),ne=_&&y?Qtt(o,ee,y):o,re=pet(e,ne,w.variables??void 0),[ie,{mdxFilesWithNoImports:ae,filesWithImports:oe}]=await Promise.all([re,te]),j=ae.filter(e=>e.metadata.rss===!0||CP(e.tree)),se=oe.filter(e=>e.metadata?.rss===!0||CP(e.tree)?!0:Object.keys(e.importMap).map(e=>ie.find(t=>t.filename===e)).some(e=>e&&CP(e.tree))).map(t=>{let n=[];for(let[e,r]of Object.entries(t.importMap)){let t=ie.find(t=>t.filename===e);if(t){let e=r.map(e=>e.name);n.push({...t,importNames:e})}}return{targetPath:Ct(`src`,`_props`,t.filename),sourcePath:Ct(e,t.filename),tree:t.tree,metadata:t.metadata,snippets:n}}),ce=[...j,...se],le=l?(0,lF.outputFile)(`src/_props/dev-groups.json`,JSON.stringify({groups:l},null,2),{flag:`w`}):Promise.resolve(),M=f?(0,lF.outputFile)(`src/_props/dev-flags.json`,JSON.stringify({disablePrefetch:f},null,2),{flag:`w`}):Promise.resolve(),N=u&&u.length>0?(0,lF.outputFile)(`src/_props/mint-ignore.json`,JSON.stringify(u,null,2),{flag:`w`}):Promise.resolve(),ue=x&&w.packages!==void 0?await met(e):void 0;return await Promise.all([le,M,N,het({openApiFiles:E,asyncApiFiles:D,pagesAcc:T,snippetsV2:ie,filesWithImports:oe,packageNames:ue}),Htt(O,`src/_props/customLanguages.json`),Utt(E),ztt(D),Xtt(w,ce,e,ie),Itt(w,e),...ent(ae),...Vtt(e,`public`,[...m?[]:t,...a])]),await o9e({contentDirectoryPath:e,inheritedSdkBySlug:k,pageMetadataBySlug:A,loadReference:t=>X7e(t,e)}),await Rtt(T,w.navigation),S?.mintConfig&&await Ltt(T,S.mintConfig.navigation),w},ent=e=>e.map(async e=>{let{targetPath:t,tree:n}=e;await(0,lF.outputFile)(t,IT(n),{flag:`w`})}),YB=async(e,t=[])=>{let n=[];for await(let r of MP(e,e,t)){let t=uF(r);if(t!==`json`&&t!==`yaml`&&t!==`yml`)continue;let i;try{i=ne.load(await yn(_t.join(e,r),`utf8`))}catch{continue}if(!pf(i))continue;let a=ym(r);try{let e=xm(i,a);n.push({location:a,document:e,resolvedExtends:e.extends==null?void 0:bm(a,e.extends)})}catch(e){JP({type:`openapi`,message:`Error validating OpenAPI Overlay file ${r}: ${e}`,file:bh(r)})}}return n},tnt=async(e,{explicitOverlays:t,mintIgnore:n,localSchema:r,fetchRemoteDocument:i}={})=>Sm({explicit:t,discovered:await YB(e,n),fetchRemoteDocument:i,localSchema:r,loadLocalDocument:async t=>{let{resolvedPath:n}=mf(t,e);return ne.load(await yn(n,`utf8`))}}),nnt=async(e,{mintIgnore:t=[],disableOpenApi:n=!1,explicitOverlays:r,localSchema:i,fetchRemoteDocument:a}={})=>{if(n)return[];let o=MP(e,e,t),s=[],c=[],l=[];for await(let t of o){let n=uF(t);if(n!==`json`&&n!==`yaml`&&n!==`yml`)continue;let r=_t.join(e,t),i=await yn(r,`utf8`),a=ne.load(i);if(a&&typeof a==`object`){if(pf(a)){let e=ym(t);try{let t=xm(a,e);c.push({location:e,document:t,resolvedExtends:t.extends==null?void 0:bm(e,t.extends)})}catch(e){JP({type:`openapi`,message:`Error validating OpenAPI Overlay file ${t}: ${e}`,file:bh(t)})}}else Object.keys(a).includes(`openapi`)&&l.push({filename:t,obj:a})}}let u=Sm({explicit:r,discovered:c,localSchema:i,fetchRemoteDocument:a,loadLocalDocument:async t=>{let{resolvedPath:n}=mf(t,e),r=await yn(n,`utf8`);return ne.load(r)}});for(let{filename:e,obj:t}of l)try{let n=await Cm(u,e),r=n.length>0?gm(t,n):t;if(typeof r!=`object`||!r)throw Error(`Applying overlays produced an invalid OpenAPI document`);let{schema:i}=await vh(r);i&&s.push({filename:_t.parse(e).name,spec:r,originalFileLocation:e})}catch(t){JP({type:`openapi`,message:`Error validating OpenAPI file ${e}: ${t}`,file:bh(e)})}return s},XB=async(e,t,n,r,i,a)=>{let o,s;try{let{pageMetadata:c,slug:l}=sk(e,t,r,i);o=c,s=l,t=await uet(t,n,e,a)}catch(t){let r=`\n ⚠️ Parsing error in the frontmatter: ${fXe(e,n,t)}: `;throw a?a(r):console.log(r),t}return{pageMetadata:o,pageContent:t,slug:s}},rnt=async e=>{if(e==null)return;let t;try{t=JSON.parse(await yn(e,`utf8`))}catch(t){JP({type:`openapi`,message:`Error reading OpenAPI overlay configuration from ${e}: ${t instanceof Error?t.message:String(t)}`,file:_t.basename(e)});return}try{t=(await cF(t,_t.dirname(e))).resolved}catch{}return df(t)},ZB=async(e,{localSchema:t,groups:n,disableOpenApi:r,disablePrefetch:i,strict:a,skipStaticFiles:o,allowSourceRefs:s,lazyPages:c,nativePackages:l}={})=>{if(process.env.IS_MULTI_TENANT===`true`){console.log(`Skipping prebuild in multi-tenant mode.`);return}EYe();let u=await dF(e,`docs`),d=await dF(e,`mint`);if(d==null&&u==null)throw Error(`must be run in a directory where a docs.json file exists.`);let f=await fF(e),p=await rnt(u??d),{contentFilenames:m,staticFilenames:h,openApiFiles:g,asyncApiFiles:_,invalidSpecFiles:v,overlayRegistry:y,snippets:b,snippetsV2:x,fileImportsMap:S,pageScans:C}=await gF(e,f,r,c,{explicitOverlays:p,localSchema:t});return await $tt({contentDirectoryPath:e,staticFilenames:h,openApiFiles:g,asyncApiFiles:_,contentFilenames:m,snippets:b,snippetV2Filenames:x,docsConfigPath:u,localSchema:t,groups:n,mintIgnore:f,disableOpenApi:r,disablePrefetch:i,strict:a,skipStaticFiles:o,invalidSpecFiles:v,allowSourceRefs:s,lazyPages:c,pageScans:C,fileImportsMap:S,overlayRegistry:y,nativePackages:l}),xXe(v),jYe(a),{fileImportsMap:S}};
1074
1074
  /**
1075
1075
  * @license React
1076
1076
  * react.production.js
@@ -1642,7 +1642,7 @@ var r=umt(),i=t(`events`).EventEmitter,a=dmt(),o=Umt(),s=wmt(),c=Tmt(),l=Ymt(),u
1642
1642
  * Copyright(c) 2014-2015 Douglas Christopher Wilson
1643
1643
  * MIT Licensed
1644
1644
  */
1645
- t.exports=tht()})))(),1);const nht=(e,t)=>e===`/`&&t?t:e;async function rht(e,t){let n=[...e];await Promise.all(Array.from({length:Math.min(10,n.length)},async()=>{for(let e=n.shift();e!==void 0;e=n.shift())await t(e)}))}async function iht(e,t,n,r){let i=0,a=e=>{i+=1,OH((0,R.jsx)(bH,{message:e}))};return await rht(e,async e=>{try{let i=await r(nht(e,n));if(`status`in i)return a(`failed to generate ${e} (status ${i.status})`);let o=e===`/`?t:vt.join(t,e);await lF.default.ensureDir(o),await Promise.all(Object.entries(i.files).map(([e,t])=>lF.default.writeFile(vt.join(o,e),t,`utf8`)))}catch(t){a(`failed to generate ${e}: ${t instanceof Error?t.message:`unknown error`}`)}}),i}const aht=async({assetPrefix:e}={})=>{let t=process.env.HOSTNAME||`localhost`,n;try{let e=lF.default.readFileSync(Jr,`utf8`);n=JSON.parse(e).config}catch(e){throw e instanceof Error&&`code`in e&&e.code===`ENOENT`&&Jr.includes(`.next/required-server-files.json`)?Error(`Client not built. Run: cd <path>/apps/client && STANDALONE_BUILD=true NEXT_PUBLIC_ENV=cli pnpm build`):e}process.env.__NEXT_PRIVATE_STANDALONE_CONFIG=JSON.stringify(e===void 0?n:{...n,assetPrefix:e}),await import(Jt(Kr).href);let{initialize:r}=await import(Jt(qr).href),i=await r({dir:Wr,dev:!1,hostname:t,minimalMode:!0});return Array.isArray(i)?i[0]:i.requestHandler},oht=(e,t,n,r)=>iht(t,n,r,async t=>{let[n,r]=await Promise.all([fetch(`${e}${t}`),fetch(`${e}${t}`,{headers:{RSC:`1`}})]),i=r.headers.get(`content-type`)?.startsWith(`text/x-component`);return!n.ok||!r.ok||!i?{status:n.ok?r.status:n.status}:{files:{"index.html":await n.text(),"index.txt":await r.text()}}});async function sht(e){let t=(0,zq.default)(),n=await aht(e?{assetPrefix:e}:void 0);t.use(`/`,zq.static(Yr)),t.all(`*`,(e,t)=>n(e,t));let r=cn(t);return{server:r,port:await new Promise((e,t)=>{r.once(`error`,t),r.listen(0,()=>{let n=r.address();!n||typeof n==`string`?t(/* @__PURE__ */ Error(`failed to determine listening port`)):e(n.port)})})}}async function cht(e){await new Promise(t=>{e.close(()=>t())})}async function lht(e,t){OH((0,R.jsx)(vH,{message:`starting local server...`})),process.env.MINT_EXPORT=JSON.stringify({groups:e,basePath:t||void 0});let{server:n,port:r}=await sht(t);return{readme:`README.classic.md`,stylesheetDir:vt.join(`_next`,`static`),generatePages:(e,t,n)=>oht(`http://localhost:${r}`,e,t,n),copyAssets:async e=>{let t=vt.join(Wr,`.next`,`static`);await(0,lF.pathExists)(t)&&await lF.default.copy(t,vt.join(e,`_next`,`static`))},bundleAssets:async e=>(await mft(e,t),[]),close:()=>cht(n)}}const uht=/* @__PURE__ */ new Set([`script`,`style`,`svg`,`button`,`noscript`,`template`]),dht=/* @__PURE__ */ new Set([`h2`,`h3`]),fht=e=>e.type===`element`,Bq=(e,t)=>{let n=e.properties[t];return typeof n==`string`?n:void 0},pht=e=>uht.has(e.tagName)||e.properties.ariaHidden===`true`,mht=/^(_R_|«|:)/,Vq=e=>e.replace(/[\u200b\u200c\u200d\ufeff]/g,``).replace(/\s+/g,` `).trim();function hht(e){let t=[],n=``;for(let r of e.split(` `))n&&n.length+r.length+1>2e3?(t.push(n),n=`${n.slice(n.lastIndexOf(` `)+1)} ${r}`):n=n?`${n} ${r}`:r;return[...t,n]}function Hq(e,t){for(let n of e.children){if(!fht(n))continue;if(t(n))return n;let e=Hq(n,t);if(e)return e}}function ght(e,t){let n=[{header:t,text:[]}],r=e=>{if(e.type===`text`){n[n.length-1]?.text.push(e.value);return}if(!fht(e)||pht(e))return;let t=Bq(e,`id`);if(dht.has(e.tagName)&&t&&!mht.test(t)){n.push({header:Vq(UF(e)),hash:t,text:[]});return}let i=/^(p|div|li|tr|td|th|pre|h[1-6]|blockquote|section|table|ul|ol)$/.test(e.tagName);i&&n[n.length-1]?.text.push(` `),e.children.forEach(r),i&&n[n.length-1]?.text.push(` `)};return e.children.forEach(r),n}const Uq=(e,t)=>Hq(e,e=>Bq(e,`id`)===t);function _ht(e,t,n){let r=Bq(t,`dataPageTitle`);if(r)return r;let i=Uq(e,`page-title`);return i?Vq(UF(i)):n}function vht(e){let t=Hq(e,e=>e.tagName===`meta`&&Bq(e,`name`)===`description`);return t&&Bq(t,`content`)}function yht(e,t,{breadcrumbs:n,locale:r,version:i}={}){let a=eje(e),o=Uq(a,`content`)??Uq(a,`content-area`);if(!o)return[];let s=_ht(a,o,t),c=vht(a);return ght(o,s).flatMap((e,a)=>{let o=e.text.join(``),l=a===0&&c?`${c} ${o}`:o;return hht(Vq(l)).map((o,c)=>({id:`${t}#${a}.${c}`,page:t,title:s,header:e.header,...e.hash&&{hash:e.hash},content:o,...n?.length&&{breadcrumbs:n},...r&&{locale:r},...i&&{version:i}}))})}function bht(e,t=[]){ck(e)&&t.push(e);for(let n of[...OPe(e),...DPe(e)])bht(n,t);return t}function xht(e,t,n){let r=t?.seo?.indexing===`all`?/* @__PURE__ */ new Map:FPe(e),i=t?.navigation?wPe(t.navigation):/* @__PURE__ */ new Map,a=LPe(e),o=IPe(e),s=/* @__PURE__ */ new Set([...n??[],`*`]),c=/* @__PURE__ */ new Map;for(let t of bht(e)){let e=Oh(t.href);if(c.has(t.href)||r.get(e)||t.noindex||t.searchable===!1||!jPe(t,s,!1,!1))continue;let n=a.get(e),l=o.get(e);c.set(t.href,{breadcrumbs:i.get(e),...n&&{locale:n},...l&&{version:l}})}return c}const Sht=e=>e.replace(/\/index$/,``)||`/`;async function Cht(e,{generatedNav:t,docsConfig:n,groups:r}){let i=t?xht(t,n,r):/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Set,o=[];for(let[t,n]of i){let r=Sht(t),i=vt.join(e,t,`index.html`);!a.has(r)&&await lF.default.pathExists(i)&&(a.add(r),o.push(...yht(await lF.default.readFile(i,`utf8`),r,n)))}return await lF.default.outputJson(vt.join(e,`/_mintlify/search-index.json`),o),o.length}const wht=async()=>{let e=Rt.join(Wr,`dist-cli`,`index.js`);if(!await lF.default.pathExists(e))throw Error(`Client not built. Run: cd <path>/apps/client-vite && pnpm build:cli`);return{entry:await import(Jt(e).href),entryPath:e}},Tht=async()=>{let{entry:e,entryPath:t}=await wht();if(!e.createCliHandler)throw Error(`${t} does not export createCliHandler`);return e.createCliHandler()},Eht=async e=>{let{entry:t}=await wht();if(!t.createCliExportFetch||!t.exportAssetPrefixes)throw Error(`this client version is too old to export, rerun online to fetch the latest client or export with --classic`);return{fetchPage:await t.createCliExportFetch(e),assetPrefixes:t.exportAssetPrefixes}},Wq=`http://localhost`,Dht=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),Oht=e=>RegExp(`(?:${e.map(Dht).join(`|`)})[^"'()\\s]+`,`g`),kht=e=>new Request(`${Wq}${e}`,{headers:{accept:`text/html`}});async function Aht(e,t){let n=await e(kht(t));for(let r=0;r<5&&n.status>=300&&n.status<400;r++){let r=n.headers.get(`location`);if(!r)break;let i=new URL(r,`${Wq}${t}`);if(i.origin!==Wq)break;t=`${i.pathname}${i.search}`,n=await e(kht(t))}return n}const jht=(e,t,n,r)=>iht(t,n,r,async t=>{let n=await Aht(e,t);return!n.ok||!n.headers.get(`content-type`)?.includes(`text/html`)?{status:n.status}:{files:{"index.html":await n.text()}}});async function Mht(e){let t=vt.join(Wr,`dist`,`client`,`_mintlify`);if(!await(0,lF.pathExists)(t))throw Error(`client assets not found, rerun online to fetch the latest client`);await lF.default.copy(t,vt.join(e,`_mintlify`))}async function Nht(e,t,n){let r=Oht(n),i=/* @__PURE__ */ new Set,a=[],o=e=>{for(let[t]of e.matchAll(r))i.has(t)||(i.add(t),a.push(t))};for await(let e of ZK(t))e.endsWith(`.html`)&&o(await lF.default.readFile(e,`utf8`));let s=[];for(;a.length>0;){let n=a;a=[],await rht(n,async n=>{try{let r=vt.join(t,decodeURIComponent(n));if(!r.startsWith(t+vt.sep))throw Error(`outside export`);let i=await e(new Request(`${Wq}${n}`));if(!i.ok)throw Error(`status ${i.status}`);let a=Buffer.from(await i.arrayBuffer());(i.headers.get(`content-type`)?.includes(`text/css`)||n.endsWith(`.css`))&&o(a.toString(`utf8`)),await lF.default.outputFile(r,a)}catch{s.push(n)}})}return s}async function Pht(e){let{fetchPage:t,assetPrefixes:n}=await Eht(e);return{readme:`README.md`,stylesheetDir:vt.join(`_mintlify`,`assets`),generatePages:(e,n,r)=>jht(t,e,n,r),copyAssets:Mht,bundleAssets:e=>Nht(t,e,n),close:async()=>{}}}function Fht(e,t){let n=/* @__PURE__ */ new Set;return Gq(e,/* @__PURE__ */ new Set([...t,`*`]),n),[...n]}function Gq(e,t,n){let r=e;if(ck(r)){if(!jPe(r,t,!1,!1))return;let{href:e}=r;if(!e||e.startsWith(`#`)||e.startsWith(`//`)||_m(e))return;let i=e.startsWith(`/`)?e:`/${e}`;i===`/index`&&n.add(`/`),n.add(i);return}e.root!=null&&typeof e.root==`object`&&Gq(e.root,t,n);let i=lk(e,`pages`);if(i)i.forEach(e=>Gq(e,t,n));else for(let r of[`groups`,...Ss])lk(e,r)?.forEach(e=>Gq(e,t,n))}const Kq=vt.join(vt.dirname(Mt(import.meta.url)),`assets`,`export-scripts`);function Iht(e,t){if(!t?.length||e.includes(`/`))return{routes:e};let n=e.find(e=>e!==`/`);return n?{routes:[`/`,...e],rootRoute:n}:{routes:e}}const Lht=e=>[...new Set(e.flatMap(e=>e.endsWith(`/index`)?[e,e.slice(0,-6)||`/`]:[e]))];async function Rht(e){let t={log:console.log,warn:console.warn},n=(...e)=>void 0;console.log=n,console.warn=n;try{return await e()}finally{console.log=t.log,console.warn=t.warn}}async function qq(e){MH(),OH((0,R.jsx)(bH,{message:e})),await new Promise(e=>setTimeout(e,50)),process.exit(1)}async function zht(e){let t=e!==void 0&&e.length>0,n=new Set(t?[]:[`/`]),r=vt.join(ai,`docs.json`);if(!await(0,lF.pathExists)(r))return[...n];let i=await lF.default.readJson(r);if(!t&&i.navigation)for(let e of fk(i.navigation))n.add(`/${e}`);let a=vt.join(Xr,`generatedDocsNav.json`);if(await(0,lF.pathExists)(a)){let r=await lF.default.readJson(a);if(t)return Fht(r,e);for(let e of kPe(r))n.add(`/${e}`)}else if(t)throw Error(`failed to collect group-filtered routes`);return[...n]}async function Bht(e,t){t?.length&&await lF.default.outputJson(vt.join(e,`_mintlify`,`api`,`user`,`index.html`),{user:{groups:t}})}async function Vht(e,t,n,r){if(await r.copyAssets(e),await(0,lF.pathExists)(Yr)){let t=await lF.default.readdir(Yr);for(let n of t)await lF.default.copy(vt.join(Yr,n),vt.join(e,n),{overwrite:!1})}await Bht(e,t);let i=await lF.default.readFile(vt.join(Kq,`serve.js`),`utf8`);await lF.default.writeFile(vt.join(e,`serve.js`),i.replace(`const BASE_PATH = '';`,`const BASE_PATH = ${JSON.stringify(n)};`)),await lF.default.copy(vt.join(Kq,r.readme),vt.join(e,`README.md`)),await lF.default.copy(vt.join(Kq,`start-docs.sh`),vt.join(e,`Start Docs.command`)),await lF.default.copy(vt.join(Kq,`start-docs.bat`),vt.join(e,`Start Docs.bat`))}async function Hht(e,t,n=``){let r=vt.join(e,`llms.txt`);if(await(0,lF.pathExists)(r))return;let[i,a]=await Promise.all([lF.default.readJson(vt.join(Xr,`docs.json`)).catch(()=>void 0),lF.default.readJson(vt.join(Xr,`generatedDocsNav.json`)).catch(()=>void 0)]);await lF.default.writeFile(r,_ft(i,a,t,n),`utf8`)}async function Uht(e,t,n,r,i){let a=i?await Pht({groups:n,basePath:r||void 0}):await lht(n,r),{routes:o,rootRoute:s}=Iht(e,n),c=Lht(o),l;try{MH(),OH((0,R.jsx)(vH,{message:`generating ${c.length} pages...`})),l=await lF.default.mkdtemp(vt.join(gt.tmpdir(),`mint-export-`));let i=l,o=await Rht(async()=>a.generatePages(c,i,s));if(o>0)throw Error(`failed to export: ${o} page(s) could not be generated.`);OH((0,R.jsx)(vH,{message:`collecting static assets...`})),await Vht(i,n,r,a),await Hht(i,e,r),OH((0,R.jsx)(vH,{message:`building search index...`}));let[u,d]=await Promise.all([lF.default.readJson(vt.join(Xr,`docs.json`)).catch(()=>void 0),lF.default.readJson(vt.join(Xr,`generatedDocsNav.json`)).catch(()=>void 0)]);await Cht(i,{generatedNav:d,docsConfig:u,groups:n}),OH((0,R.jsx)(vH,{message:`bundling external assets...`}));let f=await a.bundleAssets(i),{failed:p}=await ift(i,{stylesheetDir:a.stylesheetDir}),m=[...f,...p];OH((0,R.jsx)(vH,{message:`creating zip archive...`}));let h=new YK.default;h.addLocalFolder(i),h.writeZip(t),MH();for(let e of m)OH((0,R.jsx)(yH,{message:`could not bundle ${e}`}));OH((0,R.jsx)(_H,{message:`exported to ${t}`}))}finally{l&&await lF.default.remove(l),await a.close()}}const Wht=async e=>{let t=e.classic!==!0;ti(t?`vite`:`next`);let n=await RH(),r=e[`client-version`],i=e[`local-client-version`],a=e.groups,o=``;try{o=lft(e.basePath)}catch(e){await qq(e instanceof Error?e.message:`invalid base path`)}let s=e.cliVersion,c=e.disableOpenapi,l=vt.resolve(e.output);await lF.default.ensureDir(Br);let u=await(0,lF.pathExists)(Ur)?lF.default.readFileSync(Ur,`utf8`):null;!u&&!i&&!n&&await qq(`export requires an internet connection on first run.`),OH((0,R.jsx)(vH,{message:`preparing export...`}));let{error:d}=await KK({versionString:u,clientVersion:r,cliVersion:s,localClientVersion:i});d&&await qq(d);try{lF.default.emptyDirSync(Yr),lF.default.emptyDirSync(Xr)}catch(e){await qq(e instanceof Error&&e.message?e.message:`failed to prepare export directories`)}await lF.default.ensureDir(Gr),process.chdir(Gr),OH((0,R.jsx)(vH,{message:`running prebuild...`}));try{await Rht(async()=>{await ZB(ai,{groups:a,disableOpenApi:c})})}catch(e){await qq(e instanceof Error&&e.message?e.message:`prebuild step failed`)}let f=[];try{f=await zht(a)}catch(e){await qq(e instanceof Error&&e.message?e.message:`failed to collect routes`)}let p=uft(f,o);p&&await qq(`--base-path ${o} conflicts with the page ${p}. Pages can't start with the base path, so pick a different one.`);try{await Uht(f,l,a,o,t)}catch(e){await qq(e instanceof Error&&e.message?e.message:`export failed`)}},Ght=async e=>{try{let t=await lF.default.readJson(vt.join(e,`package.json`));if(t&&typeof t==`object`&&`name`in t){let{name:e}=t;if(typeof e==`string`&&e)return e.replace(/^@[^/]+\//,``)}}catch{}},Kht=async()=>{if((await Promise.all([`docs.json`,`mint.json`].map(e=>lF.default.pathExists(vt.join(ai,e))))).some(Boolean))return;let e=await fF(ai),t=jP(ai,ai,e),n=await Ght(ai)??await Ght(vt.dirname(ai))??Ah(vt.basename(ai)),r=BYe(t,n);r.navigation.groups.length&&(await lF.default.writeJson(vt.join(ai,`docs.json`),r,{spaces:2}),OH((0,R.jsx)(gH,{message:`No docs.json found, so one was generated from your folder structure.`,detail:`Edit docs.json to customize navigation, theme, and colors.`})))};let Jq;const qht=e=>{Jq=e},Yq=()=>Jq?{packages:Jq}:{},{stat:Jht,readFile:Yht}=Zt,Xht=async(e,t)=>{let n=t*1e6;return(await Jht(e)).size<=n},Xq=async e=>{let t=await lF.default.readFile(e,`utf-8`);return JSON.parse(t)},Zq=()=>{let e=vt.join(ai,`.mintignore`);return Xt(e)?wP(Qt(e,`utf8`)):[]},Zht=e=>{try{let t=Qt(e,`utf-8`);return t.trim()?(JSON.parse(t),{valid:!0}):{valid:!1,error:`File is empty`}}catch(e){return{valid:!1,error:e.message}}},Qht=async(e,t,n,r)=>{try{let r=n.get(e),i=egt(t);return i===r?(n.set(e,i),!1):(n.set(e,i),!0)}catch(t){let n=`Error parsing frontmatter for ${e}, regenerating nav: ${t instanceof Error?t.message:String(t)}`;return r?r(n):console.warn(n),!0}},$ht=(e,t,n,r)=>{try{return n.set(e,egt(t)),!0}catch(t){let n=`Error parsing frontmatter for ${e}, skipping initial nav cache: ${t instanceof Error?t.message:String(t)}`;return r?r(n):console.warn(n),!1}},egt=e=>{let{attributes:t}=ik(e);return Nt.createHash(`md5`).update(JSON.stringify(t)).digest(`hex`)};function Qq(e){return Dh(e).toLowerCase()}const $q=e=>{let t=e.trim();t&&Wat(t)},eJ=()=>{},tJ=async()=>{try{let e=await Yht(vt.join(ai,`docs.json`),`utf8`),{resolved:t}=await cF(JSON.parse(e),ai);return t.variables}catch{return}},{readFile:tgt}=Zt,ngt=async e=>{let t=cJ(),n=await tJ(),r=jP(e,e,Zq()).filter(e=>KT(uF(e))?e.startsWith(`snippets/`)||e.startsWith(`_snippets/`)||cC(e)?!0:eE(e,t):!1).map(async t=>{try{let r=await mB(EO((await tgt(Ct(e,t))).toString(),n),e,Ct(e,t),$q);return{filename:Dh(t),tree:r}}catch{console.warn(`Error reading snippet file ${t}`);return}});return(await Promise.all(r)).filter(Boolean)},rgt=()=>ngt(Yr),igt=async e=>{let t=await rgt();return await TE({snippets:t,fileWithImports:e,...Yq()})},nJ=/* @__PURE__ */ new Map,rJ=/* @__PURE__ */ new Map,iJ=/* @__PURE__ */ new Map,aJ=e=>{let t=rJ.get(e)??0;return rJ.set(e,t+1),t===0},agt=e=>{let t=rJ.get(e);return t==null?!1:t<=1?(rJ.delete(e),!0):(rJ.set(e,t-1),!1)},ogt=async(e,t)=>{let n=Ct(e,t);try{let r=(await lF.default.readFile(n)).toString(),i=await mB(r,e,n,eJ),a=WT(i),o=/* @__PURE__ */ new Set;for(let e of a){let n=GT(e,Dh(t));n!=null&&o.add(Qq(n))}return o}catch(e){return console.log(`Error extracting imports from file`),console.log(t),console.log(e),/* @__PURE__ */ new Set}},oJ=async(e,t)=>{if(nJ.clear(),rJ.clear(),iJ.clear(),t){for(let t of jP(e,e,Zq()))iJ.set(Qq(t),Dh(t));for(let[e,n]of t){let t=Qq(e),r=iJ.get(t)??e;iJ.set(t,Dh(r)),nJ.set(t,n);for(let e of n)aJ(e)}return}let n=jP(e,e,Zq()).filter(e=>KT(uF(e)));await Promise.all(n.map(async t=>{let n=Qq(t),r=await ogt(e,t);nJ.set(n,r),iJ.set(n,Dh(t));for(let e of r)aJ(e)}))},sgt=async(e,t)=>{if(!KT(uF(t)))return{newlyImported:[],noLongerImported:[]};let n=Qq(t),r=await ogt(e,t),i=nJ.get(n)??/* @__PURE__ */ new Set;iJ.set(n,Dh(t));let a=[],o=[];for(let e of r)!i.has(e)&&aJ(e)&&a.push(e);for(let e of i)!r.has(e)&&agt(e)&&o.push(e);return nJ.set(n,r),{newlyImported:a,noLongerImported:o}},sJ=e=>{let t=Qq(e),n=nJ.get(t);if(n==null)return{newlyImported:[],noLongerImported:[]};let r=[];for(let e of n)agt(e)&&r.push(e);return nJ.delete(t),iJ.delete(t),{newlyImported:[],noLongerImported:r}},cJ=()=>new Set(Array.from(rJ.keys(),e=>e.toLowerCase())),cgt=e=>{let t=Qq(e),n=/* @__PURE__ */ new Set;for(let[e,r]of nJ)r.has(t)&&n.add(iJ.get(e)??e);return n},lgt=e=>{let t=/* @__PURE__ */ new Set,n=[Qq(e)];for(;n.length>0;){let e=n.shift();if(e!=null)for(let r of cgt(e))t.has(r)||(t.add(r),n.push(r))}return t},ugt=e=>{let t=Qq(e).toLowerCase();return t.startsWith(`/snippets/`)||t.startsWith(`/_snippets/`)},dgt=async(e,t)=>{let n=(await lF.default.readFile(e)).toString(),r=await mB(n,ai,e,$q),i=await QT(r);return $T(i)&&(n=IT(await igt({...i,filename:t}))),n},lJ=async e=>{for(let t of e.newlyImported){if(ugt(t)||!KT(uF(t)))continue;let e=Oh(t),n=Ct(ai,e),r=Ct(Yr,e);try{let t=await dgt(n,e);await lF.default.outputFile(r,t,{flag:`w`}),await lF.default.remove(Ct(Xr,e))}catch(t){console.log(`Error processing newly imported snippet`),console.log(e),console.log(t)}}for(let t of e.noLongerImported){if(ugt(t)||!KT(uF(t)))continue;let e=Oh(t),n=Ct(ai,e);if(await lF.default.remove(Ct(Yr,e)),XO(e)===`page`&&await lF.default.pathExists(n))try{let t=await dgt(n,e),{pageContent:r}=await XB(e,t,ai,[],[],eJ);await lF.default.outputFile(Ct(Xr,e),r,{flag:`w`})}catch(t){console.log(`Error regenerating page after import status change`),console.log(e),console.log(t)}}},fgt=()=>{let e=cJ();return jP(ai,ai,Zq()).filter(t=>KT(uF(t))?t.startsWith(`snippets/`)||cC(t)?!0:eE(t,e):!1)},uJ=async()=>{let e=await tJ()??{},t=fgt(),n=[],r=[],i=[];for(let n of t)try{let t=Oh(n),r=EO(await yn(Ct(ai,t),`utf8`),e),a=await mB(r,ai,Ct(ai,t),$q),o=Dh(n),s=await QT(a);i.push({filename:o,content:r,importData:{filename:o,...s}})}catch(e){console.warn(`Failed to parse snippet ${n}:`,e)}let a={};for(let{importData:e}of i)a[e.filename]=Object.keys(e.importMap).map(t=>GT(t,e.filename)).filter(e=>e!=null);let o=EE(a).reverse(),s=new Map(i.map(e=>[e.filename,e])),c=o.map(e=>s.get(e)).filter(e=>e!=null);for(let{filename:e,content:t,importData:i}of c)try{let a=Oh(e);if(!$T(i))await(0,lF.outputFile)(Ct(Yr,a),t,{flag:`w`}),r.push({filename:e,tree:i.tree});else{let t=await TE({snippets:r,fileWithImports:i,...Yq()});await(0,lF.outputFile)(Ct(Yr,a),IT(t),{flag:`w`}),r.push({filename:e,tree:t})}n.push(a)}catch(t){console.warn(`Failed to regenerate snippet ${e}:`,t)}return n},dJ=e=>e instanceof Error&&`code`in e&&typeof e.code==`string`?e.code:void 0,pgt=/* @__PURE__ */ new Set([`ERR_MODULE_NOT_FOUND`,`MODULE_NOT_FOUND`]),mgt=async(e=()=>import(`@mintlify/package-builder`))=>{try{return await e()}catch(e){throw pgt.has(dJ(e)??``)&&e instanceof Error&&e.message.includes(`'@mintlify/package-builder'`)?Error(`The optional @mintlify/package-builder dependency is not installed, so npm packages are unavailable. npm skips it under --omit=optional or when esbuild fails to install; reinstall mint with --include=optional --foreground-scripts to see why.`):e}},hgt=({pkg:e,message:t})=>`${e?`${e}: `:``}${t}`,ggt=({file:e,line:t,message:n})=>`${e}${t===void 0?``:`:${t}`} ${n}`,fJ=e=>e.startsWith(`/`)?e:`/${e}`,pJ=e=>e.replace(/^\/+/,``),_gt=e=>/\bimport\b/.test(e),mJ=(e,t)=>{try{return FT(e,t)}catch{return}},vgt=async(e,t)=>{let n=jP(e,e,t).filter(e=>KT(xt(e).slice(1))).sort();return(await Promise.all(n.map(async t=>{let n=await yn(Ct(e,t),`utf8`).catch(()=>void 0);return n===void 0?[]:[{path:pJ(t),content:n}]}))).flat()},ygt=async(e,t,n,r)=>{let i=[];for(let{filename:n,content:r}of e){let e=mJ(EO(r,t),n);e&&i.push({...await QT(e),filename:n})}return GEe(i,{packages:n,onWarning:(e,t)=>r(t,e.message),skip:e=>n.packageSnippets?.has(e)??!1})},bgt=async({page:e,docsRoot:t,snippets:n,packages:r,onWarning:i})=>{let a=mJ(e.content,e.filename);if(!a)return;let o=await QT(a),s=$T(o)?IT(await TE({snippets:n,fileWithImports:{...o,filename:e.filename},onWarning:e=>i?.(e.message),packages:r})):e.content,{pageContent:c}=await XB(pJ(e.filename),s,t,[],[],()=>{});return ik(c).body};var xgt=class{constructor(e){this.input=e,this.snippetSources=[],this.snippets=[],this.packageSnippets=/* @__PURE__ */ new Set,this.packageSnippetTrees=/* @__PURE__ */ new Map,this.pageEntries=/* @__PURE__ */ new Map,this.warnings=[],this.providerErrors=[],this.snippetErrors=[],this.snippetFiles={},this.queue=Promise.resolve(),this.warn=(e,t)=>{this.warnings.some(e=>e.message===t)||this.warnings.push({file:pJ(e),message:t})}}get packages(){return{packageNames:this.input.packageNames,packageSnippets:this.packageSnippets}}inheritSnippetTrees(e){e.input.docsRoot===this.input.docsRoot&&(this.queue=Promise.all([this.queue,e.queue]).then(()=>{this.packageSnippetTrees=new Map(e.packageSnippetTrees)}))}collectAll(){return this.enqueue(()=>this.collectAllNow())}updatePage(e){return this.enqueue(()=>this.updatePageNow(e))}enqueue(e){let t=this.queue.then(e);return this.queue=t.catch(()=>{}),t}classify(e){return LNe(e,{packageNames:this.input.packageNames,variables:this.input.variables})}async collectAllNow(){let{docsRoot:e,variables:t,provider:n}=this.input,r=await vgt(e,this.input.mintIgnore??await fF(e)),i=this.classify(r),a=/* @__PURE__ */ new Set([...i.snippets.map(({path:e})=>e),...i.unparsed.flatMap(({path:e,category:t})=>t===`snippet`?e:[])]);this.snippetSources=r.filter(({path:e})=>a.has(e)).map(({path:e,content:t})=>({filename:fJ(e),content:t}));let o=this.packageSnippetTrees,s=new Map(i.snippets.map(({path:e,tree:t})=>[e,t]));this.packageSnippetTrees=/* @__PURE__ */ new Map;for(let{filename:e}of this.snippetSources){if(!oE(e))continue;let t=s.get(pJ(e))??o.get(e);t&&this.packageSnippetTrees.set(e,t)}this.packageSnippets=UTe([...this.packageSnippetTrees].map(([e,t])=>({filename:e,tree:t}))),this.warnings=[],this.snippets=await ygt(this.snippetSources,t,this.packages,this.warn);let c=/* @__PURE__ */ new Map;for(let e of i.errors)c.set(e.file,[...c.get(e.file)??[],e]);this.pageEntries=/* @__PURE__ */ new Map;for(let e of i.pages)await this.extractPage(e,c.get(e.path));for(let{path:e,content:t,category:n}of i.unparsed)n===`page`&&await this.extractPage({path:e,content:t},c.get(e));this.snippetErrors=i.errors.filter(({file:e})=>!this.pageEntries.has(e)),this.snippetFiles={};for(let e of[...this.packageSnippets].sort()){let t=this.snippetSources.find(({filename:t})=>t===e);t&&(this.snippetFiles[e]=t.content)}if(this.providerErrors=[],n!==void 0)try{this.snippetFiles[n]=await yn(Ct(e,n),`utf8`)}catch{this.providerErrors.push({file:`docs.json`,message:`packages.provider ${n} was not found.`})}return this.result()}async updatePageNow(e){let t=pJ(e.split(kt).join(`/`));if(!this.pageEntries.has(t))return this.collectAllNow();let n;try{n=await yn(Ct(this.input.docsRoot,t),`utf8`)}catch{return this.pageEntries.delete(t),this.result()}let r=mJ(n,fJ(t));return(r?WT(r):[]).some(e=>{let n=GT(e,fJ(t));return n!==null&&this.pageEntries.has(pJ(n))})?this.collectAllNow():(await this.extractPage({path:t,content:n},this.classify([{path:t,content:n}]).errors),this.result())}result(){let e=[...this.pageEntries.entries()].sort(([e],[t])=>e.localeCompare(t)),t={};for(let[n,r]of e)t[n]={ids:r.ids,errors:r.errors};return{islands:BNe(e.map(([,e])=>e)).islands,errors:[...e.flatMap(([,e])=>e.errors),...this.snippetErrors,...this.providerErrors],warnings:[...this.warnings],packageSnippets:new Set(this.packageSnippets),snippetFiles:{...this.snippetFiles},pages:t}}async extractPage(e,t=[]){let{path:n}=e,r=EO(e.content,this.input.variables),i={ids:[],islands:[],errors:t};if(!_gt(r)){this.pageEntries.set(n,i);return}let a=await bgt({page:{filename:fJ(n),content:e.content},docsRoot:this.input.docsRoot,snippets:this.snippets,packages:this.packages,onWarning:e=>this.warn(n,e)});if(a===void 0){this.pageEntries.set(n,i);return}let o=zNe({path:n,content:a,packageNames:this.input.packageNames,packageSnippets:this.packageSnippets,variables:this.input.variables});this.pageEntries.set(n,{ids:o.ids,islands:o.islands,errors:[...t,...o.errors]})}};const Sgt=e=>typeof e==`object`&&!!e&&!Array.isArray(e);var hJ=class extends Error{constructor(e){super(e.join(`
1645
+ t.exports=tht()})))(),1);const nht=(e,t)=>e===`/`&&t?t:e;async function rht(e,t){let n=[...e];await Promise.all(Array.from({length:Math.min(10,n.length)},async()=>{for(let e=n.shift();e!==void 0;e=n.shift())await t(e)}))}async function iht(e,t,n,r){let i=0,a=e=>{i+=1,OH((0,R.jsx)(bH,{message:e}))};return await rht(e,async e=>{try{let i=await r(nht(e,n));if(`status`in i)return a(`failed to generate ${e} (status ${i.status})`);let o=e===`/`?t:vt.join(t,e);await lF.default.ensureDir(o),await Promise.all(Object.entries(i.files).map(([e,t])=>lF.default.writeFile(vt.join(o,e),t,`utf8`)))}catch(t){a(`failed to generate ${e}: ${t instanceof Error?t.message:`unknown error`}`)}}),i}const aht=async({assetPrefix:e}={})=>{let t=process.env.HOSTNAME||`localhost`,n;try{let e=lF.default.readFileSync(Jr,`utf8`);n=JSON.parse(e).config}catch(e){throw e instanceof Error&&`code`in e&&e.code===`ENOENT`&&Jr.includes(`.next/required-server-files.json`)?Error(`Client not built. Run: cd <path>/apps/client && STANDALONE_BUILD=true NEXT_PUBLIC_ENV=cli pnpm build`):e}process.env.__NEXT_PRIVATE_STANDALONE_CONFIG=JSON.stringify(e===void 0?n:{...n,assetPrefix:e}),await import(Jt(Kr).href);let{initialize:r}=await import(Jt(qr).href),i=await r({dir:Wr,dev:!1,hostname:t,minimalMode:!0});return Array.isArray(i)?i[0]:i.requestHandler},oht=(e,t,n,r)=>iht(t,n,r,async t=>{let[n,r]=await Promise.all([fetch(`${e}${t}`),fetch(`${e}${t}`,{headers:{RSC:`1`}})]),i=r.headers.get(`content-type`)?.startsWith(`text/x-component`);return!n.ok||!r.ok||!i?{status:n.ok?r.status:n.status}:{files:{"index.html":await n.text(),"index.txt":await r.text()}}});async function sht(e){let t=(0,zq.default)(),n=await aht(e?{assetPrefix:e}:void 0);t.use(`/`,zq.static(Yr)),t.all(`*`,(e,t)=>n(e,t));let r=cn(t);return{server:r,port:await new Promise((e,t)=>{r.once(`error`,t),r.listen(0,()=>{let n=r.address();!n||typeof n==`string`?t(/* @__PURE__ */ Error(`failed to determine listening port`)):e(n.port)})})}}async function cht(e){await new Promise(t=>{e.close(()=>t())})}async function lht(e,t){OH((0,R.jsx)(vH,{message:`starting local server...`})),process.env.MINT_EXPORT=JSON.stringify({groups:e,basePath:t||void 0});let{server:n,port:r}=await sht(t);return{readme:`README.classic.md`,stylesheetDir:vt.join(`_next`,`static`),generatePages:(e,t,n)=>oht(`http://localhost:${r}`,e,t,n),copyAssets:async e=>{let t=vt.join(Wr,`.next`,`static`);await(0,lF.pathExists)(t)&&await lF.default.copy(t,vt.join(e,`_next`,`static`))},bundleAssets:async e=>(await mft(e,t),[]),close:()=>cht(n)}}const uht=/* @__PURE__ */ new Set([`script`,`style`,`svg`,`button`,`noscript`,`template`]),dht=/* @__PURE__ */ new Set([`h2`,`h3`]),fht=e=>e.type===`element`,Bq=(e,t)=>{let n=e.properties[t];return typeof n==`string`?n:void 0},pht=e=>uht.has(e.tagName)||e.properties.ariaHidden===`true`,mht=/^(_R_|«|:)/,Vq=e=>e.replace(/[\u200b\u200c\u200d\ufeff]/g,``).replace(/\s+/g,` `).trim();function hht(e){let t=[],n=``;for(let r of e.split(` `))n&&n.length+r.length+1>2e3?(t.push(n),n=`${n.slice(n.lastIndexOf(` `)+1)} ${r}`):n=n?`${n} ${r}`:r;return[...t,n]}function Hq(e,t){for(let n of e.children){if(!fht(n))continue;if(t(n))return n;let e=Hq(n,t);if(e)return e}}function ght(e,t){let n=[{header:t,text:[]}],r=e=>{if(e.type===`text`){n[n.length-1]?.text.push(e.value);return}if(!fht(e)||pht(e))return;let t=Bq(e,`id`);if(dht.has(e.tagName)&&t&&!mht.test(t)){n.push({header:Vq(UF(e)),hash:t,text:[]});return}let i=/^(p|div|li|tr|td|th|pre|h[1-6]|blockquote|section|table|ul|ol)$/.test(e.tagName);i&&n[n.length-1]?.text.push(` `),e.children.forEach(r),i&&n[n.length-1]?.text.push(` `)};return e.children.forEach(r),n}const Uq=(e,t)=>Hq(e,e=>Bq(e,`id`)===t);function _ht(e,t,n){let r=Bq(t,`dataPageTitle`);if(r)return r;let i=Uq(e,`page-title`);return i?Vq(UF(i)):n}function vht(e){let t=Hq(e,e=>e.tagName===`meta`&&Bq(e,`name`)===`description`);return t&&Bq(t,`content`)}function yht(e,t,{breadcrumbs:n,locale:r,version:i}={}){let a=ije(e),o=Uq(a,`content`)??Uq(a,`content-area`);if(!o)return[];let s=_ht(a,o,t),c=vht(a);return ght(o,s).flatMap((e,a)=>{let o=e.text.join(``),l=a===0&&c?`${c} ${o}`:o;return hht(Vq(l)).map((o,c)=>({id:`${t}#${a}.${c}`,page:t,title:s,header:e.header,...e.hash&&{hash:e.hash},content:o,...n?.length&&{breadcrumbs:n},...r&&{locale:r},...i&&{version:i}}))})}function bht(e,t=[]){ck(e)&&t.push(e);for(let n of[...OPe(e),...DPe(e)])bht(n,t);return t}function xht(e,t,n){let r=t?.seo?.indexing===`all`?/* @__PURE__ */ new Map:FPe(e),i=t?.navigation?wPe(t.navigation):/* @__PURE__ */ new Map,a=LPe(e),o=IPe(e),s=/* @__PURE__ */ new Set([...n??[],`*`]),c=/* @__PURE__ */ new Map;for(let t of bht(e)){let e=Oh(t.href);if(c.has(t.href)||r.get(e)||t.noindex||t.searchable===!1||!jPe(t,s,!1,!1))continue;let n=a.get(e),l=o.get(e);c.set(t.href,{breadcrumbs:i.get(e),...n&&{locale:n},...l&&{version:l}})}return c}const Sht=e=>e.replace(/\/index$/,``)||`/`;async function Cht(e,{generatedNav:t,docsConfig:n,groups:r}){let i=t?xht(t,n,r):/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Set,o=[];for(let[t,n]of i){let r=Sht(t),i=vt.join(e,t,`index.html`);!a.has(r)&&await lF.default.pathExists(i)&&(a.add(r),o.push(...yht(await lF.default.readFile(i,`utf8`),r,n)))}return await lF.default.outputJson(vt.join(e,`/_mintlify/search-index.json`),o),o.length}const wht=async()=>{let e=Rt.join(Wr,`dist-cli`,`index.js`);if(!await lF.default.pathExists(e))throw Error(`Client not built. Run: cd <path>/apps/client-vite && pnpm build:cli`);return{entry:await import(Jt(e).href),entryPath:e}},Tht=async()=>{let{entry:e,entryPath:t}=await wht();if(!e.createCliHandler)throw Error(`${t} does not export createCliHandler`);return e.createCliHandler()},Eht=async e=>{let{entry:t}=await wht();if(!t.createCliExportFetch||!t.exportAssetPrefixes)throw Error(`this client version is too old to export, rerun online to fetch the latest client or export with --classic`);return{fetchPage:await t.createCliExportFetch(e),assetPrefixes:t.exportAssetPrefixes}},Wq=`http://localhost`,Dht=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),Oht=e=>RegExp(`(?:${e.map(Dht).join(`|`)})[^"'()\\s]+`,`g`),kht=e=>new Request(`${Wq}${e}`,{headers:{accept:`text/html`}});async function Aht(e,t){let n=await e(kht(t));for(let r=0;r<5&&n.status>=300&&n.status<400;r++){let r=n.headers.get(`location`);if(!r)break;let i=new URL(r,`${Wq}${t}`);if(i.origin!==Wq)break;t=`${i.pathname}${i.search}`,n=await e(kht(t))}return n}const jht=(e,t,n,r)=>iht(t,n,r,async t=>{let n=await Aht(e,t);return!n.ok||!n.headers.get(`content-type`)?.includes(`text/html`)?{status:n.status}:{files:{"index.html":await n.text()}}});async function Mht(e){let t=vt.join(Wr,`dist`,`client`,`_mintlify`);if(!await(0,lF.pathExists)(t))throw Error(`client assets not found, rerun online to fetch the latest client`);await lF.default.copy(t,vt.join(e,`_mintlify`))}async function Nht(e,t,n){let r=Oht(n),i=/* @__PURE__ */ new Set,a=[],o=e=>{for(let[t]of e.matchAll(r))i.has(t)||(i.add(t),a.push(t))};for await(let e of ZK(t))e.endsWith(`.html`)&&o(await lF.default.readFile(e,`utf8`));let s=[];for(;a.length>0;){let n=a;a=[],await rht(n,async n=>{try{let r=vt.join(t,decodeURIComponent(n));if(!r.startsWith(t+vt.sep))throw Error(`outside export`);let i=await e(new Request(`${Wq}${n}`));if(!i.ok)throw Error(`status ${i.status}`);let a=Buffer.from(await i.arrayBuffer());(i.headers.get(`content-type`)?.includes(`text/css`)||n.endsWith(`.css`))&&o(a.toString(`utf8`)),await lF.default.outputFile(r,a)}catch{s.push(n)}})}return s}async function Pht(e){let{fetchPage:t,assetPrefixes:n}=await Eht(e);return{readme:`README.md`,stylesheetDir:vt.join(`_mintlify`,`assets`),generatePages:(e,n,r)=>jht(t,e,n,r),copyAssets:Mht,bundleAssets:e=>Nht(t,e,n),close:async()=>{}}}function Fht(e,t){let n=/* @__PURE__ */ new Set;return Gq(e,/* @__PURE__ */ new Set([...t,`*`]),n),[...n]}function Gq(e,t,n){let r=e;if(ck(r)){if(!jPe(r,t,!1,!1))return;let{href:e}=r;if(!e||e.startsWith(`#`)||e.startsWith(`//`)||_m(e))return;let i=e.startsWith(`/`)?e:`/${e}`;i===`/index`&&n.add(`/`),n.add(i);return}e.root!=null&&typeof e.root==`object`&&Gq(e.root,t,n);let i=lk(e,`pages`);if(i)i.forEach(e=>Gq(e,t,n));else for(let r of[`groups`,...Ss])lk(e,r)?.forEach(e=>Gq(e,t,n))}const Kq=vt.join(vt.dirname(Mt(import.meta.url)),`assets`,`export-scripts`);function Iht(e,t){if(!t?.length||e.includes(`/`))return{routes:e};let n=e.find(e=>e!==`/`);return n?{routes:[`/`,...e],rootRoute:n}:{routes:e}}const Lht=e=>[...new Set(e.flatMap(e=>e.endsWith(`/index`)?[e,e.slice(0,-6)||`/`]:[e]))];async function Rht(e){let t={log:console.log,warn:console.warn},n=(...e)=>void 0;console.log=n,console.warn=n;try{return await e()}finally{console.log=t.log,console.warn=t.warn}}async function qq(e){MH(),OH((0,R.jsx)(bH,{message:e})),await new Promise(e=>setTimeout(e,50)),process.exit(1)}async function zht(e){let t=e!==void 0&&e.length>0,n=new Set(t?[]:[`/`]),r=vt.join(ai,`docs.json`);if(!await(0,lF.pathExists)(r))return[...n];let i=await lF.default.readJson(r);if(!t&&i.navigation)for(let e of fk(i.navigation))n.add(`/${e}`);let a=vt.join(Xr,`generatedDocsNav.json`);if(await(0,lF.pathExists)(a)){let r=await lF.default.readJson(a);if(t)return Fht(r,e);for(let e of kPe(r))n.add(`/${e}`)}else if(t)throw Error(`failed to collect group-filtered routes`);return[...n]}async function Bht(e,t){t?.length&&await lF.default.outputJson(vt.join(e,`_mintlify`,`api`,`user`,`index.html`),{user:{groups:t}})}async function Vht(e,t,n,r){if(await r.copyAssets(e),await(0,lF.pathExists)(Yr)){let t=await lF.default.readdir(Yr);for(let n of t)await lF.default.copy(vt.join(Yr,n),vt.join(e,n),{overwrite:!1})}await Bht(e,t);let i=await lF.default.readFile(vt.join(Kq,`serve.js`),`utf8`);await lF.default.writeFile(vt.join(e,`serve.js`),i.replace(`const BASE_PATH = '';`,`const BASE_PATH = ${JSON.stringify(n)};`)),await lF.default.copy(vt.join(Kq,r.readme),vt.join(e,`README.md`)),await lF.default.copy(vt.join(Kq,`start-docs.sh`),vt.join(e,`Start Docs.command`)),await lF.default.copy(vt.join(Kq,`start-docs.bat`),vt.join(e,`Start Docs.bat`))}async function Hht(e,t,n=``){let r=vt.join(e,`llms.txt`);if(await(0,lF.pathExists)(r))return;let[i,a]=await Promise.all([lF.default.readJson(vt.join(Xr,`docs.json`)).catch(()=>void 0),lF.default.readJson(vt.join(Xr,`generatedDocsNav.json`)).catch(()=>void 0)]);await lF.default.writeFile(r,_ft(i,a,t,n),`utf8`)}async function Uht(e,t,n,r,i){let a=i?await Pht({groups:n,basePath:r||void 0}):await lht(n,r),{routes:o,rootRoute:s}=Iht(e,n),c=Lht(o),l;try{MH(),OH((0,R.jsx)(vH,{message:`generating ${c.length} pages...`})),l=await lF.default.mkdtemp(vt.join(gt.tmpdir(),`mint-export-`));let i=l,o=await Rht(async()=>a.generatePages(c,i,s));if(o>0)throw Error(`failed to export: ${o} page(s) could not be generated.`);OH((0,R.jsx)(vH,{message:`collecting static assets...`})),await Vht(i,n,r,a),await Hht(i,e,r),OH((0,R.jsx)(vH,{message:`building search index...`}));let[u,d]=await Promise.all([lF.default.readJson(vt.join(Xr,`docs.json`)).catch(()=>void 0),lF.default.readJson(vt.join(Xr,`generatedDocsNav.json`)).catch(()=>void 0)]);await Cht(i,{generatedNav:d,docsConfig:u,groups:n}),OH((0,R.jsx)(vH,{message:`bundling external assets...`}));let f=await a.bundleAssets(i),{failed:p}=await ift(i,{stylesheetDir:a.stylesheetDir}),m=[...f,...p];OH((0,R.jsx)(vH,{message:`creating zip archive...`}));let h=new YK.default;h.addLocalFolder(i),h.writeZip(t),MH();for(let e of m)OH((0,R.jsx)(yH,{message:`could not bundle ${e}`}));OH((0,R.jsx)(_H,{message:`exported to ${t}`}))}finally{l&&await lF.default.remove(l),await a.close()}}const Wht=async e=>{let t=e.classic!==!0;ti(t?`vite`:`next`);let n=await RH(),r=e[`client-version`],i=e[`local-client-version`],a=e.groups,o=``;try{o=lft(e.basePath)}catch(e){await qq(e instanceof Error?e.message:`invalid base path`)}let s=e.cliVersion,c=e.disableOpenapi,l=vt.resolve(e.output);await lF.default.ensureDir(Br);let u=await(0,lF.pathExists)(Ur)?lF.default.readFileSync(Ur,`utf8`):null;!u&&!i&&!n&&await qq(`export requires an internet connection on first run.`),OH((0,R.jsx)(vH,{message:`preparing export...`}));let{error:d}=await KK({versionString:u,clientVersion:r,cliVersion:s,localClientVersion:i});d&&await qq(d);try{lF.default.emptyDirSync(Yr),lF.default.emptyDirSync(Xr)}catch(e){await qq(e instanceof Error&&e.message?e.message:`failed to prepare export directories`)}await lF.default.ensureDir(Gr),process.chdir(Gr),OH((0,R.jsx)(vH,{message:`running prebuild...`}));try{await Rht(async()=>{await ZB(ai,{groups:a,disableOpenApi:c})})}catch(e){await qq(e instanceof Error&&e.message?e.message:`prebuild step failed`)}let f=[];try{f=await zht(a)}catch(e){await qq(e instanceof Error&&e.message?e.message:`failed to collect routes`)}let p=uft(f,o);p&&await qq(`--base-path ${o} conflicts with the page ${p}. Pages can't start with the base path, so pick a different one.`);try{await Uht(f,l,a,o,t)}catch(e){await qq(e instanceof Error&&e.message?e.message:`export failed`)}},Ght=async e=>{try{let t=await lF.default.readJson(vt.join(e,`package.json`));if(t&&typeof t==`object`&&`name`in t){let{name:e}=t;if(typeof e==`string`&&e)return e.replace(/^@[^/]+\//,``)}}catch{}},Kht=async()=>{if((await Promise.all([`docs.json`,`mint.json`].map(e=>lF.default.pathExists(vt.join(ai,e))))).some(Boolean))return;let e=await fF(ai),t=jP(ai,ai,e),n=await Ght(ai)??await Ght(vt.dirname(ai))??Ah(vt.basename(ai)),r=BYe(t,n);r.navigation.groups.length&&(await lF.default.writeJson(vt.join(ai,`docs.json`),r,{spaces:2}),OH((0,R.jsx)(gH,{message:`No docs.json found, so one was generated from your folder structure.`,detail:`Edit docs.json to customize navigation, theme, and colors.`})))};let Jq;const qht=e=>{Jq=e},Yq=()=>Jq?{packages:Jq}:{},{stat:Jht,readFile:Yht}=Zt,Xht=async(e,t)=>{let n=t*1e6;return(await Jht(e)).size<=n},Xq=async e=>{let t=await lF.default.readFile(e,`utf-8`);return JSON.parse(t)},Zq=()=>{let e=vt.join(ai,`.mintignore`);return Xt(e)?wP(Qt(e,`utf8`)):[]},Zht=e=>{try{let t=Qt(e,`utf-8`);return t.trim()?(JSON.parse(t),{valid:!0}):{valid:!1,error:`File is empty`}}catch(e){return{valid:!1,error:e.message}}},Qht=async(e,t,n,r)=>{try{let r=n.get(e),i=egt(t);return i===r?(n.set(e,i),!1):(n.set(e,i),!0)}catch(t){let n=`Error parsing frontmatter for ${e}, regenerating nav: ${t instanceof Error?t.message:String(t)}`;return r?r(n):console.warn(n),!0}},$ht=(e,t,n,r)=>{try{return n.set(e,egt(t)),!0}catch(t){let n=`Error parsing frontmatter for ${e}, skipping initial nav cache: ${t instanceof Error?t.message:String(t)}`;return r?r(n):console.warn(n),!1}},egt=e=>{let{attributes:t}=ik(e);return Nt.createHash(`md5`).update(JSON.stringify(t)).digest(`hex`)};function Qq(e){return Dh(e).toLowerCase()}const $q=e=>{let t=e.trim();t&&Wat(t)},eJ=()=>{},tJ=async()=>{try{let e=await Yht(vt.join(ai,`docs.json`),`utf8`),{resolved:t}=await cF(JSON.parse(e),ai);return t.variables}catch{return}},{readFile:tgt}=Zt,ngt=async e=>{let t=cJ(),n=await tJ(),r=jP(e,e,Zq()).filter(e=>qT(uF(e))?e.startsWith(`snippets/`)||e.startsWith(`_snippets/`)||cC(e)?!0:tE(e,t):!1).map(async t=>{try{let r=await mB(EO((await tgt(Ct(e,t))).toString(),n),e,Ct(e,t),$q);return{filename:Dh(t),tree:r}}catch{console.warn(`Error reading snippet file ${t}`);return}});return(await Promise.all(r)).filter(Boolean)},rgt=()=>ngt(Yr),igt=async e=>{let t=await rgt();return await EE({snippets:t,fileWithImports:e,...Yq()})},nJ=/* @__PURE__ */ new Map,rJ=/* @__PURE__ */ new Map,iJ=/* @__PURE__ */ new Map,aJ=e=>{let t=rJ.get(e)??0;return rJ.set(e,t+1),t===0},agt=e=>{let t=rJ.get(e);return t==null?!1:t<=1?(rJ.delete(e),!0):(rJ.set(e,t-1),!1)},ogt=async(e,t)=>{let n=Ct(e,t);try{let r=(await lF.default.readFile(n)).toString(),i=await mB(r,e,n,eJ),a=GT(i),o=/* @__PURE__ */ new Set;for(let e of a){let n=KT(e,Dh(t));n!=null&&o.add(Qq(n))}return o}catch(e){return console.log(`Error extracting imports from file`),console.log(t),console.log(e),/* @__PURE__ */ new Set}},oJ=async(e,t)=>{if(nJ.clear(),rJ.clear(),iJ.clear(),t){for(let t of jP(e,e,Zq()))iJ.set(Qq(t),Dh(t));for(let[e,n]of t){let t=Qq(e),r=iJ.get(t)??e;iJ.set(t,Dh(r)),nJ.set(t,n);for(let e of n)aJ(e)}return}let n=jP(e,e,Zq()).filter(e=>qT(uF(e)));await Promise.all(n.map(async t=>{let n=Qq(t),r=await ogt(e,t);nJ.set(n,r),iJ.set(n,Dh(t));for(let e of r)aJ(e)}))},sgt=async(e,t)=>{if(!qT(uF(t)))return{newlyImported:[],noLongerImported:[]};let n=Qq(t),r=await ogt(e,t),i=nJ.get(n)??/* @__PURE__ */ new Set;iJ.set(n,Dh(t));let a=[],o=[];for(let e of r)!i.has(e)&&aJ(e)&&a.push(e);for(let e of i)!r.has(e)&&agt(e)&&o.push(e);return nJ.set(n,r),{newlyImported:a,noLongerImported:o}},sJ=e=>{let t=Qq(e),n=nJ.get(t);if(n==null)return{newlyImported:[],noLongerImported:[]};let r=[];for(let e of n)agt(e)&&r.push(e);return nJ.delete(t),iJ.delete(t),{newlyImported:[],noLongerImported:r}},cJ=()=>new Set(Array.from(rJ.keys(),e=>e.toLowerCase())),cgt=e=>{let t=Qq(e),n=/* @__PURE__ */ new Set;for(let[e,r]of nJ)r.has(t)&&n.add(iJ.get(e)??e);return n},lgt=e=>{let t=/* @__PURE__ */ new Set,n=[Qq(e)];for(;n.length>0;){let e=n.shift();if(e!=null)for(let r of cgt(e))t.has(r)||(t.add(r),n.push(r))}return t},ugt=e=>{let t=Qq(e).toLowerCase();return t.startsWith(`/snippets/`)||t.startsWith(`/_snippets/`)},dgt=async(e,t)=>{let n=(await lF.default.readFile(e)).toString(),r=await mB(n,ai,e,$q),i=await $T(r);return eE(i)&&(n=IT(await igt({...i,filename:t}))),n},lJ=async e=>{for(let t of e.newlyImported){if(ugt(t)||!qT(uF(t)))continue;let e=Oh(t),n=Ct(ai,e),r=Ct(Yr,e);try{let t=await dgt(n,e);await lF.default.outputFile(r,t,{flag:`w`}),await lF.default.remove(Ct(Xr,e))}catch(t){console.log(`Error processing newly imported snippet`),console.log(e),console.log(t)}}for(let t of e.noLongerImported){if(ugt(t)||!qT(uF(t)))continue;let e=Oh(t),n=Ct(ai,e);if(await lF.default.remove(Ct(Yr,e)),XO(e)===`page`&&await lF.default.pathExists(n))try{let t=await dgt(n,e),{pageContent:r}=await XB(e,t,ai,[],[],eJ);await lF.default.outputFile(Ct(Xr,e),r,{flag:`w`})}catch(t){console.log(`Error regenerating page after import status change`),console.log(e),console.log(t)}}},fgt=()=>{let e=cJ();return jP(ai,ai,Zq()).filter(t=>qT(uF(t))?t.startsWith(`snippets/`)||cC(t)?!0:tE(t,e):!1)},uJ=async()=>{let e=await tJ()??{},t=fgt(),n=[],r=[],i=[];for(let n of t)try{let t=Oh(n),r=EO(await yn(Ct(ai,t),`utf8`),e),a=await mB(r,ai,Ct(ai,t),$q),o=Dh(n),s=await $T(a);i.push({filename:o,content:r,importData:{filename:o,...s}})}catch(e){console.warn(`Failed to parse snippet ${n}:`,e)}let a={};for(let{importData:e}of i)a[e.filename]=Object.keys(e.importMap).map(t=>KT(t,e.filename)).filter(e=>e!=null);let o=DE(a).reverse(),s=new Map(i.map(e=>[e.filename,e])),c=o.map(e=>s.get(e)).filter(e=>e!=null);for(let{filename:e,content:t,importData:i}of c)try{let a=Oh(e);if(!eE(i))await(0,lF.outputFile)(Ct(Yr,a),t,{flag:`w`}),r.push({filename:e,tree:i.tree});else{let t=await EE({snippets:r,fileWithImports:i,...Yq()});await(0,lF.outputFile)(Ct(Yr,a),IT(t),{flag:`w`}),r.push({filename:e,tree:t})}n.push(a)}catch(t){console.warn(`Failed to regenerate snippet ${e}:`,t)}return n},dJ=e=>e instanceof Error&&`code`in e&&typeof e.code==`string`?e.code:void 0,pgt=/* @__PURE__ */ new Set([`ERR_MODULE_NOT_FOUND`,`MODULE_NOT_FOUND`]),mgt=async(e=()=>import(`@mintlify/package-builder`))=>{try{return await e()}catch(e){throw pgt.has(dJ(e)??``)&&e instanceof Error&&e.message.includes(`'@mintlify/package-builder'`)?Error(`The optional @mintlify/package-builder dependency is not installed, so npm packages are unavailable. npm skips it under --omit=optional or when esbuild fails to install; reinstall mint with --include=optional --foreground-scripts to see why.`):e}},hgt=({pkg:e,message:t})=>`${e?`${e}: `:``}${t}`,ggt=({file:e,line:t,message:n})=>`${e}${t===void 0?``:`:${t}`} ${n}`,fJ=e=>e.startsWith(`/`)?e:`/${e}`,pJ=e=>e.replace(/^\/+/,``),_gt=e=>/\bimport\b/.test(e),mJ=(e,t)=>{try{return FT(e,t)}catch{return}},vgt=async(e,t)=>{let n=jP(e,e,t).filter(e=>qT(xt(e).slice(1))).sort();return(await Promise.all(n.map(async t=>{let n=await yn(Ct(e,t),`utf8`).catch(()=>void 0);return n===void 0?[]:[{path:pJ(t),content:n}]}))).flat()},ygt=async(e,t,n,r)=>{let i=[];for(let{filename:n,content:r}of e){let e=mJ(EO(r,t),n);e&&i.push({...await $T(e),filename:n})}return YEe(i,{packages:n,onWarning:(e,t)=>r(t,e.message),skip:e=>n.packageSnippets?.has(e)??!1})},bgt=async({page:e,docsRoot:t,snippets:n,packages:r,onWarning:i})=>{let a=mJ(e.content,e.filename);if(!a)return;let o=await $T(a),s=eE(o)?IT(await EE({snippets:n,fileWithImports:{...o,filename:e.filename},onWarning:e=>i?.(e.message),packages:r})):e.content,{pageContent:c}=await XB(pJ(e.filename),s,t,[],[],()=>{});return ik(c).body};var xgt=class{constructor(e){this.input=e,this.snippetSources=[],this.snippets=[],this.packageSnippets=/* @__PURE__ */ new Set,this.packageSnippetTrees=/* @__PURE__ */ new Map,this.pageEntries=/* @__PURE__ */ new Map,this.warnings=[],this.providerErrors=[],this.snippetErrors=[],this.snippetFiles={},this.queue=Promise.resolve(),this.warn=(e,t)=>{this.warnings.some(e=>e.message===t)||this.warnings.push({file:pJ(e),message:t})}}get packages(){return{packageNames:this.input.packageNames,packageSnippets:this.packageSnippets}}inheritSnippetTrees(e){e.input.docsRoot===this.input.docsRoot&&(this.queue=Promise.all([this.queue,e.queue]).then(()=>{this.packageSnippetTrees=new Map(e.packageSnippetTrees)}))}collectAll(){return this.enqueue(()=>this.collectAllNow())}updatePage(e){return this.enqueue(()=>this.updatePageNow(e))}enqueue(e){let t=this.queue.then(e);return this.queue=t.catch(()=>{}),t}classify(e){return LNe(e,{packageNames:this.input.packageNames,variables:this.input.variables})}async collectAllNow(){let{docsRoot:e,variables:t,provider:n}=this.input,r=await vgt(e,this.input.mintIgnore??await fF(e)),i=this.classify(r),a=/* @__PURE__ */ new Set([...i.snippets.map(({path:e})=>e),...i.unparsed.flatMap(({path:e,category:t})=>t===`snippet`?e:[])]);this.snippetSources=r.filter(({path:e})=>a.has(e)).map(({path:e,content:t})=>({filename:fJ(e),content:t}));let o=this.packageSnippetTrees,s=new Map(i.snippets.map(({path:e,tree:t})=>[e,t]));this.packageSnippetTrees=/* @__PURE__ */ new Map;for(let{filename:e}of this.snippetSources){if(!sE(e))continue;let t=s.get(pJ(e))??o.get(e);t&&this.packageSnippetTrees.set(e,t)}this.packageSnippets=qTe([...this.packageSnippetTrees].map(([e,t])=>({filename:e,tree:t}))),this.warnings=[],this.snippets=await ygt(this.snippetSources,t,this.packages,this.warn);let c=/* @__PURE__ */ new Map;for(let e of i.errors)c.set(e.file,[...c.get(e.file)??[],e]);this.pageEntries=/* @__PURE__ */ new Map;for(let e of i.pages)await this.extractPage(e,c.get(e.path));for(let{path:e,content:t,category:n}of i.unparsed)n===`page`&&await this.extractPage({path:e,content:t},c.get(e));this.snippetErrors=i.errors.filter(({file:e})=>!this.pageEntries.has(e)),this.snippetFiles={};for(let e of[...this.packageSnippets].sort()){let t=this.snippetSources.find(({filename:t})=>t===e);t&&(this.snippetFiles[e]=t.content)}if(this.providerErrors=[],n!==void 0)try{this.snippetFiles[n]=await yn(Ct(e,n),`utf8`)}catch{this.providerErrors.push({file:`docs.json`,message:`packages.provider ${n} was not found.`})}return this.result()}async updatePageNow(e){let t=pJ(e.split(kt).join(`/`));if(!this.pageEntries.has(t))return this.collectAllNow();let n;try{n=await yn(Ct(this.input.docsRoot,t),`utf8`)}catch{return this.pageEntries.delete(t),this.result()}let r=mJ(n,fJ(t));return(r?GT(r):[]).some(e=>{let n=KT(e,fJ(t));return n!==null&&this.pageEntries.has(pJ(n))})?this.collectAllNow():(await this.extractPage({path:t,content:n},this.classify([{path:t,content:n}]).errors),this.result())}result(){let e=[...this.pageEntries.entries()].sort(([e],[t])=>e.localeCompare(t)),t={};for(let[n,r]of e)t[n]={ids:r.ids,errors:r.errors};return{islands:BNe(e.map(([,e])=>e)).islands,errors:[...e.flatMap(([,e])=>e.errors),...this.snippetErrors,...this.providerErrors],warnings:[...this.warnings],packageSnippets:new Set(this.packageSnippets),snippetFiles:{...this.snippetFiles},pages:t}}async extractPage(e,t=[]){let{path:n}=e,r=EO(e.content,this.input.variables),i={ids:[],islands:[],errors:t};if(!_gt(r)){this.pageEntries.set(n,i);return}let a=await bgt({page:{filename:fJ(n),content:e.content},docsRoot:this.input.docsRoot,snippets:this.snippets,packages:this.packages,onWarning:e=>this.warn(n,e)});if(a===void 0){this.pageEntries.set(n,i);return}let o=zNe({path:n,content:a,packageNames:this.input.packageNames,packageSnippets:this.packageSnippets,variables:this.input.variables});this.pageEntries.set(n,{ids:o.ids,islands:o.islands,errors:[...t,...o.errors]})}};const Sgt=e=>typeof e==`object`&&!!e&&!Array.isArray(e);var hJ=class extends Error{constructor(e){super(e.join(`
1646
1646
  `)),this.problems=e}},gJ=class extends hJ{constructor(e,t){super(e),this.variables=t}};const Cgt=e=>e instanceof Error?e.message:String(e),wgt=async e=>{try{return{content:await yn(e,`utf8`)}}catch(e){return dJ(e)===`ENOENT`?{}:{error:`could not be read: ${Cgt(e)}`}}},Tgt=e=>`/${e.replace(/\\/g,`/`).replace(/^\/+/,``)}`,Egt=e=>{if(!Sgt(e))return;let t={};for(let[n,r]of Object.entries(e))typeof r==`string`&&(t[n]=r);return t},Dgt=async e=>{let t;try{t=await pF(e,`docs`)}catch(e){throw new hJ([`docs.json could not be loaded: ${Cgt(e)}`])}if(t===null)return;if(!Sgt(t))throw new hJ([`docs.json is not a JSON object`]);if(!(`packages`in t))return;let n=Zc.safeParse(t.packages);if(!n.success)throw new gJ(n.error.issues.map(e=>`docs.json ${[`packages`,...e.path].join(`.`)}: ${e.message}`),Egt(t.variables));let r=n.data;r.provider!==void 0&&(r.provider=Tgt(r.provider));let i=[],a=await wgt(Ct(e,`package.json`)),o=a.content===void 0?void 0:_Ne(a.content),s=a.error??o?.error,c=s&&`package.json ${s}`;return c?i.push(c):o||i.push(`docs.json sets "packages" but there is no package.json next to it.`),{packages:r,packageNames:o?.error?/* @__PURE__ */ new Set:o?.packageNames??/* @__PURE__ */ new Set,variables:Egt(t.variables),errors:i,...c&&{packageJsonError:c}}},Ogt=[`.package-lock.json`,`.modules.yaml`,`.yarn-integrity`,`.yarn-state.yml`],kgt=[`package-lock.json`,`npm-shrinkwrap.json`,`pnpm-lock.yaml`,`yarn.lock`],Agt=/* @__PURE__ */ new Set([`.mdx`,`.md`]),_J=(e,t)=>e.size===t.size&&[...e].every(e=>t.has(e)),jgt=(e={},t={})=>Object.keys(e).length===Object.keys(t).length&&Object.entries(e).every(([e,n])=>t[e]===n),Mgt=e=>{try{return tn(e).mtimeMs}catch{return}},Ngt=/* @__PURE__ */ new Set([`EPERM`,`EBUSY`,`EACCES`]);async function Pgt(e,t,n=20){for(let r=1;;r++)try{await lF.default.rename(e,t);return}catch(e){let t=dJ(e);if(r>=n||!t||!Ngt.has(t))throw e;await new Promise(e=>setTimeout(e,10*r))}}var Fgt=class{constructor(e){this.options=e,this.status={state:`disabled`},this.buildFiles=/* @__PURE__ */ new Set,this.buildFilesKnown=!1,this.rerun=!1,this.collectPending=!1,this.buildCount=0,this.closed=!1,this.propsWrite=Promise.resolve(),this.listedIds=/* @__PURE__ */ new Set,this.routeState=()=>({enabled:this.enabled,buildsDir:this.options.buildsDir})}get enabled(){return this.setup!==void 0}getStatus(){return this.status}async init(){await this.reload(!0),this.enabled?(await lF.default.emptyDir(this.options.buildsDir),await this.flush()):await lF.default.remove(this.options.buildsDir)}async onFileChange(e,t){if(this.closed)return;let n=e.split(vt.sep).join(`/`),r=vt.extname(n).toLowerCase(),i=xNe(n);if(t===`docsConfig`||i){await this.reload()?this.schedule(i):this.reportIslandProblems();return}if(!this.enabled)return;if(t===`mintIgnore`){await this.writeProps(),this.collectPending=!0,this.schedule(!0);return}if(t===`page`){await this.recollect(e=>e.updatePage(n)),this.schedule(!1);return}if(t===`snippet-v2`||t===`snippet`&&Agt.has(r)||Object.prototype.hasOwnProperty.call(this.collected?.snippetFiles??{},`/${n}`)){try{await this.recollect()}finally{this.schedule(!0)}return}this.reportIslandProblems();let a=`/${n.toLowerCase()}`;this.buildReads(a)?this.schedule(!0):this.changedWhileBuilding?.add(a)}buildReads(e){return this.buildFiles.has(e)?!0:this.buildFilesKnown||this.changedWhileBuilding?!1:this.builder?.isLocalInputPath(e)??!1}finishTracking(e,t){this.changedWhileBuilding=void 0,t&&(this.buildFiles=new Set(t.map(e=>e.toLowerCase()))),this.buildFilesKnown=t!==void 0,[...e].some(e=>this.buildReads(e))&&(this.rerun=!0)}writeProps(){let e=this.propsWrite.then(()=>this.writePropsNow());return this.propsWrite=e.catch(()=>{}),e}async writePropsNow(){let e=vt.join(this.options.propsPath,`package-build.json`);if(!this.setup||!this.collected){await lF.default.remove(e);return}let t=this.adopted?.buildId??`pending`,n=this.adopted?.manifest.islands??{},r=this.collected.islands.map(e=>e.id),i={};for(let e of[...r,...this.listedIds,...Object.keys(n)]){if(Object.prototype.hasOwnProperty.call(i,e))continue;let t=Object.prototype.hasOwnProperty.call(n,e)?n[e]?.html:void 0,r=Object.prototype.hasOwnProperty.call(n,e)?n[e]?.css:void 0;i[e]={prefix:iNe(e),...t!==void 0&&{html:t},...r!==void 0&&{css:r}}}for(let e of r)this.listedIds.add(e);let a=`${e}.${process.pid}.tmp`,o={buildId:t,islands:i,packageNames:[...this.setup.packageNames].sort(),packageSnippets:[...this.collected.packageSnippets].sort(),css:this.adopted?.manifest.css??[]};await lF.default.outputFile(a,JSON.stringify(o)),await Pgt(a,e)}close(){return this.closed=!0,clearTimeout(this.debounceTimer),this.stopPolling(),this.running??Promise.resolve()}async reload(e=!1){let t=this.setup,n=this.collected?.packageSnippets,r;try{r=await Dgt(this.options.docsRoot)}catch(e){if(!(e instanceof hJ))throw e;if(t){if(this.reportConfigError(e.problems,`Keeping the last package setup until docs.json is fixed.`),!(e instanceof gJ)||jgt(t.variables,e.variables))return!1;r={...t,variables:e.variables}}else e instanceof gJ&&this.reportConfigError(e.problems,`Packages stay off until docs.json is fixed.`)}if(t&&r?.packageJsonError){if(this.reportConfigError([r.packageJsonError],`Keeping the last package setup until package.json is fixed.`),jgt(t.variables,r.variables))return!1;r={...t,variables:r.variables}}if(this.setup=r,!r)return this.collected=void 0,this.collector=void 0,this.status={state:`disabled`},this.builtInputKey=void 0,this.buildingInputKey=void 0,this.stopPolling(),qht(void 0),await this.writeProps(),t&&await this.importOptionsChanged(),!0;let i=this.collector;this.collector=new xgt({docsRoot:this.options.docsRoot,packageNames:r.packageNames,variables:r.variables,provider:r.packages.provider}),i&&this.collector.inheritSnippetTrees(i),await this.recollect();let a=!t||!_J(t.packageNames,r.packageNames),o=!n||!_J(n,this.collected?.packageSnippets??/* @__PURE__ */ new Set);return!e&&(a||o)&&await this.importOptionsChanged(),!0}reportConfigError(e,t){e.forEach((n,r)=>this.options.reporter.configError(r===e.length-1?`${n}. ${t}`:n))}async importOptionsChanged(){await this.options.regenerateSnippets?.(),await this.invalidateCompiledPages()}async recollect(e=e=>e.collectAll()){let{setup:t,collector:n}=this;if(!t||!n)return;let r=await e(n);if(n!==this.collector)return;let i=this.collected?.packageSnippets;this.collected=r,qht({packageNames:t.packageNames,packageSnippets:r.packageSnippets}),i&&!_J(i,r.packageSnippets)&&await this.invalidateCompiledPages(),this.reportIslandProblems(),await this.writeProps()}reportIslandProblems(){this.options.reporter.islandErrors([...this.setup?.errors??[],...(this.collected?.errors??[]).map(ggt)])}inputKey(){return JSON.stringify({packages:this.setup?.packages,names:[...this.setup?.packageNames??[]].sort(),islands:(this.collected?.islands??[]).map(e=>e.id).sort(),snippets:this.collected?.snippetFiles})}schedule(e){this.enabled&&!this.closed&&(e||this.inputKey()!==(this.buildingInputKey??this.builtInputKey))&&(e&&(this.builtInputKey=void 0),this.status.state===`ready`&&(this.status={state:`building`}),clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>void this.flush(),this.options.debounceMs??300))}async flush(){return this.running?(this.rerun=!0,this.running):(this.running=(async()=>{do{this.rerun=!1;try{await this.runBuild()}catch(e){let t=e instanceof Error?e.message:String(e);this.status={state:`failed`,message:t},this.options.reporter.failed([t],[])}finally{this.buildingInputKey=void 0}}while(this.rerun&&!this.closed)})().finally(()=>{this.running=void 0}),this.running)}async runBuild(){this.collectPending&&(this.collectPending=!1,await this.recollect());let e=this.setup,t=this.collected;if(!e||!t||this.closed)return;let n=this.inputKey();this.builtInputKey=void 0,this.buildingInputKey=n;let r=Date.now(),i=this.nodeModulesStamp();this.status={state:`building`},this.options.reporter.building();let a=vt.join(this.options.buildsDir,`.tmp-${process.pid}-${++this.buildCount}`);this.builder??=await mgt();let o=this.options.build??this.builder.build,s=/* @__PURE__ */ new Set;this.changedWhileBuilding=s;let c;try{c=await o({docsRoot:this.options.docsRoot,packages:e.packages,islands:t.islands,snippetFiles:t.snippetFiles,outDir:a,installer:`local`})}catch(e){if(this.finishTracking(s),this.buildingInputKey!==n){await lF.default.remove(a);return}return this.fail(e,a,i)}if(this.finishTracking(s,[...c.localFiles,...c.missingLocalFiles]),this.buildingInputKey!==n){await lF.default.remove(a);return}let l=c.manifest.diagnostics,u=l.filter(e=>e.level===`error`),d=l.filter(e=>e.level===`warning`).map(hgt),f=Object.entries(c.manifest.islands).filter(([,e])=>Xt(vt.join(a,e.entry))),p=this.adopted,m=`${c.manifest.buildId}-${this.buildCount}`,h=vt.join(this.options.buildsDir,m);try{f.length>0||c.ok&&t.islands.length===0?(await lF.default.move(a,h),await this.pruneBuilds([m,p?.buildId]),this.adopted={buildId:m,manifest:c.manifest,dir:h}):await lF.default.remove(a),this.listedIds.clear(),await this.writeProps()}catch(e){return this.adopted=p,await lF.default.remove(h),this.fail(e,a,i)}let g=l.some(e=>e.code===`local-node-modules-drift`);if(!c.ok||g?this.watchForNodeModules(i):this.stopPolling(),u.some(e=>e.code===`install-missing-node-modules`))this.status={state:`missing-node-modules`},this.options.reporter.missingNodeModules(this.options.docsRoot);else if(c.ok)this.status={state:`ready`},this.options.reporter.built({buildId:c.manifest.buildId,islands:Object.keys(c.manifest.islands).length,ms:Date.now()-r,warnings:d});else{let e=u.map(hgt);this.status={state:`failed`,message:e[0]??`unknown error`},this.options.reporter.failed(e,d)}c.ok&&n===this.inputKey()&&(this.builtInputKey=n),this.options.onRebuilt()}async fail(e,t,n){this.listedIds.clear(),this.watchForNodeModules(n),await lF.default.remove(t);let r=e instanceof Error?e.message:String(e);this.status={state:`failed`,message:r},this.options.reporter.failed([r],[]),await this.writeProps(),this.options.onRebuilt()}async pruneBuilds(e){let t=await lF.default.readdir(this.options.buildsDir).catch(()=>[]);await Promise.all(t.filter(t=>!e.includes(t)&&!t.startsWith(`.tmp-`)).map(e=>lF.default.remove(vt.join(this.options.buildsDir,e))))}nodeModulesStamp(){let{docsRoot:e}=this.options,t=vt.join(e,`node_modules`),n=Ogt.map(e=>Mgt(vt.join(t,e))),r=kgt.some(t=>Xt(vt.join(e,t)))?n:[Mgt(t),...n];return r.every(e=>e===void 0)?void 0:r.join(`,`)}watchForNodeModules(e){if(this.pollTimer||this.closed)return;let t=e,n=!1;this.pollTimer=setInterval(()=>{let e=this.nodeModulesStamp();e===t?n&&(n=!1,this.schedule(!0)):(t=e,n=!0)},this.options.pollMs??2e3),this.pollTimer.unref?.()}stopPolling(){clearInterval(this.pollTimer),this.pollTimer=void 0}async invalidateCompiledPages(){let{propsPath:e,docsRoot:t}=this.options;for(let n of jP(e))Agt.has(vt.extname(n).toLowerCase())&&await lF.default.pathExists(vt.join(t,n))&&await lF.default.utimes(vt.join(e,n),0,0)}};const Igt=/^[A-Za-z0-9_-]{1,64}$/,Lgt=/^client\/islands\/([A-Za-z0-9_-]{1,64})\.js$/,Rgt=(e,t)=>{let n=vt.resolve(e,t);return n.startsWith(e+vt.sep)?n:void 0},zgt=e=>async(t,n,r)=>{let i=e();if(!i.enabled||t.method!==`GET`&&t.method!==`HEAD`){r();return}let[a,...o]=t.path.replace(/^\/+/,``).split(`/`),s=o.join(`/`),c=a&&Igt.test(a)?vt.join(i.buildsDir,a,`client`):``,l=s.startsWith(`client/`)?s.slice(7):``,u=c&&l?Rgt(c,l):void 0;n.setHeader(`X-Content-Type-Options`,`nosniff`),u&&await lF.default.stat(u).then(e=>e.isFile(),()=>!1)?n.sendFile(vt.relative(c,u),{root:c,dotfiles:`deny`,headers:{"Cache-Control":`no-cache`}}):Lgt.test(s)?n.status(200).type(`text/javascript`).setHeader(`Cache-Control`,`no-store`).send(`export function hydrate() {
1647
1647
  return { unmount() {} };
1648
1648
  }
@@ -1762,7 +1762,7 @@ let n=nyt(),r=(e,t,a)=>{if(n(e)===!1)throw TypeError(`toRegexRange: expected the
1762
1762
  * Licensed under the MIT License.
1763
1763
  */
1764
1764
  let r=t(`util`),i=ryt(),a=e=>typeof e==`object`&&!!e&&!Array.isArray(e),o=e=>t=>e===!0?Number(t):String(t),s=e=>typeof e==`number`||typeof e==`string`&&e!==``,c=e=>Number.isInteger(+e),l=e=>{let t=`${e}`,n=-1;if(t[0]===`-`&&(t=t.slice(1)),t===`0`)return!1;for(;t[++n]===`0`;);return n>0},u=(e,t,n)=>typeof e==`string`||typeof t==`string`||n.stringify===!0,d=(e,t,n)=>{if(t>0){let n=e[0]===`-`?`-`:``;n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,`0`)}return n===!1?String(e):e},f=(e,t)=>{let n=e[0]===`-`?`-`:``;for(n&&(e=e.slice(1),t--);e.length<t;)e=`0`+e;return n?`-`+e:e},p=(e,t,n)=>{e.negatives.sort((e,t)=>e<t?-1:+(e>t)),e.positives.sort((e,t)=>e<t?-1:+(e>t));let r=t.capture?``:`?:`,i=``,a=``,o;return e.positives.length&&(i=e.positives.map(e=>f(String(e),n)).join(`|`)),e.negatives.length&&(a=`-(${r}${e.negatives.map(e=>f(String(e),n)).join(`|`)})`),o=i&&a?`${i}|${a}`:i||a,t.wrap?`(${r}${o})`:o},m=(e,t,n,r)=>{if(n)return i(e,t,{wrap:!1,...r});let a=String.fromCharCode(e);return e===t?a:`[${a}-${String.fromCharCode(t)}]`},h=(e,t,n)=>{if(Array.isArray(e)){let t=n.wrap===!0,r=n.capture?``:`?:`;return t?`(${r}${e.join(`|`)})`:e.join(`|`)}return i(e,t,n)},g=(...e)=>/* @__PURE__ */ RangeError(`Invalid range arguments: `+r.inspect(...e)),_=(e,t,n)=>{if(n.strictRanges===!0)throw g([e,t]);return[]},v=(e,t)=>{if(t.strictRanges===!0)throw TypeError(`Expected step "${e}" to be a number`);return[]},y=(e,t,n=1,r={})=>{let i=Number(e),a=Number(t);if(!Number.isInteger(i)||!Number.isInteger(a)){if(r.strictRanges===!0)throw g([e,t]);return[]}i===0&&(i=0),a===0&&(a=0);let s=i>a,c=String(e),_=String(t),v=String(n);n=Math.max(Math.abs(n),1);let y=l(c)||l(_)||l(v),b=y?Math.max(c.length,_.length,v.length):0,x=y===!1&&u(e,t,r)===!1,S=r.transform||o(x);if(r.toRegex&&n===1)return m(f(e,b),f(t,b),!0,r);let C={negatives:[],positives:[]},w=e=>C[e<0?`negatives`:`positives`].push(Math.abs(e)),T=[],E=0;for(;s?i>=a:i<=a;)r.toRegex===!0&&n>1?w(i):T.push(d(S(i,E),b,x)),i=s?i-n:i+n,E++;return r.toRegex===!0?n>1?p(C,r,b):h(T,null,{wrap:!1,...r}):T},b=(e,t,n=1,r={})=>{if(!c(e)&&e.length>1||!c(t)&&t.length>1)return _(e,t,r);let i=r.transform||(e=>String.fromCharCode(e)),a=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),s=a>o,l=Math.min(a,o),u=Math.max(a,o);if(r.toRegex&&n===1)return m(l,u,!1,r);let d=[],f=0;for(;s?a>=o:a<=o;)d.push(i(a,f)),a=s?a-n:a+n,f++;return r.toRegex===!0?h(d,null,{wrap:!1,options:r}):d},x=(e,t,n,r={})=>{if(t==null&&s(e))return[e];if(!s(e)||!s(t))return _(e,t,r);if(typeof n==`function`)return x(e,t,1,{transform:n});if(a(n))return x(e,t,0,n);let i={...r};return i.capture===!0&&(i.wrap=!0),n=n||i.step||1,c(n)?c(e)&&c(t)?y(e,t,n,i):b(e,t,Math.max(Math.abs(n),1),i):n!=null&&!a(n)?v(n,i):x(e,t,1,n)};n.exports=x})),ayt=/* @__PURE__ */ a(((e,t)=>{let n=iyt(),r=aY();t.exports=(e,t={})=>{let i=(e,a={})=>{let o=r.isInvalidBrace(a),s=e.invalid===!0&&t.escapeInvalid===!0,c=o===!0||s===!0,l=t.escapeInvalid===!0?`\\`:``,u=``;if(e.isOpen===!0)return l+e.value;if(e.isClose===!0)return console.log(`node.isClose`,l,e.value),l+e.value;if(e.type===`open`)return c?l+e.value:`(`;if(e.type===`close`)return c?l+e.value:`)`;if(e.type===`comma`)return e.prev.type===`comma`?``:c?e.value:`|`;if(e.value)return e.value;if(e.nodes&&e.ranges>0){let i=r.reduce(e.nodes),a=n(...i,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(a.length!==0)return i.length>1&&a.length>1?`(${a})`:a}if(e.nodes)for(let t of e.nodes)u+=i(t,e);return u};return i(e)}})),oyt=/* @__PURE__ */ a(((e,t)=>{let n=iyt(),r=oY(),i=aY(),a=(e=``,t=``,n=!1)=>{let r=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return n?i.flatten(t).map(e=>`{${e}}`):t;for(let i of e)if(Array.isArray(i))for(let e of i)r.push(a(e,t,n));else for(let e of t)n===!0&&typeof e==`string`&&(e=`{${e}}`),r.push(Array.isArray(e)?a(i,e,n):i+e);return i.flatten(r)};t.exports=(e,t={})=>{let o=t.rangeLimit===void 0?1e3:t.rangeLimit,s=(e,c={})=>{e.queue=[];let l=c,u=c.queue;for(;l.type!==`brace`&&l.type!==`root`&&l.parent;)l=l.parent,u=l.queue;if(e.invalid||e.dollar){u.push(a(u.pop(),r(e,t)));return}if(e.type===`brace`&&e.invalid!==!0&&e.nodes.length===2){u.push(a(u.pop(),[`{}`]));return}if(e.nodes&&e.ranges>0){let s=i.reduce(e.nodes);if(i.exceedsLimit(...s,t.step,o))throw RangeError(`expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.`);let c=n(...s,t);c.length===0&&(c=r(e,t)),u.push(a(u.pop(),c)),e.nodes=[];return}let d=i.encloseBrace(e),f=e.queue,p=e;for(;p.type!==`brace`&&p.type!==`root`&&p.parent;)p=p.parent,f=p.queue;for(let t=0;t<e.nodes.length;t++){let n=e.nodes[t];n.type===`comma`&&e.type===`brace`?(t===1&&f.push(``),f.push(``)):n.type===`close`?u.push(a(u.pop(),f,d)):n.value&&n.type!==`open`?f.push(a(f.pop(),n.value)):n.nodes&&s(n,e)}return f};return i.flatten(s(e))}})),syt=/* @__PURE__ */ a(((e,t)=>{t.exports={MAX_LENGTH:1e4,CHAR_0:`0`,CHAR_9:`9`,CHAR_UPPERCASE_A:`A`,CHAR_LOWERCASE_A:`a`,CHAR_UPPERCASE_Z:`Z`,CHAR_LOWERCASE_Z:`z`,CHAR_LEFT_PARENTHESES:`(`,CHAR_RIGHT_PARENTHESES:`)`,CHAR_ASTERISK:`*`,CHAR_AMPERSAND:`&`,CHAR_AT:`@`,CHAR_BACKSLASH:`\\`,CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:`\r`,CHAR_CIRCUMFLEX_ACCENT:`^`,CHAR_COLON:`:`,CHAR_COMMA:`,`,CHAR_DOLLAR:`$`,CHAR_DOT:`.`,CHAR_DOUBLE_QUOTE:`"`,CHAR_EQUAL:`=`,CHAR_EXCLAMATION_MARK:`!`,CHAR_FORM_FEED:`\f`,CHAR_FORWARD_SLASH:`/`,CHAR_HASH:`#`,CHAR_HYPHEN_MINUS:`-`,CHAR_LEFT_ANGLE_BRACKET:`<`,CHAR_LEFT_CURLY_BRACE:`{`,CHAR_LEFT_SQUARE_BRACKET:`[`,CHAR_LINE_FEED:`
1765
- `,CHAR_NO_BREAK_SPACE:`\xA0`,CHAR_PERCENT:`%`,CHAR_PLUS:`+`,CHAR_QUESTION_MARK:`?`,CHAR_RIGHT_ANGLE_BRACKET:`>`,CHAR_RIGHT_CURLY_BRACE:`}`,CHAR_RIGHT_SQUARE_BRACKET:`]`,CHAR_SEMICOLON:`;`,CHAR_SINGLE_QUOTE:`'`,CHAR_SPACE:` `,CHAR_TAB:` `,CHAR_UNDERSCORE:`_`,CHAR_VERTICAL_LINE:`|`,CHAR_ZERO_WIDTH_NOBREAK_SPACE:``}})),cyt=/* @__PURE__ */ a(((e,t)=>{let n=oY(),{MAX_LENGTH:r,CHAR_BACKSLASH:i,CHAR_BACKTICK:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:p,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:h,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=syt();t.exports=(e,t={})=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);let v=t||{},y=typeof v.maxLength==`number`?Math.min(r,v.maxLength):r;if(e.length>y)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${y})`);let b={type:`root`,input:e,nodes:[]},x=[b],S=b,C=b,w=0,T=e.length,E=0,D=0,O,k=()=>e[E++],A=e=>{if(e.type===`text`&&C.type===`dot`&&(C.type=`text`),C&&C.type===`text`&&e.type===`text`)C.value+=e.value;else return S.nodes.push(e),e.parent=S,e.prev=C,C=e,e};for(A({type:`bos`});E<T;)if(S=x[x.length-1],O=k(),O!==_&&O!==g){if(O===i)A({type:`text`,value:(t.keepEscaping?O:``)+k()});else if(O===p)A({type:`text`,value:`\\`+O});else if(O===f){w++;let e;for(;E<T&&(e=k());)if(O+=e,e===f)w++;else if(e===i)O+=k();else if(e===p&&(w--,w===0))break;A({type:`text`,value:O})}else if(O===c)S=A({type:`paren`,nodes:[]}),x.push(S),A({type:`text`,value:O});else if(O===l){if(S.type!==`paren`){A({type:`text`,value:O});continue}S=x.pop(),A({type:`text`,value:O}),S=x[x.length-1]}else if(O===m||O===h||O===a){let e=O,n;for(t.keepQuotes!==!0&&(O=``);E<T&&(n=k());)if(n===i)O+=n+k();else{if(n===e){t.keepQuotes===!0&&(O+=n);break}O+=n}A({type:`text`,value:O})}else if(O===u)D++,S=A({type:`brace`,open:!0,close:!1,dollar:C.value&&C.value.slice(-1)===`$`||S.dollar===!0,depth:D,commas:0,ranges:0,nodes:[]}),x.push(S),A({type:`open`,value:O});else if(O===d){if(S.type!==`brace`){A({type:`text`,value:O});continue}S=x.pop(),S.close=!0,A({type:`close`,value:O}),D--,S=x[x.length-1]}else if(O===o&&D>0){if(S.ranges>0){S.ranges=0;let e=S.nodes.shift();S.nodes=[e,{type:`text`,value:n(S)}]}A({type:`comma`,value:O}),S.commas++}else if(O===s&&D>0&&S.commas===0){let e=S.nodes;if(D===0||e.length===0){A({type:`text`,value:O});continue}if(C.type===`dot`){if(S.range=[],C.value+=O,C.type=`range`,S.nodes.length!==3&&S.nodes.length!==5){S.invalid=!0,S.ranges=0,C.type=`text`;continue}S.ranges++,S.args=[];continue}if(C.type===`range`){e.pop();let t=e[e.length-1];t.value+=C.value+O,C=t,S.ranges--;continue}A({type:`dot`,value:O})}else A({type:`text`,value:O})}do if(S=x.pop(),S.type!==`root`){S.nodes.forEach(e=>{e.nodes||(e.type===`open`&&(e.isOpen=!0),e.type===`close`&&(e.isClose=!0),e.nodes||(e.type=`text`),e.invalid=!0)});let e=x[x.length-1],t=e.nodes.indexOf(S);e.nodes.splice(t,1,...S.nodes)}while(x.length>0);return A({type:`eos`}),b}})),lyt=/* @__PURE__ */ a(((e,t)=>{let n=oY(),r=ayt(),i=oyt(),a=cyt(),o=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let e=o.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(o.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};o.parse=(e,t={})=>a(e,t),o.stringify=(e,t={})=>n(typeof e==`string`?o.parse(e,t):e,t),o.compile=(e,t={})=>(typeof e==`string`&&(e=o.parse(e,t)),r(e,t)),o.expand=(e,t={})=>{typeof e==`string`&&(e=o.parse(e,t));let n=i(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n},o.create=(e,t={})=>e===``||e.length<3?[e]:t.expand===!0?o.expand(e,t):o.compile(e,t),t.exports=o})),uyt=/* @__PURE__ */ a(((e,t)=>{t.exports=/* @__PURE__ */ `3dm.3ds.3g2.3gp.7z.a.aac.adp.ai.aif.aiff.alz.ape.apk.appimage.ar.arj.asf.au.avi.bak.baml.bh.bin.bk.bmp.btif.bz2.bzip2.cab.caf.cgm.class.cmx.cpio.cr2.cur.dat.dcm.deb.dex.djvu.dll.dmg.dng.doc.docm.docx.dot.dotm.dra.DS_Store.dsk.dts.dtshd.dvb.dwg.dxf.ecelp4800.ecelp7470.ecelp9600.egg.eol.eot.epub.exe.f4v.fbs.fh.fla.flac.flatpak.fli.flv.fpx.fst.fvt.g3.gh.gif.graffle.gz.gzip.h261.h263.h264.icns.ico.ief.img.ipa.iso.jar.jpeg.jpg.jpgv.jpm.jxr.key.ktx.lha.lib.lvp.lz.lzh.lzma.lzo.m3u.m4a.m4v.mar.mdi.mht.mid.midi.mj2.mka.mkv.mmr.mng.mobi.mov.movie.mp3.mp4.mp4a.mpeg.mpg.mpga.mxu.nef.npx.numbers.nupkg.o.odp.ods.odt.oga.ogg.ogv.otf.ott.pages.pbm.pcx.pdb.pdf.pea.pgm.pic.png.pnm.pot.potm.potx.ppa.ppam.ppm.pps.ppsm.ppsx.ppt.pptm.pptx.psd.pya.pyc.pyo.pyv.qt.rar.ras.raw.resources.rgb.rip.rlc.rmf.rmvb.rpm.rtf.rz.s3m.s7z.scpt.sgi.shar.snap.sil.sketch.slk.smv.snk.so.stl.suo.sub.swf.tar.tbz.tbz2.tga.tgz.thmx.tif.tiff.tlz.ttc.ttf.txz.udf.uvh.uvi.uvm.uvp.uvs.uvu.viv.vob.war.wav.wax.wbmp.wdp.weba.webm.webp.whl.wim.wm.wma.wmv.wmx.woff.woff2.wrm.wvx.xbm.xif.xla.xlam.xls.xlsb.xlsm.xlsx.xlt.xltm.xltx.xm.xmind.xpi.xpm.xwd.xz.z.zip.zipx`.split(`.`)})),dyt=/* @__PURE__ */ a(((e,t)=>{t.exports=uyt()})),fyt=/* @__PURE__ */ a(((e,n)=>{let r=t(`path`),i=dyt(),a=new Set(i);n.exports=e=>a.has(r.extname(e).slice(1).toLowerCase())})),sY=/* @__PURE__ */ a((e=>{let{sep:n}=t(`path`),{platform:r}=process,i=t(`os`);e.EV_ALL=`all`,e.EV_READY=`ready`,e.EV_ADD=`add`,e.EV_CHANGE=`change`,e.EV_ADD_DIR=`addDir`,e.EV_UNLINK=`unlink`,e.EV_UNLINK_DIR=`unlinkDir`,e.EV_RAW=`raw`,e.EV_ERROR=`error`,e.STR_DATA=`data`,e.STR_END=`end`,e.STR_CLOSE=`close`,e.FSEVENT_CREATED=`created`,e.FSEVENT_MODIFIED=`modified`,e.FSEVENT_DELETED=`deleted`,e.FSEVENT_MOVED=`moved`,e.FSEVENT_CLONED=`cloned`,e.FSEVENT_UNKNOWN=`unknown`,e.FSEVENT_TYPE_FILE=`file`,e.FSEVENT_TYPE_DIRECTORY=`directory`,e.FSEVENT_TYPE_SYMLINK=`symlink`,e.KEY_LISTENERS=`listeners`,e.KEY_ERR=`errHandlers`,e.KEY_RAW=`rawEmitters`,e.HANDLER_KEYS=[e.KEY_LISTENERS,e.KEY_ERR,e.KEY_RAW],e.DOT_SLASH=`.${n}`,e.BACK_SLASH_RE=/\\/g,e.DOUBLE_SLASH_RE=/\/\//,e.SLASH_OR_BACK_SLASH_RE=/[/\\]/,e.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,e.REPLACER_RE=/^\.[/\\]/,e.SLASH=`/`,e.SLASH_SLASH=`//`,e.BRACE_START=`{`,e.BANG=`!`,e.ONE_DOT=`.`,e.TWO_DOTS=`..`,e.STAR=`*`,e.GLOBSTAR=`**`,e.ROOT_GLOBSTAR=`/**/*`,e.SLASH_GLOBSTAR=`/**`,e.DIR_SUFFIX=`Dir`,e.ANYMATCH_OPTS={dot:!0},e.STRING_TYPE=`string`,e.FUNCTION_TYPE=`function`,e.EMPTY_STR=``,e.EMPTY_FN=()=>{},e.IDENTITY_FN=e=>e,e.isWindows=r===`win32`,e.isMacos=r===`darwin`,e.isLinux=r===`linux`,e.isIBMi=i.type()===`OS400`})),pyt=/* @__PURE__ */ a(((e,n)=>{let r=t(`fs`),i=t(`path`),{promisify:a}=t(`util`),o=fyt(),{isWindows:s,isLinux:c,EMPTY_FN:l,EMPTY_STR:u,KEY_LISTENERS:d,KEY_ERR:f,KEY_RAW:p,HANDLER_KEYS:m,EV_CHANGE:h,EV_ADD:g,EV_ADD_DIR:_,EV_ERROR:v,STR_DATA:y,STR_END:b,BRACE_START:x,STAR:S}=sY(),C=a(r.open),w=a(r.stat),T=a(r.lstat),E=a(r.close),D=a(r.realpath),O={lstat:T,stat:w},k=(e,t)=>{e instanceof Set?e.forEach(t):t(e)},A=(e,t,n)=>{let r=e[t];r instanceof Set||(e[t]=r=/* @__PURE__ */ new Set([r])),r.add(n)},ee=e=>t=>{let n=e[t];n instanceof Set?n.clear():delete e[t]},te=(e,t,n)=>{let r=e[t];r instanceof Set?r.delete(n):r===n&&delete e[t]},ne=e=>e instanceof Set?e.size===0:!e,re=/* @__PURE__ */ new Map;function ie(e,t,n,a,o){let s=(t,r)=>{n(e),o(t,r,{watchedPath:e}),r&&e!==r&&ae(i.resolve(e,r),d,i.join(e,r))};try{return r.watch(e,t,s)}catch(e){a(e)}}let ae=(e,t,n,r,i)=>{let a=re.get(e);a&&k(a[t],e=>{e(n,r,i)})},oe=(e,t,n,r)=>{let{listener:i,errHandler:a,rawEmitter:o}=r,c=re.get(t),l;if(!n.persistent)return l=ie(e,n,i,a,o),l.close.bind(l);if(c)A(c,d,i),A(c,f,a),A(c,p,o);else{if(l=ie(e,n,ae.bind(null,t,d),a,ae.bind(null,t,p)),!l)return;l.on(v,async n=>{let r=ae.bind(null,t,f);if(c.watcherUnusable=!0,s&&n.code===`EPERM`)try{let t=await C(e,`r`);await E(t),r(n)}catch{}else r(n)}),c={listeners:i,errHandlers:a,rawEmitters:o,watcher:l},re.set(t,c)}return()=>{te(c,d,i),te(c,f,a),te(c,p,o),ne(c.listeners)&&(c.watcher.close(),re.delete(t),m.forEach(ee(c)),c.watcher=void 0,Object.freeze(c))}},j=/* @__PURE__ */ new Map,se=(e,t,n,i)=>{let{listener:a,rawEmitter:o}=i,s=j.get(t),c=s&&s.options;return c&&(c.persistent<n.persistent||c.interval>n.interval)&&(s.listeners,s.rawEmitters,r.unwatchFile(t),s=void 0),s?(A(s,d,a),A(s,p,o)):(s={listeners:a,rawEmitters:o,options:n,watcher:r.watchFile(t,n,(n,r)=>{k(s.rawEmitters,e=>{e(h,t,{curr:n,prev:r})});let i=n.mtimeMs;(n.size!==r.size||i>r.mtimeMs||i===0)&&k(s.listeners,t=>t(e,n))})},j.set(t,s)),()=>{te(s,d,a),te(s,p,o),ne(s.listeners)&&(j.delete(t),r.unwatchFile(t),s.options=s.watcher=void 0,Object.freeze(s))}};n.exports=class{constructor(e){this.fsw=e,this._boundHandleError=t=>e._handleError(t)}_watchWithNodeFs(e,t){let n=this.fsw.options,r=i.dirname(e),a=i.basename(e);this.fsw._getWatchedDir(r).add(a);let s=i.resolve(e),c={persistent:n.persistent};t||=l;let u;return n.usePolling?(c.interval=n.enableBinaryInterval&&o(a)?n.binaryInterval:n.interval,u=se(e,s,c,{listener:t,rawEmitter:this.fsw._emitRaw})):u=oe(e,s,c,{listener:t,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),u}_handleFile(e,t,n){if(this.fsw.closed)return;let r=i.dirname(e),a=i.basename(e),o=this.fsw._getWatchedDir(r),s=t;if(o.has(a))return;let l=async(t,n)=>{if(this.fsw._throttle(`watch`,e,5)){if(!n||n.mtimeMs===0)try{let n=await w(e);if(this.fsw.closed)return;let r=n.atimeMs,i=n.mtimeMs;(!r||r<=i||i!==s.mtimeMs)&&this.fsw._emit(h,e,n),c&&s.ino!==n.ino?(this.fsw._closeFile(t),s=n,this.fsw._addPathCloser(t,this._watchWithNodeFs(e,l))):s=n}catch{this.fsw._remove(r,a)}else if(o.has(a)){let t=n.atimeMs,r=n.mtimeMs;(!t||t<=r||r!==s.mtimeMs)&&this.fsw._emit(h,e,n),s=n}}},u=this._watchWithNodeFs(e,l);if(!(n&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(g,e,0))return;this.fsw._emit(g,e,t)}return u}async _handleSymlink(e,t,n,r){if(this.fsw.closed)return;let i=e.fullPath,a=this.fsw._getWatchedDir(t);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let t;try{t=await D(n)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(a.has(r)?this.fsw._symlinkPaths.get(i)!==t&&(this.fsw._symlinkPaths.set(i,t),this.fsw._emit(h,n,e.stats)):(a.add(r),this.fsw._symlinkPaths.set(i,t),this.fsw._emit(g,n,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(i))return!0;this.fsw._symlinkPaths.set(i,!0)}_handleRead(e,t,n,r,a,o,s){if(e=i.join(e,u),!n.hasGlob&&(s=this.fsw._throttle(`readdir`,e,1e3),!s))return;let c=this.fsw._getWatchedDir(n.path),l=/* @__PURE__ */ new Set,d=this.fsw._readdirp(e,{fileFilter:e=>n.filterPath(e),directoryFilter:e=>n.filterDir(e),depth:0}).on(y,async s=>{if(this.fsw.closed){d=void 0;return}let u=s.path,f=i.join(e,u);l.add(u),!(s.stats.isSymbolicLink()&&await this._handleSymlink(s,e,f,u))&&(this.fsw.closed?d=void 0:(u===r||!r&&!c.has(u))&&(this.fsw._incrReadyCount(),f=i.join(a,i.relative(a,f)),this._addToNodeFs(f,t,n,o+1)))}).on(v,this._boundHandleError);return new Promise(t=>d.once(b,()=>{if(this.fsw.closed){d=void 0;return}let u=s?s.clear():!1;t(),c.getChildren().filter(t=>t!==e&&!l.has(t)&&(!n.hasGlob||n.filterPath({fullPath:i.resolve(e,t)}))).forEach(t=>{this.fsw._remove(e,t)}),d=void 0,u&&this._handleRead(e,!1,n,r,a,o,s)}))}async _handleDir(e,t,n,r,a,o,s){let c=this.fsw._getWatchedDir(i.dirname(e)),l=c.has(i.basename(e));!(n&&this.fsw.options.ignoreInitial)&&!a&&!l&&(!o.hasGlob||o.globFilter(e))&&this.fsw._emit(_,e,t),c.add(i.basename(e)),this.fsw._getWatchedDir(e);let u,d,f=this.fsw.options.depth;if((f==null||r<=f)&&!this.fsw._symlinkPaths.has(s)){if(!a&&(await this._handleRead(e,n,o,a,e,r,u),this.fsw.closed))return;d=this._watchWithNodeFs(e,(t,n)=>{n&&n.mtimeMs===0||this._handleRead(t,!1,o,a,e,r,u)})}return d}async _addToNodeFs(e,t,n,r,a){let o=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return o(),!1;let s=this.fsw._getWatchHelpers(e,r);!s.hasGlob&&n&&(s.hasGlob=n.hasGlob,s.globFilter=n.globFilter,s.filterPath=e=>n.filterPath(e),s.filterDir=e=>n.filterDir(e));try{let n=await O[s.statMethod](s.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(s.watchPath,n))return o(),!1;let c=this.fsw.options.followSymlinks&&!e.includes(S)&&!e.includes(x),l;if(n.isDirectory()){let o=i.resolve(e),u=c?await D(e):e;if(this.fsw.closed||(l=await this._handleDir(s.watchPath,n,t,r,a,s,u),this.fsw.closed))return;o!==u&&u!==void 0&&this.fsw._symlinkPaths.set(o,u)}else if(n.isSymbolicLink()){let a=c?await D(e):e;if(this.fsw.closed)return;let o=i.dirname(s.watchPath);if(this.fsw._getWatchedDir(o).add(s.watchPath),this.fsw._emit(g,s.watchPath,n),l=await this._handleDir(o,n,t,r,e,s,a),this.fsw.closed)return;a!==void 0&&this.fsw._symlinkPaths.set(i.resolve(e),a)}else l=this._handleFile(s.watchPath,n,t);return o(),this.fsw._addPathCloser(e,l),!1}catch(t){if(this.fsw._handleError(t))return o(),e}}}})),myt=/* @__PURE__ */ a(((e,n)=>{let r=t(`fs`),i=t(`path`),{promisify:a}=t(`util`),o;try{o=t(`fsevents`)}catch(e){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(e)}if(o){let e=process.version.match(/v(\d+)\.(\d+)/);if(e&&e[1]&&e[2]){let t=Number.parseInt(e[1],10),n=Number.parseInt(e[2],10);t===8&&n<16&&(o=void 0)}}let{EV_ADD:s,EV_CHANGE:c,EV_ADD_DIR:l,EV_UNLINK:u,EV_ERROR:d,STR_DATA:f,STR_END:p,FSEVENT_CREATED:m,FSEVENT_MODIFIED:h,FSEVENT_DELETED:g,FSEVENT_MOVED:_,FSEVENT_UNKNOWN:v,FSEVENT_TYPE_FILE:y,FSEVENT_TYPE_DIRECTORY:b,FSEVENT_TYPE_SYMLINK:x,ROOT_GLOBSTAR:S,DIR_SUFFIX:C,DOT_SLASH:w,FUNCTION_TYPE:T,EMPTY_FN:E,IDENTITY_FN:D}=sY(),O=e=>isNaN(e)?{}:{depth:e},k=a(r.stat),A=a(r.lstat),ee=a(r.realpath),te={stat:k,lstat:A},ne=/* @__PURE__ */ new Map,re=/* @__PURE__ */ new Set([69888,70400,71424,72704,73472,131328,131840,262912]),ie=(e,t)=>({stop:o.watch(e,t)});function ae(e,t,n,r){let a=i.extname(t)?i.dirname(t):t,s=i.dirname(a),c=ne.get(a);oe(s)&&(a=s);let l=i.resolve(e),u=l!==t,d=(e,r,a)=>{u&&(e=e.replace(t,l)),(e===l||!e.indexOf(l+i.sep))&&n(e,r,a)},f=!1;for(let e of ne.keys())if(t.indexOf(i.resolve(e)+i.sep)===0){a=e,c=ne.get(a),f=!0;break}return c||f?c.listeners.add(d):(c={listeners:/* @__PURE__ */ new Set([d]),rawEmitter:r,watcher:ie(a,(e,t)=>{if(!c.listeners.size)return;let n=o.getInfo(e,t);c.listeners.forEach(r=>{r(e,t,n)}),c.rawEmitter(n.event,e,n)})},ne.set(a,c)),()=>{let e=c.listeners;if(e.delete(d),!e.size&&(ne.delete(a),c.watcher))return c.watcher.stop().then(()=>{c.rawEmitter=c.watcher=void 0,Object.freeze(c)})}}let oe=e=>{let t=0;for(let n of ne.keys())if(n.indexOf(e)===0&&(t++,t>=10))return!0;return!1},j=()=>o&&ne.size<128,se=(e,t)=>{let n=0;for(;!e.indexOf(t)&&(e=i.dirname(e))!==t;)n++;return n},ce=(e,t)=>e.type===b&&t.isDirectory()||e.type===x&&t.isSymbolicLink()||e.type===y&&t.isFile();n.exports=class{constructor(e){this.fsw=e}checkIgnored(e,t){let n=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,t))return n.add(e),t&&t.isDirectory()&&n.add(e+S),!0;n.delete(e),n.delete(e+S)}addOrChange(e,t,n,r,i,a,o,l){let u=i.has(a)?c:s;this.handleEvent(u,e,t,n,r,i,a,o,l)}async checkExists(e,t,n,r,i,a,o,s){try{let c=await k(e);if(this.fsw.closed)return;ce(o,c)?this.addOrChange(e,t,n,r,i,a,o,s):this.handleEvent(u,e,t,n,r,i,a,o,s)}catch(c){c.code===`EACCES`?this.addOrChange(e,t,n,r,i,a,o,s):this.handleEvent(u,e,t,n,r,i,a,o,s)}}handleEvent(e,t,n,r,i,a,o,c,d){if(!(this.fsw.closed||this.checkIgnored(t))){if(e===u){let e=c.type===b;(e||a.has(o))&&this.fsw._remove(i,o,e)}else{if(e===s){if(c.type===b&&this.fsw._getWatchedDir(t),c.type===x&&d.followSymlinks){let e=d.depth===void 0?void 0:se(n,r)+1;return this._addToFsEvents(t,!1,!0,e)}this.fsw._getWatchedDir(i).add(o)}let a=c.type===b?e+C:e;this.fsw._emit(a,t),a===l&&this._addToFsEvents(t,!1,!0)}}}_watchWithFsEvents(e,t,n,r){if(this.fsw.closed||this.fsw._isIgnored(e))return;let a=this.fsw.options,o=ae(e,t,async(o,s,c)=>{if(this.fsw.closed||a.depth!==void 0&&se(o,t)>a.depth)return;let l=n(i.join(e,i.relative(e,o)));if(r&&!r(l))return;let d=i.dirname(l),f=i.basename(l),p=this.fsw._getWatchedDir(c.type===b?l:d);if(re.has(s)||c.event===v){if(typeof a.ignored===T){let e;try{e=await k(l)}catch{}if(this.fsw.closed||this.checkIgnored(l,e))return;ce(c,e)?this.addOrChange(l,o,t,d,p,f,c,a):this.handleEvent(u,l,o,t,d,p,f,c,a)}else this.checkExists(l,o,t,d,p,f,c,a)}else switch(c.event){case m:case h:return this.addOrChange(l,o,t,d,p,f,c,a);case g:case _:return this.checkExists(l,o,t,d,p,f,c,a)}},this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(e,t,n,r){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(t))){this.fsw._symlinkPaths.set(t,!0),this.fsw._incrReadyCount();try{let t=await ee(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(t))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(t||e,r=>{let a=e;return t&&t!==w?a=r.replace(t,e):r!==w&&(a=i.join(e,r)),n(a)},!1,r)}catch(e){if(this.fsw._handleError(e))return this.fsw._emitReady()}}}emitAdd(e,t,n,r,a){let o=n(e),c=t.isDirectory(),u=this.fsw._getWatchedDir(i.dirname(o)),d=i.basename(o);c&&this.fsw._getWatchedDir(o),!u.has(d)&&(u.add(d),(!r.ignoreInitial||a===!0)&&this.fsw._emit(c?l:s,o,t))}initWatch(e,t,n,r){if(this.fsw.closed)return;let a=this._watchWithFsEvents(n.watchPath,i.resolve(e||n.watchPath),r,n.globFilter);this.fsw._addPathCloser(t,a)}async _addToFsEvents(e,t,n,r){if(this.fsw.closed)return;let a=this.fsw.options,o=typeof t===T?t:D,s=this.fsw._getWatchHelpers(e);try{let t=await te[s.statMethod](s.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(s.watchPath,t))throw null;if(t.isDirectory()){if(s.globFilter||this.emitAdd(o(e),t,o,a,n),r&&r>a.depth)return;this.fsw._readdirp(s.watchPath,{fileFilter:e=>s.filterPath(e),directoryFilter:e=>s.filterDir(e),...O(a.depth-(r||0))}).on(f,e=>{if(this.fsw.closed||e.stats.isDirectory()&&!s.filterPath(e))return;let t=i.join(s.watchPath,e.path),{fullPath:r}=e;if(s.followSymlinks&&e.stats.isSymbolicLink()){let e=a.depth===void 0?void 0:se(t,i.resolve(s.watchPath))+1;this._handleFsEventsSymlink(t,r,o,e)}else this.emitAdd(t,e.stats,o,a,n)}).on(d,E).on(p,()=>{this.fsw._emitReady()})}else this.emitAdd(s.watchPath,t,o,a,n),this.fsw._emitReady()}catch(e){(!e||this.fsw._handleError(e))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(a.persistent&&n!==!0){if(typeof t===T)this.initWatch(void 0,e,s,o);else{let t;try{t=await ee(s.watchPath)}catch{}this.initWatch(t,e,s,o)}}}},n.exports.canUse=j})),hyt=/* @__PURE__ */ r((/* @__PURE__ */ a((e=>{let{EventEmitter:n}=t(`events`),r=t(`fs`),i=t(`path`),{promisify:a}=t(`util`),o=Kvt(),s=Qvt().default,c=tyt(),l=eyt(),u=lyt(),d=Zvt(),f=pyt(),p=myt(),{EV_ALL:m,EV_READY:h,EV_ADD:g,EV_CHANGE:_,EV_UNLINK:v,EV_ADD_DIR:y,EV_UNLINK_DIR:b,EV_RAW:x,EV_ERROR:S,STR_CLOSE:C,STR_END:w,BACK_SLASH_RE:T,DOUBLE_SLASH_RE:E,SLASH_OR_BACK_SLASH_RE:D,DOT_RE:O,REPLACER_RE:k,SLASH:A,SLASH_SLASH:ee,BRACE_START:te,BANG:ne,ONE_DOT:re,TWO_DOTS:ie,GLOBSTAR:ae,SLASH_GLOBSTAR:oe,ANYMATCH_OPTS:j,STRING_TYPE:se,FUNCTION_TYPE:ce,EMPTY_STR:le,EMPTY_FN:M,isWindows:N,isMacos:ue,isIBMi:de}=sY(),fe=a(r.stat),pe=a(r.readdir),me=(e=[])=>Array.isArray(e)?e:[e],he=(e,t=[])=>(e.forEach(e=>{Array.isArray(e)?he(e,t):t.push(e)}),t),ge=e=>{let t=he(me(e));if(!t.every(e=>typeof e===se))throw TypeError(`Non-string provided as watch path: ${t}`);return t.map(ve)},_e=e=>{let t=e.replace(T,A),n=!1;for(t.startsWith(ee)&&(n=!0);t.match(E);)t=t.replace(E,A);return n&&(t=A+t),t},ve=e=>_e(i.normalize(_e(e))),ye=(e=le)=>t=>typeof t===se?ve(i.isAbsolute(t)?t:i.join(e,t)):t,be=(e,t)=>i.isAbsolute(e)?e:e.startsWith(ne)?ne+i.join(t,e.slice(1)):i.join(t,e),xe=(e,t)=>e[t]===void 0;var Se=class{constructor(e,t){this.path=e,this._removeWatcher=t,this.items=/* @__PURE__ */ new Set}add(e){let{items:t}=this;t&&e!==re&&e!==ie&&t.add(e)}async remove(e){let{items:t}=this;if(!t||(t.delete(e),t.size>0))return;let n=this.path;try{await pe(n)}catch{this._removeWatcher&&this._removeWatcher(i.dirname(n),i.basename(n))}}has(e){let{items:t}=this;if(t)return t.has(e)}getChildren(){let{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},Ce=class{constructor(e,t,n,r){this.fsw=r,this.path=e=e.replace(k,le),this.watchPath=t,this.fullWatchPath=i.resolve(t),this.hasGlob=t!==e,e===le&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&n?void 0:!1,this.globFilter=this.hasGlob?s(e,void 0,j):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(e=>{e.length>1&&e.pop()}),this.followSymlinks=n,this.statMethod=n?`stat`:`lstat`}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir!==this.fullWatchPath&&{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return i.join(this.watchPath,i.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){let{stats:t}=e;if(t&&t.isSymbolicLink())return this.filterDir(e);let n=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===ce?this.globFilter(n):!0)&&this.fsw._isntIgnored(n,t)&&this.fsw._hasReadPermissions(t)}getDirParts(e){if(!this.hasGlob)return[];let t=[];return(e.includes(te)?u.expand(e):[e]).forEach(e=>{t.push(i.relative(this.watchPath,e).split(D))}),t}filterDir(e){if(this.hasGlob){let t=this.getDirParts(this.checkGlobSymlink(e)),n=!1;this.unmatchedGlob=!this.dirParts.some(e=>e.every((e,r)=>(e===ae&&(n=!0),n||!t[0][r]||s(e,t[0][r],j))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}},P=class extends n{constructor(e){super();let t={};e&&Object.assign(t,e),this._watched=/* @__PURE__ */ new Map,this._closers=/* @__PURE__ */ new Map,this._ignoredPaths=/* @__PURE__ */ new Set,this._throttled=/* @__PURE__ */ new Map,this._symlinkPaths=/* @__PURE__ */ new Map,this._streams=/* @__PURE__ */ new Set,this.closed=!1,xe(t,`persistent`)&&(t.persistent=!0),xe(t,`ignoreInitial`)&&(t.ignoreInitial=!1),xe(t,`ignorePermissionErrors`)&&(t.ignorePermissionErrors=!1),xe(t,`interval`)&&(t.interval=100),xe(t,`binaryInterval`)&&(t.binaryInterval=300),xe(t,`disableGlobbing`)&&(t.disableGlobbing=!1),t.enableBinaryInterval=t.binaryInterval!==t.interval,xe(t,`useFsEvents`)&&(t.useFsEvents=!t.usePolling),p.canUse()||(t.useFsEvents=!1),xe(t,`usePolling`)&&!t.useFsEvents&&(t.usePolling=ue),de&&(t.usePolling=!0);let n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){let e=n.toLowerCase();t.usePolling=e===`false`||e===`0`?!1:e===`true`||e===`1`||!!e}let r=process.env.CHOKIDAR_INTERVAL;r&&(t.interval=Number.parseInt(r,10)),xe(t,`atomic`)&&(t.atomic=!t.usePolling&&!t.useFsEvents),t.atomic&&(this._pendingUnlinks=/* @__PURE__ */ new Map),xe(t,`followSymlinks`)&&(t.followSymlinks=!0),xe(t,`awaitWriteFinish`)&&(t.awaitWriteFinish=!1),t.awaitWriteFinish===!0&&(t.awaitWriteFinish={});let i=t.awaitWriteFinish;i&&(i.stabilityThreshold||=2e3,i.pollInterval||=100,this._pendingWrites=/* @__PURE__ */ new Map),t.ignored&&=me(t.ignored);let a=0;this._emitReady=()=>{a++,a>=this._readyCount&&(this._emitReady=M,this._readyEmitted=!0,process.nextTick(()=>this.emit(h)))},this._emitRaw=(...e)=>this.emit(x,...e),this._readyEmitted=!1,this.options=t,t.useFsEvents?this._fsEventsHandler=new p(this):this._nodeFsHandler=new f(this),Object.freeze(t)}add(e,t,n){let{cwd:r,disableGlobbing:a}=this.options;this.closed=!1;let o=ge(e);return r&&(o=o.map(e=>{let t=be(e,r);return a||!l(e)?t:d(t)})),o=o.filter(e=>e.startsWith(ne)?(this._ignoredPaths.add(e.slice(1)),!1):(this._ignoredPaths.delete(e),this._ignoredPaths.delete(e+oe),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||=o.length,this.options.persistent&&(this._readyCount*=2),o.forEach(e=>this._fsEventsHandler._addToFsEvents(e))):(this._readyCount||=0,this._readyCount+=o.length,Promise.all(o.map(async e=>{let r=await this._nodeFsHandler._addToNodeFs(e,!n,0,0,t);return r&&this._emitReady(),r})).then(e=>{this.closed||e.filter(e=>e).forEach(e=>{this.add(i.dirname(e),i.basename(t||e))})})),this}unwatch(e){if(this.closed)return this;let t=ge(e),{cwd:n}=this.options;return t.forEach(e=>{!i.isAbsolute(e)&&!this._closers.has(e)&&(n&&(e=i.join(n,e)),e=i.resolve(e)),this._closePath(e),this._ignoredPaths.add(e),this._watched.has(e)&&this._ignoredPaths.add(e+oe),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(t=>t.forEach(t=>{let n=t();n instanceof Promise&&e.push(n)})),this._streams.forEach(e=>e.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(e=>e.dispose()),[`closers`,`watched`,`streams`,`symlinkPaths`,`throttled`].forEach(e=>{this[`_${e}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>void 0):Promise.resolve(),this._closePromise}getWatched(){let e={};return this._watched.forEach((t,n)=>{let r=this.options.cwd?i.relative(this.options.cwd,n):n;e[r||re]=t.getChildren().sort()}),e}emitWithAll(e,t){this.emit(...t),e!==S&&this.emit(m,...t)}async _emit(e,t,n,r,a){if(this.closed)return;let o=this.options;N&&(t=i.normalize(t)),o.cwd&&(t=i.relative(o.cwd,t));let s=[e,t];a===void 0?r===void 0?n!==void 0&&s.push(n):s.push(n,r):s.push(n,r,a);let c=o.awaitWriteFinish,l;if(c&&(l=this._pendingWrites.get(t)))return l.lastChange=/* @__PURE__ */ new Date,this;if(o.atomic){if(e===v)return this._pendingUnlinks.set(t,s),setTimeout(()=>{this._pendingUnlinks.forEach((e,t)=>{this.emit(...e),this.emit(m,...e),this._pendingUnlinks.delete(t)})},typeof o.atomic==`number`?o.atomic:100),this;e===g&&this._pendingUnlinks.has(t)&&(e=s[0]=_,this._pendingUnlinks.delete(t))}if(c&&(e===g||e===_)&&this._readyEmitted)return this._awaitWriteFinish(t,c.stabilityThreshold,e,(t,n)=>{t?(e=s[0]=S,s[1]=t,this.emitWithAll(e,s)):n&&(s.length>2?s[2]=n:s.push(n),this.emitWithAll(e,s))}),this;if(e===_&&!this._throttle(_,t,50))return this;if(o.alwaysStat&&n===void 0&&(e===g||e===y||e===_)){let e=o.cwd?i.join(o.cwd,t):t,n;try{n=await fe(e)}catch{}if(!n||this.closed)return;s.push(n)}return this.emitWithAll(e,s),this}_handleError(e){let t=e&&e.code;return e&&t!==`ENOENT`&&t!==`ENOTDIR`&&(!this.options.ignorePermissionErrors||t!==`EPERM`&&t!==`EACCES`)&&this.emit(S,e),e||this.closed}_throttle(e,t,n){this._throttled.has(e)||this._throttled.set(e,/* @__PURE__ */ new Map);let r=this._throttled.get(e),i=r.get(t);if(i)return i.count++,!1;let a,o=()=>{let e=r.get(t),n=e?e.count:0;return r.delete(t),clearTimeout(a),e&&clearTimeout(e.timeoutObject),n};a=setTimeout(o,n);let s={timeoutObject:a,clear:o,count:0};return r.set(t,s),s}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,t,n,a){let o,s=e;this.options.cwd&&!i.isAbsolute(e)&&(s=i.join(this.options.cwd,e));let c=/* @__PURE__ */ new Date,l=n=>{r.stat(s,(r,i)=>{if(r||!this._pendingWrites.has(e)){r&&r.code!==`ENOENT`&&a(r);return}let s=Number(/* @__PURE__ */ new Date);n&&i.size!==n.size&&(this._pendingWrites.get(e).lastChange=s),s-this._pendingWrites.get(e).lastChange>=t?(this._pendingWrites.delete(e),a(void 0,i)):o=setTimeout(l,this.options.awaitWriteFinish.pollInterval,i)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:c,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(o),n)}),o=setTimeout(l,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,t){if(this.options.atomic&&O.test(e))return!0;if(!this._userIgnored){let{cwd:e}=this.options,t=this.options.ignored,n=t&&t.map(ye(e)),r=me(n).filter(e=>typeof e===se&&!l(e)).map(e=>e+oe),i=this._getGlobIgnored().map(ye(e)).concat(n,r);this._userIgnored=s(i,void 0,j)}return this._userIgnored([e,t])}_isntIgnored(e,t){return!this._isIgnored(e,t)}_getWatchHelpers(e,t){let n=t||this.options.disableGlobbing||!l(e)?e:c(e),r=this.options.followSymlinks;return new Ce(e,n,r,this)}_getWatchedDir(e){this._boundRemove||=this._remove.bind(this);let t=i.resolve(e);return this._watched.has(t)||this._watched.set(t,new Se(t,this._boundRemove)),this._watched.get(t)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;let t=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(t.toString(8)[0],10))}_remove(e,t,n){let r=i.join(e,t),a=i.resolve(r);if(n??=this._watched.has(r)||this._watched.has(a),!this._throttle(`remove`,r,100))return;!n&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,t,!0),this._getWatchedDir(r).getChildren().forEach(e=>this._remove(r,e));let o=this._getWatchedDir(e),s=o.has(t);o.remove(t),this._symlinkPaths.has(a)&&this._symlinkPaths.delete(a);let c=r;if(this.options.cwd&&(c=i.relative(this.options.cwd,r)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===g)return;this._watched.delete(r),this._watched.delete(a);let l=n?b:v;s&&!this._isIgnored(r)&&this._emit(l,r),this.options.useFsEvents||this._closePath(r)}_closePath(e){this._closeFile(e);let t=i.dirname(e);this._getWatchedDir(t).remove(i.basename(e))}_closeFile(e){let t=this._closers.get(e);t&&(t.forEach(e=>e()),this._closers.delete(e))}_addPathCloser(e,t){if(!t)return;let n=this._closers.get(e);n||(n=[],this._closers.set(e,n)),n.push(t)}_readdirp(e,t){if(this.closed)return;let n={type:m,alwaysStat:!0,lstat:!0,...t},r=o(e,n);return this._streams.add(r),r.once(C,()=>{r=void 0}),r.once(w,()=>{r&&=(this._streams.delete(r),void 0)}),r}};e.watch=(e,t)=>{let n=new P(t);return n.add(e),n}})))(),1);const cY={},lY=/* @__PURE__ */ new Set,gyt=/* @__PURE__ */ new Set([`root`,`pages`,`groups`,...Ss]),_yt=e=>typeof e==`object`&&!!e&&`href`in e&&typeof e.href==`string`&&`title`in e&&typeof e.title==`string`,vyt=e=>{for(let e of lY)delete cY[e];lY.clear();let t=e=>{if(Array.isArray(e))e.forEach(t);else if(typeof e==`object`&&e){if(_yt(e)){let t=kh(Oh(e.href));cY[t]=e,lY.add(t)}else for(let[n,r]of Object.entries(e))gyt.has(n)&&t(r)}};t(e)},yyt=e=>{let t=e.startsWith(`/`)?e.slice(1):e;return t.endsWith(`.mdx`)||t.endsWith(`.md`)?[t]:[`${t}.mdx`,`${t}.md`]},byt=()=>{for(let e of Object.keys(cY))delete cY[e];lY.clear()},uY=(e,t)=>{cY[e]=t,lY.delete(e)},xyt=e=>{delete cY[e],lY.delete(e)},Syt=e=>{xyt(e.replace(/\.mdx?$/,``))},Cyt=(e,t)=>{let{slug:n,pageMetadata:r}=sk(e,t,[],[]);return uY(n,r),r.openapi!=null||r.asyncapi!=null},wyt=async e=>{let t=fk(e.navigation);for(let e of t){let t=kh(Oh(e));if(lY.has(t))continue;let n=cY[t];if(n){if(n.openapi!=null||n.asyncapi!=null)return!0}else for(let t of yyt(e)){let e=vt.join(ai,t);if(!await lF.default.pathExists(e))continue;let n=(await lF.default.readFile(e)).toString();if(Cyt(t,n))return!0;break}}return!1},Tyt=e=>YP(cY,e.navigation),Eyt=async e=>{let t=Ct(Yr,e);if(await lF.default.pathExists(t))return{baseDir:Yr,path:t};let n=Ct(ai,e);return await lF.default.pathExists(n)?{baseDir:ai,path:n}:null},Dyt=async({filename:e,variables:t,snippetsByFilename:n})=>{let r=Dh(e);if(n.has(r))return;let i=await Eyt(Oh(r));if(i==null)return;let a=EO((await lF.default.readFile(i.path)).toString(),t),o=await mB(a,i.baseDir,i.path,$q),s=await QT(o),c={filename:r,...s};n.set(r,c),await Promise.all(Object.keys(s.importMap).map(async e=>{let i=GT(e,r);i!=null&&await Dyt({filename:i,variables:t,snippetsByFilename:n})}))},Oyt=async e=>{let t={};for(let n of e.values())t[n.filename]=Object.keys(n.importMap).map(e=>GT(e,n.filename)).filter(t=>t!=null&&e.has(t));let n=EE(t).reverse(),r=[];for(let t of n){let n=e.get(t);if(n==null)continue;let i=$T(n)?await TE({snippets:r,fileWithImports:n,...Yq()}):n.tree;r.push({filename:n.filename,tree:i})}return r},dY=async e=>{let t=await tJ(),n=/* @__PURE__ */ new Map;await Promise.all(Object.keys(e.importMap).map(async r=>{let i=GT(r,e.filename);i!=null&&await Dyt({filename:i,variables:t,snippetsByFilename:n})}));let r=await Oyt(n);return await TE({snippets:r,fileWithImports:e,...Yq()})},fY=async e=>await dY(e),{readFile:kyt}=Zt;let Ayt=()=>{};const jyt=new Promise(e=>{Ayt=e}),Myt=()=>{Ayt()};let pY;const Nyt=e=>{pY=e},mY=e=>`/${e.replace(/\.mdx?$/,``)}`,Pyt=async(e,t)=>{let n=mY(e);pY?.({path:n,active:!0});let r=!1;try{r=await t()}finally{pY?.({path:n,active:!1,error:r||void 0})}},hY=/* @__PURE__ */ new Map,Fyt=[`_next/`,`_mintlify/`,`socket.io/`,`favicon`],Iyt=e=>{try{return decodeURIComponent(e)}catch{return e}},Lyt=/\.md$/,Ryt=/\/?rss\.xml$/,zyt=e=>{if(e.startsWith(`_mintlify/og/`)&&e.endsWith(`.png`))return e.slice(13,-4)},Byt=e=>{let t=Iyt(e).replace(/^\/+/,``).replace(/\/+$/,``);if(t.startsWith(`_markdown/`)&&(t=t.slice(10)),t=t.replace(Lyt,``).replace(Ryt,``),t=zyt(t)??t,t===``)return`index`;if(!(t.includes(`\0`)||t.includes(`\\`)||t.split(`/`).some(e=>e===`..`))&&!Fyt.some(e=>t.startsWith(e)))return t},Vyt=e=>[`${e}.mdx`,`${e}.md`,`${e}/index.mdx`,`${e}/index.md`],gY=/* @__PURE__ */ new Map,Hyt=()=>Array.from(gY.keys()).map(e=>({path:mY(e),active:!1,error:!0})),Uyt=e=>{gY.delete(e)&&pY?.({path:mY(e),active:!1})},Wyt=e=>{gY.set(e,0),pY?.({path:mY(e),active:!1,error:!0})},Gyt=async(e,t,n,r)=>{let i=FH(`compile ${e}`),a=!1,o=()=>{a=!0};try{let s=(await kyt(t)).toString(),c=await mB(s,ai,t,o),l=await QT(c);$T(l)&&(s=IT(await fY({...l,filename:e})));let{pageContent:u,pageMetadata:d,slug:f}=await XB(e,s,ai,[],[],o);return await lF.default.outputFile(n,u,{flag:`w`}),uY(f,d),a?(gY.set(e,r),i(`failed`),!0):(gY.delete(e),i(),!1)}catch(t){return gY.set(e,r),$q(`Failed to compile ${e}: ${t instanceof Error?t.message:String(t)}`),i(`failed`),!0}},Kyt=async(e,t={})=>{let n=Byt(e);if(n!==void 0)for(let e of Vyt(n)){let n=vt.join(ai,e);if(!await lF.default.pathExists(n)||TP(e,Zq()))continue;let r=await lF.default.stat(n),i=vt.join(Xr,e),a=await lF.default.stat(i).catch(()=>void 0);if(gY.get(e)===r.mtimeMs){t.silent||pY?.({path:mY(e),active:!1,error:!0});return}if(a!==void 0&&a.mtimeMs>=r.mtimeMs)return;if(await jyt,XO(e,{importedFiles:cJ()})!==`page`)continue;let o=hY.get(e)??Gyt(e,n,i,r.mtimeMs).finally(()=>{hY.delete(e)});if(hY.set(e,o),t.silent){await o;return}return Pyt(e,()=>o)}};let _Y,vY,yY,bY=!1;const xY=e=>JSON.stringify(e??{}),qyt=e=>xY(e),Jyt=e=>xY(e.api),Yyt=e=>xY(e.navigation),Xyt=e=>{_Y=qyt(e.variables),vY=Jyt(e),yY=Yyt(e),bY=e.api!=null||SY(e.navigation)},Zyt=()=>bY,SY=e=>typeof e!=`object`||!e?!1:Object.prototype.hasOwnProperty.call(e,`openapi`)||Object.prototype.hasOwnProperty.call(e,`asyncapi`)||Object.prototype.hasOwnProperty.call(e,`graphql`)?!0:Object.values(e).some(SY),Qyt=e=>vY==null||vY!==e,$yt=e=>yY==null||yY!==e,ebt=e=>_Y==null||_Y!==e,tbt=()=>{_Y=void 0,vY=void 0,yY=void 0,bY=!1},{readFile:nbt}=Zt,rbt=e=>{let t=/* @__PURE__ */ new Set([Dh(e)]),n=cJ(),r=lgt(e);for(let e of r){let r=XO(e,{importedFiles:n});(r===`snippet`||r===`snippet-v2`)&&t.add(e)}return t},ibt=async(e,t)=>{try{let n=Oh(e),r=Ct(ai,n),i=EO((await nbt(r)).toString(),t),a=await mB(i,ai,r,$q),o=await QT(a);return{filename:Dh(e),...o}}catch(t){return console.warn(`Failed to parse snippet ${e}:`,t),null}},abt=async(e,t)=>{let n=Dh(e),r=rbt(e),i=await tJ(),a=Array.from(r).map(async e=>e===n?{...t,filename:n}:await ibt(e,i)),o=(await Promise.all(a)).filter(e=>e!=null),s={};o.forEach(e=>{s[e.filename]=Object.keys(e.importMap).map(t=>GT(t,e.filename)).filter(e=>e!=null)});let c=EE(s).reverse(),l=new Map(o.map(e=>[e.filename,e])),u=c.map(e=>l.get(e)).filter(e=>e!=null),d=[];for(let e of u){let t=e.tree;$T(e)&&(t=await dY(e));let n=Oh(e.filename),r=Ct(Yr,n);await lF.default.outputFile(r,IT(t),{flag:`w`}),d.push(n)}return d},{readFile:obt}=Zt,sbt=e=>{let t=cJ(),n=/* @__PURE__ */ new Set;for(let r of e)for(let e of cgt(Dh(r)))XO(e,{importedFiles:t})===`page`&&n.add(Oh(e));return n},CY=async e=>{let t=sbt(e),n=t.values(),r=async()=>{for(let e of n){let t=Ct(ai,e),n=(await obt(t)).toString();try{let r=await mB(n,ai,t,$q),i=await QT(r),a=await fY({...i,filename:e}),o=Ct(Xr,e);await(0,lF.outputFile)(o,IT(a),{flag:`w`})}catch(t){console.log(`Error generating pages with imports`),console.log(e),console.log(t)}}},i=Math.min(8,t.size);await Promise.all(Array.from({length:i},r))},wY=async(e,{contentDirectory:t=ai,clientDirectory:n=Gr}={})=>{let r=await fF(t),i=Ct(t,`docs.json`),a=await rnt(await lF.default.pathExists(i)?i:Ct(t,`mint.json`)),{openApiFiles:o,asyncApiFiles:s,invalidSpecFiles:c,overlayRegistry:l}=await gF(t,r,void 0,void 0,{explicitOverlays:a}),u,d,f;try{f=await yF.getConfig(Ct(t,`mint.json`),!1,t,e)}catch{let n=Ct(t,`docs.json`);if(!await lF.default.pathExists(n))throw Error(`No config found`);d=await bF.getConfig(n,!1,t,e,{allowSourceRefs:!0})}if(f&&(d=lf(f),u=(await ret(f,o,n,void 0,c)).mintConfig),!d)throw Error(`No config found`);let p=await oB(d,e=>sB(e,t)),{newDocsConfig:m,pagesAcc:h}=p,{newDocsConfig:g,pagesAcc:_,openApiFiles:v,flushWrites:y}=await Q9e(m,o,n,void 0,c,h,!0,l),{flushWrites:b}=await g9e(g,s,n,void 0,h,!1,!0);return await Promise.all([y(),b()]),await U9e(p,n),xXe(c),{mintConfig:u,pagesAcc:{..._,...h},openApiFiles:v,docsConfig:g}},cbt=(e,t)=>{if(t)return t.isDirectory();try{return tn(e).isDirectory()}catch{return!1}},lbt=(e,t)=>{let n=DP(t);return(t,r)=>{let i=vt.isAbsolute(t)?vt.relative(e,t):t;if(!i)return!1;let a=vt.isAbsolute(t)?t:vt.join(e,t);return EP(i,n,cbt(a,r))}};let TY=/* @__PURE__ */ new Set,EY=/* @__PURE__ */ new Set;const DY=e=>vt.normalize(bh(e)),OY=e=>{if(Array.isArray(e))return e.flatMap(OY);if(typeof e!=`object`||!e)return[];let t=e,n=t.graphql,r=typeof n==`string`?n:typeof n==`object`&&n&&`source`in n?n.source:void 0;return[...typeof r==`string`&&!V9e(r)?[DY(r)]:[],...Object.values(t).flatMap(OY)]},kY=async()=>{try{let e=await dF(ai,`docs`)??await dF(ai,`mint`);if(!e){TY=/* @__PURE__ */ new Set,EY=/* @__PURE__ */ new Set;return}let t=await yn(e,`utf-8`),{referencedFiles:n,resolved:r}=await cF(JSON.parse(t),ai),i=OY(r);TY=/* @__PURE__ */ new Set([...n.map(DY),...i]),EY=new Set(i)}catch{TY=/* @__PURE__ */ new Set,EY=/* @__PURE__ */ new Set}},ubt=e=>TY.has(DY(e)),dbt=(e,t=EY)=>t.has(DY(e)),{readFile:fbt}=Zt,pbt=async({contentDirectoryPath:e,contentFilenames:t,openApiFiles:n,asyncApiFiles:r,pagesAcc:i={}})=>{let a=t.values(),o=async()=>{for(let t of a){let a=Ct(e,t),o=(await fbt(a)).toString(),{slug:s,pageMetadata:c}=await XB(t,o,e,n,r,$q);i[s]=c}},s=Math.min(8,t.length);return await Promise.all(Array.from({length:s},o)),i},mbt=async(e,t)=>{let n=await fF(ai),{contentFilenames:r,openApiFiles:i,asyncApiFiles:a}=await gF(ai,n,void 0,void 0,{explicitOverlays:df(t)}),o=await pbt({contentDirectoryPath:ai,contentFilenames:r,openApiFiles:i,asyncApiFiles:a,pagesAcc:e});return YP(o,t.navigation)},hbt=async e=>{let t=Ct(Xr,`generatedDocsNav.json`);await lF.default.outputFile(t,JSON.stringify(e,null,2),{flag:`w`})},AY=async(e,t)=>{let{pagesAcc:n,docsConfig:r}=t??await wY(e),i=await mbt(n,r);return await hbt(i),r},gbt=async(e,t,n={})=>{if(n.reuseGeneratedMetadata)try{let e=await Xq(Ct(Xr,`generatedDocsNav.json`));vyt(e)}catch(e){e instanceof Error&&`code`in e&&e.code===`ENOENT`||console.warn(`Failed to reuse generated navigation metadata: ${e instanceof Error?e.message:String(e)}`)}return await wyt(e)?await AY(t):(await hbt(Tyt(e)),e)},jY=async(e,t)=>{if(e==null){let{openApiFiles:n}=await wY(t);e=n}let n=Ct(Xr,`openApiFiles.json`);await lF.default.outputFile(n,JSON.stringify(e,null,2),{flag:`w`})},_bt=async e=>{let t=Ct(Xr,`openApiFiles.json`),n=[];try{n=await Xq(t)}catch{}let r=n.findIndex(t=>t.originalFileLocation===e.originalFileLocation);r>=0?n[r]=e:n.push(e),await lF.default.outputFile(t,JSON.stringify(n,null,2),{flag:`w`})},MY=async(e,t)=>{e??=(await wY(t)).docsConfig;let n=await tet({config:e,contentDirectoryPath:ai}),r=Ct(Xr,`customLanguages.json`);await lF.default.outputFile(r,JSON.stringify(n,null,2),{flag:`w`})},{readFile:NY}=Zt,PY=/* @__PURE__ */ new Map;let FY;const vbt=async()=>{if(FY==null){let e=/* @__PURE__ */ new Set;try{let t=await fF(ai),n=await YB(ai,t);for(let t of n)e.add(t.location)}catch{}FY=e}return FY},ybt=async()=>{let e=vt.join(Xr,`docs.json`);try{return await Xq(e)}catch{}let t=vt.join(ai,`docs.json`);return await bF.getConfig(t,!1,ai,eJ,{allowSourceRefs:!0})},bbt=async e=>{let t=vt.join(Xr,`docs.json`);try{let n=await Xq(t);await bF.writeConfigFile({...e,navigation:n.navigation},Gr);return}catch{}await bF.writeConfigFile(e,Gr)},xbt=async()=>{let e=vt.join(ai,`docs.json`);if(await lF.default.pathExists(e))try{return await bF.getConfig(e,!1,ai,eJ,{allowSourceRefs:!0})}catch{return}},IY=e=>e.api?.openapi!=null||e.api?.asyncapi!=null||SY(e.navigation),Sbt=e=>Number((process.hrtime.bigint()-e)/1000000n),Cbt=e=>`${(e/1e3).toFixed(2)}s`,wbt=e=>process.env.DEV_TIMING===`true`||e>=1e3,Tbt=(e,t,n)=>{if(!wbt(n))return;let r=t??`uncategorized`;AH((0,R.jsx)(gH,{message:`processed ${e} in ${Cbt(n)} (${r})`}))};let LY,RY,zY=Promise.resolve();const BY=/* @__PURE__ */ new Map,VY=/* @__PURE__ */ new Map;let HY,UY,WY=!1,GY,KY=!1,Ebt=()=>{},qY={};const JY=()=>{KY=!0},Dbt=e=>/\.mdx?$/i.test(e),Obt=e=>Pt(`sha1`).update(e).digest(`hex`),kbt=async e=>{if(Dbt(e))try{return Obt((await NY(vt.join(ai,e))).toString())}catch{return}},Abt=(e,t)=>{switch(e){case`add`:return Fbt(t,JY,qY);case`change`:return Ibt(t,JY,qY);case`unlink`:return Lbt(t,JY,qY)}},jbt=async()=>{let e=GY;if(GY=void 0,e)try{await Ubt(e)}catch(e){console.error(e.message)}},Mbt=async()=>{WY=!0;try{for(;BY.size>0||GY;){for(let[e,t]of BY){BY.delete(e),UY=e;try{await Abt(t,e)}catch(e){console.error(e.message)}finally{UY=void 0}}await jbt()}}finally{WY=!1,HY=void 0,KY&&(KY=!1,Ebt())}},YY=(e,t)=>{let n=BY.get(t);return BY.delete(t),BY.set(t,n===`add`&&e===`change`?`add`:e),HY??=new Promise(e=>{setTimeout(()=>void Mbt().finally(e),100)}),HY},XY=e=>(qY=e,zY=zY.catch(()=>void 0).then(async()=>{let e=RY;RY=void 0,e&&await e.close();let t=lbt(ai,Zq());RY=hyt.watch(ai,{ignoreInitial:!0,ignored:t,cwd:ai}).on(`add`,e=>YY(`add`,e)).on(`change`,e=>YY(`change`,e)).on(`unlink`,e=>YY(`unlink`,e))}),zY),Nbt=(e,t={},n)=>{LY=n,Ebt=e;let r={...t,allowSourceRefs:!0};XY(r)},Pbt=async(e,t,n,r)=>{if(LY&&await LY,TP(e,Zq()))return;let i=await kbt(e);if(i===void 0||VY.get(e)!==i)try{let a=process.hrtime.bigint(),o=await Hbt(e,t,n);i!==void 0&&VY.set(e,i),Tbt(e,o,Sbt(a)),o!==void 0&&r(e)}catch(t){VY.delete(e),console.error(t.message)}},Fbt=(e,t,n)=>Pbt(e,t,n,e=>AH((0,R.jsx)(Lat,{filename:e}))),Ibt=(e,t,n)=>Pbt(e,t,n,e=>AH((0,R.jsx)(Rat,{filename:e}))),Lbt=async(e,t,n)=>{if(LY&&await LY,!TP(e,Zq()))try{let r=cJ(),i=XO(e,{importedFiles:r});if(await bJ(e,i),PY.delete(e),VY.delete(e),Syt(e),i===`page`&&Uyt(e),dbt(e)){await Vbt(t,n),AH((0,R.jsx)(xH,{filename:e}));return}if(ubt(e)){try{let{mintConfig:e,openApiFiles:t,docsConfig:n}=await wY($q);await kY(),e&&await yF.writeConfigFile(e,Gr),await bF.writeConfigFile(n,Gr),await jY(t,eJ),await MY(n,eJ),await AY(eJ)}catch(e){PH().length===0&&console.error(e)}let n=await uJ();await CY(new Set(n));let r=sJ(e);await lJ(r),t(),AH((0,R.jsx)(xH,{filename:e}));return}if(i==null){let t=sJ(e);await lJ(t);return}switch((i===`page`||i===`snippet`||i===`mintConfig`||i===`docsConfig`||i===`staticFile`||i===`snippet-v2`||i===`css`||i===`js`||i===`generatedStaticFile`||i===`skillFile`)&&await lF.default.remove(Rbt(i,e)),i){case`mintConfig`:console.error(`mint.json has been deleted.`),await zbt();break;case`docsConfig`:console.error(`docs.json has been deleted.`),await zbt();break;case`potentialYamlOpenApiSpec`:case`potentialJsonOpenApiSpec`:FY?.delete(ym(ok(e)));try{let{mintConfig:e,openApiFiles:n,docsConfig:r}=await wY($q);e&&await yF.writeConfigFile(e,Gr),await bF.writeConfigFile(r,Gr),await jY(n,eJ),await AY(eJ),t()}catch(e){PH().length===0&&console.error(e)}break;case`mintIgnore`:AH((0,R.jsx)(yH,{message:`.mintignore has been deleted. Rebuilding...`}));try{await lF.default.emptyDir(Yr),await lF.default.emptyDir(Xr);let e=await ZB(ai,n);await Ggt(),await oJ(ai,e?.fileImportsMap),await ZY(),await kY(),await XY(n)}catch(e){console.error(`Error rebuilding after .mintignore deletion:`,e)}}let a=sJ(e);await lJ(a),AH((0,R.jsx)(xH,{filename:e}))}catch(e){console.error(e.message)}},Rbt=(e,t)=>{switch(e){case`page`:return vt.join(Xr,t);case`mintConfig`:return vt.join(Xr,`mint.json`);case`docsConfig`:return vt.join(Xr,`docs.json`);case`potentialYamlOpenApiSpec`:case`potentialJsonOpenApiSpec`:return vt.join(Xr,`openApiFiles.json`);case`generatedStaticFile`:return vt.join(Yr,t);case`mintIgnore`:return vt.join(Xr,`mint-ignore.json`);case`snippet`:case`staticFile`:case`snippet-v2`:case`css`:case`js`:return vt.join(Yr,t);case`skillFile`:return vt.join(Yr,t);default:throw Error(`Invalid category`)}},zbt=async()=>{try{let e=vt.join(ai,`mint.json`),t=vt.join(ai,`docs.json`),n=await lF.default.pathExists(e),r=await lF.default.pathExists(t);!n&&!r&&(console.error(`⚠️ Error: Neither mint.json nor docs.json found in the directory`),process.exit(1))}catch(e){console.error(`⚠️ Error validating configuration files:`,e)}},ZY=async()=>{PY.clear(),VY.clear(),byt();let e=cJ(),t=jP(ai,ai,Zq()).filter(t=>XO(t,{importedFiles:e})===`page`);await Promise.all(t.map(async e=>{try{let t=vt.join(ai,e),n=(await NY(t)).toString();$ht(e,n,PY,eJ),VY.set(e,Obt(n)),Cyt(e,n)}catch{}}));for(let e of[...BY.keys(),UY])e&&(VY.delete(e),PY.delete(e))},Bbt=async()=>{tbt();let e=vt.join(ai,`docs.json`);try{if(await lF.default.pathExists(e)){let t=await bF.getConfig(e,!1,ai,eJ,{allowSourceRefs:!0});Xyt(t);return}}catch{}},Vbt=async(e,t)=>{let n=await ZB(ai,t);await oJ(ai,n?.fileImportsMap),await ZY(),await Bbt(),await kY(),e()},Hbt=async(e,t,n={})=>{Gat();let r=vt.join(ai,e);if(dbt(e))return await bJ(e,XO(e,{importedFiles:cJ()})),await Vbt(t,n),null;let i=await sgt(ai,e);await lJ(i);let a=cJ(),o=XO(e,{importedFiles:a});if(await bJ(e,o),xNe(e))return null;if(ubt(e)){if(await lF.default.pathExists(vt.join(ai,`docs.json`)))return Hbt(`docs.json`,t,n);try{let{mintConfig:e,openApiFiles:t,docsConfig:n,pagesAcc:r}=await wY($q);await kY(),e&&await yF.writeConfigFile(e,Gr),await bF.writeConfigFile(n,Gr),await jY(t,eJ),await MY(n,eJ),await AY(eJ,{pagesAcc:r,docsConfig:n})}catch(e){PH().length===0&&console.error(e)}let e=await uJ();return await CY(new Set(e)),t(),null}if(o==null){t();return}let s=!1,c=!1,l=o===`potentialYamlOpenApiSpec`||o===`potentialJsonOpenApiSpec`?`staticFile`:o,u=Rbt(o,e);switch(o){case`page`:{let t=(await NY(r)).toString();c=await Qht(e,t,PY,$q);let n=!1,i=()=>{n=!0},a=e=>{n=!0,$q(e)};try{let n=await mB(t,ai,r,i),o=await QT(n);$T(o)&&(t=IT(await fY({...o,filename:e})));let{pageContent:s,pageMetadata:c,slug:l}=await XB(e,t,ai,[],[],a);await lF.default.outputFile(u,s,{flag:`w`}),uY(l,c)}catch(t){throw Wyt(e),t}n?Wyt(e):Uyt(e);break}case`snippet`:await lF.default.copy(r,u);break;case`snippet-v2`:{let t=await tJ(),n=EO((await NY(r)).toString(),t),i=await mB(n,ai,r,$q),a=await QT(i);$T(a)&&(n=IT(await dY({...a,filename:e}))),await lF.default.outputFile(u,n,{flag:`w`});let o=await abt(e,a);await CY(new Set(o));break}case`mintConfig`:case`docsConfig`:{let{valid:t,error:n}=Zht(r);if(!t){jH((0,R.jsx)(bH,{message:`Syntax error in ${e}: ${n}`}));return}if(o===`docsConfig`){try{let e=await bF.getConfig(r,!1,ai,$q,{allowSourceRefs:!0}),t=Jyt(e),n=Qyt(t),i=Yyt(e),a=$yt(i),o=qyt(e.variables),s=ebt(o),c=a&&!n&&!IY(e)&&!Zyt(),l=n||a&&(IY(e)||Zyt());if(await kY(),c){await MY(e,eJ),await jbt();let t=await gbt(e,eJ,{reuseGeneratedMetadata:!0});await bF.writeConfigFile(t,Gr)}else if(l){let e=await wY($q);await bF.writeConfigFile(e.docsConfig,Gr),await jY(e.openApiFiles,eJ),await MY(e.docsConfig,eJ),await AY(eJ,{pagesAcc:e.pagesAcc,docsConfig:e.docsConfig})}else await MY(e,eJ),await bbt(e);if(s){let e=await uJ();await CY(new Set(e))}Xyt(e)}catch(e){if(PH().length>0)return;console.error(e)}break}s=!0;try{await kY();let{mintConfig:e,openApiFiles:t,docsConfig:n}=await wY($q);e&&await yF.writeConfigFile(e,Gr),await bF.writeConfigFile(n,Gr),await jY(t,eJ),await MY(n,eJ)}catch(e){if(PH().length>0)return;console.error(e)}break}case`mintIgnore`:try{AH((0,R.jsx)(gH,{message:`.mintignore has been updated. Rebuilding...`})),await lF.default.emptyDir(Yr),await lF.default.emptyDir(Xr);let e=await ZB(ai,n);await Ggt(),await oJ(ai,e?.fileImportsMap),await ZY(),await kY(),await XY(n)}catch(e){console.error(e.message)}break;case`potentialYamlOpenApiSpec`:case`potentialJsonOpenApiSpec`:{let t;try{t=ne.load(await vn.readFile(r,`utf-8`))}catch{t=void 0}let n=await vbt(),i=ym(ok(e));if(pf(t)){n.add(i),await jY(),s=!0,l=`openApi`;break}if(n.has(i)){n.delete(i),await jY(),s=!0,l=`openApi`;break}let a=typeof t==`object`&&!!t&&`openapi`in t,o;try{let{schema:e}=await vh(t);o=e}catch{o=void 0}if(o||a)o&&await _bt({filename:vt.parse(e).name,originalFileLocation:`/`+e,spec:o}),await jY(),s=!0,l=`openApi`;else{let e=JSON.parse(await vn.readFile(vt.join(Xr,`customLanguages.json`),`utf-8`)),t=!1;for(let[n,i]of e.entries())if(r.endsWith(i.filePath)){t=!0,e[n]={content:await vn.readFile(r,`utf-8`),filePath:i.filePath};break}t&&await vn.writeFile(vt.join(Xr,`customLanguages.json`),JSON.stringify(e,null,2))}break}case`skillFile`:case`css`:case`js`:case`generatedStaticFile`:case`staticFile`:await Xht(r,20)?await lF.default.copy(r,u):console.error(eY.red(`🚨 The file at ${e} is too big. The maximum file size is 20 mb.`))}let d=c?`pageMetadataCache`:s?`full`:void 0;return d&&WY?GY=GY===`full`?`full`:d:d&&await Ubt(d),t(),l},Ubt=async e=>{if(e===`pageMetadataCache`){let e=await xbt()??await ybt();if(IY(e)){let e=await AY(eJ);await bF.writeConfigFile(e,Gr)}else await gbt(e,eJ)}else{let e=await AY(eJ);await bF.writeConfigFile(e,Gr)}},Wbt=()=>{let e=gt.networkInterfaces();for(let t of Object.keys(e))for(let n of e[t]||[])if(n.family===`IPv4`&&!n.internal)return n.address},Gbt=/* @__PURE__ */ new Set([`connection`,`keep-alive`,`proxy-authenticate`,`proxy-authorization`,`te`,`trailer`,`transfer-encoding`,`upgrade`,`content-encoding`,`content-length`]);function Kbt(e,t){let n=e.headers,r=typeof n.getSetCookie==`function`,i=r?n.getSetCookie():void 0;if(n.forEach((e,n)=>{let i=n.toLowerCase();Gbt.has(i)||i===`set-cookie`&&r||t.setHeader(n,e)}),i?.length)for(let e of i)t.appendHeader(`Set-Cookie`,e)}const qbt=async e=>{let t=e.port||`3000`,n=parseInt(t,10)||3e3,r=(0,zq.default)(),i=cn(r),a=new yvt(i);process.env.LOCAL_OG_PREVIEW=`true`;let o=e.apiUrl??process.env.MINTLIFY_API_URL??`http://localhost:5000`,s=e.accessToken,c=e.subdomain;process.env.MINTLIFY_CLI_ACCESS_TOKEN=s??``,process.env.MINTLIFY_API_URL=o,c&&(process.env.MINTLIFY_CLI_SUBDOMAIN=c);let l=await IH(`setup client handler`,()=>Qr===`vite`?Tht():aht()),u=Wbt();r.use(Kgt.prefix,Kgt.handler),r.use(`/`,zq.static(Yr,{redirect:!1})),r.use((e,t,n)=>{if(e.method!==`GET`&&e.method!==`HEAD`){n();return}let r=e.headers[`next-router-prefetch`]!==void 0||e.headers.purpose===`prefetch`||e.headers[`sec-purpose`]===`prefetch`;Kyt(e.path,{silent:r}).then(()=>n(),()=>n())}),r.post(`/_mintlify/api-public/search/:subdomain`,zq.json(),async(e,t)=>{let n=c??e.params.subdomain;try{let r=await fetch(`${o}/api/cli/${n}/search`,{method:`POST`,headers:{"Content-Type":`application/json`,...s?{Authorization:`Bearer ${s}`}:{}},body:JSON.stringify(e.body)}),i=await r.json();t.status(r.status).json(i)}catch{t.status(502).json({error:`search proxy failed`})}});let d=e=>async(t,n)=>{let r=c??t.params.subdomain;try{let i=await fetch(`${o}/api/cli/${r}/assistant/${e}`,{method:`POST`,headers:{"Content-Type":`application/json`,...s?{Authorization:`Bearer ${s}`}:{}},body:JSON.stringify(t.body)});if(n.status(i.status),Kbt(i,n),i.body){let e=i.body.getReader(),t=async()=>{let{done:r,value:i}=await e.read();if(r)n.end();else return n.write(i),t()};await t()}else n.end()}catch{n.headersSent?n.destroy():n.status(502).json({error:`assistant proxy failed`})}};for(let e of[`message`,`v2/message`])r.post(`/_mintlify/api-public/assistant/:subdomain/${e}`,zq.json({limit:`5mb`}),d(e));r.all(`*`,(e,t)=>l(e,t));let f=()=>{a.emit(`reload`)};Hgt(f),Nyt(e=>{a.emit(`compiling`,e)}),a.on(`connection`,e=>{for(let t of Hyt())e.emit(`compiling`,t)});let p=FH(`server ready`),m=e.host===!0;i.listen(n,m?void 0:`localhost`,()=>{p(),Yat(),e.needsUpdate&&OH((0,R.jsx)(Fat,{updateCommand:`${e.packageName} update`})),s||OH((0,R.jsx)(Iat,{loginCommand:`${e.packageName} login`})),OH((0,R.jsx)(Pat,{localUrl:`http://localhost:${t}`,networkUrl:m&&u?`http://${u}:${t}`:void 0})),gdt(),e.open&&(0,vvt.default)(`http://localhost:${t}`);let n=()=>{process.exit(0)};process.on(`SIGINT`,n),process.on(`SIGTERM`,n)});let h=()=>{},g=new Promise(e=>{h=e});$at(`watching for file changes`),Nbt(f,{localSchema:e[`local-schema`],groups:e.groups,disableOpenApi:e.disableOpenapi,disablePrefetch:e.disablePrefetch,allowSourceRefs:!0,lazyPages:!0,nativePackages:!0},g),await IH(`initialize import cache`,()=>oJ(ai,e.fileImportsMap)),Myt(),await IH(`initialize frontmatter cache`,()=>ZY()),await IH(`initialize docs config cache`,()=>Bbt()),await IH(`refresh referenced files`,()=>kY()),h()},Jbt=[`favicons/`,`.mint-content-source`],Ybt=()=>{let e;try{e=jP(Yr)}catch{return}for(let t of e)Jbt.some(e=>t.startsWith(e))||(KT(vt.extname(t))||!lF.default.existsSync(vt.join(ai,t)))&&lF.default.removeSync(vt.join(Yr,t))},Xbt=async e=>{let t=await IH(`check internet`,()=>RH()),n=e[`local-schema`],r=e[`client-version`],i=e[`local-client-version`],a=e.packageName,o=e.groups,s=e.cliVersion,c=e.disableOpenapi,l=e.disablePrefetch;await IH(`ensure preview directory`,()=>lF.default.ensureDir(Br)),!i&&!r&&Qr===`next`&&LH(`seed preview from shared workspace`,()=>vdt());let u=await IH(`read local client version`,async()=>await(0,lF.pathExists)(Ur)?lF.default.readFileSync(Ur,`utf8`):null);!u&&!i&&!t&&(MH(),OH((0,R.jsx)(bH,{message:`running ${a} dev after updating requires an internet connection.`})),await new Promise(e=>setTimeout(e,50)),process.exit(1)),OH((0,R.jsx)(vH,{message:`preparing local preview...`}));let{needsUpdate:d,error:f}=await IH(`update local client`,()=>KK({versionString:u,clientVersion:r,localClientVersion:i,cliVersion:s}));f&&(MH(),OH((0,R.jsx)(bH,{message:f})),await new Promise(e=>setTimeout(e,50)),process.exit(1)),await IH(`ensure docs.json`,()=>Kht()),LH(`clear prebuild output`,()=>{lF.default.emptyDirSync(Xr);let e=vt.join(Yr,`.mint-content-source`),t;try{t=lF.default.readFileSync(e,`utf8`)}catch{}t===ai?Ybt():(lF.default.emptyDirSync(Yr),lF.default.outputFileSync(e,ai))}),await IH(`switch to local client directory`,async()=>{await lF.default.ensureDir(Gr),process.chdir(Gr)});let p;try{p=(await IH(`prebuild content`,()=>ZB(ai,{localSchema:n,groups:o,disableOpenApi:c,disablePrefetch:l,allowSourceRefs:!0,lazyPages:!0,nativePackages:!0})))?.fileImportsMap}catch(e){MH();let t=e instanceof Error&&e.message?e.message:`prebuild step failed`;OH((0,R.jsx)(bH,{message:t})),await new Promise(e=>setTimeout(e,50)),process.exit(1)}await IH(`build npm packages`,()=>Wgt()),await IH(`start preview runtime`,()=>qbt({...e,needsUpdate:d,fileImportsMap:p}))},Zbt=async e=>{let t=Number(e.port??3e3);ei(t,e.classic===!0?`next`:`vite`);let n=Ygt(t);try{await Xbt(e)}catch(e){throw n(),e}},Qbt={right:rxt,center:ixt};var $bt=class{constructor(e){this.width=e.width,this.wrap=e.wrap??!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(``),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]==`string`)return this.applyLayoutDSL(e[0]);let t=e.map(e=>typeof e==`string`?this.colFromString(e):e);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]==`string`&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
1765
+ `,CHAR_NO_BREAK_SPACE:`\xA0`,CHAR_PERCENT:`%`,CHAR_PLUS:`+`,CHAR_QUESTION_MARK:`?`,CHAR_RIGHT_ANGLE_BRACKET:`>`,CHAR_RIGHT_CURLY_BRACE:`}`,CHAR_RIGHT_SQUARE_BRACKET:`]`,CHAR_SEMICOLON:`;`,CHAR_SINGLE_QUOTE:`'`,CHAR_SPACE:` `,CHAR_TAB:` `,CHAR_UNDERSCORE:`_`,CHAR_VERTICAL_LINE:`|`,CHAR_ZERO_WIDTH_NOBREAK_SPACE:``}})),cyt=/* @__PURE__ */ a(((e,t)=>{let n=oY(),{MAX_LENGTH:r,CHAR_BACKSLASH:i,CHAR_BACKTICK:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:p,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:h,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=syt();t.exports=(e,t={})=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);let v=t||{},y=typeof v.maxLength==`number`?Math.min(r,v.maxLength):r;if(e.length>y)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${y})`);let b={type:`root`,input:e,nodes:[]},x=[b],S=b,C=b,w=0,T=e.length,E=0,D=0,O,k=()=>e[E++],A=e=>{if(e.type===`text`&&C.type===`dot`&&(C.type=`text`),C&&C.type===`text`&&e.type===`text`)C.value+=e.value;else return S.nodes.push(e),e.parent=S,e.prev=C,C=e,e};for(A({type:`bos`});E<T;)if(S=x[x.length-1],O=k(),O!==_&&O!==g){if(O===i)A({type:`text`,value:(t.keepEscaping?O:``)+k()});else if(O===p)A({type:`text`,value:`\\`+O});else if(O===f){w++;let e;for(;E<T&&(e=k());)if(O+=e,e===f)w++;else if(e===i)O+=k();else if(e===p&&(w--,w===0))break;A({type:`text`,value:O})}else if(O===c)S=A({type:`paren`,nodes:[]}),x.push(S),A({type:`text`,value:O});else if(O===l){if(S.type!==`paren`){A({type:`text`,value:O});continue}S=x.pop(),A({type:`text`,value:O}),S=x[x.length-1]}else if(O===m||O===h||O===a){let e=O,n;for(t.keepQuotes!==!0&&(O=``);E<T&&(n=k());)if(n===i)O+=n+k();else{if(n===e){t.keepQuotes===!0&&(O+=n);break}O+=n}A({type:`text`,value:O})}else if(O===u)D++,S=A({type:`brace`,open:!0,close:!1,dollar:C.value&&C.value.slice(-1)===`$`||S.dollar===!0,depth:D,commas:0,ranges:0,nodes:[]}),x.push(S),A({type:`open`,value:O});else if(O===d){if(S.type!==`brace`){A({type:`text`,value:O});continue}S=x.pop(),S.close=!0,A({type:`close`,value:O}),D--,S=x[x.length-1]}else if(O===o&&D>0){if(S.ranges>0){S.ranges=0;let e=S.nodes.shift();S.nodes=[e,{type:`text`,value:n(S)}]}A({type:`comma`,value:O}),S.commas++}else if(O===s&&D>0&&S.commas===0){let e=S.nodes;if(D===0||e.length===0){A({type:`text`,value:O});continue}if(C.type===`dot`){if(S.range=[],C.value+=O,C.type=`range`,S.nodes.length!==3&&S.nodes.length!==5){S.invalid=!0,S.ranges=0,C.type=`text`;continue}S.ranges++,S.args=[];continue}if(C.type===`range`){e.pop();let t=e[e.length-1];t.value+=C.value+O,C=t,S.ranges--;continue}A({type:`dot`,value:O})}else A({type:`text`,value:O})}do if(S=x.pop(),S.type!==`root`){S.nodes.forEach(e=>{e.nodes||(e.type===`open`&&(e.isOpen=!0),e.type===`close`&&(e.isClose=!0),e.nodes||(e.type=`text`),e.invalid=!0)});let e=x[x.length-1],t=e.nodes.indexOf(S);e.nodes.splice(t,1,...S.nodes)}while(x.length>0);return A({type:`eos`}),b}})),lyt=/* @__PURE__ */ a(((e,t)=>{let n=oY(),r=ayt(),i=oyt(),a=cyt(),o=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let e=o.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(o.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};o.parse=(e,t={})=>a(e,t),o.stringify=(e,t={})=>n(typeof e==`string`?o.parse(e,t):e,t),o.compile=(e,t={})=>(typeof e==`string`&&(e=o.parse(e,t)),r(e,t)),o.expand=(e,t={})=>{typeof e==`string`&&(e=o.parse(e,t));let n=i(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n},o.create=(e,t={})=>e===``||e.length<3?[e]:t.expand===!0?o.expand(e,t):o.compile(e,t),t.exports=o})),uyt=/* @__PURE__ */ a(((e,t)=>{t.exports=/* @__PURE__ */ `3dm.3ds.3g2.3gp.7z.a.aac.adp.ai.aif.aiff.alz.ape.apk.appimage.ar.arj.asf.au.avi.bak.baml.bh.bin.bk.bmp.btif.bz2.bzip2.cab.caf.cgm.class.cmx.cpio.cr2.cur.dat.dcm.deb.dex.djvu.dll.dmg.dng.doc.docm.docx.dot.dotm.dra.DS_Store.dsk.dts.dtshd.dvb.dwg.dxf.ecelp4800.ecelp7470.ecelp9600.egg.eol.eot.epub.exe.f4v.fbs.fh.fla.flac.flatpak.fli.flv.fpx.fst.fvt.g3.gh.gif.graffle.gz.gzip.h261.h263.h264.icns.ico.ief.img.ipa.iso.jar.jpeg.jpg.jpgv.jpm.jxr.key.ktx.lha.lib.lvp.lz.lzh.lzma.lzo.m3u.m4a.m4v.mar.mdi.mht.mid.midi.mj2.mka.mkv.mmr.mng.mobi.mov.movie.mp3.mp4.mp4a.mpeg.mpg.mpga.mxu.nef.npx.numbers.nupkg.o.odp.ods.odt.oga.ogg.ogv.otf.ott.pages.pbm.pcx.pdb.pdf.pea.pgm.pic.png.pnm.pot.potm.potx.ppa.ppam.ppm.pps.ppsm.ppsx.ppt.pptm.pptx.psd.pya.pyc.pyo.pyv.qt.rar.ras.raw.resources.rgb.rip.rlc.rmf.rmvb.rpm.rtf.rz.s3m.s7z.scpt.sgi.shar.snap.sil.sketch.slk.smv.snk.so.stl.suo.sub.swf.tar.tbz.tbz2.tga.tgz.thmx.tif.tiff.tlz.ttc.ttf.txz.udf.uvh.uvi.uvm.uvp.uvs.uvu.viv.vob.war.wav.wax.wbmp.wdp.weba.webm.webp.whl.wim.wm.wma.wmv.wmx.woff.woff2.wrm.wvx.xbm.xif.xla.xlam.xls.xlsb.xlsm.xlsx.xlt.xltm.xltx.xm.xmind.xpi.xpm.xwd.xz.z.zip.zipx`.split(`.`)})),dyt=/* @__PURE__ */ a(((e,t)=>{t.exports=uyt()})),fyt=/* @__PURE__ */ a(((e,n)=>{let r=t(`path`),i=dyt(),a=new Set(i);n.exports=e=>a.has(r.extname(e).slice(1).toLowerCase())})),sY=/* @__PURE__ */ a((e=>{let{sep:n}=t(`path`),{platform:r}=process,i=t(`os`);e.EV_ALL=`all`,e.EV_READY=`ready`,e.EV_ADD=`add`,e.EV_CHANGE=`change`,e.EV_ADD_DIR=`addDir`,e.EV_UNLINK=`unlink`,e.EV_UNLINK_DIR=`unlinkDir`,e.EV_RAW=`raw`,e.EV_ERROR=`error`,e.STR_DATA=`data`,e.STR_END=`end`,e.STR_CLOSE=`close`,e.FSEVENT_CREATED=`created`,e.FSEVENT_MODIFIED=`modified`,e.FSEVENT_DELETED=`deleted`,e.FSEVENT_MOVED=`moved`,e.FSEVENT_CLONED=`cloned`,e.FSEVENT_UNKNOWN=`unknown`,e.FSEVENT_TYPE_FILE=`file`,e.FSEVENT_TYPE_DIRECTORY=`directory`,e.FSEVENT_TYPE_SYMLINK=`symlink`,e.KEY_LISTENERS=`listeners`,e.KEY_ERR=`errHandlers`,e.KEY_RAW=`rawEmitters`,e.HANDLER_KEYS=[e.KEY_LISTENERS,e.KEY_ERR,e.KEY_RAW],e.DOT_SLASH=`.${n}`,e.BACK_SLASH_RE=/\\/g,e.DOUBLE_SLASH_RE=/\/\//,e.SLASH_OR_BACK_SLASH_RE=/[/\\]/,e.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,e.REPLACER_RE=/^\.[/\\]/,e.SLASH=`/`,e.SLASH_SLASH=`//`,e.BRACE_START=`{`,e.BANG=`!`,e.ONE_DOT=`.`,e.TWO_DOTS=`..`,e.STAR=`*`,e.GLOBSTAR=`**`,e.ROOT_GLOBSTAR=`/**/*`,e.SLASH_GLOBSTAR=`/**`,e.DIR_SUFFIX=`Dir`,e.ANYMATCH_OPTS={dot:!0},e.STRING_TYPE=`string`,e.FUNCTION_TYPE=`function`,e.EMPTY_STR=``,e.EMPTY_FN=()=>{},e.IDENTITY_FN=e=>e,e.isWindows=r===`win32`,e.isMacos=r===`darwin`,e.isLinux=r===`linux`,e.isIBMi=i.type()===`OS400`})),pyt=/* @__PURE__ */ a(((e,n)=>{let r=t(`fs`),i=t(`path`),{promisify:a}=t(`util`),o=fyt(),{isWindows:s,isLinux:c,EMPTY_FN:l,EMPTY_STR:u,KEY_LISTENERS:d,KEY_ERR:f,KEY_RAW:p,HANDLER_KEYS:m,EV_CHANGE:h,EV_ADD:g,EV_ADD_DIR:_,EV_ERROR:v,STR_DATA:y,STR_END:b,BRACE_START:x,STAR:S}=sY(),C=a(r.open),w=a(r.stat),T=a(r.lstat),E=a(r.close),D=a(r.realpath),O={lstat:T,stat:w},k=(e,t)=>{e instanceof Set?e.forEach(t):t(e)},A=(e,t,n)=>{let r=e[t];r instanceof Set||(e[t]=r=/* @__PURE__ */ new Set([r])),r.add(n)},ee=e=>t=>{let n=e[t];n instanceof Set?n.clear():delete e[t]},te=(e,t,n)=>{let r=e[t];r instanceof Set?r.delete(n):r===n&&delete e[t]},ne=e=>e instanceof Set?e.size===0:!e,re=/* @__PURE__ */ new Map;function ie(e,t,n,a,o){let s=(t,r)=>{n(e),o(t,r,{watchedPath:e}),r&&e!==r&&ae(i.resolve(e,r),d,i.join(e,r))};try{return r.watch(e,t,s)}catch(e){a(e)}}let ae=(e,t,n,r,i)=>{let a=re.get(e);a&&k(a[t],e=>{e(n,r,i)})},oe=(e,t,n,r)=>{let{listener:i,errHandler:a,rawEmitter:o}=r,c=re.get(t),l;if(!n.persistent)return l=ie(e,n,i,a,o),l.close.bind(l);if(c)A(c,d,i),A(c,f,a),A(c,p,o);else{if(l=ie(e,n,ae.bind(null,t,d),a,ae.bind(null,t,p)),!l)return;l.on(v,async n=>{let r=ae.bind(null,t,f);if(c.watcherUnusable=!0,s&&n.code===`EPERM`)try{let t=await C(e,`r`);await E(t),r(n)}catch{}else r(n)}),c={listeners:i,errHandlers:a,rawEmitters:o,watcher:l},re.set(t,c)}return()=>{te(c,d,i),te(c,f,a),te(c,p,o),ne(c.listeners)&&(c.watcher.close(),re.delete(t),m.forEach(ee(c)),c.watcher=void 0,Object.freeze(c))}},j=/* @__PURE__ */ new Map,se=(e,t,n,i)=>{let{listener:a,rawEmitter:o}=i,s=j.get(t),c=s&&s.options;return c&&(c.persistent<n.persistent||c.interval>n.interval)&&(s.listeners,s.rawEmitters,r.unwatchFile(t),s=void 0),s?(A(s,d,a),A(s,p,o)):(s={listeners:a,rawEmitters:o,options:n,watcher:r.watchFile(t,n,(n,r)=>{k(s.rawEmitters,e=>{e(h,t,{curr:n,prev:r})});let i=n.mtimeMs;(n.size!==r.size||i>r.mtimeMs||i===0)&&k(s.listeners,t=>t(e,n))})},j.set(t,s)),()=>{te(s,d,a),te(s,p,o),ne(s.listeners)&&(j.delete(t),r.unwatchFile(t),s.options=s.watcher=void 0,Object.freeze(s))}};n.exports=class{constructor(e){this.fsw=e,this._boundHandleError=t=>e._handleError(t)}_watchWithNodeFs(e,t){let n=this.fsw.options,r=i.dirname(e),a=i.basename(e);this.fsw._getWatchedDir(r).add(a);let s=i.resolve(e),c={persistent:n.persistent};t||=l;let u;return n.usePolling?(c.interval=n.enableBinaryInterval&&o(a)?n.binaryInterval:n.interval,u=se(e,s,c,{listener:t,rawEmitter:this.fsw._emitRaw})):u=oe(e,s,c,{listener:t,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),u}_handleFile(e,t,n){if(this.fsw.closed)return;let r=i.dirname(e),a=i.basename(e),o=this.fsw._getWatchedDir(r),s=t;if(o.has(a))return;let l=async(t,n)=>{if(this.fsw._throttle(`watch`,e,5)){if(!n||n.mtimeMs===0)try{let n=await w(e);if(this.fsw.closed)return;let r=n.atimeMs,i=n.mtimeMs;(!r||r<=i||i!==s.mtimeMs)&&this.fsw._emit(h,e,n),c&&s.ino!==n.ino?(this.fsw._closeFile(t),s=n,this.fsw._addPathCloser(t,this._watchWithNodeFs(e,l))):s=n}catch{this.fsw._remove(r,a)}else if(o.has(a)){let t=n.atimeMs,r=n.mtimeMs;(!t||t<=r||r!==s.mtimeMs)&&this.fsw._emit(h,e,n),s=n}}},u=this._watchWithNodeFs(e,l);if(!(n&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(g,e,0))return;this.fsw._emit(g,e,t)}return u}async _handleSymlink(e,t,n,r){if(this.fsw.closed)return;let i=e.fullPath,a=this.fsw._getWatchedDir(t);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let t;try{t=await D(n)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(a.has(r)?this.fsw._symlinkPaths.get(i)!==t&&(this.fsw._symlinkPaths.set(i,t),this.fsw._emit(h,n,e.stats)):(a.add(r),this.fsw._symlinkPaths.set(i,t),this.fsw._emit(g,n,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(i))return!0;this.fsw._symlinkPaths.set(i,!0)}_handleRead(e,t,n,r,a,o,s){if(e=i.join(e,u),!n.hasGlob&&(s=this.fsw._throttle(`readdir`,e,1e3),!s))return;let c=this.fsw._getWatchedDir(n.path),l=/* @__PURE__ */ new Set,d=this.fsw._readdirp(e,{fileFilter:e=>n.filterPath(e),directoryFilter:e=>n.filterDir(e),depth:0}).on(y,async s=>{if(this.fsw.closed){d=void 0;return}let u=s.path,f=i.join(e,u);l.add(u),!(s.stats.isSymbolicLink()&&await this._handleSymlink(s,e,f,u))&&(this.fsw.closed?d=void 0:(u===r||!r&&!c.has(u))&&(this.fsw._incrReadyCount(),f=i.join(a,i.relative(a,f)),this._addToNodeFs(f,t,n,o+1)))}).on(v,this._boundHandleError);return new Promise(t=>d.once(b,()=>{if(this.fsw.closed){d=void 0;return}let u=s?s.clear():!1;t(),c.getChildren().filter(t=>t!==e&&!l.has(t)&&(!n.hasGlob||n.filterPath({fullPath:i.resolve(e,t)}))).forEach(t=>{this.fsw._remove(e,t)}),d=void 0,u&&this._handleRead(e,!1,n,r,a,o,s)}))}async _handleDir(e,t,n,r,a,o,s){let c=this.fsw._getWatchedDir(i.dirname(e)),l=c.has(i.basename(e));!(n&&this.fsw.options.ignoreInitial)&&!a&&!l&&(!o.hasGlob||o.globFilter(e))&&this.fsw._emit(_,e,t),c.add(i.basename(e)),this.fsw._getWatchedDir(e);let u,d,f=this.fsw.options.depth;if((f==null||r<=f)&&!this.fsw._symlinkPaths.has(s)){if(!a&&(await this._handleRead(e,n,o,a,e,r,u),this.fsw.closed))return;d=this._watchWithNodeFs(e,(t,n)=>{n&&n.mtimeMs===0||this._handleRead(t,!1,o,a,e,r,u)})}return d}async _addToNodeFs(e,t,n,r,a){let o=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return o(),!1;let s=this.fsw._getWatchHelpers(e,r);!s.hasGlob&&n&&(s.hasGlob=n.hasGlob,s.globFilter=n.globFilter,s.filterPath=e=>n.filterPath(e),s.filterDir=e=>n.filterDir(e));try{let n=await O[s.statMethod](s.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(s.watchPath,n))return o(),!1;let c=this.fsw.options.followSymlinks&&!e.includes(S)&&!e.includes(x),l;if(n.isDirectory()){let o=i.resolve(e),u=c?await D(e):e;if(this.fsw.closed||(l=await this._handleDir(s.watchPath,n,t,r,a,s,u),this.fsw.closed))return;o!==u&&u!==void 0&&this.fsw._symlinkPaths.set(o,u)}else if(n.isSymbolicLink()){let a=c?await D(e):e;if(this.fsw.closed)return;let o=i.dirname(s.watchPath);if(this.fsw._getWatchedDir(o).add(s.watchPath),this.fsw._emit(g,s.watchPath,n),l=await this._handleDir(o,n,t,r,e,s,a),this.fsw.closed)return;a!==void 0&&this.fsw._symlinkPaths.set(i.resolve(e),a)}else l=this._handleFile(s.watchPath,n,t);return o(),this.fsw._addPathCloser(e,l),!1}catch(t){if(this.fsw._handleError(t))return o(),e}}}})),myt=/* @__PURE__ */ a(((e,n)=>{let r=t(`fs`),i=t(`path`),{promisify:a}=t(`util`),o;try{o=t(`fsevents`)}catch(e){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(e)}if(o){let e=process.version.match(/v(\d+)\.(\d+)/);if(e&&e[1]&&e[2]){let t=Number.parseInt(e[1],10),n=Number.parseInt(e[2],10);t===8&&n<16&&(o=void 0)}}let{EV_ADD:s,EV_CHANGE:c,EV_ADD_DIR:l,EV_UNLINK:u,EV_ERROR:d,STR_DATA:f,STR_END:p,FSEVENT_CREATED:m,FSEVENT_MODIFIED:h,FSEVENT_DELETED:g,FSEVENT_MOVED:_,FSEVENT_UNKNOWN:v,FSEVENT_TYPE_FILE:y,FSEVENT_TYPE_DIRECTORY:b,FSEVENT_TYPE_SYMLINK:x,ROOT_GLOBSTAR:S,DIR_SUFFIX:C,DOT_SLASH:w,FUNCTION_TYPE:T,EMPTY_FN:E,IDENTITY_FN:D}=sY(),O=e=>isNaN(e)?{}:{depth:e},k=a(r.stat),A=a(r.lstat),ee=a(r.realpath),te={stat:k,lstat:A},ne=/* @__PURE__ */ new Map,re=/* @__PURE__ */ new Set([69888,70400,71424,72704,73472,131328,131840,262912]),ie=(e,t)=>({stop:o.watch(e,t)});function ae(e,t,n,r){let a=i.extname(t)?i.dirname(t):t,s=i.dirname(a),c=ne.get(a);oe(s)&&(a=s);let l=i.resolve(e),u=l!==t,d=(e,r,a)=>{u&&(e=e.replace(t,l)),(e===l||!e.indexOf(l+i.sep))&&n(e,r,a)},f=!1;for(let e of ne.keys())if(t.indexOf(i.resolve(e)+i.sep)===0){a=e,c=ne.get(a),f=!0;break}return c||f?c.listeners.add(d):(c={listeners:/* @__PURE__ */ new Set([d]),rawEmitter:r,watcher:ie(a,(e,t)=>{if(!c.listeners.size)return;let n=o.getInfo(e,t);c.listeners.forEach(r=>{r(e,t,n)}),c.rawEmitter(n.event,e,n)})},ne.set(a,c)),()=>{let e=c.listeners;if(e.delete(d),!e.size&&(ne.delete(a),c.watcher))return c.watcher.stop().then(()=>{c.rawEmitter=c.watcher=void 0,Object.freeze(c)})}}let oe=e=>{let t=0;for(let n of ne.keys())if(n.indexOf(e)===0&&(t++,t>=10))return!0;return!1},j=()=>o&&ne.size<128,se=(e,t)=>{let n=0;for(;!e.indexOf(t)&&(e=i.dirname(e))!==t;)n++;return n},ce=(e,t)=>e.type===b&&t.isDirectory()||e.type===x&&t.isSymbolicLink()||e.type===y&&t.isFile();n.exports=class{constructor(e){this.fsw=e}checkIgnored(e,t){let n=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,t))return n.add(e),t&&t.isDirectory()&&n.add(e+S),!0;n.delete(e),n.delete(e+S)}addOrChange(e,t,n,r,i,a,o,l){let u=i.has(a)?c:s;this.handleEvent(u,e,t,n,r,i,a,o,l)}async checkExists(e,t,n,r,i,a,o,s){try{let c=await k(e);if(this.fsw.closed)return;ce(o,c)?this.addOrChange(e,t,n,r,i,a,o,s):this.handleEvent(u,e,t,n,r,i,a,o,s)}catch(c){c.code===`EACCES`?this.addOrChange(e,t,n,r,i,a,o,s):this.handleEvent(u,e,t,n,r,i,a,o,s)}}handleEvent(e,t,n,r,i,a,o,c,d){if(!(this.fsw.closed||this.checkIgnored(t))){if(e===u){let e=c.type===b;(e||a.has(o))&&this.fsw._remove(i,o,e)}else{if(e===s){if(c.type===b&&this.fsw._getWatchedDir(t),c.type===x&&d.followSymlinks){let e=d.depth===void 0?void 0:se(n,r)+1;return this._addToFsEvents(t,!1,!0,e)}this.fsw._getWatchedDir(i).add(o)}let a=c.type===b?e+C:e;this.fsw._emit(a,t),a===l&&this._addToFsEvents(t,!1,!0)}}}_watchWithFsEvents(e,t,n,r){if(this.fsw.closed||this.fsw._isIgnored(e))return;let a=this.fsw.options,o=ae(e,t,async(o,s,c)=>{if(this.fsw.closed||a.depth!==void 0&&se(o,t)>a.depth)return;let l=n(i.join(e,i.relative(e,o)));if(r&&!r(l))return;let d=i.dirname(l),f=i.basename(l),p=this.fsw._getWatchedDir(c.type===b?l:d);if(re.has(s)||c.event===v){if(typeof a.ignored===T){let e;try{e=await k(l)}catch{}if(this.fsw.closed||this.checkIgnored(l,e))return;ce(c,e)?this.addOrChange(l,o,t,d,p,f,c,a):this.handleEvent(u,l,o,t,d,p,f,c,a)}else this.checkExists(l,o,t,d,p,f,c,a)}else switch(c.event){case m:case h:return this.addOrChange(l,o,t,d,p,f,c,a);case g:case _:return this.checkExists(l,o,t,d,p,f,c,a)}},this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(e,t,n,r){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(t))){this.fsw._symlinkPaths.set(t,!0),this.fsw._incrReadyCount();try{let t=await ee(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(t))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(t||e,r=>{let a=e;return t&&t!==w?a=r.replace(t,e):r!==w&&(a=i.join(e,r)),n(a)},!1,r)}catch(e){if(this.fsw._handleError(e))return this.fsw._emitReady()}}}emitAdd(e,t,n,r,a){let o=n(e),c=t.isDirectory(),u=this.fsw._getWatchedDir(i.dirname(o)),d=i.basename(o);c&&this.fsw._getWatchedDir(o),!u.has(d)&&(u.add(d),(!r.ignoreInitial||a===!0)&&this.fsw._emit(c?l:s,o,t))}initWatch(e,t,n,r){if(this.fsw.closed)return;let a=this._watchWithFsEvents(n.watchPath,i.resolve(e||n.watchPath),r,n.globFilter);this.fsw._addPathCloser(t,a)}async _addToFsEvents(e,t,n,r){if(this.fsw.closed)return;let a=this.fsw.options,o=typeof t===T?t:D,s=this.fsw._getWatchHelpers(e);try{let t=await te[s.statMethod](s.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(s.watchPath,t))throw null;if(t.isDirectory()){if(s.globFilter||this.emitAdd(o(e),t,o,a,n),r&&r>a.depth)return;this.fsw._readdirp(s.watchPath,{fileFilter:e=>s.filterPath(e),directoryFilter:e=>s.filterDir(e),...O(a.depth-(r||0))}).on(f,e=>{if(this.fsw.closed||e.stats.isDirectory()&&!s.filterPath(e))return;let t=i.join(s.watchPath,e.path),{fullPath:r}=e;if(s.followSymlinks&&e.stats.isSymbolicLink()){let e=a.depth===void 0?void 0:se(t,i.resolve(s.watchPath))+1;this._handleFsEventsSymlink(t,r,o,e)}else this.emitAdd(t,e.stats,o,a,n)}).on(d,E).on(p,()=>{this.fsw._emitReady()})}else this.emitAdd(s.watchPath,t,o,a,n),this.fsw._emitReady()}catch(e){(!e||this.fsw._handleError(e))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(a.persistent&&n!==!0){if(typeof t===T)this.initWatch(void 0,e,s,o);else{let t;try{t=await ee(s.watchPath)}catch{}this.initWatch(t,e,s,o)}}}},n.exports.canUse=j})),hyt=/* @__PURE__ */ r((/* @__PURE__ */ a((e=>{let{EventEmitter:n}=t(`events`),r=t(`fs`),i=t(`path`),{promisify:a}=t(`util`),o=Kvt(),s=Qvt().default,c=tyt(),l=eyt(),u=lyt(),d=Zvt(),f=pyt(),p=myt(),{EV_ALL:m,EV_READY:h,EV_ADD:g,EV_CHANGE:_,EV_UNLINK:v,EV_ADD_DIR:y,EV_UNLINK_DIR:b,EV_RAW:x,EV_ERROR:S,STR_CLOSE:C,STR_END:w,BACK_SLASH_RE:T,DOUBLE_SLASH_RE:E,SLASH_OR_BACK_SLASH_RE:D,DOT_RE:O,REPLACER_RE:k,SLASH:A,SLASH_SLASH:ee,BRACE_START:te,BANG:ne,ONE_DOT:re,TWO_DOTS:ie,GLOBSTAR:ae,SLASH_GLOBSTAR:oe,ANYMATCH_OPTS:j,STRING_TYPE:se,FUNCTION_TYPE:ce,EMPTY_STR:le,EMPTY_FN:M,isWindows:N,isMacos:ue,isIBMi:de}=sY(),fe=a(r.stat),pe=a(r.readdir),me=(e=[])=>Array.isArray(e)?e:[e],he=(e,t=[])=>(e.forEach(e=>{Array.isArray(e)?he(e,t):t.push(e)}),t),ge=e=>{let t=he(me(e));if(!t.every(e=>typeof e===se))throw TypeError(`Non-string provided as watch path: ${t}`);return t.map(ve)},_e=e=>{let t=e.replace(T,A),n=!1;for(t.startsWith(ee)&&(n=!0);t.match(E);)t=t.replace(E,A);return n&&(t=A+t),t},ve=e=>_e(i.normalize(_e(e))),ye=(e=le)=>t=>typeof t===se?ve(i.isAbsolute(t)?t:i.join(e,t)):t,be=(e,t)=>i.isAbsolute(e)?e:e.startsWith(ne)?ne+i.join(t,e.slice(1)):i.join(t,e),xe=(e,t)=>e[t]===void 0;var Se=class{constructor(e,t){this.path=e,this._removeWatcher=t,this.items=/* @__PURE__ */ new Set}add(e){let{items:t}=this;t&&e!==re&&e!==ie&&t.add(e)}async remove(e){let{items:t}=this;if(!t||(t.delete(e),t.size>0))return;let n=this.path;try{await pe(n)}catch{this._removeWatcher&&this._removeWatcher(i.dirname(n),i.basename(n))}}has(e){let{items:t}=this;if(t)return t.has(e)}getChildren(){let{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},Ce=class{constructor(e,t,n,r){this.fsw=r,this.path=e=e.replace(k,le),this.watchPath=t,this.fullWatchPath=i.resolve(t),this.hasGlob=t!==e,e===le&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&n?void 0:!1,this.globFilter=this.hasGlob?s(e,void 0,j):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(e=>{e.length>1&&e.pop()}),this.followSymlinks=n,this.statMethod=n?`stat`:`lstat`}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir!==this.fullWatchPath&&{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return i.join(this.watchPath,i.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){let{stats:t}=e;if(t&&t.isSymbolicLink())return this.filterDir(e);let n=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===ce?this.globFilter(n):!0)&&this.fsw._isntIgnored(n,t)&&this.fsw._hasReadPermissions(t)}getDirParts(e){if(!this.hasGlob)return[];let t=[];return(e.includes(te)?u.expand(e):[e]).forEach(e=>{t.push(i.relative(this.watchPath,e).split(D))}),t}filterDir(e){if(this.hasGlob){let t=this.getDirParts(this.checkGlobSymlink(e)),n=!1;this.unmatchedGlob=!this.dirParts.some(e=>e.every((e,r)=>(e===ae&&(n=!0),n||!t[0][r]||s(e,t[0][r],j))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}},P=class extends n{constructor(e){super();let t={};e&&Object.assign(t,e),this._watched=/* @__PURE__ */ new Map,this._closers=/* @__PURE__ */ new Map,this._ignoredPaths=/* @__PURE__ */ new Set,this._throttled=/* @__PURE__ */ new Map,this._symlinkPaths=/* @__PURE__ */ new Map,this._streams=/* @__PURE__ */ new Set,this.closed=!1,xe(t,`persistent`)&&(t.persistent=!0),xe(t,`ignoreInitial`)&&(t.ignoreInitial=!1),xe(t,`ignorePermissionErrors`)&&(t.ignorePermissionErrors=!1),xe(t,`interval`)&&(t.interval=100),xe(t,`binaryInterval`)&&(t.binaryInterval=300),xe(t,`disableGlobbing`)&&(t.disableGlobbing=!1),t.enableBinaryInterval=t.binaryInterval!==t.interval,xe(t,`useFsEvents`)&&(t.useFsEvents=!t.usePolling),p.canUse()||(t.useFsEvents=!1),xe(t,`usePolling`)&&!t.useFsEvents&&(t.usePolling=ue),de&&(t.usePolling=!0);let n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){let e=n.toLowerCase();t.usePolling=e===`false`||e===`0`?!1:e===`true`||e===`1`||!!e}let r=process.env.CHOKIDAR_INTERVAL;r&&(t.interval=Number.parseInt(r,10)),xe(t,`atomic`)&&(t.atomic=!t.usePolling&&!t.useFsEvents),t.atomic&&(this._pendingUnlinks=/* @__PURE__ */ new Map),xe(t,`followSymlinks`)&&(t.followSymlinks=!0),xe(t,`awaitWriteFinish`)&&(t.awaitWriteFinish=!1),t.awaitWriteFinish===!0&&(t.awaitWriteFinish={});let i=t.awaitWriteFinish;i&&(i.stabilityThreshold||=2e3,i.pollInterval||=100,this._pendingWrites=/* @__PURE__ */ new Map),t.ignored&&=me(t.ignored);let a=0;this._emitReady=()=>{a++,a>=this._readyCount&&(this._emitReady=M,this._readyEmitted=!0,process.nextTick(()=>this.emit(h)))},this._emitRaw=(...e)=>this.emit(x,...e),this._readyEmitted=!1,this.options=t,t.useFsEvents?this._fsEventsHandler=new p(this):this._nodeFsHandler=new f(this),Object.freeze(t)}add(e,t,n){let{cwd:r,disableGlobbing:a}=this.options;this.closed=!1;let o=ge(e);return r&&(o=o.map(e=>{let t=be(e,r);return a||!l(e)?t:d(t)})),o=o.filter(e=>e.startsWith(ne)?(this._ignoredPaths.add(e.slice(1)),!1):(this._ignoredPaths.delete(e),this._ignoredPaths.delete(e+oe),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||=o.length,this.options.persistent&&(this._readyCount*=2),o.forEach(e=>this._fsEventsHandler._addToFsEvents(e))):(this._readyCount||=0,this._readyCount+=o.length,Promise.all(o.map(async e=>{let r=await this._nodeFsHandler._addToNodeFs(e,!n,0,0,t);return r&&this._emitReady(),r})).then(e=>{this.closed||e.filter(e=>e).forEach(e=>{this.add(i.dirname(e),i.basename(t||e))})})),this}unwatch(e){if(this.closed)return this;let t=ge(e),{cwd:n}=this.options;return t.forEach(e=>{!i.isAbsolute(e)&&!this._closers.has(e)&&(n&&(e=i.join(n,e)),e=i.resolve(e)),this._closePath(e),this._ignoredPaths.add(e),this._watched.has(e)&&this._ignoredPaths.add(e+oe),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(t=>t.forEach(t=>{let n=t();n instanceof Promise&&e.push(n)})),this._streams.forEach(e=>e.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(e=>e.dispose()),[`closers`,`watched`,`streams`,`symlinkPaths`,`throttled`].forEach(e=>{this[`_${e}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>void 0):Promise.resolve(),this._closePromise}getWatched(){let e={};return this._watched.forEach((t,n)=>{let r=this.options.cwd?i.relative(this.options.cwd,n):n;e[r||re]=t.getChildren().sort()}),e}emitWithAll(e,t){this.emit(...t),e!==S&&this.emit(m,...t)}async _emit(e,t,n,r,a){if(this.closed)return;let o=this.options;N&&(t=i.normalize(t)),o.cwd&&(t=i.relative(o.cwd,t));let s=[e,t];a===void 0?r===void 0?n!==void 0&&s.push(n):s.push(n,r):s.push(n,r,a);let c=o.awaitWriteFinish,l;if(c&&(l=this._pendingWrites.get(t)))return l.lastChange=/* @__PURE__ */ new Date,this;if(o.atomic){if(e===v)return this._pendingUnlinks.set(t,s),setTimeout(()=>{this._pendingUnlinks.forEach((e,t)=>{this.emit(...e),this.emit(m,...e),this._pendingUnlinks.delete(t)})},typeof o.atomic==`number`?o.atomic:100),this;e===g&&this._pendingUnlinks.has(t)&&(e=s[0]=_,this._pendingUnlinks.delete(t))}if(c&&(e===g||e===_)&&this._readyEmitted)return this._awaitWriteFinish(t,c.stabilityThreshold,e,(t,n)=>{t?(e=s[0]=S,s[1]=t,this.emitWithAll(e,s)):n&&(s.length>2?s[2]=n:s.push(n),this.emitWithAll(e,s))}),this;if(e===_&&!this._throttle(_,t,50))return this;if(o.alwaysStat&&n===void 0&&(e===g||e===y||e===_)){let e=o.cwd?i.join(o.cwd,t):t,n;try{n=await fe(e)}catch{}if(!n||this.closed)return;s.push(n)}return this.emitWithAll(e,s),this}_handleError(e){let t=e&&e.code;return e&&t!==`ENOENT`&&t!==`ENOTDIR`&&(!this.options.ignorePermissionErrors||t!==`EPERM`&&t!==`EACCES`)&&this.emit(S,e),e||this.closed}_throttle(e,t,n){this._throttled.has(e)||this._throttled.set(e,/* @__PURE__ */ new Map);let r=this._throttled.get(e),i=r.get(t);if(i)return i.count++,!1;let a,o=()=>{let e=r.get(t),n=e?e.count:0;return r.delete(t),clearTimeout(a),e&&clearTimeout(e.timeoutObject),n};a=setTimeout(o,n);let s={timeoutObject:a,clear:o,count:0};return r.set(t,s),s}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,t,n,a){let o,s=e;this.options.cwd&&!i.isAbsolute(e)&&(s=i.join(this.options.cwd,e));let c=/* @__PURE__ */ new Date,l=n=>{r.stat(s,(r,i)=>{if(r||!this._pendingWrites.has(e)){r&&r.code!==`ENOENT`&&a(r);return}let s=Number(/* @__PURE__ */ new Date);n&&i.size!==n.size&&(this._pendingWrites.get(e).lastChange=s),s-this._pendingWrites.get(e).lastChange>=t?(this._pendingWrites.delete(e),a(void 0,i)):o=setTimeout(l,this.options.awaitWriteFinish.pollInterval,i)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:c,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(o),n)}),o=setTimeout(l,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,t){if(this.options.atomic&&O.test(e))return!0;if(!this._userIgnored){let{cwd:e}=this.options,t=this.options.ignored,n=t&&t.map(ye(e)),r=me(n).filter(e=>typeof e===se&&!l(e)).map(e=>e+oe),i=this._getGlobIgnored().map(ye(e)).concat(n,r);this._userIgnored=s(i,void 0,j)}return this._userIgnored([e,t])}_isntIgnored(e,t){return!this._isIgnored(e,t)}_getWatchHelpers(e,t){let n=t||this.options.disableGlobbing||!l(e)?e:c(e),r=this.options.followSymlinks;return new Ce(e,n,r,this)}_getWatchedDir(e){this._boundRemove||=this._remove.bind(this);let t=i.resolve(e);return this._watched.has(t)||this._watched.set(t,new Se(t,this._boundRemove)),this._watched.get(t)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;let t=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(t.toString(8)[0],10))}_remove(e,t,n){let r=i.join(e,t),a=i.resolve(r);if(n??=this._watched.has(r)||this._watched.has(a),!this._throttle(`remove`,r,100))return;!n&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,t,!0),this._getWatchedDir(r).getChildren().forEach(e=>this._remove(r,e));let o=this._getWatchedDir(e),s=o.has(t);o.remove(t),this._symlinkPaths.has(a)&&this._symlinkPaths.delete(a);let c=r;if(this.options.cwd&&(c=i.relative(this.options.cwd,r)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===g)return;this._watched.delete(r),this._watched.delete(a);let l=n?b:v;s&&!this._isIgnored(r)&&this._emit(l,r),this.options.useFsEvents||this._closePath(r)}_closePath(e){this._closeFile(e);let t=i.dirname(e);this._getWatchedDir(t).remove(i.basename(e))}_closeFile(e){let t=this._closers.get(e);t&&(t.forEach(e=>e()),this._closers.delete(e))}_addPathCloser(e,t){if(!t)return;let n=this._closers.get(e);n||(n=[],this._closers.set(e,n)),n.push(t)}_readdirp(e,t){if(this.closed)return;let n={type:m,alwaysStat:!0,lstat:!0,...t},r=o(e,n);return this._streams.add(r),r.once(C,()=>{r=void 0}),r.once(w,()=>{r&&=(this._streams.delete(r),void 0)}),r}};e.watch=(e,t)=>{let n=new P(t);return n.add(e),n}})))(),1);const cY={},lY=/* @__PURE__ */ new Set,gyt=/* @__PURE__ */ new Set([`root`,`pages`,`groups`,...Ss]),_yt=e=>typeof e==`object`&&!!e&&`href`in e&&typeof e.href==`string`&&`title`in e&&typeof e.title==`string`,vyt=e=>{for(let e of lY)delete cY[e];lY.clear();let t=e=>{if(Array.isArray(e))e.forEach(t);else if(typeof e==`object`&&e){if(_yt(e)){let t=kh(Oh(e.href));cY[t]=e,lY.add(t)}else for(let[n,r]of Object.entries(e))gyt.has(n)&&t(r)}};t(e)},yyt=e=>{let t=e.startsWith(`/`)?e.slice(1):e;return t.endsWith(`.mdx`)||t.endsWith(`.md`)?[t]:[`${t}.mdx`,`${t}.md`]},byt=()=>{for(let e of Object.keys(cY))delete cY[e];lY.clear()},uY=(e,t)=>{cY[e]=t,lY.delete(e)},xyt=e=>{delete cY[e],lY.delete(e)},Syt=e=>{xyt(e.replace(/\.mdx?$/,``))},Cyt=(e,t)=>{let{slug:n,pageMetadata:r}=sk(e,t,[],[]);return uY(n,r),r.openapi!=null||r.asyncapi!=null},wyt=async e=>{let t=fk(e.navigation);for(let e of t){let t=kh(Oh(e));if(lY.has(t))continue;let n=cY[t];if(n){if(n.openapi!=null||n.asyncapi!=null)return!0}else for(let t of yyt(e)){let e=vt.join(ai,t);if(!await lF.default.pathExists(e))continue;let n=(await lF.default.readFile(e)).toString();if(Cyt(t,n))return!0;break}}return!1},Tyt=e=>YP(cY,e.navigation),Eyt=async e=>{let t=Ct(Yr,e);if(await lF.default.pathExists(t))return{baseDir:Yr,path:t};let n=Ct(ai,e);return await lF.default.pathExists(n)?{baseDir:ai,path:n}:null},Dyt=async({filename:e,variables:t,snippetsByFilename:n})=>{let r=Dh(e);if(n.has(r))return;let i=await Eyt(Oh(r));if(i==null)return;let a=EO((await lF.default.readFile(i.path)).toString(),t),o=await mB(a,i.baseDir,i.path,$q),s=await $T(o),c={filename:r,...s};n.set(r,c),await Promise.all(Object.keys(s.importMap).map(async e=>{let i=KT(e,r);i!=null&&await Dyt({filename:i,variables:t,snippetsByFilename:n})}))},Oyt=async e=>{let t={};for(let n of e.values())t[n.filename]=Object.keys(n.importMap).map(e=>KT(e,n.filename)).filter(t=>t!=null&&e.has(t));let n=DE(t).reverse(),r=[];for(let t of n){let n=e.get(t);if(n==null)continue;let i=eE(n)?await EE({snippets:r,fileWithImports:n,...Yq()}):n.tree;r.push({filename:n.filename,tree:i})}return r},dY=async e=>{let t=await tJ(),n=/* @__PURE__ */ new Map;await Promise.all(Object.keys(e.importMap).map(async r=>{let i=KT(r,e.filename);i!=null&&await Dyt({filename:i,variables:t,snippetsByFilename:n})}));let r=await Oyt(n);return await EE({snippets:r,fileWithImports:e,...Yq()})},fY=async e=>await dY(e),{readFile:kyt}=Zt;let Ayt=()=>{};const jyt=new Promise(e=>{Ayt=e}),Myt=()=>{Ayt()};let pY;const Nyt=e=>{pY=e},mY=e=>`/${e.replace(/\.mdx?$/,``)}`,Pyt=async(e,t)=>{let n=mY(e);pY?.({path:n,active:!0});let r=!1;try{r=await t()}finally{pY?.({path:n,active:!1,error:r||void 0})}},hY=/* @__PURE__ */ new Map,Fyt=[`_next/`,`_mintlify/`,`socket.io/`,`favicon`],Iyt=e=>{try{return decodeURIComponent(e)}catch{return e}},Lyt=/\.md$/,Ryt=/\/?rss\.xml$/,zyt=e=>{if(e.startsWith(`_mintlify/og/`)&&e.endsWith(`.png`))return e.slice(13,-4)},Byt=e=>{let t=Iyt(e).replace(/^\/+/,``).replace(/\/+$/,``);if(t.startsWith(`_markdown/`)&&(t=t.slice(10)),t=t.replace(Lyt,``).replace(Ryt,``),t=zyt(t)??t,t===``)return`index`;if(!(t.includes(`\0`)||t.includes(`\\`)||t.split(`/`).some(e=>e===`..`))&&!Fyt.some(e=>t.startsWith(e)))return t},Vyt=e=>[`${e}.mdx`,`${e}.md`,`${e}/index.mdx`,`${e}/index.md`],gY=/* @__PURE__ */ new Map,Hyt=()=>Array.from(gY.keys()).map(e=>({path:mY(e),active:!1,error:!0})),Uyt=e=>{gY.delete(e)&&pY?.({path:mY(e),active:!1})},Wyt=e=>{gY.set(e,0),pY?.({path:mY(e),active:!1,error:!0})},Gyt=async(e,t,n,r)=>{let i=FH(`compile ${e}`),a=!1,o=()=>{a=!0};try{let s=(await kyt(t)).toString(),c=await mB(s,ai,t,o),l=await $T(c);eE(l)&&(s=IT(await fY({...l,filename:e})));let{pageContent:u,pageMetadata:d,slug:f}=await XB(e,s,ai,[],[],o);return await lF.default.outputFile(n,u,{flag:`w`}),uY(f,d),a?(gY.set(e,r),i(`failed`),!0):(gY.delete(e),i(),!1)}catch(t){return gY.set(e,r),$q(`Failed to compile ${e}: ${t instanceof Error?t.message:String(t)}`),i(`failed`),!0}},Kyt=async(e,t={})=>{let n=Byt(e);if(n!==void 0)for(let e of Vyt(n)){let n=vt.join(ai,e);if(!await lF.default.pathExists(n)||TP(e,Zq()))continue;let r=await lF.default.stat(n),i=vt.join(Xr,e),a=await lF.default.stat(i).catch(()=>void 0);if(gY.get(e)===r.mtimeMs){t.silent||pY?.({path:mY(e),active:!1,error:!0});return}if(a!==void 0&&a.mtimeMs>=r.mtimeMs)return;if(await jyt,XO(e,{importedFiles:cJ()})!==`page`)continue;let o=hY.get(e)??Gyt(e,n,i,r.mtimeMs).finally(()=>{hY.delete(e)});if(hY.set(e,o),t.silent){await o;return}return Pyt(e,()=>o)}};let _Y,vY,yY,bY=!1;const xY=e=>JSON.stringify(e??{}),qyt=e=>xY(e),Jyt=e=>xY(e.api),Yyt=e=>xY(e.navigation),Xyt=e=>{_Y=qyt(e.variables),vY=Jyt(e),yY=Yyt(e),bY=e.api!=null||SY(e.navigation)},Zyt=()=>bY,SY=e=>typeof e!=`object`||!e?!1:Object.prototype.hasOwnProperty.call(e,`openapi`)||Object.prototype.hasOwnProperty.call(e,`asyncapi`)||Object.prototype.hasOwnProperty.call(e,`graphql`)?!0:Object.values(e).some(SY),Qyt=e=>vY==null||vY!==e,$yt=e=>yY==null||yY!==e,ebt=e=>_Y==null||_Y!==e,tbt=()=>{_Y=void 0,vY=void 0,yY=void 0,bY=!1},{readFile:nbt}=Zt,rbt=e=>{let t=/* @__PURE__ */ new Set([Dh(e)]),n=cJ(),r=lgt(e);for(let e of r){let r=XO(e,{importedFiles:n});(r===`snippet`||r===`snippet-v2`)&&t.add(e)}return t},ibt=async(e,t)=>{try{let n=Oh(e),r=Ct(ai,n),i=EO((await nbt(r)).toString(),t),a=await mB(i,ai,r,$q),o=await $T(a);return{filename:Dh(e),...o}}catch(t){return console.warn(`Failed to parse snippet ${e}:`,t),null}},abt=async(e,t)=>{let n=Dh(e),r=rbt(e),i=await tJ(),a=Array.from(r).map(async e=>e===n?{...t,filename:n}:await ibt(e,i)),o=(await Promise.all(a)).filter(e=>e!=null),s={};o.forEach(e=>{s[e.filename]=Object.keys(e.importMap).map(t=>KT(t,e.filename)).filter(e=>e!=null)});let c=DE(s).reverse(),l=new Map(o.map(e=>[e.filename,e])),u=c.map(e=>l.get(e)).filter(e=>e!=null),d=[];for(let e of u){let t=e.tree;eE(e)&&(t=await dY(e));let n=Oh(e.filename),r=Ct(Yr,n);await lF.default.outputFile(r,IT(t),{flag:`w`}),d.push(n)}return d},{readFile:obt}=Zt,sbt=e=>{let t=cJ(),n=/* @__PURE__ */ new Set;for(let r of e)for(let e of cgt(Dh(r)))XO(e,{importedFiles:t})===`page`&&n.add(Oh(e));return n},CY=async e=>{let t=sbt(e),n=t.values(),r=async()=>{for(let e of n){let t=Ct(ai,e),n=(await obt(t)).toString();try{let r=await mB(n,ai,t,$q),i=await $T(r),a=await fY({...i,filename:e}),o=Ct(Xr,e);await(0,lF.outputFile)(o,IT(a),{flag:`w`})}catch(t){console.log(`Error generating pages with imports`),console.log(e),console.log(t)}}},i=Math.min(8,t.size);await Promise.all(Array.from({length:i},r))},wY=async(e,{contentDirectory:t=ai,clientDirectory:n=Gr}={})=>{let r=await fF(t),i=Ct(t,`docs.json`),a=await rnt(await lF.default.pathExists(i)?i:Ct(t,`mint.json`)),{openApiFiles:o,asyncApiFiles:s,invalidSpecFiles:c,overlayRegistry:l}=await gF(t,r,void 0,void 0,{explicitOverlays:a}),u,d,f;try{f=await yF.getConfig(Ct(t,`mint.json`),!1,t,e)}catch{let n=Ct(t,`docs.json`);if(!await lF.default.pathExists(n))throw Error(`No config found`);d=await bF.getConfig(n,!1,t,e,{allowSourceRefs:!0})}if(f&&(d=lf(f),u=(await ret(f,o,n,void 0,c)).mintConfig),!d)throw Error(`No config found`);let p=await oB(d,e=>sB(e,t)),{newDocsConfig:m,pagesAcc:h}=p,{newDocsConfig:g,pagesAcc:_,openApiFiles:v,flushWrites:y}=await Q9e(m,o,n,void 0,c,h,!0,l),{flushWrites:b}=await g9e(g,s,n,void 0,h,!1,!0);return await Promise.all([y(),b()]),await U9e(p,n),xXe(c),{mintConfig:u,pagesAcc:{..._,...h},openApiFiles:v,docsConfig:g}},cbt=(e,t)=>{if(t)return t.isDirectory();try{return tn(e).isDirectory()}catch{return!1}},lbt=(e,t)=>{let n=DP(t);return(t,r)=>{let i=vt.isAbsolute(t)?vt.relative(e,t):t;if(!i)return!1;let a=vt.isAbsolute(t)?t:vt.join(e,t);return EP(i,n,cbt(a,r))}};let TY=/* @__PURE__ */ new Set,EY=/* @__PURE__ */ new Set;const DY=e=>vt.normalize(bh(e)),OY=e=>{if(Array.isArray(e))return e.flatMap(OY);if(typeof e!=`object`||!e)return[];let t=e,n=t.graphql,r=typeof n==`string`?n:typeof n==`object`&&n&&`source`in n?n.source:void 0;return[...typeof r==`string`&&!V9e(r)?[DY(r)]:[],...Object.values(t).flatMap(OY)]},kY=async()=>{try{let e=await dF(ai,`docs`)??await dF(ai,`mint`);if(!e){TY=/* @__PURE__ */ new Set,EY=/* @__PURE__ */ new Set;return}let t=await yn(e,`utf-8`),{referencedFiles:n,resolved:r}=await cF(JSON.parse(t),ai),i=OY(r);TY=/* @__PURE__ */ new Set([...n.map(DY),...i]),EY=new Set(i)}catch{TY=/* @__PURE__ */ new Set,EY=/* @__PURE__ */ new Set}},ubt=e=>TY.has(DY(e)),dbt=(e,t=EY)=>t.has(DY(e)),{readFile:fbt}=Zt,pbt=async({contentDirectoryPath:e,contentFilenames:t,openApiFiles:n,asyncApiFiles:r,pagesAcc:i={}})=>{let a=t.values(),o=async()=>{for(let t of a){let a=Ct(e,t),o=(await fbt(a)).toString(),{slug:s,pageMetadata:c}=await XB(t,o,e,n,r,$q);i[s]=c}},s=Math.min(8,t.length);return await Promise.all(Array.from({length:s},o)),i},mbt=async(e,t)=>{let n=await fF(ai),{contentFilenames:r,openApiFiles:i,asyncApiFiles:a}=await gF(ai,n,void 0,void 0,{explicitOverlays:df(t)}),o=await pbt({contentDirectoryPath:ai,contentFilenames:r,openApiFiles:i,asyncApiFiles:a,pagesAcc:e});return YP(o,t.navigation)},hbt=async e=>{let t=Ct(Xr,`generatedDocsNav.json`);await lF.default.outputFile(t,JSON.stringify(e,null,2),{flag:`w`})},AY=async(e,t)=>{let{pagesAcc:n,docsConfig:r}=t??await wY(e),i=await mbt(n,r);return await hbt(i),r},gbt=async(e,t,n={})=>{if(n.reuseGeneratedMetadata)try{let e=await Xq(Ct(Xr,`generatedDocsNav.json`));vyt(e)}catch(e){e instanceof Error&&`code`in e&&e.code===`ENOENT`||console.warn(`Failed to reuse generated navigation metadata: ${e instanceof Error?e.message:String(e)}`)}return await wyt(e)?await AY(t):(await hbt(Tyt(e)),e)},jY=async(e,t)=>{if(e==null){let{openApiFiles:n}=await wY(t);e=n}let n=Ct(Xr,`openApiFiles.json`);await lF.default.outputFile(n,JSON.stringify(e,null,2),{flag:`w`})},_bt=async e=>{let t=Ct(Xr,`openApiFiles.json`),n=[];try{n=await Xq(t)}catch{}let r=n.findIndex(t=>t.originalFileLocation===e.originalFileLocation);r>=0?n[r]=e:n.push(e),await lF.default.outputFile(t,JSON.stringify(n,null,2),{flag:`w`})},MY=async(e,t)=>{e??=(await wY(t)).docsConfig;let n=await tet({config:e,contentDirectoryPath:ai}),r=Ct(Xr,`customLanguages.json`);await lF.default.outputFile(r,JSON.stringify(n,null,2),{flag:`w`})},{readFile:NY}=Zt,PY=/* @__PURE__ */ new Map;let FY;const vbt=async()=>{if(FY==null){let e=/* @__PURE__ */ new Set;try{let t=await fF(ai),n=await YB(ai,t);for(let t of n)e.add(t.location)}catch{}FY=e}return FY},ybt=async()=>{let e=vt.join(Xr,`docs.json`);try{return await Xq(e)}catch{}let t=vt.join(ai,`docs.json`);return await bF.getConfig(t,!1,ai,eJ,{allowSourceRefs:!0})},bbt=async e=>{let t=vt.join(Xr,`docs.json`);try{let n=await Xq(t);await bF.writeConfigFile({...e,navigation:n.navigation},Gr);return}catch{}await bF.writeConfigFile(e,Gr)},xbt=async()=>{let e=vt.join(ai,`docs.json`);if(await lF.default.pathExists(e))try{return await bF.getConfig(e,!1,ai,eJ,{allowSourceRefs:!0})}catch{return}},IY=e=>e.api?.openapi!=null||e.api?.asyncapi!=null||SY(e.navigation),Sbt=e=>Number((process.hrtime.bigint()-e)/1000000n),Cbt=e=>`${(e/1e3).toFixed(2)}s`,wbt=e=>process.env.DEV_TIMING===`true`||e>=1e3,Tbt=(e,t,n)=>{if(!wbt(n))return;let r=t??`uncategorized`;AH((0,R.jsx)(gH,{message:`processed ${e} in ${Cbt(n)} (${r})`}))};let LY,RY,zY=Promise.resolve();const BY=/* @__PURE__ */ new Map,VY=/* @__PURE__ */ new Map;let HY,UY,WY=!1,GY,KY=!1,Ebt=()=>{},qY={};const JY=()=>{KY=!0},Dbt=e=>/\.mdx?$/i.test(e),Obt=e=>Pt(`sha1`).update(e).digest(`hex`),kbt=async e=>{if(Dbt(e))try{return Obt((await NY(vt.join(ai,e))).toString())}catch{return}},Abt=(e,t)=>{switch(e){case`add`:return Fbt(t,JY,qY);case`change`:return Ibt(t,JY,qY);case`unlink`:return Lbt(t,JY,qY)}},jbt=async()=>{let e=GY;if(GY=void 0,e)try{await Ubt(e)}catch(e){console.error(e.message)}},Mbt=async()=>{WY=!0;try{for(;BY.size>0||GY;){for(let[e,t]of BY){BY.delete(e),UY=e;try{await Abt(t,e)}catch(e){console.error(e.message)}finally{UY=void 0}}await jbt()}}finally{WY=!1,HY=void 0,KY&&(KY=!1,Ebt())}},YY=(e,t)=>{let n=BY.get(t);return BY.delete(t),BY.set(t,n===`add`&&e===`change`?`add`:e),HY??=new Promise(e=>{setTimeout(()=>void Mbt().finally(e),100)}),HY},XY=e=>(qY=e,zY=zY.catch(()=>void 0).then(async()=>{let e=RY;RY=void 0,e&&await e.close();let t=lbt(ai,Zq());RY=hyt.watch(ai,{ignoreInitial:!0,ignored:t,cwd:ai}).on(`add`,e=>YY(`add`,e)).on(`change`,e=>YY(`change`,e)).on(`unlink`,e=>YY(`unlink`,e))}),zY),Nbt=(e,t={},n)=>{LY=n,Ebt=e;let r={...t,allowSourceRefs:!0};XY(r)},Pbt=async(e,t,n,r)=>{if(LY&&await LY,TP(e,Zq()))return;let i=await kbt(e);if(i===void 0||VY.get(e)!==i)try{let a=process.hrtime.bigint(),o=await Hbt(e,t,n);i!==void 0&&VY.set(e,i),Tbt(e,o,Sbt(a)),o!==void 0&&r(e)}catch(t){VY.delete(e),console.error(t.message)}},Fbt=(e,t,n)=>Pbt(e,t,n,e=>AH((0,R.jsx)(Lat,{filename:e}))),Ibt=(e,t,n)=>Pbt(e,t,n,e=>AH((0,R.jsx)(Rat,{filename:e}))),Lbt=async(e,t,n)=>{if(LY&&await LY,!TP(e,Zq()))try{let r=cJ(),i=XO(e,{importedFiles:r});if(await bJ(e,i),PY.delete(e),VY.delete(e),Syt(e),i===`page`&&Uyt(e),dbt(e)){await Vbt(t,n),AH((0,R.jsx)(xH,{filename:e}));return}if(ubt(e)){try{let{mintConfig:e,openApiFiles:t,docsConfig:n}=await wY($q);await kY(),e&&await yF.writeConfigFile(e,Gr),await bF.writeConfigFile(n,Gr),await jY(t,eJ),await MY(n,eJ),await AY(eJ)}catch(e){PH().length===0&&console.error(e)}let n=await uJ();await CY(new Set(n));let r=sJ(e);await lJ(r),t(),AH((0,R.jsx)(xH,{filename:e}));return}if(i==null){let t=sJ(e);await lJ(t);return}switch((i===`page`||i===`snippet`||i===`mintConfig`||i===`docsConfig`||i===`staticFile`||i===`snippet-v2`||i===`css`||i===`js`||i===`generatedStaticFile`||i===`skillFile`)&&await lF.default.remove(Rbt(i,e)),i){case`mintConfig`:console.error(`mint.json has been deleted.`),await zbt();break;case`docsConfig`:console.error(`docs.json has been deleted.`),await zbt();break;case`potentialYamlOpenApiSpec`:case`potentialJsonOpenApiSpec`:FY?.delete(ym(ok(e)));try{let{mintConfig:e,openApiFiles:n,docsConfig:r}=await wY($q);e&&await yF.writeConfigFile(e,Gr),await bF.writeConfigFile(r,Gr),await jY(n,eJ),await AY(eJ),t()}catch(e){PH().length===0&&console.error(e)}break;case`mintIgnore`:AH((0,R.jsx)(yH,{message:`.mintignore has been deleted. Rebuilding...`}));try{await lF.default.emptyDir(Yr),await lF.default.emptyDir(Xr);let e=await ZB(ai,n);await Ggt(),await oJ(ai,e?.fileImportsMap),await ZY(),await kY(),await XY(n)}catch(e){console.error(`Error rebuilding after .mintignore deletion:`,e)}}let a=sJ(e);await lJ(a),AH((0,R.jsx)(xH,{filename:e}))}catch(e){console.error(e.message)}},Rbt=(e,t)=>{switch(e){case`page`:return vt.join(Xr,t);case`mintConfig`:return vt.join(Xr,`mint.json`);case`docsConfig`:return vt.join(Xr,`docs.json`);case`potentialYamlOpenApiSpec`:case`potentialJsonOpenApiSpec`:return vt.join(Xr,`openApiFiles.json`);case`generatedStaticFile`:return vt.join(Yr,t);case`mintIgnore`:return vt.join(Xr,`mint-ignore.json`);case`snippet`:case`staticFile`:case`snippet-v2`:case`css`:case`js`:return vt.join(Yr,t);case`skillFile`:return vt.join(Yr,t);default:throw Error(`Invalid category`)}},zbt=async()=>{try{let e=vt.join(ai,`mint.json`),t=vt.join(ai,`docs.json`),n=await lF.default.pathExists(e),r=await lF.default.pathExists(t);!n&&!r&&(console.error(`⚠️ Error: Neither mint.json nor docs.json found in the directory`),process.exit(1))}catch(e){console.error(`⚠️ Error validating configuration files:`,e)}},ZY=async()=>{PY.clear(),VY.clear(),byt();let e=cJ(),t=jP(ai,ai,Zq()).filter(t=>XO(t,{importedFiles:e})===`page`);await Promise.all(t.map(async e=>{try{let t=vt.join(ai,e),n=(await NY(t)).toString();$ht(e,n,PY,eJ),VY.set(e,Obt(n)),Cyt(e,n)}catch{}}));for(let e of[...BY.keys(),UY])e&&(VY.delete(e),PY.delete(e))},Bbt=async()=>{tbt();let e=vt.join(ai,`docs.json`);try{if(await lF.default.pathExists(e)){let t=await bF.getConfig(e,!1,ai,eJ,{allowSourceRefs:!0});Xyt(t);return}}catch{}},Vbt=async(e,t)=>{let n=await ZB(ai,t);await oJ(ai,n?.fileImportsMap),await ZY(),await Bbt(),await kY(),e()},Hbt=async(e,t,n={})=>{Gat();let r=vt.join(ai,e);if(dbt(e))return await bJ(e,XO(e,{importedFiles:cJ()})),await Vbt(t,n),null;let i=await sgt(ai,e);await lJ(i);let a=cJ(),o=XO(e,{importedFiles:a});if(await bJ(e,o),xNe(e))return null;if(ubt(e)){if(await lF.default.pathExists(vt.join(ai,`docs.json`)))return Hbt(`docs.json`,t,n);try{let{mintConfig:e,openApiFiles:t,docsConfig:n,pagesAcc:r}=await wY($q);await kY(),e&&await yF.writeConfigFile(e,Gr),await bF.writeConfigFile(n,Gr),await jY(t,eJ),await MY(n,eJ),await AY(eJ,{pagesAcc:r,docsConfig:n})}catch(e){PH().length===0&&console.error(e)}let e=await uJ();return await CY(new Set(e)),t(),null}if(o==null){t();return}let s=!1,c=!1,l=o===`potentialYamlOpenApiSpec`||o===`potentialJsonOpenApiSpec`?`staticFile`:o,u=Rbt(o,e);switch(o){case`page`:{let t=(await NY(r)).toString();c=await Qht(e,t,PY,$q);let n=!1,i=()=>{n=!0},a=e=>{n=!0,$q(e)};try{let n=await mB(t,ai,r,i),o=await $T(n);eE(o)&&(t=IT(await fY({...o,filename:e})));let{pageContent:s,pageMetadata:c,slug:l}=await XB(e,t,ai,[],[],a);await lF.default.outputFile(u,s,{flag:`w`}),uY(l,c)}catch(t){throw Wyt(e),t}n?Wyt(e):Uyt(e);break}case`snippet`:await lF.default.copy(r,u);break;case`snippet-v2`:{let t=await tJ(),n=EO((await NY(r)).toString(),t),i=await mB(n,ai,r,$q),a=await $T(i);eE(a)&&(n=IT(await dY({...a,filename:e}))),await lF.default.outputFile(u,n,{flag:`w`});let o=await abt(e,a);await CY(new Set(o));break}case`mintConfig`:case`docsConfig`:{let{valid:t,error:n}=Zht(r);if(!t){jH((0,R.jsx)(bH,{message:`Syntax error in ${e}: ${n}`}));return}if(o===`docsConfig`){try{let e=await bF.getConfig(r,!1,ai,$q,{allowSourceRefs:!0}),t=Jyt(e),n=Qyt(t),i=Yyt(e),a=$yt(i),o=qyt(e.variables),s=ebt(o),c=a&&!n&&!IY(e)&&!Zyt(),l=n||a&&(IY(e)||Zyt());if(await kY(),c){await MY(e,eJ),await jbt();let t=await gbt(e,eJ,{reuseGeneratedMetadata:!0});await bF.writeConfigFile(t,Gr)}else if(l){let e=await wY($q);await bF.writeConfigFile(e.docsConfig,Gr),await jY(e.openApiFiles,eJ),await MY(e.docsConfig,eJ),await AY(eJ,{pagesAcc:e.pagesAcc,docsConfig:e.docsConfig})}else await MY(e,eJ),await bbt(e);if(s){let e=await uJ();await CY(new Set(e))}Xyt(e)}catch(e){if(PH().length>0)return;console.error(e)}break}s=!0;try{await kY();let{mintConfig:e,openApiFiles:t,docsConfig:n}=await wY($q);e&&await yF.writeConfigFile(e,Gr),await bF.writeConfigFile(n,Gr),await jY(t,eJ),await MY(n,eJ)}catch(e){if(PH().length>0)return;console.error(e)}break}case`mintIgnore`:try{AH((0,R.jsx)(gH,{message:`.mintignore has been updated. Rebuilding...`})),await lF.default.emptyDir(Yr),await lF.default.emptyDir(Xr);let e=await ZB(ai,n);await Ggt(),await oJ(ai,e?.fileImportsMap),await ZY(),await kY(),await XY(n)}catch(e){console.error(e.message)}break;case`potentialYamlOpenApiSpec`:case`potentialJsonOpenApiSpec`:{let t;try{t=ne.load(await vn.readFile(r,`utf-8`))}catch{t=void 0}let n=await vbt(),i=ym(ok(e));if(pf(t)){n.add(i),await jY(),s=!0,l=`openApi`;break}if(n.has(i)){n.delete(i),await jY(),s=!0,l=`openApi`;break}let a=typeof t==`object`&&!!t&&`openapi`in t,o;try{let{schema:e}=await vh(t);o=e}catch{o=void 0}if(o||a)o&&await _bt({filename:vt.parse(e).name,originalFileLocation:`/`+e,spec:o}),await jY(),s=!0,l=`openApi`;else{let e=JSON.parse(await vn.readFile(vt.join(Xr,`customLanguages.json`),`utf-8`)),t=!1;for(let[n,i]of e.entries())if(r.endsWith(i.filePath)){t=!0,e[n]={content:await vn.readFile(r,`utf-8`),filePath:i.filePath};break}t&&await vn.writeFile(vt.join(Xr,`customLanguages.json`),JSON.stringify(e,null,2))}break}case`skillFile`:case`css`:case`js`:case`generatedStaticFile`:case`staticFile`:await Xht(r,20)?await lF.default.copy(r,u):console.error(eY.red(`🚨 The file at ${e} is too big. The maximum file size is 20 mb.`))}let d=c?`pageMetadataCache`:s?`full`:void 0;return d&&WY?GY=GY===`full`?`full`:d:d&&await Ubt(d),t(),l},Ubt=async e=>{if(e===`pageMetadataCache`){let e=await xbt()??await ybt();if(IY(e)){let e=await AY(eJ);await bF.writeConfigFile(e,Gr)}else await gbt(e,eJ)}else{let e=await AY(eJ);await bF.writeConfigFile(e,Gr)}},Wbt=()=>{let e=gt.networkInterfaces();for(let t of Object.keys(e))for(let n of e[t]||[])if(n.family===`IPv4`&&!n.internal)return n.address},Gbt=/* @__PURE__ */ new Set([`connection`,`keep-alive`,`proxy-authenticate`,`proxy-authorization`,`te`,`trailer`,`transfer-encoding`,`upgrade`,`content-encoding`,`content-length`]);function Kbt(e,t){let n=e.headers,r=typeof n.getSetCookie==`function`,i=r?n.getSetCookie():void 0;if(n.forEach((e,n)=>{let i=n.toLowerCase();Gbt.has(i)||i===`set-cookie`&&r||t.setHeader(n,e)}),i?.length)for(let e of i)t.appendHeader(`Set-Cookie`,e)}const qbt=async e=>{let t=e.port||`3000`,n=parseInt(t,10)||3e3,r=(0,zq.default)(),i=cn(r),a=new yvt(i);process.env.LOCAL_OG_PREVIEW=`true`;let o=e.apiUrl??process.env.MINTLIFY_API_URL??`http://localhost:5000`,s=e.accessToken,c=e.subdomain;process.env.MINTLIFY_CLI_ACCESS_TOKEN=s??``,process.env.MINTLIFY_API_URL=o,c&&(process.env.MINTLIFY_CLI_SUBDOMAIN=c);let l=await IH(`setup client handler`,()=>Qr===`vite`?Tht():aht()),u=Wbt();r.use(Kgt.prefix,Kgt.handler),r.use(`/`,zq.static(Yr,{redirect:!1})),r.use((e,t,n)=>{if(e.method!==`GET`&&e.method!==`HEAD`){n();return}let r=e.headers[`next-router-prefetch`]!==void 0||e.headers.purpose===`prefetch`||e.headers[`sec-purpose`]===`prefetch`;Kyt(e.path,{silent:r}).then(()=>n(),()=>n())}),r.post(`/_mintlify/api-public/search/:subdomain`,zq.json(),async(e,t)=>{let n=c??e.params.subdomain;try{let r=await fetch(`${o}/api/cli/${n}/search`,{method:`POST`,headers:{"Content-Type":`application/json`,...s?{Authorization:`Bearer ${s}`}:{}},body:JSON.stringify(e.body)}),i=await r.json();t.status(r.status).json(i)}catch{t.status(502).json({error:`search proxy failed`})}});let d=e=>async(t,n)=>{let r=c??t.params.subdomain;try{let i=await fetch(`${o}/api/cli/${r}/assistant/${e}`,{method:`POST`,headers:{"Content-Type":`application/json`,...s?{Authorization:`Bearer ${s}`}:{}},body:JSON.stringify(t.body)});if(n.status(i.status),Kbt(i,n),i.body){let e=i.body.getReader(),t=async()=>{let{done:r,value:i}=await e.read();if(r)n.end();else return n.write(i),t()};await t()}else n.end()}catch{n.headersSent?n.destroy():n.status(502).json({error:`assistant proxy failed`})}};for(let e of[`message`,`v2/message`])r.post(`/_mintlify/api-public/assistant/:subdomain/${e}`,zq.json({limit:`5mb`}),d(e));r.all(`*`,(e,t)=>l(e,t));let f=()=>{a.emit(`reload`)};Hgt(f),Nyt(e=>{a.emit(`compiling`,e)}),a.on(`connection`,e=>{for(let t of Hyt())e.emit(`compiling`,t)});let p=FH(`server ready`),m=e.host===!0;i.listen(n,m?void 0:`localhost`,()=>{p(),Yat(),e.needsUpdate&&OH((0,R.jsx)(Fat,{updateCommand:`${e.packageName} update`})),s||OH((0,R.jsx)(Iat,{loginCommand:`${e.packageName} login`})),OH((0,R.jsx)(Pat,{localUrl:`http://localhost:${t}`,networkUrl:m&&u?`http://${u}:${t}`:void 0})),gdt(),e.open&&(0,vvt.default)(`http://localhost:${t}`);let n=()=>{process.exit(0)};process.on(`SIGINT`,n),process.on(`SIGTERM`,n)});let h=()=>{},g=new Promise(e=>{h=e});$at(`watching for file changes`),Nbt(f,{localSchema:e[`local-schema`],groups:e.groups,disableOpenApi:e.disableOpenapi,disablePrefetch:e.disablePrefetch,allowSourceRefs:!0,lazyPages:!0,nativePackages:!0},g),await IH(`initialize import cache`,()=>oJ(ai,e.fileImportsMap)),Myt(),await IH(`initialize frontmatter cache`,()=>ZY()),await IH(`initialize docs config cache`,()=>Bbt()),await IH(`refresh referenced files`,()=>kY()),h()},Jbt=[`favicons/`,`.mint-content-source`],Ybt=()=>{let e;try{e=jP(Yr)}catch{return}for(let t of e)Jbt.some(e=>t.startsWith(e))||(qT(vt.extname(t))||!lF.default.existsSync(vt.join(ai,t)))&&lF.default.removeSync(vt.join(Yr,t))},Xbt=async e=>{let t=await IH(`check internet`,()=>RH()),n=e[`local-schema`],r=e[`client-version`],i=e[`local-client-version`],a=e.packageName,o=e.groups,s=e.cliVersion,c=e.disableOpenapi,l=e.disablePrefetch;await IH(`ensure preview directory`,()=>lF.default.ensureDir(Br)),!i&&!r&&Qr===`next`&&LH(`seed preview from shared workspace`,()=>vdt());let u=await IH(`read local client version`,async()=>await(0,lF.pathExists)(Ur)?lF.default.readFileSync(Ur,`utf8`):null);!u&&!i&&!t&&(MH(),OH((0,R.jsx)(bH,{message:`running ${a} dev after updating requires an internet connection.`})),await new Promise(e=>setTimeout(e,50)),process.exit(1)),OH((0,R.jsx)(vH,{message:`preparing local preview...`}));let{needsUpdate:d,error:f}=await IH(`update local client`,()=>KK({versionString:u,clientVersion:r,localClientVersion:i,cliVersion:s}));f&&(MH(),OH((0,R.jsx)(bH,{message:f})),await new Promise(e=>setTimeout(e,50)),process.exit(1)),await IH(`ensure docs.json`,()=>Kht()),LH(`clear prebuild output`,()=>{lF.default.emptyDirSync(Xr);let e=vt.join(Yr,`.mint-content-source`),t;try{t=lF.default.readFileSync(e,`utf8`)}catch{}t===ai?Ybt():(lF.default.emptyDirSync(Yr),lF.default.outputFileSync(e,ai))}),await IH(`switch to local client directory`,async()=>{await lF.default.ensureDir(Gr),process.chdir(Gr)});let p;try{p=(await IH(`prebuild content`,()=>ZB(ai,{localSchema:n,groups:o,disableOpenApi:c,disablePrefetch:l,allowSourceRefs:!0,lazyPages:!0,nativePackages:!0})))?.fileImportsMap}catch(e){MH();let t=e instanceof Error&&e.message?e.message:`prebuild step failed`;OH((0,R.jsx)(bH,{message:t})),await new Promise(e=>setTimeout(e,50)),process.exit(1)}await IH(`build npm packages`,()=>Wgt()),await IH(`start preview runtime`,()=>qbt({...e,needsUpdate:d,fileImportsMap:p}))},Zbt=async e=>{let t=Number(e.port??3e3);ei(t,e.classic===!0?`next`:`vite`);let n=Ygt(t);try{await Xbt(e)}catch(e){throw n(),e}},Qbt={right:rxt,center:ixt};var $bt=class{constructor(e){this.width=e.width,this.wrap=e.wrap??!0,this.rows=[]}span(...e){let t=this.div(...e);t.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(``),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]==`string`)return this.applyLayoutDSL(e[0]);let t=e.map(e=>typeof e==`string`?this.colFromString(e):e);return this.rows.push(t),t}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]==`string`&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let t=e.split(`
1766
1766
  `).map(e=>e.split(` `)),n=0;return t.forEach(e=>{e.length>1&&QY.stringWidth(e[0])>n&&(n=Math.min(Math.floor(this.width*.5),QY.stringWidth(e[0])))}),t.forEach(e=>{this.div(...e.map((t,r)=>({text:t.trim(),padding:this.measurePadding(t),width:r===0&&e.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){let t=QY.stripAnsi(e);return[0,t.match(/\s*$/)[0].length,0,t.match(/^\s*/)[0].length]}toString(){let e=[];return this.rows.forEach(t=>{this.rowToString(t,e)}),e.filter(e=>!e.hidden).map(e=>e.text).join(`
1767
1767
  `)}rowToString(e,t){return this.rasterize(e).forEach((n,r)=>{let i=``;n.forEach((n,a)=>{let{width:o}=e[a],s=this.negatePadding(e[a]),c=n;if(s>QY.stringWidth(n)&&(c+=` `.repeat(s-QY.stringWidth(n))),e[a].align&&e[a].align!==`left`&&this.wrap){let t=Qbt[e[a].align];c=t(c,s),QY.stringWidth(c)<s&&(c+=` `.repeat((o||0)-QY.stringWidth(c)-1))}let l=e[a].padding||[0,0,0,0];l[3]&&(i+=` `.repeat(l[3])),i+=ext(e[a],c,`| `),i+=c,i+=ext(e[a],c,` |`),l[1]&&(i+=` `.repeat(l[1])),r===0&&t.length>0&&(i=this.renderInline(i,t[t.length-1]))}),t.push({text:i.replace(/ +$/,``),span:e.span})}),t}renderInline(e,t){let n=e.match(/^ */),r=n?n[0].length:0,i=t.text,a=QY.stringWidth(i.trimRight());return t.span?this.wrap?r<a?e:(t.hidden=!0,i.trimRight()+` `.repeat(r-a)+e.trimLeft()):(t.hidden=!0,i+e):e}rasterize(e){let t=[],n=this.columnWidths(e),r;return e.forEach((e,i)=>{e.width=n[i],r=this.wrap?QY.wrap(e.text,this.negatePadding(e),{hard:!0}).split(`
1768
1768
  `):e.text.split(`
@@ -2224,7 +2224,7 @@ try {
2224
2224
  }
2225
2225
  `,JSON.stringify([e,n,r,t])]]:[e,n];Pr(i,a,Object.assign(Object.assign({},r?{}:c1),{detached:!0,stdio:`ignore`,windowsHide:!0})).unref()},iIt=(e,t)=>{let n=e=>e.split(`-`)[0].split(`.`).map(e=>Number.parseInt(e,10)||0),r=n(e),i=n(t);for(let e=0;e<Math.max(r.length,i.length);e++){let t=(r[e]??0)-(i[e]??0);if(t!==0)return t>0}return!1},aIt=()=>process.env.MINTLIFY_DISABLE_AUTOUPDATE===`1`||N1(`autoUpdate`)===`false`,oIt=(e=qt(import.meta.url),t=process.cwd())=>{let n=e=>process.platform===`win32`?e.toLowerCase():e,r=n(e).split(Rt.sep);if(r.some(e=>e===`_npx`||e===`dlx`||e.startsWith(`dlx-`)))return`ephemeral`;let i=r.slice(0,r.indexOf(`node_modules`)).join(Rt.sep),a=n(t);return i&&(a===i||a.startsWith(i+Rt.sep))?`local`:`global`},sIt=e=>i2(void 0,void 0,void 0,function*(){let t=F1().latest?.[e];if(t&&Date.now()-t.checkedAt<144e5)return t.version;let n=yield nMt(e);if(!n)return t?.version;let r=F1();return yield OMt(Object.assign(Object.assign({},r),{latest:Object.assign(Object.assign({},r.latest),{[e]:{version:n,checkedAt:Date.now()}})})),n}),cIt=e=>i2(void 0,void 0,void 0,function*(){let t=F1();if(t.installAttemptedAt&&Date.now()-t.installAttemptedAt<36e5)return!1;let n=yield oMt({packageName:e}),r=Date.now();return yield OMt(Object.assign(Object.assign({},t),{installAttemptedAt:r})),process.once(`exit`,()=>{if(!((F1().installAttemptedAt??0)>r))try{rIt(n,e)}catch{}}),!0}),lIt=(e,t)=>i2(void 0,void 0,void 0,function*(){if(t===`update`||process.env.CLI_TEST_MODE===`true`||F$())return;let n=o1(e);if(n&&n!==`linked to local package`)try{let t=yield sIt(e);if(!t||!iIt(t,n))return;let r=`${e} ${t} is available (you have ${n}).`;if(!aIt()&&oIt()===`global`&&(yield cIt(e))){console.error(eY.yellow(`${r} Updating in the background after this command exits.`));return}console.error(eY.yellow(`${r} Run \`${e} update\` to upgrade.`))}catch{}}),uIt=[];function a2(e){let t=-1;if(!e||!Array.isArray(e)&&!e.type)throw Error("Expected node, not `"+e+"`");if(`value`in e)return e.value;let n=(Array.isArray(e)?e:e.children)||uIt,r=[];for(;++t<n.length;)r[t]=a2(n[t]);return r.join(``)}const dIt={}.hasOwnProperty;function fIt(e,t,n){let r=-1;if(!e)throw Error(`Iterate requires that |this| not be `+e);if(!dIt.call(e,`length`))throw Error("Iterate requires that |this| has a `length`");if(typeof t!=`function`)throw TypeError("`callback` must be a function");for(;++r<e.length;){if(!(r in e))continue;let i=t.call(n,e[r],r,e);typeof i==`number`&&(i<0&&(r=0),r=i-1)}}function o2(e){return t;function t(e){if(!e||!e.children)throw Error("Missing children in `parent` for `modifier`");fIt(e.children,n,e)}function n(t,n){return e(t,n,this)}}const pIt=o2(function(e,t,n){let r=n.children[t-1];if(r&&`children`in r&&`children`in e&&e.children.length>0){let i=-1;for(;e.children[++i];){let a=e.children[i];if(a.type===`WordNode`)return;if(a.type===`SymbolNode`||a.type===`PunctuationNode`){let i=a2(a);return i!==`,`&&i!==`;`?void 0:(r.children.push(...e.children),r.position&&e.position&&(r.position.end=e.position.end),n.children.splice(t,1),t)}}}}),mIt=/^([!"').?\u0F3B\u0F3D\u169C\u2019\u201D\u2026\u203A\u203D\u2046\u207E\u208E\u2309\u230B\u232A\u2769\u276B\u276D\u276F\u2771\u2773\u2775\u27C6\u27E7\u27E9\u27EB\u27ED\u27EF\u2984\u2986\u2988\u298A\u298C\u298E\u2990\u2992\u2994\u2996\u2998\u29D9\u29DB\u29FD\u2E03\u2E05\u2E0A\u2E0D\u2E1D\u2E21\u2E23\u2E25\u2E27\u2E29\u2E56\u2E58\u2E5A\u2E5C\u3009\u300B\u300D\u300F\u3011\u3015\u3017\u3019\u301B\u301E\u301F\uFD3E\uFE18\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE44\uFE48\uFE5A\uFE5C\uFE5E\uFF09\uFF3D\uFF5D\uFF60\uFF63\u00BB\]}])\1*$/,hIt=/^[ \t]*((\r?\n|\r)[\t ]*)+$/,gIt=/^([!.?\u2026\u203D]+)$/,_It=/^([&'\-.:=?@\u00AD\u00B7\u2010\u2011\u2019\u2027]|_+)$/,vIt=/^(?:[\d\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDF50-\uDF59\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDE80-\uDE96]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD839[\uDCF0-\uDCF9]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])+$/,yIt=/^\d/,bIt=/^(?:[a-z\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0560-\u0588\u10D0-\u10FA\u10FD-\u10FF\u13F8-\u13FD\u1C80-\u1C88\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5F\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7AF\uA7B5\uA7B7\uA7B9\uA7BB\uA7BD\uA7BF\uA7C1\uA7C3\uA7C8\uA7CA\uA7D1\uA7D3\uA7D5\uA7D7\uA7D9\uA7F6\uA7FA\uAB30-\uAB5A\uAB60-\uAB68\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]|\uD801[\uDC28-\uDC4F\uDCD8-\uDCFB\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC]|\uD803[\uDCC0-\uDCF2]|\uD806[\uDCC0-\uDCDF]|\uD81B[\uDE60-\uDE7F]|\uD835[\uDC1A-\uDC33\uDC4E-\uDC54\uDC56-\uDC67\uDC82-\uDC9B\uDCB6-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDCEA-\uDD03\uDD1E-\uDD37\uDD52-\uDD6B\uDD86-\uDD9F\uDDBA-\uDDD3\uDDEE-\uDE07\uDE22-\uDE3B\uDE56-\uDE6F\uDE8A-\uDEA5\uDEC2-\uDEDA\uDEDC-\uDEE1\uDEFC-\uDF14\uDF16-\uDF1B\uDF36-\uDF4E\uDF50-\uDF55\uDF70-\uDF88\uDF8A-\uDF8F\uDFAA-\uDFC2\uDFC4-\uDFC9\uDFCB]|\uD837[\uDF00-\uDF09\uDF0B-\uDF1E\uDF25-\uDF2A]|\uD83A[\uDD22-\uDD43])/,xIt=/[\uD800-\uDFFF]/,SIt=/[!"'-),-/:;?[-\]_{}\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u201F\u2022-\u2027\u2032-\u203A\u203C-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,CIt=/[\dA-Za-z\u00AA\u00B2\u00B3\u00B5\u00B9\u00BA\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0898-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09F4-\u09F9\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BF2\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C78-\u0C7E\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D63\u0D66-\u0D78\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u17F0-\u17F9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u20D0-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA827\uA82C\uA830-\uA835\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE6\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD27\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEFD-\uDF27\uDF30-\uDF54\uDF70-\uDF85\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC52-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF]/,wIt=/[\t-\r \u0085\u00A0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,TIt=o2(function(e,t,n){if(`children`in e&&e.children.length>0&&t>0){let r=n.children[t-1],i=e.children[0],a=e.children[1];if(r&&r.type===`SentenceNode`&&(i.type===`SymbolNode`||i.type===`PunctuationNode`)&&mIt.test(a2(i)))return e.children.shift(),r.children.push(i),i.position&&r.position&&(r.position.end=i.position.end),a&&a.position&&e.position&&(e.position.start=a.position.start),t-1}}),EIt=o2(function(e,t,n){if(e.type!==`SentenceNode`)return;let r=e.children,i=0;for(;++i<r.length-1;){let a=r[i];if(a.type!==`WhiteSpaceNode`||a2(a).split(/\r\n|\r|\n/).length<3)continue;e.children=r.slice(0,i);let o={type:`SentenceNode`,children:r.slice(i+1)},s=r[i-1],c=r[i+1];if(n.children.splice(t+1,0,a,o),e.position&&s.position&&c.position){let t=e.position.end;e.position.end=s.position.end,o.position={start:c.position.start,end:t}}return t+1}}),DIt=o2(function(e,t,n){if(`children`in e){let r=e.children[e.children.length-1];if(r&&r.type===`WhiteSpaceNode`){e.children.pop(),n.children.splice(t+1,0,r);let i=e.children[e.children.length-1];return i&&i.position&&e.position&&(e.position.end=i.position.end),t}}});function s2(e){return t;function t(t){let n=t&&t.children,r=-1;if(!n)throw Error("Missing children in `parent` for `visit`");for(;++r in n;)e(n[r],r,t)}}const OIt=s2(function(e,t,n){if(`children`in e&&e.children){let r=e.children[0];if(r&&r.type===`WhiteSpaceNode`){e.children.shift(),n.children.splice(t,0,r);let i=e.children[0];i&&i.position&&e.position&&(e.position.start=i.position.start)}}}),kIt=o2(function(e,t,n){if(t>0&&(e.type===`SymbolNode`||e.type===`PunctuationNode`)&&a2(e)===`-`){let r=n.children,i=r[t-1],a=r[t+1];if((!a||a.type!==`WordNode`)&&i&&i.type===`WordNode`)return r.splice(t,1),i.children.push(e),i.position&&e.position&&(i.position.end=e.position.end),t}}),AIt=o2(function(e,t,n){let r=n.children[t-1];if(r&&r.type===`SentenceNode`&&e.type===`SentenceNode`){let i=e.children[0];if(i&&i.type===`WordNode`&&yIt.test(a2(i)))return r.children.push(...e.children),n.children.splice(t,1),r.position&&e.position&&(r.position.end=e.position.end),t}}),jIt=o2(function(e,t,n){if(e.type===`SentenceNode`&&t>0){let r=n.children[t-1],i=e.children;if(i.length>0&&r.type===`SentenceNode`){let a=-1;for(;i[++a];){let o=i[a];if(o.type===`WordNode`)return bIt.test(a2(o))?(r.children.push(...i),n.children.splice(t,1),r.position&&e.position&&(r.position.end=e.position.end),t):void 0;if(o.type===`SymbolNode`||o.type===`PunctuationNode`)return}}}}),MIt=o2(function(e,t,n){if(e.type!==`SymbolNode`&&e.type!==`PunctuationNode`||a2(e)!==`&`)return;let r=n.children,i=r[t+1];if(!(t>0&&r[t-1].type===`WordNode`||!(i&&i.type===`WordNode`)))return r.splice(t,1),i.children.unshift(e),i.position&&e.position&&(i.position.start=e.position.start),t-1}),NIt=o2(function(e,t,n){if(t>0&&e.type===`PunctuationNode`&&a2(e)===`.`){let r=n.children[t-1];if(r.type===`WordNode`&&r.children&&r.children.length!==1&&r.children.length%2!=0){let i=r.children.length,a=!0;for(;r.children[--i];){let e=r.children[i],t=a2(e);if(i%2==0){if(t.length>1)return;vIt.test(t)||(a=!1)}else if(t!==`.`){if(i<r.children.length-2)break;return}}if(!a)return n.children.splice(t,1),r.children.push(e),r.position&&e.position&&(r.position.end=e.position.end),t}}}),PIt=o2(function(e,t,n){if(t>0&&(e.type===`SymbolNode`||e.type===`PunctuationNode`)){let e=n.children,r=e[t-1];if(r&&r.type===`WordNode`){let n=t-1,i=[],a=[];for(;e[++n];){let t=e[n];if(t.type===`WordNode`)i.push(...a,...t.children),a=[];else if((t.type===`SymbolNode`||t.type===`PunctuationNode`)&&_It.test(a2(t)))a.push(t);else break}if(i.length>0){a.length>0&&(n-=a.length),e.splice(t,n-t),r.children.push(...i);let o=i[i.length-1];return r.position&&o.position&&(r.position.end=o.position.end),t}}}}),FIt=o2(function(e,t,n){let r=n.children,i=r[t-1];if(i&&i.type===`WordNode`&&(e.type===`SymbolNode`||e.type===`PunctuationNode`)&&a2(e)===`/`){let n=a2(i),a=e,o=[e],s=1,c=``,l=r[t+1];if(l&&l.type===`WordNode`&&(c=a2(l),a=l,o.push(...l.children),s++),n.length<3&&(!c||c.length<3))return i.children.push(...o),r.splice(t,s),i.position&&a.position&&(i.position.end=a.position.end),t}}),IIt=o2(function(e,t,n){if(`children`in e){let r=-1;for(;e.children[++r];)if(e.children[r].type===`WordNode`)return;let i=n.children[t-1];if(i&&`children`in i)return i.children.push(...e.children),n.children.splice(t,1),i.position&&e.position&&(i.position.end=e.position.end),t;let a=n.children[t+1];a&&`children`in a&&(a.children.unshift(...e.children),a.position&&e.position&&(a.position.start=e.position.start),n.children.splice(t,1))}}),LIt=/* @__PURE__ */ RegExp(`^([0-9]{1,3}|[a-z]|al|ca|cap|cca|cent|cf|cit|con|cp|cwt|ead|etc|ff|fl|ibid|id|nem|op|pro|seq|sic|stat|tem|viz)$`),RIt=o2(function(e,t,n){if(`children`in e&&e.children.length>1){let r=e.children[e.children.length-1];if(r&&(r.type===`PunctuationNode`||r.type===`SymbolNode`)&&a2(r)===`.`){let i=e.children[e.children.length-2];if(i&&i.type===`WordNode`&&LIt.test(a2(i).toLowerCase())){i.children.push(r),e.children.pop(),r.position&&i.position&&(i.position.end=r.position.end);let a=n.children[t+1];if(a&&a.type===`SentenceNode`)return e.children.push(...a.children),n.children.splice(t+1,1),a.position&&e.position&&(e.position.end=a.position.end),t-1}}}}),zIt=s2(function(e,t,n){if(`children`in e){let t=e.children.length,n=!1;for(;e.children[--t];){let r=e.children[t];if(r.type!==`SymbolNode`&&r.type!==`PunctuationNode`){r.type===`WordNode`&&(n=!0);continue}if(!gIt.test(a2(r)))continue;if(!n){n=!0;continue}if(a2(r)!==`.`)continue;let i=e.children[t-1],a=e.children[t+1];if(i&&i.type===`WordNode`){let n=e.children[t+2];if(a&&n&&a.type===`WhiteSpaceNode`&&a2(n)===`.`)continue;e.children.splice(t,1),i.children.push(r),r.position&&i.position&&(i.position.end=r.position.end),t--}else a&&a.type===`WordNode`&&(e.children.splice(t,1),a.children.unshift(r),r.position&&a.position&&(a.position.start=r.position.start))}}}),BIt=o2(function(e,t,n){if(`children`in e&&e.children.length===0)return n.children.splice(t,1),t}),c2=s2(function(e,t,n){let r=n.children;e.position&&t<1&&(!n.position||!n.position.start)&&(VIt(n),n.position.start=e.position.start),e.position&&t===r.length-1&&(!n.position||!n.position.end)&&(VIt(n),n.position.end=e.position.end)});function VIt(e){e.position||={}}var l2=class{constructor(e,t){let n=t||e;this.doc=n?String(n):void 0,this.tokenizeRootPlugins=[...this.tokenizeRootPlugins],this.tokenizeParagraphPlugins=[...this.tokenizeParagraphPlugins],this.tokenizeSentencePlugins=[...this.tokenizeSentencePlugins]}parse(e){return this.tokenizeRoot(e||this.doc)}tokenizeRoot(e){let t={type:`RootNode`,children:HIt(this.tokenizeParagraph(e),`WhiteSpaceNode`,hIt)},n=-1;for(;this.tokenizeRootPlugins[++n];)this.tokenizeRootPlugins[n](t);return t}tokenizeParagraph(e){let t={type:`ParagraphNode`,children:HIt(this.tokenizeSentence(e),`PunctuationNode`,gIt)},n=-1;for(;this.tokenizeParagraphPlugins[++n];)this.tokenizeParagraphPlugins[n](t);return t}tokenizeSentence(e){let t={type:`SentenceNode`,children:this.tokenize(e)},n=-1;for(;this.tokenizeSentencePlugins[++n];)this.tokenizeSentencePlugins[n](t);return t}tokenize(e){let t=[];if(!e)return t;let n={line:1,column:1,offset:0},r=0,i=0,a={...n},o,s;for(;i<e.length;){let l=e.charAt(i),u=wIt.test(l)?`WhiteSpaceNode`:SIt.test(l)?`PunctuationNode`:CIt.test(l)?`WordNode`:`SymbolNode`;r<i&&o&&u&&(o!==u||o!==`WordNode`&&o!==`WhiteSpaceNode`&&l!==s&&!xIt.test(l))&&(t.push(c(o,e.slice(r,i))),r=i,a={...n}),l===`\r`||l===`
2226
2226
  `&&s!==`\r`?(n.line++,n.column=1):l!==`
2227
- `&&n.column++,n.offset++,o=u,s=l,i++}return o&&r<i&&t.push(c(o,e.slice(r,i))),t;function c(e,t){return e===`WordNode`?{type:`WordNode`,children:[{type:`TextNode`,value:t,position:{start:a,end:{...n}}}],position:{start:a,end:{...n}}}:{type:e,value:t,position:{start:a,end:{...n}}}}}};l2.prototype.tokenizeSentencePlugins=[MIt,kIt,PIt,FIt,NIt,c2],l2.prototype.tokenizeParagraphPlugins=[IIt,TIt,jIt,AIt,RIt,pIt,zIt,OIt,DIt,EIt,BIt,c2],l2.prototype.tokenizeRootPlugins=[OIt,DIt,BIt,c2];function HIt(e,t,n){let r=[],i=-1,a=0;for(;++i<e.children.length;){let o=e.children[i];if(i===e.children.length-1||o.type===t&&n.test(a2(o))){let t={type:e.type,children:e.children.slice(a,i+1)},n=e.children[a],s=o;n.position&&s.position&&(t.position={start:n.position.start,end:s.position.end}),r.push(t),a=i+1}}return r}function UIt(){let e=this;e.parser=t;function t(t){let n=new l2;return u2(n.tokenizeParagraphPlugins,e.data(`nlcstParagraphExtensions`)),u2(n.tokenizeRootPlugins,e.data(`nlcstRootExtensions`)),u2(n.tokenizeSentencePlugins,e.data(`nlcstSentenceExtensions`)),n.parse(t)}}function u2(e,t){t&&e.unshift(...t)}function WIt(){let e=this;e.compiler=GIt}function GIt(e){return a2(e)}const KIt=Je().use(UIt).use(WIt).freeze(),qIt=[`”`,`’`],JIt=[`“`,`‘`],YIt={};function XIt(e){let t=e||YIt,n=[];if(t.quotes!==!1&&n.push(aLt),t.ellipses===`spaced`?n.push(rLt):t.ellipses===`unspaced`?n.push(iLt):t.ellipses!==!1&&n.push(nLt),t.backticks===`all`){if(t.quotes!==!1)throw Error("Cannot accept `backticks: 'all'` with `quotes: true`");n.push(ZIt)}else t.backticks!==!1&&n.push(QIt);t.dashes===`inverted`?n.push(eLt):t.dashes===`oldschool`?n.push(tLt):t.dashes!==!1&&n.push($It);let r={close:t.closingQuotes?[t.closingQuotes.double,t.closingQuotes.single]:qIt,open:t.openingQuotes?[t.openingQuotes.double,t.openingQuotes.single]:JIt};return function(e){p(e,function(e,t,i){let a=-1;if(i&&t!==void 0&&(e.type===`PunctuationNode`||e.type===`SymbolNode`)){for(;++a<n.length;)if(n[a](r,e,t,i)===!0)return console.log(`drop`,e),i.children.splice(t,1),t}})}}function ZIt(e,t,n,r){QIt(e,t,n,r),t.value==="`"?t.value=`‘`:t.value===`'`&&(t.value=`’`)}function QIt(e,t){t.value==="``"?t.value=`“`:t.value===`''`&&(t.value=`”`)}function $It(e,t){t.value===`--`&&(t.value=`—`)}function eLt(e,t,n,r){let i=r.children[n+1];if(t.value===`—`&&i&&i.type===`PunctuationNode`&&i.value===`-`)return i.value=`–`,!0;t.value===`---`?t.value=`–`:t.value===`--`&&(t.value=`—`)}function tLt(e,t,n,r){let i=r.children[n+1];if(t.value===`–`&&i&&i.type===`PunctuationNode`&&i.value===`-`)return i.value=`—`,!0;t.value===`---`?t.value=`—`:t.value===`--`&&(t.value=`–`)}function nLt(e,t,n,r){rLt(e,t,n,r),iLt(e,t,n,r)}function rLt(e,t,n,r){let i=t.value,a=r.children;if(!/^\.+$/.test(i))return;let o=[],s=n,c=1;for(;--s>0;){let e=a[s];if(e.type!==`WhiteSpaceNode`)break;let t=e;if(e=a[--s],e&&(e.type===`PunctuationNode`||e.type===`SymbolNode`)&&/^\.+$/.test(e.value))o.push(t,e),c++;else break}c<3||(a.splice(n-o.length,o.length),t.value=`…`)}function iLt(e,t){/^\.{3,}$/.test(t.value)&&(t.value=`…`)}function aLt(e,t,n,r){let i=r.children,a=t.value;if(a!==`"`&&a!==`'`)return;let o=a===`"`?0:1,s=i[n-1],c=i[n+1],l=i[n+2],u=c?a2(c):``;c&&(c.type===`PunctuationNode`||c.type===`SymbolNode`)&&(!l||l.type!==`WordNode`)?t.value=e.close[o]:c&&(c.type===`PunctuationNode`||c.type===`SymbolNode`)&&(u===`"`||u===`'`)&&l&&l.type===`WordNode`?(t.value=e.open[o],c.value=e.open[u===`"`?0:1]):t.value=c&&/^\d\ds$/.test(u)?e.close[o]:s&&(s.type===`WhiteSpaceNode`||s.type===`PunctuationNode`||s.type===`SymbolNode`)&&c&&c.type===`WordNode`?e.open[o]:s&&s.type!==`WhiteSpaceNode`&&s.type!==`SymbolNode`&&s.type!==`PunctuationNode`||!c||c.type===`WhiteSpaceNode`||a===`'`&&u===`s`?e.close[o]:e.open[o]}const oLt=/* @__PURE__ */ new Set([`text`,`inlineCode`,`paragraph`]),sLt=/* @__PURE__ */ new Set([`style`,`script`]),cLt=(e,t,n)=>n&&(n.type!==`mdxJsxTextElement`||`name`in n&&typeof n.name==`string`&&!sLt.has(n.name))&&oLt.has(e.type)&&(d2(e)||f2(e)),lLt=e=>{let t=KIt().use(XIt,{...e,ellipses:!1,dashes:!1,backticks:!1}),n=KIt().use(XIt,{...e,quotes:!1});return e=>{let r=``,i=0,a=[];p(e,cLt,e=>{d2(e)?r+=e.type===`text`?e.value:`A`.repeat(e.value.length):f2(e)&&(r+=` `),a.push(e)}),/["']/.test(r)&&(r=t.processSync(r).toString());for(let e of a)if(d2(e)){let t=i+e.value.length;if(e.type===`text`){let a=r.slice(i,t);e.value=/\.[\s\u0085]*\.|--|``|''/.test(a)?n.processSync(a).toString():a}i=t}else f2(e)&&(i+=1)}};function d2(e){return`value`in e&&typeof e.value==`string`}function f2(e){return e.type===`paragraph`}const uLt=(function(e){if(e==null)return mLt;if(typeof e==`string`)return pLt(e);if(typeof e==`object`)return Array.isArray(e)?dLt(e):fLt(e);if(typeof e==`function`)return p2(e);throw Error(`Expected function, string, or object as test`)});function dLt(e){let t=[],n=-1;for(;++n<e.length;)t[n]=uLt(e[n]);return p2(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1}}function fLt(e){return p2(t);function t(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function pLt(e){return p2(t);function t(t){return t&&t.type===e}}function p2(e){return t;function t(t,...n){return!!(t&&typeof t==`object`&&`type`in t&&e.call(this,t,...n))}}function mLt(){return!0}function hLt(e){return`\x1B[33m`+e+`\x1B[39m`}const gLt=(function(e,t,n,r){typeof t==`function`&&typeof n!=`function`&&(r=n,n=t,t=null);let i=uLt(t),a=r?-1:1;o(e,void 0,[])();function o(e,s,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+hLt(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=[],u,d,f;if((!t||i(e,s,c[c.length-1]||null))&&(l=_Lt(n(e,c)),l[0]===!1))return l;if(e.children&&l[0]!==`skip`)for(d=(r?e.children.length:-1)+a,f=c.concat(e);d>-1&&d<e.children.length;){if(u=o(e.children[d],d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+a}return l}}});function _Lt(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:[e]}const m2=(function(e,t,n,r){typeof t==`function`&&typeof n!=`function`&&(r=n,n=t,t=null),gLt(e,t,i,r);function i(e,t){let r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}}),vLt=[`.mdx`,`.md`],yLt=[`.jpeg`,`.jpg`,`.jfif`,`.pjpeg`,`.pjp`,`.png`,`.svg`,`.svgz`,`.ico`,`.webp`,`.gif`,`.apng`,`.avif`,`.bmp`,`.mp4`,`.css`,`.xml`],bLt=e=>!(e.dir===`node_modules`||e.dir.startsWith(`node_modules/`)),xLt=e=>!(e.dir===`.github`||e.dir.startsWith(`.github/`)),h2=e=>vLt.includes(e.ext),SLt=e=>yLt.includes(e.ext),CLt=e=>h2(e)||SLt(e),wLt=e=>e.map(v2).map(Tt).filter(bLt),TLt=e=>wLt(e).filter(h2).filter(xLt),ELt=e=>wLt(e).filter(CLt).filter(xLt),DLt=e=>Ct(e.dir,e.base),OLt=e=>Ct(e.dir,e.name),g2=e=>e.split(`#`)[0].split(`?`)[0],kLt=(e,t=[])=>TLt(jP(e,e,t)).map(DLt),_2=(e,t=[])=>ELt(jP(e,e,t)).map(DLt),v2=e=>wt(y2(e)),y2=e=>e.startsWith(`/`)?e.slice(1):e;var b2;(function(e){e.INTERNAL=`internal`,e.EXTERNAL=`external`,e.DATA=`data`})(b2||={});const ALt=e=>{try{return decodeURIComponent(e)}catch{return e}},x2=e=>/[:*]/.test(e);var S2;(function(e){e.MD=`md`,e.SRC=`src`,e.HREF=`href`,e.CARD=`card`,e.IMPORT=`import`,e.DEFINITION=`definition`})(S2||={});var jLt;(function(e){e.CONTENT=`content`,e.NAVIGATION=`navigation`})(jLt||={});var C2=class e{static getPathType(e){let t;return t=URL.canParse(e)?b2.EXTERNAL:e.startsWith(`data:`)?b2.DATA:b2.INTERNAL,t}constructParsedPath(){let t=e.getPathType(this.originalPath),n,r;if(t===b2.INTERNAL){let e=new URL(`mintlify:/`);e.pathname=`/${this.relativeDir}/${this.filename}`.replaceAll(Fr,`/`),n=new URL(this.originalPath.replaceAll(Fr,`/`),e);let t=ALt(n.pathname).slice(1);t.endsWith(`/`)&&(t=t.slice(0,-1)),t===``&&(t=`.`),r=Tt(t)}else try{n=new URL(this.originalPath),r=n}catch{throw Error(`Failed to parse path as URL: ${this.originalPath}. If this is a purposefully malformed path, please wrap it in backticks, i.e \`${this.originalPath}\` `)}let i=n.hash?t===b2.INTERNAL?ALt(n.hash):n.hash:void 0,a=n.searchParams;return{path:r,pathType:t,anchorLink:i,queryParams:a}}constructor(e,t=``,n=``,r,i){this.originalPath=e,this.relativeDir=t,this.filename=n,this.wrapper=r,this.line=i,this.pagePaths=[],this.relativeDir=v2(t);let{path:a,pathType:o,anchorLink:s,queryParams:c}=this.constructParsedPath();this.path=a,this.pathType=o,this.anchorLink=s,this.queryParams=c}toString(){if(this.pathType===b2.INTERNAL){let e=this.path;return Ct(e.dir,e.base)}return this.path.toString()}getResolvedFiles(e,t){if(this.pathType!==b2.INTERNAL||this.path instanceof URL)return[];let{dir:n,name:r,base:i}=Tt(this.toString()),a=[];return Xt(Ot(t,this.toString()))&&a.push(Ct(n,i)),a.push(...e.lookup(n,r,i)),a}keepsMdxExtension(){let e=this.wrapper===S2.DEFINITION?this.originalPath:this.wrapper===S2.MD||this.wrapper===S2.HREF?oMe(Ct(this.relativeDir,this.filename),this.originalPath,!0):void 0;return e!==void 0&&/\.mdx$/i.test(g2(e))}resolvesTo(e,t,n){return this.pathType===b2.INTERNAL&&!!(this.toString()===e.toString()||this.getResolvedFiles(t,n).includes(e.toString()))}static filterMapInternalPaths(t){return t.map(t=>new e(t)).filter(({pathType:e})=>e===b2.INTERNAL).map(e=>e.toString())}},MLt=class e{constructor(t){this.byDirAndName=/* @__PURE__ */ new Map,t.forEach((t,n)=>{let r=t.startsWith(`/`)?t.slice(1):t,{dir:i,name:a}=Tt(r),o=e.key(i,a),s=[n,r],c=this.byDirAndName.get(o);c?c.push(s):this.byDirAndName.set(o,[s])})}static key(e,t){return`${e}\0${t}`}lookup(t,n,r){let i=this.byDirAndName.get(e.key(t,n))??[],a=r===n?[]:this.byDirAndName.get(e.key(t,r))??[];return[...i,...a].sort(([e],[t])=>e-t).map(([,e])=>e)}},w2=class{constructor(e,t=[]){this.label=e,this.paths=t,this.edges=[],this.headingSlugs=null,this.relativeDir=v2(bt(e)),this.filename=yt(e),this.label=Ct(this.relativeDir,this.filename)}toString(){return this.label}equals(e){return this.label===e.label}addPath(e,t,n){let r=new C2(e,this.relativeDir,this.filename,t,n);this.paths.push(r)}addOutgoingEdge(e){let t=this.edges.find(t=>t.equals(e));t?t.incrementCount():this.edges.push(e)}getChildNodes(e=1){let t=[];for(let n of this.edges){let r=n.target;t.push(r),e>1&&t.push(...r.getChildNodes(e-1))}return t}},NLt=class{constructor(e,t,n){this.source=e,this.target=t,this.edgeType=n,this.count=0,this.count++}incrementCount(){this.count++}getCount(){return this.count}equals(e){return this.source.equals(e.source)&&this.target.equals(e.target)&&this.edgeType===e.edgeType}},PLt=class{constructor(e,t=[]){this.baseDir=e,this.nodes=Object.create(null),this.edges=[],this.fileResolutionMap=/* @__PURE__ */ new Map,this.redirectMap=/* @__PURE__ */ new Map,this.wildcardRedirects=[],this.configRedirects=[],this.mintIgnoreGlobs=[],this.virtualNodes=/* @__PURE__ */ new Set,this.snippetReferencesByFile=/* @__PURE__ */ new Map,this.baseDir=Ot(e),this.mintIgnoreGlobs=t}addNode(e){return this.nodes[e]||(this.nodes[e]=new w2(e)),this.nodes[e]}addNodes(e){for(let t of e)this.addNode(t)}addVirtualNodes(e){for(let t of e)this.addNode(t),this.virtualNodes.add(new w2(t).toString())}setRedirects(e){this.configRedirects=e,this.redirectMap.clear();for(let t of e){let e=v2(t.source);this.redirectMap.has(e)||this.redirectMap.set(e,v2(t.destination))}this.wildcardRedirects=[...this.redirectMap].filter(([e])=>x2(e))}matchesWildcardPattern(e,t){let n=`^${t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`).replace(/:(\w+)/g,`(?<$1>[^/]+)`).replace(/\\\*/g,`(.*)`)}$`;return new RegExp(n).test(e)}applyWildcardRedirect(e,t,n){let r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),i=[],a=r.replace(/:(\w+)/g,(e,t)=>(i.push({type:`param`,name:t}),`(?<${t}>[^/]+)`)).replace(/\\\*/g,()=>(i.push({type:`wildcard`}),`(.*)`)),o=RegExp(`^${a}$`),s=e.match(o);if(!s)return n;let c=n,l=s.groups||{};for(let[e,t]of Object.entries(l))c=c.replace(RegExp(`:${e}`,`g`),t);let u=s.slice(1),d=0,f=u.filter((e,t)=>i[t]&&i[t].type===`wildcard`);return c=c.replace(/\*/g,()=>f[d++]||``),c}addAliasNodes(){let e=C2.filterMapInternalPaths(nYe(this.baseDir,this.baseDir,this.mintIgnoreGlobs)).filter(e=>!TP(e,this.mintIgnoreGlobs));this.addNodes(e)}getNode(e){return this.nodes[e]}getAnchorTargetFiles(e){this.fileResolutionMap.size===0&&this.precomputeFileResolutions();let t=new Set(Object.keys(this.nodes)),n=/* @__PURE__ */ new Set;for(let r of Object.values(this.nodes))for(let i of r.paths.flatMap(e=>[e,...e.pagePaths]))if(i.pathType===b2.INTERNAL&&i.anchorLink&&e.has(Ct(i.relativeDir,i.filename)))for(let e of this.getHeadingSlugCandidates(i.toString(),t)){let t=this.nodes[e];if(t&&(n.add(e),t.headingSlugs!==null))break}return n}addEdge(e,t,n=jLt.CONTENT){let r=new NLt(e,t,n);return this.edges.find(e=>e.equals(r)?(e.incrementCount(),!0):!1)||(this.edges.push(r),r)}addEdgesBetweenNodes(){let e=new MLt(_2(this.baseDir,this.mintIgnoreGlobs));for(let t of Object.values(this.nodes))for(let n of t.paths)if(n.pathType===b2.INTERNAL){let r=Object.values(this.nodes).find(t=>n.resolvesTo(t,e,this.baseDir));if(r){let e=this.addEdge(t,r);t.addOutgoingEdge(e)}}}precomputeFileResolutions(){let e=new MLt(_2(this.baseDir,this.mintIgnoreGlobs)),t=/* @__PURE__ */ new Set;Object.values(this.nodes).forEach(n=>{n.paths.flatMap(e=>[e,...e.pagePaths]).filter(e=>e.pathType===b2.INTERNAL).forEach(n=>{let r=n.toString();if(t.has(r))return;t.add(r);let i=n.getResolvedFiles(e,this.baseDir);this.fileResolutionMap.set(r,new Set(i))})})}getHeadingSlugCandidates(e,t){let n=[...this.fileResolutionMap.get(e)??[]].filter(e=>t.has(e)),r=Ct(e,`index.mdx`),i=this.nodes[r]?r:Ct(e,`index.md`);return[...n,e,i]}getHeadingSlugsForPath(e,t){for(let n of this.getHeadingSlugCandidates(e,t)){let e=this.nodes[n];if(e&&e.headingSlugs!==null)return e.headingSlugs}}getBrokenInternalLinks(e){this.fileResolutionMap.size===0&&this.precomputeFileResolutions();let t=/* @__PURE__ */ new Set,n=new Set(Object.values(this.nodes).map(e=>e.toString()));for(let r of Object.values(this.nodes))for(let i of r.paths.flatMap(e=>[e,...e.pagePaths]))if(i.pathType===b2.INTERNAL){let r=i.toString(),a=this.fileResolutionMap.get(r),o=r===`.`||a&&[...a].some(e=>n.has(e))||this.virtualNodes.has(r);if(i.keepsMdxExtension()&&!this.redirectsToPage(r)||!o&&!this.reachesPage(r))t.add(i);else if(e?.checkAnchors&&i.anchorLink){let e=JE(i.anchorLink.slice(1)),a=this.getHeadingSlugsForPath(r,n);a&&!a.has(e)&&t.add(i)}}return Object.values(this.nodes).flatMap(e=>e.paths).filter(e=>t.has(e)&&(e.pagePaths.length===0||e.pagePaths.some(e=>t.has(e))))}getLinksTo(e){let t=this.getPageRoute(e.toString()),n=n=>n.pathType===b2.INTERNAL&&!n.originalPath.startsWith(`#`)&&this.getPageRoute(n.toString())===t&&(!e.anchorLink||n.anchorLink===e.anchorLink);return Object.values(this.nodes).flatMap(e=>e.paths).filter(e=>n(e)||e.pagePaths.some(n))}getPageRoute(e){let t=[...this.getPageCandidates(e),e].find(e=>this.nodes[e])??e,n=Tt(t),r=h2(n)?OLt(n):t;return yt(r)===`index`?bt(r):r}getPageCandidates(e){return e===`.`?[`index.mdx`,`index.md`]:[`${e}.mdx`,`${e}.md`,Ct(e,`index.mdx`),Ct(e,`index.md`)]}isPageRoute(e){return this.getPageCandidates(e).some(e=>this.nodes[e])||this.virtualNodes.has(e)}resolvesToValidPath(e,t=/* @__PURE__ */ new Set){if(URL.canParse(e))return!0;let n=g2(e);return!n||x2(n)?!0:this.reachesPage(v2(n),t)}redirectsToPage(e){let t=this.getRedirectTarget(e);return t!==void 0&&this.resolvesToValidPath(t,/* @__PURE__ */ new Set([e]))}reachesPage(e,t=/* @__PURE__ */ new Set){if(t.has(e))return!1;t.add(e);let n=this.getExactRedirectTarget(e);if(n!==void 0)return this.resolvesToValidPath(n,t);if(e!==`.`&&this.nodes[e]||this.isPageRoute(e))return!0;let r=this.getRedirectTarget(e);return r!==void 0&&this.resolvesToValidPath(r,t)}getExactRedirectTarget(e){return this.redirectMap.get(e)}getRedirectTarget(e){let t=this.getExactRedirectTarget(e);if(t!==void 0)return t;for(let[t,n]of this.wildcardRedirects)if(this.matchesWildcardPattern(e,t))return this.applyWildcardRedirect(e,t,n)}getBrokenRedirects(){let e=[],t=/* @__PURE__ */ new Set;for(let{source:n,destination:r}of this.configRedirects){let i=v2(n);t.has(i)||(t.add(i),!URL.canParse(r)&&(x2(g2(r))||this.resolvesToValidPath(r)||e.push({source:n,destination:r})))}return e}getExternalPathsByNode(){let e=/* @__PURE__ */ new Map;for(let[t,n]of Object.entries(this.nodes)){let r=n.paths.filter(e=>e.pathType===b2.EXTERNAL);r.length>0&&e.set(t,r)}return e}getAllInternalPaths(){return Object.values(this.nodes).flatMap(e=>e.paths).filter(e=>e.pathType===b2.INTERNAL).map(e=>e.originalPath+` => `+e.toString())}},T2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const E2=e=>T2(void 0,void 0,void 0,function*(){for(let t of[`docs.json`,`mint.json`]){let n=vt.join(e,t);if(lF.default.existsSync(n))try{let{resolved:r}=yield cF(yield lF.default.readJSON(n),e);if(r&&typeof r==`object`&&!Array.isArray(r))return{configFile:t,json:r}}catch(e){console.warn(`Warning: Failed to read or resolve ${t}: ${e}`)}}return null}),FLt=e=>T2(void 0,void 0,void 0,function*(){let t=yield E2(e);return t?t.configFile===`docs.json`?Md(Ad(t.json)):jd(t.json):null}),ILt=e=>T2(void 0,void 0,void 0,function*(){let t=yield E2(e);if(!t||t.configFile!==`docs.json`)return null;let n=Md(Ad(t.json));return n.success?n.data:null});var LLt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const RLt=e=>LLt(void 0,void 0,void 0,function*(){let t=yield ILt(e);if(!t)return[];let{generatedRoutes:n}=yield oB(t,t=>sB(t,e),{onSourceError:(e,t)=>console.warn(`Warning: Failed to load GraphQL schema ${e}: ${t}`)});return n});var zLt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const BLt=e=>typeof e==`string`&&e!==``&&Ff(e)===void 0&&CJe(e)===void 0,D2=e=>{if(typeof e!=`object`||!e)return[];if(Array.isArray(e))return e.flatMap(D2);let t=e,n=[];if(typeof t.href==`string`&&n.push(t.href),BLt(t.root)&&n.push(t.root.startsWith(`/`)?t.root:`/${t.root}`),Array.isArray(t.pages))for(let e of t.pages)BLt(e)&&n.push(e.startsWith(`/`)?e:`/${e}`);for(let e of Object.values(t))n.push(...D2(e));return n},VLt=e=>zLt(void 0,void 0,void 0,function*(){let t=yield E2(e);if(t&&t.json.navigation)return{hrefs:D2(t.json.navigation),configFile:t.configFile}});var HLt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const ULt=(e,t)=>HLt(void 0,void 0,void 0,function*(){let n=[];try{let r=yield ILt(e),i=r?df(r):void 0,a=yield nnt(e,{explicitOverlays:i,fetchRemoteDocument:t?.fetchRemoteDocument});if(r){let o=yield tnt(e,{explicitOverlays:i,fetchRemoteDocument:t?.fetchRemoteDocument}),s=yield WLt(r,o,t?.fetchRemoteDocument),c=[...a,...s],l={};try{yield J9e(r.navigation,c,l,{writeFiles:!1,overlayRegistry:o,fetchRemoteDocument:t?.fetchRemoteDocument})}catch(e){console.warn(`Warning: Failed to extract OpenAPI pages from navigation: ${e}`)}n.push(...Object.keys(l))}for(let e of a)try{let{pagesAcc:t}=yield tZe(e.spec,{openApiFilePath:e.originalFileLocation,writeFiles:!1,outDir:`api-reference`});n.push(...Object.keys(t))}catch(t){console.warn(`Warning: Failed to extract pages from OpenAPI spec ${e.originalFileLocation}: ${t}`)}}catch(e){console.warn(`Warning: Failed to categorize files for OpenAPI extraction: ${e}`)}return[...new Set(n)]}),WLt=(e,t,n)=>HLt(void 0,void 0,void 0,function*(){try{return yield cB(`docs`,e,void 0,t,n)}catch(e){return console.warn(`Warning: Failed to fetch URL-based OpenAPI specs: ${e}`),[]}});var GLt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const KLt=e=>GLt(void 0,void 0,void 0,function*(){let t=[],n=yield FLt(e);return n&&n.success&&`redirects`in n.data&&n.data.redirects&&t.push(...n.data.redirects),t}),qLt=[`ImportDefaultSpecifier`,`ImportNamespaceSpecifier`],JLt=e=>{let t=[],n=[],r=[],i=/* @__PURE__ */ new Set;m2(e,e=>{if(st(e)&&lt(e)){for(let n of e.data.estree.body){if(!f(n)||typeof n.source.value!=`string`)continue;let e=n.source.value;t.push(e);for(let t of n.specifiers)qLt.includes(t.type)&&r.push({source:e,name:t.local.name})}return}if(!g(e)||!e.name||(i.add(e.name),e.name!==`Snippet`))return;let a=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===`file`)?.value;typeof a==`string`&&n.push(`/_snippets/`+y2(a))});for(let{source:e,name:t}of r)i.has(t)&&n.push(e);return{imported:t,rendered:n}},YLt=[`snippets/`,`_snippets/`],O2=e=>e.replaceAll(Fr,`/`),XLt=({originalPath:e,pathType:t,wrapper:n})=>n!==S2.IMPORT&&t===b2.INTERNAL&&!e.startsWith(`/`),ZLt=(e,t)=>{var n;let r=new Map([...t.keys()].map(e=>[O2(e),e])),i=(e,t)=>e.flatMap(e=>{let n=GT(e,O2(t)),i=n&&r.get(y2(n));return i?[i]:[]}),a=/* @__PURE__ */ new Set;for(let[e,{imported:n}]of t){let t=O2(e).toLowerCase();YLt.some(e=>t.startsWith(e))&&a.add(e);for(let t of i(n,e))a.add(t)}let o=(e,n)=>{let r=t.get(e)?.rendered??[];for(let t of i(r,e))!n.has(t)&&a.has(t)&&(n.add(t),o(t,n));return n},s=/* @__PURE__ */ new Map;for(let e of t.keys())a.has(e)||s.set(e,o(e,/* @__PURE__ */ new Set));for(let[t,r]of s){let i=e.getNode(t);if(i)for(let t of r){let r=e.getNode(t);for(let e of r?.paths.filter(XLt)??[])e.pagePaths.push(new C2(e.originalPath,i.relativeDir,i.filename,e.wrapper));for(let e of r?.headingSlugs??[])(n=i.headingSlugs)==null||n.add(e)}}},QLt=(e,t,n)=>{let r=/* @__PURE__ */ new Set;if(!n.checkAnchors&&!n.checkSnippets)return r;let i=n.checkAnchors?[...e.getAnchorTargetFiles(t)]:[];for(let e of i)r.add(O2(e));let a=new Map([...e.snippetReferencesByFile.keys()].map(e=>[O2(e),e])),o=/* @__PURE__ */ new Set,s=t=>{if(o.has(t))return;o.add(t);let n=a.get(t),i=n?e.snippetReferencesByFile.get(n)?.rendered??[]:[];for(let e of i){let n=GT(e,t);if(!n)continue;let i=y2(n);r.add(i),s(i)}};for(let e of[...t,...i])s(O2(e));return r};var $Lt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const eRt=e=>{let t=/* @__PURE__ */ new Set;for(let n of e){t.add(qE(n.slug));for(let e of eRt(n.children))t.add(e)}return t},tRt=/* @__PURE__ */ new Set([`ParamField`,`Param`,`ResponseField`]),nRt=/* @__PURE__ */ new Set([`query`,`path`,`body`,`header`,`name`]),rRt=e=>{let t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Map;return m2(e,`mdxJsxFlowElement`,e=>{if(tRt.has(e.name??``)){let r=e.attributes.find(e=>`name`in e&&nRt.has(e.name));if(r&&typeof r.value==`string`&&r.value){let e=n.get(r.value)??0;n.set(r.value,e+1),t.add(TDe(r.value,e))}return}if(fNe.has(e.name??``))return;let r=e.attributes.find(e=>`name`in e&&e.name===`id`);if(r&&typeof r.value==`string`&&r.value){let n=pNe.has(e.name??``)?qE(r.value):r.value;t.add(n)}}),t},iRt=e=>{if(typeof e==`string`)return e;let t=(e?.data?.estree)?.body[0],n=t?.type===`ExpressionStatement`?t.expression:void 0;if(n?.type===`Literal`&&typeof n.value==`string`)return n.value;if(n?.type===`TemplateLiteral`&&n.expressions.length===0)return n.quasis[0]?.value.cooked??void 0},aRt=(e,t,n)=>$Lt(void 0,void 0,void 0,function*(){let r={},i=()=>t=>{let n=/* @__PURE__ */ new Set;return m2(t,[`linkReference`,`imageReference`],e=>{`identifier`in e&&n.add(e.identifier)}),m2(t,t=>{let r=t.position?.start.line,i=r===void 0?void 0:s[r-1];if(t.type===`link`||t.type===`image`){e.addPath(t.url,S2.MD,i);return}if(t.type===`definition`){n.delete(t.identifier)&&e.addPath(t.url,S2.DEFINITION,i);return}let a=t;if(a.name===`img`||a.name===`source`){let t=a.attributes.findIndex(e=>e.type===`mdxJsxAttribute`&&e.name===`src`),n=iRt(a.attributes[t]?.value);if(typeof n==`string`){e.addPath(n,S2.SRC,i);return}}else if(a.name===`a`||a.name===`Card`){let t=a.attributes.findIndex(e=>e.type===`mdxJsxAttribute`&&e.name===`href`),n=iRt(a.attributes[t]?.value);if(typeof n==`string`){e.addPath(n,S2.HREF,i);return}}}),t},a=Py(t),o=O(a),s=pe(a),c=PT().use(lLt).use(i).use(Ije).use(Wje,r),l=c.parse(o),u=JLt(l);if(n?.checkSnippets)for(let t of u.imported)e.addPath(t,S2.IMPORT);yield c.run(l);let d=r.tableOfContents?eRt(r.tableOfContents):/* @__PURE__ */ new Set,f=rRt(l);return e.headingSlugs=/* @__PURE__ */ new Set([...d,...f]),u}),oRt=(e,t)=>$Lt(void 0,void 0,void 0,function*(){let n=e||process.cwd(),r=yield fF(n),i=new PLt(n,r),a=_2(n,r).filter(e=>!TP(e,r));i.addNodes(a);let o=yield KLt(n);i.setRedirects(o),i.addAliasNodes();try{let e=yield ULt(n,{fetchRemoteDocument:t?.fetchRemoteDocument});i.addVirtualNodes(e)}catch(e){console.warn(`Warning: Failed to extract OpenAPI page paths: ${e}`)}try{let e=yield RLt(n);i.addVirtualNodes(e)}catch(e){console.warn(`Warning: Failed to extract GraphQL page paths: ${e}`)}let s=yield VLt(n);if(s){let e=i.addNode(s.configFile);for(let t of s.hrefs){let n=t===`/`||t===``?`/index`:t.replace(/^\/#/,`/index#`);e.addPath(n)}}let c=kLt(n,r).filter(e=>!TP(e,r)),l=/* @__PURE__ */ new Map,u=0;return yield Promise.all(Array.from({length:Math.min(8,c.length)},()=>$Lt(void 0,void 0,void 0,function*(){for(;u<c.length;){let e=c[u++];if(e===void 0)continue;let r=i.getNode(e);if(!r)continue;let a=lF.default.readFileSync(vt.join(n,e)).toString();try{let n=yield aRt(r,a,{checkSnippets:t?.checkSnippets});l.set(e,n)}catch(n){let r=/* @__PURE__ */ Error(`Syntax error - Unable to parse ${e} - ${n}`);if(!t?.onParseError)throw r;t.onParseError(e,r)}}}))),ZLt(i,l),i.snippetReferencesByFile=l,i});var k2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const sRt=e=>{try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}},cRt=(e,t)=>k2(void 0,void 0,void 0,function*(){let n=new AbortController,r=setTimeout(()=>n.abort(),1e4);try{let r=yield fetch(e,{method:t,signal:n.signal,headers:{"User-Agent":`Mintlify-LinkChecker/1.0`},redirect:`follow`});return yield r.body?.cancel().catch(()=>void 0),r.status}finally{clearTimeout(r)}}),lRt=/* @__PURE__ */ new Set([404,405]),uRt=e=>k2(void 0,void 0,void 0,function*(){try{let t=yield cRt(e,`HEAD`),n=lRt.has(t)?yield cRt(e,`GET`).catch(()=>t):t;return{ok:n!==404,status:n}}catch(e){return{ok:!1,status:null,error:e instanceof Error?e.message:`unknown error`}}}),dRt=(e,t,n)=>k2(void 0,void 0,void 0,function*(){let r=[],i=0,a=()=>k2(void 0,void 0,void 0,function*(){for(;i<e.length;){let n=i++;r[n]=yield t(e[n])}}),o=Array.from({length:Math.min(n,e.length)},()=>a());return yield Promise.all(o),r}),fRt=(e,t)=>k2(void 0,void 0,void 0,function*(){let n=/* @__PURE__ */ new Map;for(let[r,i]of e.getExternalPathsByNode())if(!t?.sourceFiles||t.sourceFiles.has(r)){for(let e of i)if(sRt(e.originalPath)){let t=e.originalPath,i=n.get(t),a={file:r,originalPath:e.originalPath};i?i.push(a):n.set(t,[a])}}let r=[...n.keys()];return(yield dRt(r,e=>k2(void 0,void 0,void 0,function*(){let t=yield uRt(e);if(t.ok)return null;let r={url:e,status:t.status,sources:n.get(e)};return t.error&&(r.error=t.error),r}),5)).filter(e=>e!==null)});var A2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const pRt=/[*?]/,mRt=/\.mdx?$/i,hRt=/[.+^${}()|\\[\]]/,gRt=/* @__PURE__ */ new Set([`.git`,`node_modules`]);function _Rt(e){return e.split(Rt.sep).join(`/`)}function vRt(e){return _Rt(e).replace(/^\.\//,``)}function yRt(e){let t=``,n=0;for(;n<e.length;){let r=e[n];r===`*`?e[n+1]===`*`?e[n+2]===`/`?(t+=`(?:[^/]+/)*`,n+=3):(t+=`.*`,n+=2):(t+=`[^/]*`,n+=1):r===`?`?(t+=`[^/]`,n+=1):(t+=hRt.test(r)?`\\${r}`:r,n+=1)}return RegExp(`^${t}$`)}function bRt(e){return A2(this,void 0,void 0,function*(){try{return(yield Wn.stat(e)).isFile()}catch{return!1}})}function xRt(e){return A2(this,arguments,void 0,function*(e,t=``){let n=yield Wn.readdir(Rt.join(e,t),{withFileTypes:!0}),r=[];for(let i of n){if(gRt.has(i.name))continue;let n=t?`${t}/${i.name}`:i.name;i.isDirectory()?r.push(...yield xRt(e,n)):r.push(n)}return r})}var SRt=class extends Error{};function CRt(e,t){return A2(this,void 0,void 0,function*(){let n=null,r=[],i=[];for(let a of t){let t=vRt(a);if(pRt.test(t)){n??=yield xRt(e);let o=yRt(t),s=n.filter(e=>mRt.test(e)&&o.test(e)).sort();s.length===0?i.push(a):r.push(...s)}else(yield bRt(Rt.join(e,t)))?r.push(t):i.push(a)}if(i.length>0)throw new SRt(`No matching files for: ${i.join(`, `)} (globs match .md and .mdx files)`);return[...new Set(r)]})}var wRt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const TRt=e=>{for(let t of e)OH((0,R.jsx)(bH,{message:t}));e.length>0&&OH((0,R.jsx)(yH,{message:`skipped ${e.length} file(s) that could not be parsed; links in them were not checked`}))},ERt=e=>{if(!e.trim())return`--links-to needs a page path, e.g. /guides/setup`;if(e.startsWith(`#`))return`--links-to needs a page path before the anchor, e.g. /guides/setup${e}`;if(e.startsWith(`//`)||URL.canParse(e))return`--links-to takes a page path, not a full URL: ${e}`},DRt=e=>wRt(void 0,void 0,void 0,function*(){yield Xjt();let t=e[`links-to`],n=t===void 0?void 0:ERt(t);if(n)OH((0,R.jsx)(bH,{message:n})),yield d1(1);else{OH((0,R.jsx)(vH,{message:t===void 0?`checking for broken links...`:`finding links to ${t}...`}));try{let n=yield Jjt(a1),r=(e.files??[]).map(String).filter(Boolean),i=r.length>0?new Set((yield CRt(a1,r)).map(e=>vt.relative(n,vt.resolve(a1,e)))):void 0,a=/* @__PURE__ */ new Map,o=yield oRt(n,{checkSnippets:e[`check-snippets`],onParseError:(e,t)=>a.set(e,t.message)});o.precomputeFileResolutions();let s=i?QLt(o,i,{checkAnchors:e[`check-anchors`],checkSnippets:e[`check-snippets`]}):void 0,c=[...a].filter(([e])=>!i||i.has(e)||s?.has(e.split(vt.sep).join(`/`))).map(([,e])=>e),l=({relativeDir:e,filename:t})=>!i||i.has(vt.join(e,t));if(t!==void 0){let e=o.getLinksTo(new C2(t)).filter(l);MH(),e.length>0?OH((0,R.jsx)(Bat,{target:t,links:e.map(e=>({file:vt.join(e.relativeDir,e.filename),line:e.line,link:e.originalPath}))})):OH((0,R.jsx)(_H,{message:`no links to ${t} found`})),TRt(c),yield d1(0);return}let u=o.getBrokenInternalLinks({checkAnchors:e[`check-anchors`]}).filter(l),d={};if(u.forEach(e=>{let t=vt.join(e.relativeDir,e.filename),n=d[t];n?n.push(e.originalPath):d[t]=[e.originalPath]}),e[`check-external`]){let e=yield fRt(o,i?{sourceFiles:i}:void 0);for(let t of e)for(let e of t.sources){let n=t.status?`${t.url} (${t.status})`:`${t.url} (${t.error})`,r=d[e.file];r?r.push(n):d[e.file]=[n]}}if(e[`check-redirects`]){let e=o.getBrokenRedirects();if(e.length>0){let t=yield Wn.access(vt.join(n,`docs.json`)).then(()=>`docs.json`).catch(()=>`mint.json`),r=e.map(({source:e,destination:t})=>`${e} → ${t}`),i=d[t];i?i.push(...r):d[t]=r}}let f=Object.keys(d).length>0;!f&&c.length===0&&(MH(),OH((0,R.jsx)(_H,{message:`no broken links found`})),yield d1(0)),MH(),OH(f?(0,R.jsx)(zat,{brokenLinksByFile:d}):(0,R.jsx)(_H,{message:`no broken links found in the files that parsed`})),TRt(c)}catch(e){OH((0,R.jsx)(bH,{message:e instanceof Error?e.message:`unknown error`})),yield d1(1)}yield d1(1)}});var ORt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function kRt(e,t){return()=>ORt(this,void 0,void 0,function*(){M1()?OH((0,R.jsx)(_H,{message:`Thanks for your interest in "${t} ${e}"! Your vote has been counted.`})):OH((0,R.jsx)(yH,{message:`Telemetry is disabled, so your vote won't be counted. Enable it with: ${t} --telemetry=true`})),OH((0,R.jsx)(pH,{dimColor:!0,children:`This feature is currently in development. Learn more at https://mintlify.com/docs`})),yield d1(0)})}var j2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const ARt=F({status:at(`ready`),deploymentId:Ke().min(1),subdomain:Ke().min(1),remote:Le(),branch:at(`main`),expiresAt:Ie(),orgSlug:Ke().min(1).optional()}),jRt=Ae(`status`,[ARt.extend({code:at(`deployment_already_exists`)}),F({status:at(`provisioning`),code:at(`deployment_already_exists`),deploymentId:Ke().optional(),subdomain:Ke().optional()}),F({status:at(`expired`),code:Te([`deployment_already_exists`,`deployment_claim_expired`]),deploymentId:Ke(),subdomain:Ke(),expiresAt:Ie().optional()})]),MRt=F({remote:Le(),branch:at(`main`),token:Ke().min(1),tokenExpiresAt:Ie()}),NRt=F({subdomain:Ke().min(1),trustedRepos:Ye(F({repositoryId:Ke(),repository:Ke(),branch:Ke()}))});function PRt(e,t,n){return j2(this,void 0,void 0,function*(){for(let r=0;r<4;r++){let i=yield z1(`${e}/api/agent/deployments/provision`,{method:`POST`,headers:{Authorization:`Bearer ${t}`,"Content-Type":`application/json`},body:JSON.stringify(Object.assign(Object.assign({},n),{docsPath:``}))});if(i.status!==409)return Object.assign(Object.assign({},yield B1(i,ARt)),{created:!0});let a=yield i.json().catch(()=>null),o=jRt.safeParse(a);if(!o.success)throw Error(`The deployment service returned an unexpected response.`);if(o.data.status!==`provisioning`)return Object.assign(Object.assign({},o.data),{created:!1});r<3&&(yield Ir(1e3*(r+1)))}throw Error(`Your site is still provisioning. Run the same command again.`)})}function FRt(e,t){return j2(this,void 0,void 0,function*(){return B1(yield z1(`${e}/api/agent/deployments/token`,{method:`POST`,headers:{Authorization:`Bearer ${t}`}}),MRt)})}function IRt(e,t,n){return j2(this,void 0,void 0,function*(){return B1(yield z1(`${e}/api/agent/deployments/github-actions/token`,{method:`POST`,headers:{Authorization:`Bearer ${t}`,"Content-Type":`application/json`},body:JSON.stringify({subdomain:n})}),MRt)})}function LRt(e,t,n){return j2(this,void 0,void 0,function*(){return B1(yield z1(`${e}/api/agent/deployments/trusted-repos`,{method:`POST`,headers:{Authorization:`Bearer ${t}`,"Content-Type":`application/json`},body:JSON.stringify(n)}),NRt)})}var RRt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function zRt(e,t){return RRt(this,arguments,void 0,function*(e,t,n=()=>{}){let{apiUrl:r}=e,i=Rt.resolve(e.directory),a=JSON.stringify([new URL(r).origin,i]),o=SMt(a);n(`Authenticating agent...`);let s=e.newSite?null:yield eNt(r,i).catch(()=>{if(o)throw Error(`Could not read this site’s saved credentials. Unlock your keyring or use --new for another site.`);return t(`Could not read the keyring. Continuing with a new registration for this run.`),null}),c=e.subdomain??(e.newSite?void 0:o?.subdomain);if(!c)throw Error(`Choose a site name with --subdomain <name>.`);let l=yield H1(r),u=e.base?`workspace`:`site`,d=e=>tNt(r,i,e);for(let i=0;i<2;i++){let i=s??(yield GMt(l));n0(`agent_signup.discovered`,{registration_id:i.registrationId}),s||n0(`agent_signup.registered`,{registration_id:i.registrationId}),yield d(i);let o=yield U1(l,i);yield d(o);let f=yield KMt(r,o.accessToken);if(f.registrationId!==i.registrationId)throw Error(`Agent identity does not match the saved registration.`);if(f.identityType===`user_bound`)return{status:`claimed`};n(`Provisioning the ${e.base?`knowledge base`:`site`} and repository...`);let p=yield PRt(r,o.accessToken,Object.assign({subdomain:c,orgName:e.orgName},e.base&&{projectType:u}));if(p.status===`expired`){t(`The previous anonymous site expired. Creating a new registration and site.`),s=null;continue}n0(`cli.deploy.provisioned`,{registration_id:i.registrationId,deployment_id:p.deploymentId,subdomain:p.subdomain,created:p.created}),yield CMt(a,{registrationId:i.registrationId,subdomain:p.subdomain}).catch(()=>t(`Could not save the site name locally. Provide --subdomain on your next invocation.`)),n(`Getting repository write access...`);let m=yield FRt(r,o.accessToken);if(m.remote!==p.remote)throw Error(`Repository credentials do not match the provisioned site.`);return{status:`ready`,projectType:u,site:p,write:m,created:p.created,credentials:o}}throw Error(`The new anonymous site is already expired. Please retry later.`)})}function M2(e,t){let n=new URL(e).hostname===`leaves-dev.mintlify.com`?`mint-dev.mintlify.me`:`mintlify.site`;return new URL(`https://${t}.${n}`).toString()}function BRt(e){return e.orgSlug?new URL(`/${e.orgSlug}/${e.subdomain}/editor`,w1).toString():new URL(w1).toString()}function VRt(e,t){if(e.status===`claimed`)return`This site has been claimed. Manage it in the Mintlify dashboard. Use mint deploy --new --subdomain <name> to create another site.`;let{site:n,write:r}=e,i=[`Repository: ${n.remote}`,`Branch: ${n.branch}`,`Write token: ${r.token}`,`Write token expires: ${r.tokenExpiresAt}`];if(e.projectType===`workspace`)return[e.created?`Knowledge base provisioned.`:`Using the existing anonymous knowledge base.`,`Editor: ${BRt(n)}`,`Expires: ${n.expiresAt}. Claim it before then or it is deleted.`].join(`
2227
+ `&&n.column++,n.offset++,o=u,s=l,i++}return o&&r<i&&t.push(c(o,e.slice(r,i))),t;function c(e,t){return e===`WordNode`?{type:`WordNode`,children:[{type:`TextNode`,value:t,position:{start:a,end:{...n}}}],position:{start:a,end:{...n}}}:{type:e,value:t,position:{start:a,end:{...n}}}}}};l2.prototype.tokenizeSentencePlugins=[MIt,kIt,PIt,FIt,NIt,c2],l2.prototype.tokenizeParagraphPlugins=[IIt,TIt,jIt,AIt,RIt,pIt,zIt,OIt,DIt,EIt,BIt,c2],l2.prototype.tokenizeRootPlugins=[OIt,DIt,BIt,c2];function HIt(e,t,n){let r=[],i=-1,a=0;for(;++i<e.children.length;){let o=e.children[i];if(i===e.children.length-1||o.type===t&&n.test(a2(o))){let t={type:e.type,children:e.children.slice(a,i+1)},n=e.children[a],s=o;n.position&&s.position&&(t.position={start:n.position.start,end:s.position.end}),r.push(t),a=i+1}}return r}function UIt(){let e=this;e.parser=t;function t(t){let n=new l2;return u2(n.tokenizeParagraphPlugins,e.data(`nlcstParagraphExtensions`)),u2(n.tokenizeRootPlugins,e.data(`nlcstRootExtensions`)),u2(n.tokenizeSentencePlugins,e.data(`nlcstSentenceExtensions`)),n.parse(t)}}function u2(e,t){t&&e.unshift(...t)}function WIt(){let e=this;e.compiler=GIt}function GIt(e){return a2(e)}const KIt=Je().use(UIt).use(WIt).freeze(),qIt=[`”`,`’`],JIt=[`“`,`‘`],YIt={};function XIt(e){let t=e||YIt,n=[];if(t.quotes!==!1&&n.push(aLt),t.ellipses===`spaced`?n.push(rLt):t.ellipses===`unspaced`?n.push(iLt):t.ellipses!==!1&&n.push(nLt),t.backticks===`all`){if(t.quotes!==!1)throw Error("Cannot accept `backticks: 'all'` with `quotes: true`");n.push(ZIt)}else t.backticks!==!1&&n.push(QIt);t.dashes===`inverted`?n.push(eLt):t.dashes===`oldschool`?n.push(tLt):t.dashes!==!1&&n.push($It);let r={close:t.closingQuotes?[t.closingQuotes.double,t.closingQuotes.single]:qIt,open:t.openingQuotes?[t.openingQuotes.double,t.openingQuotes.single]:JIt};return function(e){p(e,function(e,t,i){let a=-1;if(i&&t!==void 0&&(e.type===`PunctuationNode`||e.type===`SymbolNode`)){for(;++a<n.length;)if(n[a](r,e,t,i)===!0)return console.log(`drop`,e),i.children.splice(t,1),t}})}}function ZIt(e,t,n,r){QIt(e,t,n,r),t.value==="`"?t.value=`‘`:t.value===`'`&&(t.value=`’`)}function QIt(e,t){t.value==="``"?t.value=`“`:t.value===`''`&&(t.value=`”`)}function $It(e,t){t.value===`--`&&(t.value=`—`)}function eLt(e,t,n,r){let i=r.children[n+1];if(t.value===`—`&&i&&i.type===`PunctuationNode`&&i.value===`-`)return i.value=`–`,!0;t.value===`---`?t.value=`–`:t.value===`--`&&(t.value=`—`)}function tLt(e,t,n,r){let i=r.children[n+1];if(t.value===`–`&&i&&i.type===`PunctuationNode`&&i.value===`-`)return i.value=`—`,!0;t.value===`---`?t.value=`—`:t.value===`--`&&(t.value=`–`)}function nLt(e,t,n,r){rLt(e,t,n,r),iLt(e,t,n,r)}function rLt(e,t,n,r){let i=t.value,a=r.children;if(!/^\.+$/.test(i))return;let o=[],s=n,c=1;for(;--s>0;){let e=a[s];if(e.type!==`WhiteSpaceNode`)break;let t=e;if(e=a[--s],e&&(e.type===`PunctuationNode`||e.type===`SymbolNode`)&&/^\.+$/.test(e.value))o.push(t,e),c++;else break}c<3||(a.splice(n-o.length,o.length),t.value=`…`)}function iLt(e,t){/^\.{3,}$/.test(t.value)&&(t.value=`…`)}function aLt(e,t,n,r){let i=r.children,a=t.value;if(a!==`"`&&a!==`'`)return;let o=a===`"`?0:1,s=i[n-1],c=i[n+1],l=i[n+2],u=c?a2(c):``;c&&(c.type===`PunctuationNode`||c.type===`SymbolNode`)&&(!l||l.type!==`WordNode`)?t.value=e.close[o]:c&&(c.type===`PunctuationNode`||c.type===`SymbolNode`)&&(u===`"`||u===`'`)&&l&&l.type===`WordNode`?(t.value=e.open[o],c.value=e.open[u===`"`?0:1]):t.value=c&&/^\d\ds$/.test(u)?e.close[o]:s&&(s.type===`WhiteSpaceNode`||s.type===`PunctuationNode`||s.type===`SymbolNode`)&&c&&c.type===`WordNode`?e.open[o]:s&&s.type!==`WhiteSpaceNode`&&s.type!==`SymbolNode`&&s.type!==`PunctuationNode`||!c||c.type===`WhiteSpaceNode`||a===`'`&&u===`s`?e.close[o]:e.open[o]}const oLt=/* @__PURE__ */ new Set([`text`,`inlineCode`,`paragraph`]),sLt=/* @__PURE__ */ new Set([`style`,`script`]),cLt=(e,t,n)=>n&&(n.type!==`mdxJsxTextElement`||`name`in n&&typeof n.name==`string`&&!sLt.has(n.name))&&oLt.has(e.type)&&(d2(e)||f2(e)),lLt=e=>{let t=KIt().use(XIt,{...e,ellipses:!1,dashes:!1,backticks:!1}),n=KIt().use(XIt,{...e,quotes:!1});return e=>{let r=``,i=0,a=[];p(e,cLt,e=>{d2(e)?r+=e.type===`text`?e.value:`A`.repeat(e.value.length):f2(e)&&(r+=` `),a.push(e)}),/["']/.test(r)&&(r=t.processSync(r).toString());for(let e of a)if(d2(e)){let t=i+e.value.length;if(e.type===`text`){let a=r.slice(i,t);e.value=/\.[\s\u0085]*\.|--|``|''/.test(a)?n.processSync(a).toString():a}i=t}else f2(e)&&(i+=1)}};function d2(e){return`value`in e&&typeof e.value==`string`}function f2(e){return e.type===`paragraph`}const uLt=(function(e){if(e==null)return mLt;if(typeof e==`string`)return pLt(e);if(typeof e==`object`)return Array.isArray(e)?dLt(e):fLt(e);if(typeof e==`function`)return p2(e);throw Error(`Expected function, string, or object as test`)});function dLt(e){let t=[],n=-1;for(;++n<e.length;)t[n]=uLt(e[n]);return p2(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1}}function fLt(e){return p2(t);function t(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function pLt(e){return p2(t);function t(t){return t&&t.type===e}}function p2(e){return t;function t(t,...n){return!!(t&&typeof t==`object`&&`type`in t&&e.call(this,t,...n))}}function mLt(){return!0}function hLt(e){return`\x1B[33m`+e+`\x1B[39m`}const gLt=(function(e,t,n,r){typeof t==`function`&&typeof n!=`function`&&(r=n,n=t,t=null);let i=uLt(t),a=r?-1:1;o(e,void 0,[])();function o(e,s,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+hLt(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=[],u,d,f;if((!t||i(e,s,c[c.length-1]||null))&&(l=_Lt(n(e,c)),l[0]===!1))return l;if(e.children&&l[0]!==`skip`)for(d=(r?e.children.length:-1)+a,f=c.concat(e);d>-1&&d<e.children.length;){if(u=o(e.children[d],d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+a}return l}}});function _Lt(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:[e]}const m2=(function(e,t,n,r){typeof t==`function`&&typeof n!=`function`&&(r=n,n=t,t=null),gLt(e,t,i,r);function i(e,t){let r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}}),vLt=[`.mdx`,`.md`],yLt=[`.jpeg`,`.jpg`,`.jfif`,`.pjpeg`,`.pjp`,`.png`,`.svg`,`.svgz`,`.ico`,`.webp`,`.gif`,`.apng`,`.avif`,`.bmp`,`.mp4`,`.css`,`.xml`],bLt=e=>!(e.dir===`node_modules`||e.dir.startsWith(`node_modules/`)),xLt=e=>!(e.dir===`.github`||e.dir.startsWith(`.github/`)),h2=e=>vLt.includes(e.ext),SLt=e=>yLt.includes(e.ext),CLt=e=>h2(e)||SLt(e),wLt=e=>e.map(v2).map(Tt).filter(bLt),TLt=e=>wLt(e).filter(h2).filter(xLt),ELt=e=>wLt(e).filter(CLt).filter(xLt),DLt=e=>Ct(e.dir,e.base),OLt=e=>Ct(e.dir,e.name),g2=e=>e.split(`#`)[0].split(`?`)[0],kLt=(e,t=[])=>TLt(jP(e,e,t)).map(DLt),_2=(e,t=[])=>ELt(jP(e,e,t)).map(DLt),v2=e=>wt(y2(e)),y2=e=>e.startsWith(`/`)?e.slice(1):e;var b2;(function(e){e.INTERNAL=`internal`,e.EXTERNAL=`external`,e.DATA=`data`})(b2||={});const ALt=e=>{try{return decodeURIComponent(e)}catch{return e}},x2=e=>/[:*]/.test(e);var S2;(function(e){e.MD=`md`,e.SRC=`src`,e.HREF=`href`,e.CARD=`card`,e.IMPORT=`import`,e.DEFINITION=`definition`})(S2||={});var jLt;(function(e){e.CONTENT=`content`,e.NAVIGATION=`navigation`})(jLt||={});var C2=class e{static getPathType(e){let t;return t=URL.canParse(e)?b2.EXTERNAL:e.startsWith(`data:`)?b2.DATA:b2.INTERNAL,t}constructParsedPath(){let t=e.getPathType(this.originalPath),n,r;if(t===b2.INTERNAL){let e=new URL(`mintlify:/`);e.pathname=`/${this.relativeDir}/${this.filename}`.replaceAll(Fr,`/`),n=new URL(this.originalPath.replaceAll(Fr,`/`),e);let t=ALt(n.pathname).slice(1);t.endsWith(`/`)&&(t=t.slice(0,-1)),t===``&&(t=`.`),r=Tt(t)}else try{n=new URL(this.originalPath),r=n}catch{throw Error(`Failed to parse path as URL: ${this.originalPath}. If this is a purposefully malformed path, please wrap it in backticks, i.e \`${this.originalPath}\` `)}let i=n.hash?t===b2.INTERNAL?ALt(n.hash):n.hash:void 0,a=n.searchParams;return{path:r,pathType:t,anchorLink:i,queryParams:a}}constructor(e,t=``,n=``,r,i){this.originalPath=e,this.relativeDir=t,this.filename=n,this.wrapper=r,this.line=i,this.pagePaths=[],this.relativeDir=v2(t);let{path:a,pathType:o,anchorLink:s,queryParams:c}=this.constructParsedPath();this.path=a,this.pathType=o,this.anchorLink=s,this.queryParams=c}toString(){if(this.pathType===b2.INTERNAL){let e=this.path;return Ct(e.dir,e.base)}return this.path.toString()}getResolvedFiles(e,t){if(this.pathType!==b2.INTERNAL||this.path instanceof URL)return[];let{dir:n,name:r,base:i}=Tt(this.toString()),a=[];return Xt(Ot(t,this.toString()))&&a.push(Ct(n,i)),a.push(...e.lookup(n,r,i)),a}keepsMdxExtension(){let e=this.wrapper===S2.DEFINITION?this.originalPath:this.wrapper===S2.MD||this.wrapper===S2.HREF?TTe(Ct(this.relativeDir,this.filename),this.originalPath,!0):void 0;return e!==void 0&&/\.mdx$/i.test(g2(e))}resolvesTo(e,t,n){return this.pathType===b2.INTERNAL&&!!(this.toString()===e.toString()||this.getResolvedFiles(t,n).includes(e.toString()))}static filterMapInternalPaths(t){return t.map(t=>new e(t)).filter(({pathType:e})=>e===b2.INTERNAL).map(e=>e.toString())}},MLt=class e{constructor(t){this.byDirAndName=/* @__PURE__ */ new Map,t.forEach((t,n)=>{let r=t.startsWith(`/`)?t.slice(1):t,{dir:i,name:a}=Tt(r),o=e.key(i,a),s=[n,r],c=this.byDirAndName.get(o);c?c.push(s):this.byDirAndName.set(o,[s])})}static key(e,t){return`${e}\0${t}`}lookup(t,n,r){let i=this.byDirAndName.get(e.key(t,n))??[],a=r===n?[]:this.byDirAndName.get(e.key(t,r))??[];return[...i,...a].sort(([e],[t])=>e-t).map(([,e])=>e)}},w2=class{constructor(e,t=[]){this.label=e,this.paths=t,this.edges=[],this.headingSlugs=null,this.relativeDir=v2(bt(e)),this.filename=yt(e),this.label=Ct(this.relativeDir,this.filename)}toString(){return this.label}equals(e){return this.label===e.label}addPath(e,t,n){let r=new C2(e,this.relativeDir,this.filename,t,n);this.paths.push(r)}addOutgoingEdge(e){let t=this.edges.find(t=>t.equals(e));t?t.incrementCount():this.edges.push(e)}getChildNodes(e=1){let t=[];for(let n of this.edges){let r=n.target;t.push(r),e>1&&t.push(...r.getChildNodes(e-1))}return t}},NLt=class{constructor(e,t,n){this.source=e,this.target=t,this.edgeType=n,this.count=0,this.count++}incrementCount(){this.count++}getCount(){return this.count}equals(e){return this.source.equals(e.source)&&this.target.equals(e.target)&&this.edgeType===e.edgeType}},PLt=class{constructor(e,t=[]){this.baseDir=e,this.nodes=Object.create(null),this.edges=[],this.fileResolutionMap=/* @__PURE__ */ new Map,this.redirectMap=/* @__PURE__ */ new Map,this.wildcardRedirects=[],this.configRedirects=[],this.mintIgnoreGlobs=[],this.virtualNodes=/* @__PURE__ */ new Set,this.snippetReferencesByFile=/* @__PURE__ */ new Map,this.baseDir=Ot(e),this.mintIgnoreGlobs=t}addNode(e){return this.nodes[e]||(this.nodes[e]=new w2(e)),this.nodes[e]}addNodes(e){for(let t of e)this.addNode(t)}addVirtualNodes(e){for(let t of e)this.addNode(t),this.virtualNodes.add(new w2(t).toString())}setRedirects(e){this.configRedirects=e,this.redirectMap.clear();for(let t of e){let e=v2(t.source);this.redirectMap.has(e)||this.redirectMap.set(e,v2(t.destination))}this.wildcardRedirects=[...this.redirectMap].filter(([e])=>x2(e))}matchesWildcardPattern(e,t){let n=`^${t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`).replace(/:(\w+)/g,`(?<$1>[^/]+)`).replace(/\\\*/g,`(.*)`)}$`;return new RegExp(n).test(e)}applyWildcardRedirect(e,t,n){let r=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),i=[],a=r.replace(/:(\w+)/g,(e,t)=>(i.push({type:`param`,name:t}),`(?<${t}>[^/]+)`)).replace(/\\\*/g,()=>(i.push({type:`wildcard`}),`(.*)`)),o=RegExp(`^${a}$`),s=e.match(o);if(!s)return n;let c=n,l=s.groups||{};for(let[e,t]of Object.entries(l))c=c.replace(RegExp(`:${e}`,`g`),t);let u=s.slice(1),d=0,f=u.filter((e,t)=>i[t]&&i[t].type===`wildcard`);return c=c.replace(/\*/g,()=>f[d++]||``),c}addAliasNodes(){let e=C2.filterMapInternalPaths(nYe(this.baseDir,this.baseDir,this.mintIgnoreGlobs)).filter(e=>!TP(e,this.mintIgnoreGlobs));this.addNodes(e)}getNode(e){return this.nodes[e]}getAnchorTargetFiles(e){this.fileResolutionMap.size===0&&this.precomputeFileResolutions();let t=new Set(Object.keys(this.nodes)),n=/* @__PURE__ */ new Set;for(let r of Object.values(this.nodes))for(let i of r.paths.flatMap(e=>[e,...e.pagePaths]))if(i.pathType===b2.INTERNAL&&i.anchorLink&&e.has(Ct(i.relativeDir,i.filename)))for(let e of this.getHeadingSlugCandidates(i.toString(),t)){let t=this.nodes[e];if(t&&(n.add(e),t.headingSlugs!==null))break}return n}addEdge(e,t,n=jLt.CONTENT){let r=new NLt(e,t,n);return this.edges.find(e=>e.equals(r)?(e.incrementCount(),!0):!1)||(this.edges.push(r),r)}addEdgesBetweenNodes(){let e=new MLt(_2(this.baseDir,this.mintIgnoreGlobs));for(let t of Object.values(this.nodes))for(let n of t.paths)if(n.pathType===b2.INTERNAL){let r=Object.values(this.nodes).find(t=>n.resolvesTo(t,e,this.baseDir));if(r){let e=this.addEdge(t,r);t.addOutgoingEdge(e)}}}precomputeFileResolutions(){let e=new MLt(_2(this.baseDir,this.mintIgnoreGlobs)),t=/* @__PURE__ */ new Set;Object.values(this.nodes).forEach(n=>{n.paths.flatMap(e=>[e,...e.pagePaths]).filter(e=>e.pathType===b2.INTERNAL).forEach(n=>{let r=n.toString();if(t.has(r))return;t.add(r);let i=n.getResolvedFiles(e,this.baseDir);this.fileResolutionMap.set(r,new Set(i))})})}getHeadingSlugCandidates(e,t){let n=[...this.fileResolutionMap.get(e)??[]].filter(e=>t.has(e)),r=Ct(e,`index.mdx`),i=this.nodes[r]?r:Ct(e,`index.md`);return[...n,e,i]}getHeadingSlugsForPath(e,t){for(let n of this.getHeadingSlugCandidates(e,t)){let e=this.nodes[n];if(e&&e.headingSlugs!==null)return e.headingSlugs}}getBrokenInternalLinks(e){this.fileResolutionMap.size===0&&this.precomputeFileResolutions();let t=/* @__PURE__ */ new Set,n=new Set(Object.values(this.nodes).map(e=>e.toString()));for(let r of Object.values(this.nodes))for(let i of r.paths.flatMap(e=>[e,...e.pagePaths]))if(i.pathType===b2.INTERNAL){let r=i.toString(),a=this.fileResolutionMap.get(r),o=r===`.`||a&&[...a].some(e=>n.has(e))||this.virtualNodes.has(r);if(i.keepsMdxExtension()&&!this.redirectsToPage(r)||!o&&!this.reachesPage(r))t.add(i);else if(e?.checkAnchors&&i.anchorLink){let e=YE(i.anchorLink.slice(1)),a=this.getHeadingSlugsForPath(r,n);a&&!a.has(e)&&t.add(i)}}return Object.values(this.nodes).flatMap(e=>e.paths).filter(e=>t.has(e)&&(e.pagePaths.length===0||e.pagePaths.some(e=>t.has(e))))}getLinksTo(e){let t=this.getPageRoute(e.toString()),n=n=>n.pathType===b2.INTERNAL&&!n.originalPath.startsWith(`#`)&&this.getPageRoute(n.toString())===t&&(!e.anchorLink||n.anchorLink===e.anchorLink);return Object.values(this.nodes).flatMap(e=>e.paths).filter(e=>n(e)||e.pagePaths.some(n))}getPageRoute(e){let t=[...this.getPageCandidates(e),e].find(e=>this.nodes[e])??e,n=Tt(t),r=h2(n)?OLt(n):t;return yt(r)===`index`?bt(r):r}getPageCandidates(e){return e===`.`?[`index.mdx`,`index.md`]:[`${e}.mdx`,`${e}.md`,Ct(e,`index.mdx`),Ct(e,`index.md`)]}isPageRoute(e){return this.getPageCandidates(e).some(e=>this.nodes[e])||this.virtualNodes.has(e)}resolvesToValidPath(e,t=/* @__PURE__ */ new Set){if(URL.canParse(e))return!0;let n=g2(e);return!n||x2(n)?!0:this.reachesPage(v2(n),t)}redirectsToPage(e){let t=this.getRedirectTarget(e);return t!==void 0&&this.resolvesToValidPath(t,/* @__PURE__ */ new Set([e]))}reachesPage(e,t=/* @__PURE__ */ new Set){if(t.has(e))return!1;t.add(e);let n=this.getExactRedirectTarget(e);if(n!==void 0)return this.resolvesToValidPath(n,t);if(e!==`.`&&this.nodes[e]||this.isPageRoute(e))return!0;let r=this.getRedirectTarget(e);return r!==void 0&&this.resolvesToValidPath(r,t)}getExactRedirectTarget(e){return this.redirectMap.get(e)}getRedirectTarget(e){let t=this.getExactRedirectTarget(e);if(t!==void 0)return t;for(let[t,n]of this.wildcardRedirects)if(this.matchesWildcardPattern(e,t))return this.applyWildcardRedirect(e,t,n)}getBrokenRedirects(){let e=[],t=/* @__PURE__ */ new Set;for(let{source:n,destination:r}of this.configRedirects){let i=v2(n);t.has(i)||(t.add(i),!URL.canParse(r)&&(x2(g2(r))||this.resolvesToValidPath(r)||e.push({source:n,destination:r})))}return e}getExternalPathsByNode(){let e=/* @__PURE__ */ new Map;for(let[t,n]of Object.entries(this.nodes)){let r=n.paths.filter(e=>e.pathType===b2.EXTERNAL);r.length>0&&e.set(t,r)}return e}getAllInternalPaths(){return Object.values(this.nodes).flatMap(e=>e.paths).filter(e=>e.pathType===b2.INTERNAL).map(e=>e.originalPath+` => `+e.toString())}},T2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const E2=e=>T2(void 0,void 0,void 0,function*(){for(let t of[`docs.json`,`mint.json`]){let n=vt.join(e,t);if(lF.default.existsSync(n))try{let{resolved:r}=yield cF(yield lF.default.readJSON(n),e);if(r&&typeof r==`object`&&!Array.isArray(r))return{configFile:t,json:r}}catch(e){console.warn(`Warning: Failed to read or resolve ${t}: ${e}`)}}return null}),FLt=e=>T2(void 0,void 0,void 0,function*(){let t=yield E2(e);return t?t.configFile===`docs.json`?Md(Ad(t.json)):jd(t.json):null}),ILt=e=>T2(void 0,void 0,void 0,function*(){let t=yield E2(e);if(!t||t.configFile!==`docs.json`)return null;let n=Md(Ad(t.json));return n.success?n.data:null});var LLt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const RLt=e=>LLt(void 0,void 0,void 0,function*(){let t=yield ILt(e);if(!t)return[];let{generatedRoutes:n}=yield oB(t,t=>sB(t,e),{onSourceError:(e,t)=>console.warn(`Warning: Failed to load GraphQL schema ${e}: ${t}`)});return n});var zLt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const BLt=e=>typeof e==`string`&&e!==``&&Ff(e)===void 0&&CJe(e)===void 0,D2=e=>{if(typeof e!=`object`||!e)return[];if(Array.isArray(e))return e.flatMap(D2);let t=e,n=[];if(typeof t.href==`string`&&n.push(t.href),BLt(t.root)&&n.push(t.root.startsWith(`/`)?t.root:`/${t.root}`),Array.isArray(t.pages))for(let e of t.pages)BLt(e)&&n.push(e.startsWith(`/`)?e:`/${e}`);for(let e of Object.values(t))n.push(...D2(e));return n},VLt=e=>zLt(void 0,void 0,void 0,function*(){let t=yield E2(e);if(t&&t.json.navigation)return{hrefs:D2(t.json.navigation),configFile:t.configFile}});var HLt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const ULt=(e,t)=>HLt(void 0,void 0,void 0,function*(){let n=[];try{let r=yield ILt(e),i=r?df(r):void 0,a=yield nnt(e,{explicitOverlays:i,fetchRemoteDocument:t?.fetchRemoteDocument});if(r){let o=yield tnt(e,{explicitOverlays:i,fetchRemoteDocument:t?.fetchRemoteDocument}),s=yield WLt(r,o,t?.fetchRemoteDocument),c=[...a,...s],l={};try{yield J9e(r.navigation,c,l,{writeFiles:!1,overlayRegistry:o,fetchRemoteDocument:t?.fetchRemoteDocument})}catch(e){console.warn(`Warning: Failed to extract OpenAPI pages from navigation: ${e}`)}n.push(...Object.keys(l))}for(let e of a)try{let{pagesAcc:t}=yield tZe(e.spec,{openApiFilePath:e.originalFileLocation,writeFiles:!1,outDir:`api-reference`});n.push(...Object.keys(t))}catch(t){console.warn(`Warning: Failed to extract pages from OpenAPI spec ${e.originalFileLocation}: ${t}`)}}catch(e){console.warn(`Warning: Failed to categorize files for OpenAPI extraction: ${e}`)}return[...new Set(n)]}),WLt=(e,t,n)=>HLt(void 0,void 0,void 0,function*(){try{return yield cB(`docs`,e,void 0,t,n)}catch(e){return console.warn(`Warning: Failed to fetch URL-based OpenAPI specs: ${e}`),[]}});var GLt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const KLt=e=>GLt(void 0,void 0,void 0,function*(){let t=[],n=yield FLt(e);return n&&n.success&&`redirects`in n.data&&n.data.redirects&&t.push(...n.data.redirects),t}),qLt=[`ImportDefaultSpecifier`,`ImportNamespaceSpecifier`],JLt=e=>{let t=[],n=[],r=[],i=/* @__PURE__ */ new Set;m2(e,e=>{if(st(e)&&lt(e)){for(let n of e.data.estree.body){if(!f(n)||typeof n.source.value!=`string`)continue;let e=n.source.value;t.push(e);for(let t of n.specifiers)qLt.includes(t.type)&&r.push({source:e,name:t.local.name})}return}if(!g(e)||!e.name||(i.add(e.name),e.name!==`Snippet`))return;let a=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===`file`)?.value;typeof a==`string`&&n.push(`/_snippets/`+y2(a))});for(let{source:e,name:t}of r)i.has(t)&&n.push(e);return{imported:t,rendered:n}},YLt=[`snippets/`,`_snippets/`],O2=e=>e.replaceAll(Fr,`/`),XLt=({originalPath:e,pathType:t,wrapper:n})=>n!==S2.IMPORT&&t===b2.INTERNAL&&!e.startsWith(`/`),ZLt=(e,t)=>{var n;let r=new Map([...t.keys()].map(e=>[O2(e),e])),i=(e,t)=>e.flatMap(e=>{let n=KT(e,O2(t)),i=n&&r.get(y2(n));return i?[i]:[]}),a=/* @__PURE__ */ new Set;for(let[e,{imported:n}]of t){let t=O2(e).toLowerCase();YLt.some(e=>t.startsWith(e))&&a.add(e);for(let t of i(n,e))a.add(t)}let o=(e,n)=>{let r=t.get(e)?.rendered??[];for(let t of i(r,e))!n.has(t)&&a.has(t)&&(n.add(t),o(t,n));return n},s=/* @__PURE__ */ new Map;for(let e of t.keys())a.has(e)||s.set(e,o(e,/* @__PURE__ */ new Set));for(let[t,r]of s){let i=e.getNode(t);if(i)for(let t of r){let r=e.getNode(t);for(let e of r?.paths.filter(XLt)??[])e.pagePaths.push(new C2(e.originalPath,i.relativeDir,i.filename,e.wrapper));for(let e of r?.headingSlugs??[])(n=i.headingSlugs)==null||n.add(e)}}},QLt=(e,t,n)=>{let r=/* @__PURE__ */ new Set;if(!n.checkAnchors&&!n.checkSnippets)return r;let i=n.checkAnchors?[...e.getAnchorTargetFiles(t)]:[];for(let e of i)r.add(O2(e));let a=new Map([...e.snippetReferencesByFile.keys()].map(e=>[O2(e),e])),o=/* @__PURE__ */ new Set,s=t=>{if(o.has(t))return;o.add(t);let n=a.get(t),i=n?e.snippetReferencesByFile.get(n)?.rendered??[]:[];for(let e of i){let n=KT(e,t);if(!n)continue;let i=y2(n);r.add(i),s(i)}};for(let e of[...t,...i])s(O2(e));return r};var $Lt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const eRt=e=>{let t=/* @__PURE__ */ new Set;for(let n of e){t.add(JE(n.slug));for(let e of eRt(n.children))t.add(e)}return t},tRt=/* @__PURE__ */ new Set([`ParamField`,`Param`,`ResponseField`]),nRt=/* @__PURE__ */ new Set([`query`,`path`,`body`,`header`,`name`]),rRt=e=>{let t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Map;return m2(e,`mdxJsxFlowElement`,e=>{if(tRt.has(e.name??``)){let r=e.attributes.find(e=>`name`in e&&nRt.has(e.name));if(r&&typeof r.value==`string`&&r.value){let e=n.get(r.value)??0;n.set(r.value,e+1),t.add(kDe(r.value,e))}return}if(fNe.has(e.name??``))return;let r=e.attributes.find(e=>`name`in e&&e.name===`id`);if(r&&typeof r.value==`string`&&r.value){let n=pNe.has(e.name??``)?JE(r.value):r.value;t.add(n)}}),t},iRt=e=>{if(typeof e==`string`)return e;let t=(e?.data?.estree)?.body[0],n=t?.type===`ExpressionStatement`?t.expression:void 0;if(n?.type===`Literal`&&typeof n.value==`string`)return n.value;if(n?.type===`TemplateLiteral`&&n.expressions.length===0)return n.quasis[0]?.value.cooked??void 0},aRt=(e,t,n)=>$Lt(void 0,void 0,void 0,function*(){let r={},i=()=>t=>{let n=/* @__PURE__ */ new Set;return m2(t,[`linkReference`,`imageReference`],e=>{`identifier`in e&&n.add(e.identifier)}),m2(t,t=>{let r=t.position?.start.line,i=r===void 0?void 0:s[r-1];if(t.type===`link`||t.type===`image`){e.addPath(t.url,S2.MD,i);return}if(t.type===`definition`){n.delete(t.identifier)&&e.addPath(t.url,S2.DEFINITION,i);return}let a=t;if(a.name===`img`||a.name===`source`){let t=a.attributes.findIndex(e=>e.type===`mdxJsxAttribute`&&e.name===`src`),n=iRt(a.attributes[t]?.value);if(typeof n==`string`){e.addPath(n,S2.SRC,i);return}}else if(a.name===`a`||a.name===`Card`){let t=a.attributes.findIndex(e=>e.type===`mdxJsxAttribute`&&e.name===`href`),n=iRt(a.attributes[t]?.value);if(typeof n==`string`){e.addPath(n,S2.HREF,i);return}}}),t},a=Py(t),o=O(a),s=pe(a),c=PT().use(lLt).use(i).use(Bje).use(Jje,r),l=c.parse(o),u=JLt(l);if(n?.checkSnippets)for(let t of u.imported)e.addPath(t,S2.IMPORT);yield c.run(l);let d=r.tableOfContents?eRt(r.tableOfContents):/* @__PURE__ */ new Set,f=rRt(l);return e.headingSlugs=/* @__PURE__ */ new Set([...d,...f]),u}),oRt=(e,t)=>$Lt(void 0,void 0,void 0,function*(){let n=e||process.cwd(),r=yield fF(n),i=new PLt(n,r),a=_2(n,r).filter(e=>!TP(e,r));i.addNodes(a);let o=yield KLt(n);i.setRedirects(o),i.addAliasNodes();try{let e=yield ULt(n,{fetchRemoteDocument:t?.fetchRemoteDocument});i.addVirtualNodes(e)}catch(e){console.warn(`Warning: Failed to extract OpenAPI page paths: ${e}`)}try{let e=yield RLt(n);i.addVirtualNodes(e)}catch(e){console.warn(`Warning: Failed to extract GraphQL page paths: ${e}`)}let s=yield VLt(n);if(s){let e=i.addNode(s.configFile);for(let t of s.hrefs){let n=t===`/`||t===``?`/index`:t.replace(/^\/#/,`/index#`);e.addPath(n)}}let c=kLt(n,r).filter(e=>!TP(e,r)),l=/* @__PURE__ */ new Map,u=0;return yield Promise.all(Array.from({length:Math.min(8,c.length)},()=>$Lt(void 0,void 0,void 0,function*(){for(;u<c.length;){let e=c[u++];if(e===void 0)continue;let r=i.getNode(e);if(!r)continue;let a=lF.default.readFileSync(vt.join(n,e)).toString();try{let n=yield aRt(r,a,{checkSnippets:t?.checkSnippets});l.set(e,n)}catch(n){let r=/* @__PURE__ */ Error(`Syntax error - Unable to parse ${e} - ${n}`);if(!t?.onParseError)throw r;t.onParseError(e,r)}}}))),ZLt(i,l),i.snippetReferencesByFile=l,i});var k2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const sRt=e=>{try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}},cRt=(e,t)=>k2(void 0,void 0,void 0,function*(){let n=new AbortController,r=setTimeout(()=>n.abort(),1e4);try{let r=yield fetch(e,{method:t,signal:n.signal,headers:{"User-Agent":`Mintlify-LinkChecker/1.0`},redirect:`follow`});return yield r.body?.cancel().catch(()=>void 0),r.status}finally{clearTimeout(r)}}),lRt=/* @__PURE__ */ new Set([404,405]),uRt=e=>k2(void 0,void 0,void 0,function*(){try{let t=yield cRt(e,`HEAD`),n=lRt.has(t)?yield cRt(e,`GET`).catch(()=>t):t;return{ok:n!==404,status:n}}catch(e){return{ok:!1,status:null,error:e instanceof Error?e.message:`unknown error`}}}),dRt=(e,t,n)=>k2(void 0,void 0,void 0,function*(){let r=[],i=0,a=()=>k2(void 0,void 0,void 0,function*(){for(;i<e.length;){let n=i++;r[n]=yield t(e[n])}}),o=Array.from({length:Math.min(n,e.length)},()=>a());return yield Promise.all(o),r}),fRt=(e,t)=>k2(void 0,void 0,void 0,function*(){let n=/* @__PURE__ */ new Map;for(let[r,i]of e.getExternalPathsByNode())if(!t?.sourceFiles||t.sourceFiles.has(r)){for(let e of i)if(sRt(e.originalPath)){let t=e.originalPath,i=n.get(t),a={file:r,originalPath:e.originalPath};i?i.push(a):n.set(t,[a])}}let r=[...n.keys()];return(yield dRt(r,e=>k2(void 0,void 0,void 0,function*(){let t=yield uRt(e);if(t.ok)return null;let r={url:e,status:t.status,sources:n.get(e)};return t.error&&(r.error=t.error),r}),5)).filter(e=>e!==null)});var A2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const pRt=/[*?]/,mRt=/\.mdx?$/i,hRt=/[.+^${}()|\\[\]]/,gRt=/* @__PURE__ */ new Set([`.git`,`node_modules`]);function _Rt(e){return e.split(Rt.sep).join(`/`)}function vRt(e){return _Rt(e).replace(/^\.\//,``)}function yRt(e){let t=``,n=0;for(;n<e.length;){let r=e[n];r===`*`?e[n+1]===`*`?e[n+2]===`/`?(t+=`(?:[^/]+/)*`,n+=3):(t+=`.*`,n+=2):(t+=`[^/]*`,n+=1):r===`?`?(t+=`[^/]`,n+=1):(t+=hRt.test(r)?`\\${r}`:r,n+=1)}return RegExp(`^${t}$`)}function bRt(e){return A2(this,void 0,void 0,function*(){try{return(yield Wn.stat(e)).isFile()}catch{return!1}})}function xRt(e){return A2(this,arguments,void 0,function*(e,t=``){let n=yield Wn.readdir(Rt.join(e,t),{withFileTypes:!0}),r=[];for(let i of n){if(gRt.has(i.name))continue;let n=t?`${t}/${i.name}`:i.name;i.isDirectory()?r.push(...yield xRt(e,n)):r.push(n)}return r})}var SRt=class extends Error{};function CRt(e,t){return A2(this,void 0,void 0,function*(){let n=null,r=[],i=[];for(let a of t){let t=vRt(a);if(pRt.test(t)){n??=yield xRt(e);let o=yRt(t),s=n.filter(e=>mRt.test(e)&&o.test(e)).sort();s.length===0?i.push(a):r.push(...s)}else(yield bRt(Rt.join(e,t)))?r.push(t):i.push(a)}if(i.length>0)throw new SRt(`No matching files for: ${i.join(`, `)} (globs match .md and .mdx files)`);return[...new Set(r)]})}var wRt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const TRt=e=>{for(let t of e)OH((0,R.jsx)(bH,{message:t}));e.length>0&&OH((0,R.jsx)(yH,{message:`skipped ${e.length} file(s) that could not be parsed; links in them were not checked`}))},ERt=e=>{if(!e.trim())return`--links-to needs a page path, e.g. /guides/setup`;if(e.startsWith(`#`))return`--links-to needs a page path before the anchor, e.g. /guides/setup${e}`;if(e.startsWith(`//`)||URL.canParse(e))return`--links-to takes a page path, not a full URL: ${e}`},DRt=e=>wRt(void 0,void 0,void 0,function*(){yield Xjt();let t=e[`links-to`],n=t===void 0?void 0:ERt(t);if(n)OH((0,R.jsx)(bH,{message:n})),yield d1(1);else{OH((0,R.jsx)(vH,{message:t===void 0?`checking for broken links...`:`finding links to ${t}...`}));try{let n=yield Jjt(a1),r=(e.files??[]).map(String).filter(Boolean),i=r.length>0?new Set((yield CRt(a1,r)).map(e=>vt.relative(n,vt.resolve(a1,e)))):void 0,a=/* @__PURE__ */ new Map,o=yield oRt(n,{checkSnippets:e[`check-snippets`],onParseError:(e,t)=>a.set(e,t.message)});o.precomputeFileResolutions();let s=i?QLt(o,i,{checkAnchors:e[`check-anchors`],checkSnippets:e[`check-snippets`]}):void 0,c=[...a].filter(([e])=>!i||i.has(e)||s?.has(e.split(vt.sep).join(`/`))).map(([,e])=>e),l=({relativeDir:e,filename:t})=>!i||i.has(vt.join(e,t));if(t!==void 0){let e=o.getLinksTo(new C2(t)).filter(l);MH(),e.length>0?OH((0,R.jsx)(Bat,{target:t,links:e.map(e=>({file:vt.join(e.relativeDir,e.filename),line:e.line,link:e.originalPath}))})):OH((0,R.jsx)(_H,{message:`no links to ${t} found`})),TRt(c),yield d1(0);return}let u=o.getBrokenInternalLinks({checkAnchors:e[`check-anchors`]}).filter(l),d={};if(u.forEach(e=>{let t=vt.join(e.relativeDir,e.filename),n=d[t];n?n.push(e.originalPath):d[t]=[e.originalPath]}),e[`check-external`]){let e=yield fRt(o,i?{sourceFiles:i}:void 0);for(let t of e)for(let e of t.sources){let n=t.status?`${t.url} (${t.status})`:`${t.url} (${t.error})`,r=d[e.file];r?r.push(n):d[e.file]=[n]}}if(e[`check-redirects`]){let e=o.getBrokenRedirects();if(e.length>0){let t=yield Wn.access(vt.join(n,`docs.json`)).then(()=>`docs.json`).catch(()=>`mint.json`),r=e.map(({source:e,destination:t})=>`${e} → ${t}`),i=d[t];i?i.push(...r):d[t]=r}}let f=Object.keys(d).length>0;!f&&c.length===0&&(MH(),OH((0,R.jsx)(_H,{message:`no broken links found`})),yield d1(0)),MH(),OH(f?(0,R.jsx)(zat,{brokenLinksByFile:d}):(0,R.jsx)(_H,{message:`no broken links found in the files that parsed`})),TRt(c)}catch(e){OH((0,R.jsx)(bH,{message:e instanceof Error?e.message:`unknown error`})),yield d1(1)}yield d1(1)}});var ORt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function kRt(e,t){return()=>ORt(this,void 0,void 0,function*(){M1()?OH((0,R.jsx)(_H,{message:`Thanks for your interest in "${t} ${e}"! Your vote has been counted.`})):OH((0,R.jsx)(yH,{message:`Telemetry is disabled, so your vote won't be counted. Enable it with: ${t} --telemetry=true`})),OH((0,R.jsx)(pH,{dimColor:!0,children:`This feature is currently in development. Learn more at https://mintlify.com/docs`})),yield d1(0)})}var j2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const ARt=F({status:at(`ready`),deploymentId:Ke().min(1),subdomain:Ke().min(1),remote:Le(),branch:at(`main`),expiresAt:Ie(),orgSlug:Ke().min(1).optional()}),jRt=Ae(`status`,[ARt.extend({code:at(`deployment_already_exists`)}),F({status:at(`provisioning`),code:at(`deployment_already_exists`),deploymentId:Ke().optional(),subdomain:Ke().optional()}),F({status:at(`expired`),code:Te([`deployment_already_exists`,`deployment_claim_expired`]),deploymentId:Ke(),subdomain:Ke(),expiresAt:Ie().optional()})]),MRt=F({remote:Le(),branch:at(`main`),token:Ke().min(1),tokenExpiresAt:Ie()}),NRt=F({subdomain:Ke().min(1),trustedRepos:Ye(F({repositoryId:Ke(),repository:Ke(),branch:Ke()}))});function PRt(e,t,n){return j2(this,void 0,void 0,function*(){for(let r=0;r<4;r++){let i=yield z1(`${e}/api/agent/deployments/provision`,{method:`POST`,headers:{Authorization:`Bearer ${t}`,"Content-Type":`application/json`},body:JSON.stringify(Object.assign(Object.assign({},n),{docsPath:``}))});if(i.status!==409)return Object.assign(Object.assign({},yield B1(i,ARt)),{created:!0});let a=yield i.json().catch(()=>null),o=jRt.safeParse(a);if(!o.success)throw Error(`The deployment service returned an unexpected response.`);if(o.data.status!==`provisioning`)return Object.assign(Object.assign({},o.data),{created:!1});r<3&&(yield Ir(1e3*(r+1)))}throw Error(`Your site is still provisioning. Run the same command again.`)})}function FRt(e,t){return j2(this,void 0,void 0,function*(){return B1(yield z1(`${e}/api/agent/deployments/token`,{method:`POST`,headers:{Authorization:`Bearer ${t}`}}),MRt)})}function IRt(e,t,n){return j2(this,void 0,void 0,function*(){return B1(yield z1(`${e}/api/agent/deployments/github-actions/token`,{method:`POST`,headers:{Authorization:`Bearer ${t}`,"Content-Type":`application/json`},body:JSON.stringify({subdomain:n})}),MRt)})}function LRt(e,t,n){return j2(this,void 0,void 0,function*(){return B1(yield z1(`${e}/api/agent/deployments/trusted-repos`,{method:`POST`,headers:{Authorization:`Bearer ${t}`,"Content-Type":`application/json`},body:JSON.stringify(n)}),NRt)})}var RRt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function zRt(e,t){return RRt(this,arguments,void 0,function*(e,t,n=()=>{}){let{apiUrl:r}=e,i=Rt.resolve(e.directory),a=JSON.stringify([new URL(r).origin,i]),o=SMt(a);n(`Authenticating agent...`);let s=e.newSite?null:yield eNt(r,i).catch(()=>{if(o)throw Error(`Could not read this site’s saved credentials. Unlock your keyring or use --new for another site.`);return t(`Could not read the keyring. Continuing with a new registration for this run.`),null}),c=e.subdomain??(e.newSite?void 0:o?.subdomain);if(!c)throw Error(`Choose a site name with --subdomain <name>.`);let l=yield H1(r),u=e.base?`workspace`:`site`,d=e=>tNt(r,i,e);for(let i=0;i<2;i++){let i=s??(yield GMt(l));n0(`agent_signup.discovered`,{registration_id:i.registrationId}),s||n0(`agent_signup.registered`,{registration_id:i.registrationId}),yield d(i);let o=yield U1(l,i);yield d(o);let f=yield KMt(r,o.accessToken);if(f.registrationId!==i.registrationId)throw Error(`Agent identity does not match the saved registration.`);if(f.identityType===`user_bound`)return{status:`claimed`};n(`Provisioning the ${e.base?`knowledge base`:`site`} and repository...`);let p=yield PRt(r,o.accessToken,Object.assign({subdomain:c,orgName:e.orgName},e.base&&{projectType:u}));if(p.status===`expired`){t(`The previous anonymous site expired. Creating a new registration and site.`),s=null;continue}n0(`cli.deploy.provisioned`,{registration_id:i.registrationId,deployment_id:p.deploymentId,subdomain:p.subdomain,created:p.created}),yield CMt(a,{registrationId:i.registrationId,subdomain:p.subdomain}).catch(()=>t(`Could not save the site name locally. Provide --subdomain on your next invocation.`)),n(`Getting repository write access...`);let m=yield FRt(r,o.accessToken);if(m.remote!==p.remote)throw Error(`Repository credentials do not match the provisioned site.`);return{status:`ready`,projectType:u,site:p,write:m,created:p.created,credentials:o}}throw Error(`The new anonymous site is already expired. Please retry later.`)})}function M2(e,t){let n=new URL(e).hostname===`leaves-dev.mintlify.com`?`mint-dev.mintlify.me`:`mintlify.site`;return new URL(`https://${t}.${n}`).toString()}function BRt(e){return e.orgSlug?new URL(`/${e.orgSlug}/${e.subdomain}/editor`,w1).toString():new URL(w1).toString()}function VRt(e,t){if(e.status===`claimed`)return`This site has been claimed. Manage it in the Mintlify dashboard. Use mint deploy --new --subdomain <name> to create another site.`;let{site:n,write:r}=e,i=[`Repository: ${n.remote}`,`Branch: ${n.branch}`,`Write token: ${r.token}`,`Write token expires: ${r.tokenExpiresAt}`];if(e.projectType===`workspace`)return[e.created?`Knowledge base provisioned.`:`Using the existing anonymous knowledge base.`,`Editor: ${BRt(n)}`,`Expires: ${n.expiresAt}. Claim it before then or it is deleted.`].join(`
2228
2228
  `);let a=M2(t,n.subdomain);return[e.created?`Repository provisioned; push required to build the site.`:`Using the existing anonymous repository; push any changes to build the site.`,`Site: ${a}`,`Expires: ${n.expiresAt}`,...i,`Commit and push your documentation to this repository to start the build.`,`The site link becomes available after the push and build complete.`].join(`
2229
2229
  `)}var N2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const HRt=F({value:Ke().min(1)});function URt(e=process.env){return e.GITHUB_ACTIONS===`true`}function WRt(e,t){return N2(this,void 0,void 0,function*(){let n=e.ACTIONS_ID_TOKEN_REQUEST_URL,r=e.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!n||!r)throw Error("GitHub Actions did not provide an OIDC token. Add `permissions: id-token: write` to the workflow or job.");let i;try{i=yield fetch(`${n}&audience=${encodeURIComponent(t)}`,{headers:{Authorization:`Bearer ${r}`},signal:AbortSignal.timeout(3e4)})}catch{throw Error(`Could not request a GitHub Actions OIDC token. Retry the workflow.`)}let a=HRt.safeParse(yield i.json().catch(()=>null));if(!i.ok||!a.success)throw Error(`Could not get a GitHub Actions OIDC token (HTTP ${i.status}). Check that the workflow has \`permissions: id-token: write\`.`);return a.data.value})}function P2(e,t,n){return new Promise((r,i)=>{let a=Pr(`git`,e,{cwd:t,env:n,stdio:[`ignore`,`pipe`,`inherit`]}),o=``;a.stdout.on(`data`,e=>o+=e.toString()),a.on(`error`,i),a.on(`close`,t=>t===0?r(o.trim()):i(/* @__PURE__ */ Error(`git ${e[0]} failed`)))})}function GRt(e,t){return N2(this,void 0,void 0,function*(){let n=yield P2([`rev-parse`,`HEAD:${yield P2([`rev-parse`,`--show-prefix`],e,t)}`],e,t),[r=``,i=``,a=``,o=``,s=``]=(yield P2([`log`,`-1`,`--format=%an%n%ae%n%aI%n%H%n%s`],e,t)).split(`
2230
2230
  `);return P2([`commit-tree`,n,`-m`,s,`-m`,`Deployed from ${t.GITHUB_REPOSITORY?`${t.GITHUB_REPOSITORY}@`:``}${o}`],e,Object.assign(Object.assign({},t),{GIT_AUTHOR_NAME:r,GIT_AUTHOR_EMAIL:i,GIT_AUTHOR_DATE:a,GIT_COMMITTER_NAME:r,GIT_COMMITTER_EMAIL:i}))})}function KRt(e,t,n,r){let i=Number(r.GIT_CONFIG_COUNT)||0,a=Buffer.from(`x-access-token:${n.token}`).toString(`base64`);return new Promise((o,s)=>{let c=Pr(`git`,[`push`,`--force`,n.remote,`${t}:refs/heads/${n.branch}`],{cwd:e,stdio:[`ignore`,`inherit`,`inherit`],env:Object.assign(Object.assign({},r),{GIT_CONFIG_COUNT:String(i+1),[`GIT_CONFIG_KEY_${i}`]:`http.${n.remote}.extraHeader`,[`GIT_CONFIG_VALUE_${i}`]:`Authorization: Basic ${a}`})}),l=()=>s(/* @__PURE__ */ Error(`git push to the site repository failed.`));c.on(`error`,l),c.on(`close`,e=>e===0?o():l())})}function qRt(e){return N2(this,arguments,void 0,function*(e,t=()=>{},n=process.env){let{apiUrl:r,subdomain:i}=e;if(!i)throw Error(`Pass the site name with --subdomain <name>.`);let a=Rt.resolve(e.directory),o=yield GRt(a,n).catch(()=>{throw Error(`Could not read ${e.directory} from the checked-out commit. Run mint deploy after actions/checkout, with --directory inside the repository.`)});t(`Requesting a GitHub Actions identity token...`);let s=yield WRt(n,r);t(`Getting repository write access...`);let c;try{c=yield IRt(r,s,i)}catch(e){throw e instanceof RMt&&e.status===403?Error(`This repository/branch isn't trusted to deploy ${i}. Run \`mint deploy --github\` locally from this repository to trust it.`):e}return t(`Pushing to the site repository...`),yield KRt(a,o,c,n),M2(r,i)})}var JRt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function YRt(e,t){return JRt(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},process.env),{GIT_CONFIG_COUNT:`1`,GIT_CONFIG_KEY_0:`http.${t.remote}.extraHeader`,GIT_CONFIG_VALUE_0:`Authorization: Bearer ${t.token}`});yield P2([`fetch`,t.remote,t.branch],e,n),yield P2([`rebase`,`FETCH_HEAD`],e,n).catch(()=>{throw Error(`Could not rebase ${e} onto the latest ${t.branch}. Resolve the conflicts, run git rebase --continue, then rerun mint deploy --knowledge-base --push ${e}.`)}),yield P2([`push`,t.remote,`HEAD:refs/heads/${t.branch}`],e,n)})}const XRt=[`No login is required. This command provisions a temporary site and returns repository access. Commit and push the documentation yourself; the CLI does not upload files.`,`Run from your documentation directory, or pass --directory. Put docs.json, pages, and assets at the hosted repository root.`,`Run again from the same documentation directory for the current anonymous site and a fresh write token. Use --new --subdomain <name> to create another site.`,`Claimed sites are managed in the dashboard. Confirmed expired sites start a new anonymous registration.`,`To hand the site to the user, run mint claim. Do not ask for their email: they sign in on the claim page with any account. If you already know the email of their Mintlify account, pass --email to prefill the sign-in. Show the link to the user; they sign in and click Confirm, and the site moves into their account. There is no code to relay. Run it from the original documentation directory, or pass --directory.`,`The output contains a short-lived write token. Do not paste it into public logs or save it in a Git remote.`,`Pass --github from the root of a GitHub repository to deploy on every push: it trusts the repository (via the gh CLI and the origin remote) to deploy the site and writes .github/workflows/mintlify.yml. Commit and push that workflow. Pass --directory to deploy a docs subdirectory of the repository as the site root. Use --force to overwrite a different existing workflow.`,`Pass --knowledge-base to provision a knowledge base instead of a docs site. The output has the claim steps, a clone command, and the editor link; there is no site URL. Commit in the clone, then run mint deploy --knowledge-base --push <clone-directory> to publish. --knowledge-base cannot be combined with --github.`,"In GitHub Actions (GITHUB_ACTIONS=true), no agent credentials are used: the workflow needs `permissions: id-token: write`, --subdomain is required, and the current commit is force-pushed to the site from a trusted repository and branch."].join(`
@@ -2235,7 +2235,7 @@ Next steps:`,`1. Clone the knowledge base into ./${i}:`,` git -c http.${r.remo
2235
2235
  Next steps:`,`1. Clone the hosted repository into a separate directory. Do not replace the user’s existing Git remote.`,`2. Copy the selected documentation into its root, including docs.json, .md/.mdx pages, images, and other required assets. Exclude credentials, .env files, node_modules, and .git.`,`3. Commit the documentation. For subsequent updates, fetch the hosted main branch and commit on top of it. Do not force-push.`,`4. Push to main. Supply the write token as an HTTP Authorization: Bearer header for this Git operation only; never embed it in the remote URL or persist it in Git config.`,`5. If the write token expires, run mint deploy again from the same documentation directory to obtain a fresh token.`,`A successful push starts the normal build. Provisioning and Git success do not confirm build success.`,``,`Git examples (POSIX shell): set REPOSITORY_URL and WRITE_TOKEN from the output above. Set CHECKOUT_DIR to a new directory outside the source documentation directory. Keep the token private and do not enable shell tracing.`,'GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0="http.${REPOSITORY_URL}.extraHeader" GIT_CONFIG_VALUE_0="Authorization: Bearer ${WRITE_TOKEN}" git clone "$REPOSITORY_URL" "$CHECKOUT_DIR"',`After copying and committing the documentation:`,'GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0="http.${REPOSITORY_URL}.extraHeader" GIT_CONFIG_VALUE_0="Authorization: Bearer ${WRITE_TOKEN}" git -C "$CHECKOUT_DIR" push origin HEAD:main',`These settings apply only to that Git process. Use the same authentication settings for later fetches.`,``,...t?[`Claim link for the user: ${t}`,`Show this link to the user. They open it, sign in, and click Confirm; the site moves into their account. Do not sign in on their behalf. There is no code to relay.`]:ZRt].join(`
2236
2236
  `):``}var F2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const tzt=F({id:Me().int().positive(),full_name:Ke().regex(/^[\w.-]+\/[\w.-]+$/),default_branch:Ke().min(1)}),I2=Rt.join(`.github`,`workflows`,`mintlify.yml`);function L2(e,t,n){return new Promise((r,i)=>{Nr(e,t,{cwd:n},(e,t)=>e?i(e):r(String(t).trim()))})}function nzt(e){let t=e.trim().match(/^(?:https:\/\/(?:[^@/]+@)?github\.com\/|ssh:\/\/git@github\.com(?::\d+)?\/|git@github\.com:)([\w.-]+)\/([\w.-]+?)(?:\.git)?\/?$/);return t?.[1]&&t[2]?{owner:t[1],repo:t[2]}:null}function rzt(e,t,n=``){let r=/^[\w./-]+$/.test(n)?n:JSON.stringify(n);return[`name: Deploy to Mintlify`,`on:`,` push:`,` branches: [${JSON.stringify(e)}]`,...n?[` paths: [${JSON.stringify(`${n}/**`)}, ".github/workflows/mintlify.yml"]`]:[],`permissions:`,` id-token: write`,` contents: read`,`concurrency:`,` group: mintlify-deploy`,` cancel-in-progress: true`,`jobs:`,` deploy:`,` runs-on: ubuntu-latest`,` steps:`,` - uses: actions/checkout@v4`,` - run: npx mint@latest deploy --subdomain ${t}${n?` --directory ${r}`:``}`,``].join(`
2237
2237
  `)}function izt(e){return F2(this,void 0,void 0,function*(){return Wn.readFile(e,`utf8`).catch(e=>{if(e.code!==`ENOENT`)throw e})})}function azt(e,t){return F2(this,arguments,void 0,function*(e,t,n=!1){let r=Rt.join(e,I2),i=yield izt(r);if(i===t)return`unchanged`;if(i!==void 0&&!n)throw Error(`${I2} already exists with different contents. Pass --force to overwrite it.`);return yield Wn.mkdir(Rt.dirname(r),{recursive:!0}),yield Wn.writeFile(r,t),i===void 0?`created`:`updated`})}function ozt(e){return F2(this,void 0,void 0,function*(){try{return yield L2(`git`,[`rev-parse`,`--show-toplevel`],e)}catch{throw Error(`--github requires a Git repository. Run it inside your docs repository.`)}})}function szt(e){return F2(this,void 0,void 0,function*(){let t=yield L2(`git`,[`remote`,`get-url`,`origin`],e).catch(()=>{throw Error(`This repository has no origin remote. Add a github.com origin and retry.`)}),n=nzt(t);if(!n)throw Error(`The origin remote (${t}) is not a github.com repository.`);let r=yield L2(`gh`,[`api`,`repos/${n.owner}/${n.repo}`,`--jq`,`{id: .id, full_name: .full_name, default_branch: .default_branch}`],e).catch(e=>{throw e.code===`ENOENT`?Error("The GitHub CLI (gh) is required. Install it and run `gh auth login`."):Error(`Could not read ${n.owner}/${n.repo} with gh. Run \`gh auth login\` with access to the repository and retry.`)});try{return tzt.parse(JSON.parse(r))}catch{throw Error(`gh returned an unexpected repository response.`)}})}function czt(e,t){return F2(this,arguments,void 0,function*(e,t,n=()=>{}){let r=Rt.resolve(e.directory),i=yield ozt(r),[a,o]=yield Promise.all([Wn.realpath(i),Wn.realpath(r)]),s=Rt.relative(a,o).split(Rt.sep).join(`/`);if(!(yield izt(Rt.join(r,`docs.json`))))throw Error(`No docs.json in ${r}. Pass the docs folder with --directory.`);n(`Resolving the GitHub repository...`);let c=yield szt(i),l=yield zRt(e,t,n);if(l.status===`claimed`)throw Error(`This site has been claimed. Setting up GitHub deploys for claimed sites is not supported yet; connect the repository from the Mintlify dashboard.`);let u=l.credentials.accessToken;if(!u)throw Error(`Agent authentication did not return an access token.`);n(`Trusting ${c.full_name}@${c.default_branch} to deploy...`),yield LRt(e.apiUrl,u,{repositoryId:String(c.id),repository:c.full_name,branch:c.default_branch});let d=yield azt(i,rzt(c.default_branch,l.site.subdomain,s),e.force);return{siteUrl:M2(e.apiUrl,l.site.subdomain),subdomain:l.site.subdomain,repository:c.full_name,branch:c.default_branch,workflowPath:I2,workflow:d}})}function lzt(e){return[`Site: ${e.siteUrl}`,`Trusted repository: ${e.repository} (branch ${e.branch})`,`Workflow: ${e.workflowPath} (${e.workflow})`,``,`Next steps:`,`1. Commit and push ${e.workflowPath} to ${e.branch}.`,`2. Every push to ${e.branch} then deploys ${e.subdomain} through GitHub Actions. No secrets are stored in the repository.`,``,...ZRt].join(`
2238
- `)}var uzt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const dzt=[`bug`,`docs`,`idea`];function fzt(e){return uzt(this,void 0,void 0,function*(){let t;try{t=yield fetch(`${C1}/api/cli/feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(Object.assign(Object.assign({},e),{source:`cli`}))})}catch{return`could not reach the server`}return t.ok?void 0:`could not send feedback (HTTP ${t.status})`})}function pzt(e){return uzt(this,void 0,void 0,function*(){let t=yield fzt(e);return OH(t?(0,R.jsx)(bH,{message:t}):(0,R.jsx)(_H,{message:`feedback sent`})),!t})}var mzt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},R2=function(e){return this instanceof R2?(this.v=e,this):new R2(e)},hzt=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},gzt=function(e){var t={},n;return r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:R2(e[r](t)),done:!1}:i?i(t):t}:i}},_zt=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof R2?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};function vzt(){return mzt(this,void 0,void 0,function*(){try{return wP(yield Wn.readFile(Rt.join(a1,`.gitignore`),`utf-8`))}catch{return[]}})}function yzt(e,t){return _zt(this,arguments,function*(){let n=yield R2(Wn.readdir(e,{withFileTypes:!0}));for(let r of n){let n=Rt.join(e,r.name);EP(Rt.relative(a1,n).split(Rt.sep).join(`/`),t,r.isDirectory())||(r.isDirectory()?yield R2(yield*gzt(hzt(yzt(n,t)))):r.name.endsWith(`.mdx`)&&(yield yield R2(n)))}})}const bzt=()=>mzt(void 0,void 0,void 0,function*(){var e,t,n,r;let{mdxToPm:i,pmToMdx:a,canonicalPmToMdxOptions:o}=yield import(`./converter-CPiwufaq.js`),s=DP([...yield vzt(),...yield fF(a1)]),c=0,l=0,u=0;try{for(var d=!0,f=hzt(yzt(a1,s)),p;p=yield f.next(),e=p.done,!e;d=!0){r=p.value,d=!1;let e=r;c++;let t=Rt.relative(a1,e);try{let t=yield Wn.readFile(e,`utf-8`),n=t,r=0;for(let e=0;e<3;e++){let{doc:t,frontmatter:s}=i(n);e===0&&(r=Object.keys(s).length);let c=`${a(t,Object.assign({frontmatter:s},o))}\n`;if(c===n)break;n=c}if(r>0&&!n.startsWith(`---`))throw Error(`formatting would remove frontmatter; file left untouched`);n!==t&&(yield Wn.writeFile(e,n),l++)}catch(e){u++,OH((0,R.jsx)(bH,{message:`${t}: ${e instanceof Error?e.message:`unknown error`}`}))}}}catch(e){t={error:e}}finally{try{!d&&!e&&(n=f.return)&&(yield n.call(f))}finally{if(t)throw t.error}}OH((0,R.jsx)(_H,{message:`formatted ${l} of ${c} mdx file${c===1?``:`s`}${u>0?` (${u} failed)`:``}`})),yield d1(+(u>0))});var z2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const B2=`mintlify`,V2=`templates`,H2=`main`;function U2(){return z2(this,void 0,void 0,function*(){let e=yield fetch(`https://api.github.com/repos/${B2}/${V2}/contents/?ref=${H2}`,{headers:{Accept:`application/vnd.github.v3+json`}});if(!e.ok)throw Error(`Failed to fetch templates: ${e.status} ${e.statusText}`);return(yield e.json()).filter(e=>e.type===`dir`).map(e=>e.name)})}function xzt(e){return z2(this,void 0,void 0,function*(){if(!e||e===`.`||e===`..`||e.includes(`/`))throw Error(`Invalid template name: "${e}".`);let t=`https://api.github.com/repos/${B2}/${V2}/contents/${encodeURIComponent(e)}?ref=${H2}`,n=yield fetch(t,{headers:{Accept:`application/vnd.github.v3+json`}});if(!n.ok){let t=yield U2().catch(()=>[]),n=t.length>0?` Available templates: ${t.join(`, `)}`:``;throw Error(`Template "${e}" not found in ${B2}/${V2}.${n}`)}if(!(yield n.json()).some(e=>e.name===`docs.json`))throw Error(`Template "${e}" is not a valid Mintlify template (missing docs.json).`);return e})}function Szt(){return z2(this,void 0,void 0,function*(){OH((0,R.jsx)(vH,{message:`fetching available templates...`}));let e;try{e=yield U2()}catch{throw NH(),Error(`Failed to fetch templates. Please check your network connection and try again.`)}if(NH(),e.length===0)throw Error(`No templates are currently available.`);return O0({message:`Choose a template`,choices:e.map(e=>({name:e,value:e}))})})}function Czt(e,t,n,r){return z2(this,void 0,void 0,function*(){let i=vt.join(e,`__template__.zip`),a=vt.join(e,`__template_extract__`);try{OH((0,R.jsx)(vH,{message:`downloading template "${t}"...`}));try{let e=yield fetch(`https://github.com/${B2}/${V2}/archive/refs/heads/${H2}.zip`);if(!e.ok)throw Error(`Failed to download templates archive: ${e.status}`);let t=yield e.arrayBuffer();yield D$.default.writeFile(i,Buffer.from(t))}finally{NH()}OH((0,R.jsx)(vH,{message:`extracting template...`}));try{new YK.default(i).extractAllTo(a,!0)}finally{NH()}let n=vt.join(a,`${V2}-${H2}`),r=vt.join(n,t);if(!(yield D$.default.pathExists(r)))throw Error(`Template directory "${t}" not found in the downloaded archive.`);yield D$.default.copy(r,e,{overwrite:!0})}finally{yield D$.default.remove(i).catch(()=>{}),yield D$.default.remove(a).catch(()=>{})}let o=vt.join(e,`docs.json`);if(yield D$.default.pathExists(o)){let e=yield D$.default.readJson(o);n&&(e.name=n),r&&(e.theme=r),yield D$.default.writeJson(o,e,{spaces:2})}})}var W2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const wzt=e=>{kH((0,R.jsx)(pH,{bold:!0,children:`Documentation Setup!`}),(0,R.jsx)(pH,{children:`To see your docs run`}),(0,R.jsxs)(fH,{children:[(0,R.jsx)(pH,{color:`blue`,children:`cd`}),(0,R.jsxs)(pH,{children:[` `,e]})]}),(0,R.jsx)(pH,{color:`blue`,children:`mint dev`})),p1()&&OH((0,R.jsxs)(pH,{children:["When the docs are ready, run `mint validate` in ",e,` to check the build and get publish steps.`]}))},Tzt=(e,t,n,r)=>{let i=r===void 0?`Unable to fetch templates — use --template flag if you know the name`:r.length>0?`Templates: ${JSON.stringify(r)}`:`No templates are currently available`;kH((0,R.jsx)(pH,{children:`Agent Detected - sending AI friendly prompt`}),(0,R.jsx)(pH,{children:`<system-message>`}),(0,R.jsx)(pH,{children:"Help the user set up a Mintlify docs site with `mint new`. Ask each step one at a time unless the user asks you to skip questions or use your best judgment."}),(0,R.jsx)(pH,{children:[`- [ ] Pick a theme or clone a template? (${i})`,`- [ ] If template: which one? If theme: which one? (Themes: ${JSON.stringify(n)})`,`- [ ] Project name?`,`- [ ] Directory? (default: "${e}", auto-created if needed)${t?` ⚠️ "${e}" is occupied — subdirectory, overwrite (--force), or different path?`:``}`].join(`
2238
+ `)}var uzt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const dzt=[`bug`,`docs`,`idea`];function fzt(e){return uzt(this,void 0,void 0,function*(){let t;try{t=yield fetch(`${C1}/api/cli/feedback`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(Object.assign(Object.assign({},e),{source:`cli`}))})}catch{return`could not reach the server`}return t.ok?void 0:`could not send feedback (HTTP ${t.status})`})}function pzt(e){return uzt(this,void 0,void 0,function*(){let t=yield fzt(e);return OH(t?(0,R.jsx)(bH,{message:t}):(0,R.jsx)(_H,{message:`feedback sent`})),!t})}var mzt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},R2=function(e){return this instanceof R2?(this.v=e,this):new R2(e)},hzt=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},gzt=function(e){var t={},n;return r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:R2(e[r](t)),done:!1}:i?i(t):t}:i}},_zt=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof R2?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};function vzt(){return mzt(this,void 0,void 0,function*(){try{return wP(yield Wn.readFile(Rt.join(a1,`.gitignore`),`utf-8`))}catch{return[]}})}function yzt(e,t){return _zt(this,arguments,function*(){let n=yield R2(Wn.readdir(e,{withFileTypes:!0}));for(let r of n){let n=Rt.join(e,r.name);EP(Rt.relative(a1,n).split(Rt.sep).join(`/`),t,r.isDirectory())||(r.isDirectory()?yield R2(yield*gzt(hzt(yzt(n,t)))):r.name.endsWith(`.mdx`)&&(yield yield R2(n)))}})}const bzt=()=>mzt(void 0,void 0,void 0,function*(){var e,t,n,r;let{mdxToPm:i,pmToMdx:a,canonicalPmToMdxOptions:o}=yield import(`./converter-BEZ48p7S.js`),s=DP([...yield vzt(),...yield fF(a1)]),c=0,l=0,u=0;try{for(var d=!0,f=hzt(yzt(a1,s)),p;p=yield f.next(),e=p.done,!e;d=!0){r=p.value,d=!1;let e=r;c++;let t=Rt.relative(a1,e);try{let t=yield Wn.readFile(e,`utf-8`),n=t,r=0;for(let e=0;e<3;e++){let{doc:t,frontmatter:s}=i(n);e===0&&(r=Object.keys(s).length);let c=`${a(t,Object.assign({frontmatter:s},o))}\n`;if(c===n)break;n=c}if(r>0&&!n.startsWith(`---`))throw Error(`formatting would remove frontmatter; file left untouched`);n!==t&&(yield Wn.writeFile(e,n),l++)}catch(e){u++,OH((0,R.jsx)(bH,{message:`${t}: ${e instanceof Error?e.message:`unknown error`}`}))}}}catch(e){t={error:e}}finally{try{!d&&!e&&(n=f.return)&&(yield n.call(f))}finally{if(t)throw t.error}}OH((0,R.jsx)(_H,{message:`formatted ${l} of ${c} mdx file${c===1?``:`s`}${u>0?` (${u} failed)`:``}`})),yield d1(+(u>0))});var z2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const B2=`mintlify`,V2=`templates`,H2=`main`;function U2(){return z2(this,void 0,void 0,function*(){let e=yield fetch(`https://api.github.com/repos/${B2}/${V2}/contents/?ref=${H2}`,{headers:{Accept:`application/vnd.github.v3+json`}});if(!e.ok)throw Error(`Failed to fetch templates: ${e.status} ${e.statusText}`);return(yield e.json()).filter(e=>e.type===`dir`).map(e=>e.name)})}function xzt(e){return z2(this,void 0,void 0,function*(){if(!e||e===`.`||e===`..`||e.includes(`/`))throw Error(`Invalid template name: "${e}".`);let t=`https://api.github.com/repos/${B2}/${V2}/contents/${encodeURIComponent(e)}?ref=${H2}`,n=yield fetch(t,{headers:{Accept:`application/vnd.github.v3+json`}});if(!n.ok){let t=yield U2().catch(()=>[]),n=t.length>0?` Available templates: ${t.join(`, `)}`:``;throw Error(`Template "${e}" not found in ${B2}/${V2}.${n}`)}if(!(yield n.json()).some(e=>e.name===`docs.json`))throw Error(`Template "${e}" is not a valid Mintlify template (missing docs.json).`);return e})}function Szt(){return z2(this,void 0,void 0,function*(){OH((0,R.jsx)(vH,{message:`fetching available templates...`}));let e;try{e=yield U2()}catch{throw NH(),Error(`Failed to fetch templates. Please check your network connection and try again.`)}if(NH(),e.length===0)throw Error(`No templates are currently available.`);return O0({message:`Choose a template`,choices:e.map(e=>({name:e,value:e}))})})}function Czt(e,t,n,r){return z2(this,void 0,void 0,function*(){let i=vt.join(e,`__template__.zip`),a=vt.join(e,`__template_extract__`);try{OH((0,R.jsx)(vH,{message:`downloading template "${t}"...`}));try{let e=yield fetch(`https://github.com/${B2}/${V2}/archive/refs/heads/${H2}.zip`);if(!e.ok)throw Error(`Failed to download templates archive: ${e.status}`);let t=yield e.arrayBuffer();yield D$.default.writeFile(i,Buffer.from(t))}finally{NH()}OH((0,R.jsx)(vH,{message:`extracting template...`}));try{new YK.default(i).extractAllTo(a,!0)}finally{NH()}let n=vt.join(a,`${V2}-${H2}`),r=vt.join(n,t);if(!(yield D$.default.pathExists(r)))throw Error(`Template directory "${t}" not found in the downloaded archive.`);yield D$.default.copy(r,e,{overwrite:!0})}finally{yield D$.default.remove(i).catch(()=>{}),yield D$.default.remove(a).catch(()=>{})}let o=vt.join(e,`docs.json`);if(yield D$.default.pathExists(o)){let e=yield D$.default.readJson(o);n&&(e.name=n),r&&(e.theme=r),yield D$.default.writeJson(o,e,{spaces:2})}})}var W2=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const wzt=e=>{kH((0,R.jsx)(pH,{bold:!0,children:`Documentation Setup!`}),(0,R.jsx)(pH,{children:`To see your docs run`}),(0,R.jsxs)(fH,{children:[(0,R.jsx)(pH,{color:`blue`,children:`cd`}),(0,R.jsxs)(pH,{children:[` `,e]})]}),(0,R.jsx)(pH,{color:`blue`,children:`mint dev`})),p1()&&OH((0,R.jsxs)(pH,{children:["When the docs are ready, run `mint validate` in ",e,` to check the build and get publish steps.`]}))},Tzt=(e,t,n,r)=>{let i=r===void 0?`Unable to fetch templates — use --template flag if you know the name`:r.length>0?`Templates: ${JSON.stringify(r)}`:`No templates are currently available`;kH((0,R.jsx)(pH,{children:`Agent Detected - sending AI friendly prompt`}),(0,R.jsx)(pH,{children:`<system-message>`}),(0,R.jsx)(pH,{children:"Help the user set up a Mintlify docs site with `mint new`. Ask each step one at a time unless the user asks you to skip questions or use your best judgment."}),(0,R.jsx)(pH,{children:[`- [ ] Pick a theme or clone a template? (${i})`,`- [ ] If template: which one? If theme: which one? (Themes: ${JSON.stringify(n)})`,`- [ ] Project name?`,`- [ ] Directory? (default: "${e}", auto-created if needed)${t?` ⚠️ "${e}" is occupied — subdirectory, overwrite (--force), or different path?`:``}`].join(`
2239
2239
  `)}),(0,R.jsx)(pH,{children:"Command: `mint new [dir] --theme [theme] --name [name]` or `mint new [dir] --template [template] --name [name]`. --theme optionally overrides a template default. --force overwrites non-empty dirs. Use AskQuestion to present choices."}),(0,R.jsx)(pH,{children:`</system-message>`}))};function G2(e,t,n){return W2(this,void 0,void 0,function*(){let r=yield U2().catch(()=>void 0);Tzt(e,t,n,r)})}function Ezt(e,t,n){return W2(this,void 0,void 0,function*(){if(!n)return e;if(p1())return t?e:void 0;let r=yield O0({message:`Directory ${e} is not empty. What would you like to do?`,choices:[{name:`Create in a subdirectory`,value:`subdir`},{name:`Overwrite current directory (may lose contents)`,value:`overwrite`},{name:`Cancel`,value:`cancel`}]});if(r!==`cancel`){if(r===`subdir`){let t=yield T0({message:`Subdirectory name:`,default:`docs`});if(!t||t.trim()===``)throw Error(`Subdirectory name cannot be empty`);let n=e===`.`?t:`${e}/${t}`;return mf(n,process.cwd()),n}return e}})}function Dzt(e,t){return W2(this,void 0,void 0,function*(){return t||T0({message:`Project Name`,default:e===`.`?`Mintlify`:e})})}function Ozt(){return W2(this,void 0,void 0,function*(){if((yield O0({message:`How would you like to set up your docs?`,choices:[{name:`Pick a theme`,value:`theme`},{name:`Clone a template`,value:`template`}]}))===`template`)return Szt()})}function kzt(e,t,n,r,i){return W2(this,void 0,void 0,function*(){mf(e);let a=wl.options.map(e=>e.shape.theme._def.value),o=(yield D$.default.readdir(e).catch(()=>[])).length>0;if(p1()&&(!r||!i&&!n)||p1()&&o&&!t){yield G2(e,o,a);return}let s=i?yield xzt(i).then(()=>i):!p1()&&!n?yield Ozt():void 0;if(s){let i=yield Ezt(e,t,o);if(i===void 0){p1()&&(yield G2(e,o,a));return}let c=yield Dzt(i,r);yield D$.default.ensureDir(i),yield Czt(i,s,c,n),wzt(i);return}let c=yield Ezt(e,t,o);if(c===void 0){p1()&&(yield G2(e,o,a));return}let l=r,u=n;!p1()&&(!u||!l)&&(l=yield Dzt(c,l),u||=yield O0({message:`Theme`,choices:a.map(e=>({name:e,value:e}))})),l===void 0||u===void 0?yield G2(c,o,a):(yield D$.default.ensureDir(c),yield Azt(c,l,u),wzt(c))})}const Azt=(e,t,n)=>W2(void 0,void 0,void 0,function*(){OH((0,R.jsx)(vH,{message:`downloading starter template...`}));let r=yield(yield fetch(`https://github.com/mintlify/starter/archive/refs/heads/main.zip`)).arrayBuffer();yield D$.default.writeFile(e+`/starter.zip`,Buffer.from(r)),NH(),OH((0,R.jsx)(vH,{message:`extracting...`})),new YK.default(e+`/starter.zip`).extractAllTo(e,!0),NH(),yield D$.default.copy(e+`/starter-main`,e,{overwrite:!0,filter:e=>!e.includes(`starter-main/starter-main`)}),yield D$.default.remove(e+`/starter.zip`),yield D$.default.remove(e+`/starter-main`);let i=e+`/docs.json`,a=yield D$.default.readJson(i);a.theme=n,a.name=t,yield D$.default.writeJson(i,a,{spaces:2})});var jzt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const Mzt=[{name:`overview`,when:`Start here: how Mintlify works and facts agents most often get wrong`},{name:`new-site`,when:`New docs site, first publish, no account, claim a site, login, no docs.json yet`},{name:`write`,when:`Before creating a page or writing more than a sentence or two; changelogs`},{name:`write components`,when:`Adding or changing components: callouts, cards, steps, tabs, accordions, fields`},{name:`configure`,when:`Changing docs.json: theme, colors, logo, favicon, required fields`},{name:`configure navigation`,when:`Changing navigation: groups, tabs, anchors, dropdowns, products, versions, languages`},{name:`configure settings`,when:`navbar, footer, banner, SEO, search, integrations, contextual menu, redirects, 404`},{name:`configure customization`,when:`Themes, fonts, CSS, JavaScript, or React snippets`},{name:`api-docs`,when:`API documentation: OpenAPI, AsyncAPI, GraphQL, playground`},{name:`api-docs sdk`,when:`SDK reference pages, x-codeSamples, oneOf/anyOf, multiple responses, hiding endpoints`},{name:`publish`,when:`Deploying, "is it live", previews, rollbacks, MCP, llms.txt, skill.md, Markdown export`},{name:`publish domain`,when:`Custom domain (mint add-domain), /docs subpath, reverse proxy, CSP`},{name:`publish repo`,when:`Monorepo, multi-repo, GitHub/GitLab/Bitbucket, offline export, self-host`},{name:`publish analytics`,when:`mint analytics, feedback, search data, analytics integrations`},{name:`publish assistant`,when:`AI assistant, widget, Assistant.md, skills, narration, own model`},{name:`access`,when:`Private docs, reader login, user groups, personalization`},{name:`access team`,when:`Team members, roles, SSO, SCIM, audit logs, session security`},{name:`automate`,when:`Keep docs in sync with code: agent, Autopilot, automations, Slack, CI`},{name:`migrate`,when:`Moving docs from Docusaurus, GitBook, ReadMe, Fern, Document360, Confluence, Markdown`},{name:`troubleshoot`,when:`An error, a failed build or deploy, or the site looks wrong`}],Nzt=()=>{let e=Math.max(...Mzt.map(({name:e})=>e.length))+2;return[`Usage: mint instructions <topic> [subtopic]`,``,...Mzt.map(({name:t,when:n})=>` ${t.padEnd(e)}${n}`),``].join(`
2240
2240
  `)},Pzt=e=>`https://www.mintlify.com/docs/mint-instructions/${e.map(encodeURIComponent).join(`/`)}.md`,Fzt=e=>e.replace(/^(?:>.*\n|\s*\n)*/,``);function Izt(e){return jzt(this,void 0,void 0,function*(){let t=Pzt(e),n=yield fetch(t);if(n.status===404)throw Error(`no instructions for "${e.join(` `)}". Run \`mint instructions\` to list topics.`);if(!n.ok)throw Error(`failed to fetch ${t}: ${n.status} ${n.statusText}`);return Fzt(yield n.text())})}var Lzt=/* @__PURE__ */ r($gt(),1);typeof navigator>`u`||navigator.userAgent?.startsWith?.(`Mozilla/5.0 `);const K2=`ERR_INVALID_ARG_VALUE`;function q2(e,t,n){let r=TypeError(e,{cause:n});return Object.assign(r,{code:t}),r}const Rzt=Symbol(),zzt=Symbol(),Bzt=Symbol(),Vzt=new TextEncoder,Hzt=new TextDecoder;function Uzt(e){return typeof e==`string`?Vzt.encode(e):Hzt.decode(e)}let J2;if(Uint8Array.prototype.toBase64)J2=e=>(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e.toBase64({alphabet:`base64url`,omitPadding:!0}));else{let e=32768;J2=t=>{t instanceof ArrayBuffer&&(t=new Uint8Array(t));let n=[];for(let r=0;r<t.byteLength;r+=e)n.push(String.fromCharCode.apply(null,t.subarray(r,r+e)));return btoa(n.join(``)).replace(/=/g,``).replace(/\+/g,`-`).replace(/\//g,`_`)}}let Wzt;Wzt=Uint8Array.fromBase64?e=>{try{return Uint8Array.fromBase64(e,{alphabet:`base64url`})}catch(e){throw q2(`The input to be decoded is not correctly encoded.`,K2,e)}}:e=>{try{let t=atob(e.replace(/-/g,`+`).replace(/_/g,`/`).replace(/\s/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}catch(e){throw q2(`The input to be decoded is not correctly encoded.`,K2,e)}};function Gzt(e){return typeof e==`string`?Wzt(e):J2(e)}var Kzt=class extends Error{code;constructor(e,t){super(e,t),this.name=this.constructor.name,t?.code&&(this.code=t?.code),Error.captureStackTrace?.(this,this.constructor)}};function qzt(e,t,n){return new Kzt(e,{code:t,cause:n})}function Jzt(e,t,n,r){try{if(typeof e!=`string`)throw q2(`${t} must be a string`,`ERR_INVALID_ARG_TYPE`,r);if(e.length===0)throw q2(`${t} must not be empty`,K2,r)}catch(e){throw n?qzt(e.message,n,r):e}}function Y2(){return Gzt(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(32)))}function Yzt(){return Y2()}function Xzt(){return Y2()}function Zzt(){return Y2()}async function Qzt(e){return Jzt(e,`codeVerifier`),Gzt(await crypto.subtle.digest(`SHA-256`,Uzt(e)))}function $zt(e){return Jzt(e,`"clientSecret"`),(t,n,r,i)=>{r.set(`client_id`,n.client_id),r.set(`client_secret`,e)}}function eBt(){return(e,t,n,r)=>{n.set(`client_id`,t.client_id)}}URL.parse;const tBt=Symbol();typeof navigator>`u`||navigator.userAgent?.startsWith?.(`Mozilla/5.0 `);const X2=e=>Z2.get(e);let Z2,Q2;function nBt(e){return e===void 0?(Q2||=/* @__PURE__ */ new WeakMap,(e,t,n,r)=>{let i;return(i=Q2.get(t))||(rBt(t.client_secret,`"metadata.client_secret"`),i=$zt(t.client_secret),Q2.set(t,i)),i(e,t,n,r)}):$zt(e)}function rBt(e,t){if(typeof e!=`string`)throw $2(`${t} must be a string`,sBt);if(e.length===0)throw $2(`${t} must not be empty`,oBt)}function iBt(){return eBt()}const aBt=Bzt,oBt=`ERR_INVALID_ARG_VALUE`,sBt=`ERR_INVALID_ARG_TYPE`;function $2(e,t,n){let r=TypeError(e,{cause:n});return Object.assign(r,{code:t}),r}function cBt(e){return Qzt(e)}function lBt(){return Yzt()}function uBt(){return Zzt()}function dBt(){return Xzt()}new TextDecoder;function fBt(e){return{supportsPKCE:{__proto__:null,value(t=`S256`){return e.code_challenge_methods_supported?.includes(t)===!0}}}}function pBt(e){Object.defineProperties(e,fBt(e))}const mBt=Symbol();Object.freeze(class{constructor(e,t,n,r){if(typeof t!=`string`||!t.length)throw $2(`"clientId" must be a non-empty string`,sBt);if(typeof n==`string`&&(n={client_secret:n}),n?.client_id!==void 0&&t!==n.client_id)throw $2(`"clientId" and "metadata.client_id" must be the same`,oBt);let i={...structuredClone(n),client_id:t};i[Rzt]=n?.[Rzt]??0,i[zzt]=n?.[zzt]??30;let a;a=r||(typeof i.client_secret==`string`&&i.client_secret.length?nBt(i.client_secret):iBt());let o=Object.freeze(i),s=structuredClone(e);mBt in e&&(s[tBt]=({claims:{tid:t}})=>e.issuer.replace(`{tenantid}`,t));let c=Object.freeze(s);Z2||=/* @__PURE__ */ new WeakMap,Z2.set(this,{__proto__:null,as:c,c:o,auth:a,tlsOnly:!0,jwksCache:{}})}serverMetadata(){let e=structuredClone(X2(this).as);return pBt(e),e}clientMetadata(){return structuredClone(X2(this).c)}get timeout(){return X2(this).timeout}set timeout(e){X2(this).timeout=e}get[aBt](){return X2(this).fetch}set[aBt](e){X2(this).fetch=e}}.prototype);var hBt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function gBt(){return hBt(this,void 0,void 0,function*(){let{default:e}=yield import(`http`),t,n,r=!1,i=new Promise((e,r)=>{t=e,n=r}),a=e.createServer((e,n)=>{if(n.setHeader(`Access-Control-Allow-Origin`,w1),n.setHeader(`Access-Control-Allow-Methods`,`POST, OPTIONS`),n.setHeader(`Access-Control-Allow-Headers`,`Content-Type`),e.method===`OPTIONS`)n.writeHead(204),n.end();else if(e.method===`POST`){let i=``;e.on(`data`,e=>{i+=e}),e.on(`end`,()=>{try{let{code:e}=JSON.parse(i);n.writeHead(200,{"Content-Type":`application/json`}),n.end(JSON.stringify({ok:!0})),r=!0,a.close(),t(e)}catch{n.writeHead(400),n.end(JSON.stringify({error:`invalid body`}))}})}else n.writeHead(405),n.end()});return a.listen(11582,`localhost`),{codePromise:i,close:()=>{r||(r=!0,a.close(),n(/* @__PURE__ */ Error(`Login cancelled`)))}}})}var _Bt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function vBt(){return _Bt(this,void 0,void 0,function*(){let e=lBt(),t=yield cBt(e),n=uBt(),r=dBt(),i=Buffer.from(JSON.stringify({nonce:n,clientState:r})).toString(`base64url`),a=new URL(`/api/cli/oauth/authorize`,w1);a.searchParams.set(`state`,i),a.searchParams.set(`code_challenge`,t);let o=a.toString();mNt();let{codePromise:s,close:c}=yield gBt();OH((0,R.jsxs)(fH,{flexDirection:`column`,gap:1,paddingY:1,children:[(0,R.jsxs)(pH,{bold:!0,children:[(0,R.jsx)(pH,{color:`green`,children:`◆ `}),`A browser window will open for Mintlify authentication`]}),(0,R.jsxs)(fH,{flexDirection:`column`,paddingLeft:3,gap:1,children:[(0,R.jsx)(pH,{dimColor:!0,children:`If your browser doesn't open automatically, copy this URL:`}),(0,R.jsx)(pH,{dimColor:!0,children:o})]})]})),(0,Lzt.default)(o).catch(()=>{}),OH((0,R.jsxs)(fH,{flexDirection:`column`,paddingLeft:1,marginTop:1,children:[(0,R.jsx)(pH,{dimColor:!0,children:`╭─ Paste the authorization code from your browser`}),(0,R.jsx)(pH,{dimColor:!0,children:`│`})]})),yield new Promise(e=>setTimeout(e,50));let l=T0({message:`█`,theme:{prefix:eY.dim(` │`),style:{answer:e=>eY.cyan(e)}}}),u;try{u=yield Promise.race([s,l])}catch{c(),l.cancel(),OH((0,R.jsx)(bH,{message:`login cancelled`}));return}c(),l.cancel();let d=yield fetch(T1,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({grant_type:`authorization_code`,code:u,code_verifier:e})}),f=yield d.json().catch(()=>({}));if(!d.ok){let e=f.error_message??f.error??`unknown error`;gNt(e),OH((0,R.jsx)(bH,{message:`login failed: ${e}`}));return}let p=f;yield b1(p.access_token,p.refresh_token,E1(p.id_token)??null),hNt(),OH((0,R.jsx)(_H,{message:`logged in successfully`})),yield bBt(p.access_token)})}function yBt(e){return e instanceof Error&&e.name===`ExitPromptError`}function bBt(e){return _Bt(this,void 0,void 0,function*(){let t=yield R1(e);if(t.length===0)return;if(t.length===1){yield P1(`subdomain`,t[0]),OH((0,R.jsx)(gH,{message:`default project set to ${t[0]}`}));return}yield new Promise(e=>setTimeout(e,50));let n;try{n=yield TPt({message:`Select a default project`,source:e=>(e?t.filter(t=>t.toLowerCase().includes(e.toLowerCase())):t).map(e=>({name:e,value:e}))})}catch(e){if(yBt(e)){OH((0,R.jsx)(gH,{message:`No project set. To set a default project, run ${eY.bold(`mintlify config set subdomain <subdomain>`)}`}));return}throw e}yield P1(`subdomain`,n),OH((0,R.jsx)(gH,{message:`default project set to ${n}`}))})}var xBt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function SBt(){return xBt(this,void 0,void 0,function*(){yield fMt(),OH((0,R.jsx)(_H,{message:`logged out successfully`}))})}var CBt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const wBt=(e,t)=>{let n=[],r=()=>t=>(p(t,t=>{if(t.type===`image`){(!t.alt||t.alt.trim()===``)&&n.push({filePath:e,line:t.position?.start.line,column:t.position?.start.column,element:`img`,tagName:`image (markdown)`});return}let r=t;if(r.name===`img`||r.name===`video`){let i=r.attributes.findIndex(e=>e.type===`mdxJsxAttribute`&&e.name===`alt`),a=r.attributes[i];a&&typeof a.value==`string`&&a.value.trim()!==``||n.push({filePath:e,line:t.position?.start.line,column:t.position?.start.column,element:r.name,tagName:r.name})}else if(r.name===`a`){let i=e=>e.some(e=>e.type===`text`?e.value.trim()!==``:`children`in e&&Array.isArray(e.children)?i(e.children):!1);i(r.children)||n.push({filePath:e,line:t.position?.start.line,column:t.position?.start.column,element:`a`,tagName:`<a>`})}}),t);try{let e=t.replace(/^( {0,3}#{1,6}\s+.+?)\s*\{#[^}]+\}\s*$/gm,`$1`);PT().use(r).processSync(e)}catch(t){console.warn(`Warning: Could not parse ${e}: ${t}`)}return n},TBt=(...e)=>CBt(void 0,[...e],void 0,function*(e=process.cwd()){let t=yield fF(e),{contentFilenames:n}=yield gF(e,t),r=[];for(let t of n)r.push(vt.join(e,t));let i=[],a=/* @__PURE__ */ new Set;for(let e of r)try{let t=Yt.readFileSync(e,`utf-8`),n=wBt(e,t);n.length>0&&(i.push(...n),a.add(e))}catch(t){console.warn(`Warning: Could not read file ${e}: ${t}`)}return{missingAltAttributes:i,totalFiles:r.length,filesWithIssues:a.size}});var EBt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const DBt=()=>EBt(void 0,void 0,void 0,function*(){try{OH((0,R.jsx)(pH,{bold:!0,color:`cyan`,children:`Checking mdx files for accessibility issues...`}));let e=yield TBt();if(e.missingAltAttributes.length===0)return OH((0,R.jsx)(_H,{message:`no accessibility issues found`})),OH((0,R.jsxs)(pH,{children:[`Checked `,e.totalFiles,` MDX files - all images and videos have alt attributes.`]})),0;let t={};e.missingAltAttributes.forEach(e=>{var n;t[e.filePath]||(t[e.filePath]=[]),(n=t[e.filePath])==null||n.push(e)}),OH((0,R.jsxs)(pH,{bold:!0,color:`red`,children:[`Found `,e.missingAltAttributes.length,` accessibility issues in`,` `,e.filesWithIssues,` files:`]})),OH((0,R.jsx)(pH,{}));for(let[e,n]of Object.entries(t)){let t=vt.relative(process.cwd(),e);OH((0,R.jsxs)(pH,{bold:!0,children:[t,`:`]}));for(let e of n){let t=e.line&&e.column?` (line ${e.line}, col ${e.column})`:``;e.element===`a`?OH((0,R.jsxs)(pH,{children:[(0,R.jsx)(pH,{color:`red`,children:` ✗`}),` Missing text attribute `,(0,R.jsx)(pH,{bold:!0,children:e.tagName}),` `,`element`,t]})):OH((0,R.jsxs)(pH,{children:[(0,R.jsx)(pH,{color:`red`,children:` ✗`}),` Missing alt attribute on `,(0,R.jsx)(pH,{bold:!0,children:e.tagName}),` `,`element`,t]}))}OH((0,R.jsx)(pH,{}))}return OH((0,R.jsxs)(pH,{color:`yellow`,children:[(0,R.jsx)(pH,{bold:!0,children:`Recommendation:`}),` Add alt attributes to all images and videos for better accessibility.`]})),1}catch(e){return OH((0,R.jsx)(bH,{message:`MDX accessibility check failed: ${e instanceof Error?e.message:`Unknown error`}`})),1}});var OBt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const kBt=/* @__PURE__ */ new Set([`page`,`site`,`openapi`]),ABt=/* @__PURE__ */ new Set([`stats`,`search`,`feedback`,`conversation`]),jBt=/* @__PURE__ */ new Set([`set`,`get`,`clear`]),MBt=/* @__PURE__ */ new Set([`list`,`view`,`buckets`]),NBt=/* @__PURE__ */ new Set([`list`,`view`]);function PBt(e){let t=e.filter(e=>typeof e==`string`);if(t.length===0)return``;let n=t[0],r=t[1],i=t[2];if(n===`scrape`&&r!==void 0&&kBt.has(r))return`scrape ${r}`;if(n===`config`&&r!==void 0&&jBt.has(r))return`config ${r}`;if(n===`analytics`&&r!==void 0&&ABt.has(r)){if(r===`conversation`&&i!==void 0&&MBt.has(i)){let e=t[3];return i===`buckets`&&e!==void 0&&NBt.has(e)?`analytics conversation buckets ${e}`:`analytics conversation ${i}`}return`analytics ${r}`}return n}function FBt(){let e=!1;return function(t){return OBt(this,void 0,void 0,function*(){if(typeof t._[0]==`string`){if(e)return;e=!0;let n=PBt(t._),{cli:r}=s1();pNt({command:n,cliVersion:r,subdomain:N1(`subdomain`)})}})}}const IBt=qt(new URL(`../migrate`,import.meta.url)),e4=(...e)=>jn(Rt.join(IBt,...e),`utf8`),t4=e=>Mn(Rt.join(IBt,e)).filter(e=>e.endsWith(`.md`)).map(e=>e.slice(0,-3)).sort(),LBt=()=>[e4(`index.md`).trimEnd(),`Topics: ${t4(`topics`).join(`, `)}. Run \`mint migrate --topic <name>\`.`,`Sources: ${t4(`sources`).join(`, `)}. Run \`mint migrate --from <name>\`.`].join(`
2241
2241
 
@@ -2321,11 +2321,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2321
2321
  `))?n=void 0:(n.push(o),i.push([a,a+o.length])):s&&Q6t.test(o)&&!t.some(([e,t])=>e<=a&&a<t)&&(n=[o],i.push([a,a+o.length])),a+=o.length+1}return i},s8t=e=>E9(e,a8t(e)),D9=(e,{keepEsm:t=!1}={})=>{let n=dNe(e);return E9(e,[...a8t(e),...n,...t?[]:o8t(e,n)])},c8t=/* @__PURE__ */ new Set([`{`,"${"]),l8t=(e,t)=>{let n=[],r=0;try{let i=Rg.tokenizer(e.slice(t),{ecmaVersion:`latest`,onComment:(e,r,i,a)=>n.push([t+i+2,t+a-(e?2:0)])});for(let a of i){let i=a.type.label;if(i===`template`)n.push([t+a.start,t+a.end]);else if(i===`string`)n.push([t+a.start+1,t+a.end-1]);else if(i===`regexp`){let r=e.slice(t+a.start,t+a.end);n.push([t+a.start+1,t+a.start+r.lastIndexOf(`/`)])}else if(c8t.has(i))r++;else if(i===`}`&&r--===0)return{ranges:n,end:t+a.end}}}catch(r){if(!(r instanceof SyntaxError&&`pos`in r&&typeof r.pos==`number`))return{ranges:n,end:e.length};let i=t+r.pos;if(!r.message.startsWith(`Unterminated string`))return{ranges:n,end:i};let a=e.indexOf(`
2322
2322
  `,i);n.push([i+1,a===-1?e.length:a])}return{ranges:n,end:e.length}},u8t=e=>{let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(r===`\\`)n++;else if(r===`{`){let r=l8t(e,n+1);t.push(...r.ranges),n=r.end-1}}return t},d8t=e=>[...e.matchAll($6t)].flatMap(({index:e,0:t})=>[...t.matchAll(e8t)].map(({index:t,0:n})=>[e+t+1,e+t+n.length-1])),f8t=e=>[...e.matchAll(/\\[\s\S]/g)].flatMap(({index:e,0:t})=>t===`\\<`?[[e+1,e+2]]:[]),p8t=e=>r8t(D9(e),[d8t,f8t,u8t]),O9=e=>{let t=e.map((e,t)=>({edit:e,index:t})).sort((e,t)=>t.edit.start-e.edit.start||t.edit.end-e.edit.end||t.index-e.index),n=[],r=1/0;for(let{edit:e}of t)e.end>r||(n.push(e),r=e.start);return n},k9=(e,t)=>O9(t).reduce((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end),e),m8t=(e,t,n=1)=>{let r=0;for(let n=1;n<t;n++){let t=e.indexOf(`
2323
2323
  `,r);if(t===-1)break;r=t+1}return r+n-1},A9=(e,t)=>{let n=e.slice(0,t).split(`
2324
- `);return{line:n.length,column:(n.pop()?.length??0)+1}},h8t=(e,t)=>e.start-t.start;function j9(e,t,n){let r=0;for(let i of e){let e=i.start+r;if(n===`snap`?t<e:t<=e)break;if(t<e+i.text.length)return n===`snap`?i.start:void 0;r+=i.text.length-(i.end-i.start)}return t-r}const g8t=(e,t,n)=>{let{start:r,end:i}=n;for(let{edits:n}of e.slice(0,t).reverse()){let e=[...n].sort(h8t),t=j9(e,r,`reject`),a=j9(e,i,`reject`);if(t===void 0||a===void 0||e.some(e=>e.start<a&&e.end>t))return;r=t,i=a}return{start:r,end:i,text:n.text}},_8t=(e,t,n)=>{let r=e[t],i=e[0];if(!r||!i||n.line===void 0)return{};let a=e.slice(0,t).reduceRight((e,{edits:t})=>j9([...t].sort(h8t),e,`snap`),m8t(r.content,n.line,n.column)),o=A9(i.content,a);return n.column===void 0?{line:o.line}:o},v8t=e=>CO(gPe(e)).replace(/^\.$/,``),y8t=(e,t)=>X6t(void 0,void 0,void 0,function*(){let n=new w2(e);try{yield aRt(n,t)}catch{return[]}return n.paths.flatMap(e=>e.pathType===b2.INTERNAL&&e.anchorLink?[`${v8t(ok(e.toString()))}#${JE(e.anchorLink.slice(1))}`]:[])}),b8t=(e,t,n)=>{let r=`${v8t(t)}#`;for(let t of e??[]){if(!t.startsWith(r))continue;let e=t.slice(r.length),i=e.startsWith(`${n}-`)&&/^\d/.test(e.slice(n.length+1));if(e===n||i)return e}},M9={id:`parse-error`,group:`content`,severity:`error`,description:`files MDX can't parse; other checks skip them`};var N9=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},x8t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const S8t=/* @__PURE__ */ new Set([`page`,`snippet`,`snippet-v2`]),C8t=e=>N9(void 0,void 0,void 0,function*(){let{mdxCandidates:t}=yield bXe(e,yield fF(e)),{snippets:n,snippetsV2:r}=yield yXe(e,t),i=/* @__PURE__ */ new Set([...n,...r]);return t.filter(e=>/\.mdx?$/.test(e)&&S8t.has(XO(e))).map(e=>({file:e.replace(/^\//,``),kind:i.has(e)?`snippet`:`page`}))}),w8t=e=>{try{let{attributes:t}=ik(e);return t&&typeof t==`object`?Object.assign({},t):{}}catch{return{}}},T8t=/\s*\(\d+:\d+(?:-\d+:\d+)?\)$/,E8t=/* @__PURE__ */ new Set([`unexpected-character`,`unexpected-eof`]),D8t=(e,t,n)=>{let{source:r,ruleId:i}=e??{};return r===`micromark-extension-mdx-jsx`&&typeof i==`string`&&E8t.has(i)&&n?.line!=null&&n.column!=null&&t[m8t(t,n.line,n.column)-1]===`<`},O8t=(e,t=``)=>{let n=e?.reason,r=e instanceof Error?e.message:`could not parse this file`,i=typeof n==`string`?n:r,a=e&&typeof e==`object`?mF(e):null,o=D8t(e,t,a)?`; if this < isn't a tag, escape it as \\<`:``;return Object.assign(Object.assign(Object.assign({},a?.line!=null&&{line:a.line}),a?.column!=null&&{column:a.column}),{message:i.replace(T8t,``)+o})},k8t=(e,t)=>Object.assign(Object.assign({},t),{rule:M9.id,group:M9.group,severity:M9.severity,file:e,message:`${t.message} (other checks were skipped for this file)`}),A8t=e=>{try{return n8t(e)}catch{return}},j8t=(e,t,n,r={})=>{let i=Object.assign({file:e,content:t,baseDir:n,frontmatter:w8t(t)},r),a=A8t(t);if(a)return{context:Object.assign(Object.assign({},i),{tree:a}),approximate:!1};try{return{context:Object.assign(Object.assign({},i),{tree:FT(t,e)}),approximate:!0}}catch(e){return{error:O8t(e,t)}}},M8t={type:`root`,children:[]},N8t=/\{\{\s*([\w.\-]+)\s*\}\}/g,P8t=(e,t={})=>[...e.matchAll(N8t)].filter(e=>e[1]!==void 0&&t[e[1]]!==void 0).map(e=>({start:e.index,end:e.index+e[0].length,text:EO(e[0],t)})),F8t=(e,t,n,r,i)=>{var{edit:a}=n,o=x8t(n,[`edit`]);let s=a&&g8t(r,i,a);return Object.assign(Object.assign(Object.assign(Object.assign({},o),_8t(r,i,o)),{rule:e.id,group:e.group,severity:e.severity,file:t}),s&&{fix:Object.assign({file:t},s)})},I8t=(e,{file:t,kind:n},r,i,a,o)=>{let s=n===`snippet`?e.filter(e=>!e.pagesOnly):e,c=s.filter(e=>e.raw),l=s.filter(e=>!e.raw),u=n===`snippet`?P8t(r,o):[],d=k9(r,u),f={file:t,content:d,baseDir:i,frontmatter:{},tree:M8t,variables:o},p=c.flatMap(e=>e.check(f).map(t=>({rule:e,finding:t}))),m=O9(p.flatMap(({finding:e})=>e.edit?[e.edit]:[])),h=k9(d,m),g=[{content:r,edits:u},{content:d,edits:m},{content:h,edits:[]}],_=p.map(({rule:e,finding:n})=>F8t(e,t,n,g,1)),v=j8t(t,h,i,Object.assign(Object.assign({},a),{variables:o}));if(`error`in v)return _.unshift(k8t(t,Object.assign(Object.assign({},v.error),_8t(g,2,v.error)))),_;for(let e of l)for(let n of e.check(v.context)){let r=v.approximate?Object.assign(Object.assign({},n),{edit:void 0}):n;_.push(F8t(e,t,r,g,2))}return _},L8t=e=>N9(void 0,void 0,void 0,function*(){let t=yield Promise.all(e.files.map(({file:t})=>y8t(t,e.read(t)??``)));return new Set(t.flat())}),R8t=(e,t)=>N9(void 0,void 0,void 0,function*(){let n=new Set(t.filter(e=>e.needsAnchorLinks).map(({id:e})=>e)),r=e.files.filter(({file:t})=>!e.selected||e.selected.has(t)),i=(n,r)=>{let i=e.read(n.file);return i===void 0?[k8t(n.file,{message:`could not read this file`})]:I8t(t,n,i,e.baseDir,r,e.variables)},a=e=>e.some(({rule:e})=>n.has(e)),o=r.map(t=>i(t,{readFile:e.read}));if(!o.some(a))return o.flat();let s={readFile:e.read,anchorLinks:yield L8t(e)};return r.flatMap((e,t)=>{let n=o[t]??[];return a(n)?i(e,s):n})}),P9=String.raw`[\w@.\\/-]+\.(?:mdx?|jsx?|tsx?|json|ya?ml)\b`,z8t=new RegExp(P9),B8t=[new RegExp(String.raw`\(in (${P9}),`),new RegExp(String.raw`(?:\bin|imported from) (${P9})`)],V8t=/* @__PURE__ */ new Set([`missing-file`,`invalid-import-path`,`import-resolution-error`,`default-import-no-default-export`,`export-collision`,`undeclared-package`,`package-import-conflict`]),H8t=/^:(\d+)(?::(\d+))?/,U8t=/"([^"]+)"/,F9=(e,t)=>{let n=gr(t.message).trim(),r=t.file==null&&V8t.has(t.type)?B8t.map(e=>e.exec(n)?.[1]).find(Boolean):void 0,i=t.file!=null||r||t.type===`missing-nav-page`?null:z8t.exec(n),a=r??i?.[0],o=t.file??(a?bh(ok(a)):e.configFile),s=i?H8t.exec(n.slice(i.index+i[0].length)):null,c=t.file==null&&o===e.configFile?U8t.exec(n)?.[0]:void 0,l=t.ref!=null&&t.line==null?e.locate(o,JSON.stringify(t.ref)):c?e.locate(o,c):void 0;return Object.assign(Object.assign(Object.assign({file:o},t.line==null?s&&Object.assign({line:Number(s[1])},s[2]&&{column:Number(s[2])}):Object.assign({line:t.line},t.column!=null&&{column:t.column})),l),{message:n})},W8t=/* @__PURE__ */ new Set([`parse-error`]),I9=(e,t,n,r)=>{for(let e of n)W8t.add(e);return{id:e,group:t,severity:`error`,needsBuild:!0,scope:`site`,description:r,check:e=>(e.build?.warnings??[]).filter(({type:e})=>n.includes(e)).map(t=>F9(e,t))}},G8t=[I9(`missing-nav-page`,`nav`,[`missing-nav-page`],`pages in the navigation that have no file`),I9(`missing-file`,`content`,[`missing-file`],`imported files that don't exist`),I9(`import-error`,`content`,[`invalid-import-path`,`import-resolution-error`,`default-import-no-default-export`,`export-collision`],`imports in pages and snippets that don't resolve`),I9(`package-import`,`config`,[`undeclared-package`,`package-import-conflict`],`npm package imports that are undeclared or conflict`),I9(`openapi-build`,`openapi`,[`openapi`],`OpenAPI pages the build could not generate`),{id:`build-failed`,group:`config`,severity:`error`,needsBuild:!0,scope:`site`,description:`the strict build failed for a reason no rule reports`,check:e=>{if(!e.build||e.build.passed)return[];let t=t=>t.type===`parse-error`&&e.selected!==void 0&&!e.selected.has(F9(e,t).file),n=e.build.warnings.filter(e=>!W8t.has(e.type)||t(e)).map(t=>F9(e,t));return e.build.strict?n:[...n,{file:e.configFile,message:e.build.error}]}}],K8t=(e,t)=>(e.build?.warnings??[]).filter(e=>e.type===t).map(t=>F9(e,t)),q8t=e=>e.trim().replace(/\s+/g,` `),J8t=Je().use(lLt),Y8t=e=>e.children.find(e=>e.type===`heading`),X8t=e=>{let t=structuredClone(e),n={type:`root`,children:[t]};return J8t.runSync(n),Ue(t)},Z8t={id:`duplicate-h1`,group:`content`,severity:`warning`,scope:`file`,description:`remove a first heading that repeats the frontmatter title`,pagesOnly:!0,needsAnchorLinks:!0,check:({tree:e,frontmatter:t,content:n,file:r,anchorLinks:i})=>{let{title:a,mode:o}=t;if(typeof a!=`string`||vO.includes(String(o)))return[];let s=Y8t(e);if(!s||s.depth!==1||q8t(Ue(s))!==q8t(a))return[];let c=s.position?.start.offset??0,l=s.position?.end.offset??c,u={line:s.position?.start.line,column:s.position?.start.column},d=n.indexOf(`
2325
- `,c);if(t8t(n.slice(c,d===-1?void 0:d)))return[Object.assign(Object.assign({},u),{message:`first heading duplicates the frontmatter title; it has a custom {#id}, so remove it by hand and update links to it`})];let f=[X8t(s),Ue(s)].map(e=>b8t(i,r,JE(QE(e)))).find(e=>e!==void 0);if(f!==void 0)return[Object.assign(Object.assign({},u),{message:`first heading duplicates the frontmatter title; links point to #${f}, so remove it by hand and update them`})];let p=/^\n*/.exec(n.slice(l))?.[0].length??0;return[Object.assign(Object.assign({},u),{message:`first heading duplicates the frontmatter title`,edit:{start:c,end:l+p,text:``}})]}},Q8t={note:`<Note>`,info:`<Info>`,tip:`<Tip>`,hint:`<Tip>`,success:`<Check>`,important:`<Note>`,warning:`<Warning>`,caution:`<Warning>`,danger:`<Warning>`,error:`<Warning>`,details:`<Accordion>`},L9=e=>Q8t[e?.toLowerCase()??``]??`a callout (<Note>, <Info>, <Tip> or <Warning>)`,$8t={hint:`a callout (<Note>, <Info>, <Tip> or <Warning>)`,tabs:`<Tabs>`,tab:`<Tab title="…">`,stepper:`<Steps>`,step:`<Step title="…">`,embed:`a link or <Frame>`,"content-ref":`<Card>`,include:`a snippet import`,code:`a fenced code block`,file:`a link to the file`,swagger:`an OpenAPI page`,openapi:`an OpenAPI page`},e5t=[{regex:/\{%-?\s*(?!end)([\w-]+)[^%\n]*?-?%\}/g,message:([e,t])=>{let n=t===`hint`?/style=["']?(\w+)/.exec(e)?.[1]:void 0;return`${e} is a GitBook or Liquid tag, which Mintlify does not support; use ${n?L9(n):$8t[t??``]??`Markdown or a Mintlify component`}`}},{regex:/\{\{[<%]\s*([\w/-]+)[^}\n]*[>%]\}\}/g,message:([e])=>`${e} is a Hugo shortcode, which Mintlify does not support; use Markdown or a Mintlify component`},{regex:/\{\{-?\s*(?:(?:site|page|layout|include|jekyll|paginator)\.[^}\n]*|[^\s|{}]+\s*\|\s*\w+[^}\n]*)-?\}\}/g,message:([e])=>`${e} is a Liquid variable, which Mintlify does not support; write the value, or use a snippet or a variable`},{regex:/^ {0,3}:{3,}\s*([A-Za-z][\w-]*)/gm,message:([,e])=>`:::${e} is a Docusaurus or VitePress admonition, which Mintlify does not support; use ${L9(e)}`},{regex:/^ {0,3}::(?!:)([A-Za-z][\w-]*)/gm,message:([,e])=>`::${e} is an MDC (Nuxt Content, Docus) block, which Mintlify does not support; use the matching Mintlify component`},{regex:/^ {0,3}(!!!|\?\?\?\+?)[ \t]+([A-Za-z][\w-]*)/gm,message:([,e,t])=>`${e} ${t} is an MkDocs admonition, which Mintlify does not support; use ${e===`!!!`?L9(t):`<Accordion>`}`},{regex:/^ {0,3}===\+?[ \t]+["']/gm,message:()=>`=== "…" is an MkDocs content tab, which Mintlify does not support; use <Tabs> with <Tab title="…">`},{regex:/^[ \t]*;?[ \t]*--8<--/gm,scope:`everything`,message:()=>`--8<-- is an MkDocs snippet include, which Mintlify does not support; use a snippet import or paste the content`},{regex:/\{:\s*[.#\w][^}\n]*\}/g,message:([e])=>`${e} is a Kramdown attribute list, which Mintlify does not support; remove it, use a component, or use {#id} for a heading anchor`},{regex:/(?<![[{\w])\[\[([^[\]\n]+)\]\](?![(:[])/g,message:([e])=>`${e} is a wiki link, which Mintlify does not support; use a Markdown link such as [text](/path)`},{regex:/(?:\]\(|href=["'])((?:doc|ref|blog|changelog|page):[^)\s"']+)/g,scope:`links`,message:([,e])=>`${e} is a ReadMe link, which Mintlify does not support; link to the page path instead, such as /${e?.split(`:`)[1]??``}`},{regex:/["'(]@site\/[^"')\s]*/g,scope:`prose-and-esm`,message:([e])=>`${e.slice(1)} uses the Docusaurus @site alias, which Mintlify does not resolve; use a root-relative path such as /images/… or /snippets/…`}],t5t={id:`foreign-syntax`,group:`content`,severity:`warning`,scope:`file`,description:`syntax from another docs framework that Mintlify doesn't render`,raw:!0,check:({content:e})=>{let t=D9(e),n=p8t(e),r={prose:t,links:t,"prose-and-esm":D9(e,{keepEsm:!0}),everything:s8t(e)},i=[];for(let{regex:a,scope:o=`prose`,message:s}of e5t)for(let c of r[o].matchAll(a)){let r=c.index+(c[0].length-c[0].trimStart().length);(o!==`prose`||n[r]===t[r])&&i.push(Object.assign(Object.assign({},A9(e,r)),{message:s(c)}))}return i}},n5t={id:`katex`,group:`content`,severity:`warning`,scope:`file`,description:`math that KaTeX can't render`,check:({tree:e,content:t})=>{let n=[];return p(e,e=>{if((e.type===`math`||e.type===`inlineMath`)&&!(e.type===`inlineMath`&&we(e,t)))try{Lpe.renderToString(e.value,{throwOnError:!0,displayMode:e.type===`math`})}catch(t){n.push({line:e.position?.start.line,column:e.position?.start.column,message:t instanceof Error?t.message:`invalid math`})}}),n}},r5t=(e,t)=>!e.startsWith(`/`)&&(t(`_snippets/${e}`)!==void 0||e.startsWith(`snippets/`)&&t(e)!==void 0),i5t={id:`missing-snippet`,group:`content`,severity:`error`,scope:`file`,description:`<Snippet file> tags whose file the build cannot find`,check:({tree:e,readFile:t,variables:n})=>{if(!t)return[];let r=[];return p(e,`mdxJsxFlowElement`,e=>{if(e.name!==`Snippet`)return;let i=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===`file`)?.value;if(typeof i!=`string`)return;let a=EO(i,n);r5t(a,t)||r.push({line:e.position?.start.line,column:e.position?.start.column,message:`<Snippet file="${i}"> renders nothing: no snippet matches "${a}"`})}),r}},a5t=/(?<!=\s*)\{\{\s*([\w.\-]+)\s*\}\}/g,o5t={id:`undefined-variable`,group:`content`,severity:`error`,scope:`file`,description:`{{variables}} that docs.json does not define`,raw:!0,check:({content:e,variables:t={}})=>[...D9(e).matchAll(a5t)].filter(([,e])=>e!==void 0&&t[e]===void 0).map(t=>Object.assign(Object.assign({},A9(e,t.index)),{message:`{{${t[1]}}} is not defined in the variables of docs.json`}))},s5t=e=>{let t=/* @__PURE__ */ new Set;return p(e.tree,`mdxjsEsm`,e=>{for(let n of e.data?.estree?.body??[])if(n.type===`ImportDeclaration`)for(let e of n.specifiers)pt(e.local,t);else if(n.type===`ExportNamedDeclaration`){let e=n.declaration;if(e?.type===`VariableDeclaration`)for(let n of e.declarations)pt(n.id,t);else e&&pt(e.id,t);for(let e of n.specifiers)pt(e.local,t),pt(e.exported,t)}else if(n.type===`ExportDefaultDeclaration`){let e=n.declaration;(e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`)&&pt(e.id,t)}}),t},c5t=e=>(e.tree.children.find(e=>[`yaml`,`toml`].includes(e.type))?.position)?.end.offset??0,l5t=(e,t,n)=>{let r;try{r=uE(FT(e,t))}catch{return}return r.has(n)?`{ ${n} }`:r.has(`default`)?n:void 0},u5t={id:`unknown-component`,group:`content`,severity:`error`,scope:`file`,description:`JSX components that are not built in, imported or exported`,pagesOnly:!0,check:e=>{let t=s5t(e),n=/* @__PURE__ */ new Set,r=[],i=c5t(e),a=i===0?``:`
2324
+ `);return{line:n.length,column:(n.pop()?.length??0)+1}},h8t=(e,t)=>e.start-t.start;function j9(e,t,n){let r=0;for(let i of e){let e=i.start+r;if(n===`snap`?t<e:t<=e)break;if(t<e+i.text.length)return n===`snap`?i.start:void 0;r+=i.text.length-(i.end-i.start)}return t-r}const g8t=(e,t,n)=>{let{start:r,end:i}=n;for(let{edits:n}of e.slice(0,t).reverse()){let e=[...n].sort(h8t),t=j9(e,r,`reject`),a=j9(e,i,`reject`);if(t===void 0||a===void 0||e.some(e=>e.start<a&&e.end>t))return;r=t,i=a}return{start:r,end:i,text:n.text}},_8t=(e,t,n)=>{let r=e[t],i=e[0];if(!r||!i||n.line===void 0)return{};let a=e.slice(0,t).reduceRight((e,{edits:t})=>j9([...t].sort(h8t),e,`snap`),m8t(r.content,n.line,n.column)),o=A9(i.content,a);return n.column===void 0?{line:o.line}:o},v8t=e=>WT(gPe(e)).replace(/^\.$/,``),y8t=(e,t)=>X6t(void 0,void 0,void 0,function*(){let n=new w2(e);try{yield aRt(n,t)}catch{return[]}return n.paths.flatMap(e=>e.pathType===b2.INTERNAL&&e.anchorLink?[`${v8t(ok(e.toString()))}#${YE(e.anchorLink.slice(1))}`]:[])}),b8t=(e,t,n)=>{let r=`${v8t(t)}#`;for(let t of e??[]){if(!t.startsWith(r))continue;let e=t.slice(r.length),i=e.startsWith(`${n}-`)&&/^\d/.test(e.slice(n.length+1));if(e===n||i)return e}},M9={id:`parse-error`,group:`content`,severity:`error`,description:`files MDX can't parse; other checks skip them`};var N9=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},x8t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const S8t=/* @__PURE__ */ new Set([`page`,`snippet`,`snippet-v2`]),C8t=e=>N9(void 0,void 0,void 0,function*(){let{mdxCandidates:t}=yield bXe(e,yield fF(e)),{snippets:n,snippetsV2:r}=yield yXe(e,t),i=/* @__PURE__ */ new Set([...n,...r]);return t.filter(e=>/\.mdx?$/.test(e)&&S8t.has(XO(e))).map(e=>({file:e.replace(/^\//,``),kind:i.has(e)?`snippet`:`page`}))}),w8t=e=>{try{let{attributes:t}=ik(e);return t&&typeof t==`object`?Object.assign({},t):{}}catch{return{}}},T8t=/\s*\(\d+:\d+(?:-\d+:\d+)?\)$/,E8t=/* @__PURE__ */ new Set([`unexpected-character`,`unexpected-eof`]),D8t=(e,t,n)=>{let{source:r,ruleId:i}=e??{};return r===`micromark-extension-mdx-jsx`&&typeof i==`string`&&E8t.has(i)&&n?.line!=null&&n.column!=null&&t[m8t(t,n.line,n.column)-1]===`<`},O8t=(e,t=``)=>{let n=e?.reason,r=e instanceof Error?e.message:`could not parse this file`,i=typeof n==`string`?n:r,a=e&&typeof e==`object`?mF(e):null,o=D8t(e,t,a)?`; if this < isn't a tag, escape it as \\<`:``;return Object.assign(Object.assign(Object.assign({},a?.line!=null&&{line:a.line}),a?.column!=null&&{column:a.column}),{message:i.replace(T8t,``)+o})},k8t=(e,t)=>Object.assign(Object.assign({},t),{rule:M9.id,group:M9.group,severity:M9.severity,file:e,message:`${t.message} (other checks were skipped for this file)`}),A8t=e=>{try{return n8t(e)}catch{return}},j8t=(e,t,n,r={})=>{let i=Object.assign({file:e,content:t,baseDir:n,frontmatter:w8t(t)},r),a=A8t(t);if(a)return{context:Object.assign(Object.assign({},i),{tree:a}),approximate:!1};try{return{context:Object.assign(Object.assign({},i),{tree:FT(t,e)}),approximate:!0}}catch(e){return{error:O8t(e,t)}}},M8t={type:`root`,children:[]},N8t=/\{\{\s*([\w.\-]+)\s*\}\}/g,P8t=(e,t={})=>[...e.matchAll(N8t)].filter(e=>e[1]!==void 0&&t[e[1]]!==void 0).map(e=>({start:e.index,end:e.index+e[0].length,text:EO(e[0],t)})),F8t=(e,t,n,r,i)=>{var{edit:a}=n,o=x8t(n,[`edit`]);let s=a&&g8t(r,i,a);return Object.assign(Object.assign(Object.assign(Object.assign({},o),_8t(r,i,o)),{rule:e.id,group:e.group,severity:e.severity,file:t}),s&&{fix:Object.assign({file:t},s)})},I8t=(e,{file:t,kind:n},r,i,a,o)=>{let s=n===`snippet`?e.filter(e=>!e.pagesOnly):e,c=s.filter(e=>e.raw),l=s.filter(e=>!e.raw),u=n===`snippet`?P8t(r,o):[],d=k9(r,u),f={file:t,content:d,baseDir:i,frontmatter:{},tree:M8t,variables:o},p=c.flatMap(e=>e.check(f).map(t=>({rule:e,finding:t}))),m=O9(p.flatMap(({finding:e})=>e.edit?[e.edit]:[])),h=k9(d,m),g=[{content:r,edits:u},{content:d,edits:m},{content:h,edits:[]}],_=p.map(({rule:e,finding:n})=>F8t(e,t,n,g,1)),v=j8t(t,h,i,Object.assign(Object.assign({},a),{variables:o}));if(`error`in v)return _.unshift(k8t(t,Object.assign(Object.assign({},v.error),_8t(g,2,v.error)))),_;for(let e of l)for(let n of e.check(v.context)){let r=v.approximate?Object.assign(Object.assign({},n),{edit:void 0}):n;_.push(F8t(e,t,r,g,2))}return _},L8t=e=>N9(void 0,void 0,void 0,function*(){let t=yield Promise.all(e.files.map(({file:t})=>y8t(t,e.read(t)??``)));return new Set(t.flat())}),R8t=(e,t)=>N9(void 0,void 0,void 0,function*(){let n=new Set(t.filter(e=>e.needsAnchorLinks).map(({id:e})=>e)),r=e.files.filter(({file:t})=>!e.selected||e.selected.has(t)),i=(n,r)=>{let i=e.read(n.file);return i===void 0?[k8t(n.file,{message:`could not read this file`})]:I8t(t,n,i,e.baseDir,r,e.variables)},a=e=>e.some(({rule:e})=>n.has(e)),o=r.map(t=>i(t,{readFile:e.read}));if(!o.some(a))return o.flat();let s={readFile:e.read,anchorLinks:yield L8t(e)};return r.flatMap((e,t)=>{let n=o[t]??[];return a(n)?i(e,s):n})}),P9=String.raw`[\w@.\\/-]+\.(?:mdx?|jsx?|tsx?|json|ya?ml)\b`,z8t=new RegExp(P9),B8t=[new RegExp(String.raw`\(in (${P9}),`),new RegExp(String.raw`(?:\bin|imported from) (${P9})`)],V8t=/* @__PURE__ */ new Set([`missing-file`,`invalid-import-path`,`import-resolution-error`,`default-import-no-default-export`,`export-collision`,`undeclared-package`,`package-import-conflict`]),H8t=/^:(\d+)(?::(\d+))?/,U8t=/"([^"]+)"/,F9=(e,t)=>{let n=gr(t.message).trim(),r=t.file==null&&V8t.has(t.type)?B8t.map(e=>e.exec(n)?.[1]).find(Boolean):void 0,i=t.file!=null||r||t.type===`missing-nav-page`?null:z8t.exec(n),a=r??i?.[0],o=t.file??(a?bh(ok(a)):e.configFile),s=i?H8t.exec(n.slice(i.index+i[0].length)):null,c=t.file==null&&o===e.configFile?U8t.exec(n)?.[0]:void 0,l=t.ref!=null&&t.line==null?e.locate(o,JSON.stringify(t.ref)):c?e.locate(o,c):void 0;return Object.assign(Object.assign(Object.assign({file:o},t.line==null?s&&Object.assign({line:Number(s[1])},s[2]&&{column:Number(s[2])}):Object.assign({line:t.line},t.column!=null&&{column:t.column})),l),{message:n})},W8t=/* @__PURE__ */ new Set([`parse-error`]),I9=(e,t,n,r)=>{for(let e of n)W8t.add(e);return{id:e,group:t,severity:`error`,needsBuild:!0,scope:`site`,description:r,check:e=>(e.build?.warnings??[]).filter(({type:e})=>n.includes(e)).map(t=>F9(e,t))}},G8t=[I9(`missing-nav-page`,`nav`,[`missing-nav-page`],`pages in the navigation that have no file`),I9(`missing-file`,`content`,[`missing-file`],`imported files that don't exist`),I9(`import-error`,`content`,[`invalid-import-path`,`import-resolution-error`,`default-import-no-default-export`,`export-collision`],`imports in pages and snippets that don't resolve`),I9(`package-import`,`config`,[`undeclared-package`,`package-import-conflict`],`npm package imports that are undeclared or conflict`),I9(`openapi-build`,`openapi`,[`openapi`],`OpenAPI pages the build could not generate`),{id:`build-failed`,group:`config`,severity:`error`,needsBuild:!0,scope:`site`,description:`the strict build failed for a reason no rule reports`,check:e=>{if(!e.build||e.build.passed)return[];let t=t=>t.type===`parse-error`&&e.selected!==void 0&&!e.selected.has(F9(e,t).file),n=e.build.warnings.filter(e=>!W8t.has(e.type)||t(e)).map(t=>F9(e,t));return e.build.strict?n:[...n,{file:e.configFile,message:e.build.error}]}}],K8t=(e,t)=>(e.build?.warnings??[]).filter(e=>e.type===t).map(t=>F9(e,t)),q8t=e=>e.trim().replace(/\s+/g,` `),J8t=Je().use(lLt),Y8t=e=>e.children.find(e=>e.type===`heading`),X8t=e=>{let t=structuredClone(e),n={type:`root`,children:[t]};return J8t.runSync(n),Ue(t)},Z8t={id:`duplicate-h1`,group:`content`,severity:`warning`,scope:`file`,description:`remove a first heading that repeats the frontmatter title`,pagesOnly:!0,needsAnchorLinks:!0,check:({tree:e,frontmatter:t,content:n,file:r,anchorLinks:i})=>{let{title:a,mode:o}=t;if(typeof a!=`string`||yO.includes(String(o)))return[];let s=Y8t(e);if(!s||s.depth!==1||q8t(Ue(s))!==q8t(a))return[];let c=s.position?.start.offset??0,l=s.position?.end.offset??c,u={line:s.position?.start.line,column:s.position?.start.column},d=n.indexOf(`
2325
+ `,c);if(t8t(n.slice(c,d===-1?void 0:d)))return[Object.assign(Object.assign({},u),{message:`first heading duplicates the frontmatter title; it has a custom {#id}, so remove it by hand and update links to it`})];let f=[X8t(s),Ue(s)].map(e=>b8t(i,r,YE($E(e)))).find(e=>e!==void 0);if(f!==void 0)return[Object.assign(Object.assign({},u),{message:`first heading duplicates the frontmatter title; links point to #${f}, so remove it by hand and update them`})];let p=/^\n*/.exec(n.slice(l))?.[0].length??0;return[Object.assign(Object.assign({},u),{message:`first heading duplicates the frontmatter title`,edit:{start:c,end:l+p,text:``}})]}},Q8t={note:`<Note>`,info:`<Info>`,tip:`<Tip>`,hint:`<Tip>`,success:`<Check>`,important:`<Note>`,warning:`<Warning>`,caution:`<Warning>`,danger:`<Warning>`,error:`<Warning>`,details:`<Accordion>`},L9=e=>Q8t[e?.toLowerCase()??``]??`a callout (<Note>, <Info>, <Tip> or <Warning>)`,$8t={hint:`a callout (<Note>, <Info>, <Tip> or <Warning>)`,tabs:`<Tabs>`,tab:`<Tab title="…">`,stepper:`<Steps>`,step:`<Step title="…">`,embed:`a link or <Frame>`,"content-ref":`<Card>`,include:`a snippet import`,code:`a fenced code block`,file:`a link to the file`,swagger:`an OpenAPI page`,openapi:`an OpenAPI page`},e5t=[{regex:/\{%-?\s*(?!end)([\w-]+)[^%\n]*?-?%\}/g,message:([e,t])=>{let n=t===`hint`?/style=["']?(\w+)/.exec(e)?.[1]:void 0;return`${e} is a GitBook or Liquid tag, which Mintlify does not support; use ${n?L9(n):$8t[t??``]??`Markdown or a Mintlify component`}`}},{regex:/\{\{[<%]\s*([\w/-]+)[^}\n]*[>%]\}\}/g,message:([e])=>`${e} is a Hugo shortcode, which Mintlify does not support; use Markdown or a Mintlify component`},{regex:/\{\{-?\s*(?:(?:site|page|layout|include|jekyll|paginator)\.[^}\n]*|[^\s|{}]+\s*\|\s*\w+[^}\n]*)-?\}\}/g,message:([e])=>`${e} is a Liquid variable, which Mintlify does not support; write the value, or use a snippet or a variable`},{regex:/^ {0,3}:{3,}\s*([A-Za-z][\w-]*)/gm,message:([,e])=>`:::${e} is a Docusaurus or VitePress admonition, which Mintlify does not support; use ${L9(e)}`},{regex:/^ {0,3}::(?!:)([A-Za-z][\w-]*)/gm,message:([,e])=>`::${e} is an MDC (Nuxt Content, Docus) block, which Mintlify does not support; use the matching Mintlify component`},{regex:/^ {0,3}(!!!|\?\?\?\+?)[ \t]+([A-Za-z][\w-]*)/gm,message:([,e,t])=>`${e} ${t} is an MkDocs admonition, which Mintlify does not support; use ${e===`!!!`?L9(t):`<Accordion>`}`},{regex:/^ {0,3}===\+?[ \t]+["']/gm,message:()=>`=== "…" is an MkDocs content tab, which Mintlify does not support; use <Tabs> with <Tab title="…">`},{regex:/^[ \t]*;?[ \t]*--8<--/gm,scope:`everything`,message:()=>`--8<-- is an MkDocs snippet include, which Mintlify does not support; use a snippet import or paste the content`},{regex:/\{:\s*[.#\w][^}\n]*\}/g,message:([e])=>`${e} is a Kramdown attribute list, which Mintlify does not support; remove it, use a component, or use {#id} for a heading anchor`},{regex:/(?<![[{\w])\[\[([^[\]\n]+)\]\](?![(:[])/g,message:([e])=>`${e} is a wiki link, which Mintlify does not support; use a Markdown link such as [text](/path)`},{regex:/(?:\]\(|href=["'])((?:doc|ref|blog|changelog|page):[^)\s"']+)/g,scope:`links`,message:([,e])=>`${e} is a ReadMe link, which Mintlify does not support; link to the page path instead, such as /${e?.split(`:`)[1]??``}`},{regex:/["'(]@site\/[^"')\s]*/g,scope:`prose-and-esm`,message:([e])=>`${e.slice(1)} uses the Docusaurus @site alias, which Mintlify does not resolve; use a root-relative path such as /images/… or /snippets/…`}],t5t={id:`foreign-syntax`,group:`content`,severity:`warning`,scope:`file`,description:`syntax from another docs framework that Mintlify doesn't render`,raw:!0,check:({content:e})=>{let t=D9(e),n=p8t(e),r={prose:t,links:t,"prose-and-esm":D9(e,{keepEsm:!0}),everything:s8t(e)},i=[];for(let{regex:a,scope:o=`prose`,message:s}of e5t)for(let c of r[o].matchAll(a)){let r=c.index+(c[0].length-c[0].trimStart().length);(o!==`prose`||n[r]===t[r])&&i.push(Object.assign(Object.assign({},A9(e,r)),{message:s(c)}))}return i}},n5t={id:`katex`,group:`content`,severity:`warning`,scope:`file`,description:`math that KaTeX can't render`,check:({tree:e,content:t})=>{let n=[];return p(e,e=>{if((e.type===`math`||e.type===`inlineMath`)&&!(e.type===`inlineMath`&&we(e,t)))try{Lpe.renderToString(e.value,{throwOnError:!0,displayMode:e.type===`math`})}catch(t){n.push({line:e.position?.start.line,column:e.position?.start.column,message:t instanceof Error?t.message:`invalid math`})}}),n}},r5t=(e,t)=>!e.startsWith(`/`)&&(t(`_snippets/${e}`)!==void 0||e.startsWith(`snippets/`)&&t(e)!==void 0),i5t={id:`missing-snippet`,group:`content`,severity:`error`,scope:`file`,description:`<Snippet file> tags whose file the build cannot find`,check:({tree:e,readFile:t,variables:n})=>{if(!t)return[];let r=[];return p(e,`mdxJsxFlowElement`,e=>{if(e.name!==`Snippet`)return;let i=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===`file`)?.value;if(typeof i!=`string`)return;let a=EO(i,n);r5t(a,t)||r.push({line:e.position?.start.line,column:e.position?.start.column,message:`<Snippet file="${i}"> renders nothing: no snippet matches "${a}"`})}),r}},a5t=/(?<!=\s*)\{\{\s*([\w.\-]+)\s*\}\}/g,o5t={id:`undefined-variable`,group:`content`,severity:`error`,scope:`file`,description:`{{variables}} that docs.json does not define`,raw:!0,check:({content:e,variables:t={}})=>[...D9(e).matchAll(a5t)].filter(([,e])=>e!==void 0&&t[e]===void 0).map(t=>Object.assign(Object.assign({},A9(e,t.index)),{message:`{{${t[1]}}} is not defined in the variables of docs.json`}))},s5t=e=>{let t=/* @__PURE__ */ new Set;return p(e.tree,`mdxjsEsm`,e=>{for(let n of e.data?.estree?.body??[])if(n.type===`ImportDeclaration`)for(let e of n.specifiers)pt(e.local,t);else if(n.type===`ExportNamedDeclaration`){let e=n.declaration;if(e?.type===`VariableDeclaration`)for(let n of e.declarations)pt(n.id,t);else e&&pt(e.id,t);for(let e of n.specifiers)pt(e.local,t),pt(e.exported,t)}else if(n.type===`ExportDefaultDeclaration`){let e=n.declaration;(e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`)&&pt(e.id,t)}}),t},c5t=e=>(e.tree.children.find(e=>[`yaml`,`toml`].includes(e.type))?.position)?.end.offset??0,l5t=(e,t,n)=>{let r;try{r=dE(FT(e,t))}catch{return}return r.has(n)?`{ ${n} }`:r.has(`default`)?n:void 0},u5t={id:`unknown-component`,group:`content`,severity:`error`,scope:`file`,description:`JSX components that are not built in, imported or exported`,pagesOnly:!0,check:e=>{let t=s5t(e),n=/* @__PURE__ */ new Set,r=[],i=c5t(e),a=i===0?``:`
2326
2326
 
2327
2327
  `,o=/^\n*/.exec(e.content.slice(i))?.[0].length??0,s=`
2328
- `.repeat(Math.max(0,2-o)),c=(o,c)=>{let l=o?.split(`.`)[0];if(!o||!l||!/^[A-Z]/.test(l)||t.has(l)||n.has(o)||hNe(o))return;n.add(o);let u=wTe.map(e=>`snippets/${l}${e}`).find(t=>e.readFile?.call(e,t)!==void 0),d=u&&e.readFile?.call(e,u),f=u&&d!==void 0&&o===l?l5t(d,u,l):void 0;r.push({line:c?.line,column:c?.column,message:`<${o}> is not built in, imported or exported on this page`,edit:f?{start:i,end:i,text:`${a}import ${f} from "/${u}";${s}`}:void 0})},l=(e,t)=>he(e,/* @__PURE__ */ new Set,{reference:e=>{if(e.type!==`JSXIdentifier`)return;let n=e.loc;c(String(e.name),n?.start??t)}});return p(e.tree,e=>{if(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`){c(e.name,e.position?.start);for(let t of e.attributes){let n=t.type===`mdxJsxAttribute`?t.value:t;n&&typeof n==`object`&&l(n.data?.estree,e.position?.start)}}else(e.type===`mdxFlowExpression`||e.type===`mdxTextExpression`)&&l(e.data?.estree,e.position?.start)}),r}},d5t=KEe.filter(e=>e!==`image`),f5t=String.raw`"[^"]*"|'[^']*'|\{[^{}]*\}|[^<>"'{}]`,p5t=new RegExp(String.raw`<(${d5t.join(`|`)})(?=[\s/>])(?:${f5t})*?(\/?)>`,`g`),m5t={id:`void-tags`,group:`content`,severity:`error`,scope:`file`,description:`self-close void HTML tags (<br>, <img>, <source>, …); MDX can't parse them unclosed`,raw:!0,check:({content:e})=>{let t=p8t(e),n=[];for(let r of t.matchAll(p5t)){if(r[2])continue;let i=r.index,a=i+r[0].length;if(RegExp(`^\\s*</${r[1]}\\s*>`).test(t.slice(a)))continue;let o=e.slice(0,i).split(`
2328
+ `.repeat(Math.max(0,2-o)),c=(o,c)=>{let l=o?.split(`.`)[0];if(!o||!l||!/^[A-Z]/.test(l)||t.has(l)||n.has(o)||hNe(o))return;n.add(o);let u=OTe.map(e=>`snippets/${l}${e}`).find(t=>e.readFile?.call(e,t)!==void 0),d=u&&e.readFile?.call(e,u),f=u&&d!==void 0&&o===l?l5t(d,u,l):void 0;r.push({line:c?.line,column:c?.column,message:`<${o}> is not built in, imported or exported on this page`,edit:f?{start:i,end:i,text:`${a}import ${f} from "/${u}";${s}`}:void 0})},l=(e,t)=>he(e,/* @__PURE__ */ new Set,{reference:e=>{if(e.type!==`JSXIdentifier`)return;let n=e.loc;c(String(e.name),n?.start??t)}});return p(e.tree,e=>{if(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`){c(e.name,e.position?.start);for(let t of e.attributes){let n=t.type===`mdxJsxAttribute`?t.value:t;n&&typeof n==`object`&&l(n.data?.estree,e.position?.start)}}else(e.type===`mdxFlowExpression`||e.type===`mdxTextExpression`)&&l(e.data?.estree,e.position?.start)}),r}},d5t=XEe.filter(e=>e!==`image`),f5t=String.raw`"[^"]*"|'[^']*'|\{[^{}]*\}|[^<>"'{}]`,p5t=new RegExp(String.raw`<(${d5t.join(`|`)})(?=[\s/>])(?:${f5t})*?(\/?)>`,`g`),m5t={id:`void-tags`,group:`content`,severity:`error`,scope:`file`,description:`self-close void HTML tags (<br>, <img>, <source>, …); MDX can't parse them unclosed`,raw:!0,check:({content:e})=>{let t=p8t(e),n=[];for(let r of t.matchAll(p5t)){if(r[2])continue;let i=r.index,a=i+r[0].length;if(RegExp(`^\\s*</${r[1]}\\s*>`).test(t.slice(a)))continue;let o=e.slice(0,i).split(`
2329
2329
  `);n.push({line:o.length,column:(o.pop()?.length??0)+1,message:`<${r[1]}> must be self-closed`,edit:{start:i,end:a,text:`${e.slice(i,a-1).trimEnd()} />`}})}return n}};var h5t=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const R9=[m5t,Z8t,u5t,o5t,i5t,n5t,t5t,{id:`openapi-spec`,group:`openapi`,severity:`error`,scope:`site`,description:`OpenAPI specs in docs.json or mint.json that don't parse or validate, with overlays applied`,check:e=>h5t(void 0,void 0,void 0,function*(){let t=[];try{let n=JSON.parse(yield Wn.readFile(Rt.join(e.baseDir,e.configFile),`utf-8`));t=w6t(e.configFile===`mint.json`?{api:{openapi:n.openapi}}:n)}catch{}if(t.length===0)return[];let n;try{n=yield T6t(e.localSchema)}catch(t){return[{file:e.configFile,message:`OpenAPI overlays: ${u1(t)}`}]}return(yield Promise.all(t.map(t=>h5t(void 0,void 0,void 0,function*(){let r=[];return yield D6t(t,e.localSchema,n,e=>r.push(e)),r.flatMap(({level:e,message:n})=>e===`error`?[{file:t,message:n}]:e===`warning`?[{file:t,message:n,severity:`warning`}]:[])})))).flat()})},...G8t];var g5t=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const _5t=e=>{try{let{variables:t}=JSON.parse(e);return t&&typeof t==`object`?t:void 0}catch{return}},v5t=(e,t)=>g5t(void 0,[e,t],void 0,function*(e,{selected:t,localSchema:n}){let r=yield C8t(e),i=/* @__PURE__ */ new Map,a=On.existsSync(Rt.join(e,`docs.json`))?`docs.json`:`mint.json`,o=t=>{if(!i.has(t))try{i.set(t,On.readFileSync(Rt.join(e,t),`utf-8`))}catch{i.set(t,void 0)}return i.get(t)};return{baseDir:e,files:r,selected:t,configFile:a,variables:_5t(o(a)??``),localSchema:n,read:o,locate:(e,t)=>{let n=o(e)??``,r=t?n.indexOf(t):-1;return r===-1?{}:A9(n,r)}}}),z9=[`content`,`nav`,`config`,`openapi`];var B9=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},V9=class extends Error{};const y5t=()=>R9.map(({id:e})=>e).join(`, `),b5t=e=>{if(e===`all`)return R9;let t=R9.find(({id:t})=>t===e);if(t)return[t];if(z9.includes(e))return R9.filter(({group:t})=>t===e);throw new V9(`unknown rule or group "${e}". Groups: all, ${z9.join(`, `)}. Rules: ${y5t()}`)},x5t=({enable:e=[],disable:t=[]})=>{if([...t,...e].includes(M9.id))throw new V9(`${M9.id} always runs and can't be disabled`);let n=new Set(R9);for(let e of t)for(let t of b5t(e))n.delete(t);for(let t of e)for(let e of b5t(t))n.add(e);return R9.filter(e=>n.has(e))},S5t=(e,t)=>Object.assign(Object.assign({},t),{rule:e.id,group:e.group,severity:t.severity??e.severity}),C5t=new Map(R9.map(({id:e},t)=>[e,t])),H9=e=>e.sort((e,t)=>(e.file<t.file?-1:+(e.file>t.file))||(e.line??0)-(t.line??0)||(e.column??0)-(t.column??0)||(C5t.get(e.rule)??0)-(C5t.get(t.rule)??0)),w5t=(e,t,n,r)=>{let i=new Set(e.filter(e=>e.rule===t.id).map(r));for(let a of n)i.has(r(a))||(i.add(r(a)),e.push(S5t(t,a)))},T5t=(e,t,n)=>w5t(t,M9,n.filter(({file:t})=>!e.selected||e.selected.has(t)),({file:e})=>e),E5t=e=>e.filter(e=>e.scope===`file`),D5t=(e,t,n,r)=>B9(void 0,void 0,void 0,function*(){for(let i of t)if(i.scope===`site`&&!!i.needsBuild===n)for(let t of yield i.check(e))r.push(S5t(i,t))}),O5t=(e,t)=>B9(void 0,void 0,void 0,function*(){let n=yield R8t(e,E5t(t));return yield D5t(e,t,!1,n),H9(n)}),k5t=(e,t,n)=>B9(void 0,void 0,void 0,function*(){return yield D5t(e,t,!0,n),T5t(e,n,K8t(e,`parse-error`)),H9(n)}),A5t=(e,t,n)=>{let r=j8t(e,t,n);return`error`in r?0:r.approximate?1:2},j5t=(e,t)=>B9(void 0,void 0,void 0,function*(){let n=t=>e.read(t)??``,r=/* @__PURE__ */ new Map,i=({file:e,start:t,end:n})=>(r.get(e)??[]).some(({fix:e})=>t<e.end&&e.start<n);for(let{rule:e,fix:a}of t){if(!a||i(a))continue;let t=n(a.file),o=Object.assign(Object.assign({rule:e,file:a.file},A9(t,a.start)),{before:t.slice(a.start,a.end),after:a.text});r.set(a.file,[...r.get(a.file)??[],{fix:a,change:o}])}let a=new Set(e.files.filter(({kind:e})=>e===`snippet`).map(({file:e})=>e)),o=(t,n)=>A5t(t,a.has(t)?EO(n,e.variables):n,e.baseDir),s=[];for(let[t,i]of r){let r=n(t),a=k9(r,O9(i.map(({fix:e})=>e)));/\.mdx?$/.test(t)&&o(t,a)<o(t,r)||(yield Wn.writeFile(Rt.join(e.baseDir,t),a),s.push(...i.map(({change:e})=>e)))}return s}),M5t=(e,t,n)=>B9(void 0,void 0,void 0,function*(){let r=[],i=yield v5t(e,n),{selected:a}=n;if(a&&!i.files.some(({file:e})=>a.has(e)))throw new V9(`none of the given files are pages or snippets of this site: ${[...a].join(`, `)}`);let o=yield O5t(i,t);if(!n.fix)return{site:i,diagnostics:o,fixed:r};let s=o;for(let a=0;a<5;a++){let a=yield j5t(i,s);if(a.length===0)break;r.push(...a),i=yield v5t(e,n);let o=new Set(a.map(({file:e})=>e));s=H9(yield R8t(Object.assign(Object.assign({},i),{selected:o}),E5t(t)))}return r.length===0?{site:i,diagnostics:o,fixed:r}:{site:i,diagnostics:yield O5t(i,t),fixed:r}}),N5t=e=>{let t=JSON.stringify(e);return t.length>60?`${t.slice(0,57)}..."`:t},P5t=({line:e,column:t})=>e?`${e}${t?`:${t}`:``}`:``,F5t=({diagnostic:e})=>{let t=P5t(e);return(0,R.jsxs)(pH,{children:[` `,e.severity===`error`?(0,R.jsx)(pH,{color:`red`,children:`✗`}):(0,R.jsx)(pH,{color:`yellow`,children:`!`}),` `,t&&(0,R.jsxs)(pH,{dimColor:!0,children:[t,` `]}),(0,R.jsx)(pH,{dimColor:!0,children:e.rule}),` `,e.message,e.fix&&(0,R.jsx)(pH,{dimColor:!0,children:` (fixable)`})]})},U9=(e,t)=>`${e} ${t}${e===1?``:`s`}`,I5t=e=>{for(let t of e.fixed??[])OH((0,R.jsx)(_H,{message:`fixed ${t.file}${t.line?`:${t.line}`:``} ${t.rule}: ${N5t(t.before)} → ${N5t(t.after)}`}));let t=/* @__PURE__ */ new Map;for(let n of e.diagnostics)t.get(n.file)?.push(n)??t.set(n.file,[n]);for(let[e,n]of t)OH((0,R.jsxs)(fH,{flexDirection:`column`,marginBottom:1,children:[(0,R.jsx)(pH,{bold:!0,children:e}),n.map((e,t)=>(0,R.jsx)(F5t,{diagnostic:e},t))]}));let n=e.diagnostics.filter(({fix:e})=>e).length;n>0&&!e.fixed&&OH((0,R.jsx)(gH,{message:`\`--fix\` would fix ${U9(n,`issue`)}.`}));let{build:r}=e;r.ran&&r.passed?OH((0,R.jsx)(_H,{message:`build passed`})):r.ran&&e.passed?OH((0,R.jsx)(gH,{message:`build failed only on disabled rules`})):r.ran?OH((0,R.jsx)(bH,{message:`build failed`})):r.reason===`errors found`&&OH((0,R.jsx)(gH,{message:`build skipped until the errors above are fixed`}));let{errors:i,warnings:a}=e.summary,o=U9(a,`warning`),s=a>0?`passed with ${o}`:`validation passed`,c=`${U9(i,`error`)}${a>0?`, ${o}`:``}`;OH(e.passed?(0,R.jsx)(_H,{message:s}):(0,R.jsx)(bH,{message:c}))},L5t=(e,t,n)=>{let r={};for(let{rule:t}of e)r[t]=(r[t]??0)+1;let i=e.filter(({severity:e})=>e===`error`).length;return Object.assign({passed:i===0,summary:{errors:i,warnings:e.length-i,byRule:r},diagnostics:e.map(({rule:e,group:t,severity:n,file:r,line:i,column:a,message:o,fix:s})=>Object.assign(Object.assign(Object.assign(Object.assign({rule:e,group:t,severity:n,file:r},i!==void 0&&{line:i}),a!==void 0&&{column:a}),{message:o}),s&&{fix:s})),build:t},n&&{fixed:n})};var R5t=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},z5t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const W9={passed:0,failed:1,crashed:2},B5t=e=>e.flatMap(e=>e.split(`,`).map(e=>e.trim()).filter(Boolean)),V5t=e=>new Promise(t=>{process.stdout.write(e,()=>t())}),H5t=()=>{let e={log:console.log,info:console.info,warn:console.warn,error:console.error};return console.log=console.info=console.warn=console.error=(...e)=>{process.stderr.write(`${pr(...e)}\n`)},()=>Object.assign(console,e)},U5t=(e,t)=>R5t(void 0,void 0,void 0,function*(){let n=(t??[]).map(String).filter(Boolean);if(n.length===0)return;let r=yield CRt(a1,n);return new Set(r.map(t=>Rt.relative(e,Rt.resolve(a1,t)).split(Rt.sep).join(`/`)))}),W5t=(e,t,...n)=>R5t(void 0,[e,t,...n],void 0,function*(e,t,n=a1){let r=e.format===`json`,i=r?H5t():void 0;try{let a=x5t({enable:e.enable,disable:e.disable??[]}),o=yield U5t(n,e.files);r||OH((0,R.jsx)(vH,{message:`validating...`}));let s=yield M5t(n,a,{selected:o,localSchema:e[`local-schema`],fix:e.fix}),{site:c,fixed:l}=s,{diagnostics:u}=z5t(s,[`site`,`fixed`]),d=a.some(({needsBuild:e})=>e),f;if(!e.build)f={ran:!1,reason:`disabled`};else if(!d)f={ran:!1,reason:`no build rules`};else if(u.some(({severity:e})=>e===`error`))f={ran:!1,reason:`errors found`};else{r||OH((0,R.jsx)(vH,{message:`building...`}));let{cli:n}=s1(t);c.build=yield Adt(Object.assign(Object.assign({},e),{_:[],$0:t,packageName:t,cliVersion:n,disableOpenapi:!a.some(({group:e})=>e===`openapi`)})),u=yield k5t(c,a,u),f={ran:!0,passed:c.build.passed}}let p=L5t(u,f,e.fix?l:void 0);r?(i?.(),yield V5t(`${JSON.stringify(p)}\n`)):(MH(),I5t(p),p.passed&&f.ran&&f.passed&&(yield W6t())),yield d1(p.passed?W9.passed:W9.failed)}catch(e){r?(i?.(),process.stderr.write(`Error: ${u1(e)}\n`)):(MH(),OH((0,R.jsx)(bH,{message:u1(e)}))),yield d1(W9.crashed)}}),G9=eY.hex(`#18E299`),G5t=[{title:`Preview`,commands:[{name:`dev`,description:`Start a local preview of your site`},{name:`new`,description:`Scaffold a new documentation site`},{name:`deploy`,description:`Provision a docs site without login; get Git push instructions`}]},{title:`Quality`,commands:[{name:`validate`,description:`Validate the site build (strict)`},{name:`broken-links`,description:`Find broken links before you ship`},{name:`a11y`,description:`Check site for accessibility issues`},{name:`score`,description:`Run agent-readiness checks`}]},{title:`Insights`,commands:[{name:`analytics`,description:`View analytics for your site`},{name:`automations`,description:`Create and manage automations`}]},{title:`Account`,commands:[{name:`login`,description:`Authenticate with Mintlify`},{name:`claim`,description:`Claim a site created with mint deploy`},{name:`logout`,description:`Sign out on this device`},{name:`status`,description:`View authentication status`}]},{title:`CLI`,commands:[{name:`agent setup`,description:`Install Mintlify skills and configure Admin MCP`},{name:`config`,description:`Manage CLI configuration`},{name:`instructions`,description:`Print Mintlify workflow instructions`},{name:`update`,description:`Update to the latest version`}]}],K5t=[{name:`dev`,description:`Start a local preview of your site`},{name:`new docs`,description:`Scaffold a new site in ./docs`},{name:`claim`,description:`Get a claim link; use the deployment directory`},{name:`validate`,description:`Validate your site before shipping`},{name:`broken-links`,description:`Find broken links across your site`}],q5t=G5t.flatMap(e=>e.commands).reduce((e,t)=>Math.max(e,t.name.length),0)+2,J5t=(e,t,n,r)=>` `.repeat(r)+G9(e.padEnd(n))+eY.dim(t);function Y5t({packageName:e,version:t,signedIn:n,subdomain:r}){let i=`${e.charAt(0).toUpperCase()}${e.slice(1)} CLI`,a=t?/^\d/.test(t)?`v${t}`:t:void 0,o=[eY.bold(i)+(a?eY.dim(` ${a}`):``),``,n?eY.dim(`Signed in to Mintlify`):eY.dim(`Run `)+G9(`${e} login`)+eY.dim(` to sign in`),...r?[eY.dim(`Project ${r}`)]:[]],s=[``];s.push(...o);let c=K5t.reduce((t,n)=>Math.max(t,`${e} ${n.name}`.length),0)+2;s.push(``,` `+eY.bold(`EXAMPLES`));for(let t of K5t)s.push(J5t(`${e} ${t.name}`,t.description,c,3));s.push(``,` `+eY.bold(`COMMANDS`));for(let e of G5t){s.push(``,` `+eY.bold(e.title));for(let t of e.commands)s.push(J5t(t.name,t.description,q5t,5))}return s.push(``,` `+eY.dim(`Run `)+G9(`${e} <command> --help`)+eY.dim(` for details on any command.`),``),s.join(`
2330
2330
  `)+`
2331
2331
  `}var X5t=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function K9(e,t){return X5t(this,void 0,void 0,function*(){let n=yield O1(`${C1}/api/cli/workflows${e}`,Object.assign(Object.assign({},t),{headers:Object.assign({Accept:`application/json`},t?.headers)}));if(!n.ok){let e=yield n.text().catch(()=>``);throw Error(`API error (${n.status}): ${e||n.statusText}`)}return n.json()})}function Z5t(e,t){return K9(`/${encodeURIComponent(e)}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})}function Q5t(e){return K9(`/${encodeURIComponent(e)}`)}function $5t(e,t){return K9(`/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:`DELETE`})}const q9=[`changelog`,`source-code-agent`,`translations`,`writing-style`,`typo-check`,`broken-link-detection`,`seo-metadata-audit`,`assistant-docs-updates`,`contextual-feedback-docs-updates`];var J9=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Y9(e){return e.format===`json`?`json`:`table`}function X9(e,t){e===`table`?OH((0,R.jsx)(pH,{children:t})):process.stdout.write(t+`